PageSourceSearch

https://ubistake.io/js/744.0abe40e2.js

js ubistake.io collected 2026-10-09 00:20:55 UTC 9,603 bytes, 1 lines download raw bytes

1"use strict";(globalThis["webpackChunkubi"]=globalThis["webpackChunkubi"]||[]).push([[744],{8744:(e,a,t)=>{t.r(a),t.d(a,{default:()=>k});var o=t(3673);const i={class:"q-pa-md"};function l(e,a,t,l,s,n){const r=(0,o.up)("q-tab"),d=(0,o.up)("q-tabs"),u=(0,o.up)("q-icon"),m=(0,o.up)("q-input"),c=(0,o.up)("q-btn"),p=(0,o.up)("q-form"),g=(0,o.up)("q-tab-panel"),h=(0,o.up)("q-tab-panels"),w=(0,o.up)("q-card");return(0,o.wg)(),(0,o.iD)("div",i,[(0,o.Wm)(w,{class:"q-pa-lg roundBtn",flat:""},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:e.tab,"onUpdate:modelValue":a[0]||(a[0]=a=>e.tab=a),dense:"",class:"text-grey","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{name:"login",label:"Log In"}),(0,o.Wm)(r,{name:"signUp",label:"Sign Up"})])),_:1},8,["modelValue"]),(0,o.Wm)(h,{modelValue:e.tab,"onUpdate:modelValue":a[12]||(a[12]=a=>e.tab=a),animated:""},{default:(0,o.w5)((()=>[(0,o.Wm)(g,{name:"login",class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[e.twoFactorToken?((0,o.wg)(),(0,o.j4)(p,{key:1,onSubmit:e.sendTwoFactorAuth,class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:e.twoFactorCode,"onUpdate:modelValue":a[5]||(a[5]=a=>e.twoFactorCode=a),"lazy-rules":"",rules:[e=>e&&e.length>0&&e.length<7||"Code is invalid"],label:"Please use Ubikiri 2fa code",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:"number","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"key"})])),_:1},8,["modelValue","rules"]),(0,o.Wm)(c,{label:"Sign in",type:"submit",loading:e.loading,color:"primary",class:"roundBtn paddingBtn"},null,8,["loading"])])),_:1},8,["onSubmit"])):((0,o.wg)(),(0,o.j4)(p,{key:0,onSubmit:e.sendLoginData,class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:e.email,"onUpdate:modelValue":a[1]||(a[1]=a=>e.email=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Email address is required",a=>!1!==e.isValidEmail(a)||"Email has incorrect format"],label:"Email",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:"email",autocomplete:"username","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"mail"})])),_:1},8,["modelValue","rules"]),(0,o.Wm)(m,{modelValue:e.password,"onUpdate:modelValue":a[3]||(a[3]=a=>e.password=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Password is required"],label:"Password",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:e.isPwdLogin?"password":"text",autocomplete:"current-password","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"key"})])),append:(0,o.w5)((()=>[(0,o.Wm)(u,{name:e.isPwdLogin?"visibility_off":"visibility",class:"cursor-pointer",onClick:a[2]||(a[2]=a=>e.isPwdLogin=!e.isPwdLogin)},null,8,["name"])])),_:1},8,["modelValue","rules","type"]),(0,o.Wm)(c,{label:"Sign in",type:"submit",loading:e.loading,color:"primary",class:"roundBtn paddingBtn"},null,8,["loading"]),(0,o._)("div",null,[(0,o._)("a",{onClick:a[4]||(a[4]=a=>e.tab="recover"),target:"_blank",class:"cursor-pointer",style:{"text-decoration":"none","margin-top":"15px",color:"#2251fc"}},"Forgot password?")])])),_:1},8,["onSubmit"]))])),_:1}),(0,o.Wm)(g,{name:"signUp",class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{onSubmit:e.sendRegisterData,class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:e.newEmail,"onUpdate:modelValue":a[6]||(a[6]=a=>e.newEmail=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Email address is required",a=>!1!==e.isValidEmail(a)||"Email has incorrect format"],label:"Email",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:"email",autocomplete:"username","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"mail"})])),_:1},8,["modelValue","rules"]),(0,o.Wm)(m,{modelValue:e.newPassword,"onUpdate:modelValue":a[8]||(a[8]=a=>e.newPassword=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Password is required"],label:"Password",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:e.isPwdNew?"password":"text",autocomplete:"current-password","hide-bottom-sp
1ace":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"key"})])),append:(0,o.w5)((()=>[(0,o.Wm)(u,{name:e.isPwdNew?"visibility_off":"visibility",class:"cursor-pointer",onClick:a[7]||(a[7]=a=>e.isPwdNew=!e.isPwdNew)},null,8,["name"])])),_:1},8,["modelValue","rules","type"]),(0,o.Wm)(m,{modelValue:e.confPassword,"onUpdate:modelValue":a[10]||(a[10]=a=>e.confPassword=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Password is required",a=>a===e.newPassword||"Passwords are not equal"],label:"Confirm password",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:e.isPwdConf?"password":"text",autocomplete:"current-password","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"key"})])),append:(0,o.w5)((()=>[(0,o.Wm)(u,{name:e.isPwdConf?"visibility_off":"visibility",class:"cursor-pointer",onClick:a[9]||(a[9]=a=>e.isPwdConf=!e.isPwdConf)},null,8,["name"])])),_:1},8,["modelValue","rules","type"]),(0,o.Wm)(c,{label:"Sign Up",type:"submit",loading:e.loading,color:"primary",class:"roundBtn paddingBtn"},null,8,["loading"])])),_:1},8,["onSubmit"])])),_:1}),(0,o.Wm)(g,{name:"recover"},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{onSubmit:e.sendRecoverEmail,class:"q-gutter-y-lg"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:e.emailForRecover,"onUpdate:modelValue":a[11]||(a[11]=a=>e.emailForRecover=a),"lazy-rules":"",rules:[e=>e&&e.length>0||"Email address is required",a=>!1!==e.isValidEmail(a)||"Email has incorrect format"],label:"Email",borderless:"",class:"nonPadding grayInput grayInputColor q-px-md inputWithRules bitUpHeightOnly",type:"email",autocomplete:"username","hide-bottom-space":""},{prepend:(0,o.w5)((()=>[(0,o.Wm)(u,{name:"mail"})])),_:1},8,["modelValue","rules"]),(0,o.Wm)(c,{label:"Send",type:"submit",loading:e.loading,color:"primary",class:"roundBtn paddingBtn"},null,8,["loading"])])),_:1},8,["onSubmit"])])),_:1})])),_:1},8,["modelValue"])])),_:1})])}t(5663);var s=t(993),n=t(6868),r=t.n(n),d=t(7291);const u=(0,o.aZ)({name:"Login",data(){return{tab:"login",password:"",newPassword:"",confPassword:"",isPwdLogin:!0,isPwdNew:!0,isPwdConf:!0,newEmail:"",email:"",emailForRecover:null,loading:!1,twoFactorCode:null,twoFactorToken:null}},methods:{async sendLoginData(){const e=this;try{e.loading=!0;const a={email:e.email,password:e.password},t=await s.T.auth(a);t.twoFaRequired?e.twoFactorToken=t.twoFaToken:t.access_token?e.completeSingIn(t):r()(e.q,"negative","Login Error",t.data),e.loading=!1}catch(a){this.loading=!1,r()(this.$q,"negative","Login Error",a)}},sendTwoFactorAuth(){const e={code:this.twoFactorCode,token:this.twoFactorToken};s.T.sendTwoFactorCode(e).then((e=>{this.completeSingIn(e)})).catch((e=>{r()(this.$q,"negative","Login Error",e)})).finally((()=>{this.loading=!1}))},sendRegisterData(){this.loading=!0;let e={email:this.newEmail,password:this.newPassword,confirmPassword:this.confPassword,confirmationAction:"login"};s.T.register(e).then((()=>{this.$route.query.inviteCode&&localStorage.setItem("ubistakeInviteCode",JSON.stringify({user:this.newEmail,code:this.$route.query.inviteCode})),r()(this.$q,"positive","A confirmation message has been sent to your email"),this.tab="login"})).catch((e=>{r()(this.$q,"negative","Unsuccessful",e)})).finally((()=>{this.loading=!1}))},isValidPassword(e){const a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!#%*?&])[A-Za-z\d@$!#%*?&]{8,}$/g;return a.test(e)||!1},isValidEmail(e){const a=/^(?=[a-zA-Z0-9@._%+-]{6,254}$)[a-zA-Z0-9._%+-]{1,64}@(?:[a-zA-Z0-9-]{1,63}\.){1,8}[a-zA-Z]{2,63}$/,t=/[а-яё]/i;return a.test(e)&&!t.test(e)||!1},completeSingIn(e){this.fillAuthStorage(e).then((()=>{localStorage.setItem("ubistakeEmail",this.email),this.$router.push({name:"Dashboard"})}))},sendRecoverEmail(){const e={confirmationAction:"auth/restore-confirm",email:this.emailForRecover};s.T.recoverPassword(e).then((()=>{r()(this.$q,"positive","The email has been sent to your address"),this.tab="login"})).catch((e=>r()(this.$q,"negative","Error",e)))},async fillAuthStorage(e){sessionStorage.setItem("user",JSON.stringify({token:e.access_token})),this.$store.commit("fillUserData",e),await s.T.getInfo().then((async e=>{let a=localStorage.getItem("ubistakeInviteCode");if(a){const t=JSON.parse(a);
1t.user===data.email&&(await d.d.registerInviteCode({inviteCode:t.code,userId:e.id,source:1}),localStorage.removeItem("ubistakeInviteCode"))}}))}},created(){this.$route.query.inviteCode&&r()(this.$q,"positive","Invite code was applied"),this.$route.query.transferToken&&s.T.authByToken(this.$route.query.transferToken).then((e=>{this.fillAuthStorage(e).then(this.$router.push({name:"Dashboard"}))})).catch((e=>{r()(this.$q,"negative","Login Error",e)})),this.$route.query.email&&this.$route.query.token&&s.T.confirmEmail({email:this.$route.query.email,confirmationToken:this.$route.query.token}).then((()=>{r()(this.$q,"positive","Email has been confirmed"),this.$router.push({name:"Login"})})).catch((e=>{r()(this.$q,"negative","Confirmation error",e)})),localStorage.getItem("ubistakeEmail")&&(this.email=localStorage.getItem("ubistakeEmail"))}});var m=t(4260),c=t(151),p=t(7547),g=t(8408),h=t(5906),w=t(6602),b=t(8689),y=t(4689),f=t(4554),q=t(2165),v=t(7518),P=t.n(v);const W=(0,m.Z)(u,[["render",l]]),k=W;P()(u,"components",{QCard:c.Z,QTabs:p.Z,QTab:g.Z,QTabPanels:h.Z,QTabPanel:w.Z,QForm:b.Z,QInput:y.Z,QIcon:f.Z,QBtn:q.Z})}}]);

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.