@flamingo-stack/openframe-frontend-core 0.0.782 → 0.0.784
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/{chunk-TS6TISIF.cjs → chunk-4LQKUZQL.cjs} +15 -15
- package/dist/{chunk-C5UUWXHE.cjs → chunk-4T2ZBCVJ.cjs} +55 -55
- package/dist/{chunk-7DKDVJMR.cjs → chunk-6F3IS3RD.cjs} +3 -3
- package/dist/{chunk-ISB7LW3D.cjs → chunk-CBDSML44.cjs} +32 -32
- package/dist/{chunk-QV4GHAWN.cjs → chunk-CZPUVFON.cjs} +51 -51
- package/dist/{chunk-C42BXIY7.cjs → chunk-FQE5MGRD.cjs} +11 -11
- package/dist/{chunk-LTF6UDGO.cjs → chunk-GI5QCHOV.cjs} +6 -6
- package/dist/{chunk-E2ZZOYSM.cjs → chunk-GMIXTXAO.cjs} +15 -3
- package/dist/{chunk-2EXD2RSC.cjs → chunk-GTYVI4QR.cjs} +4 -4
- package/dist/{chunk-JGKPEGZN.cjs → chunk-JYLECAIR.cjs} +41 -41
- package/dist/{chunk-YX7X5QQN.cjs → chunk-KVPHCBQV.cjs} +12 -12
- package/dist/{chunk-MDGDL3C7.cjs → chunk-L33AEGH4.cjs} +22 -22
- package/dist/{chunk-A4YUTS6Q.cjs → chunk-MYXC6PEG.cjs} +329 -329
- package/dist/{chunk-VH3KQSI2.cjs → chunk-MZQGHDTE.cjs} +3 -3
- package/dist/{chunk-GFRKNUJZ.cjs → chunk-NZJ5WW2D.cjs} +21 -21
- package/dist/{chunk-N7QNWHJA.cjs → chunk-STYH4ISW.cjs} +23 -23
- package/dist/{chunk-IZKEWQJN.cjs → chunk-U5R4MY4F.cjs} +4 -4
- package/dist/{chunk-VZUV2FCP.cjs → chunk-V5PJQ4C2.cjs} +6 -6
- package/dist/{chunk-7OJMOG34.cjs → chunk-WMXNSSJZ.cjs} +48 -48
- package/dist/{chunk-I7LRZR4Q.cjs → chunk-XVFESSEB.cjs} +7 -7
- package/dist/{cloud-tenants-LXKEG5N4.cjs → cloud-tenants-HUFCDOSC.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +18 -18
- package/dist/components/chat/embeddable-chat.js +120 -98
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/board/board-column.d.ts +1 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +72 -72
- package/dist/components/index.cjs +40 -40
- package/dist/components/media-carousel.d.ts +1 -1
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/app-header.d.ts +1 -1
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/navigation/mobile-burger-menu.d.ts +1 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/markdown/engine.d.ts +1 -1
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +16 -4
- package/dist/{devices-PYJRYIQN.cjs → devices-KRWVEY76.cjs} +7 -7
- package/dist/{embeddable-chat-7MSM62UC.cjs → embeddable-chat-AZEPJAPN.cjs} +178 -156
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-R4H2ZDX2.cjs → knowledge-Z3FM7U3W.cjs} +7 -7
- package/dist/{logs-YWL6NK24.cjs → logs-CNJYF5CO.cjs} +14 -14
- package/dist/{policies-3COFYSKB.cjs → policies-U32LUDZ4.cjs} +10 -10
- package/dist/{remote-session-IEOWFBF7.cjs → remote-session-ST6JEZML.cjs} +5 -5
- package/dist/{scripts-72EJDICT.cjs → scripts-2Y6ISOOK.cjs} +13 -13
- package/dist/{software-update-PPUVCLPO.cjs → software-update-EEN7PQR3.cjs} +10 -10
- package/package.json +3 -3
- package/src/components/chat/embeddable-chat.tsx +21 -4
- package/src/components/ui/modal-v2.tsx +22 -4
|
@@ -10,7 +10,7 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkGMIXTXAOcjs = require('./chunk-GMIXTXAO.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -2207,7 +2207,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2207
2207
|
),
|
|
2208
2208
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 shrink-0" }) : (
|
|
2209
2209
|
// The time is in the viewer's zone, which a server render cannot know.
|
|
2210
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkGMIXTXAOcjs.formatTime.call(void 0, sentAt) })
|
|
2211
2211
|
)
|
|
2212
2212
|
] }),
|
|
2213
2213
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
@@ -2273,7 +2273,7 @@ function RemoteDesktopChatPanel({
|
|
|
2273
2273
|
message.id
|
|
2274
2274
|
)) }) }),
|
|
2275
2275
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2276
|
-
|
|
2276
|
+
_chunkGMIXTXAOcjs.ChatInput,
|
|
2277
2277
|
{
|
|
2278
2278
|
placeholder: "Enter your Message...",
|
|
2279
2279
|
onSend,
|
|
@@ -2616,9 +2616,9 @@ function KeepRecordingModal({
|
|
|
2616
2616
|
if (!canKeep || isPending) return;
|
|
2617
2617
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2618
2618
|
};
|
|
2619
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2619
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2620
2620
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2622
2622
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2623
2623
|
KeepNotice,
|
|
2624
2624
|
{
|
|
@@ -2656,7 +2656,7 @@ function KeepRecordingModal({
|
|
|
2656
2656
|
}
|
|
2657
2657
|
)
|
|
2658
2658
|
] }),
|
|
2659
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2659
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
2660
2660
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2661
2661
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2662
2662
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2686,9 +2686,9 @@ function ReleaseKeepingModal({
|
|
|
2686
2686
|
isPending = false,
|
|
2687
2687
|
onConfirm
|
|
2688
2688
|
}) {
|
|
2689
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2689
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2690
2690
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2691
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2691
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2692
2692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] break-words text-ods-text-primary text-h4", children: [
|
|
2693
2693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2694
2694
|
"Kept by ",
|
|
@@ -2705,7 +2705,7 @@ function ReleaseKeepingModal({
|
|
|
2705
2705
|
] })
|
|
2706
2706
|
] }),
|
|
2707
2707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILWSAV64cjs.HourglassIcon, { size: 24, color: "currentColor" }), title: `It will expire on ${expiresOn}`, children: dueOn ? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.` : "Nothing is deleted now." }),
|
|
2708
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2708
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
2709
2709
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2710
2710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2711
2711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
@@ -2747,9 +2747,9 @@ function AssignTicketModal({
|
|
|
2747
2747
|
if (ticketIds.length === 0 || isPending) return;
|
|
2748
2748
|
onConfirm(ticketIds);
|
|
2749
2749
|
};
|
|
2750
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2750
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2751
2751
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2753
2753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2754
2754
|
Autocomplete,
|
|
2755
2755
|
{
|
|
@@ -2768,7 +2768,7 @@ function AssignTicketModal({
|
|
|
2768
2768
|
disabled: isPending
|
|
2769
2769
|
}
|
|
2770
2770
|
),
|
|
2771
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2771
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
2772
2772
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2773
2773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2774
2774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2787,11 +2787,11 @@ function AssignTicketModal({
|
|
|
2787
2787
|
] });
|
|
2788
2788
|
}
|
|
2789
2789
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2790
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2790
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2791
2791
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2793
2793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This Ticket will no longer be linked to this remote session. The ticket itself stays as it is, and you can assign it again anytime." }),
|
|
2794
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2794
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
2795
2795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2796
2796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2797
2797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkL33AEGH4cjs = require('./chunk-L33AEGH4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKVPHCBQVcjs = require('./chunk-KVPHCBQV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkYXZOP726cjs = require('./chunk-YXZOP726.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkU5R4MY4Fcjs = require('./chunk-U5R4MY4F.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ var _chunkIZKEWQJNcjs = require('./chunk-IZKEWQJN.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkMYXC6PEGcjs = require('./chunk-MYXC6PEG.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -40,20 +40,20 @@ var _chunkCBKXU77Hcjs = require('./chunk-CBKXU77H.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkSTYH4ISWcjs = require('./chunk-STYH4ISW.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkWMXNSSJZcjs = require('./chunk-WMXNSSJZ.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkBE4OUWTAcjs = require('./chunk-BE4OUWTA.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkGMIXTXAOcjs = require('./chunk-GMIXTXAO.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
@@ -153,7 +153,7 @@ var TicketActionFailure = class extends Error {
|
|
|
153
153
|
function useTicketActions(options) {
|
|
154
154
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
155
155
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
156
|
-
const ticketLive =
|
|
156
|
+
const ticketLive = _chunkU5R4MY4Fcjs.useOptionalTicketLive.call(void 0, );
|
|
157
157
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _ => _.notifyTicketCreated]);
|
|
158
158
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
159
159
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -646,7 +646,7 @@ var COUNTER_VISIBLE_AT = Math.floor(TICKET_TEXT_MAX_CHARS * 0.8);
|
|
|
646
646
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
647
647
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
648
648
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
649
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
649
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkWMXNSSJZcjs.useChatAttachments.call(void 0, );
|
|
650
650
|
const trimmedSubject = subject.trim();
|
|
651
651
|
const trimmedContent = content.trim();
|
|
652
652
|
const overCap = content.length > TICKET_TEXT_MAX_CHARS;
|
|
@@ -666,7 +666,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
666
666
|
clear();
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
669
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkSTYH4ISWcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
670
670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
671
671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
672
672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Can't find what you're looking for? Submit a support ticket below \u2014 we'll follow up shortly." }),
|
|
@@ -691,7 +691,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
691
691
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
692
692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { htmlFor: "ticket-content", className: "mb-1", children: "Your Message" }),
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
694
|
-
|
|
694
|
+
_chunkMYXC6PEGcjs.Textarea,
|
|
695
695
|
{
|
|
696
696
|
id: "ticket-content",
|
|
697
697
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -709,7 +709,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
709
709
|
] })
|
|
710
710
|
] }),
|
|
711
711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
712
|
-
|
|
712
|
+
_chunkWMXNSSJZcjs.ChatAttachmentChipStrip,
|
|
713
713
|
{
|
|
714
714
|
attachments,
|
|
715
715
|
onRemove: removeAttachment,
|
|
@@ -718,7 +718,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
718
718
|
),
|
|
719
719
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
720
720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
721
|
-
|
|
721
|
+
_chunkWMXNSSJZcjs.ChatAttachmentAddButton,
|
|
722
722
|
{
|
|
723
723
|
attachmentsEnabled: !supportSystemDown,
|
|
724
724
|
attachmentsCount: attachments.length,
|
|
@@ -748,7 +748,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
748
748
|
|
|
749
749
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
750
750
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
751
|
-
const identity =
|
|
751
|
+
const identity = _chunkWMXNSSJZcjs.useChatIdentity.call(void 0, );
|
|
752
752
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
753
753
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
754
754
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -821,7 +821,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
821
821
|
dateClosed: clickup.date_closed,
|
|
822
822
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
823
823
|
};
|
|
824
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkODDUGLYFcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkODDUGLYFcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVPHCBQVcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -836,7 +836,7 @@ function TicketReplyComposer({
|
|
|
836
836
|
}) {
|
|
837
837
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
838
838
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
839
|
-
const attachments =
|
|
839
|
+
const attachments = _chunkWMXNSSJZcjs.useChatAttachments.call(void 0, );
|
|
840
840
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
841
841
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
842
842
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -857,7 +857,7 @@ function TicketReplyComposer({
|
|
|
857
857
|
const disabled = busy || supportSystemDown;
|
|
858
858
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkWMXNSSJZcjs.ChatAttachmentChipStrip,
|
|
861
861
|
{
|
|
862
862
|
attachments: attachments.attachments,
|
|
863
863
|
onRemove: attachments.removeAttachment,
|
|
@@ -866,7 +866,7 @@ function TicketReplyComposer({
|
|
|
866
866
|
}
|
|
867
867
|
),
|
|
868
868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
869
|
-
|
|
869
|
+
_chunkGMIXTXAOcjs.ChatInput,
|
|
870
870
|
{
|
|
871
871
|
fullWidth: true,
|
|
872
872
|
autoFocus: true,
|
|
@@ -880,7 +880,7 @@ function TicketReplyComposer({
|
|
|
880
880
|
),
|
|
881
881
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
882
882
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
-
|
|
883
|
+
_chunkWMXNSSJZcjs.ChatAttachmentAddButton,
|
|
884
884
|
{
|
|
885
885
|
attachmentsEnabled: true,
|
|
886
886
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -903,13 +903,13 @@ function TicketReplyComposer({
|
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
] }),
|
|
906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYXC6PEGcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMYXC6PEGcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
907
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMYXC6PEGcjs.AlertDialogHeader, { children: [
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYXC6PEGcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYXC6PEGcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
910
910
|
] }),
|
|
911
911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
912
|
-
|
|
912
|
+
_chunkMYXC6PEGcjs.Textarea,
|
|
913
913
|
{
|
|
914
914
|
value: resolution,
|
|
915
915
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -919,9 +919,9 @@ function TicketReplyComposer({
|
|
|
919
919
|
className: "mt-2"
|
|
920
920
|
}
|
|
921
921
|
),
|
|
922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMYXC6PEGcjs.AlertDialogFooter, { children: [
|
|
923
923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
924
|
-
|
|
924
|
+
_chunkMYXC6PEGcjs.AlertDialogCancel,
|
|
925
925
|
{
|
|
926
926
|
disabled: busy,
|
|
927
927
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -929,7 +929,7 @@ function TicketReplyComposer({
|
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
932
|
-
|
|
932
|
+
_chunkMYXC6PEGcjs.AlertDialogAction,
|
|
933
933
|
{
|
|
934
934
|
onClick: () => void confirmClose(),
|
|
935
935
|
disabled: busy,
|
|
@@ -991,10 +991,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
991
991
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
992
992
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
993
993
|
function TicketTimelinePanel({ ticket }) {
|
|
994
|
-
const identity =
|
|
994
|
+
const identity = _chunkWMXNSSJZcjs.useChatIdentity.call(void 0, );
|
|
995
995
|
const externalId = isOptimistic(ticket) ? null : ticket.external_id;
|
|
996
996
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
997
|
-
const live =
|
|
997
|
+
const live = _chunkU5R4MY4Fcjs.useOptionalTicketLive.call(void 0, );
|
|
998
998
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
999
999
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
1000
1000
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -1033,7 +1033,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1033
1033
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1034
1034
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1035
1035
|
if (isLoading) {
|
|
1036
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1036
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTYH4ISWcjs.ChatMessageRow, { loading: true, displayName: "", body: "", "data-loading-item": true }) }) }) });
|
|
1037
1037
|
}
|
|
1038
1038
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1039
1039
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1052,7 +1052,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1052
1052
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1053
1053
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1054
1054
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1055
|
-
|
|
1055
|
+
_chunkSTYH4ISWcjs.ChatMessageRow,
|
|
1056
1056
|
{
|
|
1057
1057
|
"data-loading-item": true,
|
|
1058
1058
|
displayName: customerName,
|
|
@@ -1082,14 +1082,14 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1084
1084
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1085
|
-
|
|
1085
|
+
_chunkSTYH4ISWcjs.ChatMessageRow,
|
|
1086
1086
|
{
|
|
1087
1087
|
"data-loading-item": true,
|
|
1088
1088
|
displayName: author,
|
|
1089
1089
|
avatarUrl: avatarSrc,
|
|
1090
1090
|
timeLabel: eng.createdAt ? _chunkBE4OUWTAcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1091
1091
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1092
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1092
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYXC6PEGcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1093
1093
|
},
|
|
1094
1094
|
eng.id
|
|
1095
1095
|
);
|
|
@@ -1194,7 +1194,7 @@ var TICKET_ROW_FRAME_CLASS = "border-b border-ods-border last:border-b-0";
|
|
|
1194
1194
|
var TICKET_ROW_OUTER_CLASS = "scroll-mt-24";
|
|
1195
1195
|
function TicketRow(props) {
|
|
1196
1196
|
if (_chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
1197
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1197
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTYH4ISWcjs.ChatTicketItem, { loading: true }) }) });
|
|
1198
1198
|
}
|
|
1199
1199
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketRowLoaded, { ...props });
|
|
1200
1200
|
}
|
|
@@ -1249,7 +1249,7 @@ function TicketRowLoaded({
|
|
|
1249
1249
|
};
|
|
1250
1250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: TICKET_ROW_OUTER_CLASS, ..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, markers), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: TICKET_ROW_FRAME_CLASS, children: [
|
|
1251
1251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1252
|
-
|
|
1252
|
+
_chunkSTYH4ISWcjs.ChatTicketItem,
|
|
1253
1253
|
{
|
|
1254
1254
|
ticket: tileData,
|
|
1255
1255
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1288,7 +1288,7 @@ function TicketCenter({ toast: toast2 = _chunkCBKXU77Hcjs.toast } = {}) {
|
|
|
1288
1288
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterGate, { toast: toast2 });
|
|
1289
1289
|
}
|
|
1290
1290
|
function TicketCenterGate({ toast: toast2 }) {
|
|
1291
|
-
const identity =
|
|
1291
|
+
const identity = _chunkWMXNSSJZcjs.useChatIdentity.call(void 0, );
|
|
1292
1292
|
if (identity.isLoading) {
|
|
1293
1293
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterPending, {});
|
|
1294
1294
|
}
|
|
@@ -1343,7 +1343,7 @@ function TicketCenterAuthed({
|
|
|
1343
1343
|
const toggleRow = _react.useCallback.call(void 0, (id) => {
|
|
1344
1344
|
setExpandedTicketId((prev) => prev === id ? null : id);
|
|
1345
1345
|
}, []);
|
|
1346
|
-
const syncInPage =
|
|
1346
|
+
const syncInPage = _chunkKVPHCBQVcjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1347
1347
|
const merged = [...optimisticTickets, ...tickets];
|
|
1348
1348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1349
1349
|
TicketCenterView,
|
|
@@ -1360,7 +1360,7 @@ function TicketCenterAuthed({
|
|
|
1360
1360
|
TicketRow,
|
|
1361
1361
|
{
|
|
1362
1362
|
"data-loading-item": true,
|
|
1363
|
-
id:
|
|
1363
|
+
id: _chunkSTYH4ISWcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1364
1364
|
ticket,
|
|
1365
1365
|
expanded: expandedTicketId === ticket.id,
|
|
1366
1366
|
onToggle: toggleRow,
|
|
@@ -1379,8 +1379,8 @@ function TicketCenterAuthed({
|
|
|
1379
1379
|
function TicketCenterPending({
|
|
1380
1380
|
region = true
|
|
1381
1381
|
} = {}) {
|
|
1382
|
-
const syncInPage =
|
|
1383
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1382
|
+
const syncInPage = _chunkKVPHCBQVcjs.usePageDataSync.call(void 0, null, true);
|
|
1383
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWMXNSSJZcjs.LoadingFallback, { label: "Loading tickets", status: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1384
1384
|
TicketCenterView,
|
|
1385
1385
|
{
|
|
1386
1386
|
tickets: [],
|
|
@@ -1442,7 +1442,7 @@ function TicketListHeader({
|
|
|
1442
1442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
1443
1443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h5", children: "Your Current Tickets" }),
|
|
1444
1444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1445
|
-
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1445
|
+
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYXC6PEGcjs.DataSyncLine, { sync, loading: syncLoading, inline: true }),
|
|
1446
1446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { inert: !onRefresh || void 0, "aria-hidden": !onRefresh || void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1447
1447
|
_chunkFLS6DZENcjs.Button,
|
|
1448
1448
|
{
|
|
@@ -1477,7 +1477,7 @@ function HelpCenterCard(props) {
|
|
|
1477
1477
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCardLoaded, { ...props });
|
|
1478
1478
|
}
|
|
1479
1479
|
function HelpCenterCardSkeleton({ id, ...props }) {
|
|
1480
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1480
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVPHCBQVcjs.DevCardRowContent, { loading: true, title: "", subtitle: "", description: "", rightBadges: null }) }) });
|
|
1481
1481
|
}
|
|
1482
1482
|
function HelpCenterCardLoaded({
|
|
1483
1483
|
ticket,
|
|
@@ -1516,7 +1516,7 @@ function HelpCenterCardLoaded({
|
|
|
1516
1516
|
});
|
|
1517
1517
|
return () => cancelAnimationFrame(raf);
|
|
1518
1518
|
}, [isExpanded]);
|
|
1519
|
-
const live =
|
|
1519
|
+
const live = _chunkU5R4MY4Fcjs.useOptionalTicketLive.call(void 0, );
|
|
1520
1520
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1521
1521
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1522
1522
|
unreadCount > 0 && // Only rows with unread replies carry it; the row's loading form draws the status badge alone.
|
|
@@ -1571,7 +1571,7 @@ function HelpCenterCardLoaded({
|
|
|
1571
1571
|
"aria-expanded": isExpandable ? isExpanded : void 0,
|
|
1572
1572
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1573
1573
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "block", HELP_CENTER_SUMMARY_PAD_CLASS), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1574
|
-
|
|
1574
|
+
_chunkKVPHCBQVcjs.DevCardRowContent,
|
|
1575
1575
|
{
|
|
1576
1576
|
title,
|
|
1577
1577
|
subtitle,
|
|
@@ -1652,7 +1652,7 @@ function HelpCenterCreateFormBody({
|
|
|
1652
1652
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1653
1653
|
] });
|
|
1654
1654
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
|
-
|
|
1655
|
+
_chunkL33AEGH4cjs.ContactForm,
|
|
1656
1656
|
{
|
|
1657
1657
|
rescue: null,
|
|
1658
1658
|
title: "Open a new ticket",
|
|
@@ -1692,17 +1692,17 @@ function HelpCenterCreateFormBody({
|
|
|
1692
1692
|
// src/components/tickets/help-center-list.tsx
|
|
1693
1693
|
|
|
1694
1694
|
function HelpCenterList({ toast: toast2 = _chunkCBKXU77Hcjs.toast, backButton, title, shell } = {}) {
|
|
1695
|
-
const identity =
|
|
1695
|
+
const identity = _chunkWMXNSSJZcjs.useChatIdentity.call(void 0, );
|
|
1696
1696
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
1697
1697
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1698
1698
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1699
|
-
const search = searchParams.get(
|
|
1699
|
+
const search = searchParams.get(_chunkSTYH4ISWcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1700
1700
|
const status = searchParams.get("status") || "all";
|
|
1701
|
-
const ticketParam = searchParams.get(
|
|
1701
|
+
const ticketParam = searchParams.get(_chunkSTYH4ISWcjs.TICKET_OPEN_PARAM) || "";
|
|
1702
1702
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1703
1703
|
if (identity.isLoading) {
|
|
1704
1704
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1705
|
-
|
|
1705
|
+
_chunkKVPHCBQVcjs.DevSectionPage,
|
|
1706
1706
|
{
|
|
1707
1707
|
sectionKey: "tickets",
|
|
1708
1708
|
backButton,
|
|
@@ -1714,7 +1714,7 @@ function HelpCenterList({ toast: toast2 = _chunkCBKXU77Hcjs.toast, backButton, t
|
|
|
1714
1714
|
);
|
|
1715
1715
|
}
|
|
1716
1716
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1717
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1717
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVPHCBQVcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1718
1718
|
_chunkYXZOP726cjs.EmptyState,
|
|
1719
1719
|
{
|
|
1720
1720
|
type: "generic",
|
|
@@ -1766,8 +1766,8 @@ function HelpCenterListAuthed({
|
|
|
1766
1766
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1767
1767
|
(externalId) => {
|
|
1768
1768
|
const params = new URLSearchParams(searchParams.toString());
|
|
1769
|
-
if (externalId) params.set(
|
|
1770
|
-
else params.delete(
|
|
1769
|
+
if (externalId) params.set(_chunkSTYH4ISWcjs.TICKET_OPEN_PARAM, externalId);
|
|
1770
|
+
else params.delete(_chunkSTYH4ISWcjs.TICKET_OPEN_PARAM);
|
|
1771
1771
|
const qs = params.toString();
|
|
1772
1772
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1773
1773
|
},
|
|
@@ -1845,7 +1845,7 @@ function HelpCenterListAuthed({
|
|
|
1845
1845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1846
1846
|
] }),
|
|
1847
1847
|
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading || !hasResults && isFetching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterRowsFrame, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCard, { ticket: null, "data-loading-item": true }) }) }) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1848
|
-
|
|
1848
|
+
_chunkKVPHCBQVcjs.ListEmptyState,
|
|
1849
1849
|
{
|
|
1850
1850
|
isFiltered: hasActiveFilters,
|
|
1851
1851
|
filtered: {
|
|
@@ -1868,7 +1868,7 @@ function HelpCenterListAuthed({
|
|
|
1868
1868
|
HelpCenterCard,
|
|
1869
1869
|
{
|
|
1870
1870
|
"data-loading-item": true,
|
|
1871
|
-
id:
|
|
1871
|
+
id: _chunkSTYH4ISWcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1872
1872
|
ticket,
|
|
1873
1873
|
expanded: expandedTicketId === ticket.id,
|
|
1874
1874
|
onToggle: toggleRow,
|
|
@@ -1885,7 +1885,7 @@ function HelpCenterListAuthed({
|
|
|
1885
1885
|
)) }) }),
|
|
1886
1886
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXZOP726cjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1887
1887
|
] });
|
|
1888
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1888
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVPHCBQVcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1889
1889
|
}
|
|
1890
1890
|
function HelpCenterRowsFrame({ children }) {
|
|
1891
1891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMYXC6PEGcjs = require('./chunk-MYXC6PEG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkMYXC6PEGcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkMYXC6PEGcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|