Files

1 line
7.0 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},44383,e=>{"use strict";var s=e.i(1624),t=e.i(34772),r=e.i(43673),a=e.i(80063),l=e.i(72207);let i=(0,e.i(64828).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);var d=e.i(55574),c=e.i(24396);let x=[{id:"T001",subject:"Login issues with SSO",customer:"Nordic Industries AB",priority:"high",status:"open",created:"2h ago",assignee:"Support Team"},{id:"T002",subject:"Invoice discrepancy",customer:"Stockholm Finance Group",priority:"medium",status:"in-progress",created:"5h ago",assignee:"Anna Lindqvist"},{id:"T003",subject:"Feature request: Export to Excel",customer:"Malmö Tech Solutions",priority:"low",status:"open",created:"1d ago",assignee:"—"},{id:"T004",subject:"API rate limit exceeded",customer:"Linköping Aerospace",priority:"high",status:"resolved",created:"3h ago",assignee:"Johan Nilsson"},{id:"T005",subject:"User onboarding help",customer:"Umeå Energy",priority:"medium",status:"in-progress",created:"8h ago",assignee:"Support Team"}],n={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"},o={open:"bg-blue-50 text-blue-700 border-blue-200","in-progress":"bg-violet-50 text-violet-700 border-violet-200",resolved:"bg-emerald-50 text-emerald-700 border-emerald-200"};e.s(["default",0,function(){let e=x.filter(e=>"open"===e.status).length,p=x.filter(e=>"in-progress"===e.status).length,m=x.filter(e=>"resolved"===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:"Support"}),(0,s.jsx)("p",{className:"text-sm text-[#6B7280] mt-0.5",children:"Customer support tickets and issues"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-4 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)(l.HeadphonesIcon,{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 Tickets"}),(0,s.jsx)("p",{className:"text-xl font-bold text-[#111827]",children:x.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-blue-50 flex items-center justify-center",children:(0,s.jsx)(i,{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:"Open"}),(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-violet-50 flex items-center justify-center",children:(0,s.jsx)(d.Clock,{className:"w-5 h-5 text-violet-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:p})]})]})}),(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)(c.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:"Resolved"}),(0,s.jsx)("p",{className:"text-xl font-bold text-[#111827]",children:m})]})]})})]}),(0,s.jsxs)(r.Card,{className:"bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)] overflow-hidden",children:[(0,s.jsx)("div",{className:"p-5 border-b border-[#E5E7EB]",children:(0,s.jsx)("h3",{className:"text-sm font-semibold text-[#111827]",children:"Support Tickets"})}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-[#E5E7EB]",children:[(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Ticket"}),(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Customer"}),(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Priority"}),(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Status"}),(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Assignee"}),(0,s.jsx)("th",{className:"text-left text-xs font-semibold text-[#6B7280] uppercase tracking-wider px-5 py-3",children:"Created"})]})}),(0,s.jsx)("tbody",{children:x.map(e=>(0,s.jsxs)("tr",{className:"border-b border-[#E5E7EB]/50 hover:bg-[#F7F9FC] transition-colors",children:[(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs font-mono text-[#9CA3AF]",children:e.id}),(0,s.jsx)("span",{className:"text-sm font-medium text-[#111827]",children:e.subject})]})}),(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsx)("span",{className:"text-sm text-[#6B7280]",children:e.customer})}),(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsx)(a.Badge,{variant:"outline",className:`${n[e.priority]} text-[10px] font-semibold uppercase rounded-full`,children:e.priority})}),(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsx)(a.Badge,{variant:"outline",className:`${o[e.status]} text-[10px] font-semibold uppercase rounded-full`,children:e.status})}),(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsx)("span",{className:"text-sm text-[#6B7280]",children:e.assignee})}),(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsx)("span",{className:"text-xs text-[#6B7280]",children:e.created})})]},e.id))})]})})]})]})})}],44383)}]);