(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1133],{39033:(e,s,t)=>{Promise.resolve().then(t.bind(t,49110))},49110:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>w});var a=t(73365),r=t(1521),n=t(47736),l=t(85002),i=t(10580),d=t(62463),o=t(69673),c=t(75878);let h=[{name:"Doctors",value:120},{name:"Patients",value:350},{name:"Pharmacies",value:40},{name:"Labs",value:30},{name:"Admins",value:10}],x=["#0088FE","#00C49F","#FFBB28","#FF8042","#8884d8"];function m(){return(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-md",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-2",children:"User Role Distribution"}),(0,a.jsx)(n.u,{width:"100%",height:250,children:(0,a.jsxs)(l.r,{children:[(0,a.jsx)(i.F,{data:h,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,label:!0,children:h.map((e,s)=>(0,a.jsx)(d.f,{fill:x[s%x.length]},"cell-".concat(s)))}),(0,a.jsx)(o.m,{}),(0,a.jsx)(c.s,{})]})})]})}function u(){return(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-md",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-2",children:"Consultation Summary"}),(0,a.jsxs)("p",{className:"text-gray-600",children:["Total Consultations: ",(0,a.jsx)("strong",{children:540})]}),(0,a.jsxs)("p",{className:"text-gray-600",children:["Monthly Average: ",(0,a.jsx)("strong",{children:45})]}),(0,a.jsxs)("p",{className:"mt-2 text-sm text-gray-500",children:["Updated on: ",new Date().toLocaleDateString()]})]})}var j=t(8468),g=t(68238),b=t(733),f=t(85330),v=t(89122);let p=[{month:"Jan",activeUsers:100},{month:"Feb",activeUsers:120},{month:"Mar",activeUsers:180},{month:"Apr",activeUsers:250},{month:"May",activeUsers:300}];function y(){return(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-md mt-4",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-2",children:"Active Users Per Month"}),(0,a.jsx)(n.u,{width:"100%",height:300,children:(0,a.jsxs)(j.b,{data:p,children:[(0,a.jsx)(g.d,{strokeDasharray:"3 3"}),(0,a.jsx)(b.W,{dataKey:"month"}),(0,a.jsx)(f.h,{}),(0,a.jsx)(o.m,{}),(0,a.jsx)(v.N,{type:"monotone",dataKey:"activeUsers",stroke:"#3b82f6",strokeWidth:2})]})})]})}function N(){return(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-md",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-2",children:"Download Reports"}),(0,a.jsx)("p",{className:"text-gray-600 mb-4",children:"Export reports in PDF or Excel formats."}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded text-sm",children:"Download PDF"}),(0,a.jsx)("button",{className:"bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded text-sm",children:"Download Excel"})]})]})}function w(){let[e,s]=(0,r.useState)(!1);return(0,a.jsx)("div",{className:"flex min-h-screen bg-gray-100 text-black",children:(0,a.jsx)("div",{className:"flex flex-col flex-1 w-full",children:(0,a.jsxs)("main",{className:"p-4 space-y-6",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold",children:"Reports & Analytics"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(m,{}),(0,a.jsx)(u,{})]}),(0,a.jsx)(y,{}),(0,a.jsx)(N,{})]})})})}},74584:(e,s,t)=>{"use strict";function a(){for(var e,s,t=0,a="",r=arguments.length;t<r;t++)(e=arguments[t])&&(s=function e(s){var t,a,r="";if("string"==typeof s||"number"==typeof s)r+=s;else if("object"==typeof s)if(Array.isArray(s)){var n=s.length;for(t=0;t<n;t++)s[t]&&(a=e(s[t]))&&(r&&(r+=" "),r+=a)}else for(a in s)s[a]&&(r&&(r+=" "),r+=a);return r}(e))&&(a&&(a+=" "),a+=s);return a}t.d(s,{$:()=>a,A:()=>r});let r=a}},e=>{var s=s=>e(e.s=s);e.O(0,[6405,5002,8468,2347,4870,7358],()=>s(39033)),_N_E=e.O()}]);