@flamingo-stack/openframe-frontend-core 0.0.725 → 0.0.727
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-F56GNKX2.js → chunk-33AFAVBF.js} +2 -2
- package/dist/{chunk-7V5KFBY2.cjs → chunk-3D2SCG2E.cjs} +16 -16
- package/dist/{chunk-B7234BE2.cjs → chunk-3N3QA47Y.cjs} +11 -11
- package/dist/{chunk-OBMWSUBK.js → chunk-3Q7ZNY4B.js} +5 -5
- package/dist/{chunk-JVHP7Y4S.js → chunk-4FQ5ZICE.js} +2 -2
- package/dist/{chunk-AI3CLDZO.cjs → chunk-AM2RHT3H.cjs} +280 -280
- package/dist/{chunk-PUADVXJD.js → chunk-AU4WWLFP.js} +1 -1
- package/dist/{chunk-RU6BTELI.cjs → chunk-BKTV3VOD.cjs} +533 -488
- package/dist/{chunk-2VOZ37BL.cjs → chunk-BMOEUIFI.cjs} +35 -35
- package/dist/{chunk-IOTAUWWF.js → chunk-C6Y22J32.js} +1 -1
- package/dist/{chunk-ZSXZE4FJ.cjs → chunk-CGL3TJ2A.cjs} +3 -3
- package/dist/{chunk-MLFS5G3V.js → chunk-CIAAU44V.js} +307 -262
- package/dist/{chunk-4ZZ4TNCY.cjs → chunk-CNBGSWLN.cjs} +9 -9
- package/dist/{chunk-AX4F35C2.js → chunk-FIKAJKPE.js} +1 -1
- package/dist/{chunk-SEVKFMKR.cjs → chunk-FLCYWEEB.cjs} +3 -3
- package/dist/{chunk-ASHRHL4W.js → chunk-GKJFSE72.js} +5 -5
- package/dist/{chunk-ASIXPRHV.js → chunk-HVMH67Z7.js} +3 -3
- package/dist/{chunk-F77J34W2.js → chunk-J274GOBJ.js} +1 -1
- package/dist/{chunk-LYQYLPPV.cjs → chunk-MAGVU2HZ.cjs} +26 -26
- package/dist/{chunk-QV4GO3GW.cjs → chunk-MGVT5RT6.cjs} +29 -56
- package/dist/{chunk-W2DXHR2R.js → chunk-N27CSEDR.js} +1 -1
- package/dist/{chunk-YPEILGVZ.cjs → chunk-N2PHC6RX.cjs} +3 -3
- package/dist/{chunk-5FVWDDX6.js → chunk-NQRFGXDG.js} +2 -2
- package/dist/{chunk-772242QR.cjs → chunk-QJVG5V46.cjs} +65 -65
- package/dist/{chunk-LR6DJY4Z.cjs → chunk-RZFTEUV4.cjs} +9 -9
- package/dist/{chunk-SE4O4HCD.cjs → chunk-U6HOC7JD.cjs} +8 -8
- package/dist/{chunk-ZZRUKEN2.js → chunk-URDJXB75.js} +3 -3
- package/dist/{chunk-MGTZ2BKY.js → chunk-VTXIY33G.js} +22 -49
- package/dist/{chunk-2SO3OJFY.cjs → chunk-WWJOQGSH.cjs} +33 -33
- package/dist/{chunk-JAKG6BY7.js → chunk-WXL5G7WC.js} +3 -3
- package/dist/{cloud-tenants-US63E2HV.js → cloud-tenants-65EUPGVC.js} +2 -2
- package/dist/{cloud-tenants-SMULXU54.cjs → cloud-tenants-PT5QPWWU.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/assistant-ask-prompts.d.ts +34 -14
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -1
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +34 -7
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -4
- package/dist/components/chat/index.js +3 -5
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/faq-ask-card.d.ts +8 -11
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +35 -37
- package/dist/components/index.js +14 -16
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/product-demo/index.js +6 -6
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -5
- package/dist/components/ui/index.js +4 -6
- package/dist/{devices-JWHGWKLK.js → devices-J253LQNQ.js} +2 -2
- package/dist/{devices-6ZURNFRB.cjs → devices-ZPVLATZA.cjs} +4 -4
- package/dist/index.cjs +7 -9
- package/dist/index.js +8 -10
- package/dist/{knowledge-CY66JZ54.cjs → knowledge-3FAF5T7Q.cjs} +4 -4
- package/dist/{knowledge-TEDPLCFX.js → knowledge-IMTMYURI.js} +2 -2
- package/dist/{logs-S46THPPD.js → logs-55GOSGVE.js} +2 -2
- package/dist/{logs-MO357RE7.cjs → logs-UL7BQEXP.cjs} +11 -11
- package/dist/{policies-BUXT7DKF.js → policies-KRDF563O.js} +2 -2
- package/dist/{policies-GSH4K5YP.cjs → policies-O5F2XSCY.cjs} +7 -7
- package/dist/{software-update-YKS6KLX2.js → software-update-NXSC4OVM.js} +2 -2
- package/dist/{software-update-2ETT35NM.cjs → software-update-R2ASCRWP.cjs} +6 -6
- package/dist/utils/index.cjs +17 -18
- package/dist/utils/index.js +17 -18
- package/dist/utils/source-grouping.d.ts +15 -5
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/assistant-ask-prompts.tsx +84 -39
- package/src/components/chat/entity-cards/dispatch.tsx +47 -58
- package/src/components/chat/hooks/index.ts +3 -2
- package/src/components/chat/hooks/use-ask-prompts.ts +140 -56
- package/src/components/faq/faq-ask-card.tsx +22 -67
- package/src/utils/source-grouping.ts +24 -14
- package/src/utils/source-icons.ts +16 -16
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkAI3CLDZOcjs = require('./chunk-AI3CLDZO.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkBKTV3VODcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkAM2RHT3Hcjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkBKTV3VODcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkBKTV3VODcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkBKTV3VODcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkBKTV3VODcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkBKTV3VODcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkBKTV3VODcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -45,7 +45,7 @@ function HorizontalSectionNav({
|
|
|
45
45
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
46
46
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
47
47
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_chunkBKTV3VODcjs.ScrollShadow,
|
|
49
49
|
{
|
|
50
50
|
axis: "horizontal",
|
|
51
51
|
className: "min-w-0 flex-1",
|
|
@@ -330,7 +330,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
330
330
|
// src/components/navigation/multi-level-navigation.tsx
|
|
331
331
|
var _lucidereact = require('lucide-react');
|
|
332
332
|
|
|
333
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
333
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkBKTV3VODcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
334
334
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
335
335
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
336
336
|
if (selectedPath === node.path) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ContactForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-33AFAVBF.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
DevCardRowContent,
|
|
8
8
|
DevCardRowSkeletonList,
|
|
9
9
|
DevSectionPage,
|
|
10
10
|
ListEmptyState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4FQ5ZICE.js";
|
|
12
12
|
import {
|
|
13
13
|
EmptyState,
|
|
14
14
|
UnifiedPagination
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TOAST_COPY,
|
|
20
20
|
isOptimistic,
|
|
21
21
|
useOptionalTicketLive
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-C6Y22J32.js";
|
|
23
23
|
import {
|
|
24
24
|
AlertDialog,
|
|
25
25
|
AlertDialogAction,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
AlertDialogTitle,
|
|
32
32
|
Textarea,
|
|
33
33
|
TicketAttachmentsList
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-N27CSEDR.js";
|
|
35
35
|
import {
|
|
36
36
|
toast,
|
|
37
37
|
useScrollToHash
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
devSectionAnchorId,
|
|
49
49
|
useChatAttachments,
|
|
50
50
|
useChatIdentity
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CIAAU44V.js";
|
|
52
52
|
import {
|
|
53
53
|
formatRelativeTime
|
|
54
54
|
} from "./chunk-5D2K7TFT.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
ListEmptyState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4FQ5ZICE.js";
|
|
9
9
|
import {
|
|
10
10
|
EmptyState
|
|
11
11
|
} from "./chunk-K76ACBR3.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
PageShell,
|
|
24
24
|
ReleaseChangelogSection,
|
|
25
25
|
RichMarkdownRenderer
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N27CSEDR.js";
|
|
27
27
|
import {
|
|
28
28
|
PageLayout
|
|
29
29
|
} from "./chunk-TU5LEF6A.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
resolveContentHref,
|
|
40
40
|
useCaptions,
|
|
41
41
|
useIsHydrated
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CIAAU44V.js";
|
|
43
43
|
import {
|
|
44
44
|
STICKY_HEADER_OFFSET_PX
|
|
45
45
|
} from "./chunk-4I3K6LEH.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkN2PHC6RXcjs = require('./chunk-N2PHC6RX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkYPEILGVZcjs = require('./chunk-YPEILGVZ.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunkB4NCVYEQcjs = require('./chunk-B4NCVYEQ.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
@@ -147,7 +147,7 @@ function NavItemRow({
|
|
|
147
147
|
className
|
|
148
148
|
}) {
|
|
149
149
|
const label = navLinkLabel(link);
|
|
150
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
151
151
|
const singleLine = !link.description && !link.builtOn;
|
|
152
152
|
const rowClassName = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
153
153
|
ROW_CLASSES[variant],
|
|
@@ -535,7 +535,7 @@ function SiteHeader({
|
|
|
535
535
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
536
536
|
leading,
|
|
537
537
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
|
-
|
|
538
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
539
539
|
{
|
|
540
540
|
className: "border-r border-ods-border lg:hidden",
|
|
541
541
|
onClick: mobile.onToggle,
|
|
@@ -561,7 +561,7 @@ function SiteHeader({
|
|
|
561
561
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
562
562
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
563
563
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
-
|
|
564
|
+
_chunkBKTV3VODcjs.MingoAiButton,
|
|
565
565
|
{
|
|
566
566
|
source: mingo.source,
|
|
567
567
|
icon: mingo.icon,
|
|
@@ -663,7 +663,7 @@ function MobileNavSheetBody({
|
|
|
663
663
|
] }),
|
|
664
664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
665
665
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
666
|
-
|
|
666
|
+
_chunkBKTV3VODcjs.MingoAiButton,
|
|
667
667
|
{
|
|
668
668
|
variant: "field",
|
|
669
669
|
source: askAI.source,
|
|
@@ -841,7 +841,7 @@ function SiteFooter({
|
|
|
841
841
|
const columns = nav.footerColumns;
|
|
842
842
|
const accordion = columns.length > ACCORDION_OVER;
|
|
843
843
|
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
844
|
-
|
|
844
|
+
_chunkAM2RHT3Hcjs.SocialIconRow,
|
|
845
845
|
{
|
|
846
846
|
compact: true,
|
|
847
847
|
links: nav.brand.social.map((link) => ({
|
|
@@ -944,7 +944,7 @@ var _framermotion = require('framer-motion');
|
|
|
944
944
|
|
|
945
945
|
function SlidingSidebar({ config }) {
|
|
946
946
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
947
|
-
const mounted =
|
|
947
|
+
const mounted = _chunkBKTV3VODcjs.useIsHydrated.call(void 0, );
|
|
948
948
|
const headerHeight = _chunkK2JUJ37Dcjs.useHeaderHeight.call(void 0, );
|
|
949
949
|
const asideRef = _react.useRef.call(void 0, null);
|
|
950
950
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
@@ -1076,7 +1076,7 @@ function SlidingSidebar({ config }) {
|
|
|
1076
1076
|
duration: 0.3,
|
|
1077
1077
|
ease: [0.4, 0, 0.2, 1]
|
|
1078
1078
|
},
|
|
1079
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[45]",
|
|
1079
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkBKTV3VODcjs.OVERLAY_BACKDROP_CLASS),
|
|
1080
1080
|
onClick: () => config.onClose()
|
|
1081
1081
|
}
|
|
1082
1082
|
) }),
|
|
@@ -1217,7 +1217,7 @@ var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSi
|
|
|
1217
1217
|
_react.cloneElement.call(void 0, item.icon, {
|
|
1218
1218
|
color: isActive && !disabled ? "text-ods-accent" : "text-ods-text-secondary"
|
|
1219
1219
|
}),
|
|
1220
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1220
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.UnreadDot, { size: "fixed" })
|
|
1221
1221
|
] }),
|
|
1222
1222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1223
1223
|
"span",
|
|
@@ -1318,7 +1318,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
|
|
|
1318
1318
|
setTabletFor(isTablet);
|
|
1319
1319
|
if (isTablet) setTabletMinimized(true);
|
|
1320
1320
|
}
|
|
1321
|
-
const hydrated =
|
|
1321
|
+
const hydrated = _chunkBKTV3VODcjs.useIsHydrated.call(void 0, );
|
|
1322
1322
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1323
1323
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1324
1324
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1510,7 +1510,7 @@ function HeaderGlobalSearch({
|
|
|
1510
1510
|
"form",
|
|
1511
1511
|
{
|
|
1512
1512
|
onSubmit: handleSubmit,
|
|
1513
|
-
...
|
|
1513
|
+
..._chunkBKTV3VODcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
1514
1514
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1515
1515
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
1516
1516
|
// Transparent so the cell inherits the bar's background
|
|
@@ -1643,16 +1643,16 @@ function HeaderOrganizationFilter({
|
|
|
1643
1643
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
1644
1644
|
|
|
1645
1645
|
function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
1646
|
-
const live =
|
|
1646
|
+
const live = _chunkN2PHC6RXcjs.useOptionalTicketLive.call(void 0, );
|
|
1647
1647
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
1648
1648
|
const targetId = live.nextUnreadTicketId;
|
|
1649
|
-
const target = targetId ?
|
|
1649
|
+
const target = targetId ? _chunkBKTV3VODcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
1650
1650
|
const handleClick = () => {
|
|
1651
1651
|
if (onNavigate) onNavigate(target);
|
|
1652
1652
|
else window.location.assign(target);
|
|
1653
1653
|
};
|
|
1654
1654
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
|
-
|
|
1655
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
1656
1656
|
{
|
|
1657
1657
|
icon: (
|
|
1658
1658
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -1662,7 +1662,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
1662
1662
|
// existing while updates are unread — never by tinting the glyph.
|
|
1663
1663
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
1664
1664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
1665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1665
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
1666
1666
|
] })
|
|
1667
1667
|
),
|
|
1668
1668
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -1738,7 +1738,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1738
1738
|
leading: (
|
|
1739
1739
|
// Mobile: Burger Menu Button
|
|
1740
1740
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1741
|
-
|
|
1741
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
1742
1742
|
{
|
|
1743
1743
|
onClick: onToggleMobileMenu,
|
|
1744
1744
|
isActive: isMobileMenuOpen,
|
|
@@ -1764,7 +1764,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1764
1764
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1765
1765
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1766
1766
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1767
|
-
|
|
1767
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
1768
1768
|
{
|
|
1769
1769
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4GFNWALLcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1770
1770
|
"aria-label": "Search",
|
|
@@ -1781,7 +1781,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1781
1781
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1782
1782
|
}
|
|
1783
1783
|
),
|
|
1784
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1784
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.TimeTrackerHeaderButton, { disabled, className: _chunk3ATAYP36cjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1785
1785
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1786
1786
|
NotificationsHeaderButton,
|
|
1787
1787
|
{
|
|
@@ -1801,7 +1801,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1801
1801
|
),
|
|
1802
1802
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2Y7QZAB2cjs.DropdownMenu, { children: [
|
|
1803
1803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2Y7QZAB2cjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1804
|
-
|
|
1804
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
1805
1805
|
{
|
|
1806
1806
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1807
1807
|
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
@@ -1886,12 +1886,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1886
1886
|
);
|
|
1887
1887
|
});
|
|
1888
1888
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1889
|
-
const ctx =
|
|
1889
|
+
const ctx = _chunkAM2RHT3Hcjs.useOptionalNotifications.call(void 0, );
|
|
1890
1890
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _52 => _52.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1891
1891
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _53 => _53.isOpen]), () => ( false));
|
|
1892
1892
|
const onClick = _optionalChain([ctx, 'optionalAccess', _54 => _54.toggle]);
|
|
1893
1893
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1894
|
-
|
|
1894
|
+
_chunkAM2RHT3Hcjs.HeaderButton,
|
|
1895
1895
|
{
|
|
1896
1896
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.BellIcon, { className: "h-6 w-6" }),
|
|
1897
1897
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2408,7 +2408,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
2408
2408
|
{
|
|
2409
2409
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
2410
2410
|
"absolute inset-0 z-[100] md:hidden",
|
|
2411
|
-
|
|
2411
|
+
_chunkBKTV3VODcjs.OVERLAY_BACKDROP_CLASS,
|
|
2412
2412
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
2413
2413
|
isOpen ? "opacity-100" : "pointer-events-none opacity-0"
|
|
2414
2414
|
),
|
|
@@ -2564,7 +2564,7 @@ function AppLayout({
|
|
|
2564
2564
|
}),
|
|
2565
2565
|
[]
|
|
2566
2566
|
);
|
|
2567
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2567
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2568
2568
|
topBar,
|
|
2569
2569
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2570
2570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2588,7 +2588,7 @@ function AppLayout({
|
|
|
2588
2588
|
disabled
|
|
2589
2589
|
}
|
|
2590
2590
|
),
|
|
2591
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2591
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.NotificationDrawer, {}),
|
|
2592
2592
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2593
2593
|
"div",
|
|
2594
2594
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
|
|
@@ -14,12 +14,7 @@ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunkRU6BTELIcjs = require('./chunk-RU6BTELI.cjs');
|
|
22
|
-
|
|
17
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
23
18
|
|
|
24
19
|
|
|
25
20
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
@@ -70,7 +65,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
70
65
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
71
66
|
"div",
|
|
72
67
|
{
|
|
73
|
-
id:
|
|
68
|
+
id: _chunkBKTV3VODcjs.faqItemAnchor.call(void 0, item.id),
|
|
74
69
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
75
70
|
children: [
|
|
76
71
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -121,49 +116,27 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
121
116
|
// src/components/faq/faq-ask-card.tsx
|
|
122
117
|
|
|
123
118
|
|
|
124
|
-
var DEFAULT_ASK_CARD = {
|
|
125
|
-
title: "Still deciding?",
|
|
126
|
-
description: "{assistant} answers from our docs and customer stories."
|
|
127
|
-
};
|
|
128
119
|
var PICK_ROOT_MARGIN = "600px";
|
|
129
|
-
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
120
|
function faqAskCardShown(assistant) {
|
|
131
|
-
return
|
|
121
|
+
return _chunkBKTV3VODcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
122
|
}
|
|
133
123
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
|
-
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
124
|
const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
125
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
126
|
if (inView && !reached) setReached(true);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRU6BTELIcjs.ASK_PROMPTS_DEFAULT_COUNT));
|
|
141
|
-
const { prompts, isLoading, supported } = _chunkRU6BTELIcjs.useAskPrompts.call(void 0, {
|
|
142
|
-
topic,
|
|
143
|
-
count: slots,
|
|
144
|
-
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
|
-
enabled: reached && excluded !== null
|
|
146
|
-
});
|
|
147
|
-
const open = _chunkRU6BTELIcjs.useAssistantOpen.call(void 0, topic, onOpen);
|
|
148
|
-
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
|
-
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
|
-
const name = assistant.name;
|
|
151
|
-
const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
152
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
_chunkRU6BTELIcjs.AskCard,
|
|
127
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
128
|
+
_chunkBKTV3VODcjs.AssistantAskPrompts,
|
|
154
129
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
onOpen: open,
|
|
164
|
-
onAsk: (prompt) => _optionalChain([assistant, 'access', _8 => _8.onAsk, 'optionalCall', _9 => _9({ promptId: prompt.id, topic })])
|
|
130
|
+
variant: "card",
|
|
131
|
+
topic,
|
|
132
|
+
count,
|
|
133
|
+
exclude,
|
|
134
|
+
enabled: reached,
|
|
135
|
+
title,
|
|
136
|
+
description,
|
|
137
|
+
onOpen
|
|
165
138
|
}
|
|
166
|
-
) })
|
|
139
|
+
) });
|
|
167
140
|
}
|
|
168
141
|
|
|
169
142
|
// src/components/faq/json-ld.ts
|
|
@@ -203,7 +176,7 @@ function groupFaqsBySection(faqs) {
|
|
|
203
176
|
let uncategorized = null;
|
|
204
177
|
for (const faq of faqs) {
|
|
205
178
|
const item = { id: faq.id, question: faq.question, answer: faq.answer };
|
|
206
|
-
const name = _optionalChain([faq, 'access',
|
|
179
|
+
const name = _optionalChain([faq, 'access', _2 => _2.section, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
|
|
207
180
|
if (!name) {
|
|
208
181
|
if (!uncategorized) uncategorized = { section: null, slug: null, items: [] };
|
|
209
182
|
uncategorized.items.push(item);
|
|
@@ -211,7 +184,7 @@ function groupFaqsBySection(faqs) {
|
|
|
211
184
|
}
|
|
212
185
|
let group = byName.get(name);
|
|
213
186
|
if (!group) {
|
|
214
|
-
group = { section: name, slug:
|
|
187
|
+
group = { section: name, slug: _chunkBKTV3VODcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
215
188
|
byName.set(name, group);
|
|
216
189
|
}
|
|
217
190
|
group.items.push(item);
|
|
@@ -230,7 +203,7 @@ function GroupedFaqList({
|
|
|
230
203
|
}) {
|
|
231
204
|
const CategoryHeading = categoryHeadingAs;
|
|
232
205
|
const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
|
|
233
|
-
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access',
|
|
206
|
+
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _5 => _5[0], 'optionalAccess', _6 => _6.slug]), () => ( null)));
|
|
234
207
|
const slugKey = navGroups.map((g) => g.slug).join("|");
|
|
235
208
|
const navGroupsRef = _react.useRef.call(void 0, navGroups);
|
|
236
209
|
_react.useEffect.call(void 0, () => {
|
|
@@ -266,13 +239,13 @@ function GroupedFaqList({
|
|
|
266
239
|
}, [slugKey]);
|
|
267
240
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
268
241
|
_react.useEffect.call(void 0, () => {
|
|
269
|
-
const refresh = () => setHashTarget(
|
|
242
|
+
const refresh = () => setHashTarget(_chunkBKTV3VODcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
270
243
|
refresh();
|
|
271
244
|
window.addEventListener("hashchange", refresh);
|
|
272
245
|
return () => window.removeEventListener("hashchange", refresh);
|
|
273
246
|
}, []);
|
|
274
247
|
const defaultOpenByGroupKey = _react.useMemo.call(void 0, () => {
|
|
275
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
248
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) !== "item") return null;
|
|
276
249
|
const targetId = hashTarget.rawId;
|
|
277
250
|
const result = /* @__PURE__ */ new Map();
|
|
278
251
|
for (const group of groups) {
|
|
@@ -281,13 +254,13 @@ function GroupedFaqList({
|
|
|
281
254
|
}
|
|
282
255
|
return result.size > 0 ? result : null;
|
|
283
256
|
}, [groups, hashTarget]);
|
|
284
|
-
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess',
|
|
285
|
-
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess',
|
|
257
|
+
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
258
|
+
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");
|
|
286
259
|
_chunk4LY6R4TNcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX });
|
|
287
260
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
288
261
|
if (pillSyncedHash !== hashTarget) {
|
|
289
262
|
setPillSyncedHash(hashTarget);
|
|
290
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
263
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _11 => _11.kind]) === "section") setActiveSlug(hashTarget.slug);
|
|
291
264
|
}
|
|
292
265
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
293
266
|
e.preventDefault();
|
|
@@ -321,7 +294,7 @@ function GroupedFaqList({
|
|
|
321
294
|
FaqAccordion,
|
|
322
295
|
{
|
|
323
296
|
items: group.items,
|
|
324
|
-
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess',
|
|
297
|
+
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _12 => _12.get, 'call', _13 => _13(key)])
|
|
325
298
|
},
|
|
326
299
|
`${key}:${accordionKeySuffix}`
|
|
327
300
|
)
|
|
@@ -365,7 +338,7 @@ function FaqSection({
|
|
|
365
338
|
ask
|
|
366
339
|
}) {
|
|
367
340
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
368
|
-
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess',
|
|
341
|
+
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _14 => _14.topic]) || entityType;
|
|
369
342
|
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
|
|
370
343
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
371
344
|
const initialData = _react.useMemo.call(void 0,
|
|
@@ -373,7 +346,7 @@ function FaqSection({
|
|
|
373
346
|
[initialFaqs]
|
|
374
347
|
);
|
|
375
348
|
const { data, isLoading, error } = _chunkHEQ4GPYEcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
376
|
-
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
349
|
+
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _15 => _15.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _16 => _16.faqs])]);
|
|
377
350
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
378
351
|
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkHEQ4GPYEcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
379
352
|
if (error) return null;
|
|
@@ -423,8 +396,8 @@ function FaqDocumentPage({
|
|
|
423
396
|
}) {
|
|
424
397
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
425
398
|
const backCfg = backButton === false ? void 0 : {
|
|
426
|
-
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
427
|
-
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
399
|
+
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.label]), () => ( "Back to home")),
|
|
400
|
+
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _18 => _18.href]), () => ( "/")))
|
|
428
401
|
};
|
|
429
402
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6LRRG2Ecjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
430
403
|
FaqSection,
|
|
@@ -440,7 +413,7 @@ function FaqDocumentPage({
|
|
|
440
413
|
ask
|
|
441
414
|
}
|
|
442
415
|
) });
|
|
443
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
416
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
444
417
|
}
|
|
445
418
|
|
|
446
419
|
|