Meclone / _next /static /chunks /app /reports /page-3ca08d4376719bbd.js
SuriRaja's picture
Deploy static site
5637c4d
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22],{2151:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(51018).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},15873:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>N});var t=a(58081),r=a(86810),l=a(5160),d=a(78666),n=a(89181),i=a(82059),c=a(45904),o=a(2151),m=a(44770),x=a(90018),h=a(83427),f=a(62544),p=a(55058),u=a(47950),j=a.n(u);let y=[{id:"sales",title:"Sales Report",description:"Comprehensive sales analysis and trends",icon:o.A,lastGenerated:"2 hours ago",frequency:"Daily"},{id:"inventory",title:"Inventory Report",description:"Stock levels, movements, and valuation",icon:m.A,lastGenerated:"1 day ago",frequency:"Weekly"},{id:"customer",title:"Customer Analysis",description:"Customer behavior and engagement metrics",icon:x.A,lastGenerated:"3 hours ago",frequency:"Monthly"},{id:"financial",title:"Financial Summary",description:"Revenue, profit, and GST compliance",icon:h.A,lastGenerated:"5 hours ago",frequency:"Monthly"}];function N(){return(0,t.jsxs)(d.sF,{children:[(0,t.jsxs)("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b px-4",children:[(0,t.jsx)(d.x2,{className:"-ml-1"}),(0,t.jsx)(n.w,{orientation:"vertical",className:"mr-2 h-4"}),(0,t.jsx)(i.Qp,{children:(0,t.jsxs)(i.AB,{children:[(0,t.jsx)(i.J5,{children:(0,t.jsx)(i.w1,{asChild:!0,children:(0,t.jsx)(j(),{href:"/",children:"Dashboard"})})}),(0,t.jsx)(i.tH,{}),(0,t.jsx)(i.J5,{children:(0,t.jsx)(i.tJ,{children:"Reports"})})]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-4 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",children:"Reports & Analytics"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Generate and download business reports"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(c.l6,{children:[(0,t.jsx)(c.bq,{className:"w-[180px]",children:(0,t.jsx)(c.yv,{placeholder:"Select period"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"today",children:"Today"}),(0,t.jsx)(c.eb,{value:"week",children:"This Week"}),(0,t.jsx)(c.eb,{value:"month",children:"This Month"}),(0,t.jsx)(c.eb,{value:"quarter",children:"This Quarter"}),(0,t.jsx)(c.eb,{value:"year",children:"This Year"})]})]}),(0,t.jsxs)(l.$,{children:[(0,t.jsx)(f.A,{className:"mr-2 h-4 w-4"}),"Custom Report"]})]})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:gap-4 grid-cols-2 lg:grid-cols-4",children:[(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,t.jsx)(r.ZB,{className:"text-xs sm:text-sm font-medium",children:"Reports Generated"}),(0,t.jsx)(f.A,{className:"h-3 w-3 sm:h-4 sm:w-4 text-muted-foreground"})]}),(0,t.jsxs)(r.Wu,{children:[(0,t.jsx)("div",{className:"text-lg sm:text-2xl font-bold",children:"24"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"This month"})]})]}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,t.jsx)(r.ZB,{className:"text-xs sm:text-sm font-medium",children:"Data Points"}),(0,t.jsx)(h.A,{className:"h-3 w-3 sm:h-4 sm:w-4 text-muted-foreground"})]}),(0,t.jsxs)(r.Wu,{children:[(0,t.jsx)("div",{className:"text-lg sm:text-2xl font-bold",children:"1.2K"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Analyzed"})]})]}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,t.jsx)(r.ZB,{className:"text-xs sm:text-sm font-medium",children:"Automated Reports"}),(0,t.jsx)(o.A,{className:"h-3 w-3 sm:h-4 sm:w-4 text-muted-foreground"})]}),(0,t.jsxs)(r.Wu,{children:[(0,t.jsx)("div",{className:"text-lg sm:text-2xl font-bold",children:"8"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Scheduled"})]})]}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,t.jsx)(r.ZB,{className:"text-xs sm:text-sm font-medium",children:"Export Formats"}),(0,t.jsx)(p.A,{className:"h-3 w-3 sm:h-4 sm:w-4 text-muted-foreground"})]}),(0,t.jsxs)(r.Wu,{children:[(0,t.jsx)("div",{className:"text-lg sm:text-2xl font-bold",children:"3"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"PDF, Excel, CSV"})]})]})]}),(0,t.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:y.map(e=>(0,t.jsxs)(r.Zp,{children:[(0,t.jsx)(r.aR,{children:(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10",children:(0,t.jsx)(e.icon,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(r.ZB,{className:"text-base",children:e.title}),(0,t.jsx)(r.BT,{className:"text-sm",children:e.description})]})]})})}),(0,t.jsxs)(r.Wu,{children:[(0,t.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,t.jsxs)("p",{children:["Last generated: ",e.lastGenerated]}),(0,t.jsxs)("p",{children:["Frequency: ",e.frequency]})]})}),(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsxs)(l.$,{className:"flex-1",children:[(0,t.jsx)(f.A,{className:"mr-2 h-4 w-4"}),"Generate"]}),(0,t.jsxs)(l.$,{variant:"outline",className:"flex-1",children:[(0,t.jsx)(p.A,{className:"mr-2 h-4 w-4"}),"Download"]})]})]})]},e.id))}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Recent Reports"}),(0,t.jsx)(r.BT,{children:"Recently generated reports available for download"})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsx)("div",{className:"space-y-3",children:[{name:"Sales Report - January 2024",type:"PDF",size:"2.4 MB",date:"2 hours ago"},{name:"Inventory Analysis - Q4 2023",type:"Excel",size:"1.8 MB",date:"1 day ago"},{name:"Customer Engagement Report",type:"PDF",size:"3.1 MB",date:"3 days ago"},{name:"Financial Summary - December",type:"PDF",size:"1.2 MB",date:"1 week ago"}].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg border",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary/10",children:(0,t.jsx)(f.A,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-sm",children:e.name}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e.type," • ",e.size," • ",e.date]})]})]}),(0,t.jsx)(l.$,{variant:"outline",size:"sm",children:(0,t.jsx)(p.A,{className:"h-4 w-4"})})]},s))})})]})]})]})}},45904:(e,s,a)=>{"use strict";a.d(s,{bq:()=>x,eb:()=>u,gC:()=>p,l6:()=>o,yv:()=>m});var t=a(58081),r=a(82149),l=a(62450),d=a(60392),n=a(56801),i=a(76722),c=a(87687);let o=l.bL;l.YJ;let m=l.WT,x=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsxs)(l.l9,{ref:s,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[r,(0,t.jsx)(l.In,{asChild:!0,children:(0,t.jsx)(d.A,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=l.l9.displayName;let h=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.PP,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,t.jsx)(n.A,{className:"h-4 w-4"})})});h.displayName=l.PP.displayName;let f=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.wn,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,t.jsx)(d.A,{className:"h-4 w-4"})})});f.displayName=l.wn.displayName;let p=r.forwardRef((e,s)=>{let{className:a,children:r,position:d="popper",...n}=e;return(0,t.jsx)(l.ZL,{children:(0,t.jsxs)(l.UC,{ref:s,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===d&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:d,...n,children:[(0,t.jsx)(h,{}),(0,t.jsx)(l.LM,{className:(0,c.cn)("p-1","popper"===d&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(f,{})]})})});p.displayName=l.UC.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.JU,{ref:s,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...r})}).displayName=l.JU.displayName;let u=r.forwardRef((e,s)=>{let{className:a,children:r,...d}=e;return(0,t.jsxs)(l.q7,{ref:s,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.VF,{children:(0,t.jsx)(i.A,{className:"h-4 w-4"})})}),(0,t.jsx)(l.p4,{children:r})]})});u.displayName=l.q7.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.wv,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=l.wv.displayName},53867:(e,s,a)=>{Promise.resolve().then(a.bind(a,15873))},55058:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(51018).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},62544:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(51018).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},82059:(e,s,a)=>{"use strict";a.d(s,{AB:()=>c,J5:()=>o,Qp:()=>i,tH:()=>h,tJ:()=>x,w1:()=>m});var t=a(58081),r=a(82149),l=a(60830),d=a(63602),n=(a(8381),a(87687));let i=r.forwardRef((e,s)=>{let{...a}=e;return(0,t.jsx)("nav",{ref:s,"aria-label":"breadcrumb",...a})});i.displayName="Breadcrumb";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("ol",{ref:s,className:(0,n.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",a),...r})});c.displayName="BreadcrumbList";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("li",{ref:s,className:(0,n.cn)("inline-flex items-center gap-1.5",a),...r})});o.displayName="BreadcrumbItem";let m=r.forwardRef((e,s)=>{let{asChild:a,className:r,...d}=e,i=a?l.DX:"a";return(0,t.jsx)(i,{ref:s,className:(0,n.cn)("transition-colors hover:text-foreground",r),...d})});m.displayName="BreadcrumbLink";let x=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:(0,n.cn)("font-normal text-foreground",a),...r})});x.displayName="BreadcrumbPage";let h=e=>{let{children:s,className:a,...r}=e;return(0,t.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,n.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",a),...r,children:null!=s?s:(0,t.jsx)(d.A,{})})};h.displayName="BreadcrumbSeparator"},83427:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(51018).A)("ChartColumn",[["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"}]])},86810:(e,s,a)=>{"use strict";a.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>i,Zp:()=>d,aR:()=>n});var t=a(58081),r=a(82149),l=a(87687);let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r})});d.displayName="Card";let n=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...r})});n.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",a),...r})}).displayName="CardFooter"},90018:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(51018).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])}},e=>{var s=s=>e(e.s=s);e.O(0,[484,197,837,666,497,954,358],()=>s(53867)),_N_E=e.O()}]);