@flamingo-stack/openframe-frontend-core 0.0.620 → 0.0.622-2162.6154.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/{chunk-KMWB52KV.cjs → chunk-2BJONQDE.cjs} +25 -25
- package/dist/{chunk-KMWB52KV.cjs.map → chunk-2BJONQDE.cjs.map} +1 -1
- package/dist/{chunk-GZFVTFMU.js → chunk-5QUBQ4WP.js} +3 -3
- package/dist/{chunk-GMBETTTE.js → chunk-5YVZQVSR.js} +5 -5
- package/dist/{chunk-5NYMTTUB.cjs → chunk-6TML2UIF.cjs} +66 -77
- package/dist/chunk-6TML2UIF.cjs.map +1 -0
- package/dist/{chunk-CKH4SLD5.js → chunk-7E24VV6D.js} +29 -40
- package/dist/chunk-7E24VV6D.js.map +1 -0
- package/dist/{chunk-ZLILFOPN.cjs → chunk-7EV2UHWQ.cjs} +167 -162
- package/dist/chunk-7EV2UHWQ.cjs.map +1 -0
- package/dist/{chunk-CSQZMK3O.cjs → chunk-7OYQ6RVB.cjs} +84 -86
- package/dist/chunk-7OYQ6RVB.cjs.map +1 -0
- package/dist/{chunk-UY4EFV3P.js → chunk-A7TZZQGS.js} +2 -2
- package/dist/{chunk-YKHVTESH.cjs → chunk-C6Y5FZMJ.cjs} +47 -12
- package/dist/chunk-C6Y5FZMJ.cjs.map +1 -0
- package/dist/{chunk-T7FTSJM2.js → chunk-CFZUWKQF.js} +5 -5
- package/dist/{chunk-G6LYVK64.js → chunk-CKL3UD5N.js} +2 -2
- package/dist/{chunk-RBV63HZO.cjs → chunk-CLPPOP5T.cjs} +4 -4
- package/dist/{chunk-RBV63HZO.cjs.map → chunk-CLPPOP5T.cjs.map} +1 -1
- package/dist/{chunk-XGVWMJQD.js → chunk-EQ7AOKFK.js} +21 -23
- package/dist/{chunk-XGVWMJQD.js.map → chunk-EQ7AOKFK.js.map} +1 -1
- package/dist/{chunk-DJVN7IW6.js → chunk-EYFFIJEY.js} +3 -3
- package/dist/{chunk-BR5PVFWG.js → chunk-F4GW2DPW.js} +3 -3
- package/dist/{chunk-VRN27OMD.cjs → chunk-IP4OYYDY.cjs} +1 -1
- package/dist/{chunk-VRN27OMD.cjs.map → chunk-IP4OYYDY.cjs.map} +1 -1
- package/dist/{chunk-5AB6QLIQ.js → chunk-IQNG52SU.js} +8 -3
- package/dist/chunk-IQNG52SU.js.map +1 -0
- package/dist/{chunk-PTANIWHA.cjs → chunk-IZ5GI3FP.cjs} +9 -9
- package/dist/{chunk-PTANIWHA.cjs.map → chunk-IZ5GI3FP.cjs.map} +1 -1
- package/dist/{chunk-RSGFPFSM.cjs → chunk-KDZLAUHJ.cjs} +22 -22
- package/dist/{chunk-RSGFPFSM.cjs.map → chunk-KDZLAUHJ.cjs.map} +1 -1
- package/dist/{chunk-T5ZKUSVJ.cjs → chunk-KTYYH3JV.cjs} +5 -5
- package/dist/{chunk-T5ZKUSVJ.cjs.map → chunk-KTYYH3JV.cjs.map} +1 -1
- package/dist/{chunk-LNF5W3QJ.js → chunk-L4FR7YIS.js} +2 -2
- package/dist/{chunk-ECOJUPXO.cjs → chunk-ME4C6DYA.cjs} +10 -10
- package/dist/{chunk-ECOJUPXO.cjs.map → chunk-ME4C6DYA.cjs.map} +1 -1
- package/dist/{chunk-4SH2L3HO.js → chunk-NFITQGUP.js} +3 -3
- package/dist/{chunk-FCMCCPQI.cjs → chunk-O3P2INXM.cjs} +15 -15
- package/dist/{chunk-FCMCCPQI.cjs.map → chunk-O3P2INXM.cjs.map} +1 -1
- package/dist/{chunk-POSO6GYC.js → chunk-OHJZD7QU.js} +3 -3
- package/dist/{chunk-4NKJRJU4.cjs → chunk-PDGVOZCD.cjs} +3 -3
- package/dist/{chunk-4NKJRJU4.cjs.map → chunk-PDGVOZCD.cjs.map} +1 -1
- package/dist/{chunk-IVFU4RFK.cjs → chunk-Q2NPL4FU.cjs} +22 -22
- package/dist/{chunk-IVFU4RFK.cjs.map → chunk-Q2NPL4FU.cjs.map} +1 -1
- package/dist/{chunk-Z5OZCZYH.cjs → chunk-QCZMCOAD.cjs} +33 -33
- package/dist/{chunk-Z5OZCZYH.cjs.map → chunk-QCZMCOAD.cjs.map} +1 -1
- package/dist/{chunk-ZBXPNBKB.js → chunk-QUL55PJP.js} +73 -38
- package/dist/chunk-QUL55PJP.js.map +1 -0
- package/dist/{chunk-SGAMQ4G7.cjs → chunk-RGVXFAWM.cjs} +3 -3
- package/dist/{chunk-SGAMQ4G7.cjs.map → chunk-RGVXFAWM.cjs.map} +1 -1
- package/dist/{chunk-7FPWMX26.js → chunk-VRUJPZ2C.js} +1 -1
- package/dist/{chunk-7FPWMX26.js.map → chunk-VRUJPZ2C.js.map} +1 -1
- package/dist/{chunk-KLAL4FTU.js → chunk-YEIX26DQ.js} +4 -4
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +40 -38
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +16 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/list-empty-state.d.ts +32 -0
- package/dist/components/list-empty-state.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/index.cjs +24 -24
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/shared/delivery/delivery-lists.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/tickets/help-center-list.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/__tests__/chat-card-label.test.tsx +1 -1
- package/src/components/__tests__/list-empty-state.test.tsx +106 -0
- package/src/components/chat/entity-cards/dispatch.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/list-empty-state.tsx +57 -0
- package/src/components/shared/delivery/delivery-lists.tsx +18 -25
- package/src/components/shared/product-release/product-releases-view.tsx +11 -18
- package/src/components/tickets/help-center-list.tsx +19 -22
- package/src/components/ui/accordion.tsx +4 -1
- package/dist/chunk-5AB6QLIQ.js.map +0 -1
- package/dist/chunk-5NYMTTUB.cjs.map +0 -1
- package/dist/chunk-CKH4SLD5.js.map +0 -1
- package/dist/chunk-CSQZMK3O.cjs.map +0 -1
- package/dist/chunk-YKHVTESH.cjs.map +0 -1
- package/dist/chunk-ZBXPNBKB.js.map +0 -1
- package/dist/chunk-ZLILFOPN.cjs.map +0 -1
- /package/dist/{chunk-GZFVTFMU.js.map → chunk-5QUBQ4WP.js.map} +0 -0
- /package/dist/{chunk-GMBETTTE.js.map → chunk-5YVZQVSR.js.map} +0 -0
- /package/dist/{chunk-UY4EFV3P.js.map → chunk-A7TZZQGS.js.map} +0 -0
- /package/dist/{chunk-T7FTSJM2.js.map → chunk-CFZUWKQF.js.map} +0 -0
- /package/dist/{chunk-G6LYVK64.js.map → chunk-CKL3UD5N.js.map} +0 -0
- /package/dist/{chunk-DJVN7IW6.js.map → chunk-EYFFIJEY.js.map} +0 -0
- /package/dist/{chunk-BR5PVFWG.js.map → chunk-F4GW2DPW.js.map} +0 -0
- /package/dist/{chunk-LNF5W3QJ.js.map → chunk-L4FR7YIS.js.map} +0 -0
- /package/dist/{chunk-4SH2L3HO.js.map → chunk-NFITQGUP.js.map} +0 -0
- /package/dist/{chunk-POSO6GYC.js.map → chunk-OHJZD7QU.js.map} +0 -0
- /package/dist/{chunk-KLAL4FTU.js.map → chunk-YEIX26DQ.js.map} +0 -0
|
@@ -1,13 +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 _chunkQ2NPL4FUcjs = require('./chunk-Q2NPL4FU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
var _chunkC6Y5FZMJcjs = require('./chunk-C6Y5FZMJ.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -18,7 +19,7 @@ var _chunkDV7IBKJIcjs = require('./chunk-DV7IBKJI.cjs');
|
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
var
|
|
22
|
+
var _chunkKTYYH3JVcjs = require('./chunk-KTYYH3JV.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
@@ -34,7 +35,7 @@ var _chunkT5ZKUSVJcjs = require('./chunk-T5ZKUSVJ.cjs');
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
var
|
|
38
|
+
var _chunk7EV2UHWQcjs = require('./chunk-7EV2UHWQ.cjs');
|
|
38
39
|
|
|
39
40
|
|
|
40
41
|
|
|
@@ -58,7 +59,7 @@ var _chunkN6HNK25Acjs = require('./chunk-N6HNK25A.cjs');
|
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
var
|
|
62
|
+
var _chunkIP4OYYDYcjs = require('./chunk-IP4OYYDY.cjs');
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
|
|
@@ -114,7 +115,7 @@ var TicketActionFailure = class extends Error {
|
|
|
114
115
|
function useTicketActions(options) {
|
|
115
116
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
116
117
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
117
|
-
const ticketLive =
|
|
118
|
+
const ticketLive = _chunkKTYYH3JVcjs.useOptionalTicketLive.call(void 0, );
|
|
118
119
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
119
120
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
120
121
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -275,10 +276,10 @@ function useTicketActions(options) {
|
|
|
275
276
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
276
277
|
});
|
|
277
278
|
if (result.mirror_synced === false) {
|
|
278
|
-
toast2(
|
|
279
|
+
toast2(_chunkKTYYH3JVcjs.TOAST_COPY.open_mirror_pending);
|
|
279
280
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
280
281
|
} else {
|
|
281
|
-
toast2(
|
|
282
|
+
toast2(_chunkKTYYH3JVcjs.TOAST_COPY.open_success);
|
|
282
283
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
283
284
|
removeOptimistic(placeholderId);
|
|
284
285
|
}
|
|
@@ -364,7 +365,7 @@ function useTicketActions(options) {
|
|
|
364
365
|
...hasText ? { content_addendum: trimmed } : {},
|
|
365
366
|
...hasFiles ? { attachments } : {}
|
|
366
367
|
},
|
|
367
|
-
|
|
368
|
+
_chunkKTYYH3JVcjs.TOAST_COPY.comment_success,
|
|
368
369
|
"send message"
|
|
369
370
|
);
|
|
370
371
|
if (ok) {
|
|
@@ -387,13 +388,13 @@ function useTicketActions(options) {
|
|
|
387
388
|
status: "CLOSED",
|
|
388
389
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
389
390
|
},
|
|
390
|
-
|
|
391
|
+
_chunkKTYYH3JVcjs.TOAST_COPY.close_success,
|
|
391
392
|
"close ticket"
|
|
392
393
|
),
|
|
393
394
|
[updateTicket]
|
|
394
395
|
);
|
|
395
396
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
396
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
397
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkKTYYH3JVcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
397
398
|
[updateTicket]
|
|
398
399
|
);
|
|
399
400
|
return _react.useMemo.call(void 0,
|
|
@@ -618,14 +619,14 @@ function useTicketsList(filters) {
|
|
|
618
619
|
// src/components/tickets/ticket-open-form.tsx
|
|
619
620
|
|
|
620
621
|
var _jsxruntime = require('react/jsx-runtime');
|
|
621
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
622
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkKTYYH3JVcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
622
623
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
623
624
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
624
625
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
625
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
626
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkIP4OYYDYcjs.useChatAttachments.call(void 0, );
|
|
626
627
|
const trimmedSubject = subject.trim();
|
|
627
628
|
const trimmedContent = content.trim();
|
|
628
|
-
const overCap = content.length >
|
|
629
|
+
const overCap = content.length > _chunkKTYYH3JVcjs.TICKET_TEXT_MAX_CHARS;
|
|
629
630
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
630
631
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
631
632
|
const handleSubmit = async (e) => {
|
|
@@ -642,7 +643,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
642
643
|
clear();
|
|
643
644
|
}
|
|
644
645
|
};
|
|
645
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.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, _chunkCS7MVDUFcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunk7EV2UHWQcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
646
647
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
647
648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
648
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." }),
|
|
@@ -667,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
667
668
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
668
669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
669
670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
670
|
-
|
|
671
|
+
_chunk7EV2UHWQcjs.Textarea,
|
|
671
672
|
{
|
|
672
673
|
id: "ticket-content",
|
|
673
674
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -681,11 +682,11 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
681
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: [
|
|
682
683
|
content.length,
|
|
683
684
|
"/",
|
|
684
|
-
|
|
685
|
+
_chunkKTYYH3JVcjs.TICKET_TEXT_MAX_CHARS
|
|
685
686
|
] })
|
|
686
687
|
] }),
|
|
687
688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
688
|
-
|
|
689
|
+
_chunkIP4OYYDYcjs.ChatAttachmentChipStrip,
|
|
689
690
|
{
|
|
690
691
|
attachments,
|
|
691
692
|
onRemove: removeAttachment,
|
|
@@ -694,7 +695,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
694
695
|
),
|
|
695
696
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
696
697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
697
|
-
|
|
698
|
+
_chunkIP4OYYDYcjs.ChatAttachmentAddButton,
|
|
698
699
|
{
|
|
699
700
|
attachmentsEnabled: !supportSystemDown,
|
|
700
701
|
attachmentsCount: attachments.length,
|
|
@@ -724,7 +725,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
724
725
|
|
|
725
726
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
726
727
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
727
|
-
const identity =
|
|
728
|
+
const identity = _chunkIP4OYYDYcjs.useChatIdentity.call(void 0, );
|
|
728
729
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
729
730
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
730
731
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -797,7 +798,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
797
798
|
dateClosed: clickup.date_closed,
|
|
798
799
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
799
800
|
};
|
|
800
|
-
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, _chunkC6Y5FZMJcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
801
802
|
}
|
|
802
803
|
|
|
803
804
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -812,7 +813,7 @@ function TicketReplyComposer({
|
|
|
812
813
|
}) {
|
|
813
814
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
814
815
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
815
|
-
const attachments =
|
|
816
|
+
const attachments = _chunkIP4OYYDYcjs.useChatAttachments.call(void 0, );
|
|
816
817
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
817
818
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
818
819
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -833,7 +834,7 @@ function TicketReplyComposer({
|
|
|
833
834
|
const disabled = busy || supportSystemDown;
|
|
834
835
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
835
836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
837
|
+
_chunkIP4OYYDYcjs.ChatAttachmentChipStrip,
|
|
837
838
|
{
|
|
838
839
|
attachments: attachments.attachments,
|
|
839
840
|
onRemove: attachments.removeAttachment,
|
|
@@ -842,7 +843,7 @@ function TicketReplyComposer({
|
|
|
842
843
|
}
|
|
843
844
|
),
|
|
844
845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
|
-
|
|
846
|
+
_chunkIP4OYYDYcjs.ChatInput,
|
|
846
847
|
{
|
|
847
848
|
fullWidth: true,
|
|
848
849
|
autoFocus: true,
|
|
@@ -850,13 +851,13 @@ function TicketReplyComposer({
|
|
|
850
851
|
sending: busy || attachments.hasInflightUploads,
|
|
851
852
|
disabled: supportSystemDown,
|
|
852
853
|
allowEmptySend: hasReadyFiles,
|
|
853
|
-
maxLength:
|
|
854
|
+
maxLength: _chunkKTYYH3JVcjs.TICKET_TEXT_MAX_CHARS,
|
|
854
855
|
onSend: handleSend
|
|
855
856
|
}
|
|
856
857
|
),
|
|
857
858
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
858
859
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
859
|
-
|
|
860
|
+
_chunkIP4OYYDYcjs.ChatAttachmentAddButton,
|
|
860
861
|
{
|
|
861
862
|
attachmentsEnabled: true,
|
|
862
863
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -879,25 +880,25 @@ function TicketReplyComposer({
|
|
|
879
880
|
}
|
|
880
881
|
)
|
|
881
882
|
] }),
|
|
882
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7EV2UHWQcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7EV2UHWQcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7EV2UHWQcjs.AlertDialogHeader, { children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7EV2UHWQcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7EV2UHWQcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
886
887
|
] }),
|
|
887
888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
888
|
-
|
|
889
|
+
_chunk7EV2UHWQcjs.Textarea,
|
|
889
890
|
{
|
|
890
891
|
value: resolution,
|
|
891
892
|
onChange: (e) => setResolution(e.target.value),
|
|
892
893
|
placeholder: "Resolution (optional)",
|
|
893
894
|
rows: 3,
|
|
894
|
-
maxLength:
|
|
895
|
+
maxLength: _chunkKTYYH3JVcjs.TICKET_TEXT_MAX_CHARS,
|
|
895
896
|
className: "mt-2"
|
|
896
897
|
}
|
|
897
898
|
),
|
|
898
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7EV2UHWQcjs.AlertDialogFooter, { children: [
|
|
899
900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
|
-
|
|
901
|
+
_chunk7EV2UHWQcjs.AlertDialogCancel,
|
|
901
902
|
{
|
|
902
903
|
disabled: busy,
|
|
903
904
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -905,7 +906,7 @@ function TicketReplyComposer({
|
|
|
905
906
|
}
|
|
906
907
|
),
|
|
907
908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
|
|
909
|
+
_chunk7EV2UHWQcjs.AlertDialogAction,
|
|
909
910
|
{
|
|
910
911
|
onClick: () => void confirmClose(),
|
|
911
912
|
disabled: busy,
|
|
@@ -967,10 +968,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
967
968
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
968
969
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
969
970
|
function TicketTimelinePanel({ ticket }) {
|
|
970
|
-
const identity =
|
|
971
|
-
const externalId =
|
|
971
|
+
const identity = _chunkIP4OYYDYcjs.useChatIdentity.call(void 0, );
|
|
972
|
+
const externalId = _chunkKTYYH3JVcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
972
973
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
973
|
-
const live =
|
|
974
|
+
const live = _chunkKTYYH3JVcjs.useOptionalTicketLive.call(void 0, );
|
|
974
975
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
975
976
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
976
977
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -994,7 +995,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
994
995
|
markReadDebounceRef.current = setTimeout(() => {
|
|
995
996
|
markReadDebounceRef.current = null;
|
|
996
997
|
void markRead(externalId);
|
|
997
|
-
},
|
|
998
|
+
}, _chunkKTYYH3JVcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
998
999
|
}, [engagementsCount, externalId, markRead]);
|
|
999
1000
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
1000
1001
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1009,7 +1010,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1009
1010
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1010
1011
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1011
1012
|
if (isLoading) {
|
|
1012
|
-
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, _chunkIP4OYYDYcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1013
1014
|
}
|
|
1014
1015
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1015
1016
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1028,7 +1029,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1028
1029
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1029
1030
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1030
1031
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1031
|
-
|
|
1032
|
+
_chunkIP4OYYDYcjs.ChatMessageRow,
|
|
1032
1033
|
{
|
|
1033
1034
|
displayName: customerName,
|
|
1034
1035
|
avatarUrl: customerAvatar,
|
|
@@ -1057,13 +1058,13 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1057
1058
|
}
|
|
1058
1059
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1059
1060
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1060
|
-
|
|
1061
|
+
_chunkIP4OYYDYcjs.ChatMessageRow,
|
|
1061
1062
|
{
|
|
1062
1063
|
displayName: author,
|
|
1063
1064
|
avatarUrl: avatarSrc,
|
|
1064
|
-
timeLabel: eng.createdAt ?
|
|
1065
|
+
timeLabel: eng.createdAt ? _chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1065
1066
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1066
|
-
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, _chunk7EV2UHWQcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1067
1068
|
},
|
|
1068
1069
|
eng.id
|
|
1069
1070
|
);
|
|
@@ -1176,7 +1177,7 @@ function TicketRow({
|
|
|
1176
1177
|
onActionCollapsed,
|
|
1177
1178
|
id
|
|
1178
1179
|
}) {
|
|
1179
|
-
const optimistic =
|
|
1180
|
+
const optimistic = _chunkKTYYH3JVcjs.isOptimistic.call(void 0, ticket);
|
|
1180
1181
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1181
1182
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1182
1183
|
onToggle(ticket.id);
|
|
@@ -1204,7 +1205,7 @@ function TicketRow({
|
|
|
1204
1205
|
// so the badge accurately reflects "Closed" with a checkmark.
|
|
1205
1206
|
statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
|
|
1206
1207
|
category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
|
|
1207
|
-
timeAgo: ticket.hubspot_updated_at ?
|
|
1208
|
+
timeAgo: ticket.hubspot_updated_at ? _chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
|
|
1208
1209
|
// Linked-work chip: surfaced whenever the ticket has a linked
|
|
1209
1210
|
// ClickUp task. Uses the linked task's own status so the chip text
|
|
1210
1211
|
// reads "Working" / "Waiting on version release" / etc. — useful
|
|
@@ -1214,7 +1215,7 @@ function TicketRow({
|
|
|
1214
1215
|
};
|
|
1215
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: [
|
|
1216
1217
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1217
|
-
|
|
1218
|
+
_chunkIP4OYYDYcjs.ChatTicketItem,
|
|
1218
1219
|
{
|
|
1219
1220
|
ticket: tileData,
|
|
1220
1221
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1247,7 +1248,7 @@ function TicketRow({
|
|
|
1247
1248
|
// src/components/tickets/ticket-center.tsx
|
|
1248
1249
|
|
|
1249
1250
|
function TicketCenter({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast } = {}) {
|
|
1250
|
-
const identity =
|
|
1251
|
+
const identity = _chunkIP4OYYDYcjs.useChatIdentity.call(void 0, );
|
|
1251
1252
|
if (identity.isLoading) {
|
|
1252
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1253
1254
|
}
|
|
@@ -1318,7 +1319,7 @@ function TicketCenterAuthed({
|
|
|
1318
1319
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1319
1320
|
lastUpdatedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
1320
1321
|
"Updated ",
|
|
1321
|
-
|
|
1322
|
+
_chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
|
|
1322
1323
|
] }),
|
|
1323
1324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1324
1325
|
_chunkCJBSU3XBcjs.Button,
|
|
@@ -1345,11 +1346,11 @@ function TicketCenterAuthed({
|
|
|
1345
1346
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1346
1347
|
TicketRow,
|
|
1347
1348
|
{
|
|
1348
|
-
id:
|
|
1349
|
+
id: _chunk7EV2UHWQcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1349
1350
|
ticket,
|
|
1350
1351
|
expanded: expandedTicketId === ticket.id,
|
|
1351
1352
|
onToggle: toggleRow,
|
|
1352
|
-
busy:
|
|
1353
|
+
busy: _chunkKTYYH3JVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1353
1354
|
supportSystemDown,
|
|
1354
1355
|
onSendMessage: actions.sendMessage,
|
|
1355
1356
|
onClose: actions.closeTicket,
|
|
@@ -1403,10 +1404,10 @@ function HelpCenterCard({
|
|
|
1403
1404
|
onClearReplyError,
|
|
1404
1405
|
id
|
|
1405
1406
|
}) {
|
|
1406
|
-
const optimistic =
|
|
1407
|
+
const optimistic = _chunkKTYYH3JVcjs.isOptimistic.call(void 0, ticket);
|
|
1407
1408
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1408
1409
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1409
|
-
const relativeUpdated = ticket.hubspot_updated_at ?
|
|
1410
|
+
const relativeUpdated = ticket.hubspot_updated_at ? _chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
1410
1411
|
const title = (ticket.subject || "").trim() || "(untitled)";
|
|
1411
1412
|
const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
|
|
1412
1413
|
const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
|
|
@@ -1425,7 +1426,7 @@ function HelpCenterCard({
|
|
|
1425
1426
|
});
|
|
1426
1427
|
return () => cancelAnimationFrame(raf);
|
|
1427
1428
|
}, [isExpanded]);
|
|
1428
|
-
const live =
|
|
1429
|
+
const live = _chunkKTYYH3JVcjs.useOptionalTicketLive.call(void 0, );
|
|
1429
1430
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1430
1431
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1431
1432
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1475,7 +1476,7 @@ function HelpCenterCard({
|
|
|
1475
1476
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1476
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]",
|
|
1477
1478
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1478
|
-
|
|
1479
|
+
_chunkC6Y5FZMJcjs.DevCardRowContent,
|
|
1479
1480
|
{
|
|
1480
1481
|
title,
|
|
1481
1482
|
subtitle,
|
|
@@ -1576,7 +1577,7 @@ function HelpCenterCreateForm({
|
|
|
1576
1577
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1577
1578
|
] });
|
|
1578
1579
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1579
|
-
|
|
1580
|
+
_chunkQ2NPL4FUcjs.ContactForm,
|
|
1580
1581
|
{
|
|
1581
1582
|
title: "Open a new ticket",
|
|
1582
1583
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1614,29 +1615,29 @@ function HelpCenterCreateForm({
|
|
|
1614
1615
|
// src/components/tickets/help-center-list.tsx
|
|
1615
1616
|
|
|
1616
1617
|
function HelpCenterList({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast, backButton, title, shell } = {}) {
|
|
1617
|
-
const identity =
|
|
1618
|
+
const identity = _chunkIP4OYYDYcjs.useChatIdentity.call(void 0, );
|
|
1618
1619
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1619
1620
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1620
1621
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1621
|
-
const search = searchParams.get(
|
|
1622
|
+
const search = searchParams.get(_chunk7EV2UHWQcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1622
1623
|
const status = searchParams.get("status") || "all";
|
|
1623
|
-
const ticketParam = searchParams.get(
|
|
1624
|
+
const ticketParam = searchParams.get(_chunk7EV2UHWQcjs.TICKET_OPEN_PARAM) || "";
|
|
1624
1625
|
const page = _chunkCCWI3622cjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1625
1626
|
if (identity.isLoading) {
|
|
1626
1627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1627
|
-
|
|
1628
|
+
_chunkC6Y5FZMJcjs.DevSectionPage,
|
|
1628
1629
|
{
|
|
1629
1630
|
sectionKey: "tickets",
|
|
1630
1631
|
backButton,
|
|
1631
1632
|
title,
|
|
1632
1633
|
shell,
|
|
1633
1634
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1634
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1635
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6Y5FZMJcjs.DevCardRowSkeletonList, {})
|
|
1635
1636
|
}
|
|
1636
1637
|
);
|
|
1637
1638
|
}
|
|
1638
1639
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1639
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6Y5FZMJcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
1641
|
_chunkDV7IBKJIcjs.EmptyState,
|
|
1641
1642
|
{
|
|
1642
1643
|
type: "generic",
|
|
@@ -1688,8 +1689,8 @@ function HelpCenterListAuthed({
|
|
|
1688
1689
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1689
1690
|
(externalId) => {
|
|
1690
1691
|
const params = new URLSearchParams(searchParams.toString());
|
|
1691
|
-
if (externalId) params.set(
|
|
1692
|
-
else params.delete(
|
|
1692
|
+
if (externalId) params.set(_chunk7EV2UHWQcjs.TICKET_OPEN_PARAM, externalId);
|
|
1693
|
+
else params.delete(_chunk7EV2UHWQcjs.TICKET_OPEN_PARAM);
|
|
1693
1694
|
const qs = params.toString();
|
|
1694
1695
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1695
1696
|
},
|
|
@@ -1766,36 +1767,33 @@ function HelpCenterListAuthed({
|
|
|
1766
1767
|
] }),
|
|
1767
1768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1768
1769
|
] }),
|
|
1769
|
-
!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, _chunkC6Y5FZMJcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1770
1771
|
// Bridge state — background refetch in flight and the
|
|
1771
1772
|
// optimistic placeholder was just removed by the mutation
|
|
1772
1773
|
// callback. Without this branch "No tickets yet" would flash
|
|
1773
1774
|
// for ~50ms between `removeOptimistic` and the server
|
|
1774
1775
|
// response landing.
|
|
1775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
-
) : !hasResults ?
|
|
1777
|
-
|
|
1776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6Y5FZMJcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1777
|
+
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
|
+
_chunkC6Y5FZMJcjs.ListEmptyState,
|
|
1778
1779
|
{
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1780
|
+
isFiltered: hasActiveFilters,
|
|
1781
|
+
filtered: {
|
|
1782
|
+
title: "No tickets found",
|
|
1783
|
+
description: "No tickets match your current filters. Try clearing them or broadening your search.",
|
|
1784
|
+
clearText: "Reset filters"
|
|
1785
|
+
},
|
|
1786
|
+
onClearFilters: () => {
|
|
1785
1787
|
const params = new URLSearchParams(searchParams.toString());
|
|
1786
1788
|
params.delete("search");
|
|
1787
1789
|
params.delete("status");
|
|
1788
1790
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
1791
|
+
},
|
|
1792
|
+
empty: {
|
|
1793
|
+
title: "No tickets yet",
|
|
1794
|
+
description: "Open one above to start the conversation with the support team."
|
|
1789
1795
|
}
|
|
1790
1796
|
}
|
|
1791
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1792
|
-
_chunkDV7IBKJIcjs.EmptyState,
|
|
1793
|
-
{
|
|
1794
|
-
type: "generic",
|
|
1795
|
-
title: "No tickets yet",
|
|
1796
|
-
description: "Open one above to start the conversation with the support team.",
|
|
1797
|
-
showCTA: false
|
|
1798
|
-
}
|
|
1799
1797
|
) : (
|
|
1800
1798
|
// `overflow-clip` (NOT `overflow-hidden`) — both visually
|
|
1801
1799
|
// clip the rounded corners, but `hidden` makes the element
|
|
@@ -1808,11 +1806,11 @@ function HelpCenterListAuthed({
|
|
|
1808
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,
|
|
1809
1807
|
HelpCenterCard,
|
|
1810
1808
|
{
|
|
1811
|
-
id:
|
|
1809
|
+
id: _chunk7EV2UHWQcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1812
1810
|
ticket,
|
|
1813
1811
|
expanded: expandedTicketId === ticket.id,
|
|
1814
1812
|
onToggle: toggleRow,
|
|
1815
|
-
busy:
|
|
1813
|
+
busy: _chunkKTYYH3JVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1816
1814
|
supportSystemDown,
|
|
1817
1815
|
onSendMessage: actions.sendMessage,
|
|
1818
1816
|
onClose: actions.closeTicket,
|
|
@@ -1826,7 +1824,7 @@ function HelpCenterListAuthed({
|
|
|
1826
1824
|
) }),
|
|
1827
1825
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDV7IBKJIcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1828
1826
|
] });
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1827
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6Y5FZMJcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1830
1828
|
}
|
|
1831
1829
|
|
|
1832
1830
|
|
|
@@ -1845,4 +1843,4 @@ function HelpCenterListAuthed({
|
|
|
1845
1843
|
|
|
1846
1844
|
|
|
1847
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;
|
|
1848
|
-
//# sourceMappingURL=chunk-
|
|
1846
|
+
//# sourceMappingURL=chunk-7OYQ6RVB.cjs.map
|