@burdenoff/microfe-support 2026.625.2 → 2026.715.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 (110) hide show
  1. package/dist/generated/global-operations.d.ts +2517 -0
  2. package/dist/generated/global-types.d.ts +22913 -0
  3. package/dist/generated/wspace-operations.d.ts +1 -0
  4. package/dist/generated/wspace-types.d.ts +57850 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/support/SupportAdminRoot.d.ts +20 -0
  7. package/dist/support/SupportAdminRoutes.d.ts +13 -0
  8. package/dist/support/SupportUserRoot.d.ts +17 -0
  9. package/dist/support/SupportUserRoutes.d.ts +11 -0
  10. package/dist/support/components/NotificationToast.d.ts +17 -0
  11. package/dist/support/components/PageLayout.d.ts +71 -0
  12. package/dist/support/components/RouteHelpers.d.ts +9 -0
  13. package/dist/support/components/analytics/CategoryBreakdown.d.ts +9 -0
  14. package/dist/support/components/analytics/MetricCard.d.ts +10 -0
  15. package/dist/support/components/analytics/PriorityBreakdown.d.ts +9 -0
  16. package/dist/support/components/analytics/SLAReport.d.ts +23 -0
  17. package/dist/support/components/analytics/SatisfactionDistribution.d.ts +23 -0
  18. package/dist/support/components/analytics/TopAgents.d.ts +19 -0
  19. package/dist/support/components/analytics/TrendChart.d.ts +15 -0
  20. package/dist/support/components/kb/ArticleForm.d.ts +25 -0
  21. package/dist/support/components/settings/CannedResponsesSettings.d.ts +21 -0
  22. package/dist/support/components/settings/SLAPoliciesSettings.d.ts +18 -0
  23. package/dist/support/components/settings/TicketCategoriesSettings.d.ts +20 -0
  24. package/dist/support/components/tickets/AttachmentList.d.ts +7 -0
  25. package/dist/support/components/tickets/MarkdownContent.d.ts +7 -0
  26. package/dist/support/components/tickets/MessageComposer.d.ts +22 -0
  27. package/dist/support/components/tickets/MessageThread.d.ts +12 -0
  28. package/dist/support/components/tickets/TicketDetailHeader.d.ts +16 -0
  29. package/dist/support/components/tickets/TicketHeader.d.ts +9 -0
  30. package/dist/support/components/tickets/TicketSidebar.d.ts +7 -0
  31. package/dist/support/components/ui.d.ts +5 -0
  32. package/dist/support/components/ui.js +2 -2
  33. package/dist/support/constants.d.ts +20 -0
  34. package/dist/support/events/rybbit.d.ts +13 -0
  35. package/dist/support/hooks/index.d.ts +5 -0
  36. package/dist/support/hooks/useAnalyticsOperations.d.ts +51 -0
  37. package/dist/support/hooks/useAttachmentsFailedToast.d.ts +2 -0
  38. package/dist/support/hooks/useChatOperations.d.ts +27 -0
  39. package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +55 -0
  40. package/dist/support/hooks/useNotification.d.ts +20 -0
  41. package/dist/support/hooks/useRegisterFooter.d.ts +6 -0
  42. package/dist/support/hooks/useSettingsOperations.d.ts +47 -0
  43. package/dist/support/hooks/useSupportAttachments.d.ts +10 -0
  44. package/dist/support/hooks/useTicketListOperations.d.ts +31 -0
  45. package/dist/support/hooks/useTicketOperations.d.ts +39 -0
  46. package/dist/support/index.d.ts +44 -0
  47. package/dist/support/pages/AnalyticsPage.d.ts +1 -0
  48. package/dist/support/pages/AnalyticsPage.js +144 -113
  49. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  50. package/dist/support/pages/ArticleDetailAdminPage.d.ts +7 -0
  51. package/dist/support/pages/ArticleDetailAdminPage.js +150 -113
  52. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  53. package/dist/support/pages/ArticleDetailUserPage.d.ts +7 -0
  54. package/dist/support/pages/ArticleDetailUserPage.js +90 -83
  55. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  56. package/dist/support/pages/ContactInquiriesPage.d.ts +1 -0
  57. package/dist/support/pages/ContactInquiriesPage.js +48 -44
  58. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  59. package/dist/support/pages/ContactInquiryDetailPage.d.ts +1 -0
  60. package/dist/support/pages/ContactInquiryDetailPage.js +225 -205
  61. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  62. package/dist/support/pages/CreateArticlePage.d.ts +1 -0
  63. package/dist/support/pages/CreateArticlePage.js +50 -46
  64. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  65. package/dist/support/pages/CreateTicketPage.d.ts +1 -0
  66. package/dist/support/pages/CreateTicketPage.js +122 -116
  67. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  68. package/dist/support/pages/EditArticlePage.d.ts +1 -0
  69. package/dist/support/pages/EditArticlePage.js +76 -80
  70. package/dist/support/pages/EditArticlePage.js.map +1 -1
  71. package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -0
  72. package/dist/support/pages/JobApplicationDetailPage.js +292 -269
  73. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  74. package/dist/support/pages/JobApplicationsPage.d.ts +1 -0
  75. package/dist/support/pages/JobApplicationsPage.js +50 -46
  76. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  77. package/dist/support/pages/KnowledgeBaseAdminPage.d.ts +7 -0
  78. package/dist/support/pages/KnowledgeBaseAdminPage.js +84 -81
  79. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  80. package/dist/support/pages/KnowledgeBaseUserPage.d.ts +8 -0
  81. package/dist/support/pages/KnowledgeBaseUserPage.js +76 -75
  82. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  83. package/dist/support/pages/SettingsPage.d.ts +1 -0
  84. package/dist/support/pages/SettingsPage.js +215 -182
  85. package/dist/support/pages/SettingsPage.js.map +1 -1
  86. package/dist/support/pages/TicketDetailAdminPage.d.ts +8 -0
  87. package/dist/support/pages/TicketDetailAdminPage.js +158 -128
  88. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  89. package/dist/support/pages/TicketDetailUserPage.d.ts +8 -0
  90. package/dist/support/pages/TicketDetailUserPage.js +174 -141
  91. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  92. package/dist/support/pages/TicketListPage.d.ts +11 -0
  93. package/dist/support/pages/TicketListPage.js +171 -170
  94. package/dist/support/pages/TicketListPage.js.map +1 -1
  95. package/dist/support/providers/SupportProvider.d.ts +16 -0
  96. package/dist/support/store/supportStore.d.ts +66 -0
  97. package/dist/support/types/index.d.ts +160 -0
  98. package/dist/support/utils/attachments.d.ts +27 -0
  99. package/dist/support/utils/categoryColors.d.ts +10 -0
  100. package/dist/support/utils/cn.d.ts +6 -0
  101. package/dist/support/utils/context.d.ts +2 -0
  102. package/dist/support/utils/errors.d.ts +2 -0
  103. package/dist/support/utils/i18n.d.ts +4 -0
  104. package/dist/support/utils/index.d.ts +57 -0
  105. package/dist/support/utils/markdown.d.ts +2 -0
  106. package/dist/support/utils/supportFiles.d.ts +15 -0
  107. package/dist/support/utils/ticketFilters.d.ts +6 -0
  108. package/dist/support/utils/uiTokens.d.ts +7 -0
  109. package/dist/utils/nativeBridge.d.ts +2 -0
  110. package/package.json +4 -4
