@flamingo-stack/openframe-frontend-core 0.0.639-snapshot.20260915114830 → 0.0.639
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-554L55DK.cjs → chunk-55A6UDFX.cjs} +80 -80
- package/dist/{chunk-554L55DK.cjs.map → chunk-55A6UDFX.cjs.map} +1 -1
- package/dist/{chunk-C3GXRBJD.js → chunk-5LIDR7HL.js} +2 -2
- package/dist/{chunk-Z23ZRP6A.js → chunk-757P3SWA.js} +3 -3
- package/dist/{chunk-QHRLJLWE.cjs → chunk-7N2BT6R4.cjs} +25 -25
- package/dist/{chunk-QHRLJLWE.cjs.map → chunk-7N2BT6R4.cjs.map} +1 -1
- package/dist/{chunk-ECNZCOJD.js → chunk-7TSKDO2N.js} +8 -8
- package/dist/{chunk-QGY5QUYO.js → chunk-AFJMR4SJ.js} +6 -6
- package/dist/{chunk-D4TYGJ5U.js → chunk-B2VVPSXS.js} +5 -5
- package/dist/{chunk-LMEIB7LK.js → chunk-B7FT6Q4P.js} +6 -6
- package/dist/{chunk-SDDTMSNK.cjs → chunk-BPFE222Q.cjs} +10 -10
- package/dist/{chunk-SDDTMSNK.cjs.map → chunk-BPFE222Q.cjs.map} +1 -1
- package/dist/{chunk-LQ7DJCA2.cjs → chunk-D3X2PABP.cjs} +11 -11
- package/dist/{chunk-LQ7DJCA2.cjs.map → chunk-D3X2PABP.cjs.map} +1 -1
- package/dist/{chunk-2TSVC3WA.cjs → chunk-FS3SPEOM.cjs} +13 -13
- package/dist/{chunk-2TSVC3WA.cjs.map → chunk-FS3SPEOM.cjs.map} +1 -1
- package/dist/{chunk-YRTMAXLE.cjs → chunk-GSQM4PDR.cjs} +2 -73
- package/dist/{chunk-YRTMAXLE.cjs.map → chunk-GSQM4PDR.cjs.map} +1 -1
- package/dist/{chunk-3TDQW73P.js → chunk-HLNQEI37.js} +7 -7
- package/dist/{chunk-HYBPTBX7.js → chunk-HQ7Z42JB.js} +3 -3
- package/dist/{chunk-5LMLEKLO.cjs → chunk-HTAYXKO3.cjs} +50 -50
- package/dist/{chunk-5LMLEKLO.cjs.map → chunk-HTAYXKO3.cjs.map} +1 -1
- package/dist/{chunk-YQPPHBGE.js → chunk-IMDG23LW.js} +3820 -3891
- package/dist/chunk-IMDG23LW.js.map +1 -0
- package/dist/{chunk-PRJSLQP7.js → chunk-IOHZ7UFW.js} +3 -3
- package/dist/{chunk-GNKM6R55.cjs → chunk-JJUV7Z4L.cjs} +15 -15
- package/dist/{chunk-GNKM6R55.cjs.map → chunk-JJUV7Z4L.cjs.map} +1 -1
- package/dist/{chunk-NADSM5NR.js → chunk-K3KSWFL3.js} +2 -2
- package/dist/{chunk-AIUMGF4J.js → chunk-KMYM7GR4.js} +6 -6
- package/dist/{chunk-KN3EJP4D.js → chunk-MMPH67SQ.js} +4 -4
- package/dist/{chunk-CRL3LR6Z.js → chunk-MN52OLWN.js} +7 -7
- package/dist/{chunk-SB4ZIYQF.js → chunk-NE2PRU2L.js} +5 -5
- package/dist/{chunk-GLEU3DKT.cjs → chunk-NG4HZLBM.cjs} +49 -49
- package/dist/{chunk-GLEU3DKT.cjs.map → chunk-NG4HZLBM.cjs.map} +1 -1
- package/dist/{chunk-P3GL3PQN.js → chunk-NLFN734Q.js} +2 -2
- package/dist/{chunk-GKB5GAUK.cjs → chunk-PMEFDI2N.cjs} +24 -24
- package/dist/{chunk-GKB5GAUK.cjs.map → chunk-PMEFDI2N.cjs.map} +1 -1
- package/dist/{chunk-RDCHCMEO.cjs → chunk-RCKFQEOS.cjs} +5 -5
- package/dist/{chunk-RDCHCMEO.cjs.map → chunk-RCKFQEOS.cjs.map} +1 -1
- package/dist/{chunk-UEQ7ZS62.cjs → chunk-RLGALJHG.cjs} +19 -19
- package/dist/{chunk-UEQ7ZS62.cjs.map → chunk-RLGALJHG.cjs.map} +1 -1
- package/dist/{chunk-5DQEPZTV.cjs → chunk-ROW65NXE.cjs} +5 -5
- package/dist/{chunk-5DQEPZTV.cjs.map → chunk-ROW65NXE.cjs.map} +1 -1
- package/dist/{chunk-X64VTFIS.js → chunk-RPRKBGEW.js} +4 -4
- package/dist/{chunk-KEKN76JR.js → chunk-S6WBBSII.js} +3 -3
- package/dist/{chunk-CSHOX2IA.cjs → chunk-TJHNLK4R.cjs} +22 -22
- package/dist/{chunk-CSHOX2IA.cjs.map → chunk-TJHNLK4R.cjs.map} +1 -1
- package/dist/{chunk-WGY4VVB3.cjs → chunk-VNXFRBLF.cjs} +366 -366
- package/dist/{chunk-WGY4VVB3.cjs.map → chunk-VNXFRBLF.cjs.map} +1 -1
- package/dist/{chunk-BSWD3FAX.cjs → chunk-W3FQLTHC.cjs} +207 -207
- package/dist/{chunk-BSWD3FAX.cjs.map → chunk-W3FQLTHC.cjs.map} +1 -1
- package/dist/{chunk-O5SHSHGK.cjs → chunk-W6YWMZ7F.cjs} +3 -3
- package/dist/{chunk-O5SHSHGK.cjs.map → chunk-W6YWMZ7F.cjs.map} +1 -1
- package/dist/{chunk-VI7PRLUJ.cjs → chunk-YK4TOURB.cjs} +42 -42
- package/dist/{chunk-VI7PRLUJ.cjs.map → chunk-YK4TOURB.cjs.map} +1 -1
- package/dist/{chunk-TLLJIGTP.cjs → chunk-YXWGSDK4.cjs} +6 -6
- package/dist/{chunk-TLLJIGTP.cjs.map → chunk-YXWGSDK4.cjs.map} +1 -1
- package/dist/{chunk-NWE2XGSC.js → chunk-ZO4GGIHT.js} +4 -4
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +6 -6
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/contact/index.js +6 -6
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/docs/index.js +9 -9
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/embeds/index.js +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/faq/index.js +6 -6
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/help-center-pages/index.cjs +26 -26
- package/dist/components/help-center-pages/index.js +17 -17
- package/dist/components/icons-v2-generated/devices/index.d.ts +0 -1
- package/dist/components/icons-v2-generated/devices/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/index.cjs +2 -6
- package/dist/components/icons-v2-generated/index.cjs.map +1 -1
- package/dist/components/icons-v2-generated/index.js +1 -5
- package/dist/components/icons-v2-generated/security/index.d.ts +0 -1
- package/dist/components/icons-v2-generated/security/index.d.ts.map +1 -1
- package/dist/components/index.cjs +45 -45
- package/dist/components/index.js +16 -16
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/meeting-scheduler/index.js +5 -5
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/navigation/index.js +8 -8
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.js +8 -8
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/tickets/index.js +9 -9
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/index.js +5 -5
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +11 -11
- package/dist/index.js +9 -9
- package/package.json +1 -1
- package/src/components/icons-v2-generated/devices/index.ts +0 -1
- package/src/components/icons-v2-generated/security/index.ts +0 -1
- package/dist/chunk-YQPPHBGE.js.map +0 -1
- package/dist/components/icons-v2-generated/devices/monitor-shield-icon.d.ts +0 -8
- package/dist/components/icons-v2-generated/devices/monitor-shield-icon.d.ts.map +0 -1
- package/dist/components/icons-v2-generated/security/scan-xmark-icon.d.ts +0 -8
- package/dist/components/icons-v2-generated/security/scan-xmark-icon.d.ts.map +0 -1
- package/src/components/icons-v2/devices/monitor-shield.svg +0 -5
- package/src/components/icons-v2/security/scan-xmark.svg +0 -4
- package/src/components/icons-v2-generated/devices/monitor-shield-icon.tsx +0 -34
- package/src/components/icons-v2-generated/security/scan-xmark-icon.tsx +0 -30
- /package/dist/{chunk-C3GXRBJD.js.map → chunk-5LIDR7HL.js.map} +0 -0
- /package/dist/{chunk-Z23ZRP6A.js.map → chunk-757P3SWA.js.map} +0 -0
- /package/dist/{chunk-ECNZCOJD.js.map → chunk-7TSKDO2N.js.map} +0 -0
- /package/dist/{chunk-QGY5QUYO.js.map → chunk-AFJMR4SJ.js.map} +0 -0
- /package/dist/{chunk-D4TYGJ5U.js.map → chunk-B2VVPSXS.js.map} +0 -0
- /package/dist/{chunk-LMEIB7LK.js.map → chunk-B7FT6Q4P.js.map} +0 -0
- /package/dist/{chunk-3TDQW73P.js.map → chunk-HLNQEI37.js.map} +0 -0
- /package/dist/{chunk-HYBPTBX7.js.map → chunk-HQ7Z42JB.js.map} +0 -0
- /package/dist/{chunk-PRJSLQP7.js.map → chunk-IOHZ7UFW.js.map} +0 -0
- /package/dist/{chunk-NADSM5NR.js.map → chunk-K3KSWFL3.js.map} +0 -0
- /package/dist/{chunk-AIUMGF4J.js.map → chunk-KMYM7GR4.js.map} +0 -0
- /package/dist/{chunk-KN3EJP4D.js.map → chunk-MMPH67SQ.js.map} +0 -0
- /package/dist/{chunk-CRL3LR6Z.js.map → chunk-MN52OLWN.js.map} +0 -0
- /package/dist/{chunk-SB4ZIYQF.js.map → chunk-NE2PRU2L.js.map} +0 -0
- /package/dist/{chunk-P3GL3PQN.js.map → chunk-NLFN734Q.js.map} +0 -0
- /package/dist/{chunk-X64VTFIS.js.map → chunk-RPRKBGEW.js.map} +0 -0
- /package/dist/{chunk-KEKN76JR.js.map → chunk-S6WBBSII.js.map} +0 -0
- /package/dist/{chunk-NWE2XGSC.js.map → chunk-ZO4GGIHT.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunk7N2BT6R4cjs = require('./chunk-7N2BT6R4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBPFE222Qcjs = require('./chunk-BPFE222Q.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ var _chunk2MMEPNSXcjs = require('./chunk-2MMEPNSX.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkRCKFQEOScjs = require('./chunk-RCKFQEOS.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -35,11 +35,11 @@ var _chunkRDCHCMEOcjs = require('./chunk-RDCHCMEO.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkVNXFRBLFcjs = require('./chunk-VNXFRBLF.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkJJUV7Z4Lcjs = require('./chunk-JJUV7Z4L.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -59,11 +59,11 @@ var _chunkN6HNK25Acjs = require('./chunk-N6HNK25A.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkW3FQLTHCcjs = require('./chunk-W3FQLTHC.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkYXWGSDK4cjs = require('./chunk-YXWGSDK4.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -115,7 +115,7 @@ var TicketActionFailure = class extends Error {
|
|
|
115
115
|
function useTicketActions(options) {
|
|
116
116
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
117
117
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
118
|
-
const ticketLive =
|
|
118
|
+
const ticketLive = _chunkRCKFQEOScjs.useOptionalTicketLive.call(void 0, );
|
|
119
119
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
120
120
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
121
121
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -276,10 +276,10 @@ function useTicketActions(options) {
|
|
|
276
276
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
277
277
|
});
|
|
278
278
|
if (result.mirror_synced === false) {
|
|
279
|
-
toast2(
|
|
279
|
+
toast2(_chunkRCKFQEOScjs.TOAST_COPY.open_mirror_pending);
|
|
280
280
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
281
281
|
} else {
|
|
282
|
-
toast2(
|
|
282
|
+
toast2(_chunkRCKFQEOScjs.TOAST_COPY.open_success);
|
|
283
283
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
284
284
|
removeOptimistic(placeholderId);
|
|
285
285
|
}
|
|
@@ -365,7 +365,7 @@ function useTicketActions(options) {
|
|
|
365
365
|
...hasText ? { content_addendum: trimmed } : {},
|
|
366
366
|
...hasFiles ? { attachments } : {}
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
_chunkRCKFQEOScjs.TOAST_COPY.comment_success,
|
|
369
369
|
"send message"
|
|
370
370
|
);
|
|
371
371
|
if (ok) {
|
|
@@ -388,13 +388,13 @@ function useTicketActions(options) {
|
|
|
388
388
|
status: "CLOSED",
|
|
389
389
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
390
390
|
},
|
|
391
|
-
|
|
391
|
+
_chunkRCKFQEOScjs.TOAST_COPY.close_success,
|
|
392
392
|
"close ticket"
|
|
393
393
|
),
|
|
394
394
|
[updateTicket]
|
|
395
395
|
);
|
|
396
396
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
397
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
397
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkRCKFQEOScjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
398
398
|
[updateTicket]
|
|
399
399
|
);
|
|
400
400
|
return _react.useMemo.call(void 0,
|
|
@@ -619,14 +619,14 @@ function useTicketsList(filters) {
|
|
|
619
619
|
// src/components/tickets/ticket-open-form.tsx
|
|
620
620
|
|
|
621
621
|
var _jsxruntime = require('react/jsx-runtime');
|
|
622
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
622
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkRCKFQEOScjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
623
623
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
624
624
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
625
625
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
626
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
626
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkW3FQLTHCcjs.useChatAttachments.call(void 0, );
|
|
627
627
|
const trimmedSubject = subject.trim();
|
|
628
628
|
const trimmedContent = content.trim();
|
|
629
|
-
const overCap = content.length >
|
|
629
|
+
const overCap = content.length > _chunkRCKFQEOScjs.TICKET_TEXT_MAX_CHARS;
|
|
630
630
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
631
631
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
632
632
|
const handleSubmit = async (e) => {
|
|
@@ -643,7 +643,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
643
643
|
clear();
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
646
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkVNXFRBLFcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
647
647
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
648
648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
649
649
|
/* @__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." }),
|
|
@@ -668,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
668
668
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
669
669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
670
670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
671
|
-
|
|
671
|
+
_chunkVNXFRBLFcjs.Textarea,
|
|
672
672
|
{
|
|
673
673
|
id: "ticket-content",
|
|
674
674
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -682,11 +682,11 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
682
682
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
683
683
|
content.length,
|
|
684
684
|
"/",
|
|
685
|
-
|
|
685
|
+
_chunkRCKFQEOScjs.TICKET_TEXT_MAX_CHARS
|
|
686
686
|
] })
|
|
687
687
|
] }),
|
|
688
688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
689
|
-
|
|
689
|
+
_chunkW3FQLTHCcjs.ChatAttachmentChipStrip,
|
|
690
690
|
{
|
|
691
691
|
attachments,
|
|
692
692
|
onRemove: removeAttachment,
|
|
@@ -695,7 +695,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
695
695
|
),
|
|
696
696
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
697
697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
698
|
-
|
|
698
|
+
_chunkW3FQLTHCcjs.ChatAttachmentAddButton,
|
|
699
699
|
{
|
|
700
700
|
attachmentsEnabled: !supportSystemDown,
|
|
701
701
|
attachmentsCount: attachments.length,
|
|
@@ -725,7 +725,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
725
725
|
|
|
726
726
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
727
727
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
728
|
-
const identity =
|
|
728
|
+
const identity = _chunkW3FQLTHCcjs.useChatIdentity.call(void 0, );
|
|
729
729
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
730
730
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
731
731
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -798,7 +798,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
798
798
|
dateClosed: clickup.date_closed,
|
|
799
799
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
800
800
|
};
|
|
801
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -813,7 +813,7 @@ function TicketReplyComposer({
|
|
|
813
813
|
}) {
|
|
814
814
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
815
815
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
816
|
-
const attachments =
|
|
816
|
+
const attachments = _chunkW3FQLTHCcjs.useChatAttachments.call(void 0, );
|
|
817
817
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
818
818
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
819
819
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -834,7 +834,7 @@ function TicketReplyComposer({
|
|
|
834
834
|
const disabled = busy || supportSystemDown;
|
|
835
835
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
836
836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
837
|
-
|
|
837
|
+
_chunkW3FQLTHCcjs.ChatAttachmentChipStrip,
|
|
838
838
|
{
|
|
839
839
|
attachments: attachments.attachments,
|
|
840
840
|
onRemove: attachments.removeAttachment,
|
|
@@ -843,7 +843,7 @@ function TicketReplyComposer({
|
|
|
843
843
|
}
|
|
844
844
|
),
|
|
845
845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
846
|
-
|
|
846
|
+
_chunkW3FQLTHCcjs.ChatInput,
|
|
847
847
|
{
|
|
848
848
|
fullWidth: true,
|
|
849
849
|
autoFocus: true,
|
|
@@ -851,13 +851,13 @@ function TicketReplyComposer({
|
|
|
851
851
|
sending: busy || attachments.hasInflightUploads,
|
|
852
852
|
disabled: supportSystemDown,
|
|
853
853
|
allowEmptySend: hasReadyFiles,
|
|
854
|
-
maxLength:
|
|
854
|
+
maxLength: _chunkRCKFQEOScjs.TICKET_TEXT_MAX_CHARS,
|
|
855
855
|
onSend: handleSend
|
|
856
856
|
}
|
|
857
857
|
),
|
|
858
858
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
859
859
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkW3FQLTHCcjs.ChatAttachmentAddButton,
|
|
861
861
|
{
|
|
862
862
|
attachmentsEnabled: true,
|
|
863
863
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -880,25 +880,25 @@ function TicketReplyComposer({
|
|
|
880
880
|
}
|
|
881
881
|
)
|
|
882
882
|
] }),
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVNXFRBLFcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVNXFRBLFcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVNXFRBLFcjs.AlertDialogHeader, { children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVNXFRBLFcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVNXFRBLFcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
887
887
|
] }),
|
|
888
888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
889
|
-
|
|
889
|
+
_chunkVNXFRBLFcjs.Textarea,
|
|
890
890
|
{
|
|
891
891
|
value: resolution,
|
|
892
892
|
onChange: (e) => setResolution(e.target.value),
|
|
893
893
|
placeholder: "Resolution (optional)",
|
|
894
894
|
rows: 3,
|
|
895
|
-
maxLength:
|
|
895
|
+
maxLength: _chunkRCKFQEOScjs.TICKET_TEXT_MAX_CHARS,
|
|
896
896
|
className: "mt-2"
|
|
897
897
|
}
|
|
898
898
|
),
|
|
899
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVNXFRBLFcjs.AlertDialogFooter, { children: [
|
|
900
900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunkVNXFRBLFcjs.AlertDialogCancel,
|
|
902
902
|
{
|
|
903
903
|
disabled: busy,
|
|
904
904
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -906,7 +906,7 @@ function TicketReplyComposer({
|
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
|
|
909
|
+
_chunkVNXFRBLFcjs.AlertDialogAction,
|
|
910
910
|
{
|
|
911
911
|
onClick: () => void confirmClose(),
|
|
912
912
|
disabled: busy,
|
|
@@ -968,10 +968,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
968
968
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
969
969
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
970
970
|
function TicketTimelinePanel({ ticket }) {
|
|
971
|
-
const identity =
|
|
972
|
-
const externalId =
|
|
971
|
+
const identity = _chunkW3FQLTHCcjs.useChatIdentity.call(void 0, );
|
|
972
|
+
const externalId = _chunkRCKFQEOScjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
973
973
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
974
|
-
const live =
|
|
974
|
+
const live = _chunkRCKFQEOScjs.useOptionalTicketLive.call(void 0, );
|
|
975
975
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
976
976
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
977
977
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -995,7 +995,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
995
995
|
markReadDebounceRef.current = setTimeout(() => {
|
|
996
996
|
markReadDebounceRef.current = null;
|
|
997
997
|
void markRead(externalId);
|
|
998
|
-
},
|
|
998
|
+
}, _chunkRCKFQEOScjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
999
999
|
}, [engagementsCount, externalId, markRead]);
|
|
1000
1000
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
1001
1001
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1010,7 +1010,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1010
1010
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1011
1011
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1012
1012
|
if (isLoading) {
|
|
1013
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1013
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW3FQLTHCcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1014
1014
|
}
|
|
1015
1015
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1016
1016
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1029,7 +1029,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1029
1029
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1030
1030
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1031
1031
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1032
|
-
|
|
1032
|
+
_chunkW3FQLTHCcjs.ChatMessageRow,
|
|
1033
1033
|
{
|
|
1034
1034
|
displayName: customerName,
|
|
1035
1035
|
avatarUrl: customerAvatar,
|
|
@@ -1058,13 +1058,13 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1060
1060
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1061
|
-
|
|
1061
|
+
_chunkW3FQLTHCcjs.ChatMessageRow,
|
|
1062
1062
|
{
|
|
1063
1063
|
displayName: author,
|
|
1064
1064
|
avatarUrl: avatarSrc,
|
|
1065
|
-
timeLabel: eng.createdAt ?
|
|
1065
|
+
timeLabel: eng.createdAt ? _chunkW3FQLTHCcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1066
1066
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1067
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1067
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVNXFRBLFcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1068
1068
|
},
|
|
1069
1069
|
eng.id
|
|
1070
1070
|
);
|
|
@@ -1177,11 +1177,11 @@ function TicketRow({
|
|
|
1177
1177
|
onActionCollapsed,
|
|
1178
1178
|
id
|
|
1179
1179
|
}) {
|
|
1180
|
-
const optimistic =
|
|
1180
|
+
const optimistic = _chunkRCKFQEOScjs.isOptimistic.call(void 0, ticket);
|
|
1181
1181
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1182
1182
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1183
1183
|
onToggle(ticket.id);
|
|
1184
|
-
|
|
1184
|
+
_chunkYXWGSDK4cjs.scrollElementIntoView.call(void 0, rowRef.current, {
|
|
1185
1185
|
adjustTargetY: (raw) => {
|
|
1186
1186
|
if (!rowRef.current) return raw;
|
|
1187
1187
|
const expandedDrawer = document.querySelector('div[id^="ticket-drawer-"]');
|
|
@@ -1205,7 +1205,7 @@ function TicketRow({
|
|
|
1205
1205
|
// so the badge accurately reflects "Closed" with a checkmark.
|
|
1206
1206
|
statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
|
|
1207
1207
|
category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
|
|
1208
|
-
timeAgo: ticket.hubspot_updated_at ?
|
|
1208
|
+
timeAgo: ticket.hubspot_updated_at ? _chunkW3FQLTHCcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
|
|
1209
1209
|
// Linked-work chip: surfaced whenever the ticket has a linked
|
|
1210
1210
|
// ClickUp task. Uses the linked task's own status so the chip text
|
|
1211
1211
|
// reads "Working" / "Waiting on version release" / etc. — useful
|
|
@@ -1215,7 +1215,7 @@ function TicketRow({
|
|
|
1215
1215
|
};
|
|
1216
1216
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: "scroll-mt-24", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: "border-b border-ods-border last:border-b-0", children: [
|
|
1217
1217
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1218
|
-
|
|
1218
|
+
_chunkW3FQLTHCcjs.ChatTicketItem,
|
|
1219
1219
|
{
|
|
1220
1220
|
ticket: tileData,
|
|
1221
1221
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1247,8 +1247,8 @@ function TicketRow({
|
|
|
1247
1247
|
|
|
1248
1248
|
// src/components/tickets/ticket-center.tsx
|
|
1249
1249
|
|
|
1250
|
-
function TicketCenter({ toast: toast2 =
|
|
1251
|
-
const identity =
|
|
1250
|
+
function TicketCenter({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast } = {}) {
|
|
1251
|
+
const identity = _chunkW3FQLTHCcjs.useChatIdentity.call(void 0, );
|
|
1252
1252
|
if (identity.isLoading) {
|
|
1253
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1254
1254
|
}
|
|
@@ -1319,7 +1319,7 @@ function TicketCenterAuthed({
|
|
|
1319
1319
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1320
1320
|
lastUpdatedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
1321
1321
|
"Updated ",
|
|
1322
|
-
|
|
1322
|
+
_chunkW3FQLTHCcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
|
|
1323
1323
|
] }),
|
|
1324
1324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1325
1325
|
_chunkWRJVEB2Jcjs.Button,
|
|
@@ -1346,11 +1346,11 @@ function TicketCenterAuthed({
|
|
|
1346
1346
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1347
1347
|
TicketRow,
|
|
1348
1348
|
{
|
|
1349
|
-
id:
|
|
1349
|
+
id: _chunkVNXFRBLFcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1350
1350
|
ticket,
|
|
1351
1351
|
expanded: expandedTicketId === ticket.id,
|
|
1352
1352
|
onToggle: toggleRow,
|
|
1353
|
-
busy:
|
|
1353
|
+
busy: _chunkRCKFQEOScjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1354
1354
|
supportSystemDown,
|
|
1355
1355
|
onSendMessage: actions.sendMessage,
|
|
1356
1356
|
onClose: actions.closeTicket,
|
|
@@ -1404,10 +1404,10 @@ function HelpCenterCard({
|
|
|
1404
1404
|
onClearReplyError,
|
|
1405
1405
|
id
|
|
1406
1406
|
}) {
|
|
1407
|
-
const optimistic =
|
|
1407
|
+
const optimistic = _chunkRCKFQEOScjs.isOptimistic.call(void 0, ticket);
|
|
1408
1408
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1409
1409
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1410
|
-
const relativeUpdated = ticket.hubspot_updated_at ?
|
|
1410
|
+
const relativeUpdated = ticket.hubspot_updated_at ? _chunkW3FQLTHCcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
1411
1411
|
const title = (ticket.subject || "").trim() || "(untitled)";
|
|
1412
1412
|
const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
|
|
1413
1413
|
const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
|
|
@@ -1420,13 +1420,13 @@ function HelpCenterCard({
|
|
|
1420
1420
|
_react.useEffect.call(void 0, () => {
|
|
1421
1421
|
if (!isExpanded) return void 0;
|
|
1422
1422
|
const raf = requestAnimationFrame(() => {
|
|
1423
|
-
|
|
1424
|
-
headerOffset:
|
|
1423
|
+
_chunkYXWGSDK4cjs.scrollElementIntoView.call(void 0, rowRef.current, {
|
|
1424
|
+
headerOffset: _chunkYXWGSDK4cjs.STICKY_HEADER_OFFSET_PX
|
|
1425
1425
|
});
|
|
1426
1426
|
});
|
|
1427
1427
|
return () => cancelAnimationFrame(raf);
|
|
1428
1428
|
}, [isExpanded]);
|
|
1429
|
-
const live =
|
|
1429
|
+
const live = _chunkRCKFQEOScjs.useOptionalTicketLive.call(void 0, );
|
|
1430
1430
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1431
1431
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1432
1432
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1462,7 +1462,7 @@ function HelpCenterCard({
|
|
|
1462
1462
|
{
|
|
1463
1463
|
ref: rowRef,
|
|
1464
1464
|
id,
|
|
1465
|
-
style: { scrollMarginTop:
|
|
1465
|
+
style: { scrollMarginTop: _chunkYXWGSDK4cjs.STICKY_HEADER_OFFSET_PX },
|
|
1466
1466
|
className: `border-b border-ods-border last:border-b-0 ${optimistic ? "opacity-60" : ""}`,
|
|
1467
1467
|
"aria-busy": optimistic || void 0,
|
|
1468
1468
|
children: [
|
|
@@ -1476,7 +1476,7 @@ function HelpCenterCard({
|
|
|
1476
1476
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1477
1477
|
className: "w-full p-[12px] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent disabled:cursor-default md:p-[16px]",
|
|
1478
1478
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1479
|
-
|
|
1479
|
+
_chunkBPFE222Qcjs.DevCardRowContent,
|
|
1480
1480
|
{
|
|
1481
1481
|
title,
|
|
1482
1482
|
subtitle,
|
|
@@ -1577,7 +1577,7 @@ function HelpCenterCreateForm({
|
|
|
1577
1577
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1578
1578
|
] });
|
|
1579
1579
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1580
|
-
|
|
1580
|
+
_chunk7N2BT6R4cjs.ContactForm,
|
|
1581
1581
|
{
|
|
1582
1582
|
title: "Open a new ticket",
|
|
1583
1583
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1614,30 +1614,30 @@ function HelpCenterCreateForm({
|
|
|
1614
1614
|
|
|
1615
1615
|
// src/components/tickets/help-center-list.tsx
|
|
1616
1616
|
|
|
1617
|
-
function HelpCenterList({ toast: toast2 =
|
|
1618
|
-
const identity =
|
|
1617
|
+
function HelpCenterList({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast, backButton, title, shell } = {}) {
|
|
1618
|
+
const identity = _chunkW3FQLTHCcjs.useChatIdentity.call(void 0, );
|
|
1619
1619
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1620
1620
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1621
1621
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1622
|
-
const search = searchParams.get(
|
|
1622
|
+
const search = searchParams.get(_chunkVNXFRBLFcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1623
1623
|
const status = searchParams.get("status") || "all";
|
|
1624
|
-
const ticketParam = searchParams.get(
|
|
1624
|
+
const ticketParam = searchParams.get(_chunkVNXFRBLFcjs.TICKET_OPEN_PARAM) || "";
|
|
1625
1625
|
const page = _chunkCCWI3622cjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1626
1626
|
if (identity.isLoading) {
|
|
1627
1627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1628
|
-
|
|
1628
|
+
_chunkBPFE222Qcjs.DevSectionPage,
|
|
1629
1629
|
{
|
|
1630
1630
|
sectionKey: "tickets",
|
|
1631
1631
|
backButton,
|
|
1632
1632
|
title,
|
|
1633
1633
|
shell,
|
|
1634
1634
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1635
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1635
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DevCardRowSkeletonList, {})
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
1639
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1640
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1641
1641
|
_chunk2MMEPNSXcjs.EmptyState,
|
|
1642
1642
|
{
|
|
1643
1643
|
type: "generic",
|
|
@@ -1689,8 +1689,8 @@ function HelpCenterListAuthed({
|
|
|
1689
1689
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1690
1690
|
(externalId) => {
|
|
1691
1691
|
const params = new URLSearchParams(searchParams.toString());
|
|
1692
|
-
if (externalId) params.set(
|
|
1693
|
-
else params.delete(
|
|
1692
|
+
if (externalId) params.set(_chunkVNXFRBLFcjs.TICKET_OPEN_PARAM, externalId);
|
|
1693
|
+
else params.delete(_chunkVNXFRBLFcjs.TICKET_OPEN_PARAM);
|
|
1694
1694
|
const qs = params.toString();
|
|
1695
1695
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1696
1696
|
},
|
|
@@ -1747,7 +1747,7 @@ function HelpCenterListAuthed({
|
|
|
1747
1747
|
[tickets, ticketParam, setOpenTicket]
|
|
1748
1748
|
);
|
|
1749
1749
|
const merged = [...optimisticTickets, ...tickets];
|
|
1750
|
-
|
|
1750
|
+
_chunkJJUV7Z4Lcjs.useScrollToHash.call(void 0, tickets, { headerOffset: _chunkYXWGSDK4cjs.STICKY_HEADER_OFFSET_PX });
|
|
1751
1751
|
const hasActiveFilters = search !== "" || status !== "" && status !== "all";
|
|
1752
1752
|
const hasResults = merged.length > 0;
|
|
1753
1753
|
const form = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1767,15 +1767,15 @@ function HelpCenterListAuthed({
|
|
|
1767
1767
|
] }),
|
|
1768
1768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWRJVEB2Jcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1769
1769
|
] }),
|
|
1770
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1770
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1771
1771
|
// Bridge state — background refetch in flight and the
|
|
1772
1772
|
// optimistic placeholder was just removed by the mutation
|
|
1773
1773
|
// callback. Without this branch "No tickets yet" would flash
|
|
1774
1774
|
// for ~50ms between `removeOptimistic` and the server
|
|
1775
1775
|
// response landing.
|
|
1776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1777
1777
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
|
-
|
|
1778
|
+
_chunkBPFE222Qcjs.ListEmptyState,
|
|
1779
1779
|
{
|
|
1780
1780
|
isFiltered: hasActiveFilters,
|
|
1781
1781
|
filtered: {
|
|
@@ -1806,11 +1806,11 @@ function HelpCenterListAuthed({
|
|
|
1806
1806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1807
1807
|
HelpCenterCard,
|
|
1808
1808
|
{
|
|
1809
|
-
id:
|
|
1809
|
+
id: _chunkVNXFRBLFcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1810
1810
|
ticket,
|
|
1811
1811
|
expanded: expandedTicketId === ticket.id,
|
|
1812
1812
|
onToggle: toggleRow,
|
|
1813
|
-
busy:
|
|
1813
|
+
busy: _chunkRCKFQEOScjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1814
1814
|
supportSystemDown,
|
|
1815
1815
|
onSendMessage: actions.sendMessage,
|
|
1816
1816
|
onClose: actions.closeTicket,
|
|
@@ -1824,7 +1824,7 @@ function HelpCenterListAuthed({
|
|
|
1824
1824
|
) }),
|
|
1825
1825
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2MMEPNSXcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1826
1826
|
] });
|
|
1827
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1827
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBPFE222Qcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
|
|
@@ -1843,4 +1843,4 @@ function HelpCenterListAuthed({
|
|
|
1843
1843
|
|
|
1844
1844
|
|
|
1845
1845
|
exports.useTicketActions = useTicketActions; exports.mapTicketActionError = mapTicketActionError; exports.useTicketsList = useTicketsList; exports.TicketOpenForm = TicketOpenForm; exports.useTicketEngagements = useTicketEngagements; exports.TicketLinkedDeliveryCard = TicketLinkedDeliveryCard; exports.TicketReplyComposer = TicketReplyComposer; exports.TicketDetailDrawer = TicketDetailDrawer; exports.TicketRow = TicketRow; exports.TicketCenter = TicketCenter; exports.HelpCenterCard = HelpCenterCard; exports.HelpCenterCreateFormSkeleton = HelpCenterCreateFormSkeleton; exports.HelpCenterCreateForm = HelpCenterCreateForm; exports.HelpCenterList = HelpCenterList;
|
|
1846
|
-
//# sourceMappingURL=chunk-
|
|
1846
|
+
//# sourceMappingURL=chunk-55A6UDFX.cjs.map
|