1import{r as n,R as I}from"./chunk-62JRHF6Z-q9tEU0X1.js";import{K as L,b as T,y as D,n as F,c as x,L as j,e as S,m as k,l as _}from"./keyboard-BEAItoqV.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7bdd280d-a8b1-44ac-a4ad-a9bfcb3c0718",e._sentryDebugIdIdentifier="sentry-dbid-7bdd280d-a8b1-44ac-a4ad-a9bfcb3c0718")}catch{}let B=n.createContext(void 0);function M(){return n.useContext(B)}let m=n.createContext(null);m.displayName="LabelContext";function w(){let e=n.useContext(m);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,w),r}return e}function P(e){var r,a,i;let t=(a=(r=n.useContext(m))==null?void 0:r.value)!=null?a:void 0;return((i=e?.length)!=null?i:0)>0?[t,...e].filter(Boolean).join(" "):t}function K({inherit:e=!1}={}){let r=P(),[a,i]=n.useState([]),t=e?[r,...a].filter(Boolean):a;return[t.length>0?t.join(" "):void 0,n.useMemo(()=>function(l){let f=x(c=>(i(p=>[...p,c]),()=>i(p=>{let u=p.slice(),b=u.indexOf(c);return b!==-1&&u.splice(b,1),u}))),d=n.useMemo(()=>({register:f,slot:l.slot,name:l.name,props:l.props,value:l.value}),[f,l.slot,l.name,l.props,l.value]);return I.createElement(m.Provider,{value:d},l.children)},[i])]}let R="label";function A(e,r){var a;let i=n.useId(),t=w(),l=M(),f=T(),{id:d=`headlessui-label-${i}`,htmlFor:c=l??((a=t.props)==null?void 0:a.htmlFor),passive:p=!1,...u}=e,b=D(r);F(()=>t.register(d),[d,t.register]);let E=x(s=>{let h=s.currentTarget;if(!(s.target!==s.currentTarget&&S(s.target))&&(k(h)&&s.preventDefault(),t.props&&"onClick"in t.props&&typeof t.props.onClick=="function"&&t.props.onClick(s),k(h))){let o=document.getElementById(h.htmlFor);if(o){let y=o.getAttribute("disabled");if(y==="true"||y==="")return;let C=o.getAttribute("aria-disabled");if(C==="true"||C==="")return;(_(o)&&(o.type==="file"||o.type==="radio"||o.type==="checkbox")||o.role==="radio"||o.role==="checkbox"||o.role==="switch")&&o.click(),o.focus({preventScroll:!0})}}}),v=f||!1,$=n.useMemo(()=>({...t.slot,disabled:v}),[t.slot,v]),g={ref:b,...t.props,id:d,htmlFor:c,onClick:E};return p&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in u&&delete u.onClick),j()({ourProps:g,theirProps:u,slot:$,defaultTag:c?R:"div",name:t.name||"Label"})}let N=L(A),Q=Object.assign(N,{});export{w as C,P as N,K as Q,Q as V,M as u};
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.