PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/admin/dashboard-54be232ed7781547.js

js samugiken.com collected 2026-10-07 01:50:42 UTC 5,141 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9189],{66305:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/dashboard",function(){return s(22135)}])},85842:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(35082).Z)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},82670:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(35082).Z)("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]])},72818:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(35082).Z)("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]])},22135:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return f},default:function(){return y}});var r=s(52676),n=s(49810),a=s(67310),d=s(69834),i=s(52043),l=s.n(i),o=s(5409);let c=()=>o.Z.get("/admin/dashboard/stats");var u=s(62581),m=s(27026),x=s.n(m),h=s(82670),v=s(72818),b=s(85842),f=!0,y=e=>{var t,s,i,o,m,f,y,g,N;let{user:j}=e,p=(0,d.a)({queryKey:["admin","dashboard","stats"],queryFn:async()=>(await c()).data}),w=p.isLoading?"...":p.isError?"-":null!==(f=null===(t=p.data)||void 0===t?void 0:t.orderStatusCounts.PROCESSING)&&void 0!==f?f:0,k=p.isLoading?"...":p.isError?"-":null!==(y=null===(s=p.data)||void 0===s?void 0:s.orderStatusCounts.SHIPPED)&&void 0!==y?y:0,E=p.isLoading?"...":p.isError?"-":null!==(g=null===(i=p.data)||void 0===i?void 0:i.orderStatusCounts.DELIVERED)&&void 0!==g?g:0,Z=null!==(N=null===(m=p.data)||void 0===m?void 0:null===(o=m.monthlyRevenue)||void 0===o?void 0:o.map(e=>{var t;return{month:l()("".concat(e.month,"-01")).format("MMM YYYY"),revenue:Number(null!==(t=e.revenue)&&void 0!==t?t:0)}}))&&void 0!==N?N:[];return(0,r.jsx)(n.Z,{user:j,activeMenu:["dashboard"],children:(0,r.jsxs)("div",{className:"p-4 bg-white rounded-xl md:p-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[(0,r.jsxs)(x(),{href:"".concat(u.Z.ORDER,"?status=PROCESSING"),className:"p-5 no-underline bg-blue-50 rounded-lg border border-blue-100 transition hover:shadow-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-blue-800",children:"Processing Orders"}),(0,r.jsx)(h.Z,{className:"w-5 h-5 text-blue-700"})]}),(0,r.jsx)("div",{className:"text-3xl font-bold text-blue-900",children:w}),(0,r.jsx)("div",{className:"mt-2 text-xs text-blue-700",children:"Click to view filtered orders"})]}),(0,r.jsxs)(x(),{href:"".concat(u.Z.ORDER,"?status=SHIPPED"),className:"p-5 no-underline bg-green-50 rounded-lg border border-green-100 transition hover:shadow-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-green-800",children:"Shipped Orders"}),(0,r.jsx)(v.Z,{className:"w-5 h-5 text-green-700"})]}),(0,r.jsx)("div",{className:"text-3xl font-bold text-green-900",children:k}),(0,r.jsx)("div",{className:"mt-2 text-xs text-green-700",children:"Click to view filtered orders"})]}),(0,r.jsxs)(x(),{href:"".concat(u.Z.ORDER,"?status=DELIVERED"),className:"p-5 no-underline bg-emerald-50 rounded-lg border border-emerald-100 transition hover:shadow-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-emerald-800",children:"Delivered Orders"}),(0,r.jsx)(b.Z,{className:"w-5 h-5 text-emerald-700"})]}),(0,r.jsx)("div",{className:"text-3xl font-bold text-emerald-900",children:E}),(0,r.jsx)("div",{className:"mt-2 text-xs text-emerald-700",children:"Click to view filtered orders"})]})]}),(0,r.jsxs)("div",{className:"p-4 mt-4 bg-white rounded-lg border border-gray-200",children:[(0,r.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,r.jsx)("h3",{className:"m-0 text-base font-semibold text-gray-800",children:"Revenue (Last 12 Months)"})}),p.isError?(0,r.jsx)("div",{className:"py-12 text-sm text-center text-red-500",children:"Failed to load revenue statistic."}):p.isLoading?(0,r.jsx)("div",{className:"py-12 text-sm text-center text-gray-500",children:"Loading revenue statistic..."}):(0,r.jsx)(a.Z,{data:Z,xField:"month",yField:"revenue",style:{stroke:"#e73042"},shape:"smooth",height:320,meta:{revenue:{alias:"Monthly Revenue (RM)"}}})]})]})})}}},function(e){e.O(0,[3623,7759,2706,5989,4237,7610,8174,9834,8051,9513,4540,928,4298,150,5934,1635,9810,2888,9774,179],function(){return e(e.s=66305)}),_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.