import{W as p,a as x,j as e}from"./BulkImageUpload-DGPbX05r.js";import{V as g,B as u}from"./ValidationErrors-DP_TAznd.js";import{C as j}from"./Checkbox-SOmkVdzg.js";import{G as f}from"./Guest-6K6LWNVV.js";import{I as l}from"./Input-CR3dcIBA.js";import"./bootstrap.esm-e_F80uXB.js";function E({status:o,canResetPassword:t}){const{data:r,setData:i,post:n,processing:m,errors:c,reset:d}=p({email:"",password:"",remember:""});x.useEffect(()=>()=>{d("password")},[]);const a=s=>{i(s.target.name,s.target.type==="checkbox"?s.target.checked:s.target.value)},h=s=>{s.preventDefault(),n(route("login-admin"))};return e.jsx(f,{children:e.jsx("div",{className:"col-xl-4 col-lg-5 col-md-6 col-sm-10 login-cover",children:e.jsxs("div",{className:"login-box",children:[e.jsx("div",{className:"logo-cover d-flex align-items-center",children:e.jsx("strong",{children:" Admin login"})}),e.jsxs("div",{className:"row",children:[o&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:o}),e.jsx(g,{errors:c}),e.jsxs("form",{onSubmit:h,children:[e.jsx("div",{className:"form-group",children:e.jsx("div",{className:"position-relative has-icon-right",children:e.jsx(l,{type:"text",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",placeholder:"Enter Email Address",isFocused:!0,handleChange:a})})}),e.jsx("div",{className:"form-group",children:e.jsx("div",{className:"position-relative has-icon-right",children:e.jsx(l,{type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Enter Password",handleChange:a})})}),e.jsx("div",{className:"form-group ",children:e.jsxs("p",{className:" obju",children:[e.jsxs("span",{className:"align-left",children:[e.jsx(j,{name:"remember",value:r.remember,handleChange:a})," Keep me Login"]}),e.jsx("span",{className:"align-right",children:t&&e.jsx("a",{href:route("password.request"),className:"underline text-sm text-gray-600 hover:text-gray-900",children:"Forgot your password?"})})]})}),e.jsx("div",{className:"form-group align-right",children:e.jsx(u,{className:"btn-primary w-100",processing:m,children:"Log in"})})]})]})]})})})}export{E as default};
