1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ZUeerhpf.js","./Bgv9kgvj.js","./BosuxZz1.js","./Ci0sP1HV.js","./BKc8u1VI.js","./PromoBanner.sOW1pyZ5.css","./BHX5TmX2.js","./Hint.DVV1weN0.css","./k4OLQiop.js","./PromoCode.Df8SmCbm.css","./BTShGQcf.js","./Vzh7R4nb.js","./Help.BnnWWUnX.css"])))=>i.map(i=>d[i]); 2import{a as C,j as T,f as D,u as R,al as E,n as d,r as P,c as u,t as _,q as s,B as l,Z as I,H as S,a0 as $,z as L,A as h,J as f,a1 as x,a2 as B,d as b,o as c,_ as k}from"./Ci0sP1HV.js";import{_ as H}from"./CdWYa0-C.js";import{u as N}from"./Bd1wy2PH.js";import{f as A}from"./DONsjdBu.js";import{u as V,r as U,i as q,b as O,c as M}from"./HEFRrgjh.js";import{_ as F}from"./BKc8u1VI.js";const j=b(()=>k(()=>import("./ZUeerhpf.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),z=b(()=>k(()=>import("./BHX5TmX2.js"),__vite__mapDeps([6,3,4,7]),import.meta.url)),J=b(()=>k(()=>import("./k4OLQiop.js"),__vite__mapDeps([8,3,4,9]),import.meta.url)),G=b(()=>k(()=>import("./BTShGQcf.js"),__vite__mapDeps([10,3,11,4,12]),import.meta.url)),W={components:{PromoBanner:j,Hint:z,PromoCode:J,Help:G},setup(){const t=N(),e=C(),i=T(),o=D(),n=R(),r=V();return{router:e,route:i,store:o,loadingsStore:n,v$:r,btnLogos:t}},data(){return{depositValue:this.route.query.sum||"",customDepositValue:!1,hasPageshowListener:!1,phone:"",showPhoneBlock:!1,activePayTag:null,activePsLimits:null,isDepositInProgress:!1,p2pError:"",p2pNow:Math.floor(Date.now()/1e3),p2pTimer:null,p2pRefreshing:!1}},mounted(){this.store.p2pActive().catch(()=>null),this.p2pTimer=E(()=>this.watchP2pExpiration(),1e3)},validations(){return{depositValue:{required:U,integer:q,minValue:O(this.config.min),maxValue:M(this.config.max)}}},computed:{kaspiPhoneToCopy(){const t=this.store.config.deposit.kaspi.phone;return t.substring(0,2)==="+7"?t.substring(2):t},kaspiCardToCopy(){return this.store.config.deposit.kaspi.card.replace(/\s/g,"")},kaspi(){return this.store.config.deposit.kaspi},currency(){return this.store.currency},depositHint(){return this.store.config.depositHint},activeP2p(){const t=this.store.p2pIssuance;return t&&(!t.expires_at||t.expires_at>this.p2pNow)?t:null},activeP2pSum(){var t;return(((t=this.activeP2p)==null?void 0:t.sum)??0).toLocaleString("ru-RU",{maximumFractionDigits:2})},activeP2pTimeLeft(){var t;return A((((t=this.activeP2p)==null?void 0:t.expires_at)??0)-this.p2pNow)},config(){let t=Object.assign({},this.store.config.deposit.hint[this.store.currencyCode]||{min:1,max:5e5});if(this.activePsLimits&&this.activePsLimits.length){const e=this.activePsLimits.find(i=>i.currency===this.store.currencyCode);e&&(t.min=e.min,t.max=e.max)}return t},error(){var o;const t=new Intl.NumberFormat(void 0,{maximumFractionDigits:0}),e=t.format(this.config.min),i=t.format(this.config.max);return(o=this.activePayTag)!=null&&o.startsWith("crosspay_phone_t2:phone:tele2")?`ÐÐ»Ñ Tele2 ÑÑмма Ð¾Ñ ${e} до ${i}`:`УкажиÑе ÑÑÐ¼Ð¼Ñ Ð¾Ñ ${e} до ${i}`},pss(){const t=this.store.config.ps_in||[],e=[],i={},o={"crosspay_p2p:card:p2p":this.$t("payIn.p2p.label"),"highhelp1:card:trp2p":this.$t("payIn.trp2p.label")};return t.forEach(n=>{const r=n.psId,p=n.type,m=n.icon,g=`${r}:${p}:${m}`,v=p==="phone"?this.$t("payIn.payPhone"):p==="p2p_router"?this.$t("payIn.p2p.label"):this.$t("payIn.button");i[p]||(i[p]=0),this.btnLogos[m]||i[p]++;const y=i[p],a=(o[g]||v)+(y>1?" "+y:""),w=this.btnLogos[m]||null;e.push({id:r,tag:p,label:a,logo:w,imageTag:m,psString:g,limits:n.limits||[]})}),e}},beforeUnmount(){this.p2pTimer&&(clearInterval(this.p2pTimer),this.p2pTimer=null)},methods:{watchP2pExpiration(){this.p2pNow=Math.floor(Date.now()/1e3);const t=this.store.p2pIssuance;!(t!=null&&t.expires_at)||t.expires_at>this.p2pNow||this.p2pRefreshing||(this.p2pRefreshing=!0,this.store.p2pActive().catch(()=>null).finally(()=>{this.p2pRefreshing=!1}))},depositPhone(t){d({name:"deposit-phone",query:{sum:this.depositValue,ps:t}})},depositPhoneRedirect(t){d({name:"deposit-phone-redirect",query:{sum:this.depositValue,ps:t,c:btoa(JSON.stringify(this.config))}})},depositCardRedirect(t){d({name:"deposit-card",query:{sum:this.depositValue,ps:t}})}
2,plusDeposit(t){this.depositValue=t,this.customDepositValue=!1},async deposit(t,e,i,o){if(this.activePayTag=i,this.activePsLimits=o,this.p2pError="",this.v$=V(this.$options.validations.call(this),this),!await this.v$.$validate()||this.isDepositInProgress)return;if(this.isDepositInProgress=!0,["paycos1","paycos_gate1_mk","truetransact_mk_untrusted","truetransact_mk_trusted"].includes(t))return this.depositPhone(t);if(["crosspay_phone","crosspay_phone_t2","coocoopay1","coocoopay1_trusted","decard_mk1","decard_mk1_trusted","estihight1_mk_untrusted","estihight1_mk_trusted"].includes(t))return this.depositPhoneRedirect(t);if(e==="card_h2h")return this.depositCardRedirect(t);if(e==="p2p_router")return this.depositP2pRouter(t);if(this.loadingsStore.loadingCommit(),e==="crypto"){d({name:"deposit-crypto",params:{ps:t}});return}const r=this.depositData(i);this.store.deposit(r).then(p=>this.handleSubmit(p))},async depositP2pRouter(t){this.loadingsStore.loadingCommit();const{ps:e,...i}=this.depositData(t);let o=null;try{o=await this.store.p2pIssue({buttons_list_id:e,...i})}catch{o=null}if(this.isDepositInProgress=!1,this.loadingsStore.loadingCompleteCommit(),o&&o.ok&&o.issuance){d({name:"in-p2p"});return}this.p2pError=this.p2pErrorText(o==null?void 0:o.error)},p2pErrorText(t){const e=`payIn.p2p.error.${t}`,i=t?this.$t(e):e;return i!==e?i:this.$t("payIn.p2p.error.default")},depositData(t){const e=this.router.resolve({name:"deposit-success"}),i=this.router.resolve({name:"deposit-error"}),o=this.router.resolve({name:"deposit-pending"}),n=this.router.resolve({name:"in"});return{sum:this.depositValue,success_url:new URL(e.href,location.origin).toString(),failed_url:new URL(i.href,location.origin).toString(),pending_url:new URL(o.href,location.origin).toString(),return_url:new URL(n.href,location.origin).toString(),ps:t}},handleSubmit(t){if(this.store.fetchBalance(),t.ok){const e=this.store.takeDepositP2p(t);if(e&&!e.redirect){this.isDepositInProgress=!1,this.loadingsStore.loadingCompleteCommit(),d({name:"deposit-p2p"});return}const i=e?e.redirect:t.redirect,o=e?"GET":t.redirect_method,n=e?null:t.post_data;if(!e&&t.iframe&&navigator.userAgent.includes("iPhone")){d({name:"deposit-iframe",params:{url:t.redirect}});return}if(!this.hasPageshowListener){const r=p=>{p.persisted&&(this.isDepositInProgress=!1,this.loadingsStore.loadingCompleteCommit(),window.removeEventListener("pageshow",r),this.hasPageshowListener=!1)};window.addEventListener("pageshow",r),this.hasPageshowListener=!0}this.store.redirect(i,o,n)}else d({name:"deposit-error"})}}},Z={class:"deposit-form"},K={class:"deposit-form__container"},Q={class:"deposit__input"},X={class:"title"},Y={class:"currency"},tt={key:0,class:"p2p-banner deposit-form__container"},et={class:"p2p-banner__row"},st={class:"p2p-banner__text"},it={key:0,class:"p2p-banner__timer"},ot={class:"buttons"},rt=["onClick"],nt=["src","alt"],at={key:1,class:"p2p-error"},pt={key:2,class:"kaspi-link-container"},lt={key:3};function ut(t,e,i,o,n,r){const p=P("PromoBanner"),m=P("Hint"),g=P("Help"),v=H,y=P("PromoCode");return c(),u("div",Z,[_(p),s("div",K,[s("div",Q,[s("p",X,l(t.$t("payIn.sum.label")),1),s("div",{class:I(["input__default",{"in-error":o.v$.depositValue.$error}])},[S(s("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>n.depositValue=a),inputmode:"numeric",onInput:e[1]||(e[1]=a=>n.customDepositValue=!0)},null,544),[[$,n.depositValue]]),s("p",Y,l(r.currency),1),s("p",{class:I(["error__label",{"in-error":o.v$.depositValue.$error}])},l(r.error),3)],2)]),_(m,{"on-click":r.plusDeposit},null,8,["on-click"]),_(g,{style:{position:"absolute",top:"0",right:"10px"}},{default:L(()=>e[2]||(e[2]=[h(" ÐпиÑиÑе ÑÑÐ¼Ð¼Ñ Ð¸ вÑбеÑиÑе меÑод оплаÑÑ."),s("br",null,null,-1),s("br",null,null,-1),h(" * ÐÑи оплаÑе баланÑом мобилÑного ÑелеÑона, заÑиÑление денег пÑоиÑÑ
Ð¾Ð´Ð¸Ñ Ñ Ð·Ð°Ð´ÐµÑжкой до 1 минÑÑÑ."),s("br",null,null,-1),s("br",null,null,-1),h(" ** ÐÐ»Ñ Ð·Ð°ÑиÑÐ»ÐµÐ½Ð¸Ñ ÐаÑпи пеÑевода, оÑпÑавÑÑе в ÑÐ°Ñ ÑеÑ
поддеÑжки ÑкÑин Ñека. ")])),_:1})]),r.activeP2p?(c(),u("div",tt,[s("div",et,[e[3]||(e[3]=s("svg",{class:"p2p-banner__icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[s("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor","stroke-width":"1.5"}),s("path",{d:"M10 9v5",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"}),s("circle",{cx:"10",cy:"6",r:"1",fill:"currentColor"})],-1)),s("p",st,[h(l(t.$t("payIn.p2p.activeBanner"))+" ",1),s("strong",null,l(r.activeP2pSum)+" "+l(r.activeP2p.currency),1),r.activeP2pTimeLeft?(c(),u("span",it,l(t.$t("payIn.p2p.expiresIn"))+" "+l(r.activeP2pTimeLeft),1)):f("",!0)])]),_(v,{to:{name:"in-p2p"},class:"p2p-banner__link"},{default:L(()=>[h(l(t.$t("payIn.p2p.show")),1)]),_:1})])):f("",!0),s("div",ot,[(c(!0),u(x,null,B(r.pss,(a,w)=>(c(),u("button",{key:a.id+"_"+w,class:I([["btn__orange",`btn__orange-${a.imageTag}`],"btn__orange"]),onClick:ct=>r.deposit(a.id,a.tag,a.psString,a.limits)},[a.logo?(c(),u("img",{key:0,class:"pay-icon",src:a.logo,alt:a.tag},null,8,nt)):(c(),u(x,{key:1},[h(l(a.label),1)],64))],10,rt))),128))]),n.p2pError?(c(),u("p",at,l(n.p2pError),1)):f("",!0),r.kaspi.enabled?(c(),u("div",pt,[_(v,{to:{name:"deposit-kaspi"},tag:"button",class:"btn__orange kaspi_button"},{default:L(()=>[h(l(t.$t("payIn.kaspi.link")),1)]),_:1})])):f("",!0),r.depositHint?(c(),u("div",lt,[e[4]||(e[4]=s("br",null,null,-1)),h(" "+l(r.depositHint),1)])):f("",!0),_(y),e[5]||(e[5]=s("br",null,null,-1)),e[6]||(e[6]=s("br",null,null,-1)),e[7]||(e[7]=s("br",null,null,-1)),e[8]||(e[8]=s("br",null,null,-1)),e[9]||(e[9]=s("br",null,null,-1))])}const vt=F(W,[["render",ut],["__scopeId","data-v-5126a70f"]]);export{vt as default};
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.