PageSourceSearch

https://secure.banquedeluxembourg.com/chunk-NGNW5PY5.js

js banquedeluxembourg.com collected 2026-10-02 11:29:52 UTC 13,897 bytes, 3 lines download raw bytes

1import{a as de}from"./chunk-Z3BSKA3J.js";import"./chunk-WCMKZUA3.js";import{l as le,m as ce,n as v,o as B}from"./chunk-44Q2B6LW.js";import"./chunk-ZP6URRRD.js";import"./chunk-5MCB5N7V.js";import"./chunk-O4ZFMJ6G.js";import"./chunk-IZ4YHJMQ.js";import"./chunk-75FB5FOK.js";import"./chunk-N5G3Q7PA.js";import"./chunk-55FPCMVS.js";import"./chunk-FFNBESOY.js";import"./chunk-XRL3XAKP.js";import"./chunk-J6J6LIWE.js";import{c as re}from"./chunk-MCFLXYMN.js";import{B as oe}from"./chunk-GNVIEGL5.js";import"./chunk-OLYSFPUH.js";import"./chunk-CVSDB6GK.js";import"./chunk-2OQCJELN.js";import"./chunk-22GORKST.js";import"./chunk-VOAZQWXP.js";import"./chunk-LK4YKUUU.js";import"./chunk-5WIPZZTK.js";import"./chunk-2O6RDBQV.js";import"./chunk-WV3U3LJ5.js";import{a as ae}from"./chunk-ALPSYVII.js";import"./chunk-DCD2V4JR.js";import"./chunk-UMHCVQL5.js";import{Da as g,Ha as ne,N as F,Oa as se}from"./chunk-JUF2FHZF.js";import{b as ee,c as te,d as ie}from"./chunk-ERVKW22D.js";import"./chunk-MAXHUZHI.js";import{Na as Y,Y as A,cb as O,e as J,l as K,sb as Z,t as X}from"./chunk-FNOROUKX.js";import{$b as o,Bb as $,Db as H,H as E,Ia as V,La as I,Na as U,Rc as G,Sb as x,Sc as M,Ub as w,Wb as W,Xb as z,Yb as j,Zb as l,Zc as S,_b as r,_c as f,aa as D,ac as m,f as R,jc as y,kb as a,kd as q,na as d,nc as p,pc as h,tb as T,tc as Q,uc as P,vc as N,wa as b,xa as C,zb as L}from"./chunk-WO7VCCB3.js";import"./chunk-OCFTQM76.js";import{a as u,b as k}from"./chunk-JXRZMLLS.js";var me=(n,c)=>u({id:"card",styles:"default",singleColum:!0},v(n,"checkbox",B.getCardFacetChoices(c),n.instant("DOCUMENTS.SEARCH.FACETS.CARD.TITLE")));var pe=(n,c)=>u({id:"period",styles:"default",singleColum:!0},v(n,"checkbox",B.getPeriodFacetChoices(c),n.instant("DOCUMENTS.SEARCH.FACETS.PERIOD.TITLE")));var he=(n,c)=>({facets:[pe(n,c),me(n,c)]});var ue=(()=>{class n{constructor(){this.cardStatements=q.required(),this.element=d(U),this.translateService=d(ee),this.renderer=d(T),this.documentsService=d(ce),this.setButtons(),V(()=>{this.updateSearchData()})}ngAfterViewInit(){this.listenToClickSearch(),this.listenToClickReset()}updateSearchData(e){this.element.nativeElement.setData(e||k(u({},he(this.translateService,this.cardStatements())),{searchButton:k(u({},this.searchButtonConfig),{disabled:!1}),resetButton:k(u({},this.resetButtonConfig),{disabled:!1})}))}listenToClickSearch(){this.unlistenClickSearch=this.renderer.listen(this.element.nativeElement,"clickSearch",e=>{this.documentsService.searchData.notifyChange(e.detail)})}listenToClickReset(){this.unlistenClickReset=this.renderer.listen(this.element.nativeElement,"clickReset",e=>{this.documentsService.searchData.notifyChange(e.detail),this.updateSearchData()})}ngOnDestroy(){this.unlistenClickSearch(),this.unlistenClickReset()}setButtons(){this.searchButtonConfig={size:"sm",styles:"tertiary-500",content:this.translateService.instant("ACTION_BUTTONS.FILTER")},this.resetButtonConfig={size:"sm",styles:"brand-expressive-red-dark",icon:{icon:"times"}}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=$({type:n,selectors:[["","bnxtCardStatementTabSearch",""]],inputs:{cardStatements:[1,"cardStatements"]}})}}return n})();var Ce=["checkboxAll"],Se=["pagination"],fe=()=>({type:"icon",icon:"download"}),_e=n=>[n],ye=n=>({primary:n});function ge(n,c){if(n&1){let e=y();r(0,"bdl-bds-positioned-badge",9),S(1,"async"),S(2,"async"),r(3,"bdl-bds-button-ng-v2",21,2),S(5,"translate"),p("clickButton",function(){b(e);let i=h();return C(i.onBulkDownloadBtnClick())}),o()()}if(n&2){let e=h();l("visible",f(1,4,e.nbSelected$)>1)("text",f(2,6,e.nbSelected$)),a(3),l("leadingMedia",M(11,_e,G(10,fe)))("content",f(5,8,"ACTION_BUTTONS.DOWNLOAD"))}}function ke(n,c){if(n&1){let e=y();r(0,"bdl-bds-checkbox",22,3),p("clickCheckbox",function(){b(e);let i=h();return C(i.onClickAllCheckbox())}),o()}if(n&2){let e=h();l("selected",e.isAllCheckBoxSelected)}}function De(n,c){if(n&1){let e=y();r(0,"tr",23),p("click",function(){let i=b(e).$implicit,s=h();return C(s.onRowClick(i))}),r(1,"td",24),p("click",function(i){b(e);let s=h();return C(s.stopPropagation(i))}),r(2,"bdl-bds-checkbox",25),p("clickCheckbox",function(){let i=b(e).$implicit,s=h();return C(s.onClickCheckbox(i))}),o()(),r(3,"td"),m(4,"bdl-bds-typography",26),o(),r(5,"td")(6,"bdl-bds-stack",27),m(7,"bdl-bds-typography",26)(8,"bdl-bds-typography",28),o()(),r(9,"td")(10,"bdl-bds-button",29),p("clickButton",function(){let i=b(e).$implicit,s=h();return C(s.onDownloadBtnClick(i))}),m(11,"bdl-bds-icon",30),o()()()}if(n&2){let e=c.$implicit;a(),l("ngClass",M(5,ye,!e.seen)),a(),l("selected",e.isSelected),a(2),l("content",e.period),a(3),l("content",e.bpName),a(),l("content",e.cardType+" "+e.cardNumber)}}function Te(n,c){if(n&1){let e=y();r(0,"div",20)(1,"bdl-bds-pagination",31,4),p("clickPaginationItem",function(i){b(e);let s=h();return C(s.onChangePagination(i))}),o()()}}
1var _=(function(n){return n.ASC="asc",n.DESC="desc",n})(_||{}),mt=(()=>{class n extends de{constructor(){super(...arguments),this.allCardStatements=[],this.filteredCardStatements=[],this.displayableCardStatements=[],this.sorting=[void 0,void 0],this.isAllCheckBoxSelected=!1,this.nbSelected$=new R(0),this.page=0,this.renderer=d(T),this.documentsHttpService=d(le),this.toastService=d(Z),this.fileService=d(re),this.nxtTranslateService=d(ne)}ngOnInit(){super.ngOnInit(),this.allCardStatements=this.allCurrentWebDocuments.map(e=>({id:e.id,bpName:e.business_partner_name,bpNumber:e.business_partner_number,startPeriod:e.start_period,period:this.translateService.instant("DOCUMENTS.DOC_PERIOD",{startPeriod:g.format(g.toDate(e.start_period),"dd MMMM yyyy",this.nxtTranslateService.getCurrentLang()),endPeriod:g.format(g.toDate(e.end_period),"dd MMMM yyyy",this.nxtTranslateService.getCurrentLang())}),cardNumber:this.getCardNumber(e.card_nrs),cardType:e.card_sub_type!==void 0?e.card_sub_type:"",seen:e.seen})),this.filteredCardStatements=this.allCardStatements,this.displayPage()}ngAfterViewInit(){this.initHeaderDownloadButton(),this.setPagination()}onRowClick(e){let t=this.allCurrentWebDocuments.find(i=>i.id===e?.id);this.openDocumentFullSheet(t)}getCardNumber(e){let t="";return e?.forEach(i=>{i!==void 0&&(t=t?`${t} / ${i}`:i)}),t!==void 0?t:""}onClickAllCheckbox(){this.isAllCheckBoxSelected=!this.isAllCheckBoxSelected,this.displayableCardStatements.forEach(e=>{e.isSelected=this.isAllCheckBoxSelected}),this.nbSelected$.next(this.isAllCheckBoxSelected?this.displayableCardStatements.length:0)}onClickCheckbox(e){e.isSelected=!e.isSelected,e.isSelected?this.nbSelected$.next(this.nbSelected$.value+1):this.nbSelected$.next(this.nbSelected$.value-1),this.isAllCheckBoxSelected=this.displayableCardStatements.every(t=>t.isSelected)}stopPropagation(e){e.stopPropagation()}onBulkDownloadBtnClick(){let e=this.displayableCardStatements.filter(t=>t.isSelected);this.download(e).pipe(D(t=>{this.openDownloadedDocs(t,e)}),E(t=>{throw this.toastService.show({content:this.translateService.instant("DOCUMENTS.SINGLE_DOCUMENT_DOWNLOAD_ERROR_MSG"),styles:O.Error,showDuration:F.longDuration}),t})).subscribe()}onDownloadBtnClick(e){this.download([e]).pipe(D(t=>{this.openDownloadedDocs(t,[e])}),E(t=>{throw this.toastService.show({content:this.translateService.instant("DOCUMENTS.SINGLE_DOCUMENT_DOWNLOAD_ERROR_MSG"),styles:O.Error,showDuration:F.longDuration}),t})).subscribe()}download(e){let t=e.map(i=>({business_partner_number:i.bpNumber,id:i.id}));return this.documentsHttpService.downloadWebDocuments(t).pipe(se(),A(this.destroyRef))}getSortIcon(e){switch(this.sorting[e]){case _.ASC:return"sort-up";case _.DESC:return"sort-down";default:return"sort"}}onChangePagination(e){this.resetBulkDownloadBtn(),this.resetSelectedStatements(),this.page=e.detail.value,this.displayPage(this.page)}displayPage(e=0){this.displayableCardStatements=this.filteredCardStatements.slice(e*this.maxDocsPerPage,(e+1)*this.maxDocsPerPage),this.shouldDisplayPagination=this.filteredCardStatements.length>this.maxDocsPerPage}setPagination(){setTimeout(()=>{this.pagination&&this.pagination.nativeElement.setConfig({total:this.filteredCardStatements.length,step:2,items:this.maxDocsPerPage})},0)}filterDocuments(e){this.resetFilters(!1),e.facets?.forEach(t=>{switch(t.id){case"period":{let i=t.choices.filter(s=>s.selected).map(s=>s.value);i.length>0&&this.filterByPeriod(i);break}case"card":{let i=t.choices.filter(s=>s.selected).map(s=>s.value);i.length>0&&this.filterByCard(i);break}default:break}}),this.resetBulkDownloadBtn()}resetFilters(e){e&&this.search.nativeElement.reset(!1),this.filteredCardStatements=[...this.allCardStatements]}resetSelectedStatements(){this.isAllCheckBoxSelected=!1,this.displayableCardStatements.forEach(e=>{e.isSelected=!1})}sortColumn(e,t){this.sorting.forEach((i,s)=>{s===e?this.sorting[s]=this.sorting[s]===_.DESC?_.ASC:_.DESC:this.sorting[s]=void 0}),this.sort(t,this.sorting[e]),this.displayPage(this.page)}sort(e,t){e==="period"?this.sortByPeriod(t):this.sortByCard(t)}sortByPeriod(e){e==="desc"?this.filteredCardStatements.sort((t,i)=>new Date(i.startPeriod).getTime()-new Date(t.startPeriod).getTime()):this.filteredCardStatements.sort((t,i)=>new Date(t.startPeriod).getTime()-new Date(i.startPeriod).getTime())}sortByCard(e){this.filteredCardStatements.sort((t,i)=>e==="asc"?t.bpName.localeCompare(i.bpName):i.bpName.localeCompare(t.bpName))}filterByPeriod(e){this.filteredCardStatements=this.filteredCardStatements.filter(t=>e.includes(t.period))}filterByCard(e){this.filteredCardStatements=this.filteredCardStatements.filter(t=>e.includes(t.cardNumber))}openDownloadedDocs(e,t){this.fileService.download(e,this.constructDownloadedDocsName(t))}initHeaderDownloadButton(){this.nbSelected$.pipe(D(()=>{this.nbSelected$.value>=this.minSelectedDocsForBulkDownload?this.enableBulkDownloadBtn():this.resetBulkDownloadBtn()}),A(this.destroyRef)).subscribe()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=I(n)))(i||n)}})()}static{this.\u0275cmp=L({type:n,selectors:[["bnxt-card-statement-tab"]],viewQuery:function(t,i){if(t&1&&Q(Ce,5)(Se,5),t&2){let s;P(s=N())&&(i.checkboxAll=s.first),P(s=N())&&(i.pagination=s.first)}},features:[H],decls:30,vars:14,consts:[["search",""],["headerButtonDiv",""],["bulkDownloadBtn",""],["checkboxAll",""],["pagination",""],["slot","header",2,"display","flex","align-items","center","justify-content","space-between","width","100%"],[1,"view-blunxt-d
1ocuments__header"],["bnxtCardStatementTabSearch","","carousel-styles","default",3,"cardStatements"],[2,"display","flex","align-items","center","justify-content","center"],["size","sm","styles","success","rounded","",3,"visible","text"],["aria-describedby","Card statements list",2,"width","100%"],["bg-color","tertiary-700",2,"width","72px"],[2,"height","24px","display","block","margin","8px 0",3,"selected"],["clickable-cell","","bg-color","tertiary-700","data-column","period",2,"width","25%",3,"click"],[2,"padding","12px 0"],["font-type","body2","styles","white","font-weight","bold",3,"content"],["styles","white",3,"icon"],["clickable-cell","","bg-color","tertiary-700","data-column","card",3,"click"],["bg-color","tertiary-700",2,"width","0%"],["clickable-row",""],["slot","footer",2,"display","flex","align-items","center","justify-content","center","width","100%","padding","16px 0"],["size","sm","disabled","","outlined","",3,"clickButton","leadingMedia","content"],[2,"height","24px","display","block","margin","8px 0",3,"clickCheckbox","selected"],["clickable-row","",3,"click"],[1,"first-column",3,"click","ngClass"],["inputname","checkbox-cell-input-0",2,"height","24px","display","block","margin","8px 0",3,"clickCheckbox","selected"],["font-type","body1","styles","secondary-500",3,"content"],["direction","row","spacing","2"],["font-type","body1","styles","tertiary-500",3,"content"],["size","sm","auto-size","","outlined","",3,"clickButton"],["slot","icon","icon","download"],["outlined","false","button-active-style","success","text-only","","size","md","id","pagination-footer","first-last-pages","false",3,"clickPaginationItem"]],template:function(t,i){t&1&&(r(0,"bnxt-documents-list")(1,"bdl-bds-light-table")(2,"div",5)(3,"div",6),m(4,"bdl-bds-search",7,0),o(),r(6,"div",8,1),x(8,ge,6,13,"bdl-bds-positioned-badge",9),S(9,"async"),o()(),r(10,"table",10)(11,"thead")(12,"tr")(13,"th",11),x(14,ke,2,1,"bdl-bds-checkbox",12),o(),r(15,"th",13),p("click",function(){return i.sortColumn(0,"period")}),r(16,"bdl-bds-stack",14),m(17,"bdl-bds-typography",15),S(18,"translate"),m(19,"bdl-bds-icon",16),o()(),r(20,"th",17),p("click",function(){return i.sortColumn(1,"bpName")}),r(21,"bdl-bds-stack",14),m(22,"bdl-bds-typography",15),S(23,"translate"),m(24,"bdl-bds-icon",16),o()(),m(25,"th",18),o()(),r(26,"tbody"),z(27,De,12,7,"tr",19,W),o()(),x(29,Te,3,0,"div",20),o()()),t&2&&(a(4),l("cardStatements",i.allCardStatements),a(4),w(f(9,8,i.isLoading$)===!1&&(i.allCurrentWebDocuments==null?null:i.allCurrentWebDocuments.length)>1?8:-1),a(6),w(i.displayableCardStatements.length>1?14:-1),a(3),l("content",f(18,10,"DOCUMENTS.CARD_STATEMENT.PERIOD")),a(2),l("icon",i.getSortIcon(0)),a(3),l("content",f(23,12,"DOCUMENTS.CARD_STATEMENT.CARD")),a(2),l("icon",i.getSortIcon(1)),a(3),j(i.displayableCardStatements),a(2),w(i.shouldDisplayPagination?29:-1))},dependencies:[X,J,ae,Y,oe,ie,ue,K,te],styles:[`.view-blunxt-documents__header[_ngcontent-%COMP%]{display:flex;align-items:center}td.first-column[_ngcontent-%COMP%]{position:relative}td.first-column[_ngcontent-%COMP%]:before{position:absolute;left:0;top:0;height:100%;width:4px;content:"";-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}td.first-column.primary[_ngcontent-%COMP%]:before{background-color:var(--color-primary)}
2/*# sourceMappingURL=card-statement-tab.component-EOVUJKJO.css.map */`]})}}return n})();export{mt as CardsStatementTabComponent,_ as SortingStateEnum};
3//# sourceMappingURL=chunk-NGNW5PY5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.