1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["default-src_app_ft-components_products_fund-listing_services_ag-grid-col-factory_service_ts"],{97210:(w,m,Y)=>{Y.d(m,{o:()=>E});var d=Y(26310),p=Y(68411),A=Y(79441),M=Y(22663),a=Y(20245),s=Y(69333),Q=Y(10874);const r=(h,t)=>`${(0,Q.DX)(h.productType,t)} ${t.instant("products.name")}`;var y=Y(2316),S=Y(55311),N=Y(27513);const T=p.Y.getLogger("AgGridColFactoryService");let E=(()=>{class h{constructor(e,v,f,c,u){this.siteConfigService=e,this.agGridHelperService=v,this.profileService=f,this.translateService=c,this.segmentService=u,this.unsubscribe$=new A.xQ,this.segmentService.getCurrentSegmentId$().pipe((0,M.R)(this.unsubscribe$)).subscribe(D=>this.segmentId=D)}generateColDefs(e){const v=this.siteConfigService.getPdsCountry();let f,c;if(this.segmentId===d.VI.INVESTOR&&"US"===v&&(e.hideFavoriteCol=!0),this.siteConfigService.showEMDashForUnderOneYearOldFund()&&(f={showMDashForUnder1Year:this.siteConfigService.showEMDashForUnderOneYearOldFund()}),this.siteConfigService.showEMDashForUnderSixMonthsOldFund()&&(f={showMDashForUnder6Months:this.siteConfigService.showEMDashForUnderSixMonthsOldFund()}),"US"===v)if((0,a.hQ)(e))switch(e.productType){case d.WX.CEF:c=(0,a.b2)(e,f,this.agGridHelperService);break;case d.WX.ETF:c=(0,a.Rd)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.VIP:c=(0,a.mc)(e,f,this.agGridHelperService,this.translateService);break;case d.WX._529:c=this.siteConfigService.isNjBest()?(0,a.vW)(e,f,this.agGridHelperService,this.translateService):(0,a.p_)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.SMA:c=(0,a.$h)(e,f,this.agGridHelperService,this.translateService);break;default:c=(0,a.P9)(e,f,this.agGridHelperService,this.translateService)}else if((0,a.jH)(e))switch(e.productType){case d.WX.CEF:c=(0,a.uy)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.ETF:c=(0,a.wR)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.IF:c=(0,a.lH)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.MMF:c=(0,a.kq)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.SMA:c=(0,a.K9)(e,f,this.agGridHelperService,this.translateService);break;case d.WX._529:c=(0,a.jk)(e,f,this.agGridHelperService,this.translateService);break;case d.WX.VIP:c=(0,a.fm)(e,f,this.agGridHelperService,this.translateService);break;default:c=(0,a.m)(e,f,this.agGridHelperService,this.translateService)}else if((0,a.Js)(e))switch(e.productType){case d.WX.MMF:c=(0,a.E$)(e,this.agGridHelperService,this.translateService);break;case d.WX.CEF:c=(0,a.e2)(e,this.agGridHelperService);break;case d.WX.ETF:c=(0,a.yj)(e,this.agGridHelperService,this.translateService);break;default:c=(0,a.MH)(e,this.agGridHelperService,this.translateService)}else if((0,a.YU)(e))switch(e.productType){case d.WX.CEF:c=(0,a.A0)(e,this.agGridHelperService);break;case d.WX.ETF:c=(0,a.Ue)(e,this.agGridHelperService);break;default:c=(0,a.Uq)(e,this.agGridHelperService)}else(0,a.No)(e)?this.siteConfigService.isNjBest()&&(c=(0,a.rA)(e,this.agGridHelperService)):(0,a.tI)(e)&&(c=(0,a.OF)(e,f,this.agGridHelperService,this.translateService));else"AU"===v?(0,a.hQ)(e)?c=e.productType===d.WX.ETF?(0,a.ye)(e,f,this.agGridHelperService,this.translateService):(0,a.KY)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"SG"===v?(0,a.hQ)(e)?c=(0,a._h)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"CZ"===v?(0,a.hQ)(e)?c=(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.Pz)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"ES"===v?(0,a.hQ)(e)?c=e.productType===d.WX.ETF?(0,a.pX)(e,f,this.agGridHelperService,this.translateService):(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.zy)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"CA"===v?(0,a.hQ)(e)?c=e.productType===d.WX.ETF?(0,a.Rx)(e,f,this.agGridHelperService,this.translateService):(0,a.hW)(e,f,this.agGridHelperService,this.translateService):(0,a.jH)(e)?c=e.productType===d.WX.ETF?function(h,t,e,v){return[{groupId:s.JN.FUND,headerGroupComponent:"
1calcTypeGroupHeaderComponent",headerGroupComponentParams:h,children:[e.getFundNameColDef(null,{autoHeight:!0,headerName:r(h,v),minWidth:190,cellRendererParams:{showLegendIcons:!0}})]},{groupId:s.JN.CURRENCY,children:[e.getCurrencyColDef({sortable:!0})]},{groupId:s.JN.MORNINGSTAR,headerGroupComponent:"ratingsGroupHeaderComponent",headerGroupComponentParams:h,children:[e.getMorningStarOverallRatingColDef(h,{autoHeight:!0,flex:0,minWidth:230})]},{groupId:s.JN.NAV,headerGroupComponent:"dateGroupHeaderComponent",headerGroupComponentParams:{asOfDateText:()=>h.navAsOfDate},children:[e.getNavYTDReturnColDef(h,{headerName:v.instant("products.ytd-total-returns-nav"),width:110}),e.getMarketPriceYTDReturnColDef(h,{headerName:v.instant("products.ytd-total-returns-market-price"),width:110})]},{groupId:s.JN.PERFORMANCE,headerGroupComponent:"performanceGroupHeaderComponent",headerGroupComponentParams:h,children:[e.getAvgAnnualMonthly1YrColDef(h,t),e.getAvgAnnualMonthly3YrColDef(h,{width:80}),e.getAvgAnnualMonthly5YrColDef(h,{width:80}),e.getAvgAnnualMonthly10YrColDef(h,{width:80}),e.getAvgAnnualMonthlyInceptionColDef(h,t,{width:80},!1),e.getAvgAnnualQuarterly1YrColDef(h,t,{width:80}),e.getAvgAnnualQuarterly3YrColDef(h,{width:80}),e.getAvgAnnualQuarterly5YrColDef(h,{width:80}),e.getAvgAnnualQuarterly10YrColDef(h,{width:80}),e.getAvgAnnualQuarterlyInceptionColDef(h,t,{width:80},!1),e.getAvgAnnualInceptionDateColDef(h,{width:160}),e.getCalendarYearMonthly1YrColDef(h,t),e.getCalendarYearMonthly2YrColDef(h),e.getCalendarYearMonthly3YrColDef(h),e.getCalendarYearMonthly4YrColDef(h),e.getCalendarYearMonthly5YrColDef(h),e.getCalendarYearQuarterly1YrColDef(h,t),e.getCalendarYearQuarterly2YrColDef(h),e.getCalendarYearQuarterly3YrColDef(h),e.getCalendarYearQuarterly4YrColDef(h),e.getCalendarYearQuarterly5YrColDef(h),e.getCalendarYearInceptionColDef(),e.getCumulativeMonthly1YrColDef(h,t),e.getCumulativeMonthly3YrColDef(h),e.getCumulativeMonthly5YrColDef(h),e.getCumulativeMonthly10YrColDef(h),e.getCumulativeMonthlyInceptionColDef(h,t),e.getCumulativeQuarterly1YrColDef(h,t),e.getCumulativeQuarterly3YrColDef(h),e.getCumulativeQuarterly5YrColDef(h),e.getCumulativeQuarterly10YrColDef(h),e.getCumulativeQuarterlyInceptionColDef(h,t),e.getDiscreteMonthly1YrColDef(h,t),e.getDiscreteMonthly2YrColDef(h),e.getDiscreteMonthly3YrColDef(h),e.getDiscreteMonthly4YrColDef(h),e.getDiscreteMonthly5YrColDef(h),e.getDiscreteQuarterly1YrColDef(h,t),e.getDiscreteQuarterly2YrColDef(h),e.getDiscreteQuarterly3YrColDef(h),e.getDiscreteQuarterly4YrColDef(h),e.getDiscreteQuarterly5YrColDef(h),e.getDiscreteInceptionColDef()]}]}(e,f,this.agGridHelperService,this.translateService):function(h,t,e,v){return[{groupId:s.JN.FUND,children:[e.getFundNameColDef(null,{autoHeight:!0,headerName:r(h,v),minWidth:190,cellRendererParams:{showLegendIcons:!0}})]},{groupId:s.JN.CURRENCY,children:[e.getCurrencyColDef({sortable:!0})]},{groupId:s.JN.MORNINGSTAR,headerGroupComponent:"ratingsGroupHeaderComponent",headerGroupComponentParams:h,children:[e.getMorningStarOverallRatingColDef(h,{autoHeight:!0,flex:0,minWidth:230})]},{groupId:s.JN.NAV,headerGroupComponent:"dateGroupHeaderComponent",headerGroupComponentParams:{asOfDateText:()=>h.navAsOfDate},children:[e.getNavValueColDef(h,{width:80}),e.getNavChangeValueColDef(h,{width:80})]},{groupId:s.JN.PERFORMANCE,headerGroupComponent:"performanceGroupHeaderComponent",headerGroupComponentParams:h,children:[e.getAvgAnnualMonthly1YrColDef(h,t),e.getAvgAnnualMonthly3YrColDef(h,{width:100}),e.getAvgAnnualMonthly5YrColDef(h,{width:100}),e.getAvgAnnualMonthly10YrColDef(h,{width:110}),e.getAvgAnnualMonthlyInceptionColDef(h,t,{width:150}),e.getAvgAnnualQuarterly1YrColDef(h,t,{width:100}),e.getAvgAnnualQuarterly3YrColDef(h,{width:100}),e.getAvgAnnualQuarterly5YrColDef(h,{width:100}),e.getAvgAnnualQuarterly10YrColDef(h,{width:110}),e.getAvgAnnualQuarterlyInceptionColDef(h,t,{width:150}),e.getCalendarYearMonthly1YrColDef(h,t,{width:100}),e.getCalendarYearMonthly2YrColDef(h),e.getCalendarYearMonthly3YrColDef(h),e.getCalendarYearMonthly4YrColDef(h),e.getCalendarYearMonthly5YrColDef(h),e.getCalendarYearQuarterly1YrColDef(h,t,{width:100}),e.getCalendarYearQuarterly2YrColDef(h),e.getCalendarYearQuarterly3YrColDef(h),e.getCalendarYearQuarterly4YrColDef(h),e.getCalendarYearQuarterly5YrColDef(h),e.getCalendarYearInceptionColDef(),e.getCumulativeMonthly1YrColDef(h,t),e.getCumulativeMonthly3YrColDef(h),e.getCumulativeMonthly5YrColDef(h),e.getCumulativeMonthly10YrColDef(h),e.getCumulativeMonthlyInceptionColDef(h,t),e.getCumulativeQuarterly1YrColDef(h,t),e.getCumulativeQuarterly3YrColDef(h),e.getCumulativeQuarterly5YrColDef(h),e.getCumulativeQuarterly10YrColDef(h),e.getCumulativeQuarterlyInceptionColDef(h,t),e.getDiscreteMonthly1YrColDef(h,t),e.getDiscreteMonthly2YrColDef(h),e.getDiscreteMonthly3YrColDef(h),e.getDiscreteMonthly4YrColDef(h),e.getDiscreteMonthly5YrColDef(h),e.getDiscreteQuarterly1YrColDef(h,t),e.getDiscreteQuarterly2YrColDef(h),e.getDiscreteQuarterly3YrColDef(h),e.getDiscreteQuarterly4YrColDef(h),e.getDiscreteQuarterly5YrColDef(h),e.getDiscreteInceptionColDef()]}]}(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.YV)(e,this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=e.productType===d.WX.ETF?(0,a.Dw)(e,this.agGridHelperService):(0,a.Mo)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"PL"===v?(0,a.hQ)(e)?c=(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.rU)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"BE"===v?(0,a.hQ)(e)?c=(0,a.RW)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"BR"===v?(0,a.hQ)(e)?c=(0,a.rW)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ok)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"NRC"===v?(0,a.hQ)(e)?c=(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.XO)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"ZA"===v?(0,a.hQ)(e)?c=(0,a.hN)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):["DE","AT"].includes(v)?(0,a.hQ
1)(e)?c=e.productType===d.WX.ETF?(0,a.o$)(e,f,this.agGridHelperService,this.translateService):(0,a.VA)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.dV)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):["MX","HK","MY"].includes(v)?(0,a.hQ)(e)?c=(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):"HU"===v?(0,a.hQ)(e)?c=(0,a.yH)(e,f,this.agGridHelperService,this.translateService):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.Lx)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService)):(0,a.hQ)(e)?c=e.productType===d.WX.ETF?(0,a.pX)(e,f,this.agGridHelperService,this.translateService):(0,a.yH)(e,f,this.agGridHelperService,this.translateService,this.siteConfigService.isGiftCity()):(0,a.QT)(e)?c=(0,a.je)(this.agGridHelperService,this.translateService):(0,a.YU)(e)?c=(0,a.ah)(e,this.agGridHelperService):(0,a.tI)(e)&&(c=(0,a.Yv)(e,f,this.agGridHelperService,this.translateService));return e.hideFavoriteCol&&c.forEach(u=>{u.groupId===s.JN.FUND&&(u.children=u.children.filter(D=>D.colId!==s.iF.FAV_FUND))}),(e.hideNavChangeCol||this.siteConfigService.hideNavChange(e.productType))&&c.forEach(u=>{u.groupId===s.JN.NAV&&(u.children=u.children.filter(D=>D.colId!==s.iF.NAVCHANGEVALUE))}),(e.hideFactSheetCol||this.siteConfigService.hideFactsheet(e.productType))&&c.forEach(u=>{(u.groupId===s.JN.PERFORMANCE||"BR"===v&&u.groupId===s.JN.AUM)&&(u.children=u.children.filter(D=>D.colId!==s.iF.FUND_DOCUMENT))}),e.showRemoveFavoriteCol&&c.forEach(u=>{[s.JN.PERFORMANCE].includes(u.groupId)&&u.children.push(this.agGridHelperService.getRemoveFavFundCol(e))}),(0,a.hQ)(e)&&e.productType===d.WX.VIP&&!this.profileService.isLoggedIn()&&c.forEach(u=>{u.groupId===s.JN.NAV&&u.children.splice(1,2),u.groupId===s.JN.PERFORMANCE&&(u.children.splice(0,10),u.children.splice(1,1))}),((0,a.hQ)(e)||(0,a.jH)(e)||(0,a.tI)(e))&&e.setColDefs(c),T.debug("colDefs",e.productType,c),c}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return h.\u0275fac=function(e){return new(e||h)(y.LFG(S.r5),y.LFG(s.Wg),y.LFG(S.H3),y.LFG(N.s),y.LFG(S.BP))},h.\u0275prov=y.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()}}]); 2//# sourceMappingURL=default-src_app_ft-components_products_fund-listing_services_ag-grid-col-factory_service_ts.c183b2849aaa7296d9a1.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.