@flamingo-stack/openframe-frontend-core 0.0.592 → 0.0.593-snapshot.20260905112237
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-F543W3F2.js → chunk-3OQIZPUX.js} +3 -3
- package/dist/{chunk-CRW4WRMH.js → chunk-3T7ZP3TL.js} +2 -2
- package/dist/{chunk-ASFEUMFW.js → chunk-3XDPXOMS.js} +4 -4
- package/dist/{chunk-3JOBM57M.cjs → chunk-43ADGEWL.cjs} +24 -24
- package/dist/{chunk-3JOBM57M.cjs.map → chunk-43ADGEWL.cjs.map} +1 -1
- package/dist/{chunk-YBENO4XG.cjs → chunk-5XQMEDGE.cjs} +10 -10
- package/dist/{chunk-YBENO4XG.cjs.map → chunk-5XQMEDGE.cjs.map} +1 -1
- package/dist/{chunk-HGEA6PW7.cjs → chunk-66I2QUFE.cjs} +3 -3
- package/dist/{chunk-HGEA6PW7.cjs.map → chunk-66I2QUFE.cjs.map} +1 -1
- package/dist/{chunk-ZT2Z2BYH.cjs → chunk-ACU7J5BL.cjs} +69 -69
- package/dist/{chunk-ZT2Z2BYH.cjs.map → chunk-ACU7J5BL.cjs.map} +1 -1
- package/dist/{chunk-FVADHGDP.cjs → chunk-C4YJC5X7.cjs} +4 -4
- package/dist/{chunk-FVADHGDP.cjs.map → chunk-C4YJC5X7.cjs.map} +1 -1
- package/dist/{chunk-5LJZWTOE.cjs → chunk-CCLPJSY3.cjs} +10 -10
- package/dist/{chunk-5LJZWTOE.cjs.map → chunk-CCLPJSY3.cjs.map} +1 -1
- package/dist/{chunk-WOGLPNK3.cjs → chunk-CQ35OMPJ.cjs} +3 -3
- package/dist/{chunk-WOGLPNK3.cjs.map → chunk-CQ35OMPJ.cjs.map} +1 -1
- package/dist/{chunk-XNGE5EE5.js → chunk-DRZ224RU.js} +6 -6
- package/dist/{chunk-O4VGEJ7I.cjs → chunk-EWOFXJGH.cjs} +43 -43
- package/dist/{chunk-O4VGEJ7I.cjs.map → chunk-EWOFXJGH.cjs.map} +1 -1
- package/dist/{chunk-6GMMR667.js → chunk-F5Q3DTP5.js} +5 -5
- package/dist/{chunk-R25AUM2R.js → chunk-GBIC3VNA.js} +3 -3
- package/dist/{chunk-LXD2QJFG.js → chunk-HOLK4ZMT.js} +3 -3
- package/dist/{chunk-W2RUBABW.cjs → chunk-HQWZ4IXU.cjs} +21 -21
- package/dist/{chunk-W2RUBABW.cjs.map → chunk-HQWZ4IXU.cjs.map} +1 -1
- package/dist/{chunk-JIINHJIT.js → chunk-IKQVXZB5.js} +5 -5
- package/dist/{chunk-FSCQOWXI.js → chunk-KVNA3HU2.js} +2 -2
- package/dist/{chunk-I7JYX5O3.js → chunk-LKN2KKYZ.js} +57 -4
- package/dist/{chunk-I7JYX5O3.js.map → chunk-LKN2KKYZ.js.map} +1 -1
- package/dist/{chunk-NZQYZKIN.js → chunk-M5HGULIY.js} +5 -5
- package/dist/{chunk-AUA6OSU7.js → chunk-MEWAFY6X.js} +2 -2
- package/dist/{chunk-OO6AMBHV.js → chunk-N3RHX26N.js} +3 -3
- package/dist/{chunk-NICIJRZ4.cjs → chunk-PETYVGEQ.cjs} +5 -5
- package/dist/{chunk-NICIJRZ4.cjs.map → chunk-PETYVGEQ.cjs.map} +1 -1
- package/dist/{chunk-WVHQQ3NY.js → chunk-PMN7WDXI.js} +31 -10
- package/dist/chunk-PMN7WDXI.js.map +1 -0
- package/dist/{chunk-5MHDMDPX.cjs → chunk-QAVT6P5F.cjs} +22 -22
- package/dist/{chunk-5MHDMDPX.cjs.map → chunk-QAVT6P5F.cjs.map} +1 -1
- package/dist/{chunk-V7RUX5CX.cjs → chunk-S7VW4HVL.cjs} +15 -15
- package/dist/{chunk-V7RUX5CX.cjs.map → chunk-S7VW4HVL.cjs.map} +1 -1
- package/dist/{chunk-COY57SZP.cjs → chunk-UBRVIVY4.cjs} +188 -167
- package/dist/chunk-UBRVIVY4.cjs.map +1 -0
- package/dist/{chunk-NYH3NVUF.js → chunk-Y22VQDVW.js} +3 -3
- package/dist/{chunk-TVPJ5DIB.cjs → chunk-YLVPQNLO.cjs} +57 -4
- package/dist/chunk-YLVPQNLO.cjs.map +1 -0
- package/dist/{chunk-XHDBU5EI.js → chunk-YZLUOZKR.js} +2 -2
- package/dist/{chunk-WP3AVAMP.cjs → chunk-ZEG3ZJPY.cjs} +33 -33
- package/dist/{chunk-WP3AVAMP.cjs.map → chunk-ZEG3ZJPY.cjs.map} +1 -1
- package/dist/{chunk-TQMZFXWZ.cjs → chunk-ZK3AZ5YF.cjs} +9 -9
- package/dist/{chunk-TQMZFXWZ.cjs.map → chunk-ZK3AZ5YF.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- 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 +38 -38
- package/dist/components/index.js +13 -13
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- 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/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/data-table/data-table-row.d.ts +5 -0
- package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +1 -0
- package/dist/components/ui/data-table/data-table-skeleton.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/dist/utils/index.cjs +14 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +14 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/data-table-row-height.test.tsx +31 -0
- package/src/components/chat/entity-cards/dispatch.tsx +57 -0
- package/src/components/ui/data-table/data-table-body.tsx +12 -3
- package/src/components/ui/data-table/data-table-row.tsx +15 -3
- package/src/components/ui/data-table/data-table-skeleton.tsx +5 -2
- package/src/utils/source-icons.ts +24 -0
- package/dist/chunk-COY57SZP.cjs.map +0 -1
- package/dist/chunk-TVPJ5DIB.cjs.map +0 -1
- package/dist/chunk-WVHQQ3NY.js.map +0 -1
- /package/dist/{chunk-F543W3F2.js.map → chunk-3OQIZPUX.js.map} +0 -0
- /package/dist/{chunk-CRW4WRMH.js.map → chunk-3T7ZP3TL.js.map} +0 -0
- /package/dist/{chunk-ASFEUMFW.js.map → chunk-3XDPXOMS.js.map} +0 -0
- /package/dist/{chunk-XNGE5EE5.js.map → chunk-DRZ224RU.js.map} +0 -0
- /package/dist/{chunk-6GMMR667.js.map → chunk-F5Q3DTP5.js.map} +0 -0
- /package/dist/{chunk-R25AUM2R.js.map → chunk-GBIC3VNA.js.map} +0 -0
- /package/dist/{chunk-LXD2QJFG.js.map → chunk-HOLK4ZMT.js.map} +0 -0
- /package/dist/{chunk-JIINHJIT.js.map → chunk-IKQVXZB5.js.map} +0 -0
- /package/dist/{chunk-FSCQOWXI.js.map → chunk-KVNA3HU2.js.map} +0 -0
- /package/dist/{chunk-NZQYZKIN.js.map → chunk-M5HGULIY.js.map} +0 -0
- /package/dist/{chunk-AUA6OSU7.js.map → chunk-MEWAFY6X.js.map} +0 -0
- /package/dist/{chunk-OO6AMBHV.js.map → chunk-N3RHX26N.js.map} +0 -0
- /package/dist/{chunk-NYH3NVUF.js.map → chunk-Y22VQDVW.js.map} +0 -0
- /package/dist/{chunk-XHDBU5EI.js.map → chunk-YZLUOZKR.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkHQWZ4IXUcjs = require('./chunk-HQWZ4IXU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCCLPJSY3cjs = require('./chunk-CCLPJSY3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ var _chunkO4VZOA2Qcjs = require('./chunk-O4VZOA2Q.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkPETYVGEQcjs = require('./chunk-PETYVGEQ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ var _chunkNICIJRZ4cjs = require('./chunk-NICIJRZ4.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkUBRVIVY4cjs = require('./chunk-UBRVIVY4.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -56,7 +56,7 @@ var _chunkY7ITKISQcjs = require('./chunk-Y7ITKISQ.cjs');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var _chunkYLVPQNLOcjs = require('./chunk-YLVPQNLO.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -112,7 +112,7 @@ var TicketActionFailure = class extends Error {
|
|
|
112
112
|
function useTicketActions(options) {
|
|
113
113
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
114
114
|
const ticketActionEndpoint = _nullishCoalesce(_chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
115
|
-
const ticketLive =
|
|
115
|
+
const ticketLive = _chunkPETYVGEQcjs.useOptionalTicketLive.call(void 0, );
|
|
116
116
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
117
117
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
118
118
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -273,10 +273,10 @@ function useTicketActions(options) {
|
|
|
273
273
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
274
274
|
});
|
|
275
275
|
if (result.mirror_synced === false) {
|
|
276
|
-
toast2(
|
|
276
|
+
toast2(_chunkPETYVGEQcjs.TOAST_COPY.open_mirror_pending);
|
|
277
277
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
278
278
|
} else {
|
|
279
|
-
toast2(
|
|
279
|
+
toast2(_chunkPETYVGEQcjs.TOAST_COPY.open_success);
|
|
280
280
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
281
281
|
removeOptimistic(placeholderId);
|
|
282
282
|
}
|
|
@@ -362,7 +362,7 @@ function useTicketActions(options) {
|
|
|
362
362
|
...hasText ? { content_addendum: trimmed } : {},
|
|
363
363
|
...hasFiles ? { attachments } : {}
|
|
364
364
|
},
|
|
365
|
-
|
|
365
|
+
_chunkPETYVGEQcjs.TOAST_COPY.comment_success,
|
|
366
366
|
"send message"
|
|
367
367
|
);
|
|
368
368
|
if (ok) {
|
|
@@ -385,13 +385,13 @@ function useTicketActions(options) {
|
|
|
385
385
|
status: "CLOSED",
|
|
386
386
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
387
387
|
},
|
|
388
|
-
|
|
388
|
+
_chunkPETYVGEQcjs.TOAST_COPY.close_success,
|
|
389
389
|
"close ticket"
|
|
390
390
|
),
|
|
391
391
|
[updateTicket]
|
|
392
392
|
);
|
|
393
393
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
394
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
394
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkPETYVGEQcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
395
395
|
[updateTicket]
|
|
396
396
|
);
|
|
397
397
|
return _react.useMemo.call(void 0,
|
|
@@ -616,14 +616,14 @@ function useTicketsList(filters) {
|
|
|
616
616
|
// src/components/tickets/ticket-open-form.tsx
|
|
617
617
|
|
|
618
618
|
var _jsxruntime = require('react/jsx-runtime');
|
|
619
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
619
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkPETYVGEQcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
620
620
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
621
621
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
622
622
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
623
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
623
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkYLVPQNLOcjs.useChatAttachments.call(void 0, );
|
|
624
624
|
const trimmedSubject = subject.trim();
|
|
625
625
|
const trimmedContent = content.trim();
|
|
626
|
-
const overCap = content.length >
|
|
626
|
+
const overCap = content.length > _chunkPETYVGEQcjs.TICKET_TEXT_MAX_CHARS;
|
|
627
627
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
628
628
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
629
629
|
const handleSubmit = async (e) => {
|
|
@@ -665,7 +665,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
665
665
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
666
666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
667
667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
668
|
-
|
|
668
|
+
_chunkUBRVIVY4cjs.Textarea,
|
|
669
669
|
{
|
|
670
670
|
id: "ticket-content",
|
|
671
671
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -679,11 +679,11 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
679
679
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
680
680
|
content.length,
|
|
681
681
|
"/",
|
|
682
|
-
|
|
682
|
+
_chunkPETYVGEQcjs.TICKET_TEXT_MAX_CHARS
|
|
683
683
|
] })
|
|
684
684
|
] }),
|
|
685
685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
686
|
-
|
|
686
|
+
_chunkYLVPQNLOcjs.ChatAttachmentChipStrip,
|
|
687
687
|
{
|
|
688
688
|
attachments,
|
|
689
689
|
onRemove: removeAttachment,
|
|
@@ -692,7 +692,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
692
692
|
),
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
694
694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
695
|
-
|
|
695
|
+
_chunkYLVPQNLOcjs.ChatAttachmentAddButton,
|
|
696
696
|
{
|
|
697
697
|
attachmentsEnabled: !supportSystemDown,
|
|
698
698
|
attachmentsCount: attachments.length,
|
|
@@ -722,7 +722,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
722
722
|
|
|
723
723
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
724
724
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
725
|
-
const identity =
|
|
725
|
+
const identity = _chunkYLVPQNLOcjs.useChatIdentity.call(void 0, );
|
|
726
726
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
727
727
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
728
728
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -795,7 +795,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
795
795
|
dateClosed: clickup.date_closed,
|
|
796
796
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
797
797
|
};
|
|
798
|
-
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,
|
|
798
|
+
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, _chunkCCLPJSY3cjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -810,7 +810,7 @@ function TicketReplyComposer({
|
|
|
810
810
|
}) {
|
|
811
811
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
812
812
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
813
|
-
const attachments =
|
|
813
|
+
const attachments = _chunkYLVPQNLOcjs.useChatAttachments.call(void 0, );
|
|
814
814
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
815
815
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
816
816
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -831,7 +831,7 @@ function TicketReplyComposer({
|
|
|
831
831
|
const disabled = busy || supportSystemDown;
|
|
832
832
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
833
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
834
|
-
|
|
834
|
+
_chunkYLVPQNLOcjs.ChatAttachmentChipStrip,
|
|
835
835
|
{
|
|
836
836
|
attachments: attachments.attachments,
|
|
837
837
|
onRemove: attachments.removeAttachment,
|
|
@@ -840,7 +840,7 @@ function TicketReplyComposer({
|
|
|
840
840
|
}
|
|
841
841
|
),
|
|
842
842
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
843
|
-
|
|
843
|
+
_chunkYLVPQNLOcjs.ChatInput,
|
|
844
844
|
{
|
|
845
845
|
fullWidth: true,
|
|
846
846
|
autoFocus: true,
|
|
@@ -848,13 +848,13 @@ function TicketReplyComposer({
|
|
|
848
848
|
sending: busy || attachments.hasInflightUploads,
|
|
849
849
|
disabled: supportSystemDown,
|
|
850
850
|
allowEmptySend: hasReadyFiles,
|
|
851
|
-
maxLength:
|
|
851
|
+
maxLength: _chunkPETYVGEQcjs.TICKET_TEXT_MAX_CHARS,
|
|
852
852
|
onSend: handleSend
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
855
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
856
856
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
857
|
-
|
|
857
|
+
_chunkYLVPQNLOcjs.ChatAttachmentAddButton,
|
|
858
858
|
{
|
|
859
859
|
attachmentsEnabled: true,
|
|
860
860
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -877,25 +877,25 @@ function TicketReplyComposer({
|
|
|
877
877
|
}
|
|
878
878
|
)
|
|
879
879
|
] }),
|
|
880
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
882
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBRVIVY4cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBRVIVY4cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
881
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBRVIVY4cjs.AlertDialogHeader, { children: [
|
|
882
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBRVIVY4cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBRVIVY4cjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
884
884
|
] }),
|
|
885
885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
|
|
886
|
+
_chunkUBRVIVY4cjs.Textarea,
|
|
887
887
|
{
|
|
888
888
|
value: resolution,
|
|
889
889
|
onChange: (e) => setResolution(e.target.value),
|
|
890
890
|
placeholder: "Resolution (optional)",
|
|
891
891
|
rows: 3,
|
|
892
|
-
maxLength:
|
|
892
|
+
maxLength: _chunkPETYVGEQcjs.TICKET_TEXT_MAX_CHARS,
|
|
893
893
|
className: "mt-2"
|
|
894
894
|
}
|
|
895
895
|
),
|
|
896
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
896
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBRVIVY4cjs.AlertDialogFooter, { children: [
|
|
897
897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
|
|
898
|
+
_chunkUBRVIVY4cjs.AlertDialogCancel,
|
|
899
899
|
{
|
|
900
900
|
disabled: busy,
|
|
901
901
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -903,7 +903,7 @@ function TicketReplyComposer({
|
|
|
903
903
|
}
|
|
904
904
|
),
|
|
905
905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
-
|
|
906
|
+
_chunkUBRVIVY4cjs.AlertDialogAction,
|
|
907
907
|
{
|
|
908
908
|
onClick: () => void confirmClose(),
|
|
909
909
|
disabled: busy,
|
|
@@ -965,10 +965,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
965
965
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
966
966
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
967
967
|
function TicketTimelinePanel({ ticket }) {
|
|
968
|
-
const identity =
|
|
969
|
-
const externalId =
|
|
968
|
+
const identity = _chunkYLVPQNLOcjs.useChatIdentity.call(void 0, );
|
|
969
|
+
const externalId = _chunkPETYVGEQcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
970
970
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
971
|
-
const live =
|
|
971
|
+
const live = _chunkPETYVGEQcjs.useOptionalTicketLive.call(void 0, );
|
|
972
972
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
973
973
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
974
974
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -992,7 +992,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
992
992
|
markReadDebounceRef.current = setTimeout(() => {
|
|
993
993
|
markReadDebounceRef.current = null;
|
|
994
994
|
void markRead(externalId);
|
|
995
|
-
},
|
|
995
|
+
}, _chunkPETYVGEQcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
996
996
|
}, [engagementsCount, externalId, markRead]);
|
|
997
997
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
998
998
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1007,7 +1007,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1007
1007
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1008
1008
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1009
1009
|
if (isLoading) {
|
|
1010
|
-
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,
|
|
1010
|
+
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, _chunkYLVPQNLOcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1011
1011
|
}
|
|
1012
1012
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1013
1013
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1026,7 +1026,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1026
1026
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1027
1027
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1028
1028
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1029
|
-
|
|
1029
|
+
_chunkYLVPQNLOcjs.ChatMessageRow,
|
|
1030
1030
|
{
|
|
1031
1031
|
displayName: customerName,
|
|
1032
1032
|
avatarUrl: customerAvatar,
|
|
@@ -1055,13 +1055,13 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1057
1057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1058
|
-
|
|
1058
|
+
_chunkYLVPQNLOcjs.ChatMessageRow,
|
|
1059
1059
|
{
|
|
1060
1060
|
displayName: author,
|
|
1061
1061
|
avatarUrl: avatarSrc,
|
|
1062
|
-
timeLabel: eng.createdAt ?
|
|
1062
|
+
timeLabel: eng.createdAt ? _chunkYLVPQNLOcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1063
1063
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1064
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1064
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBRVIVY4cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1065
1065
|
},
|
|
1066
1066
|
eng.id
|
|
1067
1067
|
);
|
|
@@ -1174,7 +1174,7 @@ function TicketRow({
|
|
|
1174
1174
|
onActionCollapsed,
|
|
1175
1175
|
id
|
|
1176
1176
|
}) {
|
|
1177
|
-
const optimistic =
|
|
1177
|
+
const optimistic = _chunkPETYVGEQcjs.isOptimistic.call(void 0, ticket);
|
|
1178
1178
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1179
1179
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1180
1180
|
onToggle(ticket.id);
|
|
@@ -1202,7 +1202,7 @@ function TicketRow({
|
|
|
1202
1202
|
// so the badge accurately reflects "Closed" with a checkmark.
|
|
1203
1203
|
statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
|
|
1204
1204
|
category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
|
|
1205
|
-
timeAgo: ticket.hubspot_updated_at ?
|
|
1205
|
+
timeAgo: ticket.hubspot_updated_at ? _chunkYLVPQNLOcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
|
|
1206
1206
|
// Linked-work chip: surfaced whenever the ticket has a linked
|
|
1207
1207
|
// ClickUp task. Uses the linked task's own status so the chip text
|
|
1208
1208
|
// reads "Working" / "Waiting on version release" / etc. — useful
|
|
@@ -1212,7 +1212,7 @@ function TicketRow({
|
|
|
1212
1212
|
};
|
|
1213
1213
|
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: [
|
|
1214
1214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1215
|
-
|
|
1215
|
+
_chunkYLVPQNLOcjs.ChatTicketItem,
|
|
1216
1216
|
{
|
|
1217
1217
|
ticket: tileData,
|
|
1218
1218
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1245,7 +1245,7 @@ function TicketRow({
|
|
|
1245
1245
|
// src/components/tickets/ticket-center.tsx
|
|
1246
1246
|
|
|
1247
1247
|
function TicketCenter({ toast: toast2 = _chunkFKXDDJEQcjs.toast } = {}) {
|
|
1248
|
-
const identity =
|
|
1248
|
+
const identity = _chunkYLVPQNLOcjs.useChatIdentity.call(void 0, );
|
|
1249
1249
|
if (identity.isLoading) {
|
|
1250
1250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1251
1251
|
}
|
|
@@ -1316,7 +1316,7 @@ function TicketCenterAuthed({
|
|
|
1316
1316
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1317
1317
|
lastUpdatedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
1318
1318
|
"Updated ",
|
|
1319
|
-
|
|
1319
|
+
_chunkYLVPQNLOcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
|
|
1320
1320
|
] }),
|
|
1321
1321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1322
1322
|
_chunkCJBSU3XBcjs.Button,
|
|
@@ -1343,11 +1343,11 @@ function TicketCenterAuthed({
|
|
|
1343
1343
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6I2DGKCcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1344
1344
|
TicketRow,
|
|
1345
1345
|
{
|
|
1346
|
-
id:
|
|
1346
|
+
id: _chunkUBRVIVY4cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1347
1347
|
ticket,
|
|
1348
1348
|
expanded: expandedTicketId === ticket.id,
|
|
1349
1349
|
onToggle: toggleRow,
|
|
1350
|
-
busy:
|
|
1350
|
+
busy: _chunkPETYVGEQcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1351
1351
|
supportSystemDown,
|
|
1352
1352
|
onSendMessage: actions.sendMessage,
|
|
1353
1353
|
onClose: actions.closeTicket,
|
|
@@ -1401,10 +1401,10 @@ function HelpCenterCard({
|
|
|
1401
1401
|
onClearReplyError,
|
|
1402
1402
|
id
|
|
1403
1403
|
}) {
|
|
1404
|
-
const optimistic =
|
|
1404
|
+
const optimistic = _chunkPETYVGEQcjs.isOptimistic.call(void 0, ticket);
|
|
1405
1405
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1406
1406
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1407
|
-
const relativeUpdated = ticket.hubspot_updated_at ?
|
|
1407
|
+
const relativeUpdated = ticket.hubspot_updated_at ? _chunkYLVPQNLOcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
1408
1408
|
const title = (ticket.subject || "").trim() || "(untitled)";
|
|
1409
1409
|
const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
|
|
1410
1410
|
const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
|
|
@@ -1423,7 +1423,7 @@ function HelpCenterCard({
|
|
|
1423
1423
|
});
|
|
1424
1424
|
return () => cancelAnimationFrame(raf);
|
|
1425
1425
|
}, [isExpanded]);
|
|
1426
|
-
const live =
|
|
1426
|
+
const live = _chunkPETYVGEQcjs.useOptionalTicketLive.call(void 0, );
|
|
1427
1427
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1428
1428
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1429
1429
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1473,7 +1473,7 @@ function HelpCenterCard({
|
|
|
1473
1473
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1474
1474
|
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]",
|
|
1475
1475
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1476
|
-
|
|
1476
|
+
_chunkCCLPJSY3cjs.DevCardRowContent,
|
|
1477
1477
|
{
|
|
1478
1478
|
title,
|
|
1479
1479
|
subtitle,
|
|
@@ -1573,7 +1573,7 @@ function HelpCenterCreateForm({
|
|
|
1573
1573
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1574
1574
|
] });
|
|
1575
1575
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1576
|
-
|
|
1576
|
+
_chunkHQWZ4IXUcjs.ContactForm,
|
|
1577
1577
|
{
|
|
1578
1578
|
title: "Open a new ticket",
|
|
1579
1579
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1611,29 +1611,29 @@ function HelpCenterCreateForm({
|
|
|
1611
1611
|
// src/components/tickets/help-center-list.tsx
|
|
1612
1612
|
|
|
1613
1613
|
function HelpCenterList({ toast: toast2 = _chunkFKXDDJEQcjs.toast, backButton, title, shell } = {}) {
|
|
1614
|
-
const identity =
|
|
1614
|
+
const identity = _chunkYLVPQNLOcjs.useChatIdentity.call(void 0, );
|
|
1615
1615
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1616
1616
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1617
1617
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1618
|
-
const search = searchParams.get(
|
|
1618
|
+
const search = searchParams.get(_chunkUBRVIVY4cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1619
1619
|
const status = searchParams.get("status") || "all";
|
|
1620
|
-
const ticketParam = searchParams.get(
|
|
1620
|
+
const ticketParam = searchParams.get(_chunkUBRVIVY4cjs.TICKET_OPEN_PARAM) || "";
|
|
1621
1621
|
const page = _chunkH64ZHSYRcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1622
1622
|
if (identity.isLoading) {
|
|
1623
1623
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1624
|
-
|
|
1624
|
+
_chunkCCLPJSY3cjs.DevSectionPage,
|
|
1625
1625
|
{
|
|
1626
1626
|
sectionKey: "tickets",
|
|
1627
1627
|
backButton,
|
|
1628
1628
|
title,
|
|
1629
1629
|
shell,
|
|
1630
1630
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1631
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1631
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCLPJSY3cjs.DevCardRowSkeletonList, {})
|
|
1632
1632
|
}
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
1635
1635
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1636
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1636
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCLPJSY3cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1637
1637
|
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1638
1638
|
{
|
|
1639
1639
|
type: "generic",
|
|
@@ -1685,8 +1685,8 @@ function HelpCenterListAuthed({
|
|
|
1685
1685
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1686
1686
|
(externalId) => {
|
|
1687
1687
|
const params = new URLSearchParams(searchParams.toString());
|
|
1688
|
-
if (externalId) params.set(
|
|
1689
|
-
else params.delete(
|
|
1688
|
+
if (externalId) params.set(_chunkUBRVIVY4cjs.TICKET_OPEN_PARAM, externalId);
|
|
1689
|
+
else params.delete(_chunkUBRVIVY4cjs.TICKET_OPEN_PARAM);
|
|
1690
1690
|
const qs = params.toString();
|
|
1691
1691
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1692
1692
|
},
|
|
@@ -1763,13 +1763,13 @@ function HelpCenterListAuthed({
|
|
|
1763
1763
|
] }),
|
|
1764
1764
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1765
1765
|
] }),
|
|
1766
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1766
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCLPJSY3cjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1767
1767
|
// Bridge state — background refetch in flight and the
|
|
1768
1768
|
// optimistic placeholder was just removed by the mutation
|
|
1769
1769
|
// callback. Without this branch "No tickets yet" would flash
|
|
1770
1770
|
// for ~50ms between `removeOptimistic` and the server
|
|
1771
1771
|
// response landing.
|
|
1772
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1772
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCLPJSY3cjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1773
1773
|
) : !hasResults ? hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1774
1774
|
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1775
1775
|
{
|
|
@@ -1805,11 +1805,11 @@ function HelpCenterListAuthed({
|
|
|
1805
1805
|
/* @__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,
|
|
1806
1806
|
HelpCenterCard,
|
|
1807
1807
|
{
|
|
1808
|
-
id:
|
|
1808
|
+
id: _chunkUBRVIVY4cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1809
1809
|
ticket,
|
|
1810
1810
|
expanded: expandedTicketId === ticket.id,
|
|
1811
1811
|
onToggle: toggleRow,
|
|
1812
|
-
busy:
|
|
1812
|
+
busy: _chunkPETYVGEQcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1813
1813
|
supportSystemDown,
|
|
1814
1814
|
onSendMessage: actions.sendMessage,
|
|
1815
1815
|
onClose: actions.closeTicket,
|
|
@@ -1823,7 +1823,7 @@ function HelpCenterListAuthed({
|
|
|
1823
1823
|
) }),
|
|
1824
1824
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4VZOA2Qcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1825
1825
|
] });
|
|
1826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCLPJSY3cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
1829
|
|
|
@@ -1842,4 +1842,4 @@ function HelpCenterListAuthed({
|
|
|
1842
1842
|
|
|
1843
1843
|
|
|
1844
1844
|
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;
|
|
1845
|
-
//# sourceMappingURL=chunk-
|
|
1845
|
+
//# sourceMappingURL=chunk-ACU7J5BL.cjs.map
|