@burdenoff/microfe-support 2026.1114.1 → 2026.1118.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/generated/global-operations.d.ts +62 -0
  2. package/dist/generated/global-operations.js +104 -69
  3. package/dist/generated/global-operations.js.map +1 -1
  4. package/dist/generated/global-types.js +17 -15
  5. package/dist/generated/global-types.js.map +1 -1
  6. package/dist/support/SupportUserRoot.js +32 -28
  7. package/dist/support/SupportUserRoot.js.map +1 -1
  8. package/dist/support/SupportUserRoutes.d.ts +1 -0
  9. package/dist/support/SupportUserRoutes.js +31 -28
  10. package/dist/support/SupportUserRoutes.js.map +1 -1
  11. package/dist/support/components/PageLayout.js +35 -35
  12. package/dist/support/components/RouteHelpers.d.ts +2 -1
  13. package/dist/support/components/RouteHelpers.js +3 -3
  14. package/dist/support/components/RouteHelpers.js.map +1 -1
  15. package/dist/support/components/careers/RichTextEditor.js +31 -31
  16. package/dist/support/components/careers/RichTextEditor.js.map +1 -1
  17. package/dist/support/components/help/RelatedArticles.d.ts +12 -0
  18. package/dist/support/components/help/RelatedArticles.js +55 -0
  19. package/dist/support/components/help/RelatedArticles.js.map +1 -0
  20. package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
  21. package/dist/support/components/help/RequestDetailHeader.js +129 -0
  22. package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
  23. package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
  24. package/dist/support/components/help/SatisfactionReview.js +103 -0
  25. package/dist/support/components/help/SatisfactionReview.js.map +1 -0
  26. package/dist/support/components/help/StarRating.d.ts +16 -0
  27. package/dist/support/components/help/StarRating.js +63 -0
  28. package/dist/support/components/help/StarRating.js.map +1 -0
  29. package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
  30. package/dist/support/components/help/StatusGroupPill.js +19 -0
  31. package/dist/support/components/help/StatusGroupPill.js.map +1 -0
  32. package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
  33. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  34. package/dist/support/components/tickets/MessageComposer.js +7 -7
  35. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  36. package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
  37. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  38. package/dist/support/components/ui.js +1 -1
  39. package/dist/support/constants.d.ts +23 -0
  40. package/dist/support/constants.js +2 -2
  41. package/dist/support/constants.js.map +1 -1
  42. package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
  43. package/dist/support/hooks/useDebouncedValue.js +12 -0
  44. package/dist/support/hooks/useDebouncedValue.js.map +1 -0
  45. package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
  46. package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
  47. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  48. package/dist/support/hooks/useSupportVariant.d.ts +11 -0
  49. package/dist/support/hooks/useSupportVariant.js +11 -0
  50. package/dist/support/hooks/useSupportVariant.js.map +1 -0
  51. package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
  52. package/dist/support/hooks/useTicketCreatedToast.js +25 -0
  53. package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
  54. package/dist/support/hooks/useTicketLabels.d.ts +22 -0
  55. package/dist/support/hooks/useTicketLabels.js +40 -0
  56. package/dist/support/hooks/useTicketLabels.js.map +1 -0
  57. package/dist/support/index.d.ts +1 -1
  58. package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
  59. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  60. package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
  61. package/dist/support/pages/ArticleDetailUserPage.js +133 -69
  62. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  63. package/dist/support/pages/AskForHelpPage.d.ts +11 -0
  64. package/dist/support/pages/AskForHelpPage.js +396 -0
  65. package/dist/support/pages/AskForHelpPage.js.map +1 -0
  66. package/dist/support/pages/ContactInquiriesPage.js +73 -73
  67. package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
  68. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  69. package/dist/support/pages/CreateTicketPage.d.ts +4 -0
  70. package/dist/support/pages/CreateTicketPage.js +121 -117
  71. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  72. package/dist/support/pages/HelpHubPage.d.ts +9 -0
  73. package/dist/support/pages/HelpHubPage.js +272 -0
  74. package/dist/support/pages/HelpHubPage.js.map +1 -0
  75. package/dist/support/pages/JobApplicationDetailPage.js +388 -388
  76. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  77. package/dist/support/pages/JobApplicationsPage.js +35 -35
  78. package/dist/support/pages/JobPostingDetailPage.js +236 -236
  79. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  80. package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
  81. package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
  82. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  83. package/dist/support/pages/MyRequestsPage.d.ts +16 -0
  84. package/dist/support/pages/MyRequestsPage.js +389 -0
  85. package/dist/support/pages/MyRequestsPage.js.map +1 -0
  86. package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
  87. package/dist/support/pages/TicketDetailUserPage.js +285 -192
  88. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  89. package/dist/support/pages/TicketListPage.d.ts +7 -0
  90. package/dist/support/pages/TicketListPage.js +150 -153
  91. package/dist/support/pages/TicketListPage.js.map +1 -1
  92. package/dist/support/providers/SupportProvider.js +8 -7
  93. package/dist/support/providers/SupportProvider.js.map +1 -1
  94. package/dist/support/store/supportStore.d.ts +5 -0
  95. package/dist/support/store/supportStore.js +1 -0
  96. package/dist/support/store/supportStore.js.map +1 -1
  97. package/dist/support/translations/en.d.ts +279 -0
  98. package/dist/support/translations/en.js +270 -1
  99. package/dist/support/translations/en.js.map +1 -1
  100. package/dist/support/types/index.d.ts +13 -0
  101. package/dist/support/utils/cameFrom.d.ts +16 -0
  102. package/dist/support/utils/cameFrom.js +22 -0
  103. package/dist/support/utils/cameFrom.js.map +1 -0
  104. package/dist/support/utils/dates.d.ts +15 -0
  105. package/dist/support/utils/dates.js +35 -0
  106. package/dist/support/utils/dates.js.map +1 -0
  107. package/dist/support/utils/reopen.d.ts +27 -0
  108. package/dist/support/utils/reopen.js +27 -0
  109. package/dist/support/utils/reopen.js.map +1 -0
  110. package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
  111. package/dist/support/utils/requestTechnicalDetails.js +38 -0
  112. package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
  113. package/dist/support/utils/ticketFilters.d.ts +16 -0
  114. package/dist/support/utils/ticketFilters.js +24 -12
  115. package/dist/support/utils/ticketFilters.js.map +1 -1
  116. package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
  117. package/dist/support/utils/ticketStatusGroups.js +39 -0
  118. package/dist/support/utils/ticketStatusGroups.js.map +1 -0
  119. package/package.json +2 -2
  120. package/dist/_virtual/_rolldown/runtime.js +0 -6
  121. package/dist/node_modules/@tiptap/core/dist/index.js +0 -3491
  122. package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
  123. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -44
  124. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
  125. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +0 -12
  126. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +0 -1
  127. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -75
  128. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
  129. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -73
  130. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
  131. package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -78
  132. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
  133. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -157
  134. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
  135. package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -11
  136. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
  137. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -50
  138. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
  139. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -70
  140. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
  141. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -49
  142. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
  143. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -70
  144. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
  145. package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -389
  146. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
  147. package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -967
  148. package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
  149. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -46
  150. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
  151. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -6
  152. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
  153. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -55
  154. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
  155. package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -14
  156. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
  157. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -72
  158. package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
  159. package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -457
  160. package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
  161. package/dist/node_modules/@tiptap/react/dist/index.js +0 -332
  162. package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
  163. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -28
  164. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
  165. package/dist/node_modules/fast-equals/dist/es/index.js +0 -298
  166. package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
  167. package/dist/node_modules/linkifyjs/dist/linkify.js +0 -527
  168. package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
  169. package/dist/node_modules/orderedmap/dist/index.js +0 -68
  170. package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
  171. package/dist/node_modules/prosemirror-commands/dist/index.js +0 -334
  172. package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
  173. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -112
  174. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
  175. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -168
  176. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
  177. package/dist/node_modules/prosemirror-history/dist/index.js +0 -219
  178. package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
  179. package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -51
  180. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
  181. package/dist/node_modules/prosemirror-model/dist/index.js +0 -1775
  182. package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
  183. package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -77
  184. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
  185. package/dist/node_modules/prosemirror-state/dist/index.js +0 -526
  186. package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
  187. package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1204
  188. package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
  189. package/dist/node_modules/prosemirror-view/dist/index.js +0 -3355
  190. package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
  191. package/dist/node_modules/rope-sequence/dist/index.js +0 -84
  192. package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
  193. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -55
  194. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  195. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -53
  196. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  197. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -53
  198. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  199. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -45
  200. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  201. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -11
  202. package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  203. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -11
  204. package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  205. package/dist/node_modules/w3c-keyname/index.js +0 -89
  206. package/dist/node_modules/w3c-keyname/index.js.map +0 -1
