1import{T as _,d,b as a,u as t,w as m,F as b,o as n,Z as k,t as x,e as u,a as o,c as y,f,i as v,n as V,h}from"./app-BXvF3HYt.js";import{A as $}from"./AuthenticationCard-L6YBIvWM.js";import{_ as B}from"./AuthenticationCardLogo-DAy827OA.js";import{_ as C}from"./Checkbox-BdtpTvw3.js";import{_ as c,a as p}from"./TextInput-CN_jo65B.js";import{_ as g}from"./InputLabel-DZhBJ_Kg.js";import{_ as F}from"./PrimaryButton-D8zZyiff.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./cover-C7FPToGY.js";const N={key:0,class:"mb-4 font-medium text-sm text-green-600 dark:text-green-400"},q={class:"mt-4"},L={class:"block mt-4"},P={class:"flex items-center"},R={class:"flex items-center justify-end mt-4"},Z={__name:"Login",props:{canResetPassword:Boolean,status:String},setup(l){const e=_({email:"",password:"",remember:!1}),w=()=>{e.transform(i=>({...i,remember:e.remember?"on":""})).post(route("login"),{onFinish:()=>e.reset("password")})};return(i,s)=>(n(),d(b,null,[a(t(k),{title:"Log in"}),a($,null,{logo:m(()=>[a(B)]),default:m(()=>[l.status?(n(),d("div",N,x(l.status),1)):u("",!0),o("form",{onSubmit:h(w,["prevent"])},[o("div",null,[a(g,{for:"email",value:"Email"}),a(c,{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"]),a(p,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",q,[a(g,{for:"password",value:"Password"}),a(c,{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"]),a(p,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),o("div",L,[o("label",P,[a(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]=o("span",{class:"ml-2 text-sm text-gray-600 dark:text-gray-400"},"Remember me",-1))])]),o("div",R,[l.canResetPassword?(n(),y(t(v),{key:0,href:i.route("password.request"),class:"underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800"},{default:m(()=>s[4]||(s[4]=[f(" Forgot your password? ")])),_:1},8,["href"])):u("",!0),a(F,{class:V(["ml-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:m(()=>s[5]||(s[5]=[f(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1})],64))}};export{Z 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.