1import{_ as E}from"./B6ArTGsI.js";import{a5 as R,am as M,K as O,M as j,b6 as B,b7 as _,ao as l,ap as c,a3 as s,ar as r,ay as f,aq as t,as as y,aH as $,aV as I,a1 as V,a4 as N,J as D,O as J}from"./BTDVFcW1.js";import{u as A}from"./Dq57GNm4.js";import{u as G}from"./CQdjIgD7.js";const H={key:0,class:"px-4 py-2.5 bg-green-50 border border-green-200 text-green-600 rounded"},K={key:1,class:"px-4 py-2.5 bg-red-50 border border-red-200 text-red-600 rounded"},L={for:"password",class:"inline-block mb-2 text-sm font-medium"},T={key:0,class:"mt-2 text-sm text-red-600"},W={for:"password_confirmation",class:"inline-block mb-2 text-sm font-medium"},z={key:0,class:"mt-2 text-sm text-red-600"},Q={class:"pt-2"},X=["disabled"],Y=R({__name:"ResetPassword",setup(S){const{t:n}=M(),m=O(),x=j(),{resetPassword:w}=A(),p=V(""),i=V(""),{errors:a,isSubmitting:U,setFieldError:q,handleSubmit:F}=B({initialValues:{token:String(m.params.token??""),email:String(m.query.email??""),password:"",password_confirmation:""}});_("token"),_("email");const{value:g}=_("password",{required:!0,min:8},{label:n("Password")}),{value:h}=_("password_confirmation",{required:!0,match:["password"]},{label:n("Confirm password")}),C=N(()=>Object.keys(a.value).length>0),v=F(async u=>{try{const e=await w(u);p.value=e?.success?"success":"error",i.value=e?.message??"",e?.success&&await x.push("/login")}catch(e){const d=e;p.value="error",i.value=d.statusMessage??d.message??n("Something went wrong! Please try again later.");const o=d.data?.errors??{};for(const k in o)q(k,o[k]?.[0])}});return(u,e)=>{const d=E;return l(),c("form",{class:"space-y-4",onSubmit:e[2]||(e[2]=I((...o)=>s(v)&&s(v)(...o),["prevent"]))},[s(p)==="success"&&s(i)?(l(),c("div",H,r(s(i)),1)):f("",!0),s(p)==="error"&&s(i)&&!s(C)?(l(),c("div",K,r(s(i)),1)):f("",!0),t("div",null,[t("label",L,r(u.$t("Password")),1),y(d,{id:"password",modelValue:s(g),"onUpdate:modelValue":e[0]||(e[0]=o=>$(g)?g.value=o:null),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",error:!!s(a).password},null,8,["modelValue","error"]),s(a).password?(l(),c("p",T,r(s(a).password),1)):f("",!0)]),t("div",null,[t("label",W,r(u.$t("Confirm password")),1),y(d,{id:"password_confirmation",modelValue:s(h),"onUpdate:modelValue":e[1]||(e[1]=o=>$(h)?h.value=o:null),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",error:!!s(a).password_confirmation},null,8,["modelValue","error"]),s(a).password_confirmation?(l(),c("p",z,r(s(a).password_confirmation),1)):f("",!0)]),t("div",Q,[t("button",{type:"submit",class:"px-6 py-2.5 w-full font-display font-semibold text-white rounded bg-primary hover:bg-primary/80",disabled:s(U)},r(u.$t("Update password")),9,X)])],32)}}}),Z=Object.assign(Y,{__name:"FormResetPassword"}),ss={class:"py-10 md:py-16 lg:py-24"},es={class:"container"},ts={class:"flex items-center justify-center"},os={class:"w-full max-w-lg"},rs={class:"mb-8 font-display text-center text-2xl font-semibold leading-tight tracking-tight text-gray-900 md:text-3xl"},as={class:"p-8 bg-white rounded shadow"},b="Update password",P="GIM International is the independent and high-quality information source for the global geomatics industry.",cs=R({__name:"[token]",setup(S){const n=D();return J({title:b,ogTitle:b,description:P,ogDescription:P,ogUrl:n.href}),G({"@context":"https://schema.org",mainEntityOfPage:{"@type":"WebPage","@id":n.href},headline:b}),(m,x)=>{const w=Z;return l(),c("section",ss,[t("div",es,[t("div",ts,[t("div",os,[t("h1",rs,r(m.$t("Update password")),1),t("div",as,[y(w)])])])])])}}});export{cs 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.