@flamingo-stack/openframe-frontend-core 0.0.806 → 0.0.808
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/build/export-map.json +1 -1
- package/dist/{chunk-RIRIA3FO.cjs → chunk-5MTYKS2Q.cjs} +4 -4
- package/dist/{chunk-DN5YBJGC.cjs → chunk-5UTJARDM.cjs} +2 -2
- package/dist/{chunk-FZSL4KSW.cjs → chunk-6B5BDFZ6.cjs} +3 -3
- package/dist/{chunk-URZOWIR3.cjs → chunk-6BYSVWIS.cjs} +11 -11
- package/dist/{chunk-XAG7ABPI.cjs → chunk-A5TMKZRQ.cjs} +32 -32
- package/dist/{chunk-SC4RKSMW.cjs → chunk-BSF7E5EZ.cjs} +61 -61
- package/dist/{chunk-PYZTG3T5.cjs → chunk-BT53NHR7.cjs} +25 -25
- package/dist/{chunk-7NCNJXMK.cjs → chunk-DRTXDPWM.cjs} +32 -32
- package/dist/{chunk-3B6PFUL3.cjs → chunk-FRS2VO22.cjs} +71 -19
- package/dist/{chunk-RTUSHW7S.cjs → chunk-H6U3K5EX.cjs} +18 -18
- package/dist/{chunk-IN6SPMCB.cjs → chunk-HKYGJVTA.cjs} +41 -41
- package/dist/{chunk-THY2XVGY.cjs → chunk-I3RJLXEL.cjs} +23 -17
- package/dist/{chunk-PCHNBV73.cjs → chunk-K6YBHFWX.cjs} +71 -71
- package/dist/{chunk-F2VN3UUB.cjs → chunk-KS5V55HN.cjs} +37 -37
- package/dist/{chunk-QE7H4Y3F.cjs → chunk-LF7B3LJE.cjs} +24 -24
- package/dist/{chunk-76NE67PK.cjs → chunk-ML3DG4SS.cjs} +2 -2
- package/dist/{chunk-IMDOKSEG.cjs → chunk-OAJ3AL4V.cjs} +4 -4
- package/dist/{chunk-FQ4LYYBI.cjs → chunk-PIKHEBG5.cjs} +48 -48
- package/dist/{chunk-OETG7KV6.cjs → chunk-R2S22LDL.cjs} +3 -3
- package/dist/{chunk-5OFEH673.cjs → chunk-RZNRKWG5.cjs} +13 -13
- package/dist/{chunk-CRBG5HXA.cjs → chunk-SPS7TL7Z.cjs} +799 -761
- package/dist/{chunk-MR3LQUOW.cjs → chunk-T64MG3HS.cjs} +6 -6
- package/dist/{chunk-MHH7CHNI.cjs → chunk-TOWVMBAP.cjs} +4 -4
- package/dist/{chunk-3WNCFZGN.cjs → chunk-TUZV2ZQY.cjs} +2 -2
- package/dist/{chunk-V3T5MDJV.cjs → chunk-VHX4A4SA.cjs} +2 -2
- package/dist/{chunk-DTKHEHIQ.cjs → chunk-ZAXGW4KT.cjs} +14 -14
- package/dist/{cloud-tenants-6E27I6AY.cjs → cloud-tenants-H5TMGGDF.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +16 -4
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +9 -2
- package/dist/components/help-center-pages/index.cjs +88 -88
- package/dist/components/index.cjs +55 -53
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/assignee-dropdown.d.ts +10 -0
- package/dist/components/ui/assignee-dropdown.d.ts.map +1 -1
- package/dist/components/ui/assignee-dropdown.js +14 -2
- package/dist/components/ui/autocomplete.d.ts +24 -0
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/autocomplete.js +26 -4
- package/dist/components/ui/index.cjs +9 -7
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/modal.js +24 -18
- package/dist/components/ui/reopen-ticket-modal.d.ts +17 -1
- package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/reopen-ticket-modal.js +8 -15
- package/dist/components/ui/searchable-select.d.ts +17 -0
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +24 -9
- package/dist/components/ui/server-search-options.d.ts +30 -0
- package/dist/components/ui/server-search-options.d.ts.map +1 -0
- package/dist/components/ui/server-search-options.js +30 -0
- package/dist/components/ui/take-over-ticket-modal.d.ts +25 -1
- package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/take-over-ticket-modal.js +14 -14
- package/dist/components/ui/ticket-info-section.d.ts +2 -0
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +2 -1
- package/dist/{devices-HZVRGH3A.cjs → devices-4MF5B7WJ.cjs} +8 -8
- package/dist/{embeddable-chat-GHBCX2BY.cjs → embeddable-chat-XT6GMSBX.cjs} +62 -62
- package/dist/index.cjs +13 -11
- package/dist/{knowledge-EJG7YG7C.cjs → knowledge-MI7VMPRF.cjs} +8 -8
- package/dist/{logs-6N3ANKZK.cjs → logs-7TEU2UXV.cjs} +15 -15
- package/dist/{policies-CE7A66D7.cjs → policies-AR7B4LW5.cjs} +11 -11
- package/dist/{remote-session-HLGLKOGW.cjs → remote-session-LMUFV2RZ.cjs} +4 -4
- package/dist/{scripts-NREM2Y6Z.cjs → scripts-HTMYPV5Q.cjs} +14 -14
- package/dist/{software-update-CI4F3IRV.cjs → software-update-YMSYGYCM.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +10 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +10 -4
- package/src/components/ui/assignee-dropdown.tsx +29 -1
- package/src/components/ui/autocomplete.tsx +68 -5
- package/src/components/ui/modal.tsx +14 -4
- package/src/components/ui/reopen-ticket-modal.tsx +22 -14
- package/src/components/ui/searchable-select.tsx +52 -8
- package/src/components/ui/server-search-options.ts +65 -0
- package/src/components/ui/take-over-ticket-modal.tsx +35 -13
- package/src/components/ui/ticket-info-section.tsx +3 -0
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunkLF7B3LJEcjs = require('./chunk-LF7B3LJE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkH6U3K5EXcjs = require('./chunk-H6U3K5EX.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5MTYKS2Qcjs = require('./chunk-5MTYKS2Q.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkOAJ3AL4Vcjs = require('./chunk-OAJ3AL4V.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ var _chunkIMDOKSEGcjs = require('./chunk-IMDOKSEG.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkSPS7TL7Zcjs = require('./chunk-SPS7TL7Z.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -40,14 +40,14 @@ var _chunkAZJYMTBScjs = require('./chunk-AZJYMTBS.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkBT53NHR7cjs = require('./chunk-BT53NHR7.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkKS5V55HNcjs = require('./chunk-KS5V55HN.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkJLKGLPDCcjs = require('./chunk-JLKGLPDC.cjs');
|
|
@@ -68,7 +68,7 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
68
68
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
@@ -153,7 +153,7 @@ var TicketActionFailure = class extends Error {
|
|
|
153
153
|
function useTicketActions(options) {
|
|
154
154
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
155
155
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
156
|
-
const ticketLive =
|
|
156
|
+
const ticketLive = _chunkOAJ3AL4Vcjs.useOptionalTicketLive.call(void 0, );
|
|
157
157
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _ => _.notifyTicketCreated]);
|
|
158
158
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
159
159
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -646,7 +646,7 @@ var COUNTER_VISIBLE_AT = Math.floor(TICKET_TEXT_MAX_CHARS * 0.8);
|
|
|
646
646
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
647
647
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
648
648
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
649
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
649
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkKS5V55HNcjs.useChatAttachments.call(void 0, );
|
|
650
650
|
const trimmedSubject = subject.trim();
|
|
651
651
|
const trimmedContent = content.trim();
|
|
652
652
|
const overCap = content.length > TICKET_TEXT_MAX_CHARS;
|
|
@@ -666,7 +666,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
666
666
|
clear();
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
669
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkBT53NHR7cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
670
670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
671
671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
672
672
|
/* @__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." }),
|
|
@@ -691,7 +691,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
691
691
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
692
692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: "ticket-content", className: "mb-1", children: "Your Message" }),
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
694
|
-
|
|
694
|
+
_chunkSPS7TL7Zcjs.Textarea,
|
|
695
695
|
{
|
|
696
696
|
id: "ticket-content",
|
|
697
697
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -709,7 +709,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
709
709
|
] })
|
|
710
710
|
] }),
|
|
711
711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
712
|
-
|
|
712
|
+
_chunkKS5V55HNcjs.ChatAttachmentChipStrip,
|
|
713
713
|
{
|
|
714
714
|
attachments,
|
|
715
715
|
onRemove: removeAttachment,
|
|
@@ -718,7 +718,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
718
718
|
),
|
|
719
719
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
720
720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
721
|
-
|
|
721
|
+
_chunkKS5V55HNcjs.ChatAttachmentAddButton,
|
|
722
722
|
{
|
|
723
723
|
attachmentsEnabled: !supportSystemDown,
|
|
724
724
|
attachmentsCount: attachments.length,
|
|
@@ -748,7 +748,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
748
748
|
|
|
749
749
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
750
750
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
751
|
-
const identity =
|
|
751
|
+
const identity = _chunkKS5V55HNcjs.useChatIdentity.call(void 0, );
|
|
752
752
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
753
753
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
754
754
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -821,7 +821,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
821
821
|
dateClosed: clickup.date_closed,
|
|
822
822
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
823
823
|
};
|
|
824
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkPRCGRDHVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkPRCGRDHVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH6U3K5EXcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -836,7 +836,7 @@ function TicketReplyComposer({
|
|
|
836
836
|
}) {
|
|
837
837
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
838
838
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
839
|
-
const attachments =
|
|
839
|
+
const attachments = _chunkKS5V55HNcjs.useChatAttachments.call(void 0, );
|
|
840
840
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
841
841
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
842
842
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -857,7 +857,7 @@ function TicketReplyComposer({
|
|
|
857
857
|
const disabled = busy || supportSystemDown;
|
|
858
858
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkKS5V55HNcjs.ChatAttachmentChipStrip,
|
|
861
861
|
{
|
|
862
862
|
attachments: attachments.attachments,
|
|
863
863
|
onRemove: attachments.removeAttachment,
|
|
@@ -880,7 +880,7 @@ function TicketReplyComposer({
|
|
|
880
880
|
),
|
|
881
881
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
882
882
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
-
|
|
883
|
+
_chunkKS5V55HNcjs.ChatAttachmentAddButton,
|
|
884
884
|
{
|
|
885
885
|
attachmentsEnabled: true,
|
|
886
886
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -903,13 +903,13 @@ function TicketReplyComposer({
|
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
] }),
|
|
906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSPS7TL7Zcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSPS7TL7Zcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
907
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSPS7TL7Zcjs.AlertDialogHeader, { children: [
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSPS7TL7Zcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSPS7TL7Zcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
910
910
|
] }),
|
|
911
911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
912
|
-
|
|
912
|
+
_chunkSPS7TL7Zcjs.Textarea,
|
|
913
913
|
{
|
|
914
914
|
value: resolution,
|
|
915
915
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -919,9 +919,9 @@ function TicketReplyComposer({
|
|
|
919
919
|
className: "mt-2"
|
|
920
920
|
}
|
|
921
921
|
),
|
|
922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSPS7TL7Zcjs.AlertDialogFooter, { children: [
|
|
923
923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
924
|
-
|
|
924
|
+
_chunkSPS7TL7Zcjs.AlertDialogCancel,
|
|
925
925
|
{
|
|
926
926
|
disabled: busy,
|
|
927
927
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -929,7 +929,7 @@ function TicketReplyComposer({
|
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
932
|
-
|
|
932
|
+
_chunkSPS7TL7Zcjs.AlertDialogAction,
|
|
933
933
|
{
|
|
934
934
|
onClick: () => void confirmClose(),
|
|
935
935
|
disabled: busy,
|
|
@@ -991,10 +991,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
991
991
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
992
992
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
993
993
|
function TicketTimelinePanel({ ticket }) {
|
|
994
|
-
const identity =
|
|
994
|
+
const identity = _chunkKS5V55HNcjs.useChatIdentity.call(void 0, );
|
|
995
995
|
const externalId = isOptimistic(ticket) ? null : ticket.external_id;
|
|
996
996
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
997
|
-
const live =
|
|
997
|
+
const live = _chunkOAJ3AL4Vcjs.useOptionalTicketLive.call(void 0, );
|
|
998
998
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
999
999
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
1000
1000
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -1033,11 +1033,11 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1033
1033
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1034
1034
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1035
1035
|
if (isLoading) {
|
|
1036
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1036
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBT53NHR7cjs.ChatMessageRow, { loading: true, displayName: "", body: "", "data-loading-item": true }) }) }) });
|
|
1037
1037
|
}
|
|
1038
1038
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1039
1039
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1040
|
-
|
|
1040
|
+
_chunk5MTYKS2Qcjs.EmptyState,
|
|
1041
1041
|
{
|
|
1042
1042
|
type: "generic",
|
|
1043
1043
|
title: "No conversation yet",
|
|
@@ -1052,7 +1052,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1052
1052
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1053
1053
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1054
1054
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1055
|
-
|
|
1055
|
+
_chunkBT53NHR7cjs.ChatMessageRow,
|
|
1056
1056
|
{
|
|
1057
1057
|
"data-loading-item": true,
|
|
1058
1058
|
displayName: customerName,
|
|
@@ -1082,14 +1082,14 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1084
1084
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1085
|
-
|
|
1085
|
+
_chunkBT53NHR7cjs.ChatMessageRow,
|
|
1086
1086
|
{
|
|
1087
1087
|
"data-loading-item": true,
|
|
1088
1088
|
displayName: author,
|
|
1089
1089
|
avatarUrl: avatarSrc,
|
|
1090
1090
|
timeLabel: eng.createdAt ? _chunkJLKGLPDCcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1091
1091
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1092
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1092
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSPS7TL7Zcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1093
1093
|
},
|
|
1094
1094
|
eng.id
|
|
1095
1095
|
);
|
|
@@ -1194,7 +1194,7 @@ var TICKET_ROW_FRAME_CLASS = "border-b border-ods-border last:border-b-0";
|
|
|
1194
1194
|
var TICKET_ROW_OUTER_CLASS = "scroll-mt-24";
|
|
1195
1195
|
function TicketRow(props) {
|
|
1196
1196
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
1197
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1197
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBT53NHR7cjs.ChatTicketItem, { loading: true }) }) });
|
|
1198
1198
|
}
|
|
1199
1199
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketRowLoaded, { ...props });
|
|
1200
1200
|
}
|
|
@@ -1249,7 +1249,7 @@ function TicketRowLoaded({
|
|
|
1249
1249
|
};
|
|
1250
1250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: TICKET_ROW_OUTER_CLASS, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, markers), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: TICKET_ROW_FRAME_CLASS, children: [
|
|
1251
1251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1252
|
-
|
|
1252
|
+
_chunkBT53NHR7cjs.ChatTicketItem,
|
|
1253
1253
|
{
|
|
1254
1254
|
ticket: tileData,
|
|
1255
1255
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1288,13 +1288,13 @@ function TicketCenter({ toast: toast2 = _chunkAZJYMTBScjs.toast } = {}) {
|
|
|
1288
1288
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterGate, { toast: toast2 });
|
|
1289
1289
|
}
|
|
1290
1290
|
function TicketCenterGate({ toast: toast2 }) {
|
|
1291
|
-
const identity =
|
|
1291
|
+
const identity = _chunkKS5V55HNcjs.useChatIdentity.call(void 0, );
|
|
1292
1292
|
if (identity.isLoading) {
|
|
1293
1293
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterPending, {});
|
|
1294
1294
|
}
|
|
1295
1295
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.email])) {
|
|
1296
1296
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1297
|
-
|
|
1297
|
+
_chunk5MTYKS2Qcjs.EmptyState,
|
|
1298
1298
|
{
|
|
1299
1299
|
type: "generic",
|
|
1300
1300
|
title: "Sign in to manage tickets",
|
|
@@ -1343,7 +1343,7 @@ function TicketCenterAuthed({
|
|
|
1343
1343
|
const toggleRow = _react.useCallback.call(void 0, (id) => {
|
|
1344
1344
|
setExpandedTicketId((prev) => prev === id ? null : id);
|
|
1345
1345
|
}, []);
|
|
1346
|
-
const syncInPage =
|
|
1346
|
+
const syncInPage = _chunkH6U3K5EXcjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1347
1347
|
const merged = [...optimisticTickets, ...tickets];
|
|
1348
1348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1349
1349
|
TicketCenterView,
|
|
@@ -1360,7 +1360,7 @@ function TicketCenterAuthed({
|
|
|
1360
1360
|
TicketRow,
|
|
1361
1361
|
{
|
|
1362
1362
|
"data-loading-item": true,
|
|
1363
|
-
id:
|
|
1363
|
+
id: _chunkBT53NHR7cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1364
1364
|
ticket,
|
|
1365
1365
|
expanded: expandedTicketId === ticket.id,
|
|
1366
1366
|
onToggle: toggleRow,
|
|
@@ -1379,8 +1379,8 @@ function TicketCenterAuthed({
|
|
|
1379
1379
|
function TicketCenterPending({
|
|
1380
1380
|
region = true
|
|
1381
1381
|
} = {}) {
|
|
1382
|
-
const syncInPage =
|
|
1383
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1382
|
+
const syncInPage = _chunkH6U3K5EXcjs.usePageDataSync.call(void 0, null, true);
|
|
1383
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.LoadingFallback, { label: "Loading tickets", status: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1384
1384
|
TicketCenterView,
|
|
1385
1385
|
{
|
|
1386
1386
|
tickets: [],
|
|
@@ -1422,7 +1422,7 @@ function TicketList({
|
|
|
1422
1422
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {});
|
|
1423
1423
|
if (tickets.length === 0) {
|
|
1424
1424
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1425
|
-
|
|
1425
|
+
_chunk5MTYKS2Qcjs.EmptyState,
|
|
1426
1426
|
{
|
|
1427
1427
|
type: "generic",
|
|
1428
1428
|
title: "No tickets yet",
|
|
@@ -1442,7 +1442,7 @@ function TicketListHeader({
|
|
|
1442
1442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
1443
1443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h5", children: "Your Current Tickets" }),
|
|
1444
1444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1445
|
-
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1445
|
+
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSPS7TL7Zcjs.DataSyncLine, { sync, loading: syncLoading, inline: true }),
|
|
1446
1446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { inert: !onRefresh || void 0, "aria-hidden": !onRefresh || void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1447
1447
|
_chunkAHBTZ7DNcjs.Button,
|
|
1448
1448
|
{
|
|
@@ -1477,7 +1477,7 @@ function HelpCenterCard(props) {
|
|
|
1477
1477
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCardLoaded, { ...props });
|
|
1478
1478
|
}
|
|
1479
1479
|
function HelpCenterCardSkeleton({ id, ...props }) {
|
|
1480
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1480
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH6U3K5EXcjs.DevCardRowContent, { loading: true, title: "", subtitle: "", description: "", rightBadges: null }) }) });
|
|
1481
1481
|
}
|
|
1482
1482
|
function HelpCenterCardLoaded({
|
|
1483
1483
|
ticket,
|
|
@@ -1516,7 +1516,7 @@ function HelpCenterCardLoaded({
|
|
|
1516
1516
|
});
|
|
1517
1517
|
return () => cancelAnimationFrame(raf);
|
|
1518
1518
|
}, [isExpanded]);
|
|
1519
|
-
const live =
|
|
1519
|
+
const live = _chunkOAJ3AL4Vcjs.useOptionalTicketLive.call(void 0, );
|
|
1520
1520
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1521
1521
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1522
1522
|
unreadCount > 0 && // Only rows with unread replies carry it; the row's loading form draws the status badge alone.
|
|
@@ -1534,7 +1534,7 @@ function HelpCenterCardLoaded({
|
|
|
1534
1534
|
_chunkPRCGRDHVcjs.StatusBadge,
|
|
1535
1535
|
{
|
|
1536
1536
|
text: rawStatus,
|
|
1537
|
-
colorScheme:
|
|
1537
|
+
colorScheme: _chunkI3RJLXELcjs.getStatusColorScheme.call(void 0, rawStatus),
|
|
1538
1538
|
variant: "card",
|
|
1539
1539
|
className: "border border-ods-border"
|
|
1540
1540
|
}
|
|
@@ -1571,7 +1571,7 @@ function HelpCenterCardLoaded({
|
|
|
1571
1571
|
"aria-expanded": isExpandable ? isExpanded : void 0,
|
|
1572
1572
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1573
1573
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "block", HELP_CENTER_SUMMARY_PAD_CLASS), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1574
|
-
|
|
1574
|
+
_chunkH6U3K5EXcjs.DevCardRowContent,
|
|
1575
1575
|
{
|
|
1576
1576
|
title,
|
|
1577
1577
|
subtitle,
|
|
@@ -1652,7 +1652,7 @@ function HelpCenterCreateFormBody({
|
|
|
1652
1652
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1653
1653
|
] });
|
|
1654
1654
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
|
-
|
|
1655
|
+
_chunkLF7B3LJEcjs.ContactForm,
|
|
1656
1656
|
{
|
|
1657
1657
|
rescue: null,
|
|
1658
1658
|
title: "Open a new ticket",
|
|
@@ -1692,17 +1692,17 @@ function HelpCenterCreateFormBody({
|
|
|
1692
1692
|
// src/components/tickets/help-center-list.tsx
|
|
1693
1693
|
|
|
1694
1694
|
function HelpCenterList({ toast: toast2 = _chunkAZJYMTBScjs.toast, backButton, title, shell } = {}) {
|
|
1695
|
-
const identity =
|
|
1695
|
+
const identity = _chunkKS5V55HNcjs.useChatIdentity.call(void 0, );
|
|
1696
1696
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
1697
1697
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1698
1698
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1699
|
-
const search = searchParams.get(
|
|
1699
|
+
const search = searchParams.get(_chunkBT53NHR7cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1700
1700
|
const status = searchParams.get("status") || "all";
|
|
1701
|
-
const ticketParam = searchParams.get(
|
|
1701
|
+
const ticketParam = searchParams.get(_chunkBT53NHR7cjs.TICKET_OPEN_PARAM) || "";
|
|
1702
1702
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1703
1703
|
if (identity.isLoading) {
|
|
1704
1704
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1705
|
-
|
|
1705
|
+
_chunkH6U3K5EXcjs.DevSectionPage,
|
|
1706
1706
|
{
|
|
1707
1707
|
sectionKey: "tickets",
|
|
1708
1708
|
backButton,
|
|
@@ -1714,8 +1714,8 @@ function HelpCenterList({ toast: toast2 = _chunkAZJYMTBScjs.toast, backButton, t
|
|
|
1714
1714
|
);
|
|
1715
1715
|
}
|
|
1716
1716
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1717
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1718
|
-
|
|
1717
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH6U3K5EXcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1718
|
+
_chunk5MTYKS2Qcjs.EmptyState,
|
|
1719
1719
|
{
|
|
1720
1720
|
type: "generic",
|
|
1721
1721
|
title: "Sign in to manage tickets",
|
|
@@ -1766,8 +1766,8 @@ function HelpCenterListAuthed({
|
|
|
1766
1766
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1767
1767
|
(externalId) => {
|
|
1768
1768
|
const params = new URLSearchParams(searchParams.toString());
|
|
1769
|
-
if (externalId) params.set(
|
|
1770
|
-
else params.delete(
|
|
1769
|
+
if (externalId) params.set(_chunkBT53NHR7cjs.TICKET_OPEN_PARAM, externalId);
|
|
1770
|
+
else params.delete(_chunkBT53NHR7cjs.TICKET_OPEN_PARAM);
|
|
1771
1771
|
const qs = params.toString();
|
|
1772
1772
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1773
1773
|
},
|
|
@@ -1845,7 +1845,7 @@ function HelpCenterListAuthed({
|
|
|
1845
1845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1846
1846
|
] }),
|
|
1847
1847
|
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading || !hasResults && isFetching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterRowsFrame, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCard, { ticket: null, "data-loading-item": true }) }) }) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1848
|
-
|
|
1848
|
+
_chunkH6U3K5EXcjs.ListEmptyState,
|
|
1849
1849
|
{
|
|
1850
1850
|
isFiltered: hasActiveFilters,
|
|
1851
1851
|
filtered: {
|
|
@@ -1868,7 +1868,7 @@ function HelpCenterListAuthed({
|
|
|
1868
1868
|
HelpCenterCard,
|
|
1869
1869
|
{
|
|
1870
1870
|
"data-loading-item": true,
|
|
1871
|
-
id:
|
|
1871
|
+
id: _chunkBT53NHR7cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1872
1872
|
ticket,
|
|
1873
1873
|
expanded: expandedTicketId === ticket.id,
|
|
1874
1874
|
onToggle: toggleRow,
|
|
@@ -1883,9 +1883,9 @@ function HelpCenterListAuthed({
|
|
|
1883
1883
|
},
|
|
1884
1884
|
ticket.id
|
|
1885
1885
|
)) }) }),
|
|
1886
|
-
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1886
|
+
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MTYKS2Qcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1887
1887
|
] });
|
|
1888
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1888
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH6U3K5EXcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1889
1889
|
}
|
|
1890
1890
|
function HelpCenterRowsFrame({ children }) {
|
|
1891
1891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children });
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkKS5V55HNcjs = require('./chunk-KS5V55HN.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkTOWVMBAPcjs = require('./chunk-TOWVMBAP.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -205,7 +205,7 @@ function ChatMessageRow(props) {
|
|
|
205
205
|
}
|
|
206
206
|
function ChatMessageRowLoaded(props) {
|
|
207
207
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
208
|
-
const proxiedAvatar =
|
|
208
|
+
const proxiedAvatar = _chunkI3RJLXELcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
209
209
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
210
210
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
211
211
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2047,7 +2047,7 @@ function lastPathSegment(url) {
|
|
|
2047
2047
|
function makeComposeContentUrl(opts) {
|
|
2048
2048
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2049
2049
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2050
|
-
const type =
|
|
2050
|
+
const type = _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2051
2051
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2052
2052
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2053
2053
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2058,8 +2058,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2060
2060
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2061
|
-
const owner = claimedOwner &&
|
|
2062
|
-
const origin = owner ?
|
|
2061
|
+
const owner = claimedOwner && _chunkKS5V55HNcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2062
|
+
const origin = owner ? _chunkKS5V55HNcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2063
2063
|
return {
|
|
2064
2064
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2065
2065
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2240,7 +2240,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2240
2240
|
if (heading.level > opts.maxLevel) continue;
|
|
2241
2241
|
let title = heading.text;
|
|
2242
2242
|
if (opts.stripFormattingMarkers) {
|
|
2243
|
-
title =
|
|
2243
|
+
title = _chunkKS5V55HNcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2244
2244
|
}
|
|
2245
2245
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2246
2246
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2555,7 +2555,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2555
2555
|
function openAskAi(source, options) {
|
|
2556
2556
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2557
2557
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2558
|
-
window.dispatchEvent(new CustomEvent(
|
|
2558
|
+
window.dispatchEvent(new CustomEvent(_chunkKS5V55HNcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2559
2559
|
}
|
|
2560
2560
|
function MingoAiButton({
|
|
2561
2561
|
source,
|
|
@@ -2598,7 +2598,7 @@ function MingoAiButton({
|
|
|
2598
2598
|
{
|
|
2599
2599
|
...props,
|
|
2600
2600
|
type: "button",
|
|
2601
|
-
...{ [
|
|
2601
|
+
...{ [_chunkKS5V55HNcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2602
2602
|
variant: field ? "glyph" : "transparent",
|
|
2603
2603
|
size: "wrap",
|
|
2604
2604
|
font: "regular",
|
|
@@ -2700,7 +2700,7 @@ function useAskPrompts({
|
|
|
2700
2700
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2701
2701
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2702
2702
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2703
|
-
const { data, dataUrl, error } =
|
|
2703
|
+
const { data, dataUrl, error } = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, url);
|
|
2704
2704
|
const landed = url !== null && (dataUrl === url || error);
|
|
2705
2705
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2706
2706
|
}
|
|
@@ -2839,9 +2839,9 @@ function QuestionChips({
|
|
|
2839
2839
|
{
|
|
2840
2840
|
"data-loading-item": true,
|
|
2841
2841
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2842
|
-
...prompt ? { [
|
|
2842
|
+
...prompt ? { [_chunkKS5V55HNcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2843
2843
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2844
|
-
|
|
2844
|
+
_chunkKS5V55HNcjs.QuickActionChipButton,
|
|
2845
2845
|
{
|
|
2846
2846
|
loading,
|
|
2847
2847
|
variant: "question",
|
|
@@ -3051,7 +3051,7 @@ function QuickActionMarquee({
|
|
|
3051
3051
|
);
|
|
3052
3052
|
if (items.length === 0) return null;
|
|
3053
3053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3054
|
-
|
|
3054
|
+
_chunkKS5V55HNcjs.QuickActionWall,
|
|
3055
3055
|
{
|
|
3056
3056
|
chips,
|
|
3057
3057
|
mode,
|
|
@@ -3266,7 +3266,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3266
3266
|
hasNextPage,
|
|
3267
3267
|
isFetchingNextPage,
|
|
3268
3268
|
onLoadMore,
|
|
3269
|
-
pageSize =
|
|
3269
|
+
pageSize = _chunkKS5V55HNcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3270
3270
|
...props
|
|
3271
3271
|
}, ref) => {
|
|
3272
3272
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3550,7 +3550,7 @@ function OnboardingCarousel({
|
|
|
3550
3550
|
|
|
3551
3551
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3552
3552
|
var GRID_CELL_CLASS = "h-full";
|
|
3553
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3553
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3554
3554
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3555
3555
|
if (loadingCard !== void 0) return loadingCard;
|
|
3556
3556
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3564,7 +3564,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3564
3564
|
label = "Loading",
|
|
3565
3565
|
region = true
|
|
3566
3566
|
}) {
|
|
3567
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3567
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3568
3568
|
}
|
|
3569
3569
|
function AdminContentCardGrid({
|
|
3570
3570
|
items,
|
|
@@ -3860,7 +3860,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3860
3860
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3861
3861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3862
3862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3863
|
-
campaign.start_date ?
|
|
3863
|
+
campaign.start_date ? _chunkI3RJLXELcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3864
3864
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3865
3865
|
"Marketing campaign"
|
|
3866
3866
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
@@ -5156,7 +5156,7 @@ function Section({ title, description, children }) {
|
|
|
5156
5156
|
] });
|
|
5157
5157
|
}
|
|
5158
5158
|
function ProxyCredentialsPanel({ description }) {
|
|
5159
|
-
const hydrated =
|
|
5159
|
+
const hydrated = _chunkKS5V55HNcjs.useIsHydrated.call(void 0, );
|
|
5160
5160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5161
5161
|
ProxyCredentialsForm,
|
|
5162
5162
|
{
|
|
@@ -5320,21 +5320,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5320
5320
|
|
|
5321
5321
|
// src/components/chat/index.ts
|
|
5322
5322
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5323
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5323
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-XT6GMSBX.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5324
5324
|
);
|
|
5325
5325
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5326
5326
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5327
5327
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5328
|
-
_react.useEffect.call(void 0, () =>
|
|
5328
|
+
_react.useEffect.call(void 0, () => _chunkKS5V55HNcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5329
5329
|
_react.useEffect.call(void 0, () => {
|
|
5330
5330
|
if (load) return void 0;
|
|
5331
5331
|
const start = () => setLoadRequested(true);
|
|
5332
|
-
if (
|
|
5333
|
-
for (const name of
|
|
5334
|
-
const cancel =
|
|
5332
|
+
if (_chunkKS5V55HNcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5333
|
+
for (const name of _chunkKS5V55HNcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5334
|
+
const cancel = _chunkKS5V55HNcjs.onAskAiIntent.call(void 0, start);
|
|
5335
5335
|
return () => {
|
|
5336
5336
|
cancel();
|
|
5337
|
-
for (const name of
|
|
5337
|
+
for (const name of _chunkKS5V55HNcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5338
5338
|
};
|
|
5339
5339
|
}, [load]);
|
|
5340
5340
|
if (!load) return null;
|