1import{j as e,R as t,L as c,c as o}from"./components-CmTwZ3Mu.js";import{C as h}from"./index-T6qmxKnY.js";import{A as r}from"./index-rHWxKeni.js";const p=({title:i,category:s,slug:l,cover:d})=>e.jsx("a",{href:`/post/${l}`,className:"w-full",children:e.jsxs("article",{className:"flex flex-col h-full",children:[e.jsx("div",{className:"w-full h-[104px] bg-yellow bg-cover bg-center bg-no-repeat",style:d!=null&&d.url?{backgroundImage:`url(${d.url}?w=200&q=75&fm=webp)`}:void 0}),e.jsxs("div",{className:"w-full px-5 py-1 bg-gray2 flex-1 flex-col gap-2",children:[e.jsx("span",{className:"font-integral text-[10px] text-gray3",children:s==null?void 0:s.name}),e.jsx("h3",{className:"font-integral text-black2 font-bold line-clamp-4 overflow-hidden",children:i})]})]})}),m=({articles:i,category:s})=>{const[l,d]=t.useState(null);t.useEffect(()=>{if(typeof window>"u")return;const n=window.matchMedia("(max-width: 1023px)"),a=()=>d(n.matches);return a(),n.addEventListener?n.addEventListener("change",a):n.addListener(a),()=>{n.removeEventListener?n.removeEventListener("change",a):n.removeListener(a)}},[]);const x=t.useMemo(()=>l?"div-gpt-ad-6929391-3":"div-gpt-ad-5094078-3",[l]);return t.useEffect(()=>{l!==null&&(typeof window>"u"||!window.googletag||(window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){try{window.googletag.display(x)}catch{}})))},[l,x]),e.jsxs("div",{className:"w-full flex flex-col gap-[22px]",children:[e.jsxs("div",{className:"w-full flex flex-row justify-between items-center gap-4",children:[s!=null&&s.slug?e.jsx(c,{to:`/categories/${encodeURI(s.slug)}`,className:"font-integral text-black text-xl hover:underline",children:e.jsx("h3",{children:s==null?void 0:s.name})}):e.jsx("h3",{className:"font-integral text-black text-xl",children:s==null?void 0:s.name}),(s==null?void 0:s.partnertitle)&&e.jsxs("a",{href:s==null?void 0:s.partnerlink,target:"_blank",className:"font-integral text-right",rel:"noreferrer",children:[e.jsx("span",{className:"mr-3 text-xs text-gray3",children:"OFERECIMENTO"}),e.jsx("span",{className:"text-black text-sm",children:s==null?void 0:s.partnertitle})]})]}),e.jsxs("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-5",children:[e.jsx("div",{className:"hidden lg:block",children:e.jsx(h,{...i[0],category:s})}),e.jsx("div",{className:"grid grid-row-2 grid-cols-2 gap-5",children:i.slice(1,5).map((n,a)=>e.jsx(p,{...n,category:s},n.id))})]})]})},w=()=>{const i=o();return!i||!i.length?e.jsx("div",{id:"categories"}):e.jsx("div",{className:"w-full mt-[80px]",children:e.jsx("div",{className:"container mx-auto",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-5",children:[e.jsxs("div",{className:"lg:col-span-3 flex flex-col gap-[80px]",children:[i.slice(0,1).map(({articles:s,category:l})=>e.jsx(m,{category:l,articles:s},l.id)),e.jsx("div",{className:"lg:hidden block mb-1",children:e.jsx("div",{className:" mx-auto",children:e.jsx("div",{className:"mx-auto w-[300px] h-[250px]",children:e.jsx(r,{adUnitPath:"/3363790/adnews_mobile_homepage_meio_300x250",slotId:"div-gpt-ad-6929391-4",sizes:[[300,250]]})})})}),i.length>1&&i.slice(1,i.length).map(({articles:s,category:l})=>e.jsx(m,{category:l,articles:s},l.id)),e.jsxs("div",{children:[e.jsx("div",{"data-type":"_mgwidget","data-widget-id":"1806516"}),e.jsx("script",{async:!0,dangerouslySetInnerHTML:{__html:'(function(w,q){w[q]=w[q]||[];w[q].push(["_mgc.load"])})(window,"_mgq");'}})]})]}),e.jsx("div",{className:"col-span-1 lg:col-span-2 relative lg:block hidden",children:e.jsx(r,{adUnitPath:"/3363790/adnews_desktop_homepage_sidebar_300x600-sticky",slotId:"div-gpt-ad-5094078-6",sizes:[[300,600]],minHeight:600})})]})})})};export{w as default};
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.