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