1import{_ as d}from"./BOxIweRX.js";import{_ as f}from"./DYnyTLNJ.js";import{e as _,K as w,D as x,r as h,M as b,L as g,c as y,o as v,a as k,b as l,i as t,Q as V,l as B,m as G}from"./9TF6hWLS.js";import{a as N}from"./JGk1qC4T.js";import"./Ds23XDCU.js";const F={class:"mx-[14px] md:max-w-[1382px] md:mx-auto my-[50px]"},U=_({__name:"[key]",setup(I){const{t:a}=w(),c=x(),e=h(null),{setGlobalNotification:n}=b(),{setIsGlobalLoading:o}=g(),u=async()=>{o(!0);const s=await N(e.value??"",c.params.key??"");if(typeof s>"u"&&!s){n(!0,a("password-change.success"),"success"),o(!1),await G({path:"/"});return}else o(!1),n(!0,s,"error")};return(s,r)=>{const i=d,m=f;return v(),y("div",F,[k("form",{onSubmit:B(u,["prevent"]),class:"bg-[#F5F5F5] p-[20px] flex flex-col items-center"},[l(i,{type:"password",placeholder:t(a)("password-change.password-placeholder"),modelValue:t(e),"onUpdate:modelValue":r[0]||(r[0]=p=>V(e)?e.value=p:null),required:"",style:{"max-width":"50%"}},null,8,["placeholder","modelValue"]),l(m,{name:t(a)("password-change.button"),type:"submit","is-link":!1,"should-add-hover":!0},null,8,["name"])],32)])}}});export{U 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.