1import{u as c,j as e}from"./react-vendor-BorBU4Bs.js";import{a as l,aq as d,K as m,M as p,bO as x,cH as u,cG as f,bN as g,cF as h}from"./index-DkhxOMdR.js";import"./radix-vendor-CazrR58L.js";import"./charts-vendor-BxJanGhU.js";import"./query-vendor-dlntIC_S.js";import"./supabase-vendor-BxTHC7hl.js";import"./xlsx-vendor-DOnNs5_d.js";import"./qr-vendor-Ca1-Dxvv.js";const b=[{to:"/manutencao-fabrica",label:"Manutenção",icon:x,description:"Chamados, preventivas e cadastros da manutenção da fábrica",pageKeys:["manutencao-fabrica","manutencao-fabrica-cadastros","manutencao-fabrica-admin"]},{to:"/tarefas",label:"Tarefas",icon:u,description:"Projetos, quadro Kanban e acompanhamento de tarefas",pageKeys:["tarefas"]},{to:"/diretoria",label:"Diretoria",icon:f,description:"Painéis executivos e indicadores gerenciais",pageKeys:["diretoria"],extraRoles:["socio"]},{to:"/financeiro",label:"Financeiro",icon:g,description:"Preços, prazos, previsão e Faturamento",pageKeys:["financeiro","faturamento","nf-retorno"]},{to:"/compras",label:"Compras",icon:h,description:"Requisições, aprovações, pedidos de compra e fornecedores",pageKeys:["compras"]}];function P(){const r=c(),{isMaster:s,allowedPages:o,userRole:t}=l(),i=b.filter(a=>a.extraRoles&&a.extraRoles.includes(t)?!0:s||a.pageKeys.some(n=>o.includes(n)));return e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-col items-center text-center gap-2 mb-6",children:[e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/20 text-primary",children:e.jsx(d,{className:"h-6 w-6"})}),e.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Gestão"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Manutenção, tarefas, financeiro e painéis da diretoria"})]}),e.jsx("div",{className:"flex flex-wrap justify-center gap-5 max-w-4xl mx-auto [&>*]:w-full [&>*]:sm:w-[calc(50%-0.625rem)] [&>*]:lg:w-[calc(33.333%-0.834rem)]",children:i.map(a=>e.jsx(m,{className:"group cursor-pointer border-border bg-card shadow transition-all duration-200 hover:shadow-xl hover:border-primary/50 active:scale-[0.97]",onClick:()=>r(a.to),children:e.jsxs(p,{className:"p-6 flex flex-col items-center gap-4 text-center",children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-xl bg-primary/20 text-primary transition-colors group-hover:bg-primary/30",children:e.jsx(a.icon,{className:"h-6 w-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-semibold text-foreground",children:a.label}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:a.description})]})]})},a.to))})]})}export{P 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.