@flamingo-stack/openframe-frontend-core 0.0.719 → 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-2JLP2X2M.js → chunk-2P2M27EW.js} +2396 -2369
- package/dist/{chunk-IWCPXJEE.js → chunk-2TXGR7IK.js} +138 -63
- package/dist/{chunk-FVQJBII6.js → chunk-3LY7V3RF.js} +3 -3
- package/dist/{chunk-HCFNEKO3.cjs → chunk-3R32ZNA2.cjs} +46 -46
- package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
- package/dist/{chunk-NZ5BHDFZ.js → chunk-44Q6MV7C.js} +2 -2
- package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
- package/dist/{chunk-ZXCZYMN4.cjs → chunk-4LY6R4TN.cjs} +137 -62
- package/dist/{chunk-EAHOB64X.js → chunk-57UTI7ZH.js} +106 -42
- package/dist/{chunk-XGHGGBM3.js → chunk-5QXE5HMV.js} +4 -4
- package/dist/{chunk-NYWESHOQ.cjs → chunk-6AJIOW3S.cjs} +57 -57
- package/dist/{chunk-4QFWGLZO.js → chunk-6YBUQAOH.js} +1 -1
- package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
- package/dist/{chunk-D6PMVWDI.js → chunk-74N742ZG.js} +6 -6
- package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
- package/dist/{chunk-4HJRHEXD.cjs → chunk-7Z5FMQYR.cjs} +22 -22
- package/dist/chunk-AFTRPEXO.js +13 -0
- package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
- package/dist/{chunk-LCLDFMDF.cjs → chunk-BYVVE7HP.cjs} +58 -58
- package/dist/{chunk-JPD4NXH6.js → chunk-CO3FOZIH.js} +1 -1
- package/dist/{chunk-E7YCPY7K.cjs → chunk-D2DH6VZL.cjs} +3 -3
- package/dist/{chunk-HWVUR735.cjs → chunk-DFM572VH.cjs} +2 -2
- package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
- package/dist/{chunk-5U3KWQXP.js → chunk-E6SMMMKV.js} +13 -13
- package/dist/chunk-EWPR7662.cjs +13 -0
- package/dist/{chunk-SWAVO7BB.cjs → chunk-F7ORKKEF.cjs} +108 -108
- package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
- package/dist/{chunk-ETYLOZOB.cjs → chunk-GCK75D7F.cjs} +109 -22
- package/dist/{chunk-ZKNZ2CXW.cjs → chunk-GGBYZKMS.cjs} +11 -11
- package/dist/{chunk-Y4MB25KW.js → chunk-GYAXV3MZ.js} +3 -3
- package/dist/{chunk-UWQWMGJ7.cjs → chunk-HJMSNOBT.cjs} +1040 -696
- package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
- package/dist/{chunk-JH2SIWPQ.js → chunk-HXB7SEYG.js} +1611 -1267
- package/dist/{chunk-LE5WKGJV.cjs → chunk-I2254QN6.cjs} +16 -16
- package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
- package/dist/{chunk-ILNN6QRW.js → chunk-JDBZ4ZHU.js} +3 -3
- package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
- package/dist/{chunk-6YPTUHM7.js → chunk-K76ACBR3.js} +3 -3
- package/dist/{chunk-2NASBO7O.js → chunk-KFOAV77K.js} +2 -2
- package/dist/{chunk-CU6NWO2M.js → chunk-LAXKEBDD.js} +14 -18
- package/dist/{chunk-5YAGX5DY.js → chunk-LGKMR7NZ.js} +7 -7
- package/dist/{chunk-E2V2EH2G.cjs → chunk-LODMNSQY.cjs} +16 -16
- package/dist/{chunk-4D6NMPOO.js → chunk-NJ5TBTJG.js} +7 -7
- package/dist/{chunk-TDZ76NCB.cjs → chunk-NMPVK53I.cjs} +29 -29
- package/dist/{chunk-TTVOLEUS.js → chunk-NPSJE7J3.js} +90 -3
- package/dist/{chunk-H5VIMBRN.cjs → chunk-O5EHOJZD.cjs} +4 -4
- package/dist/{chunk-KT3U3ZRP.cjs → chunk-OKE5BIQH.cjs} +8 -8
- package/dist/{chunk-DC4RTYWK.cjs → chunk-QLTXT562.cjs} +5 -5
- package/dist/{chunk-H5V7GRN5.js → chunk-QQCFPMAA.js} +5 -7
- package/dist/{chunk-7BREFV7G.cjs → chunk-QYS4YVEP.cjs} +34 -36
- package/dist/{chunk-7BCY77W6.js → chunk-RCI3PALX.js} +8 -10
- package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
- package/dist/{chunk-4JIGEK7C.cjs → chunk-RJMWJAJO.cjs} +97 -33
- package/dist/{chunk-WS7WRR5Z.cjs → chunk-RQZQHLNS.cjs} +86 -90
- package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
- package/dist/{chunk-AJHSQ5XK.js → chunk-S63QBBT7.js} +6 -6
- package/dist/{chunk-TELAANY6.js → chunk-UXU7Y5BH.js} +2 -2
- package/dist/{chunk-NQVS4G7G.cjs → chunk-UZTOI6FJ.cjs} +773 -746
- package/dist/{chunk-DFEPUYTF.cjs → chunk-VFICDEYJ.cjs} +45 -47
- package/dist/{chunk-LOZLHG2U.cjs → chunk-XE2K53GH.cjs} +20 -20
- package/dist/{chunk-QBCDSTLE.cjs → chunk-XXO52RZR.cjs} +26 -26
- package/dist/{chunk-TTEFN6VO.js → chunk-ZLUFEWZZ.js} +10 -10
- package/dist/{chunk-MA4Q5RBP.cjs → chunk-ZSOFLPQN.cjs} +9 -9
- package/dist/{chunk-KBJJQFYU.js → chunk-ZZEKXGFS.js} +2 -2
- package/dist/{cloud-tenants-FBUO66GW.cjs → cloud-tenants-HZHKRUIW.cjs} +16 -16
- package/dist/{cloud-tenants-DNBPNQNP.js → cloud-tenants-Q4TCJS5Y.js} +15 -15
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +30 -30
- package/dist/components/case-studies/index.js +16 -16
- package/dist/components/chat/ask-prompts.d.ts +10 -2
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +63 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +27 -10
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +26 -9
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/contact/index.js +16 -16
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/docs/index.js +19 -19
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/embeds/index.js +16 -16
- package/dist/components/faq/faq-ask-card.d.ts +44 -0
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
- package/dist/components/faq/faq-document-page.d.ts +5 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-section.d.ts +18 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +19 -18
- package/dist/components/faq/index.d.ts +1 -0
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +18 -17
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/features/index.js +15 -15
- 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 +333 -119
- 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 +251 -37
- package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +131 -217
- package/dist/components/index.js +236 -322
- package/dist/components/meeting-scheduler/index.cjs +61 -62
- package/dist/components/meeting-scheduler/index.js +18 -19
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/navigation/index.js +18 -18
- package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +19 -20
- package/dist/components/onboarding-guides/index.js +18 -19
- 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 +7 -9
- package/dist/components/related-content/index.js +6 -8
- package/dist/components/tickets/index.cjs +21 -21
- package/dist/components/tickets/index.js +20 -20
- 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 +34 -16
- 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 +33 -15
- 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/contexts/assistant-runtime-context.d.ts +74 -0
- package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
- package/dist/contexts/index.cjs +7 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +6 -0
- package/dist/{devices-5A5TY4JD.cjs → devices-6XHUFIC6.cjs} +17 -17
- package/dist/{devices-PLDAEUSL.js → devices-NOUGVTES.js} +15 -15
- package/dist/hooks/index.cjs +10 -5
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -4
- package/dist/hooks/use-downloads.d.ts +41 -0
- package/dist/hooks/use-downloads.d.ts.map +1 -0
- package/dist/index.cjs +80 -20
- package/dist/index.js +79 -19
- package/dist/{knowledge-G6Q5KRWV.js → knowledge-2YTUXQ2Z.js} +15 -15
- package/dist/{knowledge-FKTJ723Z.cjs → knowledge-ANEKPMO2.cjs} +17 -17
- package/dist/{logs-CJCXUBU6.cjs → logs-U3IB3HUM.cjs} +25 -25
- package/dist/{logs-QMV6XIC4.js → logs-WVQIONUT.js} +15 -15
- package/dist/{policies-G6D7AX6F.js → policies-66EGDW2H.js} +15 -15
- package/dist/{policies-QMRTK3CY.cjs → policies-UFRN2EQF.cjs} +20 -20
- package/dist/{remote-session-DBD6OSTX.js → remote-session-6WEUJZDC.js} +5 -5
- package/dist/{remote-session-2JVI7RVA.cjs → remote-session-A75X5NPC.cjs} +7 -7
- package/dist/{software-update-PNZMRDBT.cjs → software-update-2MHKL76D.cjs} +20 -20
- package/dist/{software-update-6BQM6BKH.js → software-update-3ZD3MXF3.js} +15 -15
- 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 +46 -2
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +40 -3
- package/dist/utils/list-url.d.ts.map +1 -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/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/trial.d.ts +18 -0
- package/dist/utils/trial.d.ts.map +1 -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/chat/ask-prompts.tsx +25 -3
- package/src/components/chat/assistant-ask-prompts.tsx +78 -0
- package/src/components/chat/entity-cards/dispatch.tsx +38 -4
- package/src/components/chat/hooks/index.ts +12 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utils/icon-library.tsx +6 -0
- package/src/components/faq/faq-ask-card.tsx +115 -0
- package/src/components/faq/faq-document-page.tsx +6 -1
- package/src/components/faq/faq-section.tsx +27 -5
- package/src/components/faq/index.ts +1 -0
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
- 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/help-center-pages/trust-center-page.tsx +5 -2
- package/src/components/navigation/mingo-ai-button.tsx +27 -6
- 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/contexts/assistant-runtime-context.tsx +84 -0
- package/src/contexts/index.ts +9 -0
- 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 +3 -0
- package/src/utils/list-url.ts +4 -0
- package/src/utils/mobile-app.ts +57 -0
- package/src/utils/source-icons.ts +10 -2
- package/src/utils/trial.ts +19 -0
- package/dist/chunk-6X3O67OL.cjs +0 -89
- package/dist/chunk-AUMKE74M.cjs +0 -16
- package/dist/chunk-G3GRYDMS.js +0 -16
- package/dist/chunk-RR6PY34K.js +0 -89
|
@@ -2,30 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkO5EHOJZDcjs = require('./chunk-O5EHOJZD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLODMNSQYcjs = require('./chunk-LODMNSQY.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var _chunk6X3O67OLcjs = require('./chunk-6X3O67OL.cjs');
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
16
|
+
var _chunkUZTOI6FJcjs = require('./chunk-UZTOI6FJ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkBYVVE7HPcjs = require('./chunk-BYVVE7HP.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var _chunkLCLDFMDFcjs = require('./chunk-LCLDFMDF.cjs');
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
|
|
25
|
+
var _chunkHJMSNOBTcjs = require('./chunk-HJMSNOBT.cjs');
|
|
29
26
|
|
|
30
27
|
|
|
31
28
|
|
|
@@ -36,10 +33,11 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
36
33
|
|
|
37
34
|
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
|
|
37
|
+
var _chunkGCK75D7Fcjs = require('./chunk-GCK75D7F.cjs');
|
|
40
38
|
|
|
41
39
|
|
|
42
|
-
var
|
|
40
|
+
var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -64,7 +62,7 @@ function OnboardingGuidesCatalogSkeleton() {
|
|
|
64
62
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 rounded bg-ods-border/70" }),
|
|
65
63
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 rounded-full bg-ods-text-secondary/20" })
|
|
66
64
|
] }),
|
|
67
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
65
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
68
66
|
] }, sectionIdx)) })
|
|
69
67
|
] });
|
|
70
68
|
}
|
|
@@ -88,10 +86,10 @@ function OnboardingGuidesCatalogView({
|
|
|
88
86
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
89
87
|
const activeSection = sectionValue || "all";
|
|
90
88
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
91
|
-
const guidesRes =
|
|
89
|
+
const guidesRes = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0,
|
|
92
90
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
93
91
|
);
|
|
94
|
-
const sectionsRes =
|
|
92
|
+
const sectionsRes = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
95
93
|
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])]);
|
|
96
94
|
const sections = _react.useMemo.call(void 0,
|
|
97
95
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -134,25 +132,25 @@ function OnboardingGuidesCatalogView({
|
|
|
134
132
|
});
|
|
135
133
|
};
|
|
136
134
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
137
|
-
const docSearch =
|
|
135
|
+
const docSearch = _chunkLODMNSQYcjs.useDocSearch.call(void 0, {
|
|
138
136
|
source,
|
|
139
137
|
baseRoute: basePath,
|
|
140
138
|
onNavigate: (path) => router.push(path),
|
|
141
139
|
tableIds: ["onboarding-guides"]
|
|
142
140
|
});
|
|
143
141
|
const defaultRenderCard = (guide) => {
|
|
144
|
-
const cta =
|
|
142
|
+
const cta = _chunkHJMSNOBTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
145
143
|
type: "onboarding_guide",
|
|
146
144
|
slug: guide.slug,
|
|
147
145
|
basePath,
|
|
148
146
|
platforms: guide.onboarding_guide_platforms
|
|
149
147
|
});
|
|
150
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
151
149
|
};
|
|
152
150
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
153
151
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
154
152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
155
|
-
|
|
153
|
+
_chunkLODMNSQYcjs.DocSearchBar,
|
|
156
154
|
{
|
|
157
155
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
158
156
|
query: docSearch.query,
|
|
@@ -164,7 +162,7 @@ function OnboardingGuidesCatalogView({
|
|
|
164
162
|
}
|
|
165
163
|
),
|
|
166
164
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
167
|
-
|
|
165
|
+
_chunkUZTOI6FJcjs.FilterPillRow,
|
|
168
166
|
{
|
|
169
167
|
label: "Section",
|
|
170
168
|
selectedValue: activeSection,
|
|
@@ -174,7 +172,7 @@ function OnboardingGuidesCatalogView({
|
|
|
174
172
|
)
|
|
175
173
|
] });
|
|
176
174
|
if (selfFetch && guidesRes.error) {
|
|
177
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
175
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
178
176
|
}
|
|
179
177
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
180
178
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -206,7 +204,7 @@ function OnboardingGuideDetailView({
|
|
|
206
204
|
slug,
|
|
207
205
|
guideEndpoint,
|
|
208
206
|
related = [],
|
|
209
|
-
MarkdownRenderer =
|
|
207
|
+
MarkdownRenderer = _chunkUZTOI6FJcjs.RichMarkdownRenderer,
|
|
210
208
|
renderRelatedCard,
|
|
211
209
|
backHref,
|
|
212
210
|
backLabel = "Back to Getting Started",
|
|
@@ -216,51 +214,51 @@ function OnboardingGuideDetailView({
|
|
|
216
214
|
}) {
|
|
217
215
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
218
216
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
219
|
-
const captions =
|
|
217
|
+
const captions = _chunkHJMSNOBTcjs.useCaptions.call(void 0, );
|
|
220
218
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
221
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
219
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
222
220
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
223
|
-
const { data: guide, isLoading, error, reload } =
|
|
224
|
-
const { ref: videoWarmupRef } =
|
|
221
|
+
const { data: guide, isLoading, error, reload } = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
222
|
+
const { ref: videoWarmupRef } = _chunkGCK75D7Fcjs.useVideoWarmup.call(void 0, {
|
|
225
223
|
videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
|
|
226
224
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
227
225
|
});
|
|
228
226
|
if (error || !guide && !isLoading) {
|
|
229
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
230
228
|
}
|
|
231
229
|
if (!guide) {
|
|
232
230
|
return renderShell(
|
|
233
231
|
// Match the loaded page's top offset (TitleBlock's
|
|
234
232
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO5EHOJZDcjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
|
|
236
234
|
);
|
|
237
235
|
}
|
|
238
236
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", guide);
|
|
239
237
|
const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || // `buildOgPlaceholderUrl` always returns a usable string (relative route at
|
|
240
238
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
241
|
-
|
|
239
|
+
_chunk7GRPR7XAcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
|
|
242
240
|
const defaultRenderRelatedCard = (g) => {
|
|
243
|
-
const cta =
|
|
241
|
+
const cta = _chunkHJMSNOBTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
244
242
|
type: "onboarding_guide",
|
|
245
243
|
slug: g.slug,
|
|
246
244
|
basePath,
|
|
247
245
|
platforms: g.onboarding_guide_platforms
|
|
248
246
|
});
|
|
249
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
250
248
|
};
|
|
251
249
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
252
250
|
return renderShell(
|
|
253
251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
254
|
-
|
|
252
|
+
_chunkBYVVE7HPcjs.PageLayout,
|
|
255
253
|
{
|
|
256
254
|
title: guide.title,
|
|
257
255
|
titleSize: "h1",
|
|
258
256
|
titleWrap: true,
|
|
259
257
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
260
258
|
children: [
|
|
261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
262
260
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
263
|
-
|
|
261
|
+
_chunkGCK75D7Fcjs.EntityAuthorCard,
|
|
264
262
|
{
|
|
265
263
|
author: guide.author,
|
|
266
264
|
authorHref,
|
|
@@ -275,7 +273,7 @@ function OnboardingGuideDetailView({
|
|
|
275
273
|
}
|
|
276
274
|
),
|
|
277
275
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
278
|
-
|
|
276
|
+
_chunkHJMSNOBTcjs.EntityVideoSection,
|
|
279
277
|
{
|
|
280
278
|
mainVideoUrl: guide.main_video_url,
|
|
281
279
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -293,17 +291,17 @@ function OnboardingGuideDetailView({
|
|
|
293
291
|
) }),
|
|
294
292
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
295
293
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
296
|
-
|
|
294
|
+
_chunkHJMSNOBTcjs.VideoBitesStrip,
|
|
297
295
|
{
|
|
298
296
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
299
297
|
filterPublished: true,
|
|
300
298
|
showTitle: false,
|
|
301
|
-
profile:
|
|
299
|
+
profile: _chunkGCK75D7Fcjs.toStripProfile.call(void 0, guide.author),
|
|
302
300
|
href: `/onboarding-guides/${guide.slug}`
|
|
303
301
|
}
|
|
304
302
|
),
|
|
305
303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
306
|
-
|
|
304
|
+
_chunkO5EHOJZDcjs.ArticleAuthorByline,
|
|
307
305
|
{
|
|
308
306
|
author: _nullishCoalesce(_optionalChain([guide, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
309
307
|
avatar: _optionalChain([guide, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -2,30 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UXU7Y5BH.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
useSelfFetch
|
|
12
|
-
} from "./chunk-RR6PY34K.js";
|
|
9
|
+
} from "./chunk-LGKMR7NZ.js";
|
|
13
10
|
import {
|
|
14
11
|
EntityTagBadges,
|
|
15
12
|
FilterPillRow,
|
|
16
13
|
LoadError,
|
|
17
14
|
PageShell,
|
|
18
15
|
RichMarkdownRenderer
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2P2M27EW.js";
|
|
20
17
|
import {
|
|
21
18
|
PageLayout
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GYAXV3MZ.js";
|
|
23
20
|
import {
|
|
24
21
|
EntityVideoSection,
|
|
25
22
|
VideoBitesStrip,
|
|
26
23
|
resolveContentHref,
|
|
27
24
|
useCaptions
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HXB7SEYG.js";
|
|
29
26
|
import {
|
|
30
27
|
useRouter,
|
|
31
28
|
useSearchParams
|
|
@@ -35,11 +32,12 @@ import {
|
|
|
35
32
|
OnboardingGuideCard,
|
|
36
33
|
OnboardingGuideCardSkeleton,
|
|
37
34
|
toStripProfile,
|
|
35
|
+
useSelfFetch,
|
|
38
36
|
useVideoWarmup
|
|
39
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NPSJE7J3.js";
|
|
40
38
|
import {
|
|
41
39
|
buildOgPlaceholderUrl
|
|
42
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FSQQZFVG.js";
|
|
43
41
|
import {
|
|
44
42
|
useChatRuntime
|
|
45
43
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -1,25 +1,33 @@
|
|
|
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
|
-
var _chunkZXCZYMN4cjs = require('./chunk-ZXCZYMN4.cjs');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
|
|
19
17
|
|
|
20
18
|
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkHJMSNOBTcjs = require('./chunk-HJMSNOBT.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
23
31
|
|
|
24
32
|
|
|
25
33
|
var _chunkWVOTC7HWcjs = require('./chunk-WVOTC7HW.cjs');
|
|
@@ -29,7 +37,8 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
29
37
|
|
|
30
38
|
|
|
31
39
|
|
|
32
|
-
|
|
40
|
+
|
|
41
|
+
var _chunkGCK75D7Fcjs = require('./chunk-GCK75D7F.cjs');
|
|
33
42
|
|
|
34
43
|
|
|
35
44
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
@@ -61,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
61
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
62
71
|
"div",
|
|
63
72
|
{
|
|
64
|
-
id:
|
|
73
|
+
id: _chunkHJMSNOBTcjs.faqItemAnchor.call(void 0, item.id),
|
|
65
74
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
66
75
|
children: [
|
|
67
76
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -109,6 +118,54 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
109
118
|
}) });
|
|
110
119
|
}
|
|
111
120
|
|
|
121
|
+
// src/components/faq/faq-ask-card.tsx
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
var DEFAULT_ASK_CARD = {
|
|
125
|
+
title: "Still deciding?",
|
|
126
|
+
description: "{assistant} answers from our docs and customer stories."
|
|
127
|
+
};
|
|
128
|
+
var PICK_ROOT_MARGIN = "600px";
|
|
129
|
+
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
|
+
function faqAskCardShown(assistant) {
|
|
131
|
+
return _chunkHJMSNOBTcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
|
+
}
|
|
133
|
+
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
|
+
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
|
+
const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
|
+
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
|
+
if (inView && !reached) setReached(true);
|
|
138
|
+
const shownElsewhere = _chunkHJMSNOBTcjs.useShownAskPromptIds.call(void 0, );
|
|
139
|
+
const excluded = exclude === void 0 ? shownElsewhere : exclude;
|
|
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
|
+
topic,
|
|
143
|
+
count: slots,
|
|
144
|
+
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
|
+
enabled: reached && excluded !== null
|
|
146
|
+
});
|
|
147
|
+
const open = _chunkHJMSNOBTcjs.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
|
+
_chunkHJMSNOBTcjs.AskCard,
|
|
154
|
+
{
|
|
155
|
+
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
156
|
+
description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
|
|
157
|
+
prompts,
|
|
158
|
+
count: supported ? slots : 0,
|
|
159
|
+
loading: isLoading,
|
|
160
|
+
source: assistant.source,
|
|
161
|
+
label: name,
|
|
162
|
+
icon: assistant.icon,
|
|
163
|
+
onOpen: open,
|
|
164
|
+
onAsk: (prompt) => _optionalChain([assistant, 'access', _8 => _8.onAsk, 'optionalCall', _9 => _9({ promptId: prompt.id, topic })])
|
|
165
|
+
}
|
|
166
|
+
) }) });
|
|
167
|
+
}
|
|
168
|
+
|
|
112
169
|
// src/components/faq/json-ld.ts
|
|
113
170
|
var DEFAULT_NAME = "Frequently Asked Questions";
|
|
114
171
|
var DEFAULT_DESCRIPTION = "Answers to common questions.";
|
|
@@ -139,14 +196,14 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
139
196
|
|
|
140
197
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
141
198
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
142
|
-
return
|
|
199
|
+
return _chunkGCK75D7Fcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
143
200
|
}
|
|
144
201
|
function groupFaqsBySection(faqs) {
|
|
145
202
|
const byName = /* @__PURE__ */ new Map();
|
|
146
203
|
let uncategorized = null;
|
|
147
204
|
for (const faq of faqs) {
|
|
148
205
|
const item = { id: faq.id, question: faq.question, answer: faq.answer };
|
|
149
|
-
const name = _optionalChain([faq, 'access',
|
|
206
|
+
const name = _optionalChain([faq, 'access', _10 => _10.section, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]);
|
|
150
207
|
if (!name) {
|
|
151
208
|
if (!uncategorized) uncategorized = { section: null, slug: null, items: [] };
|
|
152
209
|
uncategorized.items.push(item);
|
|
@@ -154,7 +211,7 @@ function groupFaqsBySection(faqs) {
|
|
|
154
211
|
}
|
|
155
212
|
let group = byName.get(name);
|
|
156
213
|
if (!group) {
|
|
157
|
-
group = { section: name, slug:
|
|
214
|
+
group = { section: name, slug: _chunkHJMSNOBTcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
158
215
|
byName.set(name, group);
|
|
159
216
|
}
|
|
160
217
|
group.items.push(item);
|
|
@@ -173,7 +230,7 @@ function GroupedFaqList({
|
|
|
173
230
|
}) {
|
|
174
231
|
const CategoryHeading = categoryHeadingAs;
|
|
175
232
|
const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
|
|
176
|
-
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access',
|
|
233
|
+
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _13 => _13[0], 'optionalAccess', _14 => _14.slug]), () => ( null)));
|
|
177
234
|
const slugKey = navGroups.map((g) => g.slug).join("|");
|
|
178
235
|
const navGroupsRef = _react.useRef.call(void 0, navGroups);
|
|
179
236
|
_react.useEffect.call(void 0, () => {
|
|
@@ -199,7 +256,7 @@ function GroupedFaqList({
|
|
|
199
256
|
}
|
|
200
257
|
if (bestId) setActiveSlug(bestId);
|
|
201
258
|
},
|
|
202
|
-
{ rootMargin: `-${
|
|
259
|
+
{ rootMargin: `-${_chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
203
260
|
);
|
|
204
261
|
for (const group of navGroupsRef.current) {
|
|
205
262
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -209,13 +266,13 @@ function GroupedFaqList({
|
|
|
209
266
|
}, [slugKey]);
|
|
210
267
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
211
268
|
_react.useEffect.call(void 0, () => {
|
|
212
|
-
const refresh = () => setHashTarget(
|
|
269
|
+
const refresh = () => setHashTarget(_chunkHJMSNOBTcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
213
270
|
refresh();
|
|
214
271
|
window.addEventListener("hashchange", refresh);
|
|
215
272
|
return () => window.removeEventListener("hashchange", refresh);
|
|
216
273
|
}, []);
|
|
217
274
|
const defaultOpenByGroupKey = _react.useMemo.call(void 0, () => {
|
|
218
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
275
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _15 => _15.kind]) !== "item") return null;
|
|
219
276
|
const targetId = hashTarget.rawId;
|
|
220
277
|
const result = /* @__PURE__ */ new Map();
|
|
221
278
|
for (const group of groups) {
|
|
@@ -224,18 +281,18 @@ function GroupedFaqList({
|
|
|
224
281
|
}
|
|
225
282
|
return result.size > 0 ? result : null;
|
|
226
283
|
}, [groups, hashTarget]);
|
|
227
|
-
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess',
|
|
228
|
-
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess',
|
|
229
|
-
|
|
284
|
+
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _16 => _16.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
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
|
+
_chunk4LY6R4TNcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX });
|
|
230
287
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
231
288
|
if (pillSyncedHash !== hashTarget) {
|
|
232
289
|
setPillSyncedHash(hashTarget);
|
|
233
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
290
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _19 => _19.kind]) === "section") setActiveSlug(hashTarget.slug);
|
|
234
291
|
}
|
|
235
292
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
236
293
|
e.preventDefault();
|
|
237
|
-
|
|
238
|
-
headerOffset:
|
|
294
|
+
_chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
295
|
+
headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX,
|
|
239
296
|
history: "replace"
|
|
240
297
|
});
|
|
241
298
|
}, []);
|
|
@@ -259,12 +316,12 @@ function GroupedFaqList({
|
|
|
259
316
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
260
317
|
const key = groupKey(group);
|
|
261
318
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
262
|
-
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 }),
|
|
263
320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
321
|
FaqAccordion,
|
|
265
322
|
{
|
|
266
323
|
items: group.items,
|
|
267
|
-
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess',
|
|
324
|
+
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _20 => _20.get, 'call', _21 => _21(key)])
|
|
268
325
|
},
|
|
269
326
|
`${key}:${accordionKeySuffix}`
|
|
270
327
|
)
|
|
@@ -304,17 +361,21 @@ function FaqSection({
|
|
|
304
361
|
className,
|
|
305
362
|
minResults,
|
|
306
363
|
apiBaseUrl = "",
|
|
307
|
-
aside
|
|
364
|
+
aside: asideProp,
|
|
365
|
+
ask
|
|
308
366
|
}) {
|
|
367
|
+
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
368
|
+
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _22 => _22.topic]) || entityType;
|
|
369
|
+
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
|
|
309
370
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
310
371
|
const initialData = _react.useMemo.call(void 0,
|
|
311
372
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
312
373
|
[initialFaqs]
|
|
313
374
|
);
|
|
314
|
-
const { data, isLoading, error } =
|
|
315
|
-
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
375
|
+
const { data, isLoading, error } = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
376
|
+
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _24 => _24.faqs])]);
|
|
316
377
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
317
|
-
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;
|
|
318
379
|
if (error) return null;
|
|
319
380
|
if (!isLoading && faqs.length === 0) return null;
|
|
320
381
|
if (isLoading && faqs.length === 0) {
|
|
@@ -357,14 +418,15 @@ function FaqDocumentPage({
|
|
|
357
418
|
entityType,
|
|
358
419
|
entityId,
|
|
359
420
|
minResults,
|
|
421
|
+
ask,
|
|
360
422
|
shell = true
|
|
361
423
|
}) {
|
|
362
424
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
363
425
|
const backCfg = backButton === false ? void 0 : {
|
|
364
|
-
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
365
|
-
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
426
|
+
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.label]), () => ( "Back to home")),
|
|
427
|
+
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.href]), () => ( "/")))
|
|
366
428
|
};
|
|
367
|
-
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,
|
|
368
430
|
FaqSection,
|
|
369
431
|
{
|
|
370
432
|
initialFaqs,
|
|
@@ -374,14 +436,16 @@ function FaqDocumentPage({
|
|
|
374
436
|
apiBaseUrl,
|
|
375
437
|
entityType,
|
|
376
438
|
entityId,
|
|
377
|
-
minResults
|
|
439
|
+
minResults,
|
|
440
|
+
ask
|
|
378
441
|
}
|
|
379
442
|
) });
|
|
380
|
-
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 });
|
|
381
444
|
}
|
|
382
445
|
|
|
383
446
|
|
|
384
447
|
|
|
385
448
|
|
|
386
449
|
|
|
387
|
-
|
|
450
|
+
|
|
451
|
+
exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.FaqSection = FaqSection; exports.FaqDocumentPage = FaqDocumentPage;
|