vendor: 1,932 bytes, line 1
1import{r as s,j as f}from"./chunk-PVWAREVJ-kUNjteTa.js";function d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function y(...e){return t=>{let r=!1;const o=e.map(n=>{const l=d(n,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let n=0;n<o.length;n++){const l=o[n];typeof l=="function"?l():d(e[n],null)}}}}function h(...e){return s.useCallback(y(...e),e)}function g(e){const t=C(e),r=s.forwardRef((o,n)=>{const{children:l,...a}=o,i=s.Children.toArray(l),c=i.find(E);if(c){const u=c.props.children,S=i.map(p=>p===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...a,ref:n,children:s.isValidElement(u)?s.cloneElement(u,void 0,S):null})}return f.jsx(t,{...a,ref:n,children:l})});return r.displayName=`${e}.Slot`,r}var j=g("Slot");function C(e){const t=s.forwardRef((r,o)=>{const{children:n,...l}=r;if(s.isValidElement(n)){const a=x(n),i=b(l,n.props);return n.type!==s.Fragment&&(i.ref=o?y(o,a):a),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m=Symbol("radix.slottable");function _(e){const t=({children:r})=>f.jsx(f.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=m,t}function E(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m}function b(e,t){const r={...t};for(const o in t){const n=e[o],l=t[o];/^on[A-Z]/.test(o)?n&&l?r[o]=(...i)=>{const c=l(...i);return n(...i),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...l}:o==="className"&&(r[o]=[n,l].filter(Boolean).join(" "))}return{...e,...r}}function x(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)}export{j as S,_ as a,y as b,g as c,h 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.