import{ad as w,C as r,l as n,n as t,t as i,x as p,p as y,q as z,v as V,u as a,A as f,B as x,D as _,_ as N,j as o}from"./Button-miGkWw8b.js";import{a as j,l as B,u as C}from"./app-DJ8ZSvIm.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";const E={class:"wl-root flex min-h-screen flex-col items-center justify-center bg-zinc-50 px-4 dark:bg-zinc-950"},F={class:"w-full max-w-sm space-y-6"},q=["src","alt"],P=["src","alt"],S={key:0,class:"rounded-xl bg-emerald-50 px-4 py-3 text-sm text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300"},I={key:0,class:"mt-1.5 text-sm text-red-600 dark:text-red-400"},M={class:"text-center"},T={__name:"ForgotPassword",setup(A){w(v=>({v7224fb7f:g.value}));const c=C(),d=o(()=>c.props.flash?.status??null),l=o(()=>c.props.public_branding??{}),g=o(()=>l.value.theme_primary||"#c8fa64"),u=o(()=>l.value.app_name||"Getfy"),m=o(()=>l.value.app_logo_icon||"https://cdn.getfy.cloud/collapsed-logo.png"),b=o(()=>l.value.app_logo_icon_dark||m.value),s=j({email:""});function k(){s.post("/esqueci-senha",{preserveScroll:!0,onFinish:()=>s.reset("email")})}return(v,e)=>(r(),n("div",E,[t("div",F,[t("img",{src:m.value,alt:u.value,class:"mx-auto h-12 w-auto object-contain dark:hidden"},null,8,q),t("img",{src:b.value,alt:u.value,class:"mx-auto hidden h-12 w-auto object-contain dark:block"},null,8,P),e[3]||(e[3]=t("h1",{class:"text-center text-2xl font-bold text-zinc-900 dark:text-white"},"Recuperar senha",-1)),e[4]||(e[4]=t("p",{class:"text-center text-sm text-zinc-600 dark:text-zinc-400"}," Informe seu e-mail para receber o link de redefinição. ",-1)),d.value?(r(),n("div",S,i(d.value),1)):p("",!0),t("form",{class:"space-y-5",onSubmit:y(k,["prevent"])},[t("div",null,[e[1]||(e[1]=t("label",{for:"email",class:"block text-sm font-medium text-zinc-700 dark:text-zinc-300"},"E-mail",-1)),z(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=h=>a(s).email=h),type:"email",autocomplete:"email",required:"",class:"wl-input mt-1.5 block w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-zinc-900 placeholder-zinc-500 shadow-sm transition dark:border-zinc-600 dark:bg-zinc-900 dark:text-white dark:placeholder-zinc-500",placeholder:"seu@email.com"},null,512),[[V,a(s).email]]),a(s).errors.email?(r(),n("p",I,i(a(s).errors.email),1)):p("",!0)]),f(N,{type:"submit",class:"wl-submit w-full hover:!opacity-90",disabled:a(s).processing},{default:x(()=>[_(i(a(s).processing?"Enviando…":"Enviar link"),1)]),_:1},8,["disabled"])],32),t("p",M,[f(a(B),{href:"/login",class:"wl-link text-sm font-medium hover:underline focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-zinc-950 rounded"},{default:x(()=>[...e[2]||(e[2]=[_(" Voltar ao login ",-1)])]),_:1})])])]))}},U=D(T,[["__scopeId","data-v-d5d81fc6"]]);export{U as default};
