1import{r as c,j as e,H as N,aH as g,L as p,aI as b,F as v,aJ as S,aK as C,aL as A,A as F,aM as k}from"./index-CKIteSWd.js";const y={"pt-BR":{eyebrow:"Central do Clipador",title:"Blog Autoclipper",subtitle:"Guias práticos sobre cortes com IA, canais de cortes, monetização e estratégia para TikTok, Reels e Shorts.",searchPlaceholder:"Pesquisar artigos...",all:"Todos",featured:"Destaque",recent:"Artigos recentes",resultsFor:t=>`Resultados para "${t}"`,inCategory:t=>`Artigos em ${t}`,showing:t=>`${t} ${t===1?"artigo":"artigos"}`,empty:"Nenhum artigo encontrado",emptyHint:"Tente ajustar sua busca ou categoria.",clearFilters:"Limpar filtros",newsTitle:"Fique por dentro das novidades",newsSubtitle:"Receba as melhores estratégias de IA, cortes e crescimento em vÃdeo direto no seu e-mail.",newsPlaceholder:"Seu melhor e-mail",newsCta:"Inscrever-se",newsSubmitting:"Inscrevendo...",newsDone:"Inscrição confirmada! Você receberá nossas novidades em breve.",newsError:"Não foi possÃvel concluir a inscrição. Tente novamente.",newsFootnote:"Sem spam. Apenas conteúdo de valor."},"en-US":{eyebrow:"The Clipper Hub",title:"Autoclipper Blog",subtitle:"Practical guides on AI clipping, clip channels, monetization, and strategy for TikTok, Reels, and Shorts.",searchPlaceholder:"Search articles...",all:"All",featured:"Featured",recent:"Recent articles",resultsFor:t=>`Results for "${t}"`,inCategory:t=>`Articles in ${t}`,showing:t=>`${t} ${t===1?"article":"articles"}`,empty:"No articles found",emptyHint:"Try adjusting your search or category.",clearFilters:"Clear filters",newsTitle:"Stay in the loop",newsSubtitle:"Get the best AI, clipping, and video-growth strategies straight to your inbox.",newsPlaceholder:"Your best email",newsCta:"Subscribe",newsSubmitting:"Subscribing...",newsDone:"Subscription confirmed! You'll hear from us soon.",newsError:"Subscription failed. Please try again.",newsFootnote:"No spam. Only valuable content."}};function T(t,a){return new Date(`${t}T12:00:00Z`).toLocaleDateString(a,{day:"numeric",month:"short",year:"numeric"})}function f({post:t,lang:a}){return e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(S,{className:"size-3.5 text-primary"})," ",T(t.date,a)]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(C,{className:"size-3.5 text-primary"})," ",t.readingTimeMin," min"]}),t.author?e.jsxs("span",{className:"inline-flex items-center gap-1.5 min-w-0",children:[t.authorAvatar?e.jsx("img",{src:t.authorAvatar,alt:t.author,className:"size-5 rounded-full object-cover"}):null,e.jsx("span",{className:"truncate",children:t.author})]}):null]})}function z({lang:t}){const a=y[t],[r,i]=c.useState(""),[o,n]=c.useState("idle");async function m(d){if(d.preventDefault(),!(!r||o==="submitting")){n("submitting");try{await k(r),i(""),n("done")}catch{n("error")}}}return e.jsxs("aside",{className:"glass rounded-3xl p-10 md:p-14 mt-20 text-center relative overflow-hidden",children:[e.jsx("div",{className:"absolute -top-20 -right-20 size-80 rounded-full bg-primary/10 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative max-w-2xl mx-auto",children:[e.jsx("div",{className:"size-14 rounded-2xl bg-primary/10 text-primary flex items-center justify-center mx-auto mb-6",children:e.jsx(A,{className:"size-7"})}),e.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold mb-3",children:a.newsTitle}),e.jsx("p",{className:"text-muted-foreground mb-8",children:a.newsSubtitle}),o==="done"?e.jsx("p",{className:"text-primary font-semibold text-lg",children:a.newsDone}):e.jsxs(e.Fragment,{children:[e.jsxs("form",{className:"flex flex-col sm:flex-row gap-3",onSubmit:m,children:[e.jsx("input",{type:"email",required:!0,placeholder:a.newsPlaceholder,value:r,onChange:d=>i(d.target.value),className:"flex-1 h-12 rounded-xl bg-card/50 border border-border px-5 focus:outline-none focus:border-primary/50 transition"}),e.jsxs("button",{type:"submit",disabled:o==="submitting",className:"inline-flex h-12 px-6 items-center justify-center gap-2 rounded-xl bg-gradient-primary text-primary-foreground font-bold shadow-glow hover:scale-105 transition-transform disabled:opacity-50 disabled:hover:scale-100",children:[o==="submitting"?a.newsSubmitting:a.newsCta,o!=="submitting"?e.jsx(F,{className:"size-4"}):null]})]}),o==="error"?e.jsx("p",{className:"mt-4 text-sm text-destructive",children:a.newsError}):e.jsx("p",{className:"mt-4 text-xs text-muted-foreground italic",children:a.newsFootnote})]})]})]})}function I({lang:t,posts:a}){const r=y[t],[i,o]=c.useState(r.all),[n,m]=c.useState(""),d=c.useMemo(()=>[r.all,...Array.from(new Set(a.map(s=>s.category)))],[a,r.all]),x=c.useMemo(()=>{const s=n.trim().toLowerCase();return a.filter(u=>
1{const j=i===r.all||u.category===i,w=!s||u.title.toLowerCase().includes(s)||u.description.toLowerCase().includes(s);return j&&w})},[a,i,n,r.all]),l=i!==r.all||n.trim()!==""?void 0:a.find(s=>s.highlight)??a[0],h=x.filter(s=>s.slug!==l?.slug);return e.jsxs("div",{className:"min-h-screen overflow-hidden",children:[e.jsx(N,{}),e.jsxs("main",{className:"mx-auto max-w-6xl px-6 py-20",children:[e.jsxs("header",{className:"text-center mb-12",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary mb-4",children:r.eyebrow}),e.jsx("h1",{className:"font-display text-5xl md:text-6xl font-bold tracking-tight",children:r.title}),e.jsx("p",{className:"mt-6 text-xl text-muted-foreground max-w-2xl mx-auto",children:r.subtitle}),e.jsxs("div",{className:"max-w-xl mx-auto relative mt-10",children:[e.jsx(g,{className:"absolute left-4 top-1/2 -translate-y-1/2 size-5 text-muted-foreground pointer-events-none"}),e.jsx("input",{type:"text",placeholder:r.searchPlaceholder,value:n,onChange:s=>m(s.target.value),className:"w-full h-13 rounded-2xl bg-card/50 border border-border py-3.5 pl-12 pr-5 focus:outline-none focus:border-primary/50 transition"})]})]}),e.jsx("nav",{"aria-label":t==="en-US"?"Category filter":"Filtro de categorias",className:"flex items-center gap-2 overflow-x-auto mb-12 justify-start md:[justify-content:safe_center] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:d.map(s=>e.jsx("button",{type:"button",onClick:()=>o(s),className:`whitespace-nowrap px-5 py-2 rounded-full text-sm font-semibold transition-all ${i===s?"bg-gradient-primary text-primary-foreground shadow-glow":"bg-card/50 border border-border text-muted-foreground hover:text-foreground hover:border-primary/30"}`,children:s},s))}),l?e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-xs uppercase tracking-widest text-muted-foreground font-bold mb-4",children:r.featured}),e.jsxs(p,{to:b(l),className:"glass rounded-3xl block relative overflow-hidden hover:border-primary/50 transition-all hover:-translate-y-1 mb-14 md:flex",children:[l.image?e.jsx("div",{className:"md:w-1/2 shrink-0",children:e.jsx("img",{src:l.image,alt:l.imageAlt??l.title,width:1200,height:675,className:"w-full h-56 md:h-full object-cover"})}):e.jsx("div",{className:"absolute -top-20 -right-20 size-80 rounded-full bg-primary/10 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative p-10 md:p-14",children:[e.jsx("p",{className:"text-xs uppercase tracking-widest text-primary mb-3",children:l.category}),e.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold leading-tight mb-4",children:l.title}),e.jsx("p",{className:"text-muted-foreground text-lg mb-6",children:l.description}),e.jsx(f,{post:l,lang:t})]})]})]}):null,e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-xs uppercase tracking-widest text-muted-foreground font-bold",children:n.trim()?r.resultsFor(n.trim()):i===r.all?r.recent:r.inCategory(i)}),e.jsx("span",{className:"text-sm text-muted-foreground",children:r.showing(x.length)})]}),h.length>0?e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(s=>e.jsxs(p,{to:b(s),className:"glass rounded-2xl overflow-hidden hover:border-primary/50 transition-all hover:-translate-y-1 flex flex-col",children:[s.image?e.jsx("img",{src:s.image,alt:s.imageAlt??s.title,loading:"lazy",width:600,height:338,className:"w-full h-44 object-cover"}):null,e.jsxs("div",{className:"p-8 flex flex-col flex-1",children:[e.jsx("p",{className:"text-xs uppercase tracking-widest text-primary mb-3",children:s.category}),e.jsx("h2",{className:"font-semibold text-lg leading-snug mb-3",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-5 flex-1",children:s.description}),e.jsx(f,{post:s,lang:t})]})]},s.slug))}):e.jsxs("div",{className:"glass rounded-3xl border-dashed text-center py-20 px-6",children:[e.jsx(g,{className:"size-10 mx-auto text-muted-foreground mb-4"}),e.jsx("h3",{className:"font-semibold text-lg mb-1",children:r.empty}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.emptyHint}),e.jsx("button",{type:"button",onClick:()=>{o(r.all),m("")},className:"mt-6 text-primary font-bold hover:underline",children:r.clearFilters})]}),e.jsx(z,{lang:t})]}),e.jsx(v,{})]})}
1export{I as B};
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.