@flamingo-stack/openframe-frontend-core 0.0.591 → 0.0.592
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-BQE4HTDR.js → chunk-2JNCZDJR.js} +2 -2
- package/dist/{chunk-YEKPHSWC.cjs → chunk-3JOBM57M.cjs} +22 -22
- package/dist/{chunk-YEKPHSWC.cjs.map → chunk-3JOBM57M.cjs.map} +1 -1
- package/dist/{chunk-WKOJL6A2.cjs → chunk-5LJZWTOE.cjs} +10 -10
- package/dist/{chunk-WKOJL6A2.cjs.map → chunk-5LJZWTOE.cjs.map} +1 -1
- package/dist/{chunk-NXYOUBOL.cjs → chunk-5MHDMDPX.cjs} +21 -21
- package/dist/{chunk-NXYOUBOL.cjs.map → chunk-5MHDMDPX.cjs.map} +1 -1
- package/dist/{chunk-U2XRBHBX.js → chunk-6GMMR667.js} +9 -9
- package/dist/{chunk-WIMGAPVH.js → chunk-ASFEUMFW.js} +4 -4
- package/dist/{chunk-4UP2SGSO.js → chunk-AUA6OSU7.js} +3 -3
- package/dist/{chunk-YMAHVHCX.cjs → chunk-BZEWPW5A.cjs} +3 -3
- package/dist/{chunk-YMAHVHCX.cjs.map → chunk-BZEWPW5A.cjs.map} +1 -1
- package/dist/{chunk-SW3CZ2KS.cjs → chunk-COY57SZP.cjs} +129 -84
- package/dist/chunk-COY57SZP.cjs.map +1 -0
- package/dist/{chunk-VGBTCUPG.js → chunk-CRW4WRMH.js} +2 -2
- package/dist/{chunk-E455M3WJ.js → chunk-F543W3F2.js} +4 -4
- package/dist/{chunk-ZZF6Z7KB.cjs → chunk-FKXDDJEQ.cjs} +11 -11
- package/dist/{chunk-ZZF6Z7KB.cjs.map → chunk-FKXDDJEQ.cjs.map} +1 -1
- package/dist/{chunk-RGCBUNMJ.js → chunk-FSCQOWXI.js} +2 -2
- package/dist/{chunk-USDG6IWK.cjs → chunk-FVADHGDP.cjs} +7 -7
- package/dist/{chunk-USDG6IWK.cjs.map → chunk-FVADHGDP.cjs.map} +1 -1
- package/dist/{chunk-OKWGSJAI.js → chunk-GGQZBSFN.js} +1 -1
- package/dist/chunk-GGQZBSFN.js.map +1 -0
- package/dist/{chunk-RNXY35DZ.cjs → chunk-H64ZHSYR.cjs} +1 -1
- package/dist/chunk-H64ZHSYR.cjs.map +1 -0
- package/dist/{chunk-OS72RV57.cjs → chunk-HGEA6PW7.cjs} +3 -3
- package/dist/{chunk-OS72RV57.cjs.map → chunk-HGEA6PW7.cjs.map} +1 -1
- package/dist/{chunk-ZFHIMK4W.js → chunk-JIINHJIT.js} +5 -5
- package/dist/{chunk-CWO3YFVZ.js → chunk-LRQCKSZC.js} +2 -2
- package/dist/{chunk-LL6J6N76.js → chunk-LXD2QJFG.js} +3 -3
- package/dist/{chunk-2TJSDSXW.js → chunk-MOHSA65M.js} +2 -2
- package/dist/{chunk-JHVCH3CK.cjs → chunk-NEFNARFF.cjs} +6 -6
- package/dist/{chunk-JHVCH3CK.cjs.map → chunk-NEFNARFF.cjs.map} +1 -1
- package/dist/{chunk-XK7SLEZB.cjs → chunk-NICIJRZ4.cjs} +3 -3
- package/dist/{chunk-XK7SLEZB.cjs.map → chunk-NICIJRZ4.cjs.map} +1 -1
- package/dist/{chunk-LUWFLC3T.js → chunk-NYH3NVUF.js} +3 -3
- package/dist/{chunk-BOED5ISE.js → chunk-NZQYZKIN.js} +6 -6
- package/dist/{chunk-AZ4A4RBL.cjs → chunk-O4VGEJ7I.cjs} +60 -60
- package/dist/{chunk-AZ4A4RBL.cjs.map → chunk-O4VGEJ7I.cjs.map} +1 -1
- package/dist/{chunk-B7ZCBGUN.cjs → chunk-O4VZOA2Q.cjs} +3 -3
- package/dist/{chunk-B7ZCBGUN.cjs.map → chunk-O4VZOA2Q.cjs.map} +1 -1
- package/dist/{chunk-QVAKJB64.js → chunk-OO6AMBHV.js} +2 -2
- package/dist/{chunk-U3V4TPT5.js → chunk-R25AUM2R.js} +3 -3
- package/dist/{chunk-VGY7D6LG.cjs → chunk-STYNZ4QM.cjs} +3 -3
- package/dist/{chunk-VGY7D6LG.cjs.map → chunk-STYNZ4QM.cjs.map} +1 -1
- package/dist/{chunk-FHKP4H6N.cjs → chunk-TQMZFXWZ.cjs} +5 -5
- package/dist/{chunk-FHKP4H6N.cjs.map → chunk-TQMZFXWZ.cjs.map} +1 -1
- package/dist/{chunk-AMCARR6Y.cjs → chunk-V7RUX5CX.cjs} +15 -15
- package/dist/{chunk-AMCARR6Y.cjs.map → chunk-V7RUX5CX.cjs.map} +1 -1
- package/dist/{chunk-CXILZQFT.cjs → chunk-W2RUBABW.cjs} +19 -19
- package/dist/{chunk-CXILZQFT.cjs.map → chunk-W2RUBABW.cjs.map} +1 -1
- package/dist/{chunk-DKVNW2QD.cjs → chunk-WOGLPNK3.cjs} +3 -3
- package/dist/{chunk-DKVNW2QD.cjs.map → chunk-WOGLPNK3.cjs.map} +1 -1
- package/dist/{chunk-HV6MO4HG.cjs → chunk-WP3AVAMP.cjs} +37 -37
- package/dist/{chunk-HV6MO4HG.cjs.map → chunk-WP3AVAMP.cjs.map} +1 -1
- package/dist/{chunk-ZYA6274A.js → chunk-WVHQQ3NY.js} +87 -42
- package/dist/chunk-WVHQQ3NY.js.map +1 -0
- package/dist/{chunk-WMZ5AUTB.js → chunk-WZJOILPU.js} +2 -2
- package/dist/{chunk-ALTSOKHP.js → chunk-XHDBU5EI.js} +2 -2
- package/dist/{chunk-T6RY2MC6.js → chunk-XNGE5EE5.js} +8 -8
- package/dist/{chunk-5SJSG5RV.cjs → chunk-YBENO4XG.cjs} +8 -8
- package/dist/{chunk-5SJSG5RV.cjs.map → chunk-YBENO4XG.cjs.map} +1 -1
- package/dist/{chunk-OBJEFMOI.cjs → chunk-ZT2Z2BYH.cjs} +66 -66
- package/dist/{chunk-OBJEFMOI.cjs.map → chunk-ZT2Z2BYH.cjs.map} +1 -1
- package/dist/{chunk-BATTVHZT.js → chunk-ZZHHKE2Q.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +27 -27
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +40 -40
- package/dist/components/index.js +18 -18
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/meeting-scheduler/index.js +5 -5
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/data-table/data-table-body.d.ts +18 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row.d.ts +8 -1
- 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 +8 -1
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/data-table/index.d.ts +1 -1
- package/dist/components/ui/entity-image.d.ts +12 -1
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.js +3 -3
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/search-params.cjs.map +1 -1
- package/dist/utils/search-params.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/data-table-row-height.test.tsx +139 -0
- package/src/__tests__/mlg-platform-leaves.test.ts +1 -1
- package/src/components/ui/data-table/data-table-body.tsx +37 -7
- package/src/components/ui/data-table/data-table-row.tsx +24 -6
- package/src/components/ui/data-table/data-table-skeleton.tsx +24 -3
- package/src/components/ui/entity-image.tsx +19 -3
- package/src/hooks/state/__tests__/use-api-params.test.ts +1 -1
- package/src/utils/search-params.ts +4 -4
- package/dist/chunk-OKWGSJAI.js.map +0 -1
- package/dist/chunk-RNXY35DZ.cjs.map +0 -1
- package/dist/chunk-SW3CZ2KS.cjs.map +0 -1
- package/dist/chunk-ZYA6274A.js.map +0 -1
- /package/dist/{chunk-BQE4HTDR.js.map → chunk-2JNCZDJR.js.map} +0 -0
- /package/dist/{chunk-U2XRBHBX.js.map → chunk-6GMMR667.js.map} +0 -0
- /package/dist/{chunk-WIMGAPVH.js.map → chunk-ASFEUMFW.js.map} +0 -0
- /package/dist/{chunk-4UP2SGSO.js.map → chunk-AUA6OSU7.js.map} +0 -0
- /package/dist/{chunk-VGBTCUPG.js.map → chunk-CRW4WRMH.js.map} +0 -0
- /package/dist/{chunk-E455M3WJ.js.map → chunk-F543W3F2.js.map} +0 -0
- /package/dist/{chunk-RGCBUNMJ.js.map → chunk-FSCQOWXI.js.map} +0 -0
- /package/dist/{chunk-ZFHIMK4W.js.map → chunk-JIINHJIT.js.map} +0 -0
- /package/dist/{chunk-CWO3YFVZ.js.map → chunk-LRQCKSZC.js.map} +0 -0
- /package/dist/{chunk-LL6J6N76.js.map → chunk-LXD2QJFG.js.map} +0 -0
- /package/dist/{chunk-2TJSDSXW.js.map → chunk-MOHSA65M.js.map} +0 -0
- /package/dist/{chunk-LUWFLC3T.js.map → chunk-NYH3NVUF.js.map} +0 -0
- /package/dist/{chunk-BOED5ISE.js.map → chunk-NZQYZKIN.js.map} +0 -0
- /package/dist/{chunk-QVAKJB64.js.map → chunk-OO6AMBHV.js.map} +0 -0
- /package/dist/{chunk-U3V4TPT5.js.map → chunk-R25AUM2R.js.map} +0 -0
- /package/dist/{chunk-WMZ5AUTB.js.map → chunk-WZJOILPU.js.map} +0 -0
- /package/dist/{chunk-ALTSOKHP.js.map → chunk-XHDBU5EI.js.map} +0 -0
- /package/dist/{chunk-T6RY2MC6.js.map → chunk-XNGE5EE5.js.map} +0 -0
- /package/dist/{chunk-BATTVHZT.js.map → chunk-ZZHHKE2Q.js.map} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
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 _chunkW2RUBABWcjs = require('./chunk-W2RUBABW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5LJZWTOEcjs = require('./chunk-5LJZWTOE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkO4VZOA2Qcjs = require('./chunk-O4VZOA2Q.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkNICIJRZ4cjs = require('./chunk-NICIJRZ4.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,16 +33,16 @@ var _chunkXK7SLEZBcjs = require('./chunk-XK7SLEZB.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkCOY57SZPcjs = require('./chunk-COY57SZP.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkFKXDDJEQcjs = require('./chunk-FKXDDJEQ.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkH64ZHSYRcjs = require('./chunk-H64ZHSYR.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkY7ITKISQcjs = require('./chunk-Y7ITKISQ.cjs');
|
|
@@ -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 = _chunkNICIJRZ4cjs.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(_chunkNICIJRZ4cjs.TOAST_COPY.open_mirror_pending);
|
|
277
277
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
278
278
|
} else {
|
|
279
|
-
toast2(
|
|
279
|
+
toast2(_chunkNICIJRZ4cjs.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
|
+
_chunkNICIJRZ4cjs.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
|
+
_chunkNICIJRZ4cjs.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" }, _chunkNICIJRZ4cjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
395
395
|
[updateTicket]
|
|
396
396
|
);
|
|
397
397
|
return _react.useMemo.call(void 0,
|
|
@@ -535,8 +535,8 @@ function useTicketsList(filters) {
|
|
|
535
535
|
const search = (_nullishCoalesce(filters.search, () => ( ""))).trim();
|
|
536
536
|
const status = (_nullishCoalesce(filters.status, () => ( ""))).trim().toLowerCase();
|
|
537
537
|
const statusFilter = status && status !== "all" ? status : "";
|
|
538
|
-
const page =
|
|
539
|
-
const pageSize =
|
|
538
|
+
const page = _chunkH64ZHSYRcjs.positiveInt.call(void 0, filters.page, 1);
|
|
539
|
+
const pageSize = _chunkH64ZHSYRcjs.positiveInt.call(void 0, filters.pageSize, DEFAULT_PAGE_SIZE, { max: _chunkH64ZHSYRcjs.PAGE_PARAM_LIMITS.maxPageSize });
|
|
540
540
|
const enabled = !!customerEmail;
|
|
541
541
|
const identityKey = customerEmail || "anon";
|
|
542
542
|
const query = _reactquery.useQuery.call(void 0, {
|
|
@@ -575,7 +575,7 @@ function useTicketsList(filters) {
|
|
|
575
575
|
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));
|
|
576
576
|
const echoedPage = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _16 => _16.page]), () => ( page));
|
|
577
577
|
const echoedPageSize = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _17 => _17.pageSize]), () => ( pageSize));
|
|
578
|
-
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => (
|
|
578
|
+
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => ( _chunkH64ZHSYRcjs.pageCount.call(void 0, totalCount, echoedPageSize)));
|
|
579
579
|
return {
|
|
580
580
|
tickets: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _19 => _19.tickets]), () => ( [])),
|
|
581
581
|
// Loading-state-truth = `data === undefined`. TanStack v5's
|
|
@@ -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(_chunkNICIJRZ4cjs.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
623
|
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkTVPJ5DIBcjs.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 > _chunkNICIJRZ4cjs.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
|
+
_chunkCOY57SZPcjs.Textarea,
|
|
669
669
|
{
|
|
670
670
|
id: "ticket-content",
|
|
671
671
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -679,7 +679,7 @@ 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
|
+
_chunkNICIJRZ4cjs.TICKET_TEXT_MAX_CHARS
|
|
683
683
|
] })
|
|
684
684
|
] }),
|
|
685
685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -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, _chunk5LJZWTOEcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -848,7 +848,7 @@ function TicketReplyComposer({
|
|
|
848
848
|
sending: busy || attachments.hasInflightUploads,
|
|
849
849
|
disabled: supportSystemDown,
|
|
850
850
|
allowEmptySend: hasReadyFiles,
|
|
851
|
-
maxLength:
|
|
851
|
+
maxLength: _chunkNICIJRZ4cjs.TICKET_TEXT_MAX_CHARS,
|
|
852
852
|
onSend: handleSend
|
|
853
853
|
}
|
|
854
854
|
),
|
|
@@ -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, _chunkCOY57SZPcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOY57SZPcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
881
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOY57SZPcjs.AlertDialogHeader, { children: [
|
|
882
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOY57SZPcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOY57SZPcjs.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
|
+
_chunkCOY57SZPcjs.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: _chunkNICIJRZ4cjs.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, _chunkCOY57SZPcjs.AlertDialogFooter, { children: [
|
|
897
897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
|
|
898
|
+
_chunkCOY57SZPcjs.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
|
+
_chunkCOY57SZPcjs.AlertDialogAction,
|
|
907
907
|
{
|
|
908
908
|
onClick: () => void confirmClose(),
|
|
909
909
|
disabled: busy,
|
|
@@ -966,9 +966,9 @@ 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
968
|
const identity = _chunkTVPJ5DIBcjs.useChatIdentity.call(void 0, );
|
|
969
|
-
const externalId =
|
|
969
|
+
const externalId = _chunkNICIJRZ4cjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
970
970
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
971
|
-
const live =
|
|
971
|
+
const live = _chunkNICIJRZ4cjs.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
|
+
}, _chunkNICIJRZ4cjs.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) : [];
|
|
@@ -1011,7 +1011,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1013
1013
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1014
|
-
|
|
1014
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1015
1015
|
{
|
|
1016
1016
|
type: "generic",
|
|
1017
1017
|
title: "No conversation yet",
|
|
@@ -1061,7 +1061,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1061
1061
|
avatarUrl: avatarSrc,
|
|
1062
1062
|
timeLabel: eng.createdAt ? _chunkTVPJ5DIBcjs.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, _chunkCOY57SZPcjs.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 = _chunkNICIJRZ4cjs.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);
|
|
@@ -1244,14 +1244,14 @@ function TicketRow({
|
|
|
1244
1244
|
|
|
1245
1245
|
// src/components/tickets/ticket-center.tsx
|
|
1246
1246
|
|
|
1247
|
-
function TicketCenter({ toast: toast2 =
|
|
1247
|
+
function TicketCenter({ toast: toast2 = _chunkFKXDDJEQcjs.toast } = {}) {
|
|
1248
1248
|
const identity = _chunkTVPJ5DIBcjs.useChatIdentity.call(void 0, );
|
|
1249
1249
|
if (identity.isLoading) {
|
|
1250
1250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1251
1251
|
}
|
|
1252
1252
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.email])) {
|
|
1253
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1254
|
-
|
|
1254
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1255
1255
|
{
|
|
1256
1256
|
type: "generic",
|
|
1257
1257
|
title: "Sign in to manage tickets",
|
|
@@ -1333,7 +1333,7 @@ function TicketCenterAuthed({
|
|
|
1333
1333
|
] })
|
|
1334
1334
|
] }),
|
|
1335
1335
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {}) : merged.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6I2DGKCcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
|
-
|
|
1336
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1337
1337
|
{
|
|
1338
1338
|
type: "generic",
|
|
1339
1339
|
title: "No tickets yet",
|
|
@@ -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: _chunkCOY57SZPcjs.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: _chunkNICIJRZ4cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1351
1351
|
supportSystemDown,
|
|
1352
1352
|
onSendMessage: actions.sendMessage,
|
|
1353
1353
|
onClose: actions.closeTicket,
|
|
@@ -1401,7 +1401,7 @@ function HelpCenterCard({
|
|
|
1401
1401
|
onClearReplyError,
|
|
1402
1402
|
id
|
|
1403
1403
|
}) {
|
|
1404
|
-
const optimistic =
|
|
1404
|
+
const optimistic = _chunkNICIJRZ4cjs.isOptimistic.call(void 0, ticket);
|
|
1405
1405
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1406
1406
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1407
1407
|
const relativeUpdated = ticket.hubspot_updated_at ? _chunkTVPJ5DIBcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
@@ -1423,7 +1423,7 @@ function HelpCenterCard({
|
|
|
1423
1423
|
});
|
|
1424
1424
|
return () => cancelAnimationFrame(raf);
|
|
1425
1425
|
}, [isExpanded]);
|
|
1426
|
-
const live =
|
|
1426
|
+
const live = _chunkNICIJRZ4cjs.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
|
+
_chunk5LJZWTOEcjs.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
|
+
_chunkW2RUBABWcjs.ContactForm,
|
|
1577
1577
|
{
|
|
1578
1578
|
title: "Open a new ticket",
|
|
1579
1579
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1610,31 +1610,31 @@ function HelpCenterCreateForm({
|
|
|
1610
1610
|
|
|
1611
1611
|
// src/components/tickets/help-center-list.tsx
|
|
1612
1612
|
|
|
1613
|
-
function HelpCenterList({ toast: toast2 =
|
|
1613
|
+
function HelpCenterList({ toast: toast2 = _chunkFKXDDJEQcjs.toast, backButton, title, shell } = {}) {
|
|
1614
1614
|
const identity = _chunkTVPJ5DIBcjs.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(_chunkCOY57SZPcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1619
1619
|
const status = searchParams.get("status") || "all";
|
|
1620
|
-
const ticketParam = searchParams.get(
|
|
1621
|
-
const page =
|
|
1620
|
+
const ticketParam = searchParams.get(_chunkCOY57SZPcjs.TICKET_OPEN_PARAM) || "";
|
|
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
|
+
_chunk5LJZWTOEcjs.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, _chunk5LJZWTOEcjs.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,
|
|
1637
|
-
|
|
1636
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LJZWTOEcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1637
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1638
1638
|
{
|
|
1639
1639
|
type: "generic",
|
|
1640
1640
|
title: "Sign in to manage tickets",
|
|
@@ -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(_chunkCOY57SZPcjs.TICKET_OPEN_PARAM, externalId);
|
|
1689
|
+
else params.delete(_chunkCOY57SZPcjs.TICKET_OPEN_PARAM);
|
|
1690
1690
|
const qs = params.toString();
|
|
1691
1691
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1692
1692
|
},
|
|
@@ -1743,7 +1743,7 @@ function HelpCenterListAuthed({
|
|
|
1743
1743
|
[tickets, ticketParam, setOpenTicket]
|
|
1744
1744
|
);
|
|
1745
1745
|
const merged = [...optimisticTickets, ...tickets];
|
|
1746
|
-
|
|
1746
|
+
_chunkFKXDDJEQcjs.useScrollToHash.call(void 0, tickets, { headerOffset: _chunkYXWGSDK4cjs.STICKY_HEADER_OFFSET_PX });
|
|
1747
1747
|
const hasActiveFilters = search !== "" || status !== "" && status !== "all";
|
|
1748
1748
|
const hasResults = merged.length > 0;
|
|
1749
1749
|
const form = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1763,15 +1763,15 @@ 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, _chunk5LJZWTOEcjs.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, _chunk5LJZWTOEcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1773
1773
|
) : !hasResults ? hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1774
|
-
|
|
1774
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1775
1775
|
{
|
|
1776
1776
|
type: "search",
|
|
1777
1777
|
title: "No tickets found",
|
|
@@ -1786,7 +1786,7 @@ function HelpCenterListAuthed({
|
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
1788
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1789
|
-
|
|
1789
|
+
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1790
1790
|
{
|
|
1791
1791
|
type: "generic",
|
|
1792
1792
|
title: "No tickets yet",
|
|
@@ -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: _chunkCOY57SZPcjs.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: _chunkNICIJRZ4cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1813
1813
|
supportSystemDown,
|
|
1814
1814
|
onSendMessage: actions.sendMessage,
|
|
1815
1815
|
onClose: actions.closeTicket,
|
|
@@ -1821,9 +1821,9 @@ function HelpCenterListAuthed({
|
|
|
1821
1821
|
ticket.id
|
|
1822
1822
|
)) })
|
|
1823
1823
|
) }),
|
|
1824
|
-
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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, _chunk5LJZWTOEcjs.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-ZT2Z2BYH.cjs.map
|