import{b as i,p as e,L as l}from"./index-D3Q1knR6.js";import{T as c,B as m}from"./TopBar-C8rjlOhI.js";import{F as x}from"./flame-BaVgRNL-.js";import{c as d}from"./createLucideIcon-BLVTLNRa.js";import{L as h}from"./lock-BpnTOBOI.js";import"./message-circle-CjeS-3Ff.js";const f=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],p=d("chevron-right",f);function g({m:t}){const s=e.jsxs(e.Fragment,{children:[t.cover?e.jsx("img",{src:t.cover,alt:t.name,className:"h-full w-full object-cover transition group-hover:scale-105"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-[#f8f8f8]",children:e.jsx(h,{className:"h-7 w-7 text-[#bbb]"})}),e.jsxs("span",{className:"absolute left-1.5 top-1.5 rounded-md bg-white/95 px-1.5 py-0.5 text-[10px] font-bold text-[#333] shadow-sm",children:[t.rank,"°"]}),e.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/85 via-black/40 to-transparent p-2 text-white",children:[e.jsx("p",{className:"truncate text-xs font-semibold",children:t.name}),e.jsx("p",{className:"truncate text-[10px] text-white/75",children:t.comingSoon?"em breve":`@${t.handle}`})]})]});return t.comingSoon?e.jsx("div",{className:"group relative aspect-[3/4] cursor-not-allowed overflow-hidden rounded-xl bg-[#f8f8f8] ring-1 ring-[#e0e0e0] opacity-80",children:s}):e.jsx(l,{to:"/modelo/$slug",params:{slug:t.slug},className:"group relative aspect-[3/4] overflow-hidden rounded-xl bg-[#f8f8f8] ring-1 ring-[#e0e0e0]",children:s})}function r({title:t,items:s}){return e.jsxs("section",{className:"mb-6",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between px-1",children:[e.jsx("h2",{className:"text-[15px] font-semibold text-[#333]",children:t}),e.jsx(p,{className:"h-4 w-4 text-[#999]"})]}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:s.map(a=>e.jsx(g,{m:a},a.slug))})]})}function k(){const{models:t}=i.useLoaderData(),s=[...t].filter(o=>!o.comingSoon).sort((o,n)=>o.rank-n.rank),a=t.filter(o=>o.comingSoon);return e.jsxs("div",{className:"min-h-screen bg-white text-[#333]",children:[e.jsx(c,{}),e.jsxs("main",{className:"mx-auto max-w-3xl px-3 pb-24 pt-3",children:[e.jsxs("div",{className:"relative mb-5 overflow-hidden rounded-2xl ring-1 ring-[#e0e0e0]",children:[e.jsx("img",{src:"/site/images/cover.jpg",alt:"",className:"h-32 w-full object-cover sm:h-44"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),e.jsxs("div",{className:"absolute bottom-3 left-4 flex items-center gap-2 text-white",children:[e.jsx(x,{className:"h-6 w-6 text-[#ff6b3d]"}),e.jsx("h1",{className:"text-2xl font-bold",children:"Em alta"})]})]}),e.jsx(r,{title:"Top creators",items:s}),a.length>0&&e.jsx(r,{title:"Em breve no privacy",items:a})]}),e.jsx(m,{})]})}export{k as component};
