PageSourceSearch

https://cbnamazonia.com/assets/NewsletterEditionPage-CuVWur0-.js

js cbnamazonia.com collected 2026-10-03 20:30:33 UTC 12,921 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-editor-BX0sR0z-.js";import{h as M,r as o}from"./vendor-react-BPk9u-w4.js";import{N as n}from"./NetworkLink-N_B1MT9J.js";import{M as f}from"./index-CrJssCpd.js";import{u as T,m as c}from"./index-s_BTi5XF.js";import{u as A}from"./useNetworkPath-B7HliJPy.js";import{f as F,b as I,a as D,g as R}from"./newsletterService-DztWJSUe.js";import{ce as q,z as g,ax as O,s as V,v as _,aj as G,f as H,cT as S,C as J,a as K,bs as k,be as Q,ae as U}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"./usePortalNavigation-D5CbDyF0.js";import"./especiaisIndex-CHoXLh0F.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"./getOptimizedImageUrl-DbohTHrX.js";import"./toCdnUrl-DV2rJaVv.js";import"./PullToRefresh-DCfatrUm.js";function j(s){return new Date(s).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"})}const C=({section:s,index:d,isPersonalized:l,getPath:b})=>e.jsxs(c.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.1+d*.06,duration:.5},className:`relative ${l?"pl-4 border-l-[3px] border-blue-400/50":""}`,children:[l&&e.jsx("div",{className:"flex items-center gap-1.5 mb-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-blue-50 text-blue-600 text-[10px] font-bold uppercase tracking-wider border border-blue-100/60",children:[e.jsx(S,{className:"w-2.5 h-2.5"})," Personalizado · ",s.topicLabel]})}),e.jsx("h3",{className:"text-xl font-black text-slate-900 mb-3 leading-tight tracking-tight",children:s.title}),e.jsx("p",{className:"text-[15px] text-slate-600 leading-relaxed",children:s.content}),s.link&&(/^https?:\/\//i.test(s.link)?e.jsxs("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-3 text-sm font-bold text-blue-600 hover:text-blue-700 transition-colors group/link",children:[s.linkLabel||"Saiba mais",e.jsx(k,{className:"w-3.5 h-3.5 transition-transform group-hover/link:translate-x-0.5"})]}):e.jsxs(n,{to:b(s.link),className:"inline-flex items-center gap-1.5 mt-3 text-sm font-bold text-blue-600 hover:text-blue-700 transition-colors group/link",children:[s.linkLabel||"Saiba mais",e.jsx(k,{className:"w-3.5 h-3.5 transition-transform group-hover/link:translate-x-0.5"})]}))]}),W=({topicCount:s})=>e.jsxs(c.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-slate-50 to-slate-100/50 border border-slate-200/60 p-6 md:p-8",children:[e.jsxs("div",{className:"space-y-3 mb-6 select-none","aria-hidden":!0,
1children:[e.jsx("div",{className:"h-5 bg-slate-200/60 rounded-full w-2/3 blur-[2px]"}),e.jsx("div",{className:"h-4 bg-slate-200/40 rounded-full w-full blur-[2px]"}),e.jsx("div",{className:"h-4 bg-slate-200/40 rounded-full w-5/6 blur-[2px]"}),e.jsx("div",{className:"h-4 bg-slate-200/40 rounded-full w-3/4 blur-[2px]"})]}),e.jsxs("div",{className:"space-y-3 select-none","aria-hidden":!0,children:[e.jsx("div",{className:"h-5 bg-slate-200/60 rounded-full w-1/2 blur-[2px]"}),e.jsx("div",{className:"h-4 bg-slate-200/40 rounded-full w-full blur-[2px]"}),e.jsx("div",{className:"h-4 bg-slate-200/40 rounded-full w-4/5 blur-[2px]"})]}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/60 backdrop-blur-[1px]",children:e.jsxs("div",{className:"text-center max-w-sm px-4",children:[e.jsx("div",{className:"w-14 h-14 rounded-2xl bg-blue-50 text-blue-600 flex items-center justify-center mx-auto mb-4 border border-blue-100/60 shadow-sm",children:e.jsx(Q,{className:"w-6 h-6"})}),e.jsxs("h4",{className:"text-lg font-black text-slate-900 mb-2",children:["+",s," seções personalizadas"]}),e.jsx("p",{className:"text-sm text-slate-500 mb-4 leading-relaxed",children:"Faça login para ver conteúdo exclusivo baseado nos seus interesses."}),e.jsxs(n,{to:"/auth/callback",className:"inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white rounded-xl text-sm font-bold hover:bg-blue-700 transition-all shadow-lg shadow-blue-600/20",children:[e.jsx(U,{className:"w-4 h-4"})," Entrar na Minha Conta"]})]})})]}),rt=()=>{const{editionId:s}=M(),{user:d}=T(),{getPath:l}=A(),[b,N]=o.useState(!1),[E,w]=o.useState(!0),[t,L]=o.useState(),[m,P]=o.useState([]);o.useEffect(()=>{let a=!1;return(async()=>{w(!0),await F();const i=s?await I(s):void 0;if(!a){if(L(i),i){const B=await D({newsletterSlug:i.newsletterSlug});a||P(B)}w(!1)}})(),()=>{a=!0}},[s]);const r=o.useMemo(()=>t?R(t.newsletterSlug):void 0,[t]),x=m.findIndex(a=>a.id===s),p=x<m.length-1?m[x+1]:void 0,h=x>0?m[x-1]:void 0,v=(t==null?void 0:t.sections.filter(a=>a.type==="standard"))||[],u=(t==null?void 0:t.sections.filter(a=>a.type==="personalized"))||[],z=d?u:[],$=()=>{navigator.clipboard.writeText(window.location.href),N(!0),setTimeout(()=>N(!1),2e3)};if(E)return e.jsx(f,{children:e.jsx("div",{className:"pt-24 lg:pt-32 pb-20",children:e.jsx("div",{className:"flex justify-center py-32",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})})})});if(!t||!r)return e.jsx(f,{children:e.jsx("div",{className:"pt-24 lg:pt-32 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center py-20",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-100 flex items-center justify-center mx-auto mb-4",children:e.jsx(q,{className:"w-8 h-8 text-slate-400"})}),e.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-2",children:"Edição não encontrada"}),e.jsx("p",{className:"text-slate-500 mb-6",children:"A edição que você procura não existe ou foi removida."}),e.jsxs(n,{to:l("/newsletter"),className:"inline-flex items-center gap-2 px-5 py-2.5 bg-blue-600 text-white rounded-xl text-sm font-bold hover:bg-blue-700 transition-all",children:[e.jsx(g,{className:"w-4 h-4"})," Voltar para Newsletter"]})]})})});const y=r.icon;return e.jsx(f,{children:e.jsx("div",{className:"pt-24 lg:pt-32 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 lg:px-6 max-w-3xl",children:[e.jsxs(c.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-2 mb-8 flex-wrap",children:[e.jsxs(n,{to:l("/newsletter"),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-slate-500 hover:text-blue-600 transition-colors",children:[e.jsx(g,{className:"w-3.5 h-3.5"})," Newsletter"]}),e.jsx("span",{className:"text-slate-300",children:"/"}),e.jsxs("span",{className:`inline-flex items-center gap-1 text-sm font-semibold ${r.color}`,children:[e.jsx(y,{className:"w-3.5 h-3.5"})," ",r.name]}),e.jsx("span",{className:"text-slate-300",children:"/"}),e.jsxs("span",{className:"text-sm font-medium text-slate-700",children:["#",t.number]})]}),e.jsxs(c.div,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-10",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[e.jsxs("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full ${r.bgColor} ${r.color} text-[11px] font-bold border border-current/10`,children:[e.jsx(y,{className:"w-3 h-3"})," ",r.name," #",t.number]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-slate-100 text-slate-600 text-[11px] font-bold",children:[e.jsx(O,{className:"w-3 h-3"})," ",t.weekday,", ",j(t.date)]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-slate-100 text-slate-600 text-[11px] font-bold",children:[e.jsx(V,{className:"w-3 h-3"})," ",t.readingTime," min"]})]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-black text-slate-900 mb-3 leading-tight tracking-tight",children:t.subtitle}),t.weather&&e.jsx("div",{className:"flex flex-wrap items-center gap-4 text-sm text-slate-500",children:e.jsx("span",{className:"font-medium",children:t.weather})}),e.jsxs("div",{className:"flex items-center gap-2 mt-5",children:[e.jsx("button",{onClick:$,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold bg-white border border-slate-200/60 text-slate-600 hover:bg-slate-50 transition-all shadow-sm cursor-pointer",children:b?e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"w-3.5 h-3.5 text-emerald-500"})," Copiado!"]}):e.jsxs(e.Fragment,{children:[e.jsx(G,{className:"w-3.5 h-3.5"})," Copiar Link"]})}),e.jsxs("button",{onClick:()=>{navigator.share&&navigator.share({title:t.title,url:window.location.href})},className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold bg-white border border-slate-200/60 text-slate-600 hover:bg-slate-50 transition-all shadow-sm cursor-pointer",children:[e.jsx(H,{className:"w-3.5 h-3.5"})," Compartilhar"]})]})]}),e.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-slate-200 to-transparent mb-10"}),e.jsx("div",{className:"space-y-8 mb-10",children:v.map((a,i)=>e.jsx(C,{section:a,index:i,isPersonalized:!1,getPath:l},a.id))}),u.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs(c.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.3},className:"relative my-10",children:[e.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-blue-200 to-transparent"}),e.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 -translate-y-1/2 bg-slate-50 px-4",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold text-blue-600 uppercase tracking-wider",children:[e.jsx(S,{className:"w-3 h-3"})," Conteúdo Personalizado"]})})]}),d?e.jsx("div",{className:"space-y-8 mb-10",children:z.map((a,i)=>e.jsx(C,{section:a,index:v.length+i,isPersonalized:!0,getPath:l},a.id))}):e.jsx(W,{topicCount:u.length})]}),e.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-slate-200 to-transparent my-10"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p?e.jsxs(n,{to:l(`/newsletter/${p.id}`),className:"group p-4 rounded-2xl bg-white border border-slate-200/60 hover:border-blue-200 hover:shadow-md transition-all",children:[e.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:[e.jsx(J,{className:"w-3 h-3"})," Edição Anterior"]}),e.jsxs("span",{className:"text-sm font-bold text-slate-700 group-hover:text-blue-700 transition-colors line-clamp-2",children:["#",p.number," · ",j(p.date)]})]}):e.jsx("div",{}),h?e.jsxs(n,{to:l(`/newsletter/${h.id}`),className:"group p-4 rounded-2xl bg-white border border-slate-200/60 hover:border-blue-200 hover:shadow-md transition-all text-right",children:[e.jsxs("span",{className:"flex items-center justify-end gap-1 text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:["Próxima Edição ",e.jsx(K,{className:"w-3 h-3"})]}),e.jsxs("span",{className:"text-sm font-bold text-slate-700 group-hover:text-blue-700 transition-colors line-clamp-2",children:["#",h.number," · ",j(h.date)]})]}):e.jsx("div",{})]}),e.jsx("div",{className:"mt-8 text-center",children:e.jsxs(n,{to:l("/newsletter"),className:"inline-flex items-center gap-2 text-sm font-bold text-slate-500 hover:text-blue-600 transition-colors",children:[e.jsx(g,{className:"w-4 h-4"})," Todas as edições"]})})]})})})};export{rt as NewsletterEditionPage,rt 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.