@burdenoff/microfe-support 2026.818.1 → 2026.819.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 (127) hide show
  1. package/dist/generated/global-operations.d.ts +110 -0
  2. package/dist/generated/global-operations.js +259 -225
  3. package/dist/generated/global-operations.js.map +1 -1
  4. package/dist/generated/global-types.d.ts +42 -16
  5. package/dist/generated/global-types.js.map +1 -1
  6. package/dist/node_modules/clsx/dist/clsx.js +7 -5
  7. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  8. package/dist/node_modules/dompurify/dist/purify.es.js +399 -304
  9. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  10. package/dist/node_modules/marked/lib/marked.esm.js +23 -17
  11. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
  12. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +130 -130
  13. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  14. package/dist/support/SupportAdminRoot.js +4 -2
  15. package/dist/support/SupportAdminRoot.js.map +1 -1
  16. package/dist/support/SupportAdminRoutes.js +2 -2
  17. package/dist/support/SupportAdminRoutes.js.map +1 -1
  18. package/dist/support/SupportUserRoot.js +4 -2
  19. package/dist/support/SupportUserRoot.js.map +1 -1
  20. package/dist/support/SupportUserRoutes.js +2 -2
  21. package/dist/support/SupportUserRoutes.js.map +1 -1
  22. package/dist/support/components/NotificationToast.js.map +1 -1
  23. package/dist/support/components/PageLayout.js.map +1 -1
  24. package/dist/support/components/RouteHelpers.js.map +1 -1
  25. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
  26. package/dist/support/components/analytics/MetricCard.js.map +1 -1
  27. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
  28. package/dist/support/components/analytics/SLAReport.js.map +1 -1
  29. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
  30. package/dist/support/components/analytics/TopAgents.js.map +1 -1
  31. package/dist/support/components/analytics/TrendChart.js +5 -5
  32. package/dist/support/components/analytics/TrendChart.js.map +1 -1
  33. package/dist/support/components/careers/BulkCandidateActionGuidance.d.ts +6 -0
  34. package/dist/support/components/careers/BulkCandidateActionGuidance.js +28 -0
  35. package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -0
  36. package/dist/support/components/careers/BulkCandidateDialogs.d.ts +22 -0
  37. package/dist/support/components/careers/BulkCandidateDialogs.js +446 -0
  38. package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -0
  39. package/dist/support/components/careers/BulkOperationFeedback.d.ts +21 -0
  40. package/dist/support/components/careers/BulkOperationFeedback.js +194 -0
  41. package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -0
  42. package/dist/support/components/careers/BulkSelectionSummary.d.ts +6 -0
  43. package/dist/support/components/careers/BulkSelectionSummary.js +15 -0
  44. package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -0
  45. package/dist/support/components/kb/ArticleForm.js.map +1 -1
  46. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
  47. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
  48. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  49. package/dist/support/components/tickets/AttachmentList.js.map +1 -1
  50. package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
  51. package/dist/support/components/tickets/MessageComposer.js +2 -2
  52. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  53. package/dist/support/components/tickets/MessageThread.js +1 -1
  54. package/dist/support/components/tickets/MessageThread.js.map +1 -1
  55. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  56. package/dist/support/components/tickets/TicketHeader.js.map +1 -1
  57. package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
  58. package/dist/support/constants/pipeline.js.map +1 -1
  59. package/dist/support/events/rybbit.js.map +1 -1
  60. package/dist/support/hooks/index.js +6 -5
  61. package/dist/support/hooks/useAnalyticsOperations.js +1 -1
  62. package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
  63. package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
  64. package/dist/support/hooks/useChatOperations.js +7 -7
  65. package/dist/support/hooks/useChatOperations.js.map +1 -1
  66. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  67. package/dist/support/hooks/useNotification.js.map +1 -1
  68. package/dist/support/hooks/useRegisterFooter.js.map +1 -1
  69. package/dist/support/hooks/useSettingsOperations.js.map +1 -1
  70. package/dist/support/hooks/useSupportAttachments.js.map +1 -1
  71. package/dist/support/hooks/useTicketListOperations.js.map +1 -1
  72. package/dist/support/hooks/useTicketOperations.js +76 -75
  73. package/dist/support/hooks/useTicketOperations.js.map +1 -1
  74. package/dist/support/index.js +11 -10
  75. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  76. package/dist/support/pages/ArticleDetailAdminPage.js +1 -1
  77. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  78. package/dist/support/pages/ArticleDetailUserPage.js +1 -1
  79. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  80. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  81. package/dist/support/pages/ContactInquiryDetailPage.js +4 -1
  82. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  83. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  84. package/dist/support/pages/CreateTicketPage.js +4 -3
  85. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  86. package/dist/support/pages/EditArticlePage.js.map +1 -1
  87. package/dist/support/pages/InterviewersPage.js +127 -127
  88. package/dist/support/pages/InterviewersPage.js.map +1 -1
  89. package/dist/support/pages/JobApplicationDetailPage.js +1 -1
  90. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  91. package/dist/support/pages/JobApplicationsPage.js +534 -631
  92. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  93. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  94. package/dist/support/pages/JobPostingsPage.js.map +1 -1
  95. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  96. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  97. package/dist/support/pages/SettingsPage.js.map +1 -1
  98. package/dist/support/pages/TicketDetailAdminPage.js +4 -1
  99. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  100. package/dist/support/pages/TicketDetailUserPage.js +4 -1
  101. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  102. package/dist/support/pages/TicketListPage.js.map +1 -1
  103. package/dist/support/providers/SupportProvider.js.map +1 -1
  104. package/dist/support/store/supportStore.js.map +1 -1
  105. package/dist/support/utils/attachments.js +3 -3
  106. package/dist/support/utils/attachments.js.map +1 -1
  107. package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
  108. package/dist/support/utils/bulkCandidateOperations.d.ts +174 -0
  109. package/dist/support/utils/bulkCandidateOperations.js +265 -0
  110. package/dist/support/utils/bulkCandidateOperations.js.map +1 -0
  111. package/dist/support/utils/bulkCandidateTargetQuery.d.ts +10 -0
  112. package/dist/support/utils/bulkCandidateTargetQuery.js +14 -0
  113. package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -0
  114. package/dist/support/utils/categoryColors.js.map +1 -1
  115. package/dist/support/utils/cn.js +1 -1
  116. package/dist/support/utils/cn.js.map +1 -1
  117. package/dist/support/utils/context.js.map +1 -1
  118. package/dist/support/utils/errors.js.map +1 -1
  119. package/dist/support/utils/i18n.js.map +1 -1
  120. package/dist/support/utils/index.js +1 -1
  121. package/dist/support/utils/index.js.map +1 -1
  122. package/dist/support/utils/markdown.js +2 -2
  123. package/dist/support/utils/markdown.js.map +1 -1
  124. package/dist/support/utils/supportFiles.js.map +1 -1
  125. package/dist/support/utils/ticketFilters.js.map +1 -1
  126. package/dist/support/utils/uiTokens.js.map +1 -1
  127. package/package.json +22 -12
