PageSourceSearch

https://loto-club-37kz.site/_nuxt/E8L0ShiI.js

js loto-club-37kz.site collected 2026-10-07 08:46:36 UTC 6,074 bytes, 1 lines download raw bytes

1import{u as g,r as u,m as v,a as _}from"./HEFRrgjh.js";import{a as f,j as y,f as $,u as b,n as m,$ as N,c as w,q as t,B as o,Z as l,H as h,a0 as p,o as x}from"./Ci0sP1HV.js";import{_ as L}from"./BKc8u1VI.js";const S={setup(){const e=f(),r=y(),a=$(),s=b(),i=g();return{router:e,route:r,store:a,loadingsStore:s,v$:i}},data(){return{hasPageshowListener:!1,sum:"",ps:"",cardNumber:"",cardNumberMasked:"",cardholderName:"",expiry:"",cvv:""}},validations(){return{cardNumber:{required:u,numeric:e=>/^\d*$/.test(e),minLength:v(16),maxLength:_(16),luhn:e=>!/^\d{16}$/.test(e)||this.isValidLuhn(e)},cardholderName:{required:u,full:e=>!!e&&e.trim().split(/\s+/).length>=2,validChars:e=>!e||/^[a-zA-Zа-яА-ЯёЁ\s-]+$/.test(e)},expiry:{required:u,valid:e=>/^\d{2}\/\d{2}$/.test(e)&&this.isExpiryValid(e)},cvv:{required:u,numeric:e=>/^\d*$/.test(e),minLength:v(3),maxLength:_(3)}}},computed:{cardNumberError(){return this.v$.cardNumber.required.$invalid?this.$t("payIn.card.cardNumber.required"):this.v$.cardNumber.minLength.$invalid||this.v$.cardNumber.maxLength.$invalid?this.$t("payIn.card.cardNumber.full"):this.v$.cardNumber.luhn.$invalid?this.$t("payIn.card.cardNumber.invalid"):""},cardholderNameError(){return this.v$.cardholderName.required.$invalid?this.$t("payIn.card.name.required"):this.v$.cardholderName.validChars.$invalid?this.$t("payIn.card.name.invalid"):this.v$.cardholderName.full.$invalid?this.$t("payIn.card.name.required"):""},expiryError(){return this.v$.expiry.required.$invalid?this.$t("payIn.card.expiry.required"):this.$t("payIn.card.expiry.invalid")}},methods:{isValidLuhn(e){let r=0,a=!1;for(let s=e.length-1;s>=0;s--){let i=parseInt(e[s],10);a&&(i*=2,i>9&&(i-=9)),r+=i,a=!a}return r%10===0},isExpiryValid(e){const[r,a]=e.split("/").map(Number);if(!r||r<1||r>12)return!1;const s=new Date,i=s.getFullYear()%100,n=s.getMonth()+1;return a<i?!1:!(a===i&&r<n)},initDeposit(){if(this.v$.$touch(),this.v$.$error)return;this.loadingsStore.loadingCommit();const e=this.depositData();this.store.deposit(e).then(r=>this.handleSubmit(r))},depositData(){const e=this.router.resolve({name:"deposit-success"}),r=this.router.resolve({name:"deposit-error"}),a=this.router.resolve({name:"deposit-pending"}),s=this.router.resolve({name:"deposit"}),[i,n]=this.expiry.split("/");return{sum:this.sum,success_url:new URL(e.href,location.origin).toString(),failed_url:new URL(r.href,location.origin).toString(),pending_url:new URL(a.href,location.origin).toString(),return_url:new URL(s.href,location.origin).toString(),ps:this.ps,card:{cardNumber:this.cardNumber,cardSecurityCode:this.cvv,cardholderName:this.cardholderName,expiryMonth:i,expiryYear:n},browser:this.collectBrowser()}},collectBrowser(){return{accept_header:"",java_enabled:navigator.javaEnabled?navigator.javaEnabled():!1,language:navigator.language||"",color_depth:String(window.screen.colorDepth),screen_height:String(window.screen.height),screen_width:String(window.screen.width),tz:String(new Date().getTimezoneOffset()),user_agent:navigator.userAgent||""}},handleSubmit(e){if(this.store.fetchBalance(),e.ok){const r=this.store.takeDepositP2p(e);if(r&&!r.redirect){this.loadingsStore.loadingCompleteCommit(),m({name:"deposit-p2p"});return}const a=r?r.redirect:e.redirect,s=r?"GET":e.redirect_method,i=r?null:e.post_data;if(!r&&e.iframe&&navigator.userAgent.includes("iPhone")){m({name:"deposit-iframe",params:{url:e.redirect}});return}if(!this.hasPageshowListener){const n=c=>{c.persisted&&(this.loadingsStore.loadingCompleteCommit(),window.removeEventListener("pageshow",n),this.hasPageshowListener=!1)};window.addEventListener("pageshow",n),this.hasPageshowListener=!0}this.store.redirect(a,s,i)}else m({name:"deposit-error"})}},created(){this.sum=this.route.query.sum,this.ps=this.route.query.ps}},I={class:"deposit-form"},D={class:"deposit-form__title"},E={class:"deposit-form__container"},q={class:"deposit__input"},k={class:"title"},C={class:"deposit__input",style:{"margin-top":"16px"}},M={class:"title"},V={class:"card-row"},R={class:"deposit__input"},U={class:"title"},B={class:"deposit__input"},P={class:"title"},Y={class:"buttons"};function j(e,r,a,s,i,n){const c=N("maska");return x(),w("div",I,[t("div",D,o(e.$t("payIn.card.header")),1),t("div",E,[t("div",q,[t("p",k,o(e.$t("payIn.card.cardNumber.label")),1),t("div",{class:l(["input__default",{"in-error":s.v$.cardNumber.$error}])},[h(t("input",{"onUpdate:modelValue":r[0]||(r[0]=d=>i.cardNumberMasked=d),type:"text",inputmode:"numeric",placeholder:"0000 0000 0000 0000"},null,512),[[p,i.cardNumberMasked],[c,"#### #### #### ####","cardNumber",{unmasked:!0}]]),t("p",{class:l(["error__label",{"in-error":s.v$.cardNumber.$error}])},o(n.cardNumberError),3)],2)]),t("div",C,[t("p",M,o(e.$t("payIn.card.name.label")),1),t("div",{class:l(["input__default",{"in-error":s.v$.cardholderName.$error}])},[h(t("input",{"onUpdate:modelValue":r[1]||(r[1]=d=>i.cardholderName=d),type:"text",placeholder:"Марат Маратов"},null,512),[[p,i.cardholderName]]),t("p",{class:l(["error__label",{"in-error":s.v$.cardholderName.$error}])},o(n.cardholderNameError),3)],2)]),t("div",V,[t("div",R,[t("p",U,o(e.$t("payIn.card.expiry.label")),1),t("div",{class:l(["input__default",{"in-error":s.v$.expiry.$error}])},[h(t("input",{"onUpdate:modelValue":r[2]||(r[2]=d=>i.expiry=d),type:"text",inputmode:"numeric",placeholder:"MM/YY"},null,512),[[p,i.expiry],[c,"##/##"]]),t("p",{class:l(["error__label",{"in-error":s.v$.expiry.$error}])},o(n.expiryError),3)],2)]),t("div",B,[t("p",P,o(e.$t("payIn.card.cvv.label")),1),t("div",{class:l(["input__default",{"in-error":s.v$.cvv.$error}])},[h(t("input",{"onUpdate:modelValue":r[3]||(r[3]=d=>i.cvv=d),type:"text",inputmode:"numeric",placeholder:"000"},null,512),[[p,i.cvv],[c,"###"]]),t("p",{class:l(["error__label",{"in-error":s.v$.cvv.$error}])},o(e.$t("payIn.card.cvv.required")),3)],2)])])]),t("div",Y,[t("button",{class:"btn__orange",onClick:r[4]||(r[4]=(...d)=>n.initDeposit&&n.initDeposit(...d))},o(e.$t("payIn.card.pay")),1)])])}const Z=L(S,[["render",j],["__scopeId","data-v-3bd4e5cf"]]);export{Z 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.