1import{d as _,e as u,o as n,w as l,a as t,c as b,i as f,b as r,u as s,h as x,t as k,f as v,l as c,g as i,n as V}from"./app-DFGEcP7D.js";import h from"./Checkbox-DxPDm029.js";import p from"./InputError-Czc3JZO1.js";import g from"./InputLabel-DaH5S8C3.js";import B from"./PrimaryButton-DGOxm4Nu.js";import w from"./TextInput-DRDOHSz0.js";import R from"./GuestLayout-BSbW7U4p.js";import"./ApplicationLogo-fEgTKUAG.js";import"./SessionAlert-6db_WhQ8.js";const S={key:0,class:"mb-4 text-sm font-medium text-green-600"},E={class:"mt-4"},P={class:"mt-4 block"},$={class:"flex items-center"},F={class:"mt-4 flex items-center justify-end"},L="making_order_draft",z={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const o=_({email:"",password:"",remember:!1}),y=()=>{o.post(route("login"),{onSuccess:()=>{typeof window<"u"&&window.localStorage.removeItem(L)},onFinish:()=>o.reset("password")})};return(d,e)=>(n(),u(R,null,{default:l(()=>[t(s(x),{title:"Log in"}),m.status?(n(),b("div",S,k(m.status),1)):f("",!0),r("form",{onSubmit:v(y,["prevent"])},[r("div",null,[t(g,{for:"email",value:"Email"}),t(w,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:s(o).email,"onUpdate:modelValue":e[0]||(e[0]=a=>s(o).email=a),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),t(p,{class:"mt-2",message:s(o).errors.email},null,8,["message"])]),r("div",E,[t(g,{for:"password",value:"Password"}),t(w,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:s(o).password,"onUpdate:modelValue":e[1]||(e[1]=a=>s(o).password=a),required:"",autocomplete:"current-password"},null,8,["modelValue"]),t(p,{class:"mt-2",message:s(o).errors.password},null,8,["message"])]),r("div",P,[r("label",$,[t(h,{name:"remember",checked:s(o).remember,"onUpdate:checked":e[2]||(e[2]=a=>s(o).remember=a)},null,8,["checked"]),e[3]||(e[3]=r("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),r("div",F,[t(s(c),{href:d.route("login-phone"),class:"mr-5 rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none"},{default:l(()=>e[4]||(e[4]=[i(" Login By Phone ")])),_:1},8,["href"]),m.canResetPassword?(n(),u(s(c),{key:0,href:d.route("password.request"),class:"rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none"},{default:l(()=>e[5]||(e[5]=[i(" Forgot your password? ")])),_:1},8,["href"])):f("",!0),t(B,{class:V(["ms-4",{"opacity-25":s(o).processing}]),disabled:s(o).processing},{default:l(()=>e[6]||(e[6]=[i(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};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.