@@ -8,351 +8,348 @@ import { isAdminRole as d } from "../utils/index.js";
8
8
  import { slaBreachBadgeClasses as f, ticketPriorityDotClasses as p, ticketStatusBadgeClasses as m } from "../utils/uiTokens.js";
9
9
  import { getCategoryBadgeClass as h } from "../utils/categoryColors.js";
10
10
  import { cn as g } from "../utils/cn.js";
11
- import { useState as _ } from "react";
12
- import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
- import { AlertCircle as y, Filter as b, Grid as x, List as S, Loader2 as C, Plus as w, Search as T, Ticket as E } from "lucide-react";
14
- import { useNavigate as D } from "react-router";
15
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
11
+ import { toLocalDateInputValue as _ } from "../utils/dates.js";
12
+ import { useIsFluidgridsVariant as v } from "../hooks/useSupportVariant.js";
13
+ import { useTicketLabels as y } from "../hooks/useTicketLabels.js";
14
+ import { MyRequestsPage as b } from "./MyRequestsPage.js";
15
+ import { useState as ee } from "react";
16
+ import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
+ import { AlertCircle as S, Filter as C, Grid as w, List as T, Loader2 as E, Plus as D, Search as O, Ticket as k } from "lucide-react";
18
+ import { useNavigate as A } from "react-router";
19
+ import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
16
20
  // src/support/pages/TicketListPage.tsx
