@flamingo-stack/openframe-frontend-core 0.0.704 → 0.0.705-snapshot.20261006160157
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-7LFIKJX2.js → chunk-3EZ4HHAP.js} +3 -3
- package/dist/{chunk-I7DFUQMN.js → chunk-3NCM4ZQB.js} +17 -18
- package/dist/{chunk-4DQMTBMK.cjs → chunk-3PLDQDE6.cjs} +15 -15
- package/dist/{chunk-VTASHWER.js → chunk-4CJMQLB5.js} +4 -4
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-ZQFZSFQI.js → chunk-4ILM7W2R.js} +2 -2
- package/dist/{chunk-FXENTYE5.js → chunk-6232S532.js} +3 -3
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-2JDVL7UV.js → chunk-7GEBFJT2.js} +1829 -3447
- package/dist/{chunk-LDPEQGKT.cjs → chunk-7OFPU7WE.cjs} +942 -2560
- package/dist/{chunk-L3IC42IF.cjs → chunk-7SCNMP2B.cjs} +57 -58
- package/dist/{chunk-2G546OND.js → chunk-BHI6GVC4.js} +1094 -693
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-WUJNYGO2.js → chunk-CZ7Y7UG4.js} +4 -76
- package/dist/{chunk-7JIL3WOH.cjs → chunk-DDVBX42E.cjs} +21 -21
- package/dist/{chunk-6WQIUQUC.js → chunk-DWPAAWMR.js} +6 -6
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-4KGXLVCF.js → chunk-G6UMNAVI.js} +57 -61
- package/dist/{chunk-LTSTC3N5.cjs → chunk-GWQEYPYM.cjs} +728 -732
- package/dist/{chunk-N3TO7JV3.cjs → chunk-HZ7CBXPL.cjs} +89 -89
- package/dist/{chunk-XATTBO5X.js → chunk-IKJA3Y7Z.js} +2 -2
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-AMYY3PNL.cjs → chunk-K6O43WDL.cjs} +46 -46
- package/dist/{chunk-IHU5ANUY.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-XJKZ4IKT.cjs → chunk-LVSFKENJ.cjs} +4 -4
- package/dist/{chunk-IZGDG5X6.cjs → chunk-M75XEEGT.cjs} +940 -539
- package/dist/{chunk-UK62YTH6.cjs → chunk-MB4PNY7C.cjs} +6 -6
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-JEYRXT5L.js → chunk-O2RSAA5M.js} +11 -11
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-5QJDM6UV.js → chunk-PXOQIA5K.js} +5 -5
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-HFJW24JJ.cjs → chunk-RTIPR53L.cjs} +104 -104
- package/dist/{chunk-262YQFOS.cjs → chunk-SEKYEWQG.cjs} +26 -26
- package/dist/{chunk-SYXQLETR.cjs → chunk-STHZBOQI.cjs} +17 -17
- package/dist/{chunk-MI3JUJ75.cjs → chunk-SW5ZV2BN.cjs} +34 -34
- package/dist/{chunk-QVSFBSWV.js → chunk-T5TMCHWM.js} +9 -9
- package/dist/{chunk-ERCV6HHJ.js → chunk-TE773HEH.js} +10 -10
- package/dist/{chunk-C7XGRLT5.cjs → chunk-TQ4LB2DS.cjs} +14 -14
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-XIFOBQRQ.cjs → chunk-UJ33ZXDT.cjs} +6 -6
- package/dist/{chunk-C3BWIU7R.cjs → chunk-UVTD52MD.cjs} +14 -86
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-HJAYVKWQ.js → chunk-VZICIQW2.js} +15 -15
- package/dist/{chunk-MGGGBHYD.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-NRLJUBCS.js → chunk-YGJKKDDM.js} +6 -6
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +8 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +16 -16
- package/dist/components/chat/mingo-chat-rail.d.ts +3 -1
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +89 -158
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +333 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/app-layout-side-panel.d.ts +18 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +30 -16
- package/dist/components/navigation/index.d.ts +15 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +40 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +19 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +58 -21
- package/dist/index.js +233 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +5 -1
- package/src/components/chat/chat-message-enhanced.tsx +4 -3
- package/src/components/chat/embeddable-chat.tsx +64 -6
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-rail.tsx +24 -7
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/app-layout-side-panel.tsx +30 -2
- package/src/components/navigation/index.ts +22 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/app-globals.css +13 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useMediaQuery
|
|
4
|
+
} from "./chunk-FXJ3WWUB.js";
|
|
2
5
|
import {
|
|
3
6
|
AuthentikLogoGreyIcon,
|
|
4
7
|
FleetMdmLogoGreyIcon,
|
|
@@ -7,10 +10,7 @@ import {
|
|
|
7
10
|
Office365LogoGreyIcon,
|
|
8
11
|
OpenframeLogoGreyIcon,
|
|
9
12
|
OsqueryLogoGreyIcon
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
useMediaQuery
|
|
13
|
-
} from "./chunk-NDESEPW5.js";
|
|
13
|
+
} from "./chunk-NCPTID44.js";
|
|
14
14
|
|
|
15
15
|
// src/hooks/ui/use-debounce.ts
|
|
16
16
|
import { useState, useEffect } from "react";
|
|
@@ -311,9 +311,6 @@ ToolIcon.displayName = "ToolIcon";
|
|
|
311
311
|
// src/utils/common.ts
|
|
312
312
|
import { clsx } from "clsx";
|
|
313
313
|
import { twMerge } from "tailwind-merge";
|
|
314
|
-
function cn(...inputs) {
|
|
315
|
-
return twMerge(clsx(inputs));
|
|
316
|
-
}
|
|
317
314
|
function errorMessage(error, fallback = "Something went wrong") {
|
|
318
315
|
if (error instanceof Error && error.message) return error.message;
|
|
319
316
|
if (typeof error === "string" && error) return error;
|
|
@@ -371,72 +368,6 @@ function pick(source, keys) {
|
|
|
371
368
|
}
|
|
372
369
|
var NO_CLIENT_CACHE = { staleTime: 0 };
|
|
373
370
|
|
|
374
|
-
// src/hooks/use-near-viewport.ts
|
|
375
|
-
import { useEffect as useEffect8, useRef as useRef4, useState as useState5, useCallback as useCallback3 } from "react";
|
|
376
|
-
var observers = /* @__PURE__ */ new Map();
|
|
377
|
-
var subscribers = /* @__PURE__ */ new WeakMap();
|
|
378
|
-
var THRESHOLD_EPSILON = 0.01;
|
|
379
|
-
function observerKey(rootMargin, threshold) {
|
|
380
|
-
return `${rootMargin}|${threshold}`;
|
|
381
|
-
}
|
|
382
|
-
function getObserverFor(rootMargin, threshold) {
|
|
383
|
-
const key = observerKey(rootMargin, threshold);
|
|
384
|
-
const existing = observers.get(key);
|
|
385
|
-
if (existing) return existing;
|
|
386
|
-
const io = new IntersectionObserver(
|
|
387
|
-
(entries) => {
|
|
388
|
-
entries.forEach((entry) => {
|
|
389
|
-
if (!entry.isIntersecting) return;
|
|
390
|
-
if (entry.intersectionRatio < threshold - THRESHOLD_EPSILON) return;
|
|
391
|
-
const cb = subscribers.get(entry.target);
|
|
392
|
-
if (cb) {
|
|
393
|
-
cb();
|
|
394
|
-
io.unobserve(entry.target);
|
|
395
|
-
subscribers.delete(entry.target);
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
},
|
|
399
|
-
{ rootMargin, threshold }
|
|
400
|
-
);
|
|
401
|
-
observers.set(key, io);
|
|
402
|
-
return io;
|
|
403
|
-
}
|
|
404
|
-
var NEAR_VIEWPORT_ROOT_MARGIN = "500px";
|
|
405
|
-
function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0) {
|
|
406
|
-
const [isNear, setIsNear] = useState5(false);
|
|
407
|
-
const elRef = useRef4(null);
|
|
408
|
-
const key = observerKey(rootMargin, threshold);
|
|
409
|
-
const ref = useCallback3(
|
|
410
|
-
(node) => {
|
|
411
|
-
const prev = elRef.current;
|
|
412
|
-
if (prev) {
|
|
413
|
-
const stillOurs = subscribers.get(prev);
|
|
414
|
-
if (stillOurs) {
|
|
415
|
-
subscribers.delete(prev);
|
|
416
|
-
observers.get(key)?.unobserve(prev);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
elRef.current = node;
|
|
420
|
-
if (!node) return;
|
|
421
|
-
const cb = () => setIsNear(true);
|
|
422
|
-
subscribers.set(node, cb);
|
|
423
|
-
getObserverFor(rootMargin, threshold).observe(node);
|
|
424
|
-
},
|
|
425
|
-
[key, rootMargin, threshold]
|
|
426
|
-
);
|
|
427
|
-
useEffect8(() => {
|
|
428
|
-
return () => {
|
|
429
|
-
const el = elRef.current;
|
|
430
|
-
if (!el) return;
|
|
431
|
-
if (subscribers.get(el)) {
|
|
432
|
-
subscribers.delete(el);
|
|
433
|
-
observers.get(key)?.unobserve(el);
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
}, [key]);
|
|
437
|
-
return { ref, isNear };
|
|
438
|
-
}
|
|
439
|
-
|
|
440
371
|
// src/utils/markdown-fences.ts
|
|
441
372
|
var FENCE_RE = /^ {0,3}(`{3,}|~{3,})([^\n]*?)\r?$/;
|
|
442
373
|
var BLANK_LINE_RE = /^[ \t\r]*$/;
|
|
@@ -770,7 +701,6 @@ export {
|
|
|
770
701
|
ToolTypeValues,
|
|
771
702
|
toolLabels,
|
|
772
703
|
ToolIcon,
|
|
773
|
-
cn,
|
|
774
704
|
errorMessage,
|
|
775
705
|
apiErrorMessage,
|
|
776
706
|
delay,
|
|
@@ -782,8 +712,6 @@ export {
|
|
|
782
712
|
clamp,
|
|
783
713
|
pick,
|
|
784
714
|
NO_CLIENT_CACHE,
|
|
785
|
-
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
786
|
-
useNearViewport,
|
|
787
715
|
isBlankLine,
|
|
788
716
|
createFenceTracker,
|
|
789
717
|
HEADING_EMOJI_RE,
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkUDFRUKLCcjs = require('./chunk-UDFRUKLC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkWCVZCGK5cjs = require('./chunk-WCVZCGK5.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
@@ -16,21 +16,21 @@ var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk7OFPU7WEcjs = require('./chunk-7OFPU7WE.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -56,7 +56,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
56
56
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
id:
|
|
59
|
+
id: _chunk7OFPU7WEcjs.faqItemAnchor.call(void 0, item.id),
|
|
60
60
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -76,7 +76,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "min-w-0 flex-1 break-words", children: item.question }),
|
|
78
78
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
-
|
|
79
|
+
_chunkVX4E6YSBcjs.Chevron02DownIcon,
|
|
80
80
|
{
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
size: 24,
|
|
@@ -149,7 +149,7 @@ function groupFaqsBySection(faqs) {
|
|
|
149
149
|
}
|
|
150
150
|
let group = byName.get(name);
|
|
151
151
|
if (!group) {
|
|
152
|
-
group = { section: name, slug:
|
|
152
|
+
group = { section: name, slug: _chunk7OFPU7WEcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
153
153
|
byName.set(name, group);
|
|
154
154
|
}
|
|
155
155
|
group.items.push(item);
|
|
@@ -192,7 +192,7 @@ function GroupedFaqList({
|
|
|
192
192
|
}
|
|
193
193
|
if (bestId) setActiveSlug(bestId);
|
|
194
194
|
},
|
|
195
|
-
{ rootMargin: `-${
|
|
195
|
+
{ rootMargin: `-${_chunkUVTD52MDcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
196
196
|
);
|
|
197
197
|
for (const group of navGroupsRef.current) {
|
|
198
198
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -202,7 +202,7 @@ function GroupedFaqList({
|
|
|
202
202
|
}, [slugKey]);
|
|
203
203
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
204
204
|
_react.useEffect.call(void 0, () => {
|
|
205
|
-
const refresh = () => setHashTarget(
|
|
205
|
+
const refresh = () => setHashTarget(_chunk7OFPU7WEcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
206
206
|
refresh();
|
|
207
207
|
window.addEventListener("hashchange", refresh);
|
|
208
208
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -219,7 +219,7 @@ function GroupedFaqList({
|
|
|
219
219
|
}, [groups, hashTarget]);
|
|
220
220
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
221
221
|
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");
|
|
222
|
-
|
|
222
|
+
_chunkWCVZCGK5cjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkUVTD52MDcjs.STICKY_HEADER_OFFSET_PX });
|
|
223
223
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
224
224
|
if (pillSyncedHash !== hashTarget) {
|
|
225
225
|
setPillSyncedHash(hashTarget);
|
|
@@ -227,8 +227,8 @@ function GroupedFaqList({
|
|
|
227
227
|
}
|
|
228
228
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
229
229
|
e.preventDefault();
|
|
230
|
-
|
|
231
|
-
headerOffset:
|
|
230
|
+
_chunkUVTD52MDcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
231
|
+
headerOffset: _chunkUVTD52MDcjs.STICKY_HEADER_OFFSET_PX,
|
|
232
232
|
history: "replace"
|
|
233
233
|
});
|
|
234
234
|
}, []);
|
|
@@ -253,7 +253,7 @@ function GroupedFaqList({
|
|
|
253
253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
254
254
|
const key = groupKey(group);
|
|
255
255
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
256
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
256
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunk6NTPY5QAcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
257
257
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
258
|
FaqAccordion,
|
|
259
259
|
{
|
|
@@ -291,10 +291,10 @@ function FaqSection({
|
|
|
291
291
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
292
292
|
[initialFaqs]
|
|
293
293
|
);
|
|
294
|
-
const { data, isLoading, error } =
|
|
294
|
+
const { data, isLoading, error } = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
295
295
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _14 => _14.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _15 => _15.faqs])]);
|
|
296
296
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
297
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
297
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk6NTPY5QAcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
298
298
|
if (error) return null;
|
|
299
299
|
if (!isLoading && faqs.length === 0) return null;
|
|
300
300
|
if (isLoading && faqs.length === 0) {
|
|
@@ -310,7 +310,7 @@ function FaqSection({
|
|
|
310
310
|
"script",
|
|
311
311
|
{
|
|
312
312
|
type: "application/ld+json",
|
|
313
|
-
dangerouslySetInnerHTML: { __html:
|
|
313
|
+
dangerouslySetInnerHTML: { __html: _chunkUVTD52MDcjs.serializeJsonLd.call(void 0, schema) }
|
|
314
314
|
}
|
|
315
315
|
)
|
|
316
316
|
] });
|
|
@@ -336,7 +336,7 @@ function FaqDocumentPage({
|
|
|
336
336
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
337
337
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
338
338
|
};
|
|
339
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
339
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
340
340
|
FaqSection,
|
|
341
341
|
{
|
|
342
342
|
initialFaqs,
|
|
@@ -349,7 +349,7 @@ function FaqDocumentPage({
|
|
|
349
349
|
minResults
|
|
350
350
|
}
|
|
351
351
|
) });
|
|
352
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
FileDownloadCard,
|
|
4
4
|
GoogleSheetsViewer,
|
|
5
5
|
PdfViewer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YGJKKDDM.js";
|
|
7
7
|
import {
|
|
8
8
|
MobileNavigationDropdown,
|
|
9
9
|
MultiLevelNavigation,
|
|
10
10
|
StickySectionNav
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4ILM7W2R.js";
|
|
12
12
|
import {
|
|
13
13
|
DocSearchBar,
|
|
14
14
|
useDocSearch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PXOQIA5K.js";
|
|
16
16
|
import {
|
|
17
17
|
CategorySidebarSkeleton,
|
|
18
18
|
DEFAULT_FOLDER_INDEX_FILE,
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
findDocNodeByPath,
|
|
23
23
|
getDocAncestorNodeIds,
|
|
24
24
|
stripFolderIndexFromPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-G6UMNAVI.js";
|
|
26
26
|
import {
|
|
27
27
|
contentFetch
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CUME3VTQ.js";
|
|
29
29
|
import {
|
|
30
30
|
HUB_HEADER_OFFSET_PX,
|
|
31
31
|
apiErrorMessage,
|
|
32
32
|
getScrollableAncestor,
|
|
33
33
|
navigateSamePageHash,
|
|
34
34
|
scrollElementIntoView
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
36
36
|
import {
|
|
37
37
|
useRouter
|
|
38
38
|
} from "./chunk-GY4IZG22.js";
|