PageSourceSearch

https://nvntory-mgm.vercel.app/_next/static/chunks/app/(authenticated)/reports/page-75f799a9b3868300.js

js nvntory-mgm.vercel.app collected 2026-10-03 07:26:14 UTC 14,131 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4427],{1630:(e,t,r)=>{"use strict";r.d(t,{StockDistributionChart:()=>x});var s=r(95155),a=r(1728),l=r(80865),i=r(53201),n=r(67389),d=r(65671),o=r(96647);let c=["#0088FE","#00C49F","#FFBB28","#FF8042","#8884d8","#82ca9d"];function x({data:e}){return(0,s.jsxs)("div",{className:"col-span-1 rounded-2xl border border-white/5 bg-white/5 backdrop-blur-sm overflow-hidden shadow-xl p-4 sm:p-6",children:[(0,s.jsxs)("div",{className:"mb-4 sm:mb-6",children:[(0,s.jsx)("h3",{className:"text-base sm:text-lg font-semibold text-white/90",children:"Stock Distribution"}),(0,s.jsx)("p",{className:"text-xs sm:text-sm text-slate-400",children:"By Category"})]}),(0,s.jsx)("div",{className:"h-[240px] sm:h-[300px]",children:(0,s.jsx)(a.u,{width:"100%",height:"100%",minWidth:1,minHeight:1,children:(0,s.jsxs)(l.r,{children:[(0,s.jsx)(i.Fq,{data:e,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:5,dataKey:"value",stroke:"none",children:e.map((e,t)=>(0,s.jsx)(n.f,{fill:c[t%c.length]},`cell-${t}`))}),(0,s.jsx)(d.m,{contentStyle:{backgroundColor:"#0f172a",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 4px 20px rgba(0,0,0,0.5)",color:"#f8fafc"},itemStyle:{color:"#f8fafc"}}),(0,s.jsx)(o.s,{verticalAlign:"bottom",height:36,iconType:"circle"})]})})})]})}},24770:(e,t,r)=>{"use strict";r.d(t,{LowStockTable:()=>n});var s=r(95155),a=r(69613),l=r(45160),i=r(41585);function n({items:e}){return(0,s.jsxs)("div",{className:"rounded-2xl border border-white/5 bg-white/5 backdrop-blur-sm overflow-hidden shadow-xl flex flex-col h-full",children:[(0,s.jsxs)("div",{className:"p-6 border-b border-white/5 bg-white/5 flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 bg-red-500/10 rounded-lg border border-red-500/20",children:(0,s.jsx)(i.A,{className:"h-5 w-5 text-red-500"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-white/90",children:"Low Stock Alerts"})]}),(0,s.jsx)("div",{className:"p-0 flex-1",children:0===e.length?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-slate-500",children:[(0,s.jsx)(i.A,{className:"h-10 w-10 opacity-20 mb-3"}),(0,s.jsx)("p",{className:"text-sm font-medium text-slate-400",children:"All items are well-stocked! \uD83C\uDF89"})]}):(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)(a.Table,{children:[(0,s.jsx)(a.TableHeader,{className:"bg-white/5",children:(0,s.jsxs)(a.TableRow,{className:"border-white/5 hover:bg-transparent",children:[(0,s.jsx)(a.TableHead,{className:"text-slate-400 pl-6",children:"Item"}),(0,s.jsx)(a.TableHead,{className:"text-right text-slate-400",children:"Current"}),(0,s.jsx)(a.TableHead,{className:"text-right text-slate-400",children:"Min"}),(0,s.jsx)(a.TableHead,{className:"text-slate-400 pr-6",children:"Status"})]})}),(0,s.jsx)(a.TableBody,{children:e.map((e,t)=>(0,s.jsxs)(a.TableRow,{className:"border-white/5 hover:bg-white/5 transition-colors",children:[(0,s.jsx)(a.TableCell,{className:"font-medium text-slate-200 pl-6 max-w-[150px] truncate",title:e.name,children:e.name}),(0,s.jsxs)(a.TableCell,{className:"text-right text-slate-400 font-mono",children:[e.current_stock," ",(0,s.jsx)("span",{className:"text-slate-600 text-xs",children:e.unit})]}),(0,s.jsxs)(a.TableCell,{className:"text-right text-slate-400 font-mono",children:[e.min_stock," ",(0,s.jsx)("span",{className:"text-slate-600 text-xs",children:e.unit})]}),(0,s.jsx)(a.TableCell,{className:"pr-6",children:(0,s.jsx)(l.E,{variant:0===e.current_stock?"destructive":"secondary",className:0===e.current_stock?"bg-red-500/10 text-red-400 border-red-500/20 hover:bg-red-500/20 border":"bg-amber-500/10 text-amber-400 border-amber-500/20 hover:bg-amber-500/20 border",children:0===e.current_stock?"Out of Stock":"Low"})})]},t))})]})})})]})}},40980:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var s=r(29722),a=r(622);function l(...e){return(0,a.QP)((0,s.$)(e))}},45160:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var s=r(95155);r(12115);var a=r(42442),l=r(18460),i=r(40980);let n=(0,l.F)("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function d({className:e,variant:t,asChild:r=!1,...l}){let d=r?a.DX:"span";return(0,s.jsx)(d,{"data-slot":"badge",className:(0,i.cn)(n({variant:t}),e),...l})}},49652:(e,t,r)=>{"use strict";r.d(t,{SummaryCard:()=>h});var s=r(95155),a=r(24642),l=r(7810),i=r(44071),n=r(67514),d=r(41585),o=r(76498),c=r(89123),x=r(67899);let b={package:a.A,users:l.A,trendingUp:i.A,trendingDown:n.A,alertTriangle:d.A,dollarSign:o.A,barChart:c.A,shoppingCart:x.A};function h({title:e,value:t,subtitle:r,icon:a,trend:l}){let d=b[a],o=(()=>{switch(a){case"package":case"trendingUp":default:return"bg-emerald-500/10 text-emerald-400 border-emerald-500/20";case"trendingDown":return"bg-rose-500/10 text-rose-400 border-rose-500/20";case"alertTriangle":return"bg-amber-500/10 text-amber-400 border-amber-500/20"}})();return(0,s.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-white/10 bg-[#111613] backdrop-blur-sm shadow-[0_10px_30px_-10px_rgba(0,0,0,0.6)] p-6 hover:border-emerald-500/30 transition-all duration-300 group",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between pb-4",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-slate-400 group-hover:text-slate-200 transition-colors",children:e}),(0,s.jsx)("div",{className:`p-2.5 rounded-xl ${o} shadow-lg shadow-black/20`,children:(0,s.jsx)(d,{className:"h-4 w-4"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-2xl font-bold text-white tracking-tight truncate",title:String(t),children:t}),r&&(0,s.jsx)("p",{className:"text-xs text-slate-500 mt-1",children:r}),l&&(0,s.jsxs)("div",{className:`flex items-center text-xs mt-3 font-medium ${"down"===l?"text-red-400 bg-red-500/10 w-fit px-2 py-1 rounded-lg border border-red-500/20":"text-emerald-400 bg-emerald-500/10 w-fit px-2 py-1 rounded-lg border border-emerald-500/20"}`,children:["down"===l?(0,s.jsx)(n.A,{className:"h-3 w-3 mr-1.5"}):(0,s.jsx)(i.A,{className:"h-3 w-3 mr-1.5"}),"down"===l?"Needs Attention":"On Track"]})]})]})}},59407:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,98500,23)),Promise.resolve().then(r.bind(r,24770)),Promise.resolve().then(r.bind(r,85202)),Promise.resolve().then(r.bind(r,1630)),Promise.resolve().then(r.bind(r,49652)),Promise.resolve().then(r.bind(r,81107)),Promise.resolve().then(r.bind(r,89239))},69613:(e,t,r)=>{"use strict";r.d(t,{Table:()=>l,TableBody:()=>n,TableCell:()=>c,TableHead:()=>o,TableHeader:()=>i,TableRow:()=>d});var s=r(95155);r(12115);var a=r(40980);function l({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,s.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...t})})}function i({className:e,...t}){return(0,s.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...t})}function n({className:e,...t}){return(0,s.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...t})}function d({className:e,...t}){return(0,s.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function o({className:e,...t}){return(0,s.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function c({className:e,...t}){return(0,s.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}},81107:(e,t,r)=>{"use strict";r.d(t,{TopItemsTable:()=>n});var s=r(95155),a=r(69613),l=r(44071),i=r(67514);function n({title:e,items:t,type:r}){let n="in"===r?l.A:i.A,d="in"===r?"text-green-500":"text-red-500";return(0,s.jsxs)("div",{className:"rounded-2xl border border-white/5 bg-white/5 backdrop-blur-sm overflow-hidden shadow-xl flex flex-col h-full",children:[(0,s.jsxs)("div",{className:"p-6 border-b border-white/5 bg-white/5 flex items-center gap-3",children:[(0,s.jsx)("div",{className:`p-2 rounded-lg border ${"in"===r?"bg-emerald-500/10 border-emerald-500/20":"bg-orange-500/10 border-orange-500/20"}`,children:(0,s.jsx)(n,{className:`h-5 w-5 ${d}`})}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-white/90",children:e})]}),(0,s.jsx)("div",{className:"p-0 flex-1",children:0===t.length?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-slate-500",children:[(0,s.jsx)(n,{className:"h-10 w-10 opacity-20 mb-3"}),(0,s.jsx)("p",{className:"text-sm font-medium text-slate-400",children:"No data available"})]}):(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)(a.Table,{children:[(0,s.jsx)(a.TableHeader,{className:"bg-white/5",children:(0,s.jsxs)(a.TableRow,{className:"border-white/5 hover:bg-transparent",children:[(0,s.jsx)(a.TableHead,{className:"w-[50px] pl-6 text-slate-400",children:"#"}),(0,s.jsx)(a.TableHead,{className:"text-slate-400",children:"Item"}),(0,s.jsx)(a.TableHead,{className:"text-right text-slate-400 pr-6",children:"Quantity"})]})}),(0,s.jsx)(a.TableBody,{children:t.map((e,t)=>(0,s.jsxs)(a.TableRow,{className:"border-white/5 hover:bg-white/5 transition-colors",children:[(0,s.jsx)(a.TableCell,{className:"font-bold text-slate-500 pl-6",children:t+1}),(0,s.jsx)(a.TableCell,{className:"text-slate-200 font-medium max-w-[150px] truncate",title:e.name,children:e.name}),(0,s.jsxs)(a.TableCell,{className:`text-right font-mono pr-6 ${d}`,children:[e.total," ",(0,s.jsx)("span",{className:"text-slate-600 text-xs ml-1",children:e.unit})]})]},t))})]})})})]})}},85202:(e,t,r)=>{"use strict";r.d(t,{MovementTrendChart:()=>b});var s=r(95155),a=r(1728),l=r(48035),i=r(28408),n=r(32539),d=r(59656),o=r(65671),c=r(96647),x=r(54945);function b({data:e}){return(0,s.jsxs)("div",{className:"col-span-1 lg:col-span-2 rounded-2xl border border-white/5 bg-white/5 backdrop-blur-sm overflow-hidden shadow-xl p-4 sm:p-6",children:[(0,s.jsxs)("div",{className:"mb-4 sm:mb-6",children:[(0,s.jsx)("h3",{className:"text-base sm:text-lg font-semibold text-white/90",children:"Movement Trends"}),(0,s.jsx)("p",{className:"text-xs sm:text-sm text-slate-400",children:"Stock In vs Stock Out (Last 7 Days)"})]}),(0,s.jsx)("div",{className:"h-[240px] sm:h-[300px] w-full",children:(0,s.jsx)(a.u,{width:"100%",height:"100%",minWidth:1,minHeight:1,children:(0,s.jsxs)(l.E,{data:e,margin:{top:10,right:10,left:-20,bottom:0},barGap:2,children:[(0,s.jsx)(i.d,{strokeDasharray:"3 3",vertical:!1,stroke:"rgba(255,255,255,0.05)"}
1),(0,s.jsx)(n.W,{dataKey:"date",tickLine:!1,axisLine:!1,tick:{fontSize:11,fill:"#64748b"},dy:10}),(0,s.jsx)(d.h,{tickLine:!1,axisLine:!1,tick:{fontSize:11,fill:"#64748b"}}),(0,s.jsx)(o.m,{contentStyle:{backgroundColor:"#0f172a",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 4px 20px rgba(0,0,0,0.5)",color:"#f8fafc",fontSize:"12px"},cursor:{fill:"rgba(255,255,255,0.05)"}}),(0,s.jsx)(c.s,{wrapperStyle:{paddingTop:"16px",fontSize:"12px"}}),(0,s.jsx)(x.yP,{dataKey:"in",name:"Stock In",fill:"#10b981",radius:[4,4,0,0],maxBarSize:24,className:"drop-shadow-sm"}),(0,s.jsx)(x.yP,{dataKey:"out",name:"Stock Out",fill:"#ef4444",radius:[4,4,0,0],maxBarSize:24,className:"drop-shadow-sm"})]})})})]})}},89239:(e,t,r)=>{"use strict";r.d(t,{Button:()=>d,r:()=>n});var s=r(95155);r(12115);var a=r(42442),l=r(18460),i=r(40980);let n=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/20",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:t,size:r,asChild:l=!1,...d}){return(l&&a.DX,l)?(0,s.jsx)(a.DX,{"data-slot":"button",className:(0,i.cn)(n({variant:t,size:r,className:e})),...d}):(0,s.jsx)("button",{"data-slot":"button",className:(0,i.cn)(n({variant:t,size:r,className:e})),...d})}}},e=>{e.O(0,[8409,8500,2196,2861,3175,593,8441,8928,7358],()=>e(e.s=59407)),_N_E=e.O()}]);

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.