@flamingo-stack/openframe-frontend-core 0.0.810 → 0.0.812
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/{case-study-card-MEWJNF4N.cjs → case-study-card-3XLKCGLV.cjs} +7 -7
- package/dist/{chunk-CLMUD56S.cjs → chunk-2IZHRVKD.cjs} +26 -26
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-TOWVMBAP.cjs → chunk-4ZTGCCNI.cjs} +17 -17
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-GAHXURKJ.cjs → chunk-5QLDHPPU.cjs} +2 -2
- package/dist/{chunk-PIKHEBG5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-5MTYKS2Q.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-ZXBRPQND.cjs → chunk-7HNZHENA.cjs} +17 -17
- package/dist/{chunk-4W77VLQV.cjs → chunk-7Q2PFKU3.cjs} +10 -10
- package/dist/{chunk-KVJKKVB3.cjs → chunk-7TBXHZLB.cjs} +9 -9
- package/dist/{chunk-VXAKQRV7.cjs → chunk-APOMNC7H.cjs} +5 -5
- package/dist/{chunk-OJZBZH56.cjs → chunk-CNTBGJA7.cjs} +3 -3
- package/dist/{chunk-TUZV2ZQY.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-FLW2VL5W.cjs → chunk-CUDJP7R7.cjs} +24 -24
- package/dist/{chunk-B6DIM5JG.cjs → chunk-D2EPUQ35.cjs} +6 -6
- package/dist/{chunk-MSAXZRXZ.cjs → chunk-D322VUSH.cjs} +622 -621
- package/dist/{chunk-TOTR2WMH.cjs → chunk-DA2TWDGJ.cjs} +8 -8
- package/dist/{chunk-JLKGLPDC.cjs → chunk-E64HJMY6.cjs} +20 -20
- package/dist/{chunk-X2JSCOOR.cjs → chunk-EPMAMFQE.cjs} +100 -100
- package/dist/{chunk-MAQFG62O.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-7PNRXJX2.cjs → chunk-FX35L4Y6.cjs} +3 -3
- package/dist/{chunk-5GJM7VRR.cjs → chunk-GI3MMBP3.cjs} +91 -26
- package/dist/{chunk-GG36TCKP.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-2C63MX75.cjs → chunk-JMRO7CK2.cjs} +23 -23
- package/dist/{chunk-F26COFTW.cjs → chunk-K7IX2NAG.cjs} +89 -89
- package/dist/{chunk-V4FXUIMH.cjs → chunk-LC65AC6M.cjs} +4 -4
- package/dist/{chunk-AQXKXZWB.cjs → chunk-MG3HJIGG.cjs} +4 -4
- package/dist/{chunk-ETI7OMPU.cjs → chunk-NEDFRRLM.cjs} +71 -71
- package/dist/{chunk-RKNCNL6K.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-3FBXQSSC.cjs → chunk-PQ76VC2P.cjs} +865 -671
- package/dist/{chunk-R2ABQG2T.cjs → chunk-RSLLS6C4.cjs} +53 -53
- package/dist/{chunk-PRCGRDHV.cjs → chunk-SC3I3YWM.cjs} +18 -18
- package/dist/{chunk-NG3RKTQU.cjs → chunk-SFUNXMY3.cjs} +8 -8
- package/dist/{chunk-J4QORJMC.cjs → chunk-TCMUVY3M.cjs} +113 -113
- package/dist/{chunk-ML3DG4SS.cjs → chunk-TS4PKCG3.cjs} +5 -5
- package/dist/{chunk-TGOJHOQR.cjs → chunk-U2MHQBL4.cjs} +3 -3
- package/dist/{chunk-EKDLVUEA.cjs → chunk-VEN6MGNX.cjs} +50 -50
- package/dist/{chunk-FCFYZIOY.cjs → chunk-VPYGK4AV.cjs} +22 -22
- package/dist/{chunk-I3RJLXEL.cjs → chunk-VT2ACO3Z.cjs} +159 -159
- package/dist/{chunk-FRS2VO22.cjs → chunk-VYLBW6ZV.cjs} +41 -41
- package/dist/{chunk-RPBOWCME.cjs → chunk-WFJDKP2Q.cjs} +17 -17
- package/dist/{chunk-CZWQCYKV.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-VHX4A4SA.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-SZHDXXMK.cjs → chunk-YSDB6HGQ.cjs} +3 -3
- package/dist/{chunk-TT64NRFU.cjs → chunk-ZFUNSXSH.cjs} +7 -7
- package/dist/{cloud-tenants-QTASS5KP.cjs → cloud-tenants-CW3I7AIM.cjs} +27 -27
- package/dist/components/case-studies/index.cjs +43 -43
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -1
- package/dist/components/chat/index.cjs +21 -21
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +28 -28
- package/dist/components/docs/index.cjs +31 -31
- package/dist/components/embeds/index.cjs +28 -28
- package/dist/components/faq/index.cjs +29 -29
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +27 -27
- package/dist/components/help-center-pages/index.cjs +133 -133
- package/dist/components/index.cjs +98 -98
- package/dist/components/meeting-scheduler/index.cjs +143 -97
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/product-demo/index.cjs +38 -38
- package/dist/components/related-content/index.cjs +16 -16
- package/dist/components/tickets/index.cjs +34 -34
- package/dist/components/ui/index.cjs +27 -27
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +6 -7
- package/dist/components/ui/markdown/engine.d.ts +7 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +12 -3
- package/dist/components/ui/markdown/external-media-notice.d.ts +33 -0
- package/dist/components/ui/markdown/external-media-notice.d.ts.map +1 -0
- package/dist/components/ui/markdown/external-media-notice.js +56 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +24 -2
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -1
- package/dist/components/ui/markdown/mermaid-diagram.js +66 -6
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +4 -4
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +2 -1
- package/dist/components/ui/markdown/sanitize.d.ts +28 -3
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -1
- package/dist/components/ui/markdown/sanitize.js +84 -12
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +3 -2
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/{devices-KPMQI57Y.cjs → devices-KKRAB4Q2.cjs} +28 -28
- package/dist/{embeddable-chat-LB7NDFVQ.cjs → embeddable-chat-5UO66U4F.cjs} +93 -93
- package/dist/hooks/index.cjs +13 -13
- package/dist/index.cjs +33 -33
- package/dist/{knowledge-JWGBY3ZJ.cjs → knowledge-Z2PTGBA3.cjs} +28 -28
- package/dist/{logs-QENTXKWY.cjs → logs-6T5VK2TY.cjs} +35 -35
- package/dist/{policies-2HXFZ2EL.cjs → policies-JPIC5YDE.cjs} +31 -31
- package/dist/{remote-session-LMUFV2RZ.cjs → remote-session-VBVUMIUP.cjs} +12 -12
- package/dist/{scripts-TMXULK6L.cjs → scripts-BSYJJFBQ.cjs} +34 -34
- package/dist/{software-update-H2LAEWDN.cjs → software-update-KVEYYORC.cjs} +31 -31
- package/dist/{tickets-board-QF5JNSH2.cjs → tickets-board-YRZ54JJS.cjs} +16 -16
- package/dist/utils/app-origins.d.ts +41 -0
- package/dist/utils/app-origins.d.ts.map +1 -0
- package/dist/utils/app-origins.js +51 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts +7 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts.map +1 -0
- package/dist/utils/embed-auth-adapter-registry.js +34 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +6 -19
- package/dist/utils/index.cjs +32 -12
- package/dist/{video-file-player-2FMFCGXE.cjs → video-file-player-4QMVTOBE.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +12 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/ui/markdown/base-components.tsx +6 -7
- package/src/components/ui/markdown/engine.tsx +29 -5
- package/src/components/ui/markdown/external-media-notice.tsx +84 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +107 -5
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +11 -5
- package/src/components/ui/markdown/sanitize.ts +162 -15
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +6 -2
- package/src/utils/app-origins.ts +95 -0
- package/src/utils/embed-auth-adapter-registry.ts +49 -0
- package/src/utils/embed-authed-fetch.ts +7 -35
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkU2MHQBL4cjs = require('./chunk-U2MHQBL4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
@@ -38,7 +38,7 @@ var NAME_CLASS = "text-ods-text-primary text-h5";
|
|
|
38
38
|
var JOB_TITLE_CLASS = "text-body-sm mt-0.5 font-body text-ods-text-secondary";
|
|
39
39
|
var BIO_CLASS = "text-body-md mt-2 font-body leading-relaxed text-ods-text-secondary";
|
|
40
40
|
function formatDate(value) {
|
|
41
|
-
return
|
|
41
|
+
return _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, value, null, "long");
|
|
42
42
|
}
|
|
43
43
|
function ArticleAuthorByline({
|
|
44
44
|
author,
|
|
@@ -52,14 +52,14 @@ function ArticleAuthorByline({
|
|
|
52
52
|
proxyImageUrl,
|
|
53
53
|
className
|
|
54
54
|
}) {
|
|
55
|
-
const proxiedAvatar =
|
|
55
|
+
const proxiedAvatar = _chunkVT2ACO3Zcjs.useProxiedImageUrl.call(void 0, avatar, { proxyImageUrl });
|
|
56
56
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
57
57
|
if (loading && !author) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ArticleAuthorBylineSkeleton, { size, className });
|
|
58
58
|
if (!author) return null;
|
|
59
59
|
const avatarSizeClass = _chunk4WIJI4AKcjs.AVATAR_SIZE[BYLINE_AVATAR_SIZE[size]];
|
|
60
60
|
const avatarIconClass = size === "lg" ? "w-8 h-8" : "w-7 h-7";
|
|
61
61
|
const avatarDim = _chunk4WIJI4AKcjs.AVATAR_SIZE_PX[BYLINE_AVATAR_SIZE[size]];
|
|
62
|
-
const formattedBio =
|
|
62
|
+
const formattedBio = _chunkU2MHQBL4cjs.formatBioText.call(void 0, _nullishCoalesce(bio, () => ( null)));
|
|
63
63
|
const dateLabel = publishedAt ? formatDate(publishedAt) : "";
|
|
64
64
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, BYLINE_FRAME_CLASS, className), children: [
|
|
65
65
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0", children: avatar ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5,7 +5,7 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
@@ -256,7 +256,7 @@ var disabledTagClasses = [
|
|
|
256
256
|
];
|
|
257
257
|
function TagLabel({ label, labelClassName }) {
|
|
258
258
|
const isString = typeof label === "string";
|
|
259
|
-
const { ref, isTruncated } =
|
|
259
|
+
const { ref, isTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, isString ? label : null);
|
|
260
260
|
if (!isString) {
|
|
261
261
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate", labelClassName), children: label });
|
|
262
262
|
}
|
|
@@ -875,7 +875,7 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
875
875
|
}, ref) => {
|
|
876
876
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
877
877
|
const held = inScope || !!loading;
|
|
878
|
-
const authedSrc =
|
|
878
|
+
const authedSrc = _chunkLC65AC6Mcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
879
879
|
if (held) {
|
|
880
880
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
881
|
SquareAvatarSkeleton,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkZFUNSXSHcjs = require('./chunk-ZFUNSXSH.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -38,10 +38,10 @@ var _chunkTT64NRFUcjs = require('./chunk-TT64NRFU.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk4IU462LRcjs = require('./chunk-4IU462LR.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
@@ -327,7 +327,7 @@ function useOnboardingState(storageKey = "openframe-onboarding-state") {
|
|
|
327
327
|
const [, forceUpdate] = _react.useState.call(void 0, 0);
|
|
328
328
|
_react.useEffect.call(void 0, () => {
|
|
329
329
|
const handleStorageUpdate = (event) => {
|
|
330
|
-
const detail =
|
|
330
|
+
const detail = _chunkAPOMNC7Hcjs.readLocalStorageUpdateDetail.call(void 0, event);
|
|
331
331
|
if (_optionalChain([detail, 'optionalAccess', _14 => _14.key]) !== storageKey) return;
|
|
332
332
|
const newState = loadOnboardingState(storageKey);
|
|
333
333
|
setState(newState);
|
|
@@ -418,7 +418,7 @@ function useSearch(config) {
|
|
|
418
418
|
searchFnRef.current = searchFn;
|
|
419
419
|
mapResultRef.current = mapResult;
|
|
420
420
|
});
|
|
421
|
-
const debouncedQuery =
|
|
421
|
+
const debouncedQuery = _chunkCNTBGJA7cjs.useDebounce.call(void 0, query, debounceMs);
|
|
422
422
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
423
423
|
setResults(NO_RESULTS);
|
|
424
424
|
setError(null);
|
|
@@ -808,7 +808,7 @@ function usePlatformConfig() {
|
|
|
808
808
|
label: platform.label
|
|
809
809
|
}))
|
|
810
810
|
];
|
|
811
|
-
const selectableOptions =
|
|
811
|
+
const selectableOptions = _chunkZFUNSXSHcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
812
812
|
return {
|
|
813
813
|
platforms,
|
|
814
814
|
platformOptions,
|
|
@@ -988,7 +988,7 @@ function CommandApprovalToast({
|
|
|
988
988
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
989
989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 w-full items-center gap-2 border-b border-ods-border bg-ods-card px-3 py-2", children: [
|
|
990
990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
991
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
991
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4IU462LRcjs.ToolIcon, { toolType, size: 16 }) : null
|
|
992
992
|
] }),
|
|
993
993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
994
994
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
@@ -1156,7 +1156,7 @@ function useContactSubmission(options = {}) {
|
|
|
1156
1156
|
if (isSubmitting) return;
|
|
1157
1157
|
setIsSubmitting(true);
|
|
1158
1158
|
try {
|
|
1159
|
-
const response = await
|
|
1159
|
+
const response = await _chunkFX35L4Y6cjs.contentFetch.call(void 0, contactUrl, {
|
|
1160
1160
|
method: "POST",
|
|
1161
1161
|
headers: { "Content-Type": "application/json" },
|
|
1162
1162
|
body: JSON.stringify({
|
|
@@ -1166,7 +1166,7 @@ function useContactSubmission(options = {}) {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
if (!response.ok) {
|
|
1168
1168
|
const failure = await response.json().catch(() => null);
|
|
1169
|
-
throw new Error(
|
|
1169
|
+
throw new Error(_chunkFX35L4Y6cjs.apiErrorMessage.call(void 0, failure, "Failed to submit contact form"));
|
|
1170
1170
|
}
|
|
1171
1171
|
setIsSuccess(true);
|
|
1172
1172
|
const message = successToastMessage ? `Thank you! Your message has been sent. ${successToastMessage}` : "Thank you! Your message has been sent successfully.";
|
|
@@ -1276,7 +1276,7 @@ function load(endpoint, force = false) {
|
|
|
1276
1276
|
const entry = entryFor(endpoint);
|
|
1277
1277
|
if (entry.request || entry.state.data && !force) return;
|
|
1278
1278
|
publish(endpoint, { data: entry.state.data, isLoading: true, error: false });
|
|
1279
|
-
entry.request =
|
|
1279
|
+
entry.request = _chunkFX35L4Y6cjs.contentFetch.call(void 0, endpoint).then(async (response) => {
|
|
1280
1280
|
if (!response.ok) throw new Error(`Request failed (${response.status})`);
|
|
1281
1281
|
publish(endpoint, { data: await response.json(), isLoading: false, error: false });
|
|
1282
1282
|
}).catch(() => publish(endpoint, { data: entry.state.data, isLoading: false, error: true })).finally(() => {
|
|
@@ -1324,10 +1324,10 @@ function useDownloads({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function useVisitorDesktopDownload(options = {}) {
|
|
1326
1326
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1327
|
-
const visitor =
|
|
1327
|
+
const visitor = _chunkZFUNSXSHcjs.useVisitorOs.call(void 0, );
|
|
1328
1328
|
const { data, error } = useDownloads(options);
|
|
1329
1329
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1330
|
-
const os =
|
|
1330
|
+
const os = _chunkZFUNSXSHcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1331
1331
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1332
1332
|
return { known: true, download };
|
|
1333
1333
|
}
|
|
@@ -2577,7 +2577,7 @@ function useScenarioPlayer({
|
|
|
2577
2577
|
startAtEnd = false,
|
|
2578
2578
|
emptyFirstStep = true
|
|
2579
2579
|
}) {
|
|
2580
|
-
const auto =
|
|
2580
|
+
const auto = _chunkCNTBGJA7cjs.useAutoplay.call(void 0, enabled);
|
|
2581
2581
|
const { reducedMotion, held, holdProps, release } = auto;
|
|
2582
2582
|
const [scenario, setScenario] = _react.useState.call(void 0, initialScenario);
|
|
2583
2583
|
const [rawStep, setRawStep] = _react.useState.call(void 0, startAtEnd ? Number.MAX_SAFE_INTEGER : 0);
|
|
@@ -2629,7 +2629,7 @@ function useAccessCodeIntegration() {
|
|
|
2629
2629
|
const validate = async (email, code) => {
|
|
2630
2630
|
setIsValidating(true);
|
|
2631
2631
|
try {
|
|
2632
|
-
return await
|
|
2632
|
+
return await _chunkZFUNSXSHcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
setIsValidating(false);
|
|
2635
2635
|
}
|
|
@@ -2637,7 +2637,7 @@ function useAccessCodeIntegration() {
|
|
|
2637
2637
|
const consume = async (email, code) => {
|
|
2638
2638
|
setIsConsuming(true);
|
|
2639
2639
|
try {
|
|
2640
|
-
return await
|
|
2640
|
+
return await _chunkZFUNSXSHcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2641
2641
|
} finally {
|
|
2642
2642
|
setIsConsuming(false);
|
|
2643
2643
|
}
|
|
@@ -2646,7 +2646,7 @@ function useAccessCodeIntegration() {
|
|
|
2646
2646
|
setIsValidating(true);
|
|
2647
2647
|
setIsConsuming(true);
|
|
2648
2648
|
try {
|
|
2649
|
-
return await
|
|
2649
|
+
return await _chunkZFUNSXSHcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2650
2650
|
} finally {
|
|
2651
2651
|
setIsValidating(false);
|
|
2652
2652
|
setIsConsuming(false);
|
|
@@ -2676,7 +2676,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
function useClaudeMirrorSrc(url) {
|
|
2678
2678
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2679
|
-
const mirrorPath =
|
|
2679
|
+
const mirrorPath = _chunkZFUNSXSHcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2680
2680
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2681
2681
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2682
2682
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2707,7 +2707,7 @@ function useClaudeMirrorSrc(url) {
|
|
|
2707
2707
|
|
|
2708
2708
|
// src/hooks/use-location-hash.ts
|
|
2709
2709
|
|
|
2710
|
-
var HASH_EVENTS = ["hashchange", "popstate",
|
|
2710
|
+
var HASH_EVENTS = ["hashchange", "popstate", _chunkCNTBGJA7cjs.LOCATION_HASH_SYNC_EVENT];
|
|
2711
2711
|
function subscribe(onChange) {
|
|
2712
2712
|
for (const event of HASH_EVENTS) window.addEventListener(event, onChange);
|
|
2713
2713
|
return () => {
|
|
@@ -2715,7 +2715,7 @@ function subscribe(onChange) {
|
|
|
2715
2715
|
};
|
|
2716
2716
|
}
|
|
2717
2717
|
function readHash() {
|
|
2718
|
-
const raw =
|
|
2718
|
+
const raw = _chunkCNTBGJA7cjs.normalizeHashFragment.call(void 0, window.location.hash).replace(/^#/, "");
|
|
2719
2719
|
try {
|
|
2720
2720
|
return decodeURIComponent(raw);
|
|
2721
2721
|
} catch (e7) {
|
|
@@ -2742,16 +2742,16 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
};
|
|
2744
2744
|
const tryScrollToHash = () => {
|
|
2745
|
-
if (
|
|
2746
|
-
const hash =
|
|
2745
|
+
if (_chunkCNTBGJA7cjs.isScrollSyncedHash.call(void 0, )) return;
|
|
2746
|
+
const hash = _chunkCNTBGJA7cjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2747
2747
|
if (!hash) return;
|
|
2748
2748
|
cancelPoll();
|
|
2749
2749
|
let frames = 0;
|
|
2750
2750
|
const tick = () => {
|
|
2751
|
-
const el =
|
|
2751
|
+
const el = _chunkCNTBGJA7cjs.getHashTargetElement.call(void 0, hash);
|
|
2752
2752
|
if (el) {
|
|
2753
2753
|
rafId = null;
|
|
2754
|
-
|
|
2754
|
+
_chunkCNTBGJA7cjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2755
2755
|
return;
|
|
2756
2756
|
}
|
|
2757
2757
|
if (frames++ < MAX_POLL_FRAMES) {
|
|
@@ -2779,8 +2779,8 @@ function useHumanitySignals() {
|
|
|
2779
2779
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2780
2780
|
const getSignals = _react.useCallback.call(void 0,
|
|
2781
2781
|
() => ({
|
|
2782
|
-
[
|
|
2783
|
-
[
|
|
2782
|
+
[_chunkZFUNSXSHcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2783
|
+
[_chunkZFUNSXSHcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2784
2784
|
}),
|
|
2785
2785
|
[]
|
|
2786
2786
|
);
|
|
@@ -2788,7 +2788,7 @@ function useHumanitySignals() {
|
|
|
2788
2788
|
if (ref.current) ref.current.value = "";
|
|
2789
2789
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2790
2790
|
}, []);
|
|
2791
|
-
return { honeypotInputProps: { ref, name:
|
|
2791
|
+
return { honeypotInputProps: { ref, name: _chunkZFUNSXSHcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2792
2792
|
}
|
|
2793
2793
|
|
|
2794
2794
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2801,9 +2801,9 @@ function readLocalDraft(formId) {
|
|
|
2801
2801
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2802
2802
|
if (!raw) return null;
|
|
2803
2803
|
const parsed = JSON.parse(raw);
|
|
2804
|
-
if (!
|
|
2804
|
+
if (!_chunkZFUNSXSHcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2805
2805
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2806
|
-
return { attemptId: parsed.attemptId, values:
|
|
2806
|
+
return { attemptId: parsed.attemptId, values: _chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2807
2807
|
} catch (e8) {
|
|
2808
2808
|
return null;
|
|
2809
2809
|
}
|
|
@@ -2823,9 +2823,9 @@ function clearLocalDraft(formId) {
|
|
|
2823
2823
|
function completeFormRescue(form, attemptId) {
|
|
2824
2824
|
if (!form || typeof window === "undefined") return;
|
|
2825
2825
|
const local = readLocalDraft(form.id);
|
|
2826
|
-
|
|
2826
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2827
2827
|
form_id: form.id,
|
|
2828
|
-
attempt_id:
|
|
2828
|
+
attempt_id: _chunkZFUNSXSHcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2829
2829
|
});
|
|
2830
2830
|
clearLocalDraft(form.id);
|
|
2831
2831
|
}
|
|
@@ -2878,7 +2878,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2878
2878
|
...resumeTokenRef.current ? { resume_token: resumeTokenRef.current } : {}
|
|
2879
2879
|
};
|
|
2880
2880
|
try {
|
|
2881
|
-
void
|
|
2881
|
+
void _chunkFX35L4Y6cjs.contentFetch.call(void 0, draftsUrl, {
|
|
2882
2882
|
method: "POST",
|
|
2883
2883
|
headers: { "Content-Type": "application/json" },
|
|
2884
2884
|
body: JSON.stringify({ ...body, ..._nullishCoalesce(_optionalChain([getSignalsRef, 'access', _39 => _39.current, 'optionalCall', _40 => _40()]), () => ( {})) }),
|
|
@@ -2886,7 +2886,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2886
2886
|
}).catch(() => void 0);
|
|
2887
2887
|
} catch (e12) {
|
|
2888
2888
|
}
|
|
2889
|
-
|
|
2889
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2890
2890
|
form_id: formId,
|
|
2891
2891
|
attempt_id: attemptId(),
|
|
2892
2892
|
fields_filled: body.fields_filled,
|
|
@@ -2899,23 +2899,23 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2899
2899
|
_react.useEffect.call(void 0, () => {
|
|
2900
2900
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2901
2901
|
let cancelled = false;
|
|
2902
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2902
|
+
const token = new URLSearchParams(window.location.search).get(_chunkZFUNSXSHcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2903
2903
|
const restoreLocal = () => {
|
|
2904
2904
|
const local = readLocalDraft(formId);
|
|
2905
2905
|
if (!local) return;
|
|
2906
2906
|
attemptIdRef.current = local.attemptId;
|
|
2907
2907
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2908
2908
|
};
|
|
2909
|
-
if (
|
|
2910
|
-
|
|
2909
|
+
if (_chunkZFUNSXSHcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2910
|
+
_chunkFX35L4Y6cjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2911
2911
|
if (cancelled) return;
|
|
2912
2912
|
if (!data || data.form_id !== formId) {
|
|
2913
2913
|
restoreLocal();
|
|
2914
2914
|
return;
|
|
2915
2915
|
}
|
|
2916
2916
|
resumeTokenRef.current = token;
|
|
2917
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2918
|
-
|
|
2917
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2918
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2919
2919
|
}).catch(() => {
|
|
2920
2920
|
if (!cancelled) restoreLocal();
|
|
2921
2921
|
});
|
|
@@ -2935,7 +2935,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2935
2935
|
timerRef.current = null;
|
|
2936
2936
|
}
|
|
2937
2937
|
send(true);
|
|
2938
|
-
|
|
2938
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2939
2939
|
form_id: formId,
|
|
2940
2940
|
attempt_id: attemptId(),
|
|
2941
2941
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2959,22 +2959,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2959
2959
|
const names = fieldNamesRef.current;
|
|
2960
2960
|
const visible = {};
|
|
2961
2961
|
for (const name of names) visible[name] = values[name];
|
|
2962
|
-
const filled =
|
|
2962
|
+
const filled = _chunkZFUNSXSHcjs.filledRescueFields.call(void 0, visible, names);
|
|
2963
2963
|
if (!filled.length) return;
|
|
2964
2964
|
if (!startedRef.current) {
|
|
2965
2965
|
startedRef.current = true;
|
|
2966
|
-
|
|
2966
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2967
2967
|
}
|
|
2968
|
-
const clean =
|
|
2969
|
-
if (!leadCapturedRef.current &&
|
|
2968
|
+
const clean = _chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2969
|
+
if (!leadCapturedRef.current && _chunkZFUNSXSHcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2970
2970
|
leadCapturedRef.current = true;
|
|
2971
|
-
|
|
2971
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2972
2972
|
}
|
|
2973
2973
|
latestRef.current = {
|
|
2974
2974
|
values: clean,
|
|
2975
2975
|
fields_filled: filled,
|
|
2976
|
-
last_field:
|
|
2977
|
-
completion_pct:
|
|
2976
|
+
last_field: _chunkZFUNSXSHcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2977
|
+
completion_pct: _chunkZFUNSXSHcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2978
2978
|
};
|
|
2979
2979
|
dirtyRef.current = true;
|
|
2980
2980
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2982,15 +2982,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2982
2982
|
timerRef.current = setTimeout(() => {
|
|
2983
2983
|
timerRef.current = null;
|
|
2984
2984
|
send(false);
|
|
2985
|
-
},
|
|
2985
|
+
}, _chunkZFUNSXSHcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2986
2986
|
},
|
|
2987
2987
|
[attemptId, formId, send]
|
|
2988
2988
|
);
|
|
2989
2989
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2990
2990
|
if (!formId) return {};
|
|
2991
2991
|
return {
|
|
2992
|
-
[
|
|
2993
|
-
...resumeTokenRef.current ? { [
|
|
2992
|
+
[_chunkZFUNSXSHcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2993
|
+
...resumeTokenRef.current ? { [_chunkZFUNSXSHcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2994
2994
|
};
|
|
2995
2995
|
}, [attemptId, formId]);
|
|
2996
2996
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunkVEN6MGNXcjs = require('./chunk-VEN6MGNX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTCMUVY3Mcjs = require('./chunk-TCMUVY3M.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPQ76VC2Pcjs = require('./chunk-PQ76VC2P.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,13 +25,13 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4ZTGCCNIcjs = require('./chunk-4ZTGCCNI.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkLKQ33CMYcjs = require('./chunk-LKQ33CMY.cjs');
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunkPQ76VC2Pcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkTCMUVY3Mcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
|
-
const { ref, inView } =
|
|
146
|
+
const { ref, inView } = _chunkCNTBGJA7cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkTCMUVY3Mcjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunk4ZTGCCNIcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunkPQ76VC2Pcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -314,7 +314,7 @@ function GroupedFaqList({
|
|
|
314
314
|
}
|
|
315
315
|
if (bestId) setActiveSlug(bestId);
|
|
316
316
|
},
|
|
317
|
-
{ rootMargin: `-${
|
|
317
|
+
{ rootMargin: `-${_chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
318
318
|
);
|
|
319
319
|
for (const group of navGroupsRef.current) {
|
|
320
320
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunkPQ76VC2Pcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -341,7 +341,7 @@ function GroupedFaqList({
|
|
|
341
341
|
}, [groups, hashTarget]);
|
|
342
342
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
343
343
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
344
|
-
|
|
344
|
+
_chunkVEN6MGNXcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX });
|
|
345
345
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
346
346
|
if (pillSyncedHash !== hashTarget) {
|
|
347
347
|
setPillSyncedHash(hashTarget);
|
|
@@ -349,8 +349,8 @@ function GroupedFaqList({
|
|
|
349
349
|
}
|
|
350
350
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
351
351
|
e.preventDefault();
|
|
352
|
-
|
|
353
|
-
headerOffset:
|
|
352
|
+
_chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
353
|
+
headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX,
|
|
354
354
|
history: "replace"
|
|
355
355
|
});
|
|
356
356
|
}, []);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunk4ZTGCCNIcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
@@ -466,7 +466,7 @@ function FaqSection({
|
|
|
466
466
|
"script",
|
|
467
467
|
{
|
|
468
468
|
type: "application/ld+json",
|
|
469
|
-
dangerouslySetInnerHTML: { __html:
|
|
469
|
+
dangerouslySetInnerHTML: { __html: _chunkFX35L4Y6cjs.serializeJsonLd.call(void 0, schema) }
|
|
470
470
|
}
|
|
471
471
|
)
|
|
472
472
|
] });
|