@@ -23,7 +23,8 @@ var _ = (_) => {
23
23
  C,
24
24
  w
25
25
  ]), a(() => {
26
- if (v) return v([
26
+ if (!v) return;
27
+ let e = [
27
28
  {
28
29
  id: "support-tickets",
29
30
  label: D("support.nav.tickets", "Tickets"),
@@ -88,7 +89,8 @@ var _ = (_) => {
88
89
  order: 50,
89
90
  group: "support"
90
91
  }
91
- ]);
92
+ ];
93
+ return v(e);
92
94
  }, [
93
95
  v,
94
96
  b,
@@ -1 +1 @@
1
- {"version":3,"file":"SupportAdminRoot.js","names":[],"sources":["../../src/support/SupportAdminRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Ticket,\n BookOpen,\n BarChart3,\n Settings,\n Mail,\n Briefcase,\n FileText,\n Users,\n} from 'lucide-react';\nimport { SupportProvider } from './providers/SupportProvider';\nimport type { NavItem, SupportRootProps } from './types';\nimport { SupportAdminRoutes } from './SupportAdminRoutes';\nimport { joinPath } from './utils';\nimport { useRegisterFooter } from './hooks/useRegisterFooter';\nimport { useSupportStore } from './store/supportStore';\n\n/**\n * Admin-facing root component for the Support microfrontend.\n *\n * Renders admin support management routes (tickets with full controls,\n * contact inquiries, KB authoring, analytics, settings).\n *\n * Use this in admin-app where platform administrators manage support operations.\n *\n * Navigation registration is optional — admin-app uses shell-owned nav\n * (NavRegistration.tsx with contentMfeProps), so registerNavItems won't be provided.\n * Other shells that pass registerNavItems will get admin nav items registered.\n *\n * For user-facing support features, use SupportUserRoot instead.\n *\n * Note: This is a UI-layer route split, not a security boundary.\n * Access control is enforced at the API/server level.\n */\nexport const SupportAdminRoot: FC<SupportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = '/',\n currentUser,\n workspaceId,\n organizationId,\n productId,\n } = props;\n const resetForContextChange = useSupportStore((state) => state.resetForContextChange);\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n useEffect(() => {\n resetForContextChange();\n }, [resetForContextChange, currentUser?.id, workspaceId, organizationId, productId]);\n\n // Register admin navigation items only if the shell provides registerNavItems.\n // admin-app uses contentMfeProps (no registerNavItems) so the shell's\n // NavRegistration.tsx owns the nav — this avoids duplicate entries.\n // `t` is in the deps so labels re-register when locale flips.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'support-tickets',\n label: tr('support.nav.tickets', 'Tickets'),\n path: joinPath(basePath, 'tickets'),\n icon: <Ticket size={20} />,\n order: 10,\n group: 'support',\n },\n {\n id: 'support-inquiries',\n label: tr('support.nav.contactInquiries', 'Contact Inquiries'),\n path: joinPath(basePath, 'inquiries'),\n icon: <Mail size={20} />,\n order: 15,\n group: 'support',\n },\n {\n id: 'support-applications',\n label: tr('support.nav.jobApplications', 'Job Applications'),\n path: joinPath(basePath, 'applications'),\n icon: <Briefcase size={20} />,\n order: 16,\n group: 'career',\n },\n {\n id: 'support-job-postings',\n label: tr('support.nav.jobPostings', 'Job Postings'),\n path: joinPath(basePath, 'applications/postings'),\n icon: <FileText size={20} />,\n order: 16.5,\n group: 'career',\n },\n {\n id: 'support-interviewers',\n label: tr('support.nav.interviewers', 'Interviewers'),\n path: joinPath(basePath, 'applications/interviewers'),\n icon: <Users size={20} />,\n order: 16.7,\n group: 'career',\n },\n {\n id: 'support-kb',\n label: tr('support.nav.knowledgeBase', 'Knowledge Base'),\n path: joinPath(basePath, 'kb'),\n icon: <BookOpen size={20} />,\n order: 20,\n group: 'support',\n },\n {\n id: 'support-analytics',\n label: tr('support.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 40,\n group: 'support',\n },\n {\n id: 'support-settings',\n label: tr('support.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 50,\n group: 'support',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n useRegisterFooter(registerFooterItems);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <SupportProvider {...props}>\n <SupportAdminRoutes />\n </SupportProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AAsCA,IAAa,KAA0C,MAAU;CAC/D,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,gBACA,gBACA,mBACA,iBACE,GACE,IAAwB,GAAiB,MAAU,EAAM,sBAAsB,EAC/E,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAA6B;EACpD,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;;AAwFzC,QArFA,QAAgB;AACd,KAAuB;IACtB;EAAC;EAAuB,GAAa;EAAI;EAAa;EAAgB;EAAU,CAAC,EAMpF,QAAgB;AACT,QAsEL,QADgB,EAnEY;GAC1B;IACE,IAAI;IACJ,OAAO,EAAG,uBAAuB,UAAU;IAC3C,MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;IAC1B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,gCAAgC,oBAAoB;IAC9D,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,+BAA+B,mBAAmB;IAC5D,MAAM,EAAS,GAAU,eAAe;IACxC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,2BAA2B,eAAe;IACpD,MAAM,EAAS,GAAU,wBAAwB;IACjD,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,4BAA4B,eAAe;IACrD,MAAM,EAAS,GAAU,4BAA4B;IACrD,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,6BAA6B,iBAAiB;IACxD,MAAM,EAAS,GAAU,KAAK;IAC9B,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,yBAAyB,YAAY;IAC/C,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAG,wBAAwB,WAAW;IAC7C,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GACF,CAEyC;IAGzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAEnC,EAAkB,EAAoB,EAGpC,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;aAAsC;GAE/C,CAAA;YAGR,kBAAC,GAAD;GAAiB,GAAI;aACnB,kBAAC,GAAD,EAAsB,CAAA;GACN,CAAA;EACJ,CAAA"}
1
+ {"version":3,"file":"SupportAdminRoot.js","names":[],"sources":["../../src/support/SupportAdminRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Ticket,\n BookOpen,\n BarChart3,\n Settings,\n Mail,\n Briefcase,\n FileText,\n Users,\n} from 'lucide-react';\nimport { SupportProvider } from './providers/SupportProvider';\nimport type { NavItem, SupportRootProps } from './types';\nimport { SupportAdminRoutes } from './SupportAdminRoutes';\nimport { joinPath } from './utils';\nimport { useRegisterFooter } from './hooks/useRegisterFooter';\nimport { useSupportStore } from './store/supportStore';\n\n/**\n * Admin-facing root component for the Support microfrontend.\n *\n * Renders admin support management routes (tickets with full controls,\n * contact inquiries, KB authoring, analytics, settings).\n *\n * Use this in admin-app where platform administrators manage support operations.\n *\n * Navigation registration is optional — admin-app uses shell-owned nav\n * (NavRegistration.tsx with contentMfeProps), so registerNavItems won't be provided.\n * Other shells that pass registerNavItems will get admin nav items registered.\n *\n * For user-facing support features, use SupportUserRoot instead.\n *\n * Note: This is a UI-layer route split, not a security boundary.\n * Access control is enforced at the API/server level.\n */\nexport const SupportAdminRoot: FC<SupportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = '/',\n currentUser,\n workspaceId,\n organizationId,\n productId,\n } = props;\n const resetForContextChange = useSupportStore((state) => state.resetForContextChange);\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n useEffect(() => {\n resetForContextChange();\n }, [resetForContextChange, currentUser?.id, workspaceId, organizationId, productId]);\n\n // Register admin navigation items only if the shell provides registerNavItems.\n // admin-app uses contentMfeProps (no registerNavItems) so the shell's\n // NavRegistration.tsx owns the nav — this avoids duplicate entries.\n // `t` is in the deps so labels re-register when locale flips.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'support-tickets',\n label: tr('support.nav.tickets', 'Tickets'),\n path: joinPath(basePath, 'tickets'),\n icon: <Ticket size={20} />,\n order: 10,\n group: 'support',\n },\n {\n id: 'support-inquiries',\n label: tr('support.nav.contactInquiries', 'Contact Inquiries'),\n path: joinPath(basePath, 'inquiries'),\n icon: <Mail size={20} />,\n order: 15,\n group: 'support',\n },\n {\n id: 'support-applications',\n label: tr('support.nav.jobApplications', 'Job Applications'),\n path: joinPath(basePath, 'applications'),\n icon: <Briefcase size={20} />,\n order: 16,\n group: 'career',\n },\n {\n id: 'support-job-postings',\n label: tr('support.nav.jobPostings', 'Job Postings'),\n path: joinPath(basePath, 'applications/postings'),\n icon: <FileText size={20} />,\n order: 16.5,\n group: 'career',\n },\n {\n id: 'support-interviewers',\n label: tr('support.nav.interviewers', 'Interviewers'),\n path: joinPath(basePath, 'applications/interviewers'),\n icon: <Users size={20} />,\n order: 16.7,\n group: 'career',\n },\n {\n id: 'support-kb',\n label: tr('support.nav.knowledgeBase', 'Knowledge Base'),\n path: joinPath(basePath, 'kb'),\n icon: <BookOpen size={20} />,\n order: 20,\n group: 'support',\n },\n {\n id: 'support-analytics',\n label: tr('support.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 40,\n group: 'support',\n },\n {\n id: 'support-settings',\n label: tr('support.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 50,\n group: 'support',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n useRegisterFooter(registerFooterItems);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <SupportProvider {...props}>\n <SupportAdminRoutes />\n </SupportProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AAsCA,IAAa,KAA0C,MAAU;CAC/D,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,gBACA,gBACA,mBACA,iBACE,GACE,IAAwB,GAAiB,MAAU,EAAM,qBAAqB,GAC9E,EAAE,SAAM,EAAQ,GAChB,KAAM,GAAa,MAA6B;EACpD,IAAM,IAAa,EAAE,CAAG;EACxB,OAAO,MAAe,IAAM,IAAW;CACzC;CAuFA,OArFA,QAAgB;EACd,EAAsB;CACxB,GAAG;EAAC;EAAuB,GAAa;EAAI;EAAa;EAAgB;CAAS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C,MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAU,MAAM,GAAK,CAAA;IAC3B,OAAO;IACP,OAAO;GACT;EACF;EAGA,OADgB,EAAiB,CAC1B;CAET,GAAG;EAAC;EAAkB;EAAU;CAAC,CAAC,GAElC,EAAkB,CAAmB,GAGnC,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GAAsC,UAAA;EAEhD,CAAA;EAGP,UAAA,kBAAC,GAAD;GAAiB,GAAI;GACnB,UAAA,kBAAC,GAAD,CAAqB,CAAA;EACN,CAAA;CACJ,CAAA;AAEnB"}
@@ -6,9 +6,9 @@ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  //#region src/support/SupportAdminRoutes.tsx
7
7
  var d = i(() => import("./pages/TicketDetailAdminPage.js").then((e) => ({ default: e.TicketDetailAdminPage }))), f = i(() => import("./pages/ContactInquiriesPage.js").then((e) => ({ default: e.ContactInquiriesPage }))), p = i(() => import("./pages/ContactInquiryDetailPage.js").then((e) => ({ default: e.ContactInquiryDetailPage }))), m = i(() => import("./pages/JobApplicationsPage.js").then((e) => ({ default: e.JobApplicationsPage }))), h = i(() => import("./pages/JobApplicationDetailPage.js").then((e) => ({ default: e.JobApplicationDetailPage }))), g = i(() => import("./pages/JobPostingsPage.js").then((e) => ({ default: e.JobPostingsPage }))), _ = i(() => import("./pages/JobPostingDetailPage.js").then((e) => ({ default: e.JobPostingDetailPage }))), v = i(() => import("./pages/InterviewersPage.js").then((e) => ({ default: e.InterviewersPage }))), y = i(() => import("./pages/KnowledgeBaseAdminPage.js").then((e) => ({ default: e.KnowledgeBaseAdminPage }))), b = i(() => import("./pages/ArticleDetailAdminPage.js").then((e) => ({ default: e.ArticleDetailAdminPage }))), x = i(() => import("./pages/CreateArticlePage.js").then((e) => ({ default: e.CreateArticlePage }))), S = i(() => import("./pages/EditArticlePage.js").then((e) => ({ default: e.EditArticlePage }))), C = i(() => import("./pages/AnalyticsPage.js").then((e) => ({ default: e.AnalyticsPage }))), w = i(() => import("./pages/SettingsPage.js").then((e) => ({ default: e.SettingsPage })));
8
8
  function T() {
9
- let e = c();
9
+ let e = c(), t = e.pathname.replace("/knowledge-base", "/kb");
10
10
  return /* @__PURE__ */ l(a, {
11
- to: `${e.pathname.replace("/knowledge-base", "/kb")}${e.search}${e.hash}`,
11
+ to: `${t}${e.search}${e.hash}`,
12
12
  replace: !0
13
13
  });
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SupportAdminRoutes.js","names":[],"sources":["../../src/support/SupportAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { PageLoader, CatchAllRedirect } from './components/RouteHelpers';\n\n// TicketListPage is eagerly imported — it's the default landing page after redirect,\n// so lazy-loading would cause a visible loading flash on every initial navigation.\nimport { TicketListPage } from './pages/TicketListPage';\n\n// Lazy loaded pages — admin-specific variants for mixed pages\nconst TicketDetailAdminPage = lazy(() =>\n import('./pages/TicketDetailAdminPage').then((m) => ({ default: m.TicketDetailAdminPage }))\n);\nconst ContactInquiriesPage = lazy(() =>\n import('./pages/ContactInquiriesPage').then((m) => ({ default: m.ContactInquiriesPage }))\n);\nconst ContactInquiryDetailPage = lazy(() =>\n import('./pages/ContactInquiryDetailPage').then((m) => ({\n default: m.ContactInquiryDetailPage,\n }))\n);\nconst JobApplicationsPage = lazy(() =>\n import('./pages/JobApplicationsPage').then((m) => ({ default: m.JobApplicationsPage }))\n);\nconst JobApplicationDetailPage = lazy(() =>\n import('./pages/JobApplicationDetailPage').then((m) => ({\n default: m.JobApplicationDetailPage,\n }))\n);\nconst JobPostingsPage = lazy(() =>\n import('./pages/JobPostingsPage').then((m) => ({ default: m.JobPostingsPage }))\n);\nconst JobPostingDetailPage = lazy(() =>\n import('./pages/JobPostingDetailPage').then((m) => ({\n default: m.JobPostingDetailPage,\n }))\n);\nconst InterviewersPage = lazy(() =>\n import('./pages/InterviewersPage').then((m) => ({ default: m.InterviewersPage }))\n);\nconst KnowledgeBaseAdminPage = lazy(() =>\n import('./pages/KnowledgeBaseAdminPage').then((m) => ({ default: m.KnowledgeBaseAdminPage }))\n);\nconst ArticleDetailAdminPage = lazy(() =>\n import('./pages/ArticleDetailAdminPage').then((m) => ({ default: m.ArticleDetailAdminPage }))\n);\nconst CreateArticlePage = lazy(() =>\n import('./pages/CreateArticlePage').then((m) => ({ default: m.CreateArticlePage }))\n);\nconst EditArticlePage = lazy(() =>\n import('./pages/EditArticlePage').then((m) => ({ default: m.EditArticlePage }))\n);\nconst AnalyticsPage = lazy(() =>\n import('./pages/AnalyticsPage').then((m) => ({ default: m.AnalyticsPage }))\n);\nconst SettingsPage = lazy(() =>\n import('./pages/SettingsPage').then((m) => ({ default: m.SettingsPage }))\n);\n\n// /knowledge-base/* deep links land here and immediately redirect to the canonical\n// /kb/* path so the URL stays consistent with the page-level navigation (which\n// hardcodes /kb paths). One wildcard route covers every sub-path so adding new\n// kb/* routes does not require maintaining a parallel knowledge-base/* mirror.\nfunction KnowledgeBaseAliasRedirect() {\n const location = useLocation();\n const targetPath = location.pathname.replace('/knowledge-base', '/kb');\n return <Navigate to={`${targetPath}${location.search}${location.hash}`} replace />;\n}\n\n/**\n * Admin-facing routes for the Support microfrontend.\n *\n * Includes all support management routes:\n * - Ticket management (list and view with full admin controls)\n * - Contact inquiries management\n * - Knowledge base authoring (create, edit, publish)\n * - Support analytics and reporting\n * - Support settings (SLA policies, canned responses, categories)\n *\n * User-only ticket and knowledge-base routes are excluded — see SupportUserRoutes for those.\n */\nexport function SupportAdminRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Default redirect */}\n <Route index element={<Navigate to=\"tickets\" replace />} />\n\n {/* Tickets — admin triage lists all users' tickets */}\n <Route path=\"tickets\" element={<TicketListPage adminView />} />\n <Route path=\"tickets/new\" element={<Navigate to=\"../tickets\" replace />} />\n <Route path=\"tickets/:ticketId\" element={<TicketDetailAdminPage />} />\n\n {/* Contact Inquiries */}\n <Route path=\"inquiries\" element={<ContactInquiriesPage />} />\n <Route path=\"inquiries/:id\" element={<ContactInquiryDetailPage />} />\n\n {/* Job Applications (careers form submissions) */}\n <Route path=\"applications/postings\" element={<JobPostingsPage />} />\n <Route path=\"applications/postings/:id\" element={<JobPostingDetailPage />} />\n <Route path=\"applications/interviewers\" element={<InterviewersPage />} />\n <Route path=\"applications\" element={<JobApplicationsPage />} />\n <Route path=\"applications/:id\" element={<JobApplicationDetailPage />} />\n\n {/* Knowledge Base (full authoring) — canonical /kb paths */}\n <Route path=\"kb\" element={<KnowledgeBaseAdminPage />} />\n <Route path=\"kb/articles/new\" element={<CreateArticlePage />} />\n <Route path=\"kb/articles/:slug\" element={<ArticleDetailAdminPage />} />\n <Route path=\"kb/articles/:slug/edit\" element={<EditArticlePage />} />\n\n {/* /knowledge-base/* alias — redirects to the canonical /kb/* path */}\n <Route path=\"knowledge-base/*\" element={<KnowledgeBaseAliasRedirect />} />\n\n {/* Analytics (admin/manager only) */}\n <Route path=\"analytics\" element={<AnalyticsPage />} />\n\n {/* Settings (admin only) */}\n <Route path=\"settings\" element={<SettingsPage />} />\n\n {/* Catch-all redirect */}\n <Route path=\"*\" element={<CatchAllRedirect />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AASA,IAAM,IAAwB,QAC5B,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAC5F,EACK,IAAuB,QAC3B,OAAO,mCAAgC,MAAM,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAC1F,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,EAAE,0BACZ,EAAE,CACJ,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CACxF,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,E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AD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAiB,CAAA;IAAI,CAAA;GAGtD,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,EAAgB,CAAA;IAAI,CAAA;GAGpD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAC1C,EAAA,CAAA;EACA,CAAA"}
1
+ {"version":3,"file":"SupportAdminRoutes.js","names":[],"sources":["../../src/support/SupportAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { PageLoader, CatchAllRedirect } from './components/RouteHelpers';\n\n// TicketListPage is eagerly imported — it's the default landing page after redirect,\n// so lazy-loading would cause a visible loading flash on every initial navigation.\nimport { TicketListPage } from './pages/TicketListPage';\n\n// Lazy loaded pages — admin-specific variants for mixed pages\nconst TicketDetailAdminPage = lazy(() =>\n import('./pages/TicketDetailAdminPage').then((m) => ({ default: m.TicketDetailAdminPage }))\n);\nconst ContactInquiriesPage = lazy(() =>\n import('./pages/ContactInquiriesPage').then((m) => ({ default: m.ContactInquiriesPage }))\n);\nconst ContactInquiryDetailPage = lazy(() =>\n import('./pages/ContactInquiryDetailPage').then((m) => ({\n default: m.ContactInquiryDetailPage,\n }))\n);\nconst JobApplicationsPage = lazy(() =>\n import('./pages/JobApplicationsPage').then((m) => ({ default: m.JobApplicationsPage }))\n);\nconst JobApplicationDetailPage = lazy(() =>\n import('./pages/JobApplicationDetailPage').then((m) => ({\n default: m.JobApplicationDetailPage,\n }))\n);\nconst JobPostingsPage = lazy(() =>\n import('./pages/JobPostingsPage').then((m) => ({ default: m.JobPostingsPage }))\n);\nconst JobPostingDetailPage = lazy(() =>\n import('./pages/JobPostingDetailPage').then((m) => ({\n default: m.JobPostingDetailPage,\n }))\n);\nconst InterviewersPage = lazy(() =>\n import('./pages/InterviewersPage').then((m) => ({ default: m.InterviewersPage }))\n);\nconst KnowledgeBaseAdminPage = lazy(() =>\n import('./pages/KnowledgeBaseAdminPage').then((m) => ({ default: m.KnowledgeBaseAdminPage }))\n);\nconst ArticleDetailAdminPage = lazy(() =>\n import('./pages/ArticleDetailAdminPage').then((m) => ({ default: m.ArticleDetailAdminPage }))\n);\nconst CreateArticlePage = lazy(() =>\n import('./pages/CreateArticlePage').then((m) => ({ default: m.CreateArticlePage }))\n);\nconst EditArticlePage = lazy(() =>\n import('./pages/EditArticlePage').then((m) => ({ default: m.EditArticlePage }))\n);\nconst AnalyticsPage = lazy(() =>\n import('./pages/AnalyticsPage').then((m) => ({ default: m.AnalyticsPage }))\n);\nconst SettingsPage = lazy(() =>\n import('./pages/SettingsPage').then((m) => ({ default: m.SettingsPage }))\n);\n\n// /knowledge-base/* deep links land here and immediately redirect to the canonical\n// /kb/* path so the URL stays consistent with the page-level navigation (which\n// hardcodes /kb paths). One wildcard route covers every sub-path so adding new\n// kb/* routes does not require maintaining a parallel knowledge-base/* mirror.\nfunction KnowledgeBaseAliasRedirect() {\n const location = useLocation();\n const targetPath = location.pathname.replace('/knowledge-base', '/kb');\n return <Navigate to={`${targetPath}${location.search}${location.hash}`} replace />;\n}\n\n/**\n * Admin-facing routes for the Support microfrontend.\n *\n * Includes all support management routes:\n * - Ticket management (list and view with full admin controls)\n * - Contact inquiries management\n * - Knowledge base authoring (create, edit, publish)\n * - Support analytics and reporting\n * - Support settings (SLA policies, canned responses, categories)\n *\n * User-only ticket and knowledge-base routes are excluded — see SupportUserRoutes for those.\n */\nexport function SupportAdminRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Default redirect */}\n <Route index element={<Navigate to=\"tickets\" replace />} />\n\n {/* Tickets — admin triage lists all users' tickets */}\n <Route path=\"tickets\" element={<TicketListPage adminView />} />\n <Route path=\"tickets/new\" element={<Navigate to=\"../tickets\" replace />} />\n <Route path=\"tickets/:ticketId\" element={<TicketDetailAdminPage />} />\n\n {/* Contact Inquiries */}\n <Route path=\"inquiries\" element={<ContactInquiriesPage />} />\n <Route path=\"inquiries/:id\" element={<ContactInquiryDetailPage />} />\n\n {/* Job Applications (careers form submissions) */}\n <Route path=\"applications/postings\" element={<JobPostingsPage />} />\n <Route path=\"applications/postings/:id\" element={<JobPostingDetailPage />} />\n <Route path=\"applications/interviewers\" element={<InterviewersPage />} />\n <Route path=\"applications\" element={<JobApplicationsPage />} />\n <Route path=\"applications/:id\" element={<JobApplicationDetailPage />} />\n\n {/* Knowledge Base (full authoring) — canonical /kb paths */}\n <Route path=\"kb\" element={<KnowledgeBaseAdminPage />} />\n <Route path=\"kb/articles/new\" element={<CreateArticlePage />} />\n <Route path=\"kb/articles/:slug\" element={<ArticleDetailAdminPage />} />\n <Route path=\"kb/articles/:slug/edit\" element={<EditArticlePage />} />\n\n {/* /knowledge-base/* alias — redirects to the canonical /kb/* path */}\n <Route path=\"knowledge-base/*\" element={<KnowledgeBaseAliasRedirect />} />\n\n {/* Analytics (admin/manager only) */}\n <Route path=\"analytics\" element={<AnalyticsPage />} />\n\n {/* Settings (admin only) */}\n <Route path=\"settings\" element={<SettingsPage />} />\n\n {/* Catch-all redirect */}\n <Route path=\"*\" element={<CatchAllRedirect />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AASA,IAAM,IAAwB,QAC5B,OAAO,mCAAgC,CAAC,MAAM,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAC5F,GACM,IAAuB,QAC3B,OAAO,kCAA+B,CAAC,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAC1F,GACM,IAA2B,QAC/B,OAAO,sCAAmC,CAAC,MAAM,OAAO,EACtD,SAAS,EAAE,yBACb,EAAE,CACJ,GACM,IAAsB,QAC1B,OAAO,iCAA8B,CAAC,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACxF,GACM,IAA2B,QAC/B,OAAO,sCAAmC,CAAC,MAAM,OAAO,EACtD,SAAS,EA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,MAAK;IAAmB,SAAS,kBAAC,GAAD,CAA6B,CAAA;GAAI,CAAA;GAGzE,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,CAAgB,CAAA;GAAI,CAAA;GAGrD,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,CAAe,CAAA;GAAI,CAAA;GAGnD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD,CAAmB,CAAA;GAAI,CAAA;EAC1C,EAAA,CAAA;CACA,CAAA;AAEd"}
@@ -23,7 +23,8 @@ var d = (d) => {
23
23
  _,
24
24
  v
25
25
  ]), a(() => {
26
- if (f) return f([{
26
+ if (!f) return;
27
+ let e = [{
27
28
  id: "support-tickets",
28
29
  label: x("support.nav.tickets", "Tickets"),
29
30
  path: t(m, "tickets"),
@@ -37,7 +38,8 @@ var d = (d) => {
37
38
  icon: /* @__PURE__ */ u(c, { size: 20 }),
38
39
  order: 20,
39
40
  group: "support"
40
- }]);
41
+ }];
42
+ return f(e);
41
43
  }, [
42
44
  f,
43
45
  m,
@@ -1 +1 @@
1
- {"version":3,"file":"SupportUserRoot.js","names":[],"sources":["../../src/support/SupportUserRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Ticket, BookOpen } from 'lucide-react';\nimport { SupportProvider } from './providers/SupportProvider';\nimport type { NavItem, SupportRootProps } from './types';\nimport { SupportUserRoutes } from './SupportUserRoutes';\nimport { joinPath } from './utils';\nimport { useRegisterFooter } from './hooks/useRegisterFooter';\nimport { useSupportStore } from './store/supportStore';\n\n/**\n * User-facing root component for the Support microfrontend.\n *\n * Renders only user-relevant routes (tickets and KB browsing)\n * and registers user-only navigation items with the shell.\n *\n * Use this in product app shells (vibecontrols-app, bigconsole, etc.)\n * where end users interact with the support module.\n *\n * For admin-facing support features, use SupportAdminRoot instead.\n *\n * Note: This is a UI-layer route split, not a security boundary.\n * Access control is enforced at the API/server level.\n */\nexport const SupportUserRoot: FC<SupportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = '/',\n currentUser,\n workspaceId,\n organizationId,\n productId,\n } = props;\n const resetForContextChange = useSupportStore((state) => state.resetForContextChange);\n const { t } = useI18n();\n // Local tr helper: returns the translated value or `fallback` when the\n // key is missing (i18n returns the key itself on miss).\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n useEffect(() => {\n resetForContextChange();\n }, [resetForContextChange, currentUser?.id, workspaceId, organizationId, productId]);\n\n // Register user-only navigation items.\n // `t` is in the deps so labels re-register when locale changes — without\n // this, switching locale after mount leaves the old-language labels in the\n // shell's nav state.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'support-tickets',\n label: tr('support.nav.tickets', 'Tickets'),\n path: joinPath(basePath, 'tickets'),\n icon: <Ticket size={20} />,\n order: 10,\n group: 'support',\n },\n {\n id: 'support-kb',\n label: tr('support.nav.knowledgeBase', 'Knowledge Base'),\n path: joinPath(basePath, 'kb'),\n icon: <BookOpen size={20} />,\n order: 20,\n group: 'support',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n useRegisterFooter(registerFooterItems);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <SupportProvider {...props}>\n <SupportUserRoutes />\n </SupportProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AA0BA,IAAa,KAAyC,MAAU;CAC9D,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,gBACA,gBACA,mBACA,iBACE,GACE,IAAwB,GAAiB,MAAU,EAAM,sBAAsB,EAC/E,EAAE,SAAM,GAAS,EAGjB,KAAM,GAAa,MAA6B;EACpD,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;;AAwCzC,QArCA,QAAgB;AACd,KAAuB;IACtB;EAAC;EAAuB,GAAa;EAAI;EAAa;EAAgB;EAAU,CAAC,EAMpF,QAAgB;AACT,QAsBL,QADgB,EAnBY,CAC1B;GACE,IAAI;GACJ,OAAO,EAAG,uBAAuB,UAAU;GAC3C,MAAM,EAAS,GAAU,UAAU;GACnC,MAAM,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;GAC1B,OAAO;GACP,OAAO;GACR,EACD;GACE,IAAI;GACJ,OAAO,EAAG,6BAA6B,iBAAiB;GACxD,MAAM,EAAS,GAAU,KAAK;GAC9B,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;GAC5B,OAAO;GACP,OAAO;GACR,CACF,CAEyC;IAGzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAEnC,EAAkB,EAAoB,EAGpC,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;aAAsC;GAE/C,CAAA;YAGR,kBAAC,GAAD;GAAiB,GAAI;aACnB,kBAAC,GAAD,EAAqB,CAAA;GACL,CAAA;EACJ,CAAA"}
1
+ {"version":3,"file":"SupportUserRoot.js","names":[],"sources":["../../src/support/SupportUserRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Ticket, BookOpen } from 'lucide-react';\nimport { SupportProvider } from './providers/SupportProvider';\nimport type { NavItem, SupportRootProps } from './types';\nimport { SupportUserRoutes } from './SupportUserRoutes';\nimport { joinPath } from './utils';\nimport { useRegisterFooter } from './hooks/useRegisterFooter';\nimport { useSupportStore } from './store/supportStore';\n\n/**\n * User-facing root component for the Support microfrontend.\n *\n * Renders only user-relevant routes (tickets and KB browsing)\n * and registers user-only navigation items with the shell.\n *\n * Use this in product app shells (vibecontrols-app, bigconsole, etc.)\n * where end users interact with the support module.\n *\n * For admin-facing support features, use SupportAdminRoot instead.\n *\n * Note: This is a UI-layer route split, not a security boundary.\n * Access control is enforced at the API/server level.\n */\nexport const SupportUserRoot: FC<SupportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = '/',\n currentUser,\n workspaceId,\n organizationId,\n productId,\n } = props;\n const resetForContextChange = useSupportStore((state) => state.resetForContextChange);\n const { t } = useI18n();\n // Local tr helper: returns the translated value or `fallback` when the\n // key is missing (i18n returns the key itself on miss).\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n useEffect(() => {\n resetForContextChange();\n }, [resetForContextChange, currentUser?.id, workspaceId, organizationId, productId]);\n\n // Register user-only navigation items.\n // `t` is in the deps so labels re-register when locale changes — without\n // this, switching locale after mount leaves the old-language labels in the\n // shell's nav state.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'support-tickets',\n label: tr('support.nav.tickets', 'Tickets'),\n path: joinPath(basePath, 'tickets'),\n icon: <Ticket size={20} />,\n order: 10,\n group: 'support',\n },\n {\n id: 'support-kb',\n label: tr('support.nav.knowledgeBase', 'Knowledge Base'),\n path: joinPath(basePath, 'kb'),\n icon: <BookOpen size={20} />,\n order: 20,\n group: 'support',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n useRegisterFooter(registerFooterItems);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <SupportProvider {...props}>\n <SupportUserRoutes />\n </SupportProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AA0BA,IAAa,KAAyC,MAAU;CAC9D,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,gBACA,gBACA,mBACA,iBACE,GACE,IAAwB,GAAiB,MAAU,EAAM,qBAAqB,GAC9E,EAAE,SAAM,EAAQ,GAGhB,KAAM,GAAa,MAA6B;EACpD,IAAM,IAAa,EAAE,CAAG;EACxB,OAAO,MAAe,IAAM,IAAW;CACzC;CAuCA,OArCA,QAAgB;EACd,EAAsB;CACxB,GAAG;EAAC;EAAuB,GAAa;EAAI;EAAa;EAAgB;CAAS,CAAC,GAMnF,QAAgB;EACd,IAAI,CAAC,GAAkB;EAEvB,IAAM,IAAsB,CAC1B;GACE,IAAI;GACJ,OAAO,EAAG,uBAAuB,SAAS;GAC1C,MAAM,EAAS,GAAU,SAAS;GAClC,MAAM,kBAAC,GAAD,EAAQ,MAAM,GAAK,CAAA;GACzB,OAAO;GACP,OAAO;EACT,GACA;GACE,IAAI;GACJ,OAAO,EAAG,6BAA6B,gBAAgB;GACvD,MAAM,EAAS,GAAU,IAAI;GAC7B,MAAM,kBAAC,GAAD,EAAU,MAAM,GAAK,CAAA;GAC3B,OAAO;GACP,OAAO;EACT,CACF;EAGA,OADgB,EAAiB,CAC1B;CAET,GAAG;EAAC;EAAkB;EAAU;CAAC,CAAC,GAElC,EAAkB,CAAmB,GAGnC,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GAAsC,UAAA;EAEhD,CAAA;EAGP,UAAA,kBAAC,GAAD;GAAiB,GAAI;GACnB,UAAA,kBAAC,GAAD,CAAoB,CAAA;EACL,CAAA;CACJ,CAAA;AAEnB"}
@@ -6,9 +6,9 @@ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  //#region src/support/SupportUserRoutes.tsx
7
7
  var d = i(() => import("./pages/TicketDetailUserPage.js").then((e) => ({ default: e.TicketDetailUserPage }))), f = i(() => import("./pages/CreateTicketPage.js").then((e) => ({ default: e.CreateTicketPage }))), p = i(() => import("./pages/KnowledgeBaseUserPage.js").then((e) => ({ default: e.KnowledgeBaseUserPage }))), m = i(() => import("./pages/ArticleDetailUserPage.js").then((e) => ({ default: e.ArticleDetailUserPage })));
8
8
  function h() {
9
- let e = c();
9
+ let e = c(), t = e.pathname.replace("/knowledge-base", "/kb");
10
10
  return /* @__PURE__ */ l(a, {
11
- to: `${e.pathname.replace("/knowledge-base", "/kb")}${e.search}${e.hash}`,
11
+ to: `${t}${e.search}${e.hash}`,
12
12
  replace: !0
13
13
  });
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SupportUserRoutes.js","names":[],"sources":["../../src/support/SupportUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { PageLoader, CatchAllRedirect } from './components/RouteHelpers';\n\n// TicketListPage is eagerly imported — it's the default landing page after redirect,\n// so lazy-loading would cause a visible loading flash on every initial navigation.\nimport { TicketListPage } from './pages/TicketListPage';\n\n// Lazy loaded pages — user-specific variants for mixed pages\nconst TicketDetailUserPage = lazy(() =>\n import('./pages/TicketDetailUserPage').then((m) => ({ default: m.TicketDetailUserPage }))\n);\nconst CreateTicketPage = lazy(() =>\n import('./pages/CreateTicketPage').then((m) => ({ default: m.CreateTicketPage }))\n);\nconst KnowledgeBaseUserPage = lazy(() =>\n import('./pages/KnowledgeBaseUserPage').then((m) => ({ default: m.KnowledgeBaseUserPage }))\n);\nconst ArticleDetailUserPage = lazy(() =>\n import('./pages/ArticleDetailUserPage').then((m) => ({ default: m.ArticleDetailUserPage }))\n);\n\n// /knowledge-base/* deep links land here and immediately redirect to the canonical\n// /kb/* path so the URL stays consistent with the page-level navigation (which\n// hardcodes /kb paths). One wildcard route covers every sub-path so adding new\n// kb/* routes does not require maintaining a parallel knowledge-base/* mirror.\nfunction KnowledgeBaseAliasRedirect() {\n const location = useLocation();\n const targetPath = location.pathname.replace('/knowledge-base', '/kb');\n return <Navigate to={`${targetPath}${location.search}${location.hash}`} replace />;\n}\n\n/**\n * User-facing routes for the Support microfrontend.\n *\n * Only includes routes relevant to end users:\n * - Ticket management (list, create, view)\n * - Knowledge base browsing (read-only, published articles)\n *\n * Admin-only features (inquiries, analytics, settings, KB authoring)\n * are excluded — see SupportAdminRoutes for those.\n */\nexport function SupportUserRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Default redirect */}\n <Route index element={<Navigate to=\"tickets\" replace />} />\n\n {/* Tickets */}\n <Route path=\"tickets\" element={<TicketListPage />} />\n <Route path=\"tickets/new\" element={<CreateTicketPage />} />\n <Route path=\"tickets/:ticketId\" element={<TicketDetailUserPage />} />\n\n {/* Knowledge Base — canonical /kb paths */}\n <Route path=\"kb\" element={<KnowledgeBaseUserPage />} />\n <Route path=\"kb/articles/:slug\" element={<ArticleDetailUserPage />} />\n\n {/* /knowledge-base/* alias — redirects to the canonical /kb/* path */}\n <Route path=\"knowledge-base/*\" element={<KnowledgeBaseAliasRedirect />} />\n\n {/* Catch-all redirect */}\n <Route path=\"*\" element={<CatchAllRedirect />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AASA,IAAM,IAAuB,QAC3B,OAAO,mCAAgC,MAAM,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAC1F,EACK,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAClF,EACK,IAAwB,QAC5B,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAC5F,EACK,IAAwB,QAC5B,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAC5F;AAMD,SAAS,IAA6B;CACpC,IAAM,IAAW,GAAa;AAE9B,QAAO,kBAAC,GAAD;EAAU,IAAI,GADF,EAAS,SAAS,QAAQ,mBAAmB,MAAM,GACjC,EAAS,SAAS,EAAS;EAAQ,SAAA;EAAU,CAAA;;AAapF,SAAgB,IAAoB;AAClC,QACE,kBAAC,GAAD;EAAU,UAAU,kBAAC,GAAD,EAAc,CAAA;YAChC,kBAAC,GAAD,EAAA,UAAA;GAEE,kBAAC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAU,SAAA;KAAU,CAAA;IAAI,CAAA;GAG3D,kBAAC,GAAD;IAAO,MAAK;IAAU,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GACrD,kBAAC,GAAD;IAAO,MAAK;IAAc,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAC3D,kBAAC,GAAD;IAAO,MAAK;IAAoB,SAAS,kBAAC,GAAD,EAAwB,CAAA;IAAI,CAAA;GAGrE,kBAAC,GAAD;IAAO,MAAK;IAAK,SAAS,kBAAC,GAAD,EAAyB,CAAA;IAAI,CAAA;GACvD,kBAAC,GAAD;IAAO,MAAK;IAAoB,SAAS,kBAAC,GAAD,EAAyB,CAAA;IAAI,CAAA;GAGtE,kBAAC,GAAD;IAAO,MAAK;IAAmB,SAAS,kBAAC,GAAD,EAA8B,CAAA;IAAI,CAAA;GAG1E,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAC1C,EAAA,CAAA;EACA,CAAA"}
1
+ {"version":3,"file":"SupportUserRoutes.js","names":[],"sources":["../../src/support/SupportUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { PageLoader, CatchAllRedirect } from './components/RouteHelpers';\n\n// TicketListPage is eagerly imported — it's the default landing page after redirect,\n// so lazy-loading would cause a visible loading flash on every initial navigation.\nimport { TicketListPage } from './pages/TicketListPage';\n\n// Lazy loaded pages — user-specific variants for mixed pages\nconst TicketDetailUserPage = lazy(() =>\n import('./pages/TicketDetailUserPage').then((m) => ({ default: m.TicketDetailUserPage }))\n);\nconst CreateTicketPage = lazy(() =>\n import('./pages/CreateTicketPage').then((m) => ({ default: m.CreateTicketPage }))\n);\nconst KnowledgeBaseUserPage = lazy(() =>\n import('./pages/KnowledgeBaseUserPage').then((m) => ({ default: m.KnowledgeBaseUserPage }))\n);\nconst ArticleDetailUserPage = lazy(() =>\n import('./pages/ArticleDetailUserPage').then((m) => ({ default: m.ArticleDetailUserPage }))\n);\n\n// /knowledge-base/* deep links land here and immediately redirect to the canonical\n// /kb/* path so the URL stays consistent with the page-level navigation (which\n// hardcodes /kb paths). One wildcard route covers every sub-path so adding new\n// kb/* routes does not require maintaining a parallel knowledge-base/* mirror.\nfunction KnowledgeBaseAliasRedirect() {\n const location = useLocation();\n const targetPath = location.pathname.replace('/knowledge-base', '/kb');\n return <Navigate to={`${targetPath}${location.search}${location.hash}`} replace />;\n}\n\n/**\n * User-facing routes for the Support microfrontend.\n *\n * Only includes routes relevant to end users:\n * - Ticket management (list, create, view)\n * - Knowledge base browsing (read-only, published articles)\n *\n * Admin-only features (inquiries, analytics, settings, KB authoring)\n * are excluded — see SupportAdminRoutes for those.\n */\nexport function SupportUserRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Default redirect */}\n <Route index element={<Navigate to=\"tickets\" replace />} />\n\n {/* Tickets */}\n <Route path=\"tickets\" element={<TicketListPage />} />\n <Route path=\"tickets/new\" element={<CreateTicketPage />} />\n <Route path=\"tickets/:ticketId\" element={<TicketDetailUserPage />} />\n\n {/* Knowledge Base — canonical /kb paths */}\n <Route path=\"kb\" element={<KnowledgeBaseUserPage />} />\n <Route path=\"kb/articles/:slug\" element={<ArticleDetailUserPage />} />\n\n {/* /knowledge-base/* alias — redirects to the canonical /kb/* path */}\n <Route path=\"knowledge-base/*\" element={<KnowledgeBaseAliasRedirect />} />\n\n {/* Catch-all redirect */}\n <Route path=\"*\" element={<CatchAllRedirect />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AASA,IAAM,IAAuB,QAC3B,OAAO,kCAA+B,CAAC,MAAM,OAAO,EAAE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,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD,CAAmB,CAAA;GAAI,CAAA;EAC1C,EAAA,CAAA;CACA,CAAA;AAEd"}
@@ -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-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"}
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;CAC/F,IAAI,CAAC,GAAc,OAAO;CAE1B,IAAM,IAAU,EAAa,SAAS,SAChC,IAAY,EAAa,SAAS;CAExC,OACE,kBAAC,OAAD;EACE,MAAM,IAAU,UAAU;EAC1B,aAAW,IAAU,cAAc;EACnC,eAAY;EACZ,WAAW,iLACT,IACI,iDACA,IACE,2CACA;EATV,UAAA,CAYG,IACC,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAe,eAAY;EAAQ,CAAA,IACzE,IACF,kBAAC,GAAD;GAAa,MAAM;GAAW,WAAU;GAAa,eAAY;EAAQ,CAAA,IAEzE,kBAAC,GAAD;GAAM,MAAM;GAAW,WAAU;GAAY,eAAY;EAAQ,CAAA,GAEnE,kBAAC,QAAD;GAAM,WAAU;GAAe,UAAA,EAAa;EAAc,CAAA,CACvD;;AAET"}
@@ -1 +1 @@
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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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;AACR;AAWA,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,CAAW,IAC9C,EAAM,MAAM,GAAG,EAAM,SAAS,EAAY,MAAM,IAChD;CACN,OACE,kBAAC,OAAD;EACE,WAAW,EAET,iBAEA,iCAEA,yBAEA,4DACA,CACF;EAGA,UAAA,kBAAC,OAAD;GAAK,WAAW,EAAG,kBAAkB,EAAgB,IAAW,CAAgB;GAAhF,UAAA,CAEG,MAAe,KAAS,MACvB,kBAAC,UAAD;IACE,WAAW,EACT,gBAEA,KACE,8HACJ;IANF,UAAA;KAQG,KAAU,kBAAC,GAAD,EAAkB,WAAU,SAAU,CAAA;KACjD,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CAEE,kBAAC,OAAD;OAAK,WAAU;OAAf,UAAA,EACI,KAAS,MACT,kBAAC,OAAD;QAAK,WAAU;QAAf,UAA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AA0F,CAAA,CACtG;EACL,CAAA,GAAA,kBAAC,QAAD;GAAM,WAAU;GAAgD,UAAA;EAAc,CAAA,CAC3E;;AAET"}
@@ -1 +1 @@
1
- {"version":3,"file":"RouteHelpers.js","names":[],"sources":["../../../src/support/components/RouteHelpers.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useNavigate } from 'react-router';\nimport { useSupport } from '../providers/SupportProvider';\nimport { joinPath } from '../utils';\n\n/**\n * Shared loading fallback for lazy-loaded route pages.\n */\nexport function PageLoader() {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n <div className=\"size-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n </div>\n );\n}\n\n/**\n * Catch-all redirect that sends unknown paths to the tickets page.\n * Uses basePath from SupportProvider context and joinPath to avoid double-slashes.\n */\nexport function CatchAllRedirect() {\n const { basePath = '/' } = useSupport();\n const navigate = useNavigate();\n useEffect(() => {\n navigate(joinPath(basePath, 'tickets'), { replace: true });\n }, [basePath, navigate]);\n return null;\n}\n"],"mappings":";;;;;;AAQA,SAAgB,IAAa;AAC3B,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD,EAAK,WAAU,iFAAkF,CAAA;EAC7F,CAAA;;AAQV,SAAgB,IAAmB;CACjC,IAAM,EAAE,cAAW,QAAQ,GAAY,EACjC,IAAW,GAAa;AAI9B,QAHA,QAAgB;AACd,IAAS,EAAS,GAAU,UAAU,EAAE,EAAE,SAAS,IAAM,CAAC;IACzD,CAAC,GAAU,EAAS,CAAC,EACjB"}
1
+ {"version":3,"file":"RouteHelpers.js","names":[],"sources":["../../../src/support/components/RouteHelpers.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useNavigate } from 'react-router';\nimport { useSupport } from '../providers/SupportProvider';\nimport { joinPath } from '../utils';\n\n/**\n * Shared loading fallback for lazy-loaded route pages.\n */\nexport function PageLoader() {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n <div className=\"size-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n </div>\n );\n}\n\n/**\n * Catch-all redirect that sends unknown paths to the tickets page.\n * Uses basePath from SupportProvider context and joinPath to avoid double-slashes.\n */\nexport function CatchAllRedirect() {\n const { basePath = '/' } = useSupport();\n const navigate = useNavigate();\n useEffect(() => {\n navigate(joinPath(basePath, 'tickets'), { replace: true });\n }, [basePath, navigate]);\n return null;\n}\n"],"mappings":";;;;;;AAQA,SAAgB,IAAa;CAC3B,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD,EAAK,WAAU,gFAAiF,CAAA;CAC7F,CAAA;AAET;AAMA,SAAgB,IAAmB;CACjC,IAAM,EAAE,cAAW,QAAQ,EAAW,GAChC,IAAW,EAAY;CAI7B,OAHA,QAAgB;EACd,EAAS,EAAS,GAAU,SAAS,GAAG,EAAE,SAAS,GAAK,CAAC;CAC3D,GAAG,CAAC,GAAU,CAAQ,CAAC,GAChB;AACT"}
@@ -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';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE,EACvD,IAAgB,EAAK,MAAM,GAAG,EAAE;AAEtC,QACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;YAFZ,CAIE,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,CACI"}
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';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,CAAC,GACtD,IAAgB,EAAK,MAAM,GAAG,CAAC;CAErC,OACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;EAFZ,UAAA,CAIE,kBAAC,MAAD;GAAI,WAAU;GAAd,UAAA,CACE,kBAAC,GAAD,EAAY,MAAM,GAAK,CAAA,GAAC,gBAEtB;EAEJ,CAAA,GAAA,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,EAAc,KAAK,GAAM,MAAU;IAClC,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAuB,IAAQ,EAAuB;IAEzE,OACE,kBAAC,OAAD;KAEE,WAAU;KAFZ,UAAA,CAIE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD,EAAK,WAAW,sCAAsC,IAAe,CAAA,GACrE,kBAAC,QAAD;OAAM,WAAU;OAAiC,UAAA,EAAK;MAAe,CAAA,CAClE;KACL,CAAA,GAAA,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD;OAAK,WAAU;OACb,UAAA,kBAAC,OAAD;QAAK,WAAU;QACb,UAAA,kBAAC,OAAD;SACE,WAAW,mDAAmD;SAC9D,OAAO,EACL,OAAO,GAAG,EAAW,GACvB;QACD,CAAA;OACE,CAAA;MACF,CAAA,GACL,kBAAC,QAAD;OAAM,WAAU;OACb,UAAA,EAAK;MACF,CAAA,CACH;KACF,CAAA,CAAA;IAtBE,GAAA,EAAK,QAsBP;GAET,CAAC;EACE,CAAA,CACI;;AAEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"MetricCard.js","names":[],"sources":["../../../../src/support/components/analytics/MetricCard.tsx"],"sourcesContent":["import { LucideIcon } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"metric\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\n <div className=\"flex items-center justify-between mb-3\">\n <span className=\"text-sm font-medium text-secondary\">{title}</span>\n <span className=\"flex size-9 shrink-0 items-center justify-center rounded-lg bg-accent-soft\">\n <Icon size={20} className={iconColor} />\n </span>\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 </GlassCard>\n );\n}\n"],"mappings":";;;AAWA,SAAgB,EAAW,EAAE,UAAO,UAAO,MAAM,GAAM,cAAW,eAA6B;AAC7F,QACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;YAFZ;GAIE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,QAAD;KAAM,WAAU;eAAsC;KAAa,CAAA,EACnE,kBAAC,QAAD;KAAM,WAAU;eACd,kBAAC,GAAD;MAAM,MAAM;MAAI,WAAW;MAAa,CAAA;KACnC,CAAA,CACH;;GACN,kBAAC,KAAD;IAAG,WAAU;cAAqD;IAAU,CAAA;GAC3E,KAAY,kBAAC,KAAD;IAAG,WAAU;cAAyB;IAAa,CAAA;GACtD"}
1
+ {"version":3,"file":"MetricCard.js","names":[],"sources":["../../../../src/support/components/analytics/MetricCard.tsx"],"sourcesContent":["import { LucideIcon } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"metric\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\n <div className=\"flex items-center justify-between mb-3\">\n <span className=\"text-sm font-medium text-secondary\">{title}</span>\n <span className=\"flex size-9 shrink-0 items-center justify-center rounded-lg bg-accent-soft\">\n <Icon size={20} className={iconColor} />\n </span>\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 </GlassCard>\n );\n}\n"],"mappings":";;;AAWA,SAAgB,EAAW,EAAE,UAAO,UAAO,MAAM,GAAM,cAAW,eAA6B;CAC7F,OACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;EAFZ,UAAA;GAIE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,QAAD;KAAM,WAAU;KAAsC,UAAA;IAAY,CAAA,GAClE,kBAAC,QAAD;KAAM,WAAU;KACd,UAAA,kBAAC,GAAD;MAAM,MAAM;MAAI,WAAW;KAAY,CAAA;IACnC,CAAA,CACH;;GACL,kBAAC,KAAD;IAAG,WAAU;IAAqD,UAAA;GAAS,CAAA;GAC1E,KAAY,kBAAC,KAAD;IAAG,WAAU;IAAyB,UAAA;GAAY,CAAA;EACtD;;AAEf"}
@@ -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';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;;AAaA,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,GAAD;EACE,WAAU;EACV,WAAU;YAFZ,CAIE,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,CACI"}
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';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;;AAaA,IAAM,IAAyC;CAC7C,GAAG;CACH,QAAQ,EAAyB;CACjC,QAAQ,EAAyB;AACnC;AAEA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,CAAC;CAE5D,OACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;EAFZ,UAAA,CAIE,kBAAC,MAAD;GAAI,WAAU;GAAd,UAAA,CACE,kBAAC,GAAD,EAAa,MAAM,GAAK,CAAA,GAAC,qBAEvB;EAEJ,CAAA,GAAA,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,EAAK,KAAK,MAAS;IAClB,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAe,EAAK,aAAa;IAEpD,OACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD,EAAK,WAAW,wBAAwB,IAAe,CAAA,GACvD,kBAAC,QAAD;OAAM,WAAU;OAA4B,UAAA,EAAK;MAAe,CAAA,CAC7D;KACL,CAAA,GAAA,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,QAAD;OAAM,WAAU;OAAhB,UAAA,CACG,EAAW,QAAQ,CAAC,GAAE,GACnB;MACN,CAAA,GAAA,kBAAC,QAAD;OAAM,WAAU;OAA2C,UAAA,EAAK;MAAY,CAAA,CACzE;KACF,CAAA,CAAA;IACL,CAAA,GAAA,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAAC,OAAD;MACE,WAAW,mDAAmD;MAC9D,OAAO,EACL,OAAO,GAAG,EAAW,GACvB;MACA,iBAAe,EAAK;KACrB,CAAA;IACE,CAAA,CACF,EAAA,GAtBK,EAAK,QAsBV;GAET,CAAC;EACE,CAAA,CACI;;AAEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AA0BA,SAAgB,EAAU,EAAE,aAA0B;AACpD,QACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;YAFZ;GAIE,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;GACI"}
1
+ {"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AA0BA,SAAgB,EAAU,EAAE,aAA0B;CACpD,OACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;EAFZ,UAAA;GAIE,kBAAC,MAAD;IAAI,WAAU;IAAd,UAAA,CACE,kBAAC,GAAD,EAAQ,MAAM,GAAK,CAAA,GAAC,uBAElB;;GAEJ,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA;OACE,kBAAC,KAAD;QAAG,WAAU;QAAyC,UAAA;OAAiB,CAAA;OACvE,kBAAC,KAAD;QACE,WAAW,mCACT,EAAO,2BAA2B,KAAK,iBAAiB;QAF5D,UAAA,CAKG,EAAO,wBAAwB,QAAQ,CAAC,GAAE,GAC1C;;OACH,kBAAC,KAAD;QAAG,WAAU;QAAb,UAAA;SAA0C;UACjC,EAAO,uBAAuB,GAAA,CAAI,QAAQ,CAAC;SAAE;QACnD;;MACA;;KAEL,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA;OACE,kBAAC,KAAD;QAAG,WAAU;QAAyC,UAAA;OAAa,CAAA;OACnE,kBAAC,KAAD;QACE,WAAW,mCACT,EAAO,wBAAwB,K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,QAAQ,CAAC,GAAE,GACxB;KACH,CAAA,CAAA;IAlBE,GAAA,EAAK,QAkBP,CACN;GACE,CAAA,CACF,EAAA,CAAA;EACI;;AAEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"SatisfactionDistribution.js","names":[],"sources":["../../../../src/support/components/analytics/SatisfactionDistribution.tsx"],"sourcesContent":["import { ThumbsUp, Star } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AA0BA,SAAgB,EAAyB,EAAE,cAA0C;CACnF,IAAM,IAAe;EACn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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;GACI"}
1
+ {"version":3,"file":"SatisfactionDistribution.js","names":[],"sources":["../../../../src/support/components/analytics/SatisfactionDistribution.tsx"],"sourcesContent":["import { ThumbsUp, Star } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AA0BA,SAAgB,EAAyB,EAAE,cAA0C;CACnF,IAAM,IAAe;EACnB;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;EAAQ;EAC3C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;EAAQ;EAC3C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;EAAQ;EAC3C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;EAAQ;EAC3C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;EAAQ;CAC7C,GAEM,IAAW,KAAK,IAAI,GAAG,EAAa,KAAK,MAAM,EAAE,KAAK,CAA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,GAAA,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,EAAa,KAAK,MAAS;KAC1B,IAAM,IACJ,EAAQ,iBAAiB,IAAK,EAAK,QAAQ,EAAQ,iBAAkB,MAAM,GACvE,IAAe,IAAW,IAAK,EAAK,QAAQ,IAAY,MAAM;KAEpE,OACE,kBAAC,OAAD;MAAsB,WAAU;MAAhC,UAAA,CACE,kBAAC,OAAD;OAAK,WAAU;OAAf,UAAA,CACE,kBAAC,QAAD;QAAM,WAAU;QAAoC,UAAA,EAAK;OAAY,CAAA,GACrE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;OAA6B,CAAA,CACpD;MACL,CAAA,GAAA,kBAAC,OAAD;OAAK,WAAU;OAAf,UAAA,CACE,kBAAC,OAAD;QAAK,WAAU;QACb,UAAA,kBAAC,OAAD;SACE,WAAU;SACV,OAAO;UACL,OAAO,GAAG,EAAa;UACvB,UAAU,EAAK,QAAQ,IAAI,SAAS;SACtC;SAEC,UAAA,EAAK,QAAQ,KACZ,kBAAC,QAAD;UAAM,WAAU;UACb,UAAA,EAAK;SACF,CAAA;QAEL,CAAA;OACF,CAAA,GACL,kBAAC,QAAD;QAAM,WAAU;QAAhB,UAAA,CACG,EAAW,QAAQ,CAAC,GAAE,GACnB;OACH,CAAA,CAAA;MACF,CAAA,CAAA;KAzBK,GAAA,EAAK,KAyBV;IAET,CAAC;GACE,CAAA,CACF,EAAA,CAAA;EACI;;AAEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"TopAgents.js","names":[],"sources":["../../../../src/support/components/analytics/TopAgents.tsx"],"sourcesContent":["import { Award, Star } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 ${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 </GlassCard>\n );\n}\n"],"mappings":";;;;AAsBA,SAAgB,EAAU,EAAE,aAA0B;CACpD,IAAM,IAAY,EAAO,MAAM,GAAG,EAAE,EAC9B,IAAsC;EAC1C,GAAG;EACH,GAAG;EACH,GAAG;EACJ;AAED,QACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;YAFZ,CAIE,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,2FAA2F,EAAY,EAAM,SAAS;eAEhI,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;KACI"}
1
+ {"version":3,"file":"TopAgents.js","names":[],"sources":["../../../../src/support/components/analytics/TopAgents.tsx"],"sourcesContent":["import { Award, Star } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 ${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 </GlassCard>\n );\n}\n"],"mappings":";;;;AAsBA,SAAgB,EAAU,EAAE,aAA0B;CACpD,IAAM,IAAY,EAAO,MAAM,GAAG,CAAC,GAC7B,IAAsC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D,CAAA,CAEJ;EACI,CAAA,CAAA;;AAEf"}
@@ -20,15 +20,15 @@ function i({ trends: i, period: a }) {
20
20
  }), /* @__PURE__ */ n("div", {
21
21
  className: "space-y-2",
22
22
  children: i.map((e) => {
23
- let t = (e.value - s) / c * 100, i = new Date(e.timestamp);
23
+ let t = (e.value - s) / c * 100, i = new Date(e.timestamp), a = e.label || i.toLocaleDateString("en-US", {
24
+ month: "short",
25
+ day: "numeric"
26
+ });
24
27
  return /* @__PURE__ */ r("div", {
25
28
  className: "flex items-center gap-3 transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded",
26
29
  children: [/* @__PURE__ */ n("span", {
27
30
  className: "text-xs w-20 text-right text-tertiary",
28
- children: e.label || i.toLocaleDateString("en-US", {
29
- month: "short",
30
- day: "numeric"
31
- })
31
+ children: a
32
32
  }), /* @__PURE__ */ r("div", {
33
33
  className: "flex-1 flex items-center gap-2",
34
34
  children: [/* @__PURE__ */ n("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"TrendChart.js","names":[],"sources":["../../../../src/support/components/analytics/TrendChart.tsx"],"sourcesContent":["import { TrendingUp } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AAkBA,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,GAAD;EACE,WAAU;EACV,WAAU;YAFZ,CAIE,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,CACI"}
1
+ {"version":3,"file":"TrendChart.js","names":[],"sources":["../../../../src/support/components/analytics/TrendChart.tsx"],"sourcesContent":["import { TrendingUp } from 'lucide-react';\nimport { GlassCard } from '../ui';\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 <GlassCard\n treatment=\"insight\"\n className=\"p-6 border-border-seam animate-in fade-in-0 slide-in-from-bottom-2\"\n >\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 </GlassCard>\n );\n}\n"],"mappings":";;;;AAkBA,SAAgB,EAAW,EAAE,WAAQ,aAA2B;CAC9D,IAAI,CAAC,KAAU,EAAO,WAAW,GAC/B,OAAO;CAGT,IAAM,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,KAAK,CAAC,GACjD,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,KAAK,CAAC,GACjD,IAAQ,IAAW,KAAY;CAErC,OACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAU;EAFZ,UAAA,CAIE,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;IAAd,UAAA,CACE,kBAAC,GAAD,EAAY,MAAM,GAAK,CAAA,GAAC,sBAEtB;GACJ,CAAA,GAAA,kBAAC,KAAD;IAAG,WAAU;IAA+B,UAAA,EAAO;GAAS,CAAA,CACzD,EAAA,CAAA;EACF,CAAA,GAEL,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,EAAO,KAAK,MAAU;IACrB,IAAM,KAAkB,EAAM,QAAQ,KAAY,IAAS,KACrD,IAAO,IAAI,KAAK,EAAM,SAAS,GAC/B,IACJ,EAAM,SAAS,EAAK,mBAAmB,SAAS;KAAE,OAAO;KAAS,KAAK;IAAU,CAAC;IAEpF,OACE,kBAAC,OAAD;KAEE,WAAU;KAFZ,UAAA,CAIE,kBAAC,QAAD;MAAM,WAAU;MAAyC,UAAA;KAAY,CAAA,GACrE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD;OACE,WAAU;OACV,OAAO,EACL,OAAO,GAAG,KAAK,IAAI,GAAe,CAAC,EAAE,GACvC;MACD,CAAA,GACD,kBAAC,QAAD;OAAM,WAAU;OAAoC,UAAA,EAAM;MAAY,CAAA,CACnE;KACF,CAAA,CAAA;IAbE,GAAA,EAAM,SAaR;GAET,CAAC;EACE,CAAA,CACI;;AAEf"}
@@ -0,0 +1,6 @@
1
+ interface BulkCandidateActionGuidanceProps {
2
+ action: 'message' | 'assignment';
3
+ unresolvedCount?: number;
4
+ }
5
+ export declare function BulkCandidateActionGuidance({ action, unresolvedCount, }: BulkCandidateActionGuidanceProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,28 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ //#region src/support/components/careers/BulkCandidateActionGuidance.tsx
3
+ function n({ action: n, unresolvedCount: r = 0 }) {
4
+ return /* @__PURE__ */ t("div", {
5
+ className: "space-y-3 text-sm text-text-secondary",
6
+ children: [n === "message" ? /* @__PURE__ */ e("p", { children: "Send only the free-text message below. This does not assign a take-home." }) : /* @__PURE__ */ e("p", { children: "One active posting assignment is independently selected server-side with cryptographically secure randomness for each eligible candidate at send time and emailed with the Career submission link. The exact assignment is therefore not shown before send, but appears on the candidate round afterward." }), r > 0 ? /* @__PURE__ */ t("div", {
7
+ className: "rounded-md border border-status-warning-border bg-status-warning-bg-subtle p-3 text-status-warning-text",
8
+ role: "alert",
9
+ children: [
10
+ r,
11
+ " selected ",
12
+ r === 1 ? "candidate has" : "candidates have",
13
+ " not ",
14
+ "been added to the configured round. Use",
15
+ " ",
16
+ /* @__PURE__ */ e("span", {
17
+ className: "font-semibold",
18
+ children: "Add Selected to Round"
19
+ }),
20
+ " first, then re-open this action to refresh the preview."
21
+ ]
22
+ }) : null]
23
+ });
24
+ }
25
+ //#endregion
26
+ export { n as BulkCandidateActionGuidance };
27
+
28
+ //# sourceMappingURL=BulkCandidateActionGuidance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkCandidateActionGuidance.js","names":[],"sources":["../../../../src/support/components/careers/BulkCandidateActionGuidance.tsx"],"sourcesContent":["interface BulkCandidateActionGuidanceProps {\n action: 'message' | 'assignment';\n unresolvedCount?: number;\n}\n\nexport function BulkCandidateActionGuidance({\n action,\n unresolvedCount = 0,\n}: BulkCandidateActionGuidanceProps) {\n return (\n <div className=\"space-y-3 text-sm text-text-secondary\">\n {action === 'message' ? (\n <p>Send only the free-text message below. This does not assign a take-home.</p>\n ) : (\n <p>\n One active posting assignment is independently selected server-side with cryptographically\n secure randomness for each eligible candidate at send time and emailed with the Career\n submission link. The exact assignment is therefore not shown before send, but appears on\n the candidate round afterward.\n </p>\n )}\n\n {unresolvedCount > 0 ? (\n <div\n className=\"rounded-md border border-status-warning-border bg-status-warning-bg-subtle p-3 text-status-warning-text\"\n role=\"alert\"\n >\n {unresolvedCount} selected {unresolvedCount === 1 ? 'candidate has' : 'candidates have'}\n {' not '}been added to the configured round. Use{' '}\n <span className=\"font-semibold\">Add Selected to Round</span> first, then re-open this\n action to refresh the preview.\n </div>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;AAKA,SAAgB,EAA4B,EAC1C,WACA,qBAAkB,KACiB;CACnC,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACG,MAAW,YACV,kBAAC,KAAD,EAAA,UAAG,2EAA2E,CAAA,IAE9E,kBAAC,KAAD,EAAA,UAAG,4SAKA,CAAA,GAGJ,IAAkB,IACjB,kBAAC,OAAD;GACE,WAAU;GACV,MAAK;GAFP,UAAA;IAIG;IAAgB;IAAW,MAAoB,IAAI,kBAAkB;IACrE;IAAQ;IAAwC;IACjD,kBAAC,QAAD;KAAM,WAAU;KAAgB,UAAA;IAA2B,CAAA;IAAC;GAEzD;EACH,CAAA,IAAA,IACD;;AAET"}