PageSourceSearch

https://easypay.ua/459.14d8f47c4fff7baa.js

js easypay.ua collected 2026-10-01 12:16:06 UTC 108,622 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[459],{2340:(G,E,r)=>{r.d(E,{Q:()=>C});var e=r(93683),i=r(23679),d=r(12481),c=r(85240);let C=(()=>{var f;class y{}return(f=y).\u0275fac=function(b){return new(b||f)},f.\u0275mod=d.$C({type:f}),f.\u0275inj=c.G2t({imports:[e.MD,i.Y]}),y})()},6542:(G,E,r)=>{r.d(E,{Z:()=>e});class e{constructor(d,c,C,f,y,v,b,x,T){this.instrumentId=d,this.instrumentType=c,this.panGuid=C,this.pan=f,this.expire=y,this.cvv=v,this.isSaveCard=b,this.confirmCode=x,this.phone=T,this.fullName="",this.oldPanValue=""}getCardBin(d){const c=this.getBin(d);return this.compareBinWithOld(c)?(this.oldPanValue=c,c):null}getBin(d){return d?.replace(/[^\d\*]/g,"")?.slice(0,8)?.replace(/[\\*\*]/g,"")}unmaskPan(d){return d?.replace(/[\\*\*]/g,"")}clean(){this.cleanBankInfo(),this.userInfo=null}cleanBankInfo(){this.bankInfo=null,this.oldPanValue=""}compareBinWithOld(d){return this.oldPanValue.slice(0,d.length)!==d}}},8095:(G,E,r)=>{r.d(E,{D:()=>me});var e=r(99148),i=r(24755),d=r(85240),c=r(34456),C=r(79325),f=r(32883),y=r(48503),v=r(46679),b=r(79864),x=r(86375),T=r(33589),F=r(25004),g=r(49063),h=r(68036),u=r(57073),s=r(12481),S=r(86521);function R(D,Y){if(1&D&&(s.EFF(0),s.nI1(1,"translate")),2&D){const I=s.XpG(3);s.SpI(" ",s.bMT(1,1,I.i18n.invalid)," ")}}function w(D,Y){if(1&D&&(s.EFF(0),s.nI1(1,"translate")),2&D){const I=s.XpG(3);s.SpI(" ",s.bMT(1,1,I.i18n.minLength)," ")}}function O(D,Y){if(1&D&&s.nrm(0,"app-control-validation-messages",7),2&D){const I=s.XpG(3);s.Y8G("mainForm",I.control().parent)("formErrors",I.formErrors())("fieldName",I.fieldName())}}function W(D,Y){if(1&D){const I=s.RV6();s.j41(0,"div")(1,"mat-form-field",3)(2,"mat-label"),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.j41(5,"input",4),s.bIt("blur",function(){d.eBV(I);const V=s.XpG(2);return d.Njj(V.control().markAsTouched())}),s.k0s(),s.j41(6,"button",5),s.bIt("mouseenter",function(){d.eBV(I);const V=s.sdS(8);return d.Njj(V.show())})("mouseleave",function(){d.eBV(I);const V=s.sdS(8);return d.Njj(V.hide())})("click",function(){d.eBV(I);const V=s.sdS(8);return d.Njj(V.toggle())}),s.nrm(7,"img",6,0),s.nI1(9,"translate"),s.k0s(),s.j41(10,"mat-error"),s.nVh(11,R,2,3)(12,w,2,3)(13,O,1,3,"app-control-validation-messages",7),s.k0s()()()}if(2&D){const I=s.XpG(2);s.AVh("tax-number-control",I.isPayToolsMode()),s.R7$(),s.AVh("subscript-wrapper-mb-0",I.isPayToolsMode()),s.Y8G("appearance",I.appearance())("subscriptSizing",I.isPayToolsMode()?"dynamic":"fixed"),s.R7$(2),s.JRh(s.bMT(4,13,I.i18n.label)),s.R7$(2),s.Y8G("formControl",I.control())("errorStateMatcher",I.errorMatcher)("textMask",I.taxNumberMask),s.BMQ("maxlength",I.taxNumberLength),s.R7$(2),s.Y8G("matTooltip",s.bMT(9,15,I.tooltipText())),s.R7$(4),s.vxM(I.control().hasError("taxNumberInvalid")?11:I.control().hasError("minlength")&&I.control().touched?12:13)}}function q(D,Y){if(1&D){const I=s.RV6();s.j41(0,"div",2)(1,"span"),s.EFF(2),s.k0s(),s.j41(3,"button",8),s.bIt("mouseenter",function(){d.eBV(I);const V=s.sdS(5);return d.Njj(V.show())})("mouseleave",function(){d.eBV(I);const V=s.sdS(5);return d.Njj(V.hide())})("click",function(){d.eBV(I);const V=s.sdS(5);return d.Njj(V.toggle())}),s.nrm(4,"img",6,0),s.nI1(6,"translate"),s.k0s()()}if(2&D){const I=s.XpG(2);s.R7$(2),s.JRh(I.control().value),s.R7$(2),s.Y8G("matTooltip",s.bMT(6,2,I.tooltipText()))}}function ie(D,Y){if(1&D&&s.nVh(0,W,14,17,"div",1)(1,q,7,4,"div",2),2&D){const I=s.XpG();s.vxM(I.isEditable()?0:1)}}let me=(()=>{var D;class Y{constructor(){this.control=e.hFB.required(),this.appearance=(0,e.hFB)("outline"),this.source=(0,e.hFB)(null),this.formErrors=(0,e.hFB)({}),this.fieldName=(0,e.hFB)("payerTaxNumber"),this.mode=(0,e.hFB)("pay-tools"),this.forceEditable=(0,e.hFB)(!1),this.mask=new h.p,this.taxNumberMask={mask:this.mask.numberMask(0,f.xN),placeholderChar:"\u2000"},this.errorMatcher=new C.F,this.taxNumberLength=f.xN,this.i18n=u.J,this.isReadonly=(0,i.EW)(()=>!this.forceEditable()&&"diia"===this.source()),this.isEditable=(0,i.EW)(()=>!this.isReadonly()),this.isPayToolsMode=(0,i.EW)(()=>"pay-tools"===this.mode()),this.tooltipText=(0,i.EW)(()=>this.forceEditable()||"diia"!==this.source()?u.J.tooltipRequired:u.J.tooltipDiia),this.isEnabled=(0,d.vPA)(!1),(0,i.QZ)(H=>{const V=this.control();this.isEnabled.set(V.enabled);const Z=V.statusChanges.subscribe(()=>{this.isEnabled.set(V.enabled)});H(()=>Z.unsubscribe())})}}return(D=Y).\u0275fac=function(H){return new(H||D)},D.\u0275cmp=s.VBU({type:D,selectors:[["app-tax-number-control"]],inputs:{control:[1,"control"],appearance:[1,"appearance"],source:[1,"source"],formErrors:[1,"formErrors"],fieldName:[1,"fieldName"],mode:[1,"mode"],forceEditable:[1,"forceEditable"]},decls:1,vars:1,consts:[["tooltip","matTooltip"],[3,"tax-number-control"],[1,"tax-number-control-readonly"],[1,"tax-number-control__field",3,"appearance","subscriptSizing"],["matInput","","type","tel","inputmode","numeric","autocomplete","off",3,"blur","formControl","errorStateMatcher","textMask"],["mat-icon-button","","matSuffix","","type","button",1,"tax-number-control__info-btn",3,"mouseenter","mouseleave","click"],["src","https://cdn.easypay.ua/images/svg/circle-info-light-blue.svg","alt","info","matTooltipPosition","below",1,"tax-number-control__info-icon",3,"matTooltip"],[3,"mainForm","formErrors","fieldName"],["mat-icon-button","","type","button",1,"tax-number-control__info-btn",3,"mouseenter","mouseleave","click"]],template:function(H,V){1&H&&s.nVh(0,ie,2,1),2&H&&s.vxM(V.isEnabled()?0:-1)},dependencies:[v.j,v.M,b.fg,c.X1,c.me,c.BC,c.l_,T.e,x.M,F.d,S.g,v.b,v.g,g.fn,y.D9],styles:[".tax-number-control[_ngcontent-%COMP%]{margin-top:20px}.tax-number-control__field[_ngcontent-%COMP%]{width:100%}.tax-number-control__info-icon[_ngcontent-%COMP%]{width:18px;height:18px}.tax-number-control-readonly[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-block:31px;font-size:14px;color:#202020;font-weight:400}"],changeDetection:0}),Y})()},14428:(G,E,r)=>{r.d(E,{k:()=>c});var e=r(85240),i=r(34456),d=r(12481);let c=(()=>{var C;class f{validate(v){let b=this.maxValue?Number(this.maxValue):0;return v.value>b&&b>=0?{maxValue:{max:b}}:null}}
1return(C=f).\u0275fac=function(v){return new(v||C)},C.\u0275dir=d.FsC({type:C,selectors:[["","max-value","","formControlName",""],["","max-value","","formControl",""],["","max-value","","ngModel",""]],inputs:{maxValue:[0,"max-value","maxValue"]},standalone:!1,features:[d.Jv_([{provide:i.cz,useExisting:(0,e.Rfq)(()=>C),multi:!0}])]}),f})()},20012:(G,E,r)=>{r.d(E,{s:()=>C});var e=r(93887),i=r(25004),d=r(12481),c=r(85240);let C=(()=>{var f;class y{}return(f=y).\u0275fac=function(b){return new(b||f)},f.\u0275mod=d.$C({type:f}),f.\u0275inj=c.G2t({imports:[e.G,i.d]}),y})()},20233:(G,E,r)=>{r.d(E,{k:()=>e});class e{constructor(d,c){this.cardPan=d,this.cardGuid=c}}},20586:(G,E,r)=>{r.d(E,{_:()=>C});var e=r(36732),i=r(12481);const d=["mat-internal-form-field",""],c=["*"];let C=(()=>{var f;class y{constructor(){(0,e.A)(this,"labelPosition",void 0)}}return f=y,(0,e.A)(y,"\u0275fac",function(b){return new(b||f)}),(0,e.A)(y,"\u0275cmp",i.VBU({type:f,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(b,x){2&b&&i.AVh("mdc-form-field--align-end","before"===x.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:d,ngContentSelectors:c,decls:1,vars:0,template:function(b,x){1&b&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,changeDetection:0})),y})()},32883:(G,E,r)=>{r.d(E,{xN:()=>g,$Y:()=>u});var e=r(85240),i=r(34456),d=r(59452),c=r(14876),C=r(36647),f=r(70271),y=r(61318),v=r(2435),b=r(55975),x=r(7488),T=r(12481);let F=(()=>{var s;class S extends x.F{validateTaxNumber(w){const O={taxNumber:w};return this.http.post(this.bindPayApiUrl("/payments/bank-transfers/taxnumber/validate"),O).pipe((0,y.W)(this.handleError))}}return(s=S).\u0275fac=(()=>{let R;return function(O){return(R||(R=T.xGo(s)))(O||s)}})(),s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),S})();const g=10,h=/^\d{10}$/;let u=(()=>{var s;class S{constructor(){this.taxNumberApi=(0,e.WQX)(F),this.taxNumberService=(0,e.WQX)(b.G),this.syncValidators=[i.k0.required,i.k0.minLength(g),i.k0.maxLength(g),i.k0.pattern(h)]}isTrustedSource(w){return"diia"===w}syncValidatorForSource(w,O,W){this.isTrustedSource(O)?(w.clearValidators(),w.clearAsyncValidators()):(w.setValidators(this.syncValidators),w.setAsyncValidators(this.createAsyncValidator())),w.updateValueAndValidity({emitEvent:W?.emitEvent??!0})}attachValidators(w,O){w.setValidators(this.syncValidators),w.setAsyncValidators(this.createAsyncValidator()),w.updateValueAndValidity({emitEvent:O?.emitEvent??!1})}createAsyncValidator(){return w=>{const O=(w.value??"").toString().replace(/\D/g,"");return O&&O.length===g?(0,c.O)(300).pipe((0,C.n)(()=>this.taxNumberApi.validateTaxNumber(O)),(0,f.T)(W=>{const q=(W.taxNumber??O).replace(/\D/g,"");return W.isValid?(this.taxNumberService.saveTaxNumber(q),null):{taxNumberInvalid:!0}}),(0,y.W)(()=>(0,d.of)({taxNumberInvalid:!0})),(0,v.$)()):(0,d.of)(null)}}}return(s=S).\u0275fac=function(w){return new(w||s)},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),S})()},39559:(G,E,r)=>{r.d(E,{t:()=>pt});var e=r(12481),i=r(85240),d=r(34456),c=r(79325);class C{constructor(M,n,a,t){this.cardPan=M,this.instrumentId=n,this.instrumentType=a,this.cardGuid=t}}var f=r(60537),y=r(1522);class v{constructor(M){this.name=M}}var b=r(19838),x=r(78170),T=r(68010),F=r(51098),g=r(10635),h=r(70271),u=r(11249),s=r(91817),S=r(63367),R=r(15842),w=r(6542),O=r(2145),W=r(20233),q=r(69120),ie=r(75797),me=r(19999),D=r(59452),Y=r(63390),I=r(34722),H=r(86897),V=r(26368),Z=r(2061),Ee=r(67588),ee=r(59997),ce=r(92231),Ie=r(55975),te=r(32883),K=r(48503),_e=r(26751),Me=r(77976),re=r(93683),Pe=r(60316),we=r(81880),ve=r(16929),Se=r(16240),ue=r(64570),Ne=r(14428),Ce=r(60695),De=r(97887),ge=r(49063),Re=r(86521),Ve=r(88036),se=r(46679),le=r(79864),Ae=r(32152),U=r(97024),J=r(44385),X=r(33589),o=r(59551),m=r(8095),_=r(60247);const P=["cardFrom"],j=["cvv"],A=["c2cError"],k=["searchControl"],B=()=>["cardFrom","cardFrom"],L=l=>({invisible:l}),z=()=>["Month","Month"],ae=()=>["Year","Year"],Q=l=>({"show-for-large-xl":l}),de=(l,M)=>({filteredCards:l,allCards:M}),xe=l=>
1({"ps-and-nav__container medium-expand":l}),ye=l=>({display:l}),be=l=>({active:l}),Fe=()=>["Cvv","Cvv"],pe=()=>["savecard","savecard"],he=()=>["cardTo","cardTo"],fe=()=>["isRecipientCommission","isRecipientCommission"];function Te(l,M){if(1&l&&e.nrm(0,"img",57),2&l){const n=e.XpG(2);e.Y8G("src",n.bankLogoIconsPath+(null==n.cardFromInfo||null==n.cardFromInfo.bankInfo?null:n.cardFromInfo.bankInfo.icon),e.B4B)("alt",null==n.cardFromInfo||null==n.cardFromInfo.bankInfo?null:n.cardFromInfo.bankInfo.name)}}function Ge(l,M){if(1&l&&(e.j41(0,"figure",12),e.nVh(1,Te,1,2,"img",57),e.j41(2,"figcaption"),e.EFF(3),e.k0s()()),2&l){const n=e.XpG();e.R7$(),e.vxM(null!=n.cardFromInfo&&null!=n.cardFromInfo.bankInfo&&n.cardFromInfo.bankInfo.icon?1:-1),e.R7$(2),e.JRh(null!=n.cardFromInfo&&null!=n.cardFromInfo.bankInfo&&n.cardFromInfo.bankInfo.icon?"":null==n.cardFromInfo||null==n.cardFromInfo.bankInfo?null:n.cardFromInfo.bankInfo.name)}}function ke(l,M){if(1&l){const n=e.RV6();e.j41(0,"button",58),e.bIt("mousedown",function(t){i.eBV(n);const p=e.XpG();return i.Njj(p.clearCardFrom(t))}),e.j41(1,"mat-icon"),e.EFF(2,"close"),e.k0s()()}}function Be(l,M){if(1&l&&e.nrm(0,"img",57),2&l){const n=e.XpG(2).$implicit,a=e.XpG(2);e.Y8G("src",a.bankLogoIconsSmallPath+(null==n||null==n.value||null==n.value.bankInfoModel?null:n.value.bankInfoModel.icon),e.B4B)("alt",(null==n||null==n.value||null==n.value.bankInfoModel?null:n.value.bankInfoModel.icon)||"logo")}}function Le(l,M){if(1&l&&(e.nrm(0,"span",63),e.nI1(1,"safeHtml"),e.j41(2,"span",64),e.nVh(3,Be,1,2,"img",57),e.k0s(),e.nrm(4,"span",65),e.j41(5,"span",66),e.EFF(6),e.nI1(7,"slice"),e.k0s()),2&l){const n=e.XpG().$implicit;e.Y8G("innerHTML",e.bMT(1,3,null==n||null==n.value?null:n.value.alias),e.npT),e.R7$(3),e.vxM(null!=n&&null!=n.value&&null!=n.value.bankInfoModel&&n.value.bankInfoModel.icon?3:-1),e.R7$(3),e.JRh(null!=n&&null!=n.value&&n.value.instrumentValue?"****"+e.i5U(7,5,null==n||null==n.value?null:n.value.instrumentValue,-4):"")}}function je(l,M){if(1&l&&e.EFF(0),2&l){const n=e.XpG().$implicit;e.SpI(" ",n.label," ")}}function Ue(l,M){if(1&l){const n=e.RV6();e.j41(0,"li",61),e.bIt("click",function(){const t=i.eBV(n).$implicit,p=e.XpG(2);return i.Njj(p.cardFromChange(t.value))}),e.j41(1,"div",62),e.nVh(2,Le,8,8),e.nVh(3,je,1,1),e.k0s()()}if(2&l){const n=M.$implicit,a=e.XpG(2);e.Y8G("ngClass",e.eq3(3,be,(null==a.card2CardFlow.cardFrom?null:a.card2CardFlow.cardFrom.instrumentId)===n.value.instrumentId)),e.R7$(2),e.vxM("Card"!==(null==n||null==n.value?null:n.value.instrumentType)?2:-1),e.R7$(),e.vxM("Card"===(null==n||null==n.value?null:n.value.instrumentType)?3:-1)}}function He(l,M){if(1&l&&(e.j41(0,"div",21)(1,"ul",59),e.Z7z(2,Ue,4,5,"li",60,e.fX1),e.k0s()()),2&l){const n=e.XpG();e.Y8G("ngStyle",e.eq3(1,ye,n.isCardASelect?"block":"none")),e.R7$(2),e.Dyx(n.instrumentsList)}}function $e(l,M){if(1&l){const n=e.RV6();e.j41(0,"mat-form-field",30)(1,"mat-label"),e.EFF(2," CVV "),e.j41(3,"span",67),e.EFF(4,"? "),e.j41(5,"span",68),e.nrm(6,"span",69),e.nI1(7,"translate"),e.nI1(8,"safeHtml"),e.nrm(9,"img",70),e.k0s()()(),e.j41(10,"input",71,2),e.bIt("blur",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["Cvv","Cvv"])))}),e.k0s()()}if(2&l){const n=e.XpG();e.R7$(6),e.Y8G("innerHTML",e.bMT(8,7,e.bMT(7,5,"shared.cvv.info-text")),e.npT),e.R7$(3),e.Y8G("ngSrc","https://cdn.easypay.ua/images/svg/cvv-tooltip.svg"),e.R7$(),e.Y8G("errorStateMatcher",n.errorMatcher)("formControl",n.mainFormGroup.get(e.lJ4(9,Fe)))("textMask",null==n.mask?null:n.mask.cvvMask)}}function Ke(l,M){if(1&l){const n=e.RV6();e.j41(0,"button",74),e.bIt("mouseenter",function(){i.eBV(n);const t=e.sdS(2);return i.Njj(t.show())})("mouseleave",function(){i.eBV(n);const t=e.sdS(2);return i.Njj(t.hide())})("click",function(){i.eBV(n);const t=e.sdS(2);return i.Njj(t.toggle())}),e.nrm(1,"img",75,3),e.nI1(3,"translate"),e.k0s()}if(2&l){const n=e.XpG(2);e.R7$(),e.Y8G("matTooltip",e.bMT(3,1,n.payerNameTooltipKey))}}
1function Xe(l,M){if(1&l&&(e.j41(0,"div",72)(1,"span"),e.EFF(2),e.k0s(),e.nVh(3,Ke,4,3,"button",73),e.k0s()),2&l){const n=e.XpG();e.AVh("owner-position",n.isCvvErrorVisible())("hide",n.isCvvErrorVisible()&&"Card"===(null==n.card2CardFlow.cardFrom?null:n.card2CardFlow.cardFrom.instrumentType)),e.R7$(2),e.JRh(null==n.cardFromInfo||null==n.cardFromInfo.userInfo?null:n.cardFromInfo.userInfo.name),e.R7$(),e.vxM(n.payerNameTooltipKey?3:-1)}}function We(l,M){if(1&l&&(e.j41(0,"div",76)(1,"mat-checkbox",77)(2,"span",78,4),e.nI1(4,"translate"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&l){const n=e.XpG(2);e.R7$(),e.Y8G("formControl",n.mainFormGroup.get(e.lJ4(8,pe))),e.R7$(),e.Y8G("matTooltip",e.bMT(4,4,"shared.pay-tools.card.save-tooltip"))("matTooltipTouchGestures","on"),e.R7$(3),e.JRh(e.bMT(6,6,"shared.pay-tools.card.save"))}}function Ye(l,M){if(1&l&&(e.j41(0,"section",34),e.nVh(1,We,7,9,"div",76),e.k0s()),2&l){const n=e.XpG();e.Y8G("ngClass",n.additionalFields?"":"show-for-large-xl large-expand"),e.R7$(),e.vxM(n.mainFormGroup.get(e.lJ4(2,pe)).enabled?1:-1)}}function ze(l,M){if(1&l){const n=e.RV6();e.j41(0,"mat-form-field",15)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"input",79),e.bIt("blur",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get("payerName.payerName")))}),e.k0s(),e.j41(5,"mat-error"),e.nrm(6,"app-control-validation-messages",20),e.k0s()()}if(2&l){const n=e.XpG();e.R7$(2),e.JRh(n.finmon.payer.label||e.bMT(3,6,"shared.pay-tools.payerName")),e.R7$(2),e.Y8G("formControl",n.mainFormGroup.get("payerName.payerName"))("errorStateMatcher",n.errorMatcher),e.R7$(2),e.Y8G("mainForm",n.mainFormGroup.get("payerName"))("formErrors",n.formErrors)("fieldName","payerName")}}function Je(l,M){if(1&l&&e.nrm(0,"app-tax-number-control",36),2&l){const n=e.XpG();e.Y8G("control",n.payerTaxNumberControl)("source",n.taxNumberSource)("formErrors",n.formErrors)("forceEditable",!0)}}function Qe(l,M){if(1&l&&(e.j41(0,"mat-form-field",15)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",80),e.j41(5,"mat-error"),e.nrm(6,"app-control-validation-messages",20),e.k0s()()),2&l){const n=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,7,"transfers.card-2-card.phone-sender")," "),e.R7$(2),e.Y8G("formControl",n.mainFormGroup.get("payerPhone.payerPhone"))("inputMask",null==n.mask?null:n.mask.phoneMaskPattern)("specialCharacters",!1),e.R7$(2),e.Y8G("mainForm",n.mainFormGroup.get("payerPhone"))("formErrors",n.formErrors)("fieldName","payerPhone")}}function Ze(l,M){if(1&l&&e.nrm(0,"img",57),2&l){const n=e.XpG(2);e.Y8G("src",n.bankLogoIconsPath+(null==n.cardToInfo||null==n.cardToInfo.bankInfo?null:n.cardToInfo.bankInfo.icon),e.B4B)("alt",null==n.cardToInfo||null==n.cardToInfo.bankInfo?null:n.cardToInfo.bankInfo.name)}}function qe(l,M){if(1&l&&(e.j41(0,"figure",12),e.nVh(1,Ze,1,2,"img",57),e.j41(2,"figcaption"),e.EFF(3),e.k0s()()),2&l){const n=e.XpG();e.AVh("show-for-medium",!n.additionalFields),e.R7$(),e.vxM(null!=n.cardToInfo&&null!=n.cardToInfo.bankInfo&&n.cardToInfo.bankInfo.icon?1:-1),e.R7$(2),e.JRh(null!=n.cardToInfo&&null!=n.cardToInfo.bankInfo&&n.cardToInfo.bankInfo.icon?"":null==n.cardToInfo||null==n.cardToInfo.bankInfo?null:n.cardToInfo.bankInfo.name)}}function et(l,M){if(1&l){const n=e.RV6();e.j41(0,"button",58),e.bIt("mousedown",function(t){i.eBV(n);const p=e.XpG(2);return i.Njj(p.clearSearch(t))}),e.j41(1,"mat-icon"),e.EFF(2,"close"),e.k0s()()}}function tt(l,M){if(1&l){const n=e.RV6();e.j41(0,"app-autocomplete-user-card-list",85),e.bIt("onEsc",function(){i.eBV(n);const t=e.XpG(2);return i.Njj(t.onEsc())})("onCardChange",function(t){i.eBV(n);const p=e.XpG(2);return i.Njj(p.onSelectCard(t))}),e.k0s()}if(2&l){const n=e.XpG().ngLet,a=e.XpG();e.Y8G("isCardSelecting",a.showDropdown&&!(null==n||null==n.filteredCards||!n.filteredCards.length))("userCards",n.filteredCards)("selectedCardGuid",null==a.selectedCard||null==a.selectedCard.value?null:a.selectedCard.value.cardGuid)("itemNavigation",!0)}}function rt(l,M){if(1&l){const n=e.RV6();e.j41(0,"div",84)(1,"mat-checkbox",86),e.bIt("change",function(t){i.eBV(n);const p=e.XpG(2);return i.Njj(p.card2CardFlow.isRecipientCommission=null==t?null:t.checked)}),e.j41(2,"span",87),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()}if(2&l){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(5,Q,!n.additionalFields)),e.R7$(),e.Y8G("formControl",n.mainFormGroup.get(e.lJ4(7,fe))),e.R7$(2),e.JRh(e.bMT(4,3,"transfers.card-2-card.payees-commission"))}}function at(l,M){if(1&l){const n=e.RV6();e.j41(0,"div",14),e.bIt("clickOutside",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.cardClickOutside())}),e.j41(1,"mat-form-field",81)(2,"mat-label"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",82,5),e.nI1(7,"translate"),e.bIt("focus",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.onClickSearch())})("focusout",function(t){i.eBV(n);const p=e.XpG();return i.Njj(p.onBlur(t))})("input",function(t){i.eBV(n);const p=e.XpG();return i.Njj(p.searchedCardTerm$.next(t.target.value))})("keydown",function(t){i.eBV(n);const p=e.XpG();return i.Njj(p.onSearchKeydown(t))})("blur",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["cardTo","cardTo"])))}
1),e.k0s(),e.nrm(8,"i",18),e.nVh(9,et,3,0,"button",19),e.j41(10,"mat-error"),e.nrm(11,"app-control-validation-messages",20),e.k0s()(),e.nVh(12,tt,1,4,"app-autocomplete-user-card-list",83),e.nVh(13,rt,5,8,"div",84),e.k0s()}if(2&l){let n;const a=M.ngLet,t=e.XpG();e.R7$(3),e.JRh(e.bMT(4,18,t.isAuth&&a.filteredCards?"profile.contact-book.c2c.placeholder-search":"profile.contact-book.c2c.placeholder-search-anonim")),e.R7$(2),e.Y8G("errorStateMatcher",t.errorMatcher)("type","search")("name",t.nameCardTo)("placeholder",e.bMT(7,20,t.isAuth&&null!=a.allCards&&a.allCards.length?"profile.contact-book.c2c.placeholder-search":"profile.contact-book.c2c.placeholder-search-anonim"))("autocomplete",t.isAuth&&null!=a.filteredCards&&a.filteredCards.length?"off":"section-resepient cc-number")("formControl",t.mainFormGroup.get(e.lJ4(22,he)))("readOnly",t.isAuth&&!!t.templateId||t.isAuth&&!!t.transactionId)("inputMask",t.searchMask)("specialCharacters",!1)("Pan",t.mainFormGroup.get(e.lJ4(23,he)).value),e.BMQ("inputmode",t.isAuth&&null!=a.allCards&&a.allCards.length?"search":"numeric"),e.R7$(4),e.vxM(t.mainFormGroup.get(e.lJ4(24,he)).value&&t.isCardToActive()?9:-1),e.R7$(2),e.Y8G("mainForm",t.mainFormGroup.get("cardTo"))("formErrors",t.formErrors)("fieldName","cardTo"),e.R7$(),e.vxM(t.isAuth?12:-1),e.R7$(),e.vxM(null!=t.c2cExtraParams&&t.c2cExtraParams.allowRecipientCommission&&null!=(n=t.mainFormGroup.get(e.lJ4(25,fe)))&&n.enabled?13:-1)}}function nt(l,M){if(1&l&&(e.j41(0,"div",72),e.EFF(1),e.k0s()),2&l){const n=e.XpG();e.AVh("show-for-medium",!n.additionalFields),e.R7$(),e.JRh(null==n.cardToInfo||null==n.cardToInfo.userInfo?null:n.cardToInfo.userInfo.name)}}function ot(l,M){if(1&l){const n=e.RV6();e.j41(0,"div",88)(1,"mat-form-field",15)(2,"mat-label"),e.EFF(3),e.k0s(),e.j41(4,"input",89),e.bIt("blur",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get("recipientName.recipientName")))}),e.k0s(),e.j41(5,"mat-error"),e.nrm(6,"app-control-validation-messages",20),e.k0s()()()}if(2&l){const n=e.XpG();e.AVh("recipient-name--home-page",!n.additionalFields),e.R7$(3),e.SpI(" ",n.finmon.recipient.label," "),e.R7$(),e.Y8G("formControl",n.mainFormGroup.get("recipientName.recipientName"))("errorStateMatcher",n.errorMatcher),e.R7$(2),e.Y8G("mainForm",n.mainFormGroup.get("recipientName"))("formErrors",n.formErrors)("fieldName","recipientName")}}function it(l,M){if(1&l&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"number"),e.nI1(4,"translate"),e.nI1(5,"number"),e.nI1(6,"translate"),e.k0s()),2&l){const n=e.XpG();e.R7$(),e.SjE(" ",e.bMT(2,5,"shared.amount.amount-from")," ",e.i5U(3,7,null==n.currentAmountsListItem?null:n.currentAmountsListItem.amountMin,"1.0")," ",e.bMT(4,10,"shared.amount.amount-to")," ",e.i5U(5,12,null==n.currentAmountsListItem?null:n.currentAmountsListItem.amountMax,"1.0")," ",e.bMT(6,15,"shared.amount.currency")," ")}}function st(l,M){1&l&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&l&&(e.R7$(),e.JRh(e.bMT(2,1,"shared.pay-tools.pay-amount.comission-common")))}function lt(l,M){if(1&l&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"number"),e.nI1(4,"translate"),e.k0s()),2&l){const n=e.XpG();e.R7$(),e.E5c(" ",e.bMT(2,3,"shared.pay-tools.pay-amount.comission")," ",e.i5U(3,5,null==n.card2CardFlow?null:n.card2CardFlow.expectedCommission,"1.2-2"),"\xa0",e.bMT(4,8,"shared.amount.currency")," ")}}function dt(l,M){if(1&l&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"translate"),e.k0s()),2&l){const n=e.XpG(2);e.R7$(),e.Lme("",e.i5U(2,2,n.card2CardFlow.toPay,"1.2-2"),"\xa0",e.bMT(3,5,"shared.amount.currency")," ")}}
1function mt(l,M){if(1&l&&(e.EFF(0),e.nI1(1,"translate"),e.nVh(2,dt,4,7,"span")),2&l){const n=e.XpG();e.SpI(" ",e.bMT(1,2,"transfers.card-2-card.transfer")," "),e.R7$(2),e.vxM(n.showCommission&&n.mainFormGroup.get("amount.amount").valid?2:-1)}}function ct(l,M){1&l&&e.nrm(0,"div",53)}function ut(l,M){if(1&l){const n=e.RV6();e.j41(0,"button",90),e.nI1(1,"translate"),e.bIt("click",function(){i.eBV(n);const t=e.XpG();return i.Njj(t.navigateToMoneyTransfer())}),e.j41(2,"span",91),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&l&&(e.BMQ("aria-label",e.bMT(1,2,"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u043f\u0435\u0440\u0435\u043a\u0430\u0437\u0443")),e.R7$(3),e.JRh(e.bMT(4,4,"transfers.card-2-card.transfer")))}let pt=(()=>{var l;class M extends V.I{set c2cExtraParamsData(a){this.setDataC2CInputChange(a)}get isPayerNameEditable(){return"diia"!==this.payerNameSource&&"bank"!==this.payerNameSource}get payerNameTooltipKey(){return"diia"===this.payerNameSource?"shared.pay-tools.payerName-tooltip-diia":"bank"===this.payerNameSource?"shared.pay-tools.payerName-tooltip-bank":null}get payerTaxNumberControl(){return this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerTaxNumber")}constructor(a,t,p,N,$,ne,oe,ht,ft,_t,vt){super(a),this.authService=t,this.paymentHandlerService=p,this.contactsService=N,this.paymentService=$,this.translateService=ne,this.loaderService=oe,this.appConfigService=ht,this.payerNameService=ft,this.payerNameValidation=_t,this.linkService=vt,this.card2CardFlow=new f.v,this.formErrors=new y.b,this.instrumentsList=[],this.showCommission=!1,this.showInnerLoader=!1,this.additionalFields=!1,this.onSubmit=new e.bkB,this.navigate=new e.bkB,this.alive=!0,this.isAuth$=this.authService.isAuth$,this.bankLogoIconsPath=b.D5.BANK_LOGO_ICONS_PATH,this.bankLogoIconsSmallPath=b.D5.BANK_LOGO_ICONS_SMALL_PATH,this.finmon={payer:{name:"",label:"",showInput:!1},recipient:{name:"",label:"",showInput:!1}},this.showPayerName=!1,this.payerNameSource=null,this.showTaxNumber=!1,this.taxNumberSource=null,this.taxNumberService=(0,i.WQX)(Ie.G),this.taxNumberValidation=(0,i.WQX)(te.$Y),this.nameCardFrom=(0,x.S)(),this.cardFromInfo=new w.Z(null,null),this.isCardASelect=!1,this.isCardASelectOver=!1,this.showCvv=!0,this.cardToInfo=new w.Z(null,null),this.nameCardTo=(0,x.S)(),this.errorMatcher=new c.F,this.selectedCard=new ie.t(null),this.searchedCardTerm$=new ie.t(""),this.showDropdown=!1,this.searchMask=t.isLoggedIn()?this.mask?.searchContactMaskPattern:this.mask?.cardPanMaskPattern,this.savedCards$=this.contactsService.savedCards$.pipe((0,h.T)(Ct=>[...Ct.map(Oe=>(Oe.instrumentType="Card",Oe))]))}ngOnChanges(a){if(a?.instrumentsList?.currentValue){this.setShowExpireControls(),this.isAuth$.value&&this.initRecipientCards();const t=!this.showPayerName;this.updatePayerNameState(),this.updateTaxNumberState(),t&&this.showPayerName&&"diia"!==this.payerNameSource&&(this.resetPayerName(),this.initPayerNamePrefill())}a?.service?.currentValue&&(this.updateFinMonFields(),this.updatePayerNameState(),this.updateTaxNumberState(),this.showPayerName&&"diia"!==this.payerNameSource&&(this.resetPayerName(),this.initPayerNamePrefill())),a?.isAuth&&!a.isAuth.firstChange&&(a.isAuth.currentValue||(this.resetCardsData(),this.cardToInfo.clean(),this.cardFromInfo.clean()),this.resetPayerName(),this.showPayerName&&this.initPayerNamePrefill(),this.updateTaxNumberState())}updateFinMonFields(){this.finmon.payer={name:"",label:"",showInput:!1},this.finmon.recipient={name:"",label:"",showInput:!1},this.service?.paymentServiceData?.fields?.forEach(a=>{"Payer.FullName"===a.name&&(this.finmon.payer.label=a.heading,this.finmon.payer.showInput=!0),["Recipient.FullName","RecipientFullName"].includes(a.name)&&(this.finmon.recipient.label=a.heading,this.finmon.recipient.showInput=a.isRequired)})}updatePayerNameState(){this.showPayerName=!!this.appConfigService.settings?.isPayerNameEnabled&&!!this.resolveCardFromInstrument()?.isPayerNameRequired;const a=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerName");if(!this.showPayerName)return this.payerNameSource=null,a?.disable(),void a?.setValue("",{emitEvent:!1});this.isPayerNameEditable?a?.enable():a?.disable()}updateTaxNumberState(){this.showTaxNumber=!!this.resolveCardFromInstrument()?.isTaxNumberRequired;const a=this.payerTaxNumberControl;a&&(this.showTaxNumber?this.initPayerTaxNumberPrefill():(this.taxNumberSource=null,a.clearValidators(),a.clearAsyncValidators(),a.disable({emitEvent:!1}),a.setValue("",{emitEvent:!1}
1),a.updateValueAndValidity({emitEvent:!1})))}initPayerTaxNumberPrefill(){const a=this.payerTaxNumberControl;if(!a)return;a.enable({emitEvent:!1});const t=this.taxNumberService.getTaxNumberData();this.taxNumberSource=t.source,a.setValue(t.taxNumber??"",{emitEvent:!1}),this.taxNumberValidation.attachValidators(a,{emitEvent:!1})}resolveCardFromInstrument(){const a=this.card2CardFlow?.cardFrom;if(a?.instrumentId)return this.instrumentsList?.find(t=>String(t.value.instrumentId)===String(a.instrumentId))?.value}ngOnInit(){this.createCardFromSubscription(),this.createCardToSubscription(),this.checkRecipientCard&&this.populateCardToFieldValue(),this.isBrowser&&(this.addMaterialIconFont(),this.addTextSecurityFonts())}ngOnDestroy(){this.alive=!1}initPayerNamePrefill(a){const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),p=this.clearSpecialSymbols(t?.value??""),N=this.paymentHandlerService.getFormControlFieldKey(this.mainFormGroup,"cardFrom",p)??void 0,ne="RCard"===this.card2CardFlow.cardFrom?.instrumentType&&!(!p&&!N);this.payerNameService.getPayerNameData({pan:ne?p:void 0,cardGuid:N,supportsCardholderInfo:ne,holder:a}).pipe((0,u.v)(()=>this.alive)).subscribe(oe=>this.applyPayerNameData(oe))}applyPayerNameData(a){this.payerNameSource=a.source;const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerName");t&&("diia"===a.source||"bank"===a.source?(t.setValue(a.name??"",{emitEvent:!1}),this.payerNameValidation.syncValidatorForSource(t,a.source,ce.w.card2CardPayer,{emitEvent:!1}),t.disable(),a.name&&(this.cardFromInfo.userInfo=new v(a.name))):(this.showPayerName&&t.enable(),t.setValue(a.name??"",{emitEvent:!1}),this.cardFromInfo.userInfo=null,this.payerNameValidation.syncValidatorForSource(t,a.source,ce.w.card2CardPayer)))}resetPayerName(){this.payerNameSource=null,this.mainFormGroup.get("payerName.payerName")?.setValue("",{emitEvent:!1}),this.cardFromInfo.userInfo=null}initRecipientCards(){this.allCardsList$=(0,me.z)([this.instrumentsCards,this.savedCards$]).pipe((0,h.T)(([a,t])=>[...a,...t])),this.searchCardSubscription()}get instrumentsCards(){return(0,D.of)(this.instrumentsList.filter(a=>!!a.value.instrumentValue).map(a=>this.mapInstrumentCardToContactCard(a)))}mapInstrumentCardToContactCard(a){return new Y.n(a.value.cardGuid,a.value?.instrumentValue,this.translateService.instant("transfers.card-2-card.my-card"),a.value?.bankInfoModel?.bankName,a.value?.bankInfoModel?.icon)}setDataC2CInputChange(a){if(a){this.c2cExtraParams=a;const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom");this.setShowCvv(t),this.setSaveCard(t)}}createCardFromSubscription(){const a=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom");a.valueChanges.pipe((0,u.v)(()=>this.alive),(0,h.T)(this.clearSpecialSymbols),(0,s.F)()).subscribe(t=>{this.setShowCvv(a),this.setShowExpireControls(),this.updateCardBankInfo(t,this.cardFromInfo),16===t?.length&&a.valid&&(this.showPayerName&&"RCard"===this.card2CardFlow.cardFrom?.instrumentType||this.getUserInfoByCardFrom(t))})}updateCardBankInfo(a,t){a?.length>7?this.getBankInfoNew(a,t):t.cleanBankInfo()}createCardToSubscription(){const a=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo");a.valueChanges.pipe((0,u.v)(()=>this.alive),(0,s.F)()).subscribe(t=>{this.onCardToFieldValueChange(t,a)})}onCardToFieldValueChange(a,t){const p=this.defineFieldType(a);switch(t.clearValidators(),t.clearAsyncValidators(),a||(this.cardToInfo.clean(),t.touched&&this.onClickSearch()),p){case"card":this.setCardValidationFor(t),this.card2CardFlow?.cardTo&&(this.card2CardFlow.cardTo.instrumentType="Card",a=this.clearSpecialSymbols(a),this.updateCardBankInfo(a,this.cardToInfo),16===a?.length&&t.valid&&this.isBrowser?setTimeout(()=>this.getUserInfoByCardTo(a),0):this.cardToInfo.userInfo=null);break;case"search":this.setSearchByNameValidationFor(t)}}defineFieldType(a){return a?.match(/^\d/)||!this.isAuth?"card":"search"}setShowCvv(a){const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Cvv"),p=this.instrumentsList.find(N=>N.value.instrumentValue===a.value);this.showCvv=this.defineShowCvvValue(p),this.showCvv?t.enable():t.disable()}defineShowCvvValue(a){return!(this.c2cExtraParams?.hasOwnProperty("isCvvRequired")&&!this.c2cExtraParams?.isCvvRequired)&&(a?.value?.isRequireCvv??!0)}setShowExpireControls(){const a=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Month"),t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Year");"RCard"===this.card2CardFlow.cardFrom?.instrumentType?(a.disable(),t.disable()):(a.enable(),t.enable())}setSaveCard(a){const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"savecard");"Card"!==this.instrumentsList.find(N=>N.value.instrumentValue===a.value)?.value?.instrumentType?(t.setValue(!1),t.disable()):t.enable()}
1cardClickOutside(){this.isCardASelect&&(this.isCardASelectOver=!this.isCardASelectOver||(this.isCardASelect=!1))}cardFromChange(a){this.card2CardFlow.cardFrom=new w.Z(a.instrumentId,a.instrumentType,a.cardGuid,a.instrumentValue),this.card2CardFlow.cardFrom.isPayerNameRequired=a.isPayerNameRequired,this.updatePayerNameState(),this.updateTaxNumberState();const t=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),p=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Cvv");"RCard"===a.instrumentType?(t&&a.cardGuid&&(t.parent.get(Z.o.FirstValue).setValue(a.instrumentValue),t.parent.get(Z.o.FieldKey).setValue(a.cardGuid)),t?.setValue(a.instrumentValue),this.setSaveCard(t)):"Card"===a.instrumentType&&(t.reset(),this.isCardASelect=!1,this.cardFrom.nativeElement.removeAttribute("readOnly"),this.cardFrom.nativeElement.focus(),this.showPayerName&&"diia"!==this.payerNameSource&&this.cardFromInfo.clean(),this.authService.isLoggedIn()&&this.setSaveCard(t)),p&&p.reset(),this.isCardASelect=this.isCardASelectOver=!1,this.showPayerName&&"diia"!==this.payerNameSource&&(this.resetPayerName(),this.initPayerNamePrefill(a.holder))}onKeyDown(a){this.isCardASelect=!1}initFormErrors(){}get checkRecipientCard(){return!!this.contactsService.recipientCard$.getValue()}populateCardToFieldValue(){const a=this.mainFormGroup.get("cardTo.cardTo"),t=this.contactsService.recipientCard$.getValue();a.markAsTouched(),a.setValue(t?.cardPan),this.updateCard2CardFlowByPredefinedCard(t),"Card"===t.instrumentType&&this.onCardToFieldValueChange(t.cardPan,a),this.contactsService.recipientCard$.next(null),this.loaderService.finish()}updateCard2CardFlowByPredefinedCard(a){this.card2CardFlow.cardTo=new w.Z(a.instrumentId,a.instrumentType,a?.cardGuid)}setCardValidationFor(a){this.searchMask=this.mask?.cardPanMaskPattern,a.setValidators(d.k0.compose([d.k0.required,d.k0.pattern(b.D5.CARD_MASK),O.N.luhn()])),a.updateValueAndValidity()}setSearchByNameValidationFor(a){this.searchMask=this.mask?.searchContactMaskPattern,a.setValidators(d.k0.required),a.setAsyncValidators(this.checkContactValidator()),a.updateValueAndValidity()}resetCardsData(){this.contactsService.savedCards=[],this.selectedCard.next(null),this.isBrowser&&(this.searchControl.nativeElement.value="",this.searchedCardTerm$.next(null))}onSelectCard(a){this.searchedCardTerm$.next(a.cardName),this.selectedCard.next(a),this.mainFormGroup.get(["cardTo","cardTo"]).setValue(a.cardPan),this.mainFormGroup.get(["cardTo",Z.o.FirstValue]).setValue(a.cardPan),this.mainFormGroup.get(["cardTo",Z.o.FieldKey]).setValue(a.cardGuid),this.showDropdown=!1,this.card2CardFlow.cardTo=new w.Z(a.instrumentId?a.instrumentId.toString():null,a.instrumentType??"Card",a?.cardGuid,a.cardPan)}clearCardFrom(a){a.preventDefault(),a.stopPropagation(),this.mainFormGroup.get("cardFrom").reset(),this.cardFrom.nativeElement.value="",this.cardFrom.nativeElement.focus();const t=this.instrumentsList[this.instrumentsList.length-1];this.cardFromChange(t?.value),this.setShowExpireControls()}clearSearch(a){a.preventDefault(),a.stopPropagation(),this.searchedCardTerm$.next(""),this.selectedCard.next(null),this.initUserCard("cardTo"),this.mainFormGroup.get("cardTo").reset(),this.searchControl.nativeElement.value="",this.searchControl.nativeElement.focus(),this.onClickSearch()}onClickSearch(){this.showDropdown=!0,this.searchControl?.nativeElement.value&&this.searchedCardTerm$.next(this.searchControl.nativeElement.value)}onBlur(a){this.isActiveElementContactCard(a)||(this.showDropdown=!1)}isActiveElementContactCard(a){const t=a.relatedTarget||document.activeElement;return t&&Array.from(t.classList).includes("dropdown-item")}get isCardFromActive(){return this.isBrowser&&document.activeElement===this.cardFrom.nativeElement}isCardToActive(){return this.isBrowser&&document.activeElement===this.searchControl.nativeElement}addMaterialIconFont(){this.linkService.isFontExist("Icons")||this.linkService.addTag({rel:"stylesheet",href:"https://fonts.googleapis.com/icon?family=Material+Icons"})}addTextSecurityFonts(){this.linkService.isFontExist("text-security-disc")||this.linkService.addTag({rel:"stylesheet",type:"text/css",href:"/assets/fonts/text-security/text-security-disc.css?display=swap"})}navigateToMoneyTransfer(){const a=this.mainFormGroup.get(["cardTo","cardTo"]);a.markAsTouched(),a.valid&&(this.loaderService.start(),this.contactsService.recipientC
1ard$.next(new C(a?.value,this.card2CardFlow.cardTo?.instrumentId,this.card2CardFlow.cardTo?.instrumentType,this.card2CardFlow.cardTo?.panGuid)),this.navigate.emit())}onFormSubmit(){this.mainFormGroup.markAllAsTouched(),this.showCommission&&this.mainFormGroup.valid&&this.onSubmit.emit()}getBankInfoNew(a,t){const p=t.getCardBin(a);p&&this.paymentService.getBankInfoByPan(p).subscribe({next:N=>t.bankInfo=N?.issuerInfo,error:N=>console.log(N)})}getUserInfoByCardFrom(a){if("diia"===this.payerNameSource)return;if(this.cardFromInfo.userInfo=null,this.showPayerName)return void this.payerNameService.getPayerNameData({pan:a,supportsCardholderInfo:!0}).pipe((0,u.v)(()=>this.alive)).subscribe($=>this.applyPayerNameData($));const t=this.card2CardFlow.cardFrom,p=this.paymentHandlerService.getFormControlFieldKey(this.mainFormGroup,"cardFrom",a),N="Card"===t?.instrumentType?new W.k(a,null):new W.k(null,p||null);this.getCardholderInfo(this.cardFromInfo,N)}getUserInfoByCardTo(a){const t=this.paymentHandlerService.getFormControlFieldKey(this.mainFormGroup,"cardTo",a),p=new W.k(this.cardToInfo.unmaskPan(a),t||null);if(16!==p.cardPan?.length&&!t)return;const N=this.selectedCard?.value?.cardName??null;this.cardToInfo.userInfo=N?new v(N):null;const $=this.finmon.recipient.showInput?this.mainFormGroup.get("recipientName.recipientName"):null;this.paymentService.getCardHolderInfo(p).pipe((0,u.v)(()=>this.alive)).subscribe({next:ne=>{const oe=ne?.name||ne?.holder||null;oe?($?.disable(),$?.setValue(oe),this.cardToInfo.userInfo=new v(oe)):($?.enable(),$?.markAsUntouched())},error:()=>{$?.enable(),$?.markAsUntouched()}})}clearSpecialSymbols(a){return a?.replace(/[^\d\*]/g,"")}getCardholderInfo(a,t,p){this.paymentService.getCardHolderInfo(t).pipe((0,u.v)(()=>this.alive)).subscribe({next:N=>{const $=N?.holder||N?.name||null;$?(p?.disable(),p?.setValue($),a.userInfo=new v($)):(p?.enable(),p?.markAsUntouched())},error:()=>{p?.enable(),p?.markAsUntouched(),a.userInfo=null}})}initUserCard(a){if(!this.instrumentsList?.length)return;const t=this.instrumentsList?.findIndex(N=>"Card"===N.value.instrumentType),p=this.instrumentsList[t].value;this.card2CardFlow[a]=new w.Z(p.instrumentId,p.instrumentType),"cardFrom"===a&&(this.card2CardFlow.cardFrom.isPayerNameRequired=p.isPayerNameRequired)}onEsc(){this.searchControl.nativeElement.focus()}onSearchKeydown(a){if(this.isBrowser&&a&&(a.keyCode===I.D.ArrowDown||a.keyCode===I.D.ArrowUp)){a.preventDefault();const t=document.querySelectorAll(".card-select li"),p=t?.length;p>0&&(a.keyCode===I.D.ArrowDown?t[0].focus():t[p-1].focus())}}checkContactValidator(){return a=>(0,D.of)(null).pipe((0,S.c)(100),(0,R.E)(this.filteredCards$),(0,h.T)(([t,p])=>(0,H.W)(d.k0.required(a))?null:!this.selectedCard.value&&p?.length>0?{noSelectedContact:!0}:!a?.value?.length||p&&0!==p?.length?null:{noMatchedContact:!0}))}filterCardsList(a){a=a??"",this.filteredCards$=this.allCardsList$.pipe((0,h.T)(t=>t.filter(p=>p?.cardName?.toLocaleLowerCase()?.replace(" ","")?.includes(a?.toLocaleLowerCase()?.replace(" ","")))))}searchCardSubscription(){this.searchedCardTerm$&&this.searchedCardTerm$.pipe((0,u.v)(()=>this.alive)).subscribe(a=>this.filterCardsList(a))}isCvvErrorVisible(){const a=this.mainFormGroup.get("Cvv.Cvv");return a.errors&&a.touched}}return(l=M).\u0275fac=function(a){return new(a||l)(e.rXU(e.Agw),e.rXU(T.u),e.rXU(F.c),e.rXU(g.F),e.rXU(q.W),e.rXU(K.c$),e.rXU(_e.Z),e.rXU(Ee.R),e.rXU(ee.W),e.rXU(ce.p),e.rXU(Me._))},l.\u0275cmp=e.VBU({type:l,selectors:[["app-card-2-card-form-home"]],viewQuery:function(a,t){if(1&a&&(e.GBs(P,7),e.GBs(j,5),e.GBs(A,5),e.GBs(k,7)),2&a){let p;e.mGM(p=e.lsd())&&(t.cardFrom=p.first),e.mGM(p=e.lsd())&&(t.cvv=p.first),e.mGM(p=e.lsd())&&(t.c2cError=p.first),e.mGM(p=e.lsd())&&(t.searchControl=p.first)}},inputs:{mainFormGroup:"mainFormGroup",card2CardFlow:"card2CardFlow",formErrors:"formErrors",instrumentsList:"instrumentsList",showCommission:"showCommission",showInnerLoader:"showInnerLoader",currentAmountsListItem:"currentAmountsListItem",isAuth:"isAuth",service:"service",templateId:"templateId",transactionId:"transactionId",additionalFields:"additionalFields",c2cExtraParams:"c2cExtraParams",c2cExtraParamsData:"c2cExtraParamsData",btnUniqueName:"btnUniqueName"},outputs:{onSubmit:"onSubmit",navigate:"navigate"},standalone:!1,features:[e.Vt3,e.OA$],decls:92,vars:123,consts:[["cardFrom",""],["amountInput",""],["cvv",""],["payerTooltip","matTooltip"],["c2cSaveTooltip","matTooltip"],["searchControl",""],["name","main-page","autocomplete","off","appFocusInput","",1,"c2c-form","c2c-h
1ome","flex-container","flex-wrap","relative",3,"ngSubmit","formGroup","ngClass","selectors","disabledSelector"],[1,"cards-wrapper","relative"],[1,"card-container","card-container--sender","small-16","column",3,"ngClass"],["id","sender",1,"c2c-form__title","flex-container","align-middle"],["width","14","height","14",1,"tool-tip_infoicon","pointer",3,"ngSrc","alt","matTooltip","matTooltipPosition","matTooltipTouchGestures"],[1,"card-sender","card-view","relative"],[1,"c2c-form__bank-emitent"],[1,"card-view__inner"],[1,"card-pan__container","relative","row","column",3,"clickOutside"],["appearance","outline"],["for","cardFrom"],["id","cardFrom","matInput","","type","tel","placeholder","0000 0000 0000 0000","aria-labelledby","sender","detect-card","",1,"tool-input","card__number","c2c-form__input",3,"click","focus","keydown","blur","errorStateMatcher","autocomplete","name","formControl","readOnly","textMask","Pan"],[1,"ps-logo","absolute"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[3,"mainForm","formErrors","fieldName"],[1,"tool-select-box",3,"ngStyle"],[1,"card-properties__container","flex-container","flex-wrap","align-justify"],[1,"card-expire","flex-container","align-justify",3,"ngClass"],[1,"card-expire__month"],["floatLabel","always","appearance","fill","hideRequiredMarker",""],["matInput","","type","number","autocomplete","section-sender cc-exp-month",1,"c2c-form__input",3,"blur","textMask","errorStateMatcher","maxlength","max-value","formControl"],[1,"card-expire__year"],["matInput","","type","number","autocomplete","section-sender cc-exp-year",1,"c2c-form__input",3,"blur","textMask","errorStateMatcher","maxlength","formControl"],[1,"card-cvv"],["floatLabel","always","appearance","fill"],[1,"c2c-form__card-owner",3,"owner-position","hide"],[1,"c2c-cvv-validation"],[3,"mainForm","formErrors","fieldName","messageLabel"],[1,"save-card-and-description","row","align-middle",3,"ngClass"],[1,"c2c-additional",3,"ngClass"],["mode","service-form",3,"control","source","formErrors","forceEditable"],[1,"card-container","card-container--recipient","large-order-1","small-16","large-expand","column"],[1,"c2c-form__title"],[1,"card-recipient","card-view","relative"],[1,"c2c-form__bank-emitent",3,"show-for-medium"],["class","card-pan__container relative row column",3,"clickOutside",4,"ngLet"],[1,"c2c-form__card-owner",3,"show-for-medium"],[1,"recipient-name",3,"re
1cipient-name--home-page"],[1,"c2c-form__payment-container","column","relative"],[1,"c2c-form__title","show-for-medium"],[1,"c2c-form__payment-field","align-middle"],["for","amountInput",1,"is-hidden"],["id","amountInput_label",1,"show-for-sr"],["matInput","","aria-labelledby","amountInput_label","type","tel","autocomplete","off","inputmode","decimal","input-decimal","2","input-decimal-point",".",1,"c2c-form__input",3,"blur","id","name","placeholder","formControl","errorStateMatcher","textMask"],[1,"c2c-form__payment-commis","text-center"],[1,"c2c-form__deal",3,"innerHtml"],["mat-ripple","",1,"c2c-form__payment-button",3,"ngClass"],[1,"loading-spinner"],[1,"flex-container","flex-wrap","small-16","align-center-middle",3,"ngClass"],["type","button","mat-ripple","",1,"c2c-form__navigation-btn","medium-9","hide-for-large-xl"],[1,"small-16"],[3,"src","alt"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"mousedown"],[1,"dropdown","tool-select","tool-dropdown--home"],[1,"dropdown-item",3,"ngClass"],[1,"dropdown-item",3,"click","ngClass"],[1,"dropdown-item__details"],[1,"dropdown-item__name","tool-name","regular",3,"innerHTML"],[1,"dropdown-item__bank","tool-bank"],[1,"dropdown-item__line"],[1,"dropdown-item__pan"],["tabindex","0",1,"cvv__link","card-cvv__help"],[1,"card-cvv__tooltip"],[1,"card-cvv__tooltip-text",3,"innerHTML"],["width","276","height","130","alt","\u0434\u0435 \u0448\u0443\u043a\u0430\u0442\u0438 CVV-\u043a\u043e\u0434",1,"card-cvv__tooltip-img",3,"ngSrc"],["matInput","","aria-labelledby","cvv_label","type","tel","inputmode","numeric","pattern","[0-9]*","maxlength","3","autocomplete","off",1,"c2c-form__input","text-security",3,"blur","errorStateMatcher","formControl","textMask"],[1,"c2c-form__card-owner"],["type","button",1,"c2c-form__card-owner-info-btn"],["type","button",1,"c2c-form__card-owner-info-btn",3,"mouseenter","mouseleave","click"],["src","https://cdn.easypay.ua/images/svg/circle-info-light-blue.svg","alt","info","matTooltipPosition","below",1,"c2c-form__card-owner-info-icon",3,"matTooltip"],[1,"c2c-form__checkbox","save-card-checkbox","column"],["color","primary",1,"ep-checkbox","absolute-checkbox",3,"formControl"],[1,"c2c-form__checkbox-label",3,"matTooltip","matTooltipTouchGestures"],["matInput","","autocomplete","name","name","name","id","payerName","type","text",3,"blur","formControl","errorStateMatcher"],["matInput","","autocomplete","tel","type","tel","inputmode","numeric","placeholder","+380 (_ _) _ _ _ - _ _ - _ _","input-mask","",3,"formControl","inputMask","specialCharacters"],["appearance","outline","hideRequiredMarker",""],["matInput","","aria-labelledby","c2c-contact__label","input-mask","","detect-card","",1,"tool-input","card__number","card__number--search","c2c-form__input",3,"focus","focusout","input","keydown","blur","errorStateMatcher","type","name","placeholder","autocomplete","formControl","readOnly","inputMask","specialCharacters","Pan"],[3,"isCardSelecting","userCards","selectedCardGuid","itemNavigation"],[1,"c2c-form__checkbox-label","payees-commission","row","column",3,"ngClass"],[3,"onEsc","onCardChange","isCardSelecting","userCards","selectedCardGuid","itemNavigation"],["color","primary",1,"ep-checkbox","absolute-checkbox",3,"change","formControl"],[1,"c2c-form__checkbox-label"],[1,"recipient-name"],["matInput","","autocomplete","off","name","recipientName","id","recipientName","type","text",3,"blur","formControl","errorStateMatcher"],["type","button","mat-ripple","",1,"c2c-form__navigation-btn","medium-9","hide-for-large-xl",3,"click"],[1,"show-for-medium"]],template:function(a,t){if(1&a){const p=e.RV6();e.j41(0,"form",6),e.bIt("ngSubmit",function(){return i.eBV(p),i.Njj(t.onFormSubmit())}),e.j41(1,"div",7)(2,"section",8)(3,"p",9),e.EFF(4),e.nI1(5,"translate"),e.nrm(6,"img",10),e.nI1(7,"translate"),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",11),e.nVh(10,Ge,4,2,"figure",12),e.j41(11,"div",13)(12,"div",14),e.bIt("clickOutside",function(){return i.eBV(p),i.Njj(t.cardClickOutside())}),e.j41(13,"mat-form-field",15)(14,"mat-label",16),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"input",17,0
1),e.bIt("click",function(){return i.eBV(p),i.Njj(t.isCardASelect=!0)})("focus",function(){return i.eBV(p),i.Njj(t.isCardASelect=!0)})("keydown",function($){return i.eBV(p),i.Njj(t.onKeyDown($))})("blur",function(){return i.eBV(p),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["cardFrom","cardFrom"])))}),e.k0s(),e.nrm(19,"i",18),e.nVh(20,ke,3,0,"button",19),e.j41(21,"mat-error"),e.nrm(22,"app-control-validation-messages",20),e.k0s()(),e.nVh(23,He,4,3,"div",21),e.k0s(),e.j41(24,"div",22)(25,"div",23)(26,"div",24)(27,"mat-form-field",25)(28,"mat-label"),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"input",26),e.bIt("blur",function(){return i.eBV(p),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["Month","Month"])))}),e.k0s()()(),e.j41(32,"div",27)(33,"mat-form-field",25)(34,"mat-label"),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"input",28),e.bIt("blur",function(){return i.eBV(p),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["Year","Year"])))}),e.k0s()()()(),e.j41(38,"div",29),e.nVh(39,$e,12,10,"mat-form-field",30),e.k0s()()(),e.nVh(40,Xe,4,6,"div",31),e.j41(41,"div",32),e.nrm(42,"app-control-validation-messages",33),e.k0s()()(),e.nVh(43,Ye,2,3,"section",34),e.nI1(44,"async"),e.j41(45,"div",35),e.nVh(46,ze,7,8,"mat-form-field",15),e.nVh(47,Je,1,4,"app-tax-number-control",36),e.nVh(48,Qe,7,9,"mat-form-field",15),e.k0s(),e.j41(49,"section",37)(50,"p",38),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"div",39),e.nVh(54,qe,4,4,"figure",40),e.j41(55,"div",13),e.DNE(56,at,14,26,"div",41),e.nI1(57,"async"),e.nI1(58,"async"),e.k0s(),e.nVh(59,nt,2,3,"div",42),e.k0s()(),e.nVh(60,ot,7,8,"div",43),e.j41(61,"section",44)(62,"p",45),e.EFF(63),e.nI1(64,"translate"),e.k0s(),e.j41(65,"div",46),e.nrm(66,"label",47),e.j41(67,"span",48),e.EFF(68,"amountInput"),e.k0s(),e.j41(69,"mat-form-field",15)(70,"mat-label")(71,"span"),e.EFF(72),e.nI1(73,"translate"),e.k0s(),e.nVh(74,it,7,17,"span"),e.k0s(),e.j41(75,"input",49,1),e.nI1(77,"translate"),e.bIt("blur",function(){return i.eBV(p),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get("amount.amount")))}),e.k0s(),e.j41(78,"mat-error"),e.nrm(79,"app-control-validation-messages",20),e.k0s()()(),e.j41(80,"p",50),e.nVh(81,st,3,3,"span"),e.nVh(82,lt,5,10,"span"),e.k0s(),e.nrm(83,"p",51),e.nI1(84,"translate"),e.nI1(85,"safeHtml"),e.j41(86,"button",52),e.nVh(87,mt,3,4)(88,ct,1,0,"div",53),e.k0s()()(),e.j41(89,"div",54),e.nVh(90,ut,5,6,"button",55),e.nrm(91,"app-transfers-ps",56),e.k0s()()}if(2&a){let p;e.Y8G("formGroup",t.mainFormGroup)("ngClass",t.additionalFields?"c2c-form--comments flex-dir-column large-flex-dir-row":"c2c-form--home-page")("selectors","input.c2c-form__input")("disabledSelector","disable-autofocus"),e.R7$(2),e.Y8G("ngClass",t.additionalFields?"":"show-for-large-xl large-expand"),e.R7$(2),e.SpI(" ",e.bMT(5,79,"transfers.card-2-card.sender-card")," "),e.R7$(2),e.Y8G("ngSrc","https://cdn.easypay.ua/images/svg/circle-info-light-blue.svg")("alt",e.bMT(7,81,"shared.pay-tools.pay-amount.alt-info-about-comission"))("matTooltip",e.bMT(8,83,"transfers.card-2-card.tooltip.commission"))("matTooltipPosition","above")("matTooltipTouchGestures","on"),e.R7$(4),e.vxM(null!=t.cardFromInfo&&null!=t.cardFromInfo.bankInfo&&t.cardFromInfo.bankInfo.name?10:-1),e.R7$(5),e.JRh(e.bMT(16,85,"transfers.card-2-card.card-sender-label")),e.R7$(2),e.Y8G("errorStateMatcher",t.errorMatcher)("autocomplete",t.isAuth&&null!=t.instrumentsList&&t.instrumentsList.length?"off":"section-sender cc-number")("name",t.nameCardFrom)("formControl",t.mainFormGroup.get(e.lJ4(109,B)))("readOnly","RCard"===(null==t.card2CardFlow.cardFrom?null:t.card2CardFlow.cardFrom.instrumentType)&&t.isAuth)("textMask",null==t.mask?null:t.mask.cardMask)("Pan",t.mainFormGroup.get(e.lJ4(110,B)).value),e.R7$(3),e.vxM(t.mainFormGroup.get(e.lJ4(111,B)).value&&t.isCardFromActive?20:-1),e.R7$(2),e.Y8G("mainForm",t.mainFormGroup.get("cardFrom"))("formErrors",t.formErrors)("fieldName","cardFrom"),e.R7$(),e.vxM(t.isAuth?23:-1),e.R7$(2),e.Y8G("ngClass",e.eq3(112,L,"RCard"===(null==t.card2CardFlow.cardFrom?null:t.card2CardFlow.cardFrom.instrumentType))),e.R7$(4),e.JRh(e.bMT(30,87,"shared.month")),e.R7$(2),e.Y8G("textMask",null==t.mask?null:t.mask.dayOfMonthMask)("errorStateMatcher",t.errorMatcher)("maxlength",2)("max-value",12)("formControl",t.mainFormGroup.get(e.lJ4(114,z))),e.R7$(4),e.JRh(e.bMT(36,89,"shared.year")),e.R7$(2),e.Y8G("textMask",null==t.mask?null:t.mask.dayOfMonthMask)("errorStateMatcher",t.errorMatcher)("maxlength",2)("formControl",t.mainFormGroup.get(e.lJ4(115,ae))),e.R7$(2),e.vxM(t.showCvv?39:-1),e.R7$(),e.vxM(null!=t.cardFromInfo&&null!=t.cardFromInfo.userInfo&&t.cardFromInfo.userInfo.name?40:-1),e.R7$(2),e.Y8G("mainForm",t.mainFormGroup.get("Cvv"))("formErrors",t.formErrors)("fieldName","Cvv")("messageLabel","CVV"),e.R7$(),e.vxM(e.bMT(44,91,t.isAuth$)?43:-1),e.R7$(2),e.Y8G("ngClass",e.eq3(116,Q,!t.additionalFields)),e.R7$(),e.vxM(t.showPayerName&&t.isPayerNameEditable?46:-1),e.R7$(),e.vxM(t.showTaxNumber&&t.payerTaxNumberControl?47:-1),e.R7$(),e.vxM(t.additionalFields?48:-1),e.R7$(2),e.AVh("show-for-medium",!t.additionalFields),e.R7$(),e.JRh(e.bMT(52,93,"transfers.card-2-card.resepient-card")),e.R7$(3),e.vxM(null!=t.cardToInfo&&null!=t.cardToInfo.bankInfo&&t.cardToInfo.bankInfo.name?54:-1),e.R7$(2),e.Y8G("ngLet",e.l_i(118,de,e.bMT(57,95,t.filteredCards$),e.bMT(58,97,t.allCardsList$))),e.R7$(3),e.vxM(null!=t.cardToInfo&&null!=t.cardToInfo.userInfo&&t.cardToInfo.userInfo.name?59:-1),e.R7$(),e.vxM(null!=(p=t.mainFormGroup.get("recipientName.re
1cipientName"))&&p.enabled?60:-1),e.R7$(),e.AVh("show-for-large-xl",!t.additionalFields),e.R7$(2),e.JRh(e.bMT(64,99,"main.moneytransfer.payment.amount")),e.R7$(8),e.AVh("hide-for-medium",t.currentAmountsListItem),e.R7$(),e.SpI(" ",e.bMT(73,101,"main.moneytransfer.payment.amount")," "),e.R7$(2),e.vxM(t.currentAmountsListItem?74:-1),e.R7$(),e.Y8G("id","amountInput")("name",t.uniqNameAmount)("placeholder","0.00 "+e.bMT(77,103,"shared.amount.currency"))("formControl",t.mainFormGroup.get("amount.amount"))("errorStateMatcher",t.errorMatcher)("textMask",null==t.mask?null:t.mask.decimalMask),e.R7$(4),e.Y8G("mainForm",t.mainFormGroup.get("amount"))("formErrors",t.formErrors)("fieldName","amount"),e.R7$(2),e.vxM(!t.showCommission||t.mainFormGroup.get("amount.amount").invalid?81:-1),e.R7$(),e.vxM(t.showCommission&&t.mainFormGroup.get("amount.amount").valid?82:-1),e.R7$(),e.Y8G("innerHtml",e.bMT(85,107,e.bMT(84,105,"transfers.card-2-card.deal-description")),e.npT),e.R7$(3),e.Y8G("ngClass",t.btnUniqueName),e.BMQ("id",t.btnUniqueName),e.R7$(),e.vxM(t.showInnerLoader?88:87),e.R7$(2),e.Y8G("ngClass",e.eq3(121,xe,!t.additionalFields)),e.R7$(),e.vxM(t.additionalFields?-1:90)}},dependencies:[re.YU,re.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.tU,d.R_,d.l_,d.j4,we.r,ve.I,Se.z,ue.j,Ne.k,Ce.w,De.N,ge.fn,Re.g,Ve.M,se.j,se.M,se.b,se.g,le.fg,Ae.An,Pe.kt,U.So,J.f,X.e,o.$,m.D,re.Jj,re.P9,re.QX,K.D9,_.$],styles:['.ps-logo{display:none}.tool-tip{position:relative;cursor:help}.tool-tip:after{content:"";width:36px;height:40px;position:absolute;transform:translate3d(-24px,-14px,0)}.tool-tip-text{padding:0}.tool-tip_infoicon{width:14px;padding:0 10px;box-sizing:content-box}.tool-tip_infotext{position:absolute;visibility:hidden;left:auto;right:-102px;bottom:29px;width:220px;padding:10px 16px;border-radius:5px;background-color:#fff;box-shadow:0 0 12px #d6dceecf;font-size:1rem}.tool-tip:hover .tool-tip_infotext{visibility:visible}.tool-tip_infotext:after{content:"";position:absolute;width:13px;height:13px;left:50%;bottom:-6px;background-color:#fff;transform:translate(-50%) rotate(45deg);box-shadow:5px 5px 9px -1px #0000001f}.tool-tip_infotext a{color:#1f83fe;text-decoration:underline;font-weight:400}@media (max-width: 639.8px){.tool-tip_infotext{right:-185px}.tool-tip_infotext:after{left:26px}}.cvv__link{position:relative;align-self:baseline;font-weight:400;line-height:1.2;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.cvv__link:hover,.cvv__link:focus{cursor:help;text-decoration:underline}.cvv__link:hover .cvv__img,.cvv__link:hover .cvv__info-text,.cvv__link:focus .cvv__img,.cvv__link:focus .cvv__info-text{display:block;cursor:default}.cvv__img,.cvv__info-text{position:absolute;display:none;right:-70px;width:280px;max-width:280px;z-index:50}@media only screen and (min-width: 640px){.cvv__img,.cvv__info-text{right:-30px}}.cvv__img{bottom:-193px}.cvv__info-text{bottom:-52px;color:#4b4e56;padding:16px 32px 0;font-size:13px;line-height:1.2;text-align:left}.cvv__title{white-space:nowrap}@media only screen and (min-width: 507px){.profile-cards_back .cvv__img{bottom:-225px}.profile-cards_back .cvv__info-text{bottom:-85px}}.tool-select-box .tool-select .dropdown-item{padding:12px 8px;margin:0}.tool-select-box .tool-select .dropdown-item__details{display:flex;flex-wrap:wrap;align-items:flex-end;font-size:13px;line-height:15px;color:#202020}@media only screen and (min-width: 640px){.tool-select-box .tool-select .dropdown-item__details{align-items:center}}.tool-select-box .tool-select .dropdown-item__name{flex:0 0 100%;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}@media only screen and (min-width: 640px){.tool-select-box .tool-select .dropdown-item__name{flex:1 0 auto;max-width:calc(100% - 94px);padding-right:10px}}.tool-select-box .tool-select .dropdown-item__bank{flex:0 0 20px;height:20px;margin-right:8px}@media only screen and (min-width: 640px){.tool-select-box .tool-select .dropdown-item__bank{margin:0 0 0 8px;order:1}}.tool-select-box .tool-select .dropdown-item__bank img{max-width:20px;max-height:20px}.tool-select-box .tool-select .dropdown-item__line{flex:1 1 auto;height:1px;background:url(https://cdn.easypay.ua/images/svg/dotted-line.svg) left bottom}@media only screen and (min-width: 640px){.tool-select-box .tool-select .dropdown-item__line{display:none}}.tool-select-box .tool-select .dropdown-item__pan{flex:1 0 58px;max-width:58px;margin-left:8px;overflow:hidden;white-space:nowrap}.c2c-form__navigation-btn,.c2c-form__payment-button{font-size:15px;font-weight:400;color:#f6fbff;border-radius:5px;transition:.3s;
1cursor:pointer}@media only screen and (max-width: 1279.8px){.show-for-large-xl{display:none!important}}@media only screen and (min-width: 1280px){.hide-for-large-xl{display:none!important}}.c2c-form.c2c-form--comments{display:block}@media (max-width: 639.8px){.c2c-form.c2c-form--comments{max-width:337px;margin-left:auto;margin-right:auto}}@media only screen and (min-width: 1024px){.c2c-form.c2c-form--comments{max-width:990px;margin:0 auto}}@supports (padding: clamp(0px,5%,20px)){.c2c-form.c2c-form--comments{max-width:none;margin:0}}.c2c-form .field-error{color:#e8242b;padding-top:0}.c2c-form .c2c-cvv-validation .field-error{text-overflow:ellipsis;overflow:hidden;font-size:12px}.c2c-form__title{width:100%;font-size:18px;line-height:21px;font-weight:500}@media (max-width: 639.8px){.c2c-form__input{font-size:13px}}.c2c-form__input{font-size:18px;font-weight:400;line-height:21px;color:#202020;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;-webkit-appearance:textfield;appearance:textfield}.c2c-form__input::placeholder{font-size:15px;color:#82828280}.c2c-form__input[readonly]{background-color:transparent}.c2c-form__input.c2c-amount{width:100%;height:44px;margin-bottom:4px;padding:0 10px;border:1px solid #ccc;border-radius:5px;background:#fff;color:#202020}.c2c-form__input.c2c-amount.error{border-color:#e8242b}.c2c-form__input.c2c-amount::placeholder{font-size:18px;opacity:1}.c2c-form__input.card__number{padding-right:27px;box-sizing:border-box;background-repeat:no-repeat}.c2c-form__input.card__number.ms,.c2c-form__input.card__number.visa,.c2c-form__input.card__number.prostir{background-image:none;padding-right:80px}.c2c-form__input.card__number.ms+.ps-logo,.c2c-form__input.card__number.visa+.ps-logo,.c2c-form__input.card__number.prostir+.ps-logo{display:block}.c2c-form__input.card__number.ms+.ps-logo{background-image:url(https://cdn.easypay.ua/images/svg/ps-mc-small.svg);background-repeat:no-repeat;background-size:contain;height:19px;width:25px;right:30px;top:50%;transform:translateY(-50%)}.c2c-form__input.card__number.visa+.ps-logo{background-image:url(https://cdn.easypay.ua/images/cards/visa-blue.svg);background-repeat:no-repeat;background-size:contain;height:14px;width:43px;right:30px;top:50%;transform:translateY(-50%)}.c2c-form__input.card__number.prostir+.ps-logo{background-image:url(https://cdn.easypay.ua/images/cards/logo_prostir.svg);background-repeat:no-repeat;background-size:contain;height:10px;width:53px;right:25px;top:50%;transform:translateY(-50%)}@media screen and (max-width: 639.8px){.c2c-form__input.card__number.prostir+.ps-logo{right:18px}}.c2c-form__input.card__number--search{background-image:none}.c2c-form__input.card__number--search::-webkit-search-cancel-button{-webkit-appearance:none}.save-card-and-description{-ms-grid-row:5;-ms-grid-column:1;grid-area:save-card}.cards-wrapper{width:100%;display:grid;grid-template-areas:"sender " "phone" "save-card" "recipient" "recipient-name" "payment";grid-gap:8px;grid-template-columns:1fr;grid-template-rows:repeat(5,auto)}@media only screen and (min-width: 640px){.cards-wrapper{grid-template-areas:"sender    phone" "sender    save-card" "recipient payment" "recipient-name .";grid-gap:16px;grid-template-columns:337px minmax(220px,337px);grid-template-rows:auto 24px auto}.save-card-and-description{-ms-grid-row:3;-ms-grid-column:3}}@media only screen and (min-width: 1024px){.cards-wrapper{justify-content:space-between;grid-template-areas:"sender    payment recipient" "phone     .       recipient-name" "save-card .       .";grid-gap:16px;grid-template-columns:337px minmax(130px,280px) 337px;grid-template-rows:repeat(3,auto)}.save-card-and-description{-ms-grid-row:5;-ms-grid-column:1}}.c2c-form--home-page .cards-wrapper{width:calc(100% - 60px)}@media only screen and (max-width: 1279.8px){.c2c-form--home-page .cards-wrapper{display:block}}@media only screen and (min-width: 640px) and (max-width: 1279.8px){.c2c-form--home-page .cards-wrapper{width:337px}}@media only screen and (min-width: 1280px){.c2c-form--home-page .cards-wrapper{width:100%;justify-content:space-between}}@media (max-width: 639.8px){.c2c-form--comments .cards-wrapper{max-width:337px;margin:0 auto}}.card-container{padding:0}@media only screen and (min-width: 1024px){.card-container{flex:0 0 337px}}.card-container--sender{-ms-grid-row:1;-ms-grid-column:1;grid-area:sender}.card-container--recipient{-ms-grid-row:7;-ms-grid-column:1;grid-area:recipient}.card-view{z-index:1;width:100%}@media only screen and (min-width: 640px){.c2c-form--home-page .card-view{max-width:337px;height:206px;padding:56px 16px 16px;box-shadow:0 0 10px #0000000d;border:1px solid #E2E2E2;border-radius:5px}}.c2c-form--comments .card-view{max-width:337px;height:206px;padding:56px 16px 16px;box-shadow:0 0 10px #0000000d;border:1px solid #E2E2E2;border-radius:5px}.card-view__inner{max-width:287px}@media (max-width: 639.8px){.c2c-form--home-page .card-container--recipient .card-view__inner{max-width:none}}
1.card-sender{background:linear-gradient(110.42deg,#fbedf1e6 2.17%,#f5f3f8e6 30.58%,#f9f9f9e6 54.01%,#f5f3f8e6 76.43%,#fbedf1e6)}.card-recipient{background:linear-gradient(110.42deg,#eff9f3e6 2.17%,#fbfaf8e6 30.58%,#f5f8fce6 54.01%,#fbfaf8e6 81.53%,#eff9f3e6)}@media (max-width: 639.8px){.c2c-form--home-page .card-recipient{background:none}}.c2c-form__card-owner,.c2c-cvv-validation{position:absolute;top:auto;bottom:8px;white-space:nowrap;overflow:hidden;max-width:337px;width:100%;padding:0 16px;left:0}.c2c-form__card-owner{font-weight:400;font-size:15px;line-height:1.4;color:#4b4e56;text-overflow:ellipsis}.c2c-form__card-owner.owner-position{padding-right:81px;bottom:28px}.c2c-form__card-owner-info-btn{margin-left:8px}.c2c-form__card-owner-info-icon{width:16px;height:16px}.c2c-form__bank-emitent{position:absolute;top:12px;display:flex;justify-content:flex-start;align-items:flex-end;height:20px;line-height:20px;overflow:hidden;max-width:100%;width:calc(100% - 32px)}.c2c-form__bank-emitent img{max-height:100%;margin-right:10px}.c2c-form__bank-emitent figcaption{max-width:calc(100% - 32px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-expire{width:113px}.card-expire__year,.card-expire__month,.card-cvv{width:43px}.card-cvv .text-security{font-display:swap;font-family:text-security-disc,sans-serif!important;padding:0 10px}@supports (text-align: -webkit-center) or (text-align: -moz-center){.card-cvv .text-security{text-align:center;padding:0}}.card-cvv .text-security::placeholder{font-family:Roboto Flex,Roboto,sans-serif}@media only screen and (min-width: 640px) and (max-width: 1023.8px){.c2c-form--comments .card-container--recipient,.c2c-form--comments .c2c-form__payment-container{margin-top:34px}}.card-cvv__tooltip{display:none;position:absolute;right:15px;top:58px;background-color:#fff;flex-direction:column;padding:10px;box-shadow:0 0 12px #d6dceecf;border-radius:5px;transform:scale(1.33);cursor:initial}.card-cvv__tooltip:before{content:"";position:absolute;height:12px;width:12px;background-color:#fff;transform:rotate(45deg);top:-6px;right:22px;border-radius:2px}.card-cvv__tooltip-text{font-weight:400;white-space:initial;font-size:13px;line-height:15px;color:#202020}.card-cvv__tooltip-img{margin-top:10px;height:130px;width:276px;max-width:276px}.card-cvv__help{text-decoration:none;color:#1f83fe}.card-cvv__help:hover,.card-cvv__help:focus{text-decoration:none}.card-cvv__help:hover .card-cvv__tooltip,.card-cvv__help:focus .card-cvv__tooltip{display:inline-flex}.c2c-additional{-ms-grid-row:3;-ms-grid-column:1;grid-area:phone}@media only screen and (min-width: 640px) and (max-width: 1023.8px){.c2c-additional{padding-top:35px}}.recipient-name{-ms-grid-row:9;-ms-grid-column:1;grid-area:recipient-name}.recipient-name__descr{font-size:11px;line-height:1.5}@media only screen and (min-width: 640px) and (max-width: 1279.8px){.recipient-name--home-page{margin-top:20px}}.c2c-form__payment-container{-ms-grid-row:11;-ms-grid-column:1;padding:0;grid-area:payment}@media only screen and (min-width: 640px){.card-container--sender{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:1}.card-container--recipient{-ms-grid-row:5;-ms-grid-column:1}.c2c-additional{-ms-grid-row:1;-ms-grid-column:3}.recipient-name{-ms-grid-row:7;-ms-grid-column:1}.c2c-form__payment-container{-ms-grid-row:5;-ms-grid-column:3}}@media only screen and (min-width: 1024px){.card-container--sender{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:1}.card-container--recipient{-ms-grid-row:1;-ms-grid-column:5}.c2c-additional{-ms-grid-row:3;-ms-grid-column:1}.recipient-name{-ms-grid-row:3;-ms-grid-column:5}.c2c-form__payment-container{-ms-grid-row:1;-ms-grid-column:3}}@media (max-width: 639.8px){.c2c-form__payment-container{margin-top:24px}}@media only screen and (min-width: 1024px){.c2c-form__payment-container{max-width:230px;margin:0 auto}}.c2c-form__payment-commis{width:100%;margin:0 0 16px;color:#2b4d5f;font-weight:400}@media only screen and (min-width: 640px){.c2c-form__payment-commis{margin:10px 0 46px}}.field_description{min-height:28px;font-size:11px;line-height:1.3}.c2c-form__payment-button{position:relative;height:50px;width:100%;padding:0 4px;margin:12px 0 0;background:#33aa54;box-shadow:0 8px 20px #33aa5552;cursor:pointer}.c2c-form__payment-button:hover,.c2c-form__payment-button:focus{background-color:#229441}.c2c-form__payment-button:disabled{cursor:not-allowed;opacity:.5}@media only screen and (min-width: 640px){.c2c-form__payment-button,.c2c-form__payment-button.mat-ripple{position:absolute;bottom:0}}.c2c-form__payment-button span{line-height:1.3}.c2c-form__deal{margin:16px 10px 12px;font-size:10px;line-height:1.4;text-align:center}.c2c-form__deal a{text-decoration:underline;text-underline-offset:2px}@media only screen and (min-width: 640px){.c2c-form__deal{margin:0;transform:translateY(-100%)}}.tool-dropdown--home.tool-select{padding:0;top:45px;width:100%;right:auto}.tool-dropdown--home.tool-select .dropdown-item:after{right:2px}@media only screen and (min-width: 640px) and (max-width: 1279.8px){.ps-and-nav__container{padding-left:16px}}@media only screen and (min-width: 1280px){.ps-and-nav__container{width:100%;flex-basis:100%}}.c2c-form__navigation-btn{position:absolute;top:0;right:0;height:44px;width:44px;line-height:15px;background-color:#1f83fe;background-image:url(https://cdn.easypay.ua/images/svg/top-up-arrow.svg);background-repeat:no-repeat;background-position:center;box-shadow:0 8px 20px #5b88f152}.c2c-form__navigation-btn:focus,.c2c-form__navigation-btn:hover{background-color:#0169e9}.c2c-form__navigation-btn:disabled{cursor:not-allowed;opacity:.5;background-color:#1f83fe}@media only screen and (min-width: 640px){.c2c-form__navigation-btn{width:100%;background-image:none;position:static}}\n',".c2c-home .card-container .mat-form-field-appearance-outline .mat-mdc-form-field-bottom-align:not(.mat-mdc-form-field-subscript-dynamic-size){min-height:20px}.c2c-home .card-container .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding:0 12px}.c2c-home .card-container .card-pan__container .mat-mdc-form-field-icon-suffix{position:absolute;top:50%;transform:translateY(-50%);right:6px;color:#1f83fe;height:24px}@media only screen and (min-width: 640px){.c2c-home .card-container .card-pan__container .mat-mdc-form-field-icon-suffix{right:11px}}
1.c2c-home .card-expire .mat-mdc-form-field-infix,.c2c-home .card-cvv .mat-mdc-form-field-infix{padding:17px 0 6px}.c2c-home .card-expire .mdc-text-field__input,.c2c-home .card-cvv .mdc-text-field__input{font-size:15px;line-height:17px;text-align:center}.c2c-home .card-expire .mdc-floating-label,.c2c-home .card-cvv .mdc-floating-label{font-size:17px;line-height:20px;font-weight:300}.c2c-home .card-expire .mdc-text-field--filled .mdc-line-ripple:after,.c2c-home .card-cvv .mdc-text-field--filled .mdc-line-ripple:after{border-bottom-width:1px}.c2c-home .card-expire .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.c2c-home .card-cvv .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:#4b4e5680}.c2c-home .card-expire .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label,.c2c-home .card-cvv .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:#e8242b80}.c2c-home .card-expire .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label,.c2c-home .card-cvv .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#1f83fe}.c2c-home .card-cvv .mdc-floating-label,.c2c-home .card-cvv .mdc-text-field{overflow:visible}\n"],encapsulation:2}),M})()},40950:(G,E,r)=>{r.d(E,{g:()=>C});var e=r(59452),i=r(71399),d=r(12481),c=r(85240);let C=(()=>{var f;class y extends i.K{checkPayment(b){return(0,e.of)(null)}createPayment(b){return super.transfer(b)}}return(f=y).\u0275fac=(()=>{let v;return function(x){return(v||(v=d.xGo(f)))(x||f)}})(),f.\u0275prov=c.jDH({token:f,factory:f.\u0275fac}),y})()},43390:(G,E,r)=>{r.d(E,{H:()=>Ae});var e=r(81437),i=r(12481),d=r(85240),c=r(34456),C=r(2145),f=r(11249),y=r(52575),v=r(91817),b=r(18473),x=r(15602),T=r(50819),F=r(82645),g=r(32384),h=r(91687),u=r(20310);const s=(0,g.L)(U=>function(X=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=X});function R(U){throw new s(U)}var w=r(63617),O=r(40950),W=r(68010),q=r(69120),ie=r(51098),me=r(5049),D=r(24331),Y=r(39036),I=r(9496),H=r(25200),V=r(64976),Z=r(48700),Ee=r(28732),ee=r(60537),ce=r(40498);class Ie extends ce.K{constructor(J,X,o,m,_,P){super(o,m),this.showCommission=J,this.card2CardFlow=X,this.mainFormGroup=o,this.showPaymentTools=m,this.templateId=_,this.transactionId=P,this.templateId=_??void 0,this.transactionId=P??void 0}}var te=r(6542),K=r(1522),_e=r(19838),Me=r(81235),re=r(92513),Pe=r(82982),we=r(5536),ve=r(2061),Se=r(67588),ue=r(92231),Ne=r(32883),Ce=r(57073),De=r(54052),ge=r(98509),Re=r(48503),Ve=r(26751);const se=["errorBlock"],le=(0,i.zw6)("card2CardServiceKey");let Ae=(()=>{var U;class J extends e.r{constructor(o,m,_,P,j,A,k,B,L,z,ae,Q,de,xe,ye,be,Fe,pe,he,fe,Te){super(j,_,A,k,B,L,z,ae,m,Q,o,de,xe,ye,be,Fe,fe,Te,pe),this.router=m,this.card2CardPaymentFlowService=_,this.formBuilder=P,this.authService=j,this.paymentService=A,this.paymentHandlerService=k,this.serviceMenuService=B,this.publicService=L,this.translateService=z,this.templatesService=ae,this.activatedRoute=Q,this.localize=de,this.historyService=xe,this.loaderService=ye,this.esPayPaymentFormProvider=be,this.returnUrlService=Fe,this.userDataService=pe,this.state=he,this.ecomService=fe,this.ngZone=Te,this.changeBreadcrumbs=!1,this.card2CardFlow=new ee.v,this.paymentData=new ee.v,this.instrumentsList=[],this.amountsList=[],this.showCommission=!1,this.showInnerLoader=!1,this.additionalFields=!1,this.disableTitleChange=!1,this.scrollToTopOnError=!0,this.c2cExtraParams=null,this.formFilled=!1,this.formSubscriptions=[],this.appConfigService=(0,d.WQX)(Se.R),this.showPayerName=!1,this.showTaxNumber=!1,this.payerNameValidation=(0,d.WQX)(ue.p),this.taxNumberValidation=(0,d.WQX)(Ne.$Y),this.paymentService.errorAnnounced$.pipe((0,f.v)(()=>this.alive)).subscribe(Ge=>{this.setFormErrors(Ge?.error?.fieldErrors,this.mainFormGroup)})}ngOnInit(){this.setMultiCheck(),this.initForms(),this.initPayerFullNameValidator(),this.initPayerTaxNumberValidator(),this.initFormErrors(),this.createFieldsValidationMessages(),this.get
1ServiceInfo(),this.externalAuthEventSubscription()}onValueChanged(o){this.isPrevPaymentFailed?this.formFilled&&(this.isPrevPaymentFailed=!1,this.formFilled=!1,this.error.isNoErrors=!0,super.onValueChanged(o)):super.onValueChanged(o)}createFormSubscriptions(){this.unsubscribeAll();const o=[this.paymentHandlerService.getFormControl(this.mainFormGroup,"Month").valueChanges,this.paymentHandlerService.getFormControl(this.mainFormGroup,"Year").valueChanges,this.paymentHandlerService.getFormControl(this.mainFormGroup,"Cvv").valueChanges,this.paymentHandlerService.getFormControl(this.mainFormGroup,"savecard").valueChanges];this.additionalFields&&o.push(this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerPhone").valueChanges),this.formSubscriptions.push((0,w.h)(...o).pipe((0,f.v)(()=>this.alive)).subscribe(()=>{this.onValueChanged(this.mainFormGroup)}));const m=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),_=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo"),P=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");this.formSubscriptions.push((0,w.h)(m.valueChanges,_.valueChanges).pipe((0,f.v)(()=>this.alive),(0,y.B)(800),(0,v.F)()).subscribe(()=>{this.setAmountValidation(),this.runCalcCommission(),this.onValueChanged(this.mainFormGroup)})),this.formSubscriptions.push(P.valueChanges.pipe((0,f.v)(()=>this.alive),(0,v.F)(),(0,y.B)(800)).subscribe(()=>{this.runCalcCommission(),this.onValueChanged(this.mainFormGroup)}))}setConfirmCode(o,m){return o?.cardFrom&&(o.cardFrom.confirmCode=m),o}runCalcCommission(){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),m=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo"),_=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");o?.valid&&m?.valid&&_?.valid&&this.calculateCommission()}createCurrentFormData(){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Cvv");return o&&o.reset(),new Ie(this.showCommission,this.card2CardFlow,this.serializeForm(this.mainFormGroup),this.showPaymentTools,this.templateId??null,this.transactionId??null)}initFormData(o){const m=o.paymentForm;this.card2CardFlow=m.card2CardFlow,this.showCommission=m.showCommission,this.templateId=m?.templateId??this.templateId,this.transactionId=m?.transactionId??this.transactionId,this.deserializeForm(this.mainFormGroup,m.mainFormGroup)}onChangeAuthState(o,m){o||(this.card2CardFlow=new ee.v,this.mainFormGroup?.reset("",{emitEvent:m}),this.showPaymentTools=!1,this.showCommission=!1,this.templateId=this.transactionId=null,this.esPayPaymentFormProvider.clearCurrentFormData(),this.getInstruments())}onNonNavigatedOnAuth(){super.onNonNavigatedOnAuth(),this.getInstruments()}getInstruments(){this.card2CardPaymentFlowService.getInstruments(this.service?.buttonKey).pipe(function S(U,J){const{first:X,each:o,with:m=R,scheduler:_=J??b.E,meta:P=null}=(0,x.v)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==X&&null==o)throw new TypeError("No timeout provided.");return(0,T.N)((j,A)=>{let k,B,L=null,z=0;const ae=Q=>{B=(0,u.N)(A,_,()=>{try{k.unsubscribe(),(0,F.Tg)(m({meta:P,lastValue:L,seen:z})).subscribe(A)}catch(de){A.error(de)}},Q)};k=j.subscribe((0,h._)(A,Q=>{B?.unsubscribe(),z++,A.next(L=Q),o>0&&ae(o)},void 0,void 0,()=>{B?.closed||B?.unsubscribe(),L=null})),!z&&ae(null!=X?"number"==typeof X?X:+X-_.now():o)})}(15e3)).subscribe({next:o=>{this.amountsList=o.amounts,this.initPaymentInstrument(o.instruments),this.loaderService.finish()},error:o=>this.setError(o,!1)})}initPaymentInstrument(o){o&&(this.instrumentsList=this.setDropDownList(o)),this.initSelectedPaymentInstrument(),this.initCard2Card(),this.isPrevPaymentFailed||this.checkUserProfileData(),this.checkCardType("cardFrom"),this.checkCardType("cardTo"),this.setAmountValidation(),this.createFormSubscriptions()}initSelectedPaymentInstrument(){if(this.paymentService.selectedPaymentInstrument){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),{pan:m,instrumentId:_,instrumentType:P,cardGuid:j}=this.paymentService.selectedPaymentInstrument;_&&(this.card2CardFlow.cardFrom.instrumentId=_.toString(),this.card2CardFlow.cardFrom.instrumentType=P||null,this.card2CardFlow.cardFrom.panGuid=j||null,this.card2CardFlow.cardFrom.isPayerNameRequired=this.paymentService.selectedPaymentInstrument.isPayerNameRequired),m&&_&&(o?.setValue(m),o?.markAsTouched()),m&&j&&(o.parent.get(ve.o.FirstValue).setValue(m),o.parent.get(ve.o.FieldKey).setValue(j)),this.paymentService.selectedPaymentInstrument=null}}checkCardType(o){const m=this.instrumentsList.findIndex(P=>"Card"===P.value.instrumentType),_=this.instrumentsList[m].value.instrumentId;this.card2CardFlow||(this.card2CardFlow=new ee.v),this.card2CardFlow[o]&&"Card"===this.card2CardFlow[o].instrumentType&&this.card2CardFlow[o].instrumentId!==_&&(this.card2CardFlow[o].instrumentId=_)}setAmountValidation(){const o=this.card2CardFlow?.cardFrom?.instrumentType,m=this.card2CardFlow?.cardTo?.instrumentType;if(this.currentAmountsListItem=this.amountsList.find(({typeFrom:_,typeTo:P})=>_===o&&P===m),this.currentAmountsListItem){const _=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");_?.setValidators(c.k0.compose([c.k0.required,C.N.minNum(this.currentAmountsListItem.amountMin),c.k0.max(this.currentAmountsListItem.amountMax)])),_?.updateValueAndValidity(),this.translateService.get("validate-messages.minimal-value").subscribe(P=>{this.setBaseValidationMessages(P+this.currentAmountsListItem.amountMin.toFixed(2),"min","amount")}),this.translateService.get("validate-messages.maximum-value").subscribe(P=>{this.setBaseValidationMessages(P+this.currentAmountsListItem.amountMax.toFixed(2),"max","amount")})}}initStorageFormData(){const o=this.esPayPaymentFormProvider.getDefaultEsPayForm(),m=this.router.url.split("?")[0];this.authService.shouldRestoreData=!1,o&&!this.esPayPaymentFormProvider.isDataExpired(o?.saveDate)&&m===o.path.url&&(this.initFormData(o),this.esPayPaymentFormProvider.resultData&&this.setError(this.esPayPaymentFormProvider.resultData),this.calculateCommission()),this.esPayPaymentFormProvider.removeEsPayForm()}initFormErrors(){this.formErrors={cardFrom:new K.b,cardTo:new K.b,Month:new K.b,Year:new K.b,Cvv:new K.b,amount:new K.b,payerName:new K.b,payerTaxNumber:new K.b,recipientName:new K.b,ConfirmCode:new K.b,savecard:new K.b},this.additionalFields&&(this.formErrors.payerPhone=new K.b)}
1initForms(){const o=c.k0.compose([c.k0.required,c.k0.pattern(_e.D5.CARD_MASK),C.N.luhn()]),m=c.k0.compose([c.k0.required,this.payerNameValidation.getValidator(ue.w.card2CardPayer)]);this.mainFormGroup=this.formBuilder.group({cardFrom:this.paymentHandlerService.createFormControl("cardFrom","",o),cardTo:this.paymentHandlerService.createFormControl("cardTo","",o),Month:this.paymentHandlerService.createFormControl("Month","",c.k0.required),Year:this.paymentHandlerService.createFormControl("Year","",c.k0.required),Cvv:this.paymentHandlerService.createFormControl("Cvv","",c.k0.compose([c.k0.required,c.k0.minLength(3),c.k0.maxLength(3)])),amount:this.paymentHandlerService.createFormControl("amount","",null),payerName:this.paymentHandlerService.createFormControl("payerName",{disabled:!this.showPayerName,value:""},c.k0.required,"blur"),payerTaxNumber:this.paymentHandlerService.createFormControl("payerTaxNumber",{disabled:!this.showTaxNumber,value:""},null,"change"),recipientName:this.paymentHandlerService.createFormControl("recipientName",{disabled:!0,value:""},m,"blur"),savecard:this.paymentHandlerService.createFormControl("savecard",!1,c.k0.required),isRecipientCommission:this.paymentHandlerService.createFormControl("isRecipientCommission",!1,null)}),this.paymentHandlerService.getFormControl(this.mainFormGroup,"savecard")?.disable(),this.additionalFields&&this.createAdditionalFields()}initPayerFullNameValidator(){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerName");o&&this.payerNameValidation.attachValidator(o,ue.w.card2CardPayer)}initPayerTaxNumberValidator(){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerTaxNumber");o&&this.taxNumberValidation.attachValidators(o)}initExpireControls(){const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Year"),m=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Month");o&&o.setValidators(c.k0.compose([c.k0.required])),m&&o&&this.setMonthValidation(m,o)}setMonthValidation(o,m){o.setValidators(c.k0.compose([c.k0.max(12),c.k0.minLength(2),c.k0.required]))}getCurrentYear(){return(new Date).getFullYear().toString().substr(-2)}createAdditionalFields(){this.mainFormGroup.addControl("payerPhone",this.paymentHandlerService.createFormControl("payerPhone","",c.k0.pattern(_e.D5.PHONE_MASK_PATTERN)))}setDropDownList(o){const m=[];return o&&o.sort((_,P)=>_.priorityIndex-P.priorityIndex).map(_=>{"Card"===_.instrumentType?(_.isRequireCvv=!0,m.push({label:this.translateService.instant("shared.pay-tools.other-card-title"),value:_}),this.paymentHandlerService.getFormControl(this.mainFormGroup,"savecard")?.enable(),this.card2CardFlow.cardFrom||(this.card2CardFlow.cardFrom=new te.Z(_.instrumentId,_.instrumentType),this.card2CardFlow.cardFrom.isPayerNameRequired=_.isPayerNameRequired),this.card2CardFlow.cardTo||(this.card2CardFlow.cardTo=new te.Z(_.instrumentId,_.instrumentType))):"RCard"===_.instrumentType&&m.push({label:_.instrumentValue+" ("+_.alias+")",value:_})}),m}initUserCard(o){if(!this.card2CardFlow[o]){const m=this.instrumentsList.findIndex(P=>"Card"===P.value.instrumentType),_=this.instrumentsList[m].value;this.card2CardFlow[o]=new te.Z(_.instrumentId,_.instrumentType),"cardFrom"===o&&(this.card2CardFlow.cardFrom.isPayerNameRequired=_.isPayerNameRequired)}}calculateCommission(){this.card2CardFlow=this.buildCard2CardFlow(!1),this.postCalcCommission(this.card2CardFlow)}buildCardFrom(){this.initUserCard("cardFrom");const o=this.card2CardFlow.cardFrom.instrumentType,m=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardFrom"),_=m?this.removeSpecialCharacters(m.value):"",P=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Month"),j=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Year"),A=this.paymentHandlerService.getFormControl(this.mainFormGroup,"Cvv"),k=this.paymentHandlerService.getFormControl(this.mainFormGroup,"savecard"),B=new te.Z(this.card2CardFlow.cardFrom.instrumentId,o,this.paymentHandlerService.getFormControlFieldKey(this.mainFormGroup,"cardFrom",_),"Card"===o?_:null,"Card"===o&&P&&j?`${P.value}/${j.value}`:null,A?A.value:null,this.authService.isLoggedIn()&&k&&k.enabled&&k.value);return B.isPayerNameRequired=this.card2CardFlow.cardFrom.isPayerNameRequired,B}buildCardTo(){this.initUserCard("cardTo");const o=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo"),m=o?this.removeSpecialCharacters(o.value):"",_=this.paymentHandlerService.getFormControl(this.mainFormGroup,"recipientName"),P=new te.Z(this.card2CardFlow.cardTo.instrumentId,this.card2CardFlow.cardTo.instrumentType,this.paymentHandlerService.getFormControlFieldKey(this.mainFormGroup,"cardTo",m),m,null,null,null,null);return _?.enabled&&(P.fullName=_.value??null),P}buildCard2CardFlow(o,m){return new ee.v(this.buildCardFrom(),this.buildCardTo(),this.service.buttonKey,(()=>{const L=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");let z=L?(0,re.R)(L.value):null;return 0===z&&(z=null),z})(),o?this.referrerUrl:null,o?this.templateId:null,o?(()=>m?Number(m.commission):this.card2CardFlow.expectedCommission)():null,o?(()=>this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerName")?.value||null)():null,o?(()=>{const L=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerPhone");return L?this.removeSpecialCharacters(L.value):null})():null,o?(()=>{const L=this.paymentHandlerService.getFormControl(this.mainFormGroup,"isRecipientCommission");return L?.enabled?L.value:null})():null,o?(()=>{const L=this.paymentHandlerService.getFormControl(this.mainFormGroup,"payerTaxNumber");return(0,De.cR)(L)||null})():null)}getServiceInfo(){if(this.service)this.setServicesInfo(this.service);else if(this.state.hasKey(le)){const o=this.state.get(le,null);this.setServicesInfo(o),this.state.remove(le)}else{let o;this.state.onSerialize(le,()=>o),this.serviceMenuService.getMenuButtons(this.publicService.settings.defaultKeys.card2Card).subscribe(m=>{o=new we.y(m?.currentService),this.setServicesInfo(o)},()=>{this.setError(this.error,!1)})}}setServicesInfo(o){this.service=o,this.disableTitleChange||this.publicService.updatePageTitleAndDescription(this.service.webData.pageTitle,this.service.webData.pageDescription),this.additionalFields&&this.ecomViewItem(),this.isBrowser&&(this.emitTransfersProductClicks(this.service),this.getInstruments())}initCard2Card(){this.esPayPaymentFormProvider.isCurrentFormData()?this.initCurrentFormData():this.isPrevPaymentFailed||this.authService.shouldRestoreData?this.initStorageFormData():this.templateId?this.populateFormByTemplate():this.transactionId&&this.populateFormByTransaction()}postCalcCommission(o){this.showCommission=!1,this.showInnerLoader=!0,this.card2CardPaymentFlowService.calcCommission(o).pipe((0,y.B)(4e3),(0,v.F)((m,_)=>m.Amount===_.Amount)).subscribe(m=>{this.showInnerLoader=!1,m?.hasOwnProperty("commission")&&this.checkRecipientCommissionAvailability(m.commission),this.card2CardFlow=this.buildCard2CardFlow(!0,m),m.error||(this.showCommission=!0),this.isPrevPaymentFailed&&(this.formFilled=!0)},m=>{this.showInnerLoader=!1,this.setFormErrors(m.error.fieldErrors,this.mainFormGroup),this.setError(m,this.scrollToTopOnError)})}checkRecipientCommissionAvailability(o){const m=this.mainFormGroup.get(["isRecipientCommission","isRecipientCommission"]);0===o?m.disable():m.enable()}createFieldsValidationMessages(){this.translateService.get("validate-messages.required").subscribe(o=>{this.setBaseValidationMessages(o,"required")}),this.translateService.get("validate-messages.required-fullname").subscribe(o=>{this.setBaseValidationMessages(o,"required",["payerName","recipientName"])}),this.translateService.get("validate-messages.minimal-length").subscribe(o=>{this.setBaseValidationMessages(o+3,"minlength","Cvv")}),this.translateService.get("validate-messages.maximum-length").subscribe(o=>{this.setBaseValidationMessages(o+3,"maxlength","Cvv")}),this.translateService.get("validate-messages.no-matched-card").subscribe(o=>{this.setBaseValidationMessages(o,"noMatchedContact","cardTo")}),this.translateService.get("validate-messages.no-selected-card").subscribe(o=>{this.setBaseValidationMessages(o,"noSelectedContact","cardTo")}),this.translateService.get("validate-messages.pattern").subscribe(o=>{this.setBaseValidationMessages(o,"pattern",["cardFrom","cardTo"])}),this.translateService.get("validate-messages.pattern-fullname").subscribe(o=>{this.setBaseValidationMessages(o,"pattern",["payerName","recipientName"])}),this.translateService.get("validate-messages.luhn-check").subscribe(o=>{this.setBaseValidationMessages(o,"luhnCheck",["cardFrom","cardTo"])}),this.translateService.get("validate-messages.invalid-fullname").subscribe(o=>{this.setBaseValidationMessages(o,"invalidName",["recipientName","payerName"])}),this.translateService.get(Ce.J.minLength).subscribe(o=>{this.setBaseValidationMessages(o,"minlength","payerTaxNumber")}
1),this.translateService.get(Ce.J.invalid).subscribe(o=>{this.setBaseValidationMessages(o,"taxNumberInvalid","payerTaxNumber"),this.setBaseValidationMessages(o,"pattern","payerTaxNumber")}),this.translateService.get("validate-messages.required").subscribe(o=>{this.setBaseValidationMessages(o,"required","payerTaxNumber")}),this.additionalFields&&(this.formErrors.payerPhone=new K.b,this.translateService.get("validate-messages.pattern").subscribe(o=>{this.setBaseValidationMessages(o,"pattern","payerPhone")}))}setFormErrors(o,m){o&&o.forEach(_=>{switch(_.fieldName){case"Pan":_.fieldName="cardFrom";break;case"CardTo.Pan":case"CardTo.InstrumentId":_.fieldName="cardTo";break;case"CardFrom.Cvv":_.fieldName="Cvv"}}),super.setFormErrors(o,m)}onSubmit(){this.paymentData=this.buildCard2CardFlow(!0),super.payment(this.mainFormGroup,this.paymentData,null,null,this.scrollToTopOnError)}onPaymentError(o,m,_,P,j,A=!0){switch(this.loaderService.resetLoader(),this.esPayPaymentFormProvider.removeEsPayForm(Me.c.FORM_DATA),o?.error?.errorCode){case"INVALID_MAIN_USER_ORDER":this.onInvalidMainUserOrderError(o,m,_,j,A);break;case"WALLET_LIMIT_EXCEEDED":case"INVALID_CONFIRM_CODE":this.setConfirmCodeState(!0,"Payment"),this.formErrors.ConfirmCode.valid=!1,this.formErrors.ConfirmCode.message=o.error.errorMessage;break;case"CONFIRM_CODE_FAILED_COUNT_LIMIT_EXCEEDED":this.setConfirmCodeState(!1,null),this.paymentService.announceError(o),this.setError(o,A);break;case"INVALID_PAYER_FINMON_DATA":{const k=this.mainFormGroup.get("payerName.payerName");k?.enable(),k?.markAsTouched();break}case"INVALID_RECIPIENT_FINMON_DATA":{const k=this.mainFormGroup.get("recipientName.recipientName");k?.enable(),k?.markAsTouched();break}case"USER_ORDER_NOT_FOUND":this.onUserNotFoundError(o,m,_,A);break;default:this.onDefaultPaymentError(o,_,A)}}confirm(o,m){this.formErrors.ConfirmCode.message="",this.paymentData.cardFrom.confirmCode=m,super.confirm(o,m,null,!0)}populateFormByTemplate(){this.templatesService.getById(this.templateId).subscribe(o=>{const m=o?.template;if(m)if(m.menuButton?.buttonKey===this.service.buttonKey){const _=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo");_&&(_.markAsTouched(),_.setValue(m.fields[0].fieldValue),this.paymentHandlerService.setFormControlAdditionalValues(this.mainFormGroup,"cardTo",m.fields[0].fieldValue,m.fields[0].fieldKey));const P=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");P?.setValue(m.amount),P?.markAsTouched()}else this.setError({error:{description:"Payment by template Error",errorMessage:"Different services: "+m.menuButton.buttonKey+" and "+this.service.buttonKey,fieldErrors:[]}})},o=>{this.setError(o)})}populateFormByTransaction(){this.historyService.getTransactionInfo(this.transactionId).subscribe(o=>{if(o){const{fields:m,amount:_}=o,{fieldValue:P,fieldKey:j}=m?.[0],A=this.paymentHandlerService.getFormControl(this.mainFormGroup,"cardTo"),k=this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount");A?.setValue(P),A?.markAsTouched(),this.paymentHandlerService.setFormControlAdditionalValues(this.mainFormGroup,"cardTo",P,j),k?.setValue(_),k?.markAsTouched()}},o=>{this.setError(o)})}unsubscribeAll(){this.formSubscriptions.forEach(o=>o.unsubscribe()),this.formSubscriptions=[]}}return(U=J).\u0275fac=function(o){return new(o||U)(i.rXU(i.Agw),i.rXU(ge.Ix),i.rXU(O.g),i.rXU(c.ze),i.rXU(W.u),i.rXU(q.W),i.rXU(ie.c),i.rXU(me.c),i.rXU(D.Z),i.rXU(Re.c$),i.rXU(Y.z),i.rXU(ge.nX),i.rXU(I.Q),i.rXU(H.k),i.rXU(Ve.Z),i.rXU(V.IQ),i.rXU(Z.l),i.rXU(Pe.J),i.rXU(i.pJN),i.rXU(Ee.K),i.rXU(i.SKi))},U.\u0275dir=i.FsC({type:U,viewQuery:function(o,m){if(1&o&&i.GBs(se,7),2&o){let _;i.mGM(_=i.lsd())&&(m.errorBlock=_.first)}},inputs:{changeBreadcrumbs:"changeBreadcrumbs"},features:[i.Vt3]}),J})()},44385:(G,E,r)=>{r.d(E,{f:()=>T});var e=r(12481),i=r(19838),d=r(60316),c=r(34722),C=r(85240),f=r(93683),y=r(60247);const v=F=>({display:F});function b(F,g){if(1&F&&e.nrm(0,"img",7),2&F){const h=e.XpG().$implicit,u=e.XpG();e.Y8G("src",u.bankLogoIconsPath+(null==h?null:h.bankLogo),e.B4B)("alt",(null==h?null:h.bankName)||"logo")}}function x(F,g){if(1&F){const h=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const s=C.eBV(h).$implicit,S=e.XpG();return C.Njj(S.onSelectCard(s))})("keydown.enter",function(){const s=C.eBV(h).$implicit,S=e.XpG();return C.Njj(S.itemNavigation?S.onSelectCard(s):null)})("keydown.esc",function(){C.eBV(h);const s=e.XpG();return C.Njj(s.itemNavigation?s.onEsc.emit():null)})("keydown",function(s){C.eBV(h);const S=e.XpG();return C.Njj(S.itemNavigation?S.onListArrowKeydown(s):null)}),e.j41(1,"div",4),e.nrm(2,"span",5),e.nI1(3,"safeHtml"),e.j41(4,"span",6),e.nVh(5,b,1,2,"img",7),e.k0s(),e.nrm(6,"span",8),e.j41(7,"span",9),e.EFF(8),e.k0s()()()}if(2&F){const h=g.$implicit,u=e.XpG();e.AVh("active",u.isActive(null==h?null:h.cardGuid)),e.R7$(2),e.Y8G("innerHTML",e.bMT(3,5,null==h?null:h.cardName),e.npT),e.R7$(3),e.vxM(null!=h&&h.bankLogo?5:-1),e.R7$(3),e.JRh(u.getCardValue(null==h?null:h.cardPan))}}let T=(()=>{var F;class g{constructor(u){this.platformId=u,this.userCards=[],this.isCardSelecting=!1,this.itemNavigation=!1,this.onCardChange=new e.bkB,this.onEsc=new e.bkB,this.isBrowser=(0,d.UE)(this.platformId),this.bankLogoIconsPath=i.D5.BANK_LOGO_ICONS_SMALL_PATH}getCardValue(u){return u?`****${u.slice(-4)}`:""}onSelectCard(u){this.onCardChange.next(u)}isActive(u){return u===this.selectedCardGuid}onListArrowKeydown(u){if(this.isBrowser&&u&&(u.keyCode===c.D.ArrowDown||u.keyCode===c.D.ArrowUp)){u.preventDefault();const s=u.target,S=u.keyCode===c.D.ArrowDown&&s.nextElementSibling?s.nextElementSibling:u.keyCode===c.D.ArrowUp&&s.previousElementSibling?s.previousElementSibling:s.parentNode[0];S&&S.focus()}}}return(F=g).\u0275fac=function(u){return new(u||F)(e.rXU(e.Agw))},F.\u0275cmp=e.VBU({type:F,selectors:[["app-autocomplete-user-card-list"]],inputs:{userCards:"userCards",selectedCardGuid:"selectedCardGuid",isCardSelecting:"isCardSelecting",itemNavigation:"itemNavigation"},outputs:{onCardChange:"onCardChange",onEsc:"onEsc"},standalone:!1,decls:4,vars:3,consts:[[1,"tool-select-box",3,"ngStyle"],[1,"dropdown","card-select","tool-select","tool-dropdown--home"],["tabindex","0",1,"dropdown-item",3,"active"],["tabindex","0",1,"dropdown-item",3,"click","keydown.enter","keydown.esc","keydown"],[1,"dropdown-item__details"],[1,"dropdown-item__name","tool-name","regular",3,"innerHTML"],[1,"dropdown-item__bank","tool-bank"],[3,"src","alt"],[1,"dropdown-item__line"],[1,"dropdown-item__pan"]],template:function(u,s){1&u&&(e.j41(0,"div",0)(1,"ul",1),e.Z7z(2,x,9,7,"li",2,e.fX1),e.k0s()()),2&u&&(e.Y8G("ngStyle",e.eq3(1,v,s.isCardSelecting?"block":"none")),e.R7$(2),e.Dyx(s.userCards))},dependencies:[f.B3,y.$],styles:[".tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{padding:12px 8px;margin:0}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-end;font-size:13px;line-height:15px;color:#202020}@media only screen and (min-width: 640px){.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__details[_ngcontent-%COMP%]{align-items:center}}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__name[_ngcontent-%COMP%]{flex:0 0 100%;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}@media only screen and (min-width: 640px){.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__name[_ngcontent-%COMP%]{flex:1 0 auto;max-width:calc(100% - 94px);padding-right:10px}}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__bank[_ngcontent-%COMP%]{flex:0 0 20px;height:20px;margin-right:8px}@media only screen and (min-width: 640px){.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__bank[_ngcontent-%COMP%]{margin:0 0 0 8px;order:1}}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__bank[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:20px;max-height:20px}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__line[_ngcontent-%COMP%]{flex:1 1 auto;height:1px;background:url(https://cdn.easypay.ua/images/svg/dotted-line.svg) left bottom}@media only screen and (min-width: 640px){.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__line[_ngcontent-%COMP%]{display:none}}.tool-select-box[_ngcontent-%COMP%]   .tool-select[_ngcontent-%COMP%]   .dropdown-item__pan[_ngcontent-%COMP%]{flex:1 0 58px;max-width:58px;margin-left:8px;overflow:hidden;white-space:nowrap}"]}),g})()},54052:(G,E,r)=>{function i(C){if(C?.enabled&&C?.valid)return function e(C){return C?.toString()?.replace(/\D/g,"")||void 0}(C.value)}function d(C,f){const y=C?.trim()||"",v=f?.trim();if(y||v)return v?{name:y,taxNumber:v}:{name:y}}function c(C,f){return d(C?.enabled&&C?.valid?C.value:void 0,i(f))}r.d(E,{K_:()=>c,cR:()=>i,to:()=>d})},55852:(G,E,r)=>{r.d(E,{I:()=>h});var e=r(93887),i=r(25004),d=r(99231),c=r(80769),C=r(32152),f=r(15456),y=r(79864),v=r(97024),b=r(2340),x=r(33589),T=r(8095),F=r(12481),g=r(85240);let h=(()=>{var u;class s{}return(u=s).\u0275fac=function(R){return new(R||u)},u.\u0275mod=F.$C({type:u}),u.\u0275inj=g.G2t({imports:[e.G,i.d,d.M,f.M,c.M,y.fS,C.m_,v.g7,b.Q,x.h,T.D]}),s})()},55975:(G,E,r)=>{r.d(E,{G:()=>y});var e=r(85240),i=r(12481),d=r(60316),c=r(81235),C=r(80318),f=r(6060);let y=(()=>{var v;class b{constructor(){this.sessionStateService=(0,e.WQX)(C.v),this.platformId=(0,e.WQX)(i.Agw),this.isBrowser=(0,d.UE)(this.platformId)}getTaxNumberData(){const T=this.sessionStateService.getToken(),F=T?(0,f.l)(T):null;if(F?.TaxNumber?.trim()&&"true"===F?.VerifiedUser?.toLowerCase())return{taxNumber:F.TaxNumber.trim(),source:"diia"};const g=this.getStoredTaxNumber();return g?{taxNumber:g,source:"local"}:{taxNumber:null,source:null}}getStoredTaxNumber(){return this.isBrowser&&localStorage.getItem(c.c.PAYER_TAX_NUMBER)?.trim()||null}saveTaxNumber(T){if(!this.isBrowser)return;const F=T?.trim();F&&localStorage.setItem(c.c.PAYER_TAX_NUMBER,F)}clearStoredTaxNumber(){this.isBrowser&&localStorage.removeItem(c.c.PAYER_TAX_NUMBER)}}return(v=b).\u0275fac=function(T){return new(T||v)},v.\u0275prov=e.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),b})()},57073:(G,E,r)=>{r.d(E,{J:()=>e});const e={label:"shared.pay-tools.taxNumber",tooltipRequired:"shared.pay-tools.taxNumber-tooltip-required",tooltipDiia:"shared.pay-tools.taxNumber-tooltip-diia",minLength:"shared.pay-tools.taxNumber-minlength",invali
1d:"shared.pay-tools.taxNumber-invalid",walletHint:"shared.pay-tools.taxNumber-wallet-hint"}},59551:(G,E,r)=>{r.d(E,{$:()=>c});var e=r(60316),i=r(48503),d=r(12481);let c=(()=>{var C;class f{}return(C=f).\u0275fac=function(v){return new(v||C)},C.\u0275cmp=d.VBU({type:C,selectors:[["app-transfers-ps"]],decls:7,vars:10,consts:[[1,"c2c-form__ps"],[1,"c2c-form__ps-container","flex-container","align-justify"],["width","57","height","17",3,"ngSrc","alt"],["width","97","height","17",3,"ngSrc","alt"],["width","80","height","30",3,"ngSrc","alt"]],template:function(v,b){1&v&&(d.j41(0,"div",0)(1,"div",1),d.nrm(2,"img",2),d.nI1(3,"translate"),d.nrm(4,"img",3),d.nI1(5,"translate"),d.nrm(6,"img",4),d.k0s()()),2&v&&(d.R7$(2),d.Y8G("ngSrc","https://cdn.easypay.ua/images/svg/psvisa.svg")("alt",d.bMT(3,6,"transfers.card-2-card.alt.visa2mastercard")),d.R7$(2),d.Y8G("ngSrc","https://cdn.easypay.ua/images/svg/psmastercard.svg")("alt",d.bMT(5,8,"transfers.card-2-card.alt.mastercard2visa")),d.R7$(2),d.Y8G("ngSrc","https://cdn.easypay.ua/images/svg/prostir.svg")("alt","\u041f\u0440\u043e\u0441\u0442\u0456\u0440"))},dependencies:[e.kt,i.D9],styles:[".c2c-form__ps[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:16px;padding-top:13px;border-top:1px solid #e1e4e6}@media (max-width: 639.8px){.c2c-form--home-page[_ngcontent-%COMP%]   .c2c-form__ps[_ngcontent-%COMP%]{margin-top:8px}}@media only screen and (min-width: 640px){.c2c-form__ps[_ngcontent-%COMP%]{padding-top:25px;margin-top:24px}}@media only screen and (min-width: 1024px){.c2c-form__ps[_ngcontent-%COMP%]{padding-top:16px}}.c2c-form__ps-container[_ngcontent-%COMP%]{align-items:center;max-width:290px;width:100%;max-height:25px;padding-top:8px}.c2c-form__ps[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{box-sizing:content-box}@media only screen and (min-width: 640px) and (max-width: 720px){.c2c-form__ps[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:14px}}"],changeDetection:0}),f})()},59997:(G,E,r)=>{r.d(E,{W:()=>b});var e=r(59452),i=r(70271),d=r(61318),c=r(80318),C=r(6060),f=r(69120),y=r(20233),v=r(85240);let b=(()=>{var x;class T{constructor(g,h){this.sessionStateService=g,this.paymentService=h}getPayerNameData(g){const h=this.sessionStateService.getToken(),u=h?(0,C.l)(h):null;if(u?.PayerName&&"true"===u?.VerifiedUser?.toLowerCase())return(0,e.of)({name:u.PayerName,source:"diia"});if(g.supportsCardholderInfo&&(g.pan||g.cardGuid)){const s=new y.k(g.pan,g.cardGuid);return this.paymentService.getCardHolderInfo(s).pipe((0,i.T)(S=>{const R=S?.holder;return R?.length?{name:R,source:"bank"}:this.getFallbackSource(g.holder,u?.PayerName,g.clientFullName)}),(0,d.W)(()=>(0,e.of)(this.getFallbackSource(g.holder,u?.PayerName,g.clientFullName))))}return(0,e.of)(this.getFallbackSource(g.holder,u?.PayerName,g.clientFullName))}getFallbackSource(g,h,u){return g?.trim()?{name:g.trim(),source:"token"}:h?{name:h,source:"token"}:u?.trim()?{name:u.trim(),source:null}:{name:null,source:null}}}return(x=T).\u0275fac=function(g){return new(g||x)(v.KVO(c.v),v.KVO(f.W))},x.\u0275prov=v.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),T})()},60537:(G,E,r)=>{r.d(E,{v:()=>i});var e=r(54052);class i{constructor(c,C,f,y,v,b,x,T,F,g,h){this.cardFrom=c,this.cardTo=C,this.serviceKey=f,this.amount=y,this.refererUrl=v,this.paymentTemplateId=b,this.expectedCommission=x,this.payerFullName=T,this.payerPhone=F,this.isRecipientCommission=g,this.payerTaxNumber=h,v?.length>0&&(this.refererUrl=v),null!==x&&(this.expectedCommission=x),this.payerData=(0,e.to)(T,h)}get Amount(){return Number(this.amount)}get toPay(){return this.isRecipientCommission?Number(this.Amount):Number(this.Amount)+Number(this.expectedCommission)}}},60695:(G,E,r)=>{r.d(E,{w:()=>v});var c,i=r(34722),d=r(12481),f=function(b,x){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(b,x)};class v{constructor(x){this.el=x}onKeyDown(x){if(x.keyCode>=48&&x.keyCode<=57||x.keyCode>=96&&x.keyCode<=105||x.keyCode===i.D.Enter){const T=[...this.el.nativeElement.querySelectorAll(this.selectors)].map((h,u)=>({index:u,item:h})),F=T.find(h=>h.item.id===x.target.id);let g;F&&!F.item.classList.contains("ng-invalid")&&(g=T.find(h=>h.index==F.index+1)),this.focusControl(g?.item,F?.item,x)}}focusControl(x,T,F){if(x&&x.id&&!x.hidden&&!x.disabled){const g=T.classList.contains("ng-invalid");x.id!==T.id&&!g&&T.id!==this.disabledSelector&&(F.preventDefault(),x.focus(),x.click(),T.blur())}}}(c=v).\u0275fac=function(x){return new(x||c)(d.rXU(d.aKT))},c.\u0275dir=d.FsC({type:c,selectors:[["","appFocusInput",""]],hostBindings:function(x,T){1&x&&d.bIt("keyup",function(g){return T.onKeyDown(g)})("paste",function(g){return T.onKeyDown(g)})},inputs:{selectors:"selectors",disabledSelector:"disabledSelector"},standalone:!1}
1),function(b,x,T,F){var u,g=arguments.length,h=g<3?x:null===F?F=Object.getOwnPropertyDescriptor(x,T):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(b,x,T,F);else for(var s=b.length-1;s>=0;s--)(u=b[s])&&(h=(g<3?u(h):g>3?u(x,T,h):u(x,T))||h);g>3&&h&&Object.defineProperty(x,T,h)}([function e(b=300){return function(x,T,F){let g=null;const h=F.value;return F.value=function(...u){clearTimeout(g),g=setTimeout(()=>h.apply(this,u),b)},F}}(800),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],v.prototype,"onKeyDown",null)},63390:(G,E,r)=>{r.d(E,{n:()=>e});class e{constructor(d,c,C,f,y){this.cardGuid=d,this.cardPan=c,this.cardName=C,this.bankName=f,this.bankLogo=y,this.kind="SavedCard"}}},64570:(G,E,r)=>{r.d(E,{j:()=>i});var e=r(12481);let i=(()=>{var d;class c{constructor(f,y){this._el=f,this.renderer2=y,this.prefix=""}ngOnChanges(f){this.resolvePaymentSystemType(f.Pan.currentValue)}resolvePaymentSystemType(f){let y=f?f.replace(/[^\d\*]/g,""):null,v=new RegExp("^4");v.test(y)?this.renderer2.addClass(this._el.nativeElement,this.prefix+"visa"):this.renderer2.removeClass(this._el.nativeElement,this.prefix+"visa"),v=new RegExp("^5[1-5]"),v.test(y)?this.renderer2.addClass(this._el.nativeElement,this.prefix+"ms"):this.renderer2.removeClass(this._el.nativeElement,this.prefix+"ms"),v=new RegExp("^9|626296"),v.test(y)?this.renderer2.addClass(this._el.nativeElement,this.prefix+"prostir"):this.renderer2.removeClass(this._el.nativeElement,this.prefix+"prostir")}}return(d=c).\u0275fac=function(f){return new(f||d)(e.rXU(e.aKT),e.rXU(e.sFG))},d.\u0275dir=e.FsC({type:d,selectors:[["","detect-card",""]],inputs:{Pan:"Pan",prefix:"prefix"},standalone:!1,features:[e.OA$]}),c})()},71399:(G,E,r)=>{r.d(E,{K:()=>F});var b,e=r(77919),i=r(43942),d=r(7488),c=r(61318),C=r(8947),f=r(28337),y=r(12481),v=r(85240),x=function(g,h,u,s){var w,S=arguments.length,R=S<3?h:null===s?s=Object.getOwnPropertyDescriptor(h,u):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(g,h,u,s);else for(var O=g.length-1;O>=0;O--)(w=g[O])&&(R=(S<3?w(R):S>3?w(h,u,R):w(h,u))||R);return S>3&&R&&Object.defineProperty(h,u,R),R},T=function(g,h){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(g,h)};class F extends d.F{calcCommission(h){return this.http.post(this.bindUrl("/card2Card/calcCommission"),JSON.stringify(h)).pipe((0,c.W)(this.handleError))}transfer(h){return this.http.post(this.bindUrl("/card2Card/transfer"),h).pipe((0,c.W)(this.handleError))}getInstruments(h){if((0,f.y)(h)){const u=this.createQueryParams({serviceKey:h});return this.http.get(this.bindUrl("/card2Card/instruments"),{params:u}).pipe((0,c.W)(this.handleError))}return(0,e.$)({errorMessage:"invalid service key"})}}(b=F).\u0275fac=(()=>{let g;return function(u){return(g||(g=y.xGo(b)))(u||b)}})(),b.\u0275prov=v.jDH({token:b,factory:b.\u0275fac}),x([(0,C.t)(),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",i.c)],F.prototype,"calcCommission",null),x([(0,C.t)(),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",i.c)],F.prototype,"transfer",null)}}]);
2//# sourceMappingURL=459.14d8f47c4fff7baa.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.