@burdenoff/microfe-support 2026.625.1 → 2026.626.1

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 (36) hide show
  1. package/dist/support/components/PageLayout.js +64 -51
  2. package/dist/support/components/PageLayout.js.map +1 -1
  3. package/dist/support/components/ui.js +2 -2
  4. package/dist/support/pages/AnalyticsPage.js +145 -114
  5. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  6. package/dist/support/pages/ArticleDetailAdminPage.js +180 -143
  7. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  8. package/dist/support/pages/ArticleDetailUserPage.js +56 -49
  9. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  10. package/dist/support/pages/ContactInquiriesPage.js +51 -61
  11. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  12. package/dist/support/pages/ContactInquiryDetailPage.js +225 -205
  13. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  14. package/dist/support/pages/CreateArticlePage.js +50 -46
  15. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  16. package/dist/support/pages/CreateTicketPage.js +122 -116
  17. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  18. package/dist/support/pages/EditArticlePage.js +76 -80
  19. package/dist/support/pages/EditArticlePage.js.map +1 -1
  20. package/dist/support/pages/JobApplicationDetailPage.js +292 -269
  21. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  22. package/dist/support/pages/JobApplicationsPage.js +53 -63
  23. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  24. package/dist/support/pages/KnowledgeBaseAdminPage.js +84 -81
  25. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  26. package/dist/support/pages/KnowledgeBaseUserPage.js +79 -76
  27. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  28. package/dist/support/pages/SettingsPage.js +215 -182
  29. package/dist/support/pages/SettingsPage.js.map +1 -1
  30. package/dist/support/pages/TicketDetailAdminPage.js +159 -129
  31. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  32. package/dist/support/pages/TicketDetailUserPage.js +175 -142
  33. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  34. package/dist/support/pages/TicketListPage.js +173 -169
  35. package/dist/support/pages/TicketListPage.js.map +1 -1
  36. package/package.json +2 -2
@@ -1,7 +1,8 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { AuroraBackground as i, GradientText as a, IllustratedEmptyState as o } from "@burdenoff/fe-libs/ui";
3
4
  //#region src/support/components/PageLayout.tsx
