Files
boc/web/_next/static/chunks/2t8asixzmzz12.js
T

1 line
6.1 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78629,e=>{"use strict";let s=(0,e.i(64828).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,s],78629)},55574,e=>{"use strict";let s=(0,e.i(64828).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,s],55574)},24396,e=>{"use strict";let s=(0,e.i(64828).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,s],24396)},63281,e=>{"use strict";var s=e.i(1624),t=e.i(34772),r=e.i(43673),l=e.i(80063),a=e.i(99395),i=e.i(55574),d=e.i(24396),c=e.i(78629);let n=[{id:"P001",name:"AMOS v3 Dashboard",status:"in-progress",progress:78,deadline:"2024-02-15",team:4,priority:"high"},{id:"P002",name:"API Gateway Migration",status:"in-progress",progress:45,deadline:"2024-03-01",team:3,priority:"high"},{id:"P003",name:"Customer Portal Redesign",status:"planning",progress:12,deadline:"2024-04-10",team:5,priority:"medium"},{id:"P004",name:"Data Warehouse Setup",status:"completed",progress:100,deadline:"2024-01-20",team:2,priority:"medium"},{id:"P005",name:"Mobile App v2",status:"in-progress",progress:62,deadline:"2024-05-01",team:6,priority:"high"}],x={"in-progress":{label:"In Progress",icon:i.Clock,color:"text-blue-600",bg:"bg-blue-50"},planning:{label:"Planning",icon:c.AlertCircle,color:"text-amber-600",bg:"bg-amber-50"},completed:{label:"Completed",icon:d.CheckCircle2,color:"text-emerald-600",bg:"bg-emerald-50"}},o={high:"bg-red-50 text-red-700 border-red-200",medium:"bg-amber-50 text-amber-700 border-amber-200",low:"bg-slate-50 text-slate-600 border-slate-200"};e.s(["default",0,function(){let e=n.filter(e=>"in-progress"===e.status).length,c=n.filter(e=>"completed"===e.status).length;return(0,s.jsx)(t.DashboardShell,{children:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-xl font-bold text-[#111827]",children:"Projects"}),(0,s.jsx)("p",{className:"text-sm text-[#6B7280] mt-0.5",children:"Project management and tracking"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,s.jsx)(r.Card,{className:"p-5 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-xl bg-blue-50 flex items-center justify-center",children:(0,s.jsx)(a.FolderKanban,{className:"w-5 h-5 text-blue-600"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs text-[#6B7280] uppercase tracking-wider",children:"Total Projects"}),(0,s.jsx)("p",{className:"text-xl font-bold text-[#111827]",children:n.length})]})]})}),(0,s.jsx)(r.Card,{className:"p-5 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-xl bg-amber-50 flex items-center justify-center",children:(0,s.jsx)(i.Clock,{className:"w-5 h-5 text-amber-600"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs text-[#6B7280] uppercase tracking-wider",children:"In Progress"}),(0,s.jsx)("p",{className:"text-xl font-bold text-[#111827]",children:e})]})]})}),(0,s.jsx)(r.Card,{className:"p-5 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-xl bg-emerald-50 flex items-center justify-center",children:(0,s.jsx)(d.CheckCircle2,{className:"w-5 h-5 text-emerald-600"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs text-[#6B7280] uppercase tracking-wider",children:"Completed"}),(0,s.jsx)("p",{className:"text-xl font-bold text-[#111827]",children:c})]})]})})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:n.map(e=>{let t=x[e.status],a=t.icon;return(0,s.jsxs)(r.Card,{className:"p-5 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-[#111827]",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1.5",children:[(0,s.jsxs)("div",{className:`flex items-center gap-1 px-2 py-0.5 rounded-lg ${t.bg}`,children:[(0,s.jsx)(a,{className:`w-3 h-3 ${t.color}`}),(0,s.jsx)("span",{className:`text-[10px] font-semibold ${t.color}`,children:t.label})]}),(0,s.jsx)(l.Badge,{variant:"outline",className:`${o[e.priority]} text-[10px] font-semibold uppercase rounded-full`,children:e.priority})]})]}),(0,s.jsx)("span",{className:"text-xs text-[#9CA3AF]",children:e.deadline})]}),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-[#6B7280]",children:"Progress"}),(0,s.jsxs)("span",{className:"text-xs font-semibold text-[#111827]",children:[e.progress,"%"]})]}),(0,s.jsx)("div",{className:"h-2 bg-[#F3F4F6] rounded-full overflow-hidden",children:(0,s.jsx)("div",{className:"h-full bg-[#2563EB] rounded-full transition-all duration-500",style:{width:`${e.progress}%`}})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-4",children:[(0,s.jsxs)("div",{className:"flex -space-x-2",children:[Array.from({length:Math.min(e.team,4)}).map((e,t)=>(0,s.jsx)("div",{className:"w-7 h-7 rounded-full bg-[#1E3A5F] border-2 border-white flex items-center justify-center text-white text-[10px] font-bold",children:String.fromCharCode(65+t)},t)),e.team>4&&(0,s.jsxs)("div",{className:"w-7 h-7 rounded-full bg-[#F3F4F6] border-2 border-white flex items-center justify-center text-[10px] font-medium text-[#6B7280]",children:["+",e.team-4]})]}),(0,s.jsxs)("span",{className:"text-xs text-[#6B7280]",children:[e.team," team members"]})]})]},e.id)})})]})})}])}]);