import{j as e}from"./jsx-runtime-Byf2O5Qf.js";import{c as r}from"./clsx-B-dksMZM.js";import{r as g,L as u}from"./chunk-HA7DTUK3-Cv5eIhAv.js";import{R as h}from"./index-B6meePy9.js";import{S as d,a as b,T as v,F as w}from"./conditional_render-C0njI6gk.js";import{U as y}from"./user_image-DVOd5UtO.js";const j={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},I=({authors:t,maxNamesToShow:l=Number(t==null?void 0:t.length),size:m="xs",links:a,showAvatars:c=!1,inline:n=!1})=>{if(!t)return null;const p=t.slice(0,l);return n&&!c?e.jsxs("div",{className:"leading-tight",children:[p.map((s,x)=>e.jsxs(g.Fragment,{children:[s.user?e.jsx(u,{className:r(a?"text-blue-500 hover:opacity-70":"text-neutral-500 hover:underline",j[m]),to:`/u/${s.user.username}`,prefetch:"none","aria-label":`Visit ${s.name}'s author profile`,children:s.name}):e.jsx("span",{className:r(a?"text-blue-500":"text-neutral-500",j[m]),children:s.name}),x