PageSourceSearch

https://easypay.ua/6001.22b53f47a21b1e83.js

js easypay.ua collected 2026-09-24 09:56:54 UTC 70,364 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[6001],{5536:(x,b,r)=>{r.d(b,{y:()=>l});class l{constructor(c){this.buttonId="",this.buttonType="PaymentService",this.buttonKey="",this.url="",this.icon="",this.iconAlt="",this.caption="",this.description="",this.frontTemplateKey="",this.enabled=!1,this.relinkingButtonKey="",this.labels=[],this.properties=[],this.isBasketAvailable=!1,this.isBotIndexable=!0,this.isTemplateAvailable=!1,this.isRecurrentAvailable=!1,this.isGroupTemplateAvailable=!1,this.webData={},this.providerInfoImage="",this.providerInfoPhone="",this.providerInfoLink="",this.providerInfoOffice="",this.providerInfoSupport="",this.providerInfoRating=null,this.providerInfoNumberMonthPayments=null,this.paymentServiceData={},this.widgetData={},this.additionalProperties={},Object.assign(this,c),this.additionalProperties={...this.additionalProperties,...this.fillAdditionalProperties},this.labelsMap=this.buildLabelsMap(c?.labels)}get fillAdditionalProperties(){return this.properties?.reduce((c,g)=>(c[g?.propertyName]=g?.propertyValue,c),{})}get isEqualMinMax(){return this.amountMin===this.amountMax}get amountMin(){return this.paymentServiceData?.amountMin}get amountMax(){return this.paymentServiceData?.amountMax}get isShowNarrative(){return"true"===this.additionalProperties?.IsShowNarrative?.toLowerCase()}get isWithoutAmount(){return"true"===this.additionalProperties?.WithoutAmount?.toLowerCase()||"true"==this.additionalProperties?.withoutAmount}get isNeedAccountInfo(){return"true"===this.additionalProperties?.AccountInfoCheck?.toLowerCase()||"true"==this.additionalProperties?.accountInfoCheck?.toLowerCase()}get isEmailToolsRequired(){return"true"===this.additionalProperties?.emailToolsRequired?.toLowerCase()}get isTaxNumberRequired(){return"true"===this.additionalProperties?.IsTaxNumberRequired?.toLowerCase()}buildLabelsMap(c){return new Map(c?.filter(g=>g?.labelValue)?.map(g=>[g.labelValue,g?.description??null]))}}},8947:(x,b,r)=>{function l(){return function(c,g,C){const v=C.value;return C.value=function(...P){return P.forEach(F=>{h(F)}),v.apply(this,P)},C}}function h(c){for(let g in c)c.hasOwnProperty(g)&&(null==c[g]||0===c[g].length?delete c[g]:"object"==typeof c[g]&&h.call(this,c[g]))}r.d(b,{t:()=>l})},11199:(x,b,r)=>{r.d(b,{T:()=>g});var l=r(93887),h=r(12481),c=r(85240);let g=(()=>{var C;class v{}return(C=v).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=c.G2t({imports:[l.G]}),v})()},12951:(x,b,r)=>{r.d(b,{A:()=>c});var l=r(93595),h=r(47309);function c(C,v,P){return(0,l.w)(P?.in||C,+(0,h.a)(C)+v)}},16929:(x,b,r)=>{r.d(b,{I:()=>P});var l=r(85240),h=r(12481),c=r(34456),g=r(60316),C=r(60809),v=r(19838);let P=(()=>{var F;class f{constructor(s,i,e,u){this._elementRef=s,this._renderer=i,this.document=e,this.platform_id=u,this._floatingPhoneMask=!1,this._authPhoneMask=!1,this._maskExpression="",this._decimalConstant="D",this._maskSpecialCharacters=["/","(",")",".",":","-"," ","+","3","8","0"],this._maskAvaliablePatterns={9:/\d/,$:/\d/,A:/[a-zA-Z0-9]/,B:/[a-zA-Z\u0410-\u042f\u0430-\u044f\u0401\u0451\u0407\u0457\u0406\u0456\u0404\u0454\u0490\u0491\d#?!@$%^&*\+-\s]/,C:/[0-9*]/,S:/[a-zA-Z]/},this._cursorMoveTimeout=10,this._disableChangeOnBlur=!1,this.isBrowser=(0,g.UE)(this.platform_id),this._onChange=_=>{},this._onTouch=()=>{},this.modelWithSpecialCharacters=!0,this._clearIfNotMatch=!1}ngOnInit(){}set maskExpression(s){s&&(this._maskExpression=s)}set floatingPhoneMask(s){this._floatingPhoneMask=s}set authPhoneMask(s){this._authPhoneMask=s}get modelWithSpecialCharacters(){return this._modelWithSpecialCharacters}set modelWithSpecialCharacters(s){this._modelWithSpecialCharacters=s}get clearIfNotMatch(){return this._clearIfNotMatch}set clearIfNotMatch(s){this._clearIfNotMatch=s}onInput(){this._applyValueChanges()}onBlur(){this._clearIfNotMatchFn(),this._disableChangeOnBlur||this._applyValueChanges(),this._onTouch()}set disableChangeOnBlur(s){this._disableChangeOnBlur=s}writeValue(s){s&&(this._elementRef.nativeElement.value=this._applyMask(s,this._maskExpression))}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouch=s}setDisabledState(s){s?this._renderer.setAttribute(this._elementRef.nativeElement,"disabled","true"):this._renderer.removeAttribute(this._elementRef.nativeElement,"disabled")}
1_applyMask(s,i){if(null==s)return"";this._floatingPhoneMask&&"("===s[4]&&(i=v.D5.PHONE_MASK_OLD_EXPRESSION),this._authPhoneMask&&(s=s.trim().replace(/\+| |\(|\)|-/g,"").replace(/^(380|80|0)/g,"").slice(0,9));let e=0,u="";const _=s.toString().split("");for(let G=0,A=_[0];G<_.length&&u.length!==i.length;G++,A=_[G])if(this._checkSymbolMask(A,i[e]))u+=A,e++;else if(-1!==this._maskSpecialCharacters.indexOf(i[e]))u+=i[e],e++,G--;else if("9"===i[e])break;return u.length+1===i.length&&-1!==this._maskSpecialCharacters.indexOf(i[i.length-1])&&(u+=i[i.length-1]),u}_removeMask(s){return(0,C.S)(s)}_checkSymbolMask(s,i){return s===i||this._maskAvaliablePatterns[i]&&this._maskAvaliablePatterns[i].test(s)}_clearIfNotMatchFn(){!0===this.clearIfNotMatch&&this._maskExpression.length!==this._elementRef.nativeElement.value.length&&(this._elementRef.nativeElement.value="")}_moveCursorPosition(){this.isBrowser&&setTimeout(()=>{this._elementRef.nativeElement.setSelectionRange(this._elementRef.nativeElement.selectionStart+6,this._elementRef.nativeElement.selectionEnd+6)},10)}_applyValueChanges(){const i=this._applyMask(this._elementRef.nativeElement.value,this._maskExpression);this._elementRef.nativeElement.value=i,"true"===this.modelWithSpecialCharacters.toString()?this._onChange(i):this._onChange(this._removeMask(i)),this._elementRef.nativeElement!==this.document.activeElement&&this._clearIfNotMatchFn()}applyMaskManually(s,i){return this._applyMask(s,i)}removeMaskManually(s){return this._removeMask(s)}resetInputValueManually(){this._elementRef.nativeElement.value=""}}return(F=f).\u0275fac=function(s){return new(s||F)(h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(l.qQL),h.rXU(h.Agw))},F.\u0275dir=h.FsC({type:F,selectors:[["","input-mask",""]],hostBindings:function(s,i){1&s&&h.bIt("input",function(){return i.onInput()})("blur",function(){return i.onBlur()})},inputs:{maskExpression:[0,"inputMask","maskExpression"],floatingPhoneMask:"floatingPhoneMask",authPhoneMask:"authPhoneMask",modelWithSpecialCharacters:[0,"specialCharacters","modelWithSpecialCharacters"],clearIfNotMatch:"clearIfNotMatch",disableChangeOnBlur:"disableChangeOnBlur"},standalone:!1,features:[h.Jv_([{provide:c.kq,useExisting:(0,l.Rfq)(()=>F),multi:!0}])]}),f})()},17355:(x,b,r)=>{r.d(b,{L:()=>M});var l=r(36732),h=r(85240),c=r(12481),g=r(24755),C=r(27092),v=r(84205),P=r(67097),F=r(74879),f=r(5758);class M{constructor(i,e){(0,l.A)(this,"_items",void 0),(0,l.A)(this,"_activeItemIndex",(0,h.vPA)(-1)),(0,l.A)(this,"_activeItem",(0,h.vPA)(null)),(0,l.A)(this,"_wrap",!1),(0,l.A)(this,"_typeaheadSubscription",C.yU.EMPTY),(0,l.A)(this,"_itemChangesSubscription",void 0),(0,l.A)(this,"_vertical",!0),(0,l.A)(this,"_horizontal",void 0),(0,l.A)(this,"_allowedModifierKeys",[]),(0,l.A)(this,"_homeAndEnd",!1),(0,l.A)(this,"_pageUpAndDown",{enabled:!1,delta:10}),(0,l.A)(this,"_effectRef",void 0),(0,l.A)(this,"_typeahead",void 0),(0,l.A)(this,"_skipPredicateFn",u=>u.disabled),(0,l.A)(this,"tabOut",new v.B),(0,l.A)(this,"change",new v.B),this._items=i,i instanceof c.rOR?this._itemChangesSubscription=i.changes.subscribe(u=>this._itemsChanged(u.toArray())):(0,h.Hps)(i)&&(this._effectRef=(0,g.QZ)(()=>this._itemsChanged(i()),{injector:e}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();const e=this._getItemsArray();return this._typeahead=new P.T(e,{debounceInterval:"number"==typeof i?i:void 0,skipPredicate:u=>this._skipPredicateFn(u)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(u=>{this.setActiveItem(u)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){const e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){const e=i.keyCode,_=["altKey","ctrlKey","metaKey","shiftKey"].every(G=>!i[G]||this._allowedModifierKeys.indexOf(G)>-1);switch(e){case f.T:return void this.tabOut.next();case f.D:if(this._vertical&&_){this.setNextItemActive();break}return;case f.U:if(this._vertical&&_){this.setPreviousItemActive();break}return;case f.R:if(this._horizontal&&_){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.L:if(this._horizontal&&_){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.H:if(this._homeAndEnd&&_){this.setFirstItemActive();break}return;case f.E:if(this._homeAndEnd&&_){this.setLastItemActive();break}return;case f.a:if(this._pageUpAndDown.enabled&&_){const G=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(G>0?G:0,1);break}return;case f.P:if(this._pageUpAndDown.enabled&&_){const G=this._activeItemIndex()+this._pageUpAndDown.delta,A=this._getItemsArray().length;this._setActiveItemByIndex(G<A?G:A-1,-1);break}return;default:return void((_||(0,F.rp)(i,"shiftKey"))&&this._typeahead?.handleKey(i))}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const e=this._getItemsArray(),u="number"==typeof i?i:e.indexOf(i);this._activeItem.set(e[u]??null),this._activeItemIndex.set(u),this._typeahead?.setCurrentSelectedItemIndex(u)}
1destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let u=1;u<=e.length;u++){const _=(this._activeItemIndex()+i*u+e.length)%e.length;if(!this._skipPredicateFn(e[_]))return void this.setActiveItem(_)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i)}_setActiveItemByIndex(i,e){const u=this._getItemsArray();if(u[i]){for(;this._skipPredicateFn(u[i]);)if(!u[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return(0,h.Hps)(this._items)?this._items():this._items instanceof c.rOR?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);const e=this._activeItem();if(e){const u=i.indexOf(e);u>-1&&u!==this._activeItemIndex()&&(this._activeItemIndex.set(u),this._typeahead?.setCurrentSelectedItemIndex(u))}}}},21530:(x,b,r)=>{r.d(b,{m:()=>l});class l{constructor(c,g,C,v,P,F,f,M,s){this.name=c,this.buttonKey=g,this.fields=C,this.amount=v,this.templateId=P,this.templateNotification=F,this.recurrentPayment=f,this.code=M,this.multiCheckPaymentStepIndex=s}}},25004:(x,b,r)=>{r.d(b,{d:()=>g});var l=r(93887),h=r(12481),c=r(85240);let g=(()=>{var C;class v{}return(C=v).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=c.G2t({imports:[l.G]}),v})()},25550:(x,b,r)=>{r.d(b,{L:()=>c});var l=r(12951),h=r(56075);function c(C,v,P){return(0,l.A)(C,v*h.s0,P)}},35905:(x,b,r)=>{r.d(b,{U:()=>h,Y:()=>l});class l{constructor(g,C,v,P,F,f,M,s,i){this.name=g,this.locationId=C,this.streetName=v,this.buildingNumber=P,this.apartmentNumber=F,this.additionalParams=f,this.templateIdList=M,this.services=s,this.color=i}}class h{constructor(g){Object.assign(this,g),g?.additionalParams&&(this.additionalParams=JSON.stringify(g.additionalParams))}}},38982:(x,b,r)=>{r.d(b,{j:()=>l});const l=h=>{const c=document?.createElement("textarea");return c.innerHTML=h,c?.value}},39036:(x,b,r)=>{r.d(b,{z:()=>U});var l=r(63855),h=r(71401),c=r(25550),g=r(66860),C=r(43942),v=r(61318),P=r(70271),F=r(7488),f=r(25748),M=r(21530),s=r(8947),i=r(35905);class e{encodeKey(o){return encodeURIComponent(o)}encodeValue(o){return o}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}var A,j,u=r(38982),_=r(12481),G=r(85240),N=function(B,o,p,y){var D,O=arguments.length,R=O<3?o:null===y?y=Object.getOwnPropertyDescriptor(o,p):y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(B,o,p,y);else for(var V=B.length-1;V>=0;V--)(D=B[V])&&(R=(O<3?D(R):O>3?D(o,p,R):D(o,p))||R);return O>3&&R&&Object.defineProperty(o,p,R),R},k=function(B,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(B,o)};class U extends F.F{constructor(){super(...arguments),this.dateTimeFormat="dd.MM.yyyy HH:mm"}getAll(o){let p=new l.Nl({encoder:new e});if(o)for(const y in o)o.hasOwnProperty(y)&&(p=p.append(y,o[y]));return this.http.get(this.bindCabinetApiUrl("/payment-templates/bills"),{params:p}).pipe((0,v.W)(this.handleError))}getById(o){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/${o}`)).pipe((0,v.W)(this.handleError))}getByServiceKey(o){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/service/${o}`)).pipe((0,v.W)(this.handleError))}getAnonymousTemplates(o){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/anonymous/service/${o}`)).pipe((0,v.W)(this.handleError))}getAnonymousById(o){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/anonymous/${o}`)).pipe((0,v.W)(this.handleError))}getUserFines(){return this.http.get(this.bindCabinetApiUrl("/api/cars/carfines")).pipe((0,v.W)(this.handleError))}add(o){return this.http.post(this.bindCabinetApiUrl("/payment-templates"),o).pipe((0,v.W)(this.handleError))}addByTransactionId(o){return this.http.post(this.bindCabinetApiUrl(`/payment-templates/transaction/${o}`),{}).pipe((0,v.W)(this.handleError))}addByPayment(o){return this.http.post(this.bindCabinetApiUrl("/payment-templates/current-payment"),o).pipe((0,v.W)(this.handleError))}update(o){return this.http.put(this.bindCabinetApiUrl(`/payment-templates/${o?.templateId}`),o).pipe((0,v.W)(this.handleError))}remove(o){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/${o}`)).pipe((0,v.W)(this.handleError))}groups(){return this.http.get(this.bindCabinetApiUrl("/payment-templates/groups")).pipe((0,v.W)(this.handleError))}groupById(o){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/groups/${o}`)).pipe((0,P.T)(p=>p?.group),(0,P.T)(p=>{if(p.additionalParams)try{p.additionalParams=JSON.parse((0,u.j)(`${p.additionalParams}`))}catch(y){console.error("Invalid JSON:",y?.message)}return p}),(0,v.W)(this.handleError))}groupSupported(){return this.http.get(this.bindCabinetApiUrl("/payment-templates/groups/supporting")).pipe((0,v.W)(this.handleError))}addGroup(o){return this.http.post(this.bindCabinetApiUrl("/payment-templates/groups"),o).pipe((0,v.W)(this.handleError))}addToGroup(o,p){return this.http.post(this.bindCabinetApiUrl(`/payment-templates/groups/${p}/templates`),o).pipe((0,v.W)(this.handleError))}removeFromGroup(o,p){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/groups/${p}/templates`),{body:o}).pipe((0,v.W)(this.handleError))}updateGroup(o,p){return this.http.put(this.bindCabinetApiUrl(`/payment-templates/groups/${p}`),o).pipe((0,v.W)(this.handleError))}removeGroup(o,p){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/groups/${o}?de=${p}`)).pipe((0,v.W)(this.handleError))}getPaymentTemplateTools(o){return this.http.post(this.bindUrl("/userTemplates/instruments"),o).pipe((0,v.W)(this.handleError))}transferTemplate(o){const{templateId:p,phone:y}=o;return this.http.post(this.bindCabinetApiUrl(`/payment-templates/${p}/transfer`),{phone:y}).pipe((0,v.W)(this.handleError))}billsHistory(o){return null===o.templates&&delete o.templates,this.http.get(this.bindCabinetApiUrl("payment-templates/bills/history"),{params:o}).pipe((0,v.W)(this.handleError))}getFormValuesFromPaymentTemplate(o){const p=[];if(o&&(o.fields?.map(y=>{p.push(y)}),p.push(new f.e("templateName",o.name)),p.push(new f.e("amount",o.amount)),"templateNotification"in o&&o?.templateNotification)){p.push(new f.e("isEnableNotification",o.templateNotification.isEnabled));const y=this.getPaymentPeriodFromCronRule(o.templateNotification.rule);p.push(new f.e("notificationPeriod",y)),p.push(new f.e("notificationStartDate",(0,h.GP)(new Date(o.templateNotification.dateRun),this.dateTimeFormat))),"everyDayN"===y&&p.push(new f.e("notifyFrequency",this.getFrequencyFromCronRule(o.templateNotification.rule)))}return p}getFrequencyFromCronRule(o){return o?.split(" ")?.[2].split("/")?.[1]||"1"}
1getFormValuesFromTransactionDetails(o){const p=[];return o&&(o?.fields?.forEach(y=>{p.push(new f.e(y?.fieldName,y?.fieldValue,y?.fieldKey))}),p.push(new f.e("templateName",o?.menuButton?.caption)),p.push(new f.e("amount",o?.amount))),p}getFormValuesFromRecurrentPayment(o){const p=[];if(o){const y=this.getPaymentPeriodFromCronRule(o.rule);p.push(new f.e("paymentPeriod",y)),p.push(new f.e("paymentStartDate",(0,h.GP)(o.isEnabled?new Date(o.dateRun):(0,c.L)(new Date,1),this.dateTimeFormat))),"everyDayN"===y&&p.push(new f.e("frequency",this.getFrequencyFromCronRule(o.rule))),p.push(new f.e("isActive",o.isEnabled))}return p}getCronRule(o,p,y){const O=(0,g.qg)(p,this.dateTimeFormat,new Date),R=O.getMinutes(),D=O.getHours(),V=O.getDay(),$=O.getDate(),K=O.getMonth()+1;switch(o){case"singly":return null;case"daily":return`${R} ${D} * * ?`;case"weekly":return`${R} ${D} ? * ${V}`;case"monthly":return`${R} ${D} ${$} * ?`;case"quarterly":return`${R} ${D} ${$} ${K}/3 ?`;case"everyDayN":return`${R} ${D} ${$}/${y} * ?`;default:return"Manual"}}getPaymentPeriodFromCronRule(o){let p=o;if(o){const y=o.split(" ");5===y.length&&("1/1"!==y[2]&&"*"!==y[2]||"?"!==y[4]?"?"===y[2]?p="weekly":y[3].includes("/")&&"?"===y[4]?p="quarterly":y[2]?.match("^\\d{1,2}\\/\\d{1,2}$")?p="everyDayN":"?"===y[4]&&"*"===y[3]?p="monthly":"?"===y[4]&&(p="singly"):p="daily")}else p="singly";return p}}(A=U).\u0275fac=(()=>{let B;return function(p){return(B||(B=_.xGo(A)))(p||A)}})(),A.\u0275prov=G.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),N([(0,s.t)(),k("design:type",Function),k("design:paramtypes",[M.m]),k("design:returntype",C.c)],U.prototype,"add",null),N([(0,s.t)(),k("design:type",Function),k("design:paramtypes",["function"==typeof(j=typeof T<"u"&&T)?j:Object]),k("design:returntype",C.c)],U.prototype,"addByPayment",null),N([(0,s.t)(),k("design:type",Function),k("design:paramtypes",[M.m]),k("design:returntype",C.c)],U.prototype,"update",null),N([(0,s.t)(),k("design:type",Function),k("design:paramtypes",[i.Y]),k("design:returntype",C.c)],U.prototype,"addGroup",null),N([(0,s.t)(),k("design:type",Function),k("design:paramtypes",[i.U,Number]),k("design:returntype",C.c)],U.prototype,"updateGroup",null)},49063:(x,b,r)=>{r.d(b,{MB:()=>F,fn:()=>s});var l=r(85240),h=r(12481),c=r(34456),g=r(35430),C=r(60316),v=r(13889);class F{}const f={provide:c.kq,useExisting:(0,l.Rfq)(()=>s),multi:!0};let s=(()=>{var i;class e{constructor(_,G,A,N){this._renderer=_,this._elementRef=G,this._compositionMode=A,this.platformId=N,this.textMaskConfig={mask:[],guide:!0,placeholderChar:"_",pipe:void 0,keepCharPositions:!1},this.onChange=k=>{},this.onTouched=()=>{},this._composing=!1,this.isBrowser=(0,C.UE)(this.platformId),null===this._compositionMode&&(this._compositionMode=!function M(){const i=(0,g.rb)()?(0,g.rb)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}ngOnChanges(_){this.isBrowser&&(this._setupMask(!0),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(this.inputElement.value))}writeValue(_){this.isBrowser&&(this._setupMask(),this._renderer.setProperty(this.inputElement,"value",null===_?"":_),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(_))}registerOnChange(_){this.onChange=_}registerOnTouched(_){this.onTouched=_}setDisabledState(_){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",_)}_handleInput(_){this.isBrowser&&(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),void 0!==this.textMaskInputElement&&(this.textMaskInputElement.update(_),this.onChange(_=this.inputElement.value)))}_setupMask(_=!1){this.isBrowser&&(this.inputElement||(this.inputElement="INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this._elementRef.nativeElement:this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&_&&(this.textMaskInputElement=(0,v.createTextMaskInputElement)(Object.assign({inputElement:this.inputElement},this.textMaskConfig))))}_compositionStart(){this._composing=!0}_compositionEnd(_){this._composing=!1,this._compositionMode&&this._handleInput(_)}}return(i=e).\u0275fac=function(_){return new(_||i)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(c.mP,8),h.rXU(h.Agw))},i.\u0275dir=h.FsC({type:i,selectors:[["","textMask",""]],hostBindings:function(_,G){1&_&&h.bIt("input",function(N){return G._handleInput(N.target.value)})("blur",function(){return G.onTouched()})("compositionstart",function(){return G._compositionStart()})("compositionend",function(N){return G._compositionEnd(N.target.value)})},inputs:{textMaskConfig:[0,"textMask","textMaskConfig"]},exportAs:["textMask"],features:[h.Jv_([f]),h.OA$]}),e})()},55072:(x,b,r)=>{r.d(b,{j:()=>v});var l=r(63855),h=r(7488),c=r(61318),g=r(12481),C=r(85240);let v=(()=>{var P;class F extends h.F{checkPayment(M,s){return this.http.post(this.bindUrl("/genericPaymentFlow/check"),M,{headers:this.setHeaders(s)}).pipe((0,c.W)(this.handleError))}createPayment(M,s){return this.http.post(this.bindUrl("/genericPaymentFlow/payment"),M,{headers:this.setHeaders(s)}).pipe((0,c.W)(this.handleError))}setHeaders(M){let s=new l.Lr;return M&&M.length>0&&M.forEach(i=>
1{s=s.append(i.key,String(i.value))}),s}accountInfo(M){return this.http.post(this.bindUrl("/payment/getAccountInfo"),M).pipe((0,c.W)(this.handleError))}}return(P=F).\u0275fac=(()=>{let f;return function(s){return(f||(f=g.xGo(P)))(s||P)}})(),P.\u0275prov=C.jDH({token:P,factory:P.\u0275fac}),F})()},74687:(x,b,r)=>{r.r(b),r.d(b,{IntertelecomPaymentModule:()=>At});var l=r(19838),h=r(15456),c=r(46679),g=r(80769),C=r(79864),v=r(99107),P=r(92624),F=r(48503),f=r(93887),M=r(34487),s=r(24559),i=r(85240),e=r(12481),u=r(34456),_=r(2145),G=r(25146),A=r(31592),N=r(63617),k=r(70271),j=r(11249),U=r(52575),B=r(91817),o=r(81437),p=r(25748),y=r(1522),O=r(40498);class R extends O.K{constructor(I,a){super(a,!1,!1,null,null,null),this.serviceKey=I}}var D=r(48841),V=r(32613),$=r(51098),K=r(24331),Ie=r(39036),Me=r(9496),be=r(64976),Pe=r(48700),Ee=r(28732),Fe=r(68010),z=r(55072),Ae=r(69120),J=r(5049),Ge=r(25200),Q=r(71496),ke=r(39433),xe=r(82982),Z=r(27240),Te=r(54052),q=r(5536),Re=r(67588),De=r(59997),X=r(92231),ee=r(98509),Se=r(26751),Ne=r(40142),w=r(93683),Be=r(81880),Oe=r(16929),te=r(49063),Ue=r(53529),je=r(19187),ne=r(88036);function Ve(m,I){if(1&m){const a=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){i.eBV(a);const t=e.XpG(3);return i.Njj(t.sendAgain())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&m&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"intertelecom.popup.button-send-again")," "))}function $e(m,I){if(1&m&&(e.j41(0,"p",9),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nVh(3,Ve,3,3,"button",10)),2&m){const a=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"intertelecom.popup.no-message")),e.R7$(2),e.vxM(a.onSendAgain.observers.length>0?3:-1)}}function Le(m,I){if(1&m){const a=e.RV6();e.j41(0,"div",1),e.bIt("click",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.close())}),e.k0s(),e.j41(1,"form",2),e.bIt("ngSubmit",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.submitForm())}),e.j41(2,"div",3),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"input",6)(11,"input",7,0),e.nI1(13,"translate"),e.nrm(14,"mat-error"),e.k0s()(),e.j41(15,"button",8),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nVh(18,$e,4,4),e.k0s()}if(2&m){const a=e.XpG();e.Y8G("@dialog",void 0),e.R7$(),e.Y8G("@dialog",void 0)("formGroup",a.confirmCodeForm),e.R7$(2),e.JRh(e.bMT(4,10,"intertelecom.popup.title")),e.R7$(5),e.JRh(e.bMT(9,12,"intertelecom.popup.code")),e.R7$(3),e.Y8G("placeholder",e.bMT(13,14,"intertelecom.popup.input-placeholder"))("textMask",null==a.mask?null:a.mask.confirmCodeMask),e.R7$(4),e.Y8G("disabled",!a.confirmCodeForm.valid),e.R7$(),e.SpI(" ",e.bMT(17,16,"intertelecom.popup.button-send")," "),e.R7$(2),e.vxM(a.showConfirmRepeatFlag?18:-1)}}let we=(()=>{var m;class I extends Ue.h{}return(m=I).\u0275fac=(()=>{let a;return function(t){return(a||(a=e.xGo(m)))(t||m)}})(),m.\u0275cmp=e.VBU({type:m,selectors:[["app-intertelecom-confirm-dialog"]],standalone:!1,features:[e.Vt3],decls:1,vars:1,consts:[["Confirm",""],[1,"overlay","pop-up",3,"click"],[1,"pop-up__container",3,"ngSubmit","formGroup"],[1,"pop-up__title"],[1,"pop-up__input"],[1,"confirm-code"],["type","text","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","type","tel","inputmode","numeric","formControlName","ConfirmCode","autocomplete","off","minlength","4","maxlength","15",3,"placeholder","textMask"],["type","submit","matRipple","",1,"pop-up__submit","button",3,"disabled"],[1,"pop-up__is-got-message"],["type","button",1,"pop-up__send-again"],["type","button",1,"pop-up__send-again",3,"click"]],template:function(n,t){1&n&&e.nVh(0,Le,19,18),2&n&&e.vxM(t.visible?0:-1)},dependencies:[u.qT,u.me,u.BC,u.cb,u.xh,u.tU,u.j4,u.JD,te.fn,ne.M,c.j,c.M,c.b,C.fg,F.D9],styles:[".pop-up{display:flex;align-items:center;justify-content:center;background:#00000080;position:fixed;top:0;left:0;right:0;bottom:0;height:100%;width:100%}.pop-up__container{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;background-color:#fff;margin:0 24px;padding:40px 16px;z-index:3003}@media only screen and (min-width: 640px){.pop-up__container{width:100%;max-width:450px;margin:0 auto;padding:40px 24px}}.pop-up__title{color:#4b4e56;font-size:18px;font-weight:500;line-height:21px;text-align:center}.pop-up__input{height:46px;margin-top:37px;width:100%}@media only screen and (min-width: 640px){.pop-up__input{max-width:240px}}.pop-up__submit{margin-top:30px;width:100%;color:#000}@media only screen and (min-width: 640px){.pop-up__submit{max-width:240px}}.pop-up__is-got-message{margin:20px 0 0;font-size:10px;line-height:9px;letter-spacing:.2px;color:#4b4e56}.pop-up__send-again{color:#4b4e56;cursor:pointer;font-weight:500;font-size:10px;line-height:9px;letter-spacing:.2px;text-decoration-line:underline;margin-top:5px}\n"],encapsulation:2,data:{animation:[je.r3]}}),I})();var We=r(37939),Ke=r(86521),Xe=r(19792),ie=r(61019),Ye=r(28214),He=r(60247);const ze=["phoneInput"],Je=["accountInput"],Qe=()=>["phone","phone"],Ze=()=>["account","account"],qe=()=>["amount","amount"],et=()=>["email","email"],re=()=>["mobileMoneys","instrument"],tt=()=>["mobileMoneys","payerPhone"],nt=m=>({"card-front-has-error":m}),it=()=>["uCard","Pan","Pan"],rt=()=>["uCard","Pan"],at=()=>["uCard","Month"],ot=()=>["uCard","Year"],Y=()=>["uCard","Cvv"],st=m=>({"card-back-has-error":m}),lt=(m,I)=>I.id;function mt(m,I){if(1&m){const a=e.RV6();e.j41(0,"div",39),e.bIt("click",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.removeError())}),e.nrm(1,"div",40),e.nI1(2,"safeHtml"),e.k0s()}if(2&m){const a=e.XpG();e.R7$(),e.Y8G("innerHtml",e.bMT(2,1,a.error.message),e.npT)}}function ut(m,I){if(1&m){const a=e.RV6();e.j41(0,"app-apple-google-pay-partners",42),e.bIt("onSubmit",function(t){i.eBV(a);const d=e.XpG(2);return i.Njj(d.submitAppleGooglePay(t))})("onDisabledSubmit",function(t){i.eBV(a);const d=e.XpG(2);return i.Njj(d.setAmountError(t))})("onMainFormGroupInvalid",function(){i.eBV(a);const t=e.XpG(2);return i.Njj(t.onMainFormGroupInvalidClicked())}),e.k0s()}if(2&m){const a=e.XpG(2);e.Y8G("applePay",a.applePay)("googlePay",a.googlePay)("amount",a.amount)("service",a.service)("isMainFormGroupValid",a.isMainFromGroupValid())}}
1function ct(m,I){if(1&m&&(e.j41(0,"div",9)(1,"div",10),e.nVh(2,ut,1,5,"app-apple-google-pay-partners",41),e.k0s()()),2&m){const a=e.XpG();e.R7$(2),e.vxM(a.checkPaymentResult?2:-1)}}function dt(m,I){if(1&m){const a=e.RV6();e.j41(0,"mat-radio-button",49),e.bIt("click",function(){const t=i.eBV(a).$implicit,d=e.XpG(4);return i.Njj(d.setMobileMoneyInstrument(t.instrumentId,t.enabled))}),e.j41(1,"div",50)(2,"div",51),e.nrm(3,"img",52),e.k0s(),e.j41(4,"div",53),e.EFF(5),e.nI1(6,"lowercase"),e.nI1(7,"translate"),e.k0s()()()}if(2&m){const a=I.$implicit,n=e.XpG().$implicit,t=e.XpG(3);e.Y8G("value",a.instrumentId)("disabled",!a.enabled)("checked",t.getRadioChecked(a.instrumentId,a.enabled)),e.R7$(3),e.Y8G("src","https://cdn.easypay.ua/images/svg/"+n.key+".svg",e.B4B)("alt",n.key),e.R7$(2),e.SpI(" ",e.bMT(7,8,e.bMT(6,6,"shared.pay-tools.mobile-money."+n.key+"-tittle"))," ")}}function pt(m,I){1&m&&e.Z7z(0,dt,8,10,"mat-radio-button",48,e.fX1),2&m&&e.Dyx(I.$implicit.value.userPaymentInstruments)}function ht(m,I){if(1&m&&(e.j41(0,"mat-radio-group",43),e.Z7z(1,pt,2,0,null,null,e.fX1),e.nI1(3,"keys"),e.k0s()),2&m){const a=e.XpG(2);e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(3,re))),e.R7$(),e.Dyx(e.bMT(3,1,a.mobileMoney))}}function ft(m,I){if(1&m){const a=e.RV6();e.j41(0,"mat-form-field",44)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",54),e.j41(5,"input",55,2),e.bIt("blur",function(){i.eBV(a);const t=e.XpG(2);return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["mobileMoneys","payerPhone"])))}),e.k0s(),e.j41(7,"mat-error"),e.nrm(8,"app-control-validation-messages",15),e.k0s()()}if(2&m){const a=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,8,"intertelecom.c2c.phone-label")),e.R7$(3),e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(10,tt)))("inputMask",null==a.mask?null:a.mask.phoneMaskPattern)("specialCharacters",!1),e.R7$(3),e.Y8G("mainForm",a.mainFormGroup.get("mobileMoneys"))("formErrors",a.formErrors)("fieldName","payerPhone")("fieldErrorClass",null)}}function vt(m,I){if(1&m){const a=e.RV6();e.j41(0,"div",32)(1,"h2",20),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,ht,4,4,"mat-radio-group",43),e.nVh(5,ft,9,11,"mat-form-field",44),e.j41(6,"div",45)(7,"button",46),e.bIt("click",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.submitPayment())}),e.EFF(8),e.nI1(9,"translate"),e.nI1(10,"number"),e.nI1(11,"translate"),e.k0s(),e.nrm(12,"div",47),e.nI1(13,"translate"),e.k0s()()}if(2&m){let a;const n=e.XpG();e.R7$(2),e.JRh(e.bMT(3,8,"virtual.payment.instrument")),e.R7$(2),e.vxM(n.mobileMoney?4:-1),e.R7$(),e.vxM(null!=n.mainFormGroup&&null!=(a=n.mainFormGroup.get(e.lJ4(19,re)))&&a.value?5:-1),e.R7$(2),e.Y8G("disabled",!n.mainFormGroup.valid),e.R7$(),e.E5c(" ",e.bMT(9,10,"shared.pay-tools.pay-amount.payment-button")," ",e.i5U(10,12,n.amount>0?n.getTotal(n.amount||0,n.mobileMoneyCommission):0,"1.2-2")," ",e.bMT(11,15,"shared.amount.currency")," "),e.R7$(4),e.Y8G("innerHTML",e.bMT(13,17,"shared.pay-tools.pay-amount.submit-agreement"),e.npT)}}function _t(m,I){if(1&m&&(e.j41(0,"mat-option",63),e.EFF(1),e.k0s()),2&m){const a=I.$implicit;e.Y8G("value",a.id),e.R7$(),e.SpI(" ",a.text," ")}}function yt(m,I){if(1&m&&(e.j41(0,"mat-option",63),e.EFF(1),e.k0s()),2&m){const a=I.$implicit;e.Y8G("value",a.id),e.R7$(),e.SpI(" ",a.text," ")}}function gt(m,I){if(1&m&&e.nrm(0,"app-payer-name-control",75),2&m){const a=e.XpG(2);e.Y8G("control",a.mainFormGroup.get("payerName"))("source",a.payerNameSource)("formErrors",a.formErrors)}}function Ct(m,I){if(1&m){const a=e.RV6();e.j41(0,"div",33)(1,"div",56)(2,"div",57)(3,"mat-form-field",58)(4,"mat-label"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"input",54),e.j41(8,"input",59,3),e.bIt("blur",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["uCard","Pan","Pan"])))}),e.k0s(),e.j41(10,"mat-error"),e.nrm(11,"app-control-validation-messages",15),e.k0s()()(),e.j41(12,"div",60)(13,"div",61)(14,"mat-form-field",58)(15,"mat-label"),e.EFF(16,"MM"),e.k0s(),e.j41(17,"mat-select",62),e.Z7z(18,_t,2,2,"mat-option",63,lt),e.k0s(),e.j41(20,"mat-error"),e.nrm(21,"app-control-validation-messages",15),e.k0s()()(),e.j41(22,"div",64)(23,"mat-form-field",58)(24,"mat-label"),e.EFF(25,"YY"),e.k0s(),e.j41(26,"mat-select",65),e.Z7z(27,yt,2,2,"mat-option",63,e.fX1),e.k0s(),e.j41(29,"mat-error"),e.nrm(30,"app-control-validation-messages",15),e.k0s()()()()(),e.j41(31,"div",66),e.nrm(32,"div",67),e.j41(33,"div",68)(34,"mat-form-field",58)(35,"mat-label"),e.EFF(36,"CVV"),e.k0s(),e.nrm(37,"input",69),e.j41(38,"input",70),e.bIt("blur",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["uCard","Cvv"])))}),e.k0s()(),e.j41(39,"span",71)(40,"span",72),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.nrm(43,"img",73)(44,"span",74),e.nI1(45,"translate"),e.nI1(46,"safeHtml"),e.k0s()()(),e.nVh(47,gt,1,3,"app-payer-name-control",75),e.j41(48,"div",76)(49,"button",46),e.bIt("click",function(){i.eBV(a);const t=e.XpG();return i.Njj(t.submitPayment())}),e.EFF(50),e.nI1(51,"translate"),e.nI1(52,"number"),e.nI1(53,"translate"),e.k0s(),e.nrm(54,"div",47),e.nI1(55,"translate"),e.k0s()()}if(2&m){const a=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(46,nt,a.areCardFieldsInvalid())),e.R7$(4),e.JRh(e.bMT(6,29,"shared.pay-tools.card.pan")),e.R7$(3),e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(48,it)))("textMask",null==a.mask?null:a.mask.cardMask),e.R7$(3),e.Y8G("mainForm",a.mainFormGroup.get(e.lJ4(49,rt)))("formErrors",a.formErrors)("fieldName","Pan")("fieldErrorClass",null),e.R7$(6),e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(50,at))),e.R7$(),e.Dyx(a.monthsList),e.R7$(3),e.Y8G("mainForm",a.mainFormGroup.get("uCard"))("formErrors",a.formErrors)("fieldName","Month")("fieldErrorClass",null),e.R7$(5),e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(51,ot))),e.R7$(),e.Dyx(a.yearsList),e.R7$(3),e.Y8G("mainForm",a.mainFormGroup.get("uCard"))("formErrors",a.formErrors)("fieldName","Year")("fieldErrorClass",null),e.R7$(),e.Y8G("ngClass",e.eq3(54,st,a.mainFormGroup.get(e.lJ4(52,Y)).touched&&a.mainFormGroup.get(e.lJ4(53,Y)).invalid)),e.R7$(7),e.Y8G("formControl",a.mainFormGroup.get(e.lJ4(56,Y)))("textMask",null==a.mask?null:a.mask.cvvMask),e.R7$(3),e.SpI("",e.bMT(42,31,"shared.cvv.where-found"),"?"),e.R7$(3),e.Y8G("innerHTML",e.bMT(46,35,e.bMT(45,33,"shared.cvv.info-text")),e.npT),e.R7$(3),e.vxM(a.showPayerName?47:-1),e.R7$(2),e.Y8G("disabled",!(a.mainFormGroup.valid&&a.isCardExpireValue)),e.R7$(),e.E5c(" ",e.bMT(51,37,"shared.pay-tools.pay-amount.payment-button")," ",e.i5U(52,39,a.amount>0?a.getTotal(a.amount,null==a.uCard?null:a.uCard.commission):0,"1.2-2")," ",e.bMT(53,42,"shared.amount.currency")," "),e.R7$(4),e.Y8G("innerHTML",e.bMT(55,44,"shared.pay-tools.pay-amount.submit-agreement"),e.npT)}}let It=(()=>{var m;class I extends o.r{constructor(n,t,d,E,S,L,H,se,le,me,ue,ce,de,pe,he,fe,ve,Gt,kt,xt,_e,ye,ge){super(t,d,E,S,L,H,se,le,me,ue,n,ce,de,pe,he,fe,ve,ye,ge,_e),this.authService=t,this.genericPaymentService=d,this.paymentService=E,this.paymentHandlerService=S,this.serviceMenuService=L,this.publicService=H,this.translateService=se,this.templatesService=le,this.router=me,this.activatedRoute=ue,this.localize=ce,this.historyService=de,this.loaderService=pe,this.esPayPaymentFormProvider=he,this.returnUrlService=fe,this.ecomService=ve,this.formBuilder=Gt,this.meta=kt,this.gPayService=xt,this.applePayService=_e,this.ngZone=ye,this.userDataService=ge,this.serviceKey=A.O.IntertelecomByPhone,this.uCard=null,this.yearsList=[],this.monthsList=[],this.showPayerName=!1,this.payerNameSource=null,this.appConfigService=(0,i.WQX)(Re.R),this.payerNameService=(0,i.WQX)(De.W),this.payerNameValidation=(0,i.WQX)(X.p),this.populateFormFromQueryParams=()=>{let Ce=this.getFormValuesFromUrl();!!Ce.find(Tt=>"account"===Tt.fieldName)&&this.changeCurrentService(A.O.IntertelecomByAccount),this.paymentHandlerService.populateFormValues(this.mainFormGroup,Ce)},this.orderResultUrl=`/${l.D5.DEFAULT_PARTNER_ROUTE_PREFIX}/intertelecom/result`,this.isMobileMoneyFlow=this.activatedRoute.snapshot.data.mobileMoney}ngOnInit(){this.service=this.activatedRoute.snapshot.data.service,this.setMultiCheck(),this.initFormErrors(),this.createFieldsValidationMessages(),this.initForms(),this.meta.updateTag(G.$v),this.isBrowser&&(this.checkPayFormData(),this.checkUserProfileData(),this.setServicesInfo(),this.setMonthsList(),this.setYearsList(),this.initPayerNamePanSubscription(),this.getInstruments())}ngAfterViewInit(){if(this.isBrowser){this.currentUrlOrigin=window.location.origin;let n=document.referrer;this.referrerUrl=n&&n.length>0&&!n.startsWith(this.currentUrlOrigin)?n:null}}ngOnDestroy(){super.ngOnDestroy()}getFormValuesFromUrl(){let n=[];const t=this.getLowerCaseQueryParams;if(t&&this.canGetValuesFromUrl())for(let d in t)this.mainFormGroup.get(d)&&n.push({f
1ieldName:d,fieldValue:t[d]});return n}checkPayFormData(){if(this.esPayPaymentFormProvider.getCurrentFormData()){const n=this.esPayPaymentFormProvider.getCurrentFormData();this.checkServiceKey(n)}else if(this.isPrevPaymentFailed){const n=this.esPayPaymentFormProvider.getDefaultEsPayForm();this.checkServiceKey(n)}}checkServiceKey(n){if(n){const t=this.router.url.split("?")[0],d=n.paymentForm;n&&t===n.path.url&&this.serviceKey!==d.serviceKey&&(this.serviceKey=d.serviceKey,this.getServiceInfo())}}getServiceInfo(){this.serviceMenuService.getMenuButtons(this.serviceKey).pipe((0,k.T)(n=>new q.y(n?.currentService))).subscribe(n=>{this.service=n,this.setServicesInfo()},()=>{this.setError(this.error,!1)})}getInstruments(n=!0){let t=this.paymentHandlerService.normalizeAmount(this.paymentHandlerService.getFormControl(this.mainFormGroup,"amount").value);this.loaderService.startManual(),this.paymentService.getInstrumentsByServiceKey(this.serviceKey,null,t).subscribe(d=>{this.checkPaymentResult=d,this.setCheckPaymentResultInstruments(d.paymentInstrumentsTypes),this.initPaymentInstruments(this.checkPaymentResult.paymentInstrumentsTypes),n&&(this.createAmountSubscription(),this.esPayPaymentFormProvider.isCurrentFormData()?this.initCurrentFormData():this.isPrevPaymentFailed?this.initStorageFormData():this.activatedRoute.snapshot.queryParams&&this.populateFormFromQueryParams(),this.mainFormGroupChangeSubscription&&this.mainFormGroupChangeSubscription.unsubscribe(),this.mainFormGroupChangeSubscription=this.subscribeOnMainFormValueChange()),this.loaderService.finishManual()},d=>{this.loaderService.finishManual(),"INVALID_MAIN_USER_ORDER"===d.error.errorCode?this.getInstruments():this.setError(d)})}initPaymentInstruments(n){this.mobileMoney={},n&&n.length&&(n.forEach(t=>{switch(t.instrumentType){case"Card":new D.Bc(t).applyPayerNameRequiredToInstruments(),t.userPaymentInstruments?.[0]&&(this.uCard=t.userPaymentInstruments[0]);break;case"KSMoney":case"LifeMoney":case"VodafoneMoney":if(t.userPaymentInstruments&&t.userPaymentInstruments.length>0){const d=this.toNumber(this.mainFormGroup.get(["amount","amount"]).value)||0;this.mobileMoney||(this.mobileMoney={}),t.userPaymentInstruments.map(E=>{const S=this.paymentService.getTotal(d,t.commission);return E.enabled=t.amountMin<=S&&S<=t.amountMax,E}),this.mobileMoney[t.instrumentType]=new D.Bc(t)}break;case"GooglePay":if(this.googlePay=null,t.userPaymentInstruments&&t.userPaymentInstruments[0]){const d=this.paymentService.getTotal(this.toNumber(this.amount),t.userPaymentInstruments[0].commission);t.userPaymentInstruments[0].enabled=t.amountMin<=d&&d<=t.amountMax,this.googlePay=new D.Bc(t),this.gPayService.initGPayFields(!!t.isPayerNameRequired)}break;case"ApplePay":if(this.applePay=null,t.userPaymentInstruments&&t.userPaymentInstruments[0]){const d=this.paymentService.getTotal(this.toNumber(this.amount),t.userPaymentInstruments[0].commission);t.userPaymentInstruments[0].enabled=t.amountMin<=d&&d<=t.amountMax,this.applePay=new D.Bc(t)}}}),this.initPaymentToolsForm(),this.updatePayerNameState())}updatePayerNameState(){this.showPayerName=!!this.uCard?.isPayerNameRequired;const n=this.mainFormGroup.get("payerName");if(!this.showPayerName||this.isMobileMoneyFlow)return this.payerNameSource=null,n?.disable(),void n?.setValue("",{emitEvent:!1});n?.enable(),this.payerNameValidation.attachValidator(n,X.w.payTools),this.updatePayerNameRequired(!0),n?.value?.trim()||this.orchestratePayerNameForCard()}initPayerNamePanSubscription(){if(!this.isBrowser)return;const n=this.mainFormGroup.get(["uCard","Pan","Pan"]);n?.valueChanges.pipe((0,j.v)(()=>this.alive),(0,U.B)(900),(0,k.T)(t=>t?.replace(/\s/g,"")),(0,B.F)()).subscribe(t=>{!this.showPayerName||this.isMobileMoneyFlow||"diia"===this.payerNameSource||n.valid&&t&&this.payerNameService.getPayerNameData({pan:t,supportsCardholderInfo:!0}).pipe((0,j.v)(()=>this.alive)).subscribe(d=>this.applyPayerNameData(d))})}orchestratePayerNameForCard(){const n=this.mainFormGroup.get("payerName");this.payerNameSource=null,n?.setValue("",{emitEvent:!1});const t=this.mainFormGroup.get(["uCard","Pan","Pan"]),d=t?.value?.replace(/\s/g,""),E=t?.valid&&!!d;this.payerNameService.getPayerNameData({pan:E?d:void 0,supportsCardholderInfo:E}).pipe((0,j.v)(()=>this.alive)).subscribe(S=>this.applyPayerNameData(S))}applyPayerNameData(n){this.payerNameSource=n.source;const t=this.mainFormGroup.get("payerName");t&&(t.setValue(n.name??"",{emitEvent:!1}),this.payerNameValidation.syncValidatorForSource(t,n.source,X.w.payTools))}updatePayerNameRequired(n){const t=this.mainFormGroup.get("payerName");n?t?.addValidators(u.k0.required):t?.removeValidators(u.k0.required),t?.updateValueAndValidity({emitEvent:!1})}preparePayerData(){const n=this.mainFormGroup.get("payerName")?.value;return(0,Te.to)(n)}initPaymentToolsForm(){!this.isMobileMoneyFlow&&this.uCard?(this.mainFormGroup.get("uCard").enable(),this.mainFormGroup.get("mobileMoneys").disable()):this.mainFormGroup.get("uCard").disable(),this.isMobileMoneyFlow&&(this.mainFormGroup.get("uCard").disable(),this.mainFormGroup.get("mobileMoneys").enable(),this.mobileMoney&&Object.keys(this.mobileMoney).length>0&&this.selectDefaultPaymentInstruments())}selectDefaultPaymentInstruments(){if(this.mobileMoney&&Object.keys(this.mobileMoney).length>0)for(const n in this.mobileMoney)if(this.mobileMoney.hasOwnProperty(n)){const t=this.mobileMoney[n];t&&t.userPaymentInstruments&&t.userPaymentInstruments[0]&&t.userPaymentInstruments[0].enabled&&t.userPaymentInstruments[0].instrumentId&&this.mainFormGroup.get(["mobileMoneys","instrument"]).setValue(t.userPaymentInstruments[0].instrumentId);break}}getRadioChecked(n,t=!0){return this.mainFormGroup.get(["mobileMoneys","instrument"]).value.toString()===n.toString()&&t}setMobileMoneyInstrument(n,t){return t&&n&&this.mainFormGroup.get(["mobileMoneys","instrument"]).setValue(n),t}get mobileMoneyCommission(){let n=0;const t=this.mainFormGroup.get(["mobileMoneys","instrument"]);return t&&t.value&&(n=Object.values(this.mobileMoney).find(d=>d.userPaymentInstruments[0].instrumentId===t.value).commission||0),n}setYearsList(){let n=(new Date).getFullYear();for(let t=0;t<=12;t++)this.yearsList.push({id:(n+t).toString().substr(-2),text:(n+t).toString().substr(-2)})}setMonthsList(){for(let n=1;n<=12;n++)this.monthsList.push(n<10?{id:"0"+n,text:"0"+n}:{id:n,text:n})}areCardFieldsInvalid(){return this.mainFormGroup.get(["uCard","Pan","Pan"]).touched&&this.mainFormGroup.get(["uCard","Pan","Pan"]).invalid||this.mainFormGroup.get(["uCard","Month"]).touched&&this.mainFormGroup.get(["uCard","Month"]).invalid||this.mainFormGroup.get(["uCard","Year"]).touched&&this.mainFormGroup.get(["uCard","Year"]).invalid}setServicesInfo(){this.service&&(this.ecomViewItem(),this.mainFormGroup.get(["amount","amount"]).setValidators(u.k0.compose([u.k0.required,_.N.minNum(this.service?.amountMin),u.k0.max(this.service?.amountMax)])),this.updateV
1alidationMessages(),this.serviceKey===A.O.IntertelecomByAccount?this.service.paymentServiceData.fields.map(n=>{if("Account"===n?.name){let t=[u.k0.required];n?.lengthMin>0&&t.push(u.k0.minLength(n.lengthMin)),n?.lengthMax>0&&t.push(u.k0.maxLength(n.lengthMax)),this.mainFormGroup.get(["account","account"]).setValidators(t),this.mainFormGroup.get(["account","account"]).updateValueAndValidity()}}):this.mainFormGroup.get(["account","account"]).clearValidators(),this.mainFormGroup.updateValueAndValidity(),this.updatePayerNameState())}initFormErrors(){this.formErrors={phone:new y.b,account:new y.b,Pan:new y.b,Month:new y.b,Year:new y.b,Cvv:new y.b,payerPhone:new y.b,instrument:new y.b,amount:new y.b,email:new y.b,payerName:new y.b,ConfirmCode:new y.b}}createFieldsValidationMessages(){this.translateService.get("validate-messages.required").subscribe(n=>{this.setBaseValidationMessages(n,"required")}),this.translateService.get("validate-messages.pattern").subscribe(n=>{this.setBaseValidationMessages(n,"pattern","phone"),this.setBaseValidationMessages(n,"pattern","payerPhone"),this.setBaseValidationMessages(n,"pattern","account"),this.setBaseValidationMessages(n,"pattern","Pan"),this.setBaseValidationMessages(n,"pattern","email")}),this.translateService.get("validate-messages.minimal-length").subscribe(n=>{this.setBaseValidationMessages(n,"minlength","Cvv"),this.setBaseValidationMessages(n,"minlength","account")}
1),this.translateService.get("validate-messages.maximum-length").subscribe(n=>{this.setBaseValidationMessages(n,"maxlength","Cvv"),this.setBaseValidationMessages(n,"maxlength","account")}),this.translateService.get("validate-messages.luhn-check").subscribe(n=>{this.setBaseValidationMessages(n,"luhnCheck","Pan")}),this.translateService.get("validate-messages.invalid-fullname").subscribe(n=>{this.setBaseValidationMessages(n,"invalidName","payerName")}),this.translateService.get("validate-messages.pattern-fullname").subscribe(n=>{this.setBaseValidationMessages(n,"pattern","payerName")}),this.translateService.get("validate-messages.required-fullname").subscribe(n=>{this.setBaseValidationMessages(n,"required","payerName")})}updateValidationMessages(){this.translateService.get("validate-messages.minimal-value").subscribe(n=>{this.setBaseValidationMessages(n+this.service?.amountMin?.toFixed(2),"min","amount")}),this.translateService.get("validate-messages.maximum-value").subscribe(n=>{this.setBaseValidationMessages(n+this.service?.amountMax?.toFixed(2),"max","amount")})}initForms(){this.mainFormGroup=this.formBuilder.group({phone:this.paymentHandlerService.createFormControl("phone","",u.k0.compose([u.k0.required,u.k0.pattern(l.D5.PHONE_MASK_PATTERN)])),account:this.paymentHandlerService.createFormControl("account","",u.k0.required),uCard:this.formBuilder.group({Pan:this.paymentHandlerService.createFormControl("Pan","",u.k0.compose([u.k0.required,u.k0.pattern(l.D5.CARD_MASK),_.N.luhn()])),Month:[""],Year:[""],Cvv:["",u.k0.compose([u.k0.required,u.k0.minLength(3),u.k0.maxLength(3)])]}),mobileMoneys:this.formBuilder.group({instrument:["",u.k0.required],payerPhone:["",u.k0.compose([u.k0.required,u.k0.pattern(l.D5.PHONE_MASK_PATTERN)])]}),amount:this.paymentHandlerService.createFormControl("amount",null,null),payerName:[{value:"",disabled:!0},u.k0.required],email:this.paymentHandlerService.createFormControl("email","",u.k0.pattern(l.D5.EMAIL_VALIDATION_PATTERN))}),this.changeService(this.serviceKey)}createAmountSubscription(){this.mainFormGroup.get(["amount","amount"]).valueChanges.pipe((0,j.v)(()=>this.alive),(0,U.B)(300),(0,B.F)((n,t)=>this.toNumber(n).toFixed(2)===this.toNumber(t).toFixed(2))).subscribe(n=>{this.mainFormGroup.get(["amount","amount"]).valid&&(this.payToolsFormRecovery=[],this.setAmount(n),this.getInstruments(!1))})}subscribeOnMainFormValueChange(){return(0,N.h)(this.mainFormGroup.get(["account","account"]).valueChanges,this.mainFormGroup.get(["phone","phone"]).valueChanges,this.mainFormGroup.get(["amount","amount"]).valueChanges).pipe((0,j.v)(()=>this.alive)).subscribe(()=>{this.onValueChanged(this.mainFormGroup)})}changeService(n,t=!1){this.serviceKey=n;const d=this.mainFormGroup.get(["account","account"]),E=this.mainFormGroup.get(["phone","phone"]);this.serviceKey===A.O.IntertelecomByPhone?(d.valid||d.reset(),E.enable(),d.disable(),t&&this.phoneInput.nativeElement.focus()):this.serviceKey===A.O.IntertelecomByAccount&&(E.valid||E.reset(),E.disable(),d.enable(),t&&this.accountInput.nativeElement.focus())}changeCurrentService(n,t=!1){this.serviceKey!==n&&(this.changeService(n,t),this.getServiceInfo(),this.esPayPaymentFormProvider.isNeedForSaveContext=!0,this.saveCurrentFormData(),this.getInstruments(!1))}setAmount(n){this.mainFormGroup.get(["amount","amount"]).setValue(n),this.amount=this.toNumber(this.mainFormGroup.get(["amount","amount"]).value),this.checkPaymentResult.amount=this.amount}getTotal(n,t){return(this.toNumber(n)||0)+this.toNumber(t)}createCurrentFormData(){return new R(this.serviceKey,this.serializeForm(this.mainFormGroup))}initFormData(n){const t=n.paymentForm;this.serviceKey!==t.serviceKey&&(this.serviceKey=t.serviceKey,this.getServiceInfo()),this.deserializeForm(this.mainFormGroup,t.mainFormGroup)}createUserPaymentInstrument(){let n=this.prepareUserPaymentInstrument(),t={email:this.mainFormGroup.get(["email","email"]).value};return new Z.I(n,t,this.preparePayerData())}prepareUserPaymentInstrument(){let n;if(this.isMobileMoneyFlow){this.mainFormGroup.get("uCard").disable();const t=this.mainFormGroup.get(["mobileMoneys","instrument"]);let d=Object.values(this.mobileMoney),E=()=>d.filter(S=>S?.userPaymentInstruments?.[0]?.instrumentId).find(S=>S.userPaymentInstruments[0].instrumentId===t.value).userPaymentInstruments[0];n=E.call(d)?E.call(d):null,n.phone=this.getPurePhone(this.mainFormGroup.get(["mobileMoneys","payerPhone"]))}else{n=this.uCard,n.pan=this.removeSpecialCharacters(this.mainFormGroup.get(["uCard","Pan","Pan"]).value),n.expire=`${this.mainFormGroup.get(["uCard","Month"]).value}/${this.mainFormGroup.get(["uCard","Year"]).value}`,n.cvv=this.mainFormGroup.get(["uCard","Cvv"]).value;const t=this.mainFormGroup.get("payerName");t?.enabled&&t?.valid&&(n.userCardHolder=t.value)}return n}createCheckPaymentData(){let n=new V.R({serviceKey:this.service.buttonKey,amount:this.toNumber(this.mainFormGroup.get(["amount","amount"]).value),refererUrl:this.referrerUrl,fields:[]}),t=new p.e;return t.fieldName=this.service.paymentServiceData.fields[0].name,this.serviceKey===A.O.IntertelecomByPhone?t.fieldValue=this.getPurePhone(this.mainFormGroup.get(["phone","phone"])):this.serviceKey===A.O.IntertelecomByAccount&&(t.fieldValue=this.mainFormGroup.get(["account","account"]).value),n.fields.push(t),n}checkPayment(n=this.createUserPaymentInstrument()){const t=this.createCheckPaymentData();return this.amount=t.amount,this.loaderService.startManual(),this.flowPaymentService.checkPayment(t).subscribe(()=>{this.ngZone.run(()=>{this.loaderService.finishManual(),this.mainFormGroup.get(["uCard","Cvv"]).reset(),this.payment(this.mainFormGroup,this.paymentData)})},d=>{this.loaderService.finishManual(),"INVALID_MAIN_USER_ORDER"===d.error.errorCode?this.checkPayment(n):this.ngZone.run(()=>{this.setError(d),this.paymentData?.userPaymentInstrument?.instrumentType&&this.onAbortPayment(this.paymentData.userPaymentInstrument.instrumentType)})})}submitAppleGooglePay(n){const t={email:this.mainFormGroup.get(["email","email"]).value},d=new Z.I(n.paymentInstrument,{...n.additionalItems,...t},n.payerData);this.preparePayment(this.mainFormGroup,d),this.checkPayment(d)}submitPayment(n=this.createUserPaymentInstrument()){this.preparePayment(this.mainFormGroup,n),this.checkPayment(n)}onInvalidMainUserOrderError(n,t,d,E,S=!0){let L=this.prepareCheckPaymentData(this.mainFormGroup);this.templateId&&(L.paymentTemplateId=this.templateId),this.flowPaymentService.checkPayment(L).subscribe(H=>{E&&E.call(this),this.payment(t,d,null,E)})}isMainFromGroupValid(){return this.mainFormGroup.get(["phone","phone"]).enabled?this.mainFormGroup.get(["phone","phone"]).valid:this.mainFormGroup.get(["account","account"]).valid}onMainFormGroupInvalidClicked(){this.mainFormGroup.get(["phone","phone"]).markAsTouched(),this.mainFormGroup.get(["account","account"]).markAsTouched(),this.mainFormGroup.get(["amount","amount"]).markAsTouched(),this.mainFormGroup.get("payerName")?.markAsTouched()}get isCardExpireValue(){return this.mainFormGroup.get(["uCard","Year"]).value&&this.mainFormGroup.get(["uCard","Month"]).value}}return(m=I).\u0275fac=function(n){return new(n||m)(e.rXU(e.Agw),e.rXU(Fe.u),e.rXU(z.j),e.rXU(Ae.W),e.rXU($.c),e.rXU(J.c),e.rXU(K.Z),e.rXU(F.c$),e.rXU(Ie.z),e.rXU(ee.Ix),e.rXU(ee.nX),e.rXU(Me.Q),e.rXU(Ge.k),e.rXU(Se.Z),e.rXU(be.IQ),e.rXU(Pe.l),e.rXU(Ee.K),e.rXU(u.ze),e.rXU(Ne.W8),e.rXU(Q.F),e.rXU(ke.i),e.rXU(e.SKi),e.rXU(xe.J))},m.\u0275cmp=e.VBU({type:m,selectors:[["app-intertelecom-payment"]],viewQuery:function(n,t){if(1&n&&(e.GBs(ze,7),e.GBs(Je,7)),2&n){let d;e.mGM(d=e.lsd())&&(t.phoneInput=d.first),e.mGM(d=e.lsd())&&(t.accountInput=d.first)}},standalone:!1,features:[e.Vt3],decls:96,vars:92,consts:[["phoneInput",""],["accountInput",""],["inputPhone",""],["inputPan",""],[1,"intertelecom-error"],[1,"wrapper","intertelecom","row","column"],[1,"tab_title","text-center","small-16",3,"innerHtml"],[1,"intertelecom_service"],[1,"intertelecom_form",3,"formGroup"],[1,"row"],[1,"column","small-16"],[1,"column","small-16","medium-7"],["hideRequiredMarker","",3,"click"],["type","number","name","phone","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","placeholder","+380 (_ _)  _ _ _ - _ _ - _ _","input-mask","",3,"blur","inputMask","specialCharacters","formControl"],[3,"mainForm","formErrors","fieldName","fieldErrorClass"],[1,"services-devider","column","medium-text-center"],["type","tel","name","account","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","placeholder","",3,"blur","textMask","formControl"],[1,"row","intertelecom_amount"],[1,"intertelecom_h2-title"],[1,"column","small-16","medium-5"],[1,"intertelecom_amount-field"],["type","number","name","amount","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","type","tel","maxlength","8","input-decimal","2","input-decimal-point",".",3,"blur","placeholder","name","textMask","formControl"],[1,"column","small-16","medium-11"],[1,"form-row"],[1,"amount-buttons","row"],[1,"column","small-8","medium-ex
1pand"],["type","button","matRipple","",1,"button",3,"click"],[1,"row","intertelecom-comission_info"],[1,"column"],[1,"mobile-money"],[1,"intertelecom_card"],[1,"email-block"],[1,"email-title"],["type","email","name","email","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","autocomplete","email","type","text",3,"blur","formControl"],[3,"onSubmit","onCloseDialog","onSendAgain","visible","confirmErrorMassage"],[1,"intertelecom-error",3,"click"],[1,"error-msg","wrapper",3,"innerHtml"],[3,"applePay","googlePay","amount","service","isMainFormGroupValid"],[3,"onSubmit","onDisabledSubmit","onMainFormGroupInvalid","applePay","googlePay","amount","service","isMainFormGroupValid"],[1,"radio-group","mat-radio-group--custom",3,"formControl"],[1,"phone-number"],[1,"inter_pay-submit","small-16"],["type","button","matRipple","",1,"pay-submit-button","button",3,"click","disabled"],[1,"submit-agreement",3,"innerHTML"],["color","primary","name","mobileTools",1,"radio-button","mat-mdc-radio-button",3,"value","disabled","checked"],["color","primary","name","mobileTools",1,"radio-button","mat-mdc-radio-button",3,"click","value","disabled","checked"],[1,"instrument__item"],[1,"instrument__logo","shrink"],[3,"src","alt"],[1,"instrument__name"],["type","text","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","type","tel","inputmode","numeric","placeholder","+380 (_ _)  _ _ _ - _ _ - _ _","input-mask","",3,"blur","formControl","inputMask","specialCharacters"],[1,"intertelecom_card-front",3,"ngClass"],[1,"card-pan"],[1,"bg-white"],["matInput","","type","text","autocomplete","section-telecom cc-number","placeholder","0000 0000 0000 0000",3,"blur","formControl","textMask"],[1,"cardExpire__selects","row"],[1,"month","small-8","column"],["autocomplete","section-telecom cc-exp cc-exp-month",3,"formControl"],[3,"value"],[1,"year","small-8","column"],["autocomplete","section-telecom cc-exp cc-exp-year",3,"formControl"],[1,"intertelecom_card-back",3,"ngClass"],[1,"magnet-stroke"],[1,"intertelecom_card-cvv"],["type","password","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","type","password","autocomplete","section-telecom cc-csc",3,"blur","formControl","textMask"],["tabindex","0",1,"cvv__link"],[1,"cvv__title"],["src","https://cdn.easypay.ua/images/svg/cvv-info.svg","alt","\u0433\u0434\u0435 \u0438\u0441\u043a\u0430\u0442\u044c CVV-\u043a\u043e\u0434",1,"cvv__img"],[1,"cvv__info-text",3,"innerHTML"],[1,"payer-name-control-mb-16",3,"control","source","formErrors"],[1,"inter_pay-submit"]],template:function(n,t){if(1&n){const d=e.RV6();e.nVh(0,mt,3,3,"div",4),e.j41(1,"article",5),e.nrm(2,"h1",6),e.nI1(3,"translate"),e.nI1(4,"safeHtml"),e.j41(5,"div",7)(6,"form",8)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",11)(11,"mat-form-field",12),e.bIt("click",function(){return i.eBV(d),i.Njj(t.changeCurrentService("INTERTELECOM-PARTNER-PAGE",!0))}),e.j41(12,"mat-label"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"input",13),e.j41(16,"input",14,0),e.bIt("blur",function(){return i.eBV(d),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["phone","phone"])))}),e.k0s(),e.j41(18,"mat-error"),e.nrm(19,"app-control-validation-messages",15),e.k0s()()(),e.j41(20,"div",16),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"div",11)(24,"mat-form-field",12),e.bIt("click",function(){return i.eBV(d),i.Njj(t.changeCurrentService("INTERTELECOM-PARTNER-PAGE-BY-ACCOUNT",!0))}),e.j41(25,"mat-label"),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",17),e.j41(29,"input",18,1),e.bIt("blur",function(){return i.eBV(d),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["account","account"])))}),e.k0s(),e.j41(31,"mat-error"),e.nrm(32,"app-control-validation-messages",15),e.k0s()()()()()(),e.j41(33,"div",19)(34,"div",10)(35,"h2",20),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"div",9)(39,"div",21)(40,"div",22)(41,"mat-form-field")(42,"mat-label"),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.nrm(45,"input",23),e.j41(46,"input",24),e.nI1(47,"number"),e.nI1(48,"translate"),e.nI1(49,"number"),e.nI1(50,"translate"),e.bIt("blur",function(){return i.eBV(d),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["amount","amount"])))}),e.k0s(),e.j41(51,"mat-error"),e.nrm(52,"app-control-validation-messages",15),e.k0s()()()(),e.j41(53,"div",25)(54,"div",26)(55,"div",27)(56,"div",28)(57,"button",29),e.bIt("click",function(){return i.eBV(d),i.Njj(t.setAmount(200))}),e.EFF(58,"200"),e.k0s()(),e.j41(59,"div",28)(60,"button",29),e.bIt("click",function(){return i.eBV(d),i.Njj(t.setAmount(300))}),e.EFF(61,"300"),e.k0s()(),e.j41(62,"div",28)(63,"button",29),e.bIt("click",function(){return i.eBV(d),i.Njj(t.setAmount(400))}),e.EFF(64,"400"),e.k0s()(),e.j41(65,"div",28)(66,"button",29),e.bIt("click",function(){return i.eBV(d),i.Njj(t.setAmount(500))}),e.EFF(67,"500"),e.k0s()()()()()(),e.j41(68,"div",30)(69,"div",31),e.EFF(70),e.nI1(71,"translate"),e.nrm(72,"br"),e.EFF(73),e.nI1(74,"translate"),e.nI1(75,"number"),e.nI1(76,"translate"),e.k0s()(),e.nVh(77,ct,3,1,"div",9),e.nVh(78,vt,14,20,"div",32)(79,Ct,56,57,"div",33),e.j41(80,"div",34)(81,"p",35),e.EFF(82),e.nI1(83,"translate"),e.k0s(),e.j41(84,"mat-form-field")(85,"mat-label"),e.EFF(86),e.nI1(87,"translate"),e.k0s(),e.nrm(88,"input",36),e.j41(89,"input",37),e.bIt("blur",function(){return i.eBV(d),i.Njj(t.clearEmptyFieldError(t.mainFormGroup.get(["email","email"])))}),e.k0s(),e.j41(90,"mat-hint"),e.EFF(91),e.nI1(92,"translate"),e.k0s(),e.j41(93,"mat-error"),e.nrm(94,"app-control-validation-messages",15),e.k0s()()()()()()(),e.j41(95,"app-intertelecom-confirm-dialog",38),e.bIt("onSubmit",function(S){return i.eBV(d),i.Njj(t.confirm(t.mainFormGroup,S))})("onCloseDialog",function(){return i.eBV(d),i.Njj(t.setConfirmCodeState(!1,null))})("onSendAgain",function(){return i.eBV(d),i.Njj(t.submitPayment())}),e.k0s()()}if(2&n){let d;e.vxM(t.error.isNoErrors?-1:0),e.R7$(2),e.Y8G("innerHtml",e.bMT(4,51,e.bMT(3,49,"intertelecom.c2c.title")),e.npT),e.R7$(4),e.Y8G("formGroup",t.mainFormGroup),e.R7$(7),e.JRh(e.bMT(14,53,"intertelecom.c2c.phone-label")),e.R7$(3),e.Y8G("inputMask",
1null==t.mask?null:t.mask.phoneMaskPattern)("specialCharacters",!1)("formControl",t.mainFormGroup.get(e.lJ4(88,Qe))),e.R7$(3),e.Y8G("mainForm",t.mainFormGroup.get("phone"))("formErrors",t.formErrors)("fieldName","phone")("fieldErrorClass",null),e.R7$(2),e.JRh(e.bMT(22,55,"intertelecom.or")),e.R7$(5),e.JRh(e.bMT(27,57,"intertelecom.c2c.account-label")),e.R7$(3),e.Y8G("textMask",null==t.mask?null:t.mask.getDynamicMask(null==t.service||null==t.service.paymentServiceData||null==t.service.paymentServiceData.fields?null:t.service.paymentServiceData.fields[0],"Number"))("formControl",t.mainFormGroup.get(e.lJ4(89,Ze))),e.R7$(3),e.Y8G("mainForm",t.mainFormGroup.get("account"))("formErrors",t.formErrors)("fieldName","account")("fieldErrorClass",null),e.R7$(4),e.SpI(" ",e.bMT(37,59,"intertelecom.c2c.amount")," "),e.R7$(7),e.JRh(e.bMT(44,61,"intertelecom.c2c.another-sum-label")),e.R7$(3),e.Y8G("placeholder",e.a5S("",e.i5U(47,63,null==t.service||null==t.service.paymentServiceData?null:t.service.paymentServiceData.amountMin,"1.2-2")," ",e.bMT(48,66,"shared.amount.amount-to")," ",e.i5U(49,68,null==t.service||null==t.service.paymentServiceData?null:t.service.paymentServiceData.amountMax,"1.0-0")," ",e.bMT(50,71,"shared.amount.currency")))("name",t.uniqNameAmount)("textMask",null==t.mask?null:t.mask.decimalMask)("formControl",t.mainFormGroup.get(e.lJ4(90,qe))),e.R7$(6),e.Y8G("mainForm",t.mainFormGroup.get("amount"))("formErrors",t.formErrors)("fieldName","amount")("fieldErrorClass",null),e.R7$(18),e.SpI(" ",e.bMT(71,73,"intertelecom.commission.info")),e.R7$(3),e.E5c(" ",e.bMT(74,75,"intertelecom.commission.current")," ",e.i5U(75,77,t.amount>0?t.isMobileMoneyFlow?t.mobileMoneyCommission:t.uCard.commission:0,"1.2-2")," ",e.bMT(76,80,"shared.amount.currency")," "),e.R7$(4),e.vxM(t.isMobileMoneyFlow?-1:77),e.R7$(),e.vxM(!0===(d=t.isMobileMoneyFlow)?78:79),e.R7$(4),e.JRh(e.bMT(83,82,"intertelecom.receipt-to-email")),e.R7$(4),e.JRh(e.bMT(87,84,"merchant.pay-tools.email")),e.R7$(3),e.Y8G("formControl",t.mainFormGroup.get(e.lJ4(91,et))),e.R7$(2),e.SpI(" ",e.bMT(92,86,"merchant.pay-tools.email-description")," "),e.R7$(3),e.Y8G("mainForm",t.mainFormGroup.get("email"))("formErrors",t.formErrors)("fieldName","email")("fieldErrorClass",null),e.R7$(),e.Y8G("visible",t.showConfirmCode)("confirmErrorMassage",t.formErrors.ConfirmCode.message)}},dependencies:[w.YU,u.qT,u.me,u.BC,u.cb,u.tU,u.l_,u.j4,Be.r,Oe.I,te.fn,we,c.j,c.M,c.c,c.b,C.fg,v.g,We.M,ne.M,Ke.g,Xe.S,P.VT,P._g,ie.H,w.GH,w.QX,F.D9,Ye.R,He.$],styles:[".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}}@media only screen and (min-width: 640px){.mobile-money{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px}}.radio-group{display:flex;flex-direction:column;margin:0 0 5px 16px}@media only screen and (min-width: 640px){.phone-number{max-width:191px}}.instrument__item{align-items:center;display:flex}.instrument__name{margin-left:11px}.mat-mdc-radio-checked .instrument__name{font-weight:600}.intertelecom-comission_info{margin-top:15px;color:#0009;line-height:1.25;font-weight:600}.intertelecom_amount-field input::placeholder{font-size:13px}\n",".intertelecom{--mat-typography-subtitle1-font-family: 15px}.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not
1(.mdc-text-field--disabled):not(.mdc-text-field--focused) .mdc-notched-outline__leading,.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not(.mdc-text-field--disabled):not(.mdc-text-field--focused) .mdc-notched-outline__notch,.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not(.mdc-text-field--disabled):not(.mdc-text-field--focused) .mdc-notched-outline__trailing,.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.intertelecom .mdc-text-field--outlined:not(.mdc-text-field--invalid):not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#0006}.intertelecom .mat-radio-group--custom .mat-mdc-radio-button .mdc-form-field{margin-bottom:0;height:48px}.intertelecom .mat-radio-group--custom .mat-mdc-radio-button .mdc-form-field>label{margin-left:26px}.intertelecom .intertelecom_amount-field .mat-mdc-form-field-infix{min-height:47px}@media screen and (min-width: 640px){.intertelecom .intertelecom_amount-field .mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0}}\n"],encapsulation:2}),I})();var Mt=r(61318),bt=r(59452);const W=(0,e.zw6)("IntertelecomKey"),ae=[{path:"",component:It,resolve:{service:()=>{const m=(0,i.WQX)(J.c),I=(0,i.WQX)(e.pJN);let n;return I.hasKey(W)?(n=I.get(W,null),I.remove(W),n):(I.onSerialize(W,()=>n),m.getMenuButtons(A.O.IntertelecomByPhone).pipe((0,k.T)(t=>(n=t?.currentService?new q.y(t.currentService):null,n)),(0,Mt.W)(()=>(0,bt.of)(null))))}}}];let Pt=(()=>{var m;class I{}return(m=I).\u0275fac=function(n){return new(n||m)},m.\u0275mod=e.$C({type:m}),m.\u0275inj=i.G2t({imports:[M.iI.forChild(ae),s.XE.forChild(ae),M.iI,s.XE]}),I})();var oe=r(25004);let Et=(()=>{var m;class I{}return(m=I).\u0275fac=function(n){return new(n||m)},m.\u0275mod=e.$C({type:m}),m.\u0275inj=i.G2t({providers:[{provide:c.i,useValue:{appearance:"outline"}}],imports:[f.G,oe.d,w.MD,h.M,g.M,C.fS]}),I})();var Ft=r(11199);let At=(()=>{var m;class I{}return(m=I).\u0275fac=function(n){return new(n||m)},m.\u0275mod=e.$C({type:m}),m.\u0275inj=i.G2t({providers:[z.j,Q.F,{provide:c.i,useValue:{appearance:"outline"}},{provide:l.$Y,useValue:l.D5.PARTNERS_GPAY_MERCHANT_ID}],imports:[Pt,f.G,F.h.forChild(),Et,g.M,C.fS,v.M,h.M,oe.d,Ft.T,P.Wk,ie.H]}),I})()},79325:(x,b,r)=>{r.d(b,{F:()=>l});class l{isErrorState(c,g){return c&&c.invalid&&c.touched}}},85357:(x,b,r)=>{r.d(b,{i:()=>l,o:()=>h});var l=function(c){return c.GenericPayment="GenericPayment",c.GenericCommunal="GenericCommunal",c.BankTransfer="BankTransfer",c.BankTransferCompany="BankTransferCompany",c.BudgetPayment="BudgetPayment",c.Card2Card="Card2Card",c.GenericPaymentTariffTable="GenericPaymentTariffTable",c.ESIM="ESIM",c.CarInsurance="CarInsurance",c.GenericPaymentTicketsNew="GenericPaymentTicketsNew",c}(l||{}),h=function(c){return c.Direct="DirectCategory",c.MFO="MfoCategory",c.MFO_Unfolded="MfoCategoryUnfolded",c.Courses="CoursesCategory",c.Courses_Unfolded="CoursesCategoryUnfolded",c.Cashback="Cashback",c}(h||{})},86521:(x,b,r)=>{r.d(b,{g:()=>F});var l=r(12481),h=r(93683);const c=(f,M)=>M.key;function g(f,M){if(1&f&&(l.j41(0,"span",0),l.EFF(1),l.k0s()),2&f){const s=l.XpG().$implicit,i=l.XpG(2);l.Y8G("ngClass",i.fieldErrorClass?i.fieldErrorClass:null),l.R7$(),l.Lme(" ",i.messageLabel?i.messageLabel+": ":"","",i.formErrors[i.fieldName][s.key]," ")}}function C(f,M){if(1&f&&l.nVh(0,g,2,3,"span",0),2&f){const s=M.$implicit,i=l.XpG(2);l.vxM(i.formErrors[i.fieldName][s.key]?0:-1)}}function v(f,M){if(1&f&&(l.j41(0,"div"),l.Z7z(1,C,1,1,null,null,c),l.k0s()),2&f){const s=l.XpG();l.R7$(),l.Dyx(s.fieldErrors)}}function P(f,M){if(1&f&&(l.j41(0,"div")(1,"span",0),l.EFF(2),l.k0s()()),2&f){const s=l.XpG();l.R7$(),l.Y8G("ngClass",s.fieldErrorClass?s.fieldErrorClass:null),l.R7$(),l.Lme(" ",s.messageLabel?s.messageLabel+": ":"","",s.formErrors[s.fieldName].message," ")}}let F=(()=>{var f;class M{constructor(){this.messageLabel=null,this.fieldErrorClass="field-error",this.showOne=!1}get fieldErrors(){const i=this.mainForm.get(this.fieldName),e=Object.keys(i?.errors)?.map(u=>({key:u}));return this.showOne?e?.slice(0,1):e}}return(f=M).\u0275fac=function(i){return new(i||f)},f.\u0275cmp=l.VBU({type:f,selectors:[["app-control-validation-messages"]],inputs:{mainForm:"mainForm",formErrors:"formErrors",fieldName:"fieldName",messageLabel:"messageLabel",fieldErrorClass:"fieldErrorClass",showOne:"showOne"},standalone:!1,decls:2,vars:2,consts:[[3,"ngClass"]],template:function(i,e){1&i&&(l.nVh(0,v,3,0,"div"),l.nV
1h(1,P,3,3,"div")),2&i&&(l.vxM(e.mainForm.get(e.fieldName).errors&&e.mainForm.get(e.fieldName).touched?0:-1),l.R7$(),l.vxM(e.formErrors[e.fieldName]&&!e.formErrors[e.fieldName].valid?1:-1))},dependencies:[h.YU],encapsulation:2}),M})()}}]);
2//# sourceMappingURL=6001.22b53f47a21b1e83.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.