"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),_=require("../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.8_react@19.2.3/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js"),d=require("react/jsx-runtime");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=j(m);var E=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function R(e){return typeof e=="object"&&e!==null&&"then"in e}function y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===E&&"_payload"in e&&R(e._payload)}function S(e){const t=C(e),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(P);if(a){const f=a.props.children,b=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsx(t,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,b):null})}return d.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}var g=S("Slot");function C(e){const t=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=x(r),s=h(l,r.props);return r.type!==i.Fragment&&(s.ref=o?_.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O=Symbol("radix.slottable");function P(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O}function h(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function x(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.Root=g;exports.Slot=g;exports.createSlot=S;
//# sourceMappingURL=index.cjs.js.map
