1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["filter-avatars"],{22050:(J,g,c)=>{c.r(g),c.d(g,{ETFTrackingBasketModule:()=>B});var h=c(54364),n=c(3138),_=c(31023),F=c(92612),u=c(1772),i=c(2316),t=c(55311),v=c(81134),x=c(33927),w=c(18293),A=c(53882);let C=(()=>{class o{constructor(a){this.http=a}getFileStatus(a){const r=`${a}?timestamp=${(new Date).getTime()}`;return this.http.get(r,{observe:"response"})?.pipe((0,x.U)(e=>200===e.status?"200":e?.status?.toString()),(0,w.K)(e=>(0,v.of)(404===e.status?"404":e?.status?.toString())))}}return o.\u0275fac=function(a){return new(a||o)(i.LFG(A.eN))},o.\u0275prov=i.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var S=c(82611),Z=c(66237);function k(o,p){if(1&o&&i._UZ(0,"eds-icon",16),2&o){const a=i.oxw().$implicit;i.Q6J("tooltipContent",null==a?null:a.toolTip)}}function b(o,p){if(1&o&&(i.TgZ(0,"span",17),i._uU(1),i.qZA()),2&o){const a=i.oxw(2);i.xp6(1),i.hij(" ",a.basketValues," ")}}function y(o,p){if(1&o){const a=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(a);const e=i.oxw().$implicit;return i.oxw().exportToExcel(null==e?null:e.filePath)}),i._uU(1),i.qZA()}if(2&o){const a=i.oxw().$implicit;i.xp6(1),i.hij(" ",null==a?null:a.displayText," ")}}function I(o,p){if(1&o&&(i.TgZ(0,"tr",9),i.TgZ(1,"td",10),i.TgZ(2,"div",11),i._uU(3),i.YNc(4,k,1,1,"eds-icon",12),i.qZA(),i.qZA(),i.TgZ(5,"td",13),i.YNc(6,b,2,1,"span",14),i.YNc(7,y,2,1,"button",15),i.qZA(),i.qZA()),2&o){const a=p.$implicit,r=i.oxw();i.xp6(3),i.hij(" ",null==a?null:a.basketName," "),i.xp6(1),i.Q6J("ngIf",null==a?null:a.toolTip),i.xp6(2),i.Q6J("ngIf",!(null!=a&&a.filePath)&&r.basketValues),i.xp6(1),i.Q6J("ngIf",(null==a?null:a.filePath)||(null==a?null:a.displayText))}}let D=(()=>{class o extends F.N{constructor(a,r,e,s,l){super(),this.windowRef=a,this.widenService=r,this.widenLinkCheckService=e,this.etfTrackingBasketService=s,this.cdr=l,this.colDefs=[{field:"basketName",headerName:""},{field:"action",headerName:"",dataType:"number"}]}ngOnInit(){const a=this.page?.getContent(this.component?.getModels()?.document)?.getData(),r=this.page?.getComponent()?.getParameters()?.fundId,e=this.etfTrackingBasketService.getShareClassCode(r),s=a?.fundSpecificEtfTracking.filter(l=>l.fundId===r)[0];this.etfTrackingBasketService.populate(r,e).subscribe(l=>{this.asOfDate=l?.effectiveDate,l.overlap&&this.rowData&&(this.basketValues=l.overlap||this.rowData.find(d=>d.basketValues).basketValues),this.rowData=(0,u.X)(this.rowData)}),this.title=a?.title,this.subTitle=s?.subTitle,this.rowData=s?.etfTrackingBaskets,this.rowData?.forEach((l,d)=>{const m=l?.linkUrl?.linkCollection[0];this.rowData[d].displayText=m?.displayText,this.rowData[d].filePath=this.widenService.getWidenAssetUrl(m?.widenAssetCompound?.widenDocument),this.rowData[d].isActive=!m?.widenAssetCompound?.widenDocument}),this.initialRowData=(0,u.X)(this.rowData),this.initialRowData?.forEach((l,d)=>{this.widenLinkCheckService.getFileStatus(this.initialRowData[d].filePath).subscribe(m=>{"200"===m&&(this.initialRowData[d].isActive=!0,this.updateEtfTrackingBaskets(),this.cdr.detectChanges())})}),this.rowData=this.rowData?.filter(l=>!0===l?.isActive)}updateEtfTrackingBaskets(){const a=(0,u.X)(this.initialRowData);this.rowData=a.filter(r=>!0===r?.isActive)}exportToExcel(a){this.windowRef.open(a,"_blank")}}return o.\u0275fac=function(a){return new(a||o)(i.Y36(_.m9),i.Y36(t.jS),i.Y36(C),i.Y36(S.S),i.Y36(i.sBO))}
1,o.\u0275cmp=i.Xpm({type:o,selectors:[["putnam-etf-tracking-basket"]],features:[i.qOj],decls:12,vars:13,consts:[[1,"etf-tracking-basket"],["edsGrid",""],[1,"container","container--wide"],["size","h4","theme","basic",3,"level","title","edsSpacing"],["edsSpacing","lg",1,"small"],["edsSpacing","xl"],["tableTheme","primary",3,"colDefs","rowData","showPagination","rowTemplate","isStriped"],["placement","PutnamETFTrackingBasketProximal"],["customRowTemplate",""],[1,"dynamic-table__tr","dynamic-table__tr--is-striped"],[1,"dynamic-table__td"],["edsPadding","","edsPaddingAll","sm"],["edsPadding","","edsPaddingLeft","xs","edsTooltip","","tooltipType","medium","tooltipPositionDefault","top","tooltipBehavior","fixed","size","small","type","info",3,"tooltipContent",4,"ngIf"],[1,"dynamic-table__td","dynamic-table__td--is-number"],["edsPadding","","edsPaddingRight","sm",4,"ngIf"],["edsButton","primary",3,"click",4,"ngIf"],["edsPadding","","edsPaddingLeft","xs","edsTooltip","","tooltipType","medium","tooltipPositionDefault","top","tooltipBehavior","fixed","size","small","type","info",3,"tooltipContent"],["edsPadding","","edsPaddingRight","sm"],["edsButton","primary",3,"click"]],template:function(a,r){if(1&a&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"eds-title",3),i.TgZ(4,"p",4),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",5),i._UZ(8,"eds-dynamic-table",6),i.qZA(),i._UZ(9,"eds-proximal",7),i.qZA(),i.qZA(),i.qZA(),i.YNc(10,I,8,4,"ng-template",null,8,i.W1O)),2&a){const e=i.MAs(11);i.xp6(3),i.Q6J("level",3)("title",r.title)("edsSpacing",r.subTitle?"none":"lg"),i.xp6(2),i.lnq(" ",i.lcZ(6,11,"products.as-of")," ",r.asOfDate," ",r.subTitle," "),i.xp6(3),i.Q6J("colDefs",r.colDefs)("rowData",r.rowData)("showPagination",!1)("rowTemplate",e)("isStriped",!0)}},directives:[n.ljP,n.r3N,n.OPD,n.Qne,n.JEP,n.cph,h.O5,n.oJW,n.i9q,n.Hq3],pipes:[Z.X],styles:[".etf-tracking-basket[_ngcontent-%COMP%] .dynamic-table__td[_ngcontent-%COMP%]{vertical-align:middle}.etf-tracking-basket__fund-name[_ngcontent-%COMP%]{height:100%}"]}),o})();var P=c(3830);let B=(()=>{class o{getComponentMapping(){return{"ETF Tracking Baskets":D}}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[h.ez,n.zE6,n.cv2,n.cFv,n.idt,n.z8t,n.QX1,n.hJ1,n.WF4,n.JI,n._xT,P.a]]}),o})()},56984:(J,g,c)=>{c.r(g),c.d(g,{FilterAvatarsModule:()=>p});var h=c(54364),n=c(3138),_=c(37668),F=c(92612),u=(()=>{return(a=u||(u={})).LIST="on",a.GRID="off",u;var a})(),i=c(97175),t=c(2316),v=c(55311),x=c(27513),w=c(66237);function A(a,r){if(1&a&&(t.TgZ(0,"eds-title",18),t._uU(1),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.Oqu(null==e.avatarsFilter?null:e.avatarsFilter.title)}}function C(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"eds-switch",19),t.NdJ("switchPressed",function(l){return t.CHM(e),t.oxw(2).onChangingView(l)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.qZA()}if(2&a){const e=t.oxw(2);t.Q6J("switchId","avatarFiltersView")("labelOff",t.lcZ(1,4,"common.avatar.list"))("labelOn",t.lcZ(2,6,"common.avatar.grid"))("state",e.avatarsViewState)}}function S(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t.TgZ(3,"div",11),t.YNc(4,A,2,1,"eds-title",12),t.YNc(5,C,3,8,"eds-switch",13),t.qZA(),t.TgZ(6,"div",14),t.TgZ(7,"eds-dropdown",15),t.NdJ("dropdownChange",function(l){return t.CHM(e),t.oxw().filterAvatars(l,"dropdown")}),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"eds-search",16,17),t.NdJ("searchTerm",function(l){return t.CHM(e),t.oxw().filterAvatars(l,"search")}),t.ALo(11,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&a){const e=t.oxw();
1t.xp6(3),t.Q6J("justifyContent","space-between")("alignItems","center"),t.xp6(1),t.Q6J("ngIf",null==e.avatarsFilter?null:e.avatarsFilter.title),t.xp6(1),t.Q6J("ngIf",!(null!=e.avatarsFilter&&e.avatarsFilter.hideGridListToggle)),t.xp6(1),t.Q6J("edsSubGrid","layout-1"),t.xp6(1),t.Q6J("dropdownId","filtersForAvatars")("label",t.lcZ(8,10,"common.avatar.filter-label"))("preselectedValue",e.selectedFilter)("items",e.filters),t.xp6(2),t.Q6J("placeholder",t.lcZ(11,12,"common.avatar.search-box-placeholder"))}}function Z(a,r){if(1&a&&t._UZ(0,"p",20),2&a){const e=t.oxw();t.Q6J("innerHTML",null==e.avatarsFilter?null:e.avatarsFilter.content,t.oJD)}}function k(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"eds-avatar",24),t.NdJ("scheduleAppointmentClick",function(l){t.CHM(e);const d=t.oxw().$implicit;return t.oxw(2).trackEvent(l,null==d?null:d.url,"common.avatar.profileLink")}),t.ALo(1,"translate"),t.qZA()}if(2&a){const e=t.oxw().$implicit;t.Q6J("@easeInOut",void 0)("title",null==e?null:e.displayName)("imgSrc",null==e?null:e.profileImage)("text1",null==e?null:e.profileTitle)("scheduleAppointmentUrl",null==e?null:e.url)("scheduleAppointmentText",t.lcZ(1,6,"common.avatar.profileLink"))}}function b(a,r){if(1&a&&(t.ynx(0),t.YNc(1,k,2,8,"eds-avatar",23),t.BQk()),2&a){const e=r.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function y(a,r){if(1&a&&(t.TgZ(0,"div",21),t.YNc(1,b,2,1,"ng-container",22),t.qZA()),2&a){const e=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",null==e.avatarsFilter?null:e.avatarsFilter.avatars)}}function I(a,r){if(1&a&&(t.TgZ(0,"div",25),t._UZ(1,"eds-dynamic-table",26),t.qZA()),2&a){const e=t.oxw(),s=t.MAs(10);t.xp6(1),t.Q6J("colDefs",null==e.avatarsFilter?null:e.avatarsFilter.colDefs)("rowData",null==e.avatarsFilter?null:e.avatarsFilter.avatars)("hasBorders",!0)("showPagination",!1)("rowTemplate",s)}}function D(a,r){if(1&a&&(t.TgZ(0,"tr",28),t.TgZ(1,"td",29),t._uU(2),t.qZA(),t._UZ(3,"td",30),t.TgZ(4,"td",29),t._UZ(5,"eds-link-item",31),t.ALo(6,"translate"),t.qZA(),t.qZA()),2&a){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("@easeInOut",void 0),t.xp6(1),t.hij(" ",null==e?null:e.displayName," "),t.xp6(1),t.Q6J("innerHTML",null==e?null:e.profileTitle,t.oJD)("@easeInOut",void 0),t.xp6(1),t.Q6J("@easeInOut",void 0),t.xp6(1),t.Q6J("title",t.lcZ(6,7,"common.avatar.profileLink"))("href",null==e?null:e.url)}}function P(a,r){1&a&&t.YNc(0,D,7,9,"tr",27),2&a&&t.Q6J("ngIf",r.$implicit)}const B=(0,i.X$)("easeInOut",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)("300ms ease-out",(0,i.oB)({transform:"scale(1)"}))]),(0,i.eR)(":leave",[(0,i.jt)("150ms ease-out",(0,i.oB)({transform:"scale(0)"}))])]);let o=(()=>{class a extends F.N{constructor(e,s,l,d){super(),this.widenService=e,this.translateService=s,this.appStateService=l,this.analyticsService=d,this.display="grid",this.searchTerm="",this.avatarsFilter={avatars:[],colDefs:[]},this.filters=[],this.avatarsViewState=u.LIST,this.avatars=[]}ngOnInit(){const e=this.page?.getContent(this.component?.getModels()?.document)?.getData(),s=this.component?.getParameters();this.avatarsFilter.title=e?.title,this.avatarsFilter.content=e?.summary?.value,this.avatarsFilter.hideFunctionalBannerFilters=s?.hideFunctionalBannerFilters,this.avatarsFilter.hideGridListToggle=s?.hideGridListToggle,this.filterItemAll={value:"all",label:this.translateService.instant("common.avatar.all")},this.selectedFilter=this.filterItemAll,this.getAvatars(e?.filtersForAvatars),this.getColData(),this.sortProfiles()}createFilters(e,s){this.filters.filter(l=>l.value===s).length||this.filters.push({label:e?.label,value:s})}parseText(e){return e?.replace(/\s/g,"").replace(/[^a-zA-Z ]/g,"").trim().toLowerCase()}getAvatars(e){this.filters.push(this.filterItemAll),e?.forEach(s=>{const l=this.parseText(s?.label);this.createFilters(s,l),s.profiles.forEach(d=>{const m=[];if(d?.profileBrowser){const f=this.page?.getContent(d.profileBrowser).getData();if(this.avatars.some(T=>T.fullName===f.fullName))this.avatars.filter(T=>T.fullName===f.fullName)[0].type.push(l);else{m.push(l);const T=this.appStateService.getSpaBaseUrl();let N="";N=f?.sharedUrl?.length?T+f.sharedUrl:this.page.getContent(d.profileBrowser).getUrl(),this.avatars.push({displayName:f?.displayName,fullName:f?.fullName,profileTitle:f?.overview,experience:f?.experience,profileImage:this.widenService.getWidenAssetUrl(f?.profileImage?.widenAsset),url:N,type:m})}}})}),this.filteredProfile()}getColData(){this.avatarsFilter.colDefs=[{headerName:this.translateService.instant("common.avatar.fullName"),field:"fullName"},{headerName:this.translateService.instant("common.avatar.title"),field:"title"},{headerName:this.translateService.instant("common.avatar.experience"),field:"experience"}]}filteredProfile(){if("all"===this.selectedFilter.value)return this.avatarsFilter.avatars=this.avatars;this.avatarsFilter.avatars=this.avatarsFilter.avatars?.filter(e=>e?.type.includes(this.selectedFilter.value))}onChangingView(e){this.avatarsViewState=e}onSearchInput(e){this.searchTerm=this.parseText(e),this.avatarsFilter.avatars=this.avatarsFilter.avatars?.filter(s=>Object.keys(s).filter(l=>{if(s[l]){let d=s[l];return"type"===l&&(d=s[l]?.join("")),d=d.replace(/\s/g,"").replace(/[^a-zA-Z ]/g,"").trim().toLowerCase(),d?.toLowerCase()?.indexOf(e)>-1}})?.length)}filterAvatars(e,s){this.avatarsFilter.avatars=this.avatars,"search"===s?this.searchTerm=e:"dropdown"===s&&(this.selectedFilter=e),this.filteredProfile(),this.onSearchInput(this.searchTerm),this.sortProfiles()}sortProfiles(){this.avatarsFilter.avatars=this.avatarsFilter?.avatars.sort((e,s)=>{const l=this.extractSurname(e.displayName),d=this.extractSurname(s.displayName);return l.localeCompare(d)})}extractSurname(e){const s=e.lastIndexOf(" ");return-1!==s?e.substring(s+1):e}trackEvent(e,s,l){this.analyticsService.trackEvent({event:"select_content",detailed_event:"Select Content",event_data:{content_type:"profile",facets:this.selectedFilter.label,index:"",link_text:this.translateService.instant(l),link_url:s,search_category:"profile",search_term:this.searchTerm}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(v.jS),t.Y36(x.s),t.Y36(v.ZQ),t.Y36(n.yDm))},a.\u0275cmp=t.Xpm({type:a,selectors:[["ft-filter-avatars"]],inputs:{page:"page"},features:[t.qOj],decls:11,vars:4,consts:[[1,"filter-avatars"],["class","filter-avatars__selection","edsBackgroun
1d","","theme","primary","edsPadding","","edsPaddingTop","xl","edsPaddingBottom","lg",4,"ngIf"],[1,"filter-avatars__view"],["edsGrid",""],[1,"container--wide"],["edsPadding","","edsPaddingTop","md","edsPaddingBottom","xl"],["edsSpacing","md",3,"innerHTML",4,"ngIf"],["edsSubGrid","layout-2",4,"ngIf"],["class","filter-avatars__list",4,"ngIf"],["avatarFilterTemplate",""],["edsBackground","","theme","primary","edsPadding","","edsPaddingTop","xl","edsPaddingBottom","lg",1,"filter-avatars__selection"],["edsFlexbox","",3,"justifyContent","alignItems"],["edsSpacing","sm","size","h2","theme","white",4,"ngIf"],["edsSpacing","sm","ariaLabelledbyStr","avatarFiltersViewLabel","labelId","avatarFiltersViewLabel","theme","dark",3,"switchId","labelOff","labelOn","state","switchPressed",4,"ngIf"],["edsSubGridGap","sm",3,"edsSubGrid"],["edsCol","","ariaLabel","Dropdown","name","filtersForAvatars","edsSpacing","md",3,"dropdownId","label","preselectedValue","items","dropdownChange"],["edsSpacing","md",3,"placeholder","searchTerm"],["searchBox",""],["edsSpacing","sm","size","h2","theme","white"],["edsSpacing","sm","ariaLabelledbyStr","avatarFiltersViewLabel","labelId","avatarFiltersViewLabel","theme","dark",3,"switchId","labelOff","labelOn","state","switchPressed"],["edsSpacing","md",3,"innerHTML"],["edsSubGrid","layout-2"],[4,"ngFor","ngForOf"],["class","avatars","edsSpacing","lg","fallbackImgSrc","/assets/images/ben_head.png",3,"title","imgSrc","text1","scheduleAppointmentUrl","scheduleAppointmentText","scheduleAppointmentClick",4,"ngIf"],["edsSpacing","lg","fallbackImgSrc","/assets/images/ben_head.png",1,"avatars",3,"title","imgSrc","text1","scheduleAppointmentUrl","scheduleAppointmentText","scheduleAppointmentClick"],[1,"filter-avatars__list"],["tableTheme","primary",3,"colDefs","rowData","hasBorders","showPagination","rowTemplate"],["class","dynamic-table__tr dynamic-table__tr--is-striped",4,"ngIf"],[1,"dynamic-table__tr","dynamic-table__tr--is-striped"],[1,"dynamic-table__td"],[1,"dynamic-table__td",3,"innerHTML"],[3,"title","href"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.YNc(1,S,12,14,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.YNc(6,Z,1,1,"p",6),t.YNc(7,y,2,1,"div",7),t.YNc(8,I,2,5,"div",8),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,P,1,1,"ng-template",null,9,t.W1O),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!(null!=s.avatarsFilter&&s.avatarsFilter.hideFunctionalBannerFilters)),t.xp6(5),t.Q6J("ngIf",null==s.avatarsFilter?null:s.avatarsFilter.content),t.xp6(1),t.Q6J("ngIf","on"===s.avatarsViewState),t.xp6(1),t.Q6J("ngIf","off"===s.avatarsViewState))},directives:[h.O5,n.ljP,n.cph,n.I71,n.Wxy,n.ESv,n.JOL,n.iKq,n.OPD,n.gSk,n.r3N,n.qUD,h.sg,n.Ao0,n.Qne,n.zj4],pipes:[w.X],styles:[".filter-avatars__list[_ngcontent-%COMP%] p{margin-bottom:0}"],data:{animation:[B]}}),a})(),p=(()=>{class a{getComponentMapping(){return{"Filters For Avatars":o}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[h.ez,_.m8,n.t8n,n.owC,n.FxY,n.cFv]]}),a})()}}]); 2//# sourceMappingURL=filter-avatars.47a5e7b83ac384b204c2.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.