import{_ as g}from"./B50g7Dgj.js";import{_ as S}from"./CW5dyef9.js";import{_ as v}from"./BpJC44XK.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,H as V}from"./CibDhUcP.js";import{v as B}from"./5LXQy1qV.js";import{u as D}from"./fWHo1AcK.js";import"./CTMooejj.js";import"./CBXHUQO1.js";import"./BCJxuefG.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 N(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 z=Object.assign(R(U,[["render",N],["__file","ResetPasswordFormStep1.vue"]]),{__name:"ResetPasswordFormStep1"});export{z as default};
