PageSourceSearch

https://app.dcycle.io/assets/avatar-CJdQwSYP.js

js dcycle.io collected 2026-09-24 20:14:09 UTC 1,931 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{C as t,x as n}from"./vendor-react-D7IHMnuo.js";import{n as r,r as i,t as a}from"./dist-Fgrja1XG.js";import{t as o}from"./utils-BTCdVlRL.js";import{t as s}from"./dist-DxlWxqp_.js";var c=e(t(),1),l=n(),u=s(`relative flex shrink-0 overflow-hidden`,{variants:{size:{"2xs":`h-4 w-4`,xs:`h-5 w-5`,sm:`h-6 w-6`,md:`h-8 w-8`,lg:`h-10 w-10`,xl:`h-12 w-12`,"2xl":`h-16 w-16`,"3xl":`h-20 w-20`},bordered:{true:`rounded-full border border-background`,false:``}},defaultVariants:{size:`md`,bordered:!1}}),d=c.forwardRef(({bordered:e=!1,className:t,size:n=`md`,onClick:r,...a},s)=>(0,l.jsx)(i,{ref:s,className:o(u({bordered:e,size:n}),t),onClick:r,...a}));d.displayName=i.displayName;var f=c.forwardRef(({className:e,isDisabled:t=!1,...n},i)=>(0,l.jsx)(r,{ref:i,className:o(`h-full w-full rounded-full`,`object-cover aspect-square`,t?`opacity-50`:``,e),alt:`avatar`,...n}));f.displayName=r.displayName;var p=s(`flex h-full w-full items-center justify-center font-medium rounded-full`,{variants:{isDisabled:{true:`bg-muted text-muted-foreground`,false:``},isSelected:{true:`bg-muted text-foreground`,false:`bg-muted text-foreground`},size:{"2xs":`text-xs`,xs:`text-xs`,sm:`text-xs`,md:`text-xs`,lg:`text-sm`,xl:`text-base`,"2xl":`text-xl`,"3xl":`text-2xl`}},defaultVariants:{isDisabled:!1,isSelected:!1,size:`md`}}),m=c.forwardRef(({className:e,isSelected:t=!1,isDisabled:n=!1,size:r,...i},s)=>{let c=o(p({isSelected:t,isDisabled:n,size:r}),e);return(0,l.jsx)(a,{ref:s,className:c,...i})});m.displayName=a.displayName;var h=({src:e,fallBack:t,size:n,isSelected:r,isDisabled:i,onClick:a,className:o,bordered:s=!1,rounded:c=`full`})=>{let u=c===`md`?`rounded-md`:void 0;return(0,l.jsxs)(d,{bordered:s,size:n,onClick:a,className:o,children:[(0,l.jsx)(f,{isDisabled:i,src:e,className:u}),(0,l.jsx)(m,{isSelected:r,isDisabled:i,size:n,className:u,children:t})]})};export{m as n,d as r,h 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.