@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.830
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-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-QMQWXGCH.cjs → chunk-56EP4QM2.cjs} +29 -25
- package/dist/{chunk-4ZH7RPEA.cjs → chunk-5KSPG3TV.cjs} +388 -388
- package/dist/{chunk-BGT6JFMP.cjs → chunk-5LED4QHZ.cjs} +527 -434
- package/dist/{chunk-6ZLCEIIC.cjs → chunk-CAGQAMJ6.cjs} +23 -23
- package/dist/{chunk-ALRX2VIY.cjs → chunk-D2LXFMZI.cjs} +26 -26
- package/dist/{chunk-VAIML6YU.cjs → chunk-DUGOOTER.cjs} +13 -13
- package/dist/{chunk-XPF74L76.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-UULSSD56.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-UWGPYAB3.cjs → chunk-HYCMMECU.cjs} +51 -51
- package/dist/{chunk-DR4P7AEU.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/chunk-IX2E3AN7.cjs +77 -0
- package/dist/{chunk-YKUL6JBI.cjs → chunk-M75723HD.cjs} +46 -34
- package/dist/{chunk-RPKWEBHC.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-3WKQ2GCR.cjs → chunk-RRPID7Z7.cjs} +6 -8
- package/dist/{chunk-6SFCI6D4.cjs → chunk-SAW7V7CU.cjs} +14 -16
- package/dist/{chunk-B5H7RKFF.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-7VC5FVWT.cjs → chunk-ULF4ZOUM.cjs} +65 -65
- package/dist/{chunk-ZT7JHN7G.cjs → chunk-WCCE4WF3.cjs} +57 -62
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-K6X7VP2Y.cjs → chunk-WZYBUJJG.cjs} +43 -43
- package/dist/{chunk-SVCTAOJR.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-4KQQPXPM.cjs} +12 -11
- package/dist/components/case-studies/index.cjs +24 -23
- package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.js +3 -1
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +22 -14
- package/dist/components/chat/guide-welcome.d.ts +14 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +9 -24
- package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
- package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
- package/dist/components/chat/index.cjs +13 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +13 -12
- package/dist/components/docs/index.cjs +16 -15
- package/dist/components/embeds/index.cjs +13 -12
- package/dist/components/faq/faq-ask-card.d.ts +2 -13
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-ask-card.js +1 -2
- package/dist/components/faq/faq-document-page.d.ts +2 -4
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +0 -2
- package/dist/components/faq/faq-section.d.ts +16 -29
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +23 -15
- package/dist/components/faq/index.cjs +14 -13
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +12 -11
- package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +4 -16
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +3 -4
- package/dist/components/help-center-pages/index.cjs +123 -171
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
- package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +13 -25
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +58 -49
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/meeting-scheduler/index.cjs +50 -49
- package/dist/components/navigation/index.cjs +15 -14
- package/dist/components/onboarding-guides/index.cjs +14 -13
- package/dist/components/page-topic-label.d.ts +13 -0
- package/dist/components/page-topic-label.d.ts.map +1 -0
- package/dist/components/page-topic-label.js +20 -0
- package/dist/components/product-demo/index.cjs +23 -22
- package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +2 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +2 -5
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
- package/dist/components/tickets/index.cjs +17 -16
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +18 -11
- package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
- package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +10 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -0
- package/dist/contexts/page-topics-context.d.ts +30 -0
- package/dist/contexts/page-topics-context.d.ts.map +1 -0
- package/dist/contexts/page-topics-context.js +27 -0
- package/dist/{devices-JWG72ANF.cjs → devices-H6C4NMIY.cjs} +13 -12
- package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-KUESE7P6.cjs} +107 -97
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +33 -15
- package/dist/{knowledge-DQXVSHME.cjs → knowledge-O6IBO5Y5.cjs} +13 -12
- package/dist/{logs-Z33VBTVX.cjs → logs-Y2UCF24Z.cjs} +19 -18
- package/dist/{policies-XE4UMH6Z.cjs → policies-J6O3RLJT.cjs} +16 -15
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-MECQG5GG.cjs → scripts-N67MM4T2.cjs} +19 -18
- package/dist/{software-update-PCSIA6BP.cjs → software-update-HB7F6KNG.cjs} +16 -15
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +12 -0
- package/dist/utils/page-topics.cjs +48 -0
- package/dist/utils/page-topics.d.ts +34 -0
- package/dist/utils/page-topics.d.ts.map +1 -0
- package/dist/utils/page-topics.js +46 -0
- package/package.json +7 -1
- package/src/components/chat/assistant-ask-prompts.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +32 -45
- package/src/components/chat/guide-welcome.tsx +28 -49
- package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/faq/faq-ask-card.tsx +2 -12
- package/src/components/faq/faq-document-page.tsx +1 -5
- package/src/components/faq/faq-section.tsx +47 -50
- package/src/components/faq/index.ts +1 -2
- package/src/components/help-center-pages/delivery-page.tsx +1 -16
- package/src/components/help-center-pages/download-apps-page.tsx +2 -9
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
- package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
- package/src/components/help-center-pages/roadmap-page.tsx +1 -16
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-topic-label.tsx +30 -0
- package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
- package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
- package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/contexts/endpoints-runtime-context.tsx +5 -0
- package/src/contexts/index.ts +1 -0
- package/src/contexts/page-topics-context.tsx +68 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/page-topics.ts +81 -0
- package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkAY6XJOINcjs = require('./chunk-AY6XJOIN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
7
8
|
|
|
8
|
-
var _chunkQMQWXGCHcjs = require('./chunk-QMQWXGCH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
var _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
|
|
@@ -25,6 +29,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
|
|
32
|
+
var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
28
36
|
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
29
37
|
|
|
30
38
|
|
|
@@ -74,7 +82,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
82
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
83
|
"div",
|
|
76
84
|
{
|
|
77
|
-
id:
|
|
85
|
+
id: _chunk5LED4QHZcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
86
|
className: _chunk63A4GZMBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
87
|
"data-loading-item": true,
|
|
80
88
|
children: [
|
|
@@ -140,17 +148,16 @@ function FaqAccordionSkeleton({
|
|
|
140
148
|
|
|
141
149
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
150
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
151
|
+
return _chunk56EP4QM2cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
152
|
}
|
|
145
|
-
function FaqAskCard({
|
|
153
|
+
function FaqAskCard({ exclude, count, title, description, onOpen }) {
|
|
146
154
|
const { ref, inView } = _chunkW4VEDSAXcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
155
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
156
|
if (inView && !reached) setReached(true);
|
|
149
157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
158
|
+
_chunk56EP4QM2cjs.AssistantAskPrompts,
|
|
151
159
|
{
|
|
152
160
|
variant: "card",
|
|
153
|
-
topic,
|
|
154
161
|
count,
|
|
155
162
|
exclude,
|
|
156
163
|
enabled: reached,
|
|
@@ -193,6 +200,7 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
193
200
|
// src/components/faq/faq-section.tsx
|
|
194
201
|
|
|
195
202
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
203
|
+
var DEFAULT_FAQS_PATH = "/api/faqs";
|
|
196
204
|
var SECTION_DEFAULT_CLASS = "space-y-10";
|
|
197
205
|
var NAV_ABOVE_QUESTIONS_CLASS = "pb-8";
|
|
198
206
|
var NAV_BELOW_HEADING_CLASS = "pt-8";
|
|
@@ -201,7 +209,6 @@ var ASIDE_GRID_CLASS = "grid grid-cols-1 gap-10 content-lg:grid-cols-[minmax(0,1
|
|
|
201
209
|
var ASIDE_QUESTIONS_CELL_CLASS = "content-lg:col-start-2 content-lg:row-span-2 content-lg:row-start-1";
|
|
202
210
|
var ASIDE_CELL_CLASS = "content-lg:col-start-1 content-lg:row-start-2";
|
|
203
211
|
var TOPIC_STACK_CLASS = "space-y-1";
|
|
204
|
-
var TOPIC_CLASS = "text-ods-text-muted text-h6";
|
|
205
212
|
var CATEGORY_NAV_CLASS = "flex flex-wrap gap-2";
|
|
206
213
|
var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-hidden";
|
|
207
214
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
@@ -237,18 +244,18 @@ function faqHeadingNode(heading, showTopic, topic) {
|
|
|
237
244
|
if (!(showTopic && topic)) return titleNode;
|
|
238
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.PageTopicLabel, {})
|
|
241
248
|
] });
|
|
242
249
|
}
|
|
243
250
|
var PAGE_FAQ_SECTION_ID = "faq";
|
|
244
251
|
var PAGE_FAQ_IN_PAGE_CLASS = "space-y-10 pt-12 md:pt-20";
|
|
245
|
-
function
|
|
246
|
-
|
|
252
|
+
function SharedPageFaq() {
|
|
253
|
+
const faqsUrl = _optionalChain([_chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, ), 'optionalAccess', _ => _.faqsUrl]);
|
|
254
|
+
return faqsUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqSection, { id: PAGE_FAQ_SECTION_ID, className: PAGE_FAQ_IN_PAGE_CLASS }) : null;
|
|
247
255
|
}
|
|
248
|
-
function buildFaqsUrl(entityType, entityId, minResults,
|
|
256
|
+
function buildFaqsUrl(endpoint, entityType, entityId, minResults, topic) {
|
|
249
257
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return _chunkYMLRDVPOcjs.buildSuggestionUrl.call(void 0,
|
|
251
|
-
apiBaseUrl,
|
|
258
|
+
return _chunkYMLRDVPOcjs.buildSuggestionUrl.call(void 0, endpoint, {
|
|
252
259
|
entityType,
|
|
253
260
|
entityId,
|
|
254
261
|
count: minResults,
|
|
@@ -260,7 +267,7 @@ function groupFaqsBySection(faqs) {
|
|
|
260
267
|
let uncategorized = null;
|
|
261
268
|
for (const faq of faqs) {
|
|
262
269
|
const item = { id: faq.id, question: faq.question, answer: faq.answer };
|
|
263
|
-
const name = _optionalChain([faq, 'access',
|
|
270
|
+
const name = _optionalChain([faq, 'access', _2 => _2.section, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
|
|
264
271
|
if (!name) {
|
|
265
272
|
if (!uncategorized) uncategorized = { section: null, slug: null, items: [] };
|
|
266
273
|
uncategorized.items.push(item);
|
|
@@ -268,7 +275,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
275
|
}
|
|
269
276
|
let group = byName.get(name);
|
|
270
277
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
278
|
+
group = { section: name, slug: _chunk5LED4QHZcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
279
|
byName.set(name, group);
|
|
273
280
|
}
|
|
274
281
|
group.items.push(item);
|
|
@@ -288,7 +295,7 @@ function GroupedFaqList({
|
|
|
288
295
|
}) {
|
|
289
296
|
const CategoryHeading = categoryHeadingAs;
|
|
290
297
|
const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
|
|
291
|
-
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access',
|
|
298
|
+
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _5 => _5[0], 'optionalAccess', _6 => _6.slug]), () => ( null)));
|
|
292
299
|
const slugKey = navGroups.map((g) => g.slug).join("|");
|
|
293
300
|
const navGroupsRef = _react.useRef.call(void 0, navGroups);
|
|
294
301
|
_react.useEffect.call(void 0, () => {
|
|
@@ -324,13 +331,13 @@ function GroupedFaqList({
|
|
|
324
331
|
}, [slugKey]);
|
|
325
332
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
333
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
334
|
+
const refresh = () => setHashTarget(_chunk5LED4QHZcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
335
|
refresh();
|
|
329
336
|
window.addEventListener("hashchange", refresh);
|
|
330
337
|
return () => window.removeEventListener("hashchange", refresh);
|
|
331
338
|
}, []);
|
|
332
339
|
const defaultOpenByGroupKey = _react.useMemo.call(void 0, () => {
|
|
333
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
340
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) !== "item") return null;
|
|
334
341
|
const targetId = hashTarget.rawId;
|
|
335
342
|
const result = /* @__PURE__ */ new Map();
|
|
336
343
|
for (const group of groups) {
|
|
@@ -339,13 +346,13 @@ function GroupedFaqList({
|
|
|
339
346
|
}
|
|
340
347
|
return result.size > 0 ? result : null;
|
|
341
348
|
}, [groups, hashTarget]);
|
|
342
|
-
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess',
|
|
343
|
-
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess',
|
|
344
|
-
|
|
349
|
+
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
350
|
+
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
351
|
+
_chunkAY6XJOINcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkW4VEDSAXcjs.STICKY_HEADER_OFFSET_PX });
|
|
345
352
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
346
353
|
if (pillSyncedHash !== hashTarget) {
|
|
347
354
|
setPillSyncedHash(hashTarget);
|
|
348
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
355
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _11 => _11.kind]) === "section") setActiveSlug(hashTarget.slug);
|
|
349
356
|
}
|
|
350
357
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
351
358
|
e.preventDefault();
|
|
@@ -389,7 +396,7 @@ function GroupedFaqList({
|
|
|
389
396
|
FaqAccordion,
|
|
390
397
|
{
|
|
391
398
|
items: group.items,
|
|
392
|
-
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess',
|
|
399
|
+
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _12 => _12.get, 'call', _13 => _13(key)])
|
|
393
400
|
},
|
|
394
401
|
`${key}:${accordionKeySuffix}`
|
|
395
402
|
)
|
|
@@ -402,31 +409,34 @@ function FaqSection({
|
|
|
402
409
|
initialFaqs,
|
|
403
410
|
entityType,
|
|
404
411
|
entityId,
|
|
405
|
-
topic,
|
|
406
412
|
heading,
|
|
407
413
|
emitJsonLd = false,
|
|
408
414
|
jsonLd,
|
|
409
415
|
className,
|
|
410
416
|
id,
|
|
411
|
-
showTopic
|
|
417
|
+
showTopic: showTopicProp,
|
|
412
418
|
minResults,
|
|
413
|
-
apiBaseUrl
|
|
419
|
+
apiBaseUrl,
|
|
414
420
|
aside: asideProp,
|
|
415
421
|
ask,
|
|
416
422
|
skeletonShape,
|
|
417
423
|
skeletonNav = false
|
|
418
424
|
}) {
|
|
425
|
+
const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
|
|
426
|
+
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
419
427
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
420
428
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
421
|
-
const
|
|
422
|
-
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false &&
|
|
423
|
-
const
|
|
429
|
+
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
430
|
+
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && topic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask }) : void 0)));
|
|
431
|
+
const runtimeFaqsUrl = _optionalChain([_chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, ), 'optionalAccess', _14 => _14.faqsUrl]);
|
|
432
|
+
const endpoint = apiBaseUrl !== void 0 ? `${apiBaseUrl}${DEFAULT_FAQS_PATH}` : _nullishCoalesce(runtimeFaqsUrl, () => ( DEFAULT_FAQS_PATH));
|
|
433
|
+
const url = buildFaqsUrl(endpoint, entityType, entityId, minResults, topic);
|
|
424
434
|
const initialData = _react.useMemo.call(void 0,
|
|
425
435
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
436
|
[initialFaqs]
|
|
427
437
|
);
|
|
428
438
|
const { data, dataUrl, isLoading, error } = _chunkYMLRDVPOcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
|
-
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess',
|
|
439
|
+
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
430
440
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
441
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
432
442
|
const headingNode = faqHeadingNode(heading, showTopic, topic);
|
|
@@ -475,13 +485,15 @@ var DEFAULT_SKELETON_SHAPE = [{}];
|
|
|
475
485
|
function FaqSectionSkeleton({
|
|
476
486
|
heading,
|
|
477
487
|
topic,
|
|
478
|
-
showTopic
|
|
488
|
+
showTopic: showTopicProp,
|
|
479
489
|
aside,
|
|
480
490
|
shape = DEFAULT_SKELETON_SHAPE,
|
|
481
491
|
navRow = false,
|
|
482
492
|
className,
|
|
483
493
|
id
|
|
484
494
|
}) {
|
|
495
|
+
const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
|
|
496
|
+
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
485
497
|
const headingNode = faqHeadingNode(heading, showTopic, topic);
|
|
486
498
|
const CategoryHeading = heading === null ? "h2" : "h3";
|
|
487
499
|
const groups = shape.length > 0 ? shape : DEFAULT_SKELETON_SHAPE;
|
|
@@ -527,4 +539,4 @@ function FaqSectionSkeleton({
|
|
|
527
539
|
|
|
528
540
|
|
|
529
541
|
|
|
530
|
-
exports.FAQ_ACCORDION_SKELETON_ROWS = FAQ_ACCORDION_SKELETON_ROWS; exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.FAQ_SECTION_SKELETON_QUESTIONS = FAQ_SECTION_SKELETON_QUESTIONS; exports.PAGE_FAQ_SECTION_ID = PAGE_FAQ_SECTION_ID; exports.
|
|
542
|
+
exports.FAQ_ACCORDION_SKELETON_ROWS = FAQ_ACCORDION_SKELETON_ROWS; exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.FAQ_SECTION_SKELETON_QUESTIONS = FAQ_SECTION_SKELETON_QUESTIONS; exports.PAGE_FAQ_SECTION_ID = PAGE_FAQ_SECTION_ID; exports.SharedPageFaq = SharedPageFaq; exports.FaqSection = FaqSection;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunk5KSPG3TVcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunk5KSPG3TVcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkOEP5KAT6cjs = require('./chunk-OEP5KAT6.cjs');
|
|
@@ -310,15 +310,15 @@ function TicketStatusTag({
|
|
|
310
310
|
);
|
|
311
311
|
if (loading || disabled || !options || options.length === 0 || !onSelect) {
|
|
312
312
|
if (!loading && disabled && disabledReason) {
|
|
313
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
313
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-fit shrink-0 cursor-not-allowed", children: tag }) }),
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { children: disabledReason })
|
|
316
316
|
] }) });
|
|
317
317
|
}
|
|
318
318
|
return tag;
|
|
319
319
|
}
|
|
320
320
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
|
-
|
|
321
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
322
322
|
{
|
|
323
323
|
align: "start",
|
|
324
324
|
groups: [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkM75723HDcjs = require('./chunk-M75723HD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -25,7 +25,6 @@ function FaqDocumentPage({
|
|
|
25
25
|
entityType,
|
|
26
26
|
entityId,
|
|
27
27
|
minResults,
|
|
28
|
-
topic,
|
|
29
28
|
ask,
|
|
30
29
|
skeletonShape,
|
|
31
30
|
skeletonNav,
|
|
@@ -36,8 +35,8 @@ function FaqDocumentPage({
|
|
|
36
35
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
37
36
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
37
|
};
|
|
39
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
38
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39
|
+
_chunkM75723HDcjs.FaqSection,
|
|
41
40
|
{
|
|
42
41
|
initialFaqs,
|
|
43
42
|
heading: null,
|
|
@@ -47,13 +46,12 @@ function FaqDocumentPage({
|
|
|
47
46
|
entityType,
|
|
48
47
|
entityId,
|
|
49
48
|
minResults,
|
|
50
|
-
topic,
|
|
51
49
|
ask,
|
|
52
50
|
skeletonShape,
|
|
53
51
|
skeletonNav
|
|
54
52
|
}
|
|
55
53
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
var _chunkENMPSEEQcjs = require('./chunk-ENMPSEEQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
var _chunkYKUL6JBIcjs = require('./chunk-YKUL6JBI.cjs');
|
|
7
|
+
var _chunkM75723HDcjs = require('./chunk-M75723HD.cjs');
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
|
@@ -14,21 +13,21 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
var
|
|
16
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
var
|
|
19
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
21
20
|
|
|
22
21
|
|
|
22
|
+
var _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var _chunkQMQWXGCHcjs = require('./chunk-QMQWXGCH.cjs');
|
|
29
28
|
|
|
30
29
|
|
|
31
|
-
var
|
|
30
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
32
31
|
|
|
33
32
|
|
|
34
33
|
|
|
@@ -107,7 +106,7 @@ function PageDataSyncProvider({
|
|
|
107
106
|
function PageDataSyncRow({ inline = false }) {
|
|
108
107
|
const context = _react.useContext.call(void 0, PageDataSyncContext);
|
|
109
108
|
if (!context) return null;
|
|
110
|
-
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
|
+
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
|
|
111
110
|
return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
|
|
112
111
|
}
|
|
113
112
|
function usePageDataSync(sync, loading) {
|
|
@@ -126,7 +125,7 @@ function usePageDataSync(sync, loading) {
|
|
|
126
125
|
// src/components/shared/dev-section/dev-section-view.tsx
|
|
127
126
|
|
|
128
127
|
function DevSectionView({ sectionKey, preControls, children, showHeading = true }) {
|
|
129
|
-
const section =
|
|
128
|
+
const section = _chunk56EP4QM2cjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
130
129
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
131
130
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
132
131
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -168,7 +167,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
168
167
|
preControls,
|
|
169
168
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
170
169
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
171
|
-
|
|
170
|
+
_chunk5LED4QHZcjs.SearchInput,
|
|
172
171
|
{
|
|
173
172
|
showDropdown: false,
|
|
174
173
|
placeholder: search.placeholder,
|
|
@@ -178,7 +177,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
178
177
|
}
|
|
179
178
|
),
|
|
180
179
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
181
|
-
|
|
180
|
+
_chunk5KSPG3TVcjs.StatusFilterComponent,
|
|
182
181
|
{
|
|
183
182
|
selectedStatus: currentFilterValue,
|
|
184
183
|
onStatusChange: handleFilterChange,
|
|
@@ -199,11 +198,10 @@ function DevSectionPage({
|
|
|
199
198
|
backButton,
|
|
200
199
|
title,
|
|
201
200
|
subtitle,
|
|
202
|
-
faq,
|
|
203
201
|
shell = true
|
|
204
202
|
}) {
|
|
205
203
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
206
|
-
const section =
|
|
204
|
+
const section = _chunk56EP4QM2cjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
207
205
|
const backCfg = backButton === false ? void 0 : {
|
|
208
206
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
209
207
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -216,7 +214,7 @@ function DevSectionPage({
|
|
|
216
214
|
// duplicate title. (The hero icon is intentionally dropped: TitleBlock is
|
|
217
215
|
// frozen and renders title-only.)
|
|
218
216
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
219
|
-
|
|
217
|
+
_chunk2BGLALP5cjs.PageLayout,
|
|
220
218
|
{
|
|
221
219
|
title: _nullishCoalesce(title, () => ( section.hero.title)),
|
|
222
220
|
subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
|
|
@@ -225,12 +223,12 @@ function DevSectionPage({
|
|
|
225
223
|
backButton: backCfg,
|
|
226
224
|
children: [
|
|
227
225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
|
|
228
|
-
|
|
226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM75723HDcjs.SharedPageFaq, {})
|
|
229
227
|
]
|
|
230
228
|
}
|
|
231
229
|
)
|
|
232
230
|
);
|
|
233
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
234
232
|
}
|
|
235
233
|
|
|
236
234
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunk5LED4QHZcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunk56EP4QM2cjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|