1"use strict";(self.webpackChunkxingweb=self.webpackChunkxingweb||[]).push([[348],{31348:(Ld,Ht,l)=>{l.r(Ht),l.d(Ht,{ClientsModule:()=>Rt,clientsRoutes:()=>Fn});var c=l(60177),p=l(18326),fn=l(94570),jt=l(9670),Me=l(3553),wt=l(73946),gn=l(62921),En=l(7265),_n=l(71996),Wt=l(10467),F=l(58728),z=l(1797),e=l(54438),ie=l(94776),Ge=l(81615),Ve=l(45947),B=l(30137),Ne=l(20007),f=l(3510);const Cn=["paginator"],bn=o=>({inputGroupGrayedOut:o});function vn(o,n){if(1&o){const t=e.RV6();e.j41(0,"span",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.showAllButtonPressed())}),e.EFF(1," "),e.EFF(2,"\n "),e.nrm(3,"span",22),e.EFF(4,"\n "),e.j41(5,"span",23),e.EFF(6,"Show All"),e.k0s(),e.EFF(7,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("ngClass",e.eq3(1,bn,t.searchTextIsWildcard(t.clientSearchString)))}}function Tn(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",14),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\n "),e.j41(4,"input",16),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.searchInputFieldText,i)||(a.searchInputFieldText=i),e.Njj(i)}),e.bIt("keyup.enter",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.searchInputFieldEnterPressed())}),e.k0s(),e.EFF(5,"\n "),e.j41(6,"span",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.searchSubmit(i.searchInputFieldText))}),e.EFF(7,"\n "),e.nrm(8,"span",18),e.EFF(9,"\n "),e.j41(10,"span",19),e.EFF(11,"Search"),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.DNE(14,vn,8,3,"span",20),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("ngClass",t.shouldShowStateFilter()?"col-md-9":"col-md-12"),e.R7$(4),e.R50("ngModel",t.searchInputFieldText),e.R7$(10),e.Y8G("ngIf",t.shouldHideClientsUntilSearched())}}function yn(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",24),e.EFF(3,"\n "),e.j41(4,"select",25),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.clientStateFilter,i)||(a.clientStateFilter=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.stateFilterChanged())}),e.EFF(5,"\n "),e.j41(6,"option",26),e.EFF(7,"All clients"),e.k0s(),e.EFF(8,"\n "),e.j41(9,"option",27),e.EFF(10,"Proposed clients only"),e.k0s(),e.EFF(11,"\n "),e.j41(12,"option",28),e.EFF(13,"Open clients only"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"option",29),e.EFF(16,"Open clients with a non-zero value"),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.R50("ngModel",t.clientStateFilter)}}function In(o,n){1&o&&(e.j41(0,"span"),e.EFF(1," "),e.k0s())}function xn(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.DNE(2,In,2,0,"span",30),e.EFF(3,"\n "),e.k0s()),2&o){e.XpG(2);const t=e.sdS(24),s=e.XpG();e.R7$(2),e.Y8G("ngIf",!s.shouldHideClientsUntilSearched()||s.shouldHideClientsUntilSearched()&&s.clientSearchString.trim().length>0)("ngIfThen",t)}}function Sn(o,n){1&o&&e.nrm(0,"span")}function kn(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.DNE(2,Sn,1,0,"span",31),e.EFF(3,"\n "),e.k0s()),2&o){e.XpG(2);const t=e.sdS(18),s=e.sdS(21),i=e.XpG();e.R7$(2),e.Y8G("ngIf",i.clients.length>1||i.shouldHideClientsUntilSearched())("ngIfThen",t)("ngIfElse",s)}}function Dn(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.EFF(2,"\n "),e.DNE(3,xn,4,2,"span",13),e.EFF(4,"\n "),e.EFF(5,"\n "),e.DNE(6,kn,4,3,"span",13),e.EFF(7,"\n \n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",0==t.clients.length),e.R7$(3),e.Y8G("ngIf",t.clients.length>0)}}function Rn(o,n){if(1&o){const t=e.RV6();e.j41(0,"accordion-panel",34),e.EFF(1,"\n "),e.j41(2,"client-accordion-title",35),e.bIt("onFocusSelected",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.clientFocusSelected(i))}),e.k0s(),e.EFF(3,"\n "),e.nrm(4,"client-accordion-subtitle",36),e.EFF(5,"\n \n "),e.EFF(6,"\n "),e.j41(7,"div",37),e.EFF(8,"\n "),e.nrm(9,"client-summary-tabs",38),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=n.$implicit;e.XpG();const s=e.sdS(2),i=e.XpG(2);e.Y8G("accordionId",s.accordionId)("panelId",i.getPanelId(t.Id)),e.R7$(2),e.Y8G("client",t)("showFocusButton",i.shouldHideClientsUntilSearched()&&i.clients.length>1&&t.Reference&&t.Reference.trim().length>0),e.R7$(2),e.Y8G("client",t),e.R7$(5),e.Y8G("client",t)}}function jn(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"accordion",32,3),e.EFF(3,"\n \n \n "),e.DNE(4,Rn,12,6,"accordion-panel",33),e.EFF(5," \n \n \n "),e.k0s(),e.EFF(6,"\n ")),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("accordionId","clients-accordion"),e.R7$(3),e.Y8G("ngForOf",t.clients)("ngForTrackBy",t.clientTrackBy)}}function wn(o,n){if(1&o&&(e.EFF(0,"\n \n "),e.j41(1,"span",39),e.EFF(2,"\n "),e.EFF(3,"\n "),e.EFF(4,"\n "),e.j41(5,"div",40),e.EFF(6," \n \n "),e.EFF(7,"\n "),e.j41(8,"div",41),e.EFF(9," \n "),e.nrm(10,"client-accordion-title",42),e.EFF(11,"\n "),e.j41(12,"div",11),e.EFF(13," "),e.EFF(14,"\n "),e.nrm(15,"client-accordion-subtitle",36),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n \n "),e.k0s(),e.EFF(19,"\n \n "),e.EFF(20,"\n "),e.j41(21,"div",43),e.EFF(22," "),e.EFF(23,"\n "),e.nrm(24,"client-summary-tabs",38),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n ")),2&o){const t=e.XpG(2);e.R7$(10),e.Y8G("client",t.clients[0]),e.R7$(5),e.Y8G("client",t.clients[0]),e.R7$(9),e.Y8G("client",t.clients[0])}}function An(o,n){1&o&&(e.j41(0,"span"),e.EFF(1,"matching your search string"),e.k0s())}function Pn(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"div",44),e.EFF(2,"\n "),e.j41(3,"div",45),e.EFF(4),e.k0s(),e.EFF(5,"\n "),e.j41(6,"div",46),e.EFF(7),e.DNE(8,An,2,0,"span",13),e.EFF(9,". If you believe this to be an issue, please "),e.nrm(10,"contact-us-link"),e.EFF(11,"\n to re
1ctify this.\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n ")),2&o){const t=e.XpG(2);e.R7$(4),e.SpI("No ",t.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser()," available"),e.R7$(3),e.SpI("\n No ",t.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser().toLowerCase()," were found "),e.R7$(),e.Y8G("ngIf",t.clientStateFilter.trim().length>0)}}function Mn(o,n){if(1&o&&(e.j41(0,"div",9),e.EFF(1,"\n \n "),e.nrm(2,"clients-header",10),e.EFF(3," "),e.EFF(4,"\n \n "),e.j41(5,"div",11),e.EFF(6,"\n "),e.EFF(7,"\n "),e.DNE(8,Tn,17,3,"div",12),e.EFF(9,"\n\n "),e.EFF(10,"\n "),e.DNE(11,yn,20,1,"div",13),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n\n "),e.EFF(14,"\n "),e.DNE(15,Dn,8,2,"span",13),e.EFF(16,"\n \n "),e.DNE(17,jn,7,3,"ng-template",null,0,e.C5r),e.EFF(19,"\n\n "),e.DNE(20,wn,28,3,"ng-template",null,1,e.C5r),e.EFF(22,"\n\n "),e.DNE(23,Pn,14,3,"ng-template",null,2,e.C5r),e.EFF(25,"\n \n \n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("userDetails",t.userDetails)("clients",t.clients)("totalClientCount",t.totalClients)("hideTotalValue",t.shouldHideClientsUntilSearched()&&!t.searchTextIsWildcard(t.clientSearchString)),e.R7$(6),e.Y8G("ngIf",t.shouldShowSearchBar()),e.R7$(3),e.Y8G("ngIf",t.shouldShowStateFilter()),e.R7$(4),e.Y8G("ngIf",t.clients)}}function Gn(o,n){if(1&o){const t=e.RV6();e.j41(0,"p-paginator",47,4),e.bIt("onPageChange",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.pageChanged(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("rows",t.clientsPerPage)("first",t.currentClientListOffset)("totalRecords",t.totalClients)}}class Y{static#e=this.routerReuseIdentifier="clientslist";constructor(n,t,s,i,a,r,d,u){this.clientStore=n,this.valuationStore=t,this.userStore=s,this.router=i,this.accordionService=a,this.changeDetector=r,this.logonService=d,this.featureStore=u,this.totalClients=0,this.clientsPerPage=10,this.currentClientListOffset=0,this.hasAcknowledgedMultipleClientsWarning=!1,this.userDetails=null,this.searchInputFieldText="",this.clientSearchString="",this.clientStateFilter="all"}ngOnInit(){this.subscribeToAfterPanelsInit(),this.subscribeToUserObject(this),this.subscribeToClientValuation(),this.subscribeToSingleClient()}ngAfterViewInit(){this.shouldHideClientsUntilSearched()?(this.clients=[],this.changeDetector.markForCheck(),this.changeDetector.detectChanges()):this.loadClientList()}reloadAllObjects(){this.shouldHideClientsUntilSearched()||this.loadClientList(),this.userStore.loadUserDetails(),this.changeDetector.markForCheck()}ngOnDestroy(){this.clientsSubscription&&this.clientsSubscription.unsubscribe(),this.userSubscription&&this.userSubscription.unsubscribe(),this.afterPanelsInitSubscription&&this.afterPanelsInitSubscription.unsubscribe(),this.valuationSubscription&&this.valuationSubscription.unsubscribe(),this.singleClientSubscription&&this.singleClientSubscription.unsubscribe()}toggleCollapse(n){$("#pnclient"+n).collapse("toggle")}subscribeToAfterPanelsInit(){null==this.afterPanelsInitSubscription&&(this.afterPanelsInitSubscription=this.accordionService.afterAccordionInit$.subscribe(n=>{if("clients-accordion"==n){let t;if(t=1==this.clients.length?this.clients[0]:null!=this.clientStore.client$.getValue()?this.clientStore.client$.getValue().client:null,null!=t){let s=t.Id;if(s){let i=new z.TD;i.panelId=this.getPanelId(s),i.accordionId="clients-accordion",this.accordionService.openPanel
1(i)}}}}))}loadClientList(){this.error=null,this.clients=null,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.clientStore.loadClientsPaged(this.currentClientListOffset,this.clientsPerPage,this.clientSearchString).subscribe(n=>{this.clientsListReceived(n)},n=>{this.errorOnClientsListReceived(n)})}clientsListReceived(n){this.showWarningForMultipleClientsIfNeededAndReturnWhetherShouldStillShowClients(n.totalClients).then(t=>{!0===t?(this.error=null,this.clients=n.clientList,this.totalClients=n.totalClients,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()):this.searchSubmit("")})}errorOnClientsListReceived(n){this.error=n,this.clients=[],this.totalClients=0,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}subscribeToUserObject(n){this.userSubscription=this.userStore.currentUserDetails$.pipe((0,F.p)(t=>null!=t)).subscribe(t=>{n.userDetails=t.userDetails,n.userError=t.error,n.changeDetector.markForCheck()}),this.userStore.loadUserDetails()}subscribeToClientValuation(){this.valuationSubscription=this.valuationStore.valuationForClient$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(null==n.error){let t=n.clientId,s=this.clients?this.clients.find(i=>i.Id.toString()==t):null;s&&this.clientStore.loadClient(s.Id.toString())}})}subscribeToSingleClient(){this.singleClientSubscription=this.clientStore.client$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(null==n.error){let t=this.clients?this.clients.findIndex(s=>s.Id.toString()==n.clientId):-1;if(-1!=t){let s=this.clients[t],i=n.client;i.Contacts=s.Contacts;let a=[...this.clients];a[t]=i,this.clients=a,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}}})}getPanelId(n){return Y.getPanelId(n.toString())}static getPanelId(n){return`Client${n}`}static getClientIdFromPanelID(n){return null==n?"":n.replace("Client","")}clientTrackBy(n,t){let s="clientId:"+t.Id;return t.Portfolios&&(s+="portfolioCount:"+t.Portfolios.length),s}pageChanged(n){this.currentClientListOffset=n.first,this.loadClientList()}searchInputFieldEnterPressed(){this.searchSubmit(this.searchInputFieldText)}showAllButtonPressed(){this.searchSubmit("*")}searchSubmit(n){if(this.shouldHideClientsUntilSearched()&&""==n.trim())return this.clients=[],this.totalClients=0,this.clientSearchString="",this.changeDetector.markForCheck(),void this.changeDetector.detectChanges();this.currentClientListOffset=0,this.hasAcknowledgedMultipleClientsWarning=!1,this.searchInputFieldText=n,this.clientSearchString=n,this.loadClientList()}stateFilterChanged(){null!=this.paginator&&this.paginator.changePage(0)}searchTextIsWildcard(n){return"*"==(n=n.trim())||"ALL"==n}showWarningForMultipleClientsIfNeededAndReturnWhetherShouldStillShowClients(n){var t=this;return(0,Wt.A)(function*(){return new Promise(s=>{if(!t.hasAcknowledgedMultipleClientsWarning&&t.shouldHideClientsUntilSearched()&&n>1){let i=`This search result contains ${n} clients. Do you wish to continue and show these clients?`;bootbox.confirm({message:i,swapButtonOrder:!0,buttons:{confirm:{label:"Yes",className:"btn-danger"},cancel:{label:"No",className:"btn-info"}},callback:a=>{t.hasAcknowledgedMultipleClientsWarning=a,s(a)}})}else s(!0)})})()}shouldShowStateFilter(){return!1}shouldShowSearchBar(){return this.shouldHideClientsUntilSearched()||this.clientSearchString.length>0||this.totalClients>this.clientsPerPage}shouldHideClientsUntilSearched(){return this.logonService.currentUser.isIntermediaryUser()}clientFocusSelected(n){this.searchSubmit(n.Reference)}static#t=this.\u0275fac=function(t){return new(t||Y)(e.rXU(ie.Fv),e.rXU(Ge.dq),e.rXU(Ve.LU),e.rXU(B.Ix),e.rXU(z.CI),e.rXU(e.gRc),e.rXU(Ne.rA),e.rXU(f.P))};static#n=this.\u0275cmp=e.VBU({type:Y,selectors:[["investments"]],viewQuery:function(t,s){if(1&t&&e.GBs(Cn,5),2&t){let i;e.mGM(i=e.lsd())&&(s.paginator=i.first)}},decls:12,vars:7,consts:[["multipleClientsTemplate",""],["singleClientTemplate",""],["noClientsTemplate",""],["clientsAccordion",""],["paginator",""],[3,"visible"],[3,"tryAgain","error","itemName"],["id","investments-clientList",4,"ngIf"],[3,"rows","first","totalRecords","onPageChange",4,"ngIf"],["id","investments-clientList"],[3,"userDetails","clients","totalClientCount","hideTotalValue"],[1,"row"],["
1id","investments-clientSearch","style","margin-bottom:15px",3,"ngClass",4,"ngIf"],[4,"ngIf"],["id","investments-clientSearch",2,"margin-bottom","15px",3,"ngClass"],[1,"input-group"],["type","text","data-test","clients-list-search-textbox","placeholder","Search by Client Name or Reference",1,"form-control",3,"ngModelChange","keyup.enter","ngModel"],[1,"input-group-addon","hand-cursor",3,"click"],[1,"glyphicon","glyphicon-search","hand-cursor"],["data-test","clients-list-search-submit",1,"hand-cursor"],["class","input-group-addon hand-cursor","data-test","showAllButton",3,"ngClass","click",4,"ngIf"],["data-test","showAllButton",1,"input-group-addon","hand-cursor",3,"click","ngClass"],[1,"glyphicon","glyphicon-asterisk","hand-cursor"],["data-test","showAllLink",1,"hand-cursor"],[1,"col-md-3","pull-right",2,"margin-bottom","15px"],[1,"form-control",3,"ngModelChange","ngModel"],["value","all","selected",""],["value","proposed"],["value","open"],["value","opennonzero"],[4,"ngIf","ngIfThen"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"animated","fadeInUp",2,"animation-duration","0.5s",3,"accordionId"],["class","investments-clientlist-client",3,"accordionId","panelId",4,"ngFor","ngForOf","ngForTrackBy"],[1,"investments-clientlist-client",3,"accordionId","panelId"],[1,"title",3,"onFocusSelected","client","showFocusButton"],[1,"subtitle",3,"client"],[1,"body"],[3,"client"],[1,"investments-clientlist-client"],[1,"well","container-break-out",2,"padding","0px","border-radius","0","margin-bottom","10px","margin-top","-25px"],[1,"container","maximized",2,"padding-top","15px"],[1,"title",3,"client"],[1,"panel","panel-default",2,"border","0","margin","-5px","padding","5px"],["id","investments-clientlist-noClientsMessage",1,"panel","panel-primary"],[1,"panel-heading",2,"padding-left","15px","padding-right","15px"],[1,"panel-body"],[3,"onPageChange","rows","first","totalRecords"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.nrm(1,"loading",5),e.EFF(2,"\n "),e.j41(3,"error",6),e.bIt("tryAgain",function(){return s.reloadAllObjects()}),e.k0s(),e.EFF(4,"\n "),e.j41(5,"error",6),e.bIt("tryAgain",function(){return s.reloadAllObjects()}),e.k0s(),e.EFF(6,"\n\n "),e.DNE(7,Mn,26,7,"div",7),e.EFF(8,"\n\n "),e.EFF(9,"\n "),e.DNE(10,Gn,2,3,"p-paginator",8),e.EFF(11,"\n \n ")),2&t&&(e.R7$(),e.Y8G("visible",null==s.clients&&null==s.error&&null==s.userError),e.R7$(2),e.Y8G("error",s.error)("itemName",s.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser()+" List"),e.R7$(2),e.Y8G("error",s.userError)("itemName","User Details"),e.R7$(2),e.Y8G("ngIf",s.clients),e.R7$(3),e.Y8G("ngIf",s.totalClients>s.clientsPerPage))},styles:["h1[_ngcontent-%COMP%]{font-size:1.6em;font-weight:400}",".rowSpacing[_ngcontent-%COMP%]{margin-top:.8em}",".sectionSpacing[_ngcontent-%COMP%]{margin-top:2em}",".no-wrap[_ngcontent-%COMP%]{white-space:nowrap}",".panel-heading[_ngcontent-%COMP%]{padding-left:0;padding-right:0}",".panel-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}",".hand-cursor[_ngcontent-%COMP%]{cursor:pointer}",".container-break-out[_ngcontent-%COMP%]{width:100vw;position:relative;left:calc(-.5*(100vw - 100%))}",".inputGroupGrayedOut[_ngcontent-%COMP%]{opacity:.5}"],changeDetection:0})}class Vn{static getGreeting(n,t,s){let i=t.FeatureToggles.GreetingsText,a=this.getGreetingText(n,i,s);return a||(a=""),a}static getGreetingText(n,t,s){let i=this.getSalutation(t);return""==i?null:("contact"==s&&("%fullname%"==i.toLocaleLowerCase()?i=n.Name:i+=", "+this.getUserFirstName(n.Name)),i)}static getSalutation(n){var s=(new Date).getHours();return s<12?n.Morning:s<18?n.Afternoon:n.Evening}static getUserFirstName(n){return n?n.slice(0,n.indexOf(" ")):""}}var x=l(37531),At=l(46959),Be=l(83741);function Nn(o,n){if(1&o&&(e.j41(0,"h1"),e.EFF(1,"\n "),e.nrm(2,"span",6),e.EFF(3,"\xa0\n "),e.j41(4,"span"),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.EFF(7,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(5),e.JRh(t.getGreetingsText())}}function Bn(o,n){if(1&o&&(e.j41(0,"h1",10),e.EFF(1),e.nI1(2,"monetaryValue"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.SpI("\n ",e.i5U(2,1,t.getTotalValueToShow().Value,t.getTotalValueToShow().Currency),"\n ")}}function Yn(o,n){if(1&o&&(e.j41(0,"div",7),e.EFF(1,"\n "),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"span",8),e.EFF(6,"\n "),e.DNE(7,Bn,3,4,"h1",9),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(3),e.SpI("\n ",t.getTotalCaption(),"\n "),e.R7$(4),e.Y8G("ngIf",t.totalValue)}}function Xn(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",2),e.EFF(5,"\n "),e.DNE(6,Nn,8,1,"h1",0),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n "),e.j41(9,"div",3),e.EFF(10,"\n "),e.DNE(11,Yn,10,2,"div",4),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.nrm(14,"div",5),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(6),e.Y8G("ngIf",t.getGreetingsText().length>0),e.R7$(5),e.Y8G("ngIf",t.shouldShowTotalInvestmentsValueLabel())}}class me{constructor(n,t,s,i){this.logonService=n,this.featureStore=t,this.valuationStore=s,this.changeDetector=i,this.totalClientCount=0,this.hideTotalValue=!1,this.clientCurrencySymbol="",this.clientValue=0,this.valuationSubscription=null,this.isLoading=!1}ngOnInit(){this.SetupSubscription()}ngOnDestroy(){this.valuationSubscription&&this.valuationSubscription.unsubscribe()}ngOnChanges(n){if(n.clients)if(this.checkAPIVersion("2021.3.0.0")<0){this.clientCurrencySymbol="",this.clientValue=0;for(let t of this.clients){let s=null!=t.LatestValue?t.LatestValue.BaseValue:0;this.clientValue+=x.K.preciseRound(s,2),null!=t.LatestValue&&(this.clientCurrencySymbol=t.LatestValue.BaseCurrency.UpperSymbol)}}else this.valuationStore.loadTotalValue()}SetupSubscription(){this.checkAPIVersion("2021.3.0.0")>=0&&(this.valuationSubscription=this.valuationStore.totalValue$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{this.totalValue=n.totalValue,this.error=n.error,this.isLoading=!1,this.changeDetector.markForCheck()}))}getGreetingsText(){return this.userDetails?Vn.getGreeting(this.userDetails,this.featureStore,this.logonService.currentUser.userCredentialType):""}getTotalCaption(){return this.logonService.currentUser.isIntermediaryUser()?"Total value:":"Total investment value:"}getTotalValueToShow(){return this.checkAPIVersion("2021.3.0.0")<0?{Value:this.clientValue,Currency:this.clientCurrencySymbol}:{Value:this.totalValue.MarketValue,Currency:this.totalValue.Currency.UpperSymbol}}shouldShowHeader(){return this.userDetails&&this.getGreetingsText().length>0}shouldShowTotalInvestmentsValueLabel(){return!(this.checkAPIVersion("2021.3.0.0")<0&&this.totalClientCount!=this.clients.length||this.hideTotalValue||!this.clients||this.totalClientCount<2)&&this.featureStore.FeatureToggles.ShowTotalInvestmentsValue}checkAPIVersion(n){return At.f.Compare(this.featureStore.FeatureToggles.APIVersion,n)}static#e=this.\u0275fac=function(t){return new(t||me)(e.rXU(Ne.rA),e.rXU(f.P),e.rXU(Ge.dq),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:me,selectors:[["clients-header"]],inputs:{userDetails:"userDetails",clients:"clients",totalClientCount:"totalClientCount",hideTotalValue:"hideTotalValue"},features:[e.OA$],decls:3,vars:1,consts:[[4,"ngIf"],[1,"panel"],[1,"col-sm-7"],[1,"col-sm-5"],["data-test","totalValueHeader","class","pull-right-sm","id","header-totalInvestmentValue",4,"ngIf"],[1,"clearfix"],["aria-hidden","true",1,"fa","fa-users"],["data-test","totalValueHeader","id","header-totalInvestmentValue",1,"pull-right-sm"],[2,"display","inline-block"],["class","text-primary",4,"ngIf"],[1,"text-primary"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Xn,17,2,"div",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",(s.shouldShowHeader()||s.shouldShowTotalInvestmentsValueLabel())&&!s.isLoading))},dependencies:[c.bT,Be.r],styles:["h1[_ngcontent-%COMP%]{font-size:1.6em;font-weight:400}"],changeDetection:0})}function On(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"span",6),e.EFF(3,"\n "),e.j41(4,"button",7),e.bIt("click",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.focusPressed(i))}),e.nrm(5,"i",8),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.k0s()}}function Ln(o,n){if(1&o&&(e.j41(0,"div",9),e.EFF(1,"\n "),e.j41(2,"span",10)(3,"b"),e.EFF(4),e.k0s()(),e.EFF(5,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(4),e.JRh(null==t.client?null:t.client.State)}}function Un(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",2),e.EFF(5," "),e.EFF(6,"\n \n "),e.DNE(7,On,8,0,"div",0),e.EFF(8,"\n \n "),e.j41(9,"div",3),e.EFF(10," "),e.EFF(11,"\n "),e.j41(12,"span",4),e.EFF(13),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n\n "),e.DNE(16,Ln,6,1,"div",5),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(7),e.Y8G("ngIf",t.showFocusButton),e.R7$(6),e.JRh(t.client.NameOrReportingName),e.R7$(3),e.Y8G("ngIf",t.client&&"Open"!=t.client.State)}}class he{constructor(n,t){this.clientStore=n,this.featureStore=t,this.show
1FocusButton=!1,this.onFocusSelected=new e.bkB}ngAfterViewChecked(){let n=$('[data-toggle="tooltip"]');n.tooltip("hide"),n.tooltip()}focusPressed(n){n.stopPropagation(),bootbox.confirm({message:"Focus the clients list on this one client?<br/><br/>This will change the search text to be the selected client's reference.",swapButtonOrder:!0,buttons:{confirm:{label:"Yes",className:"btn-success"},cancel:{label:"No",className:"btn-info"}},callback:t=>{1==t&&this.onFocusSelected.emit(this.client)}})}static#e=this.\u0275fac=function(t){return new(t||he)(e.rXU(ie.Fv),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:he,selectors:[["client-accordion-title"]],inputs:{client:"client",showFocusButton:"showFocusButton"},outputs:{onFocusSelected:"onFocusSelected"},decls:3,vars:1,consts:[[4,"ngIf"],[1,"title","row"],[1,"col-xs-12",2,"padding-bottom","4px","display","flex","align-items","center","margin-right","-30px"],[2,"font-size","20px","font-weight","300"],["data-test","client-title-name",1,""],["style","margin-left: auto; align-self: flex-start",4,"ngIf"],[2,"padding-right","10px"],[1,"btn","btn-default",2,"margin-bottom","4px",3,"click"],["aria-hidden","true",1,"fa","fa-thumb-tack"],[2,"margin-left","auto","align-self","flex-start"],[1,"text-danger"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Un,20,3,"div",0),e.EFF(2,"\n")),2&t&&(e.R7$(),e.Y8G("ngIf",s.client))},dependencies:[c.bT],encapsulation:2})}var G=l(40811),se=l(67376),V=l(71257);function Hn(o,n){if(1&o&&(e.qex(0),e.EFF(1,"\n "),e.j41(2,"div",8),e.EFF(3),e.nI1(4,"monetaryValue"),e.k0s(),e.EFF(5,"\n "),e.bVm()),2&o){const t=n.$implicit,s=e.XpG(3);e.R7$(3),e.E5c("",t.owner.DisplayName," has a remaining ",s.isJISA(t.account.RegulatoryType)?"Junior":""," ISA allowance of ",e.i5U(4,3,s.getISARemainingAllowance(t.account.Id),"\xa3"),"")}}function Wn(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",5),e.EFF(3,"\n "),e.nrm(4,"div",6),e.EFF(5,"\n "),e.j41(6,"div",7),e.EFF(7,"\n "),e.DNE(8,Hn,6,6,"ng-container",3),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(8),e.Y8G("ngForOf",t.isaWrappers)}}function zn(o,n){if(1&o&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(t.DisplayName)}}function Qn(o,n){if(1&o&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit,s=e.XpG(3);e.R7$(),e.JRh(t.getValue(s.client))}}function Zn(o,n){if(1&o&&(e.j41(0,"div",10),e.EFF(1,"\n "),e.DNE(2,zn,2,1,"div",11),e.EFF(3,"\n "),e.DNE(4,Qn,2,1,"div",12),e.EFF(5,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG(3);e.R7$(2),e.Y8G("ngIf",t.getValue(s.client)),e.R7$(2),e.Y8G("ngIf",t.getValue(s.client))}}function Jn(o,n){if(1&o&&(e.qex(0),e.EFF(1,"\n "),e.DNE(2,Zn,6,2,"div",9),e.EFF(3,"\n "),e.bVm()),2&o){const t=n.$implicit,s=e.XpG(3);e.R7$(2),e.Y8G("ngIf",s.shouldShowField(t))}}function Kn(o,n){if(1&o&&(e.qex(0),e.EFF(1,"\n "),e.j41(2,"div",5),e.EFF(3,"\n "),e.DNE(4,Jn,4,1,"ng-container",3),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.bVm()),2&o){const t=n.$implicit;e.R7$(4),e.Y8G("ngForOf",t)}}function qn(o,n){if(1&o&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.Y8G("ngClass",t.getValueClass()),e.R7$(),e.SpI("\n ",t.getLatestValueFormatted(t.client),"\n ")}}function $n(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",2),e.EFF(5,"\n "),e.DNE(6,Wn,12,1,"div",0),e.EFF(7,"\n\n "),e.DNE(8,Kn,7,1,"ng-container",3),e.EFF(9,"\n \n "),e.DNE(10,qn,2,2,"span",4),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n \n "),e.k0s(),e.EFF(13,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(6),e.Y8G("ngIf",t.shouldDisplayClientLevelISAAllowance()&&t.isaSubscriptionStatus.length>0),e.R7$(2),e.Y8G("ngForOf",t.getFieldRows()),e.R7$(2),e.Y8G("ngIf",!t.featureStore.FeatureToggles.HideCurrentValue&&null!=(null==t.client?null:t.client.LatestValue))}}class Fe{constructor(n,t,s){this.featureStore=n,this.accountStore=t,this.changeDetector=s,this.isaSubscriptionStatus=[],this.isaWrappers=[]}ngOnInit(){if(this.shouldDisplayClientLevelISAAllowance()){const n=this.client.ActivePortfolios,s=se.flatten(n.map(i=>i.ActiveAccounts)).filter(i=>this.isISA(i.RegulatoryType)||this.isJISA(i.RegulatoryType));for(const i of s){const a=this.client.Contacts.find(u=>u.CRMGuid===i.OwnerGuid),r=n.find(u=>u.ActiveAccounts.map(b=>b.Id).includes(i.Id)),d={account:i,portfolio:r,owner:a};this.isaWrappers.push(d),this.setupISASubscription(i,r)}}}setupISASubscription(n,t){let s=this;s.subsSubscription=s.accountStore.isaSubscriptionStatus$.pipe((0,F.p)(i=>null!=i&&i.AccountId==n.Id)).subscribe(i=>
1{s.isaSubscriptionStatus.push(i),s.changeDetector.markForCheck()},i=>{alert("Error getting ISA subscription: "+i)}),this.accountStore.isaSubscriptionStatus(this.client.ClientId,t.Id,n.Id,new Date)}getValueClass(){let n="pull-right text-primary";return this.getFieldRows().length>0&&(n+=" margin-md"),n}shouldShowField(n){return!!n&&!!(n.getValue(this.client)||window.screen.width>=992)}getFieldRows(){let n=this.featureStore.FeatureToggles.Columns.ClientHeader,t=new Array;for(let i=0;i<n.length;i+=1){let a=n[i];i%4==0&&t.push([null,null,null,null]),t[t.length-1][i%4]=a}return t}getLatestValueFormatted(n){return null!=n.LatestValue.Currency?x.K.formatCurrency(n.LatestValue.MarketValue,n.LatestValue.Currency.UpperSymbol,n.LatestValue.Currency.DecimalPlaces):n.LatestValue.BaseCurrency?x.K.formatCurrency(n.LatestValue.BaseValue,n.LatestValue.BaseCurrency.UpperSymbol,n.LatestValue.BaseCurrency.DecimalPlaces):""}getISARemainingAllowance(n){return this.isaSubscriptionStatus.find(t=>t.AccountId===n)?.RemainingAllowance}shouldDisplayClientLevelISAAllowance(){return this.featureStore.FeatureToggles.ClientLevelISAAllowance&&("Individual"===this.client.ClientType||"Joint"===this.client.ClientType)}isISA(n){return n===V.e.GetEnumDescription(G.tL,G.tL.ISA)}isJISA(n){return n===V.e.GetEnumDescription(G.tL,G.tL.JISA)}static#e=this.\u0275fac=function(t){return new(t||Fe)(e.rXU(f.P),e.rXU(G.Th),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Fe,selectors:[["client-accordion-subtitle"]],inputs:{client:"client"},decls:3,vars:1,consts:[[4,"ngIf"],[1,"subtitle","row",2,"margin","-14px 0 0 0"],[1,"col-xs-12"],[4,"ngFor","ngForOf"],["style","position: relative; width: auto; font-size:medium; height: 25px; padding-bottom: 4px",3,"ngClass",4,"ngIf"],[1,"row"],[1,"col-md-3","col-xs-6"],[1,"col-md-6","col-xs-6"],[1,"text-info",2,"font-size","small","font-style","italic"],["class","col-md-3 col-xs-6","style","min-height: 32px; margin-bottom: 8px",4,"ngIf"],[1,"col-md-3","col-xs-6",2,"min-height","32px","margin-bottom","8px"],["class","text-muted","style","font-size: x-small",4,"ngIf"],["class","text-primary","style","font-size: small",4,"ngIf"],[1,"text-muted",2,"font-size","x-small"],[1,"text-primary",2,"font-size","small"],[2,"position","relative","width","auto","font-size","medium","height","25px","padding-bottom","4px",3,"ngClass"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,$n,14,3,"div",0),e.EFF(2,"\n")),2&t&&(e.R7$(),e.Y8G("ngIf",s.client))},dependencies:[c.YU,c.Sq,c.bT,Be.r],styles:["h1[_ngcontent-%COMP%]{font-size:1.6em;font-weight:400}","@media (min-width: 768px){.margin-md[_ngcontent-%COMP%]{margin-top:-25px;bottom:0}}"]})}var v=l(3934),h=l(97586),zt=l(26830),ei=l(39636),Pt=l(496),Mt=l(76763),ti=l(13320),Qt=l(46093),Ye=l(870),Q=l(81217),ni=l(10953),ii=l(52879),A=l(12008),Z=l(50357),P=l(83626),si=l(52523),fe=l(34937),oi=l(26604),X=l(72435),O=l(78474),ai=l(59);const ri=["startDatePicker"],li=["endDatePicker"];function ci(o,n){if(1&o&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.SpI("\n ",t.dateValidationMessage,"\n ")}}function di(o,n){if(1&o&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&o){const t=n.$implicit,s=e.XpG();e.Y8G("hidden",s.shouldHideDatePickerPeriodChoice(t.value,t.hidden))("value",t.value),e.BMQ("data-test","periodSelectorOption-"+t.value),e.R7$(),e.JRh(t.title)}}function pi(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSelectClick())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("disabled",!t.isDateRangeValid()),e.R7$(),e.SpI("",t.buttonLabel,"\n ")}}class g{static#e=this.CurrentMonth="currentmonth";static#t=this.OneMonth="1month";static#n=this.TwoMonths="2month";static#i=this.ThreeMonths="3month";static#s=this.SixMonths="6month";static#o=this.YTD="ytd";static#a=this.OneYear="1year";static#r=this.TwoYears="2years";static#l=this.ThreeYears="3years";static#c=this.SinceInception="sinceinception";static#d=this.Custom="custom";get context(){return this.performanceContext.contextForClient(this.clientId)}
1get minDate(){let n=h(this.context.entity.inception);if(this.featureSwitch.FeatureToggles.PerformanceStartCutOffInYears>0){let t=h().subtract(this.featureSwitch.FeatureToggles.PerformanceStartCutOffInYears,"years").startOf("day");n.isBefore(t)&&(n=t)}return n}get defaultEndDate(){let n=this.context.latestPerformanceDate.getValue();return n?.data?h(n?.data):this.context.isDaily.getValue()?h().clone().subtract(1,"day").endOf("day"):h().clone().subtract(1,"month").endOf("month")}get selectedPeriod(){if(!this.$startDatePicker||!this.$endDatePicker)return new O.r(h(this.minDate),h(this.defaultEndDate));let n=this.$startDatePicker.data("DateTimePicker").date(),t=this.$endDatePicker.data("DateTimePicker").date();return new O.r(n,t)}set selectedPeriod(n){!this.$startDatePicker||!this.$endDatePicker||(this.$startDatePicker.off(),this.$endDatePicker.off(),this.$startDatePicker.data("DateTimePicker").date(n.startPeriod),this.$endDatePicker.data("DateTimePicker").date(n.endPeriod),this.$startDatePicker.on("dp.change",t=>{this.setOptionToCustom()}),this.$endDatePicker.on("dp.change",t=>{this.setOptionToCustom()}))}get isDaily(){return this.context.isDaily.getValue()}constructor(n,t,s){this.changeDetector=n,this.featureSwitch=t,this.performanceContext=s,this.dateValidationMessage="",this.buttonLabel="Select",this.showButton=!0,this.maxDate=h().endOf("day"),this.initialPeriod=g.ThreeMonths,this.onPeriodSelected=new e.bkB,this.calculationOptions=[{title:"Current Month",value:g.CurrentMonth,hidden:!1},{title:"1 month",value:g.OneMonth,hidden:!1},{title:"2 months",value:g.TwoMonths,hidden:!1},{title:"3 months",value:g.ThreeMonths,hidden:!1},{title:"6 months",value:g.SixMonths,hidden:!1},{title:"YTD",value:g.YTD,hidden:!1},{title:"1 year",value:g.OneYear,hidden:!1},{title:"2 years",value:g.TwoYears,hidden:!1},{title:"3 years",value:g.ThreeYears,hidden:!1},{title:"Earliest Available",value:g.SinceInception,hidden:!1},{title:"Custom",value:g.Custom,hidden:!1}]}ngOnInit(){this.$startDatePicker=$(this.startDatePicker.nativeElement),this.$endDatePicker=$(this.endDatePicker.nativeElement);let n={viewMode:"years",format:"D MMM YYYY",maxDate:this.maxDate,ignoreReadonly:!0};null!=this.minDate&&(n.minDate=h(this.minDate).startOf("day")),this.$startDatePicker.datetimepicker(n),this.$endDatePicker.datetimepicker(n),this.getAvailablePeriods(),this.context.period?(this.selectedPeriod=this.context.period,this.selectedOption=g.Custom):(this.setStartEndPeriods(this.initialPeriod),this.selectedOption=this.initialPeriod),this.latestPerformanceDateSubscription=this.context.latestPerformanceDate.subscribe(t=>{if(!t.isLoading){let s=this.getStartAndEndPeriods(this.selectedOption),i=new O.r(s[0],s[1]);if(this.context.selectedPeriod.next(i),null==t.data&&this.context.returnedPeriod.next(i),this.featureSwitch.FeatureToggles.PerformanceStartCutOffInYears>0){const a=h().subtract(this.featureSwitch.FeatureToggles.PerformanceStartCutOffInYears,"years").startOf("day");if(h(t.data).isBefore(a)){const r=new Error(`The latest performance date is more than ${this.featureSwitch.FeatureToggles.PerformanceStartCutOffInYears.toString()} years ago, so performance cannot be displayed.`),d=new ai.l(this.context.entity.id,this.context.period,r);this.context.errorForEntity.next(d)}}}}),this.selectedPeriodSubscription=this.context.selectedPeriod.subscribe(t=>{null!==t&&(this.selectedPeriod=t)}),this.returnedPeriodSubscription=this.context.returnedPeriod.subscribe(t=>{null!==t&&(this.selectedPeriod=t)})}ngOnDestroy(){console.log("PEriod picker destroy"),this.latestPerformanceDateSubscription&&this.latestPerformanceDateSubscription.unsubscribe(),this.selectedPeriodSubscription&&this.selectedPeriodSubscription.unsubscribe(),this.returnedPeriodSubscription&&this.returnedPeriodSubscription.unsubscribe()}shouldHideDatePickerPeriodChoice(n,t){return!!(n==g.SinceInception&&!this.minDate||n==g.CurrentMonth&&this.maxDate&&this.maxDate.isBefore(h().startOf("month"))||!0===t)}onSelectorChanged(n){this.setStartEndPeriods(this.selectedOption)}setOptionToCustom(){this.selectedOption=g.Custom,this.changeDetector.markForCheck()}onSelectClick(){let n=h(this.$startDatePicker.data("DateTimePicker").date()),t=h(this.$endDatePicker.data("DateTimePicker").date()),s=new O.r(n,t);this.onPeriodSelected.emit(s)}setStartEndPeriods(n){if(!this.$startDatePicker||!this.$endDatePicker)return;let t=this.getStartAndEndPeriods(n);this.maxDate&&(this.$startDatePicker.data("DateTimePicker").maxDate(this.maxDate.clone().endOf("day")),this.$endDatePicker.data("DateTimePicker").maxDate(this.maxDate.clone().endOf("day"))),this.minDate&&(this.$startDatePicker.data("DateTimePicker").minDate(this.minDate.clone().startOf("day")),this.$endDatePicker.data("DateTimePicker").minDate(this.minDate.clone().startOf("day"))),this.$startDatePicker.off(),this.$endDatePicker.off(),this.$startDatePicker.data("DateTimePicker").date(t[0]),this.$endDatePicker.data("DateTimePicker").date(t[1]),this.$startDatePicker.on("dp.change",s=>{this.setOptionToCustom()}),this.$endDatePicker.on("dp.change",s=>{this.setOptionToCustom()})}getStartAndEndPeriods(n){let s,i,t=this.defaultEndDate.clone();return t.isAfter(this.maxDate)&&(t=this.maxDate.clone().endOf("day")),i=t,n.toLocaleLowerCase()===g.Custom.toLocaleLowerCase()?(s=this.$startDatePicker.data("DateTimePicker").date(),i=this.$endDatePicker.data("DateTimePicker").date()):s=this.getStartPeriodDate(n,t),(!s||this.minDate&&s.isBefore(this.minDate))&&(s=this.minDate.clone()),(!i||this.maxDate&&i.isAfter(this.maxDate))&&(i=this.maxDate.clone()),[s,i]}getStartPeriodDate(n,t){let s;switch(n.toLowerCase()){case g.CurrentMonth:s=t.clone().startOf("month");break;case g.OneMonth:s=this.subtractTime(t,1,0);break;case g.TwoMonths:s=this.subtractTime(t,2,0);break;case g.ThreeMonths:s=this.subtractTime(t,3,0);break;case g.SixMonths:s=this.subtractTime(t,6,0);break;case g.OneYear:s=this.subtractTime(t,0,1);break;case g.TwoYears:s=this.subtractTime(t,0,2);break;case g.ThreeYears:s=this.subtractTime(t,0,3);break;case g.SinceInception:s=this.minDate.clone();break;case g.YTD:s=t.clone().startOf("year")}return s}subtractTime(n,t,s){let i=n.clone();return!this.isDaily&&t>0?(i.startOf("month"),i.subtract(t-1,"months")):i.subtract(t,"months"),s>0&&(i.subtract(11,"months"),i.startOf("month"),i.subtract(s-1,"years")),i}isDateRangeValid(){return this.selectedPeriod.endPeriod<this.selectedPeriod.startPeriod?(this.changeDetector.markForCheck(),this.dateValidationMessage="End Period cannot be before the Start Period.",!1):(this.changeDetector.markForCheck(),!0)}
1getAvailablePeriods(){for(let n of this.calculationOptions)if(n.value!==g.Custom){let t=this.defaultEndDate??this.maxDate;this.getStartPeriodDate(n.value,t).isBefore(this.minDate,"day")&&(n.hidden=!0)}}static#p=this.\u0275fac=function(t){return new(t||g)(e.rXU(e.gRc),e.rXU(f.P),e.rXU(X.M))};static#u=this.\u0275cmp=e.VBU({type:g,selectors:[["periodPickerPerformance-v2"]],viewQuery:function(t,s){if(1&t&&(e.GBs(ri,7),e.GBs(li,7)),2&t){let i;e.mGM(i=e.lsd())&&(s.startDatePicker=i.first),e.mGM(i=e.lsd())&&(s.endDatePicker=i.first)}},inputs:{buttonLabel:"buttonLabel",showButton:"showButton",maxDate:"maxDate",initialPeriod:"initialPeriod",clientId:"clientId"},outputs:{onPeriodSelected:"onPeriodSelected"},decls:50,vars:4,consts:[["startDatePicker",""],["endDatePicker",""],[1,"form-group"],["class","alert alert-warning",4,"ngIf"],["data-test","periodSelector","required","",1,"form-control",3,"ngModelChange","ngModel"],[3,"hidden","value",4,"ngFor","ngForOf"],["for",""],[1,"input-group","date"],["type","text","readonly","readonly","data-test","startPickerInput",1,"form-control"],["data-test","startPicker",1,"input-group-addon"],[1,"fa","fa-calendar"],["type","text","readonly","readonly","data-test","endPickerInput",1,"form-control"],["data-test","endPicker",1,"input-group-addon"],["class","btn btn-primary pull-right","data-test","calculateButton",3,"disabled","click",4,"ngIf"],[1,"alert","alert-warning"],[3,"hidden","value"],["data-test","calculateButton",1,"btn","btn-primary","pull-right",3,"click","disabled"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n "),e.j41(1,"div",2),e.EFF(2,"\n "),e.j41(3,"label"),e.EFF(4,"Period selection"),e.k0s(),e.EFF(5,"\n\n "),e.DNE(6,ci,2,1,"div",3),e.EFF(7,"\n \n "),e.j41(8,"select",4),e.mxI("ngModelChange",function(r){return e.eBV(i),e.DH7(s.selectedOption,r)||(s.selectedOption=r),e.Njj(r)}),e.bIt("ngModelChange",function(r){return e.eBV(i),e.Njj(s.onSelectorChanged(r))}),e.EFF(9,"\n "),e.DNE(10,di,2,4,"option",5),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n\n "),e.j41(14,"div",2),e.EFF(15,"\n "),e.j41(16,"label",6),e.EFF(17,"Start Period"),e.k0s(),e.EFF(18,"\n "),e.j41(19,"div",7,0),e.EFF(21,"\n "),e.nrm(22,"input",8),e.EFF(23,"\n "),e.j41(24,"span",9),e.EFF(25,"\n "),e.nrm(26,"span",10),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n\n "),e.j41(31,"div",2),e.EFF(32,"\n "),e.j41(33,"label",6),e.EFF(34,"End Period"),e.k0s(),e.EFF(35,"\n "),e.j41(36,"div",7,1),e.EFF(38,"\n "),e.nrm(39,"input",11),e.EFF(40,"\n "),e.j41(41,"span",12),e.EFF(42,"\n "),e.nrm(43,"span",10),e.EFF(44,"\n "),e.k0s(),e.EFF(45,"\n "),e.k0s(),e.EFF(46,"\n "),e.k0s(),e.EFF(47,"\n\n "),e.DNE(48,pi,2,2,"button",13),e.EFF(49,"\n ")}2&t&&(e.R7$(6),e.Y8G("ngIf",!s.isDateRangeValid()),e.R7$(2),e.R50("ngModel",s.selectedOption),e.R7$(2),e.Y8G("ngForOf",s.calculationOptions),e.R7$(38),e.Y8G("ngIf",s.showButton))},dependencies:[c.Sq,c.bT,p.xH,p.y7,p.wz,p.BC,p.YS,p.vS],encapsulation:2,changeDetection:0})}var J=l(14797),Xe=l(93372),ui=l(72277),C=l(49377),L=l(96780);function mi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3,"\n "),e.nrm(4,"hr"),e.EFF(5,"\n "),e.j41(6,"div",4),e.EFF(7,"Statistics:"),e.k0s(),e.EFF(8,"\n\n "),e.j41(9,"configured-table",5),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n\n "),e.j41(13,"div"),e.EFF(14,"\n "),e.nrm(15,"hr"),e.EFF(16,"\n "),e.j41(17,"div",4),e.EFF(18,"Returns:"),e.k0s(),e.EFF(19,"\n\n "),e.j41(20,"configured-table",6),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(9),e.Y8G("modelType",t.tableModelType)("columns",t.StatsColumns)("tableData",t.statsWithNames)("downloadFileName","Statistics"),e.R7$(11),e.Y8G("modelType",t.tableModelType)("columns",t.ReturnsColumns)("tableData",t.statsWithNames)("downloadFileName","Returns")}}class Oe{constructor(n,t,s,i,a){this.changeDetector=n,this.componentElement=t,this.contextHelp=s,this.featureswitch=i,this.performanceContext=a,this.contextHelpSectionName="StatisticsAndReturns",this.tableModelType=hi}get performanceLoadingMessage(){return this.featureswitch.FeatureToggles.Wording.PerformanceLoadingMessage}get context(){return this.performanceContext.contextForClient(this.clientId)}get stats(){return this.context.performanceStats.getValue()?.data}get benchmarkStats(){return this.context.benchmarkStats.getValue()?.data}get statsWithNames(){const n=this.stats;this.stats&&(n.Name=this.context.entity.name);const t=this.benchmarkStats;return this.benchmarkStats&&(t.Name=this.context.benchmark.Name),[n,t]}get isLoading(){return this.context.performanceStats.getValue()?.isLoading||this.context.benchmarkStats.getValue()?.isLoading}get StatsColumns(){return this.featureswitch.FeatureToggles.Columns.PerformanceStatistics}get ReturnsColumns(){return this.featureswitch.FeatureToggles.Columns.PerformanceReturns}ngOnInit(){this.statsSubscription=this.context.performanceStats.subscribe(n=>{this.changeDetector.detectChanges()}),this.benchmarkStatsSubscription=this.context.benchmarkStats.subscribe(n=>{this.changeDetector.detectChanges()})}ngOnDestroy(){this.statsSubscription&&this.statsSubscription.unsubscribe(),this.benchmarkStatsSubscription&&this.benchmarkStatsSubscription.unsubscribe()}ngAfterViewChecked(){this.contextHelp.initialiseHelpForTable(this.componentElement,this.contextHelpPageName,this.contextHelpSectionName)}static#e=this.\u0275fac=function(t){return new(t||Oe)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(fe.N),e.rXU(f.P),e.rXU(X.M))};static#t=this.\u0275cmp=e.VBU({type:Oe,selectors:[["performance-stats-v2"]],inputs:{contextHelpPageName:"contextHelpPageName",clientId:"clientId"},decls:13,vars:5,consts:[[1,"pull-right"],[3,"page","section"],[4,"ngIf"],["data-test","performanceLoadingMessage",3,"visible","caption"],[1,"text-primary"],["data-test","performanceStatsTable",3,"modelType","columns","tableData","downloadFileName"],["data-test","performanceReturnsTable",3,"modelType","columns","tableData","downloadFileName"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div"),e.EFF(2,"\n "),e.j41(3,"div",0),e.EFF(4,"\n "),e.nrm(5,"context-help",1),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n\n\n "),e.DNE(8,mi,24,8,"div",2),e.EFF(9,"\n\n "),e.nrm(10,"loading",3),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n ")),2&t&&(e.R7$(5),e.Y8G("page",s.contextHelpPageName)("section",s.contextHelpSectionName),e.R7$(3),e.Y8G("ngIf",s.stats),e.R7$(2),e.Y8G("visible",s.isLoading)("caption",s.performanceLoadingMessage))},dependencies:[c.bT,C.q,J.K,L.m]})}class hi extends ui._{}var _=l(64769),Fi=l(44928);function fi(o,n){if(1&o&&(e.j41(0,"configured-table",5),e.EFF(1,"\n "),e.k0s()),2&o){const t=e.XpG();e.Y8G("columns",t.tableColumns)("tableData",t.contributions)("modelType",t.modelType)("downloadFileName",t.featureSwitch.FeatureToggles.Wording.SecurityContributionsLinkText)("CSVColumnList",t.CSVExportColumnList)}}class Le{get performanceLoadingMessage(){return this.featureSwitch.FeatureToggles.Wording.PerformanceLoadingMessage}get context(){return this.performanceContext.contextForClient(this.clientId)}get isLoading(){return this.context.securityPerformance.getValue()?.isLoading}get contributions(){return this.context.securityPerformance.getValue().data}get tableColumns(){return this.featureSwitch.FeatureToggles.Columns.SecurityContributions}constructor(n,t,s,i,a){this.changeDetector=n,this.componentElement=t,this.contextHelp=s,this.featureSwitch=i,this.performanceContext=a,this.modelType=Fi.W,this.CSVExportColumnList=[_.bV.create("Name","Security"),_.bV.create("StartValue","Start Value"),_.bV.create("FlowsValue","Flows"),_.bV.create("IncomeValue","Income"),_.bV.create("AbsoluteChange","Change"),_.bV.create("ValuationValue","End Value"),_.bV.create("RateOfReturn","Return (%)"),_.bV.create("WeightingWithinParent","Weighting (%)")],this.contextHelpSectionName="SecurityContributions"}ngOnInit(){this.contributionsSubscription=this.context.securityPerformance.subscribe(n=>{this.changeDetector.detectChanges()})}ngOnDestroy(){this.contributionsSubscription&&this.contributionsSubscription.unsubscribe()}ngAfterViewChecked(){$(".p-datatable-wrapper table").addClass("table").addClass("table-striped"),this.contextHelp.initialiseHelpForTable(this.componentElement,this.contextHelpPageName,this.contextHelpSectionName)}static#e=this.\u0275fac=function(t){return new(t||Le)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(fe.N),e.rXU(f.P),e.rXU(X.M))};static#t=this.\u0275cmp=e.VBU({type:Le,selectors:[["performance-securitycontributions-v2"]],inputs:{clientId:"clientId",contextHelpPageName:"contextHelpPageName"},decls:13,vars:5,consts:[[1,"pull-right"],[3,"page","section"],[1,"clearfix"],["data-test","securityContributionsTable",3,"columns","tableData","modelType","downloadFileName","CSVColumnList",4,"ngIf"],["data-test","performanceLoadingMessage",3,"visible","caption"],["data-test","securityContributionsTable",3,"columns","tableData","modelType","downloadFileName","CSVColumnList"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div"),e.EFF(2,"\n\n "),e.j41(3,"div",0),e.nrm(4,"context-help",1),e.k0s(),e.EFF(5,"\n "),e.nrm(6,"div",2),e.EFF(7,"\n\n "),e.DNE(8,fi,2,5,"configured-table",3),e.EFF(9,"\n "),e.nrm(10,"loading",4),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n")),2&t&&(e.R7$(4),e.Y8G("page",s.contextHelpPageName)("section",s.contextHelpSectionName),e.R7$(4),e.Y8G("ngIf",s.contributions),e.R7$(2),e.Y8G("visible",s.isLoading)("caption",s.performanceLoadingMessage))},dependencies:[c.bT,C.q,J.K,L.m]})}var I=l(58088),oe=l(82241),Ue=(l(59736),l(79344));const gi=["MonthlyReturnsChart"],Ei=["CumulativeReturnsChart"],Zt=()=>({padding:"0px"});function _i(o,n){if(1&o){const t=e.RV6();e.j41(0,"chart",11,0),e.bIt("onDataSelect",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.selectData(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Aen(e.lJ4(7,Zt)),e.Y8G("type",t.chartType.Bar)("data",t.monthlyReturns)("options",t.monthlyReturnsOptions)("height","25em")("tooltipOverride",!1)}}function Ci(o,n){if(1&o){const t=e.RV6();e.j41(0,"chart",11,1),e.bIt("onDataSelect",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.selectData(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Aen(e.lJ4(7,Zt)),e.Y8G("type",t.chartType.Line)("data",t.cumulativeReturns)("options",t.cumulativeReturnsOptions)("height","25em")("tooltipOverride",!1)}}
1function bi(o,n){if(1&o&&(e.j41(0,"div",12),e.EFF(1,"\n "),e.nrm(2,"loading",13),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("caption",t.performanceLoadingMessage)("visible",t.isLoading)}}function vi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",14),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div"),e.nrm(6,"br"),e.k0s(),e.EFF(7,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(3),e.SpI("*",t.getReturnTypeHelpText(),"")}}function Ti(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.DNE(4,_i,2,8,"chart",4),e.EFF(5,"\n\n "),e.DNE(6,Ci,2,8,"chart",4),e.EFF(7,"\n\n "),e.DNE(8,bi,4,2,"div",5),e.EFF(9,"\n\n "),e.DNE(10,vi,8,1,"div",2),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.j41(13,"div",6),e.EFF(14,"\n "),e.j41(15,"a",7),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSelectedChart(i.MonthlyReturns))}),e.nrm(16,"span",8),e.k0s(),e.EFF(17,"\n \xa0\n "),e.j41(18,"a",9),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSelectedChart(i.CumulativeReturns))}),e.nrm(19,"span",10),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("ngIf",t.displayChart("mr")&&!t.isLoading),e.R7$(2),e.Y8G("ngIf",t.displayChart("cr")&&!t.isLoading),e.R7$(2),e.Y8G("ngIf",t.isLoading),e.R7$(2),e.Y8G("ngIf",""!=t.getReturnTypeHelpText())}}class ae{static#e=this.MonthlyReturns="mr";static#t=this.CumulativeReturns="cr";get MonthlyReturns(){return ae.MonthlyReturns}get CumulativeReturns(){return ae.CumulativeReturns}constructor(n,t,s){this.featureSwitch=n,this.performanceContext=t,this.changeDetector=s,this.chartType=oe.NB,this.onPeriodSelected=new e.bkB,this.monthlyReturns=null,this.selectedChart=this.featureSwitch.FeatureToggles.ChartCustomisations.DefaultPerformanceChartType}get performanceLoadingMessage(){return this.featureSwitch.FeatureToggles.Wording.PerformanceLoadingMessage}get context(){return this.performanceContext.contextForClient(this.clientId)}get returns(){return this.context.returns}get benchmarkReturns(){return this.context.benchReturns}get isLoading(){return this.context.returnsLoading||this.context.benchReturnsLoading}get isDailyData(){return this.context.isDaily.getValue()}get hasPerformance(){return this.context.hasPerformance}ngOnInit(){this.returnsSubscription=this.context.performanceReturns.subscribe(n=>{!n?.isLoading&&!this.isLoading&&(this.computeMonthlyReturns(),this.computeCumulativeReturns(),this.changeDetector.detectChanges(),this.changeDetector.markForCheck())}),this.benchmarkSubscription=this.context.benchmarkReturns.subscribe(n=>{!n?.isLoading&&!this.isLoading&&(this.computeMonthlyReturns(),this.computeCumulativeReturns(),this.changeDetector.detectChanges(),this.changeDetector.markForCheck())}),this.context.chartTypeSelected&&(this.selectedChart=this.context.chartTypeSelected)}ngOnDestroy(){this.returnsSubscription&&this.returnsSubscription.unsubscribe(),this.benchmarkSubscription&&this.benchmarkSubscription.unsubscribe()}ngAfterViewChecked(){$('[data-toggle="tooltip"]').tooltip()}selectData(n){if(0==n.datasetIndex)if(this.displayChart("cr")){if(0!=n.index){n.type="cumulative",this.onPeriodSelected.emit(n)}}else{n.type="bar",this.onPeriodSelected.emit(n)}}displayChart(n){switch(n){case this.MonthlyReturns:return null!=this.monthlyReturns&&this.selectedChart==this.MonthlyReturns;case this.CumulativeReturns:return null!=this.cumulativeReturns&&this.selectedChart==this.CumulativeReturns}return!1}onSelectedChart(n){this.selectedChart=n,this.context.selectedChart.next(n)}computeMonthlyReturns(){let n=new I.CI,t=[],s=[];if(this.returns)for(let a of this.returns){let r=h(a.StartDate).clone(),d=h(a.EndDate).clone();this.isDailyData||(r=r.startOf("month")),null!=a.Return?t.push({x:r,x2:d,unadjustedX:a.StartDate,y:x.K.preciseRound(100*a.Return,4),performanceId:0}):t.push({x:r,x2:d,unadjustedX:a.StartDate,y:null,performanceId:0})}let i=new I.u_;if(i.label=this.context.entity?.name,i.backgroundColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceColour.Backgroun
1dColor,i.borderColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceColour.BorderColor,i.data=t,i.borderWidth=1,n.datasets.push(i),this.benchmarkReturns){for(let r of this.benchmarkReturns){let d=h(r.FromDate).clone(),u=h(r.ToDate).clone();null!=r.RateOfReturn&&s.push({x:d,x2:u,unadjustedX:r.FromDate,y:x.K.preciseRound(100*r.RateOfReturn,4),performanceId:0})}let a=new I.u_;a.label=this.context.benchmark?.Name,a.backgroundColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceBenchmarkColour.BackgroundColor,a.borderColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceBenchmarkColour.BorderColor,a.data=s,a.borderWidth=1,n.datasets.push(a)}this.monthlyReturns=n,this.monthlyReturnsOptions=this.createChartOptions(this.MonthlyReturns,n)}computeCumulativeReturns(){let n=new I.CI,t=[],s=[],i=1e3,a=1e3;if(this.returns&&this.returns.length>0){let d=this.returns[0];t.push({x:h(d.StartDate).startOf("day"),y:i,performanceId:0});for(let u of this.returns)null!=u.Return?(i*=1+u.Return,t.push({x:h(u.EndDate).endOf("day"),y:x.K.preciseRound(i,4),performanceId:0})):t.push({x:h(u.EndDate).endOf("day"),y:null,performanceId:0})}let r=new I.u_;if(r.label=this.context.entity?.name,r.lineTension=.01,r.borderWidth=3,r.borderColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceColour.BorderColor,r.backgroundColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceColour.BackgroundColor,r.data=t,r.fill=!1,r.pointRadius=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformancePointsSize,n.datasets.push(r),this.benchmarkReturns&&this.benchmarkReturns.length>0){let d=this.benchmarkReturns[0];s.push({x:h(d.FromDate).startOf("day"),y:a,performanceId:0});for(let b of this.benchmarkReturns)null!=b.RateOfReturn&&(a*=1+b.RateOfReturn),s.push({x:h(b.ToDate).endOf("day"),y:x.K.preciseRound(a,4),performanceId:0});let u=new I.u_;u.label=this.context.benchmark?.Name,u.lineTension=.01,u.borderWidth=3,u.borderColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceBenchmarkColour.BorderColor,u.backgroundColor=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformanceBenchmarkColour.BackgroundColor,u.data=s,u.fill=!1,u.pointRadius=this.featureSwitch.FeatureToggles.ChartCustomisations.PerformancePointsSize,n.datasets.push(u)}this.cumulativeReturns=n,this.cumulativeReturnsOptions=this.createChartOptions(this.CumulativeReturns,n)}createChartOptions(n,t){let s=new I.gM;s.maintainAspectRatio=!0,s.plugins.legend.position="bottom",s.plugins.tooltip.intersect=!1;s.onHover=(u,b)=>{(u.native?u.native.target:u.target).style.cursor=b[0]&&(u=>0==u.datasetIndex)(b[0])?"pointer":"default"},s.plugins.tooltip.callbacks.label=u=>{let b=u.dataset.label||"";return b+=": "+u.formattedValue,n==this.MonthlyReturns&&(b+="%"),b},s.plugins.tooltip.callbacks.title=u=>{let b=u[0].dataset.data[u[0].dataIndex],N="";if(n==this.MonthlyReturns){let Pe=b.unadjustedX,Od=b.x2;N=v.r.toDateString(Pe)+" to "+v.r.toDateString(Od)}else{let Pe=b.x;N=v.r.toDateString(Pe)}return N};let a=new I.V_;a.ticks.beginAtZero=!1,n==this.MonthlyReturns?(a.title.text="Return (%)",""!=this.featureSwitch.FeatureToggles.Wording.PerformanceMonthlyReturnHelpText&&(a.title.text+="*")):(a.title.text="Return (Baselined)",""!=this.featureSwitch.FeatureToggles.Wording.PerformanceCumulativeReturnHelpText&&(a.title.text+="*")),a.title.display=!0,s.scales.yAxes=a;let r=new I.V_;r.offset=!0,r.type="time",r.gridLines=new I.PC,r.gridLines.offsetGridLines=!1;let d="";if(d=this.isDailyData?"Do MMM YYYY":"mr"==n?"MMM YYYY":"Do MMM YYYY",r.time={unit:"month",displayFormats:{month:"MMM YYYY"},tooltipFormat:d},1==t.datasets[0].data.length){let u=t.datasets[0].data[0].x;r.time.min=u.clone().add(-1,"second"),r.time.max=u.clone().add(1,"second"),r.time.unitStepSize=1}return s.scales.xAxes=r,s}getReturnTypeHelpText(){switch(this.selectedChart){case this.MonthlyReturns:return this.featureSwitch.FeatureToggles.Wording.PerformanceMonthlyReturnHelpText;case this.CumulativeReturns:return this.featureSwitch.FeatureToggles.Wording.PerformanceCumulativeReturnHelpText}}static#n=this.\u0275fac=function(t){return new(t||ae)(e.rXU(f.P),e.rXU(X.M),e.rXU(e.gRc))};static#i=this.\u0275cmp=e.VBU({type:ae,selectors:[["performance-chart-v2"]],viewQuery:function(t,s){if(1&t&&(e.GBs(gi,5),e.GBs(Ei,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.MonthlyReturnsChart=i.first),e.mGM(i=e.lsd())&&(s.CumulativeReturnsChart=i.first)}},inputs:{clientId:"clientId"},outputs:{onPeriodSelected:"onPeriodSelected"},decls:3,vars:1,consts:[["MonthlyReturnsChart",""],["CumulativeReturnsChart",""],[4,"ngIf"],["id","chartContained"],[3,"type","data","options","height","style","tooltipOverride","onDataSelect",4,"ngIf"],["style","height: 25em",4,"ngIf"],["id","buttonContained"],["data-toggle","tooltip","title","Show monthly returns","data-test","MonthlyReturnChartButton",3,"click"],[1,"fa","fa-bar-chart","fa-lg"],["data-toggle","tooltip","title","Show cumulative returns","data-test","CumulativeReturnChartButton",3,"click"],[1,"fa","fa-line-chart","fa-lg"],[3,"onDataSelect","type","data","options","height","tooltipOverride"],[2,"height","25em"],["data-test","performanceLoadingMessage",3,"caption","visible"],["data-test","ChartReturnHelpText"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Ti,22,4,"div",2),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.hasPerformance))},dependencies:[c.bT,Ue.Qe,C.q],styles:["#chartContained[_ngcontent-%COMP%]{float:left;width:95%}","#buttonContained[_ngcontent-%COMP%]{float:left;width:5%;text-align:right}","#buttonContained[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;display:block}"]})}var K,o,re=l(12898),yi=l(11399),Ii=l(59132);function xi(o,n){if(1&o&&(e.j41(0,"li"),e.EFF(1),e.nI1(2,"tfsdate"),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,t.StartDate))}}function Si(o,n){if(1&o&&(e.j41(0,"li"),e.EFF(1),e.nI1(2,"tfsdate"),e.nI1(3,"tfsdate"),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.Lme("",e.bMT(2,2,t.StartDate)," - ",e.bMT(3,4,t.EndDate),"")}}function ki(o,n){if(1&o&&(e.j41(0,"ul"),e.EFF(1,"\n "),e.DNE(2,xi,3,3,"li",0),e.EFF(3,"\n "),e.DNE(4,Si,4,6,"li",0),e.EFF(5,"\n "),e.k0s()),2&o){const t=n.$implicit,s=e.XpG(2);e.R7$(2),e.Y8G("ngIf",s.periodDatesAreSame(t)),e.R7$(2),e.Y8G("ngIf",!s.peri
1odDatesAreSame(t))}}function Di(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1," \n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"accordion"),e.EFF(5,"\n "),e.j41(6,"accordion-panel",3),e.EFF(7,"\n "),e.j41(8,"div",4),e.EFF(9,"Some data may be inaccurate or not available as one or more periods are missing from your performance data. Click here for more info.\n "),e.k0s(),e.EFF(10,"\n "),e.j41(11,"div",5),e.EFF(12,"\n "),e.j41(13,"div",6),e.EFF(14,"\n "),e.j41(15,"div",7),e.EFF(16,"\n "),e.j41(17,"h5",8),e.EFF(18,"The following periods are not currently available:\n "),e.k0s(),e.EFF(19,"\n "),e.DNE(20,ki,6,2,"ul",9),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n Please "),e.nrm(24,"contact-us-link"),e.EFF(25," for assistance.\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.k0s(),e.EFF(29,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(6),e.Y8G("panelClass","panel-info"),e.R7$(14),e.Y8G("ngForOf",t.missingPeriods)}}function Ri(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"accordion"),e.EFF(5,"\n "),e.j41(6,"accordion-panel",3),e.EFF(7,"\n "),e.j41(8,"div",4),e.EFF(9,"There was an error loading the performance data.\n "),e.k0s(),e.EFF(10,"\n "),e.j41(11,"div",5),e.EFF(12,"\n "),e.j41(13,"div",6),e.EFF(14,"\n "),e.j41(15,"div",7),e.EFF(16,"\n "),e.j41(17,"p"),e.EFF(18),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n Please "),e.nrm(22,"contact-us-link"),e.EFF(23," for assistance.\n "),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n "),e.k0s()),2&o){let t;const s=e.XpG();e.R7$(6),e.Y8G("panelClass","panel-danger"),e.R7$(12),e.JRh(null==(t=s.context.errorForEntity.getValue())?null:t.data)}}function ji(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",23),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3,"\n "),e.j41(4,"div",33),e.EFF(5,"\n "),e.j41(6,"a",34),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeView(i.performanceViewType.PerfSecurityContri))}),e.EFF(7),e.nrm(8,"span",16),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.BMQ("href",t.getViewId(t.performanceViewType.PerfSecurityContri),e.B4B),e.R7$(),e.SpI("\n ",t.featureSwitch.FeatureToggles.Wording.SecurityContributionsLinkText," ")}}function wi(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",23),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3,"\n "),e.j41(4,"div",35),e.EFF(5,"\n "),e.j41(6,"a",36),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeView(i.performanceViewType.PerfStats))}),e.EFF(7,"\n Statistics & Returns "),e.nrm(8,"span",16),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.BMQ("href",t.getViewId(t.performanceViewType.PerfStats),e.B4B)}}function Ai(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",10),e.EFF(3,"\n "),e.j41(4,"div"),e.EFF(5,"\n "),e.j41(6,"div",11),e.EFF(7,"Starting Value"),e.k0s(),e.EFF(8,"\n "),e.j41(9,"div",12),e.
1EFF(10,"\n "),e.j41(11,"span",13),e.EFF(12),e.nI1(13,"monetaryValue"),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",10),e.EFF(19,"\n "),e.j41(20,"div"),e.EFF(21,"\n "),e.j41(22,"div",14),e.EFF(23,"\n + "),e.j41(24,"a",15),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.changeView(i.performanceViewType.PerfFlows))}),e.EFF(25,"\n Flows "),e.nrm(26,"span",16),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.j41(29,"div",12),e.EFF(30,"\n "),e.j41(31,"span",17),e.EFF(32),e.nI1(33,"monetaryValue"),e.k0s(),e.EFF(34,"\n "),e.k0s(),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.k0s(),e.EFF(37,"\n "),e.j41(38,"div",10),e.EFF(39,"\n "),e.j41(40,"div"),e.EFF(41,"\n "),e.j41(42,"div",18),e.EFF(43,"\n + "),e.j41(44,"a",19),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.changeView(i.performanceViewType.PerfIncome))}),e.EFF(45," \n Income "),e.nrm(46,"span",16),e.k0s(),e.EFF(47,"\n "),e.k0s(),e.EFF(48,"\n "),e.j41(49,"div",12)(50,"span",20),e.EFF(51),e.nI1(52,"monetaryValue"),e.k0s(),e.EFF(53,"\n "),e.k0s(),e.EFF(54,"\n "),e.k0s(),e.EFF(55,"\n "),e.k0s(),e.EFF(56,"\n "),e.j41(57,"div",10),e.EFF(58,"\n "),e.j41(59,"div"),e.EFF(60,"\n "),e.j41(61,"div",21),e.EFF(62,"+ Other Changes"),e.k0s(),e.EFF(63,"\n "),e.j41(64,"div",12)(65,"span",22),e.EFF(66),e.nI1(67,"monetaryValue"),e.k0s(),e.EFF(68,"\n "),e.k0s(),e.EFF(69,"\n "),e.k0s(),e.EFF(70,"\n "),e.k0s(),e.EFF(71,"\n "),e.j41(72,"div",23),e.EFF(73,"\n "),e.j41(74,"div"),e.EFF(75,"\n "),e.j41(76,"div",24),e.EFF(77,"Ending Value"),e.k0s(),e.EFF(78,"\n "),e.j41(79,"div",12)(80,"span",25),e.EFF(81),e.nI1(82,"monetaryValue"),e.k0s(),e.EFF(83,"\n "),e.k0s(),e.EFF(84,"\n "),e.k0s(),e.EFF(85,"\n "),e.k0s(),e.EFF(86,"\n\n "),e.j41(87,"div",23),e.EFF(88,"\n "),e.j41(89,"div"),e.EFF(90,"\n "),e.j41(91,"div",26),e.EFF(92,"\n "),e.j41(93,"a",27),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.changeView(i.performanceViewType.PerfFees))}),e.EFF(94,"\n Fees "),e.nrm(95,"span",16),e.k0s(),e.EFF(96,"\n "),e.k0s(),e.EFF(97,"\n "),e.j41(98,"div",12)(99,"span",28),e.EFF(100),e.nI1(101,"monetaryValue"),e.k0s(),e.EFF(102,"\n "),e.k0s(),e.EFF(103,"\n "),e.k0s(),e.EFF(104,"\n "),e.k0s(),e.EFF(105,"\n "),e.j41(106,"div",23),e.EFF(107,"\n "),e.j41(108,"div"),e.EFF(109,"\n "),e.j41(110,"div",29),e.EFF(111,"\n Return\n "),e.k0s(),e.EFF(112,"\n "),e.j41(113,"div",12),e.EFF(114,"\n "),e.j41(115,"span",22),e.EFF(116),e.nI1(117,"tfspercent"),e.k0s(),e.EFF(118,"\n "),e.k0s(),e.EFF(119,"\n "),e.k0s(),e.EFF(120,"\n "),e.k0s(),e.EFF(121,"\n "),e.j41(122,"div",10),e.EFF(123,"\n "),e.j41(124,"div"),e.EFF(125,"\n "),e.j41(126,"div",30),e.EFF(127,"Capital Return"),e.k0s(),e.EFF(128,"\n "),e.j41(129,"div",12),e.EFF(130,"\n "),e.j41(131,"span",22),e.EFF(132),e.nI1(133,"tfspercent"),e.k0s(),e.EFF(134,"\n "),e.k0s(),e.EFF(135,"\n "),e.k0s(),e.EFF(136,"\n "),e.k0s(),e.EFF(137,"\n "),e.j41(138,"div",10),e.EFF(139,"\n "),e.j41(140,"div"),e.EFF(141,"\n "),e.j41(142,"div",31),e.EFF(143,"Income Return"),e.k0s(),e.EFF(144,"\n "),e.j41(145,"div",12),e.
1EFF(146,"\n "),e.j41(147,"span",22),e.EFF(148),e.nI1(149,"tfspercent"),e.k0s(),e.EFF(150,"\n "),e.k0s(),e.EFF(151,"\n "),e.k0s(),e.EFF(152,"\n "),e.k0s(),e.EFF(153,"\n "),e.DNE(154,ji,12,2,"div",32),e.EFF(155,"\n "),e.DNE(156,wi,12,1,"div",32),e.EFF(157,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(11),e.Y8G("ngClass",t.isNegative(t.performanceSummary.StartValue)?"text-danger":"text-primary"),e.R7$(),e.JRh(e.brH(13,22,t.performanceSummary.StartValue,t.getIsoCode(),!0)),e.R7$(12),e.BMQ("href",t.getViewId(t.performanceViewType.PerfFlows),e.B4B),e.R7$(7),e.Y8G("ngClass",t.isNegative(t.performanceSummary.FlowsValue)?"text-danger":"text-primary"),e.R7$(),e.JRh(e.brH(33,26,t.performanceSummary.FlowsValue,t.getIsoCode(),!0)),e.R7$(12),e.BMQ("href",t.getViewId(t.performanceViewType.PerfIncome),e.B4B),e.R7$(6),e.Y8G("ngClass",t.isNegative(t.performanceSummary.IncomeValue)?"text-danger":"text-primary"),e.R7$(),e.JRh(e.brH(52,30,t.performanceSummary.IncomeValue,t.getIsoCode(),!0)),e.R7$(14),e.Y8G("ngClass",t.isNegative(t.performanceSummary.AbsoluteChange)?"text-danger":"text-primary"),e.R7$(),e.JRh(e.brH(67,34,t.performanceSummary.AbsoluteChange,t.getIsoCode(),!0)),e.R7$(14),e.Y8G("ngClass",t.isNegative(t.performanceSummary.EndValue)?"text-danger":"text-primary"),e.R7$(),e.JRh(e.brH(82,38,t.performanceSummary.EndValue,t.getIsoCode(),!0)),e.R7$(12),e.BMQ("href","#"+t.getViewId(t.performanceViewType.PerfFees),e.B4B),e.R7$(7),e.JRh(e.brH(101,42,t.performanceSummary.FeesValue,t.getIsoCode(),!0)),e.R7$(15),e.Y8G("ngClass",t.isNegative(t.getRateOfReturn())?"text-danger":"text-primary"),e.R7$(),e.JRh(e.bMT(117,46,100*t.getRateOfReturn())),e.R7$(15),e.Y8G("ngClass",t.isNegative(t.getCapitalReturn())?"text-danger":"text-primary"),e.R7$(),e.JRh(e.bMT(133,48,100*t.getCapitalReturn())),e.R7$(15),e.Y8G("ngClass",t.isNegative(t.getIncomeReturn())?"text-danger":"text-primary"),e.R7$(),e.JRh(e.bMT(149,50,100*t.getIncomeReturn())),e.R7$(6),e.Y8G("ngIf",t.showSecurityContributionsAtTopLevel),e.R7$(2),e.Y8G("ngIf",!t.hasMissingPeriods)}}class He{constructor(n,t,s){this.featureSwitch=n,this.performanceContext=t,this.changeDetector=s,this.onChangeView=new e.bkB,this.performanceViewType=A.ID,this.showSecurityContributionsAtTopLevel=this.featureSwitch.FeatureToggles.ShowSecurityContributionsAtTopLevel}get performanceLoadingMessage(){return this.featureSwitch.FeatureToggles.Wording.PerformanceLoadingMessage}get context(){return this.performanceContext.contextForClient(this.clientId)}get performanceSummary(){return this.context.summary}get isLoading(){return this.context.summaryLoading||this.context.returnForPeriodLoading}get returns(){return this.context.returns}get returnForPeriod(){return this.context.returnForPeriod}get missingPeriods(){return this.context.missingPeriods}get hasMissingPeriods(){return this.missingPeriods&&this.missingPeriods.length>0}get hasPerformance(){return this.context.hasPerformance}get hasError(){return null!=this.context.errorForEntity.getValue()}ngOnInit(){this.summarySubscription=this.context.performanceSummary.subscribe(n=>{this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.missingPeriodsSubscription=this.context.performanceMissingPeriods.subscribe(n=>{this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}ngOnDestroy(){this.summarySubscription&&this.summarySubscription.unsubscribe(),this.missingPeriodsSubscription&&this.missingPeriodsSubscription.unsubscribe()}isNegative(n){return n<0}changeView(n){this.onChangeView.emit(n)}getViewId(n){return"#"+A.ID[n].toLowerCase()+this.context.entity.id}getIsoCode(){let n="";return null!=this.performanceSummary&&(n=this.performanceSummary.CurrencyIsoCode),n}getIncomeReturn(){return this.returnForPeriod?this.returnForPeriod.IncomeReturn:this.getRateOfReturn()-this.getCapitalReturn()}getCapitalReturn(){return this.returnForPeriod?this.returnForPeriod.CapitalReturn:this.accumulateReturns(this.returns,K.CapitalReturn)}getRateOfReturn(){return this.returnForPeriod?this.returnForPeriod.Return:this.accumulateReturns(this.returns,K.Return)}accumulateReturns(n,t){let s=1;if(n&&n.length>0)for(let i of n)switch(t){case K.Return:s*=1+i.Return;break;case K.CapitalReturn:s*=1+i.CapitalReturn;break;case K.IncomeReturn:s*=1+i.IncomeReturn}return s-1}periodDatesAreSame(n){return v.r.toDateString(n.StartDate)===v.r.toDateString(n.EndDate)}static#e=this.\u0275fac=function(t){return new(t||He)(e.rXU(f.P),e.rXU(X.M),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:He,selectors:[["performance-summary-v2"]],inputs:{clientId:"clientId"},outputs:{onChangeView:"onChangeView"},decls:10,vars:5,consts:[[4,"ngIf"],["data-test","performanceLoadingMessage",3,"visible","caption"],["data-test","perfSummaryError"],[3,"panelClass"],[1,"title","h5"],[1,"body"],[1,"row","rowSpacing"],[1,"col-md-12"],[1,"text-primary"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-xs-5","text-nowrap","ctxHelp-StartingValue"],[1,"col-xs-7","col-lg-5","text-right"],["data-test","startingValueAmount",1,"text-primary",3,"ngClass"],[1,"col-xs-4","col-xs-offset-1","text-nowrap","ctxHelp-Flows"],["data-toggle","tab","data-test","perfFlowsLink",3,"click"],["aria-hidden","true",1,"fa","fa-external-link-square","text-muted"],["data-test","perfFlowsValue",3,"ngClass"],[1,"col-xs-4","col-xs-offset-1","text-nowrap","ctxHelp-Income"],["data-toggle","tab","data-test","perfIncomeLink",3,"click"],["data-test","perfIncomeValue",3,"ngClass"],[1,"col-xs-4","col-xs-offset-1","text-nowrap","ctxHelp-OtherChanges"],[3,"ngClass"],[1,"row","rowPadding"],[1,"col-xs-5","text-nowrap","ctxHelp-EndingValue"],["data-test","endingValueAmount",3,"ngClass"],[1,"col-xs-5","ctxHelp-Fees"],["data-toggle","tab","data-test","perfFeesLink",3,"click"],["data-test","perfFeesValue",1,"text-primary"],[1,"col-xs-5","text-nowrap","ctxHelp-Return"],[1,"col-xs-4","col-xs-offset-1","text-nowrap","ctxHelp-CapitalReturn"],[1,"col-xs-4","col-xs-offset-1","text-nowrap","ctxHelp-IncomeReturn"],["class","row rowPadding",4,"ngIf"],[1,"col-xs-12","col-lg-10","text-right"],["data-toggle","tab","data-test","securityContributionsLink",3,"click"],[1,"col-xs-12","col-lg-10","ctxHelp-Stats","text-right"],["data-toggle","tab","data-test","perfStats",3,"click"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Di,30,2,"div",0),e.EFF(2,"\n\n "),e.DNE(3,Ri,28,2,"div",0),e.EFF(4,"\n\n "),e.EFF(5,"\n "),e.DNE(6,Ai,158,52,"div",0),e.EFF(7,"\n\n "),e.nrm(8,"loading",1),e.EFF(9,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.hasMissingPerio
1ds),e.R7$(2),e.Y8G("ngIf",s.hasError),e.R7$(3),e.Y8G("ngIf",s.performanceSummary&&s.hasPerformance&&!s.hasError),e.R7$(2),e.Y8G("visible",s.isLoading&&!s.hasError)("caption",s.performanceLoadingMessage))},dependencies:[c.YU,c.Sq,c.bT,C.q,Q.M,re.k,Xe.u,yi.i,Ii.N,Be.r],styles:[".rowPadding[_ngcontent-%COMP%]{margin-top:.8em}"]})}(o=K||(K={}))[o.Return=0]="Return",o[o.CapitalReturn=1]="CapitalReturn",o[o.IncomeReturn=2]="IncomeReturn";var Pi=l(32478);function Mi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"configured-table",2),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("columns",t.getTableColumns(t.flowClass))("tableData",t.flowData)("modelType",t.modelType)("downloadFileName",t.flowClass)}}class We{constructor(n,t,s,i,a){this.componentElement=n,this.contextHelp=t,this.featureSwitch=s,this.performanceContext=i,this.changeDetectorRef=a,this.modelType=Pi.T}get performanceLoadingMessage(){return this.featureSwitch.FeatureToggles.Wording.PerformanceLoadingMessage}get context(){return this.performanceContext.contextForClient(this.clientId)}get flowData(){switch(this.flowClass){case"Flows":return this.context.flows;case"Fees":return this.context.fees;case"Income":return this.context.income}return null}get isLoading(){switch(this.flowClass){case"Flows":return this.context.performanceFlows.getValue()?.isLoading;case"Fees":return this.context.performanceFees.getValue()?.isLoading;case"Income":return this.context.performanceIncome.getValue()?.isLoading}return!1}ngOnInit(){switch(this.flowClass){case"Flows":this.changeSubscription=this.context.performanceFlows.subscribe(()=>{this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()});break;case"Fees":this.changeSubscription=this.context.performanceFees.subscribe(()=>{this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()});break;case"Income":this.changeSubscription=this.context.performanceIncome.subscribe(()=>{this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()})}}ngOnDestroy(){this.changeSubscription&&this.changeSubscription.unsubscribe()}ngAfterViewChecked(){this.contextHelp.initialiseHelpForTable(this.componentElement,"Performance",this.flowClass)}getTableColumns(n){let t=Array();switch(n){case"Flows":t=this.featureSwitch.FeatureToggles.Columns.PerformanceFlows;break;case"Income":t=this.featureSwitch.FeatureToggles.Columns.PerformanceIncome;break;case"Fees":t=this.featureSwitch.FeatureToggles.Columns.PerformanceFees}return t}static#e=this.\u0275fac=function(t){return new(t||We)(e.rXU(e.aKT),e.rXU(fe.N),e.rXU(f.P),e.rXU(X.M),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:We,selectors:[["performance-flow-table-v2"]],inputs:{flowClass:"flowClass",clientId:"clientId"},decls:5,vars:3,consts:[[4,"ngIf"],["data-test","performanceLoadingMessage",3,"visible","caption"],["data-test","performanceFlowTable",3,"columns","tableData","modelType","downloadFileName"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Mi,4,4,"div",0),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n")),2&t&&(e.R7$(),e.Y8G("ngIf",null!=s.flowData),e.R7$(2),e.Y8G("visible",s.isLoading)("caption",s.performanceLoadingMessage))},dependencies:[c.bT,C.q,L.m]})}const Jt=o=>({active:o});function Gi(o,n){if(1&o&&(e.j41(0,"li",1),e.EFF(1,"\n "),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG();e.Y8G("ngClass",e.eq3(2,Jt,t.selectedTabName)),e.R7$(3),e.JRh(t.selectedTabName)}}class ze{get context(){return this.performanceContext.contextForClient(this.clientId)}get selectedPeriod(){return this.context.returnedPeriod.getValue()??this.context.period}get formattedPeriod(){return this.selectedPeriod?.startPeriod&&this.selectedPeriod?.endPeriod?v.r.toDateString(this.selectedPeriod.startPeriod)+" to "+v.r.toDateString(this.selectedPeriod.endPeriod):""}get currentView(){return this.context.currentView.getValue()}get selectedTabName(){switch(this.currentView){case A.ID.PerfFlows:return"Flows";case A.ID.PerfFees:return"Fees";case A.ID.PerfIncome:return"Income";case A.ID.PerfStats:return"Statistics & Returns";case A.ID.PerfSecurityContri:return"Security Contributions"}}constructor(n,t){this.changeDetector=n,this.performanceContext=t}ngOnInit(){this.viewSubscription=this.context.currentView.subscribe(()=>{this.changeDetector.detectChanges()}),this.periodSubscription=this.context.selectedPeriod.subscribe(()=>{this.changeDetector.detectChanges()}),this.returnedPeriodSubscription=this.context.returnedPeriod.subscribe(()=>{this.changeDetector.detectChanges()})}ngOnDestroy(){this.viewSubscription&&this.viewSubscription.unsubscribe(),this.periodSubscription&&this.periodSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||ze)(e.rXU(e.gRc),e.rXU(X.M))};static#t=this.\u0275cmp=e.VBU({type:ze,selectors:[["performance-breadcrumb"]],inputs:{clientId:"clientId"},decls:9,vars:5,consts:[["data-test","breadcrumbComponent",1,"breadcrumb"],[3,"ngClass"],[3,"ngClass",4,"ngIf"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"span",0),e.EFF(2,"\n "),e.j41(3,"li",1),e.EFF(4),e.k0s(),e.EFF(5,"\n "),e.DNE(6,Gi,5,4,"li",2),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n")),2&t&&(e.R7$(3),e.Y8G("ngClass",e.eq3(3,Jt,!s.selectedTabName)),e.R7$(),e.JRh(s.formattedPeriod),e.R7$(2),e.Y8G("ngIf",s.selectedTabName))},dependencies:[c.YU,c.bT],styles:[".breadcrumb[_ngcontent-%COMP%]{background-color:transparent;padding:0 0 0 5px}"],changeDetection:0})}const Vi=["dropdownToggle"],Ni=["portfolioSelector"];function Bi(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"portfolioSelector",19,2),e.bIt("selectionList",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.setFilteredPortfolioIdList(i))}),e.EFF(4,"\n "),e.k0s(),e.EFF(5,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("hidden",!1)("client",t.client)("showAllPortfoliosEntry",!t.isPerformanceRestrictedForClientLevel)("singleSelectOnly",!0)("selectedTab",t.selectedTab)("showAccounts",t.featureSwitch.FeatureToggles.AccountLevelPerformance)}}function Yi(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",20),e.EFF(3,"\n "),e.j41(4,"span",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.backButtonClick())}),e.EFF(5,"\n "),e.nrm(6,"a",22),e.EFF(7,"\n "),e.j41(8,"span",23),e.EFF(9,"Back"),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s()}}function Xi(o,n){if(1&o&&(e.j41(0,"div",28),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI("\n ",t.featureSwitch.FeatureToggles.Wording.PerformanceChartMessage,"\n ")}}function Oi(o,n){if(1&o&&(e.j41(0,"option",33),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.R7$(),e.JRh(t.Name)}
1}function Li(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",29),e.EFF(1,"\n "),e.j41(2,"div",30),e.EFF(3,"\n "),e.j41(4,"label"),e.EFF(5,"Select Benchmark"),e.k0s(),e.EFF(6,"\n "),e.j41(7,"select",31),e.bIt("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onBenchmarkChanged(i))}),e.EFF(8,"\n "),e.DNE(9,Oi,2,2,"option",32),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(7),e.Y8G("ngModel",t.selectedBenchmark),e.R7$(2),e.Y8G("ngForOf",t.benchmarks)}}function Ui(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"performance-summary-v2",24),e.bIt("onChangeView",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.onChangeView(i))}),e.k0s(),e.EFF(3,"\n\n "),e.DNE(4,Xi,2,1,"div",25),e.EFF(5,"\n \n "),e.j41(6,"performance-chart-v2",26),e.bIt("onPeriodSelected",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.onChartPeriodSelected(i))}),e.k0s(),e.EFF(7,"\n "),e.DNE(8,Li,13,2,"div",27),e.EFF(9,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString()),e.R7$(2),e.Y8G("ngIf",t.featureSwitch.FeatureToggles.Wording.PerformanceChartMessage),e.R7$(2),e.Y8G("clientId",t.client.Id.toString()),e.R7$(2),e.Y8G("ngIf",t.useMultipleBenchmarks)}}function Hi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"performance-flow-table-v2",34),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString())}}function Wi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"performance-flow-table-v2",35),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString())}}function zi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"performance-flow-table-v2",36),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString())}}function Qi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"performance-stats-v2",37),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString())("contextHelpPageName",t.contextHelpPageName)}}function Zi(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"performance-securitycontributions-v2",37),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("clientId",t.client.Id.toString())("contextHelpPageName",t.contextHelpPageName)}}function Ji(o,n){1&o&&(e.j41(0,"div",38),e.EFF(1," \n "),e.j41(2,"div",39),e.EFF(3,"\n "),e.j41(4,"div",40),e.EFF(5,"\n There is no performance data available.\n If this is not correct, please "),e.nrm(6,"contact-us-link"),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n\n "),e.k0s())}class Qe{constructor(n,t,s,i,a,r,d){this.performanceStore=n,this.changeDetector=t,this.contextHelp=s,this.componentElement=i,this.featureSwitch=a,this.chosenPortfoliosService=r,this.performanceContext=d,this.contextHelpSectionName="Performance",this.performanceViewType=A.ID,this.breadcrumbActionType=A.a$,this.isPortfolioSelectorLoading=!0,this.showSecurityContributionsAtTopLevel=this.featureSwitch.FeatureToggles.ShowSecurityContributionsAtTopLevel,this.selectedTab=Z.Bo.PerformanceTab}ngOnInit(){this.featureSwitch.FeatureToggles.DefaultPerformancePortfolioLevelForSinglePortfolio&&1==this.client.Portfolios.length?this.context.entity=P.Q.createEntity(this.client.Portfolios[0]):this.context.entity=P.Q.createEntity(this.client),this.context.
1isDaily.next("daily"==this.client.PerformancePeriodType.toLowerCase()),this.performanceLoadingMessage=this.featureSwitch.FeatureToggles.Wording.PerformanceLoadingMessage,this.contextHelpPageName="ClientOverview",this.contextHelp.initialiseHelpForComponent(this.componentElement,this.contextHelpPageName,this.contextHelpSectionName),this.latestDateSubscription=this.context.latestPerformanceDate.subscribe(n=>{this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}ngAfterViewInit(){this.changeDetector.markForCheck(),this.changeDetector.detectChanges();let n=this.chosenPortfoliosService.getChosenPortfolios(this.client.Id.toString()),t=this.client.ActivePortfoliosWithOptionallyFilteredOutZeroOrNullValues(this.featureSwitch.FeatureToggles.HideZeroValuePortfolios);if(n&&n.length>=1&&n.length<t.length){let s=n[0];this.context.entity=P.Q.createEntity(this.client.Portfolios.find(i=>i.Id==s))}this.context.selectedBenchmark.next(this.entity.defaultBenchmark),this.checkIfPerformanceIsRestrictedForClientLevel()}ngOnDestroy(){this.latestDateSubscription&&this.latestDateSubscription.unsubscribe()}get context(){return this.performanceContext.contextForClient(this.client.Id.toString())}get supportsDailyPerformance(){return this.context.isDaily.getValue()}get benchmarks(){return this.entity.benchmarks}get selectedBenchmark(){return this.context.selectedBenchmark.getValue()}get currentView(){return this.context.currentView.getValue()}get selectedPeriod(){return this.context.selectedPeriod.getValue()}get showPortfolioFilter(){return this.featureSwitch.FeatureToggles.ViewPortfoliosAtClientLevel&&this.client?.Portfolios?.length>0&&!this.isPortfolioSelectorLoading}get entity(){return this.context.entity}get useMultipleBenchmarks(){return!(this.entity?.type==P.K.Client&&this.featureSwitch.FeatureToggles.ClientBenchmarkDisable||this.entity?.type!=P.K.Client&&this.featureSwitch.FeatureToggles.PortfolioBenchmarkDisable)&&(this.featureSwitch.FeatureToggles.PerformanceMultipleBenchmarks&&this.entity?.benchmarks.length>0)}get hasPerformance(){return this.context.hasPerformance}onChartPeriodSelected(n){}setFilteredPortfolioIdList(n){let t=[],s=[];for(let i of n)i.level==Z.BY.Portfolio?t.push(i.id):s.push(i.id);if(0!=n.length)if(this.portfolioSelector.allPortfoliosSelected)this.context.entity=P.Q.createEntity(this.client);else{const i=this.client.Portfolios.find(a=>a.Id==t[0]);if(1==s.length&&this.portfolioSelector.accountSelected){const a=i.Accounts.find(d=>d.Id==s[0]),r=P.Q.createEntity(a);r.portfolio=i,r.parentId=this.client.Id.toString(),this.context.entity=r}else this.context.entity=P.Q.createEntity(i)}else alert("No portfolios selected. Changes cannot be applied.")}checkIfPerformanceIsRestrictedForClientLevel(){this.performanceStore.loadIsRestrictedFromSeeingPerformanceAtClientLevel(this.client.Id.toString()).subscribe(n=>{this.isPerformanceRestrictedForClientLevel=n.IsRestricted,this.isPortfolioSelectorLoading=!1,n.IsRestricted&&(this.entity.type==P.K.Client&&(this.context.entity=P.Q.createEntity(this.client.Portfolios[0])),this.portfolioSelector&&(this.portfolioSelector.selectedPortfolios.splice(0,this.portfolioSelector.selectedPortfolios.length),this.portfolioSelector.selectedPortfolios.push(this.entity.portfolio.Id.toString()))),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.isPortfolioSelectorLoading=!1,this.error=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}onChangeView(n){this.context.currentView.next(n)}tryReload(){this.onCalculatePerformance(this.selectedPeriod)}resetError(){this.error=null}onCalculatePerformance(n){this.supportsDailyPerformance||n.endPeriod.startOf("day"),$(this.dropdownToggle.nativeElement).parent().hasClass("open")&&$(this.dropdownToggle.nativeElement).dropdown("toggle"),null==this.entity&&alert("No portfolios selected"),this.resetError(),this.context.selectedPeriod.next(n),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}backButtonClick(){this.context.currentView.next(A.ID.PerfSummary)}onBenchmarkChanged(n){this.context.selectedBenchmark.next(n)}checkAPIVersion(n){return At.f.Compare(this.featureSwitch.FeatureToggles.APIVersion,n)>=0}static#e=this.\u0275fac=function(t){return new(t||Qe)(e.rXU(si.ax),e.rXU(e.gRc),e.rXU(fe.N),e.rXU(e.aKT),e.rXU(f.P),e.rXU(oi.f),e.rXU(X.M))};static#t=this.\u0275cmp=e.VBU({type:Qe,selectors:[["performance-v2"]],viewQuery:function(t,s){if(1&t&&(e.GBs(Vi,7),e.GBs(Ni,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.dropdownToggle=i.first),e.mGM(i=e.lsd())&&(s.portfolioSelector=i.first)}},inputs:{client:"client"},decls:68,vars:19,consts:[["dropdownToggle",""],["periodPicker",""],["portfolioSelector",""],[1,"row",2,"margin-bottom","10px"],[1,"col-md-4","vertically-centre-column"],[1,"dropdown"],["href","javascript:;","data-toggle","dropdown",1,"largeGlyph"],["aria-hidden","true","data-test","periodPicker",1,"fa","fa-calendar",2,"font-size","larger"],[1,"dropdown-menu",3,"click"],[3,"onPeriodSelected","clientId","buttonLabel","initialPeriod"],[3,"clientId"],[1,"vertically-centre-column",2,"margin","5px"],[4,"ngIf"],[1,"vertically-centre-column","pull-right",2,"margin-right","17px"],[3,"hidden"],[3,"page","section"],["class","row","style","margin-bottom: 10px",4,"ngIf"],[1,"row",2,"margin","0"],["class","col-xs-12",4,"ngIf"],[3,"selectionList","hidden","client","showAllPortfoliosEntry","singleSelectOnly","selectedTab","showAccounts"],[1,"col-lg-1","vertically-centre-column"],["data-test","backButton",1,"back-button",3,"click"],[1,"glyphicon","glyphicon-arrow-left",2,"top","2px"],[1,"text-muted"],["role","tabpanel",1,"col-xs-12","col-md-4",2,"margin-bottom","1em","padding-left","0px",3,"onChangeView","clientId"],["data-test","performanceChartMessage","style","text-align: center",4,"ngIf"],[1,"col-xs-12","col-md-8",3,"onPeriodSelected","clientId"],["class","row",4,"ngIf"],["data-test","performanceChartMessage",2,"text-align","center"],[1,"row"],[1,"col-xs-12","col-md-8","pull-right"],["data-test","benchmarkSelector",1,"form-control",3,"ngModelChange","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["flowClass","Flows",3,"clientId"],["flowClass","Fees",3,"clientId"],["flowClass","Income",3,"clientId"],[3,"clientId","contextHelpPageName"],[1,"col-xs-12"],["data-test","perfNoPerformance",1,"panel","panel-info"],[1,"panel-heading"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n "),e.j41(1,"div"),e.EFF(2,"\n "),e.j41(3,"div",3),e.EFF(4,"\n "),e.j41(5,"div",4),e.EFF(6,"\n "),e.j41(7,"div",5),e.EFF(8,"\n "),e.j41(9,"a",6,0),e.EFF(11,"\n "),e.nrm(12,"span",7),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div",8),e.bIt("click",function(r){return e.eBV(i),e.Njj(r.stopPropagation())}),e.EFF(16,"\n "),e.j41(17,"periodPickerPerformance-v2",9,1),e.bIt("onPeriodSelected",function(r){return e.eBV(i),e.Njj(s.onCalculatePerformance(r))}),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.nrm(22,"performance-breadcrumb",10),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n\n "),e.j41(25,"div",11),e.EFF(26,"\n "),e.DNE(27,Bi,6,6,"div",12),e.
1EFF(28,"\n "),e.k0s(),e.EFF(29,"\n\n "),e.j41(30,"div",13),e.EFF(31,"\n "),e.j41(32,"div",14),e.EFF(33,"\n "),e.nrm(34,"context-help",15),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.j41(37,"div",14),e.EFF(38,"\n "),e.nrm(39,"context-help",15),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n "),e.k0s(),e.EFF(43," "),e.EFF(44,"\n "),e.DNE(45,Yi,13,0,"div",16),e.EFF(46,"\n\n "),e.j41(47,"div",17),e.EFF(48,"\n "),e.j41(49,"div"),e.EFF(50,"\n "),e.DNE(51,Ui,10,4,"div",12),e.EFF(52,"\n\n "),e.DNE(53,Hi,4,1,"div",12),e.EFF(54,"\n\n "),e.DNE(55,Wi,4,1,"div",12),e.EFF(56,"\n\n "),e.DNE(57,zi,4,1,"div",12),e.EFF(58,"\n\n "),e.DNE(59,Qi,4,2,"div",12),e.EFF(60,"\n\n "),e.DNE(61,Zi,4,2,"div",12),e.EFF(62,"\n "),e.k0s(),e.EFF(63,"\n\n "),e.DNE(64,Ji,10,0,"div",18),e.EFF(65,"\n "),e.k0s(),e.EFF(66,"\n "),e.k0s(),e.EFF(67,"\n ")}2&t&&(e.R7$(17),e.Y8G("clientId",s.client.Id.toString())("buttonLabel","Calculate")("initialPeriod",s.featureSwitch.FeatureToggles.ChartCustomisations.DefaultPerformanceChartPeriod),e.R7$(5),e.Y8G("clientId",s.client.Id.toString()),e.R7$(5),e.Y8G("ngIf",s.showPortfolioFilter),e.R7$(5),e.Y8G("hidden",s.currentView!=s.performanceViewType.PerfSummary),e.R7$(2),e.Y8G("page",s.contextHelpPageName)("section",s.contextHelpSectionName),e.R7$(3),e.Y8G("hidden",s.currentView!=s.performanceViewType.PerfFlows),e.R7$(2),e.Y8G("page",s.contextHelpPageName)("section","Flows"),e.R7$(6),e.Y8G("ngIf",s.currentView!==s.performanceViewType.PerfSummary),e.R7$(6),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfSummary),e.R7$(2),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfFlows),e.R7$(2),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfFees),e.R7$(2),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfIncome),e.R7$(2),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfStats),e.R7$(2),e.Y8G("ngIf",s.currentView==s.performanceViewType.PerfSecurityContri),e.R7$(3),e.Y8G("ngIf",!s.hasPerformance))},dependencies:[c.Sq,c.bT,g,J.K,Xe.u,Z.lC,p.xH,p.y7,p.wz,p.BC,p.vS,Oe,Le,ae,He,We,ze],styles:["a[_ngcontent-%COMP%]{outline:0;text-decoration:none}div.dropdown[_ngcontent-%COMP%]{display:inline;background-color:transparent;flex-direction:column}div.dropdown-menu[_ngcontent-%COMP%]{padding:10px;
1min-width:200px}.back-button[_ngcontent-%COMP%]{border-width:0;background-color:#c4c4c433;border-radius:5px;padding:5px}.back-button[_ngcontent-%COMP%]:hover{background-color:#7a7a7a3d;cursor:pointer}@media only screen and (min-width: 992px){.vertically-centre-column[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;float:none}}@media only screen and (max-width: 992px){.vertically-centre-column[_ngcontent-%COMP%]{vertical-align:middle;float:none}}@media only screen and (max-width: 992px){.back-button[_ngcontent-%COMP%]{width:100%;justify-content:center}}@media only screen and (max-width: 992px){div.dropdown-menu[_ngcontent-%COMP%]{padding:20px;min-width:300px}}"]})}var Ki=l(49547),qi=l(17595),$i=l(67910),es=l(70935),ts=l(57033),ns=l(91323),is=l(17037),ss=l(84248),os=l(87222),as=l(48446),Gt=l(14519),rs=l(97623),ls=l(14741),cs=l(345),Kt=l(65430),ds=l(71988),Ze=l(35306);const ps=["startDatePicker"],us=["endDatePicker"];function ms(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.SpI("\n Error: ",t.error.message,"\n ")}}function hs(o,n){if(1&o&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("value",t.value),e.R7$(),e.JRh(t.title)}}function Fs(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",6),e.EFF(1,"\n "),e.j41(2,"label"),e.EFF(3,"Period selection"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"select",13),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.selectedOption,i)||(a.selectedOption=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.onOptionChanged(i))}),e.EFF(6,"\n "),e.DNE(7,hs,2,2,"option",14),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.selectedOption),e.R7$(2),e.Y8G("ngForOf",t.getDateOptions)}}function fs(o,n){1&o&&e.nrm(0,"div")}function gs(o,n){if(1&o&&(e.j41(0,"option",18),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.R7$(),e.JRh(t.Name)}}function Es(o,n){if(1&o){const t=e.RV6();e.EFF(0,"\n "),e.j41(1,"label"),e.EFF(2,"Year selection"),e.k0s(),e.EFF(3,"\n "),e.j41(4,"select",16),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.selectedTaxYear,i)||(a.selectedTaxYear=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.onYearChanged(i))}),e.EFF(5,"\n "),e.DNE(6,gs,2,2,"option",17),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n ")}if(2&o){const t=e.XpG();e.R7$(4),e.R50("ngModel",t.selectedTaxYear),e.R7$(2),e.Y8G("ngForOf",t.taxYears)}}class M{static#e=this.TaxYear="TaxYear";static#t=this.Custom="Custom";get selectedPeriod(){let n=this.$startDatePicker.data("DateTimePicker").date(),t=this.$endDatePicker.data("DateTimePicker").date();return new O.r(n,t)}set selectedPeriod(n){!this.$startDatePicker||!this.$endDatePicker||(this.$startDatePicker.data("DateTimePicker").date(n.startPeriod),this.$endDatePicker.data("DateTimePicker").date(n.endPeriod))}loadTaxYears(){this.infrastructureStore.loadTaxYears()}setupSubscription(){this.taxYearSubscription=this.infrastructureStore.allTaxYears$.pipe((0,F.p)(n=>null!=n&&null!=n.taxYears)).subscribe(n=>{if(n.error)this.error=n.error,console.log(this.error);else{if(this.taxYears=new Array,this.minDate&&this.minDate.isBefore(h(n.taxYears[0].FromDate)))for(let t of n.taxYears)h(t.ToDate).isAfter(this.minDate)&&this.taxYears.push(t);else this.taxYears=n.taxYears;this.setInititialOptions(),this.setStartEndPeriods()}})}setInititialOptions(){this.selectedOption=M.TaxYear,this.selectedTaxYear=this.getCurrentTaxYear()}getCurrentTaxYear(){for(let n of this.taxYears)if(h().isBetween(n.FromDate,n.ToDate))return n;return this.taxYears[0]}constructor(n,t){this.changeDetector=n,this.infrastructureStore=t,this.periodType="day",this.minDate=null,this.maxDate=h().endOf("month"),this.onPeriodSelected=new e.bkB,this.taxYears=new Array,this.readonlyDatePick=!0,this.selectedTaxYear=new ds.b,this.getDateOptions=[{title:"Tax Year",value:M.TaxYear},{title:"Custom",value:M.Custom}]}ngOnInit(){this.setupSubscription(),this.loadTaxYears(),this.$startDatePicker=$(this.startDatePicker.nativeElement),this.$endDatePicker=$(this.endDatePicker.nativeElement);let n={viewMode:"years",format:"day"==this.periodType?"D MMM YYYY":"MMM YYYY",maxDate:this.maxDate};null!=this.minDate&&(n.minDate=h(this.minDate).startOf("day")),this.$startDatePicker.datetimepicker(n),this.$endDatePicker.datetimepicker(n),this.$endDatePicker.data("DateTimePicker").disable(),this.$startDatePicker.data("DateTimePicker").disable(),this.setInititialOptions()}ngOnChanges(n){n.maxDate&&null!=n.maxDate.currentValue&&this.setStartEndPeriods()}ngOnDestroy(){this.taxYearSubscription.unsubscribe()}
1shouldShowTaxYears(){return this.selectedOption==M.TaxYear}onOptionChanged(n){this.selectedOption==M.TaxYear?(this.$endDatePicker.data("DateTimePicker").disable(),this.$startDatePicker.data("DateTimePicker").disable()):(this.$endDatePicker.data("DateTimePicker").enable(),this.$startDatePicker.data("DateTimePicker").enable()),this.setStartEndPeriods()}onYearChanged(n){let t=new O.r(h(this.selectedTaxYear.FromDate),h(this.selectedTaxYear.ToDate));this.selectedPeriod=t}selectedDateChanged(n){this.changeDetector.markForCheck(),this.setStartEndPeriods()}setStartEndPeriods(){if(!this.$startDatePicker||!this.$endDatePicker)return;let n=this.getStartAndEndPeriods();this.maxDate&&(this.$startDatePicker.data("DateTimePicker").maxDate(this.maxDate.clone().endOf("day")),this.$endDatePicker.data("DateTimePicker").maxDate(this.maxDate.clone().endOf("day"))),this.$startDatePicker.off(),this.$endDatePicker.off(),this.$startDatePicker.data("DateTimePicker").date(n[0]),this.$endDatePicker.data("DateTimePicker").date(n[1]),this.$startDatePicker.on("dp.change",t=>{this.selectedDateChanged(t.date)}),this.$endDatePicker.on("dp.change",t=>{this.selectedDateChanged(t.date)}),this.emitDatePeriod()}emitDatePeriod(){let n=h(this.$startDatePicker.data("DateTimePicker").date()),t=h(this.$endDatePicker.data("DateTimePicker").date()),s=new O.r(n,t);this.onPeriodSelected.emit(s)}getStartAndEndPeriods(){let t,s,n=h();return n.isAfter(this.maxDate)&&(n=this.maxDate.clone().endOf("day")),this.selectedOption==M.TaxYear?(t=h(this.selectedTaxYear.FromDate.toDateString()),s=h(this.selectedTaxYear.ToDate.toDateString())):(t=this.selectedPeriod.startPeriod,s=this.selectedPeriod.endPeriod),this.minDate&&t.isBefore(this.minDate)&&(t=this.minDate.clone()),this.maxDate&&s.isAfter(this.maxDate)&&(s=n.clone().subtract(1,"minutes")),t.isAfter(s)&&(s=t.clone().add(1,"day")),[t,s]}getSelectedPeriodDateString(n){return n?v.r.toDateString(n.startPeriod)+" to "+v.r.toDateString(n.endPeriod):""}static#n=this.\u0275fac=function(t){return new(t||M)(e.rXU(e.gRc),e.rXU(Ze.dN))};static#i=this.\u0275cmp=e.VBU({type:M,selectors:[["periodPickerCGT"]],viewQuery:function(t,s){if(1&t&&(e.GBs(ps,7),e.GBs(us,7)),2&t){let i;e.mGM(i=e.lsd())&&(s.startDatePicker=i.first),e.mGM(i=e.lsd())&&(s.endDatePicker=i.first)}},inputs:{periodType:"periodType",minDate:"minDate",maxDate:"maxDate"},outputs:{onPeriodSelected:"onPeriodSelected"},features:[e.OA$],decls:44,vars:4,consts:[["TaxYearPicker",""],["startDatePicker",""],["endDatePicker",""],[4,"ngIf"],["class","form-group",4,"ngIf"],[4,"ngIf","ngIfThen"],[1,"form-group"],["for",""],[1,"input-group","date"],["type","text","data-test","startPicker",1,"form-control"],[1,"input-group-addon"],[1,"fa","fa-calendar"],["type","text","data-test","endPicker",1,"form-control"],["required","","data-test","periodSelection",1,"form-control",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["data-test","taxYearPicker","required","",1,"form-control",3,"ngModelChange","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(t,s){if(1&t&&(e.EFF(0,"\n "),e.DNE(1,ms,2,1,"div",3),e.EFF(2,"\n \n "),e.DNE(3,Fs,10,2,"div",4),e.EFF(4,"\n "),e.DNE(5,fs,1,0,"div",5),e.EFF(6,"\n \n "),e.DNE(7,Es,9,2,"ng-template",null,0,e.C5r),e.EFF(9,"\n\n "),e.j41(10,"div",6),e.EFF(11,"\n "),e.j41(12,"label",7),e.EFF(13,"Start Period"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div",8,1),e.EFF(17,"\n "),e.nrm(18,"input",9),e.EFF(19,"\n "),e.j41(20,"span",10),e.EFF(21,"\n "),e.nrm(22,"span",11),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n\n "),e.j41(27,"div",6),e.EFF(28,"\n "),e.j41(29,"label",7),e.EFF(30,"End Period"),e.k0s(),e.EFF(31,"\n "),e.j41(32,"div",8,2),e.EFF(34,"\n "),e.nrm(35,"input",12),e.EFF(36,"\n "),e.j41(37,"span",10),e.EFF(38,"\n "),e.nrm(39,"span",11),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n "),e.k0s(),e.EFF(43,"\n ")),2&t){const i=e.sdS(8);e.R7$(),e.Y8G("ngIf",s.error),e.R7$(2),e.Y8G("ngIf",!s.error),e.R7$(2),e.Y8G("ngIf",s.shouldShowTaxYears())("ngIfThen",i)}},dependencies:[p.xH,p.y7,p.wz,p.BC,p.YS,c.Sq,c.bT,p.vS],encapsulation:2,changeDetection:0})}const _s=["dropdownToggle"],Cs=["cgtScenarioTransactionsTable"],qt=()=>({"margin-bottom":"5px"});function bs(o,n){1&o&&e.nrm(0,"div")}function vs(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.DNE(2,bs,1,0,"div",21),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(),s=e.sdS(46),i=e.sdS(49);e.R7$(2),e.Y8G("ngIf",t.warningMessage)("ngIfThen",i)("ngIfElse",s)}}function Ts(o,n){1&o&&(e.j41(0,"span"),e.EFF(1,"Select an account"),e.k0s())}function ys(o,n){1&o&&(e.j41(0,"span"),e.EFF(1,"No accounts available"),e.k0s())}function Is(o,n){if(1&o&&(e.j41(0,"option",31),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.R7$(),e.JRh(t.AccountNameOrReportingName)}}function xs(o,n){1&o&&(e.j41(0,"div",38),e.EFF(1,"\n "),e.nrm(2,"span",39),e.EFF(3,"\n "),e.j41(4,"p",40),e.EFF(5,"\n The date range selected covers multiple tax years. Only the market value figures will be returned.\n "),e.k0s(),e.EFF(6,"\n "),e.k0s())}function Ss(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.EFF(2,"\n "),e.nrm(3,"div",43),e.EFF(4,"\n "),e.j41(5,"div",44),e.EFF(6,"\n "),e.j41(7,"span",45),e.EFF(8),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div"),e.EFF(11),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(7),e.BMQ("data-test",t[0].key+"Value"),e.R7$(),e.JRh(t[0].value),e.R7$(2),e.HbH("text-muted "+t[0].styleClasses),e.BMQ("data-test",t[0].key+"Label"),e.R7$(),e.JRh(t[0].displayName)}}function ks(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.EFF(2,"\n "),e.nrm(3,"div",43),e.EFF(4," \n "),e.j41(5,"div",44),e.EFF(6,"\n "),e.j41(7,"span",45),e.EFF(8),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div"),e.EFF(11),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(7),e.BMQ("data-test",t[1].key+"Value"),e.R7$(),e.JRh(t[1].value),e.R7$(2),e.HbH("text-muted "+t[1].styleClasses),e.BMQ("data-test",t[1].key+"Label"),e.R7$(),e.JRh(t[1].displayName)}}function Ds(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.EFF(2,"\n "),e.nrm(3,"div",43),e.EFF(4,"\n "),e.j41(5,"div",44),e.EFF(6,"\n "),e.j41(7,"span",45),e.EFF(8),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div"),e.EFF(11),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(7),e.BMQ("data-test",t[2].key+"Value"),e.R7$(),e.JRh(t[2].value),e.R7$(2),e.HbH("text-muted "+t[2].styleClasses),e.BMQ("data-test",t[2].key+"Label"),e.R7$(),e.JRh(t[2].displayName)}}function Rs(o,n){if(1&o&&(e.j41(0,"div",6),e.EFF(1,"\n "),e.j41(2,"div",41),e.EFF(3," \n "),e.DNE(4,Ss,14,6,"div",20),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n\n "),e.j41(7,"div",42),e.EFF(8," \n "),e.DNE(9,ks,14,6,"div",20),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n\n "),e.j41(12,"div",42),e.EFF(13,"\n "),e.DNE(14,Ds,14,6,"div",20),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n\n "),e.k0s()),2&o){const t=n.$implicit;e.R7$(4),e.Y8G("ngIf",null!=t[0]),e.R7$(5),e.Y8G("ngIf",null!=t[1]),e.R7$(5),e.Y8G("ngIf",null!=t[2])}}function js(o,n){if(1&o&&(e.j41(0,"div",46),e.EFF(1,"\n "),e.j41(2,"div",47),e.EFF(3,"\n "),e.j41(4,"configured-table",48),e.
1EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.j41(8,"label"),e.EFF(9,"\xa0"),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(4),e.Y8G("columns",t.holdingsColumns)("tableData",t.accountData)("modelType",t.HoldingModel)("downloadFileName",t.selectedAccount.AccountName+" - Holdings - "+t.getDateLabel())}}function ws(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",46),e.EFF(1,"\n "),e.j41(2,"div",47),e.EFF(3,"\n "),e.j41(4,"configured-table",49),e.bIt("rowSelected",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.showDisposalPoolLog(i))}),e.k0s(),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.j41(7,"label"),e.EFF(8,"\xa0"),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(4),e.Y8G("columns",t.disposalsColumns)("tableData",t.accountData)("modelType",t.DisposalModel)("downloadFileName",t.selectedAccount.AccountName+" - Disposals - "+t.getDateLabel())}}function As(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",50),e.EFF(1,"\n "),e.j41(2,"div",51),e.EFF(3,"\n Other Gains This Year (\xa3): "),e.j41(4,"input",52),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfOtherGainsThisYear,i)||(a.whatIfOtherGainsThisYear=i),e.Njj(i)}),e.k0s(),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.j41(7,"div",51),e.EFF(8,"\n Other Losses This Year (\xa3): "),e.j41(9,"input",52),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfOtherLossesThisYear,i)||(a.whatIfOtherLossesThisYear=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(4),e.R50("ngModel",t.whatIfOtherGainsThisYear),e.R7$(5),e.R50("ngModel",t.whatIfOtherLossesThisYear)}}function Ps(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",50),e.EFF(1,"\n "),e.EFF(2,"\n "),e.j41(3,"div",47),e.EFF(4,"\n "),e.j41(5,"div",53),e.EFF(6,"\n "),e.j41(7,"p-checkbox",54),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfAdjustNominalByPercentageChecked,i)||(a.whatIfAdjustNominalByPercentageChecked=i),e.Njj(i)}),e.bIt("onChange",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.cgtWhatIfPercentageCheckboxChanged())}),e.k0s(),e.EFF(8,"\n "),e.j41(9,"div",55),e.EFF(10,"\n "),e.j41(11,"input",56),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfAdjustNominalByPercentageNumber,i)||(a.whatIfAdjustNominalByPercentageNumber=i),e.Njj(i)}),e.k0s(),e.EFF(12,"\n "),e.j41(13,"div",57),e.EFF(14,"%"),e.k0s(),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.j41(17,"button",58),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.adjustSelectedWhatIfScenarioToPercentageOfNominal())}),e.EFF(18,"Adjust Nominal by %"),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.EFF(22,"\n "),e.j41(23,"div",59),e.EFF(24,"\n "),e.j41(25,"div",53),e.EFF(26,"\n "),e.j41(27,"p-checkbox",60),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfManualDisinvestChecked,i)||(a.whatIfManualDisinvestChecked=i),e.Njj(i)}),e.bIt("onChange",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.cgtWhatIfManualDisinvestCheckboxChanged())}),e.k0s(),e.EFF(28,"\n "),e.j41(29,"div",55),e.EFF(30,"\n "),e.j41(31,"div",57),e.EFF(32,"\xa3"),e.k0s(),e.EFF(33,"\n "),e.j41(34,"input",61),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.whatIfWhatIfManualDisinvestValue,i)||(a.whatIfWhatIfManualDisinvestValue=i),e.Njj(i)}),e.k0s(),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.j41(37,"button",62),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.manualDisinvestWhatIfValue())}),e.EFF(38,"Manual Disinvest Value"),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(7),e.Aen(e.lJ4(14,qt)),e.R50("ngModel",t.whatIfAdjustNominalByPercentageChecked),e.Y8G("binary",!0),e.R7$(4),e.Y8G("disabled",!t.whatIfAdjustNominalByPercentageChecked),e.R50("ngModel",t.whatIfAdjustNominalByPercentageNumber),e.R7$(6),e.Y8G("disabled",!t.whatIfAdjustNominalByPercentageChecked),e.R7$(10),e.Aen(e.lJ4(15,qt)),e.R50("ngModel",t.whatIfManualDisinvestChecked),e.Y8G("binary",!0),e.R7$(7),e.Y8G("disabled",!t.whatIfManualDisinvestChecked),e.R50("ngModel",t.whatIfWhatIfManualDisinvestValue),e.R7$(3),e.Y8G("disabled",!t.whatIfManualDisinvestChecked)}}function Ms(o,n){1&o&&e.nrm(0,"loading",71),2&o&&e.Y8G("caption","Calculating...")}function Gs(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",47),e.EFF(3,"\n "),e.j41(4,"configured-table",72),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.k0s()),2&o){const t=e.XpG(4);e.R7$(4),e.Y8G("columns",t.disposalsColumns)("tableData",t.whatIfScenarioDisposals)("modelType",t.DisposalModel)("downloadFileName",t.selectedAccount.AccountName+" - Disposals - "+t.getDateLabel())}}function Vs(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",46),e.EFF(1,"\n "),e.EFF(2,"\n "),e.j41(3,"div",47),e.EFF(4,"\n "),e.j41(5,"div",63),e.EFF(6,"\n "),e.j41(7,"div",64),e.EFF(8,"\n "),e.j41(9,"h3",65),e.EFF(10,"Proposed Sales"),e.k0s(),e.EFF(11,"\n All investments will be ticked by default. Please select how you would like to simulate disinvesting the investments by a percentage (%) or value (\xa3).\n "),e.k0s(),e.EFF(12,"\n "),e.j41(13,"configured-table",66,4),e.mxI("selectedRowChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.selectedWhatIfScenarioTransactions,i)||(a.selectedWhatIfScenarioTransactions=i),e.Njj(i)}),e.bIt("selectedRowChange",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.cgtWhatIfScenarioTransactionsSelectionChanged())})("cellEditComplete",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.cgtWhatIfScenarioTransactionsTableCellEdited(i))}),e.k0s(),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",67),e.EFF(19,"\n "),e.j41(20,"button",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.whatIfCalculatePressed())}),e.EFF(21,"Calculate"),e.k0s(),e.EFF(22,"\n "),e.j41(23,"button",69),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.searchButtonPressed())}),e.EFF(24,"Reset Scenarios"),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.j41(27,"label"),e.EFF(28,"\xa0"),e.k0s(),e.EFF(29,"\n\n\n "),e.EFF(30,"\n "),e.DNE(31,Ms,1,1,"loading",70),e.EFF(32,"\n "),e.DNE(33,Gs,8,4,"div",20),e.EFF(34,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(13),e.Y8G("columns",t.featureSwitch.FeatureToggles.Columns.CgtWhatIfScenarioTransactions),e.R50("selectedRow",t.selectedWhatIfScenarioTransactions),e.Y8G("tableData",t.whatIfScenarioTransactions)("modelType",t.WhatIfScenarioModel)("checkboxSelectionMode",!0),e.R7$(18),e.Y8G("ngIf",t.whatIfScenarioCalculatingIndicatorShow),e.R7$(2),e.Y8G("ngIf",t.whatIfScenarioDisposals)}}function Ns(o,n){if(1&o&&(e.j41(0,"div",32),e.EFF(1,"\n "),e.DNE(2,xs,7,0,"div",33),e.EFF(3,"\n "),e.EFF(4,"\n "),e.j41(5,"div",34),e.EFF(6,"\n "),e.DNE(7,Rs,17,3,"div",35),e.EFF(8,"\n "),e.k0s(),e.EFF(9," \n \n "),e.EFF(10,"\n "),e.DNE(11,js,11,4,"div",36),e.EFF(12,"\n\n "),e.EFF(13,"\n "),e.DNE(14,ws,10,4,"div",36),e.EFF(15,"\n\n "),e.EFF(16,"\n "),e.DNE(17,As,12,2,"div",37),e.EFF(18,"\n "),e.DNE(19,Ps,42,16,"div",37),e.EFF(20,"\n "),e.DNE(21,Vs,35,7,"div",36),e.EFF(22,"\n \n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.multipleTaxYearsSelected()&&"Corporate"!=t.client.ClientType),e.R7$(5),e.Y8G("ngForOf",t.getFieldPairs()),e.R7$(4),e.Y8G("ngIf",t.selectedTab==t.selectedTabEnum.Holdings),e.R7$(3),e.Y8G("ngIf",t.selectedTab==t.selectedTabEnum.Disposals),e.R7$(3),e.Y8G("ngIf",t.selectedTab==t.selectedTabEnum.WhatIf),e.R7$(2),e.Y8G("ngIf",t.selectedTab==t.selectedTabEnum.WhatIf),e.R7$(2),e.Y8G("ngIf",t.selectedTab==t.selectedTabEnum.WhatIf)}}function Bs(o,n){1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"p",73),e.EFF(3,"No data to display."),e.k0s(),e.EFF(4,"\n "),e.k0s())}function Ys(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",74,5),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.whatIfPressed())}),e.EFF(2,"\n What If\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.AVh("btn-primary",t.selectedTab==t.selectedTabEnum.WhatIf)("btn-default",t.selectedTab!=t.selectedTabEnum.WhatIf)}}function Xs(o,n){if(1&o){const t=e.RV6();e.EFF(0,"\n "),e.j41(1,"div",6),e.EFF(2,"\n "),e.j41(3,"div",22),e.EFF(4,"\n "),e.j41(5,"div",23),e.
1EFF(6,"\n "),e.j41(7,"label"),e.EFF(8,"Select Account"),e.k0s(),e.EFF(9,"\n "),e.j41(10,"select",24),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.selectedAccount,i)||(a.selectedAccount=i),e.Njj(i)}),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.searchButtonPressed())}),e.EFF(11,"\n "),e.j41(12,"option",25),e.DNE(13,Ts,2,0,"span",20)(14,ys,2,0,"span",20),e.k0s(),e.EFF(15,"\n "),e.DNE(16,Is,2,2,"option",26),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.DNE(22,Ns,23,7,"div",27),e.EFF(23,"\n "),e.DNE(24,Bs,5,0,"div",20),e.EFF(25,"\n\n "),e.nrm(26,"loading",19),e.EFF(27,"\n \n "),e.EFF(28,"\n "),e.j41(29,"div",8),e.EFF(30,"\n "),e.j41(31,"button",28),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.disposalsPressed())}),e.EFF(32,"\n Disposals\n "),e.k0s(),e.EFF(33,"\n "),e.j41(34,"button",29),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.holdingsPressed())}),e.EFF(35,"\n Current Holdings\n "),e.k0s(),e.EFF(36,"\n "),e.DNE(37,Ys,3,4,"button",30),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n ")}if(2&o){const t=e.XpG();e.R7$(10),e.R50("ngModel",t.selectedAccount),e.R7$(2),e.Y8G("ngValue",null),e.R7$(),e.Y8G("ngIf",t.filteredCgtAccounts&&t.filteredCgtAccounts.length>0),e.R7$(),e.Y8G("ngIf",!t.filteredCgtAccounts||0==t.filteredCgtAccounts.length),e.R7$(2),e.Y8G("ngForOf",t.filteredCgtAccounts),e.R7$(6),e.Y8G("ngIf",t.accountData.length>0),e.R7$(2),e.Y8G("ngIf",t.hasSearchBeenClicked&&!t.showLoading&&0==t.accountData.length),e.R7$(2),e.Y8G("visible",t.showLoading&&null==t.warningMessage),e.R7$(3),e.Y8G("hidden",!t.hasSearchBeenClicked),e.R7$(2),e.AVh("btn-primary",t.selectedTab==t.selectedTabEnum.Disposals)("btn-default",t.selectedTab!=t.selectedTabEnum.Disposals),e.R7$(3),e.AVh("btn-primary",t.selectedTab==t.selectedTabEnum.Holdings)("btn-default",t.selectedTab!=t.selectedTabEnum.Holdings),e.R7$(3),e.Y8G("ngIf",t.featureSwitch.FeatureToggles.CGTWhatIf&&t.selectedPeriod&&t.selectedPeriod.isCurrent()&&"Corporate"!=t.client.ClientType)}}function Os(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"div",75),e.EFF(2),e.k0s(),e.EFF(3,"\n ")),2&o){const t=e.XpG();e.R7$(2),e.SpI("\n ",t.warningMessage,"\n ")}}var y;!function(o){o[o.Holdings=0]="Holdings",o[o.Disposals=1]="Disposals",o[o.WhatIf=2]="WhatIf"}(y||(y={}));class Je{get filteredCgtAccounts(){return null==this.cgtAccounts?null:this.cgtAccounts.filter(n=>this.filteredPortfolioIds&&this.filteredPortfolioIds.includes(n.PortfolioId+""))}ngOnInit(){this.setColumnOptions(),this.loadCgtAccounts(this.client.ClientId)}resetLoadedResults(){this.selectedAccount=null,this.accountData=new Array,this.holdings=new Array,this.disposals=new Array,this.hasSearchBeenClicked=!1}applyCurrentlySelectedPortfolios(){this.portfolioSelector&&null!=this.portfolioSelector.getSelectedPortfolios()&&(this.filteredPortfolioIds=this.portfolioSelector.getSelectedPortfolios())}constructor(n,t,s,i){this.featureSwitch=n,this.cgtStore=t,this.changeDetector=s,this.sanitizer=i,this.selectedPeriod=new O.r(null,null),this.accountData=new Array,this.cgtAccounts=null,this.holdings=new Array,this.disposals=new Array,this.whatIfScenarioTransactions=new Array,this.selectedWhatIfScenarioTransactions=new Array,this.whatIfScenarioDisposals=null,this.whatIfScenarioGainLoss=0,this.whatIfScenarioCalculatingIndicatorShow=!1,this.whatIfOtherGainsThisYear=0,this.whatIfOtherLossesThisYear=0,this.whatIfAdjustNominalByPercentageChecked=!1,this.whatIfManualDisinvestChecked=!1,this.whatIfAdjustNominalByPercentageNumber=100,this.whatIfWhatIfManualDisinvestValue=0,this.whatIfScenarioTotalGainLoss=0,this.whatIfHasShownDeselectingTransactionsWarning=!1,this.allowanceDetails=new as.h,this.actualGainLoss=0,this.totalMarketValue=0,this.unrealisedGainLoss=0,this.selectedTab=y.Disposals,this.selectedTabEnum=y,this.HoldingModel=ss.o,this.DisposalModel=os.i,this.WhatIfScenarioModel=rs.c,this.showPicker=!0,this.showLoading=!1,this.hasSearchBeenClicked=!1}getTakeOnDate(){return this.client.TakeOnDate?h(this.client.TakeOnDate):null}setFilteredPortfolioIdList(n){this.filteredPortfolioIds=[];for(let t of n)this.filteredPortfolioIds.push(t.id);this.resetLoadedResults(),this.populateAccountSelector(),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}searchButtonPressed(){this.selectedAccount&&this.selectedPeriod.startPeriod?(this.showLoading=!0,this.accountData=new Array,this.whatIfScenarioTransactions=new Array,this.whatIfScenarioDisposals=null,this.whatIfOtherGainsThisYear=0,this.whatIfOtherLossesThisYear=0,this.whatIfHasShownDeselectingTransactionsWarning=!1,this.whatIfManualDisinvestChecked=!1,this.whatIfWhatIfManualDisinvestValue=0,this.whatIfAdjustNominalByPercentageChecked=!1,this.whatIfScenarioTotalGainLoss=0,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.cgtStore.getCgtAccountDisposals(this.client.ClientId.toString(),this.selectedAccount.PortfolioId.toString(),this.selectedAccount.AccountId.toString(),this.selectedPeriod.startPeriod.format("YYYY MM DD"),this.selectedPeriod.endPeriod.format("YYYY MM DD")).subscribe(n=>{this.disposals=n.disposals,this.showLoading=!1,this.selectedTab==y.Disposals&&(this.accountData=this.disposals),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.warningMessage="Error: "+n.message}),this.cgtStore.getCgtAccountHoldings(this.client.ClientId.toString(),this.selectedAccount.PortfolioId.toString(),this.selectedAccount.AccountId.toString()).subscribe(n=>{this.holdings=n.holdings,this.showLoading=!1,this.selectedTab==y.Holdings&&(this.accountData=this.holdings),this.totalMarketValue=n.totalMarketValue,this.unrealisedGainLoss=n.totalGainLoss,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.warningMessage="Error: "+n.message}),this.cgtStore.getCgtAllowanceDetails(this.client.ClientId.toString(),this.selectedAccount.PortfolioId.toString(),this.selectedAccount.AccountId.toString(),this.selectedPeriod.startPeriod.format("YYYY MM DD")).subscribe(n=>{this.allowanceDetails=n.allowance,this.actualGainLoss=this.allowanceDetails.GainLoss,this.whatIfScenarioGainLoss=this.actualGainLoss,this.whatIfOtherGainsThisYear=n.allowance.OtherGainsThisYear,this.whatIfOtherLossesThisYear=n.allowance.OtherLossesThisYear,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.warningMessage="Error: "+n.message}),this.featureSwitch.FeatureToggles.CGTWhatIf&&this.cgtStore.getCGTWhatIfScenarioTransactions(this.client.ClientId.toString(),this.selectedAccount.PortfolioId.toString(),this.selectedAccount.AccountId.toString()).subscribe(n=>{this.whatIfScenarioTransactions=n.scenarioTransactions,this.selectedWhatIfScenarioTransactions=this.whatIfScenarioTransactions.slice(),this.selectedTab==y.WhatIf&&(this.accountData=this.whatIfScenarioTransactions),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.warningMessage="Error: "+n.message}),this.hasSearchBeenClicked=!0):console.debug("Search not performed due to account or period being null")}populateAccountSelector(){this.filteredCgtAccounts&&1==this.filteredCgtAccounts.length?(this.selectedAccount=this.filteredCgtAccounts[0],this.searchButtonPressed()):this.selectedAccount=null}onUpdatePeriod(n){this.selectedPeriod=n,this.searchButtonPressed()}loadCgtAccounts(n){this.cgtStore.getCgtAccounts(n).subscribe(t=>{this.cgtAccounts=t.accounts,this.cgtAccounts.length<1?this.warningMessage="There are no accounts eligible for Capital Gains Tax.":(this.warningMessage=null,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.applyCurrentlySelectedPortfolios(),this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.populateAccountSelector()),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},t=>{this.warningMessage="Error: "+t.message})}getFieldPairs(){let n=new Array;n.push([null,null,null]);let s=this.detailsColumns;for(let i=0;i<s.length;i+=1){let r,a=s[i];if("TotalMarketValue"!=a.Key&&this.multipleTaxYearsSelected())continue;if("TotalMarketValue"==a.Key?r=x.K.formatCurrency(this.totalMarketValue,Gt.S.default.UpperSymbol,2):"UnrealisedGainLoss"==a.Key?r=x.K.formatCurrency(this.unrealisedGainLoss,Gt.S.default.UpperSymbol,2):this.selectedTab==y.WhatIf&&"ScenarioTotalGainLoss"==a.Key?At.f.Compare(this.featureSwitch.FeatureToggles.APIVersion,"23.3.0.0")>=0&&(r=x.K.formatCurrency(this.whatIfScenarioTotalGainLoss,Gt.S.default.UpperSymbol,2)):r=a.getValue(this.allowanceDetails),null==r||0==r.length){if("FormattedCalculatedValueDate"!=a.Key&&"TaxYear"!=a.Key&&"UnrealisedGainLoss"!=a.Key&&"FormattedAllowance"!=a.Key&&"TotalMarketValue"!=a.Key&&"FormattedGainLoss"!=a.Key&&(this.selectedTab!=y.WhatIf||"ScenarioTotalGainLoss"!=a.Key))continue;r="-"}let d=n[n.length-1];
1null!=d[0]&&null!=d[1]&&null!=d[2]&&(d=[null,null,null],n.push(d)),null===d[2]&&("UnrealisedGainLoss"==a.Key||"FormattedGainLoss"==a.Key||this.selectedTab==y.WhatIf&&"ScenarioTotalGainLoss"==a.Key)?d[2]={key:a.Key,value:r,displayName:a.DisplayName,styleClasses:a.StyleClasses}:null==d[0]?d[0]={key:a.Key,value:r,displayName:a.DisplayName,styleClasses:a.StyleClasses}:null==d[1]?d[1]={key:a.Key,value:r,displayName:a.DisplayName,styleClasses:a.StyleClasses}:d[2]={key:a.Key,value:r,displayName:a.DisplayName,styleClasses:a.StyleClasses}}return n}getDateLabel(){return this.selectedTab==y.Disposals?v.r.toDateString(this.selectedPeriod.startPeriod)+" to "+v.r.toDateString(this.selectedPeriod.endPeriod):"Current holdings as of "+v.r.toDateString(h())}setColumnOptions(){if("Corporate"==this.client.ClientType){this.holdingsColumns=this.featureSwitch.FeatureToggles.Columns.CgtCorporateAccountHoldings,this.disposalsColumns=this.featureSwitch.FeatureToggles.Columns.CgtCorporateAccountDisposals;let n=[_.bV.create("FormattedCalculatedValueDate","Date Last Calculated"),_.bV.create("FormattedGainLoss","Realised Gain/Loss","GainLoss")];this.detailsColumns=n}else{this.holdingsColumns=this.featureSwitch.FeatureToggles.Columns.CgtAccountHoldings,this.disposalsColumns=this.featureSwitch.FeatureToggles.Columns.CgtAccountDisposals;let n=[_.bV.create("FormattedCalculatedValueDate","Date Calculated"),_.bV.create("TaxYear","Tax Year"),_.bV.create("UnrealisedGainLoss","Unrealised Gain/Loss"),_.bV.create("FormattedAllowance","CGT Allowance"),_.bV.create("TotalMarketValue","Current Market Value"),_.bV.create("FormattedGainLoss","Realised Gain/Loss"),_.bV.create("ScenarioTotalGainLoss","Scenario Realised Gain/Loss"),_.bV.create("FormattedTaxableGain","Taxable Gain"),_.bV.create("FormattedBFLosses","B/F Losses"),_.bV.create("FormattedBFLossesOther","Other B/F Losses"),_.bV.create("FormattedBFLossesUsed","B/F Losses Used"),_.bV.create("FormattedPotentialCFLoss","Potential C/F Losses")];this.detailsColumns=n}}disposalsPressed(){this.selectedTab=y.Disposals,this.accountData=this.disposals,this.allowanceDetails.GainLoss=this.actualGainLoss,this.switchDataForTab()}showDisposalPoolLog(n){let t=n.item,s=t.SecurityName+": "+t.FormattedPositionDate,i=t.PoolingLog.replace(/\n/g,"<br>");bootbox.dialog({size:"large",title:s,message:i})}holdingsPressed(){this.selectedTab=y.Holdings,this.accountData=this.holdings,this.allowanceDetails.GainLoss=this.actualGainLoss,this.switchDataForTab()}whatIfPressed(){this.selectedTab=y.WhatIf,this.accountData=this.whatIfScenarioTransactions,this.allowanceDetails.GainLoss=this.whatIfScenarioGainLoss,this.switchDataForTab()}whatIfCalculatePressed(){let n=this.selectedWhatIfScenarioTransactions;null==n&&(n=[]),this.whatIfScenarioCalculatingIndicatorShow=!0,null==this.whatIfOtherGainsThisYear&&(this.whatIfOtherGainsThisYear=0),null==this.whatIfOtherLossesThisYear&&(this.whatIfOtherLossesThisYear=0),this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.cgtStore.getCGTWhatIfScenarioCalculation(this.client.ClientId.toString(),this.selectedAccount.PortfolioId.toString(),this.selectedAccount.AccountId.toString(),n,this.whatIfOtherGainsThisYear,this.whatIfOtherLossesThisYear).subscribe(t=>{t.scenarioTransactions.forEach(s=>{s.SecurityTransactionId<0&&(s.TransactionType="Proposed Sell")}),this.whatIfScenarioDisposals=t.scenarioTransactions,this.whatIfScenarioGainLoss=t.gainLossIncludingScenario,this.whatIfScenarioTotalGainLoss=t.scenarioTotalGainLoss,this.whatIfScenarioCalculatingIndicatorShow=!1,this.allowanceDetails.GainLoss=this.whatIfScenarioGainLoss,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},t=>{this.whatIfScenarioCalculatingIndicatorShow=!1,this.warningMessage="Error: "+t.message,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}adjustSelectedWhatIfScenarioToPercentageOfNominal(){let n=this.whatIfAdjustNominalByPercentageNumber;n<0&&(n=this.whatIfAdjustNominalByPercentageNumber=0),n>100&&(n=this.whatIfAdjustNominalByPercentageNumber=100);let t=n/100;this.selectedWhatIfScenarioTransactions.forEach(s=>{s.Nominal=s.Nominal*t,s.Value=s.Nominal*s.Price}),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}manualDisinvestWhatIfValue(){let n=this.selectedWhatIfScenarioTransactions,t=this.whatIfWhatIfManualDisinvestValue,s=n.map(i=>i.Value).reduce((i,a)=>i+a);
1n.forEach(i=>{let u=i.Value/s*t/i.Price;u>i.UneditedNominal&&(u=i.UneditedNominal),i.Nominal=u,i.Value=u*i.Price}),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}cgtWhatIfScenarioTransactionsSelectionChanged(){let n=this.featureSwitch.FeatureToggles.CGTWhatIfScenarioTransactionsSelectionChangedWarningMessage;n&&n.trim().length>0&&(n=this.sanitizer.sanitize(e.WPN.HTML,n),!this.whatIfHasShownDeselectingTransactionsWarning&&this.selectedWhatIfScenarioTransactions.length!=this.whatIfScenarioTransactions.length&&(this.whatIfHasShownDeselectingTransactionsWarning=!0,bootbox.alert({title:"CGT What If Warning",message:n,backdrop:!0})))}cgtWhatIfPercentageCheckboxChanged(){!0===this.whatIfAdjustNominalByPercentageChecked&&(this.whatIfManualDisinvestChecked=!1)}cgtWhatIfManualDisinvestCheckboxChanged(){!0===this.whatIfManualDisinvestChecked&&(this.whatIfAdjustNominalByPercentageChecked=!1)}cgtWhatIfScenarioTransactionsTableCellEdited(n){let t=this.whatIfScenarioTransactions[n.RowIndex];"Value"==n.FieldName&&(t.Nominal=t.Value/t.Price),("Price"==n.FieldName||"Nominal"==n.FieldName)&&(t.Value=t.Nominal*t.Price),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}switchDataForTab(){let n=" (inc. Scenario)";this.selectedTab==y.WhatIf?this.allowanceDetails.GainLoss=this.whatIfScenarioGainLoss:this.allowanceDetails.GainLoss=this.actualGainLoss;for(let t of this.detailsColumns)"FormattedGainLoss"==t.Key&&(this.selectedTab==y.WhatIf?0==t.DisplayName.endsWith(n)&&(t.DisplayName=t.DisplayName+n):1==t.DisplayName.endsWith(n)&&(t.DisplayName=t.DisplayName.replace(n,"")))}multipleTaxYearsSelected(){let n=this.selectedPeriod.startPeriod,t=this.selectedPeriod.endPeriod,s=new Date(n.year(),3,6),i=new Date(n.year()+1,3,5);return!(n>=h(s)&&t<=h(i))}static#e=this.\u0275fac=function(t){return new(t||Je)(e.rXU(f.P),e.rXU(ls.wm),e.rXU(e.gRc),e.rXU(cs.up))};static#t=this.\u0275cmp=e.VBU({type:Je,selectors:[["cgt"]],viewQuery:function(t,s){if(1&t&&(e.GBs(_s,5),e.GBs(Z.lC,5),e.GBs(Cs,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.dropdownToggle=i.first),e.mGM(i=e.lsd())&&(s.portfolioSelector=i.first),e.mGM(i=e.lsd())&&(s.cgtScenarioTransactionsTable=i.first)}},inputs:{client:"client"},decls:51,vars:8,consts:[["dropdownToggle",""],["periodPicker",""],["showAccounts",""],["showWarning",""],["cgtScenarioTransactionsTable",""],["modellingButton",""],[1,"row",2,"margin-bottom","1em"],[1,"col-md-2"],[3,"hidden"],[1,"dropdown"],["href","javascript:;","data-toggle","dropdown",1,"dropdown-toggle","largeGlyph"],["aria-hidden","true","data-test","periodPickerDropdown",1,"fa","fa-calendar",2,"font-size","larger"],[1,"dropdown-menu",2,"padding","10px","min-width","200px",3,"click"],[3,"onPeriodSelected","minDate"],["data-test","taxYearLabel"],[1,"col-lg-8"],[3,"selectionList","client"],[1,"pull-right"],["data-test","infoButton",3,"page","section"],[3,"visible"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"col-md-12"],[1,"form-group"],["data-test","accountSelector",1,"form-control",3,"ngModelChange","change","ngModel"],["disabled","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["data-test","accountData",4,"ngIf"],["id","Disposals","data-test","disposalsButton",1,"btn",3,"click"],["id","Holdings","data-test","holdingsButton",1,"btn",3,"click"],["id","Modelling","class","btn","data-test","whatIfButton",3,"btn-primary","btn-default","click",4,"ngIf"],[3,"ngValue"],["data-test","accountData"],["data-test","multipleTaxYearsSelectedWarningMessage","class","alert alert-warning col-sm-12","role","alert",4,"ngIf"],[2,"margin-bottom","1em"],["class","row","style","margin-bottom: 1em",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],["class","row","style","margin-bottom:20px;",4,"ngIf"],["data-test","multipleTaxYearsSelectedWarningMessage","role","alert",1,"alert","alert-warning","col-sm-12"],["aria-hidden","true",1,"glyphicon","glyphicon-exclamation-sign",2,"display","table-cell","vertical-align","middle","font-size","2em"],[2,"padding-left","8px","vertical-align","middle","display","table-cell"],["mg","",1,"col-sm-4"],[1,"col-sm-4"],[1,"visible-xs",2,"clear","both","margin-bottom","5px"],[1,"text-left"],[1,"text-dark","h3"],[1,"row"],[1,"col-lg-12"],["data-test","CGTHoldingsTable",3,"columns","tableData","modelType","downloadFileName"],["data-test","CGTDisposalsTable",3,"rowSelected","columns","tableData","modelType","downloadFileName"],[1,"row",2,"margin-bottom","20px"],[1,"col-lg-3"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-inline"],["data-test","adjustNominalByPercentageCheckbox",3,"ngModelChange","onChange","ngModel","binary"],[1,"input-group"],["type","number","min","0","max","100","data-test","adjustNominalByPercentageInput",1,"form-control",2,"width","120px",3,"ngModelChange","disabled","ngModel"],[1,"input-group-addon"],["data-test","adjustNominalByPercentageButton",1,"btn","btn-primary",3,"click","disabled"],[1,"col-lg-12",2,"margin-top","8px"],["data-test","manualDisinvestValueCheckbox",3,"ngModelChange","onChange","ngModel","binary"],["type","number","min","0","data-test","manualDisinvestValueInput",1,"form-control",2,"width","126px",3,"ngModelChange","disabled","ngModel"],["data-test","manualDisinvestValueButton",1,"btn","btn-primary",3,"click","disabled"],[1,"panel","panel-default"],[1,"panel-heading"],[1,"panel-title"],["data-test","CGTScenarioTransactionsTable",3,"selectedRowChange","cellEditComplete","columns","selectedRow","tableData","modelType","downloadFileName","checkboxSelectionMode"],[1,"col-sm-4",2,"margin-top","10px","margin-bottom","10px"],["data-test","calculateScenarioButton",1,"btn","btn-primary",3,"click"],["data-test","resetScenariosButton",1,"btn","btn-primary",3,"click"],[3,"caption",4,"ngIf"],[3,"caption"],["data-test","CGTScenarioDisposalsTable",3,"columns","tableData","modelType","downloadFileName"],["data-test","noCGTDataText"],["id","Modelling","data-test","whatIfButton",1,"btn",3,"click"],[1,"alert","alert-warning"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n \n "),e.EFF(1,"\n "),e.j41(2,"div",6),e.EFF(3,"\n "),e.j41(4,"div",7),e.EFF(5," \n "),e.j41(6,"span",8),e.EFF(7,"\n "),e.j41(8,"div",9),e.EFF(9,"\n "),e.j41(10,"a",10,0),e.nrm(12,"span",11),e.k0s(),e.EFF(13,"\n "),e.j41(14,"div",12),e.bIt("click",function(r){return e.eBV(i),e.Njj(r.stopPropagation())}),e.EFF(15,"\n "),e.j41(16,"periodPickerCGT",13,1),e.bIt("onPeriodSelected",function(r){return e.eBV(i),e.Njj(s.onUpdatePeriod(r))}),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.j41(22,"span",14),e.EFF(23),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n\n "),e.j41(26,"div",15),e.EFF(27,"\n "),e.j41(28,"portfolioSelector",16),e.bIt("selectionList",function(r){return e.eBV(i),e.Njj(s.setFilteredPortfolioIdList(r))}),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n\n "),e.j41(31,"div",17),e.EFF(32,"\n "),e.j41(33,"div",7),e.EFF(34,"\n "),e.nrm(35,"context-help",18),e.EFF(36,"\n "),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n \n "),e.nrm(40,"loading",19),e.EFF(41,"\n "),e.DNE(42,vs,4,3,"span",20),e.EFF(43,"\n "),e.EFF(44,"\n "),e.DNE(45,Xs,40,18,"ng-template",null,2,e.C5r),e.EFF(47,"\n \n "),e.DNE(48,Os,4,1,"ng-template",null,3,e.C5r),e.EFF(50,"\n ")}2&t&&(e.R7$(6),e.Y8G("hidden",s.selectedTab!=s.selectedTabEnum.Disposals),e.R7$(10),e.Y8G("minDate",s.getTakeOnDate()),e.R7$(7),e.SpI("\n ",s.getDateLabel(),"\n "),e.R7$(5),e.Y8G("client",s.client),e.R7$(7),e.Y8G("page","ClientOverview")("section","CGT"),e.R7$(5),e.Y8G("visible",null==s.cgtAccounts),e.R7$(2),e.Y8G("ngIf",s.cgtAccounts))},dependencies:[p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.VZ,p.zX,C.q,J.K,L.m,Z.lC,c.Sq,c.bT,p.vS,Kt.Sc,M],styles:["div.dropdown[_ngcontent-%COMP%]{display:inline;background-color:transparent}"],changeDetection:0})}class $t{get FormattedDateSent(){return v.r.toDateString(this.DateSent)}
1}var en=l(41369),Ls=l(53125),D=l(31992),Us=l(95006),Ke=l(94423),w=l(45254),tn=l(21626);class le{constructor(n){this.httpClient=n,this.SIPPDocumentsForPortfolio$=new w.B7,this.SIPPDocumentFile$=new w.B7}getSippDocumentsList(n,t){let s=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/documents/sipp/list";return this.httpClient.get(s).pipe((0,Us.T)(this.getDocumentForPortfolioMap,this)).subscribe(i=>{let a=new nn;a.clientId=n,a.portfolioId=t,a.documents=i,this.SIPPDocumentsForPortfolio$.next(a)},i=>{let a=new nn;a.clientId=n,a.portfolioId=t,a.error=i,this.SIPPDocumentsForPortfolio$.next(a)})}getSippDocument(n,t,s){let i=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/documents/sipp/item/"+s,a=JSON.parse(localStorage.getItem("user"));var r=this;$.ajax({url:i,type:"GET",dataType:"binary",headers:{Authorization:"Bearer "+a.accessToken},processData:!1,success:function(d){let u=new Hs;u.documentData=d,u.clientId=n,u.portfolioId=t,u.correspondanceKey=s,r.SIPPDocumentFile$.next(u)}})}getDocumentForPortfolioMap(n){let t=[];for(let s of n.Items){let i=Ke.z2.fromJson($t,s);t.push(i)}return t}static#e=this.\u0275fac=function(t){return new(t||le)(e.KVO(tn.Qq))};static#t=this.\u0275prov=e.jDH({token:le,factory:le.\u0275fac})}class nn{constructor(){this.error=null,this.documents=null}}class Hs{constructor(){this.error=null}}var S=l(64613);function Ws(o,n){1&o&&(e.j41(0,"div",4),e.EFF(1,"There are no documents available for you to view"),e.k0s())}function zs(o,n){if(1&o&&(e.j41(0,"div",4),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh("One or more of your portfolios has no documents: "+t.getEmptyPortfolios().toString())}}function Qs(o,n){if(1&o){const t=e.RV6();e.j41(0,"configured-table",5),e.bIt("rowSelected",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.rowSelected(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("modelType",t.modelType)("columns",t.featureSwitch.FeatureToggles.Columns.SIPPDocuments)("groupedTableData",t.tableData)("defaultExpandedGroups",t.defaultExpandedGroups)}}class qe{constructor(n,t,s){this.featureSwitch=n,this.sippStore=t,this.changeDetector=s,this.portfolioDocumentsArray=null,this.error=null,this.modelType=$t,this.tableData=null,this.lastPicked=null}ngOnInit(){this.sippDocumentsSubscription=this.sippStore.SIPPDocumentsForPortfolio$.pipe((0,F.p)(n=>null!=n&&n.clientId==this.client.Id)).subscribe(n=>{if(n.error)this.error=n.error;else{let t=new Zs;t.portfolioId=n.portfolioId,t.sippDocuments=n.documents,null==this.portfolioDocumentsArray&&(this.portfolioDocumentsArray=new Array),this.portfolioDocumentsArray.push(t),this.groupDocuments()}this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.sippDownloadSubscription=this.sippStore.SIPPDocumentFile$.pipe((0,F.p)(n=>null!=n&&n.clientId==this.client.Id&&this.lastPicked&&n.correspondanceKey==this.lastPicked)).subscribe(n=>{this.fileDownload(n)}),this.loadDocuments()}ngOnDestroy(){this.sippDocumentsSubscription&&this.sippDocumentsSubscription.unsubscribe(),this.sippDownloadSubscription&&this.sippDownloadSubscription.unsubscribe()}getPortfolioName(n){for(let t of this.client.Portfolios)if(Number(t.Id)==n)return t.PortfolioNameOrReportingName;return""}groupDocuments(){let n={};this.defaultExpandedGroups=new Array,this.portfolioDocumentsArray.sort((i,a)=>i.portfolioId>a.portfolioId?1:a.portfolioId>i.portfolioId?-1:0);let t=this.getEmptyPortfolios();for(let i of this.portfolioDocumentsArray)n[this.getPortfolioName(i.portfolioId)]=i.sippDocuments,t.includes(this.getPortfolioName(i.portfolioId))||this.defaultExpandedGroups.push(this.getPortfolioName(i.portfolioId));let s={};Object.keys(n).forEach(i=>{s[i]=n[i].map(a=>{let r=new en.H;return r.Data=a,r})}),this.tableData=s}loadDocuments(){for(let n of this.client.Portfolios)n.SIPPReference&&this.sippStore.getSippDocumentsList(this.client.Id,Number(n.Id))}fileDownload(n){let s,t=n.documentData;for(let i of this.portfolioDocumentsArray)for(let a of i.sippDocuments)a.CorrKey==n.correspondanceKey&&(s=a);if(t.type.includes("application/json")&&s)t.text().then(i=>{let a=JSON.parse(i);bootbox.dialog({size:"small",title:s.Subject,message:a.Message})});else{let i=s.Subject.replace(/^.*[\\\/]/,"");(0,Ls.saveAs)(t,i)}}showOneIsEmpty(){return!this.showAllAreEmpty()&&this.getEmptyPortfolios().length>0}getEmptyPortfolios(){let n=Array();if(this.portfolioDocumentsArray)for(let t of this.portfolioDocumentsArray)t.sipp
1Documents.length<1&&n.push(this.getPortfolioName(t.portfolioId));return n}showAllAreEmpty(){return this.portfolioDocumentsArray&&0==this.portfolioDocumentsArray.length}rowSelected(n){let t=n.item.Data,s=null;for(let i of this.portfolioDocumentsArray)for(let a of i.sippDocuments)t==a&&(s=i.portfolioId);this.lastPicked=t.CorrKey,this.sippStore.getSippDocument(this.client.Id,s,t.CorrKey)}static#e=this.\u0275fac=function(t){return new(t||qe)(e.rXU(f.P),e.rXU(le),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:qe,selectors:[["sipp-documents"]],inputs:{client:"client"},decls:11,vars:6,consts:[[3,"tryAgain","error","itemName"],[3,"visible"],["class","alert alert-info",4,"ngIf"],[3,"modelType","columns","groupedTableData","defaultExpandedGroups","rowSelected",4,"ngIf"],[1,"alert","alert-info"],[3,"rowSelected","modelType","columns","groupedTableData","defaultExpandedGroups"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"error",0),e.bIt("tryAgain",function(){return s.loadDocuments()}),e.k0s(),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(5,Ws,2,0,"div",2),e.EFF(6,"\n "),e.DNE(7,zs,2,1,"div",2),e.EFF(8,"\n "),e.DNE(9,Qs,1,4,"configured-table",3),e.EFF(10,"\n ")),2&t&&(e.R7$(),e.Y8G("error",s.error)("itemName","documents"),e.R7$(2),e.Y8G("visible",null==s.portfolioDocumentsArray),e.R7$(2),e.Y8G("ngIf",s.showAllAreEmpty()),e.R7$(2),e.Y8G("ngIf",s.showOneIsEmpty()),e.R7$(2),e.Y8G("ngIf",s.tableData))},dependencies:[C.q,S.A,L.m,c.bT],encapsulation:2,changeDetection:0})}class Zs{constructor(){this.sippDocuments=null}}class Js{constructor(){this.TerceroContactId=null,this.Gender=null,this.RetirementAge=null,this.MobilePhone=null,this.EmploymentStatus=null,this.Email=null,this.TaxRelief=null,this.County=null}}var q,Ee,_e,R,Ce,be,ve,E,m,ge=l(25138);class Ks{constructor(){this.IllustrationFileUniqueIdentifier=(0,ge.A)().toString(),this.ApplicationFormFileUniqueIdentifier=(0,ge.A)().toString()}}class sn{constructor(){this.contact=new Js,this.beneficiaries=Array(),this.contributions=Array(),this.transfers=Array(),this.portfolio=null,this.advisor=null,this.documents=new Ks}}class on{constructor(){this.Name="",this.Email="",this.Telephone=""}}class Vt{constructor(){this.Line1="",this.Line2="",this.Line3="",this.City="",this.County="",this.PostCode=""}}class Nt{constructor(){this.Id=0,this.Beneficary=new on,this.PercentageOfFund=0,this.Relationship="",this.Address=new Vt,this.IsNew=!1,this.UniqueIdentifier=(0,ge.A)().toString()}}class Bt{constructor(){this.Id=0,this.ContributionId="00000000-0000-0000-0000-000000000000",this.ContributionType=null,this.Frequency=null,this.Amount=0,this.StartDate=null,this.Status=null,this.EmployerOrOtherPerson=new on,this.Address=new Vt,this.IsNew=!1,this.UniqueIdentifier=(0,ge.A)().toString()}}!function(o){o.Personal="Personal",o.Employer="Employer",o.Other="Other"}(q||(q={})),function(o){o.Monthly="Monthly",o.Quarterly="Quarterly",o.HalfYearly="Half Yearly",o.Annually="Annually",o.Single="Single"}(Ee||(Ee={})),function(o){o.Application="Application",o.Active="Active",o.Stopped="Stopped",o.Received="Received"}(_e||(_e={}));class Yt{constructor(){this.Id=0,this.PolicyNumber="",this.ProviderName="",this.TransferName="",this.PensionType=null,this.Address=new Vt,this.AssetType="",this.TypeOfTransfer=null,this.ExpectedUncrystallisedValue=null,this.ExpectedCrystallisedValue=null,this.ActualCrystallisedValue=null,this.ActualUncrystallisedValue=null,this.TransferType=null,this.IsNew=!1,this.TransferStatus=null,this.UniqueIdentifier=(0,ge.A)().toString()}get ExpectedTotalValue(){return this.ExpectedCrystallisedValue+this.ExpectedUncrystallisedValue}}!function(o){o.AwaitingForms="Awaiting Forms",o.MLToRequestTransfer="ML To Request Transfer",o.AwaitingActionFromCedingScheme="Awaiting Action From Ceding Scheme",o.FundsReceived="Funds Received",o.Transferring="Transferring"}(R||(R={})),function(o){o.Cash="Cash",o.InSpecie="In Specie"}(Ce||(Ce={})),function(o){o.Full="Full",o.Partial="Partial"}(be||(be={})),function(o){o.AdditionalVoluntaryContribution="Additional Voluntary Contribution",o.Annuity="Annuity",o.APPPProtectedRights="APPP Protected Rights",o.BulkBuyOutPlan="Bulk Buy Out Plan",o.ContractedInMoneyPurchase="Contracted In Money Purchase",o.ContractedOutMoneyPurchase="Contracted Out Money Purchase",o.Drawdown="Drawdown",o.ExecutivePersonalPension="Executive Personal Pension",o.FinalSalaryScheme="Final Salary Scheme",o.FreeStandingAdditionalVoluntaryContribution="Free Standing Additional Voluntary Contribution",o.GroupPersonalPension="Group Personal Pension",o.GroupStakeholderPension="Group Stakeholder Pension",o.Other="Other",o.PersonalPensionPlan="Personal Pension Plan",o.QROPS="QROPS",o.RetirementAnnuityContract="Retirement Annuity Contract",o.Section32PolicyBuyOutBond="Section32 Policy Buy Out Bond",o.SelfInvestedPersonalPension="Self Invested Personal Pension",o.SmallSelfAdministeredScheme="Small Self Administered Scheme",o.Stakeholder="Stakeholder"}(ve||(ve={}));class ee{static ValidateBenificiaryData(n){let t=[],s=0;
1if(!n||0==n.length)return t;for(let i of n)s+=i.PercentageOfFund;return 100!=s&&t.push("Total percentage of fund does not add up to 100%."),t}static ValidateContactData(n){let t=[];return null==n.advisor&&t.push("Please select an Advisor."),null==n.portfolio&&t.push("Please select a Portfolio."),t}static ValidateContributionData(n){return[]}static getOptionSetValue(n,t){for(let s of n)if(s.Id==t)return s.Value}static FillInTestData(n){n.beneficiaries=[];let t=new Nt;t.Id=1,t.Beneficary.Name="Son Howard",t.PercentageOfFund=100,t.NominationDate=new Date,t.Relationship="Son",t.Address.Line1="Address 1",t.Address.Line2="Address 2",t.Address.Line3="",t.Address.City="City",t.Address.County="County",t.Address.PostCode="B63 3BL",n.beneficiaries.push(t),n.contributions=[];let s=new Bt;s.Id=1,s.ContributionType=q.Personal,s.Frequency=Ee.HalfYearly,s.Amount=2500,s.StartDate=new Date(Date.UTC(2023,5,1)),s.Status=_e.Active,n.contributions.push(s),s=new Bt,s.Id=2,s.ContributionType=q.Employer,s.Frequency=Ee.Quarterly,s.Amount=424,s.StartDate=new Date(Date.UTC(2023,5,30)),s.Status=_e.Application,s.EmployerOrOtherPerson.Name="Third Financial",s.EmployerOrOtherPerson.Email="[email protected]",s.EmployerOrOtherPerson.Telephone="0207345746",s.Address.Line1="Birchin Court",s.Address.Line2="",s.Address.Line3="",s.Address.City="London",s.Address.County="London",s.Address.PostCode="EC2H 9PP",n.contributions.push(s),n.transfers=[];let i=new Yt;i.Id=1,i.TransferType=be.Full,i.TypeOfTransfer=Ce.InSpecie,i.PensionType=ve.FinalSalaryScheme,i.ExpectedCrystallisedValue=5e3,i.ExpectedUncrystallisedValue=505,i.ProviderName="AJ Bell",i.PolicyNumber="123456",i.Address.Line1="Birchin Court",i.Address.Line2="",i.Address.Line3="",i.Address.City="London",i.Address.County="London",i.Address.PostCode="EC2H 9PP",n.transfers.push(i),n.documents.IllustrationFileName="TestIllustration.pdf",n.documents.IllustrationFileData="JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9iago4IDAgb2JqCjw8Ci9GaWx0ZXIgL0ZsYXRlRGVjb2RlCi9MZW5ndGggMzY4MDkKL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MDAgbg0KMDAwMDAzNzc2MyAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9JbmZvIDE0IDAgUgovUm9vdCAxIDAgUgovU2l6ZSAxNQo+PgpzdGFydHhyZWYKMzc5NDcKJSVFT0YK"}}!function(o){o[o.Home=0]="Home",o[o.Contact=1]="Contact",o[o.Beneficiaries=2]="Beneficiaries",o[o.Transfers=3]="Transfers",o[o.Contributions=4]="Contributions",o[o.Documents=5]="Documents",o[o.Review=6]="Review"}(E||(E={})),function(o){o[o.Editable=0]="Editable",o[o.Review=1]="Review",o[o.Update=2]="Update"}(m||(m={}));const Te=[{value:"I have relevant UK earnings chargeable to income tax or general earnings from overseas Crown employment subject to UK tax, in this tax year.",key:"809130000"},{value:"I have or will have been resident in the UK at some time during this year.",key:"809130001"},{value:"I, or my spouse, are in overseas Crown employment, but for this tax year do not have general earnings from overseas Crown employment subject to UK tax.",key:"809130002"},{value:"My spouse has for this tax year general earnings from overseas Crown employment subject to UK tax.",key:"809130003"}];var an=l(8624);class j{constructor(n,t){this.httpClient=n,this.featureSwitch=t,this.sippAdvisors$=new w.B7,this.sippPortfolioValue$=new w.B7,this.sippBeneficiaries$=new w.B7,this.sippTransfers$=new w.B7,this.sippUpdateResponse$=new w.B7,this.sippOnboarding$=new w.B7,this.sippGetContributions$=new w.B7,this.sippUpdateContributions$=new w.B7,this.sippContact$=new w.B7}getSippValue(n,t){let s=new $s,i=D.Y.WebserviceURLBase+"/client/"+n+"/portfolio/"+t+"/sipp/morganlloyd/scheme";return this.httpClient.get(i).subscribe(a=>{s=a,s.PortfolioId=t,this.sippPortfolioValue$.next(s)},a=>{s.error=a,s.PortfolioId=t,this.sippPortfolioValue$.next(s)})}getTransfers(n,t){let s=new no;s.portfolioId=t;let i=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/sipp/morganlloyd/transfers";return this.httpClient.get(i).subscribe(a=>{s.transfers=new Array,a.sort((r,d)=>r.DateRequested>d.DateRequested?1:this.checkDateForTransfer(r,d));for(let[r,d]of a.entries())d.Id=r,s.transfers.push(Ke.z2.fromJson(Yt,d));this.sippTransfers$.next(s)},a=>{s.error=a,this.sippTransfers$.next(s)})}submitTransfers(n,t,s){let i=new $e,a=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/sipp/morganlloyd/transfers";return this.httpClient.post(a,s).subscribe(r=>{i=r,i.clientId=n,i.portfolioId=t,i.tab=E.Transfers,this.sippUpdateResponse$.next(i)},r=>{i.error=r,i.clientId=n,i.portfolioId=t,i.tab=E.Transfers,this.sippUpdateResponse$.next(i)})}getBeneficiaries(n,t){let s=new eo;s.portfolioId=t;let i=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/sipp/morganlloyd/beneficiaries";return this.httpClient.get(i).subscribe(a=>{s.beneficiaries=new Array;for(let[r,d]of a.Items.entries()){let u=Ke.z2.fromJson(Nt,d);u.Id=r,s.beneficiaries.push(u)}s.beneficiaries.sort((r,d)=>r.NominationDate>d.NominationDate?1:this.checkDateForBeneficiary(r,d)),this.sippBeneficiaries$.next(s)},a=>{s.error=a,this.sippBeneficiaries$.next(s)})}updateBeneficiaries(n,t,s){let i=D.Y.WebserviceURLBase+"client/"+n+"/portfolio/"+t+"/sipp/morganlloyd/beneficiaries",a=new $e;return this.httpClient.put(i,s).subscribe(r=>{a=r,a.clientId=n,a.portfolioId=t,a.tab=E.Beneficiaries,this.sippUpdateResponse$.next(a)},r=>{a=r.error,a.clientId=n,a.portfolioId=t,a.tab=E.Beneficiaries,this.sippUpdateResponse$.next(a)})}getAdvisors(){let n=new qs,t=D.Y.WebserviceURLBase+"sipp/morganlloyd/advisers";return this.httpClient.get(t).subscribe(s=>{n.advisors=s,this.sippAdvisors$.next(n)},s=>{n.error=s,this.sippAdvisors$.next(n)})}sendSippOnboarding(n){let t=D.Y.WebserviceURLBase+"/sipp/morganlloyd/onboarding",s=n;n.clientId=Number(n.portfolio.ClientId),n.portfolioId=Number(n.portfolio.Id);let i=new rn;for(let a of n.contributions)a.ContributionType==q.Personal&&(a.Address=null);return this.httpClient.post(t,s).subscribe(a=>{let r=Ke.z2.fromJson(rn,a);this.sippOnboarding$.next(r)},a=>{i.error=a,this.sippOnboarding$.next(i)})}getContributions(n,t){let s=new to;s.portfolioId=t;let i=D.Y.WebserviceURLBase+"client/"+n.toString()+"/portfolio/"+t.toString()+"/sipp/morganlloyd/contributions";return this.httpClient.get(i).subscribe(a=>{s.contributions=a,s.contributions.sort((r,d)=>r.StartDate>d.StartDate?1:-1);for(let r=0;r<=s.contributions.length-1;r++){s.contributions[r].Id=r}this.sippGetContributions$.next(s)},a=>{s.error=a,this.sippGetContributions$.next(s)})}addNewContributions(n,t,s){let i=D.Y.WebserviceURLBase+"client/"+n.toString()+"/portfolio/"+t.toString()+"/sipp/morganlloyd/contributions",a=new $e;return this.httpClient.post(i,s).subscribe(r=>{a=r,a.clientId=n.toString(),a.portfolioId=t.toString(),a.tab=E.Contributions,this.sippUpdateResponse$.next(a)},r=>{a.error=r,a.clientId=n.toString(),a.portfolioId=t.toString(),a.tab=E.Contributions,this.sippUpdateResponse$.next(a)})}getContact(n,t){let s=D.Y.WebserviceURLBase+"client/"+n.toString()+"/portfolio/"+t.toString()+"/sipp/morganlloyd/contact",i=new io;return this.httpClient.get(s).subscribe(a=>{i.contact=a,i.portfolioId=t,this.sippContact$.next(i)},a=>{i.portfolioId=t,i.error=a,this.sippContact$.next(i)})}updateContact(n,t,s,i){let a=D.Y.WebserviceURLBase+"client/"+n.toString()+"/portfolio/"+t.toString()+"/sipp/morganlloyd/contact",r=new $e;return this.httpClient.put(a,{ContactId:s,AdviserId:i}).subscribe(d=>{r=d,r.clientId=n,r.portfolioId=t,r.tab=E.Contact,this.sippUpdateResponse$.next(r)},d=>{r=d.error,r.clientId=n,r.portfolioId=t,r.tab=E.Contact,this.sippUpdateResponse$.next(r)})}checkDateForTransfer(n,t){return n.DateRequested==t.DateRequested?this.sortByPolicyNumber(n,t):-1}checkDateForBeneficiary(n,t){return n.NominationDate==t.NominationDate?this.sortByBeneficiaryName(n,t):-1}sortByPolicyNumber(n,t){return n.PolicyNumber>t.PolicyNumber?1:-1}sortByBeneficiaryName(n,t){return n.Beneficary.Name>t.Beneficary.Name?1:-1}static#e=this.\u0275fac=function(t){return new(t||j)(e.KVO(tn.Qq),e.KVO(f.P))};static#t=this.\u0275prov=e.jDH({token:j,factory:j.\u0275fac})}class rn{constructor(){this.IsError=!1,this.Message=""}}class $e{constructor(){this.IsError=!1}}class qs{}class $s{}class eo{}class to{}class no{}class io{}var so=l(61748),k=l(3e3);function oo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",11),e.EFF(3,"\n "),e.j41(4,"div",16),e.EFF(5,"\n "),e.j41(6,"span",17),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.nrm(9,"div"),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.nrm(13,"br"),e.EFF(14,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(7),e.JRh(t.ValidationError.message)}}function ao(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,oo,15,1,"div",10),e.EFF(3,"\n "),e.j41(4,"div",11),e.EFF(5,"\n "),e.j41(6,"div",12),e.
1EFF(7,"\n "),e.j41(8,"input-field",13,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Beneficary.Name,i)||(a.benificiaryModelInternal.Beneficary.Name=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.j41(12,"div",12),e.EFF(13,"\n "),e.j41(14,"input-field",14,1),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.PercentageOfFund,i)||(a.benificiaryModelInternal.PercentageOfFund=i),e.Njj(i)}),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",12),e.EFF(19,"\n "),e.nrm(20,"input-field",15,2),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n "),e.j41(25,"div",11),e.EFF(26,"\n "),e.j41(27,"div",12),e.EFF(28,"\n "),e.j41(29,"input-field",13,3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Relationship,i)||(a.benificiaryModelInternal.Relationship=i),e.Njj(i)}),e.k0s(),e.EFF(31,"\n "),e.k0s(),e.EFF(32,"\n "),e.k0s(),e.EFF(33,"\n "),e.j41(34,"div",11),e.EFF(35,"\n "),e.j41(36,"div",12),e.EFF(37,"\n "),e.j41(38,"input-field",13,4),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.Line1,i)||(a.benificiaryModelInternal.Address.Line1=i),e.Njj(i)}),e.k0s(),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n "),e.j41(42,"div",12),e.EFF(43,"\n "),e.j41(44,"input-field",13,5),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.Line2,i)||(a.benificiaryModelInternal.Address.Line2=i),e.Njj(i)}),e.k0s(),e.EFF(46,"\n "),e.k0s(),e.EFF(47,"\n "),e.j41(48,"div",12),e.EFF(49,"\n "),e.j41(50,"input-field",13,6),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.Line3,i)||(a.benificiaryModelInternal.Address.Line3=i),e.Njj(i)}),e.k0s(),e.EFF(52,"\n "),e.k0s(),e.EFF(53,"\n "),e.k0s(),e.EFF(54,"\n "),e.j41(55,"div",11),e.EFF(56,"\n "),e.j41(57,"div",12),e.EFF(58,"\n "),e.j41(59,"input-field",13,7),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.City,i)||(a.benificiaryModelInternal.Address.City=i),e.Njj(i)}),e.k0s(),e.EFF(61,"\n "),e.k0s(),e.EFF(62,"\n "),e.j41(63,"div",12),e.EFF(64,"\n "),e.j41(65,"input-field",13,8),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.County,i)||(a.benificiaryModelInternal.Address.County=i),e.Njj(i)}),e.k0s(),e.EFF(67,"\n "),e.k0s(),e.EFF(68,"\n "),e.j41(69,"div",12),e.EFF(70,"\n "),e.j41(71,"input-field",13,9),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.benificiaryModelInternal.Address.PostCode,i)||(a.benificiaryModelInternal.Address.PostCode=i),e.Njj(i)}),e.k0s(),e.EFF(73,"\n "),e.k0s(),e.EFF(74,"\n "),e.k0s(),e.EFF(75,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",!t.IsValid),e.R7$(6),e.Y8G("label","Name of Beneficiary")("dataType","string")("max",200),e.R50("stringValue",t.benificiaryModelInternal.Beneficary.Name),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_Name"),e.R7$(6),e.Y8G("label","Percentage of Fund")("dataType","number"),e.R50("numberValue",t.benificiaryModelInternal.PercentageOfFund),e.Y8G("min",0)("max",100)("required",!0)("decimalPlaces",2)("readonly",t.IsReviewM
1ode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_PercentageOfFund"),e.R7$(6),e.Y8G("label","Nomination Date")("dataType","string")("stringValue",t.DateHelper.toDateString(t.benificiaryModelInternal.NominationDate))("required",!0)("readonly",!0)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_NominationDate"),e.R7$(9),e.Y8G("label","Relationship")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Relationship),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_Relationship"),e.R7$(9),e.Y8G("label","Address Line 1")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.Line1),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_AddressLine1"),e.R7$(6),e.Y8G("label","Address Line 2")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.Line2),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_AddressLine2"),e.R7$(6),e.Y8G("label","Address Line 3")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.Line3),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_AddressLine3"),e.R7$(9),e.Y8G("label","City")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.City),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_City"),e.R7$(6),e.Y8G("label","County")("dataType","string")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.County),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_County"),e.R7$(6),e.Y8G("label","Post Code")("dataType","postCode")("max",100),e.R50("stringValue",t.benificiaryModelInternal.Address.PostCode),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Beneficiary_"+t.benificiaryModelInternal.Id+"_PostCode")}}class ye{set BeneficiaryModel(n){this.beneficiaryChange.emit(n),this.benificiaryModelInternal=n}get BeneficiaryModel(){return this.benificiaryModelInternal}constructor(n){this.changeDetector=n,this.DateHelper=v.r,this.ValidationError=new Error("This beneficiary has validation errors. Please check each field carefully."),this.ViewMode=m.Editable,this.changeTabIndex=new e.bkB,this.beneficiaryChange=new e.bkB}get IsValid(){if(this.inputFieldComponents)for(let n of this.inputFieldComponents)if(!n.isValid())return!1;return!0}get IsReviewMode(){return this.ViewMode==m.Review}get IsUpdateMode(){return this.ViewMode==m.Update}static#e=this.\u0275fac=function(t){return new(t||ye)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:ye,selectors:[["sipp-admin-beneficiary"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputFieldComponents=i)}},inputs:{ViewMode:"ViewMode",BeneficiaryModel:"BeneficiaryModel"},outputs:{changeTabIndex:"changeTabIndex",beneficiaryChange:"beneficiaryChange"},decls:3,vars:1,consts:[["NameInput",""],["PercentageOfFundInput",""],["NominationDateInput",""],["RelationshipInput",""],["AddressLine1Input",""],["AddressLine2Input",""],["AddressLine3Input",""],["CityInput",""],["CountyInput",""],["PostCodeInput",""],[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"stringValueChange","label","dataType","max","stringValue","required","readonly","dataTestName"],[3,"numberValueChange","label","dataType","numberValue","min","max","required","decimalPlaces","readonly","dataTestName"],[3,"label","dataType","stringValue","required","readonly","dataTestName"],[1,"col-lg-12"],[1,"text-danger"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,ao,76,72,"div",10),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.benificiaryModelInternal))},dependencies:[k._,c.bT],styles:["@media (max-width: 992px){.col-lg-12[_ngcontent-%COMP%] > .text-danger[_ngcontent-%COMP%]{margin-left:15px}}"]})}function ro(o,n){if(1&o&&(e.j41(0,"div",1),e.EFF(1),e.k0s()),2&o){const t=n.$implicit,s=n.index;e.BMQ("data-test","ValidationError"+s),e.R7$(),e.SpI("\n ","* "+t.message,"\n ")}}class U{static#e=this.\u0275fac=function(t){return new(t||U)};static#t=this.\u0275cmp=e.VBU({type:U,selectors:[["sipp-admin-error"]],inputs:{errors:"errors"},decls:3,vars:1,consts:[["class","text-danger",4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,ro,2,2,"div",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngForOf",s.errors))},dependencies:[c.Sq],encapsulation:2,changeDetection:0})}var lo=l(66351);function co(o,n){if(1&o&&(e.j41(0,"div",6),e.EFF(1,"\n "),e.j41(2,"div",7),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.BMQ("data-test","ApplicationCompleteMessage"),e.R7$(2),e.Y8G("ngClass",t.response.IsError?"text-danger":"text-success"),e.R7$(),e.JRh(t.response.Message)}}function po(o,n){if(1&o&&(e.j41(0,"div",2),e.EFF(1,"\n "),e.j41(2,"div",12),e.
1EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit;e.BMQ("data-test","SummaryValidationErrors"),e.R7$(3),e.JRh(t.Messages)}}function uo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"div",3),e.EFF(5,"\n "),e.j41(6,"span",9),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.j41(9,"span",10),e.EFF(10),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.DNE(14,po,5,2,"div",11),e.EFF(15,"\n "),e.k0s()),2&o){const t=n.$implicit,s=n.index,i=e.XpG(4);e.R7$(6),e.BMQ("data-test","SummaryDescription_"+s),e.R7$(),e.SpI("\n ",i.getResultDescription(t),"\n "),e.R7$(2),e.Y8G("ngClass",i.successfulResult(t)?"text-success":"text-danger"),e.BMQ("data-test",i.successfulResult(t)?"SummarySuccessful_"+s:"SummaryError_"+s),e.R7$(),e.SpI("\n ",i.successfulResult(t)?t.Messages:i.getResultStatus(t),"\n "),e.R7$(4),e.Y8G("ngIf",!i.successfulResult(t))}}function mo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,uo,16,6,"div",8),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("ngForOf",t.response.Responses)}}function ho(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,co,5,3,"div",5),e.EFF(3,"\n "),e.DNE(4,mo,4,1,"div",4),e.EFF(5,"\n \n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.response.Message),e.R7$(2),e.Y8G("ngIf",t.response.Responses)}}function Fo(o,n){if(1&o&&(e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"h4",3),e.EFF(5),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.DNE(8,ho,6,2,"div",4),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(5),e.JRh(t.getResponseStatus()),e.R7$(3),e.Y8G("ngIf",t.showResults())}}class H{constructor(){this.onlyShowIfError=!1}successfulResult(n){return"Success"==n.ResponseType}showResults(){return!this.onlyShowIfError||this.response.IsError}getResultStatus(n){switch(n.ResponseType){case"Success":return"Success";case"ValidationError":return"Failed Validation";case"FatalError":return"Failed to Submit";default:return""}}getResultDescription(n){let t=n.EntityType,s=-1,i=-1;t=t.replace("File",""),t=lo.M.SplitStringByUpperCaseLetters(t);let a=this.response.Responses.filter(r=>r.EntityType==n.EntityType);return s=a.indexOf(n),i=a.length,s>-1&&(t+=" "+(s+1)+" of "+i),t}getResponseStatus(){return this.areValidationErrors()?"Validation Error":this.areFatalErrors()?"Submission Error":"Submission Response"}areValidationErrors(){if(this.response.Responses)for(let n of this.response.Responses)if("ValidationError"==n.ResponseType)return!0;return!1}areFatalErrors(){if(this.response.IsError)return!0;if(this.response.Responses)for(let n of this.response.Responses)if("FatalError"==n.ResponseType)return!0;return!1}static#e=this.\u0275fac=function(t){return new(t||H)};static#t=this.\u0275cmp=e.VBU({type:H,selectors:[["sipp-admin-response-table"]],inputs:{response:"response",sippModel:"sippModel",onlyShowIfError:"onlyShowIfError"},decls:3,vars:1,consts:[["style","margin-top: 10px",4,"ngIf"],[2,"margin-top","10px"],[1,"row"],[1,"col-lg-12","center-text"],[4,"ngIf"],["class","row center-text",4,"ngIf"],[1,"row","center-text"],[1,"col-lg-12",3,"ngClass"],[4,"ngFor","ngForOf"],[2,"margin-right","5px","font-size","medium"],[3,"ngClass"],["class","row",4,"ngIf"],[1,"col-lg-12","text-danger","center-text"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Fo,10,2,"div",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.response))},dependencies:[c.YU,c.Sq,c.bT],styles:[".report-cell[_ngcontent-%COMP%]{border-width:1px;border-style:solid;border-color:#0000001a}.center-text[_ngcontent-%COMP%]{text-align:center}.right-text[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})}function fo(o,n){1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"h3"),e.EFF(3,"No beneficiaries set"),e.k0s(),e.EFF(4,"\n "),e.nrm(5,"br"),e.EFF(6,"\n "),e.k0s())}function go(o,n){1&o&&e.nrm(0,"br")}function Eo(o,n){1&o&&e.nrm(0,"span",11)}function _o(o,n){1&o&&e.nrm(0,"span",12)}function Co(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",6),e.EFF(3,"\n "),e.j41(4,"button",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.deleteBeneficiary(i.Id))}),e.EFF(5,"\n "),e.nrm(6,"span",14),e.EFF(7,"\n "),e.j41(8,"span"),e.EFF(9,"Delete Beneficiary"),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s()}if(2&o){const t=e.XpG().$implicit;e.R7$(4),e.BMQ("data-test","DeleteBeneficiaryButton"+t.Id)}}function bo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",5),e.EFF(3,"\n "),e.j41(4,"div",6),e.EFF(5,"\n "),e.j41(6,"h4"),e.EFF(7),e.DNE(8,Eo,1,0,"span",7),e.EFF(9,"\n "),e.DNE(10,_o,1,0,"span",8),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n\n "),e.j41(15,"sipp-admin-beneficiary",9),e.mxI("BeneficiaryModelChange",function(i){const a=e.eBV(t).index,r=e.XpG(3);return e.DH7(r.sippModel.beneficiaries[a],i)||(r.sippModel.beneficiaries[a]=i),e.Njj(i)}),e.k0s(),e.EFF(16,"\n\n "),e.DNE(17,Co,13,1,"div",10),e.EFF(18,"\n "),e.nrm(19,"br"),e.EFF(20,"\n "),e.k0s()}if(2&o){const t=n.$implicit,s=n.index,i=e.XpG(3);e.R7$(7),e.SpI("\n Beneficiary ",s+1,"\n "),e.R7$(),e.Y8G("ngIf",!t.IsNew),e.R7$(2),e.Y8G("ngIf",!!t.IsNew),e.R7$(5),e.R50("BeneficiaryModel",i.sippModel.beneficiaries[s]),e.Y8G("ViewMode",i.ViewMode),e.R7$(2),e.Y8G("ngIf",!i.isBeneficiaryReviewMode(t))}}function vo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,go,1,0,"br",2),e.EFF(3,"\n "),e.DNE(4,bo,21,6,"div",4),e.EFF(5,"\n "),e.k0s()),2&o){const t=e.XpG(2);
1e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode),e.R7$(2),e.Y8G("ngForOf",t.sippModel.beneficiaries)("ngForTrackBy",t.benificiaryTrackBy)}}function To(o,n){if(1&o&&(e.j41(0,"div",23),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh("Select 'Next' if no "+(0==t.sippModel.beneficiaries.length?"":"further ")+"Beneficiaries, alternatively select 'Add Beneficiary' and populate the details before selecting 'Next'.")}}function yo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"sipp-admin-error",24),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("errors",t.ValidationErrors),e.BMQ("data-test","BeneficiariesValidationErrors")}}function Io(o,n){if(1&o&&(e.j41(0,"div",25),e.EFF(1,"\n "),e.j41(2,"div",26),e.EFF(3,"Application Complete"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",27),e.EFF(6,"ML Scheme Reference"),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",28),e.EFF(9),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(9),e.JRh(t.sippModel.sippReference)}}function xo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",29),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.backButtonClicked())}),e.EFF(3,"\n "),e.nrm(4,"span",30),e.EFF(5,"\n "),e.j41(6,"span",31),e.EFF(7,"Back"),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.backButtonEnabled),e.BMQ("data-test","BeneficiariesBackButton")}}function So(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",32),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.nextButtonClicked())}),e.EFF(3,"\n "),e.j41(4,"span",33),e.EFF(5,"Next"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",34),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.IsValid()),e.BMQ("data-test","BeneficiariesNextButton")}}function ko(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.updateBeneficiaries())}),e.EFF(3,"\n "),e.j41(4,"span",33),e.EFF(5,"Update Beneficiaries"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",36),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.IsValid()),e.BMQ("data-test","BeneficiariesUpdateButton")}}function Do(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"br"),e.EFF(3,"\n "),e.nrm(4,"br"),e.EFF(5,"\n "),e.DNE(6,To,2,1,"div",15),e.EFF(7,"\n\n "),e.j41(8,"div",5),e.EFF(9,"\n "),e.j41(10,"div",16),e.EFF(11,"\n "),e.j41(12,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.addNewBeneficiary())}),e.EFF(13,"\n "),e.nrm(14,"span",18),e.EFF(15,"\n "),e.j41(16,"span"),e.EFF(17,"Add Beneficiary"),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.j41(21,"div",19),e.EFF(22,"\n "),e.DNE(23,yo,4,2,"div",2),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n\n "),e.j41(27,"div",20),e.EFF(28,"\n "),e.DNE(29,Io,11,1,"div",21),e.EFF(30,"\n "),e.j41(31,"div",22),e.EFF(32,"\n "),e.DNE(33,xo,10,2,"div",2),e.EFF(34,"\n "),e.DNE(35,So,10,2,"div",2),e.EFF(36,"\n "),e.DNE(37,ko,10,2,"div",2),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(6),e.BMQ("data-test","AddBeneficiaryButton"),e.R7$(11),e.Y8G("ngIf",!t.IsValid()),e.R7$(6),e.Y8G("ngIf",t.sippModel&&t.sippModel.sippReference),e.R7$(4),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(2),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(2),e.Y8G("ngIf",t.IsUpdateMode)}}function Ro(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,fo,7,0,"div",2),e.EFF(3,"\n\n "),e.nrm(4,"sipp-admin-response-table",3),e.EFF(5,"\n \n "),e.DNE(6,vo,6,3,"div",2),e.EFF(7,"\n\n "),e.DNE(8,Do,41,7,"div",2),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.sippModel.beneficiaries&&0==t.sippModel.beneficiaries.length),e.R7$(2),e.Y8G("onlyShowIfError",!1)("response",t.updateResponse)("sippModel",t.sippModel),e.R7$(2),e.Y8G("ngIf",t.sippModel&&t.sippModel.beneficiaries&&t.sippModel.beneficiaries.length>
10),e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode)}}class Ie{nextButtonClicked(){this.changeTabIndex.emit(1)}backButtonClicked(){this.changeTabIndex.emit(-1)}constructor(n,t){this.changeDetector=n,this.sippAdminStore=t,this.nextButtonEnabled=!1,this.backButtonEnabled=!0,this.nextId=0,this.ValidationErrors=[],this.isLoading=!1,this.changeTabIndex=new e.bkB,this.ViewMode=m.Editable}benificiaryTrackBy(n,t){return t.Id}ngOnInit(){this.IsUpdateMode&&(this.beneficiarySubscription=this.sippAdminStore.sippBeneficiaries$.pipe((0,F.p)(n=>null!=n&&n.portfolioId==this.portfolioId)).subscribe(n=>{this.error=n.error,this.sippModel.beneficiaries=n.beneficiaries,this.isLoading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.nextId=Math.max(...this.sippModel.beneficiaries.map(t=>t.Id),-1)+1}),this.updateSubscription=this.sippAdminStore.sippUpdateResponse$.pipe((0,F.p)(n=>null!=n&&n.portfolioId==this.portfolioId&&n.tab==E.Beneficiaries)).subscribe(n=>{n.IsError||n.error?(this.isLoading=!1,this.error=n.error):(this.loadBeneficiaries(),this.error=null),this.updateResponse=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.loadBeneficiaries())}updateBeneficiaries(){this.isLoading=!0,this.updateResponse=null,this.sippAdminStore.updateBeneficiaries(this.clientId,this.portfolioId,this.sippModel.beneficiaries),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}loadBeneficiaries(){this.sippModel.beneficiaries=null,this.isLoading=!0,this.sippAdminStore.getBeneficiaries(this.clientId,this.portfolioId),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}addNewBeneficiary(){let n=new Nt;n.Id=this.nextId,n.PercentageOfFund=0,n.NominationDate=new Date,n.IsNew=!0,this.sippModel.beneficiaries.push(n),this.nextId=this.nextId+1}deleteBeneficiary(n){let t=this.findIndexFromId(n);t>-1&&this.sippModel.beneficiaries.splice(t,1),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}findIndexFromId(n){let t=-1;for(let s=0;s<=this.sippModel.beneficiaries.length;s++)if(this.sippModel.beneficiaries[s].Id==n){t=s;break}return t}IsValid(){if(this.IsReviewMode)return!0;if(this.ValidationErrors=[],this.beneficaryComponents)for(let t of this.beneficaryComponents)if(!t.IsValid){this.ValidationErrors.push(new Error("One or more beneficiaries have validation issues."));break}let n=ee.ValidateBenificiaryData(this.sippModel.beneficiaries);for(let t of n)this.ValidationErrors.push(new Error(t));return 0==this.ValidationErrors.length}get IsReviewMode(){return this.ViewMode==m.Review}get IsUpdateMode(){return this.ViewMode==m.Update}getBeneficiaryViewMode(n){return this.IsUpdateMode?n.IsNew?m.Update:m.Review:this.ViewMode}isBeneficiaryReviewMode(n){return this.getBeneficiaryViewMode(n)==m.Review}static#e=this.\u0275fac=function(t){return new(t||Ie)(e.rXU(e.gRc),e.rXU(j))};static#t=this.\u0275cmp=e.VBU({type:Ie,selectors:[["sipp-admin-beneficiaries"]],viewQuery:function(t,s){if(1&t&&e.GBs(ye,5),2&t){let i;e.mGM(i=e.lsd())&&(s.beneficaryComponents=i)}},inputs:{sippModel:"sippModel",ViewMode:"ViewMode",clientId:"clientId",portfolioId:"portfolioId"},outputs:{changeTabIndex:"changeTabIndex"},decls:7,vars:4,consts:[[3,"tryAgain","error","itemName"],[3,"visible"],[4,"ngIf"],[3,"onlyShowIfError","response","sippModel"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"row"],[1,"col-lg-12"],["style","color: green","class","fa fa-check-circle","aria-hidden","true",4,"ngIf"],["style","color: darkblue","class","fa fa-plus-circle","aria-hidden","true",4,"ngIf"],[3,"BeneficiaryModelChange","BeneficiaryModel","ViewMode"],["class","row",4,"ngIf"],["aria-hidden","true",1,"fa","fa-check-circle",2,"color","green"],["aria-hidden","true",1,"fa","fa-plus-circle",2,"color","darkblue"],["title","'Delete Beneficiary'",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-trash"],["style","margin: 0 10px 10px 0",4,"ngIf"],[1,"col-lg-8"],["title","'Add Beneficiary'",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus"],[1,"col-lg-4"],[2,"display","flex","justify-content","flex-end","align-items","center"],["style","display: flex; flex-direction: column; margin-top: 20px; flex:5",4,"ngIf"],[2,"display","flex","justify-content","flex-end","flex","5","align-self","flex-end"],[2,"margin","0 10px 10px 0"],[1,"pull-right",2,"margin","0 10px 10px 0",3,"errors"],[2,"display","flex","flex-direction","column","margin-top","20px","flex","5"],[1,"text-success",2,"font-size","12px","padding-bottom","5px"],[1,"text-muted",2,"font-size","10px"],[1,"text-primary",2,"font-size","18px"],["type","button",1,"btn","btn-default",3,"click","disabled"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"],["type","button",1,"btn","btn-primary",2,"margin-left","50px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-arrow-right",2,"top","2px"],["type","button",1,"btn","btn-success",2,"margin-left","50px",3,"click","disabled"],[1,"fa","fa-refresh",2,"top","2px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"error",0),e.bIt("tryAgain",function(){return s.loadBeneficiaries()}),e.k0s(),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(
15,Ro,10,6,"div",2),e.EFF(6,"\n ")),2&t&&(e.R7$(),e.Y8G("error",s.error)("itemName","Beneficiaries"),e.R7$(2),e.Y8G("visible",s.isLoading),e.R7$(2),e.Y8G("ngIf",!s.isLoading&&!s.error))},dependencies:[C.q,S.A,c.Sq,c.bT,ye,U,H],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{margin-left:15px}}"]})}var et=l(83729);function jo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"sipp-admin-error",18),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("errors",t.ValidationErrors),e.BMQ("data-test","ContactValidationErrors")}}function wo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.nrm(4,"div",12),e.EFF(5,"\n "),e.j41(6,"div",4),e.EFF(7,"\n "),e.DNE(8,jo,4,2,"div",2),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.nrm(12,"br"),e.EFF(13,"\n "),e.j41(14,"div",3),e.EFF(15,"\n "),e.EFF(16,"\n "),e.nrm(17,"div",13),e.EFF(18,"\n \n "),e.j41(19,"div",14),e.EFF(20,"\n "),e.j41(21,"button",15),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.nextButtonClicked())}),e.EFF(22,"\n "),e.j41(23,"span",16),e.EFF(24,"Next"),e.k0s(),e.EFF(25,"\n "),e.nrm(26,"span",17),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(8),e.Y8G("ngIf",!t.isValid()),e.R7$(13),e.Y8G("disabled",!t.isValid()),e.BMQ("data-test","ContactNextButton")}}function Ao(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.j41(4,"div",4),e.EFF(5,"\n "),e.nrm(6,"input-field",5,0),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",4),e.EFF(11,"\n "),e.j41(12,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.FirstNames,i)||(a.contact.FirstNames=i),e.Njj(i)}),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",4),e.EFF(17,"\n "),e.j41(18,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.LastName,i)||(a.contact.LastName=i),e.Njj(i)}),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.j41(23,"div",3),e.EFF(24,"\n "),e.j41(25,"div",4),e.EFF(26,"\n "),e.j41(27,"input-field",7,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.Gender,i)||(a.sippModel.contact.Gender=i),e.Njj(i)})("listValuesChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.genderTypes,i)||(a.genderTypes=i),e.Njj(i)}),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n "),e.j41(31,"div",4),e.EFF(32,"\n "),e.nrm(33,"input-field",5,0),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.j41(37,"div",4),e.EFF(38,"\n "),e.j41(39,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.NationalInsuranceNumber,i)||(a.contact.NationalInsuranceNumber=i),e.Njj(i)}),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n "),e.k0s(),e.EFF(43,"\n "),e.j41(44,"div",3),e.EFF(45,"\n "),e.j41(46,"div",4),e.EFF(47,"\n "),e.j41(48,"input-field",8,0),e.mxI("dateValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.DateOfBirth,i)||(a.contact.DateOfBirth=i),e.Njj(i)}),e.k0s(),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.j41(52,"div",4),e.EFF(53,"\n "),e.nrm(54,"input-field",5,0),e.EFF(56,"\n "),e.k0s(),e.EFF(57,"\n "),e.j41(58,"div",4),e.EFF(59,"\n "),e.j41(60,"input-field",9,0),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.RetirementAge,i)||(a.sippModel.contact.RetirementAge=i),e.Njj(i)}),e.k0s(),e.EFF(62,"\n "),e.k0s(),e.EFF(63,"\n "),e.k0s(),e.EFF(64,"\n "),e.j41(65,"div",3),e.EFF(66,"\n "),e.j41(67,"div",4),e.EFF(68,"\n "),e.j41(69,"input-field",10,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.EmploymentStatus,i)||(a.sippModel.contact.EmploymentStatus=i),e.Njj(i)}),e.k0s(),e.EFF(71,"\n "),e.k0s(),e.EFF(72,"\n "),e.k0s(),e.EFF(73,"\n \n "),e.j41(74,"h4"),e.EFF(75,"Contact Details:"),e.k0s(),e.EFF(76,"\n \n "),e.j41(77,"div",3),e.EFF(78,"\n "),e.j41(79,"div",4),e.EFF(80,"\n "),e.j41(81,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.Email,i)||(a.sippModel.contact.Email=i),e.Njj(i)}),e.k0s(),e.EFF(83,"\n "),e.k0s(),e.EFF(84,"\n "),e.j41(85,"div",4),e.EFF(86,"\n "),e.j41(87,"input-field",11,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.MobilePhone,i)||(a.sippModel.contact.MobilePhone=i),e.Njj(i)}),e.k0s(),e.EFF(89,"\n "),e.k0s(),e.EFF(90,"\n "),e.k0s(),e.EFF(91,"\n "),e.j41(92,"div",3),e.EFF(93,"\n "),e.j41(94,"div",4),e.EFF(95,"\n "),e.nrm(96,"input-field",5,0),e.EFF(98,"\n "),e.k0s(),e.EFF(99,"\n "),e.j41(100,"div",4),e.EFF(101,"\n "),e.nrm(102,"input-field",5,0),e.EFF(104,"\n "),e.k0s(),e.EFF(105,"\n "),e.j41(106,"div",4),e.EFF(107,"\n "),e.nrm(108,"input-field",5,0),e.EFF(110,"\n "),e.k0s(),e.EFF(111,"\n "),e.k0s(),e.EFF(112,"\n \n "),e.j41(113,"div",3),e.EFF(114,"\n "),e.j41(115,"div",4),e.EFF(116,"\n "),e.nrm(117,"input-field",5,0),e.EFF(119,"\n "),e.k0s(),e.EFF(120,"\n "),e.j41(121,"div",4),e.EFF(122,"\n "),e.j41(123,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.contact.County,i)||(a.sippModel.contact.County=i),e.Njj(i)}),e.k0s(),e.EFF(125,"\n "),e.k0s(),e.EFF(126,"\n "),e.j41(127,"div",4),e.EFF(128,"\n "),e.nrm(129,"input-field",5,0),e.EFF(131,"\n "),e.k0s(),e.EFF(132,"\n "),e.k0s(),e.EFF(133,"\n \n "),e.nrm(134,"br"),e.EFF(135,"\n \n "),e.j41(136,"div",3),e.EFF(137,"\n "),e.j41(138,"div",12),e.
1EFF(139,"\n "),e.j41(140,"input-field",10,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.taxReliefKeySelected,i)||(a.taxReliefKeySelected=i),e.Njj(i)}),e.k0s(),e.EFF(142,"\n "),e.k0s(),e.EFF(143,"\n "),e.k0s(),e.EFF(144,"\n "),e.nrm(145,"br"),e.EFF(146,"\n \n "),e.DNE(147,wo,31,3,"div",2),e.EFF(148,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(6),e.Y8G("label","Title")("dataType","string")("max",100)("stringValue",t.contactOptionValue(t.contact.TitleId,"tfs_title"))("required",!0)("readonly",!0)("dataTestName","ContactTitle"),e.R7$(6),e.Y8G("label","First Name")("dataType","string")("max",50),e.R50("stringValue",t.contact.FirstNames),e.Y8G("required",!0)("readonly",!0)("dataTestName","ContactFirstName"),e.R7$(6),e.Y8G("label","Last Name")("dataType","string")("max",50),e.R50("stringValue",t.contact.LastName),e.Y8G("required",!0)("readonly",!0)("dataTestName","ContactLastName"),e.R7$(9),e.Y8G("label","Gender")("dataType","selectList")("max",100),e.R50("stringValue",t.sippModel.contact.Gender)("listValues",t.genderTypes),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","ContactGender"),e.R7$(6),e.Y8G("label","Nationality")("dataType","string")("max",100)("stringValue",t.contactOptionValue(t.contact.NationalityCrmGuid,"countries"))("required",!0)("readonly",!0)("dataTestName","ContactNationality"),e.R7$(6),e.Y8G("label","NI Number")("dataType","string")("max",100),e.R50("stringValue",t.contact.NationalInsuranceNumber),e.Y8G("required",!0)("readonly",!0)("dataTestName","ContactNINumber"),e.R7$(9),e.Y8G("label","Date of Birth")("dataType","date")("max",100),e.R50("dateValue",t.contact.DateOfBirth),e.Y8G("required",!0)("readonly",!0)("dataTestName","ContactDateofBirth"),e.R7$(6),e.Y8G("label","Marital Status")("dataType","string")("max",100)("stringValue",t.contactOptionValue(t.contact.MaritalStatusId,"familystatuscode"))("required",!0)("readonly",!0)("dataTestName","ContactMaritalStatus"),e.R7$(6),e.Y8G("label","Retirement Age")("dataType","number")("max",100),e.R50("numberValue",t.sippModel.contact.RetirementAge),e.Y8G("required",!1)("decimalPlaces",0)("min",0)("readonly",t.IsReviewMode)("dataTestName","ContactRetirementAge"),e.R7$(9),e.Y8G("label","Employment Status")("dataType","selectList")("max",100),e.R50("stringValue",t.sippModel.contact.EmploymentStatus),e.Y8G("listValues",t.getEmploymentTypes())("required",!1)("readonly",t.IsReviewMode)("dataTestName","ContactEmploymentStatus"),e.R7$(12),e.Y8G("label","Email")("dataType","email")("max",100),e.R50("stringValue",t.sippModel.contact.Email),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","ContactEmail"),e.R7$(6),e.Y8G("label","Telephone")("dataType","string")("max",12)("min",10),e.R50("stringValue",t.sippModel.contact.MobilePhone),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","ContactTelephone"),e.R7$(9),e.Y8G("label","Address Line 1")("dataType","string")("max",250)("stringValue",t.getPrimaryAddressDetails("Street1"))("required",!0)("readonly",!0)("dataTestName","ContactAddressLine1"),e.R7$(6),e.Y8G("label","Address Line 2")("dataType","string")("max",250)("stringValue",t.getPrimaryAddressDetails("Street2"))("required",!1)("readonly",!0)("dataTestName","ContactAddressLine2"),e.R7$(6),e.Y8G("label","Address Line 3")("dataType","string")("max",250)("stringValue",t.getPrimaryAddressDetails("Street3"))("required",!1)("readonly",!0)("dataTestName","ContactAddressLine3"),e.R7$(9),e.Y8G("label","City")("dataType","string")("max",80)("stringValue",t.getPrimaryAddressDetails("TownCity"))("required",!0)("readonly",!0)("dataTestName","ContactCity"),e.R7$(6),e.Y8G("label","County")("dataType","string")("max",50),e.R50("stringValue",t.sippModel.contact.County),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","ContactCounty"),e.R7$(6),e.Y8G("label","Post Code")("dataType","postCode")("max",100)("stringValue",t.getPrimaryAddressDetails("PostCode"))("required",!0)("readonly",!0)("dataTestName","ContactPostCo
1de"),e.R7$(11),e.Y8G("label","Tax Relief")("dataType","optionlist")("max",100),e.R50("stringValue",t.taxReliefKeySelected),e.Y8G("listValues",t.getTaxReliefOptions())("required",!0)("readonly",t.IsReviewMode)("dataTestName","ContactTaxRelief"),e.R7$(7),e.Y8G("ngIf",!t.IsReviewMode)}}class te{get taxReliefKeySelected(){return this.getTaxReliefValue(this.sippModel.contact.TaxRelief)}set taxReliefKeySelected(n){this.sippModel.contact.TaxRelief=this.getTaxReliefKey(n)}nextButtonClicked(){this.changeTabIndex.emit(1)}backButtonClicked(){this.changeTabIndex.emit(-1)}formatDate(n){return v.r.toDateString(n)}getPrimaryAddressDetails(n){return null==this.contact.PrimaryAddress?"":this.contact.PrimaryAddress[n]}getEmploymentTypes(){let n=[],t=this.contactOptions.optionSets.tfs_employmentstatus;for(let s of t)n.push(s.Value);return n}getTaxReliefOptions(){let n=[];for(let t of Te)n.push(t.value);return n}getTaxReliefValue(n){for(let t of Te)if(t.key==n)return t.value;return null}getTaxReliefKey(n){for(let t of Te)if(t.value==n)return t.key;return null}contactOptionValue(n,t){return ee.getOptionSetValue(this.contactOptions.optionSets[t],n)}isValid(){if(this.ValidationErrors=[],this.inputComponents)for(let t of this.inputComponents)if(!t.isValid())return this.ValidationErrors.push(new Error("This Contact has validation errors. Please check each field carefully.")),!1;let n=ee.ValidateContactData(this.sippModel);for(let t of n)this.ValidationErrors.push(new Error(t));return 0==this.ValidationErrors.length}constructor(n,t,s){this.changeDetector=n,this.sippAdminStore=t,this.featureSwitch=s,this.ViewMode=m.Editable,this.ValidationErrors=new Array,this.changeTabIndex=new e.bkB,this.nextButtonEnabled=!0,this.backButtonEnabled=!0,this.employmentTypes=V.e.GetEnumNames(et.Xn),this.genderTypes=V.e.GetEnumNames(et.YT),this.advisors=new Array}get IsReviewMode(){return this.ViewMode==m.Review}static#e=this.\u0275fac=function(t){return new(t||te)(e.rXU(e.gRc),e.rXU(j),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:te,selectors:[["sipp-admin-contact"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputComponents=i)}},inputs:{sippModel:"sippModel",ViewMode:"ViewMode",contactOptions:"contactOptions",contact:"contact"},outputs:{changeTabIndex:"changeTabIndex"},decls:7,vars:2,consts:[["NameInput",""],[3,"visible"],[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"label","dataType","max","stringValue","required","readonly","dataTestName"],[3,"stringValueChange","label","dataType","max","stringValue","required","readonly","dataTestName"],[3,"stringValueChange","listValuesChange","label","dataType","max","stringValue","listValues","required","readonly","dataTestName"],[3,"dateValueChange","label","dataType","max","dateValue","required","readonly","dataTestName"],[3,"numberValueChange","label","dataType","max","numberValue","required","decimalPlaces","min","readonly","dataTestName"],[3,"stringValueChange","label","dataType","max","stringValue","listValues","required","readonly","dataTestName"],[3,"stringValueChange","label","dataType","max","min","stringValue","required","readonly","dataTestName"],[1,"col-lg-8"],[1,"col-lg-11"],[1,"col-lg-1"],["type","button",1,"btn","btn-primary",2,"margin-left","20px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-arrow-right",2,"top","2px"],[1,"pull-right",2,"margin-right","10px",3,"errors"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.nrm(1,"br"),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(5,Ao,149,140,"div",2),e.EFF(6,"\n ")),2&t&&(e.R7$(3),e.Y8G("visible",!s.contact),e.R7$(2),e.Y8G("ngIf",s.contact))},dependencies:[C.q,k._,c.bT,U],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%]{margin-left:15px}}"]})}function Po(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\n "),e.j41(4,"div",20),e.EFF(5,"\n "),e.j41(6,"span",21),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.nrm(9,"div"),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.nrm(13,"br"),e.EFF(14,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(7),e.JRh(t.ValidationError.message)}}function Mo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\n "),e.j41(4,"div",16),e.EFF(5,"\n "),e.j41(6,"input-field",22,5),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.EmployerOrOtherPerson.Name,i)||(a.contributionModelInternal.EmployerOrOtherPerson.Name=i),e.Njj(i)}),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",16),e.EFF(11,"\n "),e.j41(12,"input-field",22,6),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.EmployerOrOtherPerson.Email,i)||(a.contributionModelInternal.EmployerOrOtherPerson.Email=i),e.Njj(i)}),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",16),e.EFF(17,"\n "),e.j41(18,"input-field",22,7),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.EmployerOrOtherPerson.Telephone,i)||(a.contributionModelInternal.EmployerOrOtherPerson.Telephone=i),e.Njj(i)}),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.j41(23,"div",15),e.EFF(24,"\n "),e.j41(25,"div",16),e.EFF(26,"\n "),e.j41(27,"input-field",22,8),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.Line1,i)||(a.contributionModelInternal.Address.Line1=i),e.Njj(i)}),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n "),e.j41(31,"div",16),e.EFF(32,"\n "),e.j41(33,"input-field",22,9),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.Line2,i)||(a.contributionModelInternal.Address.Line2=i),e.Njj(i)}),e.k0s(),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.j41(37,"div",16),e.EFF(38,"\n "),e.j41(39,"input-field",22,10),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.Line3,i)||(a.contributionModelInternal.Address.Line3=i),e.Njj(i)}),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n "),e.k0s(),e.EFF(43,"\n "),e.j41(44,"div",15),e.EFF(45,"\n "),e.j41(46,"div",16),e.EFF(47,"\n "),e.j41(48,"input-field",22,11),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.City,i)||(a.contributionModelInternal.Address.City=i),e.Njj(i)}),e.k0s(),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.j41(52,"div",16),e.EFF(53,"\n "),e.j41(54,"input-field",22,12),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.County,i)||(a.contributionModelInternal.Address.County=i),e.Njj(i)}),e.k0s(),e.EFF(56,"\n "),e.k0s(),e.EFF(57,"\n "),e.j41(58,"div",16),e.EFF(59,"\n "),e.j41(60,"input-field",22,13),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.contributionModelInternal.Address.PostCode,i)||(a.contributionModelInternal.Address.PostCode=i),e.Njj(i)}),e.k0s(),e.EFF(62,"\n "),e.k0s(),e.EFF(63,"\n "),e.k0s(),e.EFF(64,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("label","Employer / Other Name")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.EmployerOrOtherPerson.Name),e.Y8G("required",!0)("readonly",t.IsReviewM
1ode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_EmployerOtherName"),e.R7$(6),e.Y8G("label","Email")("dataType","email")("max",100),e.R50("stringValue",t.contributionModelInternal.EmployerOrOtherPerson.Email),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Email"),e.R7$(6),e.Y8G("label","Telephone")("dataType","telephone")("max",50),e.R50("stringValue",t.contributionModelInternal.EmployerOrOtherPerson.Telephone),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Telephone"),e.R7$(9),e.Y8G("label","Address Line 1")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.Line1),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_AddressLine1"),e.R7$(6),e.Y8G("label","Address Line 2")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.Line2),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_AddressLine2"),e.R7$(6),e.Y8G("label","Address Line 3")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.Line3),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_AddressLine3"),e.R7$(9),e.Y8G("label","City")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.City),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_City"),e.R7$(6),e.Y8G("label","County")("dataType","string")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.County),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_County"),e.R7$(6),e.Y8G("label","Post Code")("dataType","postCode")("max",100),e.R50("stringValue",t.contributionModelInternal.Address.PostCode),e.Y8G("required",!1)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_PostCode")}}function Go(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,Po,15,1,"div",14),e.EFF(3,"\n\n "),e.j41(4,"div",15),e.EFF(5,"\n "),e.j41(6,"div",16),e.EFF(7,"\n "),e.j41(8,"input-field",17,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contributionModelInternal.ContributionType,i)||(a.contributionModelInternal.ContributionType=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.j41(12,"div",16),e.EFF(13,"\n "),e.j41(14,"input-field",17,1),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contributionModelInternal.Frequency,i)||(a.contributionModelInternal.Frequency=i),e.Njj(i)}),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",16),e.EFF(19,"\n "),e.j41(20,"input-field",18,2),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contributionModelInternal.Amount,i)||(a.contributionModelInternal.Amount=i),e.Njj(i)}),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n\n "),e.j41(25,"div",15),e.EFF(26,"\n "),e.j41(27,"div",16),e.EFF(28,"\n "),e.j41(29,"input-field",19,3),e.mxI("dateValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contributionModelInternal.StartDate,i)||(a.contributionModelInternal.StartDate=i),e.Njj(i)}),e.k0s(),e.EFF(31,"\n "),e.k0s(),e.EFF(32,"\n "),e.j41(33,"div",16),e.EFF(34,"\n "),e.j41(35,"input-field",17,4),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contributionModelInternal.Status,i)||(a.contributionModelInternal.Status=i),e.Njj(i)}),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.j41(39,"div",16),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n\n "),e.DNE(43,Mo,65,63,"div",14),e.EFF(44,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",!t.IsValid),e.R7$(6),e.Y8G("label","Contribution Type")("dataType","stringbasedenum")("enumType",t.ContributionType),e.R50("stringValue",t.contributionModelInternal.ContributionType),e.Y8G("required",!0)("readonly",t.IsReviewM
1ode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Type"),e.R7$(6),e.Y8G("label","Frequency")("dataType","stringbasedenum")("enumType",t.ContributionFrequency),e.R50("stringValue",t.contributionModelInternal.Frequency),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Frequency"),e.R7$(6),e.Y8G("label","Net Amount (\xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.contributionModelInternal.Amount),e.Y8G("min",1)("required",!0)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Amount"),e.R7$(9),e.Y8G("label","Start Date")("dataType","date")("max",100),e.R50("dateValue",t.contributionModelInternal.StartDate),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_StartDate"),e.R7$(6),e.Y8G("label","Status")("dataType","stringbasedenum")("enumType",t.ContributionStatus),e.R50("stringValue",t.contributionModelInternal.Status),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Contribution_"+t.contributionModelInternal.Id+"_Status"),e.R7$(8),e.Y8G("ngIf",t.ContributionModel.ContributionType!=t.ContributionType.Personal&&t.ContributionModel.IsNew)}}class xe{set ContributionModel(n){this.dataChange.emit(n),this.contributionModelInternal=n}get ContributionModel(){return this.contributionModelInternal}constructor(n){this.changeDetector=n,this.ContributionStatus=_e,this.ContributionFrequency=Ee,this.ContributionType=q,this.EnumHelper=V.e,this.DateHelper=v.r,this.ValidationError=new Error("This contribution has validation errors. Please check each field carefully."),this.ViewMode=m.Editable,this.changeTabIndex=new e.bkB,this.dataChange=new e.bkB}get IsValid(){if(this.inputComponents)for(let n of this.inputComponents)if(!n.isValid())return!1;return!0}get IsReviewMode(){return this.ViewMode==m.Review}static#e=this.\u0275fac=function(t){return new(t||xe)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:xe,selectors:[["sipp-admin-contribution"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputComponents=i)}},inputs:{ViewMode:"ViewMode",ContributionModel:"ContributionModel"},outputs:{changeTabIndex:"changeTabIndex",dataChange:"dataChange"},decls:3,vars:1,consts:[["ContributionTypeInput",""],["FrequencyInput",""],["AmountInput",""],["StartDateInput",""],["ContributionStatusInput",""],["EmployerOrOtherNameInput",""],["EmailInput",""],["TelephoneInput",""],["AddressLine1Input",""],["AddressLine2Input",""],["AddressLine3Input",""],["CityInput",""],["CountyInput",""],["PostCodeInput",""],[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"stringValueChange","label","dataType","enumType","stringValue","required","readonly","dataTestName"],[3,"numberValueChange","label","dataType","decimalPlaces","numberValue","min","required","readonly","dataTestName"],[3,"dateValueChange","label","dataType","max","dateValue","required","readonly","dataTestName"],[1,"col-lg-12"],[1,"text-danger","text-center"],[3,"stringValueChange","label","dataType","max","stringValue","required","readonly","dataTestName"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Go,45,38,"div",14),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.contributionModelInternal))},dependencies:[k._,c.bT],styles:["@media (max-width: 992px){.col-lg-12[_ngcontent-%COMP%] > .text-danger[_ngcontent-%COMP%]{margin-left:15px}}"]})}function Vo(o,n){1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"h3"),e.EFF(3,"No contributions set"),e.k0s(),e.EFF(4,"\n "),e.nrm(5,"br"),e.EFF(6,"\n "),e.k0s())}function No(o,n){1&o&&e.nrm(0,"br")}function Bo(o,n){1&o&&e.nrm(0,"span",11)}function Yo(o,n){1&o&&e.nrm(0,"span",12)}function Xo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",6),e.EFF(3,"\n "),e.j41(4,"button",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.deleteContribution(i.Id))}),e.EFF(5,"\n "),e.nrm(6,"span",14),e.EFF(7,"\n "),e.j41(8,"span"),e.EFF(9,"Delete Contribution"),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s()}if(2&o){const t=e.XpG().$implicit;e.R7$(4),e.BMQ("data-test","DeleteContributionButton"+t.Id)}}function Oo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",5),e.EFF(3,"\n "),e.j41(4,"div",6),e.EFF(5,"\n "),e.j41(6,"h4"),e.EFF(7),e.DNE(8,Bo,1,0,"span",7),e.EFF(9,"\n "),e.DNE(10,Yo,1,0,"span",8),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n\n "),e.j41(15,"sipp-admin-contribution",9),e.mxI("ContributionModelChange",function(i){const a=e.eBV(t).index,r=e.XpG(3);return e.DH7(r.sippModel.contributions[a],i)||(r.sippModel.contributions[a]=i),e.Njj(i)}),e.k0s(),e.EFF(16,"\n\n "),e.DNE(17,Xo,13,1,"div",10),e.EFF(18,"\n "),e.nrm(19,"br"),e.EFF(20,"\n "),e.k0s()}if(2&o){const t=n.$implicit,s=n.index,i=e.XpG(3);e.R7$(7),e.SpI("\n Contribution ",s+1,"\n "),e.R7$(),e.Y8G("ngIf",!t.IsNew),e.R7$(2),e.Y8G("ngIf",!!t.IsNew),e.R7$(5),e.R50("ContributionModel",i.sippModel.contributions[s]),e.Y8G("ViewMode",i.ContributionViewMode(t)),e.R7$(2),e.Y8G("ngIf",i.ShowDeleteButton(t))}}function Lo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,No,1,0,"br",2),e.EFF(3,"\n "),e.DNE(4,Oo,21,6,"div",4),e.EFF(5,"\n "),e.k0s()),2&o){const t=e.XpG(2);
1e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode),e.R7$(2),e.Y8G("ngForOf",t.sippModel.contributions)("ngForTrackBy",t.contributionTrackBy)}}function Uo(o,n){if(1&o&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ","Select 'Next' if no "+(0==t.sippModel.contributions.length?"":"further ")+"Contributions, alternatively select 'Add Contribution' and populate the details before selecting 'Next'.","")}}function Ho(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",23),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.addNewContribution())}),e.EFF(1,"\n "),e.nrm(2,"span",24),e.EFF(3,"\n "),e.j41(4,"span"),e.EFF(5,"Add Contribution"),e.k0s(),e.EFF(6,"\n "),e.k0s()}2&o&&e.BMQ("data-test","AddContributionButton")}function Wo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"sipp-admin-error",25),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("errors",t.ValidationErrors),e.BMQ("data-test","ContributionsValidationErrors")}}function zo(o,n){if(1&o&&(e.j41(0,"div",26),e.EFF(1,"\n "),e.j41(2,"div",27),e.EFF(3,"Application\n Complete\n "),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",28),e.EFF(6,"ML Scheme Reference"),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",29),e.EFF(9),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(9),e.JRh(t.sippModel.sippReference)}}function Qo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",30),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.backButtonClicked())}),e.EFF(3,"\n "),e.nrm(4,"span",31),e.EFF(5,"\n "),e.j41(6,"span",32),e.EFF(7,"Back"),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.backButtonEnabled),e.BMQ("data-test","ContributionsBackButton")}}function Zo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",33),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.nextButtonClicked())}),e.EFF(3,"\n "),e.j41(4,"span",34),e.EFF(5,"Next"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",35),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.IsValid()),e.BMQ("data-test","ContributionsNextButton")}}function Jo(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",36),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.updateContributions())}),e.EFF(3,"\n "),e.j41(4,"span",34),e.EFF(5,"Submit Contributions"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",37),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.EnableUpdateButton()),e.BMQ("data-test","ContributionsUpdateButton")}}function Ko(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"br"),e.EFF(3,"\n "),e.nrm(4,"br"),e.EFF(5,"\n "),e.DNE(6,Uo,2,1,"div",15),e.EFF(7,"\n\n "),e.j41(8,"div",5),e.EFF(9,"\n "),e.j41(10,"div",16),e.EFF(11,"\n "),e.DNE(12,Ho,7,1,"button",17),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div",18),e.EFF(16,"\n "),e.DNE(17,Wo,4,2,"div",2),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n\n\n "),e.j41(21,"div",19),e.EFF(22,"\n "),e.DNE(23,zo,11,1,"div",20),e.EFF(24,"\n "),e.j41(25,"div",21),e.EFF(26,"\n "),e.DNE(27,Qo,10,2,"div",2),e.EFF(28,"\n "),e.DNE(29,Zo,10,2,"div",2),e.EFF(30,"\n "),e.DNE(31,Jo,10,2,"div",2),e.EFF(32,"\n "),e.k0s(),e.EFF(33,"\n "),e.k0s(),e.EFF(34,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.ShowNavigationButtons()),e.R7$(6),e.Y8G("ngIf",t.ShowAddButton()),e.R7$(5),e.Y8G("ngIf",!t.IsValid()),e.R7$(6),e.Y8G("ngIf",t.sippModel&&t.sippModel.sippReference),e.R7$(4),e.Y8G("ngIf",t.ShowNavigationButtons()),e.R7$(2),e.Y8G("ngIf",t.ShowNavigationButtons()),e.R7$(2),e.Y8G("ngIf",t.ShowUpdateButton())}}function qo(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,Vo,7,0,"div",2),e.EFF(3,"\n\n "),e.nrm(4,"sipp-admin-response-table",3),e.EFF(5,"\n\n "),e.DNE(6,Lo,6,3,"div",2),e.EFF(7,"\n\n "),e.DNE(8,Ko,35,7,"div",2),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",0==t.sippModel.contributions.length),e.R7$(2),e.Y8G("onlyShowIfError",!1)("response",t.updateResponse)("sippModel",t.sippModel),e.R7$(2),e.Y8G("ngIf",t.sippModel&&t.sippModel.contributions&&t.sippModel.contributions.length>
10),e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode)}}class Se{constructor(n,t){this.changeDetector=n,this.sippAdminStore=t,this.nextButtonEnabled=!0,this.backButtonEnabled=!0,this.nextId=0,this.ValidationErrors=[],this.isLoading=!1,this.changeTabIndex=new e.bkB,this.ViewMode=m.Editable}ngOnInit(){this.IsUpdateMode&&(this.getContributionsSubscription=this.sippAdminStore.sippGetContributions$.pipe((0,F.p)(n=>null!=n&&n.portfolioId==this.sippModel.portfolioId)).subscribe(n=>{this.error=n.error,null!=n&&null!=n.contributions&&(this.sippModel.contributions=n.contributions),this.nextId=Math.max(...this.sippModel.contributions.map(t=>t.Id),-1)+1,this.isLoading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.updateContributionsSubscription=this.sippAdminStore.sippUpdateResponse$.pipe((0,F.p)(n=>null!=n&&n.portfolioId==this.sippModel.portfolioId.toString()&&n.tab==E.Contributions)).subscribe(n=>{n.IsError||n.error?(this.isLoading=!1,this.error=n.error):(this.loadContributions(),this.error=null),this.updateResponse=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.loadContributions())}addNewContribution(){let n=new Bt;n.Id=this.nextId,n.IsNew=!0,this.sippModel.contributions.push(n),this.nextId=this.nextId+1}contributionTrackBy(n,t){return t.Id}deleteContribution(n){let t=this.findIndexFromId(n);t>-1&&this.sippModel.contributions.splice(t,1),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}updateContributions(){this.isLoading=!0,this.updateResponse=null;let n=this.GetNewContributions();this.sippAdminStore.addNewContributions(this.sippModel.clientId,this.sippModel.portfolioId,n),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}loadContributions(){this.isLoading=!0,this.sippModel.contributions=[],this.sippAdminStore.getContributions(this.sippModel.clientId,this.sippModel.portfolioId),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}findIndexFromId(n){let t=-1;for(let s=0;s<=this.sippModel.contributions.length;s++)if(this.sippModel.contributions[s].Id==n){t=s;break}return t}IsValid(){if(this.ValidationErrors=[],this.contributionComponents)for(let t of this.contributionComponents)if(!t.IsValid){this.ValidationErrors.push(new Error("One or more contributions have validation issues."));break}let n=ee.ValidateContributionData(this.sippModel.contributions);for(let t of n)this.ValidationErrors.push(t);return 0==this.ValidationErrors.length}get IsReviewMode(){return this.ViewMode==m.Review}get IsUpdateMode(){return this.ViewMode==m.Update}ShowDeleteButton(n){return!!n&&!!(this.ViewMode==m.Editable||this.ViewMode==m.Update&&n.IsNew)}ShowAddButton(){return this.ViewMode!=m.Review}ShowNavigationButtons(){return this.ViewMode!=m.Update}ShowUpdateButton(){return this.ViewMode==m.Update}EnableUpdateButton(){return!(!this.ShowUpdateButton()||!this.IsValid()||0==this.GetNewContributions().length)}ContributionViewMode(n){return!n||this.ViewMode==m.Update&&!n.IsNew?m.Review:this.ViewMode}GetNewContributions(){return this.sippModel.contributions.filter(t=>t.IsNew)}nextButtonClicked(){this.cleanUpData(),this.changeTabIndex.emit(1)}backButtonClicked(){this.changeTabIndex.emit(-1)}cleanUpData(){for(let n of this.sippModel.contributions)n.ContributionType==q.Personal&&(n.EmployerOrOtherPerson=null,n.Address=null)}static#e=this.\u0275fac=function(t){return new(t||Se)(e.rXU(e.gRc),e.rXU(j))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["sipp-admin-contributions"]],viewQuery:function(t,s){if(1&t&&e.GBs(xe,5),2&t){let i;e.mGM(i=e.lsd())&&(s.contributionComponents=i)}},inputs:{sippModel:"sippModel",ViewMode:"ViewMode"},outputs:{changeTabIndex:"changeTabIndex"},decls:7,vars:4,consts:[[3,"tryAgain","error","itemName"],[3,"visible"],[4,"ngIf"],[3,"onlyShowIfError","response","sippModel"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"row"],[1,"col-lg-12"],["style","color: green","class","fa fa-check-circle","aria-hidden","true",4,"ngIf"],["style","color: darkblue","class","fa fa-plus-circle","aria-hidden","true",4,"ngIf"],[3,"ContributionModelChange","ContributionModel","ViewMode"],["class","row",4,"ngIf"],["aria-hidden","true",1,"fa","fa-check-circle",2,"color","green"],["aria-hidden","true",1,"fa","fa-plus-circle",2,"color","darkblue"],["title","'Delete Contribution'",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-tras
1h"],["style","margin: 0 10px 10px 0",4,"ngIf"],[1,"col-lg-8"],["class","btn btn-primary","title","'Add Contribution'",3,"click",4,"ngIf"],[1,"col-lg-4"],[2,"display","flex","justify-content","flex-end","align-items","center"],["style","display: flex; flex-direction: column; margin-top: 20px; flex:5",4,"ngIf"],[2,"display","flex","justify-content","flex-end","flex","5","align-self","flex-end"],[2,"margin","0 10px 10px 0"],["title","'Add Contribution'",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus"],[1,"pull-right",2,"margin","0 10px 10px 0",3,"errors"],[2,"display","flex","flex-direction","column","margin-top","20px","flex","5"],[1,"text-success",2,"font-size","12px","padding-bottom","5px"],[1,"text-muted",2,"font-size","10px"],[1,"text-primary",2,"font-size","18px"],["type","button",1,"btn","btn-default",3,"click","disabled"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"],["type","button",1,"btn","btn-primary",2,"margin-left","50px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-arrow-right",2,"top","2px"],["type","button",1,"btn","btn-success",2,"margin-left","50px",3,"click","disabled"],[1,"fa","fa-refresh",2,"top","2px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"error",0),e.bIt("tryAgain",function(){return s.loadContributions()}),e.k0s(),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(5,qo,10,6,"div",2),e.EFF(6,"\n ")),2&t&&(e.R7$(),e.Y8G("error",s.error)("itemName","Contributions"),e.R7$(2),e.Y8G("visible",s.isLoading),e.R7$(2),e.Y8G("ngIf",!s.isLoading&&!s.error))},dependencies:[C.q,S.A,c.Sq,c.bT,xe,U,H],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{margin-left:15px}}"]})}class $o{static stringify(n){let t=[];return JSON.stringify(n,function(i,a){if("object"==typeof a){if(t.indexOf(a)>=0)return;t.push(a)}return a})}}function ea(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",9),e.EFF(5,"\n "),e.j41(6,"span",10),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.nrm(9,"div"),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.nrm(13,"br"),e.EFF(14,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(7),e.JRh(t.ValidationError.message)}}function ta(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,ea,15,1,"div",0),e.EFF(3,"\n "),e.j41(4,"div",1),e.EFF(5,"\n "),e.j41(6,"div",2),e.EFF(7,"\n "),e.j41(8,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.PolicyNumber,i)||(a.transferModel.PolicyNumber=i),e.Njj(i)}),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.j41(11,"div",2),e.EFF(12,"\n "),e.j41(13,"input-field",4),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.ProviderName,i)||(a.transferModel.ProviderName=i),e.Njj(i)}),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",2),e.EFF(17,"\n "),e.j41(18,"input-field",5),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.PensionType,i)||(a.transferModel.PensionType=i),e.Njj(i)}),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.j41(22,"div",1),e.EFF(23,"\n "),e.j41(24,"div",2),e.EFF(25,"\n "),e.j41(26,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.Line1,i)||(a.transferModel.Address.Line1=i),e.Njj(i)}),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.j41(29,"div",2),e.EFF(30,"\n "),e.j41(31,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.Line2,i)||(a.transferModel.Address.Line2=i),e.Njj(i)}),e.k0s(),e.EFF(32,"\n "),e.k0s(),e.EFF(33,"\n "),e.j41(34,"div",2),e.EFF(35,"\n "),e.j41(36,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.Line3,i)||(a.transferModel.Address.Line3=i),e.Njj(i)}),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.j41(40,"div",1),e.EFF(41,"\n "),e.j41(42,"div",2),e.EFF(43,"\n "),e.j41(44,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.City,i)||(a.transferModel.Address.City=i),e.Njj(i)}),e.k0s(),e.EFF(45,"\n "),e.k0s(),e.EFF(46,"\n "),e.j41(47,"div",2),e.EFF(48,"\n "),e.j41(49,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.County,i)||(a.transferModel.Address.County=i),e.Njj(i)}),e.k0s(),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.j41(52,"div",2),e.EFF(53,"\n "),e.j41(54,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.Address.PostCode,i)||(a.transferModel.Address.PostCode=i),e.Njj(i)}),e.k0s(),e.EFF(55,"\n "),e.k0s(),e.EFF(56,"\n "),e.k0s(),e.EFF(57,"\n \n "),e.j41(58,"div",1),e.EFF(59,"\n "),e.j41(60,"div",2),e.EFF(61,"\n "),e.j41(62,"input-field",6),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.TypeOfTransfer,i)||(a.transferModel.TypeOfTransfer=i),e.Njj(i)}),e.k0s(),e.EFF(63,"\n "),e.k0s(),e.EFF(64,"\n "),e.k0s(),e.EFF(65,"\n\n "),e.j41(66,"div",1),e.EFF(67,"\n "),e.j41(68,"div",2),e.EFF(69,"\n "),e.j41(70,"input-field",7),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.ExpectedUncrystallisedValue,i)||(a.transferModel.ExpectedUncrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(71,"\n "),e.k0s(),e.EFF(72,"\n "),e.j41(73,"div",2),e.EFF(74,"\n "),e.j41(75,"input-field",7),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.ExpectedCrystallisedValue,i)||(a.transferModel.ExpectedCrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(76,"\n "),e.k0s(),e.EFF(77,"\n "),e.j41(78,"div",2),e.EFF(79,"\n "),e.nrm(80,"input-field",8),e.EFF(81,"\n "),e.k0s(),e.EFF(82,"\n "),e.k0s(),e.EFF(83,"\n\n "),e.j41(84,"div",1),e.EFF(85,"\n "),e.j41(86,"div",2),e.EFF(87,"\n "),e.j41(88,"input-field",6),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.TransferType,i)||(a.transferModel.TransferType=i),e.Njj(i)}),e.k0s(),e.EFF(89,"\n "),e.k0s(),e.EFF(90,"\n "),e.k0s(),e.EFF(91,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",!t.IsValid),e.R7$(6),e.Y8G("label","Policy Number")("dataType","string")("max",30),e.R50("stringValue",t.transferModel.PolicyNumber),e.Y8G("required",!0)("dataTestName","Transfer_"+t.index+"_PolicyNumber")("readonly",t.IsReviewM
1ode),e.R7$(5),e.Y8G("label","Provider Name")("dataType","string"),e.R50("stringValue",t.transferModel.ProviderName),e.Y8G("max",200)("required",!0)("dataTestName","Transfer_"+t.index+"_ProviderName")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Pension Type")("dataType","stringbasedenum")("enumType",t.PensionType),e.R50("stringValue",t.transferModel.PensionType),e.Y8G("required",!0)("readonly",t.IsReviewMode)("dataTestName","Transfer_"+t.index+"_PensionType")("splitValuesByUppercaseLetters",!0),e.R7$(8),e.Y8G("label","Address Line 1")("dataType","string")("max",100),e.R50("stringValue",t.transferModel.Address.Line1),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_AddressLine1")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Address Line 2")("dataType","string")("max",100),e.R50("stringValue",t.transferModel.Address.Line2),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_AddressLine2")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Address Line 3")("dataType","string")("max",100),e.R50("stringValue",t.transferModel.Address.Line3),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_AddressLine3")("readonly",t.IsReviewMode),e.R7$(8),e.Y8G("label","City")("dataType","string")("max",100),e.R50("stringValue",t.transferModel.Address.City),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_City")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","County")("dataType","string")("max",100),e.R50("stringValue",t.transferModel.Address.County),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_County")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Post Code")("dataType","postCode")("max",10),e.R50("stringValue",t.transferModel.Address.PostCode),e.Y8G("required",!1)("dataTestName","Transfer_"+t.index+"_PostCode")("readonly",t.IsReviewMode),e.R7$(8),e.Y8G("label","Type of Transfer")("dataType","stringbasedenum")("enumType",t.TypeOfTransfer),e.R50("stringValue",t.transferModel.TypeOfTransfer),e.Y8G("required",!0)("dataTestName","Transfer_"+t.index+"_TransferType")("readonly",t.IsReviewMode)("splitValuesByUppercaseLetters",!0),e.R7$(8),e.Y8G("label","Uncrystalised Value (\xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ExpectedUncrystallisedValue),e.Y8G("min",0)("required",!0)("dataTestName","Transfer_"+t.index+"_UncrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Crystalised Value (\xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ExpectedCrystallisedValue),e.Y8G("min",0)("required",!0)("dataTestName","Transfer_"+t.index+"_CrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Total Value (\xa3)")("dataType","number")("decimalPlaces",2)("numberValue",t.transferModel.ExpectedTotalValue)("required",!0)("dataTestName","Transfer_"+t.index+"_TotalValue")("readonly",!0),e.R7$(8),e.Y8G("label","Transfer Type")("dataType","stringbasedenum")("enumType",t.TransferType),e.R50("stringValue",t.transferModel.TransferType),e.Y8G("required",!0)("dataTestName","Transfer_"+t.index+"_TransferType2")("readonly",t.IsReviewMode)("splitValuesByUppercaseLetters",!0)}}class ke{constructor(){this.PensionType=ve,this.TypeOfTransfer=Ce,this.TransferType=be,this.ViewMode=m.Editable,this.ValidationError=new Error("This transfer has validation errors. Please check each field carefully.")}get IsValid(){if(this.inputComponents)for(let n of this.inputComponents)if(!n.isValid())return!1;return!0}get IsReviewMode(){return this.ViewMode==m.Review}static#e=this.\u0275fac=function(t){return new(t||ke)};static#t=this.\u0275cmp=e.VBU({type:ke,selectors:[["sipp-admin-transfer"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputComponents=i)}},inputs:{transferModel:"transferModel",ViewMode:"ViewMode",index:"index"},decls:3,vars:1,consts:[[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"stringValueChange","label","dataType","max","stringValue","required","dataTestName","readonly"],[3,"stringValueChange","label","dataType","stringValue","max","required","dataTestName","readonly"],[3,"stringValueChange","label","dataType","enumType","stringValue","required","readonly","dataTestName","splitValuesByUppercaseLetters"],[3,"stringValueChange","label","dataType","enumType","stringValue","required","dataTestName","readonly","splitValuesByUppercaseLetters"],[3,"numberValueChange","label","dataType","decimalPlaces","numberValue","min","required","dataTestName","readonly"],[3,"label","dataType","decimalPlaces","numberValue","required","dataTestName","readonly"],[1,"col-lg-12"],[1,"text-danger"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,ta,92,104,"div",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.transferModel))},dependencies:[k._,c.bT],styles:["@media (max-width: 992px){.col-lg-12[_ngcontent-%COMP%] > .text-danger[_ngcontent-%COMP%]{margin-left:15px}}"]})}function na(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",7),e.EFF(5,"\n "),e.j41(6,"span",8),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.nrm(9,"div"),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.nrm(13,"br"),e.EFF(14,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(7),e.JRh(t.ValidationError.message)}}function ia(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"input-field",9),e.mxI("dateValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.DateRequested,i)||(a.transferModel.DateRequested=i),e.Njj(i)}),e.k0s(),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.j41(7,"div",2),e.EFF(8,"\n "),e.j41(9,"input-field",9),e.mxI("dateValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.ExpectedTransferDate,i)||(a.transferModel.ExpectedTransferDate=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("label","Date Requested")("dataType","date")("max",100),e.R50("dateValue",t.transferModel.DateRequested),e.Y8G("readonly",t.IsReviewM
1ode)("dataTestName","Transfer_"+t.index+"_DateRequested"),e.R7$(5),e.Y8G("label","Expected Transfer Date")("dataType","date")("max",100),e.R50("dateValue",t.transferModel.ExpectedTransferDate),e.Y8G("readonly",t.IsReviewMode)("dataTestName","Transfer_"+t.index+"_ExpectedTransferDate")}}function sa(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"input-field",10),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.ExpectedUncrystallisedValue,i)||(a.transferModel.ExpectedUncrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.j41(7,"div",2),e.EFF(8,"\n "),e.j41(9,"input-field",10),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.ExpectedCrystallisedValue,i)||(a.transferModel.ExpectedCrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.j41(12,"div",2),e.EFF(13,"\n "),e.nrm(14,"input-field",11),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("label","Uncrystalised Value (Expected \xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ExpectedUncrystallisedValue),e.Y8G("min",0)("dataTestName","Transfer_"+t.index+"_ExpectedUncrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Crystalised Value (Expected \xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ExpectedCrystallisedValue),e.Y8G("min",0)("dataTestName","Transfer_"+t.index+"_ExpectedCrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Total Value (Expected \xa3)")("dataType","number")("decimalPlaces",2)("numberValue",t.transferModel.ExpectedTotalValue)("dataTestName","Transfer_"+t.index+"_ExpectedTotalValue")("readonly",!0)}}function oa(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"\n "),e.j41(4,"input-field",10),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.ActualUncrystallisedValue,i)||(a.transferModel.ActualUncrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.j41(7,"div",2),e.EFF(8,"\n "),e.j41(9,"input-field",10),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.transferModel.ActualCrystallisedValue,i)||(a.transferModel.ActualCrystallisedValue=i),e.Njj(i)}),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.j41(12,"div",2),e.EFF(13,"\n "),e.nrm(14,"input-field",11),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("label","Uncrystalised Value (\xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ActualUncrystallisedValue),e.Y8G("min",0)("dataTestName","Transfer_"+t.index+"_UncrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Crystalised Value (\xa3)")("dataType","number")("decimalPlaces",2),e.R50("numberValue",t.transferModel.ActualCrystallisedValue),e.Y8G("min",0)("dataTestName","Transfer_"+t.index+"_CrystalisedValue")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Total Value (\xa3)")("dataType","number")("decimalPlaces",2)("numberValue",t.transferModel.ActualTotalValue)("dataTestName","Transfer_"+t.index+"_TotalValue")("readonly",!0)}}function aa(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,na,15,1,"div",0),e.EFF(3,"\n "),e.j41(4,"div",1),e.EFF(5,"\n "),e.j41(6,"div",2),e.EFF(7,"\n "),e.j41(8,"input-field",3),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.TransferName,i)||(a.transferModel.TransferName=i),e.Njj(i)}),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.j41(11,"div",2),e.EFF(12,"\n "),e.j41(13,"input-field",4),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.PolicyNumber,i)||(a.transferModel.PolicyNumber=i),e.Njj(i)}),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",2),e.EFF(17,"\n "),e.j41(18,"input-field",5),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.transferModel.TransferStatus,i)||(a.transferModel.TransferStatus=i),e.Njj(i)}),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n \n\n "),e.DNE(22,ia,12,12,"div",6),e.EFF(23,"\n\n "),e.DNE(24,sa,17,20,"div",6),e.EFF(25,"\n "),e.DNE(26,oa,17,20,"div",6),e.EFF(27,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",!t.IsValid),e.R7$(6),e.Y8G("label","Transfer Name")("dataType","string"),e.R50("stringValue",t.transferModel.TransferName),e.Y8G("dataTestName","Transfer_"+t.index+"_TransferName")("readonly",t.IsReviewM
1ode),e.R7$(5),e.Y8G("label","Policy Number")("dataType","string")("max",30),e.R50("stringValue",t.transferModel.PolicyNumber),e.Y8G("dataTestName","Transfer_"+t.index+"_PolicyNumber")("readonly",t.IsReviewMode),e.R7$(5),e.Y8G("label","Transfer Status")("dataType","stringbasedenum")("enumType",t.TransferStatus),e.R50("stringValue",t.transferModel.TransferStatus),e.Y8G("dataTestName","Transfer_"+t.index+"_TransferStatus")("readonly",t.IsReviewMode)("splitValuesByUppercaseLetters",!0),e.R7$(4),e.Y8G("ngIf",t.showDateFields()),e.R7$(2),e.Y8G("ngIf",t.showExpectedTransferValues()),e.R7$(2),e.Y8G("ngIf",t.showActualTransferValues())}}class tt{constructor(){this.PensionType=ve,this.TypeOfTransfer=Ce,this.TransferType=be,this.ViewMode=m.Editable,this.ValidationError=new Error("This transfer has validation errors. Please check each field carefully."),this.TransferStatus=R}get IsValid(){if(this.ViewMode==m.Review)return!0;if(this.inputComponents)for(let n of this.inputComponents)if(!n.isValid())return!1;return!0}get IsReviewMode(){return this.ViewMode==m.Review}showActualTransferValues(){switch(R[this.transferModel.TransferStatus]){case R.FundsReceived:case R.Transferring:return!0;default:return!1}}showExpectedTransferValues(){switch(R[this.transferModel.TransferStatus]){case R.FundsReceived:case R.Transferring:return!1;default:return!0}}showDateFields(){switch(R[this.transferModel.TransferStatus]){case R.FundsReceived:case R.AwaitingActionFromCedingScheme:case R.Transferring:return!0;default:return!1}}static#e=this.\u0275fac=function(t){return new(t||tt)};static#t=this.\u0275cmp=e.VBU({type:tt,selectors:[["sipp-admin-simple-transfer"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputComponents=i)}},inputs:{transferModel:"transferModel",ViewMode:"ViewMode",index:"index"},decls:3,vars:1,consts:[[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"stringValueChange","label","dataType","stringValue","dataTestName","readonly"],[3,"stringValueChange","label","dataType","max","stringValue","dataTestName","readonly"],[3,"stringValueChange","label","dataType","enumType","stringValue","dataTestName","readonly","splitValuesByUppercaseLetters"],["class","row",4,"ngIf"],[1,"col-lg-12"],[1,"text-danger"],[3,"dateValueChange","label","dataType","max","dateValue","readonly","dataTestName"],[3,"numberValueChange","label","dataType","decimalPlaces","numberValue","min","dataTestName","readonly"],[3,"label","dataType","decimalPlaces","numberValue","dataTestName","readonly"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,aa,28,22,"div",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.transferModel))},dependencies:[k._,c.bT],encapsulation:2})}function ra(o,n){1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"h3"),e.EFF(3,"No transfers set"),e.k0s(),e.EFF(4,"\n "),e.nrm(5,"br"),e.EFF(6,"\n "),e.k0s())}function la(o,n){1&o&&e.nrm(0,"br")}function ca(o,n){1&o&&e.nrm(0,"span",12)}function da(o,n){1&o&&e.nrm(0,"span",13)}function pa(o,n){if(1&o&&e.nrm(0,"sipp-admin-transfer",14),2&o){const t=e.XpG(),s=t.$implicit,i=t.index,a=e.XpG(3);e.Y8G("ViewMode",a.getTransferViewMode(s))("transferModel",s)("index",i)}}function ua(o,n){if(1&o&&e.nrm(0,"sipp-admin-simple-transfer",14),2&o){const t=e.XpG(),s=t.$implicit,i=t.index,a=e.XpG(3);e.Y8G("ViewMode",a.getTransferViewMode(s))("transferModel",s)("index",i)}}function ma(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.deleteTransfer(i.Id))}),e.EFF(1,"\n "),e.nrm(2,"span",16),e.EFF(3,"\n "),e.j41(4,"span"),e.EFF(5,"Delete Transfer"),e.k0s(),e.EFF(6,"\n "),e.k0s()}if(2&o){const t=e.XpG().index;e.BMQ("data-test","DeleteTransferButton"+t)}}function ha(o,n){if(1&o&&(e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",6),e.EFF(3,"\n "),e.j41(4,"div",7),e.EFF(5,"\n "),e.j41(6,"h4"),e.EFF(7),e.DNE(8,ca,1,0,"span",8),e.EFF(9,"\n "),e.DNE(10,da,1,0,"span",9),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n \n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.DNE(15,pa,1,3,"sipp-admin-transfer",10),e.EFF(16,"\n "),e.DNE(17,ua,1,3,"sipp-admin-simple-transfer",10),e.EFF(18,"\n "),e.j41(19,"div",6),e.EFF(20,"\n "),e.j41(21,"div",7),e.EFF(22,"\n "),e.DNE(23,ma,7,1,"button",11),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.nrm(27,"br"),e.EFF(28,"\n "),e.k0s()),2&o){const t=n.$implicit,s=n.index,i=e.XpG(3);e.Y8G("id",s),e.R7$(7),e.SpI("","Transfer "+(s+1),"\n "),e.R7$(),e.Y8G("ngIf",!t.IsNew),e.R7$(2),e.Y8G("ngIf",!!t.IsNew),e.R7$(5),e.Y8G("ngIf",!i.transferIsSimple(t)),e.R7$(2),e.Y8G("ngIf",i.transferIsSimple(t)),e.R7$(6),e.Y8G("ngIf",!i.isTransferReviewMode(t))}}function Fa(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,la,1,0,"br",2),e.EFF(3,"\n "),e.DNE(4,ha,29,7,"div",4),e.EFF(5,"\n "),e.k0s()),2&o){const t=e.XpG(2);
1e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode),e.R7$(2),e.Y8G("ngForOf",t.sippModel.transfers)("ngForTrackBy",t.transferTrackBy)}}function fa(o,n){if(1&o&&(e.j41(0,"div",25),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh("Select 'Next' if no "+(0==t.sippModel.transfers.length?"":"further ")+"Transfers, alternatively select 'Add Transfer' and populate the details before selecting 'Next'.")}}function ga(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"sipp-admin-error",26),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("errors",t.ValidationErrors),e.BMQ("data-test","TransfersValidationErrors")}}function Ea(o,n){if(1&o&&(e.j41(0,"div",27),e.EFF(1,"\n "),e.j41(2,"div",28),e.EFF(3,"Application Complete"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",29),e.EFF(6,"ML Scheme Reference"),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",30),e.EFF(9),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(9),e.JRh(t.sippModel.sippReference)}}function _a(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",31),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.backButtonClicked())}),e.EFF(3,"\n "),e.nrm(4,"span",32),e.EFF(5,"\n "),e.j41(6,"span",33),e.EFF(7,"Back"),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.backButtonEnabled),e.BMQ("data-test","TransfersBackButton")}}function Ca(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",34),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.nextButtonClicked())}),e.EFF(3,"\n "),e.j41(4,"span",35),e.EFF(5,"Next"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",36),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.isValid()),e.BMQ("data-test","TransfersNextButton")}}function ba(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",37),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.submitTransfers())}),e.EFF(3,"\n "),e.j41(4,"span",35),e.EFF(5,"Submit Transfers"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",38),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("disabled",!t.isValid()),e.BMQ("data-test","TransfersUpdateButton")}}function va(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"br"),e.EFF(3,"\n "),e.nrm(4,"br"),e.EFF(5,"\n "),e.DNE(6,fa,2,1,"div",17),e.EFF(7,"\n\n "),e.j41(8,"div",6),e.EFF(9,"\n "),e.j41(10,"div",18),e.EFF(11,"\n "),e.j41(12,"button",19),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.addTransfer())}),e.EFF(13,"\n "),e.nrm(14,"span",20),e.EFF(15,"\n "),e.j41(16,"span"),e.EFF(17,"Add Transfer"),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.j41(21,"div",21),e.EFF(22,"\n "),e.DNE(23,ga,4,2,"div",2),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n\n "),e.j41(27,"div",22),e.EFF(28,"\n "),e.DNE(29,Ea,11,1,"div",23),e.EFF(30,"\n "),e.j41(31,"div",24),e.EFF(32,"\n "),e.DNE(33,_a,10,2,"div",2),e.EFF(34,"\n "),e.DNE(35,Ca,10,2,"div",2),e.EFF(36,"\n "),e.DNE(37,ba,10,2,"div",2),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(6),e.BMQ("data-test","AddTransferButton"),e.R7$(11),e.Y8G("ngIf",!t.isValid()),e.R7$(6),e.Y8G("ngIf",t.sippModel&&t.sippModel.sippReference),e.R7$(4),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(2),e.Y8G("ngIf",!t.IsUpdateMode),e.R7$(2),e.Y8G("ngIf",t.IsUpdateMode)}}function Ta(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,ra,7,0,"div",2),e.EFF(3,"\n\n "),e.nrm(4,"sipp-admin-response-table",3),e.EFF(5,"\n\n "),e.DNE(6,Fa,6,3,"div",2),e.EFF(7,"\n\n "),e.DNE(8,va,41,7,"div",2),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.sippModel.transfers&&0==t.sippModel.transfers.length),e.R7$(2),e.Y8G("onlyShowIfError",!1)("response",t.updateResponse)("sippModel",t.sippModel),e.R7$(2),e.Y8G("ngIf",t.sippModel&&t.sippModel.transfers&&t.sippModel.transfers.length>
10),e.R7$(2),e.Y8G("ngIf",!t.IsReviewMode)}}class De{ngOnInit(){this.IsUpdateMode&&(this.transferSubscription=this.sippStore.sippTransfers$.pipe((0,F.p)(n=>null!=n&&n.portfolioId==this.portfolioId)).subscribe(n=>{this.error=n.error,this.sippModel.transfers=n.transfers,this.isLoading=!1,this.nextId=Math.max(...this.sippModel.transfers.map(t=>t.Id),-1)+1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.updateSubscription=this.sippStore.sippUpdateResponse$.pipe((0,F.p)(n=>n?.portfolioId==this.portfolioId&&n?.tab==E.Transfers)).subscribe(n=>{n.IsError||n.error?(this.isLoading=!1,this.error=n.error):(this.loadTransfers(),this.error=null),this.updateResponse=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.loadTransfers())}loadTransfers(){this.sippModel.transfers=null,this.isLoading=!0,this.sippStore.getTransfers(this.clientId,this.portfolioId),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}addTransfer(){let n=new Yt;n.IsNew=!0,n.Id=this.nextId,this.sippModel.transfers.push(n),this.nextId+=1}submitTransfers(){this.isLoading=!0;let n=this.sippModel.transfers.filter(t=>t.IsNew);this.sippStore.submitTransfers(this.clientId,this.portfolioId,n)}deleteTransfer(n){let t=this.findIndexFromId(n);t>-1&&this.sippModel.transfers.splice(t,1),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}getTransferViewMode(n){return this.IsUpdateMode?n.IsNew?m.Update:m.Review:this.ViewMode}isTransferReviewMode(n){return this.getTransferViewMode(n)==m.Review}findIndexFromId(n){let t=-1;for(let s=0;s<=this.sippModel.transfers.length;s++)if(this.sippModel.transfers[s].Id==n){t=s;break}return t}nextButtonClicked(){this.changeTabIndex.emit(1)}backButtonClicked(){this.changeTabIndex.emit(-1)}transferTrackBy(n,t){return t.Id}constructor(n,t){this.changeDetector=n,this.sippStore=t,this.nextButtonEnabled=!0,this.backButtonEnabled=!0,this.isLoading=!1,this.nextId=0,this.ValidationErrors=[],this.changeTabIndex=new e.bkB,this.ViewMode=m.Editable}isValid(){if(this.ValidationErrors=[],this.transferComponents)for(let n of this.transferComponents)if(!n.IsValid){this.ValidationErrors.push(new Error("One or more transfers have validation issues."));break}return 0==this.ValidationErrors.length}isTransferValid(n){return this.transferComponents.find(s=>s.transferModel==n)?.IsValid}transferIsSimple(n){return null!=n.TransferStatus}get IsReviewMode(){return this.ViewMode==m.Review}get IsUpdateMode(){return this.ViewMode==m.Update}static#e=this.\u0275fac=function(t){return new(t||De)(e.rXU(e.gRc),e.rXU(j))};static#t=this.\u0275cmp=e.VBU({type:De,selectors:[["sipp-admin-transfers"]],viewQuery:function(t,s){if(1&t&&e.GBs(ke,5),2&t){let i;e.mGM(i=e.lsd())&&(s.transferComponents=i)}},inputs:{sippModel:"sippModel",ViewMode:"ViewMode",clientId:"clientId",portfolioId:"portfolioId"},outputs:{changeTabIndex:"changeTabIndex"},decls:7,vars:4,consts:[[3,"tryAgain","error","itemName"],[3,"visible"],[4,"ngIf"],[3,"onlyShowIfError","response","sippModel"],[3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[3,"id"],[1,"row"],[1,"col-lg-12"],["style","color: green","class","fa fa-check-circle","aria-hidden","true",4,"ngIf"],["style","color: darkblue","class","fa fa-plus-circle","aria-hidden","true",4,"ngIf"],[3,"ViewMode","transferModel","index",4,"ngIf"],["class","btn btn-primary","title","'Delete Transfer'",3,"click",4,"ngIf"],["aria-hidden","true",1,"fa","fa-check-circle",2,"color","green"],["aria-hidden","true",1,"fa","fa-plus-circle",2,"color","darkblue"],[3,"ViewMode","transferModel","index"],["title","'Delete Transfer'",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-trash"],["style","margin: 0 10px 10px 0",4,"ngIf"],[1,"col-lg-8"],["title","Add Transfer",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus"],[1,"col-lg-4"],[2,"display","flex","justify-content","flex-end","align-items","center"],["style","display: flex; flex-direction: column; margin-top: 20px; flex:5",4,"ngIf"],[2,"display","flex","justify-content","flex-end","flex","5","align-self","flex-end"],[2,"margin","0 10px 10px 0"],[1,"pull-right",2,"margin","0 10px 10px 0",3,"errors"],[2,"display","flex","flex-direction","column","margin-top","20px","flex","5"],[1,"text-success",2,"font-size","12px","padding-bottom","5px"],[1,"text-muted",2,"font-size","10px"],[1,"text-primary",2,"font-size","18px"],["type","button",1,"btn","btn-default",3,"click","disabled"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"],["type","button",1,"btn","btn-primary",2,"margin-left","50px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-arrow-right",2,"top","2px"],["type","button",1,"btn","btn-success",2,"margin-left","50px",3,"click","disabled"],[1,"fa","fa-refresh",2,"top","2px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"error",0),e.bIt("tryAgain",function(){return s.loadTransfers()}),e.k0s(),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(
15,Ta,10,6,"div",2),e.EFF(6,"\n \n ")),2&t&&(e.R7$(),e.Y8G("error",s.error)("itemName","Transfers"),e.R7$(2),e.Y8G("visible",s.isLoading),e.R7$(2),e.Y8G("ngIf",!s.isLoading&&!s.error))},dependencies:[C.q,S.A,c.Sq,c.bT,U,ke,H,tt],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{margin-left:15px}}"]})}function ya(o,n){if(1&o&&(e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",6),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.BMQ("data-test","DocumentsSelectedIllustrationFileName"),e.R7$(),e.SpI("Selected File Name*: ",t.documentsModelInternal.IllustrationFileName,"")}}function Ia(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",4),e.EFF(3,"\n "),e.j41(4,"input-field",7,0),e.mxI("fileNameChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.documentsModelInternal.IllustrationFileName,i)||(a.documentsModelInternal.IllustrationFileName=i),e.Njj(i)})("fileDataChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.documentsModelInternal.IllustrationFileData,i)||(a.documentsModelInternal.IllustrationFileData=i),e.Njj(i)}),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("label","Please select the illustrations document")("dataType","file"),e.R50("fileName",t.documentsModelInternal.IllustrationFileName)("fileData",t.documentsModelInternal.IllustrationFileData),e.Y8G("required",!0)("readonly",!1)("allowedFileTypes",".pdf, .doc, .txt, .docx")("dataTestName","DocumentsIllustrationFileInput")}}function xa(o,n){if(1&o&&(e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",8),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.BMQ("data-test","DocumentsSelectedApplicationFormFileName"),e.R7$(),e.SpI("Application Form File Name*: ",t.documentsModelInternal.ApplicationFormFileName,"")}}function Sa(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",4),e.EFF(3,"\n "),e.j41(4,"input-field",9,1),e.mxI("fileNameChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.documentsModelInternal.ApplicationFormFileName,i)||(a.documentsModelInternal.ApplicationFormFileName=i),e.Njj(i)})("fileDataChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.documentsModelInternal.ApplicationFormFileData,i)||(a.documentsModelInternal.ApplicationFormFileData=i),e.Njj(i)}),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("label","Please select the application form document")("dataType","file"),e.R50("fileName",t.documentsModelInternal.ApplicationFormFileName)("fileData",t.documentsModelInternal.ApplicationFormFileData),e.Y8G("required",!0)("readonly",!1)("allowedFileTypes",".pdf, .doc, .txt, .docx")("dataTestName","DocumentsApplicationFileInput")}}function ka(o,n){if(1&o&&(e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"div",4),e.EFF(3,"\n "),e.nrm(4,"sipp-admin-error",10),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("errors",t.ValidationErrors),e.BMQ("data-test","DocumentsValidationErrors")}}function Da(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",3),e.EFF(1,"\n "),e.nrm(2,"div",11),e.EFF(3,"\n "),e.j41(4,"div",12),e.EFF(5,"\n "),e.j41(6,"button",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.backButtonClicked())}),e.EFF(7,"\n "),e.nrm(8,"span",14),e.EFF(9,"\n "),e.j41(10,"span",15),e.EFF(11,"Back"),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div",12),e.EFF(16,"\n "),e.j41(17,"button",16),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.nextButtonClicked())}),e.EFF(18,"\n "),e.j41(19,"span",17),e.EFF(20,"Next"),e.k0s(),e.EFF(21,"\n "),e.nrm(22,"span",18),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("disabled",!t.backButtonEnabled),e.BMQ("data-test","DocumentsBackButton"),e.R7$(11),e.Y8G("disabled",!t.IsValid()),e.BMQ("data-test","DocumentsNextButton")}}function Ra(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.j41(4,"div",4)(5,"h4"),e.EFF(6,"Illustrations Document"),e.k0s()(),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n "),e.nrm(9,"br"),e.EFF(10,"\n "),e.DNE(11,ya,5,2,"div",5),e.EFF(12,"\n\n "),e.DNE(13,Ia,8,8,"div",5),e.EFF(14,"\n "),e.nrm(15,"br"),e.EFF(16,"\n "),e.j41(17,"div",3),e.EFF(18,"\n "),e.j41(19,"div",4)(20,"h4"),e.EFF(21,"Application Form Document"),e.k0s()(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.nrm(24,"br"),e.EFF(25,"\n "),e.DNE(26,xa,5,2,"div",5),e.EFF(27,"\n\n "),e.DNE(28,Sa,8,8,"div",5),e.EFF(29,"\n\n "),e.DNE(30,ka,7,2,"div",5),e.EFF(31,"\n "),e.nrm(32,"br"),e.EFF(33,"\n\n "),e.DNE(34,Da,26,4,"div",5),e.EFF(35,"\n \n "),e.k0s()),2&o){const t=e.XpG();e.R7$(11),e.Y8G("ngIf",t.ViewMode==t.MorganLloydViewModeEnum.Review),e.R7$(2),e.Y8G("ngIf",t.ViewMode==t.MorganLloydViewModeEnum.Editable),e.R7$(13),e.Y8G("ngIf",t.ViewMode==t.MorganLloydViewModeEnum.Review),e.R7$(2),e.Y8G("ngIf",t.ViewMode==t.MorganLloydViewModeEnum.Editable),e.R7$(2),e.Y8G("ngIf",!t.IsValid()),e.R7$(4),e.Y8G("ngIf",t.ViewMode==t.MorganLloydViewModeEnum.Editable)}}class Re{constructor(n){this.changeDetector=n,this.MorganLloydViewModeEnum=m,this.ValidationError=ne
1w Error("The documents have validation errors. Please check each them carefully."),this.nextButtonEnabled=!1,this.backButtonEnabled=!0,this.ValidationErrors=[],this.ViewMode=m.Editable,this.changeTabIndex=new e.bkB,this.documentsChange=new e.bkB}ngAfterViewInit(){this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.IsValid()}set DocumentsModel(n){this.documentsChange.emit(n),this.documentsModelInternal=n}get DocumentsModel(){return this.documentsModelInternal}IsValid(){if(this.ValidationErrors=[],!this.inputFieldComponents)return this.ValidationErrors.push(new Error("One or more documents have validation issues.")),!1;if(this.inputFieldComponents)for(let n of this.inputFieldComponents)if(!n.isValid())return this.ValidationErrors.push(new Error("One or more documents have validation issues.")),!1;return!0}nextButtonClicked(){this.changeTabIndex.emit(1)}backButtonClicked(){this.changeTabIndex.emit(-1)}static#e=this.\u0275fac=function(t){return new(t||Re)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Re,selectors:[["sipp-admin-documents"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputFieldComponents=i)}},inputs:{sippModel:"sippModel",ViewMode:"ViewMode",DocumentsModel:"DocumentsModel"},outputs:{changeTabIndex:"changeTabIndex",documentsChange:"documentsChange"},decls:3,vars:1,consts:[["illustrationFileInput",""],["applicationFormFileInput",""],[4,"ngIf"],[1,"row"],[1,"col-lg-12"],["class","row",4,"ngIf"],["id","illustrationDocSelectedText",1,"col-lg-12"],["name","illustrationFileInput",3,"fileNameChange","fileDataChange","label","dataType","fileName","fileData","required","readonly","allowedFileTypes","dataTestName"],["id","applicationDocSelectedText",1,"col-lg-12"],["name","applicationFormFileInput",3,"fileNameChange","fileDataChange","label","dataType","fileName","fileData","required","readonly","allowedFileTypes","dataTestName"],[1,"pull-right",2,"margin","0 10px 10px 0",3,"errors"],[1,"col-lg-10"],[1,"col-lg-1"],["type","button",1,"btn","btn-default",3,"click","disabled"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"],["type","button",1,"btn","btn-primary",2,"margin-left","20px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-arrow-right",2,"top","2px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Ra,36,6,"div",2),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.documentsModelInternal))},dependencies:[k._,c.bT,U],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%], #illustrationDocSelectedText[_ngcontent-%COMP%], #applicationDocSelectedText[_ngcontent-%COMP%]{margin-left:15px}}"]})}function ja(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"br"),e.EFF(3,"\n "),e.j41(4,"div",5),e.EFF(5,"\n "),e.j41(6,"div",6),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",5),e.EFF(11,"\n "),e.j41(12,"div",7),e.EFF(13,"\n "),e.j41(14,"div",8),e.EFF(15,"Application\n Complete\n "),e.k0s(),e.EFF(16,"\n "),e.j41(17,"div",9),e.EFF(18,"ML Scheme Reference"),e.k0s(),e.EFF(19,"\n "),e.j41(20,"div",10),e.EFF(21),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(7),e.SpI("Your application has been submitted to Morgan Lloyd. ",t.featureStore.FeatureToggles.Wording.MorganLloydSendInstructionsMessage,""),e.R7$(14),e.JRh(t.submissionResponse.SchemeReference)}}function wa(o,n){1&o&&(e.j41(0,"div",11),e.EFF(1,"\n Please liaise with TPS about any errors with the Application Submission.\n "),e.k0s()),2&o&&e.BMQ("data-test","SummaryFatalErrors")}function Aa(o,n){1&o&&(e.j41(0,"div",11),e.EFF(1,"\n Application was not submitted because of the above validation issues. Please go back and amend the form to comply with validation.\n "),e.k0s()),2&o&&e.BMQ("data-test","SummaryValidationErrors")}function Pa(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",5),e.EFF(1,"\n "),e.EFF(2,"\n "),e.nrm(3,"div",12),e.
1EFF(4,"\n "),e.j41(5,"div",13),e.EFF(6,"\n "),e.j41(7,"button",14),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.backButtonClicked())}),e.EFF(8,"\n "),e.nrm(9,"span",15),e.EFF(10,"\n "),e.j41(11,"span",16),e.EFF(12,"Back"),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()}}class nt{constructor(n){this.featureStore=n,this.showBackButton=!1,this.changeTabIndex=new e.bkB,this.submissionFinished=new e.bkB}ngOnInit(){this.areValidationErrors()&&(this.showBackButton=!0),this.areValidationErrors()||this.submissionFinished.emit()}areValidationErrors(){for(let n of this.submissionResponse.Responses)if("ValidationError"==n.ResponseType)return!0;return!1}areFatalErrors(){for(let n of this.submissionResponse.Responses)if("FatalError"==n.ResponseType)return!0;return!1}backButtonClicked(){this.changeTabIndex.emit(-1)}static#e=this.\u0275fac=function(t){return new(t||nt)(e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:nt,selectors:[["sipp-admin-summary"]],inputs:{submissionResponse:"submissionResponse",sippModel:"sippModel"},outputs:{changeTabIndex:"changeTabIndex",submissionFinished:"submissionFinished"},decls:16,vars:6,consts:[["id","report-container"],[4,"ngIf"],[3,"response","sippModel"],["class","row text-center text-danger",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],["data-test","application-submitted-to-morganlloyd-message",1,"col-lg-12","center-text"],[2,"display","flex","flex-direction","column","margin-top","20px","flex","5","justify-content","flex-end","align-items","center"],[1,"text-success",2,"font-size","16px","padding-bottom","5px"],[1,"text-muted",2,"font-size","12px"],[1,"text-primary",2,"font-size","18px"],[1,"row","text-center","text-danger"],[1,"col-lg-11"],[1,"col-lg-1"],["type","button",1,"btn","btn-default",3,"click"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div",0),e.EFF(2,"\n "),e.DNE(3,ja,25,2,"div",1),e.EFF(4,"\n \n "),e.nrm(5,"sipp-admin-response-table",2),e.EFF(6,"\n \n "),e.nrm(7,"br"),e.EFF(8,"\n\n "),e.DNE(9,wa,2,1,"div",3),e.EFF(10,"\n \n "),e.DNE(11,Aa,2,1,"div",3),e.EFF(12,"\n\n "),e.DNE(13,Pa,16,0,"div",4),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n ")),2&t&&(e.R7$(3),e.Y8G("ngIf",s.submissionResponse.SchemeReference),e.R7$(2),e.Y8G("response",s.submissionResponse)("sippModel",s.sippModel),e.R7$(4),e.Y8G("ngIf",s.areFatalErrors()),e.R7$(2),e.Y8G("ngIf",s.areValidationErrors()),e.R7$(2),e.Y8G("ngIf",s.showBackButton))},dependencies:[c.bT,H],styles:[".schemeReferenceCell[_ngcontent-%COMP%]{border-width:1px;border-style:solid;border-color:#0000001a}.center-text[_ngcontent-%COMP%]{text-align:center}"]})}function Ma(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3,"\n "),e.j41(4,"h3",4),e.EFF(5,"Contact Details"),e.k0s(),e.EFF(6,"\n "),e.j41(7,"sipp-admin-contact",5),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n \n "),e.j41(10,"div",6),e.EFF(11,"\n "),e.nrm(12,"div",7),e.EFF(13,"\n "),e.j41(14,"h3",4),e.EFF(15,"Beneficiaries"),e.k0s(),e.EFF(16,"\n "),e.j41(17,"sipp-admin-beneficiaries",8),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n \n "),e.j41(20,"div",6),e.EFF(21,"\n "),e.nrm(22,"div",7),e.EFF(23,"\n "),e.j41(24,"h3",4),e.EFF(25,"Transfers"),e.k0s(),e.EFF(26,"\n "),e.j41(27,"sipp-admin-transfers",8),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.k0s(),e.EFF(28,"\n "),e.k0s(),e.EFF(29,"\n \n "),e.j41(30,"div",6),e.EFF(31,"\n "),e.nrm(32,"div",7),e.EFF(33,"\n "),e.j41(34,"h3",4),e.EFF(35,"Contributions"),e.k0s(),e.EFF(36,"\n "),e.j41(37,"sipp-admin-contributions",8),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n \n "),e.j41(40,"div",6),e.EFF(41,"\n "),e.nrm(42,"div",7),e.EFF(43,"\n "),e.j41(44,"h3",4),e.EFF(45,"Documents"),e.k0s(),e.EFF(46,"\n "),e.j41(47,"sipp-admin-documents",9),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)})("DocumentsModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.sippModel.documents,i)||(a.sippModel.documents=i),e.Njj(i)}),e.EFF(48,"\n "),e.k0s(),e.EFF(49,"\n "),e.k0s(),e.EFF(50,"\n\n "),e.nrm(51,"br"),e.EFF(52,"\n "),e.j41(53,"div",6),e.EFF(54,"\n "),e.nrm(55,"div",7),e.EFF(56,"\n "),e.j41(57,"h4",4),e.EFF(58,"Summary"),e.k0s(),e.EFF(59,"\n "),e.j41(60,"div",10),e.EFF(61,"\n You are submitting the following:\n "),e.k0s(),e.EFF(62,"\n "),e.k0s(),e.EFF(63,"\n "),e.j41(64,"div",6),e.EFF(65,"\n "),e.j41(66,"div",10),e.EFF(67),e.k0s(),e.EFF(68,"\n "),e.k0s(),e.EFF(69,"\n "),e.j41(70,"div",6),e.EFF(71,"\n "),e.j41(72,"div",10),e.EFF(73),e.k0s(),e.EFF(74,"\n "),e.k0s(),e.EFF(75,"\n "),e.j41(76,"div",6),e.EFF(77,"\n "),e.j41(78,"div",10),e.EFF(79),e.k0s(),e.EFF(80,"\n "),e.k0s(),e.EFF(81,"\n "),e.j41(82,"div",6),e.EFF(83,"\n "),e.j41(84,"div",10),e.EFF(85),e.k0s(),e.EFF(86,"\n "),e.k0s(),e.EFF(87,"\n "),e.j41(88,"div",6),e.EFF(89,"\n "),e.j41(90,"div",10),e.EFF(91,"\n 1x Illustration\n "),e.k0s(),e.EFF(92,"\n "),e.k0s(),e.EFF(93,"\n "),e.j41(94,"div",6),e.EFF(95,"\n "),e.j41(96,"div",10),e.EFF(97,"\n 1x Application Form\n "),e.k0s(),e.EFF(98,"\n "),e.k0s(),e.EFF(99,"\n "),e.nrm(100,"br"),e.EFF(101,"\n "),e.j41(102,"div"),e.EFF(103,'\n By clicking "Submit" I confirm that the above requests are correct and complete\n '),e.k0s(),e.EFF(104,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(7),e.R50("sippModel",t.sippModel),e.Y8G("contact",t.contact)("contactOptions",t.contactOptions)("ViewMode",t.ViewModes.Review),e.R7$(10),e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.ViewModes.Review),e.R7$(10),e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.ViewModes.Review),e.R7$(10),e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.ViewModes.Review),e.R7$(10),e.R50("sippModel",t.sippModel)("DocumentsModel",t.sippModel.documents),e.Y8G("ViewMode",t.ViewModes.Review),e.R7$(20),e.SpI("\n 1x ",t.featureStore.FeatureToggles.Wording.MorganLloydSippName,"\n "),e.R7$(6),e.SpI("\n ",t.sippModel.beneficiaries.length+"x "+(1!=t.sippModel.beneficiaries.length?"Beneficiaries":"Beneficiary"),"\n "),e.R7$(6),e.SpI("\n ",t.sippModel.transfers.length+"x "+(1!=t.sippModel.transfers.length?"Transfers":"Transfer"),"\n "),e.R7$(6),e.SpI("\n ",t.sippModel.contributions.length+"x "+(1!=t.sippModel.contributions.length?"Contributions":"Contribution"),"\n ")}}function Ga(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"sipp-admin-summary",11),e.bIt("changeTabIndex",function(){e.eBV(t);const i=e.XpG();
1return e.Njj(i.changeTabIndex.emit(-1))})("submissionFinished",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submissionFinished.emit())}),e.k0s(),e.EFF(3,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("submissionResponse",t.SubmissionResponse)("sippModel",t.sippModel)}}function Va(o,n){1&o&&(e.j41(0,"div",12),e.EFF(1," \n The server has errored or is unreachable. Please do not resubmit this application, contact TPS for support.\n "),e.k0s())}function Na(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",6),e.EFF(1,"\n "),e.EFF(2,"\n "),e.nrm(3,"div",13),e.EFF(4,"\n "),e.j41(5,"div",14),e.EFF(6,"\n "),e.j41(7,"button",15),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.backButtonClicked())}),e.EFF(8,"\n "),e.nrm(9,"span",16),e.EFF(10,"\n "),e.j41(11,"span",17),e.EFF(12,"Back"),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",14),e.EFF(17,"\n "),e.j41(18,"button",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.nextButtonClicked())}),e.EFF(19,"\n "),e.j41(20,"span",19),e.EFF(21,"Submit"),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s(),e.EFF(24,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(7),e.Y8G("disabled",!t.backButtonEnabled),e.BMQ("data-test","ReviewBackButton"),e.R7$(11),e.Y8G("disabled",!t.nextButtonEnabled),e.BMQ("data-test","ReviewSubmitButton")}}class it{constructor(n,t,s){this.changeDetector=n,this.store=t,this.featureStore=s,this.JsonHelper=$o,this.nextButtonEnabled=!0,this.backButtonEnabled=!0,this.changeTabIndex=new e.bkB,this.submissionFinished=new e.bkB,this.error=null,this.IsLoading=!1,this.ViewModes=m,this.MorganLloydViewModeEnum=m}nextButtonClicked(){this.changeTabIndex.emit(1),this.IsLoading=!0,this.sendSippOnboarding()}backButtonClicked(){this.changeTabIndex.emit(-1)}ngOnInit(){this.error=null,this.setupSubscription()}setupSubscription(){this.onboardingSubscription=this.store.sippOnboarding$.subscribe(n=>{n.error?this.error=n.error:(this.error=null,this.SubmissionResponse=n),this.IsLoading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}sendSippOnboarding(){this.store.sendSippOnboarding(this.sippModel),this.IsLoading=!0}ngOnDestroy(){this.onboardingSubscription.unsubscribe()}SucessfullSubmission(){return!(!this.SubmissionResponse||null==this.SubmissionResponse||null!=this.SubmissionResponse.error)}static#e=this.\u0275fac=function(t){return new(t||it)(e.rXU(e.gRc),e.rXU(j),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:it,selectors:[["sipp-admin-review"]],inputs:{sippModel:"sippModel",contact:"contact",contactOptions:"contactOptions"},outputs:{changeTabIndex:"changeTabIndex",submissionFinished:"submissionFinished"},decls:12,vars:6,consts:[[4,"ngIf"],[3,"visible","caption"],["class","text-danger",4,"ngIf"],["class","row",4,"ngIf"],[2,"text-align","center"],[3,"sippModelChange","sippModel","contact","contactOptions","ViewMode"],[1,"row"],[2,"padding","10px 0 0 0","border-bottom","1px rgba(0, 0, 0, 0.1) dashed"],[1,"col-lg-12",3,"sippModelChange","sippModel","ViewMode"],[1,"col-lg-12",3,"sippModelChange","DocumentsModelChange","sippModel","DocumentsModel","ViewMode"],[1,"col-lg-12"],[3,"changeTabIndex","submissionFinished","submissionResponse","sippModel"],[1,"text-danger"],[1,"col-lg-10"],[1,"col-lg-1"],["type","button",1,"btn","btn-default",3,"click","disabled"],[1,"fa","fa-arrow-left",2,"top","2px"],[2,"margin-left","5px"],["type","button",1,"btn","btn-primary",2,"margin-left","20px",3,"click","disabled"],[2,"margin-right","5px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Ma,105,17,"div",0),e.EFF(2,"\n \n \n "),e.EFF(3," \n "),e.nrm(4,"loading",1),e.EFF(5,"\n "),e.DNE(6,Ga,4,2,"div",0),e.EFF(7,"\n "),e.DNE(8,Va,2,0,"div",2),e.EFF(9,"\n \n \n "),e.DNE(10,Na,25,4,"div",3),e.EFF(11,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",!s.SubmissionResponse&&!s.error&&!s.IsLoading),e.R7$(3),e.Y8G("visible",s.IsLoading)("caption","Your application is currently being submitted, this will take at least one minute. Please do not refresh or navigate away from this screen."),e.R7$(2),e.Y8G("ngIf",s.SucessfullSubmission()),e.R7$(2),e.Y8G("ngIf",s.error),e.R7$(2),e.Y8G("ngIf",!s.SubmissionResponse&&!s.error&&!s.IsLoading))},dependencies:[C.q,c.bT,Ie,te,Se,De,Re,nt],changeDetection:0})}function Ba(o,n){if(1&o){const t=e.RV6();e.j41(0,"li"),e.EFF(1,"\n "),e.j41(2,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.tabClick(i.tabEnums.Home))}),e.nrm(3,"span",5),e.k0s(),e.EFF(4,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",t.styleTab(t.tabEnums.Home)),e.BMQ("data-test","HomeTab")}}function Ya(o,n){if(1&o){const t=e.RV6();e.j41(0,"li"),e.EFF(1,"\n "),e.j41(2,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.tabClick(i.tabEnums.Documents))}),e.EFF(3,"Documents"),e.k0s(),e.EFF(4,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",t.styleTab(t.tabEnums.Documents)),e.BMQ("data-test","DocumentsTab")}}function Xa(o,n){if(1&o){const t=e.RV6();e.j41(0,"li"),e.EFF(1,"\n "),e.j41(2,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.tabClick(i.tabEnums.Review))}),e.EFF(3,"Review"),e.k0s(),e.EFF(4,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",t.styleTab(t.tabEnums.Review)),e.BMQ("data-test","ReviewTab")}}function Oa(o,n){if(1&o){const t=e.RV6();e.j41(0,"ul",2),e.EFF(1,"\n\n "),e.DNE(2,Ba,5,2,"li",3),e.EFF(3,"\n \n "),e.j41(4,"li"),e.EFF(5,"\n "),e.j41(6,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.tabClick(i.tabEnums.Contact))}),e.EFF(7,"Contact"),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n\n "),e.j41(10,"li"),e.EFF(11,"\n "),e.j41(12,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.tabClick(i.tabEnums.Beneficiaries))}),e.EFF(13,"Beneficiaries"),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n\n "),e.j41(16,"li"),e.EFF(17,"\n "),e.j41(18,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.tabClick(i.tabEnums.Transfers))}),e.EFF(19,"Transfers"),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n\n "),e.j41(22,"li"),e.EFF(23,"\n "),e.j41(24,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.tabClick(i.tabEnums.Contributions))}),e.EFF(25,"Contributions"),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n\n "),e.DNE(28,Ya,5,2,"li",3),e.EFF(29,"\n\n "),e.DNE(30,Xa,5,2,"li",3),e.EFF(31,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.updateMode),e.R7$(4),e.Y8G("ngClass",t.styleTab(t.tabEnums.Contact)),e.BMQ("data-test","ContactTab"),e.R7$(6),e.Y8G("ngClass",t.styleTab(t.tabEnums.Beneficiaries)),e.BMQ("data-test","BeneficiariesTab"),e.R7$(6),e.Y8G("ngClass",t.styleTab(t.tabEnums.Transfers)),e.BMQ("data-test","TransfersTab"),e.R7$(6),e.Y8G("ngClass",t.styleTab(t.tabEnums.Contributions)),e.BMQ("data-test","ContributionsTab"),e.R7$(4),e.Y8G("ngIf",!t.updateMode),e.R7$(2),e.Y8G("ngIf",!t.updateMode)}}function La(o,n){if(1&o&&(e.j41(0,"option",9),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("value",t),e.R7$(),e.SpI("\n ",t,"\n ")}}function Ua(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",6),e.EFF(1,"\n "),e.j41(2,"p"),e.EFF(3,"Current Page"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"select",7),e.bIt("change",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.tabSelect(i))}),e.EFF(6,"\n "),e.DNE(7,La,2,2,"option",8),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(5),e.Mz_("id","MLSelectPageList-",t.selectedPortId,""),e.R7$(2),e.Y8G("ngForOf",t.activeTabEnumsList)}}class st{onResize(){this.changeDetector.detectChanges(),this.updateSelectOption(this.tabEnums[this.activeTab])}get isMediumScreenOrAbove(){return an.OH.isMediumScreenOrAbove()}ngOnInit(){this.getTabsToDisplay()}ngOnChanges(){this.updateSelectOption(this.tabEnums[this.activeTab])}getDefaultActiveTab(){this.activeTab!==E.Contact&&this.updateMode?(this.activeTab=E.C
1ontact,this.updateSelectOption(this.tabEnums[this.activeTab])):this.activeTab!==E.Home&&!this.updateMode&&(this.activeTab=E.Home,this.updateSelectOption(this.tabEnums[this.activeTab]))}styleTab(n){let t="";return this.activeTab==n?t+="currentstep":(n<this.activeTab&&!this.updateMode||this.updateMode&&this.featureSwitch.FeatureToggles.MorganLloydEditing)&&(t+="hoverable"),t}tabClick(n){(n<this.activeTab&&!this.updateMode||this.updateMode&&this.featureSwitch.FeatureToggles.MorganLloydEditing)&&(this.activeTab=n,this.changeTab.emit(n))}getTabsToDisplay(){this.activeTabEnumsList=Object.keys(this.tabEnums).filter((n,t)=>void 0!==this.tabEnums[t]).map((n,t)=>this.tabEnums[t]),this.updateMode?this.activeTabEnumsList.splice(this.tabEnums.Documents,2):this.activeTabEnumsList.splice(this.tabEnums.Home,1)}tabSelect(n){let t=+this.tabEnums[n.target.value];this.tabClick(t),this.activeTab!==t&&this.updateSelectOption(this.tabEnums[this.activeTab])}updateSelectOption(n){let t=document.getElementById("MLSelectPageList-"+this.selectedPortId);t&&(t.value=n)}constructor(n,t){this.changeDetector=n,this.featureSwitch=t,this.activeTab=0,this.updateMode=!1,this.changeTab=new e.bkB,this.tabEnums=E,this.previousPortId=null}static#e=this.\u0275fac=function(t){return new(t||st)(e.rXU(e.gRc),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:st,selectors:[["sipp-admin-breadcrumbs"]],hostBindings:function(t,s){1&t&&e.bIt("resize",function(a){return s.onResize(a)},!1,e.tSv)},inputs:{activeTab:"activeTab",updateMode:"updateMode",selectedPortId:"selectedPortId"},outputs:{changeTab:"changeTab"},features:[e.OA$],decls:5,vars:2,consts:[["id","breadcrumb","class","justified",4,"ngIf"],["class","col-lg-4",4,"ngIf"],["id","breadcrumb",1,"justified"],[4,"ngIf"],[3,"click","ngClass"],[1,"glyphicon","glyphicon-home"],[1,"col-lg-4"],[1,"form-control",3,"change","id"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,s){1&t&&(e.EFF(0,"\n \n "),e.DNE(1,Oa,32,11,"ul",0),e.EFF(2,"\n \n "),e.DNE(3,
1Ua,10,3,"div",1),e.EFF(4,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.isMediumScreenOrAbove),e.R7$(2),e.Y8G("ngIf",!s.isMediumScreenOrAbove))},dependencies:[c.YU,c.Sq,c.bT,p.xH,p.y7],styles:['#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;display:block;background:#606060;text-decoration:none;position:relative;height:30px;line-height:30px;padding:0 38px 0 30px;text-align:center;margin-right:23px}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child a[_ngcontent-%COMP%]{border-radius:4px 0 0 4px}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child a[_ngcontent-%COMP%]:before{border:none}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border-radius:0 4px 4px 0;margin-right:0}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]:after{border:none}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, #breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;border:0 solid #606060FF;border-width:15px 10px;width:0;height:0}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{left:-20px;border-left-color:transparent}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{left:100%;border-color:transparent;border-left-color:#606060}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.currentstep[_ngcontent-%COMP%]{background-color:#052d68;color:#fff}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.currentstep[_ngcontent-%COMP%]:before{border-color:#052d68;border-left-color:transparent}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.currentstep[_ngcontent-%COMP%]:after{border-left-color:#052d68}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.hoverable[_ngcontent-%COMP%]:hover{cursor:pointer;background:#7a7a7a}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.hoverable[_ngcontent-%COMP%]:hover:before{border-color:#7a7a7a;border-left-color:transparent}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.hoverable[_ngcontent-%COMP%]:hover:after{border-left-color:#7a7a7a}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.success[_ngcontent-%COMP%]{background-color:#5cb85c;color:#fff}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.success[_ngcontent-%COMP%]:before{border-color:#5cb85c;border-left-color:transparent}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.success[_ngcontent-%COMP%]:after{border-left-color:#5cb85c}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.failure[_ngcontent-%COMP%]{background-color:#d9534f;color:#fff}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.failure[_ngcontent-%COMP%]:before{border-color:#d9534f;border-left-color:transparent}#breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.failure[_ngcontent-%COMP%]:after{border-left-color:#d9534f}ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.justified[_ngcontent-%COMP%]{display:flex;justify-content:center}']})}var Ha=l(3305);function Wa(o,n){if(1&o&&(e.j41(0,"div",6),e.EFF(1,"\n "),e.j41(2,"div",7),e.EFF(3,"Application Complete"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",8),e.EFF(6,"ML Scheme Reference"),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",9),e.EFF(9),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(9),e.JRh(t.sippModel.sippReference)}}function za(o,n){1&o&&e.nrm(0,"loading",10)}function Qa(o,n){if(1&o&&(e.j41(0,"div",11),e.EFF(1,"\n "),e.j41(2,"div",12),e.EFF(3,"\n "),e.j41(4,"div",13),e.EFF(5,"Crystallised Amount (\xa3)"),e.k0s(),e.EFF(6,"\n "),e.j41(7,"div",9),e.EFF(8),e.nI1(9,"numericvalueformatter"),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.j41(12,"div",12),e.EFF(13,"\n "),e.j41(14,"div",13),e.EFF(15,"Uncrystallised Amount (\xa3)"),e.k0s(),e.EFF(16,"\n "),e.j41(17,"div",9),e.EFF(18),e.nI1(19,"numericvalueformatter"),e.k0s(),e.EFF(20,"\n\n "),e.k0s(),e.EFF(21,"\n "),e.j41(22,"div",12),e.
1EFF(23,"\n "),e.j41(24,"div",13),e.EFF(25,"Total Amount (\xa3)"),e.k0s(),e.EFF(26,"\n "),e.j41(27,"div",9),e.EFF(28),e.nI1(29,"numericvalueformatter"),e.k0s(),e.EFF(30,"\n "),e.k0s(),e.EFF(31,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(8),e.JRh(e.bMT(9,3,t.schemeResponse.CrystallisedValue)),e.R7$(10),e.JRh(e.bMT(19,5,t.schemeResponse.UncrystallisedValue)),e.R7$(10),e.JRh(e.bMT(29,7,t.schemeResponse.TotalValue))}}class ot{constructor(n,t,s){this.changeDetector=n,this.sippStore=t,this.featureSwitch=s,this.isLoading=!1}ngOnInit(){this.featureSwitch.FeatureToggles.MorganLloydEditing&&(this.schemeSubscription=this.sippStore.sippPortfolioValue$.pipe((0,F.p)(n=>null!=n&&n.PortfolioId==this.portfolioId)).subscribe(n=>{n.error?(this.error=n.error,this.schemeResponse=null):(this.error=null,this.schemeResponse=n),this.isLoading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.loadScheme())}loadScheme(){this.sippStore.getSippValue(this.clientId,this.portfolioId),this.isLoading=!0}static#e=this.\u0275fac=function(t){return new(t||ot)(e.rXU(e.gRc),e.rXU(j),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:ot,selectors:[["sipp-admin-home"]],inputs:{sippModel:"sippModel",clientId:"clientId",portfolioId:"portfolioId"},decls:15,vars:5,consts:[[2,"padding-top","20px"],[3,"tryAgain","error","itemName"],[2,"display","flex"],["style","display: flex; flex-direction: column; flex:1",4,"ngIf"],["style","flex: 5",4,"ngIf"],["style","display: flex; justify-content: space-evenly; flex:5; align-items: center",4,"ngIf"],[2,"display","flex","flex-direction","column","flex","1"],[1,"text-success",2,"font-size","12px","padding-bottom","5px"],[1,"text-muted",2,"font-size","10px"],[1,"text-primary",2,"font-size","18px"],[2,"flex","5"],[2,"display","flex","justify-content","space-evenly","flex","5","align-items","center"],[2,"display","flex","flex-direction","column","flex","3","align-items","center"],[1,"text-muted",2,"font-size","12px"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div",0),e.EFF(2,"\n "),e.j41(3,"error",1),e.bIt("tryAgain",function(){return s.loadScheme()}),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",2),e.EFF(6,"\n "),e.DNE(7,Wa,11,1,"div",3),e.EFF(8,"\n "),e.DNE(9,za,1,0,"loading",4),e.EFF(10,"\n "),e.DNE(11,Qa,32,9,"div",5),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n \n ")),2&t&&(e.R7$(3),e.Y8G("error",s.error)("itemName","SIPP Details"),e.R7$(4),e.Y8G("ngIf",s.sippModel&&s.sippModel.sippReference),e.R7$(2),e.Y8G("ngIf",s.isLoading),e.R7$(2),e.Y8G("ngIf",!s.error&&null!=s.schemeResponse))},dependencies:[C.q,S.A,c.bT,Ha.c],encapsulation:2})}function Za(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.j41(4,"div",4),e.EFF(5,"\n "),e.nrm(6,"input-field",5,0),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",4),e.EFF(11,"\n "),e.j41(12,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.FirstName,i)||(a.contact.FirstName=i),e.Njj(i)}),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"div",4),e.EFF(17,"\n "),e.j41(18,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.LastName,i)||(a.contact.LastName=i),e.Njj(i)}),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.j41(23,"div",3),e.EFF(24,"\n "),e.j41(25,"div",4),e.EFF(26,"\n "),e.j41(27,"input-field",7,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.Gender,i)||(a.contact.Gender=i),e.Njj(i)})("listValuesChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.genderTypes,i)||(a.genderTypes=i),e.Njj(i)}),e.k0s(),e.EFF(29,"\n "),e.k0s(),e.EFF(30,"\n "),e.j41(31,"div",4),e.EFF(32,"\n "),e.nrm(33,"input-field",5,0),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.j41(37,"div",4),e.EFF(38,"\n "),e.j41(39,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.NationalInsuranceNumber,i)||(a.contact.NationalInsuranceNumber=i),e.Njj(i)}),e.k0s(),e.EFF(41,"\n "),e.k0s(),e.EFF(42,"\n "),e.k0s(),e.EFF(43,"\n "),e.j41(44,"div",3),e.EFF(45,"\n "),e.j41(46,"div",4),e.EFF(47,"\n "),e.j41(48,"input-field",8,0),e.mxI("dateValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.DateOfBirth,i)||(a.contact.DateOfBirth=i),e.Njj(i)}),e.k0s(),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.j41(52,"div",4),e.EFF(53,"\n "),e.nrm(54,"input-field",5,0),e.EFF(56,"\n "),e.k0s(),e.EFF(57,"\n "),e.j41(58,"div",4),e.EFF(59,"\n "),e.j41(60,"input-field",9,0),e.mxI("numberValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.RetirementAge,i)||(a.contact.RetirementAge=i),e.Njj(i)}),e.k0s(),e.EFF(62,"\n "),e.k0s(),e.EFF(63,"\n "),e.k0s(),e.EFF(64,"\n "),e.j41(65,"div",3),e.EFF(66,"\n "),e.j41(67,"div",4),e.EFF(68,"\n "),e.j41(69,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.EmploymentStatus,i)||(a.contact.EmploymentStatus=i),e.Njj(i)}),e.k0s(),e.EFF(71,"\n "),e.k0s(),e.EFF(72,"\n "),e.k0s(),e.EFF(73,"\n \n "),e.j41(74,"h4"),e.EFF(75,"Contact Details:"),e.k0s(),e.EFF(76,"\n \n "),e.j41(77,"div",3),e.EFF(78,"\n "),e.j41(79,"div",4),e.EFF(80,"\n "),e.j41(81,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.EmailAddress,i)||(a.contact.EmailAddress=i),e.Njj(i)}),e.k0s(),e.EFF(83,"\n "),e.k0s(),e.EFF(84,"\n "),e.j41(85,"div",4),e.EFF(86,"\n "),e.j41(87,"input-field",10,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.Telephone,i)||(a.contact.Telephone=i),e.Njj(i)}),e.k0s(),e.EFF(89,"\n "),e.k0s(),e.EFF(90,"\n "),e.k0s(),e.EFF(91,"\n "),e.j41(92,"div",3),e.EFF(93,"\n "),e.j41(94,"div",4),e.EFF(95,"\n "),e.nrm(96,"input-field",5,0),e.EFF(98,"\n "),e.k0s(),e.EFF(99,"\n "),e.j41(100,"div",4),e.EFF(101,"\n "),e.nrm(102,"input-field",5,0),e.EFF(104,"\n "),e.k0s(),e.EFF(105,"\n "),e.j41(106,"div",4),e.EFF(107,"\n "),e.nrm(108,"input-field",5,0),e.EFF(110,"\n "),e.k0s(),e.EFF(111,"\n "),e.k0s(),e.EFF(112,"\n \n "),e.j41(113,"div",3),e.EFF(114,"\n "),e.j41(115,"div",4),e.EFF(116,"\n "),e.nrm(117,"input-field",5,0),e.EFF(119,"\n "),e.k0s(),e.EFF(120,"\n "),e.j41(121,"div",4),e.EFF(122,"\n "),e.j41(123,"input-field",6,0),e.mxI("stringValueChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.contact.County,i)||(a.contact.County=i),e.Njj(i)}),e.k0s(),e.EFF(125,"\n "),e.k0s(),e.EFF(126,"\n "),e.j41(127,"div",4),e.EFF(128,"\n "),e.nrm(129,"input-field",5,0),e.EFF(131,"\n "),e.k0s(),e.EFF(132,"\n "),e.k0s(),e.EFF(133,"\n\n "),e.j41(134,"div",3),e.EFF(135,"\n "),e.j41(136,"div",11),e.EFF(137,"\n "),e.nrm(138,"input-field",12,0),e.EFF(140,"\n "),e.k0s(),e.EFF(141,"\n "),e.k0s(),e.EFF(142,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(6),e.Y8G("label","Title")("dataType","string")("max",100)("stringValue",t.contact.Title)("readonly",!0)("dataTestName","ContactTitle"),e.R7$(6),e.Y8G("label","First Name")("dataType","string")("max",50),e.R50("stringValue",t.contact.FirstName),e.Y8G("readonly",!0)("dataTestName","ContactFirstName"),e.R7$(6),e.Y8G("label","Last Name")("dataType","string")("max",50),e.R50("stringValue",t.contact.LastName),e.Y8G("readonly",!0)("dataTestName","ContactLastName"),e.R7$(9),e.Y8G("label","Gender")("dataType","selectList")("max",100),e.R50("stringValue",t.contact.Gender)("listValues",t.genderTypes),e.Y8G("readonly",!0)("dataTestName","ContactGender"),e.R7$(6),e.Y8G("label","Nationality")("dataType","string")("max",100)("stringValue",t.contact.Nationality)("readonly",!0)("dataTestName","ContactNationality"),e.R7$(6),e.Y8G("label","NI Number")("dataType","string")("max",100),e.R50("stringValue",t.contact.NationalInsuranceNumber),e.Y8G("readonly",!0)("dataTestName","ContactNINumber"),e.R7$(9),e.Y8G("label","Date of Birth")("dataType","date")("max",100),e.R50("dateValue",t.contact.DateOfBirth),e.Y8G("readonly",!0)("dataTestName","ContactDateofBirth"),e.R7$(6),e.Y8G("label","Marital Status")("dataType","string")("max",100)("stringValue",t.contact.FamilyStatus)("readonly",!0)("dataTestName","ContactMaritalStatus"),e.R7$(6),e.Y8G("label","Retirement Age")("dataType","number")("max",100),e.R50("numberValue",t.contact.RetirementAge),e.Y8G("decimalPlaces",0)("min",0)("readonly",!0)("dataTestName","ContactRetirementAge"),e.R7$(9),e.Y8G("label","Employment Status")("dataType","string")("max",100),e.R50("stringValue",t.contact.EmploymentStatus),e.Y8G("readonly",!0)("dataTestName","ContactEmploymentStatus"),e.R7$(12),e.Y8G("label","Email")("dataType","email")("max",100),e.R50("stringValue",t.contact.EmailAddress),e.Y8G("readonly",!0)("dataTestName","ContactEmail"),e.R7$(6),e.Y8G("label","Telephone")("dataType","string")("max",12)("min",10),e.R50("stringValue",t.contact.Telephone),e.Y8G("readonly",!0)("dataTestName","ContactTelephone"),e.R7$(9),e.Y8G("label","Address Line 1")("dataType","string")("max",250)("stringValue",t.contact.AddressLineOne)("readonly",!0)("dataTestName","ContactAddressLine1"),e.R7$(6),e.Y8G("label","Address Line 2")("dataType","string")("max",250)("stringValue",t.contact.AddressLineTwo)("readonly",!0)("dataTestName","ContactAddressLine2"),e.R7$(6),e.Y8G("label","Address Line 3")("dataType","string")("max",250)("stringValue",t.contact.AddressLineThree)("readonly",!0)("dataTestName","ContactAddressLine3"),e.R7$(9),e.Y8G("label","City")("dataType","string")("max",80)("stringValue",t.contact.City)("readonly",!0)("dataTestName","ContactCity"),e.R7$(6),e.Y8G("label","County")("dataType","string")("max",50),e.R50("stringValue",t.contact.County),e.Y8G("readonly",!0)("dataTestName","ContactCounty"),e.R7$(6),e.Y8G("label","Post Code")("dataType","postCode")("max",100)("stringValue",t.contact.PostCode)("readonly",!0)("dataTestName","ContactPostCo
1de"),e.R7$(9),e.Y8G("label","Tax Relief")("dataType","optionlist")("max",100)("stringValue",t.taxReliefKey)("listValues",t.getTaxReliefOptions())("readonly",!0)("dataTestName","ContactTaxRelief")}}class at{formatDate(n){return v.r.toDateString(n)}getEmploymentTypes(){let n=[],t=this.contactOptions.optionSets.tfs_employmentstatus;for(let s of t)n.push(s.Value);return n}getTaxReliefOptions(){let n=[];for(let t of Te)n.push(t.value);return n}get taxReliefKey(){return this.getTaxReliefValue(this.contact.TaxRelief.toString())}getTaxReliefValue(n){for(let t of Te)if(t.key==n)return t.value;return null}constructor(n){this.featureSwitch=n,this.ViewMode=m.Review,this.changeTabIndex=new e.bkB,this.employmentTypes=V.e.GetEnumNames(et.Xn),this.genderTypes=V.e.GetEnumNames(et.YT)}static#e=this.\u0275fac=function(t){return new(t||at)(e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:at,selectors:[["sipp-admin-contact-submitted"]],viewQuery:function(t,s){if(1&t&&e.GBs(k._,5),2&t){let i;e.mGM(i=e.lsd())&&(s.inputComponents=i)}},inputs:{ViewMode:"ViewMode",contactOptions:"contactOptions",contact:"contact"},outputs:{changeTabIndex:"changeTabIndex"},decls:7,vars:2,consts:[["NameInput",""],[3,"visible"],[4,"ngIf"],[1,"row"],[1,"col-lg-4"],[3,"label","dataType","max","stringValue","readonly","dataTestName"],[3,"stringValueChange","label","dataType","max","stringValue","readonly","dataTestName"],[3,"stringValueChange","listValuesChange","label","dataType","max","stringValue","listValues","readonly","dataTestName"],[3,"dateValueChange","label","dataType","max","dateValue","readonly","dataTestName"],[3,"numberValueChange","label","dataType","max","numberValue","decimalPlaces","min","readonly","dataTestName"],[3,"stringValueChange","label","dataType","max","min","stringValue","readonly","dataTestName"],[1,"col-lg-8"],[3,"label","dataType","max","stringValue","listValues","readonly","dataTestName"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.nrm(1,"br"),e.EFF(2,"\n "),e.nrm(3,"loading",1),e.EFF(4,"\n "),e.DNE(5,Za,143,119,"div",2),e.EFF(6,"\n ")),2&t&&(e.R7$(3),e.Y8G("visible",!s.contact),e.R7$(2),e.Y8G("ngIf",s.contact))},dependencies:[C.q,k._,c.bT],styles:["@media (max-width: 992px){h4[_ngcontent-%COMP%]{margin-left:15px}}"]})}function Ja(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",9),e.EFF(1,"\n "),e.j41(2,"button",10),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.submitContact())}),e.EFF(3,"\n "),e.j41(4,"span",11),e.EFF(5,"Submit Contact"),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"span",12),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("disabled",!t.contactComponent.isValid()),e.BMQ("data-test","ContactUpdateButton")}}function Ka(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n \n "),e.j41(2,"h2",1),e.EFF(3,"Tercero Contact"),e.k0s(),e.EFF(4,"\n \n "),e.nrm(5,"sipp-admin-contact",6),e.EFF(6,"\n\n "),e.DNE(7,Ja,10,2,"div",7),e.EFF(8,"\n\n "),e.nrm(9,"div",8),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("contact",t.selectedContact)("ViewMode",t.MorganLloydViewModeEnum.Review)("contactOptions",t.contactOptions)("sippModel",t.sippModel),e.R7$(2),e.Y8G("ngIf",t.selectedContact&&t.contactComponent)}}function qa(o,n){if(1&o&&e.nrm(0,"sipp-admin-contact-submitted",13),2&o){const t=e.XpG();e.Y8G("contact",t.submittedContact)("contactOptions",t.contactOptions)}}class rt{constructor(n,t){this.sippAdminStore=n,this.changeDetector=t,this.advisorChangeEvent=ne
1w e.bkB,this.isLoading=!1,this.MorganLloydViewModeEnum=m}ngOnInit(){this.contactUpdateSubscription=this.sippAdminStore.sippUpdateResponse$.pipe((0,F.p)(n=>n?.portfolioId==this.portfolioId&&n?.tab==E.Contact)).subscribe(n=>{n.IsError||n.error?this.contactError=n.error:this.contactError=null,this.updateResponse=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.getSubmittedContact()}),this.submittedContactSubscription=this.sippAdminStore.sippContact$.pipe((0,F.p)(n=>n?.portfolioId==this.portfolioId)).subscribe(n=>{this.contactError=n.error,this.submittedContact=n.contact,n.contact&&this.advisorChangeEvent.emit(n.contact.FinancialAdviserContactId),this.isLoading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.getSubmittedContact()}getSubmittedContact(){this.submittedContact=null,this.isLoading=!0,this.sippAdminStore.getContact(this.clientId,this.portfolioId)}submitContact(){this.updateResponse=null,this.submittedContact=null,this.isLoading=!0,this.sippAdminStore.updateContact(this.clientId,this.portfolioId,this.selectedContact.CRMGuid,this.sippModel.advisor.ContactId)}static#e=this.\u0275fac=function(t){return new(t||rt)(e.rXU(j),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:rt,selectors:[["sipp-admin-contact-compare"]],viewQuery:function(t,s){if(1&t&&e.GBs(te,5),2&t){let i;e.mGM(i=e.lsd())&&(s.contactComponent=i.first)}},inputs:{sippModel:"sippModel",selectedContact:"selectedContact",clientId:"clientId",portfolioId:"portfolioId",contactOptions:"contactOptions",contactSelected:"contactSelected"},outputs:{advisorChangeEvent:"advisorChangeEvent"},decls:14,vars:8,consts:[[4,"ngIf"],[2,"text-align","center"],[3,"tryAgain","error","itemName"],[3,"onlyShowIfError","response","sippModel"],[3,"hidden"],[3,"contact","contactOptions",4,"ngIf"],[3,"contact","ViewMode","contactOptions","sippModel"],["style","width: 100%; display: flex; justify-content: flex-end; padding-bottom: 15px",4,"ngIf"],[1,"row",2,"border-bottom","1px rgba(0, 0, 0, 0.1) dashed"],[2,"width","100%","display","flex","justify-content","flex-end","padding-bottom","15px"],["type","button",1,"btn","btn-success",2,"margin-left","50px",3,"click","disabled"],[2,"margin-right","5px"],[1,"fa","fa-refresh",2,"top","2px"],[3,"contact","contactOptions"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Ka,11,5,"div",0),e.EFF(2,"\n \n \n "),e.j41(3,"h2",1),e.EFF(4,"Morgan Lloyd Contact"),e.k0s(),e.EFF(5,"\n "),e.j41(6,"error",2),e.bIt("tryAgain",function(){return s.getSubmittedContact()}),e.k0s(),e.EFF(7,"\n "),e.nrm(8,"sipp-admin-response-table",3),e.EFF(9,"\n "),e.nrm(10,"loading",4),e.EFF(11,"\n "),e.DNE(12,qa,1,2,"sipp-admin-contact-submitted",5),e.EFF(13,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.contactSelected),e.R7$(5),e.Y8G("error",s.contactError)("itemName","Morgan Lloyd Contact"),e.R7$(2),e.Y8G("onlyShowIfError",!1)("response",s.updateResponse)("sippModel",s.sippModel),e.R7$(2),e.Y8G("hidden",!s.isLoading),e.R7$(2),e.Y8G("ngIf",!s.isLoading&&!s.contactError))},dependencies:[C.q,S.A,c.bT,te,H,at],encapsulation:2})}function $a(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",18),e.EFF(1,"\n "),e.j41(2,"sipp-admin-breadcrumbs",19),e.bIt("changeTab",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.changeTab(i))}),e.k0s(),e.EFF(3,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("selectedPortId",t.selectedPortfolio.Id)("activeTab",t.tabIndex)("updateMode",t.portfolioAlreadyHasSipp())}}function er(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.FillInTestData(!1))}),e.EFF(1,"\n "),e.nrm(2,"span",21),e.EFF(3,"\n "),e.j41(4,"span"),e.EFF(5," Fill In Test Data"),e.k0s(),e.EFF(6,"\n "),e.k0s()}2&o&&e.Y8G("title","Fill In Test Data Only")}function tr(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.FillInTestData(!0))}),e.EFF(1,"\n "),e.nrm(2,"i",23),e.EFF(3,"\n "),e.k0s()}2&o&&e.Y8G("title","Fill In Test Data Only And Jump To Submit")}function nr(o,n){if(1&o&&(e.j41(0,"option",24),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.BMQ("data-test","portfolioInSelector"),e.R7$(),e.SpI("\n ",t.CollectiveName,"\n ")}}function ir(o,n){if(1&o&&(e.j41(0,"option",24),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.BMQ("data-test","contactInSelector"),e.R7$(),e.SpI("\n ",t.DisplayName,"\n ")}}function sr(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",9),e.EFF(1,"\n "),e.j41(2,"div",10),e.EFF(3,"\n "),e.j41(4,"div",8),e.
1EFF(5,"\n "),e.j41(6,"label",25),e.EFF(7,"\n Contact*\n "),e.k0s(),e.EFF(8,"\n "),e.j41(9,"div",12),e.EFF(10,"\n "),e.j41(11,"select",26),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.selectedContact,i)||(a.selectedContact=i),e.Njj(i)}),e.bIt("change",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.contactSelected(i))}),e.EFF(12,"\n "),e.DNE(13,ir,2,3,"option",14),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n\n "),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(11),e.xc7("border-color",null==t.selectedContact?"red":""),e.Y8G("disabled",!t.allowDropdownSelection("contact")),e.R50("ngModel",t.selectedContact),e.BMQ("data-test","contactSelector"),e.R7$(2),e.Y8G("ngForOf",t.getOwningContacts())}}function or(o,n){if(1&o&&(e.j41(0,"option",24),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.BMQ("data-test","advisorInSelector"),e.R7$(),e.SpI("\n ",t.FirstName+" "+t.LastName,"\n ")}}function ar(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",9),e.EFF(1,"\n "),e.j41(2,"div",10),e.EFF(3,"\n "),e.j41(4,"div",8),e.EFF(5,"\n "),e.j41(6,"label",27),e.EFF(7,"\n Adviser Name*\n "),e.k0s(),e.EFF(8,"\n "),e.j41(9,"div",12),e.EFF(10,"\n "),e.j41(11,"select",28),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.sippModel.advisor,i)||(a.sippModel.advisor=i),e.Njj(i)}),e.EFF(12,"\n "),e.DNE(13,or,2,3,"option",14),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(11),e.xc7("border-color",null==t.sippModel.advisor?"red":""),e.Y8G("disabled",!t.allowDropdownSelection("advisor")),e.R50("ngModel",t.sippModel.advisor),e.BMQ("data-test","advisorSelector"),e.R7$(2),e.Y8G("ngForOf",t.advisors)}}function rr(o,n){1&o&&e.nrm(0,"div",29)}function lr(o,n){if(1&o&&e.nrm(0,"sipp-admin-home",38),2&o){const t=e.XpG(3);e.Y8G("clientId",t.client.ClientId)("portfolioId",t.selectedPortfolio.Id)("sippModel",t.sippModel)}}function cr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-contact",39),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.viewMode)("contact",t.selectedFullContact)("contactOptions",t.contactOptions)}}function dr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-contact-compare",40),e.bIt("advisorChangeEvent",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeAdvisor(i))}),e.EFF(1,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("clientId",t.client.ClientId)("portfolioId",t.selectedPortfolio.Id)("selectedContact",t.selectedFullContact)("contactOptions",t.contactOptions)("sippModel",t.sippModel)("contactSelected",null!=t.selectedContact)}}function pr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-beneficiaries",41),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))}),e.k0s()}if(2&o){const t=e.XpG(3);
1e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.viewMode)("clientId",t.client.ClientId)("portfolioId",t.selectedPortfolio.Id)}}function ur(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-transfers",42),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.viewMode)("clientId",t.client.ClientId)("portfolioId",t.selectedPortfolio.Id)}}function mr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-contributions",43),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.R50("sippModel",t.sippModel),e.Y8G("ViewMode",t.viewMode)}}function hr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-documents",44),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)})("DocumentsModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel.documents,i)||(a.sippModel.documents=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.R50("sippModel",t.sippModel)("DocumentsModel",t.sippModel.documents)}}function Fr(o,n){if(1&o){const t=e.RV6();e.j41(0,"sipp-admin-review",45),e.mxI("sippModelChange",function(i){e.eBV(t);const a=e.XpG(3);return e.DH7(a.sippModel,i)||(a.sippModel=i),e.Njj(i)}),e.bIt("changeTabIndex",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.changeTabIndex(i))})("submissionFinished",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.submissionFinished=!0)}),e.k0s()}if(2&o){const t=e.XpG(3);e.R50("sippModel",t.sippModel),e.Y8G("contact",t.selectedFullContact)("contactOptions",t.contactOptions)}}function fr(o,n){if(1&o&&(e.j41(0,"div",8),e.EFF(1,"\n "),e.DNE(2,lr,1,3,"sipp-admin-home",30),e.EFF(3,"\n "),e.DNE(4,cr,1,4,"sipp-admin-contact",31),e.EFF(5,"\n "),e.DNE(6,dr,2,6,"sipp-admin-contact-compare",32),e.EFF(7,"\n "),e.DNE(8,pr,1,4,"sipp-admin-beneficiaries",33),e.EFF(9,"\n "),e.DNE(10,ur,1,4,"sipp-admin-transfers",34),e.EFF(11,"\n "),e.DNE(12,mr,1,2,"sipp-admin-contributions",35),e.EFF(13,"\n "),e.DNE(14,hr,1,2,"sipp-admin-documents",36),e.EFF(15,"\n "),e.DNE(16,Fr,1,3,"sipp-admin-review",37),e.EFF(17,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Home),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Contact&&t.selectedContact&&!t.contactError&&t.viewMode!=t.MorganLloydViewModeEnum.Update),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Contact&&t.viewMode==t.MorganLloydViewModeEnum.Update),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Beneficiaries),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Transfers),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Contributions),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Documents),e.R7$(2),e.Y8G("ngIf",t.tabIndex==t.MorganLloydTabEnum.Review)}}function gr(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n \n "),e.DNE(2,$a,4,3,"div",2),e.EFF(3,"\n\n "),e.j41(4,"span",3),e.
1EFF(5,"\n "),e.DNE(6,er,7,1,"button",4),e.EFF(7,"\n "),e.DNE(8,tr,4,1,"button",5),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n\n "),e.j41(11,"div",6),e.EFF(12,"\n "),e.j41(13,"error",7),e.bIt("tryAgain",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.sippAdminStore.getAdvisors())}),e.k0s(),e.EFF(14,"\n "),e.j41(15,"error",7),e.bIt("tryAgain",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.loadContact())}),e.k0s(),e.EFF(16,"\n "),e.j41(17,"error",7),e.bIt("tryAgain",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.loadPortfolio())}),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n \n "),e.j41(20,"div",8),e.EFF(21,"\n "),e.j41(22,"div",9),e.EFF(23,"\n "),e.j41(24,"div",10),e.EFF(25,"\n "),e.j41(26,"div",8),e.EFF(27,"\n "),e.j41(28,"label",11),e.EFF(29,"\n Portfolio*\n "),e.k0s(),e.EFF(30,"\n "),e.j41(31,"div",12),e.EFF(32,"\n "),e.j41(33,"select",13),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.selectedPortfolio,i)||(a.selectedPortfolio=i),e.Njj(i)}),e.bIt("change",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.portfolioSelected(i))}),e.EFF(34,"\n "),e.DNE(35,nr,2,3,"option",14),e.EFF(36,"\n "),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n "),e.k0s(),e.EFF(41,"\n\n "),e.DNE(42,sr,19,6,"div",15),e.EFF(43,"\n\n "),e.DNE(44,ar,19,6,"div",15),e.EFF(45,"\n "),e.k0s(),e.EFF(46,"\n\n "),e.j41(47,"div"),e.EFF(48,"\n "),e.DNE(49,rr,1,0,"div",16),e.EFF(50,"\n\n "),e.DNE(51,fr,18,8,"div",17),e.EFF(52,"\n "),e.k0s(),e.EFF(53,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.showBreadcrumbs()),e.R7$(4),e.Y8G("ngIf",t.showAutofill),e.R7$(2),e.Y8G("ngIf",t.showAutofill),e.R7$(5),e.Y8G("error",t.adviserError)("itemName","Advisers"),e.R7$(2),e.Y8G("error",t.contactError)("itemName","Contact"),e.R7$(2),e.Y8G("error",t.portfolioError)("itemName","Portfolio"),e.R7$(16),e.xc7("border-color",null==t.sippModel.portfolio?"red":""),e.Y8G("disabled",!t.allowDropdownSelection("portfolio")),e.R50("ngModel",t.selectedPortfolio),e.BMQ("data-test","portfolioSelector"),e.R7$(2),e.Y8G("ngForOf",t.getSippPortfolios()),e.R7$(7),e.Y8G("ngIf",t.showContactAndAdvisorDropdown()),e.R7$(2),e.Y8G("ngIf",t.showContactAndAdvisorDropdown()),e.R7$(5),e.Y8G("ngIf",t.showSeperator()),e.R7$(2),e.Y8G("ngIf",t.selectedPortfolio)}}class lt{constructor(n,t,s,i){this.changeDetector=n,this.sippAdminStore=t,this.contactStore=s,this.infrastructureStore=i,this.MorganLloydViewModeEnum=m,this.MorganLloydTabEnum=E,this.portfolioEntitiesLoading=!1,this.sippModel=new sn,this.adviserError=null,this.contactError=null,this.portfolioError=null,this.showAutofill=an.OH.isDeveloperMode(),this.viewMode=m.Editable,this.submissionFinished=!1}ngOnInit(){this.contactOptionsSubscription=this.infrastructureStore.contactOptionSetValues$.subscribe(n=>{this.contactOptions=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.contactsSubscription=this.contactStore.contact$.pipe((0,F.p)(n=>null!=n&&null!=this.selectedContact)).subscribe(n=>{if(this.contactError=n.error,null==n.error&&n.contact.CRMGuid==this.selectedContact.CRMGuid){let t=n.contact;this.selectedFullContact=t,this.sippModel.contact.TerceroContactId=this.selectedContact.CRMGuid,this.sippModel.contact.MobilePhone=t.MobilePhone,this.sippModel.contact.Gender=ee.getOptionSetValue(this.contactOptions.optionSets.gendercode,t.GenderId),this.sippModel.contact.EmploymentStatus=ee.getOptionSetValue(this.contactOptions.optionSets.tfs_employmentstatus,t.EmploymentStatusId),this.sippModel.contact.Email=t.Email,this.sippModel.contact.RetirementAge=t.RetirementAge,t.TaxReliefId&&(this.sippModel.contact.TaxRelief=t.TaxReliefId.toString()),null!=t.PrimaryAddress&&(this.sippModel.contact.County=t.PrimaryAddress.County)}this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.advisorsSubscription=this.sippAdminStore.sippAdvisors$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(this.advisors=new Array,this.adviserError=n.error,null==n.error){this.advisors=new Array;for(let t of n.advisors)this.advisors.push(t)}this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}
1),this.externalEntitySubscription=this.infrastructureStore.externalEntitiesForPortfolio$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(this.portfolioEntitiesLoading=!1,this.selectedPortfolio&&this.selectedPortfolio.Id==n.portfolioId){if(this.sippModel.sippReference=null,n.error)this.portfolioError=n.error,this.sippModel.portfolio=null;else{for(let t of n.entities)"Morgan Lloyd"==t.SystemType&&(this.sippModel.sippReference=t.Reference);this.sippModel.portfolio=this.selectedPortfolio}null!=this.sippModel.sippReference?(this.tabIndex=E.Home,this.viewMode=m.Update):(this.tabIndex=E.Contact,this.viewMode=m.Editable)}this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.sippAdminStore.getAdvisors(),this.infrastructureStore.loadContactOptionSetValues()}getSippPortfolios(){let n=[];for(let t of this.client.Portfolios)for(let s of t.Accounts)if(s.RegulatoryType==V.e.GetEnumName(G.tL,G.tL.SIPP)){n.push(t);break}return n}showBreadcrumbs(){return!this.submissionFinished&&null!=this.tabIndex}showSeperator(){return this.selectedContact&&!this.contactError||this.portfolioAlreadyHasSipp()}showContactAndAdvisorDropdown(){return!!this.sippModel.portfolio&&(!this.portfolioAlreadyHasSipp()||this.tabIndex==E.Contact)}portfolioAlreadyHasSipp(){return null!=this.sippModel.sippReference&&!this.submissionFinished}allowDropdownSelection(n){return!this.isLoading()&&(null==this.tabIndex||(this.tabIndex==E.Home?"portfolio"==n:this.tabIndex==E.Contact&&(!this.portfolioAlreadyHasSipp()||("contact"==n||"advisor"==n))))}ngOnDestroy(){this.contactsSubscription&&this.contactsSubscription.unsubscribe(),this.advisorsSubscription&&this.advisorsSubscription.unsubscribe(),this.contactOptionsSubscription&&this.contactOptionsSubscription.unsubscribe()}changeTabIndex(n){this.tabIndex+=n,this.tabIndex=Math.max(E.Contact,this.tabIndex),this.tabIndex=Math.min(E.Review,this.tabIndex)}changeTab(n){this.tabIndex=n}changeAdvisor(n){this.sippModel.advisor=this.advisors.find(t=>t.ContactId==n),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}getOwningContacts(){let n=new Array;for(let t of this.client.Contacts)"owner"==t.RelationshipType.toLowerCase()&&!n.includes(t)&&n.push(t);return n}contactSelected(n){this.loadContact()}portfolioSelected(n){this.loadPortfolio()}loadPortfolio(){this.portfolioEntitiesLoading=!0,this.portfolioError=null,this.sippModel=new sn,this.sippModel.clientId=this.client.Id,this.sippModel.portfolioId=Number(this.selectedPortfolio.Id),this.selectedContact=null,this.selectedFullContact=null,this.infrastructureStore.loadExternalEntitiesForPortfolio(this.client.Id.toString(),this.selectedPortfolio.Id),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}loadContact(){this.contactError=null,this.selectedFullContact=null,this.contactStore.getContactByGuid(this.selectedContact.CRMGuid),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}isLoading(){return null==this.advisors||null==this.contactOptions||this.portfolioEntitiesLoading}FillInTestData(n){this.selectedPortfolio=this.client.Portfolios[1],this.loadPortfolio(),this.advisors&&this.advisors.length>0&&(this.sippModel.advisor=this.advisors[0]);for(let t=0;t<=this.getOwningContacts().length;t++){let s=this.client.Contacts[t];if(s&&s.tfs_nino&&s.dateOfBirth&&s.emailAddress){this.selectedContact=s;break}}null!=this.selectedContact&&this.loadContact(),ee.FillInTestData(this.sippModel),n&&this.changeTabIndex(E.Review)}static#e=this.\u0275fac=function(t){return new(t||lt)(e.rXU(e.gRc),e.rXU(j),e.rXU(so._),e.rXU(Ze.dN))};static#t=this.\u0275cmp=e.VBU({type:lt,selectors:[["sipp-admin"]],inputs:{client:"client"},decls:5,vars:2,consts:[[3,"visible"],[4,"ngIf"],["class","row","style","margin-top: 10px",4,"ngIf"],[2,"display","inline-flex"],["class","btn btn-primary","style","border-top-right-radius: 0px; border-bottom-right-radius: 0px; padding-right: 4px;","data-test","MLSIPPDataFillButton",3,"title","click",4,"ngIf"],["class","btn btn-primary","style","border-top-left-radius: 0px; border-bottom-left-radius: 0px; padding-left: 4px; padding-right: 8px;",3,"title","click",4,"ngIf"],[2,"margin-top","10px"],["data-test","sippAdminError",3,"tryAgain","error","itemName"],[1,"row"],[1,"col-lg-4"],[1,"form-group"],["for","portfolioSelect",1,"col-lg-4","col-form-label",2,"margin-top","5px"],[1,"col-lg-7"],["id","portfolioSelect",1,"form-control",3,"ngModelChange","change","disabled","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],["class","col-lg-4",4,"ngIf"],["class","row","style","border-bottom: 1px rgba(0, 0, 0, 0.1) dashed",4,"ngIf"],["class","row",4,"ngIf"],[1,"row",2,"margin-top","10px"],[3,"changeTab","selectedPortId","activeTab","updateMode"],["data-test","MLSIPPDataFillButton",1,"btn","btn-primary",2,"border-top-right-radius","0px","border-bottom-right-radius","0px","padding-right","4px",3,"click","title"],["aria-hidden","true",1,"fa","fa-plus"],[1,"btn","btn-primary",2,"border-top-left-radius","0px","border-bottom-left-radius","0px","padding-left","4px","padding-right","8px",3,"click","title"],["aria-hidden","true",1,"fa","fa-arrow-circle-right"],[3,"ngValue"],["for","contactSelect",1,"col-lg-4","col-form-label",2,"margin-top","5px"],["id","contactSelect",1,"form-control",3,"ngModelChange","change","disabled","ngModel"],["for","advisorSelect",1,"col-lg-4","col-form-label",2,"margin-top","5px"],["id","advisorSelect",1,"form-control",3,"ngModelChange","disabled","ngModel"],[1,"row",2,"border-bottom","1px rgba(0, 0, 0, 0.1) dashed"],["class","col-lg-12",3,"clientId","portfolioId","sippModel",4,"ngIf"],["class","col-lg-12","data-test","sipp-admin-contact",3,"sippModel","ViewMode","contact","contactOptions","sippModelChange","changeTabIndex",4,"ngIf"],["class","col-lg-12",3,"clientId","portfolioId","selectedContact","contactOptions","sippModel","contactSelected","advisorChangeEvent",4,"ngIf"],["class","col-lg-12","data-test","sipp-admin-contact",3,"sippModel","ViewMode","clientId","portfolioId","sippModelChange","changeTabIndex",4,"ngIf"],["class","col-lg-12","data-test","sipp-admin-transfers",3,"sippModel","ViewMode","clientId","portfolioId","sippModelChange","changeTabIndex",4,"ngIf"],["class","col-lg-12","data-test","'sipp-admin-contributions",3,"sippModel","ViewMode","sippModelChange","changeTabIndex",4,"ngIf"],["class","col-lg-12","data-test","sipp-admin-documents",3,"sippModel","DocumentsModel","sippModelChange","DocumentsModelChange","changeTabIndex",4,"ngIf"],["class","col-lg-12","data-test","sipp-admin-review",3,"sippModel","contact","contactOptions","sippModelChange","changeTabIndex","submissionFinished",4,"ngIf"],[1,"col-lg-12",3,"clientId","portfolioId","sippModel"],["data-test","sipp-admin-contact",1,"col-lg-12",3,"sippModelChange","changeTabIndex","sippModel","ViewMode","contact","contactOptions"],[1,"col-lg-12",3,"advisorChangeEvent","clientId","portfolioId","selectedContact","contactOptions","sippModel","contactSelected"],["data-test","sipp-admin-contact",1,"col-lg-12",3,"sippModelChange","changeTabIndex","sippModel","ViewMode","clientId","portfolioId"],["data-test","sipp-admin-transfers",1,"col-lg-12",3,"sippModelChange","changeTabIndex","sippModel","ViewMode","clientId","portfolioId"],["data-test","'sipp-admin-contributions",1,"col-lg-12",3,"sippModelChange","changeTabIndex","sippModel","ViewMode"],["data-test","sipp-admin-documents",1,"col-lg-12",3,"sippModelChange","DocumentsModelChange","changeTabIndex","sippModel","DocumentsModel"],["data-test","sipp-admin-review",1,"col-lg-12",3,"sippModelChange","changeTabIndex","submissionFinished","sippModel","contact","contactOptions"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.nrm(1,"loading",0),e.EFF(2,"\n "),e.DNE(3,gr,54,19,"div",1),e.EFF(4,"\n ")),2&t&&(e.R7$(),e.Y8G("visible",s.isLoading()),e.R7$(2),e.Y8G("ngIf",!s.isLoading()))},dependencies:[C.q,S.A,c.Sq,c.bT,p.xH,p.y7,p.wz,p.BC,p.vS,Ie,te,Se,it,De,st,Re,ot,rt],encapsulation:2})}var Er=l(8185),ln=l(92865),cn=l(1585),_r=l(1352),Cr=l(39303),br=l(72266),vr=l(83121),dn=function(o,n,t,s){var r,i=arguments.length,a=i<3?n:null===s?s=Object.getOwnPropertyDescriptor(n,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,n,t,s);else for(var d=o.length-1;d>=0;d--)(r=o[d])&&(a=(i<3?r(a):i>3?r(n,t,a):r(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a};const Tr=()=>({"padding-bottom":"15px"});function yr(o,n){if(1&o){const t=e.RV6();e.j41(0,"span",8),e.EFF(1,"\n "),e.j41(2,"configured-table",9),e.bIt("rowSelected",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.rowSelected(i))}),e.k0s(),e.EFF(3,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("ngClass",t.portfolioTableStyleClasses()),e.R7$(2),e.Y8G("modelType",t.tableModelType)("columns",t.portfoliosTableColumns())("tableData",t.summaries),e.BMQ("data-test","clientdetails-portfolio-table")}}function Ir(o,n){if(1&o){const t=e.RV6();e.j41(0,"a",17),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.selectChart(i))}),e.EFF(1,"\n "),e.nrm(2,"span",18),e.EFF(3,"\n "),e.k0s()}if(2&o){const t=n.$implicit,s=e.XpG(3);e.BMQ("data-test","details-tab-portfoliolist-chart-type-select"+t),e.R7$(2),e.HbH(s.chartComponentType.getIconClass(t)),e.Mz_("title","Show ",s.chartComponentType.getChartTypeDisplayName(t)," chart")}}function xr(o,n){if(1&o&&(e.j41(0,"div",15),e.EFF(1,"\n "),e.DNE(2,Ir,4,5,"a",16),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.availableChartTypes())}}function Sr(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",10),e.EFF(1,"\n "),e.j41(2,"div",11),e.EFF(3,"\n "),e.j41(4,"div",12),e.
1EFF(5,"\n "),e.j41(6,"chart",13),e.bIt("onDataSelect",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.selectData(i))}),e.k0s(),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n "),e.DNE(9,xr,4,1,"div",14),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("hidden",!t.renderChart),e.R7$(4),e.Aen(e.lJ4(10,Tr)),e.Y8G("height","250px")("type",t.selectedChartType)("data",t.chartData)("options",t.getChartOptions())("tooltipOverride",!1),e.BMQ("data-test","clientdetails-chart"+t.selectedChartType),e.R7$(3),e.Y8G("ngIf",t.availableChartTypes().length>1)}}function kr(o,n){if(1&o&&e.nrm(0,"portfolio-details",19),2&o){const t=e.XpG();e.Y8G("model",t.selectedPortfolio)}}class ct{constructor(n,t,s,i,a,r){this.clientStore=n,this.changeDetector=t,this.router=s,this.accordionService=i,this.featureStore=a,this.accordionParentComponent=r,this.exchangeRates=[],this.tableModelType=dt,this.tableRows=10,this.chartType=oe.NB,this.chartComponentType=Ue.Qe,this.renderChart=!1}ngOnInit(){this.summaries=this.getPortfolioData(this.client),this.accordionParentComponent?(this.panelShownSubscription=this.accordionService.panelShown$.subscribe(n=>{Er.V.debug(`Shown accordion ${n}`),n==this.getPanelId()&&this.displayChart()}),this.panelClosedSubscription=this.accordionService.panelClosed$.subscribe(n=>{this.renderChart=!1,this.changeDetector.markForCheck()})):this.displayChart()}ngAfterViewInit(){let n=this.getPanelId();this.accordionService.isPanelOpen(n)&&this.displayChart()}ngAfterViewChecked(){$('[data-toggle="tooltip"]').tooltip()}ngOnDestroy(){this.panelShownSubscription&&this.panelShownSubscription.unsubscribe(),this.panelClosedSubscription&&this.panelClosedSubscription.unsubscribe()}getChartOptions(){let n=new I.gM;return n.scales.yAxes=new I.V_,n.scales.yAxes.display=!1,n.scales.xAxes=new I.V_,n.scales.xAxes.display=!1,n.plugins.legend.display=!1,n.plugins.tooltip.enabled=!0,n.maintainAspectRatio=!0,n.responsive=!0,n.plugins.tooltip.callbacks.title=t=>t[0].label,n.plugins.tooltip.callbacks.label=t=>{const s=this.getAlternateSummaryOrder(this.summaries)[t.dataIndex];return[" Latest Value: "+this.formatCurrency(s.LatestValue,s.CurrencySymbol)," Percentage: "+x.K.formatPercentage(s.Percentage,2)]},n}availableChartTypes(){let n=this.featureStore.FeatureToggles.ChartCustomisations.DetailsChartTypes,t=[oe.NB.HorizontalBar,oe.NB.Bar];this.hasNegativePortfolio(this.client)||(t.push(oe.NB.Pie),t.push(oe.NB.Doughnut));let s=se.intersection(n,t);return s.length<n.length&&console.warn("Details tab portfolios chart configuration had some chart types which were ignored"),s}displayChart(){setTimeout(()=>{let n=this.availableChartTypes();n.length>0&&(this.selectedChartType=n[0],this.renderChart=!0,this.chartData=this.getChartData(this.summaries,this.client),this.changeDetector.markForCheck())},50)}selectData(n){let t=this.summaries[n.index];this.openPortfolio(t)}selectChart(n){this.selectedChartType!=n&&(this.selectedChartType=n)}rowSelected(n){let t=n.item;this.openPortfolio(t)}openPortfolio(n){this.featureStore.FeatureToggles.ViewPortfoliosAtClientLevel?(this.selectedPortfolio=this.client.Portfolios.find(t=>t.Id==n.Id),this.selectedPortfolio&&(this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.portfolioDetailsModal.open("lg"))):this.router.navigate(["investments/clients/"+this.client.Id+"/"],{fragment:n.Id})}getPortfolioData(n){let t=new Array;if(null!=n&&null!=n.ActivePortfoliosWithOptionallyFilteredOutZeroOrNullValues(this.featureStore.FeatureToggles.HideZeroValuePortfolios)){let s=0,i=n.ActivePortfoliosWithOptionallyFilteredOutZeroOrNullValues(this.featureStore.FeatureToggles.HideZeroValuePortfolios);i=i.sort((a,r)=>(r.LatestValue?r.LatestValue.BaseValue:0)-(a.LatestValue?a.LatestValue.BaseValue:0));for(let a of i){let r=new dt;r.Id=a.Id,r.Reference=a.Reference,r.Name=a.PortfolioNameOrReportingName,r.LatestValue=null!=a.LatestValue?a.LatestValue.MarketValue:null,r.LatestBaseValue=null!=a.LatestValue?a.LatestValue.BaseValue:0,r.PortfolioType=a.PortfolioTypeName,r.ProductType=a.ProductTypeName,r.RiskLevel=a.RiskLevelName,r.ServiceLevel=a.ServiceLevel,r.CurrencySymbol=null!=a.LatestValue?a.LatestValue.Currency.UpperSymbol:"",r.ChartColor=this.featureStore.FeatureToggles.ChartCustomisations.getUnreservedColour(s++),r.AvailableCashFormatted=a.AvailableCashFormatted(),r.AvailableCashFormattedPortfolioCurrency=a.AvailableCashFormatted(this.exchangeRates,"\n"),r.ModelStructureName=a.ModelStructureName,t.push(r)}}return t}getClientBaseValue(n){var t=0;if(null!=n&&null!=n.ActivePortfolios)for(let s of n.ActivePortfolios)t+=null!=s.LatestValue?s.LatestValue.BaseValue:0;return t}
1hasNegativePortfolio(n){if(null!=n&&null!=n.ActivePortfolios)for(let t of n.ActivePortfolios)if(null!=t.LatestValue&&t.LatestValue.MarketValue<0)return!0;return!1}getChartData(n,t){n=n.sort((a,r)=>r.LatestValue-a.LatestValue);let s=new I.CI,i=new I.u_;if(i.backgroundColor=[],i.borderColor=[],i.hoverBackgroundColor=[],i.data=[],i.borderWidth=1,n.length>0)for(let a of this.getAlternateSummaryOrder(n)){s.labels.push(a.Name);let r=this.getClientBaseValue(t);0!=r&&(a.Percentage=a.LatestBaseValue/r*100),i.data.push(x.K.preciseRound(a.Percentage,2)),i.backgroundColor.push(a.ChartColor.BackgroundColor),i.hoverBackgroundColor.push(a.ChartColor.BackgroundColor),i.borderColor.push(a.ChartColor.BorderColor)}return s.datasets.push(i),s}getAlternateSummaryOrder(n){let t=[...n],s=t[n.length-1];if(t[0].ChartColor==s.ChartColor&&t.length>2){let a=t.length-2;t[t.length-1]=t[a],t[a]=s}return t}formatCurrency(n,t){return null==n?"":x.K.formatCurrency(n,t)}isNegative(n){return n<0}getPanelId(){return Y.getPanelId(this.client.ClientId)}portfoliosTableColumns(){let n=this.featureStore.FeatureToggles.Columns.ClientDetailsPortfolios;return se.every(this.client.ActivePortfolios,function(s){return 0==s.CashAccounts.length})&&(n=n.filter(s=>"AvailableCashFormattedPortfolioCurrency"!=s.Key)),n}shouldIncludePortfolioChart(){return!!this.client&&this.summaries.filter(t=>null!=t.LatestValue).length>1}portfolioTableStyleClasses(){let n="col-xs-12";return this.shouldIncludePortfolioChart()?n+=" col-md-8":n+=" col-md-12",n}getSelectedPortfolioId(){return this.selectedPortfolio?this.selectedPortfolio.Id:""}static#e=this.\u0275fac=function(t){return new(t||ct)(e.rXU(ie.Fv),e.rXU(e.gRc),e.rXU(B.Ix),e.rXU(z.CI),e.rXU(f.P),e.rXU(Q.M,8))};static#t=this.\u0275cmp=e.VBU({type:ct,selectors:[["client-portfolios-summary"]],viewQuery:function(t,s){if(1&t&&(e.GBs(Ue.Qe,5),e.GBs(cn.c,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.chartComponent=i.first),e.mGM(i=e.lsd())&&(s.portfolioDetailsModal=i.first)}},inputs:{client:"client",exchangeRates:"exchangeRates"},decls:29,vars:6,consts:[["portfolioDetailsModal",""],[1,"row"],[3,"ngClass",4,"ngIf"],["class","col-xs-12 col-md-4",4,"ngIf"],[3,"showDismiss"],[3,"model",4,"ngIf"],[3,"showDefaultButtons"],["type","button",1,"btn","btn-primary","btn-xs",3,"click"],[3,"ngClass"],[3,"rowSelected","modelType","columns","tableData"],[1,"col-xs-12","col-md-4"],[3,"hidden"],["id","chartContained"],[3,"onDataSelect","height","type","data","options","tooltipOverride"],["id","buttonContained",4,"ngIf"],["id","buttonContained"],["style","cursor: pointer",3,"click",4,"ngFor","ngForOf"],[2,"cursor","pointer",3,"click"],["data-toggle","tooltip",3,"title"],[3,"model"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0," \n \n "),e.j41(1,"div",1),e.EFF(2," \n \n "),e.EFF(3,"\n "),e.DNE(4,yr,4,5,"span",2),e.EFF(5,"\n \n "),e.EFF(6,"\n "),e.DNE(7,Sr,12,11,"div",3),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n \n "),e.EFF(10,"\n "),e.j41(11,"bs-modal",null,0),e.EFF(13,"\n "),e.j41(14,"bs-modal-header",4),e.EFF(15,"\n Portfolio Details\n "),e.k0s(),e.EFF(16,"\n\n "),e.j41(17,"bs-modal-body"),e.EFF(18,"\n "),e.DNE(19,kr,1,1,"portfolio-details",5),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n\n "),e.j41(22,"bs-modal-footer",6),e.EFF(23,"\n "),e.j41(24,"button",7),e.bIt("click",function(){e.eBV(i);const r=e.sdS(12);return e.Njj(r.close())}),e.EFF(25,"Close"),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n")}2&t&&(e.R7$(4),e.Y8G("ngIf",s.portfoliosTableColumns().length>0),e.R7$(3),e.Y8G("ngIf",s.shouldIncludePortfolioChart()),e.R7$(4),e.BMQ("data-test","portfolio-details-modal-portfolioID-"+s.getSelectedPortfolioId()),e.R7$(3),e.Y8G("showDismiss",!0),e.R7$(5),e.Y8G("ngIf",s.selectedPortfolio),e.R7$(3),e.Y8G("showDefaultButtons",!1))},dependencies:[c.YU,c.Sq,c.bT,Ue.Qe,L.m,_r.A,cn.c,Cr.L,br.w,vr.z],styles:[".panel-heading[_ngcontent-%COMP%]{padding-left:0;padding-right:0}",".panel-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}","#chartContained[_ngcontent-%COMP%]{float:left;width:95%}","#buttonContained[_ngcontent-%COMP%]{float:left;width:5%;text-align:right}","#buttonContained[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;display:block}","#buttonContained[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:.7em}"],changeDetection:0})}class dt{constructor(){this.LatestValue=null,this.LatestBaseValue=0,this.Percentage=0,this.AvailableCashFormatted="",this.ModelStructureName="",this.AvailableCashFormattedPortfolioCurrency=""}
1get backgroundColor(){return this.ChartColor.BackgroundColor}get TableIconClassName(){return"fa fa-square fa-lg"}get AvailableCashTooltipText(){return"Available cash in your dealing accounts: "+this.AvailableCashFormatted}get NameTooltipText(){return"Reference: "+this.Reference}get LatestValueFormatted(){return x.K.formatCurrency(this.LatestValue,this.CurrencySymbol)}}dn([(0,ln.H)()],dt.prototype,"AvailableCashFormattedPortfolioCurrency",void 0),dn([(0,ln.H)()],dt.prototype,"LatestValueFormatted",null);var Dr=l(57841),Rr=l(47754);const jr=["toggleLink"],wr=["tableDiv"];function Ar(o,n){1&o&&e.nrm(0,"loading")}function Pr(o,n){1&o&&(e.j41(0,"p",10),e.EFF(1,"You have no linked bank accounts."),e.k0s())}function Mr(o,n){if(1&o&&(e.j41(0,"configured-table",11),e.EFF(1,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.Y8G("modelType",t.tableModelType)("columns",t.featureStore.FeatureToggles.Columns.ClientBankAccountDetails)("tableData",t.bankAccounts)}}function Gr(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"h3",3),e.EFF(3,"\n "),e.j41(4,"a",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleBankAccountDisplay())}),e.EFF(5,"\n "),e.nrm(6,"i",5,0),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n Bank Accounts:"),e.k0s(),e.EFF(10,"\n "),e.j41(11,"div",6,1),e.EFF(13," \n "),e.j41(14,"span",7),e.EFF(15,"\n "),e.DNE(16,Ar,1,0,"loading",2),e.EFF(17,"\n "),e.DNE(18,Pr,2,0,"p",8),e.EFF(19,"\n "),e.DNE(20,Mr,2,3,"configured-table",9),e.EFF(21,"\n "),e.k0s(),e.EFF(22,"\n "),e.k0s(),e.EFF(23,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(16),e.Y8G("ngIf",null==t.bankAccounts),e.R7$(2),e.Y8G("ngIf",null!=t.bankAccounts&&0==t.bankAccounts.length),e.R7$(2),e.Y8G("ngIf",null!=t.bankAccounts&&t.bankAccounts.length>0)}}class pt{constructor(n,t,s,i){this.bankAccountStore=n,this.accordionService=t,this.featureStore=s,this.changeDetector=i,this.tableModelType=Dr.c,this.bankAccounts=null,this.bankAccountsSubscription=null}ngOnInit(){this.bankAccountsSubscription=this.bankAccountStore.bankAccountsForClient$.pipe((0,F.p)(n=>null!=n&&null!=this.client&&n.clientId==this.client.Id)).subscribe(n=>{this.bankAccounts=n.bankAccounts,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{console.debug("Error retrieving bank accounts for client"+n)}),1==this.featureStore.FeatureToggles.ShowBankAccounts&&this.bankAccountStore.loadBankAccountsForClient(this.client.Id)}toggleBankAccountDisplay(){let n=this.toggleLink.nativeElement,t=this.tableDiv.nativeElement;n.classList.contains("fa-angle-down")?(n.classList.remove("fa-angle-down"),n.classList.add("fa-angle-up"),t.hidden=!1):(n.classList.remove("fa-angle-up"),n.classList.add("fa-angle-down"),t.hidden=!0)}ngOnDestroy(){this.bankAccountsSubscription&&this.bankAccountsSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||pt)(e.rXU(Rr.a),e.rXU(z.CI),e.rXU(f.P),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:pt,selectors:[["client-bankaccounts-summary"]],viewQuery:function(t,s){if(1&t&&(e.GBs(jr,5),e.GBs(wr,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.toggleLink=i.first),e.mGM(i=e.lsd())&&(s.tableDiv=i.first)}},inputs:{client:"client"},decls:3,vars:1,consts:[["toggleLink",""],["tableDiv",""],[4,"ngIf"],[1,"text-primary"],[1,"togglelink",3,"click"],[1,"fa","fa-angle-up"],[1,"row"],[1,"col-xs-12","col-md-8"],["class","client-details-bankaccount-nolinkedbankaccounts",4,"ngIf"],[3,"modelType","columns","tableData",4,"ngIf"],[1,"client-details-bankaccount-nolinkedbankaccounts"],[3,"modelType","columns","tableData"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Gr,24,3,"div",2),e.EFF(2,"\n")),2&t&&(e.R7$(),e.Y8G("ngIf",s.featureStore.FeatureToggles.ShowBankAccounts))},dependencies:[c.bT,C.q,L.m],styles:[".togglelink[_ngcontent-%COMP%]{text-decoration:none;cursor:pointer;font-weight:400}"],changeDetection:0})}function Vr(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",10)(6,"span",11),e.EFF(7),e.k0s()(),e.EFF(8,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG(2);e.R7$(2),e.HbH("col-xl-2 col-lg-2 col-md-2 col-sm-2 col-xs-4 "+t[0].StyleClasses),e.BMQ("data-test","ClientDetailHeader-"+t[0].DisplayName),e.R7$(),e.JRh(t[0].DisplayName),e.R7$(2),e.BMQ("data-test","ClientDetailValue-"+t[0].DisplayName),e.R7$(2),e.JRh(t[0].getValue(s.client))}}function Nr(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div"),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",10)(6,"span",11),e.EFF(7),e.k0s()(),e.EFF(8,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG(2);e.R7$(2),e.HbH("col-xl-2 col-lg-2 col-md-2 col-sm-2 col-xs-4 "+t[1].StyleClasses),e.BMQ("data-test","ClientDetailHeader-"+t[1].DisplayName),e.R7$(),e.JRh(t[1].DisplayName),e.R7$(2),e.BMQ("data-test","ClientDetailValue-"+t[1].DisplayName),e.R7$(2),e.JRh(t[1].getValue(s.client))}}function Br(o,n){if(1&o&&(e.j41(0,"div",4),e.EFF(1,"\n "),e.DNE(2,Vr,9,6,"div",0),e.EFF(3,"\n "),e.nrm(4,"div",9),e.EFF(5," "),e.EFF(6,"\n "),e.DNE(7,Nr,9,6,"div",0),e.EFF(8,"\n "),e.nrm(9,"div",9),e.EFF(10," "),e.EFF(11,"\n "),e.k0s()),2&o){const t=n.$implicit;e.R7$(2),e.Y8G("ngIf",null!=t[0]),e.R7$(5),e.Y8G("ngIf",null!=t[1])}}function Yr(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",4),e.EFF(3,"\n "),e.j41(4,"div",5),e.EFF(5,"\n "),e.j41(6,"div",6),e.nrm(7,"context-help",7),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n \n "),e.DNE(11,Br,12,2,"div",8),e.
1EFF(12,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(7),e.Y8G("page",t.contextHelpPageName)("section",t.contextHelpSectionName),e.R7$(4),e.Y8G("ngForOf",t.getFieldPairs())}}function Xr(o,n){if(1&o&&e.nrm(0,"client-portfolios-summary",12),2&o){const t=e.XpG();e.Y8G("exchangeRates",t.exchangeRates)("client",t.client)}}class ut{constructor(n,t,s,i,a){this.componentElement=n,this.changeDetector=t,this.contextHelp=s,this.infrastructureStore=i,this.featureStore=a,this.contextHelpPageName="ClientOverview",this.contextHelpSectionName="Details"}ngAfterViewInit(){this.getExchangeRates()}ngAfterViewChecked(){this.contextHelp.initialiseHelpForComponent(this.componentElement,this.contextHelpPageName,this.contextHelpSectionName)}getExchangeRates(){this.rateSubscription=this.infrastructureStore.allExchangeRates$.subscribe(n=>{null!=n&&(this.exchangeRates=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges())},n=>{console.log("exchange rates werent loaded"),this.exchangeRates=[],this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.infrastructureStore.allExchangeRates$.getValue()?this.exchangeRates=this.infrastructureStore.allExchangeRates$.getValue():this.infrastructureStore.loadExchangeRates()}getFieldPairs(){let n=this.featureStore.FeatureToggles.Columns.ClientDetails,t=new Array;t.push([null,null]);for(let i=0;i<n.length;i+=1){let a=n[i];if(a.isValueEmpty(this.client))continue;let r=t[t.length-1];null!=r[1]&&(r=[null,null],t.push(r)),null==r[0]?r[0]=a:r[1]=a}return t}ngOnDestroy(){null!=this.rateSubscription&&this.rateSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||ut)(e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(fe.N),e.rXU(Ze.dN),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:ut,selectors:[["client-expanded-details"]],inputs:{client:"client"},decls:9,vars:3,consts:[[4,"ngIf"],[1,"separatorLine"],[3,"exchangeRates","client",4,"ngIf"],[3,"client"],[1,"row"],[1,"col-md-12"],[1,"pull-right"],[3,"page","section"],["class","row",4,"ngFor","ngForOf"],[1,"visible-xs",2,"clear","both","margin-bottom","5px"],[1,"col-xl-4","col-lg-4","col-md-4","col-sm-4","col-xs-7"],[1,"text-primary"],[3,"exchangeRates","client"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Yr,13,3,"div",0),e.EFF(2," \n\n "),e.nrm(3,"hr",1),e.EFF(4,"\n\n "),e.DNE(5,Xr,1,2,"client-portfolios-summary",2),e.EFF(6,"\n "),e.nrm(7,"client-bankaccounts-summary",3),e.EFF(8,"\n")),2&t&&(e.R7$(),e.Y8G("ngIf",null!=s.client),e.R7$(4),e.Y8G("ngIf",s.exchangeRates),e.R7$(2),e.Y8G("client",s.client))},dependencies:[c.Sq,c.bT,J.K,ct,pt],styles:[".colPadding[_ngcontent-%COMP%]{margin-top:.5em}",".separatorLine[_ngcontent-%COMP%]{width:70%;padding-top:3px;padding-bottom:3px;text-align:center}"],changeDetection:0})}var mt=l(75887),W=l(4227),Xt=l(95183),Ot=l(13590);class ce{static calculateGainLossText(n){if(null==n)return null;var t="Gain/Loss";return n>0&&(t="Gain"),n<0&&(t="Loss"),t}static calculateGainLossStyleClass(n){return null==n?"":n>0?"text-success":n<0?"text-danger":void 0}}var de=l(30966);class Lt{static largeSizeColumnSpan(n,t,s){let i=n/t;return i=Math.floor(i),n-i*t>s&&i++,i}}var Or=l(41416),Lr=l(24191),Ur=l(25149),Hr=l(4176),Wr=l(95901),pn=l(5779),pe=l(28674),un=l(94245),zr=l(86901);function Qr(o,n){if(1&o&&(e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",2),e.EFF(3,"Reference"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",3),e.EFF(6,"\n "),e.j41(7,"span",4),e.EFF(8),e.k0s(),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(8),e.JRh(null==t.cashAccount?null:t.cashAccount.Reference)}}function Zr(o,n){1&o&&(e.j41(0,"span",4),e.EFF(1,"-"),e.k0s())}function Jr(o,n){if(1&o&&(e.j41(0,"span",4),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.latestActivity.ActivityDescription)}}function Kr(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",7),e.EFF(3,"\n "),e.j41(4,"a",8),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.showTransactions())}),e.EFF(5,"Last Activity "),e.nrm(6,"span",9),e.k0s(),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n \n "),e.j41(9,"div",3),e.EFF(10,"\n "),e.DNE(11,Zr,2,0,"span",10),e.EFF(12,"\n "),e.DNE(13,Jr,2,1,"span",10),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(11),e.Y8G("ngIf",null==t.latestActivity),e.R7$(2),e.Y8G("ngIf",null!=t.latestActivity)}}function qr(o,n){if(1&o&&(e.j41(0,"div",1),e.EFF(1,"\n "),e.j41(2,"div",11),e.EFF(3,"\n "),e.j41(4,"div"),e.EFF(5),e.k0s(),e.EFF(6,"\n "),e.k0s(),e.EFF(7,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(5),e.SpI("\n This is an indirect holding via ",t.model.IndirectFundName,".\n ")}}function $r(o,n){if(1&o&&(e.j41(0,"div",0),e.EFF(1," \n\n "),e.j41(2,"div",1),e.EFF(3,"\n "),e.j41(4,"div",11),e.EFF(5,"\n "),e.j41(6,"div"),e.EFF(7,"\n Posted Balance\n "),e.j41(8,"span",12),e.EFF(9),e.nI1(10,"monetaryValue"),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n\n "),e.j41(15,"div",1),e.EFF(16,"\n "),e.j41(17,"div",11),e.EFF(18,"\n "),e.j41(19,"div"),e.EFF(20,"\n Suspense Balance\n "),e.j41(21,"span",12),e.EFF(22),e.nI1(23,"monetaryValue"),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n\n "),e.j41(28,"div",1),e.EFF(29,"\n "),e.j41(30,"div",11),e.EFF(31,"\n "),e.j41(32,"div"),e.EFF(33,"\n Cleared Balance\n "),e.j41(34,"span",12),e.EFF(35),e.nI1(36,"monetaryValue"),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n\n "),e.j41(41,"div",1),e.EFF(42,"\n "),e.j41(43,"div",11),e.EFF(44,"\n "),e.j41(45,"div"),e.EFF(46,"\n Available Balance\n "),e.j41(47,"span",12),e.EFF(48),e.nI1(49,"monetaryValue"),e.k0s(),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.k0s(),e.EFF(52,"\n "),e.k0s(),e.EFF(53,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(9),e.JRh(e.i5U(10,4,null==t.cashAccount?null:t.cashAccount.PostedBalance.MarketValue,null==t.cashAccount?null:t.cashAccount.PostedBalance.Currency.UpperSymbol)),e.R7$(13),e.JRh(e.i5U(23,7,null==t.cashAccount?null:t.cashAccount.SuspenseBalance.MarketValue,null==t.cashAccount?null:t.cashAccount.SuspenseBalance.Currency.UpperSymbol)),e.R7$(13),e.JRh(e.i5U(36,10,null==t.cashAccount?null:t.cashAccount.ClearedBalance.MarketValue,null==t.cashAccount?null:t.cashAccount.ClearedBalance.Currency.UpperSymbol)),e.R7$(13),e.JRh(e.i5U(49,13,null==t.cashAccount?null:t.cashAccount.AvailableBalance.MarketValue,null==t.cashAccount?null:t.cashAccount.AvailableBalance.Currency.UpperSymbol))}}class ht{constructor(n,t,s,i){this.transactionStore=n,this.cashAccountStore=t,this.changeDetector=s,this.modalService=i,this.loaded=!1}holdingShown(){this.loaded||(this.loadCashAccount(),this.loadLatestActivity(),this.modalService.initialiseModal(pe.q.CashTransactionList),this.loaded=!0)}loadCashAccount(){this.model.Indirect||null!=this.model&&(this.cashAccountSubscription=this.cashAccountStore.cashAccount$.pipe((0,F.p)(n=>null!=n&&n.Id==this.model.HoldingId)).subscribe(n=>{this.cashAccount=n,this.changeDetector.markForCheck()},n=>{alert("error getting cash account: "+n)}),this.cashAccountStore.loadCashAccount(this.model.ClientId,this.model.PortfolioId,this.model.AccountId,this.model.HoldingId))}ngOnDestroy(){this.cashAccountSubscription&&this.cashAccountSubscription.unsubscribe(),this.activitySubscription&&this.activitySubscription.unsubscribe()}loadLatestActivity(){this.model.Indirect||null!=this.model&&(this.activitySubscription=this.transactionStore.latestCashActivity$.pipe((0,F.p)(n=>null!=n&&n.CashAccountId==this.model.HoldingId)).subscribe(n=>{this.latestActivity=n,this.changeDetector.markForCheck()},n=>{alert("error getting latest activity: "+n)}),this.transactionStore.loadLatestCashActivity(this.model.ClientId,this.model.PortfolioId,this.model.AccountId,this.model.HoldingId))}showTransactions(){this.modalService.showModal(pe.q.CashTransactionList,this.model)}static#e=this.\u0275fac=function(t){return new(t||ht)(e.rXU(un.ys),e.rXU(zr.I),e.rXU(e.gRc),e.rXU(pe.B))};static#t=this.\u0275cmp=e.VBU({type:ht,selectors:[["holding-cash"]],inputs:{model:"model",explorerType:"explorerType"},decls:36,vars:6,consts:[[1,"col-md-6","col-sm-12"],[1,"row","rowSpacing"],[1,"col-md-4","col-sm-4"],[1,"col-md-8","col-sm-8"],[1,"text-primary"],["class","row rowSpacing",4,"ngIf"],["class","col-md-6 col-sm-12",4,"ngIf"],[1,"col-md-4","col-sm-4","handIcon"],[3,"click"],["aria-hidden","true",1,"fa","fa-external-link-square","text-muted"],["class","text-primary",4,"ngIf"],[1,"col-md-12"],[1,"text-primary","pull-right"]],template:function(t,s){1&t&&(e.EFF(0,"\n\n "),e.j41(1,"div",0),e.EFF(2,"\n \n "),e.j41(3,"div",1),e.EFF(4,"\n "),e.j41(5,"div",2),e.EFF(6,"Name"),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",3),e.EFF(9,"\n "),e.j41(10,"span",4),e.EFF(11),e.k0s(),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n\n "),e.j41(15,"div",1),e.EFF(16,"\n "),e.j41(17,"div",2),e.EFF(18,"Currency"),e.k0s(),e.EFF(19,"\n "),e.j41(20,"div",3),e.EFF(21,"\n "),e.j41(22,"span",4),e.EFF(23),e.k0s(),e.EFF(24,"\n "),e.k0s(),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n\n "),e.DNE(27,Qr,11,1,"div",5),e.EFF(28,"\n\n "),e.DNE(29,Kr,16,2,"div",5),e.EFF(30,"\n\n "),e.DNE(31,qr,8,1,"div",5),e.EFF(32,"\n \n "),e.k0s(),e.EFF(33,"\n \n "),e.DNE(34,$r,54,16,"div",6),e.EFF(35," \n")),2&t&&(e.R7$(11),e.JRh(s.model.HoldingName),e.R7$(12),e.JRh(s.model.LocalCurrencyName),e.R7$(4),e.Y8G("ngIf",!s.model.Indirect),e.R7$(2),e.Y8G("ngIf",!s.model.Indirect),e.R7$(2),e.Y8G("ngIf",s.model.Indirect),e.R7$(3),e.Y8G("ngIf",!s.model.Indirect))},dependencies:[c.bT,Be.r],styles:[".handIcon[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}var el=l(62530),Ut=l(68806),tl=l(78865),nl=l(83620);const il=["chart"],sl=o=>({clearLeft:o});function ol(o,n){1&o&&(e.j41(0,"span",17),e.EFF(1,"-"),e.k0s())}function al(o,n){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.latestActivity.ActivityDescription)}}function rl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",12)(3,"a",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.showTransactions())}),e.EFF(4),e.k0s(),e.EFF(5," "),e.nrm(6,"span",14),e.k0s(),e.EFF(7,"\n "),e.j41(8,"div",15),e.EFF(9,"\n "),e.DNE(10,ol,2,0,"span",16),e.EFF(11,"\n "),e.DNE(12,al,2,1,"span",16),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.k0s()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.R7$(4),e.JRh(t.DisplayName),e.R7$(6),e.Y8G("ngIf",null==s.latestActivity),e.R7$(2),e.Y8G("ngIf",s.latestActivity)}}function ll(o,n){if(1&o&&(e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(3),e.SpI("\n This is an indirect holding via ",t.model.IndirectFundName,".\n ")}}function cl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\n "),e.j41(4,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.navigateToSecurityOverview())}),e.EFF(5,"More Information "),e.nrm(6,"span",14),e.k0s(),e.EFF(7,"\n "),e.k0s(),e.EFF(8,"\n "),e.k0s()}}function dl(o,n){1&o&&(e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\xa0"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",15),e.EFF(6,"\xa0"),e.k0s(),e.EFF(7,"\n "),e.k0s())}function pl(o,n){if(1&o&&(e.j41(0,"span",20),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(t.SubDisplayName)}}function ul(o,n){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit,s=e.XpG();e.R7$(),e.JRh(t.getValue(s.model))}}function ml(o,n){1&o&&(e.j41(0,"span",17),e.EFF(1,"-"),e.k0s())}function hl(o,n){if(1&o&&(e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3),e.DNE(4,pl,2,1,"span",19),e.k0s(),e.EFF(5,"\n "),e.j41(6,"div",15),e.EFF(7,"\n "),e.DNE(8,ul,2,1,"span",16),e.EFF(9,"\n "),e.DNE(10,ml,2,0,"span",16),e.EFF(11,"\n "),e.k0s(),e.EFF(12,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG();e.R7$(3),e.SpI("",t.DisplayName," "),e.R7$(),e.Y8G("ngIf",t.hasSubDisplayName()),e.R7$(4),e.Y8G("ngIf",!t.isValueEmpty(s.model)),e.R7$(2),e.Y8G("ngIf",t.isValueEmpty(s.model))}}
1function Fl(o,n){if(1&o&&(e.j41(0,"div",8),e.EFF(1," "),e.EFF(2,"\n "),e.EFF(3,"\n "),e.qex(4,9),e.EFF(5,"\n \n "),e.EFF(6,"\n "),e.DNE(7,rl,15,3,"div",10),e.EFF(8,"\n \n "),e.EFF(9,"\n "),e.DNE(10,ll,5,1,"div",10),e.EFF(11,"\n \n "),e.EFF(12,"\n "),e.DNE(13,cl,9,0,"div",10),e.EFF(14,"\n\n "),e.EFF(15,"\n "),e.DNE(16,dl,8,0,"div",10),e.EFF(17,"\n\n "),e.EFF(18,"\n "),e.DNE(19,hl,13,4,"div",11),e.EFF(20,"\n\n "),e.bVm(),e.EFF(21,"\n "),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngClass",e.eq3(6,sl,"PadLeft"==t.Key)),e.R7$(4),e.Y8G("ngSwitch",t.Key),e.R7$(3),e.Y8G("ngSwitchCase","LastActivity"),e.R7$(3),e.Y8G("ngSwitchCase","IndirectHolding"),e.R7$(3),e.Y8G("ngSwitchCase","MoreInformation"),e.R7$(3),e.Y8G("ngSwitchCase","PadLeft")}}class Ft{constructor(n,t,s,i,a,r,d){this.securitiesStore=n,this.transactionStore=t,this.clientStore=s,this.changeDetector=i,this.modalService=a,this.router=r,this.featureSwitch=d,this.loaded=!1,this.valuationTypeEnum=mt.K,this.priceSeriesDataTypeEnum=Ut.RT,this.chartData=[]}holdingShown(){this.loaded||(this.securityPrice||(this.securityPrice=new el.Ih,this.securityPrice.SecurityId=parseInt(this.model.SecurityId)),this.SecurityPriceHistory=void 0,this.computeSecurityPrices(),this.loadLatestActivity(),this.featureSwitch.FeatureToggles.OrderOptions.SellableSecurities&&this.getIsSecuritySellable(),this.getHoldingPortfolio(),this.modalService.initialiseModal(pe.q.SecurityTransactionList),this.loaded=!0)}getIsSecuritySellable(){this.securitiesStore.isSecurityTradeable(this.model.SecurityId,tl.Z.Sell).subscribe(n=>{this.allowSelling=n.Tradeable,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.allowSelling=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}getHoldingPortfolio(){this.portfolioSubscription=this.clientStore.client$.pipe((0,F.p)(n=>null!=n&&n.clientId==this.model.ClientId&&null!=this.model.PortfolioId)).subscribe(n=>{this.portfolio=n.client.ActivePortfolios.find(t=>t.Id==this.model.PortfolioId),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.portfolio=null,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.model.PortfolioId&&this.model.ClientId&&this.clientStore.loadClient(this.model.ClientId)}computeSecurityPrices(){null!=this.model&&(this.priceSubscription=this.securitiesStore.securityPriceHistory$.pipe((0,F.p)(n=>n.length>0&&n[0].SecurityId==this.securityPrice.SecurityId)).subscribe(n=>{this.SecurityPriceHistory=n,this.sortSecurityList(),this.chartData=this.SecurityPriceHistory.map(t=>new Ut.LD(t.PriceDate,t.getPrice())),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{alert("error getting stock price history: "+n)}),this.securitiesStore.loadSecurityPriceHistory(this.securityPrice))}ngOnDestroy(){this.priceSubscription&&this.priceSubscription.unsubscribe(),this.activitySubscription&&this.activitySubscription.unsubscribe(),this.portfolioSubscription&&this.portfolioSubscription.unsubscribe()}loadLatestActivity(){this.model.Indirect||null!=this.model&&(this.activitySubscription=this.transactionStore.latestSecurityActivity$.pipe((0,F.p)(n=>null==n||n.SecurityHoldingId==this.model.HoldingId)).subscribe(n=>{this.latestActivity=n,this.changeDetector.markForCheck()},n=>{alert("error getting latest activity: "+n)}),this.transactionStore.loadLatestSecurityActivity(this.model.ClientId,this.model.PortfolioId,this.model.AccountId,this.model.HoldingId))}sortSecurityList(){this.SecurityPriceHistory=this.SecurityPriceHistory.sort((n,t)=>n.PriceDate<t.PriceDate?-1:n.PriceDate>t.PriceDate?1:0)}shouldShowSecurityOverviewPage(){return!("Security Holding"!=this.model.HoldingClassDescription||!this.featureSwitch.FeatureToggles.SecurityOverviewEnabled||this.model.Indirect)}showTransactions(){this.modalService.showModal(pe.q.SecurityTransactionList,this.model)}navigateToSecurityOverview(){let n=this.explorerType==mt.K.Client?"securityoverview":"portfoliosecurityoverview";this.router.navigateByUrl("investments/clients/"+this.model.ClientId+"/portfolios/"+this.model.PortfolioId+"/holding/"+this.model.HoldingId+"/"+n)}showAccruedInterest(){return"Fixed Interest"==this.model.SecurityClass}FieldColumnsFromFeatureSwitch(){let n=this.featureSwitch.FeatureToggles.Columns.ExplorerSecurityHolding.slice();
1return this.explorerType==mt.K.Portfolio&&(n=n.filter(t=>0==t.ClientOnly)),this.showAccruedInterest()||(n=n.filter(t=>"FormattedValuationInterest"!=t.Key)),this.model.Indirect&&(n=n.filter(t=>"LastActivity"!=t.Key),n.length%2==0&&n.push(_.bV.create("PadLeft")),n.push(_.bV.create("IndirectHolding"))),this.shouldShowSecurityOverviewPage()&&(n.length%2==0&&n.push(_.bV.create("PadLeft")),n.push(_.bV.create("MoreInformation"))),n}static#e=this.\u0275fac=function(t){return new(t||Ft)(e.rXU(nl.wH),e.rXU(un.ys),e.rXU(ie.Fv),e.rXU(e.gRc),e.rXU(pe.B),e.rXU(B.Ix),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:Ft,selectors:[["holding-security"]],viewQuery:function(t,s){if(1&t&&e.GBs(il,7),2&t){let i;e.mGM(i=e.lsd())&&(s.chart=i.first)}},inputs:{model:"model",explorerType:"explorerType"},decls:23,vars:7,consts:[["chart",""],[1,"row",2,"margin-bottom","10px"],[1,"col-md-7","col-sm-12"],["class","col-md-6 col-sm-12",3,"ngClass",4,"ngFor","ngForOf"],[1,"col-md-5","col-sm-12"],[1,"row","rowSpacing"],[3,"visible"],[3,"hidden","maintainAspectRatio","height","priceSeriesDataType","priceItems"],[1,"col-md-6","col-sm-12",3,"ngClass"],[3,"ngSwitch"],["class","row rowSpacing",4,"ngSwitchCase"],["class","row rowSpacing",4,"ngSwitchDefault"],[1,"col-xs-12","handIcon"],[3,"click"],["aria-hidden","true",1,"fa","fa-external-link-square","text-muted"],[1,"col-xs-12"],["class","text-primary",4,"ngIf"],[1,"text-primary"],[2,"cursor","pointer",3,"click"],["class","verySmall",4,"ngIf"],[1,"verySmall"]],template:function(t,s){1&t&&(e.EFF(0,"\n \n "),e.j41(1,"div",1),e.EFF(2,"\n "),e.EFF(3,"\n "),e.j41(4,"div",2),e.EFF(5,"\n "),e.DNE(6,Fl,22,8,"div",3),e.EFF(7,"\n \n "),e.k0s(),e.EFF(8,"\n \n "),e.EFF(9,"\n "),e.j41(10,"div",4),e.EFF(11,"\n "),e.j41(12,"div",5),e.EFF(13,"\n "),e.nrm(14,"loading",6),e.EFF(15,"\n "),e.nrm(16,"priceserieschart",7,0),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n \n "),e.k0s(),e.EFF(21,"\n \n \n\n"),e.EFF(22,"\n \n")),2&t&&(e.R7$(6),e.Y8G("ngForOf",s.FieldColumnsFromFeatureSwitch()),e.R7$(8),e.Y8G("visible",null==s.SecurityPriceHistory),e.R7$(2),e.Y8G("hidden",!s.SecurityPriceHistory)("maintainAspectRatio",!1)("height","150px")("priceSeriesDataType",s.priceSeriesDataTypeEnum.Price)("priceItems",s.chartData))},dependencies:[c.YU,c.Sq,c.bT,c.ux,c.e1,c.fG,C.q,Ut.W8],styles:[".rowSpacing[_ngcontent-%COMP%]{margin-top:.8em}",".nav-pills-small[_ngcontent-%COMP%]{font-size:12px;line-height:.8em}",".nav-pills-small[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:7em}",".centered-nav-bar[_ngcontent-%COMP%]{display:inline-block;float:none;text-align:center}",".handIcon[_ngcontent-%COMP%]{cursor:pointer}",".verySmall[_ngcontent-%COMP%]{font-size:.7em;font-style:italic}",".clearLeft[_ngcontent-%COMP%]{clear:left}"],changeDetection:0})}const fl=["holdingSecurity"],gl=["holdingCash"];function El(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"holding-security",3,0),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("explorerType",t.explorerType)("model",t.model)}}function _l(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.nrm(2,"holding-cash",3,1),e.EFF(4,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("explorerType",t.explorerType)("model",t.model)}}class ft{holdingShown(){"Cash"!=this.model.SecurityCategory?this.holdingSecurity.holdingShown():this.holdingCash.holdingShown()}static#e=this.\u0275fac=function(t){return new(t||ft)};static#t=this.\u0275cmp=e.VBU({type:ft,selectors:[["holding-expanded"]],viewQuery:function(t,s){if(1&t&&(e.GBs(fl,5),e.GBs(gl,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.holdingSecurity=i.first),e.mGM(i=e.lsd())&&(s.holdingCash=i.first)}},inputs:{model:"model",explorerType:"explorerType"},decls:7,vars:2,consts:[["holdingSecurity",""],["holdingCash",""],[4,"ngIf"],[3,"explorerType","model"]],template:function(t,s){1&t&&(e.EFF(0,"\n\n "),e.EFF(1,"\n "),e.DNE(2,El,5,2,"div",2),e.EFF(3,"\n\n "),e.EFF(4,"\n "),e.DNE(
15,_l,5,2,"div",2),e.EFF(6,"\n")),2&t&&(e.R7$(2),e.Y8G("ngIf","Cash"!=s.model.SecurityCategory),e.R7$(3),e.Y8G("ngIf","Cash"==s.model.SecurityCategory))},dependencies:[c.bT,ht,Ft],encapsulation:2,changeDetection:0})}function Cl(o,n){1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",13),e.EFF(3,"\n "),e.EFF(4,"\n "),e.k0s(),e.EFF(5,"\n "),e.k0s())}function bl(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1," \n "),e.j41(2,"div",16),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",17),e.EFF(6,"\n "),e.j41(7,"span",18),e.EFF(8),e.k0s(),e.EFF(9," \n "),e.nrm(10,"br"),e.EFF(11,"\n "),e.j41(12,"span",19),e.EFF(13),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()),2&o){const t=e.XpG(3).$implicit,s=e.XpG();e.R7$(3),e.JRh(s.calculateGainLossText(t)),e.R7$(4),e.Y8G("ngClass",s.calculateGainLossStyleClass(t)),e.R7$(),e.JRh(t.FormattedGainLossValue),e.R7$(4),e.Y8G("ngClass",s.calculateGainLossStyleClass(t)),e.R7$(),e.JRh(t.FormattedGainLossPercentage)}}function vl(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",16),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",17),e.EFF(6,"\n "),e.j41(7,"span",20),e.EFF(8),e.k0s(),e.EFF(9," \n "),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG(2).$implicit,i=e.XpG();e.R7$(3),e.JRh(i.headerDisplayName(t)),e.R7$(5),e.JRh(t.getValue(s))}}function Tl(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.j41(2,"div",15),e.EFF(3,"\n \n "),e.EFF(4,"\n "),e.DNE(5,bl,16,5,"div",9),e.EFF(6,"\n \n "),e.EFF(7,"\n "),e.DNE(8,vl,11,2,"div",9),e.EFF(9,"\n \n "),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=n.$implicit,s=n.index,i=e.XpG(3);e.R7$(2),e.ZvI("col-lg-",i.bootstrapColumnSpanCalculatorUtility.largeSizeColumnSpan(8,i.featureSwitch.FeatureToggles.Columns.ExplorerGroupHeader.length,s)," col-xs-12 col-md-12 col-sm-12 smaller"),e.R7$(3),e.Y8G("ngIf","GainLoss"==t.Key),e.R7$(3),e.Y8G("ngIf","GainLoss"!=t.Key)}}function yl(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n "),e.DNE(2,Tl,11,5,"span",14),e.EFF(3,"\n \n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.featureSwitch.FeatureToggles.Columns.ExplorerSecurityHeader)}}function Il(o,n){if(1&o){const t=e.RV6();e.j41(0,"accordion-panel",4),e.bIt("panelShown",function(){e.eBV(t);const i=e.sdS(36),a=e.XpG();return e.Njj(a.panelShown(i))}),e.EFF(1,"\n \n "),e.EFF(2,"\n "),e.j41(3,"div",5),e.EFF(4,"\n\n "),e.EFF(5,"\n "),e.j41(6,"div",6),e.EFF(7),e.k0s(),e.EFF(8,"\n\n "),e.EFF(9,"\n "),e.j41(10,"div",7),e.EFF(11,"\n "),e.j41(12,"div"),e.EFF(13,"Value"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div"),e.EFF(16),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",8),e.EFF(19),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n \n "),e.EFF(22,"\n "),e.DNE(23,Cl,6,0,"div",9),e.EFF(24,"\n \n "),e.EFF(25,"\n "),e.DNE(26,yl,4,1,"div",9),e.EFF(27,"\n \n \n "),e.k0s(),e.EFF(28," \n \n "),e.EFF(29,"\n "),e.nrm(30,"div",10),e.EFF(31,"\n \n "),e.EFF(32,"\n "),e.j41(33,"div",11),e.EFF(34,"\n "),e.nrm(35,"holding-expanded",12,1),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n \n "),e.k0s()}if(2&o){const t=n.$implicit,s=e.XpG();e.Y8G("showSubtitle",!1)("accordionId","holding-accordion"+s.model.Identifier)("panelId",t.Identifier),e.R7$(3),e.BMQ("id","holding-header"+t.Identifier),e.R7$(4),e.JRh(t.HoldingName),e.R7$(9),e.JRh(t.FormattedValuationValue),e.R7$(3),e.Lme("(",t.FormattedValuationPercentage," of ",s.entityName(),")"),e.R7$(4),e.Y8G("ngIf","Cash"==t.SecurityCategory),e.R7$(3),e.Y8G("ngIf","Cash"
1!=t.SecurityCategory),e.R7$(9),e.Y8G("explorerType",s.explorerType)("model",t)}}class gt{constructor(n){this.featureSwitch=n,this.bootstrapColumnSpanCalculatorUtility=Lt}panelShown(n){this.currentHoldingExpanded=n,n.holdingShown()}calculateGainLossStyleClass(n){return ce.calculateGainLossStyleClass(null==n?0:n.ValuationPercentUnrealisedGainLoss)}calculateGainLossText(n){return ce.calculateGainLossText(null==n?0:n.ValuationPercentUnrealisedGainLoss)}trackHolding(n,t){return t?t.Identifier:void 0}entityName(){return"Total Value"}headerDisplayName(n){return n.DisplayName&&n.DisplayName.length>0?n.DisplayName:"FormattedValuationPercentage"==n.Key?"% "+this.entityName():""}static#e=this.\u0275fac=function(t){return new(t||gt)(e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:gt,selectors:[["explorerAsset-expanded"]],inputs:{model:"model",explorerType:"explorerType"},decls:7,vars:3,consts:[["holdingAccordion",""],["holdingExpanded",""],[1,"animated","fadeInUp",2,"animation-duration","0.5s",3,"accordionId"],[3,"showSubtitle","accordionId","panelId","panelShown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"panelShown","showSubtitle","accordionId","panelId"],[1,"row","title",2,"margin-left","0","margin-right","0"],[1,"col-lg-2","col-xs-6","larger",2,"padding-bottom","15px"],[1,"col-xs-6","col-lg-2","pull-right","text-primary","text-right","larger",2,"padding-bottom","15px"],[1,"text-muted","pull-right",2,"font-size","0.65em","margin-top","4px"],[4,"ngIf"],[1,"subtitle"],[1,"body"],[3,"explorerType","model"],[1,"col-lg-2","col-xs-12","no-wrap","smaller"],[4,"ngFor","ngForOf"],[2,"vertical-align","center","padding-right","0px","padding-left","0px"],[1,"col-xs-6","col-sm-4","col-md-3","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"col-xs-6","col-sm-8","col-md-9","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"text-right",3,"ngClass"],[1,"text-muted",2,"font-size","0.8em",3,"ngClass"],[1,"text-primary"]],template:function(t,s){1&t&&(e.EFF(0,"\n \n "),e.j41(1,"accordion",2,0),e.EFF(3,"\n \n "),e.DNE(4,Il,39,12,"accordion-panel",3),e.EFF(5," \n "),e.k0s(),e.EFF(6," \n ")),2&t&&(e.R7$(),e.Y8G("accordionId","holding-accordion"+s.model.Identifier),e.R7$(3),e.Y8G("ngForOf",s.model.Holdings)("ngForTrackBy",s.trackHolding))},dependencies:[c.YU,c.Sq,c.bT,Q.M,re.k,ft],styles:[".smaller[_ngcontent-%COMP%]{font-size:.9em}",".larger[_ngcontent-%COMP%]{font-size:1em}","@media only screen and (max-width: 768px){.col[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}","@media only screen and (max-width: 500px){.larger[_ngcontent-%COMP%]{font-size:.9em}.smaller[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}const xl=o=>({"border-left-color":o,"border-left-width":"thick","border-left-style":"solid"});function Sl(o,n){if(1&o&&(e.j41(0,"div",14),e.EFF(1," \n "),e.j41(2,"div",15),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",16),e.EFF(6,"\n "),e.j41(7,"span",17),e.EFF(8),e.k0s(),e.EFF(9," \n "),e.nrm(10,"br"),e.EFF(11,"\n "),e.j41(12,"span",18),e.EFF(13),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()),2&o){const t=e.XpG(2).$implicit,s=e.XpG();e.R7$(3),e.JRh(s.calculateGainLossText(t)),e.R7$(4),e.Y8G("ngClass",s.calculateGainLossStyleClass(t)),e.R7$(),e.JRh(t.FormattedGainLossValue),e.R7$(4),e.Y8G("ngClass",s.calculateGainLossStyleClass(t)),e.R7$(),e.JRh(t.FormattedGainLossPercentage)}}function kl(o,n){if(1&o&&(e.j41(0,"div",19),e.EFF(1," \n "),e.j41(2,"div",15),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",16),e.EFF(6,"\n "),e.j41(7,"span",20),e.EFF(8),e.k0s(),e.EFF(9," \n "),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG().$implicit,i=e.XpG();e.R7$(3),e.JRh(i.headerDisplayName(t,s)),e.R7$(5),e.JRh(t.getValue(s))}}function Dl(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.j41(2,"div",11),e.EFF(3,"\n \n "),e.EFF(4,"\n "),e.DNE(
15,Sl,16,5,"div",12),e.EFF(6,"\n \n "),e.DNE(7,kl,11,2,"div",13),e.EFF(8,"\n \n "),e.k0s(),e.EFF(9,"\n "),e.k0s()),2&o){const t=n.$implicit,s=n.index,i=e.XpG(2);e.R7$(2),e.ZvI("col-lg-",i.bootstrapColumnSpanCalculatorUtility.largeSizeColumnSpan(8,i.featureSwitch.FeatureToggles.Columns.ExplorerGroupHeader.length,s)," col-xs-12 col-md-12 col-sm-12 smaller"),e.R7$(3),e.Y8G("ngIf","GainLoss"==t.Key),e.R7$(2),e.Y8G("ngIf","GainLoss"!=t.Key)}}function Rl(o,n){if(1&o&&(e.j41(0,"accordion-panel",3),e.EFF(1,"\n "),e.EFF(2,"\n "),e.j41(3,"div",4),e.EFF(4,"\n \n "),e.EFF(5,"\n "),e.j41(6,"div",5),e.EFF(7),e.k0s(),e.EFF(8,"\n \n "),e.EFF(9,"\n "),e.j41(10,"div",6),e.EFF(11,"\n "),e.j41(12,"div"),e.EFF(13,"Value"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div"),e.EFF(16),e.k0s(),e.EFF(17,"\n "),e.j41(18,"div",7),e.EFF(19),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n \n "),e.EFF(22,"\n "),e.DNE(23,Dl,10,5,"span",8),e.EFF(24,"\n "),e.k0s(),e.EFF(25," \n \n "),e.EFF(26,"\n "),e.j41(27,"div",9),e.EFF(28," "),e.EFF(29,"\n "),e.nrm(30,"explorerAsset-expanded",10),e.EFF(31," \n "),e.k0s(),e.EFF(32," \n "),e.k0s()),2&o){const t=n.$implicit,s=e.XpG();e.Y8G("accordionId",s.accordionId)("panelId",t.Identifier)("showSubtitle",!1)("indicatorStyle",e.eq3(13,xl,t.BackgroundColor)),e.BMQ("data-test","explorerAssetGroup"),e.R7$(3),e.BMQ("id","asset-header"+t.Identifier),e.R7$(4),e.JRh(t.DisplayName),e.R7$(9),e.JRh(t.FormattedLatestValue),e.R7$(3),e.Lme("(",t.FormattedPercentageOfValuation," of ",s.entityName(),")"),e.R7$(4),e.Y8G("ngForOf",s.featureSwitch.FeatureToggles.Columns.ExplorerGroupHeader),e.R7$(7),e.Y8G("explorerType",s.explorerType)("model",t)}}class Et{constructor(n){this.featureSwitch=n,this.bootstrapColumnSpanCalculatorUtility=Lt}calculateGainLossStyleClass(n){return ce.calculateGainLossStyleClass(null==n?0:n.GainLossPercentage)}calculateGainLossText(n){return ce.calculateGainLossText(null==n?0:n.GainLossPercentage)}trackAsset(n,t){return t?t.Identifier:void 0}entityName(){return"Total Value"}headerDisplayName(n,t){return n.DisplayName&&n.DisplayName.length>0?n.DisplayName:"NoOfHoldings"==n.Key?"Cash"==t.SecurityCategory?"No. of Accounts":"No. of Holdings":"FormattedPercentageOfValuation"==n.Key?"% "+this.entityName():""}static#e=this.\u0275fac=function(t){return new(t||Et)(e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:Et,selectors:[["explorerAsset"]],inputs:{assets:"assets",accordionId:"accordionId",explorerType:"explorerType"},decls:7,vars:3,consts:[["exploreraccordion",""],[3,"accordionId"],[3,"accordionId","panelId","showSubtitle","indicatorStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"accordionId","panelId","showSubtitle","indicatorStyle"],[1,"row","title",2,"margin-left","0","margin-right","0"],[1,"col-lg-2","col-xs-5","larger",2,"padding-bottom","15px"],[1,"col-xs-7","col-lg-2","pull-right","text-primary","text-right","larger",2,"padding-bottom","15px"],[1,"text-muted","pull-right",2,"font-size","0.65em","margin-top","4px"],[4,"ngFor","ngForOf"],[1,"body",2,"margin-left","-15px","margin-right","-15px"],[3,"explorerType","model"],[2,"vertical-align","center","padding-right","0px","padding-left","0px"],["style","padding-bottom:8px",4,"ngIf"],["style","padding-bottom:8px; padding-right: 0px",4,"ngIf"],[2,"padding-bottom","8px"],[1,"col-xs-6","col-sm-4","col-md-3","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"col-xs-6","col-sm-8","col-md-9","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"text-right",3,"ngClass"],[1,"text-muted",2,"font-size","0.8em",3,"ngClass"],[2,"padding-bottom","8px","padding-right","0px"],[1,"text-primary"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"accordion",1,0
1),e.EFF(3,"\n "),e.DNE(4,Rl,33,15,"accordion-panel",2),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n ")),2&t&&(e.R7$(),e.Y8G("accordionId",s.accordionId),e.R7$(3),e.Y8G("ngForOf",s.assets)("ngForTrackBy",s.trackAsset))},dependencies:[c.YU,c.Sq,c.bT,Q.M,re.k,gt],styles:[".smaller[_ngcontent-%COMP%]{font-size:.9em}",".larger[_ngcontent-%COMP%]{font-size:1.1em}","@media only screen and (max-width: 768px){.col[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}","@media only screen and (max-width: 500px){.larger[_ngcontent-%COMP%]{font-size:1em}.smaller[_ngcontent-%COMP%]{font-size:.9em}}"],changeDetection:0})}const jl=["datePicker"],wl=o=>({"filters-row":o}),Al=()=>({"border-left-width":"thick","border-left-style":"solid"});function Pl(o,n){1&o&&(e.j41(0,"p"),e.EFF(1,"Breakdown"),e.k0s())}function Ml(o,n){if(1&o){const t=e.RV6();e.j41(0,"holdings-breakdownPicker",23),e.bIt("onBreakdownSelected",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onBreakdownSelected(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("isStructuredProducts",t.isStructuredProducts)("valuationType",t.explorerType)("defaultBreakdownOption",t.selectedBreakdownOption),e.BMQ("data-test","explorerBreakdownPicker")}}function Gl(o,n){if(1&o){const t=e.RV6();e.j41(0,"holdings-breakdownPicker",23),e.bIt("onBreakdownSelected",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onBreakdownSelected(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("isStructuredProducts",t.isStructuredProducts)("valuationType",t.explorerType)("defaultBreakdownOption",t.selectedStru
1cturedProductBreakdownOption),e.BMQ("data-test","explorerStructuredProductsBreakdownPicker")}}function Vl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",24),e.EFF(1,"\n "),e.j41(2,"p"),e.EFF(3,"\n "),e.j41(4,"label"),e.EFF(5,"\n "),e.j41(6,"input",25),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.showIndirectHoldings,i)||(a.showIndirectHoldings=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.includeIndirectHoldingsChange())}),e.k0s(),e.EFF(7," Show Indirect Holdings\n "),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(6),e.R50("ngModel",t.showIndirectHoldings)}}function Nl(o,n){if(1&o&&(e.j41(0,"div",5),e.EFF(1,"\n "),e.j41(2,"div",20),e.EFF(3,"\n "),e.DNE(4,Pl,2,0,"p",14),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n\n "),e.j41(7,"div",7),e.EFF(8,"\n "),e.EFF(9,"\n "),e.DNE(10,Ml,1,4,"holdings-breakdownPicker",21),e.EFF(11,"\n "),e.DNE(12,Gl,1,4,"holdings-breakdownPicker",21),e.EFF(13,"\n\n "),e.DNE(14,Vl,10,1,"div",22),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("ngIf",1!=t.featureSwitch.FeatureToggles.HideExplorerBreakdown),e.R7$(6),e.Y8G("ngIf",!t.isStructuredProducts),e.R7$(2),e.Y8G("ngIf",t.isStructuredProducts),e.R7$(2),e.Y8G("ngIf",t.featureSwitch.FeatureToggles.IncludeIndirectHoldings)}}function Bl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.EFF(2,"\n "),e.j41(3,"portfolioSelector",26),e.bIt("selectionList",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.setFilteredPortfolioIdList(i))}),e.k0s(),e.EFF(4,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("client",t.client)}}function Yl(o,n){if(1&o){const t=e.RV6();e.EFF(0,"\n "),e.j41(1,"p-button",30),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.onPSelectOptionSelected(i.value))}),e.EFF(2),e.k0s(),e.EFF(3,"\n ")}if(2&o){const t=n.$implicit;e.R7$(2),e.SpI("\n ",t.label,"\n ")}}function Xl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",27),e.EFF(1,"\n "),e.j41(2,"p-selectButton",28),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.isStructuredProducts,i)||(a.isStructuredProducts=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateDataSet())}),e.EFF(3,"\n "),e.DNE(4,Yl,4,1,"ng-template",29),e.EFF(5,"\n "),e.k0s(),e.EFF(6,"\n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("disabled",null==t.valuation&&null==t.error)("options",t.selectViewOptions),e.R50("ngModel",t.isStructuredProducts)}}function Ol(o,n){if(1&o&&e.nrm(0,"holdings-chart",31),2&o){const t=e.XpG();e.Y8G("title",!1)("client",t.client)("portfolio",t.portfolio)("valuationType",t.explorerType)("valuation",t.valuation)("selectedBreakdownOption",t.isStructuredProducts?t.selectedStru
1cturedProductBreakdownOption:t.selectedBreakdownOption)("enabledChartTypes",t.featureSwitch.FeatureToggles.ChartCustomisations.ExplorerChartTypes)("cursorOnHover","pointer")("isStructuredProducts",t.isStructuredProducts)}}function Ll(o,n){if(1&o&&(e.j41(0,"div",41),e.EFF(1," \n "),e.j41(2,"div",42),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",43),e.EFF(6,"\n "),e.j41(7,"span",44),e.EFF(8),e.k0s(),e.EFF(9," \n "),e.nrm(10,"br"),e.EFF(11,"\n "),e.j41(12,"span",45),e.EFF(13),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()),2&o){const t=e.XpG(3);e.R7$(3),e.JRh(t.calculateGainLossText()),e.R7$(4),e.Y8G("ngClass",t.calculateGainLossStyleClass()),e.R7$(),e.JRh(null==t.valuation?null:t.valuation.FormattedGainLossValue),e.R7$(4),e.Y8G("ngClass",t.calculateGainLossStyleClass()),e.R7$(),e.JRh(null==t.valuation?null:t.valuation.FormattedGainLossPercentage)}}function Ul(o,n){1&o&&(e.j41(0,"span"),e.EFF(1,"\xa0"),e.k0s())}function Hl(o,n){1&o&&e.nrm(0,"div")}function Wl(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"div",48),e.EFF(2),e.k0s(),e.EFF(3,"\n ")),2&o){const t=e.XpG(2).$implicit,s=e.XpG(2);e.R7$(2),e.JRh(t.getValue(s.valuation))}}function zl(o,n){1&o&&(e.EFF(0,"\n "),e.j41(1,"div",48),e.EFF(2,"-"),e.k0s(),e.EFF(3,"\n "))}function Ql(o,n){if(1&o&&(e.j41(0,"div",46),e.EFF(1,"\n "),e.j41(2,"div",42),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",43),e.EFF(6,"\n "),e.DNE(7,Hl,1,0,"div",47),e.EFF(8,"\n "),e.DNE(9,Wl,4,1,"ng-template",null,1,e.C5r),e.EFF(11,"\n "),e.DNE(12,zl,4,0,"ng-template",null,2,e.C5r),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()),2&o){const t=e.sdS(10),s=e.sdS(13),i=e.XpG().$implicit,a=e.XpG(2);e.R7$(3),e.JRh(a.headerDisplayName(i)),e.R7$(4),e.Y8G("ngIf",a.valuation)("ngIfThen",t)("ngIfElse",s)}}function Zl(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.j41(2,"div",38),e.EFF(3,"\n "),e.EFF(4,"\n "),e.DNE(5,Ll,16,5,"div",39),e.EFF(6,"\n \n "),e.EFF(7,"\n "),e.DNE(8,Ul,2,0,"span",14),e.EFF(9,"\n \n "),e.EFF(10,"\n "),e.DNE(11,Ql,16,4,"div",40),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n \n "),e.k0s()),2&o){const t=n.$implicit,s=n.index,i=e.XpG(2);e.R7$(2),e.ZvI("col-lg-",i.bootstrapColumnSpanCalculatorUtility.largeSizeColumnSpan(8,i.featureSwitch.FeatureToggles.Columns.ExplorerGroupHeader.length,s)," col-xs-12 col-md-12 col-sm-12 smaller"),e.R7$(3),e.Y8G("ngIf","GainLoss"==t.Key),e.R7$(3),e.Y8G("ngIf","FormattedPercentageOfValuation"==t.Key),e.R7$(3),e.Y8G("ngIf","GainLoss"!=t.Key&&"FormattedPercentageOfValuation"!=t.Key)}}function Jl(o,n){if(1&o&&(e.j41(0,"div"),e.EFF(1,"\n\n "),e.EFF(2,"\n "),e.j41(3,"accordion-panel",32),e.EFF(4,"\n "),e.EFF(5,"\n "),e.j41(6,"div",33),e.EFF(7,"\n "),e.j41(8,"div",34),e.EFF(9,"All"),e.k0s(),e.EFF(10,"\n \n "),e.EFF(11,"\n "),e.j41(12,"div",35),e.EFF(13,"\n "),e.j41(14,"div"),e.EFF(15,"Total Value"),e.k0s(),e.EFF(16,"\n "),e.j41(17,"div"),e.EFF(18),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n \n "),e.DNE(21,Zl,14,6,"span",36),e.EFF(22,"\n \n "),e.k0s(),e.EFF(23,"\n \n "),e.k0s(),e.EFF(24,"\n "),e.nrm(25,"explorerAsset",37),e.EFF(26,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("accordionId","totalrow-"+t.accordionId)("panelId","totalpanel-"+t.accordionId)("allowOpen",!1)("showSubtitle",!1)("indicatorStyle",e.lJ4(12,Al)),e.R7$(3),e.BMQ("id","asset-header"+(null==t.portfolio?null:t.portfolio.Id)),e.R7$(12),e.JRh(null==t.valuation?null:t.valuation.FormattedLatestValue),e.R7$(3),e.Y8G("ngForOf",t.featureSwitch.FeatureToggles.Columns.ExplorerGroupHeader),e.R7$(4),e.Y8G("explorerType",t.explorerType)("assets",t.assets)("accordionId",t.accordionId),e.BMQ("data-test","explorerAssetGroupList")}}class _t{get accordionId(){return"explorer-accordion-client"+this.client.ClientId}get startDate(){return this.selectedEntity instanceof W.r?this.selectedEntity.InceptionDate??this.client.TakeOnDate:this.client.TakeOnDate}get selectedEntity(){return!this.portfolioSelector?.allPortfoliosSelected&&this.filteredPortfolioIds?.length>0?1===this.selectedPortfolios.length?this.selectedPortfolios[0]:this.selectedPortfolios:this.client}get selectedPortfolios(){return this.client.Portfolios.filter(n=>this.filteredPortfolioIds?.indexOf(n.Id)>-1)}constructor(n,t,s,i){this.valuationStore=n,this.changeDetector=t,this.userPreferences=s,this.featureSwitch=i,this.bootstrapColumnSpanCalculatorUtility=Lt,this.showIndirectHoldings=!1,this.selectedValuationDate=new Date,this.isStru
1cturedProducts=!1,this.holdings=[],this.structuredProducts=[],this.filteredPortfolioIds=null,this.featureSwitch.FeatureToggles.StructuredProducts&&(this.assetDatasetUtility=new Ot.a(this.featureSwitch,!0),this.selectedStructuredProductBreakdownOption=this.assetDatasetUtility.defaultBreakdownOption()),this.assetDatasetUtility=new Ot.a(this.featureSwitch,!1),this.selectedBreakdownOption=this.assetDatasetUtility.defaultBreakdownOption()}ngOnInit(){null!=this.userPreferences.Settings&&this.featureSwitch.FeatureToggles.IncludeIndirectHoldings&&(this.selectedEntity instanceof W.r?this.showIndirectHoldings=this.userPreferences.Settings.IncludeIndirectHoldingsForPortfolioIds.has(this.selectedEntity.Id):this.showIndirectHoldings=this.userPreferences.Settings.IncludeIndirectHoldingsForClientIds.has(this.client.Id+""));let n=h(this.startDate).clone();n=n.subtract(1,"day"),$(this.datePicker.nativeElement).datetimepicker({format:"D MMMM YYYY",extraFormats:["D/M/YYYY","D-M-YYYY","D MMM YYYY"],maxDate:new Date,minDate:n.toDate(),disabledDates:[n.toDate()],defaultDate:this.selectedValuationDate}),$(this.datePicker.nativeElement).on("dp.change",t=>{this.onSelectDate(t.date)}),this.setupSubscriptions(),this.selectViewOptions=[{label:this.featureSwitch.FeatureToggles.Wording.StructuredProductsSelectButtonHoldingsText,value:!1},{label:"Structured Products",value:!0}]}ngAfterViewInit(){this.portfolioSelector&&null!=this.portfolioSelector.getSelectedPortfolios()&&(this.filteredPortfolioIds=this.portfolioSelector.getSelectedPortfolios()),this.loadValuation()}setupSubscriptions(){this.valuationStoreClientSubscription=this.valuationStore.valuationForPortfolio$.pipe((0,F.p)(n=>this.isAPortfolioValuationIWant(n))).subscribe(n=>{(!this.valuation||!this.valuation.equals(n.valuation))&&(this.valuation=n.valuation,this.error=n.error,null==this.error&&(this.setViewData(),this.updateDataSet()),this.changeDetector.markForCheck())}),this.valuationStorePortfolioSubscription=this.valuationStore.valuationForClient$.pipe((0,F.p)(n=>this.isAClientValuationIWant(n))).subscribe(n=>{(!this.valuation||!this.valuation.equals(n.valuation))&&(this.valuation=n.valuation,this.error=n.error,null==this.error&&(this.setViewData(),this.updateDataSet()),this.changeDetector.markForCheck())}),this.valuationStoreMultiplePortfolioSubscription=this.valuationStore.valuationForMultiplePortfolios$.pipe((0,F.p)(n=>this.isAMultiplePortfolioValuationIWant(n))).subscribe(n=>{(!this.valuation||!this.valuation.equals(n.valuation))&&(this.valuation=n.valuation,this.error=n.error,null==this.error&&(this.setViewData(),this.updateDataSet()),this.changeDetector.markForCheck())})}ngOnDestroy(){this.valuationStoreClientSubscription&&this.valuationStoreClientSubscription.unsubscribe(),this.valuationStorePortfolioSubscription&&this.valuationStorePortfolioSubscription.unsubscribe(),this.valuationStoreMultiplePortfolioSubscription&&this.valuationStoreMultiplePortfolioSubscription.unsubscribe()}loadValuation(){if(this.error=null,this.valuation=null,this.assets=null,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.selectedEntity instanceof W.r){let n=de.e.getReportingStructureId(this.client,this.selectedEntity,this.featureSwitch.FeatureToggles);this.valuationStore.loadValuationForPortfolio(this.selectedEntity.ClientId,this.selectedEntity.Id,this.selectedValuationDate,this.showIndirectHoldings,n)}else if(this.selectedEntity instanceof Xt.K){let n=de.e.getReportingStructureId(this.client,null,this.featureSwitch.FeatureToggles);this.valuationStore.loadValuationForClient(this.client.ClientId,this.selectedValuationDate,this.showIndirectHoldings,n)}else{let n=new Or.R,t=de.e.getReportingStructureId(this.client,null,this.featureSwitch.FeatureToggles);n.PortfolioIds=this.filteredPortfolioIds,this.valuationStore.loadValuationForMultiplePortfolios(this.client.ClientId,this.selectedValuationDate,this.showIndirectHoldings,t,n)}}updateDataSet(){if(null==this.valuation)return;this.featureSwitch.FeatureToggles.StructuredProducts&&(!0===this.isStructuredProducts?this.valuation.holdings=this.structuredProducts:this.valuation.holdings=this.holdings);
1let n=new Ot.a(this.featureSwitch,this.isStructuredProducts);this.selectedEntity instanceof W.r?this.assets=n.groupAssets(null,this.selectedEntity.Id,this.valuation.ValuationCurrency,this.valuation,this.isStructuredProducts?this.selectedStructuredProductBreakdownOption:this.selectedBreakdownOption):this.assets=n.groupAssets(this.client.ClientId,null,this.valuation.ValuationCurrency,this.valuation,this.isStructuredProducts?this.selectedStructuredProductBreakdownOption:this.selectedBreakdownOption)}includeIndirectHoldingsChange(){this.valuation=null,this.assets=null,this.featureSwitch.FeatureToggles.IncludeIndirectHoldings&&(this.selectedEntity instanceof W.r?(this.showIndirectHoldings?this.userPreferences.Settings.IncludeIndirectHoldingsForPortfolioIds.add(this.selectedEntity.Id):this.userPreferences.Settings.IncludeIndirectHoldingsForPortfolioIds.delete(this.selectedEntity.Id),this.userPreferences.saveSettings("IncludeIndirectHoldingsForPortfolioIds",this.userPreferences.Settings.IncludeIndirectHoldingsForPortfolioIds)):(this.showIndirectHoldings?this.userPreferences.Settings.IncludeIndirectHoldingsForClientIds.add(this.client.Id+""):this.userPreferences.Settings.IncludeIndirectHoldingsForClientIds.delete(this.client.Id+""),this.userPreferences.saveSettings("IncludeIndirectHoldingsForClientIds",this.userPreferences.Settings.IncludeIndirectHoldingsForClientIds))),this.loadValuation()}isAClientValuationIWant(n){if(!this.client||this.filteredPortfolioIds&&this.filteredPortfolioIds.length!=this.client.Portfolios.length||this.selectedEntity instanceof W.r)return!1;let t=this.client.Id.toString(),s=de.e.getReportingStructureId(this.client,null,this.featureSwitch.FeatureToggles);return null!=n&&n.clientId==t&&h(n.date).isSame(this.selectedValuationDate,"day")&&n.includeIndirectHoldings==this.showIndirectHoldings&&n.reportingStructureId==s}isAPortfolioValuationIWant(n){if(!(this.selectedEntity instanceof W.r))return!1;let t=de.e.getReportingStructureId(this.client,this.selectedEntity,this.featureSwitch.FeatureToggles);return null!=n&&n.clientId==this.selectedEntity.ClientId&&n.portfolioId==this.selectedEntity.Id&&h(n.date).isSame(this.selectedValuationDate,"day")&&n.includeIndirectHoldings==this.showIndirectHoldings&&n.reportingStructureId==t}isAMultiplePortfolioValuationIWant(n){if(!this.filteredPortfolioIds||this.selectedEntity instanceof Xt.K||this.selectedEntity instanceof W.r)return!1;let t=de.e.getReportingStructureId(this.client,null,this.featureSwitch.FeatureToggles);return null!=n&&n.clientId==this.client.Id.toString()&&se.isEqual(n.portfolioIds.sort(),this.filteredPortfolioIds.sort())&&h(n.date).isSame(this.selectedValuationDate,"day")&&n.includeIndirectHoldings==this.showIndirectHoldings&&n.reportingStructureId==t}onBreakdownSelected(n){this.isStructuredProducts?this.selectedStru
1cturedProductBreakdownOption=n:this.selectedBreakdownOption=n,this.updateDataSet(),this.changeDetector.markForCheck()}onSelectDate(n){n&&(this.valuation=null,this.changeDetector.markForCheck(),this.selectedValuationDate=n.toDate(),this.loadValuation())}calculateGainLossStyleClass(){return null==this.valuation||0==this.valuation.holdings.length?"":ce.calculateGainLossStyleClass(null==this.valuation?0:this.valuation.GainLossPercentage)}calculateGainLossText(){return null==this.valuation||0==this.valuation.holdings.length?"":ce.calculateGainLossText(null==this.valuation?0:this.valuation.GainLossPercentage)}headerDisplayName(n){return n.DisplayName&&n.DisplayName.length>0?n.DisplayName:"NoOfHoldings"==n.Key?"No. of Holdings":""}setFilteredPortfolioIdList(n){this.filteredPortfolioIds=[];for(let t of n)this.filteredPortfolioIds.push(t.id);this.loadValuation()}setViewData(){this.holdings=this.valuation.holdings.filter(n=>"StructuredProduct"!==n.AssetAllocation),this.structuredProducts=this.valuation.holdings.filter(n=>"StructuredProduct"===n.AssetAllocation)}onPSelectOptionSelected(n){n.value!==this.isStructuredProducts&&(this.isStructuredProducts=n.value)}static#e=this.\u0275fac=function(t){return new(t||_t)(e.rXU(Ge.dq),e.rXU(e.gRc),e.rXU(Lr.D),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:_t,selectors:[["explorer"]],viewQuery:function(t,s){if(1&t&&(e.GBs(Z.lC,5),e.GBs(jl,7)),2&t){let i;e.mGM(i=e.lsd())&&(s.portfolioSelector=i.first),e.mGM(i=e.lsd())&&(s.datePicker=i.first)}},inputs:{client:"client",explorerType:"explorerType"},decls:56,vars:11,consts:[["datePicker",""],["showCount",""],["noCount",""],[1,"row"],[1,"col-md-4"],[1,"row","form-group"],[1,"col-md-3","col-form-label"],[1,"col-md-9"],[1,"input-group","date"],["type","text","data-test","explorerDatePicker",1,"form-control"],[1,"input-group-addon"],[1,"fa","fa-calendar"],["class","row form-group",4,"ngIf"],[2,"padding-bottom","30px",3,"ngClass"],[4,"ngIf"],["class","selector-button",4,"ngIf"],[1,"col-md-8",2,"margin-bottom","5px"],[3,"tryAgain","error","itemName"],[3,"visible"],["style","width: 100%",3,"title","client","portfolio","valuationType","valuation","selectedBreakdownOption","enabledChartTypes","cursorOnHover","isStructuredProducts",4,"ngIf"],[1,"col-md-3"],[3,"isStructuredProducts","valuationType","defaultBreakdownOption","onBreakdownSelected",4,"ngIf"],["class","checkbox",4,"ngIf"],[3,"onBreakdownSelected","isStructuredProducts","valuationType","defaultBreakdownOption"],[1,"checkbox"],["data-test","indirectHoldingsCheckbox","type","checkbox",3,"ngModelChange","ngModel"],[3,"selectionList","client"],[1,"selector-button"],["optionLabel","label","optionValue","value","data-test","structuredProductsSelectButton",3,"ngModelChange","disabled","options","ngModel"],["pTemplate","item"],[3,"click"],[2,"width","100%",3,"title","client","portfolio","valuationType","valuation","selectedBreakdownOption","enabledChartTypes","cursorOnHover","isStructuredProducts"],[3,"accordionId","panelId","allowOpen","showSubtitle","indicatorStyle"],[1,"row","title",2,"margin-left","0","margin-right","0"],[1,"col-lg-2","col-xs-5","larger",2,"padding-bottom","30px"],["data-test","explorerTotalValueFigure",1,"col-xs-7","col-lg-2","pull-right","text-primary","text-right","larger",2,"padding-bottom","30px"],[4,"ngFor","ngForOf"],[3,"explorerType","assets","accordionId"],[2,"vertical-align","center","padding-right","0px","padding-left","0px"],["style","padding-bottom:8px;",4,"ngIf"],["style","padding-bottom:8px; padding-right: 0px",4,"ngIf"],[2,"padding-bottom","8px"],[1,"col-xs-6","col-sm-4","col-md-3","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"col-xs-6","col-sm-8","col-md-9","col-lg-12",2,"padding-bottom","8px","padding-right","0px"],[1,"text-right",3,"ngClass"],[1,"text-muted",2,"font-size","0.8em",3,"ngClass"],[2,"padding-bottom","8px","padding-right","0px"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"text-primary"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n "),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3,"\n "),e.j41(4,"div",4),e.EFF(5,"\n\n "),e.EFF(6,"\n "),e.j41(7,"div",5),e.EFF(8,"\n\n "),e.j41(9,"div",6),e.EFF(10,"\n "),e.j41(11,"p"),e.EFF(12,"As At"),e.k0s(),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n\n "),e.j41(15,"div",7),e.EFF(16,"\n "),e.j41(17,"div",8,0),e.EFF(19,"\n "),e.nrm(20,"input",9),e.EFF(21,"\n "),e.j41(22,"span",10),e.EFF(23,"\n "),e.nrm(24,"span",11),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n\n "),e.k0s(),e.EFF(29,"\n\n "),e.EFF(30,"\n "),e.DNE(31,Nl,17,4,"div",12),e.
1EFF(32,"\n\n "),e.j41(33,"div",13),e.EFF(34,"\n "),e.EFF(35,"\n "),e.DNE(36,Bl,5,1,"div",14),e.EFF(37,"\n\n "),e.DNE(38,Xl,7,3,"div",15),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n \n "),e.k0s(),e.EFF(41,"\n\n "),e.EFF(42,"\n "),e.j41(43,"div",16),e.EFF(44,"\n "),e.j41(45,"error",17),e.bIt("tryAgain",function(){return e.eBV(i),e.Njj(s.loadValuation())}),e.k0s(),e.EFF(46,"\n "),e.nrm(47,"loading",18),e.EFF(48,"\n "),e.DNE(49,Ol,1,9,"holdings-chart",19),e.EFF(50,"\n "),e.k0s(),e.EFF(51,"\n "),e.k0s(),e.EFF(52,"\n\n "),e.EFF(53,"\n "),e.DNE(54,Jl,27,13,"div",14),e.EFF(55,"\n ")}2&t&&(e.R7$(31),e.Y8G("ngIf",s.valuation&&!s.error),e.R7$(2),e.Y8G("ngClass",e.eq3(9,wl,s.featureSwitch.FeatureToggles.StructuredProducts)),e.R7$(3),e.Y8G("ngIf",s.featureSwitch.FeatureToggles.ViewPortfoliosAtClientLevel),e.R7$(2),e.Y8G("ngIf",s.featureSwitch.FeatureToggles.StructuredProducts),e.R7$(7),e.Y8G("error",s.error)("itemName","Explorer details"),e.R7$(2),e.Y8G("visible",null==s.valuation&&null==s.error),e.R7$(2),e.Y8G("ngIf",s.valuation&&!s.error),e.R7$(5),e.Y8G("ngIf",s.assets&&null==s.error))},dependencies:[c.YU,c.Sq,c.bT,p.Zm,p.BC,p.vS,C.q,re.k,S.A,Z.lC,Ur.O,Hr.P,Wr.JC,pn.Ei,Et],styles:[".smaller[_ngcontent-%COMP%]{font-size:.9em}",".larger[_ngcontent-%COMP%]{font-size:1.1em}","#chartContained[_ngcontent-%COMP%]{float:left;width:95%}","#buttonContained[_ngcontent-%COMP%]{float:left;width:5%;text-align:right}","#buttonContained[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;display:block}","#buttonContained[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:.7em}","@media only screen and (max-width: 768px){.col[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}","@media only screen and (max-width: 500px){.larger[_ngcontent-%COMP%]{font-size:1em}.smaller[_ngcontent-%COMP%]{font-size:.9em}}",".filters-row[_ngcontent-%COMP%]{display:flex;gap:10px;width:auto;flex-wrap:wrap}"],changeDetection:0})}class Ct{constructor(){this.valuationTypeEnum=mt.K}static#e=this.\u0275fac=function(t){return new(t||Ct)};static#t=this.\u0275cmp=e.VBU({type:Ct,selectors:[["client-expanded-explorer"]],inputs:{client:"client"},decls:6,vars:4,consts:[[1,"pull-right"],[3,"page","section"],[3,"explorerType","client"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div",0),e.nrm(2,"context-help",1),e.k0s(),e.EFF(3,"\n "),e.nrm(4,"explorer",2),e.EFF(5,"\n ")),2&t&&(e.R7$(2),e.Y8G("page","ClientOverview")("section","Explorer"),e.R7$(2),e.Y8G("explorerType",s.valuationTypeEnum.Client)("client",s.client))},dependencies:[J.K,_t],encapsulation:2})}var ne,mn=l(49714);function Kl(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",10),e.EFF(3,"\n "),e.j41(4,"span",11),e.bIt("click",function(){e.eBV(t);const i=e.sdS(15),a=e.XpG();return e.Njj(a.onDownloadClick(i,a.clientRegistrationFormTypeEnum.Isa))}),e.EFF(5,"\n "),e.nrm(6,"span",12),e.EFF(7,"\xa0\xa0ISA Form\n "),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",13),e.EFF(11,"\n "),e.j41(12,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.sdS(15),a=e.XpG();return e.Njj(a.onDownloadClick(i,a.clientRegistrationFormTypeEnum.Isa))}),e.EFF(13,"\n "),e.nrm(14,"span",15,1),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s()}}function ql(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",10),e.EFF(3,"\n "),e.j41(4,"span",11),e.bIt("click",function(){e.eBV(t);const i=e.sdS(15),a=e.XpG();return e.Njj(a.onDownloadClick(i,a.clientRegistrationFormTypeEnum.IsaTransfer))}),e.EFF(5,"\n "),e.nrm(6,"span",12),e.EFF(7,"\xa0\xa0ISA Transfer Form\n "),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",13),e.EFF(11,"\n "),e.j41(12,"button",18),e.bIt("click",function(){e.eBV(t);const i=e.sdS(15),a=e.XpG();return e.Njj(a.onDownloadClick(i,a.clientRegistrationFormTypeEnum.IsaTransfer))}),e.EFF(13,"\n "),e.nrm(14,"span",15,2),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s()}}class bt{constructor(n,t,s){this.documentsStore=n,this.infrastru
1ctureStore=t,this.changeDetector=s,this.clientRegistrationFormTypeEnum=Ye.hC,this.infrastructureSubscription=null,this.productTypes=null,this.error=null,this.loading=!0}clientHasIsa(){if(!this.productTypes)return!1;let n=this.productTypes.find(s=>"isa"==s.Name.toLowerCase());for(var t of this.client.ActivePortfolios)if(t.ProductTypeId==n.Id)return!0;return!1}ngOnInit(){this.setupObservables()}setupObservables(){let n=(0,mn.zV)(this.infrastructureStore.allProductTypes$);this.infrastructureSubscription=n.pipe((0,F.p)(t=>null!=t[0])).subscribe(t=>{null==t[0].error?this.productTypes=t[0].productTypes:(this.error=t[0].error,this.productTypes=null),this.loading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),this.loadData()}loadData(){this.infrastructureStore.loadProductTypes()}onDownloadClick(n,t){"disabled"!=$(n).parent("button").attr("disabled")&&($(n).parent("button").attr("disabled","disabled"),$(n).addClass("fa-spin"),$(n).addClass("fa-spinner"),$(n).removeClass("fa-download"),this.documentsStore.downloadOnboardingForm(this.client.ClientId,t).subscribe(s=>{$(n).parent("button").removeAttr("disabled"),$(n).removeClass("fa-spin"),$(n).removeClass("fa-spinner"),$(n).addClass("fa-download")},s=>{$(n).parent("button").removeAttr("disabled"),$(n).removeClass("fa-spin"),$(n).removeClass("fa-spinner"),$(n).addClass("fa-download"),alert("Sorry, there was an error downloading the form. If this continues happening, please report it to your support contact")}))}ngOnDestroy(){this.infrastructureSubscription&&this.infrastructureSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||bt)(e.rXU(Ye.O7),e.rXU(Ze.dN),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:bt,selectors:[["client-expanded-registrationdocuments"]],inputs:{client:"client"},decls:61,vars:7,consts:[["downloadRegistrationFormIcon",""],["downloadIsaFormIcon",""],["downloadIsaTransferFormIcon",""],[1,"pull-right"],[3,"page","section"],[3,"visible"],[3,"tryAgain","error","itemName"],[1,"row",2,"margin-left","0.5em"],[1,"rowSpacing"],[1,"col-sm-12"],[1,"col-sm-2","text-primary"],[2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-file-o"],[1,"col-sm-10","text-primary"],["aria-label","Download Registration Form",1,"btn","btn-xs","btn-info",3,"click"],["aria-hidden","true",1,"fa","fa-download"],[4,"ngIf"],["aria-label","Download ISA Form",1,"btn","btn-xs","btn-info",3,"click"],["aria-label","Download ISA Tranfer Form",1,"btn","btn-xs","btn-info",3,"click"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n "),e.j41(1,"div",3),e.EFF(2,"\n "),e.nrm(3,"context-help",4),e.EFF(4,"\n "),e.k0s(),e.EFF(5,"\n\n "),e.nrm(6,"loading",5),e.EFF(7,"\n "),e.j41(8,"error",6),e.bIt("tryAgain",function(){return e.eBV(i),e.Njj(s.loadData())}),e.k0s(),e.EFF(9,"\n\n "),e.j41(10,"div"),e.EFF(11,"\n "),e.j41(12,"h3",7),e.EFF(13,"Please click the icons to download registration forms"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"div",8),e.EFF(16,"\n "),e.j41(17,"div",9),e.EFF(18,"\n "),e.j41(19,"div"),e.EFF(20,"\n "),e.j41(21,"div",10),e.EFF(22,"\n "),e.j41(23,"span",11),e.bIt("click",function(){e.eBV(i);const r=e.sdS(34);return e.Njj(s.onDownloadClick(r,s.clientRegistrationFormTypeEnum.Registration))}),e.EFF(24,"\n "),e.nrm(25,"span",12),e.EFF(26,"\xa0\xa0Registration Form\n "),e.k0s(),e.EFF(27,"\n "),e.k0s(),e.EFF(28,"\n "),e.j41(29,"div",13),e.EFF(30,"\n "),e.j41(31,"button",14),e.bIt("click",function(){e.eBV(i);const r=e.sdS(34);return e.Njj(s.onDownloadClick(r,s.clientRegistrationFormTypeEnum.Registration))}),e.EFF(32,"\n "),e.nrm(33,"span",15,0),e.EFF(35,"\n "),e.k0s(),e.EFF(36,"\n "),e.k0s(),e.EFF(37,"\n "),e.k0s(),e.EFF(38,"\n "),e.k0s(),e.EFF(39,"\n "),e.k0s(),e.EFF(40,"\n "),e.j41(41,"div",8),e.
1EFF(42,"\n "),e.j41(43,"div",9),e.EFF(44,"\n "),e.DNE(45,Kl,19,0,"div",16),e.EFF(46,"\n "),e.k0s(),e.EFF(47,"\n "),e.k0s(),e.EFF(48,"\n "),e.j41(49,"div",8),e.EFF(50,"\n "),e.j41(51,"div",9),e.EFF(52,"\n "),e.DNE(53,ql,19,0,"div",16),e.EFF(54,"\n "),e.k0s(),e.EFF(55,"\n "),e.k0s(),e.EFF(56,"\n "),e.j41(57,"div",8),e.EFF(58,"\xa0"),e.k0s(),e.EFF(59,"\n "),e.k0s(),e.EFF(60,"\n\n ")}2&t&&(e.R7$(3),e.Y8G("page","RegistrationDocuments")("section","RegistrationDocuments"),e.R7$(3),e.Y8G("visible",s.loading),e.R7$(2),e.Y8G("error",s.error)("itemName","registration documents"),e.R7$(37),e.Y8G("ngIf",s.clientHasIsa()),e.R7$(8),e.Y8G("ngIf",s.clientHasIsa()&&(null==s.client?null:s.client.ISATransfer)))},dependencies:[c.bT,C.q,J.K,S.A],styles:[".rowSpacing[_ngcontent-%COMP%]{min-height:2em}"]})}function $l(o,n){1&o&&e.nrm(0,"loading")}function ec(o,n){1&o&&e.nrm(0,"error")}function tc(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",3),e.EFF(3),e.k0s(),e.EFF(4,"\n "),e.j41(5,"button",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return e.Njj(a.openProductType(i.ProductType))}),e.EFF(6,"\n "),e.nrm(7,"span",5),e.EFF(8,"\n "),e.j41(9,"span"),e.EFF(10,"Open an ISA"),e.k0s(),e.EFF(11,"\n "),e.k0s(),e.EFF(12," \n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(3),e.JRh(t.getISAIntroMessage())}}function nc(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"button",4),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return e.Njj(a.openProductType(i.ProductType))}),e.EFF(3,"\n "),e.nrm(4,"span",5),e.EFF(5,"\n "),e.j41(6,"span"),e.EFF(7),e.k0s(),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()}if(2&o){const t=e.XpG().$implicit;e.R7$(7),e.SpI("Open ",t.ProductType.Name,"")}}function ic(o,n){if(1&o&&(e.j41(0,"div",2),e.EFF(1,"\n "),e.EFF(2,"\n "),e.DNE(3,tc,13,1,"div",0),e.EFF(4,"\n "),e.nrm(5,"hr"),e.EFF(6,"\n "),e.EFF(7,"\n "),e.DNE(8,nc,10,1,"div",0),e.EFF(9,"\n "),e.k0s()),2&o){const t=n.$implicit,s=e.XpG();e.R7$(3),e.Y8G("ngIf",t.ProductType.containsIsa()&&1==s.totalNumberOfISAs),e.R7$(5),e.Y8G("ngIf",!t.ProductType.containsIsa()||1!=s.totalNumberOfISAs)}}class vt{constructor(n,t,s,i){this.router=n,this.changedetector=t,this.onboardingStore=s,this.featureStore=i,this.availableAdditionalProductTypesSubscription=null,this.totalNumberOfISAs=0}ngOnInit(){this.SetupAvailableAdditionalProductTypesSubscription()}ngOnChanges(n){n.client&&this.onboardingStore.getAvailableProductTypesForClient(this.client.Id+"")}SetupAvailableAdditionalProductTypesSubscription(){this.availableAdditionalProductTypesSubscription=this.onboardingStore.availableProductTypesForClient$.pipe((0,F.p)(n=>null!=n&&null!=this.client&&n.clientId==this.client.Id+"")).subscribe(n=>{n.error||(this.availableProductTypes=n.productTypes),this.error=n.error,this.setTotalNumberOfISAs(),this.changedetector.markForCheck(),this.changedetector.detectChanges()})}getISAIntroMessage(){return this.featureStore.FeatureToggles.Wording.OpenISAIntroMessage}openProductType(n){this.router.navigate(["/investments","clients",this.client.Id+"","addproduct",n.Id])}setTotalNumberOfISAs(){if(this.totalNumberOfISAs=0,null!=this.availableProductTypes)for(let n of this.availableProductTypes)for(let t of n.ProductType.PortfolioTypes)t.IsIsa&&(this.totalNumberOfISAs+=1)}ngOnDestroy(){this.availableAdditionalProductTypesSubscription&&this.availableAdditionalProductTypesSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||vt)(e.rXU(B.Ix),e.rXU(e.gRc),e.rXU(Qt.t),e.rXU(f.P))};static#t=this.\u0275cmp=e.VBU({type:vt,selectors:[["client-expanded-addproduct"]],inputs:{client:"client"},features:[e.OA$],decls:7,vars:3,consts:[[4,"ngIf"],["style","margin: 10px;",4,"ngFor","ngForOf"],[2,"margin","10px"],[2,"white-space","pre-line","margin-bottom","10px"],["type","button",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-exchange"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,$l,1,0,"loading",0),e.EFF(2,"\n "),e.DNE(3,ec,1,0,"error",0),e.EFF(4,"\n \n "),e.DNE(
15,ic,10,2,"div",1),e.EFF(6,"\n\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",null==s.availableProductTypes&&null==s.error),e.R7$(2),e.Y8G("ngIf",s.error),e.R7$(2),e.Y8G("ngForOf",s.availableProductTypes))},dependencies:[c.Sq,c.bT,C.q,S.A],encapsulation:2,changeDetection:0})}!function(o){o.Success="success",o.Error="error",o.Info="info",o.Warning="warn"}(ne||(ne={}));var sc=l(90381);class oc{}var ac=l(97722);class Tt{constructor(n){this.messageService=n,this.position="bottom-right"}addMessage(n,t,s){let i=new oc;i.key=this.key,i.life=1e4,i.severity=n,i.summary=s??this.getSummaryText(n),i.detail=t,this.messageService.add(i)}addMultipleMessages(n){n.forEach(t=>{t.key=this.key,t.life=1e4,t.summary=null!=t.summaryOverride?t.summaryOverride:this.getSummaryText(t.severity)}),this.messageService.addAll(n)}getSummaryText(n){switch(n){case ne.Success:return"Success";case ne.Error:return"Error";case ne.Info:return"Info";case ne.Warning:return"Warning"}}static#e=this.\u0275fac=function(t){return new(t||Tt)(e.rXU(pn.bg))};static#t=this.\u0275cmp=e.VBU({type:Tt,selectors:[["toast"]],inputs:{position:"position",key:"key"},decls:3,vars:2,consts:[[1,"p-toast",3,"position","key"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.nrm(1,"p-toast",0),e.EFF(2,"\n ")),2&t&&(e.R7$(),e.Y8G("position",s.position)("key",s.key))},dependencies:[ac.y8],encapsulation:2,changeDetection:0})}const rc=["toast"];function lc(o,n){1&o&&(e.j41(0,"div",6),e.EFF(1,"There are no documents available for you to view"),e.k0s())}function cc(o,n){if(1&o){const t=e.RV6();e.j41(0,"span"),e.EFF(1,"\n \n "),e.EFF(2,"\n "),e.j41(3,"div",7),e.EFF(4,"\n "),e.j41(5,"input",8),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.filterWord,i)||(a.filterWord=i),e.Njj(i)}),e.bIt("keyup",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.searchFieldChanged())}),e.k0s(),e.EFF(6,"\n "),e.nrm(7,"i",9),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n \n "),e.j41(10,"configured-table",10),e.bIt("rowSelected",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.rowSelected(i))}),e.k0s(),e.EFF(11,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.filterWord),e.R7$(5),e.Y8G("columns",t.featureSwitch.FeatureToggles.Columns.Documents)("modelType",t.modelType)("groupedTableData",t.tableData)("defaultExpandedGroups",t.defaultExpandedGroups)("expandAllGroups",t.filterWord.trim().length>0)}}class yt{constructor(n,t,s,i,a,r,d){this.clientStore=n,this.documentsStore=t,this.userStore=s,this.changeDetector=i,this.route=a,this.featureSwitch=r,this.tableProps=d,this.client=new Xt.K,this.documents=null,this.filterWord="",this.tableData={},this.defaultExpandedGroups=[],this.modelType=Pt.r,this.toastKey="documents"}ngOnInit(){let n=(0,mn.zV)([this.documentsStore.documentsForClient$,this.userStore.lastLoginDetails$]);this.documentsSubscription=n.subscribe(t=>{let s=t[0],i=t[1];if(!s||!i||s.clientId!=this.client.Id)return;this.error=s.error;let a=new Array,r=this.featureSwitch.FeatureToggles.NewDocumentsMarker&&i.lastLoginDetails?i.lastLoginDetails.LastLoginDate:null;s.documents&&(a=Pt.r.getDocumentsSinceLoginFromDocuments(s.documents,r)),this.documents=a,this.groupDocuments(this.documents),this.changeDetector.markForCheck()}),this.loadDocuments()}loadDocuments(){this.documents=null,this.documentsStore.loadDocumentsForClient(this.client.Id)}groupDocuments(n){let t={},s=[];for(let d of this.featureSwitch.FeatureToggles.DocumentGroups){d.PathRegex||console.warn(`Regex for grouping ${d.Name} was empty so all documents will be in this group, did you add the config property for PathRegex properly?`);let u=new RegExp(d.PathRegex),b=n.filter(N=>u.test(N.DocumentPath));b.length>0&&(s.push(...b),t[d.Name]=b),d.Expanded&&this.defaultExpandedGroups.indexOf(d.Name)<0&&this.defaultExpandedGroups.push(d.Name)}let i=this.featureSwitch.FeatureToggles.DocumentGroups.length>0?"Others":"",a=se.without(n,...s);a.length>0&&(t[i]=a);let r={};Object.keys(t).forEach(d=>{r[d]=t[d].map(u=>{let b=new en.H;return b.Data=u,b})}),this.tableData=r}ngOnDestroy(){this.documentsSubscription&&this.documentsSubscription.unsubscribe()}searchFieldChanged(){let n=this.documents;if(this.filterWord.trim().length>0){let s=this.filterWord.toLowerCase();n=n.filter(i=>i.MetaTitle.toLowerCase().includes(s)||null!=i.DocumentType&&i.DocumentType.toLowerCase().includes(s))}this.groupDocuments(n),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}downloadDocument(n){n.Loading=!0,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.documentsStore.downloadDocument(n.Data.ServerUrl,this.client.Id,()=>{n.Loading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},()=>{this.toast.addMessage(ne.Error,`There was an error retrieving your document - '${n.Data.MetaTitle}'.`),n.Loading=!1,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})}rowSelected(n){this.downloadDocument(n.item)}static#e=this.\u0275fac=function(t){return new(t||yt)(e.rXU(ie.Fv),e.rXU(Ye.O7),e.rXU(Ve.LU),e.rXU(e.gRc),e.rXU(B.nX),e.rXU(f.P),e.rXU(sc.Z))};static#t=this.\u0275cmp=e.VBU({type:yt,selectors:[["document-library"]],viewQuery:function(t,s){if(1&t&&e.GBs(rc,5),2&t){let i;e.mGM(i=e.lsd())&&(s.toast=i.first)}},inputs:{client:"client"},decls:12,vars:5,consts:[["toast",""],[3,"visible"],[3,"tryAgain","error","itemName"],["key","this.toastKey",2,"width","50vw"],["class","alert alert-info",4,"ngIf"],[4,"ngIf"],[1,"alert","alert-info"],[1,"form-group","has-feedback"],["type","text","placeholder","Search",1,"form-control",3,"ngModelChange","keyup","ngModel"],[1,"glyphicon","glyphicon-search","form-control-feedback"],[3,"rowSelected","columns","modelType","groupedTableData","defaultExpandedGroups","expandAllGroups"]],template:function(t,s){if(1&t){const i=e.RV6();e.EFF(0,"\n "),e.nrm(1,"loading",1),e.EFF(2,"\n "),e.j41(3,"error",2),e.bIt("tryAgain",function(){return e.eBV(i),e.Njj(s.loadDocuments())}),e.k0s(),e.EFF(4,"\n \n "),e.nrm(5,"toast",3,0),e.EFF(7,"\n \n "),e.DNE(8,lc,2,0,"div",4),e.EFF(9,"\n \n "),e.DNE(10,cc,12,6,"span",5),e.EFF(11,"\n \n ")}2&t&&(e.R7$(),e.Y8G("visible",null==s.documents&&null==s.error),e.R7$(2),e.Y8G("error",s.error)("itemName","documents"),e.R7$(5),e.Y8G("ngIf",null==s.error&&s.documents&&0==s.documents.length),e.R7$(2),e.Y8G("ngIf",s.documents&&s.documents.length>0&&null==s.error))},dependencies:[c.bT,p.me,p.BC,p.vS,C.q,S.A,L.m,Tt],encapsulation:2,changeDetection:0})}var ue=l(22848),dc=l(42879);const pc=["datePickerElement"];function uc(o,n){1&o&&e.nrm(0,"input",4)}function mc(o,n){1&o&&(e.j41(0,"span",5),e.EFF(1,"\n "),e.nrm(2,"span",6),e.EFF(3,"\n "),e.k0s())}class je{constructor(){this.maxDate=null,this.inline=!1,this.onChange=()=>{},this.onTouched=()=>{},this.isDisabled=!1}ngAfterViewInit(){this.initialiseDatePicker(),this.setupDatePickerChangeListeners()}ngOnChanges(n){n.maxDate&&this.setDateTimePickerMaxDate(this.maxDate),n.inline&&this.setDateTimePickerInlineMode(this.inl
1ine)}initialiseDatePicker(){$(this.datePickerElement.nativeElement).datetimepicker({timeZone:"UTC",format:"Do MMM YYYY",extraFormats:["DD/MM/YYYY","DD-MM-YYYY"],useCurrent:!1,viewMode:"months",inline:this.inline}),this.maxDate&&this.setDateTimePickerMaxDate(this.maxDate)}setupDatePickerChangeListeners(){$(this.datePickerElement.nativeElement).on("dp.change",n=>{let t=null;if(n.date){let s=n.date.startOf("day"),i=s.utcOffset();s.utc(),s.add(i,"m"),t=s.toDate()}this.onChange(t),this.onTouched()})}setDateTimePickerMaxDate(n){this.datePickerElement&&$(this.datePickerElement.nativeElement).data("DateTimePicker").maxDate(n)}setDateTimePickerInlineMode(n){this.datePickerElement&&$(this.datePickerElement.nativeElement).data("DateTimePicker").inline(n)}writeValue(n){setTimeout(()=>{let t=this.datePickerElement;t&&$(t.nativeElement).data("DateTimePicker").date(n)})}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.datePickerElement&&(n?$(this.datePickerElement.nativeElement).data("DateTimePicker").disable():$(this.datePickerElement.nativeElement).data("DateTimePicker").enable())}static#e=this.\u0275fac=function(t){return new(t||je)};static#t=this.\u0275cmp=e.VBU({type:je,selectors:[["datePicker"]],viewQuery:function(t,s){if(1&t&&e.GBs(pc,5),2&t){let i;e.mGM(i=e.lsd())&&(s.datePickerElement=i.first)}},inputs:{maxDate:"maxDate",inline:"inline"},features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>je),multi:!0}]),e.OA$],decls:9,vars:2,consts:[["datePickerElement",""],[1,"input-group","date"],["type","text","class","form-control","placeholder","Date",4,"ngIf"],["class","input-group-addon",4,"ngIf"],["type","text","placeholder","Date",1,"form-control"],[1,"input-group-addon"],[1,"fa","fa-calendar"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div",1,0),e.EFF(3,"\n "),e.DNE(4,uc,1,0,"input",2),e.EFF(5,"\n "),e.DNE(6,mc,4,0,"span",3),e.
1EFF(7,"\n "),e.k0s(),e.EFF(8,"\n ")),2&t&&(e.R7$(4),e.Y8G("ngIf",!s.inline),e.R7$(2),e.Y8G("ngIf",!s.inline))},dependencies:[c.bT]})}function hc(o,n){1&o&&e.nrm(0,"loading")}function Fc(o,n){if(1&o&&(e.j41(0,"div",17),e.EFF(1,"\n "),e.j41(2,"label",18),e.EFF(3,"\n "),e.nrm(4,"input",19),e.EFF(5),e.k0s(),e.EFF(6,"\n "),e.k0s()),2&o){const t=n.$implicit;e.R7$(4),e.Y8G("value",t.Id)("formControlName","PortfolioId"),e.R7$(),e.SpI("",t.CollectiveName,"\n ")}}function fc(o,n){if(1&o&&(e.j41(0,"option",23),e.EFF(1),e.k0s()),2&o){const t=n.$implicit;e.Y8G("ngValue",t),e.R7$(),e.JRh(t.Name)}}function gc(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"label",10),e.EFF(3,"Report Layout"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",5),e.EFF(6,"\n "),e.j41(7,"select",20),e.bIt("change",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.resetDates())}),e.EFF(8,"\n "),e.j41(9,"option",21),e.EFF(10,"Please select..."),e.k0s(),e.EFF(11,"\n "),e.DNE(12,fc,2,2,"option",22),e.EFF(13,"\n "),e.k0s(),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(7),e.Y8G("formControlName","ReportLayout"),e.R7$(2),e.Y8G("ngValue",null),e.R7$(3),e.Y8G("ngForOf",t.getApplicableReportLayouts())}}function Ec(o,n){if(1&o&&(e.j41(0,"div",3),e.EFF(1,"\n "),e.j41(2,"label",24),e.EFF(3,"From Date"),e.k0s(),e.EFF(4,"\n "),e.j41(5,"div",5),e.EFF(6,"\n "),e.nrm(7,"datePicker",25),e.EFF(8,"\n "),e.k0s(),e.EFF(9,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(7),e.Y8G("formControlName","FromDate")("maxDate",t.datePickersMaxDate)}}function _c(o,n){1&o&&(e.j41(0,"label",27),e.EFF(1,"To Date"),e.k0s())}function Cc(o,n){1&o&&(e.j41(0,"label",27),e.EFF(1,"Date"),e.k0s())}function bc(o,n){if(1&o&&(e.j41(0,"div",3),e.EFF(1,"\n "),e.DNE(2,_c,2,0,"label",26),e.EFF(3,"\n "),e.DNE(4,Cc,2,0,"label",26),e.EFF(5,"\n "),e.j41(6,"div",5),e.EFF(7,"\n "),e.nrm(8,"datePicker",25),e.EFF(9,"\n "),e.k0s(),e.EFF(10,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.getSelectedReportLayout().DateType==t.reportLayoutDateTypeEnum.DateRange),e.R7$(2),e.Y8G("ngIf",t.getSelectedReportLayout().DateType!=t.reportLayoutDateTypeEnum.DateRange),e.R7$(4),e.Y8G("formControlName","ToDate")("maxDate",t.datePickersMaxDate)}}function vc(o,n){1&o&&e.nrm(0,"loading",28),2&o&&e.Y8G("caption","Generating your report. This may take a few minutes...")}function Tc(o,n){if(1&o&&(e.j41(0,"div",29),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI("\n Your report - ",t.documentSuccessFilename," - has been successfully downloaded.\n ")}}function yc(o,n){if(1&o&&(e.j41(0,"div",30),e.EFF(1,"\n "),e.nrm(2,"error",31),e.EFF(3,"\n "),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("error",t.documentDownloadError)("caption","There was an error generating your document.")}}function Ic(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"form",2),e.EFF(3,"\n \n "),e.EFF(4,"\n "),e.j41(5,"div",3),e.EFF(6,"\n "),e.j41(7,"label",4),e.EFF(8,"Report Level"),e.k0s(),e.EFF(9,"\n "),e.j41(10,"div",5),e.EFF(11,"\n "),e.j41(12,"label",6)(13,"input",7),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetReportLayout())}),e.k0s(),e.EFF(14,"All Portfolios"),e.k0s(),e.EFF(15,"\n "),e.j41(16,"label",6)(17,"input",8),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetReportLayout())}),e.k0s(),e.EFF(18,"Single Portfolio"),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n \n "),e.EFF(22,"\n "),e.j41(23,"div",9),e.EFF(24,"\n "),e.j41(25,"label",10),e.EFF(26,"Portfolios"),e.k0s(),e.EFF(27,"\n "),e.j41(28,"div",5),e.EFF(29,"\n "),e.DNE(30,Fc,7,3,"div",11),e.EFF(31,"\n "),e.k0s(),e.EFF(32,"\n "),e.k0s(),e.EFF(33,"\n \n "),e.EFF(34,"\n "),e.DNE(35,gc,16,3,"div",12),e.
1EFF(36,"\n \n "),e.EFF(37,"\n "),e.DNE(38,Ec,10,2,"div",12),e.EFF(39,"\n\n "),e.EFF(40,"\n "),e.DNE(41,bc,11,4,"div",12),e.EFF(42,"\n\n \n "),e.EFF(43,"\n "),e.j41(44,"button",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.downloadButtonPressed())}),e.EFF(45,"Generate"),e.k0s(),e.EFF(46,"\n \n "),e.EFF(47,"\n "),e.DNE(48,vc,1,1,"loading",14),e.EFF(49,"\n "),e.DNE(50,Tc,2,1,"div",15),e.EFF(51,"\n "),e.DNE(52,yc,4,2,"div",16),e.EFF(53,"\n \n "),e.k0s(),e.EFF(54,"\n \n "),e.k0s()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.form),e.R7$(11),e.Y8G("formControlName","ReportLevel"),e.R7$(4),e.Y8G("formControlName","ReportLevel"),e.R7$(6),e.Y8G("hidden","portfolio"!=t.getSelectedReportLevel()),e.R7$(7),e.Y8G("ngForOf",t.client.Portfolios),e.R7$(5),e.Y8G("ngIf",t.getSelectedReportLevel()),e.R7$(3),e.Y8G("ngIf",t.getSelectedReportLayout()&&t.getSelectedReportLayout().DateType==t.reportLayoutDateTypeEnum.DateRange),e.R7$(3),e.Y8G("ngIf",t.getSelectedReportLayout()),e.R7$(3),e.Y8G("disabled",!t.shouldEnableSubmitButton()),e.R7$(4),e.Y8G("ngIf",t.documentInProgress),e.R7$(2),e.Y8G("ngIf",t.documentSuccessFilename),e.R7$(2),e.Y8G("ngIf",t.documentDownloadError)}}class It{constructor(n,t,s){this.reportsStore=n,this.changeDetector=t,this.formBuilder=s,this.loadReportLayoutsError=null,this.reportLayouts=null,this.documentInProgress=!1,this.documentDownloadError=null,this.documentSuccessFilename=null,this.datePickersMaxDate=new Date,this.reportLayoutDateTypeEnum=ue.FG}ngAfterViewInit(){this.loadReportLayouts(),this.form=this.createFormGroup()}ngOnDestroy(){}createFormGroup(){let n=this.formBuilder.group({PortfolioId:[null,[]],ReportLevel:[null,[p.k0.required]],FromDate:[null,[]],ToDate:[null,[p.k0.required]],ReportLayout:[null,[p.k0.required]]},{validator:xc});return n.get("ReportLevel").valueChanges.subscribe(t=>{console.log("value changed"),this.form.patchValue({PortfolioId:null,ReportLayout:null})}),n.valueChanges.subscribe(t=>{this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}),n}resetDates(){this.form.patchValue({FromDate:null,ToDate:null})}resetReportLayout(){this.form.patchValue({ReportLayout:null})}getSelectedReportLayout(){return this.form.get("ReportLayout").value}getSelectedReportLevel(){return this.form.get("ReportLevel").value}loadReportLayouts(){this.reportLayouts=null,this.loadReportLayoutsError=null,this.reportsStore.getReportLayouts().subscribe(n=>{this.reportLayouts=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()},n=>{this.loadReportLayoutsError=n})}downloadButtonPressed(){let n=this.getSelectedReportLayout().Id,t=this.form.get("PortfolioId").value,s=this.form.get("FromDate").value,i=this.form.get("ToDate").value;this.isFromDateAfterToDate(s,i)?bootbox.alert({title:"From Date and To Date",message:"Please make sure the provided From Date is before the To Date.",backdrop:!0}):(this.form.disable({emitEvent:!1}),this.documentDownloadError=null,this.documentSuccessFilename=null,this.documentInProgress=!0,this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.reportsStore.downloadReport(this.client.Id.toString(),t,n,s,i,(a,r)=>{this.documentInProgress=!1,this.documentDownloadError=a,this.documentSuccessFilename=r,this.form.enable({emitEvent:!1}),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}))}isFromDateAfterToDate(n,t){return!!n&&n>t}shouldEnableSubmitButton(){return!this.documentInProgress&&this.form.valid}getApplicableReportLayouts(){var n;return"client"==this.getSelectedReportLevel()?n=this.reportLayouts.filter(t=>t.Usage==ue.i_.Client||t.Usage==ue.i_.ClientAndPortfolio):"portfolio"==this.getSelectedReportLevel()?n=this.reportLayouts.filter(t=>t.Usage==ue.i_.Portfolio||t.Usage==ue.i_.ClientAndPortfolio):(console.debug("No Report Layouts due to unexpected report level"),n=[]),n}static#e=this.\u0275fac=function(t){return new(t||It)(e.rXU(dc.h),e.rXU(e.gRc),e.rXU(p.ze))};static#t=this.\u0275cmp=e.VBU({type:It,selectors:[["client-expanded-reports"]
1],inputs:{client:"client"},decls:10,vars:4,consts:[[3,"caption","error"],[4,"ngIf"],[1,"form-horizontal",3,"formGroup"],[1,"form-group"],["for","ReportLevel",1,"col-sm-2","control-label"],[1,"col-sm-10"],[1,"radio-inline"],["type","radio","value","client",3,"change","formControlName"],["type","radio","value","portfolio",3,"change","formControlName"],[1,"form-group",3,"hidden"],["for","ReportLayout",1,"col-sm-2","control-label"],["class","checkbox",4,"ngFor","ngForOf"],["class","form-group",4,"ngIf"],[1,"btn","btn-primary",3,"click","disabled"],[3,"caption",4,"ngIf"],["class","alert alert-success","style","margin-top:20px;",4,"ngIf"],["style","margin-top:20px;",4,"ngIf"],[1,"checkbox"],[1,"radio"],["type","radio",3,"value","formControlName"],[1,"form-control",3,"change","formControlName"],["disabled","","selected","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["for","FromDate",1,"col-sm-2","control-label"],[3,"formControlName","maxDate"],["class","col-sm-2 control-label","for","ToDate",4,"ngIf"],["for","ToDate",1,"col-sm-2","control-label"],[3,"caption"],[1,"alert","alert-success",2,"margin-top","20px"],[2,"margin-top","20px"],[3,"error","caption"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"h4"),e.EFF(2,"Adhoc Reports"),e.k0s(),e.EFF(3,"\n "),e.nrm(4,"error",0),e.EFF(5,"\n "),e.DNE(6,hc,1,0,"loading",1),e.EFF(7,"\n "),e.DNE(8,Ic,55,12,"div",1),e.EFF(9,"\n \n \n ")),2&t&&(e.R7$(4),e.Y8G("caption","There was an error loading your report layouts")("error",s.loadReportLayoutsError),e.R7$(2),e.Y8G("ngIf",null==s.reportLayouts),e.R7$(2),e.Y8G("ngIf",!s.loadReportLayoutsError&&s.reportLayouts))},dependencies:[c.Sq,c.bT,p.qT,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.cb,C.q,S.A,je,p.j4,p.JD],encapsulation:2,changeDetection:0})}function xc(o){let n=o.get("ReportLayout").value,t=o.get("FromDate").value;if(n&&n.DateType==ue.FG.DateRange&&!t)return{requiresFromDate:{value:"From Date is required as the report layout is for a range"}};let s=o.get("ReportLevel").value,i=o.get("PortfolioId").value;return"portfolio"==s&&(!i||i.trim().length<1)?{requiresFromDate:{value:"A portfolio is required for portfolio level reports"}}:void 0}const Sc=["clientTabs"],kc=["clientTabsCollapsed"],Dc=["clientTabsMoreTab"],T=o=>({active:o});function Rc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",17),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Details"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"Details"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function jc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Holdings"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"Holdings"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function wc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Explorer"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"Explorer"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Ac(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",22),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("SecurityTransactions"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"SecurityTransactions"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Pc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",23),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("CashTransactions"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"CashTransactions"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Mc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",24),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("CashAccounts"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"CashAccounts"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Gc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",25),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Performance"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"Performance"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Vc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("RelationshipManager"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"RelationshipManager"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Nc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("InvestmentManager"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"InvestmentManager"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Bc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",26),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Documents"))}),e.EFF(3),e.nrm(4,"badge",27),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(4,T,"Documents"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName),e.R7$(),e.Y8G("counter",s.newDocumentsCounter)("title","You have new documents since you last logged in")}}function Yc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",28),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("RecentActivity"))}),e.EFF(3),e.nrm(4,"badge",27),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(4,T,"RecentActivity"==s.selectedTab)),e.R7$(3),e.SpI("",t.DisplayName," "),e.R7$(),e.Y8G("counter",s.pendingOrderCounter)("title","You have pending orders.")}}function Xc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("ContactUs"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"ContactUs"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Oc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("RegistrationDocuments"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"RegistrationDocuments"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Lc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("AddProductType"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"AddProductType"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Uc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("Reports"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"Reports"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Hc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",29),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("CGT"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"CGT"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Wc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",30),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("SIPPDocuments"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"SIPPDocuments"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function zc(o,n){if(1&o){const t=e.RV6();e.j41(0,"li",19),e.EFF(1,"\n "),e.j41(2,"a",31),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTab("SIPPAdmin"))}),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("ngClass",e.eq3(2,T,"SIPPAdmin"==s.selectedTab)),e.R7$(3),e.JRh(t.DisplayName)}}function Qc(o,n){if(1&o&&(e.EFF(0,"\n "),e.DNE(1,Rc,4,4,"li",15),e.EFF(2,"\n "),e.DNE(3,jc,4,4,"li",16),e.EFF(4,"\n "),e.DNE(
15,wc,4,4,"li",16),e.EFF(6,"\n "),e.DNE(7,Ac,4,4,"li",16),e.EFF(8,"\n "),e.DNE(9,Pc,4,4,"li",16),e.EFF(10,"\n "),e.DNE(11,Mc,4,4,"li",16),e.EFF(12,"\n "),e.DNE(13,Gc,4,4,"li",16),e.EFF(14,"\n "),e.DNE(15,Vc,4,4,"li",16),e.EFF(16,"\n "),e.DNE(17,Nc,4,4,"li",16),e.EFF(18,"\n "),e.DNE(19,Bc,5,6,"li",16),e.EFF(20,"\n "),e.DNE(21,Yc,5,6,"li",16),e.EFF(22,"\n "),e.DNE(23,Xc,4,4,"li",16),e.EFF(24,"\n "),e.DNE(25,Oc,4,4,"li",16),e.EFF(26,"\n "),e.DNE(27,Lc,4,4,"li",16),e.EFF(28,"\n "),e.DNE(29,Uc,4,4,"li",16),e.EFF(30,"\n "),e.DNE(31,Hc,4,4,"li",16),e.EFF(32,"\n "),e.DNE(33,Wc,4,4,"li",16),e.EFF(34,"\n "),e.DNE(35,zc,4,4,"li",16),e.EFF(36,"\n ")),2&o){const t=n.$implicit,s=e.XpG();e.R7$(),e.Y8G("ngIf","Details"==t.Name),e.R7$(2),e.Y8G("ngIf","Holdings"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","Explorer"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","SecurityTransactions"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","CashTransactions"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","CashAccounts"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","Performance"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","RelationshipManager"==t.Name),e.R7$(2),e.Y8G("ngIf","InvestmentManager"==t.Name),e.R7$(2),e.Y8G("ngIf","Documents"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","RecentActivity"==t.Name&&!s.isProposed),e.R7$(2),e.Y8G("ngIf","ContactUs"==t.Name),e.R7$(2),e.Y8G("ngIf","RegistrationDocuments"==t.Name&&s.isProposed),e.R7$(2),e.Y8G("ngIf","AddProductType"==t.Name&&s.hasAdditionalAvailableProductTypes),e.R7$(2),e.Y8G("ngIf","Reports"==t.Name&&s.shouldEnableReportsTab()),e.R7$(2),e.Y8G("ngIf","CGT"==t.Name&&s.shouldShowCgtTab),e.R7$(2),e.Y8G("ngIf","SIPPDocuments"==t.Name&&s.shouldShowSIPPTab),e.R7$(2),e.Y8G("ngIf","SIPPAdmin"==t.Name&&s.shouldShowMLSIPPTab)}}function Zc(o,n){if(1&o&&e.nrm(0,"client-expanded-details",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function Jc(o,n){if(1&o&&e.nrm(0,"holdings",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","holdingsTabContent")}}function Kc(o,n){if(1&o&&e.nrm(0,"client-expanded-explorer",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","explorerTabContent")}}function qc(o,n){if(1&o&&e.nrm(0,"securitytrades",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","securityTransactionsTabContent")}}function $c(o,n){if(1&o&&e.nrm(0,"cashtransactions",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","cashTransactionsTabContent")}}function ed(o,n){if(1&o&&e.nrm(0,"cashaccounts",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","cashAccountsTabContent")}}function td(o,n){if(1&o&&e.nrm(0,"performance",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","performanceTabContent")}}function nd(o,n){if(1&o&&e.nrm(0,"performance-v2",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","performanceTabContent")}}function id(o,n){if(1&o&&e.nrm(0,"staff-member-details",33),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function sd(o,n){if(1&o&&e.nrm(0,"staff-member-details",34),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function od(o,n){if(1&o&&e.nrm(0,"client-expanded-registrationdocuments",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function ad(o,n){if(1&o&&e.nrm(0,"document-library",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function rd(o,n){if(1&o&&e.nrm(0,"recent-activity",35),2&o){const t=e.XpG();e.Y8G("client",t.client)("pendingOrdersCount",t.pendingOrderCounter),e.BMQ("data-test","recentActivityTabContent")}}function ld(o,n){if(1&o&&e.nrm(0,"staticText",36),2&o){const t=e.XpG();e.Y8G("configType",t.configTypeEnum.ContactUs)("hideTitle",!0)("textClass","")}}function cd(o,n){if(1&o&&e.nrm(0,"client-expanded-addproduct",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function dd(o,n){if(1&o&&e.nrm(0,"client-expanded-reports",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function pd(o,n){if(1&o&&e.nrm(0,"cgt",32),2&o){const t=e.XpG();e.Y8G("client",t.client),e.BMQ("data-test","CGTTabContent")}}function ud(o,n){if(1&o&&e.nrm(0,"sipp-documents",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}function md(o,n){if(1&o&&e.nrm(0,"sipp-admin",32),2&o){const t=e.XpG();e.Y8G("client",t.client)}}class we{constructor(n,t,s,i,a,r,d,u,b,N){this.featureSwitch=n,this.logonService=t,this.ordersStore=s,this.onboardingStore=i,this.changedetector=a,this.accordionService=r,this.userStore=d,this.documentsStore=u,this.accordionParentComponent=b,this.selectedTab=null,this.displayToggles=[],this.pendingOrderCounter=0,this.newDocumentsCounter=0,this.isProposed=!1,this.configTypeEnum=ei.Uz,this.hasAdditionalAvailableProductTypes=!1,this.userPermissions=new Array,this.pendingOrders=null,this.availableAdditionalProductTypesSubscription=null,this.panelShownSubscription=null,this.userPermissionsSubscription=null,this.lastLoginDetail
1sSubscription=null,this.documentsSubscription=null,this.RegulatoryTypeInstance=G.tL,this.tabService=N;let Pe=n.FeatureToggles.DisplayToggles.ClientTabsTranslated();this.displayToggles=this.addMandatoryClientTabs(Pe,this.featureSwitch.FeatureToggles)}get usePerformanceV2(){return this.featureSwitch.FeatureToggles.PerformanceV2}get performanceInceptionDate(){let n=this.client.TakeOnDate,t=se.sortBy(this.client.Portfolios,s=>h(s.InceptionDate).valueOf())[0].InceptionDate;return v.r.min(n,t)}ngOnInit(){this.tabService.setTabToDefault(Mt.E.ClientTab),null!=this.client&&("proposed"==this.client.State.toLocaleLowerCase()&&(this.isProposed=!0),(null==this.client.Portfolios||0==this.client.Portfolios.length)&&(this.isProposed=!0),this.userPermissionsSubscription=this.userStore.userPermissions$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{this.userPermissions=n,this.changedetector.markForCheck(),this.changedetector.detectChanges()}),this.accordionParentComponent?this.panelShownSubscription=this.accordionService.panelWillShow$.subscribe(n=>{let t=Y.getClientIdFromPanelID(n);this.client&&t==this.client.Id+""&&this.tabHasOpened()}):this.tabHasOpened())}tabHasOpened(){this.setDefaultSelectedTab(),this.featureSwitch.FeatureToggles.DocumentLibrary&&this.featureSwitch.FeatureToggles.NewDocumentsMarker&&this.checkForNewDocuments()}checkForNewDocuments(){this.lastLoginDetailsSubscription||(this.lastLoginDetailsSubscription=this.userStore.lastLoginDetails$.subscribe(n=>{!n||!n.lastLoginDetails||((!this.documentsStore.documentsForClient$.value||this.documentsStore.documentsForClient$.value.clientId!=this.client.Id)&&this.documentsStore.loadDocumentsForClient(this.client.Id),this.documentsSubscription||(this.documentsSubscription=this.documentsStore.documentsForClient$.subscribe(t=>{if(!t||t.clientId!=this.client.Id||!t.documents)return;let s=Pt.r.getDocumentsSinceLoginFromDocuments(t.documents,n.lastLoginDetails.LastLoginDate);this.newDocumentsCounter=s.filter(i=>i.IsNewSinceLastLogin).length,this.changedetector.markForCheck(),this.changedetector.detectChanges()})))}))}setDefaultSelectedTab(){null==this.selectedTab&&(this.selectedTab=this.getDefaultSelectedTab(),this.changedetector.markForCheck(),this.changedetector.detectChanges())}ngOnDestroy(){this.pendingOrders&&this.pendingOrders.unsubscribe(),this.availableAdditionalProductTypesSubscription&&this.availableAdditionalProductTypesSubscription.unsubscribe(),this.panelShownSubscription&&this.panelShownSubscription.unsubscribe(),this.userPermissionsSubscription&&this.userPermissionsSubscription.unsubscribe(),this.lastLoginDetailsSubscription&&this.lastLoginDetailsSubscription.unsubscribe(),this.documentsSubscription&&this.documentsSubscription.unsubscribe()}ngAfterViewInit(){this.featureSwitch.FeatureToggles.OrderOptions.EnablePendingOrdersView&&this.SetupPendingOrdersSubscription(),this.featureSwitch.FeatureToggles.AllowOnboardingExtraProductTypes&&this.SetupAvailableAdditionalProductTypesSubscription(),this.autoCollapseTabsList()}getDefaultSelectedTab(){let n=this.displayToggles;if(this.isProposed)return"Details";{let t=n.filter(s=>1==s.Selected);return t.length>0?t[0].Name:"Details"}}onResize(n){this.autoCollapseTabsList()}autoCollapseTabsList(){let n=$(this.clientTabs.nativeElement),t=n.actual("innerHeight");for(;t<50&&$(this.clientTabsCollapsed.nativeElement).children("li").length>0;){let i=$(this.clientTabsCollapsed.nativeElement).children("li");$(i[0]).insertBefore(n.children("li:last-child")),t=n.actual("innerHeight")}for(;t>50&&n.children("li:not(:last-child)").length>1;){let i=n.children("li:not(:last-child)"),a=i.length;$(i[a-1]).prependTo($(this.clientTabsCollapsed.nativeElement)),t=n.actual("innerHeight")}0==$(this.clientTabsCollapsed.nativeElement).children("li").length?$(this.clientTabsMoreTab.nativeElement).hide():$(this.clientTabsMoreTab.nativeElement).show()}selectTab(n){this.selectedTab=n,this.tabService.setCurrentTab(n,Mt.E.ClientTab)}get shouldShowCgtTab(){return this.logonService.currentUser.isIntermediaryUser()&&this.featureSwitch.FeatureToggles.CGTEnabled}get shouldShowSIPPTab(){if(this.featureSwitch.FeatureToggles.SIPPDocuments)for(let n of this.client.Portfolios)if(n.SIPPReference&&n.SIPPReference.trim().length>0)return!0;return!1}get shouldShowMLSIPPTab(){if(this.featureSwitch.FeatureToggles.SIPPAdministration&&this.logonService.currentUser.isIntermediaryUser())for(let n of this.client.Portfolios)for(let t of n.Accounts)if(t.RegulatoryType==V.e.GetEnumName(G.tL,this.RegulatoryTypeInstance.SIPP))return!0;return!1}SetupPendingOrdersSubscription(){this.pendingOrders=this.ordersStore.pendingOrdersCount$.pipe((0,F.p)(n=>null!=n&&null!=this.client&&n.clientId==this.client.Id+""&&null==n.portfolioId)).subscribe(n=>{this.setPendingOrdersCount(n.pendingOrdersCount)},n=>{this.setPendingOrdersCount(0)}),this.ordersStore.loadPendingOrdersCountForClient(this.client.Id.toString())}setPendingOrdersCount(n){this.pendingOrderCounter=n,this.changedetector.markForCheck(),this.changedetector.detectChanges()}SetupAvailableAdditionalProductTypesSubscription(){this.availableAdditionalProductTypesSubscription=this.onboardingStore.availableProductTypesForClient$.pipe((0,F.p)(n=>null!=n&&null!=this.client&&n.clientId==this.client.Id+"")).subscribe(n=>{!n.error&&n.productTypes.length>0&&"proposed"!=this.client.State.toLocaleLowerCase()?this.hasAdditionalAvailableProductTypes=!0:this.hasAdditionalAvailableProductTypes=!1,this.changedetector.markForCheck(),this.changedetector.detectChanges(),n.error&&console.info("Error getting available product types for client "+n.error)}),this.logonService.currentUser.isIntermediaryUser()||this.onboardingStore.getAvailableProductTypesForClient(this.client.Id+"")}addMandatoryClientTabs(n,t){let s=n.slice();if(0==s.filter(i=>"Details"==i.Name).length){let i=new zt.wt("Details","Details");s.unshift(i)}if(t.Reporting&&t.Reporting.Enabled&&0==s.filter(i=>"Reports"==i.Name).length){let i=new zt.wt("Reports","Report Request");s.push(i)}return s}shouldEnableReportsTab(){let n=this.featureSwitch.FeatureToggles.Reporting.Enabled,t=this.userPermissions.find(s=>"REPORTS"==s.Permission.toUpperCase());return n&&t&&"ENABLED"==t.Level.toUpperCase()}static#e=this.\u0275fac=function(t){return new(t||we)(e.rXU(f.P),e.rXU(Ne.rA),e.rXU(ti.Ll),e.rXU(Qt.t),e.rXU(e.gRc),e.rXU(z.CI),e.rXU(Ve.LU),e.rXU(Ye.O7),e.rXU(Q.M,8),e.rXU(Mt.r))};static#t=this.\u0275cmp=e.VBU({type:we,selectors:[["client-summary-tabs"]],viewQuery:function(t,s){if(1&t&&(e.GBs(Sc,7),e.GBs(kc,7),e.GBs(Dc,7)),2&t){let i;e.mGM(i=e.lsd())&&(s.clientTabs=i.first),e.mGM(i=e.lsd())&&(s.clientTabsCollapsed=i.first),e.mGM(i=e.lsd())&&(s.clientTabsMoreTab=i.first)}},hostBindings:function(t,s){1&t&&e.bIt("resize",function(a){return s.onResize(a)},!1,e.tSv)},inputs:{client:"client"},decls:64,vars:21,consts:[["clientTabs",""],["clientTabsMoreTab",""],["clientTabsCollapsed",""],[1,"containerDiv"],[1,"nav","nav-pills","nav-pills-small"],["ngFor","",3,"ngForOf"],["data-toggle","dropdown","href","#","data-test","clientTabsMoreButton"],[1,"caret"],[1,"dropdown-menu","dropdown-menu-right"],["id","tabContent",2,"min-height","100px","padding-top","0.5em"],[3,"client",4,"ngIf"],["staffType","businessdeveloper",3,"client",4,"ngIf"],["staffType","investmentmanager",3,"client",4,"ngIf"],[3,"client","pendingOrdersCount",4,"ngIf"],[3,"configType","hideTitle","textClass",4,"ngIf"],["role","presentation","class","client-tabs-details",3,"ngClass",4,"ngIf"],["role","presentation",3,"ngClass",4,"ngIf"],["role","presentation",1,"client-tabs-details",3,"ngClass"],[3,"click"],["role","presentation",3,"ngClass"],["data-test","holdingsTab",3,"click"],["data-test","explorerTabLink",3,"click"],["data-test","securityTransactionsTabLink",3,"click"],["data-test","transactionsTab",3,"click"],["data-test","cashAccountsTab",3,"click"],["data-test","performanceTabLink",3,"click"],["data-test","documentsTabLink",3,"click"],[3,"counter","title"],["data-test","recentActivityTabLink",3,"click"],["data-test","cgtTabLink",3,"click"],["data-test","SIPPDocumentsTabLink",3,"click"],["data-test","SIPPTabLink",3,"click"],[3,"client"],["staffType","businessdeveloper",3,"client"],["staffType","investmentmanager",3,"client"],[3,"client","pendingOrdersCount"],[3,"configType","hideTitle","textClass"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.j41(1,"div",3),e.EFF(2,"\n "),e.j41(3,"ul",4,0),e.EFF(5,"\n "),e.DNE(6,Qc,37,18,"ng-template",5),e.EFF(7,"\n\n \n\n "),e.j41(8,"li",null,1),e.EFF(10,"\n "),e.j41(11,"a",6),e.EFF(12,"\n More "),e.nrm(13,"span",7),e.EFF(14,"\n "),e.k0s(),e.EFF(15,"\n "),e.j41(16,"ul",8,2),e.EFF(18,"\n\n "),e.k0s(),e.EFF(19,"\n "),e.k0s(),e.EFF(20,"\n "),e.k0s(),e.EFF(21,"\n\n "),e.j41(22,"div",9),e.EFF(23,"\n "),e.DNE(24,Zc,1,1,"client-expanded-detail
1s",10),e.EFF(25,"\n "),e.DNE(26,Jc,1,2,"holdings",10),e.EFF(27,"\n "),e.DNE(28,Kc,1,2,"client-expanded-explorer",10),e.EFF(29,"\n "),e.DNE(30,qc,1,2,"securitytrades",10),e.EFF(31,"\n "),e.DNE(32,$c,1,2,"cashtransactions",10),e.EFF(33,"\n "),e.DNE(34,ed,1,2,"cashaccounts",10),e.EFF(35,"\n "),e.DNE(36,td,1,2,"performance",10),e.EFF(37,"\n "),e.DNE(38,nd,1,2,"performance-v2",10),e.EFF(39,"\n "),e.DNE(40,id,1,1,"staff-member-details",11),e.EFF(41,"\n "),e.DNE(42,sd,1,1,"staff-member-details",12),e.EFF(43,"\n "),e.DNE(44,od,1,1,"client-expanded-registrationdocuments",10),e.EFF(45,"\n "),e.DNE(46,ad,1,1,"document-library",10),e.EFF(47,"\n "),e.DNE(48,rd,1,3,"recent-activity",13),e.EFF(49,"\n "),e.DNE(50,ld,1,3,"staticText",14),e.EFF(51,"\n "),e.DNE(52,cd,1,1,"client-expanded-addproduct",10),e.EFF(53,"\n "),e.DNE(54,dd,1,1,"client-expanded-reports",10),e.EFF(55,"\n "),e.DNE(56,pd,1,2,"cgt",10),e.EFF(57,"\n "),e.DNE(58,ud,1,1,"sipp-documents",10),e.EFF(59,"\n "),e.DNE(60,md,1,1,"sipp-admin",10),e.EFF(61,"\n "),e.k0s(),e.EFF(62,"\n\n "),e.k0s(),e.EFF(63,"\n ")),2&t&&(e.R7$(3),e.BMQ("data-test",s.client.Id+"-client-tab-navigation-bar"),e.R7$(3),e.Y8G("ngForOf",s.displayToggles),e.R7$(18),e.Y8G("ngIf","Details"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","Holdings"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","Explorer"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","SecurityTransactions"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","CashTransactions"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","CashAccounts"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","Performance"==s.selectedTab&&!s.usePerformanceV2),e.R7$(2),e.Y8G("ngIf","Performance"==s.selectedTab&&s.usePerformanceV2),e.R7$(2),e.Y8G("ngIf","RelationshipManager"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","InvestmentManager"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","RegistrationDocuments"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","Documents"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","RecentActivity"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","ContactUs"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","AddProductType"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","Reports"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","CGT"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","SIPPDocuments"==s.selectedTab),e.R7$(2),e.Y8G("ngIf","SIPPAdmin"==s.selectedTab))},dependencies:[c.YU,c.Sq,c.bT,ni.n,ii.W,Qe,Ki.s,qi.f,$i.O,es.Q,ts.p,ns.o,is.Z,Je,qe,lt,ut,Ct,bt,vt,yt,It],styles:[".containerDiv[_ngcontent-%COMP%]{padding-bottom:.5em}","li[_ngcontent-%COMP%]{cursor:pointer}"]})}var hd=l(45665),Fd=l(18115),fd=l(41850),hn=l(5905),gd=l(42098),Ed=l(3954),_d=l(7196),Cd=l(17525);const bd=["clickClientTip"],vd=["paginator"],Td=o=>({inputGroupGrayedOut:o});function yd(o,n){1&o&&(e.j41(0,"span",22),e.EFF(1,"Search"),e.k0s())}function Id(o,n){if(1&o){const t=e.RV6();e.j41(0,"span",23),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.showAllButtonPressed())}),e.EFF(1," "),e.EFF(2,"\n "),e.nrm(3,"span",24),e.EFF(4,"\n "),e.j41(5,"span",25),e.EFF(6,"Show All"),e.k0s(),e.EFF(7,"\n "),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Td,t.searchTextIsWildcard(t.clientSearchString)))}}function xd(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",15),e.EFF(1,"\n "),e.j41(2,"div",16),e.EFF(3,"\n "),e.j41(4,"input",17),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.searchInputFieldText,i)||(a.searchInputFieldText=i),e.Njj(i)}),e.bIt("keyup",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.searchInputFieldKeyChanged())})("keyup.enter",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.searchInputFieldEnterPressed())}),e.k0s(),e.EFF(5,"\n "),e.j41(6,"span",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.searchSubmit(i.searchInputFieldText))}),e.EFF(7,"\n "),e.nrm(8,"span",19),e.EFF(9,"\n "),e.DNE(10,yd,2,0,"span",20),e.EFF(11," "),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n "),e.DNE(14,Id,8,3,"span",21),e.EFF(15,"\n "),e.k0s(),e.EFF(16,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("ngClass",t.shouldShowStateFilter()?"col-md-9":"col-md-12"),e.R7$(4),e.R50("ngModel",t.searchInputFieldText),e.R7$(6),e.Y8G("ngIf",t.shouldHideClientsUntilSearched()),e.R7$(4),e.Y8G("ngIf",t.shouldHideClientsUntilSearched())}}function Sd(o,n){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1,"\n "),e.j41(2,"div",26),e.EFF(3,"\n "),e.j41(4,"select",27),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG(2);return e.DH7(a.clientStateFilter,i)||(a.clientStateFilter=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.stateFilterChanged())}),e.EFF(5,"\n "),e.j41(6,"option",28),e.EFF(7,"All clients"),e.k0s(),e.EFF(8,"\n "),e.j41(9,"option",29),e.EFF(10,"Proposed clients only"),e.k0s(),e.EFF(11,"\n "),e.j41(12,"option",30),e.EFF(13,"Open clients only"),e.k0s(),e.EFF(14,"\n "),e.j41(15,"option",31),e.EFF(16,"Open clients with a non-zero value"),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n "),e.k0s(),e.EFF(19,"\n "),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(4),e.R50("ngModel",t.clientStateFilter)}}function kd(o,n){1&o&&e.nrm(0,"span")}function Dd(o,n){1&o&&e.nrm(0,"span")}function Rd(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.DNE(2,Dd,1,0,"span",33),e.EFF(3,"\n "),e.k0s()),2&o){e.XpG(2);
1const t=e.sdS(18),s=e.sdS(21),i=e.XpG();e.R7$(2),e.Y8G("ngIf",i.clients.length>1||i.shouldHideClientsUntilSearched())("ngIfThen",t)("ngIfElse",s)}}function jd(o,n){if(1&o&&(e.j41(0,"span"),e.EFF(1,"\n "),e.DNE(2,kd,1,0,"span",32),e.EFF(3,"\n "),e.DNE(4,Rd,4,3,"span",12),e.EFF(5,"\n \n "),e.k0s()),2&o){e.XpG();const t=e.sdS(24),s=e.XpG();e.R7$(2),e.Y8G("ngIf",0==s.clients.length)("ngIfThen",t),e.R7$(2),e.Y8G("ngIf",s.clients.length>0)}}function wd(o,n){if(1&o){const t=e.RV6();e.j41(0,"accordion-panel",36),e.EFF(1,"\n "),e.j41(2,"client-accordion-title",37),e.bIt("onFocusSelected",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.clientFocusSelected(i))}),e.k0s(),e.EFF(3,"\n "),e.nrm(4,"client-accordion-subtitle",38),e.EFF(5,"\n \n "),e.EFF(6,"\n "),e.j41(7,"div",39),e.EFF(8,"\n "),e.nrm(9,"client-summary-tabs",40),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n "),e.k0s()}if(2&o){const t=n.$implicit;e.XpG();const s=e.sdS(2),i=e.XpG(2);e.Y8G("accordionId",s.accordionId)("panelId",i.getPanelId(t.Id)),e.R7$(2),e.Y8G("client",t)("showFocusButton",i.shouldHideClientsUntilSearched()&&i.clientsFiltered(i.clientSearchString).length>1),e.R7$(2),e.Y8G("client",t),e.R7$(5),e.Y8G("client",t)}}function Ad(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"accordion",34,3),e.EFF(3,"\n \n \n "),e.DNE(4,wd,12,6,"accordion-panel",35),e.EFF(5," \n \n \n "),e.k0s(),e.EFF(6,"\n ")),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("accordionId","clients-accordion"),e.R7$(3),e.Y8G("ngForOf",t.clientsFiltered(t.clientSearchString))("ngForTrackBy",t.clientTrackBy)}}function Pd(o,n){if(1&o&&(e.EFF(0,"\n \n "),e.j41(1,"span",41),e.EFF(2,"\n "),e.EFF(3,"\n "),e.EFF(4,"\n "),e.j41(5,"div",42),e.EFF(6," \n \n "),e.EFF(7,"\n "),e.j41(8,"div",43),e.EFF(9," \n "),e.nrm(10,"client-accordion-title",44),e.EFF(11,"\n "),e.j41(12,"div",10),e.EFF(13," "),e.EFF(14,"\n "),e.nrm(15,"client-accordion-subtitle",38),e.EFF(16,"\n "),e.k0s(),e.EFF(17,"\n "),e.k0s(),e.EFF(18,"\n \n "),e.k0s(),e.EFF(19,"\n \n "),e.EFF(20,"\n "),e.j41(21,"div",45),e.EFF(22," "),e.EFF(23,"\n "),e.nrm(24,"client-summary-tabs",40),e.EFF(25,"\n "),e.k0s(),e.EFF(26,"\n "),e.k0s(),e.EFF(27,"\n ")),2&o){const t=e.XpG(2);e.R7$(10),e.Y8G("client",t.clients[0]),e.R7$(5),e.Y8G("client",t.clients[0]),e.R7$(9),e.Y8G("client",t.clients[0])}}function Md(o,n){if(1&o&&(e.EFF(0,"\n "),e.j41(1,"div",46),e.EFF(2,"\n "),e.j41(3,"div",47),e.EFF(4),e.k0s(),e.EFF(5,"\n "),e.j41(6,"div",48),e.EFF(7),e.nrm(8,"contact-us-link"),e.EFF(9,"\n to rectify this.\n "),e.k0s(),e.EFF(10,"\n "),e.k0s(),e.EFF(11,"\n ")),2&o){const t=e.XpG(2);e.R7$(4),e.SpI("No ",t.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser()," available"),e.R7$(3),e.SpI("\n No ",t.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser().toLowerCase()," were found for your login account. Please ")}}function Gd(o,n){1&o&&(e.j41(0,"div",49),e.EFF(1,"\n "),e.j41(2,"div",48),e.EFF(3,"\n There were no results for your search string.\n "),e.k0s(),e.EFF(4,"\n "),e.k0s())}function Vd(o,n){if(1&o){const t=e.RV6();e.j41(0,"p-paginator",50,4),e.bIt("onPageChange",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.pageChanged(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("rows",t.clientsPerPage)("totalRecords",t.clientsFiltered(t.clientSearchString,!0).length)}}
1function Nd(o,n){if(1&o&&(e.j41(0,"div",8),e.EFF(1,"\n \n "),e.nrm(2,"clients-header",9),e.EFF(3," "),e.EFF(4,"\n \n "),e.j41(5,"div",10),e.EFF(6,"\n "),e.EFF(7,"\n "),e.DNE(8,xd,17,4,"div",11),e.EFF(9,"\n\n "),e.EFF(10,"\n "),e.DNE(11,Sd,20,1,"div",12),e.EFF(12,"\n "),e.k0s(),e.EFF(13,"\n\n "),e.EFF(14,"\n "),e.DNE(15,jd,6,3,"span",12),e.EFF(16,"\n \n "),e.DNE(17,Ad,7,3,"ng-template",null,0,e.C5r),e.EFF(19,"\n\n "),e.DNE(20,Pd,28,3,"ng-template",null,1,e.C5r),e.EFF(22,"\n\n "),e.DNE(23,Md,12,2,"ng-template",null,2,e.C5r),e.EFF(25,"\n \n "),e.EFF(26,"\n "),e.DNE(27,Gd,5,0,"div",13),e.EFF(28,"\n \n\n "),e.EFF(29,"\n "),e.DNE(30,Vd,2,2,"p-paginator",14),e.EFF(31,"\n "),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("userDetails",t.userDetails)("clients",t.clients)("totalClientCount",t.totalClients)("hideTotalValue",t.shouldHideClientsUntilSearched()&&!t.searchTextIsWildcard(t.clientSearchString)),e.R7$(6),e.Y8G("ngIf",t.shouldShowSearchBar()),e.R7$(3),e.Y8G("ngIf",t.shouldShowStateFilter()),e.R7$(4),e.Y8G("ngIf",t.clients),e.R7$(12),e.Y8G("ngIf",t.searchResultWasEmpty()),e.R7$(3),e.Y8G("ngIf",t.clientsFiltered(t.clientSearchString,!0).length>t.clientsPerPage)}}class Ae{static#e=this.routerReuseIdentifier="clientslist";constructor(n,t,s,i,a,r,d,u){this.clientStore=n,this.valuationStore=t,this.userStore=s,this.router=i,this.accordionService=a,this.changeDetector=r,this.logonService=d,this.featureStore=u,this.totalClients=0,this.clientsPerPage=10,this.userDetails=null,this.searchInputFieldText="",this.clientStateFilter="all",this.clientListOffset=0,this.clientSearchString=""}ngOnInit(){this.subscribeToAfterPanelsInit(),this.subscribeToUserObject(this),this.subscribeToClients(),this.subscribeToClientValuation(),this.subscribeToSingleClient()}ngAfterViewInit(){this.loadClientList()}reloadAllObjects(){this.loadClientList(),this.userStore.loadUserDetails(),this.changeDetector.markForCheck()}ngOnDestroy(){this.clientsSubscription&&this.clientsSubscription.unsubscribe(),this.userSubscription&&this.userSubscription.unsubscribe(),this.afterPanelsInitSubscription&&this.afterPanelsInitSubscription.unsubscribe(),this.valuationSubscription&&this.valuationSubscription.unsubscribe(),this.singleClientSubscription&&this.singleClientSubscription.unsubscribe()}loadClientList(){this.clientStore.loadClients()}toggleCollapse(n){$("#pnclient"+n).collapse("toggle")}subscribeToAfterPanelsInit(){null==this.afterPanelsInitSubscription&&(this.afterPanelsInitSubscription=this.accordionService.afterAccordionInit$.subscribe(n=>{if("clients-accordion"==n){let t;if(t=1==this.clients.length?this.clients[0]:null!=this.clientStore.client$.getValue()?this.clientStore.client$.getValue().client:null,null!=t){let s=t.Id;if(s){let i=new z.TD;i.panelId=this.getPanelId(s),i.accordionId="clients-accordion",this.accordionService.openPanel
1(i)}}}}))}subscribeToClients(){this.clientsSubscription=this.clientStore.clients$.subscribe(n=>{null!=n&&(null==n.error?this.clientsListReceived(n):this.errorOnClientsListReceived(n.error))})}clientsListReceived(n){this.error=null,this.clients=n.clientList,this.totalClients=n.totalClients,this.clients.sort(function(t,s){return t.NameOrReportingName.toLowerCase().localeCompare(s.Name.toLowerCase())}),this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}errorOnClientsListReceived(n){this.error=n,this.clients=[],this.totalClients=0,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}subscribeToUserObject(n){this.userSubscription=this.userStore.currentUserDetails$.pipe((0,F.p)(t=>null!=t)).subscribe(t=>{n.userDetails=t.userDetails,n.userError=t.error,n.changeDetector.markForCheck()}),this.userStore.loadUserDetails()}subscribeToClientValuation(){this.valuationSubscription=this.valuationStore.valuationForClient$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(null==n.error){let t=n.clientId,s=this.clients?this.clients.find(i=>i.Id.toString()==t):null;s&&this.clientStore.loadClient(s.Id.toString())}})}subscribeToSingleClient(){this.singleClientSubscription=this.clientStore.client$.pipe((0,F.p)(n=>null!=n)).subscribe(n=>{if(null==n.error){let t=this.clients?this.clients.findIndex(s=>s.Id.toString()==n.clientId):-1;if(-1!=t){let s=this.clients[t],i=n.client;i.Contacts=s.Contacts;let a=[...this.clients];a[t]=i,this.clients=a,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()}}})}getPanelId(n){return Ae.getPanelId(n.toString())}static getPanelId(n){return`Client${n}`}static getClientIdFromPanelID(n){return null==n?"":n.replace("Client","")}clientTrackBy(n,t){let s="clientId:"+t.Id;return t.Portfolios&&(s+="portfolioCount:"+t.Portfolios.length),s}pageChanged(n){this.clientListOffset=n.first}searchInputFieldKeyChanged(){this.shouldHideClientsUntilSearched()||this.searchSubmit(this.searchInputFieldText)}searchInputFieldEnterPressed(){this.searchSubmit(this.searchInputFieldText)}showAllButtonPressed(){this.searchInputFieldText="*",this.changeDetector.markForCheck(),this.changeDetector.detectChanges(),this.searchSubmit(this.searchInputFieldText)}searchSubmit(n){null!=this.paginator&&this.paginator.changePage(0);let t=this.clientsFiltered(n,!0);this.showWarningForMultipleClientsIfNeededAndReturnWhetherShouldStillShowClients(t).then(s=>{!0===s?(this.searchInputFieldText=n,this.clientSearchString=n,this.changeDetector.markForCheck(),this.changeDetector.detectChanges()):(this.searchInputFieldText=this.clientSearchString,this.changeDetector.markForCheck(),this.changeDetector.detectChanges())})}stateFilterChanged(){null!=this.paginator&&this.paginator.changePage(0)}clientsFiltered(n,t=!1){let s=this.clients;return s=this.filterClientsByEmptySearchStringState(s,n,this.shouldHideClientsUntilSearched()),s=this.filterClientsByState(s,this.clientStateFilter),s=this.filterClientsBySearchString(s,n),t||(s=s.slice(this.clientListOffset,this.clientListOffset+this.clientsPerPage)),s}filterClientsByState(n,t){let s;return s="proposed"==t?n.filter(i=>"proposed"==i.State.toLowerCase()):"open"==t?n.filter(i=>"open"==i.State.toLowerCase()):"opennonzero"==t?n.filter(i=>this.isNonZeroValueClient(i)):n,s}filterClientsBySearchString(n,t){let s=n;if(t&&t.trim().length>0)if(this.searchTextIsWildcard(t));else{let i=this.normaliseSearchStringForComparison(t);s=s.filter(a=>{let r=this.normaliseSearchStringForComparison(a.Name).includes(i)||this.normaliseSearchStringForComparison(a.ReportingName).includes(i),d=this.normaliseSearchStringForComparison(a.Reference).includes(i);return r||d})}return s}normaliseSearchStringForComparison(n){return n?("function"==typeof(n=n.trim()).normalize&&(n=n.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),n=n.toUpperCase()):""}searchTextIsWildcard(n){return"*"==(n=n.trim())||"ALL"==n}filterClientsByEmptySearchStringState(n,t,s){let i=n;return(!t||0==t.trim().length)&&s&&(i=[]),i}showWarningForMultipleClientsIfNeededAndReturnWhetherShouldStillShowClients(n){var t=this;return(0,Wt.A)(function*(){return new Promise(s=>{if(t.shouldHideClientsUntilSearched()&&n.length>1){let i=`This search result contains ${n.length} clients. Do you wish to continue and show these clients?`;bootbox.confirm({message:i,swapButtonOrder:!0,buttons:{confirm:{label:"Yes",className:"btn-danger"},cancel:{label:"No",className:"btn-info"}},callback:a=>{s(a)}})}else s(!0)})})()}isNonZeroValueClient(n){return"open"==n.State.toLowerCase()&&(null==n.LatestValue||0!=n.LatestValue.BaseValue)}shouldShowStateFilter(){return null!=this.logonService.currentUser&&this.logonService.currentUser.isIntermediaryUser()&&this.clients&&null!=this.clients.find(n=>"proposed"==n.State.toLowerCase())}
1shouldShowSearchBar(){return this.shouldHideClientsUntilSearched()||this.clients.length>this.clientsPerPage}shouldHideClientsUntilSearched(){return this.logonService.currentUser.isIntermediaryUser()}searchResultWasEmpty(){return this.clientSearchString&&this.clientSearchString.length>0&&0==this.clientsFiltered(this.clientSearchString,!0).length}clientFocusSelected(n){this.searchSubmit(n.Reference)}static#t=this.\u0275fac=function(t){return new(t||Ae)(e.rXU(ie.Fv),e.rXU(Ge.dq),e.rXU(Ve.LU),e.rXU(B.Ix),e.rXU(z.CI),e.rXU(e.gRc),e.rXU(Ne.rA),e.rXU(f.P))};static#n=this.\u0275cmp=e.VBU({type:Ae,selectors:[["investments-deprecated"]],viewQuery:function(t,s){if(1&t&&(e.GBs(bd,5),e.GBs(vd,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.clickClientTip=i.first),e.mGM(i=e.lsd())&&(s.paginator=i.first)}},decls:9,vars:6,consts:[["multipleClientsTemplate",""],["singleClientTemplate",""],["noClientsTemplate",""],["clientsAccordion",""],["paginator",""],[3,"visible"],[3,"tryAgain","error","itemName"],["id","investments-clientList",4,"ngIf"],["id","investments-clientList"],[3,"userDetails","clients","totalClientCount","hideTotalValue"],[1,"row"],["
1id","investments-clientSearch","style","margin-bottom:15px",3,"ngClass",4,"ngIf"],[4,"ngIf"],["class","panel panel-primary",4,"ngIf"],[3,"rows","totalRecords","onPageChange",4,"ngIf"],["id","investments-clientSearch",2,"margin-bottom","15px",3,"ngClass"],[1,"input-group"],["type","text","data-test","clients-list-search-textbox","placeholder","Search by Client Name or Reference",1,"form-control",3,"ngModelChange","keyup","keyup.enter","ngModel"],[1,"input-group-addon","hand-cursor",3,"click"],[1,"glyphicon","glyphicon-search","hand-cursor"],["class","hand-cursor","data-test","clients-list-search-submit",4,"ngIf"],["class","input-group-addon hand-cursor",3,"ngClass","click",4,"ngIf"],["data-test","clients-list-search-submit",1,"hand-cursor"],[1,"input-group-addon","hand-cursor",3,"click","ngClass"],[1,"glyphicon","glyphicon-asterisk","hand-cursor"],["data-test","showAllLink",1,"hand-cursor"],[1,"col-md-3","pull-right",2,"margin-bottom","15px"],[1,"form-control",3,"ngModelChange","ngModel"],["value","all","selected",""],["value","proposed"],["value","open"],["value","opennonzero"],[4,"ngIf","ngIfThen"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"animated","fadeInUp",2,"animation-duration","0.5s",3,"accordionId"],["class","investments-clientlist-client",3,"accordionId","panelId",4,"ngFor","ngForOf","ngForTrackBy"],[1,"investments-clientlist-client",3,"accordionId","panelId"],[1,"title",3,"onFocusSelected","client","showFocusButton"],[1,"subtitle",3,"client"],[1,"body"],[3,"client"],[1,"investments-clientlist-client"],[1,"well","container-break-out",2,"padding","0px","border-radius","0","margin-bottom","10px","margin-top","-25px"],[1,"container","maximized",2,"padding-top","15px"],[1,"title",3,"client"],[1,"panel","panel-default",2,"border","0","margin","-5px","padding","5px"],["id","investments-clientlist-noClientsMessage",1,"panel","panel-primary"],[1,"panel-heading",2,"padding-left","15px","padding-right","15px"],[1,"panel-body"],[1,"panel","panel-primary"],[3,"onPageChange","rows","totalRecords"]],template:function(t,s){1&t&&(e.EFF(0,"\n\n "),e.nrm(1,"loading",5),e.EFF(2,"\n "),e.j41(3,"error",6),e.bIt("tryAgain",function(){return s.reloadAllObjects()}),e.k0s(),e.EFF(4,"\n "),e.j41(5,"error",6),e.bIt("tryAgain",function(){return s.reloadAllObjects()}),e.k0s(),e.EFF(6,"\n\n "),e.DNE(7,Nd,32,9,"div",7),e.EFF(8,"\n \n \n ")),2&t&&(e.R7$(),e.Y8G("visible",null==s.clients&&null==s.error&&null==s.userError),e.R7$(2),e.Y8G("error",s.error)("itemName",s.featureStore.FeatureToggles.Wording.ClientPluralWordingForUser()+" List"),e.R7$(2),e.Y8G("error",s.userError)("itemName","User Details"),e.R7$(2),e.Y8G("ngIf",s.clients))},dependencies:[c.YU,c.Sq,c.bT,p.xH,p.y7,p.me,p.wz,p.BC,p.vS,C.q,Q.M,re.k,S.A,Xe.u,jt.m,me,he,Fe,we],styles:["h1[_ngcontent-%COMP%]{font-size:1.6em;font-weight:400}",".rowSpacing[_ngcontent-%COMP%]{margin-top:.8em}",".sectionSpacing[_ngcontent-%COMP%]{margin-top:2em}",".no-wrap[_ngcontent-%COMP%]{white-space:nowrap}",".panel-heading[_ngcontent-%COMP%]{padding-left:0;padding-right:0}",".panel-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}",".hand-cursor[_ngcontent-%COMP%]{cursor:pointer}",".container-break-out[_ngcontent-%COMP%]{width:100vw;position:relative;left:calc(-.5*(100vw - 100%))}",".inputGroupGrayedOut[_ngcontent-%COMP%]{opacity:.5}"],changeDetection:0})}function Bd(o,n){1&o&&e.nrm(0,"investments")}function Yd(o,n){1&o&&e.nrm(0,"investments-deprecated")}class xt{constructor(n){this.featureStore=n}static#e=this.routerReuseIdentifier="clientslist";static#t=this.\u0275fac=function(t){return new(t||xt)(e.rXU(f.P))};static#n=this.\u0275cmp=e.VBU({type:xt,selectors:[["clients-component-chooser"]],decls:5,vars:2,consts:[[4,"ngIf"]],template:function(t,s){1&t&&(e.EFF(0,"\n "),e.DNE(1,Bd,1,0,"investments",0),e.EFF(2,"\n "),e.DNE(3,Yd,1,0,"investments-deprecated",0),e.EFF(4,"\n ")),2&t&&(e.R7$(),e.Y8G("ngIf",s.featureStore.FeatureToggles.ClientsListAPIPagination),e.R7$(2),e.Y8G("ngIf",!s.featureStore.FeatureToggles.ClientsListAPIPagination))},dependencies:[c.bT,Y,Ae],encapsulation:2})}class St{static#e=this.\u0275fac=function(t){return new(t||St)};static#t=this.\u0275mod=e.$C({type:St});static#n=this.\u0275inj=e.G2t({imports:[p.X1,Me.Y,c.MD,p.YN,wt.H,Kt.q4]})}var Xd=l(6576);class kt{static#e=this.\u0275fac=function(t){return new(t||kt)};static#t=this.\u0275mod=e.$C({type:kt});static#n=this.\u0275inj=e.G2t({providers:[le],imports:[Me.Y,c.MD]})}class Dt{static#e=this.\u0275fac=function(t){return new(t||Dt)};static#t=this.\u0275mod=e.$C({type:Dt});static#n=this.\u0275inj=e.G2t({providers:[j],imports:[Me.Y,c.MD,p.YN,wt.H]})}const Fn=[{path:"",component:xt},{path:":id/portfolios/:portfolioId/holding/:holdingId/securityoverview",data:{breadcrumb:"Security Overview"},component:hn.T},{path:":id/securities/:securityId/securityoverview",data:{breadcrumb:"Security Overview"},component:hn.T}];class Rt{static#e=this.\u0275fac=function(t){return new(t||Rt)};static#t=this.\u0275mod=e.$C({type:Rt});static#n=this.\u0275inj=e.G2t({imports:[c.MD,p.YN,Me.Y,wt.H,B.iI,En.V,gn.k,_n.s,hd.v,fd.c,Fd.$,fn.F,jt.I,B.iI.forChild(Fn),gd.E,Ed.u,_d.m,Cd.d,p.X1,St,Xd.R,kt,Dt]})}e.wjB(Y,function(){return[c.YU,c.Sq,c.bT,p.xH,p.y7,p.me,p.wz,p.BC,p.vS,C.q,Q.M,re.k,S.A,Xe.u,jt.m,me,he,Fe,we]},[])}}]);
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.