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 T,j as I,f as R,u as x,n as u,r as y,c as d,t as g,q as o,B as c,Z as V,H as S,a0 as E,z as C,a1 as L,a2 as $,J as D,A as m,d as b,o as p,_ as v}from"./Ci0sP1HV.js";import{_ as H}from"./CdWYa0-C.js";import{u as B}from"./Bd1wy2PH.js";import{u as w,r as A,i as q,b as N,c as O}from"./HEFRrgjh.js";import{_ as U}from"./BKc8u1VI.js";const F=b(()=>v(()=>import("./ZUeerhpf.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),j=b(()=>v(()=>import("./BHX5TmX2.js"),__vite__mapDeps([6,3,4,7]),import.meta.url)),z=b(()=>v(()=>import("./k4OLQiop.js"),__vite__mapDeps([8,3,4,9]),import.meta.url)),J=b(()=>v(()=>import("./BTShGQcf.js"),__vite__mapDeps([10,3,11,4,12]),import.meta.url)),M={components:{PromoBanner:F,Hint:j,PromoCode:z,Help:J},setup(){const e=B(),t=T(),i=I(),n=R(),r=x(),s=w();return{router:t,route:i,store:n,loadingsStore:r,v$:s,btnLogos:e}},data(){return{depositValue:this.route.query.sum||"",customDepositValue:!1,hasPageshowListener:!1,phone:"",showPhoneBlock:!1,activePayTag:null,isDepositInProgress:!1}},validations(){return{depositValue:{required:A,integer:q,minValue:N(this.config.min),maxValue:O(this.config.max)}}},computed:{kaspiPhoneToCopy(){const e=this.store.config.deposit.kaspi.phone;return e.substring(0,2)==="+7"?e.substring(2):e},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},config(){let e=Object.assign({},this.store.config.deposit.hint[this.store.currencyCode]||{min:1,max:5e5});if(this.activePayTag&&this.store.currencyCode==="KZT"){let t=this.activePayTag.split("|");t.length>1&&(t=t[1].split("-"),e.min=t[0],e.max=t[1])}return e},error(){var n;const e=new Intl.NumberFormat(void 0,{maximumFractionDigits:0}),t=e.format(this.config.min),i=e.format(this.config.max);return(n=this.activePayTag)!=null&&n.startsWith("crosspay_phone_t2:phone:tele2")?`ÐÐ»Ñ Tele2 ÑÑмма Ð¾Ñ ${t} до ${i}`:`УкажиÑе ÑÑÐ¼Ð¼Ñ Ð¾Ñ ${t} до ${i}`},pss(){const e=this.store.config.deposit.enabled,t=[],i={},n={"crosspay_p2p:card:p2p":this.$t("payIn.p2p.label"),"highhelp1:card:trp2p":this.$t("payIn.trp2p.label")};return e.forEach(r=>{const s=r.split("|")[0],[h,l,_]=s.split(":"),k=l==="phone"?this.$t("payIn.payPhone"):this.$t("payIn.button");i[l]||(i[l]=0),this.btnLogos[_]||i[l]++;const f=i[l],a=(n[s]||k)+(f>1?" "+f:""),P=this.btnLogos[_]||null;t.push({id:h,tag:l,label:a,logo:P,imageTag:_,item:r})}),t}},methods:{depositPhone(e){u({name:"deposit-phone",query:{sum:this.depositValue,ps:e}})},depositPhoneRedirect(e){u({name:"deposit-phone-redirect",query:{sum:this.depositValue,ps:e,c:btoa(JSON.stringify(this.config))}})},depositCardRedirect(e){u({name:"deposit-card",query:{sum:this.depositValue,ps:e}})},plusDeposit(e){this.depositValue=e,this.customDepositValue=!1},async deposit(e,t,i){if(this.activePayTag=i,this.v$=w(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(e))return this.depositPhone(e);if(["crosspay_phone","crosspay_phone_t2","coocoopay1","coocoopay1_trusted","decard_mk1","decard_mk1_trusted","estihight1_mk_untrusted","estihight1_mk_trusted"].includes(e))return this.depositPhoneRedirect(e);if(t==="card_h2h")return this.depositCardRedirect(e);if(this.loadingsStore.loadingCommit(),t==="crypto"){u({name:"deposit-crypto",params:{ps:e}});return}const r=this.depositData(i.split("|")[0]);this.store.deposit(r).then(s=>this.handleSubmit(s))},depositData(e){const t=this.router.resolve({name:"deposit-success"}),i=this.router.resolve({name:"deposit-error"}),n=this.router.resolve({name:"deposit-pending"}),r=this.router.resolve({name:"deposit"});
2return{sum:this.depositValue,success_url:new URL(t.href,location.origin).toString(),failed_url:new URL(i.href,location.origin).toString(),pending_url:new URL(n.href,location.origin).toString(),return_url:new URL(r.href,location.origin).toString(),ps:e}},handleSubmit(e){if(this.store.fetchBalance(),e.ok){const t=this.store.takeDepositP2p(e);if(t&&!t.redirect){this.isDepositInProgress=!1,this.loadingsStore.loadingCompleteCommit(),u({name:"deposit-p2p"});return}const i=t?t.redirect:e.redirect,n=t?"GET":e.redirect_method,r=t?null:e.post_data;if(!t&&e.iframe&&navigator.userAgent.includes("iPhone")){u({name:"deposit-iframe",params:{url:e.redirect}});return}if(!this.hasPageshowListener){const s=h=>{h.persisted&&(this.isDepositInProgress=!1,this.loadingsStore.loadingCompleteCommit(),window.removeEventListener("pageshow",s),this.hasPageshowListener=!1)};window.addEventListener("pageshow",s),this.hasPageshowListener=!0}this.store.redirect(i,n,r)}else u({name:"deposit-error"})}}},Z={class:"deposit-form"},G={class:"deposit-form__container"},K={class:"deposit__input"},W={class:"title"},Q={class:"currency"},X={class:"buttons"},Y=["onClick"],tt=["src","alt"],et={key:0,class:"kaspi-link-container"},st={key:1};function ot(e,t,i,n,r,s){const h=y("PromoBanner"),l=y("Hint"),_=y("Help"),k=H,f=y("PromoCode");return p(),d("div",Z,[g(h),o("div",G,[o("div",K,[o("p",W,c(e.$t("payIn.sum.label")),1),o("div",{class:V(["input__default",{"in-error":n.v$.depositValue.$error}])},[S(o("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>r.depositValue=a),inputmode:"numeric",onInput:t[1]||(t[1]=a=>r.customDepositValue=!0)},null,544),[[E,r.depositValue]]),o("p",Q,c(s.currency),1),o("p",{class:V(["error__label",{"in-error":n.v$.depositValue.$error}])},c(s.error),3)],2)]),g(l,{"on-click":s.plusDeposit},null,8,["on-click"]),g(_,{style:{position:"absolute",top:"0",right:"10px"}},{default:C(()=>t[2]||(t[2]=[m(" ÐпиÑиÑе ÑÑÐ¼Ð¼Ñ Ð¸ вÑбеÑиÑе меÑод оплаÑÑ."),o("br",null,null,-1),o("br",null,null,-1),m(" * ÐÑи оплаÑе баланÑом мобилÑного ÑелеÑона, заÑиÑление денег пÑоиÑÑ
Ð¾Ð´Ð¸Ñ Ñ Ð·Ð°Ð´ÐµÑжкой до 1 минÑÑÑ."),o("br",null,null,-1),o("br",null,null,-1),m(" ** ÐÐ»Ñ Ð·Ð°ÑиÑÐ»ÐµÐ½Ð¸Ñ ÐаÑпи пеÑевода, оÑпÑавÑÑе в ÑÐ°Ñ ÑеÑ
поддеÑжки ÑкÑин Ñека. ")])),_:1})]),o("div",X,[(p(!0),d(L,null,$(s.pss,(a,P)=>(p(),d("button",{key:a.id+"_"+P,class:V([["btn__orange",`btn__orange-${a.imageTag}`],"btn__orange"]),onClick:it=>s.deposit(a.id,a.tag,a.item)},[a.logo?(p(),d("img",{key:0,class:"pay-icon",src:a.logo,alt:a.tag},null,8,tt)):(p(),d(L,{key:1},[m(c(a.label),1)],64))],10,Y))),128))]),s.kaspi.enabled?(p(),d("div",et,[g(k,{to:{name:"deposit-kaspi"},tag:"button",class:"btn__orange kaspi_button"},{default:C(()=>[m(c(e.$t("payIn.kaspi.link")),1)]),_:1})])):D("",!0),s.depositHint?(p(),d("div",st,[t[3]||(t[3]=o("br",null,null,-1)),m(" "+c(s.depositHint),1)])):D("",!0),g(f),t[4]||(t[4]=o("br",null,null,-1)),t[5]||(t[5]=o("br",null,null,-1)),t[6]||(t[6]=o("br",null,null,-1)),t[7]||(t[7]=o("br",null,null,-1)),t[8]||(t[8]=o("br",null,null,-1))])}const dt=U(M,[["render",ot],["__scopeId","data-v-7f1ceda3"]]);export{dt 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.