1import{r as m,j as r}from"./app-YI4vRmAj.js";/* empty css */const e=[{from:"hsl(220 60% 60%)",to:"hsl(220 60% 50%)"},{from:"hsl(160 50% 55%)",to:"hsl(160 50% 45%)"},{from:"hsl(280 50% 60%)",to:"hsl(280 50% 50%)"},{from:"hsl(20 65% 60%)",to:"hsl(20 65% 50%)"},{from:"hsl(340 55% 60%)",to:"hsl(340 55% 50%)"},{from:"hsl(45 70% 55%)",to:"hsl(45 70% 45%)"},{from:"hsl(190 55% 55%)",to:"hsl(190 55% 45%)"},{from:"hsl(120 40% 55%)",to:"hsl(120 40% 45%)"}];function c({displayName:s,initials:h,profilePicture:l,colorIndex:n,isCreator:a=!1,isFormer:i=!1,size:t=40}){const[d,f]=m.useState(!1);if(i)return r.jsx("div",{className:"flex shrink-0 items-center justify-center rounded-full bg-gray-200 font-semibold text-gray-400",style:{width:t,height:t,fontSize:Math.round(t*.5)},"aria-hidden":!0,children:"â"});if(l&&!d)return r.jsx("img",{src:l,alt:s,width:t,height:t,loading:"lazy",onError:()=>f(!0),className:"shrink-0 rounded-full object-cover",style:{width:t,height:t}});const o=e[(n%e.length+e.length)%e.length];return r.jsx("div",{className:"flex shrink-0 items-center justify-center rounded-full font-semibold uppercase text-white shadow-inner",style:{width:t,height:t,fontSize:Math.round(t*.4),background:a?"linear-gradient(135deg, hsl(220, 60%, 55%), hsl(260, 65%, 45%))":`linear-gradient(135deg, ${o.from}, ${o.to})`},"aria-hidden":!0,children:h||"?"})}export{c as PostAuthorAvatar};
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.