@@ -1,358 +1,359 @@
1
1
  import { useSupport as e } from "../providers/SupportProvider.js";
2
2
  import { isAdminRole as t } from "../utils/index.js";
3
- import { Badge as n, Button as r, Input as i } from "../components/ui.js";
4
- import { useSupportStore as a } from "../store/supportStore.js";
5
- import { useTicketListOperations as o } from "../hooks/useTicketListOperations.js";
6
- import { cn as s } from "../utils/cn.js";
7
- import { EmptyState as c, LoadingState as l, PageLayout as u } from "../components/PageLayout.js";
8
- import { tWithFallback as d } from "../utils/i18n.js";
9
- import { slaBreachBadgeClasses as f, ticketPriorityDotClasses as p, ticketStatusBadgeClasses as m } from "../utils/uiTokens.js";
10
- import { getCategoryBadgeClass as h } from "../utils/categoryColors.js";
11
- import { useState as g } from "react";
12
- import { AlertCircle as _, Filter as v, Grid as y, List as b, Loader2 as x, Plus as S, Search as C, Ticket as w } from "lucide-react";
13
- import { useNavigate as T } from "react-router-dom";
14
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
15
- import { useI18n as k } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
+ import { Badge as n, Button as r, Input as i, PagePurpose as a } from "../components/ui.js";
4
+ import { useSupportStore as o } from "../store/supportStore.js";
5
+ import { useTicketListOperations as s } from "../hooks/useTicketListOperations.js";
6
+ import { cn as c } from "../utils/cn.js";
7
+ import { EmptyState as l, LoadingState as u, PageLayout as d } from "../components/PageLayout.js";
8
+ import { tWithFallback as f } from "../utils/i18n.js";
9
+ import { slaBreachBadgeClasses as p, ticketPriorityDotClasses as m, ticketStatusBadgeClasses as h } from "../utils/uiTokens.js";
10
+ import { getCategoryBadgeClass as g } from "../utils/categoryColors.js";
11
+ import { useState as _ } from "react";
12
+ import { AlertCircle as v, Filter as y, Grid as b, List as x, Loader2 as S, Plus as C, Search as w, Ticket as T } from "lucide-react";
13
+ import { useNavigate as E } from "react-router-dom";
14
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
15
+ import { useI18n as A } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
16
  //#region src/support/pages/TicketListPage.tsx
