PageSourceSearch

https://www.fsmone.com.my/65-es2015.55f845ede7bce7e5a61b.js

js fsmone.com.my collected 2026-10-04 00:25:50 UTC 105,406 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{"/Ubl":function(t,n,e){"use strict";e.d(n,"a",(function(){return b}));var c=e("mrSG"),a=e("3hac"),o=e("AcyG"),i=e("gFZo"),l=e("tyNb"),s=e("fXoL"),r=e("ofXK"),u=e("noTE"),d=e("Nqz0"),p=e("FwiY"),g=e("Q8cG");function f(t,n){if(1&t){const t=s.sc();s.pc(0),s.rc(1,"li",7),s.zc("click",(function(){s.dd(t);const e=n.$implicit;return s.Dc(2).onDropdownMenuItemClick(e)})),s.qd(2),s.qc(),s.oc()}if(2&t){const t=n.$implicit;s.Ub(1),s.Mc("nzSelected",t.active),s.Ub(1),s.rd(t.label)}}function m(t,n){if(1&t&&(s.pc(0),s.rc(1,"uic-chip-button",2),s.qd(2),s.mc(3,"i",3),s.qc(),s.rc(4,"nz-dropdown-menu",null,4),s.rc(6,"ul",5),s.od(7,f,3,2,"ng-container",6),s.qc(),s.qc(),s.oc()),2&t){const t=s.ad(5),n=s.Dc();s.Ub(1),s.Mc("nzActive",!0)("nzDropdownMenu",t),s.Ub(1),s.sd(" ",n.getActiveDropdownLabel()," "),s.Ub(5),s.Mc("ngForOf",n.navDropdownList)}}function h(t,n){1&t&&s.nc(0)}let b=(()=>{class t{constructor(t,n){this.router=t,this.activatedRoute=n,this.HoldingsConstant=a.a,this.navDropdownList=[a.a.HOLDING_HOLDINGS_TAB,a.a.INCOME_TREND_TAB,a.a.PERFORMANCE_TAB,a.a.CASH_SOLUTION_TAB]}ngOnInit(){this.routerSubscription=this.router.events.subscribe(t=>{t instanceof l.b&&this.checkRouteCondition(t.urlAfterRedirects)}),this.routeSubscription=this.activatedRoute.url.subscribe(()=>{this.checkRouteCondition(this.router.url)})}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe(),this.routeSubscription&&this.routeSubscription.unsubscribe()}checkRouteCondition(t){if(t)switch(t){case a.a.ROUTE_HOLDINGS_NEXT:this.setDropdownMenuActiveTab(a.a.HOLDING_HOLDINGS_TAB.value);break;case a.a.ROUTE_INCOME_TREND:this.setDropdownMenuActiveTab(a.a.INCOME_TREND_TAB.value);break;case a.a.ROUTE_CASH_SOLUTION:this.setDropdownMenuActiveTab(a.a.CASH_SOLUTION_TAB.value);break;case a.a.ROUTE_PERFORMANCE:this.setDropdownMenuActiveTab(a.a.PERFORMANCE_TAB.value);break;default:this.setDropdownMenuActiveTab(a.a.HOLDING_HOLDINGS_TAB.value)}}setDropdownMenuActiveTab(t){this.navDropdownList.forEach(t=>t.active=!1);const n=this.navDropdownList.find(n=>n.value===t);n&&(n.active=!0)}onDropdownMenuItemClick(t){t.route&&this.router.navigate([t.route])}getActiveDropdownLabel(){const t=this.navDropdownList.find(t=>t.active);return t?t.label:"Select One"}}return t.\u0275fac=function(n){return new(n||t)(s.lc(l.e),s.lc(l.a))},t.\u0275cmp=s.fc({type:t,selectors:[["app-holdings-nav-tabs"]],decls:5,vars:6,consts:[[1,"app-holdings-nav-tabs"],[4,"ngIf"],["nz-dropdown","","nzOverlayClassName","chip-button-dropdown","nzTrigger","click",3,"nzActive","nzDropdownMenu"],["nz-icon","","nzType","down","nzTheme","outline",1,"ml-4px","mt-2px","text-white","t-xs"],["tableMenuDropdown","nzDropdownMenu"],["nz-menu",""],[4,"ngFor","ngForOf"],["nz-menu-item","",3,"nzSelected","click"]],template:function(t,n){1&t&&(s.rc(0,"div",0),s.od(1,m,8,4,"ng-container",1),s.Ec(2,"async"),s.od(3,h,1,0,"ng-container",1),s.Ec(4,"async"),s.qc()),2&t&&(s.Ub(1),s.Mc("ngIf",!s.Fc(2,2,n.isMobile$)),s.Ub(2),s.Mc("ngIf",s.Fc(4,4,n.isMobile$)))},directives:[r.t,u.a,d.d,p.b,d.f,g.a,r.s,g.d],pipes:[r.b],styles:[""],encapsulation:2}),Object(c.c)([Object(o.e)(i.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},"4jfS":function(t,n,e){"use strict";e.d(n,"a",(function(){return B}));var c=e("mrSG"),a=e("fXoL"),o=e("gFZo"),i=e("AcyG"),l=e("3hac"),s=e("6n6N"),r=e("iel7"),u=e("ofXK"),d=e("/ai0"),p=e("+LO9"),g=e("qUqm"),f=e("rMZv"),m=e("PjWa"),h=e("3/1E"),b=e("QlLE"),M=e("+OO8"),y=e("x501"),C=e("5vDB"),T=e("LUEE"),v=e("VxBN"),x=e("OtHt"),S=e("h76Y");function z(t,n){1&t&&a.nc(0)}function O(t,n){if(1&t&&(a.pc(0),a.rc(1,"th",16),a.qd(2),a.qc(),a.oc()),2&t){const t=n.$implicit;a.Ub(1),a.Mc("nzWidth",null==t?null:t.width)("nzAlign",null==t?null:t.nzAlign),a.Ub(1),a.sd(" ",t.headerValue," ")}}function w(t,n){if(1&t&&(a.rc(0,"tr"),a.rc(1,"td",17),a.qd(2),a.Ec(3,"date"),a.qc(),a.rc(4,"td",18),a.qd(5),a.qc(),a.rc(6,"td",19),a.qd(7),a.Ec(8,"currencyFormat"),a.qc(),a.rc(9,"td",19),a.qd(10),a.qc(),a.qc()),2&t){const t=n.$implicit,e=a.Dc(4);a.Ub(2),a.rd(a.Gc(3,5,null==t?null:t.payoutDate,"dd MMM y")||e.BLANK),a.Ub(2),a.Mc("ngClass",e.getTypeTextColor(null==t?null:t.payoutType)),a.Ub(1),a.rd(e.normaliseIncomeTransactionType(null==t?null:t.payoutType)||e.BLANK),a.Ub(2),a.rd(a.Gc(8,8,null==t?null:t.payoutAmountFc,(null==t?null:t.productCurrency)||e.HoldingsConstant.MYR)||e.BLANK),a.Ub(3),a.rd((null==t?null:t.payoutMethod)||e.BLANK)}}function P(t,n){if(1&t){const t=a.sc();a.pc(0),a.rc(1,"div",20),a.rc(2,"app-pagination-style"),a.rc(3,"nz-pagination",21),a.zc("nzPageIndexChange",(function(n){return a.dd(t),a.Dc(4).pageIndex=n}))("nzPageIndexChange",(function(n){return a.dd(t),a.Dc(4).onSelectPageIndexChanges(n)})),a.qc(),a.qc(),a.qc(),a.oc()}if(2&t){const t=a.Dc(4);a.Ub(3),a.Mc("nzPageIndex",t.pageIndex)("nzTotal",t.productEarningModelList.length||0)("nzPageSize",t.PAGE_SIZE)}}const D=function(){return{x:"100%"}};function I(t,n){if(1&t){const t=a.sc();a.pc(0),a.rc(1,"app-holdings-table-style"),a.rc(2,"nz-table",13,14),a.zc("nzPageIndexChange",(function(n){return a.dd(t),a.Dc(3).onSelectPageIndexChanges(n)})),a.rc(4,"thead"),a.rc(5,"tr"),a.od(6,O,3,3,"ng-container",15),a.qc(),a.qc(),a.rc(7,"tbody"),a.od(8,w,11,11,"tr",15),a.qc(),a.qc(),a.qc(),a.od(9,P,4,3,"ng-container",0),a.oc()}if(2&t){const t=a.ad(3),n=a.Dc(3);a.Ub(2),a.Mc("nzBordered",!1)("nzData",n.productEarningModelList)("nzShowPagination",!1)("nzPageIndex",n.pageIndex)("nzPageSize",n.PAGE_SIZE)("nzScroll",a.Rc(9,D)),a.Ub(4),a.Mc("ngForOf",n.listOfColumns),a.Ub(2),a.Mc("ngForOf",t.data),a.Ub(1),a.Mc("ngIf",(null==n.productEarningModelList?null:n.productEarningModelList.length)>n.PAGE_SIZE)}}function A(t,n){if(1&t&&(a.pc(0),a.rc(1,"div",7),a.rc(2,"div",8),a.od(3,z,1,0,"ng-container",9),a.qc(),a.rc(4,"div",10),a.rc(5,"p",11),a.qd(6,"Total Income"),a.qc(),a.mc(7,"uic-statistic",12),a.qc(),a.qc(),a.od(8,I,10,10,"ng-container",6),a.oc()),2&t){const t=a.Dc(2),n=a.ad(7),e=a.ad(11);a.Ub(3),a.Mc("ngTemplateOutlet",n),a.Ub(4),a.Mc("nzValue",t.totalPayoutAmount)("nzPrefix",t.totalPayoutAmountCurrency)("nzDecimal",t.totalPayoutAmountDigitsInfo)("nzRight",!0),a.Ub(1),a.Mc("ngIf",t.productEarningModelList)("ngIfElse",e)}}function U(t,n){if(1&t){const t=a.sc();a.pc(0),a.rc(1,"ui-modal-pc-drawer-mobile",5),a.zc("nzOnCancel",(function(){return a.dd(t),a.Dc().closeModal()})),a.od(2,A,9,7,"ng-container",6),a.qc(),a.oc()}if(2&t){const t=a.Dc(),n=a.ad(9);a.Ub(1),a.Mc("nzVisible",t.visible)("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",640)("nzTitle",t.title)("nzFooter",null)("isMobileFullScreen",!0),a.Ub(1),a.Mc("ngIf",!t.loadingEarning)("ngIfElse",n)}}function q(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-page-header",25),a.zc("nzBack",(function(){return a.dd(t),a.Dc(2).closeModal()})),a.qc()}if(2&t){const t=a.Dc(2);a.Mc("nzTitle",t.title)}}function E(t,n){1&t&&a.nc(0)}function k(t,n){1&t&&a.nc(0)}function V(t,n){1&t&&a.nc(0)}function L(t,n){if(1&t&&(a.pc(0),a.rc(1,"div",26),a.rc(2,"div",29),a.rc(3,"p",30),a.qd(4),a.qc(),a.rc(5,"p",31),a.qd(6),a.Ec(7,"currencyFormat"),a.qc(),a.qc(),a.rc(8,"div",32),a.mc(9,"p",33),a.rc(10,"p",34),a.qd(11),a.Ec(12,"date"),a.qc(),a.qc(),a.qc(),a.od(13,V,1,0,"ng-container",9),a.oc()),2&t){const t=n.$implicit,e=a.Dc(5),c=a.ad(5);a.Ub(4),a.rd(e.normaliseIncomeTransactionType(null==t?null:t.payoutType)||e.BLANK),a.Ub(2),a.rd(a.Gc(7,5,null==t?null:t.payoutAmountFc,(null==t?null:t.productCurrency)||e.HoldingsConstant.MYR)||e.BLANK),a.Ub(5),a.td("",a.Gc(12,8,null==t?null:t.payoutDate,"dd MMM y")||e.BLANK," \u2022 ",(null==t?null:t.payoutMethod)||e.BLANK,""),a.Ub(2),a.Mc("ngTemplateOutlet",c)}}function F(t,n){if(1&t&&(a.pc(0),a.od(1,L,14,11,"ng-container",15),a.oc()),2&t){const t=a.Dc(4);a.Ub(1),a.Mc("ngForOf",t.productEarningModelList)}}function _(t,n){if(1&t&&(a.pc(0),a.rc(1,"div",26),a.od(2,E,1,0,"ng-container",9),a.qc(),a.rc(3,"div",26),a.rc(4,"p",27),a.qd(5,"Total Payout"),a.qc(),a.rc(6,"p",28),a.qd(7),a.Ec(8,"currencyFormat"),a.qc(),a.qc(),a.od(9,k,1,0,"ng-container",9),a.od(10,F,2,1,"ng-container",6),a.oc()),2&t){const t=a.Dc(3),n=a.ad(7),e=a.ad(5),c=a.ad(11);a.Ub(2),a.Mc("ngTemplateOutlet",n),a.Ub(5),a.sd(" ",a.Gc(8,5,t.totalPayoutAmount,t.totalPayoutAmountCurrency)||t.BLANK," "),a.Ub(2),a.Mc("ngTemplateOutlet",e),a.Ub(1),a.Mc("ngIf",t.productEarningModelList)("ngIfElse",c)}}
1function R(t,n){if(1&t&&a.od(0,_,11,8,"ng-container",6),2&t){const t=a.Dc(2),n=a.ad(9);a.Mc("ngIf",!t.loadingEarning)("ngIfElse",n)}}function N(t,n){if(1&t&&(a.pc(0),a.rc(1,"uic-full-screen",22),a.od(2,q,1,1,"ng-template",null,23,a.pd),a.od(4,R,1,2,"ng-template",null,24,a.pd),a.qc(),a.oc()),2&t){const t=a.ad(3),n=a.ad(5),e=a.Dc();a.Ub(1),a.Mc("visible",e.visible)("header",t)("body",n)("headerUnderline",!1)("footer",null)}}function W(t,n){1&t&&a.mc(0,"nz-divider",35)}function H(t,n){if(1&t&&a.mc(0,"holdings-product-label",36),2&t){const t=a.Dc();a.Mc("data",t.productLabelItem)}}function Y(t,n){1&t&&(a.rc(0,"uic-skeleton-wrapper"),a.mc(1,"nz-skeleton",37),a.qc()),2&t&&(a.Ub(1),a.Mc("nzActive",!0))}function $(t,n){1&t&&a.mc(0,"nz-empty",38)}let B=(()=>{class t{constructor(t,n){this.changeDetectorRef=t,this.currencyFormatService=n,this.loadingEarning=!1,this.productEarningModelList=[],this.visible=!1,this.visibleChange=new a.s,this.pageIndex=1,this.title="All Time Income Details",this.totalPayoutAmount=0,this.totalPayoutAmountCurrency=l.a.MYR,this.HoldingsConstant=l.a,this.normaliseIncomeTransactionType=s.b,this.listOfColumns=[{headerValue:"Date",key:"date",width:"90px",nzAlign:"left"},{headerValue:"Type",key:"productType",width:"50px",nzAlign:"right"},{headerValue:"Amount",key:"totalAmount",width:"120px",nzAlign:"right"},{headerValue:"Payout",key:"payout",width:"100px",nzAlign:"right"}],this.BLANK="-",this.PAGE_SIZE=10}get totalPayoutAmountDigitsInfo(){return this.currencyFormatService.getDigitsInfo(this.totalPayoutAmountCurrency)}ngOnChanges(t){(t.visible&&this.visible||t.loadingEarning&&!this.loadingEarning||t.productEarningModelList)&&this.reloadDetailDisplay()}reloadDetailDisplay(){var t,n;const e=null===(t=this.productEarningModelList)||void 0===t?void 0:t[0];this.pageIndex=1,this.title=(this.incomeYear||"All Time")+" Income Details",this.totalPayoutAmountCurrency=null!==(n=null==e?void 0:e.productCurrency)&&void 0!==n?n:l.a.MYR,this.totalPayoutAmount=this.productEarningModelList.reduce((t,n)=>t+n.payoutAmountFc,0),this.changeDetectorRef.detectChanges()}onSelectPageIndexChanges(t){this.pageIndex=t}closeModal(){this.visible=!1,this.visibleChange.emit(!1)}getTypeTextColor(t){return t?"sell"==t.toLowerCase()?"text-sell":"buy"==t.toLowerCase()?"text-buy":"text-color-content-primary":""}}return t.\u0275fac=function(n){return new(n||t)(a.lc(a.j),a.lc(r.a))},t.\u0275cmp=a.fc({type:t,selectors:[["app-income-details"]],inputs:{incomeYear:"incomeYear",productLabelItem:"productLabelItem",loadingEarning:"loadingEarning",productEarningModelList:"productEarningModelList",visible:"visible"},outputs:{visibleChange:"visibleChange"},features:[a.Sb],decls:12,vars:6,consts:[[4,"ngIf"],["dividerTpl",""],["productName",""],["loadingTemplate",""],["emptyTpl",""],["nzClassName","modal-footer-shadow max-vh-80",3,"nzVisible","nzClosable","nzMaskClosable","nzWidth","nzTitle","nzFooter","isMobileFullScreen","nzOnCancel"],[4,"ngIf","ngIfElse"],[1,"d-flex","align-items-center","gap-12px","mb-24px"],[1,"flex-grow-1"],[4,"ngTemplateOutlet"],[1,"text-right"],[1,"t-xs","text-color-content-secondary-light","mb-0"],["nzValueClass","text-sm",3,"nzValue","nzPrefix","nzDecimal","nzRight"],[3,"nzBordered","nzData","nzShowPagination","nzPageIndex","nzPageSize","nzScroll","nzPageIndexChange"],["table",""],[4,"ngFor","ngForOf"],[3,"nzWidth","nzAlign"],[1,"lg:t-sm"],["nzAlign","right",3,"ngClass"],["nzAlign","right"],[1,"d-flex","justify-content-end","mt-24px"],[3,"nzPageIndex","nzTotal","nzPageSize","nzPageIndexChange"],[3,"visible","header","body","headerUnderline","footer"],["incomeDetailsHeader",""],["incomeDetailsBody",""],["nzClass","py-0",3,"nzTitle","nzBack"],[1,"pt-12px","pb-12px"],[1,"t-sm","text-content-secondary","mb-0"],[1,"t-sm","font-weight-bold","mb-0"],[1,"d-flex","gap-8px","mb-2px"],[1,"flex-1","t-xs","text-content-primary","mb-0"],[1,"flex-1","text-right","t-xs","text-content-primary","font-weight-semibold","mb-0"],[1,"d-flex","gap-8px"],[1,"flex-1","t-xs","mb-0"],[1,"flex-1","text-right","t-4xs","text-content-secondary","mb-0"],[1,"border-content-border","my-0"],[3,"data"],[3,"nzActive"],["nzNotFoundContent","No Income Detail"]],template:function(t,n){1&t&&(a.od(0,U,3,9,"ng-container",0),a.Ec(1,"async"),a.od(2,N,6,5,"ng-container",0),a.Ec(3,"async"),a.od(4,W,1,0,"ng-template",null,1,a.pd),a.od(6,H,1,1,"ng-template",null,2,a.pd),a.od(8,Y,2,1,"ng-template",null,3,a.pd),a.od(10,$,1,0,"ng-template",null,4,a.pd)),2&t&&(a.Mc("ngIf",!a.Fc(1,2,n.isMobile$)),a.Ub(2),a.Mc("ngIf",a.Fc(3,4,n.isMobile$)))},directives:[u.t,d.a,u.A,p.a,g.a,f.a,f.f,f.g,u.s,f.c,f.e,f.d,u.q,m.a,h.a,M.a,y.a,C.a,T.a,v.a,x.a,b.b],pipes:[u.b,u.f,S.a],styles:[""]}),Object(c.c)([Object(i.e)(o.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},"5Lp6":function(t,n,e){"use strict";e.d(n,"a",(function(){return o}
1));var c=e("fXoL"),a=e("ofXK");let o=(()=>{class t{constructor(){this.DEFAULT_COLOR="E0E0E0",this.size="default",this.resolvedColor=""}ngOnInit(){this.resolvedColor=this.color?this.color:this.DEFAULT_COLOR}ngOnChanges(t){t.color&&(this.resolvedColor=this.color?this.color:this.DEFAULT_COLOR)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=c.fc({type:t,selectors:[["app-color-circle"]],inputs:{color:"color",nzClass:"nzClass",size:"size"},features:[c.Sb],decls:1,vars:6,consts:[[3,"ngClass"]],template:function(t,n){1&t&&c.mc(0,"div",0),2&t&&(c.Xb("app-color-circle ",n.nzClass,""),c.nd("background-color",n.resolvedColor),c.Mc("ngClass",n.size))},directives:[a.q],styles:[".app-color-circle[_ngcontent-%COMP%]{display:inline-block;align-self:flex-start;width:12px;height:12px;border-radius:9999px;background-color:var(--color-content-border)}.app-color-circle.small[_ngcontent-%COMP%]{width:8px;height:8px;line-height:8px;margin-bottom:2px}"]}),t})()},"5ag1":function(t,n,e){"use strict";e.d(n,"a",(function(){return A}));var c=e("fXoL"),a=e("3hac"),o=e("4S9j"),i=e("WEV0"),l=e("GRnb"),s=e("tyNb"),r=e("ofXK"),u=e("FwiY"),d=e("Rx/o"),p=e("PtUS"),g=e("eWI0"),f=e("h76Y");function m(t,n){if(1&t&&c.nc(0,6),2&t){c.Dc();const t=c.ad(5);c.Mc("ngTemplateOutlet",t)}}function h(t,n){if(1&t&&c.nc(0,6),2&t){c.Dc();const t=c.ad(7);c.Mc("ngTemplateOutlet",t)}}function b(t,n){if(1&t&&c.nc(0,6),2&t){c.Dc();const t=c.ad(9);c.Mc("ngTemplateOutlet",t)}}function M(t,n){if(1&t){const t=c.sc();c.rc(0,"div",7),c.zc("click",(function(){return c.dd(t),c.Dc().emitNavigate()})),c.rc(1,"div",8),c.mc(2,"img",9),c.qc(),c.rc(3,"div",10),c.rc(4,"p",11),c.qd(5,"iFAST Pay Card Account Balance"),c.qc(),c.rc(6,"div",12),c.rc(7,"p",13),c.qd(8),c.Ec(9,"currencyFormat"),c.qc(),c.mc(10,"i",14),c.qc(),c.qc(),c.qc()}if(2&t){const t=c.Dc();c.Ub(2),c.Mc("src",t.IfastPayConstant.ICON_PATH,c.gd),c.Ub(6),c.rd(t.currentIsValueMask?"MYR ******":c.Gc(9,2,null==t.data?null:t.data.amount,"MYR")||"-")}}function y(t,n){1&t&&c.nc(0)}function C(t,n){1&t&&c.mc(0,"span",25)}function T(t,n){1&t&&c.mc(0,"app-uic-auto-sweep-shariah-label-icon",26),2&t&&c.Mc("displayType","icon")}function v(t,n){if(1&t&&(c.rc(0,"div",27),c.qd(1),c.Ec(2,"number"),c.qc()),2&t){const t=c.Dc(2);c.Ub(1),c.sd("",c.Gc(2,1,null==t.data?null:t.data.interestRate,"1.3-3"),"%* p.a.")}}function x(t,n){if(1&t){const t=c.sc();c.rc(0,"uic-button",28),c.zc("click",(function(){c.dd(t);const n=c.Dc(2);return n.onClickOptIn(n.data)})),c.qd(1,"Opt-In"),c.qc()}2&t&&c.Mc("nzRound",!0)}const S=function(t){return{$implicit:t}};function z(t,n){if(1&t&&(c.rc(0,"div",15),c.rc(1,"div",16),c.od(2,y,1,0,"ng-container",17),c.rc(3,"div"),c.rc(4,"div",18),c.rc(5,"p",19),c.od(6,C,1,0,"span",20),c.qd(7),c.qc(),c.od(8,T,1,1,"app-uic-auto-sweep-shariah-label-icon",21),c.qc(),c.rc(9,"p",22),c.qd(10),c.Ec(11,"number"),c.qc(),c.od(12,v,3,4,"div",23),c.qc(),c.qc(),c.od(13,x,2,1,"uic-button",24),c.qc()),2&t){const t=c.Dc(),n=c.ad(11);c.Ub(2),c.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",c.Sc(12,S,t.data)),c.Ub(4),c.Mc("ngIf",null==t.data?null:t.data.hasOptedIn),c.Ub(1),c.sd("",null==t.data?null:t.data.paymentMode," "),c.Ub(1),c.Mc("ngIf","MYR"===(null==t.data?null:t.data.currency)),c.Ub(2),c.td("",null==t.data?null:t.data.currency," ",t.currentIsValueMask?"******":c.Gc(11,9,null==t.data?null:t.data.amount,"1.2-2"),""),c.Ub(2),c.Mc("ngIf",null==t.data?null:t.data.interestRate),c.Ub(1),c.Mc("ngIf",!(null!=t.data&&t.data.hasOptedIn))}}function O(t,n){1&t&&c.nc(0)}function w(t,n){if(1&t&&(c.rc(0,"div",31),c.qd(1),c.Ec(2,"number"),c.qc()),2&t){const t=c.Dc(2);c.Ub(1),c.sd("",c.Gc(2,1,null==t.data?null:t.data.interestRate,"1.2-2"),"% p.a.")}}function P(t,n){if(1&t&&(c.rc(0,"div",29),c.od(1,O,1,0,"ng-container",17),c.rc(2,"div",10),c.rc(3,"p",19),c.qd(4),c.qc(),c.rc(5,"p",22),c.qd(6),c.Ec(7,"currencyFormat"),c.qc(),c.od(8,w,3,4,"div",30),c.qc(),c.qc()),2&t){const t=c.Dc(),n=c.ad(11);c.Ub(1),c.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",c.Sc(8,S,t.data)),c.Ub(3),c.rd(null==t.data?null:t.data.paymentMode),c.Ub(2),c.rd(t.currentIsValueMask?(null==t.data?null:t.data.currency)+" ******":c.Gc(7,5,null==t.data?null:t.data.amount,null==t.data?null:t.data.currency)||"-"),c.Ub(2),c.Mc("ngIf",null==t.data?null:t.data.interestRate)}}function D(t,n){if(1&t&&c.mc(0,"b2c-ui-icon",33),2&t){const t=c.Dc().$implicit,n=c.Dc();c.Mc("name",n.getIconNameForCurrency(null==t?null:t.currency.toUpperCase()))}}function I(t,n){if(1&t&&c.od(0,D,1,1,"b2c-ui-icon",32),2&t){const t=n.$implicit,e=c.Dc();c.Mc("ngIf","no-icon"!==e.getIconNameForCurrency(null==t?null:t.currency.toUpperCase()))}}let A=(()=>{class t{constructor(t,n){this.cashSolutionService=t,this.router=n,this.IfastPayConstant=i.a,this.navigateIFastPay=new c.s,this.currentIsValueMask=!1,this.holdingsConstant=a.a}ngOnInit(){}onClickOptIn(t){this.router.navigate([o.a.APP,o.a.ACCOUNT_UPDATE,o.a.AUTO_SWEEP_ENROLMENT])}getIconNameForCurrency(t){return this.cashSolutionService.getIconNameForCurrency(t)}emitNavigate(){this.navigateIFastPay.emit()}}return t.\u0275fac=function(n){return new(n||t)(c.lc(l.a),c.lc(s.e))},t.\u0275cmp=c.fc({type:t,selectors:[["app-cash-solution-list-widget"]],inputs:{currentIsValueMask:"currentIsValueMask",data:"data"},outputs:{navigateIFastPay:"navigateIFastPay"},decls:12,vars:4,consts:[[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],["ifastpayAccTpl",""],["autosweepAccTpl",""],["cashAccTpl",""],["flagIconTpl",""],[3,"ngTemplateOutlet"],[1,"d-flex","align-items-center","gap-12px","pt-8px","pb-8px",2,"cursor","pointer",3,"click"],[1,"flex-shrink-0"],["width","24px","height","30px","alt","iFAST Pay",3,"src"],[1,"flex-grow-1"],[1,"text-12px","text-content-tertiary","font-weight-normal","mb-0"],[1,"d-flex","align-items-center","gap-4px"],[1,"t-sm","text-content-primary","font-weight-bold","mb-0"],["nz-icon","","nzType","right",1,"text-black","text-12px","pr-1"],[1,"d-flex","flex-wrap","align-item-center","gap-12px"],[1,"flex-grow-1","d-flex","align-item-center","gap-12px"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"d-flex","align-item-center","gap-4px"],[1,"t-xs","text-content-tertiary","mb-0"],["class","icon-tick-circle text-buy t-xs mr-1",4,"ngIf"],[3,"displayType",4,"ngIf"],[1,"t-sm","text-content-primary","font-weight-semibold","mb-0"],["class","interest-label bg-green-300",4,"ngIf"],["class","ml-auto","nzType","outlined",3,"nzRound","click",4,"ngIf"],[1,"icon-tick-circle","text-buy","t-xs","mr-1"],[3,"displayType"],[1,"interest-label","bg-green-300"],["nzType","outlined",1,"ml-auto",3,"nzRound","click"],[1,"d-flex","align-item-center","gap-12px"],["class","interest-label bg-black-2",4,"ngIf"],[1,"interest-label","bg-black-2"],["klass","w-24px",3,"name",4,"ngIf"],["klass","w-24px",3,"name"]],template:function(t,n){1&t&&(c.pc(0,
10),c.od(1,m,1,1,"ng-container",1),c.od(2,h,1,1,"ng-container",1),c.od(3,b,1,1,"ng-container",1),c.oc(),c.od(4,M,11,5,"ng-template",null,2,c.pd),c.od(6,z,14,14,"ng-template",null,3,c.pd),c.od(8,P,9,10,"ng-template",null,4,c.pd),c.od(10,I,1,1,"ng-template",null,5,c.pd)),2&t&&(c.Mc("ngSwitch",null==n.data?null:n.data.paymentMode),c.Ub(1),c.Mc("ngSwitchCase",n.holdingsConstant.IFAST_PAY),c.Ub(1),c.Mc("ngSwitchCase",n.holdingsConstant.AUTO_SWEEP),c.Ub(1),c.Mc("ngSwitchCase",n.holdingsConstant.CASH_ACCOUNT))},directives:[r.x,r.y,r.A,u.b,r.t,d.a,p.a,g.m],pipes:[f.a,r.g],styles:[""]}),t})()},"83RJ":function(t,n,e){"use strict";e.d(n,"a",(function(){return d}));var c=e("mrSG"),a=e("AcyG"),o=e("qKsX"),i=e("itXk"),l=e("gFZo"),s=e("fXoL"),r=e("4hBO");const u=["*"];let d=(()=>{class t{constructor(t){this.store=t,this.nzOffsetTopPC=101}ngOnChanges(t){}ngOnInit(){this.subscribeAnnoucementBarActivity()}subscribeAnnoucementBarActivity(){Object(i.a)([this.isAnnouncementBarClosed$,this.isAnnouncementBarDisplayStatus$,this.isMobile$]).subscribe(([t,n,e])=>{this.nzOffsetTopPC=e?0:n&&!t?101:61})}}return t.\u0275fac=function(n){return new(n||t)(s.lc(a.i))},t.\u0275cmp=s.fc({type:t,selectors:[["app-holdings-sticky-wrapper"]],features:[s.Sb],ngContentSelectors:u,decls:2,vars:1,consts:[[1,"w-100",3,"nzOffsetTop"]],template:function(t,n){1&t&&(s.Lc(),s.rc(0,"nz-affix",0),s.Kc(1),s.qc()),2&t&&s.Mc("nzOffsetTop",n.nzOffsetTopPC)},directives:[r.a],styles:[""],encapsulation:2}),Object(c.c)([Object(a.e)(o.a.announcementBarClosed)],t.prototype,"isAnnouncementBarClosed$",void 0),Object(c.c)([Object(a.e)(o.a.announcementBarDisplayStatus)],t.prototype,"isAnnouncementBarDisplayStatus$",void 0),Object(c.c)([Object(a.e)(l.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},F3rY:function(t,n,e){"use strict";e.r(n),e.d(n,"AppHoldingsModule",(function(){return j}));var c=e("tyNb"),a=e("mrSG"),o=e("2VHv"),i=e("AcyG"),l=e("gFZo"),s=e("H8v0"),r=e("fXoL"),u=e("HMML"),d=e("rrFE"),p=e("z7QD");let g=(()=>{class t{constructor(t,n,e,c,a){this.renderer=t,this.accountRestService=n,this.subHandlingService=e,this.store=c,this.mobileHeaderService=a,this.currentAccountString="",this.iSingleAcct=!1}ngOnInit(){this.renderer.addClass(document.body,"white-bg")}ngOnDestroy(){this.renderer.removeClass(document.body,"white-bg")}}return t.\u0275fac=function(n){return new(n||t)(r.lc(r.Q),r.lc(u.a),r.lc(o.a),r.lc(i.i),r.lc(d.a))},t.\u0275cmp=r.fc({type:t,selectors:[["app-holdings-layout"]],features:[r.Tb([o.a])],decls:3,vars:0,consts:[[1,"holding-layout"],[1,"pl-16px","pr-16px","pb-48px"]],template:function(t,n){1&t&&(r.rc(0,"uic-body",0),r.rc(1,"div",1),r.mc(2,"router-outlet"),r.qc(),r.qc())},directives:[p.a,c.j],styles:[""],encapsulation:2}),Object(a.c)([Object(i.e)(l.a.isMobile)],t.prototype,"isMobile$",void 0),Object(a.c)([Object(i.e)(s.a.getAccounts)],t.prototype,"authenticatedAcctList$",void 0),t})();var f=e("6h7t");const m=[{path:"",component:g,children:[{path:f.o.PERFORMANCE,loadChildren:()=>Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(6),e.e(7),e.e(8),e.e(9),e.e(10),e.e(11),e.e(12),e.e(13),e.e(15),e.e(29),e.e(91)]).then(e.bind(null,"v755")).then(t=>t.HoldingsPerformanceModule)},{path:f.o.INCOME_TREND,loadChildren:()=>Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(6),e.e(7),e.e(8),e.e(9),e.e(10),e.e(11),e.e(12),e.e(13),e.e(15),e.e(29),e.e(39),e.e(14),e.e(83)]).then(e.bind(null,"Fl6K")).then(t=>t.HoldingsIncomeTrendsModule)},{path:f.o.DETAILS,loadChildren:()=>Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(6),e.e(7),e.e(8),e.e(9),e.e(10),e.e(11),e.e(12),e.e(13),e.e(15),e.e(17),e.e(19),e.e(21),e.e(23),e.e(26),e.e(25),e.e(33),e.e(29),e.e(30),e.e(28),e.e(35),e.e(34),e.e(39),e.e(44),e.e(118)]).then(e.bind(null,"wFPQ")).then(t=>t.HoldingsProductDetailsModule)},{path:"",loadChildren:()=>Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(6),e.e(7),e.e(8),e.e(9),e.e(10),e.e(11),e.e(12),e.e(13),e.e(15),e.e(29),e.e(97)]).then(e.bind(null,"r+wm")).then(t=>t.AppHoldingsOverviewModule)}]}];let h=(()=>{class t{}return t.\u0275mod=r.jc({type:t}),t.\u0275inj=r.ic({factory:function(n){return new(n||t)},imports:[[c.i.forChild(m)],c.i]}),t})();e("3hac");var b=e("eWI0"),M=e("M+uK"),y=e("x1Dg");e("ofXK");var C=e("NMKc"),T=e("UMfn"),v=e("jaXF"),x=e("izqA"),S=(e("vaQS"),e("of88")),z=(e("WNtN"),e("tQ6y"),e("Qygw")),O=(e("5ag1"),e("tOWp"),e("5Lp6"),e("8BBg")),w=e("Nqz0"),P=e("Q8cG"),D=e("PScX"),I=e("3/1E"),A=e("oyxB"),U=e("4hBO"),q=(e("/Ubl"),e("s8HB")),E=e("3Pt+"),k=e("mn7V"),V=e("m+HN"),L=(e("ccfo"),e("LUEE"),e("h5K5")),F=(e("UnzQ"),e("p5Bv")),_=(e("ITfe"),e("83RJ"),e("K87L")),R=e("xzdC"),N=e("dUuZ"),W=e("pmm+"),H=e("gl91"),Y=(e("4jfS"),e("M55f"));e("NItQ");const $=[b.x],B=[h,M.a,y.a,y.a,C.a,T.b,v.a,x.a,S.a,b.o,O.a,w.e,P.e,D.d,E.n,k.a,N.a,W.a,H.a,I.b,V.a,L.a,A.h,F.a,U.b,_.a,Y.a,z.a],G=[R.a];let j=(()=>{class t{constructor(t){this.b2cIconService=t,this.b2cIconService.registerIcons([...$])}}return t.\u0275mod=r.jc({type:t}),t.\u0275inj=r.ic({factory:function(n){return new(n||t)(r.vc(b.n))}
1,providers:[...G],imports:[[...B,i.d.forFeature([q.a])]]}),t})()},ITfe:function(t,n,e){"use strict";e.d(n,"a",(function(){return E}));var c=e("mrSG"),a=e("fXoL"),o=e("AcyG"),i=e("gFZo"),l=e("6n6N"),s=e("ofXK"),r=e("/ai0");function u(t,n){1&t&&a.nc(0)}function d(t,n){if(1&t&&(a.pc(0),a.od(1,u,1,0,"ng-container",4),a.oc()),2&t){a.Dc();const t=a.ad(8);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function p(t,n){1&t&&a.nc(0)}function g(t,n){if(1&t&&(a.pc(0),a.od(1,p,1,0,"ng-container",4),a.oc()),2&t){a.Dc();const t=a.ad(6);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function f(t,n){1&t&&a.nc(0)}function m(t,n){if(1&t&&(a.pc(0),a.od(1,f,1,0,"ng-container",4),a.oc()),2&t){const t=a.Dc(5);a.Ub(1),a.Mc("ngTemplateOutlet",t.content)}}function h(t,n){if(1&t&&(a.rc(0,"h6",9),a.qd(1),a.qc()),2&t){const t=a.Dc(5);a.Ub(1),a.sd(" ",t.title," ")}}function b(t,n){if(1&t&&(a.pc(0),a.od(1,m,2,1,"ng-container",7),a.od(2,h,2,1,"ng-template",null,8,a.pd),a.oc()),2&t){const t=a.ad(3),n=a.Dc(4);a.Ub(1),a.Mc("ngIf",n.getTemplateRef(n.title))("ngIfElse",t)}}function M(t,n){if(1&t&&a.od(0,b,4,2,"ng-container",0),2&t){const t=a.Dc(3);a.Mc("ngIf",t.title)}}function y(t,n){1&t&&a.nc(0)}function C(t,n){if(1&t&&(a.pc(0),a.od(1,y,1,0,"ng-container",4),a.oc()),2&t){const t=a.Dc(4);a.Ub(1),a.Mc("ngTemplateOutlet",t.content)}}function T(t,n){if(1&t&&(a.pc(0),a.od(1,C,2,1,"ng-container",7),a.oc()),2&t){const t=a.Dc(3),n=a.ad(2);a.Ub(1),a.Mc("ngIf",t.getTemplateRef(t.content))("ngIfElse",n)}}function v(t,n){if(1&t){const t=a.sc();a.rc(0,"ui-modal-pc-drawer-mobile",5),a.zc("nzOnCancel",(function(){return a.dd(t),a.Dc(2).onCloseModal()})),a.od(1,M,1,1,"ng-template",null,6,a.pd),a.od(3,T,2,2,"ng-container",0),a.qc()}if(2&t){const t=a.ad(2),n=a.Dc(2);a.Mc("nzVisible",!0)("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",640)("nzTitle",t)("nzFooter",null)("isMobileFullScreen",!0),a.Ub(3),a.Mc("ngIf",n.content)}}function x(t,n){1&t&&a.nc(0)}function S(t,n){if(1&t&&(a.pc(0),a.od(1,x,1,0,"ng-container",4),a.oc()),2&t){const t=a.Dc(5);a.Ub(1),a.Mc("ngTemplateOutlet",t.content)}}function z(t,n){if(1&t&&(a.rc(0,"span",11),a.qd(1),a.qc()),2&t){const t=a.Dc(5);a.Ub(1),a.rd(t.title)}}function O(t,n){if(1&t&&(a.pc(0),a.od(1,S,2,1,"ng-container",7),a.od(2,z,2,1,"ng-template",null,8,a.pd),a.oc()),2&t){const t=a.ad(3),n=a.Dc(4);a.Ub(1),a.Mc("ngIf",n.getTemplateRef(n.title))("ngIfElse",t)}}function w(t,n){if(1&t&&a.od(0,O,4,2,"ng-container",0),2&t){const t=a.Dc(3);a.Mc("ngIf",t.title)}}function P(t,n){1&t&&a.nc(0)}function D(t,n){if(1&t&&(a.pc(0),a.od(1,P,1,0,"ng-container",4),a.oc()),2&t){const t=a.Dc(4);a.Ub(1),a.Mc("ngTemplateOutlet",t.content)}}function I(t,n){if(1&t&&(a.pc(0),a.od(1,D,2,1,"ng-container",7),a.oc()),2&t){const t=a.Dc(3),n=a.ad(2);a.Ub(1),a.Mc("ngIf",t.getTemplateRef(t.content))("ngIfElse",n)}}function A(t,n){if(1&t){const t=a.sc();a.rc(0,"ui-modal-pc-drawer-mobile",10),a.zc("nzOnCancel",(function(){return a.dd(t),a.Dc(2).onCloseModal()})),a.od(1,w,1,1,"ng-template",null,6,a.pd),a.od(3,I,2,2,"ng-container",0),a.qc()}if(2&t){const t=a.ad(2),n=a.Dc(2);a.Mc("nzVisible",!0)("nzClosable",!1)("nzMaskClosable",!0)("nzTitle",t)("nzFooter",null)("isMobileFullScreen",!1),a.Ub(3),a.Mc("ngIf",n.content)}}function U(t,n){if(1&t&&(a.pc(0),a.od(1,d,2,1,"ng-container",0),a.Ec(2,"async"),a.od(3,g,2,1,"ng-container",0),a.Ec(4,"async"),a.od(5,v,4,8,"ng-template",null,2,a.pd),a.od(7,A,4,7,"ng-template",null,3,a.pd),a.oc()),2&t){const t=a.Dc();a.Ub(1),a.Mc("ngIf",a.Fc(2,2,t.isMobile$)),a.Ub(2),a.Mc("ngIf",!a.Fc(4,4,t.isMobile$))}}function q(t,n){if(1&t&&(a.rc(0,"div",12),a.qd(1),a.qc()),2&t){const t=a.Dc();a.Ub(1),a.sd(" ",t.content," ")}}let E=(()=>{class t{constructor(){this.showModal=!1,this.showModalChange=new a.s,this.title=null,this.content=null,this.getTemplateRef=l.a}ngOnChanges(t){}ngOnInit(){}onCloseModal(){this.showModal=!1,this.showModalChange.emit(!1)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=a.fc({type:t,selectors:[["holdings-tooltip-modal"]],inputs:{showModal:"showModal",title:"title",content:"content"},outputs:{showModalChange:"showModalChange"},features:[a.Sb],decls:3,vars:1,consts:[[4,"ngIf"],["contentStringTpl",""],["desktopTooltipModal",""],["mobileTooltipModal",""],[4,"ngTemplateOutlet"],[3,"nzVisible","nzClosable","nzMaskClosable","nzWidth","nzTitle","nzFooter","isMobileFullScreen","nzOnCancel"],["modalTitle",""],[4,"ngIf","ngIfElse"],["titleStringTpl",""],[1,"font-semibold","text-xl","text-content-title"],[3,"nzVisible","nzClosable","nzMaskClosable","nzTitle","nzFooter","isMobileFullScreen","nzOnCancel"],[1,"font-medium","text-lg","text-content-primary"],[1,"text-sm","font-normal","text-content-secondary","mb-4"]],template:function(t,n){1&t&&(a.od(0,U,9,6,"ng-container",0),a.od(1,q,2,1,"ng-template",null,1,a.pd)),2&t&&a.Mc("ngIf",n.showModal)}
1,directives:[s.t,s.A,r.a],pipes:[s.b],styles:[""],encapsulation:2}),Object(c.c)([Object(o.e)(i.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},LUEE:function(t,n,e){"use strict";e.d(n,"a",(function(){return R}));var c=e("6h7t"),a=e("3hac"),o=e("fXoL"),i=e("ofXK"),l=e("nJia"),s=e("p1br");function r(t,n){1&t&&o.nc(0)}function u(t,n){if(1&t&&(o.pc(0),o.od(1,r,1,0,"ng-container",8),o.oc()),2&t){o.Dc();const t=o.ad(7);o.Ub(1),o.Mc("ngTemplateOutlet",t)}}function d(t,n){1&t&&o.nc(0)}function p(t,n){if(1&t&&(o.pc(0),o.od(1,d,1,0,"ng-container",8),o.oc()),2&t){o.Dc();const t=o.ad(7);o.Ub(1),o.Mc("ngTemplateOutlet",t)}}function g(t,n){1&t&&o.nc(0)}function f(t,n){if(1&t&&(o.pc(0),o.od(1,g,1,0,"ng-container",8),o.oc()),2&t){o.Dc();const t=o.ad(7);o.Ub(1),o.Mc("ngTemplateOutlet",t)}}function m(t,n){1&t&&o.nc(0)}function h(t,n){1&t&&o.nc(0)}function b(t,n){if(1&t&&o.mc(0,"span",12),2&t){const t=o.Dc(3);o.Mc("innerHTML",null==t.data?null:t.data.productName,o.ed)}}const M=function(t){return{label:t,name:""}},y=function(t,n){return{label:t,name:n}};function C(t,n){if(1&t&&(o.rc(0,"div",9),o.od(1,m,1,0,"ng-container",10),o.od(2,h,1,0,"ng-container",10),o.od(3,b,1,1,"span",11),o.qc()),2&t){const t=o.Dc(2),n=o.ad(4),e=o.ad(2);o.Ub(1),o.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",o.Sc(5,M,t.transformIpoStock(null==t.data?null:t.data.refNo,null==t.data?null:t.data.exchange))),o.Ub(1),o.Mc("ngTemplateOutlet",e)("ngTemplateOutletContext",o.Tc(7,y,t.transformStockExchange(null==t.data?null:t.data.exchange),null==t.data?null:t.data.productCode)),o.Ub(1),o.Mc("ngIf",null==t.data?null:t.data.productName)}}function T(t,n){1&t&&o.nc(0)}function v(t,n){if(1&t&&(o.rc(0,"p",14),o.qd(1),o.Ec(2,"bondName"),o.qc()),2&t){const t=o.Dc(3);o.Ub(1),o.rd(o.Gc(2,1,null==t.data?null:t.data.bondIssuer,null==t.data?null:t.data.tradingWithoutAi))}}const x=function(t){return{label:"",name:t}};function S(t,n){if(1&t&&(o.pc(0),o.od(1,T,1,0,"ng-container",10),o.od(2,v,3,4,"p",13),o.oc()),2&t){const t=o.Dc(2),n=o.ad(2);o.Ub(1),o.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",o.Sc(3,x,null==t.data?null:t.data.productName)),o.Ub(1),o.Mc("ngIf",null==t.data?null:t.data.bondIssuer)}}function z(t,n){1&t&&o.nc(0)}function O(t,n){if(1&t&&(o.rc(0,"div",18),o.od(1,z,1,0,"ng-container",10),o.qc()),2&t){const t=o.Dc(3),n=o.ad(2);o.Ub(1),o.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",o.Sc(2,M,t.normaliseFundType(null==t.data?null:t.data.fundType)))}}function w(t,n){if(1&t&&o.mc(0,"img",19),2&t){const t=o.Dc(3);o.Mc("src",t.holdingsImgPath+"dividend.png",o.gd)}}function P(t,n){if(1&t&&(o.pc(0),o.od(1,O,2,4,"div",15),o.rc(2,"p",16),o.qd(3),o.od(4,w,1,1,"img",17),o.qc(),o.oc()),2&t){const t=o.Dc(2);o.Ub(1),o.Mc("ngIf",null==t.data?null:t.data.fundType),o.Ub(2),o.sd(" ",null==t.data?null:t.data.productName," "),o.Ub(1),o.Mc("ngIf",null==t.data?null:t.data.gotDividend)}}function D(t,n){1&t&&o.nc(0)}function I(t,n){if(1&t&&(o.pc(0),o.od(1,D,1,0,"ng-container",10),o.oc()),2&t){const t=o.Dc(2),n=o.ad(2);o.Ub(1),o.Mc("ngTemplateOutlet",n)("ngTemplateOutletContext",o.Sc(2,x,null==t.data?null:t.data.productName))}}function A(t,n){if(1&t&&(o.pc(0),o.rc(1,"p",16),o.qd(2),o.qc(),o.oc()),2&t){const t=o.Dc(2);o.Ub(2),o.rd((null==t.data?null:t.data.productName)||"-")}}function U(t,n){if(1&t&&(o.pc(0),o.pc(1,3),o.rc(2,"div",4),o.od(3,u,2,1,"ng-container",5),o.od(4,p,2,1,"ng-container",5),o.od(5,f,2,1,"ng-container",5),o.od(6,C,4,10,"ng-template",null,6,o.pd),o.od(8,S,3,5,"ng-container",5),o.od(9,P,5,3,"ng-container",5),o.od(10,I,2,4,"ng-container",5),o.od(11,A,3,1,"ng-container",7),o.qc(),o.oc(),o.oc()),2&t){const t=o.Dc();o.Ub(1),o.Mc("ngSwitch",null==t.data.productType?null:t.data.productType.toLowerCase()),o.Ub(1),o.Mc("ngClass",t.nzSize),o.Ub(1),o.Mc("ngSwitchCase","stockandetf"),o.Ub(1),o.Mc("ngSwitchCase","stock"),o.Ub(1),o.Mc("ngSwitchCase","etf"),o.Ub(3),o.Mc("ngSwitchCase","bond"),o.Ub(1),o.Mc("ngSwitchCase","ut"),o.Ub(1),o.Mc("ngSwitchCase","dpms")}}const q=function(t){return{"background-color":t}};function E(t,n){if(1&t&&(o.rc(0,"div",23),o.qd(1),o.qc()),2&t){const t=o.Dc().label,n=o.Dc();o.Mc("ngClass",n.exchangeLabelClass)("ngStyle",o.Sc(3,q,n.getLabelColor(t))),o.Ub(1),o.rd(t)}}function k(t,n){if(1&t&&o.mc(0,"p",24),2&t){const t=o.Dc().name,n=o.Dc();o.Mc("ngClass",n.nameClass)("innerHTML",t,o.ed)}}
1function V(t,n){if(1&t&&(o.rc(0,"div",20),o.od(1,E,2,5,"div",21),o.od(2,k,1,2,"p",22),o.qc()),2&t){const t=n.label,e=n.name,c=o.Dc();o.Mc("ngClass",c.labelAndNamePosition),o.Ub(1),o.Mc("ngIf",t),o.Ub(1),o.Mc("ngIf",e)}}function L(t,n){if(1&t&&(o.rc(0,"div",26),o.qd(1),o.qc()),2&t){const t=o.Dc().label,n=o.Dc();o.Mc("ngClass",n.exchangeLabelClass)("ngStyle",o.Sc(3,q,n.getLabelColor(t))),o.Ub(1),o.rd(t)}}function F(t,n){if(1&t&&o.mc(0,"p",24),2&t){const t=o.Dc().name,n=o.Dc();o.Mc("ngClass",n.nameClass)("innerHTML",t,o.ed)}}function _(t,n){if(1&t&&(o.rc(0,"div",20),o.od(1,L,2,5,"div",25),o.od(2,F,1,2,"p",22),o.qc()),2&t){const t=n.label,e=n.name,c=o.Dc();o.Mc("ngClass",c.labelAndNamePosition),o.Ub(1),o.Mc("ngIf",t),o.Ub(1),o.Mc("ngIf",e)}}let R=(()=>{class t{constructor(t){this.cdr=t,this.productTypeColorList=c.e.PRODUCT_TYPE_COLORS,this.exchangeColorList=c.e.STOCK_ETF_EXCHANGE_COLORS,this.fundTypeColorList=c.e.FUND_TYPE_COLORS,this.equityTypeColorList=c.e.EQUITY_FINANCING_COLORS,this.holdingsImgPath=c.g.HOLDINGS_IMG_PATH,this.nzSize="small",this.labelAndNamePosition="left-right"}ngOnInit(){}ngOnChanges(t){t.data&&this.cdr.detectChanges()}transformStockExchange(t){return t===c.q.KLSE?c.q.BURSA:t}transformIpoStock(t,n){return(null==t?void 0:t.startsWith("I"))?c.q.IPO:""}getLabelColor(t){const n=this.productTypeColorList.find(n=>n.productType===t);if(n)return n.color;const e=this.exchangeColorList.find(n=>n.exchange===t);if(e)return e.color;const c=this.fundTypeColorList.find(n=>n.fundType===t);if(c)return c.color;const a=this.equityTypeColorList.find(n=>n.equityType===t);return a?a.color:"#dddddd"}normaliseFundType(t){switch(t.toUpperCase()){case a.a.EPF:return a.a.EPF;case a.a.PRS:case a.a.PRS_GOV:return a.a.PRS;default:return""}}}return t.\u0275fac=function(n){return new(n||t)(o.lc(o.j))},t.\u0275cmp=o.fc({type:t,selectors:[["holdings-product-label"]],inputs:{nzSize:"nzSize",labelAndNamePosition:"labelAndNamePosition",data:"data",exchangeLabelClass:"exchangeLabelClass",nameClass:"nameClass"},features:[o.Sb],decls:5,vars:1,consts:[[4,"ngIf"],["productLabelTpl",""],["ipoLabelTpl",""],[3,"ngSwitch"],[1,"holding-product-label",3,"ngClass"],[4,"ngSwitchCase"],["stockAndEtfLabelTemplate",""],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet"],[2,"display","flex","align-items","center","flex-wrap","wrap"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["style","display: block; width: 100%;","class","name-secondary",3,"innerHTML",4,"ngIf"],[1,"name-secondary",2,"display","block","width","100%",3,"innerHTML"],["class","name-secondary",4,"ngIf"],[1,"name-secondary"],["class","d-flex",4,"ngIf"],[1,"name-primary"],["nz-tooltip","","class","ml-1","alt","Dividend Image","nzTooltipTitle","This unit trust has declared an income distribution which caused a drop in NAV. All distribution of income will be reinvested in units of the relevant unit trust","nzTooltipPlacement","top",3,"src",4,"ngIf"],[1,"d-flex"],["nz-tooltip","","alt","Dividend Image","nzTooltipTitle","This unit trust has declared an income distribution which caused a drop in NAV. All distribution of income will be reinvested in units of the relevant unit trust","nzTooltipPlacement","top",1,"ml-1",3,"src"],[3,"ngClass"],["class","exchange-label",3,"ngClass","ngStyle",4,"ngIf"],["class","name-primary",3,"ngClass","innerHTML",4,"ngIf"],[1,"exchange-label",3,"ngClass","ngStyle"],[1,"name-primary",3,"ngClass","innerHTML"],["class","ipo-label","style","margin-right:3px;font-size:11px",3,"ngClass","ngStyle",4,"ngIf"],[1,"ipo-label",2,"margin-right","3px","font-size","11px",3,"ngClass","ngStyle"]],template:function(t,n){1&t&&(o.od(0,U,12,8,"ng-container",0),o.od(1,V,3,3,"ng-template",null,1,o.pd),o.od(3,_,3,3,"ng-template",null,2,o.pd)),2&t&&o.Mc("ngIf",n.data)},directives:[i.t,i.x,i.q,i.y,i.z,i.A,l.e,i.w],pipes:[s.a],styles:[".holding-product-label[_ngcontent-%COMP%]   .left-right[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:2px}.holding-product-label[_ngcontent-%COMP%]   .up-down[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.holding-product-label[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%]{color:#fff}.holding-product-label[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%], .holding-product-label[_ngcontent-%COMP%]   .ipo-label[_ngcontent-%COMP%]{display:inline-flex;background:#3a3a3a;padding:1px 2px;border-radius:4px;white-space:nowrap;line-height:normal;font-weight:500}.holding-product-label[_ngcontent-%COMP%]   .ipo-label[_ngcontent-%COMP%]{color:#000}.holding-product-label[_ngcontent-%COMP%]   .name-primary[_ngcontent-%COMP%]{color:var(--color-content-primary);font-weight:500;margin-bottom:0}.holding-product-label[_ngcontent-%COMP%]   .name-secondary[_ngcontent-%COMP%]{color:var(--color-content-secondary-light);font-weight:400;margin-bottom:0;margin-top:2px}.holding-product-label.x-small[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%]{font-size:10px}.holding-product-label.x-small[_ngcontent-%COMP%]   .name-primary[_ngcontent-%COMP%]{font-size:13px}.holding-product-label.x-small[_ngcontent-%COMP%]   .name-secondary[_ngcontent-%COMP%]{font-size:10px}.holding-product-label.small[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%]{font-size:11px}.holding-product-label.small[_ngcontent-%COMP%]   .name-primary[_ngcontent-%COMP%]{font-size:14px}.holding-product-label.small[_ngcontent-%COMP%]   .name-secondary[_ngcontent-%COMP%]{font-size:12px}.holding-product-label.default[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%]{font-size:13px}.holding-product-label.default[_ngcontent-%COMP%]   .name-primary[_ngcontent-%COMP%]{font-size:16px}.holding-product-label.default[_ngcontent-%COMP%]   .name-secondary[_ngcontent-%COMP%]{font-size:12px}
1.holding-product-label.large[_ngcontent-%COMP%]   .exchange-label[_ngcontent-%COMP%]{font-size:17px;padding:1px 4px}.holding-product-label.large[_ngcontent-%COMP%]   .name-primary[_ngcontent-%COMP%]{font-size:18px}.holding-product-label.large[_ngcontent-%COMP%]   .name-secondary[_ngcontent-%COMP%]{font-size:14px}"]}),t})()},NItQ:function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));var c=e("4S9j"),a=e("fXoL"),o=e("AcyG"),i=e("tyNb");let l=(()=>{class t{constructor(t,n){this.store=t,this.router=n}ngOnInit(){}navigate(){this.router.navigate([c.a.APP,c.a.GLOBAL_VIEW,c.a.LANDING])}}return t.\u0275fac=function(n){return new(n||t)(a.lc(o.i),a.lc(i.e))},t.\u0275cmp=a.fc({type:t,selectors:[["app-holdings-ifast-global-view-widget"]],decls:10,vars:0,consts:[[2,"cursor","pointer",3,"click"],[1,"border","border-content-border","rounded-16px","pt-12px","pb-12px","pl-24px","pr-24px",2,"background-color","#F6F6F6"],[1,"d-flex","align-item-center","gap-16px"],[1,"rounded-12px","d-flex","align-item-center","justify-content-center",2,"width","48px","height","48px","flex-shrink","0","overflow","hidden"],["src","assets/images/igv/igv.svg","alt","iFAST Global View",2,"width","48px","height","48px"],[1,"d-flex","flex-column","gap-4px","flex-1"],[1,"t-sm","font-weight-semibold","text-black","mb-0"],[1,"t-xs","text-content-secondary-light","mb-0"]],template:function(t,n){1&t&&(a.rc(0,"div",0),a.zc("click",(function(){return n.navigate()})),a.rc(1,"div",1),a.rc(2,"div",2),a.rc(3,"div",3),a.mc(4,"img",4),a.qc(),a.rc(5,"div",5),a.rc(6,"p",6),a.qd(7,"iFAST Global View"),a.qc(),a.rc(8,"p",7),a.qd(9,"Link up with iFAST ecosystem for a comprehensive global view."),a.qc(),a.qc(),a.qc(),a.qc(),a.qc())},styles:[""]}),t})()},UnzQ:function(t,n,e){"use strict";e.d(n,"a",(function(){return z}));var c=e("fXoL"),a=e("H8v0"),o=e("s8HB"),i=e("3hac"),l=e("AcyG"),s=e("ofXK"),r=e("oyxB"),u=e("Fr3v"),d=e("/ai0"),p=e("bE2y"),g=e("3Pt+"),f=e("5vDB");function m(t,n){1&t&&c.nc(0)}function h(t,n){if(1&t&&(c.pc(0),c.od(1,m,1,0,"ng-container",3),c.oc()),2&t){c.Dc(2);const t=c.ad(2);c.Ub(1),c.Mc("ngTemplateOutlet",t)}}function b(t,n){1&t&&c.nc(0)}function M(t,n){if(1&t&&(c.pc(0),c.od(1,b,1,0,"ng-container",3),c.oc()),2&t){c.Dc(2);const t=c.ad(4);c.Ub(1),c.Mc("ngTemplateOutlet",t)}}function y(t,n){if(1&t&&(c.pc(0),c.od(1,h,2,1,"ng-container",0),c.od(2,M,2,1,"ng-container",0),c.oc()),2&t){const t=c.Dc();c.Ub(1),c.Mc("ngIf",!t.isDrawer),c.Ub(1),c.Mc("ngIf",t.isDrawer)}}function C(t,n){if(1&t){const t=c.sc();c.pc(0),c.rc(1,"nz-tab",7),c.zc("nzClick",(function(){c.dd(t);const e=n.$implicit,a=n.index;return c.Dc(2).onTabChange(e,a)})),c.qc(),c.oc()}if(2&t){const t=n.$implicit;c.Ub(1),c.Mc("nzTitle",null==t?null:t.label)}}function T(t,n){if(1&t&&(c.rc(0,"div",4),c.rc(1,"nz-tabset",5),c.od(2,C,2,1,"ng-container",6),c.qc(),c.qc()),2&t){const t=c.Dc();c.Ub(1),c.Mc("nzSelectedIndex",t.selectedTabIndex),c.Ub(1),c.Mc("ngForOf",t.selectAcctOptions)}}function v(t,n){1&t&&c.mc(0,"nz-divider",15)}function x(t,n){if(1&t&&(c.pc(0),c.rc(1,"label",13),c.qd(2),c.qc(),c.od(3,v,1,0,"nz-divider",14),c.oc()),2&t){const t=n.$implicit,e=n.last;c.Ub(1),c.Mc("nzValue",t.value),c.Ub(1),c.rd(t.label),c.Ub(1),c.Mc("ngIf",!e)}}function S(t,n){if(1&t){const t=c.sc();c.rc(0,"div",8),c.zc("click",(function(){return c.dd(t),c.Dc().triggerDrawer(!0)})),c.rc(1,"h4",9),c.qd(2),c.qc(),c.mc(3,"i",10),c.qc(),c.rc(4,"ui-modal-pc-drawer-mobile",11),c.zc("nzOnCancel",(function(){return c.dd(t),c.Dc().triggerDrawer(!1)})),c.rc(5,"nz-radio-group",12),c.zc("ngModelChange",(function(n){return c.dd(t),c.Dc().onRadioChange(n)})),c.od(6,x,4,3,"ng-container",6),c.qc(),c.qc()}if(2&t){const t=c.Dc();c.Ub(2),c.rd(t.getSelectedOptionLabel()),c.Ub(2),c.Mc("nzVisible",t.drawerVisible)("nzClosable",!1)("nzMaskClosable",!0)("nzFooter",null)("isMobileFullScreen",!1),c.Ub(1),c.Mc("ngClass","radio-right")("ngModel",t.selectedOption),c.Ub(1),c.Mc("ngForOf",t.selectAcctOptions)}}let z=(()=>{class t{constructor(t,n){this.renderer=t,this.store=n,this.isDrawer=!1,this.isHidden=!1,this.selectedAccountOption=i.a.ALL,this.selectedAccountOptionChange=new c.s,this.selectedOption=i.a.ALL,this.selectedTabIndex=0,this.selectAcctOptions=[{value:i.a.ALL,label:"All Account"}],this.drawerVisible=!1}ngOnChanges(t){var n;(null===(n=t.selectedAccountOption)||void 0===n?void 0:n.firstChange)&&(console.log("changes.selectedAccountOption"),this.setupAccountOptions(),this.updateAccountSelection(this.selectedAccountOption,!1))}ngOnInit(){this.renderer.addClass(document.body,"white-bg"),this.setupAccountOptions()}setupAccountOptions(){if(this.selectAcctOptions.length>1)return;const t=this.store.selectSnapshot(a.a.getAccounts).filter(t=>{var n;return!(null===(n=t.refno)||void 0===n?void 0:n.startsWith("I"))}).sort((t,n)=>"P"===(null==t?void 0:t.accountType)&&"P"!==(null==n?void 0:n.accountType)?-1:"P"!==(null==t?void 0:t.accountType)&&"P"
1===(null==n?void 0:n.accountType)?1:0).map(t=>{var n;return{value:t.refno,label:((null===(n=t.accountTypeDisplay)||void 0===n?void 0:n.split("-")[1])||"")+t.refno}});this.selectAcctOptions=[{value:i.a.ALL,label:"All Account"},...t]}onTabChange(t,n){this.updateAccountSelection(t.value)}onRadioChange(t){this.updateAccountSelection(t),this.triggerDrawer(!1)}updateAccountSelection(t,n=!0){this.selectedOption!==t&&(this.selectedTabIndex=this.selectAcctOptions.findIndex(n=>n.value===t),this.selectedOption=t,this.store.dispatch(new o.b(t)),n&&this.selectedAccountOptionChange.emit(t))}triggerDrawer(t){this.drawerVisible=t}getSelectedOptionLabel(){var t;return(null===(t=this.selectAcctOptions.find(t=>t.value===this.selectedOption))||void 0===t?void 0:t.label)||"-"}}return t.\u0275fac=function(n){return new(n||t)(c.lc(c.Q),c.lc(l.i))},t.\u0275cmp=c.fc({type:t,selectors:[["app-holdings-refno-select-tab"]],inputs:{isDrawer:"isDrawer",isHidden:"isHidden",selectedAccountOption:"selectedAccountOption"},outputs:{selectedAccountOptionChange:"selectedAccountOptionChange"},features:[c.Sb],decls:5,vars:1,consts:[[4,"ngIf"],["tabTpl",""],["drawerTpl",""],[4,"ngTemplateOutlet"],[1,"refno-select-tab"],["detectSwipe","",1,"reset","no-padding",3,"nzSelectedIndex"],[4,"ngFor","ngForOf"],[3,"nzTitle","nzClick"],[1,"d-flex","align-items-center","gap-4px","pointer",3,"click"],[1,"t-lg","font-weight-bold","mb-0"],[1,"t-2xl","icon-arrow-down-o"],["nzTitle","Select",3,"nzVisible","nzClosable","nzMaskClosable","nzFooter","isMobileFullScreen","nzOnCancel"],[1,"black-radio",3,"ngClass","ngModel","ngModelChange"],["nz-radio","",1,"pt-16px","pb-16px",3,"nzValue"],["class","my-0",4,"ngIf"],[1,"my-0"]],template:function(t,n){1&t&&(c.od(0,y,3,2,"ng-container",0),c.od(1,T,3,2,"ng-template",null,1,c.pd),c.od(3,S,7,9,"ng-template",null,2,c.pd)),2&t&&c.Mc("ngIf",!n.isHidden)},directives:[s.t,s.A,r.f,u.a,s.s,r.b,d.a,p.c,s.q,g.t,g.w,p.b,f.a],styles:[".refno-select-tab .ant-tabs-bar .ant-tabs-nav-container .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-ink-bar{height:2px}.refno-select-tab .ant-tabs-bar .ant-tabs-nav-container .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab{color:var(--color-content-tertiary);font-size:var(--t-base);font-weight:600;padding:8px 12px;line-height:20px;margin-right:0}.refno-select-tab .ant-tabs-bar .ant-tabs-nav-container .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active{color:var(--color-content-label)}"],encapsulation:2}),t})()},WNtN:function(t,n,e){"use strict";e.d(n,"a",(function(){return d}));var c=e("mrSG"),a=e("AcyG"),o=e("gFZo"),i=e("j+kT"),l=e("6h7t"),s=e("fXoL");function r(t,n){if(1&t&&(s.rc(0,"div",3),s.rc(1,"h2",1),s.qd(2,"Holdings"),s.qc(),s.mc(3,"div",4),s.rc(4,"a",5),s.qd(5," Link To Previous Holdings Page "),s.qc(),s.qc()),2&t){const t=s.Dc();s.Ub(4),s.Mc("href",t.originalHoldingPageLink,s.gd)}}const u=["*"];let d=(()=>{class t{constructor(){this.originalHoldingPageLink=Object(i.a)(l.o.APP,l.o.HOLDINGS_ORIGINAL)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=s.fc({type:t,selectors:[["holdings-header"]],ngContentSelectors:u,decls:6,vars:0,consts:[[1,"holdings-header","d-flex","flex-column","gap-12px"],[1,"t-2xl","font-display-title","font-weight-bold","mb-0"],["titleWithNavTrial",""],[1,"d-flex","flex-row","gap-10px","align-item-center"],[1,"divider","ml-0"],[1,"font-weight-bold",3,"href"]],template:function(t,n){1&t&&(s.Lc(),s.rc(0,"div",0),s.rc(1,"h2",1),s.qd(2,"Holdings"),s.qc(),s.Kc(3),s.qc(),s.od(4,r,6,1,"ng-template",null,2,s.pd))},styles:[".holdings-header .divider{width:1px;height:36px;margin-left:8px;margin-right:8px;background:var(--color-content-border)}"],encapsulation:2}),Object(c.c)([Object(a.e)(o.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},ccfo:function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var c=e("mrSG"),a=e("6h7t"),o=e("AcyG"),i=e("gFZo"),l=e("3hac"),s=e("fXoL"),r=e("tyNb"),u=e("ofXK"),d=e("PtUS");function p(t,n){if(1&t&&(s.pc(0),s.rc(1,"div",6),s.mc(2,"img",7),s.qc(),s.oc()),2&t){const t=s.Dc();s.Ub(2),s.Mc("src",t.ImagePathConstant.HOLDINGS_IMG_PATH+"empty-box.svg",s.gd)}}function g(t,n){if(1&t){const t=s.sc();s.pc(0),s.rc(1,"uic-button",8),s.zc("click",(function(){return s.dd(t),s.Dc().navigateToExploreInvestIdea()})),s.Ec(2,"async"),s.Ec(3,"async"),s.qd(4),s.qc(),s.oc()}if(2&t){const t=s.Dc();s.Ub(1),s.Mc("nzRound",!0)("ngClass",s.Fc(2,4,t.isMobile$)?"w-100":"")("nzBlock",s.Fc(3,6,t.isMobile$)),s.Ub(3),s.rd(t.exploreButtonText)}}let f=(()=>{class t{constructor(t){this.router=t,this.ImagePathConstant=a.g,this.HoldingsConstant=l.a,this.currentProductTabV
1alue="",this.title="You\u2019re an investor now",this.description="Start investing to see your returns here",this.exploreButtonText="Explore Investing Ideas",this.exploreButtonUrl=""}ngOnChanges(t){if(t.currentProductTabValue){const t=this.currentProductTabValue;this.title=function(t){switch(t){case l.a.INSURANCE:return"Now you are able to buy insurance via FSMOne.";case l.a.ALL:case l.a.FUNDS:case l.a.BONDS:case l.a.DPMS:case l.a.STOCKS:case l.a.ETFS:default:return"You\u2019re an investor now"}}(t),this.description=function(t){switch(t){case l.a.INSURANCE:return"Wish to know more about FSMOne Insurance?";case l.a.ALL:case l.a.FUNDS:case l.a.BONDS:case l.a.DPMS:case l.a.STOCKS:case l.a.ETFS:default:return"Start investing to see your returns here"}}(t),this.exploreButtonText=function(t){switch(t){case l.a.INSURANCE:return"Explore";case l.a.ALL:case l.a.FUNDS:case l.a.BONDS:case l.a.DPMS:case l.a.STOCKS:case l.a.ETFS:default:return"Explore Investing Ideas"}}(t),this.exploreButtonUrl=function(t){switch(t){case l.a.ALL:return"";case l.a.FUNDS:return"/"+a.o.FUNDS;case l.a.BONDS:return"/"+a.o.BONDS;case l.a.DPMS:return"/"+a.o.MANAGED_PORTFOLIOS;case l.a.STOCKS:return"/"+a.o.STOCKS;case l.a.ETFS:return"/"+a.o.ETFS;case l.a.INSURANCE:return"/"+a.o.INSURANCE;default:return""}}(t)}}navigateToExploreInvestIdea(){""!==this.exploreButtonUrl&&this.router.navigateByUrl(this.exploreButtonUrl)}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)(s.lc(r.e))},t.\u0275cmp=s.fc({type:t,selectors:[["app-holdings-empty-state"]],inputs:{currentProductTabValue:"currentProductTabValue"},features:[s.Sb],decls:15,vars:19,consts:[[1,"border","border-content-border","rounded-16px","pl-24px","pr-24px",3,"ngClass"],[1,"h-100","d-flex","flex-column","align-items-center","justify-content-center"],[4,"ngIf"],[1,"text-center","mt-16px"],[1,"text-content-primary","font-weight-bold","mb-4px",3,"ngClass"],[1,"text-content-secondary-light","mb-0",3,"ngClass"],[1,"flex-shrink-0"],["width","125","alt","Empty State",3,"src"],["nzType","black","nzSize","large",1,"text-center","mt-16px",3,"nzRound","ngClass","nzBlock","click"]],template:function(t,n){1&t&&(s.rc(0,"div",0),s.Ec(1,"async"),s.rc(2,"div",1),s.od(3,p,3,1,"ng-container",2),s.Ec(4,"async"),s.rc(5,"div",3),s.rc(6,"h4",4),s.Ec(7,"async"),s.qd(8),s.qc(),s.rc(9,"p",5),s.Ec(10,"async"),s.qd(11),s.qc(),s.qc(),s.od(12,g,5,8,"ng-container",2),s.Ec(13,"async"),s.Ec(14,"async"),s.qc(),s.qc()),2&t&&(s.Mc("ngClass",s.Fc(1,7,n.isMobile$)?"pt-24px pb-24px":"pt-48px pb-48px"),s.Ub(3),s.Mc("ngIf",s.Fc(4,9,n.isMobile$)),s.Ub(3),s.Mc("ngClass",s.Fc(7,11,n.isMobile$)?"text-16px":"text-20px"),s.Ub(2),s.sd(" ",n.title," "),s.Ub(1),s.Mc("ngClass",s.Fc(10,13,n.isMobile$)?"text-12px":"text-14px"),s.Ub(2),s.sd(" ",n.description," "),s.Ub(1),s.Mc("ngIf",!s.Fc(13,15,n.isMobile$)&&n.currentProductTabValue!==n.HoldingsConstant.ALL||s.Fc(14,17,n.isMobile$)&&n.currentProductTabValue===n.HoldingsConstant.INSURANCE))},directives:[u.q,u.t,d.a],pipes:[u.b],styles:[""]}),Object(c.c)([Object(o.e)(i.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},s8HB:function(t,n,e){"use strict";e.d(n,"b",(function(){return l})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return d}));var c=e("mrSG"),a=e("AcyG"),o=e("6h7t");let i=(()=>{class t{constructor(){}}return t.type="[Holding] Clear Holding State",t})(),l=(()=>{class t{constructor(t){this.selectedAccount=t}}return t.type="[Holding] - Set Selected Account Info",t})(),s=(()=>{class t{constructor(t){this.selectedProductTab=t}}return t.type="[Holding] - Set Selected Product Tab Info",t})();var r=e("fXoL");const u={selectedAccount:null,selectedProductTab:null};let d=(()=>{let t=class{constructor(t){this.store=t}static getSelectedAccount(t){return t.selectedAccount}static getSelectedProductTab(t){return t.selectedProductTab}clearHoldingNewState({setState:t}){t(Object.assign({},u))}setSelectedAccount({patchState:t},n){t({selectedAccount:n.selectedAccount})}setSelectedProductTab({patchState:t},n){t({selectedProductTab:n.selectedProductTab})}};return t.\u0275fac=function(n){return new(n||t)(r.vc(a.i))},t.\u0275prov=r.hc({token:t,factory:t.\u0275fac}),Object(c.c)([Object(a.a)(i)],t.prototype,"clearHoldingNewState",null),Object(c.c)([Object(a.a)(l)],t.prototype,"setSelectedAccount",null),Object(c.c)([Object(a.a)(s)],t.prototype,"setSelectedProductTab",null),Object(c.c)([Object(a.f)()],t,"getSelectedAccount",null),Object(c.c)([Object(a.f)()],t,"getSelectedProductTab",null),t=Object(c.c)([Object(a.g)({n
1ame:o.p.HOLDING_NEW,defaults:u})],t),t})()},tOWp:function(t,n,e){"use strict";e.d(n,"a",(function(){return N}));var c=e("mrSG"),a=e("3hac"),o=e("AcyG"),i=e("gFZo"),l=e("cp0P"),s=e("H8v0"),r=e("6h7t"),u=e("fXoL"),d=e("Lcc6"),p=e("2VHv"),g=e("ofXK"),f=e("vcRD"),m=e("5vDB"),h=e("/ai0"),b=e("VxBN"),M=e("OtHt"),y=e("h76Y");function C(t,n){1&t&&(u.rc(0,"div",9),u.rc(1,"p",10),u.qd(2,"Auto-Sweep"),u.qc(),u.qc())}function T(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",11),u.Ec(2,"currencyFormat"),u.oc()),2&t){const t=n.$implicit,e=u.Dc();u.Ub(1),u.Mc("info",t.currency)("infoClass","t-xs text-content-secondary-light")("value",e.currentIsValueMask?t.currency+" ******":u.Gc(2,4,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")}}function v(t,n){1&t&&(u.rc(0,"div"),u.mc(1,"nz-divider",12),u.qc())}function x(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",11),u.Ec(2,"currencyFormat"),u.oc()),2&t){const t=u.Dc().$implicit,n=u.Dc(2);u.Ub(1),u.Mc("info",t.currency)("infoClass","t-xs text-content-secondary-light")("value",n.currentIsValueMask?t.currency+" ******":u.Gc(2,4,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")}}function S(t,n){if(1&t&&(u.pc(0),u.od(1,x,3,7,"ng-container",7),u.oc()),2&t){const t=n.$implicit;u.Ub(1),u.Mc("ngIf",0!==t.amount)}}function z(t,n){if(1&t&&(u.rc(0,"div"),u.rc(1,"div",9),u.rc(2,"p",10),u.qd(3,"Cash Account"),u.qc(),u.qc(),u.rc(4,"div",5),u.od(5,S,2,1,"ng-container",6),u.qc(),u.qc()),2&t){const t=u.Dc();u.Ub(5),u.Mc("ngForOf",t.cashAccountData)}}function O(t,n){1&t&&(u.rc(0,"h4",17),u.qd(1,"Your Purchasing Power"),u.qc())}function w(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",19),u.Ec(2,"currencyFormat"),u.oc()),2&t){const t=n.$implicit,e=n.last;u.Ub(1),u.Mc("info",t.currency)("infoClass","t-sm text-content-secondary-light")("value",u.Gc(2,5,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")("itemWrapperClass",e?"":"pb-8px")}}function P(t,n){if(1&t&&(u.pc(0),u.rc(1,"p",18),u.qd(2,"Auto-Sweep"),u.qc(),u.od(3,w,3,8,"ng-container",6),u.oc()),2&t){const t=u.Dc(2);u.Ub(3),u.Mc("ngForOf",t.autoSweepData)}}function D(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",19),u.Ec(2,"currencyFormat"),u.oc()),2&t){const t=n.$implicit,e=n.last;u.Ub(1),u.Mc("info",t.currency)("infoClass","t-sm text-content-secondary-light")("value",u.Gc(2,5,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")("itemWrapperClass",e?"":"pb-8px")}}function I(t,n){if(1&t&&(u.pc(0),u.rc(1,"p",20),u.qd(2,"Cash Account"),u.qc(),u.od(3,D,3,8,"ng-container",6),u.oc()),2&t){const t=u.Dc(2);u.Ub(3),u.Mc("ngForOf",t.filteredCashAccountData)}}function A(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",19),u.Ec(2,"date"),u.Ec(3,"currencyFormat"),u.oc()),2&t){const t=n.$implicit,e=n.last,c=u.Dc().$implicit;u.Ub(1),u.Mc("info","Withdrawable by "+u.Gc(2,5,t.date,"dd MMM yyyy"))("infoClass","t-xs lg:t-sm text-content-secondary-light")("value",u.Gc(3,8,t.amount,c.currency))("valueClass","t-xs lg:t-sm font-weight-semibold text-content-secondary-light")("itemWrapperClass",(e?"":"pb-4px ")+"d-flex justify-content-between")}}function U(t,n){if(1&t&&(u.pc(0),u.rc(1,"div"),u.mc(2,"uic-list-item",19),u.Ec(3,"currencyFormat"),u.od(4,A,4,11,"ng-container",6),u.qc(),u.oc()),2&t){const t=n.$implicit,e=n.last;u.Ub(1),u.Wb(t.withdrawables.length>0&&!e?"pb-24px":""),u.Ub(1),u.Mc("info",t.currency)("infoClass","t-sm text-content-secondary-light")("value",u.Gc(3,8,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")("itemWrapperClass",e?"":"pb-8px"),u.Ub(2),u.Mc("ngForOf",t.withdrawables)}}function q(t,n){if(1&t&&(u.pc(0),u.od(1,U,5,11,"ng-container",6),u.oc()),2&t){const t=u.Dc(3);u.Ub(1),u.Mc("ngForOf",t.autoSweepWithdrawableData)}}function E(t,n){if(1&t&&(u.pc(0),u.rc(1,"p",18),u.qd(2,"Auto-Sweep"),u.qc(),u.od(3,q,2,1,"ng-container",21),u.oc()),2&t){const t=u.Dc(2),n=u.ad(13);u.Ub(3),u.Mc("ngIf",!t.autoSweepWithdrawalDetailsLoading)("ngIfElse",n)}}function k(t,n){if(1&t&&(u.pc(0),u.mc(1,"uic-list-item",19),u.Ec(2,"date"),u.Ec(3,"currencyFormat"),u.oc()),2&t){const t=n.$implicit,e=n.last,c=u.Dc().$implicit;u.Ub(1),u.Mc("info","Withdrawable by "+u.Gc(2,5,t.date,"dd MMM yyyy"))("infoClass","t-xs lg:t-sm text-content-secondary-light")("value",u.Gc(3,8,t.amount,c.currency))("valueClass","t-xs lg:t-sm font-weight-semibold text-content-secondary-light")("itemWrapperClass",(e?"":"pb-4px ")+"d-flex justify-content-between")}}function V(t,n){if(1&t&&(u.pc(0),u.rc(1,"div"),u.mc(2,"uic-list-item",19),u.Ec(3,"currencyFormat"),u.od(4,k,4,11,"ng-container",6),u.qc(),u.oc()),2&t){const t=n.$implicit,e=n.last;u.Ub(1),u.Wb(t.withdrawables.length>0&&!e?"pb-24px":""),u.Ub(1),u.Mc("info",t.currency)("infoClass","t-sm text-content-secondary-light")("value",u.Gc(3,8,t.amount,t.currency))("valueClass","t-sm font-weight-semibold")("itemWrapperClass",e?"":"pb-8px"),u.Ub(2),u.Mc("ngForOf",t.withdrawables)}}function L(t,n){if(1&t&&(u.pc(0),u.od(1,V,5,11,"ng-container",6),u.oc()),2&t){const t=u.Dc(3);u.Ub(1),u.Mc("ngForOf",t.filteredCashAccountWithdrawableData)}}function F(t,n){if(1&t&&(u.pc(0),u.rc(1,"p",20),u.qd(2,"Cash Account"),u.qc(),u.od(3,L,2,1,"ng-container",21),u.oc()),2&t){const t=u.Dc(2),n=u.ad(13);u.Ub(3),u.Mc("ngIf",!t.cashAccountWithdrawalDetailsLoading)("ngIfElse",n)}}function _(t,n){if(1&t){const t=u.sc();u.pc(0),u.rc(1,"ui-modal-pc-drawer-mobile",13),u.zc("nzOnCancel",(function(){return u.dd(t),u.Dc().onShowPurchasingPowerDetails(!1)})),u.od(2,O,2,0,"ng-template",null,14,u.pd),u.od(4,P,4,1,"ng-container",7),u.od(5,I,4,1,"ng-container",7),u.mc(6,"nz-divider",15),u.rc(7,"h4",16),u.qd(8,"Cash You Can Withdraw"),u.qc(),u.od(9,E,4,2,"ng-container",7),u.od(10,F,4,2,"ng-container",7),u.qc(),u.oc()}if(2&t){const t=u.ad(3),n=u.Dc();u.Ub(1),u.Mc("nzVisible",!0)("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",640)("nzTitle",t)("nzFooter",null)("isMobileFullScreen",!0),u.Ub(3),u.Mc("ngIf",n.autoSweepData&&(null==n.autoSweepData?null:n.autoSweepData.length)>0),u.Ub(1),u.Mc("ngIf",n.filteredCashAccountData&&(null==n.filteredCashAccountData?null:n.filteredCashAccountData.length)>0),u.Ub(4),u.Mc("ngIf",n.autoSweepWithdrawableData&&(null==n.autoSweepWithdrawableData?null:n.autoSweepWithdrawableData.length)>0),u.Ub(1),u.Mc("ngIf",n.cashAccountWithdrawalDetailsLoading||n.filteredCashAccountWithdrawableData&&(null==n.filteredCashAccountWithdrawableData?null:n.filteredCashAccountWithdrawableData.length)>0)}}function R(t,n){1&t&&(u.rc(0,"uic-skeleton-wrapper"),u.mc(1,"nz-skeleton",22),u.qc()),2&t&&(u.Ub(1),u.Mc("nzActive",!0))}let N=(()=>{class t{constructor(t,n,e){this.stockTransactionRestService=t,this.store=n,this.subHandlingService=e,this.currentIsValueMask=!1,this.selectedAccount=a.a.ALL,this.cashSolutions=[],this.autoSweepData=[],this.cashAccountData=[],this.autoSweepWithdrawableData=[],this.cashAccountWithdrawableData=[],this.HoldingsConstant=a.a,this.showModal=!1,this.cashAccountWithdrawalDetailsLoading=!0,this.autoSweepWithdrawalDetailsLoading=!0}ngOnInit(){}ngOnChanges(t){if(t.cashSolutions){const t={},n={},e={},c={};this.cashSolutions.forEach(o=>{var i,l,s,r;o.paymentMode===a.a.AUTO_SWEEP?(t[o.currency]={payment:o.paymentMode,currency:o.currency,amount:((null===(i=t[o.currency])||void 0===i?void 0:i.amount)||0)+o.purchasingPowerInProductCurrency},e[o.currency]={currency:o.currency,amount:((null===(l=e[o.currency])||void 0===l?void 0:l.amount)||0)+o.amount,withdrawables:[]}):o.paymentMode===a.a.CASH_ACCOUNT&&(n[o.currency]={payment:o.paymentMode,currency:o.currency,amount:((null===(s=n[o.currency])||void 0===s?void 0:s.amount)||0)+o.purchasingPowerInProductCurrency},c[o.currency]={currency:o.currency,amount:((null===(r=c[o.currency])||void 0===r?void 0:r.amount)||0)+o.amount,withdrawables:[]})}),this.autoSweepData=Object.values(t).sort((t,n)=>n.amount-t.amount).sort((t,n)=>"MYR"===t.currency?-1:1),this.cashAccountData=Object.values(n).sort((t,n)=>n.amount-t.amount).sort((t,n)=>"MYR"===t.currency?-1:1),this.autoSweepWithdrawableData=Object.values(e).sort((t,n)=>n.amount-t.amount).sort((t,n)=>"MYR"===t.currency?-1:1),this.cashAccountWithdrawableData=Object.values(c).sort((t,n)=>n.amount-t.amount).sort((t,n)=>"MYR"===t.currency?-1:1)}}onShowPurchasingPowerDetails(t){this.showModal=t,this.loadCashAccountWithdrawableDetails(),this.loadAutoSweepWithdrawableDetails()}loadCashAccountWithdrawableDetails(){this.cashAccountWithdrawalDetailsLoading=!0;const t=this.store.selectSnapshot(s.a.getPrimaryDisplay).refno,n=this.selectedAccount;if(n!==t&&n!==a.a.ALL)return void(this.cashAccountWithdrawalDetailsLoading=!1);const e=[...this.cashAccountWithdrawableData.map(t=>t.currency).map(n=>this.stockTransactionRestService.getStockUnsettledTrades(t,n))],c=this.cashAccountWithdrawableData.reduce((t,n)=>Object.assign(Object.assign({},t),{[n.currency]:n}),{});Object(l.a)(e).subscribe(t=>{t.filter(t=>t.status===r.a.RESPONSE_SUCCESS&&(null==t?void 0:t.data)).forEac
1h(t=>{const n=t.data.selectedCurrency;if(t.data.stockUnsettledTradeModels){const e=t.data.stockUnsettledTradeModels.map(t=>({date:t.settlementDate,amount:t.nettAmount})).filter(t=>0!==t.amount).sort((t,n)=>t.date-n.date);c[n].withdrawables=[...e]}})},t=>{console.error("Error fetching cash account withdrawal data:",t),this.cashAccountWithdrawalDetailsLoading=!1},()=>{this.cashAccountWithdrawalDetailsLoading=!1})}get filteredCashAccountData(){return this.cashAccountData.filter(t=>0!==t.amount)}get filteredCashAccountWithdrawableData(){return this.cashAccountWithdrawableData.filter(t=>0!==t.amount||t.withdrawables.length>0)}loadAutoSweepWithdrawableDetails(){this.autoSweepWithdrawalDetailsLoading=!0;const t=this.store.selectSnapshot(s.a.getPrimaryDisplay).refno,n=this.selectedAccount;if(t!==n&&n!==a.a.ALL)return void(this.autoSweepWithdrawalDetailsLoading=!1);const e=[...this.autoSweepWithdrawableData.map(t=>t.currency).map(n=>this.stockTransactionRestService.getStockAutoSweepUnsettledTrades(t,n))],c=this.autoSweepWithdrawableData.reduce((t,n)=>Object.assign(Object.assign({},t),{[n.currency]:n}),{});Object(l.a)(e).subscribe(t=>{t.filter(t=>t.status===r.a.RESPONSE_SUCCESS&&(null==t?void 0:t.data)).forEach(t=>{const n=t.data.selectedCurrency;if(t.data.stockUnsettledTradeModels){const e=t.data.stockUnsettledTradeModels.map(t=>({date:t.settlementDate,amount:t.nettAmount})).filter(t=>0!==t.amount).sort((t,n)=>t.date-n.date);c[n].withdrawables=[...e]}})},t=>{console.error("Error fetching auto-sweep withdrawal data:",t),this.autoSweepWithdrawalDetailsLoading=!1},()=>{this.autoSweepWithdrawalDetailsLoading=!1})}}return t.\u0275fac=function(n){return new(n||t)(u.lc(d.a),u.lc(o.i),u.lc(p.a))},t.\u0275cmp=u.fc({type:t,selectors:[["app-holdings-pp-widget"]],inputs:{currentIsValueMask:"currentIsValueMask",selectedAccount:"selectedAccount",cashSolutions:"cashSolutions"},features:[u.Sb],decls:14,vars:5,consts:[[1,"border","border-content-border","rounded-16px","pt-12px","pb-12px","pl-24px","pr-24px"],[1,"d-flex","align-item-center","gap-8px","pt-12px","pb-12px"],[1,"t-xl","flex-1","mb-0"],[1,"t-md","text-link",3,"click"],["class","d-flex align-item-center gap-4px pt-8px pb-8px",4,"ngIf"],[1,"d-flex","flex-column","gap-4px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["loadingTemplate",""],[1,"d-flex","align-item-center","gap-4px","pt-8px","pb-8px"],[1,"t-sm","mb-0","text-black"],[3,"info","infoClass","value","valueClass"],[1,"mt-8px","mb-8px","border-content-border"],["nzClassName","",3,"nzVisible","nzClosable","nzMaskClosable","nzWidth","nzTitle","nzFooter","isMobileFullScreen","nzOnCancel"],["modalTitle",""],[1,"mt-20px","mb-20px","border-content-border"],[1,"t-lg","font-weight-semibold","mb-16px"],[1,"t-xl","font-weight-bold","mb-0"],[1,"t-sm","mb-8px","text-black"],[3,"info","infoClass","value","valueClass","itemWrapperClass"],[1,"t-sm","mt-24px","mb-8px","text-black"],[4,"ngIf","ngIfElse"],[3,"nzActive"]],template:function(t,n){1&t&&(u.rc(0,"div",0),u.rc(1,"div",1),u.rc(2,"h4",2),u.qd(3,"Purchasing Power"),u.qc(),u.rc(4,"a",3),u.zc("click",(function(){return n.onShowPurchasingPowerDetails(!0)})),u.qd(5,"Details"),u.qc(),u.qc(),u.od(6,C,3,0,"div",4),u.rc(7,"div",5),u.od(8,T,3,7,"ng-container",6),u.qc(),u.od(9,v,2,0,"div",7),u.od(10,z,6,1,"div",7),u.qc(),u.od(11,_,11,11,"ng-container",7),u.od(12,R,2,1,"ng-template",null,8,u.pd)),2&t&&(u.Ub(6),u.Mc("ngIf",(null==n.autoSweepData?null:n.autoSweepData.length)>0),u.Ub(2),u.Mc("ngForOf",n.autoSweepData),u.Ub(1),u.Mc("ngIf",(null==n.autoSweepData?null:n.autoSweepData.length)>0&&(null==n.cashAccountData?null:n.cashAccountData.length)>0),u.Ub(1),u.Mc("ngIf",(null==n.cashAccountData?null:n.cashAccountData.length)>0),u.Ub(1),u.Mc("ngIf",n.showModal))},directives:[g.t,g.s,f.a,m.a,h.a,b.a,M.a],pipes:[y.a,g.f],styles:[""]}),Object(c.c)([Object(o.e)(i.a.isMobile)],t.prototype,"isMobile$",void 0),t})()},tQ6y:function(t,n,e){"use strict";e.d(n,"a",(function(){return k}));var c=e("mrSG"),a=e("AcyG"),o=e("gFZo"),i=e("6h7t"),l=e("H8v0"),s=e("3hac"),r=e("q1ux"),u=e("WEV0"),d=e("3eAg"),p=e("nhH0"),g=e("fXoL"),f=e("yPVp"),m=e("tyNb"),h=e("rmML"),b=e("ofXK"),M=e("ITfe"),y=e("sdAA"),C=e("ESKt"),T=e("WVhF"),v=e("+LO9"),x=e("PtUS"),S=e("JObR"),z=e("QsyD"),O=e("5ag1");function w(t,n){if(1&t&&(g.rc(0,"div",13),g.mc(1,"app-ifast-pay-waitlist-card",14),g.qc()),2&t){const t=g.Dc(2);g.Ub(1),g.Mc("variant",t.IfastPayWaitlistCardVariant.HOLDINGS_DESKTOP)("accessStatus",t.ifastPayAccessStatus)}}function P(t,n){if(1&t){const t=g.sc();g.rc(0,"div"),g.rc(1,"app-ifast-pay-widget",15),g.zc("widgetClicked",(function(){return g.dd(t),g.Dc(2).handleiFastPayClick()}))("rewardsClicked",(function(){return g.dd(t),g.Dc(2).toggleRewardsModal()})),g.qc(),g.qc()}if(2&t){const t=g.Dc(2);g.Ub(1),g.Mc("variant",t.IfastPayWidgetVariant.COMPACT)}}function D(t,n){if(1&t){const t=g.sc();g.pc(0),g.rc(1,"div",16),g.rc(2,"app-cash-solution-list-widget",17),g.zc("navigateIFastPay",(function(){return g.dd(t),g.Dc(2).handleiFastPayClick()})),g.qc(),g.qc(),g.oc()}if(2&t){const t=n.$implicit,e=g.Dc(2);g.Ub(2),g.Mc("currentIsValueMask",e.currentIsValueMask)("data",t)}}function I(t,n){if(1&t){const t=g.sc();g.od(0,w,2,2,"div",6),g.od(1,P,2,1,"div",7),g.rc(2,"div",8),g.rc(3,"div",9),g.rc(4,"uic-statistic",10),g.zc("clickEvent",(function(){return g.dd(t),g.Dc().navigateToCashAccount()}
1))("tooltipClickEvent",(function(){return g.dd(t),g.Dc().showTotalCashSolutionTooltip=!0})),g.qc(),g.rc(5,"uic-button",11),g.zc("click",(function(){return g.dd(t),g.Dc().redirectToTopUpCashAcct()})),g.Ec(6,"async"),g.qd(7,"Top-Up"),g.qc(),g.qc(),g.od(8,D,3,2,"ng-container",12),g.qc()}if(2&t){const t=g.Dc();g.Mc("ngIf",t.ifastPayWaitlistFeatureEnabled&&t.isPersonalOrAllAccount),g.Ub(1),g.Mc("ngIf",!t.ifastPayWaitlistFeatureEnabled&&t.ifastPayWhiteListed&&t.isPersonalOrAllAccount),g.Ub(3),g.Mc("nzValue",t.totalBalance)("nzClick",!0)("isValueMask",t.currentIsValueMask)("nzTooltip",!0)("isTooltipFilled",!1),g.Ub(1),g.Mc("nzType",g.Fc(6,10,t.isMobile$)?"black":"outlined")("nzRound",!0),g.Ub(3),g.Mc("ngForOf",t.displayCashSolutions)}}function A(t,n){if(1&t&&(g.rc(0,"div",26),g.qd(1),g.Ec(2,"number"),g.qc()),2&t){const t=g.Dc(2);g.Ub(1),g.sd(" Up to ",g.Gc(2,1,t.topAutoSweepInterestRate,"1.3-3"),"%* p.a. ")}}function U(t,n){if(1&t&&(g.rc(0,"div",27),g.mc(1,"app-ifast-pay-waitlist-card",28),g.qc()),2&t){const t=g.Dc(2);g.Ub(1),g.Mc("variant",t.IfastPayWaitlistCardVariant.HOLDINGS_MOBILE)("accessStatus",t.ifastPayAccessStatus)}}function q(t,n){if(1&t){const t=g.sc();g.rc(0,"div",27),g.rc(1,"app-ifast-pay-widget",29),g.zc("widgetClicked",(function(){return g.dd(t),g.Dc(2).handleiFastPayClick()})),g.qc(),g.qc()}if(2&t){const t=g.Dc(2);g.Ub(1),g.Mc("variant",t.IfastPayWidgetVariant.MINI)}}function E(t,n){if(1&t){const t=g.sc();g.rc(0,"div",18),g.rc(1,"div",19),g.rc(2,"div",20),g.rc(3,"div",21),g.rc(4,"uic-statistic",22),g.zc("clickEvent",(function(){return g.dd(t),g.Dc().navigateToCashAccount()})),g.qc(),g.od(5,A,3,4,"div",23),g.qc(),g.mc(6,"i",24),g.qc(),g.qc(),g.od(7,U,2,2,"div",25),g.od(8,q,2,1,"div",25),g.qc()}if(2&t){const t=g.Dc();g.Ub(4),g.Mc("nzValue",t.totalBalance)("nzClick",!0)("isValueMask",t.currentIsValueMask),g.Ub(1),g.Mc("ngIf",t.topAutoSweepInterestRate>0),g.Ub(2),g.Mc("ngIf",t.ifastPayWaitlistFeatureEnabled&&t.isPersonalOrAllAccount),g.Ub(1),g.Mc("ngIf",!t.ifastPayWaitlistFeatureEnabled&&t.ifastPayWhiteListed&&t.isPersonalOrAllAccount&&!t.ifastPayActivated)}}let k=(()=>{class t{constructor(t,n,e,c){this.utilityRestService=t,this.router=n,this.store=e,this.articleSharedService=c,this.IfastPayWidgetVariant=u.b,this.IfastPayWaitlistCardVariant=d.a,this.holdingsImgPath=i.g.HOLDINGS_IMG_PATH,this.HoldingsConstant=s.a,this.currentIsValueMask=!1,this.selectedAccount=s.a.ALL,this.cashSolutions=[],this.ifastPayEWalletSummary=null,this.ifastPayWhiteListed=!1,this.ifastPayWaitlistFeatureEnabled=!1,this.ifastPayAccessStatus=r.a.IFAST_PAY_NOT_VISIBLE,this.totalBalance=0,this.topAutoSweepInterestRate=0,this.displayCashSolutions=[],this.showTotalCashSolutionTooltip=!1,this.showiFastPayModal=!1,this.showOpeniFastPayModal=!1,this.showRewardsModal=!1}ngOnChanges(t){var n;if(t.cashSolutions||t.ifastPayEWalletSummary||t.ifastPayWhiteListed){const t=this.showIfastPayBalance&&(null===(n=this.ifastPayEWalletSummary)||void 0===n?void 0:n.totalNetAvailableBalance)||0,e=this.showIfastPayBalance?[{paymentMode:s.a.IFAST_PAY,currency:"MYR",amount:t,baseCurrencyAmount:t,interestRate:0,refno:"",purchasingPowerInProductCurrency:t}]:[],c=this.cashSolutions||[],a=c.reduce((t,n)=>t+n.baseCurrencyAmount,0)+t;this.totalBalance=parseFloat(a.toFixed(2));const o=null==c?void 0:c.filter(t=>t.paymentMode===s.a.AUTO_SWEEP);this.topAutoSweepInterestRate=o?Math.max(...o.map(t=>t.interestRate)):0,this.displayCashSolutions=[...e,...c.filter(V)]}}ngOnInit(){}ngOnDestroy(){}navigateToIfastPayLandingPage(){this.router.navigate([i.o.IFAST_PAY])}redirectToTopUpCashAcct(){const t=this.selectedAccount,n=this.store.selectSnapshot(l.a.getAccounts).find(n=>t===s.a.ALL?"P"===(null==n?void 0:n.accountType):(null==n?void 0:n.refno)===t);this.router.navigateByUrl(Object(p.c)({action:p.a.TOP_UP,refno:n.refno}))}navigateToCashAccount(){this.router.navigate([i.o.APP,i.o.CASH_ACCOUNT])}toggleiFastPayModal(){this.showiFastPayModal=!this.showiFastPayModal}toggleOpeniFastPayModal(){this.showOpeniFastPayModal=!this.showOpeniFastPayModal}toggleRewardsModal(){this.showRewardsModal=!this.showRewardsModal}handleRewardsViewMore(t){this.showRewardsModal=!1,this.articleSharedService.redirectToArticleDetailsRevamp(String(t.articleId))}handleiFastPayClick(){this.ifastPayActivated?this.toggleOpeniFastPayModal():this.toggleiFastPayModal()}get isPersonalOrAllAccount(){if(this.selectedAccount===s.a.ALL)return!0;const t=this.store.selectSnapshot(l.a.getAccounts).find(t=>t.refno===this.selectedAccount);return"P"===(null==t?void 0:t.accountType)}get ifastPayActivated(){var t;return(null===(t=this.ifastPayEWalletSummary)||void 0===t?void 0:t.existingIfastPayClient)||!1}get showIfastPayBalance(){return this.isPersonalOrAllAccount&&this.ifastPayWhiteListed&&this.ifastPayActivated}}return t.\u0275fac=function(n){return new(n||t)(g.lc(f.a),g.lc(m.e),g.lc(a.i),g.lc(h.a))},t.\u0275cmp=g.fc({type:t,selectors:[["app-holdings-cash-account-widget"]],inputs:{currentIsValueMask:"currentIsValueMask",selectedAccount:"selectedAccount",cashSolutions:"cashSolutions",ifastPayEWalletSummary:"ifastPayEWalletSummary",ifastPayWhiteListed:"ifastPayWhiteListed",ifastPayWaitlistFeatureEnabled:"ifastPayWaitlistFeatureEnabled",ifastPayAccessStatus:"ifastPayAccessStatus"},features:[g.Sb],decls:10,vars:7,consts:[[3,"ngTemplateOutlet"],["desktopTemplate",""],["mobileTemplate",""],["t
1itle","Total Cash Solutions","content","Total Available Balance (MYR equiv.) = Total Cash Account + Total Auto-Sweep",3,"showModal","showModalChange"],[3,"isVisible","close"],[3,"isVisible","close","viewMore"],["class","mb-16px",4,"ngIf"],[4,"ngIf"],[1,"border","border-content-border","rounded-16px","p-16px"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between","mb-12px",2,"gap","12px 8px"],["nzTitle","Total Cash Solutions","nzPrefix","MYR","nzTitleClass","text-content-tertiary","nzValueClass","font-display-title t-xl",3,"nzValue","nzClick","isValueMask","nzTooltip","isTooltipFilled","clickEvent","tooltipClickEvent"],[3,"nzType","nzRound","click"],[4,"ngFor","ngForOf"],[1,"mb-16px"],[3,"variant","accessStatus"],[1,"w-100",3,"variant","widgetClicked","rewardsClicked"],[1,"pt-8px","pb-8px"],[3,"currentIsValueMask","data","navigateIFastPay"],[1,"d-flex","w-100","gap-8px","pb-12px","px-12px"],[1,"card-bg-grey","rounded-8px","p-12px",2,"flex","1 1 50%","min-width","0"],[1,"d-flex","align-items-center","gap-8px"],[1,"flex-grow-1"],["nzTitle","Cash","nzPrefix","MYR","nzTitleClass","text-content-tertiary","nzValueClass","font-display-title t-lg",3,"nzValue","nzClick","isValueMask","clickEvent"],["class","interest-label bg-green-300",4,"ngIf"],[1,"icon-right-arrow","t-xl"],["style","flex: 1 1 50%; min-width: 0;",4,"ngIf"],[1,"interest-label","bg-green-300"],[2,"flex","1 1 50%","min-width","0"],[1,"h-100","w-100",3,"variant","accessStatus"],[1,"h-100","w-100",3,"variant","widgetClicked"]],template:function(t,n){if(1&t&&(g.nc(0,0),g.Ec(1,"async"),g.od(2,I,9,12,"ng-template",null,1,g.pd),g.od(4,E,9,6,"ng-template",null,2,g.pd),g.rc(6,"holdings-tooltip-modal",3),g.zc("showModalChange",(function(t){return n.showTotalCashSolutionTooltip=t})),g.qc(),g.rc(7,"app-ifast-pay-apply-modal",4),g.zc("close",(function(){return n.toggleiFastPayModal()})),g.qc(),g.rc(8,"app-ifast-pay-app-only-modal",4),g.zc("close",(function(){return n.toggleOpeniFastPayModal()})),g.qc(),g.rc(9,"app-ifast-pay-rewards-modal",5),g.zc("close",(function(){return n.toggleRewardsModal()}))("viewMore",(function(t){return n.handleRewardsViewMore(t)})),g.qc()),2&t){const t=g.ad(3),e=g.ad(5);g.Mc("ngTemplateOutlet",g.Fc(1,5,n.isMobile$)?e:t),g.Ub(6),g.Mc("showModal",n.showTotalCashSolutionTooltip),g.Ub(1),g.Mc("isVisible",n.showiFastPayModal),g.Ub(1),g.Mc("isVisible",n.showOpeniFastPayModal),g.Ub(1),g.Mc("isVisible",n.showRewardsModal)}},directives:[b.A,M.a,y.a,C.a,T.a,b.t,v.a,x.a,b.s,S.a,z.a,O.a],pipes:[b.b,b.g],styles:[".card-bg-grey[_ngcontent-%COMP%]{background:#f5f5f5}.interest-label[_ngcontent-%COMP%]{display:inline-block;align-self:flex-start;border-radius:4px;color:var(--black);padding:0 4px;font-size:11px;font-weight:500;height:21px;line-height:21px}.responsive-img[_ngcontent-%COMP%]{width:100%;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:8px;display:block}.cmf-card[_ngcontent-%COMP%]{padding:12px;border-radius:16px;border:1px solid #e0e0e0;cursor:pointer}.cmf-card.ifast-pay-card[_ngcontent-%COMP%]{background:linear-gradient(90deg,#ebf5ff,#feeff5);border:none;transition:transform .2s ease,box-shadow .2s ease}.cmf-card.ifast-pay-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.05)}.cmf-card.ifast-pay-card[_ngcontent-%COMP%]   .ifast-pay-icon[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.cmf-card.ifast-pay-card[_ngcontent-%COMP%]   .ifast-campaign-icon-wrap[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cmf-card.ifast-pay-card[_ngcontent-%COMP%]   .header-new-label[_ngcontent-%COMP%]{border-radius:4px;background:#f40817;padding:0;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;width:50px;height:18px}.ifast-pay-modal-wrap[_ngcontent-%COMP%]   .ant-modal-content[_ngcontent-%COMP%]{border-radius:20px;overflow:visible;background:#fff;border:none;box-shadow:0 10px 50px rgba(0,0,0,.1)}.ifast-pay-modal-wrap[_ngcontent-%COMP%]   .ant-modal-body[_ngcontent-%COMP%]{padding:0!important}
1.ifast-pay-modal-wrap[_ngcontent-%COMP%]   .modal-close-btn[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;border-radius:50%;background:#f5f5f5;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:all .2s}.ifast-pay-modal-wrap[_ngcontent-%COMP%]   .modal-close-btn[_ngcontent-%COMP%]:hover{background:#e0e0e0;transform:scale(1.05)}.ifast-pay-modal-wrap[_ngcontent-%COMP%]   .modal-close-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:18px;color:#333}.ifast-pay-modal-wrap[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px;color:#333}[_nghost-%COMP%]     nz-modal .ant-modal-wrap:not(.ant-modal-wrap-show){pointer-events:none!important;display:none!important}[_nghost-%COMP%]     nz-modal .ant-modal-mask:not(.ant-modal-mask-show){pointer-events:none!important;display:none!important}"]}),Object(c.c)([Object(a.e)(o.a.isMobile)],t.prototype,"isMobile$",void 0),t})();const V=t=>{switch(t.paymentMode){case s.a.CASH_ACCOUNT:return 0!==t.amount;case s.a.IFAST_PAY:case s.a.AUTO_SWEEP:default:return!0}}},vaQS:function(t,n,e){"use strict";e.d(n,"a",(function(){return Pt}));var c=e("mrSG"),a=e("fXoL"),o=e("AcyG"),i=e("gFZo"),l=e("6h7t"),s=e("H8v0"),r=e("3hac"),u=e("IzEk"),d=e("nhH0"),p=e("yPVp"),g=e("iel7"),f=e("tyNb"),m=e("ofXK"),h=e("nJia"),b=e("ITfe"),M=e("+LO9"),y=e("PtUS");const C=["totalPortfolioValueTooltipContentTpl"],T=["fundCurrentValueTooltipContentTpl"],v=["fundTotalCostTooltipContentTpl"],x=["stockEtfCurrentValueTooltipContentTpl"],S=["bondCurrentValueTooltipContentTpl"],z=["bondTotalCostTooltipContentTpl"],O=["bondInterestIncomeTooltipContentTpl"],w=["dpmsTotalPayoutTooltipContentTpl"];function P(t,n){1&t&&a.nc(0)}function D(t,n){if(1&t&&(a.pc(0),a.od(1,P,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(25);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function I(t,n){1&t&&a.nc(0)}function A(t,n){if(1&t&&(a.pc(0),a.od(1,I,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(27);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function U(t,n){1&t&&a.nc(0)}function q(t,n){if(1&t&&(a.pc(0),a.od(1,U,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(29);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function E(t,n){1&t&&a.nc(0)}function k(t,n){if(1&t&&(a.pc(0),a.od(1,E,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(31);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function V(t,n){1&t&&a.nc(0)}function L(t,n){if(1&t&&(a.pc(0),a.od(1,V,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(33);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function F(t,n){1&t&&a.nc(0)}function _(t,n){if(1&t&&(a.pc(0),a.od(1,F,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(33);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function R(t,n){1&t&&a.nc(0)}function N(t,n){if(1&t&&(a.pc(0),a.od(1,R,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(35);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function W(t,n){1&t&&a.nc(0)}function H(t,n){if(1&t&&(a.pc(0),a.od(1,W,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(49);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function Y(t,n){1&t&&a.nc(0)}function $(t,n){if(1&t&&(a.pc(0),a.od(1,Y,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(37);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function B(t,n){1&t&&a.nc(0)}function G(t,n){if(1&t&&(a.pc(0),a.od(1,B,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(39);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function j(t,n){1&t&&a.nc(0)}function K(t,n){if(1&t&&(a.pc(0),a.od(1,j,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(41);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function X(t,n){1&t&&a.nc(0)}function Q(t,n){if(1&t&&(a.pc(0),a.od(1,X,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(43);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function Z(t,n){1&t&&a.nc(0)}function J(t,n){if(1&t&&(a.pc(0),a.od(1,Z,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(45);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function tt(t,n){1&t&&a.nc(0)}function nt(t,n){if(1&t&&(a.pc(0),a.od(1,tt,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(45);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function et(t,n){1&t&&a.nc(0)}function ct(t,n){if(1&t&&(a.pc(0),a.od(1,et,1,0,"ng-container",31),a.oc()),2&t){a.Dc();const t=a.ad(47);a.Ub(1),a.Mc("ngTemplateOutlet",t)}}function at(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-statistic",32),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.totalPortfolioValue)})),a.Ec(1,"async"),a.qc()}if(2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,7,t.isMobile$)?"small":"default")("nzTooltip",!0)("isTooltipFilled",!1)}}function ot(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-statistic",33),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.fundCurrentValue)})),a.Ec(1,"async"),a.qc()}if(2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,7,t.isMobile$)?"small":"default")("nzTooltip",!0)("isTooltipFilled",!1)}}function it(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-statistic",33),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.bondCurrentValue)})),a.Ec(1,"async"),a.qc()}if(2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,7,t.isMobile$)?"small":"default")("nzTooltip",!0)("isTooltipFilled",!1)}}function lt(t,n){if(1&t&&(a.mc(0,"uic-statistic",34),a.Ec(1,"async")),2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,5,t.isMobile$)?"small":"default")}}function st(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-statistic",33),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.stockEtfCurrentValue)})),a.Ec(1,"async"),a.qc()}if(2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,7,t.isMobile$)?"small":"default")("nzTooltip",!0)("isTooltipFilled",!1)}}function rt(t,n){if(1&t&&(a.mc(0,"uic-statistic",34),a.Ec(1,"async")),2&t){const t=a.Dc();a.Mc("nzDecimal",t.myrDigitsInfo)("nzValueClass","text-content-primary t-xl lg:t-4xl font-display-title")("nzValue",t.currentSummary.totalCurVal)("isValueMask",t.isValueMask)("nzSize",a.Fc(1,5,t.isMobile$)?"small":"default")}}function ut(t,n){if(1&t){const t=a.sc();a.rc(0,"div",35),a.Ec(1,"async"),a.rc(2,"uic-statistic",36),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.investments)})),a.qc(),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",37),a.qc()}if(2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,12,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost)("nzTooltip",!0)("isTooltipFilled",!1),a.Ub(1),a.Mc("ngClass",a.Fc(4,14,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask)}}function dt(t,n){if(1&t){const t=a.sc();a.rc(0,"div",35),a.Ec(1,"async"),a.rc(2,"uic-statistic",38),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.fundTotalCost)})),a.qc(),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",37),a.qc(),a.rc(6,"div",35),a.Ec(7,"async"),a.mc(8,"uic-statistic",39),a.qc()}if(2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,16,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost)("nzTooltip",!0)("isTooltipFilled",!1),a.Ub(1),a.Mc("ngClass",a.Fc(4,18,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask),a.Ub(1),a.Mc("ngClass",a.Fc(7,20,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzValue",null==t.currentSummary?null:t.currentSummary.availableCredits)("isProfitLoss",!1)("isValueMask",t.isValueMask)}}function pt(t,n){if(1&t){const t=a.sc();a.rc(0,"div",35),a.Ec(1,"async"),a.rc(2,"uic-statistic",38),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.bondTotalCost)})),a.qc(),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.rc(5,"uic-statistic",40),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.bondInterestIncome)})),a.qc(),a.qc(),a.rc(6,"div",35),a.Ec(7,"async"),a.mc(8,"uic-statistic",37),a.qc()}if(2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,19,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost)("nzTooltip",!0)("isTooltipFilled",!1),a.Ub(1),a.Mc("ngClass",a.Fc(4,21,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.interestIncome)("isProfitLoss",!1)("isValueMask",t.isValueMask)("nzTooltip",!0)("isTooltipFilled",!1),a.Ub(1),a.Mc("ngClass",a.Fc(7,23,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask)}}function gt(t,n){if(1&t){const t=a.sc();a.rc(0,"div",35),a.Ec(1,"async"),a.mc(2,"uic-statistic",41),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",37),a.qc(),a.rc(6,"div",35),a.Ec(7,"async"),a.rc(8,"uic-statistic",42),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.dpmsTotalPayout)})),a.qc(),a.qc()}if(2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,17,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost),a.Ub(1),a.Mc("ngClass",a.Fc(4,19,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask),a.Ub(1),a.Mc("ngClass",a.Fc(7,21,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.dpmsTotalDividendPayoutAmount||0)("isProfitLoss",!1)("isValueMask",t.isValueMask)("nzTooltip",!0)("isTooltipFilled",!1)}}function ft(t,n){if(1&t){const t=a.sc();a.rc(0,"div",35),a.Ec(1,"async"),a.rc(2,"uic-statistic",38),a.zc("tooltipClickEvent",(function(){a.dd(t);const n=a.Dc();return n.onShowTooltip(n.TOOLTIP_KEYS.stockEtfTotalCost)})),a.qc(),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",37),a.qc()}if(2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,12,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost)("nzTooltip",!0)("isTooltipFilled",!1),a.Ub(1),a.Mc("ngClass",a.Fc(4,14,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask)}}function mt(t,n){if(1&t&&(a.rc(0,"div",35),a.Ec(1,"async"),a.mc(2,"uic-statistic",41),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",37),a.qc()),2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,10,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("isValueMask",t.isValueMask)("nzValue",t.currentSummary.totalCost),a.Ub(1),a.Mc("ngClass",a.Fc(4,12,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.totalPnl)("isProfitLoss",!0)("nzPercentage",t.currentSummary.totalPnlPercentage)("isValueMask",t.isValueMask)}}function ht(t,n){if(1&t){const t=a.sc();a.rc(0,"uic-button",43),a.zc("click",(function(){return a.dd(t),a.Dc().redirectToTopUpCashAcct()})),a.Ec(1,"async"),a.Ec(2,"async"),a.qd(3,"Top-Up"),a.qc()}if(2&t){const t=a.Dc();a.Mc("nzType",a.Fc(1,3,t.isMobile$)?"black":"outlined")("nzRound",!0)("nzSize",a.Fc(2,5,t.isMobile$)?"small":"default")}}function bt(t,n){if(1&t&&(a.rc(0,"div",35),a.Ec(1,"async"),a.mc(2,"uic-statistic",44),a.qc(),a.rc(3,"div",35),a.Ec(4,"async"),a.mc(5,"uic-statistic",45),a.qc()),2&t){const t=a.Dc();a.Mc("ngClass",a.Fc(1,10,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.accruedInterest)("isProfitLoss",!1)("isValueMask",t.isValueMask),a.Ub(1),a.Mc("ngClass",a.Fc(4,12,t.isMobile$)?"flex-1":""),a.Ub(2),a.Mc("nzDecimal",t.myrDigitsInfo)("nzValue",t.currentSummary.couponReceived)("isProfitLoss",!1)("isValueMask",t.isValueMask)}}function Mt(t,n){if(1&t&&(a.pc(0),a.rc(1,"div",49),a.qd(2),a.Ec(3,"number"),a.qc(),a.oc()),2&t){const t=n.$implicit;a.Ub(2),a.td(" ",null==t?null:t.code," = MYR ",a.Gc(3,2,null==t?null:t.system,"1.6-6")," ")}}function yt(t,n){if(1&t&&(a.pc(0),a.rc(1,"div",47),a.rc(2,"div"),a.rc(3,"b"),a.qd(4," Indicative FX Rates "),a.qc(),a.qc(),a.od(5,Mt,4,5,"ng-container",48),a.qc(),a.oc()),2&t){const t=a.Dc(2);a.Ub(5),a.Mc("ngForOf",t.systemRateList)}}function Ct(t,n){if(1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Total Portfolio Value (MYR equiv.) = Investments Current Value + Total Cash Solutions Balance "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.od(5,yt,6,1,"ng-container",6),a.qc()),2&t){const t=a.Dc();a.Ub(5),a.Mc("ngIf",t.systemRateList.length>0)}}function Tt(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Current Value (MYR equiv.) = Sum of (Last Price x Quantity) "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}function vt(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Total Cost (MYR equiv.) = Sum of (W.A.C x Quantity) "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}function xt(t,n){if(1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Current Value (MYR equiv.) = Sum of (Last Price x Quantity) "),a.qc(),a.rc(3,"div",47),a.qd(4," Prices shown are delayed by at least 15 minutes. For live prices (subject to market data subscription), refer to "),a.rc(5,"a",50),a.qd(6,"Trade > Portfolio page"),a.qc(),a.qd(7,". "),a.qc(),a.rc(8,"div",47),a.qd(9," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc()),2&t){const t=a.Dc();a.Ub(5),a.Mc("href",t.TRADE_STOCK_URL,a.gd)}}function St(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Current Value (MYR equiv.) = Sum of (Bid Price x Quantity / 100) "),a.qc(),a.rc(3,"div",47),a.qd(4," All bond bid prices shown are indicative due to the OTC nature. Displayed P/L is for reference only. "),a.qc(),a.rc(5,"div",47),a.qd(6," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}function zt(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Total Cost (MYR equiv.) = Sum of (W.A.C x Quantity) "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}function Ot(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Interest Income (MYR equiv.) = Sum of (Accrued Interest + Interest Received or Paid) "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}function wt(t,n){1&t&&(a.rc(0,"div",46),a.rc(1,"div",47),a.qd(2," Total Income (MYR equiv.) = Sum of (Cash Payout) "),a.qc(),a.rc(3,"div",47),a.qd(4," All MYR equivalent values are converted using the latest indicative FX rates. "),a.qc(),a.qc())}let Pt=(()=>{class t{constructor(t,n,e,c){this.utilityRestService=t,this.currencyFormatService=n,this.router=e,this.store=c,this.holdingsImgPath=l.g.HOLDINGS_IMG_PATH,this.HoldingsConstant=r.a,this.headerSu
1mmaryDatas={},this.selectedAccount=r.a.ALL,this.currentProductTab=r.a.PRODUCT_ALL_TAB.value,this.isValueMask=!1,this.isValueMaskChange=new a.s,this.systemRateList=[],this.TRADE_STOCK_URL=`/${l.o.APP}/${l.o.TRADE}/${l.o.STOCKS}`,this.showTooltipModal=!1,this.tooltipModalTitle="",this.tooltipModalContent="",this.TOOLTIP_KEYS={totalPortfolioValue:"totalPortfolioValue",investments:"investments",fundCurrentValue:"fundCurrentValue",fundTotalCost:"fundTotalCost",stockEtfCurrentValue:"stockEtfCurrentValue",stockEtfTotalCost:"stockEtfTotalCost",bondCurrentValue:"bondCurrentValue",bondTotalCost:"bondTotalCost",bondInterestIncome:"bondInterestIncome",dpmsTotalPayout:"dpmsTotalPayout"}}get myrDigitsInfo(){return this.currencyFormatService.getDigitsInfo(r.a.MYR)}getSystemRateList(t=["USD","SGD","HKD","CNY","AUD","EUR","GBP"]){this.utilityRestService.getAllSystemRate().pipe(Object(u.a)(1)).subscribe(n=>{var e;if(n.status!==l.a.RESPONSE_SUCCESS||!(null==n?void 0:n.data))return void console.error("[holdingsCashAccountWidget getSystemRateList] error retrieving system rate list");const c=t.reduce((t,n,e)=>t.set(n,e),new Map),a=(null!==(e=n.data)&&void 0!==e?e:[]).filter(t=>c.has(t.code));this.systemRateList=[...a].sort((t,n)=>c.get(t.code)-c.get(n.code))})}ngOnChanges(t){}ngOnInit(){this.getSystemRateList()}get currentSummary(){return this.headerSummaryDatas[this.currentProductTab]||{totalCurVal:0,totalPnl:0,totalPnlPercentage:0,totalCost:0,interestIncome:0,availableCredits:0}}onChangeValueMasking(t){const n=!this.isValueMask;this.isValueMask=n,this.isValueMaskChange.emit(n)}redirectToTopUpCashAcct(){const t=this.selectedAccount,n=this.store.selectSnapshot(s.a.getAccounts).find(n=>t===r.a.ALL?"P"===(null==n?void 0:n.accountType):(null==n?void 0:n.refno)===t);this.router.navigateByUrl(Object(d.c)({action:d.a.TOP_UP,refno:n.refno}))}onShowTooltip(t){const n=(t=>{switch(t){case this.TOOLTIP_KEYS.totalPortfolioValue:return{title:"Total Portfolio Value",content:this.totalPortfolioValueTooltipContentTpl};case this.TOOLTIP_KEYS.investments:return{title:"Investments",content:"Investments (MYR equiv.) = Sum of Current Value of All Holdings"};case this.TOOLTIP_KEYS.fundCurrentValue:return{title:"Current Value",content:this.fundCurrentValueTooltipContentTpl};case this.TOOLTIP_KEYS.fundTotalCost:return{title:"Total Cost",content:this.fundTotalCostTooltipContentTpl};case this.TOOLTIP_KEYS.stockEtfCurrentValue:return{title:"Current Value",content:this.stockEtfCurrentValueTooltipContentTpl};case this.TOOLTIP_KEYS.stockEtfTotalCost:return{title:"Total Cost",content:"Total Cost (MYR equiv.) = Sum of (W.A.C x Quantity) "};case this.TOOLTIP_KEYS.bondCurrentValue:return{title:"Current Value",content:this.bondCurrentValueTooltipContentTpl};case this.TOOLTIP_KEYS.bondTotalCost:return{title:"Total Cost",content:this.bondTotalCostTooltipContentTpl};case this.TOOLTIP_KEYS.bondInterestIncome:return{title:"Interest Income",content:this.bondInterestIncomeTooltipContentTpl};case this.TOOLTIP_KEYS.dpmsTotalPayout:return{title:"Total Payout",content:this.dpmsTotalPayoutTooltipContentTpl};default:return{title:"",content:""}}})(t);this.tooltipModalTitle=n.title,this.tooltipModalContent=n.content,this.showTooltipModal=!0}}return t.\u0275fac=function(n){return new(n||t)(a.lc(p.a),a.lc(g.a),a.lc(f.e),a.lc(o.i))},t.\u0275cmp=a.fc({type:t,selectors:[["app-holdings-header-investment-summary"]],viewQuery:function(t,n){var e;1&t&&(a.kd(C,!0),a.kd(T,!0),a.kd(v,!0),a.kd(x,!0),a.kd(S,!0),a.kd(z,!0),a.kd(O,!0),a.kd(w,!0)),2&t&&(a.Zc(e=a.Ac())&&(n.totalPortfolioValueTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.fundCurrentValueTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.fundTotalCostTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.stockEtfCurrentValueTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.bondCurrentValueTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.bondTotalCostTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.bondInterestIncomeTooltipContentTpl=e.first),a.Zc(e=a.Ac())&&(n.dpmsTotalPayoutTooltipContentTpl=e.first))},inputs:{headerSummaryDatas:"headerSummaryDatas",selectedAccount:"selectedAccount",currentProductTab:"currentProductTab",isValueMask:"isValueMask"},outputs:{isValueMaskChange:"isValueMaskChange"},features:[a.Sb],decls:68,vars:25,consts:[[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,"d-flex","align-items-center"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nzTooltipPlacement","right",1,"t-xl","pt-20px","pl-8px","pointer","ms-2",3,"ngClass","nz-tooltip","click"],[4,"ngIf"],[1,"d-flex","mt-12px",3,"ngClass"],[3,"showModal","title","content","showModalChange"],["allPrimaryStat",""],["fundPrimaryStat",""],["bondPrimaryStat",""],["dpmsPrimaryStat",""],["stockEtfPrimaryStat",""],["defaultPrimaryStat",""],["allSecondaryStats",""],["fundSecondaryStats",""],["bondSecondaryStats",""],["dpmsSecondaryStats",""],["stockEtfSecondaryStats",""],["defaultSecondaryStats",""],["btnTopUpTpl",""],["bondCouponAndAccruedInterestTpl",""],["totalPortfolioValueTooltipContentTpl",""],["fundCurrentValueTooltipContentTpl",""],["fundTotalCostTooltipContentTpl",""],["stockEtfCurrentValueTooltipContentTpl",""],["bondCurrentValueTooltipContentTpl",""],["bondTotalCostTooltipContentTpl",""],["bondInterestIncomeTooltipContentTpl",""],["dpmsTotalPayoutTooltipContentTpl",""],[4,"ngTemplateOutlet"],["nzTitle","Total Portfolio Value","nzPrefix","MYR","nzTitleClass","text-content-tertiary",3,"nzDecimal","nzValueClass","nzValue","isValueMask","nzSize","nzTooltip","isTooltipFilled","tooltipClickEvent"],["nzTitle","Current Value","nzPrefix","MYR","nzTitleClass","text-content-tertiary",3,"nzDecimal","nzValueClass","nzValue","isValueMask","nzSize","nzTooltip","isTooltipFilled","tooltipClickEvent"],["nzTitle","Current Value","nzPrefix","MYR","nzTitleClass","text-content-tertiary",3,"nzDecimal","nzValueClass","nzValue","isValueMask","nzSize"],[3,"ngClass"],["nzTitle","Investments","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm mb-0","nzValueClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","isValueMask","nzValue","nzTooltip","isTooltipFilled","tooltipClickEvent"],["nzTitle","P/L (%)","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0","nzPercentageClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","nzValue","isProfitLoss","nzPercentage","isValueMask"],["nzTitle","Total Cost","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm mb-0","nzValueClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","isValueMask","nzValue","nzTooltip","isTooltipFilled","tooltipClickEvent"],["nzTitle","Available Credits","nzPrefix"," ","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0","nzPercentageClass","font-display-title t-xs sm:t-xl",3,"nz
1Value","isProfitLoss","isValueMask"],["nzTitle","Interest Income","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0","nzPercentageClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","nzValue","isProfitLoss","isValueMask","nzTooltip","isTooltipFilled","tooltipClickEvent"],["nzTitle","Total Cost","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm mb-0","nzValueClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","isValueMask","nzValue"],["nzTitle","Total Payout","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0",3,"nzDecimal","nzValue","isProfitLoss","isValueMask","nzTooltip","isTooltipFilled","tooltipClickEvent"],[3,"nzType","nzRound","nzSize","click"],["nzTitle","Ind. Accrued Interest","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0","nzPercentageClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","nzValue","isProfitLoss","isValueMask"],["nzTitle","Coupon Received","nzPrefix","MYR","nzTitleClass","text-content-tertiary t-3xs sm:t-sm","nzValueClass","font-display-title t-xs sm:t-xl mb-0","nzPercentageClass","font-display-title t-xs sm:t-xl",3,"nzDecimal","nzValue","isProfitLoss","isValueMask"],[1,"text-sm","font-normal","text-content-secondary"],[1,"mb-4"],[4,"ngFor","ngForOf"],[1,"m-0"],[1,"text-underline",3,"href"]],template:function(t,n){1&t&&(a.rc(0,"div",0),a.rc(1,"div",1),a.pc(2,2),a.od(3,D,2,1,"ng-container",3),a.od(4,A,2,1,"ng-container",3),a.od(5,q,2,1,"ng-container",3),a.od(6,k,2,1,"ng-container",3),a.od(7,L,2,1,"ng-container",3),a.od(8,_,2,1,"ng-container",3),a.od(9,N,2,1,"ng-container",4),a.oc(),a.rc(10,"i",5),a.zc("click",(function(t){return n.onChangeValueMasking(t)})),a.qc(),a.qc(),a.od(11,H,2,1,"ng-container",6),a.Ec(12,"async"),a.qc(),a.rc(13,"div",7),a.Ec(14,"async"),a.pc(15,2),a.od(16,$,2,1,"ng-container",3),a.od(17,G,2,1,"ng-container",3),a.od(18,K,2,1,"ng-container",3),a.od(19,Q,2,1,"ng-container",3),a.od(20,J,2,1,"ng-container",3),a.od(21,nt,2,1,"ng-container",3),a.od(22,ct,2,1,"ng-container",4),a.oc(),a.qc(),a.rc(23,"holdings-tooltip-modal",8),a.zc("showModalChange",(function(t){return n.showTooltipModal=t})),a.qc(),a.od(24,at,2,9,"ng-template",null,9,a.pd),a.od(26,ot,2,9,"ng-template",null,10,a.pd),a.od(28,it,2,9,"ng-template",null,11,a.pd),a.od(30,lt,2,7,"ng-template",null,12,a.pd),a.od(32,st,2,9,"ng-template",null,13,a.pd),a.od(34,rt,2,7,"ng-template",null,14,a.pd),a.od(36,ut,6,16,"ng-template",null,15,a.pd),a.od(38,dt,9,22,"ng-template",null,16,a.pd),a.od(40,pt,9,25,"ng-template",null,17,a.pd),a.od(42,gt,9,23,"ng-template",null,18,a.pd),a.od(44,ft,6,16,"ng-template",null,19,a.pd),a.od(46,mt,6,14,"ng-template",null,20,a.pd),a.od(48,ht,4,7,"ng-template",null,21,a.pd),a.od(50,bt,6,14,"
1ng-template",null,22,a.pd),a.od(52,Ct,6,1,"ng-template",null,23,a.pd),a.od(54,Tt,5,0,"ng-template",null,24,a.pd),a.od(56,vt,5,0,"ng-template",null,25,a.pd),a.od(58,xt,10,1,"ng-template",null,26,a.pd),a.od(60,St,7,0,"ng-template",null,27,a.pd),a.od(62,zt,5,0,"ng-template",null,28,a.pd),a.od(64,Ot,5,0,"ng-template",null,29,a.pd),a.od(66,wt,5,0,"ng-template",null,30,a.pd)),2&t&&(a.Ub(2),a.Mc("ngSwitch",n.currentProductTab),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.ALL),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.FUNDS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.BONDS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.DPMS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.STOCKS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.ETFS),a.Ub(2),a.Mc("ngClass",n.isValueMask?"icon-eye-open-o":"icon-eye-close-o")("nz-tooltip",n.isValueMask?"Show Values":"Hide Values"),a.Ub(1),a.Mc("ngIf",a.Fc(12,21,n.isMobile$)),a.Ub(2),a.Mc("ngClass",a.Fc(14,23,n.isMobile$)?"gap-24px":"gap-48px"),a.Ub(2),a.Mc("ngSwitch",n.currentProductTab),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.ALL),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.FUNDS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.BONDS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.DPMS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.STOCKS),a.Ub(1),a.Mc("ngSwitchCase",n.HoldingsConstant.ETFS),a.Ub(2),a.Mc("showModal",n.showTooltipModal)("title",n.tooltipModalTitle)("content",n.tooltipModalContent))},directives:[m.x,m.y,m.z,m.q,h.e,m.t,b.a,m.A,M.a,y.a,m.s],pipes:[m.b,m.g],styles:[""]}),Object(c.c)([Object(o.e)(i.a.isMobile)],t.prototype,"isMobile$",void 0),t})()}}]);

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.