1"use strict";(self.webpackChunkweb_showroom=self.webpackChunkweb_showroom||[]).push([[2713],{32713:($e,v,a)=>{a.r(v),a.d(v,{FixedDepositRenewalFormModule:()=>qe});var N=a(16510),e=a(19212),P=a(13139),R=a(67483),A=a(78645),_=a(65619),m=a(59773),b=a(32181),x=a(37398),D=a(83620),z=a(48180),F=a(99397),C=a(44441),T=a(99080),f=a(22520),y=a(2910),d=a(56223),S=a(16676),M=a(64190),I=a(13423),O=a(71365),J=a(76224),q=a(86687),B=a(25982),U=a(97436),V=a(32397),Q=a(6593),g=a(96814),L=a(42840),H=a(70855),k=a(41958),Y=a(37415),$=a(66987),w=a(10095),j=a(33410),G=a(92574),h=a(3599),W=a(20824),Z=a(57907),E=a(9691),K=a(82669);function X(t,l){if(1&t&&(e.TgZ(0,"div",46),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",18),e.xp6(),e.hij(" ",n.noteFootMsg," ")}}function ee(t,l){if(1&t&&e._UZ(0,"nz-option",47),2&t){const n=l.$implicit;e.Q6J("nzValue",n)("nzLabel",n.accountNumber)}}function ne(t,l){if(1&t&&(e.TgZ(0,"div",48),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.fromAccError," ")}}function te(t,l){1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("nzSpan",10),e.xp6(),e.hij(" ",e.lcZ(2,2,"minus")," "))}function ie(t,l){if(1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",10),e.xp6(),e.hij(" ",n.accountName," ")}}function re(t,l){1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("nzSpan",10),e.xp6(),e.hij("",e.lcZ(2,2,"minus")," "))}function oe(t,l){if(1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",10),e.xp6(),e.hij("",n.fixedDepositType," ")}}function ae(t,l){if(1&t&&e._UZ(0,"nz-option",47),2&t){const n=l.$implicit;e.Q6J("nzValue",n)("nzLabel",n.receiptNumber)}}function le(t,l){if(1&t&&(e.TgZ(0,"div",48),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.receiptAccError," ")}}function ce(t,l){1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("nzSpan",10),e.xp6(),e.hij("",e.lcZ(2,2,"minus")," "))}function se(t,l){if(1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",10),e.xp6(),e.AsE("",n.currencySymbol," ",e.xi3(2,3,n.principalAmount,"1.2-2")," ")}}function pe(t,l){1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("nzSpan",10),e.xp6(),e.hij("",e.lcZ(2,2,"minus")," "))}function de(t,l){if(1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",10),e.xp6(),e.hij("",n.stringifiedMaturityDate(n.maturityDate)," ")}}function ue(t,l){if(1&t&&(e.TgZ(0,"div",49),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.principalPlusInterestAndTopUpError," ")}}function me(t,l){if(1&t&&(e.TgZ(0,"div",50),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.renewPartialPrincipalOnlyError," ")}}function fe(t,l){1&t&&(e.TgZ(0,"div",50),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(),e.hij(" ",e.lcZ(2,1,"no_fd_rate")," "))}function ge(t,l){if(1&t&&(e.TgZ(0,"div",48),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.radioValueError," ")}}function he(t,l){if(1&t&&(e.TgZ(0,"div",49),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.inputError," ")}}function _e(t,l){if(1&t&&e._UZ(0,"nz-option",47),2&t){const n=l.$implicit;e.Q6J("nzValue",n)("nzLabel",n)}}function be(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"nz-select",75,76),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.changeBeneficiaryBank(i))})("input",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.clearBeneficiaryBankError())}),e.ALo(2,"translate"),e.YNc(3,_e,1,2,"nz-option",14),e.qZA()}if(2&t){const n=e.oxw(2);e.s9C("nzPlaceHolder",e.lcZ(2,4,"please_select")),e.Q6J("nzDisabled","MEPS Transfer"!==n.paymentModeValue)("compareWith",n.compareBeneficiaryBank),e.xp6(3),e.Q6J("ngForOf",n.beneficiaryBanks)}}function xe(t,l){if(1&t&&(e._UZ(0,"nz-select",77),e.ALo(1,"translate")),2&t){const n=e.oxw(2);e.s9C("nzPlaceHolder",e.lcZ(1,2,"please_select")),e.Q6J("nzDisabled","MEPS Transfer"!==n.paymentModeValue)}}function ye(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"input",78,66),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.otherbeneficiaryBank=i)})("input",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.clearOtherBeneficiaryBankError())}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("ngModel",n.otherbeneficiaryBank)("disabled","MEPS Transfer"!==n.paymentModeValue)}}function Me(t,l){if(1&t&&(e.TgZ(0,"div",79),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.beneficiaryBankError," ")}}function ve(t,l){if(1&t&&(e.TgZ(0,"div",79),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.otherBeneficiaryBankError," ")}}function Pe(t,l){if(1&t&&(e.TgZ(0,"div",80),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.beneficiaryAccountNameError," ")}}function Ae(t,l){if(1&t&&(e.TgZ(0,"div",81),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.beneficiaryAccountNoError," ")}}function ze(t,l){if(1&t&&e._UZ(0,"nz-option",47),2&t){const n=l.$implicit;e.Q6J("nzValue",n)("nzLabel",n)}}function Fe(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"nz-select",82,76),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.changeHLFAccount(i))})("input",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.clearcreditToHlfAccountError())}),e.ALo(2,"translate"),e.YNc(3,ze,1,2,"nz-option",14),e.qZA()}if(2&t){const n=e.oxw(2);e.s9C("nzPlaceHolder",e.lcZ(2,4,"please_select")),e.Q6J("nzDisabled","Credit to HLF Account"!==n.paymentModeValue)("compareWith",n.compareHlfAccount),e.xp6(3),e.Q6J("ngForOf",n.savingAccountList)}}function Ce(t,l){if(1&t&&(e._UZ(0,"nz-select",83),e.ALo(1,"translate")),2&t){const n=e.oxw(2);e.s9C("nzPlaceHolder",e.lcZ(1,2,"please_select")),e.Q6J("nzDisabled","Credit to HLF Account"!==n.paymentModeValue)}}function Te(t,l){if(1&t&&(e.TgZ(0,"div",84),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.creditToHlfAccountError," ")}}function Oe(t,l){if(1&t&&(e.TgZ(0,"div",48),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(),e.hij(" ",n.paymentModeValueError," ")}}function we(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"div")(1,"div",51)(2,"div",52),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"nz-form-label",11),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",53)(9,"nz-radio-group",23),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.paymentModeValue=i)})("ngModelChange",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.paymentTypeSelect())}),e.TgZ(10,"div",54)(11,"label",55),e._uU(12),e.ALo(13,"translate"),e.TgZ(14,"div",3),e._UZ(15,"span",4)(16,"span",5),e.qZA(),e.TgZ(17,"input",27,28),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.payNow=i)})("input",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearPayNowError())}),e.qZA(),e.TgZ(19,"span",56),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.YNc(22,he,2,1,"div",29),e.qZA(),e.TgZ(23,"label",57),e._uU(24),e.ALo(25,"translate"),e.TgZ(26,"div",3),e._UZ(27,"span",4)(28,"span",5),e.qZA(),e.TgZ(29,"div")(30,"div",58)(31,"div",59)(32,"label",60),e._uU(33),e.ALo(34,"translate"),e.qZA()(),e.TgZ(35,"div",59),e.YNc(36,be,4,6,"nz-select",61)(37,xe,2,4,"nz-select",62)(38,ye,2,2,"input",63)(39,Me,2,1,"div",64)(40,ve,2,1,"div",64),e.qZA()(),e.TgZ(41,"div",58)(42,"div",59)(43,"label",60),e._uU(44),e.ALo(45,"translate"),e.qZA()(),e.TgZ(46,"div",59)(47,"input",65,66),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.beneficiaryAccountName=i)})("input",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearBeneficiaryAccountNameError())}),e.qZA(),e.YNc(49,Pe,2,1,"div",67),e.qZA()(),e.TgZ(50,"div",58)(51,"div",59)(52,"label"),e._uU(53),e.ALo(54,"translate"),e.qZA()(),e.TgZ(55,"div",59)(56,"input",68,69),e.NdJ("ngModelChange",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.beneficiaryAccountNo=i)})("input",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearBeneficiaryAccountNoError())}),e.qZA(),e.YNc(58,Ae,2,1,"div",70),e.qZA()()()(),e.TgZ(59,"label",71),e._uU(60),e.ALo(61,"translate"),e.YNc(62,Fe,4,6,"nz-select",72)(63,Ce,2,4,"nz-select",73)(64,Te,2,1,"div",74),e.qZA()()(),e.YNc(65,Oe,2,1,"div",15),e.qZA(),e._UZ(66,"nz-divider",19)(67,"nz-divider",20),e.qZA()}if(2&t){const n=e.oxw();
1e.xp6(3),e.Oqu(e.lcZ(4,31,"mode_of_payment")),e.xp6(2),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(7,33,"payment_type")),e.xp6(3),e.Q6J("ngModel",n.paymentModeValue),e.xp6(3),e.hij("",e.lcZ(13,35,"pay_now")," "),e.xp6(4),e.Q6J("innerHTML",n.notePayNow,e.oJD),e.xp6(),e.Q6J("ngModel",n.payNow)("disabled","PayNow"!==n.paymentModeValue),e.xp6(3),e.hij(" ",e.lcZ(21,37,"pay_now_hint")," "),e.xp6(2),e.Q6J("ngIf",n.inputError),e.xp6(2),e.hij("",e.lcZ(25,39,"meps_transfer")," "),e.xp6(4),e.Q6J("innerHTML",n.noteMEPSTransfer,e.oJD),e.xp6(5),e.hij("",e.lcZ(34,41,"beneficiary_bank")," "),e.xp6(3),e.Q6J("ngIf","MEPS Transfer"===n.paymentModeValue),e.xp6(),e.Q6J("ngIf","MEPS Transfer"!==n.paymentModeValue),e.xp6(),e.Q6J("ngIf",n.showOtherInputField&&"Other"===n.selectedBeneficiaryBank&&"MEPS Transfer"===n.paymentModeValue),e.xp6(),e.Q6J("ngIf",n.beneficiaryBankError&&"Other"!==n.selectedBeneficiaryBank),e.xp6(),e.Q6J("ngIf","Other"===n.selectedBeneficiaryBank&&n.otherBeneficiaryBankError),e.xp6(4),e.hij("",e.lcZ(45,43,"beneficiary_bank_account_name")," "),e.xp6(3),e.Q6J("ngModel",n.beneficiaryAccountName)("disabled","MEPS Transfer"!==n.paymentModeValue),e.xp6(2),e.Q6J("ngIf",n.beneficiaryAccountNameError),e.xp6(4),e.hij("",e.lcZ(54,45,"beneficiary_bank_account_no")," "),e.xp6(3),e.Q6J("ngModel",n.beneficiaryAccountNo)("disabled","MEPS Transfer"!==n.paymentModeValue),e.xp6(2),e.Q6J("ngIf",n.beneficiaryAccountNoError),e.xp6(2),e.hij("",e.lcZ(61,47,"credit_to_hlf_account_no")," "),e.xp6(2),e.Q6J("ngIf","Credit to HLF Account"===n.paymentModeValue),e.xp6(),e.Q6J("ngIf","Credit to HLF Account"!==n.paymentModeValue),e.xp6(),e.Q6J("ngIf",n.creditToHlfAccountError),e.xp6(),e.Q6J("ngIf",n.paymentModeValueError)}}function Ze(t,l){if(1&t&&e._UZ(0,"nz-option",47),2&t){const n=l.$implicit;e.Q6J("nzValue",n)("nzLabel",n.tenure)}}function Ee(t,l){if(1&t&&(e.TgZ(0,"div",48),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.hij(" ",n.tenureError," ")}}function Ne(t,l){1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("nzSpan",10),e.xp6(),e.hij("",e.lcZ(2,2,"minus")," "))}function Re(t,l){if(1&t&&(e.TgZ(0,"nz-form-label",18),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.Q6J("nzSpan",10),e.xp6(),e.AsE("",n.rate,"% p.a. (",n.rateName,") ")}}const u=()=>[8,8];let De=(()=>{class t{constructor(n,r,i,o,c,Be,Ue,Ve,Qe,Le,He,ke){this.formBuilder=n,this.ref=r,this.store=i,this.keyboard=o,this.translate=c,this.topHeaderBreadcrumbService=Be,this.slCommonService=Ue,this.authenticateEntityService=Ve,this.retrieveFdServiceRequestFormEntityService=Qe,this.retrieveFdMonthEntityService=Le,this.router=He,this.sanitizer=ke,this.fdForm=this.formBuilder.group({fromAcc:["",d.kI.required],receiptAcc:["",d.kI.required],tenure:["",d.kI.required]}),this.initialFdFormValue={fromAcc:"",receiptAcc:"",tenure:""},this.modePaymentForm=this.formBuilder.group({fromAcc:["",d.kI.required]}),this.initialModePaymentFormValue={fromAcc:""},this.currencySymbol=y.R.dollar_sign,this.selectedValue=null,this.principalPlusInterestAndTopUpError="",this.renewPartialPrincipalOnlyError="",this.noteFootMsg="",this.fromAccError="",this.receiptAccError="",this.radioValueError="",this.paymentModeValueError="",this.inputError="",this.beneficiaryBankError="",this.otherBeneficiaryBankError="",this.beneficiaryAccountNameError="",this.beneficiaryAccountNoError="",this.principalPlusInterestAndTopUp="",this.renewPartialPrincipalOnly="",this.creditToHlfAccountError="",this.payNow="",this.tenureError="",this.showOtherInputField=!1,this.showModePayment=!1,this.formSubmitted=!1,this.loading=!1,this.selectedFixedDepositReceipts=[],this.savingAccountList=[],this.isFromAccSelected=!1,this.isReceiptAccountSelected=!1,this.isTenureSelected=!1,this.beneficiaryBanks=["DBS - Development Bank of Singapore","OCBC - Overseas-Chinese Banking Corporation","UOB - United Overseas Bank","Other"],this.inputPrincipal=new A.x,this.formIsValid=!1,this.compareAccountNumber=(s,p)=>s&&p?s.accountNumber===p.accountNumber:s===p,this.compareAdviceNumber=(s,p)=>s&&p?s.receiptNumber===p.receiptNumber:s===p,this.compareHlfAccount=(s,p)=>s===p,this.compareBeneficiaryBank=(s,p)=>s===p,this.topHeaderBreadcrumbService.setTopHeaderBreadCrumbList([{translateKeyName:"e_service",path:""}
1,{translateKeyName:"fd_renewal_instruction",path:""}]),this.unsubscribe$=new A.x,this.retrieveFDRenewalForm$=new _.X([]),this.retrieveFReceiptNum$=new _.X([]),this.retrieveFDMonth$=new _.X([]),this.retrieveFdServiceRequestFormEntityService.clearCache(),this.retrieveFdMonthEntityService.clearCache(),this.authenticateEntityService.entities$.pipe((0,m.R)(this.unsubscribe$),(0,b.h)(s=>s&&s.length>0),(0,x.U)(s=>s[0])).subscribe(s=>{this.slCommonService.isSuccessResponse(s)&&(this.customerProfile=s.body.customerProfile)}),this.setupRetrieveFDRenewalFormWS(),this.callRetrieveFDRenewalFormWS(),this.setupRetrieveFDMonthWS(),this.inputPrincipal.pipe((0,D.b)(1e3)).subscribe(s=>{this.onUserFinishedTyping(s)})}ngOnInit(){this.router.events.pipe((0,m.R)(this.unsubscribe$)).subscribe(n=>{n instanceof M.m2&&this.resetAllVariableAndFormState()})}resetAllVariableAndFormState(){this.fdForm.reset(this.initialFdFormValue,{emitEvent:!1}),this.modePaymentForm.reset(this.initialModePaymentFormValue,{emitEvent:!1}),this.selectedValue=null,this.radioValue=null,this.principalPlusInterestAndTopUpError=null,this.renewPartialPrincipalOnlyError=null,this.fromAccError=null,this.receiptAccError=null,this.radioValueError=null,this.paymentModeValueError=null,this.inputError=null,this.tenureError=null,this.beneficiaryBankError=null,this.otherBeneficiaryBankError=null,this.beneficiaryAccountNameError=null,this.beneficiaryAccountNameError=null,this.paymentModeValue=null,this.principalPlusInterestAndTopUp=null,this.renewPartialPrincipalOnly=null,this.creditToHlfAccountError="",this.payNow="",this.selectedBeneficiaryBank=null,this.beneficiaryBank="",this.beneficiaryAccountName=null,this.beneficiaryAccountNo=null,this.showModePayment=!1,this.formSubmitted=!1,this.formattedDate="",this.loading=!1,this.noteTitle=null,this.noteBottomMsg=null,this.noteMEPSTransfer=null,this.notePayNow=null,this.notePrinPlusInterest=null,this.rate=null,this.accountNumber=null,this.accountType=null,this.principalNumber=null,this.fixedDepositType=null,this.principalAmount=null,this.maturityDate=null,this.contactNo=null,this.email=null,this.receiptAcc=null,this.selectedFixedDepositReceipts=[],this.selectedHlfAccount=null,this.successMessage=null,this.savingAccountList=[],this.isFromAccSelected=!1,this.isReceiptAccountSelected=!1,this.isTenureSelected=!1,this.resetInterestRate(),this.retrieveFdServiceRequestFormEntityService.clearCache(),this.callRetrieveFDRenewalFormWS()}back(){this.store.dispatch(P.Go({path:"side/AccountSummaryPage"}))}submit(){this.formIsValid=!0,this.clearErrors();const n=this.translate.instant(["this_field_is_required","beneficiary_bank_is_required","please_provide_other_beneficiary_bank","beneficiary_bank_account_name_is_required","beneficiary_bank_account_no_is_required","account_number_is_required_cg","amount_is_required","invalid_number","must_be_less_than_principal_amount","mandatory_field_is_required"]);this.fdForm.get("fromAcc")?.value.accountNumber?this.fdForm.get("receiptAcc")?.value.receiptNumber?this.radioValue?"Principal Only and Withdraw Interest"!==this.radioValue||this.paymentModeValue?"PayNow"!==this.paymentModeValue||this.payNow?"Principal + Interest and Top Up"!==this.radioValue||this.principalPlusInterestAndTopUp?"Principal + Interest and Top Up"===this.radioValue&&(!this.isValidAmount(this.principalPlusInterestAndTopUp)||parseFloat(this.principalPlusInterestAndTopUp)<=0)?(this.principalPlusInterestAndTopUpError=n.invalid_number,this.formIsValid=!1):"Renew Partial Principal Only"!==this.radioValue||this.renewPartialPrincipalOnly?"Re
1new Partial Principal Only"!==this.radioValue||this.paymentModeValue?"Renew Partial Principal Only"===this.radioValue&&(!this.isValidAmount(this.renewPartialPrincipalOnly)||parseFloat(this.renewPartialPrincipalOnly)<=0)?(this.renewPartialPrincipalOnlyError=n.invalid_number,this.formIsValid=!1):"Renew Partial Principal Only"===this.radioValue&&parseFloat(this.renewPartialPrincipalOnly)>=this.principalNumber?(this.renewPartialPrincipalOnlyError=n.must_be_less_than_principal_amount,this.formIsValid=!1):"MEPS Transfer"===this.paymentModeValue?(this.selectedBeneficiaryBank||(this.beneficiaryBankError=n.beneficiary_bank_is_required,this.formIsValid=!1),!this.otherbeneficiaryBank&&"Other"===this.selectedBeneficiaryBank&&(this.otherBeneficiaryBankError=n.please_provide_other_beneficiary_bank,this.formIsValid=!1),this.beneficiaryAccountName||(this.beneficiaryAccountNameError=n.beneficiary_bank_account_name_is_required,this.formIsValid=!1),this.beneficiaryAccountNo||(this.beneficiaryAccountNoError=n.beneficiary_bank_account_no_is_required,this.formIsValid=!1)):"Credit to HLF Account"===this.paymentModeValue&&!this.selectedHlfAccount&&(this.creditToHlfAccountError=n.account_number_is_required_cg,this.formIsValid=!1):(this.paymentModeValueError=n.mandatory_field_is_required,this.formIsValid=!1):(this.renewPartialPrincipalOnlyError=n.amount_is_required,this.formIsValid=!1):(this.principalPlusInterestAndTopUpError=n.amount_is_required,this.formIsValid=!1):(this.inputError=n.this_field_is_required,this.formIsValid=!1):(this.paymentModeValueError=n.mandatory_field_is_required,this.formIsValid=!1):(this.radioValueError=n.mandatory_field_is_required,this.formIsValid=!1):(this.receiptAccError=n.mandatory_field_is_required,this.formIsValid=!1):(this.fromAccError=n.mandatory_field_is_required,this.formIsValid=!1),!this.fdForm.get("tenure")?.value&&this.isTenureSelected?(this.tenureError=n.mandatory_field_is_required,this.formIsValid=!1):0===this.retrieveFDMonth$.getValue().length&&(this.tenureError=n.no_fd_rate,this.formIsValid=!1),this.formIsValid&&this.goToFDRenewalConfirmation()}radioSelect(){this.clearInput(),this.clearPaymentTypeInputAndResetPaymentModeInput(),this.resetInterestRate(),this.showModePayment=["Principal Only and Withdraw Interest","Renew Partial Principal Only"].includes(this.radioValue),this.updateInterestRate()}clearPaymentTypeInputAndResetPaymentModeInput(){this.paymentModeValue=null,this.clearPaymentTypeInput(),this.clearErrors()}paymentTypeSelect(){this.clearErrors(),this.clearPaymentTypeInput()}clearInput(){this.renewPartialPrincipalOnly="",this.principalPlusInterestAndTopUp=""}clearPaymentTypeInput(){this.payNow="",this.beneficiaryBank="",this.beneficiaryAccountName="",this.beneficiaryAccountNo="",this.selectedBeneficiaryBank="",this.selectedHlfAccount=""}clearErrors(){this.principalPlusInterestAndTopUpError="",this.fromAccError="",this.receiptAccError="",this.radioValueError="",this.paymentModeValueError="",this.inputError="",this.beneficiaryBankError="",this.otherBeneficiaryBankError="",this.beneficiaryAccountNameError="",this.beneficiaryAccountNoError="",this.creditToHlfAccountError="",this.renewPartialPrincipalOnlyError=""}clearPrincipalInputError(){this.principalPlusInterestAndTopUpError=""}clearPrincipalOnlyInputError(){this.renewPartialPrincipalOnlyError=""}clearFromAccError(){this.fromAccError=""}clearReceiptAccError(){this.receiptAccError=""}clearRadioValueError(){this.radioValueError=""}clearPaymentModeValueError(){this.paymentModeValueError=""}clearPayNowError(){this.inputError=""}clearBeneficiaryBankError(){this.beneficiaryBankError=""}clearOtherBeneficiaryBankError(){this.otherBeneficiaryBankError=""}clearBeneficiaryAccountNameError(){this.beneficiaryAccountNameError=""}clearBeneficiaryAccountNoError(){this.beneficiaryAccountNoError=""}clearcreditToHlfAccountError(){this.creditToHlfAccountError=""}changeAccountNumber(n){this.clearErrors(),this.fdForm.get("fromAcc")?.value&&(this.fixedDepositType=this.fdForm.get("fromAcc")?.value?.typeStr,this.isFromAccSelected=this.fdForm.get("fromAcc")?.value,this.fdForm.get("receiptAcc").setValue(this.fdForm.get("fromAcc")?.value),this.isReceiptAccountSelected=!1,this.isTenureSelected=!0);const r=this.retrieveFDRenewalForm$.value.find(i=>i.accountNumber===n.accountNumber);this.selectedFixedDepositReceipts=r?r.fixedDepositReceiptBeanList:[],this.accountName=n.accountName,this.accountNumber=n.accountNumber,this.accountType=n.accountTypeStr,this.updateInterestRate()}changeReceiptAccount(n){this.fdForm.get("receiptAcc")?.value&&(this.clearReceiptAccError(),this.clearErrors(),this.principalAmount=this.fdForm.get("receiptAcc")?.value?.principalNumber,this.maturityDate=this.fdForm.get("receiptAcc")?.value?.maturityDate,this.isReceiptAccountSelected=this.fdForm.get("receiptAcc")?.value,this.tenure=this.fdForm.get("receiptAcc")?.value,this.interestRate=this.fdForm.get("receiptAcc")?.value),this.retrieveFReceiptNum$.value.find(r=>r.principalNumber===n.principalNumber),this.principalNumber=n.principalNumber,this.updateInterestRate()}changeHLFAccount(n){this.savingAccountList&&(this.selectedHlfAccount=this.savingAccountList.find(r=>r===n),this.creditToHlfAccountError="")}changeBeneficiaryBank(n){this.beneficiaryBanks&&(this.selectedBeneficiaryBank=this.beneficiaryBanks.find(r=>r===n),this.beneficiaryBankError="",this.otherBeneficiaryBankError="","Other"===this.selectedBeneficiaryBank?(this.showOtherInputField=!0,this.otherbeneficiaryBank=""):this.showOtherInputField=!1)}setSelectedTenure(n){this.fdForm.get("tenure")?.value&&(this.rate=this.fdForm.get("tenure")?.value?.interestRate,this.rateName=this.fdForm.get("tenure")?.value?.rateName,this.tenureError="")}callRetrieveFDRenewalFormWS(){this.slCommonService.prepareWebReqParam({serviceType:"Renewal"}).pipe((0,z.q)(1),(0,F.b)(r=>{this.retrieveFdServiceRequestFormEntityService.getWithQuery(r)})).subscribe()}setupRetrieveFDRenewalFormWS(){this.retrieveFdServiceRequestFormLoading$=this.retrieveFdServiceRequestFormEntityService.loading$,this.retrieveFdServiceRequestFormEntityService.loading$.pipe((0,m.R)(this.unsubscribe$)).subscribe(n=>{}),this.retrieveFdServiceRequestFormEntityService.errors$.pipe((0,m.R)(this.unsubscribe$),(0,C.u)((0,T.H)(0))).subscribe(n=>{this.store.dispatch(f.KN({payload:n.payload.data.error.error}))}),this.retrieveFdServiceRequestFormEntityService.entities$.pipe((0,m.R)(this.unsubscribe$),(0,b.h)(n=>n&&n.length>0),(0,x.U)(n=>n[0])).subscribe(n=>{if(n&&n.body&&n.body.headerResponseBean.statusCode!==y.R.RESPONSE_CODE_SUCCESS)this.store.dispatch(f.KN({payload:n}));else{const r=n.body.retrieveFdServiceResponse;if(r){this.noteFootMsg=r.noteFootMsg;let o=r.fixedDepositDetailBeanList;o&&o.length>0&&(o=o.map(c=>({...c,accountNumber:c.accountNumber,accountTypeStr:c.accountTypeStr,accountName:c.accountName})),this.retrieveFDRenewalForm$.next(o))}let i=r.savingAccountList;i&&i.length>0&&(this.savingAccountList=i),this.contactNo=r.contactNo,this.email=r.email,this.noteTitle=r.noteTitle,this.noteBottomMsg=this.sanitizer.sanitize(e.q3G.HTML,r.noteBottomMsg)||"",this.noteMEPSTransfer=r.noteMEPSTransfer,this.notePayNow=r.notePayNow,this.notePrinPlusInterest=r.notePrinPlusInterest}})}callRetrieveFDMonthWS(n){const i=parseFloat(n).toFixed(2);this.slCommonService.prepareWebReqParam({accountNumber:this.accountNumber,accountType:this.accountType,principalAmount:i}).pipe((0,z.q)(1),(0,F.b)(c=>{this.retrieveFdMonthEntityService.clearCache(),this.retrieveFdMonthEntityService.getWithQuery(c)})).subscribe()}setupRetrieveFDMonthWS(){this.retrieveFdMonthLoading$=this.retrieveFdMonthEntityService.loading$,this.retrieveFdMonthEntityService.loading$.pipe((0,m.R)(this.unsubscribe$)).subscribe(n=>{}),this.retrieveFdMonthEntityService.errors$.pipe((0,m.R)(this.unsubscribe$),(0,C.u)((0,T.H)(0))).subscribe(n=>{this.store.dispatch(f.KN({payload:n.payload.data.error.error}))}),this.retrieveFdMonthEntityService.entities$.pipe((0,m.R)(this.unsubscribe$),(0,b.h)(n=>n&&n.length>0),(0,x.U)(n=>n[0])).subscribe(n=>{if(n&&n.body&&n.body.headerResponseBean.statusCode!==y.R.RESPONSE_CODE_SUCCESS)this.store.dispatch(f.KN({payload:n}));else{const r=n.body.retrieveFdMonthResponse;if(r){let i=r.retrieveFdMonthBeanList;i&&i.length>0?(i=i.map(o=>({...o,tenure:o.tenure,fixedDepositId:o.fixedDepositId,principalFrom:o.principalFrom,principalTo:o.principalTo})),this.retrieveFDMonth$.next(i),this.isTenureSelected=!0):(this.retrieveFDMonth$.next([]),this.isTenureSelected=!1,this.firstTimeCall=!0)}}})}goToFDRenewalConfirmation(){const n=this.stringifiedMaturityDate(this.maturityDate);let r={accountNumber:this.fdForm.get("fromAcc")?.value.accountNumber+" - "+this.fdForm.get("fromAcc")?.value.accountTypeStr,contactNo:this.contactNo,emailAddress:this.email,fixedDepositAdviceNo:this.fdForm.get("receiptAcc")?.value.receiptNumber,fixedDepositType:this.fixedDepositType,maturityDate:n,paymentType:this.paymentModeValue,principalAmount:this.principalAmount,serviceType:"Renewal",renewalType:this.radioValue,interestRate:this.fdForm.get("tenure")?.value?.interestRate,rateName:this.fdForm.get("tenure")?.value?.rateName,tenure:this.fdForm.get("tenure")?.value?.tenure};"Principal + Interest and Top Up"===this.radioValue?r.principalPlusInterestAndTopUp=parseFloat(this.principalPlusInterestAndTopUp):"Renew Partial Principal Only"===this.radioValue&&(r.renewPartialPrincipalOnly=this.renewPartialPrincipalOnly),"PayNow"===this.paymentModeValue?r.payNow=this.payNow:"MEPS Transfer"===this.paymentModeValue?(r.beneficiaryBank="Other"===this.selectedBeneficiaryBank?this.otherbeneficiaryBank:this.selectedBeneficiaryBank,r.beneficiaryBankAccountName=this.beneficiaryAccountName,r.beneficiaryBankAccountNo=this.beneficiaryAccountNo):"Credit to HLF Account"===this.paymentModeValue&&(r.creditToHlfAccountNo=this.selectedHlfAccount);let i=this.fdForm.get("fromAcc")?.value.accountNumber,o=parseFloat(this.principalPlusInterestAndTopUp);this.store.dispatch(P.Go({path:"side/FDRenewalConfirmationPage",query:{param:r,accountNumberDis
1play:i,topUpAmount:o}}))}stringifiedMaturityDate(n){return n?S(n,"YYYY-MM-DD").format("DD MMM YYYY"):"-"}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.unsubscribe(),this.topHeaderBreadcrumbService.setTopHeaderBreadCrumbList(null)}isValidAmount(n){return/^\d+(\.\d{1,2})?$/.test(n)}onChangePrincipal(n){this.resetInterestRate(),parseFloat(n)>0&&this.accountNumber&&this.inputPrincipal.next(n)}onUserFinishedTyping(n){this.updateInterestRate()}updateInterestRate(){if(this.accountNumber){let n=this.principalNumber;"Principal + Interest and Top Up"===this.radioValue?n=this.principalAmount+parseFloat(this.principalPlusInterestAndTopUp):"Renew Partial Principal Only"===this.radioValue&&(n=this.renewPartialPrincipalOnly),parseFloat(n)>0&&this.callRetrieveFDMonthWS(n)}}resetInterestRate(){this.rate="",this.rateName="",this.fdForm.get("tenure").setValue(""),this.retrieveFDMonth$.next([]),this.isTenureSelected=!1,this.firstTimeCall=!1}static{this.\u0275fac=function(r){return new(r||t)(e.Y36(d.QS),e.Y36(e.sBO),e.Y36(I.yh),e.Y36(R.N1),e.Y36(O.sK),e.Y36(J.w),e.Y36(q.Z),e.Y36(B.T),e.Y36(U.T),e.Y36(V.R),e.Y36(M.F0),e.Y36(Q.H7))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["fd-renewal-form"]],decls:157,vars:174,consts:[[1,"std-main-content-container"],[3,"nzSpinning"],["nz-space","","nz-col","",1,"top-desc",3,"nzSpan"],[1,"tooltip"],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[1,"tooltiptext",3,"innerHTML"],["class","fd-renewal-msg","nz-col","",3,"nzSpan",4,"ngIf"],[1,"acc-particulars-div"],[1,"form-content"],["nz-form","",3,"formGroup"],[3,"nzGutter"],["nzRequired","",3,"nzSpan"],[3,"nzSpan"],["formControlName","fromAcc",3,"nzPlaceHolder","nzLoading","compareWith","ngModelChange","input"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["nz-col","","class","right-col-label interest-rate-label",3,"nzSpan",4,"ngIf"],["formControlName","receiptAcc",3,"nzPlaceHolder","compareWith","nzDisabled","ngModelChange","input"],["nz-col","",1,"right-col-label","interest-rate-label",3,"nzSpan"],[1,"first-divider"],[1,"second-divider"],[1,"renewal-div"],[1,"renewal-content"],[3,"ngModel","ngModelChange"],["nz-radio","","nzValue","Principal + Interest",1,"principal-interest-label"],["nz-radio","","nzValue","Principal + Interest and Top Up",1,"principal-interest-topup-label"],[1,""],["type","text","nz-input","","name","principalInput","required","",1,"pay-now-input",3,"ngModel","disabled","ngModelChange","input"],["principalInput","ngModel"],["class","error-message pn",4,"ngIf"],["nz-radio","","nzValue","Principal Only and Withdraw Interest",1,"principal-only-withdrawal-interest-label"],["nz-radio","","nzValue","Renew Partial Principal Only",1,"renew-partial-principal-only-label"],[1,"symbol-span"],["type","text","nz-input","","name","principalOnlyInput","required","",3,"ngModel","disabled","ngModelChange","input"],["principalOnlyInput","ngModel"],["class","error-message renew-partial-principal-only",4,"ngIf"],[4,"ngIf"],[1,"term-div"],[1,"term-content"],["formControlName","tenure",3,"nzPlaceHolder","nzDisabled","nzLoading","ngModelChange"],[2,"height","0px",3,"nzSpan"],["nz-col","",1,"right-col-label",3,"nzSpan"],[3,"innerHTML"],[1,"footer-container"],["nz-button","",1,"generic-button",3,"click"],["nz-button","",1,"generic-button",3,"disabled","click"],["nz-col","",1,"fd-renewal-msg",3,"nzSpan"],[3,"nzValue","nzLabel"],[1,"error-message"],[1,"error-message","pn"],[1,"error-message","renew-partial-principal-only"],[1,"payment-div"],[1,"payment-mode"],[1,"payment-mode-content"],[1,"meps-transfer-div"],["nz-radio","","nzValue","PayNow",1,"pay-now-label"],[1,"fd-renewal-msg"],["nz-radio","","nzValue","MEPS Transfer"],["nz-row","",1,"beneficiary-bank-div"],["nz-col","","nzSpan","12"],[1,"beneficiary-bank-label"],["class","beneficiary-bank-select","ngModel","beneficiaryBank","name","creditToHlfAccountNo","required","",3,"nzPlaceHolder","nzDisabled","compareWith","ngModelChange","input",4,"ngIf"],["class","beneficiary-bank-select",3,"nzPlaceHolder","nzDisabled",4,"ngIf"],["class","beneficiaryBank-input","autocomplete","off","type","text","nz-input","","name","otherbeneficiaryBank","required","",3,"ngModel","disabled","ngModelChange","input",4,"ngIf"],["class","error-message bk",4,"ngIf"],["autocomplete","off","type","text","nz-input","","name","beneficiaryAccountNameInput","required","",1,"beneficiary-bank-account-input",3,"ngModel","disabled","ngModelChange","input"],["beneficiaryAccountNameInput","ngModel"],["class","error-message ban",4,"ngIf"],["autocomplete","off","type","text","nz-input","","name","beneficiaryAccountNoInput","required","",1,"beneficiary-account-no-input",3,"ngModel","disabled","ngModelChange","input"],["beneficiaryAccountNoInput","ngModel"],["class","error-message bbao",4,"ngIf"],["nz-radio","","nzValue","Credit to HLF Account"],["ngModel","creditToHlfAccountNo","name","creditToHlfAccountNo","required","",3,"nzPlaceHolder","nzDisabled","compareWith","ngModelChange","input",4,"ngIf"],["ngModel","creditToHlfAccountNo",3,"nzPlaceHolder","nzDisabled",4,"ngIf"],["class","error-message cthlfa",4,"ngIf"],["ngModel","beneficiaryBank","name","creditToHlfAccountNo","required","",1,"beneficiary-bank-select",3,"nzPlaceHolder","nzDisabled","compareWith","ngModelChange","input"],["creditToHlfAccountNo","ngModel"],[1,"beneficiary-bank-select",3,"nzPlaceHolder","nzDisabled"],["autocomplete","off","type","text","nz-input","","name","otherbeneficiaryBank","required","",1,"beneficiaryBank-input",3,"ngModel","disabled","ngModelChange","input"],[1,"error-message","bk"],[1,"error-message","ban"],[1,"error-message","bbao"],["ngModel","creditToHlfAccountNo","name","creditToHlfAccountNo","required","",3,"nzPlaceHolder","nzDisabled","compareWith","ngModelChange","input"],["ngModel","creditToHlfAccountNo",3,"nzPlaceHolder","nzDisabled"],[1,"error-message","cthlfa"]],template:function(r,i){1&r&&(e.TgZ(0,"div",0)(1,"nz-content")(2,"nz-spin",1),e.ALo(3,"async"),e.TgZ(4,"nz-row")(5,"div",2),e._uU(6),e.ALo(7,"translate"),e.TgZ(8,"div",3),e._UZ(9,"span",4)(10,"span",5),e.qZA()(),e.YNc(11,X,2,2,"div",6),e.qZA(),e.TgZ(12,"div",7),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"div",8)(16,"form",9)(17,"nz-form-item",10)(18,"nz-form-label",11),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"nz-form-control",12)(22,"nz-select",13),e.NdJ("ngModelChange",function(c){return i.changeAccountNumber(c)}
1)("input",function(){return i.clearFromAccError()}),e.ALo(23,"translate"),e.ALo(24,"async"),e.YNc(25,ee,1,2,"nz-option",14),e.ALo(26,"async"),e.qZA(),e.YNc(27,ne,2,1,"div",15),e.qZA()(),e.TgZ(28,"nz-form-item",10)(29,"nz-form-label",12),e._uU(30),e.ALo(31,"translate"),e.qZA(),e.YNc(32,te,3,4,"nz-form-label",16)(33,ie,2,2,"nz-form-label",16),e.qZA(),e.TgZ(34,"nz-form-item",10)(35,"nz-form-label",12),e._uU(36),e.ALo(37,"translate"),e.qZA(),e.YNc(38,re,3,4,"nz-form-label",16)(39,oe,2,2,"nz-form-label",16),e.qZA(),e.TgZ(40,"nz-form-item",10)(41,"nz-form-label",11),e._uU(42),e.ALo(43,"translate"),e.qZA(),e.TgZ(44,"nz-form-control",12)(45,"nz-select",17),e.NdJ("ngModelChange",function(c){return i.changeReceiptAccount(c)})("input",function(){return i.clearReceiptAccError()}),e.ALo(46,"translate"),e.YNc(47,ae,1,2,"nz-option",14),e.qZA(),e.YNc(48,le,2,1,"div",15),e.qZA()(),e.TgZ(49,"nz-form-item",10)(50,"nz-form-label",12),e._uU(51),e.ALo(52,"translate"),e.qZA(),e.YNc(53,ce,3,4,"nz-form-label",16)(54,se,3,6,"nz-form-label",16),e.qZA(),e.TgZ(55,"nz-form-item",10)(56,"nz-form-label",12),e._uU(57),e.ALo(58,"translate"),e.qZA(),e.YNc(59,pe,3,4,"nz-form-label",16)(60,de,2,2,"nz-form-label",16),e.qZA(),e.TgZ(61,"nz-form-item",10)(62,"nz-form-label",12),e._uU(63),e.ALo(64,"translate"),e.qZA(),e.TgZ(65,"nz-form-label",18),e._uU(66),e.qZA()(),e.TgZ(67,"nz-form-item",10)(68,"nz-form-label",12),e._uU(69),e.ALo(70,"translate"),e.qZA(),e.TgZ(71,"nz-form-label",18),e._uU(72),e.qZA()()()(),e._UZ(73,"nz-divider",19)(74,"nz-divider",20),e.TgZ(75,"div",21),e._uU(76),e.ALo(77,"translate"),e.qZA(),e.TgZ(78,"div",22)(79,"nz-radio-group",23),e.NdJ("ngModelChange",function(c){return i.radioValue=c})("ngModelChange",function(){return i.radioSelect()}),e.TgZ(80,"label",24),e._uU(81),e.ALo(82,"translate"),e.TgZ(83,"span"),e._uU(84," + "),e.qZA(),e._uU(85),e.ALo(86,"translate"),e.qZA(),e.TgZ(87,"label",25),e._uU(88),e.ALo(89,"translate"),e.TgZ(90,"span"),e._uU(91," + "),e.qZA(),e._uU(92),e.ALo(93,"translate"),e.TgZ(94,"div",3),e._UZ(95,"span",4)(96,"span",5),e.qZA(),e.TgZ(97,"span",26),e._uU(98),e.qZA(),e.TgZ(99,"input",27,28),e.NdJ("ngModelChange",function(c){return i.principalPlusInterestAndTopUp=c})("ngModelChange",function(c){return i.onChangePrincipal(c)})("input",function(){return i.clearPrincipalInputError()}),e.qZA(),e.YNc(101,ue,2,1,"div",29),e.qZA(),e.TgZ(102,"label",30),e._uU(103),e.ALo(104,"translate"),e.qZA(),e.TgZ(105,"label",31),e._uU(106),e.ALo(107,"translate"),e.TgZ(108,"span",32),e._uU(109),e.qZA(),e.TgZ(110,"input",33,34),e.NdJ("ngModelChange",function(c){return i.renewPartialPrincipalOnly=c})("ngModelChange",function(c){return i.onChangePrincipal(c)})("input",function(){return i.clearPrincipalOnlyInputError()}),e.qZA(),e.YNc(112,me,2,1,"div",35)(113,fe,3,3,"div",35),e.qZA()(),e.YNc(114,ge,2,1,"div",15),e.qZA(),e._UZ(115,"nz-divider",19)(116,"nz-divider",20),e.YNc(117,we,68,49,"div",36),e.TgZ(118,"div",37),e._uU(119),e.ALo(120,"translate"),e.qZA(),e.TgZ(121,"div",38)(122,"form",9)(123,"nz-form-item",10)(124,"nz-form-label",11),e._uU(125),e.ALo(126,"translate"),e.qZA(),e.TgZ(127,"nz-form-control",12)(128,"nz-select",39),e.NdJ("ngModelChange",function(c){return i.setSelectedTenure(c)}),e.ALo(129,"translate"),e.ALo(130,"async"),e.YNc(131,Ze,1,2,"nz-option",14),e.ALo(132,"async"),e.qZA(),e.YNc(133,Ee,2,1,"div",15),e.qZA()(),e.TgZ(134,"nz-form-item",10)(135,"nz-form-label",12),e._uU(136),e.ALo(137,"translate"),e.qZA(),e.YNc(138,Ne,3,4,"nz-form-label",16)(139,Re,2,3,"nz-form-label",16),e.qZA(),e.TgZ(140,"nz-form-item",10),e._UZ(141,"nz-form-label",40),e.TgZ(142,"nz-form-label",41)(143,"div"),e._uU(144),e.ALo(145,"translate"),e.qZA()()()()(),e._UZ(146,"nz-divider",19)(147,"nz-divider",20)(148,"div",42),e.TgZ(149,"div",43)(150,"button",44),e.NdJ("click",function(){return i.back()}),e._uU(151),e.ALo(152,"translate"),e.qZA(),e.TgZ(153,"button",45),e.NdJ("click",function(){return i.submit()}),e.ALo(154,"async"),e._uU(155),e.ALo(156,"translate"),e.qZA()()()()()),2&r&&(e.xp6(2),e.Q6J("nzSpinning",e.lcZ(3,99,i.retrieveFdServiceRequestFormLoading$)),e.xp6(3),e.Q6J("nzSpan",6),e.xp6(),e.hij(" ",e.lcZ(7,101,"fd_renew
1al_instruction")," "),e.xp6(4),e.Q6J("innerHTML",i.noteTitle,e.oJD),e.xp6(),e.Q6J("ngIf",i.noteFootMsg),e.xp6(2),e.hij(" ",e.lcZ(14,103,"account_particulars")," "),e.xp6(3),e.Q6J("formGroup",i.fdForm),e.xp6(),e.Q6J("nzGutter",e.DdM(163,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(20,105,"acc_no")),e.xp6(2),e.Q6J("nzSpan",10),e.xp6(),e.s9C("nzPlaceHolder",e.lcZ(23,107,"please_select")),e.Q6J("nzLoading",e.lcZ(24,109,i.retrieveFdServiceRequestFormLoading$))("compareWith",i.compareAccountNumber),e.xp6(3),e.Q6J("ngForOf",e.lcZ(26,111,i.retrieveFDRenewalForm$)),e.xp6(2),e.Q6J("ngIf",i.fromAccError),e.xp6(),e.Q6J("nzGutter",e.DdM(164,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.hij(" ",e.lcZ(31,113,"account_name")," "),e.xp6(2),e.Q6J("ngIf",!i.accountName),e.xp6(),e.Q6J("ngIf",i.accountName),e.xp6(),e.Q6J("nzGutter",e.DdM(165,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(37,115,"fixed_deposit_type")),e.xp6(2),e.Q6J("ngIf",!i.fixedDepositType),e.xp6(),e.Q6J("ngIf",i.fixedDepositType),e.xp6(),e.Q6J("nzGutter",e.DdM(166,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(43,117,"fd_receipt_or_advice_no")),e.xp6(2),e.Q6J("nzSpan",10),e.xp6(),e.s9C("nzPlaceHolder",e.lcZ(46,119,"please_select")),e.Q6J("compareWith",i.compareAdviceNumber)("nzDisabled",!i.isFromAccSelected),e.xp6(2),e.Q6J("ngForOf",i.selectedFixedDepositReceipts),e.xp6(),e.Q6J("ngIf",i.receiptAccError),e.xp6(),e.Q6J("nzGutter",e.DdM(167,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(52,121,"principal_amount")),e.xp6(2),e.Q6J("ngIf",!i.principalAmount),e.xp6(),e.Q6J("ngIf",i.principalAmount),e.xp6(),e.Q6J("nzGutter",e.DdM(168,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(58,123,"maturity_date")),e.xp6(2),e.Q6J("ngIf",!i.maturityDate),e.xp6(),e.Q6J("ngIf",i.maturityDate),e.xp6(),e.Q6J("nzGutter",e.DdM(169,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(64,125,"contact_no")),e.xp6(2),e.Q6J("nzSpan",10),e.xp6(),e.hij("",i.contactNo," "),e.xp6(),e.Q6J("nzGutter",e.DdM(170,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(70,127,"email_address")),e.xp6(2),e.Q6J("nzSpan",10),e.xp6(),e.hij("",i.email," "),e.xp6(4),e.Oqu(e.lcZ(77,129,"renewal")),e.xp6(3),e.Q6J("ngModel",i.radioValue),e.xp6(2),e.Oqu(e.lcZ(82,131,"principal")),e.xp6(4),e.Oqu(e.lcZ(86,133,"interest")),e.xp6(3),e.Oqu(e.lcZ(89,135,"principal")),e.xp6(4),e.hij("",e.lcZ(93,137,"interest_and_topup_via_paynow")," "),e.xp6(4),e.Q6J("innerHTML",i.notePrinPlusInterest,e.oJD),e.xp6(2),e.Oqu(i.currencySymbol),e.xp6(),e.Q6J("ngModel",i.principalPlusInterestAndTopUp)("disabled","Principal + Interest and Top Up"!==i.radioValue),e.xp6(2),e.Q6J("ngIf",i.principalPlusInterestAndTopUpError),e.xp6(2),e.Oqu(e.lcZ(104,139,"principal_only_and_withdraw_interest")),e.xp6(3),e.Oqu(e.lcZ(107,141,"renew_partial_principal_only")),e.xp6(3),e.Oqu(i.currencySymbol),e.xp6(),e.Q6J("ngModel",i.renewPartialPrincipalOnly)("disabled","Renew Partial Principal Only"!==i.radioValue),e.xp6(2),e.Q6J("ngIf",i.renewPartialPrincipalOnlyError),e.xp6(),e.Q6J("ngIf",i.firstTimeCall&&0===i.retrieveFDMonth$.getValue().length),e.xp6(),e.Q6J("ngIf",i.radioValueError),e.xp6(3),e.Q6J("ngIf",i.showModePayment),e.xp6(2),e.Oqu(e.lcZ(120,143,"term")),e.xp6(3),e.Q6J("formGroup",i.fdForm),e.xp6(),e.Q6J("nzGutter",e.DdM(171,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(126,145,"months")),e.xp6(2),e.Q6J("nzSpan",10),e.xp6(),e.s9C("nzPlaceHolder",e.lcZ(129,147,"please_select")),e.Q6J("nzDisabled",!i.isTenureSelected)("nzLoading",e.lcZ(130,149,i.retrieveFdMonthLoading$)),e.xp6(3),e.Q6J("ngForOf",e.lcZ(132,151,i.retrieveFDMonth$)),e.xp6(2),e.Q6J("ngIf",i.tenureError),e.xp6(),e.Q6J("nzGutter",e.DdM(172,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Oqu(e.lcZ(137,153,"interest_rate")),e.xp6(2),e.Q6J("ngIf",!i.rate&&!i.rateName),e.xp6(),e.Q6J("ngIf",i.rate&&i.rateName),e.xp6(),e.Q6J("nzGutter",e.DdM(173,u)),e.xp6(),e.Q6J("nzSpan",6),e.xp6(),e.Q6J("nzSpan",18),e.xp6(2),e.Oqu(e.lcZ(145,155,"fixed_deposit_rates_msg")),e.xp6(4),e.Q6J("innerHTML",i.noteBottomMsg,e.oJD),e.xp6(3),e.hij(" ",e.lcZ(152,157,"back")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(154,159,i.saveFdRenewalFormLoading$)),e.xp6(2),e.hij(" ",e.lcZ(156,161,"continue")," "))},dependencies:[g.sg,g.O5,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.On,d.sg,d.u,L.ix,H.w,k.dQ,Y.Ls,$.g,w.t3,w.SK,j.OK,G.NU,h.Lr,h.Nx,h.iK,h.Fd,W.Zp,Z.Of,Z.Dg,E.Ip,E.Vq,K.W,O.X$,g.Ov,g.JJ],styles:['@media screen and (max-width: 600px){.info-grid[_ngcontent-%COMP%]{border:1px solid lightgrey}
1.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%]{padding:10px 0 10px 10px;font-size:16px;font-weight:700;border-bottom:1px solid lightgrey;text-align:center}.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .center-col[_ngcontent-%COMP%]{text-align:center;font-weight:lighter}.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .button-col[_ngcontent-%COMP%]{transform:translateY(5px)}.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .button-col[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none!important}.info-grid[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .button-col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8vw;height:100%}.info-grid[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:10px}.info-grid[_ngcontent-%COMP%] .left-row[_ngcontent-%COMP%]{padding:10px 0 10px 10px}.info-grid[_ngcontent-%COMP%] .left-row[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.info-grid[_ngcontent-%COMP%] .left-row[_ngcontent-%COMP%] .center-col[_ngcontent-%COMP%]{text-align:center;font-weight:lighter}.info-grid[_ngcontent-%COMP%] .left-row[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:70%;text-align:right}}.top-desc[_ngcontent-%COMP%]{color:#000;font-size:1rem;font-weight:700;margin-bottom:5px}[nz-icon][_ngcontent-%COMP%]{margin-left:5px}.acc-particulars-div[_ngcontent-%COMP%]{color:#000;font-size:1rem;text-decoration:underline}.form-content[_ngcontent-%COMP%]{padding-top:1rem;font-size:1rem;padding-left:2vw}.form-content[_ngcontent-%COMP%] nz-form-label[_ngcontent-%COMP%]{text-transform:capitalize;text-align:left}.form-content[_ngcontent-%COMP%] nz-form-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:lowercase}.form-content[_ngcontent-%COMP%] .interest-rate-label[_ngcontent-%COMP%]{text-transform:none}.form-content[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ff4d4f}.first-divider[_ngcontent-%COMP%]{margin:24px 0 0;border-color:#000}.second-divider[_ngcontent-%COMP%]{margin:1px 0 24px;border-color:#000}.renewal-div[_ngcontent-%COMP%]{color:#000;font-size:1rem;text-decoration:underline}.renewal-content[_ngcontent-%COMP%]{padding-top:1rem;font-size:1rem;padding-left:2vw}.renewal-content[_ngcontent-%COMP%] .principal-interest-label[_ngcontent-%COMP%], .renewal-content[_ngcontent-%COMP%] .principal-only-withdrawal-interest-label[_ngcontent-%COMP%]{height:35px}.renewal-content[_ngcontent-%COMP%] .principal-interest-topup-label[_ngcontent-%COMP%], .renewal-content[_ngcontent-%COMP%] .renew-partial-principal-only-label[_ngcontent-%COMP%]{line-height:0px}.renewal-content[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;border:none}.renewal-content[_ngcontent-%COMP%] nz-radio-group[_ngcontent-%COMP%]{width:100%}.renewal-content[_ngcontent-%COMP%] [nz-radio][_ngcontent-%COMP%]{display:table}.renewal-content[_ngcontent-%COMP%] .symbol-span[_ngcontent-%COMP%]{margin-left:10px;font-size:14px}.renewal-content[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100px;margin-left:5px}.renewal-content[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ff4d4f}.renewal-content[_ngcontent-%COMP%] .pn[_ngcontent-%COMP%]{margin:10px 340px 0}.renewal-content[_ngcontent-%COMP%] .renew-partial-principal-only[_ngcontent-%COMP%]{margin:10px 0 0 230px}.payment-div[_ngcontent-%COMP%]{color:#000;font-size:1rem;padding-left:2vw}.payment-div[_ngcontent-%COMP%] .payment-mode[_ngcontent-%COMP%]{text-decoration:underline}.payment-mode-content[_ngcontent-%COMP%]{padding-top:1rem;font-size:1rem;padding-left:4vw}.payment-mode-content[_ngcontent-%COMP%] nz-radio-group[_ngcontent-%COMP%]{width:100%}.payment-mode-content[_ngcontent-%COMP%] [nz-radio][_ngcontent-%COMP%]{display:table}.payment-mode-content[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:65%;margin-left:10px}.payment-mode-content[_ngcontent-%COMP%] .pay-now-input[_ngcontent-%COMP%]{width:100px}.payment-mode-content[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{margin-left:10px}.payment-mode-content[_ngcontent-%COMP%] .beneficiary-bank-select[_ngcontent-%COMP%]{width:100%}.payment-mode-content[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ff4d4f}.payment-mode-content[_ngcontent-%COMP%] .pn[_ngcontent-%COMP%]{margin:0 120px}.payment-mode-content[_ngcontent-%COMP%] .bk[_ngcontent-%COMP%], .payment-mode-content[_ngcontent-%COMP%] .ban[_ngcontent-%COMP%], .payment-mode-content[_ngcontent-%COMP%] .bbao[_ngcontent-%COMP%]{margin:0 10px}.payment-mode-content[_ngcontent-%COMP%] .cthlfa[_ngcontent-%COMP%]{margin:0 170px}.payment-mode-content[_ngcontent-%COMP%] .meps-transfer-div[_ngcontent-%COMP%]{width:100%}.payment-mode-content[_ngcontent-%COMP%] .meps-transfer-div[_ngcontent-%COMP%] .pay-now-label[_ngcontent-%COMP%]{height:60px}.payment-mode-content[_ngcontent-%COMP%] .meps-transfer-div[_ngcontent-%COMP%] .beneficiary-bank-div[_ngcontent-%COMP%]{padding-left:24px;margin-bottom:10px}.term-div[_ngcontent-%COMP%]{color:#000;font-size:1rem;text-decoration:underline}.term-content[_ngcontent-%COMP%]{padding-top:1rem;font-size:1rem;padding-left:2vw}.term-content[_ngcontent-%COMP%] nz-form-label[_ngcontent-%COMP%]{text-transform:capitalize;text-align:left}.term-content[_ngcontent-%COMP%] nz-form-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:lowercase}.term-content[_ngcontent-%COMP%] .interest-rate-label[_ngcontent-%COMP%]{text-transform:none}.term-content[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ff4d4f}.footer-container[_ngcontent-%COMP%]{text-align:right;margin-top:15px}.footer-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:13px}@media screen and (max-width: 402px){.footer-container[_ngcontent-%COMP%]{margin-top:25px}.footer-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%!important;margin-bottom:15px}}.footer-container[_ngcontent-%COMP%] .generic-button[_ngcontent-%COMP%]{text-transform:capitalize;background:var(--hlf-gradient-red-color)!important;background-color:var(--hlf-gradient-red-color)!important;background:var(--hlf-gradient-linear-red-color)!important;background-color:var(--hlf-gradient-linear-red-color)!important;color:var(--hlf-std-btn-contrast-color);border-color:var(--hlf-gradient-red-color)!important;width:9rem;height:2.8rem;border-radius:18px}.footer-container[_ngcontent-%COMP%] .generic-button[_ngcontent-%COMP%]:hover, .footer-container[_ngcontent-%COMP%] .generic-button[_ngcontent-%COMP%]:focus{color:var(--hlf-std-btn-contrast-color);border-color:var(--hlf-gradient-red-color);background:var(--hlf-gradient-red-color);background-color:var(--hlf-gradient-red-color);background:var(--hlf-gradient-linear-red-color);background-color:var(--hlf-gradient-linear-red-color)}.footer-container[_ngcontent-%COMP%] .generic-button[_ngcontent-%COMP%]:active{color:var(--hlf-std-btn-contrast-color);border-color:var(--hlf-gradient-red-color)!important;background:var(--hlf-gradient-red-color)!important;background-color:var(--hlf-gradient-red-color)!important;background:var(--hlf-gradient-linear-red-color)!important;background-color:var(--hlf-gradient-linear-red-color)!important}.footer-container[_ngcontent-%COMP%] .generic-button[disabled][_ngcontent-%COMP%], .footer-container[_ngcontent-%COMP%] .generic-button[disabled][_ngcontent-%COMP%]:hover, .footer-container[_ngcontent-%COMP%] .generic-button[disabled][_ngcontent-%COMP%]:active, .footer-container[_ngcontent-%COMP%] .generic-button[disabled][_ngcontent-%COMP%]:focus{color:var(--grey-68);background:#f5f5f5;border-color:#d9d9d9;text-shadow:none;box-shadow:none}.card-container[_ngcontent-%COMP%]{margin-top:10px;width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.content-title[_ngcontent-%COMP%]{margin:10px 0;font-size:1.5rem;font-weight:700}.content-title[_ngcontent-%COMP%] .bread-crumbs[_ngcontent-%COMP%]{margin-top:-10px}.content-title[_ngcontent-%COMP%] .bread-crumbs[_ngcontent-%COMP%] .dashboard-crumb[_ngcontent-%COMP%]{font-size:.9rem;color:var(--hlf-color-primary);font-weight:400}.content-title[_ngcontent-%COMP%] .bread-crumbs[_ngcontent-%COMP%] .device-crumb[_ngcontent-%COMP%]{font-size:.9rem;color:#424141;font-weight:lighter}nz-content[_ngcontent-%COMP%]{background-color:#fff;padding:24px;box-shadow:0 2px 8px #00000026}.tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:10px}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:264px;background-color:#555;color:#fff;padding:15px!important;border-radius:6px;position:absolute;z-index:1;top:-15%;left:430%;margin-left:-60px;opacity:0;transition:opacity .4s;font-size:14px;font-weight:lighter!important}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:10px;left:-5px;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent #555 transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1;line-height:20px}
1.beneficiaryBank-input[_ngcontent-%COMP%]{margin-top:10px}.beneficiary-bank-account-input[_ngcontent-%COMP%], .beneficiary-account-no-input[_ngcontent-%COMP%]{width:100%!important}.fixed-deposit-rate-msg[_ngcontent-%COMP%]{padding:4px}.fd-renewal-msg[_ngcontent-%COMP%]{padding-left:20px;color:#bfbfbf} a{color:#000!important;text-decoration:underline!important}.right-col-label[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;overflow:visible}'],changeDetection:0})}}return t})();var Se=a(25904),Ie=a(29714);const Je=[{path:"",component:De}];let qe=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=e.oAB({type:t})}static{this.\u0275inj=e.cJS({imports:[M.Bz.forChild(Je),N.p,Se.o,Ie.Z]})}}return t})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.