1(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["tax"],{90490:(O,I,d)=>{"use strict";d.d(I,{$R:()=>c});var v=d(83446),e=d(49861),k=d(71003),C=d(2611),T=d(27272);function c(...L){const g=L[L.length-1];return"function"==typeof g&&L.pop(),(0,v.n)(L,void 0).lift(new p(g))}class p{constructor(g){this.resultSelector=g}call(g,_){return _.subscribe(new u(g,this.resultSelector))}}class u extends k.L{constructor(g,_,S=Object.create(null)){super(g),this.resultSelector=_,this.iterators=[],this.active=0,this.resultSelector="function"==typeof _?_:void 0}_next(g){const _=this.iterators;(0,e.k)(g)?_.push(new r(g)):_.push("function"==typeof g[C.hZ]?new m(g[C.hZ]()):new b(this.destination,this,g))}_complete(){const g=this.iterators,_=g.length;if(this.unsubscribe(),0!==_){this.active=_;for(let S=0;S<_;S++){let w=g[S];w.stillUnsubscribed?this.destination.add(w.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const g=this.iterators,_=g.length,S=this.destination;for(let E=0;E<_;E++){let V=g[E];if("function"==typeof V.hasValue&&!V.hasValue())return}let w=!1;const N=[];for(let E=0;E<_;E++){let V=g[E],Z=V.next();if(V.hasCompleted()&&(w=!0),Z.done)return void S.complete();N.push(Z.value)}this.resultSelector?this._tryresultSelector(N):S.next(N),w&&S.complete()}_tryresultSelector(g){let _;try{_=this.resultSelector.apply(this,g)}catch(S){return void this.destination.error(S)}this.destination.next(_)}}class m{constructor(g){this.iterator=g,this.nextResult=g.next()}hasValue(){return!0}next(){const g=this.nextResult;return this.nextResult=this.iterator.next(),g}hasCompleted(){const g=this.nextResult;return Boolean(g&&g.done)}}class r{constructor(g){this.array=g,this.index=0,this.length=0,this.length=g.length}[C.hZ](){return this}next(g){const _=this.index++;return _<this.length?{value:this.array[_],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class b extends T.Ds{constructor(g,_,S){super(g),this.parent=_,this.observable=S,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[C.hZ](){return this}next(){const g=this.buffer;return 0===g.length&&this.isComplete?{value:null,done:!0}:{value:g.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(g){this.buffer.push(g),this.parent.checkIterators()}subscribe(){return(0,T.ft)(this.observable,new T.IY(this))}}},76798:(O,I,d)=>{"use strict";d.d(I,{z:()=>N});var v=d(44022),e=d(10874),k=d(68411),C=d(79441),T=d(22663),c=d(33927),p=d(76815),u=d.n(p),m=d(31023),r=d(2316),b=d(55311),L=d(41185),g=d(27513),_=d(70553),S=d(92534);const w=k.Y.getLogger("USServicingService");let N=(()=>{class E{constructor(Z,W,te,U,G,y,J,M){this.siteConfigService=Z,this.appStateService=W,this.personalisationService=te,this.favoritesService=U,this.translateService=G,this.fundDataService=y,this.mapperFactory=J,this.windowRef=M,this.unsubscribe$=new C.xQ,this.getFavorites$=()=>this.favoritesService?.getFavorites$()?.pipe((0,T.R)(this.unsubscribe$),(0,c.U)($=>this.personalisationService.mapFavoritesFundIds($))),this.getHeldProductsList$=$=>this.personalisationService.getPersonalDataWithProducts$().pipe((0,T.R)(this.unsubscribe$),(0,c.U)(F=>F.hasPersonalHeldProducts?F.products:F.products?.slice(0,$))),this.mapDtoToProduct=$=>F=>{const D=F?.data?.Overview||null;if(!D)return w.warn(`No data found for fund: ${$}`),null;const K={config:this.siteConfigService,includeSoftClosed:!0,translateService:this.translateService};w.debug("productDto",D,F,K);const j=this.mapperFactory.createMapper(e.V5,K).toDomain(D);return(0,e.rl)(j)},this.getVariables=$=>{const F=$.split("-");return{countrycode:this.fundDataService.getCountry(),languagecode:this.fundDataService.getLanguage(),fundid:F[0],shareclasscode:2===F.length?F[1]:`${F[1]}-${F[2]}`}}}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}joinAnalyticsMetadata(Z){if(Z&&Z?.length>0)return Z.join(",")}
1getFundsFromResult(Z){let W;return this.getFavorites$().subscribe(te=>{const U=Z.filter(G=>!te.some(y=>y.fundId===G._source.fundid&&y.shareClassCode===G._source.shclcode));W=Array.from(U.reduce((G,y)=>G.set(y._source.title,{fundName:y._source.title,fundTitle:y._source.title,fundId:y._source.fundid,shareClassCode:y._source.shclcode,ticker:y._source.ticker,shareClasses:[...G.get(y._source.title)?.shareClasses??[],{shareclass:y._source.shclcode===v.NA||y._source.shclcode===v.Ie?this.translateService.instant("products.add"):y._source.shclname,ariaTitle:y._source.shclname,fundShareClassId:y._source.fundid+"-"+y._source.shclcode}]}),new Map).values())}),W}getProductDataForFavorite$(Z){return this.fundDataService.register(u(),this.getVariables(Z)).pipe((0,c.U)(this.mapDtoToProduct(Z)))}addLocaleToUrl(Z){if(this.siteConfigService.isCanada()){const W=this.appStateService.getChannel();Z.includes(W)||(Z=`/${W}/${Z}`.replace("//","/"))}return Z}getSalesOffice(){return this.appStateService.getSalesOffice()}}return E.\u0275fac=function(Z){return new(Z||E)(r.LFG(b.r5),r.LFG(b.ZQ),r.LFG(b.Cc),r.LFG(L.G),r.LFG(g.s),r.LFG(_.v),r.LFG(S.$),r.LFG(m.m9))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},30330:(O,I,d)=>{"use strict";d.d(I,{t:()=>k});var v=d(26310),e=d(2316);let k=(()=>{class C{constructor(){this.isPopulated=!1}ngOnInit(){this.brConfig=this.component?.getModels()?.config,this.configurationName=this.brConfig?.configurationName||v.WX.GW,this.fundId=this.brConfig?.fundId,this.shareClassCode=this.brConfig?.shareClassCode}}return C.\u0275fac=function(c){return new(c||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["ng-component"]],inputs:{component:"component",page:"page"},decls:0,vars:0,template:function(c,p){},encapsulation:2}),C})()},53619:(O,I,d)=>{"use strict";d.d(I,{OM:()=>N,mk:()=>E,Og:()=>V,Iq:()=>Z,HY:()=>W,O_:()=>te});var v=d(44022),e=d(5974),k=d(81907),C=d(68411),T=d(70160),c=d.n(T),p=d(19170),u=d.n(p),m=d(79441),r=d(53466),b=d(22663),L=d(33927),g=d(18293),_=d(2316),S=d(35005);const w=C.Y.getLogger("ExcelDownloadService"),N=[[]],E={v:"",t:"z"},V={v:v.Sk,t:"s"},Z=(U,G,y,J,M,$,F)=>{let D=U,K=G;if(G){if("n"===G&&(D=(0,k.Sz)(U)),"d"===G){const Y=F?[F]:["L","l",e.yJ],se=c()(U,Y);se.isValid()?D=se.format(e.yJ):K="s"}}else{K="s";const Y=(0,k.Sz)(U);null!==Y&&(K="n",D=Y)}(null==D||D===v.Sk)&&(K="s",D=v.Sk);const j={t:K,v:D};if(y){const Y={Target:y};J&&(Y.Tooltip=J),j.l=Y}if(M){const Y=Array.isArray(M)?M.map(se=>({t:se})):[{t:M}];Y.hidden=!0,j.c=Y}return $&&(j.data=$),j},W=(U,G=10)=>{const y=u()(U);w.debug("getColWidths()",U,y);const J=y.map(M=>({wch:M.reduce((F,D)=>Math.max(F,D?.v?.toString().length||0),G)}));return w.debug("col widths",J),J};let te=(()=>{class U{constructor(y){this.caveatService=y,this.unsubscribe$=new m.xQ}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}getProximalCaveat$(y){return this.caveatService.getProximals$(y).pipe((0,r.q)(1),(0,b.R)(this.unsubscribe$),(0,L.U)(J=>{const M=[];return J.map(F=>F.split("\n")).flat()?.forEach(F=>{let D=F.replace(/(<([^>]+)>)/gi,"");D=this.replaceWithAmpersand(D).trim(),D=this.replaceNonBreakingSpace(D),D.length>0&&M.push([Z(D,"s")])}),M}),(0,g.K)(()=>[]))}replaceWithAmpersand(y){return y.replace(/&/gi,"&")}replaceNonBreakingSpace(y){return y.replace(/ /gi," ").replace(/\s+/g," ").trim()}}return U.\u0275fac=function(y){return new(y||U)(_.LFG(S.o))},U.\u0275prov=_.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},52402:(O,I,d)=>{"use strict";d.r(I),d.d(I,{TaxModule:()=>La});var v=d(54364),e=d(2316),k=d(30330),C=d(68411),T=d(26310),c=d(80117),p=d(86861),u=d(90267),m=d.n(u),r=d(3138),b=d(70160),L=d.n(b),g=d(91441),_=d(55311),S=d(27513),w=d(79441),N=d(22663),E=d(80639),V=d(83720),Z=d(66237);const W=["filterSearch"],te=["filterDropdowns"];function U(i,s){if(1&i&&(e.TgZ(0,"p",16),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"b"),e._uU(4),e.qZA(),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"b"),e._uU(8),e.qZA(),e._uU(9),e.ALo(10,"translate"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,5,"products.ppss-listing-shows")," "),e.xp6(3),e.Oqu(t.filteredRecords),e.xp6(1),e.hij(" ",e.lcZ(6,7,"products.ppss-listing-of")," "),e.xp6(3),e.Oqu(t.totalRecords),e.xp6(1),e.hij(" ",e.lcZ(10,9,"products.ppss-listing-items")," ")}}
1function G(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",17),e.TgZ(1,"span",18),e._uU(2,"|"),e.qZA(),e.TgZ(3,"eds-link-item",19),e.NdJ("click",function(a){return e.CHM(t),e.oxw().onFilterReset(a)}),e.ALo(4,"translate"),e.qZA(),e.qZA()}2&i&&(e.xp6(3),e.Q6J("title",e.lcZ(4,2,"products.ppss-filter-reset"))("hasIcon",!0))}const y=function(){return{s:"4",m:"3",l:"auto"}};function J(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"eds-dropdown",20,21),e.NdJ("dropdownChange",function(a){e.CHM(t);const o=e.oxw();return o.onDropdownChange(o.productTypeFilter.filterName,a)}),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("columnNumbers",e.DdM(13,y)),e.xp6(1),e.Q6J("dropdownId",t.productTypeFilter.filterName)("multi",!0)("items",t.productTypeFilter.filterItems)("label",e.lcZ(3,7,"products.capgains-filter-"+t.productTypeFilter.filterLabel))("titleText",e.lcZ(4,9,"products.ppss-filter-select"))("selectedText",e.lcZ(5,11,"products.ppss-filter-selected"))}}function M(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-dropdown",26,21),e.NdJ("dropdownChange",function(a){const l=e.CHM(t).$implicit;return e.oxw(2).onDropdownChange(l.filterName,a)}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.qZA()}if(2&i){const t=s.$implicit;e.Q6J("columnNumbers",e.DdM(13,y))("dropdownId",t.filterName)("multi",!0)("items",t.filterItems)("label",e.lcZ(2,7,"products.capgains-filter-"+t.filterLabel))("titleText",e.lcZ(3,9,"products.ppss-filter-select"))("selectedText",e.lcZ(4,11,"products.ppss-filter-selected"))}}function $(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",22),e.YNc(1,M,5,14,"eds-dropdown",23),e.TgZ(2,"eds-search",24,25),e.NdJ("searchTerm",function(a){return e.CHM(t),e.oxw().onSearchInput(a)}),e.ALo(4,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.otherFilterTypes),e.xp6(1),e.Q6J("columnNumbers",e.DdM(5,y))("placeholder",e.lcZ(4,3,"products.ppss-filter-search-placeholder"))}}function F(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",27),e.ALo(1,"async"),e.ALo(2,"async"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"eds-switch",28),e.NdJ("switchPressed",function(a){return e.CHM(t),e.oxw().setFavoritesOnlyToggle(a)}),e.ALo(7,"translate"),e.ALo(8,"translate"),e.ALo(9,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("edsPaddingLeft",e.lcZ(1,9,t.isHandheld$)?"sm":"none")("edsPaddingRight",e.lcZ(2,11,t.isHandheld$)?"sm":"none"),e.xp6(4),e.Oqu(e.lcZ(5,13,"products.show-favorites-toggle")),e.xp6(2),e.Q6J("switchId","favoritesOnlySwitch")("disabled",!1)("label",e.lcZ(7,15,"products.show-favorites-toggle"))("labelOff",e.lcZ(8,17,"products.off"))("labelOn",e.lcZ(9,19,"products.on"))("state",t.favoritesOnlySwitchState)}}const D=function(){return{s:"4",m:"3",l:"7"}};let K=(()=>{class i{constructor(t){this.responsiveService=t,this.filterListing=new e.vpe,this.debouncer$=new w.xQ,this.componentDestroyed$=new w.xQ,this.selectedFilters={selectedDropdowns:[],searchedText:""},this.isAnyFilterPresent=!1,this.hideFundsSwitchState=T.rV.NO,this.hideFundsToggle=new e.vpe,this.favoritesOnlyToggle=new e.vpe}ngOnInit(){this.debouncer$.pipe((0,N.R)(this.componentDestroyed$),(0,E.b)(500),(0,V.x)()).subscribe(t=>{this.selectedFilters.searchedText=t,[1,2].includes(t.length)||this.filterListing.next(this.selectedFilters)}),this.isHandheld$=this.responsiveService.isHandheld$()}ngOnChanges(t){if(t.filters?.currentValue){const n=t.filters.currentValue;this.isAnyFilterPresent=n.length>0,this.productTypeFilter=n?.find(a=>"productType"===a.filterName),this.otherFilterTypes=n?.filter(a=>"productType"!==a.filterName)}if(t.recordDetails?.currentValue){const n=t.recordDetails.currentValue;this.totalRecords=n?.total,this.filteredRecords=n?.filtered}}setHideFundsToggle(t){this.hideFundsToggle.emit(t)}setFavoritesOnlyToggle(t){this.favoritesOnlyToggle.emit(t)}onDropdownChange(t,n){let a,o;this.selectedFilters.selectedDropdowns.find((l,f)=>{l.filterName===t&&(a=l,o=f)}),a?n.length?a.filterItems=n:this.selectedFilters.selectedDropdowns.splice(o,1):this.selectedFilters.selectedDropdowns.push({f
1ilterName:t,filterItems:n}),this.filterListing.next(this.selectedFilters)}onSearchInput(t){this.debouncer$.next(t.trim())}onFilterReset(t){t.preventDefault(),this.filterDropdowns.forEach(n=>n.reset()),this.filterSearch.value="",this.filterSearch.hasTyped=!1,this.selectedFilters={selectedDropdowns:[],searchedText:""},this.filterListing.next(this.selectedFilters)}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(r.kzD))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-estimates-filters"]],viewQuery:function(t,n){if(1&t&&(e.Gf(W,5),e.Gf(te,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.filterSearch=a.first),e.iGM(a=e.CRH())&&(n.filterDropdowns=a)}},inputs:{filters:"filters",recordDetails:"recordDetails",hideFundsSwitchState:"hideFundsSwitchState",showFavoritesOnlySwitch:"showFavoritesOnlySwitch",favoritesOnlySwitchState:"favoritesOnlySwitchState"},outputs:{filterListing:"filterListing",hideFundsToggle:"hideFundsToggle",favoritesOnlyToggle:"favoritesOnlyToggle"},features:[e.TTD],decls:31,vars:48,consts:[["theme","dark",1,"us-capital-gains-filters",3,"edsSpacing"],["edsGrid","","edsPadding","","edsPaddingBottom","sm"],["edsPadding","",1,"container","container--wide",3,"edsPaddingTop"],["edsRow",""],["edsCol","",3,"columnNumbers"],["edsFlexbox","","edsPadding","","edsPaddingTop","sm",3,"flexDirection","alignItems"],["size","h2","edsSpacing","none","edsPadding","","edsPaddingRight","sm",3,"level","isLight"],["edsFlexbox","","alignItems","center",3,"edsSpacing"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm",4,"ngIf"],["edsFlexbox","","alignItems","center",4,"ngIf"],["edsCol","",3,"columnNumbers",4,"ngIf"],["edsRow","","edsPadding","","edsPaddingTop","md",4,"ngIf"],["edsFlexbox","",3,"flexDirection"],["edsPadding","","edsPaddingRight","xs",3,"edsPaddingLeft"],["ariaLabelledbyStr","hideFundsSwitchLabel","labelId","hideFundsSwitchLabel","theme","dark",3,"switchId","disabled","label","labelOff","labelOn","state","switchPressed"],["edsPadding","","edsPaddingRight","xs",3,"edsPaddingLeft","edsPaddingRight",4,"ngIf"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","alignItems","center"],["edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","justifyContent","flex-end","theme","dark","type","reset",1,"text-white",3,"title","hasIcon","click"],["edsSpacing","none","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","","flexGrow","1","justifyContent","flex-end",3,"dropdownId","multi","items","label","titleText","selectedText","dropdownChange"],["filterDropdowns",""],["edsRow","","edsPadding","","edsPaddingTop","md"],["edsCol","","edsSpacing","md","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","",3,"columnNumbers","dropdownId","multi","items","label","titleText","selectedText","dropdownChange",4,"ngFor","ngForOf"],["edsCol","","fieldId","search__field","edsSpacing","md","edsPadding","","edsPaddingLeft","none","flexGrow","1","edsPaddingBottom","md",3,"columnNumbers","placeholder","searchTerm"],["filterSearch",""],["edsCol","","edsSpacing","md","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","",3,"columnNumbers","dropdownId","multi","items","label","titleText","selectedText","dropdownChange"],["edsPadding","","edsPaddingRight","xs",3,"edsPaddingLeft","edsPaddingRight"],["ariaLabelledbyStr","favoritesOnlySwitchLabel","labelId","favoritesOnlySwitchLabel","theme","dark",3,"switchId","disabled","label","labelOff","labelOn","state","switchPressed"]],template:function(t,n){1&t&&(e.TgZ(0,"eds-panel",0),e.ALo(1,"async"),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.ALo(4,"async"),e.TgZ(5,"div",3),e.TgZ(6,"div",4),e.TgZ(7,"div",5),e.ALo(8,"async"),e.ALo(9,"async"),e.TgZ(10,"eds-title",6),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"div",7),e.ALo(14,"async"),e.YNc(15,U,11,11,"p",8),e.YNc(16,G,5,4,"div",9),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,J,6,14,"div",10),e.qZA(),e.YNc(18,$,5,6,"div",11),e.TgZ(19,"div",12),e.ALo(20,"async"),e.TgZ(21,"div",13),e.ALo(22,"async"),e.TgZ(23,"span"),e._uU(24),e.ALo(25,"translate"),e.qZA(),e.TgZ(26,"eds-switch",14),e.NdJ("switchPressed",function(o){return n.setHideFundsToggle(o)}),e.ALo(27,"translate"),e.ALo(28,"translate"),e.ALo(29,"translate"),e.qZA(),e.qZA(),e.YNc(30,F,10,21,"div",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("edsSpacing",e.lcZ(1,23,n.isHandheld$)?"lg":"md"),e.xp6(3),e.Q6J("edsPaddingTop",e.lcZ(4,25,n.isHandheld$)?"md":"xs"),e.xp6(3),e.Q6J("columnNumbers",e.DdM(47,D)),e.xp6(1),e.Q6J("flexDirection",e.lcZ(8,27,n.isHandheld$)?"column":"row")("alignItems",e.lcZ(9,29,n.isHandheld$)?"flex-start":"center"),e.xp6(3),e.Q6J("level",1)("isLight",!0),e.xp6(1),e.Oqu(e.l
1cZ(12,31,"products.capgains-estimates-page-heading")),e.xp6(2),e.Q6J("edsSpacing",e.lcZ(14,33,n.isHandheld$)?"sm":"none"),e.xp6(2),e.Q6J("ngIf",n.totalRecords),e.xp6(1),e.Q6J("ngIf",n.isAnyFilterPresent&&((null==n.selectedFilters||null==n.selectedFilters.selectedDropdowns?null:n.selectedFilters.selectedDropdowns.length)||(null==n.selectedFilters?null:n.selectedFilters.searchedText))),e.xp6(1),e.Q6J("ngIf",n.isAnyFilterPresent),e.xp6(1),e.Q6J("ngIf",n.isAnyFilterPresent),e.xp6(1),e.Q6J("flexDirection",e.lcZ(20,35,n.isHandheld$)?"column":"row"),e.xp6(2),e.Q6J("edsPaddingLeft",e.lcZ(22,37,n.isHandheld$)?"sm":"none"),e.xp6(3),e.Oqu(e.lcZ(25,39,"products.hide-funds-no-estimates")),e.xp6(2),e.Q6J("switchId","hideFundsSwitch")("disabled",!1)("label",e.lcZ(27,41,"products.hide-funds-no-estimates"))("labelOff",e.lcZ(28,43,"products.no"))("labelOn",e.lcZ(29,45,"products.yes"))("state",n.hideFundsSwitchState),e.xp6(4),e.Q6J("ngIf",n.showFavoritesOnlySwitch))},directives:[r.yXm,r.OPD,r.ljP,r.cph,r.vZ,r.iKq,r.Wxy,r.r3N,v.O5,r.qUD,r.zj4,r.JOL,r.R65,v.sg,r.gSk],pipes:[v.Ov,Z.X],styles:[""]}),i})();var j=d(53242),Y=d(1095);function se(i,s){if(1&i&&(e.TgZ(0,"p",2),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.hij(" ",t.fundName," ")}}function Ee(i,s){if(1&i&&(e.TgZ(0,"eds-link-item",4),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("href",t.fundLink),e.xp6(1),e.hij(" ",t.fundName," ")}}function Ue(i,s){if(1&i&&(e.TgZ(0,"p",2),e.YNc(1,Ee,2,2,"eds-link-item",3),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.fundLink)}}function Re(i,s){if(1&i&&(e._UZ(0,"eds-notifications",5),e.ALo(1,"translate")),2&i){const t=e.oxw();e.Q6J("title",e.lcZ(1,4,"products.capgains-fund-alert"))("notificationType",t.notificationType)("inline",!0)("small",!0)}}let Oe=(()=>{class i{constructor(){this.notificationType=Y.j.ALERT,this.isSoftLaunch=!1}agInit(t){const n=t.data;"soft-launch"===n.fundStatus&&(this.isSoftLaunch=!0),this.fundName=n.fundName,this.fundLink=n.fundLink,this.actualsAlert=n.actualsAlert}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-fund-name-cell-renderer"]],decls:4,vars:3,consts:[["class","spacing--none ag-cell-fund-name",4,"ngIf"],[3,"title","notificationType","inline","small",4,"ngIf"],[1,"spacing--none","ag-cell-fund-name"],["class","ag-cell-frk--link","eventId","linkOrButtonClick",3,"href",4,"ngIf"],["eventId","linkOrButtonClick",1,"ag-cell-frk--link",3,"href"],[3,"title","notificationType","inline","small"]],template:function(t,n){1&t&&(e.TgZ(0,"div"),e.YNc(1,se,2,1,"p",0),e.YNc(2,Ue,2,1,"p",0),e.YNc(3,Re,2,6,"eds-notifications",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",n.isSoftLaunch||!n.fundLink),e.xp6(1),e.Q6J("ngIf",!n.isSoftLaunch),e.xp6(1),e.Q6J("ngIf",n.actualsAlert))},directives:[v.O5,r.zj4,r.tkR],pipes:[Z.X],styles:[""]}),i})(),Ge=(()=>{class i{constructor(){this.isCheckboxSelected=!1}agInit(t){this.parentComponent=t.parentComponent,this.isCheckboxSelected=this.parentComponent.isSelectAllCheckboxChecked}onCheckboxClicked(){this.isCheckboxSelected=!this.isCheckboxSelected,this.parentComponent.onRowSelected({isSelected:this.isCheckboxSelected})}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-fund-select-all-header-renderer"]],decls:2,vars:2,consts:[[1,"ag-checkbox"],[1,"ag-wrapper","ag-input-wrapper","ag-checkbox-input-wrapper",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return n.onCheckboxClicked()}),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.ekj("ag-checked",n.isCheckboxSelected))},styles:[""]}),i})(),qe=(()=>{class i{constructor(){this.isCheckboxSelected=!1}agInit(t){this.paramsContext=t,this.parentComponent=t.parentComponent,this.isCheckboxSelected=this.paramsContext.data.isSelected}onCheckboxClicked(){this.isCheckboxSelected=!this.isCheckboxSelected,this.paramsContext.node.setSelected(this.isCheckboxSelected);const t=this.paramsContext.node.data;this.parentComponent.onRowSelected({selectedFundShareClassId:`${t.fundId}-${t.shareClassCode}`,isSelected:this.isCheckboxSelected})}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-fund-select-cell-renderer"]],decls:1,vars:2,consts:[[1,"ag-wrapper","ag-input-wrapper","ag-checkbox-input-wrapper",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.NdJ("click",function(){return n.onCheckboxClicked()}),e.qZA()),2&t&&e.ekj("ag-checked",n.isCheckboxSelected)},styles:[""]}),i})();var Qe=d(1707);
1function Je(i,s){if(1&i&&(e.TgZ(0,"eds-link-item",13),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("href",t.cardData.fundLink),e.xp6(1),e.hij(" ",t.cardData.fundName," ")}}function Me(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.cardData.fundName)}}function $e(i,s){if(1&i&&(e._UZ(0,"eds-notifications",14),e.ALo(1,"translate")),2&i){const t=e.oxw(2);e.Q6J("title",e.lcZ(1,4,"products.capgains-fund-alert"))("notificationType",t.notificationType)("inline",!0)("small",!0)}}const Ye=function(i,s){return{cardDataDetails:i,expanded:s}};function Be(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-panel",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e.TgZ(4,"eds-checkbox",8),e.NdJ("checkedChange",function(a){e.CHM(t);const o=e.oxw();return o.onCheckBoxClicked(a,o.cardData)}),e.qZA(),e.YNc(5,Je,2,2,"eds-link-item",9),e.YNc(6,Me,2,1,"span",10),e.qZA(),e.YNc(7,$e,2,6,"eds-notifications",11),e.qZA(),e.qZA(),e.GkF(8,12),e.qZA()}if(2&i){const t=e.oxw(),n=e.MAs(3);e.Q6J("hasBorders",!0)("hasBorderRadius",!0)("overflowHidden",!0),e.xp6(4),e.Q6J("disabled",!1)("hideLabel",!1)("required",!1)("checked",t.cardData.isSelected),e.xp6(1),e.Q6J("ngIf",t.cardData.fundLink),e.xp6(1),e.Q6J("ngIf",!t.cardData.fundLink),e.xp6(1),e.Q6J("ngIf",t.cardData.actualsAlert),e.xp6(1),e.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",e.WLB(12,Ye,t.cardDataDetails,t.expanded))}}const Ce=function(i){return{rowData:i}};function He(i,s){if(1&i&&e.GkF(0,12),2&i){const t=s.$implicit;e.oxw(2);const n=e.MAs(5);e.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",e.VKq(2,Ce,t))}}function Ve(i,s){if(1&i&&e.GkF(0,12),2&i){const t=s.$implicit;e.oxw(3);const n=e.MAs(5);e.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",e.VKq(2,Ce,t))}}function ze(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",15),e.TgZ(2,"div",16),e.YNc(3,Ve,1,4,"ng-container",17),e.qZA(),e.qZA(),e.BQk()),2&i){const t=e.oxw().cardDataDetails;e.xp6(3),e.Q6J("ngForOf",t.collapsedItems)}}function We(i,s){1&i&&(e.ynx(0),e._UZ(1,"eds-icon",20),e.TgZ(2,"span",21),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&i&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"products.fund-cmp-more-details")," "))}function Xe(i,s){1&i&&(e.ynx(0),e._UZ(1,"eds-icon",22),e.TgZ(2,"span",21),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&i&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"products.fund-cmp-less-details")," "))}function Ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.YNc(2,He,1,4,"ng-container",17),e.qZA(),e.qZA(),e.YNc(3,ze,4,1,"ng-container",10),e.TgZ(4,"div",18),e.TgZ(5,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().expandDetails()}),e.YNc(6,We,5,3,"ng-container",10),e.YNc(7,Xe,5,3,"ng-container",10),e.qZA(),e.qZA()}if(2&i){const t=s.cardDataDetails,n=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.expandedItems),e.xp6(1),e.Q6J("ngIf",n.expanded),e.xp6(2),e.Q6J("edsButton","icon-only")("size","small")("hasIcon",!0),e.xp6(1),e.Q6J("ngIf",!n.expanded),e.xp6(1),e.Q6J("ngIf",n.expanded)}}function je(i,s){if(1&i&&(e.TgZ(0,"eds-title",25),e._uU(1),e.qZA()),2&i){const t=e.oxw().rowData;e.Q6J("level",1)("isLight",!0),e.xp6(1),e.hij(" ",t.title," ")}}function et(i,s){if(1&i&&e._UZ(0,"eds-info-item",26),2&i){const t=e.oxw().rowData;e.Q6J("info",t.info)("edsPaddingTop",t.highlight?"none":"xs")("edsPaddingBottom",t.highlight?"sm":"xs")("edsPaddingLeft",t.highlight?"none":"sm")("edsPaddingRight",t.highlight?"none":"sm")}}function tt(i,s){if(1&i&&(e.YNc(0,je,2,3,"eds-title",23),e.TgZ(1,"div"),e.YNc(2,et,1,5,"eds-info-item",24),e.qZA()),2&i){const t=s.rowData;e.Q6J("ngIf",t.title),e.xp6(1),e.ekj("cards-mobile__highlight",t.highlight),e.xp6(1),e.Q6J("ngIf",t)}}let it=(()=>{class i{constructor(t){this.translateService=t,this.cardDataDetails={},this.isCheckboxSelected=!1,this.notificationType=Y.j.ALERT,this.cardSelected=new e.vpe}ngOnInit(){this.createCards()}createCards(){this.cardData&&(this.cardDataDetails.expandedItems=[{info:{label:this.translateService.instant("products.capgains-table-heading-ticker"),val:this.cardData.ticker}},{info:{label:this.translateService.instant("products.capgains-table-heading-share-class"),val:this.cardData.shareClassName}},{info:{label:this.translateService.instant("products.capgains-table-heading-long-term-cap-gains-perc"),val:this.cardData.longTermCapitalGainPercent},highlight:!0},{info:{label:this.translateService.instant("products.capgains-table-heading-short-term-cap-gains-perc"),val:this.cardData.shortTermCapitalGainPercent},highlight:!0},{info:{label:this.translateService.instant("products.capgains-table-heading-total-percent"),val:this.cardData.totalGainNav},highlight:!0}
1],this.cardDataDetails.collapsedItems=[{info:{label:this.translateService.instant("pds.CAPGAIN_AMT_LONG_TERM"),val:this.cardData.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):this.cardData.longTermCapitalGainAmount}},{info:{label:this.translateService.instant("pds.CAPGAIN_AMT_SHRT_TERM"),val:this.cardData.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):this.cardData.shortTermCapitalGainAmount}},{info:{label:this.translateService.instant("products.NAV_VALUE")+" "+this.translateService.instant("products.capgains-table-heading-nav-as-of")+" "+this.cardData.navAsofDate,val:this.cardData.navValue},highlight:!0},{info:{label:this.translateService.instant("pds.INCM_DIST_RECORD_DATE"),val:this.cardData.capitalGainRecordDate},highlight:!0},{info:{label:this.translateService.instant("products.capgains-table-heading-ex-date"),val:this.cardData.capitalGainExDividendDate},highlight:!0},{info:{label:this.translateService.instant("products.capgains-table-heading-payable-date"),val:this.cardData.capitalGainPayableDate},highlight:!0}])}onCheckBoxClicked(t,n){this.isCheckboxSelected=!this.isCheckboxSelected,this.cardSelected.emit({selectedFundShareClassId:`${n.fundId}-${n.shareClassCode}`,isSelected:this.isCheckboxSelected})}expandDetails(){this.expanded=!this.expanded}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(S.s))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-estimates-cards"]],inputs:{cardData:"cardData"},outputs:{cardSelected:"cardSelected"},decls:6,vars:1,consts:[[1,"cards-mobile"],["edsSpacing","xl",3,"hasBorders","hasBorderRadius","overflowHidden",4,"ngIf"],["infoItemBlock",""],["cardItem",""],["edsSpacing","xl",3,"hasBorders","hasBorderRadius","overflowHidden"],["edsPadding","","edsPaddingAll","sm"],[1,"spacing--none","ag-cell-fund-name"],["edsFlexbox","",1,"card-checkbox-title"],["name","fundSelectionCheckbox","edsPadding","","edsPaddingRight","sm","edsPaddingTop","xs","ngDefaultControl","",1,"inline-item",3,"disabled","hideLabel","required","checked","checkedChange"],["class","ag-cell-frk--link inline-item","eventId","linkOrButtonClick",3,"href",4,"ngIf"],[4,"ngIf"],[3,"title","notificationType","inline","small",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["eventId","linkOrButtonClick",1,"ag-cell-frk--link","inline-item",3,"href"],[3,"title","notificationType","inline","small"],[1,"cards-mobile__wrapper"],[1,"cards-mobile__highlight-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["edsPadding","","edsPaddingRight","md","edsPaddingLeft","sm","edsPaddingTop","sm","edsPaddingBottom","md"],[3,"edsButton","size","hasIcon","click"],["type","carrot-down","size","small"],["edsPadding","","edsPaddingLeft","sm"],["type","carrot-up","size","small"],["size","h6","edsPadding","","edsPaddingTop","md","edsPaddingBottom","md",3,"level","isLight",4,"ngIf"],["edsPadding","",3,"info","edsPaddingTop","edsPaddingBottom","edsPaddingLeft","edsPaddingRight",4,"ngIf"],["size","h6","edsPadding","","edsPaddingTop","md","edsPaddingBottom","md",3,"level","isLight"],["edsPadding","",3,"info","edsPaddingTop","edsPaddingBottom","edsPaddingLeft","edsPaddingRight"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Be,9,15,"eds-panel",1),e.qZA(),e.YNc(2,Ke,8,7,"ng-template",null,2,e.W1O),e.YNc(4,tt,3,4,"ng-template",null,3,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",n.cardData))},directives:[v.O5,r.yXm,r.OPD,r.cph,r.Wxy,r.bK4,Qe.Fj,v.tP,r.zj4,r.tkR,v.sg,r.Hq3,r.oJW,r.r3N,r.b2$],pipes:[Z.X],styles:[".inline-item[_ngcontent-%COMP%]{display:inline-block}"]}),i})();const nt=["estimateGrid"];function at(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ag-grid-angular",4,5),e.NdJ("sortChanged",function(a){return e.CHM(t),e.oxw(2).onSortChanged(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("rowData",t.sortedTableRows)("columnDefs",t.columnDefs)("defaultColDef",t.defaultColDef)("frameworkComponents",t.frameworkComponents)("suppressPaginationPanel",!0)("suppressDragLeaveHidesColumns",!0)("isExternalFilterPresent",t.isExternalFilterPresent)("doesExternalFilterPass",t.doesExternalFilterPass)("context",t.gridContext)("suppressRowHoverHighlight",!1)("suppressCellSelection",!1)("suppressRowTransform",!0)("ensureDomOrder",!0)("suppressColumnVirtualisation",!0)("enableCellTextSelection",!0)("suppressRowClickSelection",!0)}}
1function st(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ft-us-capital-gains-estimates-cards",7),e.NdJ("cardSelected",function(a){return e.CHM(t),e.oxw(3).onRowSelected(a)}),e.qZA()}2&i&&e.Q6J("cardData",s.$implicit)}function ot(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,st,1,1,"ft-us-capital-gains-estimates-cards",6),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.gridListing)}}function rt(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,at,2,16,"ag-grid-angular",2),e.ALo(2,"async"),e.YNc(3,ot,2,1,"div",3),e.ALo(4,"async"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,t.isHandheld$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,4,t.isHandheld$))}}function lt(i,s){1&i&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.capgains-estimates-no-filter-result-message")," "))}let dt=(()=>{class i{constructor(t,n,a,o){this.translateService=t,this.cdr=n,this.responsiveService=a,this.usCapitalGainsEstimatesService=o,this.gridListing=[],this.updateNodeSelection=new e.vpe,this.sortColumn=new e.vpe,this.unsubscribe$=new w.xQ,this.gridContext={},this.frameworkComponents={fundNameCellRendererComponent:Oe,fundSelectCellRendererComponent:qe,fundSelectAllHeaderRendererComponent:Ge},this.defaultColDef={wrapText:!1,width:160,autoHeight:!0,sortable:!0,comparator:(l,f,h,x,P)=>0},this.columnDefs=[],this.sortedTableRows=[],this.isSelectAllCheckboxChecked=!1,this.isExternalFilterPresent=()=>!0}ngOnInit(){this.isHandheld$=this.responsiveService.isHandheld$(),this.responsiveService.getBreakpointObs$().pipe((0,N.R)(this.unsubscribe$)).subscribe(t=>{[r.IM0.Desktop].includes(t)&&(this.isDesktop=!0)}),this.usCapitalGainsEstimatesService.getHideFundEstimateFlag$().pipe((0,N.R)(this.unsubscribe$)).subscribe(t=>{this.hideNoEstimateFunds=t,this.cdr.detectChanges()})}ngOnChanges(t){t.gridListing?.currentValue&&(this.sortedTableRows=t.gridListing.currentValue,this.hideNoEstimateFunds&&(this.sortedTableRows=this.usCapitalGainsEstimatesService.getFundEstimates(this.sortedTableRows)),this.columnDefs=this.getColumnDefs(),this.cdr.detectChanges(),this.estimateGrid?.api.forEachNode(n=>n.setSelected(n.data.isSelected))),t.totalSelectedRows?.currentValue&&(this.totalTableRowsChecked=t.totalSelectedRows.currentValue),t.gridRowsCount?.currentValue&&(this.totalTableRowsCount=t.gridRowsCount?.currentValue),this.isSelectAllCheckboxChecked=!!this.sortedTableRows.every(n=>n.isSelected),this.estimateGrid?.api.refreshHeader()}getColumnDefs(){return[{colId:p.Gc.FUND_SELECT,headerComponent:"fundSelectAllHeaderRendererComponent",headerComponentParams:{parentComponent:this},cellRenderer:"fundSelectCellRendererComponent",cellRendererParams:{parentComponent:this},sortable:!1,width:30},{colId:p.Gc.FUND_NAME,headerName:this.translateService.instant("products.capgains-table-heading-fund-name"),headerComponentFramework:r.b_v,valueGetter:t=>t.data.fundName,cellRenderer:"fundNameCellRendererComponent",wrapText:!0,minWidth:250,flex:1},{colId:p.Gc.TICKER,headerName:this.translateService.instant("products.capgains-table-heading-ticker"),headerComponentFramework:r.b_v,valueGetter:t=>t.data.ticker,width:80,wrapText:!0},{colId:p.Gc.SHARE_CLASS,headerName:this.translateService.instant("products.capgains-table-heading-share-class"),headerComponentFramework:r.b_v,valueGetter:t=>t.data.shareClassName,width:120,wrapText:!0},{colId:p.Gc.LONG_TERM_CAP_GAINS_PERCENT,headerName:this.translateService.instant("products.capgains-table-heading-long-term-cap-gains-perc"),headerComponentParams:{isAlignRight:!0},cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary","ag-cell-frk--break-word"],headerComponentFramework:r.b_v,valueGetter:t=>{const n=t.data;return n.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):n.longTermCapitalGainPercent},width:140},{colId:p.Gc.SHORT_TERM_CAP_GAINS_PERCENT,headerName:this.translateService.instant("products.capgains-table-heading-short-term-cap-gains-perc"),cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary","ag-cell-frk--break-word"],headerComponentFramework:r.b_v,valueGetter:t=>{const n=t.data;return n.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):n.shortTermCapitalGainPercent},headerComponentParams:{isAlignRight:!0},width:140}
1,{colId:p.Gc.TOTAL_PERCENT,headerName:this.translateService.instant("products.capgains-table-heading-total-percent"),headerComponentParams:{isAlignRight:!0},headerComponentFramework:r.b_v,cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary","ag-cell-frk--break-word"],valueGetter:t=>{const n=t.data;return n.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):n.totalGainNav},width:120},{colId:p.Gc.LONG_TERM_CAP_GAINS,headerName:this.translateService.instant("products.capgains-excel-headers-long-term-gain")+"<br/>"+this.translateService.instant("products.capgains-excel-headers-cap-gains"),headerComponentParams:{isAlignRight:!0},headerComponentFramework:r.b_v,valueGetter:t=>{const n=t.data;return n.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):n.longTermCapitalGainAmount},width:165,cellClass:["ag-cell-frk--monetary","ag-cell-frk--break-word"]},{colId:p.Gc.SHORT_TERM_CAP_GAINS,headerName:this.translateService.instant("products.capgains-excel-headers-short-term-gain")+"<br/>"+this.translateService.instant("products.capgains-excel-headers-cap-gains"),headerComponentParams:{isAlignRight:!0},headerComponentFramework:r.b_v,valueGetter:t=>{const n=t.data;return n.actualsAlert?this.translateService.instant("products.capgains-actualsposted"):n.shortTermCapitalGainAmount},width:165,cellClass:["ag-cell-frk--monetary","ag-cell-frk--break-word"]},{colId:p.Gc.NAV_AS_OF,headerName:this.translateService.instant("products.NAV_VALUE")+"<br/>"+this.translateService.instant("products.capgains-table-heading-nav-as-of")+" "+this.asOfDate,headerComponentFramework:r.b_v,headerComponentParams:{isAlignRight:!0},cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary"],valueGetter:t=>t.data.navValue,wrapText:!0,width:140},{colId:p.Gc.RECORD_DATE,headerName:this.translateService.instant("pds.INCM_DIST_RECORD_DATE"),headerComponentFramework:r.b_v,headerComponentParams:{isAlignRight:!0},cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary"],valueGetter:t=>t.data.capitalGainRecordDate,width:110},{colId:p.Gc.EX_DATE,headerName:this.translateService.instant("products.capgains-table-heading-ex-date"),headerComponentParams:{isAlignRight:!0},cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary"],headerComponentFramework:r.b_v,valueGetter:t=>t.data.capitalGainExDividendDate,width:110,wrapText:!0},{colId:p.Gc.EX_DATE,headerName:this.translateService.instant("products.capgains-table-heading-payable-date"),headerComponentParams:{isAlignRight:!0},cellClass:["ag-cell-frk--highlighted-secondary","ag-cell-frk--monetary"],headerComponentFramework:r.b_v,valueGetter:t=>t.data.capitalGainPayableDate,width:110,wrapText:!0}]}onRowSelected(t){this.updateNodeSelection.next(t)}onSortChanged(t){let a,o;t.columnApi.getAllDisplayedColumns().find(l=>{l.getSort()&&(a=l.getColId(),o=l.getSort())}),this.sortColumn.next({columnId:a,sortType:o})}doesExternalFilterPass(t){return!t.gridOptionsWrapper.getContext().filteredRows||t.gridOptionsWrapper.getContext().filteredRows.indexOf(t.data)>-1}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(S.s),e.Y36(e.sBO),e.Y36(r.kzD),e.Y36(g.l))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-estimates-listing"]],viewQuery:function(t,n){if(1&t&&e.Gf(nt,5,j.N8),2&t){let a;e.iGM(a=e.CRH())&&(n.estimateGrid=a.first)}},inputs:{gridListing:"gridListing",totalSelectedRows:"totalSelectedRows",gridRowsCount:"gridRowsCount",asOfDate:"asOfDate"},outputs:{updateNodeSelection:"updateNodeSelection",sortColumn:"sortColumn"},features:[e.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["gridListingEmpty",""],["style","width: 100%; height: 100%","class","ag-theme-frk","domLayout","autoHeight","overlayNoRowsTemplate","<p></p>","headerHeight","80","rowSelection","multiple",3,"rowData","columnDefs","defaultColDef","frameworkComponents","suppressPaginationPanel","suppressDragLeaveHidesColumns","isExternalFilterPresent","doesExternalFilterPass","context","suppressRowHoverHighlight","suppressCellSelection","suppressRowTransform","ensureDomOrder","suppressColumnVirtualisation","enableCellTextSelection","suppressRowClickSelection","sortChanged",4,"ngIf"],[4,"ngIf"],["domLayout","autoHeight","overlayNoRowsTemplate","<p></p>","headerHeight","80","rowSelection","multiple",1,"ag-theme-frk",2,"width","100%","height","100%",3,"rowData","columnDefs","defaultColDef","frameworkComponents","suppressPaginationPanel","suppressDragLeaveHidesColumns","isExternalFilterPresent","doesExternalFilterPass","context","suppressRowHoverHighlight","suppressCellSelection","suppressRowTransform","ensureDomOrder","suppressColumnVirtualisation","enableCellTextSelection","suppressRowClickSelection","sortChanged"],["estimateGrid",""],[3,"cardData","cardSelected",4,"ngFor","ngForOf"],[3,"cardData","cardSelected"],[1,"bold","large"]],template:function(t,n){if(1&t&&(e.YNc(0,rt,5,6,"div",0),e.YNc(1,lt,3,3,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",n.sortedTableRows.length)("ngIfElse",a)}},directives:[v.O5,j.N8,v.sg,it],pipes:[v.Ov,Z.X],styles:[".ag-header-row-column{background:white}"]}),i})();
1function ct(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ft-us-capital-gains-estimates-listing",24),e.NdJ("updateNodeSelection",function(a){return e.CHM(t),e.oxw().onRowSelected(a)})("sortColumn",function(a){return e.CHM(t),e.oxw().onSortChanged(a)}),e.ALo(1,"async"),e.ALo(2,"translate"),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("gridListing",e.lcZ(1,4,t.currentPage$))("totalSelectedRows",t.totalSelectedRows)("gridRowsCount",t.recordDetails.filtered)("asOfDate",e.lcZ(2,6,"products.cap-gains-estimates-date"))}}function pt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",25),e.ALo(1,"async"),e.ALo(2,"async"),e.TgZ(3,"eds-pagination",26),e.NdJ("pageChanged",function(a){return e.CHM(t),e.oxw().onPageChanged(a)}),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"eds-dropdown",27),e.NdJ("dropdownChange",function(a){return e.CHM(t),e.oxw().onPageSizeChanged(a)}),e.ALo(11,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("flexDirection",e.lcZ(1,13,t.isHandheld$)?"column":"row")("alignItems",e.lcZ(2,15,t.isHandheld$)?"":"center"),e.xp6(3),e.Q6J("alignSelf",e.lcZ(4,17,t.isHandheld$)?"flex-end":"")("edsSpacing",e.lcZ(5,19,t.isHandheld$)?"xl":"")("pages",t.totalPages)("activePage",e.lcZ(6,21,t.currentPageNumber$))("prevPageText",e.lcZ(7,23,"products.previous"))("nextPageText",e.lcZ(8,25,"products.next"))("ariaLabelGoToPage",e.lcZ(9,27,"products?.ariaLabelGoToPage")),e.xp6(7),e.Q6J("dropdownId","ItemsPerPageBottomDD")("items",t.pageSizeItems)("label",e.lcZ(11,29,"products.items-per-page"))("preselectedValue",t.selectedPageSizeItem)}}function ut(i,s){1&i&&(e.TgZ(0,"p",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.capgains-loading-failed-message")," "))}function gt(i,s){if(1&i&&e.YNc(0,ut,3,3,"p",28),2&i){const t=e.oxw(),n=e.MAs(43);e.Q6J("ngIf",!1===t.isLoaded)("ngIfElse",n)}}function mt(i,s){1&i&&(e.TgZ(0,"p",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.capgains-loading-message")," "))}const Se=C.Y.getLogger("UsCapitalGainsEstimatesComponent");let ft=(()=>{class i extends c.p{constructor(t,n,a,o,l){super(),this.usCapitalGainsEstimatesService=t,this.responsiveService=n,this.scrollService=a,this.cdr=o,this.translateService=l,this.dataSubscription=[],this.pageSizeItems=[],this.totalSelectedRows=0,this.hideFundsSwitchState=T.rV.NO,this.proximalTopColumnNumbers={},this.pageSizeItems=["25","50","75","100"].map(f=>({value:f,label:f})),this.downloadStickyButton={hasAction:!0,buttonLabel:this.translateService.instant("products.capgains-excel-sticky-download-button"),iconType:"download"}}ngOnInit(){this.isHandheld$=this.responsiveService.isHandheld$(),this.dataSubscription.push(this.usCapitalGainsEstimatesService.getTotalSelectedRows$().subscribe(t=>{this.totalSelectedRows=m()(t),this.totalSelectedRowsAsText=`${this.totalSelectedRows} ${this.translateService.instant("products.capgains-excel-sticky-item-selected")}`,this.cdr.detectChanges()}))}populate(t,n,a,o){this.initialize(n,a,o),this.breadcrumbItems=a.getModels()?.breadcrumbs?.map(l=>({content:l.title,href:l.url})),this.asOfDate=this.usCapitalGainsEstimatesService.getLastBusinessDay(L()().year(),10),this.cdr.detectChanges(),this.brConfig&&(this.dataSubscription.push(this.usCapitalGainsEstimatesService.getCapGainsEstimatesState$().subscribe(l=>{this.usCapitalGainsEstimatesService.setHideFundEstimateFlag$(this.hideFundsSwitchState===T.rV.YES),Se.debug("Cap gains estimates state: ",l),this.isLoaded=l.isLoaded,this.isLoaded&&(l.action===p.Kf.INITIAL_LOAD&&(this.filters=m()(l.filters)),this.recordDetails=m()(l.recordDetails),this.selectedPageSizeItem=this.pageSizeItems.find(f=>Number(f.value)===this.recordDetails.pageSize)),this.records=this.usCapitalGainsEstimatesService.getCurrentGridRecords(),this.cdr.detectChanges()},l=>{Se.debug("Error in fetching state: ",l),this.isLoaded=!1,this.cdr.detectChanges()}),this.usCapitalGainsEstimatesService.getNumberOfPages$().subscribe(l=>{this.totalPages=l,this.paginationComponent?.updatePagination(l)}),this.usCapitalGainsEstimatesService.getFavoritesToggleState$().subscribe(l=>
1{this.showFavoritesOnlySwitch=l.showFavoritesOnlySwitch,this.favoritesOnlySwitchState=l.favoritesOnlySwitchState,this.proximalTopColumnNumbers=this.showFavoritesOnlySwitch?{s:"4",m:"8",l:"7"}:{s:"4",m:"8",l:"10"},this.cdr.detectChanges()})),this.currentPage$=this.usCapitalGainsEstimatesService.getCurrentPage$(),this.currentPageNumber$=this.usCapitalGainsEstimatesService.getCurrentPageNumber$(),this.usCapitalGainsEstimatesService.handleFavoriteToggle())}onPageChanged(t){"load"!==t.action&&(this.usCapitalGainsEstimatesService.goToPage(t.page),this.scrollService.scrollToAnchor("capGainsScrollPoint"))}onPageSizeChanged(t){this.selectedPageSizeItem=t,this.usCapitalGainsEstimatesService.setPageSize(Number(t.value)),this.scrollService.scrollToAnchor("capGainsScrollPoint")}onFilterApplied(t){this.selectedFilters=t,this.usCapitalGainsEstimatesService.filterListing(t,this.favoritesOnlySwitchState===T.wl.ON,this.hideFundsSwitchState===T.rV.YES)}onRowSelected(t){this.usCapitalGainsEstimatesService.updateRowSelection(t)}onDownloadAction(t){this.usCapitalGainsEstimatesService.handleDownloadAction(t)}onFavoritesOnlyToggle(t){this.favoritesOnlySwitchState=t,this.usCapitalGainsEstimatesService.filterListing(this.selectedFilters,t===T.wl.ON,this.hideFundsSwitchState===T.rV.YES)}onHideFundsToggle(t){this.hideFundsSwitchState=t,this.usCapitalGainsEstimatesService.filterListing(this.selectedFilters,this.favoritesOnlySwitchState===T.wl.ON,t===T.rV.YES)}onSortChanged(t){this.usCapitalGainsEstimatesService.handleGridSort(t)}ngOnDestroy(){this.dataSubscription?.forEach(t=>t.unsubscribe())}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(g.l),e.Y36(r.kzD),e.Y36(_.oL),e.Y36(e.sBO),e.Y36(S.s))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-estimates"]],viewQuery:function(t,n){if(1&t&&e.Gf(r.QtL,5),2&t){let a;e.iGM(a=e.CRH())&&(n.paginationComponent=a.first)}},features:[e.qOj],decls:48,vars:48,consts:[["theme","dark",3,"edsSpacing"],["edsGrid","","edsPadding","","edsPaddingLeft","xs"],["edsRow",""],["edsCol",""],["theme","dark",3,"items"],[3,"filters","recordDetails","hideFundsSwitchState","showFavoritesOnlySwitch","favoritesOnlySwitchState","filterListing","hideFundsToggle","favoritesOnlyToggle"],["edsGrid",""],["id","capGainsScrollPoint","edsPadding","",3,"edsPaddingBottom"],["edsRow","","edsSpacing","md"],["edsCol","",3,"columnNumbers"],["edsSpacing","lg","placement","CapGainsPageProximalTop"],["edsCol","","edsFlexbox","","justifyContent","space-between","alignItems","baseline",3,"flexDirection"],["theme","basic","size","h5","edsPadding","",3,"level","edsPaddingLeft","edsPaddingBottom"],["edsFlexbox","","justifyContent","flex-end",3,"flexDirection"],["edsPadding","",3,"edsPaddingLeft","edsPaddingRight"],["edsButton","secondary","size","normal",3,"hasIcon","noMargin","click"],[1,"ft__btn__txt"],["type","download","size","small"],[3,"gridListing","totalSelectedRows","gridRowsCount","asOfDate","updateNodeSelection","sortColumn",4,"ngIf","ngIfElse"],["edsFlexbox","","justifyContent","space-between","edsPadding","","edsPaddingTop","lg","edsPaddingBottom","xxl",3,"flexDirection","alignItems",4,"ngIf"],["noCapGainsData",""],["capGainsDataLoading",""],["edsSpacing","lg","placement","CapGainsPageProximalBottom"],["variation","2",3,"itemCount","isHide","primaryAction","stickyFooterName","btnSubscribePrimary"],[3,"gridListing","totalSelectedRows","gridRowsCount","asOfDate","updateNodeSelection","sortColumn"],["edsFlexbox","","justifyContent","space-between","edsPadding","","edsPaddingTop","lg","edsPaddingBottom","xxl",3,"flexDirection","alignItems"],["edsFlexItem","",3,"alignSelf","edsSpacing","pages","activePage","prevPageText","nextPageText","ariaLabelGoToPage","pageChanged"],["ariaLabel","Dropdown","name","BottomDropDown","edsPadding","","edsPaddingLeft","none",3,"dropdownId","items","label","preselectedValue","dropdownChange"],["class","bold large",4,"ngIf","ngIfElse"],[1,"bold","large"]],template:function(t,n){if(1&t&&(e.TgZ(0,"div"),e.TgZ(1,"eds-panel",0),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e._UZ(5,"eds-breadcrumbs",4),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ft-us-capital-gains-estimates-filters",5),e.NdJ("filterListing",function(o){return n.onFilterApplied(o)})("hideFundsToggle",function(o){return n.onHideFundsToggle(o)})("favoritesOnlyToggle",function(o){return n.onFavoritesOnlyToggle(o)}),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"div",7),e.ALo(9,"async"),e.TgZ(10,"div",8),e.TgZ(11,"div",9),e._UZ(12,"eds-proximal",10),e.qZA(),e.qZA(),e.TgZ(13,"div",8),e.TgZ(14,"div",11),e.ALo(15,"async"),e.TgZ(16,"eds-title",12),e.ALo(17,"async"),e.ALo(18,"async"),e._uU(19),e.ALo(20,"translate"),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"div",13),e.ALo(23,"async"),e.TgZ(24,"div",14),e.ALo(25,"async"),e.ALo(26,"async"),e.TgZ(27,"button",15),e.NdJ("click",function(){return n.onDownloadAction()}),e.TgZ(28,"span",16),e._uU(29),e.ALo(30,"translate"),e.qZA(),e._UZ(31,"eds-icon",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",2),e.TgZ(33,"div",3),e.YNc(34,ct,3,8,"ft-us-capital-gains-estimates-listing",18),e.qZA(),e.qZA(),e.TgZ(35,"div",2),e.TgZ(36,"div",3),e.YNc(37,pt,12,31,"div",19),e.qZA(),e.qZA(),e.TgZ(38,"div",2),e.TgZ(39,"div",3),e.YNc(40,gt,1,2,"ng-template",null,20,e.W1O),e.YNc(42,mt,3,3,"ng-template",null,21,e.W1O),e.qZA(),e.qZA(),e.TgZ(44,"div",2),e.TgZ(45,"div",3),e._UZ(46,"eds-proximal",22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"eds-sticky-footer",23),e.NdJ("btnSubscribePrimary",function(){return n.onDownloadAction(!0)}),e.qZA(),e.qZA()),2&t){const a=e.MAs(41);e.xp6(1),e.Q6J("edsSpacing","none"),e.xp6(4),e.Q6J("items",n.breadcrumbItems),e.xp6(1),e.Q6J("filters",n.filters)("recordDetail
1s",n.recordDetails)("hideFundsSwitchState",n.hideFundsSwitchState)("showFavoritesOnlySwitch",n.showFavoritesOnlySwitch)("favoritesOnlySwitchState",n.favoritesOnlySwitchState),e.xp6(2),e.Q6J("edsPaddingBottom",e.lcZ(9,28,n.isHandheld$)?"md":"none"),e.xp6(3),e.Q6J("columnNumbers",n.proximalTopColumnNumbers),e.xp6(3),e.Q6J("flexDirection",e.lcZ(15,30,n.isHandheld$)?"column":"row"),e.xp6(2),e.Q6J("level",5)("edsPaddingLeft",e.lcZ(17,32,n.isHandheld$)?"sm":"none")("edsPaddingBottom",e.lcZ(18,34,n.isHandheld$)?"sm":"none"),e.xp6(3),e.AsE(" ",e.lcZ(20,36,"products.cap-gains-estimates-title")," ",e.lcZ(21,38,"products.cap-gains-estimates-date")," "),e.xp6(3),e.Q6J("flexDirection",e.lcZ(23,40,n.isHandheld$)?"column":"row"),e.xp6(2),e.Q6J("edsPaddingLeft",e.lcZ(25,42,n.isHandheld$)?"sm":"none")("edsPaddingRight",e.lcZ(26,44,n.isHandheld$)?"sm":"none"),e.xp6(3),e.Q6J("hasIcon",!0)("noMargin","true"),e.xp6(2),e.Oqu(e.lcZ(30,46,"products.capgains-excel-download-all-button")),e.xp6(5),e.Q6J("ngIf",n.isLoaded)("ngIfElse",a),e.xp6(3),e.Q6J("ngIf",n.totalPages),e.xp6(10),e.Q6J("itemCount",n.totalSelectedRowsAsText)("isHide",0===n.totalSelectedRows)("primaryAction",n.downloadStickyButton)("stickyFooterName","capital_gain_sticky_footer")}},directives:[r.yXm,r.OPD,r.ljP,r.cph,r.vZ,r.iKq,r.nNV,K,r.JEP,r.Wxy,r.r3N,r.Hq3,r.oJW,v.O5,r.GsX,dt,r.QtL,r.R65,r.JOL],pipes:[v.Ov,Z.X],styles:[""]}),i})();var ht=d(69490),_t=d.n(ht),xt=d(88214),be=d.n(xt),ee=d(44022),vt=d(41896),Tt=d(27053),he=d(59278),Ct=d(93631);const St=C.Y.getLogger("USCapitalGainsService"),bt=["productType","taxYear","investmentGroup","shareClassName"],At=[T.WX.MF,T.WX.ETF,T.WX.CEF,T.WX.TIF,T.WX.VIP,T.WX.CIT];let Ae=(()=>{class i{constructor(t,n,a,o){this.capgainDistributionService=t,this.siteConfigService=n,this.translateService=a,this.debugService=o,this.state={capGainListing:[],gridListing:[],filters:[]},this.isFilterProcessing=!1,this.unsubscribe$=new w.xQ,this.pageSize=100,this.pagedRecords=new r.B54(this.pageSize),this.capGainsState=new w.xQ}populate(){this.capgainDistributionService.register(_t()).subscribe(t=>{St.debug(t),this.state.capGainListing=this.formatCapGainDistributionsData(t.filter(n=>n.fundStatus!==p.N0.inactive)),this.state.gridListing=this.state.capGainListing,this.state.filters=this.extractFiltersData(this.state.capGainListing,bt),this.pagedRecords.records=this.state.capGainListing,this.debugService.getExpandAllComponents$().pipe((0,N.R)(this.unsubscribe$)).subscribe(n=>{n&&(this.pageSize=this.pagedRecords.expandAll())}),this.capGainsState.next(this.state)})}formatCapGainDistributionsData(t){const n=[];return t.sort((o,l)=>{const f=o.fundName.localeCompare(l.fundName);return 0===f?o.shareClassName.localeCompare(l.shareClassName):f}
1).forEach(o=>{if(void 0!==n.find(f=>f.fundId===o.fundId&&f.shareClassCode===o.shareClassCode))n.find(f=>f.fundId===o.fundId&&f.shareClassCode===o.shareClassCode).tableDetails.push({capitalGainRecordDate:o.capitalGainRecordDate,capitalGainExDividendDate:o.capitalGainExDividendDate,capitalGainPayableDate:o.capitalGainPayableDate,capitalGainReInvestmentAmount:o.capitalGainReInvestmentAmount,longTermCapitalGainAmount:o.longTermCapitalGainAmount,shortTermCapitalGainAmount:o.shortTermCapitalGainAmount,totalDistributionAmountMonthly:o.totalDistributionAmountMonthly,estimateFlag:"true"===o.estimateFlag});else{const f=this.siteConfigService.getDefaultIdentifierKey(o.productTaxonomy),x={capitalGainRecordDate:o.capitalGainRecordDate,capitalGainExDividendDate:o.capitalGainExDividendDate,capitalGainPayableDate:o.capitalGainPayableDate,capitalGainReInvestmentAmount:o.capitalGainReInvestmentAmount,longTermCapitalGainAmount:o.longTermCapitalGainAmount,shortTermCapitalGainAmount:o.shortTermCapitalGainAmount,totalDistributionAmountMonthly:o.totalDistributionAmountMonthly,estimateFlag:"true"===o.estimateFlag};n.push({fundId:o.fundId,fundName:o.fundName,shareClassCode:o.shareClassCode,shareClassName:o.shareClassName,capGainFreq:o.capGainFrequency,productType:o.productType,taxYear:o.taxYear,cusip:o.cusip,ticker:o.ticker,tableDetails:[x],investmentGroup:o.investmentGroup,fundLink:this.siteConfigService.getFundLink(o.fundId,o.shareClassCode,o.fundName,f?o[f]:null),fundStatus:o.fundStatus,hasNoDistributions:!Object.keys(x).some(P=>"estimateFlag"!==P&&(0,vt.Uh)(x,P)),taId:o.taId})}}),n}extractFiltersData(t,n){const a=[];return n.forEach(o=>{const l=be()(t.map(h=>h[o]).sort((h,x)=>h.localeCompare(x)));"shareClassName"===o&&[ee.Ie.toLowerCase(),ee.NA.toLowerCase()].forEach(h=>{const P=l.map(z=>z.toLowerCase()).indexOf(h);-1!==P&&l.splice(P,1)});let f=[];if(l.map(h=>{f.push({label:"productType"===o?this.translateService.instant(`products.capgains-filter-producttype-${h.toLowerCase().split(" ").join("-")}`):h,value:h,checked:!1})}),"productType"===o){const h=[];At.forEach(x=>{const P=f.find(z=>z.value===x);P&&h.push(P)}),h.length!==f.length&&f.forEach(x=>{h.find(P=>P.value===x.value)||h.push(x)}),f=h}a.push({filterLabel:o.toLocaleLowerCase(),filterName:o,filterOptions:f})}),a}filterListing(t){this.isFilterProcessing=!0;let n=m()(this.state.capGainListing);this.state.filters.forEach(a=>{const o=a.filterOptions.filter(l=>!0===l.checked).map(l=>l.value);o.length&&(n=n.filter(l=>o.includes(l[a.filterName])))}),t?.trim()&&(n=n.filter(a=>a.fundName.toLowerCase().includes(t.toLowerCase())||a.fundId===t||a.cusip.toLowerCase()===t.toLowerCase()||a.ticker.toLowerCase()===t.toLowerCase()||a.taId===t)),this.state.gridListing=n,this.pagedRecords.records=this.state.gridListing,this.state.hasNoShareClass=this.hasNoShareClass(this.state.gridListing),this.capGainsState.next(this.state),this.isFilterProcessing=!1}hasNoShareClass(t){return!t.some(n=>n.shareClassCode&&n.shareClassCode!==ee.Ie&&n.shareClassCode!==ee.NA)}getNumberOfPages$(){return this.pagedRecords.numberOfPages$}getPageNumber$(){return this.pagedRecords.pageNumber$}getCurrentPage$(){return this.pagedRecords.currentPage$}goToPage(t){this.pagedRecords&&(this.pagedRecords.pageNumber=t)}getPageSize(){return this.pagedRecords.pageSize}setPageSize(t){this.pagedRecords.pageSize=t}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(Tt.O),e.LFG(he.r5),e.LFG(S.s),e.LFG(Ct.r))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var ie=d(55314);const yt=["filterSearch"],Zt=["filterDropdowns"];function It(i,s){1&i&&(e.TgZ(0,"div",18),e._UZ(1,"ngx-spinner",19),e.qZA()),2&i&&(e.xp6(1),e.Q6J("fullScreen",!1))}function kt(i,s){if(1&i&&(e.TgZ(0,"p",20),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"b"),e._uU(4),e.qZA(),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"b"),e._uU(8),e.qZA(),e._uU(9),e.ALo(10,"translate"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,5,"products.ppss-listing-shows")," "),e.xp6(3),e.Oqu(t.filteredRecords),e.xp6(1),e.hij(" ",e.lcZ(6,7,"products.ppss-listing-of")," "),e.xp6(3),e.Oqu(t.totalRecords),e.xp6(1),e.hij(" ",e.lcZ(10,9,"products.ppss-listing-items")," ")}}
1function Lt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",21),e.TgZ(1,"span",22),e._uU(2,"|"),e.qZA(),e.TgZ(3,"eds-link-item",23),e.NdJ("click",function(a){return e.CHM(t),e.oxw(2).resetFilters(a)}),e.ALo(4,"translate"),e.qZA(),e.qZA()}2&i&&(e.xp6(3),e.Q6J("title",e.lcZ(4,2,"products.ppss-filter-reset"))("hasIcon",!0))}const _e=function(){return{s:"4",m:"3",l:"auto"}};function wt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-dropdown",24,13),e.NdJ("dropdownChange",function(){return e.CHM(t),e.oxw(2).filterListing()}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.qZA()}if(2&i){const t=s.$implicit;e.Q6J("columnNumbers",e.DdM(13,_e))("dropdownId",t.filterName)("multi",!0)("items",t.filterOptions)("label",e.lcZ(2,7,"products.capgains-filter-"+t.filterLabel))("titleText",e.lcZ(3,9,"products.ppss-filter-select"))("selectedText",e.lcZ(4,11,"products.ppss-filter-selected"))}}const Nt=function(){return{s:"4",m:"3",l:"7"}};function Ft(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-panel",1),e.ALo(1,"async"),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.ALo(4,"async"),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e.ALo(8,"async"),e.ALo(9,"async"),e.TgZ(10,"eds-title",7),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"div",8),e.ALo(14,"async"),e.YNc(15,It,2,1,"div",9),e.YNc(16,kt,11,11,"p",10),e.YNc(17,Lt,5,4,"div",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",5),e.TgZ(19,"eds-dropdown",12,13),e.NdJ("dropdownChange",function(){return e.CHM(t),e.oxw().filterListing()}),e.ALo(21,"translate"),e.ALo(22,"translate"),e.ALo(23,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",14),e.YNc(25,wt,5,14,"eds-dropdown",15),e.TgZ(26,"eds-search",16,17),e.NdJ("searchTerm",function(a){return e.CHM(t),e.oxw().searchByKeyword(a)}),e.ALo(28,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("edsSpacing",e.lcZ(1,22,t.isHandheld$)?"lg":"md"),e.xp6(3),e.Q6J("edsPaddingTop",e.lcZ(4,24,t.isHandheld$)?"md":"xs"),e.xp6(3),e.Q6J("columnNumbers",e.DdM(42,Nt)),e.xp6(1),e.Q6J("flexDirection",e.lcZ(8,26,t.isHandheld$)?"column":"row")("alignItems",e.lcZ(9,28,t.isHandheld$)?"flex-start":"center"),e.xp6(3),e.Q6J("level",1)("isLight",!0),e.xp6(1),e.Oqu(e.lcZ(12,30,"products.capgains-page-heading")),e.xp6(2),e.Q6J("edsSpacing",e.lcZ(14,32,t.isHandheld$)?"sm":"none"),e.xp6(2),e.Q6J("ngIf",!t.isLoaded),e.xp6(1),e.Q6J("ngIf",t.isLoaded),e.xp6(1),e.Q6J("ngIf",t.isLoaded&&(t.selectedFilters.length||t.isSearchActive)),e.xp6(1),e.Q6J("columnNumbers",e.DdM(43,_e)),e.xp6(1),e.Q6J("dropdownId",t.productTypeFilter.filterName)("multi",!0)("items",t.productTypeFilter.filterOptions)("label",e.lcZ(21,34,"products.capgains-filter-"+t.productTypeFilter.filterLabel))("titleText",e.lcZ(22,36,"products.ppss-filter-select"))("selectedText",e.lcZ(23,38,"products.ppss-filter-selected")),e.xp6(6),e.Q6J("ngForOf",t.otherFilterTypes),e.xp6(1),e.Q6J("columnNumbers",e.DdM(44,_e))("placeholder",e.lcZ(28,40,"products.ppss-filter-search-placeholder"))}}C.Y.getLogger("USCapitalGainsFiltersComponent");let Dt=(()=>{class i{constructor(t,n,a,o){this.responsiveService=t,this.translateService=n,this.spinner=a,this.cdr=o,this.isLoaded=!1,this.selectedFilterType=new e.vpe,this.selectedFilters=[],this.isSearchActive=!1,this.debouncer$=new w.xQ,this.componentDestroyed$=new w.xQ}ngOnInit(){this.debouncer$.pipe((0,N.R)(this.componentDestroyed$),(0,E.b)(500)).subscribe(t=>this.selectedFilterType.next(t)),this.isHandheld$=this.responsiveService.isHandheld$(),this.totalRecords=this.recordsCount?.total,this.filteredRecords=this.recordsCount?.filtered,this.spinner.show("capitalGainsLoadingSpinner")}ngOnChanges(){if(this.totalRecords=this.recordsCount?.total,this.filteredRecords=this.recordsCount?.filtered,this.productTypeFilter=this.filters?.find(t=>"productType"===t.filterName),this.otherFilterTypes=this.filters?.filter(t=>"productType"!==t.filterName),this.hasNoShareClass){const t=this.otherFilterTypes.findIndex(n=>"shareClassName"===n.filterName);this.otherFilterTypes.splice(t,1)}setTimeout(()=>{this.isLoaded=!0,this.cdr.detectChanges()},1e3)}fetchSelectedFilters(){this.selectedFilters=[],this.filters?.forEach(t=>{const n=[];t.filterOptions.forEach(a=>{a.checked&&n.push({label:this.translateService.instant(`products.capgains-filter-${t.filterLabel}`),value:a.value})}
1),n.length&&this.selectedFilters.push({filterType:t.filterName,filterOptions:n})})}filterListing(){this.isLoaded=!1,this.fetchSelectedFilters(),this.selectedFilterType.next(this.searchTerm)}searchByKeyword(t){this.isLoaded=!1,this.isSearchActive=""!==t.trim(),this.searchTerm=t,this.debouncer$.next(t)}removeFilter(t,n){this.filters.find(o=>{o.filterName===t&&o.filterOptions.find(l=>{l.value===n.value&&(l.checked=!1)})}),this.filterDropdowns.find(o=>o.id===t).getSelected({label:n.label,value:n.value,checked:!1}),this.selectedFilterType.next(this.searchTerm)}resetFilters(t){this.isLoaded=!1,t.preventDefault(),this.filters.forEach(n=>{n.filterOptions.forEach(a=>a.checked=!1)}),this.filterDropdowns.forEach(n=>n.reset()),this.selectedFilters=[],this.filterSearch.value="",this.filterSearch.hasTyped=!1,this.isSearchActive=!1,this.searchTerm="",this.selectedFilterType.next(this.searchTerm)}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(r.kzD),e.Y36(S.s),e.Y36(ie.t2),e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-filters"]],viewQuery:function(t,n){if(1&t&&(e.Gf(yt,5),e.Gf(Zt,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.filterSearch=a.first),e.iGM(a=e.CRH())&&(n.filterDropdowns=a)}},inputs:{filters:"filters",hasNoShareClass:"hasNoShareClass",recordsCount:"recordsCount",isLoaded:"isLoaded"},outputs:{selectedFilterType:"selectedFilterType"},features:[e.TTD],decls:1,vars:1,consts:[["class","us-capital-gains-filters","theme","dark",3,"edsSpacing",4,"ngIf"],["theme","dark",1,"us-capital-gains-filters",3,"edsSpacing"],["edsGrid","","edsPadding","","edsPaddingBottom","sm"],["edsPadding","",1,"container","container--wide",3,"edsPaddingTop"],["edsRow",""],["edsCol","",3,"columnNumbers"],["edsFlexbox","","edsPadding","","edsPaddingTop","sm",3,"flexDirection","alignItems"],["size","h2","edsSpacing","none","edsPadding","","edsPaddingRight","sm",3,"level","isLight"],["edsFlexbox","","alignItems","center",3,"edsSpacing"],["class","us-capital-gains-filters__loader",4,"ngIf"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm",4,"ngIf"],["edsFlexbox","","alignItems","center",4,"ngIf"],["edsSpacing","none","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","","flexGrow","1","justifyContent","flex-end",3,"dropdownId","multi","items","label","titleText","selectedText","dropdownChange"],["filterDropdowns",""],["edsRow","","edsPadding","","edsPaddingTop","md"],["edsCol","","edsSpacing","md","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","","flexGrow","1",3,"columnNumbers","dropdownId","multi","items","label","titleText","selectedText","dropdownChange",4,"ngFor","ngForOf"],["edsCol","","fieldId","search__field","edsSpacing","md","edsPadding","","edsPaddingLeft","none","flexGrow","1","edsPaddingBottom","md",3,"columnNumbers","placeholder","searchTerm"],["filterSearch",""],[1,"us-capital-gains-filters__loader"],["name","capitalGainsLoadingSpinner","bdColor","rgba(0,0,0,0)","size","small","color","#fff","type","line-scale-party",3,"fullScreen"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","alignItems","center"],["edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","justifyContent","flex-end","theme","dark","type","reset",1,"text-white",3,"title","hasIcon","click"],["edsCol","","edsSpacing","md","ariaLabel","Dropdown","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","","flexGrow","1",3,"columnNumbers","dropdownId","multi","items","label","titleText","selectedText","dropdownChange"]],template:function(t,n){1&t&&e.YNc(0,Ft,29,45,"eds-panel",0),2&t&&e.Q6J("ngIf",n.filters)},directives:[v.O5,r.yXm,r.OPD,r.ljP,r.cph,r.vZ,r.iKq,r.Wxy,r.r3N,r.JOL,r.R65,v.sg,r.gSk,ie.Ro,r.zj4],pipes:[v.Ov,Z.X],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .us-capital-gains-filters__loader[_ngcontent-%COMP%]{display:inline-flex;position:relative;width:1.5rem;height:1.5rem}"]}),i})();var Pt=d(71570);const Et=["scroll"];
1function Ut(i,s){if(1&i&&(e._UZ(0,"eds-link-item",21),e.ALo(1,"translate")),2&i){const t=e.oxw(2).$implicit;e.Q6J("title",e.lcZ(1,2,"products.capgains-fund-details"))("href",t.fundLink)}}function Rt(i,s){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"table",14),e.TgZ(2,"tbody",15),e.TgZ(3,"tr",16),e.TgZ(4,"td",17),e.TgZ(5,"div",18),e._UZ(6,"eds-icon",19),e._uU(7," \xa0 "),e.TgZ(8,"b"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._uU(11," \xa0\xa0\xa0\xa0 "),e.qZA(),e.YNc(12,Ut,2,4,"eds-link-item",20),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(9),e.hij(" ",e.lcZ(10,2,"products.capgains-no-distribution-data-message")," "),e.xp6(3),e.Q6J("ngIf","soft-launch"!==t.fundStatus)}}function Ot(i,s){if(1&i&&(e.TgZ(0,"th",24),e.TgZ(1,"span",2),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&i){const t=e.oxw(3).$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,"products.capgains-actions",t.fundId))}}function Gt(i,s){if(1&i&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.AsE(" ",t.longTermCapitalGainAmount," ",e.lcZ(2,2,"products.capgains-est")," ")}}const ge=function(i){return[i]};function qt(i,s){if(1&i&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(5);e.Q6J("ngClass",e.VKq(2,ge,t.longTermCapitalGainAmount?"text-align-right":"text-align-left")),e.xp6(1),e.hij(" ",t.longTermCapitalGainAmount?t.longTermCapitalGainAmount:n.placeholderHyphens," ")}}
1function Qt(i,s){if(1&i&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.AsE(" ",t.shortTermCapitalGainAmount," ",e.lcZ(2,2,"products.capgains-est")," ")}}function Jt(i,s){if(1&i&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(5);e.Q6J("ngClass",e.VKq(2,ge,t.shortTermCapitalGainAmount?"text-align-right":"text-align-left")),e.xp6(1),e.hij(" ",t.shortTermCapitalGainAmount?t.shortTermCapitalGainAmount:n.placeholderHyphens," ")}}function Mt(i,s){if(1&i&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.AsE(" ",t.totalDistributionAmountMonthly," ",e.lcZ(2,2,"products.capgains-est")," ")}}function $t(i,s){if(1&i&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(5);e.Q6J("ngClass",e.VKq(2,ge,t.totalDistributionAmountMonthly?"text-align-right":"text-align-left")),e.xp6(1),e.hij(" ",t.totalDistributionAmountMonthly?t.totalDistributionAmountMonthly:n.placeholderHyphens," ")}}function Yt(i,s){if(1&i&&(e.TgZ(0,"td",28),e._UZ(1,"eds-link-item",21),e.ALo(2,"translate"),e.qZA()),2&i){const t=e.oxw(4).$implicit;e.xp6(1),e.Q6J("title",e.lcZ(2,2,"products.capgains-fund-details"))("href",t.fundLink)}}function Bt(i,s){if(1&i&&(e.TgZ(0,"tr",16),e.TgZ(1,"td",28),e._uU(2),e.qZA(),e.TgZ(3,"td",28),e._uU(4),e.qZA(),e.TgZ(5,"td",28),e._uU(6),e.qZA(),e.TgZ(7,"td",29),e._uU(8),e.qZA(),e.YNc(9,Gt,3,4,"td",30),e.YNc(10,qt,2,4,"td",31),e.YNc(11,Qt,3,4,"td",30),e.YNc(12,Jt,2,4,"td",31),e.YNc(13,Mt,3,4,"td",30),e.YNc(14,$t,2,4,"td",31),e.YNc(15,Yt,3,4,"td",32),e.qZA()),2&i){const t=s.$implicit,n=e.oxw(3).$implicit,a=e.oxw(2);e.xp6(2),e.hij(" ",t.capitalGainRecordDate?t.capitalGainRecordDate:a.placeholderHyphens," "),e.xp6(2),e.hij(" ",t.capitalGainExDividendDate?t.capitalGainExDividendDate:a.placeholderHyphens," "),e.xp6(2),e.hij(" ",t.capitalGainPayableDate?t.capitalGainPayableDate:a.placeholderHyphens," "),e.xp6(1),e.Q6J("ngClass",e.VKq(12,ge,t.capitalGainReInvestmentAmount?"text-align-right":"text-align-left")),e.xp6(1),e.hij(" ",t.capitalGainReInvestmentAmount?t.capitalGainReInvestmentAmount:a.placeholderHyphens," "),e.xp6(1),e.Q6J("ngIf",t.estimateFlag),e.xp6(1),e.Q6J("ngIf",!t.estimateFlag),e.xp6(1),e.Q6J("ngIf",t.estimateFlag),e.xp6(1),e.Q6J("ngIf",!t.estimateFlag),e.xp6(1),e.Q6J("ngIf",t.estimateFlag),e.xp6(1),e.Q6J("ngIf",!t.estimateFlag),e.xp6(1),e.Q6J("ngIf","soft-launch"!==n.fundStatus)}}function Ht(i,s){if(1&i&&(e.TgZ(0,"table",14),e.TgZ(1,"thead",23),e.TgZ(2,"tr",16),e.TgZ(3,"th",24),e.TgZ(4,"span",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.TgZ(7,"th",24),e.TgZ(8,"span",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.qZA(),e.TgZ(11,"th",24),e.TgZ(12,"span",2),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.TgZ(15,"th",25),e.TgZ(16,"span",2),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.qZA(),e.TgZ(19,"th",25),e.TgZ(20,"span",2),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.qZA(),e.TgZ(23,"th",25),e.TgZ(24,"span",2),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.qZA(),e.TgZ(27,"th",25),e.TgZ(28,"span",2),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.qZA(),e.YNc(31,Ot,4,4,"th",26),e.qZA(),e.qZA(),e.TgZ(32,"tbody",15),e.YNc(33,Bt,16,14,"tr",27),e.qZA(),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(5),e.Oqu(e.xi3(6,9,"pds.INCM_DIST_RECORD_DATE",t.fundId)),e.xp6(4),e.Oqu(e.xi3(10,12,"pds.INCM_DIST_EX_DIV_DATE",t.fundId)),e.xp6(4),e.Oqu(e.xi3(14,15,"pds.INCM_DIST_PAYABLE_DATE",t.fundId)),e.xp6(4),e.Oqu(e.xi3(18,18,"pds.REINVESTMENT_AMT",t.fundId)),e.xp6(4),e.Oqu(e.xi3(22,21,"pds.CAPGAIN_AMT_LONG_TERM",t.fundId)),e.xp6(4),e.Oqu(e.xi3(26,24,"pds.CAPGAIN_AMT_SHRT_TERM",t.fundId)),e.xp6(4),e.Oqu(e.xi3(30,27,"pds.TOTAL_CAP_GAINS",t.fundId)),e.xp6(2),e.Q6J("ngIf","soft-launch"!==t.fundStatus),e.xp6(2),e.Q6J("ngForOf",t.tableDetails)}}function Vt(i,s){1&i&&e._UZ(0,"eds-info-item",38),2&i&&e.Q6J("info",s.$implicit)}function zt(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"eds-panel",36),e.YNc(2,Vt,1,1,"eds-info-item",37),e.qZA(),e.BQk()),2&i){const t=s.$implicit,n=s.even;e.xp6(1),e.Q6J("hasBorders",!1)("hasBorderRadius",!1)("hasPadding",!0)("theme",n?"grey":"basic"),e.xp6(1),e.Q6J("ngForOf",t)}}
1function Wt(i,s){if(1&i&&(e.ynx(0),e.YNc(1,zt,3,5,"ng-container",34),e.TgZ(2,"eds-panel",35),e._UZ(3,"eds-link-item",21),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.cards),e.xp6(1),e.Q6J("hasBorders",!1)("hasBorderRadius",!1)("hasPadding",!0),e.xp6(1),e.Q6J("title",e.lcZ(4,6,"products.capgains-fund-details"))("href",t.fundLink)}}function Xt(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Ht,34,30,"table",22),e.ALo(2,"async"),e.YNc(3,Wt,5,8,"ng-container",13),e.ALo(4,"async"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,t.isHandheld$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,4,t.isHandheld$))}}function Kt(i,s){if(1&i&&(e.TgZ(0,"eds-accordion-item",12),e.YNc(1,Rt,13,4,"div",13),e.YNc(2,Xt,5,6,"div",13),e.qZA()),2&i){const t=s.$implicit,n=e.oxw(2);e.Q6J("title",n.getAccordianTitle("primary",t))("secondaryTitle",n.getAccordianTitle("secondary",t))("expanded",n.expand),e.xp6(1),e.Q6J("ngIf",t.hasNoDistributions),e.xp6(1),e.Q6J("ngIf",!t.hasNoDistributions)}}function jt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",39),e.ALo(1,"async"),e.ALo(2,"async"),e.TgZ(3,"eds-pagination",40),e.NdJ("pageChanged",function(a){return e.CHM(t),e.oxw(2).onPageChanged(a)}),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"eds-dropdown",41),e.NdJ("dropdownChange",function(a){return e.CHM(t),e.oxw(2).onDropdownChange(a)}),e.ALo(10,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("flexDirection",e.lcZ(1,13,t.isHandheld$)?"column":"row")("alignItems",e.lcZ(2,15,t.isHandheld$)?"":"center"),e.xp6(3),e.Q6J("alignSelf",e.lcZ(4,17,t.isHandheld$)?"flex-end":"")("edsSpacing",e.lcZ(5,19,t.isHandheld$)?"xl":"")("pages",t.totalPages)("pageTitle",t.pageTitle)("prevPageText",e.lcZ(6,21,"products.previous"))("nextPageText",e.lcZ(7,23,"products.next"))("ariaLabelGoToPage",e.lcZ(8,25,"products?.ariaLabelGoToPage")),e.xp6(6),e.Q6J("dropdownId","ItemsPerPageBottomDD")("items",t.pageSizeBottomOptions)("label",e.lcZ(10,27,"products.items-per-page"))("preselectedValue",t.selectedPageSizeOption)}}function ei(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"section"),e.TgZ(1,"div"),e.TgZ(2,"eds-accordion",6),e.TgZ(3,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleExpanded()}),e._UZ(4,"eds-icon",8),e.TgZ(5,"span",9),e._uU(6),e.ALo(7,"translate"),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.YNc(9,Kt,3,5,"eds-accordion-item",10),e.qZA(),e.qZA(),e.YNc(10,jt,11,29,"div",11),e.qZA()}if(2&i){const t=e.oxw();e.xp6(4),e.Q6J("type",t.expand?"carrot-up":"carrot-down"),e.xp6(2),e.hij(" ",t.expand?e.lcZ(7,4,"products.collapse-all"):e.lcZ(8,6,"products.expand-all")," "),e.xp6(3),e.Q6J("ngForOf",t.filteredGridListing),e.xp6(1),e.Q6J("ngIf",t.totalPages>0)}}function ti(i,s){1&i&&(e.TgZ(0,"p",43),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"products.capgains-no-filter-result-message")," "))}function ii(i,s){if(1&i&&e.YNc(0,ti,3,3,"p",42),2&i){const t=e.oxw();e.Q6J("ngIf",t.isFilterProcessing)}}let ni=(()=>{class i{constructor(t,n,a,o){this.translateService=t,this.responsiveService=n,this.analytics=a,this.titleService=o,this.selectedPage=new e.vpe,this.selectedPageSize=new e.vpe,this.filterRecordsCount=new e.vpe,this.pageSizeOptions=[],this.pageSizeBottomOptions=[],this.placeholderHyphens=ee.Sk,this.expand=!1,this.pageSizeOptions=["25","50","75","100"].map(l=>({value:l,label:l})),this.pageSizeBottomOptions=this.pageSizeOptions,this.todaysDateLabel=`${this.translateService.instant("products.as-of")} ${L()().format("LL")}`}ngOnInit(){this.isHandheld$=this.responsiveService.isHandheld$(),this.pageTitle=this.titleService.getTitle(),this.pageSize=this.recordsCount?.size,this.filteredGridListing=this.gridListing,this.addInfoItems(this.filteredGridListing),this.totalPages=this.gridListingTotalPages?.count,this.selectedPageSizeOption=this.pageSizeOptions.find(t=>Number(t.value)===this.pageSize)}ngOnChanges(t){t.recordsCount&&!t.recordsCount.firstChange&&(this.pageSize=t.recordsCount.currentValue.size,this.selectedPageSizeOption=this.pageSizeOptions.find(n=>Number(n.value)===this.pageSize)),t.gridListing&&!t.gridListing.firstChange&&(this.filteredGridListing=t.gridListing.currentValue,this.addInfoItems(this.filteredGridListing),this.scrollPoint&&void 0!==this.isFilterProcessing&&!1===this.isFilterProcessing&&this.scrollPoint.nativeElement.scrollIntoView({behavior:"smooth"})),t.gridListingTotalPages&&!t.gridListingTotalPages.firstChange&&(this.totalPages=t.gridListingTotalPages.currentValue.count,this.paginationComponent&&(this.paginationComponent.activePage=1,this.paginationComponent.updatePagination(this.totalPages)))}getAccordianTitle(t,n){return"primary"===t?n.shareClassCode===ee.Ie||n.shareClassCode===ee.NA?n.fundName:`${n.fundName} - ${n.shareClassName}`:"secondary"===t?`${this.translateService.instant("products.capgains-schedule")}: ${n.capGainFreq}`:void 0}onPageChanged(t){"load"!==t.action&&this.selectedPage.next(t.page)}onDropdownChange(t){this.selectedPageSize.next(Number(t.value))}addInfoItems(t){t?.forEach(n=>{if(!n.hasNoDistributions){const a=[];
1n?.tableDetails?.forEach(o=>{const l=[];l.push({label:this.translateService.instant("pds.INCM_DIST_RECORD_DATE",n?.fundId),val:o?.capitalGainRecordDate?o?.capitalGainRecordDate:this.placeholderHyphens,size:"compact"}),l.push({label:this.translateService.instant("pds.INCM_DIST_EX_DIV_DATE",n?.fundId),val:o?.capitalGainExDividendDate?o?.capitalGainExDividendDate:this.placeholderHyphens,size:"compact"}),l.push({label:this.translateService.instant("pds.INCM_DIST_PAYABLE_DATE",n?.fundId),val:o?.capitalGainPayableDate?o?.capitalGainPayableDate:this.placeholderHyphens,size:"compact"}),l.push({label:this.translateService.instant("pds.REINVESTMENT_AMT",n?.fundId),val:o?.capitalGainReInvestmentAmount?o?.capitalGainReInvestmentAmount:this.placeholderHyphens,size:"compact"}),l.push({label:this.translateService.instant("pds.CAPGAIN_AMT_LONG_TERM",n?.fundId),val:o?.longTermCapitalGainAmount?o.longTermCapitalGainAmount+(o?.estimateFlag?this.translateService.instant("products.capgains-est"):""):this.placeholderHyphens,size:"compact",valueDirection:o?.estimateFlag?"loss":"static"}),l.push({label:this.translateService.instant("pds.CAPGAIN_AMT_SHRT_TERM",n?.fundId),val:o?.shortTermCapitalGainAmount?o.shortTermCapitalGainAmount+(o?.estimateFlag?this.translateService.instant("products.capgains-est"):""):this.placeholderHyphens,size:"compact",valueDirection:o?.estimateFlag?"loss":"static"}),l.push({label:this.translateService.instant("pds.TOTAL_CAP_GAINS",n?.fundId),val:o?.totalDistributionAmountMonthly?o.totalDistributionAmountMonthly+(o?.estimateFlag?this.translateService.instant("products.capgains-est"):""):this.placeholderHyphens,size:"compact",valueDirection:o?.estimateFlag?"loss":"static"}),a.push(l)}),n.cards=a}})}toggleExpanded(){this.expand=!this.expand}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(S.s),e.Y36(r.kzD),e.Y36(r.yDm),e.Y36(Pt.Dx))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains-listing"]],viewQuery:function(t,n){if(1&t&&(e.Gf(r.QtL,5),e.Gf(Et,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.paginationComponent=a.first),e.iGM(a=e.CRH())&&(n.scrollPoint=a.first)}},inputs:{gridListing:"gridListing",gridListingTotalPages:"gridListingTotalPages",recordsCount:"recordsCount",isFilterProcessing:"isFilterProcessing"},outputs:{selectedPage:"selectedPage",selectedPageSize:"selectedPageSize",filterRecordsCount:"filterRecordsCount"},features:[e.TTD],decls:12,vars:10,consts:[["edsPadding","",3,"edsPaddingRight","edsPaddingLeft"],["edsSpacing","lg",3,"placement"],[1,"small"],["scroll",""],[4,"ngIf","ngIfElse"],["gridListingEmpty",""],[1,"us-capital-gains-listing"],["edsButton","icon-only","size","normal","edsSpacing","md",3,"click"],["size","small",3,"type"],["edsPadding","","edsPaddingLeft","sm"],["edsSpacing","none",3,"title","secondaryTitle","expanded",4,"ngFor","ngForOf"],["edsFlexbox","","justifyContent","space-between","edsPadding","","edsPaddingTop","lg","edsPaddingBottom","xxl",3,"flexDirection","alignItems",4,"ngIf"],["edsSpacing","none",3,"title","secondaryTitle","expanded"],[4,"ngIf"],[1,"table"],[1,"table__body"],[1,"table__tr"],["edsFlexbox","","justifyContent","flex-start","alignItems","center",1,"table__td","text-align-left"],["edsFlexbox","","alignItems","center"],["type","info","size","small","edsTooltip",""],[3,"title","href",4,"ngIf"],[3,"title","href"],["class","table",4,"ngIf"],[1,"table__thead"],[1,"table__th","text-align-left"],[1,"table__th","text-align-right"],["class","table__th text-align-left",4,"ngIf"],["class","table__tr",4,"ngFor","ngForOf"],[1,"table__td","text-align-left"],[1,"table__td",3,"ngClass"],["class","table__td text-align-right table__td--loss",4,"ngIf"],["class","table__td",3,"ngClass",4,"ngIf"],["class","table__td text-align-left",4,"ngIf"],[1,"table__td","text-align-right","table__td--loss"],[4,"ngFor","ngForOf"],[3,"hasBorders","hasBorderRadius","hasPadding"],["edsSpacing","xs",3,"hasBorders","hasBorderRadius","hasPadding","theme"],["edsSpacing","sm",3,"info",4,"ngFor","ngForOf"],["edsSpacing","sm",3,"info"],["edsFlexbox","","justifyContent","space-between","edsPadding","","edsPaddingTop","lg","edsPaddingBottom","xxl",3,"flexDirection","alignItems"],["edsFlexItem","",3,"alignSelf","edsSpacing","pages","pageTitle","prevPageText","nextPageText","ariaLabelGoToPage","pageChanged"],["ariaLabel","Dropdown","name","BottomDropDown","titleText","10","edsPadding","","edsPaddingLeft","none",3,"dropdownId","items","label","preselectedValue","dropdownChange"],["class","bold large",4,"ngIf"],[1,"bold","large"]],template:function(t,n){if(1&t&&(e.TgZ(0,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.TgZ(3,"div"),e._UZ(4,"eds-proximal",1),e.TgZ(5,"p",2,3),e.TgZ(7,"b"),e._uU(8),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ei,11,8,"section",4),e.YNc(10,ii,1,1,"ng-template",null,5,e.W1O),e.qZA()),2&t){const a=e.MAs(11);e.Q6J("edsPaddingRight",e.lcZ(1,6,n.isHandheld$)?"md":"xxl")("edsPaddingLeft",e.lcZ(2,8,n.isHandheld$)?"md":"xxl"),e.xp6(4),e.Q6J("placement","CapitalGainsTop"),e.xp6(4),e.Oqu(n.todaysDateLabel),e.xp6(1),e.Q6J("ngIf",null==n.filteredGridListing?null:n.filteredGridListing.length)("ngIfElse",a)}},directives:[r.cph,r.JEP,r.OPD,v.O5,r.ZfJ,r.Hq3,r.oJW,v.sg,r.n3F,r.Wxy,r.i9q,r.zj4,v.mk,r.yXm,r.b2$,r.QtL,r.R65,r.JOL],pipes:[v.Ov,Z.X],styles:[""]}),i})();const ai=C.Y.getLogger("USCapitalGainsComponent");let si=(()=>{class i extends c.p{constructor(t,n){super(),this.capitalGainsService=t,this.changeDetector=n,this.dataSubscription=[],this.gridListing=[],this.currentPageNumber=1,this.isPopulated=!1}populate(t,n,a,o){this.initialize(n,a,o),ai.debug(o,this.page),this.componentConfiguration=t,this.changeDetector.detectChanges(),this.brConfig&&(this.dataSubscription.push(this.capitalGainsService.capGainsState.subscribe(l=>this.mapState(l))),this.dataSubscription.push(this.capitalGainsService.getCurrentPage$().subscribe(l=>{this.gridListing=m()(l),this.recordsCount=m()({total:this.recordsCount?.total,filtered:this.recordsCount?.filtered,size:this.capitalGainsService.getPageSize()})})),this.dataSubscription.push(this.capitalGainsService.getNumberOfPages$().subscribe(l=>{this.gridListingTotalPages=m()({count:l})})),this.dataSubscription.push(this.capitalGainsService.getPageNumber$().subscribe(l=>{(this.currentPageNumber!==l||this.capitalGainsService.isFilterProcessing)&&(this.isFilterProcessing=m()(this.capitalGainsService.isFilterProcessing)),this.currentPageNumber=l})),this.capitalGainsService.populate())}mapState(t){this.filters=t.filters,this.hasNoShareClass=t.hasNoShareClass,this.recordsCount=m()({total:t.capGainListing.length,filtered:t.gridListing.length,size:this.capitalGainsService.getPageSize()}),this.isPopulated=!0,this.changeDetector.detectChanges()}onPageChanged(t){this.capitalGainsService.goToPage(t)}onDropdownChange(t){this.capitalGainsService.isFilterProcessing=!1,this.capitalGainsService.setPageSize(t)}filterListing(t){this.capitalGainsService.filterListing(t)}ngOnDestroy(){this.dataSubscription?.forEach(t=>t.unsubscribe())}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Ae),e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-capital-gains"]],features:[e.qOj],decls:5,vars:10,consts:[["theme","dark",3,"edsSpacing"],["edsGrid",""],["theme","dark",3,"items"],[3,"filters","hasNoShareClass","recordsCount","
1isLoaded","selectedFilterType"],[3,"gridListing","gridListingTotalPages","recordsCount","isFilterProcessing","selectedPage","selectedPageSize"]],template:function(t,n){1&t&&(e.TgZ(0,"eds-panel",0),e.TgZ(1,"div",1),e._UZ(2,"eds-breadcrumbs",2),e.qZA(),e.qZA(),e.TgZ(3,"ft-us-capital-gains-filters",3),e.NdJ("selectedFilterType",function(o){return n.filterListing(o)}),e.qZA(),e.TgZ(4,"ft-us-capital-gains-listing",4),e.NdJ("selectedPage",function(o){return n.onPageChanged(o)})("selectedPageSize",function(o){return n.onDropdownChange(o)}),e.qZA()),2&t&&(e.Q6J("edsSpacing","none"),e.xp6(2),e.Q6J("items",n.breadcrumbItems),e.xp6(1),e.Q6J("filters",n.filters)("hasNoShareClass",n.hasNoShareClass)("recordsCount",n.recordsCount)("isLoaded",n.isPopulated),e.xp6(1),e.Q6J("gridListing",n.gridListing)("gridListingTotalPages",n.gridListingTotalPages)("recordsCount",n.recordsCount)("isFilterProcessing",n.isFilterProcessing))},directives:[r.yXm,r.OPD,r.ljP,r.nNV,Dt,ni],styles:[""],changeDetection:0}),i})();var oi=d(67676),ri=d(3039),li=d.n(ri),ye=d(42720),Ze=d(53466),A=d(53619),Ie=d(49592);const di=C.Y.getLogger("UsTaxService");let ke=(()=>{class i{constructor(t,n,a){this.fundOverviewService=t,this.translateService=n,this.excelService=a,this.state={},this.taxState$=new w.xQ,this.unsubscribe$=new w.xQ,this.getEmptyCellValue=o=>l=>{let h;return h="date"===l.dataType?"d":"s",(0,A.Iq)(o[l.field]?o[l.field]:ee.Sk,h)},this.getHeader=o=>(0,A.Iq)(o.headerName,"s")}populate(t,n){this.fundOverviewService.register(li(),t).pipe((0,Ze.q)(1)).subscribe(a=>{di.debug(a),this.state.federalTaxId=a.shareClasses[0].federalTaxId;const o=a.shareClasses[0].tax;this.state.taxData=o,this.state.stateCols=o?.states?.length<=10?1:o?.states?.length<=20?2:3,this.state.noDataMessage=t.year===this.getLastYear()?o?.distributions?.length?null:this.state.noDataMessage=this.translateService.instant("products.us-tax-no-data-message",t.fundId).replace("{{year}}",String(t.year)):o?.distributions?.length?null:this.state.noDataMessage=this.translateService.instant("products.us-tax-no-historic-data-message").replace("{{year}}",String(t.year)),this.state.currentYear=t.year,this.state.fundName=a.fundName,this.state.pdf=null,n&&(this.state.years=this.calculateYears(a.shareClasses[0].inceptionDateStd)),this.taxState$.next(this.state)})}calculateYears(t){const n=new Date(t).getFullYear(),a=Math.max(2013,n),o=this.getLastYear();return Array(o-a+1).fill(null).map((f,h)=>o-h)}getLastYear(){return(new Date).getFullYear()-1}getColDefs(){return[{field:"recordDate",headerName:this.translateService.instant("products.us-tax-record-date"),dataType:"date"},{field:"ordinaryDividends",headerName:this.translateService.instant("products.us-tax-ordinary-dividends")},{field:"qualifiedDividends",headerName:this.translateService.instant("products.us-tax-qualified-dividends")},{field:"capGainDistributions",headerName:this.translateService.instant("products.us-tax-cap-gain-distributions")},{field:"unrecapturedSection1250Gain",headerName:this.translateService.instant("products.us-tax-unrecaptured-section-1250-gain")},{field:"nonTaxableReturnOfCapital",headerName:this.translateService.instant("products.us-tax-nontaxable-return-of-capital")},{field:"section199aDividends",headerName:this.translateService.instant("products.us-tax-section-199a-dividends")},{field:"foriegnTaxPaid",headerName:this.translateService.instant("products.us-tax-foreign-tax-paid")},{field:"exemptInterestDividends",headerName:this.translateService.instant("products.us-tax-exempt-interest-dividends")},{field:"interestTaxReclaimRefund",headerName:this.translateService.instant("products.interest-on-tax-reclaim-refunds")}]}createXlsx(t,n,a,o){const l=[[(0,A.Iq)(this.state?.fundName,"s")]],f=[[(0,A.Iq)(this.translateService.instant("products.us-tax-federal-id-number"),"s"),(0,A.Iq)(this.state?.federalTaxId?.toString(),"s")]],h=[[(0,A.Iq)(this.translateService.instant("products.year"),"s"),(0,A.Iq)(this.state?.currentYear?.toString(),"n")]],x=l.concat(A.OM).concat(h).concat(f).concat(A.OM).concat(a).concat(o),P=t.concat(A.OM).concat(x).concat(A.OM,A.OM,A.OM,A.OM,A.OM).concat(n);d.e("node_modules_xlsx_xlsx_js").then(d.t.bind(d,88031,23)).then(z=>{const ae=z.utils,ue=ae.aoa_to_sheet(P);ue["!cols"]=(0,A.HY)(x);const oe=z.utils.book_new();ae.book_append_sheet(oe,ue,this.translateService.instant("products.us-distributions-tax-info-tab-name")),z.writeFile(oe,this.translateService.instant("products.us-distributions-tax-info-file-name")+".xlsx")})}downloadTaxInfoExcel(){const t=this.getColDefs(),n=[t.map(this.getHeader)],a=this.state?.taxData?.distributions.map(o=>(o.recordDate=o.recordType===this.translateService.instant("products.tax-info-record-type")?o.recordDate:this.translateService.instant("products.us-tax-total"),t.map(this.getEmptyCellValue(o))));(0,ye.D)([this.excelService.getProximalCaveat$("UsTaxDistributionsExcelTop"),this.excelService.getProximalCaveat$("UsTaxDistributionsExcelBottom")]).pipe((0,N.R)(this.unsubscribe$)).subscribe(([o,l])=>{this.createXlsx(o,l,n,a)})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(Ie.T),e.LFG(S.s),e.LFG(A.O_))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var ci=d(13662);function pi(i,s){if(1&i&&(e.TgZ(0,"button",20),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("analyticsName",e.lcZ(1,5,"products.us-tax-record-date"))("tooltipContent",t.tooltips["products.us-tax-record-date"])("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-record-date"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-record-date"])}}function ui(i,s){if(1&i&&(e.TgZ(0,"button",20),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("analyticsName",e.lcZ(1,5,"products.us-tax-ordinary-dividends"))("tooltipContent",t.tooltips["products.us-tax-ordinary-dividends"])("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-ordinary-dividends"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-ordinary-dividends"])}}function gi(i,s){if(1&i&&(e.TgZ(0,"button",20),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("analyticsName",e.lcZ(1,5,"products.us-tax-qualified-dividends"))("tooltipContent",t.tooltips["products.us-tax-qualified-dividends"])("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-qualified-dividends"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-qualified-dividends"])}}function mi(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-cap-gain-distributions"])("analyticsName",e.lcZ(1,5,"products.us-tax-cap-gain-distributions"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-cap-gain-distributions"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-cap-gain-distributions"])}}function fi(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-unrecaptured-section-1250-gain"])("analyticsName",e.lcZ(1,5,"products.us-tax-unrecaptured-section-1250-gain"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-unrecaptured-section-1250-gain"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-unrecaptured-section-1250-gain"])}}function hi(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-nontaxable-return-of-capital"])("analyticsName",e.lcZ(1,5,"products.us-tax-nontaxable-return-of-capital"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-nontaxable-return-of-capital"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-nontaxable-return-of-capital"])}}function _i(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-section-199a-dividends"])("analyticsName",e.lcZ(1,5,"products.us-tax-section-199a-dividends"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-section-199a-dividends"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-section-199a-dividends"])}}function xi(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-foreign-tax-paid"])("analyticsName",e.lcZ(1,5,"products.us-tax-foreign-tax-paid"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-foreign-tax-paid"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-foreign-tax-paid"])}}function vi(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.us-tax-exempt-interest-dividends"])("analyticsName",e.lcZ(1,5,"products.us-tax-exempt-interest-dividends"))("tooltipAriaLabel",e.lcZ(2,7,"products.us-tax-exempt-interest-dividends"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.us-tax-exempt-interest-dividends"])}}function Ti(i,s){if(1&i&&(e.TgZ(0,"button",22),e.ALo(1,"translate"),e.ALo(2,"translate"),e._UZ(3,"eds-icon",21),e.qZA()),2&i){const t=e.oxw();e.Q6J("tooltipContent",t.tooltips["products.interest-on-tax-reclaim-refunds"])("analyticsName",e.lcZ(1,5,"products.interest-on-tax-reclaim-refunds"))("tooltipAriaLabel",e.lcZ(2,7,"products.interest-on-tax-reclaim-refunds"))("tooltipButton",!0),e.uIk("data-tooltip-content",t.tooltips["products.interest-on-tax-reclaim-refunds"])}}function Ci(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"tr",3),e.TgZ(2,"td",23),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"td",23),e._uU(6),e.qZA(),e.TgZ(7,"td",23),e._uU(8),e.qZA(),e.TgZ(9,"td",23),e._uU(10),e.qZA(),e.TgZ(11,"td",23),e._uU(12),e.qZA(),e.TgZ(13,"td",23),e._uU(14),e.qZA(),e.TgZ(15,"td",23),e._uU(16),e.qZA(),e.TgZ(17,"td",23),e._uU(18),e.qZA(),e.TgZ(19,"td",23),e._uU(20),e.qZA(),e.TgZ(21,"td",23),e._uU(22),e.qZA(),e.qZA(),e.BQk()),2&i){const t=s.$implicit;e.xp6(3),e.hij(" ","Detail"===t.recordType?t.recordDate:e.lcZ(4,10,"products.us-tax-total")," "),e.xp6(3),e.Oqu(t.ordinaryDividends),e.xp6(2),e.Oqu(t.qualifiedDividends),e.xp6(2),e.Oqu(t.capGainDistributions),e.xp6(2),e.hij(" ",t.unrecapturedSection1250Gain," "),e.xp6(2),e.Oqu(t.nonTaxableReturnOfCapital),e.xp6(2),e.Oqu(t.section199aDividends),e.xp6(2),e.Oqu(t.foriegnTaxPaid),e.xp6(2),e.Oqu(t.exemptInterestDividends),e.xp6(2),e.Oqu(t.interestTaxReclaimRefund)}}function Si(i,s){1&i&&e._UZ(0,"eds-info-item",27),2&i&&e.Q6J("info",s.$implicit)}function bi(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"eds-panel",25),e.YNc(2,Si,1,1,"eds-info-item",26),e.qZA(),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("hasBorders",!0)("hasBorderRadius",!1)("hasPadding",!0),e.xp6(1),e.Q6J("ngForOf",t)}}function Ai(i,s){if(1&i&&(e.ynx(0),e.YNc(1,bi,3,4,"ng-container",24),e.ALo(2,"async"),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,t.isHandheld$))}}let yi=(()=>{class i extends ci.t{constructor(t,n){super(t),this.translateService=n,this.tooltips={}}ngOnInit(){super.ngOnInit(),this.tooltips["products.us-tax-record-date"]=this.translateService.tooltip("products.us-tax-record-date"),this.tooltips["products.us-tax-ordinary-dividends"]=this.translateService.tooltip("products.us-tax-ordinary-dividends"),this.tooltips["products.us-tax-qualified-dividends"]=this.translateService.tooltip("products.us-tax-qualified-dividends"),this.tooltips["products.us-tax-cap-gain-distributions"]=this.translateService.tooltip("products.us-tax-cap-gain-distributions"),this.tooltips["products.us-tax-unrecaptured-section-1250-gain"]=this.translateService.tooltip("products.us-tax-unrecaptured-section-1250-gain"),this.tooltips["products.us-tax-nontaxable-return-of-capital"]=this.translateService.tooltip("products.us-tax-nontaxable-return-of-capital"),this.tooltips["products.us-tax-section-199a-dividends"]=this.translateService.tooltip("products.us-tax-section-199a-dividends"),this.tooltips["products.us-tax-foreign-tax-paid"]=this.translateService.tooltip("products.us-tax-foreign-tax-paid"),this.tooltips["products.us-tax-exempt-interest-dividends"]=this.translateService.tooltip("products.us-tax-exempt-interest-dividends"),this.tooltips["products.interest-on-tax-reclaim-refunds"]=this.translateService.tooltip("products.interest-on-tax-reclaim-refunds")}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(r.kzD),e.Y36(S.s))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-tax-distributions"]],inputs:{distributions:"distributions"},features:[e.qOj],decls:59,vars:56,consts:[[1,"table","tax"],["tableResponsive",""],[1,"table__thead"],[1,"table__tr"],[1,"table__th"],["placement","US Tax:UsTaxRecordDate"],["class","print-hidden","edsTooltip","","tooltipTheme","dark",3,"analyticsName","tooltipContent","tooltipAriaLabel","tooltipButton",4,"ngIf"],["placement","US Tax:UsTaxOrdinaryDividends"],["placement","US Tax:UsTaxQualifiedDividends"],["placement","US Tax:UsTaxCapGainsDistributions"],["class","print-hidden","edsTooltip","","tooltipTheme","dark",3,"tooltipContent","analyticsName","tooltipAriaLabel","tooltipButton",4,"ngIf"],["placement","US Tax:UsTaxUnrecapturedSection1250Gain"],["placement","US Tax:UsTaxNonTaxableReturnOfCapital"],["placement","US Tax:UsTaxSection199aDividends"],["placement","US Tax:UsTaxForeignTaxPaid"],["placement","US Tax:UsTaxExemptInterestDividends"],["theme","dark","placement","USInterestOnTaxReclaimRefunds"],[1,"table__body"],[4,"ngFor","ngForOf"],["placement","UsTaxDistributionsBottom"],["edsTooltip","","tooltipTheme","dark",1,"print-hidden",3,"analyticsName","tooltipContent","tooltipAriaLabel","tooltipButton"],["type","info","size","small"],["edsTooltip","","tooltipTheme","dark",1,"print-hidden",3,"tooltipContent","analyticsName","tooltipAriaLabel","tooltipButton"],[1,"table__td"],[4,"ngIf"],["edsSpacing","sm",3,"hasBorders","hasBorderRadius","hasPadding"],["edsSpacing","sm",3,"info",4,"ngFor","ngForOf"],["edsSpacing","sm",3,"info"]],template:function(t,n){1&t&&(e.TgZ(0,"table",0,1),e.ALo(2,"async"),e.TgZ(3,"thead",2),e.TgZ(4,"tr",3),e.TgZ(5,"th",4),e._uU(6),e.ALo(7,"translate"),e._UZ(8,"eds-footnote",5),e.YNc(9,pi,4,9,"button",6),e.qZA(),e.TgZ(10,"th",4),e._uU(11),e.ALo(12,"translate"),e._UZ(13,"eds-footnote",7),e.YNc(14,ui,4,9,"button",6),e.qZA(),e.TgZ(15,"th",4),e._uU(16),e.ALo(17,"translate"),e._UZ(18,"eds-footnote",8),e.YNc(19,gi,4,9,"button",6),e.qZA(),e.TgZ(20,"th",4),e._uU(21),e.ALo(22,"translate"),e._UZ(23,"eds-footnote",9),e.YNc(24,mi,4,9,"button",10),e.qZA(),e.TgZ(25,"th",4),e._uU(26),e.ALo(27,"translate"),e._UZ(28,"eds-footnote",11),e.YNc(29,fi,4,9,"button",10),e.qZA(),e.TgZ(30,"th",4),e._uU(31),e.ALo(32,"translate"),e._UZ(33,"eds-footnote",12),e.YNc(34,hi,4,9,"button",10),e.qZA(),e.TgZ(35,"th",4),e._uU(36),e.ALo(37,"translate"),e._UZ(38,"eds-footnote",13),e.YNc(39,_i,4,9,"button",10),e.qZA(),e.TgZ(40,"th",4),e._uU(41),e.ALo(42,"translate"),e._UZ(43,"eds-footnote",14),e.YNc(44,xi,4,9,"button",10),e.qZA(),e.TgZ(45,"th",4),e._uU(46),e.ALo(47,"translate"),e._UZ(48,"eds-footnote",15),e.YNc(49,vi,4,9,"button",10),e.qZA(),e.TgZ(50,"th",4),e._uU(51),e.ALo(52,"translate"),e._UZ(53,"eds-footnote",16),e.YNc(54,Ti,4,9,"button",10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"tbody",17),e.YNc(56,Ci,23,12,"ng-container",18),e.qZA(),e.qZA(),e.YNc(57,Ai,3,3,"ng-container",18),e._UZ(58,"eds-proximal",19)),2&t&&(e.Udp("display",e.lcZ(2,34,n.isHandheld$)?"none":""),e.xp6(6),e.hij(" ",e.lcZ(7,36,"products.us-tax-record-date")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxRecordDate"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-record-date"]),e.xp6(2),e.hij(" ",e.lcZ(12,38,"products.us-tax-ordinary-dividends")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxOrdinaryDividends"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-ordinary-dividends"]),e.xp6(2),e.hij(" ",e.lcZ(17,40,"products.us-tax-qualified-dividends")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxQualifiedDividends"),e.xp6(1),e.Q6J("ngIf",n.tooltips["product
1s.us-tax-qualified-dividends"]),e.xp6(2),e.hij(" ",e.lcZ(22,42,"products.us-tax-cap-gain-distributions")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxCapGainsDistributions"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-cap-gain-distributions"]),e.xp6(2),e.hij(" ",e.lcZ(27,44,"products.us-tax-unrecaptured-section-1250-gain")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxUnrecapturedSection1250Gain"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-unrecaptured-section-1250-gain"]),e.xp6(2),e.hij(" ",e.lcZ(32,46,"products.us-tax-nontaxable-return-of-capital")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxNonTaxableReturnOfCapital"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-nontaxable-return-of-capital"]),e.xp6(2),e.hij(" ",e.lcZ(37,48,"products.us-tax-section-199a-dividends")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxSection199aDividends"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-section-199a-dividends"]),e.xp6(2),e.hij(" ",e.lcZ(42,50,"products.us-tax-foreign-tax-paid")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxForeignTaxPaid"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-foreign-tax-paid"]),e.xp6(2),e.hij(" ",e.lcZ(47,52,"products.us-tax-exempt-interest-dividends")," "),e.xp6(2),e.uIk("data-placement","US Tax:UsTaxExemptInterestDividends"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.us-tax-exempt-interest-dividends"]),e.xp6(2),e.hij(" ",e.lcZ(52,54,"products.interest-on-tax-reclaim-refunds")," "),e.xp6(2),e.uIk("data-placement","USInterestOnTaxReclaimRefunds"),e.xp6(1),e.Q6J("ngIf",n.tooltips["products.interest-on-tax-reclaim-refunds"]),e.xp6(2),e.Q6J("ngForOf",n.distributions),e.xp6(1),e.Q6J("ngForOf",n.cards))},directives:[r.A9Y,v.O5,v.sg,r.JEP,r.i9q,r.oJW,r.yXm,r.OPD,r.b2$],pipes:[v.Ov,Z.X],styles:[".table__td[_ngcontent-%COMP%]:first-child{width:10%}"]}),i})();function Zi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"button",16),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).downloadTaxInfoExcel()}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"translate"),e._UZ(5,"eds-icon",17),e.qZA(),e.qZA()}2&i&&(e.xp6(2),e.AsE(" ",e.lcZ(3,2,"products.tax-info-download")," (",e.lcZ(4,4,"products.xls-file-extension"),") "))}function Ii(i,s){if(1&i&&e._UZ(0,"ft-us-tax-distributions",18),2&i){const t=e.oxw(3);e.Q6J("distributions",t.distributions)}}function ki(i,s){if(1&i&&e._UZ(0,"span",19),2&i){const t=e.oxw(3);e.Q6J("innerHtml",t.noDataMessage,e.oJD)}}function Li(i,s){1&i&&e._UZ(0,"eds-info-item",27),2&i&&e.Q6J("info",s.$implicit)}const wi=function(){return{s:"4",m:"6",l:"4"}};function Ni(i,s){if(1&i&&(e.TgZ(0,"eds-panel",24),e._UZ(1,"eds-section-header",25),e.ALo(2,"translate"),e.ALo(3,"translate"),e.YNc(4,Li,1,1,"eds-info-item",26),e.qZA()),2&i){const t=e.oxw(4);e.Q6J("columnNumbers",e.DdM(12,wi))("hasBorders",!0)("hasPadding",!0),e.xp6(1),e.Q6J("level",6)("analyticsName",e.lcZ(2,8,"products.us-tax-additional-section-title"))("title",e.lcZ(3,10,"products.us-tax-additional-section-title"))("tooltip",t.tooltips["products.us-tax-additional-section-title"]),e.xp6(3),e.Q6J("ngForOf",t.additional)}}function Fi(i,s){1&i&&e._UZ(0,"eds-info-item",27),2&i&&e.Q6J("info",s.$implicit)}function Di(i,s){if(1&i&&(e.TgZ(0,"eds-panel",28),e._UZ(1,"eds-section-header",25),e.ALo(2,"translate"),e.ALo(3,"translate"),e.TgZ(4,"div",29),e.YNc(5,Fi,1,1,"eds-info-item",26),e.qZA(),e.qZA()),2&i){const t=e.oxw(4);e.Q6J("columnNumbers",t.statesColumns)("hasBorders",!0)("hasPadding",!0),e.xp6(1),e.Q6J("level",6)("analyticsName",e.lcZ(2,9,"products.us-tax-states-section-title"))("title",e.lcZ(3,11,"products.us-tax-states-section-title"))("tooltip",t.tooltips["products.us-tax-states-section-title"]),e.xp6(3),e.Q6J("maxCols",t.stateCols),e.xp6(1),e.Q6J("ngForOf",t.states)}}function Pi(i,s){if(1&i&&(e._UZ(0,"eds-thumbnail",30),e.ALo(1,"translate")),2&i){const t=e.oxw(4);e.Q6J("hasBorders",!0)("hasShadows",!0)("headingLevel",2)("title",t.lmPdfMessage)("href",t.pdf)("buttonText",e.xi3(1,7,"products.additional-tax-download-pdf",t.brConfig.fundId))("isNewWindow",!0)}}function Ei(i,s){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"div",3),e.TgZ(2,"div",4),e.YNc(3,Ni,5,13,"eds-panel",20),e.YNc(4,Di,6,13,"eds-panel",21),e.qZA(),e.qZA(),e.YNc(5,Pi,2,10,"eds-thumbnail",22),e._UZ(6,"eds-proximal",23),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngIf",null==t.additional?null:t.additional.length),e.xp6(1),e.Q6J("ngIf",null==t.states?null:t.states.length),e.xp6(1),e.Q6J("ngIf",t.pdf)}}function Ui(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"eds-section-header",6),e.ALo(5,"translate"),e._UZ(6,"eds-section-header",7),e.ALo(7,"translate"),e._UZ(8,"eds-proximal",8),e.TgZ(9,"div"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"div"),e._UZ(14,"div",10),e._UZ(15,"eds-section-header",11),e.ALo(16,"translate"),e.YNc(17,Zi,6,6,"div",0),e.qZA(),e.TgZ(18,"div"),e._UZ(19,"div",10),e.TgZ(20,"eds-dropdown",12),e.NdJ("dropdownChange",function(a){return e.CHM(t),e.oxw(2).onTaxYearChanged(a)}),e.ALo(21,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",4),e.TgZ(23,"div",13),e.YNc(24,Ii,1,1,"ft-us-tax-distributions",14),e.YNc(25,ki,1,1,"span",15),e.qZA(),e.qZA(),e.YNc(26,Ei,7,3,"div",0),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Q6J("title",e.lcZ(5,17,"products.us-tax-information"))("level",3),e.xp6(2),e.Q6J("title",t.federalTaxIdTitle)("subTitle",e.lcZ(7,19,"products.us-tax-year-message"))("level",6),e.xp6(4),e.hij(" ",e.lcZ(11,21,"products.us-tax-distributions-description")," "),e.xp6(5),e.Q6J("title",e.lcZ(16,23,"products.us-tax-distributions-per-share"))("level",5),e.xp6(2),e.Q6J("ngIf",(null==t.distributions?null:t.distributions.length)>0&&!t.isSiteIntl),e.xp6(3),e.s9C("label",e.lcZ(21,25,"products.year")),e.Q6J("dropdownId",t.getDropdownId)("items",t.yearOptions)("titleText",t.getTitleText(t.yearOptionSelected))("selectedText",t.yearOptionSelected),e.xp6(4),e.Q6J("ngIf",t.hasDataForCurrentYear&&(null==t.distributions?null:t.distributions.length)>0),e.xp6(1),e.Q6J("ngIf",!t.hasDataForCurrentYear),e.xp6(1),e.Q6J("ngIf",(null==t.additional?null:t.additional.length)||(null==t.states?null:t.states.length)||t.pdf)}}function Ri(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Ui,27,27,"ng-container",2),e.BQk()),2&i){const t=e.oxw(),n=e.MAs(2);e.xp6(1),e.Q6J("ngIf",null==t.brConfig?null:t.brConfig.fundId)("ngIfElse",n)}}function Oi(i,s){1&i&&(e.TgZ(0,"h5"),e._uU(1,"US Tax"),e.qZA())}const Gi=C.Y.getLogger("USTaxComponent");let qi=(()=>{class i extends c.p{constructor(t,n,a,o){super(),this.taxService=t,this.translateService=n,this.changeDetector=a,this.siteConfigService=o,this.yearOptions=[],this.hasDataForCurrentYear=!0,this.tooltips={},this.stateCols="1",this.dropdownId=`tax-year-select${(0,oi.DO)()}`}get getDropdownId(){return this.dropdownId}ngOnInit(){super.ngOnInit(),this.isSiteIntl=this.siteConfigService.isSiteInternational(),this.tooltips["products.us-tax-additional-section-title"]=this.translateService.tooltip("products.us-tax-additional-section-title"),this.tooltips["products.us-tax-states-section-title"]=this.translateService.tooltip("products.us-tax-states-section-title")}populate(t,n,a,o){this.initialize(n,a,o),Gi.debug(o,this.page),this.componentConfiguration=t,this.changeDetector.detectChanges(),this.brConfig.fundId&&(this.dataSubscription=this.taxService.taxState$.subscribe(l=>this.mapState(l)),this.taxService.populate({fundId:n.fundId,shareClassCode:n.shareClassCode,year:this.taxService.getLastYear()},!0))}mapState(t){this.federalTaxIdTitle=`${this.translateService.instant("products.us-tax-federal-id-number")} ${t.federalTaxId}`,this.additional=t.taxData?.additionalTaxInfo?.items,this.states=t.taxData?.states,this.yearOptions=t.years.map(n=>({label:String(n),value:n})),this.yearOptionSelected=t.currentYear,this.stateCols=String(t.stateCols),this.statesColumns=this.createStatesColumns(t.stateCols),this.pdf=t.pdf,t.noDataMessage?(this.hasDataForCurrentYear=!1,this.noDataMessage=t.noDataMessage):(this.distributions=t.taxData.distributions,this.hasDataForCurrentYear=!0),this.lmPdfMessage=this.translateService.instant("products.us-tax-lm-pdf-download-message").replace("{{year}}",String(t.currentYear)),this.changeDetector.detectChanges()}getTitleText(t){return this.yearOptions.find(n=>n.value===t)?.label}onTaxYearChanged(t){this.yearOptionSelected=t.value,this.taxService.populate({fundId:this.brConfig.fundId,shareClassCode:this.brConfig.shareClassCode,year:t.value},!1)}createStatesColumns(t){switch(t){case 1:return{s:"4",m:"6",l:"4"};case 2:return{s:"4",m:"8",l:"8"};default:return{s:"4",m:"8",l:"12"}}}downloadTaxInfoExcel(){this.taxService.downloadTaxInfoExcel()}ngOnDestroy(){this.dataSubscription?.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(ke),e.Y36(S.s),e.Y36(e.sBO),e.Y36(_.r5))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-us-tax"]],features:[e.qOj],decls:3,vars:1,consts:[[4,"ngIf"],["previewBlock",""],[4,"ngIf","ngIfElse"],["edsGrid",""],["edsRow",""],["edsCol",""],["edsSpacing","md",3,"title","level"],["edsSpacing","md",3,"title","subTitle","level"],["placement","UsTaxDistributionsTop","edsSpacing","md"],["edsSubGrid","layout-6","edsSpacing","md"],["edsSpacing","md"],["edsSpacing","sm",3,"title","level"],["ariaLabel","Dropdown","name","tax-year-select",3,"dropdownId","label","items","titleText","selectedText","dropdownChange"],["edsCol","","edsSpacing","lg"],[3,"distributions",4,"ngIf"],["class","noTaxYet",3,"innerHtml",4,"ngIf"],["edsbutton","secondary",1,"ft__bt
1n--secondary","ft__btn",3,"click"],["type","download","size","small","edspadding","","edsPaddingLeft","xs"],[3,"distributions"],[1,"noTaxYet",3,"innerHtml"],["edsCol","","class","list-details","edsSpacing","","edsSpacingBottom","sm","theme","white",3,"columnNumbers","hasBorders","hasPadding",4,"ngIf"],["edsCol","","class","list-details","theme","white",3,"columnNumbers","hasBorders","hasPadding",4,"ngIf"],["docTypeSrc","/assets/images/brand/PDF_file_icon.svg",3,"hasBorders","hasShadows","headingLevel","title","href","buttonText","isNewWindow",4,"ngIf"],["placement","UsTaxAdditionalTaxInformationBottom"],["edsCol","","edsSpacing","","edsSpacingBottom","sm","theme","white",1,"list-details",3,"columnNumbers","hasBorders","hasPadding"],["theme","primary","size","h6","edsSpacing","md",3,"level","analyticsName","title","tooltip"],[3,"info",4,"ngFor","ngForOf"],[3,"info"],["edsCol","","theme","white",1,"list-details",3,"columnNumbers","hasBorders","hasPadding"],["edsCssCols","","colGap","xxxl",3,"maxCols"],["docTypeSrc","/assets/images/brand/PDF_file_icon.svg",3,"hasBorders","hasShadows","headingLevel","title","href","buttonText","isNewWindow"]],template:function(t,n){1&t&&(e.YNc(0,Ri,2,2,"ng-container",0),e.YNc(1,Oi,2,0,"ng-template",null,1,e.W1O)),2&t&&e.Q6J("ngIf",n.page)},directives:[v.O5,r.ljP,r.vZ,r.iKq,r.Iz_,r.OPD,r.JEP,r.ESv,r.JOL,r.oJW,yi,r.yXm,v.sg,r.b2$,r.qJD,r.ZlX],pipes:[Z.X],styles:["[_nghost-%COMP%] .noTaxYet[_ngcontent-%COMP%]{color:var(--complimentary-9)}"],changeDetection:0}),i})();var Le=d(31023),le=(()=>{return(i=le||(le={})).active="active",i.inactive="inactive",i["soft-launch"]="soft-launch",i["soft-closed"]="soft-closed",le;var i})(),ne=(()=>{return(i=ne||(ne={}))[i.INITIAL_LOAD=0]="INITIAL_LOAD",i[i.FILTER_ROWS=1]="FILTER_ROWS",ne;var i})(),de=(()=>{return(i=de||(de={})).INDIVIDUAL="INDIVIDUAL",i.ALL="ALL",de;var i})(),q=(()=>{return(i=q||(q={})).HELD_PRODUCTS="held-products",i.FAVORITE_PRODUCTS="favorite-products",i.ALL_FUNDS="all-funds",q;var i})(),X=(()=>{return(i=X||(X={})).SINGLE="SINGLE",i.FILTERED="FILTERED",i.FAVORITE="FAVORITE",i.ALL="ALL",i.SELECTED="SELECTED",X;var i})(),ce=(()=>{return(i=ce||(ce={})).SINGLE="SINGLE",i.SELECTED="SELECTED",ce;var i})(),H=(()=>{return(i=H||(H={})).ASSET_CLASS="assetClass",i.PRODUCT_TYPE="productType",i.INVESTMENT_GROUP="investmentGroup",i.TAX_DATAPOINT="taxDataPoint",i.FILTER_BY_KEYWORDS="filterByKeywords",H;var i})(),Qi=d(76491),Ji=d(61486),Mi=d(13413),we=d(81134),$i=d(90490),Yi=d(67691),Bi=d.n(Yi),Hi=d(11873),Ne=d.n(Hi),xe=d(33927),Q=d(98220),Vi=d(70553),Fe=d(80509);class zi extends Fe.I{constructor(s,t){super(s,t)}toDomain(s){const t=[];return s.forEach(n=>{const a=this.createMapper(Wi).toDomain(n);a&&t.push(a)}),t}}class Wi extends Fe.I{constructor(s,t){super(s,t)}createShareclassKey(s,t){return t?`${s}-${t}`:s}toDomain(s){const t=s.fundid,n=this.createShareclassKey(s.fundid,s.shclcode);return{fundId:t,shareClassCode:s.shclcode,fundName:s.fundname,taxYear:s.taxyear,foreignSourceIncome:s.frgnsrcincm,foreignSourceQualifiedDividends:s.frgnsrcqualifieddivinc,directUSGovernmentObligations:s.directusgovtobligations,specifiedPvtActivityBondInterest:s.specifiedpvtbondinterest,dividendsReceivedDeduction:s.dividendsreceiveddeduction,section163:s.section163,indianaResidentTaxableIncome:s.indianaresdtaxincm,utahResidentTaxableIncome:s.utahresdtaxincm,stateFlag:"true"===s.stateflag?.toLowerCase(),primaryShareClass:s.prmryshclind,assetClass:s.assetclass,investmentGroup:s.investmentgroup,productType:s.producttype,cusip:s.cusip,ticker:s.ticker,taId:s.taid,productTaxonomy:s.webprdcttaxonomy,primaryShareClassIndicator:"yes"===s.prmryshclind?.toLowerCase(),shareClassName:s.shareclassname,shareClassKey:n,isSoftLaunchShareClass:this.mapperParams?.config?.isSoftLaunchShareClass(n)||!1}}}var Xi=d(86663),Ki=d(92534);C.Y.getLogger("TaxListInfoDataService");let ji=(()=>{class i extends Vi.v{constructor(t,n,a){super(t,n),this.mapperFactory=a}register(t){return super.register(t,this.getVariables()).pipe((0,xe.U)(n=>{const a=n?.data?.TaxListInfo?n?.data?.TaxListInfo:null;return this.mapperFactory.createMapper(zi,{config:this.siteConfigService}).toDomain(a)}))}getVariables(){return{countrycode:this.getCountry(),languagecode:this.getLanguage()}}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(Xi._M),e.LFG(he.r5),e.LFG(Ki.$))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var en=d(76798);const me=C.Y.getLogger("TaxListInfoService"),nn=["foreignSourceIncome","foreignSourceQualifiedDividends","directUSGovernmentObligations","specifiedPvtActivityBondInterest","dividendsReceivedDeduction","section163","indianaResidentTaxableIncome","utahResidentTaxableIncome","stateFlag"];var pe=(()=>{return(i=pe||(pe={})).MUTUAL_FUNDS="Mutual Funds",i.EXCHANGE_TRADED_FUNDS="ETFs",i.SEPARATELY_MANAGED_ACCOUNTS="Managed Accounts",i.VARIABLE_INSURANCE_OPTIONS="Variable Insurance",i.INTERVAL_FUNDS="Interval Funds",i.MONEY_FUNDS="Money Market Funds",i["529_PORTFOLIOS"]="529 Portfolios",i.CLOSED_END_FUNDS="Closed-End Funds",i.INSTITUTIONAL_FUNDS="TIF",pe;var i})();const an=["fundId","fundName","shareClassName","cusip","ticker","taId"];let De=(()=>{class i{constructor(t,n,a,o,l,f,h){this.taxListInfoDataService=t,this.siteConfigService=n,this.translateService=a,this.excelDownloadService=o,this.fundOverviewService=l,this.personalisationService=f,this.usServicingService=h,this.state={},this.taxListInfoListing=[],this.favoriteList=[],this.featuredList=[],this.isFeaturedListPopulated=!1,this.isFavoritePopulated=!1,this.unsubscribe$=new w.xQ,this.isActiveListUpdatedByFirmFunds=!1,this.taxListInfoState$=new Mi.t,this.pagedRecords=new r.B54(1e4),this.totalSelectedRows$=new w.xQ,this.personalisationService.getIsActiveListUpdatedByFirm$()?.pipe((0,N.R)(this.unsubscribe$))?.subscribe(x=>this.isActiveListUpdatedByFirmFunds=x)}getTaxListInfoState$(){return this.taxListInfoState$.asObservable()}populate(t){this.selectedFilters={searchedText:"",selectedDropdowns:[]},this.taxListInfoDataService.register(Bi()).pipe((0,N.R)(this.unsubscribe$)).subscribe(n=>{me.debug("Tax List Info Feed: ",n),this.processState(n,t)},n=>{me.error("Error in fetching tax list info feed from PDS: ",n),this.taxListInfoState$.error(n)})}processState(t,n){try{if(this.isActiveListUpdatedByFirmFunds){const o=[],l=this.siteConfigService.getActiveListFundIds();t.forEach(f=>{for(const h of l)f.fundStatus!==le.inactive&&h===f.fundId&&o.push(f)}),this.taxListInfoListing=this.formatTaxListInfoData(o)}else{const o=t.filter(l=>l.fundStatus!==le.inactive&&this.isDisplayedShareClass(l.shareClassKey));this.taxListInfoListing=this.formatTaxListInfoData(o)}const a=this.taxListInfoListing.filter(o=>o.isPrimaryShareClass);this.state.filters=this.extractFiltersData(a),this.state?.taxYear||(this.state.taxYear=this.taxListInfoListing[0]?.taxYear||""),this.state.action=ne.INITIAL_LOAD,n?.includes(q.HELD_PRODUCTS)?this.setFeaturedList(q.HELD_PRODUCTS):n?.includes(q.FAVORITE_PRODUCTS)?this.setFavoriteList(q.FAVORITE_PRODUCTS):this.setAllFunds(q.ALL_FUNDS)}catch(a){me.error("Error in processing feed and assigning state: ",a),this.state.isLoaded=!1,this.taxListInfoState$.next(this.state)}}setAllFunds(t){const n=this.taxListInfoListing.filter(a=>a.isPrimaryShareClass);this.setInitialLoadData(n,t)}setFavoriteList(t){this.isFavoritePopulated?this.setInitialLoadData(this.favoriteList,t):this.usServicingService.getFavorites$().subscribe(n=>{me.debug("favorite funds : ",n);const a=this.mappedFundLists(n);this.favoriteList=this.sortTaxListInfoListing(a),this.isFavoritePopulated=!0,this.setInitialLoadData(this.favoriteList,t)}),0===this.favoriteList.length&&!this.isFavoritePopulated&&this.setInitialLoadData(this.favoriteList,t)}setFeaturedList(t){this.isFeaturedListPopulated?this.setInitialLoadData(this.featuredList,t):this.personalisationService.getPersonalDataWithProducts$().subscribe(n=>{this.featuredList=this.mappedFundLists(n.products),this.isFeaturedListPopulated=!0,this.setInitialLoadData(this.featuredList,t)}),0===this.featuredList.length&&!this.isFeaturedListPopulated&&this.setInitialLoadData(this.featuredList,t)}mappedFundLists(t){const n=[];if(t?.length>0)for(const a of t)this.taxListInfoListing.forEach(o=>{const l=n.some(f=>f.fundId===o.fundId);o.fundId===a.fundId&&o.isPrimaryShareClass&&!l&&n.push(o)});return n}
1setInitialLoadData(t,n){this.state.recordDetails={total:t.length,filtered:t.length},this.state.action=ne.INITIAL_LOAD,this.state.isLoaded=!0,this.filterListing(this.selectedFilters,n)}formatTaxListInfoData(t){return this.sortTaxListInfoListing(t.map(n=>{const a=this.siteConfigService.getDefaultIdentifierKey(n.productTaxonomy),o=a?n[a]:null;return{fundId:n.fundId,fundName:n.fundName,fundShareClassId:`${n.fundId}-${n.shareClassCode}`,shareClassCode:n.shareClassCode,shareClassName:n.shareClassName,productType:n.productType,taxYear:n.taxYear,cusip:n.cusip,ticker:n.ticker,investmentGroup:n.investmentGroup,taId:n.taId,assetClass:n.assetClass,foreignSourceIncome:(0,Q.rl)(n.foreignSourceIncome),foreignSourceQualifiedDividends:(0,Q.rl)(n.foreignSourceQualifiedDividends),directUSGovernmentObligations:(0,Q.rl)(n.directUSGovernmentObligations),specifiedPvtActivityBondInterest:(0,Q.rl)(n.specifiedPvtActivityBondInterest),dividendsReceivedDeduction:(0,Q.rl)(n.dividendsReceivedDeduction),section163:(0,Q.rl)(n.section163),indianaResidentTaxableIncome:(0,Q.rl)(n.indianaResidentTaxableIncome),utahResidentTaxableIncome:(0,Q.rl)(n.utahResidentTaxableIncome),stateFlag:n.stateFlag,primaryShareClass:n.primaryShareClass,productTaxonomy:n.productTaxonomy,isPrimaryShareClass:n.primaryShareClassIndicator,link:this.siteConfigService.getFundLink(n.fundId,n.shareClassCode,n.fundName,o)+"#fund-tax",isSoftLaunchShareClass:n.isSoftLaunchShareClass}}))}sortTaxListInfoListing(t){return t.sort((n,a)=>{const o=n.fundName.localeCompare(a.fundName);return 0===o?n.shareClassName.localeCompare(a.shareClassName):o})}extractFiltersData(t){const n=[],a=this.siteConfigService.getTaxInfoFilterOptions();return a.length>0&&a.forEach(o=>{const l=be()(t.map(h=>h[H[o]]).filter(h=>"money funds"!==h?.toLowerCase()).sort((h,x)=>h.localeCompare(x))),f=[];if(H[o]===H.PRODUCT_TYPE){const h=this.siteConfigService.getTaxInfoProductTypeFilterOptions();h.length>0&&h.forEach(x=>{f.push({label:this.translateService.instant(`products.capgains-filter-producttype-${pe[x]?.toLowerCase().split(" ").join("-")}`),value:pe[x],checked:!1})})}else l.map(h=>{h&&f.push({label:h,value:h,checked:!1})});H[o]===H.TAX_DATAPOINT&&nn.forEach(h=>{f.push({label:this.translateService.instant(`products.us-tax-info-page-${h.toLowerCase().split(" ").join("-")}`),value:h,checked:!1})}),n.push({filterLabel:o,filterName:H[o],filterItems:f})}),n}filterListing(t,n){let a=[];this.selectedFilters=t,a=n===q.HELD_PRODUCTS?this.featuredList:n===q.FAVORITE_PRODUCTS?this.favoriteList:this.taxListInfoListing.filter(l=>l.isPrimaryShareClass);const o=t?.selectedDropdowns.some(l=>l.filterItems.map(f=>f.value).length);if(o||t?.searchedText){if(o&&t.selectedDropdowns.forEach(l=>{const f=l.filterItems.map(h=>h.value);f.length&&(a=a.filter(h=>"taxDataPoint"===l.filterName?f.every(x=>"stateFlag"===x?h[x]:h[x]!==ee.Sk):f.includes(h[l.filterName])))}),t?.searchedText){const l=this.taxListInfoListing.filter(f=>!f.isPrimaryShareClass&&a.some(h=>h.fundId===f.fundId));a=this.sortTaxListInfoListing([...a,...l].filter(f=>an.some(h=>this.isSearchTermMatched(f,h,t.searchedText.toLowerCase()))))}this.state.action=ne.FILTER_ROWS}this.state.recordDetails.filtered=a.length,this.pagedRecords.records=m()(a),this.taxListInfoState$.next(this.state)}isSearchTermMatched(t,n,a){switch(n){case"fundId":case"fundName":return t[n].toLowerCase().includes(a)&&t.isPrimaryShareClass;case"cusip":case"ticker":case"taId":default:return t[n].toLowerCase().includes(a);case"shareClassName":return t[n].toLowerCase()===a}return!1}getCurrentPage$(){return this.pagedRecords.currentPage$}handleDownloadAction(t,n){let a=[],o=[];switch(t){case X.SELECTED:o=this.taxListInfoListing.filter(x=>x.isPrimaryShareClass&&x.isChecked);break;case X.FILTERED:o=this.pagedRecords.records.filter(x=>x.isPrimaryShareClass);break;case X.SINGLE:o=this.taxListInfoListing.filter(x=>x.isPrimaryShareClass&&x.fundId===n);break;default:o=this.taxListInfoListing.filter(x=>x.isPrimaryShareClass)}const l=new Set,f=o.filter(x=>x.stateFlag&&!x.isTaxExemptAvailable);o.filter(x=>x.stateFlag&&x.isTaxExemptAvailable).forEach(x=>{x.taxExemptData?.forEach(P=>l.add(P.label))}),f&&(a=f.map(x=>({fundId:x.fundId,shareClassCode:x.shareClassCode,year:Number(x.taxYear)}))),this.fetchTaxInfoStates$(a).subscribe(x=>{let P=0;const z=x.values()?[...x.values()]:[];z.forEach(R=>
1{R.states.forEach(re=>l.add(re.label))});const ae=[...l].sort(),ue=o.map(R=>{const re=Array(ae.length).fill(A.Og);if(R.stateFlag){const Te=R.isTaxExemptAvailable?{fundId:R.fundId,states:R.taxExemptData}:z.find(wa=>R.fundId===wa.fundId);this.updateStateValue(ae,re,Te)}return[(0,A.Iq)(R.fundName,"s"),(0,A.Iq)((0,Q.rl)(R.directUSGovernmentObligations),"s"),(0,A.Iq)((0,Q.rl)(R.dividendsReceivedDeduction),"s"),(0,A.Iq)((0,Q.rl)(R.foreignSourceIncome),"s"),(0,A.Iq)((0,Q.rl)(R.foreignSourceQualifiedDividends),"s"),(0,A.Iq)((0,Q.rl)(R.specifiedPvtActivityBondInterest),"s"),(0,A.Iq)((0,Q.rl)(R.section163),"s"),(0,A.Iq)((0,Q.rl)(R.indianaResidentTaxableIncome),"s"),(0,A.Iq)((0,Q.rl)(R.utahResidentTaxableIncome),"s"),...re]}),oe=[(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-fundname")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-directusgovernmentobligations")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-dividendsreceiveddeduction")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-foreignsourceincome")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-foreignsourcequalifieddividends")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-specifiedpvtactivitybondinterest")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-section163"),"s"),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-indianaresidenttaxableincome")),(0,A.Iq)(this.translateService.instant("products.us-tax-info-page-utahresidenttaxableincome"))];ae.length&&(P=oe.length),ae.forEach(R=>oe.push((0,A.Iq)(R))),ue.unshift(oe),(0,ye.D)([this.excelDownloadService.getProximalCaveat$("USTaxInfoExcelBottom"),this.excelDownloadService.getProximalCaveat$("USTaxInfoExcelTop")]).subscribe(R=>{const[re,Te]=R;this.exportToExcel(ue,Te,re,P)})})}updateStateValue(t,n,a){a&&a.states.forEach(o=>{n[t.indexOf(o.label)]=(0,A.Iq)(o.val,"s")})}exportToExcel(t,n,a,o){d.e("node_modules_xlsx_xlsx_js").then(d.t.bind(d,88031,23)).then(l=>{const f=l.utils.aoa_to_sheet(n),h=l.utils.book_new(),x=this.translateService.instant("products.us-tax-info-excel-name")+"-"+L()().format("MMDDYYYY")+".xlsx";f["!cols"]=this.fitToColumn(t);const P=[this.translateService.instant("products.us-tax-info-page-stateflag")];o&&l.utils.sheet_add_aoa(f,[P],{origin:{r:n.length,c:o}}),l.utils.sheet_add_aoa(f,t,{origin:"A"+(n.length+2)}),l.utils.sheet_add_aoa(f,a,{origin:"A"+(n.length+2+t.length+2)}),l.utils.book_append_sheet(h,f),l.writeFile(h,x)})}fitToColumn(t){return t[0].map((n,a)=>({wch:Math.max(...t.map(o=>o[a]?.v?.toString().length))}))}fetchTaxInfoStates$(t){return Array.isArray(t)&&0!==t.length?(0,$i.$R)(...t.map(n=>this.fundOverviewService.register(Ne(),n))).pipe((0,xe.U)(n=>{const a=[];return n.forEach(o=>{o?.shareClasses[0]&&a.push({fundId:o?.shareClasses[0]?.identifiers?.fundId,states:o?.shareClasses[0]?.tax?.states})}),a})):(0,we.of)([])}updateSelection(t){let n=[];if(t.itemsChanged===de.ALL)n=this.taxListInfoListing.filter(a=>this.pagedRecords.records.some(o=>a.fundId===o.fundId&&a.shareClassCode===o.shareClassCode)),n.forEac
1h(a=>a.isChecked=t.isChecked);else if(t.itemsChanged===de.INDIVIDUAL){const a=this.taxListInfoListing.find(o=>o.fundId===t.item.fundId&&o.shareClassCode===t.item.shareClassCode);a.isChecked=t.isChecked,n=[a]}this.updateStateInfo$(n).subscribe(a=>{a&&this.totalSelectedRows$.next(this.taxListInfoListing.reduce((o,l)=>l.isPrimaryShareClass&&l.isChecked?o+1:o,0))})}getTotalSelectedRows$(){return this.totalSelectedRows$.asObservable()}getTaxInfoTaxExemptData$(t){return this.fundOverviewService.register(Ne(),t)}getSelectedTaxInfo(){return this.taxListInfoListing.filter(t=>t.isPrimaryShareClass&&t.isChecked)}updateStateInfo$(t){const n=t.filter(a=>a.stateFlag&&a.isChecked&&!a.isTaxExemptAvailable);if(n){const a=n.map(o=>({fundId:o.fundId,shareClassCode:o.shareClassCode,year:Number(o.taxYear)}));return this.fetchTaxInfoStates$(a).pipe((0,xe.U)(o=>([...o.values()].forEach(f=>{const h=t.find(x=>x.fundId===f.fundId);h&&(h.isTaxExemptAvailable=!0,h.taxExemptData=f.states)}),!0)))}return(0,we.of)(!0)}isDisplayedShareClass(t){return this.siteConfigService?.isActiveShareClass(t)||this.siteConfigService?.isSoftClosedShareClass(t)||this.siteConfigService?.isSoftLaunchShareClass(t)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(ji),e.LFG(he.r5),e.LFG(S.s),e.LFG(A.O_),e.LFG(Ie.T),e.LFG(_.Cc),e.LFG(en.z))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const on=["filterSearch"],rn=["filterDropdowns"];function ln(i,s){if(1&i&&(e.TgZ(0,"p",14),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"b"),e._uU(4),e.qZA(),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"b"),e._uU(8),e.qZA(),e._uU(9),e.ALo(10,"translate"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,5,"products.ppss-listing-shows")," "),e.xp6(3),e.Oqu(t.filteredRecords),e.xp6(1),e.hij(" ",e.lcZ(6,7,"products.ppss-listing-of")," "),e.xp6(3),e.Oqu(t.totalRecords),e.xp6(1),e.hij(" ",e.lcZ(10,9,"products.ppss-listing-items")," ")}}function dn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"span",16),e._uU(2,"|"),e.qZA(),e.TgZ(3,"eds-link-item",17),e.NdJ("click",function(a){return e.CHM(t),e.oxw().onFilterReset(a)}),e.ALo(4,"translate"),e.qZA(),e.qZA()}2&i&&(e.xp6(3),e.Q6J("title",e.lcZ(4,2,"products.ppss-filter-reset"))("hasIcon",!0))}const ve=function(){return{s:"4",m:"3",l:"auto"}};function cn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"eds-dropdown",18,19),e.NdJ("dropdownChange",function(a){e.CHM(t);const o=e.oxw();return o.onDropdownChange(o.productTypeFilter.filterName,a)}),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("columnNumbers",e.DdM(16,ve)),e.xp6(1),e.Q6J("dropdownId",t.productTypeFilter.filterName)("multi",!0)("items",t.productTypeFilter.filterItems)("label",e.lcZ(4,10,"products.ppss-filter-"+t.productTypeFilter.filterLabel))("titleText",e.lcZ(5,12,"products.ppss-filter-select"))("selectedText",e.lcZ(6,14,"products.ppss-filter-selected")),e.uIk("aria-label",e.lcZ(3,8,"products.ppss-filter-"+t.productTypeFilter.filterLabel))}}function pn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-dropdown",23,19),e.NdJ("dropdownChange",function(a){const l=e.CHM(t).$implicit;return e.oxw(2).onDropdownChange(l.filterName,a)}),e.ALo(2,"async"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw(2);e.Udp("white-space","nowrap"),e.Q6J("columnNumbers",e.DdM(21,ve))("isActiveMenuLeft",!1===e.lcZ(2,11,n.isHandheld$))("dropdownId",t.filterName)("multi",!0)("items",t.filterItems)("label",e.lcZ(4,15,"products.ppss-filter-"+t.filterLabel))("titleText",e.lcZ(5,17,"products.ppss-filter-select"))("selectedText",e.lcZ(6,19,"products.ppss-filter-selected")),e.uIk("aria-label",e.lcZ(3,13,"products.ppss-filter-"+t.filterLabel))}}function un(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-search",24,25),e.NdJ("searchTerm",function(a){return e.CHM(t),e.oxw(2).onSearchInput(a)}),e.ALo(2,"translate"),e.qZA()}2&i&&e.Q6J("columnNumbers",e.DdM(4,ve))("placeholder",e.lcZ(2,2,"products.ppss-filter-search-placeholder"))}function gn(i,s){if(1&i&&(e.TgZ(0,"div",20),e.YNc(1,pn,7,22,"eds-dropdown",21),e.YNc(2,un,3,5,"eds-search",22),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.otherFilterTypes),e.xp6(1),e.Q6J("ngIf",t.isSearchByKeyword)}}const mn=function(){return{s:"4",m:"3",l:"7"}};let fn=(()=>{class i{constructor(t){this.responsiveService=t,this.taxYear="",this.filterListing=new e.vpe,this.debouncer$=new w.xQ,this.componentDestroyed$=new w.xQ,this.selectedFilters={selectedDropdowns:[],searchedText:""},this.isAnyFilterPresent=!1,this.showDownload=!0,this.isSearchByKeyword=!1,this.downloadTypes=[],this.downloadEvent=new e.vpe}ngOnInit(){this.debouncer$.pipe((0,N.R)(this.componentDestroyed$),(0,E.b)(500),(0,V.x)()).subscribe(t=>{this.selectedFilters.searchedText=t,[1,2].includes(t.length)||this.filterListing.next(this.selectedFilters)}),this.isHandheld$=this.responsiveService.isHandheld$()}ngOnChanges(t){if(t.filters?.currentValue){const n=t.filters.currentValue;this.isAnyFilterPresent=n.length>0,this.productTypeFilter=n?.find(a=>a.filterName===H.PRODUCT_TYPE),this.otherFilterTypes=n?.filter(a=>a.filterName!==H.FILTER_BY_KEYWORDS&&a.filterName!==H.PRODUCT_TYPE),this.isSearchByKeyword=n?.some(a=>a.filterName===H.FILTER_BY_KEYWORDS)}
1if(t.recordDetails?.currentValue){const n=t.recordDetails.currentValue;this.totalRecords=n?.total,this.filteredRecords=n?.filtered}}onDropdownChange(t,n){let a,o;this.selectedFilters.selectedDropdowns.find((l,f)=>{l.filterName===t&&(a=l,o=f)}),a?n.length?a.filterItems=n:this.selectedFilters.selectedDropdowns.splice(o,1):this.selectedFilters.selectedDropdowns.push({filterName:t,filterItems:n}),this.filterListing.next(this.selectedFilters)}onSearchInput(t){this.debouncer$.next(t.trim())}onFilterReset(t){t.preventDefault(),this.filterDropdowns.forEach(n=>n.reset()),this.filterSearch.value="",this.filterSearch.hasTyped=!1,this.selectedFilters={selectedDropdowns:[],searchedText:""},this.filterListing.next(this.selectedFilters)}selectDownloadType(t){let n;switch(t){case 0:default:n=X.ALL;break;case 1:n=X.FILTERED}this.downloadEvent.emit(n)}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(r.kzD))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-tax-list-info-filters"]],viewQuery:function(t,n){if(1&t&&(e.Gf(on,5),e.Gf(rn,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.filterSearch=a.first),e.iGM(a=e.CRH())&&(n.filterDropdowns=a)}},inputs:{filters:"filters",recordDetails:"recordDetails",taxYear:"taxYear",downloadTypes:"downloadTypes"},outputs:{filterListing:"filterListing",downloadEvent:"downloadEvent"},features:[e.TTD],decls:22,vars:32,consts:[["theme","dark",1,"tax-list-info-filters",3,"edsSpacing"],["edsGrid","","edsPadding","","edsPaddingBottom","sm"],["edsPadding","",1,"container","container--wide",3,"edsPaddingTop"],["edsRow",""],["edsCol","",3,"columnNumbers"],["edsFlexbox","","edsPadding","","edsPaddingTop","sm",3,"flexDirection","alignItems"],["size","h2","edsSpacing","none","edsPadding","","edsPaddingRight","sm",3,"level","isLight"],["edsFlexbox","","alignItems","center",1,"tax-list-info-filters__total-records-row",3,"edsSpacing"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm",4,"ngIf"],["type","xls","size","normal"],["edsPadding","","edsPaddingRight","sm","alignPosition","right","theme","dark","ariaLabelledby","BasicMenuControl",3,"title","items","isNonLinkableClickAction","menuItemSelectedWithIndexOutput"],["edsFlexbox","","alignItems","center",4,"ngIf"],["edsCol","",3,"columnNumbers",4,"ngIf"],["edsRow","","edsPadding","","edsPaddingTop","md",4,"ngIf"],["edsSpacing","none","edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","alignItems","center"],["edsPadding","","edsPaddingRight","sm"],["edsFlexbox","","justifyContent","flex-end","theme","dark","type","reset",1,"text-white",3,"title","hasIcon","click"],["edsSpacing","none","name","drop-down","edsPadding","","edsPaddingLeft","none","edsFlexItem","","flexGrow","1","justifyContent","flex-end",3,"dropdownId","multi","items","label","titleText","selectedText","dropdownChange"],["filterDropdowns",""],["edsRow","","edsPadding","","edsPaddingTop","md"],["edsCol","","edsSpacing","md","name","drop-down",3,"columnNumbers","isActiveMenuLeft","whiteSpace","dropdownId","multi","items","label","titleText","selectedText","dropdownChange",4,"ngFor","ngForOf"],["edsCol","","fieldId","search__field","edsSpacing","md","edsPadding","","edsPaddingLeft","none","flexGrow","1","edsPaddingBottom","md",3,"columnNumbers","placeholder","searchTerm",4,"ngIf"],["edsCol","","edsSpacing","md","name","drop-down",3,"columnNumbers","isActiveMenuLeft","dropdownId","multi","items","label","titleText","selectedText","dropdownChange"],["edsCol","","fieldId","search__field","edsSpacing","md","edsPadding","","edsPaddingLeft","none","flexGrow","1","edsPaddingBottom","md",3,"columnNumbers","placeholder","searchTerm"],["filterSearch",""]],template:function(t,n){1&t&&(e.TgZ(0,"eds-panel",0),e.ALo(1,"async"),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.ALo(4,"async"),e.TgZ(5,"div",3),e.TgZ(6,"div",4),e.TgZ(7,"div",5),e.ALo(8,"async"),e.ALo(9,"async"),e.TgZ(10,"eds-title",6),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"div",7),e.ALo(14,"async"),e.YNc(15,ln,11,11,"p",8),e._UZ(16,"eds-icon",9),e.TgZ(17,"eds-flyout-menu",10),e.NdJ("menuItemSelectedWithIndexOutput",function(o){return n.selectDownloadType(o)}),e.ALo(18,"translate"),e.qZA(),e.YNc(19,dn,5,4,"div",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(20,cn,7,17,"div",12),e.qZA(),e.YNc(21,gn,3,2,"div",13),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("edsSpacing",e.lcZ(1,17,n.isH
1andheld$)?"lg":"md"),e.xp6(3),e.Q6J("edsPaddingTop",e.lcZ(4,19,n.isHandheld$)?"md":"xs"),e.xp6(3),e.Q6J("columnNumbers",e.DdM(31,mn)),e.xp6(1),e.Q6J("flexDirection",e.lcZ(8,21,n.isHandheld$)?"column":"row")("alignItems",e.lcZ(9,23,n.isHandheld$)?"flex-start":"center"),e.xp6(3),e.Q6J("level",1)("isLight",!0),e.xp6(1),e.AsE("",n.taxYear+" ","",e.lcZ(12,25,"products.us-tax-info-page-heading")," "),e.xp6(2),e.Q6J("edsSpacing",e.lcZ(14,27,n.isHandheld$)?"sm":"none"),e.xp6(2),e.Q6J("ngIf",n.totalRecords),e.xp6(2),e.Q6J("title",e.lcZ(18,29,"products.us-tax-info-excel-download-options"))("items",n.downloadTypes)("isNonLinkableClickAction",!0),e.xp6(2),e.Q6J("ngIf",n.isAnyFilterPresent&&((null==n.selectedFilters||null==n.selectedFilters.selectedDropdowns?null:n.selectedFilters.selectedDropdowns.length)||(null==n.selectedFilters?null:n.selectedFilters.searchedText))),e.xp6(1),e.Q6J("ngIf",n.isAnyFilterPresent&&n.productTypeFilter),e.xp6(1),e.Q6J("ngIf",n.isAnyFilterPresent))},directives:[r.yXm,r.OPD,r.ljP,r.cph,r.vZ,r.iKq,r.Wxy,r.r3N,v.O5,r.oJW,r.LKM,r.zj4,r.JOL,r.R65,v.sg,r.gSk],pipes:[v.Ov,Z.X],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tax-list-info-filters__loader[_ngcontent-%COMP%]{display:inline-flex;position:relative;width:1.5rem;height:1.5rem}[_nghost-%COMP%] .tax-list-info-filters__total-records-row[_ngcontent-%COMP%]{flex-shrink:0}"]}),i})();var hn=d(10487);function _n(i,s){if(1&i&&(e.TgZ(0,"a",15),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("href",null==t.taxInfoItem?null:t.taxInfoItem.link,e.LSH),e.xp6(1),e.Oqu(t.taxInfoItem.fundName)}}function xn(i,s){if(1&i&&(e.TgZ(0,"tr",9),e.TgZ(1,"td",10),e.GkF(2,11),e.qZA(),e.TgZ(3,"td",10),e.YNc(4,_n,2,2,"a",12),e.qZA(),e.TgZ(5,"td",13),e._uU(6),e.qZA(),e.TgZ(7,"td",13),e._uU(8),e.qZA(),e.TgZ(9,"td",13),e._uU(10),e.qZA(),e.TgZ(11,"td",14),e.GkF(12,11),e.qZA(),e.qZA()),2&i){e.oxw();const t=e.MAs(8),n=e.MAs(16),a=e.MAs(10),o=e.oxw();e.ekj("dynamic-table__tr--has-borders",!o.isExpanded),e.xp6(2),e.Q6J("ngTemplateOutlet",t),e.xp6(2),e.Q6J("ngIf",!o.taxInfoItem.isSoftLaunchShareClass)("ngIfElse",n),e.xp6(2),e.hij(" ",o.taxInfoItem.directUSGovernmentObligations," "),e.xp6(2),e.hij(" ",o.taxInfoItem.dividendsReceivedDeduction," "),e.xp6(2),e.hij(" ",o.taxInfoItem.foreignSourceIncome," "),e.xp6(2),e.Q6J("ngTemplateOutlet",a)}}function vn(i,s){if(1&i&&(e.TgZ(0,"tr",16),e.TgZ(1,"td",10),e._uU(2,"\xa0"),e.qZA(),e.TgZ(3,"td",17),e.TgZ(4,"eds-panel",18),e.GkF(5,11),e.qZA(),e.qZA(),e.qZA()),2&i){e.oxw();const t=e.MAs(12);e.xp6(4),e.Q6J("hasPadding",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Tn(i,s){if(1&i&&(e.TgZ(0,"a",27),e.TgZ(1,"eds-title",28),e._uU(2),e.qZA(),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("href",null==t.taxInfoItem?null:t.taxInfoItem.link,e.LSH),e.xp6(1),e.Q6J("level",3)("isLight",!0),e.xp6(1),e.hij(" ",t.taxInfoItem.fundName," ")}}function Cn(i,s){if(1&i&&(e.ynx(0),e._UZ(1,"eds-info-item",29),e.BQk()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("info",t)}}function Sn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).toggleExpand()}),e.TgZ(1,"span",31),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"eds-icon",32),e.qZA()}2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.us-tax-info-page-accordion-collapse")))}function bn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).toggleExpand()}),e.TgZ(1,"span",31),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"eds-icon",34),e.qZA()}2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.us-tax-info-page-accordion-expand")))}function An(i,s){if(1&i&&(e.TgZ(0,"eds-panel",35),e.ALo(1,"async"),e.GkF(2,11),e.qZA()),2&i){e.oxw(2);const t=e.MAs(12),n=e.oxw();e.ekj("tax-info-row__additional-panel--is-card-view",!0===e.lcZ(1,3,n.isCardView$)),e.xp6(2),e.Q6J("ngTemplateOutlet",t)}}function yn(i,s){if(1&i&&(e.TgZ(0,"eds-panel",19),e.TgZ(1,"div",20),e.GkF(2,11),e.YNc(3,Tn,3,4,"a",21),e.qZA(),e.TgZ(4,"div",22),e.YNc(5,Cn,2,1,"ng-container",23),e.qZA(),e.YNc(6,Sn,5,3,"button",24),e.YNc(7,bn,5,3,"button",25),e.YNc(8,An,3,5,"eds-panel",26),e.qZA()),2&i){e.oxw();const t=e.MAs(8),n=e.MAs(16),a=e.oxw();e.Q6J("hasBorders",!0)("hasBorderRadius",!1)("hasPadding",!0),e.xp6(2),e.Q6J("ngTemplateOutlet",t),e.xp6(1),e.Q6J("ngIf",!a.taxInfoItem.isSoftLaunchShareClass)("ngIfElse",n),e.xp6(2),e.Q6J("ngForOf",a.mobilePrimaryData),e.xp6(1),e.Q6J("ngIf",a.isExpanded),e.xp6(1),e.Q6J("ngIf",!a.isExpanded),e.xp6(1),e.Q6J("ngIf",a.isExpanded)}}function Zn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-checkbox",36),e.NdJ("checkedChange",function(a){return e.CHM(t),e.oxw(2).onToggle(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("hideLabel",!0)("inline",!0)("labelName",null==t.taxInfoItem?null:t.taxInfoItem.fundName)("checked",null==t.taxInfoItem?null:t.taxInfoItem.isChecked)}}function In(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).toggleExpand()}),e.TgZ(1,"span",31),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"eds-icon",32),e.qZA()}
12&i&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.us-tax-info-page-accordion-collapse")))}function kn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).toggleExpand()}),e.TgZ(1,"span",31),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"eds-icon",34),e.qZA()}2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.us-tax-info-page-accordion-expand")))}function Ln(i,s){if(1&i&&(e.YNc(0,In,5,3,"button",37),e.YNc(1,kn,5,3,"button",37)),2&i){const t=e.oxw(2);e.Q6J("ngIf",t.isExpanded),e.xp6(1),e.Q6J("ngIf",!t.isExpanded)}}function wn(i,s){if(1&i&&(e.TgZ(0,"tr",48),e.TgZ(1,"th",49),e._uU(2),e.qZA(),e.TgZ(3,"td",50),e._uU(4),e.qZA(),e.qZA()),2&i){const t=s.$implicit;e.xp6(2),e.hij(" ",null==t?null:t.label," "),e.xp6(2),e.hij(" ",null==t?null:t.val," ")}}function Nn(i,s){if(1&i&&(e.TgZ(0,"tr",48),e.TgZ(1,"th",49),e._uU(2),e.qZA(),e.TgZ(3,"td",50),e._uU(4),e.qZA(),e.qZA()),2&i){const t=s.$implicit;e.xp6(2),e.Oqu(t.label),e.xp6(2),e.Oqu(t.val)}}function Fn(i,s){if(1&i&&(e.TgZ(0,"tbody",42),e.YNc(1,Nn,5,2,"tr",43),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngForOf",t.taxInfoItem.taxExemptData)}}function Dn(i,s){if(1&i&&(e.TgZ(0,"table",51),e.TgZ(1,"caption",41),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Fn,2,1,"tbody",52),e.qZA()),2&i){e.oxw(2);const t=e.MAs(14),n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,3,"products.us-tax-info-page-stateflag")," "),e.xp6(2),e.Q6J("ngIf",(null==n.taxInfoItem?null:n.taxInfoItem.isTaxExemptAvailable)&&(null==n.taxInfoItem?null:n.taxInfoItem.taxExemptData))("ngIfElse",t)}}function Pn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",39),e.ALo(1,"async"),e.TgZ(2,"table",40),e.TgZ(3,"caption",41),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"tbody",42),e.YNc(7,wn,5,2,"tr",43),e.qZA(),e.qZA(),e.YNc(8,Dn,5,5,"table",44),e.TgZ(9,"div",45),e.TgZ(10,"eds-link-item",46),e.NdJ("click",function(a){return e.CHM(t),e.oxw(2).onDownloadExcel(a)}),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"span",47),e._uU(13,"|"),e.qZA(),e.TgZ(14,"eds-link-item",46),e.NdJ("click",function(a){return e.CHM(t),e.oxw(2).onPrintExcel(a)}),e.ALo(15,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.ekj("tax-info-row__wrapper--is-card-view",!0===e.lcZ(1,8,t.isCardView$)),e.xp6(2),e.Q6J("edsSpacing",t.taxInfoItem.stateFlag?"md":"sm"),e.xp6(2),e.hij(" ",e.lcZ(5,10,"products.us-tax-info-page-additional-section")," "),e.xp6(3),e.Q6J("ngForOf",t.additionalData),e.xp6(1),e.Q6J("ngIf",t.taxInfoItem.stateFlag),e.xp6(2),e.Q6J("title",e.lcZ(11,12,"products.us-tax-info-page-accordion-download")),e.xp6(4),e.Q6J("title",e.lcZ(15,14,"products.us-tax-info-page-accordion-print"))}}function En(i,s){1&i&&(e.TgZ(0,"div",54),e._UZ(1,"ngx-spinner",55),e.qZA()),2&i&&(e.xp6(1),e.Q6J("fullScreen",!1))}function Un(i,s){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"products.us-tax-info-page-additional-tax-no-data")))}function Rn(i,s){if(1&i&&(e.YNc(0,En,2,1,"div",53),e.YNc(1,Un,4,3,"div",0)),2&i){const t=e.oxw(2);e.Q6J("ngIf",t.taxInfoItem.stateFlag&&!t.isError),e.xp6(1),e.Q6J("ngIf",t.isError)}}function On(i,s){if(1&i&&e._uU(0),2&i){const t=e.oxw(2);e.hij(" ",t.taxInfoItem.fundName," ")}}function Gn(i,s){if(1&i&&(e.ynx(0),e.YNc(1,xn,13,9,"tr",1),e.ALo(2,"async"),e.YNc(3,vn,6,2,"tr",2),e.ALo(4,"async"),e.YNc(5,yn,9,10,"eds-panel",3),e.ALo(6,"async"),e.YNc(7,Zn,1,4,"ng-template",null,4,e.W1O),e.YNc(9,Ln,2,2,"ng-template",null,5,e.W1O),e.YNc(11,Pn,16,16,"ng-template",null,6,e.W1O),e.YNc(13,Rn,2,2,"ng-template",null,7,e.W1O),e.YNc(15,On,1,1,"ng-template",null,8,e.W1O),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,3,t.isCardView$)),e.xp6(2),e.Q6J("ngIf",t.isExpanded&&!1===e.lcZ(4,5,t.isCardView$)),e.xp6(2),e.Q6J("ngIf",!0===e.lcZ(6,7,t.isCardView$))}}const qn=C.Y.getLogger("TaxInfoRowComponent");let Qn=(()=>{class i{constructor(t,n,a,o,l){this.responsiveService=t,this.taxListInfoService=n,this.spinner=a,this.translateService=o,this.cdr=l,this.isExpanded=!1,this.isError=!1,this.expandAll=!1,this.unsubscribe$=new w.xQ,this.checkboxToggled=new e.vpe,this.print=new e.vpe,this.isCardView$=this.responsiveService.isBreakpointOrBelow$(r.IM0.Tablet)}ngOnInit(){this.spinner.show("taxExemptLoadingSpinner"),this?.taxInfoItem&&this.createMobileData()}ngOnChanges(){this.isExpanded=this.expandAll,this.expandAll&&this.expandData()}toggleExpand(){this.isExpanded=!this.isExpanded,this.expandData()}expandData(){this.taxInfoItem.stateFlag&&!this.taxInfoItem.isTaxExemptAvailable&&this.taxListInfoService.getTaxInfoTaxExemptData$({fundId:this.taxInfoItem.fundId,shareClassCode:this.taxInfoItem.shareClassCode,year:Number(this.taxInfoItem.taxYear)}).pipe((0,N.R)(this.unsubscribe$)).subscribe(t=>{const n=t?.shareClasses[0]?.tax?.states;this.taxInfoItem.taxExemptData=n,this.taxInfoItem.isTaxExemptAvailable=!0,this.cdr.detectChanges()},t=>{qn.error(`Error in fetching result: ${t}`),this.isError=!0,this.cdr.detectChanges()})}onToggle(t){this.checkboxToggled.emit(t)}createMobileData(){this.mobilePrimaryData=[{label:this.translateService.instant("products.us-tax-info-page-directusgovernmentobligations"),val:this.taxInfoItem.directUSGovernmentObligations},{label:this.translateService.instant("products.us-tax-info-page-dividendsreceiveddeduction"),val:this.taxInfoItem.dividendsReceivedDeduction},{label:this.translateService.instant("products.us-tax-info-page-foreignsourceincome"),val:this.taxInfoItem.foreignSourceIncome}],this.additionalData=[{label:this.translateService.instant("products.us-tax-info-page-foreignsourceincome"),val:this.taxInfoItem.foreignSourceIncome},{label:this.translateService.instant("products.us-tax-info-page-foreignsourcequalifieddividends"),val:this.taxInfoItem.foreignSourceQualifiedDividends},{label:this.translateService.instant("products.us-tax-info-page-directusgovernmentobligations"),val:this.taxInfoItem.directUSGovernmentObligations},{label:this.translateService.instant("products.us-tax-info-page-specifiedpvtactivitybondinterest"),val:this.taxInfoItem.specifiedPvtActivityBondInterest},{label:this.translateService.instant("products.us-tax-info-page-dividendsreceiveddeduction"),val:this.taxInfoItem.dividendsReceivedDeduction},{label:this.translateService.instant("products.us-tax-info-page-section163"),val:this.taxInfoItem.section163},{label:this.translateService.instant("products.us-tax-info-page-indianaresidenttaxableincome"),val:this.taxInfoItem.indianaResidentTaxableIncome},{label:this.translateService.instant("products.us-tax-info-page-utahresidenttaxableincome"),val:this.taxInfoItem.utahResidentTaxableIncome}]}
1onDownloadExcel(t){t?.preventDefault(),this.taxListInfoService.handleDownloadAction(X.SINGLE,this.taxInfoItem.fundId)}onPrintExcel(t){t?.preventDefault(),this.print.emit(this.taxInfoItem)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(r.kzD),e.Y36(De),e.Y36(ie.t2),e.Y36(S.s),e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-tax-info-row"]],inputs:{taxInfoItem:"taxInfoItem",expandAll:"expandAll"},outputs:{checkboxToggled:"checkboxToggled",print:"print"},features:[e.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["class","dynamic-table__tr",3,"dynamic-table__tr--has-borders",4,"ngIf"],["class","dynamic-table__tr dynamic-table__tr--has-borders",4,"ngIf"],["edsSpacing","lg",3,"hasBorders","hasBorderRadius","hasPadding",4,"ngIf"],["checkBoxTemplate",""],["toggleButtonTemplate",""],["addtionalInfoTemplate",""],["taxInfoMessage",""],["simpleFundName",""],[1,"dynamic-table__tr"],[1,"dynamic-table__td","dynamic-table__td--padding-md"],[3,"ngTemplateOutlet"],[3,"href",4,"ngIf","ngIfElse"],[1,"dynamic-table__td","dynamic-table__td--padding-md","dynamic-table__td--is-percent"],[1,"dynamic-table__td","dynamic-table__td--padding-md","tax-info-row__table-expand-td"],[3,"href"],[1,"dynamic-table__tr","dynamic-table__tr--has-borders"],["colspan","5",1,"dynamic-table__td","dynamic-table__td--padding-md"],["theme","grey",3,"hasPadding"],["edsSpacing","lg",3,"hasBorders","hasBorderRadius","hasPadding"],["edsSpacing","md",1,"cards-mobile__title"],["class","text-primary cards-mobile__title--link",3,"href",4,"ngIf","ngIfElse"],["edsSpacing","md"],[4,"ngFor","ngForOf"],["edsButton","icon-only","edsSpacing","md",3,"click",4,"ngIf"],["edsButton","icon-only",3,"click",4,"ngIf"],["theme","grey","class","tax-info-row__additional-panel",3,"tax-info-row__additional-panel--is-card-view",4,"ngIf"],[1,"text-primary","cards-mobile__title--link",3,"href"],["size","h6",3,"level","isLight"],["edsSpacing","sm",3,"info"],["edsButton","icon-only","edsSpacing","md",3,"click"],[1,"ft__btn__txt"],["type","carrot-up","size","small"],["edsButton","icon-only",3,"click"],["type","carrot-down","size","small"],["theme","grey",1,"tax-info-row__additional-panel"],[1,"checkbox-cell-renderer","dynamic-table__td--has-checkbox",3,"hideLabel","inline","labelName","checked","checkedChange"],["edsButton","icon-only","class","tax-info-row__table-expand-btn",3,"click",4,"ngIf"],["edsButton","icon-only",1,"tax-info-row__table-expand-btn",3,"click"],[1,"tax-info-row__wrapper"],["role","table",1,"tax-info-row__table",3,"edsSpacing"],[1,"tax-info-row__table-caption"],[1,"tax-info-row__table-tbody"],["class","tax-info-row__table-tr",4,"ngFor","ngForOf"],["class","tax-info-row__table","role","table","edsSpacing","sm",4,"ngIf"],["edsFlexbox","","flexWrap","wrap","justifyContent","flex-end"],["theme","basic",3,"title","click"],["edsPadding","","edsPaddingRight","xs","edsPaddingLeft","xs"],[1,"tax-info-row__table-tr"],[1,"tax-info-row__table-th"],[1,"tax-info-row__table-td"],["role","table","edsSpacing","sm",1,"tax-info-row__table"],["class","tax-info-row__table-tbody",4,"ngIf","ngIfElse"],["class","tax-info-row__table-loader",4,"ngIf"],[1,"tax-info-row__table-loader"],["name","taxExemptLoadingSpinner","bdColor","rgba(0,0,0,0)","size","small","color","#000","type","line-scale-party",3,"fullScreen"]],template:function(t,n){1&t&&e.YNc(0,Gn,17,9,"ng-container",0),2&t&&e.Q6J("ngIf",n.taxInfoItem)},directives:[v.O5,v.tP,r.INY,r.yXm,r.OPD,v.sg,r.r3N,r.b2$,r.Hq3,r.oJW,r.bK4,r.Wxy,r.zj4,r.cph,ie.Ro],pipes:[v.Ov,Z.X],styles:["[_nghost-%COMP%]{display:contents}.tax-info-row__table-loader[_ngcontent-%COMP%]{display:flex;position:relative;height:1.5rem}.tax-info-row__table-caption[_ngcontent-%COMP%]{display:block;text-align:left;font-weight:bold;font-size:20px;padding-bottom:var(--space-xs)}@media screen and (max-width: 1024px){.tax-info-row__table-caption[_ngcontent-%COMP%]{padding-bottom:var(--space-md)}}.tax-info-row__table-tbody[_ngcontent-%COMP%]{display:block;-moz-column-width:300px;column-width:300px;-moz-column-count:3;column-count:3;grid-column-gap:55px;-moz-column-gap:55px;column-gap:55px}.tax-info-row__table-tr[_ngcontent-%COMP%]{display:flex}.tax-info-row__table-td[_ngcontent-%COMP%]{flex:1;text-align:right;padding:0 0 var(--space-sm) 0}.tax-info-row__table-th[_ngcontent-%COMP%]{flex:1;text-align:left;page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid;padding:0 0 var(--space-sm) 0}.tax-info-row__table-expand-td[_ngcontent-%COMP%]{text-align:right}.tax-info-row__table-expand-btn[_ngcontent-%COMP%]{text-align:right}.tax-info-row__additional-panel--is-card-view[_ngcontent-%COMP%]{margin:0 -1rem -1rem}.tax-info-row__wrapper--is-card-view[_ngcontent-%COMP%]{padding:var(--space-md)}"]}),i})();var Pe=d(60337);function Jn(i,s){if(1&i&&(e.TgZ(0,"tr",12),e.TgZ(1,"th",13),e._uU(2),e.qZA(),e.TgZ(3,"td",14),e._uU(4),e.qZA(),e.qZA()),2&i){const t=s.$implicit;e.xp6(2),e.Oqu(t.label),e.xp6(2),e.Oqu(t.val)}}function Mn(i,s){if(1&i&&(e.TgZ(0,"table",9),e.TgZ(1,"caption",10),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"tbody",11),e.YNc(5,Jn,5,2,"tr",16),e.qZA(),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,2,"products.us-tax-info-page-stateflag")," "),e.xp6(3),e.Q6J("ngForOf",t.taxExemptData)}}function $n(i,s){if(1&i&&(e.TgZ(0,"eds-panel",7),e.TgZ(1,"eds-title",8),e._uU(2),e.qZA(),e.TgZ(3,"table",9),e.TgZ(4,"caption",10),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"tbody",11),e.TgZ(8,"tr",12),e.TgZ(9,"th",13),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"td",14),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"tr",12),e.TgZ(15,"th",13),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"td",14),e._uU(19),e.qZA(),e.qZA(),e.TgZ(20,"tr",12),e.TgZ(21,"th",13),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"td",14),e._uU(25),e.qZA(),e.qZA(),e.TgZ(26,"tr",12),e.TgZ(27,"th",13),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"td",14),e._uU(31),e.qZA(),e.qZA(),e.TgZ(32,"tr",12),e.TgZ(33,"th",13),e._uU(34),e.ALo(35,"translate"),e.qZA(),e.TgZ(36,"td",14),e._uU(37),e.qZA(),e.qZA(),e.TgZ(38,"tr",12),e.TgZ(39,"th",13),e._uU(40),e.ALo(4
11,"translate"),e.qZA(),e.TgZ(42,"td",14),e._uU(43),e.qZA(),e.qZA(),e.TgZ(44,"tr",12),e.TgZ(45,"th",13),e._uU(46),e.ALo(47,"translate"),e.qZA(),e.TgZ(48,"td",14),e._uU(49),e.qZA(),e.qZA(),e.TgZ(50,"tr",12),e.TgZ(51,"th",13),e._uU(52),e.ALo(53,"translate"),e.qZA(),e.TgZ(54,"td",14),e._uU(55),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(56,Mn,6,4,"table",15),e.qZA()),2&i){const t=s.$implicit;e.Q6J("hasPadding",!1),e.xp6(1),e.Q6J("level",2),e.xp6(1),e.Oqu(t.fundName),e.xp6(3),e.hij(" ",e.lcZ(6,21,"products.us-tax-info-page-additional-section")," "),e.xp6(5),e.hij(" ",e.lcZ(11,23,"products.us-tax-info-page-foreignsourceincome")," "),e.xp6(3),e.hij(" ",t.foreignSourceIncome," "),e.xp6(3),e.hij(" ",e.lcZ(17,25,"products.us-tax-info-page-foreignsourcequalifieddividends")," "),e.xp6(3),e.hij(" ",t.foreignSourceQualifiedDividends," "),e.xp6(3),e.hij(" ",e.lcZ(23,27,"products.us-tax-info-page-directusgovernmentobligations")," "),e.xp6(3),e.hij(" ",t.directUSGovernmentObligations," "),e.xp6(3),e.hij(" ",e.lcZ(29,29,"products.us-tax-info-page-specifiedpvtactivitybondinterest")," "),e.xp6(3),e.hij(" ",t.specifiedPvtActivityBondInterest," "),e.xp6(3),e.hij(" ",e.lcZ(35,31,"products.us-tax-info-page-dividendsreceiveddeduction")," "),e.xp6(3),e.hij(" ",t.dividendsReceivedDeduction," "),e.xp6(3),e.hij(" ",e.lcZ(41,33,"products.us-tax-info-page-section163")," "),e.xp6(3),e.Oqu(t.section163),e.xp6(3),e.hij(" ",e.lcZ(47,35,"products.us-tax-info-page-indianaresidenttaxableincome")," "),e.xp6(3),e.hij(" ",t.indianaResidentTaxableIncome," "),e.xp6(3),e.hij(" ",e.lcZ(53,37,"products.us-tax-info-page-utahresidenttaxableincome")," "),e.xp6(3),e.hij(" ",t.utahResidentTaxableIncome," "),e.xp6(1),e.Q6J("ngIf",t.stateFlag)}}function Yn(i,s){if(1&i&&(e.TgZ(0,"div",1),e.TgZ(1,"div",2),e._uU(2),e.qZA(),e.TgZ(3,"eds-title",3),e._uU(4),e.ALo(5,"translate"),e.qZA(),e._UZ(6,"eds-proximal",4),e.YNc(7,$n,57,39,"eds-panel",5),e._UZ(8,"eds-proximal",6),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.hij(" ",t.todayDate," "),e.xp6(1),e.Q6J("level",1),e.xp6(1),e.AsE(" ",e.lcZ(5,5,"products.us-tax-info-page-heading")," ",null==t.printableRecords[0]?null:t.printableRecords[0].taxYear,""),e.xp6(3),e.Q6J("ngForOf",t.printableRecords)}}let Bn=(()=>{class i{constructor(t){this.windowRef=t,this.printWindow=!1,this.todayDate=(0,Pe._3)((new Date).toLocaleDateString(),(0,Pe.Gp)())}ngAfterViewInit(){this.printWindow&&this.windowRef.print()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Le.m9))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-tax-list-info-print"]],inputs:{printableRecords:"printableRecords",printWindow:"printWindow"},decls:1,vars:1,consts:[["class","tax-info-print",4,"ngIf"],[1,"tax-info-print"],["edsSpacing","lg",1,"text-align-right"],["size","h1","edsSpacing","lg",3,"level"],["edsSpacing","lg","placement","USTaxInfoPDFTop"],[3,"hasPadding",4,"ngFor","ngForOf"],["edsSpacing","lg","placement","USTaxInfoPDFBottom"],[3,"hasPadding"],["size","h2","edsSpacing","md",3,"level"],["role","table","edsSpacing","lg",1,"tax-info-print-table"],[1,"tax-info-print-table__caption"],[1,"tax-info-print-table__tbody"],[1,"tax-info-print-table__tr"],[1,"tax-info-print-table__th"],[1,"tax-info-print-table__td"],["class","tax-info-print-table","role","table","edsSpacing","lg",4,"ngIf"],["class","tax-info-print-table__tr",4,"ngFor","ngForOf"]],template:function(t,n){1&t&&e.YNc(0,Yn,9,7,"div",0),2&t&&e.Q6J("ngIf",null==n.printableRecords?null:n.printableRecords.length)},directives:[v.O5,r.OPD,r.r3N,r.JEP,v.sg,r.yXm],pipes:[Z.X],styles:["[_nghost-%COMP%] .tax-info-print-table[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .tax-info-print-table__caption[_ngcontent-%COMP%]{text-align:start;font-weight:bold;font-size:20px;border-bottom:.0625rem solid var(--ft-grey-1);padding-bottom:8px}[_nghost-%COMP%] .tax-info-print-table__tbody[_ngcontent-%COMP%]{display:block;-moz-column-width:auto;column-width:auto;column-count:3;-webkit-column-count:3;-moz-column-count:3;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px}[_nghost-%COMP%] .tax-info-print-table__tr[_ngcontent-%COMP%]{width:100%;page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}[_nghost-%COMP%] .tax-info-print-table__th[_ngcontent-%COMP%]{text-align:left;padding:8px;font-size:11pt;border-bottom:.0625rem solid var(--ft-grey-1)}[_nghost-%COMP%] .tax-info-print-table__td[_ngcontent-%COMP%]{text-align:right;padding:8px;font-size:11pt;border-bottom:.0625rem solid var(--ft-grey-1)}"],changeDetection:0}),i})();function Hn(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-toggle",16),e.NdJ("toggleActive",function(a){return e.CHM(t),e.oxw(2).updateToggle(a.value)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("toggleButtons",t.taxInfoToggleButtons)("isNoWrap",!1)}}function Vn(i,s){if(1&i&&e._UZ(0,"p",19),2&i){const t=e.oxw(3);
1e.Q6J("innerHTML",t.subtitle,e.oJD)}}function zn(i,s){if(1&i&&(e.TgZ(0,"div",4),e.TgZ(1,"div",13),e._UZ(2,"eds-title",17),e.YNc(3,Vn,1,1,"p",18),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("level",3)("title",t.title),e.xp6(1),e.Q6J("ngIf",t.subtitle)}}function Wn(i,s){if(1&i&&(e.ynx(0),e._UZ(1,"ft-sign-in",22),e.BQk()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("inputParameters",t.signInInputParameters)}}function Xn(i,s){if(1&i&&(e.ynx(0),e.GkF(1,23),e.BQk()),2&i){e.oxw(5);const t=e.MAs(19);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Kn(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Wn,2,1,"ng-container",7),e.YNc(2,Xn,2,1,"ng-container",7),e.BQk()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!t.isIdentified),e.xp6(1),e.Q6J("ngIf",t.isIdentified)}}function jn(i,s){if(1&i&&(e.ynx(0),e._UZ(1,"ft-sign-in",22),e.BQk()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("inputParameters",t.signInInputParameters)}}function ea(i,s){if(1&i&&(e.ynx(0),e.GkF(1,23),e.BQk()),2&i){e.oxw(5);const t=e.MAs(17);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function ta(i,s){if(1&i&&(e.ynx(0),e.YNc(1,jn,2,1,"ng-container",7),e.ALo(2,"async"),e.YNc(3,ea,2,1,"ng-container",7),e.ALo(4,"async"),e.BQk()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.isIdentified&&!0===e.lcZ(2,2,t.isProfileActivated$)||!t.isIdentified),e.xp6(2),e.Q6J("ngIf",t.isIdentified&&!1===e.lcZ(4,4,t.isProfileActivated$))}}function ia(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",21),e.TgZ(2,"div",13),e.YNc(3,Kn,3,2,"ng-container",7),e.YNc(4,ta,5,6,"ng-container",7),e.qZA(),e.qZA(),e.BQk()),2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngIf",t.activeToggle===t.TaxInfoToggleValues.HELD_PRODUCTS),e.xp6(1),e.Q6J("ngIf",t.activeToggle===t.TaxInfoToggleValues.FAVORITE_PRODUCTS)}}function na(i,s){if(1&i&&(e.ynx(0),e.YNc(1,ia,5,2,"ng-container",20),e.ALo(2,"async"),e.BQk()),2&i){const t=e.oxw(2),n=e.MAs(19);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,t.isLoggedIn$))("ngIfElse",n)}}function aa(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",4),e.TgZ(2,"div",13),e.TgZ(3,"p"),e.TgZ(4,"strong",14),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.YNc(7,Hn,1,2,"eds-toggle",15),e.qZA(),e.qZA(),e.YNc(8,zn,4,3,"div",8),e.YNc(9,na,3,4,"ng-container",7),e.ALo(10,"async"),e.BQk()),2&i){const t=e.oxw();let n;
1e.xp6(5),e.Oqu(e.lcZ(6,4,"products.us-tax-info-currently-viewing")),e.xp6(2),e.Q6J("ngIf",t.isPopulated&&t.taxInfoToggleButtons.length>0),e.xp6(1),e.Q6J("ngIf",t.isPopulated),e.xp6(1),e.Q6J("ngIf",0===(null==(n=e.lcZ(10,6,t.currentPage$))?null:n.length)&&t.isShowEmptyState)}}const sa=function(){return{position:"relative","min-height":"100px"}};function oa(i,s){1&i&&(e.TgZ(0,"div",4),e.TgZ(1,"div",24),e._UZ(2,"ngx-spinner",25),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("ngStyle",e.DdM(2,sa)),e.xp6(1),e.Q6J("fullScreen",!1))}const ra=function(){return[25,50,75,100]};function la(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-dynamic-table",28),e.NdJ("checkboxChanged",function(a){return e.CHM(t),e.oxw(2).onChangeSelection(a)}),e.ALo(1,"async"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.ALo(9,"translate"),e.qZA()}if(2&i){e.oxw();const t=e.MAs(5),n=e.oxw();e.Q6J("colDefs",n.colDefs)("rowTemplate",t)("mobileTemplate",t)("rowData",e.lcZ(1,19,n.currentPage$))("showPagination",!0)("pageSize",25)("pageSizeOptions",e.DdM(37,ra))("cardBreakpoint",n.FrkBreakpoint.Tablet)("hasCheckboxColumn",!0)("hasStickyHeader",!0)("hasBorders",!0)("labelNoMatchingData",e.lcZ(2,21,"products.us-tax-info-page-no-filter-result-message"))("labelDropdown",e.lcZ(3,23,"products.items-per-page"))("labelDropdownAria",e.lcZ(4,25,"products.items-per-page"))("labelToggleAllCheckboxes",e.lcZ(5,27,"products.us-tax-info-page-select-all-group-header-input-label"))("sortAccessibilityText",e.lcZ(6,29,"common.sortAccessibilityText"))("ariaLabelGoToPage",e.lcZ(7,31,"common.ariaLabelGoToPage"))("sortAriaLiveText",e.lcZ(8,33,"common.sortAriaLiveText"))("pageTransitionAriaLiveText",e.lcZ(9,35,"common.pageTransitionAriaLiveText"))}}function da(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ft-tax-info-row",29),e.NdJ("checkboxToggled",function(a){const o=e.CHM(t);return o.checkboxCallback(o.$implicit,a)})("print",function(a){e.CHM(t);const o=e.oxw(2);return o.print(o.printType.SINGLE,a)}),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw(2);e.Q6J("taxInfoItem",t)("expandAll",n.expandAll)}}function ca(i,s){if(1&i&&(e.TgZ(0,"div",21),e.TgZ(1,"div",13),e.YNc(2,la,10,38,"eds-dynamic-table",26),e.ALo(3,"async"),e.YNc(4,da,1,2,"ng-template",null,27,e.W1O),e.qZA(),e.qZA()),2&i){const t=e.oxw();let n;e.xp6(2),e.Q6J("ngIf",t.isPopulated&&((null==(n=e.lcZ(3,1,t.currentPage$))?null:n.length)>0||t.isRecordsAvailable))}}function pa(i,s){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"ft-tax-list-info-print",30),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("printableRecords",t.printableRecords)("printWindow",t.isPrintEnable)}}function ua(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"eds-panel",31),e.TgZ(1,"eds-title",32),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",33),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw().goToAuth0()}),e.TgZ(8,"span",35),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.qZA(),e.qZA()}2&i&&(e.Q6J("hasPadding",!0),e.xp6(2),e.hij(" ",e.lcZ(3,4,"products.us-tax-info-activate-your-profile")," "),e.xp6(3),e.hij(" ",e.lcZ(6,6,"products.us-tax-info-activate-your-profile-content")," "),e.xp6(4),e.hij(" ",e.lcZ(10,8,"signin.fastTrackRegistrationButton")," "))}function ga(i,s){1&i&&(e.TgZ(0,"div",21),e.TgZ(1,"div",13),e._UZ(2,"p",36),e.ALo(3,"translate"),e.qZA(),e.qZA()),2&i&&(e.xp6(2),e.s9C("innerHTML",e.lcZ(3,1,"products.us-tax-info-empty-state-message"),e.oJD))}const ma=function(){return{s:"4",m:"8",l:"7"}},fe=C.Y.getLogger("TaxListInfoComponent");let fa=(()=>{class i extends c.p{constructor(t,n,a,o,l,f,h,x,P,z){super(),this.windowRef=t,this.taxListInfoService=n,this.changeDetector=a,this.responsiveService=o,this.translateService=l,this.profileService=f,this.personalisationService=h,this.segmentService=x,this.signInService=P,this.spinner=z,this.unsubscribe$=new w.xQ,this.isHomeOfficeUser=!1,this.isHomeOfficeUser$=new Qi.X(!1),this.isPopulated=!1,this.FrkBreakpoint=r.IM0,this.rowCount=0,this.rowCountValue="",this.downloadType=X,this.downloadTypesMenu=[],this.isPrintEnable=!1,this.printType=ce,this.expandAll=!1,this.taxYear="",this.taxInfoToggleButtons=[],this.activeToggle="",this.TaxInfoToggleValues=q}ngOnInit(){super.ngOnInit(),this.isHandheld$=this.responsiveService.isHandheld$(),this.isCardView$=this.responsiveService.isBreakpointOrBelow$(r.IM0.Tablet),this.personalisationService.isIdentified$().subscribe(t=>this.isIdentified=t),this.segmentService.getCurrentSegmentId$().pipe((0,N.R)(this.unsubscribe$),(0,Ze.q)(1)).subscribe(t=>{this.isSegmentFP=t===T.VI.FINANCIAL_PROFESSIONALS}),this.isLoggedIn$=this.profileService.isLoggedIn$(),this.isProfileActivated$=this.personalisationService.isProfileActivated$()}populate(t,n,a,o){this.initialize(n,a,o),this.spinner.show("taxListInfoSpinner"),fe.debug(o,this.page),this.componentConfiguration=t,(0,Ji.aj)([this.profileService.getUserProfile$(),this.isHomeOfficeUser$]).pipe((0,N.R)(this.unsubscribe$)).subscribe(([l,f])=>{this.isHomeOfficeUser=f,this.taxInfoToggleButtons=[{active:!1,text:this.translateService.instant("products.us-tax-info-all-funds"),value:q.ALL_FUNDS}],l.profileInfo?.nonRegFP||this.taxInfoToggleButtons.push({active:!1,text:this.translateService.instant(this.isHomeOfficeUser?"products.us-tax-info-home-office-products-title":"products.us-tax-info-featured-strategies-title"),value:q.HELD_PRODUCTS}),this.taxInfoToggleButtons.push({active:!1,text:this.translateService.instant("products.us-tax-info-focus-list-title"),value:q.FAVORITE_PRODUCTS}),this.setInitialData()}),this.personalisationService.getPersonalData$().pipe((0,N.R)(this.unsubscribe$)).subscribe(l=>{this.isHomeOfficeUser$.next(this.personalisationService.isHomeOfficeUser(l.clientType))}),this.signInInputParameters={skin:"Basic",legacy:!1,signOut:!1,showLegacyContent:!1,subTitle:" ",signInBodyContent:" ",signInLegacyContent:" "},this.brConfig&&(this.colDefs=[{field:"fundName",headerName:this.translateService.instant("products.us-tax-info-page-fundname"),isCardTitle:!0,linkField:"link",sortable:!0},{field:"directUSGovernmentObligations",headerName:this.translateService.instant("products.us-tax-info-page-directusgovernmentobligations"),dataType:"percent",sortable:!0},{field:"dividendsReceivedDeduction",headerName:this.translateService.instant("products.us-tax-info-page-dividendsreceiveddeduction"),dataType:"percent",sortable:!0},{field:"foreignSourceIncome",headerName:this.translateService.instant("products.us-tax-info-page-foreignsourceincome"),dataType:"percent",sortable:!0},{field:"",headerName:""}],this.taxListInfoService.getTaxListInfoState$().pipe((0,N.R)(this.unsubscribe$)).subscribe(l=>{fe.debug("Tax List Info state: ",l),this.isPopulated=l.isLoaded,this.isPopulated&&(l.action===ne.INITIAL_LOAD&&(this.filters=m()(l.filters)),this.isRecordsAvailable=l.recordDetail
1s.total>0,this.recordDetails=m()(l.recordDetails),this.taxYear=l.taxYear),this.isShowEmptyState=!this.isRecordsAvailable&&this.isPopulated,this.setDownloadMenuItems(),this.spinner.hide("taxListInfoSpinner"),this.changeDetector.detectChanges()},l=>{fe.debug("Error in fetching state: ",l),this.isPopulated=!1,this.changeDetector.detectChanges()}),this.taxListInfoService.getTotalSelectedRows$().pipe((0,N.R)(this.unsubscribe$)).subscribe(l=>{this.rowCount=l,this.rowCountValue=`${this.rowCount} ${this.translateService.instant("products.us-tax-info-page-sticky-item")}`,this.changeDetector.detectChanges()}),this.windowRef.onafterprint=l=>{this.printableRecords=[],this.isPrintEnable=!1,this.changeDetector.detectChanges()},this.currentPage$=this.taxListInfoService.getCurrentPage$())}setInitialData(){const t=new URLSearchParams(this.windowRef.location.search);this.activeToggle=t.get("selection"),this.isSegmentFP?this.taxListInfoService.populate(this.activeToggle):this.taxListInfoService.populate(),this.setTitle(this.activeToggle),this.setTaxInfoToggleButtonsActive()}setDownloadMenuItems(){this.downloadTypesMenu=[],this.downloadTypesMenu=this.isShowEmptyState?[{link:this.translateService.instant("products.us-tax-info-excel-download-all")}]:[{link:this.translateService.instant("products.us-tax-info-excel-download-all")},{link:this.translateService.instant("products.us-tax-info-excel-download-displayed")}]}onFilterApplied(t){this.selectedFilters=t,this.taxListInfoService.filterListing(t,this.activeToggle),this.expandAll=this.selectedFilters?.selectedDropdowns?.some(n=>"taxDataPoint"===n.filterName)}onDownloadAction(t){this.taxListInfoService.handleDownloadAction(t)}onChangeSelection(t){this.taxListInfoService.updateSelection(t),this.printStickyButton={hasAction:!0,buttonLabel:this.translateService.instant("products.us-tax-info-page-sticky-print"),iconType:"print"},this.downloadStickyButton={hasAction:!0,buttonLabel:this.translateService.instant("products.us-tax-info-page-sticky-download"),iconType:"download"}}print(t,n){this.printableRecords=t===ce.SELECTED?this.taxListInfoService.getSelectedTaxInfo():[n],this.isPrintEnable=!0,this.changeDetector.detectChanges()}updateToggle(t){switch(this.activeToggle=t,this.setTitle(t),this.setTaxInfoToggleButtonsActive(),t){case q.HELD_PRODUCTS:this.taxListInfoService.setFeaturedList(this.activeToggle);break;case q.FAVORITE_PRODUCTS:this.taxListInfoService.setFavoriteList(this.activeToggle);break;default:this.taxListInfoService.setAllFunds(this.activeToggle)}}setTitle(t){switch(t){case q.HELD_PRODUCTS:this.title=this.translateService.instant(this.isHomeOfficeUser?"products.us-tax-info-home-office-products-title":"products.us-tax-info-featured-strategies-title"),this.subtitle=this.translateService.instant(this.isHomeOfficeUser?"products.us-tax-info-home-office-products-subtitle":"products.us-tax-info-featured-strategies-subtitle");break;case q.FAVORITE_PRODUCTS:this.title=this.translateService.instant("products.us-tax-info-focus-list-title"),this.subtitle=this.translateService.instant("products.us-tax-info-focus-list-subtitle");break;default:this.title=this.translateService.instant("products.us-tax-info-all-funds"),this.subtitle=""}}setTaxInfoToggleButtonsActive(){let t=0;this.activeToggle&&(t=this.taxInfoToggleButtons.findIndex(n=>n.value===this.activeToggle)),this.taxInfoToggleButtons[t].active=!0}goToAuth0(){this.signInService.submitAuth0("signup"),fe.debug("Go to auth0 signup screen")}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Le.m9),e.Y36(De),e.Y36(e.sBO),e.Y36(r.kzD),e.Y36(S.s),e.Y36(_.H3),e.Y36(_.Cc),e.Y36(_.BP),e.Y36(_.yE),e.Y36(ie.t2))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-tax-list-info"]],features:[e.qOj],decls:20,vars:25,consts:[["theme","dark",3,"edsSpacing"],["edsGrid",""],["theme","dark",3,"items"],[3,"taxYear","filters","recordDetails","downloadTypes","filterListing","downloadEvent"],["edsRow","","edsSpacing","md"],["edsCol","",3,"columnNumbers"],["edsSpacing","lg",3,"placement"],[4,"ngIf"],["edsRow","","edsSpacing","md",4,"ngIf"],["edsRow","",4,"ngIf"],["variation","2",3,"itemCount","isHide","primaryAction","secondaryAction","stickyFooterName","btnSubscribePrimary","btnSubscribeSecond"],["activateProfile",""],["loggedInEmptyState",""],["edsCol",""],[1,"bold"],[3,"toggleButtons","isNoWrap","toggleActive",4,"ngIf"],[3,"toggleButtons","isNoWrap","toggleActive"],["size","h4","theme","basic",3,"level","t
1itle"],["edsSpacing","none",3,"innerHTML",4,"ngIf"],["edsSpacing","none",3,"innerHTML"],[4,"ngIf","ngIfElse"],["edsRow",""],[3,"inputParameters"],[3,"ngTemplateOutlet"],["edsCol","",3,"ngStyle"],["name","taxListInfoSpinner","bdColor","transparent","size","medium","color","#e8e8e8","type","line-scale-party",3,"fullScreen"],["idCol","fundShareClassId","tableTheme","secondary","padding","md",3,"colDefs","rowTemplate","mobileTemplate","rowData","showPagination","pageSize","pageSizeOptions","cardBreakpoint","hasCheckboxColumn","hasStickyHeader","hasBorders","labelNoMatchingData","labelDropdown","labelDropdownAria","labelToggleAllCheckboxes","sortAccessibilityText","ariaLabelGoToPage","sortAriaLiveText","pageTransitionAriaLiveText","checkboxChanged",4,"ngIf"],["customTaxInfoRowTemplate",""],["idCol","fundShareClassId","tableTheme","secondary","padding","md",3,"colDefs","rowTemplate","mobileTemplate","rowData","showPagination","pageSize","pageSizeOptions","cardBreakpoint","hasCheckboxColumn","hasStickyHeader","hasBorders","labelNoMatchingData","labelDropdown","labelDropdownAria","labelToggleAllCheckboxes","sortAccessibilityText","ariaLabelGoToPage","sortAriaLiveText","pageTransitionAriaLiveText","checkboxChanged"],[3,"taxInfoItem","expandAll","checkboxToggled","print"],[3,"printableRecords","printWindow"],["theme","highlight-blue",3,"hasPadding"],["edsSpacing","sm","size","h4","theme","basic"],["edsSpacing","sm"],["edsButton","primary","size","compact",3,"click"],[1,"ft__btn__txt"],[3,"innerHTML"]],template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"eds-panel",0),e.TgZ(2,"div",1),e._UZ(3,"eds-breadcrumbs",2),e.qZA(),e.qZA(),e.TgZ(4,"ft-tax-list-info-filters",3),e.NdJ("filterListing",function(o){return n.onFilterApplied(o)})("downloadEvent",function(o){return n.onDownloadAction(o)}),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"div"),e.ALo(7,"async"),e.TgZ(8,"div",4),e.TgZ(9,"div",5),e._UZ(10,"eds-proximal",6),e.qZA(),e.qZA(),e.YNc(11,aa,11,8,"ng-container",7),e.YNc(12,oa,3,3,"div",8),e.YNc(13,ca,6,3,"div",9),e.qZA(),e.qZA(),e.TgZ(14,"eds-sticky-footer",10),e.NdJ("btnSubscribePrimary",function(){return n.onDownloadAction(n.downloadType.SELECTED)})("btnSubscribeSecond",function(){return n.print(n.printType.SELECTED)}),e.qZA(),e.qZA(),e.YNc(15,pa,2,2,"div",7),e.YNc(16,ua,11,10,"ng-template",null,11,e.W1O),e.YNc(18,ga,4,3,"ng-template",null,12,e.W1O)),2&t&&(e.ekj("print-hidden",n.isPrintEnable),e.xp6(1),e.Q6J("edsSpacing","none"),e.xp6(2),e.Q6J("items",n.breadcrumbItems),e.xp6(1),e.Q6J("taxYear",n.taxYear)("filters",n.filters)("recordDetails",n.recordDetails)("downloadTypes",n.downloadTypesMenu),e.xp6(2),e.Tol(e.lcZ(7,22,n.isCardView$)?"cards-mobile":"container container--wide"),e.xp6(3),e.Q6J("columnNumbers",e.DdM(24,ma)),e.xp6(1),e.Q6J("placement","USTaxInfoPageTop"),e.xp6(1),e.Q6J("ngIf",n.isSegmentFP),e.xp6(1),e.Q6J("ngIf",!n.isPopulated),e.xp6(1),e.Q6J("ngIf",n.isPopulated),e.xp6(1),e.Q6J("itemCount",n.rowCountValue)("isHide",0===n.rowCount)("primaryAction",n.downloadStickyButton)("secondaryAction",n.printStickyButton)("stickyFooterName","us_taxinfo_sticky_footer"),e.xp6(1),e.Q6J("ngIf",n.isPrintEnable))},directives:[r.yXm,r.OPD,r.ljP,r.nNV,fn,r.vZ,r.iKq,r.JEP,v.O5,r.GsX,r.n$2,r.r3N,hn.F,v.tP,v.PC,ie.Ro,r.Qne,Qn,Bn,r.Hq3],pipes:[v.Ov,Z.X],encapsulation:2,changeDetection:0}),i})();class B{constructor(s,t,n){this.key=s,this.component=t,this.configurationName=n}static getConfig(s,t){return this.allConfigs.find(n=>n.configurationName?n.key===s&&n.configurationName===t:n.key===s)}}B.US_TAX=new B("US Tax",qi,T.WX.GW),B.US_CAPITAL_GAINS=new B("US Capital Gains",si,T.WX.GW),B.US_CAPITAL_GAINS_ESTIMATES=new B("US Capital Estimates",ft,T.WX.GW),B.TAX_LIST_INFO=new B("US Tax Info",fa,T.WX.GW),B.allConfigs=[B.US_TAX,B.US_CAPITAL_GAINS,B.US_CAPITAL_GAINS_ESTIMATES,B.TAX_LIST_INFO];const ha=["dynamicCmp"];function _a(i,s){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij("No component found for ",t.componentType,"")}}function xa(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1,"Loading..."),e.qZA())}function va(i,s){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij("Error loading data: ",t.errorMsg,"")}}function Ta(i,s){}function Ca(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,_a,2,1,"div",3),e.YNc(2,xa,2,0,"div",3),e.YNc(3,va,2,1,"div",3),e.YNc(4,Ta,0,0,"ng-template",null,4,e.W1O),e.qZA()),2&i){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 Sa(i,s){1&i&&e._uU(0,"Click to configure Tax Component")}const ba=C.Y.getLogger("TaxEntryComponent");let Aa=(()=>{class i extends k.t{constructor(t,n){super(),this.componentFactoryResolver=t,this.changeDetector=n,this.isLoading=!0}ngOnInit(){if(super.ngOnInit(),this.componentType=this.brConfig?.componentType,this.componentConfig=B.getConfig(this.componentType,this.configurationName),this.changeDetector.detectChanges(),this.componentConfig){const t=this.componentFactoryResolver.resolve
1ComponentFactory(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.changeDetector.detectChanges()}else ba.error("No component found: ",this.componentType,this.configurationName),this.errorMsg=`No component found: ${this.componentType}, ${this.configurationName}`}ngOnDestroy(){this.componentRef?.destroy()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e._Vd),e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ft-tax-entry"]],viewQuery:function(t,n){if(1&t&&e.Gf(ha,5,e.s_b),2&t){let a;e.iGM(a=e.CRH())&&(n.container=a.first)}},features:[e.qOj],decls:3,vars:2,consts:[["class","item has-edit-button",4,"ngIf","ngIfElse"],["configureComponentBlock",""],[1,"item","has-edit-button"],[4,"ngIf"],["dynamicCmp",""]],template:function(t,n){if(1&t&&(e.YNc(0,Ca,6,3,"div",0),e.YNc(1,Sa,1,0,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",n.componentType)("ngIfElse",a)}},directives:[v.O5],styles:[""],changeDetection:0}),i})();var ya=d(37668),Za=d(3830),Ia=d(34341),ka=d(62064);let La=(()=>{class i{constructor(){Ia.O3.registerModules([ka.I])}getComponentMapping(){return{"Fund Tax":Aa}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({providers:[ke,Ae],imports:[[v.ez,ya.m8,Za.a,ie.ef,j.sF,r.E9$,r.rh5,r.cFv]]}),i})()},76815:O=>{var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"USServicingMyInvestments"},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:"invstmntcatg"},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:"shclcurr"},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:"cusip"},arguments:[],directives:[]},{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:"mktpricedt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mktpricevalue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mktchngval"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mktchngpct"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ytdtotretatmktprice"},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:1108}};function e(c,p){if("FragmentSpread"===c.kind)p.add(c.name.value);
1else if("VariableDefinition"===c.kind){var u=c.type;"NamedType"===u.kind&&p.add(u.name.value)}c.selectionSet&&c.selectionSet.selections.forEach(function(m){e(m,p)}),c.variableDefinitions&&c.variableDefinitions.forEach(function(m){e(m,p)}),c.definitions&&c.definitions.forEach(function(m){e(m,p)})}I.loc.source={body:"query USServicingMyInvestments(\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 invstmntcatg\n shareclass {\n producttype\n shclname\n shclcurr\n perfincdt\n identifiers {\n cusip\n fundid\n shclcode\n ticker\n }\n nav {\n navdate\n navvalue\n navchngpct\n navchngvalue\n ytdtotretatnav\n mktpricedt\n mktpricevalue\n mktchngval\n mktchngpct\n ytdtotretatmktprice\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 k={};function C(c,p){for(var u=0;u<c.definitions.length;u++){var m=c.definitions[u];if(m.name&&m.name.value==p)return m}}I.definitions.forEach(function(p){if(p.name){var u=new Set;e(p,u),k[p.name.value]=u}}),O.exports=I,O.exports.USServicingMyInvestments=function(c,p){var u={kind:c.kind,definitions:[C(c,p)]};c.hasOwnProperty("loc")&&(u.loc=c.loc);var m=k[p]||new Set,r=new Set,b=new Set;for(m.forEach(function(g){b.add(g)});b.size>0;){var L=b;b=new Set,L.forEach(function(g){r.has(g)||(r.add(g),(k[g]||new Set).forEach(function(S){b.add(S)}))})}return r.forEach(function(g){var _=C(c,g);_&&u.definitions.push(_)}),u}(I,"USServicingMyInvestments")},11873:O=>{var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TaxListInfoState"},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:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},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:"shareclass"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{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:"tax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statevalue"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:480}};function e(c,p){if("FragmentSpread"===c.kind)p.add(c.name.value);
1else if("VariableDefinition"===c.kind){var u=c.type;"NamedType"===u.kind&&p.add(u.name.value)}c.selectionSet&&c.selectionSet.selections.forEach(function(m){e(m,p)}),c.variableDefinitions&&c.variableDefinitions.forEach(function(m){e(m,p)}),c.definitions&&c.definitions.forEach(function(m){e(m,p)})}I.loc.source={body:"query TaxListInfoState(\n $fundid: String!\n $shareclasscode: String!\n $countrycode: String!\n $languagecode: String!\n $year: Int!\n) {\n Overview(\n fundid: $fundid\n shareclasscode: $shareclasscode\n countrycode: $countrycode\n languagecode: $languagecode\n ) {\n shareclass {\n identifiers {\n fundid\n shclcode\n }\n tax {\n state(year: $year) {\n taxyear\n statename\n statevalue\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var k={};function C(c,p){for(var u=0;u<c.definitions.length;u++){var m=c.definitions[u];if(m.name&&m.name.value==p)return m}}I.definitions.forEach(function(p){if(p.name){var u=new Set;e(p,u),k[p.name.value]=u}}),O.exports=I,O.exports.TaxListInfoState=function(c,p){var u={kind:c.kind,definitions:[C(c,p)]};c.hasOwnProperty("loc")&&(u.loc=c.loc);var m=k[p]||new Set,r=new Set,b=new Set;for(m.forEach(function(g){b.add(g)});b.size>0;){var L=b;b=new Set,L.forEach(function(g){r.has(g)||(r.add(g),(k[g]||new Set).forEach(function(S){b.add(S)}))})}return r.forEach(function(g){var _=C(c,g);_&&u.definitions.push(_)}),u}(I,"TaxListInfoState")},67691:O=>{var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TaxListInfo"},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:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TaxListInfo"},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"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fundid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fundname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frgnsrcincm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frgnsrcqualifieddivinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"directusgovtobligations"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specifiedpvtbondinterest"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dividendsreceiveddeduction"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section163"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"indianaresdtaxincm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utahresdtaxincm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateflag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prmryshclind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shclcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetclass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"investmentgroup"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cusip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ticker"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webprdcttaxonomy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareclassname"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:535}};function e(c,p){if("FragmentSpread"===c.kind)p.add(c.name.value);
1else if("VariableDefinition"===c.kind){var u=c.type;"NamedType"===u.kind&&p.add(u.name.value)}c.selectionSet&&c.selectionSet.selections.forEach(function(m){e(m,p)}),c.variableDefinitions&&c.variableDefinitions.forEach(function(m){e(m,p)}),c.definitions&&c.definitions.forEach(function(m){e(m,p)})}I.loc.source={body:"query TaxListInfo($countrycode: String!, $languagecode: String!) {\n TaxListInfo(countrycode: $countrycode, languagecode: $languagecode) {\n fundid\n fundname\n taxyear\n frgnsrcincm\n frgnsrcqualifieddivinc\n directusgovtobligations\n specifiedpvtbondinterest\n dividendsreceiveddeduction\n section163\n indianaresdtaxincm\n utahresdtaxincm\n stateflag\n prmryshclind\n shclcode\n assetclass\n investmentgroup\n producttype\n cusip\n ticker\n taid\n webprdcttaxonomy\n shareclassname\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var k={};function C(c,p){for(var u=0;u<c.definitions.length;u++){var m=c.definitions[u];if(m.name&&m.name.value==p)return m}}I.definitions.forEach(function(p){if(p.name){var u=new Set;e(p,u),k[p.name.value]=u}}),O.exports=I,O.exports.TaxListInfo=function(c,p){var u={kind:c.kind,definitions:[C(c,p)]};c.hasOwnProperty("loc")&&(u.loc=c.loc);var m=k[p]||new Set,r=new Set,b=new Set;for(m.forEach(function(g){b.add(g)});b.size>0;){var L=b;b=new Set,L.forEach(function(g){r.has(g)||(r.add(g),(k[g]||new Set).forEach(function(S){b.add(S)}))})}return r.forEach(function(g){var _=C(c,g);_&&u.definitions.push(_)}),u}(I,"TaxListInfo")},69490:O=>{var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CapGainDistribution"},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:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"CapGainDistribution"},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"}}}],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:"capgainpayabledate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainrecorddate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainexdivdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainexdivdatefmt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainreinvestmentdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainamtshrtterm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainamtlngterm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totaldistamtmth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainreinvstmntamt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimateflag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fundname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareclassname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgainfrequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"producttype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cusip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ticker"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webprdcttaxonomy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"investmentgroup"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taid"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:562}};function e(c,p){if("FragmentSpread"===c.kind)p.add(c.name.value);
1else if("VariableDefinition"===c.kind){var u=c.type;"NamedType"===u.kind&&p.add(u.name.value)}c.selectionSet&&c.selectionSet.selections.forEach(function(m){e(m,p)}),c.variableDefinitions&&c.variableDefinitions.forEach(function(m){e(m,p)}),c.definitions&&c.definitions.forEach(function(m){e(m,p)})}I.loc.source={body:"query CapGainDistribution($countrycode: String!, $languagecode: String!) {\n CapGainDistribution(countrycode: $countrycode, languagecode: $languagecode) {\n fundid\n shclcode\n capgainpayabledate\n capgainrecorddate\n capgainexdivdate\n capgainexdivdatefmt\n capgainreinvestmentdate\n capgainamtshrtterm\n capgainamtlngterm\n totaldistamtmth\n capgainreinvstmntamt\n estimateflag\n fundname\n shareclassname\n capgainfrequency\n producttype\n taxyear\n cusip\n ticker\n webprdcttaxonomy\n investmentgroup\n taid\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var k={};function C(c,p){for(var u=0;u<c.definitions.length;u++){var m=c.definitions[u];if(m.name&&m.name.value==p)return m}}I.definitions.forEach(function(p){if(p.name){var u=new Set;e(p,u),k[p.name.value]=u}}),O.exports=I,O.exports.CapGainDistribution=function(c,p){var u={kind:c.kind,definitions:[C(c,p)]};c.hasOwnProperty("loc")&&(u.loc=c.loc);var m=k[p]||new Set,r=new Set,b=new Set;for(m.forEach(function(g){b.add(g)});b.size>0;){var L=b;b=new Set,L.forEach(function(g){r.has(g)||(r.add(g),(k[g]||new Set).forEach(function(S){b.add(S)}))})}return r.forEach(function(g){var _=C(c,g);_&&u.definitions.push(_)}),u}(I,"CapGainDistribution")},3039:O=>{var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UsTax"},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:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},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:"invmangr"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fundname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareclass"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"incepdtstd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"federaltaxid"},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:"dividendfreq"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"distribution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recordtype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cusip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recordate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"exemptinterestdividends"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payabledate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ordinarydividends"},arguments:[],directives:[]}
1,{kind:"Field",name:{kind:"Name",value:"qualifieddividends"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capgaindisdistributions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unrecapsec1250gain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nontaxableroca"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sec199adividends"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"foriegntaxpaid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"interestreceivedeureclaim"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"additional"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frgnsrcincm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frgnsrcqualifieddivinc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"directusgovtobligations"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specifiedpvtbondinterest"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dividendsreceiveddeduction"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section163"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"indianaresdtaxincm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utahresdtaxincm"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxyear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statevalue"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:1275}};function e(c,p){if("FragmentSpread"===c.kind)p.add(c.name.value);else if("VariableDefinition"===c.kind){var u=c.type;"NamedType"===u.kind&&p.add(u.name.value)}c.selectionSet&&c.selectionSet.selections.forEach(function(m){e(m,p)}),c.variableDefinitions&&c.variableDefinitions.forEach(function(m){e(m,p)}),c.definitions&&c.definitions.forEach(function(m){e(m,p)})}I.loc.source={body:"query UsTax(\n $fundid: String!\n $shareclasscode: String!\n $countrycode: String!\n $languagecode: String!\n $year: Int!\n) {\n Overview(\n fundid: $fundid\n shareclasscode: $shareclasscode\n countrycode: $countrycode\n languagecode: $languagecode\n ) {\n producttype\n invmangr\n fundname\n shareclass {\n incepdtstd\n federaltaxid\n identifiers {\n fundid\n shclcode\n }\n dividendfreq\n tax {\n distribution(year: $year) {\n taxyear\n recordtype\n cusip\n recordate\n exemptinterestdividends\n payabledate\n ordinarydividends\n qualifieddividends\n capgaindisdistributions\n unrecapsec1250gain\n nontaxableroca\n sec199adividends\n foriegntaxpaid\n interestreceivedeureclaim\n }\n additional(year: $year) {\n taxyear\n frgnsrcincm\n frgnsrcqualifieddivinc\n directusgovtobligations\n specifiedpvtbondinterest\n dividendsreceiveddeduction\n section163\n indianaresdtaxincm\n utahresdtaxincm\n }\n state(year: $year) {\n taxyear\n statename\n statevalue\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var k={};function C(c,p){for(var u=0;u<c.definitions.length;u++){var m=c.definitions[u];if(m.name&&m.name.value==p)return m}}I.definitions.forEach(function(p){if(p.name){var u=new Set;e(p,u),k[p.name.value]=u}}),O.exports=I,O.exports.UsTax=function(c,p){var u={kind:c.kind,definitions:[C(c,p)]};c.hasOwnProperty("loc")&&(u.loc=c.loc);var m=k[p]||new Set,r=new Set,b=new Set;for(m.forEach(function(g){b.add(g)});b.size>0;){var L=b;
1b=new Set,L.forEach(function(g){r.has(g)||(r.add(g),(k[g]||new Set).forEach(function(S){b.add(S)}))})}return r.forEach(function(g){var _=C(c,g);_&&u.definitions.push(_)}),u}(I,"UsTax")}}]); 2//# sourceMappingURL=tax.955a4a0fe4d753c11188.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.