PageSourceSearch

https://secure.banquedeluxembourg.com/chunk-6Q655QXW.js

js banquedeluxembourg.com collected 2026-09-24 23:14:06 UTC 49,119 bytes, 4 lines download raw bytes

1import{b as Tt}from"./chunk-4QG7CABY.js";import{c as Et}from"./chunk-ZKQAJ2VK.js";import{a as St}from"./chunk-XM7RICMV.js";import{a as At}from"./chunk-PUUKL27D.js";import"./chunk-N3OOLZGB.js";import{Aa as ut,Da as gt,K as rt,La as ft,Ma as Ct,N as lt,Na as bt,O as st,P as dt,S as Ee,Ta as yt,U as pt,Ua as ht,V as mt,Va as vt,Xa as xt,Za as Te,wa as _t}from"./chunk-AQRU2MRQ.js";import{a as ot}from"./chunk-6JKPJJOZ.js";import"./chunk-U6D5GALX.js";import{g as ct}from"./chunk-36RUO3BA.js";import"./chunk-QYPKYKI7.js";import"./chunk-ICVSSV57.js";import"./chunk-7DKMPNRF.js";import{f as Je,h as at}from"./chunk-HCKKGYAO.js";import"./chunk-V3F3F3CI.js";import"./chunk-AFBOC2KX.js";import"./chunk-LV6WUKE4.js";import"./chunk-5B7VYOJJ.js";import{c as Ze,k as et,m as tt,w as it}from"./chunk-Q4HY54HR.js";import{a as ye}from"./chunk-G6BFTQJY.js";import{a as ve}from"./chunk-TWUO3EWQ.js";import"./chunk-6ST3DWQ7.js";import"./chunk-3ALYXD6P.js";import"./chunk-JNHKXNYQ.js";import{d as Ye,g as he}from"./chunk-NZT7TPYC.js";import{a as xe}from"./chunk-QNV4QXG7.js";import{a as nt}from"./chunk-PBPLNMSX.js";import"./chunk-QALE4JEL.js";import{a as X}from"./chunk-IRIVTEN5.js";import{a as Qe}from"./chunk-RRBV4EOZ.js";import{c as G,d as je}from"./chunk-4KAMUB3I.js";import{Ha as qe,Ka as Xe,Na as Fe,Oa as Q,pb as Ke,ua as ze,wa as He}from"./chunk-3WEH7NY6.js";import{b as Z,c as U,d as q}from"./chunk-4PQTQUMC.js";import"./chunk-P6YYU7UL.js";import{Ea as Pe,Na as Ve,T as Ge,V as be,Y as k,k as J,l as $,o as we,p as Ue,pb as $e,sb as We,t as w}from"./chunk-IENASCHX.js";import{$b as m,$c as W,Ac as fe,Cb as Re,Db as T,Eb as v,F as Ne,H as Y,La as x,Pc as H,Q as ae,Qb as F,Rc as j,Sb as d,Sc as V,Tc as Ce,Ub as c,Uc as de,Vb as P,Vc as K,Xb as N,Yb as R,Zb as s,Zc as _,_b as p,_c as u,aa as I,ac as f,bc as g,cc as y,cd as M,dc as b,ec as Oe,f as ne,fc as De,gc as re,ia as z,jc as L,kb as r,kc as ue,l as Be,na as C,nc as A,oc as Me,pc as l,t as oe,tc as ge,uc as le,v as Ie,vc as se,wa as O,xa as D,z as _e,zb as E,zc as S}from"./chunk-VFHOZGAJ.js";import"./chunk-JJ32NHXI.js";import{a as pe,b as me}from"./chunk-4NVDVWBE.js";var Ot=(()=>{let t=class t{constructor(){this.accHttp=C(Ee)}resolve(i){let o=i.paramMap.get("positionId");return this.accHttp.getAccountById(o).pipe(Q()).pipe(oe(a=>a.displayed_name))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:ot});let e=t;return e})();var ee=(()=>{let t=class t extends mt{constructor(){super(...arguments),this.isLoading=new ze(!0),this.accountsHttpService=C(Ee)}getOperations(i,o,a=0,h=50){return(o?this.accountsHttpService.getLoanOperations(i,a,h).pipe(Q()):this.accountsHttpService.getOperations(i,a,h)).pipe(oe($t=>$t?.map(Ae=>me(pe({},Ae),{id:Ae.id||Ae.order_id}))),I(()=>this.isLoadingOperations.notifyChange(!1)))}getAccount(i){return this.accountsHttpService.getAccountById(i,["bp"]).pipe(Q(),I(()=>this.isLoadingAccountDetail.notifyChange(!1)))}getPrimaryData(i,o){return _e([this.getAccount(i),this.getOperations(i,o)]).pipe(oe(([a,h])=>({account:a,operations:h})),I(a=>this.primaryData=a),ae(()=>this.isLoading.notifyChange(!1)))}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275prov=z({token:t,factory:t.\u0275fac});let e=t;return e})();var Dt=(()=>{let t=class t extends dt{constructor(){super(...arguments),this.creditDetailService=C(ee),this.translateService=C(Z)}ngAfterViewInit(){super.ngAfterViewInit(),this.isCredit&&(this.totalCashMetric.nativeElement.bottom=this.translateService.instant("LOANS_OVERVIEW.EXCLUDING_ACCRUED_INTEREST"),this.totalCashMetric.nativeElement.bottomFontWeight="bold"),this.creditDetailService.upcomingOperations.value$.pipe(k(this.destroyRef)).subscribe(i=>{this.setUpcomingBalance(i)})}setUpcomingBalance(i){let o=ft.getTotal(i);if(this.account&&o!=0&&!this.minified){let a=this.account.balance_ref_currency+o;this.totalCashMetric.nativeElement.bottom=this.translateService.instant("ACCOUNTS.ACCOUNT_DETAIL.UPCOMING_BALANCE"),this.totalCashMetric.nativeElement.bottomAdditional=this.amountPipe.transform(a),this.totalCashMetric.nativeElement.bottomAdditionalSup=this.account.ref_currency}}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-credit-detail-balance"]],inputs:{isCredit:"isCredit"},features:[T],decls:2,vars:8,consts:[["totalCashMetric",""],["inline","","value","","value-sup","","sub-value","","sub-value-sup","","bottom","","bottom-additional","","bottom-additional-sup","",3,"label"]],template:function(o,a){o&1&&b(0,"bdl-bds-display-metrics",1,0),o&2&&(ue("label",a.label),F("label-type",a.minified?"body-2":null)("label-styles",a.minified?"tert
1iary-500":null)("label-font-weight",a.minified?"regular":null)("value-type",a.minified?"h5":null)("value-styles",a.minified?"secondary":null)("value-font-weight",a.minified?"bold":null)("value-sup-type",a.minified?"body-3":null))},encapsulation:2});let e=t;return e})();var zt=()=>({type:"icon",icon:"file-pdf"}),Ht=e=>[e],jt=(e,t)=>t==null?null:t.id;function qt(e,t){if(e&1&&f(0,"bdl-bds-paragraph",8),e&2){let n=l().$implicit;s("content",n.includes(" | ")?" - "+n.split(" | ")[1]:"")}}function Qt(e,t){if(e&1){let n=L();f(0,"bdl-bds-tooltip",12),_(1,"translate"),p(2,"bdl-bds-button-ng-v2",13,0),A("clickButton",function(){O(n);let o=l(),a=o.$implicit,h=o.$index,ie=l(2);return D(ie.onDownload(ie.mapCardDocumentsByPeriods.get(a),"popover-download-"+h))}),m()}if(e&2){let n=l().$index;s("selector","popover-download-"+n)("text",u(1,4,"OPERATIONS.LIST.DOWNLOAD_POPOVER.TEXT")),r(2),s("id","popover-download-"+n)("trailingMedia",V(7,Ht,j(6,zt)))}}function Xt(e,t){if(e&1&&(f(0,"bdl-bds-display-metrics",14),_(1,"periodTotalValue")),e&2){let n=l(2).$implicit,i=l(2);s("value",W(1,2,n,i.mapDateAccountListOperations))("valueSup",i.refCurrency)}}function Yt(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout-item",9),d(1,Xt,2,5,"bdl-bds-display-metrics",14),m()),e&2){let n=l(3);r(),c(n.cardType==="credit"?1:-1)}}function Kt(e,t){if(e&1){let n=L();p(0,"bdl-bds-grid-layout-item",11)(1,"bdl-bds-account-item",15),_(2,"json"),A("clickAccountItem",function(o){O(n);let a=l(3);return D(a.onClickAccountItem(o))}),m()()}if(e&2){let n=t.$implicit;r(),s("data",n),F("data-value",u(2,2,n))}}function Jt(e,t){if(e&1&&(p(0,"section")(1,"bdl-bds-grid-layout",3)(2,"bdl-bds-grid-layout-item",4)(3,"bdl-bds-indent-mark",5)(4,"div",6),f(5,"bdl-bds-paragraph",7),d(6,qt,1,1,"bdl-bds-paragraph",8),d(7,Qt,4,9),m()()(),d(8,Yt,2,1,"bdl-bds-grid-layout-item",9),m(),p(9,"bdl-bds-grid-layout",10),N(10,Kt,3,4,"bdl-bds-grid-layout-item",11,jt),m()()),e&2){let n=t.$implicit,i=t.$index,o=l(2);F("data-section",n.split(" | ")[0]),r(),F("margin-top-4",i===0?null:""),r(4),s("content",n.split(" | ")[0]),r(),c(o.cardType==="credit"?6:-1),r(),c(o.mapCardDocumentsByPeriods.get(n)?7:-1),r(),c(o.mapDateAccountListOperations.get(o.mapDateAccountListOperationsKeys[i+1])&&o.mapDateAccountListOperations.get(o.mapDateAccountListOperationsKeys[i+1]).length>0||o.limit===-1?8:-1),r(2),R(o.mapDateAccountListOperations==null?null:o.mapDateAccountListOperations.get(n))}}function Zt(e,t){if(e&1&&N(0,Jt,12,6,"section",null,P),e&2){let n=l();R(n.mapDateAccountListOperationsKeys)}}function ei(e,t){e&1&&f(0,"bdl-bds-account-item",2)}function ti(e,t){if(e&1){let n=L();p(0,"bnxt-operations-list-lazy-loading-error",16),A("reloadData",function(){O(n);let o=l();return D(o.onReloadData())}),m()}}var Ft=(()=>{let t=class t extends ut{doGetOperationsRequest(){return this.genericOperationsService.getOperations(this.account.id,this.isCredit,this.page,this.size)}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-credit-detail-operations-list"]],inputs:{isCredit:"isCredit"},features:[H([ct]),T],decls:6,vars:7,consts:[["downloadButton",""],["data-cy","operations",3,"scrolled","isLoading"],["bnxtNoOperations",""],["align-vertical","bottom"],["xlg-9","","lg-9","","md-9","","sm-6","","animation",""],["type","body-1","margin-left-2",""],[1,"view-blunxt-card-movements__account"],["type","body-1","margin-left-1","","font-weight","bold","styles","secondary-500",3,"content"],["align-content","right","type","body-2","font-weight","semi-bold","styles","tertiary",3,"content"],["xlg-3","","lg-3","","md-3","","sm-2","","align-content","right","animation",""],["margin-left-3",""],["xlg-12","","lg-12","","margin-top-2","","animation",""],["pointer","","styles","tertiary-800",3,"selector","text"],["size","sm","outlined","","margin-left-1","",3,"clickButton","id","trailingMedia"],["inline","","label","","value-type","h5","value-styles","secondary","value-font-weight","bold","value-sup-type","body-3",3,"value","valueSup"],["size","md","hide-chevron","",3,"clickAccountItem","data"],[3,"reloadData"]],template:function(o,a){o&1&&(p(0,"bnxt-lazy-loading-observer",1),_(1,"async"),A("scrolled",function(){return a.onScroll()}
1),d(2,Zt,2,0)(3,ei,1,0,"bdl-bds-account-item",2),d(4,ti,1,0,"bnxt-operations-list-lazy-loading-error"),_(5,"async"),m()),o&2&&(s("isLoading",u(1,3,a.isLoadingLazyLoad$)),r(2),c(a.mapDateAccountListOperationsKeys.length>0?2:3),r(2),c(u(5,5,a.isErrorLazyLoad$)?4:-1))},dependencies:[w,q,X,Ve,rt,$,Ue,U],encapsulation:2});let e=t;return e})();function ii(e,t){if(e&1){let n=L();p(0,"bdl-bds-account-list",5),_(1,"async"),_(2,"operationsUpcomingData"),A("clickAccountListItem",function(o){O(n);let a=l(2);return D(a.onClickItem(o))}),m()}if(e&2){let n=l(2);s("data",u(2,4,u(1,2,n.upcomingOperations$)))("toggled",!1)}}function ni(e,t){if(e&1){let n=L();p(0,"bdl-bds-account-item",6),A("clickButton",function(){O(n);let o=l(2);return D(o.onRefreshBtnClick())}),m()}if(e&2){let n=l();s("chevron",!1)("allowHover",!1)("clickable",!1)("state",n)}}function oi(e,t){e&1&&d(0,ii,3,6,"bdl-bds-account-list",3)(1,ni,1,4,"bdl-bds-account-item",4),e&2&&c(t==="success"?0:1)}var Lt=(()=>{let t=class t extends vt{constructor(){super(...arguments),this.operationAndAccountToTransferOperationPipe=C(it),this.toastService=C(We)}onClickItem(i){let o=this.upcomingOperations.find(a=>a.id===i.detail.data.id);o&&this.pageSheetService.open(o.operation_type==="payment"?yt:ht,{initialState:{transfer:this.operationAndAccountToTransferOperationPipe.transform(o,this.account),account:this.account,fromOperation:!0,title:this.translateService.instant("TRANSFERS.DETAIL.OUTBOUND_TITLE")}})}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-credit-detail-operations-upcoming"]],features:[T],decls:6,vars:6,consts:[[2,"min-height","112px"],["margin-left-3","","margin-bottom-4",""],["xlg-12","","lg-12",""],["size","md","styles","grey-50","togglable","",3,"data","toggled"],["bnxtOperationsUpcomingMessage","","styles","white-50",3,"chevron","allowHover","clickable","state"],["size","md","styles","grey-50","togglable","",3,"clickAccountListItem","data","toggled"],["bnxtOperationsUpcomingMessage","","styles","white-50",3,"clickButton","chevron","allowHover","clickable","state"]],template:function(o,a){if(o&1&&(p(0,"section",0),_(1,"translate"),p(2,"bdl-bds-grid-layout",1)(3,"bdl-bds-grid-layout-item",2),d(4,oi,2,1),_(5,"async"),m()()()),o&2){let h;F("data-section",u(1,2,"ACCOUNTS.ACCOUNT_DETAIL.UPCOMING_OPERATIONS.SUCCESS.TITLE")),r(4),c((h=u(5,4,a.state$))?4:-1,h)}},dependencies:[w,q,bt,$,U,Ct],encapsulation:2,changeDetection:0});let e=t;return e})();var ai=["groupActions"],kt=(()=>{let t=class t extends G{constructor(){super(...arguments),this.isCredit=!1,this.displaySettingsService=C(je),this.translateService=C(Z),this.pageSheetService=C($e)}ngOnInit(){super.ngOnInit(),this.whenSpaceLoaded().pipe(k(this.destroyRef)).subscribe(),this.resized$.pipe(k(this.destroyRef)).subscribe(()=>this.draw()),this.displaySettingsService.onSettingsUpdate().pipe(k(this.destroyRef)).subscribe(()=>{this.draw()})}ngAfterViewInit(){this.draw()}onClickItem(i){switch(i.detail.id){case"newTransferBtn":this.setupNewTransfer();break;case"relopBtn":this.generateTransactionStatement();break;case"exportBtn":this.exportStatement();break;default:break}}draw(){if(!this.groupActions)return;let i=[];this.account?.is_debitable&&i.push({id:"newTransferBtn",title:this.translateService.instant("TRANSFERS.DETAIL.NEW_TRANSFER"),titleUppercase:!0,styles:"info",leadingMedia:{type:"icon",icon:"exchange"}}),this.account?.is_transaction_statement&&i.push({id:"relopBtn",title:this.translateService.instant("ACCOUNTS.ACCOUNT_DETAIL.EXPORT_MY_ACCOUNT_STATEMENT"),titleUppercase:!0,styles:"info",leadingMedia:{type:"icon",icon:"file-chart-line"}}),this.groupActions.nativeElement.setItems([me(pe({},this.screenWidth<this.responsiveGridBreakpoints.LARGE?{title:"Actions",template:"dropdown"}:null),{children:i})])}setupNewTransfer(){this.pageSheetService.open(_t,{id:"new-transfer",stackable:!0,initialState:{isStandingOrder:!1,transferData:{accountDebit:et.accountToTransferAccount(this.account,this.account.business_partner)}}})}generateTransactionStatement(){this.pageSheetService.open(Et,{name:"view-blunxt-d
1ocuments-sheet-statement",class:this.displaySettingsService.isDarkTheme?"theme--dark":"",initialState:{account:this.account}})}exportStatement(){this.pageSheetService.open(Tt,{anchor:"main-area",initialState:{isCredit:this.isCredit,account:this.account}})}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-credit-detail-side-menu"]],viewQuery:function(o,a){if(o&1&&ge(ai,5),o&2){let h;le(h=se())&&(a.groupActions=h.first)}},inputs:{account:"account",isCredit:"isCredit"},features:[T],decls:2,vars:0,consts:[["groupActions",""],[1,"quick-actions",3,"clickItem"]],template:function(o,a){o&1&&(g(0,"bdl-bds-group-actions",1,0),Me("clickItem",function(ie){return a.onClickItem(ie)}),y())},encapsulation:2});let e=t;return e})();var ri=()=>[1,2,3,4,5,6,7,8,9,10];function li(e,t){e&1&&(g(0,"div",1)(1,"bdl-bds-grid-layout",16)(2,"bdl-bds-grid-layout-item",17),b(3,"bdl-bds-loader-skeleton",18),y()(),g(4,"bdl-bds-grid-layout",19)(5,"bdl-bds-grid-layout-item",20),b(6,"bdl-bds-loader-skeleton",18),y(),g(7,"bdl-bds-grid-layout-item",21),b(8,"bdl-bds-loader-skeleton",22)(9,"bdl-bds-loader-skeleton",23),y(),g(10,"bdl-bds-grid-layout-item",24),b(11,"bdl-bds-loader-skeleton",25),y()()())}function si(e,t){e&1&&(g(0,"div",3)(1,"bdl-bds-grid-layout")(2,"bdl-bds-grid-layout-item",26),b(3,"bdl-bds-loader-skeleton",27),y()()())}function di(e,t){e&1&&(g(0,"div",3)(1,"bdl-bds-grid-layout",28)(2,"bdl-bds-grid-layout-item",17),b(3,"bdl-bds-loader-skeleton",18),y()(),g(4,"bdl-bds-grid-layout",29)(5,"bdl-bds-grid-layout-item",30),b(6,"bdl-bds-loader-skeleton",22)(7,"bdl-bds-loader-skeleton",23),y(),g(8,"bdl-bds-grid-layout-item",31),b(9,"bdl-bds-loader-skeleton",32),y()(),g(10,"bdl-bds-grid-layout",33)(11,"bdl-bds-grid-layout-item",34)(12,"bdl-bds-stack",35),b(13,"bdl-bds-loader-skeleton",36),y()()()())}function ci(e,t){e&1&&(g(0,"bdl-bds-grid-layout",5)(1,"bdl-bds-grid-layout-item",6)(2,"div",7),b(3,"bdl-bds-loader-skeleton",8),g(4,"div",9),b(5,"bdl-bds-loader-skeleton",37),g(6,"bdl-bds-grid-layout")(7,"bdl-bds-grid-layout-item",17),b(8,"bdl-bds-loader-skeleton",38),y()()()()(),g(9,"bdl-bds-grid-layout-item",11),b(10,"bdl-bds-loader-skeleton",12),y()())}var Bt=(()=>{let t=class t extends G{};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-shimmer-credit-detail"]],features:[T],decls:19,vars:7,consts:[["bnxtFooterLinks","",3,"bannerFluid"],["slot","main-banner"],["slot","main-content","margin-bottom-8","","margin-top-2",""],["slot","left-column-fixed"],["slot","right-column"],["align-vertical","center","margin-bottom-2","","margin-left-3","",1,"account-item-loader"],["xlg-4","","lg-4","","md-5","","sm-4",""],[1,"account-item-loader__left"],["shimmer","","shape","circle","size","4x",1,"account-item-loader__left__shimmer"],[1,"account-item-loader__left__lines"],["shimmer","","shape","card","size","2x","margin-top-1",""],["xlg-1","","offset-xlg-7","","lg-1","","offset-lg-7","","offset-md-5","","md-2","","offset-sm-2","","sm-2",""],["shimmer","","shape","card","size","4x"],["align-vertical","bottom","margin-bottom-2","","margin-top-6",""],["xlg-6","","lg-6","","md-6","","sm-4",""],["shimmer","","shape","card","width-26",""],["padding-top-3","","padding-bottom-4","","align-vertical","center"],["xlg-6","","lg-6",""],["shimmer","","shape","card","width-20",""],["padding-top-2","","padding-bottom-3","","align-vertical","center"],["xlg-3","","lg-3","","md-3","","sm-2",""],["xlg-4","","lg-4","","md-4","","sm-4",""],["shimmer","","shape","card","size","1x",2,"width","50%"],["shimmer","","shape","card","size","1x","margin-top-2","",2,"width","75%"],["xlg-5","","lg-5","","md-5","","sm-2","","align-content","right"],["shimmer","","shape","card","size","4x","width-30","",2,"display","inline-block"],["xlg-12","","lg-12","","md-3","","sm-2",""],["shimmer","","shape","card","size","24x"],["padding-top-3","","align-vertical","center"],["padding-top-7","","padding-bottom-7","","padding-bottom-2","false","align-vertical","center"],["md-6","","sm-4",""],["md-6","","sm-4","","align-content","right"],["shimmer","","shape","card","size","4x","width-26","",2,"display","inline-block"],["justify-content","flex-start"],["xlg-12","","lg-12","","md-12","","align-content","left"],["justify-content","flex-start","spacing","2"],["shimmer","","shape","card","size","4x","width-26",""],["shimmer","","shape","card"],["shimmer","","shape","card","margin-top-2",""]],template:function(o,a){o&1&&(g(0,"bdl-bds-grid-main",0),d(1,li,12,0,"div",1),g(2,"bdl-bds-fixed-left-column",2),d(3,si,4,0,"div",3),d(4,di,14,0,"div",3),g(5,"div",4)(6,"bdl-bds-grid-layout",5)(7,"bdl-bds-grid-layout-item",6)(8,"div",7),b(9,"bdl-bds-loader-skeleton",8),g(10,"div",9),b(11,"bdl-bds-loader-skeleton",10),y()()(),g(12,"bdl-bds-grid-layout-item",11),b(13,"bdl-bds-loader-skeleton",12),y()(),g(14,"bdl-bds-grid-layout",13)(15,"bdl-bds-grid-layout-item",14),b(16,"bdl-bds-loader-skeleton",15),y()(),N(17,ci,11,0,"bdl-bds-grid-layout",5,P),y()()()),o&2&&(ue("bannerFluid",!1),r(),c(a.screenWidth>=a.responsiveGridBreakpoints.LARGE?1:-1),r(),fe("margin-top",a.screenWidth<a.responsiveGridBreakpoints.LARGE?"-16px !important":""),r(),c(a.screenWidth>=a.responsiveGridBreakpoints.LARGE?3:-1),r(),c(a.screenWidth<a.responsiveGridBreakpoints.LARGE?4:-1),r(13),R(j(6,ri)))},dependencies:[w,X],encapsulation:2});let e=t;return e})();var pi=["headerBalance"],mi=["balance"],_i=(e,t)=>({isLoading:e,primaryData:t});function ui(e,t){if(e&1&&f(0,"bnxt-credit-detail-side-menu",9),e&2){let n=l(),i=l(3);s("account",n)("isCredit",i.isCredit)}}function gi(e,t){if(e&1&&f(0,"bnxt-credit-detail-side-menu",9),e&2){let n=l(),i=l(3);s("account",n)("isCredit",i.isCredit)}}function fi(e,t){if(e&1&&f(0,"bnxt-credit-detail-operations-upcoming",12),e&2){let n=l();s("account",n)}}function Ci(e,t){if(e&1){let n=L();p(0,"bnxt-operations-page",3),A("focusTargetElements",function(o){O(n);let a=l(3);return D(a.onFocusTargetElement(o))}),p(1,"bnxt-operations-back-link",4),_(2,"translate"),A("clickBackLink",function(){O(n);let o=l(3);return D(o.onClickBackLink())}),m(),f(3,"bnxt-credit-detail-balance",5,1),_(5,"translate"),p(6,"bnxt-operations-back-link",6),_(7,"translate"),A("clickBackLink",function(){O(n);let o=l(3);return D(o.onClickBackLink())}),m(),f(8,"bnxt-operations-account-title",7)(9,"bnxt-credit-detail-balance",8,2),_(11,"translate"),d(12,ui,1,2,"bnxt-credit-detail-side-menu",9),Oe(13,10),p(14,"div"),_(15,"attribute"),d(16,gi,1,2,"bnxt-credit-detail-side-menu",9),m(),De(),Oe(17,11),d(18,fi,1,1,"bnxt-credit-detail-operations-upcoming",12),f(19,"bnxt-credit-detail-operations-list",13),De(),m()}if(e&2){let n=t,i=l(3);r(),s("minified",i.screenWidth<i.responsiveGridBreakpoints.LARGE)("label",u(2,19,i.redirectionUrl?"PATRIMONY.CONTAINER_DETAIL.POSITIONS.TITLE":"NAVIGATION.FINANCING")),r(2),s("minified",!0)("account",n)("isCredit",i.isCredit)("label",u(5,21,i.isCredit?"LOANS_OVERVIEW.OUTSTANDING_CAPITAL":"ACCOUNTS.ACCOUNT_DETAIL.CURRENT_BALANCE")),r(3),s("minified",i.screenWidth<i.responsiveGridBreakpoints.LARGE)("label",u(7,23,i.redirectionUrl?"PATRIMONY.CONTAINER_DETAIL.POSITIONS.TITLE":"NAVIGATION.FINANCING")),r(2),s("account",n)("hideIban",!0),r(),s("account",n)("isCredit",i.isCredit)("label",u(11,25,i.isCredit?"LOANS_OVERVIEW.OUTSTANDING_CAPITAL":"ACCOUNTS.ACCOUNT_DETAIL.CURRENT_BALANCE")),r(3),c(i.screenWidth>=i.responsiveGridBreakpoints.LARGE?12:-1),r(2),F("margin-top-3",u(15,27,i.screenWidth<i.responsiveGridBreakpoints.LARGE)),r(2),c(i.screenWidth<i.responsiveGridBreakpoints.LARGE?16:-1),r(2),c(i.accountType==="cash"?18:-1),r(),s("account",n)("isCredit",i.isCredit)}}function bi(e,t){if(e&1&&d(0,Ci,20,29,"bnxt-operations-page"),e&2){let n,i=l();c((n=i.primaryData.account)?0:-1,n)}}function yi(e,t){e&1&&re(0)}function hi(e,t){if(e&1&&v(0,yi,1,0,"ng-container",14),e&2){l(2);let n=S(4);s("ngTemplateOutlet",n)}}function vi(e,t){e&1&&d(0,bi,1,1)(1,hi,1,1,"ng-container"),e&2&&c(t.isLoading?1:0)}function xi(e,t){e&1&&f(0,"bnxt-shimmer-credit-detail")}var It=(()=>{let t=class t extends G{constructor(){super(...arguments),this.primaryData$=new ne(void 0),this.router=C(be),this.route=C(Ge),this.errorService=C(he),this.sessionService=C(He),this.creditDetailService=C(ee)}
1ngOnInit(){super.ngOnInit(),this.accountType=this.route.snapshot.paramMap.get("loanType"),this.accountId=this.route.snapshot.paramMap.get("positionId"),this.isCredit=this.accountType==="credit",this.isLoading$=this.creditDetailService.isLoading.value$,this.creditDetailService.getPrimaryData(this.accountId,this.isCredit).pipe(k(this.destroyRef),I(i=>this.primaryData$.next(i)),Y(i=>this.errorService.openDialogAndThrow(i))).subscribe(),this.retrieveThenClearNavigationEntry()}onFocusTargetElement(i){this.headerBalance.updateScrolledBalance(i),this.balance.updateScrolledBalance(i)}onClickBackLink(){this.redirectionUrl?this.router.navigate([this.redirectionUrl]):this.router.navigate(["accounts","financing"])}retrieveThenClearNavigationEntry(){this.redirectionUrl=this.sessionService.navigationHistory,this.sessionService.notifyNewNavigationHistoryEntry(void 0)}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-credit-detail"]],viewQuery:function(o,a){if(o&1&&ge(pi,5)(mi,5),o&2){let h;
1le(h=se())&&(a.headerBalance=h.first),le(h=se())&&(a.balance=h.first)}},features:[H([ee,{provide:pt,useExisting:ee}]),T],decls:5,vars:8,consts:[["shimmerTemplate",""],["headerBalance",""],["balance",""],[3,"focusTargetElements"],["section-header-left","","icon","chart-bar",3,"clickBackLink","minified","label"],["section-header-right","",1,"block",3,"minified","account","isCredit","label"],["back-link","","icon","chart-bar",3,"clickBackLink","minified","label"],["account-title","",3,"account","hideIban"],["account-balance","",3,"account","isCredit","label"],["left-column","",3,"account","isCredit"],["left-column-fixed",""],["right-column",""],[3,"account"],[3,"account","isCredit"],[4,"ngTemplateOutlet"]],template:function(o,a){if(o&1&&(d(0,vi,2,1),_(1,"async"),_(2,"async"),v(3,xi,1,0,"ng-template",null,0,M)),o&2){let h;c((h=Ce(5,_i,u(1,1,a.isLoading$),u(2,3,a.primaryData$)))?0:-1,h)}},dependencies:[w,J,q,st,Dt,Ft,Lt,kt,Bt,gt,lt,$,U,ye],encapsulation:2,changeDetection:0});let e=t;return e})();var Nt=(()=>{let t=class t{constructor(){this.service=C(Ke),this.translateService=C(qe)}getLoansBySpaceId(i){return this.service.getLoansBySpace$Response({"Accept-Language":this.translateService.getCurrentLang(),space_id:i})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:Xe});let e=t;return e})();var te=(()=>{let t=class t extends xe{constructor(){super(...arguments),this.financingHttpService=C(Nt),this.userHttpService=C(nt),this.errorService=C(he),this._isLoading$=new ne(!0),this._primaryData$=new ne(null)}get isLoading$(){return this._isLoading$.asObservable()}get primaryData$(){return this._primaryData$.asObservable()}getPrimaryData(i){return this._isLoading$.next(!0),this.financingHttpService.getLoansBySpaceId(i).pipe(Fe(),Q(),I(o=>this._primaryData$.next(o)),ae(()=>this._isLoading$.next(!1)),Y(o=>this.errorService.openDialogAndThrow(o)))}getAdvisorData(i){return this.isAdvisorLoading.set(!0),this.isAdvisorLoadingFailed.set(!1),this.userHttpService.getAdvisor(i).pipe(Fe(),Q(),I(o=>this.advisorData.set(o)),ae(()=>{this.isAdvisorLoading.set(!1)}),Y(o=>{throw this.isAdvisorLoadingFailed.set(!0),o}))}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275prov=z({token:t,factory:t.\u0275fac});let e=t;return e})();var Ei=()=>({type:"icon",icon:"info-circle"}),Ti=(e,t)=>({title:e,trailingMedia:t}),Si=e=>[e],Ai=(e,t,n,i)=>({manager:e,isManagedByThirdParty:t,isLoading:n,isLoadingFailed:i});function Oi(e,t){}function Di(e,t){if(e&1&&v(0,Oi,0,0,"ng-template",2),e&2){l();let n=S(3);s("ngTemplateOutlet",n)}}function Fi(e,t){}function Li(e,t){if(e&1&&(p(0,"bdl-bds-dropdown",3)(1,"div",4),f(2,"bdl-bds-group-actions",5),_(3,"translate"),m(),p(4,"div",6),v(5,Fi,0,0,"ng-template",2),m()()),e&2){l();let n=S(3);r(2),s("items",V(8,Si,Ce(5,Ti,u(3,2,"DASHBOARD.MY_ADVISOR"),j(4,Ei)))),r(3),s("ngTemplateOutlet",n)}}function ki(e,t){}function Bi(e,t){if(e&1&&v(0,ki,0,0,"ng-template",2),e&2){l(2);let n=S(8);s("ngTemplateOutlet",n)}}function Ii(e,t){if(e&1){let n=L();p(0,"bnxt-secondary-data-error-state",12),A("retry",function(){O(n);let o=l(4);return D(o.onReloadAdvisor())}),m()}}function Ni(e,t){if(e&1&&(p(0,"div",11),_(1,"attribute"),d(2,Bi,1,1,null,2),d(3,Ii,1,0,"bnxt-secondary-data-error-state"),m()),e&2){let n=l();F("padding-0",u(1,3,!n.isLoadingFailed)),r(2),c(!n.isLoadingFailed&&n.manager?2:-1),r(),c(n.isLoadingFailed||!n.manager?3:-1)}}function Ri(e,t){e&1&&f(0,"bdl-bds-avatar",14)}function Mi(e,t){if(e&1&&(f(0,"bdl-bds-avatar",15),_(1,"bnxtBase64Img")),e&2){let n=l(3);s("src",u(1,1,n.manager.photo_marketing))}}function wi(e,t){if(e&1&&(p(0,"div",20)(1,"bdl-bds-stack",25),f(2,"bdl-bds-typography",26),m()()),e&2){let n=l(3);r(2),s("content",n.manager.phone_marketing)}}function Ui(e,t){if(e&1){let n=L();p(0,"div",13),d(1,Ri,1,0,"bdl-bds-avatar",14)(2,Mi,2,3,"bdl-bds-avatar",15),p(3,"div",16),f(4,"bdl-bds-typography",17)(5,"bdl-bds-typography",18),m()(),p(6,"div",19),d(7,wi,3,1,"div",20),p(8,"div",21)(9,"bdl-bds-stack",22),A("click",function(){O(n);let o=l(4);return D(o.openNewMailPageSheet())}),f(10,"bdl-bds-icon",23)(11,"bdl-bds-typography",24),_(12,"translate"),m()()()}if(e&2){let n=l(2),i=l(2);r(),c(n.isManagedByThirdParty?1:2),r(3),s("content",i.cardTitle),r(),s("content",i.managerName),r(2),c(n.isManagedByThirdParty?-1:7),r(4),s("content",u(12,5,"DASHBOARD.MESSAGE"))}}function Gi(e,t){if(e&1&&d(0,Ui,13,7),e&2){let n=l();c(!n.isLoadingFailed&&n.manager?0:-1)}}function Pi(e,t){if(e&1&&(p(0,"bdl-bds-card",7)(1,"div",8)(2,"div",9),f(3,"bdl-bds-motion",10),_(4,"darkAsset"),_(5,"cdn"),m()(),d(6,Ni,4,5,"div",11),m(),v(7,Gi,1,1,"ng-template",null,1,M)),e&2){let n=t,i=l(2);s("status",n.isLoading?"pending":"active")("noBorder",i.screenWidth<i.responsiveGridBreakpoints.LARGE&&i.responsiveEnabled),r(3),s("path",W(5,6,u(4,4,"/motion/spinner-primary.json"),!0)),r(3),c(n.isLoading?-1:6)}}function Vi(e,t){if(e&1&&(d(0,Pi,9,9),_(1,"async"),_(2,"async"),_(3,"async"),_(4,"async")),e&2){let n,i=l();c((n=K(9,Ai,u(1,1,i.manager$),u(2,3,i.isManagedByThirdParty$),u(3,5,i.isLoading$),u(4,7,i.isLoadingFailed$)))?0:-1,n)}}var Rt=(()=>{let t=class t extends At{constructor(){super(...arguments),this.financingService=C(te)}onReloadAdvisor(){this.financingService.getAdvisorData(this.space.id).pipe(k(this.destroyRef)).subscribe()}};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-financing-advisor"]],features:[H([{provide:xe,useExisting:te}]),T],decls:4,vars:2,consts:[["managerCard",""],["cardContent",""],[3,"ngTemplateOutlet"],[1,"quick-actions"],["slot","selector"],["uppercase","","size","sm",3,"items"],["slot","content"],["id","card-advisor","no-padding","",3,"status","noBorder"],["slot","card-pending"],["id","card-advisor-loading"],["autoplay","","loop","","size","6x",3,"path"],["slot","card-content"],[3,"retry"],["padding-2","",2,"display","flex"],["margin-right-2","","icon","building-regular","icon-size","4x","icon-style","neutral-500"],["margin-right-2","",3,"src"],["padding-top-1",""],["font-type","body2","styles","tertiary-500",3,"content"],["font-weight","bold","font-type","body1","styles","secondary-500",2,"word-break","break-word",3,"content"],[2,"display","flex","height","40px"],[2,"border-top","1px solid var(--color-quaternary-600)","flex","1"],[1,"message"],["justify-content","center","align-items","center","direction","row","spacing-1","","nowrap","",2,"border-top","1px solid var(--color-quaternary-600)","display","flex","height","100%",3,"click"],["icon","paper-plane-solid","styles","quinary-500","size","3x"],["font-type","body2","font-weight","bold","styles","quinary-500",3,"content"],["justify-content","center","align-items","center","direction","row","spacing-1","","nowrap","",2,"height","100%"],["font-type","body2","font-weight","semi-bold","styles","secondary-500",3,"content"]],template:function(o,a){o&1&&(d(0,Di,1,1,null,2),d(1,Li,6,10,"bdl-bds-dropdown",3),v(2,Vi,5,14,"ng-template",null,0,M)),o&2&&(c(a.screenWidth>=a.responsiveGridBreakpoints.LARGE||!a.responsiveEnabled?0:-1),r(),c(a.screenWidth<a.responsiveGridBreakpoints.LARGE&&a.responsiveEnabled?1:-1))},dependencies:[Te,J,xt,$,U,Qe,ye,Ze,tt],styles:[`.message[_ngcontent-%COMP%]{border-left:1px solid var(--color-quaternary-600);flex:1;cursor:pointer}.message[_ngcontent-%COMP%]:hover{background-color:var(--color-quaternary-300)}
2/*# sourceMappingURL=generic-advisor-card.component-7OQMTZ67.css.map */`]});let e=t;return e})();var Mt=(()=>{let t=class t extends G{};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-financing-no-content-card"]],features:[T],decls:6,vars:3,consts:[["vertical-alignment","center"],["slot","card-content"],["icon","info-circle","styles","contextual-info","size","3x"],["type","body-2","styles","secondary-500","font-weight","semi-bold",3,"content"]],template:function(o,a){o&1&&(p(0,"bdl-bds-card",0)(1,"div",1)(2,"bdl-bds-stack"),f(3,"bdl-bds-icon",2)(4,"bdl-bds-paragraph",3),_(5,"translate"),m()()()),o&2&&(r(4),s("content",u(5,1,"ACCOUNTS.FINANCING.NO_CONTENT_CARD.TEXT")))},dependencies:[Te,Ye,U],encapsulation:2});let e=t;return e})();var $i=()=>[1,2,3,4,5,6,7,8,9,10];function Wi(e,t){e&1&&(g(0,"div",1)(1,"bdl-bds-grid-layout",6)(2,"bdl-bds-grid-layout-item",7),b(3,"bdl-bds-loader-skeleton",8),y()(),g(4,"bdl-bds-grid-layout",9)(5,"bdl-bds-grid-layout-item",7),b(6,"bdl-bds-loader-skeleton",10),y(),g(7,"bdl-bds-grid-layout-item",11),b(8,"bdl-bds-loader-skeleton",12),y()()())}function zi(e,t){e&1&&(g(0,"div",3)(1,"bdl-bds-grid-layout")(2,"bdl-bds-grid-layout-item",13),b(3,"bdl-bds-loader-skeleton",14),y(),g(4,"bdl-bds-grid-layout-item",15)(5,"bdl-bds-grid-layout",16)(6,"bdl-bds-grid-layout-item",17),b(7,"bdl-bds-loader-skeleton",18),y(),g(8,"bdl-bds-grid-layout-item",19)(9,"bdl-bds-grid-layout",20)(10,"bdl-bds-grid-layout-item",21),b(11,"bdl-bds-loader-skeleton",22),y()(),g(12,"bdl-bds-grid-layout")(13,"bdl-bds-grid-layout-item",23),b(14,"bdl-bds-loader-skeleton",22),y()()()()()()())}function Hi(e,t){e&1&&(g(0,"div",3)(1,"bdl-bds-grid-layout",24)(2,"bdl-bds-grid-layout-item",7),b(3,"bdl-bds-loader-skeleton",8),y()(),g(4,"bdl-bds-grid-layout",25)(5,"bdl-bds-grid-layout-item",26),b(6,"bdl-bds-loader-skeleton",10),y(),g(7,"bdl-bds-grid-layout-item",27),b(8,"bdl-bds-loader-skeleton",28),y()(),g(9,"bdl-bds-grid-layout",29)(10,"bdl-bds-grid-layout-item",30)(11,"bdl-bds-stack",31),b(12,"bdl-bds-loader-skeleton",32)(13,"bdl-bds-loader-skeleton",32),y()()()())}function ji(e,t){e&1&&(g(0,"bdl-bds-grid-layout",5)(1,"bdl-bds-grid-layout-item",33)(2,"div",34),b(3,"bdl-bds-loader-skeleton",35),g(4,"div",36),b(5,"bdl-bds-loader-skeleton",22),g(6,"bdl-bds-grid-layout")(7,"bdl-bds-grid-layout-item",7),b(8,"bdl-bds-loader-skeleton",37),y()()()()(),g(9,"bdl-bds-grid-layout-item",38),b(10,"bdl-bds-loader-skeleton",39),y()())}var wt=(()=>{let t=class t extends G{};t.\u0275fac=(()=>{let i;return function(a){return(i||(i=x(t)))(a||t)}})(),t.\u0275cmp=E({type:t,selectors:[["bnxt-shimmer-financing"]],features:[T],decls:8,vars:6,consts:[["bnxtFooterLinks","","banner-fluid","false"],["slot","main-banner"],["slot","main-content","margin-bottom-8","","margin-top-2",""],["slot","left-column-fixed"],["slot","right-column"],["align-vertical","center","margin-bottom-2","","margin-left-3","",1,"account-item-loader"],["padding-top-3","","padding-bottom-4","","align-vertical","center"],["xlg-6","","lg-6",""],["shimmer","","shape","card","width-20",""],["padding-top-5","","padding-bottom-6","","align-vertical","center"],["shimmer","","shape","card","width-40",""],["xlg-6","","lg-6","","align-content","right"],["shimmer","","shape","card","size","4x","width-30","",2,"display","inline-block"],["xlg-12","","lg-12","","md-3","","sm-2",""],["shimmer","","shape","card","size","30x"],["xlg-12","","lg-12","","md-6","","sm-4","",1,"left-side-bottom",2,"margin-top","16px"],["align-center",""],["xlg-4","","lg-4","","md-2","","sm-3","","align-content","center"],["shimmer","","shape","circle","size","8x"],["xlg-8","","lg-8","","offset-md-1","","md-9","","sm-4",""],["margin-bottom-2",""],["xlg-6","","lg-6","","md-6","","sm-4",""],["shimmer","","shape","card"],["xlg-12","","lg-12","","md-12","","sm-8",""],["padding-top-3","","align-vertical","center"],["padding-top-7","","padding-bottom-7","","align-vertical","center"],["md-6","","sm-4",""],["md-6","","sm-4","","align-content","right"],["shimmer","","shape","card","size","4x","width-26","",2,"display","inline-block"],["justify-content","flex-start"],["xlg-12","","lg-12","","md-12","","align-content","left"],["justify-content","flex-start","spacing","2"],["shimmer","","shape","card","size","4x","width-26",""],["xlg-4","","lg-4","","md-5","","sm-4",""],[1,"account-item-loader__left"],["shimmer","","shape","circle","size","4x",1,"account-item-loader__left__shimmer"],[1,"account-item-loader__left__lines"],["shimmer","","shape","card","margin-top-2",""],["xlg-1","","offset-xlg-7","","lg-1","","offset-lg-7","","offset-md-5","","md-2","","offset-sm-2","","sm-2",""],["shimmer","","shape","card","size","4x"]],template:function(o,a){o&1&&(g(0,"bdl-bds-grid-main",0),d(1,Wi,9,0,"div",1),g(2,"bdl-bds-fixed-left-column",2),d(3,zi,15,0,"div",3),d(4,Hi,14,0,"div",3),g(5,"div",4),N(6,ji,11,0,"bdl-bds-grid-layout",5,P),y()()()),o&2&&(r(),c(a.screenWidth>=a.responsiveGridBreakpoints.LARGE?1:-1),r(),fe("margin-top",a.screenWidth<a.responsiveGridBreakpoints.LARGE?"-16px !important":""),r(),c(a.screenWidth>=a.responsiveGridBreakpoints.LARGE?3:-1),r(),c(a.screenWidth<a.responsiveGridBreakpoints.LARGE?4:-1),r(2),R(j(5,$i)))},dependencies:[w,X],encapsulation:2});let e=t;return e})();var Ut=(()=>{let t=class t{constructor(){this.translateService=C(Z),this.amountPipe=C(ve)}transform(i){return{id:i?.position?.id,text:this.getLoanName(i),amount:this.amountPipe.transform(i?.position?.amount_in_reference_currency),currency:i?.position?.evaluation_currency,originalAmount:i?.position?.currency!=i?.position?.evaluation_currency?this.amountPipe.transform(i?.position?.amount_in_position_currency):void 0,originalCurrency:i?.position?.currency!=i?.position?.evaluation_currency?i?.position?.currency:void 0,amountC
2aption:this.getAmountCaption(i),styles:"white",variation:"credits",badge:i.private_container?{size:"sm",color:"primary",text:this.translateService.instant("ACCOUNTS.ACCOUNTS_SYNTHESIS.PRIVATE_BADGE")}:void 0,header:`<bdl-bds-paragraph type="body-1" font-weight="semi-bold" styles="tertiary-500" content="${i.container_name}" />`}}getLoanName(i){let o=i?.name;return i?.position?.asset?.bdl_reporting_level_3?.id==="ass_bdl_cr_liq_31"&&i?.name.indexOf("-")!=-1&&(o=i?.name.substring(i?.name.indexOf("-")+2)),o}getAmountCaption(i){let o="";return i?.position?.asset?.bdl_reporting_level_3?.id==="ass_bdl_cr_liq_31"?o=this.translateService.instant("LOANS_OVERVIEW.LOAN.AMOUNT_USED_EXCLUDING_ACCRUED_INTEREST"):i?.position?.asset?.bdl_reporting_level_2?.id==="ass_bdl_cr_liq_4"?o=this.translateService.instant("LOANS_OVERVIEW.LOAN.AMOUNT_EXCLUDING_ACCRUED_INTEREST"):i?.position?.asset?.instrument_group?.id==="cash"?o=this.translateService.instant("LOANS_OVERVIEW.LOAN.CURRENT_BALANCE_EXCLUDING_ACCRUED_INTEREST"):i?.position?.asset?.instrument_group?.id==="credit"&&(o=this.translateService.instant("LOANS_OVERVIEW.LOAN.OUTSTANDING_CAPITAL_EXCLUDING_ACCRUED_INTEREST")),o}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=Re({name:"bnxtToLoanItem",type:t,pure:!0});let e=t;return e})();var qi=(e,t,n)=>({isLoading:e,primaryData:t,loansBySpaceResponse:n}),Gt=e=>({loansBySpaceResponse:e}),Le=(e,t,n,i)=>({title:e,amount:t,currency:n,dateTo:i}),ke=(e,t,n)=>({bp:e,loans:t,isFirstBp:n}),Pt=e=>({date:e}),Qi=e=>({large:e});function Xi(e,t){}function Yi(e,t){if(e&1&&v(0,Xi,0,0,"ng-template",8),e&2){let n=l(3);l();let i=S(11);s("ngTemplateOutlet",i)("ngTemplateOutletContext",V(2,Gt,n.loansBySpaceResponse))}}function Ki(e,t){}function Ji(e,t){e&1&&v(0,Ki,0,0,"ng-template")}function Zi(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout",11),v(1,Ji,1,0,null,14),m()),e&2){l(4);let n=S(15);r(),s("ngTemplateOutlet",n)}}function en(e,t){e&1&&f(0,"bnxt-accounts-side-menu")}function tn(e,t){}function nn(e,t){if(e&1&&v(0,tn,0,0,"ng-template",8),e&2){let n=l(3);l();let i=S(11);s("ngTemplateOutlet",i)("ngTemplateOutletContext",V(2,Gt,n.loansBySpaceResponse))}}function on(e,t){}function an(e,t){if(e&1&&(v(0,on,0,0,"ng-template",8),_(1,"translate")),e&2){let n=l(3);l();let i=S(5);s("ngTemplateOutlet",i)("ngTemplateOutletContext",K(4,Le,u(1,2,"LOANS_OVERVIEW.OVERVIEW_OF_LOANS"),n.loansBySpaceResponse.loans_cumulative_amount_in_ref_curr,n.loansBySpaceResponse.reference_currency,n.loansBySpaceResponse.date_to))}}function rn(e,t){}function ln(e,t){if(e&1&&v(0,rn,0,0,"ng-template",8),e&2){let n=l(),i=n.$implicit,o=n.$index;l(4);let a=S(7);s("ngTemplateOutlet",a)("ngTemplateOutletContext",de(2,ke,i,i.loans,o===0))}}function sn(e,t){if(e&1&&d(0,ln,1,6,null,8),e&2){let n=t.$implicit;c((n.loans==null?null:n.loans.length)>0?0:-1)}}function dn(e,t){}function cn(e,t){if(e&1&&(p(0,"div",13),v(1,dn,0,0,"ng-template",8),_(2,"translate"),m()),e&2){let n=l(3);l();let i=S(5);r(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",K(4,Le,u(2,2,"LOANS_OVERVIEW.PLEDGED_OVERDRAFT_FACILITIES"),n.loansBySpaceResponse.pledge_overdraft_facilities_cumulative_amount_in_ref_curr,n.loansBySpaceResponse.reference_currency,n.loansBySpaceResponse.date_to))}}function pn(e,t){}function mn(e,t){if(e&1&&v(0,pn,0,0,"ng-template",8),e&2){let n=l(),i=n.$implicit,o=n.$index;l(4);let a=S(7);s("ngTemplateOutlet",a)("ngTemplateOutletContext",de(2,ke,i,i.pledge_overdraft_facilities,o===0))}}function _n(e,t){if(e&1&&d(0,mn,1,6,null,8),e&2){let n=t.$implicit;c((n.pledge_overdraft_facilities==null?null:n.pledge_overdraft_facilities.length)>0?0:-1)}}function un(e,t){}function gn(e,t){if(e&1&&(p(0,"div",13),v(1,un,0,0,"ng-template",8),_(2,"translate"),m()),e&2){let n=l(3);l();let i=S(5);r(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",K(4,Le,u(2,2,"LOANS_OVERVIEW.GUARANTEE_DEPOSITS"),n.loansBySpaceResponse.guarantee_deposits_cumulative_amount_in_ref_curr,n.loansBySpaceResponse.reference_currency,n.loansBySpaceResponse.date_to))}}function fn(e,t){}function Cn(e,t){if(e&1&&v(0,fn,0,0,"ng-template",8),e&2){let n=l(),i=n.$implicit,o=n.$index;l(4);let a=S(7);s("ngTemplateOutlet",a)("ngTemplateOutletContext",de(2,ke,i,i.guarantee_deposits,o===0))}}function bn(e,t){if(e&1&&d(0,Cn,1,6,null,8),e&2){let n=t.$implicit;c((n.guarantee_deposits==null?null:n.guarantee_deposits.length)>0?0:-1)}}function yn(e,t){if(e&1&&(p(0,"bdl-bds-grid-main",7),d(1,Yi,1,4,null,8),p(2,"div",9)(3,"bdl-bds-fixed-left-column")(4,"div",10),d(5,Zi,2,1,"bdl-bds-grid-layout",11),d(6,en,1,0,"bnxt-accounts-side-menu"),m(),p(7,"div",12),d(8,nn,1,4,null,8),d(9,an,2,9,null,8),N(10,sn,1,1,null,null,P),d(12,cn,3,9,"div",13),N(13,_n,1,1,null,null,P),d(15,gn,3,9,"div",13),N(16,bn,1,1,null,null,P),m()()()()),e&2){let n=l(2),i=l();s("bannerFluid",!1)("sectionBarFluid",i.screenWidth<i.responsiveGridBreakpoints.LARGE),r(),c(i.screenWidth>=i.responsiveGridBreakpoints.LARGE?1:-1),r(4),c(i.screenWidth<i.responsiveGridBreakpoints.LARGE?5:-1),r(),c(i.screenWidth>=i.responsiveGridBreakpoints.LARGE?6:-1),r(2),c(i.screenWidth<i.responsiveGridBreakpoints.LARGE?8:-1),r(),c(i.hasLoans&&(i.hasPledgeOverdraftFacilities||i.hasGuaranteeDeposits)?9:-1),r(),R(n.loansBySpaceResponse.business_partners_loans),r(2),c(i.hasPledgeOverdraftFacilities&&(i.hasLoans||i.hasGuaranteeDeposits)?12:-1),r(),R(n.loansBySpaceResponse.business_partners_loans),r(2),c(i.hasGuaranteeDeposits&&(i.hasLoans||i.hasPledgeOverdraftFacilities)?15:-1),r(),R(n.loansBySpaceResponse.business_partners_loans)}}function hn(e,t){e&1&&re(0)}function vn(e,t){if(e&1&&v(0,hn,1,0,"ng-container",14),e&2){l(3);let n=S(13);s("ngTemplateOutlet",n)}}function xn(e,t){if(e&1&&d(0,yn,18,9,"bdl-bds-grid-main",7)(1,vn,1,1,"ng-container"),e&2){let n=l();c(n.loansBySpaceResponse?0:1)}}function En(e,t){e&1&&re(0)}function Tn(e,t){if(e&1&&v(0,En,1,0,"ng-container",14),e&2){l(2);let n=S(9);s("ngTemplateOutlet",n)}}function Sn(e,t){if(e&1&&d(0,xn,2,1)(1,Tn,1,1,"ng-container"),e&2){let n=t;c(!n.isLoading&&n.primaryData?0:1)}}function An(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout",15)(1,"bdl-bds-grid-layout-item",16),f(2,"bdl-bds-heading",17),m(),p(3,"bdl-bds-grid-layout-item",18),f(4,"bdl-bds-display-metrics",19),_(5,"amount"),_(6,"date"),_(7,"translate"),m()()),e&2){let n=t.title,i=t.amount,o=t.currency,a=t.dateTo;r(2),s("content",n),r(2),s("value",u(5,4,i))("valueSup",o)("subValue",W(7,9,"PATRIMONY.OVERVIEW.CONSOLIDATED_ASSETS.TOTAL_AT_DATE_INCLUDED",V(12,Pt,W(6,6,a,"dd/MM/yyyy"))))}}function On(e,t){if(e&1){let n=L();p(0,"bdl-bds-grid-layout-item",25)(1,"bdl-bds-account-item",26),_(2,"bnxtToLoanItem"),A("clickAccountItem",function(){let o=O(n).$implicit,a=l(2);return D(a.onClickAccountItem(o))}),m()()}if(e&2){let n=t.$implicit;r(),s("data",u(2,1,n))}}function Dn(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout")(1,"bdl-bds-grid-layout-item",20)(2,"bdl-bds-indent-mark",21)(3,"div",22),f(4,"bdl-bds-heading",23)(5,"bdl-bds-paragraph",24),m()()()(),p(6,"bdl-bds-grid-layout"),N(7,On,3,3,"bdl-bds-grid-layout-item",25,P),m()),e&2){let n=t.bp,i=t.isFirstBp,o=t.loans;F("margin-top-8",i?null:""),r(4),s("content",n.business_partner_name),r(),s("content","\xA0- "+n.business_partner_number),r(2),R(o)}}function Fn(e,t){e&1&&f(0,"bnxt-shimmer-financing")}function Ln(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout",27)(1,"bdl-bds-grid-layout-item",16),f(2,"bdl-bds-heading",28),_(3,"translate"),m(),p(4,"bdl-bds-grid-layout-item",18),f(5,"bdl-bds-display-metrics",29),_(6,"translate"),_(7,"amount"),_(8,"date"),_(9,"translate"),m()()),e&2){let n=t.loansBySpaceResponse;r(2),s("content",u(3,5,"NAVIGATION.FINANCING")),r(3),s("label",u(6,7,"LOANS_OVERVIEW.OUTSTANDING_CAPITAL"))("value",u(7,9,n.cumulative_amount_in_reference_currency))("valueSup",n.reference_currency)("subValue",W(9,14,"PATRIMONY.OVERVIEW.CONSOLIDATED_ASSETS.TOTAL_AT_DATE_INCLUDED",V(17,Pt,W(8,11,n==null?null:n.date_to,"dd/MM/yyyy"))))}}function kn(e,t){e&1&&(p(0,"bdl-bds-grid-layout",30)(1,"bdl-bds-grid-layout-item",16),f(2,"bdl-bds-heading",28),_(3,"translate"),m()()),e&2&&(r(2),s("content",u(3,1,"NAVIGATION.FINANCING")))}function Bn(e,t){}function In(e,t){e&1&&v(0,Bn,0,0,"ng-template")}function Nn(e,t){if(e&1&&(p(0,"bdl-bds-grid-layout",31),v(1,In,1,0,null,14),m()),e&2){l(2);let n=S(15);r(),s("ngTemplateOutlet",n)}}function Rn(e,t){e&1&&f(0,"bnxt-accounts-side-menu")}function Mn(e,t){e&1&&(p(0,"div",32,6),f(2,"bnxt-financing-advisor"),m())}function wn(e,t){if(e&1&&(p(0,"bdl-bds-grid-main",7),d(1,kn,4,3,"bdl-bds-grid-layout",30),p(2,"div",9)(3,"bdl-bds-fixed-left-column")(4,"div",10),d(5,Nn,2,1,"bdl-bds-grid-layout",31),d(6,Rn,1,0,"bnxt-accounts-side-menu"),d(7,Mn,3,0,"div",32),m(),p(8,"div",12),f(9,"bnxt-financing-no-content-card"),m()()()()),e&2){let n,i=l();s("bannerFluid",!1)("sectionBarFluid",i.screenWidth<i.responsiveGridBreakpoints.LARGE),r(),c(i.screenWidth>=i.responsiveGridBreakpoints.LARGE?1:-1),r(4),c(i.screenWidth<i.responsiveGridBreakpoints.LARGE?5:-1),r(),c(i.screenWidth>=i.responsiveGridBreakpoints.LARGE?6:-1),r(),c((n=V(6,Qi,i.screenWidth>=i.responsiveGridBreakpoints.LARGE))?7:-1,n)}}function Un(e,t){e&1&&(p(0,"bdl-bds-grid-layout-item",33)(1,"bdl-bds-stack",34),f(2,"bnxt-accounts-side-menu")(3,"bnxt-financing-advisor"),m()())}var Vt=(()=>{let t=class t extends G{constructor(){super(),this.hasLoans=!1,this.hasPledgeOverdraftFacilities=!1,this.hasGuaranteeDeposits=!1,this.financingService=C(te),this.router=C(be),this.businessUnitService=C(Je),this.isBLLU=this.businessUnitService.isBLLU,this.isLoading$=this.financingService.isLoading$,this.primaryData$=this.financingService.primaryData$,this.loansBySpaceResponse$=this.financingService.primaryData$.pipe(k(this.destroyRef),Ne(i=>i?.business_partners_loans?.length>0),I(i=>{this.hasLoans=!!i.business_partners_loans?.find(o=>o?.loans?.length>0),this.hasPledgeOverdraftFacilities=!!i.business_partners_loans?.find(o=>o?.pledge_overdraft_facilities?.length>0),this.hasGuaranteeDeposits=!!i.business_partners_loans?.find(o=>o?.guarantee_deposits?.length>0)}))}ngOnInit(){super.ngOnInit(),this.whenSpaceLoaded().pipe(I(i=>this.financingService.setIsManagedByThirdParty(i)),Ie(i=>_e([this.financingService.getPrimaryData(i.id),this.financingService.getAdvisorData(i.id).pipe(Y(o=>Be({isError:!0,error:o})))])),k(this.destroyRef)).subscribe()}onClickAccountItem(i){this.router.navigate(["accounts","financing",i?.position?.asset?.instrument_group?.id==="cash"?"cash":"credit",i?.position?.id])}reloadManager(){this.financingService.getAdvisorData(this.space.id).pipe(k(this.destroyRef)).subscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=E({type:t,selectors:[["bnxt-financing"]],features:[H([te]),T],decls:16,vars:11,consts:[["subSectionTitleWithMetricsTemplate",""],["loansInBpTemplate",""],["loadingTemplate",""],["financingTitleWithMetrics",""],["noLoanTemplate",""],["tabletSideMenu",""],["divContainer",""],["bnxtFooterLinks","","has-top-button","","breadcrumb","true",3,"bannerFluid","sectionBarFluid"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["slot","main-content"],["slot","left-column-fixed"],["slot","main-banner","align-vertical","center"],["slot","right-column"],["margin-top-8",""],[4,"ngTemplateOutlet"],["align-vertical","center","margin-bottom-5",""],["xlg-6","","lg-6",""],["type","h5","font-weight","bold","styles","secondary",3,"content"],["xlg-6","","lg-6","","align-content","right"],["inline","","value-type","h4","value-styles","secondary","value-font-we
2ight","bold","value-sup-type","body-3","sub-value-font-weight","semi-bold","sub-value-styles","tertiary-500",3,"value","valueSup","subValue"],["xlg-12","","lg-12","","animation",""],["type","h6","margin-left-2",""],[1,"view-blunxt-credits__account"],["type","h6","font-weight","semi-bold","styles","secondary uppercase",3,"content"],["type","body-2","font-weight","semi-bold","styles","tertiary",3,"content"],["xlg-12","","lg-12","","margin-top-2","","animation",""],["size","md",3,"clickAccountItem","data"],["slot","main-banner","margin-top-4","","padding-bottom-5","","align-vertical","center"],["type","h4","font-weight","semi-bold","styles","secondary",3,"content"],["inline","","sub-value-font-weight","semi-bold","sub-value-styles","tertiary-500",3,"label","value","valueSup","subValue"],["slot","main-banner","align-vertical","center","padding-top-5","","padding-bottom-5",""],["slot","main-banner","padding-top-5","","padding-bottom-5","","align-vertical","center"],["margin-top-3",""],["lg-12","","md-12",""],["margin-top-4","","direction","row","spacing","2"]],template:function(o,a){if(o&1&&(d(0,Sn,2,1),_(1,"async"),_(2,"async"),_(3,"async"),v(4,An,8,14,"ng-template",null,0,M)(6,Dn,9,3,"ng-template",null,1,M)(8,Fn,1,0,"ng-template",null,2,M)(10,Ln,10,19,"ng-template",null,3,M)(12,wn,10,8,"ng-template",null,4,M)(14,Un,4,0,"ng-template",null,5,M)),o&2){let h;c((h=de(7,qi,u(1,1,a.isLoading$),u(2,3,a.primaryData$),u(3,5,a.loansBySpaceResponse$)))?0:-1,h)}},dependencies:[w,J,X,Pe,q,at,Rt,wt,Mt,St,$,we,U,Ut,ve],styles:[`.view-blunxt-credits__account[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;align-items:baseline;margin-left:8px}
3/*# sourceMappingURL=financing.component-ZTOCJYKD.css.map */`],changeDetection:0});let e=t;return e})();var Vr=[{path:"",component:Vt},{path:":loanType/:positionId",component:It,resolve:{breadcrumb:Ot},data:{}}];export{Vr as default};
4//# sourceMappingURL=chunk-6Q655QXW.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.