import{T as f,h,c as r,a as n,u as t,b as s,t as a,w as b,d as w,v as y,e as v,k as d,j as k,F,g as P,o as l,Z as N}from"./app-13978987.js";import{_ as V}from"./InputFieldError-52549d23.js";import{_ as j}from"./SpinnerBtn-cb152833.js";import{_ as x}from"./AuthLayout-dbff0a80.js";import C from"./LeftBanner-eaf39293.js";import"./MobileMenu-4272ee25.js";import"./SeoMeta-91cb18dc.js";import"./ToastrContainer-82d03ccc.js";const S={class:"signin-banner-area signin-banner-main-wrap d-flex align-items-center"},T={class:"signin-banner-from d-flex justify-content-center align-items-center"},$={class:"signin-banner-from-wrap"},B={class:"signin-banner-title-box"},D={class:"signin-banner-from-title"},E={key:0,class:"mb-4 alert alert-primary"},L={key:1,class:"mb-4 alert alert-success"},M={class:"mb-3 postbox__comment-input"},O=["placeholder"],H={class:"floating-label"},I={key:0,class:"mt-2"},J={class:"mt-4"},R=P({layout:x}),W=Object.assign(R,{__name:"ForgotPassword",props:{status:{type:String},authPages:Object},setup(i){var m;const u=((m=i.authPages)==null?void 0:m.login)??{},o=f({email:""}),p=()=>{o.post(route("password.email"))};return(e,c)=>{const _=h("Link");return l(),r(F,null,[n(t(N),{title:"Forgot Password"}),s("div",S,[n(C,{data:t(u)},null,8,["data"]),s("div",T,[s("div",$,[s("div",B,[s("h4",D,a(e.trans("Forget Password")),1)]),i.status?(l(),r("p",L,a(i.status),1)):(l(),r("p",E,a(e.trans("Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.")),1)),s("form",{onSubmit:b(p,["prevent"])},[s("div",M,[w(s("input",{type:"email","onUpdate:modelValue":c[0]||(c[0]=g=>t(o).email=g),autofocus:"",autocomplete:"email",class:"inputText",placeholder:e.trans("enter your email here")},null,8,O),[[y,t(o).email]]),s("span",H,a(e.trans("Your Email")),1),n(V,{message:t(o).errors.email},null,8,["message"])]),i.status?v("",!0):(l(),r("div",I,[n(j,{class:"signin-btn w-100",processing:t(o).processing,"btn-text":"Email Password Reset Link"},null,8,["processing"])]))],32),s("p",J,[d(a(e.trans("Have an account?"))+" ",1),n(_,{href:e.route("login"),class:"fw-bold"},{default:k(()=>[d(a(e.trans("Sign In")),1)]),_:1},8,["href"])])])])])],64)}}});export{W as default};
