1import{a as ze}from"./chunk-26HZTVQK.js";import{a as Ke,b as He}from"./chunk-CRD4UWDU.js";import{a as je}from"./chunk-MN5B2FSC.js";import{a as Ue}from"./chunk-Z3BSKA3J.js";import{a as ee}from"./chunk-UNFPTOOD.js";import{a as Fe}from"./chunk-YTZHNCUK.js";import{a as Le}from"./chunk-WCMKZUA3.js";import{_a as W,a as Ie,l as Re,p as Ne}from"./chunk-44Q2B6LW.js";import"./chunk-ZP6URRRD.js";import{d as V}from"./chunk-5MCB5N7V.js";import"./chunk-O4ZFMJ6G.js";import"./chunk-IZ4YHJMQ.js";import"./chunk-75FB5FOK.js";import"./chunk-N5G3Q7PA.js";import{a as P}from"./chunk-55FPCMVS.js";import{a as ve}from"./chunk-FFNBESOY.js";import{a as Ae}from"./chunk-XRL3XAKP.js";import"./chunk-J6J6LIWE.js";import{c as Se}from"./chunk-MCFLXYMN.js";import{B as Be,i as Me,m as Pe}from"./chunk-GNVIEGL5.js";import{a as Ce}from"./chunk-OLYSFPUH.js";import"./chunk-CVSDB6GK.js";import"./chunk-2OQCJELN.js";import"./chunk-22GORKST.js";import{e as Te}from"./chunk-VOAZQWXP.js";import{c as Ee}from"./chunk-LK4YKUUU.js";import"./chunk-5WIPZZTK.js";import"./chunk-2O6RDBQV.js";import"./chunk-WV3U3LJ5.js";import{a as we}from"./chunk-ALPSYVII.js";import{a as G}from"./chunk-DCD2V4JR.js";import{c as xe}from"./chunk-UMHCVQL5.js";import{Da as h,Ha as j,N as De,Oa as Oe,V as A}from"./chunk-JUF2FHZF.js";import{b as ye,c as B,d as H}from"./chunk-ERVKW22D.js";import"./chunk-MAXHUZHI.js";import{Na as K,P as ue,V as he,Y as v,cb as be,ib as _e,l as F,m as U,nb as ge,o as pe,pb as fe,sb as ke,t as z}from"./chunk-FNOROUKX.js";import{$b as m,Db as D,F as $,H as R,La as k,Pc as me,Qb as ae,Rc as _,Sb as C,Sc as x,Ub as E,Wb as X,Xb as q,Yb as Y,Zb as s,Zc as d,_b as a,_c as c,aa as f,ac as l,bc as N,cc as Q,dc as w,ec as re,f as I,fc as se,jc as L,kb as o,kc as O,na as p,nc as M,oc as le,pc as b,tb as oe,tc as de,uc as J,vc as Z,wa as S,xa as T,zb as y,zc as ce}from"./chunk-WO7VCCB3.js";import"./chunk-OCFTQM76.js";import"./chunk-JXRZMLLS.js";var qe=()=>({type:"icon",icon:"phone-alt",size:"3X"}),Ge=i=>[i],Ye=()=>({type:"icon",icon:"paper-plane-solid"}),$e=(()=>{class i extends xe{constructor(){super(...arguments),this.pageSheetService=p(fe),this.blAnalyticsService=p(P)}openNewMailPageSheet(){this.blAnalyticsService.trackEvent("Documents","click","Contact conseiller"),this.pageSheetService.open(Ie,{id:"newMailPageSheet"})}static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=k(i)))(n||i)}})()}static{this.\u0275cmp=y({type:i,selectors:[["bnxt-market-outlook-document-detail-advisor"]],inputs:{manager:"manager"},features:[D],decls:19,vars:26,consts:[["xlg-9","","lg-9","","md-9","","sm-6",""],["direction","column","spacing","3","justify-content","center","align-items","flex-start"],["font-type","h4","styles","secondary-500","text-align","left","font-weight","bold",3,"content"],["font-type","h6","font-weight","semi-bold","styles","secondary-500","text-align","left","lineHeight","32px",3,"content"],["styles","quaternary-700","direction","horizontal","thin","","width-20",""],["font-type","h6","styles","secondary-500","font-weight","bold",3,"content"],["spacing","5"],["type","body1","styles","secondary-500",3,"leadingMedia","content"],[3,"clickButton","content","leadingMedia"],["xlg-3","","lg-3","","md-3","","sm-2","","align-content","right"],[2,"width","160px","height","160px"],[3,"src"]],template:function(e,n){e&1&&(N(0,"bdl-bds-grid-layout")(1,"bdl-bds-grid-layout-item",0)(2,"bdl-bds-stack",1),w(3,"bdl-bds-typography",2),d(4,"translate"),w(5,"bdl-bds-typography",3),d(6,"translate"),w(7,"bdl-bds-separator",4)(8,"bdl-bds-typography",5),d(9,"titlecase"),d(10,"titlecase"),N(11,"bdl-bds-stack",6),w(12,"bdl-bds-link",7),N(13,"bdl-bds-button",8),d(14,"translate"),le("clickButton",function(){return n.openNewMailPageSheet()}),Q()()()(),N(15,"bdl-bds-grid-layout-item",9)(16,"bdl-bds-rounded-mask",10),w(17,"bdl-bds-image",11),d(18,"bnxtBase64Img"),Q()()()),e&2&&(o(3),O("content",c(4,8,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.ADVISOR.TEXT_1")),o(2),O("content",c(6,10,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.ADVISOR.TEXT_2")),o(3),O("content",c(9,12,n.manager.first_name)+" "+c(10,14,n.manager.last_name)),o(4),O("leadingMedia",x(21,Ge,_(20,qe)))("content",n.manager.phone_marketing),o(),O("content",c(14,16,"ACTION_BUTTONS.SEND_A_MESSAGE"))("leadingMedia",x(24,Ge,_(23,Ye))),o(4),O("src",c(18,18,n.manager.photo_marketing)))},dependencies:[W,U,B,Pe],encapsulation:2})}}return i})();var Qe=()=>[1,2,3],Je=()=>[1,2,3,4];function Ze(i,g){i&1&&l(0,"bdl-bds-loader-skeleton",19)}function et(i,g){i&1&&(a(0,"bdl-bds-stack",14),q(1,Ze,1,0,"bdl-bds-loader-skeleton",19,X),m()),i&2&&(o(),Y(_(0,Je)))}var Xe=(()=>{class i extends je{static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=k(i)))(n||i)}})()}
1static{this.\u0275cmp=y({type:i,selectors:[["bnxt-market-outlook-document-detail-shimmer"]],features:[D],decls:23,vars:1,consts:[["themeHandler","",1,"view-blunxt-sheet-market-outlook__sheet__body"],["footer","","has-fix-column","","id","scrollspy-container",2,"height","100%"],["slot","main-content"],["align-content","center","centered","","lg-12","","md-12","","sm-8","","xlg-12",""],["margin-bottom-11","","margin-top-8",""],["lg-12","","md-12","","sm-8","","xlg-12",""],["direction","row","spacing","3"],["shimmer","","shape","card","width-20","","size","24x",2,"max-height","168px","width","168px"],["direction","column","spacing","4","justify-content","center","align-items","flex-start"],["shape","card","shimmer","","size","2x","width-40",""],["shape","card","shimmer","","size","1x","width-30",""],["no-ipad-background","","reverse",""],["slot","right-column","margin-top-3",""],["shimmer","","shape","card","width-40","","size","2x"],["margin-top-7","","direction","column","spacing","3","align-items","flex-start"],["slot","left-column-fixed"],["align-items","flex-end","direction","column","margin-top-3","","spacing","4"],["shimmer","","shape","card","width-40","","size","1x"],["shape","card","shimmer","","size","1x","width-40",""],["shimmer","","shape","card","size","1x"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"bdl-bds-grid-main",1)(2,"bdl-bds-container",2)(3,"bdl-bds-grid-layout")(4,"bdl-bds-grid-layout-item",3)(5,"bdl-bds-grid-layout",4)(6,"bdl-bds-grid-layout-item",5)(7,"bdl-bds-stack",6),l(8,"bdl-bds-loader-skeleton",7),a(9,"bdl-bds-stack",8),l(10,"bdl-bds-loader-skeleton",9)(11,"bdl-bds-loader-skeleton",9)(12,"bdl-bds-loader-skeleton",10),m()()()(),a(13,"bdl-bds-fixed-left-column",11)(14,"div",12),l(15,"bdl-bds-loader-skeleton",13),q(16,et,3,1,"bdl-bds-stack",14,X),m(),a(18,"div",15)(19,"bdl-bds-stack",16),l(20,"bdl-bds-loader-skeleton",17)(21,"bdl-bds-loader-skeleton",18)(22,"bdl-bds-loader-skeleton",18),m()()()()()()()()),e&2&&(o(16),Y(_(0,Qe)))},dependencies:[W,ve,V],styles:[`.view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%]{-ms-flex:1 1 auto;flex:1 1 auto;padding:72px 0 0;overflow-y:auto;height:100%;-ms-overflow-style:none;scrollbar-width:none}.view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;width:0;background:transparent}.view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%] [name=switch][_ngcontent-%COMP%]{-ms-flex-pack:center;justify-content:center}.view-blunxt-sheet-market-outlook__sidesheet[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden}.view-blunxt-sheet-market-outlook__sidesheet__header[_ngcontent-%COMP%]{-ms-flex:0 1 auto;flex:0 1 auto;padding:16px 24px}.view-blunxt-sheet-market-outlook__sidesheet__body[_ngcontent-%COMP%]{-ms-flex:1 1 auto;flex:1 1 auto;padding:16px 24px;overflow-y:auto}.view-blunxt-sheet-market-outlook__sidesheet__body--title[_ngcontent-%COMP%]{margin-left:-8px;margin-right:-8px}.view-blunxt-sheet-market-outlook__sidesheet__footer[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1 0 auto;flex:1 0 auto;height:80px;max-height:80px;padding:0 24px;border-top:1px solid #e8e8e8}.view-blunxt-sheet-market-outlook__banner[_ngcontent-%COMP%]{padding:16px 0 32px}.view-blunxt-sheet-market-outlook__banner--title[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.view-blunxt-sheet-market-outlook__banner--title-motion[_ngcontent-%COMP%]{-ms-flex:0 1 48px;flex:0 1 48px;margin-right:8px}.view-blunxt-sheet-market-outlook__banner--buttons[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.view-blunxt-sheet-market-outlook__banner[_ngcontent-%COMP%] + .view-blunxt-sheet-market-outlook__banner[_ngcontent-%COMP%]{padding:0 0 16px}.view-blunxt-sheet-market-outlook__banner.view-blunxt-sheet-market-
1outlook__banner--quit[_ngcontent-%COMP%], .view-blunxt-sheet-market-outlook__banner.view-blunxt-sheet-market-outlook__banner--loading[_ngcontent-%COMP%]{padding:16px 0}.view-blunxt-sheet-market-outlook__sheet__header.theme--dark[_ngcontent-%COMP%]{border-bottom-color:#3c3c3c;background-color:#16181a}.view-blunxt-sheet-market-outlook__sheet__body.theme--dark[_ngcontent-%COMP%]{background-color:#07090b}.label-data-displayer[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}.label-data-displayer[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not(:first-child){margin-left:4px}.view-blunxt-sheet-market-outlook[_ngcontent-%COMP%] #main-content[_ngcontent-%COMP%]{margin-top:0}.view-blunxt-documents-sheet-market-outlook__charts[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}.section[_ngcontent-%COMP%]{margin-bottom:112px}.theme--dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__header[_ngcontent-%COMP%], .theme--transatlantique-be-dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__header[_ngcontent-%COMP%], .theme--transatlantique-lu-dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__header[_ngcontent-%COMP%]{border-bottom-color:#3c3c3c;background-color:#16181a}.theme--dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%], .theme--transatlantique-be-dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%], .theme--transatlantique-lu-dark[_ngcontent-%COMP%] .view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%]{background-color:#07090b}@media print{@page{size:portrait;margin:16px 0;overflow:visible;height:auto;-webkit-user-select:none;user-select:none}@supports (-moz-transform: scale(.75) translateX(-10%)){#lineChart1[_ngcontent-%COMP%], #barChart1[_ngcontent-%COMP%]{-moz-transform:scale(.75) translateX(-10%);zoom:90%}}@supports (-ms-transform: scale(.85) translateX(-10%)){#lineChart1[_ngcontent-%COMP%], #barChart1[_ngcontent-%COMP%]{-ms-transform:scale(.85) translateX(-10%)}}@supports (-o-transform: scale(.85) translateX(-10%)){#lineChart1[_ngcontent-%COMP%], #barChart1[_ngcontent-%COMP%]{-o-transform:scale(.85) translateX(-10%)}}#lineChart1[_ngcontent-%COMP%], #barChart1[_ngcontent-%COMP%]{transform:scale(.85) translate(-10%);break-inside:avoid;page-break-inside:avoid;overflow:visible;zoom:100%}#main-content[_ngcontent-%COMP%]{margin-top:0!important}.view-blunxt-sheet-market-outlook__sheet__body[_ngcontent-%COMP%]{padding-top:0!important;overflow:visible}} 2/*# sourceMappingURL=market-outlook-document-detail.component-HAOMVXXD.css.map */`]})}}return i})();var nt=i=>({isLoading:i}),it=()=>({type:"icon",icon:"download-solid"}),ot=i=>[i];function at(i,g){if(i&1){let t=L();a(0,"div",3)(1,"bdl-bds-grid-main",4,0)(3,"bdl-bds-container",5)(4,"bdl-bds-grid-layout",6),d(5,"attribute"),a(6,"bdl-bds-grid-layout-item",7)(7,"bdl-bds-grid-layout",8)(8,"bdl-bds-grid-layout-item",9)(9,"bdl-bds-stack",10)(10,"bdl-bds-rounded-mask",11),l(11,"bdl-bds-image",12),d(12,"cdn"),m(),a(13,"bdl-bds-stack",13)(14,"bdl-bds-stack",14),l(15,"bdl-bds-typography",15),d(16,"translate"),a(17,"bdl-bds-stack",16),l(18,"bdl-bds-typography",17),d(19,"translate"),l(20,"bdl-bds-typography",18),m()(),a(21,"bdl-bds-stack"),l(22,"bdl-bds-icon",19)(23,"bdl-bds-typography",20),d(24,"titlecase"),m()()()()(),a(25,"bdl-bds-fixed-left-column",21)(26,"div",22)(27,"div",23)(28,"bdl-bds-stack",24),l(29,"bdl-bds-typography",25),d(30,"translate"),l(31,"bdl-bds-typography",26),m()(),a(32,"div",27)(33,"bdl-bds-stack",28),l(34,"bdl-bds-typography",25),d(35,"translate"),a(36,"div",29),l(37,"bdl-bds-line-chart",30),d(38,"bnxtPortfolioPerformanceEvolutionsLineChartItems"),m(),a(39,"bdl-bds-stack",31),l(40,"bdl-bds-icon",32)(41,"bdl-bds-typography",33),d(42,"translate"),m(),l(43,"bdl-bds-typography",34),m()(),a(44,"div",35)(45,"bdl-bds-stack",36),l(46,"bdl-bds-typography",25),d(47,"translate"),a(48,"div",37),l(49,"bnxt-sa-risk-figure-nodes-bar-chart",38),m(),l(50,"bdl-bds-typography",39),m()(),l(51,"bdl-bds-separator",40)(52,"bnxt-market-
2outlook-document-detail-advisor",41)(53,"bdl-bds-separator",42),a(54,"bdl-bds-stack",43),l(55,"bdl-bds-icon",44)(56,"bdl-bds-typography",45),d(57,"translate"),m()(),a(58,"div",46)(59,"bdl-bds-scrollspy",47),M("changeIndex",function(n){S(t);let r=b(2);return T(r.scrollSpyTracking(n))}),m()()()()()()()()}if(i&2){let t=ce(2),e=b(2);o(),s("hasTopButton",!0),o(3),ae("margin-top-8",c(5,24,e.isDesktop)),o(7),s("src",c(12,26,"/img/generic/visu-mask_2026.png")),o(4),s("content",c(16,28,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.TITLE")),o(3),s("content",c(19,30,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.SUBTITLE")+" - "),o(2),s("content",e.documentDetail.management_solution),o(3),s("content",c(24,32,e.displayDate)),o(2),s("scrollRef",t),o(4),s("content",c(30,34,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.MACROECONOMIC_ENVIRONMENT")),o(2),s("content",e.documentDetail.macro_economic_environment),o(3),s("content",c(35,36,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.PERFORMANCE.TITLE")),o(3),s("data",c(38,38,e.documentDetail.performance_evolutions))("slicing",e.documentDetail.performance_evolutions.slicing),o(4),s("content",c(42,40,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.PERFORMANCE.TEXT")),o(2),s("content",e.documentDetail.solution_performance),o(3),s("content",c(47,42,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.ASSET_ALLOCATION")),o(3),s("graphId","barChart1")("riskFigureNodes$",e.riskFigureNodes$)("allowClickable",!1),o(),s("content",e.documentDetail.asset_allocation),o(2),s("manager",e.manager),o(4),s("content",c(57,44,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.DISCLAIMER")),o(3),s("additionnalMargin",80)("items",e.scrollspyItems)}}function rt(i,g){i&1&&l(0,"bnxt-market-outlook-document-detail-shimmer")}function st(i,g){if(i&1){let t=L();a(0,"bnxt-page-sheet-header",1),d(1,"translate"),M("closeClick",function(){S(t);let n=b();return T(n.onClose())}),re(2),a(3,"bdl-bds-button-ng-v2",2),d(4,"translate"),M("clickButton",function(){S(t);let n=b();return T(n.onDownload())}),m(),se(),m(),C(5,at,60,46,"div",3)(6,rt,1,0,"bnxt-market-outlook-document-detail-shimmer")}if(i&2){let t=g;s("title",c(1,5,"DOCUMENTS.MARKET_OUTLOOK.DETAIL.HEADER")),o(3),s("disabled",t.isLoading)("content",c(4,7,"ACTION_BUTTONS.DOWNLOAD"))("trailingMedia",x(10,ot,_(9,it))),o(2),E(t.isLoading?6:5)}}var ne=(()=>{class i extends Te{constructor(){super(...arguments),this.isLoading$=new I(!0),this.riskFigureNodes$=new I(null),this.seenScrolledBloc=[],this.pageSheetRef=p(_e),this.marketOutloookService=p(ee),this.translateService=p(ye),this.nxtTranslateService=p(j),this.bannerProgressService=p(Ee),this.blAnalyticsService=p(P)}ngOnInit(){super.ngOnInit(),this.getDisplayDate(),this.initScrollspy(),this.whenSpaceLoaded().pipe(v(this.destroyRef),f(()=>this.startOpeningFlow())).subscribe(),this.setMessages({opening:{error:{heading:"GENERIC_OPENING_ERROR_MESSAGE_HEADING",content:"GENERIC_OPENING_ERROR_MESSAGE_CONTENT",part1:this.bannerProgressService.getGenericErrorMessagePart1(),part2:this.bannerProgressService.getGenericErrorMessagePart2(),part3:this.bannerProgressService.getGenericErrorMessagePart3()},inProgress:"GENERIC_OPENING_IN_PROGRESS_MESSAGE"}}),this.blAnalyticsService.trackEvent("Documents","scrolling","Analyse macro-\xE9conomique")}doOpeningActions(){this.marketOutloookService.getDocumentDetailData(this.modelPortfolioId,this.containerId,h.formatFrDateTimeString(this.date),this.space.id).pipe(f(t=>{this.documentDetail=t.marketOutlookDocumentDetail,this.riskFigureNodes$.next(t.marketOutlookDocumentDetail.risk_figure_nodes),this.manager=t.manager,this.isLoading$.next(!1),this.markSubmitFlowAsSuccess()}),v(this.destroyRef),R(t=>this.onError(t))).subscribe()}initScrollspy(){this.scrollspyItems=[{id:"9e1856d1-0e1f-4fae-8de8-94ed6c478f52994",target:"#item-0",text:this.translateService.instant("DOCUMENTS.MARKET_OUTLOOK.DETAIL.MACROECONOMIC_ENVIRONMENT")},{id:"9e1856d1-0e1f-4fae-8de8-94ed6c478f48293",target:"#item-1",text:this.translateService.instant("DOCUMENTS.MARKET_OUTLOOK.DETAIL.PERFORMANCE.TITLE")},{id:"9e1856d1-0e1f-4fae-8de8-94ed6c478f2Z4233",target:"#item-2",text:this.translateService.instant("DOCUMENTS.MARKET_OUTLOOK.DETAIL.ASSET_ALLOCATION")}]}onClose(){this.pageSheetRef.close()}onDownload(){window.print()}scrollSpyTracking(t){switch(t.detail.currentIndex){case 1:this.seenScrolledBloc.includes(1)||(this.seenScrolledBloc.push(1),this.blAnalyticsService.trackEvent("Documents","scrolling","Performance de la solution de gestion"));break;case 2:this.seenScrolledBloc.includes(2)||(this.seenScrolledBloc.push(2),this.blAnalyticsService.trackEvent("Documents","scrolling","Allocation d\u2019actifs"));break;default:break}}getDisplayDate(){this.displayDate=h.formatToLiteralDate(this.date,this.nxtTranslateService.getCurrentLang())}static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=k(i)))(n||i)}})()}
2static{this.\u0275cmp=y({type:i,selectors:[["bnxt-market-outlook-document-detail"]],inputs:{date:"date",modelPortfolioId:"modelPortfolioId",containerId:"containerId"},features:[me([ee,Fe,pe]),D],decls:2,vars:5,consts:[["gridMainRef",""],["hidden-print","",1,"view-blunxt-sheet-market-outlook__sheet__header",3,"closeClick","title"],["size","md","styles","default","bordered","","margin-right-2","",3,"clickButton","disabled","content","trailingMedia"],["themeHandler","",1,"view-blunxt-sheet-market-outlook__sheet__body"],["footer","","has-fix-column","","id","scrollspy-container",2,"height","100%",3,"hasTopButton"],["slot","main-content"],["justify-content","flex-start","id","main-content"],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","center","centered",""],["margin-bottom-11","","margin-top-8",""],["xlg-12","","lg-12","","md-12","","sm-8",""],["direction","row","spacing","3"],["hidden-print","",2,"max-width","168px","max-height","168px"],[2,"transform","scaleX(-1)",3,"src"],["direction","column","spacing","2","justify-content","center","align-items","flex-start"],["direction","column","spacing","0","justify-content","flex-start","align-items","flex-start"],["font-type","h3","font-weight","bold","styles","secondary",3,"content"],["direction","row","justify-content","flex-start","flex-wrap","wrap","spacing","0"],["font-type","h3","font-weight","semi-bold","styles","secondary-500","margin-right-1","",3,"content"],["font-type","h3","styles","secondary-500",3,"content"],["icon","calendar-alt","size","2x","styles","tertiary-500"],["font-type","body2","font-weight","semi-bold","styles","tertiary-500",3,"content"],["no-ipad-background","","reverse","",3,"scrollRef"],["slot","right-column"],["id","item-0",1,"section"],["direction","column","spacing","5","align-items","flex-start","justify-content","flex-start"],["font-type","h4","styles","secondary-500","font-weight","bold",3,"content"],["line-height","32px","font-type","h6","font-weight","semi-bold","text-align","left","styles","secondary-500",3,"content"],["id","item-1",1,"section"],["direction","column","spacing","5","align-items","flex-start","justify-content","flex-start","margin-bottom-14",""],["print-12","",1,"view-blunxt-documents-sheet-market-outlook__charts"],["id","lineChart1","bnxtPerformanceEvolutionsLineChart","",3,"data","slicing"],["align-items","left"],["icon","info-circle","styles","contextual-info","size","3x"],["text-align","left","styles","quaternary-500",3,"content"],["font-type","h6","styles","secondary-500","line-height","32px","text-align","left",3,"content"],["id","item-2",1,"section"],["direction","column","spacing","5","align-items","flex-start","justify-content","flex-start","margin-bottom-8",""],["print-12","",2,"width","100%"],[3,"graphId","riskFigureNodes$","allowClickable"],["font-type","h6","line-height","32px","text-align","left","styles","secondary-500",3,"content"],["styles","quaternary-700","direction","horizontal","thin","","margin-bottom-8","","hidden-print",""],["hidden-print","",3,"manager"],["styles","quaternary-700","direction","horizontal","thin","","margin-top-8","","margin-bottom-8","","hidden-print",""],["align-items","flex-start","spacing","1","margin-bottom-4",""],["icon","info-circle","styles","info","size","2x"],["styles","tertiary","font-type","body2","text-align","left",3,"content"],["slot","left-column-fixed","hidden-print",""],["target","#scrollspy-container",2,"transition","all 0.3s ease-in-out",3,"changeIndex","additionnalMargin","items"]],template:function(e,n){if(e&1&&(C(0,st,7,12),d(1,"async")),e&2){let r;E((r=x(3,nt,c(1,1,n.isLoading$)))?0:-1,r)}},dependencies:[z,V,Xe,$e,Ke,ze,Ae,ge,K,H,F,U,He,B,Ce,G],styles:[`.view-blunxt-sheet-market-outlook__sheet__body{-ms-flex:1 1 auto;flex:1 1 auto;padding:72px 0 0;overflow-y:auto;height:100%;-ms-overflow-style:none;scrollbar-width:none}.view-blunxt-sheet-market-outlook__sheet__body::-webkit-scrollbar{display:none;width:0;background:transparent}.view-blunxt-sheet-market-outlook__sheet__body [name=switch]{-ms-flex-pack:center;justify-content:center}
2.view-blunxt-sheet-market-outlook__sidesheet{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden}.view-blunxt-sheet-market-outlook__sidesheet__header{-ms-flex:0 1 auto;flex:0 1 auto;padding:16px 24px}.view-blunxt-sheet-market-outlook__sidesheet__body{-ms-flex:1 1 auto;flex:1 1 auto;padding:16px 24px;overflow-y:auto}.view-blunxt-sheet-market-outlook__sidesheet__body--title{margin-left:-8px;margin-right:-8px}.view-blunxt-sheet-market-outlook__sidesheet__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1 0 auto;flex:1 0 auto;height:80px;max-height:80px;padding:0 24px;border-top:1px solid #e8e8e8}.view-blunxt-sheet-market-outlook__banner{padding:16px 0 32px}.view-blunxt-sheet-market-outlook__banner--title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.view-blunxt-sheet-market-outlook__banner--title-motion{-ms-flex:0 1 48px;flex:0 1 48px;margin-right:8px}.view-blunxt-sheet-market-outlook__banner--buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.view-blunxt-sheet-market-outlook__banner+.view-blunxt-sheet-market-outlook__banner{padding:0 0 16px}.view-blunxt-sheet-market-outlook__banner.view-blunxt-sheet-market-outlook__banner--quit,.view-blunxt-sheet-market-outlook__banner.view-blunxt-sheet-market-outlook__banner--loading{padding:16px 0}.view-blunxt-sheet-market-outlook__sheet__header.theme--dark{border-bottom-color:#3c3c3c;background-color:#16181a}.view-blunxt-sheet-market-outlook__sheet__body.theme--dark{background-color:#07090b}.label-data-displayer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}.label-data-displayer *:not(:first-child){margin-left:4px}.view-blunxt-sheet-market-outlook #main-content{margin-top:0}.view-blunxt-documents-sheet-market-outlook__charts{width:100%;box-sizing:border-box}.section{margin-bottom:112px}.theme--dark .view-blunxt-sheet-market-outlook__sheet__header,.theme--transatlantique-be-dark .view-blunxt-sheet-market-outlook__sheet__header,.theme--transatlantique-lu-dark .view-blunxt-sheet-market-outlook__sheet__header{border-bottom-color:#3c3c3c;background-color:#16181a}.theme--dark .view-blunxt-sheet-market-outlook__sheet__body,.theme--transatlantique-be-dark .view-blunxt-sheet-market-outlook__sheet__body,.theme--transatlantique-lu-dark .view-blunxt-sheet-market-outlook__sheet__body{background-color:#07090b}@media print{@page{size:portrait;margin:16px 0;overflow:visible;height:auto;-webkit-user-select:none;user-select:none}@supports (-moz-transform: scale(.75) translateX(-10%)){#lineChart1,#barChart1{-moz-transform:scale(.75) translateX(-10%);zoom:90%}}@supports (-ms-transform: scale(.85) translateX(-10%)){#lineChart1,#barChart1{-ms-transform:scale(.85) translateX(-10%)}}@supports (-o-transform: scale(.85) translateX(-10%)){#lineChart1,#barChart1{-o-transform:scale(.85) translateX(-10%)}}#lineChart1,#barChart1{transform:scale(.85) translate(-10%);break-inside:avoid;page-break-inside:avoid;overflow:visible;zoom:100%}#main-content{margin-top:0!important}.view-blunxt-sheet-market-outlook__sheet__body{padding-top:0!important;overflow:visible}} 3/*# sourceMappingURL=market-outlook-document-detail.component-HAOMVXXD.css.map */ 4`],encapsulation:2,changeDetection:0})}}return i})();var lt=["dataTableDocuments"],dt=["headerButtonDiv"],ct=()=>({type:"icon",icon:"download"}),mt=i=>[i];function pt(i,g){if(i&1){let t=L();a(0,"bdl-bds-positioned-badge",10),d(1,"async"),d(2,"async"),a(3,"bdl-bds-button-ng-v2",11,3),d(5,"translate"),M("clickButton",function(){S(t);let n=b(3);return T(n.onBulkDownloadBtnClick())}),m()()}if(i&2){let t=b(3);s("visible",c(1,4,t.selectedDocs$).length>1)("text",c(2,6,t.selectedDocs$).length),o(3),s("leadingMedia",x(11,mt,_(10,ct)))("content",c(5,8,"ACTION_BUTTONS.DOWNLOAD"))}}function ut(i,g){if(i&1&&(a(0,"div",6)(1,"div",7),l(2,"bdl-bds-search",8,1),m(),a(4,"div",9,2),C(6,pt,6,13,"bdl-bds-positioned-badge",10),d(7,"async"),m()()),i&2){let t=b(2);o(2),s("webDocuments",t.allCurrentWebDocuments),o(4),E(c(7,2,t.isLoading$)===!1&&(t.allCurrentWebDocuments==null?null:t.allCurrentWebDocuments.length)>1?6:-1)}}function ht(i,g){if(i&1&&(a(0,"bdl-bds-data-table-documents",4,0),C(2,ut,8,4,"div",6),m()),i&2){let t=b();s("hidden",!((t.allCurrentWebDocuments==null?null:t.allCurrentWebDocuments.length)>0))("sort",!1),o(2),E(t.isMarketOutlook?-1:2)}}function bt(i,g){i&1&&(a(0,"bdl-bds-card",5)(1,"div",12)(2,"div",13),l(3,"bdl-bds-icon",14),a(4,"bdl-bds-stack",15),l(5,"bdl-bds-typography",16),d(6,"translate"),l(7,"bdl-bds-typography",17),d(8,"translate"),m()()()()),i&2&&(o(5),s("content",c(6,2,"DOCUMENTS.NO_DOCUMENT_DISPLAYED")),o(2),s("content",c(8,4,"DOCUMENTS.NO_DOCUMENT_DISPLAYED_DESCRIPTION")))}var In=(()=>{class i extends Ue{constructor(){super(...arguments),this.currentPage=0,this.renderer=p(oe),this.documentsHttpService=p(Re),this.cdnPipe=p(G),this.ibanPipe=p(Me),this.toastService=p(ke),this.fileService=p(Se),this.blAnalyticsService=p(P),this.router=p(he),this.nxtTranslateService=p(j),this._selectedDocs$=new I([])}get selectedDocs$(){return this._selectedDocs$.asObservable()}get selectedDocs(){return this._selectedDocs$.value}ngAfterViewInit(){this.subscribeToNavigate(),this.subscribeToLoading()}setDataTable(){this.setDataTableColumns(),this.dataTableDocuments&&(this.dataTableDocuments.nativeElement.loadingMotions=[{theme:"default",path:this.cdnPipe.transform("/motion/generic/spinners/epbs-spinner-orange-dark.json")},{theme:"dark",path:this.cdnPipe.transform("/motion/generic/spinners/epbs-spinner-orange-dark-dark.json")}])}setDataTableColumns(){this.dataTableDocuments&&(this.dataTableDocuments.nativeElement.columns=[this.translateService.instant("DOCUMENTS.DATA_TABLE.HEADERS.DATE"),this.isMarketOutlook?null:this.translateService.instant("DOCUMENTS.DATA_TABLE.HEADERS.TYPE"),this.translateService.instant("DOCUMENTS.DATA_TABLE.HEADERS.FOLDER"),""].filter(t=>t!==null),this.isMarketOutlook&&(this.dataTableDocuments.nativeElement.columnSizes=["auto","auto","fitted"],this.dataTableDocuments.nativeElement.checkable=!1,this.dataTableDocuments.nativeElement.rowButtonIcon="eye"))}initHeaderDownloadButton(){this.isMarketOutlook||this.selectedDocs$.pipe(f(()=>{this.selectedDocs.length>=this.minSelectedDocsForBulkDownload?this.enableBulkDownloadBtn():this.resetBulkDownloadBtn()}),v(this.destroyRef)).subscribe()}updateHeaderButtonStyle(){this.observer=new MutationObserver(t=>{for(let e of t)if(e.type==="childList"){let n=this.dataTableDocuments.nativeElement.querySelector(".data-table-row__cell--centered");if(n){let r=n.getBoundingClientRect().width-32;r&&this.renderer.setStyle(this.headerButtonDiv.nativeElement,"flex",`0 0 ${r}px`),this.observer.disconnect();break}}}),this.dataTableDocuments&&this.observer.observe(this.dataTableDocuments.nativeElement,{childList:!0,subtree:!0})}addDataTableEventsListener(){this.dataTableDocuments&&(this.dataTableDocuments.nativeElement.addEventListener("clickCheckboxDocument",t=>{this.onClickDataTableCheckbox(t)}),this.dataTableDocuments.nativeElement.addEventListener("changePagination",t=>{this.onChangePagination(t)}),this.addDataTableClickRowDocumentEventListener(),this.addDataTableClickMediaDocumentEventListener())}addDataTableClickRowDocumentEventListener(){this.dataTableDocuments.nativeElement.addEventListener("clickRowDocument",t=>{let e=t;if(this.isMarketOutlook)this.blAnalyticsService.trackEvent("Documents","click","Ouvrir un document"),this.pageSheetService.open(ne,{stackable:!0,initialState:{date:e.detail.data.date,modelPortfolioId:e.detail.data.containerModelId,containerId:e.detail.data.containerId}});else{let n=e?.detail?.data;this.selectedDocs.findIndex(u=>u.docId===n.docId)===-1&&this.onRowClick(e)}})}addDataTableClickMediaDocumentEventListener(){this.dataTableDocuments.nativeElement.addEventListener("clickMediaDocument",t=>{let e=t;this.isMarketOutlook?this.pageSheetService.open(ne,{stackable:!0,initialState:{date:e.detail.data.date,modelPortfolioId:e.detail.data.containerModelId,containerId:e.detail.data.containerId}}):this.onDownloadBtnClick(e)})}subscribeToLoading(){this.isLoading$.pipe($(t=>!t),f(()=>{setTimeout(()=>{this.setDataTable(),this.addDataTableEventsListener(),this.initHeaderDownloadButton(),this.updateHeaderButtonStyle(),this.webDocuments?.length>0&&(this.setPagination(),this.displayPage())},100)}),v(this.destroyRef)).subscribe()}onBulkDownloadBtnClick(){this.bulkDownloadBtn.startSpinning(),this.startSubmitFlow()}doSubmit(){let t=this.tableDocsToWebDocs(this.selectedDocs);this.download(t).pipe(R(e=>(this.onBulkDownloadFailed(),this.onError(e))),f(e=>{this.bulkDownloadBtn.stopSpinning(),this.unselectAllDocs(),this.resetBulkDownloadBtn(),this.onBulkDownloadSucceeded(e,t),this.markSubmitFlowAsSuccess()})).subscribe()}download(t){return this.documentsHttpService.downloadWebDocuments(t).pipe(Oe(),v(this.destroyRef))}setPagination(){this.dataTableDocuments&&(this.dataTableDocuments.nativeElement.pagination={total:this.webDocuments.length,step:2,items:this.maxDocsPerPage})}displayPage(t=0){this.dataTableDocuments?.nativeElement.setData(this.mapPage(t))}subscribeToNavigate(){this.router.events.pipe($(t=>t instanceof ue),v(this.destroyRef)).subscribe(()=>{this.allCurrentWebDocuments=this.getAllCurrentWebDocuments(this.allWebDocuments),setTimeout(()=>{this.setDataTable(),this.doDefaultFilter(!0),this.initHeaderDownloadButton(),this.updateHeaderButtonStyle()},10)})}
4filterDocuments(t){this.resetFilters(!1),t.facets?.forEach(e=>{switch(e.id){case"folder":{let n=e.choices.filter(u=>u.selected).map(u=>u.value),r=[...new Set(e.choices.flatMap(u=>u.children).filter(u=>u?.selected).map(u=>u.value))];(n.length>0||r.length>0)&&this.filterDocumentsByFolder(n,r);break}case"calendar":{let n=e.value?.begin,r=e.value?.end;n&&this.filterDocumentsByDate(n,r);break}default:break}}),this.resetBulkDownloadBtn()}resetFilters(t){t&&this.search.nativeElement.reset(!1);let e=Le.getPartOfCurrentUrlAtIndex(2);this.webDocuments=[...this.allCurrentWebDocuments],!this.isMarketOutlook&&e&&this.filterDocumentsByType([e.toUpperCase()])}filterDocumentsByType(t){this.webDocuments=this.webDocuments.filter(e=>t.includes(e.report_type))}filterDocumentsByFolder(t,e){this.webDocuments=this.webDocuments.filter(n=>t.includes(n.business_partner_number)||e.includes(n.container_number))}filterDocumentsByDate(t,e){this.webDocuments=this.webDocuments.filter(n=>e?h.isBetween(new Date(n.creation_date),t.toDate(),e.endOf("day").toDate()):h.isAfter(new Date(n.creation_date),t.toDate()))}tableDocsToWebDocs(t){return t.map(e=>({id:e.docId,business_partner_number:e.bp_number}))}onRowClick(t){let e=t?.detail?.data,n=this.webDocuments.find(r=>r.id===e?.docId);this.openDocumentFullSheet(n)}onDownloadBtnClick(t){let e=t?.detail?.data;if(e&&e.type!=="loading"){let n=this.tableDocsToWebDocs([e]);this.download(n).pipe(f(r=>{this.openDownloadedDocsAndMarkThemAsSeen(r,n)}),R(r=>{throw this.toastService.show({content:this.translateService.instant("DOCUMENTS.SINGLE_DOCUMENT_DOWNLOAD_ERROR_MSG"),styles:be.Error,showDuration:De.longDuration}),r})).subscribe()}}unselectAllDocs(){this._selectedDocs$.next([]),this.refreshCurrentPage()}openDownloadedDocsAndMarkThemAsSeen(t,e){this.fileService.download(t,this.constructDownloadedDocsName(e))}onBulkDownloadSucceeded(t,e){this.openDownloadedDocsAndMarkThemAsSeen(t,e)}onBulkDownloadFailed(){this.bulkDownloadBtn.stopSpinning(),this.enableBulkDownloadBtn()}mapPage(t){return this.getPage(t).map(e=>{let n=h.toDate(e.creation_date),r,u=`DOCUMENTS.TYPES.${e.report_type}`,ie=this.translateService.instant(u);return e.status==="pending"?r="loading":r=e.seen?"consulted":"not consulted",{clickable:e.status==="available"||this.isMarketOutlook,docId:e.id,containerId:e.container_id,containerModelId:e.container_model_id,bp_number:e.business_partner_number,type:r,dateMoment:h.format(n,"yyyy-MM-dd HH:mm"),date:h.format(n,"dd/MM/yyyy"),dateTime:this.isMarketOutlook?void 0:h.format(n,"HH:mm"),typeName:ie===u?e.report_type:ie,typePeriod:e.start_period&&e.end_period?this.translateService.instant("DOCUMENTS.DOC_PERIOD",{startPeriod:h.format(h.toDate(e.start_period),"dd MMMM yyyy",this.nxtTranslateService.getCurrentLang()),endPeriod:h.format(h.toDate(e.end_period),"dd MMMM yyyy",this.nxtTranslateService.getCurrentLang())}):void 0,accountName:e.business_partner_name,accountBP:e.business_partner_number,accountCode:e.container_name,accountType:e.money_account_name,accountIban:e.iban?this.ibanPipe.transform(e.iban):void 0,manual:e.status==="available"?e.generated_on_demand:void 0,loadingText:e.status==="pending"?this.translateService.instant("DOCUMENTS.DOC_GENERATION_IN_PROGRESS"):void 0}})}getPage(t){return this.webDocuments.slice(t*this.maxDocsPerPage,(t+1)*this.maxDocsPerPage)}onChangePagination(t){this.currentPage=t.detail.page,this.displayPage(this.currentPage),this.resetBulkDownloadBtn()}refreshCurrentPage(){this.displayPage(this.currentPage)}onClickDataTableCheckbox(t){let e=[];t.detail?.selected.forEach(n=>{n&&e.push(n.data)}),this._selectedDocs$.next(e)}buildDocumentBadge(t){let e;return this.isMarketOutlook&&t.risk_profile?e={text:this.translateService.instant(`RISK_PROFILE.${t.risk_profile.toUpperCase()}`),color:this.getRiskProfileColor(t.risk_profile),size:"md"}:t.private_container&&(e={text:this.translateService.instant("DOCUMENTS.PRIVATE_BADGE").toUpperCase(),color:"primary",size:"sm"}),e}getRiskProfileColor(t){switch(t){case A.BLUE:return"brand-pfm-blue";case A.GREEN:return"brand-pfm-green";case A.ORANGE:return"brand-pfm-orange";case A.RED:return"brand-pfm-red";case A.YELLOW:return"brand-pfm-yellow";default:return}}static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=k(i)))(n||i)}})()}static{this.\u0275cmp=y({type:i,selectors:[["bnxt-data-documents"]],viewQuery:function(e,n){if(e&1&&de(lt,5)(dt,5),e&2){let r;J(r=Z())&&(n.dataTableDocuments=r.first),J(r=Z())&&(n.headerButtonDiv=r.first)}},features:[D],decls:3,vars:1,consts:[["dataTableDocuments",""],["search",""],["headerButtonDiv",""],["bulkDownloadBtn",""],[3,"hidden","sort"],["vertical-alignment","center"],["slot","header"],[1,"view-blunxt-d
4ocuments__data-table__header"],["bnxtSaDataDocumentsSearch","","carousel-styles","default",3,"webDocuments"],[2,"display","flex","align-items","center","justify-content","center"],["size","sm","styles","success","rounded","",3,"visible","text"],["size","sm","disabled","","outlined","",3,"clickButton","leadingMedia","content"],["slot","card-content"],["id","no-available-documents"],["icon","info-circle-regular","size","5x","styles","secondary-500"],["direction","column","align-items","flex-start","spacing","0"],["font-weight","bold",3,"content"],[3,"content"]],template:function(e,n){e&1&&(a(0,"bnxt-documents-list"),C(1,ht,3,3,"bdl-bds-data-table-documents",4)(2,bt,9,6,"bdl-bds-card",5),m()),e&2&&(o(),E((n.allCurrentWebDocuments==null?null:n.allCurrentWebDocuments.length)>0?1:2))},dependencies:[z,we,K,Be,H,Ne,F,B],styles:[`.view-blunxt-documents__data-table__header[_ngcontent-%COMP%]{display:flex;align-items:center}#card-no-available-documents[_ngcontent-%COMP%]{height:90px}#no-available-documents[_ngcontent-%COMP%]{display:flex;align-items:center}#no-available-documents[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){margin-left:16px} 5/*# sourceMappingURL=data-documents.component-HWGJGWU5.css.map */`]})}}return i})();export{In as DataDocumentsComponent}; 6//# sourceMappingURL=chunk-BQX4G7ES.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.