1import{r as p,j as e,N as n}from"./react-vendor-pafHdoJx.js";import{a as c,c as m}from"./index-Db0fDLGN.js";import{AdminPage as t}from"./AdminPage-D6hH_93d.js";import x from"./IntegracoesMaster-Dyax_1VW.js";import d from"./SupportPage-BHeg38Ck.js";import b from"./ProspeccaoRfPage-D53jjgsu.js";import u from"./CampaignsPage-BwPvBWo8.js";import{AuditPage as f}from"./AuditPage-DCKkaNH0.js";import g from"./WhatsAppManager-DS4D8ULT.js";import h from"./WhatsAppInbox-DmpWLv65.js";import j from"./WhatsAppStats-Wg61RIHH.js";import y from"./WhatsAppTemplates-BPGGNhpE.js";import k from"./WhatsAppBranding-BlYL50gv.js";import w from"./WhatsAppProspectBot-D-oW8SnI.js";import A from"./CampaignStudio-CG0PI0L2.js";import v from"./AccountDeletionsAdmin-BqrnDyzT.js";import{S as r,B as S,C as _,H as N,T as W,R as P,a as C,M as o,b as T,c as B,d as E}from"./ui-vendor-DLXJn6s3.js";import"./map-vendor-Dr8zbd0c.js";import"./firebase-vendor-D3UzkAhn.js";import"./perfil-DZ2OrrZB.js";import"./SettingsPage-BJRRSEa1.js";import"./HelpTooltip-DKugySwl.js";import"./ErrorState-B9i6eo2M.js";import"./TrackenConfigTab-9PbTjkQl.js";import"./primitives-DOiVg4wH.js";import"./SendWhatsAppButton-DIwBEhQG.js";import"./whatsapp-shared-BYiuVwmW.js";import"./chart-vendor-BwAs6csO.js";const I=[{key:"painel",label:"Painel Geral",icon:r},{key:"orgs",label:"Organizações",icon:S},{key:"integracoes",label:"Integrações",icon:_},{key:"suporte",label:"Suporte Remoto",icon:N},{key:"prospeccao",label:"Prospecção",icon:W},{key:"studio",label:"Campaign Studio",icon:P},{key:"campanhas",label:"Campanhas (legado)",icon:C},{key:"whatsapp",label:"WhatsApp",icon:o},{key:"wa_inbox",label:"Inbox WA",icon:o},{key:"wa_stats",label:"Stats WA",icon:o},{key:"wa_templates",label:"Templates WA",icon:o},{key:"wa_branding",label:"Marca WA",icon:o},{key:"wa_prospect_bot",label:"Bot Prospect",icon:T},{key:"exclusoes",label:"Exclusão de Conta",icon:B},{key:"auditoria",label:"Auditoria Global",icon:E}];function ne(){const{role:i}=c(),[a,l]=p.useState("painel");return i!=="super_admin"?e.jsx(n,{to:"/v2/painel",replace:!0}):e.jsxs("div",{className:"max-w-7xl",children:[e.jsx("div",{className:"flex items-center justify-between mb-4 flex-wrap gap-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"rgba(239,68,68,0.12)"},children:e.jsx(r,{className:"w-5 h-5",style:{color:"#EF4444"}})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--page-text)"},children:"Admin"}),e.jsx("p",{className:"text-xs",style:{color:"var(--page-text-muted)"},children:"Ãrea exclusiva · Sentinel AI"})]})]})}),e.jsx("div",{className:"flex gap-1 mb-6 overflow-x-auto pb-1 scrollbar-hide",children:I.map(s=>e.jsxs("button",{onClick:()=>l(s.key),className:m("flex items-center gap-1.5 px-4 py-2 rounded-lg text-sm font-medium whitespace-nowrap transition-colors",a===s.key?"shadow-sm":"hover-surface"),style:a===s.key?{background:"#EF4444",color:"#ffffff"}:{color:"var(--page-text-secondary)"},children:[e.jsx(s.icon,{className:"w-4 h-4"}),s.label]},s.key))}),a==="painel"&&e.jsx(t,{}),a==="orgs"&&e.jsx(t,{}),a==="integracoes"&&e.jsx(x,{}),a==="suporte"&&e.jsx(d,{}),a==="prospeccao"&&e.jsx(b,{}),a==="studio"&&e.jsx(A,{}),a==="campanhas"&&e.jsx(u,{}),a==="whatsapp"&&e.jsx(g,{}),a==="wa_inbox"&&e.jsx(h,{}),a==="wa_stats"&&e.jsx(j,{}),a==="wa_templates"&&e.jsx(y,{}),a==="wa_branding"&&e.jsx(k,{}),a==="wa_prospect_bot"&&e.jsx(w,{}),a==="exclusoes"&&e.jsx(v,{}),a==="auditoria"&&e.jsx(f,{})]})}export{ne 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.