1import{w as X,G as Y}from"./withLayout-CvTHwEDw.js";import{j as e}from"./vendor-editor-BX0sR0z-.js";import{L as g,r as c,R as Z}from"./vendor-react-BPk9u-w4.js";import{A as J,t as Q,u as z}from"./useHomeNews-C8O_sJft.js";import{G as ee}from"./menu-BwlNRRqD.js";import{d as se}from"./magazinesService-C0fTWmiB.js";import{w as H,l as F,d as te,h as le}from"./index-FZUSOwo2.js";import{cd as T,A as P,s as ae,ab as re,N as ne,aG as B,C as ie,a as oe,aD as ce,b as de,L as me,bo as W,y as xe,bu as fe}from"./vendor-icons-D7M_7Je-.js";import{A as M}from"./AmanhaAdSlot-Frw468Od.js";import{l as ue,h as he,g as G,c as ge,m as pe}from"./pollsService-D_WnAtV6.js";import{l as be}from"./columnistsService-XHLe4s9P.js";import{A as je}from"./AmanhaProjectsRail-LQKnZDWb.js";import{l as ve}from"./portalVideosService-O_nDb_FX.js";import{u as Ne}from"./useNetworkPath-BxHc0myL.js";const we=/[Ì-ͯ]/g,I=s=>{const a=String(s||"").trim();if(!a)return"";const r=a.normalize("NFD").replace(we,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return(ee[r]??a).toUpperCase()},ye=({articles:s,className:a=""})=>{if(s.length===0)return null;const[r,...n]=s,t=n.slice(0,4),l=I(r.category);return e.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 auto-rows-[minmax(180px,auto)] ${a}`,children:[e.jsxs(g,{to:r.url||"#",className:"md:col-span-2 lg:col-span-2 lg:row-span-2 block rounded-2xl overflow-hidden relative group cursor-pointer min-h-[420px] lg:min-h-[460px] bg-slate-800",children:[r.imageUrl?e.jsx("img",{src:r.imageUrl,alt:r.title,fetchPriority:"high",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-800 via-slate-900 to-[#3d1112]","aria-hidden":"true"}),e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent p-6 md:p-8 flex flex-col justify-end",children:[l&&e.jsx("span",{className:"inline-block px-3 py-1 bg-[#ff3b3f]/95 backdrop-blur-md text-white text-xs font-bold uppercase tracking-wider mb-3 rounded-sm w-fit shadow-sm",children:l}),e.jsx("h2",{title:r.title,className:"text-xl sm:text-2xl md:text-3xl lg:text-[34px] font-bold text-white mb-2 leading-tight",children:r.title}),r.excerpt&&e.jsx("p",{className:"hidden md:block text-slate-200 text-sm md:text-base line-clamp-2 mb-3",children:r.excerpt}),r.author&&e.jsx("div",{className:"text-slate-300 text-xs md:text-sm font-medium",children:r.author})]})]}),t.map(m=>{const x=I(m.category);return e.jsxs(g,{to:m.url||"#",className:"lg:col-span-1 relative rounded-2xl overflow-hidden group min-h-[200px] bg-slate-800",children:[m.imageUrl?e.jsx("img",{src:m.imageUrl,alt:m.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-800 via-slate-900 to-[#3d1112]","aria-hidden":"true"}),e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-transparent p-4 flex flex-col justify-end",children:[x&&e.jsx("span",{className:"text-[10px] font-bold text-white/85 uppercase tracking-wider mb-1",children:x}),e.jsx("h3",{title:m.title,className:"text-[13px] lg:text-sm font-bold text-white leading-snug line-clamp-4 md:line-clamp-5 lg:line-clamp-4 group-hover:text-red-200 transition-colors",children:m.title})]})]},m.id)})]})},V="/assine",Ae=({magazine:s,variant:a="hero",className:r=""})=>{const n=s?`/revista/${s.edition_number}`:"/edicoes-digitais";return a==="compact"?e.jsxs("div",{className:`group relative flex items-stretch overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition-all duration-300 hover:-translate-y-0.5 hover:border-slate-300 hover:shadow-lg min-h-[164px] ${r}`,children:[e.jsxs(g,{to:n,"aria-label":s?`Ler edição ${s.edition_number}`:"Edições digitais",className:"relative flex shrink-0 items-center justify-center self-stretch w-[128px] overflow-hidden bg-gradient-to-br from-slate-100 via-slate-100 to-slate-200 p-3",children:[e.jsx("span",{className:"pointer-events-none absolute inset-0 bg-gradient-to-tr from-transparent via-white/50 to-transparent opacity-70","aria-hidden":"true"}),s!=null&&s.cover_url?e.jsx("img",{src:s.cover_url,alt:`Capa edição ${s.edition_number}`,loading:"lazy",className:"relative max-h-full max-w-full rounded-[4px] object-contain shadow-[0_10px_22px_-6px_rgba(15,23,42,0.45)] ring-1 ring-black/10 transition-transform duration-500 group-hover:-translate-y-1 group-hover:-rotate-2"}):e.jsxs("div",{className:"relative flex flex-col items-center gap-1 text-slate-400",children:[e.jsx(T,{className:"h-8 w-8"}),e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider",children:"AMANHÃ"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-between gap-3 p-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-[#ff3b3f]",children:s?`Edição ${s.edition_number}`:"Revista AMANHÃ"}),e.jsx("h3",{title:(s==null?void 0:s.title)||void 0,className:"mt-1.5 text-sm font-bold leading-snug text-slate-900 line-clamp-3",children:(s==null?void 0:s.title)||"Economia e negócios do Sul"})]}),e.jsxs(g,{to:V,className:"inline-flex min-h-[44px] w-fit items-center gap-1.5 rounded-lg bg-[#ff3b3f] px-4 py-2.5 text-[13px] font-bold text-white shadow-sm transition-colors hover:bg-[#e6353a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff3b3f] focus-visible:ring-offset-2",children:["Assine ",e.jsx(P,{className:"h-3.5 w-3.5"})]})]})]}):e.jsxs("div",{className:`bg-slate-900 rounded-2xl overflow-hidden text-white flex flex-col ${r}`,children:[e.jsxs(g,{to:n,className:"block relative aspect-[3/4] bg-slate-800 group",children:[s!=null&&s.cover_url?e.jsx("img",{src:s.cover_url,alt:`Capa edição ${s.edition_number} â ${s.title}`,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-slate-900 to-slate-700",children:e.jsx(T,{className:"w-10 h-10 text-white/40"})}),s&&e.jsxs("span",{className:"absolute top-2 left-2 px-2 py-0.5 bg-[#ff3b3f] text-white text-[10px] font-bold uppercase tracking-wider rounded",children:["Edição ",s.edition_number]})]}),e.jsxs("div",{className:"p-4 flex flex-col gap-2",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-[#ff3b3f] uppercase tracking-widest",children:s?"Edição atual":"Revista AMANHÃ"}),e.jsx("h3",{title:(s==null?void 0:s.title)||void 0,className:"text-base font-bold mt-1 leading-snug line-clamp-3",children:(s==null?void 0:s.title)||"Economia e negócios do Sul na sua mão"})]}),e.jsxs(g,{to:V,className:"inline-flex min-h-[44px] items-center justify-center gap-2 px-4 py-2.5 bg-[#ff3b3f] hover:bg-[#ff3b3f]/90 text-white text-sm font-bold rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff3b3f] focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",children:["Assine ",e.jsx(P,{className:"w-4 h-4"})]})]})]})},ke=({mrecSlotId:s="home-sidebar-mrec",className:a=""})=>{var m;const r=H(),n=((m=r==null?void 0:r.currentPortal)==null?void 0:m.id)||"grupo-amanha",[t,l]=c.useState(null);return c.useEffect(()=>{let x=!1;return se(n).then(i=>{x||l(i)}).catch(()=>{x||l(null)}),()=>{x=!0}},[n]),e.jsxs("aside",{className:`flex flex-col gap-5 ${a}`,children:[e.jsx(Ae,{magazine:t,variant:"compact",className:"flex-1 md:max-w-md md:mx-auto lg:max-w-none"}),e.jsx(M,{format:"300x250",slotId:s,label:"Publicidade"})]})},Ce=s=>{if(!s)return"";const a=Date.now(),r=new Date(s).getTime(),n=a-r,t=Math.floor(n/(1e3*60*60)),l=Math.floor(t/24);return t<1?"Agora":t<24?`Há ${t}h`:l<7?`Há ${l}d`:new Date(s).toLocaleDateString("pt-BR")},C=({article:s,variant:a="medium",showExcerpt:r=!1,showAuthor:n=!0,showDate:t=!1,showCategory:l=!0,emphasis:m="default",className:x=""})=>{const i=t&&s.publishedAt?Ce(s.publishedAt):"",u=l?I(s.category):"";if(a==="overlay"){const v=m==="feature"?"text-xl sm:text-2xl line-clamp-4":"text-[15px] sm:text-base line-clamp-4";return e.jsxs(g,{to:s.url||"#",className:`relative rounded-2xl overflow-hidden group block ${x}`,children:[s.imageUrl&&e.jsx("img",{src:s.imageUrl,alt:s.title,loading:"lazy",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent p-4 md:p-5 flex flex-col justify-end",children:[u&&e.jsx("span",{className:"inline-block px-3 py-1 bg-[#ff3b3f]/95 backdrop-blur-md text-white text-xs font-bold uppercase tracking-wider mb-3 rounded-sm w-fit shadow-sm",children:u}),e.jsx("h3",{title:s.title,className:`font-bold text-white mb-2 leading-snug group-hover:text-red-200 transition-colors ${v}`,children:s.title}),(n||t)&&e.jsxs("div",{className:"flex items-center text-slate-300 text-xs gap-3",children:[n&&s.author&&e.jsx("span",{className:"font-medium truncate",children:s.author}),t&&i&&e.jsxs("span",{className:"flex items-center gap-1 shrink-0",children:[e.jsx(ae,{className:"w-3 h-3"})," ",i]})]})]})]})}if(a==="list")return e.jsxs(g,{to:s.url||"#",className:`group flex gap-4 items-start ${x}`,children:[s.imageUrl&&e.jsx("div",{className:"w-24 h-[68px] sm:w-32 sm:h-24 xl:w-24 xl:h-[68px] shrink-0 rounded-lg overflow-hidden",children:e.jsx("img",{src:s.imageUrl,alt:s.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform"})}),e.jsxs("div",{className:"min-w-0",children:[u&&e.jsx("span",{className:"text-[10px] font-bold text-[#ff3b3f] uppercase",children:u}),e.jsx("h4",{title:s.title,className:"text-[13px] lg:text-sm font-bold text-slate-800 leading-snug group-hover:text-[#ff3b3f] transition-colors mt-1 line-clamp-4 md:line-clamp-5 lg:line-clamp-4",children:s.title}),(n||t)&&e.jsxs("div",{className:"flex items-center gap-2 mt-2 text-xs text-slate-400",children:[n&&s.author&&e.jsx("span",{className:"truncate",children:s.author}),t&&i&&e.jsx("span",{className:"shrink-0",children:i})]})]})]});const p={small:{title:"text-[13px] lg:text-sm line-clamp-4 md:line-clamp-5 lg:line-clamp-4",img:"aspect-video"},medium:{title:"text-[15px] lg:text-base line-clamp-4 md:line-clamp-5 lg:line-clamp-4",img:"aspect-video"},large:{title:"text-lg sm:text-xl md:text-2xl line-clamp-3",img:"aspect-video"}},b=p[a]||p.medium;return e.jsxs(g,{to:s.url||"#",className:`group block ${x}`,children:[s.imageUrl&&e.jsx("div",{className:`rounded-xl overflow-hidden mb-3 ${b.img}`,children:e.jsx("img",{src:s.imageUrl,alt:s.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"})}),e.jsxs("div",{children:[u&&e.jsx("span",{className:"text-xs font-bold text-[#ff3b3f] uppercase mb-1 block",children:u}),e.jsx("h4",{title:s.title,className:`font-bold text-slate-800 group-hover:text-[#ff3b3f] transition-colors leading-snug ${b.title}`,children:s.title}),r&&s.excerpt&&e.jsx("p",{className:"text-sm text-slate-500 mt-2 line-clamp-2",children:s.excerpt}),(n||t)&&e.jsxs("div",{className:"flex items-center gap-3 mt-2 text-xs text-slate-400",children:[n&&s.author&&e.jsx("span",{className:"truncate",children:s.author}),t&&i&&e.jsx("span",{className:"shrink-0",children:i})]})]})]})},q="text-sm text-[#c81f23] hover:underline font-medium shrink-0 py-2.5 -my-2.5 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff3b3f] focus-visible:ring-offset-2",S=({title:s,slug:a,to:r,editorias:n,linkLabel:t="Ver todas â",className:l=""})=>{const m=r||(a?`/categoria/${a}`:null),x=!!(n&&n.length>0);return e.jsxs("div",{className:`flex flex-col gap-2 mb-6 sm:flex-row sm:items-center sm:justify-between sm:gap-3 ${l}`,children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-slate-800 border-l-4 border-[#ff3b3f] pl-3 leading-tight",children:s}),x?e.jsx("nav",{"aria-label":`Editorias de ${s}`,className:"flex flex-wrap items-center gap-x-1 gap-y-1 pl-3 sm:pl-0 sm:justify-end",children:n.map((i,u)=>e.jsxs(Z.Fragment,{children:[u>0&&e.jsx("span",{"aria-hidden":"true",className:"select-none text-slate-300",children:"·"}),e.jsx(g,{to:`/categoria/${i.slug}`,className:q,children:i.label})]},i.slug))}):m&&e.jsx(g,{to:m,className:q,children:t})]})},Se=({articles:s,maxItems:a=5,title:r="Em alta",className:n=""})=>{const t=s.slice(0,a);return t.length===0?null:e.jsxs("div",{className:`bg-white rounded-2xl border border-slate-200 p-5 ${n}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-3 border-b border-slate-100",children:[e.jsx(re,{className:"w-4 h-4 text-[#ff3b3f]"}),e.jsx("h4",{className:"font-bold text-slate-900 uppercase tracking-wider text-xs",children:r})]}),e.jsx("ol",{className:"space-y-4",children:t.map((l,m)=>{const x=I(l.category);return e.jsxs("li",{className:"flex gap-3 items-start group",children:[e.jsx("span",{className:"text-2xl font-bold text-[#ff3b3f]/80 leading-none w-6 shrink-0 tabular-nums",children:m+1}),e.jsxs("div",{className:"flex-1 min-w-0",children:[x&&e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:x}),e.jsx(g,{to:l.url||"#",title:l.title,className:"block text-[13px] sm:text-sm font-semibold text-slate-800 leading-snug mt-0.5 group-hover:text-[#ff3b3f] transition-colors line-clamp-3",children:l.title})]})]},l.id)})})]})},_e=({variant:s="sidebar",className:a=""})=>{var E;const r=H(),n=(E=r==null?void 0:r.currentPortal)==null?void 0:E.id,[t,l]=c.useState(null),[m,x]=c.useState(!1),[i,u]=c.useState(null),[p,b]=c.useState(null),[v,d]=c.useState(!1),[h,A]=c.useState([]);c.useEffect(()=>{if(!n)return;let f=!1;return ue(n,6).then(async N=>{const R=Date.now(),$=N.filter(k=>k.is_published&&new Date(k.starts_at).getTime()<=R&&(!k.ends_at||new Date(k.ends_at).getTime()>R)).sort((k,O)=>Number(O.featured)-Number(k.featured))[0]||null;if(!f&&(l($),x(!0),$)){const k=he($.id);if(k){b(k);const O=await G($.id).catch(()=>[]);f||A(O)}}}).catch(()=>{f||(l(null),x(!0))}),()=>{f=!0}},[n]);const y=c.useMemo(()=>h.reduce((f,N)=>f+N.vote_count,0),[h]),o=async()=>
1{if(!(!t||!i||v||p)){d(!0);try{await ge(t.id,i),pe(t.id,i),b(i);const f=await G(t.id).catch(()=>[]);A(f)}catch(f){F.warn("AmanhaPollCard vote failed",f)}finally{d(!1)}}},w=t?e.jsxs("div",{className:"space-y-3",children:[t.options.map(f=>{var $;const N=(($=h.find(k=>k.option_id===f.id))==null?void 0:$.vote_count)??0,R=y>0?Math.round(N/y*100):0,L=p===f.id;return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between text-[12px] mb-1",children:[e.jsxs("span",{className:`leading-snug pr-2 ${L?"font-bold text-slate-900":"text-slate-600"}`,children:[L&&e.jsx(ne,{className:"w-3 h-3 text-[#ff3b3f] inline mr-1 -mt-0.5"}),f.label]}),e.jsxs("span",{className:"font-bold text-slate-700 shrink-0 tabular-nums",children:[R,"%"]})]}),e.jsx("div",{className:"h-1.5 bg-slate-100 rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${L?"bg-[#ff3b3f]":"bg-slate-300"}`,style:{width:`${R}%`}})})]},f.id)}),e.jsxs("p",{className:"text-[11px] text-slate-400 pt-1",children:[y," voto",y===1?"":"s"," ·"," ",e.jsx(g,{to:"/enquetes",className:"text-[#ff3b3f] hover:underline",children:"todas as enquetes"})]})]}):null,j=t?e.jsxs("div",{className:"space-y-2",children:[t.options.map(f=>e.jsxs("label",{className:`flex items-start gap-2.5 p-2.5 rounded-xl border cursor-pointer transition-all text-[13px] leading-snug ${i===f.id?"border-[#ff3b3f] bg-[#ff3b3f]/5 text-slate-900":"border-slate-200 text-slate-600 hover:border-slate-300"}`,children:[e.jsx("input",{type:"radio",name:`poll-${s}-${t.id}`,checked:i===f.id,onChange:()=>u(f.id),className:"mt-0.5 accent-[#ff3b3f]"}),f.label]},f.id)),e.jsx("button",{type:"button",onClick:o,disabled:!i||v,className:"w-full mt-1 py-2.5 bg-[#ff3b3f] hover:bg-[#e6353a] disabled:bg-slate-200 disabled:text-slate-400 text-white text-sm font-bold rounded-lg transition-colors",children:v?"Enviandoâ¦":"Votar"})]}):null;return s==="band"?m?t?e.jsxs("div",{className:`flex flex-col lg:flex-row gap-6 ${a}`,children:[e.jsxs("div",{className:"flex-1 bg-white rounded-2xl border border-slate-200 p-5 sm:p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-5 pb-4 border-b border-slate-100",children:[e.jsx(B,{className:"w-4 h-4 text-[#ff3b3f]"}),e.jsx("h3",{className:"font-bold text-slate-900 uppercase tracking-wider text-xs",children:"Enquete"}),e.jsx(g,{to:"/enquetes",className:"ml-auto text-xs font-semibold text-[#ff3b3f] hover:underline",children:"Todas as enquetes"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-5 md:gap-8",children:[e.jsx("p",{className:"md:col-span-2 text-lg md:text-xl font-bold text-slate-900 leading-snug",children:t.question}),e.jsx("div",{className:"md:col-span-3",children:p?w:j})]})]}),e.jsx(M,{slotId:"amanha-home-band",format:"620x300",label:"Publicidade",className:"shrink-0 lg:w-[42%] lg:max-w-[560px] lg:self-center"})]}):e.jsx("div",{className:`flex justify-center ${a}`,children:e.jsx(M,{slotId:"amanha-home-band",format:"620x300",label:"Publicidade",className:"w-full max-w-[620px]"})}):null:t?e.jsxs("div",{className:`bg-white rounded-2xl border border-slate-200 p-5 ${a}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 pb-3 border-b border-slate-100",children:[e.jsx(B,{className:"w-4 h-4 text-[#ff3b3f]"}),e.jsx("h3",{className:"font-bold text-slate-900 uppercase tracking-wider text-xs",children:"Enquete"})]}),e.jsx("p",{className:"text-sm font-semibold text-slate-800 leading-snug mb-4",children:t.question}),p?w:j]}):null},Ee=({className:s=""})=>{var v;const a=H(),r=(v=a==null?void 0:a.currentPortal)==null?void 0:v.id,[n,t]=c.useState([]),l=c.useRef(null),[m,x]=c.useState(!1),[i,u]=c.useState(!1);c.useEffect(()=>{if(!r)return;let d=!1;return be(r).then(h=>{d||t(h)}).catch(()=>{d||t([])}),()=>{d=!0}},[r]);const p=c.useCallback(()=>{const d=l.current;if(!d)return;const{scrollLeft:h,scrollWidth:A,clientWidth:y}=d;x(h>4),u(h+y<A-4)},[]);c.useEffect(()=>{p();const d=l.current;if(d)return d.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),()=>{d.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[p,n.length]);const b=c.useCallback(d=>{const h=l.current;h&&h.scrollBy({left:d*h.clientWidth*.85,behavior:"smooth"})},[]);return n.length===0?null:e.jsxs("section",{className:`container mx-auto px-4 py-12 ${s}`,children:[e.jsx(S,{title:"Colunistas"}),e.jsxs("div",{className:"relative group/rail",children:[e.jsx("button",{type:"button",onClick:()=>b(-1),"aria-label":"Colunistas anteriores",className:`hidden md:flex absolute -left-4 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full bg-white shadow-lg border border-slate-200 items-center justify-center text-slate-700 hover:text-[#ff3b3f] hover:border-[#ff3b3f] transition-all ${m?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx(ie,{className:"w-5 h-5"})}),e.jsx("button",{type:"button",onClick:()=>b(1),"aria-label":"Próximos colunistas",className:`hidden md:flex absolute -right-4 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full bg-white shadow-lg border border-slate-200 items-center justify-center text-slate-700 hover:text-[#ff3b3f] hover:border-[#ff3b3f] transition-all ${i?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx(oe,{className:"w-5 h-5"})}),e.jsxs("div",{ref:l,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory scroll-smooth pb-1 [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[n.map(d=>e.jsxs(g,{to:`/colunistas/${d.slug}`,className:"snap-start shrink-0 w-[42%] sm:w-[30%] md:w-[22%] lg:w-[15.5%] xl:w-[13%] bg-white rounded-2xl border border-slate-200 hover:border-[#ff3b3f] hover:shadow-md transition-all p-5 flex flex-col items-center text-center group",children:[e.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full overflow-hidden bg-slate-100 mb-3 ring-2 ring-transparent group-hover:ring-[#ff3b3f]/30 transition-all",children:d.avatar_url?e.jsx("img",{src:d.avatar_url,alt:d.name,loading:"lazy",className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(ce,{className:"w-6 h-6 text-slate-300"})})}),e.jsx("span",{className:"text-sm font-bold text-slate-800 leading-tight line-clamp-2 group-hover:text-[#ff3b3f] transition-colors",children:d.name}),d.specialty&&e.jsx("span",{className:"text-[11px] text-slate-400 mt-1 line-clamp-2",children:d.specialty})]},d.id)),e.jsxs(g,{to:"/colunistas",className:"snap-start shrink-0 w-[42%] sm:w-[30%] md:w-[22%] lg:w-[15.5%] xl:w-[13%] bg-slate-900 rounded-2xl p-5 flex flex-col items-center justify-center text-center group",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#ff3b3f] flex items-center justify-center mb-3 group-hover:scale-110 transition-transform",children:e.jsx(P,{className:"w-5 h-5 text-white"})}),e.jsx("span",{className:"text-sm font-bold text-white leading-tight",children:"Ver todos os colunistas"})]})]})]})]})},U=({size:s="sm"})=>e.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/25 group-hover:bg-black/40 transition-colors","aria-hidden":"true",children:e.jsx("span",{className:`${s==="lg"?"w-16 h-16":"w-10 h-10"} rounded-full bg-[#ff3b3f]/90 group-hover:bg-[#ff3b3f] flex items-center justify-center group-hover:scale-110 transition-all shadow-lg`,children:e.jsx(de,{className:`${s==="lg"?"w-7 h-7":"w-4 h-4"}
1 text-white translate-x-0.5`,fill:"currentColor"})})}),$e=({className:s=""})=>{var x;const a=H(),r=(x=a==null?void 0:a.currentPortal)==null?void 0:x.id,[n,t]=c.useState([]);if(c.useEffect(()=>{if(!r)return;let i=!1;return ve({portalId:r,limit:5}).then(({data:u})=>{i||t(u)}).catch(()=>{i||t([])}),()=>{i=!0}},[r]),n.length===0)return null;const[l,...m]=n;return e.jsx("section",{className:`bg-slate-900 py-12 ${s}`,children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-white border-l-4 border-[#ff3b3f] pl-3",children:"AMANHà TV"}),e.jsxs(g,{to:"/amanha-tv",className:"text-sm text-[#ff3b3f] hover:text-white font-medium inline-flex items-center gap-1 transition-colors",children:["Ver todos os vÃdeos ",e.jsx(P,{className:"w-4 h-4"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs(g,{to:`/amanha-tv/${l.slug}`,className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden aspect-video bg-slate-800",children:[l.thumbnail_url&&e.jsx("img",{src:l.thumbnail_url,alt:l.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx(U,{size:"lg"})]}),e.jsx("h3",{title:l.title,className:"text-white font-bold text-base sm:text-lg md:text-xl leading-snug mt-4 group-hover:text-[#ff3b3f] transition-colors line-clamp-3",children:l.title}),l.description&&e.jsx("p",{className:"text-slate-400 text-sm mt-1.5 line-clamp-2",children:l.description})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 content-start",children:m.slice(0,4).map(i=>e.jsxs(g,{to:`/amanha-tv/${i.slug}`,className:"group block",children:[e.jsxs("div",{className:"relative rounded-xl overflow-hidden aspect-video bg-slate-800",children:[i.thumbnail_url&&e.jsx("img",{src:i.thumbnail_url,alt:i.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx(U,{})]}),e.jsx("h4",{title:i.title,className:"text-white text-[13px] sm:text-sm font-semibold leading-snug mt-2 line-clamp-3 group-hover:text-[#ff3b3f] transition-colors",children:i.title})]},i.id))})]})]})})},D=12,Me=8,Re=J,Pe=["noticias-corporativas-dino","horoscopo","clima-tempo"],Le=(s=[])=>{const{currentPortal:a}=te(),{getPath:r}=Ne(),n=a==null?void 0:a.id,[t,l]=c.useState([]),[m,x]=c.useState(!1),[i,u]=c.useState(!0),[p,b]=c.useState(!1),v=c.useRef(0),d=c.useRef(!1),h=c.useRef(new Set),A=c.useRef(new Set(s)),y=s.join(",");c.useEffect(()=>{A.current=new Set(s)},[y]);const o=c.useCallback(async j=>{const E=j+D-1,{data:f,error:N}=await le.from("news_articles").select(Re).eq("portal_id",n).eq("status","published").eq("exclude_from_home",!1).not("featured_image","is",null).not("primary_category_slug","in",`(${Pe.join(",")})`).lte("published_at",new Date().toISOString()).order("published_at",{ascending:!1,nullsFirst:!1}).range(j,E);if(N)throw N;return f||[]},[n]),w=c.useCallback(async()=>{if(!(!n||d.current||!i)){d.current=!0,x(!0),b(!1);try{const j=[];let E=0;for(;j.length===0&&E<Me;){const f=await o(v.current);E+=1,v.current+=f.length;for(const N of f)!N.featured_image||String(N.featured_image).trim()===""||A.current.has(N.id)||h.current.has(N.id)||(h.current.add(N.id),j.push(Q(N,r,n)));if(f.length<D){u(!1);break}}j.length>0&&l(f=>[...f,...j])}catch(j){F.error("[useHomeInfiniteFeed] Error:",(j==null?void 0:j.message)||j),b(!0)}finally{d.current=!1,x(!1)}}},[n,i,o,r]);return c.useEffect(()=>{v.current=0,h.current=new Set,l([]),u(!0),b(!1)},[n]),c.useEffect(()=>{n&&v.current===0&&t.length===0&&w()},[n,t.length]),{items:t,loading:m,hasMore:i,error:p,loadMore:w}},Ie=s=>s<=1?"grid-cols-1":s===2?"grid-cols-1 md:grid-cols-2":s===3?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",He=({excludeIds:s=[],className:a=""})=>{const{items:r,loading:n,hasMore:t,error:l,loadMore:m}=Le(s),[x,i]=c.useState(!1),u=c.useRef(null),p=()=>{i(!0),m()};return c.useEffect(()=>{const b=u.current;if(!x||!b||!t||n||l)return;const v=new IntersectionObserver(d=>{var h;(h=d[0])!=null&&h.isIntersecting&&m()},{rootMargin:"600px 0px"});return v.observe(b),()=>v.disconnect()},[x,t,n,l,m,r.length]),r.length===0&&!n&&!l?null:e.jsxs("section",{className:`container mx-auto px-4 py-12 ${a}`,children:[e.jsx(S,{title:"Ver todas as notÃcias"}),e.jsx("div",{className:`grid gap-x-6 gap-y-8 ${Ie(r.length)}`,children:r.map(b=>e.jsx(C,{article:b,variant:"medium",showExcerpt:!0},b.id))}),x&&e.jsx("div",{ref:u,className:"h-1","aria-hidden":"true"}),e.jsx("div",{className:"flex justify-center mt-10",children:n?e.jsxs("span",{className:"inline-flex items-center gap-2 text-slate-500 text-sm font-medium",children:[e.jsx(me,{className:"w-4 h-4 animate-spin"})," Carregandoâ¦"]}):l?e.jsxs("button",{type:"button",onClick:m,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white border border-slate-200 text-slate-700 font-bold text-sm hover:border-[#ff3b3f] hover:text-[#ff3b3f] transition-colors",children:[e.jsx(W,{className:"w-4 h-4"})," Não foi possÃvel carregar. Tentar novamente"]}):t&&!x?e.jsxs("button",{type:"button",onClick:p,className:"inline-flex items-center gap-2 px-8 py-3 rounded-full bg-[#ff3b3f] hover:bg-[#e6353a] text-white font-bold text-sm transition-colors shadow-sm",children:[e.jsx(xe,{className:"w-4 h-4"})," Ver mais notÃcias"]}):!t&&r.length>0&&e.jsx("span",{className:"text-slate-400 text-sm",children:"Você chegou ao fim das notÃcias."})})]})},Oe=[{label:"Empresa",slug:"empresa"},{label:"Negócios do Sul",slug:"negocios-do-sul"},{label:"Agronegócio",slug:"agronegocio"}],Te=[{label:"Economia",slug:"economia"},{label:"Brasil",slug:"brasil"},{label:"Infraestrutura",slug:"infraestrutura"}],Be=[{label:"AMANHà Sustentável",slug:"sustentabilidade"}
1,{label:"Mundo",slug:"mundo"}],Ge=[{label:"Bolso & Bolsa",slug:"bolso-bolsa"},{label:"Mercado de Capitais",slug:"mercado-de-capitais"},{label:"Tributos",slug:"tributos"}],Ve=[{label:"Branding",slug:"branding"},{label:"Comportamento",slug:"comportamento"},{label:"Marketing",slug:"marketing"}],qe=[{label:"Carreira",slug:"carreira"},{label:"Recursos Humanos",slug:"recursos-humanos"},{label:"Chegadas & Partidas",slug:"chegadas-partidas"}],Ue=[{label:"Gestão",slug:"gestao"},{label:"Indústria",slug:"industria"},{label:"Tecnologia",slug:"tecnologia"}],_=(s,a)=>s<=1?"grid-cols-1":a==="two"||s===2?"grid-cols-1 md:grid-cols-2":a==="three"||s===3?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",De=()=>{c.useEffect(()=>{document.title="Grupo AMANHà | Economia e negócios do Sul"},[]);const{highlights:s,sections:a,loading:r,error:n,refetch:t}=z(),l=c.useMemo(()=>{const o=[...s];for(const j of Object.values(a))o.push(...j);const w=new Set;return o.filter(j=>w.has(j.id)?!1:(w.add(j.id),!0))},[s,a]),m=c.useMemo(()=>(s.length>=5?s:l).slice(0,5),[s,l]),x=c.useMemo(()=>{const o=new Set(m.map(w=>w.id));return l.filter(w=>!o.has(w.id)).sort((w,j)=>new Date(j.publishedAt||0).getTime()-new Date(w.publishedAt||0).getTime()).slice(0,9)},[l,m]),i=x.slice(0,4),u=x.slice(4),p=a.empresa||[],b=a.economia||[],v=a.sustentabilidade||[],d=a["bolso-bolsa"]||[],h=a.branding||[],A=a.carreira||[],y=a.gestao||[];return r&&l.length===0?e.jsx("div",{className:"bg-slate-50 min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-12 h-12 border-4 border-[#ff3b3f] border-t-transparent rounded-full animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-slate-500",children:"Carregando notÃcias..."})]})}):n&&l.length===0?e.jsx("div",{className:"bg-slate-50 min-h-screen flex items-center justify-center px-4",children:e.jsxs("div",{className:"text-center max-w-md",children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-3",children:"Não foi possÃvel carregar as notÃcias"}),e.jsx("p",{className:"text-slate-500 text-sm mb-6",children:"Verifique sua conexão e tente novamente. Se o problema persistir, volte em alguns minutos."}),e.jsxs("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 px-6 py-3 bg-[#ff3b3f] hover:bg-[#e6353a] text-white font-bold rounded-lg transition-colors",children:[e.jsx(W,{className:"w-4 h-4"})," Tentar novamente"]})]})}):l.length===0?e.jsxs("div",{className:"bg-slate-50 min-h-screen pb-20",children:[e.jsx("section",{className:"container mx-auto px-4 py-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-[#ff3b3f]/10 text-[#ff3b3f] text-xs font-bold uppercase tracking-wider rounded-full mb-4",children:"Em construção"}),e.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-6 leading-tight",children:["Bem-vindo ao novo portal do ",e.jsx("span",{className:"text-[#ff3b3f]",children:"Grupo AMANHÃ"})]}),e.jsx("p",{className:"text-lg text-slate-600 max-w-2xl mx-auto mb-8",children:"Estamos finalizando a migração do conteúdo editorial. Em breve, toda a cobertura de economia e negócios do Sul do Brasil estará aqui."}),e.jsxs("p",{className:"text-sm text-slate-500",children:["Enquanto isso, acesse"," ",e.jsx("a",{href:"https://www.amanha.com.br",className:"text-[#ff3b3f] font-medium hover:underline",children:"amanha.com.br"})," ","para conteúdo atualizado."]})]})}),e.jsx("section",{className:"container mx-auto px-4 py-8",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-4xl mx-auto",children:[{title:"500 MAIORES DO SUL",desc:"O mais importante ranking regional de empresas do paÃs.",href:"https://www.amanha.com.br/500maiores/"},{title:"Top of Mind RS",desc:"As marcas mais lembradas pelos gaúchos.",href:"https://www.topofmindamanha.com.br/"},{title:"Campeãs da Inovação",desc:"Primeira pesquisa de inovação empresarial do paÃs.",href:"https://amanha.com.br/lp/campeas-da-inovacao/"}].map(o=>e.jsxs("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:"block p-6 bg-white rounded-2xl border border-slate-200 hover:border-[#ff3b3f] hover:shadow-lg transition-all group",children:[e.jsx("h3",{className:"font-bold text-slate-900 mb-2 group-hover:text-[#ff3b3f] transition-colors",children:o.title}),e.jsx("p",{className:"text-sm text-slate-500",children:o.desc})]},o.title))})})]}):e.jsxs("div",{className:"bg-slate-50 min-h-screen pb-20",children:[e.jsx("h1",{className:"sr-only",children:"Grupo AMANHÃ: economia e negócios do Sul do Brasil"}),e.jsx("section",{className:"container mx-auto px-4 py-6",children:e.jsx(M,{slotId:"home-top-premium",format:"1220x230"})}),m.length>0&&e.jsxs("section",{className:"container mx-auto px-4 pb-8",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_300px] gap-6",children:[e.jsx(ye,{articles:m}),e.jsx(ke,{})]}),i.length>0&&e.jsxs("div",{className:"mt-8 pt-6 border-t border-slate-200",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-[#ff3b3f] animate-pulse","aria-hidden":"true"}),e.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-slate-900",children:"Ãltimas notÃcias"}),e.jsx(g,{to:"/noticias",className:"ml-auto inline-flex min-h-[44px] items-center px-2 -mx-2 text-[13px] font-semibold text-[#c81f23] hover:underline rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff3b3f] focus-visible:ring-offset-2",children:"Ver todas"})]}),e.jsx("div",{className:`grid gap-x-6 gap-y-5 ${i.length>=4?"grid-cols-1 sm:grid-cols-2 xl:grid-cols-4":_(i.length,"three")}`,children:i.map(o=>e.jsx(C,{article:o,variant:"list"},o.id))})]})]}),e.jsx("section",{className:"container mx-auto px-4 py-4",children:e.jsx(M,{slotId:"amanha-home-mid",format:"970x90"})}),p.length>0&&e.jsx("section",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx(S,{title:"Negócios do Sul",editorias:Oe}),e.jsx("div",{className:`grid gap-6 ${_(p.slice(0,4).length,"two")}`,children:p.slice(0,4).map(o=>e.jsx(C,{article:o,variant:"list",showCategory:!1},o.id))})]}),e.jsx(Fe,{})]})}),e.jsx(Ee,{}),b.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12",children:[e.jsx(S,{title:"Brasil",editorias:Te}),e.jsx("div",{className:`grid gap-4 ${_(b.slice(0,4).length,"four")}`,children:b.slice(0,4).map(o=>e.jsx(C,{article:o,variant:"medium",showCategory:!1},o.id))})]}),e.jsx(je,{variant:"logos"}),v.length>0&&e.jsx("section",{className:"container mx-auto px-4 py-12",children:e.jsx("div",{className:"bg-slate-100 rounded-3xl p-5 sm:p-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 lg:gap-8",children:[e.jsxs("div",{className:"lg:col-span-3",children:[e.jsx(S,{title:"Mundo",editorias:Be}),e.jsx("div",{className:`grid gap-6 ${_(v.slice(0,3).length,"three")}`,children:v.slice(0,3).map(o=>e.jsx(C,{article:o,variant:"medium",showCategory:!1},o.id))})]}),e.jsxs(g,{to:"/loja",className:"lg:col-span-1 bg-white rounded-2xl p-6 shadow-sm border border-slate-200 flex flex-col items-center text-center justify-center group hover:shadow-md transition-shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff3b3f] focus-visible:ring-offset-2",children:[e.jsx("div",{className:"w-16 h-16 bg-[#ff3b3f]/10 text-[#ff3b3f] rounded-full flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:e.jsx(fe,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-xl font-bold text-slate-800 mb-2",children:"Loja"}),e.jsx("p",{className:"text-slate-500 text-sm mb-4",children:"Adquira edições impressas, livros e anuários do Grupo AMANHÃ."}),e.jsx("span",{className:"px-4 py-2.5 bg-[#ff3b3f] text-white text-sm font-bold rounded-full group-hover:bg-[#ff3b3f]/90 transition-colors",children:"Acesse a loja"})]})]})})}),e.jsx("section",{className:"container mx-auto px-4 py-6",children:e.jsx(_e,{variant:"band"})}),e.jsx($e,{}),d.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12",children:[e.jsx(S,{title:"Seu dinheiro",editorias:Ge}),d.length>=5?e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 h-auto lg:h-[420px]",children:[e.jsx(C,{article:d[0],variant:"overlay",emphasis:"feature",showCategory:!1,className:"lg:col-span-2 lg:row-span-2 min-h-[380px]"}),d.slice(1,5).map(o=>e.jsx(C,{article:o,variant:"overlay",showCategory:!1,className:"min-h-[190p
1x]"},o.id))]}):e.jsx("div",{className:`grid gap-4 ${_(d.slice(0,4).length,"four")}`,children:d.slice(0,4).map(o=>e.jsx(C,{article:o,variant:"overlay",showCategory:!1,className:"min-h-[220px]"},o.id))})]}),h.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12",children:[e.jsx(S,{title:"Marcas & Consumo",editorias:Ve}),e.jsx("div",{className:`grid gap-4 ${_(h.slice(0,4).length,"four")}`,children:h.slice(0,4).map(o=>e.jsx(C,{article:o,variant:"medium",showCategory:!1},o.id))})]}),e.jsx("section",{className:"container mx-auto px-4 py-4",children:e.jsx(M,{slotId:"amanha-home-footer",format:"970x90"})}),e.jsx("section",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"bg-slate-900 rounded-3xl p-8 md:p-12 relative overflow-hidden flex flex-col md:flex-row items-center justify-between gap-8",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",children:[e.jsx("div",{className:"absolute -top-16 -right-10 w-80 h-80 bg-[#ff3b3f]/20 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-1/4 w-64 h-64 bg-[#ff3b3f]/10 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10 max-w-2xl",children:[e.jsx("span",{className:"text-[#ff3b3f] font-bold uppercase tracking-wider text-xs mb-2 block",children:"Parceria estratégica"}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Anuncie na revista"}),e.jsx("p",{className:"text-slate-300 text-lg leading-relaxed mb-6",children:"Ao longo de 40 anos, AMANHà é leitura obrigatória para os lÃderes empresariais do Brasil. Não perca a oportunidade de também relacionar a sua marca com o público altamente qualificado do Sul."}),e.jsx("div",{className:"flex flex-wrap gap-4",children:e.jsxs(g,{to:"/anuncie",className:"px-6 py-3 bg-[#ff3b3f] hover:bg-[#ff3b3f]/90 text-white font-bold rounded-lg transition-colors inline-flex items-center gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",children:["Fale com um consultor ",e.jsx(P,{className:"w-4 h-4"})]})})]}),e.jsx("div",{className:"relative z-10 shrink-0",children:e.jsx("div",{className:"w-32 h-32 md:w-40 md:h-40 bg-white rounded-full flex items-center justify-center shadow-2xl",children:e.jsxs("span",{className:"text-center font-bold text-slate-900 leading-tight",children:[e.jsx("span",{className:"text-3xl md:text-4xl block text-[#ff3b3f]",children:"40"}),"Anos de",e.jsx("br",{}),"sucesso"]})})})]})}),A.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12",children:[e.jsx(S,{title:"Pessoas",editorias:qe}),e.jsx("div",{className:`grid gap-4 ${_(A.slice(0,4).length,"four")}`,children:A.slice(0,4).map(o=>e.jsx(C,{article:o,variant:"overlay",showCategory:!1,className:"min-h-[220px]"},o.id))})]}),y.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12",children:[e.jsx(S,{title:"Gestão integrada",editorias:Ue}),e.jsxs("div",{className:`grid gap-4 ${_((u.length>0?1:0)+y.slice(0,3).length,"four")}`,children:[e.jsx(Se,{articles:u}),y.slice(0,3).map(o=>e.jsx(C,{article:o,variant:"overlay",showCategory:!1,className:"min-h-[220px]"},o.id))]})]}),e.jsx(He,{excludeIds:l.map(o=>o.id)})]})},Fe=()=>e.jsxs("div",{className:"lg:col-span-1 bg-slate-900 rounded-2xl p-6 text-white flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-[#ff3b3f]/20 text-[#ff3b3f] text-xs font-bold uppercase tracking-wider rounded-full mb-4",children:"Newsletter"}),e.jsx("h3",{className:"text-xl sm:text-2xl font-bold mb-3 leading-snug",children:"Os principais negócios do Sul na sua caixa de entrada"}),e.jsx("p",{className:"text-slate-300 text-sm mb-6 leading-relaxed",children:"Receba as notÃcias mais relevantes sobre economia e negócios do Sul direto no e-mail."})]}),e.jsx(g,{to:"/newsletter",className:"block w-full text-center px-4 py-3 bg-[#ff3b3f] hover:bg-[#ff3b3f]/90 text-white font-bold rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",children:"Receba gratuitamente"})]}),K=X(De),ns=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,GrupoAmanhaHomePage:K,GrupoAmanhaLayout:Y},Symbol.toStringTag,{value:"Module"}));
1export{ns as G,is as i};
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.