1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{6695:(e,a,t)=>{"use strict";t.d(a,{dj:()=>m});var r=t(12115);let s=0,i=new Map,o=e=>{if(i.has(e))return;let a=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,a)},n=[],l={toasts:[]};function c(e){l=((e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===a.toast.id?{...e,...a.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=a;return t?o(t):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===a.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==a.toastId)}}})(l,e),n.forEach(e=>{e(l)})}function d({...e}){let a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,a]=r.useState(l);return r.useEffect(()=>(n.push(a),()=>{let e=n.indexOf(a);e>-1&&n.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},10381:(e,a,t)=>{"use strict";t.d(a,{CC:()=>n,Fv:()=>c,d7:()=>l,dh:()=>o,rR:()=>d});var r=t(48261),s=t(19865);let i=null;function o(){try{return i||(i=(0,r.FJ)(s.yA),console.log("[Performance] â
Firebase Performance Monitoring initialized")),i}catch(e){return console.error("[Performance] â Failed to initialize:",e),null}}function n(e){if(i||o(),!i)return console.warn("[Performance] Performance not initialized, skipping trace:",e),null;try{let a=(0,r.uP)(i,e);return a.start(),console.log(`[Performance] â¶ï¸ Started trace: ${e}`),a}catch(a){return console.error(`[Performance] Failed to start trace ${e}:`,a),null}}let l={loadArticles:()=>n("load_articles"),loadRecommendations:()=>n("load_recommendations"),searchAlgolia:()=>n("search_algolia"),loadMagazine:()=>n("load_magazine"),loadVideos:()=>n("load_videos"),optimizeImage:()=>n("optimize_image"),generateNewsletter:()=>n("generate_newsletter"),atlasOverviewTti:()=>n("atlas_overview_tti"),atlasPilesFetch:()=>n("atlas_piles_fetch")};function c(e,a,t){if(e)try{e.putAttribute(a,t)}catch(e){console.error(`[Performance] Failed to add attribute ${a}:`,e)}}function d(e,a,t){if(e)try{e.putMetric(a,t)}catch(e){console.error(`[Performance] Failed to add metric ${a}:`,e)}}o()},19862:(e,a,t)=>{"use strict";t.d(a,{ConditionalLayout:()=>B});var r=t(95155),s=t(73321),i=t(43754),o=t(12115),n=t(98500),l=t.n(n),c=t(48375),d=t(87616),m=t(66088),u=t(439),h=t(21362),f=t(40980);function b(){let{isAdmin:e,isEditor:a,dashboardPermissions:t}=(0,c.A)(),i=(0,s.usePathname)(),[n,b]=(0,o.useState)(null),[p,x]=(0,o.useState)(!1),g=(0,o.useMemo)(()=>(0,d.M)({isAdmin:e,isEditor:a,dashboardPermissions:t}),[e,a,t]);return(e||a)&&0!==g.length?(0,r.jsx)("div",{className:"w-full border-b bg-[#cccccc] text-black",children:(0,r.jsxs)("div",{className:"container mx-auto px-4",children:[(0,r.jsx)("nav",{className:"hidden md:flex items-center min-h-12 flex-wrap gap-1",children:g.map(e=>{let a=n===e.key;return(0,r.jsxs)("div",{className:"relative",onMouseEnter:()=>b(e.key),onMouseLeave:()=>b(null),children:[(0,r.jsxs)("button",{className:(0,f.cn)("flex items-center gap-1 h-12 px-3 text-sm font-medium transition-colors","text-black/90 hover:text-black hover:bg-black/10",a&&"bg-black/10"),onClick:()=>b(a?null:e.key),children:[e.title,(0,r.jsx)(m.A,{className:(0,f.cn)("h-4 w-4 transition-transform",a&&"rotate-180")})]}),a&&(0,r.jsx)("div",{className:"absolute top-full left-0 z-50 min-w-[230px] bg-[#cccccc] border border-black/10 rounded-md shadow-lg py-1",children:e.items.map(e=>{let a=i===e.path;return(0,r.jsx)(l(),{href:e.path,className:(0,f.cn)("block px-4 py-2 text-sm transition-colors","hover:bg-black/10 hover:text-black",a?"bg-black/20 text-black font-medium":"text-black/80"),children:e.label},e.path)})})]},e.key)})}),(0,r.jsxs)("div",{className:"md:hidden",children:[(0,r.jsxs)("button",{onClick:()=>x(!p),className:(0,f.cn)("flex items-center gap-2 h-12 px-4 text-sm font-medium transition-colors w-full","text-black/90 hover:text-black hover:bg-black/10",p&&"bg-black/10 text-black"),children:[(0,r.jsx)(u.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:e?"Admin":"Reda\xe7\xe3o"}),(0,r.jsx)(m.A,{className:(0,f.cn)("h-4 w-4 ml-auto transition-transform",p&&"rotate-180")}
1)]}),p&&(0,r.jsx)("nav",{className:"py-2 border-t border-black/10",children:g.map(e=>{let a=n===e.key;return(0,r.jsxs)("div",{className:"border-b border-black/10 last:border-b-0",children:[(0,r.jsxs)("button",{className:(0,f.cn)("flex items-center justify-between w-full px-4 py-3 text-sm font-medium transition-colors","text-black/90 hover:text-black hover:bg-black/10",a&&"bg-black/10 text-black"),onClick:()=>b(a?null:e.key),children:[e.title,(0,r.jsx)(h.A,{className:(0,f.cn)("h-4 w-4 transition-transform",a&&"rotate-90")})]}),a&&(0,r.jsx)("div",{className:"bg-[#b3b3b3] py-1",children:e.items.map(e=>{let a=i===e.path;return(0,r.jsx)(l(),{href:e.path,className:(0,f.cn)("block px-8 py-2 text-sm transition-colors","hover:bg-black/10 hover:text-black",a?"bg-black/20 text-black font-medium":"text-black/80"),onClick:()=>{x(!1),b(null)},children:e.label},e.path)})})]},e.key)})})]})]})}):null}var p=t(35321),x=t(5853),g=t(6695),v=t(89239),w=t(70376),N=t(33210);let j="bm_dismiss_verify_email_";function y(){let{user:e,isLoading:a,emailVerified:t}=(0,c.A)(),{toast:s}=(0,g.dj)(),[i,n]=(0,o.useState)(!0),[l,d]=(0,o.useState)(!1),[m,u]=(0,o.useState)(0),[h,f]=(0,o.useState)(0);if((0,o.useEffect)(()=>{if(!e)return void n(!0);let a=`${j}${e.uid}`;n("1"===localStorage.getItem(a))},[e]),(0,o.useEffect)(()=>{if(m<=0)return;let e=setInterval(()=>f(Date.now()),1e3);return()=>clearInterval(e)},[m]),a||!e||t||i)return null;let b=Math.max(0,Math.ceil((m-h)/1e3)),p=async()=>{d(!0);try{let a=await e.getIdToken(),t=await fetch("/api/auth/send-verification-email",{method:"POST",headers:{Authorization:`Bearer ${a}`}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"N\xe3o foi poss\xedvel reenviar o email.")}s({title:"Email enviado!",description:"Verifique sua caixa de entrada."});let r=Date.now()+6e4;u(r),f(Date.now())}catch(e){s({title:"Erro",description:e.message||"Tente novamente em instantes.",variant:"destructive"})}finally{d(!1)}};return(0,r.jsx)("div",{className:"bg-red-50 border-b border-red-200",children:(0,r.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 py-2 flex items-center gap-3",children:[(0,r.jsx)(w.A,{className:"h-4 w-4 text-red-700 flex-shrink-0"}),(0,r.jsx)("p",{className:"flex-1 text-sm text-red-900",children:"Confirme seu email para garantir a seguran\xe7a da sua conta."}),(0,r.jsx)(v.$,{size:"sm",variant:"outline",className:"h-7 text-xs border-red-400 text-red-900 hover:bg-red-100",onClick:p,disabled:l||b>0,children:b>0?`Reenviar (${b}s)`:"Reenviar email"}),(0,r.jsx)("button",{type:"button",onClick:()=>{localStorage.setItem(`${j}${e.uid}`,"1"),n(!0)},className:"text-red-700 hover:text-red-900 flex-shrink-0","aria-label":"Dispensar",children:(0,r.jsx)(N.A,{className:"h-4 w-4"})})]})})}var k=t(70707);let C="bm_dismiss_complete_profile_";function A(){let e=(0,s.useRouter)(),a=(0,s.usePathname)(),{user:t,userProfile:i,isLoading:n}=(0,c.A)(),[l,d]=(0,o.useState)(!0);return((0,o.useEffect)(()=>{if(!t)return void d(!0);let e=`${C}${t.uid}`;d("1"===localStorage.getItem(e))},[t]),n||!t||!i||i.profileCompleted||l||a?.startsWith("/minha-conta"))?null:(0,r.jsx)("div",{className:"bg-amber-50 border-b border-amber-200",children:(0,r.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 py-2 flex items-center gap-3",children:[(0,r.jsx)(k.A,{className:"h-4 w-4 text-amber-700 flex-shrink-0"}),(0,r.jsx)("p",{className:"flex-1 text-sm text-amber-900",children:"Complete seu perfil para receber conte\xfado mais relevante pra voc\xea."}),(0,r.jsx)(v.$,{size:"sm",variant:"outline",className:"h-7 text-xs border-amber-400 text-amber-900 hover:bg-amber-100",onClick:()=>e.push("/minha-conta"),children:"Completar perfil"}),(0,r.jsx)("button",{type:"button",onClick:()=>{localStorage.setItem(`${C}${t.uid}`,"1"),d(!0)},className:"text-amber-700 hover:text-amber-900 flex-shrink-0","aria-label":"Dispensar",children:(0,r.jsx)(N.A,{className:"h-4 w-4"})})]})})}var M=t(92289);let S="bm_newsletter_popup_dismissed_at",F=["/cadastro","/login","/admin","/dashboard","/atlas"];function P(){let{user:e,isLoading:a}=(0,c.A)(),t=(0,s.usePathname)(),i=(0,s.useRouter)(),[n,l]=(0,o.useState)(!1);if((0,o.useEffect)(()=>
1{if(a||e||F.some(e=>t?.startsWith(e)))return;let r=Number(localStorage.getItem(S)||0);if(r&&Date.now()-r<12096e5)return;let s=setTimeout(()=>l(!0),15e3);return()=>clearTimeout(s)},[a,e,t]),!n)return null;let d=()=>{localStorage.setItem(S,String(Date.now())),l(!1)};return(0,r.jsx)("div",{className:"fixed bottom-4 right-4 z-40 w-[calc(100%-2rem)] max-w-sm animate-in slide-in-from-bottom-4 fade-in duration-300",children:(0,r.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white shadow-2xl overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-4 py-3 flex items-center gap-2 bg-primary",children:[(0,r.jsx)(M.A,{className:"h-4 w-4 text-white flex-shrink-0"}),(0,r.jsx)("p",{className:"text-sm font-semibold text-white flex-1",children:"Newsletter Brasil Mineral"}),(0,r.jsx)("button",{type:"button",onClick:d,"aria-label":"Fechar",className:"text-white/80 hover:text-white",children:(0,r.jsx)(N.A,{className:"h-4 w-4"})})]}),(0,r.jsxs)("div",{className:"p-4 space-y-3",children:[(0,r.jsx)("p",{className:"text-sm text-gray-700",children:"Receba um resumo com as principais not\xedcias do setor mineral direto no seu email. Crie sua conta gratuita em menos de um minuto para assinar."}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(v.$,{type:"button",variant:"ghost",size:"sm",onClick:d,className:"flex-1 text-xs text-gray-600",children:"N\xe3o, obrigado"}),(0,r.jsx)(v.$,{type:"button",size:"sm",onClick:()=>{localStorage.setItem(S,String(Date.now())),i.push("/cadastro")},className:"flex-1 text-xs",children:"Quero receber"})]})]})]})})}var E=t(4927),I=t(19865),T=t(73479);let D="push-token-refreshed-at";function _(){let{user:e}=(0,c.A)();return(0,o.useEffect)(()=>{if(!e||"granted"!==(0,T.hH)())return;try{let e=Number(localStorage.getItem(D)||0);if(Date.now()-e<864e5)return}catch{}let a=!0;return(async()=>{try{let t=await (0,E.x7)((0,E.H9)(I.db,"users",e.uid));if(!a||t.data()?.notificationsEnabled===!1)return;if(await (0,T.IW)(e.uid)){try{localStorage.setItem(D,String(Date.now()))}catch{}console.log("[PushTokenRefresher] token renovado/reinscrito")}}catch(e){console.warn("[PushTokenRefresher] falhou (best-effort):",e)}})(),()=>{a=!1}},[e]),null}var R=t(61767);function O(){let{user:e,isLoading:a}=(0,c.A)(),[t,s]=(0,o.useState)(!1),[i,n]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{if(s(!1),!("Notification"in window)||!("serviceWorker"in navigator)||"default"!==(0,T.hH)())return;if(!e)return void s(!0);let a=!0;return(0,E.x7)((0,E.H9)(I.db,"users",e.uid)).then(e=>{a&&e.data()?.notificationsEnabled!==!1&&s(!0)}).catch(()=>s(!0)),()=>{a=!1}},[e]),a||!t)return null;let m=async()=>{if(!i){n(!0);try{await (0,T.cA)(e?.uid??null)?(e&&await (0,E.BN)((0,E.H9)(I.db,"users",e.uid),{notificationsEnabled:!0},{merge:!0}).catch(()=>{}),d(!0),setTimeout(()=>s(!1),2500)):"default"!==(0,T.hH)()&&s(!1)}finally{n(!1)}}};return(0,r.jsxs)("button",{type:"button",onClick:m,"aria-label":l?"Notifica\xe7\xf5es ativadas":"Ativar notifica\xe7\xf5es de not\xedcias e edi\xe7\xf5es",title:l?"Notifica\xe7\xf5es ativadas!":"Receber alertas de novas edi\xe7\xf5es e not\xedcias",className:"group fixed bottom-5 left-5 z-40 flex h-12 w-12 items-center justify-center rounded-full bg-[#4f0000] text-white shadow-lg transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-[#4f0000] focus:ring-offset-2",children:[l?(0,r.jsx)(R.A,{className:"h-5 w-5 fill-current"}):(0,r.jsx)(R.A,{className:`h-5 w-5 ${i?"animate-pulse":"group-hover:animate-[wiggle_0.3s_ease-in-out]"}`}),!l&&!i&&(0,r.jsx)("span",{className:"absolute inset-0 -z-10 animate-ping rounded-full bg-[#4f0000]/30 [animation-duration:3s]"})]})}let z=["/atlas","/admin/mineral-minas"],W=["/revista/","/magazine/"],V=/^\/revistas\/[^/]+\/[^/]+/;function B({children:e}){let a=(0,s.usePathname)();if(a.startsWith("/ingles")||z.some(e=>a.startsWith(e)))return(0,r.jsx)(r.Fragment,{children:e});if(W.some(e=>a.startsWith(e)))return(0,r.jsx)(x.SearchProvider,{children:(0,r.jsx)("div",{className:"flex h-screen flex-col bg-background overflow-hidden",children:e})});let t=V.test(a);return(0,r.jsxs)(x.SearchProvider,{children:[(0,r.jsxs)("div",{className:"flex min-h-screen flex-col bg-background",children:[(0,r.jsx)(i.V,{}),(0,r.jsx)(y,{}),(0,r.jsx)(A,{}),(0,r.jsx)(b,{}),(0,r.jsx)("main",{className:t?"flex-1 w-full":"flex-1 max-w-screen-xl mx-auto w-full",children:e}),(0,r.jsx)(p.PremiumFooter,{})]}),(0,r.jsx)(P,{}),(0,r.jsx)(_,{}),(0,r.jsx)(O,{})]})}},35321:(e,a,t)=>{"use strict";t.d(a,{PremiumFooter:()=>c});var r=t(95155),s=t(12115),i=t(98500),o=t.n(i),n=t(5772),l=t(68136);function c(){let{theme:e}
1=(0,l.w)(),[a,t]=(0,s.useState)(2025);return(0,s.useEffect)(()=>{t(new Date().getFullYear())},[]),(0,r.jsx)("footer",{className:"text-white border-t border-white/10",style:{background:"linear-gradient(to bottom, #6b0f1a, #2e0000)"},children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(o(),{href:"/",className:"mb-4 inline-block",children:(0,r.jsx)(n.default,{src:"saneamento-ambiental"===e?"https://saneamentoambiental.com.br/themes/custom/em/logo-dark.svg":"/icons/brasil-mineral-logo.png",alt:"saneamento-ambiental"===e?"Saneamento Ambiental Logo":"Brasil Mineral Logo",width:180,height:"saneamento-ambiental"===e?180:29,"data-ai-hint":"company logo",style:{maxHeight:"45px",width:"auto"}})}),(0,r.jsxs)("p",{className:"text-sm text-white/80",children:["saneamento-ambiental"===e?"Informa\xe7\xe3o e an\xe1lise para o setor de saneamento e meio ambiente.":"Not\xedcias di\xe1rias, dados e intelig\xeancia sobre o setor de minera\xe7\xe3o.","saneamento-ambiental"!==e&&(0,r.jsx)(r.Fragment,{children:" H\xe1 mais de 40 anos, Brasil Mineral \xe9 a voz da minera\xe7\xe3o no Brasil."})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-[#D32F2F] mb-4",children:"Navega\xe7\xe3o"}),(0,r.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/",className:"text-white/80 hover:text-white transition-colors",children:"Home"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/revistas",className:"text-white/80 hover:text-white transition-colors",children:"Revistas"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/videos",className:"text-white/80 hover:text-white transition-colors",children:"V\xeddeos"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/maiores",className:"text-white/80 hover:text-white transition-colors",children:"Maiores"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-[#D32F2F] mb-4",children:"Legal"}),(0,r.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/termos",className:"text-white/80 hover:text-white transition-colors",children:"Termos de Servi\xe7o"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/privacidade",className:"text-white/80 hover:text-white transition-colors",children:"Pol\xedtica de Privacidade"})})]})]})]}),(0,r.jsx)("div",{className:"mt-8 pt-8 border-t border-white/10 text-center text-sm text-white/80",children:(0,r.jsxs)("p",{children:["\xa9 ",a," ","saneamento-ambiental"===e?"Saneamento Ambiental":"Brasil Mineral",". Todos os direitos reservados."]})})]})})}},43754:(e,a,t)=>{"use strict";t.d(a,{V:()=>A});var r=t(95155),s=t(12115),i=t(98500),o=t.n(i),n=t(5772),l=t(73321),c=t(89239),d=t(42869),m=t(17620),u=t(439),h=t(41313),f=t(33210),b=t(61878),p=t(29857),x=t(40980),g=t(68136),v=t(48375),w=t(65140),N=t(19865),j=t(72264),y=t(1636);let k="https://anuncie.brasilmineral.com.br";function C(){let{user:e,userProfile:a,isAdmin:t,isAdvertiser:s}=(0,v.A)(),i=(0,l.useRouter)();if(!e)return null;let n=async()=>{try{await (0,w.CI)(N.j2),i.push("/")}catch(e){console.error("Logout error:",e)}},c=a?.nome||e.email?.split("@")[0]||"Usu\xe1rio",f=c.split(" ").filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()).join("")||"BM";return(0,r.jsxs)(j.rI,{children:[(0,r.jsx)(j.ty,{asChild:!0,children:(0,r.jsx)("button",{className:"h-9 w-9 shrink-0 rounded-full flex items-center justify-center text-sm font-bold transition-opacity hover:opacity-80",style:{backgroundColor:"#dcceb7",color:"#4f0000"},title:c,"aria-label":`Menu de ${c}`,children:f})}),(0,r.jsxs)(j.SQ,{className:"w-56",align:"end",children:[(0,r.jsx)(j.lp,{children:c}),(0,r.jsx)(j.mB,{}),(0,r.jsx)(o(),{href:"/minha-conta",passHref:!0,children:(0,r.jsxs)(j._2,{children:[(0,r.jsx)(d.A,{className:"mr-2 h-4 w-4"})," Minha Conta"]})}),(s||t)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.mB,{}),(0,r.jsx)(o(),{href:"/dashboard/advertiser",passHref:!0,children:(0,r.jsxs)(j._2,{children:[(0,r.jsx)(m.A,{className:"mr-2 h-4 w-4"})," Painel do Anunciante"]})})]}),t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.mB,{}),(0,r.jsx)(o(),{href:"/dashboard",passHref:!0,children:(0,r.jsxs)(j._2,{children:[(0,r.jsx)(u.A,{className:"mr-2 h-4 w-4"})," Painel Admin"]})})]}),(0,r.jsx)(j.mB,{}),(0,r.jsxs)(j._2,{onClick:n,children:[(0,r.jsx)(h.A,{className:"mr-2 h-4 w-4"})," Sair"]})]})]})}function A(){let{theme:e}=(0,g.w)(),{user:a}
1=(0,v.A)(),[t,i]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),u=(0,l.usePathname)(),h=(0,l.useRouter)(),j=u.startsWith("/maiores"),A=[{label:"HOME",href:"/"},{label:"REVISTAS",href:"/revistas"},{label:"V\xcdDEOS",href:"/videos"},{label:"MAIORES",href:"/maiores"},{label:"CONTATO",href:"/contato"}];return(0,r.jsxs)("header",{className:"sticky top-0 z-50 w-full",style:{background:"linear-gradient(to bottom, #6b0f1a, #2e0000)"},children:[(0,r.jsxs)("div",{className:"container mx-auto flex h-20 items-center justify-between gap-4 px-4 py-3",children:[(0,r.jsx)("div",{className:"flex items-center space-x-4",children:(0,r.jsx)(o(),{href:"/",className:"flex items-center",children:(0,r.jsx)(n.default,{src:"saneamento-ambiental"===e?"https://saneamentoambiental.com.br/themes/custom/em/logo-dark.svg":"https://firebasestorage.googleapis.com/v0/b/brasil-mineral-newsletter.firebasestorage.app/o/BRASILMINERAL.png?alt=media&token=c1e36e97-f285-4128-88f6-8d53f5f617be",alt:"saneamento-ambiental"===e?"Saneamento Ambiental Logo":"Brasil Mineral Logo",width:"saneamento-ambiental"===e?180:147,height:"saneamento-ambiental"===e?40:24,priority:!0,quality:90,"data-ai-hint":"company logo",className:(0,x.cn)(j&&"filter-none",!j&&"saneamento-ambiental"===e&&"invert brightness-0"),style:{maxHeight:"45px",width:"auto"}})})}),(0,r.jsx)("div",{className:"hidden lg:flex flex-grow justify-center px-4",children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)("div",{className:"w-full max-w-md h-10"}),children:(0,r.jsx)(y.I,{})})}),(0,r.jsxs)("nav",{className:"hidden lg:flex items-center gap-1 text-sm font-medium",children:[A.map(e=>{let a=u===e.href||"/"!==e.href&&u.startsWith(e.href);return(0,r.jsx)(o(),{href:e.href,className:(0,x.cn)("px-3 py-2 hover:bg-white/10 rounded-md transition-colors font-semibold",a&&"bg-white/20"),style:{color:"#fbf0e9"},children:e.label},e.href)}),!a&&(0,r.jsx)(o(),{href:"/cadastro",className:"ml-1 inline-flex items-center rounded-full bg-white px-3.5 py-1.5 text-xs font-bold uppercase tracking-wide text-[#4f0000] shadow-sm transition-colors hover:bg-[#f2e5d2]",children:"Assinar"}),(0,r.jsx)("a",{href:k,className:"ml-1 inline-flex items-center rounded-full bg-orange-500 px-3.5 py-1.5 text-xs font-bold uppercase tracking-wide text-white shadow-sm transition-colors hover:bg-orange-600",children:"Anuncie"}),a&&(0,r.jsx)(C,{})]}),(0,r.jsxs)("div",{className:"lg:hidden flex items-center gap-1",children:[(0,r.jsx)(c.$,{variant:"ghost",size:"icon",className:"hover:bg-white/10",style:{color:"#fbf0e9"},"aria-label":d?"Fechar busca":"Abrir busca",onClick:()=>{m(!d),i(!1)},children:d?(0,r.jsx)(f.A,{className:"h-5 w-5"}):(0,r.jsx)(b.A,{className:"h-5 w-5"})}),(0,r.jsx)(c.$,{variant:"ghost",size:"icon",className:"hover:bg-white/10",style:{color:"#fbf0e9"},"aria-label":t?"Fechar menu":"Abrir menu",onClick:()=>{i(!t),m(!1)},children:t?(0,r.jsx)(f.A,{className:"h-5 w-5"}):(0,r.jsx)(p.A,{className:"h-5 w-5"})})]})]}),d&&(0,r.jsx)("div",{className:"lg:hidden border-t border-white/10 py-4",style:{background:"linear-gradient(to bottom, #6b0f1a, #2e0000)"},children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)("div",{className:"w-full h-9"}),children:(0,r.jsx)(y.I,{onSearchSubmit:()=>m(!1)})})})}),t&&(0,r.jsx)("div",{className:"lg:hidden border-t border-white/10 py-4",style:{background:"linear-gradient(to bottom, #6b0f1a, #2e0000)"},children:(0,r.jsxs)("nav",{className:"container mx-auto px-4 flex flex-col gap-2",children:[A.map(e=>{let a=u===e.href||"/"!==e.href&&u.startsWith(e.href);return(0,r.jsx)(o(),{href:e.href,className:(0,x.cn)("px-4 py-3 text-sm font-medium hover:bg-white/10 rounded-md transition-colors",a&&"bg-white/20 font-semibold"),style:{color:"#fbf0e9"},onClick:()=>i(!1),children:e.label},e.href)}),(0,r.jsx)("div",{className:"border-t border-white/20 my-2"}),!a&&(0,r.jsx)(o(),{href:"/cadastro",onClick:()=>i(!1),className:"mx-4 mb-2 inline-flex items-center justify-center rounded-full bg-white px-4 py-2.5 text-sm font-bold uppercase tracking-wide text-[#4f0000]",children:"Assinar"}),(0,r.jsx)("a",{href:k,onClick:()=>i(!1),className:"mx-4 mb-1 inline-flex items-center justify-center rounded-full bg-orange-500 px-4 py-2.5 text-sm font-bold uppercase tracking-wide text-white",children:"Anuncie"}),a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{href:"/minha-conta",className:"px-4 py-3 text-sm font-medium hover:bg-white/10 rounded-md transition-colors",style:{color:"#fbf0e9"},onClick:()=>i(!1),children:"Minha Conta"}),(0,r.jsx)(o(),{href:"/dashboard/advertiser",className:"px-4 py-3 text-sm font-medium hover:bg-white/10 rounded-md transition-colors",style:{color:"#fbf0e9"},onClick:()=>i(!1),children:"Painel do Anunciante"}),(0,r.jsx)("button",{onClick:async()=>
1{await (0,w.CI)(N.j2),h.push("/"),i(!1)},className:"px-4 py-3 text-sm font-medium hover:bg-white/10 rounded-md transition-colors text-left",style:{color:"#fbf0e9"},children:"Sair"})]}):null]})})]})}},46282:()=>{},51743:()=>{},53075:(e,a,t)=>{"use strict";t.d(a,{P:()=>n,S:()=>o});var r=t(95155),s=t(12115);let i=(0,s.createContext)(void 0);function o({children:e,initialStep:a=1,totalSteps:t=0}){let[n,l]=(0,s.useState)(a),c=(0,s.useMemo)(()=>e=>{l(a=>{let r="function"==typeof e?e(a):e;return t>0?Math.max(1,Math.min(r,t)):r})},[t]),d=(0,s.useMemo)(()=>({step:n,setStep:c,totalSteps:t}),[n,c,t]);return(0,r.jsx)(i.Provider,{value:d,children:e})}function n(){let e=(0,s.useContext)(i);if(void 0===e)throw Error("useStepContext must be used within a StepProvider");return e}},55978:()=>{},58446:(e,a,t)=>{Promise.resolve().then(t.t.bind(t,42593,23)),Promise.resolve().then(t.t.bind(t,95642,23)),Promise.resolve().then(t.t.bind(t,60490,23)),Promise.resolve().then(t.t.bind(t,9236,23)),Promise.resolve().then(t.t.bind(t,51743,23)),Promise.resolve().then(t.bind(t,19862)),Promise.resolve().then(t.bind(t,75921)),Promise.resolve().then(t.t.bind(t,46282,23)),Promise.resolve().then(t.t.bind(t,55978,23))},73479:(e,a,t)=>{"use strict";t.d(a,{A8:()=>b,IW:()=>u,L9:()=>h,cA:()=>m,hH:()=>f});var r=t(19865);let s=null;async function i(){if(!("Notification"in window))return console.warn("[FCM] Este navegador n\xe3o suporta notifica\xe7\xf5es"),null;if(!("serviceWorker"in navigator))return console.warn("[FCM] Este navegador n\xe3o suporta Service Workers"),null;try{if(!s){let{getMessaging:e}=await Promise.all([t.e(32991),t.e(89043)]).then(t.bind(t,89043));s=e(r.yA),console.log("[FCM] â
Firebase Cloud Messaging initialized")}return s}catch(e){return console.error("[FCM] â Failed to initialize:",e),null}}async function o(){try{await navigator.serviceWorker.register("/sw.js",{scope:"/"});let e=await navigator.serviceWorker.ready;return console.log("[FCM] â
Service Worker registrado e ativo:",e),e}catch(e){return console.error("[FCM] â Service Worker registration failed:",e),null}}async function n(){try{if(console.log("[FCM] \uD83D\uDD14 Iniciando solicita\xe7\xe3o de permiss\xe3o..."),console.log("[FCM] Permiss\xe3o atual:",Notification.permission),console.log("[FCM] User Agent:",navigator.userAgent),console.log("[FCM] \xc9 HTTPS?","https:"===window.location.protocol),console.log("[FCM] Service Worker suportado?","serviceWorker"in navigator),"granted"===Notification.permission)return console.log("[FCM] â
Permiss\xe3o j\xe1 concedida, obtendo token..."),await l();if("denied"===Notification.permission)throw console.error("[FCM] â Permiss\xe3o negada pelo usu\xe1rio anteriormente"),console.error("[FCM] Para reativar: Configura\xe7\xf5es do navegador > Notifica\xe7\xf5es"),Error("Permiss\xe3o de notifica\xe7\xe3o foi negada. Verifique as configura\xe7\xf5es do navegador.");console.log("[FCM] \uD83D\uDCF1 Solicitando permiss\xe3o ao usu\xe1rio...");let e=await Notification.requestPermission();if(console.log("[FCM] Resultado da solicita\xe7\xe3o:",e),"granted"===e)return console.log("[FCM] â
Permiss\xe3o concedida, obtendo token..."),await l();throw console.warn("[FCM] â ï¸ Permiss\xe3o negada pelo usu\xe1rio"),Error("Voc\xea negou a permiss\xe3o para notifica\xe7\xf5es")}catch(e){throw console.error("[FCM] â Erro ao solicitar permiss\xe3o:",e),e}}async function l(){try{console.log("[FCM] \uD83C\uDFAF Iniciando obten\xe7\xe3o de token...");let e=await i();if(!e)throw console.error("[FCM] â Falha ao inicializar Firebase Messaging"),Error("Firebase Messaging n\xe3o p\xf4de ser inicializado");console.log("[FCM] â
Firebase Messaging inicializado"),console.log("[FCM] \uD83D\uDCDD Registrando Service Worker...");let a=await o();if(!a)throw console.error("[FCM] â Service Worker n\xe3o foi registrado"),Error("Service Worker n\xe3o p\xf4de ser registrado");console.log("[FCM] â
Service Worker registrado");let r="BAYJ_yHC4JYbtTl3J9biUY60E8JLIsPq_2C3RmAEQS8Ly49OMJWMgxT85yMgq2LUzO17NV_pBimVbjEVRdXGu3A";if(console.log("[FCM] \uD83D\uDD11 Verificando VAPID key..."),console.log("[FCM] VAPID key existe:",!!r),console.log("[FCM] VAPID key length:",r?.length),console.log("[FCM] VAPID key preview:",r?.substring(0,20)+"..."),!r)throw console.error("[FCM] â VAPID key n\xe3o configurada no .env.local"),console.error("[FCM] Adicione: NEXT_PUBLIC_FIREBASE_VAPID_KEY=sua-chave"),Error("VAPID key n\xe3o configurada");console.log("[FCM] \uD83D\uDD11 VAPID key length:",r.length),console.log("[FCM] \uD83D\uDD11 VAPID key (trimmed):",r.trim().substring(0,20)+"..."),console.log("[FCM] \uD83D\uDD10 Solicitando token FCM com VAPID key...");let{getToken:s}=await Promise.all([t.e(32991),t.e(89043)]).then(t.bind(t,89043)),n=await s(e,{vapidKey:r.trim(),serviceWorkerRegistration:a});if(n)return console.log("[FCM] â
Token FCM obtido com sucesso!"),console.log("[FCM] Token:",n.substring(0,20)+"..."),n;throw console.error("[FCM] â Nenhum token foi retornado pelo Firebase"),Error("Token FCM n\xe3o p\xf4de ser gerado")}catch(e){throw console.error("[FCM] â Erro ao obter token:",e),console.error("[FCM] Detalhes do erro:",{message:e.message,code:e.code,stack:e.stack}),e}}async function c(e,a){try{if((await fetch("/api/notifications/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,topic:a})})).ok)return console.log(`[FCM] â
Inscrito no t\xf3pico: ${a}`),!0;return console.error("[FCM] â Falha ao inscrever no t\xf3pico"),!1}catch(e){return console.error("[FCM] â Erro ao inscrever no t\xf3pico:",e),!1}}async function d(e,a){try{let e=r.j2.currentUser;if(!e)return console.error("[FCM] â Usu\xe1rio n\xe3o autenticado â token n\xe3o salvo"),!1;let t=await e.getIdToken();if((await fetch("/api/notifications/save-token",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({token:a})})).ok)return console.log("[FCM] â
Token salvo para o usu\xe1rio"),!0;return console.error("[FCM] â Falha ao salvar token"),!1}catch(e){return console.error("[FCM] â Erro ao salvar token:",e),!1}}async function m(e){try{let a=await n();if(!a)return!1;return e&&r.j2.currentUser&&await d(e,a).catch(()=>
1!1),await c(a,"all-users"),await c(a,"noticias-mineral"),await c(a,"revista-mensal"),!0}catch(e){return console.warn("[FCM] enablePushNotifications falhou (best-effort, ignorado):",e),!1}}async function u(e){return"granted"===f()&&m(e)}async function h(){try{let e=await i();if(!e)return!1;let a=null;if("granted"===f())try{a=await n()}catch{a=null}if(a)for(let e of["all-users","noticias-mineral","revista-mensal"])await fetch("/api/notifications/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:a,topic:e,action:"unsubscribe"})}).catch(()=>{});let{deleteToken:r}=await Promise.all([t.e(32991),t.e(89043)]).then(t.bind(t,89043));return await r(e).catch(()=>{}),!0}catch(e){return console.warn("[FCM] disablePushNotifications falhou (best-effort):",e),!1}}function f(){return"Notification"in window?Notification.permission:"default"}async function b(){if(console.log("[FCM] \uD83E\uDDEA Iniciando teste de notifica\xe7\xe3o..."),console.log("[FCM] Permiss\xe3o atual:",Notification.permission),"granted"!==Notification.permission)throw console.warn("[FCM] â ï¸ Permiss\xe3o n\xe3o concedida"),Error("Permiss\xe3o de notifica\xe7\xe3o n\xe3o concedida");let e={body:"Se voc\xea v\xea esta notifica\xe7\xe3o, tudo est\xe1 funcionando! \uD83C\uDF89",icon:"/icons/icon-192x192.png",badge:"/icons/icon-72x72.png",tag:"test-notification",requireInteraction:!1,data:{url:"/minha-conta",timestamp:Date.now()}},a=(e,a)=>Promise.race([e,new Promise(e=>setTimeout(()=>e(null),a))]);try{if(!("serviceWorker"in navigator))throw Error("Service Worker n\xe3o suportado");let t=await a(navigator.serviceWorker.ready,3e3);if(t||(console.log("[FCM] â³ Sem worker ativo em 3s â registrando agora..."),await navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(()=>{}),t=await a(navigator.serviceWorker.ready,5e3)),t){await t.showNotification("\uD83E\uDDEA Brasil Mineral - Teste",e),console.log("[FCM] â
Notifica\xe7\xe3o de teste enviada via Service Worker!");return}console.log("[FCM] â ï¸ SW indispon\xedvel â tentando notifica\xe7\xe3o de p\xe1gina..."),new Notification("\uD83E\uDDEA Brasil Mineral - Teste",e),console.log("[FCM] â
Notifica\xe7\xe3o de teste enviada via p\xe1gina (sem SW)")}catch(e){throw console.error("[FCM] â Erro ao enviar notifica\xe7\xe3o de teste:",e),Error("O service worker n\xe3o ficou ativo neste dispositivo. Recarregue a p\xe1gina e tente de novo â se persistir, me avise.")}}},75921:(e,a,t)=>{"use strict";t.d(a,{AppProviders:()=>S});var r=t(95155),s=t(12115),i=t(26430),o=t(35625),n=t(93434),l=t(48375),c=t(68136),d=t(42653),m=t(18460),u=t(33210),h=t(40980);let f=d.Kq,b=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(d.LM,{ref:t,className:(0,h.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...a}));b.displayName=d.LM.displayName;let p=(0,m.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),x=s.forwardRef(({className:e,variant:a,...t},s)=>(0,r.jsx)(d.bL,{ref:s,className:(0,h.cn)(p({variant:a}),e),...t}));x.displayName=d.bL.displayName,s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(d.rc,{ref:t,className:(0,h.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...a})).displayName=d.rc.displayName;let g=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(d.bm,{ref:t,className:(0,h.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground
1/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...a,children:(0,r.jsx)(u.A,{className:"h-4 w-4"})}));g.displayName=d.bm.displayName;let v=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(d.hE,{ref:t,className:(0,h.cn)("text-sm font-semibold",e),...a}));v.displayName=d.hE.displayName;let w=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(d.VY,{ref:t,className:(0,h.cn)("text-sm opacity-90",e),...a}));w.displayName=d.VY.displayName;var N=t(6695);function j(){let{toasts:e}=(0,N.dj)();return(0,r.jsxs)(f,{children:[e.map(function({id:e,title:a,description:t,action:s,...i}){return(0,r.jsxs)(x,{...i,children:[(0,r.jsxs)("div",{className:"grid gap-1",children:[a&&(0,r.jsx)(v,{children:a}),t&&(0,r.jsx)(w,{children:t})]}),s,(0,r.jsx)(g,{})]},e)}),(0,r.jsx)(b,{})]})}var y=t(53075),k=t(44855),C=t(10381);function A(){return(0,s.useEffect)(()=>{if(!("serviceWorker"in navigator))return;let e=!1,a=()=>{e||(e=!0,window.location.reload())};return navigator.serviceWorker.addEventListener("controllerchange",a),navigator.serviceWorker.getRegistration("/").then(e=>{e?.update().catch(()=>{})}),()=>{navigator.serviceWorker.removeEventListener("controllerchange",a)}},[]),null}let M=new i.E({defaultOptions:{queries:{staleTime:3e5}}});function S({children:e}){return(0,s.useEffect)(()=>{(0,C.dh)()},[]),(0,r.jsxs)(o.Ht,{client:M,children:[(0,r.jsx)(A,{}),(0,r.jsx)(k.BE,{value:{dedupingInterval:6e4,focusThrottleInterval:12e4,loadingTimeout:3e3,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},children:(0,r.jsx)(l.O,{children:(0,r.jsxs)(c.N,{children:[(0,r.jsx)(y.S,{totalSteps:4,children:e}),(0,r.jsx)(j,{})]})})}),(0,r.jsx)(n.E,{initialIsOpen:!1})]})}},87616:(e,a,t)=>{"use strict";t.d(a,{M:()=>o});let r=()=>({type:"admin"}),s=e=>({type:"feature",feature:e}),i=[{key:"editorial",title:"EDITORIAL",items:[{label:"Nova Mat\xe9ria",path:"/dashboard/quick-post",iconName:"PenSquare",access:s("quick-post")},{label:"Radar de Pautas",path:"/dashboard/news-scout",iconName:"Search",access:s("news-scout")},{label:"Importa\xe7\xe3o de Mat\xe9rias em Lote",path:"/dashboard/drupal-uploader",iconName:"UploadCloud",access:s("batch-uploader")},{label:"Curadoria de Destaques",path:"/dashboard/curation",iconName:"Star",access:s("content-curation")},{label:"Gest\xe3o de Conte\xfado",path:"/dashboard/settings/importer",iconName:"FileText",access:r()},{label:"Newsletter",path:"/dashboard/newsletter",iconName:"Newspaper",access:s("newsletter-creator")},{label:"Posts para LinkedIn",path:"/dashboard/linkedin-post-generator",iconName:"Share2",access:s("linkedin-generator")},{label:"Notifica\xe7\xf5es Push",path:"/dashboard/notifications",iconName:"Bell",access:s("push-notifications")}]},{key:"multimidia",title:"MULTIM\xcdDIA",items:[{label:"Est\xfadio de Podcast",path:"/dashboard/podcast-generator",iconName:"Mic",access:s("podcast-generator")},{label:"Gerador de Reels",path:"/dashboard/reels-generator",iconName:"Clapperboard",access:s("reels-generator")},{label:"Montagem de V\xeddeo",path:"/dashboard/video-composer",iconName:"Film",access:s("video-composer")},{label:"Galeria de V\xeddeos",path:"/dashboard/videos",iconName:"Film",access:s("video-composer")},{label:"\xc1udio das Mat\xe9rias (Narra\xe7\xe3o)",path:"/dashboard/audio-narrations",iconName:"Mic",access:s("podcast-generator")},{label:"Transcri\xe7\xf5es de V\xeddeo",path:"/admin/video-transcriptions",iconName:"FileText",access:r()}]},{key:"revista",title:"REVISTA",items:[{label:"Fluxo de Edi\xe7\xf5es",path:"/admin/magazine-workflow",iconName:"BookOpen",access:s("magazine-archive")},{label:"Mat\xe9rias da Revista",path:"/admin/magazine-articles",iconName:"BookOpen",access:s("magazine-archive")},{label:"Indexa\xe7\xe3o do Acervo",path:"/dashboard/magazine-indexer",iconName:"Database",access:s("magazine-archive")},{label:"M\xe9tricas do Acervo",path:"/admin/magazine-stats",iconName:"TrendingUp",access:s("magazine-archive")}]},{key:"comercial",title:"COMERCIAL",items:[{label:"Central de An\xfancios",path:"/dashboard/ad-manager",iconName:"ImageIcon",access:s("ad-manager")},{label:"Anunciantes",path:"/admin/anunciantes",iconName:"Briefcase",access:r()},{label:"Banners da Home",path:"/dashboard/banner-manager",iconName:"ImageIcon",access:s("banner-manager")},{label:"Guia de Fornecedores",path:"/admin/guia-fornecedores",iconName:"Building",access:r()},{label:"Pr\xe9-cadastros do Guia (Feira)",path:"/admin/guia-pre-cadastros",iconName:"ClipboardList",access:r()},{label:"Assinantes",path:"/admin/assinantes",iconName:"Users",access:r()}]},{key:"audiencia",title:"AUDI\xcaNCIA",items:[{label:"An\xe1lise de Audi\xeancia",path:"/dashboard/analytics",iconName:"TrendingUp",access:s("analytics-viewer")},{label:"Central de Crescimento",path:"/admin/growth",iconName:"TrendingUp",access:r()},{label:"Termos de Busca",path:"/admin/search-stats",iconName:"Search",access:r()},{label:"M\xe9tricas de E-mail",path:"/dashboard/stats",iconName:"Mail",access:s("newsletter-creator")},{label:"Sincroniza\xe7\xe3o de Contatos",path:"/dashboard/sync",iconName:"Users",access:s("contact-sync")},{label:"Supress\xf5es de E-mail",path:"/dashboard/suppressions",iconName:"Users",access:s("suppressions")}]},{key:"dados",title:"DADOS DO SETOR",items:[{label:"Atlas: Entidades",path:"/admin/mineral-entidades",iconName:"Database",access:r()},{label:"Atlas: Grupos Econ\xf4micos",path:"/admin/mineral-grupos",iconName:"Database",access:r()},{label:"Atlas: Minas",path:"/admin/mineral-minas",iconName:"Database",access:r()},{label:"Atlas: V\xednculos",path:"/admin/mineral-vinculos",iconName:"Database",access:r()},{label:"Atlas: Eventos",path:"/admin/mineral-events",iconName:"C
1alendar",access:r()},{label:"Atlas: Mat\xe9rias Vinculadas",path:"/admin/mineral-article",iconName:"FileText",access:r()},{label:"As Maiores (Ranking)",path:"/admin/maiores",iconName:"Award",access:r()},{label:"As Maiores: Enriquecimento",path:"/admin/maiores-enrich",iconName:"Award",access:r()},{label:"Embeddings (Busca IA)",path:"/admin/embeddings",iconName:"Database",access:r()}]},{key:"administracao",title:"ADMINISTRA\xc7\xc3O",items:[{label:"Equipe e Permiss\xf5es",path:"/admin/equipe",iconName:"ShieldCheck",access:r()},{label:"Apar\xeancia do Site",path:"/admin/layout-settings-v3",iconName:"Settings",access:r()},{label:"Assistente de Migra\xe7\xe3o",path:"/dashboard/migration",iconName:"Database",access:r()},{label:"Configura\xe7\xf5es",path:"/dashboard/settings",iconName:"Settings",access:r()}]},{key:"sistema",title:"SISTEMA (DEV)",items:[{label:"Depurador do Firestore",path:"/dashboard/firestore-debugger",iconName:"Database",access:r()},{label:"Conversor de Chave GA",path:"/dashboard/ga-key-converter",iconName:"Settings",access:r()},{label:"Teste: PiAPI V\xeddeo",path:"/dashboard/piapi-video-tester",iconName:"Film",access:r()},{label:"Demo de Transi\xe7\xf5es",path:"/admin/transition-demo",iconName:"Settings",access:r()}]}];function o(e){return i.map(a=>({...a,items:a.items.filter(a=>(function(e,a){if(a.isAdmin)return!0;if(!a.isEditor)return!1;switch(e.access.type){case"admin":return!1;case"editor":return!0;case"feature":return a.dashboardPermissions.includes(e.access.feature)}})(a,e))})).filter(e=>e.items.length>0)}}},e=>{e.O(0,[93399,73334,11297,62992,47416,18409,49304,16511,98500,38437,91798,99854,21935,82330,32991,48261,3468,44855,87216,4510,28441,93794,77358],()=>e(e.s=58446)),_N_E=e.O()}]);
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.