@flamingo-stack/openframe-frontend-core 0.0.848 → 0.0.850
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-MWYEROAP.cjs → chunk-2QZUTNL3.cjs} +55 -55
- package/dist/{chunk-YXKAHQYS.cjs → chunk-533QK4R6.cjs} +2 -1
- package/dist/{chunk-5HOWR4TG.cjs → chunk-5CBI2ZYV.cjs} +5 -5
- package/dist/{chunk-NYT6IBIX.cjs → chunk-5PIR77V5.cjs} +4 -4
- package/dist/{chunk-IIUZE73M.cjs → chunk-6AJYGXXS.cjs} +14 -14
- package/dist/{chunk-VW4446JR.cjs → chunk-7ICHJVAT.cjs} +16 -16
- package/dist/{chunk-U7UBYJEZ.cjs → chunk-BU2PSRAS.cjs} +5 -5
- package/dist/{chunk-IKOL6NJY.cjs → chunk-CAGNWDVJ.cjs} +11 -1
- package/dist/{chunk-O4BXHCMK.cjs → chunk-FRG724DU.cjs} +2 -2
- package/dist/{chunk-YAW7CHLV.cjs → chunk-FXLROQUT.cjs} +41 -38
- package/dist/{chunk-IUZVOQXP.cjs → chunk-GAYLAA3L.cjs} +45 -45
- package/dist/{chunk-7YJQTQPV.cjs → chunk-IG6ROHPS.cjs} +46 -46
- package/dist/{chunk-INA2FX2N.cjs → chunk-IHY7E4EX.cjs} +2 -2
- package/dist/{chunk-Y2ZWWIUA.cjs → chunk-IN3LA2FU.cjs} +2 -2
- package/dist/{chunk-74Z34I2C.cjs → chunk-IPGGSFR7.cjs} +6 -6
- package/dist/{chunk-7DW3LZ52.cjs → chunk-JWIITCVB.cjs} +94 -173
- package/dist/{chunk-OCJXOSIH.cjs → chunk-LGYPCUHO.cjs} +32 -32
- package/dist/{chunk-7LE4HWHA.cjs → chunk-OHHDX3Z4.cjs} +24 -24
- package/dist/{chunk-C3WZXOZJ.cjs → chunk-QJER2ZNA.cjs} +3 -3
- package/dist/{chunk-GASFYPGH.cjs → chunk-R5JPZ6TY.cjs} +14 -14
- package/dist/{chunk-QUSCSYHJ.cjs → chunk-TX4NTH22.cjs} +45 -26
- package/dist/{chunk-Y4BG7SPX.cjs → chunk-VRWBJL7B.cjs} +66 -66
- package/dist/{chunk-2V6FCVUL.cjs → chunk-XKOL5CNU.cjs} +449 -390
- package/dist/{chunk-I3YRYS23.cjs → chunk-ZDSC3GFX.cjs} +38 -12
- package/dist/{cloud-tenants-YAZHLPOQ.cjs → cloud-tenants-TVB3DT3J.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +22 -22
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +1 -0
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/doc-viewer.d.ts +7 -7
- package/dist/components/docs/doc-viewer.d.ts.map +1 -1
- package/dist/components/docs/doc-viewer.js +29 -16
- package/dist/components/docs/docs-hub-page.d.ts +1 -1
- package/dist/components/docs/docs-hub-page.d.ts.map +1 -1
- package/dist/components/docs/docs-hub-page.js +4 -11
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/use-document-tree.d.ts.map +1 -1
- package/dist/components/docs/use-document-tree.js +24 -24
- package/dist/components/embeds/claude-embed.d.ts +2 -2
- package/dist/components/embeds/claude-embed.d.ts.map +1 -1
- package/dist/components/embeds/claude-embed.js +3 -3
- package/dist/components/embeds/embed-iframe.d.ts +5 -3
- package/dist/components/embeds/embed-iframe.d.ts.map +1 -1
- package/dist/components/embeds/embed-iframe.js +4 -3
- package/dist/components/embeds/embed-viewer-frame.d.ts +14 -9
- package/dist/components/embeds/embed-viewer-frame.d.ts.map +1 -1
- package/dist/components/embeds/embed-viewer-frame.js +31 -7
- package/dist/components/embeds/figma-embed.d.ts +4 -2
- package/dist/components/embeds/figma-embed.d.ts.map +1 -1
- package/dist/components/embeds/figma-embed.js +4 -3
- package/dist/components/embeds/file-download-card.d.ts +3 -1
- package/dist/components/embeds/file-download-card.d.ts.map +1 -1
- package/dist/components/embeds/file-download-card.js +18 -3
- package/dist/components/embeds/google-sheets-viewer.d.ts +3 -1
- package/dist/components/embeds/google-sheets-viewer.d.ts.map +1 -1
- package/dist/components/embeds/google-sheets-viewer.js +7 -4
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/pdf-viewer.d.ts +3 -1
- package/dist/components/embeds/pdf-viewer.d.ts.map +1 -1
- package/dist/components/embeds/pdf-viewer.js +7 -2
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +10 -8
- package/dist/components/features/software/index.d.ts +1 -1
- package/dist/components/features/software/index.d.ts.map +1 -1
- package/dist/components/features/software/index.js +2 -0
- package/dist/components/features/software/software-action-copy.d.ts.map +1 -1
- package/dist/components/features/software/software-action-copy.js +6 -12
- package/dist/components/features/software/software-action-form.d.ts +7 -1
- package/dist/components/features/software/software-action-form.d.ts.map +1 -1
- package/dist/components/features/software/software-action-form.js +11 -3
- package/dist/components/features/software/update-settings-fields.d.ts +12 -1
- package/dist/components/features/software/update-settings-fields.d.ts.map +1 -1
- package/dist/components/features/software/update-settings-fields.js +57 -29
- package/dist/components/help-center-pages/index.cjs +87 -87
- package/dist/components/index.cjs +52 -50
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +18 -18
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +8 -8
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +7 -3
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +11 -1
- package/dist/{devices-IZROCLFK.cjs → devices-NGCTSXIU.cjs} +9 -9
- package/dist/{embeddable-chat-ETW6S22E.cjs → embeddable-chat-322NDFP5.cjs} +74 -74
- package/dist/index.cjs +18 -12
- package/dist/{knowledge-4IRWLTNW.cjs → knowledge-75PO5DYS.cjs} +9 -9
- package/dist/{logs-EFDGY5IO.cjs → logs-PZESOAIG.cjs} +15 -15
- package/dist/{policies-3KEXZ5BP.cjs → policies-6XNMBFWO.cjs} +12 -12
- package/dist/{remote-session-NT4NG7EF.cjs → remote-session-Q2FIBCGT.cjs} +4 -4
- package/dist/{scripts-PCGTZLZL.cjs → scripts-B3JW6TPF.cjs} +15 -15
- package/dist/{software-update-YCDNVFJE.cjs → software-update-NWP542J7.cjs} +12 -12
- package/dist/types/doc-source.d.ts +2 -2
- package/dist/types/doc-source.d.ts.map +1 -1
- package/dist/utils/doc-tree-nav.d.ts +7 -0
- package/dist/utils/doc-tree-nav.d.ts.map +1 -1
- package/dist/utils/doc-tree-nav.js +19 -0
- package/dist/utils/index.cjs +25 -2
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/list-url.js +2 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/dist/utils/source-grouping.js +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/source-icons.js +3 -0
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +3 -0
- package/src/components/docs/doc-viewer.tsx +56 -35
- package/src/components/docs/docs-hub-page.tsx +13 -37
- package/src/components/docs/use-document-tree.ts +33 -23
- package/src/components/embeds/claude-embed.tsx +4 -4
- package/src/components/embeds/embed-iframe.tsx +8 -5
- package/src/components/embeds/embed-viewer-frame.tsx +43 -15
- package/src/components/embeds/figma-embed.tsx +9 -4
- package/src/components/embeds/file-download-card.tsx +28 -4
- package/src/components/embeds/google-sheets-viewer.tsx +9 -3
- package/src/components/embeds/pdf-viewer.tsx +12 -2
- package/src/components/features/software/index.ts +1 -0
- package/src/components/features/software/software-action-copy.ts +19 -12
- package/src/components/features/software/software-action-form.tsx +16 -3
- package/src/components/features/software/update-settings-fields.tsx +104 -32
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +4 -0
- package/src/components/ui/page-actions.tsx +19 -2
- package/src/types/doc-source.ts +2 -2
- package/src/utils/doc-tree-nav.ts +27 -0
- package/src/utils/list-url.ts +2 -1
- package/src/utils/source-grouping.ts +2 -2
- package/src/utils/source-icons.ts +3 -0
- package/dist/components/docs/skeletons.d.ts +0 -25
- package/dist/components/docs/skeletons.d.ts.map +0 -1
- package/dist/components/docs/skeletons.js +0 -83
- package/src/components/docs/skeletons.tsx +0 -131
|
@@ -1,30 +1,30 @@
|
|
|
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 _chunkIN3LA2FUcjs = require('./chunk-IN3LA2FU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5CBI2ZYVcjs = require('./chunk-5CBI2ZYV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkXKOL5CNUcjs = require('./chunk-XKOL5CNU.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCAGNWDVJcjs = require('./chunk-CAGNWDVJ.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkTX4NTH22cjs = require('./chunk-TX4NTH22.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkFXLROQUTcjs = require('./chunk-FXLROQUT.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkPGAMWM6Ccjs = require('./chunk-PGAMWM6C.cjs');
|
|
@@ -34,11 +34,11 @@ var _chunkPGAMWM6Ccjs = require('./chunk-PGAMWM6C.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkBU2PSRAScjs = require('./chunk-BU2PSRAS.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk533QK4R6cjs = require('./chunk-533QK4R6.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkMDLT6D46cjs = require('./chunk-MDLT6D46.cjs');
|
|
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
|
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkBU2PSRAScjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkBU2PSRAScjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunk5CBI2ZYVcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkTX4NTH22cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunk5CBI2ZYVcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkXKOL5CNUcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXKOL5CNUcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFXLROQUTcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkXKOL5CNUcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunkFXLROQUTcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXKOL5CNUcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
|
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkBU2PSRAScjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunkPGAMWM6Ccjs.useVideoWarmup.call(void 0, {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXKOL5CNUcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -342,19 +342,19 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkTIVPOVIMcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkTX4NTH22cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
|
-
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
354
|
+
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCAGNWDVJcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXKOL5CNUcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunk533QK4R6cjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunkFXLROQUTcjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunkFXLROQUTcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -397,7 +397,7 @@ function OnboardingGuideDetailView({
|
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkIN3LA2FUcjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFXLROQUTcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXKOL5CNUcjs = require('./chunk-XKOL5CNU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCAGNWDVJcjs = require('./chunk-CAGNWDVJ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -17,16 +17,16 @@ var _chunkIKOL6NJYcjs = require('./chunk-IKOL6NJY.cjs');
|
|
|
17
17
|
var _chunkFNQWL4W4cjs = require('./chunk-FNQWL4W4.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkTX4NTH22cjs = require('./chunk-TX4NTH22.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkFXLROQUTcjs = require('./chunk-FXLROQUT.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk533QK4R6cjs = require('./chunk-533QK4R6.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunkFXLROQUTcjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkFNQWL4W4cjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk533QK4R6cjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunk533QK4R6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkTX4NTH22cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXKOL5CNUcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCAGNWDVJcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkCAGNWDVJcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCAGNWDVJcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkCAGNWDVJcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCAGNWDVJcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkCAGNWDVJcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCAGNWDVJcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGEWT3SFcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkXKOL5CNUcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkFXLROQUTcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkFXLROQUTcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXKOL5CNUcjs = require('./chunk-XKOL5CNU.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkXKOL5CNUcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkXKOL5CNUcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -8,13 +8,13 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkTX4NTH22cjs = require('./chunk-TX4NTH22.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkFXLROQUTcjs = require('./chunk-FXLROQUT.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -33,10 +33,10 @@ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkBU2PSRAScjs = require('./chunk-BU2PSRAS.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk533QK4R6cjs = require('./chunk-533QK4R6.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -82,7 +82,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
82
82
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
id:
|
|
85
|
+
id: _chunkFXLROQUTcjs.faqItemAnchor.call(void 0, item.id),
|
|
86
86
|
className: _chunk63A4GZMBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
87
87
|
"data-loading-item": true,
|
|
88
88
|
children: [
|
|
@@ -148,14 +148,14 @@ function FaqAccordionSkeleton({
|
|
|
148
148
|
|
|
149
149
|
var PICK_ROOT_MARGIN = "600px";
|
|
150
150
|
function faqAskCardShown(assistant) {
|
|
151
|
-
return
|
|
151
|
+
return _chunkTX4NTH22cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
152
152
|
}
|
|
153
153
|
function FaqAskCard({ exclude, count, title, description, onOpen }) {
|
|
154
154
|
const { ref, inView } = _chunkGRCOEICKcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
155
155
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
156
156
|
if (inView && !reached) setReached(true);
|
|
157
157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
158
|
-
|
|
158
|
+
_chunkTX4NTH22cjs.AssistantAskPrompts,
|
|
159
159
|
{
|
|
160
160
|
variant: "card",
|
|
161
161
|
count,
|
|
@@ -214,7 +214,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
214
214
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
215
215
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
216
216
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
217
|
-
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
217
|
+
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunk533QK4R6cjs.SECTION_HEADING_CLASS, "pb-4");
|
|
218
218
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
219
219
|
function FaqLayout({
|
|
220
220
|
heading,
|
|
@@ -240,11 +240,11 @@ function FaqLayout({
|
|
|
240
240
|
] });
|
|
241
241
|
}
|
|
242
242
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
243
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
243
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk533QK4R6cjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
244
244
|
if (!(showTopic && topic)) return titleNode;
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
247
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFXLROQUTcjs.PageTopicLabel, {})
|
|
248
248
|
] });
|
|
249
249
|
}
|
|
250
250
|
var PAGE_FAQ_SECTION_ID = "faq";
|
|
@@ -255,7 +255,7 @@ function SharedPageFaq() {
|
|
|
255
255
|
}
|
|
256
256
|
function buildFaqsUrl(endpoint, entityType, entityId, minResults, topic) {
|
|
257
257
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
258
|
-
return
|
|
258
|
+
return _chunkBU2PSRAScjs.buildSuggestionUrl.call(void 0, endpoint, {
|
|
259
259
|
entityType,
|
|
260
260
|
entityId,
|
|
261
261
|
count: minResults,
|
|
@@ -275,7 +275,7 @@ function groupFaqsBySection(faqs) {
|
|
|
275
275
|
}
|
|
276
276
|
let group = byName.get(name);
|
|
277
277
|
if (!group) {
|
|
278
|
-
group = { section: name, slug:
|
|
278
|
+
group = { section: name, slug: _chunkFXLROQUTcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
279
279
|
byName.set(name, group);
|
|
280
280
|
}
|
|
281
281
|
group.items.push(item);
|
|
@@ -331,7 +331,7 @@ function GroupedFaqList({
|
|
|
331
331
|
}, [slugKey]);
|
|
332
332
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
333
333
|
_react.useEffect.call(void 0, () => {
|
|
334
|
-
const refresh = () => setHashTarget(
|
|
334
|
+
const refresh = () => setHashTarget(_chunkFXLROQUTcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
335
335
|
refresh();
|
|
336
336
|
window.addEventListener("hashchange", refresh);
|
|
337
337
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -435,7 +435,7 @@ function FaqSection({
|
|
|
435
435
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
436
436
|
[initialFaqs]
|
|
437
437
|
);
|
|
438
|
-
const { data, dataUrl, isLoading, error } =
|
|
438
|
+
const { data, dataUrl, isLoading, error } = _chunkBU2PSRAScjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
439
439
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
440
440
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
441
441
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|