1import{T as _,o as i,d,b as o,u as t,Z as b,w as m,t as k,g as u,a,k as x,c as y,l as V,e as c,n as v,F as $}from"./app-DZXKMtFc.js";import{_ as B,A as h}from"./AuthenticationCardLogo-CfMaMHci.js";import{_ as C}from"./Checkbox-CQxu3cIS.js";import{_ as f,a as p}from"./TextInput-xX54Gf2d.js";import{_ as g}from"./InputLabel-Dm2fBGH9.js";import{_ as F}from"./PrimaryButton-DDbrTEbZ.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={key:0,class:"mb-4 font-medium text-sm text-green-600"},q={class:"mt-4"},L={class:"block mt-4"},P={class:"flex items-center"},R={class:"flex items-center justify-end mt-4"},D={__name:"Login",props:{canResetPassword:Boolean,status:String},setup(l){const e=_({email:"",password:"",remember:!1}),w=()=>{e.transform(n=>({...n,remember:e.remember?"on":""})).post(route("login"),{onFinish:()=>e.reset("password")})};return(n,s)=>(i(),d($,null,[o(t(b),{title:"Log in"}),o(h,null,{logo:m(()=>[o(B)]),default:m(()=>[l.status?(i(),d("div",N,k(l.status),1)):u("",!0),a("form",{onSubmit:x(w,["prevent"])},[a("div",null,[o(g,{for:"email",value:"Email"}),o(f,{id:"email",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),type:"email",class:"mt-1 block w-full",required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",q,[o(g,{for:"password",value:"Password"}),o(f,{id:"password",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",L,[a("label",P,[o(C,{checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r),name:"remember"},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",R,[l.canResetPassword?(i(),y(t(V),{key:0,href:n.route("password.request"),class:"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"},{default:m(()=>[...s[4]||(s[4]=[c(" Forgot your password? ",-1)])]),_:1},8,["href"])):u("",!0),o(F,{class:v(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:m(()=>[...s[5]||(s[5]=[c(" Log in ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1})],64))}};export{D 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.