@flamingo-stack/openframe-frontend-core 0.0.720 → 0.0.721
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/assets/index.cjs +6 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +5 -1
- package/dist/assets/mobile-app-qr.d.ts +17 -0
- package/dist/assets/mobile-app-qr.d.ts.map +1 -0
- package/dist/{chunk-7IOU6BJE.js → chunk-2P2M27EW.js} +2393 -2367
- package/dist/{chunk-3HZ6XSZC.js → chunk-2TXGR7IK.js} +136 -59
- package/dist/{chunk-LO3KCLEF.js → chunk-3LY7V3RF.js} +3 -3
- package/dist/{chunk-6BLN5WDS.cjs → chunk-3R32ZNA2.cjs} +40 -40
- package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
- package/dist/{chunk-XW3Q623Q.js → chunk-44Q6MV7C.js} +2 -2
- package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
- package/dist/{chunk-4SIZCHVZ.cjs → chunk-4LY6R4TN.cjs} +126 -49
- package/dist/{chunk-TORERAXD.js → chunk-57UTI7ZH.js} +6 -6
- package/dist/{chunk-K2BYVPGR.js → chunk-5QXE5HMV.js} +4 -4
- package/dist/{chunk-QF464PPL.cjs → chunk-6AJIOW3S.cjs} +57 -57
- package/dist/{chunk-B2N4YX66.js → chunk-6YBUQAOH.js} +1 -1
- package/dist/{chunk-6W46LVK4.js → chunk-74N742ZG.js} +6 -6
- package/dist/{chunk-4HJRHEXD.cjs → chunk-7Z5FMQYR.cjs} +22 -22
- package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
- package/dist/{chunk-VF2CJXZ2.cjs → chunk-BYVVE7HP.cjs} +58 -58
- package/dist/{chunk-AZRI4XBP.js → chunk-CO3FOZIH.js} +1 -1
- package/dist/{chunk-XSM46FHD.cjs → chunk-D2DH6VZL.cjs} +3 -3
- package/dist/{chunk-KSGMZHVV.cjs → chunk-DFM572VH.cjs} +2 -2
- package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
- package/dist/{chunk-VBHGJFA3.js → chunk-E6SMMMKV.js} +12 -12
- package/dist/{chunk-DHNJSQGX.cjs → chunk-F7ORKKEF.cjs} +103 -103
- package/dist/{chunk-RFUOIQSG.cjs → chunk-GCK75D7F.cjs} +9 -9
- package/dist/{chunk-ZHD3F2TH.cjs → chunk-GGBYZKMS.cjs} +11 -11
- package/dist/{chunk-YK3X74SF.js → chunk-GYAXV3MZ.js} +3 -3
- package/dist/{chunk-RDP5UZXQ.cjs → chunk-HJMSNOBT.cjs} +344 -323
- package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
- package/dist/{chunk-PXAKSPLZ.js → chunk-HXB7SEYG.js} +27 -6
- package/dist/{chunk-HTS46FFY.cjs → chunk-I2254QN6.cjs} +16 -16
- package/dist/{chunk-ILNN6QRW.js → chunk-JDBZ4ZHU.js} +3 -3
- package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
- package/dist/{chunk-URW23QUM.js → chunk-K76ACBR3.js} +2 -2
- package/dist/{chunk-2NASBO7O.js → chunk-KFOAV77K.js} +2 -2
- package/dist/{chunk-Q5327DXK.js → chunk-LAXKEBDD.js} +10 -10
- package/dist/{chunk-O3MKJU6A.js → chunk-LGKMR7NZ.js} +4 -4
- package/dist/{chunk-5XDCCQ4A.cjs → chunk-LODMNSQY.cjs} +13 -13
- package/dist/{chunk-V6B2FBZK.js → chunk-NJ5TBTJG.js} +7 -7
- package/dist/{chunk-HFEYEPOG.cjs → chunk-NMPVK53I.cjs} +29 -29
- package/dist/{chunk-GANIUMRU.js → chunk-NPSJE7J3.js} +1 -1
- package/dist/{chunk-IL3ZWNM2.cjs → chunk-O5EHOJZD.cjs} +4 -4
- package/dist/{chunk-KT3U3ZRP.cjs → chunk-OKE5BIQH.cjs} +8 -8
- package/dist/{chunk-RZQGIWK3.cjs → chunk-QLTXT562.cjs} +2 -2
- package/dist/{chunk-PSMJYZMV.js → chunk-QQCFPMAA.js} +2 -2
- package/dist/{chunk-7LPR4RZ3.cjs → chunk-QYS4YVEP.cjs} +31 -31
- package/dist/{chunk-VYVPII4W.js → chunk-RCI3PALX.js} +6 -6
- package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
- package/dist/{chunk-2C72EWQR.cjs → chunk-RJMWJAJO.cjs} +26 -26
- package/dist/{chunk-ISCZ6UNF.cjs → chunk-RQZQHLNS.cjs} +73 -73
- package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
- package/dist/{chunk-7HYEQKN6.js → chunk-S63QBBT7.js} +5 -5
- package/dist/{chunk-B5LNX4GZ.js → chunk-UXU7Y5BH.js} +2 -2
- package/dist/{chunk-DYDDAA6O.cjs → chunk-UZTOI6FJ.cjs} +766 -740
- package/dist/{chunk-EVMM3JE6.cjs → chunk-VFICDEYJ.cjs} +43 -43
- package/dist/{chunk-DOPOHO6H.cjs → chunk-XE2K53GH.cjs} +18 -18
- package/dist/{chunk-UWJMDFDO.cjs → chunk-XXO52RZR.cjs} +26 -26
- package/dist/{chunk-VYZCKY5K.js → chunk-ZLUFEWZZ.js} +7 -7
- package/dist/{chunk-NYSMDM4J.cjs → chunk-ZSOFLPQN.cjs} +7 -7
- package/dist/{chunk-ZPHOQDAE.js → chunk-ZZEKXGFS.js} +1 -1
- package/dist/{cloud-tenants-UQZASXUB.cjs → cloud-tenants-HZHKRUIW.cjs} +13 -13
- package/dist/{cloud-tenants-RKQRSDNE.js → cloud-tenants-Q4TCJS5Y.js} +12 -12
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +27 -27
- package/dist/components/case-studies/index.js +13 -13
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/chat/index.js +7 -7
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/contact/index.js +13 -13
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/docs/index.js +16 -16
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/embeds/index.js +13 -13
- package/dist/components/faq/index.cjs +14 -14
- package/dist/components/faq/index.js +13 -13
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/index.js +12 -12
- package/dist/components/help-center-pages/download-apps-page.d.ts +55 -0
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +329 -114
- package/dist/components/help-center-pages/index.d.ts +1 -0
- package/dist/components/help-center-pages/index.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.js +243 -28
- package/dist/components/index.cjs +81 -79
- package/dist/components/index.js +28 -26
- package/dist/components/meeting-scheduler/index.cjs +51 -51
- package/dist/components/meeting-scheduler/index.js +14 -14
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/navigation/index.js +15 -15
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.js +15 -15
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/index.js +8 -8
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/index.js +17 -17
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +15 -13
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +14 -12
- package/dist/components/ui/mobile-app-qr.d.ts +23 -0
- package/dist/components/ui/mobile-app-qr.d.ts.map +1 -0
- package/dist/components/ui/store-badges.d.ts +7 -4
- package/dist/components/ui/store-badges.d.ts.map +1 -1
- package/dist/{devices-7Q2EUM7B.cjs → devices-6XHUFIC6.cjs} +14 -14
- package/dist/{devices-U3Y4IIW4.js → devices-NOUGVTES.js} +12 -12
- package/dist/hooks/index.cjs +9 -3
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -2
- package/dist/hooks/use-downloads.d.ts +41 -0
- package/dist/hooks/use-downloads.d.ts.map +1 -0
- package/dist/index.cjs +57 -17
- package/dist/index.js +56 -16
- package/dist/{knowledge-NST53EXE.js → knowledge-2YTUXQ2Z.js} +12 -12
- package/dist/{knowledge-UYIZ74MA.cjs → knowledge-ANEKPMO2.cjs} +14 -14
- package/dist/{logs-HTH7X7KV.cjs → logs-U3IB3HUM.cjs} +22 -22
- package/dist/{logs-JVTRG232.js → logs-WVQIONUT.js} +12 -12
- package/dist/{policies-DTXTRK56.js → policies-66EGDW2H.js} +12 -12
- package/dist/{policies-MXK2HB4W.cjs → policies-UFRN2EQF.cjs} +17 -17
- package/dist/{remote-session-LAJZKQBN.js → remote-session-6WEUJZDC.js} +4 -4
- package/dist/{remote-session-SKKF4PBV.cjs → remote-session-A75X5NPC.cjs} +6 -6
- package/dist/{software-update-P6BSM6HX.cjs → software-update-2MHKL76D.cjs} +17 -17
- package/dist/{software-update-6RHMPM3W.js → software-update-3ZD3MXF3.js} +12 -12
- package/dist/{tickets-board-BHLPAVNJ.cjs → tickets-board-IFWMIZ35.cjs} +9 -9
- package/dist/{tickets-board-PYDNELSK.js → tickets-board-MYXG3V72.js} +4 -4
- package/dist/types/downloads.d.ts +67 -0
- package/dist/types/downloads.d.ts.map +1 -0
- package/dist/types/index.cjs +24 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -1
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +16 -1
- package/dist/utils/mobile-app.cjs +46 -0
- package/dist/utils/mobile-app.d.ts +40 -0
- package/dist/utils/mobile-app.d.ts.map +1 -0
- package/dist/utils/mobile-app.js +40 -0
- package/package.json +7 -1
- package/src/assets/index.ts +1 -0
- package/src/assets/mobile-app-qr.ts +19 -0
- package/src/components/help-center-pages/download-apps-page.tsx +364 -0
- package/src/components/help-center-pages/index.ts +1 -0
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-app-qr.tsx +40 -0
- package/src/components/ui/store-badges.tsx +17 -9
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-downloads.ts +138 -0
- package/src/types/downloads.ts +82 -0
- package/src/types/index.ts +1 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/mobile-app.ts +57 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUZTOI6FJcjs = require('./chunk-UZTOI6FJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBYVVE7HPcjs = require('./chunk-BYVVE7HP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ var _chunk4SIZCHVZcjs = require('./chunk-4SIZCHVZ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkHJMSNOBTcjs = require('./chunk-HJMSNOBT.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkWVOTC7HWcjs = require('./chunk-WVOTC7HW.cjs');
|
|
@@ -38,7 +38,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkGCK75D7Fcjs = require('./chunk-GCK75D7F.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
@@ -70,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
70
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
|
-
id:
|
|
73
|
+
id: _chunkHJMSNOBTcjs.faqItemAnchor.call(void 0, item.id),
|
|
74
74
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -128,29 +128,29 @@ var DEFAULT_ASK_CARD = {
|
|
|
128
128
|
var PICK_ROOT_MARGIN = "600px";
|
|
129
129
|
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
130
|
function faqAskCardShown(assistant) {
|
|
131
|
-
return
|
|
131
|
+
return _chunkHJMSNOBTcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
132
|
}
|
|
133
133
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
134
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
|
-
const { ref, inView } =
|
|
135
|
+
const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
136
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
137
|
if (inView && !reached) setReached(true);
|
|
138
|
-
const shownElsewhere =
|
|
138
|
+
const shownElsewhere = _chunkHJMSNOBTcjs.useShownAskPromptIds.call(void 0, );
|
|
139
139
|
const excluded = exclude === void 0 ? shownElsewhere : exclude;
|
|
140
|
-
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => (
|
|
141
|
-
const { prompts, isLoading, supported } =
|
|
140
|
+
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkHJMSNOBTcjs.ASK_PROMPTS_DEFAULT_COUNT));
|
|
141
|
+
const { prompts, isLoading, supported } = _chunkHJMSNOBTcjs.useAskPrompts.call(void 0, {
|
|
142
142
|
topic,
|
|
143
143
|
count: slots,
|
|
144
144
|
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
145
|
enabled: reached && excluded !== null
|
|
146
146
|
});
|
|
147
|
-
const open =
|
|
147
|
+
const open = _chunkHJMSNOBTcjs.useAssistantOpen.call(void 0, topic, onOpen);
|
|
148
148
|
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
149
|
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
150
|
const name = assistant.name;
|
|
151
151
|
const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
152
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
|
-
|
|
153
|
+
_chunkHJMSNOBTcjs.AskCard,
|
|
154
154
|
{
|
|
155
155
|
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
156
156
|
description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
|
|
@@ -196,7 +196,7 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
196
196
|
|
|
197
197
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
198
198
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
199
|
-
return
|
|
199
|
+
return _chunkGCK75D7Fcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
200
200
|
}
|
|
201
201
|
function groupFaqsBySection(faqs) {
|
|
202
202
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -211,7 +211,7 @@ function groupFaqsBySection(faqs) {
|
|
|
211
211
|
}
|
|
212
212
|
let group = byName.get(name);
|
|
213
213
|
if (!group) {
|
|
214
|
-
group = { section: name, slug:
|
|
214
|
+
group = { section: name, slug: _chunkHJMSNOBTcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
215
215
|
byName.set(name, group);
|
|
216
216
|
}
|
|
217
217
|
group.items.push(item);
|
|
@@ -256,7 +256,7 @@ function GroupedFaqList({
|
|
|
256
256
|
}
|
|
257
257
|
if (bestId) setActiveSlug(bestId);
|
|
258
258
|
},
|
|
259
|
-
{ rootMargin: `-${
|
|
259
|
+
{ rootMargin: `-${_chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
260
260
|
);
|
|
261
261
|
for (const group of navGroupsRef.current) {
|
|
262
262
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -266,7 +266,7 @@ function GroupedFaqList({
|
|
|
266
266
|
}, [slugKey]);
|
|
267
267
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
268
268
|
_react.useEffect.call(void 0, () => {
|
|
269
|
-
const refresh = () => setHashTarget(
|
|
269
|
+
const refresh = () => setHashTarget(_chunkHJMSNOBTcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
270
270
|
refresh();
|
|
271
271
|
window.addEventListener("hashchange", refresh);
|
|
272
272
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -283,7 +283,7 @@ function GroupedFaqList({
|
|
|
283
283
|
}, [groups, hashTarget]);
|
|
284
284
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _16 => _16.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
285
285
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _17 => _17.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _18 => _18.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
286
|
-
|
|
286
|
+
_chunk4LY6R4TNcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX });
|
|
287
287
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
288
288
|
if (pillSyncedHash !== hashTarget) {
|
|
289
289
|
setPillSyncedHash(hashTarget);
|
|
@@ -291,8 +291,8 @@ function GroupedFaqList({
|
|
|
291
291
|
}
|
|
292
292
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
293
293
|
e.preventDefault();
|
|
294
|
-
|
|
295
|
-
headerOffset:
|
|
294
|
+
_chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
295
|
+
headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX,
|
|
296
296
|
history: "replace"
|
|
297
297
|
});
|
|
298
298
|
}, []);
|
|
@@ -316,7 +316,7 @@ function GroupedFaqList({
|
|
|
316
316
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
317
317
|
const key = groupKey(group);
|
|
318
318
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
319
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
319
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkGCK75D7Fcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
320
320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
321
|
FaqAccordion,
|
|
322
322
|
{
|
|
@@ -372,10 +372,10 @@ function FaqSection({
|
|
|
372
372
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
373
373
|
[initialFaqs]
|
|
374
374
|
);
|
|
375
|
-
const { data, isLoading, error } =
|
|
375
|
+
const { data, isLoading, error } = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
376
376
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _24 => _24.faqs])]);
|
|
377
377
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
378
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
378
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkGCK75D7Fcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
379
379
|
if (error) return null;
|
|
380
380
|
if (!isLoading && faqs.length === 0) return null;
|
|
381
381
|
if (isLoading && faqs.length === 0) {
|
|
@@ -426,7 +426,7 @@ function FaqDocumentPage({
|
|
|
426
426
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.label]), () => ( "Back to home")),
|
|
427
427
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.href]), () => ( "/")))
|
|
428
428
|
};
|
|
429
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
429
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
430
430
|
FaqSection,
|
|
431
431
|
{
|
|
432
432
|
initialFaqs,
|
|
@@ -440,7 +440,7 @@ function FaqDocumentPage({
|
|
|
440
440
|
ask
|
|
441
441
|
}
|
|
442
442
|
) });
|
|
443
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
|