"use strict";const f=require("react/jsx-runtime"),_=require("react");require("react-dom");const v=require("./index-_XxjJPRD.js"),S=require("./bind-DeUYJ6m9.js");function x(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=x(_);var j=Symbol.for("react.lazy"),p=i[" use ".trim().toString()];function C(e){return typeof e=="object"&&e!==null&&"then"in e}function b(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===j&&"_payload"in e&&C(e._payload)}function E(e){const t=R(e),r=i.forwardRef((n,o)=>{let{children:l,...s}=n;b(l)&&typeof p=="function"&&(l=p(l._payload));const a=i.Children.toArray(l),u=a.find(h);if(u){const c=u.props.children,g=a.map(y=>y===u?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:y);return f.jsx(t,{...s,ref:o,children:i.isValidElement(c)?i.cloneElement(c,void 0,g):null})}return f.jsx(t,{...s,ref:o,children:l})});return r.displayName=`${e}.Slot`,r}function R(e){const t=i.forwardRef((r,n)=>{let{children:o,...l}=r;if(b(o)&&typeof p=="function"&&(o=p(o._payload)),i.isValidElement(o)){const s=N(o),a=w(l,o.props);return o.type!==i.Fragment&&(a.ref=n?v.composeRefs(n,s):s),i.cloneElement(o,a)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P=Symbol("radix.slottable");function h(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P}function w(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...a)=>{const u=l(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function N(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=O.reduce((e,t)=>{const r=E(`Primitive.${t}`),n=i.forwardRef((o,l)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(u,{...a,ref:l})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),D="Label",m=i.forwardRef((e,t)=>f.jsx($.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));m.displayName=D;var L=m;const A={"purpur-label":"_purpur-label_1x80u_1","purpur-label--negative":"_purpur-label--negative_1x80u_8","purpur-label--disabled":"_purpur-label--disabled_1x80u_11"},T=S.c.bind(A),d="purpur-label",V=({children:e,className:t,disabled:r,negative:n=!1,...o})=>{const l=T(t,d,{[`${d}--disabled`]:r,[`${d}--negative`]:n});return f.jsx(L,{className:l,...o,children:e})};exports.Label=V;
//# sourceMappingURL=label-yHK80hhV.js.map
