import{t as P,_ as V,m as l,a4 as b,i as o,a5 as x,M as B,P as S}from"./app-JmgyQoR0.js";import{b as D,a as N,e as A,d as E,c,D as s,h as p,i,j as e,l as t,u as _,K as d,E as u,z as m,H}from"./vue-y3KLWBaS.js";const R={class:"_formRoot"},T=_("i",{class:"ph-lock ph-bold ph-lg"},null,-1),z=D({__name:"reset-password",props:{token:{}},setup(k){const n=k;let a=N("");async function f(){await S("reset-password",{token:n.token,password:a.value}),l.push("/")}A(()=>{n.token==null&&(P(E(()=>V(()=>import("./MkForgotPassword-t2tj3hK8.js"),__vite__mapDeps([0,1,2,3,4]))),{},{},"closed"),l.push("/"))});const h=c(()=>[]),v=c(()=>[]);return b({title:o.ts.resetPassword,icon:"ph-lock ph-bold ph-lg"}),(M,r)=>{const w=s("MkPageHeader"),g=s("MkSpacer"),y=s("MkStickyContainer");return p(),i(y,null,{header:e(()=>[t(w,{actions:h.value,tabs:v.value},null,8,["actions","tabs"])]),default:e(()=>[M.token?(p(),i(g,{key:0,"content-max":700,"margin-min":16,"margin-max":32},{default:e(()=>[_("div",R,[t(x,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=C=>a.value=C),type:"password",class:"_formBlock"},{prefix:e(()=>[T]),label:e(()=>[d(u(m(o).ts.newPassword),1)]),_:1},8,["modelValue"]),t(B,{primary:"",class:"_formBlock",onClick:f},{default:e(()=>[d(u(m(o).ts.save),1)]),_:1})])]),_:1})):H("",!0)]),_:1})}}});export{z as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["MkForgotPassword-t2tj3hK8.js","vue-y3KLWBaS.js","app-JmgyQoR0.js","app-9iivmIpH.css","MkForgotPassword-rjYeVfee.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}