PageSourceSearch

https://login.qr-code-generator.com/_nuxt/BjymPVyM.js

js qr-code-generator.com collected 2026-09-24 07:22:42 UTC 5,300 bytes, 1 lines download raw bytes

1import{_ as h}from"./D4TxlEdE.js";import{a5 as q,a7 as t,V as y,as as c,at as s,aP as P,a$ as a,ar as _,au as o,b0 as V,b1 as v,aG as u,aE as m,aC as k}from"./C7796JS1.js";import{A as S}from"./DwQJ6gv8.js";import{b as I,e as R,f as A,d as Q,c as G,Q as B,_ as M}from"./B6g63lXX.js";import{Q as U,c as T,b as L,d as H}from"./jnAYn0lq.js";import{g as N}from"./CEoWXvts.js";import{g as O,a as z}from"./3nljnJWW.js";import{g as D}from"./BfJmFP8s.js";import{E as F,a as j}from"./DmX1O5-0.js";import"./_cs_qknm.js";const J=q({components:{QrButton:B,QrTermsAndConditionsCheckbox:h,QrInputText:U,QrCardSubtitle:G,QrCardTitle:Q,QrAlertBox:A,QrEgoditorVCard:R,QrCardText:I},setup(){y({title:"Reset Password"})},data(){return{formValid:!1,generalError:null,newPassword:"",newPasswordRules:[T(this.$t("password_forgotten.new_password.index.form.new_password.errors.required")),L(this.$t("password_forgotten.new_password.index.form.new_password.errors.too_short")),H(this.$t("password_forgotten.new_password.index.form.new_password.errors.allowed_characters"))],showPassword:!1,termsAndConditions:!1,termsAndConditionsRules:[e=>!!e||this.$t("register.form.terms.errors.required")]}},computed:{isInvitedRoute(){return(this._.provides[t]||this.$route).name==="invited-new-password"},showPasswordIcon(){return this.$data.showPassword?F:j}},mounted(){(this._.provides[t]||this.$route).query.email?!(this._.provides[t]||this.$route).query.code&&!(this._.provides[t]||this.$route).query.token&&this.setGeneralError("password_forgotten.new_password.index.form.errors.CodeMissingException.message","password_forgotten.new_password.index.form.errors.CodeMissingException.link_text","/password-forgotten"):this.setGeneralError("password_forgotten.new_password.index.form.errors.EmailMissingException.message","password_forgotten.new_password.index.form.errors.EmailMissingException.link_text","/password-forgotten")},methods:{async reset(){if(!(await this.$refs.form.validate()).valid)return;const n=(this._.provides[t]||this.$route).query.email,l=(this._.provides[t]||this.$route).query.code||(this._.provides[t]||this.$route).query.token;try{await S.forgotPasswordSubmit(n,l,this.newPassword);const p=(await O(this.$config.public.GEOIP_SERVICE_BASE_URL,this.$axios)).country;if(p){const w=z(p);await this.$axios.$put("/api/account/country",{username:n,signupCountry:p,currency:w})}await this.$router.push("/password-forgotten/new-password/success")}catch(d){this.handleError(d)}},handleError(e){switch(N(e)){case"CodeMismatchException":case"ExpiredCodeException":this.setGeneralError("password_forgotten.new_password.index.form.errors.ExpiredCodeException.message","password_forgotten.new_password.index.form.errors.ExpiredCodeException.link_text","/password-forgotten");return;case"InvalidPasswordException":this.setGeneralError("password_forgotten.new_password.index.form.errors.InvalidPasswordException.message");return;default:window.console.error("Unknown error",e),this.setGeneralError("password_forgotten.new_password.index.form.errors.default.message","password_forgotten.new_password.index.form.errors.default.link_text",D(this.$i18n.locale))}},onShowPassword(){this.$data.showPassword=!this.$data.showPassword},setGeneralError(e,r,n){const l=this.$t(e),d=r?this.$t(r):void 0;this.generalError={message:l,linkText:d,linkAction:n}}}});function W(e,r,n,l,d,p){const w=a("qr-card-title"),g=a("qr-card-subtitle"),x=a("qr-alert-box"),f=a("qr-card-text"),E=a("qr-input-text"),b=h,C=a("qr-button"),$=a("qr-egoditor-v-card");return _(),c(P,{"data-test":"qr-password-forgotten-new-password-page"},{default:s(()=>[o($,{border:"md",rounded:"xl"},{default:s(()=>[o(V,{ref:"form",modelValue:e.formValid,"onUpdate:modelValue":r[2]||(r[2]=i=>e.formValid=i),onSubmit:v(e.reset,["prevent"])},{default:s(()=>[o(w,{"data-test":"qr-forgot-password-new-password-title"},{default:s(()=>[u(m(e.$t("password_forgotten.new_password.index.header.title")),1)]),_:1}),o(g,{size:"small"},{default:s(()=>[u(m(e.$t("password_forgotten.new_password.index.header.subtitle")),1)]),_:1}),o(f,{class:"pb-0"},{default:s(()=>[o(x,{error:e.generalError},null,8,["error"])]),_:1}),o(f,null,{default:s(()=>[o(E,{id:"newPassword",modelValue:e.newPassword,"onUpdate:modelValue":r[0]||(r[0]=i=>e.newPassword=i),"data-test":"qr-forgot-password-new-password-input",rules:e.newPasswordRules,variant:"outlined",label:e.$t("password_forgotten.new_password.index.form.new_password.label"),"append-inner-icon":e.showPasswordIcon,class:"new-password-field text-field text-field--frame--text",type:e.showPassword?"text":"password",onClickIcon:e.onShowPassword},null,8,["modelValue","rules","label","append-inner-icon","type","onClickIcon"]),e.isInvitedRoute?(_(),c(b,{key:0,modelValue:e.termsAndConditions,"onUpdate:modelValue":r[1]||(r[1]=i=>e.termsAndConditions=i),rules:e.termsAndConditionsRules},null,8,["modelValue","rules"])):k("",!0),o(C,{id:"reset-button","data-test":"qr-forgot-password-new-password-submit-button",type:"submit",color:"primary",variant:"flat",size:"large",block:"",rounded:"",uppercase:"",bold:"",disabled:!e.formValid},{default:s(()=>[u(m(e.$t("password_forgotten.new_password.index.form.cta_text")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})}const ne=M(J,[["render",W]]);export{ne 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.