1import{_ as v}from"./Field.7322a01b.js";import{_ as x}from"./Error.f57eebfb.js";import{_ as w}from"./nuxt-link.928736e8.js";import{a as r,h as b,q as c,x as y,y as e,X as k,E as i,u as o,O as C,H as F,A as P,I as S,V as B,R as E,U as I}from"./swiper-vue.1b2a8b42.js";import{u as L}from"./useAccounts.cb6f3929.js";import{_ as N}from"./editorial-image.b61b89b6.js";import{_ as V}from"./_plugin-vue_export-helper.c27b6911.js";import"./entry.7d939621.js";import"./axios.93df6217.js";const m=n=>(E("data-v-ee7235ac"),n=n(),I(),n),M={class:"flex flex-col md:flex-row pt-12 md:pt-16 pb-16 md:pb-0 items-center"},j=m(()=>e("div",{class:"w-full md:w-1/2 img-container mb-8 md:mb-0"},[e("figure",{class:"w-full h-full"},[e("img",{class:"w-full h-full object-cover",src:N})])],-1)),A={class:"w-full md:w-1/2 px-4 md:px-8 lg:px-32"},W=m(()=>e("div",{class:"w-full mb-8"},[e("h1",{class:"text-heading"},"Forgot Password?"),e("span",{class:"block",textContent:"We'll send you a link to reset your password."})],-1)),$=["disabled","textContent"],q={class:"flex w-full justify-center"},D={__name:"forgot-password",setup(n){const a=r(""),s=r(""),l=r(!1),{customerForgotPassword:d}=L(),u=b(()=>!a.value.length),_=async()=>{try{if(!a.value.length)return s.value="Fields Missing.";l.value=!0;const t=await d(a.value);console.log(t),l.value=!1,t.msg&&(s.value=t.msg)}catch(t){console.log(t),l.value=!1,s.value="Whoops, something went wrong on our end. Please refresh the page and try again."}};return(t,H)=>{const p=v,f=x,g=w;return c(),y("div",M,[j,e("div",A,[W,e("form",{onSubmit:k(_,["prevent"]),class:"flex flex-col gap-y-4 mb-8"},[i(p,{type:"email",label:"Email",value:o(a),handleChange:h=>a.value=h.target.value},null,8,["value","handleChange"]),e("button",{disabled:o(u)||o(l),type:"submit",class:"mt-4 btn btn-fill-dark",textContent:C(o(l)?"Loading...":"Send Link")},null,8,$)],32),o(s).length?(c(),F(f,{key:0,class:"text-center mx-auto",msg:o(s),clearMessage:()=>s.value=""},null,8,["msg","clearMessage"])):P("",!0),e("div",q,[i(g,{class:"text-center",to:"/customers/login"},{default:S(()=>[B("Back to Login")]),_:1})])])])}}},Q=V(D,[["__scopeId","data-v-ee7235ac"]]);export{Q 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.