1import{W as x,r as f,j as e,a as j}from"./app-belrbPXN.js";import{C as h}from"./Checkbox-iS659NxS.js";import b from"./GuestLayout-4jkWJuXN.js";import{I as i}from"./InputError-OZY4xCw_.js";import{I as l}from"./InputLabel-Q_Wu-unK.js";import{P as g}from"./PrimaryButton-ZU7A18o6.js";import{T as n}from"./TextInput-f29lzoJX.js";import{_ as a}from"./Lang-BxT6IC8I.js";import"./ApplicationLogo-ZTC-5AHJ.js";import"./chunk-HRMF5D3P-uRjUi5Tf.js";import"./import-0kiaZdOS.js";import"./import-CF4r66r5.js";import"./import-QsBJSc9f.js";import"./real-module-p6qORkc6.js";import"./import-_-a0l05m.js";function G({status:t,canResetPassword:w}){const{data:r,setData:m,post:c,processing:p,errors:o,reset:d}=x({email:"",password:"",remember:!1});f.useEffect(()=>()=>{d("password")},[]);const u=s=>{s.preventDefault(),c(route("backoffice.login"))};return e.jsxs(b,{children:[e.jsx(j,{title:a("Log in")}),t&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:t}),e.jsxs("form",{onSubmit:u,children:[e.jsxs("div",{children:[e.jsx(l,{htmlFor:"email",value:a("Email")}),e.jsx(n,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,onChange:s=>m("email",s.target.value)}),e.jsx(i,{message:o.email,className:"mt-2"})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx(l,{htmlFor:"password",value:a("Password")}),e.jsx(n,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"current-password",onChange:s=>m("password",s.target.value)}),e.jsx(i,{message:o.password,className:"mt-2"})]}),e.jsx("div",{className:"block mt-4",children:e.jsxs("label",{className:"flex items-center",children:[e.jsx(h,{name:"remember",checked:r.remember,onChange:s=>m("remember",s.target.checked)}),e.jsx("span",{className:"ms-2 text-sm text-gray-600",children:a("Remember me")})]})}),e.jsx("div",{className:"flex items-center justify-end mt-4",children:e.jsx(g,{className:"ms-4",disabled:p,children:a("Log in")})})]})]})}export{G 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.