PageSourceSearch

http://smartclub.ai/assets/reset-confirm-G_TqGOFU.js

js smartclub.ai collected 2026-10-05 15:08:37 UTC 4,222 bytes, 2 lines download raw bytes

1import{A as p,r as V,c as _,_ as C}from"./index-B5oZ1XjT.js";import{E as n,c as f,f as d,j as l,l as c,H as t,aH as u,aa as a,a5 as g,p as w,x as v,aG as x,k as h,aQ as N,aR as S,aW as R,F as I,d as F}from"./vendor-vuetify-CZqx1F5r.js";import{_ as y,a as P,b}from"./lock-ClzDkBdR.js";import{_ as T}from"./LoginPageWrapper.vue_vue_type_style_index_0_lang-C1Oc6S2g.js";import{b as k}from"./route-block-BIO7NrfO.js";import"./vendor-sentry-CdlvO8A5.js";import"./login_separator-BTLGKtnZ.js";try{let o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="62b371d1-a2dd-459c-8105-926a46516f40",o._sentryDebugIdIdentifier="sentry-dbid-62b371d1-a2dd-459c-8105-926a46516f40")}catch{}const B={name:"ResetConfirmForm",setup(){return{appStore:_()}},data(){return{form:!1,login:"",fullName:"",newPassword:"",confirmedNewPassword:"",token:null,showPassword:!1,rules:{comparePasswords:o=>o===this.newPassword||"Passwords mismatch"},globalRules:V,regSuccess:!1,loading:!1}},computed:{origin(){return window.location.origin}},created(){this.getToken()},methods:{async submit(){this.loading=!0;try{await p.account.resetPasswordConfirm(this.newPassword,this.token),this.regSuccess=!0}catch(o){console.error("Error:",o)}finally{this.loading=!1}},toLoginPage(){this.$router.push({path:"/login"})},async getToken(){const e=new URLSearchParams(window.location.search).get("token");try{const i=await p.account.resetPasswordCheck(e);this.token=e,this.login=i.email,this.fullName=i.fullName}catch(i){console.error(i)}}}},D={key:1},U={class:"d-flex justify-center pa-12"};function q(o,e,i,A,s,m){return n(),f(I,null,[s.token&&!s.regSuccess&&!s.loading?(n(),d(x,{key:0,modelValue:s.form,"onUpdate:modelValue":e[7]||(e[7]=r=>s.form=r),class:"base-form",onSubmit:v(m.submit,["prevent"])},{default:l(()=>[e[9]||(e[9]=c("span",{class:"mb-6"}," Please enter a new password. ",-1)),t(u,{modelValue:s.login,"onUpdate:modelValue":e[0]||(e[0]=r=>s.login=r),variant:"outlined",readonly:""},null,8,["modelValue"]),t(u,{modelValue:s.newPassword,"onUpdate:modelValue":e[3]||(e[3]=r=>s.newPassword=r),variant:"outlined",label:"New password",type:s.showPassword?"text":"password",required:"",rules:[s.globalRules.newPassword,s.globalRules.required]},{"append-inner":l(()=>[s.showPassword?(n(),d(a,{key:0,width:"16",height:"16",src:P,style:{cursor:"pointer"},onClick:e[1]||(e[1]=r=>s.showPassword=!s.showPassword)})):(n(),d(a,{key:1,width:"16",height:"16",src:b,style:{cursor:"pointer"},onClick:e[2]||(e[2]=r=>s.showPassword=!s.showPassword)}))]),"prepend-inner":l(()=>[t(a,{width:"16",height:"16",src:y})]),_:1},8,["modelValue","type","rules"]),t(u,{modelValue:s.confirmedNewPassword,"onUpdate:modelValue":e[6]||(e[6]=r=>s.confirmedNewPassword=r),variant:"outlined",label:"Confirm password",type:s.showPassword?"text":"password",required:"",rules:[s.rules.comparePasswords,s.globalRules.required]},{"append-inner":l(()=>[s.showPassword?(n(),d(a,{key:0,width:"16",height:"16",src:P,style:{cursor:"pointer"},onClick:e[4]||(e[4]=r=>s.showPassword=!s.showPassword)})):(n(),d(a,{key:1,width:"16",height:"16",src:b,style:{cursor:"pointer"},onClick:e[5]||(e[5]=r=>s.showPassword=!s.showPassword)}))]),"prepend-inner":l(()=>[t(a,{width:"16",height:"16",src:y})]),_:1},8,["modelValue","type","rules"]),t(g,{variant:"flat",color:"primary",block:"",height:"40",class:"mt-6",disabled:!s.form,type:"submit"},{default:l(()=>[...e[8]||(e[8]=[w("Reset password",-1)])]),_:1},8,["disabled"])]),_:1},8,["modelValue","onSubmit"])):h("",!0),s.regSuccess?(n(),f("div",D,[e[11]||(e[11]=w(" Your password has been successfully changed. ",-1)),t(g,{variant:"flat",color:"primary",class:"mt-6",block:"",height:"40",onClick:m.toLoginPage},{default:l(()=>[...e[10]||(e[10]=[w("Go to Login",-1)])]),_:1},8,["onClick"])])):h("",!0),c("div",U,[N(t(R,{size:100,color:"primary",indeterminate:""},null,512),[[S,s.loading]])])],64)}const E=C(B,[["render",q]]),L=F({__name:"reset-confirm",setup(o){return(e,i)=>(n(),d(T,null,{default:l(()=>[t(E)]),_:1}))}});typeof k=="function"&&k(L);export{L as default};
2//# sourceMappingURL=reset-confirm-G_TqGOFU.js.map

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.