1import{W as f,r as g,j as e,a as j,d as h}from"./app-belrbPXN.js";import{C as b}from"./Checkbox-iS659NxS.js";import{G as w}from"./GuestLayout-ySWPLENv.js";import{I as i}from"./InputError-OZY4xCw_.js";import{I as l}from"./InputLabel-Q_Wu-unK.js";import{P as v}from"./PrimaryButton-ZU7A18o6.js";import{T as n}from"./TextInput-f29lzoJX.js";import{_ as r}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 B({status:m,canResetPassword:d}){const{data:a,setData:t,post:c,processing:p,errors:o,reset:u}=f({email:"",password:"",remember:!1});g.useEffect(()=>()=>{u("password")},[]);const x=s=>{s.preventDefault(),c(route("login"))};return e.jsxs(w,{children:[e.jsx(j,{title:r("Log in")}),m&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:m}),e.jsxs("form",{onSubmit:x,children:[e.jsxs("div",{children:[e.jsx(l,{htmlFor:"email",value:r("Email")}),e.jsx(n,{id:"email",type:"email",name:"email",value:a.email,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,onChange:s=>t("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:r("Password")}),e.jsx(n,{id:"password",type:"password",name:"password",value:a.password,className:"mt-1 block w-full",autoComplete:"current-password",onChange:s=>t("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(b,{name:"remember",checked:a.remember,onChange:s=>t("remember",s.target.checked)}),e.jsx("span",{className:"ms-2 text-sm text-gray-600",children:r("Remember me")})]})}),e.jsxs("div",{className:"flex items-center justify-end mt-4",children:[d&&e.jsx(h,{href:route("password.request"),className:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:r("Forgot your password?")}),e.jsx(v,{className:"ms-4",disabled:p,children:r("Log in")})]})]})]})}export{B 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.