@burdenoff/microfe-support 2026.608.1 → 2026.624.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/support/components/NotificationToast.js +1 -1
  2. package/dist/support/components/NotificationToast.js.map +1 -1
  3. package/dist/support/components/PageLayout.js +10 -10
  4. package/dist/support/components/PageLayout.js.map +1 -1
  5. package/dist/support/components/analytics/CategoryBreakdown.js +3 -3
  6. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
  7. package/dist/support/components/analytics/MetricCard.js +1 -1
  8. package/dist/support/components/analytics/MetricCard.js.map +1 -1
  9. package/dist/support/components/analytics/PriorityBreakdown.js +3 -3
  10. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
  11. package/dist/support/components/analytics/SLAReport.js +7 -7
  12. package/dist/support/components/analytics/SLAReport.js.map +1 -1
  13. package/dist/support/components/analytics/SatisfactionDistribution.js +9 -9
  14. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
  15. package/dist/support/components/analytics/TopAgents.js +3 -3
  16. package/dist/support/components/analytics/TopAgents.js.map +1 -1
  17. package/dist/support/components/analytics/TrendChart.js +2 -2
  18. package/dist/support/components/analytics/TrendChart.js.map +1 -1
  19. package/dist/support/components/kb/ArticleForm.js +23 -23
  20. package/dist/support/components/kb/ArticleForm.js.map +1 -1
  21. package/dist/support/components/settings/CannedResponsesSettings.js +12 -12
  22. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
  23. package/dist/support/components/settings/SLAPoliciesSettings.js +12 -12
  24. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
  25. package/dist/support/components/settings/TicketCategoriesSettings.js +186 -185
  26. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  27. package/dist/support/components/tickets/AttachmentList.js +4 -4
  28. package/dist/support/components/tickets/AttachmentList.js.map +1 -1
  29. package/dist/support/components/tickets/MessageComposer.js +12 -12
  30. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  31. package/dist/support/components/tickets/MessageThread.js +6 -6
  32. package/dist/support/components/tickets/MessageThread.js.map +1 -1
  33. package/dist/support/components/tickets/TicketDetailHeader.js +4 -4
  34. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  35. package/dist/support/components/tickets/TicketHeader.js +6 -6
  36. package/dist/support/components/tickets/TicketHeader.js.map +1 -1
  37. package/dist/support/components/tickets/TicketSidebar.js +44 -44
  38. package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
  39. package/dist/support/pages/AnalyticsPage.js +2 -2
  40. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  41. package/dist/support/pages/ArticleDetailAdminPage.js +175 -181
  42. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  43. package/dist/support/pages/ArticleDetailUserPage.js +7 -7
  44. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  45. package/dist/support/pages/ContactInquiriesPage.js +5 -5
  46. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  47. package/dist/support/pages/ContactInquiryDetailPage.js +4 -4
  48. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  49. package/dist/support/pages/CreateArticlePage.js +5 -5
  50. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  51. package/dist/support/pages/CreateTicketPage.js +18 -18
  52. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  53. package/dist/support/pages/EditArticlePage.js +6 -6
  54. package/dist/support/pages/EditArticlePage.js.map +1 -1
  55. package/dist/support/pages/JobApplicationDetailPage.js +3 -3
  56. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  57. package/dist/support/pages/JobApplicationsPage.js +5 -5
  58. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  59. package/dist/support/pages/KnowledgeBaseAdminPage.js +16 -16
  60. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  61. package/dist/support/pages/KnowledgeBaseUserPage.js +15 -15
  62. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  63. package/dist/support/pages/SettingsPage.js +3 -3
  64. package/dist/support/pages/SettingsPage.js.map +1 -1
  65. package/dist/support/pages/TicketDetailAdminPage.js +8 -8
  66. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  67. package/dist/support/pages/TicketDetailUserPage.js +17 -17
  68. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  69. package/dist/support/pages/TicketListPage.js +18 -18
  70. package/dist/support/pages/TicketListPage.js.map +1 -1
  71. package/dist/support/utils/categoryColors.js +1 -1
  72. package/dist/support/utils/categoryColors.js.map +1 -1
  73. package/dist/support/utils/uiTokens.js +1 -1
  74. package/dist/support/utils/uiTokens.js.map +1 -1
  75. package/package.json +1 -1
