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