import{w as d,j as e}from"./jsx-runtime-CgWCn3gT.js";import{L as m,S as o}from"./legacy-shell-D4JdMu14.js";import{J as c,e as x,s as g}from"./seo-meta-Bpqygpx8.js";import f from"./index-DyCRLGG1.js";import"./i18nInstance-C_7vXBXC.js";import"./useTranslation-CksCcIr-.js";import"./index-ao6ir_VS.js";import"./preload-helper-BXl3LOEh.js";import"./styled-components.browser.esm-CQ4IZagM.js";import"./routerStatic-A6c7KaXM.js";import"./ModelCard-Cbl5R8fS.js";import"./index-6B3tFNLA.js";import"./useVariants-DSpotrXM.js";import"./index-CcHKj0sM.js";import"./SearchOutlined-4CAPyJbl.js";import"./index-DKjRcP81.js";import"./modelRetire-D9cZQWKz.js";import"./PricingPromotion-Cg1c_py4.js";import"./index-DNb1lEOy.js";import"./providerSeo-RwIhoovz.js";import"./index-D78fFI5F.js";import"./index-JBW8Yjgf.js";import"./index-ddxL1wos.js";import"./ReloadOutlined-c_qJZMCY.js";const h='.desc{display:flex;flex-direction:row;align-items:flex-start;min-height:48px}.desc p{flex:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;font-weight:400;line-height:16px;margin-top:8px;margin-bottom:0;color:#626773}.desc .flag{height:48px;display:flex;align-items:flex-end;margin-left:8px}.price{color:#969696;font-size:12px;font-weight:400;word-break:break-word;color:#353941;margin-bottom:8px;display:flex;align-items:center;gap:8px;height:16px}.select-name{width:70px;color:#111;font-size:12px;font-weight:600}.model-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.model-title-container{width:100%;box-sizing:border-box;margin-bottom:10px}.model-list-header-title{display:flex;align-items:center;gap:16px;font-size:32px;font-weight:700;font-family:OldStandardTT-Bold,OldStandardTT-Bold-Fallback,Georgia,serif}.model-list-header-total{font-size:14px;font-weight:400;color:#999}.avatar-container{height:32px;width:32px;border:1px solid rgba(0,0,0,.08);border-radius:8px;margin-right:8px}.avatar-container img{width:100%;height:100%;object-fit:cover}.model-detail-header{background:#fff;box-shadow:0 2px 8px #0000000f;border-radius:16px;padding:16px;border:.5px solid rgba(0,0,0,.1)}.model-detail-header-top{display:flex;align-items:flex-start}.model-desc{margin-top:16px;font-weight:400;font-size:12px;color:#626773;line-height:14px;text-align:left;word-wrap:break-word}.model-modalities{height:56px;background:#fff;box-shadow:0 2px 8px #0000000f;border-radius:16px;border:.5px solid rgba(0,0,0,.1);margin-top:16px;display:flex;align-items:center}.model-modalities-item-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:1px;width:100%}.model-modalities-item-content li{display:inline-flex;height:100%;width:25%;align-items:center;justify-content:center;gap:8px;position:relative;color:#626773;font-size:12px}.model-modalities-item-content li:not(:last-child):after{content:"";position:absolute;right:-8px;top:20%;bottom:20%;width:1px;background:#ccc}.model-attribute{display:flex;flex-direction:row;align-items:flex-start}.model-attribute-item{width:180px}.model-attribute-item:first-child{flex:1;width:auto}.model-attribute-item-title,.model-usage-title{margin-top:32px;font-family:OldStandardTT-Bold,OldStandardTT-Bold-Fallback,Georgia,serif;font-weight:400;font-size:24px;color:#111;line-height:24px;text-align:left}.model-attribute-item-content{margin-top:16px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}.model-attribute-item-content li{display:flex;align-items:center;gap:8px;font-size:12px;color:#353941}.model-usage-content{font-weight:400;font-size:12px;color:#353941;line-height:15px;text-align:left;margin-top:16px;margin-bottom:16px}.model-usage-code{width:100%;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:16px}.model-usage-link{margin-top:32px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.ant-pro-list .ant-pro-card{background-color:transparent!important;background:transparent!important}';function A({data:n}){return g("models",n?.locale||"en")}function u({links:n,providerDirectory:t,popular:r,retiringCount:s}){const a=n.filter(([i])=>String(i).endsWith("-free")).length;return e.jsxs("section",{style:{padding:"8px 0 40px"},children:[r&&r.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{style:{fontSize:16,margin:"0 0 8px"},children:"Popular models"}),e.jsx("p",{style:{fontSize:14,lineHeight:2,margin:"0 0 20px"},children:r.map((i,l)=>e.jsxs("span",{children:[l>0&&" · ",e.jsx("a",{href:`/model/${encodeURIComponent(i.model)}`,style:{color:"#2563eb",textDecoration:"none"},children:i.name})]},i.model))})]}),t&&t.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{style:{fontSize:16,margin:"0 0 8px"},children:"Browse by model author"}),e.jsx("p",{style:{fontSize:14,lineHeight:2,margin:"0 0 20px"},children:t.map((i,l)=>e.jsxs("span",{children:[l>0&&" · ",e.jsxs("a",{href:`/authors/${i.slug}`,style:{color:"#2563eb",textDecoration:"none"},children:[i.name," (",i.count,")"]})]},i.slug))})]}),a>0&&e.jsx("p",{style:{fontSize:14,marginBottom:8},children:e.jsxs("a",{href:"/models/free",style:{color:"#2563eb",textDecoration:"none"},children:[a," free models — no credit card required →"]})}),s>0&&e.jsx("p",{style:{fontSize:14,marginBottom:8},children:e.jsxs("a",{href:"/models/retirements",style:{color:"#2563eb",textDecoration:"none"},children:[s," models deprecating or retired — dates and replacements →"]})}),e.jsxs("details",{children:[e.jsxs("summary",{style:{fontSize:14,color:"#888",cursor:"pointer"},children:["All models (",n.length,")"]}),e.jsx("p",{style:{fontSize:12,lineHeight:2,marginTop:8},children:n.map(([i,l],p)=>e.jsxs("span",{children:[p>0&&" · ",e.jsx("a",{href:`/model/${encodeURIComponent(i)}`,style:{color:"#888",textDecoration:"none"},children:l||i})]},i))})]})]})}const E=d(function({loaderData:t}){return e.jsxs(m,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:h}}),e.jsx(f,{initialData:t.first,initialTotal:t.total,initialDevelopers:t.developers,initialFilters:t.initialFilters,initialNames:t.links}),e.jsx(u,{links:t.links,providerDirectory:t.providerDirectory,popular:t.popular,retiringCount:t.retiringCount}),e.jsx("script",{id:c,type:"application/ld+json",dangerouslySetInnerHTML:{__html:x(JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:o.pages.models.title[t.locale]||o.pages.models.title.en,description:o.pages.models.description[t.locale]||o.pages.models.description.en,url:o.pages.models.canonical[t.locale]||o.pages.models.canonical.en,inLanguage:t.locale,isPartOf:{"@type":"WebSite",name:o.siteInfo.siteName,url:o.siteInfo.domain}}))}})]})});export{E as default,A as meta};
