@flamingo-stack/openframe-frontend-core 0.0.595-snapshot.20260906014257 → 0.0.595-snapshot.20260906020313
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-AB4Q2IPB.cjs → chunk-2R46YKHW.cjs} +49 -49
- package/dist/{chunk-AB4Q2IPB.cjs.map → chunk-2R46YKHW.cjs.map} +1 -1
- package/dist/{chunk-DU6ZAP62.js → chunk-2YM3REY7.js} +2 -2
- package/dist/{chunk-N7XZN7OC.cjs → chunk-32E6F632.cjs} +22 -29
- package/dist/chunk-32E6F632.cjs.map +1 -0
- package/dist/{chunk-BHHZB2FG.cjs → chunk-3UTLRMX7.cjs} +33 -33
- package/dist/{chunk-BHHZB2FG.cjs.map → chunk-3UTLRMX7.cjs.map} +1 -1
- package/dist/{chunk-H3I5Y6DX.js → chunk-57JF4KQC.js} +2 -2
- package/dist/{chunk-GPSC4FU2.cjs → chunk-BSTJHQ7I.cjs} +17 -17
- package/dist/{chunk-GPSC4FU2.cjs.map → chunk-BSTJHQ7I.cjs.map} +1 -1
- package/dist/{chunk-UEVC5ERE.js → chunk-ERMGUSXZ.js} +4 -4
- package/dist/{chunk-HFU2BZTT.cjs → chunk-F7DK23HY.cjs} +3 -3
- package/dist/{chunk-HFU2BZTT.cjs.map → chunk-F7DK23HY.cjs.map} +1 -1
- package/dist/{chunk-A3LISKQI.cjs → chunk-FZW2QZHZ.cjs} +3 -3
- package/dist/{chunk-A3LISKQI.cjs.map → chunk-FZW2QZHZ.cjs.map} +1 -1
- package/dist/{chunk-DBOYOPUN.cjs → chunk-GYDWB4IY.cjs} +4 -4
- package/dist/{chunk-DBOYOPUN.cjs.map → chunk-GYDWB4IY.cjs.map} +1 -1
- package/dist/{chunk-UF6YLMFA.js → chunk-GYROQPYD.js} +2 -2
- package/dist/{chunk-RRD6OFQT.cjs → chunk-H2CNA2SC.cjs} +3 -3
- package/dist/{chunk-RRD6OFQT.cjs.map → chunk-H2CNA2SC.cjs.map} +1 -1
- package/dist/{chunk-3SXCQENB.cjs → chunk-H4BI6JZB.cjs} +34 -34
- package/dist/{chunk-3SXCQENB.cjs.map → chunk-H4BI6JZB.cjs.map} +1 -1
- package/dist/{chunk-62CWGJCL.js → chunk-HFZ26ZGM.js} +5 -5
- package/dist/{chunk-4B7YTQMT.cjs → chunk-HIU35GC3.cjs} +13 -13
- package/dist/{chunk-4B7YTQMT.cjs.map → chunk-HIU35GC3.cjs.map} +1 -1
- package/dist/{chunk-LYXQSDZK.cjs → chunk-JQVRZM4C.cjs} +4 -4
- package/dist/{chunk-LYXQSDZK.cjs.map → chunk-JQVRZM4C.cjs.map} +1 -1
- package/dist/{chunk-GOJ7P4OI.cjs → chunk-KPSN5PRE.cjs} +16 -16
- package/dist/{chunk-GOJ7P4OI.cjs.map → chunk-KPSN5PRE.cjs.map} +1 -1
- package/dist/{chunk-DS44JYXX.js → chunk-LCUBWKLU.js} +2 -2
- package/dist/{chunk-7L7SD5EP.js → chunk-LOG5LGYW.js} +5 -5
- package/dist/{chunk-SONJARWM.js → chunk-M6RPMGZ2.js} +2 -2
- package/dist/{chunk-3XNNRCTJ.js → chunk-NUXTHLVO.js} +4 -4
- package/dist/{chunk-B77TGMS4.js → chunk-OWJAGIBQ.js} +22 -29
- package/dist/chunk-OWJAGIBQ.js.map +1 -0
- package/dist/{chunk-ADGNDYLL.cjs → chunk-PLJ5RZHX.cjs} +3 -3
- package/dist/{chunk-ADGNDYLL.cjs.map → chunk-PLJ5RZHX.cjs.map} +1 -1
- package/dist/{chunk-AQ2EUEUT.cjs → chunk-PVJK4XN5.cjs} +17 -17
- package/dist/{chunk-AQ2EUEUT.cjs.map → chunk-PVJK4XN5.cjs.map} +1 -1
- package/dist/{chunk-XQBSMVFM.js → chunk-RXMDRLVE.js} +2 -2
- package/dist/{chunk-63P75RDF.js → chunk-TTP3R3TM.js} +2 -2
- package/dist/{chunk-AMRX4I6O.js → chunk-UHFGTELV.js} +2 -2
- package/dist/{chunk-XWMNVJYM.cjs → chunk-VTDOLAPW.cjs} +10 -10
- package/dist/{chunk-XWMNVJYM.cjs.map → chunk-VTDOLAPW.cjs.map} +1 -1
- package/dist/{chunk-LFT3OVZN.js → chunk-W6KQQMNV.js} +2 -2
- package/dist/{chunk-UECG6HJ5.js → chunk-XHBPO53U.js} +3 -3
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/auth/terms-agreement-label.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +20 -20
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/checkbox-block.d.ts +2 -1
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/icon-tile.d.ts +3 -2
- package/dist/components/ui/icon-tile.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/policy-link.d.ts +9 -1
- package/dist/components/ui/policy-link.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/utils/hubspot-meetings-convention.d.ts +3 -1
- package/dist/utils/hubspot-meetings-convention.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/meeting-scheduler-details-first.test.tsx +22 -2
- package/src/components/features/auth/terms-agreement-label.tsx +6 -16
- package/src/components/meeting-scheduler/booking-form.tsx +3 -1
- package/src/components/ui/checkbox-block.tsx +4 -1
- package/src/components/ui/icon-tile.tsx +3 -2
- package/src/components/ui/policy-link.tsx +18 -2
- package/src/utils/hubspot-meetings-convention.ts +4 -2
- package/dist/chunk-B77TGMS4.js.map +0 -1
- package/dist/chunk-N7XZN7OC.cjs.map +0 -1
- /package/dist/{chunk-DU6ZAP62.js.map → chunk-2YM3REY7.js.map} +0 -0
- /package/dist/{chunk-H3I5Y6DX.js.map → chunk-57JF4KQC.js.map} +0 -0
- /package/dist/{chunk-UEVC5ERE.js.map → chunk-ERMGUSXZ.js.map} +0 -0
- /package/dist/{chunk-UF6YLMFA.js.map → chunk-GYROQPYD.js.map} +0 -0
- /package/dist/{chunk-62CWGJCL.js.map → chunk-HFZ26ZGM.js.map} +0 -0
- /package/dist/{chunk-DS44JYXX.js.map → chunk-LCUBWKLU.js.map} +0 -0
- /package/dist/{chunk-7L7SD5EP.js.map → chunk-LOG5LGYW.js.map} +0 -0
- /package/dist/{chunk-SONJARWM.js.map → chunk-M6RPMGZ2.js.map} +0 -0
- /package/dist/{chunk-3XNNRCTJ.js.map → chunk-NUXTHLVO.js.map} +0 -0
- /package/dist/{chunk-XQBSMVFM.js.map → chunk-RXMDRLVE.js.map} +0 -0
- /package/dist/{chunk-63P75RDF.js.map → chunk-TTP3R3TM.js.map} +0 -0
- /package/dist/{chunk-AMRX4I6O.js.map → chunk-UHFGTELV.js.map} +0 -0
- /package/dist/{chunk-LFT3OVZN.js.map → chunk-W6KQQMNV.js.map} +0 -0
- /package/dist/{chunk-UECG6HJ5.js.map → chunk-XHBPO53U.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 _chunkKPSN5PREcjs = require('./chunk-KPSN5PRE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVTDOLAPWcjs = require('./chunk-VTDOLAPW.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 _chunkH2CNA2SCcjs = require('./chunk-H2CNA2SC.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ var _chunkRRD6OFQTcjs = require('./chunk-RRD6OFQT.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk32E6F632cjs = require('./chunk-32E6F632.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -113,7 +113,7 @@ var TicketActionFailure = class extends Error {
|
|
|
113
113
|
function useTicketActions(options) {
|
|
114
114
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
115
115
|
const ticketActionEndpoint = _nullishCoalesce(_chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
116
|
-
const ticketLive =
|
|
116
|
+
const ticketLive = _chunkH2CNA2SCcjs.useOptionalTicketLive.call(void 0, );
|
|
117
117
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
118
118
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
119
119
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -274,10 +274,10 @@ function useTicketActions(options) {
|
|
|
274
274
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
275
275
|
});
|
|
276
276
|
if (result.mirror_synced === false) {
|
|
277
|
-
toast2(
|
|
277
|
+
toast2(_chunkH2CNA2SCcjs.TOAST_COPY.open_mirror_pending);
|
|
278
278
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
279
279
|
} else {
|
|
280
|
-
toast2(
|
|
280
|
+
toast2(_chunkH2CNA2SCcjs.TOAST_COPY.open_success);
|
|
281
281
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
282
282
|
removeOptimistic(placeholderId);
|
|
283
283
|
}
|
|
@@ -363,7 +363,7 @@ function useTicketActions(options) {
|
|
|
363
363
|
...hasText ? { content_addendum: trimmed } : {},
|
|
364
364
|
...hasFiles ? { attachments } : {}
|
|
365
365
|
},
|
|
366
|
-
|
|
366
|
+
_chunkH2CNA2SCcjs.TOAST_COPY.comment_success,
|
|
367
367
|
"send message"
|
|
368
368
|
);
|
|
369
369
|
if (ok) {
|
|
@@ -386,13 +386,13 @@ function useTicketActions(options) {
|
|
|
386
386
|
status: "CLOSED",
|
|
387
387
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
388
388
|
},
|
|
389
|
-
|
|
389
|
+
_chunkH2CNA2SCcjs.TOAST_COPY.close_success,
|
|
390
390
|
"close ticket"
|
|
391
391
|
),
|
|
392
392
|
[updateTicket]
|
|
393
393
|
);
|
|
394
394
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
395
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
395
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkH2CNA2SCcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
396
396
|
[updateTicket]
|
|
397
397
|
);
|
|
398
398
|
return _react.useMemo.call(void 0,
|
|
@@ -617,14 +617,14 @@ function useTicketsList(filters) {
|
|
|
617
617
|
// src/components/tickets/ticket-open-form.tsx
|
|
618
618
|
|
|
619
619
|
var _jsxruntime = require('react/jsx-runtime');
|
|
620
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
620
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkH2CNA2SCcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
621
621
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
622
622
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
623
623
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
624
624
|
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunk5MSHWXJ5cjs.useChatAttachments.call(void 0, );
|
|
625
625
|
const trimmedSubject = subject.trim();
|
|
626
626
|
const trimmedContent = content.trim();
|
|
627
|
-
const overCap = content.length >
|
|
627
|
+
const overCap = content.length > _chunkH2CNA2SCcjs.TICKET_TEXT_MAX_CHARS;
|
|
628
628
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
629
629
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
630
630
|
const handleSubmit = async (e) => {
|
|
@@ -666,7 +666,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
666
666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
667
667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
668
668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
669
|
-
|
|
669
|
+
_chunk32E6F632cjs.Textarea,
|
|
670
670
|
{
|
|
671
671
|
id: "ticket-content",
|
|
672
672
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -680,7 +680,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
680
680
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
681
681
|
content.length,
|
|
682
682
|
"/",
|
|
683
|
-
|
|
683
|
+
_chunkH2CNA2SCcjs.TICKET_TEXT_MAX_CHARS
|
|
684
684
|
] })
|
|
685
685
|
] }),
|
|
686
686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -796,7 +796,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
796
796
|
dateClosed: clickup.date_closed,
|
|
797
797
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
798
798
|
};
|
|
799
|
-
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,
|
|
799
|
+
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, _chunkVTDOLAPWcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -849,7 +849,7 @@ function TicketReplyComposer({
|
|
|
849
849
|
sending: busy || attachments.hasInflightUploads,
|
|
850
850
|
disabled: supportSystemDown,
|
|
851
851
|
allowEmptySend: hasReadyFiles,
|
|
852
|
-
maxLength:
|
|
852
|
+
maxLength: _chunkH2CNA2SCcjs.TICKET_TEXT_MAX_CHARS,
|
|
853
853
|
onSend: handleSend
|
|
854
854
|
}
|
|
855
855
|
),
|
|
@@ -878,25 +878,25 @@ function TicketReplyComposer({
|
|
|
878
878
|
}
|
|
879
879
|
)
|
|
880
880
|
] }),
|
|
881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
882
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32E6F632cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk32E6F632cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
882
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk32E6F632cjs.AlertDialogHeader, { children: [
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32E6F632cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32E6F632cjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
885
885
|
] }),
|
|
886
886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
887
|
-
|
|
887
|
+
_chunk32E6F632cjs.Textarea,
|
|
888
888
|
{
|
|
889
889
|
value: resolution,
|
|
890
890
|
onChange: (e) => setResolution(e.target.value),
|
|
891
891
|
placeholder: "Resolution (optional)",
|
|
892
892
|
rows: 3,
|
|
893
|
-
maxLength:
|
|
893
|
+
maxLength: _chunkH2CNA2SCcjs.TICKET_TEXT_MAX_CHARS,
|
|
894
894
|
className: "mt-2"
|
|
895
895
|
}
|
|
896
896
|
),
|
|
897
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
897
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk32E6F632cjs.AlertDialogFooter, { children: [
|
|
898
898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
-
|
|
899
|
+
_chunk32E6F632cjs.AlertDialogCancel,
|
|
900
900
|
{
|
|
901
901
|
disabled: busy,
|
|
902
902
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -904,7 +904,7 @@ function TicketReplyComposer({
|
|
|
904
904
|
}
|
|
905
905
|
),
|
|
906
906
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
|
|
907
|
+
_chunk32E6F632cjs.AlertDialogAction,
|
|
908
908
|
{
|
|
909
909
|
onClick: () => void confirmClose(),
|
|
910
910
|
disabled: busy,
|
|
@@ -967,9 +967,9 @@ var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6"
|
|
|
967
967
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
968
968
|
function TicketTimelinePanel({ ticket }) {
|
|
969
969
|
const identity = _chunk5MSHWXJ5cjs.useChatIdentity.call(void 0, );
|
|
970
|
-
const externalId =
|
|
970
|
+
const externalId = _chunkH2CNA2SCcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
971
971
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
972
|
-
const live =
|
|
972
|
+
const live = _chunkH2CNA2SCcjs.useOptionalTicketLive.call(void 0, );
|
|
973
973
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
974
974
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
975
975
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -993,7 +993,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
993
993
|
markReadDebounceRef.current = setTimeout(() => {
|
|
994
994
|
markReadDebounceRef.current = null;
|
|
995
995
|
void markRead(externalId);
|
|
996
|
-
},
|
|
996
|
+
}, _chunkH2CNA2SCcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
997
997
|
}, [engagementsCount, externalId, markRead]);
|
|
998
998
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
999
999
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1062,7 +1062,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1062
1062
|
avatarUrl: avatarSrc,
|
|
1063
1063
|
timeLabel: eng.createdAt ? _chunk5MSHWXJ5cjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1064
1064
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1065
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1065
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32E6F632cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1066
1066
|
},
|
|
1067
1067
|
eng.id
|
|
1068
1068
|
);
|
|
@@ -1175,7 +1175,7 @@ function TicketRow({
|
|
|
1175
1175
|
onActionCollapsed,
|
|
1176
1176
|
id
|
|
1177
1177
|
}) {
|
|
1178
|
-
const optimistic =
|
|
1178
|
+
const optimistic = _chunkH2CNA2SCcjs.isOptimistic.call(void 0, ticket);
|
|
1179
1179
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1180
1180
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1181
1181
|
onToggle(ticket.id);
|
|
@@ -1344,11 +1344,11 @@ function TicketCenterAuthed({
|
|
|
1344
1344
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMKI5T2Gcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1345
1345
|
TicketRow,
|
|
1346
1346
|
{
|
|
1347
|
-
id:
|
|
1347
|
+
id: _chunk32E6F632cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1348
1348
|
ticket,
|
|
1349
1349
|
expanded: expandedTicketId === ticket.id,
|
|
1350
1350
|
onToggle: toggleRow,
|
|
1351
|
-
busy:
|
|
1351
|
+
busy: _chunkH2CNA2SCcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1352
1352
|
supportSystemDown,
|
|
1353
1353
|
onSendMessage: actions.sendMessage,
|
|
1354
1354
|
onClose: actions.closeTicket,
|
|
@@ -1402,7 +1402,7 @@ function HelpCenterCard({
|
|
|
1402
1402
|
onClearReplyError,
|
|
1403
1403
|
id
|
|
1404
1404
|
}) {
|
|
1405
|
-
const optimistic =
|
|
1405
|
+
const optimistic = _chunkH2CNA2SCcjs.isOptimistic.call(void 0, ticket);
|
|
1406
1406
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1407
1407
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1408
1408
|
const relativeUpdated = ticket.hubspot_updated_at ? _chunk5MSHWXJ5cjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
@@ -1424,7 +1424,7 @@ function HelpCenterCard({
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return () => cancelAnimationFrame(raf);
|
|
1426
1426
|
}, [isExpanded]);
|
|
1427
|
-
const live =
|
|
1427
|
+
const live = _chunkH2CNA2SCcjs.useOptionalTicketLive.call(void 0, );
|
|
1428
1428
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1429
1429
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1430
1430
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1474,7 +1474,7 @@ function HelpCenterCard({
|
|
|
1474
1474
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1475
1475
|
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]",
|
|
1476
1476
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1477
|
-
|
|
1477
|
+
_chunkVTDOLAPWcjs.DevCardRowContent,
|
|
1478
1478
|
{
|
|
1479
1479
|
title,
|
|
1480
1480
|
subtitle,
|
|
@@ -1575,7 +1575,7 @@ function HelpCenterCreateForm({
|
|
|
1575
1575
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1576
1576
|
] });
|
|
1577
1577
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1578
|
-
|
|
1578
|
+
_chunkKPSN5PREcjs.ContactForm,
|
|
1579
1579
|
{
|
|
1580
1580
|
title: "Open a new ticket",
|
|
1581
1581
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1617,25 +1617,25 @@ function HelpCenterList({ toast: toast2 = _chunkM4YQUHORcjs.toast, backButton, t
|
|
|
1617
1617
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1618
1618
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1619
1619
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1620
|
-
const search = searchParams.get(
|
|
1620
|
+
const search = searchParams.get(_chunk32E6F632cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1621
1621
|
const status = searchParams.get("status") || "all";
|
|
1622
|
-
const ticketParam = searchParams.get(
|
|
1622
|
+
const ticketParam = searchParams.get(_chunk32E6F632cjs.TICKET_OPEN_PARAM) || "";
|
|
1623
1623
|
const page = _chunkH64ZHSYRcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1624
1624
|
if (identity.isLoading) {
|
|
1625
1625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1626
|
-
|
|
1626
|
+
_chunkVTDOLAPWcjs.DevSectionPage,
|
|
1627
1627
|
{
|
|
1628
1628
|
sectionKey: "tickets",
|
|
1629
1629
|
backButton,
|
|
1630
1630
|
title,
|
|
1631
1631
|
shell,
|
|
1632
1632
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1633
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1633
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVTDOLAPWcjs.DevCardRowSkeletonList, {})
|
|
1634
1634
|
}
|
|
1635
1635
|
);
|
|
1636
1636
|
}
|
|
1637
1637
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1638
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1638
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVTDOLAPWcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1639
1639
|
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1640
1640
|
{
|
|
1641
1641
|
type: "generic",
|
|
@@ -1687,8 +1687,8 @@ function HelpCenterListAuthed({
|
|
|
1687
1687
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1688
1688
|
(externalId) => {
|
|
1689
1689
|
const params = new URLSearchParams(searchParams.toString());
|
|
1690
|
-
if (externalId) params.set(
|
|
1691
|
-
else params.delete(
|
|
1690
|
+
if (externalId) params.set(_chunk32E6F632cjs.TICKET_OPEN_PARAM, externalId);
|
|
1691
|
+
else params.delete(_chunk32E6F632cjs.TICKET_OPEN_PARAM);
|
|
1692
1692
|
const qs = params.toString();
|
|
1693
1693
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1694
1694
|
},
|
|
@@ -1765,13 +1765,13 @@ function HelpCenterListAuthed({
|
|
|
1765
1765
|
] }),
|
|
1766
1766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1767
1767
|
] }),
|
|
1768
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1768
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVTDOLAPWcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1769
1769
|
// Bridge state — background refetch in flight and the
|
|
1770
1770
|
// optimistic placeholder was just removed by the mutation
|
|
1771
1771
|
// callback. Without this branch "No tickets yet" would flash
|
|
1772
1772
|
// for ~50ms between `removeOptimistic` and the server
|
|
1773
1773
|
// response landing.
|
|
1774
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVTDOLAPWcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1775
1775
|
) : !hasResults ? hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
1776
|
_chunkO4VZOA2Qcjs.EmptyState,
|
|
1777
1777
|
{
|
|
@@ -1807,11 +1807,11 @@ function HelpCenterListAuthed({
|
|
|
1807
1807
|
/* @__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,
|
|
1808
1808
|
HelpCenterCard,
|
|
1809
1809
|
{
|
|
1810
|
-
id:
|
|
1810
|
+
id: _chunk32E6F632cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1811
1811
|
ticket,
|
|
1812
1812
|
expanded: expandedTicketId === ticket.id,
|
|
1813
1813
|
onToggle: toggleRow,
|
|
1814
|
-
busy:
|
|
1814
|
+
busy: _chunkH2CNA2SCcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1815
1815
|
supportSystemDown,
|
|
1816
1816
|
onSendMessage: actions.sendMessage,
|
|
1817
1817
|
onClose: actions.closeTicket,
|
|
@@ -1825,7 +1825,7 @@ function HelpCenterListAuthed({
|
|
|
1825
1825
|
) }),
|
|
1826
1826
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4VZOA2Qcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1827
1827
|
] });
|
|
1828
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1828
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVTDOLAPWcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1829
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
|
|
@@ -1844,4 +1844,4 @@ function HelpCenterListAuthed({
|
|
|
1844
1844
|
|
|
1845
1845
|
|
|
1846
1846
|
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;
|
|
1847
|
-
//# sourceMappingURL=chunk-
|
|
1847
|
+
//# sourceMappingURL=chunk-2R46YKHW.cjs.map
|