4
- var r = {
5
+ var s = {
5
6
  sm: "max-w-screen-sm",
6
7
  md: "max-w-screen-md",
7
8
  lg: "max-w-screen-lg",
@@ -10,78 +11,90 @@ var r = {
10
11
  "3xl": "max-w-[1600px]",
11
12
  full: "max-w-full"
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
- 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-200", f),
16
- children: /* @__PURE__ */ n("div", {
17
- className: e("mx-auto w-full", r[u], p),
18
- children: [d && (a || c) && /* @__PURE__ */ n("header", {
19
- className: "mb-6 sm:mb-8",
20
- children: [/* @__PURE__ */ n("div", {
21
- className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
22
- children: [/* @__PURE__ */ n("div", {
23
- className: "space-y-1",
24
- children: [(a || s) && /* @__PURE__ */ n("div", {
25
- className: "flex items-center gap-3",
26
- children: [s && /* @__PURE__ */ t("div", {
27
- className: "flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary",
28
- children: s
29
- }), a && /* @__PURE__ */ t("h1", {
30
- className: "text-2xl sm:text-3xl font-bold tracking-tight text-text-primary",
31
- children: a
14
+ function c({ children: o, title: c, subtitle: l, icon: u, headerActions: d, headerContent: f, maxWidth: p = "xl", showHeader: m = !0, className: h, contentClassName: g, aurora: _ = !1, titleAccent: v }) {
15
+ let y = v && c && c.endsWith(v) ? c.slice(0, c.length - v.length) : null;
16
+ return /* @__PURE__ */ n("div", {
17
+ 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", h),
18
+ children: /* @__PURE__ */ r("div", {
19
+ className: e("mx-auto w-full", s[p], g),
20
+ children: [m && (c || d) && /* @__PURE__ */ r("header", {
21
+ className: e("mb-6 sm:mb-8", _ && "relative overflow-hidden rounded-2xl border border-border-seam bg-bg-surface/40 p-4 sm:p-6 backdrop-blur-[var(--blur-glass)]"),
22
+ children: [
23
+ _ && /* @__PURE__ */ n(i, { intensity: "subtle" }),
24
+ /* @__PURE__ */ r("div", {
25
+ className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
26
+ children: [/* @__PURE__ */ r("div", {
27
+ className: "space-y-1",
28
+ children: [(c || u) && /* @__PURE__ */ r("div", {
29
+ className: "flex items-center gap-3",
30
+ children: [u && /* @__PURE__ */ n("div", {
31
+ className: "flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary",
32
+ children: u
33
+ }), c && /* @__PURE__ */ n("h1", {
34
+ className: "text-2xl sm:text-3xl font-bold tracking-tight text-text-primary",
35
+ children: y === null ? c : /* @__PURE__ */ r(t, { children: [y, /* @__PURE__ */ n(a, { children: v })] })
36
+ })]
37
+ }), l && /* @__PURE__ */ n("p", {
38
+ className: "text-sm sm:text-base text-text-secondary max-w-2xl",
39
+ children: l
32
40
  })]
33
- }), o && /* @__PURE__ */ t("p", {
34
- className: "text-sm sm:text-base text-text-secondary max-w-2xl",
35
- children: o
41
+ }), d && /* @__PURE__ */ n("div", {
42
+ className: "flex items-center gap-2 flex-shrink-0",
43
+ children: d
36
44
  })]
37
- }), c && /* @__PURE__ */ t("div", {
38
- className: "flex items-center gap-2 flex-shrink-0",
39
- children: c
40
- })]
41
- }), l && /* @__PURE__ */ t("div", {
42
- className: "mt-4",
43
- children: l
44
- })]
45
- }), /* @__PURE__ */ t("div", {
45
+ }),
46
+ f && /* @__PURE__ */ n("div", {
47
+ className: "mt-4",
48
+ children: f
49
+ })
50
+ ]
51
+ }), /* @__PURE__ */ n("div", {
46
52
  className: "space-y-6",
47
- children: i
53
+ children: o
48
54
  })]
49
55
  })
50
56
  });
51
57
  }
52
- function a({ icon: r, title: i, description: a, action: o, className: s }) {
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-200", s),
58
+ function l({ icon: t, illustration: i, illustrationAlt: a, title: s, description: c, action: l, className: u }) {
59
+ return i ? /* @__PURE__ */ n(o, {
60
+ illustration: i,
61
+ alt: a,
62
+ title: s,
63
+ description: c,
64
+ action: l,
65
+ className: e("animate-in fade-in-0 zoom-in-95 duration-200", u)
66
+ }) : /* @__PURE__ */ r("div", {
67
+ 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", u),
55
68
  children: [
56
- r && /* @__PURE__ */ t("div", {
69
+ t && /* @__PURE__ */ n("div", {
57
70
  className: "mb-4 p-4 rounded-2xl bg-bg-sunken/50 text-text-secondary",
58
- children: r
71
+ children: t
59
72
  }),
60
- /* @__PURE__ */ t("h3", {
73
+ /* @__PURE__ */ n("h3", {
61
74
  className: "text-lg font-semibold text-text-primary mb-1",
62
- children: i
75
+ children: s
63
76
  }),
64
- a && /* @__PURE__ */ t("p", {
77
+ c && /* @__PURE__ */ n("p", {
65
78
  className: "text-sm text-text-secondary max-w-sm mb-4",
66
- children: a
79
+ children: c
67
80
  }),
68
- o
81
+ l
69
82
  ]
70
83
  });
71
84
  }
72
- function o({ message: r = "Loading...", className: i }) {
73
- return /* @__PURE__ */ n("div", {
85
+ function u({ message: t = "Loading...", className: i }) {
86
+ return /* @__PURE__ */ r("div", {
74
87
  className: e("flex flex-col items-center justify-center py-20", i),
75
- children: [/* @__PURE__ */ n("div", {
88
+ children: [/* @__PURE__ */ r("div", {
76
89
  className: "relative",
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
- }), /* @__PURE__ */ t("span", {
90
+ children: [/* @__PURE__ */ n("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ n("div", { className: "relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin" })]
91
+ }), /* @__PURE__ */ n("span", {
79
92
  className: "mt-6 text-sm font-medium text-text-secondary",
80
- children: r
93
+ children: t
81
94
  })]
82
95
  });
83
96
  }
84
97
  //#endregion
85
- export { a as EmptyState, o as LoadingState, i as PageLayout };
98
+ export { l as EmptyState, u as LoadingState, c as PageLayout };
86
99
 
87
100
  //# sourceMappingURL=PageLayout.js.map
@@ -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-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"}
1
+ {"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/support/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { AuroraBackground, GradientText, IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\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 * Boff UI 2.0 living-glass hero backdrop. When true, the header zone is wrapped\n * in a `relative overflow-hidden` container with a subtle drifting AuroraBackground\n * behind it (sits at -z-10, never moves content, reduced-motion safe). Reserve for\n * the MFE's primary landing page — ONE aurora per MFE.\n */\n aurora?: boolean;\n /**\n * When provided, the title is split so this trailing noun is rendered with a\n * brand GradientText fill (one hero heading accent per page). The remaining\n * leading text stays in the plain title colour.\n */\n titleAccent?: 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 aurora = false,\n titleAccent,\n}: PageLayoutProps) {\n // Split the title so the trailing accent noun can be gradient-filled while the\n // leading portion stays plain. Falls back to the full title when no accent or\n // when the accent isn't a trailing substring of the title.\n const accentLead =\n titleAccent && title && title.endsWith(titleAccent)\n ? title.slice(0, title.length - titleAccent.length)\n : null;\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\n className={cn(\n 'mb-6 sm:mb-8',\n // Living-glass hero backdrop: contain the aurora and give it room to breathe.\n aurora &&\n 'relative overflow-hidden rounded-2xl border border-border-seam bg-bg-surface/40 p-4 sm:p-6 backdrop-blur-[var(--blur-glass)]'\n )}\n >\n {aurora && <AuroraBackground intensity=\"subtle\" />}\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 {accentLead !== null ? (\n <>\n {accentLead}\n <GradientText>{titleAccent}</GradientText>\n </>\n ) : (\n title\n )}\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 illustration,\n illustrationAlt,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n /**\n * Boff UI 2.0 on-brand illustration name (served by the host shell at\n * /illustrations/<name>.webp). When provided, the empty state renders the\n * richer IllustratedEmptyState instead of the plain icon variant. Reserve for\n * genuine zero/no-results states — keep gate/permission states on the icon.\n */\n illustration?: string;\n illustrationAlt?: string;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n if (illustration) {\n return (\n <IllustratedEmptyState\n illustration={illustration}\n alt={illustrationAlt}\n title={title}\n description={description}\n action={action}\n className={cn('animate-in fade-in-0 zoom-in-95 duration-200', className)}\n />\n );\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":";;;;AAuCA,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,qBACA,YAAS,IACT,kBACkB;CAIlB,IAAM,IACJ,KAAe,KAAS,EAAM,SAAS,EAAY,GAC/C,EAAM,MAAM,GAAG,EAAM,SAAS,EAAY,OAAO,GACjD;AACN,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;IACE,WAAW,EACT,gBAEA,KACE,+HACH;cANH;KAQG,KAAU,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;KAClD,kBAAC,OAAD;MAAK,WAAU;gBAAf,CAEE,kBAAC,OAAD;OAAK,WAAU;iBAAf,EACI,KAAS,MACT,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACG,KACC,kBAAC,OAAD;SAAK,WAAU;mBACZ;SACG,CAAA,EAEP,KACC,kBAAC,MAAD;SAAI,WAAU;mBACX,MAAe,OAMd,IALA,kBAAA,GAAA,EAAA,UAAA,CACG,GACD,kBAAC,GAAD,EAAA,UAAe,GAA2B,CAAA,CACzC,EAAA,CAAA;SAIF,CAAA,CAEH;WAEP,KACC,kBAAC,KAAD;QAAG,WAAU;kBAAsD;QAAa,CAAA,CAE9E;UAGL,KACC,kBAAC,OAAD;OAAK,WAAU;iBAAyC;OAAoB,CAAA,CAE1E;;KAGL,KAAiB,kBAAC,OAAD;MAAK,WAAU;gBAAQ;MAAoB,CAAA;KACtD;OAMX,kBAAC,OAAD;IAAK,WAAU;IAAa;IAAe,CAAA,CACvC;;EACF,CAAA;;AAOV,SAAgB,EAAW,EACzB,SACA,iBACA,oBACA,UACA,gBACA,WACA,gBAeC;AAaD,QAZI,IAEA,kBAAC,GAAD;EACgB;EACd,KAAK;EACE;EACM;EACL;EACR,WAAW,EAAG,gDAAgD,EAAU;EACxE,CAAA,GAIJ,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"}
@@ -1,2 +1,2 @@
1
- import { Badge as e, Button as t, CTAOverflowMenu as n, EmphasisPanel as r, GlassCard as i, Input as a } from "@burdenoff/fe-libs/ui";
2
- export { e as Badge, t as Button, n as CTAOverflowMenu, r as EmphasisPanel, i as GlassCard, a as Input };
1
+ import { Badge as e, Button as t, CTAOverflowMenu as n, EmphasisPanel as r, GlassCard as i, Input as a, NextSteps as o, PagePurpose as s } from "@burdenoff/fe-libs/ui";
2
+ export { e as Badge, t as Button, n as CTAOverflowMenu, r as EmphasisPanel, i as GlassCard, a as Input, o as NextSteps, s as PagePurpose };
@@ -1,24 +1,24 @@
1
- import { Button as e, EmphasisPanel as t } from "../components/ui.js";
2
- import { EmptyState as n, LoadingState as r, PageLayout as i } from "../components/PageLayout.js";
3
- import { tWithFallback as a } from "../utils/i18n.js";
4
- import { useAnalyticsOperations as o } from "../hooks/useAnalyticsOperations.js";
5
- import { MetricCard as s } from "../components/analytics/MetricCard.js";
6
- import { TrendChart as c } from "../components/analytics/TrendChart.js";
7
- import { PriorityBreakdown as l } from "../components/analytics/PriorityBreakdown.js";
8
- import { CategoryBreakdown as u } from "../components/analytics/CategoryBreakdown.js";
9
- import { SLAReport as d } from "../components/analytics/SLAReport.js";
10
- import { TopAgents as f } from "../components/analytics/TopAgents.js";
11
- import { SatisfactionDistribution as p } from "../components/analytics/SatisfactionDistribution.js";
12
- import { BarChart3 as m, Calendar as h, CheckCircle as g, Clock as _, Download as v, ShieldAlert as y, ThumbsUp as b, TrendingUp as x } from "lucide-react";
13
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
14
- import { useI18n as w } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
1
+ import { Button as e, EmphasisPanel as t, NextSteps as n, PagePurpose as r } from "../components/ui.js";
2
+ import { EmptyState as i, LoadingState as a, PageLayout as o } from "../components/PageLayout.js";
3
+ import { tWithFallback as s } from "../utils/i18n.js";
4
+ import { useAnalyticsOperations as c } from "../hooks/useAnalyticsOperations.js";
5
+ import { MetricCard as l } from "../components/analytics/MetricCard.js";
6
+ import { TrendChart as u } from "../components/analytics/TrendChart.js";
7
+ import { PriorityBreakdown as d } from "../components/analytics/PriorityBreakdown.js";
8
+ import { CategoryBreakdown as f } from "../components/analytics/CategoryBreakdown.js";
9
+ import { SLAReport as p } from "../components/analytics/SLAReport.js";
10
+ import { TopAgents as m } from "../components/analytics/TopAgents.js";
11
+ import { SatisfactionDistribution as h } from "../components/analytics/SatisfactionDistribution.js";
12
+ import { BarChart3 as g, Calendar as _, CheckCircle as v, Clock as y, Download as b, ShieldAlert as x, ThumbsUp as S, TrendingUp as C } from "lucide-react";
13
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
14
+ import { useI18n as E } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  //#region src/support/pages/AnalyticsPage.tsx
16
- function T(e) {
16
+ function D(e) {
17
17
  if (!e) return !1;
18
18
  let t = String(e).toLowerCase();
19
19
  return t.includes("forbidden") || t.includes("not authorized") || t.includes("permission denied") || t.includes("admin");
20
20
  }
21
- var E = [
21
+ var O = [
22
22
  {
23
23
  value: "LAST_7_DAYS",
24
24
  label: "Last 7 Days"
@@ -36,72 +36,72 @@ var E = [
36
36
  label: "Last Year"
37
37
  }
38
38
  ];
39
- function D() {
40
- let { t: D } = w(), O = (e, t) => a(D, e, t), { analytics: k, trends: A, slaReport: j, satisfaction: M, agentLeaderboard: N, period: P, analyticsLoading: F, trendsLoading: I, updatePeriod: L, exportReport: R, analyticsError: z, slaReportError: B, satisfactionError: V } = o();
41
- if (T(z) || T(B) || T(V)) return /* @__PURE__ */ S(i, {
42
- title: O("support.analytics.title", "Support Analytics"),
43
- subtitle: O("support.analytics.subtitle", "View support performance metrics"),
44
- icon: /* @__PURE__ */ S(m, { size: 24 }),
45
- children: /* @__PURE__ */ S(n, {
46
- icon: /* @__PURE__ */ S(y, { size: 48 }),
47
- title: O("support.analytics.adminRequired.title", "Admin Access Required"),
48
- description: O("support.analytics.adminRequired.description", "You need administrator privileges to view support analytics. Please contact your workspace admin for access.")
39
+ function k() {
40
+ let { t: k } = E(), A = (e, t) => s(k, e, t), { analytics: j, trends: M, slaReport: N, satisfaction: P, agentLeaderboard: F, period: I, analyticsLoading: L, trendsLoading: R, updatePeriod: z, exportReport: B, analyticsError: V, slaReportError: H, satisfactionError: U } = c();
41
+ if (D(V) || D(H) || D(U)) return /* @__PURE__ */ w(o, {
42
+ title: A("support.analytics.title", "Support Analytics"),
43
+ subtitle: A("support.analytics.subtitle", "View support performance metrics"),
44
+ icon: /* @__PURE__ */ w(g, { size: 24 }),
45
+ children: /* @__PURE__ */ w(i, {
46
+ icon: /* @__PURE__ */ w(x, { size: 48 }),
47
+ title: A("support.analytics.adminRequired.title", "Admin Access Required"),
48
+ description: A("support.analytics.adminRequired.description", "You need administrator privileges to view support analytics. Please contact your workspace admin for access.")
49
49
  })
50
50
  });
51
- if (F || I) return /* @__PURE__ */ S(i, {
52
- title: O("support.analytics.title", "Support Analytics"),
53
- subtitle: O("support.analytics.loadingSubtitle", "Loading analytics data..."),
54
- icon: /* @__PURE__ */ S(m, { size: 24 }),
55
- children: /* @__PURE__ */ S(r, { message: O("support.analytics.loading", "Loading analytics...") })
51
+ if (L || R) return /* @__PURE__ */ w(o, {
52
+ title: A("support.analytics.title", "Support Analytics"),
53
+ subtitle: A("support.analytics.loadingSubtitle", "Loading analytics data..."),
54
+ icon: /* @__PURE__ */ w(g, { size: 24 }),
55
+ children: /* @__PURE__ */ w(a, { message: A("support.analytics.loading", "Loading analytics...") })
56
56
  });
57
- if (!k || k.stats.totalTickets === 0) return /* @__PURE__ */ S(i, {
58
- title: O("support.analytics.title", "Support Analytics"),
59
- subtitle: O("support.analytics.subtitle", "View support performance metrics"),
60
- icon: /* @__PURE__ */ S(m, { size: 24 }),
61
- children: /* @__PURE__ */ S(n, {
62
- icon: /* @__PURE__ */ S(m, { size: 48 }),
63
- title: O("support.analytics.noData.title", "No analytics data available"),
64
- description: O("support.analytics.noData.description", "Analytics data will appear once there's ticket activity to report.")
57
+ if (!j || j.stats.totalTickets === 0) return /* @__PURE__ */ w(o, {
58
+ title: A("support.analytics.title", "Support Analytics"),
59
+ subtitle: A("support.analytics.subtitle", "View support performance metrics"),
60
+ icon: /* @__PURE__ */ w(g, { size: 24 }),
61
+ children: /* @__PURE__ */ w(i, {
62
+ illustration: "empty-data",
63
+ title: A("support.analytics.noData.title", "No analytics data available"),
64
+ description: A("support.analytics.noData.description", "Analytics data will appear once there's ticket activity to report.")
65
65
  })
66
66
  });
67
- let H = E.find((e) => e.value === P)?.label || "Custom", U = {
68
- startDate: j?.startDate ?? M?.startDate ?? (/* @__PURE__ */ new Date()).toISOString(),
69
- endDate: j?.endDate ?? M?.endDate ?? (/* @__PURE__ */ new Date()).toISOString(),
70
- label: H
71
- }, W = {
72
- total: k.stats.totalTickets,
73
- open: k.stats.openTickets,
74
- resolved: k.stats.resolvedTickets,
75
- avgResponseTimeHours: k.stats.averageFirstResponseTimeHours || 0,
76
- avgResolutionTimeHours: k.stats.averageResolutionTimeHours || 0,
77
- byPriority: k.priorityBreakdown
78
- }, G = {
79
- period: U,
80
- totalTickets: j?.totalTickets ?? k.stats.totalTickets,
81
- firstResponseCompliance: j?.firstResponseCompliance ?? k.stats.slaComplianceRate ?? 0,
82
- resolutionCompliance: j?.resolutionCompliance ?? k.stats.slaComplianceRate ?? 0,
83
- avgFirstResponseTime: j?.averageFirstResponseMinutes || 0,
84
- avgResolutionTime: j?.averageResolutionMinutes || 0,
85
- breachedTickets: j?.totalBreaches ?? 0,
86
- byPriority: (j?.byPriority ?? []).map((e) => ({
67
+ let W = O.find((e) => e.value === I)?.label || "Custom", G = {
68
+ startDate: N?.startDate ?? P?.startDate ?? (/* @__PURE__ */ new Date()).toISOString(),
69
+ endDate: N?.endDate ?? P?.endDate ?? (/* @__PURE__ */ new Date()).toISOString(),
70
+ label: W
71
+ }, K = {
72
+ total: j.stats.totalTickets,
73
+ open: j.stats.openTickets,
74
+ resolved: j.stats.resolvedTickets,
75
+ avgResponseTimeHours: j.stats.averageFirstResponseTimeHours || 0,
76
+ avgResolutionTimeHours: j.stats.averageResolutionTimeHours || 0,
77
+ byPriority: j.priorityBreakdown
78
+ }, q = {
79
+ period: G,
80
+ totalTickets: N?.totalTickets ?? j.stats.totalTickets,
81
+ firstResponseCompliance: N?.firstResponseCompliance ?? j.stats.slaComplianceRate ?? 0,
82
+ resolutionCompliance: N?.resolutionCompliance ?? j.stats.slaComplianceRate ?? 0,
83
+ avgFirstResponseTime: N?.averageFirstResponseMinutes || 0,
84
+ avgResolutionTime: N?.averageResolutionMinutes || 0,
85
+ breachedTickets: N?.totalBreaches ?? 0,
86
+ byPriority: (N?.byPriority ?? []).map((e) => ({
87
87
  priority: e.priority,
88
88
  tickets: e.totalTickets,
89
89
  compliance: e.resolutionCompliance
90
90
  }))
91
- }, K = M?.ratingDistribution ?? [], q = {
92
- period: U,
93
- totalResponses: M?.totalResponses ?? 0,
94
- averageRating: M?.averageRating || 0,
95
- csat: M?.csatScore || 0,
96
- nps: M?.npsScore || 0,
91
+ }, J = P?.ratingDistribution ?? [], Y = {
92
+ period: G,
93
+ totalResponses: P?.totalResponses ?? 0,
94
+ averageRating: P?.averageRating || 0,
95
+ csat: P?.csatScore || 0,
96
+ nps: P?.npsScore || 0,
97
97
  ratings: {
98
- rating1: K.find((e) => e.rating === 1)?.count || 0,
99
- rating2: K.find((e) => e.rating === 2)?.count || 0,
100
- rating3: K.find((e) => e.rating === 3)?.count || 0,
101
- rating4: K.find((e) => e.rating === 4)?.count || 0,
102
- rating5: K.find((e) => e.rating === 5)?.count || 0
98
+ rating1: J.find((e) => e.rating === 1)?.count || 0,
99
+ rating2: J.find((e) => e.rating === 2)?.count || 0,
100
+ rating3: J.find((e) => e.rating === 3)?.count || 0,
101
+ rating4: J.find((e) => e.rating === 4)?.count || 0,
102
+ rating5: J.find((e) => e.rating === 5)?.count || 0
103
103
  }
104
- }, J = (N?.agents ?? []).map((e) => ({
104
+ }, X = (F?.agents ?? []).map((e) => ({
105
105
  rank: e.rank,
106
106
  ticketsResolved: e.ticketsResolved,
107
107
  avgRating: e.averageRating || 0,
@@ -113,93 +113,124 @@ function D() {
113
113
  email: e.agent.userId
114
114
  }
115
115
  }
116
- })), Y = (A.length > 0 ? A : k.ticketTrends).map((e) => ({
116
+ })), Z = (M.length > 0 ? M : j.ticketTrends).map((e) => ({
117
117
  timestamp: e.date,
118
118
  value: e.count,
119
119
  label: e.groupBy
120
120
  }));
121
- return /* @__PURE__ */ S(i, {
121
+ return /* @__PURE__ */ w(o, {
122
122
  title: "Support Analytics",
123
- subtitle: H,
124
- icon: /* @__PURE__ */ S(m, { size: 24 }),
125
- headerActions: /* @__PURE__ */ C("div", {
123
+ subtitle: W,
124
+ icon: /* @__PURE__ */ w(g, { size: 24 }),
125
+ headerActions: /* @__PURE__ */ T("div", {
126
126
  className: "flex items-center gap-3",
127
- children: [/* @__PURE__ */ C("div", {
127
+ children: [/* @__PURE__ */ T("div", {
128
128
  className: "flex items-center gap-2",
129
- children: [/* @__PURE__ */ S(h, {
129
+ children: [/* @__PURE__ */ w(_, {
130
130
  size: 20,
131
131
  className: "text-text-secondary"
132
- }), /* @__PURE__ */ S("select", {
133
- value: P,
134
- onChange: (e) => L(e.target.value),
132
+ }), /* @__PURE__ */ w("select", {
133
+ value: I,
134
+ onChange: (e) => z(e.target.value),
135
135
  className: "px-3 py-2 rounded-lg border border-border-subtle bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
136
- children: E.map((e) => /* @__PURE__ */ S("option", {
136
+ children: O.map((e) => /* @__PURE__ */ w("option", {
137
137
  value: e.value,
138
138
  children: e.label
139
139
  }, e.value))
140
140
  })]
141
- }), /* @__PURE__ */ C(e, {
142
- onClick: () => R("PDF"),
143
- children: [/* @__PURE__ */ S(v, { size: 18 }), O("support.analytics.export", "Export")]
141
+ }), /* @__PURE__ */ T(e, {
142
+ onClick: () => B("PDF"),
143
+ children: [/* @__PURE__ */ w(b, { size: 18 }), A("support.analytics.export", "Export")]
144
144
  })]
145
145
  }),
146
- children: /* @__PURE__ */ C("div", {
146
+ children: /* @__PURE__ */ T("div", {
147
147
  className: "space-y-6",
148
148
  children: [
149
- /* @__PURE__ */ S(t, {
149
+ /* @__PURE__ */ w(r, { children: "Measure how your support operation is performing. Track ticket volume, first-response and resolution times, SLA compliance and customer satisfaction so you can spot bottlenecks, balance agent workload, and prove the impact of your team. Adjust the period to compare trends over time." }),
150
+ /* @__PURE__ */ w(n, {
151
+ storageKey: "support-analytics",
152
+ title: "Make the most of your data",
153
+ steps: [
154
+ {
155
+ id: "period",
156
+ label: "Switch the reporting period",
157
+ description: "Compare the last 7, 30, 90 days or a full year to spot trends.",
158
+ onClick: () => z("LAST_90_DAYS")
159
+ },
160
+ {
161
+ id: "export",
162
+ label: "Export a PDF report",
163
+ description: "Share performance with stakeholders in one click.",
164
+ onClick: () => B("PDF")
165
+ },
166
+ {
167
+ id: "sla",
168
+ label: "Review SLA compliance",
169
+ description: "Scroll to the SLA report to see where commitments slipped.",
170
+ onClick: () => document.querySelector("[data-tour=\"support-analytics-sla\"]")?.scrollIntoView({
171
+ behavior: "smooth",
172
+ block: "start"
173
+ })
174
+ }
175
+ ]
176
+ }),
177
+ /* @__PURE__ */ w(t, {
150
178
  className: "p-4 sm:p-5",
151
- children: /* @__PURE__ */ C("div", {
179
+ children: /* @__PURE__ */ T("div", {
152
180
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",
153
181
  children: [
154
- /* @__PURE__ */ S(s, {
182
+ /* @__PURE__ */ w(l, {
155
183
  title: "Total Tickets",
156
- value: W.total.toString(),
157
- icon: x,
184
+ value: K.total.toString(),
185
+ icon: C,
158
186
  iconColor: "text-primary",
159
- subtitle: `${W.open} open, ${W.resolved} resolved`
187
+ subtitle: `${K.open} open, ${K.resolved} resolved`
160
188
  }),
161
- /* @__PURE__ */ S(s, {
189
+ /* @__PURE__ */ w(l, {
162
190
  title: "Avg Response Time",
163
- value: `${W.avgResponseTimeHours.toFixed(1)}h`,
164
- icon: _,
191
+ value: `${K.avgResponseTimeHours.toFixed(1)}h`,
192
+ icon: y,
165
193
  iconColor: "text-accent",
166
- subtitle: `Resolution: ${W.avgResolutionTimeHours.toFixed(1)}h`
194
+ subtitle: `Resolution: ${K.avgResolutionTimeHours.toFixed(1)}h`
167
195
  }),
168
- /* @__PURE__ */ S(s, {
196
+ /* @__PURE__ */ w(l, {
169
197
  title: "SLA Compliance",
170
- value: `${G.firstResponseCompliance.toFixed(1)}%`,
171
- icon: g,
172
- iconColor: G.firstResponseCompliance >= 90 ? "text-success" : "text-warning",
173
- subtitle: `${G.breachedTickets} breached`
198
+ value: `${q.firstResponseCompliance.toFixed(1)}%`,
199
+ icon: v,
200
+ iconColor: q.firstResponseCompliance >= 90 ? "text-success" : "text-warning",
201
+ subtitle: `${q.breachedTickets} breached`
174
202
  }),
175
- /* @__PURE__ */ S(s, {
203
+ /* @__PURE__ */ w(l, {
176
204
  title: "Satisfaction",
177
- value: q.averageRating.toFixed(1),
178
- icon: b,
205
+ value: Y.averageRating.toFixed(1),
206
+ icon: S,
179
207
  iconColor: "text-success",
180
- subtitle: `CSAT: ${q.csat.toFixed(0)}%, NPS: ${q.nps.toFixed(0)}`
208
+ subtitle: `CSAT: ${Y.csat.toFixed(0)}%, NPS: ${Y.nps.toFixed(0)}`
181
209
  })
182
210
  ]
183
211
  })
184
212
  }),
185
- /* @__PURE__ */ S(c, {
186
- trends: Y,
187
- period: q.period
213
+ /* @__PURE__ */ w(u, {
214
+ trends: Z,
215
+ period: Y.period
188
216
  }),
189
- /* @__PURE__ */ C("div", {
217
+ /* @__PURE__ */ T("div", {
190
218
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
191
- children: [/* @__PURE__ */ S(l, { data: W.byPriority }), /* @__PURE__ */ S(u, { data: k.categoryBreakdown })]
219
+ children: [/* @__PURE__ */ w(d, { data: K.byPriority }), /* @__PURE__ */ w(f, { data: j.categoryBreakdown })]
220
+ }),
221
+ /* @__PURE__ */ w("div", {
222
+ "data-tour": "support-analytics-sla",
223
+ children: /* @__PURE__ */ w(p, { report: q })
192
224
  }),
193
- /* @__PURE__ */ S(d, { report: G }),
194
- /* @__PURE__ */ C("div", {
225
+ /* @__PURE__ */ T("div", {
195
226
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
196
- children: [/* @__PURE__ */ S(p, { metrics: q }), /* @__PURE__ */ S(f, { agents: J })]
227
+ children: [/* @__PURE__ */ w(h, { metrics: Y }), /* @__PURE__ */ w(m, { agents: X })]
197
228
  })
198
229
  ]
199
230
  })
200
231
  });
201
232
  }
202
233
  //#endregion
203
- export { D as AnalyticsPage };
234
+ export { k as AnalyticsPage };
204
235
 
205
236
  //# sourceMappingURL=AnalyticsPage.js.map