PageSourceSearch

https://xpat.money/4969.764d9365f3d2b65c.js

js xpat.money collected 2026-09-24 13:53:37 UTC 80,480 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkremit2any=self.webpackChunkremit2any||[]).push([[4969],{54969:(O,I,d)=>{d.d(I,{w:()=>ft});var h=d(10467),s=d(60177),e=d(17705),c=d(89417),E=d(32102),V=d(99631),b=d(82798),m=d(10770),p=d(81561),_=d(45312),u=d(963),g=d(75840),v=d(86600);const F=["accountNameInput"];function x(n,i){1&n&&(e.j41(0,"div",24),e.EFF(1," Account type must be selected "),e.k0s())}function j(n,i){if(1&n&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.JRh(t.accountNumberVerifyError)}}function M(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," The bank account already exist "),e.k0s())}function R(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," Account Number is required "),e.k0s())}function D(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," Account Number must contain only digits (9\u201318 digits) "),e.k0s())}function P(n,i){if(1&n&&(e.qex(0),e.DNE(1,R,2,0,"span",10),e.DNE(2,D,2,0,"span",10),e.bVm()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",null==t.bankAccountForm.controls.accountNumber.errors?null:t.bankAccountForm.controls.accountNumber.errors.required),e.R7$(1),e.Y8G("ngIf",null==t.bankAccountForm.controls.accountNumber.errors?null:t.bankAccountForm.controls.accountNumber.errors.pattern)}}function T(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,j,2,1,"span",10),e.DNE(2,M,2,0,"span",10),e.DNE(3,P,3,2,"ng-container",15),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",t.accountNumberVerifyError),e.R7$(1),e.Y8G("ngIf",!t.accountNumberVerifyError&&t.bankAlreadyAdded),e.R7$(1),e.Y8G("ngIf",!t.accountNumberVerifyError&&!t.bankAlreadyAdded&&t.formSubmitted)}}function G(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," Please Confirm Account Number "),e.k0s())}function w(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," Confirm Account Number must contain only digits (9\u201318 digits) "),e.k0s())}function L(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,G,2,0,"span",10),e.DNE(2,w,2,0,"span",10),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",null==t.bankAccountForm.controls.confirmAccountNumber.errors?null:t.bankAccountForm.controls.confirmAccountNumber.errors.required),e.R7$(1),e.Y8G("ngIf",null==t.bankAccountForm.controls.confirmAccountNumber.errors?null:t.bankAccountForm.controls.confirmAccountNumber.errors.pattern)}}function X(n,i){1&n&&(e.j41(0,"div")(1,"span",24),e.EFF(2," * Account Numbers do not match "),e.k0s()())}function q(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," * IFSC Code is required "),e.k0s())}
1function K(n,i){if(1&n&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.SpI(" ",t.ifscVerifyError||"Enter a valid IFSC code."," ")}}function W(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,q,2,0,"span",10),e.DNE(2,K,2,1,"span",10),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",t.showIfscRequiredError()),e.R7$(1),e.Y8G("ngIf",t.showIfscFormatError())}}function H(n,i){if(1&n&&(e.j41(0,"div",11)(1,"label",25),e.EFF(2," Account Holder Name "),e.j41(3,"span",26),e.EFF(4,"*"),e.k0s()(),e.j41(5,"div",27),e.nrm(6,"input",28),e.nI1(7,"titlecase"),e.nrm(8,"img",29),e.k0s(),e.j41(9,"p",30),e.EFF(10," Your bank account has been successfully verified. "),e.k0s()()),2&n){const t=e.XpG();e.R7$(6),e.Y8G("value",e.bMT(7,1,t.bankVerifiedName))}}function z(n,i){if(1&n&&(e.j41(0,"div",31),e.nrm(1,"ng-lottie",32),e.j41(2,"p",33),e.EFF(3),e.k0s()()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("options",t.infoErrorRippleAnimationOptions),e.R7$(2),e.SpI(" ",t.bankValidateError," Please correct the account number and IFSC above, then verify again. ")}}function Q(n,i){1&n&&(e.j41(0,"span",24),e.EFF(1," Account holder name is required "),e.k0s())}function J(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Q,2,0,"span",10),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",null==t.bankAccountForm.controls.accountName.errors?null:t.bankAccountForm.controls.accountName.errors.required)}}function Z(n,i){1&n&&(e.j41(0,"p",41),e.EFF(1," Make sure this matches the name on your bank account. "),e.k0s())}function ee(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",34)(1,"div",35)(2,"p",36),e.EFF(3),e.k0s()(),e.j41(4,"label",37),e.EFF(5,"Account Holder Name as per bank records"),e.k0s(),e.j41(6,"div",13)(7,"input",38,39),e.bIt("blur",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.trimField("accountName"))}),e.k0s()(),e.DNE(9,J,2,1,"div",15),e.DNE(10,Z,2,0,"p",40),e.k0s()}if(2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",t.bankValidateError,". Please double-check the account number and IFSC above. "),e.R7$(3),e.AVh("is-invalid",t.showInputErrorState("accountName")),e.R7$(1),e.AVh("is-invalid",t.showInputErrorState("accountName")),e.R7$(2),e.Y8G("ngIf",t.bankAccountForm.controls.accountName.invalid&&t.formSubmitted),e.R7$(1),e.Y8G("ngIf",t.showAccountNameBankNameWarning())}}function te(n,i){if(1&n&&(e.j41(0,"div",42),e.nrm(1,"img",43),e.j41(2,"p",44),e.EFF(3),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.inlineFormError)}}let U=(()=>{class n{constructor(){this.formSubmitted=!1,this.bankValidated=!1,this.bankVerifiedName="",this.bankNameEntryRequired=!1,this.bankValidateError="",this.bankAlreadyAdded=!1,this.hideVerifiedCard=!1,this.accountNumberVerifyError="",this.ifscVerifyError="",this.inlineFormError="",this.detailChange=new e.bkB,this.infoErrorRippleAnimationOptions={path:"assets/animations/infoError.json",autoplay:!0,loop:!0}}static{this.ACCOUNT_NUMBER_VISIBLE_TAIL=4}static{this.ACCOUNT_NUMBER_MAX_LENGTH=18}static{this.INDIAN_BANK_NAME_PATTERN=/\b(?:hdfc|icici|axis|kotak|idbi|indusind|bandhan|equitas|canara|hsbc|citi(?:bank)?|idfc|aubank|yesbank|federal|sbi|pnb|bob|boi|uco|dcb|tmb|cub|kvb|jkb|rbl|nre|bank|state\s+bank|punjab\s+national|standard\s+chartered|idfc\s+first)\b/i}ngOnChanges(t){!0===t.bankNameEntryRequired?.currentValue&&this.focusAccountNameInput()}focusAccountNameInput(){setTimeout(()=>{const t=this.accountNameInput?.nativeElement;t&&(t.scrollIntoView({behavior:"smooth",block:"center"}),t.focus({preventScroll:!0}))},0)}onDetailChange(){this.detailChange.emit()}getMaskedAccountNumber(){const a=(this.bankAccountForm.get("accountNumber")?.value??"").replace(/\D/g,"");if(0===a.length)return"";const r=n.ACCOUNT_NUMBER_VISIBLE_TAIL;if(a.length<=r)return a;const o=a.slice(-r);return"*".repeat(a.length-r)+o}onAccountNumberKeydown(t){const a=this.bankAccountForm.get("accountNumber");if(!a)return;const r=t.key,o=/^\d$/.test(r),l="Backspace"===r,k="Delete"===r,A="Tab"===r,y=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r),C=t.ctrlKey||t.metaKey||t.altKey;if(!A&&!y){if(l){t.preventDefault();const f=(a.value??"").replace(/\D/g,"");return a.setValue(f.slice(0,-1),{emitEvent:!0}),void this.onDetailChange()}if(k){t.preventDefault();const f=(a.value??"").replace(/\D/g,""),N=t.target?.selectionStart??f.length;if(N>=0&&N<f.length){const $=f.slice(0,N)+f.slice(N+1);a.setValue($,{emitEvent:!0}),this.onDetailChange()}return}if(o&&!C){t.preventDefault();const f=(a.value??"").replace(/\D/g,"");if(f.length>=n.ACCOUNT_NUMBER_MAX_LENGTH)return;a.setValue(f+r,{emitEvent:!0}),this.onDetailChange()}else C||t.preventDefault()}}onAccountNumberPaste(t){t.preventDefault();const a=this.bankAccountForm.get("accountNumber");if(!a)return;const r=(t.clipboardData?.getData("text")??"").replace(/\D/g,""),l=((a.value??"").replace(/\D/g,"")+r).slice(0,n.ACCOUNT_NUMBER_MAX_LENGTH);a.setValue(l,{emitEvent:!0}),this.onDetailChange()}onConfirmAccountNumberPaste(t){t.preventDefault();const a=this.bankAccountForm.get("confirmAccountNumber");if(!a)return;const r=(t.clipboardData?.getData("text")??"").replace(/\D/g,"");r&&(a.setValue(r.slice(0,n.ACCOUNT_NUMBER_MAX_LENGTH),{emitEvent:!0}),this.onDetailChange())}onConfirmAccountNumberKeydown(t){const a=t.key,r=/^\d$/.test(a),o="Backspace"===a,l="Delete"===a,k="Tab"===a,A=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(a),y=t.ctrlKey||t.metaKey||t.altKey;k||A||y||(!r&&!o&&!l&&t.preventDefault(),r&&!y&&(this.bankAccountForm.get("confirmAccountNumber")?.value??"").replace(/\D/g,"").length>=n.ACCOUNT_NUMBER_MAX_LENGTH&&t.preventDefault())}showInputErrorState(t){if("accountNumber"===t&&this.accountNumberVerifyError||"ifscCode"===t&&this.ifscVerifyError)return!0;const a=this.bankAccountForm.get(t);return!!a&&(!("confirmAccountNumber"!==t||!a.errors?.confirmedValidator)||("ifscCode"===t?a.invalid&&(this.formSubmitted||a.touched):a.invalid&&this.formSubmitted))}showAccountNumberError(){return!!this.accountNumberVerifyError||this.bankAlreadyAdded||this.formSubmitted&&!!this.bankAccountForm.get("accountNumber")?.invalid}
1showIfscError(){return!!this.ifscVerifyError||this.formSubmitted&&!!this.bankAccountForm.get("ifscCode")?.invalid||!!this.bankValidateError&&!this.bankValidated&&!this.bankNameEntryRequired}showIfscValidationFeedback(){const t=this.bankAccountForm.get("ifscCode");return!(!t?.invalid&&!this.ifscVerifyError)&&(this.formSubmitted||!!t?.touched||!!this.ifscVerifyError)}showIfscRequiredError(){return!!this.bankAccountForm.get("ifscCode")?.errors?.required&&this.showIfscValidationFeedback()}showIfscFormatError(){if(this.ifscVerifyError)return!0;const t=this.bankAccountForm.get("ifscCode");return!(!t?.errors||!this.showIfscValidationFeedback()||t.errors.required||!(t.errors.pattern||t.errors.minlength||t.errors.maxlength))}showAccountNameBankNameWarning(){const t=String(this.bankAccountForm.get("accountName")?.value??"").trim();return!!t&&(n.INDIAN_BANK_NAME_PATTERN.test(t)||/\d/.test(t))}trimField(t){const a=this.bankAccountForm.get(t);if(a&&"string"==typeof a.value){let r=a.value.trim();"ifscCode"===t&&(r=r.toUpperCase(),a.markAsTouched()),r!==a.value?a.setValue(r,{emitEvent:!0}):"ifscCode"===t&&a.updateValueAndValidity()}this.onDetailChange()}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-bank-account-details-form"]],viewQuery:function(a,r){if(1&a&&e.GBs(F,5),2&a){let o;e.mGM(o=e.lsd())&&(r.accountNameInput=o.first)}},inputs:{bankAccountForm:"bankAccountForm",formSubmitted:"formSubmitted",bankValidated:"bankValidated",bankVerifiedName:"bankVerifiedName",bankNameEntryRequired:"bankNameEntryRequired",bankValidateError:"bankValidateError",bankAlreadyAdded:"bankAlreadyAdded",hideVerifiedCard:"hideVerifiedCard",accountNumberVerifyError:"accountNumberVerifyError",ifscVerifyError:"ifscVerifyError",inlineFormError:"inlineFormError"},outputs:{detailChange:"detailChange"},standalone:!0,features:[e.OA$,e.aNF],decls:47,vars:25,consts:[[3,"formGroup"],[1,"r2a-input-filed","matSelect"],[1,"r2a-text-brand-secondary"],[1,"r2a-input-control","mat-select-control"],["appearance","fill"],["formControlName","accountType","required","","panelClass","custom-menu",3,"selectionChange"],["value","NRO"],["value","NRE"],["value","Savings"],["value","Current"],["class","r2a-error",4,"ngIf"],[1,"r2a-input-filed"],["for","accountNumber",1,"form-label"],[1,"r2a-input-control"],["type","text","placeholder","Enter bank account number","id","accountNumber","inputmode","numeric","autocomplete","off","maxlength","18","required","",1,"form-control",3,"value","keydown","paste","blur"],[4,"ngIf"],["for","confirmAccountNumber"],["type","text","placeholder","Re-enter bank account number","id","confirmAccountNumber","formControlName","confirmAccountNumber","autocomplete","off","inputmode","numeric","maxlength","18","required","",1,"form-control",3,"blur","keydown","paste","input"],["for","ifscCode"],["type","text","placeholder","e.g. ABCD0123456","id","ifscCode","formControlName","ifscCode","maxlength","11","required","",1,"form-control",3,"blur","input"],["class","r2a-input-filed",4,"ngIf"],["class","r2a-mt-3 r2a-flex r2a-items-center r2a-gap-1 r2a-py-3 r2a-pl-2 r2a-pr-4 r2a-rounded-xl r2a-bg-error-utility-25 r2a-border r2a-border-error-utility-100","role","alert",4,"ngIf"],["class","r2a-input-filed r2a-mt-3",4,"ngIf"],["class","r2a-flex r2a-items-start r2a-gap-2 r2a-mt-4",4,"ngIf"],[1,"r2a-error"],["for","verifiedAccountHolderName"],["aria-hidden","true",1,"r2a-text-brand-600"],[1,"r2a-input-control","r2a-relative"],["type","text","id","verifiedAccountHolderName","readonly","","tabindex","-1","aria-readonly","true",1,"form-control","r2a-pr-10",3,"value"],["src","assets/images/icon/icon-check.svg","alt","","width","16","height","16","aria-hidden","true",1,"r2a-absolute","r2a-right-[14px]","r2a-top-1/2","r2a--translate-y-1/2","r2a-pointer-events-none","r2a-w-4","r2a-h-4","r2a-shrink-0"],[1,"r2a-mt-1.5","r2a-mb-0","r2a-text-base","r2a-text-success-light","r2a-font-regular"],["role","alert",1,"r2a-mt-3","r2a-flex","r2a-items-center","r2a-gap-1","r2a-py-3","r2a-pl-2","r2a-pr-4","r2a-rounded-xl","r2a-bg-error-utility-25","r2a-border","r2a-border-error-utility-100"],[1,"r2a-w-[38px]","r2a-h-[38px]","r2a-min-w-[38px]",3,"options"],[1,"r2a-text-[#B42318]","r2a-text-base","r2a-font-medium","r2a-leading-md","r2a-m-0","r2a-p-0"],[1,"r2a-input-filed","r2a-mt-3"],[1,"r2a-mb-2","r2a-p-3","r2a-rounded-[10px]","r2a-bg-[#FFF7E6]","r2a-border","r2a-border-[#FFE7A3]"],[1,"r2a-text-base","r2a-text-secondary","r2a-m-0"],["for","accountName"],["type","text","placeholder","Enter account holder name","
1id","accountName","formControlName","accountName",1,"form-control",3,"blur"],["accountNameInput",""],["class","r2a-mt-1 r2a-m-0 r2a-font-regular r2a-text-base r2a-leading-[20px] r2a-text-[#CA8504]",4,"ngIf"],[1,"r2a-mt-1","r2a-m-0","r2a-font-regular","r2a-text-base","r2a-leading-[20px]","r2a-text-[#CA8504]"],[1,"r2a-flex","r2a-items-start","r2a-gap-2","r2a-mt-4"],["src","assets/images/icon/info-circle.svg","alt","","width","16","height","16",1,"r2a-mt-0.5"],[1,"r2a-text-sm","r2a-text-error","r2a-m-0"]],template:function(a,r){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"label"),e.EFF(3,"Account Type "),e.j41(4,"span",2),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",3)(7,"mat-form-field",4)(8,"mat-select",5),e.bIt("selectionChange",function(){return r.onDetailChange()}),e.j41(9,"mat-option",6),e.EFF(10,"NRO"),e.k0s(),e.j41(11,"mat-option",7),e.EFF(12,"NRE"),e.k0s(),e.j41(13,"mat-option",8),e.EFF(14,"Savings"),e.k0s(),e.j41(15,"mat-option",9),e.EFF(16,"Current"),e.k0s()()()(),e.DNE(17,x,2,0,"div",10),e.k0s(),e.j41(18,"div",11)(19,"label",12),e.EFF(20,"Account Number "),e.j41(21,"span",2),e.EFF(22,"*"),e.k0s()(),e.j41(23,"div",13)(24,"input",14),e.bIt("keydown",function(l){return r.onAccountNumberKeydown(l)})("paste",function(l){return r.onAccountNumberPaste(l)})("blur",function(){return r.trimField("accountNumber")}),e.k0s()(),e.DNE(25,T,4,3,"div",15),e.k0s(),e.j41(26,"div",11)(27,"label",16),e.EFF(28,"Confirm Account Number "),e.j41(29,"span",2),e.EFF(30,"*"),e.k0s()(),e.j41(31,"div",13)(32,"input",17),e.bIt("blur",function(){return r.trimField("confirmAccountNumber")})("keydown",function(l){return r.onConfirmAccountNumberKeydown(l)})("paste",function(l){return r.onConfirmAccountNumberPaste(l)})("input",function(){return r.onDetailChange()}),e.k0s()(),e.DNE(33,L,3,2,"div",15),e.DNE(34,X,3,0,"div",15),e.k0s(),e.j41(35,"div",11)(36,"label",18),e.EFF(37,"IFSC Code "),e.j41(38,"span",2),e.EFF(39,"*"),e.k0s()(),e.j41(40,"div",13)(41,"input",19),e.bIt("blur",function(){return r.trimField("ifscCode")})("input",function(){return r.onDetailChange()}),e.k0s()(),e.DNE(42,W,3,2,"div",15),e.k0s(),e.DNE(43,H,11,3,"div",20),e.DNE(44,z,4,2,"div",21),e.DNE(45,ee,11,7,"div",22),e.DNE(46,te,4,1,"div",23),e.k0s()),2&a&&(e.Y8G("formGroup",r.bankAccountForm),e.R7$(6),e.AVh("is-invalid",r.showInputErrorState("accountType")),e.R7$(11),e.Y8G("ngIf",r.bankAccountForm.controls.accountType.invalid&&r.formSubmitted),e.R7$(6),e.AVh("is-invalid",r.showAccountNumberError()),e.R7$(1),e.AVh("is-invalid",r.showAccountNumberError()),e.Y8G("value",r.getMaskedAccountNumber()),e.R7$(1),e.Y8G("ngIf",r.showAccountNumberError()),e.R7$(6),e.AVh("is-invalid",r.showInputErrorState("confirmAccountNumber")),e.R7$(1),e.AVh("is-invalid",r.showInputErrorState("confirmAccountNumber")),e.R7$(1),e.Y8G("ngIf",r.bankAccountForm.controls.confirmAccountNumber.invalid&&r.formSubmitted),e.R7$(1),e.Y8G("ngIf",null==r.bankAccountForm.controls.confirmAccountNumber.errors?null:r.bankAccountForm.controls.confirmAccountNumber.errors.confirmedValidator),e.R7$(6),e.AVh("is-invalid",r.showIfscError()),e.R7$(1),e.AVh("is-invalid",r.showIfscError()),e.R7$(1),e.Y8G("ngIf",r.showIfscValidationFeedback()),e.R7$(1),e.Y8G("ngIf",r.bankValidated&&!r.hideVerifiedCard),e.R7$(1),e.Y8G("ngIf",r.bankValidateError&&!r.bankValidated&&!r.bankNameEntryRequired),e.R7$(1),e.Y8G("ngIf",r.bankNameEntryRequired),e.R7$(1),e.Y8G("ngIf",r.inlineFormError))},dependencies:[s.MD,s.bT,s.PV,c.X1,c.me,c.BC,c.cb,c.YS,c.tU,c.j4,c.JD,E.RG,E.rl,b.Ve,b.VO,v.wT,g.xm],encapsulation:2})}}return n})();var ne=d(76864),re=d(43253),S=d(75463),B=d(2493),ae=d(79176),Y=d.n(ae),ie=d(25131),oe=d(63556),se=d(12791);function ce(n,i){1&n&&(e.qex(0),e.EFF(1,"Done"),e.bVm())}function de(n,i){1&n&&(e.qex(0),e.EFF(1,"Add Indian Bank Account"),e.bVm())}function le(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.goBack())}),e.nrm(1,"img",15),e.j41(2,"span"),e.EFF(3,"Account details"),e.k0s()()}}function ue(n,i){1&n&&(e.qex(0),e.EFF(1,"Account details"),e.bVm())}function me(n,i){if(1&n&&(e.qex(0),e.DNE(1,le,4,0,"button",13),e.DNE(2,ue,2,0,"ng-container",3),e.bVm()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",t.canGoBackFromAccountDetails),e.R7$(1),e.Y8G("ngIf",!t.canGoBackFromAccountDetails)}}function pe(n,i){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",14),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.goBack())}),e.nrm(2,"img",15),e.j41(3,"span"),e.EFF(4,"Receiver details"),e.k0s()(),e.bVm()}}function fe(n,i){1&n&&(e.j41(0,"div",16),e.nrm(1,"span",17),e.k0s())}function _e(n,i){if(1&n&&(e.j41(0,"div",18),e.nrm(1,"img",19),e.j41(2,"h2",20),e.EFF(3),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s(),e.j41(6,"p",22),e.EFF(7),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.SpI(" ","upi"===t.deliveryMethod?"UPI id added":"Bank account added"," "),e.R7$(2),e.SpI(" ",t.nameWasBankVerified?"Verified with bank":"Account holder"," "),e.R7$(2),e.JRh(t.verifiedBankName)}}function he(n,i){1&n&&e.nrm(0,"img",34),2&n&&e.Y8G("src",i.$implicit,e.B4B)}function be(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"p",25),e.EFF(2," How should the money be delivered? "),e.k0s(),e.j41(3,"button",26),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.chooseDelivery("upi"))}),e.j41(4,"span",27),e.EFF(5,"UPI"),e.k0s(),e.j41(6,"span",28),e.nrm(7,"img",29),e.j41(8,"span",30),e.EFF(9," Send to any UPI app using your recipient's UPI ID "),e.k0s()()(),e.j41(10,"button",26),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.chooseDelivery("bank"))}),e.j41(11,"span",27),e.EFF(12,"Bank deposit"),e.k0s(),e.j41(13,"span",28)(14,"span",31),e.DNE(15,he,1,1,"img",32),e.j41(16,"span",33),e.EFF(17,"+228"),e.k0s()(),e.j41(18,"span",30),e.EFF(19," HDFC Bank, State Bank of India (SBI), and 228 more "),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(15),e.Y8G("ngForOf",t.bankClusterIcons)}}function ve(n,i){1&n&&(e.j41(0,"div",46),e.EFF(1," Enter a valid UPI id, e.g. name@okicici "),e.k0s())}function ge(n,i){if(1&n&&(e.j41(0,"p",47),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(1),e.SpI(" ",t.vpaError," ")}}function ke(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",40)(1,"label",41),e.EFF(2,"UPI ID"),e.k0s(),e.j41(3,"div",42)(4,"input",43),e.bIt("keyup.enter",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.validateVpa())}),e.k0s()(),e.DNE(5,ve,2,0,"div",44),e.DNE(6,ge,2,1,"p",45),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(3),e.AVh("is-invalid",t.showInputErrorState("upiId")),e.R7$(1),e.BMQ("aria-invalid",t.showInputErrorState("upiId")?"true":null),e.R7$(1),e.Y8G("ngIf",t.bankAccountForm.controls.upiId.invalid&&(t.formSubmitted||t.bankAccountForm.controls.upiId.touched)),e.R7$(1),e.Y8G("ngIf",!t.vpaVerifying&&t.vpaError)}}function Ae(n,i){1&n&&(e.j41(0,"p",60),e.EFF(1," This UPI id is already in your account \u2014 you can send money to it directly. "),e.k0s())}function ye(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",48)(1,"p",49),e.EFF(2," We found a UPI ID for: "),e.k0s(),e.j41(3,"div",50),e.nrm(4,"img",51),e.j41(5,"div",52)(6,"p",53),e.EFF(7),e.nI1(8,"titlecase"),e.k0s(),e.j41(9,"p",54),e.
1EFF(10),e.k0s()(),e.j41(11,"button",55),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.changeVpa())}),e.EFF(12," Change "),e.k0s()(),e.j41(13,"p",56),e.nrm(14,"img",57),e.EFF(15," Name verified with bank "),e.k0s(),e.j41(16,"div",58),e.nrm(17,"img",38),e.j41(18,"p",39),e.EFF(19," Please verify your recipient's account information. You can lose the transfer amount if incorrect information is provided. "),e.k0s()(),e.DNE(20,Ae,2,0,"p",59),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(7),e.SpI(" ",e.bMT(8,3,t.verifiedVpaName)," "),e.R7$(3),e.SpI(" ",t.bankAccountForm.controls.upiId.value," "),e.R7$(10),e.Y8G("ngIf",t.vpaAlreadyAdded)}}function Ne(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,ke,7,5,"div",35),e.DNE(2,ye,21,5,"div",36),e.j41(3,"div",37),e.nrm(4,"img",38),e.j41(5,"p",39),e.EFF(6),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!t.vpaVerified),e.R7$(1),e.Y8G("ngIf",t.vpaVerified),e.R7$(4),e.SpI(" UPI is for individual recipients and supports transfers up to ",t.vpaMaxAmountLabel,". ")}}function Fe(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.useSuggestedAccountName())}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(1),e.SpI(' Use bank name: "',t.suggestedAccountName,'" ')}}function Ee(n,i){if(1&n&&(e.j41(0,"div",63)(1,"p",64),e.EFF(2),e.k0s(),e.DNE(3,Fe,2,1,"button",65),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",t.nameMismatchDetails||"The bank reports a different name for this account."," "),e.R7$(1),e.Y8G("ngIf",t.suggestedAccountName)}}function Ce(n,i){if(1&n&&(e.j41(0,"div"),e.nrm(1,"app-bank-account-details-form",61),e.DNE(2,Ee,4,2,"div",62),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("bankAccountForm",t.bankAccountForm)("formSubmitted",t.formSubmitted)("bankValidated",t.bankValidated)("bankVerifiedName",t.bankVerifiedName)("bankNameEntryRequired",t.bankNameEntryRequired)("bankValidateError",t.bankValidateError)("bankAlreadyAdded",t.bankAlreadyAdded),e.R7$(1),e.Y8G("ngIf",t.isNameMismatch)}}function Ie(n,i){if(1&n&&(e.j41(0,"div",78)(1,"div")(2,"span",79),e.EFF(3," Account holder "),e.k0s(),e.j41(4,"span",80)(5,"strong"),e.EFF(6),e.k0s(),e.EFF(7," (entered manually) "),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(6),e.JRh(t.verifiedBankName)}}function Ve(n,i){1&n&&(e.j41(0,"span",82),e.EFF(1,"First name is required"),e.k0s())}function xe(n,i){1&n&&(e.j41(0,"span",82),e.EFF(1,"Minimum 2 characters required"),e.k0s())}function Re(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Ve,2,0,"span",81),e.DNE(2,xe,2,0,"span",81),e.k0s()),2&n){const t=e.XpG(3);let a,r;e.R7$(1),e.Y8G("ngIf",null==(a=t.receiverForm.get("firstName"))||null==a.errors?null:a.errors.required),e.R7$(1),e.Y8G("ngIf",!(null!=(r=t.receiverForm.get("firstName"))&&null!=r.errors&&r.errors.required)&&(null==(r=t.receiverForm.get("firstName"))||null==r.errors?null:r.errors.minlength))}}function Se(n,i){1&n&&(e.j41(0,"span",82),e.EFF(1,"Last name is required"),e.k0s())}function Be(n,i){1&n&&(e.j41(0,"span",82),e.EFF(1,"Minimum 2 characters required"),e.k0s())}function De(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Se,2,0,"span",81),e.DNE(2,Be,2,0,"span",81),e.k0s()),2&n){const t=e.XpG(3);let a,r;e.R7$(1),e.Y8G("ngIf",null==(a=t.receiverForm.get("lastName"))||null==a.errors?null:a.errors.required),e.R7$(1),e.Y8G("ngIf",!(null!=(r=t.receiverForm.get("lastName"))&&null!=r.errors&&r.errors.required)&&(null==(r=t.receiverForm.get("lastName"))||null==r.errors?null:r.errors.minlength))}}function Te(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.useSuggestedReceiverName())}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(1),e.SpI(' Use bank name: "',t.suggestedAccountName,'" ')}}function je(n,i){if(1&n&&(e.j41(0,"div",83)(1,"p",64),e.EFF(2),e.k0s(),e.DNE(3,Te,2,1,"button",65),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",t.nameMismatchDetails||"The bank reports a different name for this account."," "),e.R7$(1),e.Y8G("ngIf",t.suggestedAccountName)}}function Me(n,i){1&n&&(e.j41(0,"div",84),e.nrm(1,"img",85),e.j41(2,"span",86),e.EFF(3," Name Verified with Bank "),e.k0s()())}function Pe(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"Phone number is required"),e.k0s()())}function Ge(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"Address line 1 is required"),e.k0s()())}function we(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",40)(1,"label"),e.EFF(2,"Address line 1 "),e.j41(3,"span",71),e.EFF(4,"*"),e.k0s()(),e.j41(5,"div",42)(6,"input",87),e.bIt("input",function(r){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onAddressSearchInput(r.target.value))})("addressSelected",function(r){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onPlacesAddressSelected(r))}),e.k0s()(),e.DNE(7,Ge,3,0,"div",3),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(5),e.AVh("is-invalid",t.showReceiverErrorState("addressLine1")),e.R7$(2),e.Y8G("ngIf",t.showReceiverErrorState("addressLine1"))}}function $e(n,i){1&n&&(e.j41(0,"div",40)(1,"label"),e.EFF(2,"Address line 2 (optional)"),e.k0s(),e.j41(3,"div",42),e.nrm(4,"input",92),e.k0s()())}function Oe(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"Address line 1 is required"),e.k0s()())}function Le(n,i){if(1&n&&(e.j41(0,"div",40)(1,"label"),e.EFF(2,"Address line 1 "),e.j41(3,"span",71),e.EFF(4,"*"),e.k0s()(),e.j41(5,"div",42),e.nrm(6,"input",93),e.k0s(),e.DNE(7,Oe,3,0,"div",3),e.k0s()),2&n){const t=e.XpG(4);e.R7$(5),e.AVh("is-invalid",t.showReceiverErrorState("addressLine1")),e.R7$(2),e.Y8G("ngIf",t.showReceiverErrorState("addressLine1"))}}function Ue(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"City is required"),e.k0s()())}function Ye(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"State is required"),e.k0s()())}function Xe(n,i){1&n&&(e.j41(0,"span",82),e.EFF(1,"Postal code is required"),e.k0s())}function qe(n,i){if(1&n&&(e.j41(0,"span",82),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(1),e.JRh(t.postalCodeLengthErrorMessage)}}function Ke(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Xe,2,0,"span",81),e.DNE(2,qe,2,1,"span",81),e.k0s()),2&n){const t=e.XpG(4);let a,r;e.R7$(1),e.Y8G("ngIf",null==(a=t.receiverForm.get("postalCode"))||null==a.errors?null:a.errors.required),e.R7$(1),e.Y8G("ngIf",null==(r=t.receiverForm.get("postalCode"))||null==r.errors?null:r.errors.postalCodeLength)}}function We(n,i){1&n&&(e.j41(0,"div")(1,"span",82),e.EFF(2,"Country is required"),e.k0s()())}function He(n,i){if(1&n){const t=e.RV6();e.j41(0,"div"),e.DNE(1,$e,5,0,"div",35),e.DNE(2,Le,8,3,"div",35),e.j41(3,"div",69)(4,"div",70)(5,"label"),e.EFF(6,"City "),e.j41(7,"span",71),e.EFF(8,"*"),e.k0s()(),e.j41(9,"div",42),e.nrm(10,"input",88),e.k0s(),e.DNE(11,Ue,3,0,"div",3),e.k0s(),e.j41(12,"div",70)(13,"label"),e.EFF(14,"State "),e.j41(15,"span",71),e.EFF(16,"*"),e.k0s()(),e.j41(17,"div",42),e.nrm(18,"input",89),e.k0s(),e.DNE(19,Ye,3,0,"div",3),e.k0s()(),e.j41(20,"div",69)(21,"div",70)(22,"label"),e.EFF(23,"Postal code "),e.j41(24,"span",71),e.EFF(25,"*"),e.k0s()(),e.j41(26,"div",42)(27,"input",90),e.bIt("blur",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.onReceiverPostalCodeBlur())}),e.k0s()(),e.DNE(28,Ke,3,2,"div",3),e.k0s(),e.j41(29,"div",70)(30,"label"),e.EFF(31,"Country "),e.j41(32,"span",71),e.EFF(33,"*"),e.k0s()(),e.j41(34,"div",42),e.nrm(35,"input",91),e.k0s(),e.DNE(36,We,3,0,"div",3),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(1),e.Y8G("ngIf",t.placesSearchEnabled),e.R7$(1),e.Y8G("ngIf",!t.placesSearchEnabled),e.R7$(7),e.AVh("is-invalid",t.showReceiverErrorState("city")),e.R7$(2),e.Y8G("ngIf",t.showReceiverErrorState("city")),e.R7$(6),e.AVh("is-invalid",t.showReceiverErrorState("state")),e.R7$(2),e.Y8G("ngIf",t.showReceiverErrorState("state")),e.R7$(7),e.AVh("is-invalid",t.showReceiverPostalCodeError()),e.R7$(2),e.Y8G("ngIf",t.showReceiverPostalCodeError()),e.R7$(6),e.AVh("is-invalid",t.showReceiverErrorState("country")),e.R7$(2),e.Y8G("ngIf",t.showReceiverErrorState("country"))}}const ze=function(n,i){return[n,i]};function Qe(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",67),e.DNE(1,Ie,8,1,"div",68),e.j41(2,"div",69)(3,"div",70)(4,"label"),e.EFF(5,"First name "),e.j41(6,"span",71),e.EFF(7,"*"),e.k0s()(),e.j41(8,"div",42),e.nrm(9,"input",72),e.k0s(),e.DNE(10,Re,3,2,"div",3),e.k0s(),e.j41(11,"div",70)(12,"label"),e.EFF(13,"Last name "),e.j41(14,"span",71),e.EFF(15,"*"),e.k0s()(),e.j41(16,"div",42),e.nrm(17,"input",73),e.k0s(),e.DNE(18,De,3,2,"div",3),e.k0s()(),e.DNE(19,je,4,2,"div",74),e.DNE(20,Me,4,0,"div",75),e.j41(21,"div",40)(22,"label"),e.EFF(23,"Phone "),e.j41(24,"span",71),e.EFF(25,"*"),e.k0s()(),e.j41(26,"div",76)(27,"intl-telephone-input",77),e.bIt("onChange",function(r){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onReceiverPhoneNumberUpdate(r))}),e.k0s()(),e.DNE(28,Pe,3,0,"div",3),e.k0s(),e.DNE(29,we,8,3,"div",35),e.DNE(30,He,37,14,"div",3),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!t.nameWasBankVerified),e.R7$(7),e.AVh("is-invalid",t.showReceiverNameError("firstName")),e.R7$(2),e.Y8G("ngIf",t.showReceiverNameError("firstName")),e.R7$(6),e.AVh("is-invalid",t.showReceiverNameError("lastName")),e.R7$(2),e.Y8G("ngIf",t.showReceiverNameError("lastName")),e.R7$(1),e.Y8G("ngIf",t.isNameMismatch),e.R7$(1),e.Y8G("ngIf",t.showNameVerifiedBadge),e.R7$(6),e.AVh("is-invalid",t.showReceiverErrorState("phone")),e.R7$(1),e.Y8G("selectedCountryISO",t.countryISO.India)("preferredCountries",e.l_i(24,ze,t.countryISO.India,t.countryISO.UnitedStates))("enablePlaceholder",!0)("customPlaceholder",t.phoneNumberPlaceHolder)("searchCountryFlag",!0)("separateDialCode",!0)("enableAutoCountrySelect",!1)("searchCountryField",t.searchCountryField.All)("phoneValidation",!1)("numberFormat",t.phoneNumberFormat.International),e.R7$(1),e.Y8G("ngIf",t.showReceiverErrorState("phone")),e.R7$(1),e.Y8G("ngIf",t.placesSearchEnabled),e.R7$(1),e.Y8G("ngIf",t.showAddressFields||!t.placesSearchEnabled)}}function Je(n,i){if(1&n&&(e.j41(0,"form",23),e.nI1(1,"async"),e.DNE(2,be,20,1,"div",3),e.DNE(3,Ne,7,3,"div",3),e.DNE(4,Ce,3,8,"div",3),e.DNE(
15,Qe,31,27,"div",24),e.k0s()),2&n){const t=e.XpG();e.Y8G("formGroup",t.bankAccountForm)("hidden",e.bMT(1,6,t._sharedService.loader)),e.R7$(2),e.Y8G("ngIf",1===t.currentStep),e.R7$(1),e.Y8G("ngIf",2===t.currentStep&&"upi"===t.deliveryMethod),e.R7$(1),e.Y8G("ngIf",2===t.currentStep&&"bank"===t.deliveryMethod),e.R7$(1),e.Y8G("ngIf",3===t.currentStep)}}function Ze(n,i){1&n&&(e.j41(0,"div",94)(1,"div",95)(2,"div",96)(3,"div",97)(4,"div",98),e.nrm(5,"div",99)(6,"div",100),e.k0s(),e.nrm(7,"div",100)(8,"div",100),e.k0s()()()())}function et(n,i){1&n&&(e.j41(0,"div",104),e.nrm(1,"img",105),e.j41(2,"p",106),e.EFF(3," We verify the name with the bank. Incorrect details will impact funds delivery. "),e.k0s()())}function tt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",108),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.sendMoneyToExistingBank())}),e.EFF(1," Send money "),e.k0s()}}function nt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",109),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.validateBank())}),e.nI1(1,"async"),e.EFF(2),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,2,t._sharedService.loader)||t.bankValidating||!t.bankDetail
1sReady),e.R7$(2),e.SpI(" ",t.bankValidating?"Verifying with bank\u2026":"Verify account"," ")}}function rt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",109),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.submitAccountDetails())}),e.nI1(1,"async"),e.EFF(2," Add account "),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,1,t._sharedService.loader)||!t.canSubmitBank)}}function at(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,tt,2,0,"button",103),e.DNE(2,nt,3,4,"button",107),e.DNE(3,rt,3,3,"button",107),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",t.bankAlreadyAdded),e.R7$(1),e.Y8G("ngIf",!t.bankAlreadyAdded&&t.bankShowVerifyCta),e.R7$(1),e.Y8G("ngIf",!t.bankAlreadyAdded&&!t.bankShowVerifyCta)}}function it(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",109),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.validateVpa())}),e.nI1(1,"async"),e.EFF(2),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,3,t._sharedService.loader)||t.vpaVerifying||t.bankAccountForm.controls.upiId.invalid),e.BMQ("aria-busy",t.vpaVerifying?"true":null),e.R7$(2),e.SpI(" ",t.vpaVerifying?"Verifying\u2026":"Verify UPI ID"," ")}}function ot(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",109),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.submitVpa())}),e.nI1(1,"async"),e.EFF(2," Add UPI id "),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,1,t._sharedService.loader))}}function st(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",108),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.sendMoneyToExistingVpa())}),e.EFF(1," Send money "),e.k0s()}}function ct(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,it,3,5,"button",107),e.DNE(2,ot,3,3,"button",107),e.DNE(3,st,2,0,"button",103),e.k0s()),2&n){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!t.vpaVerified),e.R7$(1),e.Y8G("ngIf",t.vpaVerified&&!t.vpaAlreadyAdded),e.R7$(1),e.Y8G("ngIf",t.vpaVerified&&t.vpaAlreadyAdded)}}function dt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",114),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.skipReceiverDetails())}),e.nI1(1,"async"),e.EFF(2," Skip for now "),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,1,t._sharedService.loader))}}function lt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",114),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.cancelEdit())}),e.nI1(1,"async"),e.EFF(2," Cancel "),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",e.bMT(1,1,t._sharedService.loader))}}function ut(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"p",110),e.nrm(2,"img",105),e.j41(3,"span",111),e.EFF(4,"Required to comply with banking regulations."),e.k0s()(),e.j41(5,"div",69),e.DNE(6,dt,3,3,"button",112),e.DNE(7,lt,3,3,"button",112),e.j41(8,"button",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.saveReceiverDetails())}),e.nI1(9,"async"),e.EFF(10," Save details "),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",!t.receiverOnlyMode),e.R7$(1),e.Y8G("ngIf",t.receiverOnlyMode),e.R7$(1),e.Y8G("disabled",e.bMT(9,3,t._sharedService.loader))}}function mt(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",108),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.finish())}),e.EFF(1," Done "),e.k0s()}}function pt(n,i){if(1&n&&(e.j41(0,"div",101),e.DNE(1,et,4,0,"div",102),e.DNE(2,at,4,3,"div",3),e.DNE(3,ct,4,3,"div",3),e.DNE(4,ut,11,5,"div",3),e.DNE(5,mt,2,0,"button",103),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",2===t.currentStep&&"bank"===t.deliveryMethod&&!t.isComplete),e.R7$(1),e.Y8G("ngIf",!t.isComplete&&2===t.currentStep&&"bank"===t.deliveryMethod),e.R7$(1),e.Y8G("ngIf",!t.isComplete&&2===t.currentStep&&"upi"===t.deliveryMethod),e.R7$(1),e.Y8G("ngIf",!t.isComplete&&3===t.currentStep),e.R7$(1),e.Y8G("ngIf",t.isComplete)}}let ft=(()=>{class n{static{this.VPA_PATTERN=/^[a-zA-Z0-9._]{2,40}@[a-zA-Z0-9]{2,20}$/}static{this.ACCOUNT_NUMBER_VISIBLE_TAIL=4}static{this.ACCOUNT_NUMBER_MIN_LENGTH=9}static{this.ACCOUNT_NUMBER_MAX_LENGTH=18}static{this.IFSC_PATTERN=/^[A-Z]{4}0[A-Z0-9]{6}$/i}static{this.INDIAN_BANK_NAME_PATTERN=/\b(?:hdfc|icici|axis|kotak|idbi|indusind|bandhan|equitas|canara|hsbc|citi(?:bank)?|idfc|aubank|yesbank|federal|sbi|pnb|bob|boi|uco|dcb|tmb|cub|kvb|jkb|rbl|nre|bank|state\s+bank|punjab\s+national|standard\s+chartered|idfc\s+first)\b/i}static{this.RECEIVER_REQUIRED_FIELDS=["firstName","lastName","phone","addressLine1","city","state","postalCode","country"]}static{this.RECEIVER_NAME_FIELDS=["firstName","lastName"]}static{this.POSTAL_CODE_PATTERN_IN=/^\d{6}$/}static{this.POSTAL_CODE_PATTERN_US=/^\d{5}(-?\d{4})?$/}static{this.postalCodeLengthValidator=t=>{const a=(t.value??"").toString().trim();if(!a)return null;const r=(t.parent?.get("country")?.value??"").toString().trim().toUpperCase();return"IN"===r?n.POSTAL_CODE_PATTERN_IN.test(a)?null:{postalCodeLength:!0}:"US"===r?n.POSTAL_CODE_PATTERN_US.test(a)?null:{postalCodeLength:!0}:null}}constructor(t,a,r,o,l,k){this._formBuilder=t,this.activeModal=a,this._sharedService=r,this._privateLayoutService=o,this._coreService=l,this.router=k,this.formErrorReason="",this.bankList=[],this.vpaList=[],this.bankOnly=!1,this.dismissWithoutReload=!1,this.collectReceiverDetails=!1,this.accountAdded=new e.bkB,this.placesSearchEnabled=!!_.c.googleMapsApiKey?.trim(),this.showAddressFields=!this.placesSearchEnabled,this.countryISO=B.ij,this.searchCountryField=B.XY,this.phoneNumberFormat=B.Hr,this.phoneNumberPlaceHolder="XXX-XXX-XXXX",this.receiverOnlyMode=!1,this.createdInstrument=null,this.currentStep=2,this.initializing=!0,this.isComplete=!1,this.deliveryMethod="bank",this.vpaVerifying=!1,this.vpaVerified=!1,this.vpaVerifiedValue="",this.verifiedVpaName="",this.vpaError="",this.vpaMaxAmountLabel="\u20b92,00,000",this.bankClusterIcons=[Y().getIcon("HDFC Bank","svg")?.icon_url,Y().getIcon("State Bank of India","svg")?.icon_url].filter(A=>!!A),this.upiEligible=!1,this.vpaAlreadyAdded=!1,this.existingVpaInstrument=null,this.bankValidating=!1,this.bankValidated=!1,this.bankVerifiedName="",this.bankNameEntryRequired=!1,this.bankValidateError="",this.bankAlreadyAdded=!1,this.existingBankInstrument=null,this.verifiedBankName="",this.nameWasBankVerified=!0,this.nameEntryRequired=!1,this.accountClassification="",this.isSelfAccount=!1,this.createdPaymentInstrumentId="",this.isNameMismatch=!1,this.nameMismatchDetails="",this.nameMismatchAcknowledged=!1,this.suggestedAccountName="",this.isApplyingSuggestedName=!1,this.formSubmitted=!1,this.validatedAccountSnapshot=""}ngOnInit(){var t=this;return(0,h.A)(function*(){return t.bankAccountForm=t._formBuilder.group({accountType:t._formBuilder.control("",[c.k0.required]),ifscCode:t._formBuilder.control("",[c.k0.required,
1c.k0.minLength(11),c.k0.maxLength(11),c.k0.pattern(n.IFSC_PATTERN)]),accountName:t._formBuilder.control(""),accountNumber:t._formBuilder.control("",[c.k0.required,c.k0.pattern(/^\d{9,18}$/)]),confirmAccountNumber:t._formBuilder.control("",[c.k0.required,c.k0.pattern(/^\d{9,18}$/)]),upiId:t._formBuilder.control("",[c.k0.required,c.k0.pattern(n.VPA_PATTERN)]),payParty:t._formBuilder.group({firstName:t._formBuilder.control(""),lastName:t._formBuilder.control(""),phone:t._formBuilder.control(""),addressLine1:t._formBuilder.control(""),addressLine2:t._formBuilder.control(""),city:t._formBuilder.control(""),state:t._formBuilder.control(""),postalCode:t._formBuilder.control(""),country:t._formBuilder.control("")})},{validator:S.A.matchFieldValidator("accountNumber","confirmAccountNumber")}),t.bankAccountForm.get("payParty")?.get("firstName")?.disable(),t.bankAccountForm.get("payParty")?.get("lastName")?.disable(),t.bankAccountForm.get("accountName")?.valueChanges.subscribe(()=>{t.isApplyingSuggestedName?t.isApplyingSuggestedName=!1:t.resetNameMismatchState()}),t.bankAccountForm.get("accountNumber")?.valueChanges.subscribe(()=>{t.resetNameMismatchState(),t.maybeResetBankValidationOnEdit()}),t.bankAccountForm.get("ifscCode")?.valueChanges.subscribe(()=>{t.resetNameMismatchState(),t.maybeResetBankValidationOnEdit()}),t.bankAccountForm.get("accountType")?.valueChanges.subscribe(()=>{t.maybeResetBankValidationOnEdit()}),t.receiverForm.get("firstName")?.valueChanges.subscribe(()=>{t.resetNameMismatchState()}),t.receiverForm.get("lastName")?.valueChanges.subscribe(()=>{t.resetNameMismatchState()}),t.receiverForm.get("country")?.valueChanges.subscribe(()=>{t.receiverForm.get("postalCode")?.updateValueAndValidity()}),t.vpaValueSub=t.bankAccountForm.get("upiId")?.valueChanges.subscribe(()=>{(t.vpaVerified||t.vpaError||t.vpaVerifying)&&t.resetVpaVerificationState()}),t.editReceiver?.paymentInstrumentId?(t.receiverOnlyMode=!0,t.createdPaymentInstrumentId=t.editReceiver.paymentInstrumentId,t.verifiedBankName=t.editReceiver.bankName||"",t.prefillReceiverFromBankName(),t.applyReceiverValidators(!0),t.currentStep=3,void(t.initializing=!1)):(t._coreService.trackProductEvent("indian_bank",{status:"started"},["firebase","meta","moengage"]),t._coreService.setMoEngageUserAttributes({indian_bank_status:"started"}),t.bankOnly?(t.deliveryMethod="bank",t.currentStep=2,void(t.initializing=!1)):void t._privateLayoutService.getUpiEligibility().subscribe({next:a=>{t.upiEligible=!!a?.enabled,t.currentStep=t.upiEligible?1:2,t.initializing=!1},error:()=>{t.upiEligible=!1,t.currentStep=2,t.initializing=!1}}))})()}ngOnDestroy(){this.vpaValueSub?.unsubscribe()}get vpaDeliveryAvailable(){return this.upiEligible}get canGoBackFromAccountDetails(){return this.upiEligible&&!this.bankOnly}goBack(){if(3===this.currentStep){if(this.receiverOnlyMode)return void this.closeModalAndReload();this.formSubmitted=!1,this.currentStep=2}else 2===this.currentStep&&this.canGoBackFromAccountDetails&&(this.formSubmitted=!1,"upi"===this.deliveryMethod?(this.resetVpaVerificationState(),this.bankAccountForm.get("upiId")?.reset("")):this.resetBankValidation(),this.currentStep=1)}closeModalAndReload(){!this.editReceiver?.paymentInstrumentId&&!this.isComplete&&(this._coreService.trackProductEvent("indian_bank",{status:"cancelled"},"moengage"),this._coreService.setMoEngageUserAttributes({indian_bank_status:"cancelled"})),this.dismissWithoutReload?this.activeModal.dismiss("cancel"):(this.activeModal.close(),S.A.reloadComponent(this.router))}markIndianBankAddedForMoEngage(){this._coreService.setMoEngageUserAttributes({indian_bank_status:"added",first_indian_bank_added:this._coreService.moeYesNo(!0)}),this._coreService.trackProductEvent("Indian_Bank_Account_added",{},"firebase")}goToAccountDetails(){this.currentStep=2}finish(){this.activeModal.close()}
1submitAccountDetails(){if(this.formSubmitted=!0,this.trimAccountFields(),this.isAccountStepInvalid())return void this.bankAccountForm.markAllAsTouched();if(!this.canSubmitBank)return void this.addAccountAlert("Please validate the account to confirm the name before continuing.","error");if(this.isDuplicateBankAccount())return void this.addAccountAlert("This bank account already exists. Please use a different bank account","error");if(this.isNameMismatch&&!this.nameMismatchAcknowledged)return void this.addAccountAlert("Please confirm the name shown by the bank, or update the account name to proceed.","error");const t={ifscCode:this.bankAccountForm.controls.ifscCode.value?.trim(),accountName:this.bankAccountForm.controls.accountName.value?.trim(),accountNumber:this.bankAccountForm.controls.accountNumber.value?.trim(),accountType:this.bankAccountForm.controls.accountType.value,nameMismatchAcknowledged:this.nameMismatchAcknowledged};this._sharedService.showLoader(),this._privateLayoutService.addIndianBankAccount(t).subscribe({next:a=>{if(this._sharedService.hideLoader(),!a?.success){if(a?.nameVerificationRequired){this.nameEntryRequired=!0,this.bankNameEntryRequired=!0;const o=this.bankAccountForm.get("accountName");return o?.setValidators([c.k0.required]),o?.updateValueAndValidity(),this.formSubmitted=!1,this.bankDetailsForm?.focusAccountNameInput(),void this.addAccountAlert(a.message||"We couldn't verify the name with your bank. Please enter the account holder's name.","error")}return this.addAccountAlert(a?.message||"Unable to add bank account. Please try again."),void(this.formSubmitted=!1)}const r=a.paymentInstrument||a;this.createdInstrument=r,this.nameWasBankVerified=!this.nameEntryRequired&&!this.bankNameEntryRequired,this.createdPaymentInstrumentId=r?.paymentInstrumentId||"",this.accountClassification=r?.accountClassification||"",this.verifiedBankName=r?.bankAccount?.bankAccountHolderName||this.bankAccountForm.controls.accountName.value?.trim()||"",this.isSelfAccount="SELF"===this.accountClassification,this.isSelfAccount||!this.collectReceiverDetails?(this.isComplete=!0,this.markIndianBankAddedForMoEngage(),this.accountAdded.emit(r)):(this.markIndianBankAddedForMoEngage(),this.prefillReceiverFromBankName(),this.applyReceiverValidators(!0),this.formSubmitted=!1,this.currentStep=3)},error:a=>{this._sharedService.hideLoader(),this.formSubmitted=!1,this.handleCreateError(a)}})}chooseDelivery(t){this.deliveryMethod=t,this.currentStep=2}bankDetailControlsValid(){const a=["accountType","accountNumber","confirmAccountNumber","ifscCode"].some(o=>!!this.bankAccountForm.get(o)?.invalid),r=!!this.bankAccountForm.get("confirmAccountNumber")?.errors?.confirmedValidator;return!a&&!r}get canValidateBank(){return this.bankDetailControlsValid()&&!this.bankValidating&&!this.bankValidated}get bankDetailsReady(){return this.bankDetailControlsValid()}get bankShowVerifyCta(){return!this.bankValidated&&!this.bankNameEntryRequired&&!this.bankAlreadyAdded}get canSubmitBank(){return!!this.bankValidated||!!this.bankNameEntryRequired&&!!this.bankAccountForm.get("accountName")?.value?.trim()}currentAccountKey(){return[this.bankAccountForm?.get("accountType")?.value,this.bankAccountForm?.get("accountNumber")?.value,this.bankAccountForm?.get("ifscCode")?.value].join("|")}maybeResetBankValidationOnEdit(){this.bankValidateError&&!this.bankValidated&&!this.bankNameEntryRequired&&(this.bankValidateError=""),(this.bankValidated||this.bankNameEntryRequired||this.bankAlreadyAdded)&&this.currentAccountKey()!==this.validatedAccountSnapshot&&this.resetBankValidation()}resetBankValidation(){this.bankValidating=!1,this.bankValidated=!1,this.bankVerifiedName="",this.bankNameEntryRequired=!1,this.bankValidateError="",this.bankAlreadyAdded=!1,this.existingBankInstrument=null,this.validatedAccountSnapshot="";const t=this.bankAccountForm?.get("accountName");t&&(t.clearValidators(),t.updateValueAndValidity({emitEvent:!1}))}validateBank(){if(this.formSubmitted=!0,this.trimAccountFields(),!this.bankDetailControlsValid())return void this.bankAccountForm.markAllAsTouched();const t=this.findDuplicateBankInstrument();if(t)return this.resetBankValidation(),this.bankAlreadyAdded=!0,this.existingBankInstrument=t,this.bankVerifiedName=t.bankAccountHolderName||t.bank_account?.name||"",void(this.validatedAccountSnapshot=this.currentAccountKey());this.resetBankValidation(),this.validatedAccountSnapshot=this.currentAccountKey(),this.bankValidating=!0,this._privateLayoutService.validateBankAccount({accountNumber:this.bankAccountForm.controls.accountNumber.value?.trim(),ifscCode:this.bankAccountForm.controls.ifscCode.value?.trim(),accountType:this.bankAccountForm.controls.accountType.value,customerDeclaredAccountType:this.bankAccountForm.controls.accountType.value}).subscribe({next:a=>{this.bankValidating=!1;const r=this.bankAccountForm.get("accountName");a?.verified&&a?.bankName?(this.bankValidated=!0,this.bankVerifiedName=a.bankName,this.bankNameEntryRequired=!1,this.bankValidateError="",r?.setValue(a.bankName),r?.clearValidators(),r?.updateValueAndValidity({emitEvent:!1}),this.nameWasBankVerified=!0):a?.nameVerificationRequired?(this.bankValidated=!1,this.bankNameEntryRequired=!0,this.bankValidateError=a?.message||"We couldn't fetch the name from your bank. Please enter the account holder's name.",r?.setValue(""),r?.setValidators([c.k0.required]),r?.updateValueAndValidity({emitEvent:!1}
1),this.nameWasBankVerified=!1,this.bankDetailsForm?.focusAccountNameInput()):(this.bankValidated=!1,this.bankNameEntryRequired=!1,this.bankValidateError=a?.message||"Please re-check your account number and IFSC \u2014 they appear to be incorrect.",r?.setValue(""),r?.clearValidators(),r?.updateValueAndValidity({emitEvent:!1}),this.nameWasBankVerified=!1)},error:()=>{this.bankValidating=!1,this.bankValidated=!1,this.bankNameEntryRequired=!1,this.bankValidateError="Could not verify the account right now. Please try again in a moment.";const a=this.bankAccountForm.get("accountName");a?.setValue(""),a?.clearValidators(),a?.updateValueAndValidity({emitEvent:!1})}})}validateVpa(){if(this.vpaVerifying)return;const t=this.bankAccountForm.get("upiId");t?.markAsTouched();const a=(t?.value??"").trim();t?.invalid||!a||this.vpaVerified&&a.toLowerCase()===this.vpaVerifiedValue||(this.resetVpaVerificationState(),this.vpaVerifying=!0,this._privateLayoutService.verifyVpa(a).subscribe({next:r=>{this.vpaVerifying=!1,r?.valid?(this.vpaVerified=!0,this.vpaVerifiedValue=a.toLowerCase(),this.verifiedVpaName=r.holderName||"",this.vpaError="",this.detectExistingVpa(a)):(this.vpaVerified=!1,this.verifiedVpaName="",this.vpaError=r?.message||"We couldn\u2019t verify this UPI id. Please check it and try again.")},error:()=>{this.vpaVerifying=!1,this.vpaVerified=!1,this.vpaError="We couldn\u2019t verify UPI right now. Please try again in a moment."}}))}changeVpa(){this.resetVpaVerificationState()}detectExistingVpa(t){const a=(t||"").trim().toLowerCase(),r=(this.vpaList||[]).find(o=>(o?.upiId||o?.vpa?.address||"").trim().toLowerCase()===a);this.vpaAlreadyAdded=!!r,this.existingVpaInstrument=r||null}sendMoneyToExistingVpa(){const t=this.existingVpaInstrument?.paymentInstrumentId;this.activeModal.close(),this.router.navigate(["/secure/transfer"],{queryParams:t?{paymentInstrumentId:t}:{}})}get canValidateVpa(){return!!this.bankAccountForm?.get("upiId")?.valid&&!this.vpaVerifying&&!this.vpaVerified}resetVpaVerificationState(){this.vpaVerifying=!1,this.vpaVerified=!1,this.vpaVerifiedValue="",this.verifiedVpaName="",this.vpaError="",this.vpaAlreadyAdded=!1,this.existingVpaInstrument=null}submitVpa(){this.formSubmitted=!0;const t=this.bankAccountForm.get("upiId"),a=t?.value?.trim();if(!t?.invalid)return this.vpaVerified&&a&&a.toLowerCase()===this.vpaVerifiedValue?(this._sharedService.showLoader(),void this._privateLayoutService.addVpaAccount({upiId:a,accountName:this.verifiedVpaName,nameMismatchAcknowledged:!0}).subscribe({next:r=>{if(this._sharedService.hideLoader(),!r?.success)return this.formSubmitted=!1,void this.addAccountAlert(r?.message||"Unable to add UPI id. Please try again.");const o=r.paymentInstrument||r;this.createdInstrument=o,this.createdPaymentInstrumentId=o?.paymentInstrumentId||"",this.verifiedBankName=this.verifiedVpaName,this.nameWasBankVerified=!0,this.isComplete=!0,this.markIndianBankAddedForMoEngage(),this.accountAdded.emit(o)},error:r=>{this._sharedService.hideLoader(),this.formSubmitted=!1,this._coreService.setMoEngageUserAttributes({indian_bank_status:"failed"}),this.addAccountAlert(r?.error?.message||"Unable to add UPI id. Please try again later.")}})):(this.addAccountAlert("Please verify the UPI id before continuing.","error"),void this.resetVpaVerificationState());t.markAsTouched()}handleCreateError(t){this.applyNameMismatchFromError(t)||(this._coreService.setMoEngageUserAttributes({indian_bank_status:"failed"}),this.addAccountAlert(t?.error?.message||"Unable to add bank account. Please try again later."))}applyNameMismatchFromError(t){if(400!==t.status||!t.error)return!1;const a=t.error;if(!1!==a.nameMatched||null==a.nameMismatchDetails)return!1;const r=a.nameMismatchDetails;if(this.isNameMismatch=!0,this.nameMismatchAcknowledged=!1,r&&"object"==typeof r){const o=r.bankAccountName;this.nameMismatchDetails=o?`Name as per bank records: ${o}`:"There is a mismatch between the name you entered and the bank account name."}else this.nameMismatchDetails=r||"There is a mismatch between the name you entered and the bank account name.";return this.suggestedAccountName=r&&"object"==typeof r&&r.bankAccountName||a?.paymentInstrument?.bankAccount?.bankAccountHolderName||"",this.addAccountAlert(a.message||"The bank reports a different name for this account. Please confirm it below.","error"),!0}
1saveReceiverDetails(){if(this.formSubmitted=!0,this.receiverForm.invalid)return void this.receiverForm.markAllAsTouched();if(!this.createdPaymentInstrumentId)return void this.addAccountAlert("Something went wrong. Please re-add the account.");const t=this.receiverForm.getRawValue(),a={firstName:t.firstName?.trim(),lastName:t.lastName?.trim()||void 0,phone:t.phone?.trim()||void 0,addressLine1:t.addressLine1?.trim(),addressLine2:t.addressLine2?.trim()||void 0,city:t.city?.trim(),state:t.state?.trim(),postalCode:t.postalCode?.trim(),country:t.country?.trim().toUpperCase()};this._sharedService.showLoader(),this._privateLayoutService.updatePayPartyDetails(this.createdPaymentInstrumentId,a).subscribe({next:r=>{if(this._sharedService.hideLoader(),!1===r?.success)return this.formSubmitted=!1,void this._coreService.onErrorToaster(r?.message||"Unable to save receiver details. Please try again.","Error");this.isComplete=!0,this.markIndianBankAddedForMoEngage(),this._coreService.onSuccessToaster("Receiver details saved successfully","Success"),this.accountAdded.emit(this.createdInstrument||{paymentInstrumentId:this.createdPaymentInstrumentId})},error:r=>{this._sharedService.hideLoader(),this.formSubmitted=!1,!this.applyNameMismatchFromError(r)&&this.addAccountAlert(r?.error?.message||"Unable to save receiver details. Please try again.")}})}skipReceiverDetails(){this.markIndianBankAddedForMoEngage(),this.accountAdded.emit(this.createdInstrument||{paymentInstrumentId:this.createdPaymentInstrumentId})}cancelEdit(){this.closeModalAndReload()}get receiverForm(){return this.bankAccountForm.get("payParty")}onAddressSearchInput(t){(t||"").trim()&&(this.showAddressFields=!0)}onReceiverPostalCodeBlur(){const t=this.receiverForm.get("country"),a=this.receiverForm.get("postalCode");if(a){if(a.markAsTouched(),!(t?.value??"").toString().trim().toUpperCase()){const o=this.inferCountryFromPostalCode(a.value);o&&t?.setValue(o,{emitEvent:!0})}a.updateValueAndValidity()}}inferCountryFromPostalCode(t){const a=(t??"").toString().trim();return a?n.POSTAL_CODE_PATTERN_IN.test(a)?"IN":n.POSTAL_CODE_PATTERN_US.test(a)?"US":null:null}onPlacesAddressSelected(t){this.receiverForm.patchValue({addressLine1:t.addressLine1,addressLine2:t.addressLine2??"",city:t.city,state:(t.stateProvince||"").toUpperCase(),postalCode:t.postalCode,country:(t.countryCode||"").toUpperCase()});const a=this.receiverForm.get("postalCode");a?.updateValueAndValidity(),a?.invalid&&a.markAsTouched(),this.showAddressFields=!0}onReceiverPhoneNumberUpdate(t){const a=this.receiverForm.get("phone");if(!t||!t.phoneNumber)return void a?.setValue("");const r=t.dialCode?"+"+t.dialCode+t.phoneNumber:t.phoneNumber;a?.setValue(r)}prefillReceiverFromBankName(){const t=(this.verifiedBankName||"").trim();if(!t)return;const{firstName:a,lastName:r}=S.A.splitHolderName(t);this.receiverForm.patchValue({firstName:a,lastName:r})}applyReceiverValidators(t){const a=this.receiverForm;Object.keys(a.controls).forEach(r=>{const o=a.get(r);if(o){if(t&&n.RECEIVER_REQUIRED_FIELDS.includes(r)){const l=[c.k0.required];n.RECEIVER_NAME_FIELDS.includes(r)&&l.push(c.k0.minLength(2)),"postalCode"===r&&l.push(n.postalCodeLengthValidator),o.setValidators(l)}else o.clearValidators();o.updateValueAndValidity({emitEvent:!1})}})}showReceiverErrorState(t){const a=this.receiverForm?.get(t);return!!a&&a.invalid&&this.formSubmitted}showReceiverPostalCodeError(){const t=this.receiverForm?.get("postalCode");return!!t&&t.invalid&&(t.dirty||t.touched||this.formSubmitted)}get postalCodeLengthErrorMessage(){const t=(this.receiverForm?.get("country")?.value??"").toString().trim().toUpperCase();return"IN"===t?"PIN code must be 6 digits":"US"===t?"ZIP code must be 5 or 9 digits":"Please enter a valid postal code"}showReceiverNameError(t){const a=this.receiverForm?.get(t);return!!a&&a.invalid&&(a.dirty||a.touched||this.formSubmitted)}get showNameVerifiedBadge(){if(!this.nameWasBankVerified)return!1;const t=k=>(k||"").trim().replace(/\s+/g," ").toLowerCase(),a=S.A.splitHolderName(this.verifiedBankName),r=t(`${a.firstName} ${a.lastName}`);return!!r&&t(`${(this.receiverForm?.get("firstName")?.value||"").trim()} ${(this.receiverForm?.get("lastName")?.value||"").trim()}`)===r}isAccountStepInvalid(){const a=["accountType","ifscCode","accountNumber","confirmAccountNumber","accountName"].some(o=>!!this.bankAccountForm.get(o)?.invalid),r=!!this.bankAccountForm.get("confirmAccountNumber")?.errors?.confirmedValidator;return a||r}resetNameMismatchState(){this.isNameMismatch=!1,this.nameMismatchAcknowledged=!1,this.nameMismatchDetails="",this.suggestedAccountName=""}isDuplicateBankAccount(){return!!this.findDuplicateBankInstrument()}findDuplicateBankInstrument(){if(!this.bankList||0===this.bankList.length)return null;const t=this.bankAccountForm.controls.accountNumber?.value?.trim(),a=this.bankAccountForm.controls.ifscCode?.value?.trim().toUpperCase();return t&&a&&this.bankList.find(r=>{const o=r.bank_account?.account_number?.trim(),l=r.bank_account?.ifsc?.trim().toUpperCase();return o===t&&l===a})||null}sendMoneyToExistingBank(){const t=this.existingBankInstrument?.paymentInstrumentId;this.activeModal.close(),this.router.navigate(["/secure/transfer"],{queryParams:t?{paymentInstrumentId:t}:{}})}addAccountAlert(t,a="error"){"error"===a?this._coreService.onErrorToaster(t,"Add Bank Account"):this._coreService.onSuccessToaster(t,"Add Bank Account")}useSuggestedAccountName(){this.suggestedAccountName&&(this.isApplyingSuggestedName=!0,this.bankAccountForm.patchValue({accountName:this.suggestedAccountName.trim()}),this.isNameMismatch=!1,this.nameMismatchAcknowledged=!0,this.nameMismatchDetails="",this.nameEntryRequired=!0,this.submitAccountDetails())}useSuggestedReceiverName(){if(!this.suggestedAccountName)return;const{firstName:t,lastName:a}=S.A.splitHolderName(this.suggestedAccountName);this.receiverForm.patchValue({firstName:t,lastName:a}),this.resetNameMismatchState(),this.saveReceiverDetails()}getMaskedAccountNumber(){const a=(this.bankAccountForm.get("accountNumber")?.value??"").replace(/\D/g,"");if(0===a.length)return"";const r=n.ACCOUNT_NUMBER_VISIBLE_TAIL;if(a.length<=r)return a;const o=a.slice(-r);return"*".repeat(a.length-r)+o}onAccountNumberKeydown(t){const a=this.bankAccountForm.get("accountNumber");if(!a)return;const r=t.key,o=/^\d$/.test(r),l="Backspace"===r,k="Delete"===r,A="Tab"===r,y=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r),C=t.ctrlKey||t.metaKey||t.altKey;if(!A&&!y){if(l){t.preventDefault();const f=(a.value??"").replace(/\D/g,"");return void a.setValue(f.slice(0,-1),{emitEvent:!0})}if(k){t.preventDefault();const f=(a.value??"").replace(/\D/g,""),N=t.target?.selectionStart??f.length;if(N>=0&&N<f.length){const $=f.slice(0,N)+f.slice(N+1);a.setValue($,{emitEvent:!0})}return}if(o&&!C){t.preventDefault();const f=(a.value??"").replace(/\D/g,"");if(f.length>=n.ACCOUNT_NUMBER_MAX_LENGTH)return;a.setValue(f+r,{emitEvent:!0})}else C||t.preventDefault()}}onAccountNumberPaste(t){t.preventDefault();const a=this.bankAccountForm.get("accountNumber");if(!a)return;const r=(t.clipboardData?.getData("text")??"").replace(/\D/g,""),l=((a.value??"").replace(/\D/g,"")+r).slice(0,n.ACCOUNT_NUMBER_MAX_LENGTH);a.setValue(l,{emitEvent:!0})}onConfirmAccountNumberPaste(t){t.preventDefault();const a=this.bankAccountForm.get("confirmAccountNumber");if(!a)return;const r=(t.clipboardData?.getData("text")??"").replace(/\D/g,"");r&&a.setValue(r.slice(0,n.ACCOUNT_NUMBER_MAX_LENGTH),{emitEvent:!0})}onConfirmAccountNumberKeydown(t){const a=t.key,r=/^\d$/.test(a),o="Backspace"===a,l="Delete"===a,k="Tab"===a,A=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(a),y=t.ctrlKey||t.metaKey||t.altKey;k||A||y||(!r&&!o&&!l&&t.preventDefault(),r&&!y&&(this.bankAccountForm.get("confirmAccountNumber")?.value??"").replace(/\D/g,"").length>=n.ACCOUNT_NUMBER_MAX_LENGTH&&t.preventDefault())}getAccountNameValue(){return String(this.bankAccountForm.get("accountName")?.value??"").trim()}showAccountNameBankNameWarning(){const t=this.getAccountNameValue();return!!t&&(n.INDIAN_BANK_NAME_PATTERN.test(t)||/\d/.test(t))}showInputErrorState(t){const a=this.bankAccountForm.get(t);return!!a&&(!("confirmAccountNumber"!==t||!a.errors?.confirmedValidator)||("ifscCode"===t?a.invalid&&(this.formSubmitted||a.touched):a.invalid&&this.formSubmitted))}showIfscValidationFeedback(){const t=this.bankAccountForm.get("ifscCode");
1return!!t?.invalid&&(this.formSubmitted||t.touched)}showIfscRequiredError(){return!!this.bankAccountForm.get("ifscCode")?.errors?.required&&this.showIfscValidationFeedback()}showIfscFormatError(){const t=this.bankAccountForm.get("ifscCode");return!(!t?.errors||!this.showIfscValidationFeedback()||t.errors.required||!(t.errors.pattern||t.errors.minlength||t.errors.maxlength))}trimField(t){const a=this.bankAccountForm.get(t);if(a&&"string"==typeof a.value){let r=a.value.trim();"ifscCode"===t&&(r=r.toUpperCase(),a.markAsTouched()),r!==a.value?a.setValue(r,{emitEvent:!0}):"ifscCode"===t&&a.updateValueAndValidity()}}trimAccountFields(){["ifscCode","accountName","accountNumber","confirmAccountNumber"].forEach(t=>{this.trimField(t)})}static{this.\u0275fac=function(a){return new(a||n)(e.rXU(c.ok),e.rXU(ie.Lw),e.rXU(u.d),e.rXU(m.F),e.rXU(oe.P),e.rXU(se.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-add-bank-account"]],viewQuery:function(a,r){if(1&a&&e.GBs(U,5),2&a){let o;e.mGM(o=e.lsd())&&(r.bankDetailsForm=o.first)}},inputs:{bankList:"bankList",vpaList:"vpaList",bankOnly:"bankOnly",dismissWithoutReload:"dismissWithoutReload",editReceiver:"editReceiver",collectReceiverDetails:"collectReceiverDetails"},outputs:{accountAdded:"accountAdded"},standalone:!0,features:[e.Jv_([u.d,m.F]),e.aNF],decls:18,vars:11,consts:[[1,"add-bank-account"],[1,"r2a-flex-between","r2a-px-6","r2a-h-[60px]"],[1,"r2a-font-semibold","r2a-text-md","r2a-text-primary","r2a-m-0"],[4,"ngIf"],["type","button","aria-label","Close",1,"",3,"click"],["src","../../../../../../assets/_images/icons/close.svg","alt","Close"],[1,"r2a-bg-white-light","r2a-rounded-b-2xl","aba-body"],[1,"r2a-px-6","r2a-py-4","aba-scroll-body"],["class","r2a-flex r2a-justify-center r2a-py-10",4,"ngIf"],["class","r2a-text-center r2a-py-6",4,"ngIf"],[3,"formGroup","hidden",4,"ngIf"],["class","db_loading us_loader",4,"ngIf"],["class","r2a-card-shadow r2a-py-4 r2a-px-6 r2a-rounded-2xl r2a-bg-white aba-footer",4,"ngIf"],["type","button","class","r2a-bg-transparent r2a-border-0 r2a-p-0 r2a-flex r2a-items-center r2a-gap-1 r2a-cursor-pointer","aria-label","Back",3,"click",4,"ngIf"],["type","button","aria-label","Back",1,"r2a-bg-transparent","r2a-border-0","r2a-p-0","r2a-flex","r2a-items-center","r2a-gap-1","r2a-cursor-pointer",3,"click"],["src","assets/images/icon/back.svg","alt",""],[1,"r2a-flex","r2a-justify-center","r2a-py-10"],["aria-label","Loading",1,"r2a-inline-block","r2a-h-6","r2a-w-6","r2a-rounded-full","r2a-border-2","r2a-border-[#FF6300]","r2a-border-t-transparent","r2a-animate-spin"],[1,"r2a-text-center","r2a-py-6"],["src","assets/images/icon/success-alert.svg","alt","",1,"r2a-block","r2a-mb-4","r2a-mx-auto"],[1,"r2a-text-[#067647]","r2a-font-semibold","r2a-text-lg","r2a-leading-lg","r2a-mb-2","r2a-mt-0"],[1,"r2a-text-tertiary","r2a-font-regular","r2a-text-md","r2a-leading-lg","r2a-mb-1","r2a-mt-0"],[1,"r2a-text-primary","r2a-font-semibold","r2a-text-md","r2a-m-0"],[3,"formGroup","hidden"],["formGroupName","payParty",4,"ngIf"],[1,"r2a-text-secondary","r2a-font-medium","r2a-text-base","r2a-mb-3"],["type","button",1,"delivery-card",3,"click"],[1,"delivery-card__title"],[1,"delivery-card__row"],["src","assets/images/icon/upi-logo.svg","alt","UPI",1,"delivery-card__upi-logo"],[1,"delivery-card__desc"],[1,"logo-cluster"],["alt","Bank","class","logo-cluster__item",3,"src",4,"ngFor","ngForOf"],[1,"logo-cluster__item","logo-cluster__more"],["alt","Bank",1,"logo-cluster__item",3,"src"],["class","r2a-input-filed",4,"ngIf"],["aria-live","polite",4,"ngIf"],["id","upi-help",1,"r2a-rounded-[10px]","r2a-bg-[#F9FAFB]","r2a-border","r2a-border-color-secondary","r2a-p-3","r2a-mt-3","r2a-flex","r2a-items-start","r2a-gap-2"],["src","assets/images/icon/info-circle.svg","alt","","width","18","height","18",1,"r2a-shrink-0","r2a-mt-[2px]"],[1,"r2a-text-tertiary","r2a-text-base","r2a-m-0"],[1,"r2a-input-filed"],["for","upiId",1,"form-label"],[1,"r2a-input-control"],["id","upiId","type","text","formControlName","upiId","placeholder","e.g. name@okicici","autocomplete","off","inputmode","text","aria-describedby","upi-help upi-status",1,"form-control",3,"keyup.enter"],["class","r2a-error","id","upi-status","role","alert",4,"ngIf"],["class","r2a-error r2a-mt-2","role","alert","aria-live","assertive",4,"ngIf"],["id","upi-status","role","alert",1,"r2a-error"],["role","alert","aria-live","assertive",1,"r2a-error","r2a-mt-2"],["aria-live","polite"],[1,"r2a-text-secondary","r2a-font-medium","r2a-text-base","r2a-mb-2"],[1,"r2a-rounded-xl","r2a-bg-[#F2F4F7]","r2a-p-4","r2a-flex","r2a-items-center","r2a-gap-3"],["src","assets/images/icon/upi-logo.svg","alt","UPI",1,"r2a-shrink-0",2,"height","22px","width","auto"],[1,"r2a-min-w-0","r2a-flex-1"],[1,"r2a-text-primary","r2a-font-semibold","r2a-text-lg","r2a-leading-tight","r2a-mb-1","r2a-break-words"],[1,"r2a-text-tertiary","r2a-text-base","r2a-m-0","r2a-break-all"],["type","button","aria-label","Change UPI id",1,"r2a-bg-transparent","r2a-border-0","r2a-p-0","r2a-text-[#FF6300]","r2a-font-semibold","r2a-text-base","r2a-shrink-0","r2a-cursor-pointer",3,"click"],[1,"r2a-flex","r2a-items-center","r2a-gap-1","r2a-text-[#067647]","r2a-font-semibold","r2a-text-sm","r2a-mt-2","r2a-mb-0"],["src","assets/images/icon/success-alert.svg","alt","",1,"r2a-h-4","r2a-w-4","r2a-shrink-0"],[1,"r2a-flex","r2a-items-start","r2a-gap-2","r2a-mt-2"],["class","r2a-text-tertiary r2a-text-sm r2a-mt-2 r2a-mb-0",4,"ngIf"],[1,"r2a-text-tertiary","r2a-text-sm","r2a-mt-2","r2a-mb-0"],[3,"bankAccountForm","formSubmitted","bankValidated","bankVerifiedName","bankNameEntryRequired","bankValidateError","bankAlreadyAdded"],["class","r2a-mt-1 r2a-p-3 r2a-rounded-lg r2a-bg-[#FFF7E6]",4,"ngIf"],[1,"r2a-mt-1","r2a-p-3","r2a-rounded-lg","r2a-bg-[#FFF7E6]"],[1,"r2a-text-sm","r2a-text-secondary","r2a-mb-2"],["type","button","class","r2a-btn-primary sm r2a-h-auto",3,"click",4,"ngIf"],["type","button",1,"r2a-btn-primary","sm","r2a-h-auto",3,"click"],["formGroupName","payParty"],["class","r2a-flex r2a-items-center r2a-gap-3 r2a-p-3 r2a-rounded-[10px] r2a-border r2a-border-color-secondary r2a-bg-white r2a-mb-4",4,"ngIf"],[1,"r2a-flex","r2a-gap-3"],[1,"r2a-input-filed","r2a-flex-1"],[1,"r2a-text-brand-secondary"],["type","text","placeholder","First name","formControlName","firstName","readonly","",1,"form-control"],["type","text","placeholder","Last name","formControlName","lastName","readonly","",1,"form-control"],["class","r2a-mt-1 r2a-mb-3 r2a-p-3 r2a-rounded-lg r2a-bg-[#FFF7E6]",4,"ngIf"],["class","r2a-flex r2a-items-center r2a-gap-1 r2a-mt-1 r2a-mb-3",4,"ngIf"],[1,"ph
1onenumber"],["numbersOnly","","cssClass","phone-input",3,"selectedCountryISO","preferredCountries","enablePlaceholder","customPlaceholder","searchCountryFlag","separateDialCode","enableAutoCountrySelect","searchCountryField","phoneValidation","numberFormat","onChange"],[1,"r2a-flex","r2a-items-center","r2a-gap-3","r2a-p-3","r2a-rounded-[10px]","r2a-border","r2a-border-color-secondary","r2a-bg-white","r2a-mb-4"],[1,"r2a-block","r2a-text-primary","r2a-font-semibold","r2a-text-base"],[1,"r2a-block","r2a-text-tertiary","r2a-text-sm"],["class","r2a-error",4,"ngIf"],[1,"r2a-error"],[1,"r2a-mt-1","r2a-mb-3","r2a-p-3","r2a-rounded-lg","r2a-bg-[#FFF7E6]"],[1,"r2a-flex","r2a-items-center","r2a-gap-1","r2a-mt-1","r2a-mb-3"],["src","assets/images/icon/icon-check.svg","alt","","width","12","height","12",1,"r2a-shrink-0"],[1,"r2a-text-success-light","r2a-font-medium","r2a-text-sm"],["type","text","appPlacesAutocomplete","","formControlName","addressLine1","autocomplete","off","placeholder","Start typing the street and city",1,"form-control",3,"input","addressSelected"],["type","text","placeholder","City","formControlName","city",1,"form-control"],["type","text","placeholder","State","formControlName","state",1,"form-control"],["type","text","placeholder","Postal code","formControlName","postalCode",1,"form-control",3,"blur"],["type","text","placeholder","e.g. IN or US","formControlName","country",1,"form-control"],["type","text","placeholder","Apartment, suite, etc.","formControlName","addressLine2",1,"form-control"],["type","text","placeholder","Street address","formControlName","addressLine1",1,"form-control"],[1,"db_loading","us_loader"],[1,"card__header"],[1,"accounts_loader_sec"],[1,"accounts_loader","w-100"],[1,"name"],[1,"skeleton","skeleton-text","bank"],[1,"skeleton","skeleton-text"],[1,"r2a-card-shadow","r2a-py-4","r2a-px-6","r2a-rounded-2xl","r2a-bg-white","aba-footer"],["class","add-bank-account-footer-note",4,"ngIf"],["type","button","class","r2a-btn-primary r2a-w-full",3,"click",4,"ngIf"],[1,"add-bank-account-footer-note"],["src","assets/images/icon/info-circle.svg","alt","","width","16","height","16","aria-hidden","true",1,"r2a-shrink-0"],[1,"r2a-text-[12px]","r2a-text-quaternary-light","r2a-font-medium","r2a-m-0"],["type","button","class","r2a-btn-primary r2a-w-full",3,"disabled","click",4,"ngIf"],["type","button",1,"r2a-btn-primary","r2a-w-full",3,"click"],["type","button",1,"r2a-btn-primary","r2a-w-full",3,"disabled","click"],[1,"r2a-flex","r2a-items-center","r2a-justify-center","r2a-gap-1","r2a-mb-3"],[1,"r2a-text-sm","r2a-text-quaternary-light","r2a-font-medium"],["type","button","class","r2a-btn-border r2a-flex-1",3,"disabled","click",4,"ngIf"],["type","button",1,"r2a-btn-primary","r2a-flex-1",3,"disabled","click"],["type","button",1,"r2a-btn-border","r2a-flex-1",3,"disabled","click"]],template:function(a,r){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"h5",2),e.DNE(3,ce,2,0,"ng-container",3),e.DNE(4,de,2,0,"ng-container",3),e.DNE(5,me,3,2,"ng-container",3),e.DNE(6,pe,5,0,"ng-container",3),e.k0s(),e.j41(7,"button",4),e.bIt("click",function(){return r.closeModalAndReload()}),e.nrm(8,"img",5),e.k0s()(),e.j41(9,"section",6)(10,"div",7),e.nrm(11,"app-loader"),e.DNE(12,fe,2,0,"div",8),e.DNE(13,_e,8,3,"div",9),e.DNE(14,Je,6,8,"form",10),e.DNE(15,Ze,9,0,"div",11),e.nI1(16,"async"),e.k0s(),e.DNE(17,pt,6,5,"div",12),e.k0s()()),2&a&&(e.R7$(3),e.Y8G("ngIf",r.isComplete),e.R7$(1),e.Y8G("ngIf",!r.isComplete&&1===r.currentStep),e.R7$(1),e.Y8G("ngIf",!r.isComplete&&2===r.currentStep),e.R7$(1),e.Y8G("ngIf",!r.isComplete&&3===r.currentStep),e.R7$(6),e.Y8G("ngIf",r.initializing),e.R7$(1),e.Y8G("ngIf",r.isComplete&&!r.initializing),e.R7$(1),e.Y8G("ngIf",!r.isComplete&&!r.initializing),e.R7$(1),e.Y8G("ngIf",e.bMT(16,9,r._sharedService.loader)),e.R7$(2),e.Y8G("ngIf",!r.initializing&&1!==r.currentStep))},dependencies:[s.MD,s.Sq,s.bT,s.Jj,s.PV,c.X1,c.qT,c.me,c.BC,c.cb,c.j4,c.JD,c.$R,ne.V,b.Ve,E.RG,V.fS,c.YN,re.Q,B.ff,B.wz,p.a,U],styles:["[_nghost-%COMP%]     .add-bank-account .r2a-input-filed{margin-bottom:16px;line-height:normal}[_nghost-%COMP%]     .add-bank-account .r2a-input-filed .r2a-error{position:static!important;line-height:normal}[_nghost-%COMP%]     .add-bank-account .r2a-input-filed label{line-height:normal}
1.r2a-input-control[_ngcontent-%COMP%]{position:relative}.r2a-input-control[_ngcontent-%COMP%]   .form-control.is-invalid[_ngcontent-%COMP%], .r2a-input-control.is-invalid[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-color:#d92d20!important;padding-right:2.25rem}.r2a-input-control[_ngcontent-%COMP%]   .form-control.is-invalid[_ngcontent-%COMP%]:focus, .r2a-input-control.is-invalid[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline-color:#d92d20!important}.r2a-input-control.is-invalid[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{border-color:#d92d20!important}.r2a-input-control[_ngcontent-%COMP%]   .r2a-input-info-icon[_ngcontent-%COMP%]{position:absolute;right:12px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}.r2a-input-control.mat-select-control[_ngcontent-%COMP%]   .r2a-input-info-icon[_ngcontent-%COMP%]{right:36px}.add-bank-account-footer-note[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:12px}[_nghost-%COMP%]{display:block;flex:1 1 auto;min-height:0;overflow:hidden}.add-bank-account[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:90vh;max-height:92dvh}.add-bank-account[_ngcontent-%COMP%]   .aba-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.add-bank-account[_ngcontent-%COMP%]   .aba-scroll-body[_ngcontent-%COMP%]{flex:1 0 auto;min-height:0}.add-bank-account[_ngcontent-%COMP%]   .aba-footer[_ngcontent-%COMP%]{flex:0 0 auto;position:sticky;bottom:0;z-index:2;background:#fff}.delivery-card[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:18px 20px;margin-bottom:16px;transition:border-color .15s ease,box-shadow .15s ease}.delivery-card[_ngcontent-%COMP%]:hover, .delivery-card[_ngcontent-%COMP%]:focus-visible{border-color:#ff6300;box-shadow:0 1px 6px #ff630024}.delivery-card__title[_ngcontent-%COMP%]{display:block;font-weight:700;font-size:20px;line-height:1.2;color:#092541;margin-bottom:12px}.delivery-card__row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.delivery-card__desc[_ngcontent-%COMP%]{font-size:15px;line-height:1.35;color:#667085}.delivery-card__upi-logo[_ngcontent-%COMP%]{height:24px;width:auto;flex-shrink:0}@media (min-width: 768px){.delivery-card__row[_ngcontent-%COMP%]{flex-wrap:nowrap}}.logo-cluster[_ngcontent-%COMP%]{display:inline-flex;align-items:center;flex-shrink:0}.logo-cluster__item[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;background:#fff;border:2px solid #fff;box-shadow:0 0 0 1px #1018280f;object-fit:cover;box-sizing:border-box}.logo-cluster__item[_ngcontent-%COMP%]:not(:first-child){margin-left:-10px}.logo-cluster__more[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;background:#3b3b44;color:#fff;font-size:11px;font-weight:600;letter-spacing:-.2px}[_nghost-%COMP%]     .pac-container{z-index:1000001!important}"]})}}return n})()},76864:(O,I,d)=>{d.d(I,{V:()=>V});var h=d(60177),s=d(17705),e=d(963);const c=function(b){return{"p-3":b}};function E(b,m){if(1&b&&(s.j41(0,"section",1),s.nrm(1,"img",2),s.j41(2,"div",3),s.nrm(3,"div",4)(4,"div",5)(5,"div",6),s.k0s()()),2&b){const p=s.XpG();s.Y8G("ngClass",s.eq3(1,c,!p.inline))}}let V=(()=>{class b{constructor(){this._sharedService=(0,s.WQX)(e.d),this.inline=!1}ngOnInit(){this.loader=this._sharedService.loader}ngOnDestroy(){this._sharedService.hideLoader()}static{this.\u0275fac=function(_){return new(_||b)}}static{this.\u0275cmp=s.VBU({type:b,selectors:[["app-loader"]],inputs:{inline:"inline"},standalone:!0,features:[s.aNF],decls:2,vars:3,consts:[["class","loader d-flex justify-content-center",3,"ngClass",4,"ngIf"],[1,"loader","d-flex","justify-content-center",3,"ngClass"],["src","../../../assets/_images/logo.webp","alt","Xpat Loading logo"],[1,"spinner"],[1,"bounce1"],[1,"bounce2"],[1,"bounce3"]],template:function(_,u){1&_&&(s.DNE(0,E,6,3,"section",0),s.nI1(1,"async")),2&_&&s.Y8G("ngIf",s.bMT(1,1,u.loader))},dependencies:[h.MD,h.YU,h.bT,h.Jj],styles:[".loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;inset:80px 0 0;background-color:#fff;color:#f9fafb;
1z-index:999999;pointer-events:none;visibility:visible;transition:opacity .4s cubic-bezier(.4,0,.2,1);display:none!important;opacity:0!important;visibility:hidden!important}@media screen and (max-width: 767px){.loader[_ngcontent-%COMP%]{top:60px}}.loader[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:120px;max-width:120px}.loader[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:40px;width:56px}.loader[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:12px;height:12px;background-color:#1e96f7;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_fuse-bouncedelay 1s infinite ease-in-out both}.loader[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   .bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.loader[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   .bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_fuse-bouncedelay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}body.fuse-splash-screen-hidden[_ngcontent-%COMP%]   fuse-splash-screen[_ngcontent-%COMP%]{visibility:hidden;opacity:0}"]})}}return b})()},43253:(O,I,d)=>{d.d(I,{Q:()=>b});var h=d(17705);function s(m,p,_){const u=m.find(v=>v.types.includes(p));return u?((_?u.short_name:u.long_name)||"").trim():""}var c=d(45312),E=d(84412);let V=(()=>{class m{constructor(){this.loadPromise=null,this.loadedSuccessfully=!1,this.available$=new E.t(!0)}ensureLoaded(){const _=c.c.googleMapsApiKey?.trim();return _?this.loadedSuccessfully&&typeof google<"u"&&google.maps?.places?Promise.resolve():(window.gm_authFailure=()=>{this.loadedSuccessfully||this.available$.next(!1)},typeof google<"u"&&google.maps?.places?(this.loadedSuccessfully=!0,Promise.resolve()):(this.loadPromise||(this.loadPromise=new Promise((u,g)=>{const v=document.createElement("script");v.async=!0,v.defer=!0,v.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(_)}&libraries=places`,v.onload=()=>{typeof google<"u"&&google.maps?.places?(this.loadedSuccessfully=!0,u()):(this.loadPromise=null,this.available$.next(!1),g(new Error("Google Maps Places library not available")))},v.onerror=()=>{this.loadPromise=null,this.available$.next(!1),g(new Error("Google Maps script failed to load"))},document.head.appendChild(v)})),this.loadPromise)):(this.available$.next(!1),Promise.reject(new Error("Google Maps API key is not configured")))}static{this.\u0275fac=function(u){return new(u||m)}}static{this.\u0275prov=h.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})(),b=(()=>{class m{constructor(){this.el=(0,h.WQX)(h.aKT),this.ngZone=(0,h.WQX)(h.SKi),this.loader=(0,h.WQX)(V),this.autocomplete=null,this.placeChangedListener=null,this.destroyed=!1,this.countries=[],this.addressSelected=new h.bkB}ngOnInit(){this.loader.ensureLoaded().then(()=>{this.destroyed||this.ngZone.runOutsideAngular(()=>{if(this.destroyed)return;const _=1===this.countries.length&&"us"===this.countries[0].toLowerCase();this.autocomplete=new google.maps.places.Autocomplete(this.el.nativeElement,{...this.countries.length?{componentRestrictions:{country:this.countries}}:{},fields:["address_components","formatted_address","geometry","name","place_id"],..._?{types:["address"]}:{}}),this.placeChangedListener=this.autocomplete.addListener("place_changed",()=>{if(this.destroyed)return;const u=this.autocomplete?.getPlace();if(!u)return;let g=function e(m){const p=m.address_components;if(!p?.length)return null;const _=s(p,"street_number",!1),u=s(p,"route",!1),g=s(p,"premise",!1),v=s(p,"subpremise",!1);let F=[_,u].filter(Boolean).join(" ").trim();F||(F=g||u||(m.name||"").trim());const x=v||null,j=s(p,"locality",!1)||s(p,"sublocality",!1)||s(p,"neighborhood",!1)||s(p,"administrative_area_level_2",!1),M=s(p,"administrative_area_level_1",!0),R=s(p,"postal_code",!1),D=s(p,"postal_code_suffix",!1),P=R?D?`${R}-${D}`:R:"",T=s(p,"country",!0).toUpperCase(),G=(m.formatted_address||"").trim();return F&&T?{addressLine1:F,addressLine2:x,city:j,stateProvince:M,postalCode:P,countryCode:T,formattedAddress:G,placeId:m.place_id||""}:null}(u);if(!g&&u.formatted_address?.trim()){const F=u.address_components?.find(x=>x.types.includes("country"))?.short_name?.toUpperCase()||this.countries[0]?.toUpperCase()||"";g={addressLine1:u.formatted_address.trim(),addressLine2:null,city:"",stateProvince:"",postalCode:"",countryCode:F,formattedAddress:u.formatted_address.trim(),placeId:u.place_id||""}}if(!g)return;const v=g;this.ngZone.run(()=>{this.destroyed||this.addressSelected.emit(v)})})})}).catch(_=>{this.ngZone.run(()=>{console.error("PlacesAutocompleteDirective: loader.ensureLoaded() failed",_)})})}ngOnDestroy(){this.destroyed=!0,this.placeChangedListener&&(this.placeChangedListener.remove(),this.placeChangedListener=null),this.autocomplete&&(google.maps.event.clearInstanceListeners(this.autocomplete),this.autocomplete=null)}static{this.\u0275fac=function(u){return new(u||m)}}static{this.\u0275dir=h.FsC({type:m,selectors:[["","appPlacesAutocomplete",""]],inputs:{countries:"countries"},outputs:{addressSelected:"addressSelected"},standalone:!0})}}return m})()}}]);

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.