17
- function A(e) {
17
+ function j(e) {
18
18
  return e ? e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()) : null;
19
19
  }
20
- function j(e, t) {
21
- return e.ticketCategory?.name ?? A(e.category) ?? t;
20
+ function M(e, t) {
21
+ return e.ticketCategory?.name ?? j(e.category) ?? t;
22
22
  }
23
- var M = {
23
+ var N = {
24
24
  NEW: "New",
25
25
  IN_PROGRESS: "In Progress",
26
26
  WAITING_CUSTOMER: "Waiting on Customer",
27
27
  RESOLVED: "Resolved",
28
28
  CLOSED: "Closed",
29
29
  REOPENED: "Reopened"
30
- }, N = {
30
+ }, P = {
31
31
  CRITICAL: "Critical",
32
32
  HIGH: "High",
33
33
  NORMAL: "Normal",
34
34
  LOW: "Low"
35
35
  };
36
- function P({ adminView: A = !1 }) {
37
- let P = T(), { t: F } = k(), { currentUser: I, showAllProductTickets: L } = e(), { tickets: R, ticketsLoading: z, ticketsError: B, hasMoreTickets: V, loadMoreTickets: H, totalTickets: U, isScopedLocalSearch: W, isMissingProductScope: G } = o(A), K = a((e) => e.viewMode), q = a((e) => e.setViewMode), J = a((e) => e.ticketFilter), Y = a((e) => e.updateTicketFilter), [X, Z] = g(!1), Q = A && t(I?.role), $ = Q || L;
38
- return z && R.length === 0 ? /* @__PURE__ */ D(u, {
39
- title: d(F, "support.ticketList.title", "Support Tickets"),
40
- subtitle: d(F, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
41
- icon: /* @__PURE__ */ D(w, { size: 24 }),
42
- children: /* @__PURE__ */ D(l, { message: d(F, "support.ticketList.loading", "Loading tickets...") })
43
- }) : B ? /* @__PURE__ */ D(u, {
44
- title: d(F, "support.ticketList.title", "Support Tickets"),
45
- subtitle: d(F, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
46
- icon: /* @__PURE__ */ D(w, { size: 24 }),
47
- children: /* @__PURE__ */ O("div", {
36
+ function F({ adminView: j = !1 }) {
37
+ let F = E(), { t: I } = A(), { currentUser: L, showAllProductTickets: R } = e(), { tickets: z, ticketsLoading: B, ticketsError: V, hasMoreTickets: H, loadMoreTickets: U, totalTickets: W, isScopedLocalSearch: G, isMissingProductScope: K } = s(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 && t(L?.role), ee = $ || R;
38
+ return B && z.length === 0 ? /* @__PURE__ */ O(d, {
39
+ title: f(I, "support.ticketList.title", "Support Tickets"),
40
+ subtitle: f(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
41
+ icon: /* @__PURE__ */ O(T, { size: 24 }),
42
+ children: /* @__PURE__ */ O(u, { message: f(I, "support.ticketList.loading", "Loading tickets...") })
43
+ }) : V ? /* @__PURE__ */ O(d, {
44
+ title: f(I, "support.ticketList.title", "Support Tickets"),
45
+ subtitle: f(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
46
+ icon: /* @__PURE__ */ O(T, { size: 24 }),
47
+ children: /* @__PURE__ */ k("div", {
48
48
  className: "flex flex-col items-center justify-center py-16 text-center",
49
49
  children: [
50
- /* @__PURE__ */ D("div", {
50
+ /* @__PURE__ */ O("div", {
51
51
  className: "p-4 rounded-2xl bg-status-error-bg/10 text-status-error-text mb-4",
52
- children: /* @__PURE__ */ D(_, { size: 48 })
52
+ children: /* @__PURE__ */ O(v, { size: 48 })
53
53
  }),
54
- /* @__PURE__ */ D("h3", {
54
+ /* @__PURE__ */ O("h3", {
55
55
  className: "text-lg font-semibold mb-2",
56
- children: d(F, "support.ticketList.error.title", "Failed to load tickets")
56
+ children: f(I, "support.ticketList.error.title", "Failed to load tickets")
57
57
  }),
58
- /* @__PURE__ */ D("p", {
58
+ /* @__PURE__ */ O("p", {
59
59
  className: "text-sm text-text-secondary max-w-md",
60
- children: B.message || d(F, "support.ticketList.error.description", "An error occurred while loading tickets. Please try again.")
60
+ children: V.message || f(I, "support.ticketList.error.description", "An error occurred while loading tickets. Please try again.")
61
61
  })
62
62
  ]
63
63
  })
64
- }) : /* @__PURE__ */ O(u, {
65
- title: d(F, "support.ticketList.title", "Support Tickets"),
66
- subtitle: d(F, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
67
- icon: /* @__PURE__ */ D(w, { size: 24 }),
64
+ }) : /* @__PURE__ */ k(d, {
65
+ title: f(I, "support.ticketList.title", "Support Tickets"),
66
+ subtitle: f(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
67
+ icon: /* @__PURE__ */ O(T, { size: 24 }),
68
68
  aurora: !0,
69
- titleAccent: d(F, "support.ticketList.titleAccent", "Tickets"),
70
- headerActions: /* @__PURE__ */ O(r, {
69
+ titleAccent: f(I, "support.ticketList.titleAccent", "Tickets"),
70
+ headerActions: /* @__PURE__ */ k(r, {
71
71
  "data-tour": "support-new-ticket-button",
72
- onClick: () => P("new"),
73
- children: [/* @__PURE__ */ D(S, { size: 18 }), d(F, "support.ticketList.actions.newTicket", "New Ticket")]
72
+ onClick: () => F("new"),
73
+ children: [/* @__PURE__ */ O(C, { size: 18 }), f(I, "support.ticketList.actions.newTicket", "New Ticket")]
74
74
  }),
75
- headerContent: /* @__PURE__ */ D("div", {
75
+ headerContent: /* @__PURE__ */ O("div", {
76
76
  className: "flex items-center gap-2",
77
- children: /* @__PURE__ */ D(n, {
77
+ children: /* @__PURE__ */ O(n, {
78
78
  variant: "secondary",
79
79
  className: "font-medium",
80
- children: d(F, "support.ticketList.count", "{{count}} {{label}}", {
81
- count: U,
82
- label: U === 1 ? d(F, "support.ticketList.count.single", "ticket") : d(F, "support.ticketList.count.plural", "tickets")
80
+ children: f(I, "support.ticketList.count", "{{count}} {{label}}", {
81
+ count: W,
82
+ label: W === 1 ? f(I, "support.ticketList.count.single", "ticket") : f(I, "support.ticketList.count.plural", "tickets")
83
83
  })
84
84
  })
85
85
  }),
86
86
  children: [
87
- /* @__PURE__ */ O("div", {
87
+ /* @__PURE__ */ O(a, { children: $ ? f(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.") : f(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__ */ k("div", {
88
89
  "data-tour": "support-ticket-list-toolbar",
89
90
  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",
90
91
  children: [
91
- /* @__PURE__ */ O("div", {
92
+ /* @__PURE__ */ k("div", {
92
93
  className: "flex-1 relative",
93
- children: [/* @__PURE__ */ D(C, {
94
+ children: [/* @__PURE__ */ O(w, {
94
95
  size: 18,
95
96
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
96
- }), /* @__PURE__ */ D(i, {
97
+ }), /* @__PURE__ */ O(i, {
97
98
  "data-tour": "support-ticket-search",
98
99
  type: "text",
99
- placeholder: d(F, "support.ticketList.search.placeholder", "Search tickets..."),
100
- value: J.search,
101
- onChange: (e) => Y({ search: e.target.value }),
100
+ placeholder: f(I, "support.ticketList.search.placeholder", "Search tickets..."),
101
+ value: Y.search,
102
+ onChange: (e) => X({ search: e.target.value }),
102
103
  className: "pl-[3.25rem]"
103
104
  })]
104
105
  }),
105
- /* @__PURE__ */ O("div", {
106
+ /* @__PURE__ */ k("div", {
106
107
  "data-tour": "support-ticket-view-toggle",
107
108
  className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
108
- children: [/* @__PURE__ */ D(r, {
109
- variant: K === "list" ? "secondary" : "ghost",
109
+ children: [/* @__PURE__ */ O(r, {
110
+ variant: q === "list" ? "secondary" : "ghost",
110
111
  size: "sm",
111
- onClick: () => q("list"),
112
+ onClick: () => J("list"),
112
113
  className: "px-3",
113
114
  "aria-label": "Show tickets as a list",
114
- children: /* @__PURE__ */ D(b, { size: 18 })
115
- }), /* @__PURE__ */ D(r, {
116
- variant: K === "grid" ? "secondary" : "ghost",
115
+ children: /* @__PURE__ */ O(x, { size: 18 })
116
+ }), /* @__PURE__ */ O(r, {
117
+ variant: q === "grid" ? "secondary" : "ghost",
117
118
  size: "sm",
118
- onClick: () => q("grid"),
119
+ onClick: () => J("grid"),
119
120
  className: "px-3",
120
121
  "aria-label": "Show tickets as a grid",
121
- children: /* @__PURE__ */ D(y, { size: 18 })
122
+ children: /* @__PURE__ */ O(b, { size: 18 })
122
123
  })]
123
124
  }),
124
- /* @__PURE__ */ O(r, {
125
+ /* @__PURE__ */ k(r, {
125
126
  "data-tour": "support-ticket-filters-button",
126
- variant: X ? "secondary" : "outline",
127
- onClick: () => Z(!X),
128
- children: [/* @__PURE__ */ D(v, { size: 18 }), d(F, "support.ticketList.filters.toggle", "Filters")]
127
+ variant: Z ? "secondary" : "outline",
128
+ onClick: () => Q(!Z),
129
+ children: [/* @__PURE__ */ O(y, { size: 18 }), f(I, "support.ticketList.filters.toggle", "Filters")]
129
130
  })
130
131
  ]
131
132
  }),
132
- W && /* @__PURE__ */ O("div", {
133
+ G && /* @__PURE__ */ k("div", {
133
134
  className: "flex items-start gap-2 rounded-lg border border-border-seam bg-bg-sunken/30 p-3 text-sm text-text-secondary",
134
- children: [/* @__PURE__ */ D(_, {
135
+ children: [/* @__PURE__ */ O(v, {
135
136
  size: 16,
136
137
  className: "mt-0.5 shrink-0"
137
- }), /* @__PURE__ */ D("span", { children: d(F, "support.ticketList.scopedSearch.hint", "Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.") })]
138
+ }), /* @__PURE__ */ O("span", { children: f(I, "support.ticketList.scopedSearch.hint", "Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.") })]
138
139
  }),
139
- X && /* @__PURE__ */ D("div", {
140
+ Z && /* @__PURE__ */ O("div", {
140
141
  className: "p-4 rounded-xl border border-border-seam bg-bg-sunken/30",
141
- children: /* @__PURE__ */ O("div", {
142
+ children: /* @__PURE__ */ k("div", {
142
143
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
143
144
  children: [
144
- /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
145
+ /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
145
146
  className: "block text-sm font-medium mb-2 text-text-secondary",
146
147
  htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
147
- children: d(F, "support.ticketList.filters.status.label", "Status")
148
- }), /* @__PURE__ */ O("select", {
148
+ children: f(I, "support.ticketList.filters.status.label", "Status")
149
+ }), /* @__PURE__ */ k("select", {
149
150
  id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
150
- value: J.status,
151
- onChange: (e) => Y({ status: e.target.value }),
151
+ value: Y.status,
152
+ onChange: (e) => X({ status: e.target.value }),
152
153
  className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
153
154
  children: [
154
- /* @__PURE__ */ D("option", {
155
+ /* @__PURE__ */ O("option", {
155
156
  value: "all",
156
- children: d(F, "support.ticketList.filters.status.all", "All Statuses")
157
+ children: f(I, "support.ticketList.filters.status.all", "All Statuses")
157
158
  }),
158
- /* @__PURE__ */ D("option", {
159
+ /* @__PURE__ */ O("option", {
159
160
  value: "NEW",
160
- children: d(F, "support.shared.status.new", "New")
161
+ children: f(I, "support.shared.status.new", "New")
161
162
  }),
162
- /* @__PURE__ */ D("option", {
163
+ /* @__PURE__ */ O("option", {
163
164
  value: "IN_PROGRESS",
164
- children: d(F, "support.shared.status.inProgress", "In Progress")
165
+ children: f(I, "support.shared.status.inProgress", "In Progress")
165
166
  }),
166
- /* @__PURE__ */ D("option", {
167
+ /* @__PURE__ */ O("option", {
167
168
  value: "WAITING_CUSTOMER",
168
- children: d(F, "support.shared.status.waitingCustomer", "Waiting on Customer")
169
+ children: f(I, "support.shared.status.waitingCustomer", "Waiting on Customer")
169
170
  }),
170
- /* @__PURE__ */ D("option", {
171
+ /* @__PURE__ */ O("option", {
171
172
  value: "RESOLVED",
172
- children: d(F, "support.shared.status.resolved", "Resolved")
173
+ children: f(I, "support.shared.status.resolved", "Resolved")
173
174
  }),
174
- /* @__PURE__ */ D("option", {
175
+ /* @__PURE__ */ O("option", {
175
176
  value: "CLOSED",
176
- children: d(F, "support.shared.status.closed", "Closed")
177
+ children: f(I, "support.shared.status.closed", "Closed")
177
178
  }),
178
- /* @__PURE__ */ D("option", {
179
+ /* @__PURE__ */ O("option", {
179
180
  value: "REOPENED",
180
- children: d(F, "support.shared.status.reopened", "Reopened")
181
+ children: f(I, "support.shared.status.reopened", "Reopened")
181
182
  })
182
183
  ]
183
184
  })] }),
184
- /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
185
+ /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
185
186
  className: "block text-sm font-medium mb-2 text-text-secondary",
186
187
  htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
187
- children: d(F, "support.ticketList.filters.priority.label", "Priority")
188
- }), /* @__PURE__ */ O("select", {
188
+ children: f(I, "support.ticketList.filters.priority.label", "Priority")
189
+ }), /* @__PURE__ */ k("select", {
189
190
  id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
190
- value: J.priority,
191
- onChange: (e) => Y({ priority: e.target.value }),
191
+ value: Y.priority,
192
+ onChange: (e) => X({ priority: e.target.value }),
192
193
  className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
193
194
  children: [
194
- /* @__PURE__ */ D("option", {
195
+ /* @__PURE__ */ O("option", {
195
196
  value: "all",
196
- children: d(F, "support.ticketList.filters.priority.all", "All Priorities")
197
+ children: f(I, "support.ticketList.filters.priority.all", "All Priorities")
197
198
  }),
198
- /* @__PURE__ */ D("option", {
199
+ /* @__PURE__ */ O("option", {
199
200
  value: "CRITICAL",
200
- children: d(F, "support.shared.priority.critical", "Critical")
201
+ children: f(I, "support.shared.priority.critical", "Critical")
201
202
  }),
202
- /* @__PURE__ */ D("option", {
203
+ /* @__PURE__ */ O("option", {
203
204
  value: "HIGH",
204
- children: d(F, "support.shared.priority.high", "High")
205
+ children: f(I, "support.shared.priority.high", "High")
205
206
  }),
206
- /* @__PURE__ */ D("option", {
207
+ /* @__PURE__ */ O("option", {
207
208
  value: "NORMAL",
208
- children: d(F, "support.shared.priority.normal", "Normal")
209
+ children: f(I, "support.shared.priority.normal", "Normal")
209
210
  }),
210
- /* @__PURE__ */ D("option", {
211
+ /* @__PURE__ */ O("option", {
211
212
  value: "LOW",
212
- children: d(F, "support.shared.priority.low", "Low")
213
+ children: f(I, "support.shared.priority.low", "Low")
213
214
  })
214
215
  ]
215
216
  })] }),
216
- /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
217
+ /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
217
218
  htmlFor: "ticket-filter-date-from",
218
219
  className: "block text-sm font-medium mb-2 text-text-secondary",
219
220
  children: "Date From"
220
- }), /* @__PURE__ */ D(i, {
221
+ }), /* @__PURE__ */ O(i, {
221
222
  id: "ticket-filter-date-from",
222
223
  type: "date",
223
- value: J.dateRange.start ? J.dateRange.start.toISOString().slice(0, 10) : "",
224
- onChange: (e) => Y({ dateRange: {
225
- ...J.dateRange,
224
+ value: Y.dateRange.start ? Y.dateRange.start.toISOString().slice(0, 10) : "",
225
+ onChange: (e) => X({ dateRange: {
226
+ ...Y.dateRange,
226
227
  start: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T00:00:00`) : null
227
228
  } })
228
229
  })] }),
229
- /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
230
+ /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
230
231
  htmlFor: "ticket-filter-date-to",
231
232
  className: "block text-sm font-medium mb-2 text-text-secondary",
232
233
  children: "Date To"
233
- }), /* @__PURE__ */ D(i, {
234
+ }), /* @__PURE__ */ O(i, {
234
235
  id: "ticket-filter-date-to",
235
236
  type: "date",
236
- value: J.dateRange.end ? J.dateRange.end.toISOString().slice(0, 10) : "",
237
- onChange: (e) => Y({ dateRange: {
238
- ...J.dateRange,
237
+ value: Y.dateRange.end ? Y.dateRange.end.toISOString().slice(0, 10) : "",
238
+ onChange: (e) => X({ dateRange: {
239
+ ...Y.dateRange,
239
240
  end: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T23:59:59`) : null
240
241
  } })
241
242
  })] }),
242
- Q && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
243
+ $ && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
243
244
  htmlFor: "ticket-filter-product",
244
245
  className: "block text-sm font-medium mb-2 text-text-secondary",
245
246
  children: "Product"
246
- }), /* @__PURE__ */ D(i, {
247
+ }), /* @__PURE__ */ O(i, {
247
248
  id: "ticket-filter-product",
248
249
  type: "text",
249
- value: J.productId || "",
250
- onChange: (e) => Y({ productId: e.target.value || null }),
250
+ value: Y.productId || "",
251
+ onChange: (e) => X({ productId: e.target.value || null }),
251
252
  placeholder: "vibecontrols"
252
- })] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
253
+ })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
253
254
  htmlFor: "ticket-filter-assignee",
254
255
  className: "block text-sm font-medium mb-2 text-text-secondary",
255
256
  children: "Assignee"
256
- }), /* @__PURE__ */ D(i, {
257
+ }), /* @__PURE__ */ O(i, {
257
258
  id: "ticket-filter-assignee",
258
259
  type: "text",
259
- value: J.assignedToId || "",
260
- onChange: (e) => Y({ assignedToId: e.target.value || null }),
260
+ value: Y.assignedToId || "",
261
+ onChange: (e) => X({ assignedToId: e.target.value || null }),
261
262
  placeholder: "User ID"
262
263
  })] })] })
263
264
  ]
264
265
  })
265
266
  }),
266
- G ? /* @__PURE__ */ D(c, {
267
- icon: /* @__PURE__ */ D(_, { size: 48 }),
268
- title: d(F, "support.ticketList.missingProduct.title", "Unable to load tickets for this product"),
269
- description: d(F, "support.ticketList.missingProduct.description", "This support view needs a product configuration before tickets can be loaded.")
270
- }) : R.length === 0 ? /* @__PURE__ */ D(c, {
267
+ K ? /* @__PURE__ */ O(l, {
268
+ illustration: "empty-generic",
269
+ title: f(I, "support.ticketList.missingProduct.title", "Unable to load tickets for this product"),
270
+ description: f(I, "support.ticketList.missingProduct.description", "This support view needs a product configuration before tickets can be loaded.")
271
+ }) : z.length === 0 ? /* @__PURE__ */ O(l, {
271
272
  illustration: "empty-data",
272
- title: d(F, "support.ticketList.empty.title", "No tickets found"),
273
- description: d(F, "support.ticketList.empty.description", "Create your first support ticket to get started, or adjust your filters."),
274
- action: /* @__PURE__ */ O(r, {
275
- onClick: () => P("new"),
276
- children: [/* @__PURE__ */ D(S, { size: 18 }), d(F, "support.ticketList.empty.action", "Create Ticket")]
273
+ title: f(I, "support.ticketList.empty.title", "No tickets found"),
274
+ description: f(I, "support.ticketList.empty.description", "Create your first support ticket to get started, or adjust your filters."),
275
+ action: /* @__PURE__ */ k(r, {
276
+ onClick: () => F("new"),
277
+ children: [/* @__PURE__ */ O(C, { size: 18 }), f(I, "support.ticketList.empty.action", "Create Ticket")]
277
278
  })
278
- }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("div", {
279
- className: K === "grid" ? "grid grid-cols-1 md:grid-cols-2 gap-4" : "space-y-3",
280
- children: R.map((e) => /* @__PURE__ */ D("button", {
279
+ }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
280
+ className: q === "grid" ? "grid grid-cols-1 md:grid-cols-2 gap-4" : "space-y-3",
281
+ children: z.map((e) => /* @__PURE__ */ O("button", {
281
282
  type: "button",
282
283
  "data-tour": "support-ticket-card",
283
- onClick: () => P(e.id),
284
+ onClick: () => F(e.id),
284
285
  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",
285
- children: /* @__PURE__ */ O("div", {
286
+ children: /* @__PURE__ */ k("div", {
286
287
  className: "flex items-start justify-between gap-4",
287
- children: [/* @__PURE__ */ O("div", {
288
+ children: [/* @__PURE__ */ k("div", {
288
289
  className: "flex-1 min-w-0",
289
290
  children: [
290
- /* @__PURE__ */ O("div", {
291
+ /* @__PURE__ */ k("div", {
291
292
  className: "flex items-center gap-2 mb-2 flex-wrap",
292
293
  children: [
293
- /* @__PURE__ */ D("span", {
294
+ /* @__PURE__ */ O("span", {
294
295
  className: "text-xs font-mono text-text-secondary",
295
296
  children: e.ticketNumber
296
297
  }),
297
- /* @__PURE__ */ D(n, {
298
- className: m[e.status],
299
- children: M[e.status]
298
+ /* @__PURE__ */ O(n, {
299
+ className: h[e.status],
300
+ children: N[e.status]
300
301
  }),
301
- e.ticketCategory && /* @__PURE__ */ D(n, {
302
+ e.ticketCategory && /* @__PURE__ */ O(n, {
302
303
  variant: "outline",
303
- className: h(e.ticketCategory.color),
304
+ className: g(e.ticketCategory.color),
304
305
  children: e.ticketCategory.name
305
306
  }),
306
- e.slaBreachStatus && e.slaBreachStatus !== "NONE" && /* @__PURE__ */ D(n, {
307
- className: s(f[e.slaBreachStatus], "motion-safe:animate-vc-glow-pulse"),
308
- children: e.slaBreachStatus === "BREACHED" ? d(F, "support.ticketList.sla.breached", "SLA Breached") : d(F, "support.ticketList.sla.atRisk", "SLA At Risk")
307
+ e.slaBreachStatus && e.slaBreachStatus !== "NONE" && /* @__PURE__ */ O(n, {
308
+ className: c(p[e.slaBreachStatus], "motion-safe:animate-vc-glow-pulse"),
309
+ children: e.slaBreachStatus === "BREACHED" ? f(I, "support.ticketList.sla.breached", "SLA Breached") : f(I, "support.ticketList.sla.atRisk", "SLA At Risk")
309
310
  })
310
311
  ]
311
312
  }),
312
- /* @__PURE__ */ D("h3", {
313
+ /* @__PURE__ */ O("h3", {
313
314
  className: "font-semibold text-text-primary mb-1 group-hover:text-primary transition-colors truncate",
314
315
  children: e.subject
315
316
  }),
316
- /* @__PURE__ */ O("div", {
317
+ /* @__PURE__ */ k("div", {
317
318
  className: "flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-text-secondary",
318
319
  children: [
319
- /* @__PURE__ */ D("span", { children: j(e, d(F, "support.ticketList.category.general", "General")) }),
320
- /* @__PURE__ */ D("span", { children: "•" }),
321
- /* @__PURE__ */ D("span", { children: new Date(e.createdAt).toLocaleDateString() }),
322
- $ && e.context?.productId && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", { children: "•" }), /* @__PURE__ */ D(n, {
320
+ /* @__PURE__ */ O("span", { children: M(e, f(I, "support.ticketList.category.general", "General")) }),
321
+ /* @__PURE__ */ O("span", { children: "•" }),
322
+ /* @__PURE__ */ O("span", { children: new Date(e.createdAt).toLocaleDateString() }),
323
+ ee && e.context?.productId && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("span", { children: "•" }), /* @__PURE__ */ O(n, {
323
324
  variant: "outline",
324
325
  children: e.context.productId
325
326
  })] }),
326
- e.assignedTo && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", { children: "•" }), /* @__PURE__ */ D("span", { children: d(F, "support.ticketList.meta.assigned", "Assigned") })] })
327
+ e.assignedTo && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("span", { children: "•" }), /* @__PURE__ */ O("span", { children: f(I, "support.ticketList.meta.assigned", "Assigned") })] })
327
328
  ]
328
329
  })
329
330
  ]
330
- }), /* @__PURE__ */ D("div", {
331
+ }), /* @__PURE__ */ O("div", {
331
332
  className: "text-2xl flex-shrink-0",
332
- title: N[e.priority],
333
- children: /* @__PURE__ */ D("span", {
334
- className: `block h-3 w-3 rounded-full ${p[e.priority]}`,
333
+ title: P[e.priority],
334
+ children: /* @__PURE__ */ O("span", {
335
+ className: `block h-3 w-3 rounded-full ${m[e.priority]}`,
335
336
  "aria-hidden": "true"
336
337
  })
337
338
  })]
338
339
  })
339
340
  }, e.id))
340
- }), V && /* @__PURE__ */ D("div", {
341
+ }), H && /* @__PURE__ */ O("div", {
341
342
  className: "flex justify-center pt-4",
342
- children: /* @__PURE__ */ D(r, {
343
+ children: /* @__PURE__ */ O(r, {
343
344
  variant: "outline",
344
- onClick: H,
345
- disabled: z,
346
- children: z ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(x, {
345
+ onClick: U,
346
+ disabled: B,
347
+ children: B ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(S, {
347
348
  size: 18,
348
349
  className: "animate-spin"
349
- }), d(F, "support.ticketList.actions.loadingMore", "Loading...")] }) : d(F, "support.ticketList.actions.loadMore", "Load More")
350
+ }), f(I, "support.ticketList.actions.loadingMore", "Loading...")] }) : f(I, "support.ticketList.actions.loadMore", "Load More")
350
351
  })
351
352
  })] })
352
353
  ]
353
354
  });
354
355
  }
355
356
  //#endregion
356
- export { P as TicketListPage };
357
+ export { F as TicketListPage };
357
358
 
358
359
  //# sourceMappingURL=TicketListPage.js.map