var q=s=>{throw TypeError(s)};var Q=(s,a,r)=>a.has(s)||q("Cannot "+r);var C=(s,a,r)=>(Q(s,a,"read from private field"),r?r.call(s):a.get(s)),O=(s,a,r)=>a.has(s)?q("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(s):a.set(s,r);import{c as g,d as w,k as W,g as b,o as y,l as V,a as U,r as X,F as Y,n as Z,p as G,w as m,e as f,u as n,q as I,s as ee,j as B,v as te,i as D,x as ae,C as re,b as $,m as se,t as ne,h as k}from"./app-DCwpEDbg.js";import{_ as E,a as R,b as P}from"./Label.vue_vue_type_script_setup_true_lang-B6oIiLFD.js";import{_ as T}from"./TextLink.vue_vue_type_script_setup_true_lang-CyaGH5Jv.js";import{P as x,c as oe,a as ie,_ as le}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-C7FVy0Gu.js";import{u as ue,_ as de,c as N,i as ce,a as fe,b as pe,g as me,w as ve,f as ye,P as be,d as he}from"./RovingFocusGroup-2Lhb9yZ9.js";import{t as ge,u as $e,a as H,b as we}from"./useForwardExpose-sC1iCvAF.js";import{L as ke,_ as Ve}from"./AuthLayout.vue_vue_type_script_setup_true_lang-DU7fuk8t.js";function K(s){return typeof s=="string"?`'${s}'`:new Ce().serialize(s)}const Ce=function(){var a;class s{constructor(){O(this,a,new Map)}compare(e,t){const o=typeof e,i=typeof t;return o==="string"&&i==="string"?e.localeCompare(t):o==="number"&&i==="number"?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return"null";switch(typeof e){case"string":return t?e:`'${e}'`;case"bigint":return`${e}n`;case"object":return this.$object(e);case"function":return this.$function(e)}return String(e)}serializeObject(e){const t=Object.prototype.toString.call(e);if(t!=="[object Object]")return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);const o=e.constructor,i=o===Object||o===void 0?"":o.name;if(i!==""&&globalThis[i]===o)return this.serializeBuiltInType(i,e);if(typeof e.toJSON=="function"){const l=e.toJSON();return i+(l!==null&&typeof l=="object"?this.$object(l):`(${this.serialize(l)})`)}return this.serializeObjectEntries(i,Object.entries(e))}serializeBuiltInType(e,t){const o=this["$"+e];if(o)return o.call(this,t);if(typeof(t==null?void 0:t.entries)=="function")return this.serializeObjectEntries(e,t.entries());throw new Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){const o=Array.from(t).sort((l,v)=>this.compare(l[0],v[0]));let i=`${e}{`;for(let l=0;lthis.compare(t,o)))}`}$Map(e){return this.serializeObjectEntries("Map",e.entries())}}a=new WeakMap;for(const r of["Error","RegExp","URL"])s.prototype["$"+r]=function(e){return`${r}(${e})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])s.prototype["$"+r]=function(e){return`${r}[${e.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])s.prototype["$"+r]=function(e){return`${r}[${e.join("n,")}${e.length>0?"n":""}]`};return s}();function j(s,a){return s===a||K(s)===K(a)}function S(s){return s==null}function M(s,a){return S(s)?!1:Array.isArray(s)?s.some(r=>j(r,a)):j(s,a)}function _e(s){return g(()=>{var a;return ge(s)?!!((a=$e(s))!=null&&a.closest("form")):!0})}const L=w({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(s){const a=s,{primitiveElement:r,currentElement:e}=ue(),t=g(()=>a.checked??a.value);return W(t,(o,i)=>{if(!e.value)return;const l=e.value,v=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(v,"value").set;if(c&&o!==i){const p=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});c.call(l,o),l.dispatchEvent(p),l.dispatchEvent(h)}}),(o,i)=>(y(),b(de,V({ref_key:"primitiveElement",ref:r},{...a,...o.$attrs},{as:"input"}),null,16))}}),Be=w({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(s){const a=s,r=g(()=>typeof a.value=="object"&&Array.isArray(a.value)&&a.value.length===0&&a.required),e=g(()=>typeof a.value=="string"||typeof a.value=="number"||typeof a.value=="boolean"?[{name:a.name,value:a.value}]:typeof a.value=="object"&&Array.isArray(a.value)?a.value.flatMap((t,o)=>typeof t=="object"?Object.entries(t).map(([i,l])=>({name:`[${a.name}][${o}][${i}]`,value:l})):{name:`[${a.name}][${o}]`,value:t}):a.value!==null&&typeof a.value=="object"&&!Array.isArray(a.value)?Object.entries(a.value).map(([t,o])=>({name:`[${a.name}][${t}]`,value:o})):[]);return(t,o)=>r.value?(y(),b(L,V({key:t.name},{...a,...t.$attrs},{name:t.name,value:t.value}),null,16,["name","value"])):(y(!0),U(Y,{key:1},X(e.value,i=>(y(),b(L,V({key:i.name,ref_for:!0},{...a,...t.$attrs},{name:i.name,value:i.value}),null,16,["name","value"]))),128))}}),[Ae,Xe]=N("CheckboxGroupRoot");function A(s){return s==="indeterminate"}function J(s){return A(s)?"indeterminate":s?"checked":"unchecked"}const Ie=w({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(s){const a=s,r=ce(),e=fe(),t=g(()=>a.tabStopId||e),o=g(()=>r.currentTabStopId.value===t.value),{getItems:i,CollectionItem:l}=pe();Z(()=>{a.focusable&&r.onFocusableItemAdd()}),G(()=>{a.focusable&&r.onFocusableItemRemove()});function v(u){if(u.key==="Tab"&&u.shiftKey){r.onItemShiftTab();return}if(u.target!==u.currentTarget)return;const c=me(u,r.orientation.value,r.dir.value);if(c!==void 0){if(u.metaKey||u.ctrlKey||u.altKey||!a.allowShiftKey&&u.shiftKey)return;u.preventDefault();let p=[...i().map(h=>h.ref).filter(h=>h.dataset.disabled!=="")];if(c==="last")p.reverse();else if(c==="prev"||c==="next"){c==="prev"&&p.reverse();const h=p.indexOf(u.currentTarget);p=r.loop.value?ve(p,h+1):p.slice(h+1)}ee(()=>ye(p))}}return(u,c)=>(y(),b(n(l),null,{default:m(()=>[f(n(x),{tabindex:o.value?0:-1,"data-orientation":n(r).orientation.value,"data-active":u.active?"":void 0,"data-disabled":u.focusable?void 0:"",as:u.as,"as-child":u.asChild,onMousedown:c[0]||(c[0]=p=>{u.focusable?n(r).onItemFocus(t.value):p.preventDefault()}),onFocus:c[1]||(c[1]=p=>n(r).onItemFocus(t.value)),onKeydown:v},{default:m(()=>[I(u.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[Ee,je]=N("CheckboxRoot"),Se=w({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:[Boolean,String]},modelValue:{type:[Boolean,String,null],default:void 0},disabled:{type:Boolean},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(s,{emit:a}){const r=s,e=a,{forwardRef:t,currentElement:o}=H(),i=Ae(null),l=we(r,"modelValue",e,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),v=g(()=>(i==null?void 0:i.disabled.value)||r.disabled),u=g(()=>S(i==null?void 0:i.modelValue.value)?l.value==="indeterminate"?"indeterminate":l.value:M(i.modelValue.value,r.value));function c(){if(S(i==null?void 0:i.modelValue.value))l.value=A(l.value)?!0:!l.value;else{const d=[...i.modelValue.value||[]];if(M(d,r.value)){const F=d.findIndex(_=>j(_,r.value));d.splice(F,1)}else d.push(r.value);i.modelValue.value=d}}const p=_e(o),h=g(()=>{var d;return r.id&&o.value?(d=document.querySelector(`[for="${r.id}"]`))==null?void 0:d.innerText:void 0});return je({disabled:v,state:u}),(d,F)=>{var _,z;return y(),b(ae((_=n(i))!=null&&_.rovingFocus.value?n(Ie):n(x)),V(d.$attrs,{id:d.id,ref:n(t),role:"checkbox","as-child":d.asChild,as:d.as,type:d.as==="button"?"button":void 0,"aria-checked":n(A)(u.value)?"mixed":u.value,"aria-required":d.required,"aria-label":d.$attrs["aria-label"]||h.value,"data-state":n(J)(u.value),"data-disabled":v.value?"":void 0,disabled:v.value,focusable:(z=n(i))!=null&&z.rovingFocus.value?!v.value:void 0,onKeydown:te(D(()=>{},["prevent"]),["enter"]),onClick:c}),{default:m(()=>[I(d.$slots,"default",{modelValue:n(l),state:u.value}),n(p)&&d.name&&!n(i)?(y(),b(n(Be),{key:0,type:"checkbox",checked:!!u.value,name:d.name,value:d.value,disabled:v.value,required:d.required},null,8,["checked","name","value","disabled","required"])):B("",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])}}}),xe=w({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(s){const{forwardRef:a}=H(),r=Ee();return(e,t)=>(y(),b(n(be),{present:e.forceMount||n(A)(n(r).state.value)||n(r).state.value===!0},{default:m(()=>[f(n(x),V({ref:n(a),"data-state":n(J)(n(r).state.value),"data-disabled":n(r).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":e.asChild,as:e.as},e.$attrs),{default:m(()=>[I(e.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}});/** * @license lucide-vue-next v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fe=oe("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ze=w({__name:"Checkbox",props:{defaultValue:{type:[Boolean,String]},modelValue:{type:[Boolean,String,null]},disabled:{type:Boolean},value:{},id:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{}},emits:["update:modelValue"],setup(s,{emit:a}){const r=s,e=a,t=g(()=>{const{class:i,...l}=r;return l}),o=he(t,e);return(i,l)=>(y(),b(n(Se),V({"data-slot":"checkbox"},n(o),{class:n(ie)("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r.class)}),{default:m(()=>[f(n(xe),{"data-slot":"checkbox-indicator",class:"flex items-center justify-center text-current transition-none"},{default:m(()=>[I(i.$slots,"default",{},()=>[f(n(Fe),{class:"size-3.5"})])]),_:3})]),_:3},16,["class"]))}}),qe={key:0,class:"mb-4 text-center text-sm font-medium text-green-600"},Oe={class:"grid gap-6"},Re={class:"grid gap-2"},Pe={class:"grid gap-2"},Te={class:"flex items-center justify-between"},Ke={class:"flex items-center justify-between"},Me={class:"text-center text-sm text-muted-foreground"},Ye=w({__name:"Login",props:{status:{},canResetPassword:{type:Boolean}},setup(s){const a=re({email:"",password:"",remember:!1}),r=()=>{a.post(route("login"),{onFinish:()=>a.reset("password")})};return(e,t)=>(y(),b(Ve,{title:"Log in to your account",description:"Enter your email and password below to log in"},{default:m(()=>[f(n(se),{title:"Log in"}),e.status?(y(),U("div",qe,ne(e.status),1)):B("",!0),$("form",{onSubmit:D(r,["prevent"]),class:"flex flex-col gap-6"},[$("div",Oe,[$("div",Re,[f(n(E),{for:"email"},{default:m(()=>t[3]||(t[3]=[k("Email address")])),_:1}),f(n(R),{id:"email",type:"email",required:"",autofocus:"",tabindex:1,autocomplete:"email",modelValue:n(a).email,"onUpdate:modelValue":t[0]||(t[0]=o=>n(a).email=o),placeholder:"email@example.com"},null,8,["modelValue"]),f(P,{message:n(a).errors.email},null,8,["message"])]),$("div",Pe,[$("div",Te,[f(n(E),{for:"password"},{default:m(()=>t[4]||(t[4]=[k("Password")])),_:1}),e.canResetPassword?(y(),b(T,{key:0,href:e.route("password.request"),class:"text-sm",tabindex:5},{default:m(()=>t[5]||(t[5]=[k(" Forgot password? ")])),_:1},8,["href"])):B("",!0)]),f(n(R),{id:"password",type:"password",required:"",tabindex:2,autocomplete:"current-password",modelValue:n(a).password,"onUpdate:modelValue":t[1]||(t[1]=o=>n(a).password=o),placeholder:"Password"},null,8,["modelValue"]),f(P,{message:n(a).errors.password},null,8,["message"])]),$("div",Ke,[f(n(E),{for:"remember",class:"flex items-center space-x-3"},{default:m(()=>[f(n(ze),{id:"remember",modelValue:n(a).remember,"onUpdate:modelValue":t[2]||(t[2]=o=>n(a).remember=o),tabindex:3},null,8,["modelValue"]),t[6]||(t[6]=$("span",null,"Remember me",-1))]),_:1})]),f(n(le),{type:"submit",class:"mt-4 w-full",tabindex:4,disabled:n(a).processing},{default:m(()=>[n(a).processing?(y(),b(n(ke),{key:0,class:"h-4 w-4 animate-spin"})):B("",!0),t[7]||(t[7]=k(" Log in "))]),_:1},8,["disabled"])]),$("div",Me,[t[9]||(t[9]=k(" Don't have an account? ")),f(T,{href:e.route("register"),tabindex:5},{default:m(()=>t[8]||(t[8]=[k("Sign up")])),_:1},8,["href"])])],32)]),_:1}))}});export{Ye as default};