@flamingo-stack/openframe-frontend-core 0.0.767 → 0.0.769
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-REJMFXGD.cjs → chunk-2MND64QJ.cjs} +46 -46
- package/dist/{chunk-BXMDLQUA.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-KHISVNNH.cjs → chunk-3AZZFTT6.cjs} +6 -6
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-GJ5DHDFQ.cjs → chunk-5HWBW7WU.cjs} +12 -12
- package/dist/{chunk-IKXUJUXC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NO2DEFAP.cjs → chunk-BIHMMGRP.cjs} +80 -80
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-I7A5MPXA.cjs → chunk-D45Q3WEP.cjs} +3 -3
- package/dist/{chunk-WEPIWJGR.cjs → chunk-DEJB5WHZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-XIXR6BHI.cjs → chunk-EZTHTSWZ.cjs} +44 -44
- package/dist/{chunk-UHDBMKJB.cjs → chunk-GGORS7G6.cjs} +13 -13
- package/dist/{chunk-FZB4RMRK.cjs → chunk-HQF62LAU.cjs} +33 -33
- package/dist/{chunk-JTSUAHDL.cjs → chunk-HY6BCZH7.cjs} +4 -2
- package/dist/{chunk-MNIMYGFR.cjs → chunk-IEPWXEA6.cjs} +31 -31
- package/dist/{chunk-FVH53QZJ.cjs → chunk-L5WSNX4H.cjs} +517 -550
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-ZV45VS6K.cjs → chunk-MZLWB5AH.cjs} +35 -44
- package/dist/{chunk-GQ7RGD4Y.cjs → chunk-QC47HVA4.cjs} +76 -76
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-TPOLNGOW.cjs → chunk-SV6K7ZLA.cjs} +41 -41
- package/dist/{chunk-JBJVUQVH.cjs → chunk-UBPSA3RM.cjs} +87 -87
- package/dist/{chunk-7TJVYRHR.cjs → chunk-UIXWG2IW.cjs} +24 -24
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-7ZU3AVEX.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-M2UU3CWX.cjs → chunk-YTPEJIAO.cjs} +5 -5
- package/dist/{chunk-RMUSPTJN.cjs → chunk-ZVNL5OK6.cjs} +5 -5
- package/dist/{chunk-YL6ZB2SR.cjs → chunk-ZXFOMNI5.cjs} +183 -183
- package/dist/{cloud-tenants-WXK5RDSY.cjs → cloud-tenants-3BEIT4LX.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.d.ts +1 -1
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +5 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +9 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +2 -19
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/paths-display.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.js +1 -10
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-keep-modals.js +1 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +16 -3
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +7 -21
- package/dist/components/ui/incident-feed.d.ts +1 -1
- package/dist/components/ui/incident-feed.d.ts.map +1 -1
- package/dist/components/ui/incident-feed.js +1 -7
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/ui/leader-row.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.js +4 -13
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +5 -1
- package/dist/components/ui/status-line.d.ts.map +1 -1
- package/dist/components/ui/status-line.js +1 -7
- package/dist/components/ui/strip-card.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/{devices-UHHHTCJF.cjs → devices-ZCOK24D4.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +20 -18
- package/dist/{knowledge-TJKHM7W4.cjs → knowledge-W47QGTEK.cjs} +14 -14
- package/dist/{logs-B3KCCMPE.cjs → logs-3DMPE2TM.cjs} +21 -21
- package/dist/{policies-ZTUIXSYZ.cjs → policies-UWHW765K.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-WVORQV7V.cjs} +7 -7
- package/dist/{scripts-FIFAHBS6.cjs → scripts-BH7V2ZC4.cjs} +20 -20
- package/dist/{software-update-62PLASQU.cjs → software-update-W6AAGJ2H.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- package/dist/utils/format.d.ts +13 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +4 -2
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
- package/src/components/case-studies/entity-quotes-panel.tsx +18 -18
- package/src/components/case-studies/index.ts +8 -1
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +1 -3
- package/src/components/chat/entity-cards/investor-update-card.tsx +6 -1
- package/src/components/chat/hooks/use-ask-prompts.ts +1 -2
- package/src/components/features/cards-strip.tsx +3 -2
- package/src/components/features/command-box.tsx +2 -11
- package/src/components/features/paths-display.tsx +4 -1
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +1 -6
- package/src/components/features/remote-session/remote-session-keep-modals.tsx +2 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/date-picker.tsx +41 -14
- package/src/components/ui/feature-card.tsx +2 -10
- package/src/components/ui/feature-list.tsx +2 -8
- package/src/components/ui/incident-feed.tsx +2 -13
- package/src/components/ui/leader-row.tsx +0 -1
- package/src/components/ui/product-screen-frame.tsx +1 -6
- package/src/components/ui/status-badge.tsx +5 -1
- package/src/components/ui/status-line.tsx +1 -4
- package/src/components/ui/strip-card.tsx +1 -3
- package/src/components/ui/tag.tsx +3 -1
- package/src/utils/format.ts +16 -4
- package/src/utils/index.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkUIXWG2IWcjs = require('./chunk-UIXWG2IW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,14 +9,14 @@ var _chunk7TJVYRHRcjs = require('./chunk-7TJVYRHR.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDEJB5WHZcjs = require('./chunk-DEJB5WHZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBLTNKLAXcjs = require('./chunk-BLTNKLAX.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk2TS3FEPQcjs = require('./chunk-2TS3FEPQ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ var _chunkBXMDLQUAcjs = require('./chunk-BXMDLQUA.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkL5WSNX4Hcjs = require('./chunk-L5WSNX4H.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -43,19 +43,19 @@ var _chunkXVFM6SJAcjs = require('./chunk-XVFM6SJA.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkZXFOMNI5cjs = require('./chunk-ZXFOMNI5.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkEHJE3UWZcjs = require('./chunk-EHJE3UWZ.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk5QP3K2CEcjs = require('./chunk-5QP3K2CE.cjs');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -73,10 +73,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -154,7 +154,7 @@ var TicketActionFailure = class extends Error {
|
|
|
154
154
|
function useTicketActions(options) {
|
|
155
155
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
156
156
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
157
|
-
const ticketLive =
|
|
157
|
+
const ticketLive = _chunk2TS3FEPQcjs.useOptionalTicketLive.call(void 0, );
|
|
158
158
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
159
159
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
160
160
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -647,7 +647,7 @@ var COUNTER_VISIBLE_AT = Math.floor(TICKET_TEXT_MAX_CHARS * 0.8);
|
|
|
647
647
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
648
648
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
649
649
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
650
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
650
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkZXFOMNI5cjs.useChatAttachments.call(void 0, );
|
|
651
651
|
const trimmedSubject = subject.trim();
|
|
652
652
|
const trimmedContent = content.trim();
|
|
653
653
|
const overCap = content.length > TICKET_TEXT_MAX_CHARS;
|
|
@@ -667,7 +667,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
667
667
|
clear();
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
670
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
671
671
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
672
672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
673
673
|
/* @__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." }),
|
|
@@ -692,7 +692,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
692
692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
694
694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
695
|
-
|
|
695
|
+
_chunkL5WSNX4Hcjs.Textarea,
|
|
696
696
|
{
|
|
697
697
|
id: "ticket-content",
|
|
698
698
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -710,7 +710,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
710
710
|
] })
|
|
711
711
|
] }),
|
|
712
712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
713
|
-
|
|
713
|
+
_chunkZXFOMNI5cjs.ChatAttachmentChipStrip,
|
|
714
714
|
{
|
|
715
715
|
attachments,
|
|
716
716
|
onRemove: removeAttachment,
|
|
@@ -719,7 +719,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
719
719
|
),
|
|
720
720
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
721
721
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
722
|
-
|
|
722
|
+
_chunkZXFOMNI5cjs.ChatAttachmentAddButton,
|
|
723
723
|
{
|
|
724
724
|
attachmentsEnabled: !supportSystemDown,
|
|
725
725
|
attachmentsCount: attachments.length,
|
|
@@ -749,7 +749,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
749
749
|
|
|
750
750
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
751
751
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
752
|
-
const identity =
|
|
752
|
+
const identity = _chunkZXFOMNI5cjs.useChatIdentity.call(void 0, );
|
|
753
753
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _22 => _22.user, 'optionalAccess', _23 => _23.email]), () => ( "anon"));
|
|
754
754
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
755
755
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -822,7 +822,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
822
822
|
dateClosed: clickup.date_closed,
|
|
823
823
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
824
824
|
};
|
|
825
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${
|
|
825
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunk4EJU462Ocjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -837,7 +837,7 @@ function TicketReplyComposer({
|
|
|
837
837
|
}) {
|
|
838
838
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
839
839
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
840
|
-
const attachments =
|
|
840
|
+
const attachments = _chunkZXFOMNI5cjs.useChatAttachments.call(void 0, );
|
|
841
841
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
842
842
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
843
843
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -858,7 +858,7 @@ function TicketReplyComposer({
|
|
|
858
858
|
const disabled = busy || supportSystemDown;
|
|
859
859
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
860
860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
861
|
-
|
|
861
|
+
_chunkZXFOMNI5cjs.ChatAttachmentChipStrip,
|
|
862
862
|
{
|
|
863
863
|
attachments: attachments.attachments,
|
|
864
864
|
onRemove: attachments.removeAttachment,
|
|
@@ -867,7 +867,7 @@ function TicketReplyComposer({
|
|
|
867
867
|
}
|
|
868
868
|
),
|
|
869
869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
870
|
-
|
|
870
|
+
_chunk5QP3K2CEcjs.ChatInput,
|
|
871
871
|
{
|
|
872
872
|
fullWidth: true,
|
|
873
873
|
autoFocus: true,
|
|
@@ -881,7 +881,7 @@ function TicketReplyComposer({
|
|
|
881
881
|
),
|
|
882
882
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
883
883
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
|
|
884
|
+
_chunkZXFOMNI5cjs.ChatAttachmentAddButton,
|
|
885
885
|
{
|
|
886
886
|
attachmentsEnabled: true,
|
|
887
887
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -904,13 +904,13 @@ function TicketReplyComposer({
|
|
|
904
904
|
}
|
|
905
905
|
)
|
|
906
906
|
] }),
|
|
907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL5WSNX4Hcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL5WSNX4Hcjs.AlertDialogHeader, { children: [
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
911
911
|
] }),
|
|
912
912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
913
|
-
|
|
913
|
+
_chunkL5WSNX4Hcjs.Textarea,
|
|
914
914
|
{
|
|
915
915
|
value: resolution,
|
|
916
916
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -920,9 +920,9 @@ function TicketReplyComposer({
|
|
|
920
920
|
className: "mt-2"
|
|
921
921
|
}
|
|
922
922
|
),
|
|
923
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
923
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL5WSNX4Hcjs.AlertDialogFooter, { children: [
|
|
924
924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
925
|
-
|
|
925
|
+
_chunkL5WSNX4Hcjs.AlertDialogCancel,
|
|
926
926
|
{
|
|
927
927
|
disabled: busy,
|
|
928
928
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -930,7 +930,7 @@ function TicketReplyComposer({
|
|
|
930
930
|
}
|
|
931
931
|
),
|
|
932
932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
933
|
-
|
|
933
|
+
_chunkL5WSNX4Hcjs.AlertDialogAction,
|
|
934
934
|
{
|
|
935
935
|
onClick: () => void confirmClose(),
|
|
936
936
|
disabled: busy,
|
|
@@ -992,10 +992,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
992
992
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
993
993
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
994
994
|
function TicketTimelinePanel({ ticket }) {
|
|
995
|
-
const identity =
|
|
995
|
+
const identity = _chunkZXFOMNI5cjs.useChatIdentity.call(void 0, );
|
|
996
996
|
const externalId = isOptimistic(ticket) ? null : ticket.external_id;
|
|
997
997
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
998
|
-
const live =
|
|
998
|
+
const live = _chunk2TS3FEPQcjs.useOptionalTicketLive.call(void 0, );
|
|
999
999
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _26 => _26.setOpenTicketId]);
|
|
1000
1000
|
const markRead = _optionalChain([live, 'optionalAccess', _27 => _27.markRead]);
|
|
1001
1001
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -1034,11 +1034,11 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1034
1034
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _41 => _41.user, 'optionalAccess', _42 => _42.email]) || "You";
|
|
1035
1035
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _43 => _43.user, 'optionalAccess', _44 => _44.avatarUrl]), () => ( void 0)) : void 0;
|
|
1036
1036
|
if (isLoading) {
|
|
1037
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1037
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1038
1038
|
}
|
|
1039
1039
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1040
1040
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1041
|
-
|
|
1041
|
+
_chunkBLTNKLAXcjs.EmptyState,
|
|
1042
1042
|
{
|
|
1043
1043
|
type: "generic",
|
|
1044
1044
|
title: "No conversation yet",
|
|
@@ -1053,7 +1053,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1053
1053
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1054
1054
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1055
1055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1056
|
+
_chunkUBPSA3RMcjs.ChatMessageRow,
|
|
1057
1057
|
{
|
|
1058
1058
|
displayName: customerName,
|
|
1059
1059
|
avatarUrl: customerAvatar,
|
|
@@ -1082,13 +1082,13 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1084
1084
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1085
|
-
|
|
1085
|
+
_chunkUBPSA3RMcjs.ChatMessageRow,
|
|
1086
1086
|
{
|
|
1087
1087
|
displayName: author,
|
|
1088
1088
|
avatarUrl: avatarSrc,
|
|
1089
|
-
timeLabel: eng.createdAt ?
|
|
1089
|
+
timeLabel: eng.createdAt ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1090
1090
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1091
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1091
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1092
1092
|
},
|
|
1093
1093
|
eng.id
|
|
1094
1094
|
);
|
|
@@ -1173,7 +1173,7 @@ function AssignedAgentRow({ assignedOwner }) {
|
|
|
1173
1173
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h5", children: "Assigned to" }),
|
|
1174
1174
|
displayLabel ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 font-medium text-ods-text-primary", children: [
|
|
1175
1175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1176
|
-
|
|
1176
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
1177
1177
|
{
|
|
1178
1178
|
size: "sm",
|
|
1179
1179
|
variant: "round",
|
|
@@ -1229,7 +1229,7 @@ function TicketRow({
|
|
|
1229
1229
|
// so the badge accurately reflects "Closed" with a checkmark.
|
|
1230
1230
|
statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
|
|
1231
1231
|
category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
|
|
1232
|
-
timeAgo: ticket.hubspot_updated_at ?
|
|
1232
|
+
timeAgo: ticket.hubspot_updated_at ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
|
|
1233
1233
|
// Linked-work chip: surfaced whenever the ticket has a linked
|
|
1234
1234
|
// ClickUp task. Uses the linked task's own status so the chip text
|
|
1235
1235
|
// reads "Working" / "Waiting on version release" / etc. — useful
|
|
@@ -1239,7 +1239,7 @@ function TicketRow({
|
|
|
1239
1239
|
};
|
|
1240
1240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: "scroll-mt-24", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: "border-b border-ods-border last:border-b-0", children: [
|
|
1241
1241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1242
|
-
|
|
1242
|
+
_chunkUBPSA3RMcjs.ChatTicketItem,
|
|
1243
1243
|
{
|
|
1244
1244
|
ticket: tileData,
|
|
1245
1245
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1280,13 +1280,13 @@ function TicketCenter({ toast: toast2 = _chunkXVFM6SJAcjs.toast } = {}) {
|
|
|
1280
1280
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterGate, { toast: toast2 });
|
|
1281
1281
|
}
|
|
1282
1282
|
function TicketCenterGate({ toast: toast2 }) {
|
|
1283
|
-
const identity =
|
|
1283
|
+
const identity = _chunkZXFOMNI5cjs.useChatIdentity.call(void 0, );
|
|
1284
1284
|
if (identity.isLoading) {
|
|
1285
1285
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterPending, {});
|
|
1286
1286
|
}
|
|
1287
1287
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _63 => _63.user, 'optionalAccess', _64 => _64.email])) {
|
|
1288
1288
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1289
|
-
|
|
1289
|
+
_chunkBLTNKLAXcjs.EmptyState,
|
|
1290
1290
|
{
|
|
1291
1291
|
type: "generic",
|
|
1292
1292
|
title: "Sign in to manage tickets",
|
|
@@ -1335,7 +1335,7 @@ function TicketCenterAuthed({
|
|
|
1335
1335
|
const toggleRow = _react.useCallback.call(void 0, (id) => {
|
|
1336
1336
|
setExpandedTicketId((prev) => prev === id ? null : id);
|
|
1337
1337
|
}, []);
|
|
1338
|
-
const syncInPage =
|
|
1338
|
+
const syncInPage = _chunkDEJB5WHZcjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1339
1339
|
const merged = [...optimisticTickets, ...tickets];
|
|
1340
1340
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1341
1341
|
TicketCenterView,
|
|
@@ -1351,7 +1351,7 @@ function TicketCenterAuthed({
|
|
|
1351
1351
|
renderRow: (ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1352
1352
|
TicketRow,
|
|
1353
1353
|
{
|
|
1354
|
-
id:
|
|
1354
|
+
id: _chunkUBPSA3RMcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1355
1355
|
ticket,
|
|
1356
1356
|
expanded: expandedTicketId === ticket.id,
|
|
1357
1357
|
onToggle: toggleRow,
|
|
@@ -1370,7 +1370,7 @@ function TicketCenterAuthed({
|
|
|
1370
1370
|
function TicketCenterPending({
|
|
1371
1371
|
region = true
|
|
1372
1372
|
} = {}) {
|
|
1373
|
-
const syncInPage =
|
|
1373
|
+
const syncInPage = _chunkDEJB5WHZcjs.usePageDataSync.call(void 0, null, true);
|
|
1374
1374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading tickets", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.LoadingScope, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1375
1375
|
TicketCenterView,
|
|
1376
1376
|
{
|
|
@@ -1412,8 +1412,8 @@ function TicketList({
|
|
|
1412
1412
|
}) {
|
|
1413
1413
|
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {});
|
|
1414
1414
|
if (tickets.length === 0) {
|
|
1415
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1416
|
-
|
|
1415
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1416
|
+
_chunkBLTNKLAXcjs.EmptyState,
|
|
1417
1417
|
{
|
|
1418
1418
|
type: "generic",
|
|
1419
1419
|
title: "No tickets yet",
|
|
@@ -1422,7 +1422,7 @@ function TicketList({
|
|
|
1422
1422
|
}
|
|
1423
1423
|
) });
|
|
1424
1424
|
}
|
|
1425
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1425
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: "overflow-hidden", children: tickets.map(renderRow) });
|
|
1426
1426
|
}
|
|
1427
1427
|
function TicketListHeader({
|
|
1428
1428
|
sync,
|
|
@@ -1433,7 +1433,7 @@ function TicketListHeader({
|
|
|
1433
1433
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
1434
1434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h5", children: "Your Current Tickets" }),
|
|
1435
1435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1436
|
-
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1436
|
+
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.DataSyncLine, { sync, loading: syncLoading, inline: true }),
|
|
1437
1437
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { inert: !onRefresh || void 0, "aria-hidden": !onRefresh || void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1438
1438
|
_chunkTF5D5MNOcjs.Button,
|
|
1439
1439
|
{
|
|
@@ -1450,7 +1450,7 @@ function TicketListHeader({
|
|
|
1450
1450
|
] });
|
|
1451
1451
|
}
|
|
1452
1452
|
function TicketListSkeleton() {
|
|
1453
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1453
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: "overflow-hidden", children: Array.from({ length: Math.max(TICKET_LIST_FOLD.phone, TICKET_LIST_FOLD.wide) }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1454
1454
|
"div",
|
|
1455
1455
|
{
|
|
1456
1456
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
@@ -1458,7 +1458,7 @@ function TicketListSkeleton() {
|
|
|
1458
1458
|
i >= TICKET_LIST_FOLD.phone && "hidden md:block",
|
|
1459
1459
|
i >= TICKET_LIST_FOLD.wide && "md:hidden"
|
|
1460
1460
|
),
|
|
1461
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1461
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.ChatTicketItemSkeleton, {})
|
|
1462
1462
|
},
|
|
1463
1463
|
i
|
|
1464
1464
|
)) });
|
|
@@ -1488,7 +1488,7 @@ function HelpCenterCard({
|
|
|
1488
1488
|
const optimistic = isOptimistic(ticket);
|
|
1489
1489
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1490
1490
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1491
|
-
const relativeUpdated = ticket.hubspot_updated_at ?
|
|
1491
|
+
const relativeUpdated = ticket.hubspot_updated_at ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
1492
1492
|
const title = (ticket.subject || "").trim() || "(untitled)";
|
|
1493
1493
|
const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
|
|
1494
1494
|
const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
|
|
@@ -1507,11 +1507,11 @@ function HelpCenterCard({
|
|
|
1507
1507
|
});
|
|
1508
1508
|
return () => cancelAnimationFrame(raf);
|
|
1509
1509
|
}, [isExpanded]);
|
|
1510
|
-
const live =
|
|
1510
|
+
const live = _chunk2TS3FEPQcjs.useOptionalTicketLive.call(void 0, );
|
|
1511
1511
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _65 => _65.unreadByTicket, 'access', _66 => _66[ticket.external_id]]) || 0;
|
|
1512
1512
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1513
1513
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1514
|
-
|
|
1514
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
1515
1515
|
{
|
|
1516
1516
|
text: `${unreadCount} NEW`,
|
|
1517
1517
|
colorScheme: "warning",
|
|
@@ -1520,16 +1520,16 @@ function HelpCenterCard({
|
|
|
1520
1520
|
}
|
|
1521
1521
|
),
|
|
1522
1522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1523
|
-
|
|
1523
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
1524
1524
|
{
|
|
1525
1525
|
text: rawStatus,
|
|
1526
|
-
colorScheme:
|
|
1526
|
+
colorScheme: _chunk4EJU462Ocjs.getStatusColorScheme.call(void 0, rawStatus),
|
|
1527
1527
|
variant: "card",
|
|
1528
1528
|
className: "border border-ods-border"
|
|
1529
1529
|
}
|
|
1530
1530
|
),
|
|
1531
1531
|
priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1532
|
-
|
|
1532
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
1533
1533
|
{
|
|
1534
1534
|
text: priority,
|
|
1535
1535
|
colorScheme: mapPriorityScheme(priority),
|
|
@@ -1557,7 +1557,7 @@ function HelpCenterCard({
|
|
|
1557
1557
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1558
1558
|
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 content-md:p-[16px]",
|
|
1559
1559
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1560
|
-
|
|
1560
|
+
_chunkDEJB5WHZcjs.DevCardRowContent,
|
|
1561
1561
|
{
|
|
1562
1562
|
title,
|
|
1563
1563
|
subtitle,
|
|
@@ -1668,7 +1668,7 @@ function HelpCenterCreateForm({
|
|
|
1668
1668
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1669
1669
|
] });
|
|
1670
1670
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1671
|
-
|
|
1671
|
+
_chunkUIXWG2IWcjs.ContactForm,
|
|
1672
1672
|
{
|
|
1673
1673
|
rescue: null,
|
|
1674
1674
|
title: "Open a new ticket",
|
|
@@ -1707,30 +1707,30 @@ function HelpCenterCreateForm({
|
|
|
1707
1707
|
// src/components/tickets/help-center-list.tsx
|
|
1708
1708
|
|
|
1709
1709
|
function HelpCenterList({ toast: toast2 = _chunkXVFM6SJAcjs.toast, backButton, title, shell } = {}) {
|
|
1710
|
-
const identity =
|
|
1710
|
+
const identity = _chunkZXFOMNI5cjs.useChatIdentity.call(void 0, );
|
|
1711
1711
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
1712
1712
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1713
1713
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1714
|
-
const search = searchParams.get(
|
|
1714
|
+
const search = searchParams.get(_chunkUBPSA3RMcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1715
1715
|
const status = searchParams.get("status") || "all";
|
|
1716
|
-
const ticketParam = searchParams.get(
|
|
1716
|
+
const ticketParam = searchParams.get(_chunkUBPSA3RMcjs.TICKET_OPEN_PARAM) || "";
|
|
1717
1717
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1718
1718
|
if (identity.isLoading) {
|
|
1719
1719
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1720
|
-
|
|
1720
|
+
_chunkDEJB5WHZcjs.DevSectionPage,
|
|
1721
1721
|
{
|
|
1722
1722
|
sectionKey: "tickets",
|
|
1723
1723
|
backButton,
|
|
1724
1724
|
title,
|
|
1725
1725
|
shell,
|
|
1726
1726
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1727
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1727
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DevCardRowSkeletonList, {})
|
|
1728
1728
|
}
|
|
1729
1729
|
);
|
|
1730
1730
|
}
|
|
1731
1731
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _67 => _67.user, 'optionalAccess', _68 => _68.email])) {
|
|
1732
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
|
|
1732
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
+
_chunkBLTNKLAXcjs.EmptyState,
|
|
1734
1734
|
{
|
|
1735
1735
|
type: "generic",
|
|
1736
1736
|
title: "Sign in to manage tickets",
|
|
@@ -1781,8 +1781,8 @@ function HelpCenterListAuthed({
|
|
|
1781
1781
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1782
1782
|
(externalId) => {
|
|
1783
1783
|
const params = new URLSearchParams(searchParams.toString());
|
|
1784
|
-
if (externalId) params.set(
|
|
1785
|
-
else params.delete(
|
|
1784
|
+
if (externalId) params.set(_chunkUBPSA3RMcjs.TICKET_OPEN_PARAM, externalId);
|
|
1785
|
+
else params.delete(_chunkUBPSA3RMcjs.TICKET_OPEN_PARAM);
|
|
1786
1786
|
const qs = params.toString();
|
|
1787
1787
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1788
1788
|
},
|
|
@@ -1859,15 +1859,15 @@ function HelpCenterListAuthed({
|
|
|
1859
1859
|
] }),
|
|
1860
1860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1861
1861
|
] }),
|
|
1862
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1862
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1863
1863
|
// Bridge state — background refetch in flight and the
|
|
1864
1864
|
// optimistic placeholder was just removed by the mutation
|
|
1865
1865
|
// callback. Without this branch "No tickets yet" would flash
|
|
1866
1866
|
// for ~50ms between `removeOptimistic` and the server
|
|
1867
1867
|
// response landing.
|
|
1868
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1869
1869
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1870
|
-
|
|
1870
|
+
_chunkDEJB5WHZcjs.ListEmptyState,
|
|
1871
1871
|
{
|
|
1872
1872
|
isFiltered: hasActiveFilters,
|
|
1873
1873
|
filtered: {
|
|
@@ -1898,7 +1898,7 @@ function HelpCenterListAuthed({
|
|
|
1898
1898
|
/* @__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,
|
|
1899
1899
|
HelpCenterCard,
|
|
1900
1900
|
{
|
|
1901
|
-
id:
|
|
1901
|
+
id: _chunkUBPSA3RMcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1902
1902
|
ticket,
|
|
1903
1903
|
expanded: expandedTicketId === ticket.id,
|
|
1904
1904
|
onToggle: toggleRow,
|
|
@@ -1914,9 +1914,9 @@ function HelpCenterListAuthed({
|
|
|
1914
1914
|
ticket.id
|
|
1915
1915
|
)) })
|
|
1916
1916
|
) }),
|
|
1917
|
-
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
+
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBLTNKLAXcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1918
1918
|
] });
|
|
1919
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1919
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDEJB5WHZcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
1922
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunk4EJU462Ocjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|