PageSourceSearch

https://app.meetball.fun/assets/avatar-BkFbDHXz.js

js meetball.fun collected 2026-10-04 22:23:50 UTC 3,149 bytes, 1 lines download raw bytes

1import{c as e,n as t,r as n,t as r}from"./compiler-runtime-BOc5URQk.js";import{t as i}from"./utils-BiVh4SPA.js";import{c as a,n as o,r as s,s as c}from"./dist-W-6avJGh.js";var l=r(),u=e(n(),1),d=t(),f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Avatar`,[h,g]=a(m),_=[0,()=>void 0],[v,y]=h(m),b=u.forwardRef(p(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=u.useState(`idle`),[o,c]=D();return(0,d.jsx)(v,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:c,children:(0,d.jsx)(s.span,{...r,ref:t})})},`Avatar`)),x=`AvatarImage`,S=u.forwardRef(p(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,l=y(x,n);l.setImageCount;let f=T(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:l.imageLoadingStatus,setLoadingStatus:l.setImageLoadingStatus}),p=o(e=>{i?.(e)}),m=u.useRef(f);return c(()=>{let e=m.current;m.current=f,f!==e&&p(f)},[f,p]),f===`loaded`?(0,d.jsx)(s.img,{...a,ref:t,src:r}):null},`AvatarImage`)),C=`AvatarFallback`,w=u.forwardRef(p(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=y(C,n),[o,c]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,d.jsx)(s.span,{...i,ref:t}):null},`AvatarFallback`));function T(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return c(()=>{if(!e){n(`error`);return}let t=new window.Image,a=p(e=>{let t=e.currentTarget;n(E(t))},`handleLoad`),o=p(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(E(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}p(T,`useImageLoadingStatus`);function E(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}p(E,`getImageLoadingStatus`);function D(){return _}p(D,`useImageCount`);function O(e){}p(O,`useUpdateImageCount`);var k=u.forwardRef((e,t)=>{let n=(0,l.c)(9),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let o;n[3]===r?o=n[4]:(o=i(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,r),n[3]=r,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,d.jsx)(b,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});k.displayName=b.displayName;var A=u.forwardRef((e,t)=>{let n=(0,l.c)(9),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let o;n[3]===r?o=n[4]:(o=i(`aspect-square h-full w-full`,r),n[3]=r,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,d.jsx)(S,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});A.displayName=S.displayName;var j=u.forwardRef((e,t)=>{let n=(0,l.c)(9),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let o;n[3]===r?o=n[4]:(o=i(`flex h-full w-full items-center justify-center rounded-full bg-muted`,r),n[3]=r,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,d.jsx)(w,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});j.displayName=w.displayName;export{j as n,A as r,k 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.