import{_ as g}from"./hLi6Tdy_.js";import{_ as S}from"./Du23p2ZK.js";import{_ as v}from"./dbr-bJEC.js";import{v as w,s as E,n as b,m as k,r as y,_ as R,o as d,c as x,b as u,w as _,d as p,t as a,p as F,q as P,a as f,I as V}from"./CChoqk00.js";import{v as B}from"./4Fu3KWqy.js";import{u as D}from"./DTzhji9-.js";import"./DgZ9OEJo.js";import"./D7TmchvX.js";import"./BBOawLyY.js";const U=w({__name:"ResetPasswordFormStep1",setup(t,{expose:r}){r();const o=E(),e=b(),c=k(),n=y(""),l=async()=>{if(!B(o.signUpData.email)){n.value="InvalidEMail";return}const{error:s}=await o.triggerPasswordReset(o.signUpData.email);if(s){n.value=s;return}e.currentStep=1},{tracker:i}=D();i("page_view","page","reset password step 1");const m={sStore:o,store:e,router:c,sendError:n,sendEmailForReset:l,tracker:i};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),C={class:"my-8"};function I(t,r,o,e,c,n){const l=g,i=S,m=v;return d(),x("form",{onSubmit:V(e.sendEmailForReset,["prevent"])},[u(l,{modelValue:e.sStore.signUpData.email,"onUpdate:modelValue":r[0]||(r[0]=s=>e.sStore.signUpData.email=s),class:"mb-4",type:"email"},{default:_(()=>[p(a(t.$t("Email")),1)]),_:1},8,["modelValue"]),e.sendError?(d(),F(i,{key:0},{default:_(()=>[p(a(t.$t(e.sendError)),1)]),_:1})):P("",!0),u(m,{size:"small",class:"px-8 py-2",tag:"button",type:"submit"},{default:_(()=>[p(a(t.$t("SendReset")),1)]),_:1}),f("p",C,[p(a(t.$t("PasswordWorking"))+" ",1),f("a",{class:"text-primary cursor-pointer hover:text-black transition duration-300",onClick:r[1]||(r[1]=s=>e.router.push("/login"))},a(t.$t("SignIn")),1)])],32)}const H=Object.assign(R(U,[["render",I],["__file","ResetPasswordFormStep1.vue"]]),{__name:"ResetPasswordFormStep1"});export{H as default};
