PageSourceSearch

https://paulstamatiou.com/assets/dist-Bb8MrubT.js

js paulstamatiou.com collected 2026-10-02 02:24:36 UTC 1,704 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-hkqbGoDZ.js";var r=e(t(),1);function i(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():i(e[t],null)}}}}function o(...e){return r.useCallback(a(...e),e)}var s=n(),c=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),o=a.find(d);if(o){let e=o.props.children,n=a.map(t=>t===o?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return(0,s.jsx)(l,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,s.jsx)(l,{...i,ref:t,children:n})});c.displayName=`Slot`;var l=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e=p(n),o=f(i,n.props);return n.type!==r.Fragment&&(o.ref=t?a(t,e):e),r.cloneElement(n,o)}return r.Children.count(n)>1?r.Children.only(null):null});l.displayName=`SlotClone`;var u=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function d(e){return r.isValidElement(e)&&e.type===u}function f(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function p(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)}export{o as n,c as t};

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.