@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.
- package/dist/generated/global-operations.d.ts +2517 -0
- package/dist/generated/global-types.d.ts +22913 -0
- package/dist/generated/wspace-operations.d.ts +1 -0
- package/dist/generated/wspace-types.d.ts +57850 -0
- package/dist/index.d.ts +5 -0
- package/dist/support/SupportAdminRoot.d.ts +20 -0
- package/dist/support/SupportAdminRoutes.d.ts +13 -0
- package/dist/support/SupportUserRoot.d.ts +17 -0
- package/dist/support/SupportUserRoutes.d.ts +11 -0
- package/dist/support/components/NotificationToast.d.ts +17 -0
- package/dist/support/components/PageLayout.d.ts +71 -0
- package/dist/support/components/RouteHelpers.d.ts +9 -0
- package/dist/support/components/analytics/CategoryBreakdown.d.ts +9 -0
- package/dist/support/components/analytics/MetricCard.d.ts +10 -0
- package/dist/support/components/analytics/PriorityBreakdown.d.ts +9 -0
- package/dist/support/components/analytics/SLAReport.d.ts +23 -0
- package/dist/support/components/analytics/SatisfactionDistribution.d.ts +23 -0
- package/dist/support/components/analytics/TopAgents.d.ts +19 -0
- package/dist/support/components/analytics/TrendChart.d.ts +15 -0
- package/dist/support/components/kb/ArticleForm.d.ts +25 -0
- package/dist/support/components/settings/CannedResponsesSettings.d.ts +21 -0
- package/dist/support/components/settings/SLAPoliciesSettings.d.ts +18 -0
- package/dist/support/components/settings/TicketCategoriesSettings.d.ts +20 -0
- package/dist/support/components/tickets/AttachmentList.d.ts +7 -0
- package/dist/support/components/tickets/MarkdownContent.d.ts +7 -0
- package/dist/support/components/tickets/MessageComposer.d.ts +22 -0
- package/dist/support/components/tickets/MessageThread.d.ts +12 -0
- package/dist/support/components/tickets/TicketDetailHeader.d.ts +16 -0
- package/dist/support/components/tickets/TicketHeader.d.ts +9 -0
- package/dist/support/components/tickets/TicketSidebar.d.ts +7 -0
- package/dist/support/components/ui.d.ts +5 -0
- package/dist/support/components/ui.js +2 -2
- package/dist/support/constants.d.ts +20 -0
- package/dist/support/events/rybbit.d.ts +13 -0
- package/dist/support/hooks/index.d.ts +5 -0
- package/dist/support/hooks/useAnalyticsOperations.d.ts +51 -0
- package/dist/support/hooks/useAttachmentsFailedToast.d.ts +2 -0
- package/dist/support/hooks/useChatOperations.d.ts +27 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +55 -0
- package/dist/support/hooks/useNotification.d.ts +20 -0
- package/dist/support/hooks/useRegisterFooter.d.ts +6 -0
- package/dist/support/hooks/useSettingsOperations.d.ts +47 -0
- package/dist/support/hooks/useSupportAttachments.d.ts +10 -0
- package/dist/support/hooks/useTicketListOperations.d.ts +31 -0
- package/dist/support/hooks/useTicketOperations.d.ts +39 -0
- package/dist/support/index.d.ts +44 -0
- package/dist/support/pages/AnalyticsPage.d.ts +1 -0
- package/dist/support/pages/AnalyticsPage.js +144 -113
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.d.ts +7 -0
- package/dist/support/pages/ArticleDetailAdminPage.js +150 -113
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +7 -0
- package/dist/support/pages/ArticleDetailUserPage.js +90 -83
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.d.ts +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +48 -44
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.d.ts +1 -0
- package/dist/support/pages/ContactInquiryDetailPage.js +225 -205
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.d.ts +1 -0
- package/dist/support/pages/CreateArticlePage.js +50 -46
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +1 -0
- package/dist/support/pages/CreateTicketPage.js +122 -116
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.d.ts +1 -0
- package/dist/support/pages/EditArticlePage.js +76 -80
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +292 -269
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.d.ts +1 -0
- package/dist/support/pages/JobApplicationsPage.js +50 -46
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.d.ts +7 -0
- package/dist/support/pages/KnowledgeBaseAdminPage.js +84 -81
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +8 -0
- package/dist/support/pages/KnowledgeBaseUserPage.js +76 -75
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.d.ts +1 -0
- package/dist/support/pages/SettingsPage.js +215 -182
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.d.ts +8 -0
- package/dist/support/pages/TicketDetailAdminPage.js +158 -128
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.d.ts +8 -0
- package/dist/support/pages/TicketDetailUserPage.js +174 -141
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +11 -0
- package/dist/support/pages/TicketListPage.js +171 -170
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.d.ts +16 -0
- package/dist/support/store/supportStore.d.ts +66 -0
- package/dist/support/types/index.d.ts +160 -0
- package/dist/support/utils/attachments.d.ts +27 -0
- package/dist/support/utils/categoryColors.d.ts +10 -0
- package/dist/support/utils/cn.d.ts +6 -0
- package/dist/support/utils/context.d.ts +2 -0
- package/dist/support/utils/errors.d.ts +2 -0
- package/dist/support/utils/i18n.d.ts +4 -0
- package/dist/support/utils/index.d.ts +57 -0
- package/dist/support/utils/markdown.d.ts +2 -0
- package/dist/support/utils/supportFiles.d.ts +15 -0
- package/dist/support/utils/ticketFilters.d.ts +6 -0
- package/dist/support/utils/uiTokens.d.ts +7 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- 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
|
|
5
|
-
import { useTicketListOperations as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { EmptyState as
|
|
8
|
-
import { tWithFallback as
|
|
9
|
-
import { slaBreachBadgeClasses as
|
|
10
|
-
import { getCategoryBadgeClass as
|
|
11
|
-
import { useState as
|
|
12
|
-
import { AlertCircle as
|
|
13
|
-
import { useNavigate as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { useI18n as
|
|
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
|
|
17
|
+
function j(e) {
|
|
18
18
|
return e ? e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()) : null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return e.ticketCategory?.name ??
|
|
20
|
+
function M(e, t) {
|
|
21
|
+
return e.ticketCategory?.name ?? j(e.category) ?? t;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
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
|
-
},
|
|
30
|
+
}, P = {
|
|
31
31
|
CRITICAL: "Critical",
|
|
32
32
|
HIGH: "High",
|
|
33
33
|
NORMAL: "Normal",
|
|
34
34
|
LOW: "Low"
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
let
|
|
38
|
-
return
|
|
39
|
-
title:
|
|
40
|
-
subtitle:
|
|
41
|
-
icon: /* @__PURE__ */
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
}) :
|
|
44
|
-
title:
|
|
45
|
-
subtitle:
|
|
46
|
-
icon: /* @__PURE__ */
|
|
47
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
52
|
+
children: /* @__PURE__ */ O(v, { size: 48 })
|
|
53
53
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ O("h3", {
|
|
55
55
|
className: "text-lg font-semibold mb-2",
|
|
56
|
-
children:
|
|
56
|
+
children: f(I, "support.ticketList.error.title", "Failed to load tickets")
|
|
57
57
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ O("p", {
|
|
59
59
|
className: "text-sm text-text-secondary max-w-md",
|
|
60
|
-
children:
|
|
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__ */
|
|
65
|
-
title:
|
|
66
|
-
subtitle:
|
|
67
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
70
|
-
headerActions: /* @__PURE__ */
|
|
69
|
+
titleAccent: f(I, "support.ticketList.titleAccent", "Tickets"),
|
|
70
|
+
headerActions: /* @__PURE__ */ k(r, {
|
|
71
71
|
"data-tour": "support-new-ticket-button",
|
|
72
|
-
onClick: () =>
|
|
73
|
-
children: [/* @__PURE__ */
|
|
72
|
+
onClick: () => F("new"),
|
|
73
|
+
children: [/* @__PURE__ */ O(C, { size: 18 }), f(I, "support.ticketList.actions.newTicket", "New Ticket")]
|
|
74
74
|
}),
|
|
75
|
-
headerContent: /* @__PURE__ */
|
|
75
|
+
headerContent: /* @__PURE__ */ O("div", {
|
|
76
76
|
className: "flex items-center gap-2",
|
|
77
|
-
children: /* @__PURE__ */
|
|
77
|
+
children: /* @__PURE__ */ O(n, {
|
|
78
78
|
variant: "secondary",
|
|
79
79
|
className: "font-medium",
|
|
80
|
-
children:
|
|
81
|
-
count:
|
|
82
|
-
label:
|
|
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("
|
|
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__ */
|
|
92
|
+
/* @__PURE__ */ k("div", {
|
|
92
93
|
className: "flex-1 relative",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
97
|
+
}), /* @__PURE__ */ O(i, {
|
|
97
98
|
"data-tour": "support-ticket-search",
|
|
98
99
|
type: "text",
|
|
99
|
-
placeholder:
|
|
100
|
-
value:
|
|
101
|
-
onChange: (e) =>
|
|
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__ */
|
|
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__ */
|
|
109
|
-
variant:
|
|
109
|
+
children: [/* @__PURE__ */ O(r, {
|
|
110
|
+
variant: q === "list" ? "secondary" : "ghost",
|
|
110
111
|
size: "sm",
|
|
111
|
-
onClick: () =>
|
|
112
|
+
onClick: () => J("list"),
|
|
112
113
|
className: "px-3",
|
|
113
114
|
"aria-label": "Show tickets as a list",
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
-
}), /* @__PURE__ */
|
|
116
|
-
variant:
|
|
115
|
+
children: /* @__PURE__ */ O(x, { size: 18 })
|
|
116
|
+
}), /* @__PURE__ */ O(r, {
|
|
117
|
+
variant: q === "grid" ? "secondary" : "ghost",
|
|
117
118
|
size: "sm",
|
|
118
|
-
onClick: () =>
|
|
119
|
+
onClick: () => J("grid"),
|
|
119
120
|
className: "px-3",
|
|
120
121
|
"aria-label": "Show tickets as a grid",
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
+
children: /* @__PURE__ */ O(b, { size: 18 })
|
|
122
123
|
})]
|
|
123
124
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ k(r, {
|
|
125
126
|
"data-tour": "support-ticket-filters-button",
|
|
126
|
-
variant:
|
|
127
|
-
onClick: () =>
|
|
128
|
-
children: [/* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
135
|
+
children: [/* @__PURE__ */ O(v, {
|
|
135
136
|
size: 16,
|
|
136
137
|
className: "mt-0.5 shrink-0"
|
|
137
|
-
}), /* @__PURE__ */
|
|
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
|
-
|
|
140
|
+
Z && /* @__PURE__ */ O("div", {
|
|
140
141
|
className: "p-4 rounded-xl border border-border-seam bg-bg-sunken/30",
|
|
141
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
148
|
-
}), /* @__PURE__ */
|
|
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:
|
|
151
|
-
onChange: (e) =>
|
|
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__ */
|
|
155
|
+
/* @__PURE__ */ O("option", {
|
|
155
156
|
value: "all",
|
|
156
|
-
children:
|
|
157
|
+
children: f(I, "support.ticketList.filters.status.all", "All Statuses")
|
|
157
158
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ O("option", {
|
|
159
160
|
value: "NEW",
|
|
160
|
-
children:
|
|
161
|
+
children: f(I, "support.shared.status.new", "New")
|
|
161
162
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ O("option", {
|
|
163
164
|
value: "IN_PROGRESS",
|
|
164
|
-
children:
|
|
165
|
+
children: f(I, "support.shared.status.inProgress", "In Progress")
|
|
165
166
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ O("option", {
|
|
167
168
|
value: "WAITING_CUSTOMER",
|
|
168
|
-
children:
|
|
169
|
+
children: f(I, "support.shared.status.waitingCustomer", "Waiting on Customer")
|
|
169
170
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ O("option", {
|
|
171
172
|
value: "RESOLVED",
|
|
172
|
-
children:
|
|
173
|
+
children: f(I, "support.shared.status.resolved", "Resolved")
|
|
173
174
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ O("option", {
|
|
175
176
|
value: "CLOSED",
|
|
176
|
-
children:
|
|
177
|
+
children: f(I, "support.shared.status.closed", "Closed")
|
|
177
178
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ O("option", {
|
|
179
180
|
value: "REOPENED",
|
|
180
|
-
children:
|
|
181
|
+
children: f(I, "support.shared.status.reopened", "Reopened")
|
|
181
182
|
})
|
|
182
183
|
]
|
|
183
184
|
})] }),
|
|
184
|
-
/* @__PURE__ */
|
|
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:
|
|
188
|
-
}), /* @__PURE__ */
|
|
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:
|
|
191
|
-
onChange: (e) =>
|
|
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__ */
|
|
195
|
+
/* @__PURE__ */ O("option", {
|
|
195
196
|
value: "all",
|
|
196
|
-
children:
|
|
197
|
+
children: f(I, "support.ticketList.filters.priority.all", "All Priorities")
|
|
197
198
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ O("option", {
|
|
199
200
|
value: "CRITICAL",
|
|
200
|
-
children:
|
|
201
|
+
children: f(I, "support.shared.priority.critical", "Critical")
|
|
201
202
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ O("option", {
|
|
203
204
|
value: "HIGH",
|
|
204
|
-
children:
|
|
205
|
+
children: f(I, "support.shared.priority.high", "High")
|
|
205
206
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ O("option", {
|
|
207
208
|
value: "NORMAL",
|
|
208
|
-
children:
|
|
209
|
+
children: f(I, "support.shared.priority.normal", "Normal")
|
|
209
210
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ O("option", {
|
|
211
212
|
value: "LOW",
|
|
212
|
-
children:
|
|
213
|
+
children: f(I, "support.shared.priority.low", "Low")
|
|
213
214
|
})
|
|
214
215
|
]
|
|
215
216
|
})] }),
|
|
216
|
-
/* @__PURE__ */
|
|
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__ */
|
|
221
|
+
}), /* @__PURE__ */ O(i, {
|
|
221
222
|
id: "ticket-filter-date-from",
|
|
222
223
|
type: "date",
|
|
223
|
-
value:
|
|
224
|
-
onChange: (e) =>
|
|
225
|
-
...
|
|
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__ */
|
|
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__ */
|
|
234
|
+
}), /* @__PURE__ */ O(i, {
|
|
234
235
|
id: "ticket-filter-date-to",
|
|
235
236
|
type: "date",
|
|
236
|
-
value:
|
|
237
|
-
onChange: (e) =>
|
|
238
|
-
...
|
|
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
|
-
|
|
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__ */
|
|
247
|
+
}), /* @__PURE__ */ O(i, {
|
|
247
248
|
id: "ticket-filter-product",
|
|
248
249
|
type: "text",
|
|
249
|
-
value:
|
|
250
|
-
onChange: (e) =>
|
|
250
|
+
value: Y.productId || "",
|
|
251
|
+
onChange: (e) => X({ productId: e.target.value || null }),
|
|
251
252
|
placeholder: "vibecontrols"
|
|
252
|
-
})] }), /* @__PURE__ */
|
|
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__ */
|
|
257
|
+
}), /* @__PURE__ */ O(i, {
|
|
257
258
|
id: "ticket-filter-assignee",
|
|
258
259
|
type: "text",
|
|
259
|
-
value:
|
|
260
|
-
onChange: (e) =>
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
title:
|
|
269
|
-
description:
|
|
270
|
-
}) :
|
|
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:
|
|
273
|
-
description:
|
|
274
|
-
action: /* @__PURE__ */
|
|
275
|
-
onClick: () =>
|
|
276
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
279
|
-
className:
|
|
280
|
-
children:
|
|
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: () =>
|
|
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__ */
|
|
286
|
+
children: /* @__PURE__ */ k("div", {
|
|
286
287
|
className: "flex items-start justify-between gap-4",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ k("div", {
|
|
288
289
|
className: "flex-1 min-w-0",
|
|
289
290
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ k("div", {
|
|
291
292
|
className: "flex items-center gap-2 mb-2 flex-wrap",
|
|
292
293
|
children: [
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ O("span", {
|
|
294
295
|
className: "text-xs font-mono text-text-secondary",
|
|
295
296
|
children: e.ticketNumber
|
|
296
297
|
}),
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
className:
|
|
299
|
-
children:
|
|
298
|
+
/* @__PURE__ */ O(n, {
|
|
299
|
+
className: h[e.status],
|
|
300
|
+
children: N[e.status]
|
|
300
301
|
}),
|
|
301
|
-
e.ticketCategory && /* @__PURE__ */
|
|
302
|
+
e.ticketCategory && /* @__PURE__ */ O(n, {
|
|
302
303
|
variant: "outline",
|
|
303
|
-
className:
|
|
304
|
+
className: g(e.ticketCategory.color),
|
|
304
305
|
children: e.ticketCategory.name
|
|
305
306
|
}),
|
|
306
|
-
e.slaBreachStatus && e.slaBreachStatus !== "NONE" && /* @__PURE__ */
|
|
307
|
-
className:
|
|
308
|
-
children: e.slaBreachStatus === "BREACHED" ?
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
|
|
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__ */
|
|
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__ */
|
|
331
|
+
}), /* @__PURE__ */ O("div", {
|
|
331
332
|
className: "text-2xl flex-shrink-0",
|
|
332
|
-
title:
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
-
className: `block h-3 w-3 rounded-full ${
|
|
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
|
-
}),
|
|
341
|
+
}), H && /* @__PURE__ */ O("div", {
|
|
341
342
|
className: "flex justify-center pt-4",
|
|
342
|
-
children: /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ O(r, {
|
|
343
344
|
variant: "outline",
|
|
344
|
-
onClick:
|
|
345
|
-
disabled:
|
|
346
|
-
children:
|
|
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
|
-
}),
|
|
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 {
|
|
357
|
+
export { F as TicketListPage };
|
|
357
358
|
|
|
358
359
|
//# sourceMappingURL=TicketListPage.js.map
|