PageSourceSearch

https://vexsea.com.br/assets/intranet-bCWEGEb9.js

js vexsea.com.br collected 2026-10-09 22:05:33 UTC 7,835 bytes, 1 lines download raw bytes

1import{c as k,q as L,B as O,r as b,s as d,F as f,C as _,E as I,U as g,G as R,j as e,L as n,M as T,b as j,O as z}from"./index-DSvbeKid.js";import{u as A}from"./useRouterState-BkWzUCBE.js";import{v}from"./vexsea-logo-white.png.asset-DktRFCAx.js";import{N,T as w}from"./NotificationBell-C6UVXh6K.js";import{B as l}from"./button-DTPnYqZk.js";import{U as F}from"./UserAvatar-BRDoXE9x.js";import{S as U}from"./scroll-area-DOjA6aW1.js";import{u as K}from"./useQuery-CsiGybrw.js";import{B as E}from"./badge-BT2dOzRh.js";import{S as y,a as P,b as V}from"./sheet-CTvwb6R8.js";import{H as $,L as D}from"./list-checks-F37bNXeE.js";import{C as G}from"./calendar-days-DKN7t_xL.js";import{L as Q}from"./library-BUjlF-6j.js";import{N as W}from"./network-DUepDRyH.js";import{C as J}from"./clock-Cl_5Xm1X.js";import{C as X}from"./clipboard-list-D0yCR4rT.js";import{H as Y}from"./headphones-D99tFE4X.js";import{H as Z}from"./heart-handshake-D91SUTw9.js";import{F as ee}from"./folder-open-BK3bkWzU.js";import{B as ae}from"./building-2-BCXjkW4u.js";import{B as te}from"./briefcase-HR7IQWwb.js";import{U as se}from"./user-cog-WRM6B_Fq.js";import{K as re}from"./key-round-DpFWzyNn.js";import{L as oe}from"./log-out-Be4TcO7T.js";import{M as ie}from"./menu-Boszopck.js";import"./ThemeProvider-cp0iDbpX.js";import"./popover-DqLv74QZ.js";import"./index-3YZJCrD0.js";import"./index-DupiUOyZ.js";import"./inbox-B8QRHOcC.js";import"./bell-B5k-ogQG.js";import"./index-CyznjoJ4.js";import"./index-BCFrpiAh.js";const ne=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],le=k("chart-column",ne);const ce=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],me=k("timer",ce);function de(){const{profile:s,isRH:C,isGestor:i,isAdmin:q,signOut:M,user:r}=L(),B=O(),c=A({select:t=>t.location.pathname}),m=K({queryKey:["rh-notif-unread",r?.id],enabled:!!r,queryFn:async()=>{const{count:t}=await d.from("rh_notifications").select("id",{count:"exact",head:!0}).eq("user_id",r.id).eq("lida",!1);return t??0}});b.useEffect(()=>{if(!r)return;const t=d.channel(`rhn-${r.id}`).on("postgres_changes",{event:"*",schema:"public",table:"rh_notifications",filter:`user_id=eq.${r.id}`},()=>m.refetch()).subscribe();return()=>{d.removeChannel(t)}},[r,m]);const S=[{label:"Geral",items:[{to:"/intranet",label:"Início",icon:$},{to:"/intranet/dashboard",label:"Dashboard",icon:le,show:i},{to:"/intranet/calendario",label:"Calendário",icon:G},{to:"/intranet/wiki",label:"Wiki",icon:Q},{to:"/intranet/hierarquia",label:"Hierarquia",icon:W}]},{label:"Ponto",items:[{to:"/intranet/ponto",label:"Meu ponto",icon:J},{to:"/intranet/ponto/equipe",label:"Ajustes da equipe",icon:me,show:i}]},{label:"RH",items:[{to:"/intranet/solicitar",label:"Nova solicitação",icon:X}
1,{to:"/intranet/minhas",label:"Minhas solicitações",icon:f},{to:"/intranet/tickets",label:"Tickets RH",icon:Y,badge:m.data},{to:"/intranet/avisos",label:"Mural de avisos",icon:_},{to:"/intranet/beneficios",label:"Benefícios",icon:Z},{to:"/intranet/documentos",label:"Documentos",icon:I},{to:"/intranet/onboarding",label:"Boas-vindas",icon:D},{to:"/intranet/equipe",label:"Minha equipe",icon:g,show:i},{to:"/intranet/prontuarios",label:"Prontuários",icon:ee,show:i},{to:"/intranet/rh",label:"Painel RH",icon:ae,show:C}]},{label:"Kanban",items:[{to:"/intranet/kanban",label:"Meus quadros",icon:R},{to:"/intranet/kanban/compartilhados",label:"Compartilhados comigo",icon:f},{to:"/intranet/kanban/time",label:"Quadros do time",icon:g,show:i}]},{label:"Onboarding clientes",show:i,items:[{to:"/intranet/clientes",label:"Clientes",icon:te}]},{label:"Sistema",show:q,items:[{to:"/admin",label:"Administração",icon:se}]}],[h,o]=b.useState(!1),p=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-4 py-4 border-b border-sidebar-border flex items-center justify-between",style:{background:"var(--vx-gradient)"},children:[e.jsxs(n,{to:"/intranet",onClick:()=>o(!1),className:"flex items-center gap-2",children:[e.jsx("img",{src:v.url,alt:"Vexsea",className:"h-6 w-auto"}),e.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] text-white/70",children:"Intranet"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(N,{className:"text-white hover:bg-white/10"}),e.jsx(w,{className:"text-white hover:bg-white/10"})]})]}),e.jsx("div",{className:"p-3",children:e.jsx(l,{asChild:!0,size:"sm",variant:"outline",className:"w-full justify-start",onClick:()=>o(!1),children:e.jsxs(n,{to:"/app",children:[e.jsx(T,{className:"w-4 h-4 mr-2"})," Ir para o chat"]})})}),e.jsx(U,{className:"flex-1",children:e.jsx("nav",{className:"px-2 pb-4 space-y-5",children:S.filter(t=>t.show!==!1).map(t=>{const x=t.items.filter(a=>a.show!==!1);return x.length===0?null:e.jsxs("div",{children:[e.jsx("div",{className:"px-3 mb-1.5 text-[11px] font-bold uppercase tracking-[0.14em] text-sidebar-foreground/90 border-l-2 border-primary pl-2",children:t.label}),e.jsx("div",{className:"space-y-1",children:x.map(a=>{const u=c===a.to||a.to!=="/intranet"&&c===a.to||a.to!=="/intranet"&&c.startsWith(a.to+"/"),H=a.icon;return e.jsxs(n,{to:a.to,onClick:()=>o(!1),className:j("group flex items-center gap-2.5 px-3 py-2 rounded-md text-sm font-medium transition-colors","text-sidebar-foreground/85 hover:bg-sidebar-accent hover:text-sidebar-foreground",u&&"bg-primary/15 text-primary border-l-2 border-primary pl-[10px]"),children:[e.jsx(H,{className:j("w-4 h-4 shrink-0",u?"text-primary":"text-sidebar-foreground/70 group-hover:text-sidebar-foreground")}),e.jsx("span",{className:"flex-1 truncate",children:a.label}),a.badge&&a.badge>0?e.jsx(E,{className:"h-5 px-1.5 bg-primary text-primary-foreground",children:a.badge}):null]},a.to)})})]},t.label)})})}),e.jsxs("div",{className:"border-t p-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[s&&e.jsx(F,{userId:s.id,nome:s.nome,fotoPath:s.foto_url,size:"sm"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-medium truncate",children:s?.nome}),e.jsxs("div",{className:"text-xs text-muted-foreground truncate",children:[s?.cargo?`${s.cargo} · `:"",s?.departamento]})]})]}),e.jsx(l,{asChild:!0,size:"sm",variant:"ghost",className:"w-full justify-start",onClick:()=>o(!1),children:e.jsxs(n,{to:"/conta",children:[e.jsx(re,{className:"w-4 h-4 mr-2"})," Minha conta"]})}),e.jsxs(l,{size:"sm",variant:"ghost",className:"w-full justify-start",onClick:async()=>{o(!1),await M(),B({to:"/auth"})},children:[e.jsx(oe,{className:"w-4 h-4 mr-2"})," Sair"]})]})]});return e.jsxs("div",{className:"flex h-screen bg-background",children:[e.jsx("aside",{className:"hidden md:flex w-64 shrink-0 border-r bg-sidebar text-sidebar-foreground flex-col",children:p}),e.jsx(y,{open:h,onOpenChange:o,children:e.jsx(P,{side:"left",className:"p-0 w-72 bg-sidebar text-sidebar-foreground flex flex-col",children:p})}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[e.jsxs("div",{className:"md:hidden border-b border-border px-3 py-2 flex items-center gap-2",style:{background:"var(--vx-gradient)"},children:[e.jsx(y,{open:h,onOpenChange:o,children:e.jsx(V,{asChild:!0,children:e.jsx(l,{variant:"ghost",size:"icon",className:"text-white hover:bg-white/10",children:e.jsx(ie,{className:"w-5 h-5"})})})}),e.jsx("img",{src:v.url,alt:"Vexsea",className:"h-5 w-auto"}),e.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] text-white/70 flex-1",children:"Intranet"}),e.jsx(N,{className:"text-white hover:bg-white/10"}),e.jsx(w,{className:"text-white hover:bg-white/10"})]}),e.jsx("main",{className:"flex-1 min-w-0 overflow-auto",children:e.jsx(z,{})})]})]})}const $e=de;export{$e as component};

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.