@@ -9,7 +9,7 @@ function o({ notification: o }) {
9
9
  role: s ? "alert" : "status",
10
10
  "aria-live": s ? "assertive" : "polite",
11
11
  "aria-atomic": "true",
12
- className: `fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-300 ${c ? "bg-success/10 text-success border-success/30" : s ? "bg-error/10 text-error border-error/30" : "bg-info/10 text-info border-info/30"}`,
12
+ className: `fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200 ${c ? "bg-success/10 text-success border-success/30" : s ? "bg-error/10 text-error border-error/30" : "bg-info/10 text-info border-info/30"}`,
13
13
  children: [c ? /* @__PURE__ */ r(t, {
14
14
  size: a,
15
15
  className: "text-success",
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationToast.js","names":[],"sources":["../../../src/support/components/NotificationToast.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { AlertCircle, CheckCircle, Info } from 'lucide-react';\n\nimport type { NotificationState } from '../hooks/useNotification';\n\ninterface NotificationToastProps {\n notification: NotificationState | null;\n}\n\nconst ICON_SIZE = 20;\n\n/**\n * Shared fixed-corner toast for CreateTicketPage + TicketDetail* pages.\n *\n * ARIA: `alert` + `assertive` for errors so a screen reader interrupts; `status`\n * + `polite` for success/info so it's announced without cutting off other\n * speech. `aria-atomic` so the full message reads as one unit.\n *\n * Icon choice: `Info` for the `'info'` variant — `AlertCircle` incorrectly\n * implies failure/warning in sighted UX.\n */\nexport function NotificationToast({ notification }: NotificationToastProps): ReactElement | null {\n if (!notification) return null;\n\n const isError = notification.type === 'error';\n const isSuccess = notification.type === 'success';\n\n return (\n <div\n role={isError ? 'alert' : 'status'}\n aria-live={isError ? 'assertive' : 'polite'}\n aria-atomic=\"true\"\n className={`fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-300 ${\n isSuccess\n ? 'bg-success/10 text-success border-success/30'\n : isError\n ? 'bg-error/10 text-error border-error/30'\n : 'bg-info/10 text-info border-info/30'\n }`}\n >\n {isSuccess ? (\n <CheckCircle size={ICON_SIZE} className=\"text-success\" aria-hidden=\"true\" />\n ) : isError ? (\n <AlertCircle size={ICON_SIZE} className=\"text-error\" aria-hidden=\"true\" />\n ) : (\n <Info size={ICON_SIZE} className=\"text-info\" aria-hidden=\"true\" />\n )}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n );\n}\n"],"mappings":";;;AASA,IAAM,IAAY;AAYlB,SAAgB,EAAkB,EAAE,mBAA6D;AAC/F,KAAI,CAAC,EAAc,QAAO;CAE1B,IAAM,IAAU,EAAa,SAAS,SAChC,IAAY,EAAa,SAAS;AAExC,QACE,kBAAC,OAAD;EACE,MAAM,IAAU,UAAU;EAC1B,aAAW,IAAU,cAAc;EACnC,eAAY;EACZ,WAAW,iLACT,IACI,iDACA,IACE,2CACA;YATV,CAYG,IACC,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAe,eAAY;GAAS,CAAA,GAC1E,IACF,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAa,eAAY;GAAS,CAAA,GAE1E,kBAAC,GAAD;GAAM,MAAM;GAAW,WAAU;GAAY,eAAY;GAAS,CAAA,EAEpE,kBAAC,QAAD;GAAM,WAAU;aAAe,EAAa;GAAe,CAAA,CACvD"}
1
+ {"version":3,"file":"NotificationToast.js","names":[],"sources":["../../../src/support/components/NotificationToast.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { AlertCircle, CheckCircle, Info } from 'lucide-react';\n\nimport type { NotificationState } from '../hooks/useNotification';\n\ninterface NotificationToastProps {\n notification: NotificationState | null;\n}\n\nconst ICON_SIZE = 20;\n\n/**\n * Shared fixed-corner toast for CreateTicketPage + TicketDetail* pages.\n *\n * ARIA: `alert` + `assertive` for errors so a screen reader interrupts; `status`\n * + `polite` for success/info so it's announced without cutting off other\n * speech. `aria-atomic` so the full message reads as one unit.\n *\n * Icon choice: `Info` for the `'info'` variant — `AlertCircle` incorrectly\n * implies failure/warning in sighted UX.\n */\nexport function NotificationToast({ notification }: NotificationToastProps): ReactElement | null {\n if (!notification) return null;\n\n const isError = notification.type === 'error';\n const isSuccess = notification.type === 'success';\n\n return (\n <div\n role={isError ? 'alert' : 'status'}\n aria-live={isError ? 'assertive' : 'polite'}\n aria-atomic=\"true\"\n className={`fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200 ${\n isSuccess\n ? 'bg-success/10 text-success border-success/30'\n : isError\n ? 'bg-error/10 text-error border-error/30'\n : 'bg-info/10 text-info border-info/30'\n }`}\n >\n {isSuccess ? (\n <CheckCircle size={ICON_SIZE} className=\"text-success\" aria-hidden=\"true\" />\n ) : isError ? (\n <AlertCircle size={ICON_SIZE} className=\"text-error\" aria-hidden=\"true\" />\n ) : (\n <Info size={ICON_SIZE} className=\"text-info\" aria-hidden=\"true\" />\n )}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n );\n}\n"],"mappings":";;;AASA,IAAM,IAAY;AAYlB,SAAgB,EAAkB,EAAE,mBAA6D;AAC/F,KAAI,CAAC,EAAc,QAAO;CAE1B,IAAM,IAAU,EAAa,SAAS,SAChC,IAAY,EAAa,SAAS;AAExC,QACE,kBAAC,OAAD;EACE,MAAM,IAAU,UAAU;EAC1B,aAAW,IAAU,cAAc;EACnC,eAAY;EACZ,WAAW,iLACT,IACI,iDACA,IACE,2CACA;YATV,CAYG,IACC,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAe,eAAY;GAAS,CAAA,GAC1E,IACF,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAa,eAAY;GAAS,CAAA,GAE1E,kBAAC,GAAD;GAAM,MAAM;GAAW,WAAU;GAAY,eAAY;GAAS,CAAA,EAEpE,kBAAC,QAAD;GAAM,WAAU;aAAe,EAAa;GAAe,CAAA,CACvD"}
@@ -12,7 +12,7 @@ var r = {
12
12
  };
13
13
  function i({ children: i, title: a, subtitle: o, icon: s, headerActions: c, headerContent: l, maxWidth: u = "xl", showHeader: d = !0, className: f, contentClassName: p }) {
14
14
  return /* @__PURE__ */ t("div", {
15
- className: e("min-size-full", "px-4 sm:px-6 lg:px-8 xl:px-12", "py-6 sm:py-8 lg:py-10", "animate-in fade-in-0 slide-in-from-bottom-4 duration-500", f),
15
+ className: e("min-size-full", "px-4 sm:px-6 lg:px-8 xl:px-12", "py-6 sm:py-8 lg:py-10", "animate-in fade-in-0 slide-in-from-bottom-4 duration-200", f),
16
16
  children: /* @__PURE__ */ n("div", {
17
17
  className: e("mx-auto w-full", r[u], p),
18
18
  children: [d && (a || c) && /* @__PURE__ */ n("header", {
@@ -24,14 +24,14 @@ function i({ children: i, title: a, subtitle: o, icon: s, headerActions: c, head
24
24
  children: [(a || s) && /* @__PURE__ */ n("div", {
25
25
  className: "flex items-center gap-3",
26
26
  children: [s && /* @__PURE__ */ t("div", {
27
- className: "flex-shrink-0 p-2.5 rounded-xl bg-primary/10 text-primary",
27
+ className: "flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary",
28
28
  children: s
29
29
  }), a && /* @__PURE__ */ t("h1", {
30
- className: "text-2xl sm:text-3xl font-bold tracking-tight text-foreground",
30
+ className: "text-2xl sm:text-3xl font-bold tracking-tight text-text-primary",
31
31
  children: a
32
32
  })]
33
33
  }), o && /* @__PURE__ */ t("p", {
34
- className: "text-sm sm:text-base text-muted-foreground max-w-2xl",
34
+ className: "text-sm sm:text-base text-text-secondary max-w-2xl",
35
35
  children: o
36
36
  })]
37
37
  }), c && /* @__PURE__ */ t("div", {
@@ -51,18 +51,18 @@ function i({ children: i, title: a, subtitle: o, icon: s, headerActions: c, head
51
51
  }
52
52
  function a({ icon: r, title: i, description: a, action: o, className: s }) {
53
53
  return /* @__PURE__ */ n("div", {
54
- className: e("flex flex-col items-center justify-center", "py-12 sm:py-16 px-4", "text-center", "animate-in fade-in-0 zoom-in-95 duration-300", s),
54
+ className: e("flex flex-col items-center justify-center", "py-12 sm:py-16 px-4", "text-center", "animate-in fade-in-0 zoom-in-95 duration-200", s),
55
55
  children: [
56
56
  r && /* @__PURE__ */ t("div", {
57
- className: "mb-4 p-4 rounded-2xl bg-muted/50 text-muted-foreground",
57
+ className: "mb-4 p-4 rounded-2xl bg-bg-sunken/50 text-text-secondary",
58
58
  children: r
59
59
  }),
60
60
  /* @__PURE__ */ t("h3", {
61
- className: "text-lg font-semibold text-foreground mb-1",
61
+ className: "text-lg font-semibold text-text-primary mb-1",
62
62
  children: i
63
63
  }),
64
64
  a && /* @__PURE__ */ t("p", {
65
- className: "text-sm text-muted-foreground max-w-sm mb-4",
65
+ className: "text-sm text-text-secondary max-w-sm mb-4",
66
66
  children: a
67
67
  }),
68
68
  o
@@ -74,9 +74,9 @@ function o({ message: r = "Loading...", className: i }) {
74
74
  className: e("flex flex-col items-center justify-center py-20", i),
75
75
  children: [/* @__PURE__ */ n("div", {
76
76
  className: "relative",
77
- children: [/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-primary/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ t("div", { className: "relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin" })]
77
+ children: [/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ t("div", { className: "relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin" })]
78
78
  }), /* @__PURE__ */ t("span", {
79
- className: "mt-6 text-sm font-medium text-muted-foreground",
79
+ className: "mt-6 text-sm font-medium text-text-secondary",
80
80
  children: r
81
81
  })]
82
82
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/support/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: 'max-w-screen-sm', // 640px\n md: 'max-w-screen-md', // 768px\n lg: 'max-w-screen-lg', // 1024px\n xl: 'max-w-screen-xl', // 1280px\n '2xl': 'max-w-screen-2xl', // 1536px\n '3xl': 'max-w-[1600px]',\n full: 'max-w-full',\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design for Support module\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = 'xl',\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n 'min-size-full',\n // Responsive horizontal padding\n 'px-4 sm:px-6 lg:px-8 xl:px-12',\n // Responsive vertical padding\n 'py-6 sm:py-8 lg:py-10',\n // Entrance animation\n 'animate-in fade-in-0 slide-in-from-bottom-4 duration-500',\n className\n )}\n >\n {/* Max-width constrained content container */}\n <div className={cn('mx-auto w-full', maxWidthClasses[maxWidth], contentClassName)}>\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-primary/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-foreground\">\n {title}\n </h1>\n )}\n </div>\n )}\n {subtitle && (\n <p className=\"text-sm sm:text-base text-muted-foreground max-w-2xl\">{subtitle}</p>\n )}\n </div>\n\n {/* Header Actions */}\n {headerActions && (\n <div className=\"flex items-center gap-2 flex-shrink-0\">{headerActions}</div>\n )}\n </div>\n\n {/* Additional Header Content */}\n {headerContent && <div className=\"mt-4\">{headerContent}</div>}\n </header>\n )}\n\n {/* Page content — must not use a <main> landmark here because the\n host shell (AppShellLayout) already renders one; nesting <main>\n elements is invalid HTML and an a11y violation. */}\n <div className=\"space-y-6\">{children}</div>\n </div>\n </div>\n );\n}\n\n/**\n * EmptyState - A consistent empty state component\n */\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col items-center justify-center',\n 'py-12 sm:py-16 px-4',\n 'text-center',\n 'animate-in fade-in-0 zoom-in-95 duration-300',\n className\n )}\n >\n {icon && <div className=\"mb-4 p-4 rounded-2xl bg-muted/50 text-muted-foreground\">{icon}</div>}\n <h3 className=\"text-lg font-semibold text-foreground mb-1\">{title}</h3>\n {description && <p className=\"text-sm text-muted-foreground max-w-sm mb-4\">{description}</p>}\n {action}\n </div>\n );\n}\n\n/**\n * LoadingState - A consistent loading state component\n */\nexport function LoadingState({\n message = 'Loading...',\n className,\n}: {\n message?: string;\n className?: string;\n}) {\n return (\n <div className={cn('flex flex-col items-center justify-center py-20', className)}>\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-primary/20 rounded-full blur-xl animate-pulse\" />\n <div className=\"relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin\" />\n </div>\n <span className=\"mt-6 text-sm font-medium text-muted-foreground\">{message}</span>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,IAAM,IAAkB;CACtB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,MAAM;CACP;AAWD,SAAgB,EAAW,EACzB,aACA,UACA,aACA,SACA,kBACA,kBACA,cAAW,MACX,gBAAa,IACb,cACA,uBACkB;AAClB,QACE,kBAAC,OAAD;EACE,WAAW,EAET,iBAEA,iCAEA,yBAEA,4DACA,EACD;YAGD,kBAAC,OAAD;GAAK,WAAW,EAAG,kBAAkB,EAAgB,IAAW,EAAiB;aAAjF,CAEG,MAAe,KAAS,MACvB,kBAAC,UAAD;IAAQ,WAAU;cAAlB,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CAEE,kBAAC,OAAD;MAAK,WAAU;gBAAf,EACI,KAAS,MACT,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACG,KACC,kBAAC,OAAD;QAAK,WAAU;kBACZ;QACG,CAAA,EAEP,KACC,kBAAC,MAAD;QAAI,WAAU;kBACX;QACE,CAAA,CAEH;UAEP,KACC,kBAAC,KAAD;OAAG,WAAU;iBAAwD;OAAa,CAAA,CAEhF;SAGL,KACC,kBAAC,OAAD;MAAK,WAAU;gBAAyC;MAAoB,CAAA,CAE1E;QAGL,KAAiB,kBAAC,OAAD;KAAK,WAAU;eAAQ;KAAoB,CAAA,CACtD;OAMX,kBAAC,OAAD;IAAK,WAAU;IAAa;IAAe,CAAA,CACvC;;EACF,CAAA;;AAOV,SAAgB,EAAW,EACzB,SACA,UACA,gBACA,WACA,gBAOC;AACD,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6CACA,uBACA,eACA,gDACA,EACD;YAPH;GASG,KAAQ,kBAAC,OAAD;IAAK,WAAU;cAA0D;IAAW,CAAA;GAC7F,kBAAC,MAAD;IAAI,WAAU;cAA8C;IAAW,CAAA;GACtE,KAAe,kBAAC,KAAD;IAAG,WAAU;cAA+C;IAAgB,CAAA;GAC3F;GACG;;;AAOV,SAAgB,EAAa,EAC3B,aAAU,cACV,gBAIC;AACD,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,mDAAmD,EAAU;YAAhF,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD,EAAK,WAAU,qEAAsE,CAAA,EACrF,kBAAC,OAAD,EAAK,WAAU,0FAA2F,CAAA,CACtG;MACN,kBAAC,QAAD;GAAM,WAAU;aAAkD;GAAe,CAAA,CAC7E"}
1
+ {"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/support/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: 'max-w-screen-sm', // 640px\n md: 'max-w-screen-md', // 768px\n lg: 'max-w-screen-lg', // 1024px\n xl: 'max-w-screen-xl', // 1280px\n '2xl': 'max-w-screen-2xl', // 1536px\n '3xl': 'max-w-[1600px]',\n full: 'max-w-full',\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design for Support module\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = 'xl',\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n 'min-size-full',\n // Responsive horizontal padding\n 'px-4 sm:px-6 lg:px-8 xl:px-12',\n // Responsive vertical padding\n 'py-6 sm:py-8 lg:py-10',\n // Entrance animation\n 'animate-in fade-in-0 slide-in-from-bottom-4 duration-200',\n className\n )}\n >\n {/* Max-width constrained content container */}\n <div className={cn('mx-auto w-full', maxWidthClasses[maxWidth], contentClassName)}>\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n {title}\n </h1>\n )}\n </div>\n )}\n {subtitle && (\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">{subtitle}</p>\n )}\n </div>\n\n {/* Header Actions */}\n {headerActions && (\n <div className=\"flex items-center gap-2 flex-shrink-0\">{headerActions}</div>\n )}\n </div>\n\n {/* Additional Header Content */}\n {headerContent && <div className=\"mt-4\">{headerContent}</div>}\n </header>\n )}\n\n {/* Page content — must not use a <main> landmark here because the\n host shell (AppShellLayout) already renders one; nesting <main>\n elements is invalid HTML and an a11y violation. */}\n <div className=\"space-y-6\">{children}</div>\n </div>\n </div>\n );\n}\n\n/**\n * EmptyState - A consistent empty state component\n */\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col items-center justify-center',\n 'py-12 sm:py-16 px-4',\n 'text-center',\n 'animate-in fade-in-0 zoom-in-95 duration-200',\n className\n )}\n >\n {icon && (\n <div className=\"mb-4 p-4 rounded-2xl bg-bg-sunken/50 text-text-secondary\">{icon}</div>\n )}\n <h3 className=\"text-lg font-semibold text-text-primary mb-1\">{title}</h3>\n {description && <p className=\"text-sm text-text-secondary max-w-sm mb-4\">{description}</p>}\n {action}\n </div>\n );\n}\n\n/**\n * LoadingState - A consistent loading state component\n */\nexport function LoadingState({\n message = 'Loading...',\n className,\n}: {\n message?: string;\n className?: string;\n}) {\n return (\n <div className={cn('flex flex-col items-center justify-center py-20', className)}>\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse\" />\n <div className=\"relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin\" />\n </div>\n <span className=\"mt-6 text-sm font-medium text-text-secondary\">{message}</span>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,IAAM,IAAkB;CACtB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,MAAM;CACP;AAWD,SAAgB,EAAW,EACzB,aACA,UACA,aACA,SACA,kBACA,kBACA,cAAW,MACX,gBAAa,IACb,cACA,uBACkB;AAClB,QACE,kBAAC,OAAD;EACE,WAAW,EAET,iBAEA,iCAEA,yBAEA,4DACA,EACD;YAGD,kBAAC,OAAD;GAAK,WAAW,EAAG,kBAAkB,EAAgB,IAAW,EAAiB;aAAjF,CAEG,MAAe,KAAS,MACvB,kBAAC,UAAD;IAAQ,WAAU;cAAlB,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CAEE,kBAAC,OAAD;MAAK,WAAU;gBAAf,EACI,KAAS,MACT,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACG,KACC,kBAAC,OAAD;QAAK,WAAU;kBACZ;QACG,CAAA,EAEP,KACC,kBAAC,MAAD;QAAI,WAAU;kBACX;QACE,CAAA,CAEH;UAEP,KACC,kBAAC,KAAD;OAAG,WAAU;iBAAsD;OAAa,CAAA,CAE9E;SAGL,KACC,kBAAC,OAAD;MAAK,WAAU;gBAAyC;MAAoB,CAAA,CAE1E;QAGL,KAAiB,kBAAC,OAAD;KAAK,WAAU;eAAQ;KAAoB,CAAA,CACtD;OAMX,kBAAC,OAAD;IAAK,WAAU;IAAa;IAAe,CAAA,CACvC;;EACF,CAAA;;AAOV,SAAgB,EAAW,EACzB,SACA,UACA,gBACA,WACA,gBAOC;AACD,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6CACA,uBACA,eACA,gDACA,EACD;YAPH;GASG,KACC,kBAAC,OAAD;IAAK,WAAU;cAA4D;IAAW,CAAA;GAExF,kBAAC,MAAD;IAAI,WAAU;cAAgD;IAAW,CAAA;GACxE,KAAe,kBAAC,KAAD;IAAG,WAAU;cAA6C;IAAgB,CAAA;GACzF;GACG;;;AAOV,SAAgB,EAAa,EAC3B,aAAU,cACV,gBAIC;AACD,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,mDAAmD,EAAU;YAAhF,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD,EAAK,WAAU,+EAAgF,CAAA,EAC/F,kBAAC,OAAD,EAAK,WAAU,0FAA2F,CAAA,CACtG;MACN,kBAAC,QAAD;GAAM,WAAU;aAAgD;GAAe,CAAA,CAC3E"}
@@ -14,7 +14,7 @@ function i({ data: i }) {
14
14
  children: o.map((t, i) => {
15
15
  let o = a > 0 ? t.count / a * 100 : 0, s = e[i % e.length];
16
16
  return /* @__PURE__ */ r("div", {
17
- className: "flex items-center justify-between transition-colors duration-200 hover:bg-muted/50 p-1 rounded",
17
+ className: "flex items-center justify-between transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded",
18
18
  children: [/* @__PURE__ */ r("div", {
19
19
  className: "flex items-center gap-2 flex-1",
20
20
  children: [/* @__PURE__ */ n("div", { className: `w-3 h-3 rounded-full flex-shrink-0 ${s}` }), /* @__PURE__ */ n("span", {
@@ -26,14 +26,14 @@ function i({ data: i }) {
26
26
  children: [/* @__PURE__ */ n("div", {
27
27
  className: "w-20",
28
28
  children: /* @__PURE__ */ n("div", {
29
- className: "h-2 rounded-full bg-muted",
29
+ className: "h-2 rounded-full bg-bg-sunken",
30
30
  children: /* @__PURE__ */ n("div", {
31
31
  className: `h-full rounded-full transition-all duration-300 ${s}`,
32
32
  style: { width: `${o}%` }
33
33
  })
34
34
  })
35
35
  }), /* @__PURE__ */ n("span", {
36
- className: "text-sm font-semibold w-12 text-right text-primary",
36
+ className: "text-sm font-semibold w-12 text-right text-primary tabular-nums",
37
37
  children: t.count
38
38
  })]
39
39
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/CategoryBreakdown.tsx"],"sourcesContent":["import { FolderOpen } from 'lucide-react';\nimport { analyticsSeriesClasses } from '../../utils/uiTokens';\n\ninterface CategoryCount {\n category: string;\n count: number;\n}\n\ninterface CategoryBreakdownProps {\n data: CategoryCount[];\n}\n\nexport function CategoryBreakdown({ data }: CategoryBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n const topCategories = data.slice(0, 8);\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <FolderOpen size={20} />\n Top Categories\n </h2>\n\n <div className=\"space-y-3\">\n {topCategories.map((item, index) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = analyticsSeriesClasses[index % analyticsSeriesClasses.length];\n\n return (\n <div\n key={item.category}\n className=\"flex items-center justify-between transition-colors duration-200 hover:bg-muted/50 p-1 rounded\"\n >\n <div className=\"flex items-center gap-2 flex-1\">\n <div className={`w-3 h-3 rounded-full flex-shrink-0 ${colorClass}`} />\n <span className=\"text-sm truncate text-primary\">{item.category}</span>\n </div>\n <div className=\"flex items-center gap-3 ml-4\">\n <div className=\"w-20\">\n <div className=\"h-2 rounded-full bg-muted\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n />\n </div>\n </div>\n <span className=\"text-sm font-semibold w-12 text-right text-primary\">\n {item.count}\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE,EACvD,IAAgB,EAAK,MAAM,GAAG,EAAE;AAEtC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,iBAErB;MAEL,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAc,KAAK,GAAM,MAAU;IAClC,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAuB,IAAQ,EAAuB;AAEzE,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD,EAAK,WAAW,sCAAsC,KAAgB,CAAA,EACtE,kBAAC,QAAD;OAAM,WAAU;iBAAiC,EAAK;OAAgB,CAAA,CAClE;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAW,mDAAmD;SAC9D,OAAO,EACL,OAAO,GAAG,EAAW,IACtB;SACD,CAAA;QACE,CAAA;OACF,CAAA,EACN,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAK;OACD,CAAA,CACH;QACF;OAtBC,EAAK,SAsBN;KAER;GACE,CAAA,CACF"}
1
+ {"version":3,"file":"CategoryBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/CategoryBreakdown.tsx"],"sourcesContent":["import { FolderOpen } from 'lucide-react';\nimport { analyticsSeriesClasses } from '../../utils/uiTokens';\n\ninterface CategoryCount {\n category: string;\n count: number;\n}\n\ninterface CategoryBreakdownProps {\n data: CategoryCount[];\n}\n\nexport function CategoryBreakdown({ data }: CategoryBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n const topCategories = data.slice(0, 8);\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <FolderOpen size={20} />\n Top Categories\n </h2>\n\n <div className=\"space-y-3\">\n {topCategories.map((item, index) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = analyticsSeriesClasses[index % analyticsSeriesClasses.length];\n\n return (\n <div\n key={item.category}\n className=\"flex items-center justify-between transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded\"\n >\n <div className=\"flex items-center gap-2 flex-1\">\n <div className={`w-3 h-3 rounded-full flex-shrink-0 ${colorClass}`} />\n <span className=\"text-sm truncate text-primary\">{item.category}</span>\n </div>\n <div className=\"flex items-center gap-3 ml-4\">\n <div className=\"w-20\">\n <div className=\"h-2 rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n />\n </div>\n </div>\n <span className=\"text-sm font-semibold w-12 text-right text-primary tabular-nums\">\n {item.count}\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE,EACvD,IAAgB,EAAK,MAAM,GAAG,EAAE;AAEtC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,iBAErB;MAEL,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAc,KAAK,GAAM,MAAU;IAClC,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAuB,IAAQ,EAAuB;AAEzE,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD,EAAK,WAAW,sCAAsC,KAAgB,CAAA,EACtE,kBAAC,QAAD;OAAM,WAAU;iBAAiC,EAAK;OAAgB,CAAA,CAClE;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAW,mDAAmD;SAC9D,OAAO,EACL,OAAO,GAAG,EAAW,IACtB;SACD,CAAA;QACE,CAAA;OACF,CAAA,EACN,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAK;OACD,CAAA,CACH;QACF;OAtBC,EAAK,SAsBN;KAER;GACE,CAAA,CACF"}
@@ -15,7 +15,7 @@ function n({ title: n, value: r, icon: i, iconColor: a, subtitle: o }) {
15
15
  })]
16
16
  }),
17
17
  /* @__PURE__ */ e("p", {
18
- className: "text-3xl font-bold mb-1 text-primary",
18
+ className: "text-3xl font-bold mb-1 text-primary tabular-nums",
19
19
  children: r
20
20
  }),
21
21
  o && /* @__PURE__ */ e("p", {
@@ -1 +1 @@
1
- {"version":3,"file":"MetricCard.js","names":[],"sources":["../../../../src/support/components/analytics/MetricCard.tsx"],"sourcesContent":["import { LucideIcon } from 'lucide-react';\n\ninterface MetricCardProps {\n title: string;\n value: string;\n icon: LucideIcon;\n iconColor: string;\n subtitle?: string;\n}\n\nexport function MetricCard({ title, value, icon: Icon, iconColor, subtitle }: MetricCardProps) {\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm hover:border-primary/30 animate-in fade-in-0 slide-in-from-bottom-2\">\n <div className=\"flex items-center justify-between mb-3\">\n <span className=\"text-sm font-medium text-secondary\">{title}</span>\n <Icon size={20} className={iconColor} />\n </div>\n <p className=\"text-3xl font-bold mb-1 text-primary\">{value}</p>\n {subtitle && <p className=\"text-xs text-tertiary\">{subtitle}</p>}\n </div>\n );\n}\n"],"mappings":";;AAUA,SAAgB,EAAW,EAAE,UAAO,UAAO,MAAM,GAAM,cAAW,eAA6B;AAC7F,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,QAAD;KAAM,WAAU;eAAsC;KAAa,CAAA,EACnE,kBAAC,GAAD;KAAM,MAAM;KAAI,WAAW;KAAa,CAAA,CACpC;;GACN,kBAAC,KAAD;IAAG,WAAU;cAAwC;IAAU,CAAA;GAC9D,KAAY,kBAAC,KAAD;IAAG,WAAU;cAAyB;IAAa,CAAA;GAC5D"}
1
+ {"version":3,"file":"MetricCard.js","names":[],"sources":["../../../../src/support/components/analytics/MetricCard.tsx"],"sourcesContent":["import { LucideIcon } from 'lucide-react';\n\ninterface MetricCardProps {\n title: string;\n value: string;\n icon: LucideIcon;\n iconColor: string;\n subtitle?: string;\n}\n\nexport function MetricCard({ title, value, icon: Icon, iconColor, subtitle }: MetricCardProps) {\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm hover:border-primary/30 animate-in fade-in-0 slide-in-from-bottom-2\">\n <div className=\"flex items-center justify-between mb-3\">\n <span className=\"text-sm font-medium text-secondary\">{title}</span>\n <Icon size={20} className={iconColor} />\n </div>\n <p className=\"text-3xl font-bold mb-1 text-primary tabular-nums\">{value}</p>\n {subtitle && <p className=\"text-xs text-tertiary\">{subtitle}</p>}\n </div>\n );\n}\n"],"mappings":";;AAUA,SAAgB,EAAW,EAAE,UAAO,UAAO,MAAM,GAAM,cAAW,eAA6B;AAC7F,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,QAAD;KAAM,WAAU;eAAsC;KAAa,CAAA,EACnE,kBAAC,GAAD;KAAM,MAAM;KAAI,WAAW;KAAa,CAAA,CACpC;;GACN,kBAAC,KAAD;IAAG,WAAU;cAAqD;IAAU,CAAA;GAC3E,KAAY,kBAAC,KAAD;IAAG,WAAU;cAAyB;IAAa,CAAA;GAC5D"}
@@ -29,15 +29,15 @@ function a({ data: e }) {
29
29
  }), /* @__PURE__ */ r("div", {
30
30
  className: "flex items-center gap-2",
31
31
  children: [/* @__PURE__ */ r("span", {
32
- className: "text-sm text-tertiary",
32
+ className: "text-sm text-tertiary tabular-nums",
33
33
  children: [t.toFixed(0), "%"]
34
34
  }), /* @__PURE__ */ n("span", {
35
- className: "font-semibold text-primary",
35
+ className: "font-semibold text-primary tabular-nums",
36
36
  children: e.count
37
37
  })]
38
38
  })]
39
39
  }), /* @__PURE__ */ n("div", {
40
- className: "h-2 rounded-full bg-muted",
40
+ className: "h-2 rounded-full bg-bg-sunken",
41
41
  children: /* @__PURE__ */ n("div", {
42
42
  className: `h-full rounded-full transition-all duration-300 ${o}`,
43
43
  style: { width: `${t}%` },
@@ -1 +1 @@
1
- {"version":3,"file":"PriorityBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/PriorityBreakdown.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\nimport { ticketPriorityDotClasses } from '../../utils/uiTokens';\n\ninterface PriorityCount {\n priority: string;\n count: number;\n}\n\ninterface PriorityBreakdownProps {\n data: PriorityCount[];\n}\n\nconst priorityColors: Record<string, string> = {\n ...ticketPriorityDotClasses,\n URGENT: ticketPriorityDotClasses.CRITICAL,\n MEDIUM: ticketPriorityDotClasses.NORMAL,\n};\n\nexport function PriorityBreakdown({ data }: PriorityBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <AlertCircle size={20} />\n Tickets by Priority\n </h2>\n\n <div className=\"space-y-4\">\n {data.map((item) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = priorityColors[item.priority] || 'bg-muted-foreground';\n\n return (\n <div key={item.priority}>\n <div className=\"flex items-center justify-between mb-2\">\n <div className=\"flex items-center gap-2\">\n <div className={`w-3 h-3 rounded-full ${colorClass}`} />\n <span className=\"font-medium text-primary\">{item.priority}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm text-tertiary\">{percentage.toFixed(0)}%</span>\n <span className=\"font-semibold text-primary\">{item.count}</span>\n </div>\n </div>\n <div className=\"h-2 rounded-full bg-muted\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n data-priority={item.priority}\n />\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAYA,IAAM,IAAyC;CAC7C,GAAG;CACH,QAAQ,EAAyB;CACjC,QAAQ,EAAyB;CAClC;AAED,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE;AAE7D,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EAAA,sBAEtB;MAEL,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAK,KAAK,MAAS;IAClB,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAe,EAAK,aAAa;AAEpD,WACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD,EAAK,WAAW,wBAAwB,KAAgB,CAAA,EACxD,kBAAC,QAAD;OAAM,WAAU;iBAA4B,EAAK;OAAgB,CAAA,CAC7D;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,QAAD;OAAM,WAAU;iBAAhB,CAAyC,EAAW,QAAQ,EAAE,EAAC,IAAQ;UACvE,kBAAC,QAAD;OAAM,WAAU;iBAA8B,EAAK;OAAa,CAAA,CAC5D;QACF;QACN,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,OAAD;MACE,WAAW,mDAAmD;MAC9D,OAAO,EACL,OAAO,GAAG,EAAW,IACtB;MACD,iBAAe,EAAK;MACpB,CAAA;KACE,CAAA,CACF,EAAA,EApBI,EAAK,SAoBT;KAER;GACE,CAAA,CACF"}
1
+ {"version":3,"file":"PriorityBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/PriorityBreakdown.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\nimport { ticketPriorityDotClasses } from '../../utils/uiTokens';\n\ninterface PriorityCount {\n priority: string;\n count: number;\n}\n\ninterface PriorityBreakdownProps {\n data: PriorityCount[];\n}\n\nconst priorityColors: Record<string, string> = {\n ...ticketPriorityDotClasses,\n URGENT: ticketPriorityDotClasses.CRITICAL,\n MEDIUM: ticketPriorityDotClasses.NORMAL,\n};\n\nexport function PriorityBreakdown({ data }: PriorityBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <AlertCircle size={20} />\n Tickets by Priority\n </h2>\n\n <div className=\"space-y-4\">\n {data.map((item) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = priorityColors[item.priority] || 'bg-muted-foreground';\n\n return (\n <div key={item.priority}>\n <div className=\"flex items-center justify-between mb-2\">\n <div className=\"flex items-center gap-2\">\n <div className={`w-3 h-3 rounded-full ${colorClass}`} />\n <span className=\"font-medium text-primary\">{item.priority}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm text-tertiary tabular-nums\">\n {percentage.toFixed(0)}%\n </span>\n <span className=\"font-semibold text-primary tabular-nums\">{item.count}</span>\n </div>\n </div>\n <div className=\"h-2 rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n data-priority={item.priority}\n />\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAYA,IAAM,IAAyC;CAC7C,GAAG;CACH,QAAQ,EAAyB;CACjC,QAAQ,EAAyB;CAClC;AAED,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE;AAE7D,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EAAA,sBAEtB;MAEL,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAK,KAAK,MAAS;IAClB,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAe,EAAK,aAAa;AAEpD,WACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD,EAAK,WAAW,wBAAwB,KAAgB,CAAA,EACxD,kBAAC,QAAD;OAAM,WAAU;iBAA4B,EAAK;OAAgB,CAAA,CAC7D;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,QAAD;OAAM,WAAU;iBAAhB,CACG,EAAW,QAAQ,EAAE,EAAC,IAClB;UACP,kBAAC,QAAD;OAAM,WAAU;iBAA2C,EAAK;OAAa,CAAA,CACzE;QACF;QACN,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,OAAD;MACE,WAAW,mDAAmD;MAC9D,OAAO,EACL,OAAO,GAAG,EAAW,IACtB;MACD,iBAAe,EAAK;MACpB,CAAA;KACE,CAAA,CACF,EAAA,EAtBI,EAAK,SAsBT;KAER;GACE,CAAA,CACF"}
@@ -13,14 +13,14 @@ function i({ report: i }) {
13
13
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",
14
14
  children: [
15
15
  /* @__PURE__ */ r("div", {
16
- className: "p-4 rounded-lg bg-muted transition-colors duration-200",
16
+ className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
17
17
  children: [
18
18
  /* @__PURE__ */ n("p", {
19
19
  className: "text-xs font-medium mb-1 text-tertiary",
20
20
  children: "First Response"
21
21
  }),
22
22
  /* @__PURE__ */ r("p", {
23
- className: `text-2xl font-bold ${i.firstResponseCompliance >= 90 ? "text-success" : "text-warning"}`,
23
+ className: `text-2xl font-bold tabular-nums ${i.firstResponseCompliance >= 90 ? "text-success" : "text-warning"}`,
24
24
  children: [i.firstResponseCompliance.toFixed(1), "%"]
25
25
  }),
26
26
  /* @__PURE__ */ r("p", {
@@ -34,14 +34,14 @@ function i({ report: i }) {
34
34
  ]
35
35
  }),
36
36
  /* @__PURE__ */ r("div", {
37
- className: "p-4 rounded-lg bg-muted transition-colors duration-200",
37
+ className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
38
38
  children: [
39
39
  /* @__PURE__ */ n("p", {
40
40
  className: "text-xs font-medium mb-1 text-tertiary",
41
41
  children: "Resolution"
42
42
  }),
43
43
  /* @__PURE__ */ r("p", {
44
- className: `text-2xl font-bold ${i.resolutionCompliance >= 90 ? "text-success" : "text-warning"}`,
44
+ className: `text-2xl font-bold tabular-nums ${i.resolutionCompliance >= 90 ? "text-success" : "text-warning"}`,
45
45
  children: [i.resolutionCompliance.toFixed(1), "%"]
46
46
  }),
47
47
  /* @__PURE__ */ r("p", {
@@ -55,7 +55,7 @@ function i({ report: i }) {
55
55
  ]
56
56
  }),
57
57
  /* @__PURE__ */ r("div", {
58
- className: "p-4 rounded-lg bg-muted transition-colors duration-200",
58
+ className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
59
59
  children: [/* @__PURE__ */ n("p", {
60
60
  className: "text-xs font-medium mb-1 text-tertiary",
61
61
  children: "Total Tickets"
@@ -65,7 +65,7 @@ function i({ report: i }) {
65
65
  })]
66
66
  }),
67
67
  /* @__PURE__ */ r("div", {
68
- className: `p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${i.breachedTickets > 0 ? "bg-error/10" : "bg-muted"}`,
68
+ className: `p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${i.breachedTickets > 0 ? "bg-error/10" : "bg-bg-sunken"}`,
69
69
  children: [/* @__PURE__ */ n(e, {
70
70
  size: 20,
71
71
  className: i.breachedTickets > 0 ? "text-error" : "text-tertiary"
@@ -85,7 +85,7 @@ function i({ report: i }) {
85
85
  }), /* @__PURE__ */ n("div", {
86
86
  className: "space-y-2",
87
87
  children: i.byPriority.map((e) => /* @__PURE__ */ r("div", {
88
- className: "flex items-center justify-between py-2 px-3 rounded bg-muted transition-colors duration-200 hover:bg-muted/80",
88
+ className: "flex items-center justify-between py-2 px-3 rounded bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80",
89
89
  children: [/* @__PURE__ */ r("div", {
90
90
  className: "flex items-center gap-3",
91
91
  children: [/* @__PURE__ */ n("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\n\ninterface SLAComplianceByPriority {\n priority: string;\n tickets: number;\n compliance: number;\n}\n\ninterface SLAReportProps {\n report: {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalTickets: number;\n firstResponseCompliance: number;\n resolutionCompliance: number;\n avgFirstResponseTime: number;\n avgResolutionTime: number;\n breachedTickets: number;\n byPriority: SLAComplianceByPriority[];\n };\n}\n\nexport function SLAReport({ report }: SLAReportProps) {\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <Shield size={20} />\n SLA Compliance Report\n </h2>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6\">\n <div className=\"p-4 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">First Response</p>\n <p\n className={`text-2xl font-bold ${\n report.firstResponseCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.firstResponseCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgFirstResponseTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Resolution</p>\n <p\n className={`text-2xl font-bold ${\n report.resolutionCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.resolutionCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgResolutionTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Total Tickets</p>\n <p className=\"text-2xl font-bold text-primary\">{report.totalTickets}</p>\n </div>\n\n <div\n className={`p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${\n report.breachedTickets > 0 ? 'bg-error/10' : 'bg-muted'\n }`}\n >\n <AlertTriangle\n size={20}\n className={report.breachedTickets > 0 ? 'text-error' : 'text-tertiary'}\n />\n <div>\n <p className=\"text-xs font-medium text-tertiary\">Breached</p>\n <p\n className={`text-2xl font-bold ${\n report.breachedTickets > 0 ? 'text-error' : 'text-primary'\n }`}\n >\n {report.breachedTickets}\n </p>\n </div>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">Compliance by Priority</h3>\n <div className=\"space-y-2\">\n {report.byPriority.map((item) => (\n <div\n key={item.priority}\n className=\"flex items-center justify-between py-2 px-3 rounded bg-muted transition-colors duration-200 hover:bg-muted/80\"\n >\n <div className=\"flex items-center gap-3\">\n <span className=\"text-sm font-medium text-primary\">{item.priority}</span>\n <span className=\"text-xs text-tertiary\">{item.tickets} tickets</span>\n </div>\n <span\n className={`text-sm font-semibold ${\n item.compliance >= 90\n ? 'text-success'\n : item.compliance >= 70\n ? 'text-warning'\n : 'text-error'\n }`}\n >\n {item.compliance.toFixed(1)}%\n </span>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAU,EAAE,aAA0B;AACpD,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA,EAAA,wBAEjB;;GAEL,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAkB,CAAA;OACxE,kBAAC,KAAD;QACE,WAAW,sBACT,EAAO,2BAA2B,KAAK,iBAAiB;kBAF5D,CAKG,EAAO,wBAAwB,QAAQ,EAAE,EAAC,IACzC;;OACJ,kBAAC,KAAD;QAAG,WAAU;kBAAb;SAA0C;UACjC,EAAO,uBAAuB,IAAI,QAAQ,EAAE;SAAC;SAClD;;OACA;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAc,CAAA;OACpE,kBAAC,KAAD;QACE,WAAW,sBACT,EAAO,wBAAwB,KAAK,iBAAiB;kBAFzD,CAKG,EAAO,qBAAqB,QAAQ,EAAE,EAAC,IACtC;;OACJ,kBAAC,KAAD;QAAG,WAAU;kBAAb;SAA0C;UACjC,EAAO,oBAAoB,IAAI,QAAQ,EAAE;SAAC;SAC/C;;OACA;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAyC;OAAiB,CAAA,EACvE,kBAAC,KAAD;OAAG,WAAU;iBAAmC,EAAO;OAAiB,CAAA,CACpE;;KAEN,kBAAC,OAAD;MACE,WAAW,yEACT,EAAO,kBAAkB,IAAI,gBAAgB;gBAFjD,CAKE,kBAAC,GAAD;OACE,MAAM;OACN,WAAW,EAAO,kBAAkB,IAAI,eAAe;OACvD,CAAA,EACF,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAoC;OAAY,CAAA,EAC7D,kBAAC,KAAD;OACE,WAAW,sBACT,EAAO,kBAAkB,IAAI,eAAe;iBAG7C,EAAO;OACN,CAAA,CACA,EAAA,CAAA,CACF;;KACF;;GAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAA4C;IAA2B,CAAA,EACrF,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAO,WAAW,KAAK,MACtB,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,QAAD;OAAM,WAAU;iBAAoC,EAAK;OAAgB,CAAA,EACzE,kBAAC,QAAD;OAAM,WAAU;iBAAhB,CAAyC,EAAK,SAAQ,WAAe;SACjE;SACN,kBAAC,QAAD;MACE,WAAW,yBACT,EAAK,cAAc,KACf,iBACA,EAAK,cAAc,KACjB,iBACA;gBANV,CASG,EAAK,WAAW,QAAQ,EAAE,EAAC,IACvB;QACH;OAlBC,EAAK,SAkBN,CACN;IACE,CAAA,CACF,EAAA,CAAA;GACF"}
1
+ {"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\n\ninterface SLAComplianceByPriority {\n priority: string;\n tickets: number;\n compliance: number;\n}\n\ninterface SLAReportProps {\n report: {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalTickets: number;\n firstResponseCompliance: number;\n resolutionCompliance: number;\n avgFirstResponseTime: number;\n avgResolutionTime: number;\n breachedTickets: number;\n byPriority: SLAComplianceByPriority[];\n };\n}\n\nexport function SLAReport({ report }: SLAReportProps) {\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <Shield size={20} />\n SLA Compliance Report\n </h2>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6\">\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">First Response</p>\n <p\n className={`text-2xl font-bold tabular-nums ${\n report.firstResponseCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.firstResponseCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgFirstResponseTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Resolution</p>\n <p\n className={`text-2xl font-bold tabular-nums ${\n report.resolutionCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.resolutionCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgResolutionTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Total Tickets</p>\n <p className=\"text-2xl font-bold text-primary\">{report.totalTickets}</p>\n </div>\n\n <div\n className={`p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${\n report.breachedTickets > 0 ? 'bg-error/10' : 'bg-bg-sunken'\n }`}\n >\n <AlertTriangle\n size={20}\n className={report.breachedTickets > 0 ? 'text-error' : 'text-tertiary'}\n />\n <div>\n <p className=\"text-xs font-medium text-tertiary\">Breached</p>\n <p\n className={`text-2xl font-bold ${\n report.breachedTickets > 0 ? 'text-error' : 'text-primary'\n }`}\n >\n {report.breachedTickets}\n </p>\n </div>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">Compliance by Priority</h3>\n <div className=\"space-y-2\">\n {report.byPriority.map((item) => (\n <div\n key={item.priority}\n className=\"flex items-center justify-between py-2 px-3 rounded bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80\"\n >\n <div className=\"flex items-center gap-3\">\n <span className=\"text-sm font-medium text-primary\">{item.priority}</span>\n <span className=\"text-xs text-tertiary\">{item.tickets} tickets</span>\n </div>\n <span\n className={`text-sm font-semibold ${\n item.compliance >= 90\n ? 'text-success'\n : item.compliance >= 70\n ? 'text-warning'\n : 'text-error'\n }`}\n >\n {item.compliance.toFixed(1)}%\n </span>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAU,EAAE,aAA0B;AACpD,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA,EAAA,wBAEjB;;GAEL,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAkB,CAAA;OACxE,kBAAC,KAAD;QACE,WAAW,mCACT,EAAO,2BAA2B,KAAK,iBAAiB;kBAF5D,CAKG,EAAO,wBAAwB,QAAQ,EAAE,EAAC,IACzC;;OACJ,kBAAC,KAAD;QAAG,WAAU;kBAAb;SAA0C;UACjC,EAAO,uBAAuB,IAAI,QAAQ,EAAE;SAAC;SAClD;;OACA;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAc,CAAA;OACpE,kBAAC,KAAD;QACE,WAAW,mCACT,EAAO,wBAAwB,KAAK,iBAAiB;kBAFzD,CAKG,EAAO,qBAAqB,QAAQ,EAAE,EAAC,IACtC;;OACJ,kBAAC,KAAD;QAAG,WAAU;kBAAb;SAA0C;UACjC,EAAO,oBAAoB,IAAI,QAAQ,EAAE;SAAC;SAC/C;;OACA;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAyC;OAAiB,CAAA,EACvE,kBAAC,KAAD;OAAG,WAAU;iBAAmC,EAAO;OAAiB,CAAA,CACpE;;KAEN,kBAAC,OAAD;MACE,WAAW,yEACT,EAAO,kBAAkB,IAAI,gBAAgB;gBAFjD,CAKE,kBAAC,GAAD;OACE,MAAM;OACN,WAAW,EAAO,kBAAkB,IAAI,eAAe;OACvD,CAAA,EACF,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAoC;OAAY,CAAA,EAC7D,kBAAC,KAAD;OACE,WAAW,sBACT,EAAO,kBAAkB,IAAI,eAAe;iBAG7C,EAAO;OACN,CAAA,CACA,EAAA,CAAA,CACF;;KACF;;GAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAA4C;IAA2B,CAAA,EACrF,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAO,WAAW,KAAK,MACtB,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,QAAD;OAAM,WAAU;iBAAoC,EAAK;OAAgB,CAAA,EACzE,kBAAC,QAAD;OAAM,WAAU;iBAAhB,CAAyC,EAAK,SAAQ,WAAe;SACjE;SACN,kBAAC,QAAD;MACE,WAAW,yBACT,EAAK,cAAc,KACf,iBACA,EAAK,cAAc,KACjB,iBACA;gBANV,CASG,EAAK,WAAW,QAAQ,EAAE,EAAC,IACvB;QACH;OAlBC,EAAK,SAkBN,CACN;IACE,CAAA,CACF,EAAA,CAAA;GACF"}
@@ -35,14 +35,14 @@ function i({ metrics: i }) {
35
35
  className: "grid grid-cols-3 gap-4 mb-6",
36
36
  children: [
37
37
  /* @__PURE__ */ r("div", {
38
- className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
38
+ className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
39
39
  children: [
40
40
  /* @__PURE__ */ n("p", {
41
41
  className: "text-xs font-medium mb-1 text-tertiary",
42
42
  children: "Avg Rating"
43
43
  }),
44
44
  /* @__PURE__ */ n("p", {
45
- className: "text-2xl font-bold text-primary",
45
+ className: "text-2xl font-bold text-primary tabular-nums",
46
46
  children: i.averageRating.toFixed(1)
47
47
  }),
48
48
  /* @__PURE__ */ n("div", {
@@ -61,14 +61,14 @@ function i({ metrics: i }) {
61
61
  ]
62
62
  }),
63
63
  /* @__PURE__ */ r("div", {
64
- className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
64
+ className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
65
65
  children: [
66
66
  /* @__PURE__ */ n("p", {
67
67
  className: "text-xs font-medium mb-1 text-tertiary",
68
68
  children: "CSAT"
69
69
  }),
70
70
  /* @__PURE__ */ r("p", {
71
- className: "text-2xl font-bold text-success",
71
+ className: "text-2xl font-bold text-success tabular-nums",
72
72
  children: [i.csat.toFixed(0), "%"]
73
73
  }),
74
74
  /* @__PURE__ */ n("p", {
@@ -78,14 +78,14 @@ function i({ metrics: i }) {
78
78
  ]
79
79
  }),
80
80
  /* @__PURE__ */ r("div", {
81
- className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
81
+ className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
82
82
  children: [
83
83
  /* @__PURE__ */ n("p", {
84
84
  className: "text-xs font-medium mb-1 text-tertiary",
85
85
  children: "NPS"
86
86
  }),
87
87
  /* @__PURE__ */ n("p", {
88
- className: "text-2xl font-bold text-accent",
88
+ className: "text-2xl font-bold text-accent tabular-nums",
89
89
  children: i.nps.toFixed(0)
90
90
  }),
91
91
  /* @__PURE__ */ n("p", {
@@ -121,15 +121,15 @@ function i({ metrics: i }) {
121
121
  }), /* @__PURE__ */ r("div", {
122
122
  className: "flex-1 flex items-center gap-2",
123
123
  children: [/* @__PURE__ */ n("div", {
124
- className: "flex-1 h-6 rounded bg-muted",
124
+ className: "flex-1 h-6 rounded bg-bg-sunken",
125
125
  children: /* @__PURE__ */ n("div", {
126
- className: "h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-primary",
126
+ className: "h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-action-primary-bg",
127
127
  style: {
128
128
  width: `${s}%`,
129
129
  minWidth: t.count > 0 ? "30px" : "0"
130
130
  },
131
131
  children: t.count > 0 && /* @__PURE__ */ n("span", {
132
- className: "text-xs font-medium text-primary-foreground",
132
+ className: "text-xs font-medium text-action-primary-text",
133
133
  children: t.count
134
134
  })
135
135
  })
@@ -1 +1 @@
1
- {"version":3,"file":"SatisfactionDistribution.js","names":[],"sources":["../../../../src/support/components/analytics/SatisfactionDistribution.tsx"],"sourcesContent":["import { ThumbsUp, Star } from 'lucide-react';\n\ninterface SatisfactionMetrics {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalResponses: number;\n averageRating: number;\n csat: number;\n nps: number;\n ratings: {\n rating1: number;\n rating2: number;\n rating3: number;\n rating4: number;\n rating5: number;\n };\n}\n\ninterface SatisfactionDistributionProps {\n metrics: SatisfactionMetrics;\n}\n\nexport function SatisfactionDistribution({ metrics }: SatisfactionDistributionProps) {\n const ratingsArray = [\n { stars: 5, count: metrics.ratings.rating5 },\n { stars: 4, count: metrics.ratings.rating4 },\n { stars: 3, count: metrics.ratings.rating3 },\n { stars: 2, count: metrics.ratings.rating2 },\n { stars: 1, count: metrics.ratings.rating1 },\n ];\n\n const maxCount = Math.max(...ratingsArray.map((r) => r.count));\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <ThumbsUp size={20} />\n Customer Satisfaction\n </h2>\n\n <div className=\"grid grid-cols-3 gap-4 mb-6\">\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Avg Rating</p>\n <p className=\"text-2xl font-bold text-primary\">{metrics.averageRating.toFixed(1)}</p>\n <div className=\"flex items-center justify-center gap-1 mt-1\">\n {[...Array(5)].map((_, i) => (\n <Star\n key={i}\n size={12}\n className={\n i < Math.round(metrics.averageRating)\n ? 'text-warning fill-warning'\n : 'text-tertiary'\n }\n />\n ))}\n </div>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">CSAT</p>\n <p className=\"text-2xl font-bold text-success\">{metrics.csat.toFixed(0)}%</p>\n <p className=\"text-xs mt-1 text-tertiary\">Satisfaction</p>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">NPS</p>\n <p className=\"text-2xl font-bold text-accent\">{metrics.nps.toFixed(0)}</p>\n <p className=\"text-xs mt-1 text-tertiary\">Promoter Score</p>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">\n Rating Distribution ({metrics.totalResponses} responses)\n </h3>\n <div className=\"space-y-2\">\n {ratingsArray.map((item) => {\n const percentage =\n metrics.totalResponses > 0 ? (item.count / metrics.totalResponses) * 100 : 0;\n const widthPercent = maxCount > 0 ? (item.count / maxCount) * 100 : 0;\n\n return (\n <div key={item.stars} className=\"flex items-center gap-3\">\n <div className=\"flex items-center gap-1 w-16\">\n <span className=\"text-sm font-medium text-primary\">{item.stars}</span>\n <Star size={14} className=\"text-warning fill-warning\" />\n </div>\n <div className=\"flex-1 flex items-center gap-2\">\n <div className=\"flex-1 h-6 rounded bg-muted\">\n <div\n className=\"h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-primary\"\n style={{\n width: `${widthPercent}%`,\n minWidth: item.count > 0 ? '30px' : '0',\n }}\n >\n {item.count > 0 && (\n <span className=\"text-xs font-medium text-primary-foreground\">\n {item.count}\n </span>\n )}\n </div>\n </div>\n <span className=\"text-xs w-12 text-right text-tertiary\">\n {percentage.toFixed(0)}%\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAyB,EAAE,cAA0C;CACnF,IAAM,IAAe;EACnB;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC7C,EAEK,IAAW,KAAK,IAAI,GAAG,EAAa,KAAK,MAAM,EAAE,MAAM,CAAC;AAE9D,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA,EAAA,wBAEnB;;GAEL,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAc,CAAA;OACpE,kBAAC,KAAD;QAAG,WAAU;kBAAmC,EAAQ,cAAc,QAAQ,EAAE;QAAK,CAAA;OACrF,kBAAC,OAAD;QAAK,WAAU;kBACZ,CAAC,GAAG;;;;;;SAAQ,CAAC,CAAC,KAAK,GAAG,MACrB,kBAAC,GAAD;SAEE,MAAM;SACN,WACE,IAAI,KAAK,MAAM,EAAQ,cAAc,GACjC,8BACA;SAEN,EAPK,EAOL,CACF;QACE,CAAA;OACF;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAQ,CAAA;OAC9D,kBAAC,KAAD;QAAG,WAAU;kBAAb,CAAgD,EAAQ,KAAK,QAAQ,EAAE,EAAC,IAAK;;OAC7E,kBAAC,KAAD;QAAG,WAAU;kBAA6B;QAAgB,CAAA;OACtD;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAO,CAAA;OAC7D,kBAAC,KAAD;QAAG,WAAU;kBAAkC,EAAQ,IAAI,QAAQ,EAAE;QAAK,CAAA;OAC1E,kBAAC,KAAD;QAAG,WAAU;kBAA6B;QAAkB,CAAA;OACxD;;KACF;;GAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd;KAA0D;KAClC,EAAQ;KAAe;KAC1C;OACL,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAa,KAAK,MAAS;KAC1B,IAAM,IACJ,EAAQ,iBAAiB,IAAK,EAAK,QAAQ,EAAQ,iBAAkB,MAAM,GACvE,IAAe,IAAW,IAAK,EAAK,QAAQ,IAAY,MAAM;AAEpE,YACE,kBAAC,OAAD;MAAsB,WAAU;gBAAhC,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,QAAD;QAAM,WAAU;kBAAoC,EAAK;QAAa,CAAA,EACtE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,CACpD;UACN,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAU;SACV,OAAO;UACL,OAAO,GAAG,EAAa;UACvB,UAAU,EAAK,QAAQ,IAAI,SAAS;UACrC;mBAEA,EAAK,QAAQ,KACZ,kBAAC,QAAD;UAAM,WAAU;oBACb,EAAK;UACD,CAAA;SAEL,CAAA;QACF,CAAA,EACN,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CACG,EAAW,QAAQ,EAAE,EAAC,IAClB;UACH;SACF;QAzBI,EAAK,MAyBT;MAER;IACE,CAAA,CACF,EAAA,CAAA;GACF"}
1
+ {"version":3,"file":"SatisfactionDistribution.js","names":[],"sources":["../../../../src/support/components/analytics/SatisfactionDistribution.tsx"],"sourcesContent":["import { ThumbsUp, Star } from 'lucide-react';\n\ninterface SatisfactionMetrics {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalResponses: number;\n averageRating: number;\n csat: number;\n nps: number;\n ratings: {\n rating1: number;\n rating2: number;\n rating3: number;\n rating4: number;\n rating5: number;\n };\n}\n\ninterface SatisfactionDistributionProps {\n metrics: SatisfactionMetrics;\n}\n\nexport function SatisfactionDistribution({ metrics }: SatisfactionDistributionProps) {\n const ratingsArray = [\n { stars: 5, count: metrics.ratings.rating5 },\n { stars: 4, count: metrics.ratings.rating4 },\n { stars: 3, count: metrics.ratings.rating3 },\n { stars: 2, count: metrics.ratings.rating2 },\n { stars: 1, count: metrics.ratings.rating1 },\n ];\n\n const maxCount = Math.max(...ratingsArray.map((r) => r.count));\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <ThumbsUp size={20} />\n Customer Satisfaction\n </h2>\n\n <div className=\"grid grid-cols-3 gap-4 mb-6\">\n <div className=\"text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Avg Rating</p>\n <p className=\"text-2xl font-bold text-primary tabular-nums\">\n {metrics.averageRating.toFixed(1)}\n </p>\n <div className=\"flex items-center justify-center gap-1 mt-1\">\n {[...Array(5)].map((_, i) => (\n <Star\n key={i}\n size={12}\n className={\n i < Math.round(metrics.averageRating)\n ? 'text-warning fill-warning'\n : 'text-tertiary'\n }\n />\n ))}\n </div>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">CSAT</p>\n <p className=\"text-2xl font-bold text-success tabular-nums\">{metrics.csat.toFixed(0)}%</p>\n <p className=\"text-xs mt-1 text-tertiary\">Satisfaction</p>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">NPS</p>\n <p className=\"text-2xl font-bold text-accent tabular-nums\">{metrics.nps.toFixed(0)}</p>\n <p className=\"text-xs mt-1 text-tertiary\">Promoter Score</p>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">\n Rating Distribution ({metrics.totalResponses} responses)\n </h3>\n <div className=\"space-y-2\">\n {ratingsArray.map((item) => {\n const percentage =\n metrics.totalResponses > 0 ? (item.count / metrics.totalResponses) * 100 : 0;\n const widthPercent = maxCount > 0 ? (item.count / maxCount) * 100 : 0;\n\n return (\n <div key={item.stars} className=\"flex items-center gap-3\">\n <div className=\"flex items-center gap-1 w-16\">\n <span className=\"text-sm font-medium text-primary\">{item.stars}</span>\n <Star size={14} className=\"text-warning fill-warning\" />\n </div>\n <div className=\"flex-1 flex items-center gap-2\">\n <div className=\"flex-1 h-6 rounded bg-bg-sunken\">\n <div\n className=\"h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-action-primary-bg\"\n style={{\n width: `${widthPercent}%`,\n minWidth: item.count > 0 ? '30px' : '0',\n }}\n >\n {item.count > 0 && (\n <span className=\"text-xs font-medium text-action-primary-text\">\n {item.count}\n </span>\n )}\n </div>\n </div>\n <span className=\"text-xs w-12 text-right text-tertiary\">\n {percentage.toFixed(0)}%\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAyB,EAAE,cAA0C;CACnF,IAAM,IAAe;EACnB;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC7C,EAEK,IAAW,KAAK,IAAI,GAAG,EAAa,KAAK,MAAM,EAAE,MAAM,CAAC;AAE9D,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA,EAAA,wBAEnB;;GAEL,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAc,CAAA;OACpE,kBAAC,KAAD;QAAG,WAAU;kBACV,EAAQ,cAAc,QAAQ,EAAE;QAC/B,CAAA;OACJ,kBAAC,OAAD;QAAK,WAAU;kBACZ,CAAC,GAAG;;;;;;SAAQ,CAAC,CAAC,KAAK,GAAG,MACrB,kBAAC,GAAD;SAEE,MAAM;SACN,WACE,IAAI,KAAK,MAAM,EAAQ,cAAc,GACjC,8BACA;SAEN,EAPK,EAOL,CACF;QACE,CAAA;OACF;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAQ,CAAA;OAC9D,kBAAC,KAAD;QAAG,WAAU;kBAAb,CAA6D,EAAQ,KAAK,QAAQ,EAAE,EAAC,IAAK;;OAC1F,kBAAC,KAAD;QAAG,WAAU;kBAA6B;QAAgB,CAAA;OACtD;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAO,CAAA;OAC7D,kBAAC,KAAD;QAAG,WAAU;kBAA+C,EAAQ,IAAI,QAAQ,EAAE;QAAK,CAAA;OACvF,kBAAC,KAAD;QAAG,WAAU;kBAA6B;QAAkB,CAAA;OACxD;;KACF;;GAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd;KAA0D;KAClC,EAAQ;KAAe;KAC1C;OACL,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAa,KAAK,MAAS;KAC1B,IAAM,IACJ,EAAQ,iBAAiB,IAAK,EAAK,QAAQ,EAAQ,iBAAkB,MAAM,GACvE,IAAe,IAAW,IAAK,EAAK,QAAQ,IAAY,MAAM;AAEpE,YACE,kBAAC,OAAD;MAAsB,WAAU;gBAAhC,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,QAAD;QAAM,WAAU;kBAAoC,EAAK;QAAa,CAAA,EACtE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,CACpD;UACN,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAU;SACV,OAAO;UACL,OAAO,GAAG,EAAa;UACvB,UAAU,EAAK,QAAQ,IAAI,SAAS;UACrC;mBAEA,EAAK,QAAQ,KACZ,kBAAC,QAAD;UAAM,WAAU;oBACb,EAAK;UACD,CAAA;SAEL,CAAA;QACF,CAAA,EACN,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CACG,EAAW,QAAQ,EAAE,EAAC,IAClB;UACH;SACF;QAzBI,EAAK,MAyBT;MAER;IACE,CAAA,CACF,EAAA,CAAA;GACF"}
@@ -4,7 +4,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  function i({ agents: i }) {
5
5
  let a = i.slice(0, 5), o = {
6
6
  1: "bg-warning/10 text-warning",
7
- 2: "bg-muted text-muted-foreground",
7
+ 2: "bg-bg-sunken text-text-secondary",
8
8
  3: "bg-accent/10 text-accent"
9
9
  };
10
10
  return /* @__PURE__ */ r("div", {
@@ -15,9 +15,9 @@ function i({ agents: i }) {
15
15
  }), /* @__PURE__ */ r("div", {
16
16
  className: "space-y-4",
17
17
  children: [a.map((i) => /* @__PURE__ */ r("div", {
18
- className: "flex items-center gap-4 p-3 rounded-lg bg-muted transition-colors duration-200 hover:bg-muted/80",
18
+ className: "flex items-center gap-4 p-3 rounded-lg bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80",
19
19
  children: [/* @__PURE__ */ n("div", {
20
- className: `w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 hover:scale-105 ${o[i.rank] || "bg-muted text-muted-foreground"}`,
20
+ className: `w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 ${o[i.rank] || "bg-bg-sunken text-text-secondary"}`,
21
21
  children: i.rank <= 3 ? /* @__PURE__ */ n(e, { size: 18 }) : i.rank
22
22
  }), /* @__PURE__ */ r("div", {
23
23
  className: "flex-1 min-w-0",
@@ -1 +1 @@
1
- {"version":3,"file":"TopAgents.js","names":[],"sources":["../../../../src/support/components/analytics/TopAgents.tsx"],"sourcesContent":["import { Award, Star } from 'lucide-react';\n\ninterface TopAgent {\n agent: {\n id: string;\n user: {\n id: string;\n name: string;\n email: string;\n avatarUrl?: string | null;\n };\n };\n ticketsResolved: number;\n avgRating: number;\n rank: number;\n}\n\ninterface TopAgentsProps {\n agents: TopAgent[];\n}\n\nexport function TopAgents({ agents }: TopAgentsProps) {\n const topAgents = agents.slice(0, 5);\n const rankClasses: Record<number, string> = {\n 1: 'bg-warning/10 text-warning',\n 2: 'bg-muted text-muted-foreground',\n 3: 'bg-accent/10 text-accent',\n };\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <Award size={20} />\n Top Performing Agents\n </h2>\n\n <div className=\"space-y-4\">\n {topAgents.map((agent) => {\n return (\n <div\n key={agent.agent.id}\n className=\"flex items-center gap-4 p-3 rounded-lg bg-muted transition-colors duration-200 hover:bg-muted/80\"\n >\n <div\n className={`w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 hover:scale-105 ${rankClasses[agent.rank] || 'bg-muted text-muted-foreground'}`}\n >\n {agent.rank <= 3 ? <Award size={18} /> : agent.rank}\n </div>\n\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between mb-1\">\n <p className=\"font-semibold truncate text-primary\">{agent.agent.user.name}</p>\n <div className=\"flex items-center gap-1\">\n <Star size={14} className=\"text-warning fill-warning\" />\n <span className=\"text-sm font-medium text-primary\">\n {agent.avgRating.toFixed(1)}\n </span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <p className=\"text-xs truncate text-tertiary\">{agent.agent.user.email}</p>\n <p className=\"text-xs font-medium text-secondary\">\n {agent.ticketsResolved} resolved\n </p>\n </div>\n </div>\n </div>\n );\n })}\n\n {topAgents.length === 0 && (\n <div className=\"text-center py-8\">\n <p className=\"text-tertiary\">No agent data available</p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAqBA,SAAgB,EAAU,EAAE,aAA0B;CACpD,IAAM,IAAY,EAAO,MAAM,GAAG,EAAE,EAC9B,IAAsC;EAC1C,GAAG;EACH,GAAG;EACH,GAAG;EACJ;AAED,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,EAAA,wBAEhB;MAEL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACG,EAAU,KAAK,MAEZ,kBAAC,OAAD;IAEE,WAAU;cAFZ,CAIE,kBAAC,OAAD;KACE,WAAW,6IAA6I,EAAY,EAAM,SAAS;eAElL,EAAM,QAAQ,IAAI,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,GAAG,EAAM;KAC3C,CAAA,EAEN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAuC,EAAM,MAAM,KAAK;OAAS,CAAA,EAC9E,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,EACxD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAM,UAAU,QAAQ,EAAE;QACtB,CAAA,CACH;SACF;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAkC,EAAM,MAAM,KAAK;OAAU,CAAA,EAC1E,kBAAC,KAAD;OAAG,WAAU;iBAAb,CACG,EAAM,iBAAgB,YACrB;SACA;QACF;OACF;MA1BC,EAAM,MAAM,GA0Bb,CAER,EAED,EAAU,WAAW,KACpB,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAAgB;KAA2B,CAAA;IACpD,CAAA,CAEJ;KACF"}
1
+ {"version":3,"file":"TopAgents.js","names":[],"sources":["../../../../src/support/components/analytics/TopAgents.tsx"],"sourcesContent":["import { Award, Star } from 'lucide-react';\n\ninterface TopAgent {\n agent: {\n id: string;\n user: {\n id: string;\n name: string;\n email: string;\n avatarUrl?: string | null;\n };\n };\n ticketsResolved: number;\n avgRating: number;\n rank: number;\n}\n\ninterface TopAgentsProps {\n agents: TopAgent[];\n}\n\nexport function TopAgents({ agents }: TopAgentsProps) {\n const topAgents = agents.slice(0, 5);\n const rankClasses: Record<number, string> = {\n 1: 'bg-warning/10 text-warning',\n 2: 'bg-bg-sunken text-text-secondary',\n 3: 'bg-accent/10 text-accent',\n };\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <Award size={20} />\n Top Performing Agents\n </h2>\n\n <div className=\"space-y-4\">\n {topAgents.map((agent) => {\n return (\n <div\n key={agent.agent.id}\n className=\"flex items-center gap-4 p-3 rounded-lg bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80\"\n >\n <div\n className={`w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 ${rankClasses[agent.rank] || 'bg-bg-sunken text-text-secondary'}`}\n >\n {agent.rank <= 3 ? <Award size={18} /> : agent.rank}\n </div>\n\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between mb-1\">\n <p className=\"font-semibold truncate text-primary\">{agent.agent.user.name}</p>\n <div className=\"flex items-center gap-1\">\n <Star size={14} className=\"text-warning fill-warning\" />\n <span className=\"text-sm font-medium text-primary\">\n {agent.avgRating.toFixed(1)}\n </span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <p className=\"text-xs truncate text-tertiary\">{agent.agent.user.email}</p>\n <p className=\"text-xs font-medium text-secondary\">\n {agent.ticketsResolved} resolved\n </p>\n </div>\n </div>\n </div>\n );\n })}\n\n {topAgents.length === 0 && (\n <div className=\"text-center py-8\">\n <p className=\"text-tertiary\">No agent data available</p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAqBA,SAAgB,EAAU,EAAE,aAA0B;CACpD,IAAM,IAAY,EAAO,MAAM,GAAG,EAAE,EAC9B,IAAsC;EAC1C,GAAG;EACH,GAAG;EACH,GAAG;EACJ;AAED,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,EAAA,wBAEhB;MAEL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACG,EAAU,KAAK,MAEZ,kBAAC,OAAD;IAEE,WAAU;cAFZ,CAIE,kBAAC,OAAD;KACE,WAAW,6HAA6H,EAAY,EAAM,SAAS;eAElK,EAAM,QAAQ,IAAI,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,GAAG,EAAM;KAC3C,CAAA,EAEN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAuC,EAAM,MAAM,KAAK;OAAS,CAAA,EAC9E,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,EACxD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAM,UAAU,QAAQ,EAAE;QACtB,CAAA,CACH;SACF;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAkC,EAAM,MAAM,KAAK;OAAU,CAAA,EAC1E,kBAAC,KAAD;OAAG,WAAU;iBAAb,CACG,EAAM,iBAAgB,YACrB;SACA;QACF;OACF;MA1BC,EAAM,MAAM,GA0Bb,CAER,EAED,EAAU,WAAW,KACpB,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAAgB;KAA2B,CAAA;IACpD,CAAA,CAEJ;KACF"}
@@ -20,7 +20,7 @@ function r({ trends: r, period: i }) {
20
20
  children: r.map((e) => {
21
21
  let r = (e.value - o) / s * 100, i = new Date(e.timestamp);
22
22
  return /* @__PURE__ */ n("div", {
23
- className: "flex items-center gap-3 transition-colors duration-200 hover:bg-muted/50 p-1 rounded",
23
+ className: "flex items-center gap-3 transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded",
24
24
  children: [/* @__PURE__ */ t("span", {
25
25
  className: "text-xs w-20 text-right text-tertiary",
26
26
  children: e.label || i.toLocaleDateString("en-US", {
@@ -30,7 +30,7 @@ function r({ trends: r, period: i }) {
30
30
  }), /* @__PURE__ */ n("div", {
31
31
  className: "flex-1 flex items-center gap-2",
32
32
  children: [/* @__PURE__ */ t("div", {
33
- className: "h-8 rounded transition-all duration-300 bg-primary/80 hover:bg-primary",
33
+ className: "h-8 rounded transition-all duration-300 bg-action-primary-bg/80 hover:bg-action-primary-bg",
34
34
  style: { width: `${Math.max(r, 2)}%` }
35
35
  }), /* @__PURE__ */ t("span", {
36
36
  className: "text-sm font-medium text-primary",
@@ -1 +1 @@
1
- {"version":3,"file":"TrendChart.js","names":[],"sources":["../../../../src/support/components/analytics/TrendChart.tsx"],"sourcesContent":["import { TrendingUp } from 'lucide-react';\n\ninterface TrendDataPoint {\n timestamp: string;\n value: number;\n label?: string | null;\n}\n\ninterface TrendChartProps {\n trends: TrendDataPoint[];\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n}\n\nexport function TrendChart({ trends, period }: TrendChartProps) {\n if (!trends || trends.length === 0) {\n return null;\n }\n\n const maxValue = Math.max(...trends.map((t) => t.value));\n const minValue = Math.min(...trends.map((t) => t.value));\n const range = maxValue - minValue || 1;\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <div className=\"flex items-center justify-between mb-6\">\n <div>\n <h2 className=\"text-xl font-semibold flex items-center gap-2 text-primary\">\n <TrendingUp size={20} />\n Ticket Volume Trends\n </h2>\n <p className=\"text-sm mt-1 text-secondary\">{period.label}</p>\n </div>\n </div>\n\n <div className=\"space-y-2\">\n {trends.map((point) => {\n const heightPercent = ((point.value - minValue) / range) * 100;\n const date = new Date(point.timestamp);\n const label =\n point.label || date.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n\n return (\n <div\n key={point.timestamp}\n className=\"flex items-center gap-3 transition-colors duration-200 hover:bg-muted/50 p-1 rounded\"\n >\n <span className=\"text-xs w-20 text-right text-tertiary\">{label}</span>\n <div className=\"flex-1 flex items-center gap-2\">\n <div\n className=\"h-8 rounded transition-all duration-300 bg-primary/80 hover:bg-primary\"\n style={{\n width: `${Math.max(heightPercent, 2)}%`,\n }}\n />\n <span className=\"text-sm font-medium text-primary\">{point.value}</span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAiBA,SAAgB,EAAW,EAAE,WAAQ,aAA2B;AAC9D,KAAI,CAAC,KAAU,EAAO,WAAW,EAC/B,QAAO;CAGT,IAAM,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAQ,IAAW,KAAY;AAErC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,uBAErB;OACL,kBAAC,KAAD;IAAG,WAAU;cAA+B,EAAO;IAAU,CAAA,CACzD,EAAA,CAAA;GACF,CAAA,EAEN,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAO,KAAK,MAAU;IACrB,IAAM,KAAkB,EAAM,QAAQ,KAAY,IAAS,KACrD,IAAO,IAAI,KAAK,EAAM,UAAU;AAItC,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,QAAD;MAAM,WAAU;gBAPlB,EAAM,SAAS,EAAK,mBAAmB,SAAS;OAAE,OAAO;OAAS,KAAK;OAAW,CAAC;MAOX,CAAA,EACtE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OACE,WAAU;OACV,OAAO,EACL,OAAO,GAAG,KAAK,IAAI,GAAe,EAAE,CAAC,IACtC;OACD,CAAA,EACF,kBAAC,QAAD;OAAM,WAAU;iBAAoC,EAAM;OAAa,CAAA,CACnE;QACF;OAbC,EAAM,UAaP;KAER;GACE,CAAA,CACF"}
1
+ {"version":3,"file":"TrendChart.js","names":[],"sources":["../../../../src/support/components/analytics/TrendChart.tsx"],"sourcesContent":["import { TrendingUp } from 'lucide-react';\n\ninterface TrendDataPoint {\n timestamp: string;\n value: number;\n label?: string | null;\n}\n\ninterface TrendChartProps {\n trends: TrendDataPoint[];\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n}\n\nexport function TrendChart({ trends, period }: TrendChartProps) {\n if (!trends || trends.length === 0) {\n return null;\n }\n\n const maxValue = Math.max(...trends.map((t) => t.value));\n const minValue = Math.min(...trends.map((t) => t.value));\n const range = maxValue - minValue || 1;\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <div className=\"flex items-center justify-between mb-6\">\n <div>\n <h2 className=\"text-xl font-semibold flex items-center gap-2 text-primary\">\n <TrendingUp size={20} />\n Ticket Volume Trends\n </h2>\n <p className=\"text-sm mt-1 text-secondary\">{period.label}</p>\n </div>\n </div>\n\n <div className=\"space-y-2\">\n {trends.map((point) => {\n const heightPercent = ((point.value - minValue) / range) * 100;\n const date = new Date(point.timestamp);\n const label =\n point.label || date.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n\n return (\n <div\n key={point.timestamp}\n className=\"flex items-center gap-3 transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded\"\n >\n <span className=\"text-xs w-20 text-right text-tertiary\">{label}</span>\n <div className=\"flex-1 flex items-center gap-2\">\n <div\n className=\"h-8 rounded transition-all duration-300 bg-action-primary-bg/80 hover:bg-action-primary-bg\"\n style={{\n width: `${Math.max(heightPercent, 2)}%`,\n }}\n />\n <span className=\"text-sm font-medium text-primary\">{point.value}</span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAiBA,SAAgB,EAAW,EAAE,WAAQ,aAA2B;AAC9D,KAAI,CAAC,KAAU,EAAO,WAAW,EAC/B,QAAO;CAGT,IAAM,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAQ,IAAW,KAAY;AAErC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,uBAErB;OACL,kBAAC,KAAD;IAAG,WAAU;cAA+B,EAAO;IAAU,CAAA,CACzD,EAAA,CAAA;GACF,CAAA,EAEN,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAO,KAAK,MAAU;IACrB,IAAM,KAAkB,EAAM,QAAQ,KAAY,IAAS,KACrD,IAAO,IAAI,KAAK,EAAM,UAAU;AAItC,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,QAAD;MAAM,WAAU;gBAPlB,EAAM,SAAS,EAAK,mBAAmB,SAAS;OAAE,OAAO;OAAS,KAAK;OAAW,CAAC;MAOX,CAAA,EACtE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OACE,WAAU;OACV,OAAO,EACL,OAAO,GAAG,KAAK,IAAI,GAAe,EAAE,CAAC,IACtC;OACD,CAAA,EACF,kBAAC,QAAD;OAAM,WAAU;iBAAoC,EAAM;OAAa,CAAA,CACnE;QACF;OAbC,EAAM,UAaP;KAER;GACE,CAAA,CACF"}