1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BHX5TmX2.js","./Ci0sP1HV.js","./BKc8u1VI.js","./Hint.DVV1weN0.css","./Co-D4qdG.js","./TelInput.BnJsxFsw.css"])))=>i.map(i=>d[i]); 2import{a as v,j as y,f as b,u as w,n as l,r as c,c as L,q as s,B as u,Z as m,H as S,a0 as I,t as d,d as p,o as x,_}from"./Ci0sP1HV.js";import{u as D,r as h,i as V,b as C,c as P,m as R}from"./HEFRrgjh.js";import{_ as $}from"./BKc8u1VI.js";const T=p(()=>_(()=>import("./BHX5TmX2.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),E=p(()=>_(()=>import("./Co-D4qdG.js"),__vite__mapDeps([4,1,2,5]),import.meta.url)),k={components:{Hint:T,TelInput:E},setup(){const e=v(),t=y(),o=b(),n=w(),i=D();return{router:e,route:t,store:o,loadingsStore:n,v$:i}},data(){return{hasPageshowListener:!1,phone:"",sum:"",ps:""}},validations(){return{sum:{required:h,integer:V,minValue:C(this.config.min),maxValue:P(this.config.max)},phone:{required:h,minLength:R(11)}}},computed:{config(){let e=Object.assign({},this.store.config.deposit.hint[this.store.currencyCode]||{min:1,max:5e5});if(this.store.currencyCode==="KZT"&&this.route.query.c){const t=JSON.parse(atob(this.route.query.c));e.min=t.min,e.max=t.max}return e},currency(){return this.store.currency},error(){const e=new Intl.NumberFormat(void 0,{maximumFractionDigits:0}),t=e.format(this.config.min),o=e.format(this.config.max);return`УкажиÑе ÑÑÐ¼Ð¼Ñ Ð¾Ñ ${t} до ${o}`}},methods:{setSum(e){this.sum=e},initDeposit(){if(this.v$.$touch(),this.v$.$error)return;this.loadingsStore.loadingCommit();const e=this.depositData();this.store.depositPhone(e).then(t=>this.handleSubmit(t))},depositData(){const e=this.router.resolve({name:"deposit-success"}),t=this.router.resolve({name:"deposit-error"});return{ps:this.ps,sum:this.sum,success_url:new URL(e.href,location.origin).toString(),failed_url:new URL(t.href,location.origin).toString(),phone:this.phone}},handleSubmit(e){if(this.store.fetchBalance(),e.ok){if(e.iframe&&navigator.userAgent.includes("iPhone")){l({name:"deposit-iframe",params:{url:e.redirect}});return}if(!this.hasPageshowListener){const t=o=>{o.persisted&&(this.loadingsStore.loadingCompleteCommit(),window.removeEventListener("pageshow",t),this.hasPageshowListener=!1)};window.addEventListener("pageshow",t),this.hasPageshowListener=!0}this.store.redirect(e.redirect,e.redirect_method)}else l({name:"deposit-error"})}},created(){this.sum=this.route.query.sum,this.ps=this.route.query.ps,/^\d{11}$/.test(this.store.player_label)&&(this.phone=this.store.player_label)}},q={class:"deposit-form"},B={class:"deposit-form__title"},A={class:"deposit-form__container"},H={class:"deposit__input"},N={class:"title"},O={class:"currency"},U={class:"deposit-form__container"},j={class:"buttons"};function F(e,t,o,n,i,r){const f=c("Hint"),g=c("TelInput");return x(),L("div",q,[s("div",B,u(e.$t("payIn.phone.header")),1),s("div",A,[s("div",H,[s("p",N,u(e.$t("payIn.sum.label")),1),s("div",{class:m(["input__default",{"in-error":n.v$.sum.$error}])},[S(s("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>i.sum=a),inputmode:"numeric"},null,512),[[I,i.sum]]),s("p",O,u(r.currency),1),s("p",{class:m(["error__label",{"in-error":n.v$.sum.$error}])},u(r.error),3)],2)]),d(f,{"on-click":r.setSum},null,8,["on-click"])]),t[3]||(t[3]=s("br",null,null,-1)),s("div",U,[d(g,{value:i.phone,"onUpdate:value":t[1]||(t[1]=a=>i.phone=a),title:e.$t("payIn.phone.phoneLabel"),validate:n.v$.phone,"custom-style":{marginBottom:"16px"}},null,8,["value","title","validate"])]),s("div",j,[s("button",{class:"btn__orange",onClick:t[2]||(t[2]=(...a)=>r.initDeposit&&r.initDeposit(...a))},u(e.$t("payIn.phone.pay")),1)])])}const K=$(k,[["render",F],["__scopeId","data-v-5c0f08e5"]]);export{K 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.