(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{Mrkb:function(n,t,l){"use strict";l.d(t,"a",(function(){return a}));var e=l("8Y7J"),i=l("0JMs");class a{constructor(){this.isText=!0,this.placeholder="",this.maxlength="1000",this.vietnamese=!1,this.trim=!0,this.uppercase=!1,this.paddingRight="12px",this.isAmount=!1,this.isAccount=!1,this.exclude=null,this.isReadonly=!1,this.textChangedEvent=new e.m,this.textInputEvent=new e.m,this.textBlurEvent=new e.m}ngOnInit(){}focus(){this.txtMain.nativeElement.focus()}getValue(){return this.txtMain.nativeElement.value}setValue(n){this.txtMain.nativeElement.value=n}haveValue(){return""!==this.getValue()}textChanged(){let n=this.txtMain.nativeElement.value;this.trim&&(n=n.trim()),this.txtMain.nativeElement.value=n,this.textChangedEvent.emit()}textInput(){let n=this.txtMain.nativeElement.value;this.exclude&&(n=n.replace(this.exclude,"")),this.uppercase&&(n=n.toUpperCase()),this.vietnamese||(n=Object(i.p)(n)),this.uppercase&&(n=n.toUpperCase()),this.isAmount&&(n=this.filterAndFormatAmount(n)),this.isAccount&&(n=this.formatAccount(n)),this.txtMain.nativeElement.value=n,this.textInputEvent.emit()}textBlur(){this.textBlurEvent.emit()}filterAndFormatAmount(n){return n?(n=(n=n.replace(/\D/g,"")).replace(/^0+/,""),n=Object(i.e)(n)):n}formatAccount(n){return n?n=(n=n.replace(/\s/g,"")).match(/.{1,4}/g).join(" "):n}}},XYeh:function(n,t,l){"use strict";l.r(t);var e=l("8Y7J");class i{}var a=l("pMnS"),u=l("t68o"),c=l("zbXB"),o=l("SVse"),r=l("TSSN"),s=l("TETI"),g=l("2bj0"),p=l("iInd"),b=l("Xwc5");class d{constructor(n,t,l,e){this.savingService=n,this.commonService=t,this.router=l,this.langService=e,this.isCheckForeigner=!1,this.lst_saving_package=[],this.lang=""}ngOnInit(){this.commonService.showBreadcrumb(!0),this.commonService.setPageTitle("menu.home.saving"),this.lang=this.langService.getLang(),this.checkForeigner(),this.getListSavingPackage(),this.getInterestRateSummary()}checkForeigner(){this.commonService.callApi({method:"get",url:b.a.CHECK_FOREIGN,success:n=>{n&&(this.isCheckForeigner=n.isForeigner)}})}getListSavingPackage(){this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_TERM_DEPOSITS,success:n=>{n&&(this.lst_saving_package=n.termDepositList)}})}getInterestRateSummary(){this.commonService.callApi({method:"get",progress:!1,url:b.a.SAVING_INTEREST_RATES_SUMMARY,success:n=>{n&&(this.interest_rate_summary=n.interestRatesSummary.filter(n=>"SAVY_NORMAL"!==n.group))}})}viewDetailPackage(n){this.router.navigate(["/main/saving/term-deposit-detail"],{queryParams:{accountNumber:n.accountNumber}})}clickCreate(n){"TK_DIEN_TU"===n||"TK_TAI_LOC"===n?this.router.navigate(["/main/saving/create-package"],{state:{saving_package_type:n}}):this.router.navigate(["/main/saving/create-package"])}}var m=l("2Vo4"),h=l("HDdC"),f=l("0JMs"),_=l("Qv2o"),C=l("oUVn");let v=(()=>{class n{constructor(n){this.commonService=n,this.termDeposits$=new m.a([]),this.interestRate$=new m.a([]),this.interestRateLucky$=new m.a([]),this.bankAccounts$=new m.a([]),this.bankNapas$=new m.a([]),this.foreignerConfig$=new m.a(null),this.overdrafConfig$=new m.a(null),this.currentResumeValue={},this.savingConfig$=new m.a(null),this.settlementConfig={settlementFee:"0",currency:"VND",dayWithinSettlement:"3",rateWithdrawalPremature:""},this.depositType=_.b.ENTERNAL}getSavingConfiguration(){this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_CONFIGURATION,success:n=>{console.log(n),this.savingConfig$.next(n.configuration)},error:n=>{console.log("getSavingConfiguration err=",n)}})}fetchTermDeposits(){this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_TERM_DEPOSITS,success:n=>{this.termDeposits$.next(n)}})}getInterestRate(n){this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_INTEREST_RATES+"?typeOfSavings="+n,success:t=>{n===_.b.HYDRO_TERM_DEPOSIT?this.interestRate$.next(t.interestRates):n===_.b.HYDRO_TERM_DEPOSIT_LUCKY&&this.interestRateLucky$.next(t.interestRates)}})}getInterestAmount(n){return new h.a(t=>{this.commonService.callApi({method:"get",url:b.a.SAVING_INTEREST_AMOUNT+n,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}getBankAccounts(n){this.commonService.callApi({method:"get",progress:!0,url:b.a.GET_LIST_ACCOUNT+n,success:n=>{console.log("getBankAccounts",n),this.bankAccounts$.next(n)},error:n=>{console.log(n)}})}getBankNapas(){this.commonService.callApi({method:"get",url:b.a.GET_LIST_BANK_NAPAS,success:n=>{n.banksnapas=n.banksnapas.filter(n=>n.napasSupported),this.bankNapas$.next(n)}})}getNapasUrl(n){return new h.a(t=>{this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_GEN_NAPAS_URL+n,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}verifyTD(n){return sessionStorage.removeItem("fund_topup_fee_amount"),new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_VERIFY_TD,success:n=>{this.tdVerify=n,t.next()},error:n=>{t.error(n)}})})}depositVerify(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_DEPOSIT_VERIFY,success:n=>{this.depositType=_.b.INTERNAL,t.next(n)},error:n=>{t.error(n)}})})}termDepositConfirm(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_TD_CONFIRM,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}getTermDepositDetail(n){return new h.a(t=>{this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_ENQUIRIES_DETAILS+n,success:n=>{n.accInfo.settlementAcctNo||(n.accInfo.settlementAcctNo=n.accInfo.bookAccountNumber),t.next(n)},error:n=>{t.error(n)}})})}getInterestNonTerm(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_INTEREST_RATES_NON_TERM,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}verifyWithdrawOriginal(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_WITHDRAW_ORIGIAL_VERIFY,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}confirmWithdrawOriginal(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_WITHDRAW_ORIGIAL_CONFIRM,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}handleError(n){let t=!1;return(Object(f.n)(Object(f.d)(n,"error.errorMessage.errorCode"))||Object(f.m)(Object(f.d)(n,"error.errorMessage.errorCode")))&&(t=!0),t}updateRoller(n){return new h.a(t=>{this.commonService.callApi({method:"post",progress:!0,data:n,url:b.a.SAVING_UPDATE_ROLLER_VERIFY,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}verifyUrlReturnNapas(n){return new h.a(t=>{this.commonService.callApi({method:"post",url:b.a.COMPLETE_TRANSACTION_NAPAS,data:n,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}confirmAutorollSetting(n){return new h.a(t=>{this.commonService.callApi({method:"post",url:b.a.SAVING_UPDATE_ROLLER_CONFIRM,data:n,success:n=>{t.next(n)},error:n=>{t.error(n)}})})}checkForeigner(){this.commonService.callApi({method:"get",url:b.a.CHECK_FOREIGN,success:n=>{this.foreignerConfig$.next(n)}})}checkOverdraf(n){this.commonService.callApi({method:"get",url:`${b.a.CHECK_OVERDRAFT}?savingsAccountNumber=${n}`,success:n=>{this.overdrafConfig$.next(n)}})}}return n.ngInjectableDef=e.Rb({factory:function(){return new n(e.Sb(C.a))},token:n,providedIn:"root"}),n})();var M=l("WmRU"),O=e.pb({encapsulation:0,styles:[[".saving-home-normal[_ngcontent-%COMP%] .saving-action-inquiry[_ngcontent-%COMP%]{width:400px;min-height:77px;background-color:#fff;border-radius:5px;margin:auto;padding:16px;display:flex}.saving-home-normal[_ngcontent-%COMP%] .saving-action-inquiry[_ngcontent-%COMP%] .icon-inquiry[_ngcontent-%COMP%]{width:45px;height:45px;border-radius:100px;background-color:#ad8ad8;padding:10px;margin-right:8px}.saving-home-normal[_ngcontent-%COMP%] .saving-action-inquiry[_ngcontent-%COMP%] .icon-inquiry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.saving-home-normal[_ngcontent-%COMP%] .saving-action-inquiry[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px}.saving-home-normal[_ngcontent-%COMP%] .saving-action-inquiry[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .action-link[_ngcontent-%COMP%]{color:#ff9800;cursor:pointer;outline:0}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%]{width:400px;margin:16px auto auto}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .image-cover[_ngcontent-%COMP%]{height:88px;text-align:center;padding:24px 48px;color:#fff;background-image:url(saving-home-cover.f494efcf2d79e0f5dbbf.png)}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:center;color:#ad8ad8;font-weight:400;font-size:12px;margin-top:16px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;padding:16px 18px;display:flex;margin-top:8px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .icon-package[_ngcontent-%COMP%]{margin-right:16px;align-self:center}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .icon-package[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:20px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-period[_ngcontent-%COMP%]{font-size:12px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-interest-rate[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:12px}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-interest-rate[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{color:#ff9800;cursor:pointer}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .txt-color-2[_ngcontent-%COMP%]{color:#ad8ad8}.saving-home-normal[_ngcontent-%COMP%] .package-empty[_ngcontent-%COMP%] .rule-saving-foreigner[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:12px;font-weight:400;color:#ad8ad8;background-color:#fff;height:315px;padding-top:60px;border-radius:5px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%]{width:400px;margin:16px auto auto}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .image-cover[_ngcontent-%COMP%]{height:124px;text-align:center;padding:24px 48px;color:#fff;background-image:url(saving-home-cover-2.4ee69270ca6f9bfa026c.png)}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .image-cover[_ngcontent-%COMP%] .create-package[_ngcontent-%COMP%]{outline:0;margin:16px auto auto;width:166px;height:40px;padding:10px;border-radius:5px;background-color:#fff;color:#ff9800;text-align:center;cursor:pointer}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:center;color:#ad8ad8;font-weight:400;font-size:12px;margin-top:16px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;padding:16px 18px;display:flex;margin-top:8px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .icon-saving[_ngcontent-%COMP%]{margin-right:16px;align-self:center}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .icon-saving[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:20px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-amount[_ngcontent-%COMP%], .saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-finalization[_ngcontent-%COMP%], .saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-number[_ngcontent-%COMP%]{font-size:12px}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-finalization[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.saving-home-normal[_ngcontent-%COMP%] .list-saving[_ngcontent-%COMP%] .card-saving-item[_ngcontent-%COMP%] .saving-info[_ngcontent-%COMP%] .saving-finalization[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{color:#ff9800;cursor:pointer}"]],data:{}});function P(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_piggy_2.svg"]],null,null,null,null,null))],null,null)}function x(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_gold_2.svg"]],null,null,null,null,null))],null,null)}function w(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,27,"div",[["class","card-select-package"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","icon-package"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,P)),e.qb(3,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,x)),e.qb(5,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(6,0,null,null,21,"div",[["class","package-info"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,3,"div",[["class","package-name"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(11,0,null,null,5,"div",[["class","package-period"]],null,null,null,null,null)),(n()(),e.rb(12,0,null,null,2,"span",[["class","txt-color-2"]],null,null,null,null,null)),(n()(),e.Lb(13,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(15,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(16,null,["",""])),(n()(),e.rb(17,0,null,null,10,"div",[["class","package-interest-rate"]],null,null,null,null,null)),(n()(),e.rb(18,0,null,null,5,"div",[["class","interest-rate"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,2,"span",[["class","txt-color-2"]],null,null,null,null,null)),(n()(),e.Lb(20,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(22,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(23,null,[""," %"])),(n()(),e.rb(24,0,null,null,3,"div",[["class","action"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickCreate("HYDROBANK"===n.context.$implicit.group?"TK_DIEN_TU":"TK_TAI_LOC")&&e),e}),null,null)),(n()(),e.Lb(25,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(27,0,null,null,0,"i",[["class","fas fa-chevron-right ml-2"]],null,null,null,null,null))],(function(n,t){n(t,3,0,"HYDROBANK"===t.context.$implicit.group),n(t,5,0,"EBANK_TAI_LOC"===t.context.$implicit.group)}),(function(n,t){var l=t.component;n(t,8,0,e.Mb(t,8,0,"HYDROBANK"===t.context.$implicit.group?e.Db(t,9).transform("saving.common.saving_package_term"):e.Db(t,10).transform("saving.common.saving_package_fortune"))),n(t,13,0,e.Mb(t,13,0,e.Db(t,14).transform("txt_saving_package_term"))),n(t,16,0,"vi"===l.lang?t.context.$implicit.tenorDescVn:t.context.$implicit.tenorDescEn),n(t,20,0,e.Mb(t,20,0,e.Db(t,21).transform("txt_highest_interest_rate_saving"))),n(t,23,0,t.context.$implicit.maxRate),n(t,25,0,e.Mb(t,25,0,e.Db(t,26).transform("general.btn_choose")))}))}function y(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(2,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,w)),e.qb(5,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){n(t,5,0,t.component.interest_rate_summary)}),(function(n,t){n(t,2,0,e.Mb(t,2,0,e.Db(t,3).transform("txt_select_saving_type_to_start")))}))}function k(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"div",[["class","rule-saving-foreigner mt-2 text-center"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"img",[["alt",""],["src","assets/icons/ic_pig_style_3.svg"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[["class","mt-2"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,2,"span",[["class","mt-2"]],null,null,null,null,null)),(n()(),e.Lb(6,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("saving.add_term.foreigner_text_1"))),n(t,6,0,e.Mb(t,6,0,e.Db(t,7).transform("saving.add_term.foreigner_text_2")))}))}function S(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,8,"div",[["class","package-empty"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","image-cover"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,y)),e.qb(6,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,k)),e.qb(8,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,6,0,!l.isCheckForeigner),n(t,8,0,l.isCheckForeigner)}),(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("txt_slogan_saving_1")))}))}function D(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"div",[["class","create-package"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickCreate()&&e),e}),null,null)),(n()(),e.rb(1,0,null,null,0,"i",[["class","fas fa-plus mr-2"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("txt_create_saving_package")))}))}function N(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_piggy_2.svg"]],null,null,null,null,null))],null,null)}function I(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_gold_2.svg"]],null,null,null,null,null))],null,null)}function A(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,24,"div",[["class","card-saving-item"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","icon-saving"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,N)),e.qb(3,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,I)),e.qb(5,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(6,0,null,null,18,"div",[["class","saving-info"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,1,"div",[["class","saving-name"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),(n()(),e.rb(9,0,null,null,2,"div",[["class","saving-number"]],null,null,null,null,null)),(n()(),e.Lb(10,null,["",""])),e.Hb(11,1),(n()(),e.rb(12,0,null,null,3,"div",[["class","saving-amount"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,2,"b",[],null,null,null,null,null)),(n()(),e.Lb(14,null,[""," ",""])),e.Hb(15,2),(n()(),e.rb(16,0,null,null,8,"div",[["class","saving-finalization"]],null,null,null,null,null)),(n()(),e.rb(17,0,null,null,3,"div",[["class","finalization-date"]],null,null,null,null,null)),(n()(),e.Lb(18,null,[" "," "," "])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(20,2),(n()(),e.rb(21,0,null,null,3,"div",[["class","action"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.viewDetailPackage(n.context.$implicit)&&e),e}),null,null)),(n()(),e.Lb(22,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(24,0,null,null,0,"i",[["class","fas fa-chevron-right ml-2"]],null,null,null,null,null))],(function(n,t){n(t,3,0,t.context.$implicit.normalSavingsTermDeposit),n(t,5,0,!t.context.$implicit.normalSavingsTermDeposit)}),(function(n,t){n(t,8,0,t.context.$implicit.name);var l=e.Mb(t,10,0,n(t,11,0,e.Db(t.parent.parent,0),t.context.$implicit.accountNumber));n(t,10,0,l);var i=e.Mb(t,14,0,n(t,15,0,e.Db(t.parent.parent,1),t.context.$implicit.availableAmount,t.context.$implicit.currency));n(t,14,0,i,t.context.$implicit.currency);var a=e.Mb(t,18,0,e.Db(t,19).transform("inquiry.saving_detail.finalization")),u=e.Mb(t,18,1,n(t,20,0,e.Db(t.parent.parent,2),t.context.$implicit.dueDate,"dd/MM/yyyy"));n(t,18,0,a,u),n(t,22,0,e.Mb(t,22,0,e.Db(t,23).transform("inquiry_view_detail_vat")))}))}function T(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,11,"div",[["class","list-saving"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,5,"div",[["class","image-cover"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,D)),e.qb(6,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(7,0,null,null,2,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(8,null,[""," (",")"])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,A)),e.qb(11,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){var l=t.component;n(t,6,0,!l.isCheckForeigner),n(t,11,0,l.lst_saving_package)}),(function(n,t){var l=t.component;n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("txt_slogan_saving_2"))),n(t,8,0,e.Mb(t,8,0,e.Db(t,9).transform("txt_current_saving_package")),l.lst_saving_package.length)}))}function L(n){return e.Nb(0,[e.Fb(0,s.a,[]),e.Fb(0,g.a,[]),e.Fb(0,o.e,[e.s]),(n()(),e.rb(3,0,null,null,17,"div",[["class","saving-home"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,16,"div",[["class","saving-home-normal"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,11,"div",[["class","saving-action-inquiry"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,1,"div",[["class","icon-inquiry"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,0,"img",[["src","./assets/images/menu/inquiry-active.svg"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,8,"div",[["class","content"]],null,null,null,null,null)),(n()(),e.rb(9,0,null,null,1,"span",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(-1,null,["Tra c\u1ee9u s\u1ed5 ti\u1ebft ki\u1ec7m t\u1ea1i Qu\u1ea7y, LiveBank, Savy?"])),(n()(),e.rb(11,0,null,null,5,"div",[["class","action-link"],["routerLink","/main/inquiry/saving"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,12).onClick()&&i),i}),null,null)),e.qb(12,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),(n()(),e.rb(13,0,null,null,2,"span",[["class","mr-2"]],null,null,null,null,null)),(n()(),e.Lb(14,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(16,0,null,null,0,"i",[["class","fas fa-chevron-right"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,S)),e.qb(18,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,T)),e.qb(20,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,12,0,"/main/inquiry/saving"),n(t,18,0,l.interest_rate_summary&&0===l.lst_saving_package.length),n(t,20,0,l.lst_saving_package.length>0)}),(function(n,t){n(t,14,0,e.Mb(t,14,0,e.Db(t,15).transform("fund_topup.click_here")))}))}function F(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-saving-home",[],null,null,null,L,O)),e.qb(1,114688,null,0,d,[v,C.a,p.m,M.a],null,null)],(function(n,t){n(t,1,0)}),null)}var E=e.nb("app-saving-home",d,F,{},{},[]),q=l("W0uk"),B=l("idmU"),j=l("BW0S"),R=l("oJK4"),V=l("/nuz"),K=l("4Rf3"),$=l("Ou8G"),U=l("B7dy");class z{constructor(n,t,l,e,i,a){this.savingService=n,this.translateService=t,this.router=l,this.commonService=e,this.langService=i,this.activatedRoute=a,this.savingStatus=_.a,this.curStatus$=new m.a(null),this.isShowDialog=!1,this.customerAccount=""}ngOnInit(){this.subscribeCurStatus(),this.accountNumber=this.activatedRoute.snapshot.queryParams.accountNumber,this.savingService.getTermDepositDetail(this.accountNumber).subscribe(n=>{this.tdDetail=n,this.curStatus$.next(_.a.SavingDetail),this.commonService.callApi({method:"get",url:`${b.a.CHECK_OVERDRAFT}?savingsAccountNumber=${this.accountNumber}`,success:n=>{n&&(this.isOverdraft=n.isOverdraft,this.customerAccount=n.overdraftAccountNumber,this.isOverdraft&&this.tdDetail&&this.commonService.callApi({method:"get",progress:!0,url:`${b.a.INTEREST_AMOUNT_OD}?accountOverdraft=${this.customerAccount}&branchCode=${this.tdDetail.accInfo.branchCode}`,success:n=>{this.interestAmountOdDetail=n}}))}})},n=>{console.log("getTermDepositDetail =",n)}),this.savingService.foreignerConfig$.subscribe(n=>{n&&(this.isForeginer=n.isForeigner)}),this.savingService.overdrafConfig$.subscribe(n=>{n&&(this.isOverdraft=n.isOverdraft,this.customerAccount=n.overdraftAccountNumber,this.isOverdraft&&this.tdDetail&&this.commonService.callApi({method:"get",progress:!0,url:`${b.a.INTEREST_AMOUNT_OD}?accountOverdraft=${this.customerAccount}&branchCode=${this.tdDetail.accInfo.branchCode}`,success:n=>{this.interestAmountOdDetail=n}}))}),this.currentLang=this.langService.getLang()}ngOnDestroy(){}cardSavingEmit(n){const t=n.accInfo;t.settlementType=Object(U.a)(n.accInfo.settlementType),this.router.navigate(["/main/saving/autoroll-setting"],{state:{savingDetail:t}})}clickHeaderBtn(){const n={accountNumber:this.tdDetail.accInfo.acctNo,branchCode:this.tdDetail.accInfo.branchCode,effectiveDate:this.tdDetail.accInfo.startDate};if(this.savingService.settlementConfig.rateWithdrawalPremature)return this.contentDialog=this.translateService.instant("saving.settlement_content",{rate:this.savingService.settlementConfig.rateWithdrawalPremature}),this.isShowDialog=!0,"";this.savingService.getInterestNonTerm(n).subscribe(n=>{this.savingService.settlementConfig.rateWithdrawalPremature=n.rate,this.contentDialog=this.translateService.instant("saving.settlement_content",{rate:n.rate}),this.isShowDialog=!0},n=>{console.log(n)})}subscribeCurStatus(){this.curStatus$.subscribe(n=>{switch(n){case this.savingStatus.SavingDetail:this.commonService.showBreadcrumb(!0),this.commonService.setPageTitle("vi"===this.currentLang?this.tdDetail.accInfo.groupNameVi:this.tdDetail.accInfo.groupNameEn);break;default:this.commonService.setPageTitle("")}})}moveWithdrawalPremature(){this.router.navigate(["/main/saving/early-settlement"],{state:{savingDetail:this.tdDetail.accInfo,isOverdraft:this.isOverdraft,customerAccount:this.customerAccount,interestAmountOdDetail:this.interestAmountOdDetail}})}}var H=e.pb({encapsulation:0,styles:[[".margin-otp[_ngcontent-%COMP%]{margin-top:64px;display:flex;justify-content:center}.input-style-1[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;border-radius:5px;padding:0 16px;border:1px solid #e2d8ee;background-color:#fcfcfc}.input-style-1[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::placeholder{font-weight:400}.input-style-2[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;padding:0 16px;background-color:#fcfcfc}.style-btn-1[_ngcontent-%COMP%]{width:344px}.title-style-1[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center}.title-style-2[_ngcontent-%COMP%]{line-height:24px;font-size:16px;text-align:center}.wrap-title-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.wrap-title-style[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:100px;height:1px;background-color:#e6e9ee;border:none;display:flex;flex:1}.wrap-title-style[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ad8ad8;margin:0 10px} .select-container{margin:0 auto} .select-container .select-container__select-option{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content} .select-container .select-container__select-option .account-detail{height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.wrap-action-failed[_ngcontent-%COMP%]{margin-top:40px}.wrap-action-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%]{display:flex;text-align:center;flex-direction:column;font-size:14px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%]{width:420px;justify-content:space-between;display:flex}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:200px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{color:#42236a}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%]{width:300px;margin:0 auto;color:#ad8ad8}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span{color:#42236a}.saving-wrap-card[_ngcontent-%COMP%]{border-top:1px solid #e6e9ee;display:flex}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%]{margin:16px 0;display:flex;flex:1;flex-direction:column}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:#ad8ad8;line-height:24px;margin-bottom:5px}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{font-weight:500;line-height:24px;word-break:break-word;padding-right:10px}.wrap-btn-saving[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{min-width:190px!important;max-width:288px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:24px}.btn-success[_ngcontent-%COMP%]{max-width:344px;width:100%!important;height:48px;border-radius:5px;border:none;font-size:14px;font-weight:500;margin:24px auto 0;max-width:344px}@media only screen and (min-width:1440px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:57px}}@media only screen and (min-width:1130px) and (max-width:1439px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:65px}}@media only screen and (min-width:576px) and (max-width:1129px){.wrap-other-btn[_ngcontent-%COMP%]{right:-23px}.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:121px}}@media only screen and (max-width:575px){.wrap-other-btn[_ngcontent-%COMP%]{left:0;top:-25px}}@media screen and (max-width:575px){.wrap-btn-saving[_ngcontent-%COMP%]{justify-content:center}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:0!important;order:2;margin-top:16px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{width:100%}.wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{order:1}}@media screen and (min-width:576px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;display:flex;justify-content:center;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{margin-right:24px}}@media screen and (max-width:575px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;max-width:100%!important;display:flex;flex-direction:column;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{order:2;margin-top:16px}.btn-saving[_ngcontent-%COMP%] .btn-positive[_ngcontent-%COMP%]{order:1}.style-btn-1[_ngcontent-%COMP%]{width:100%!important}app-modal[_ngcontent-%COMP%] .wrap-btn-saving .btn-again, app-modal[_ngcontent-%COMP%] .wrap-btn-saving .btn-home{max-width:100%!important}.detail-saving[_ngcontent-%COMP%] app-progress-card[_ngcontent-%COMP%] .show-header-button.mobile{padding-top:48px}.detail-saving[_ngcontent-%COMP%] app-progress-card[_ngcontent-%COMP%] .show-header-button.mobile app-header-button .button-right-header{position:fixed;top:150px;left:16px;margin-left:0}.detail-saving[_ngcontent-%COMP%] app-progress-card[_ngcontent-%COMP%] .show-header-button.mobile app-header-button .button-right-header .content{position:unset}.detail-saving[_ngcontent-%COMP%] app-progress-card[_ngcontent-%COMP%] .show-header-button.mobile .content-detail-top{margin-top:10px}}.detail-saving[_ngcontent-%COMP%]{position:relative}.detail-saving[_ngcontent-%COMP%] .btn-edit[_ngcontent-%COMP%]{position:absolute;top:-50px;z-index:9999;right:0;color:#ff9800;cursor:pointer}.modal-inner[_ngcontent-%COMP%]{width:100%;text-align:center;display:flex;flex-direction:column}.modal-inner[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{margin-bottom:16px;font-size:20px;font-weight:700}.modal-inner[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{font-size:16px;color:#ad8ad8;text-align:center}@media only screen and (min-width:576px) and (max-width:767px){.detail-saving[_ngcontent-%COMP%] .button-right-header{top:-45px}}"]],data:{}});function Y(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,6,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,5,"div",[["class","detail-saving"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,4,"div",[],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,1,"app-progress-card",[],null,[[null,"headerBtn"]],(function(n,t,l){var e=!0;return"headerBtn"===t&&(e=!1!==n.component.clickHeaderBtn()&&e),e}),q.b,q.a)),e.qb(4,114688,null,0,B.a,[C.a],{savingDetail:[0,"savingDetail"],isForeginer:[1,"isForeginer"]},{headerBtn:"headerBtn"}),(n()(),e.rb(5,0,null,null,1,"app-card-saving",[],null,[[null,"cardSavingEmit"]],(function(n,t,l){var e=!0;return"cardSavingEmit"===t&&(e=!1!==n.component.cardSavingEmit(l)&&e),e}),j.b,j.a)),e.qb(6,114688,null,0,R.a,[M.a,p.m],{savingDetail:[0,"savingDetail"]},{cardSavingEmit:"cardSavingEmit"})],(function(n,t){var l=t.component;n(t,4,0,l.tdDetail,l.isForeginer),n(t,6,0,l.tdDetail)}),null)}function G(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"div",[],null,null,null,null,null))],null,null)}function W(n){return e.Nb(0,[e.Fb(0,V.a,[]),(n()(),e.rb(1,0,null,null,5,"div",[],null,null,null,null,null)),e.qb(2,16384,null,0,o.r,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),e.gb(16777216,null,null,1,null,Y)),e.qb(4,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,G)),e.qb(6,16384,null,0,o.t,[e.N,e.K,o.r],null,null),(n()(),e.rb(7,0,null,null,19,"app-modal",[],null,[[null,"hideModal"],[null,"showChange"]],(function(n,t,l){var e=!0,i=n.component;return"hideModal"===t&&(e=0!=(i.isShowDialog=!1)&&e),"showChange"===t&&(e=!1!==(i.isShowDialog=l)&&e),e}),K.b,K.a)),e.qb(8,638976,null,0,$.a,[],{show:[0,"show"]},{showChange:"showChange",hideModal:"hideModal"}),(n()(),e.rb(9,0,null,0,17,"div",[["class","modal-inner"]],null,null,null,null,null)),(n()(),e.rb(10,0,null,null,9,"span",[["class","modal-content"],["style","color: #42236a"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(12,null,["",""])),e.Hb(13,2),(n()(),e.rb(14,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(15,null,["",""])),e.Hb(16,2),(n()(),e.rb(17,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(18,null,["",""])),e.Hb(19,2),(n()(),e.rb(20,0,null,null,6,"div",[["class","wrap-btn-saving"],["style","justify-content: center;"]],null,null,null,null,null)),(n()(),e.rb(21,0,null,null,2,"button",[["class","btn-again btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=0!=(n.component.isShowDialog=!1)&&e),e}),null,null)),(n()(),e.Lb(22,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(24,0,null,null,2,"button",[["class","btn-home btn btn-primary"],["style","text-transform: inherit;"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.moveWithdrawalPremature()&&e),e}),null,null)),(n()(),e.Lb(25,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,2,0,l.curStatus$.value),n(t,4,0,l.savingStatus.SavingDetail),n(t,8,0,l.isShowDialog)}),(function(n,t){var l=t.component,i=e.Mb(t,12,0,n(t,13,0,e.Db(t,0),l.contentDialog,0));n(t,12,0,i);var a=e.Mb(t,15,0,n(t,16,0,e.Db(t,0),l.contentDialog,1));n(t,15,0,a);var u=e.Mb(t,18,0,n(t,19,0,e.Db(t,0),l.contentDialog,2));n(t,18,0,u),n(t,22,0,e.Mb(t,22,0,e.Db(t,23).transform("general.btn_cancel"))),n(t,25,0,e.Mb(t,25,0,e.Db(t,26).transform("txt_login_close_btn")))}))}function J(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-saving-detail",[],null,null,null,W,H)),e.qb(1,245760,null,0,z,[v,r.j,p.m,C.a,M.a,p.a],null,null)],(function(n,t){n(t,1,0)}),null)}var Q=e.nb("app-saving-detail",z,J,{},{},[]),X=l("6spI"),Z=l("dOKT"),nn=l("s7LF"),tn=l("aJGe"),ln=l("VgyV"),en=l("uAa1"),an=l("WCTd"),un=l("7dP1"),cn=l("+Gek"),on=l("mj0y"),rn=l("4lR6"),sn=l("i2XX"),gn=l("l8CK"),pn=l("9kLj"),bn=l("Fo8p"),dn=l("XpjX");class mn{constructor(n,t,l,e,i){this.commonService=n,this.savingService=t,this.languageService=l,this.fb=e,this.translateService=i,this.savingStatus=_.a,this.curStatus$=new m.a(_.a.Settlement),this.isVietnamese=!0,this.bankAccounts=[],this.smsTemplate="",this.smsParams={},this.isTimeout=!1}ngOnInit(){this.savingDetail=history.state.savingDetail,this.isOverdraft=history.state.isOverdraft,this.customerAccount=history.state.customerAccount,this.accountNumber=this.savingDetail.acctNo,this.interestAmountOdDetail=history.state.interestAmountOdDetail,this.isVietnamese=this.languageService.isVietnamese(),this.initData(),this.isOverdraft?(this.interestAmountOd=Object(U.c)(this.interestAmountOdDetail.interestAmountOd),this.description2=this.translateService.instant("inquiry.saving_detail_profit_temp",{amount:Object(U.c)(this.interestAmountOdDetail.interestAmountOd),currency:this.savingService.settlementConfig.currency})):this.description2=this.translateService.instant("saving.saving_detail.settlement_description_2",{amount:Object(U.c)(this.savingService.settlementConfig.settlementFee),currency:this.savingService.settlementConfig.currency}),this.subscribeCurStatus(),this.settlementFeeText=this.translateService.instant("saving.withdraw_original.settlement_fee"),this.onBack=()=>{history.back()}}initData(){this.earlySettlement=this.fb.group({bankAccount:new nn.f("",[nn.w.required])}),this.getBankAccounts()}getBankAccounts(){this.commonService.callApi({method:bn.a.GET,url:b.a.GET_LIST_ACCOUNT+"?function=fundTopup",success:n=>{n&&(this.isOverdraft?(this.bankAccounts=n.filter(n=>n.BBAN===this.customerAccount),this.earlySettlement.controls.bankAccount.setValue(this.bankAccounts[0].BBAN)):this.bankAccounts=n)}})}subscribeCurStatus(){this.curStatus$.subscribe(n=>{switch(n){case this.savingStatus.Settlement:this.commonService.setPageTitle("saving.saving_detail.settlement_title"),this.commonService.showBackButton(()=>{this.onBack()});break;case this.savingStatus.InputOTP:this.commonService.setPageTitle("saving.saving_detail.settlement_title"),this.commonService.showBackButton(()=>{this.curStatus$.next(this.savingStatus.Settlement)});break;case this.savingStatus.VerifySuccessfully:case this.savingStatus.VerifyFailed:this.commonService.setPageTitle("saving.saving_detail.settlement_title"),this.commonService.showBreadcrumb(!1)}})}clickNext(){let n;this.smsTemplate="SAVING_CLOSE_OTP",this.smsParams={ACCOUNT:this.accountNumber},n=this.isOverdraft?{accountNumber:this.accountNumber,payoutAccountNumber:this.earlySettlement.value.bankAccount,odInterestAmount:this.interestAmountOdDetail.interestAmountOd}:{accountNumber:this.accountNumber,payoutAccountNumber:this.earlySettlement.value.bankAccount},this.savingService.verifyWithdrawOriginal(n).subscribe(n=>{this.withdrawalPrematureVerify=n,this.curStatus$.next(this.savingStatus.InputOTP)},n=>{this.savingService.handleError(n)?this.otpComponent.countOTP():this.curStatus$.next(this.savingStatus.VerifyFailed)})}confirmWithdrawOriginal(n){this.savingService.confirmWithdrawOriginal({id:this.withdrawalPrematureVerify.id,authMethod:this.withdrawalPrematureVerify.authMethod,otpCode:n.otp,otpTransactionId:n.transactionId}).subscribe(n=>{this.withdrawalPrematureConfirm=n,this.dateConvert=Object(U.b)(this.withdrawalPrematureConfirm.withdrawDate),this.curStatus$.next(this.savingStatus.VerifySuccessfully)},n=>{if(this.savingService.handleError(n))this.otpComponent.countOTP();else{let t=Object(f.d)(n,"error.errorMessage.errorCode");this.isTimeout=dn.j.includes(t),this.curStatus$.next(this.savingStatus.VerifyFailed)}})}clickAgain(){this.curStatus$.next(this.savingStatus.Settlement)}ngOnDestroy(){this.savingService.bankAccounts$.next([])}}var hn=e.pb({encapsulation:0,styles:[[".margin-otp[_ngcontent-%COMP%]{margin-top:64px;display:flex;justify-content:center}.input-style-1[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;border-radius:5px;padding:0 16px;border:1px solid #e2d8ee;background-color:#fcfcfc}.input-style-1[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::placeholder{font-weight:400}.input-style-2[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;padding:0 16px;background-color:#fcfcfc}.style-btn-1[_ngcontent-%COMP%]{width:344px}.title-style-1[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center}.title-style-2[_ngcontent-%COMP%]{line-height:24px;font-size:16px;text-align:center}.wrap-title-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.wrap-title-style[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:100px;height:1px;background-color:#e6e9ee;border:none;display:flex;flex:1}.wrap-title-style[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ad8ad8;margin:0 10px} .select-container{margin:0 auto} .select-container .select-container__select-option{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content} .select-container .select-container__select-option .account-detail{height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.wrap-action-failed[_ngcontent-%COMP%]{margin-top:40px}.wrap-action-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%]{display:flex;text-align:center;flex-direction:column;font-size:14px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%]{width:420px;justify-content:space-between;display:flex}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:200px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{color:#42236a}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%]{width:300px;margin:0 auto;color:#ad8ad8}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span{color:#42236a}.saving-wrap-card[_ngcontent-%COMP%]{border-top:1px solid #e6e9ee;display:flex}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%]{margin:16px 0;display:flex;flex:1;flex-direction:column}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:#ad8ad8;line-height:24px;margin-bottom:5px}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{font-weight:500;line-height:24px;word-break:break-word;padding-right:10px}.wrap-btn-saving[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{min-width:190px!important;max-width:288px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:24px}.btn-success[_ngcontent-%COMP%]{max-width:344px;width:100%!important;height:48px;border-radius:5px;border:none;font-size:14px;font-weight:500;margin:24px auto 0;max-width:344px}@media only screen and (min-width:1440px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:57px}}@media only screen and (min-width:1130px) and (max-width:1439px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:65px}}@media only screen and (min-width:576px) and (max-width:1129px){.wrap-other-btn[_ngcontent-%COMP%]{right:-23px}.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:121px}}@media screen and (max-width:575px){.wrap-btn-saving[_ngcontent-%COMP%]{justify-content:center}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:0!important;order:2;margin-top:16px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{width:100%}.wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{order:1}}@media screen and (min-width:576px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;display:flex;justify-content:center;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{margin-right:24px}}@media screen and (max-width:575px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;max-width:100%!important;display:flex;flex-direction:column;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{order:2;margin-top:16px}.btn-saving[_ngcontent-%COMP%] .btn-positive[_ngcontent-%COMP%]{order:1}.style-btn-1[_ngcontent-%COMP%]{width:100%!important}}.early-settlement[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;max-width:496px;margin:0 auto;width:100%}.early-settlement[_ngcontent-%COMP%] .select-container .select-container__select-option{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important}.early-settlement[_ngcontent-%COMP%] .select-container .select-container__select-option .account-detail{text-align:start;height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.early-settlement[_ngcontent-%COMP%] .description-2[_ngcontent-%COMP%]{margin:16px auto 24px}.early-settlement[_ngcontent-%COMP%] .btn-next[_ngcontent-%COMP%]{width:344px;margin:0 auto}.wrap-action-successfully[_ngcontent-%COMP%]{flex-wrap:wrap;align-items:flex-start}.wrap-action-successfully[_ngcontent-%COMP%] action-result[_ngcontent-%COMP%] .action-result{padding-top:44px}.wrap-action-successfully[_ngcontent-%COMP%] .account-detail{padding:16px 0}.wrap-action-successfully[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.wrap-action-successfully[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{max-width:264px;font-size:14px;text-transform:uppercase;margin-bottom:8px;margin-left:auto;margin-right:auto;width:100%}.wrap-action-successfully[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:30px;font-weight:300}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%]{width:100%;max-width:400px;display:flex;flex:1;flex-direction:column}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%]{border-radius:5px;background-color:#fff;padding:8px 24px}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%] .account[_ngcontent-%COMP%]{display:flex;padding:16px 0}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{margin-left:20px;display:flex;flex-direction:column}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{line-height:24px}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .from[_ngcontent-%COMP%]{margin-bottom:5px;color:#ad8ad8}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%] .info-inner[_ngcontent-%COMP%] .account[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-bottom:5px;font-weight:500;text-transform:uppercase;color:#42236a}@media only screen and (max-width:575px){.wrap-other-btn[_ngcontent-%COMP%]{left:0;top:-25px}.wrap-action-successfully[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.wrap-action-successfully[_ngcontent-%COMP%] .info-successfully[_ngcontent-%COMP%]{margin-top:8px}.btn-next[_ngcontent-%COMP%]{width:100%!important}.btn-success[_ngcontent-%COMP%]{max-width:100%!important}}"]],data:{}});function fn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,11,"select-option",[],null,null,null,X.b,X.a)),e.qb(1,114688,[[2,4]],0,Z.a,[],{value:[0,"value"],name:[1,"name"]},null),e.Hb(2,1),(n()(),e.rb(3,0,null,0,8,"div",[["class","account-detail"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,1,"span",[["style","font-size: 16px;font-weight: 500;"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),(n()(),e.rb(6,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Hb(8,1),(n()(),e.rb(9,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(10,null,[""," ",""])),e.Hb(11,2)],(function(n,t){var l=e.vb(1,"",t.context.$implicit.BBAN,""),i=e.vb(1,"",e.Mb(t,1,1,n(t,2,0,e.Db(t.parent.parent,0),(null==t.context.$implicit?null:t.context.$implicit.name)+" - "+(null==t.context.$implicit?null:t.context.$implicit.BBAN))),"");n(t,1,0,l,i)}),(function(n,t){n(t,5,0,null==t.context.$implicit?null:t.context.$implicit.name);var l=e.Mb(t,7,0,n(t,8,0,e.Db(t.parent.parent,0),null==t.context.$implicit?null:t.context.$implicit.BBAN));n(t,7,0,l);var i=e.Mb(t,10,0,n(t,11,0,e.Db(t.parent.parent,1),null==t.context.$implicit?null:t.context.$implicit.availableBalance,null==t.context.$implicit?null:t.context.$implicit.currency));n(t,10,0,i,null==t.context.$implicit?null:t.context.$implicit.currency)}))}function _n(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,6,"span",[["class","description-2"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"span",[["style","color: #ad8ad8"]],null,null,null,null,null)),(n()(),e.Lb(2,null,["",""])),e.Hb(3,2),(n()(),e.rb(4,0,null,null,2,"span",[["style","color: #42236a"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Hb(6,2)],null,(function(n,t){var l=t.component,i=e.Mb(t,2,0,n(t,3,0,e.Db(t.parent.parent,2),l.description2,0));n(t,2,0,i);var a=e.Mb(t,5,0,n(t,6,0,e.Db(t.parent.parent,2),l.description2,1));n(t,5,0,a)}))}function Cn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,9,"div",[["style","color: #ad8ad8; text-align: left"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,6,"div",[["style","margin-top: 15px"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Hb(4,2),(n()(),e.rb(5,0,null,null,2,"span",[["style","color: #42236a"]],null,null,null,null,null)),(n()(),e.Lb(6,null,["",""])),e.Hb(7,2),(n()(),e.rb(8,0,null,null,1,"div",[["style","margin-top: 10px; margin-bottom: 20px"]],null,null,null,null,null)),(n()(),e.Lb(9,null,["",""]))],null,(function(n,t){var l=t.component,i=e.Mb(t,3,0,n(t,4,0,e.Db(t.parent.parent,2),l.description2,0));n(t,3,0,i);var a=e.Mb(t,6,0,n(t,7,0,e.Db(t.parent.parent,2),l.description2,1));n(t,6,0,a),n(t,9,0,l.isVietnamese?l.interestAmountOdDetail.additionalInfoVn:l.interestAmountOdDetail.additionalInfoEn)}))}function vn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,33,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,32,"form",[["class","early-settlement"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,t,l){var i=!0;return"submit"===t&&(i=!1!==e.Db(n,3).onSubmit(l)&&i),"reset"===t&&(i=!1!==e.Db(n,3).onReset()&&i),i}),null,null)),e.qb(2,16384,null,0,nn.A,[],null,null),e.qb(3,540672,null,0,nn.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,nn.c,null,[nn.i]),e.qb(5,16384,null,0,nn.q,[[4,nn.c]],null,null),(n()(),e.rb(6,0,null,null,2,"span",[["class","title-style-1"]],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,2,"span",[["style","margin: 8px auto 32px auto;line-height: 24px;font-size: 16px;"]],null,null,null,null,null)),(n()(),e.Lb(10,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(12,0,null,null,5,"div",[["class","wrap-title-style"],["style","margin-bottom: 24px"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,0,"hr",[],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(15,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(17,0,null,null,0,"hr",[],null,null,null,null,null)),(n()(),e.rb(18,0,null,null,8,"select-container",[["formControlName","bankAccount"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[["document","click"]],(function(n,t,l){var i=!0;return"document:click"===t&&(i=!1!==e.Db(n,22).withoutClickComponent(l)&&i),i}),tn.b,tn.a)),e.qb(19,671744,null,0,nn.h,[[3,nn.c],[8,null],[8,null],[8,null],[2,nn.z]],{name:[0,"name"]},null),e.Ib(2048,null,nn.o,null,[nn.h]),e.qb(21,16384,null,0,nn.p,[[4,nn.o]],null,null),e.qb(22,6012928,null,1,ln.a,[[6,nn.o],e.h,e.k],{placeholder:[0,"placeholder"]},null),e.Jb(603979776,2,{items:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,fn)),e.qb(26,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.gb(16777216,null,null,1,null,_n)),e.qb(28,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Cn)),e.qb(30,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(31,0,null,null,2,"button",[["class","btn-next btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickNext()&&e),e}),null,null)),(n()(),e.Lb(32,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,3,0,l.earlySettlement),n(t,19,0,"bankAccount"),n(t,22,0,e.vb(1,"",e.Mb(t,22,0,e.Db(t,24).transform("saving.add_term.placeholder_5")),"")),n(t,26,0,l.bankAccounts),n(t,28,0,!l.isOverdraft),n(t,30,0,l.isOverdraft)}),(function(n,t){var l=t.component;n(t,1,0,e.Db(t,5).ngClassUntouched,e.Db(t,5).ngClassTouched,e.Db(t,5).ngClassPristine,e.Db(t,5).ngClassDirty,e.Db(t,5).ngClassValid,e.Db(t,5).ngClassInvalid,e.Db(t,5).ngClassPending),n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("saving.settlement_title_1"))),n(t,10,0,e.Mb(t,10,0,e.Db(t,11).transform("saving.saving_detail.settlement_description"))),n(t,15,0,e.Mb(t,15,0,e.Db(t,16).transform("saving.add_term.text_7"))),n(t,18,0,e.Db(t,21).ngClassUntouched,e.Db(t,21).ngClassTouched,e.Db(t,21).ngClassPristine,e.Db(t,21).ngClassDirty,e.Db(t,21).ngClassValid,e.Db(t,21).ngClassInvalid,e.Db(t,21).ngClassPending),n(t,31,0,!l.earlySettlement.valid),n(t,32,0,e.Mb(t,32,0,e.Db(t,33).transform("general.btn_next")))}))}function Mn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"app-otp",[["class","margin-otp"]],null,[[null,"confirmOtp"]],(function(n,t,l){var e=!0;return"confirmOtp"===t&&(e=!1!==n.component.confirmWithdrawOriginal(l)&&e),e}),en.b,en.a)),e.qb(2,4308992,[[1,4]],0,an.a,[C.a,nn.e,un.a,r.j,M.a,p.m,M.a],{authMethod:[0,"authMethod"],smsTemplate:[1,"smsTemplate"],smsParams:[2,"smsParams"]},{confirmOtp:"confirmOtp"})],(function(n,t){var l=t.component;n(t,2,0,null==l.withdrawalPrematureVerify?null:l.withdrawalPrematureVerify.authMethod.toLowerCase(),l.smsTemplate,l.smsParams)}),null)}function On(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,65,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,64,"div",[["class","wrap-action-successfully"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,9,"action-result",[["style","display: flex;flex: 1"]],null,null,null,cn.b,cn.a)),e.qb(3,638976,null,0,on.a,[],{title:[0,"title"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,0,6,"div",[["class","wrap-content"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"span",[["class","content"]],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,2,"span",[["class","amount"]],null,null,null,null,null)),(n()(),e.Lb(10,null,[" "," "," "])),e.Hb(11,2),(n()(),e.rb(12,0,null,null,53,"div",[["class","info-successfully"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,47,"div",[["class","info-inner"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,11,"div",[["class","account"]],null,null,null,null,null)),(n()(),e.rb(15,0,null,null,1,"app-avatar",[],null,null,null,rn.b,rn.a)),e.qb(16,114688,null,0,sn.a,[],{name:[0,"name"]},null),(n()(),e.rb(17,0,null,null,8,"div",[["class","inner"]],null,null,null,null,null)),(n()(),e.rb(18,0,null,null,2,"span",[["class","from"]],null,null,null,null,null)),(n()(),e.Lb(19,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(21,0,null,null,1,"span",[["class","name"]],null,null,null,null,null)),(n()(),e.Lb(22,null,["",""])),(n()(),e.rb(23,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(24,null,["",""])),e.Hb(25,1),(n()(),e.rb(26,0,null,null,13,"div",[["class","saving-wrap-card"]],null,null,null,null,null)),(n()(),e.rb(27,0,null,null,5,"div",[["class","wrap-card-item"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,2,"span",[["class","card-title"]],null,null,null,null,null)),(n()(),e.Lb(29,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(31,0,null,null,1,"span",[["class","card-content"]],null,null,null,null,null)),(n()(),e.Lb(32,null,["",""])),(n()(),e.rb(33,0,null,null,6,"div",[["class","wrap-card-item"]],null,null,null,null,null)),(n()(),e.rb(34,0,null,null,2,"span",[["class","card-title"]],null,null,null,null,null)),(n()(),e.Lb(35,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(37,0,null,null,2,"span",[["class","card-content"]],null,null,null,null,null)),(n()(),e.Lb(38,null,["",""])),e.Hb(39,1),(n()(),e.rb(40,0,null,null,7,"div",[["class","saving-wrap-card"]],null,null,null,null,null)),(n()(),e.rb(41,0,null,null,6,"div",[["class","wrap-card-item"]],null,null,null,null,null)),(n()(),e.rb(42,0,null,null,2,"span",[["class","card-title"]],null,null,null,null,null)),(n()(),e.Lb(43,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(45,0,null,null,2,"span",[["class","card-content"]],null,null,null,null,null)),(n()(),e.Lb(46,null,[""," ",""])),e.Hb(47,2),(n()(),e.rb(48,0,null,null,12,"div",[["class","saving-wrap-card"]],null,null,null,null,null)),(n()(),e.rb(49,0,null,null,5,"div",[["class","wrap-card-item"]],null,null,null,null,null)),(n()(),e.rb(50,0,null,null,2,"span",[["class","card-title"]],null,null,null,null,null)),(n()(),e.Lb(51,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(53,0,null,null,1,"span",[["class","card-content"]],null,null,null,null,null)),(n()(),e.Lb(54,null,["",""])),(n()(),e.rb(55,0,null,null,5,"div",[["class","wrap-card-item"]],null,null,null,null,null)),(n()(),e.rb(56,0,null,null,2,"span",[["class","card-title"]],null,null,null,null,null)),(n()(),e.Lb(57,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(59,0,null,null,1,"span",[["class","card-content"]],null,null,null,null,null)),(n()(),e.Lb(60,null,["",""])),(n()(),e.rb(61,0,null,null,4,"button",[["class","btn-success btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,62).onClick()&&i),i}),null,null)),e.qb(62,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(63,1),(n()(),e.Lb(64,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,3,0,e.vb(1,"",e.Mb(t,3,0,e.Db(t,4).transform("transfer.message.transaction_success")),"")),n(t,16,0,null==l.withdrawalPrematureConfirm?null:l.withdrawalPrematureConfirm.payoutAccountName);var i=n(t,63,0,"/main/saving");n(t,62,0,i)}),(function(n,t){var l=t.component;n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("saving.withdraw_original.content_successfully")));var i=e.Mb(t,10,0,n(t,11,0,e.Db(t.parent,1),null==l.withdrawalPrematureConfirm?null:l.withdrawalPrematureConfirm.amount,l.savingService.settlementConfig.currency));n(t,10,0,i,l.savingService.settlementConfig.currency),n(t,19,0,e.Mb(t,19,0,e.Db(t,20).transform("inquiry.saving_detail.account_accept"))),n(t,22,0,null==l.withdrawalPrematureConfirm?null:l.withdrawalPrematureConfirm.payoutAccountName);var a=e.Mb(t,24,0,n(t,25,0,e.Db(t.parent,0),null==l.withdrawalPrematureConfirm?null:l.withdrawalPrematureConfirm.payoutAccountNumber));n(t,24,0,a),n(t,29,0,e.Mb(t,29,0,e.Db(t,30).transform("inquiry.saving_detail.package_name"))),n(t,32,0,null==l.savingDetail?null:l.savingDetail.acctName),n(t,35,0,e.Mb(t,35,0,e.Db(t,36).transform("inquiry.saving_detail.account_number")));var u=e.Mb(t,38,0,n(t,39,0,e.Db(t.parent,0),null==l.withdrawalPrematureConfirm?null:l.withdrawalPrematureConfirm.accountNumber));n(t,38,0,u),n(t,43,0,e.Mb(t,43,0,e.Db(t,44).transform(l.isOverdraft?"inquiry.saving_detail_profit_temp_1":l.settlementFeeText)));var c=e.Mb(t,46,0,n(t,47,0,e.Db(t.parent,1),l.isOverdraft?l.interestAmountOd:l.withdrawalPrematureConfirm.withdrawFee,l.savingService.settlementConfig.currency));n(t,46,0,c,l.savingService.settlementConfig.currency),n(t,51,0,e.Mb(t,51,0,e.Db(t,52).transform("inquiry.account.excel_header_booking_date"))),n(t,54,0,l.dateConvert),n(t,57,0,e.Mb(t,57,0,e.Db(t,58).transform("inquiry.account.excel_header_transactionID"))),n(t,60,0,l.withdrawalPrematureConfirm.transactionId),n(t,64,0,e.Mb(t,64,0,e.Db(t,65).transform("general.btn_completed")))}))}function Pn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(1,638976,null,0,on.a,[],{title:[0,"title"],content:[1,"content"],success:[2,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(4,0,null,0,9,"div",[["class","content-failed"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,8,"div",[["class","wrap-btn-saving"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"button",[["class","btn-again btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickAgain()&&e),e}),null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,4,"button",[["class","btn-home btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,10).onClick()&&i),i}),null,null)),e.qb(10,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(11,1),(n()(),e.Lb(12,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,1,0,e.vb(1,"",e.Mb(t,1,0,e.Db(t,2).transform("general.transaction_fail")),""),e.vb(1,"",e.Mb(t,1,1,e.Db(t,3).transform("txt_common_error-1")),""),!1);var l=n(t,11,0,"/main");n(t,10,0,l)}),(function(n,t){n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("general.btn_retry"))),n(t,12,0,e.Mb(t,12,0,e.Db(t,13).transform("general.btn_home")))}))}function xn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"action-result-timeout",[],null,null,null,gn.b,gn.a)),e.qb(1,114688,null,0,pn.a,[],null,null)],(function(n,t){n(t,1,0)}),null)}function wn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","wrap-action-failed"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,Pn)),e.qb(3,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,xn)),e.qb(5,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,3,0,!l.isTimeout),n(t,5,0,l.isTimeout)}),null)}function yn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"div",[],null,null,null,null,null))],null,null)}function kn(n){return e.Nb(0,[e.Fb(0,s.a,[]),e.Fb(0,g.a,[]),e.Fb(0,V.a,[]),e.Jb(671088640,1,{otpComponent:0}),(n()(),e.rb(4,0,null,null,11,"div",[],null,null,null,null,null)),e.qb(5,16384,null,0,o.r,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),e.gb(16777216,null,null,1,null,vn)),e.qb(7,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Mn)),e.qb(9,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,On)),e.qb(11,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,wn)),e.qb(13,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,yn)),e.qb(15,16384,null,0,o.t,[e.N,e.K,o.r],null,null)],(function(n,t){var l=t.component;n(t,5,0,l.curStatus$.value),n(t,7,0,l.savingStatus.Settlement),n(t,9,0,l.savingStatus.InputOTP),n(t,11,0,l.savingStatus.VerifySuccessfully),n(t,13,0,l.savingStatus.VerifyFailed)}),null)}function Sn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-early-settlement",[],null,null,null,kn,hn)),e.qb(1,245760,null,0,mn,[C.a,v,M.a,nn.e,r.j],null,null)],(function(n,t){n(t,1,0)}),null)}var Dn=e.nb("app-early-settlement",mn,Sn,{},{},[]),Nn=l("24E0"),In=l("V+xE"),An=l("K0Hj"),Tn=l("k4k9"),Ln=l("/uUt");class Fn{constructor(n,t){this.savingService=n,this.fb=t,this.isShowAccounts=!1,this.isDisabledBtn=!1,this.isFormInValid=!1,this.savingResumeNext=new e.m}ngOnInit(){this.initForm(),this.subscribeResumesForm(),this.savingService.bankAccounts$.subscribe(n=>{if(n.length)if(this.savingService.currentResumeValue.settlementAcctNo){if(n.some(n=>n.BBAN===this.savingService.currentResumeValue.settlementAcctNo))this.resumesForm.controls.account.setValue(this.savingService.currentResumeValue.settlementAcctNo);else for(let t=0;t{switch(n.type){case"2":this.isShowAccounts=!1;break;case"1":case"3":this.savingService.bankAccounts$.value.length||this.savingService.getBankAccounts("?function=fundTopup"),this.isShowAccounts=!0}this.dataConfig&&this.checkDisabledBtn(),this.checkFormInValid()}),this.resumesForm.controls.type.valueChanges.pipe(Object(Ln.a)()).subscribe(n=>{this.savingService.currentResumeValue.settlementType=n}),this.resumesForm.controls.account.valueChanges.pipe(Object(Ln.a)()).subscribe(n=>{this.savingService.currentResumeValue.settlementAcctNo=n})}checkDisabledBtn(){this.isDisabledBtn="2"===this.resumesForm.value.type&&"2"===this.dataConfig.settlementType||this.resumesForm.value.type===this.dataConfig.settlementType&&this.resumesForm.value.account===this.dataConfig.settlementAcctNo}checkFormInValid(){this.isFormInValid="2"!==this.resumesForm.controls.type.value&&!this.resumesForm.controls.account.value}handleSavingResumesNext(){const n=Object.assign({},this.resumesForm.value,{name:""});if("2"===this.resumesForm.controls.type.value)n.account="";else{const t=this.savingService.bankAccounts$.value.find(n=>n.BBAN===this.resumesForm.controls.account.value);n.name=t.name}this.savingResumeNext.emit(n)}ngOnDestroy(){this.savingService.bankAccounts$.next([])}}var En=e.pb({encapsulation:0,styles:[[".margin-otp[_ngcontent-%COMP%]{margin-top:64px;display:flex;justify-content:center}.input-style-1[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;border-radius:5px;padding:0 16px;border:1px solid #e2d8ee;background-color:#fcfcfc}.input-style-1[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::placeholder{font-weight:400}.input-style-2[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;padding:0 16px;background-color:#fcfcfc}.style-btn-1[_ngcontent-%COMP%]{width:344px}.title-style-1[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center}.title-style-2[_ngcontent-%COMP%]{line-height:24px;font-size:16px;text-align:center}.wrap-title-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.wrap-title-style[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:100px;height:1px;background-color:#e6e9ee;border:none;display:flex;flex:1}.wrap-title-style[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ad8ad8;margin:0 10px} .select-container{margin:0 auto} .select-container .select-container__select-option{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content} .select-container .select-container__select-option .account-detail{height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.wrap-action-failed[_ngcontent-%COMP%]{margin-top:40px}.wrap-action-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%]{display:flex;text-align:center;flex-direction:column;font-size:14px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%]{width:420px;justify-content:space-between;display:flex}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:200px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{color:#42236a}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%]{width:300px;margin:0 auto;color:#ad8ad8}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span{color:#42236a}.saving-wrap-card[_ngcontent-%COMP%]{border-top:1px solid #e6e9ee;display:flex}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%]{margin:16px 0;display:flex;flex:1;flex-direction:column}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:#ad8ad8;line-height:24px;margin-bottom:5px}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{font-weight:500;line-height:24px;word-break:break-word;padding-right:10px}.wrap-btn-saving[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{min-width:190px!important;max-width:288px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:24px}.btn-success[_ngcontent-%COMP%]{max-width:344px;width:100%!important;height:48px;border-radius:5px;border:none;font-size:14px;font-weight:500;margin:24px auto 0;max-width:344px}@media only screen and (min-width:1440px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:57px}}@media only screen and (min-width:1130px) and (max-width:1439px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:65px}}@media only screen and (min-width:576px) and (max-width:1129px){.wrap-other-btn[_ngcontent-%COMP%]{right:-23px}.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:121px}}@media only screen and (max-width:575px){.wrap-other-btn[_ngcontent-%COMP%]{left:0;top:-25px}}@media screen and (max-width:575px){.wrap-btn-saving[_ngcontent-%COMP%]{justify-content:center}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:0!important;order:2;margin-top:16px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{width:100%}.wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{order:1}}@media screen and (min-width:576px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;display:flex;justify-content:center;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{margin-right:24px}}@media screen and (max-width:575px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;max-width:100%!important;display:flex;flex-direction:column;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{order:2;margin-top:16px}.btn-saving[_ngcontent-%COMP%] .btn-positive[_ngcontent-%COMP%]{order:1}.style-btn-1[_ngcontent-%COMP%]{width:100%!important}}.saving-resume[_ngcontent-%COMP%]{max-width:496px;width:100%;margin:0 auto;display:flex;flex-direction:column}.saving-resume[_ngcontent-%COMP%] .wrap-accounts[_ngcontent-%COMP%] .wrap-title-style[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500}.saving-resume[_ngcontent-%COMP%] .wrap-accounts[_ngcontent-%COMP%] .select-container{margin-bottom:24px}.saving-resume[_ngcontent-%COMP%] .wrap-accounts[_ngcontent-%COMP%] .select-container .select-container__select-option{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.saving-resume[_ngcontent-%COMP%] .wrap-accounts[_ngcontent-%COMP%] .select-container .select-container__select-option .account-detail{height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.saving-resume[_ngcontent-%COMP%] .wrap-accounts[_ngcontent-%COMP%] .select-container .select-container__select-option .account-detail span{font-weight:400}@media screen and (max-width:575px){.btn-primary[_ngcontent-%COMP%]{width:100%!important}}"]],data:{}});function qn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,11,"select-option",[],null,null,null,X.b,X.a)),e.qb(1,114688,[[2,4]],0,Z.a,[],{value:[0,"value"],name:[1,"name"]},null),e.Hb(2,1),(n()(),e.rb(3,0,null,0,8,"div",[["class","account-detail"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,1,"span",[["style","font-size: 16px;font-weight: 500;"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),(n()(),e.rb(6,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Hb(8,1),(n()(),e.rb(9,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(10,null,[""," ",""])),e.Hb(11,2)],(function(n,t){var l=e.vb(1,"",t.context.$implicit.BBAN,""),i=e.vb(1,"",e.Mb(t,1,1,n(t,2,0,e.Db(t.parent.parent,0),t.context.$implicit.BBAN)),"");n(t,1,0,l,i)}),(function(n,t){n(t,5,0,t.context.$implicit.name);var l=e.Mb(t,7,0,n(t,8,0,e.Db(t.parent.parent,0),t.context.$implicit.BBAN));n(t,7,0,l);var i=e.Mb(t,10,0,n(t,11,0,e.Db(t.parent.parent,1),t.context.$implicit.availableBalance,null==t.context.$implicit?null:t.context.$implicit.currency));n(t,10,0,i,null==t.context.$implicit?null:t.context.$implicit.currency)}))}function Bn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,15,"div",[["class","wrap-accounts"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,5,"div",[["class","wrap-title-style"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,0,"hr",[],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(4,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,null,0,"hr",[],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,8,"select-container",[["formControlName","account"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[["document","click"]],(function(n,t,l){var i=!0;return"document:click"===t&&(i=!1!==e.Db(n,11).withoutClickComponent(l)&&i),i}),tn.b,tn.a)),e.qb(8,671744,null,0,nn.h,[[3,nn.c],[8,null],[8,null],[8,null],[2,nn.z]],{name:[0,"name"]},null),e.Ib(2048,null,nn.o,null,[nn.h]),e.qb(10,16384,null,0,nn.p,[[4,nn.o]],null,null),e.qb(11,6012928,null,1,ln.a,[[6,nn.o],e.h,e.k],{placeholder:[0,"placeholder"]},null),e.Jb(603979776,2,{items:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,qn)),e.qb(15,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){var l=t.component;n(t,8,0,"account"),n(t,11,0,e.vb(1,"",e.Mb(t,11,0,e.Db(t,13).transform("saving.add_term.placeholder_5")),"")),n(t,15,0,l.savingService.bankAccounts$.value)}),(function(n,t){n(t,4,0,e.Mb(t,4,0,e.Db(t,5).transform("saving.add_term.text_7"))),n(t,7,0,e.Db(t,10).ngClassUntouched,e.Db(t,10).ngClassTouched,e.Db(t,10).ngClassPristine,e.Db(t,10).ngClassDirty,e.Db(t,10).ngClassValid,e.Db(t,10).ngClassInvalid,e.Db(t,10).ngClassPending)}))}function jn(n){return e.Nb(0,[e.Fb(0,s.a,[]),e.Fb(0,g.a,[]),(n()(),e.rb(2,0,null,null,27,"form",[["class","saving-resume"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,t,l){var i=!0;return"submit"===t&&(i=!1!==e.Db(n,4).onSubmit(l)&&i),"reset"===t&&(i=!1!==e.Db(n,4).onReset()&&i),i}),null,null)),e.qb(3,16384,null,0,nn.A,[],null,null),e.qb(4,540672,null,0,nn.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,nn.c,null,[nn.i]),e.qb(6,16384,null,0,nn.q,[[4,nn.c]],null,null),(n()(),e.rb(7,0,null,null,17,"app-radio-group",[["formControlName","type"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,Nn.b,Nn.a)),e.qb(8,671744,null,0,nn.h,[[3,nn.c],[8,null],[8,null],[8,null],[2,nn.z]],{name:[0,"name"]},null),e.Ib(2048,null,nn.o,null,[nn.h]),e.qb(10,16384,null,0,nn.p,[[4,nn.o]],null,null),e.qb(11,4308992,null,1,In.a,[[6,nn.o],e.h,nn.e],null,null),e.Jb(603979776,1,{items:1}),(n()(),e.rb(13,0,null,null,3,"app-radio-option",[["value","2"]],null,null,null,An.b,An.a)),e.qb(14,114688,[[1,4]],0,Tn.a,[],{value:[0,"value"]},null),(n()(),e.Lb(15,0,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(17,0,null,null,3,"app-radio-option",[["value","3"]],null,null,null,An.b,An.a)),e.qb(18,114688,[[1,4]],0,Tn.a,[],{value:[0,"value"]},null),(n()(),e.Lb(19,0,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(21,0,null,null,3,"app-radio-option",[["value","1"]],null,null,null,An.b,An.a)),e.qb(22,114688,[[1,4]],0,Tn.a,[],{value:[0,"value"]},null),(n()(),e.Lb(23,0,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Bn)),e.qb(26,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(27,0,null,null,2,"button",[["class","btn btn-primary"],["style","width: 344px;margin: 0 auto;"]],[[8,"disabled",0]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.handleSavingResumesNext()&&e),e}),null,null)),(n()(),e.Lb(28,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,4,0,l.resumesForm),n(t,8,0,"type"),n(t,11,0),n(t,14,0,"2"),n(t,18,0,"3"),n(t,22,0,"1"),n(t,26,0,l.isShowAccounts)}),(function(n,t){var l=t.component;n(t,2,0,e.Db(t,6).ngClassUntouched,e.Db(t,6).ngClassTouched,e.Db(t,6).ngClassPristine,e.Db(t,6).ngClassDirty,e.Db(t,6).ngClassValid,e.Db(t,6).ngClassInvalid,e.Db(t,6).ngClassPending),n(t,7,0,e.Db(t,10).ngClassUntouched,e.Db(t,10).ngClassTouched,e.Db(t,10).ngClassPristine,e.Db(t,10).ngClassDirty,e.Db(t,10).ngClassValid,e.Db(t,10).ngClassInvalid,e.Db(t,10).ngClassPending),n(t,15,0,e.Mb(t,15,0,e.Db(t,16).transform("saving.add_term.text_4"))),n(t,19,0,e.Mb(t,19,0,e.Db(t,20).transform("saving.add_term.text_5"))),n(t,23,0,e.Mb(t,23,0,e.Db(t,24).transform("saving.add_term.text_6"))),n(t,27,0,l.isFormInValid||l.isDisabledBtn),n(t,28,0,e.Mb(t,28,0,e.Db(t,29).transform("general.btn_next")))}))}var Rn=l("MwYL"),Vn=l("iqE9");class Kn{constructor(n){this.translateSer=n,this.tenorKeyName="",this.termExpiresText="",this.cardConfig=[],this.clickConfirm=new e.m,this.clickCancel=new e.m}ngOnInit(){}ngOnChanges(n){for(let t in n)"confirmInfoConfig"===t&&(this.tenorKeyName=_.c.find(l=>l.tenor===n[t].currentValue.tenor).key,this.termExpiresText=_.d.find(l=>l.value===n[t].currentValue.termExpires).key,this.handleConfig())}handleConfig(){this.contentAmount={text:`${this.translateSer.instant("saving.common.text_5")}: ${Object(U.c)(this.confirmInfoConfig.amountValue)}`},this.cardConfig.push({title:"inquiry.saving_detail.package_name",contentBold:{text:this.confirmInfoConfig.packageNameContent},borderBottom:!0},{title:"saving.common.text_2",borderBottom:"2"!==this.confirmInfoConfig.termExpires},{title:"saving.common.text_3",contentBold:{text:`${this.translateSer.instant(this.tenorKeyName)} & ${this.confirmInfoConfig.rate}${this.translateSer.instant("saving.add_term.placeholder_4")}`},borderBottom:"2"===this.confirmInfoConfig.termExpires},{title:"saving.common.text_1",contentBold:{text:this.translateSer.instant(this.termExpiresText)},borderBottom:"2"!==this.confirmInfoConfig.termExpires},{title:"saving.common.text_4",contentBold:{text:this.confirmInfoConfig.cardName},contentNormal:{text:this.confirmInfoConfig.cardNumber,type:dn.f.AccountNumber},urlImg:this.confirmInfoConfig.urlImg,name:this.confirmInfoConfig.cardName})}clickBtnCancel(){this.clickCancel.emit()}clickBtnConfirm(){this.clickConfirm.emit(this.confirmInfoConfig)}}var $n=e.pb({encapsulation:0,styles:[[".confirm-info[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.confirm-info[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%]{display:flex;max-width:800px;margin:0 auto;flex-wrap:wrap;justify-content:space-between;width:100%;background-color:#e6e9ee;border-radius:5px;overflow:hidden}.confirm-info[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .wrap-item[_ngcontent-%COMP%]{padding:8px 24px;display:flex;flex:1;max-width:400px;background:#fff;flex-direction:column}.confirm-info[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .wrap-item[_ngcontent-%COMP%] .transfer-info-card{padding:20px;min-height:98px;display:flex;flex-direction:column}.confirm-info[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .wrap-item[_ngcontent-%COMP%] .transfer-info-card .title{display:flex;align-items:center}.confirm-info[_ngcontent-%COMP%] .wrap-content[_ngcontent-%COMP%] .wrap-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{line-height:24px;font-weight:500}.confirm-info[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%]{display:flex;margin:24px auto 0}@media screen and (min-width:576px){.hidden[_ngcontent-%COMP%]{display:none}.item-right[_ngcontent-%COMP%]{border-right:1px solid #e6e9ee}.btn-cancel[_ngcontent-%COMP%]{margin-right:12px}.btn-confirm[_ngcontent-%COMP%]{margin-left:12px}}@media screen and (max-width:575px){.wrap-content[_ngcontent-%COMP%]{background-color:#fff!important;flex-direction:column;max-width:496px!important}.wrap-content[_ngcontent-%COMP%] .item-left[_ngcontent-%COMP%]{margin-left:0;padding-top:0}.wrap-content[_ngcontent-%COMP%] .item-right[_ngcontent-%COMP%]{margin-right:0;padding-bottom:0}.wrap-content[_ngcontent-%COMP%] .wrap-item[_ngcontent-%COMP%]{max-width:100%!important}.wrap-content[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{width:calc(100% - 48px);height:1px;display:block;background:#e6e9ee;margin:0 24px}.wrap-btn[_ngcontent-%COMP%]{flex-direction:column;max-width:100%;width:100%}.wrap-btn[_ngcontent-%COMP%] .btn-cancel[_ngcontent-%COMP%], .wrap-btn[_ngcontent-%COMP%] .btn-confirm[_ngcontent-%COMP%]{margin-right:0;width:100%}.wrap-btn[_ngcontent-%COMP%] .btn-cancel[_ngcontent-%COMP%]{order:2}.wrap-btn[_ngcontent-%COMP%] .btn-confirm[_ngcontent-%COMP%]{order:1;margin-bottom:16px}}"]],data:{}});function Un(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(1,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null)],(function(n,t){n(t,1,0,t.component.cardConfig[2])}),null)}function zn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(1,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null)],(function(n,t){n(t,1,0,t.component.cardConfig[2])}),null)}function Hn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(1,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null)],(function(n,t){n(t,1,0,t.component.cardConfig[4])}),null)}function Yn(n){return e.Nb(0,[e.Fb(0,g.a,[]),(n()(),e.rb(1,0,null,null,33,"form",[["class","confirm-info"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,t,l){var i=!0;return"submit"===t&&(i=!1!==e.Db(n,3).onSubmit(l)&&i),"reset"===t&&(i=!1!==e.Db(n,3).onReset()&&i),i}),null,null)),e.qb(2,16384,null,0,nn.A,[],null,null),e.qb(3,4210688,null,0,nn.r,[[8,null],[8,null]],null,null),e.Ib(2048,null,nn.c,null,[nn.r]),e.qb(5,16384,null,0,nn.q,[[4,nn.c]],null,null),(n()(),e.rb(6,0,null,null,21,"div",[["class","wrap-content"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,12,"div",[["class","wrap-item item-right"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,1,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(9,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null),(n()(),e.rb(10,0,null,null,7,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(11,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null),(n()(),e.rb(12,0,null,0,1,"span",[["class","content"]],null,null,null,null,null)),(n()(),e.Lb(13,null,[""," ",""])),(n()(),e.rb(14,0,null,0,3,"span",[["class","content"]],null,null,null,null,null)),(n()(),e.Lb(15,null,[" ",": "," ",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(17,2),(n()(),e.gb(16777216,null,null,1,null,Un)),e.qb(19,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(20,0,null,null,0,"div",[["class","hidden"]],null,null,null,null,null)),(n()(),e.rb(21,0,null,null,6,"div",[["class","wrap-item item-left"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,zn)),e.qb(23,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(24,0,null,null,1,"app-card-common",[],null,null,null,Rn.b,Rn.a)),e.qb(25,114688,null,0,Vn.a,[],{cardConfig:[0,"cardConfig"]},null),(n()(),e.gb(16777216,null,null,1,null,Hn)),e.qb(27,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(28,0,null,null,6,"div",[["class","wrap-btn"]],null,null,null,null,null)),(n()(),e.rb(29,0,null,null,2,"button",[["class","btn-cancel btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickBtnCancel()&&e),e}),null,null)),(n()(),e.Lb(30,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(32,0,null,null,2,"button",[["autofocus",""],["class","btn-confirm btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickBtnConfirm()&&e),e}),null,null)),(n()(),e.Lb(33,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,9,0,l.cardConfig[0]),n(t,11,0,l.cardConfig[1]),n(t,19,0,"2"!==(null==l.confirmInfoConfig?null:l.confirmInfoConfig.termExpires)),n(t,23,0,"2"===(null==l.confirmInfoConfig?null:l.confirmInfoConfig.termExpires)),n(t,25,0,l.cardConfig[3]),n(t,27,0,"2"!==l.confirmInfoConfig.termExpires)}),(function(n,t){var l=t.component;n(t,1,0,e.Db(t,5).ngClassUntouched,e.Db(t,5).ngClassTouched,e.Db(t,5).ngClassPristine,e.Db(t,5).ngClassDirty,e.Db(t,5).ngClassValid,e.Db(t,5).ngClassInvalid,e.Db(t,5).ngClassPending),n(t,13,0,null==l.contentAmount?null:l.contentAmount.text,null==l.confirmInfoConfig?null:l.confirmInfoConfig.currency);var i=e.Mb(t,15,0,e.Db(t,16).transform("inquiry.saving_detail.accrued_interest")),a=e.Mb(t,15,1,n(t,17,0,e.Db(t,0),l.confirmInfoConfig.interestAmount,l.confirmInfoConfig.currency));n(t,15,0,i,a,l.confirmInfoConfig.currency),n(t,30,0,e.Mb(t,30,0,e.Db(t,31).transform("general.btn_cancel"))),n(t,33,0,e.Mb(t,33,0,e.Db(t,34).transform("general.btn_confirm")))}))}class Gn{constructor(n,t,l,e){this.savingService=n,this.commonService=t,this.translateService=l,this.router=e,this.savingStatus=_.a,this.curStatus$=new m.a(_.a.AutoRollSetting),this.successInfo={accountName:"",accountNumber:"",transactionId:"",harvest:""},this.smsTemplate="",this.smsParams={}}ngOnInit(){this.dataSavingDetai=history.state.savingDetail,this.savingService.currentResumeValue=Object.assign({},this.dataSavingDetai),this.subscribeStatus(),this.onBack=()=>{history.back()}}savingResumeNext(n){this.dataChangeAutoroll={settlementType:n.type,payoutAccountNumber:n.account,name:n.name},this.curStatus$.next(this.savingStatus.ConfirmInfo)}confirmInfo(n){this.smsTemplate="SAVING_EDIT_OTP",this.smsParams={ACCOUNT:this.dataSavingDetai.acctNo},this.savingService.updateRoller({accountNumber:this.dataSavingDetai.acctNo,settlementType:this.dataChangeAutoroll.settlementType,payoutAccountNumber:this.dataChangeAutoroll.payoutAccountNumber}).subscribe(n=>{this.verifyConfig=n,this.curStatus$.next(this.savingStatus.InputOTP)},n=>{this.curStatus$.next(this.savingStatus.VerifyFailed)})}subscribeStatus(){this.curStatus$.subscribe(n=>{switch(n){case this.savingStatus.AutoRollSetting:this.commonService.setPageTitle("saving.autoroll.title"),this.commonService.showBackButton(()=>{this.onBack()});break;case this.savingStatus.ConfirmInfo:this.commonService.showBackButton(()=>{this.curStatus$.next(this.savingStatus.AutoRollSetting)}),this.commonService.setPageTitle("saving.add_term.title_3"),this.confirmInfoConfig={packageNameContent:this.dataSavingDetai.acctName,amountValue:this.dataSavingDetai.goalAmount,currency:this.dataSavingDetai.currency,interestAmount:this.dataSavingDetai.accruedInterest,tenor:this.dataSavingDetai.tenor,rate:this.dataSavingDetai.interestRate,termExpires:this.dataChangeAutoroll.settlementType,urlImg:"",cardName:this.dataChangeAutoroll.name,cardNumber:this.dataChangeAutoroll.payoutAccountNumber};break;case this.savingStatus.InputOTP:this.commonService.setPageTitle("saving.add_term.title_3"),this.commonService.showBackButton(()=>{this.curStatus$.next(_.a.ConfirmInfo)});break;case this.savingStatus.VerifyFailed:case this.savingStatus.VerifySuccessfully:this.commonService.setPageTitle("saving.autoroll.title"),this.commonService.showBreadcrumb(!1)}})}cancelConfirmInfo(){this.router.navigate(["/main/saving/term-deposit-detail"],{queryParams:{accountNumber:this.dataSavingDetai.acctNo}})}clickConfirmOtp(n){const t=Object.assign({},this.verifyConfig,{otpCode:n.otp,otpTransactionId:n.transactionId});console.log(t);const l=Object(U.a)(this.dataChangeAutoroll.settlementType,!0);this.savingService.confirmAutorollSetting(t).subscribe(n=>{this.contentSuccessfully=this.translateService.instant("saving.autoroll.update_successfully",{settlement:this.translateService.instant(l)});let t="saving.add_term.text_5";switch(this.confirmInfoConfig.termExpires){case"1":t="saving.add_term.text_6";break;case"2":t="saving.add_term.text_4";break;case"3":t="saving.add_term.text_5"}this.successInfo={accountName:this.confirmInfoConfig.cardName,accountNumber:this.confirmInfoConfig.cardNumber,transactionId:n.transactionId,harvest:t},this.curStatus$.next(_.a.VerifySuccessfully),window.scrollTo({top:0,behavior:"smooth"})},n=>{this.savingService.handleError(n)?this.otpComponent.countOTP():(this.curStatus$.next(_.a.VerifyFailed),window.scrollTo({top:0,behavior:"smooth"}))})}clickAgain(){this.curStatus$.next(this.savingStatus.AutoRollSetting)}clickSuccess(){this.onBack()}}var Wn=e.pb({encapsulation:0,styles:[[".margin-otp[_ngcontent-%COMP%]{margin-top:64px;display:flex;justify-content:center}.input-style-1[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;border-radius:5px;padding:0 16px;border:1px solid #e2d8ee;background-color:#fcfcfc}.input-style-1[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}.input-style-1[_ngcontent-%COMP%]::placeholder{font-weight:400}.input-style-2[_ngcontent-%COMP%]{height:45px;max-width:496px;width:100%;padding:0 16px;background-color:#fcfcfc}.style-btn-1[_ngcontent-%COMP%]{width:344px}.title-style-1[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center}.title-style-2[_ngcontent-%COMP%]{line-height:24px;font-size:16px;text-align:center}.wrap-title-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.wrap-title-style[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:100px;height:1px;background-color:#e6e9ee;border:none;display:flex;flex:1}.wrap-title-style[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ad8ad8;margin:0 10px} .select-container{margin:0 auto} .select-container .select-container__select-option{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content} .select-container .select-container__select-option .account-detail{height:112px;display:flex;flex-direction:column;padding:15px 0;justify-content:space-between}.wrap-action-failed[_ngcontent-%COMP%]{margin-top:40px}.wrap-action-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%]{display:flex;text-align:center;flex-direction:column;font-size:14px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%]{width:420px;justify-content:space-between;display:flex}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:200px}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-failed[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child, .wrap-action-successfully[_ngcontent-%COMP%] .content-successfully[_ngcontent-%COMP%] .wrap-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{color:#42236a}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%], .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%]{width:300px;margin:0 auto;color:#ad8ad8}.wrap-action-failed[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span, .wrap-action-successfully[_ngcontent-%COMP%] .content-failed[_ngcontent-%COMP%] .message-failed[_ngcontent-%COMP%] span{color:#42236a}.saving-wrap-card[_ngcontent-%COMP%]{border-top:1px solid #e6e9ee;display:flex}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%]{margin:16px 0;display:flex;flex:1;flex-direction:column}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:#ad8ad8;line-height:24px;margin-bottom:5px}.saving-wrap-card[_ngcontent-%COMP%] .wrap-card-item[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{font-weight:500;line-height:24px;word-break:break-word;padding-right:10px}.wrap-btn-saving[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{min-width:190px!important;max-width:288px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:24px}.btn-success[_ngcontent-%COMP%]{max-width:344px;width:100%!important;height:48px;border-radius:5px;border:none;font-size:14px;font-weight:500;margin:24px auto 0;max-width:344px}@media only screen and (min-width:1440px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:57px}}@media only screen and (min-width:1130px) and (max-width:1439px){.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:65px}}@media only screen and (min-width:576px) and (max-width:1129px){.wrap-other-btn[_ngcontent-%COMP%]{right:-23px}.wrap-other-btn[_ngcontent-%COMP%] .other-btn-inner[_ngcontent-%COMP%]{top:121px}}@media only screen and (max-width:575px){.wrap-other-btn[_ngcontent-%COMP%]{left:0;top:-25px}}@media screen and (max-width:575px){.wrap-btn-saving[_ngcontent-%COMP%]{justify-content:center}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%]{margin-right:0!important;order:2;margin-top:16px}.wrap-btn-saving[_ngcontent-%COMP%] .btn-again[_ngcontent-%COMP%], .wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{width:100%}.wrap-btn-saving[_ngcontent-%COMP%] .btn-home[_ngcontent-%COMP%]{order:1}}@media screen and (min-width:576px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;display:flex;justify-content:center;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{margin-right:24px}}@media screen and (max-width:575px){.btn-saving[_ngcontent-%COMP%]{width:100%;margin:0 auto;max-width:100%!important;display:flex;flex-direction:column;padding-top:24px}.btn-saving[_ngcontent-%COMP%] .btn-negative[_ngcontent-%COMP%]{order:2;margin-top:16px}.btn-saving[_ngcontent-%COMP%] .btn-positive[_ngcontent-%COMP%]{order:1}.style-btn-1[_ngcontent-%COMP%]{width:100%!important}}.autoroll-setting[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:496px;width:100%;margin:0 auto}.autoroll-success[_ngcontent-%COMP%]{margin-top:55px}.autoroll-success[_ngcontent-%COMP%] .action-success{max-width:360px!important}.autoroll-success[_ngcontent-%COMP%] .action-success span{font-weight:700}@media screen and (min-width:768px){.success-wrapper[_ngcontent-%COMP%]{display:flex}.success-wrapper[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%], .success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%]{width:50%}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%]{width:100%;background-color:#fff;border-radius:5px;display:flex;flex-direction:column}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%]{min-width:127px;display:flex;width:100%;padding:24px 24px 20px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .avatar-wrapper[_ngcontent-%COMP%]{width:50px;height:50px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .avatar-wrapper[_ngcontent-%COMP%] .img-account{width:50px;height:50px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .account-detail-wrapper[_ngcontent-%COMP%]{padding-left:20px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .other-info[_ngcontent-%COMP%]{min-width:97px;padding-top:20px;padding-left:24px;padding-bottom:24px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%]{width:100%;margin-top:24px;display:flex;justify-content:center}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:calc(100% - 24px);font-weight:500;height:48px}}@media screen and (max-width:767px){.btn-success[_ngcontent-%COMP%]{max-width:100%!important}.success-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.success-wrapper[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%]{width:100%}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%]{width:100%;margin-top:16px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%]{width:100%;background-color:#fff;border-radius:5px;display:flex;flex-direction:column}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%]{min-width:127px;display:flex;width:100%;padding:24px 24px 20px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .avatar-wrapper[_ngcontent-%COMP%]{width:50px;height:50px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .avatar-wrapper[_ngcontent-%COMP%] .img-account{width:50px;height:50px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .account-detail-wrapper[_ngcontent-%COMP%]{padding-left:20px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%] .other-info[_ngcontent-%COMP%]{min-width:97px;padding-top:20px;padding-left:24px;padding-bottom:24px}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%]{width:100%;margin-top:24px;display:flex;justify-content:center}.success-wrapper[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%;font-weight:500;height:48px}}.line-vertical[_ngcontent-%COMP%]{width:calc(100% - 48px);margin-left:24px;height:1.01px;background-color:#f6f6fe}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.text-title[_ngcontent-%COMP%]{width:100%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;word-wrap:break-word;font-weight:400;color:#ad8ad8}.text-bold[_ngcontent-%COMP%]{width:100%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;word-wrap:break-word;font-weight:500;margin-top:3px}.text-normal[_ngcontent-%COMP%]{width:100%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;word-wrap:break-word;font-weight:400;margin-top:3px}"]],data:{}});function Jn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,9,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,8,"div",[["class","autoroll-setting"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[["class","title-style-1"],["style","text-align: center;margin-bottom: 8px;"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,2,"span",[["style","font-size: 16px;margin-bottom: 24px;text-align: center;"]],null,null,null,null,null)),(n()(),e.Lb(6,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(8,0,null,null,1,"app-saving-resume-setting",[],null,[[null,"savingResumeNext"]],(function(n,t,l){var e=!0;return"savingResumeNext"===t&&(e=!1!==n.component.savingResumeNext(l)&&e),e}),jn,En)),e.qb(9,770048,null,0,Fn,[v,nn.e],{dataConfig:[0,"dataConfig"]},{savingResumeNext:"savingResumeNext"})],(function(n,t){n(t,9,0,t.component.dataSavingDetai)}),(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("saving.autoroll.text_3"))),n(t,6,0,e.Mb(t,6,0,e.Db(t,7).transform("saving.autoroll.text_2")))}))}function Qn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"app-confirm-info",[],null,[[null,"clickConfirm"],[null,"clickCancel"]],(function(n,t,l){var e=!0,i=n.component;return"clickConfirm"===t&&(e=!1!==i.confirmInfo(l)&&e),"clickCancel"===t&&(e=!1!==i.cancelConfirmInfo()&&e),e}),Yn,$n)),e.qb(2,638976,null,0,Kn,[r.j],{confirmInfoConfig:[0,"confirmInfoConfig"]},{clickConfirm:"clickConfirm",clickCancel:"clickCancel"})],(function(n,t){n(t,2,0,t.component.confirmInfoConfig)}),null)}function Xn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"app-otp",[["class","margin-otp"]],null,[[null,"confirmOtp"]],(function(n,t,l){var e=!0;return"confirmOtp"===t&&(e=!1!==n.component.clickConfirmOtp(l)&&e),e}),en.b,en.a)),e.qb(2,4308992,[[1,4]],0,an.a,[C.a,nn.e,un.a,r.j,M.a,p.m,M.a],{authMethod:[0,"authMethod"],smsTemplate:[1,"smsTemplate"],smsParams:[2,"smsParams"]},{confirmOtp:"confirmOtp"})],(function(n,t){var l=t.component;n(t,2,0,l.verifyConfig.authMethod.toLowerCase(),l.smsTemplate,l.smsParams)}),null)}function Zn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,12,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(2,638976,null,0,on.a,[],{title:[0,"title"],content:[1,"content"],success:[2,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,0,8,"div",[["class","btn-saving"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"button",[["class","btn-negative btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickAgain()&&e),e}),null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,4,"button",[["class","btn-positive btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,10).onClick()&&i),i}),null,null)),e.qb(10,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(11,1),(n()(),e.Lb(12,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,2,0,e.vb(1,"",e.Mb(t,2,0,e.Db(t,3).transform("reset_password.fail.title")),""),e.vb(1,"",e.Mb(t,2,1,e.Db(t,4).transform("txt_common_error-1")),""),!1);var l=n(t,11,0,"/main");n(t,10,0,l)}),(function(n,t){n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("general.btn_retry"))),n(t,12,0,e.Mb(t,12,0,e.Db(t,13).transform("menu.home")))}))}function nt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,15,"div",[["class","account-info"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"div",[["class","avatar-wrapper"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,1,"app-avatar",[["class","img-account"]],null,null,null,rn.b,rn.a)),e.qb(3,114688,null,0,sn.a,[],{name:[0,"name"]},null),(n()(),e.rb(4,0,null,null,11,"div",[["class","account-detail-wrapper"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,3,"div",[["class","text-title"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,2,"div",[["class","text-bold"]],null,null,null,null,null)),(n()(),e.rb(10,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(11,null,["",""])),(n()(),e.rb(12,0,null,null,3,"div",[["class","text-normal"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(14,null,["",""])),e.Hb(15,1)],(function(n,t){n(t,3,0,t.component.successInfo.accountName)}),(function(n,t){var l=t.component;n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("inquiry.saving.success.detail.title_1"))),n(t,11,0,l.successInfo.accountName);var i=e.Mb(t,14,0,n(t,15,0,e.Db(t.parent.parent,0),l.successInfo.accountNumber));n(t,14,0,i)}))}function tt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"div",[["class","line-vertical"]],null,null,null,null,null))],null,null)}function lt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,34,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,33,"div",[["class","success-wrapper"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,4,"div",[["class","left-content"]],[[2,"margin-top-20",null]],null,null,null,null)),(n()(),e.rb(3,0,null,null,3,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(4,638976,null,0,on.a,[],{title:[0,"title"],content:[1,"content"],success:[2,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,27,"div",[["class","right-content"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,22,"div",[["class","detail-wrapper"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,nt)),e.qb(10,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,tt)),e.qb(12,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(13,0,null,null,8,"div",[["class","other-info"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,3,"div",[["class","text-title"]],null,null,null,null,null)),(n()(),e.rb(15,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(16,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(18,0,null,null,3,"div",[["class","text-bold"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(20,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(22,0,null,null,0,"div",[["class","line-vertical"]],null,null,null,null,null)),(n()(),e.rb(23,0,null,null,7,"div",[["class","other-info"]],null,null,null,null,null)),(n()(),e.rb(24,0,null,null,3,"div",[["class","text-title"]],null,null,null,null,null)),(n()(),e.rb(25,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(26,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(28,0,null,null,2,"div",[["class","text-bold"]],null,null,null,null,null)),(n()(),e.rb(29,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(30,null,["",""])),(n()(),e.rb(31,0,null,null,3,"div",[["class","action-wrapper"]],null,null,null,null,null)),(n()(),e.rb(32,0,null,null,2,"button",[["class","btn-primary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickSuccess()&&e),e}),null,null)),(n()(),e.Lb(33,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,4,0,e.vb(1,"",e.Mb(t,4,0,e.Db(t,5).transform("inquiry.saving.success.icon.title")),""),e.vb(1,"",e.Mb(t,4,1,e.Db(t,6).transform("inquiry.saving.success.icon.subtitle")),""),!0),n(t,10,0,"saving.add_term.text_4"!=l.successInfo.harvest),n(t,12,0,"saving.add_term.text_4"!=l.successInfo.harvest)}),(function(n,t){var l=t.component;n(t,2,0,"saving.add_term.text_4"!=l.successInfo.harvest),n(t,16,0,e.Mb(t,16,0,e.Db(t,17).transform("inquiry.saving.success.detail.title_2"))),n(t,20,0,e.Mb(t,20,0,e.Db(t,21).transform(l.successInfo.harvest))),n(t,26,0,e.Mb(t,26,0,e.Db(t,27).transform("inquiry.saving.success.detail.title_3"))),n(t,30,0,l.successInfo.transactionId),n(t,33,0,e.Mb(t,33,0,e.Db(t,34).transform("general.btn_completed")))}))}function et(n){return e.Nb(0,[e.Fb(0,s.a,[]),e.Jb(671088640,1,{otpComponent:0}),(n()(),e.rb(2,0,null,null,11,"div",[],null,null,null,null,null)),e.qb(3,16384,null,0,o.r,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),e.gb(16777216,null,null,1,null,Jn)),e.qb(5,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Qn)),e.qb(7,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Xn)),e.qb(9,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Zn)),e.qb(11,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,lt)),e.qb(13,278528,null,0,o.s,[e.N,e.K,o.r],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(n,t){var l=t.component;n(t,3,0,l.curStatus$.value),n(t,5,0,l.savingStatus.AutoRollSetting),n(t,7,0,l.savingStatus.ConfirmInfo),n(t,9,0,l.savingStatus.InputOTP),n(t,11,0,l.savingStatus.VerifyFailed),n(t,13,0,l.savingStatus.VerifySuccessfully)}),null)}function it(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-autoroll-setting",[],null,null,null,et,Wn)),e.qb(1,114688,null,0,Gn,[v,C.a,r.j,p.m],null,null)],(function(n,t){n(t,1,0)}),null)}var at=e.nb("app-autoroll-setting",Gn,it,{},{},[]),ut=l("o3Yy"),ct=l("Mrkb");class ot{constructor(n,t){this.commonService=n,this.router=t,this.SPECIAL_CHAR=/[^\w\s]/gi,this.backUrl=""}ngOnInit(){this.savingDetail=history.state.savingDetail,this.backUrl=history.state.urlRoot,this.commonService.setPageTitle("txt_edit_saving_name_input_title"),this.showStep("INPUT_NEW_NAME")}ngAfterViewInit(){this.txtNewName.focus()}isValid(){return this.txtNewName&&this.txtNewName.haveValue()}verify(){let n={accountNumber:this.savingDetail.acctNo,accountName:this.txtNewName.getValue()};this.commonService.callApi({method:"post",url:"savings-presentation-service/v1/update-name/verify",data:n,success:n=>{this.responseVerify=n,this.showStep("OTP")}})}confirmOtp(n){this.commonService.callApi({method:"post",data:{id:this.responseVerify.id,authMethod:this.responseVerify.authMethod,otpCode:n.otp,otpTransactionId:n.transactionId},url:"savings-presentation-service/v1/update-name/confirm",success:n=>{this.showStep("SUCCESS")},error:n=>{let t=Object(f.d)(n,"error.errorMessage.errorCode");["HYD-70-110","HYD-70-111","HYD-70-113","HYD-70-114","HYD-70-118","HYD-70-119","HYD-70-104","HYD-70-105"].includes(t)?this.otpComponent.countOTP():this.showStep("FAIL")}})}backToDetailSaving(){this.router.navigateByUrl(this.backUrl)}showStep(n){switch(this.step=n,n){case"INPUT_NEW_NAME":this.commonService.showBackButton(()=>{this.backToDetailSaving()});break;case"OTP":this.commonService.showBackButton(()=>{this.showStep("INPUT_NEW_NAME")});break;case"SUCCESS":case"FAIL":this.commonService.showBreadcrumb(!1)}}}var rt=e.pb({encapsulation:0,styles:[[".edit-new-name[_ngcontent-%COMP%]{width:496px;margin:0 auto}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%] .title-action[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center;color:#42236a;margin-bottom:8px}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%] .description-action[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#42236a}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%] .txtNewName[_ngcontent-%COMP%]{width:100%;margin:20px 0 24px}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%] tpb-textbox .form-control{text-overflow:ellipsis}.edit-new-name[_ngcontent-%COMP%] .input-new-name[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:344px}.edit-new-name[_ngcontent-%COMP%] .text-center[_ngcontent-%COMP%]{display:flex;justify-content:center}.edit-new-name[_ngcontent-%COMP%] .text-center[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:345px}.edit-new-name[_ngcontent-%COMP%] .text-center[_ngcontent-%COMP%] .btn-from-success[_ngcontent-%COMP%]{margin:0!important}@media screen and (max-width:520px){.edit-new-name[_ngcontent-%COMP%]{width:100%}.edit-new-name[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%!important;margin:0!important}.edit-new-name[_ngcontent-%COMP%] .action-fail-md[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:2px!important;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.edit-new-name[_ngcontent-%COMP%] .action-fail-md[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{margin-right:2px!important;margin-left:0!important}}"]],data:{}});function st(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"app-otp",[],null,[[null,"confirmOtp"]],(function(n,t,l){var e=!0;return"confirmOtp"===t&&(e=!1!==n.component.confirmOtp(l)&&e),e}),en.b,en.a)),e.qb(2,4308992,[[1,4],["otpComponent",4]],0,an.a,[C.a,nn.e,un.a,r.j,M.a,p.m,M.a],{authMethod:[0,"authMethod"]},{confirmOtp:"confirmOtp"})],(function(n,t){n(t,2,0,t.component.responseVerify.authMethod.toLowerCase())}),null)}function gt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,9,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","mt-4"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,3,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(3,638976,null,0,on.a,[],{title:[0,"title"],content:[1,"content"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,null,3,"div",[["class","mt-3 text-center"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"button",[["class","btn-default btn btn-primary ml-3 btn-from-success"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.backToDetailSaving()&&e),e}),null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,3,0,e.vb(1,"",e.Mb(t,3,0,e.Db(t,4).transform("txt_edit_saving_name_success_title")),""),e.vb(1,"",e.Mb(t,3,1,e.Db(t,5).transform("txt_edit_saving_name_success_description")),""))}),(function(n,t){n(t,8,0,e.Mb(t,8,0,e.Db(t,9).transform("general.btn_done")))}))}function pt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"div",[["class","action-fail-md"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","mt-4"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,3,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(3,638976,null,0,on.a,[],{title:[0,"title"],content:[1,"content"],success:[2,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,null,7,"div",[["class","mt-3 text-center"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"button",[["class","btn-default btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.backToDetailSaving()&&e),e}),null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,3,"button",[["class","btn-default btn btn-primary ml-3"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,11).onClick()&&i),i}),null,null)),e.qb(11,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),(n()(),e.Lb(12,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,3,0,e.vb(1,"",e.Mb(t,3,0,e.Db(t,4).transform("txt_edit_saving_name_unsuccess_title")),""),e.vb(1,"",e.Mb(t,3,1,e.Db(t,5).transform("txt_edit_saving_name_unsuccess_description")),""),!1),n(t,11,0,"/main")}),(function(n,t){n(t,8,0,e.Mb(t,8,0,e.Db(t,9).transform("general.btn_retry"))),n(t,12,0,e.Mb(t,12,0,e.Db(t,13).transform("menu.home")))}))}function bt(n){return e.Nb(0,[e.Jb(671088640,1,{otpComponent:0}),e.Jb(671088640,2,{txtNewName:0}),(n()(),e.rb(2,0,null,null,19,"div",[["class","edit-new-name"]],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,12,"div",[["class","input-new-name"]],[[2,"d-none",null]],null,null,null,null)),(n()(),e.rb(4,0,null,null,2,"span",[["class","title-action"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,2,"span",[["class","description-action"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,2,"tpb-textbox",[["class","txtNewName"],["maxlength","100"]],null,null,null,ut.b,ut.a)),e.qb(11,114688,[[2,4],["txtNewName",4]],0,ct.a,[],{placeholder:[0,"placeholder"],maxlength:[1,"maxlength"],vietnamese:[2,"vietnamese"],exclude:[3,"exclude"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(13,0,null,null,2,"button",[["class","btn-default btn btn-primary ml-3"]],[[8,"disabled",0]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.verify()&&e),e}),null,null)),(n()(),e.Lb(14,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,st)),e.qb(17,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,gt)),e.qb(19,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,pt)),e.qb(21,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,11,0,e.vb(1,"",e.Mb(t,11,0,e.Db(t,12).transform("txt_edit_saving_name_input_placeholder")),""),"100",!0,l.SPECIAL_CHAR),n(t,17,0,"OTP"==l.step),n(t,19,0,"SUCCESS"==l.step),n(t,21,0,"FAIL"==l.step)}),(function(n,t){var l=t.component;n(t,3,0,"INPUT_NEW_NAME"!==l.step),n(t,5,0,e.Mb(t,5,0,e.Db(t,6).transform("txt_edit_saving_name_input_title"))),n(t,8,0,e.Mb(t,8,0,e.Db(t,9).transform("txt_edit_saving_name_input_description"))),n(t,13,0,!l.isValid()),n(t,14,0,e.Mb(t,14,0,e.Db(t,15).transform("general.btn_update")))}))}function dt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-edit-saving-name",[],null,null,null,bt,rt)),e.qb(1,4308992,null,0,ot,[C.a,p.m],null,null)],(function(n,t){n(t,1,0)}),null)}var mt=e.nb("app-edit-saving-name",ot,dt,{},{},[]),ht=l("Bkly"),ft=l("inBx"),_t=l("u7Pe"),Ct=l("U/U4"),vt=l("DqX5"),Mt=l("nGrN"),Ot=l("Y5q3"),Pt=l("mnTu"),xt=l("8ZiD");class wt{constructor(n,t,l){this.formGroup=n,this.authService=t,this.commonService=l,this.saving_type="",this.formatMoneyPipe=new g.a,this.isShowSuggest=!1,this.suggests=[],this.moneyNotes=[],this.selectedNoteIndex=-1,this.blur=new e.m}ngOnInit(){this.commonFormGroups=this.formGroup.group({money:new nn.f("")}),this.initMoneyNote()}resetForm(){this.setValue(""),this.selectedNoteIndex=-1}initMoneyNote(){this.moneyNotes="TK_DIEN_TU"===this.saving_type?[{id:1,method:"1000000"},{id:1,method:"3000000"},{id:1,method:"5000000"},{id:1,method:"10000000"},{id:1,method:"20000000"},{id:1,method:"30000000"},{id:1,method:"50000000"},{id:1,method:"100000000"}]:[{id:1,method:"10000000"},{id:1,method:"20000000"},{id:1,method:"30000000"},{id:1,method:"50000000"},{id:1,method:"100000000"},{id:1,method:"200000000"},{id:1,method:"300000000"},{id:1,method:"500000000"}]}getValue(){return this.txtMoney.nativeElement.value}getValueNumber(){let n=this.getValue();return""===n?0:(n=Object(f.o)(n),Number(n))}setValue(n){this.txtMoney.nativeElement.value=n}showSuggest(){this.selectedNoteIndex=-1;let n=this.getValue();if(n=n.replace(/\,/gi,"").trim(),0===n.length||n.length>12)return;let t="TK_DIEN_TU"===this.saving_type?1e6:1e7;this.suggests=[];for(let l=0;l<=8-n.length;l++)l<=3&&(this.suggests[l]=Number(n)*t,t*=10);this.isShowSuggest=!0}closeDropDown(n){document.querySelector(".suggest").contains(n.target)||(this.isShowSuggest=!1)}onBlur(){this.blur.emit()}selectSuggest(n){this.setValue(Object(f.e)(n.toString())),this.isShowSuggest=!1,this.blur.emit()}selectMoneyNote(n,t){this.selectedNoteIndex=t,this.getValue()!==(n=Object(f.e)(n))&&(this.setValue(n),this.blur.emit())}}var yt=e.pb({encapsulation:0,styles:[[".money-container[_ngcontent-%COMP%]{height:45px;padding-right:15px;padding-left:15px;background:#fcfcfc;border-radius:4px;border:1px solid #e2d8ee;margin-bottom:16px;position:relative}.money-input[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%}.money-input[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%]{font-weight:500}.money-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:9;border:0;outline:0;background:#fcfcfc;font-weight:500}.money-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400;font-size:14px}.money-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400;font-size:14px}.money-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400;font-size:14px}.money-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-weight:400;font-size:14px}.money-input[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.method-detail[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #e2d8ee;color:#42236a;background:#fcfcfc;margin-bottom:8px;font-size:12px;text-align:center;height:48px;line-height:48px;font-weight:500;width:118px}.method-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.method-detail__actived[_ngcontent-%COMP%]{border-radius:5px;background:#ff9800;color:#fff}.method[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap}.method-detail[_ngcontent-%COMP%]:hover{background:#ff9800;transition:.4s;color:#fff;cursor:pointer}.suggest[_ngcontent-%COMP%]{position:absolute;display:none;top:44px;left:-1px;background:#fff;width:calc(100% + 2px);border-radius:5px;box-shadow:0 0 20px 0 rgba(0,0,0,.03)}.suggest-detail[_ngcontent-%COMP%]{padding:11px 15px;color:#42236a}.suggest-detail__display[_ngcontent-%COMP%]{display:block}.suggest-detail[_ngcontent-%COMP%]:hover{background:#e2d8ee;transition:.4s;color:#fff;cursor:pointer}.icon-money-qanda[_ngcontent-%COMP%]{height:16px;margin-left:5px;cursor:pointer}.text-color__orange[_ngcontent-%COMP%]{color:#ff9800}.text-bold[_ngcontent-%COMP%]{font-weight:500}"]],data:{}});function kt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","suggest-detail"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.selectSuggest(n.context.$implicit)&&e),e}),null,null)),(n()(),e.Lb(1,null,[" "," "])),e.Hb(2,2)],null,(function(n,t){var l=e.Mb(t,1,0,n(t,2,0,e.Db(t.parent,0),t.context.$implicit,"VND"));n(t,1,0,l)}))}function St(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"div",[["class","method-detail"]],[[2,"method-detail__actived",null]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.selectMoneyNote(n.context.$implicit.method,n.context.index)&&e),e}),null,null)),(n()(),e.rb(1,0,null,null,2,"p",[],null,null,null,null,null)),(n()(),e.Lb(2,null,[""," VND"])),e.Hb(3,2)],null,(function(n,t){n(t,0,0,t.context.index===t.component.selectedNoteIndex);var l=e.Mb(t,2,0,n(t,3,0,e.Db(t.parent,0),t.context.$implicit.method,"VND"));n(t,2,0,l)}))}function Dt(n){return e.Nb(0,[e.Fb(0,g.a,[]),e.Jb(402653184,1,{txtMoney:0}),(n()(),e.rb(2,0,null,null,20,"div",[["class","money-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,t,l){var i=!0;return"submit"===t&&(i=!1!==e.Db(n,3).onSubmit(l)&&i),"reset"===t&&(i=!1!==e.Db(n,3).onReset()&&i),i}),null,null)),e.qb(3,540672,null,0,nn.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,nn.c,null,[nn.i]),e.qb(5,16384,null,0,nn.q,[[4,nn.c]],null,null),(n()(),e.rb(6,0,null,null,13,"div",[["class","money-input"]],null,null,null,null,null)),(n()(),e.rb(7,0,[[1,0],["txtMoney",1]],null,10,"input",[["formControlName","money"]],[[8,"placeholder",0],[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keyup"],[null,"blur"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"paste"]],(function(n,t,l){var i=!0,a=n.component;return"input"===t&&(i=!1!==e.Db(n,8)._handleInput(l.target.value)&&i),"blur"===t&&(i=!1!==e.Db(n,8).onTouched()&&i),"compositionstart"===t&&(i=!1!==e.Db(n,8)._compositionStart()&&i),"compositionend"===t&&(i=!1!==e.Db(n,8)._compositionEnd(l.target.value)&&i),"input"===t&&(i=!1!==e.Db(n,15).onInputChange(l)&&i),"paste"===t&&(i=!1!==e.Db(n,15).onPaste(l)&&i),"keyup"===t&&(i=!1!==a.showSuggest()&&i),"blur"===t&&(i=!1!==a.onBlur()&&i),i}),null,null)),e.qb(8,16384,null,0,nn.d,[e.C,e.k,[2,nn.a]],null,null),e.qb(9,540672,null,0,nn.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,nn.m,(function(n){return[n]}),[nn.k]),e.Ib(1024,null,nn.n,(function(n){return[n]}),[nn.d]),e.qb(12,671744,null,0,nn.h,[[3,nn.c],[6,nn.m],[8,null],[6,nn.n],[2,nn.z]],{name:[0,"name"]},null),e.Ib(2048,null,nn.o,null,[nn.h]),e.qb(14,16384,null,0,nn.p,[[4,nn.o]],null,null),e.qb(15,16384,null,0,xt.a,[e.k,nn.o],{inputMoney:[0,"inputMoney"]},null),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(18,0,null,null,1,"span",[["class","currency"]],null,null,null,null,null)),(n()(),e.Lb(-1,null,["VND"])),(n()(),e.rb(20,0,null,null,2,"div",[["class","suggest"]],[[2,"suggest-detail__display",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,kt)),e.qb(22,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(23,0,null,null,2,"div",[["class","method"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,St)),e.qb(25,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){var l=t.component;n(t,3,0,l.commonFormGroups),n(t,9,0,19),n(t,12,0,"money"),n(t,15,0,"15"),n(t,22,0,l.suggests),n(t,25,0,l.moneyNotes)}),(function(n,t){var l=t.component;n(t,2,0,e.Db(t,5).ngClassUntouched,e.Db(t,5).ngClassTouched,e.Db(t,5).ngClassPristine,e.Db(t,5).ngClassDirty,e.Db(t,5).ngClassValid,e.Db(t,5).ngClassInvalid,e.Db(t,5).ngClassPending),n(t,7,0,e.vb(1,"",e.Mb(t,7,0,"TK_DIEN_TU"===l.saving_type?e.Db(t,16).transform("txt_normal_saving_amount"):e.Db(t,17).transform("txt_lucky_saving_amount")),""),e.Db(t,9).maxlength?e.Db(t,9).maxlength:null,e.Db(t,14).ngClassUntouched,e.Db(t,14).ngClassTouched,e.Db(t,14).ngClassPristine,e.Db(t,14).ngClassDirty,e.Db(t,14).ngClassValid,e.Db(t,14).ngClassInvalid,e.Db(t,14).ngClassPending),n(t,20,0,l.isShowSuggest&&0!==l.suggests.length)}))}var Nt=l("g+80"),It=l("EKCy"),At=l("fhcM"),Tt=l("UuQ3"),Lt=l("wd/R");class Ft{constructor(n,t,l,e,i){this.commonService=n,this.router=t,this.langService=l,this.configService=e,this.translate=i,this.saving_package_type="",this.lst_Period=[],this.lst_setting_autorenew=_.d,this.errMoney="",this.currentDate=Lt().format("DD/MM/YYYY"),this.isActiveBtnInputInfo=!1,this.package_name="",this.dataVerify={},this.lang="",this.isShowDialogTDLucky=!1,this.isShowDialogTD=!1,this.isErrorMoneyAccount=!1,this.isShowLuckyMoney=!1,this.isConfirmTimeout=!1,this.configAllowLuckyMoney={amount:1e7,month:1},this.step="SELECT_TYPE"}ngOnInit(){this.commonService.showBreadcrumb(!0),this.lang=this.langService.getLang(),this.getSavingsConfiguration(),this.getInterestRateSummary(),history&&history.state.saving_package_type?(this.saving_package_type=history.state.saving_package_type,this.getInterestRate("TK_DIEN_TU"===this.saving_package_type?"HYDRO_TERM_DEPOSIT":"HYDRO_TERM_DEPOSIT_LUCKY"),this.setDefaultPackageName(),this.step="INPUT_INFO"):(this.saving_package_type="",this.step="SELECT_TYPE"),this.showStep(this.step)}setTitlePage(){"SELECT_TYPE"!==this.step&&"INPUT_INFO"!==this.step&&"INPUT_OTP"!==this.step&&"SUCCESS"!==this.step||this.commonService.setPageTitle("TK_DIEN_TU"===this.saving_package_type?"saving.add_term.title":"TK_TAI_LOC"===this.saving_package_type?"saving.add_term.title_td":"txt_create_saving_package"),"LUCKY-MONEY"===this.step&&this.commonService.setPageTitle("txt_create_saving_lucky_money")}showStep(n){switch(this.step=n,this.step){case"SELECT_TYPE":this.commonService.showBreadcrumb(!0);break;case"INPUT_INFO":history&&history.state.saving_package_type?this.commonService.showBreadcrumb(!0):this.commonService.showBackButton(this.backStep.bind(this));break;case"OVERVIEW":this.commonService.showBackButton(this.backStep.bind(this));break;case"INPUT_OTP":case"SUCCESS":case"FAIL":this.commonService.showBreadcrumb(!1);break;case"LUCKY-MONEY":this.commonService.showBackButton(this.backStep.bind(this))}this.setTitlePage()}backStep(){switch(this.step){case"OVERVIEW":this.showStep("INPUT_INFO");break;case"INPUT_INFO":this.saving_package_type="",this.showStep("SELECT_TYPE");break;case"LUCKY-MONEY":this.showStep("SUCCESS")}}clickSelectPackageType(n){this.saving_package_type=n,this.setDefaultPackageName(),this.getInterestRate("TK_DIEN_TU"===this.saving_package_type?"HYDRO_TERM_DEPOSIT":"HYDRO_TERM_DEPOSIT_LUCKY"),this.showStep("INPUT_INFO")}getSavingsConfiguration(){this.commonService.callApi({method:"get",progress:!1,url:b.a.SAVING_CONFIGURATION,success:n=>{n&&(this.saving_config=n.configuration)},error:n=>{this.commonService.showApiError(n)}})}getInterestRate(n){this.commonService.callApi({method:"get",progress:!0,url:b.a.SAVING_INTEREST_RATES+"?typeOfSavings="+n,success:n=>{n&&(this.lst_Period=n.interestRates,this.initDefaultDropdown()),this.checkValidMoney(),this.checkActiveBtnNextInputInfo()},error:n=>{this.commonService.showApiError(n)}})}initDefaultDropdown(){this.selectedRenew=this.lst_setting_autorenew[2],this.selectSettingRenew.itemSelected=this.translate.instant(this.lst_setting_autorenew[2].key);let n=null;for(let t=0;t{n&&(this.interestAmount=n.interestAmount,this.checkActiveBtnNextInputInfo())},error:n=>{this.commonService.showApiError(n)}}):(this.interestAmount=null,this.checkActiveBtnNextInputInfo())}getInterestRateSummary(){this.commonService.callApi({method:"get",progress:!1,url:b.a.SAVING_INTEREST_RATES_SUMMARY,success:n=>{n&&(this.interest_rate_summary=n.interestRatesSummary.filter(n=>"SAVY_NORMAL"!==n.group))}})}selectedChangePeriod(){this.periodSelected=this.selectPeriod.selectedValue,this.getInterestAmount("TK_DIEN_TU"===this.saving_package_type?"HYDRO_TERM_DEPOSIT":"HYDRO_TERM_DEPOSIT_LUCKY")}selectedChangeSettingRenew(){this.selectedRenew=this.selectSettingRenew.selectedValue,this.checkActiveBtnNextInputInfo()}inputMoneyChange(){this.savingAmount=this.savingMoney.getValueNumber(),this.checkValidMoney(),this.getInterestAmount("TK_DIEN_TU"===this.saving_package_type?"HYDRO_TERM_DEPOSIT":"HYDRO_TERM_DEPOSIT_LUCKY")}checkValidMoney(){this.errMoney="",""!==this.savingMoney.getValue().trim()&&("TK_DIEN_TU"===this.saving_package_type&&this.savingAmountthis.acc_recharge.availableBalance?(this.isActiveBtnInputInfo=!1,void(this.isErrorMoneyAccount=!0)):void(this.isActiveBtnInputInfo=!0);this.isActiveBtnInputInfo=!1}onAccRechargeSliderLoadSuccess(){this.acc_recharge=this.accRecharge.selectedItem}changeAccRecharge(){this.acc_recharge=this.accRecharge.selectedItem,this.checkActiveBtnNextInputInfo()}onAccReceivedSliderLoadSuccess(){this.acc_received=this.accReceived.selectedItem}changeAccReceived(){this.acc_received=this.accReceived.selectedItem}clickVerify(){this.commonService.callApi({method:bn.a.POST,url:b.a.SAVING_DEPOSIT_VERIFY_V2,data:{amount:this.savingAmount,currency:"VND",interestAmount:this.interestAmount,name:this.package_name,payoutAccountNumber:2!==this.selectedRenew.value?this.acc_received.BBAN:"",rate:this.periodSelected.rate,settlementType:this.selectedRenew.value,tenor:this.periodSelected.tenor,offsetAccountNumber:this.acc_recharge.BBAN,typeOfSavings:"TK_TAI_LOC"===this.saving_package_type?"HYDRO_TERM_DEPOSIT_LUCKY":null},success:n=>{this.dataVerify=n,this.showStep("OVERVIEW")},error:n=>{if("HYD-70-112"===Object(f.d)(n,"error.errorMessage.errorCode")){let t="vi"===this.lang?Object(f.d)(n,"error.errorMessage.messages.vn"):Object(f.d)(n,"error.errorMessage.messages.en");this.commonService.showGlobalError({description:t,buttonText:"general_btn_try_again",callback:()=>{this.router.navigate(["/main/saving"])}})}else this.commonService.showGlobalError({})}})}confirmOtp(n){this.commonService.callApi({method:bn.a.POST,url:b.a.SAVING_TD_CONFIRM,data:{id:this.dataVerify.id,depositType:"INTERNAL",otpCode:n.otp,authMethod:this.dataVerify.authMethod,otpTransactionId:n.transactionId},success:n=>{n&&(this.dataSuccess=n,this.createSavingSuccess())},error:n=>{let t=Object(f.d)(n,"error.errorMessage.errorCode");Object(f.n)(t)||Object(f.m)(t)?this.otpComponent.countOTP():(this.isConfirmTimeout=dn.j.includes(t),this.showStep("FAIL"))}})}viewDetailPackage(n){this.router.navigate(["/main/saving/term-deposit-detail"],{queryParams:{accountNumber:n}})}clickShowDialogTD(){"TK_DIEN_TU"===this.saving_package_type&&(this.isShowDialogTD=!0),"TK_TAI_LOC"===this.saving_package_type&&(this.isShowDialogTDLucky=!0)}createSavingSuccess(){this.isShowLuckyMoney=!1,this.showStep("SUCCESS"),this.savingAmount>=this.configAllowLuckyMoney.amount&&-1!==this.periodSelected.tenor.indexOf("M")&&this.configService.hasSavingLuckyDraw&&(this.isShowLuckyMoney=!0)}joinLuckyMoney(){this.isShowLuckyMoney=!1,this.commonService.callApi({method:bn.a.POST,url:"promotions-pandp-service/v1/event/saving-lucky-draw",data:{id:this.dataSuccess.id},success:n=>{this.viewDetailPackage(this.dataSuccess.accountNumber)},error:n=>{this.commonService.showGlobalError({callback:()=>{this.router.navigate(["/main/saving"])}})}})}}var Et=l("jtrZ"),qt=e.pb({encapsulation:0,styles:[[".create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%]{width:496px;margin:auto}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;text-align:center;line-height:28px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;padding:16px 18px;display:flex;margin-top:8px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .icon-package[_ngcontent-%COMP%]{margin-right:16px;align-self:center}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .icon-package[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:20px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-period[_ngcontent-%COMP%]{font-size:12px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-interest-rate[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:12px}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .package-interest-rate[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{color:#ff9800;cursor:pointer}.create-saving-package[_ngcontent-%COMP%] .select-package-type[_ngcontent-%COMP%] .card-select-package[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] .txt-color-2[_ngcontent-%COMP%]{color:#ad8ad8}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .btn-header-inner[_ngcontent-%COMP%]{display:flex}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .btn-header-inner[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;font-size:14px;font-weight:500;align-items:center}.create-saving-package[_ngcontent-%COMP%] .input-info-package-content[_ngcontent-%COMP%]{width:496px;margin:auto}.create-saving-package[_ngcontent-%COMP%] .input-info-package-content[_ngcontent-%COMP%] .select-account[_ngcontent-%COMP%]{margin-bottom:18px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .input-package-name[_ngcontent-%COMP%]{outline:0;margin:0 0 16px;border:1px solid #e2d8ee;width:100%;background-color:#fcfcfc;height:45px;border-radius:5px;padding:10px 15px;font-weight:500}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .input-money[_ngcontent-%COMP%] .err-money[_ngcontent-%COMP%]{text-align:center;color:#ff3b30}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400;font-size:14px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400;font-size:14px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400;font-size:14px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-weight:400;font-size:14px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .select-interest-rate[_ngcontent-%COMP%]{margin-bottom:16px}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .interest-amount[_ngcontent-%COMP%]{width:100%;height:85px;padding-left:15px;margin-bottom:16px;display:flex;flex-direction:column;border-radius:5px;border:1px solid #e2d8ee;background-color:#fcfcfc;justify-content:space-evenly}.create-saving-package[_ngcontent-%COMP%] .input-info-package[_ngcontent-%COMP%] .setting-autoroll[_ngcontent-%COMP%]{margin-bottom:24px}.create-saving-package[_ngcontent-%COMP%] .overview-info[_ngcontent-%COMP%]{min-height:300px;border-radius:5px}.create-saving-package[_ngcontent-%COMP%] .overview-info-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background-color:#fff}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-left[_ngcontent-%COMP%]{width:50%;height:300px;border-right:1px solid #e6e9ee;padding:25px 25px 25px 20px;display:flex;flex-direction:column}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%]{width:calc(50% - 1px);max-width:50%;height:300px;display:flex;flex-direction:column;padding:25px 25px 25px 20px}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-left[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{padding-bottom:20px;border-bottom:1px solid #e6e9ee;display:flex;flex-direction:column;margin-bottom:20px}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-left[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .txt-label[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .txt-label[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:#ad8ad8}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-left[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .txt-value[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .txt-value[_ngcontent-%COMP%]{font-weight:500;font-size:14px}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-left[_ngcontent-%COMP%] .non-border-bottom[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .non-border-bottom[_ngcontent-%COMP%]{border-bottom:none}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .card-account[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ee;border-radius:unset}.create-saving-package[_ngcontent-%COMP%] .overview-info-content-right[_ngcontent-%COMP%] .noti-rule-finalization[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;color:#ad8ad8}.create-saving-package[_ngcontent-%COMP%] .overview-info[_ngcontent-%COMP%] .rule-text-tpb[_ngcontent-%COMP%]{margin:16px auto 24px;width:296px;text-align:center}.create-saving-package[_ngcontent-%COMP%] .overview-info[_ngcontent-%COMP%] .rule-text-tpb[_ngcontent-%COMP%] .show-term-btn[_ngcontent-%COMP%]{color:#ff9800}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%]{width:50%}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .left-content-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .left-content-info[_ngcontent-%COMP%] .noti[_ngcontent-%COMP%]{font-weight:400;line-height:24px;margin-bottom:12px;text-transform:uppercase}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .left-content-info[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-weight:300;font-size:30px;line-height:42px}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%]{width:50%}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background-color:#fff;padding:0 24px 25px;border-radius:5px}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .from-account[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ee;margin-bottom:20px}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #e6e9ee;padding-bottom:20px;margin-bottom:20px}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-left[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-right[_ngcontent-%COMP%]{width:calc(50% - 8px);display:flex;flex-direction:column}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-left[_ngcontent-%COMP%] .txt-label[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-right[_ngcontent-%COMP%] .txt-label[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:#ad8ad8}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-left[_ngcontent-%COMP%] .txt-value[_ngcontent-%COMP%], .create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row-item-right[_ngcontent-%COMP%] .txt-value[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .non-border-bottom[_ngcontent-%COMP%]{border-bottom:none}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-success[_ngcontent-%COMP%]{margin-top:24px}.create-saving-package[_ngcontent-%COMP%] .success[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] .action-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:192px;height:48px}.create-saving-package[_ngcontent-%COMP%] .lucky-money[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.create-saving-package[_ngcontent-%COMP%] .lucky-money[_ngcontent-%COMP%] .img-left[_ngcontent-%COMP%]{width:336px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-right:24px;display:flex;flex-direction:column}.create-saving-package[_ngcontent-%COMP%] .lucky-money[_ngcontent-%COMP%] .img-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:200px}.create-saving-package[_ngcontent-%COMP%] .lucky-money[_ngcontent-%COMP%] .img-left[_ngcontent-%COMP%] .btn-join[_ngcontent-%COMP%]{height:48px;margin-top:16px}.create-saving-package[_ngcontent-%COMP%] .lucky-money[_ngcontent-%COMP%] .content-right[_ngcontent-%COMP%]{width:calc(100% - 336px)}[_nghost-%COMP%] account-card .image-section{width:unset!important;margin-right:20px}[_nghost-%COMP%] .suggest-detail__display{z-index:2}.not-enough-money[_ngcontent-%COMP%] .txt-not-enough[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:24px;margin-bottom:45px} .modal-lucky-money{display:flex;flex-direction:column} .modal-lucky-money .modal-body{padding:0!important} .modal-lucky-money .img-cover{height:370px;background-color:#e2d8ee;display:flex;flex-direction:column;background-size:cover;background-image:url(img_saving_gift.8b7485e3dfa8e0381bd1.jpg)} .modal-lucky-money .img-cover .ic-close-modal{padding-top:10px;padding-right:10px;cursor:pointer} .modal-lucky-money .img-cover .img-temp{height:100%;align-self:center} .modal-lucky-money .img-cover .img-temp img{width:85px;height:70px;margin-top:100px} .modal-lucky-money .lucky-info{display:flex;flex-direction:column;padding:20px} .modal-lucky-money .lucky-info .title{font-size:24px;font-weight:500;line-height:36px;text-align:center;margin-bottom:16px} .modal-lucky-money .lucky-info .description{font-weight:400;margin-bottom:28px} .modal-lucky-money .lucky-info .btn-action{display:flex;justify-content:space-between} .modal-lucky-money .lucky-info .btn-action button{height:48px} .modal-lucky-money .lucky-info .btn-action .btn-skip{width:180px;margin-right:16px} .modal-lucky-money .lucky-info .btn-action .btn-join{width:264px}"]],data:{}});function Bt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_piggy_2.svg"]],null,null,null,null,null))],null,null)}function jt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/icons/inquiry/ic_gold_2.svg"]],null,null,null,null,null))],null,null)}function Rt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,26,"div",[["class","card-select-package"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","icon-package"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,Bt)),e.qb(3,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,jt)),e.qb(5,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(6,0,null,null,20,"div",[["class","package-info"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,3,"div",[["class","package-name"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(11,0,null,null,5,"div",[["class","package-period"]],null,null,null,null,null)),(n()(),e.rb(12,0,null,null,2,"span",[["class","txt-color-2"]],null,null,null,null,null)),(n()(),e.Lb(13,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(15,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(16,null,["",""])),(n()(),e.rb(17,0,null,null,9,"div",[["class","package-interest-rate"]],null,null,null,null,null)),(n()(),e.rb(18,0,null,null,5,"div",[["class","interest-rate"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,2,"span",[["class","txt-color-2"]],null,null,null,null,null)),(n()(),e.Lb(20,null,[""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(22,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(23,null,[""," %"])),(n()(),e.rb(24,0,null,null,2,"div",[["class","action"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickSelectPackageType("HYDROBANK"===n.context.$implicit.group?"TK_DIEN_TU":"TK_TAI_LOC")&&e),e}),null,null)),(n()(),e.Lb(-1,null,["Ch\u1ecdn "])),(n()(),e.rb(26,0,null,null,0,"i",[["class","fas fa-chevron-right ml-2"]],null,null,null,null,null))],(function(n,t){n(t,3,0,"HYDROBANK"===t.context.$implicit.group),n(t,5,0,"EBANK_TAI_LOC"===t.context.$implicit.group)}),(function(n,t){var l=t.component;n(t,8,0,e.Mb(t,8,0,"HYDROBANK"===t.context.$implicit.group?e.Db(t,9).transform("saving.common.saving_package_term"):e.Db(t,10).transform("saving.common.saving_package_fortune"))),n(t,13,0,e.Mb(t,13,0,e.Db(t,14).transform("txt_saving_package_term"))),n(t,16,0,"vi"===l.lang?t.context.$implicit.tenorDescVn:t.context.$implicit.tenorDescEn),n(t,20,0,e.Mb(t,20,0,e.Db(t,21).transform("txt_highest_interest_rate_saving"))),n(t,23,0,t.context.$implicit.maxRate)}))}function Vt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(2,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Rt)),e.qb(5,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){n(t,5,0,t.component.interest_rate_summary)}),(function(n,t){n(t,2,0,e.Mb(t,2,0,e.Db(t,3).transform("txt_select_saving_type_to_start")))}))}function Kt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(1,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,t){n(t,1,0,e.Mb(t,1,0,e.Db(t,2).transform("saving.add_term.text_hint_td")))}))}function $t(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(1,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,t){n(t,1,0,e.Mb(t,1,0,e.Db(t,2).transform("saving.add_term.text_btn_other_1")))}))}function Ut(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","err-money mb-2"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"i",[["class","fas fa-exclamation-triangle"]],null,null,null,null,null)),(n()(),e.Lb(2,null,["",""]))],null,(function(n,t){n(t,2,0,t.component.errMoney)}))}function zt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"select-option",[],null,null,null,X.b,X.a)),e.qb(1,114688,[[8,4]],0,Z.a,[],{value:[0,"value"],name:[1,"name"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.Lb(3,0,[" "," - ",""," "])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,1,0,t.context.$implicit,e.vb(3,"",t.context.$implicit.tenorDesc," - ",t.context.$implicit.rate,"",e.Mb(t,1,1,e.Db(t,2).transform("saving.add_term.placeholder_4")),""))}),(function(n,t){n(t,3,0,t.context.$implicit.tenorDesc,t.context.$implicit.rate,e.Mb(t,3,2,e.Db(t,4).transform("saving.add_term.placeholder_4")))}))}function Ht(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"select-option",[],null,null,null,X.b,X.a)),e.qb(1,114688,[[9,4]],0,Z.a,[],{value:[0,"value"],name:[1,"name"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.Lb(3,0,[" "," "])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,1,0,t.context.$implicit,e.vb(1,"",e.Mb(t,1,1,e.Db(t,2).transform(t.context.$implicit.key)),""))}),(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform(t.context.$implicit.key)))}))}function Yt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,12,"div",[],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(2,278528,null,0,o.l,[o.B],{ngClass:[0,"ngClass"]},null),(n()(),e.rb(3,0,null,null,9,"account-card",[["avatar",""],["name","acc_received.name"]],null,null,null,ht.b,ht.a)),e.qb(4,114688,null,0,ft.a,[],{avatar:[0,"avatar"],titleString:[1,"titleString"],name:[2,"name"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,0,2,"div",[["class","account"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),(n()(),e.rb(9,0,null,0,3,"div",[["class","more-info"]],null,null,null,null,null)),(n()(),e.rb(10,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(11,null,["",""])),e.Hb(12,1)],(function(n,t){n(t,2,0,"TK_TAI_LOC"===t.component.saving_package_type?"card-account":"non-card-account"),n(t,4,0,"",e.vb(1,"",e.Mb(t,4,1,e.Db(t,5).transform("saving.common.text_4")),""),"acc_received.name")}),(function(n,t){var l=t.component;n(t,8,0,l.acc_received.name);var i=e.Mb(t,11,0,n(t,12,0,e.Db(t.parent.parent,1),l.acc_received.BBAN));n(t,11,0,i)}))}function Gt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","noti-rule-finalization"]],null,null,null,null,null)),(n()(),e.Lb(1,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,t){n(t,1,0,e.Mb(t,1,0,e.Db(t,2).transform("txt_saving_packages_not_allow_settle")))}))}function Wt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"a",[["class","show-term-btn"],["href","https://tpb.vn/wps/wcm/connect/a8a5e5f2-0c8e-44bf-bf25-97eb9f44da14/%C4%90i%E1%BB%81u+kho%E1%BA%A3n+%C4%90i%E1%BB%81u+ki%E1%BB%87n+Ti%E1%BA%BFt+Ki%E1%BB%87m+%C4%90i%E1%BB%87n+T%E1%BB%AD.pdf?MOD=AJPERES&CVID=npBvrvV&CVID=npBvrvV"],["target","_blank"]],null,null,null,null,null)),(n()(),e.Lb(1,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(3,2)],null,(function(n,t){var l=e.Mb(t,1,0,n(t,3,0,e.Db(t.parent.parent,2),e.Mb(t,1,0,e.Db(t,2).transform("ewallet.add_link.term_btn")),1));n(t,1,0,l)}))}function Jt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"a",[["class","show-term-btn"],["href","https://tpb.vn/wps/wcm/connect/3dc413cf-b149-4133-873f-f14dd2a7b600/%C4%90i%E1%BB%81u+kho%E1%BA%A3n+%C4%90i%E1%BB%81u+ki%E1%BB%87n+Ti%E1%BA%BFt+Ki%E1%BB%87m+T%C3%A0i+L%E1%BB%99c+%C4%90i%E1%BB%87n+T%E1%BB%AD.pdf?MOD=AJPERES&CVID=npBvfSQ&CVID=npBvfSQ"],["target","_blank"]],null,null,null,null,null)),(n()(),e.Lb(1,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(3,2)],null,(function(n,t){var l=e.Mb(t,1,0,n(t,3,0,e.Db(t.parent.parent,2),e.Mb(t,1,0,e.Db(t,2).transform("ewallet.add_link.term_btn")),1));n(t,1,0,l)}))}function Qt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,61,"div",[["class","overview-info"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,38,"div",[["class","overview-info-content"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,25,"div",[["class","overview-info-content-left"]],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,5,"div",[["class","info-item"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,1,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),(n()(),e.rb(9,0,null,null,11,"div",[["class","info-item"]],null,null,null,null,null)),(n()(),e.rb(10,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(11,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(13,0,null,null,3,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(14,null,["",": "," VND"])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(16,2),(n()(),e.rb(17,0,null,null,3,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(18,null,["",": "," VND"])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(20,2),(n()(),e.rb(21,0,null,null,6,"div",[["class","info-item non-border-bottom"]],null,null,null,null,null)),(n()(),e.rb(22,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(23,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(25,0,null,null,2,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(26,null,[""," - ","",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(28,0,null,null,11,"div",[["class","overview-info-content-right"]],null,null,null,null,null)),(n()(),e.rb(29,0,null,null,6,"div",[["class","info-item mb-0"]],null,null,null,null,null)),(n()(),e.rb(30,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(31,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(33,0,null,null,2,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(34,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Yt)),e.qb(37,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Gt)),e.qb(39,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(40,0,null,null,12,"div",[["class","rule-text-tpb"]],null,null,null,null,null)),(n()(),e.rb(41,0,null,null,3,"span",[],null,null,null,null,null)),(n()(),e.Lb(42,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(44,2),(n()(),e.gb(16777216,null,null,1,null,Wt)),e.qb(46,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Jt)),e.qb(48,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(49,0,null,null,3,"span",[],null,null,null,null,null)),(n()(),e.Lb(50,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),e.Hb(52,2),(n()(),e.rb(53,0,null,null,8,"div",[["class","wrap-btn w-100 text-center"]],null,null,null,null,null)),(n()(),e.rb(54,0,null,null,4,"button",[["class","btn-cancel btn btn-secondary mr-2"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,55).onClick()&&i),i}),null,null)),e.qb(55,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(56,1),(n()(),e.Lb(57,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(59,0,null,null,2,"button",[["class","btn-confirm btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.showStep("INPUT_OTP")&&e),e}),null,null)),(n()(),e.Lb(60,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,37,0,l.selectedRenew&&"2"!==l.selectedRenew.value),n(t,39,0,"TK_TAI_LOC"===l.saving_package_type),n(t,46,0,"TK_DIEN_TU"===l.saving_package_type),n(t,48,0,"TK_TAI_LOC"===l.saving_package_type);var e=n(t,56,0,"/main/saving");n(t,55,0,e)}),(function(n,t){var l=t.component;n(t,5,0,e.Mb(t,5,0,e.Db(t,6).transform("txt_saving_package_name"))),n(t,8,0,l.package_name),n(t,11,0,e.Mb(t,11,0,e.Db(t,12).transform("saving.common.text_2")));var i=e.Mb(t,14,0,e.Db(t,15).transform("saving.common.text_5")),a=e.Mb(t,14,1,n(t,16,0,e.Db(t.parent,0),l.savingAmount,"VND"));n(t,14,0,i,a);var u=e.Mb(t,18,0,e.Db(t,19).transform("inquiry.saving_detail.accrued_interest")),c=e.Mb(t,18,1,n(t,20,0,e.Db(t.parent,0),l.interestAmount,"VND"));n(t,18,0,u,c),n(t,23,0,e.Mb(t,23,0,e.Db(t,24).transform("saving.common.text_3"))),n(t,26,0,l.periodSelected.tenorDesc,l.periodSelected.rate,e.Mb(t,26,2,e.Db(t,27).transform("saving.add_term.placeholder_4"))),n(t,31,0,e.Mb(t,31,0,e.Db(t,32).transform("inquiry.saving.success.detail.title_2"))),n(t,34,0,e.Mb(t,34,0,e.Db(t,35).transform(l.selectedRenew.key)));var o=e.Mb(t,42,0,n(t,44,0,e.Db(t.parent,2),e.Mb(t,42,0,e.Db(t,43).transform("ewallet.add_link.term_btn")),0));n(t,42,0,o);var r=e.Mb(t,50,0,n(t,52,0,e.Db(t.parent,2),e.Mb(t,50,0,e.Db(t,51).transform("ewallet.add_link.term_btn")),2));n(t,50,0,r),n(t,57,0,e.Mb(t,57,0,e.Db(t,58).transform("general.btn_cancel"))),n(t,60,0,e.Mb(t,60,0,e.Db(t,61).transform("general.btn_confirm")))}))}function Xt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","input-otp"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"app-otp",[],null,[[null,"confirmOtp"]],(function(n,t,l){var e=!0;return"confirmOtp"===t&&(e=!1!==n.component.confirmOtp(l)&&e),e}),en.b,en.a)),e.qb(2,4308992,[[1,4]],0,an.a,[C.a,nn.e,un.a,r.j,M.a,p.m,M.a],{authMethod:[0,"authMethod"]},{confirmOtp:"confirmOtp"})],(function(n,t){n(t,2,0,t.component.dataVerify.authMethod.toLowerCase())}),null)}function Zt(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,100,"div",[["class","success"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,10,"div",[["class","left-content"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,9,"action-result",[["class","text-center"]],null,null,null,cn.b,cn.a)),e.qb(3,638976,null,0,on.a,[],{title:[0,"title"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,0,6,"div",[["class","left-content-info"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"span",[["class","noti"]],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,2,"span",[["class","amount"]],null,null,null,null,null)),(n()(),e.Lb(10,null,[""," VND"])),e.Hb(11,2),(n()(),e.rb(12,0,null,null,88,"div",[["class","right-content"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,78,"div",[["class","content"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,10,"div",[["class","from-account"]],null,null,null,null,null)),(n()(),e.rb(15,0,null,null,9,"account-card",[["avatar",""],["name","acc_recharge.name"]],null,null,null,ht.b,ht.a)),e.qb(16,114688,null,0,ft.a,[],{avatar:[0,"avatar"],titleString:[1,"titleString"],name:[2,"name"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(18,0,null,0,2,"div",[["class","account"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(20,null,["",""])),(n()(),e.rb(21,0,null,0,3,"div",[["class","more-info"]],null,null,null,null,null)),(n()(),e.rb(22,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(23,null,["",""])),e.Hb(24,1),(n()(),e.rb(25,0,null,null,13,"div",[["class","row-item"]],null,null,null,null,null)),(n()(),e.rb(26,0,null,null,5,"div",[["class","row-item-left"]],null,null,null,null,null)),(n()(),e.rb(27,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(28,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(30,0,null,null,1,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(31,null,["",""])),(n()(),e.rb(32,0,null,null,6,"div",[["class","row-item-right"]],null,null,null,null,null)),(n()(),e.rb(33,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(34,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(36,0,null,null,2,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(37,null,[""," - ","",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(39,0,null,null,14,"div",[["class","row-item"]],null,null,null,null,null)),(n()(),e.rb(40,0,null,null,6,"div",[["class","row-item-left"]],null,null,null,null,null)),(n()(),e.rb(41,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(42,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(44,0,null,null,2,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(45,null,[""," VND"])),e.Hb(46,2),(n()(),e.rb(47,0,null,null,6,"div",[["class","row-item-right"]],null,null,null,null,null)),(n()(),e.rb(48,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(49,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(51,0,null,null,2,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(52,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(54,0,null,null,28,"div",[["class","row-item"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(56,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.rb(57,0,null,null,19,"div",[["class","row-item-left"]],null,null,null,null,null)),(n()(),e.rb(58,0,null,null,4,"span",[["class","txt-label"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(60,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.Lb(61,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(63,0,null,null,4,"span",[["class","txt-value"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(65,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.Lb(66,null,[""," - ",""])),e.Hb(67,1),(n()(),e.rb(68,0,null,null,4,"span",[["class","txt-label"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(70,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.Lb(71,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(73,0,null,null,3,"span",[["class","txt-value"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(75,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.Lb(76,null,["",""])),(n()(),e.rb(77,0,null,null,5,"div",[["class","row-item-right"]],null,null,null,null,null)),(n()(),e.rb(78,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(79,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(81,0,null,null,1,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(82,null,["",""])),(n()(),e.rb(83,0,null,null,8,"div",[["class","row-item non-border-bottom"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(85,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.rb(86,0,null,null,5,"div",[["class","row-item-left"]],null,null,null,null,null)),(n()(),e.rb(87,0,null,null,2,"span",[["class","txt-label"]],null,null,null,null,null)),(n()(),e.Lb(88,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(90,0,null,null,1,"span",[["class","txt-value"]],null,null,null,null,null)),(n()(),e.Lb(91,null,["",""])),(n()(),e.rb(92,0,null,null,8,"div",[["class","action-success"]],null,null,null,null,null)),(n()(),e.rb(93,0,null,null,2,"button",[["class","btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0,i=n.component;return"click"===t&&(e=!1!==i.viewDetailPackage(i.dataSuccess.accountNumber)&&e),e}),null,null)),(n()(),e.Lb(94,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(96,0,null,null,4,"button",[["class","btn-primary ml-3"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,97).onClick()&&i),i}),null,null)),e.qb(97,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(98,1),(n()(),e.Lb(99,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){var l=t.component;n(t,3,0,e.vb(1,"",e.Mb(t,3,0,e.Db(t,4).transform("transfer.message.transaction_success")),"")),n(t,16,0,"",e.vb(1,"",e.Mb(t,16,1,e.Db(t,17).transform("inquiry.account.transaction_from_account")),""),"acc_recharge.name"),n(t,56,0,"row-item",l.selectedRenew&&"2"===l.selectedRenew.value?"non-border-bottom":""),n(t,60,0,"txt-label",l.selectedRenew&&"2"!==l.selectedRenew.value?"d-flex":"d-none"),n(t,65,0,"txt-value",l.selectedRenew&&"2"!==l.selectedRenew.value?"d-flex":"d-none"),n(t,70,0,"txt-label",l.selectedRenew&&"2"===l.selectedRenew.value?"d-flex":"d-none"),n(t,75,0,"txt-value",l.selectedRenew&&"2"===l.selectedRenew.value?"d-flex":"d-none"),n(t,85,0,"row-item non-border-bottom",l.selectedRenew&&"2"!==l.selectedRenew.value?"d-flex":"d-none");var i=n(t,98,0,"/main/saving");n(t,97,0,i)}),(function(n,t){var l=t.component;n(t,7,0,e.Mb(t,7,0,e.Db(t,8).transform("txt_saving_create_success")));var i=e.Mb(t,10,0,n(t,11,0,e.Db(t.parent,0),l.savingAmount,"VND"));n(t,10,0,i),n(t,20,0,l.acc_recharge.name);var a=e.Mb(t,23,0,n(t,24,0,e.Db(t.parent,1),l.acc_recharge.BBAN));n(t,23,0,a),n(t,28,0,e.Mb(t,28,0,e.Db(t,29).transform("txt_saving_package_name"))),n(t,31,0,l.package_name),n(t,34,0,e.Mb(t,34,0,e.Db(t,35).transform("saving.common.text_3"))),n(t,37,0,l.periodSelected.tenorDesc,l.periodSelected.rate,e.Mb(t,37,2,e.Db(t,38).transform("saving.add_term.placeholder_4"))),n(t,42,0,e.Mb(t,42,0,e.Db(t,43).transform("inquiry.saving_detail.accrued_interest")));var u=e.Mb(t,45,0,n(t,46,0,e.Db(t.parent,0),l.interestAmount,"VND"));n(t,45,0,u),n(t,49,0,e.Mb(t,49,0,e.Db(t,50).transform("txt_act_upon_expiration"))),n(t,52,0,e.Mb(t,52,0,e.Db(t,53).transform(l.selectedRenew.key))),n(t,61,0,e.Mb(t,61,0,e.Db(t,62).transform("txt_saving_receiving_account")));var c=e.Mb(t,66,0,n(t,67,0,e.Db(t.parent,1),l.acc_received.BBAN));n(t,66,0,c,l.acc_received.name),n(t,71,0,e.Mb(t,71,0,e.Db(t,72).transform("inquiry.saving.success.detail.title_3"))),n(t,76,0,l.dataSuccess?l.dataSuccess.transactionId:""),n(t,79,0,e.Mb(t,79,0,e.Db(t,80).transform("loyalty.history.exchange_exchange_date"))),n(t,82,0,l.currentDate),n(t,88,0,e.Mb(t,88,0,e.Db(t,89).transform("inquiry.saving.success.detail.title_3"))),n(t,91,0,l.dataSuccess?l.dataSuccess.transactionId:""),n(t,94,0,e.Mb(t,94,0,e.Db(t,95).transform("saving.add_term.success_btn"))),n(t,99,0,e.Mb(t,99,0,e.Db(t,100).transform("general.btn_done")))}))}function nl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,11,"action-result",[],null,null,null,cn.b,cn.a)),e.qb(1,638976,null,0,on.a,[],{content:[0,"content"],success:[1,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(3,0,null,0,8,"div",[["class","text-center mt-3"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,2,"button",[["class","btn-default btn btn-secondary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.showStep("INPUT_INFO")&&e),e}),null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,4,"button",[["class","btn-default btn btn-primary ml-3"]],null,[[null,"click"]],(function(n,t,l){var i=!0;return"click"===t&&(i=!1!==e.Db(n,8).onClick()&&i),i}),null,null)),e.qb(8,16384,null,0,p.n,[p.m,p.a,[8,null],e.C,e.k],{routerLink:[0,"routerLink"]},null),e.Eb(9,1),(n()(),e.Lb(10,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,t){n(t,1,0,e.vb(1,"",e.Mb(t,1,0,e.Db(t,2).transform("txt_common_error-1")),""),!1);var l=n(t,9,0,"/main");n(t,8,0,l)}),(function(n,t){n(t,5,0,e.Mb(t,5,0,e.Db(t,6).transform("general.btn_retry"))),n(t,10,0,e.Mb(t,10,0,e.Db(t,11).transform("menu.home")))}))}function tl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"action-result-timeout",[],null,null,null,gn.b,gn.a)),e.qb(1,114688,null,0,pn.a,[],null,null)],(function(n,t){n(t,1,0)}),null)}function ll(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"div",[["class","fail"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,nl)),e.qb(2,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,tl)),e.qb(4,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,2,0,!l.isConfirmTimeout),n(t,4,0,l.isConfirmTimeout)}),null)}function el(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"div",[["class","lucky-money"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","img-left"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,0,"img",[["alt",""],["height","100%"],["src","./assets/images/img_saving_gift.jpg"],["width","100%"]],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,1,"button",[["class"," btn-primary btn-join w-100"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.joinLuckyMoney()&&e),e}),null,null)),(n()(),e.Lb(-1,null,["Tham Gia Ngay"])),(n()(),e.rb(5,0,null,null,2,"div",[["class","content-right"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,1,"app-the-le-quay-so-du-thuong-tet",[],null,null,null,_t.b,_t.a)),e.qb(7,114688,null,0,Ct.a,[],null,null)],(function(n,t){n(t,7,0)}),null)}function il(n){return e.Nb(0,[e.Fb(0,g.a,[]),e.Fb(0,s.a,[]),e.Fb(0,V.a,[]),e.Jb(671088640,1,{otpComponent:0}),e.Jb(671088640,2,{accRecharge:0}),e.Jb(671088640,3,{accReceived:0}),e.Jb(671088640,4,{selectPeriod:0}),e.Jb(671088640,5,{selectSettingRenew:0}),e.Jb(671088640,6,{savingMoney:0}),e.Jb(402653184,7,{packageName:0}),(n()(),e.rb(10,0,null,null,66,"div",[["class","create-saving-package"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,4,"div",[["class","select-package-type"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(13,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.gb(16777216,null,null,1,null,Vt)),e.qb(15,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(16,0,null,null,50,"div",[["class","input-info-package"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(18,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.rb(19,0,null,null,7,"app-header-button",[["class","show-header-button d-block"]],null,null,null,vt.b,vt.a)),e.qb(20,114688,null,0,Mt.a,[],null,null),(n()(),e.rb(21,0,null,0,5,"span",[["class","btn-header-inner text-link"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickShowDialogTD()&&e),e}),null,null)),(n()(),e.rb(22,0,null,null,0,"img",[["alt",""],["src","assets/icons/icons-question-fill.svg"],["style","margin-right: 8px"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,Kt)),e.qb(24,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,$t)),e.qb(26,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(27,0,null,null,39,"div",[["class","input-info-package-content"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,2,"div",[["class","select-account"]],null,null,null,null,null)),(n()(),e.rb(29,0,null,null,1,"app-debit-account-selector",[],null,[[null,"changeAccount"],[null,"loadSuccess"],["document","click"]],(function(n,t,l){var i=!0,a=n.component;return"document:click"===t&&(i=!1!==e.Db(n,30).documentClicked(l)&&i),"changeAccount"===t&&(i=!1!==a.changeAccRecharge()&&i),"loadSuccess"===t&&(i=!1!==a.onAccRechargeSliderLoadSuccess()&&i),i}),Ot.b,Ot.a)),e.qb(30,114688,[[2,4],["accRecharge",4]],0,Pt.a,[C.a,un.a,M.a,e.k,p.m],{showLoading:[0,"showLoading"]},{loadSuccess:"loadSuccess",changeAccount:"changeAccount"}),(n()(),e.rb(31,0,[[7,0],["packageName",1]],null,1,"input",[["class","input-package-name"],["maxlength","250"],["spellcheck","false"],["type","text"]],[[8,"placeholder",0]],[[null,"blur"]],(function(n,t,l){var e=!0;return"blur"===t&&(e=!1!==n.component.changePackageName()&&e),e}),null,null)),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(33,0,null,null,4,"div",[["class","input-money"]],null,null,null,null,null)),(n()(),e.rb(34,0,null,null,1,"app-money-saving-input",[],null,[[null,"change"],[null,"blur"],["document","click"]],(function(n,t,l){var i=!0,a=n.component;return"document:click"===t&&(i=!1!==e.Db(n,35).closeDropDown(l)&&i),"change"===t&&(i=!1!==a.inputMoneyChange()&&i),"blur"===t&&(i=!1!==a.inputMoneyChange()&&i),i}),Dt,yt)),e.qb(35,114688,[[6,4],["savingMoney",4]],0,wt,[nn.e,un.a,C.a],{saving_type:[0,"saving_type"]},{blur:"blur"}),(n()(),e.gb(16777216,null,null,1,null,Ut)),e.qb(37,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(38,0,null,null,6,"div",[["class","select-interest-rate"]],null,null,null,null,null)),(n()(),e.rb(39,0,null,null,5,"select-container",[],null,[[null,"userSelect"],["document","click"]],(function(n,t,l){var i=!0,a=n.component;return"document:click"===t&&(i=!1!==e.Db(n,40).withoutClickComponent(l)&&i),"userSelect"===t&&(i=!1!==a.selectedChangePeriod()&&i),i}),tn.b,tn.a)),e.qb(40,6012928,[[4,4],["selectPeriod",4]],1,ln.a,[[8,null],e.h,e.k],{placeholder:[0,"placeholder"]},{userSelect:"userSelect"}),e.Jb(603979776,8,{items:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,zt)),e.qb(44,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(45,0,null,null,6,"div",[["class","interest-amount"]],null,null,null,null,null)),(n()(),e.rb(46,0,null,null,2,"span",[["style","color: #ad8ad8"]],null,null,null,null,null)),(n()(),e.Lb(47,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(49,0,null,null,2,"span",[["style","font-size: 20px;font-weight: 500"]],null,null,null,null,null)),(n()(),e.Lb(50,null,[""," ",""])),e.Hb(51,2),(n()(),e.rb(52,0,null,null,6,"div",[["class","setting-autoroll"]],null,null,null,null,null)),(n()(),e.rb(53,0,null,null,5,"select-container",[],null,[[null,"userSelect"],["document","click"]],(function(n,t,l){var i=!0,a=n.component;return"document:click"===t&&(i=!1!==e.Db(n,54).withoutClickComponent(l)&&i),"userSelect"===t&&(i=!1!==a.selectedChangeSettingRenew()&&i),i}),tn.b,tn.a)),e.qb(54,6012928,[[5,4],["selectSettingRenew",4]],1,ln.a,[[8,null],e.h,e.k],{placeholder:[0,"placeholder"]},{userSelect:"userSelect"}),e.Jb(603979776,9,{items:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Ht)),e.qb(58,278528,null,0,o.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(59,0,null,null,4,"div",[["class","select-account"]],null,null,null,null,null)),e.Ib(512,null,o.B,o.C,[e.q,e.r,e.k,e.C]),e.qb(61,278528,null,0,o.l,[o.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(n()(),e.rb(62,0,null,null,1,"app-debit-account-selector",[],null,[[null,"changeAccount"],[null,"loadSuccess"],["document","click"]],(function(n,t,l){var i=!0,a=n.component;return"document:click"===t&&(i=!1!==e.Db(n,63).documentClicked(l)&&i),"changeAccount"===t&&(i=!1!==a.changeAccReceived()&&i),"loadSuccess"===t&&(i=!1!==a.onAccReceivedSliderLoadSuccess()&&i),i}),Ot.b,Ot.a)),e.qb(63,114688,[[3,4],["accReceived",4]],0,Pt.a,[C.a,un.a,M.a,e.k,p.m],{isDropdown:[0,"isDropdown"],accountType:[1,"accountType"],showLoading:[2,"showLoading"],instructionText:[3,"instructionText"]},{loadSuccess:"loadSuccess",changeAccount:"changeAccount"}),(n()(),e.rb(64,0,null,null,2,"button",[["class","btn btn-primary w-100"]],[[8,"disabled",0]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.clickVerify()&&e),e}),null,null)),(n()(),e.Lb(65,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Qt)),e.qb(68,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Xt)),e.qb(70,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Zt)),e.qb(72,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,ll)),e.qb(74,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,el)),e.qb(76,16384,null,0,o.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(77,0,null,null,6,"app-modal",[["class","not-enough-money modal-text"]],null,[[null,"hideModal"],[null,"showChange"]],(function(n,t,l){var e=!0,i=n.component;return"hideModal"===t&&(e=0!=(i.isShowDialogTDLucky=!1)&&e),"showChange"===t&&(e=!1!==(i.isShowDialogTDLucky=l)&&e),e}),K.b,K.a)),e.qb(78,638976,null,0,$.a,[],{show:[0,"show"],headerText:[1,"headerText"]},{showChange:"showChange",hideModal:"hideModal"}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(80,0,null,0,3,"div",[["class","modal-content-scroll"]],null,null,null,null,null)),(n()(),e.rb(81,0,null,null,2,"span",[["class","modal-content-lucky"]],null,null,null,null,null)),(n()(),e.rb(82,0,null,null,1,"app-lucky-saving-intro-content",[],null,null,null,Nt.b,Nt.a)),e.qb(83,114688,null,0,It.a,[],null,null),(n()(),e.rb(84,0,null,null,6,"app-modal",[["class","not-enough-money modal-text"]],null,[[null,"hideModal"],[null,"showChange"]],(function(n,t,l){var e=!0,i=n.component;return"hideModal"===t&&(e=0!=(i.isShowDialogTD=!1)&&e),"showChange"===t&&(e=!1!==(i.isShowDialogTD=l)&&e),e}),K.b,K.a)),e.qb(85,638976,null,0,$.a,[],{show:[0,"show"],headerText:[1,"headerText"]},{showChange:"showChange",hideModal:"hideModal"}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(87,0,null,0,3,"div",[["class","modal-content-scroll"]],null,null,null,null,null)),(n()(),e.rb(88,0,null,null,2,"span",[["class","modal-content-td"]],null,null,null,null,null)),(n()(),e.rb(89,0,null,null,1,"app-saving-intro-content",[],null,null,null,At.b,At.a)),e.qb(90,114688,null,0,Tt.a,[],null,null),(n()(),e.rb(91,0,null,null,9,"app-modal",[["class","not-enough-money not-money"]],null,[[null,"hideModal"],[null,"showChange"]],(function(n,t,l){var e=!0,i=n.component;return"hideModal"===t&&(e=0!=(i.isErrorMoneyAccount=!1)&&e),"showChange"===t&&(e=!1!==(i.isErrorMoneyAccount=l)&&e),e}),K.b,K.a)),e.qb(92,638976,null,0,$.a,[],{show:[0,"show"]},{showChange:"showChange",hideModal:"hideModal"}),(n()(),e.rb(93,0,null,0,3,"div",[["class","modal-inner text-center txt-not-enough"]],null,null,null,null,null)),(n()(),e.rb(94,0,null,null,2,"span",[["class","modal-content"]],null,null,null,null,null)),(n()(),e.Lb(95,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(97,0,null,0,3,"div",[["class","text-center"]],null,null,null,null,null)),(n()(),e.rb(98,0,null,null,2,"button",[["class","modal-btn btn btn-primary"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=0!=(n.component.isErrorMoneyAccount=!1)&&e),e}),null,null)),(n()(),e.Lb(99,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(101,0,null,null,19,"app-modal",[["class","modal-lucky-money"]],null,[[null,"hideModal"],[null,"showChange"]],(function(n,t,l){var e=!0,i=n.component;return"hideModal"===t&&(e=0!=(i.isShowLuckyMoney=!1)&&e),"showChange"===t&&(e=!1!==(i.isShowLuckyMoney=l)&&e),e}),K.b,K.a)),e.qb(102,638976,null,0,$.a,[],{show:[0,"show"]},{showChange:"showChange",hideModal:"hideModal"}),(n()(),e.rb(103,0,null,0,3,"div",[["class","img-cover"]],null,null,null,null,null)),(n()(),e.rb(104,0,null,null,1,"div",[["class","ic-close-modal text-right"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=0!=(n.component.isShowLuckyMoney=!1)&&e),e}),null,null)),(n()(),e.rb(105,0,null,null,0,"i",[["class","fas fa-times-circle"]],null,null,null,null,null)),(n()(),e.rb(106,0,null,null,0,"div",[["class","img-temp"]],null,null,null,null,null)),(n()(),e.rb(107,0,null,0,13,"div",[["class","lucky-info"]],null,null,null,null,null)),(n()(),e.rb(108,0,null,null,1,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(-1,null,["QU\xc0 T\u1eb6NG T\u1eea TPBANK \u0110ANG CH\u1edc B\u1ea0N!"])),(n()(),e.rb(110,0,null,null,4,"div",[["class","description text-center"]],null,null,null,null,null)),(n()(),e.Lb(-1,null,["Ch\xfac m\u1eebng b\u1ea1n \u0111\xe3 g\u1eedi ti\u1ebft ki\u1ec7m th\xe0nh c\xf4ng v\xe0 \u0111\u1ee7 \u0111i\u1ec1u ki\u1ec7n tham gia CT \u01b0u \u0111\xe3i "])),(n()(),e.rb(112,0,null,null,1,"b",[],null,null,null,null,null)),(n()(),e.Lb(-1,null,["\u201cVui T\u1ebft m\u1edbi, c\u1ea3 n\u0103m ph\u01a1i ph\u1edbi\u201d"])),(n()(),e.Lb(-1,null,[' v\u1edbi t\u1ed5ng gi\xe1 tr\u1ecb qu\xe0 t\u1eb7ng l\xean t\u1edbi 1 t\u1ef7 \u0111\u1ed3ng. Ch\u1ecdn "Tham gia ngay" \u0111\u1ec3 ti\u1ebfp t\u1ee5c.'])),(n()(),e.rb(115,0,null,null,5,"div",[["class","btn-action"]],null,null,null,null,null)),(n()(),e.rb(116,0,null,null,2,"button",[["class","btn btn-secondary btn-skip"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=0!=(n.component.isShowLuckyMoney=!1)&&e),e}),null,null)),(n()(),e.Lb(117,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(119,0,null,null,1,"button",[["class"," btn-primary btn-join"]],null,[[null,"click"]],(function(n,t,l){var e=!0,i=n.component;return"click"===t&&(i.showStep("LUCKY-MONEY"),e=0!=(i.isShowLuckyMoney=!1)&&e),e}),null,null)),(n()(),e.Lb(-1,null,["Tham Gia Ngay"]))],(function(n,t){var l=t.component;n(t,13,0,"select-package-type","SELECT_TYPE"===l.step?"d-block":"d-none"),n(t,15,0,l.interest_rate_summary),n(t,18,0,"input-info-package","INPUT_INFO"===l.step?"d-block":"d-none"),n(t,20,0),n(t,24,0,"TK_DIEN_TU"===l.saving_package_type),n(t,26,0,"TK_TAI_LOC"===l.saving_package_type),n(t,30,0,!0),n(t,35,0,l.saving_package_type),n(t,37,0,""!==l.errMoney),n(t,40,0,e.vb(1,"",e.Mb(t,40,0,e.Db(t,42).transform("saving.add_term.placeholder_3")),"")),n(t,44,0,l.lst_Period),n(t,54,0,e.vb(1,"",e.Mb(t,54,0,e.Db(t,56).transform("saving.autoroll.text_1")),"")),n(t,58,0,l.lst_setting_autorenew),n(t,61,0,"select-account",l.selectedRenew&&"2"!==l.selectedRenew.value?"d-block":"d-none"),n(t,63,0,!0,"fundTopup",!0,"inquiry.saving_detail.account_accept"),n(t,68,0,"OVERVIEW"===l.step),n(t,70,0,"INPUT_OTP"===l.step),n(t,72,0,"SUCCESS"===l.step),n(t,74,0,"FAIL"===l.step),n(t,76,0,"LUCKY-MONEY"===l.step),n(t,78,0,l.isShowDialogTDLucky,e.vb(1,"",e.Mb(t,78,1,e.Db(t,79).transform("saving.add_term.text_btn_other_1")),"")),n(t,83,0),n(t,85,0,l.isShowDialogTD,e.vb(1,"",e.Mb(t,85,1,e.Db(t,86).transform("saving.add_term.text_hint_td")),"")),n(t,90,0),n(t,92,0,l.isErrorMoneyAccount),n(t,102,0,l.isShowLuckyMoney)}),(function(n,t){var l=t.component;n(t,31,0,e.vb(1,"",e.Mb(t,31,0,e.Db(t,32).transform("saving.add_term.placeholder_1")),"")),n(t,47,0,e.Mb(t,47,0,e.Db(t,48).transform("saving.add_term.text_3")));var i=l.interestAmount?e.Mb(t,50,0,n(t,51,0,e.Db(t,0),l.interestAmount,l.periodSelected.currency)):"--";n(t,50,0,i,l.interestAmount?l.periodSelected.currency:""),n(t,64,0,!l.isActiveBtnInputInfo),n(t,65,0,e.Mb(t,65,0,e.Db(t,66).transform("general.btn_next"))),n(t,95,0,e.Mb(t,95,0,e.Db(t,96).transform("payment.billing.message_check_amount"))),n(t,99,0,e.Mb(t,99,0,e.Db(t,100).transform("general.btn_close"))),n(t,117,0,e.Mb(t,117,0,e.Db(t,118).transform("overdraft.modal_skip")))}))}function al(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-create-saving-package",[],null,null,null,il,qt)),e.qb(1,114688,null,0,Ft,[C.a,p.m,M.a,Et.a,r.j],null,null)],(function(n,t){n(t,1,0)}),null)}var ul=e.nb("app-create-saving-package",Ft,al,{},{},[]),cl=l("QQfA"),ol=l("IP0z"),rl=l("s6ns"),sl=l("POq0"),gl=l("821u"),pl=l("Xd0L"),bl=l("/HVE"),dl=l("tE3g"),ml=l("IheW"),hl=l("cUpR"),fl=l("Fwaw"),_l=l("zMNK"),Cl=l("hOhj"),vl=l("5GAg"),Ml=l("HsOI"),Ol=l("oapL"),Pl=l("ZwOa"),xl=l("LSHg"),wl=l("PCNd");class yl{}l.d(t,"SavingModuleNgFactory",(function(){return kl}));var kl=e.ob(i,[],(function(n){return e.Ab([e.Bb(512,e.j,e.Z,[[8,[a.a,u.a,c.b,c.a,E,Q,Dn,at,mt,ul]],[3,e.j],e.v]),e.Bb(4608,o.p,o.o,[e.s,[2,o.G]]),e.Bb(4608,nn.y,nn.y,[]),e.Bb(4608,nn.e,nn.e,[]),e.Bb(4608,cl.a,cl.a,[cl.g,cl.c,e.j,cl.f,cl.d,e.p,e.x,o.d,ol.b,[2,o.i]]),e.Bb(5120,cl.h,cl.i,[cl.a]),e.Bb(5120,rl.b,rl.c,[cl.a]),e.Bb(135680,rl.d,rl.d,[cl.a,e.p,[2,o.i],[2,rl.a],rl.b,[3,rl.d],cl.c]),e.Bb(4608,sl.b,sl.b,[]),e.Bb(4608,gl.i,gl.i,[]),e.Bb(5120,gl.a,gl.b,[cl.a]),e.Bb(4608,pl.b,pl.b,[]),e.Bb(4608,pl.a,pl.l,[[2,pl.e],bl.a]),e.Bb(5120,r.f,dl.b,[ml.c]),e.Bb(4608,r.c,r.e,[]),e.Bb(4608,r.h,r.d,[]),e.Bb(4608,r.b,r.a,[]),e.Bb(4608,r.j,r.j,[r.k,r.f,r.c,r.h,r.b,r.l,r.m]),e.Bb(1073742336,o.b,o.b,[]),e.Bb(1073742336,nn.x,nn.x,[]),e.Bb(1073742336,nn.j,nn.j,[]),e.Bb(1073742336,p.q,p.q,[[2,p.v],[2,p.m]]),e.Bb(1073742336,nn.v,nn.v,[]),e.Bb(1073742336,r.g,r.g,[]),e.Bb(1073742336,ol.a,ol.a,[]),e.Bb(1073742336,pl.h,pl.h,[[2,pl.c],[2,hl.f]]),e.Bb(1073742336,bl.b,bl.b,[]),e.Bb(1073742336,pl.k,pl.k,[]),e.Bb(1073742336,fl.c,fl.c,[]),e.Bb(1073742336,_l.f,_l.f,[]),e.Bb(1073742336,Cl.b,Cl.b,[]),e.Bb(1073742336,cl.e,cl.e,[]),e.Bb(1073742336,rl.g,rl.g,[]),e.Bb(1073742336,sl.c,sl.c,[]),e.Bb(1073742336,vl.a,vl.a,[]),e.Bb(1073742336,gl.j,gl.j,[]),e.Bb(1073742336,Ml.b,Ml.b,[]),e.Bb(1073742336,Ol.b,Ol.b,[]),e.Bb(1073742336,Pl.b,Pl.b,[]),e.Bb(1073742336,pl.m,pl.m,[]),e.Bb(1073742336,pl.i,pl.i,[]),e.Bb(1073742336,xl.a,xl.a,[]),e.Bb(1073742336,wl.a,wl.a,[]),e.Bb(1073742336,dl.a,dl.a,[]),e.Bb(1073742336,yl,yl,[]),e.Bb(1073742336,i,i,[]),e.Bb(256,pl.d,pl.f,[]),e.Bb(256,r.m,void 0,[]),e.Bb(256,r.l,void 0,[]),e.Bb(1024,p.k,(function(){return[[{path:"",component:d,pathMatch:"full"},{path:"term-deposit-detail",component:z},{path:"early-settlement",component:mn},{path:"autoroll-setting",component:Gn},{path:"edit-saving-name",component:ot},{path:"create-package",component:Ft}]]}),[])])}))},o3Yy:function(n,t,l){"use strict";var e=l("8Y7J");l("Mrkb"),l.d(t,"a",(function(){return i})),l.d(t,"b",(function(){return a}));var i=e.pb({encapsulation:0,styles:[[".right-content[_ngcontent-%COMP%]{position:absolute;top:0;right:12px;height:100%;display:inline-flex;flex-wrap:nowrap;align-items:center}.form-control[readonly][_ngcontent-%COMP%]{background-color:#f0f0f0}.verifyValid[_ngcontent-%COMP%]{border:1px solid #27ae60}.verifyInValid[_ngcontent-%COMP%]{border:1px solid #ff1d30}"]],data:{}});function a(n){return e.Nb(0,[e.Jb(671088640,1,{txtMain:0}),(n()(),e.rb(1,0,null,null,3,"div",[["class","position-relative"]],null,null,null,null,null)),(n()(),e.rb(2,0,[[1,0],["txtMain",1]],null,0,"input",[["class","form-control form-control-default fw-500"]],[[8,"type",0],[2,"verifyValid",null],[2,"verifyInValid",null],[1,"placeholder",0],[1,"maxlength",0],[8,"readOnly",0],[4,"padding-right",null]],[[null,"change"],[null,"input"],[null,"blur"]],(function(n,t,l){var e=!0,i=n.component;return"change"===t&&(e=!1!==i.textChanged()&&e),"input"===t&&(e=!1!==i.textInput()&&e),"blur"===t&&(e=!1!==i.textBlur()&&e),e}),null,null)),(n()(),e.rb(3,0,null,null,1,"div",[["class","right-content"]],null,null,null,null,null)),e.Cb(null,0)],null,(function(n,t){var l=t.component;n(t,2,0,e.vb(1,"",l.isText?"text":"password",""),1==l.isValid,0==l.isValid,l.placeholder,l.maxlength,l.isReadonly,l.paddingRight)}))}}}]);