1(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"5pEu":function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var i=n("mrSG"),s=n("6h7t"),a=n("WAGK"),r=n("R8g3"),o=n("fXoL"),c=n("dEAy"),l=n("ALT/"),d=n("Jl72"),p=n("sYmb"),u=n("WGfN"),h=n("ofXK"),m=n("KqJr"),S=n("95lV"),v=n("OzZK");const f=function(e){return[e]};function C(e,t){if(1&e){const e=o["\u0275\u0275getCurrentView"]();o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275elementStart"](1,"div",6),o["\u0275\u0275elementStart"](2,"button",7),o["\u0275\u0275listener"]("click",(function(){return o["\u0275\u0275restoreView"](e),o["\u0275\u0275nextContext"]().updateDerivativeConsent()})),o["\u0275\u0275text"](3),o["\u0275\u0275pipe"](4,"translate"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()}if(2&e){const e=o["\u0275\u0275nextContext"]();o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngClass",o["\u0275\u0275pureFunction1"](5,f,e.isMobileView?"px-3":"px-4")),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("nzLoading",e.isLoading),o["\u0275\u0275advance"](1),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](4,3,"ok"))}}function g(e,t){if(1&e&&o["\u0275\u0275text"](0),2&e){const e=o["\u0275\u0275nextContext"]();o["\u0275\u0275textInterpolate1"](" ",e.popupMsg," ")}}let b=(()=>{class e{constructor(e,t,n,i,s){this.modal=e,this.responsiveService=t,this.globalDataStorage=n,this.translateService=i,this.accountRestService=s,this.isMobileView=!1,this.dkUrl=Object(r.e)()+"/fsm/download/HK/en/risk_disclosure_stmt_derivative_product_en.pdf",this.isLoading=!1,this.errorModalVisible=!1}ngOnInit(){this.isMobileView=this.responsiveService.isMobileView(),this.responsiveService.mobileViewEvent.subscribe(e=>this.isMobileView=e);const e=this.globalDataStorage.getStorage("locale")||"ch";this.dkUrl=Object(r.e)()+"/fsm/download/HK/"+e+"/risk_disclosure_stmt_derivative_product_"+e+".pdf"}updateDerivativeConsent(){this.isLoading=!0,this.accountRestService.updateDerivativeConsent(this.selectedRefno).subscribe(e=>{"SUCCESS"===(null==e?void 0:e.status)?this.modal.destroy(!0):(this.popupMsg=this.translateService.instant("update.failed"),this.popupIconType="error",this.errorModalVisible=!0),this.isLoading=!1})}closeErrorModal(){this.errorModalVisible=!1}}return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275directiveInject"](c.d),o["\u0275\u0275directiveInject"](l.a),o["\u0275\u0275directiveInject"](d.a),o["\u0275\u0275directiveInject"](p.f),o["\u0275\u0275directiveInject"](u.a))},e.\u0275cmp=o["\u0275\u0275defineComponent"]({type:e,selectors:[["stock-derivative-consent-modal"]],inputs:{selectedRefno:"selectedRefno"},decls:9,vars:15,consts:[[1,"mb-4",3,"ngClass"],[1,"mb-3","pt-4"],["height","1000px",3,"url"],[4,"nzModalFooter"],[3,"isModalVisible","iconType","title","content","okText","nzMaskClosable","titleClass","contentClass","onHandleOk"],["contentTpl",""],[1,"py-2",3,"ngClass"],["nz-button","","nzType","theme",1,"btn-base",3,"nzLoading","click"]],template:function(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275elementStart"](1,"h4",1),o["\u0275\u0275text"](2),o["\u0275\u0275pipe"](3,"translate"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275element"](4,"app-pdf-wrapper",2),o["\u0275\u0275template"](5,C,5,7,"div",3),o["\u0275\u0275elementStart"](6,"ui-alert-modal",4),o["\u0275\u0275listener"]("onHandleOk",(function(){return t.closeErrorModal()})),o["\u0275\u0275template"](7,g,1,1,"ng-template",null,5,o["\u0275\u0275templateRefExtractor"]),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275reference"](8);o["\u0275\u0275property"]("ngClass",o["\u0275\u0275pureFunction1"](13,f,t.isMobileView?"px-3":"px-4")),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](3,11,"fsmone.acknowledge.derivative.knowledge")),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("url",t.dkUrl),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("isModalVisible",t.errorModalVisible)("iconType",t.popupIconType)("title",t.popupTitle)("content",e)("okText","ok")("nzMaskClosable",!1)("titleClass","text-center")("contentClass","text-center")}},directives:[h.q,m.a,c.b,S.a,v.a],pipes:[p.e],encapsulation:2}),e})();var k=n("mKYj"),T=n("RBFk"),x=n("cp0P"),E=n("F1+R");class z{constructor(e,t,n,i,s,a,r,o,c,l,d,p,u,h,m,S){var v;this.lightStreamerService=e,this.stockService=t,this.stockTransactionRestService=n,this.translateService=i,this.modalService=s,this.stocksInfoRestService=a,this.router=r,this.accountRestService=o,this.globalDataStorage=c,this.securityRestService=l,this.accountUpdateService=d,this.accountOpeningService=p,this.watchlistRestService=u,this.factsetDataService=h,this.loginRestService=m,this.store=S,this.liveSnapFallbackTimer=null,this.liveSnapFallbackTimeoutMs=15e3,this.priceQuote={},this.liveSnapDuration=9e5,this.priceChangeEffectDuration=1500,this.factsheetData={},this.hkExchangeList=["HKEX"],this.usExchangeList=["NASDAQ","NYSE","AMEX","BATS"],this.aShareExchangeList=["SSE","SZSE"],this.sgExchangeList=["SGX"],this.hasStockConsent=!1,this.hasUSStockIntention=!1,this.hasSgx=!1,this.hasBcan=!1,this.verifiedAddress=!0,this.disabledAddressProofCheck=!1,this.isOpenOrderpad=!0,this.w8BenRefnoList=[],this.isShowW8BenExpiryMo
1dal=!1,this.skipRefnoEngAddrErr=!1,this.isAfterEffectiveDate=!1,this.isValidIdr=!1,this.isShowPopupBefore=!1,this.stockDataSubscriptions=[],this.cnExchanges=["SZSE","SSE"],this.usExchanges=["NYSE","NASDAQ","AMEX","BATS"],this.isShowPopupBefore="true"===(null!==(v=localStorage.getItem("isShowHkidrPopupBeforeOnStock"))&&void 0!==v?v:"false")}getModuleEnabled$(e){return this.store.selectSnapshot(E.a.isAuthenticated)?this.securityRestService.isModuleEnabled(e):this.loginRestService.isModuleEnabled(e)}initLightStreamer(){this.stockService.isSubscribedLs?(this.onInit(),this.unsubscribeAllStockPricesRequest()):this.lightStreamerService.login("stock-trade"+new Date,{loginSuccessCallback:()=>{this.stockService.isSubscribedLs=!0,this.onInit(),this.unsubscribeAllStockPricesRequest(),console.log("LS Login Success")},connectionErrorCallback:e=>{e&&(console.log("LS Connection Error"),this.stockService.isSubscribedLs=!1)},snapProcessingCallback:e=>{this.snapProcessingCallback(e)},snapErrorCallback:()=>{this.snapErrorFallBack()}})}getHkexLiveSnap(e,t,n){this.stockService.currentLiveSnapStockObj={exchange:e,stockCode:t,msInstrumentId:n},this.stockService.isSubscribedLs?(this.clearLiveSnapFallbackTimer(),this.liveSnapFallbackTimer=setTimeout(()=>this.snapErrorFallBack(),this.liveSnapFallbackTimeoutMs),this.lightStreamerService.snap("L1",[n],()=>this.snapErrorFallBack(),()=>this.snapErrorFallBack())):this.snapErrorFallBack()}getHkexDelaySnap(e,t,n){this.stockService.currentLiveSnapStockObj={exchange:e,stockCode:t,msInstrumentId:n},this.stockService.isSubscribedLs?this.lightStreamerService.snap("DELAY",[n],null,()=>this.snapErrorFallBack()):this.snapErrorFallBack()}getAShareDelaySnap(e,t,n){this.stockService.currentLiveSnapStockObj={exchange:e,stockCode:t,msInstrumentId:n},this.stockService.isSubscribedLs?this.lightStreamerService.snap("DELAY",[n],null,()=>this.snapErrorFallBack()):this.snapErrorFallBack()}snapProcessingCallback(e){this.clearLiveSnapFallbackTimer(),console.log("LS snapProcessingCallback ==== ",e),e.snapLimit.outOfTrading&&!this.stockService.showOutOfTradingModal&&(this.stockService.showOutOfTradingModal=!0,this.modalService.info({nzClassName:"ui-info-modal",nzContent:this.translateService.instant("stock.trade.hkex.is.closed.live.snap.not.operational"),nzOkType:"theme"}).afterClose.subscribe(()=>{this.stockService.showOutOfTradingModal=!1})),this.stockService.liveSnapProcessingCallback.emit(e)}snapErrorFallBack(){this.clearLiveSnapFallbackTimer(),console.log("LS snapErrorFallBack");let e,t=!1;const n=n=>{t||(t=!0,clearTimeout(e),this.stockService.liveSnapErrorFallBack.emit(n))};e=setTimeout(()=>n(null),this.liveSnapFallbackTimeoutMs),Object(x.a)([this.stocksInfoRestService.getStockQuoteByCodeExchange(this.stockService.currentLiveSnapStockObj.stockCode,this.stockService.currentLiveSnapStockObj.exchange),this.getModuleEnabled$("STOCK_DATASOURCE_NEW")]).subscribe(([e,t])=>{if(e&&"SUCCESS"===e.status){const i=t&&"SUCCESS"===t.status&&t.data?this.factsetDataService.mapStockQuote(e.data):e.data;i.msInstrumentId=this.stockService.currentLiveSnapStockObj.msInstrumentId,n(i)}else n(null)},()=>n(null))}clearLiveSnapFallbackTimer(){this.liveSnapFallbackTimer&&(clearTimeout(this.liveSnapFallbackTimer),this.liveSnapFallbackTimer=null)}subscribePriceQuote(e,t){this.stockService.isSubscribedLs&&this.lightStreamerService.subscribePriceQuote(e,[t],this.priceQuote,{updateCallback:e=>{this.setDisplayPriceQuote(this.priceQuote)}})}subscribePriceQuoteWithModule(e,t,n,i,s){this.stockService.isSubscribedLs?t&&n&&this.lightStreamerService.subscribePriceQuoteWithModule(e,t,[n],this.priceQuote,{updateCallback:e=>{this.setDisplayPriceQuote(e)}}):i&&s&&Object(x.a)([this.stocksInfoRestService.getStockQuoteByCodeExchange(s,i),this.getModuleEnabled$("STOCK_DATASOURCE_NEW")]).subscribe(([e,t])=>{if(e&&"SUCCESS"===e.status){const i=t&&"SUCCESS"===t.status&&t.data?this.factsetDataService.mapStockQuote(e.data):e.data;i.msInstrumentId=n,this.stockService.liveSnapErrorFallBack.emit(i)}else this.stockService.liveSnapErrorFallBack.emit(null)})}subscribePriceQuoteWithModuleByStockList(e,t,n){if(0!=t.length)if(this.stockService.isSubscribedLs)t.forEach(t=>{!t.snapLevel&&t.exchange&&(t.snapLevel=this.getStockSnapLevel(t.exchange)),t.snapLevel&&t.msInstrumentId&&this.lightStreamerService.subscribePriceQuoteWithModule(e,t.snapLevel,[t.msInstrumentId],this.priceQuote,{updateCallback:e=>{this.setDisplayPriceQuote(e)}})});else if("function"==typeof n){const e=t.map(e=>e.tickerNo).filter(e=>null!=e);e.length>0&&this.findStockPricesByTickerNoList(e,e=>{t.forEach(t=>{e[t.tickerNo]&&Object.assign(t,e[t.tickerNo])}),n(t)})}}findStockPricesByTickerNoList(e,t){const n=this.watchlistRestService.findStockPricesByTickerNoList(e).subscribe(e=>{if(e&&"SUCCESS"===e.status){const n=e.data.reduce((e,t)=>
1{let n=t.sedolnumber?t.sedolnumber.split("_")[0]:null;if(n)return e[n]={lastPrice:this.parseValue(t.lastPrice),change:this.parseValue(t.change),changePercent:this.parseValue(t.percentRate),bidPrice:this.parseValue(t.bidPrice),askPrice:this.parseValue(t.offerPrice),highPrice:this.parseValue(t.highPrice),lowPrice:this.parseValue(t.lowPrice),openPrice:this.parseValue(t.openPrice),prevClose:this.parseValue(t.closePrice),volume:this.parseValue(t.todayVol),bidVolume:this.parseValue(t.bidVol),askVolume:this.parseValue(t.offerVol),high52Week:this.parseValue(t.high52Week),low52Week:this.parseValue(t.low52Week),marketCapital:this.parseValue(t.marketCapital)},e},{});t(n)}},e=>{},()=>{});this.stockDataSubscriptions.push(n)}subscribeFactsheetData(e,t){this.stockService.isSubscribedLs&&this.lightStreamerService.subscribeFactsheetData(e,this.factsheetData,{updateCallback:e=>{e&&(t?this.stockService.orderpadFactsheetData.next(e):this.stockService.factsheetData.next(e))}})}unsubscribeAllStockPricesRequest(){this.stockDataSubscriptions.forEach(e=>{e&&e.unsubscribe()}),this.stockDataSubscriptions=[]}checkStockTradeRight(e,t,n,a,r,o){return Object(i.a)(this,void 0,void 0,(function*(){t&&(this.currentExchange=t),this.productInfo=n,this.orderSide=a,this.isOpenOrderpad=r;let i=!1;if(yield this.addressProofCheckRequired(),yield this.isAcctSuspendTrading())return!1;if(yield this.checkErrorMessageExist(this.currentExchange))return!1;let c=yield this.getAccountInfo(e);if(c&&"C"==c.accountType){if(this.sgExchangeList.includes(this.currentExchange)||this.currentExchange==s.s.SGX)return this.modalService.error({nzClassName:"ui-info-modal",nzContent:this.translateService.instant("fsm.sg.not.available"),nzOkText:this.translateService.instant("ok"),nzOkType:"theme",nzOnOk:()=>this.router.navigate([s.p.STOCKS])}),!1;if(this.aShareExchangeList.includes(this.currentExchange)||"A-Share"==this.currentExchange)return this.modalService.error({nzClassName:"ui-info-modal",nzContent:this.translateService.instant("fsm.trade.cn.stock.not.available"),nzOkText:this.translateService.instant("ok"),nzOkType:"theme",nzOnOk:()=>this.router.navigate([s.p.STOCKS])}),!1}return(this.usExchangeList.includes(this.currentExchange)||"US"==this.currentExchange)&&(yield this.verifyUsLivePriceSubscription()),console.log("check stock trade right"),!!c&&(yield this.getAccountProductStatus(null==c?void 0:c.refno),i=yield this.checkMarketTradeRight(c,this.currentExchange),console.log("pass checking: "+i),!!i&&(r&&this.openOrderPad(n,a,o),!0))}))}checkMarketTradeRight(e,t){return Object(i.a)(this,void 0,void 0,(function*(){if(this.hkExchangeList.includes(t)||t==s.s.HKEX)return(yield this.getDerivativeConsent(e.refno))?this.checkHkStockMarketRight(e):(this.showDerivativeConsentModal(e.refno,t,this.productInfo,this.orderSide,this.isOpenOrderpad),!1);if(this.usExchangeList.includes(t)||"US"==t){if(this.hasStockConsent){let t=!1;return t=yield this.checkW8BenStatus(e.refno),this.isShowW8BenExpiryMo
1dal||(t=yield this.checkW8Address(e.refno)),t}return this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.HK_STOCK_ACTIVATION],{queryParams:{refno:e.refno}}),!1}return this.aShareExchangeList.includes(t)||"A-Share"==t?(yield this.getDerivativeConsent(e.refno))?this.checkCnStockMarketRight(e):(this.showDerivativeConsentModal(e.refno,t,this.productInfo,this.orderSide,this.isOpenOrderpad),!1):this.sgExchangeList.includes(t)||t==s.s.SGX?this.hasStockConsent?this.hasSgx?!!(yield this.getDerivativeConsent(e.refno))||(this.showDerivativeConsentModal(e.refno,t,this.productInfo,this.orderSide,this.isOpenOrderpad),!1):(this.redirectToAccountSetting(t),!1):(this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.HK_STOCK_ACTIVATION],{queryParams:{refno:e.refno}}),!1):void 0}))}checkIfShowHkOrCnApplicationPopUp(e,t,n){return t?e||n:e&&n}checkHkStockMarketRight(e){return Object(i.a)(this,void 0,void 0,(function*(){let t=!this.hasStockConsent,n=!1,i=!this.disabledAddressProofCheck&&"approved"!==e.addressProof&&"received"!==e.addressProof;n=yield this.checkHkStockIdrReminder(e.refno);let a=this.checkIfShowHkOrCnApplicationPopUp(i,t,n);return this.isValidIdr=yield this.checkIsValidIdrToTradeHkex(e.refno),console.log("isAllowToApplyIdr "+n),console.log("isAllowToApplyStockConsent "+t),console.log("isAllowToApplyAddressProof "+i),console.log("show 3 in 1 "+a),console.log("isValidIdr "+this.isValidIdr),console.log("isAfterEffectiveDate "+this.isAfterEffectiveDate),a?(this.showHkCnStockApplicationModal(e.refno,t,n,i,!1,"HK"),!t):i?(this.showAddressProofReminderModal(),!0):n?(this.showHkIdrReminderModal(),!0):t?(this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.HK_STOCK_ACTIVATION],{queryParams:{refno:e.refno}}),!1):this.isValidIdr||this.isAfterEffectiveDate||this.isShowPopupBefore?!(!this.isValidIdr&&this.isAfterEffectiveDate&&(this.showRequireValidIdrToTradeHkexAfterEffectiveDate(),1)):(this.showRequireValidIdrToTradeHkexBeforeEffectiveDate(),localStorage.setItem("isShowHkidrPopupBeforeOnStock","true"),this.isShowPopupBefore=!0,!0)}))}checkCnStockMarketRight(e){return Object(i.a)(this,void 0,void 0,(function*(){let t=!this.hasStockConsent,n=!0,i=!this.disabledAddressProofCheck&&"approved"!==e.addressProof&&"received"!==e.addressProof;n=yield this.checkBcan(e.refno);let a=this.checkIfShowHkOrCnApplicationPopUp(i,t,n);return console.log("isAllowToApplyStockConsent "+t),console.log("isAllowToApplyBcan "+n),console.log("isAllowToApplyAddressProof "+i),console.log("show 3 in 1 "+a),a?(this.showHkCnStockApplicationModal(e.refno,t,!1,i,n,"CN"),!n&&!t):i?(this.showAddressProofReminderModal(),!0):n?(this.redirectToAccountSetting("A-Share"),!1):!t||(this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.HK_STOCK_ACTIVATION],{queryParams:{refno:e.refno}}),!1)}))}showHkCnStockApplicationModal(e,t,n,i,r,o){this.applicationModal=this.modalService.create({nzClosable:!1,nzMaskClosable:!1,nzWidth:"1000px",nzContent:a.a,nzClassName:"modal-p-0",nzWrapClassName:"vertical-center-modal modal-footer-shadow full-screen-md",nzComponentParams:{selectedRefno:e,isAllowToApplyStockConsent:t,isAllowToApplyIdr:n,isAllowToApplyAddressProof:i,isAllowToApplyBcan:r,market:o,isStockIpo:!1}}),this.applicationModal.afterClose.subscribe(t=>{t&&this.checkStockTradeRight(e,"HK"==o?s.s.HKEX:"A-Share",this.productInfo,this.orderSide,this.isOpenOrderpad)})}getAccountInfo(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.getIamAccountByRefno(e).toProm
1ise().then(e=>e&&"SUCCESS"===(null==e?void 0:e.status)?e.data:null)}))}addressProofCheckRequired(){return Object(i.a)(this,void 0,void 0,(function*(){return this.disabledAddressProofCheck=!1,this.securityRestService.isModuleEnabled("ADDRESS_PROOF_CHECK").toPromise().then(e=>{e&&"SUCCESS"===(null==e?void 0:e.status)&&(this.disabledAddressProofCheck=!(null==e?void 0:e.data))})}))}isAcctSuspendTrading(){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.isAccountSuspendTrading().toPromise().then(e=>!!e&&(this.modalService.error({nzTitle:this.translateService.instant("error"),nzContent:this.translateService.instant("error.code.account.suspend.trading"),nzOkType:"theme"}),!0))}))}checkErrorMessageExist(e){return Object(i.a)(this,void 0,void 0,(function*(){var t="HK";return this.hkExchangeList.includes(e)||e==s.s.HKEX?t="HK":this.usExchangeList.includes(e)||"US"==e?t="US":this.aShareExchangeList.includes(e)||"A-Share"==e?t="CN":(this.sgExchangeList.includes(e)||e==s.s.SGX)&&(t="SG"),this.stockTransactionRestService.checkErrorMessage("FSM",t).toPromise().then(e=>{var t,n;return!(!e||"SUCCESS"!==(null==e?void 0:e.status)||"notok"==e.data.message||(this.modalService.error({nzTitle:null===(t=e.data)||void 0===t?void 0:t.title,nzContent:null===(n=e.data)||void 0===n?void 0:n.details,nzOkType:"theme"}),0))})}))}getAccountProductStatus(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.getAccountProductStatus(e).toPromise().then(e=>{if("SUCCESS"===(null==e?void 0:e.status)&&(null==e?void 0:e.data)){let t=e.data;this.hasStockConsent="Y"==t.stockConsent,this.hasUSStockIntention="Y"==t.usStockIntention,this.hasSgx="Y"==t.sgStockConsent,this.hasBcan="Y"==t.bcanFlag,this.verifiedAddress="Y"==t.addressStatus}})}))}getDerivativeConsent(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.getDerivativeConsent(e).toPromise().then(e=>{if("SUCCESS"===(null==e?void 0:e.status))return e.data}).catch(e=>(this.modalService.error({nzContent:this.translateService.instant("error"),nzOkType:"theme"}),!1))}))}verifyUsLivePriceSubscription(){return Object(i.a)(this,void 0,void 0,(function*(){return this.stockTransactionRestService.verifyUsLivePriceSubscription().toPromise().then(e=>{if("SUCCESS"===(null==e?void 0:e.status)){let t=e.data;"Y"===(null==t?void 0:t.tncAcceptLater)?this.stockService.usLivePriceActivateLaterEvent.emit(!0):"Y"===(null==t?void 0:t.displayTnc)&&this.showUsLivePriceTncModal()}return!0})}))}showUsLivePriceTncModal(){this.modalService.create({nzWidth:"1000px",nzContent:k.a,nzClassName:"modal-p-0",nzWrapClassName:"vertical-center-modal modal-footer-shadow full-screen-md",nzComponentParams:{}}).afterClose.subscribe(e=>{e&&this.stockService.reloadOrderpad.emit(!0)})}redirectToAccountSetting(e){let t=[s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS];this.hkExchangeList.includes(e)||e==s.s.HKEX?t=[s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.HK_STOCK_ACTIVATION]:this.usExchangeList.includes(e)||"US"==e?t=[s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.US_STOCK_ACTIVATION]:this.aShareExchangeList.includes(e)||"A-Share"==e?t=[s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.CHINA_A_SHARES_CONNECT_ACTIVATION]:(this.sgExchangeList.includes(e)||e==s.s.SGX)&&(t=[s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.SG_STOCK_ACTIVATION]),this.router.navigate(t)}showDerivativeConsentModal(e,t,n,i,s){this.modalService.create({nzClosable:!1,nzMaskClosable:!1,nzWidth:"1000px",nzContent:b,nzClassName:"modal-p-0",nzWrapClassName:"vertical-center-modal",nzComponentParams:{selectedRefno:e}}).afterClose.subscribe(a=>{a&&this.checkStockTradeRight(e,t,n,i,s)})}showRequireValidIdrToTradeHkexBeforeEffectiveDate(){this.modalService.info({nzClassName:"ui-info-modal",nzContent:this.translateService.instant("fsmone.hk.stock.require.valid.idr.before.effective.date"),nzClosable:!1,nzOkText:this.translateService.instant("ok"),nzOkType:"theme",nzOnOk:()=>{this.router.navigate([s.p.ACCOUNT_SETTING,s.p.HK_STOCKS_IDR])},nzCancelText:this.translateService.instant("cancel"),nzOnCancel:()=>!0})}showRequireValidIdrToTradeHkexAfterEffectiveDate(){this.modalService.info({nzClassName:"ui-info-modal",nzContent:this.translateService.instant("fsmone.hk.stock.require.valid.idr.after.effective.date"),nzClosable:!1,nzOkText:this.translateService.instant("update"),nzOkType:"theme",nzOnOk:()=>{this.router.navigate([s.p.ACCOUNT_SETTING,s.p.HK_STOCKS_IDR])},nzCancelText:null})}checkBcan(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.findBcanActiveAccountList().toPromise().then(t=>{if(t&&"SUCCESS"==t.status&&(this.bcanActiveAccountMap=t.data,this.bcanActiveAccountMap)){let t=this.bcanActiveAccountMap[e];if(t&&"active"===t.status)return!1}return!0})}))}checkHkStockIdrReminder(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.accountRestService.findHkIdrAccountDetailList().toPromise().then(t=>{if(t&&"SUCCESS"==t.status&&t.data){let n=t.data[e];
1if(n&&"Y"==n.isShownHkStockIdrReminder)return!0}return!1})}))}showHkIdrReminderModal(){this.modalService.info({nzTitle:this.translateService.instant("fsmone.hk.idr.reminder.header"),nzContent:this.translateService.instant("fsmone.hk.idr.note.accounts.not.yet.activated"),nzClosable:!0,nzOkText:this.translateService.instant("fsmone.idr.skip"),nzCancelText:this.translateService.instant("fsmone.idr.update"),nzOkType:"theme",nzOnOk:()=>{},nzOnCancel:()=>{this.router.navigate([s.p.ACCOUNT_SETTING,s.p.HK_STOCKS_IDR])}})}showAddressProofReminderModal(){this.modalService.info({nzTitle:this.translateService.instant("fsmone.address.proof.reminder.header"),nzContent:this.translateService.instant("fsmone.address.proof.not.yet.approved"),nzClosable:!0,nzOkText:this.translateService.instant("fsmone.address.proof.skip"),nzCancelText:this.translateService.instant("fsmone.submit"),nzOkType:"theme",nzOnOk:()=>{},nzOnCancel:()=>{this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACCOUNT_UPDATE,s.p.ADDRESS_PROOF])}})}checkW8BenStatus(e){var t,n,a,r,o;return Object(i.a)(this,void 0,void 0,(function*(){if(this.isShowW8BenExpiryMo
1dal=!1,this.hasUSStockIntention){let t=!0;return this.accountRestService.getW8BenInfoByRefno(e).toPromise().then(n=>{var i,a,r,o,c;if(n&&"SUCCESS"==n.status){let l=n.data;if("Y"==l.isShownW8ExpiryDateReminder)if(t=!0,"Y"==l.w8Expired)if(null==l.w8ExpiryDate){let t=(null===(i=this.productInfo)||void 0===i?void 0:i.productCode)||(null===(a=this.productInfo)||void 0===a?void 0:a.stockCode)||(null===(o=null===(r=this.productInfo)||void 0===r?void 0:r.tickerInfo)||void 0===o?void 0:o.stockCode);this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.W_8BEN_ACTIVATION],{queryParams:{refno:e,prodCode:t,exchange:null===(c=this.productInfo)||void 0===c?void 0:c.exchange}})}else this.showW8BenExpiryModal(!0,l.w8ExpiryDate,e);else this.showW8BenExpiryModal(!1,l.w8ExpiryDate,e)}return t})}{let i=(null===(t=this.productInfo)||void 0===t?void 0:t.productCode)||(null===(n=this.productInfo)||void 0===n?void 0:n.stockCode)||(null===(r=null===(a=this.productInfo)||void 0===a?void 0:a.tickerInfo)||void 0===r?void 0:r.stockCode);return this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.US_STOCK_ACTIVATION],{queryParams:{refno:e,prodCode:i,exchange:null===(o=this.productInfo)||void 0===o?void 0:o.exchange}}),!1}}))}
1showW8BenExpiryModal(e,t,n){let i=e?this.translateService.instant("fsmone.w8ben.renewal.form.w8ben.expired.desc").replaceAll("${w8ExpiryYear}",new Date(Number(t)).getFullYear()):this.translateService.instant("fsmone.w8ben.renewal.form.w8ben.desc").replaceAll("${w8ExpiryYear}",new Date(Number(t)).getFullYear());this.modalService.info({nzTitle:this.translateService.instant("fsmone.w8ben.renewal.form.w8ben"),nzContent:i,nzClosable:!0,nzOkText:this.translateService.instant("fsmone.w8ben.renew.later"),nzCancelText:this.translateService.instant("fsmone.w8ben.renew"),nzOkType:"theme",nzOnOk:()=>{},nzOnCancel:()=>{var e,t,i,a,r;let o=(null===(e=this.productInfo)||void 0===e?void 0:e.productCode)||(null===(t=this.productInfo)||void 0===t?void 0:t.stockCode)||(null===(a=null===(i=this.productInfo)||void 0===i?void 0:i.tickerInfo)||void 0===a?void 0:a.stockCode);this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.W_8BEN_ACTIVATION],{queryParams:{refno:n,prodCode:o,exchange:null===(r=this.productInfo)||void 0===r?void 0:r.exchange}})}}
1),this.isShowW8BenExpiryModal=!0}haveTradeRight(e){return this.hkExchangeList.includes(e)||e==s.s.HKEX?this.hasStockConsent:this.usExchangeList.includes(e)||"US"==e?this.hasUSStockIntention:this.aShareExchangeList.includes(e)||"A-Share"==e?this.hasBcan:this.sgExchangeList.includes(e)||e==s.s.SGX?this.hasSgx:void 0}getEnv(){return-1!=window.location.href.indexOf("hktest")?"https://hktest.fsmglobal.hk":-1!=window.location.href.indexOf("hktrial")||-1!=window.location.href.indexOf("local")?"https://hktrial.fsmglobal.hk":"https://www.fsmglobal.hk"}checkW8BenAddressValidity(e){return Object(i.a)(this,void 0,void 0,(function*(){return this.stockTransactionRestService.checkW8BenAddressValidity(e).toPromise().then(e=>s.d.RESPONSE_SUCCESS===(null==e?void 0:e.status)&&(this.w8BenRefnoList=e.data.refno,e.data.validW8Ben))}))}resetSkipRefnoEngAddrErr(){this.skipRefnoEngAddrErr=!1}checkW8Address(e){return Object(i.a)(this,void 0,void 0,(function*(){let t={};if(this.skipRefnoEngAddrErr)return!0;if(!(yield this.checkW8BenAddressValidity(e))){let e="",n=!1;return this.w8BenRefnoList.forEach(s=>{e=s.refno,s.expiredRefnoW8&&(n=!0),s.validRefnoAddr||this.modalService.error({nzClassName:"ui-info-modal",nzTitle:this.translateService.instant("fsmone.form.w8ben.form"),nzContent:this.translateService.instant("fsmone.provide.full.english.address"),nzOkText:this.translateService.instant("ok"),nzOkType:"theme",nzOnOk:()=>Object(i.a)(this,void 0,void 0,(function*(){this.showAddressInfoModal(t,e,s.isCorpAcct)})),nzCancelText:n?null:this.translateService.instant("fsmone.w8ben.renew.later"),nzOnCancel:()=>{this.skipRefnoEngAddrErr=!0}})}),!n}}))}showAddressInfoModal(e,t,n){var a,r,o,c,l,d,p,u,h,m,S,v,f,C;return Object(i.a)(this,void 0,void 0,(function*(){let i,g=[],b=!1;const k=yield this.accountUpdateService.getAccountUpdateDetails(t).toPromise();s.d.RESPONSE_SUCCESS===k.status&&(i=k.data,e.refno=null===(a=i.iamAccount)||void 0===a?void 0:a.refno,e.homeAddress1=null===(r=i.iamAccount)||void 0===r?void 0:r.homeAddress1,e.homeAddress2=null===(o=i.iamAccount)||void 0===o?void 0:o.homeAddress2,e.homeAddressType="Y"===(null===(c=i.iamAccount)||void 0===c?void 0:c.homeAddressLocalFlag)?"Y":"N",e.homeZip=null===(l=i.iamAccount)||void 0===l?void 0:l.homeZip,e.homeCountry=null===(d=i.iamAccount)||void 0===d?void 0:d.homeCountry,e.homeState=null===(p=i.iamAccount)||void 0===p?void 0:p.homeState,e.mailAddress1=null===(u=i.iamAccount)||void 0===u?void 0:u.mailAddress1,e.mailAddress2=null===(h=i.iamAccount)||void 0===h?void 0:h.mailAddress2,e.mailAddressType="Y"===(null===(m=i.iamAccount)||void 0===m?void 0:m.mailAddressLocalFlag)?"Y":"N",e.mailZip=null===(S=i.iamAccount)||void 0===S?void 0:S.mailZip,e.mailCountry=null===(v=i.iamAccount)||void 0===v?void 0:v.mailCountry,e.mailState=null===(f=i.iamAccount)||void 0===f?void 0:f.mailState,e.addressProof=null===(C=i.iamAccount)||void 0===C?void 0:C.addressProof,b="C"===i.iamAccount.accountType);const x=yield this.accountOpeningService.getCountryList().toPromise();s.d.RESPONSE_SUCCESS===x.status&&x.data.nonUsCountryList.map(e=>({label:e[1],value:e[1]})).forEach(e=>{"Hong Kong"!=e.label&&g.push({label:e.label,value:e.value})}),this.addressInfoModal=this.modalService.create({nzClosable:!1,nzContent:T.a,nzClassName:"modal-p-0",nzWrapClassName:"vertical-center-modal modal-footer-shadow full-screen-md",nzComponentParams:{nzVisible:!0,addressModal:e,noHKCountryList:g,isCorpAcct:b,refno:t},nzOnOk:()=>{var e,i,a,r,o;let c=(null===(e=this.productInfo)||void 0===e?void 0:e.productCode)||(null===(i=this.productInfo)||void 0===i?void 0:i.stockCode)||(null===(r=null===(a=this.productInfo)||void 0===a?void 0:a.tickerInfo)||void 0===r?void 0:r.stockCode);this.router.navigate([s.p.ACCOUNT_SETTING,s.p.ACTIVATED_PRODUCTS,s.p.W_8BEN_ACTIVATION],{queryParams:{refno:t,prodCode:c,exchange:null===(o=this.productInfo)||void 0===o?void 0:o.exchange,preSelectAccountList:encodeURIComponent(JSON.stringify([{refno:t,isCorpAcct:n,selected:!0}]))}})},nzOnCancel:()=>{},nzOkText:null,nzCancelText:null}),this.addressInfoModal.afterOpen.subscribe(()=>{this.addressInfoModal.getContentComponent().successAddrUpdate.subscribe(e=>{e&&this.addressInfoModal.triggerOk()}),this.addressInfoModal.getContentComponent().closeModel.subscribe(e=>{e||(this.addressInfoModal.getContentComponent().nzVisible=!1,this.addressInfoModal.triggerCancel())})})}))}checkIsValidIdrToTradeHkex(e){return Object(i.a)(this,void 0,void 0,(function*(){let t=this.accountRestService.isValidIdrToTradeHkex(e),n=this.accountRestService.isPendingHkidrExists(e);return Object(x.a)([t,n]).toPromise().then(e=>{let t=!0;return!e[0]||"SUCCESS"!=e[0].status||!e[1]||"SUCCESS"!=e[1].status||(this.isAfterEffectiveDate=e[0].data.isAfterEffectiveDate,t=e[0].data.isValidIdr,t||e[1].data)})}))}parseValue(e){return null===e||isNaN(Number(e.toString().replace(/,/g,"")))?null:Number(e.toString().replace(/,/g,""))}getStockSnapLevel(e){return e?"HKEX"===(e=e.toUpperCase())?this.lightStreamerService.getStreamingLevelByExchange(e):this.cnExchanges.includes(e)?"DELAY":"SGX"==e?"L1":this.usExchanges.includes(e)?this.lightStreamerService.getStreamingLevelByExchange(e):void 0:"DELAY"}isEmptyValue(e){return!e||0===Number(e)}get isHkexLiveStreaming(){return"L1"==this.getStockSnapLevel("HKEX")}get isUsExchangesLiveStreaming(){return this.usExchanges.every(e=>"L1"===this.getStockSnapLevel(e))}}},OEtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return L}));var i=n("fXoL"),s=n("XNiG"),a=n("VRyK"),r=n("JX91"),o=n("1G5W"),c=n("bMUq"),l=n("mrSG"),d=n("ofXK"),p=n("FwiY");const u=["processDotTemplate"];function h(e,t){1&e&&i["\u0275\u0275element"](0,"div",9)}function m(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"span",11),i["\u0275\u0275element"](1,"i",12),i["\u0275\u0275elementEnd"]())}function S(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"span",11),i["\u0275\u0275element"](1,"i",13),i["\u0275\u0275elementEnd"]())}function v(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",11),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.index+1)}}function f(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275element"](1,"i",16),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](3);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("nzType",!e.oldAPIIcon&&e.nzIcon)("ngClass",e.oldAPIIcon&&e.nzIcon)}}function C(e,t){}function g(e,t){if(1&e&&i["\u0275\u0275template"](0,C,0,0,"ng-template",17),2&e){const e=i["\u0275\u0275nextContext"](3);i["\u0275\u0275property"]("ngTemplateOutlet",e.nzIcon)}}function b(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",11),i["\u0275\u0275template"](1,f,2,2,"ng-container",14),i["\u0275\u0275template"](2,g,1,1,"ng-template",null,15,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](3),t=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isIconString)("ngIfElse",e)}}function k(e,t){if(1&e&&(i["\u0275\u0275template"](0,m,2,0,"span",10),i["\u0275\u0275template"](1,S,2,0,"span",10),i["\u0275\u0275template"](2,v,2,1,"span",10),i["\u0275\u0275template"](3,b,4,2,"span",10)),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("ngIf","finish"===e.nzStatus&&!e.nzIcon),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","error"===e.nzStatus),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",("process"===e.nzStatus||"wait"===e.nzStatus)&&!e.nzIcon),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.nzIcon)}}function T(e,t){1&e&&i["\u0275\u0275element"](0,"span",20)}function x(e,t){}const E=function(e,t,n){return{$implicit:e,status:t,index:n}};function z(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",11),i["\u0275\u0275template"](1,T,1,0,"ng-template",null,18,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](3,x,0,0,"ng-template",19),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](2),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngTemplateOutlet",t.customProcessTemplate||e)("ngTemplateOutletContext",i["\u0275\u0275pureFunction3"](2,E,e,t.nzStatus,t.index))}}function I(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275text"](1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.nzTitle)}}function A(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275text"](1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.nzSubtitle)}}function y(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",21),i["\u0275\u0275template"](1,A,2,1,"ng-container",6),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();
1i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("nzStringTemplateOutlet",e.nzSubtitle)}}function w(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275text"](1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.nzDescription)}}const O=["*"];let M=(()=>{class e{constructor(e,t,n){this.cdr=e,this.nzDisabled=!1,this.isCustomStatus=!1,this._status="wait",this.oldAPIIcon=!0,this.isIconString=!0,this.direction="horizontal",this.index=0,this.last=!1,this.outStatus="process",this.showProcessDot=!1,this.clickable=!1,this.click$=new s.a,this._currentIndex=0,t.addClass(n.nativeElement,"ant-steps-item")}get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=!0}get nzIcon(){return this._icon}set nzIcon(e){e instanceof i.TemplateRef?this.isIconString=!1:(this.isIconString=!0,this.oldAPIIcon="string"==typeof e&&e.indexOf("anticon")>-1),this._icon=e}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait")}onClick(){this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled&&this.click$.next(this.index)}markForCheck(){this.cdr.markForCheck()}ngOnDestroy(){this.click$.complete()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](i.ElementRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["nz-step"]],viewQuery:function(e,t){var n;1&e&&i["\u0275\u0275viewQuery"](u,!0),2&e&&i["\u0275\u0275queryRefresh"](n=i["\u0275\u0275loadQuery"]())&&(t.processDotTemplate=n.first)},hostVars:16,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("ant-steps-item-wait","wait"===t.nzStatus)("ant-steps-item-process","process"===t.nzStatus)("ant-steps-item-finish","finish"===t.nzStatus)("ant-steps-item-error","error"===t.nzStatus)("ant-steps-item-active",t.currentIndex===t.index)("ant-steps-item-disabled",t.nzDisabled)("ant-steps-item-custom",!!t.nzIcon)("ant-steps-next-error","error"===t.outStatus&&t.currentIndex===t.index+1)},inputs:{nzDisabled:"nzDisabled",nzStatus:"nzStatus",nzIcon:"nzIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription"},exportAs:["nzStep"],decls:11,vars:8,consts:[[1,"ant-steps-item-container",3,"tabindex","click"],["class","ant-steps-item-tail",4,"ngIf"],[1,"ant-steps-item-icon"],[3,"ngIf"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],["class","ant-steps-item-subtitle",4,"ngIf"],[1,"ant-steps-item-description"],[1,"ant-steps-item-tail"],["class","ant-steps-icon",4,"ngIf"],[1,"ant-steps-icon"],["nz-icon","","nzType","check"],["nz-icon","","nzType","close"],[4,"ngIf","ngIfElse"],["iconTemplate",""],["nz-icon","",3,"nzType","ngClass"],[3,"ngTemplateOutlet"],["processDotTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"],[1,"ant-steps-item-subtitle"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275listener"]("click",(function(){return t.onClick()})),i["\u0275\u0275template"](1,h,1,0,"div",1),i["\u0275\u0275elementStart"](2,"div",2),i["\u0275\u0275template"](3,k,4,4,"ng-template",3),i["\u0275\u0275template"](4,z,4,6,"ng-template",3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"div",4),i["\u0275\u0275elementStart"](6,"div",5),i["\u0275\u0275template"](7,I,2,1,"ng-container",6),i["\u0275\u0275template"](8,y,2,1,"div",7),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",8),i["\u0275\u0275template"](10,w,2,1,"ng-container",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("tabindex",t.clickable&&!t.nzDisabled?0:null),i["\u0275\u0275attribute"]("role",t.clickable&&!t.nzDisabled?"button":null),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!0!==t.last),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",!t.showProcessDot),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.showProcessDot),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("nzStr
1ingTemplateOutlet",t.nzTitle),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.nzSubtitle),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("nzStringTemplateOutlet",t.nzDescription))},directives:[d.t,c.x,p.b,d.q,d.A],encapsulation:2,changeDetection:0}),Object(l.b)([Object(c.e)(),Object(l.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),e})(),P=(()=>{class e{constructor(){this.nzCurrent=0,this.nzDirection="horizontal",this.nzLabelPlacement="horizontal",this.nzType="default",this.nzSize="default",this.nzStartIndex=0,this.nzStatus="process",this.nzIndexChange=new i.EventEmitter,this.destroy$=new s.a,this.showProcessDot=!1}set nzProgressDot(e){e instanceof i.TemplateRef?(this.showProcessDot=!0,this.customProcessDotTemplate=e):this.showProcessDot=Object(c.tb)(e),this.updateChildrenSteps()}ngOnChanges(e){(e.nzStartIndex||e.nzDirection||e.nzStatus||e.nzCurrent)&&this.updateChildrenSteps(),(e.nzDirection||e.nzProgressDot||e.nzLabelPlacement||e.nzSize)&&this.setClassMap()}ngOnInit(){this.setClassMap(),this.updateChildrenSteps()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.indexChangeSubscription&&this.indexChangeSubscription.unsubscribe()}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(Object(r.a)(null),Object(o.a)(this.destroy$)).subscribe(()=>{this.updateChildrenSteps()})}updateChildrenSteps(){if(this.steps){const e=this.steps.length;this.steps.toArray().forEach((t,n)=>{Promise.resolve().then(()=>{t.outStatus=this.nzStatus,t.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(t.customProcessTemplate=this.customProcessDotTemplate),t.clickable=this.nzIndexChange.observers.length>0,t.direction=this.nzDirection,t.index=n+this.nzStartIndex,t.currentIndex=this.nzCurrent,t.last=e===n+1,t.markForCheck()})}),this.indexChangeSubscription&&this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=Object(a.a)(...this.steps.map(e=>e.click$)).subscribe(e=>this.nzIndexChange.emit(e))}}setClassMap(){this.classMap={["ant-steps-"+this.nzDirection]:!0,"ant-steps-label-horizontal":"horizontal"===this.nzDirection,"ant-steps-label-vertical":(this.showProcessDot||"vertical"===this.nzLabelPlacement)&&"horizontal"===this.nzDirection,"ant-steps-dot":this.showProcessDot,"ant-steps-small":"small"===this.nzSize,"ant-steps-navigation":"navigation"===this.nzType}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["nz-steps"]],contentQueries:function(e,t,n){var s;1&e&&i["\u0275\u0275contentQuery"](n,M,!1),2&e&&i["\u0275\u0275queryRefresh"](s=i["\u0275\u0275loadQuery"]())&&(t.steps=s)},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[i["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:O,decls:2,vars:1,consts:[[1,"ant-steps",3,"ngClass"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275projection"](1),i["\u0275\u0275elementEnd"]()),2&e&&i["\u0275\u0275property"]("ngClass",t.classMap)},directives:[d.q],encapsulation:2,changeDetection:0}),e})(),L=(()=>{class e{}return e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[d.c,p.c,c.h]]}),e})()},mKYj:function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var i=n("3Pt+"),s=n("6h7t"),a=n("DFG7"),r=n("fXoL"),o=n("dEAy"),c=n("ALT/"),l=n("sYmb"),d=n("uU98"),p=n("CCI1"),u=n("4U//"),h=n("ofXK"),m=n("ocnv"),S=n("hwgg"),v=n("95lV"),f=n("vXl8"),C=n("OzZK");const g=function(e,t){return{"fsmicon-eye-open":e,"fsmicon-eye-close":t}};function b(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",10),r["\u0275\u0275element"](1,"ui-floating-input",11),r["\u0275\u0275elementStart"](2,"span",12),r["\u0275\u0275elementStart"](3,"i",13),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onChangePasswordVisible()})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("formInfo",e.formInfo.get("password"))("form",e.form)("detection",e.formInfo.get("password").detection)("formValue",e.form.get("password").value),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction2"](5,g,e.passwordVisible,!e.passwordVisible))}}const k=function(e){return[e]};function T(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275elementStart"](2,"button",15),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().activateLater()})),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",16),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().subscribeUsPrice()})),r["\u0275\u0275text"](6),r["\u0275\u0275pipe"](7,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](7,k,e.isMobileView?"px-3":"px-4")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](4,3,"fsmone.w8ben.activate.later")),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](7,5,"fsmone.w8ben.activate.now"))}}function x(e,t){if(1&e&&r["\u0275\u0275text"](0),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275textInterpolate1"](" ",e.popupMsg," ")}}function E(e,t){if(1&e&&r["\u0275\u0275text"](0),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275textInterpolate1"](" ",e.popupMsg," ")}}let z=(()=>{class e{constructor(e,t,n,i,s,a,r){this.fb=e,this.modal=t,this.responsiveService=n,this.translateService=i,this.stockTransactionRestService=s,this.authService=a,this.stockService=r,this.isMobileView=!1,this.passwordVisible=!1,this.submitLoading=!1,this.errorMod
1alVisible=!1,this.successModalVisible=!1,this.formInfo=new Map([["password",{label:"password",cssClass:"lg round",type:"password",validation:{required:"please.enter.your.password."}}]])}ngOnInit(){this.isMobileView=this.responsiveService.isMobileView(),this.responsiveService.mobileViewEvent.subscribe(e=>this.isMobileView=e),this.form=this.initForm()}initForm(){return this.fb.group({password:[null,i.I.required]})}get password(){return this.form.get("password")}validateForm(){this.form.markAllAsTouched(),this.formInfo.get("password").detection=Object(a.i)(this.formInfo.get("password").detection)}subscribeUsPrice(){this.validateForm();let e=this.form.get("password").value;this.form.valid&&e&&(this.submitLoading=!0,this.authService.getPresessionModel().subscribe(t=>{const n=this.authService.getHashPassword(t,e);this.stockTransactionRestService.subscribeUsLivePrice({random:t.e2eeRandom,encryptedPassword:n}).toPromise().then(e=>{if(s.d.RESPONSE_SUCCESS===e.status)this.popupMsg=this.translateService.instant("fsmone.submit.success"),this.popupTitle="fsmone.success",this.popupIconType="success",this.successModalVisible=!0,this.stockService.usLivePriceActivateLaterEvent.emit(!1);else{let t=e.errorMessage?e.errorMessage:this.translateService.instant("fsmone.error");this.popupMsg=t,this.popupTitle="fsmone.submit.failure",this.popupIconType="warning",this.errorModalVisible=!0}})}))}activateLater(){this.stockTransactionRestService.usLivePriceTncAcceptLater().toPromise().then(e=>{s.d.RESPONSE_SUCCESS===e.status&&this.stockService.usLivePriceActivateLaterEvent.emit(!0),this.closeModal(!1)})}closeErrorModal(){this.errorModalVisible=!1}closeSuccessModal(){this.successModalVisible=!1,this.closeModal(!0)}onChangePasswordVisible(){this.passwordVisible=!this.passwordVisible;const e=this.formInfo.get("password");e.type="password"===e.type?"text":"password",document.getElementById("password").focus()}closeModal(e){this.modal.destroy(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](i.h),r["\u0275\u0275directiveInject"](o.d),r["\u0275\u0275directiveInject"](c.a),r["\u0275\u0275directiveInject"](l.f),r["\u0275\u0275directiveInject"](d.a),r["\u0275\u0275directiveInject"](p.a),r["\u0275\u0275directiveInject"](u.a))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["stock-us-live-price-modal"]],inputs:{selectedRefno:"selectedRefno"},decls:120,vars:219,consts:[[1,"mb-4",3,"ngClass"],[1,"mb-3","pt-4"],[1,"mb-3"],[3,"ngClass","innerHTML"],["nz-form","",3,"formGroup"],[3,"body"],["floatingFormWrapTpl",""],[4,"nzModalFooter"],[3,"isModalVisible","iconType","title","content","okText","nzMaskClosable","titleClass","contentClass","onHandleOk"],["contentTpl",""],[1,"b2c-input-v-btn"],["controlName","password",3,"formInfo","form","detection","formValue"],[1,"btn-area","flex","items-center"],[1,"text-md","pointer",3,"ngClass","click"],[1,"py-2",3,"ngClass"],["nz-button","","nzType","default",1,"btn-base","btn-outline-primary","mr-2",3,"click"],["nz-button","","nzType","theme",1,"btn-base",3,"click"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"h3",1),r["\u0275\u0275text"](2),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",0),r["\u0275\u0275elementStart"](5,"h4"),r["\u0275\u0275text"](6),r["\u0275\u0275pipe"](7,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"h5",2),r["\u0275\u0275text"](9),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"p"),r["\u0275\u0275element"](12,"span",3),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"p"),r["\u0275\u0275element"](15,"span",3),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"p"),r["\u0275\u0275element"](18,"span",3),r["\u0275\u0275pipe"](19,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](20,"p"),r["\u0275\u0275element"](21,"span",3),r["\u0275\u0275pipe"](22,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"p"),r["\u0275\u0275element"](24,"span",3),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](26,"ol"),r["\u0275\u0275elementStart"](27,"li",2),r["\u0275\u0275element"](28,"span",3),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](30,"li",2),r["\u0275\u0275element"](31,"span",3),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"li",2),r["\u0275\u0275element"](34,"span",3),r["\u0275\u0275pipe"](35,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"li",2),r["\u0275\u0275element"](37,"span",3),r["\u0275\u0275pipe"](38,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"p"),r["\u0275\u0275element"](40,"span",3),r["\u0275\u0275pipe"](41,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](42,"p"),r["\u0275\u0275element"](43,"span",3),r["\u0275\u0275pipe"](44,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"ul"),r["\u0275\u0275elementStart"](46,"li"),r["\u0275\u0275element"](47,"span",3),r["\u0275\u0275pipe"](48,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](49,"li"),r["\u0275\u0275element"](50,"span",3),r["\u0275\u0275pipe"](51,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](52,"li"),r["\u0275\u0275element"](53,"span",3),r["\u0275\u0275pipe"](54,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](55,"li"),r["\u0275\u0275element"](56,"span",3),r["\u0275\u0275pipe"](57,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](58,"li"),r["\u0275\u0275element"](59,"span",3),r["\u0275\u0275pipe"](60,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](61,"li"),r["\u0275\u0275element"](62,"span",3),r["\u0275\u0275pipe"](63,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](64,"li"),r["\u0275\u0275element"](65,"span",3),r["\u0275\u0275pipe"](66,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](67,"li"),r["\u0275\u0275element"](68,"span",3),r["\u0275\u0275pipe"](69,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](70,"li"),r["\u0275\u0275element"](71,"span",3),r["\u0275\u0275pipe"](72,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](73,"p"),r["\u0275\u0275element"](74,"span",3),r["\u0275\u0275pipe"](75,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](76,"ul"),r["\u0275\u0275elementStart"](77,"li"),r["\u0275\u0275element"](78,"span",3),r["\u0275\u0275pipe"](79,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](80,"li"),r["\u0275\u0275element"](81,"span",3),r["\u0275\u0275pipe"](82,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](83,"p"),r["\u0275\u0275element"](84,"span",3),r["\u0275\u0275pipe"](85,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](86,"ul"),r["\u0275\u0275elementStart"](87,"li"),r["\u0275\u0275element"](88,"span",3),r["\u0275\u0275pipe"](89,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](90,"li"),r["\u0275\u0275element"](91,"span",3),r["\u0275\u0275pipe"](92,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](93,"p"),r["\u0275\u0275element"](94,"span",3),r["\u0275\u0275pipe"](95,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](96,"ul"),r["\u0275\u0275elementStart"](97,"li"),r["\u0275\u0275element"](98,"span",3),r["\u0275\u0275pipe"](99,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](100,"li"),r["\u0275\u0275element"](101,"span",3),r["\u0275\u0275pipe"](102,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](103,"li"),r["\u0275\u0275element"](104,"span",3),r["\u0275\u0275pipe"](105,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](106,"p"),r["\u0275\u0275element"](107,"span",3),r["\u0275\u0275pipe"](108,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](109,"form",4),r["\u0275\u0275elementStart"](110,"ui-floating-form-wrap",5),r["\u0275\u0275template"](111,b,4,8,"ng-template",null,6,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](113,T,8,9,"div",7),r["\u0275\u0275elementStart"](114,"ui-alert-modal",8),r["\u0275\u0275listener"]("onHandleOk",(function(){return t.closeErrorModal()})),r["\u0275\u0275template"](115,x,1,1,"ng-template",null,9,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](117,"ui-alert-modal",8),r["\u0275\u0275listener"]("onHandleOk",(function(){return t.closeSuccessModal()})),r["\u0275\u0275template"](118,E,1,1,"ng-template",null,9,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](112),n=r["\u0275\u0275reference"](116);r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](153,k,t.isMobileView?"px-3":"px-4")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](3,85,"fsmone.market.data.agreement")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](155,
1k,t.isMobileView?"px-3":"px-4")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](7,87,"fsmone.cboe.data.services")),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](10,89,"fsmone.ifast.and.its.affiliates")),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](157,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](13,91,"fsmone.cboe.data.services.tnc.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](159,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](16,93,"fsmone.cboe.data.services.tnc.definition"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](161,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](19,95,"fsmone.cboe.data.services.tnc.definition.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](163,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](22,97,"fsmone.cboe.data.services.tnc.definition.2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](165,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](25,99,"fsmone.cboe.data.services.tnc.definition.3"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](167,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](29,101,"fsmone.cboe.data.services.tnc.definition.3.a"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](169,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](32,103,"fsmone.cboe.data.services.tnc.definition.3.b"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](171,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](35,105,"fsmone.cboe.data.services.tnc.definition.3.c"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](173,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](38,107,"fsmone.cboe.data.services.tnc.definition.3.d"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](175,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](41,109,"fsmone.cboe.data.services.tnc.definition.4"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](177,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](44,111,"fsmone.cboe.data.services.tnc.cond.market"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](179,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](48,113,"fsmone.cboe.data.services.tnc.cond.market.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](181,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](51,115,"fsmone.cboe.data.services.tnc.cond.market.2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](183,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](54,117,"fsmone.cboe.data.services.tnc.cond.market.3"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](185,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](57,119,"fsmone.cboe.data.services.tnc.cond.market.4"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](187,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](60,121,"fsmone.cboe.data.services.tnc.cond.market.5"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](189,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](63,123,"fsmone.cboe.data.services.tnc.cond.market.6"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](191,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](66,125,"fsmone.cboe.data.services.tnc.cond.market.7"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](193,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](69,127,"fsmone.cboe.data.services.tnc.cond.market.8"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](195,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](72,129,"fsmone.cboe.data.services.tnc.cond.market.9"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](197,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](75,131,"fsmone.cboe.data.services.tnc.status"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](199,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](79,133,"fsmone.cboe.data.services.tnc.status.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](201,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](82,135,"fsmone.cboe.data.services.tnc.status.2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](203,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](85,137,"fsmone.cboe.data.services.tnc.financial.terms"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](205,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](89,139,"fsmone.cboe.data.services.tnc.financial.terms.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](207,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](92,141,"fsmone.cboe.data.services.tnc.financial.terms.2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](209,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](95,143,"fsmone.cboe.data.services.tnc.termination"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](211,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](99,145,"fsmone.cboe.data.services.tnc.termination.1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](213,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](102,147,"fsmone.cboe.data.services.tnc.termination.2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](215,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](105,149,"fsmone.cboe.data.services.tnc.termination.3"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](217,k,t.isMobileView?"text-sm":"text-default"))("innerHTML",r["\u0275\u0275pipeBind1"](108,151,"fsmone.cboe.data.services.tnc.confirmation"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("formGroup",t.form),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("body",e),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("isModalVisible",t.errorMod
1alVisible)("iconType",t.popupIconType)("title",t.popupTitle)("content",n)("okText","ok")("nzMaskClosable",!1)("titleClass","text-center")("contentClass","text-center"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("isModalVisible",t.successModalVisible)("iconType",t.popupIconType)("title",t.popupTitle)("content",n)("okText","ok")("nzMaskClosable",!1)("titleClass","text-center")("contentClass","text-center")}},directives:[h.q,i.K,i.v,m.b,i.m,S.a,o.b,v.a,f.a,C.a],pipes:[l.e],encapsulation:2}),e})()}}]); 2//# sourceMappingURL=14.a77ad613a7d1b0fa1dbc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.