1(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[2771],{25200:(U,E,r)=>{"use strict";r.d(E,{k:()=>g});var h=r(63855),y=r(75797),c=r(77919),t=r(7488),M=r(61318),m=r(70271),_=r(85841),C=r(28337),l=r(12481),p=r(85240);let g=(()=>{var a;class P extends t.F{constructor(){super(...arguments),this.isAdvancedSearch$=new y.t(!1),this.apiMethods={instrumentHistory:this.bindCabinetApiUrl("/payment-history/v2/instruments/"),transactions:this.bindCabinetApiUrl("/payment-history/v2/transactions"),latestCount:this.bindCabinetApiUrl("/payment-history/v2/latest"),search:this.bindCabinetApiUrl("/payment-history/v2/search"),history:this.bindCabinetApiUrl("/payment-history/v2"),receipt:this.bindUrl("/payment/getReceipt")}}getHistory(o){const e=this.createQueryParams(o);let s=new h.Lr;return s=s.append("Accept","application/json"),this.http.get(this.apiMethods.history,{params:e,headers:s}).pipe((0,M.W)(this.handleError))}historySearch(o){const e=this.createQueryParams(o);return this.http.get(this.apiMethods?.search,{params:e}).pipe((0,M.W)(this.handleError))}getInstrumentHistory(o){const e=this.createQueryParams(o);return this.http.get(this.apiMethods.instrumentHistory+o.instrumentId,{params:e}).pipe((0,M.W)(this.handleError))}downloadHistory(o,e){let s=new h.Lr,n=this.createQueryParams(o);return s=s.append("Accept","text/csv"),this.http.get(e?this.apiMethods.instrumentHistory+o.instrumentId:this.apiMethods.history,{params:n,headers:s,responseType:"blob"}).pipe((0,m.T)(d=>{const f=new Blob([d],{type:"text/csv;charset=utf-8"});_.saveAs(f,"history.csv")}),(0,M.W)(this.handleBlobError))}getTransactionInfo(o){return this.http.get(this.apiMethods.transactions+`/${o}/info`).pipe((0,M.W)(this.handleError))}getTransactionHistory(o){return this.http.get(this.apiMethods.transactions+`/${o}`).pipe((0,M.W)(this.handleError))}getLatestServices(o){return this.http.get(this.apiMethods?.latestCount+`/${o}`).pipe((0,M.W)(this.handleError))}getReceiptPdf(o,e,s="save"){const n=(new h.Lr).set("Accept","application/pdf");if((0,C.y)(o)&&(0,C.y)(e)){const u=(new h.Nl).set("receiptId",o).set("amount",e);return this.http.get(this.apiMethods.receipt,{params:u,headers:n,responseType:"blob"}).pipe((0,m.T)(d=>this.mapReceiptData(d,s)),(0,M.W)(this.handleBlobError))}return(0,c.$)({errorMessage:"invalid receipt param"})}mapReceiptData(o,e){switch(e){case"save":_.saveAs(o,"receipt.pdf",!0);break;case"get":default:return o;case"show":{const s=window.URL.createObjectURL(o);setTimeout(()=>window.open(s,"_blank",""),0);break}}}getReceiptHtml(o,e){const s=(new h.Lr).set("Accept","text/html");if((0,C.y)(o)&&(0,C.y)(e)){const n=(new h.Nl).set("receiptId",o).set("amount",e);return this.http.get(this.apiMethods.receipt,{params:n,headers:s,responseType:"text"}).pipe((0,M.W)(this.handleError))}return(0,c.$)({errorMessage:"invalid receipt param"})}}return(a=P).\u0275fac=(()=>{let T;return function(e){return(T||(T=l.xGo(a)))(e||a)}})(),a.\u0275prov=p.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),P})()},28337:(U,E,r)=>{"use strict";function h(y){let c=String(y);return!(null==c||"null"===c||"undefined"===c||""===c||"-"===c||c.endsWith(".js"))}r.d(E,{y:()=>h})},32216:(U,E,r)=>{"use strict";r.d(E,{R:()=>e});var h=r(12481),y=r(77919),c=r(59452),t=r(70271),M=r(61318),m=r(82252),_=r(32544),A=r(64976),C=r(69120),l=r(24331),p=r(49117),g=r(9496),a=r(85240),P=r(98509),T=r(26751);const o=(0,h.zw6)("whitepagePaymentResult");let e=(()=>{var s;class n{constructor(d,f,I,x,S,b,W,B,L){this.platformId=d,this.router=f,this.storageService=I,this.publicService=x,this.esPayPaymentFormProvider=S,this.loaderService=b,this.paymentService=W,this.localize=B,this.state=L,this.orderResult=new m.I}canActivate(d,f){return this.paymentService.parseUrlParams(d,this.orderResult),this.getPaymentResult()}canActivateChild(d,f){return this.canActivate(d,f)}getPaymentResult(){if(this.state.hasKey(o)){const f=this.state.get(o,null);return this.state.remove(o),this.preparePaymentResult(f)}{let f;this.state.onSerialize(o,()=>f),this.loaderService.enableLoader();let I=this.paymentService.getRequestOptions(this.orderResult);return this.paymentService.getPaymentResult(this.orderResult.isResultByTransactionId?this.orderResult.transactionId:null,I).pipe((0,t.T)(x=>(f=x,this.preparePaymentResult(x))),(0,M.W)(()=>(this.navigateOnError(),(0,y.$)((0,c.of)(!1)))))}}preparePaymentResult(d){return this.esPayPaymentFormProvider.resultData=new _.S(d),!!this.orderResult.isSuccess||(this.navigateOnError(),!1)}navigateOnError(){const f=this.esPayPaymentFormProvider.getDefaultEsPayFormPath()?.url||this.localize.translateRoute("/");f&&this.router.navigate([f],{queryParams:{state:"failed"}})}}return(s=n).\u0275fac=function(d){return new(d||s)(a.KVO(h.Agw),a.KVO(P.Ix),a.KVO(p.n),a.KVO(l.Z),a.KVO(A.IQ),a.KVO(T.Z),a.KVO(C.W),a.KVO(g.Q),a.KVO(h.pJN))},s.\u0275prov=a.jDH({token:s,factory:s.\u0275fac}),n})()},32544:(U,E,r)=>{"use strict";r.d(E,{S:()=>h});class h{constructor(c){Object.assign(this,c)}getTotal(){return Number(this.amount)+(Number(this.commission)||0)}}},32771:(U,E,r)=>{"use strict";r.r(E),r.d(E,{TransportResultModule:()=>V});var h=r(93887),y=r(34487),c=r(24559),t=r(12481),M=r(29404),m=r(9496),_=r(64976),A=r(25200),C=r(61682),l=r(2435),p=r(70271),g=r(61318),a=r(5536),P=r(59452),T=r(5049),o=r(28732),e=r(85240),s=r(98509),n=r(26751),u=r(93683),d=r(1133),f=r(48503),I=r(78013);let x=(()=>{var i;class D{}return(i=D).\u0275fac=function(v){return new(v||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["app-transport-support"]],standalone:!1,decls:32,vars:21,consts:[[1,"transport-support","flex-container","align-middle"],[1,"transport-support_time","text-left"],[1,"transport-support_time-title","regular"],[1,"transport-support_time-hours","lite"],[1,"transport-support_links","flex-container","align-justify"],["title","Telegram","target","_blank","rel","nofollow noopener",1,"telegram",3,"href"],["width","25","height","25"],["fill","#1f83fe","d","m9.81 15.813-.414 5.816c.592 0 .848-.254 1.155-.559l2.774-2.651 5.748 4.21c1.054.587 1.797.277 2.081-.97l3.773-17.68h.001c.335-1.559-.563-2.168-1.59-1.786L1.16 10.683c-1.514.588-1.491 1.432-.258 1.814l5.67 1.764 13.17-8.241c.62-.41 1.183-.183.72.227L9.81 15.813Z"],["title","Viber","target","_blank","rel","nofollow noopener",1,"viber",3,"href"],["clip-path","url(#a)"],["fill","#1f83fe","d","M20.2 3.344c-.61-.516-3.047-2.297-8.39-2.297 0 0-6.329-.375-9.422 2.437C.653 5.22.044 7.704-.002 10.844-.05 13.938-.145 19.797 5.48 21.39v2.39s-.046.985.61 1.219c.797.234 1.219-.516 1.969-1.313.421-.468.984-1.078 1.406-1.593 3.844.328 6.797-.422 7.172-.516.75-.281 5.156-.844 5.86-6.656.75-6.047-.33-9.844-2.298-11.578Zm.61 11.11c-.563 4.874-4.172 5.202-4.829 5.437-.28.047-2.859.703-6.14.515 0 0-2.438 2.907-3.188 3.703-.234.235-.515.235-.515-.28v-4.032c-4.735-1.313-4.453-6.281-4.407-8.86.047-2.624.516-4.734 1.97-6.187 2.624-2.39 8.015-2.016 8.015-2.016 4.547 0 6.703 1.407 7.219 1.829 1.687 1.453 2.53 4.875 1.875 9.89Zm-6.516-3.75c-.047-1.36-.75-2.11-2.063-2.204-.421 0-.468.61-.046.61.984.093 1.453.562 1.546 1.593 0 .422.61.375.563 0Zm.984.515c0 .375.61.422.61 0 .047-2.25-1.407-4.125-4.125-4.313-.422-.047-.47.563-.047.61 2.344.14 3.61 1.734 3.562 3.703Zm2.203.61c-.046-4.079-2.812-6.47-6.28-6.517-.376 0-.376.61 0 .61 3.093.047 5.624 2.11 5.671 5.906 0 .422.61.422.61 0Zm-.562 4.593c.234-.422.187-.797-.14-1.078a11.375 11.375 0 0 0-2.157-1.547c-.516-.281-1.031-.094-1.266.187l-.421.563c-.235.281-.657.234-.657.234-3.14-.797-3.984-3.937-3.984-3.937s0-.422.281-.
1656l.563-.47c.281-.234.422-.75.14-1.265a7.042 7.042 0 0 0-.703-1.078C8.341 7 7.731 6.344 7.731 6.344c-.234-.375-.656-.422-1.078-.188h-.047c-.89.469-1.875 1.453-1.546 2.39 0 0 .234.845 1.218 2.626.47.89.985 1.594 1.453 2.203.516.656 1.22 1.36 1.97 1.969 1.5 1.172 3.796 2.39 4.78 2.672h.047c.938.328 1.922-.657 2.39-1.547v-.047Z"],["id","a"],["d","M0 0h25v25H0z"],["title","Messenger","target","_blank","rel","nofollow noopener",1,"messenger",3,"href"],["fill","#1f83fe","d","M11.388 1.375C4.825 1.375-.237 6.203-.237 12.672c0 3.375 1.36 6.328 3.656 8.344.375.375.281.562.375 2.718 0 .516.422.891.937.891.094 0 .235 0 .375-.047C7.544 23.5 7.591 23.406 8.013 23.5c7.172 1.969 15-2.625 15-10.828 0-6.469-5.063-11.297-11.625-11.297Zm6.984 8.719-3.422 5.39a1.656 1.656 0 0 1-1.453.844c-.422 0-.75-.14-1.078-.375L9.7 13.938c-.094-.094-.234-.141-.422-.141a.756.756 0 0 0-.422.14L5.2 16.703c-.515.375-1.125-.234-.797-.75l3.422-5.39a1.656 1.656 0 0 1 1.453-.844c.422 0 .797.14 1.078.375l2.72 2.015c.093.094.234.141.421.141.14 0 .281-.047.422-.14l3.656-2.766c.516-.375 1.125.234.797.75Z"]],template:function(v,O){1&v&&(t.j41(0,"section",0)(1,"div",1)(2,"p",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",3),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",4)(9,"a",5),t.nI1(10,"translate"),t.nI1(11,"safeUrl"),e.qSk(),t.j41(12,"svg",6),t.nrm(13,"path",7),t.k0s()(),e.joV(),t.j41(14,"a",8),t.nI1(15,"translate"),t.nI1(16,"safeUrl"),e.qSk(),t.j41(17,"svg",6)(18,"g",9),t.nrm(19,"path",10),t.k0s(),t.j41(20,"defs")(21,"clipPath",11),t.nrm(22,"path",12),t.k0s()()()(),e.joV(),t.j41(23,"a",13),t.nI1(24,"translate"),t.nI1(25,"safeUrl"),e.qSk(),t.j41(26,"svg",6)(27,"g",9),t.nrm(28,"path",14),t.k0s(),t.j41(29,"defs")(30,"clipPath",11),t.nrm(31,"path",12),t.k0s()()()()()()),2&v&&(t.R7$(3),t.JRh(t.bMT(4,5,"partners.shared.support-short")),t.R7$(3),t.JRh(t.bMT(7,7,"partners.shared.support-time-hours")),t.R7$(3),t.Y8G("href",t.bMT(11,11,t.bMT(10,9,"shared.telegram.url")),t.B4B),t.R7$(5),t.Y8G("href",t.bMT(16,15,t.bMT(15,13,"shared.viber.url")),t.B4B),t.R7$(9),t.Y8G("href",t.bMT(25,19,t.bMT(24,17,"shared.messenger.url")),t.B4B))},dependencies:[f.D9,I.d],styles:["[_nghost-%COMP%]{display:block}.transport-support[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5fb;border-radius:5px}.transport-support_links[_ngcontent-%COMP%]{flex:0 0 100px}.transport-support_links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:27px}.transport-support_time[_ngcontent-%COMP%]{flex:1 1 auto}.transport-support_time-title[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#202020;margin-bottom:4px}.transport-support_time-hours[_ngcontent-%COMP%]{font-size:13px;line-height:16px}"],changeDetection:0}),D})();function S(i,D){1&i&&t.nrm(0,"app-transport-support",6)}function b(i,D){if(1&i&&(t.j41(0,"div",7),t.nrm(1,"qrcode",10),t.k0s()),2&i){const R=t.XpG(2);t.R7$(),t.Y8G("qrdata",R.resultData.receiptInfo.Info)("width",178)("margin",0)}}function W(i,D){if(1&i){const R=t.RV6();t.nVh(0,b,2,3,"div",7),t.j41(1,"p",8),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",9),t.bIt("click",function(){e.eBV(R);const O=t.XpG();return e.Njj(O.getReceiptPdf())}),t.EFF(5),t.nI1(6,"translate"),t.k0s()}if(2&i){const R=t.XpG();t.vxM(null!=R.resultData&&null!=R.resultData.receiptInfo&&R.resultData.receiptInfo.Info?0:-1),t.R7$(2),t.JRh(t.bMT(3,3,"partners.transport.final.ticket-expired-hour")),t.R7$(3),t.JRh(t.bMT(6,5,"services.payments.result.download-check"))}}let B=(()=>{var i;class D extends M.C{constructor(v,O,$,G,z,k,N,X,H){super(v),this.router=O,this.localize=$,this.esPayFormProvider=G,this.loaderService=z,this.activatedRoute=k,this.historyService=N,this.menuService=X,this.ecomService=H,this.isProcess=!1,this.isResult=!1}ngOnInit(){this.loaderService.resetLoader(),this.getPaymentResult()}ngOnChanges(v){v.resultData&&(this.isResult=!0,this.isProcess=new C.i(this.resultData.paymentState).status)}ngAfterViewInit(){this.scrollTop()}getPaymentResult(){this.resultData=this.esPayFormProvider.resultData,this.isProcess=new C.i(this.resultData.paymentState).status,this.resultData&&(this.resultData?.error?.errorCode?this.setError(this.resultData.error,!1):this.resultData?.serviceKey?this.get
1Service(this.resultData.serviceKey):this.ecomService.transactionPurchase(this.resultData))}getReceiptPdf(){this.loaderService.enableLoader(),this.historyService.getReceiptPdf(this.resultData.transactionId,`${this.resultData.amount}`).subscribe({error:v=>this.setError(v)})}getService(v){this.menuService.getMenuButtons(v).pipe((0,l.$)(),(0,p.T)(O=>new a.y(O?.currentService)?.paymentServiceData?.paymentGroupName||null),(0,g.W)(O=>(this.setError(O),(0,P.of)(null)))).subscribe({next:O=>{this.ecomService.transactionPurchase(this.resultData,O)}})}}return(i=D).\u0275fac=function(v){return new(v||i)(t.rXU(t.Agw),t.rXU(s.Ix),t.rXU(m.Q),t.rXU(_.IQ),t.rXU(n.Z),t.rXU(s.nX),t.rXU(A.k),t.rXU(T.c),t.rXU(o.K))},i.\u0275cmp=t.VBU({type:i,selectors:[["app-transport-result"]],standalone:!1,features:[t.Vt3,t.OA$],decls:12,vars:11,consts:[[1,"transport-result","relative","text-center","lite",3,"ngClass"],[1,"transport-result_pic"],["alt","icon-status",3,"src"],[1,"transport-result_amount","mt-24"],[1,"transport-result_amount-val","semibold"],[1,"transport-result_amount-cur"],[1,"mt-24"],[1,"transport-result_qr","mt-24"],[1,"transport-result_expire","mt-8"],["type","button",1,"transport-result_get-receipt","mt-24",3,"click"],[3,"qrdata","width","margin"]],template:function(v,O){1&v&&(t.j41(0,"section",0)(1,"picture",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"p",3)(4,"span",4),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.j41(7,"span",5),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.nVh(10,S,1,0,"app-transport-support",6)(11,W,7,7),t.k0s()),2&v&&(t.Y8G("ngClass",O.isProcess?"pending-state":"success-state"),t.R7$(2),t.Y8G("src",t.VkB("https://cdn.easypay.ua/images/svg/final-page/result-",O.isProcess?"pending":"success",".svg"),t.B4B),t.R7$(3),t.JRh(t.i5U(6,6,null==O.resultData?null:O.resultData.getTotal(),"1.2-2")),t.R7$(3),t.JRh(t.bMT(9,9,"shared.amount.currency")),t.R7$(2),t.vxM(O.isProcess?10:11))},dependencies:[u.YU,d.c,x,u.QX,f.D9],styles:['.transport-result[_ngcontent-%COMP%]{padding:56px 16px 24px;border:1px solid #E2E2E2;margin-top:9px;background-color:#fff;color:#4b4e56}.transport-result[_ngcontent-%COMP%] .mt-8[_ngcontent-%COMP%]{margin:8px 0 0}.transport-result[_ngcontent-%COMP%] .mt-24[_ngcontent-%COMP%]{margin:24px 0 0}.transport-result[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;top:-9px;left:-1px;height:8px;width:calc(100% + 2px);border-width:1px 1px 0 1px;border-style:solid;border-color:#e2e2e2;border-radius:5px 5px 0 0}.transport-result.success-state[_ngcontent-%COMP%]:before{background-color:#32aa55}.transport-result.pending-state[_ngcontent-%COMP%]:before{background-color:orange}.transport-result_pic[_ngcontent-%COMP%]{height:88px;width:88px;margin:0 auto;display:block}.transport-result_amount-val[_ngcontent-%COMP%]{font-size:32px;line-height:40px;color:#202020}.transport-result_amount-cur[_ngcontent-%COMP%]{font-size:20x;line-height:40px;margin-left:5px}.transport-result_expire[_ngcontent-%COMP%]{font-size:16px;line-height:19px}.transport-result_get-receipt[_ngcontent-%COMP%]{font-size:13px;line-height:20px;color:#1f83fe;cursor:pointer;transition:color .2s}.transport-result_get-receipt[_ngcontent-%COMP%]:hover, .transport-result_get-receipt[_ngcontent-%COMP%]:focus{color:#529ffe}']}),D})();var L=r(32216);let K=(()=>{var i;class D extends L.R{navigateOnError(){const v=this.esPayPaymentFormProvider.getDefaultEsPayFormPath(),O=v?.url?v.url:this.localize.translateRoute("/transport");O&&this.router.navigate([O],{queryParams:{state:"failed"}})}}return(i=D).\u0275fac=(()=>{let R;return function(O){return(R||(R=t.xGo(i)))(O||i)}})(),i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac}),D})();const j=[{path:"",canActivateChild:[K],children:[{path:"",component:B}]}];let F=(()=>{var i;class D{}return(i=D).\u0275fac=function(v){return new(v||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=e.G2t({imports:[y.iI.forChild(j),c.XE.forChild(j),y.iI,c.XE]}),D})();var w=r(18053);let V=(()=>{var i;class D{}return(i=D).\u0275fac=function(v){return new(v||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=e.G2t({providers:[K],imports:[h.G,F,w.U,d.c]}),D})()},60809:(U,E,r)=>{"use strict";function h(y){return y?.toString()?.replace(/(\/|\.|-|\(|\)|:| |\+)/gi,"")??y}r.d(E,{S:()=>h})},61682:(U,E,r)=>{"use strict";r.d(E,{i:()=>h});class h{constructor(c){switch(c){case"Pending":case"InProcess":case"Hold":case"None":case"Created":this.status=!0;break;default:this.status=!1}}}},69120:(U,E,r)=>{"use strict";r.d(E,{W:()=>T});var g,h=r(85240),y=r(12481),c=r(63855),t=r(84205),M=r(7488),m=r(61318),_=r(60316),A=r(81235),C=r(46634),l=r(60809),p=r(92513),a=function(o,e,s,n){var f,u=arguments.length,d=u<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(o,e,s,n);else for(var I=o.length-1;I>=0;I--)(f=o[I])&&(d=(u<3?f(d):u>3?f(e,s,d):f(e,s))||d);return u>3&&d&&Object.defineProperty(e,s,d),d},P=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};class T extends M.F{constructor(){super(...arguments),this.apiMethodsUri={instrumentsInfo:"/payment/instruments/info",check:"/payment/check",createPayment:"/payment/create",confirmPayment:"/payment/confirm",paymentResult:"/payment/result",lookUpVerification:"/payment/lookUpVerification",confirmCodeVerification:"/payment/confirmCodeVerification",sendReceiptToEmail:"/payment/sendReceiptToEmail",qrPaymentCheck:"/payment/qrPaymentCheck",createNarrative:"/bankTransferFlow/createNarrative",processPayment:"/payment/process"},this.platformId=(0,h.WQX)(y.Agw),this.errorAnnouncedSource=new t.B,this.errorAnnounced$=this.errorAnnouncedSource.asObservable()}announceError(e){this.errorAnnouncedSource.next(e)}createNarrative(e){return this.http.post(this.bindUrl(this.apiMethodsUri.createNarrative),e).pipe((0,m.W)(this.handleError))}getInstrumentsByServiceKey(e,s,n,u){let d=new c.Lr,f=new c.Nl;return s&&s.length>0&&s.map(I=>{d=d.append(I.key,String(I.value))}),n&&(f=f.append("amount",String(n))),u&&(f=f.append("account",u)),this.http.get(this.bindUrl(`/payment/instruments/${e}`),{headers:d,params:f}).pipe((0,m.W)(this.handleError))}instrumentsInfo(e){return this.http.post(this.bindUrl(this.apiMethodsUri.instrumentsInfo),e).pipe((0,m.W)(this.handleError))}checkPayment(e,s){let n=new c.Lr;return s&&s.length>0&&s.map(u=>{n=n.append(u.key,String(u.value))}),this.http.post(this.bindUrl(this.apiMethodsUri.check),e,{headers:n}).pipe((0,m.W)(this.handleError))}createPayment(e,s){let n=new c.Lr;return s&&s.length>0&&s.map(u=>{n=n.append(u.key,String(u.value))}),this.http.post(this.bindUrl(this.apiMethodsUri.createPayment),e,{headers:n}).pipe((0,m.W)(this.handleError))}processPayment(e,s){let n=new c.Lr;return s&&s.length>0&&s.map(u=>{n=n.append(u.key,String(u.value))}),this.http.post(this.bindUrl(this.apiMethodsUri.processPayment),e,{headers:n}).pipe((0,m.W)(this.handleError))}confirmPayment(e){return this.bindUrl(this.apiMethodsUri.confirmPayment)+`/${this.appId},${this.pageId},${e}`}getPaymentResult(e,s){let n=new c.Nl;return n=n.append("transactionId",String(e)),this.http.get(this.bindUrl(this.apiMethodsUri.paymentResult),{headers:s,params:n}).pipe((0,m.W)(this.handleError))}lookUpVerification(e){return this.http.post(this.bindUrl(this.apiMethodsUri.lookUpVerification),{code:e}).pipe((0,m.W)(this.handleError))}confirmCodeVerification(e){return this.http.post(this.bindUrl(this.apiMethodsUri.confirmCodeVerification),{code:e}).pipe((0,m.W)(this.handleError))}qrPaymentCheck(e){return this.http.get(this.bindUrl(`${this.apiMethodsUri.qrPaymentCheck}?orderId=${e}`)).pipe((0,m.W)(this.handleError))}sendReceiptToEmail(e){return this.http.post(this.bindUrl(this.apiMethodsUri.sendReceiptToEmail),e).pipe((0,m.W)(this.handleError))}cleanModel(e){for(const s in e)e.hasOwnProperty(s)&&(null==e[s]||0===e[s].length)&&delete e[s];return e}getBankInfoByPan(e){const s=this.createQueryParams({pan:e});return this.http.get(this.bindCabinetApiUrl("/payment-cards/issuer"),{params:s}).pipe((0,m.W)(this.handleError))}getCardHolderInfo({cardPan:e,cardGuid:s}){let n=new c.Nl;return e&&(n=n.append("pan",e)),s&&(n=n.append("cardGuid",s)),this.http.get(this.bindCabinetApiUrl("/payment-cards/holder"),{params:n}).pipe((0,m.W)(this.handleError))}getTotal(e,s,n=!0){const u=n?(0,p.R)(e)+(0,p.R)(s):(0,p.R)(e);return parseFloat(u.toFixed(2))}removeSpecialCharacters(e){return(0,l.S)(e)}getCardType(e){return new RegExp("^4").test(e)?"visa":new RegExp("^5[1-5]").test(e)?"mastercard":new RegExp("^9|626296").test(e)?"prostir":""}getMinMaxValues(e){return{amountMin:String(e.amountMin),amountMax:String(e.amountMax)}}getTokenizedCards(e){const s=this.createQueryParams(e);return this.http.get(this.bindUrl("/payment/instruments/tokenizedCards"),{params:s}).pipe((0,m.W)(this.handleError))}deleteTokenizedCard(e,s){const n=this.createQueryParams(s);return this.http.delete(this.bindUrl("/payment/cardTokenization/remove/"+e),{params:n}).pipe((0,m.W)(this.handleError))}parseUrlParams(e,s){if(s.transactionId=e.queryParams.tid&&parseInt(e.queryParams.tid,10)||null,s.isResultByTransactionId=e.queryParams.bytransactionid&&JSON.parse(e.queryParams.bytransactionid)||!1,s.isSuccess=!e.queryParams.success||JSON.parse(e.queryParams.success),e.queryParams.ih){const n=e.queryParams.ih.split(",");s.requestedAppId=n[0]?n[0]:null,s.requestedPageId=n[1]?n[1]:null,s.userId=n[2]?n[2]:null}}getRequestOptions(e){let s=new c.Lr;return e.requestedAppId&&e.requestedPageId?(s=s.append("AppId",e.requestedAppId),s=s.append("PageId",e.requestedPageId)):(0,_.UE)(this.platformId)&&(s=s.append("AppId",this.appId),s=s.append("PageId",this.pageId)),s}}(g=T).\u0275fac=(()=>{let o;return function(s){return(o||(o=y.xGo(g)))(s||g)}})(),g.\u0275prov=h.jDH({token:g,factory:g.\u0275fac,providedIn:"root"}),a([(0,C.D)(A.c.APP_ID),P("design:type",String)],T.prototype,"appId",void 0),a([(0,C.u)(A.c.PAGE_ID),P("design:type",String)],T.prototype,"pageId",void 0)},78013:(U,E,r)=>{"use strict";r.d(E,{d:()=>c});var h=r(12481),y=r(40142);let c=(()=>{var t;class M{constructor(_){this.sanitized=_}transform(_){return this.sanitized.bypassSecurityTrustResourceUrl(_)}}return(t=M).\u0275fac=function(_){return new(_||t)(h.rXU(y.up,16))}
1,t.\u0275pipe=h.EJ8({name:"safeUrl",type:t,pure:!0}),M})()},82252:(U,E,r)=>{"use strict";r.d(E,{I:()=>h});class h{constructor(c){Object.assign(this,c)}}},85841:function(U,E){var r,y;void 0!==(y="function"==typeof(r=function(){"use strict";function t(l,p,g){var a=new XMLHttpRequest;a.open("GET",l),a.responseType="blob",a.onload=function(){C(a.response,p,g)},a.onerror=function(){console.error("could not download file")},a.send()}function M(l){var p=new XMLHttpRequest;p.open("HEAD",l,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function m(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(p)}}var _="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,A=_.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=_.saveAs||("object"!=typeof window||window!==_?function(){}:"download"in HTMLAnchorElement.prototype&&!A?function(l,p,g){var a=_.URL||_.webkitURL,P=document.createElement("a");P.download=p=p||l.name||"download",P.rel="noopener","string"==typeof l?(P.href=l,P.origin===location.origin?m(P):M(P.href)?t(l,p,g):m(P,P.target="_blank")):(P.href=a.createObjectURL(l),setTimeout(function(){a.revokeObjectURL(P.href)},4e4),setTimeout(function(){m(P)},0))}:"msSaveOrOpenBlob"in navigator?function(l,p,g){if(p=p||l.name||"download","string"!=typeof l)navigator.msSaveOrOpenBlob(function c(l,p){return typeof p>"u"?p={autoBom:!1}:"object"!=typeof p&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\ufeff",l],{type:l.type}):l}(l,g),p);else if(M(l))t(l,p,g);else{var a=document.createElement("a");a.href=l,a.target="_blank",setTimeout(function(){m(a)})}}:function(l,p,g,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof l)return t(l,p,g);var P="application/octet-stream"===l.type,T=/constructor/i.test(_.HTMLElement)||_.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||P&&T||A)&&typeof FileReader<"u"){var e=new FileReader;e.onloadend=function(){var u=e.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=u:location=u,a=null},e.readAsDataURL(l)}else{var s=_.URL||_.webkitURL,n=s.createObjectURL(l);a?a.location=n:location.href=n,a=null,setTimeout(function(){s.revokeObjectURL(n)},4e4)}});_.saveAs=C.saveAs=C,U.exports=C})?r.apply(E,[]):r)&&(U.exports=y)}}]); 2//# sourceMappingURL=2771.6f41c6f7f27cab77.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.