1(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["similar-product"],{30330:(B,Z,l)=>{"use strict";l.d(Z,{t:()=>f});var N=l(26310),S=l(2316);let f=(()=>{class F{constructor(){this.isPopulated=!1}ngOnInit(){this.brConfig=this.component?.getModels()?.config,this.configurationName=this.brConfig?.configurationName||N.WX.GW,this.fundId=this.brConfig?.fundId,this.shareClassCode=this.brConfig?.shareClassCode}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275cmp=S.Xpm({type:F,selectors:[["ng-component"]],inputs:{component:"component",page:"page"},decls:0,vars:0,template:function(v,i){},encapsulation:2}),F})()},96459:(B,Z,l)=>{"use strict";l.r(Z),l.d(Z,{FeaturedFundsModule:()=>Ze});var N=l(54364),S=l(92612),f=l(68411),F=l(93608),R=l(79441),v=l(22663),i=l(2316),u=l(3138),e=l(20245),O=l(41896),I=l(10874),V=l(42720),A=l(79902),k=l(33927),q=l(13364),de=l.n(q),Q=l(44022),b=l(26310),ce=l(5974),Ie=l(97735),ne=l(79646),M=l(55311);const ie=f.Y.getLogger("FeatureFundDocumentsService"),j=[b.KN.TRADE_RATIONALE,b.KN.PRODUCT_PITCHBOOK,b.KN.FUND_COMMENTARY];let ae=(()=>{class o{constructor(a,c){this.litDataService=a,this.siteConfigService=c,this.priorityDocumentTypeOrder={},this.langSpecific={},this.getFeaturedFundDocs$=(p,d,_)=>{const T=p.map(h=>h.fundId),m=new Map;return m.set("frkOneTISNumber",[...new Set(T)]),ie.debug("call lit data service",m),this.setSortOrderByDocType(d),this.litDataService.loadData(m,!1,!0,!0).pipe((0,k.U)(h=>p.map(this.addDocsToFund(h,d,_))))},this.addDocsToFund=(p,d,_)=>T=>{const m=p?.document?.map(x=>this.litDataService.literatureMapper(x));let h=m?.filter(x=>x.frkOneTISNumber?.includes(T.fundId)).filter(x=>!(x.frkShareClassCode?.length>0)||x.frkShareClassCode.includes(T.shareClassCode)).filter(x=>d.includes(x.dctermsType)).map(x=>({...x,fileLink:this.getDocLink(x),translatedDctermsType:_.length&&x.dctermsType===b.KN.KIID?_:x.translatedDctermsType}));return this.setlanguageSpecificDocTypes(h,d),h=this.filterFundDocsLangSpecific(h,d),h?.some(x=>x.dctermsType===b.KN.TRADE_RATIONALE||x.dctermsType===b.KN.PRODUCT_PITCHBOOK||x.dctermsType===b.KN.FUND_COMMENTARY||x.dctermsType===b.KN.FACT_SHEET)&&(h=this.getLatestDocumentForDisplay(h).sort(this.sortDocumentTypesByConfigOrder)),h=this.removeDuplicateFundDocs(h),ie.debug("addDocsToFund()",d,p,T,m,h),{...T,docs:h}},this.sortDocumentTypesByConfigOrder=(p,d)=>this.priorityDocumentTypeOrder[p.dctermsType]-this.priorityDocumentTypeOrder[d.dctermsType]}setSortOrderByDocType(a){a.length&&a.forEach((c,p)=>{c&&(this.priorityDocumentTypeOrder[c]=p)})}getDocLink(a){return this.litDataService.isSiteIntl()?a?.pdfNumberingAppID?`${this.litDataService.getDownloadUrl("pdfnumbering")}${a.literatureHref}`:`${this.litDataService.getDownloadUrl("listing")}${a.literatureHref}`:`${this.litDataService.getDownloadUrl("literatureUS")}${a.customFilePath}`}getLocaleFactsheet(a){const c=this.siteConfigService.getPdsLanguage().replace("_","-");return a?.dctermsLanguage?.includes(c)}getLatestDocumentForDisplay(a){const c=[],p={};j.forEach(_=>{p[_]=[]});let d=!1;a.forEach(_=>{p.hasOwnProperty(_.dctermsType)?p[_.dctermsType].push(_):_.dctermsType===b.KN.FACT_SHEET&&this.siteConfigService.isSiteInternational()?this.getLocaleFactsheet(_)&&!d&&(d=!0,c.push(_)):c.push(_)});for(const _ in p)p[_].length&&c.push(this.sortDocumentsByPublicationDate(p[_])[0]);return c}sortDocumentsByPublicationDate(a){const c=(0,Ie.Wk)(ce.yJ);return a.sort((p,d)=>c(p.publicationDate,d.publicationDate,null,null,!1)).reverse()}setlanguageSpecificDocTypes(a,c){this.langSpecific={},a.forEach(p=>{c.includes(p?.dctermsType)&&this.getLocaleFactsheet(p)?this.langSpecific[p.dctermsType]=!0:c.includes(p?.dctermsType)&&!this.getLocaleFactsheet(p)&&!this.langSpecific.hasOwnProperty(p?.dctermsType)&&(this.langSpecific[p?.dctermsType]=!1)})}filterFundDocsLangSpecific(a,c){return a.filter(d=>(d?.localeDescription?.length&&d?.localeDescription?.includes("Yes")&&(d.translatedDctermsType=d?.dctermsDescription),!(!0!==this.langSpecific[d?.dctermsType]||!this.getLocaleFactsheet(d)||!c.includes(d?.dctermsType))||!(!1!==this.langSpecific[d?.dctermsType]||this.getLocaleFactsheet(d)||!c.includes(d?.dctermsType))||void 0))}removeDuplicateFundDocs(a){return a.reduce((p,d)=>(p.some(_=>_.docId===d.docId)||p.push(d),p),[])}}return o.\u0275fac=function(a){return new(a||o)(i.LFG(ne.u),i.LFG(M.r5))},o.\u0275prov=i.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var se=l(70553),z=l(69333),re=l(27513);let ue=(()=>{class o{constructor(a,c,p){this.siteConfigService=a,this.agGridHelperService=c,this.translateService=p,this.getPerformanceItemsConfig=d=>
1"Managed Accounts"===d.productType?this.getSMAPerformanceItemConfig(d):this.getMutualFundsPerformanceItemConfig(d),this.getMutualFundsPerformanceItemConfig=d=>[this.getNAVConfig(d)],this.getSMAPerformanceItemConfig=d=>[this.getYTDTotalReturnsNetConfig(d),this.getYTDTotalReturnsGrossConfig(d)],this.getNAVConfig=d=>{const _=this.agGridHelperService.getNavValueColDef(d);return{...this.getBaseConfig(_),asOfDateGetter:T=>T.shareClass?.nav?.navAsOfDate,changeDirectionGetter:T=>T.shareClass?.nav?.changeDirection,supplementaryTextGetter:T=>`${T.shareClass?.nav?.navChangeValue} (${T.shareClass?.nav?.navChangePercentage})`}},this.getYTDTotalReturnsNetConfig=d=>{const _=this.agGridHelperService.getCumulativeQuarterlyYtdColDef(d,this.getSuppressDetails(),{},[b.Sl.NET]),T=this.getBaseConfig(_);return{...T,asOfDateGetter:m=>T.valueGetter(m)===Q.Sk?null:m.shareClass?.performance?.quarterEnd[0]?.performanceAsOfDate,label:this.translateService.instant("products.ytd-total-returns"),valueGetter:m=>`${T.valueGetter(m)===Q.Sk?this.translateService.instant("products.NA"):T.valueGetter(m)+"%"}`,caveatPlacement:`${d.componentName}:${this.agGridHelperService.getConfigurationNameForPlacement(d.productType)}YtdTotalReturnsPPSS`,toggleLabel:this.translateService.instant("products.net")}},this.getYTDTotalReturnsGrossConfig=d=>{const _=this.agGridHelperService.getCumulativeQuarterlyYtdColDef(d,this.getSuppressDetails(),{},[b.Sl.PUREGROSS]),T=this.getBaseConfig(_);return{...T,asOfDateGetter:m=>T.valueGetter(m)===Q.Sk?null:m.shareClass?.performance?.quarterEnd[1]?.performanceAsOfDate,label:this.translateService.instant("products.ytd-total-returns"),valueGetter:m=>`${T.valueGetter(m)===Q.Sk?this.translateService.instant("products.NA"):T.valueGetter(m)+"%"}`,caveatPlacement:`${d.componentName}:${this.agGridHelperService.getConfigurationNameForPlacement(d.productType)}YtdTotalReturnsPPSS`,toggleLabel:this.translateService.instant("products.gross")}},this.getSuppressDetails=()=>{const d=this.siteConfigService.product?.general;return{showMDashForUnder1Year:d.showMDashForUnder1Year,showMDashForUnder6Months:d.showMDashForUnder6Months}},this.getBaseConfig=d=>({label:d.headerName,valueGetter:_=>"string"==typeof d.valueGetter?d.valueGetter:d.valueGetter({data:_}),caveatPlacement:d.headerComponentParams?.footnotePlacement})}}return o.\u0275fac=function(a){return new(a||o)(i.LFG(M.r5),i.LFG(z.Wg),i.LFG(re.s))},o.\u0275prov=i.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var pe=l(92534);const W=f.Y.getLogger("FeaturedFundsService");let me=(()=>{class o{constructor(a,c,p,d,_,T){this.featureFundDocumentsService=a,this.fundDataService=c,this.featuredFundConfigService=p,this.siteConfigService=d,this.translateService=_,this.mapperFactory=T,this.getFeaturedFunds$=(m,h,x,L)=>this.featureFundDocumentsService.getFeaturedFundDocs$(m,h,x).pipe((0,A.w)(E=>(0,V.D)(E.map(this.mapFundParamToObservable$(L)))),(0,k.U)(E=>E.map(this.mapToggleButtons))),this.sortFundsByName=(m,h)=>m.product?.fundName.localeCompare(h.product?.fundName),this.mapToggleButtons=m=>{let h;return m.performanceItems.length>1&&(h=m.performanceItems.map((x,L)=>({active:0===L,text:x.toggleLabel,value:(0,u.g46)("toggle_")}))),{...m,toggleButtons:h}},this.getVariables=m=>({countrycode:this.fundDataService.getCountry(),languagecode:this.fundDataService.getLanguage(),fundid:m.fundId,shareclasscode:m.shareClassCode}),this.mapFundParamToObservable$=m=>h=>this.fundDataService.register(de(),this.getVariables(h)).pipe((0,k.U)(this.mapDtoToProduct(h,m))),this.mapDtoToProduct=(m,h)=>x=>{const L=x?.data?.Overview||null;if(!L)return W.warn(`No data found for fund: ${m.fundId}-${m.shareClassCode}`),null;const E={config:this.siteConfigService,includeSoftClosed:!0,translateService:this.translateService};W.debug("productDto",L,x,E);const le=this.mapperFactory.createMapper(I.V5,E).toDomain(L),P=(0,I.rl)(le),Oe=new e.Ad(this.siteConfigService,P.productType,"Featured Funds",P.shareClass?.performance?.monthEnd[0]?.performanceAsOfDateStd,P.shareClass?.performance?.quarterEnd[0]?.performanceAsOfDateStd,P.shareClass?.performance?.monthEnd[0]?.performanceAsOfDate,P.shareClass?.performance?.quarterEnd[0]?.performanceAsOfDate,P.shareClass?.nav?.navAsOfDate),X=this.featuredFundConfigService.getPerformanceItemsConfig(Oe).map(this.mapConfigToItem(P)).filter(this.filterEmptyValue);let ee=P.fundName;const U=P.shareClass?.shareClassName;return U&&U!==Q.Mq&&U!==Q.Ie&&(ee=`${ee} - ${U}`),h.forEach(te=>{P?.shareClass?.identifiers?.fundId===te?.fundId&&P?.shareClass?.shareClassCode===te?.shareClassCode&&(P.shareClass.link=te?.url)}),W.debug("product",le,P,L,m.docs,X),{product:P,relationships:[],docs:m.docs,performanceItems:X,selectedPerformanceItemIndex:0,fullFundName:ee}},this.filterEmptyValue=m=>(0,O.Uh)(m,"val"),this.mapConfigToItem=m=>h=>({label:h.label,val:h.valueGetter(m),caveatPlacement:h.caveatPlacement,tooltip:h.tooltip,asOfDate:h.asOfDateGetter?h.asOfDateGetter(m):null,asOfLabel:this.translateService.instant("products.as-of"),valueSmallText:h.supplementaryTextGetter?h.supplementaryTextGetter(m):null,changeDirection:h.changeDirectionGetter?h.changeDirectionGetter(m):null,rating:h.isRating?h.valueGetter(m):null,isHybridRating:h.isRating&&m.shareClass.ratings?.morningStarOverallHybrid,ratingTitle:h.isRating?this.translateService.instant("products.ratings-title"):null,ratingTooltip:h.isRating?this.translateService.instant("products.morningstar-tooltip"):null,toggleLabel:h.toggleLabel})}}return o.\u0275fac=function(a){return new(a||o)(i.LFG(ae),i.LFG(se.v),i.LFG(ue),i.LFG(M.r5),i.LFG(re.s),i.LFG(pe.$))}
1,o.\u0275prov=i.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var ge=l(34046),oe=l(71556),fe=l(66237);function he(o,C){if(1&o&&i.GkF(0,11),2&o){const a=i.oxw();i.Q6J("brManageContentButton",a.document)("relative",!1)}}function Y(o,C){if(1&o&&(i.TgZ(0,"div",12),i._UZ(1,"eds-section-title",13),i.qZA()),2&o){const a=i.oxw();i.xp6(1),i.Q6J("title",null==a.brData?null:a.brData.title)("preTitle",null==a.brData?null:a.brData.preTitle)("subTitle",null==a.brData?null:a.brData.summary)("theme",a.titleColorTheme)}}function K(o,C){1&o&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"products.featured-fund-no-data-error")," "))}function _e(o,C){if(1&o&&(i.TgZ(0,"eds-title",28),i._UZ(1,"eds-link-item",29),i.qZA()),2&o){const a=i.oxw().ngIf,c=i.oxw().$implicit;i.Q6J("level",3),i.xp6(1),i.Q6J("inheritFontSize",!0)("bold",!0)("noPadding",!0)("title",c.fullFundName)("href",a.link)}}function ve(o,C){if(1&o&&i._UZ(0,"eds-title",30),2&o){const a=i.oxw(2).$implicit;i.Q6J("level",3)("title",a.fullFundName)}}function J(o,C){if(1&o){const a=i.EpF();i.TgZ(0,"eds-toggle-v2",31),i.NdJ("toggleActive",function(p){i.CHM(a);const d=i.oxw(2).$implicit;return i.oxw().onPerfItemChange(d,p)}),i.qZA()}if(2&o){const a=i.oxw(2).$implicit;i.Q6J("toggleButtons",a.toggleButtons)("isNoWrap",!0)}}function Ce(o,C){if(1&o&&(i._UZ(0,"eds-rating",35),i.ALo(1,"translate")),2&o){const a=i.oxw().ngIf;i.Q6J("rating",a.rating)("isHybrid",a.isHybridRating)("title",i.lcZ(1,3,"products.morningstar-review"))}}function Te(o,C){if(1&o&&(i._UZ(0,"eds-icon",36),i.ALo(1,"translate")),2&o){const a=i.oxw().ngIf;i.Q6J("analyticsName",i.lcZ(1,2,"products.ratings-title"))("tooltipContent",a.ratingTooltip)}}function xe(o,C){if(1&o&&(i.ynx(0),i.TgZ(1,"eds-summary-item",32),i.YNc(2,Ce,2,5,"eds-rating",33),i.YNc(3,Te,2,4,"eds-icon",34),i.qZA(),i.BQk()),2&o){const a=C.ngIf;i.xp6(1),i.Q6J("title",a.label)("titleHeadingLevel",4)("val",a.rating?null:a.val)("caveatPlacement",a.caveatPlacement)("tooltip",a.tooltip)("supplementaryText",a.valueSmallText)("valueDirection",a.changeDirection)("valueTextSmall",!0)("hasSupplementaryTextSpacer",!1)("asOfDate","NA"!==a.val?a.asOfLabel+" "+a.asOfDate:""),i.xp6(1),i.Q6J("ngIf",a.rating),i.xp6(1),i.Q6J("ngIf",a.isHybridRating)}}function ye(o,C){1&o&&(i._UZ(0,"eds-badge",40),i.ALo(1,"translate")),2&o&&i.Q6J("label",i.lcZ(1,1,"products.new"))}function Se(o,C){if(1&o){const a=i.EpF();i.TgZ(0,"li",37),i.TgZ(1,"eds-link-item",38),i.NdJ("onLinkClick",function(p){const _=i.CHM(a).$implicit;return i.oxw(3).fileDownload(_,p)}),i.qZA(),i.YNc(2,ye,2,3,"eds-badge",39),i.qZA()}if(2&o){const a=C.$implicit;i.xp6(1),i.Q6J("href",a.fileLink)("title",a.translatedDctermsType)("isNewWindow",!0)("hasLeftIcon",!0)("analyticsNoEvent",!0),i.xp6(1),i.Q6J("ngIf",a.isNew)}}function Pe(o,C){if(1&o&&(i.TgZ(0,"eds-panel",15),i.TgZ(1,"header",16),i.TgZ(2,"div",17),i._UZ(3,"eds-badge",18),i.TgZ(4,"div",19),i.YNc(5,_e,2,6,"eds-title",20),i.YNc(6,ve,1,2,"eds-title",21),i.qZA(),i.qZA(),i.qZA(),i.TgZ(7,"div",22),i.TgZ(8,"div",23),i.YNc(9,J,1,2,"eds-toggle-v2",24),i.YNc(10,xe,4,12,"ng-container",9),i.qZA(),i.TgZ(11,"div",25),i.TgZ(12,"ul",26),i.YNc(13,Se,3,6,"li",27),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&o){const a=C.ngIf,c=i.oxw().$implicit;i.Q6J("hasPadding",!0),i.xp6(3),i.Q6J("label",a.productType)("labelAbbr",c.product.productTypeAbbr),i.xp6(2),i.Q6J("ngIf",!a.isSoftLaunch),i.xp6(1),i.Q6J("ngIf",a.isSoftLaunch),i.xp6(3),i.Q6J("ngIf",c.toggleButtons),i.xp6(1),i.Q6J("ngIf",c.performanceItems[c.selectedPerformanceItemIndex]),i.xp6(3),i.Q6J("ngForOf",c.docs)}}function De(o,C){if(1&o&&(i.ynx(0),i.YNc(1,Pe,14,8,"eds-panel",14),i.BQk()),2&o){const a=C.$implicit;i.xp6(1),i.Q6J("ngIf",a.product.shareClass)}}const Fe=function(o){return{"has-edit-button":o}},G=f.Y.getLogger("FeaturedFundsComponent");let Ne=(()=>{class o extends S.N{constructor(a,c,p,d){super(),this.featuredFundsService=a,this.pdsLabelLoaderService=c,this.analyticsService=p,this.viewModeService=d,this.unsubscribe$=new R.xQ,this.overrideFundData=[],this.fundDetails=[],this.titleColorTheme="basic",this.fundIdShareClass=[],this.isEditMode=this.viewModeService.isEditMode()}ngOnInit(){super.ngOnInit(),this.brData=this.document?.getData(),this.docTypes=this.brData?.docTypeDisplay,this.titleColorTheme=this.component?.getParameters()?.titleColor,this.overrideKiidLabel=this.brData?.kiidoverride,this.fundIdShareClass=this.brData?.fundIDShareClass?.split(","),this.brData?.fundOverrideCompound?.forEach(a=>{const c=(0,F.g1)(a?.string?a.string:a);2===c.length&&this.overrideFundData.push({fundId:c[0],shareClassCode:c[1],url:a?.linkURL?.url})}),this.fundIdShareClass?.forEach(a=>{const c=(0,F.g1)(a);2===c.length&&this.fundDetails.push({fundId:c[0],relationships:["held"],shareClassCode:c[1]})}),this.investments$=this.featuredFundsService.getFeaturedFunds$(this.fundDetails,this.docTypes,this.overrideKiidLabel,this.overrideFundData),this.pdsLabelLoaderService.loadPdsLabels$().pipe((0,v.R)(this.unsubscribe$)).subscribe(()=>{G.debug("PDS Labels Loaded")})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}onPerfItemChange(a,c){G.debug("performance item toggle",a,c);const p=a.toggleButtons?.findIndex(d=>d.value===c.value);p>=0&&(G.debug("performance item toggle newIndex",p),a.selectedPerformanceItemIndex=p)}fileDownload(a,c){G.debug("file download:",a,c),this.analyticsService.trackEvent({event:"file_download",detailed_event:"Download Link Clicked",link_text:c.title,link_url:c.href,file_name:a.docId,document_title:a.dctermsTitle,file_extension:a.fileExtension,location:"",event_data:{file_extension:a.fileExtension,file_lit_code:a.literatureCode,file_name:a.docId,document_title:a.dctermsTitle,link_text:c.title,link_url:c.href,location:""}})}}return o.\u0275fac=function(a){return new(a||o)(i.Y36(me),i.Y36(ge.K),i.Y36(u.yDm),i.Y36(M.jO))}
1,o.\u0275cmp=i.Xpm({type:o,selectors:[["ft-featured-funds"]],features:[i.qOj],decls:12,vars:10,consts:[["edsGrid","",3,"ngClass"],["documentTemplateQuery","featured-funds-document","folderTemplateQuery","featured-funds-folder","parameter","document","root","",3,"brManageContentButton","relative",4,"ngIf"],["edsGrid",""],[1,"container","container--wide"],["edsRow",""],["edsCol",""],["edsFlexbox","","justifyContent","space-between","alignItems","center","edsSpacing","md",4,"ngIf"],[1,"us-servicing-my-investments__wrapper",3,"edsSpacing"],[1,"us-servicing-my-investments"],[4,"ngIf"],[4,"ngFor","ngForOf"],["documentTemplateQuery","featured-funds-document","folderTemplateQuery","featured-funds-folder","parameter","document","root","",3,"brManageContentButton","relative"],["edsFlexbox","","justifyContent","space-between","alignItems","center","edsSpacing","md"],[3,"title","preTitle","subTitle","theme"],["class","us-servicing-my-investments__card",3,"hasPadding",4,"ngIf"],[1,"us-servicing-my-investments__card",3,"hasPadding"],["edsSpacing","sm",1,"us-servicing-my-investments__card-header"],["edsFlexbox","","alignItems","center"],["theme","default","size","large",1,"us-servicing-my-investments__card-title-ticker",3,"label","labelAbbr"],["edsPadding","","edsPaddingLeft","sm"],["size","h5","edsPadding","",3,"level",4,"ngIf"],["size","h5","edsPadding","",3,"level","title",4,"ngIf"],[1,"us-servicing-my-investments__card-content"],[1,"us-servicing-my-investments__summary-item-group"],["edsSpacing","sm",3,"toggleButtons","isNoWrap","toggleActive",4,"ngIf"],[1,"us-servicing-my-investments__documents-group"],[1,"us-servicing-my-investments__documents-list","list--unstyled"],["class","us-servicing-my-investments__documents-list-item",4,"ngFor","ngForOf"],["size","h5","edsPadding","",3,"level"],["eventId","linkOrButtonClick",3,"inheritFontSize","bold","noPadding","title","href"],["size","h5","edsPadding","",3,"level","title"],["edsSpacing","sm",3,"toggleButtons","isNoWrap","toggleActive"],[3,"title","titleHeadingLevel","val","caveatPlacement","tooltip","supplementaryText","valueDirection","valueTextSmall","hasSupplementaryTextSpacer","asOfDate"],["size","normal",3,"rating","isHybrid","title",4,"ngIf"],["type","info","size","small","edsTooltip","","tooltipPositionDefault","top","tooltipType","large",3,"analyticsName","tooltipContent",4,"ngIf"],["size","normal",3,"rating","isHybrid","title"],["type","info","size","small","edsTooltip","","tooltipPositionDefault","top","tooltipType","large",3,"analyticsName","tooltipContent"],[1,"us-servicing-my-investments__documents-list-item"],["edsPadding","","edsPaddingRight","xs","type","download",3,"href","title","isNewWindow","hasLeftIcon","analyticsNoEvent","onLinkClick"],["size","small","theme","success",3,"label",4,"ngIf"],["size","small","theme","success",3,"label"]],template:function(a,c){1&a&&(i.TgZ(0,"div",0),i.YNc(1,he,1,2,"ng-container",1),i.qZA(),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"div",5),i.YNc(6,Y,2,4,"div",6),i.TgZ(7,"div",7),i.TgZ(8,"div",8),i.YNc(9,K,3,3,"span",9),i.YNc(10,De,2,1,"ng-container",10),i.ALo(11,"async"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&a&&(i.Q6J("ngClass",i.VKq(8,Fe,c.isEditMode)),i.xp6(1),i.Q6J("ngIf",c.isEditMode),i.xp6(5),i.Q6J("ngIf",null==c.brData?null:c.brData.title),i.xp6(1),i.Q6J("edsSpacing","auto"===c.marginBottom?"xl":c.marginBottom),i.xp6(2),i.Q6J("ngIf",!0===c.hasError),i.xp6(1),i.Q6J("ngForOf",i.lcZ(11,6,c.investments$)))},directives:[u.ljP,N.mk,N.O5,u.vZ,u.iKq,u.OPD,N.sg,oe.bF,u.Wxy,u.DgL,u.yXm,u.FN3,u.cph,u.r3N,u.zj4,u.tjc,u.ZSw,u.ATs,u.oJW,u.i9q],pipes:[N.Ov,fe.X],styles:["@media screen and (min-width: 1200px){.us-servicing-my-investments[_ngcontent-%COMP%]{max-height:450px;overflow:auto;padding-right:var(--space-xs)}}@media screen and (min-width: 1200px){.us-servicing-my-investments__wrapper[_ngcontent-%COMP%]{border:1px solid var(--greyscale-4);padding:var(--space-sm)}}@media screen and (max-width: 1400px){.us-servicing-my-investments__sales-team[_ngcontent-%COMP%]{position:relative;margin-bottom:calc((var(--space-xxl) * 1.5) * -1);z-index:1;width:100%}}@media screen and (min-width: 1400px){.us-servicing-my-investments__sales-team[_ngcontent-%COMP%]{position:absolute;bottom:-1rem;right:0;z-index:1}}@media screen and (max-width: 1200px){.us-servicing-my-investments__card[_ngcontent-%COMP%]{border:1px solid var(--greyscale-4);margin-bottom:var(--space-md)}}@media screen and (min-width: 1200px){.us-servicing-my-investments__card[_ngcontent-%COMP%]:nth-child(odd){background:var(--greyscale-5)}}.us-servicing-my-investments__card-content[_ngcontent-%COMP%]{container-name:card-content;container-type:inline-size}@media screen and (min-width: 550px){.us-servicing-my-investments__card-content[_ngcontent-%COMP%]{display:flex;flex-grow:1}}@media screen and (min-width: 550px){.us-servicing-my-investments__card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}}.us-servicing-my-investments__subscription-sr-only[_ngcontent-%COMP%]{top:0;left:0}.us-servicing-my-investments__documents-group[_ngcontent-%COMP%]{container-name:documents-group;container-type:inline-size;flex-grow:1;padding-bottom:var(--space-xs)}@media screen and (min-width: 550px){.us-servicing-my-investments__documents-group[_ngcontent-%COMP%]{padding-left:var(--space-sm)}}.us-servicing-my-investments__documents-list[_ngcontent-%COMP%]{display:flex;grid-gap:var(--space-sm) var(--space-md);gap:var(--space-sm) var(--space-md)}
1@container documents-group (max-width: 360px){.us-servicing-my-investments__documents-list {flex-direction: column;}}@container documents-group (min-width:68px){.us-servicing-my-investments__documents-list {flex-direction: row; flex-wrap: wrap;}}.us-servicing-my-investments__documents-list-item[_ngcontent-%COMP%]{display:inline-flex}@container documents-group (max-width: 360px){.us-servicing-my-investments__documents-list-item {width: 100%;}}.us-servicing-my-investments__summary-item-group[_ngcontent-%COMP%]{flex-grow:0;min-width:190px}@container card-content (max-width: 453px){.us-servicing-my-investments__summary-item-group {border-bottom: 1px solid var(--greyscale-3); padding-bottom: var(--space-md); margin-bottom: var(--space-md);}}@container card-content (min-width: 453px){.us-servicing-my-investments__summary-item-group {border-right: 1px solid var(--greyscale-3); padding-right: var(--space-sm);}}"]}),o})();var be=l(3830);let Ze=(()=>{class o{getComponentMapping(){return{"Featured Funds":Ne}}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[N.ez,u.TXv,u.hJ1,N.ez,oe.q8,u.xFq,u.WF4,u.zE6,u.QX1,u.SZ7,u.JI,u.QGW,u.XtU,u.eK5,u.cv2,u.Spe,u.i
1dt,u.b$p,u.z8t,be.a,u.vmb,u.MK6]]}),o})()},19704:(B,Z,l)=>{"use strict";l.r(Z),l.d(Z,{SimilarProductModule:()=>tt});var N=l(53242),S=l(54364),f=l(3138),F=l(26810),R=l(37668),v=l(3830),i=l(1095),u=l(68411),e=l(2316),O=l(69333);function I(n,s){1&n&&e.GkF(0)}function V(n,s){if(1&n&&(e.TgZ(0,"p",2),e.YNc(1,I,1,0,"ng-container",3),e.qZA()),2&n){e.oxw();const t=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function A(n,s){1&n&&e.GkF(0)}function k(n,s){if(1&n&&(e.TgZ(0,"p",2),e.TgZ(1,"eds-link-item",4),e.YNc(2,A,1,0,"ng-container",3),e.qZA(),e.qZA()),2&n){const t=e.oxw(),r=e.MAs(4);e.xp6(1),e.Q6J("href",t.fundLink),e.xp6(1),e.Q6J("ngTemplateOutlet",r)}}function q(n,s){if(1&n&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",null==t.fundDetail?null:t.fundDetail.suffix," ")}}function de(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",null==t.fundDetail?null:t.fundDetail.suffix," ")}}function Q(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1," - "),e.YNc(2,q,2,1,"strong",5),e.YNc(3,de,2,1,"span",5),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t.fundDetail?null:t.fundDetail.highlightSuffix),e.xp6(1),e.Q6J("ngIf",!(null!=t.fundDetail&&t.fundDetail.highlightSuffix))}}function b(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" (",null==t.fundDetail?null:t.fundDetail.secondSuffix,") ")}}function ce(n,s){if(1&n&&(e._uU(0),e.YNc(1,Q,4,2,"span",5),e.YNc(2,b,2,1,"span",5)),2&n){const t=e.oxw();e.hij(" ",null==t.fundDetail?null:t.fundDetail.fundName," "),e.xp6(1),e.Q6J("ngIf",null==t.fundDetail?null:t.fundDetail.suffix),e.xp6(1),e.Q6J("ngIf",null==t.fundDetail?null:t.fundDetail.secondSuffix)}}u.Y.getLogger("FundNameCellRendererComponent");let ne=(()=>{class n{constructor(t){this.agGridHelper=t}agInit(t){const r=t.column.getColDef().cellRendererParams?.showSecondSuffix;this.product=t.data,this.fundDetail=this.agGridHelper.getFundDetailToDisplay(this.product,r),this.isSoftLaunch=this.product.shareClass?.isSoftLaunch,this.fundLink=this.product.shareClass?.link,this.notificationType=i.j.ALERT}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.Wg))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-fund-name-cell-renderer"]],decls:5,vars:2,consts:[["class","spacing--none ag-cell-fund-name",4,"ngIf"],["fundNameContent",""],[1,"spacing--none","ag-cell-fund-name"],[4,"ngTemplateOutlet"],["eventId","linkOrButtonClick",1,"ag-cell-frk--link",3,"href"],[4,"ngIf"]],template:function(t,r){1&t&&(e.TgZ(0,"div"),e.YNc(1,V,2,1,"p",0),e.YNc(2,k,3,2,"p",0),e.qZA(),e.YNc(3,ce,3,3,"ng-template",null,1,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",r.isSoftLaunch),e.xp6(1),e.Q6J("ngIf",!r.isSoftLaunch))},directives:[S.O5,S.tP,f.zj4],styles:[""]}),n})();var M=l(79441),ie=l(33927),j=l(22663),ae=l(27513),se=l(55311),z=l(66237);function re(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"eds-toggle",7),e.NdJ("toggleActive",function(g){return e.CHM(t),e.oxw(2).onProductTypeUpdate(g)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("toggleButtons",t.productTypeToggle)}}function ue(n,s){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e.YNc(3,re,1,1,"eds-toggle",6),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",(null==t.productTypeToggle?null:t.productTypeToggle.length)>1)}}function pe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"eds-toggle",7),e.NdJ("toggleActive",function(g){return e.CHM(t),e.oxw(2).onPerformanceTypeUpd
1ate(g)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("toggleButtons",t.performanceTypeToggle)}}function W(n,s){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.YNc(2,pe,1,1,"eds-toggle",6),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",(null==t.performanceTypeToggle?null:t.performanceTypeToggle.length)>1)}}function me(n,s){if(1&n&&(e.TgZ(0,"div",8),e.TgZ(1,"div",9),e.TgZ(2,"p",10),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"p",11),e._uU(6),e.ALo(7,"translate"),e.ALo(8,"async"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij(" ",e.lcZ(4,3,"products.show-performance")," "),e.xp6(3),e.AsE(" ",e.lcZ(7,5,"pds.PERF_AS_OF_DATE")," ",e.lcZ(8,7,t.performanceAsOf$)," ")}}function ge(n,s){if(1&n&&(e.TgZ(0,"p",16),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,t.performanceViewOptions[0].headerLabelKey)," ")}}function oe(n,s){if(1&n&&(e.TgZ(0,"p",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"async"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,t.selectedPerfTypeHeaderKey$))," ")}}function fe(n,s){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,ge,3,3,"p",14),e.YNc(2,oe,4,5,"p",14),e.TgZ(3,"p",15),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"async"),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",1===t.performanceViewOptions.length&&t.isSiteIntl),e.xp6(1),e.Q6J("ngIf",1===t.performanceViewOptions.length&&!t.isSiteIntl),e.xp6(2),e.AsE(" ",e.lcZ(5,4,"pds.PERF_AS_OF_DATE")," ",e.lcZ(6,6,t.performanceAsOf$)," ")}}function he(n,s){if(1&n&&(e.TgZ(0,"div",8),e.YNc(1,fe,7,8,"div",12),e.ALo(2,"async"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!0!==e.lcZ(2,1,t.isMobile$))}}const Y=u.Y.getLogger("SimilarProductGroupHeaderComponent");let K=(()=>{class n{constructor(t,r,g){this.translateService=t,this.responsiveService=r,this.siteConfig=g,this.performanceTypeToggle=[],this.periodEndToggle=[],this.unsubscribe$=new M.xQ,this.showAnnualNav=!0,this.productTypeToggle=[],this.mapPeriodEnds=D=>({text:this.translateService.instant(`products.${D}`),active:D===this.periodEnd,value:D}),this.isMobile$=this.responsiveService.isMobile$(),this.isHandheld$=this.responsiveService.isHandheld$()}ngOnChanges(t){t.controller.currentValue&&this.init()}agInit(t){Y.debug("agInit()",t),this.controller=t,this.controller.setGridAPIs(t),this.init()}init(){Y.debug("init()",this.controller),this.performanceAsOf$=this.controller.getPerformanceAsOf$(),Y.debug("this.performanceViewOptions",this.controller.performanceViewOptions),this.performanceViewOptions=this.controller.performanceViewOptions||[],this.performanceViewOption=this.controller.getPerformanceViewOption$().getValue(),this.performanceViewOption&&(this.productTypeViewOptions=this.controller.productTypeViewOptions||[],this.isSiteIntl=this.siteConfig.isSiteInternational(),Y.debug("getSelectedCalcTypes()",this.controller.getSelectedCalcTypes()),this.selectedPerfTypeHeaderKey$=this.controller.getCalcType$().pipe((0,ie.U)(t=>`${this.performanceViewOptions[0].headerLabelKey}-${t}`)),this.performanceViewOptions?.length&&(this.performanceTypeToggle=this.performanceViewOptions.map(t=>({active:t.isDefault,text:this.translateService.instant(t.labelKey),value:t.name}))),Y.debug("this.performanceViewOptions",this.performanceViewOptions,this.performanceTypeToggle),this.productTypeViewOptions?.length&&(this.productTypeToggle=this.productTypeViewOptions.map(t=>({active:t.isDefault,text:this.getProcessedTypeLabel(t.labelKey),value:t.name}))),this.controller.getPeriodEnd$().pipe((0,j.R)(this.unsubscribe$)).subscribe(t=>{this.periodEnd=t,this.performanceViewOption.periodEnds&&(this.periodEndToggle=this.performanceViewOption.periodEnds.map(this.mapPeriodEnds))}))}getProcessedTypeLabel(t){return"products.MF"===t&&(t="products.MF_fullname"),this.translateService.instant(t)}
1onPerformanceTypeUpdate(t){this.controller.setPerformanceType(t.value)}onProductTypeUpdate(t){this.controller.setProductType(t?.value)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(ae.s),e.Y36(f.kzD),e.Y36(se.r5))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-similar-product-group-header"]],inputs:{controller:"controller"},features:[e.TTD],decls:4,vars:4,consts:[["class","similar-product-group-header print-hidden",4,"ngIf"],["class","similar-product-group-header","edsFlexbox","",4,"ngIf"],["edsFlexbox","","class","similar-product-group-header",4,"ngIf"],[1,"similar-product-group-header","print-hidden"],["edsPadding","","edsFlexbox","","justifyContent","flex-end","flexDirection","row"],["edsSpacing","xs","edsPadding","","edsPaddingTop","xs"],[3,"toggleButtons","toggleActive",4,"ngIf"],[3,"toggleButtons","toggleActive"],["edsFlexbox","",1,"similar-product-group-header"],["edsPadding","","edsPaddingLeft","lg","edsFlexbox","","justifyContent","space-between","flexDirection","row",1,"similar-product-group-header__toggle"],[1,"small","performance-group-header__toggle-label","spacing--xs"],["edsPadding","","edsPaddingLeft","sm",1,"performance-group-header__toggle-label","small","text-grey1","spacing--none"],["class","similar-product-group-header__toggle","edsPadding","","edsPaddingRight","xs","edsPaddingLeft","xs","edsFlexbox","","justifyContent","space-between","flexDirection","row",4,"ngIf"],["edsPadding","","edsPaddingRight","xs","edsPaddingLeft","xs","edsFlexbox","","justifyContent","space-between","flexDirection","row",1,"similar-product-group-header__toggle"],["class","small similar-product-group-header__toggle-label spacing--xs",4,"ngIf"],[1,"similar-product-group-header__toggle-label","small","text-grey1","spacing--none"],[1,"small","similar-product-group-header__toggle-label","spacing--xs"]],template:function(t,r){1&t&&(e.YNc(0,ue,4,1,"div",0),e.YNc(1,W,3,1,"div",0),e.YNc(2,me,9,9,"div",1),e.YNc(3,he,3,3,"div",2)),2&t&&(e.Q6J("ngIf",(null==r.productTypeToggle?null:r.productTypeToggle.length)>1),e.xp6(1),e.Q6J("ngIf",(null==r.performanceTypeToggle?null:r.performanceTypeToggle.length)>1),e.xp6(1),e.Q6J("ngIf",(null==r.performanceTypeToggle?null:r.performanceTypeToggle.length)>1),e.xp6(1),e.Q6J("ngIf",1===(null==r.performanceTypeToggle?null:r.performanceTypeToggle.length)))},directives:[S.O5,f.cph,f.Wxy,f.OPD,f.n$2],pipes:[z.X,S.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .similar-product-group-header[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .similar-product-group-header__toggle-label[_ngcontent-%COMP%]{margin-right:8px;flex-basis:25%}[_nghost-%COMP%] .similar-product-group-header__toggle[_ngcontent-%COMP%]{flex-grow:1}@media (min-width: 48.75rem){[_nghost-%COMP%] .similar-product-group-header__toggle[_ngcontent-%COMP%]{position:absolute;bottom:-30%;z-index:1}}"]}),n})();var _e=l(30330),ve=l(32765),J=l(26310),Ce=l(80117),Te=l(20245),xe=l(46485),ye=l(53466),Se=l(73553),Pe=l(97210),De=l(35005);function Fe(n,s){if(1&n&&e._UZ(0,"eds-footnote",10),2&n){const t=e.oxw(2).$implicit;e.Q6J("placement",null==t?null:t.sectionPlacement)}}function G(n,s){if(1&n&&(e._UZ(0,"eds-icon",11),e.ALo(1,"translate")),2&n){const t=e.oxw(2).$implicit;e.Q6J("tooltipContent",null==t?null:t.sectionToolTip)("analyticsName",e.lcZ(1,2,"products.ratings-title"))}}function Ne(n,s){1&n&&e._UZ(0,"br",12)}function be(n,s){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.YNc(2,Fe,1,1,"eds-footnote",6),e.YNc(3,G,2,4,"eds-icon",7),e.YNc(4,Ne,1,0,"br",8),e.TgZ(5,"small",9),e._uU(6),e.qZA(),e.qZA()),2&n){const t=e.oxw(),g=t.$implicit;e.Gre("",t.even?"padding-left--xs padding-top--xs padding-bottom--xs":"cards-mobile__highlight"," spacing--none"),e.xp6(1),e.hij(" ",g.sectionTitle," "),e.xp6(1),e.Q6J("ngIf",null==g?null:g.sectionPlacement),e.xp6(1),e.Q6J("ngIf",null==g?null:g.sectionToolTip),e.xp6(1),e.Q6J("ngIf",g.sectionTitle&&g.sectionSubTitle),e.xp6(2),e.Oqu(g.sectionSubTitle)}}function Ze(n,s){if(1&n&&(e._UZ(0,"eds-rating",16),e.ALo(1,"translate")),2&n){const t=e.oxw(2).$implicit;e.Q6J("rating",t.rating||t.hybridRating)("theme",t.ratingTheme)("isHybrid",t.hybridRating)("title",e.lcZ(1,4,"products.morningstar-review"))}}function o(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"p",17),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw(2).$implicit;e.xp6(2),e.Oqu(t.additionalVal)}}function C(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"eds-info-item",13),e.TgZ(2,"div"),e.YNc(3,Ze,2,6,"eds-rating",14),e.YNc(4,o,3,1,"ng-container",15),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit,r=e.oxw().even;e.Tol(r?"padding-left--xs padding-top--xs":"cards-mobile__highlight"),e.xp6(1),e.Q6J("info",t),e.xp6(2),e.Q6J("ngIf",t.rating||t.hybridRating),e.xp6(1),e.Q6J("ngIf",t.additionalVal)}}function a(n,s){if(1&n&&(e.ynx(0),e.YNc(1,C,5,6,"div",4),e.BQk()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf",!t.hide)}}function c(n,s){if(1&n&&(e.TgZ(0,"div",3),e.YNc(1,be,7,8,"p",4),e.YNc(2,a,2,1,"ng-container",5),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf",t.sectionTitle||t.sectionSubTitle),e.xp6(1),e.Q6J("ngForOf",t.items)}}function p(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1," - "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw(3);e.xp6(3),e.hij(" ",null==t.data.fundDetail?null:t.data.fundDetail.suffix," ")}}function d(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" (",null==t.data.fundDetail?null:t.data.fundDetail.secondSuffix,") ")}}
1function _(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"eds-title",24),e._uU(2),e.YNc(3,p,4,1,"span",15),e.YNc(4,d,2,1,"span",15),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("level",3)("isLight",!0),e.xp6(1),e.hij(" ",t.data.fundDetail.fundName," "),e.xp6(1),e.Q6J("ngIf",null==t.data.fundDetail?null:t.data.fundDetail.suffix),e.xp6(1),e.Q6J("ngIf",null==t.data.fundDetail?null:t.data.fundDetail.secondSuffix)}}function T(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1," - "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw(3);e.xp6(3),e.hij(" ",null==t.data.fundDetail?null:t.data.fundDetail.suffix," ")}}function m(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" (",null==t.data.fundDetail?null:t.data.fundDetail.secondSuffix,") ")}}function h(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",25),e.NdJ("click",function(g){return e.CHM(t),e.oxw(2).navService.navigate(g)}),e.TgZ(1,"eds-title",24),e._uU(2),e.YNc(3,T,4,1,"span",15),e.YNc(4,m,2,1,"span",15),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("href",null==t.fund?null:t.fund.shareClass.fundLink,e.LSH),e.xp6(1),e.Q6J("level",3)("isLight",!0),e.xp6(1),e.hij(" ",t.data.fundDetail.fundName," "),e.xp6(1),e.Q6J("ngIf",null==t.data.fundDetail?null:t.data.fundDetail.suffix),e.xp6(1),e.Q6J("ngIf",null==t.data.fundDetail?null:t.data.fundDetail.secondSuffix)}}const x=function(n,s){return{$implicit:n,even:s}};function L(n,s){if(1&n&&(e.TgZ(0,"div"),e.GkF(1,26),e.qZA()),2&n){const t=s.$implicit;e.oxw(2);const r=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",e.WLB(2,x,t,!t.isEven))}}function E(n,s){if(1&n&&(e.TgZ(0,"div"),e.GkF(1,26),e.qZA()),2&n){const t=s.$implicit;e.oxw(2);const r=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",e.WLB(2,x,t,!t.isEven))}}function le(n,s){if(1&n&&(e.TgZ(0,"eds-panel",18),e.TgZ(1,"div",19),e.TgZ(2,"div",20),e.TgZ(3,"div",21),e.TgZ(4,"div",22),e.YNc(5,_,5,5,"div",15),e.YNc(6,h,5,6,"a",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,L,2,5,"div",5),e.YNc(8,E,2,5,"div",5),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.Q6J("hasBorders",!0)("hasBorderRadius",!1)("hasPadding",!1)("overflowHidden",!0),e.xp6(3),e.Udp("margin",0),e.xp6(1),e.Udp("flex",1),e.xp6(1),e.Q6J("ngIf",t.isSoftLaunch),e.xp6(1),e.Q6J("ngIf",!t.isSoftLaunch),e.xp6(1),e.Q6J("ngForOf",t.fixedSections),e.xp6(1),e.Q6J("ngForOf",t.expandableSections)}}let P=(()=>{class n{constructor(t){this.navService=t,this.fixedSections=[],this.expandableSections=[],this.isSoftLaunch=!1,this.notificationType=i.j.ALERT}ngOnChanges(){this.fund=this.data.fund,this.isSoftLaunch=this.data.fund?.shareClass.isSoftLaunch,this.data.sections&&(this.data.sections.map((t,r)=>t.isEven=r%2==0),this.fixedSections=this.data.sections.filter(t=>!t.isExpandable),this.expandableSections=this.data.sections.filter(t=>t.isExpandable))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(f.f5Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-similar-product-card"]],inputs:{data:"data"},features:[e.TTD],decls:4,vars:1,consts:[["sectionTemplate",""],[1,"cards-mobile"],["edsSpacing","sm",3,"hasBorders","hasBorderRadius","hasPadding","overflowHidden",4,"ngIf"],[1,"cards-mobile__highlight-wrapper"],[3,"class",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"placement",4,"ngIf"],["class","print-hidden","type","info","size","small","edsTooltip","","tooltipBehavior","absolute","tooltipPositionDefault","bottom",3,"tooltipContent","analyticsName",4,"ngIf"],["class","padding-top--xs",4,"ngIf"],[1,"small"],[3,"placement"],["type","info","size","small","edsTooltip","","tooltipBehavior","absolute","tooltipPositionDefault","bottom",1,"print-hidden",3,"tooltipContent","analyticsName"],[1,"padding-top--xs"],[3,"info"],["size","small",3,"rating","theme","isHybrid","title",4,"ngIf"],[4,"ngIf"],["size","small",3,"rating","theme","isHybrid","title"],[1,"spacing--none","bold"],["edsSpacing","sm",3,"hasBorders","hasBorderRadius","hasPadding","overflowHidden"],["edsPadding","","edsPaddingAll","md"],["edsFlexbox","","flexDirection","column",1,"cards-mobile__title"],["edsRow",""],["edsColumn",""],["class","text-primary cards-mobile__title--link",3,"href","click",4,"ngIf"],["size","h5",3,"level","isLight"],[1,"text-primary","cards-mobile__title--link",3,"href","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(e.YNc(0,c,3,2,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1),e.YNc(3,le,9,12,"eds-panel",2),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",r.data))},directives:[S.O5,S.sg,f.A9Y,f.oJW,f.i9q,f.b2$,f.ATs,f.yXm,f.OPD,f.cph,f.Wxy,f.vZ,f.r3N,f.INY,S.tP],pipes:[z.X],styles:[".transparent[_ngcontent-%COMP%]{border:0;background:0}.fav-icon[_ngcontent-%COMP%]{color:var(--complimentary-1)}@media print{[_nghost-%COMP%] button.transparent[_ngcontent-%COMP%]{display:none!important}}"]}),n})();function Oe(n,s){1&n&&e._UZ(0,"ft-similar-product-card",1),2&n&&e.Q6J("data",s.$implicit)}let ke=(()=>{class n{constructor(t){this.helperService=t,this.unsubscribe$=new M.xQ}ngOnChanges(t){(t.rowData.currentValue||t.columnDefs.currentValue)&&this.refresh(),t.controller.currentValue&&this.controller.getRefresh$().pipe((0,j.R)(this.unsubscribe$)).subscribe(()=>{this.refresh()})}refresh(){this.rowData&&this.columnDefs&&this.columnDefs.length&&(this.cardData=this.rowData.map(t=>this.helperService.getSimilarProductCardData(this.columnDefs,t,this.gridContext)))}trackCards(t,r){return r.cardId}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.Wg))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-similar-product-card-container"]],inputs:{rowData:"rowData",columnDefs:"c
1olumnDefs",gridContext:"gridContext",controller:"controller"},features:[e.TTD],decls:2,vars:2,consts:[["edsSpacing","base",3,"data",4,"ngFor","ngForOf","ngForTrackBy"],["edsSpacing","base",3,"data"]],template:function(t,r){1&t&&(e.TgZ(0,"div"),e.YNc(1,Oe,1,1,"ft-similar-product-card",0),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngForOf",r.cardData)("ngForTrackBy",r.trackCards))},directives:[S.sg,P,f.OPD],styles:[""]}),n})();const X=["performanceGrid"],ee=["performanceCards"];function U(n,s){if(1&n&&e._UZ(0,"eds-proximal",6),2&n){const t=e.oxw();e.Q6J("placement",t.proximalTop)}}function te(n,s){1&n&&(e.TgZ(0,"div",9),e._UZ(1,"eds-progress-spinner",10),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Q6J("isHide",!1)("ifLoadingText",!0)("loadingText",e.lcZ(2,3,"products.loading")))}function Le(n,s){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"a",17),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("href",t.showMoreLink,e.LSH),e.xp6(1),e.hij(" ",e.lcZ(3,2,"products.more-funds"),"")}}function Me(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.TgZ(1,"ag-grid-angular",12,13),e.NdJ("sortChanged",function(){return e.CHM(t),e.oxw(2).onSortChanged()})("gridReady",function(){return e.CHM(t),e.oxw(2).onGridReady()}),e.qZA(),e._UZ(3,"eds-proximal",14),e.YNc(4,Le,4,4,"div",15),e.qZA()}if(2&n){const t=e.oxw(2);e.ekj("similar-product__table--margin-top",!(t.productTypeViewOptions.length>1)&&t.isProximalTop),e.xp6(1),e.Q6J("rowData",t.sortedTableRows)("columnDefs",t.columnDefs)("defaultColDef",t.defaultColDef)("frameworkComponents",t.frameworkComponents)("isExternalFilterPresent",!1)("doesExternalFilterPass",!1)("context",t.gridContext)("suppressCellSelection",!1)("ensureDomOrder",!0)("suppressRowTransform",!0)("headerHeight",100)("rowHeight",t.rowHeight)("getRowHeight",t.getRowHeight)("enableCellTextSelection",!0),e.xp6(3),e.Q6J("ngIf",t.sortedTableRows.length>=5)}}function Re(n,s){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"a",17),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("href",t.showMoreLink,e.LSH),e.xp6(1),e.hij(" ",e.lcZ(3,2,"products.more-funds"),"")}}function Qe(n,s){if(1&n&&(e.TgZ(0,"div"),e._UZ(1,"ft-similar-product-group-header",18),e._UZ(2,"ft-similar-product-card-container",19,20),e._UZ(4,"eds-proximal",14),e.YNc(5,Re,4,4,"div",15),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("controller",t.controller),e.xp6(1),e.Q6J("rowData",t.sortedTableRows)("columnDefs",t.columnDefs)("controller",t.controller)("gridContext",t.gridContext),e.xp6(3),e.Q6J("ngIf",t.sortedTableRows.length>=5)}}function Ee(n,s){if(1&n&&(e.ynx(0),e.YNc(1,te,3,5,"div",7),e.YNc(2,Me,5,17,"div",8),e.ALo(3,"async"),e.YNc(4,Qe,6,6,"div",4),e.ALo(5,"async"),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isTypeViewChanged),e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(3,3,t.isHandheld$)),e.xp6(2),e.Q6J("ngIf",0!==t.sortedTableRows.length&&e.lcZ(5,5,t.isHandheld$))}}function Ye(n,s){1&n&&(e.ynx(0),e._UZ(1,"eds-progress-spinner",10),e.ALo(2,"translate"),e.BQk()),2&n&&(e.xp6(1),e.Q6J("isHide",!1)("ifLoadingText",!0)("loadingText",e.lcZ(2,3,"products.loading")))}function Je(n,s){1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"products.similar-product-no-data-error")))}function Ge(n,s){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&n&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.similar-product-data-loading")))}function Ue(n,s){if(1&n&&e.YNc(0,Ge,4,3,"span",4),2&n){const t=e.oxw();e.Q6J("ngIf",!t.isLoaded)}}const $e=u.Y.getLogger("SimilarProductComponent");let Ae=(()=>{class n extends Ce.p{constructor(t,r,g,D,we,y,$,H,nt){super(),this.similarProductService=t,this.changeDetector=r,this.responsiveService=g,this.agGridColFactoryService=D,this.agGridService=we,this.siteConfigService=y,this.navService=$,this.translateService=H,this.caveatService=nt,this.unsubscribe$=new M.xQ,this.sortedTableRows=[],this.gridContext={filteredRows:null},this.columnDefs=[],this.defaultColDef={sortable:!0,autoHeight:!0},this.frameworkComponents={fundNameCellRendererComponent:ne,headerRendererComponent:f.b_v,similarProductGroupHeaderComponent:K,ratingsCellRenderComponent:F.p},this.fundListingType=Te.lv.SIMILAR_PRODUCT,this.rowHeight=60,this.productTypeView=new M.xQ,this.listingPageLink=[],this.showMoreLink="",this.sortBy="",this.sortByCurrencyCode="",this.productTypeLabelMapping={},this.isProximalTop=!1,this.proximalTop="SimilarProductProximalTop",this.onSortChanged=()=>this.changeDetector.detectChanges(),this.getRowHeight=it=>this.rowHeight}populate(t,r,g,D,we){this.initialize(r,g,D),$e.debug(D,this.page),this.isHandheld$=this.responsiveService.isHandheld$(),this.componentConfiguration=t,this.brConfig=r,this.fundId=this.brConfig.fundId||g.getParameters().fundId,this.shareClassCode=this.brConfig.shareClassCode||g.getParameters().shareClassCode,this.productType=g.getParameters().productType||this.componentConfiguration.configurationName,this.assetClass=g.getParameters().assetClass,this.productTypeLabelMapping[J.WX.MF]=this.translateService.instant("products.show-more-url-key-mf"),this.productTypeLabelMapping[J.WX.ETF]=this.translateService.instant("products.show-more-url-key-etf"),we?.siteMenuItems?.forEach(y=>{this.listingPageLink[y.parameters?.productType||y.name]=y.links.site.href}),this.sortBy=g.getParameters().sortBy,this.sortByCurrencyCode=g.getParameters().sortByCurrencyCode,this.similarProductService.setSortByCurrencyCode(this.sortByCurrencyCode),this.similarProductService.setConfigurationName(this.productType),this.similarProductService.setSortOrder(this.sortBy),this.caveatService.getProximals$(this.proximalTop).pipe((0,ye.q)(1)).subscribe(y=>{this.isProximalTop=!!y[0]||!1,this.changeDetector.detectChanges()}),this.assetClass?this.similarProductService.populate(this.assetClass):this.fundId&&this.shareClassCode?this.similarProductService.getProductDetails$(this.fundId,this.shareClassCode).subscribe(y=>{this.assetClass=y.assetClass,this.similarProductService.populate(this.assetClass)}):this.isLoaded=!1,this.productTypeView.subscribe(y=>{this.isTypeViewChanged=!1,this.similarProductService.setConfigurationName(y),this.similarProductService.populate(this.assetClass)}),this.similarProductService.similarProductState.pipe((0,j.R)(this.unsubscribe$)).subscribe(y=>{this.performanceView=y.config.performanceView,this.performanceViewOptions=y.config.performanceViewOptions,this.isSiteIntl=y.isSiteIntl,this.periodEnd=y.config.periodEnd,this.config=y.config;const $=y.asOfDates;this.productTypeViewOptions=y.config.productTypeViewOptions,this.productType=this.similarProductService.getConfigurationName(),this.showRating=this.siteConfigService.showRatings(this.productType),this.showMoreLink=(this.listingPageLink[this.productType]||this.listingPageLink[this.productTypeLabelMapping[this.productType]])?.concat("?filter=ASSET_CLASS:",this.assetClass),this.performanceAsOf="MONTHLY"===this.periodEnd?$.performanceAsOfDateMonthly:$.performanceAsOfDateQuarterly,this.controller=new xe.t(this.siteConfigService,this.productType,"SIMILAR_PPRODUCT",y.asOfDates.performanceAsOfDateMonthlyStd,y.asOfDates.performanceAsOfDateQuarterlyStd,y.asOfDates.performanceAsOfDateMonthly,y.asOfDates.performanceAsOfDateQuarterly,y.asOfDates.navAsOfDate,this.assetClass,this.productTypeViewOptions,this.productTypeView,this.similarProductService),this.columnDefs=this.agGridColFactoryService.generateColDefs(this.controller).filter(H=>(H.groupId===O.JN.PERFORMANCE&&this.filterPerformanceColumns(H),H.groupId===O.JN.FUND&&!this.showRating&&this.filterRatingColumns(H),!0)),this.sortedTableRows=y.data,this.isLoaded=!0,this.isTypeViewChanged=!0,this.setPerfGroupColumnsVisibility(y)})}filterRatingColumns(t){let r;r=t.children,t.children=r.filter(g=>g.colId!==O.iF.MORNINGSTAR_OVERALL)}filterPerformanceColumns(t){let r;r=t.children,t.children=r.filter(g=>
1!(g.colId.startsWith("CUMULATIVE")&&!this.config.performanceViewOptions.find(D=>"CUMULATIVE"===D.name)||g.colId.startsWith("DISCRETE")&&!this.config.performanceViewOptions.find(D=>"DISCRETE"===D.name)))}setPerfGroupColumnsVisibility(t){this.performanceView=t.config.performanceView,this.periodEnd=t.config.periodEnd,this.performanceAsOf="MONTHLY"===this.periodEnd?t.asOfDates.performanceAsOfDateMonthly:t.asOfDates.performanceAsOfDateQuarterly,this.performanceGrid?.gridOptions?.api?.refreshHeader(),this.performanceCards?.refresh(),this.changeDetector.detectChanges()}updatePerformanceView(t,r){this.similarProductService.changePerformanceView(t,r)}onGridReady(){this.agGridService.registerGrid(this.performanceGrid,this.performanceEl)}navigateToListingPage(){this.navService.navigateByUrl(this.showMoreLink,"_self")}ngOnDestroy(){this.similarProductService.removeData(),this.agGridService.removeGrid(this.performanceGrid),this.unsubscribe$.next(),this.unsubscribe$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(Se.H),e.Y36(e.sBO),e.Y36(f.kzD),e.Y36(Pe.o),e.Y36(f.Z8X),e.Y36(se.r5),e.Y36(f.f5Y),e.Y36(ae.s),e.Y36(De.o))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-similar-product"]],viewQuery:function(t,r){if(1&t&&(e.Gf(X,5,N.N8),e.Gf(X,5,e.SBq),e.Gf(ee,5)),2&t){let g;e.iGM(g=e.CRH())&&(r.performanceGrid=g.first),e.iGM(g=e.CRH())&&(r.performanceEl=g.first),e.iGM(g=e.CRH())&&(r.performanceCards=g.first)}},features:[e.qOj],decls:9,vars:12,consts:[["edsSpacing","xl",1,"similar-product"],["theme","primary","size","h2",1,"similar-product__title",3,"title","level","edsSpacing"],[3,"placement",4,"ngIf"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["handleNoData",""],[3,"placement"],["class","product-type-view-change-spinner",4,"ngIf"],["class","table-responsive",3,"similar-product__table--margin-top",4,"ngIf"],[1,"product-type-view-change-spinner"],["spinnerName","SimilarProductLoadingSpinner",3,"isHide","ifLoadingText","loadingText"],[1,"table-responsive"],["domLayout","autoHeight","overlayNoRowsTemplate","<p></p>",1,"ag-theme-frk","ag-theme-frk--light-striping",2,"width","100%","height","100%",3,"rowData","columnDefs","defaultColDef","frameworkComponents","isExternalFilterPresent","doesExternalFilterPass","context","suppressCellSelection","ensureDomOrder","suppressRowTransform","headerHeight","rowHeight","getRowHeight","enableCellTextSelection","sortChanged","gridReady"],["performanceGrid",""],["edsPadding","","edsPaddingTop","xl","placement","SimilarProductProximalBottom"],["edsPadding","","edsPaddingTop","sm",4,"ngIf"],["edsPadding","","edsPaddingTop","sm"],["edsButton","primary","size","normal",3,"href"],["edsPadding","","edsPaddingBottom","md","edsPaddingTop","xxl",3,"controller"],["edsPadding","","edsPaddingBottom","md",3,"rowData","columnDefs","controller","gridContext"],["performanceCards",""]],template:function(t,r){if(1&t&&(e.TgZ(0,"div",0),e._UZ(1,"eds-title",1),e.ALo(2,"translate"),e.YNc(3,U,1,1,"eds-proximal",2),e.YNc(4,Ee,6,7,"ng-container",3),e.YNc(5,Ye,3,5,"ng-container",4),e.YNc(6,Je,3,3,"span",4),e.YNc(7,Ue,1,1,"ng-template",null,5,e.W1O),e.qZA()),2&t){const g=e.MAs(8);e.xp6(1),e.ekj("similar-product__title--absolute",!r.isProximalTop),e.Q6J("title",e.lcZ(2,10,"products.fund-tab-related-products"))("level",2)("edsSpacing",r.isProximalTop?"xs":"none"),e.xp6(2),e.Q6J("ngIf",r.isProximalTop),e.xp6(1),e.Q6J("ngIf",r.isLoaded)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",0===r.sortedTableRows.length&&!r.isLoaded),e.xp6(1),e.Q6J("ngIf",0===r.sortedTableRows.length&&r.isLoaded)}},directives:[f.OPD,f.r3N,S.O5,f.JEP,f.Os0,N.N8,f.cph,f.INY,f.Hq3,K,ke],pipes:[z.X,S.Ov],styles:[".similar-product[_ngcontent-%COMP%]{position:relative}.similar-product__title--absolute[_ngcontent-%COMP%]{position:absolute;left:0;z-index:3}.similar-product__table--margin-top[_ngcontent-%COMP%]{margin-top:-24px}"],changeDetection:0}),n})();class w{constructor(s,t,r){this.key=s,this.component=t,this.configurationName=r}static getConfig(s,t){return this.allConfigs.find(r=>r.configurationName?r.key===s&&r.configurationName===t:r.key===s)}}w.SIMILAR_PRODUCT_GW=new w("Similar Products",Ae,J.WX.GW),w.SIMILAR_PRODUCT_MF=new w("Similar Products",Ae,J.WX.MF),w.SIMILAR_PRODUCT_ETF=new w("Similar Products",Ae,J.WX.ETF),w.allConfigs=[w.SIMILAR_PRODUCT_GW,w.SIMILAR_PRODUCT_MF,w.SIMILAR_PRODUCT_ETF];const Be=["dynamicCmp"];
1function Ve(n,s){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("No component found for ",t.componentType,"")}}function qe(n,s){1&n&&(e.TgZ(0,"div"),e._uU(1,"Loading..."),e.qZA())}function je(n,s){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Error loading data: ",t.errorMsg,"")}}function ze(n,s){}function We(n,s){if(1&n&&(e.TgZ(0,"div",2),e.YNc(1,Ve,2,1,"div",3),e.YNc(2,qe,2,0,"div",3),e.YNc(3,je,2,1,"div",3),e.TgZ(4,"div",4),e.YNc(5,ze,0,0,"ng-template",null,5,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.componentConfig),e.xp6(1),e.Q6J("ngIf",t.isLoading),e.xp6(1),e.Q6J("ngIf",t.errorMsg)}}function Ke(n,s){1&n&&e._uU(0,"Click to configure Similar Product Component")}const Xe=u.Y.getLogger("SimilarProductEntryComponent");let et=(()=>{class n extends _e.t{constructor(t,r){super(),this.componentFactoryResolver=t,this.changeDetector=r,this.isLoading=!0}ngOnInit(){if(super.ngOnInit(),this.componentType=this.brConfig?.componentType,this.componentConfig=w.getConfig(this.componentType,this.configurationName),this.changeDetector.detectChanges(),this.componentConfig){const t=this.componentFactoryResolver.resolveComponentFactory(this.componentConfig.component);this.container.clear(),this.componentRef=this.container.createComponent(t),this.isLoading=!1,this.errorMsg=null,this.componentRef.instance.populate(this.componentConfig,this.brConfig,this.component,this.page,this.menu),this.changeDetector.detectChanges()}else Xe.error("No component found: ",this.componentType,this.configurationName),this.errorMsg=`No component found: ${this.componentType}, ${this.configurationName}`}get menu(){return(0,ve.lj)(this.page,this.component)}ngOnDestroy(){this.componentRef?.destroy()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e._Vd),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-similar-product-entry"]],viewQuery:function(t,r){if(1&t&&e.Gf(Be,5,e.s_b),2&t){let g;e.iGM(g=e.CRH())&&(r.container=g.first)}},features:[e.qOj],decls:3,vars:2,consts:[["class","item has-edit-button grid",4,"ngIf","ngIfElse"],["configureComponentBlock",""],[1,"item","has-edit-button","grid"],[4,"ngIf"],[1,"container","container","container--wide"],["dynamicCmp",""]],template:function(t,r){if(1&t&&(e.YNc(0,We,7,3,"div",0),e.YNc(1,Ke,1,0,"ng-template",null,1,e.W1O)),2&t){const g=e.MAs(2);e.Q6J("ngIf",r.componentType)("ngIfElse",g)}},directives:[S.O5],styles:[""]}),n})(),tt=(()=>{class n{getComponentMapping(){return{"Similar Products":et}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[S.ez,R.m8,N.sF.withComponents([ne,f.b_v,K,F.p]),f.XtU,f.z8t,v.a,f.vmb,f.q7U]]}),n})()},13364:B=>{var Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FundFeature"},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:"shareclasscode"}},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:"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:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fundname"},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:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shclname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"perfincdt"},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:"ticker"},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:"navchngpct"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navchngvalue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ytdtotretatnav"},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:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avgannretactinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calcnamestd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"quarter_end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asofdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calcnamestd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cummretytd"},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:"mscatg"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"msrtngoverall"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"msoverallhybrid"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"yields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stdsecyield30day"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:942}};function S(v,i){if("FragmentSpread"===v.kind)i.add(v.name.value);
1else if("VariableDefinition"===v.kind){var u=v.type;"NamedType"===u.kind&&i.add(u.name.value)}v.selectionSet&&v.selectionSet.selections.forEach(function(e){S(e,i)}),v.variableDefinitions&&v.variableDefinitions.forEach(function(e){S(e,i)}),v.definitions&&v.definitions.forEach(function(e){S(e,i)})}Z.loc.source={body:"query FundFeature(\n $fundid: String!\n $shareclasscode: String!\n $countrycode: String!\n $languagecode: String!\n) {\n Overview(\n fundid: $fundid\n shareclasscode: $shareclasscode\n countrycode: $countrycode\n languagecode: $languagecode\n ) {\n producttype\n fundname\n webprdcttaxonomy\n shareclass {\n producttype\n shclname\n perfincdt\n identifiers {\n fundid\n shclcode\n ticker\n }\n nav {\n navdate\n navvalue\n navchngpct\n navchngvalue\n ytdtotretatnav\n }\n performance {\n month_end {\n asofdate\n avgannretactinc\n calcnamestd\n }\n quarter_end {\n asofdate\n calcnamestd\n cummretytd\n }\n }\n ratings {\n asofdate\n mscatg\n msrtngoverall\n msoverallhybrid\n }\n yields {\n stdsecyield30day\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var f={};function F(v,i){for(var u=0;u<v.definitions.length;u++){var e=v.definitions[u];if(e.name&&e.name.value==i)return e}}Z.definitions.forEach(function(i){if(i.name){var u=new Set;S(i,u),f[i.name.value]=u}}),B.exports=Z,B.exports.FundFeature=function(v,i){var u={kind:v.kind,definitions:[F(v,i)]};v.hasOwnProperty("loc")&&(u.loc=v.loc);var e=f[i]||new Set,O=new Set,I=new Set;for(e.forEach(function(A){I.add(A)});I.size>0;){var V=I;I=new Set,V.forEach(function(A){O.has(A)||(O.add(A),(f[A]||new Set).forEach(function(q){I.add(q)}))})}return O.forEach(function(A){var k=F(v,A);k&&u.definitions.push(k)}),u}(Z,"FundFeature")}}]); 2//# sourceMappingURL=similar-product.2ddd2d6c1c8fd2a33525.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.