1import{g as p,u as h,a as x,r as g,j as s,L as u,T as j,B as a,h as f,A as N,C as w}from"./index-BrlxVnbf.js";import{u as v}from"./useUserProfile-CS8qNrNe.js";import{r as k}from"./resolveDashboardKind-CQZKAg4R.js";import b from"./CalendarioOperacional-DI3QnVT3.js";import{L as y}from"./layout-grid-BQQlJnmw.js";import{L}from"./log-out-DJrtZCDM.js";import"./deadlineMode-DQQ31pPR.js";import"./shippingWindow-BdWlvbrw.js";import"./dialog-BJnohoAW.js";import"./select-Bz6i9mze.js";import"./index-BdQq_4o_.js";import"./index-M6j1V6XE.js";import"./index-BQJL8QHD.js";import"./check-DvGY3tWo.js";import"./input-VaT00Dp8.js";import"./checkbox-DYEcjbvE.js";import"./xlsx-B6sNpj_1.js";import"./jspdf.plugin.autotable-BzOB_Kt5.js";import"./filter-D39EWjEU.js";import"./file-spreadsheet-AvYV2D9O.js";import"./parseISO-BGl3oHkr.js";import"./format-BS-GW2ZC.js";import"./isSameDay-CXLQHn_u.js";import"./pt-BR-BhyHXif4.js";import"./refresh-cw-quswoEcp.js";import"./isSameMonth-B0GV-g6k.js";import"./chevron-left-7cI6iAJy.js";import"./chevron-right-BAoYsDb1.js";import"./clock-CJlspyp6.js";import"./package-BTs9eL8L.js";import"./isToday-B111guIn.js";import"./constructNow-BMouvYl3.js";
1import"./calendar-1fkeI5LD.js";import"./user-zvBPh9-6.js";import"./circle-alert-2fmRBQku.js";import"./circle-check-BJy0T5et.js";import"./endOfMonth-B8PqazUf.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const C=p("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);function ms(){const i=h(),{signOut:l}=x(),{permissions:e,fullName:o}=v(),[t,r]=g.useState("logistics_only"),n=e.canToggleLogisticsAllCases,c=e.canViewAllCasesLogistics,m=e.canFinalizeFromLogistics||e.isFullAccess,d=k(e)!=="logistics";return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-30 safe-top",children:s.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-6 py-3",children:s.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx(u,{alt:"Balper",className:"h-9 w-auto"}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("h1",{className:"text-base font-bold text-foreground tracking-tight flex items-center gap-2",children:[s.jsx(j,{className:"h-4 w-4 text-primary"})," LogÃstica"]}),s.jsxs("p",{className:"text-[11px] text-muted-foreground leading-tight truncate",children:[o?`${o} · `:"","Calendário de entregas e cronograma"]})]})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[d&&s.jsxs(a,{variant:"ghost",size:"sm",onClick:()=>f(i,"/dashboard"),className:"h-9 gap-1.5 text-muted-foreground",children:[s.jsx(N,{className:"h-4 w-4"}),s.jsx("span",{className:"hidden sm:inline",children:"Voltar"})]}),c&&s.jsxs(a,{variant:"outline",size:"sm",onClick:()=>i("/dashboard?view=full"),className:"h-9 gap-1.5",children:[s.jsx(y,{className:"h-4 w-4"}),s.jsx("span",{className:"hidden sm:inline",children:"Todos os casos / OS / chats"}),s.jsx("span",{className:"sm:hidden",children:"Todos"})]}),s.jsxs(a,{variant:"ghost",size:"sm",onClick:async()=>{await l(),i("/login")},className:"h-9 gap-1.5 text-destructive",children:[s.jsx(L,{className:"h-4 w-4"}),s.jsx("span",{className:"hidden sm:inline",children:"Sair"})]})]})]})})}),s.jsxs("main",{className:"max-w-[1400px] mx-auto px-4 sm:px-6 py-4",children:[s.jsxs(w,{className:"mb-4 p-3 flex items-center justify-between gap-3 flex-wrap",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(C,{className:"h-4 w-4"}),s.jsx("span",{children:"Casos exibidos no calendário"})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(a,{variant:t==="logistics_only"?"default":"outline",size:"sm",onClick:()=>r("logistics_only"),children:"Relevantes para LogÃstica"}),n&&s.jsx(a,{variant:t==="all"?"default":"outline",size:"sm",onClick:()=>r("all"),children:"Todos os casos"})]})]}),s.jsx(b,{filterMode:t,allowFinalize:m,hideBackButton:!0})]})]})}export{ms 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.