17
- function j(e) {
21
+ function P(e) {
18
22
  return e ? e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()) : null;
19
23
  }
20
- function M(e, t) {
21
- return e.ticketCategory?.name ?? j(e.category) ?? t;
24
+ function F(e, t) {
25
+ return e.ticketCategory?.name ?? P(e.category) ?? t;
22
26
  }
23
- var N = {
24
- NEW: "New",
25
- IN_PROGRESS: "In Progress",
26
- WAITING_CUSTOMER: "Waiting on Customer",
27
- RESOLVED: "Resolved",
28
- CLOSED: "Closed",
29
- REOPENED: "Reopened"
30
- }, P = {
31
- CRITICAL: "Critical",
32
- HIGH: "High",
33
- NORMAL: "Normal",
34
- LOW: "Low"
35
- };
36
- function F({ adminView: j = !1 }) {
37
- let F = D(), { t: I } = v(), { currentUser: L, showAllProductTickets: R } = a(), { tickets: z, ticketsLoading: B, ticketsError: V, hasMoreTickets: H, loadMoreTickets: U, totalTickets: W, isScopedLocalSearch: G, isMissingProductScope: K } = i(j), q = o((e) => e.viewMode), J = o((e) => e.setViewMode), Y = o((e) => e.ticketFilter), X = o((e) => e.updateTicketFilter), [Z, Q] = _(!1), $ = j && d(L?.role), ee = $ || R;
38
- return B && z.length === 0 ? /* @__PURE__ */ k(l, {
39
- title: u(I, "support.ticketList.title", "Support Tickets"),
40
- subtitle: u(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
41
- icon: /* @__PURE__ */ k(E, { size: 24 }),
42
- children: /* @__PURE__ */ k(c, { message: u(I, "support.ticketList.loading", "Loading tickets...") })
43
- }) : V ? /* @__PURE__ */ k(l, {
44
- title: u(I, "support.ticketList.title", "Support Tickets"),
45
- subtitle: u(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
46
- icon: /* @__PURE__ */ k(E, { size: 24 }),
47
- children: /* @__PURE__ */ A("div", {
27
+ function I({ adminView: e = !1 }) {
28
+ return v() && !e ? /* @__PURE__ */ M(b, {}) : /* @__PURE__ */ M(L, { adminView: e });
29
+ }
30
+ function L({ adminView: v = !1 }) {
31
+ let b = A(), { t: P } = x(), I = y(), { currentUser: L, showAllProductTickets: R } = a(), { tickets: z, ticketsLoading: B, ticketsError: V, hasMoreTickets: H, loadMoreTickets: U, totalTickets: W, isScopedLocalSearch: G, isMissingProductScope: K } = i(v), q = o((e) => e.viewMode), J = o((e) => e.setViewMode), Y = o((e) => e.ticketFilter), X = o((e) => e.updateTicketFilter), [Z, Q] = ee(!1), $ = v && d(L?.role), te = $ || R;
32
+ return B && z.length === 0 ? /* @__PURE__ */ M(l, {
33
+ title: u(P, "support.ticketList.title", "Support Tickets"),
34
+ subtitle: u(P, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
35
+ icon: /* @__PURE__ */ M(k, { size: 24 }),
36
+ children: /* @__PURE__ */ M(c, { message: u(P, "support.ticketList.loading", "Loading tickets...") })
37
+ }) : V ? /* @__PURE__ */ M(l, {
38
+ title: u(P, "support.ticketList.title", "Support Tickets"),
39
+ subtitle: u(P, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
40
+ icon: /* @__PURE__ */ M(k, { size: 24 }),
41
+ children: /* @__PURE__ */ N("div", {
48
42
  className: "flex flex-col items-center justify-center py-16 text-center",
49
43
  children: [
50
- /* @__PURE__ */ k("div", {
44
+ /* @__PURE__ */ M("div", {
51
45
  className: "p-4 rounded-2xl bg-status-error-bg/10 text-status-error-text mb-4",
52
- children: /* @__PURE__ */ k(y, { size: 48 })
46
+ children: /* @__PURE__ */ M(S, { size: 48 })
53
47
  }),
54
- /* @__PURE__ */ k("h3", {
48
+ /* @__PURE__ */ M("h3", {
55
49
  className: "text-lg font-semibold mb-2",
56
- children: u(I, "support.ticketList.error.title", "Failed to load tickets")
50
+ children: u(P, "support.ticketList.error.title", "Failed to load tickets")
57
51
  }),
58
- /* @__PURE__ */ k("p", {
52
+ /* @__PURE__ */ M("p", {
59
53
  className: "text-sm text-text-secondary max-w-md",
60
- children: V.message || u(I, "support.ticketList.error.description", "An error occurred while loading tickets. Please try again.")
54
+ children: V.message || u(P, "support.ticketList.error.description", "An error occurred while loading tickets. Please try again.")
61
55
  })
62
56
  ]
63
57
  })
64
- }) : /* @__PURE__ */ A(l, {
65
- title: u(I, "support.ticketList.title", "Support Tickets"),
66
- subtitle: u(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
67
- icon: /* @__PURE__ */ k(E, { size: 24 }),
58
+ }) : /* @__PURE__ */ N(l, {
59
+ title: u(P, "support.ticketList.title", "Support Tickets"),
60
+ subtitle: u(P, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
61
+ icon: /* @__PURE__ */ M(k, { size: 24 }),
68
62
  aurora: !0,
69
- titleAccent: u(I, "support.ticketList.titleAccent", "Tickets"),
70
- headerActions: /* @__PURE__ */ A(t, {
63
+ titleAccent: u(P, "support.ticketList.titleAccent", "Tickets"),
64
+ headerActions: /* @__PURE__ */ N(t, {
71
65
  "data-tour": "support-new-ticket-button",
72
- onClick: () => F("new"),
73
- children: [/* @__PURE__ */ k(w, { size: 18 }), u(I, "support.ticketList.actions.newTicket", "New Ticket")]
66
+ onClick: () => b("new"),
67
+ children: [/* @__PURE__ */ M(D, { size: 18 }), u(P, "support.ticketList.actions.newTicket", "New Ticket")]
74
68
  }),
75
- headerContent: /* @__PURE__ */ k("div", {
69
+ headerContent: /* @__PURE__ */ M("div", {
76
70
  className: "flex items-center gap-2",
77
- children: /* @__PURE__ */ k(e, {
71
+ children: /* @__PURE__ */ M(e, {
78
72
  variant: "secondary",
79
73
  className: "font-medium",
80
- children: u(I, "support.ticketList.count", "{{count}} {{label}}", {
74
+ children: u(P, "support.ticketList.count", "{{count}} {{label}}", {
81
75
  count: W,
82
- label: W === 1 ? u(I, "support.ticketList.count.single", "ticket") : u(I, "support.ticketList.count.plural", "tickets")
76
+ label: W === 1 ? u(P, "support.ticketList.count.single", "ticket") : u(P, "support.ticketList.count.plural", "tickets")
83
77
  })
84
78
  })
85
79
  }),
86
80
  children: [
87
- /* @__PURE__ */ k(r, { children: $ ? u(I, "support.ticketList.purpose.admin", "Your shared support inbox — triage, prioritise and respond to every customer ticket here. Filter by product, status, priority or assignee to find what needs attention, and open a ticket to read the full conversation and reply.") : u(I, "support.ticketList.purpose.user", "Track every help request you have raised. Open a ticket to follow the conversation with our team, add details, or share attachments — or create a new ticket whenever you hit a snag.") }),
88
- /* @__PURE__ */ A("div", {
81
+ /* @__PURE__ */ M(r, { children: $ ? u(P, "support.ticketList.purpose.admin", "Your shared support inbox — triage, prioritise and respond to every customer ticket here. Filter by product, status, priority or assignee to find what needs attention, and open a ticket to read the full conversation and reply.") : u(P, "support.ticketList.purpose.user", "Track every help request you have raised. Open a ticket to follow the conversation with our team, add details, or share attachments — or create a new ticket whenever you hit a snag.") }),
82
+ /* @__PURE__ */ N("div", {
89
83
  "data-tour": "support-ticket-list-toolbar",
90
84
  className: "flex flex-col sm:flex-row items-stretch sm:items-center gap-4 p-4 rounded-xl border border-border-seam bg-bg-surface",
91
85
  children: [
92
- /* @__PURE__ */ A("div", {
86
+ /* @__PURE__ */ N("div", {
93
87
  className: "flex-1 relative",
94
- children: [/* @__PURE__ */ k(T, {
88
+ children: [/* @__PURE__ */ M(O, {
95
89
  size: 18,
96
90
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
97
- }), /* @__PURE__ */ k(n, {
91
+ }), /* @__PURE__ */ M(n, {
98
92
  "data-tour": "support-ticket-search",
99
93
  type: "text",
100
- placeholder: u(I, "support.ticketList.search.placeholder", "Search tickets..."),
94
+ placeholder: u(P, "support.ticketList.search.placeholder", "Search tickets..."),
101
95
  value: Y.search,
102
96
  onChange: (e) => X({ search: e.target.value }),
103
97
  className: "pl-[3.25rem]"
104
98
  })]
105
99
  }),
106
- /* @__PURE__ */ A("div", {
100
+ /* @__PURE__ */ N("div", {
107
101
  "data-tour": "support-ticket-view-toggle",
108
102
  className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
109
- children: [/* @__PURE__ */ k(t, {
103
+ children: [/* @__PURE__ */ M(t, {
110
104
  variant: q === "list" ? "secondary" : "ghost",
111
105
  size: "sm",
112
106
  onClick: () => J("list"),
113
107
  className: "px-3",
114
- "aria-label": "Show tickets as a list",
115
- children: /* @__PURE__ */ k(S, { size: 18 })
116
- }), /* @__PURE__ */ k(t, {
108
+ "aria-label": u(P, "support.ticketList.view.listAriaLabel", "Show tickets as a list"),
109
+ children: /* @__PURE__ */ M(T, { size: 18 })
110
+ }), /* @__PURE__ */ M(t, {
117
111
  variant: q === "grid" ? "secondary" : "ghost",
118
112
  size: "sm",
119
113
  onClick: () => J("grid"),
120
114
  className: "px-3",
121
- "aria-label": "Show tickets as a grid",
122
- children: /* @__PURE__ */ k(x, { size: 18 })
115
+ "aria-label": u(P, "support.ticketList.view.gridAriaLabel", "Show tickets as a grid"),
116
+ children: /* @__PURE__ */ M(w, { size: 18 })
123
117
  })]
124
118
  }),
125
- /* @__PURE__ */ A(t, {
119
+ /* @__PURE__ */ N(t, {
126
120
  "data-tour": "support-ticket-filters-button",
127
121
  variant: Z ? "secondary" : "outline",
128
122
  onClick: () => Q(!Z),
129
- children: [/* @__PURE__ */ k(b, { size: 18 }), u(I, "support.ticketList.filters.toggle", "Filters")]
123
+ children: [/* @__PURE__ */ M(C, { size: 18 }), u(P, "support.ticketList.filters.toggle", "Filters")]
130
124
  })
131
125
  ]
132
126
  }),
133
- G && /* @__PURE__ */ A("div", {
127
+ G && /* @__PURE__ */ N("div", {
134
128
  className: "flex items-start gap-2 rounded-lg border border-border-seam bg-bg-sunken/30 p-3 text-sm text-text-secondary",
135
- children: [/* @__PURE__ */ k(y, {
129
+ children: [/* @__PURE__ */ M(S, {
136
130
  size: 16,
137
131
  className: "mt-0.5 shrink-0"
138
- }), /* @__PURE__ */ k("span", { children: u(I, "support.ticketList.scopedSearch.hint", "Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.") })]
132
+ }), /* @__PURE__ */ M("span", { children: u(P, "support.ticketList.scopedSearch.hint", "Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.") })]
139
133
  }),
140
- Z && /* @__PURE__ */ k("div", {
134
+ Z && /* @__PURE__ */ M("div", {
141
135
  className: "p-4 rounded-xl border border-border-seam bg-bg-sunken/30",
142
- children: /* @__PURE__ */ A("div", {
136
+ children: /* @__PURE__ */ N("div", {
143
137
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
144
138
  children: [
145
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
139
+ /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
146
140
  className: "block text-sm font-medium mb-2 text-text-secondary",
147
141
  htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
148
- children: u(I, "support.ticketList.filters.status.label", "Status")
149
- }), /* @__PURE__ */ A("select", {
142
+ children: u(P, "support.ticketList.filters.status.label", "Status")
143
+ }), /* @__PURE__ */ N("select", {
150
144
  id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
151
145
  value: Y.status,
152
146
  onChange: (e) => X({ status: e.target.value }),
153
147
  className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
154
148
  children: [
155
- /* @__PURE__ */ k("option", {
149
+ /* @__PURE__ */ M("option", {
156
150
  value: "all",
157
- children: u(I, "support.ticketList.filters.status.all", "All Statuses")
151
+ children: u(P, "support.ticketList.filters.status.all", "All Statuses")
158
152
  }),
159
- /* @__PURE__ */ k("option", {
153
+ /* @__PURE__ */ M("option", {
160
154
  value: "NEW",
161
- children: u(I, "support.shared.status.new", "New")
155
+ children: u(P, "support.shared.status.new", "New")
162
156
  }),
163
- /* @__PURE__ */ k("option", {
157
+ /* @__PURE__ */ M("option", {
164
158
  value: "IN_PROGRESS",
165
- children: u(I, "support.shared.status.inProgress", "In Progress")
159
+ children: u(P, "support.shared.status.inProgress", "In Progress")
166
160
  }),
167
- /* @__PURE__ */ k("option", {
161
+ /* @__PURE__ */ M("option", {
168
162
  value: "WAITING_CUSTOMER",
169
- children: u(I, "support.shared.status.waitingCustomer", "Waiting on Customer")
163
+ children: u(P, "support.shared.status.waitingCustomer", "Waiting on Customer")
170
164
  }),
171
- /* @__PURE__ */ k("option", {
165
+ /* @__PURE__ */ M("option", {
172
166
  value: "RESOLVED",
173
- children: u(I, "support.shared.status.resolved", "Resolved")
167
+ children: u(P, "support.shared.status.resolved", "Resolved")
174
168
  }),
175
- /* @__PURE__ */ k("option", {
169
+ /* @__PURE__ */ M("option", {
176
170
  value: "CLOSED",
177
- children: u(I, "support.shared.status.closed", "Closed")
171
+ children: u(P, "support.shared.status.closed", "Closed")
178
172
  }),
179
- /* @__PURE__ */ k("option", {
173
+ /* @__PURE__ */ M("option", {
180
174
  value: "REOPENED",
181
- children: u(I, "support.shared.status.reopened", "Reopened")
175
+ children: u(P, "support.shared.status.reopened", "Reopened")
182
176
  })
183
177
  ]
184
178
  })] }),
185
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
179
+ /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
186
180
  className: "block text-sm font-medium mb-2 text-text-secondary",
187
181
  htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
188
- children: u(I, "support.ticketList.filters.priority.label", "Priority")
189
- }), /* @__PURE__ */ A("select", {
182
+ children: u(P, "support.ticketList.filters.priority.label", "Priority")
183
+ }), /* @__PURE__ */ N("select", {
190
184
  id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
191
185
  value: Y.priority,
192
186
  onChange: (e) => X({ priority: e.target.value }),
193
187
  className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
194
188
  children: [
195
- /* @__PURE__ */ k("option", {
189
+ /* @__PURE__ */ M("option", {
196
190
  value: "all",
197
- children: u(I, "support.ticketList.filters.priority.all", "All Priorities")
191
+ children: u(P, "support.ticketList.filters.priority.all", "All Priorities")
198
192
  }),
199
- /* @__PURE__ */ k("option", {
193
+ /* @__PURE__ */ M("option", {
200
194
  value: "CRITICAL",
201
- children: u(I, "support.shared.priority.critical", "Critical")
195
+ children: u(P, "support.shared.priority.critical", "Critical")
202
196
  }),
203
- /* @__PURE__ */ k("option", {
197
+ /* @__PURE__ */ M("option", {
204
198
  value: "HIGH",
205
- children: u(I, "support.shared.priority.high", "High")
199
+ children: u(P, "support.shared.priority.high", "High")
206
200
  }),
207
- /* @__PURE__ */ k("option", {
201
+ /* @__PURE__ */ M("option", {
208
202
  value: "NORMAL",
209
- children: u(I, "support.shared.priority.normal", "Normal")
203
+ children: u(P, "support.shared.priority.normal", "Normal")
210
204
  }),
211
- /* @__PURE__ */ k("option", {
205
+ /* @__PURE__ */ M("option", {
212
206
  value: "LOW",
213
- children: u(I, "support.shared.priority.low", "Low")
207
+ children: u(P, "support.shared.priority.low", "Low")
214
208
  })
215
209
  ]
216
210
  })] }),
217
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
211
+ /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
218
212
  htmlFor: "ticket-filter-date-from",
219
213
  className: "block text-sm font-medium mb-2 text-text-secondary",
220
- children: "Date From"
221
- }), /* @__PURE__ */ k(n, {
214
+ children: u(P, "support.ticketList.filters.dateFrom", "Date From")
215
+ }), /* @__PURE__ */ M(n, {
222
216
  id: "ticket-filter-date-from",
223
217
  type: "date",
224
- value: Y.dateRange.start ? Y.dateRange.start.toISOString().slice(0, 10) : "",
218
+ value: _(Y.dateRange.start),
225
219
  onChange: (e) => X({ dateRange: {
226
220
  ...Y.dateRange,
227
221
  start: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T00:00:00`) : null
228
222
  } })
229
223
  })] }),
230
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
224
+ /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
231
225
  htmlFor: "ticket-filter-date-to",
232
226
  className: "block text-sm font-medium mb-2 text-text-secondary",
233
- children: "Date To"
234
- }), /* @__PURE__ */ k(n, {
227
+ children: u(P, "support.ticketList.filters.dateTo", "Date To")
228
+ }), /* @__PURE__ */ M(n, {
235
229
  id: "ticket-filter-date-to",
236
230
  type: "date",
237
- value: Y.dateRange.end ? Y.dateRange.end.toISOString().slice(0, 10) : "",
231
+ value: _(Y.dateRange.end),
238
232
  onChange: (e) => X({ dateRange: {
239
233
  ...Y.dateRange,
240
234
  end: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T23:59:59`) : null
241
235
  } })
242
236
  })] }),
243
- $ && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
237
+ $ && /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
244
238
  htmlFor: "ticket-filter-product",
245
239
  className: "block text-sm font-medium mb-2 text-text-secondary",
246
- children: "Product"
247
- }), /* @__PURE__ */ k(n, {
240
+ children: u(P, "support.ticketList.filters.product", "Product")
241
+ }), /* @__PURE__ */ M(n, {
248
242
  id: "ticket-filter-product",
249
243
  type: "text",
250
244
  value: Y.productId || "",
251
245
  onChange: (e) => X({ productId: e.target.value || null }),
252
246
  placeholder: "vibecontrols"
253
- })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
247
+ })] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
254
248
  htmlFor: "ticket-filter-assignee",
255
249
  className: "block text-sm font-medium mb-2 text-text-secondary",
256
- children: "Assignee"
257
- }), /* @__PURE__ */ k(n, {
250
+ children: u(P, "support.ticketList.filters.assignee", "Assignee")
251
+ }), /* @__PURE__ */ M(n, {
258
252
  id: "ticket-filter-assignee",
259
253
  type: "text",
260
254
  value: Y.assignedToId || "",
261
255
  onChange: (e) => X({ assignedToId: e.target.value || null }),
262
- placeholder: "User ID"
256
+ placeholder: u(P, "support.ticketList.filters.assigneePlaceholder", "User ID")
263
257
  })] })] })
264
258
  ]
265
259
  })
266
260
  }),
267
- K ? /* @__PURE__ */ k(s, {
261
+ K ? /* @__PURE__ */ M(s, {
268
262
  illustration: "empty-generic",
269
- title: u(I, "support.ticketList.missingProduct.title", "Unable to load tickets for this product"),
270
- description: u(I, "support.ticketList.missingProduct.description", "This support view needs a product configuration before tickets can be loaded.")
271
- }) : z.length === 0 ? /* @__PURE__ */ k(s, {
263
+ title: u(P, "support.ticketList.missingProduct.title", "Unable to load tickets for this product"),
264
+ description: u(P, "support.ticketList.missingProduct.description", "This support view needs a product configuration before tickets can be loaded.")
265
+ }) : z.length === 0 ? /* @__PURE__ */ M(s, {
272
266
  illustration: "empty-data",
273
- title: u(I, "support.ticketList.empty.title", "No tickets found"),
274
- description: u(I, "support.ticketList.empty.description", "Create your first support ticket to get started, or adjust your filters."),
275
- action: /* @__PURE__ */ A(t, {
276
- onClick: () => F("new"),
277
- children: [/* @__PURE__ */ k(w, { size: 18 }), u(I, "support.ticketList.empty.action", "Create Ticket")]
267
+ title: u(P, "support.ticketList.empty.title", "No tickets found"),
268
+ description: u(P, "support.ticketList.empty.description", "Create your first support ticket to get started, or adjust your filters."),
269
+ action: /* @__PURE__ */ N(t, {
270
+ onClick: () => b("new"),
271
+ children: [/* @__PURE__ */ M(D, { size: 18 }), u(P, "support.ticketList.empty.action", "Create Ticket")]
278
272
  })
279
- }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
273
+ }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("div", {
280
274
  className: q === "grid" ? "grid grid-cols-1 md:grid-cols-2 gap-4" : "space-y-3",
281
- children: z.map((t) => /* @__PURE__ */ k("button", {
275
+ children: z.map((t) => /* @__PURE__ */ M("button", {
282
276
  type: "button",
283
277
  "data-tour": "support-ticket-card",
284
- onClick: () => F(t.id),
278
+ onClick: () => b(t.id),
285
279
  className: "w-full text-left group p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] cursor-pointer transition-[box-shadow,border-color] duration-200",
286
- children: /* @__PURE__ */ A("div", {
280
+ children: /* @__PURE__ */ N("div", {
287
281
  className: "flex items-start justify-between gap-4",
288
- children: [/* @__PURE__ */ A("div", {
282
+ children: [/* @__PURE__ */ N("div", {
289
283
  className: "flex-1 min-w-0",
290
284
  children: [
291
- /* @__PURE__ */ A("div", {
285
+ /* @__PURE__ */ N("div", {
292
286
  className: "flex items-center gap-2 mb-2 flex-wrap",
293
287
  children: [
294
- /* @__PURE__ */ k("span", {
288
+ /* @__PURE__ */ M("span", {
295
289
  className: "text-xs font-mono text-text-secondary",
296
290
  children: t.ticketNumber
297
291
  }),
298
- /* @__PURE__ */ k(e, {
292
+ /* @__PURE__ */ M(e, {
299
293
  className: m[t.status],
300
- children: N[t.status]
294
+ children: I.status[t.status]
301
295
  }),
302
- t.ticketCategory && /* @__PURE__ */ k(e, {
296
+ t.ticketCategory && /* @__PURE__ */ M(e, {
303
297
  variant: "outline",
304
298
  className: h(t.ticketCategory.color),
305
299
  children: t.ticketCategory.name
306
300
  }),
307
- t.slaBreachStatus && t.slaBreachStatus !== "NONE" && /* @__PURE__ */ k(e, {
301
+ t.slaBreachStatus && t.slaBreachStatus !== "NONE" && /* @__PURE__ */ M(e, {
308
302
  className: g(f[t.slaBreachStatus], "motion-safe:animate-vc-glow-pulse"),
309
- children: t.slaBreachStatus === "BREACHED" ? u(I, "support.ticketList.sla.breached", "SLA Breached") : u(I, "support.ticketList.sla.atRisk", "SLA At Risk")
303
+ children: t.slaBreachStatus === "BREACHED" ? u(P, "support.ticketList.sla.breached", "SLA Breached") : u(P, "support.ticketList.sla.atRisk", "SLA At Risk")
310
304
  })
311
305
  ]
312
306
  }),
313
- /* @__PURE__ */ k("h3", {
307
+ /* @__PURE__ */ M("h3", {
314
308
  className: "font-semibold text-text-primary mb-1 group-hover:text-primary transition-colors truncate",
315
309
  children: t.subject
316
310
  }),
317
- /* @__PURE__ */ A("div", {
311
+ /* @__PURE__ */ N("div", {
318
312
  className: "flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-text-secondary",
319
313
  children: [
320
- /* @__PURE__ */ k("span", { children: M(t, u(I, "support.ticketList.category.general", "General")) }),
321
- /* @__PURE__ */ k("span", { children: "•" }),
322
- /* @__PURE__ */ k("span", { children: new Date(t.createdAt).toLocaleDateString() }),
323
- ee && t.context?.productId && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", { children: "•" }), /* @__PURE__ */ k(e, {
314
+ /* @__PURE__ */ M("span", { children: F(t, u(P, "support.ticketList.category.general", "General")) }),
315
+ /* @__PURE__ */ M("span", { children: "•" }),
316
+ /* @__PURE__ */ M("span", { children: new Date(t.createdAt).toLocaleDateString() }),
317
+ te && t.context?.productId && /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { children: "•" }), /* @__PURE__ */ M(e, {
324
318
  variant: "outline",
325
319
  children: t.context.productId
326
320
  })] }),
327
- t.assignedTo && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", { children: "•" }), /* @__PURE__ */ k("span", { children: u(I, "support.ticketList.meta.assigned", "Assigned") })] })
321
+ t.assignedTo && /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { children: "•" }), /* @__PURE__ */ M("span", { children: u(P, "support.ticketList.meta.assigned", "Assigned") })] })
328
322
  ]
329
323
  })
330
324
  ]
331
- }), /* @__PURE__ */ k("div", {
325
+ }), /* @__PURE__ */ N("div", {
332
326
  className: "text-2xl flex-shrink-0",
333
- title: P[t.priority],
334
- children: /* @__PURE__ */ k("span", {
327
+ title: I.priority[t.priority],
328
+ children: [/* @__PURE__ */ M("span", {
335
329
  className: `block h-3 w-3 rounded-full ${p[t.priority]}`,
336
330
  "aria-hidden": "true"
337
- })
331
+ }), /* @__PURE__ */ M("span", {
332
+ className: "sr-only",
333
+ children: u(P, "support.ticketList.priorityAccessible", "Priority: {{priority}}", { priority: I.priority[t.priority] })
334
+ })]
338
335
  })]
339
336
  })
340
337
  }, t.id))
341
- }), H && /* @__PURE__ */ k("div", {
338
+ }), H && /* @__PURE__ */ M("div", {
342
339
  className: "flex justify-center pt-4",
343
- children: /* @__PURE__ */ k(t, {
340
+ children: /* @__PURE__ */ M(t, {
344
341
  variant: "outline",
345
342
  onClick: U,
346
343
  disabled: B,
347
- children: B ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(C, {
344
+ children: B ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(E, {
348
345
  size: 18,
349
346
  className: "animate-spin"
350
- }), u(I, "support.ticketList.actions.loadingMore", "Loading...")] }) : u(I, "support.ticketList.actions.loadMore", "Load More")
347
+ }), u(P, "support.ticketList.actions.loadingMore", "Loading...")] }) : u(P, "support.ticketList.actions.loadMore", "Load More")
351
348
  })
352
349
  })] })
353
350
  ]
354
351
  });
355
352
  }
356
- export { F as TicketListPage };
353
+ export { I as TicketListPage };
357
354
 
358
355
  //# sourceMappingURL=TicketListPage.js.map