@flamingo-stack/openframe-frontend-core 0.0.698-2527.7778.1 → 0.0.698-2527.7779.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-5ILXNHAL.cjs → chunk-36K5SKBD.cjs} +51 -51
- package/dist/{chunk-5ILXNHAL.cjs.map → chunk-36K5SKBD.cjs.map} +1 -1
- package/dist/{chunk-7LWXGC77.cjs → chunk-3NBVQ6OZ.cjs} +4 -4
- package/dist/{chunk-7LWXGC77.cjs.map → chunk-3NBVQ6OZ.cjs.map} +1 -1
- package/dist/{chunk-QGHWHFAE.js → chunk-56MERBMB.js} +5 -5
- package/dist/{chunk-L5ICSBNG.cjs → chunk-7MJX3D6L.cjs} +3 -3
- package/dist/{chunk-L5ICSBNG.cjs.map → chunk-7MJX3D6L.cjs.map} +1 -1
- package/dist/{chunk-NP4ED7RU.js → chunk-AFFZH3PG.js} +2 -2
- package/dist/{chunk-NM7NUQ2E.cjs → chunk-AMECNJJB.cjs} +36 -36
- package/dist/{chunk-NM7NUQ2E.cjs.map → chunk-AMECNJJB.cjs.map} +1 -1
- package/dist/{chunk-SY4MQQT2.js → chunk-BSOEKG74.js} +2 -2
- package/dist/{chunk-YGZ7UPWY.js → chunk-E57DP53D.js} +2 -2
- package/dist/{chunk-5O7S5AKT.js → chunk-E73IVDJ7.js} +2 -2
- package/dist/{chunk-EQDKOBN4.cjs → chunk-EUOYN3YK.cjs} +3 -3
- package/dist/{chunk-EQDKOBN4.cjs.map → chunk-EUOYN3YK.cjs.map} +1 -1
- package/dist/{chunk-SOETJMPT.js → chunk-FBFSR23H.js} +4 -4
- package/dist/{chunk-LEARFVGY.cjs → chunk-FVLHQFCI.cjs} +3 -3
- package/dist/{chunk-LEARFVGY.cjs.map → chunk-FVLHQFCI.cjs.map} +1 -1
- package/dist/{chunk-Z2D4TPCV.cjs → chunk-H5O35AYD.cjs} +17 -17
- package/dist/{chunk-Z2D4TPCV.cjs.map → chunk-H5O35AYD.cjs.map} +1 -1
- package/dist/{chunk-FWFLT27R.js → chunk-IGCSJ626.js} +2 -2
- package/dist/{chunk-QMRW5AEK.js → chunk-K2M2PRRE.js} +2 -2
- package/dist/{chunk-ZUCN2J5Q.cjs → chunk-KVIO3QRE.cjs} +33 -33
- package/dist/{chunk-ZUCN2J5Q.cjs.map → chunk-KVIO3QRE.cjs.map} +1 -1
- package/dist/{chunk-56HD4PYA.js → chunk-MMP4RGKO.js} +2 -2
- package/dist/{chunk-S7HPNDHP.cjs → chunk-NAXXDQF5.cjs} +13 -13
- package/dist/{chunk-S7HPNDHP.cjs.map → chunk-NAXXDQF5.cjs.map} +1 -1
- package/dist/{chunk-6JMNSZQO.js → chunk-NNYPQ4WZ.js} +2 -2
- package/dist/{chunk-ZZUBPVOE.js → chunk-PA3QWOS4.js} +4 -4
- package/dist/{chunk-F2XPQMU7.js → chunk-PIIIJ2SZ.js} +4030 -3902
- package/dist/chunk-PIIIJ2SZ.js.map +1 -0
- package/dist/{chunk-OPWYMY4I.cjs → chunk-PNR5DWWD.cjs} +18 -18
- package/dist/{chunk-OPWYMY4I.cjs.map → chunk-PNR5DWWD.cjs.map} +1 -1
- package/dist/{chunk-GEWW6UZH.cjs → chunk-Q656Y5Y2.cjs} +492 -364
- package/dist/chunk-Q656Y5Y2.cjs.map +1 -0
- package/dist/{chunk-W3SSW7X7.cjs → chunk-QC2TIDZQ.cjs} +4 -4
- package/dist/{chunk-W3SSW7X7.cjs.map → chunk-QC2TIDZQ.cjs.map} +1 -1
- package/dist/{chunk-764HBMSW.js → chunk-S3F2DUCB.js} +2 -2
- package/dist/{chunk-BE4FJ75N.cjs → chunk-T66FPBH6.cjs} +3 -3
- package/dist/{chunk-BE4FJ75N.cjs.map → chunk-T66FPBH6.cjs.map} +1 -1
- package/dist/{chunk-F4ZKYP7X.js → chunk-TRTQ3WWD.js} +3 -3
- package/dist/{chunk-2R7BKV6K.cjs → chunk-URYY2LXS.cjs} +17 -17
- package/dist/{chunk-2R7BKV6K.cjs.map → chunk-URYY2LXS.cjs.map} +1 -1
- package/dist/{chunk-NZKMXQEW.js → chunk-WXDW7Z3F.js} +5 -5
- package/dist/{chunk-EPI5442L.cjs → chunk-XEZZOZBU.cjs} +10 -10
- package/dist/{chunk-EPI5442L.cjs.map → chunk-XEZZOZBU.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- 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/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts +6 -1
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +49 -49
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +34 -32
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +14 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/meeting-scheduler/index.js +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/admin-form-drawer.d.ts +41 -0
- package/dist/components/ui/admin-form-drawer.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +4 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/features/notifications/approval-request-notification-tile.tsx +13 -1
- package/src/components/ui/admin-form-drawer.tsx +188 -0
- package/src/components/ui/index.ts +1 -0
- package/dist/chunk-F2XPQMU7.js.map +0 -1
- package/dist/chunk-GEWW6UZH.cjs.map +0 -1
- /package/dist/{chunk-QGHWHFAE.js.map → chunk-56MERBMB.js.map} +0 -0
- /package/dist/{chunk-NP4ED7RU.js.map → chunk-AFFZH3PG.js.map} +0 -0
- /package/dist/{chunk-SY4MQQT2.js.map → chunk-BSOEKG74.js.map} +0 -0
- /package/dist/{chunk-YGZ7UPWY.js.map → chunk-E57DP53D.js.map} +0 -0
- /package/dist/{chunk-5O7S5AKT.js.map → chunk-E73IVDJ7.js.map} +0 -0
- /package/dist/{chunk-SOETJMPT.js.map → chunk-FBFSR23H.js.map} +0 -0
- /package/dist/{chunk-FWFLT27R.js.map → chunk-IGCSJ626.js.map} +0 -0
- /package/dist/{chunk-QMRW5AEK.js.map → chunk-K2M2PRRE.js.map} +0 -0
- /package/dist/{chunk-56HD4PYA.js.map → chunk-MMP4RGKO.js.map} +0 -0
- /package/dist/{chunk-6JMNSZQO.js.map → chunk-NNYPQ4WZ.js.map} +0 -0
- /package/dist/{chunk-ZZUBPVOE.js.map → chunk-PA3QWOS4.js.map} +0 -0
- /package/dist/{chunk-764HBMSW.js.map → chunk-S3F2DUCB.js.map} +0 -0
- /package/dist/{chunk-F4ZKYP7X.js.map → chunk-TRTQ3WWD.js.map} +0 -0
- /package/dist/{chunk-NZKMXQEW.js.map → chunk-WXDW7Z3F.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkH5O35AYDcjs = require('./chunk-H5O35AYD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXEZZOZBUcjs = require('./chunk-XEZZOZBU.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ var _chunkFEXS67IGcjs = require('./chunk-FEXS67IG.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkT66FPBH6cjs = require('./chunk-T66FPBH6.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -35,7 +35,7 @@ var _chunkBE4FJ75Ncjs = require('./chunk-BE4FJ75N.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkQ656Y5Y2cjs = require('./chunk-Q656Y5Y2.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -114,7 +114,7 @@ var TicketActionFailure = class extends Error {
|
|
|
114
114
|
function useTicketActions(options) {
|
|
115
115
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
116
116
|
const ticketActionEndpoint = _nullishCoalesce(_chunkU2YLMFJKcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
117
|
-
const ticketLive =
|
|
117
|
+
const ticketLive = _chunkT66FPBH6cjs.useOptionalTicketLive.call(void 0, );
|
|
118
118
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
119
119
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
120
120
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -275,10 +275,10 @@ function useTicketActions(options) {
|
|
|
275
275
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
276
276
|
});
|
|
277
277
|
if (result.mirror_synced === false) {
|
|
278
|
-
toast2(
|
|
278
|
+
toast2(_chunkT66FPBH6cjs.TOAST_COPY.open_mirror_pending);
|
|
279
279
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
280
280
|
} else {
|
|
281
|
-
toast2(
|
|
281
|
+
toast2(_chunkT66FPBH6cjs.TOAST_COPY.open_success);
|
|
282
282
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
283
283
|
removeOptimistic(placeholderId);
|
|
284
284
|
}
|
|
@@ -364,7 +364,7 @@ function useTicketActions(options) {
|
|
|
364
364
|
...hasText ? { content_addendum: trimmed } : {},
|
|
365
365
|
...hasFiles ? { attachments } : {}
|
|
366
366
|
},
|
|
367
|
-
|
|
367
|
+
_chunkT66FPBH6cjs.TOAST_COPY.comment_success,
|
|
368
368
|
"send message"
|
|
369
369
|
);
|
|
370
370
|
if (ok) {
|
|
@@ -387,13 +387,13 @@ function useTicketActions(options) {
|
|
|
387
387
|
status: "CLOSED",
|
|
388
388
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
389
389
|
},
|
|
390
|
-
|
|
390
|
+
_chunkT66FPBH6cjs.TOAST_COPY.close_success,
|
|
391
391
|
"close ticket"
|
|
392
392
|
),
|
|
393
393
|
[updateTicket]
|
|
394
394
|
);
|
|
395
395
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
396
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
396
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkT66FPBH6cjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
397
397
|
[updateTicket]
|
|
398
398
|
);
|
|
399
399
|
return _react.useMemo.call(void 0,
|
|
@@ -608,14 +608,14 @@ function useTicketsList(filters) {
|
|
|
608
608
|
// src/components/tickets/ticket-open-form.tsx
|
|
609
609
|
|
|
610
610
|
var _jsxruntime = require('react/jsx-runtime');
|
|
611
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
611
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkT66FPBH6cjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
612
612
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
613
613
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
614
614
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
615
615
|
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkLXKEHZUVcjs.useChatAttachments.call(void 0, );
|
|
616
616
|
const trimmedSubject = subject.trim();
|
|
617
617
|
const trimmedContent = content.trim();
|
|
618
|
-
const overCap = content.length >
|
|
618
|
+
const overCap = content.length > _chunkT66FPBH6cjs.TICKET_TEXT_MAX_CHARS;
|
|
619
619
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
620
620
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
621
621
|
const handleSubmit = async (e) => {
|
|
@@ -632,7 +632,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
632
632
|
clear();
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTTBDMPOcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
635
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTTBDMPOcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkQ656Y5Y2cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
636
636
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
637
637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
638
638
|
/* @__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." }),
|
|
@@ -657,7 +657,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
657
657
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
658
658
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
659
659
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
660
|
-
|
|
660
|
+
_chunkQ656Y5Y2cjs.Textarea,
|
|
661
661
|
{
|
|
662
662
|
id: "ticket-content",
|
|
663
663
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -671,7 +671,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
671
671
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
672
672
|
content.length,
|
|
673
673
|
"/",
|
|
674
|
-
|
|
674
|
+
_chunkT66FPBH6cjs.TICKET_TEXT_MAX_CHARS
|
|
675
675
|
] })
|
|
676
676
|
] }),
|
|
677
677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -787,7 +787,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
787
787
|
dateClosed: clickup.date_closed,
|
|
788
788
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
789
789
|
};
|
|
790
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkQTTBDMPOcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
790
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkQTTBDMPOcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -840,7 +840,7 @@ function TicketReplyComposer({
|
|
|
840
840
|
sending: busy || attachments.hasInflightUploads,
|
|
841
841
|
disabled: supportSystemDown,
|
|
842
842
|
allowEmptySend: hasReadyFiles,
|
|
843
|
-
maxLength:
|
|
843
|
+
maxLength: _chunkT66FPBH6cjs.TICKET_TEXT_MAX_CHARS,
|
|
844
844
|
onSend: handleSend
|
|
845
845
|
}
|
|
846
846
|
),
|
|
@@ -869,25 +869,25 @@ function TicketReplyComposer({
|
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
871
|
] }),
|
|
872
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
873
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ656Y5Y2cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQ656Y5Y2cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
873
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQ656Y5Y2cjs.AlertDialogHeader, { children: [
|
|
874
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ656Y5Y2cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
875
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ656Y5Y2cjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
876
876
|
] }),
|
|
877
877
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
878
|
-
|
|
878
|
+
_chunkQ656Y5Y2cjs.Textarea,
|
|
879
879
|
{
|
|
880
880
|
value: resolution,
|
|
881
881
|
onChange: (e) => setResolution(e.target.value),
|
|
882
882
|
placeholder: "Resolution (optional)",
|
|
883
883
|
rows: 3,
|
|
884
|
-
maxLength:
|
|
884
|
+
maxLength: _chunkT66FPBH6cjs.TICKET_TEXT_MAX_CHARS,
|
|
885
885
|
className: "mt-2"
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
888
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQ656Y5Y2cjs.AlertDialogFooter, { children: [
|
|
889
889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
|
|
890
|
+
_chunkQ656Y5Y2cjs.AlertDialogCancel,
|
|
891
891
|
{
|
|
892
892
|
disabled: busy,
|
|
893
893
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -895,7 +895,7 @@ function TicketReplyComposer({
|
|
|
895
895
|
}
|
|
896
896
|
),
|
|
897
897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
|
|
898
|
+
_chunkQ656Y5Y2cjs.AlertDialogAction,
|
|
899
899
|
{
|
|
900
900
|
onClick: () => void confirmClose(),
|
|
901
901
|
disabled: busy,
|
|
@@ -958,9 +958,9 @@ var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6"
|
|
|
958
958
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
959
959
|
function TicketTimelinePanel({ ticket }) {
|
|
960
960
|
const identity = _chunkLXKEHZUVcjs.useChatIdentity.call(void 0, );
|
|
961
|
-
const externalId =
|
|
961
|
+
const externalId = _chunkT66FPBH6cjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
962
962
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
963
|
-
const live =
|
|
963
|
+
const live = _chunkT66FPBH6cjs.useOptionalTicketLive.call(void 0, );
|
|
964
964
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
965
965
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
966
966
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -984,7 +984,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
984
984
|
markReadDebounceRef.current = setTimeout(() => {
|
|
985
985
|
markReadDebounceRef.current = null;
|
|
986
986
|
void markRead(externalId);
|
|
987
|
-
},
|
|
987
|
+
}, _chunkT66FPBH6cjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
988
988
|
}, [engagementsCount, externalId, markRead]);
|
|
989
989
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
990
990
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1053,7 +1053,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1053
1053
|
avatarUrl: avatarSrc,
|
|
1054
1054
|
timeLabel: eng.createdAt ? _chunkLXKEHZUVcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1055
1055
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1056
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ656Y5Y2cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1057
1057
|
},
|
|
1058
1058
|
eng.id
|
|
1059
1059
|
);
|
|
@@ -1166,7 +1166,7 @@ function TicketRow({
|
|
|
1166
1166
|
onActionCollapsed,
|
|
1167
1167
|
id
|
|
1168
1168
|
}) {
|
|
1169
|
-
const optimistic =
|
|
1169
|
+
const optimistic = _chunkT66FPBH6cjs.isOptimistic.call(void 0, ticket);
|
|
1170
1170
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1171
1171
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1172
1172
|
onToggle(ticket.id);
|
|
@@ -1335,11 +1335,11 @@ function TicketCenterAuthed({
|
|
|
1335
1335
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTTBDMPOcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
1336
|
TicketRow,
|
|
1337
1337
|
{
|
|
1338
|
-
id:
|
|
1338
|
+
id: _chunkQ656Y5Y2cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1339
1339
|
ticket,
|
|
1340
1340
|
expanded: expandedTicketId === ticket.id,
|
|
1341
1341
|
onToggle: toggleRow,
|
|
1342
|
-
busy:
|
|
1342
|
+
busy: _chunkT66FPBH6cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1343
1343
|
supportSystemDown,
|
|
1344
1344
|
onSendMessage: actions.sendMessage,
|
|
1345
1345
|
onClose: actions.closeTicket,
|
|
@@ -1393,7 +1393,7 @@ function HelpCenterCard({
|
|
|
1393
1393
|
onClearReplyError,
|
|
1394
1394
|
id
|
|
1395
1395
|
}) {
|
|
1396
|
-
const optimistic =
|
|
1396
|
+
const optimistic = _chunkT66FPBH6cjs.isOptimistic.call(void 0, ticket);
|
|
1397
1397
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1398
1398
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1399
1399
|
const relativeUpdated = ticket.hubspot_updated_at ? _chunkLXKEHZUVcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
@@ -1415,7 +1415,7 @@ function HelpCenterCard({
|
|
|
1415
1415
|
});
|
|
1416
1416
|
return () => cancelAnimationFrame(raf);
|
|
1417
1417
|
}, [isExpanded]);
|
|
1418
|
-
const live =
|
|
1418
|
+
const live = _chunkT66FPBH6cjs.useOptionalTicketLive.call(void 0, );
|
|
1419
1419
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1420
1420
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1421
1421
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1465,7 +1465,7 @@ function HelpCenterCard({
|
|
|
1465
1465
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1466
1466
|
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]",
|
|
1467
1467
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
|
-
|
|
1468
|
+
_chunkXEZZOZBUcjs.DevCardRowContent,
|
|
1469
1469
|
{
|
|
1470
1470
|
title,
|
|
1471
1471
|
subtitle,
|
|
@@ -1566,7 +1566,7 @@ function HelpCenterCreateForm({
|
|
|
1566
1566
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1567
1567
|
] });
|
|
1568
1568
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1569
|
-
|
|
1569
|
+
_chunkH5O35AYDcjs.ContactForm,
|
|
1570
1570
|
{
|
|
1571
1571
|
rescue: null,
|
|
1572
1572
|
title: "Open a new ticket",
|
|
@@ -1609,25 +1609,25 @@ function HelpCenterList({ toast: toast2 = _chunkSE2P5K4Jcjs.toast, backButton, t
|
|
|
1609
1609
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1610
1610
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1611
1611
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1612
|
-
const search = searchParams.get(
|
|
1612
|
+
const search = searchParams.get(_chunkQ656Y5Y2cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1613
1613
|
const status = searchParams.get("status") || "all";
|
|
1614
|
-
const ticketParam = searchParams.get(
|
|
1614
|
+
const ticketParam = searchParams.get(_chunkQ656Y5Y2cjs.TICKET_OPEN_PARAM) || "";
|
|
1615
1615
|
const page = _chunkNPPI32SOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1616
1616
|
if (identity.isLoading) {
|
|
1617
1617
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1618
|
-
|
|
1618
|
+
_chunkXEZZOZBUcjs.DevSectionPage,
|
|
1619
1619
|
{
|
|
1620
1620
|
sectionKey: "tickets",
|
|
1621
1621
|
backButton,
|
|
1622
1622
|
title,
|
|
1623
1623
|
shell,
|
|
1624
1624
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1625
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1625
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DevCardRowSkeletonList, {})
|
|
1626
1626
|
}
|
|
1627
1627
|
);
|
|
1628
1628
|
}
|
|
1629
1629
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1630
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1630
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1631
1631
|
_chunkFEXS67IGcjs.EmptyState,
|
|
1632
1632
|
{
|
|
1633
1633
|
type: "generic",
|
|
@@ -1679,8 +1679,8 @@ function HelpCenterListAuthed({
|
|
|
1679
1679
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1680
1680
|
(externalId) => {
|
|
1681
1681
|
const params = new URLSearchParams(searchParams.toString());
|
|
1682
|
-
if (externalId) params.set(
|
|
1683
|
-
else params.delete(
|
|
1682
|
+
if (externalId) params.set(_chunkQ656Y5Y2cjs.TICKET_OPEN_PARAM, externalId);
|
|
1683
|
+
else params.delete(_chunkQ656Y5Y2cjs.TICKET_OPEN_PARAM);
|
|
1684
1684
|
const qs = params.toString();
|
|
1685
1685
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1686
1686
|
},
|
|
@@ -1757,15 +1757,15 @@ function HelpCenterListAuthed({
|
|
|
1757
1757
|
] }),
|
|
1758
1758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JRKNGJ4cjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1759
1759
|
] }),
|
|
1760
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1760
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1761
1761
|
// Bridge state — background refetch in flight and the
|
|
1762
1762
|
// optimistic placeholder was just removed by the mutation
|
|
1763
1763
|
// callback. Without this branch "No tickets yet" would flash
|
|
1764
1764
|
// for ~50ms between `removeOptimistic` and the server
|
|
1765
1765
|
// response landing.
|
|
1766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1766
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1767
1767
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1768
|
-
|
|
1768
|
+
_chunkXEZZOZBUcjs.ListEmptyState,
|
|
1769
1769
|
{
|
|
1770
1770
|
isFiltered: hasActiveFilters,
|
|
1771
1771
|
filtered: {
|
|
@@ -1796,11 +1796,11 @@ function HelpCenterListAuthed({
|
|
|
1796
1796
|
/* @__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,
|
|
1797
1797
|
HelpCenterCard,
|
|
1798
1798
|
{
|
|
1799
|
-
id:
|
|
1799
|
+
id: _chunkQ656Y5Y2cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1800
1800
|
ticket,
|
|
1801
1801
|
expanded: expandedTicketId === ticket.id,
|
|
1802
1802
|
onToggle: toggleRow,
|
|
1803
|
-
busy:
|
|
1803
|
+
busy: _chunkT66FPBH6cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1804
1804
|
supportSystemDown,
|
|
1805
1805
|
onSendMessage: actions.sendMessage,
|
|
1806
1806
|
onClose: actions.closeTicket,
|
|
@@ -1814,7 +1814,7 @@ function HelpCenterListAuthed({
|
|
|
1814
1814
|
) }),
|
|
1815
1815
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFEXS67IGcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1816
1816
|
] });
|
|
1817
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1817
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXEZZOZBUcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
1820
|
|
|
@@ -1833,4 +1833,4 @@ function HelpCenterListAuthed({
|
|
|
1833
1833
|
|
|
1834
1834
|
|
|
1835
1835
|
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;
|
|
1836
|
-
//# sourceMappingURL=chunk-
|
|
1836
|
+
//# sourceMappingURL=chunk-36K5SKBD.cjs.map
|