import{r as i,j as y,t as E}from"./app-BiexncSX.js";import{c as S}from"./button-Cwvd_D5X.js";var g=Symbol.for("react.lazy"),p=E[" use ".trim().toString()];function C(t){return typeof t=="object"&&t!==null&&"then"in t}function d(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===g&&"_payload"in t&&C(t._payload)}function _(t){const n=R(t),e=i.forwardRef((o,r)=>{let{children:l,...a}=o;d(l)&&typeof p=="function"&&(l=p(l._payload));const s=i.Children.toArray(l),c=s.find(h);if(c){const f=c.props.children,m=s.map(u=>u===c?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:u);return y.jsx(n,{...a,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,m):null})}return y.jsx(n,{...a,ref:r,children:l})});return e.displayName=`${t}.Slot`,e}var V=_("Slot");function R(t){const n=i.forwardRef((e,o)=>{let{children:r,...l}=e;if(d(r)&&typeof p=="function"&&(r=p(r._payload)),i.isValidElement(r)){const a=x(r),s=j(l,r.props);return r.type!==i.Fragment&&(s.ref=o?S(o,a):a),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var b=Symbol("radix.slottable");function h(t){return i.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===b}function j(t,n){const e={...n};for(const o in n){const r=t[o],l=n[o];/^on[A-Z]/.test(o)?r&&l?e[o]=(...s)=>{const c=l(...s);return r(...s),c}:r&&(e[o]=r):o==="style"?e[o]={...r,...l}:o==="className"&&(e[o]=[r,l].filter(Boolean).join(" "))}return{...t,...e}}function x(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?t.props.ref:t.props.ref||t.ref)}export{V as S,_ as c};
