1import{j as e}from"./ui-vendor-B12AOeKi.js";import{e as u,r as o}from"./react-vendor-DZt7wVAJ.js";import{M as h,j,B as b,a2 as g,F as r,a4 as i}from"./index-BZo64Z7H.js";import{T as f,b as v,c as m,a as n}from"./tabs-BcL48lVI.js";import{u as N,A as R}from"./useAppDisabled-Cq6rXEPc.js";import{T}from"./ThemeToggle-jdw8Pw65.js";import{R as y}from"./ReportsManagement-FRIWGz9O.js";import{S as M}from"./ScheduledReportsDashboard-Cm0UdSN2.js";import"./charts-vendor-B6q1L48j.js";import"./supabase-vendor-dOy44Gxq.js";import"./animation-vendor-BAVy02gd.js";import"./select-B9Z9mxdV.js";import"./table-l2pq2wHy.js";import"./ReportPrintDialog-CgVIP8py.js";import"./grip-vertical-CR48rr4S.js";import"./save-Cxi2VgTj.js";import"./calendar-Coi13cMa.js";import"./startOfMonth-DfZBZCut.js";import"./endOfMonth-Nvm-8vcq.js";import"./isSameMonth-DMl9Rcgm.js";import"./differenceInCalendarMonths-iM3p2kUt.js";import"./isBefore-DXiNDavF.js";import"./isSameDay-CKSdjr0s.js";import"./addDays-ChKiAedE.js";import"./subDays-BDE3YX0d.js";import"./chevron-left-CP12o6-_.js";import"./printer-DZWorTOZ.js";import"./switch-D_kCiubG.js";import"./info-DDF6MbLL.js";import"./copy-Bjj3a7rA.js";import"./pencil-Be-dVQBC.js";import"./panels-top-left-BaBHTiTg.js";import"./skeleton-gCkZ4R6W.js";import"./circle-check-BmAvJLJ8.js";function ie(){const s=u(),a=h(),{isDisabled:p}=N("reports"),{isAdmin:l,isManager:c}
1=j(),[d,x]=o.useState("manage");o.useEffect(()=>{a&&s("/reports/mobile")},[a,s]);const t=l||c;return p?e.jsx(R,{appName:"Report Generator"}):e.jsx("div",{className:"min-h-screen bg-background p-4 md:p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(b,{onClick:()=>s("/"),variant:"outline",size:"sm",children:[e.jsx(g,{className:"h-4 w-4 mr-2"}),"Main Menu"]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold",children:"Report Generator"}),e.jsx("p",{className:"text-muted-foreground",children:"Create and manage reports for your applications"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{}),e.jsx(r,{className:"h-8 w-8 text-primary"})]})]}),e.jsxs(f,{value:d,onValueChange:x,className:"space-y-6",children:[e.jsx(v,{children:t&&e.jsxs(e.Fragment,{children:[e.jsx(i,{componentId:"reports:builder-tab",appName:"Report Generator",componentType:"button",componentLabel:"Report Builder Tab",defaultRole:"manager",children:e.jsxs(m,{value:"manage",children:[e.jsx(r,{className:"h-4 w-4 mr-2"}),"Report Builder"]})}),e.jsx(i,{componentId:"reports:history-tab",appName:"Report Generator",componentType:"button",componentLabel:"Scheduled Reports History Tab",defaultRole:"manager",children:e.jsxs(m,{value:"history",children:[e.jsx(r,{className:"h-4 w-4 mr-2"}),"Scheduled Reports History"]})})]})}),t&&e.jsxs(e.Fragment,{children:[e.jsx(n,{value:"manage",children:e.jsx(y,{})}),e.jsx(n,{value:"history",children:e.jsx(M,{})})]})]})]})})}export{ie 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.