PageSourceSearch

https://cbnamazonia.com/assets/NewsCoverPage-s7xggh9e.js

js cbnamazonia.com collected 2026-10-03 20:30:01 UTC 15,471 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-editor-BX0sR0z-.js";import{r as h,R as Z}from"./vendor-react-BPk9u-w4.js";import{N as g}from"./NetworkLink-N_B1MT9J.js";import{M as J}from"./index-CrJssCpd.js";import{f as K}from"./formatNewsDate-B1-V2Yd7.js";import{d as Q,X as V,Y as ee,Z as ae,q as j}from"./index-s_BTi5XF.js";import{u as se}from"./useNewsArticles-B-alRWGB.js";import{u as te}from"./useNetworkPath-B7HliJPy.js";import{h as ie,A as f}from"./AdBanner-Bs8HQEFQ.js";import{I as re}from"./InlineListAd-0dQ6mK6B.js";import{h as v,c as oe,r as le,a as ne,b as me}from"./categoryBanners-Df2104PV.js";import{A as de}from"./ArticleListSkeleton-DvEJyro1.js";import{S as ce}from"./SidebarSkeleton-CJDR8pXj.js";import{d as pe,e as ue,S as xe}from"./SEO-BeDCtysj.js";import{f as M}from"./portalFeeds-BTs2N6d9.js";import{u as he}from"./usePortalMeta-2TvboMJ-.js";import{a as be}from"./getOptimizedImageUrl-DbohTHrX.js";import{S as ge}from"./SaudeCampaignCards-C3ZxQNPp.js";import{G as fe,a as ve,b as Ne}from"./menu-BPv1nQrT.js";import{u as je}from"./useAmanhaColunas-Xm3khBbH.js";import{A as R}from"./AmanhaOpiniaoSelo-BFQcmwKF.js";import{c as O}from"./newsCategories-BMMJEWHv.js";import{u as we}from"./usePortalNavigation-D5CbDyF0.js";import{bv as w,s as Ae,A as T,a as _e,ab as Se}from"./vendor-icons-XRoHuOlC.js";import"./vendor-charts-Cf-ruFca.js";import"./vendor-ui-utils-Bbg69IUi.js";import"./vendor-graph-Df3mHyA7.js";import"./Header-CzG3dNm_.js";import"./safeRandomUUID-nsc4PmeJ.js";import"./useTopBarData-B4fDbXvm.js";import"./portalLocalScope-BUekVsjP.js";import"./useTimeTravelDate-C_XX32AK.js";import"./timeTravel-D1YelN3_.js";import"./useRoute-7b5IP_Nj.js";import"./manifests-CryGsps4.js";import"./weatherService-C1hcP7mc.js";import"./apiTracker-By9nwlso.js";import"./vendor-supabase-UBwEW4nm.js";import"./vendor-sonner-DPZ7yCFm.js";import"./vendor-helmet-C74EPpLp.js";import"./financeService-ThfsE-Rn.js";import"./businessService-BD9-mpdh.js";import"./cnpj-C_aMig2Z.js";import"./companyScope-DKV3kh4r.js";import"./EconomyService-CkHdG2I9.js";import"./SponsorshipSlot-2PnYM62-.js";import"./useAdvertiserMode-alB5iA3f.js";import"./rpcRows-DuFOiWnI.js";import"./ContactModal-2154VulD.js";import"./useLeads-DVM3rTeR.js";import"./useAdAuditLogs-BJvMVNgf.js";import"./LGPDNotice-BOnAxzg4.js";import"./index-T0bE9RkD.js";import"./useAdMetrics-CgUykdP2.js";import"./ArticleHeaderContext-B6ptluIU.js";import"./readerPush-Co8_y3SJ.js";import"./pushNotifications-Ci1VlOqm.js";import"./UserMenu-D0befgdV.js";import"./useViewAsClientMode-SSGRL7WM.js";import"./IconUser-Dpg6CyjH.js";import"./createReactComponent-LJ3Rzzl2.js";import"./IconShieldExclamation-DXDZ_TCn.js";import"./IconChevronDown-BcsKoyPw.js";import"./IconShield-CzEmsLwa.js";import"./IconLayoutDashboard-DFgVykjp.js";import"./IconSettings-NOvzA5lJ.js";import"./IconEyeOff-DvKSXi4x.js";import"./IconEye-CZTid05l.js";import"./IconBuilding-Dp4NXpvd.js";import"./IconBell-CKPOMiV8.js";import"./IconBookmark-mtkJPko5.js";import"./IconLogout-Cf7i78gj.js";import"./PortalLogo-BQzzuwyr.js";import"./PullToRefresh-DCfatrUm.js";import"./vendor-dates-2pSS6EeH.js";import"./pt-BR-BrNq-ueq.js";import"./toCdnUrl-DV2rJaVv.js";import"./SlotSelectorModal-5ZGKRxQr.js";import"./inventory-BYFBZl_o.js";import"./SocialLogos-BgxGK6Ep.js";import"./portalEntityIds-B3YcqYmS.js";import"./usePortalSeoConfig-YYkveUc0.js";import"./themedSpecials.config-B3_CCGZ5.js";import"./themedSpecialsIcons-G-Os8BqU.js";import"./themedSpecialsGradients-CI7gPiiM.js";import"./especiaisIndex-CHoXLh0F.js";const Ce=new Set(["de","da","do","das","dos","e","a","o","as","os","em","no","na","nos","nas","ao","aos","à","às","para","com","por","the","of","for"]);function A(s){return s.split("-").filter(Boolean).map((m,r)=>{const t=m.toLowerCase();return r>0&&Ce.has(t)?t:t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")}const G=["22% 24%","78% 26%","50% 78%","26% 72%"],H={politica:{title:"Política",description:"Notícias de política em Barueri, Alphaville e região. Cobertura do poder público municipal, câmara de vereadores, prefeitura e eleições."},economia:{title:"Economia",description:"Notícias de economia e negócios em Barueri e região. Mercado imobiliário, empresas, investimentos e desenvolvimento econômico."},seguranca:{title:"Segurança",description:"Notícias de segurança pública em Barueri e região. Operações policiais, ocorrências, trânsito e prevenção."},saude:{title:"Saúde",description:"Notícias de saúde em Barueri. Hospitais, UBS, campanhas de vacinação, saúde pública e bem-estar."},cultura:{title:"Cultura",description:"Notícias de cultura em Barueri e Alphaville. Eventos culturais, shows, teatro, exposições e programação cultural."}
1,"meio-ambiente":{title:"Meio Ambiente",description:"Notícias sobre meio ambiente em Barueri. Sustentabilidade, parques, rios, reciclagem e preservação ambiental."},obras:{title:"Obras",description:"Notícias sobre obras e infraestrutura em Barueri. Construções, reformas, recapeamento e melhorias urbanas."},gastronomia:{title:"Gastronomia",description:"Notícias de gastronomia em Barueri e Alphaville. Restaurantes, bares, receitas e eventos gastronômicos."},esportes:{title:"Esportes",description:"Notícias de esportes em Barueri. Competições, atletas locais, futebol, basquete e modalidades olímpicas."},educacao:{title:"Educação",description:"Notícias de educação em Barueri. Escolas, universidades, vestibulares, IDEB e políticas educacionais."},especiais:{title:"Especiais",description:"Reportagens especiais. Séries investigativas, grandes coberturas e conteúdos exclusivos."},"bem-estar":{title:"Bem-Estar",description:"Notícias sobre bem-estar e qualidade de vida em Barueri. Fitness, saúde mental, nutrição e estilo de vida."},imoveis:{title:"Imóveis",description:"Notícias do mercado imobiliário em Barueri e Alphaville. Lançamentos, preços, tendências e investimentos."}},rs=({category:s,praca:m})=>{var L,I;const{articles:r,loading:t,loadingMore:_,totalCount:S,hasMore:U,loadMore:z}=se({categorySlug:s,pracaSlug:m}),{getPath:p}=te(),{portalName:b,portalUrl:o,portalId:i}=he(),{currentPortal:D}=Q(),{topNav:F}=we(),C=V(ee(i)),q=ae(D),Y=s==="saude"&&i==="jb",l=i==="grupo-amanha",x=i==="cbn-amazonia",k=je(l?r.map(a=>a.id):[]),P=`${l?"w-28 h-20":"w-36 h-24"} md:w-48 md:h-32 rounded-xl overflow-hidden flex-shrink-0 ring-1 ring-slate-900/5`,y=a=>fe[a]||ve[a]||A(a),E=s?l?y(s):(x?O[s]:void 0)||((L=H[s])==null?void 0:L.title)||((I=F.find(a=>a.href===`/${s}`))==null?void 0:I.label)||A(s):"Notícias",B=m?(x?O[m]:void 0)||A(m):null,d=B?`${E} · ${B}`:E,u=a=>a?l?a===s||Ne.has(a)?null:y(a):a.replace(/-/g," "):null,n=h.useMemo(()=>{const a=s&&!l&&!x?H[s]:null;return{title:(a==null?void 0:a.title)||d,description:(a==null?void 0:a.description)||(l?`${d} no Grupo AMANHÃ: as principais notícias sobre economia e negócios do Paraná, Santa Catarina e Rio Grande do Sul.`:x?`${d} na CBN Amazônia: últimas notícias e reportagens da Amazônia Legal.`:`Últimas ${d.toLowerCase()} no ${b}.`),canonicalPath:m?`/${s}/${m}`:`/${s||"noticias"}`}},[s,m,d,l,x,b]),X=h.useMemo(()=>(s?M(o,"category",s):M(o,"all"))??void 0,[s,o]),$=h.useMemo(()=>pe([{name:"Início",url:`${o}/`},{name:n.title,url:`${o}${n.canonicalPath}`}]),[n,o]),N=h.useMemo(()=>!r||r.length===0?null:ue({name:n.title,description:n.description,url:`${o}${n.canonicalPath}`,numberOfItems:S||r.length,portal:{siteName:b,siteUrl:o},items:r.slice(0,20).map(a=>({title:a.title,url:`${o}${p(j(a.slug,a.primary_category_slug,i))}`,image:a.featured_image||null,publishedAt:a.published_at||void 0}))}),[r,n,o,b,S,i,p]),W=h.useMemo(()=>{const a=[$];return N&&a.push(N),a},[$,N]);return e.jsxs(J,{children:[e.jsx(xe,{title:n.title,description:n.description,canonicalPath:n.canonicalPath,jsonLd:W,rssFeed:X}),e.jsxs("div",{className:"bg-gradient-to-br from-[var(--brand)] via-[var(--brand-strong)] to-[var(--brand-deep)] pt-10 pb-10 lg:pt-12 lg:pb-12 relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute top-8 right-16 w-72 h-72 rounded-full bg-white/5 blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-12 w-56 h-56 rounded-full bg-white/5 blur-2xl"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-white/[0.02] blur-3xl"})]}),e.jsxs("div",{className:`container mx-auto px-4 lg:px-6 max-w-xl lg:max-w-6xl ${C} relative z-10`,children:[e.jsxs("nav",{className:"flex items-center gap-2 text-sm text-white/50 mb-8 select-none",children:[e.jsx(g,{to:p("/"),className:"hover:text-white/80 transition-colors",children:"Início"}),e.jsx("span",{children:"/"}),e.jsx("span",{className:"text-white/90 font-medium",children:d})]}),e.jsxs("div",{className:"flex items-start gap-5",children:[e.jsx("div",{className:"w-16 h-16 lg:w-20 lg:h-20 rounded-2xl bg-white/15 backdrop-blur-md flex items-center justify-center border border-white/20 shadow-xl shrink-0",children:e.jsx(w,{className:"w-8 h-8 lg:w-10 lg:h-10 text-white"})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-3 mb-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/15 text-white/80 text-[10px] font-black uppercase tracking-widest border border-white/10",children:[e.jsx(w,{className:"w-3 h-3"})," Últimas"]})}),e.jsx("h1",{className:"text-3xl lg:text-5xl font-black text-white tracking-tight mb-3",children:d})]})]})]})]}),e.jsxs("div",{className:`container mx-auto px-4 lg:px-6 max-w-xl lg:max-w-6xl ${C} py-10 lg:py-14`,children:[s&&(v(i,s)||ie(i))&&e.jsx("div",{className:"mb-10 [&:has(>div:empty)]:hidden",children:e.jsx(f,{format:"header-large",className:"w-full",label:"Publicidade",slotId:oe(s)})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10",children:[e.jsxs("div",{className:"lg:col-span-8",children:[t&&e.jsx(de,{}),!t&&r.length>0&&e.jsx("div",{className:"space-y-0 divide-y divide-slate-100",children:r.map((a,c)=>e.jsxs(Z.Fragment,{children:[c>0&&c%10===0&&e.jsx(re,{slotIdBase:le(i,s,Math.floor(c/10))}),e.jsxs(g,{to:p(j(a.slug,a.primary_category_slug,i)),className:"group flex gap-5 py-6 first:pt-0 last:pb-0 hover:bg-slate-50/50 -mx-4 px-4 roun
1ded-xl transition-all duration-200",children:[a.featured_image?e.jsx("div",{className:P,children:e.jsx("img",{...be(a.featured_image,400,{quality:72,sizes:"(max-width: 768px) 112px, 192px"}),alt:a.title,width:400,height:267,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:c<5?"eager":"lazy",decoding:"async"})}):l&&e.jsx("div",{className:`${P} relative flex items-center justify-center`,style:{backgroundImage:`radial-gradient(circle at ${G[a.title.length%G.length]}, rgba(255,59,63,0.45), transparent 62%), linear-gradient(135deg, #0f172a 0%, #1e293b 100%)`},"aria-hidden":"true",children:e.jsx("span",{className:"text-[10px] md:text-xs font-black uppercase tracking-[0.18em] text-white/75",children:"AMANHÃ"})}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:[k.has(a.id)?e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-1.5",children:[e.jsx(R,{}),u(a.primary_category_slug)&&e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-[var(--brand)]",children:u(a.primary_category_slug)})]}):u(a.primary_category_slug)&&e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-[var(--brand)] mb-1.5",children:u(a.primary_category_slug)}),e.jsx("h3",{className:`text-base md:text-lg font-bold text-slate-900 group-hover:text-[var(--brand)] transition-colors leading-snug mb-1.5 ${l?"":"line-clamp-2"}`,children:a.title}),a.subtitle&&e.jsx("p",{className:"text-sm text-slate-500 line-clamp-2 leading-relaxed hidden md:block mb-2",children:a.subtitle}),q&&e.jsx("div",{className:"flex items-center gap-3 text-xs text-slate-400",children:a.published_at&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"w-3 h-3"}),K(a.published_at)]})})]}),e.jsx("div",{className:"hidden md:flex items-center",children:e.jsx(T,{className:"w-4 h-4 text-slate-300 group-hover:text-[var(--brand)] group-hover:translate-x-1 transition-all"})})]})]},a.id))}),!t&&r.length===0&&e.jsxs("div",{className:"text-center py-20 bg-slate-50 rounded-2xl border border-slate-100",children:[e.jsx("div",{className:"w-20 h-20 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-5",children:e.jsx(w,{className:"w-10 h-10 text-slate-300"})}),e.jsx("h2",{className:"text-xl font-bold text-slate-900 mb-2",children:"Nenhuma notícia encontrada"}),e.jsx("p",{className:"text-slate-500 mb-6",children:"Não há notícias publicadas no momento."}),e.jsxs(g,{to:p("/"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[var(--brand)] text-white font-bold rounded-xl hover:bg-[var(--brand-strong)] transition-colors",children:["Ir para o início ",e.jsx(T,{className:"w-4 h-4"})]})]}),U&&!t&&e.jsx("div",{className:"flex justify-center mt-10 pt-6 border-t border-slate-100",children:e.jsx("button",{onClick:z,disabled:_,className:"px-8 py-3.5 bg-slate-900 text-white font-bold rounded-xl hover:bg-slate-800 hover:shadow-lg hover:shadow-slate-900/10 hover:-translate-y-0.5 transition-all duration-300 disabled:opacity-50 flex items-center gap-2",children:_?e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):e.jsxs(e.Fragment,{children:["Carregar mais ",e.jsx(_e,{className:"w-4 h-4"})]})})})]}),e.jsxs("aside",{className:"lg:col-span-4 space-y-8 select-none",children:[s&&v(i,s)&&!t&&e.jsx(f,{format:"rectangle",className:"w-full",label:"Publicidade",slotId:ne(s)}),s&&v(i,s)&&!t&&e.jsx("div",{className:"hidden lg:block [&:has(>div:empty)]:hidden",children:e.jsx(f,{format:"half-page",className:"w-full",label:"Publicidade",slotId:me(s)})}),Y&&e.jsx(ge,{}),t&&e.jsx(ce,{}),!t&&r.length>0&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-lg shadow-slate-100/50 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("h3",{className:"font-black text-lg text-slate-900 flex items-center gap-2",children:[e.jsx(Se,{className:"w-5 h-5 text-red-600"}),"Em Alta"]}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse",title:"Atualizado agora"})]}),e.jsx("div",{className:"space-y-6",children:r.slice(0,5).map((a,c)=>e.jsxs(g,{to:p(j(a.slug,a.primary_category_slug,i)),className:"group flex gap-4 items-center pb-4 border-b border-slate-50 last:border-0 last:pb-0",children:[e.jsx("span",{className:`text-2xl font-black ${c===0?"text-red-500":"text-slate-200"} group-hover:text-[var(--brand-200)] transition-colors leading-none tracking-tighter w-6 text-center`,children:c+1}),e.jsxs("div",{className:"flex-1",children:[k.has(a.id)&&e.jsx(R,{className:"mb-1"}),u(a.primary_category_slug||"notícias")&&e.jsx("span",{className:"text-[9px] font-black uppercase tracking-wider text-slate-400 mb-0.5 block",children:u(a.primary_category_slug||"notícias")}),e.jsx("h4",{className:`font-bold text-slate-800 text-sm leading-snug group-hover:text-[var(--brand-strong)] transition-colors ${l?"":"line-clamp-2"}`,children:a.title})]})]},a.id))})]}),!t&&!(s&&v(i,s))&&e.jsx(f,{format:"rectangle",className:"w-full",label:"Publicidade",slotId:"news-sidebar-atf"})]})]})]})]})};export{rs as NewsCoverPage,rs 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.