@flamingo-stack/openframe-frontend-core 0.0.627 → 0.0.628-2170.6181.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-25UWKNII.js → chunk-2E543KJD.js} +8 -10
- package/dist/{chunk-25UWKNII.js.map → chunk-2E543KJD.js.map} +1 -1
- package/dist/{chunk-RAPPN6MN.cjs → chunk-2MMEPNSX.cjs} +3 -3
- package/dist/{chunk-RAPPN6MN.cjs.map → chunk-2MMEPNSX.cjs.map} +1 -1
- package/dist/{chunk-P7UT2YSC.cjs → chunk-3IXDZI3R.cjs} +3 -3
- package/dist/{chunk-P7UT2YSC.cjs.map → chunk-3IXDZI3R.cjs.map} +1 -1
- package/dist/{chunk-JRYS4VMV.js → chunk-5LIDR7HL.js} +79 -4
- package/dist/{chunk-JRYS4VMV.js.map → chunk-5LIDR7HL.js.map} +1 -1
- package/dist/{chunk-4PIHIFJM.js → chunk-6AFJQOT2.js} +4 -4
- package/dist/{chunk-BC726XIQ.cjs → chunk-6QLOSGE7.cjs} +47 -49
- package/dist/chunk-6QLOSGE7.cjs.map +1 -0
- package/dist/{chunk-BJGAFPG5.cjs → chunk-BND25SXU.cjs} +42 -42
- package/dist/{chunk-BJGAFPG5.cjs.map → chunk-BND25SXU.cjs.map} +1 -1
- package/dist/{chunk-ZOMGXH7C.js → chunk-BVQEU5JB.js} +2 -2
- package/dist/{chunk-VUAEDAUN.cjs → chunk-C3DDNRJG.cjs} +6 -6
- package/dist/{chunk-VUAEDAUN.cjs.map → chunk-C3DDNRJG.cjs.map} +1 -1
- package/dist/{chunk-VOZZQ6HQ.cjs → chunk-CCWI3622.cjs} +4 -4
- package/dist/{chunk-VOZZQ6HQ.cjs.map → chunk-CCWI3622.cjs.map} +1 -1
- package/dist/{chunk-GQ7267OV.cjs → chunk-E523WX5V.cjs} +5 -5
- package/dist/{chunk-GQ7267OV.cjs.map → chunk-E523WX5V.cjs.map} +1 -1
- package/dist/{chunk-4E7XCEV3.cjs → chunk-EHAYNUOL.cjs} +2 -77
- package/dist/chunk-EHAYNUOL.cjs.map +1 -0
- package/dist/{chunk-X5NN4NJM.js → chunk-F2KBCLUG.js} +2 -2
- package/dist/{chunk-USIRWQJ3.js → chunk-FKBM6U43.js} +1 -76
- package/dist/{chunk-USIRWQJ3.js.map → chunk-FKBM6U43.js.map} +1 -1
- package/dist/{chunk-ZCQVUIPH.cjs → chunk-GH4WLDPS.cjs} +18 -18
- package/dist/{chunk-ZCQVUIPH.cjs.map → chunk-GH4WLDPS.cjs.map} +1 -1
- package/dist/{chunk-WZ6CUZMM.js → chunk-HLZKMYST.js} +4 -4
- package/dist/{chunk-PKSH6PAK.js → chunk-HNNR5CGX.js} +8 -10
- package/dist/{chunk-PKSH6PAK.js.map → chunk-HNNR5CGX.js.map} +1 -1
- package/dist/{chunk-QIVX7F3N.cjs → chunk-JJUV7Z4L.cjs} +27 -27
- package/dist/{chunk-QIVX7F3N.cjs.map → chunk-JJUV7Z4L.cjs.map} +1 -1
- package/dist/{chunk-53ARMJHM.cjs → chunk-JONR3BDJ.cjs} +37 -37
- package/dist/{chunk-53ARMJHM.cjs.map → chunk-JONR3BDJ.cjs.map} +1 -1
- package/dist/{chunk-NLADJ4IX.js → chunk-JVLLA3Z7.js} +6 -6
- package/dist/{chunk-CAQ5MNLJ.js → chunk-JWXEEZKD.js} +3 -3
- package/dist/{chunk-HIZAMJPT.js → chunk-K43T7N7O.js} +12 -12
- package/dist/{chunk-N6XNJX25.cjs → chunk-KT47FRJC.cjs} +15 -15
- package/dist/{chunk-N6XNJX25.cjs.map → chunk-KT47FRJC.cjs.map} +1 -1
- package/dist/{chunk-VZQ3VVFH.cjs → chunk-KTBZJP5J.cjs} +20 -22
- package/dist/chunk-KTBZJP5J.cjs.map +1 -0
- package/dist/{chunk-4SXZT7JP.cjs → chunk-L6GJV7E7.cjs} +83 -83
- package/dist/{chunk-4SXZT7JP.cjs.map → chunk-L6GJV7E7.cjs.map} +1 -1
- package/dist/{chunk-DH3YH3TV.js → chunk-LCMXGM2P.js} +8 -8
- package/dist/{chunk-KXDYBRRR.js → chunk-LLSX5T7X.js} +7 -7
- package/dist/{chunk-G47XRVZA.js → chunk-MB4IEWLH.js} +3 -3
- package/dist/{chunk-L5FEAOGJ.js → chunk-ON7663OW.js} +354 -8
- package/dist/chunk-ON7663OW.js.map +1 -0
- package/dist/{chunk-55X46LKR.cjs → chunk-OQHFHKUG.cjs} +100 -450
- package/dist/chunk-OQHFHKUG.cjs.map +1 -0
- package/dist/{chunk-SLT5C3PQ.cjs → chunk-Q544C4Z7.cjs} +25 -25
- package/dist/{chunk-SLT5C3PQ.cjs.map → chunk-Q544C4Z7.cjs.map} +1 -1
- package/dist/{chunk-2J7EFH4V.js → chunk-QS2QCXBH.js} +30 -380
- package/dist/chunk-QS2QCXBH.js.map +1 -0
- package/dist/{chunk-76HB456V.js → chunk-S6WBBSII.js} +5 -5
- package/dist/{chunk-FR6EDA3P.cjs → chunk-SWJ6QLD7.cjs} +105 -105
- package/dist/{chunk-FR6EDA3P.cjs.map → chunk-SWJ6QLD7.cjs.map} +1 -1
- package/dist/{chunk-G46NJNTL.cjs → chunk-TDKOW2C5.cjs} +26 -28
- package/dist/chunk-TDKOW2C5.cjs.map +1 -0
- package/dist/{chunk-ZGZ7YAJH.js → chunk-TUUSLED7.js} +8 -10
- package/dist/{chunk-ZGZ7YAJH.js.map → chunk-TUUSLED7.js.map} +1 -1
- package/dist/{chunk-CK2CPZXB.js → chunk-U4UNC3RP.js} +12 -12
- package/dist/{chunk-6I3KNDBF.cjs → chunk-U7TTQV4N.cjs} +3 -3
- package/dist/{chunk-6I3KNDBF.cjs.map → chunk-U7TTQV4N.cjs.map} +1 -1
- package/dist/{chunk-R3SJ6PMI.cjs → chunk-UBX3ATG5.cjs} +292 -280
- package/dist/chunk-UBX3ATG5.cjs.map +1 -0
- package/dist/{chunk-ZYDNPUSH.cjs → chunk-UNI3POHU.cjs} +625 -279
- package/dist/chunk-UNI3POHU.cjs.map +1 -0
- package/dist/{chunk-4E3UZZ2J.cjs → chunk-VCY2KHOE.cjs} +34 -34
- package/dist/{chunk-4E3UZZ2J.cjs.map → chunk-VCY2KHOE.cjs.map} +1 -1
- package/dist/{chunk-J6ATJUEE.js → chunk-WBZ4HP7D.js} +4 -4
- package/dist/{chunk-QCSWM3VU.cjs → chunk-WIP5JO2O.cjs} +9 -9
- package/dist/{chunk-QCSWM3VU.cjs.map → chunk-WIP5JO2O.cjs.map} +1 -1
- package/dist/{chunk-32P6KUZP.js → chunk-X3LC6R37.js} +2 -2
- package/dist/{chunk-5E55S5SI.js → chunk-XQ4II4BK.js} +4 -4
- package/dist/{chunk-OAXASIVG.cjs → chunk-Y5QXDVPP.cjs} +7 -7
- package/dist/{chunk-OAXASIVG.cjs.map → chunk-Y5QXDVPP.cjs.map} +1 -1
- package/dist/{chunk-CMUNJZWN.js → chunk-YQCA4ZEJ.js} +2 -2
- package/dist/{chunk-ZI27ALYX.cjs → chunk-YXWGSDK4.cjs} +80 -5
- package/dist/chunk-YXWGSDK4.cjs.map +1 -0
- package/dist/{chunk-PTP5LSYM.js → chunk-YZJL6WGP.js} +28 -16
- package/dist/{chunk-PTP5LSYM.js.map → chunk-YZJL6WGP.js.map} +1 -1
- package/dist/{chunk-Y3MIFC5M.js → chunk-ZRCWXJDW.js} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +69 -71
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +24 -26
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +5 -4
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +3 -3
- package/dist/components/ui/index.cjs +8 -10
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +7 -9
- package/dist/components/ui/palette-badge.d.ts +6 -8
- package/dist/components/ui/palette-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.d.ts +1 -1
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -46
- package/dist/types/department.d.ts +1 -1
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/badge-palette.d.ts +18 -0
- package/dist/utils/badge-palette.d.ts.map +1 -0
- package/dist/utils/index.cjs +21 -24
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +19 -22
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/.department-badge.md +2 -2
- package/src/components/ui/.palette-badge.md +2 -2
- package/src/components/ui/.status-badge.md +2 -2
- package/src/components/ui/__tests__/department-badge.test.tsx +23 -21
- package/src/components/ui/color-preset-select.tsx +21 -5
- package/src/components/ui/department-badge.tsx +3 -3
- package/src/components/ui/palette-badge.tsx +8 -13
- package/src/components/ui/status-badge.tsx +5 -0
- package/src/types/department.ts +1 -1
- package/src/utils/.badge-palette.md +2 -0
- package/src/utils/badge-palette.ts +38 -0
- package/src/utils/index.ts +2 -1
- package/dist/chunk-2J7EFH4V.js.map +0 -1
- package/dist/chunk-4E7XCEV3.cjs.map +0 -1
- package/dist/chunk-55X46LKR.cjs.map +0 -1
- package/dist/chunk-BC726XIQ.cjs.map +0 -1
- package/dist/chunk-G46NJNTL.cjs.map +0 -1
- package/dist/chunk-L5FEAOGJ.js.map +0 -1
- package/dist/chunk-R3SJ6PMI.cjs.map +0 -1
- package/dist/chunk-VZQ3VVFH.cjs.map +0 -1
- package/dist/chunk-ZI27ALYX.cjs.map +0 -1
- package/dist/chunk-ZYDNPUSH.cjs.map +0 -1
- package/dist/utils/color-presets.d.ts +0 -24
- package/dist/utils/color-presets.d.ts.map +0 -1
- package/src/utils/.color-presets.md +0 -2
- package/src/utils/color-presets.ts +0 -48
- /package/dist/{chunk-4PIHIFJM.js.map → chunk-6AFJQOT2.js.map} +0 -0
- /package/dist/{chunk-ZOMGXH7C.js.map → chunk-BVQEU5JB.js.map} +0 -0
- /package/dist/{chunk-X5NN4NJM.js.map → chunk-F2KBCLUG.js.map} +0 -0
- /package/dist/{chunk-WZ6CUZMM.js.map → chunk-HLZKMYST.js.map} +0 -0
- /package/dist/{chunk-NLADJ4IX.js.map → chunk-JVLLA3Z7.js.map} +0 -0
- /package/dist/{chunk-CAQ5MNLJ.js.map → chunk-JWXEEZKD.js.map} +0 -0
- /package/dist/{chunk-HIZAMJPT.js.map → chunk-K43T7N7O.js.map} +0 -0
- /package/dist/{chunk-DH3YH3TV.js.map → chunk-LCMXGM2P.js.map} +0 -0
- /package/dist/{chunk-KXDYBRRR.js.map → chunk-LLSX5T7X.js.map} +0 -0
- /package/dist/{chunk-G47XRVZA.js.map → chunk-MB4IEWLH.js.map} +0 -0
- /package/dist/{chunk-76HB456V.js.map → chunk-S6WBBSII.js.map} +0 -0
- /package/dist/{chunk-CK2CPZXB.js.map → chunk-U4UNC3RP.js.map} +0 -0
- /package/dist/{chunk-J6ATJUEE.js.map → chunk-WBZ4HP7D.js.map} +0 -0
- /package/dist/{chunk-32P6KUZP.js.map → chunk-X3LC6R37.js.map} +0 -0
- /package/dist/{chunk-5E55S5SI.js.map → chunk-XQ4II4BK.js.map} +0 -0
- /package/dist/{chunk-CMUNJZWN.js.map → chunk-YQCA4ZEJ.js.map} +0 -0
- /package/dist/{chunk-Y3MIFC5M.js.map → chunk-ZRCWXJDW.js.map} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
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 _chunkQ544C4Z7cjs = require('./chunk-Q544C4Z7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGH4WLDPScjs = require('./chunk-GH4WLDPS.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2MMEPNSXcjs = require('./chunk-2MMEPNSX.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkY5QXDVPPcjs = require('./chunk-Y5QXDVPP.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -35,16 +35,16 @@ var _chunkOAXASIVGcjs = require('./chunk-OAXASIVG.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkUBX3ATG5cjs = require('./chunk-UBX3ATG5.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkJJUV7Z4Lcjs = require('./chunk-JJUV7Z4L.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkCCWI3622cjs = require('./chunk-CCWI3622.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
@@ -59,11 +59,11 @@ var _chunkN6HNK25Acjs = require('./chunk-N6HNK25A.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkUNI3POHUcjs = require('./chunk-UNI3POHU.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkYXWGSDK4cjs = require('./chunk-YXWGSDK4.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -74,10 +74,10 @@ var _chunkSADRZ4YIcjs = require('./chunk-SADRZ4YI.cjs');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkOQHFHKUGcjs = require('./chunk-OQHFHKUG.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkEHAYNUOLcjs = require('./chunk-EHAYNUOL.cjs');
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
var _chunkUPKZU6QUcjs = require('./chunk-UPKZU6QU.cjs');
|
|
@@ -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 = _chunkY5QXDVPPcjs.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);
|
|
@@ -160,7 +160,7 @@ function useTicketActions(options) {
|
|
|
160
160
|
}, []);
|
|
161
161
|
const executeTicketAction = _react.useCallback.call(void 0,
|
|
162
162
|
async (toolName, args) => {
|
|
163
|
-
const res = await
|
|
163
|
+
const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, ticketActionEndpoint, {
|
|
164
164
|
method: "POST",
|
|
165
165
|
body: JSON.stringify({ tool_name: toolName, args })
|
|
166
166
|
});
|
|
@@ -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(_chunkY5QXDVPPcjs.TOAST_COPY.open_mirror_pending);
|
|
280
280
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
281
281
|
} else {
|
|
282
|
-
toast2(
|
|
282
|
+
toast2(_chunkY5QXDVPPcjs.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
|
+
_chunkY5QXDVPPcjs.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
|
+
_chunkY5QXDVPPcjs.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" }, _chunkY5QXDVPPcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
398
398
|
[updateTicket]
|
|
399
399
|
);
|
|
400
400
|
return _react.useMemo.call(void 0,
|
|
@@ -538,8 +538,8 @@ function useTicketsList(filters) {
|
|
|
538
538
|
const search = (_nullishCoalesce(filters.search, () => ( ""))).trim();
|
|
539
539
|
const status = (_nullishCoalesce(filters.status, () => ( ""))).trim().toLowerCase();
|
|
540
540
|
const statusFilter = status && status !== "all" ? status : "";
|
|
541
|
-
const page =
|
|
542
|
-
const pageSize =
|
|
541
|
+
const page = _chunkCCWI3622cjs.positiveInt.call(void 0, filters.page, 1);
|
|
542
|
+
const pageSize = _chunkCCWI3622cjs.positiveInt.call(void 0, filters.pageSize, DEFAULT_PAGE_SIZE, { max: _chunkCCWI3622cjs.PAGE_PARAM_LIMITS.maxPageSize });
|
|
543
543
|
const enabled = !!customerEmail;
|
|
544
544
|
const identityKey = customerEmail || "anon";
|
|
545
545
|
const query = _reactquery.useQuery.call(void 0, {
|
|
@@ -563,7 +563,7 @@ function useTicketsList(filters) {
|
|
|
563
563
|
pageSize
|
|
564
564
|
};
|
|
565
565
|
if (statusFilter) body.status = statusFilter;
|
|
566
|
-
const response = await
|
|
566
|
+
const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, findTicketEndpoint, {
|
|
567
567
|
method: "POST",
|
|
568
568
|
body: JSON.stringify(body)
|
|
569
569
|
});
|
|
@@ -578,7 +578,7 @@ function useTicketsList(filters) {
|
|
|
578
578
|
const totalCount = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'optionalAccess', _12 => _12.totalCount]), () => ( _optionalChain([data, 'optionalAccess', _13 => _13.count]))), () => ( _optionalChain([data, 'optionalAccess', _14 => _14.tickets, 'optionalAccess', _15 => _15.length]))), () => ( 0));
|
|
579
579
|
const echoedPage = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _16 => _16.page]), () => ( page));
|
|
580
580
|
const echoedPageSize = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _17 => _17.pageSize]), () => ( pageSize));
|
|
581
|
-
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => (
|
|
581
|
+
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => ( _chunkCCWI3622cjs.pageCount.call(void 0, totalCount, echoedPageSize)));
|
|
582
582
|
return {
|
|
583
583
|
tickets: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _19 => _19.tickets]), () => ( [])),
|
|
584
584
|
// Loading-state-truth = `data === undefined`. TanStack v5's
|
|
@@ -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(_chunkY5QXDVPPcjs.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 } = _chunkUNI3POHUcjs.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 > _chunkY5QXDVPPcjs.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,
|
|
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", ..._chunkUBX3ATG5cjs.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
|
+
_chunkUBX3ATG5cjs.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
|
+
_chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS
|
|
686
686
|
] })
|
|
687
687
|
] }),
|
|
688
688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
689
|
-
|
|
689
|
+
_chunkUNI3POHUcjs.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
|
+
_chunkUNI3POHUcjs.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 = _chunkUNI3POHUcjs.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-");
|
|
@@ -745,7 +745,7 @@ function useTicketEngagements(externalTicketId, enabled = true) {
|
|
|
745
745
|
// `['ticket-engagements', id]`; focus/mount refetch is the no-stream
|
|
746
746
|
// fallback.
|
|
747
747
|
queryFn: async () => {
|
|
748
|
-
const response = await
|
|
748
|
+
const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, listEngagementsEndpoint, {
|
|
749
749
|
method: "POST",
|
|
750
750
|
body: JSON.stringify({ ticket_id: externalTicketId })
|
|
751
751
|
});
|
|
@@ -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, _chunkGH4WLDPScjs.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 = _chunkUNI3POHUcjs.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
|
+
_chunkUNI3POHUcjs.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
|
+
_chunkUNI3POHUcjs.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: _chunkY5QXDVPPcjs.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
|
+
_chunkUNI3POHUcjs.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, _chunkUBX3ATG5cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBX3ATG5cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBX3ATG5cjs.AlertDialogHeader, { children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBX3ATG5cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBX3ATG5cjs.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
|
+
_chunkUBX3ATG5cjs.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: _chunkY5QXDVPPcjs.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, _chunkUBX3ATG5cjs.AlertDialogFooter, { children: [
|
|
900
900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunkUBX3ATG5cjs.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
|
+
_chunkUBX3ATG5cjs.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 = _chunkUNI3POHUcjs.useChatIdentity.call(void 0, );
|
|
972
|
+
const externalId = _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
973
973
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
974
|
-
const live =
|
|
974
|
+
const live = _chunkY5QXDVPPcjs.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
|
+
}, _chunkY5QXDVPPcjs.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,11 +1010,11 @@ 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, _chunkUNI3POHUcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1014
1014
|
}
|
|
1015
1015
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1016
1016
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1017
|
-
|
|
1017
|
+
_chunk2MMEPNSXcjs.EmptyState,
|
|
1018
1018
|
{
|
|
1019
1019
|
type: "generic",
|
|
1020
1020
|
title: "No conversation yet",
|
|
@@ -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
|
+
_chunkUNI3POHUcjs.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
|
+
_chunkUNI3POHUcjs.ChatMessageRow,
|
|
1062
1062
|
{
|
|
1063
1063
|
displayName: author,
|
|
1064
1064
|
avatarUrl: avatarSrc,
|
|
1065
|
-
timeLabel: eng.createdAt ?
|
|
1065
|
+
timeLabel: eng.createdAt ? _chunkUNI3POHUcjs.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, _chunkUBX3ATG5cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1068
1068
|
},
|
|
1069
1069
|
eng.id
|
|
1070
1070
|
);
|
|
@@ -1149,7 +1149,7 @@ function AssignedAgentRow({ assignedOwner }) {
|
|
|
1149
1149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h5", children: "Assigned to" }),
|
|
1150
1150
|
displayLabel ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 font-medium text-ods-text-primary", children: [
|
|
1151
1151
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1152
|
-
|
|
1152
|
+
_chunkOQHFHKUGcjs.SquareAvatar,
|
|
1153
1153
|
{
|
|
1154
1154
|
size: "sm",
|
|
1155
1155
|
variant: "round",
|
|
@@ -1177,11 +1177,11 @@ function TicketRow({
|
|
|
1177
1177
|
onActionCollapsed,
|
|
1178
1178
|
id
|
|
1179
1179
|
}) {
|
|
1180
|
-
const optimistic =
|
|
1180
|
+
const optimistic = _chunkY5QXDVPPcjs.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 ? _chunkUNI3POHUcjs.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
|
+
_chunkUNI3POHUcjs.ChatTicketItem,
|
|
1219
1219
|
{
|
|
1220
1220
|
ticket: tileData,
|
|
1221
1221
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1247,14 +1247,14 @@ 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 = _chunkUNI3POHUcjs.useChatIdentity.call(void 0, );
|
|
1252
1252
|
if (identity.isLoading) {
|
|
1253
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1254
1254
|
}
|
|
1255
1255
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.email])) {
|
|
1256
1256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1257
|
-
|
|
1257
|
+
_chunk2MMEPNSXcjs.EmptyState,
|
|
1258
1258
|
{
|
|
1259
1259
|
type: "generic",
|
|
1260
1260
|
title: "Sign in to manage tickets",
|
|
@@ -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
|
+
_chunkUNI3POHUcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
|
|
1323
1323
|
] }),
|
|
1324
1324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1325
1325
|
_chunkWRJVEB2Jcjs.Button,
|
|
@@ -1335,22 +1335,22 @@ function TicketCenterAuthed({
|
|
|
1335
1335
|
)
|
|
1336
1336
|
] })
|
|
1337
1337
|
] }),
|
|
1338
|
-
isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {}) : merged.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1339
|
-
|
|
1338
|
+
isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {}) : merged.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1339
|
+
_chunk2MMEPNSXcjs.EmptyState,
|
|
1340
1340
|
{
|
|
1341
1341
|
type: "generic",
|
|
1342
1342
|
title: "No tickets yet",
|
|
1343
1343
|
description: "Open one above to start the conversation.",
|
|
1344
1344
|
showCTA: false
|
|
1345
1345
|
}
|
|
1346
|
-
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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: _chunkUBX3ATG5cjs.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: _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1354
1354
|
supportSystemDown,
|
|
1355
1355
|
onSendMessage: actions.sendMessage,
|
|
1356
1356
|
onClose: actions.closeTicket,
|
|
@@ -1364,7 +1364,7 @@ function TicketCenterAuthed({
|
|
|
1364
1364
|
}
|
|
1365
1365
|
function TicketCenterSkeleton() {
|
|
1366
1366
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-6", children: [
|
|
1367
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1367
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "p-6", children: [
|
|
1368
1368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.Skeleton, { className: "mb-4 h-7 w-48" }),
|
|
1369
1369
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.Skeleton, { className: "mb-3 h-10 w-full" }),
|
|
1370
1370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.Skeleton, { className: "h-24 w-full" })
|
|
@@ -1373,7 +1373,7 @@ function TicketCenterSkeleton() {
|
|
|
1373
1373
|
] });
|
|
1374
1374
|
}
|
|
1375
1375
|
function TicketListSkeleton() {
|
|
1376
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1376
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "overflow-hidden", children: [0, 1, 2].map((i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-4 border-b border-ods-border px-4 last:border-b-0", children: [
|
|
1377
1377
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
1378
1378
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.Skeleton, { className: "h-4 w-2/3" }),
|
|
1379
1379
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.Skeleton, { className: "h-3 w-full" })
|
|
@@ -1404,10 +1404,10 @@ function HelpCenterCard({
|
|
|
1404
1404
|
onClearReplyError,
|
|
1405
1405
|
id
|
|
1406
1406
|
}) {
|
|
1407
|
-
const optimistic =
|
|
1407
|
+
const optimistic = _chunkY5QXDVPPcjs.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 ? _chunkUNI3POHUcjs.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,17 +1420,17 @@ 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 = _chunkY5QXDVPPcjs.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,
|
|
1433
|
-
|
|
1433
|
+
_chunkOQHFHKUGcjs.StatusBadge,
|
|
1434
1434
|
{
|
|
1435
1435
|
text: `${unreadCount} NEW`,
|
|
1436
1436
|
colorScheme: "warning",
|
|
@@ -1439,16 +1439,16 @@ function HelpCenterCard({
|
|
|
1439
1439
|
}
|
|
1440
1440
|
),
|
|
1441
1441
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1442
|
-
|
|
1442
|
+
_chunkOQHFHKUGcjs.StatusBadge,
|
|
1443
1443
|
{
|
|
1444
1444
|
text: rawStatus,
|
|
1445
|
-
colorScheme:
|
|
1445
|
+
colorScheme: _chunkOQHFHKUGcjs.getStatusColorScheme.call(void 0, rawStatus),
|
|
1446
1446
|
variant: "card",
|
|
1447
1447
|
className: "border border-ods-border"
|
|
1448
1448
|
}
|
|
1449
1449
|
),
|
|
1450
1450
|
priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1451
|
-
|
|
1451
|
+
_chunkOQHFHKUGcjs.StatusBadge,
|
|
1452
1452
|
{
|
|
1453
1453
|
text: priority,
|
|
1454
1454
|
colorScheme: mapPriorityScheme(priority),
|
|
@@ -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
|
+
_chunkGH4WLDPScjs.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
|
+
_chunkQ544C4Z7cjs.ContactForm,
|
|
1581
1581
|
{
|
|
1582
1582
|
title: "Open a new ticket",
|
|
1583
1583
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1614,31 +1614,31 @@ 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 = _chunkUNI3POHUcjs.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(_chunkUBX3ATG5cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1623
1623
|
const status = searchParams.get("status") || "all";
|
|
1624
|
-
const ticketParam = searchParams.get(
|
|
1625
|
-
const page =
|
|
1624
|
+
const ticketParam = searchParams.get(_chunkUBX3ATG5cjs.TICKET_OPEN_PARAM) || "";
|
|
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
|
+
_chunkGH4WLDPScjs.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, _chunkGH4WLDPScjs.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,
|
|
1641
|
-
|
|
1640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGH4WLDPScjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1641
|
+
_chunk2MMEPNSXcjs.EmptyState,
|
|
1642
1642
|
{
|
|
1643
1643
|
type: "generic",
|
|
1644
1644
|
title: "Sign in to manage tickets",
|
|
@@ -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(_chunkUBX3ATG5cjs.TICKET_OPEN_PARAM, externalId);
|
|
1693
|
+
else params.delete(_chunkUBX3ATG5cjs.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, _chunkGH4WLDPScjs.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, _chunkGH4WLDPScjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1777
1777
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
|
-
|
|
1778
|
+
_chunkGH4WLDPScjs.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: _chunkUBX3ATG5cjs.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: _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1814
1814
|
supportSystemDown,
|
|
1815
1815
|
onSendMessage: actions.sendMessage,
|
|
1816
1816
|
onClose: actions.closeTicket,
|
|
@@ -1822,9 +1822,9 @@ function HelpCenterListAuthed({
|
|
|
1822
1822
|
ticket.id
|
|
1823
1823
|
)) })
|
|
1824
1824
|
) }),
|
|
1825
|
-
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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, _chunkGH4WLDPScjs.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-SWJ6QLD7.cjs.map
|