import{_ as h,u as v,r,p as g,c as n,o as d,a as s,b as w,t as i,w as f,d as y,D as b,v as x,e as S,i as P,S as j}from"./app-L4cdeQDO.js";/* empty css            */const k={class:"bg-light vh-100 d-flex align-items-center justify-content-center",style:{height:"100vh"}},$={class:"login-wizard bg-white col-12 col-lg-8 theme-shadow"},B={class:"row"},D={class:"col-12 col-lg-6 px-5 py-4"},R=["src"],C={class:"d-flex h-100"},E={class:"my-auto w-100"},M={class:"fw-bold mb-3"},N={class:"text-muted"},T={class:"mb-2"},V=["placeholder"],O={key:0,class:"text-danger my-2"},z={type:"submit",class:"btn btn-primary w-100 rounded-pill mt-3"},A={__name:"ResetPassword",setup(I){const m=v(),u=S(),o=r(""),l=r("");g(()=>{o.value&&(l.value="")});const p=async()=>{var t,a;const e=await P.post("/reset-password",{email:o.value},{headers:{"Content-Type":"application/json",Accept:"application/json"}});((t=e==null?void 0:e.data)==null?void 0:t.data)===500?l.value=(a=e==null?void 0:e.data)==null?void 0:a.message:(j.fire({icon:"success",title:"Success",text:"Password reset link sent to your email address",showConfirmButton:!1,timer:1500}),u.push(`/verify_otp?email=${o.value}`))};return(e,t)=>{var a,c;return d(),n("section",k,[s("section",$,[s("div",B,[s("div",D,[s("img",{src:(c=(a=w(m))==null?void 0:a.masterData)==null?void 0:c.logo,class:"object-fit-cover",alt:"Login",height:"50px"},null,8,R),s("div",C,[s("div",E,[s("h3",M,i(e.$t("Recover Password")),1),s("span",N,i(e.$t("We will send you a OTP code to recover your password")),1),s("form",{class:"my-4",onSubmit:f(p,["prevent"])},[s("div",T,[y(s("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=_=>o.value=_),class:"form-control",placeholder:e.$t("Email address")},null,8,V),[[x,o.value]]),l.value?(d(),n("p",O,i(l.value),1)):b("",!0)]),s("button",z,i(e.$t("Proceed Next")),1)],32)])])]),t[1]||(t[1]=s("div",{class:"d-none d-lg-block col-lg-6"},[s("img",{src:"/assets/images/login-bg.png",class:"side-image object-fit-cover w-100"})],-1))])])])}}},W=h(A,[["__scopeId","data-v-0a949b45"]]);export{W as default};
