1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["fund-attribution"],{41811:(A,h,c)=>{c.d(h,{C:()=>p});var u=c(79441),t=c(11318);class f extends u.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(l){return this.hasError?(l.error(this.thrownError),t.w.EMPTY):this.hasCompleted&&this.hasNext?(l.next(this.value),l.complete(),t.w.EMPTY):super._subscribe(l)}next(l){this.hasCompleted||(this.value=l,this.hasNext=!0)}error(l){this.hasCompleted||super.error(l)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var _=c(19969);function p(){return g=>(0,_.O)(new f)(g)}},30330:(A,h,c)=>{c.d(h,{t:()=>f});var u=c(26310),t=c(2316);let f=(()=>{class _{constructor(){this.isPopulated=!1}ngOnInit(){this.brConfig=this.component?.getModels()?.config,this.configurationName=this.brConfig?.configurationName||u.WX.GW,this.fundId=this.brConfig?.fundId,this.shareClassCode=this.brConfig?.shareClassCode}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["ng-component"]],inputs:{component:"component",page:"page"},decls:0,vars:0,template:function(g,l){},encapsulation:2}),_})()},30237:(A,h,c)=>
1{c.r(h),c.d(h,{FundAttributionModule:()=>Ht});var u=c(54364),t=c(2316),f=c(30330),_=c(68411),p=c(26310),g=c(80117),l=c(90267),T=c.n(l),y=c(84806),Z=c(55311),s=c(3138),C=c(46654),v=c(27513),b=c(66237);function q(n,o){1&n&&(t.TgZ(0,"th",28),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"p",29),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,2,"products.attribution-currency-header-title")," (%) "),t.xp6(3),t.hij(" ",t.lcZ(5,4,"products.attribution-currency-header-sub-title")," "))}function w(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"eds-link-item",30),t.NdJ("click",function(a){return t.CHM(e),t.oxw(2).toggleAll(a)}),t.ALo(1,"translate"),t.qZA()}2&n&&t.Q6J("title",t.lcZ(1,3,"products.expand-all"))("useSmallText",!0)("bold",!0)}function E(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"eds-link-item",30),t.NdJ("click",function(a){return t.CHM(e),t.oxw(2).toggleAll(a)}),t.ALo(1,"translate"),t.qZA()}2&n&&t.Q6J("title",t.lcZ(1,3,"products.collapse-all"))("useSmallText",!0)("bold",!0)}function U(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n&&(t.xp6(1),t.AsE(" ",t.lcZ(2,2,"pds.ALLOC_EFFECT")," ",t.lcZ(3,4,"products.attribution-currency-local")," "))}function N(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n&&(t.xp6(1),t.AsE(" ",t.lcZ(2,2,"pds.SELECT_EFFECT")," ",t.lcZ(3,4,"products.attribution-currency-local")," "))}function j(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n&&(t.xp6(1),t.AsE(" ",t.lcZ(2,2,"pds.INTERACT_EFFECT")," ",t.lcZ(3,4,"products.attribution-currency-local")," "))}function I(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n&&(t.xp6(1),t.AsE(" ",t.lcZ(2,2,"pds.TOTAL_EFFECT")," ",t.lcZ(3,4,"products.attribution-currency-local")," "))}function O(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n&&(t.xp6(1),t.AsE(" ",t.lcZ(2,2,"pds.CURRENCY_EFFECT")," ",t.lcZ(3,4,"products.attribution-currency-local")," "))}function F(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedSectorTotalData.totalData.currency.allocationEffect," ")}}function S(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedSectorTotalData.totalData.currency.selectionEffect," ")}}function J(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedSectorTotalData.totalData.currency.interactionEffect," ")}}function Q(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedSectorTotalData.totalData.currency.totalEffect," ")}}function Y(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedSectorTotalData.totalData.currency.totalCurrencyEffect," ")}}function L(n,o){1&n&&t._UZ(0,"eds-icon",43)}function R(n,o){1&n&&t._UZ(0,"eds-icon",44)}function P(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.sectorData.currency.allocationEffect," ")}}function k(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.sectorData.currency.selectionEffect," ")}}function M(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.sectorData.currency.interactionEffect," ")}}function G(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.sectorData.currency.totalEffect," ")}}function W(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.sectorData.currency.totalCurrencyEffect," ")}}function B(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.industryData.currency.allocationEffect," ")}}function $(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.industryData.currency.selectionEffect," ")}}function H(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.industryData.currency.interactionEffect," ")}}function V(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.industryData.currency.totalEffect," ")}}function z(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.industryData.currency.totalCurrencyEffect," ")}}function X(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",18),t._UZ(2,"td",45),t.TgZ(3,"td",46),t._uU(4),t.qZA(),t.TgZ(5,"td",33),t._uU(6),t.qZA(),t.TgZ(7,"td",33),t._uU(8),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.YNc(23,B,2,1,"td",34),t.YNc(24,$,2,1,"td",34),t.YNc(25,H,2,1,"td",34),t.YNc(26,V,2,1,"td",34),t.YNc(27,z,2,1,"td",34),t.TgZ(28,"td",33),t._uU(29),t.qZA(),t.TgZ(30,"td",33),t._uU(31),t.qZA(),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(5);t.xp6(4),t.hij(" ",e.industryName," "),t.xp6(2),t.hij(" ",e.industryData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.industryData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.industryData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.industryData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.industryData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.industryData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.industryData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.industryData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.industryData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.industryData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.industryData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.industryData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.industryData.attribution.totalEffect," ")}}function K(n,o){if(1&n&&(t.ynx(0),t.YNc(1,X,36,19,"ng-container",35),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e.industries)}}function tt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"tr",18),t.TgZ(2,"td",36),t.TgZ(3,"div",37),t.TgZ(4,"button",38),t.NdJ("click",function(a){const d=t.CHM(e).$implicit;return t.oxw(3).toggleRow(a,"sector",d)}),t.YNc(5,L,1,0,"eds-icon",39),t.YNc(6,R,1,0,"eds-icon",40),t.qZA(),t.TgZ(7,"span",41),t.NdJ("click",function(a){const d=t.CHM(e).$implicit;return t.oxw(3).toggleRow(a,"sector",d)}),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.TgZ(23,"td",33),t._uU(24),t.qZA(),t.TgZ(25,"td",33),t._uU(26),t.qZA(),t.YNc(27,P,2,1,"td",34),t.YNc(28,k,2,1,"td",34),t.YNc(29,M,2,1,"td",34),t.YNc(30,G,2,1,"td",34),t.YNc(31,W,2,1,"td",34),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.TgZ(36,"td",33),t._uU(37),t.qZA(),t.TgZ(38,"td",33),t._uU(39),t.qZA(),t.qZA(),t.YNc(40,K,2,1,"ng-container",42),t.BQk()}if(2&n){const e=o.$implicit,i=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.isExpanded),t.xp6(1),t.Q6J("ngIf",!e.isExpanded),t.xp6(2),t.Oqu(e.sectorName),t.xp6(2),t.hij(" ",e.sectorData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.sectorData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.sectorData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.sectorData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.sectorData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.sectorData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.sectorData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.sectorData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.sectorData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.sectorData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.sectorData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.sectorData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.sectorData.attribution.totalEffect," "),t.xp6(1),t.Q6J("ngIf",e.isExpanded)}}function et(n,o){if(1&n&&(t.TgZ(0,"tbody",31),t.TgZ(1,"tr",18),t.TgZ(2,"td",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"td",33),t._uU(6),t.qZA(),t.TgZ(7,"td",33),t._uU(8),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.YNc(23,F,2,1,"td",34),t.YNc(24,S,2,1,"td",34),t.YNc(25,J,2,1,"td",34),t.YNc(26,Q,2,1,"td",34),t.YNc(27,Y,2,1,"td",34),t.TgZ(28,"td",33),t._uU(29),t.qZA(),t.TgZ(30,"td",33),t._uU(31),t.qZA(),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.qZA(),t.YNc(36,tt,41,22,"ng-container",35),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,20,"products.attribution-sector-industry")," "),t.xp6(3),t.hij(" ",e.selectedSectorTotalData.totalData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.selectedSectorTotalData.totalData.attribution.totalEffect," "),t.xp6(1),t.Q6J("ngForOf",e.selectedSectorTotalData.sectors)}}function nt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedCountryTotalData.totalData.currency.allocationEffect," ")}}function it(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedCountryTotalData.totalData.currency.selectionEffect," ")}}function ot(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedCountryTotalData.totalData.currency.interactionEffect," ")}}function at(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedCountryTotalData.totalData.currency.totalEffect," ")}}function rt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.selectedCountryTotalData.totalData.currency.totalCurrencyEffect," ")}}function ct(n,o){1&n&&t._UZ(0,"eds-icon",43)}function dt(n,o){1&n&&t._UZ(0,"eds-icon",44)}function st(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.regionData.currency.allocationEffect," ")}}function lt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.regionData.currency.selectionEffect," ")}}function _t(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.regionData.currency.interactionEffect," ")}}function ut(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.regionData.currency.totalEffect," ")}}function pt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.regionData.currency.totalCurrencyEffect," ")}}function gt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.countryData.currency.allocationEffect," ")}}function ht(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.countryData.currency.selectionEffect," ")}}function ft(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.countryData.currency.interactionEffect," ")}}function mt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.countryData.currency.totalEffect," ")}}function Tt(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.countryData.currency.totalCurrencyEffect," ")}}function xt(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",18),t._UZ(2,"td",45),t.TgZ(3,"td",46),t._uU(4),t.qZA(),t.TgZ(5,"td",33),t._uU(6),t.qZA(),t.TgZ(7,"td",33),t._uU(8),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.YNc(23,gt,2,1,"td",34),t.YNc(24,ht,2,1,"td",34),t.YNc(25,ft,2,1,"td",34),t.YNc(26,mt,2,1,"td",34),t.YNc(27,Tt,2,1,"td",34),t.TgZ(28,"td",33),t._uU(29),t.qZA(),t.TgZ(30,"td",33),t._uU(31),t.qZA(),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(5);t.xp6(4),t.hij(" ",e.countryName," "),t.xp6(2),t.hij(" ",e.countryData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.countryData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.countryData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.countryData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.countryData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.countryData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.countryData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.countryData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.countryData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.countryData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.countryData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.countryData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.countryData.attribution.totalEffect," ")}}function At(n,o){if(1&n&&(t.ynx(0),t.YNc(1,xt,36,19,"ng-container",35),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e.countries)}}function Zt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"tr",18),t.TgZ(2,"td",47),t.TgZ(3,"div",37),t.TgZ(4,"button",38),t.NdJ("click",function(a){const d=t.CHM(e).$implicit;return t.oxw(3).toggleRow(a,"country",d)}),t.YNc(5,ct,1,0,"eds-icon",39),t.YNc(6,dt,1,0,"eds-icon",40),t.qZA(),t.TgZ(7,"span",41),t.NdJ("click",function(a){const d=t.CHM(e).$implicit;return t.oxw(3).toggleRow(a,"country",d)}),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.TgZ
1(23,"td",33),t._uU(24),t.qZA(),t.TgZ(25,"td",33),t._uU(26),t.qZA(),t.YNc(27,st,2,1,"td",34),t.YNc(28,lt,2,1,"td",34),t.YNc(29,_t,2,1,"td",34),t.YNc(30,ut,2,1,"td",34),t.YNc(31,pt,2,1,"td",34),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.TgZ(36,"td",33),t._uU(37),t.qZA(),t.TgZ(38,"td",33),t._uU(39),t.qZA(),t.qZA(),t.YNc(40,At,2,1,"ng-container",42),t.BQk()}if(2&n){const e=o.$implicit,i=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.isExpanded),t.xp6(1),t.Q6J("ngIf",!e.isExpanded),t.xp6(2),t.Oqu(e.regionName),t.xp6(2),t.hij(" ",e.regionData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.regionData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.regionData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.regionData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.regionData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.regionData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.regionData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.regionData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.regionData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",i.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.regionData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.regionData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.regionData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.regionData.attribution.totalEffect," "),t.xp6(1),t.Q6J("ngIf",e.isExpanded)}}function bt(n,o){if(1&n&&(t.TgZ(0,"tbody",31),t.TgZ(1,"tr",18),t.TgZ(2,"td",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"td",33),t._uU(6),t.qZA(),t.TgZ(7,"td",33),t._uU(8),t.qZA(),t.TgZ(9,"td",33),t._uU(10),t.qZA(),t.TgZ(11,"td",33),t._uU(12),t.qZA(),t.TgZ(13,"td",33),t._uU(14),t.qZA(),t.TgZ(15,"td",33),t._uU(16),t.qZA(),t.TgZ(17,"td",33),t._uU(18),t.qZA(),t.TgZ(19,"td",33),t._uU(20),t.qZA(),t.TgZ(21,"td",33),t._uU(22),t.qZA(),t.YNc(23,nt,2,1,"td",34),t.YNc(24,it,2,1,"td",34),t.YNc(25,ot,2,1,"td",34),t.YNc(26,at,2,1,"td",34),t.YNc(27,rt,2,1,"td",34),t.TgZ(28,"td",33),t._uU(29),t.qZA(),t.TgZ(30,"td",33),t._uU(31),t.qZA(),t.TgZ(32,"td",33),t._uU(33),t.qZA(),t.TgZ(34,"td",33),t._uU(35),t.qZA(),t.qZA(),t.YNc(36,Zt,41,22,"ng-container",35),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,20,"products.attribution-region-country")," "),t.xp6(3),t.hij(" ",e.selectedCountryTotalData.totalData.portfolio.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.portfolio.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.portfolio.contributionToReturn," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.benchmark.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.benchmark.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.benchmark.contributionToReturn," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.variation.averageWeight," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.variation.totalReturn," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.variation.contributionToReturn," "),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.attribution.allocationEffect," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.attribution.selectionEffect," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.attribution.interactionEffect," "),t.xp6(2),t.hij(" ",e.selectedCountryTotalData.totalData.attribution.totalEffect," "),t.xp6(1),t.Q6J("ngForOf",e.selectedCountryTotalData.regions)}}const Dt=function(){return{s:"4",m:"8",l:"12"}};function yt(n,o){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t.TgZ(2,"div",15),t.TgZ(3,"table",16),t.TgZ(4,"thead",17),t.TgZ(5,"tr",18),t.TgZ(6,"th",19),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"th",20),t._uU(10),t.qZA(),t.TgZ(11,"th",20),t._uU(12),t.qZA(),t.TgZ(13,"th",20),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.YNc(16,q,6,6,"th",21),t.TgZ(17,"th",22),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.qZA(),t.TgZ(20,"tr",18),t.TgZ(21,"th",23),t.YNc(22,w,2,5,"eds-link-item",24),t.YNc(23,E,2,5,"eds-link-item",24),t.qZA(),t.TgZ(24,"th",25),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"th",25),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.TgZ(30,"th",25),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"th",25),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"th",25),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"th",25),t._uU(40),t.ALo(41,"translate"),t.qZA(),t.TgZ(42,"th",25),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"th",25),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"th",25),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,U,4,6,"th",26),t.YNc(52,N,4,6,"th",26),t.YNc(53,j,4,6,"th",26),t.YNc(54,I,4,6,"th",26),t.YNc(55,O,4,6,"th",26),t.TgZ(56,"th",25),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"th",25),t._uU(60),t.ALo(61,"translate"),t.qZA(),t.TgZ(62,"th",25),t._uU(63),t.ALo(64,"translate"),t.qZA(),t.TgZ(65,"th",25),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.qZA(),t.qZA(),t.YNc(68,et,37,22,"tbody",27),t.YNc(69,bt,37,22,"tbody",27),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("columnNumbers",t.DdM(62,Dt)),t.xp6(6),t.AsE(" ",t.lcZ(8,30,"products.as-of")," ",e.selectedAsOfDate," "),t.xp6(3),t.hij(" ",e.fundName," (%) "),t.xp6(2),t.hij(" ",e.bmName," (%) "),t.xp6(2),t.hij(" ",t.lcZ(15,32,"products.attribution-variation-header-title")," (%) "),t.xp6(2),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(2),t.hij(" ",t.lcZ(19,34,"products.attribution-attribution-header-title")," (%) "),t.xp6(4),t.Q6J("ngIf",!e.isExpanded),t.xp6(1),t.Q6J("ngIf",e.isExpanded),t.xp6(2),t.hij(" ",t.lcZ(26,36,"pds.PORT_AVG_WEIGHT")," "),t.xp6(3),t.hij(" ",t.lcZ(29,38,"pds.PORT_RETURN")," "),t.xp6(3),t.hij(" ",t.lcZ(32,40,"pds.PORT_CONTRIBUTION")," "),t.xp6(3),t.hij(" ",t.lcZ(35,42,"pds.PORT_AVG_WEIGHT")," "),t.xp6(3),t.hij(" ",t.lcZ(38,44,"pds.PORT_RETURN")," "),t.xp6(3),t.hij(" ",t.lcZ(41,46,"pds.PORT_CONTRIBUTION")," "),t.xp6(3),t.hij(" ",t.lcZ(44,48,"pds.PORT_AVG_WEIGHT")," "),t.xp6(3),t.hij(" ",t.lcZ(47,50,"pds.PORT_RETURN")," "),t.xp6(3),t.hij(" ",t.lcZ(50,52,"pds.PORT_CONTRIBUTION")," "),t.xp6(2),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(1),t.Q6J("ngIf",e.showCurrencyAttribution),t.xp6(2),t.hij(" ",t.lcZ(58,54,"pds.ALLOC_EFFECT")," "),t.xp6(3),t.hij(" ",t.lcZ(61,56,"pds.SELECT_EFFECT")," "),t.xp6(3),t.hij(" ",t.lcZ(64,58,"pds.INTERACT_EFFECT")," "),t.xp6(3),t.hij(" ",t.lcZ(67,60,"pds.TOTAL_EFFECT")," "),t.xp6(2),t.Q6J("ngIf","sector"===e.selectedGridDataType&&e.selectedSectorTotalData),t.xp6(1),t.Q6J("ngIf","country"===e.selectedGridDataType&&e.selectedCountryTotalData)}}function Ct(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"products.attribution-no-data-for-selected-date")))}let vt=(()=>{class n{constructor(e){this.translateService=e,this.periodDates=[],this.calendarYears=[],this.fetchAttributionData=new t.vpe,this.triggerDownloadAction=new t.vpe,this.periodList=[],this.gridDataTypeToggle=[],this.isExpanded=!1,this.isWholeGridEmptyForSelectedDate=!1}ngOnInit(){this.getPeriodList(),this.periodDropdownTitleText=this.getPeriodDropdownTitleText(),this.populate()}ngOnChanges(e){e.timePeriodData.isFirstChange()||this.populate()}populate(){this.selectedAsOfDate=this.selectedAsOfDateStd?this.periodDates.find(e=>e.asOfDateStd===this.selectedAsOfDateStd)?.asOfDate:this.periodDates[0]?.asOfDate,this.currencyToggleSwitch={labelKey:this.translateService.instant("products.attribution-switch-currency"),labelOnKey:this.translateService.instant("products.on"),labelOffKey:this.translateService.instant("products.off"),state:this.showCurrencyAttribution?p.wl.ON:p.wl.OFF},this.selectedSectorTotalData=this.timePeriodData?.sectorsTotalData,this.selectedCountryTotalData=this.timePeriodData?.regionsTotalData,this.getGridDataTypeToggleValues()}getPeriodList(){this.tabNumber===C.I.CALENDAR_YEAR?this.calendarYears.forEach(e=>{this.periodList.push({label:e.year,value:e.asOfDateStd})}):this.periodDates.forEach(e=>{this.periodList.push({label:e.asOfDate,value:e.asOfDateStd})})}getPeriodDropdownTitleText(){return this.periodList.find(e=>e.value===this.periodList[0].value)?.label}getGridDataTypeToggleValues(){this.gridDataTypeToggle=[],this.gridDataTypeToggle.push({text:this.translateService.instant("products.attribution-sector-industry"),disabled:!this.selectedSectorTotalData?.sectors.length,active:!((!this.selectedSectorTotalData?.sectors.length||"sector"!==this.selectedGridDataType)&&this.selectedCountryTotalData?.regions.length),value:"sector"}),this.gridDataTypeToggle.push({text:this.translateService.instant("products.attribution-region-country"),disabled:!this.selectedCountryTotalData?.regions.length,active:!!(this.gridDataTypeToggle[0].disabled&&this.selectedCountryTotalData?.regions.length||"country"===this.selectedGridDataType&&this.selectedCountryTotalData?.regions.length),value:"country"}),!this.gridDataTypeToggle[0].disabled&&"sector"===this.selectedGridDataType||!this.gridDataTypeToggle[0].disabled&&this.gridDataTypeToggle[1].disabled?(this.selectedGridDataType="sector",this.isWholeGridEmptyForSelectedDate=!1):this.gridDataTypeToggle[0].disabled&&!this.gridDataTypeToggle[1].disabled||"country"===this.selectedGridDataType?(this.selectedGridDataType="country",this.isWholeGridEmptyForSelectedDate=!1):this.isWholeGridEmptyForSelectedDate=!0}onTimePeriodChange(e,i){this.isExpanded=!1;const a=this.periodDates.find(r=>r.asOfDateStd===e.value).asOfDateStd;this.fetchAttributionData.next({targetView:i,selectedAsOfDateStd:a,selectedGridDataType:this.selectedGridDataType,showCurrencyAttribution:this.showCurrencyAttribution})}onCurrencyToggleChanged(){this.showCurrencyAttribution=!this.showCurrencyAttribution}onGridDataTypeUpdate(e){this.selectedGridDataType=e.value,"sector"===this.selectedGridDataType?this.selectedCountryTotalData.regions.forEach(i=>
1{i.isExpanded=!1}):this.selectedSectorTotalData.sectors.forEach(i=>{i.isExpanded=!1}),this.isExpanded=!1}toggleAll(e){e?.preventDefault(),this.isExpanded=!this.isExpanded,"sector"===this.selectedGridDataType?this.selectedSectorTotalData.sectors.forEach(i=>{i.isExpanded=this.isExpanded}):this.selectedCountryTotalData.regions.forEach(i=>{i.isExpanded=this.isExpanded})}toggleRow(e,i,a){e?.preventDefault(),"sector"===i?this.selectedSectorTotalData.sectors.find(r=>{r.sectorName===a.sectorName&&(r.isExpanded=!r.isExpanded||!r.isExpanded)}):this.selectedCountryTotalData.regions.find(r=>{r.regionName===a.regionName&&(r.isExpanded=!r.isExpanded||!r.isExpanded)})}onDownloadButtonClicked(){this.triggerDownloadAction.next({fundName:this.fundName,selectedAsOfDate:this.selectedAsOfDate,selectedSectorTotalData:this.selectedSectorTotalData,selectedCountryTotalData:this.selectedCountryTotalData})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.s))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ft-timeperiod-data"]],inputs:{periodDates:"periodDates",calendarYears:"calendarYears",timePeriodData:"timePeriodData",showCurrencyAttribution:"showCurrencyAttribution",selectedAsOfDateStd:"selectedAsOfDateStd",selectedGridDataType:"selectedGridDataType",tabNumber:"tabNumber",fundName:"fundName",bmName:"bmName"},outputs:{fetchAttributionData:"fetchAttributionData",triggerDownloadAction:"triggerDownloadAction"},features:[t.TTD],decls:23,vars:27,consts:[["edsGrid",""],["edsSubGrid","layout-3","edsSpacing","md"],["edsFlexbox",""],[3,"label","items","titleText","selectedText","dropdownChange"],["edsFlexbox","","alignItems","center"],[3,"switchId","disabled","labelOff","labelOn","state","switchPressed"],[3,"edsButton","hasIcon","disabled","noMargin","click"],["type","download","size","small"],["edsRow","","edsSpacing","md"],["edsCol",""],[3,"toggleButtons","toggleActive"],["edsRow","",4,"ngIf","ngIfElse"],["wholeGridDataEmptyMessage",""],["edsRow",""],["edsCol","",1,"table--wrapper",3,"columnNumbers"],[1,"table--scroll"],[1,"table"],[1,"table__thead"],[1,"table__tr"],["colspan","2",1,"table__th","table__th--no-bg","small","bold","text-align-left"],["colspan","3",1,"table__th","table__th--no-bg","small","bold","text-align-left"],["class","table__th table__th--no-bg small bold text-align-left","colspan","5",4,"ngIf"],["colspan","4",1,"table__th","table__th--no-bg","small","bold","text-align-left"],["colspan","2",1,"table__th","small","bold","text-align-left"],["theme","dark",3,"title","useSmallText","bold","click",4,"ngIf"],[1,"table__th","small","bold","text-align-right"],["class","table__th small bold text-align-right",4,"ngIf"],["class","table__body",4,"ngIf"],["colspan","5",1,"table__th","table__th--no-bg","small","bold","text-align-left"],[1,"small"],["theme","dark",3,"title","useSmallText","bold","click"],[1,"table__body"],["colspan","2",1,"table__td","small","bold","text-align-left"],[1,"table__td","text-align-right"],["class","table__td text-align-right",4,"ngIf"],[4,"ngFor","ngForOf"],["colspan","2",1,"table__td","table__td--padding-right-none","table__td--sector"],["edsFlexbox","","alignItems","baseline"],["edsButton","icon-only",3,"click"],["type","carrot-down","size","small",4,"ngIf"],["type","carrot-right","size","small",4,"ngIf"],[1,"text-primary",3,"click"],[4,"ngIf"],["type","carrot-down","size","small"],["type","carrot-right","size","small"],[1,"table__td"],[1,"table__td","text-align-left"],["colspan","2",1,"table__td","table__td--padding-right-none","table__td--region"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"eds-dropdown",3),t.NdJ("dropdownChange",function(r){return i.onTimePeriodChange(r,i.tabNumber)}),t.ALo(4,"translate"),t.qZA(),t._uU(5," \xa0\xa0\xa0\xa0 "),t.TgZ(6,"div",4),t.TgZ(7,"label"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"eds-switch",5),t.NdJ("switchPressed",function(){return i.onCurrencyToggleChanged()}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div"),t.TgZ(12,"button",6),t.NdJ("click",function(){return i.onDownloadButtonClicked()}),t._UZ(13,"eds-icon",7),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",8),t.TgZ(18,"div",9),t.TgZ(19,"eds-toggle",10),t.NdJ("toggleActive",function(r){return i.onGri
1dDataTypeUpdate(r)}),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,yt,70,63,"div",11),t.YNc(21,Ct,3,3,"ng-template",null,12,t.W1O),t.qZA()),2&e){const a=t.MAs(22);t.xp6(3),t.s9C("label",t.lcZ(4,19,"products.attribution-select-timeperiod")),t.Q6J("items",i.periodList)("titleText",i.periodDropdownTitleText)("selectedText",i.periodList[0]),t.xp6(5),t.Oqu(t.lcZ(9,21,"products.attribution-currency-toggle-label")),t.xp6(2),t.Q6J("switchId","attribution-switch-tab-"+i.tabNumber)("disabled",!!i.isWholeGridEmptyForSelectedDate)("labelOff",i.currencyToggleSwitch.labelOffKey)("labelOn",i.currencyToggleSwitch.labelOnKey)("state",i.currencyToggleSwitch.state),t.xp6(2),t.Q6J("edsButton","secondary")("hasIcon",!0)("disabled",!!i.isWholeGridEmptyForSelectedDate)("noMargin",!0),t.xp6(2),t.AsE(" ",t.lcZ(15,23,"products.attribution-download-button-label")," (",t.lcZ(16,25,"products.xls-file-extension"),") "),t.xp6(5),t.Q6J("toggleButtons",i.gridDataTypeToggle),t.xp6(1),t.Q6J("ngIf",!i.isWholeGridEmptyForSelectedDate)("ngIfElse",a)}},directives:[s.ljP,s.ESv,s.OPD,s.Wxy,s.JOL,s.qUD,s.Hq3,s.oJW,s.vZ,s.iKq,s.n$2,u.O5,s.zj4,u.sg],pipes:[b.X],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .table__th--no-bg[_ngcontent-%COMP%]{background-color:transparent;color:inherit}[_nghost-%COMP%] .table--wrapper[_ngcontent-%COMP%]{display:grid}[_nghost-%COMP%] .table--scroll[_ngcontent-%COMP%]{overflow-x:auto}[_nghost-%COMP%] .table__td--region[_ngcontent-%COMP%], [_nghost-%COMP%] .table__td--sector[_ngcontent-%COMP%]{min-width:12.5rem}"]}),n})();var qt=c(10487);function wt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t._UZ(1,"eds-section-header",4),t.ALo(2,"translate"),t._UZ(3,"eds-proximal",5),t.TgZ(4,"eds-tabs",6),t.TgZ(5,"eds-tab",7),t.ALo(6,"translate"),t.TgZ(7,"ft-timeperiod-data",8),t.NdJ("fetchAttributionData",function(a){return t.CHM(e),t.oxw(2).fetchAttributionData(a)})("triggerDownloadAction",function(a){return t.CHM(e),t.oxw(2).onDownloadButtonClicked(a)}),t.qZA(),t.qZA(),t.TgZ(8,"eds-tab",9),t.ALo(9,"translate"),t.TgZ(10,"ft-timeperiod-data",8),t.NdJ("fetchAttributionData",function(a){return t.CHM(e),t.oxw(2).fetchAttributionData(a)})("triggerDownloadAction",function(a){return t.CHM(e),t.oxw(2).onDownloadButtonClicked(a)}),t.qZA(),t.qZA(),t.TgZ(11,"eds-tab",10),t.ALo(12,"translate"),t.TgZ(13,"ft-timeperiod-data",8),t.NdJ("fetchAttributionData",function(a){return t.CHM(e),t.oxw(2).fetchAttributionData(a)})("triggerDownloadAction",function(a){return t.CHM(e),t.oxw(2).onDownloadButtonClicked(a)}),t.qZA(),t.qZA(),t.TgZ(14,"eds-tab",11),t.ALo(15,"translate"),t.TgZ(16,"ft-timeperiod-data",12),t.NdJ("fetchAttributionData",function(a){return t.CHM(e),t.oxw(2).fetchAttributionData(a)})("triggerDownloadAction",function(a){return t.CHM(e),t.oxw(2).onDownloadButtonClicked(a)}),t.qZA(),t.qZA(),t.qZA(),t._UZ(17,"eds-proximal",13),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("title",t.lcZ(2,43,"products.attribution-title"))("level",6),t.xp6(3),t.Q6J("followFocus",!0)("isNavigation",!1)("cacheActive",!0)("fullWidth",!0),t.xp6(1),t.Q6J("heading",t.lcZ(6,45,"products.attribution-tab-quarterly")),t.xp6(2),t.Q6J("periodDates",e.periodDates)("timePeriodData",e.timePeriods.quarterly)("showCurrencyAttribution",e.showCurrencyAttribution)("selectedAsOfDateStd",e.selectedAsOfDateStd)("selectedGridDataType",e.selectedGridDataType)("fundName",e.fundName)("bmName",e.bmName)("tabNumber",0),t.xp6(1),t.Q6J("heading",t.lcZ(9,47,"products.attribution-tab-twelve-month-rolling")),t.xp6(2),t.Q6J("periodDates",e.periodDates)("timePeriodData",e.timePeriods.twelveMonthRolling)("showCurrencyAttribution",e.showCurrencyAttribution)("selectedAsOfDateStd",e.selectedAsOfDateStd)("selectedGridDataType",e.selectedGridDataType)("fundName",e.fundName)("bmName",e.bmName)("tabNumber",1),t.xp6(1),t.Q6J("heading",t.lcZ(12,49,"products.attribution-tab-ytd")),t.xp6(2),t.Q6J("periodDates",e.periodDates)("timePeriodData",e.timePeriods.ytd)("showCurrencyAttribution",e.showCurrencyAttribution)("selectedAsOfDateStd",e.selectedAsOfDateStd)("selectedGridDataType",e.selectedGridDataType)("fundName",e.fundName)("bmName",e.bmName)("tabNumber",2),t.xp6(1),t.Q6J("heading",t.lcZ(1
15,51,"products.attribution-tab-calendar-year")),t.xp6(2),t.Q6J("periodDates",e.periodDates)("calendarYears",e.calendarYears)("timePeriodData",e.timePeriods.calendarYear)("showCurrencyAttribution",e.showCurrencyAttribution)("selectedAsOfDateStd",e.selectedAsOfDateStd)("selectedGridDataType",e.selectedGridDataType)("fundName",e.fundName)("bmName",e.bmName)("tabNumber",3)}}function Et(n,o){if(1&n&&(t.ynx(0),t.YNc(1,wt,18,53,"ng-container",0),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(1),t.Q6J("ngIf",e.isValidSignIn)("ngIfElse",i)}}const Ut=function(){return{skin:"Basic 2 Columns",legacy:!1,signOut:!1}};function Nt(n,o){1&n&&(t.TgZ(0,"div",17),t._UZ(1,"ft-sign-in",18),t.qZA()),2&n&&(t.xp6(1),t.Q6J("inputParameters",t.DdM(1,Ut)))}function jt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"eds-panel",19),t.TgZ(2,"div"),t.TgZ(3,"h3"),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.TgZ(9,"div"),t.TgZ(10,"a",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).goToAuth0()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.xp6(1),t.Q6J("hasBorders",!0)("hasPadding",!0)("hasShadows",!0),t.xp6(3),t.Oqu(t.lcZ(5,7,"signin.sign-in-attribution-title")),t.xp6(3),t.hij(" ",t.lcZ(8,9,"signin.sign-in-attribution-introText")," "),t.xp6(3),t.uIk("stopNavigation",!0),t.xp6(1),t.Oqu(t.lcZ(12,11,"signin.signIn")))}function It(n,o){if(1&n&&(t.TgZ(0,"div",15),t.YNc(1,Nt,2,2,"div",16),t.YNc(2,jt,13,13,"div",16),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.isAuth0Login),t.xp6(1),t.Q6J("ngIf",e.isAuth0Login)}}function Ot(n,o){if(1&n&&t.YNc(0,It,3,2,"div",14),2&n){const e=t.oxw(),i=t.MAs(6);t.Q6J("ngIf",!1===e.isValidSignIn)("ngIfElse",i)}}function Ft(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"products.attribution-no-data-error")))}function St(n,o){if(1&n&&t.YNc(0,Ft,3,3,"span",0),2&n){const e=t.oxw(),i=t.MAs(6);t.Q6J("ngIf",!1===e.isLoaded)("ngIfElse",i)}}function Jt(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"products.attribution-data-loading")))}const D=_.Y.getLogger("FundAttributionComponent");let Qt=(()=>{class n extends g.p{constructor(e,i,a,r){super(),this.fundAttributionService=e,this.appStateService=i,this.signInService=a,this.changeDetector=r}populate(e,i,a,r){this.initialize(i,a,r),D.debug(r,this.page),this.isAuth0Login=this.appStateService.isAuth0Login(),this.componentConfiguration=e,this.brConfig=i,this.brConfig.fundId&&(this.dataSubscription=this.fundAttributionService.getFundAttributionState$().subscribe(d=>{d.hasLoadedFullFeed&&(this.isValidSignIn=d.validSignIn,d.validSignIn&&d.timePeriods&&(this.periodDates=d.periodDates,this.calendarYears=d.calendarYears,this.selectedAsOfDateStd=T()(d.selectedAsOfDateStd),this.timePeriods=T()({quarterly:d.timePeriods.quarterly,twelveMonthRolling:d.timePeriods.twelveMonthRolling,ytd:d.timePeriods.ytd,calendarYear:d.timePeriods.calendarYear}),this.selectedGridDataType=T()(d.selectedGridDataType),this.showCurrencyAttribution=T()(d.showCurrencyAttribution),this.fundName=d.fundName,this.bmName=d.bmName)),this.isLoaded=d.hasLoadedFullFeed,this.changeDetector.detectChanges()},d=>{D.error("Error in loading attribution data: ",d),this.isLoaded=!1,this.changeDetector.detectChanges()}),this.fundAttributionService.populate(i))}fetchAttributionData(e){this.fundAttributionService.populate(this.brConfig,e)}onDownloadButtonClicked(e){this.fundAttributionService.triggerDownloadAction(e)}goToAuth0(){this.signInService.submitAuth0()}ngOnDestroy(){this.dataSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.M),t.Y36(Z.ZQ),t.Y36(Z.yE),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ft-fund-attribution"]],features:[t.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["handleSignIn",""],["handleNoAttributionData",""],["handleLoading",""],["caveatPlacement","Fund Attribution:FundAttribution","edsSpacing","md",3,"title","level"],["placement","FundAttributionProximalTop"],["dropdownTheme","handheld",3,"followFocus","isNavigation","cacheActive","fullWidth"],["tabId","attribution-tab-quarterly",3,"heading"],[3,"periodDates","timePeriodData","showCurrencyAttribution","selectedAsOfDateStd","selectedGridDataType","fundName","bmName","tabNumber","fetchAttributionData","triggerDownloadAction"],["tabId","attribution-tab-twelve-month-rolling",3,"heading"],["tabId","attribution-tab-ytd",3,"heading"],["tabId","attribution-tab-calendar-year",3,"heading"],[3,"periodDates","calendarYears","timePeriodData","showCurrencyAttribution","selectedAsOfDateStd","selectedGridDataType","fundName","bmName","tabNumber","fetchAttributionData","triggerDownloadAction"],["placement","FundAttributionProximalBottom"],["edsGrid","",4,"ngIf","ngIfElse"],["edsGrid",""],["class","container--wide",4,"ngIf"],[1,"container--wide"],[3,"inputParameters"],[3,"hasBorders","hasPadding","hasShadows"],["edsButton","",3,"click"]],template:function(e,i){if(1&e&&(t.YNc(0,Et,2,2,"ng-container",0),t.YNc(1,Ot,1,2,"ng-template",null,1,t.W1O),t.YNc(3,St,1,2,"ng-template",null,2,t.W1O),t.YNc(5,Jt,3,3,"ng-template",null,3,t.W1O)),2&e){const a=t.MAs(4);t.Q6J("ngIf",i.isLoaded)("ngIfElse",a)}},directives:[u.O5,s.Iz_,s.OPD,s.JEP,s.n4f,s.idV,vt,s.ljP,qt.F,s.yXm,s.Hq3],pipes:[b.X],styles:[""]}),n})();class m{constructor(o,e,i){this.key=o,this.component=e,this.configurationName=i}static getConfig(o,e){return this.allConfigs.find(i=>i.configurationName?i.key===o&&i.configurationName===e:i.key===o)}}m.FUND_ATTRIBUTION=new m("Fund Attribution",Qt,p.WX.GW),m.allConfigs=[m.FUND_ATTRIBUTION];const Yt=["dynamicCmp"];function Lt(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("No component found for ",e.componentType,"")}}function Rt(n,o){1&n&&(t.TgZ(0,"div"),t._uU(1,"Loading..."),t.qZA())}function Pt(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Error loading data: ",e.errorMsg,"")}}function kt(n,o){}function Mt(n,o){if(1&n&&(t.TgZ(0,"div",2),t.YNc(1,Lt,2,1,"div",3),t.YNc(2,Rt,2,0,"div",3),t.YNc(3,Pt,2,1,"div",3),t.YNc(4,kt,0,0,"ng-template",null,4,t.W1O),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!e.componentConfig),t.xp6(1),t.Q6J("ngIf",e.isLoading),t.xp6(1),t.Q6J("ngIf",e.errorMsg)}}function Gt(n,o){1&n&&t._uU(0,"Click to configure Fund Attribution Component")}const Wt=_.Y.getLogger("FundAttributionEntryComponent");let Bt=(()=>{class n extends f.t{constructor(e,i){super(),this.componentFactoryResolver=e,this.changeDetector=i,this.isLoading=!0}ngOnInit(){if(super.ngOnInit(),this.componentType=this.brConfig?.componentType,this.componentConfig=m.getConfig(this.componentType,this.configurationName),this.changeDetector.detectChanges(),this.componentConfig){const e=this.componentFactoryResolver.resolveComponentFactory(this.componentConfig.component);this.container.clear(),this.componentRef=this.container.createComponent(e),this.isLoading=!1,this.errorMsg=null,this.componentRef.instance.populate(this.componentConfig,this.brConfig,this.component,this.page),this.changeDetector.detectChanges()}else Wt.error("No component found: ",this.componentType,this.configurationName),this.errorMsg=`No component found: ${this.componentType}, ${this.configurationName}`}ngOnDestroy(){this.componentRef?.destroy()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t._Vd),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ft-fund-attribution-entry"]],viewQuery:function(e,i){if(1&e&&t.Gf(Yt,5,t.s_b),2&e){let a;t.iGM(a=t.CRH())&&(i.container=a.first)}},features:[t.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(e,i){if(1&e&&(t.YNc(0,Mt,6,3,"div",0),t.YNc(1,Gt,1,0,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",i.componentType)("ngIfElse",a)}},directives:[u.O5],styles:[""]}),n})();var $t=c(37668);let Ht=(()=>{class n{getComponentMapping(){return{"Fund Attribution":Bt}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,$t.m8,s.hJ1]]}),n})()}}]); 2//# sourceMappingURL=fund-attribution.58e6b6ff4e774676b08e.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.