import{w as j,j as e}from"./jsx-runtime-CgWCn3gT.js";import{S as p,L as v}from"./legacy-shell-D4JdMu14.js";import{J as N,e as f,o as I,a as _}from"./seo-meta-Bpqygpx8.js";import{p as y}from"./index-hXL9_ymv.js";import{u as A}from"./useTranslation-CksCcIr-.js";import{E as H}from"./error-page-Bt0s4Oe9.js";import"./i18nInstance-C_7vXBXC.js";import"./index-ao6ir_VS.js";import"./preload-helper-BXl3LOEh.js";const c=p.siteInfo.domain,h=3;function L(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${Math.round(a/1e3)}K`:String(a)}function T({data:a,error:o}){if(o||!a)return[{title:"Temporarily Unavailable"},{name:"robots",content:"noindex"}];const{providers:n,totalModels:t}=a,i=`AI Model Authors - ${n.length} Vendors, One API | AIHubMix`,d=n.slice(0,5).map(m=>m.name).join(", "),l=`Browse all ${n.length} model authors on AIHubMix — ${d} and more. ${t} models with transparent per-token pricing through one API key.`,r=`${c}/authors`;return[{title:i},{name:"description",content:l},{tagName:"link",rel:"canonical",href:r},...I({title:i,description:l,url:r}),..._()]}function u({p:a,className:o}){return e.jsx("span",{className:o,"aria-hidden":"true",children:a.icon?e.jsx("img",{src:a.icon,alt:"",loading:"lazy"}):a.initials})}const C=j(function({loaderData:o}){const{t:n}=A(),{providers:t,totalModels:i}=o,d=t.slice(0,h),l=t.slice(h),r=`${c}/authors`,m={"@type":"WebSite",name:p.siteInfo.siteName,url:c},x={"@context":"https://schema.org","@graph":[{"@type":"CollectionPage",url:r,name:"AI Model Authors",inLanguage:"en",isPartOf:m,mainEntity:{"@type":"ItemList",numberOfItems:t.length,itemListElement:t.map((s,g)=>({"@type":"ListItem",position:g+1,name:s.name,url:`${c}/authors/${s.slug}`}))}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Model Authors",item:r}]}]};return e.jsxs(v,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:y}}),e.jsx("div",{className:"pv-page",children:e.jsx("main",{children:e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsx("h1",{children:n("AI Model Authors")}),e.jsxs("p",{className:"pvd-lead",children:[n("authors index stats",{providers:t.length,models:i})," ",n("authors index desc")]}),e.jsx("div",{className:"pvd-feat",children:d.map(s=>e.jsxs("a",{className:"ah-card pvd-card",href:`/authors/${s.slug}`,children:[e.jsx(u,{p:s,className:"ah-logo ah-logo--xl"}),e.jsxs("div",{className:"pvd-card__id",children:[e.jsx("h3",{children:s.name}),e.jsxs("span",{className:"ah-meta",children:[s.count," ",n("models unit",{count:s.count})]})]}),s.calls>0&&e.jsxs("p",{className:"pvd-card__usage",children:[L(s.calls)," ",e.jsx("span",{className:"ah-unit",children:n("calls 30d")})]}),e.jsx("span",{className:"pvd-chevron","aria-hidden":"true",children:"›"})]},s.slug))}),e.jsxs("div",{className:"pvd-all",children:[e.jsx("h2",{children:n("All model authors")}),e.jsx("div",{className:"pvd-index",children:l.map(s=>e.jsxs("a",{className:"pvd-row",href:`/authors/${s.slug}`,children:[e.jsx(u,{p:s,className:"ah-logo pvd-row__logo"}),e.jsx("span",{className:"pvd-row__name",children:s.name}),e.jsxs("span",{className:"ah-meta pvd-row__count",children:[s.count," ",n("models unit",{count:s.count})]}),e.jsx("span",{className:"pvd-chevron","aria-hidden":"true",children:"›"})]},s.slug))})]})]})})})}),e.jsx("script",{id:N,type:"application/ld+json",dangerouslySetInnerHTML:{__html:f(JSON.stringify(x))}})]})});export{H as ErrorBoundary,C as default,T as meta};
