1(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["fund-comparison"],{24364:(b,N,p)=>{"use strict";p.r(N),p.d(N,{FundComparisonModule:()=>Ja});var F=p(54364),w=p(44022),C=p(41896),e=p(2316),m=p(19369),s=p(79441),g=p(42720),_=p(81134),f=(()=>{return(t=f||(f={})).LEFT="LEFT",t.RIGHT="RIGHT",t.CENTER="CENTER",f;var t})(),c=(()=>{return(t=c||(c={})).STRING="STRING",t.ARRAY="ARRAY",t.HTML="HTML",c;var t})(),u=(()=>{return(t=u||(u={})).TEXT="TEXT",t.DATE="DATE",t.PERCENT="PERCENT",t.RATING="RATING",u;var t})(),k=(()=>{return(t=k||(k={})).FULL="FULL",t.TOP_10="TOP_10",t.TOP_10_MMF="TOP_10_MMF",t.DAILY="DAILY",k;var t})(),S=p(65761),D=p.n(S),Z=p(94358),H=p.n(Z),me=p(78113),ue=p.n(me),pe=p(68411),P=p(26310),fe=p(26954),Q=p.n(fe),ge=p(96604),$=p.n(ge),W=p(5974),_e=p(70160),R=p.n(_e),K=p(97735),ve=p(67676),X=p(33927),he=p(18293),Te=p(22663),h=p(53619),Ce=p(81677),ye=p(49592),ee=p(80509);class Se extends ee.I{constructor(r,n){super(r,n)}toDomain(r){const n=[];return Array.isArray(r)&&r.forEach(i=>{const a=this.createMapper(we).toDomain(i);a&&n.push(a)}),n}}class we extends ee.I{constructor(r,n){super(r,n)}toDomain(r){return{asOfDate:r.asofdate,securityName:r.secname,percentageOfNetAssets:r.pctofnetassets,percentageOfNetAssetsStd:r.pctofnetassetsstd}}}var ke=p(13492),Ne=p(96718),xe=p(4008),Fe=p(70553),Ae=p(86663),J=p(55311),De=p(92534);let Ie=(()=>{class t extends Fe.v{constructor(n,i,a){super(n,i),this.mapperFactory=a}register(n,i){return super.register(n,this.getVariables(i)).pipe((0,X.U)(a=>{const o=a?.data?.Portfolio?a.data.Portfolio:null,d={};return{portfolio:o?.portfolio?{fullHoldings:o.portfolio.fullholdings?this.mapperFactory.createMapper(ke.x,d).toDomain(o.portfolio.fullholdings):null,topHoldings:o.portfolio.topholdings?this.mapperFactory.createMapper(Ne.pv,d).toDomain(o.portfolio.topholdings):null,topTenHoldingsMoneyFunds:o.portfolio.toptenholdingsmoneyfunds?this.mapperFactory.createMapper(xe.p,d).toDomain(o.portfolio.toptenholdingsmoneyfunds):null,dailyHoldings:o.portfolio.dailyholdings?this.mapperFactory.createMapper(Se,d).toDomain(o.portfolio.dailyholdings):null}:null}}))}getVariables(n){return{countrycode:this.getCountry(),languagecode:this.getLanguage(),fundid:n.fundId}}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(Ae._M),e.LFG(J.r5),e.LFG(De.$))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T={FUND_OBJECTIVE:{key:"FUND_OBJECTIVE",isInfoItem:!1,label:"products.FUND_OBJECTIVE",field:"fundObjective",fieldType:c.HTML,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:FundObjective"},SHARE_CLASS:{key:"SHARE_CLASS",isInfoItem:!1,label:"pds.SHARE_CLASS_NAME",field:"shareClass.shareClassName",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:ShareClass"},FUND_CODE:{key:"FUND_CODE",isInfoItem:!1,label:"products.ppss-fund-code",field:"shareClass.identifiers.taid",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:FundCode"},ADM:{key:"ADM",isInfoItem:!1,label:"products.ppss-adm",field:"shareClass.identifiers.adm",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:ADM",tooltip:"products.ppss-fi-adm-tooltip"},DSC:{key:"DSC",isInfoItem:!1,label:"products.ppss-dsc",field:"shareClass.identifiers.dsc",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:DSC"},LOW_LOAD:{key:"LOW_LOAD",isInfoItem:!1,label:"products.ppss-low-load",field:"shareClass.identifiers.lowload",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:LOW_LOAD"},FRONT_END:{key:"FRONT_END",isInfoItem:!1,label:"products.ppss-frontend",field:"shareClass.identifiers.frontend",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:FRONT_END"},NAV:{key:"NAV",isInfoItem:!1,label:"pds.NAV_VALUE",alignType:f.RIGHT,children:[{key:"NAV_VALUE",field:"shareClass.nav.navValue",fieldType:c.STRING,headerType:u.TEXT},{key:"NAV_AS_OF_DATE",field:"shareClass.nav.navAsOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:Nav"},NAV_CHANGE:{key:"NAV_CHANGE",isInfoItem:!1,label:"pds.DAILY_NAV_CHANGE",alignType:f.RIGHT,children:[{key:"NAV_CHANGE_VALUE",field:"shareClass.nav.navChangeValue",fieldType:c.STRING,headerType:u.TEXT},{key:"NAV_CHANGE_PERCENT",field:"shareClass.nav.navChangePercentage",fieldType:c.STRING,headerType:u.PERCENT}],caveatPlacement:"Fund Compare Global:NavChange"},TOTAL_NET_ASSET:{key:"TOTAL_NET_ASSET",isInfoItem:!1,label:"pds.TOTAL_NET_ASSETS",alignType:f.RIGHT,children:[{key:"TOTAL_NET_ASSET_VALUE",field:"aum.totalNetAssets",fieldType:c.STRING,headerType:u.TEXT},{key:"TOTAL_NET_ASSET_AS_OF_DATE",field:"aum.asOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:TotalNetAsset"},DISTRIBUTION_FREQUENCY:{key:"DISTRIBUTION_FREQUENCY",isInfoItem:!1,label:"products.ppss-distribution-frequency",field:"shareClass.dividendFrequency",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:DISTRIBUTION_FREQUENCY"},DIST_AMT_WITH_AS_OF_DATE:{key:"DIST_AMT_WITH_AS_OF_DATE",isInfoItem:!1,label:"pds.INCM_DIST_AMT",alignType:f.RIGHT,children:[{key:"DISTRIBUTION_AMOUNT_VALUE",field:"distribution.incomeDistributionAmount",fieldType:c.STRING,headerType:u.TEXT},{key:"DISTRIBUTION_AMOUNT_AS_OF_DATE",field:"distribution.distributionAsOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:DIST_AMT_WITH_AS_OF_DATE"},DISTRIBUTION_AMOUNT:{key:"DISTRIBUTION_AMOUNT",isInfoItem:!1,label:"products.ppss-distribution-amnt",field:"distribution.incomeDistributionAmount",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:DISTRIBUTION_AMOUNT"},DISTRIBUTION_PAYABLE_DATE:{key:"DISTRIBUTION_PAYABLE_DATE",isInfoItem:!1,label:"pds.INCM_DIST_PAYABLE_DATE",alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:PAYABLE_DATE",children:[{key:"DISTRIBUTION_PAYABLE_DATE_VALUE",field:"distribution.incomeDistributionPayableDate",fieldType:c.STRING,headerType:u.TEXT},{key:"DISTRIBUTION_PAYABLE_DATE_AS_OF_DATE",field:"distribution.distributionAsOfDate",fieldType:c.STRING,headerType:u.DATE}]},DISTRIBUTION_YIELD:{key:"DISTRIBUTION_YIELD",isInfoItem:!1,label:"pds.DIVIDEND_YIELD",alignType:f.RIGHT,children:[{key:"DISTRIBUTION_YIELD_VALUE",field:"shareClass.yields.dividendYield",fieldType:c.STRING,headerType:u.TEXT},{key:"DISTRIBUTION_YIELD_AS_OF_DATE",field:"shareClass.yields.asOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:DISTRIBUTION_YIELD"},REINVESTMENT_AMOUNT:{key:"REINVESTMENT_AMOUNT",isInfoItem:!1,label:"products.ppss-reinvestment-amnt",field:"distribution.reInvestmentAmount",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:REINVESTMENT_AMOUNT"},PAYABLE_DATE:{key:"PAYABLE_DATE",isInfoItem:!1,label:"products.ppss-payable-date",field:"distribution.incomeDistributionPayableDate",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:PAYABLE_DATE"},MER:{key:"MER",isInfoItem:!1,label:"products.ppss-mer",alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:MER",children:[{key:"MER_VALUE",field:"shareClass.charges.mer",fieldType:c.STRING,headerType:u.TEXT},{key:"MER_AS_OF_DATE",field:"shareClass.charges.asOfDate",fieldType:c.STRING,headerType:u.DATE}]}
1,MANAGEMENT_FEE:{key:"MANAGEMENT_FEE",isInfoItem:!1,label:"products.ppss-management-fee",alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:MANAGEMENT_FEE",children:[{key:"MANAGEMENT_FEE_VALUE",field:"shareClass.charges.managementFee",fieldType:c.STRING,headerType:u.TEXT},{key:"MANAGEMENT_FEE_AS_OF_DATE",field:"shareClass.charges.asOfDate",fieldType:c.STRING,headerType:u.DATE}]},RISK_CLASSIFICATION:{key:"RISK_CLASSIFICATION",isInfoItem:!1,label:"products.ppss-risk-classification",field:"shareClass.riskClassificationText",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:RISK_CLASSIFICATION"},ISIN:{key:"ISIN",isInfoItem:!1,label:"pds.ISIN",field:"shareClass.identifiers.isin",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:Isin"},INCEPTION_DATE:{key:"INCEPTION_DATE",isInfoItem:!1,label:"pds.SHCL_INC_DT_LOCAL",field:"shareClass.inceptionDate",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:InceptionDate"},CURRENCY:{key:"CURRENCY",isInfoItem:!1,label:"pds.SHARE_CLASS_CURRENCY",field:"shareClass.shareClassCurrency",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:Currency"},ASSET_CLASS:{key:"ASSET_CLASS",isInfoItem:!1,label:"pds.ASSET_CLASS_CATEGORY",field:"assetClass",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:AssetClass"},CHARGES:{key:"CHARGES",isInfoItem:!1,label:"pds.SALES_CHARGE_AS_OF_DATE",alignType:f.RIGHT,children:[{key:"CHARGES_VALUE",field:"shareClass.charges.ongoingCharge",fieldType:c.STRING,headerType:u.TEXT},{key:"CHARGES_AS_OF_DATE",field:"shareClass.charges.asOfDate",fieldOverride:"shareClass.charges.feeAsOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:OngoingCharges"},MORNINGSTAR_RATING:{key:"MORNINGSTAR_RATING",isInfoItem:!1,label:"products.ratings-title",alignType:f.RIGHT,children:[{key:"MORNINGSTAR_RATING_VALUE",field:"shareClass.ratings.morningStarRatingOverall",fieldType:c.STRING,headerType:u.RATING},{key:"MORNINGSTAR_RATING_AS_OF_DATE",field:"shareClass.ratings.asOfDate",fieldType:c.STRING,headerType:u.DATE}],caveatPlacement:"Fund Compare Global:MorningstarRating"},MORNINGSTAR_CATEGORY:{key:"MORNINGSTAR_CATEGORY",isInfoItem:!1,label:"pds.MS_CATEGORY",field:"shareClass.ratings.morningStarCategory",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:MorningstarCategory"},INVESTMENT_VEHICLE:{key:"INVESTMENT_VEHICLE",isInfoItem:!1,label:"products.ppss-filter-INVESTMENT_VEHICLE",field:"investmentVehicle",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:InvestmentVehicle"},INVESTMENT_STRATEGY:{key:"INVESTMENT_STRATEGY",isInfoItem:!1,label:"products.ppss-filter-CLASS_STRATEGY",field:"strategy",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:InvestmentStrategy"},BENCHMARKS:{key:"BENCHMARKS",isInfoItem:!1,label:"products.benchmark",field:"shareClass.benchmarkAssociation",subFieldWithinArrayField:"benchmarkName",fieldType:c.ARRAY,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:Benchmarks"},SFDR_CATEGORY:{key:"SFDR_CATEGORY",isInfoItem:!1,label:"products.ppss-filter-SFDR",field:"sfdrCategory",fieldType:c.STRING,headerType:u.TEXT,alignType:f.RIGHT,caveatPlacement:"Fund Compare Global:SfdrCategory"}};let sn=(()=>{class t{generateDynamicRows(n){return"CA"===n?this.getDynamicRowsForCA():this.getDynamicRowsForUCITS()}getDynamicRowsForCA(){return{overview:[{rowHeader:T.FUND_OBJECTIVE},{rowHeader:T.SHARE_CLASS},{rowHeader:T.NAV},{rowHeader:T.NAV_CHANGE},{rowHeader:T.TOTAL_NET_ASSET},{rowHeader:T.FUND_CODE},{rowHeader:T.FRONT_END},{rowHeader:T.LOW_LOAD},{rowHeader:T.DSC},{rowHeader:T.ADM},{rowHeader:T.DISTRIBUTION_AMOUNT},{rowHeader:T.REINVESTMENT_AMOUNT},{rowHeader:T.PAYABLE_DATE},{rowHeader:T.DISTRIBUTION_FREQUENCY},{rowHeader:T.ISIN},{rowHeader:T.INCEPTION_DATE},{rowHeader:T.CURRENCY},{rowHeader:T.ASSET_CLASS},{rowHeader:T.MER},{rowHeader:T.MANAGEMENT_FEE},{rowHeader:T.CHARGES},{rowHeader:T.MORNINGSTAR_RATING},{rowHeader:T.MORNINGSTAR_CATEGORY},{rowHeader:T.INVESTMENT_VEHICLE},{rowHeader:T.INVESTMENT_STRATEGY},{rowHeader:T.BENCHMARKS},{rowHeader:T.RISK_CLASSIFICATION},{rowHeader:T.SFDR_CATEGORY}],performance:null,portfolio:null,documents:null}}getDynamicRowsForUCITS(){return{overview:[{rowHeader:T.FUND_OBJECTIVE},{rowHeader:T.SHARE_CLASS},{rowHeader:T.NAV},{rowHeader:T.NAV_CHANGE},{rowHeader:T.TOTAL_NET_ASSET},{rowHeader:T.DISTRIBUTION_FREQUENCY},{rowHeader:T.DIST_AMT_WITH_AS_OF_DATE},{rowHeader:T.DISTRIBUTION_PAYABLE_DATE},{rowHeader:T.DISTRIBUTION_YIELD},{rowHeader:T.ISIN},{rowHeader:T.INCEPTION_DATE},{rowHeader:T.CURRENCY},{rowHeader:T.ASSET_CLASS},{rowHeader:T.CHARGES},{rowHeader:T.MORNINGSTAR_RATING},{rowHeader:T.MORNINGSTAR_CATEGORY},{rowHeader:T.INVESTMENT_VEHICLE},{rowHeader:T.INVESTMENT_STRATEGY},{rowHeader:T.BENCHMARKS},{rowHeader:T.SFDR_CATEGORY}],performance:null,portfolio:null,documents:null}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var cn=p(47197),ne=p(27513),mn=p(53882),te=p(32221);const Y=pe.Y.getLogger("FundComparisonService"),ae=["overview","performance","portfolio","documents"],un=["fundName","identifiers.fundId","identifiers.shareClassCode","identifiers.taid","identifiers.isin","identifiers.sedol","identifiers.bloomberg","identifiers.cusip","identifiers.reuterSystem","identifiers.wkn","identifiers.vln","identifiers.mexId","identifiers.rfi","identifiers.apir","identifiers.arsn","identifiers.adm","identifiers.dsc","identifiers.ticker","identifiers.iress","identifiers.iressinavCode","identifiers.anbimaCode","identifiers.intradayNav","identifiers.fundbmTicker","identifiers.nasdaqxnms","identifiers.iopv"],ie=P.V7.MUTUAL_FUNDS,G={AVG_ANNUAL:[{avgAnnual1YearReturn:"oneYear"},{avgAnnual3YearReturn:"threeYear"},{avgAnnual5YearReturn:"fiveYear"},{avgAnnual10YearReturn:"tenYear"},{avgAnnualSinceInceptionReturn:"sinceInception"}],CALENDAR_YEAR:[{cummulativeReturnYearToDate:"yearToDate"},{calendarYearReturn1Year:"performanceYear1YearBack"},{calendarYearReturn2Year:"performanceYear2YearBack"},{calendarYearReturn3Year:"performanceYear3YearBack"},{calendarYearReturn4Year:"performanceYear4YearBack"},{calendarYearReturn5Year:"performanceYear5YearBack"}],CUMULATIVE:[{cummulativeReturnYearToDate:"yearToDate"},{cummulativeReturn1Year:"oneYear"},{cummulativeReturn3Year:"threeYear"},{cummulativeReturn5Year:"fiveYear"},{cummulativeReturn10Year:"tenYear"},{cummulativeReturnSinceInception:"sinceInception"}],DISCRETE:[{discreteAnnualRollingYear1:""},{discreteAnnualRollingYear2:""},{discreteAnnualRollingYear3:""},{discreteAnnualRollingYear4:""},{discreteAnnualRollingYear5:""}]};let fn=(()=>{class t{constructor(n,i,a,o,d,l,v,y,x,I,M,O){this.allFundsPpssService=n,this.fundOverviewService=i,this.fundPortfolioService=a,this.dynamicRowFactoryService=o,this.siteConfigService=d,this.literatureFundDocumentService=l,this.translateService=v,this.storageService=y,this.httpClient=x,this.appStateService=I,this.excelDownloadService=M,this.dashIfEmptyPipe=O,this.unsubscribe$=new s.xQ,this.locale="en",this.fundComparisonState$=new s.xQ,this.filteredSearchResultData$=new s.xQ,this.siteSpecificLocalStorageKey=`fund_comparison_list_${this.siteConfigService.getPdsLanguage().toLowerCase()}`,this.locale="CA"===this.siteConfigService.getPdsCountry()?"en-ca":this.locale}setLocale(n){this.locale=n}getFundComparisonState$(){return this.fundComparisonState$.asObservable()}getFilteredSearchResultData$(){return this.filteredSearchResultData$.asObservable()}populate(){var n=this;return(0,m.Z)(function*(){n.state={rowHeaderSummary:n.dynamicRowFactoryService.generateDynamicRows(n.siteConfigService.getPdsCountry()),columnMetaData:[{},{},{},{}],config:{sectionOrder:ae}},n.selectedFundShareClassIds=[],n.allFundsPpssService.register(D()).subscribe(i=>{n.allFundsInfo=n.organizeAllFundsInfo(i),Y.debug("Final organized all funds info list: ",n.allFundsInfo),n.fundComparisonState$.next(n.state)});try{(yield n.retrieveComparisonLocally())?.forEach(a=>n.loadFundComparisonData(a))}catch(i){Y.error("Error in fetching fund comparison list from local storage: ",i)}})()}organizeAllFundsInfo(n){return Object.values(n).reduce((i,a)=>[...i,...a])?.map(i=>i.shareClasses.reduce((a,o)=>
1{if(!o?.isSoftClosed&&!o?.isSoftLaunch){const{shareClasses:d,...l}=i,v=l;v.fundDisplayName=o?.shareClassName?.trim()?`${i.fundName} - ${o?.shareClassName}`:i.fundName,v.fundShareClassId=o?.fundShareClassId,v.shareClass=o,a.push(v)}return a},[])).flat().sort((i,a)=>i.fundDisplayName.localeCompare(a.fundDisplayName))?.map(i=>({fundName:i.fundName,fundDisplayName:i.fundDisplayName,fundShareClassId:i.fundShareClassId,productType:i.productType,productTaxonomy:i.productTaxonomy,identifiers:i.shareClass?.identifiers}))}filterSearchResult(n){this.filteredSearchResultData$.next(this.allFundsInfo.filter(i=>un.some(a=>Q()(i,a,"")?.toLowerCase().includes(n.toLowerCase()))&&-1===this.selectedFundShareClassIds.findIndex(a=>a===i.fundShareClassId)&&this.noETFForCA(i))?.map(i=>({label:i.fundDisplayName,value:i.fundShareClassId})))}noETFForCA(n){return"CA"!==this.siteConfigService.getPdsCountry()||n.productType!==P.V7.ETFs}loadFundComparisonData(n){this.selectedFundShareClassIds.push(n);const[i,a]=n.split(/-(.*)/s);(0,g.D)([this.fundOverviewService.register(H(),{fundId:i,shareClassCode:a}),this.fundPortfolioService.register(ue(),{fundId:i}),this.literatureFundDocumentService.getDocs$({fundId:i,shareClassCode:a}),this.fetchFundObjective$(i,a)]).subscribe(o=>{Y.debug("Mapped PDS response for fund details: ",o);const[{shareClasses:d,...l},v,y,x]=o,I={shareClass:d[0],...l,distribution:d[0]?.distribution?.[0]},M={fundName:I?.fundName,fundShareClassId:I?.shareClass?.fundShareClassId,fundLink:I?.shareClass?.link,fundNavChangeDirection:I?.shareClass?.nav?.changeDirection};let O=[];if(({filteredBMPerformanceNames:O,...M.rowDataSummary}=this.processRowDataSummaryDetails(I,v?.portfolio,y,this.state?.rowHeaderSummary,x)),M.fundBMNames=O,O?.length){const E=this.state.rowHeaderSummary.overview.findIndex(L=>"BENCHMARKS"===L.rowHeader.key);-1!==E&&(M.rowDataSummary.overview[E].rowData.value1=O)}this.handleEmdashConfigForFundCurrentPerformance(M,I.shareClass?.inceptionDateStd);const U=this.state.columnMetaData.findIndex(E=>!E.fundName);if(-1!==U&&this.state.columnMetaData.splice(U,1,M),this.state.config.performanceConfig?.performanceViewOptions?.length){const E=this.state.config.performanceConfig.performanceViewOptions[0],L=E.name,V=E.periodEnds[0];L&&V&&(this.state.config.isPerformanceDataPresentInComparison=this.state.columnMetaData.some($a=>$a.rowDataSummary?.performance[L][V][0]?.rowData?.currentPerformance))}this.state.config.isPortfolioDataPresentInComparison=this.state.columnMetaData.some(E=>E.rowDataSummary?.portfolio?.rowData.holdings.length),this.state.config.isDocumentDataPresentInComparison=this.state.columnMetaData.some(E=>E.rowDataSummary?.documents?.rowData?.length>0),this.state.config.isMiFIDOneYearPerfEmdashRuleAppliedInComparison=this.state.columnMetaData.some(E=>E.isMiFIDOneYearPerfEmdashRuleApplied),this.state.config.isSixMonthsPerfEmdashRuleAppliedInComparison=this.state.columnMetaData.some(E=>E.isSixMonthsPerfEmdashRuleApplied),this.maintainComparisonOrder(),Array(4-this.state.columnMetaData.length).fill(null).forEach(()=>this.state.columnMetaData.push({})),this.fundComparisonState$.next(this.state)})}handleEmdashConfigForFundCurrentPerformance(n,i){i&&(this.siteConfigService.showEMDashForUnderOneYearOldFund()?R()(i).isAfter(R()().subtract(1,"year"))&&(n.isMiFIDOneYearPerfEmdashRuleApplied=!0):this.siteConfigService.showEMDashForUnderSixMonthsOldFund()&&R()(i).isAfter(R()().subtract(6,"month"))&&(n.isSixMonthsPerfEmdashRuleApplied=!0))}maintainComparisonOrder(){const n=[],i=[];this.selectedFundShareClassIds.forEach(a=>{const o=this.state.columnMetaData.find(d=>d.fundShareClassId===a);o?n.push(o):i.push({})}),this.state.columnMetaData=[...n,...i]}processRowDataSummaryDetails(n,i,a,o,d){const l={};let v={};return Object.keys(o).forEach(y=>{switch(y){case"overview":l.overview=this.mapRowDataForOverview({...n,fundObjective:d},o.overview);break;case"performance":if(this.state.config.performanceConfig||this.handlePerformanceConfigs(),this.state.config.performanceConfig){v=this.getFilteredBMPerformances(n,this.state.config.performanceConfig.defaultCalcType),!this.rowHeaderLabelData&&n.shareClass?.performance.monthEnd.length&&n.shareClass?.performance.quarterEnd.length&&(this.rowHeaderLabelData=this.createPerformanceRowHeaderLabels(this.state.config.performanceConfig.performanceViewOptions,n.shareClass?.performance));const x=this.mapRowDataForPerformance(n,this.state.config.performanceConfig.defaultCalcType,this.rowHeaderLabelData,v);this.state.rowHeaderSummary.performance=x.rowHeaderData,l.performance=x.performanceData}break;case"portfolio":this.state.rowHeaderSummary.portfolio={rowHeader:[this.translateService.instant("products.fund-cmp-portfolio-row-header-name"),this.translateService.instant("products.fund-cmp-portfolio-row-header-weight")]},l.portfolio={rowData:this.mapRowDataForPortfolio(n.productType,i
1)};break;case"documents":this.state.rowHeaderSummary.documents={rowHeader:this.translateService.instant("products.fund-cmp-documents-row-header-name")},l.documents={rowData:this.mapRowDataForDocuments(a)}}}),{...l,filteredBMPerformanceNames:v?.monthEnd?.map(y=>y.benchmarkName)}}mapRowDataForOverview(n,i){const a=[];return i.forEach(o=>{if(o.rowHeader.children?.length)a.push({rowData:{value1:this.getOverviewRowCellData(o.rowHeader.children[0].key,n,o.rowHeader.children[0].field,o.rowHeader.children[0].fieldOverride),value2:this.getOverviewRowCellData(o.rowHeader.children[1]?.key,n,o.rowHeader.children[1]?.field,o.rowHeader.children[1]?.fieldOverride)}});else{const d=this.getOverviewRowCellData(o.rowHeader.key,n,o.rowHeader.field,o.rowHeader.fieldOverride);Array.isArray(d)&&o.rowHeader.subFieldWithinArrayField?a.push({rowData:{value1:d.map(l=>l[o.rowHeader.subFieldWithinArrayField])}}):a.push({rowData:{value1:d}})}}),a}getOverviewRowCellData(n,i,a,o){const d=Q()(i,a,""),l=o?Q()(i,o,""):null;switch(n){case"SHARE_CLASS":return d?.trim();case"CHARGES_VALUE":return[null,void 0,"",w.Sk,"-"].includes(d)?w.Sk:i.shareClass?.productType===P.V7.ETFs?`${d} (${this.translateService.instant("pds.EXPRATIOWITHWVR")})`:`${d} (${this.translateService.instant("pds.ONGOING_CHARGE_RATIO")})`;case"CHARGES_AS_OF_DATE":return l&&i.shareClass?.productType===P.V7.ETFs?l:d;case"SFDR_CATEGORY":switch(d){case"6":return w.Sk;case"8":return this.translateService.instant("products.sfdr-article-8");case"9":return this.translateService.instant("products.sfdr-article-9");default:return d}default:return d}}handlePerformanceConfigs(){const n=this.siteConfigService.product?.performance;if(n){const i={performanceViewOptions:this.createPerformanceViewOptions(n,ie),defaultCalcType:this.siteConfigService.getDefaultCalcType(ie)};this.state.config.performanceConfig=i}}createPerformanceViewOptions(n,i){const a=n.dataRefreshRate[i];return n.ppssPerformanceViews[i].map((l,v)=>({name:l,labelKey:`products.perf-view-${$()(l)}`,headerLabelKey:`products.perf-view-header-${$()(l)}`,periodEnds:this.siteConfigService.decodePeriodEnds(a[l]),isDefault:0===v}))}getFilteredBMPerformances(n,i){const a={},o=this.siteConfigService.getSuppressedBenchmarks(n.productTaxonomy),d=this.siteConfigService.getBenchmarkOrder(n.productTaxonomy),l=this.siteConfigService.getMaxNumberOfBenchmarksToShow(n.shareClass?.identifiers.fundId);return["monthEnd","quarterEnd"].forEach(v=>{const y=n.shareClass?.benchmarkPerformance[v];if(y){let x=y.filter(I=>this.isCalcTypeMatched(i,I.calcTypeStd,this.siteConfigService.getPdsCountry())&&!o.includes(I.benchmarkLabel)).sort((I,M)=>this.getBMComparisonSortValue(I.benchmarkLabel,M.benchmarkLabel,d)).slice(0,l);x.length>3&&(x=x.slice(0,3)),a[v]=x}}),a}getBMComparisonSortValue(n,i,a){if(a.length){const o=a.indexOf(n),d=a.indexOf(i);return-1===o&&-1===d?(0,K.D8)(n,i,null,null,!1):-1===o?1:-1===d?-1:o-d}return(0,K.D8)(n,i,null,null,!1)}createPerformanceRowHeaderLabels(n,i){const a={};return n.forEach(o=>{switch(o.name){case P.su.AVG_ANNUAL:{const d=G.AVG_ANNUAL.map(l=>this.translateService.instant(`products.${Object.values(l)[0]}`));a.AVG_ANNUAL={},o.periodEnds.forEach(l=>{a.AVG_ANNUAL[l]=d});break}case P.su.CALENDAR_YEAR:{const d=this.getCalendarYearLabels(i.monthEnd[0]);a.CALENDAR_YEAR={},o.periodEnds.forEach(l=>{a.CALENDAR_YEAR[l]=d});break}case P.su.CUMULATIVE:{const d=G.CUMULATIVE.map(l=>this.translateService.instant(`products.${Object.values(l)[0]}`));a.CUMULATIVE={},o.periodEnds.forEach(l=>{a.CUMULATIVE[l]=d});break}case P.su.DISCRETE:{const d=this.getDiscreteAnnualLabels(i.monthEnd[0]?.performanceAsOfDateStd),l=this.getDiscreteAnnualLabels(i.quarterEnd[0]?.performanceAsOfDateStd);a.DISCRETE={},o.periodEnds.forEach(v=>{a.DISCRETE[v]=v===P.I5.MONTHLY?d:l});break}}}),a}getCalendarYearLabels(n){const i=[];let o,d,a=!1;const l=R()(n?.performanceAsOfDateStd,W.yJ,this.siteConfigService.getPdsLanguage());return G.CALENDAR_YEAR.forEach((v,y)=>{if(l.isValid()){const x=Object.keys(v)[0],I=Object.values(v)[0];"cummulativeReturnYearToDate"===x?(a=!0,o=y,d=this.translateService.instant(`products.${I}`)):i.push(Q()(n,I,""))}else i.push(w.Sk)}),a&&i.splice(o,0,d),i}getDiscreteAnnualLabels(n){const i=[],a=R()(n,W.yJ,this.siteConfigService.getPdsLanguage());
1return G.DISCRETE.forEach(o=>{if(a.isValid()){const d=Object.keys(o)[0],l=Number(d.replace("discreteAnnualRollingYear",""));let v=a.clone().subtract(l,"years").format("MMM-YY"),y=a.clone().subtract(l-1,"years").format("MMM-YY");"de_DE"===this.siteConfigService.getPdsLanguage()&&(v=v.replace(".",""),y=y.replace(".","")),i.push(`${v} / ${y}`)}else i.push(w.Sk)}),i}mapRowDataForPerformance(n,i,a,o){const d={},l={};return this.state.config.performanceConfig.performanceViewOptions.length&&this.state.config.performanceConfig.performanceViewOptions.forEach(v=>{const y=v.name;d[y]={},l[y]={},v.periodEnds.forEach(x=>{d[y][x]=[],l[y][x]=[],G[y].forEach((I,M)=>{const O=Object.keys(I)[0];d[y][x].push({rowHeader:a?.[y][x][M]});const U=x===P.I5.MONTHLY?"monthEnd":"quarterEnd",E=n.shareClass?.performance[U].find(V=>this.isCalcTypeMatched(i,V.calcTypeStd,this.siteConfigService.getPdsCountry())),L={performanceAsOfDate:E?.performanceAsOfDate,currentPerformance:E?.[O],bmPerformances:o[U]?.map(V=>V[O])};["avgAnnualSinceInceptionReturn","cummulativeReturnSinceInception"].includes(O)&&(L.performanceSinceInceptionDate=n.shareClass?.performanceInceptionDate),l[y][x].push({rowData:L})})})}),{rowHeaderData:d,performanceData:l}}isCalcTypeMatched(n,i,a){{const o=["NAV","NET"];return!(!o.includes(n.toUpperCase())||!o.includes(i.toUpperCase()))}}mapRowDataForPortfolio(n,i){switch(this.siteConfigService.getPdsCountry(),n){case P.V7.MUTUAL_FUNDS:return this.handleHoldingsExtraction(k.TOP_10,i);case P.V7.ETFs:return this.handleHoldingsExtraction(i.fullHoldings?.length?k.FULL:k.DAILY,i);case P.V7.MONEY_MARKET_FUNDS:return this.handleHoldingsExtraction(i.topTenHoldingsMoneyFunds?.length?k.TOP_10_MMF:k.FULL,i);default:return{asOfDate:null,holdings:[]}}}handleHoldingsExtraction(n,i){switch(n){case k.FULL:return{asOfDate:i.fullHoldings[0]?.asOfDate,holdings:i.fullHoldings.filter(a=>(0,C.Uh)(a,"percentageOfNetAssetsStd")).sort((a,o)=>Number(a.percentageOfNetAssetsStd)<Number(o.percentageOfNetAssetsStd)?1:-1).slice(0,5)?.map(a=>({name:a.securityName,weight:`${a.percentageOfNetAssets}%`}))};case k.TOP_10:return{asOfDate:i.topHoldings[0]?.asOfDate,holdings:i.topHoldings.filter(a=>(0,C.Uh)(a,"breakdownPercentageStd")).sort((a,o)=>Number(a.breakdownPercentageStd)<Number(o.breakdownPercentageStd)?1:-1).slice(0,5)?.map(a=>({name:a.holdingName,weight:`${a.breakdownPercentage}%`}))};case k.TOP_10_MMF:return{asOfDate:i.topTenHoldingsMoneyFunds[0].asOfDate,holdings:i.topTenHoldingsMoneyFunds.filter(a=>(0,C.Uh)(a,"holdingValueStd")).sort((a,o)=>Number(a.holdingValueStd)<Number(o.holdingValueStd)?1:-1).slice(0,5)?.map(a=>({name:a.securityName,weight:`${a.holdingValue}%`}))};case k.DAILY:return{asOfDate:i.dailyHoldings[0]?.asOfDate,holdings:i.dailyHoldings.filter(a=>(0,C.Uh)(a,"percentageOfNetAssetsStd")).sort((a,o)=>Number(a.percentageOfNetAssetsStd)<Number(o.percentageOfNetAssetsStd)?1:-1).slice(0,5)?.map(a=>({name:a.securityName,weight:`${a.percentageOfNetAssets}%`}))}}}mapRowDataForDocuments(n){const i=[];return this.getDocumentTypesToDisplay().forEach(o=>{const d=n.find(l=>l.literatureData.dctermsType===o);d&&i.push({documentDisplayName:d.literatureData.translatedDctermsType,documentDownloadLink:d.literatureData.pdfDownloadLink})}),i}getDocumentTypesToDisplay(){return this.siteConfigService?.literature?.components?.find(a=>"FUND-COMPARISON"===a.documentTab)?.documentTypeDisplay||[]}removeFund(n){const i=this.state.columnMetaData.findIndex(a=>a.fundShareClassId===n);if(this.state.columnMetaData.splice(i,1),this.selectedFundShareClassIds.splice(i,1),this.state.columnMetaData.push({}),void 0!==this.state.config.isPerformanceDataPresentInComparison){const a=this.state.config.performanceConfig.performanceViewOptions[0],o=a.name,d=a.periodEnds[0];o&&d&&(this.state.config.isPerformanceDataPresentInComparison=this.state.columnMetaData.some(l=>l.rowDataSummary?.performance[o][d][0]?.rowData?.currentPerformance))}void 0!==this.state.config.isPortfolioDataPresentInComparison&&(this.state.config.isPortfolioDataPresentInComparison=this.state.columnMetaData.some(a=>a.rowDataSummary?.portfolio?.rowData.holdings.length)),void 0!==this.state.config.isDocumentDataPresentInComparison&&(this.state.config.isDocumentDataPresentInComparison=this.state.columnMetaData.some(a=>a.rowDataSummary?.documents?.rowData.length>0)),void 0!==this.state.config.isMiFIDOneYearPerfEmdashRuleAppliedInComparison&&(this.state.config.isMiFIDOneYearPerfEmdashRuleAppliedInComparison=this.state.columnMetaData.some(a=>a.isMiFIDOneYearPerfEmdashRuleApplied)),void 0!==this.state.config.isSixMonthsPerfEmdashRuleAppliedInComparison&&(this.state.config.isSixMonthsPerfEmdashRuleAppliedInComparison=this.state.columnMetaData.some(a=>a.isSixMonthsPerfEmdashRuleApplied)),this.fundComparisonState$.next(this.state)}handleSaveAction(n){this.storeComparisonLocally(n)}handleDeleteAction(n){var i=this;return(0,m.Z)(function*(){if(n)try{const a=yield i.retrieveComparisonLocally(),o=a?.findIndex(d=>d===n);-1!==o&&(a.splice(o,1),i.storeComparisonLocally(a))}catch(a){Y.error("Error in fetching fund comparison list from local storage: ",a)}else i.removeComparisonLocally()})()}storeComparisonLocally(n){this.storageService.store(this.siteSpecificLocalStorageKey,n)}
1retrieveComparisonLocally(){var n=this;return(0,m.Z)(function*(){return yield n.storageService.retrieve(n.siteSpecificLocalStorageKey)})()}removeComparisonLocally(){this.storageService.remove(this.siteSpecificLocalStorageKey)}fetchFundObjective$(n,i){const a=(0,ve.DO)(),o=this.appStateService.getSearchEnvironment()||this.appStateService.getEnvironment(),d={locale:this.locale,env:o,requestId:a,fundIds:n,fundShareClasses:"",start:0,number:10};return this.httpClient.post(this.appStateService.getFundObjectiveAPIUrl(),d).pipe((0,X.U)(l=>l.results?.response?.hits?.hits[0]?._source?.contentString||""),(0,he.K)(l=>(Y.error("Error while fetching fund objective API"+JSON.stringify(l.message)+" [requestId]: "+a+" [error status]: "+l.status+" timestamp: "+new Date),(0,_.of)(""))))}handleDownloadAction(){(0,g.D)([this.excelDownloadService.getProximalCaveat$("FundCompareGlobalProximalTop"),this.excelDownloadService.getProximalCaveat$("FundCompareGlobalProximalBottom"),this.excelDownloadService.getProximalCaveat$("FundCompareGlobalPerformanceProximalTop"),this.excelDownloadService.getProximalCaveat$("FundCompareGlobalPerformanceProximalBottom")]).pipe((0,Te.R)(this.unsubscribe$)).subscribe(([n,i,a,o])=>{p.e("node_modules_xlsx_xlsx_js").then(p.t.bind(p,88031,23)).then(d=>{const l=this.getMappedFullRecords(a,o),v=n.concat(h.OM).concat(l).concat(h.OM).concat(i),y=d.utils.aoa_to_sheet(v);y["!cols"]=[{width:25},{width:35},{width:35},{width:35},{width:35}];const x=d.utils.book_new();d.utils.book_append_sheet(x,y),d.writeFile(x,this.translateService.instant("products.fund-cmp-file-name")+"-"+R()().format("MMDDYYYY")+".xlsx")})})}getMappedFullRecords(n,i){let a=[];return a.push([(0,h.Iq)(this.translateService.instant("products.fund-cmp-fund-name"),"s"),...this.state.columnMetaData?.map(o=>o?.fundName)]),ae.forEach(o=>{switch(o){case"overview":a=[...a,...h.OM,...h.OM,...this.getMappedOverviewRecords()];break;case"performance":a=[...a,...h.OM,...h.OM,...this.getMappedPerformanceRecords(n,i)];break;case"portfolio":a=[...a,...h.OM,...h.OM,...this.getMappedPortfolioRecords()]}}),a}getMappedOverviewRecords(){const n=[];return n.push([(0,h.Iq)(this.translateService.instant("products.fund-tab-overview"),"s")],...h.OM),this.state.rowHeaderSummary.overview.forEach((i,a)=>{switch(i.rowHeader.fieldType||i.rowHeader.children[0]?.fieldType){case c.ARRAY:{let o=0;this.state.columnMetaData.forEach(d=>{const l=d.rowDataSummary?.overview[a].rowData.value1;l?.length>o&&(o=l.length)}),Array(o).fill(null).forEach((d,l)=>{n.push(this.getOverviewCellObjects(i,a,0===l,null,l))});break}case c.HTML:n.push([(0,h.Iq)(this.translateService.instant(i.rowHeader.label),"s"),...this.state.columnMetaData?.map(o=>{if(o.fundName)try{return(0,h.Iq)(this.dashIfEmptyPipe.transform((new DOMParser).parseFromString(o.rowDataSummary.overview[a].rowData.value1,"text/html").documentElement.textContent),"s")}catch(d){return Y.error(`Error in parsing html content for overview section at field ${i.rowHeader.key}: `,d),(0,h.Iq)(w.Sk)}})]);break;default:i.rowHeader.children?.length?n.push(this.getOverviewCellObjects(i,a,!0,0),this.getOverviewCellObjects(i,a,!1,1)):n.push(this.getOverviewCellObjects(i,a,!0))}}),n}getOverviewCellObjects(n,i,a,o,d){return[a?(0,h.Iq)(this.translateService.instant(n.rowHeader.label),"s"):h.mk,...this.state.columnMetaData?.map(l=>{if(l?.fundShareClassId)return(0,h.Iq)(this.formatOverviewCellObjectValue(n,this.processOverviewCellObjectValue(l.rowDataSummary.overview[i].rowData.value1,l.rowDataSummary.overview[i].rowData.value2,a,d),o),this.getOverviewCellObjectDataType(n,a,o))})]}processOverviewCellObjectValue(n,i,a,o){return isNaN(o)?a?n:i:n?.[o]?`${o+1}. ${n?.[o]}`:n?.[o]}formatOverviewCellObjectValue(n,i,a){const o=this.dashIfEmptyPipe.transform(i);switch(n.rowHeader.headerType||n.rowHeader.children[a]?.headerType){case u.DATE:return i?`${this.translateService.instant("products.as-of")} ${o}`:o;case u.PERCENT:return`${o}%`;default:return o}}getOverviewCellObjectDataType(n,i,a){return i?"s":(n.rowHeader.headerType||n.rowHeader.children[a]?.headerType)===u.RATING?"n":"s"}getMappedPerformanceRecords(n,i){let a=[];return a.push([(0,h.Iq)(this.translateService.instant("products.fund-tab-performance"),"s"),...this.state.columnMetaData?.map(o=>o?.fundName&&!this.state.config.isPerformanceDataPresentInComparison?(0,h.Iq)(this.translateService.instant("products.fund-cmp-performance-no-data")):h.mk)],...h.OM),this.state.config.isPerformanceDataPresentInComparison&&(n.length&&(a=[...a,...n,...h.OM]),Object.entries(this.state.rowHeaderSummary.performance).forEach(o=>{const d=o[0];a=[...a,[(0,h.Iq)(this.translateService.instant(`products.perf-view-${$()(d)}
1`),"s")]],Object.entries(o[1]).forEach(l=>{const v=l[0],y=l[1];a=[...a,[(0,h.Iq)(this.translateService.instant(`products.${v}`),"s")]],a=[...a,[(0,h.Iq)(`${this.translateService.instant("products.as-of")} ${this.state.columnMetaData.find(x=>x.rowDataSummary?.performance[d]?.[v]?.[0]?.rowData?.performanceAsOfDate)?.rowDataSummary.performance[d][v][0].rowData.performanceAsOfDate}`,"s")]],a=[...a,...this.getCurrentAndBMPerformanceAsMappedRecords(d,v,y),...h.OM]})}),this.state.config.isMiFIDOneYearPerfEmdashRuleAppliedInComparison&&(a=[...a,[(0,h.Iq)(this.translateService.instant("products.fund-cmp-perf-disclaimer-mifid"),"s")]]),this.state.config.isSixMonthsPerfEmdashRuleAppliedInComparison&&(a=[...a,[(0,h.Iq)(this.translateService.instant("products.fund-cmp-perf-disclaimer-6month"),"s")]]),i.length&&(a=[...a,...i])),a}getCurrentAndBMPerformanceAsMappedRecords(n,i,a){let o=[];return a.forEach((d,l)=>{o.push([(0,h.Iq)(d.rowHeader,"s")],[(0,h.Iq)(this.translateService.instant("products.fund"),"s"),...this.state.columnMetaData?.map(v=>v?.fundName?(0,h.Iq)(v.rowDataSummary?.performance[n]?.[i]?.[l]?.rowData.currentPerformance,"s"):h.mk)]),o=[...o,...this.processBMPerformanceAsMappedRecords(n,i,l)]}),o}processBMPerformanceAsMappedRecords(n,i,a){const o=[];let d=0;return this.state.columnMetaData.forEach(l=>{const v=l.rowDataSummary?.performance[n]?.[i]?.[0]?.rowData.bmPerformances.length;v>d&&(d=v)}),Array(d).fill(null).forEach((l,v)=>{o.push([(0,h.Iq)(`${this.translateService.instant("products.benchmark")} ${v+1}`,"s"),...this.state.columnMetaData?.map(y=>y?.fundName?(0,h.Iq)(this.dashIfEmptyPipe.transform(y.rowDataSummary?.performance[n][i][a].rowData.bmPerformances[v]),"s"):h.mk)])}),o}getMappedPortfolioRecords(){const n=[];return n.push([(0,h.Iq)(this.translateService.instant("products.fund-cmp-portfolio"),"s"),...this.state.columnMetaData?.map(i=>{const a=i.rowDataSummary?.portfolio?.rowData?.asOfDate;return a?(0,h.Iq)(`${this.translateService.instant("products.as-of")} ${a}`,"s"):i?.fundName&&!a?(0,h.Iq)(this.translateService.instant("products.fund-cmp-portfolio-no-data"),"s"):h.mk})],...h.OM),this.state.config.isPortfolioDataPresentInComparison&&Array(5).fill(null).forEach((i,a)=>{0===a?n.push([(0,h.Iq)(this.state.rowHeaderSummary.portfolio?.rowHeader[0],"s"),...this.state.columnMetaData?.map(o=>o?.fundName?(0,h.Iq)(o.rowDataSummary?.portfolio?.rowData?.holdings[a]?.name,"s"):h.mk)],[(0,h.Iq)(this.state.rowHeaderSummary.portfolio?.rowHeader[1],"s"),...this.state.columnMetaData?.map(o=>o?.fundName?(0,h.Iq)(o.rowDataSummary?.portfolio?.rowData?.holdings[a]?.weight,"s"):h.mk)]):n.push([h.mk,...this.state.columnMetaData?.map(o=>o?.fundName?(0,h.Iq)(o.rowDataSummary?.portfolio?.rowData?.holdings[a]?.name,"s"):h.mk)],[h.mk,...this.state.columnMetaData?.map(o=>o?.fundName?(0,h.Iq)(o.rowDataSummary?.portfolio?.rowData?.holdings[a]?.weight,"s"):h.mk)])}),n}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(Ce.s),e.LFG(ye.T),e.LFG(Ie),e.LFG(sn),e.LFG(J.r5),e.LFG(cn.M),e.LFG(ne.s),e.LFG(J.V1),e.LFG(mn.eN),e.LFG(J.ZQ),e.LFG(h.O_),e.LFG(te.D))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=p(3138),gn=p(66237),_n=p(19206);const vn=["searchBox"];function hn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",33),e.TgZ(1,"button",34),e.NdJ("click",function(a){e.CHM(n);const o=e.oxw().$implicit;return e.oxw(2).onRemoveFund(a,o.fundShareClassId)}),e.TgZ(2,"span",35),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"eds-icon",36),e.qZA(),e._UZ(6,"eds-link-item",37),e.qZA()}if(2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("hasIcon",!0),e.xp6(2),e.hij(" ",e.lcZ(4,5,"products.fund-cmp-remove-fund")," "),e.xp6(3),e.Q6J("title",n.fundName)("href",n.fundLink)("isNewWindow",!0)}}function Tn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(n),e.oxw(3).onSelectFund()}),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()}2&t&&(e.Q6J("noMargin",!0),e.xp6(2),e.Oqu(e.lcZ(3,2,"products.fund-cmp-add-fund")))}const Cn=function(t){return{"fund-compare__td fund-compare__td--vertical-align-top":t}};function yn(t,r){if(1&t&&(e.TgZ(0,"th",30),e.YNc(1,hn,7,7,"div",31),e.YNc(2,Tn,4,4,"button",32),e.qZA()),2&t){const n=r.$implicit;e.Q6J("ngClass",e.VKq(3,Cn,n.fundName)),e.xp6(1),e.Q6J("ngIf",n.fundName),e.xp6(1),e.Q6J("ngIf",!n.fundName)}}function Sn(t,r){if(1&t&&(e.TgZ(0,"div",1),e.TgZ(1,"div",2),e.TgZ(2,"table",26),e.TgZ(3,"thead"),e.TgZ(4,"tr"),e.TgZ(5,"th",27),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,yn,3,5,"th",28),e.qZA(),e.qZA(),e.TgZ(9,"tbody"),e.GkF(10,29),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const n=e.oxw(),i=e.MAs(12);e.xp6(6),e.hij(" ",e.lcZ(7,3,"products.fund-cmp-fund-name")," "),e.xp6(2),e.Q6J("ngForOf",n.columnMetaData),e.xp6(2),e.Q6J("ngTemplateOutlet",i)}}function wn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",46),e.TgZ(1,"button",47),e.NdJ("click",function(a){e.CHM(n);const o=e.oxw(2);return o.onRemoveFund(a,o.selectedFundShareClassId)}),e.TgZ(2,"span",48),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"eds-icon",49),e.qZA(),e.qZA()}2&t&&(e.xp6(1),e.Q6J("hasIcon",!0),e.xp6(2),e.hij(" ",e.lcZ(4,2,"products.fund-cmp-remove-fund")," "))}function kn(t,r){if(1&t&&(e.TgZ(0,"div",50),e._UZ(1,"eds-link-item",37),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("title",n.columnMetaData[n.selectedFundToggleButtonIndex].fundName)("href",n.columnMetaData[n.selectedFundToggleButtonIndex].fundLink)("isNewWindow",!0)}}function Nn(t,r){1&t&&(e.ynx(0),e._UZ(1,"eds-icon",51),e.TgZ(2,"span",52),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&t&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"products.fund-cmp-more-details")," "))}function xn(t,r){1&t&&(e.ynx(0),e._UZ(1,"eds-icon",53),e.TgZ(2,"span",52),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&t&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"products.fund-cmp-less-detail
1s")," "))}function Fn(t,r){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"div",39),e.TgZ(2,"div",2),e.TgZ(3,"eds-toggle",40),e.NdJ("toggleActive",function(a){return e.CHM(n),e.oxw().onFundToggleUpdate(a)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"eds-panel",41),e.YNc(7,wn,6,4,"div",42),e.YNc(8,kn,2,3,"div",43),e.GkF(9,29),e.TgZ(10,"div",44),e.TgZ(11,"button",45),e.NdJ("click",function(){return e.CHM(n),e.oxw().onExpandCollapseToggle()}),e.YNc(12,Nn,5,3,"ng-container",5),e.YNc(13,xn,5,3,"ng-container",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&t){const n=e.oxw(),i=e.MAs(12);e.xp6(3),e.Q6J("toggleButtons",n.fundToggleButtons),e.xp6(3),e.Q6J("hasBorders",!0)("hasBorderRadius",!0)("overflowHidden",!0)("hasPadding",!1),e.xp6(1),e.Q6J("ngIf",null==n.columnMetaData[n.selectedFundToggleButtonIndex]?null:n.columnMetaData[n.selectedFundToggleButtonIndex].fundName),e.xp6(1),e.Q6J("ngIf",null==n.columnMetaData[n.selectedFundToggleButtonIndex]?null:n.columnMetaData[n.selectedFundToggleButtonIndex].fundName),e.xp6(1),e.Q6J("ngTemplateOutlet",i),e.xp6(2),e.Q6J("edsButton","icon-only")("size","small")("hasIcon",!0),e.xp6(1),e.Q6J("ngIf",!n.isHandheldViewContentExpanded),e.xp6(1),e.Q6J("ngIf",n.isHandheldViewContentExpanded)}}const An=function(t,r,n,i){return{rowHeaders:t,columnMetaData:r,isHandheldViewContentExpanded:n,$implicit:i}};function Dn(t,r){if(1&t&&(e.GkF(0,56),e.ALo(1,"async")),2&t){const n=e.oxw(),i=n.$implicit,a=n.even,o=e.oxw(2),d=e.MAs(14),l=e.MAs(22);e.Q6J("ngTemplateOutlet",!1===e.lcZ(1,2,o.isHandheld$)?d:l)("ngTemplateOutletContext",e.l5B(4,An,o.rowHeaderSummary[i],o.columnMetaData,o.isHandheldViewContentExpanded,a))}}const In=function(t,r,n,i,a,o,d){return{rowHeaders:t,columnMetaData:r,isPerformanceDataPresentInComparison:n,isMiFIDOneYearPerfEmdashRuleAppliedInComparison:i,isSixMonthsPerfEmdashRuleAppliedInComparison:a,isHandheldViewContentExpanded:o,$implicit:d}};function En(t,r){if(1&t&&(e.GkF(0,56),e.ALo(1,"async")),2&t){const n=e.oxw(),i=n.$implicit,a=n.even,o=e.oxw(2),d=e.MAs(16),l=e.MAs(24);e.Q6J("ngTemplateOutlet",!1===e.lcZ(1,2,o.isHandheld$)?d:l)("ngTemplateOutletContext",e.Hh0(4,In,o.rowHeaderSummary[i],o.columnMetaData,null==o.config?null:o.config.isPerformanceDataPresentInComparison,null==o.config?null:o.config.isMiFIDOneYearPerfEmdashRuleAppliedInComparison,null==o.config?null:o.config.isSixMonthsPerfEmdashRuleAppliedInComparison,o.isHandheldViewContentExpanded,a))}}const bn=function(t,r,n,i,a){return{rowHeaders:t,columnMetaData:r,isPortfolioDataPresentInComparison:n,isHandheldViewContentExpanded:i,$implicit:a}};function Pn(t,r){if(1&t&&(e.GkF(0,56),e.ALo(1,"async")),2&t){const n=e.oxw(),i=n.$implicit,a=n.even,o=e.oxw(2),d=e.MAs(18),l=e.MAs(26);e.Q6J("ngTemplateOutlet",!1===e.lcZ(1,2,o.isHandheld$)?d:l)("ngTemplateOutletContext",e.qbA(4,bn,o.rowHeaderSummary[i],o.columnMetaData,null==o.config?null:o.config.isPortfolioDataPresentInComparison,o.isHandheldViewContentExpanded,a))}}const Mn=function(t,r,n,i,a){return{rowHeaders:t,columnMetaData:r,isDocumentDataPresentInComparison:n,isHandheldViewContentExpanded:i,$implicit:a}};function On(t,r){if(1&t&&(e.GkF(0,56),e.ALo(1,"async")),2&t){const n=e.oxw(),i=n.$implicit,a=n.even,o=e.oxw(2),d=e.MAs(20),l=e.MAs(28);e.Q6J("ngTemplateOutlet",!1===e.lcZ(1,2,o.isHandheld$)?d:l)("ngTemplateOutletContext",e.qbA(4,Mn,o.rowHeaderSummary[i],o.columnMetaData,null==o.config?null:o.config.isDocumentDataPresentInComparison,o.isHandheldViewContentExpanded,a))}}function Zn(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Dn,2,9,"ng-container",55),e.YNc(2,En,2,12,"ng-container",55),e.YNc(3,Pn,2,10,"ng-container",55),e.YNc(4,On,2,10,"ng-container",55),e.BQk()),2&t){const n=r.$implicit;e.xp6(1),e.Q6J("ngIf","overview"===n),e.xp6(1),e.Q6J("ngIf","performance"===n),e.xp6(1),e.Q6J("ngIf","portfolio"===n),e.xp6(1),e.Q6J("ngIf","documents"===n)}}function Rn(t,r){if(1&t&&e.YNc(0,Zn,5,4,"ng-container",54),2&t){const n=e.oxw();e.Q6J("ngForOf",n.config.sectionOrder)}}function Ln(t,r){if(1&t&&(e._UZ(0,"eds-icon",63),e.ALo(1,"translate")),2&t){const n=e.oxw().$implicit;e.Q6J("tooltipContent",e.lcZ(1,1,null==n||null==n.rowHeader?null:n.rowHeader.tooltip))}}function Hn(t,r){if(1&t&&e._UZ(0,"eds-footnote",64),2&t){const n=e.oxw().$implicit;e.Q6J("placement",null==n||null==n.rowHeader?null:n.rowHeader.caveatPlacement)}}const Yn=function(t,r,n,i){return{rowData:t,fieldType:r,headerType:n,columnIndex:i}};function Bn(t,r){if(1&t&&e.GkF(0,56),2&t){const n=e.oxw(),i=n.$implicit,a=n.index,o=e.oxw(),d=o.index,l=o.$implicit;e.oxw(2);const v=e.MAs(30);e.Q6J("ngTemplateOutlet",v)("ngTemplateOutletContext",e.l5B(2,Yn,null==i.rowDataSummary.overview[d]?null:i.rowDataSummary.overview[d].rowData,null==l||null==l.rowHeader?null:l.rowHeader.fieldType,null==l||null==l.rowHeader?null:l.rowHeader.headerType,a))}}const re=function(t,r,n,i,a,o){return{rowData:t,fieldType1:r,fieldType2:n,headerType1:i,headerType2:a,fundNavChangeDirection:o}};function Vn(t,r){if(1&t&&e.GkF(0,56),2&t){const n=e.oxw().$implicit,i=e.oxw(),a=i.index,o=i.$implicit;e.oxw(2);const d=e.MAs(32);e.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",e.HTZ(2,re,null==n.rowDataSummary.overview[a]?null:n.rowDataSummary.overview[a].rowData,null==o||null==o.rowHeader?null:o.rowHeader.children[0].fieldType,null==o||null==o.rowHeader?null:o.rowHeader.children[1].fieldType,null==o||null==o.rowHeader?null:o.rowHeader.children[0].headerType,null==o||null==o.rowHeader?null:o.rowHeader.children[1].headerType,n.fundNavChangeDirection))}}const qn=function(t,r,n,i,a){return{"fund-compare__td fund-compare__td--align-left":t,"fund-compare__td fund-compare__td--align-right":r,"fund-compare__td fund-compare__td--align-center":n,"fund-compare__td fund-compare__td--highlight-cell":i,"fund-compare__td fund-compare__td--border-right":a}};function Gn(t,r){if(1&t&&(e.TgZ(0,"td",65),e.YNc(1,Bn,1,7,"ng-container",55),e.YNc(2,Vn,1,9,"ng-container",55),e.qZA()),2&t){const n=r.$implicit,i=r.last,a=e.oxw().$implicit;e.Q6J("ngClass",e.qbA(3,qn,"LEFT"===(null==a||null==a.rowHeader?null:a.rowHeader.alignType),"RIGHT"===(null==a||null==a.rowHeader?null:a.rowHeader.alignType),"CENT
1ER"===(null==a||null==a.rowHeader?null:a.rowHeader.alignType),!(null!=n&&n.fundName),!i)),e.xp6(1),e.Q6J("ngIf",!(null!=a&&null!=a.rowHeader&&a.rowHeader.children)&&(null==n?null:n.rowDataSummary)),e.xp6(1),e.Q6J("ngIf",2===(null==a||null==a.rowHeader||null==a.rowHeader.children?null:a.rowHeader.children.length)&&(null==n?null:n.rowDataSummary))}}function Un(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",59),e._uU(2),e.ALo(3,"translate"),e.YNc(4,Ln,2,3,"eds-icon",60),e.YNc(5,Hn,1,1,"eds-footnote",61),e.qZA(),e.YNc(6,Gn,3,9,"td",62),e.qZA()),2&t){const n=r.$implicit,i=e.oxw().columnMetaData;e.xp6(2),e.hij(" ",e.lcZ(3,4,null==n||null==n.rowHeader?null:n.rowHeader.label)," "),e.xp6(2),e.Q6J("ngIf",null==n||null==n.rowHeader?null:n.rowHeader.tooltip),e.xp6(1),e.Q6J("ngIf",null==n||null==n.rowHeader?null:n.rowHeader.caveatPlacement),e.xp6(1),e.Q6J("ngForOf",i)}}function Qn(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",57),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Un,7,6,"tr",54),e.TgZ(6,"tr"),e._UZ(7,"td",58),e.qZA()),2&t){const n=r.rowHeaders;e.xp6(3),e.Oqu(e.lcZ(4,2,"products.fund-tab-overview")),e.xp6(2),e.Q6J("ngForOf",n)}}function Jn(t,r){1&t&&(e.TgZ(0,"small"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-performance-no-data")," "))}function $n(t,r){if(1&t&&(e.TgZ(0,"th",67),e.YNc(1,Jn,3,3,"small",5),e.qZA()),2&t){const n=r.$implicit,i=e.oxw().isPerformanceDataPresentInComparison,a=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n?null:n.fundName)&&!(null!=n.rowDataSummary&&n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate)&&!i)}}function jn(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.hij(" ",n.config.performanceConfig.performanceViewOptions[0].headerLabelKey," ")}}function zn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"eds-toggle",74),e.NdJ("toggleActive",function(a){return e.CHM(n),e.oxw(3).onPerformanceToggleUpdate("performanceType",a)}),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("toggleButtons",n.performanceViewToggleButtons)("isNoWrap",!0)}}function Wn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"eds-toggle",74),e.NdJ("toggleActive",function(a){return e.CHM(n),e.oxw(3).onPerformanceToggleUpdate("periodEnd",a)}),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("toggleButtons",n.selectedPerformanceViewToggleButton.periodEndToggleButtons)("isNoWrap",!0)}}function Kn(t,r){if(1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.AsE(" ",e.lcZ(2,2,"products.as-of")," ",n.selectedPerformanceAsOfDate," ")}}function Xn(t,r){1&t&&(e.TgZ(0,"div",79),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.benchmark")," 1 "))}function et(t,r){1&t&&(e.TgZ(0,"div",79),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.benchmark")," 2 "))}function nt(t,r){1&t&&(e.TgZ(0,"div",79),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.benchmark")," 3 "))}const de=function(t,r,n,i){return{"fund-compare__performance fund-compare__performance--split-1":t,"fund-compare__performance fund-compare__performance--split-2":r,"fund-compare__performance fund-compare__performance--split-3":n,"fund-compare__performance fund-compare__performance--split-4":i}};function tt(t,r){if(1&t&&(e.TgZ(0,"div",78),e.TgZ(1,"div",79),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Xn,3,3,"div",77),e.YNc(5,et,3,3,"div",77),e.YNc(6,nt,3,3,"div",77),e.qZA()),2&t){const n=e.oxw().$implicit;e.Q6J("ngClass",e.l5B(7,de,0===n.fundBMNames.length,1===n.fundBMNames.length,2===n.fundBMNames.length,3===n.fundBMNames.length)),e.xp6(2),e.hij(" ",e.lcZ(3,5,"products.fund")," "),e.xp6(2),e.Q6J("ngIf",n.fundBMNames[0]),e.xp6(1),e.Q6J("ngIf",n.fundBMNames[1]),e.xp6(1),e.Q6J("ngIf",n.fundBMNames[2])}}function at(t,r){1&t&&(e.TgZ(0,"div",79),e.TgZ(1,"small"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"products.fund-cmp-performance-no-data")," "))}const it=function(t){return{"fund-compare__td--border-right":t}};function ot(t,r){if(1&t&&(e.TgZ(0,"th",75),e.YNc(1,tt,7,12,"div",76),e.YNc(2,at,4,3,"div",77),e.qZA()),2&t){const n=r.$implicit,i=r.last,a=e.oxw(3);e.Q6J("ngClass",e.VKq(3,it,!i)),e.xp6(1),e.Q6J("ngIf",n.fundName&&(null==n.rowDataSummary?null:n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate)),e.xp6(1),e.Q6J("ngIf",n.fundName&&!(null!=n.rowDataSummary&&n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate))}}function rt(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).$implicit,i=e.oxw().index,a=e.oxw(3);e.xp6(1),e.hij(" ",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.currentPerformance," ")}}function dt(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"ftDashIfEmpty"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"")," "))}function lt(t,r){if(1&t&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).$implicit,i=e.oxw().index,a=e.oxw(3);e.xp6(1),e.hij(" ",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate," ")}}const j=function(t){return{"fund-compare__performance--adjust-row-cell-height":t}};function st(t,r){if(1&t&&(e.TgZ(0,"div",85),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).$implicit,i=e.oxw().index,a=e.oxw(3);e.Q6J("ngClass",e.VKq(2,j,n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate)),e.xp6(1),e.hij(" ",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[0]," ")}}function ct(t,r){if(1&t&&(e.TgZ(0,"div",85),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).$implicit,i=e.oxw().index,a=e.oxw(3);e.Q6J("ngClass",e.VKq(2,j,n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate)),e.xp6(1),e.hij(" ",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[1]," ")}}function mt(t,r){if(1&t&&(e.TgZ(0,"div",85),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).$implicit,i=e.oxw().index,a=e.oxw(3);e.Q6J("ngClass",e.VKq(2,j,n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate)),e.xp6(1),e.hij(" ",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[2]," ")}}function ut(t,r){if(1&t&&(e.TgZ(0,"div",78),e.TgZ(1,"div",83),e.YNc(2,rt,2,1,"span",5),e.YNc(3,dt,3,3,"span",5),e.YNc(4,lt,2,1,"small",5),e.qZA(),e.YNc(5,st,2,4,"div",84),e.YNc(6,ct,2,4,"div",84),e.YNc(7,mt,2,4,"div",84),e.qZA()),2&t){const n=e.oxw().$implicit,i=e.oxw().index,a=e.oxw(3);e.Q6J("ngClass",e.l5B(7,de,0===n.fundBMNames.length,1===n.fundBMNames.length,2===n.fundBMNames.length,3===n.fundBMNames.length)),e.xp6(2),e.Q6J("ngIf",!n.isMiFIDOneYearPerfEmdashRuleApplied&&!n.isSixMonthsPerfEmdashRuleApplied),e.xp6(1),e.Q6J("ngIf",n.isMiFIDOneYearPerfEmdashRuleApplied||n.isSixMonthsPerfEmdashRuleApplied),e.xp6(1),e.Q6J("ngIf",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate),e.xp6(1),e.Q6J("ngIf",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[0]),e.xp6(1),e.Q6J("ngIf",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[1]),e.xp6(1),e.Q6J("ngIf",n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][i].rowData.bmPerformances[2])}}function pt(t,r){1&t&&e._UZ(0,"div")}const le=function(t,r){return{"fund-compare__td--highlight-cell":t,"fund-compare__td--border-right":r}};function ft(t,r){if(1&t&&(e.TgZ(0,"td",82),e.YNc(1,ut,8,12,"div",76),e.YNc(2,pt,1,0,"div",5),e.qZA()),2&t){const n=r.$implicit,i=r.last,a=e.oxw(4);e.Q6J("ngClass",e.WLB(3,le,!(null!=n&&null!=n.rowDataSummary&&n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate),!i)),e.xp6(1),e.Q6J("ngIf",n.fundName&&(null==n.rowDataSummary?null:n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate)),e.xp6(1),e.Q6J("ngIf",n.fundName&&!(null!=n.rowDataSummary&&n.rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][0].rowData.performanceAsOfDate))}}function gt(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",80),e._uU(2),e.qZA(),e.YNc(3,ft,3,6,"td",81),e.qZA()),2&t){const n=r.$implicit,i=e.oxw(2).columnMetaData;e.xp6(2),e.hij(" ",n.rowHeader," "),e.xp6(1),e.Q6J("ngForOf",i)}}function _t(t,r){1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-perf-disclaimer-mifid")," "))}function vt(t,r){1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-perf-disclaimer-6month")," "))}function ht(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td",70),e.YNc(2,_t,3,3,"b",5),e.YNc(3,vt,3,3,"b",5),e.qZA(),e.qZA()),2&t){const n=e.oxw(2),i=n.isMiFIDOneYearPerfEmdashRuleAppliedInComparison,a=n.isSixMonthsPerfEmdashRuleAppliedInComparison;e.xp6(2),e.Q6J("ngIf",i),e.xp6(1),e.Q6J("ngIf",a)}}function Tt(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"tr"),e.TgZ(2,"th",68),e._UZ(3,"eds-proximal",69),e.qZA(),e.qZA(),e.TgZ(4,"tr"),e.TgZ(5,"th",70),e.YNc(6,jn,2,1,"span",5),e.YNc(7,zn,1,2,"eds-toggle",71),e.qZA(),e.qZA(),e.TgZ(8,"tr"),e.TgZ(9,"th",70),e.YNc(10,Wn,1,2,"eds-toggle",71),e.qZA(),e.qZA(),e.TgZ(11,"tr"),e.TgZ(12,"th",59),e.YNc(13,Kn,3,4,"b",5),e.qZA(),e.YNc(14,ot,3,5,"th",72),e.qZA(),e.YNc(15,gt,4,2,"tr",54),e.YNc(16,ht,4,2,"tr",5),e.TgZ(17,"tr"),e.TgZ(18,"td",70),e._UZ(19,"eds-proximal",73),e.qZA(),e.qZA(),e.BQk()),2&t){const n=e.oxw(),i=n.columnMetaData,a=n.rowHeaders,o=n.isMiFIDOneYearPerfEmdashRuleAppliedInComparison,d=n.isSixMonthsPerfEmdashRuleAppliedInComparison,l=e.oxw();e.xp6(6),e.Q6J("ngIf",1===l.config.performanceConfig.performanceViewOptions.length),e.xp6(1),e.Q6J("ngIf",l.config.performanceConfig.performanceViewOptions.length>1),e.xp6(3),e.Q6J("ngIf",null==l.selectedPerformanceViewToggleButton?null:l.selectedPerformanceViewToggleButton.periodEndToggleButtons.length),e.xp6(3),e.Q6J("ngIf",l.selectedPerformanceAsOfDate),e.xp6(1),e.Q6J("ngForOf",i),e.xp6(1),e.Q6J("ngForOf",a[l.selectedPerformanceView][l.selectedPeriodEnd]),e.xp6(1),e.Q6J("ngIf",o||d)}}function Ct(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",59),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,$n,2,1,"th",66),e.qZA(),e.YNc(6,Tt,20,7,"ng-container",5),e.TgZ(7,"tr"),e._UZ(8,"td",58),e.qZA()),2&t){const n=r.columnMetaData,i=r.isPerformanceDataPresentInComparison;
1e.xp6(3),e.Oqu(e.lcZ(4,3,"products.fund-tab-performance")),e.xp6(2),e.Q6J("ngForOf",n),e.xp6(1),e.Q6J("ngIf",i)}}function yt(t,r){if(1&t&&(e.TgZ(0,"small"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.AsE(" ",e.lcZ(2,2,"products.as-of")," ",n.rowDataSummary.portfolio.rowData.asOfDate," ")}}function St(t,r){1&t&&(e.TgZ(0,"small"),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.fund-cmp-portfolio-no-data")))}function wt(t,r){if(1&t&&(e.TgZ(0,"td",88),e.YNc(1,yt,3,4,"small",5),e.YNc(2,St,4,3,"small",5),e.qZA()),2&t){const n=r.$implicit;e.xp6(1),e.Q6J("ngIf",null==n||null==n.rowDataSummary||null==n.rowDataSummary.portfolio||null==n.rowDataSummary.portfolio.rowData?null:n.rowDataSummary.portfolio.rowData.asOfDate),e.xp6(1),e.Q6J("ngIf",(null==n?null:n.fundName)&&!(null!=n.rowDataSummary&&null!=n.rowDataSummary.portfolio&&null!=n.rowDataSummary.portfolio.rowData&&n.rowDataSummary.portfolio.rowData.asOfDate))}}function kt(t,r){if(1&t&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&t){const n=r.$implicit;e.xp6(1),e.hij(" ",n," ")}}const se=function(t,r){return{$implicit:t,isHoldingLastIteration:r}};function Nt(t,r){if(1&t&&(e.ynx(0),e.GkF(1,56),e.BQk()),2&t){const n=r.$implicit,i=r.last;e.oxw(5);const a=e.MAs(34);e.xp6(1),e.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",e.WLB(2,se,n,i))}}function xt(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Nt,2,5,"ng-container",54),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",n.rowDataSummary.portfolio.rowData.holdings)}}function Ft(t,r){if(1&t&&(e.TgZ(0,"td",65),e.YNc(1,xt,2,1,"ng-container",5),e.qZA()),2&t){const n=r.$implicit;e.Q6J("ngClass",e.WLB(2,le,!(null!=n&&null!=n.rowDataSummary&&null!=n.rowDataSummary.portfolio&&null!=n.rowDataSummary.portfolio.rowData&&n.rowDataSummary.portfolio.rowData.asOfDate),!r.last)),e.xp6(1),e.Q6J("ngIf",null==n||null==n.rowDataSummary||null==n.rowDataSummary.portfolio||null==n.rowDataSummary.portfolio.rowData?null:n.rowDataSummary.portfolio.rowData.asOfDate)}}function At(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",59),e.YNc(2,kt,2,1,"div",54),e.qZA(),e.YNc(3,Ft,2,5,"td",62),e.qZA()),2&t){const n=e.oxw(),i=n.rowHeaders,a=n.columnMetaData;e.xp6(2),e.Q6J("ngForOf",i.rowHeader),e.xp6(1),e.Q6J("ngForOf",a)}}function Dt(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",86),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,wt,3,2,"td",87),e.qZA(),e.YNc(6,At,4,2,"tr",5),e.TgZ(7,"tr"),e._UZ(8,"td",58),e.qZA()),2&t){const n=r.columnMetaData,i=r.isPortfolioDataPresentInComparison;e.xp6(3),e.Oqu(e.lcZ(4,3,"products.fund-cmp-portfolio")),e.xp6(2),e.Q6J("ngForOf",n),e.xp6(1),e.Q6J("ngIf",i)}}function It(t,r){1&t&&(e.TgZ(0,"small"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-documents-no-data")," "))}function Et(t,r){if(1&t&&(e.TgZ(0,"td",88),e.YNc(1,It,3,3,"small",5),e.qZA()),2&t){const n=r.$implicit,i=e.oxw().isDocumentDataPresentInComparison;e.xp6(1),e.Q6J("ngIf",!i&&(null==n?null:n.fundName)&&!(null!=n.rowDataSummary&&null!=n.rowDataSummary.documents&&null!=n.rowDataSummary.documents.rowData&&n.rowDataSummary.documents.rowData.length))}}const bt=function(t){return{$implicit:t}};function Pt(t,r){if(1&t&&e.GkF(0,56),2&t){const n=r.ngIf;e.oxw(4);const i=e.MAs(36);e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(2,bt,n))}}const Mt=function(t,r,n){return{"fund-compare__td--border-right":t,"fund-compare__td--highlight-cell":r,"fund-compare__td--align-right":n}};function Ot(t,r){if(1&t&&(e.TgZ(0,"td",65),e.YNc(1,Pt,1,4,"ng-container",55),e.qZA()),2&t){const n=r.$implicit;e.Q6J("ngClass",e.kEZ(2,Mt,!r.last,!(null!=n.rowDataSummary&&null!=n.rowDataSummary.documents&&null!=n.rowDataSummary.documents.rowData&&n.rowDataSummary.documents.rowData.length),!(null!=n.rowDataSummary&&null!=n.rowDataSummary.documents&&null!=n.rowDataSummary.documents.rowData&&n.rowDataSummary.documents.rowData.length))),e.xp6(1),e.Q6J("ngIf",null==n.rowDataSummary||null==n.rowDataSummary.documents?null:n.rowDataSummary.documents.rowData)}}
1function Zt(t,r){if(1&t&&(e.TgZ(0,"tr",90),e.TgZ(1,"th",59),e._uU(2),e.qZA(),e.YNc(3,Ot,2,6,"td",62),e.qZA()),2&t){const n=e.oxw(),i=n.rowHeaders,a=n.columnMetaData;e.xp6(2),e.hij(" ",i.rowHeader," "),e.xp6(1),e.Q6J("ngForOf",a)}}function Rt(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"th",86),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,Et,2,1,"td",87),e.qZA(),e.YNc(6,Zt,4,2,"tr",89),e.TgZ(7,"tr"),e._UZ(8,"td",58),e.qZA()),2&t){const n=r.columnMetaData,i=r.isDocumentDataPresentInComparison;e.xp6(3),e.Oqu(e.lcZ(4,3,"products.fund-tab-documents")),e.xp6(2),e.Q6J("ngForOf",n),e.xp6(1),e.Q6J("ngIf",i)}}function Lt(t,r){if(1&t&&e._UZ(0,"eds-footnote",64),2&t){const n=e.oxw().$implicit;e.Q6J("placement",null==n||null==n.rowHeader?null:n.rowHeader.caveatPlacement)}}const Ht=function(t,r,n){return{rowData:t,fieldType:r,headerType:n}};function Yt(t,r){if(1&t&&e.GkF(0,56),2&t){const n=e.oxw(),i=n.index,a=n.$implicit,o=e.oxw().columnMetaData,d=e.oxw(),l=e.MAs(30);e.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",e.kEZ(2,Ht,o[d.selectedFundToggleButtonIndex].rowDataSummary.overview[i].rowData,null==a||null==a.rowHeader?null:a.rowHeader.fieldType,null==a||null==a.rowHeader?null:a.rowHeader.headerType))}}function Bt(t,r){if(1&t&&e.GkF(0,56),2&t){const n=e.oxw(),i=n.index,a=n.$implicit,o=e.oxw().columnMetaData,d=e.oxw(),l=e.MAs(32);e.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",e.HTZ(2,re,o[d.selectedFundToggleButtonIndex].rowDataSummary.overview[i].rowData,null==a||null==a.rowHeader?null:a.rowHeader.children[0].fieldType,null==a||null==a.rowHeader?null:a.rowHeader.children[1].fieldType,null==a||null==a.rowHeader?null:a.rowHeader.children[0].headerType,null==a||null==a.rowHeader?null:a.rowHeader.children[1].headerType,o[d.selectedFundToggleButtonIndex].fundNavChangeDirection))}}const Vt=function(t){return{"fund-compare__handheld-view fund-compare__handheld-view--content-hide":t}};function qt(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",93),e.TgZ(2,"div",94),e._uU(3),e.ALo(4,"translate"),e.YNc(5,Lt,1,1,"eds-footnote",61),e.qZA(),e.TgZ(6,"div",95),e.YNc(7,Yt,1,6,"ng-container",55),e.YNc(8,Bt,1,9,"ng-container",55),e.qZA(),e.qZA(),e.BQk()),2&t){const n=r.$implicit,i=r.index,a=e.oxw(),o=a.isHandheldViewContentExpanded,d=a.columnMetaData,l=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,Vt,!o&&i>2)),e.xp6(2),e.hij(" ",e.lcZ(4,5,null==n||null==n.rowHeader?null:n.rowHeader.label)," "),e.xp6(2),e.Q6J("ngIf",null==n||null==n.rowHeader?null:n.rowHeader.caveatPlacement),e.xp6(2),e.Q6J("ngIf",!(null!=n&&null!=n.rowHeader&&n.rowHeader.children)&&(null==d[l.selectedFundToggleButtonIndex]?null:d[l.selectedFundToggleButtonIndex].rowDataSummary)),e.xp6(1),e.Q6J("ngIf",2===(null==n||null==n.rowHeader||null==n.rowHeader.children?null:n.rowHeader.children.length)&&(null==d[l.selectedFundToggleButtonIndex]?null:d[l.selectedFundToggleButtonIndex].rowDataSummary))}}const Gt=function(t){return{"fund-compare__handheld-view fund-compare__handheld-view--content-highlight":t}};function Ut(t,r){if(1&t&&(e.TgZ(0,"div",91),e.TgZ(1,"div",92),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,qt,9,9,"ng-container",54),e.qZA()),2&t){const n=r.rowHeaders;e.Q6J("ngClass",e.VKq(5,Gt,r.$implicit)),e.xp6(3),e.Oqu(e.lcZ(4,3,"products.fund-tab-overview")),e.xp6(2),e.Q6J("ngForOf",n)}}function Qt(t,r){1&t&&(e.TgZ(0,"div",92),e.TgZ(1,"small"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"products.fund-cmp-performance-no-data")," "))}function Jt(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.hij(" ",n.config.performanceConfig.performanceViewOptions[0].headerLabelKey," ")}}function $t(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"eds-toggle",74),e.NdJ("toggleActive",function(a){return e.CHM(n),e.oxw(3).onPerformanceToggleUpdate("performanceType",a)}),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("toggleButtons",n.performanceViewToggleButtons)("isNoWrap",!0)}}function jt(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"eds-toggle",74),e.NdJ("toggleActive",function(a){return e.CHM(n),e.oxw(3).onPerformanceToggleUpdate("peri
1odEnd",a)}),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("toggleButtons",n.selectedPerformanceViewToggleButton.periodEndToggleButtons)("isNoWrap",!0)}}function zt(t,r){if(1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.AsE(" ",e.lcZ(2,2,"products.as-of")," ",n.selectedPerformanceAsOfDate," ")}}function Wt(t,r){if(1&t&&(e.TgZ(0,"b"),e._uU(1),e.qZA()),2&t){const n=e.oxw().index,i=e.oxw(2).columnMetaData,a=e.oxw();e.xp6(1),e.hij(" ",null==i[a.selectedFundToggleButtonIndex]||null==i[a.selectedFundToggleButtonIndex].rowDataSummary?null:i[a.selectedFundToggleButtonIndex].rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][n].rowData.currentPerformance," ")}}function Kt(t,r){1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"ftDashIfEmpty"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"")," "))}function Xt(t,r){if(1&t&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&t){const n=e.oxw().index,i=e.oxw(2).columnMetaData,a=e.oxw();e.xp6(1),e.hij(" ",i[a.selectedFundToggleButtonIndex].rowDataSummary.performance[a.selectedPerformanceView][a.selectedPeriodEnd][n].rowData.performanceSinceInceptionDate," ")}}function ea(t,r){if(1&t&&(e.TgZ(0,"div",102),e.TgZ(1,"div",99),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.TgZ(5,"div",100),e.TgZ(6,"b"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&t){const n=r.index,i=r.last,a=e.oxw(),o=a.last,d=a.index,l=e.oxw(2).columnMetaData,v=e.oxw();e.Q6J("edsPaddingBottom",o&&i?"sm":"none"),e.xp6(3),e.AsE("",e.lcZ(4,4,"products.benchmark")," ",n+1,""),e.xp6(4),e.hij(" ",null==l[v.selectedFundToggleButtonIndex]||null==l[v.selectedFundToggleButtonIndex].rowDataSummary?null:l[v.selectedFundToggleButtonIndex].rowDataSummary.performance[v.selectedPerformanceView][v.selectedPeriodEnd][d].rowData.bmPerformances[n]," ")}}function na(t,r){if(1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",97),e.TgZ(2,"b"),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",98),e.TgZ(5,"div",99),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.TgZ(9,"div",100),e.YNc(10,Wt,2,1,"b",5),e.YNc(11,Kt,3,3,"b",5),e.YNc(12,Xt,2,1,"small",5),e.qZA(),e.qZA(),e.YNc(13,ea,8,6,"div",101),e.qZA()),2&t){const n=r.$implicit,i=r.index,a=e.oxw(2).columnMetaData,o=e.oxw();e.xp6(3),e.hij(" ",n.rowHeader," "),e.xp6(4),e.Oqu(e.lcZ(8,6,"products.fund")),e.xp6(3),e.Q6J("ngIf",!(null!=a[o.selectedFundToggleButtonIndex]&&a[o.selectedFundToggleButtonIndex].isMiFIDOneYearPerfEmdashRuleApplied||null!=a[o.selectedFundToggleButtonIndex]&&a[o.selectedFundToggleButtonIndex].isSixMonthsPerfEmdashRuleApplied)),e.xp6(1),e.Q6J("ngIf",(null==a[o.selectedFundToggleButtonIndex]?null:a[o.selectedFundToggleButtonIndex].isMiFIDOneYearPerfEmdashRuleApplied)||(null==a[o.selectedFundToggleButtonIndex]?null:a[o.selectedFundToggleButtonIndex].isSixMonthsPerfEmdashRuleApplied)),e.xp6(1),e.Q6J("ngIf",null==a[o.selectedFundToggleButtonIndex]||null==a[o.selectedFundToggleButtonIndex].rowDataSummary?null:a[o.selectedFundToggleButtonIndex].rowDataSummary.performance[o.selectedPerformanceView][o.selectedPeriodEnd][i].rowData.performanceSinceInceptionDate),e.xp6(1),e.Q6J("ngForOf",null==a[o.selectedFundToggleButtonIndex]?null:a[o.selectedFundToggleButtonIndex].fundBMNames)}}function ta(t,r){1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-perf-disclaimer-mifid")," "))}function aa(t,r){1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-perf-disclaimer-6month")," "))}function ia(t,r){if(1&t&&(e.TgZ(0,"div",92),e.YNc(1,ta,3,3,"b",5),e.YNc(2,aa,3,3,"b",5),e.qZA()),2&t){const n=e.oxw(2).columnMetaData,i=e.oxw();e.xp6(1),e.Q6J("ngIf",n[i.selectedFundToggleButtonIndex].isMiFIDOneYearPerfEmdashRuleApplied),e.xp6(1),e.Q6J("ngIf",n[i.selectedFundToggleButtonIndex].isSixMonthsPerfEmdashRuleApplied)}}function oa(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",92),e._UZ(2,"eds-proximal",69),e.qZA(),e.TgZ(3,"div",92),e.YNc(4,Jt,2,1,"span",5),e.YNc(5,$t,1,2,"eds-toggle",71),e.qZA(),e.TgZ(6,"div",92),e.YNc(7,jt,1,2,"eds-toggle",71),e.qZA(),e.TgZ(8,"div",92),e.YNc(9,zt,3,4,"b",5),e.qZA(),e.YNc(10,na,14,8,"div",54),e.YNc(11,ia,3,2,"div",96),e.TgZ(12,"div",92),e._UZ(13,"eds-proximal",73),e.qZA(),e.BQk()),2&t){const n=e.oxw(),i=n.rowHeaders,a=n.columnMetaData,o=e.oxw();e.xp6(4),e.Q6J("ngIf",1===o.config.performanceConfig.performanceViewOptions.length),e.xp6(1),e.Q6J("ngIf",o.config.performanceConfig.performanceViewOptions.length>1),e.xp6(2),e.Q6J("ngIf",null==o.selectedPerformanceViewToggleButton?null:o.selectedPerformanceViewToggleButton.periodEndToggleButtons.length),e.xp6(2),e.Q6J("ngIf",o.selectedPerformanceAsOfDate),e.xp6(1),e.Q6J("ngForOf",i[o.selectedPerformanceView][o.selectedPeriodEnd]),e.xp6(1),e.Q6J("ngIf",(null==a[o.selectedFundToggleButtonIndex]?null:a[o.selectedFundToggleButtonIndex].isMiFIDOneYearPerfEmdashRuleApplied)||(null==a[o.selectedFundToggleButtonIndex]?null:a[o.selectedFundToggleButtonIndex].isSixMonthsPerfEmdashRuleApplied))}}const z=function(t,r){return{"fund-compare__handheld-view fund-compare__handheld-view--content-hide":t,"fund-compare__handheld-view fund-compare__handheld-view--content-highlight":r}};function ra(t,r){if(1&t&&(e.TgZ(0,"div",91),e.TgZ(1,"div",92),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,Qt,4,3,"div",96),e.YNc(6,oa,14,6,"ng-container",5),e.qZA()),2&t){const n=r.columnMetaData,i=r.isHandheldViewContentExpanded,a=r.$implicit,o=e.oxw();
1e.Q6J("ngClass",e.WLB(6,z,!i,a)),e.xp6(3),e.Oqu(e.lcZ(4,4,"products.fund-tab-performance")),e.xp6(2),e.Q6J("ngIf",(null==n[o.selectedFundToggleButtonIndex]?null:n[o.selectedFundToggleButtonIndex].fundName)&&!(null!=n[o.selectedFundToggleButtonIndex].rowDataSummary&&n[o.selectedFundToggleButtonIndex].rowDataSummary.performance[o.selectedPerformanceView][o.selectedPeriodEnd][0].rowData.performanceAsOfDate)),e.xp6(1),e.Q6J("ngIf",(null==n[o.selectedFundToggleButtonIndex]?null:n[o.selectedFundToggleButtonIndex].fundName)&&(null==n[o.selectedFundToggleButtonIndex].rowDataSummary?null:n[o.selectedFundToggleButtonIndex].rowDataSummary.performance[o.selectedPerformanceView][o.selectedPeriodEnd][0].rowData.performanceAsOfDate))}}function da(t,r){if(1&t&&(e.TgZ(0,"b"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw(2).columnMetaData,i=e.oxw();e.xp6(1),e.AsE(" ",e.lcZ(2,2,"products.as-of")," ",n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData.asOfDate," ")}}function la(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.fund-cmp-portfolio-no-data")," "))}function sa(t,r){if(1&t&&(e.TgZ(0,"div",92),e.YNc(1,da,3,4,"b",5),e.YNc(2,la,3,3,"span",5),e.qZA()),2&t){const n=e.oxw().columnMetaData,i=e.oxw();e.xp6(1),e.Q6J("ngIf",null==n[i.selectedFundToggleButtonIndex]||null==n[i.selectedFundToggleButtonIndex].rowDataSummary||null==n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio||null==n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData?null:n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData.asOfDate),e.xp6(1),e.Q6J("ngIf",!(null!=n[i.selectedFundToggleButtonIndex].rowDataSummary&&null!=n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio&&null!=n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData&&n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData.asOfDate))}}function ca(t,r){if(1&t&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&t){const n=r.$implicit;e.xp6(1),e.hij(" ",n," ")}}function ma(t,r){if(1&t&&(e.TgZ(0,"div",98),e.TgZ(1,"div",94),e.YNc(2,ca,2,1,"div",54),e.qZA(),e.TgZ(3,"div",95),e.GkF(4,56),e.qZA(),e.qZA()),2&t){const n=r.$implicit,i=r.last,a=e.oxw(2).rowHeaders;e.oxw();const o=e.MAs(34);e.xp6(2),e.Q6J("ngForOf",a.rowHeader),e.xp6(2),e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.WLB(3,se,n,i))}}function ua(t,r){if(1&t&&(e.ynx(0),e.YNc(1,ma,5,6,"div",103),e.BQk()),2&t){const n=e.oxw().columnMetaData,i=e.oxw();e.xp6(1),e.Q6J("ngForOf",n[i.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData.holdings)}}function pa(t,r){if(1&t&&(e.TgZ(0,"div",91),e.TgZ(1,"div",92),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,sa,3,2,"div",96),e.YNc(6,ua,2,1,"ng-container",5),e.qZA()),2&t){const n=r.columnMetaData,i=r.isHandheldViewContentExpanded,a=r.$implicit,o=e.oxw();e.Q6J("ngClass",e.WLB(6,z,!i,a)),e.xp6(3),e.Oqu(e.lcZ(4,4,"products.fund-cmp-portfolio")),e.xp6(2),e.Q6J("ngIf",null==n[o.selectedFundToggleButtonIndex]?null:n[o.selectedFundToggleButtonIndex].fundName),e.xp6(1),e.Q6J("ngIf",null==n[o.selectedFundToggleButtonIndex]||null==n[o.selectedFundToggleButtonIndex].rowDataSummary||null==n[o.selectedFundToggleButtonIndex].rowDataSummary.portfolio||null==n[o.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData?null:n[o.selectedFundToggleButtonIndex].rowDataSummary.portfolio.rowData.asOfDate)}}function fa(t,r){1&t&&e.GkF(0)}function ga(t,r){if(1&t&&(e.ynx(0),e.YNc(1,fa,1,0,"ng-container",104),e.BQk()),2&t){const n=e.oxw().columnMetaData,i=e.oxw(),a=e.MAs(36),o=e.MAs(38);e.xp6(1),e.Q6J("ngIf",null==n[i.selectedFundToggleButtonIndex].rowDataSummary||null==n[i.selectedFundToggleButtonIndex].rowDataSummary.documents?null:n[i.selectedFundToggleButtonIndex].rowDataSummary.documents.rowData)("ngIfThen",a)("ngIfElse",o)}}function _a(t,r){if(1&t&&(e.TgZ(0,"div",91),e.TgZ(1,"div",92),e.TgZ(2,"b"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.qZA(),e.YNc(5,ga,2,3,"ng-container",5),e.qZA()),2&t){const n=r.columnMetaData,i=r.isHandheldViewContentExpanded,a=r.$implicit,o=e.oxw();
1e.Q6J("ngClass",e.WLB(5,z,!i,a)),e.xp6(3),e.Oqu(e.lcZ(4,3,"products.fund-tab-documents")),e.xp6(2),e.Q6J("ngIf",null==n[o.selectedFundToggleButtonIndex]?null:n[o.selectedFundToggleButtonIndex].fundName)}}const B=function(t){return{"fund-compare__handheld-view--content-bold":t}};function va(t,r){if(1&t&&(e.TgZ(0,"div",106),e.ALo(1,"async"),e._uU(2),e.ALo(3,"ftDashIfEmpty"),e.qZA()),2&t){const n=e.oxw().rowData,i=e.oxw();e.Q6J("ngClass",e.VKq(6,B,!0===e.lcZ(1,2,i.isHandheld$))),e.xp6(2),e.hij(" ",e.lcZ(3,4,n.value1)," ")}}function ha(t,r){if(1&t&&(e.TgZ(0,"li",110),e._uU(1),e.qZA()),2&t){const n=r.$implicit;e.xp6(1),e.hij(" ",n," ")}}function Ta(t,r){if(1&t&&(e.TgZ(0,"ol",108),e.YNc(1,ha,2,1,"li",109),e.qZA()),2&t){const n=e.oxw(2).rowData;e.xp6(1),e.Q6J("ngForOf",n.value1)}}function Ca(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Oqu(n.EMDASH)}}function ya(t,r){if(1&t&&(e.TgZ(0,"div",106),e.ALo(1,"async"),e.YNc(2,Ta,2,1,"ol",107),e.YNc(3,Ca,2,1,"span",5),e.qZA()),2&t){const n=e.oxw().rowData,i=e.oxw();e.Q6J("ngClass",e.VKq(5,B,!0===e.lcZ(1,3,i.isHandheld$))),e.xp6(2),e.Q6J("ngIf",null==n.value1?null:n.value1.length),e.xp6(1),e.Q6J("ngIf",!(null!=n.value1&&n.value1.length))}}const Sa=function(t,r){return{"fund-compare__content--collapsed":t,"fund-compare__content--expanded":r}};function wa(t,r){if(1&t&&(e._UZ(0,"div",113),e.ALo(1,"safeHtml")),2&t){const n=e.oxw(2),i=n.rowData,a=n.columnIndex,o=e.oxw();e.Q6J("innerHTML",e.lcZ(1,2,i.value1),e.oJD)("ngClass",e.WLB(4,Sa,!o.fundCompareTextExpand[a],o.fundCompareTextExpand[a]))}}function ka(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.read-less"),""))}function Na(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.read-more")," "))}function xa(t,r){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"button",114),e.NdJ("click",function(){e.CHM(n);const a=e.oxw(2).columnIndex;return e.oxw().toggleTextExpand(a)}),e.YNc(2,ka,3,3,"span",5),e.YNc(3,Na,3,3,"span",5),e.qZA(),e.BQk()}if(2&t){const n=e.oxw(2).columnIndex,i=e.oxw();e.xp6(1),e.Q6J("size","small"),e.xp6(1),e.Q6J("ngIf",i.fundCompareTextExpand[n]),e.xp6(1),e.Q6J("ngIf",!i.fundCompareTextExpand[n])}}function Fa(t,r){if(1&t&&(e.TgZ(0,"p",115),e._uU(1),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Oqu(n.EMDASH)}}function Aa(t,r){if(1&t&&(e.TgZ(0,"div",106),e.ALo(1,"async"),e.YNc(2,wa,2,7,"div",111),e.YNc(3,xa,4,3,"ng-container",5),e.YNc(4,Fa,2,1,"p",112),e.qZA()),2&t){const n=e.oxw().rowData,i=e.oxw();e.Q6J("ngClass",e.VKq(6,B,!0===e.lcZ(1,4,i.isHandheld$))),e.xp6(2),e.Q6J("ngIf",null==n.value1?null:n.value1.length),e.xp6(1),e.Q6J("ngIf",null==n.value1?null:n.value1.length),e.xp6(1),e.Q6J("ngIf",!(null!=n.value1&&n.value1.length))}}function Da(t,r){if(1&t&&(e.YNc(0,va,4,8,"div",105),e.YNc(1,ya,4,7,"div",105),e.YNc(2,Aa,5,8,"div",105)),2&t){const n=r.fieldType;e.Q6J("ngIf","STRING"===n),e.xp6(1),e.Q6J("ngIf","ARRAY"===n),e.xp6(1),e.Q6J("ngIf","HTML"===n)}}function Ia(t,r){if(1&t&&(e.TgZ(0,"span",106),e.ALo(1,"async"),e._uU(2),e.ALo(3,"ftDashIfEmpty"),e.qZA()),2&t){const n=e.oxw().rowData,i=e.oxw();e.Q6J("ngClass",e.VKq(6,B,!0===e.lcZ(1,2,i.isHandheld$))),e.xp6(2),e.Oqu(e.lcZ(3,4,n.value1))}}function Ea(t,r){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"eds-rating",119),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw().rowData;e.xp6(1),e.Q6J("rating",n.value1)("title",e.lcZ(2,2,"products.morningstar-review"))}}function ba(t,r){if(1&t&&(e.TgZ(0,"small"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=e.oxw(2).rowData;e.xp6(1),e.AsE(" ",e.lcZ(2,2,"products.as-of")," ",n.value2," ")}}function Pa(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Oqu(n.EMDASH)}}function Ma(t,r){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,ba,3,4,"small",5),e.YNc(2,Pa,2,1,"span",5),e.qZA()),2&t){const n=e.oxw().rowData;e.xp6(1),e.Q6J("ngIf",n.value2),e.xp6(1),e.Q6J("ngIf",!n.value2)}}function Oa(t,r){1&t&&e._UZ(0,"eds-icon",122)}function Za(t,r){1&t&&e._UZ(0,"eds-icon",123)}function Ra(t,r){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Oa,1,0,"eds-icon",120),e.YNc(2,Za,1,0,"eds-icon",121),e.TgZ(3,"span",106),e.ALo(4,"async"),e._uU(5),e.ALo(6,"ftDashIfEmpty"),e.qZA(),e.qZA()),2&t){const n=e.oxw(),i=n.fundNavChangeDirection,a=n.rowData,o=e.oxw();e.xp6(1),e.Q6J("ngIf","gain"===i),e.xp6(1),e.Q6J("ngIf","loss"===i),e.xp6(1),e.Q6J("ngClass",e.VKq(8,B,!0===e.lcZ(4,4,o.isHandheld$))),e.xp6(2),e.Oqu(e.l
1cZ(6,6,a.value2))}}function La(t,r){if(1&t&&(e.TgZ(0,"div",116),e.YNc(1,Ia,4,8,"span",117),e.YNc(2,Ea,3,4,"span",118),e.qZA(),e.TgZ(3,"div",116),e.YNc(4,Ma,3,2,"div",118),e.YNc(5,Ra,7,10,"div",118),e.qZA()),2&t){const i=r.headerType2;e.Q6J("ngSwitch",r.headerType1),e.xp6(1),e.Q6J("ngSwitchCase","TEXT"),e.xp6(1),e.Q6J("ngSwitchCase","RATING"),e.xp6(1),e.Q6J("ngSwitch",i),e.xp6(1),e.Q6J("ngSwitchCase","DATE"),e.xp6(1),e.Q6J("ngSwitchCase","PERCENT")}}function Ha(t,r){if(1&t&&(e.TgZ(0,"div",124),e.ALo(1,"async"),e.TgZ(2,"div"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.qZA()),2&t){const n=r.$implicit,i=r.isHoldingLastIteration,a=e.oxw();e.Q6J("ngClass",e.VKq(6,B,!0===e.lcZ(1,4,a.isHandheld$)))("edsSpacing",i?"none":"sm"),e.xp6(3),e.Oqu(null==n?null:n.name),e.xp6(2),e.Oqu(null==n?null:n.weight)}}const ce=function(t){return{"fund-compare__handheld-view fund-compare__handheld-view--content-padding":t}};function Ya(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",126),e.ALo(2,"async"),e.ALo(3,"async"),e._UZ(4,"eds-link-item",127),e.ALo(5,"async"),e.ALo(6,"async"),e.qZA(),e.BQk()),2&t){const n=r.$implicit,i=r.last,a=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.VKq(17,ce,!0===e.lcZ(2,9,a.isHandheld$)))("edsSpacing",i||!1!==e.lcZ(3,11,a.isHandheld$)?"none":"sm"),e.xp6(3),e.Q6J("hasLeftIcon",!0)("iconSize",!0===e.lcZ(5,13,a.isHandheld$)?"small":"normal")("type","pdf")("title",n.documentDisplayName)("href",n.documentDownloadLink)("useSmallText",!0===e.lcZ(6,15,a.isHandheld$))("isNewWindow",!0)}}function Ba(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Ya,7,19,"ng-container",54),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",n)}}function Va(t,r){1&t&&e.GkF(0)}function qa(t,r){if(1&t&&(e.YNc(0,Ba,2,1,"ng-container",5),e.YNc(1,Va,1,0,"ng-container",125)),2&t){const n=r.$implicit;e.oxw();const i=e.MAs(38);e.Q6J("ngIf",null==n?null:n.length),e.xp6(1),e.Q6J("ngIf",!(null!=n&&n.length))("ngIfThen",i)}}function Ga(t,r){if(1&t&&(e.TgZ(0,"small",106),e.ALo(1,"async"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t){const n=e.oxw();e.Q6J("ngClass",e.VKq(6,ce,!0===e.lcZ(1,2,n.isHandheld$))),e.xp6(2),e.hij(" ",e.lcZ(3,4,"products.fund-cmp-documents-no-data")," ")}}let Ua=(()=>{class t{constructor(n,i,a,o,d){this.fundComparisonService=n,this.modalService=i,this.translateService=a,this.responsiveService=o,this.cdr=d,this.isLoaded=!1,this.EMDASH=w.Sk,this.isHandheldViewContentExpanded=!1,this.fundCompareTextExpand=[!1,!1,!1,!1],this.hideStickyFooter=!0,this.isHandheld$=this.responsiveService.isHandheld$()}ngOnInit(){this.simpleModalConfig={modalId:"fundComparisonModal",title:this.translateService.instant("products.fund-cmp-add-fund-model-title"),closeBtnLabel:"Close",themeTitle:"dark"},this.downloadActionParam={hasAction:!0,buttonLabel:this.translateService.instant("products.fund-cmp-sticky-download-button"),iconType:"download"},this.filteredSearchResultData$=this.fundComparisonService.getFilteredSearchResultData$(),this.dataSubscription=this.fundComparisonService.getFundComparisonState$().subscribe(n=>{this.rowHeaderSummary=n.rowHeaderSummary,this.columnMetaData=n.columnMetaData,this.config=n.config,n.config.performanceConfig?.performanceViewOptions.length&&!this.performanceViewToggleButtons?.length&&this.handlePerformanceConfigs(n.config.performanceConfig.performanceViewOptions),this.handleFundToggleConfigs(),this.hideStickyFooter=!this.columnMetaData.some(i=>i.fundShareClassId),this.isLoaded||(this.isLoaded=!0),this.cdr.detectChanges()}),this.fundComparisonService.populate()}handlePerformanceConfigs(n,i,a){this.performanceViewToggleButtons=[],n.forEach(o=>{this.performanceViewToggleButtons.push({text:this.translateService.instant(o.labelKey),value:o.name,active:i?o.name===i:o.isDefault,periodEndToggleButtons:o.periodEnds.map((d,l)=>({text:this.translateService.instant(`products.${d}`),value:d,active:a?d===a:0===l}))})}),this.selectedPerformanceViewToggleButton=this.performanceViewToggleButtons.find(o=>o.active),this.selectedPerformanceView=this.selectedPerformanceViewToggleButton.value,this.selectedPeriodEnd=a||this.selectedPerformanceViewToggleButton.periodEndToggleButtons[0].value,this.selectedPerformanceAsOfDate=this.columnMetaData?.find(o=>o.rowDataSummary?.performance[this.selectedPerformanceView][this.selectedPeriodEnd][0]?.rowData?.performanceAsOfDate)?.rowDataSummary.performance[this.selectedPerformanceView][this.selectedPeriodEnd][0].rowData.performanceAsOfDate}handleFundToggleConfigs(){this.fundToggleButtons=this.columnMetaData.map((n,i)=>({text:n?.fundName?`${this.translateService.instant("products.fund")} ${i+1}`:this.translateService.instant(`products.fund-cmp-toggle-fund${i+1}`),value:n?.fundShareClassId,active:!!this.selectedFundShareClassId&&n?.fundShareClassId===this.selectedFundShareClassId})),this.selectedFundToggleButtonIndex=this.fundToggleButtons.findIndex(n=>n.active)}onSelectFund(){this.modalService.open(this.simpleModalConfig.modalId)}onRemoveFund(n,i){n.preventDefault(),this.fundComparisonService.handleDeleteAction(i),this.fundComparisonService.removeFund(i);const a=this.columnMetaData.findIndex(o=>!o?.fundName);a<1?(this.selectedFundToggleButtonIndex=void 0,this.selectedFundShareClassId=void 0):(this.selectedFundToggleButtonIndex=a-1,this.selectedFundShareClassId=this.columnMetaData[this.selectedFundToggleButtonIndex].fundShareClassId),this.handleFundToggleConfigs(),this.fundCompareTextExpand=this.fundCompareTextExpand.map(o=>!1)}onSearchTerm(n){this.fundComparisonService.filterSearchResult(n.trim())}onSelectTerm(n){const i=n.value;this.fundComparisonService.handleSaveAction([...this.columnMetaData.filter(o=>(0,C.Uh)(o,"fundShareClassId")).map(o=>o.fundShareClassId),i]);const a=this.page.getChannelParameters().language;this.fundComparisonService.setLocale(a),this.fundComparisonService.loadFundComparisonData(i),this.selectedFundShareClassId=i,this.isSelectFundModalWindowActive=!1,this.modalService.close(this.simpleModalConfig.modalId),this.searchBox.value=null}onPerformanceToggleUpdate(n,i){"performanceType"===n?this.handlePerformanceConfigs(this.config.performanceConfig.performanceViewOptions,i.value,this.selectedPeriodEnd):this.handlePerformanceConfigs(this.config.performanceConfig.performanceViewOptions,this.selectedPerformanceView,i.value)}onFundToggleUpdate(n){n.value?this.fundToggleButtons.forEach((i,a)=>{i.value===n.value?(i.active=!0,this.selectedFundToggleButtonIndex=a,this.selectedFundShareClassId=n.value):i.active=!1}):(this.modalService.open(this.simpleModalConfig.modalId),this.isSelectFundModalWindowActive=!0)}onSelectFundModalClose(){!1===this.isSelectFundModalWindowActive?this.selectedFundToggleButtonIndex++:(this.isSelectFundModalWindowActive=void 0,this.handleFundToggleConfigs())}onExpandCollapseToggle(){this.isHandheldViewContentExpanded=!this.isHandheldViewContentExpanded}toggleTextExpand(n){this.fundCompareTextExpand[n]=!this.fundCompareTextExpand[n]}onDownloadAction(){this.fundComparisonService.handleDownloadAction()}ngOnDestroy(){this.dataSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(fn),e.Y36(A.Z7U),e.Y36(ne.s),e.Y36(A.kzD),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ft-fund-comparison"]],viewQuery:function(n,i){if
1(1&n&&e.Gf(vn,5),2&n){let a;e.iGM(a=e.CRH())&&(i.searchBox=a.first)}},inputs:{page:"page"},decls:48,vars:26,consts:[["edsGrid",""],["edsRow",""],["edsCol",""],["placement","FundCompareGlobalProximalTop"],["edsRow","",4,"ngIf"],[4,"ngIf"],["placement","FundCompareGlobalProximalBottom"],["sectionDisplay",""],["overviewSection",""],["performanceSection",""],["portfolioSection",""],["documentsSection",""],["overviewSectionHandheld",""],["performanceSectionHandheld",""],["portfolioSectionHandheld",""],["documentsSectionHandheld",""],["noChildrenOverviewCellTemplate",""],["twoChildrenOverviewCellTemplate",""],["twoChildrenPortfolioCellTemplate",""],["noChildrenDocumentsCellTemplate",""],["emptyListDocumentsCellTemplate",""],[3,"modalId","config","isFixedHeight","onClose"],["modal-body",""],[3,"label","placeholder","hasDropdown","items","searchTerm","selectedItem"],["searchBox",""],["variation","2",3,"isHide","itemCount","label","stickyFooterName","secondaryAction","btnSubscribeSecond"],[1,"fund-compare__table"],["scope","row",1,"fund-compare__th","fund-compare__th--row-header"],["scope","col","class","fund-compare__th fund-compare__th--row-data",3,"ngClass",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["scope","col",1,"fund-compare__th","fund-compare__th--row-data",3,"ngClass"],["edsFlexbox","","flexDirection","column",4,"ngIf"],["edsButton","primary","size","compact",3,"noMargin","click",4,"ngIf"],["edsFlexbox","","flexDirection","column"],["edsButton","icon-only",1,"fund-compare__action-button",3,"hasIcon","click"],["edsPadding","","edsPaddingRight","xs"],["type","cross","size","small",1,"fund-compare__action-button--align-icon"],[3,"title","href","isNewWindow"],["edsButton","primary","size","compact",3,"noMargin","click"],["edsRow","","edsSpacing","md"],[3,"toggleButtons","toggleActive"],[3,"hasBorders","hasBorderRadius","overflowHidden","hasPadding"],["edsPadding","","edsPaddingTop","md","edsPaddingRight","md","edsPaddingBottom","sm","edsPaddingLeft","md","edsFlexbox","","justifyContent","flex-end",4,"ngIf"],["edsPadding","","edsPaddingTop","sm","edsPaddingRight","md","edsPaddingBottom","md","edsPaddingLeft","md",4,"ngIf"],["edsPadding","","edsPaddingAll","md"],[3,"edsButton","size","hasIcon","click"],["edsPadding","","edsPaddingTop","md","edsPaddingRight","md","edsPaddingBottom","sm","edsPaddingLeft","md","edsFlexbox","","justifyContent","flex-end"],["edsButton","icon-only","size","small",3,"hasIcon","click"],["edsPadding","","edsPaddingRight","sm"],["type","cross","size","small"],["edsPadding","","edsPaddingTop","sm","edsPaddingRight","md","edsPaddingBottom","md","edsPaddingLeft","md"],["type","carrot-down","size","small"],["edsPadding","","edsPaddingLeft","sm"],["type","carrot-up","size","small"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["scope","row","colspan","5",1,"fund-compare__td","fund-compare__td--highlight-cell"],["colspan","5",1,"fund-compare__td","fund-compare__td--highlight-cell","fund-compare__td--sectional-padding"],["scope","row",1,"fund-compare__td","fund-compare__td--row-header","fund-compare__td--highlight-cell","fund-compare__td--vertical-align-top"],["type","info","size","small","edsTooltip","","tooltipType","small","tooltipPositionDefault","top","tooltipBehavior","fixed",3,"tooltipContent",4,"ngIf"],[3,"placement",4,"ngIf"],["class","fund-compare__td fund-compare__td--row-data",3,"ngClass",4,"ngFor","ngForOf"],["type","info","size","small","edsTooltip","","tooltipType","small","tooltipPositionDefault","top","tooltipBehavior","fixed",3,"tooltipContent"],[3,"placement"],[1,"fund-compare__td","fund-compare__td--row-data",3,"ngClass"],["class","fund-compare__td fund-compare__td--row-data fund-compare__td--highlight-cell fund-compare__td--align-right",4,"ngFor","ngForOf"],[1,"fund-compare__td","fund-compare__td--row-data","fund-compare__td--highlight-cell","fund-compare__td--align-right"],["colspan","5",1,"fund-compare__td","fund-compare__td--row-data","fund-compare__td--highlight-cell"],["placement","FundCompareGlobalPerformanceProximalTop"],["colspan","5",1,"fund-compare__td","fund-compare__td--highlight-cell"],[3,"toggleButtons","isNoWrap","toggleActive",4,"ngIf"],["class","fund-compare__performance fund-compare__td--row-data fund-compare__td--highlight-cell fund-compare__td--align-right fund-compare__td--vertical-align-bottom",3,"ngClass",4,"ngFor","ngForOf"],["placement","FundCompareGlobalPerformanceProximalBottom"],[3,"toggleButtons","isNoWrap","toggleActive"],[1,"fund-compare__performance","fund-compare__td--row-data","fund-compare__td--highlight-cell","fund-compare__td--align-right","fund-compare__td--vertical-align-bottom",3,"ngClass"],["class","fund-compare__performance fund-compare__performance--columns-inline",3,"ngClass",4,"ngIf"],["class","fund-compare__performance fund-compare__performance--column-p
1adding",4,"ngIf"],[1,"fund-compare__performance","fund-compare__performance--columns-inline",3,"ngClass"],[1,"fund-compare__performance","fund-compare__performance--column-padding"],["scope","row",1,"fund-compare__td","fund-compare__td--highlight-cell","fund-compare__td--vertical-align-top"],["class","fund-compare__performance fund-compare__td fund-compare__td--align-right",3,"ngClass",4,"ngFor","ngForOf"],[1,"fund-compare__performance","fund-compare__td","fund-compare__td--align-right",3,"ngClass"],[1,"fund-compare__performance","fund-compare__performance--column-padding","fund-compare__performance--highlight-cell"],["class","fund-compare__performance fund-compare__performance--column-padding",3,"ngClass",4,"ngIf"],[1,"fund-compare__performance","fund-compare__performance--column-padding",3,"ngClass"],["scope","row",1,"fund-compare__td","fund-compare__td--row-header","fund-compare__td--highlight-cell"],["class","fund-compare__td fund-compare__td--row-data fund-compare__td--align-right fund-compare__td--highlight-cell",4,"ngFor","ngForOf"],[1,"fund-compare__td","fund-compare__td--row-data","fund-compare__td--align-right","fund-compare__td--highlight-cell"],["class","fund-compare__td fund-compare__td--row-header",4,"ngIf"],[1,"fund-compare__td","fund-compare__td--row-header"],["edsPadding","","edsPaddingTop","sm","edsPaddingBottom","sm",3,"ngClass"],[1,"fund-compare__handheld-view","fund-compare__handheld-view--content-padding"],["edsFlexbox","",1,"fund-compare__handheld-view",3,"ngClass"],[1,"fund-compare__handheld-view","fund-compare__handheld-view--col-label"],[1,"fund-compare__handheld-view","fund-compare__handheld-view--col-value"],["class","fund-compare__handheld-view fund-compare__handheld-view--content-padding",4,"ngIf"],["edsPadding","","edsPaddingTop","sm","edsPaddingRight","md","edsPaddingBottom","none","edsPaddingLeft","md",1,"fund-compare__handheld-view"],["edsFlexbox",""],[1,"fund-compare__handheld-view","fund-compare__handheld-view--col-performance-label"],["edsFlexbox","","flexDirection","column",1,"fund-compare__handheld-view","fund-compare__handheld-view--col-performance-value"],["edsFlexbox","","edsPadding","",3,"edsPaddingBottom",4,"ngFor","ngForOf"],["edsFlexbox","","edsPadding","",3,"edsPaddingBottom"],["edsFlexbox","",4,"ngFor","ngForOf"],[4,"ngIf","ngIfThen","ngIfElse"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["edsList","","class","list--blocked",4,"ngIf"],["edsList","",1,"list--blocked"],["edsListItem","",4,"ngFor","ngForOf"],["edsListItem",""],["class","fund-compare__content",3,"innerHTML","ngClass",4,"ngIf"],["class","text-align-right",4,"ngIf"],[1,"fund-compare__content",3,"innerHTML","ngClass"],["edsButton","icon-only","data-analytics-no-event","true",1,"fund-compare__action-button",3,"size","click"],[1,"text-align-right"],[3,"ngSwitch"],[3,"ngClass",4,"ngSwitchCase"],[4,"ngSwitchCase"],["size","small",3,"rating","title"],["type","triangle-up","size","small",4,"ngIf"],["type","triangle-down","size","small",4,"ngIf"],["type","triangle-up","size","small"],["type","triangle-down","size","small"],[3,"ngClass","edsSpacing"],[4,"ngIf","ngIfThen"],["edsFlexbox","",3,"ngClass","edsSpacing"],[3,"hasLeftIcon","iconSize","type","title","href","useSmallText","isNewWindow"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e._UZ(3,"eds-proximal",3),e.qZA(),e.qZA(),e.YNc(4,Sn,11,5,"div",4),e.ALo(5,"async"),e.YNc(6,Fn,14,13,"ng-container",5),e.ALo(7,"async"),e.TgZ(8,"div",1),e.TgZ(9,"div",2),e._UZ(10,"eds-proximal",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(11,Rn,1,1,"ng-template",null,7,e.W1O),e.YNc(13,Qn,8,4,"ng-template",null,8,e.W1O),e.YNc(15,Ct,9,5,"ng-template",null,9,e.W1O),e.YNc(17,Dt,9,5,"ng-template",null,10,e.W1O),e.YNc(19,Rt,9,5,"ng-template",null,11,e.W1O),e.YNc(21,Ut,6,7,"ng-template",null,12,e.W1O),e.YNc(23,ra,7,9,"ng-template",null,13,e.W1O),e.YNc(25,pa,7,9,"ng-template",null,14,e.W1O),e.YNc(27,_a,6,8,"ng-template",null,15,e.W1O),e.YNc(29,Da,3,3,"ng-template",null,16,e.W1O),e.YNc(31,La,6,6,"ng-template",null,17,e.W1O),e.YNc(33,Ha,6,8,"ng-template",null,18,e.W1O),e.YNc(35,qa,2,3,"ng-template",null,19,e.W1O),e.YNc(37,Ga,4,8,"ng-template",null,20,e.W1O),e.TgZ(39,"eds-simple-modal",21),e.NdJ("onClose",function(){return i.onSelectFundModalClose()}),e.TgZ(40,"div",22),e.TgZ(41,"eds-search",23,24),e.NdJ("searchTerm",function(o){return i.onSearchTerm(o)})("selectedItem",function(o){return i.onSelectTerm(o)}),e.ALo(43,"translate"),e.ALo(44,"translate"),e.ALo(45,"async"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"eds-sticky-footer",25),e.NdJ("btnSubscribeSecond",function(){return i.onDownloadAction()}),e.ALo(47,"translate"),e.qZA()),2&n&&(e.xp6(4),e.Q6J("ngIf",i.isLoaded&&!1===e.lcZ(5,14,i.isHandheld$)),e.xp6(2),e.Q6J("ngIf",i.isLoaded&&!0===e.lcZ(7,16,i.isHandheld$)),e.xp6(33),e.Q6J("modalId",i.simpleModalConfig.modalId)("config",i.simpleModalConfig)("isFixedHeight",!0),e.xp6(2),e.Q6J("label",e.lcZ(43,18,"products.fund-cmp-search"))("placeholder",e.lcZ(44,20,"products.fund-cmp-search-box-placeholder"))("hasDropdown",!0)("items",e.lcZ(45,22,i.filteredSearchResultData$)),e.xp6(
15),e.Q6J("isHide",i.hideStickyFooter)("itemCount",null)("label",e.lcZ(47,24,"products.fund-cmp-sticky-footer-label"))("stickyFooterName","fund_comparison_sticky_footer")("secondaryAction",i.downloadActionParam))},directives:[A.ljP,A.vZ,A.iKq,A.JEP,F.O5,A.FOF,A.gSk,A.GsX,F.sg,F.tP,F.mk,A.Wxy,A.Hq3,A.cph,A.oJW,A.zj4,A.OPD,A.n$2,A.yXm,A.i9q,A.A9Y,F.RF,F.n9,A.ATs],pipes:[F.Ov,gn.X,te.D,_n.z],styles:[".fund-compare__table[_ngcontent-%COMP%]{background-color:var(--table-mixin--bg);width:100%;height:1px}.fund-compare__table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{box-shadow:var(--box-shadow-basic);position:relative;z-index:var(--z-index-higher);background-color:var(--table-mixin--thead--bg--secondary);position:sticky!important;top:0}.fund-compare__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-family:var(--fonts-small-font-family);font-weight:var(--fonts-small-font-weight);line-height:var(--fonts-small-line-height);font-size:var(--fonts-small-font-size-mobile);padding:1rem!important;line-height:150%;vertical-align:middle;text-align:left;color:var(--table-mixin--th--color--secondary)}@media (min-width: 768px) and (max-width: 1200px){.fund-compare__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-tablet)}}@media (min-width: 1200px) and (max-width: 1600px){.fund-compare__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-small-desktop)}}@media (min-width: 1600px) and (max-width: 1900px){.fund-compare__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-desktop)}}@media (min-width: 1900px){.fund-compare__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-large-desktop)}}.fund-compare__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:var(--fonts-p-font-family);font-weight:var(--fonts-p-font-weight);line-height:var(--fonts-p-line-height);font-size:var(--fonts-p-font-size-mobile);padding:.5rem;line-height:150%;vertical-align:top;text-align:left}@media (min-width: 768px) and (max-width: 1200px){.fund-compare__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--fonts-p-font-size-tablet)}}@media (min-width: 1200px) and (max-width: 1600px){.fund-compare__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--fonts-p-font-size-small-desktop)}}@media (min-width: 1600px) and (max-width: 1900px){.fund-compare__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--fonts-p-font-size-desktop)}}@media (min-width: 1900px){.fund-compare__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--fonts-p-font-size-large-desktop)}}.fund-compare__documentList-container[_ngcontent-%COMP%]{display:flex}.fund-compare__th--row-header[_ngcontent-%COMP%]{width:12%}.fund-compare__th--row-data[_ngcontent-%COMP%]{width:22%}.fund-compare__td--row-header[_ngcontent-%COMP%]{width:12%}.fund-compare__td--row-data[_ngcontent-%COMP%]{width:22%}.fund-compare__td--border-right[_ngcontent-%COMP%]{border-right:4px solid var(--table-mixin--td--bg--highlight)}.fund-compare__td--sectional-padding[_ngcontent-%COMP%]{padding:1rem!important}.fund-compare__td--highlight-cell[_ngcontent-%COMP%]{background-color:var(--table-mixin--td--bg--highlight)}.fund-compare__td--align-left[_ngcontent-%COMP%]{text-align:left!important}.fund-compare__td--align-right[_ngcontent-%COMP%]{text-align:right!important}.fund-compare__td--align-center[_ngcontent-%COMP%]{text-align:center!important}.fund-compare__td--vertical-align-top[_ngcontent-%COMP%]{vertical-align:baseline!important}.fund-compare__td--vertical-align-bottom[_ngcontent-%COMP%]{vertical-align:bottom!important}.fund-compare__performance[_ngcontent-%COMP%]{padding:0!important}.fund-compare__performance--columns-inline[_ngcontent-%COMP%]{height:100%;display:grid;grid-auto-flow:column;justify-content:flex-end;align-items:end}.fund-compare__performance--split-1[_ngcontent-%COMP%]{grid-template-columns:repeat(1,25%)}.fund-compare__performance--split-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,25%)}.fund-compare__performance--split-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,25%)}.fund-compare__performance--split-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,25%)}
1.fund-compare__performance--column-padding[_ngcontent-%COMP%]{padding:.5rem!important}.fund-compare__performance--adjust-row-cell-height[_ngcontent-%COMP%]{height:75%}.fund-compare__performance--highlight-cell[_ngcontent-%COMP%]{background-color:var(--ft-grey-1)}.fund-compare__handheld-view[_ngcontent-%COMP%]{font-family:var(--fonts-small-font-family);font-weight:var(--fonts-small-font-weight);line-height:var(--fonts-small-line-height);font-size:var(--fonts-small-font-size-mobile)}@media (min-width: 768px) and (max-width: 1200px){.fund-compare__handheld-view[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-tablet)}}@media (min-width: 1200px) and (max-width: 1600px){.fund-compare__handheld-view[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-small-desktop)}}@media (min-width: 1600px) and (max-width: 1900px){.fund-compare__handheld-view[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-desktop)}}@media (min-width: 1900px){.fund-compare__handheld-view[_ngcontent-%COMP%]{font-size:var(--fonts-small-font-size-large-desktop)}}.fund-compare__handheld-view--content-highlight[_ngcontent-%COMP%]{background-color:var(--ft-light-grey)}.fund-compare__handheld-view--content-padding[_ngcontent-%COMP%]{padding:.5rem 1rem}.fund-compare__handheld-view--content-bold[_ngcontent-%COMP%]{font-family:var(--head-font-family)}.fund-compare__handheld-view--col-label[_ngcontent-%COMP%]{width:30%;padding:.5rem .5rem .5rem 1rem}.fund-compare__handheld-view--col-value[_ngcontent-%COMP%]{width:70%;padding:.5rem 1rem .5rem .5rem;text-align:right}.fund-compare__handheld-view--col-performance-label[_ngcontent-%COMP%]{width:30%;padding:0 .5rem 0 2rem}.fund-compare__handheld-view--col-performance-value[_ngcontent-%COMP%]{width:70%;padding:0 1rem 0 .5rem;text-align:right}.fund-compare__handheld-view--content-hide[_ngcontent-%COMP%]{display:none!important}.fund-compare__action-button[_ngcontent-%COMP%]{padding:.125rem;font-family:var(--fonts-p-font-family);line-height:var(--fonts-p-line-height);color:var(--link-item-text)}.fund-compare__action-button--align-icon[_ngcontent-%COMP%]{position:relative;top:-.15rem}ol[_ngcontent-%COMP%]{list-style-position:inside;
1margin-block-start:0px;margin-block-end:0px;padding-left:0}.fund-compare__content--expanded[_ngcontent-%COMP%]{height:auto;overflow:auto}.fund-compare__content--collapsed[_ngcontent-%COMP%]{height:calc(2em * var(--fonts-p-line-height));overflow:hidden}"]}),t})();var Qa=p(37668);let Ja=(()=>{class t{getComponentMapping(){return{"Fund Compare Global":Ua}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[F.ez,Qa.m8]]}),t})()},16512:(b,N,p)=>{"use strict";p.d(N,{c:()=>w,z:()=>C});var F=p(41896);const w=(e,m="")=>e.filter(s=>s.parent===m).map(s=>{const g=e.filter(_=>_.parent!==m);return{...s,children:w(g,s.label)}}),C=(e,m)=>(0,F.lN)(e.rank)-(0,F.lN)(m.rank)},13492:(b,N,p)=>{"use strict";p.d(N,{x:()=>w});var F=p(80509);class w extends F.I{constructor(m,s){super(m,s)}toDomain(m){const s=[];return Array.isArray(m)&&m.forEach(g=>{const _=this.createMapper(C).toDomain(g);_&&s.push(_)}),s}}class C extends F.I{constructor(m,s){super(m,s)}toDomain(m){return{fundId:m.fundid,countryCode:m.cntrycode,languageCode:m.langcode,asOfDate:m.asofdate,asOfDateStd:m.asofdatestd,updateFrequency:m.frequency,securityTicker:m.secticker,isinSecurityNumber:m.isinsecnbr,securityName:m.secname,industryCode:m.indstrycode,sectorSysNumber:m.sctrsysno,sectorName:m.sctrname,sectorNameStd:m.sctrnamestd,sectorLevelNumber:m.sctrlvlnbr,percentageOfNetAssets:m.pctofnetassets,percentageOfNetAssetsStd:m.pctofnetassetsstd,marketValue:m.mktvalue,notionalMarketValue:m.notionalmktvalue,quantityShrpar:m.quantityshrpar,securityExpirationDate:m.secexpdate,assetClassCategory:m.assetclasscatg,marketCurrency:m.mktcurr,sedolNumber:m.sedolnbr,securityNumber:m.secnbr,cusipNumber:m.cusipnbr,originalCouponRate:m.origcouponrate,contracts:m.contracts,unrealizedGainLossBase:m.unrealizedgainlossbase,finalMaturityDate:m.finalmaturitydate,investmentCategory:m.investmentcategory}}}},4008:(b,N,p)=>{"use strict";p.d(N,{p:()=>w});var F=p(80509);class w extends F.I{constructor(m,s){super(m,s)}toDomain(m){const s=[];return Array.isArray(m)&&m.forEach(g=>{const _=this.createMapper(C).toDomain(g);_&&s.push(_)}),s}}class C extends F.I{constructor(m,s){super(m,s)}toDomain(m){return{fundId:m.fundid,countryCode:m.cntrycode,languageCode:m.langcode,asOfDate:m.asofdate,asOfDateStd:m.asofdatestd,updateFrequency:m.frequency,securityName:m.securityname,countryOfIssue:m.cntryofissue,holdingValue:m.hldngvalue,holdingValueStd:m.hldngvaluestd,maturityDate:m.maturitydate,maturityDateStd:m.maturitydatestd,assetType:m.assettype,assetTypeStd:m.assettypestd}}}},96718:(b,N,p)=>{"use strict";p.d(N,{q$:()=>s,pv:()=>g});var F=p(16512),w=p(98220),C=p(41896),e=p(80509);const m=f=>!["LONG_EQUITY_AS_PCT_OF_EQUITY","SHORT_EQUITY_AS_PCT_OF_EQUITY","LONG_TOT_PCT_OF_TOTAL","SHORT_TOT_PCT_OF_TOTAL"].includes(f.calcnamestd);class s extends e.I{constructor(c,u){super(c,u)}toDomain(c){const u=c.topholdings;if(!u||0===u.length)return null;const k=u.filter(m);if(0===k.length)return null;let S="Top Ten Holdings",D="top-ten-holdings";return(0,C.cj)(u,"issuername")&&(S="Top Ten Issuers",D="top-ten-issuers"),[{componentId:S,caveatComponentId:"Top Ten Holdings",baseLabelKey:D,allocationFlag:(0,C.yM)(k,"allocflag"),allocationHeading:(0,C.yM)(k,"allocheadinglocal"),asOfDate:(0,C.yM)(k,"asofdate"),calculationBasis:(0,C.yM)(k,"calcbasislocal"),calculationType:(0,C.yM)(k,"calctypelocal"),hasDerivatives:(0,C.Zo)((0,C.yM)(k,"hasderivatives")),updateFrequency:(0,C.yM)(k,"frequency"),data:k.sort(F.z).map(H=>({label:"Top Ten Issuers"===S?H.issuername:H.hldngname,breakdown:(0,w.rl)(H.brkdwnpct),breakdownStd:(0,C.lN)(H.brkdwnpctstd)}))}]}}class g extends e.I{constructor(c,u){super(c,u)}toDomain(c){const u=[];return Array.isArray(c)&&c.forEach(k=>{const S=this.createMapper(_).toDomain(k);S&&u.push(S)}),u}}class _ extends e.I{constructor(c,u){super(c,u)}toDomain(c){return{fundId:c.fundid,countryCode:c.cntrycode,languageCode:c.langcode,asOfDate:c.asofdate,asOfDateStd:c.asofdatestd,updateFrequency:c.frequency,holdingName:c.hldngname,geoCode:c.geocode,sectorName:c.sectorname,breakdownPercentage:c.brkdwnpct,breakdownPercentageStd:c.brkdwnpctstd,calculationBasis:c.calcbasislocal,calculationType:c.calctypelocal,allocationFlag:c.allocflag,hasDerivatives:(0,C.Zo)(c.hasderivatives)}}}},65761:b=>{var N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FundComparisonAllFunds"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"countrycode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"languagecode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypeetf"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypemf"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productType529"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypecef"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypemmf"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypesma"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypetif"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypeif"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productTypevariable_insurance"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"cef"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypecef"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"etf"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypeetf"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"if"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypeif"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"mf"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypemf"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"mmf"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypemmf"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"sma"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypesma"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"tif"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypetif"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"_529"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productType529"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"variable_insurance"},name:{kind:"Name",value:"PPSS"},arguments:[{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}},{kind:"Argument",name:{kind:"Name",value:"productType"},value:{kind:"Variable",name:{kind:"Name",value:"productTypevariable_insurance"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FundData"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FundData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fundname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webprdcttaxonomy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareclass"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shclname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identifiers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fundid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shclcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sedol"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bloomberg"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cusip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reuterssym"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"wkn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vln"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mexid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rfi"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"apir"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"arsn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dsc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ticker"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iressinavcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"anbimacode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"intradaynav"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fundbmticker"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nasdaqxnms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iopv"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:2026}};function w(s,g){if("FragmentSpread"===s.kind)g.add(s.name.value);
1else if("VariableDefinition"===s.kind){var _=s.type;"NamedType"===_.kind&&g.add(_.name.value)}s.selectionSet&&s.selectionSet.selections.forEach(function(f){w(f,g)}),s.variableDefinitions&&s.variableDefinitions.forEach(function(f){w(f,g)}),s.definitions&&s.definitions.forEach(function(f){w(f,g)})}N.loc.source={body:"query FundComparisonAllFunds(\n $countrycode: String!\n $languagecode: String!\n $productTypeetf: String!\n $productTypemf: String!\n $productType529: String!\n $productTypecef: String!\n $productTypemmf: String!\n $productTypesma: String!\n $productTypetif: String!\n $productTypeif: String!\n $productTypevariable_insurance: String!\n) {\n cef: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypecef\n ) {\n ...FundData\n }\n etf: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypeetf\n ) {\n ...FundData\n }\n if: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypeif\n ) {\n ...FundData\n }\n mf: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypemf\n ) {\n ...FundData\n }\n mmf: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypemmf\n ) {\n ...FundData\n }\n sma: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypesma\n ) {\n ...FundData\n }\n tif: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypetif\n ) {\n ...FundData\n }\n _529: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productType529\n ) {\n ...FundData\n }\n variable_insurance: PPSS(\n countrycode: $countrycode\n languagecode: $languagecode\n productType: $productTypevariable_insurance\n ) {\n ...FundData\n }\n}\n\nfragment FundData on Product {\n fundname\n producttype\n webprdcttaxonomy\n shareclass {\n shclname\n identifiers {\n fundid\n shclcode\n taid\n isin\n sedol\n bloomberg\n cusip\n reuterssym\n wkn\n vln\n mexid\n rfi\n apir\n arsn\n adm\n dsc\n ticker\n iress\n iressinavcode\n anbimacode\n intradaynav\n fundbmticker\n nasdaqxnms\n iopv\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var C={};function e(s,g){for(var _=0;_<s.definitions.length;_++){var f=s.definitions[_];if(f.name&&f.name.value==g)return f}}function m(s,g){var _={kind:s.kind,definitions:[e(s,g)]};s.hasOwnProperty("loc")&&(_.loc=s.loc);var f=C[g]||new Set,c=new Set,u=new Set;for(f.forEach(function(S){u.add(S)});u.size>0;){var k=u;u=new Set,k.forEach(function(S){c.has(S)||(c.add(S),(C[S]||new Set).forEach(function(Z){u.add(Z)}))})}return c.forEach(function(S){var D=e(s,S);D&&_.definitions.push(D)}),_}N.definitions.forEach(function(g){if(g.name){var _=new Set;w(g,_),C[g.name.value]=_}}),b.exports=N,b.exports.FundComparisonAllFunds=m(N,"FundComparisonAllFunds"),b.exports.FundData=m(N,"FundData")},94358:b=>{var N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FundComparisonSelectedFundOverview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"countrycode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"languagecode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fundid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shareclasscode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Overview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fundid"},value:{kind:"Variable",name:{kind:"Name",value:"fundid"}}},{kind:"Argument",name:{kind:"Name",value:"shareclasscode"},value:{kind:"Variable",name:{kind:"Name",value:"shareclasscode"}}},{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fundname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetclass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invvehcile"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"strategy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sfdrcategory"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webprdcttaxonomy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareclass"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shclname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"incepdt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"incepdtstd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shclcurr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"perfincdt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dividendfreq"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"yields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dividendyield"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"nav"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navvalue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navchngvalue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navchngpct"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"identifiers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fundid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shclcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frontend"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowload"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dsc"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"riskclassificationtxt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"charges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ongoingcharge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeasofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"managementfee"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ratings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"msrtngoverall"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mscatg"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bmassoc"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bmname"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"distribution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"incmdistamt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"incmdistpayabledate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"performance"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month_end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PerformanceData"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"quarter_end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PerformanceData"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"bmperformance"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month_end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BMPerformanceData"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"quarter_end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BMPerformanceData"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"distribution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"incmdistamt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reinvestmentamt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"incmdistpayabledate"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"aum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totnetassets"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PerformanceData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PerformanceCurrent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asofdatestd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calcnamestd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannret10yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannretactinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calendaryrret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calendaryrret2yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calendaryrret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calendaryrret4yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calendaryrret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummretytd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummret10yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummretactinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discrannualrollyear1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discrannualrollyear2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discrannualrollyear3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discrannualrollyear4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discrannualrollyear5"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"performance1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"performance2yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"performance3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"performance4yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"performance5yr"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BMPerformanceData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BMPerformanceCurrent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asofdatestd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calcnamestd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmlabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmavgannret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmavgannret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmavgannret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmavgannret10yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmavgannretactinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcalendaryrret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcalendaryrret2yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcalendaryrret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcalendaryrret4yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcalendaryrret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummretytd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummret1yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummret3yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummret5yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummret10yr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmcummretactinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmdiscrannualrollyr1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmdiscrannualrollyr2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmdiscrannualrollyr3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmdiscrannualrollyr4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bmdiscrannualrollyr5"},arguments:[],directives:[]}]}}],loc:{start:0,end:2701}};function w(s,g){if("FragmentSpread"===s.kind)g.add(s.name.value);
1else if("VariableDefinition"===s.kind){var _=s.type;"NamedType"===_.kind&&g.add(_.name.value)}s.selectionSet&&s.selectionSet.selections.forEach(function(f){w(f,g)}),s.variableDefinitions&&s.variableDefinitions.forEach(function(f){w(f,g)}),s.definitions&&s.definitions.forEach(function(f){w(f,g)})}N.loc.source={body:"query FundComparisonSelectedFundOverview(\n $countrycode: String!\n $languagecode: String!\n $fundid: String!\n $shareclasscode: String!\n) {\n Overview(\n fundid: $fundid\n shareclasscode: $shareclasscode\n countrycode: $countrycode\n languagecode: $languagecode\n ) {\n fundname\n assetclass\n invvehcile\n producttype\n strategy\n sfdrcategory\n webprdcttaxonomy\n shareclass {\n shclname\n incepdt\n incepdtstd\n shclcurr\n perfincdt\n producttype\n dividendfreq\n yields {\n asofdate\n dividendyield\n }\n nav {\n navdate\n navvalue\n navchngvalue\n navchngpct\n }\n identifiers {\n fundid\n shclcode\n isin\n adm\n taid\n frontend\n lowload\n dsc\n }\n riskclassificationtxt\n charges {\n ongoingcharge\n feeasofdate\n asofdate\n mer\n managementfee\n }\n ratings {\n asofdate\n msrtngoverall\n mscatg\n }\n bmassoc {\n bmname\n }\n distribution {\n incmdistamt\n incmdistpayabledate\n asofdate\n }\n performance {\n month_end {\n ...PerformanceData\n }\n quarter_end {\n ...PerformanceData\n }\n }\n bmperformance {\n month_end {\n ...BMPerformanceData\n }\n quarter_end {\n ...BMPerformanceData\n }\n }\n distribution {\n incmdistamt\n reinvestmentamt\n incmdistpayabledate\n }\n }\n aum {\n totnetassets\n asofdate\n }\n }\n}\n\nfragment PerformanceData on PerformanceCurrent {\n asofdate\n asofdatestd\n calcnamestd\n avgannret1yr\n avgannret3yr\n avgannret5yr\n avgannret10yr\n avgannretactinc\n calendaryrret1yr\n calendaryrret2yr\n calendaryrret3yr\n calendaryrret4yr\n calendaryrret5yr\n cummretytd\n cummret1yr\n cummret3yr\n cummret5yr\n cummret10yr\n cummretactinc\n discrannualrollyear1\n discrannualrollyear2\n discrannualrollyear3\n discrannualrollyear4\n discrannualrollyear5\n performance1yr\n performance2yr\n performance3yr\n performance4yr\n performance5yr\n}\n\nfragment BMPerformanceData on BMPerformanceCurrent {\n asofdate\n asofdatestd\n calcnamestd\n bmname\n bmlabel\n bmavgannret1yr\n bmavgannret3yr\n bmavgannret5yr\n bmavgannret10yr\n bmavgannretactinc\n bmcalendaryrret1yr\n bmcalendaryrret2yr\n bmcalendaryrret3yr\n bmcalendaryrret4yr\n bmcalendaryrret5yr\n bmcummretytd\n bmcummret1yr\n bmcummret3yr\n bmcummret5yr\n bmcummret10yr\n bmcummretactinc\n bmdiscrannualrollyr1\n bmdiscrannualrollyr2\n bmdiscrannualrollyr3\n bmdiscrannualrollyr4\n bmdiscrannualrollyr5\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var C={};function e(s,g){for(var _=0;_<s.definitions.length;_++){var f=s.definitions[_];if(f.name&&f.name.value==g)return f}}function m(s,g){var _={kind:s.kind,definitions:[e(s,g)]};s.hasOwnProperty("loc")&&(_.loc=s.loc);var f=C[g]||new Set,c=new Set,u=new Set;for(f.forEach(function(S){u.add(S)});u.size>0;){var k=u;u=new Set,k.forEach(function(S){c.has(S)||(c.add(S),(C[S]||new Set).forEach(function(Z){u.add(Z)}))})}return c.forEach(function(S){var D=e(s,S);D&&_.definitions.push(D)}),_}N.definitions.forEach(function(g){if(g.name){var _=new Set;w(g,_),C[g.name.value]=_}}),b.exports=N,b.exports.FundComparisonSelectedFundOverview=m(N,"FundComparisonSelectedFundOverview"),b.exports.PerformanceData=m(N,"PerformanceData"),b.exports.BMPerformanceData=m(N,"BMPerformanceData")},78113:b=>{var N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FundComparisonSelectedFundPortfolio"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fundid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"countrycode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"languagecode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Portfolio"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fundid"},value:{kind:"Variable",name:{kind:"Name",value:"fundid"}}},{kind:"Argument",name:{kind:"Name",value:"countrycode"},value:{kind:"Variable",name:{kind:"Name",value:"countrycode"}}},{kind:"Argument",name:{kind:"Name",value:"languagecode"},value:{kind:"Variable",name:{kind:"Name",value:"languagecode"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"portfolio"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topholdings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hldngname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brkdwnpct"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brkdwnpctstd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fullholdings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"secname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pctofnetassets"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pctofnetassetsstd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"toptenholdingsmoneyfunds"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"securityname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hldngvalue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hldngvaluestd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dailyholdings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"secname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pctofnetassets"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pctofnetassetsstd"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:689}};function w(s,g){if("FragmentSpread"===s.kind)g.add(s.name.value);else if("VariableDefinition"===s.kind){var _=s.type;"NamedType"===_.kind&&g.add(_.name.value)}s.selectionSet&&s.selectionSet.selections.forEach(function(f){w(f,g)}),s.variableDefinitions&&s.variableDefinitions.forEach(function(f){w(f,g)}),s.definitions&&s.definitions.forEach(function(f){w(f,g)})}N.loc.source={body:"query FundComparisonSelectedFundPortfolio(\n $fundid: String!\n $countrycode: String!\n $languagecode: String!\n) {\n Portfolio(\n fundid: $fundid\n countrycode: $countrycode\n languagecode: $languagecode\n ) {\n portfolio {\n topholdings {\n asofdate\n hldngname\n brkdwnpct\n brkdwnpctstd\n }\n fullholdings {\n asofdate\n secname\n pctofnetassets\n pctofnetassetsstd\n }\n toptenholdingsmoneyfunds {\n asofdate\n securityname\n hldngvalue\n hldngvaluestd\n }\n dailyholdings {\n asofdate\n secname\n pctofnetassets\n pctofnetassetsstd\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};
1var C={};function e(s,g){for(var _=0;_<s.definitions.length;_++){var f=s.definitions[_];if(f.name&&f.name.value==g)return f}}N.definitions.forEach(function(g){if(g.name){var _=new Set;w(g,_),C[g.name.value]=_}}),b.exports=N,b.exports.FundComparisonSelectedFundPortfolio=function(s,g){var _={kind:s.kind,definitions:[e(s,g)]};s.hasOwnProperty("loc")&&(_.loc=s.loc);var f=C[g]||new Set,c=new Set,u=new Set;for(f.forEach(function(S){u.add(S)});u.size>0;){var k=u;u=new Set,k.forEach(function(S){c.has(S)||(c.add(S),(C[S]||new Set).forEach(function(Z){u.add(Z)}))})}return c.forEach(function(S){var D=e(s,S);D&&_.definitions.push(D)}),_}(N,"FundComparisonSelectedFundPortfolio")}}]); 2//# sourceMappingURL=fund-comparison.61fb39dc594418c2caa5.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.