PageSourceSearch

https://shop.st.gallen-bodensee.ch/_nuxt/reset-password.IJjNvw-A.js

js gallen-bodensee.ch collected 2026-10-02 07:50:06 UTC 2,120 bytes, 1 lines download raw bytes

1import{Z as b,r as o,A as P,ci as $,b7 as x,a3 as B,z as N,c as _,o as A,w as C,N as m,O as v,K as s,a5 as R,R as S,a7 as g,aC as h,bZ as I,a6 as J,e as M,aH as q,L as z}from"./entry.PaVUAErV.js";import{J as H}from"./Button.YHDSgye5.js";import{P as L}from"./password-input.qBfhmVhP.js";import U from"./spinner.xXScV5lB.js";import"./generic-link.aHjndsKA.js";import"./index.tsdXPcWo.js";import"./link-btn.HpYSdkW3.js";import"./input-text.KlArXcRY.js";import"./getFormattedWithCurrency.jAlzf1ht.js";import"./viewport-observer.A5nhnINA.js";import"./text-link.xhv_EMKH.js";import"./Checkbox.1So8AWIM.js";import"./icon-svg.STSsRv-X.js";const Z={class:"pass-reset container"},D={key:1,class:"pass-reset__container"},E={class:"pass-reset__title"},K=b({__name:"reset-password",setup(O){const t=o(""),i=o(!1),w=P(),n=$(),f=o(!1),a=o(""),l=x(),{$store:u,$bus:y}=M(),{t:p}=B({useScope:"global"});N({title:p("reset-password.title")});const k=_(()=>!f.value||!u.getters["user/index/initialized"]),d=_(()=>u.getters["user/index/isAuthenticated"]);A(()=>{f.value=!0,(d.value||!w.query.token)&&n.replace(l("/"))}),C(()=>d.value,()=>{d.value&&n.replace(l("/"))});async function V(){if(!i.value)return;const e=await u.dispatch("customer/resetPassword",{password:t.value,token:w.query?.token});if(e?.error){a.value=e.message||p("reset-password.error-generic");return}return a.value="",y.$emit("show-toast",{type:"success",message:p("reset-password.password-reset-success")}),n.push(l("/user/login"))}return(e,r)=>(m(),v("div",Z,[s(k)?(m(),R(U,{key:0,class:"pass-reset__loading"})):(m(),v("div",D,[S("h5",E,g(e.$t("reset-password.title")),1),h(L,{modelValue:s(t),"onUpdate:modelValue":r[0]||(r[0]=c=>I(t)?t.value=c:null),modelModifiers:{trim:!0},validate:"",label:e.$t("reset-password.new-password"),"is-valid":s(i),"error-message":s(a),"display-error":!!s(a),onUpdateValidity:r[1]||(r[1]=c=>i.value=c)},null,8,["modelValue","label","is-valid","error-message","display-error"]),h(H,{primary:"",onClick:V},{default:J(()=>[q(g(e.$t("reset-password.reset")),1)]),_:1})]))]))}}),oe=z(K,[["__scopeId","data-v-c35a0b08"]]);export{oe 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.