PageSourceSearch

https://secure.banquetransatlantique.lu/chunk-A7CQ4EAK.js

js banquetransatlantique.lu collected 2026-10-02 00:23:44 UTC 24,931 bytes, 3 lines download raw bytes

1import{a as Ae}from"./chunk-K6TFWB3Q.js";import{a as Oe}from"./chunk-KRLSAGQQ.js";import{a as We}from"./chunk-FFNBESOY.js";import{a as O}from"./chunk-OLYSFPUH.js";import{a as te}from"./chunk-CVSDB6GK.js";import{a as we}from"./chunk-2OQCJELN.js";import{a as ee}from"./chunk-ALPSYVII.js";import{b as Le,c as J}from"./chunk-UMHCVQL5.js";import{Da as Z,Na as Pe,Oa as De,W as b,Z as oe,ua as v,y as xe}from"./chunk-JUF2FHZF.js";import{b as q,c as Q,d as X}from"./chunk-ERVKW22D.js";import"./chunk-MAXHUZHI.js";import{V as ve,Y as G,jb as Te,k as Se,l as Ee,o as K,ob as Ie,t as j}from"./chunk-FNOROUKX.js";import{$b as h,$c as D,Ca as ie,Cb as F,Db as w,Eb as ne,Ga as ce,H as le,La as H,Pc as fe,Q as de,Qb as P,Rc as B,Sb as C,Sc as c,Tc as Y,Ub as y,Wb as V,Xb as U,Yb as $,Yc as Ce,Z as me,Zb as d,Zc as o,_b as _,_c as a,aa as R,ac as m,bc as S,cc as T,cd as ye,dc as I,f as se,ia as pe,jc as x,kb as l,kc as z,l as re,na as u,nc as E,oc as _e,pc as p,tc as he,uc as ue,vc as be,wa as g,xa as f,zb as W,zc as ge}from"./chunk-WO7VCCB3.js";import"./chunk-OCFTQM76.js";import"./chunk-JXRZMLLS.js";var Ne=(()=>{class t{constructor(){this.translateService=u(q),this.amountPipe=u(te),this.bnxtPercentPipe=u(we)}transform(e,n=15){let i=[];return e.containers.forEach(s=>{i.push(this.buildChildItem(s,e.wealth_evaluation_in_bp_curr.currency))}),[{parent:this.buildParentItem(e,i.length),children:i,maxVisibleChildren:i.length>n?n:void 0,showMoreButtonLabel:this.translateService.instant("INVEST.OVERVIEW.SHOW_ALL_PORTFOLIOS")}]}buildParentItem(e,n){let i=this.isRefBpSameCurrency(e),s=e.containers.map(N=>N.container.service_offer?.id).every(N=>oe.daily.includes(N)),L={variation:"patrivest",id:e?.business_partner?.id,text:this.translateService.instant(n>1?"INVEST.OVERVIEW.MULTIPLE_PORTFOLIOS":"INVEST.OVERVIEW.SINGLE_PORTFOLIO"),media:{type:"badge",text:n.toString(),styles:"info"},hideChevron:!0,amount:i?this.getEvaluationAmount(e.wealth_evaluation_in_ref_curr):this.getEvaluationAmount(e.wealth_evaluation_in_bp_curr),currency:i?this.getEvaluationCurrency(e.wealth_evaluation_in_ref_curr):this.getEvaluationCurrency(e.wealth_evaluation_in_bp_curr),originalAmount:i?void 0:this.getEvaluationAmount(e.wealth_evaluation_in_ref_curr),originalCurrency:i?void 0:this.getEvaluationCurrency(e.wealth_evaluation_in_ref_curr)};return e.performance&&!s&&(L.badge=this.getPerformanceBadge(e)),L}buildChildItem(e,n){let i=this.isContBpSameCurrency(e,n),s=oe.daily.includes(e.container.service_offer?.id);return{id:e.container.id,prefix:e.container.name,caption:e.container.custom_name,amount:i?this.getEvaluationAmount(e.wealth_evaluation_in_cont_curr):this.getEvaluationAmount(e.wealth_evaluation_in_bp_curr),currency:i?this.getEvaluationCurrency(e.wealth_evaluation_in_cont_curr):this.getEvaluationCurrency(e.wealth_evaluation_in_bp_curr),originalAmount:i?void 0:this.getEvaluationAmount(e.wealth_evaluation_in_cont_curr),originalCurrency:i?void 0:this.getEvaluationCurrency(e.wealth_evaluation_in_cont_curr),variation:"patrivest",badgeText:e.container.private?{color:"info",text:this.translateService.instant("ACCOUNT.PRIVATE"),size:"md",order:"text-first",leadingMedia:[{type:"icon",icon:"bdl-solid",size:"2x"}]}:void 0,trailingMedia:s?{type:"blank"}:{type:"button",size:"sm",icon:"chart-line"},rate:s?void 0:this.getContainerRate(e),rateStyles:e.performance>=0?"positive-700":"negative-600",hideChevron:!0}}getContainerRate(e){if(e?.performance){let n=e.performance,i=n>0?"+":"",s=this.bnxtPercentPipe.transform(n/100);return i+s}}getPerformanceBadge(e){return e.performance?{color:e.performance>=0?"positive-700":"negative-600",text:(e.performance>0?"+":"")+this.bnxtPercentPipe.transform(e.performance/100),size:"md",squared:!0}:null}isRefBpSameCurrency(e){return e?.wealth_evaluation_in_bp_curr&&e?.wealth_evaluation_in_ref_curr&&e.wealth_evaluation_in_ref_curr.currency===e.wealth_evaluation_in_bp_curr.currency}isContBpSameCurrency(e,n){return e?.wealth_evaluation_in_cont_curr&&e.wealth_evaluation_in_cont_curr.currency===n}getEvaluationAmount(e){let n;return e&&(n=this.amountPipe.transform(e.amount)),n}getEvaluationCurrency(e){let n;return e&&(n=e.currency),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=F({name:"bnxtWealthSynthesisToAccountListData",type:t,pure:!0})}}return t})();function Ue(t,r){if(t&1){let e=x();S(0,"section")(1,"bdl-bds-grid-layout",0),o(2,"attribute"),S(3,"bdl-bds-grid-layout-item",1)(4,"bdl-bds-indent-mark",2)(
15,"bdl-bds-stack",3),I(6,"bdl-bds-heading",4)(7,"bdl-bds-paragraph",5),T()()()(),S(8,"div",6)(9,"bdl-bds-account-list",7),o(10,"bnxtWealthSynthesisToAccountListData"),_e("clickAccountListItem",function(i){g(e);let s=p();return f(s.onClickAccountListItem(i))})("clickMediaListItem",function(i){g(e);let s=p();return f(s.onClickMediaListItem(i))}),T()()()}if(t&2){let e=r.$implicit,n=r.$index;P("data-section",e.business_partner.name+"|"+e.business_partner.number),l(),P("margin-top-8",a(2,6,n!==0))("margin-bottom-2",!0),l(5),z("content",e.business_partner.name),l(),z("content","\xA0- "+e.business_partner.number),l(2),z("data",a(10,8,e))}}var Be=(()=>{class t extends J{constructor(){super(...arguments),this.itemClicked=new ie,this.mediaClicked=new ie}onClickAccountListItem(e){let n=e.detail.data.id,i=e.detail.parentData?"containers":"business-partners";this.itemClicked.emit({path:i,itemId:n})}onClickMediaListItem(e){let n=e.detail.data.id,i=e.detail.parentData?"containers":"business-partners";this.mediaClicked.emit({path:i,itemId:n})}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=H(t)))(i||t)}})()}static{this.\u0275cmp=W({type:t,selectors:[["bnxt-sa-wealth-synthesis-business-partners"]],inputs:{businessPartners:"businessPartners"},outputs:{itemClicked:"itemClicked",mediaClicked:"mediaClicked"},features:[w],decls:2,vars:0,consts:[["align-vertical","bottom"],["xlg-12","","lg-12","","md-12",""],["type","h6","margin-left-2",""],["spacing","0.5","align-items","baseline","margin-left-1",""],["type","h6","font-weight","bold","styles","secondary",3,"content"],["type","body-2","fontWeight","semi-bold","styles","tertiary",3,"content"],["margin-left-3",""],[3,"clickAccountListItem","clickMediaListItem","data"]],template:function(n,i){n&1&&U(0,Ue,11,10,"section",null,V),n&2&&$(i.businessPartners)},dependencies:[ee,X,Ne,O],encapsulation:2})}}return t})();var ke=(()=>{class t{transform(e,n=!1){let i;return e===b.GREEN||e===b.DEFENSIVE?i="brand-pfm-green":e===b.BLUE||e===b.CONSERVATIVE?i="brand-pfm-blue":e===b.YELLOW||e===b.BALANCED?i="brand-pfm-yellow":e===b.ORANGE||e===b.DYNAMIC?i="brand-pfm-orange":(e===b.RED||e===b.OFFENSIVE||e===b.FLEXIBLE||e===b.GENERIC)&&(i="brand-pfm-red"),`${i}${n?"-dark":""}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=F({name:"investmentStrategyStyle",type:t,pure:!0})}}return t})();var ze=t=>({date:t}),Me=()=>({default:"quaternary",active:"primary"}),Ye=(t,r)=>({id:"with-commitment",content:t,type:"button",styles:r}),Ke=(t,r)=>({id:"without-commitment",content:t,type:"button",styles:r}),je=(t,r)=>[t,r],k=t=>({content:t}),M=t=>[t];function Ge(t,r){t&1&&(m(0,"bdl-bds-typography",7),o(1,"translate")),t&2&&d("content",a(1,1,"DASHBOARD.KPIS_SIDE_SHEET.NOT_INCLUDE.TITLE"))}var Re=(()=>{class t extends Le{constructor(){super(...arguments),this.defaultTab="with-commitment",this.selectedTab=ce("with-commitment"),this.sideSheetRef=u(Te)}ngOnInit(){this.selectedTab.set(this.defaultTab)}onClickClose(){this.sideSheetRef.close()}onClickAction(e){this.selectedTab()!=e.detail.id&&this.selectedTab.set(e.detail.id)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=H(t)))(i||t)}})()}static{this.\u0275cmp=W({type:t,selectors:[["bnxt-consolidated-wealth-side-sheet"]],inputs:{date:"date",defaultTab:"defaultTab"},features:[w],decls:39,vars:89,consts:[["margin-bottom-4","","themeHandler","",1,"consolidated-wealth-sheet-b__side-sheet__header"],["margin-left-2",""],["icon","info-circle-regular","size","7x","styles","secondary-500"],["font-type","h4","font-weight","bold","styles","secondary-500",3,"content"],[1,"consolidated-wealth-sheet-b__side-sheet__body"],["align-items","flex-start","direction","column","margin-left-6","","margin-right-5",""],["segmented","","margin-bottom-3","","size","sm",3,"clickActionItem","activeAction","actions"],["font-type","h5","font-weight","bold","margin-bottom-1","","styles","secondary-500",3,"content"],["align","left","icon-styles","default","margin-bottom-1","","type","body1",2,"font-size","16px","font-weight","600","font-style","semibold",3,"items"],["font-type","body1","line-height","16px","margin-bottom-1","","margin-left-2","","styles","secondary-500",3,"content"],["font-type","body1","line-height","16px","margin-left-2","","styles","secondary-500",3,"content"],["themeHandler","",1,"consolidated-wealth-sheet-b__side-sheet__footer"],["size","sm",3,"clickButton","content"]],template:function(n,i){n&1&&(_(0,"div",0)(1,"bdl-bds-stack",1),m(2,"bdl-bds-icon",2)(3,"bdl-bds-typography",3),o(4,"date"),o(5,"translate"),h()(),_(6,"div",4)(7,"bdl-bds-stack",5)(8,"bdl-bds-action-list",6),o(9,"translate"),o(10,"translate"),E("clickActionItem",function(L){return i.onClickAction(L)}),h(),m(11,"bdl-bds-typography",7),o(12,"translate"),m(13,"bdl-bds-list",8),o(14,"translate"),m(15,"bdl-bds-typography",9),o(16,"translate"),m(17,"bdl-bds-list",8),o(18,"translate"),m(19,"bdl-bds-typography",10),o(20,"translate"),o(21,"attribute"),o(22,"attribute"),C(23,Ge,2,3,"bdl-bds-typography",7),m(24,"bdl-bds-list",8),o(25,"translate"),m(26,"bdl-bds-typography",9),o(27,"translate"),m(28,"bdl-bds-list",8),o(29,"translate"),m(30,"bdl-bds-typography",9),o(31,"translate"),m(32,"bdl-bds-list",8),o(33,"translate"),m(34,"bdl-bds-typography",9),o(35,"translate"),h()(),_(36,"div",11)(37,"bdl-bds-button",12),o(38,"translate"),E("clickButton",function(){return i.onClickClose()}),h()()),n&2&&(l(3),d("content",D(5,21,"WEALTH.CONSOLIDATED_PATRIMONY_AT",c(56,ze,D(4,18,i.date,"dd/MM/yyyy")))),l(5),d("activeAction",i.selectedTab())("actions",Y(66,je,Y(59,Ye,a(9,24,"WEALTH.SYNTHESIS.WITH_COMMITMENT_TITLE"),B(58,Me)),Y(63,Ke,a(10,26,"WEALTH.SYNTHESIS.WITHOUT_COMMITMENT_TITLE"),B(62,Me)))),l(3),d("content",a(12,28,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.TITLE")),l(2),d("items",c(71,M,c(69,k,a(14,30,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_1")))),l(2),d("c
1ontent",a(16,32,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_1_DESCRIPTION")),l(2),d("items",c(75,M,c(73,k,a(18,34,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_2")))),l(2),d("content",a(20,36,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_2_DESCRIPTION")),P("margin-bottom-1",a(21,38,i.selectedTab()==="with-commitment"))("margin-bottom-3",a(22,40,i.selectedTab()==="without-commitment")),l(4),y(i.selectedTab()==="without-commitment"?23:-1),l(),d("items",c(79,M,c(77,k,a(25,42,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_3")))),l(2),d("content",a(27,44,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_3_DESCRIPTION")),l(2),d("items",c(83,M,c(81,k,a(29,46,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_4")))),l(2),d("content",a(31,48,"DASHBOARD.KPIS_SIDE_SHEET.INCLUDE.BULLET_POINT_4_DESCRIPTION")),l(2),d("items",c(87,M,c(85,k,a(33,50,"DASHBOARD.KPIS_SIDE_SHEET.NOT_INCLUDE.BULLET_POINT_1")))),l(2),d("content",a(35,52,"DASHBOARD.KPIS_SIDE_SHEET.NOT_INCLUDE.BULLET_POINT_1_DESCRIPTION")),l(3),d("content",a(38,54,"ACTION_BUTTONS.CLOSE")))},dependencies:[j,We,K,Q,O],styles:[`.consolidated-wealth-sheet-b__side-sheet__header[_ngcontent-%COMP%]{flex:0 1 auto;padding:16px 24px;display:flex;align-items:center;border-bottom:1px solid #e8e8e8}.consolidated-wealth-sheet-b__side-sheet__header.theme--dark[_ngcontent-%COMP%]{border-color:#3c3c3c}.consolidated-wealth-sheet-b__side-sheet__body[_ngcontent-%COMP%]{flex:1 1 auto;padding:16px 24px;overflow:auto;height:calc(100% - 200px)}.consolidated-wealth-sheet-b__side-sheet__footer[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1 0 auto;height:80px;max-height:80px;padding:0 24px;border-top:1px solid #e8e8e8}.consolidated-wealth-sheet-b__side-sheet__footer.theme--dark[_ngcontent-%COMP%]{border-color:#3c3c3c}
2/*# sourceMappingURL=consolidated-wealth-side-sheet.component-T4WEA442.css.map */`],changeDetection:0})}}return t})();var qe=()=>[1,2,3,4,5,6,7,8,9];function Qe(t,r){if(t&1&&(S(0,"bdl-bds-grid-layout",7),o(1,"attribute"),S(2,"bdl-bds-grid-layout-item",8)(3,"div",9)(4,"div",10),I(5,"bdl-bds-loader-skeleton",11),S(6,"bdl-bds-grid-layout")(7,"bdl-bds-grid-layout-item",12),I(8,"bdl-bds-loader-skeleton",13),T()()()()(),S(9,"bdl-bds-grid-layout-item",14),I(10,"bdl-bds-loader-skeleton",15),T()()),t&2){let e=r.$index;P("margin-top-2",a(1,1,e!==0))}}var He=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=W({type:t,selectors:[["bnxt-sa-wealth-synthesis-page-shimmer"]],decls:10,vars:1,consts:[["margin-top-1",""],["xlg-12","","lg-12","","md-12",""],["align-vertical","center"],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","right"],["shape","card","shimmer","","size","1x",2,"width","160px","display","inline-block"],["align-vertical","center","margin-bottom-2",""],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","left"],["align-vertical","center",1,"account-item-loader",2,"height","64px"],["xlg-3","","lg-3","","md-3","","sm-2",""],[1,"account-item-loader__left"],[1,"account-item-loader__left__lines"],["shimmer","","shape","card"],["xlg-6","","lg-6","","md-6",""],["shimmer","","shape","card","margin-top-2",""],["xlg-1","","lg-1","","md-1","","sm-1","","offset-xlg-8","","offset-lg-8","","offset-md-8","","offset-sm-5",""],["shimmer","","shape","card","size","4x"]],template:function(n,i){n&1&&(S(0,"bdl-bds-grid-layout",0),I(1,"bdl-bds-grid-layout-item",1),T(),S(2,"bdl-bds-grid-layout",2)(3,"bdl-bds-grid-layout-item",3),I(4,"bdl-bds-loader-skeleton",4),T()(),S(5,"bdl-bds-grid-layout",5)(6,"bdl-bds-grid-layout-item",6),I(7,"bdl-bds-loader-skeleton",4),T()(),U(8,Qe,11,3,"bdl-bds-grid-layout",7,V)),n&2&&(l(8),$(B(0,qe)))},dependencies:[O],encapsulation:2})}}return t})();var ae=(()=>{class t{constructor(){this.bpsWithCommitmentLoading=new v(!1),this.bpsWithoutCommitmentLoading=new v(!1),this.bpsWithCommitmentLoadingError=new v(!1),this.bpsWithoutCommitmentLoadingError=new v(!1),this.bpsWithCommitment=new v([]),this.bpsWithoutCommitment=new v([]),this.bpsEvaluation=new v(null),this.bpsEvaluationDate=new v(null),this.hasSectionBar=new v(!1),this.wealthHttpService=u(Ae)}getWealth(e,n){return this.bpsWithCommitmentLoading.notifyChange(n),this.bpsWithoutCommitmentLoading.notifyChange(!n),this.wealthHttpService.getWealth(e,n).pipe(Pe(),De(),R(i=>{n?this.bpsWithCommitment.notifyChange(i.business_partners):this.bpsWithoutCommitment.notifyChange(i.business_partners),this.bpsEvaluationDate.notifyChange(i.valorization_date),this.bpsEvaluation.notifyChange(i.wealth_evaluation_in_ref_
2curr),this.bpsWithCommitmentLoadingError.notifyChange(!1),this.bpsWithoutCommitmentLoadingError.notifyChange(!1)}),le(()=>(this.bpsWithCommitmentLoadingError.notifyChange(n),this.bpsWithoutCommitmentLoadingError.notifyChange(!n),re(null))),de(()=>{this.bpsWithCommitmentLoading.notifyChange(!1),this.bpsWithoutCommitmentLoading.notifyChange(!1)}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=pe({token:t,factory:t.\u0275fac})}}return t})();var Xe=["nav"],Je=(t,r,e,n,i,s,L,N,Ve)=>({tab:t,bpsWithCommitment:r,bpsWithCommitmentLoading:e,bpsWithoutCommitmentLoading:n,bpsWithoutCommitment:i,bpsWithCommitmentLoadingError:s,bpsWithoutCommitmentLoadingError:L,bpsEvaluation:N,bpsEvaluationDate:Ve}),Ze=t=>({obs:t}),Fe=t=>({date:t});function et(t,r){}function tt(t,r){if(t&1&&(_(0,"bdl-bds-grid-layout",7)(1,"bdl-bds-grid-layout-item",8)(2,"bdl-bds-stack",9),m(3,"bdl-bds-paragraph",10),o(4,"translate"),m(5,"bdl-bds-badge",11)(6,"bdl-bds-badge",12),h()()()),t&2){let e=p(2);l(3),d("content",D(4,1,"PATRIMONY.OVERVIEW.PERFORMANCES_YTD_CAPTION",c(4,Fe,e.startOfYear)))}}function it(t,r){if(t&1){let e=x();_(0,"bnxt-sa-wealth-synthesis-business-partners",15),E("itemClicked",function(i){g(e);let s=p(4);return f(s.onItemClicked(i))})("mediaClicked",function(i){g(e);let s=p(4);return f(s.onMediaClicked(i))}),h()}if(t&2){let e=p(3);d("businessPartners",e.bpsWithCommitment)}}function nt(t,r){if(t&1){let e=x();_(0,"bdl-bds-grid-layout",14)(1,"bdl-bds-grid-layout-item",16)(2,"bnxt-sa-generic-error",17),E("retryBtnClick",function(){g(e);let i=p(4);return f(i.onRetry())}),h()()()}}function ot(t,r){if(t&1&&C(0,it,1,1,"bnxt-sa-wealth-synthesis-business-partners",13)(1,nt,3,0,"bdl-bds-grid-layout",14),t&2){let e=p(2);y(e.bpsWithCommitmentLoadingError===!1?0:1)}}function at(t,r){t&1&&m(0,"bnxt-sa-wealth-synthesis-page-shimmer")}function st(t,r){if(t&1&&C(0,ot,2,1)(1,at,1,0,"bnxt-sa-wealth-synthesis-page-shimmer"),t&2){let e=p();y(e.bpsWithCommitmentLoading===!1?0:1)}}function rt(t,r){if(t&1){let e=x();_(0,"bnxt-sa-wealth-synthesis-business-partners",15),E("itemClicked",function(i){g(e);let s=p(4);return f(s.onItemClicked(i))})("mediaClicked",function(i){g(e);let s=p(4);return f(s.onMediaClicked(i))}),h()}if(t&2){let e=p(3);d("businessPartners",e.bpsWithoutCommitment)}}function lt(t,r){if(t&1){let e=x();_(0,"bdl-bds-grid-layout",14)(1,"bdl-bds-grid-layout-item",16)(2,"bnxt-sa-generic-error",17),E("retryBtnClick",function(){g(e);let i=p(4);return f(i.onRetry())}),h()()()}}function dt(t,r){if(t&1&&C(0,rt,1,1,"bnxt-sa-wealth-synthesis-business-partners",13)(1,lt,3,0,"bdl-bds-grid-layout",14),t&2){let e=p(2);y(e.bpsWithoutCommitmentLoadingError===!1?0:1)}}function mt(t,r){t&1&&m(0,"bnxt-sa-wealth-synthesis-page-shimmer")}function pt(t,r){if(t&1&&C(0,dt,2,1)(1,mt,1,0,"bnxt-sa-wealth-synthesis-page-shimmer"),t&2){let e=p();y(e.bpsWithoutCommitmentLoading===!1?0:1)}}function ct(t,r){if(t&1){let e=x();ne(0,et,0,0,"ng-template",2),_(1,"div",3)(2,"bdl-bds-grid-layout",4)(3,"bdl-bds-grid-layout-item",5)(4,"bdl-bds-navigation",6,1),E("clickNavItem",function(i){g(e);let s=p();return f(s.onNavigationItemClicked(i))}),h()()()(),C(6,tt,7,6,"bdl-bds-grid-layout",7),C(7,st,2,1)(8,pt,2,1)}if(t&2){let e,n=r,i=p(),s=ge(11);d("ngTemplateOutlet",s)("ngTemplateOutletContext",c(5,Ze,n)),l(4),d("items",i.navItems),l(2),y(n.bpsWithCommitmentLoading===!1&&n.bpsWithoutCommitmentLoading===!1&&n.bpsWithCommitmentLoadingError===!1&&n.bpsWithoutCommitmentLoadingError===!1?6:-1),l(),y((e=n.tab)===i.firstNavItem?7:e===i.secondNavItem?8:-1)}}function _t(t,r){if(t&1){let e=x();m(0,"bdl-bds-display-metrics",23),o(1,"date"),o(2,"translate"),o(3,"amount"),_(4,"bdl-bds-stack",24),m(5,"bdl-bds-icon",25),_(6,"bdl-bds-link",26),o(7,"translate"),E("clickLink",function(){g(e);let i=p(3);return f(i.clickOnKnowMoreAbout())}),h()()}if(t&2){let e=p(2).obs;d("header",D(2,7,"WEALTH.CONSOLIDATED_PATRIMONY_AT",c(14,Fe,D(1,4,e.bpsEvaluationDate,"dd/MM/yyyy"))))("value",a(3,10,e.bpsEvaluation.amount))("valueSup",e.bpsEvaluation.currency),l(6),d("content",a(7,12,"DASHBOARD.KPIS.FIND_OUT_MORE.BTN"))}}function ht(t,r){if(t&1&&C(0,_t,8,16),t&2){let e=p().obs;y(e.bpsWithCommitmentLoadingError===!1&&e.bpsWithoutCommitmentLoadingError===!1?0:-1)}}function ut(t,r){t&1&&m(0,"bdl-bds-loader-skeleton",22)}function bt(t,r){if(t&1&&(_(0,"bdl-bds-grid-layout",18)(1,"bdl-bds-grid-layout-item",19),m(2,"bdl-bds-heading",20),o(3,"translate"),h(),_(4,"bdl-bds-grid-layout-item",21),C(5,ht,1,1)(6,ut,1,0,"bdl-bds-loader-skeleton",22),h()()),t&2){let e=r.obs;
2l(2),d("content",a(3,2,"NAVIGATION.WEALTH.SYNTHESIS.LABEL")),l(3),y(e.bpsWithCommitmentLoading===!1&&e.bpsWithoutCommitmentLoading===!1?5:6)}}var Wi=(()=>{class t extends J{constructor(){super(),this.firstNavItem="with-commitment",this.secondNavItem="without-commitment",this.navItems=[],this.tab$=new se(this.firstNavItem),this.wealthSynthesisPageService=u(ae),this.translateService=u(q),this.router=u(ve),this.sideSheetService=u(Ie),this.setStartOfYear(),this.bpsWithCommitment=this.wealthSynthesisPageService.bpsWithCommitment.value$,this.bpsWithCommitmentLoading=this.wealthSynthesisPageService.bpsWithCommitmentLoading.value$,this.bpsWithCommitmentLoadingError=this.wealthSynthesisPageService.bpsWithCommitmentLoadingError.value$,this.bpsWithoutCommitment=this.wealthSynthesisPageService.bpsWithoutCommitment.value$,this.bpsWithoutCommitmentLoading=this.wealthSynthesisPageService.bpsWithoutCommitmentLoading.value$,this.bpsWithoutCommitmentLoadingError=this.wealthSynthesisPageService.bpsWithoutCommitmentLoadingError.value$,this.bpsEvaluation=this.wealthSynthesisPageService.bpsEvaluation.value$,this.bpsEvaluationDate=this.wealthSynthesisPageService.bpsEvaluationDate.value$,this.wealthSynthesisPageService.hasSectionBar.notifyChange(!0)}ngOnInit(){super.ngOnInit(),this.initializeNavigation(),this.whenSpaceLoaded().pipe(G(this.destroyRef),me(()=>this.wealthSynthesisPageService.getWealth(this.space.id,this.tab$.value===this.firstNavItem))).subscribe()}ngAfterViewInit(){this.setupNavigation()}initializeNavigation(){this.navItems=[{id:this.firstNavItem,text:this.translateService.instant("WEALTH.SYNTHESIS.WITH_COMMITMENT_TITLE")},{id:this.secondNavItem,text:this.translateService.instant("WEALTH.SYNTHESIS.WITHOUT_COMMITMENT_TITLE")}]}setupNavigation(){this.nav.first?.nativeElement.setActiveItem(this.tab$.value),this.nav.changes.pipe(G(this.destroyRef),R(e=>{e.first.nativeElement.setActiveItem(this.secondNavItem)})).subscribe()}onNavigationItemClicked(e){this.tab$.value!=e.detail.id&&(this.nav.first.nativeElement.setActiveItem(e.detail.id),this.tab$.next(e.detail.id),this.wealthSynthesisPageService.getWealth(this.space.id,this.tab$.value===this.firstNavItem).subscribe())}onItemClicked(e){this.router.navigate(["wealth",e.path,e.itemId,"positions"])}onMediaClicked(e){this.router.navigate(["wealth",e.path,e.itemId,"performance","cumulative"])}onRetry(){this.wealthSynthesisPageService.getWealth(this.space.id,this.tab$.value===this.firstNavItem).pipe(G(this.destroyRef)).subscribe()}clickOnKnowMoreAbout(){this.sideSheetService.open(Re,{position:"right",size:this.isDesktop&&this.screenWidth>=xe.MEDIUM?"876px":"90%",name:"consolidated-wealth-sidesheet",initialState:{date:this.wealthSynthesisPageService.bpsEvaluationDate.value,defaultTab:this.tab$.value}})}setStartOfYear(){this.startOfYear=Z.format(Z.startOfYear(Z.today()),"dd/MM/yyyy",this.translateService.currentLang)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=W({type:t,selectors:[["bnxt-wealth-synthesis"]],viewQuery:function(n,i){if(n&1&&he(Xe,5),n&2){let s;ue(s=be())&&(i.nav=s)}},features:[fe([ke,ae]),w],decls:12,vars:29,consts:[["titleTemplate",""],["nav",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[2,"position","relative","top","-4px"],["margin-top-4","","padding-bottom-2",""],["xlg-12","","lg-12","","md-12",""],["styles","default","position","top","text-only","","shrink","","font-weight","semi-bold","lowercase","","size","xlg","expand-underline","",3,"clickNavItem","items"],["margin-bottom-2","","justify-content","flex-end","align-vertical","top"],["xlg-4","","lg-4","","md-4","","sm-4",""],["spacing","1","inline",""],["type","body-2","styles","tertiary-500",3,"content"],["size","xs","styles","success","squared",""],["size","xs","styles","error","squared",""],[3,"businessPartners"],["margin-top-1","true"],[3,"itemClicked","mediaClicked","businessPartners"],["xlg-12","true","lg-12","true","md-12","true"],[3,"retryBtnClick"],["margin-top-1","","margin-bottom-1","","align-vertical","center","slot","main-banner"],["xlg-4","","lg-4","","md-4","","sm-2",""],["type","h4","font-weight","semi-bold","styles","secondary",3,"content"],["xlg-8","","lg-8","","md-8","","sm-6","","align-content","right"],["shimmer","","shape","card","size","5x","width-30","","margin-top-3","","margin-bottom-3","",2,"display","inline-block"],["align","right","header-styles","secondary-500","header-type","body-1","value-styles","secondary-500","value-font-we
2ight","bold","value-sup-type","body-2",3,"header","value","valueSup"],["align-items","center","justify-content","flex-end ","spacing","none"],["size","2x","icon","info-circle-regular","styles","tertiary-500"],["margin-left-0-5","","underline","","type","body2","font-weight","semi-bold",3,"clickLink","content"]],template:function(n,i){if(n&1&&(C(0,ct,9,7),o(1,"async"),o(2,"async"),o(3,"async"),o(4,"async"),o(5,"async"),o(6,"async"),o(7,"async"),o(8,"async"),o(9,"async"),ne(10,bt,7,4,"ng-template",null,0,ye)),n&2){let s;y((s=Ce(19,Je,[a(1,1,i.tab$),a(2,3,i.bpsWithCommitment),a(3,5,i.bpsWithCommitmentLoading),a(4,7,i.bpsWithoutCommitmentLoading),a(5,9,i.bpsWithoutCommitment),a(6,11,i.bpsWithCommitmentLoadingError),a(7,13,i.bpsWithoutCommitmentLoadingError),a(8,15,i.bpsEvaluation),a(9,17,i.bpsEvaluationDate)]))?0:-1,s)}},dependencies:[j,Se,ee,X,Be,He,Oe,Ee,K,Q,te],encapsulation:2})}}return t})();export{Wi as WealthSynthesisPageComponent};
3//# sourceMappingURL=chunk-A7CQ4EAK.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.