1(self.webpackChunkigm_client=self.webpackChunkigm_client||[]).push([[1723],{84825:(t,e,r)=>{"use strict";r.d(e,{g:()=>a});var i=r(55244),s=r(37716),o=r(26643),n=r(32566),c=r(91841);let a=(()=>{class t{constructor(t,e,r){this.httpService=t,this.paramsService=e,this.http=r,this.BASE_URL=i.h.DPMS+i.h.DPMS_INFO}getDpmsPortfolioMaterial(t){return this.httpService.get(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_MATERIAL,{portfolioId:t})}getDpmsPortfolioInfo(t){return this.httpService.get(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_INFO,{portfolioId:t})}getDpmsPortfolioManagementFee(t){return this.httpService.get(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_MANAGEMENT_FEE,{portfolioId:t})}getDpmsPortfolioPerformanceByPeriod(t,e,r){return this.httpService.post(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_PERFORMANCE_BY_PERIOD,{},{dpmsPortfolioId:t,paramPeriod:e,currencyCode:r})}getDpmsPortfolioInvestmentOutlook(t){return this.httpService.post(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_INVESTMENT_OUTLOOK,{},{portfolioId:t})}getDpmsPortfolioQuarterlyCommentary(t){return this.httpService.post(this.BASE_URL+i.h.GET_DPMS_PORTFOLIO_QUARTERLY_COMMENTARY,{},{portfolioId:t})}getAllDpmsPortfolioInfoByPortfolioGroup(t,e,r,s,o){const n=this.paramsService.buildHttpParams({companyCode:t,sma:e,includePortfolioGroup:r,excludePortfolioGroup:s,excludeOfflineTradeDpms:o});return this.http.get(this.BASE_URL+i.h.GET_ALL_DPMS_PORTFOLIO_INFO_BY_PORTFOLIO_GROUP,{params:n})}getRelatedDpmsPortfolioList(t){return this.httpService.get(this.BASE_URL+i.h.GET_RELATED_DPMS_PORTFOLIO_LIST,{portfolioId:t})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.O),s.LFG(n.O),s.LFG(c.eN))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},49816:(t,e,r)=>{"use strict";r.d(e,{w:()=>c});var i=r(55244),s=r(37716),o=r(26643),n=r(32566);let c=(()=>{class t{constructor(t,e){this.httpService=t,this.paramsService=e,this.BASE_URL=i.h.MICROSITE}getLatestAutoSweepYieldByAccountPlatform(){return this.httpService.post(this.BASE_URL+i.h.GET_LATEST_AUTO_SWEEP_YIELD_BY_ACCOUNT_PLATFORM,{})}getLatestTrustAccountRate(){return this.httpService.post(this.BASE_URL+i.h.GET_LATEST_TRUST_ACCOUNT_RATE,{},{})}getAutoSweepYield(t="IGM"){return this.httpService.post(this.BASE_URL+i.h.GET_AUTO_SWEEP_YIELD,{},{accountPlatform:t})}getMarginSystemInterestRate(t){return this.httpService.post(this.BASE_URL+i.h.GET_MARGIN_SYSTEM_INTEREST_RATE,{},{currency:t})}getMarginSystemInterestRateIgb(){return this.httpService.post(this.BASE_URL+i.h.GET_MARGIN_SYSTEM_INTEREST_RATE_IGB,{},{})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.O),s.LFG(n.O))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},14427:(t,e,r)=>{"use strict";r.d(e,{X:()=>a});var i=r(26643),s=r(37716),o=r(49816),n=r(86489),c=r(84825);let a=(()=>{class t{constructor(t,e,r){this.micrositeRestService=t,this.clientHoldingRestService=e,this.dpmsInfoRestService=r}getLatestAutoSweepYieldByAccountPlatform(){return(0,i.X)(this.micrositeRestService.getLatestAutoSweepYieldByAccountPlatform())}isOptedIntoAutoSweepV2(t){return(0,i.X)(this.clientHoldingRestService.isOptedIntoAutoSweepV2(t))}confirmOptInSettingsForB2bV3(t,e,r){return(0,i.X)(this.clientHoldingRestService.confirmOptInSettingsForB2bV3(t,e,r))}getDpmsPortfolioMaterial(t){return(0,i.X)(this.dpmsInfoRestService.getDpmsPortfolioMaterial(t))}getDpmsPortfolioInfo(t){return(0,i.X)(this.dpmsInfoRestService.getDpmsPortfolioInfo(t))}getDpmsPortfolioInvestmentOutlook(t){return(0,i.X)(this.dpmsInfoRestService.getDpmsPortfolioInvestmentOutlook(t))}getDpmsPortfolioQuarterlyCommentary(t){return(0,i.X)(this.dpmsInfoRestService.getDpmsPortfolioQuarterlyCommentary(t))}getLatestTrustAccountRate(){return(0,i.X)(this.micrositeRestService.getLatestTrustAccountRate())}getMarginSystemInterestRate(t){return(0,i.X)(this.micrositeRestService.getMarginSystemInterestRate(t))}getMarginSystemInterestRateIgb(){return(0,i.X)(this.micrositeRestService.getMarginSystemInterestRateIgb())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.w),s.LFG(n.w),s.LFG(c.g))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},10152:(t,e,r)=>{"use strict";r.d(e,{V:()=>A});
1var i=r(26643),s=r(35758),o=r(31506),n=r(88002),c=r(12048),a=r(37716),u=r(86489),h=r(36378),l=r(76088),d=r(36202),p=r(28645),f=r(33021),S=r(18777),m=r(13937),g=r(29790);let A=(()=>{class t{constructor(t,e,r,i,s,o,n,c,a){this.clientHoldingRestService=t,this.clientPostLoginRestService=e,this.clientStockTransactionRestService=r,this.clientTrustAccountRestService=i,this.store=s,this.marginService=o,this.trustAccountService=n,this.authStateService=c,this.translateService=a}findAccounts(){return(0,i.X)(this.clientPostLoginRestService.findAccounts())}findCrossBorderLinkedAccounts(){return(0,i.X)(this.clientPostLoginRestService.findCrossBorderLinkedAccounts())}findTrustAccounts(t){return(0,i.X)(this.clientTrustAccountRestService.findTrustAccounts(t))}findCrossBorderTrustAccounts(t){return(0,i.X)(this.clientTrustAccountRestService.findCrossBorderTrustAccounts(t))}findAutoSweepAccountsV2(t){return(0,i.X)(this.clientHoldingRestService.findAutoSweepAccountsV2(t,!0,!0))}getPurchasingPower(){return(0,i.X)(this.clientStockTransactionRestService.getPurchasingPower(null))}getAccountPlatformAutoSweepPortfolioDetails(t,e,r){return(0,i.X)(this.clientHoldingRestService.getAccountPlatformAutoSweepPortfolioDetails(t,e,r))}getTrustAccountRateHistory(t,e){return this.clientTrustAccountRestService.getTrustAccountRateHistory(t,e)}getB2bColumnViewConfig(t){return(0,i.X)(this.clientTrustAccountRestService.getB2bColumnViewConfig(t))}addOrUpdateB2bColumnViewConfig(t,e){return(0,i.X)(this.clientTrustAccountRestService.addOrUpdateB2bColumnViewConfig(t,e))}getCashSolutionsSummaryData(){this.cashAccountDataFetchComplete=!1,this.autoSweepDataFetchComplete=!1,this.refnoCurrenciesMapList=new Map,this.marginSummaryVOList=[],this.marginDataFetchComplete=!1,this.marginSummaryDataFetchComplete=!1,this.store.dispatch(new o.yI(!1)),this.getPurchasingPower().subscribe(t=>{console.log(t),this.store.dispatch(new o.bf(t))}),this.trustAccountService.findTrustAccountCurrencies().subscribe(t=>{console.log(t),this.store.dispatch(new o.e3(t))}),(0,s.D)([this.findCrossBorderLinkedAccounts(),this.findAccounts()]).pipe((0,n.U)(([t,e])=>{console.log("this.authStateService.id: ",this.authStateService.id),this.authStateService.id&&e.forEach(t=>{t.isJointHolder=t.id===this.authStateService.id?"N":"Y"});let r=[];return e&&(r=r.concat(e.map(t=>t.refno))),t&&t.forEach(t=>{t.isCrossBorderAccountFlag="Y",t.isJointHolder="N"}),r.length>0?this.marginService.findMarginAccountsSummary(r).subscribe(t=>{"SUCCESS"==t.status&&t.data&&(this.marginSummaryVOList=t.data,this.store.dispatch(new o.dp(this.marginSummaryVOList)),this.marginSummaryDataFetchComplete=!0,this.checkAllDataFetch(),this.checkAccountDataReady())}):(this.store.dispatch(new o.dp([])),this.marginDataFetchComplete=!0,this.checkAllDataFetch()),e.concat(t)})).subscribe(t=>{console.log(t),this.store.dispatch(new o.$6(t));const e=[],r=[];null==t||t.forEach(t=>{const i=t.refno;t.countryCode&&"SG"!==t.countryCode?e.push(this.findCrossBorderTrustAccounts(i)):(e.push(this.findTrustAccounts(i)),r.push(this.findAutoSweepAccountsV2(i)),this.getAccountPlatformAutoSweepPortfolioDetails(i).subscribe(t=>{console.log(t)}))}),(0,s.D)(e).subscribe(e=>{const r=e.reduce((t,e)=>t.concat(e),[]);this.store.dispatch(new o.rT(null==r?void 0:r.map(e=>{var r,i;let s=e.refno,o=e.acctCurrency;
1if(this.refnoCurrenciesMapList.size>0&&this.refnoCurrenciesMapList.has(s)){let t=this.refnoCurrenciesMapList.get(s);t&&(t.includes(o)||this.refnoCurrenciesMapList.set(s,[...this.refnoCurrenciesMapList.get(s),o]))}else this.refnoCurrenciesMapList.set(s,[o]);return{refno:e.refno,accountName:t.find(t=>t.refno===e.refno).accountName,currency:e.acctCurrency,type:"cash",availableBalance:e.availableBalance,netAvailableBalance:e.netAvailableBalance,ledgerBalance:e.ledgerBalance,purchasingPower:0,purchasingPowerCn:0,interestRate:e.interestRate,interestEarned:e.interestEarned,trustId:e.trustId,conversionRate:e.conversionRate,totalUnsettledAmount:e.totalUnsettledAmount,totalUnsettledCbAmount:e.totalUnsettledCbAmount,totalUnsettledFxAmount:e.totalUnsettledFxAmount,currentMonthDebitCardSpending:e.currentMonthDebitCardSpending,isJointHolder:null===(r=t.find(t=>t.refno===e.refno))||void 0===r?void 0:r.isJointHolder,agentType:null===(i=t.find(t=>t.refno===e.refno))||void 0===i?void 0:i.agentType}})))}).add(()=>{this.cashAccountDataFetchComplete=!0,this.checkAllDataFetch(),this.checkAccountDataReady()}),(0,s.D)(r).subscribe(e=>{const r=e.reduce((t,e)=>t.concat(e),[]);this.store.dispatch(new o.S9(null==r?void 0:r.map(e=>{var r;let i=e.refno,s=e.dpmsPortfolioCurrencyCode;if(this.refnoCurrenciesMapList.size>0&&this.refnoCurrenciesMapList.has(i)){let t=this.refnoCurrenciesMapList.get(i);t&&(t.includes(s)||this.refnoCurrenciesMapList.set(i,[...this.refnoCurrenciesMapList.get(i),s]))}else this.refnoCurrenciesMapList.set(i,[s]);return{refno:e.refno,accountName:t.find(t=>t.refno===e.refno).accountName,currency:e.dpmsPortfolioCurrencyCode,type:"auto-sweep",availableBalance:e.availableBalance,purchasingPower:0,purchasingPowerCn:0,interestRate:e.indicativeYieldRate,profit:e.profitValueLcy,profitPercent:e.profitPercentLcy,processingWithdrawal:e.sumOfDebitWithdrawalTransactionAmount,processingDeposit:e.sumOfCreditDepositTransactionAmount,optInDate:e.optInDate,isOptedIn:e.isOptedIn,conversionRate:e.conversionRateToTarget,dpmsPortfolioId:e.dpmsPortfolioId,trustId:e.trustId,isJointHolder:null===(r=t.find(t=>t.refno===e.refno))||void 0===r?void 0:r.isJointHolder}})))}).add(()=>{this.autoSweepDataFetchComplete=!0,this.checkAllDataFetch(),this.checkAccountDataReady()})})}checkAllDataFetch(){this.autoSweepDataFetchComplete&&this.cashAccountDataFetchComplete&&this.store.dispatch(new o.yI(!0))}checkAccountDataReady(){if(this.autoSweepDataFetchComplete&&this.cashAccountDataFetchComplete&&this.marginSummaryDataFetchComplete){let t=[];this.marginSummaryVOList.forEach(e=>{if("Y"==e.marginable&&this.refnoCurrenciesMapList.has(e.accountNumber)){let r=this.refnoCurrenciesMapList.get(e.accountNumber);r&&r.length>0&&r.forEach(function(r){let i={};i.currency=r,i.refno=e.accountNumber,t.push(i)})}}),t.length>0?this.marginService.getMaxWithdrawalAmount(t).subscribe(t=>{"SUCCESS"==t.status&&t.data&&(this.store.dispatch(new o.KY(t.data)),this.marginDataFetchComplete=!0,this.checkAllDataFetch())}):(this.store.dispatch(new o.KY([])),this.marginDataFetchComplete=!0,this.checkAllDataFetch())}}blockMarginForWithdrawalTransfer(t){return t.loanSource===c.x.MARGIN_LOAN_SOURCE_IFF&&t.loanAmount>0&&!t.isWithdrawalAllowed}generateBlockMarginForWithdrawalErrorMessage(){return this.translateService.instant("b2b.igm.iff.outstanding.loan.blocking.in.withdrawal.diy")}generateBlockMarginForTransferErrorMessage(){return this.translateService.instant("b2b.igm.iff.outstanding.loan.blocking.in.cash.transfer.diy")}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(u.w),a.LFG(h.m),a.LFG(l.Q),a.LFG(d.R),a.LFG(p.yh),a.LFG(f.q),a.LFG(S.H),a.LFG(m.V),a.LFG(g.sK))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),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.