@flamingo-stack/openframe-frontend-core 0.0.773 → 0.0.774
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-7P2QXBWE.cjs → chunk-4JZC624S.cjs} +226 -206
- package/dist/{chunk-JJNOAYD4.cjs → chunk-5AOKXXHV.cjs} +4 -4
- package/dist/{chunk-MT5Z2LSV.cjs → chunk-5Z3XL2VU.cjs} +72 -72
- package/dist/{chunk-BPAYT72L.cjs → chunk-BTVO676B.cjs} +148 -131
- package/dist/{chunk-TZ4GKUO2.cjs → chunk-CZIMISAR.cjs} +5 -1
- package/dist/{chunk-YSKX42LW.cjs → chunk-E5E7IE7X.cjs} +12 -12
- package/dist/{chunk-XVFM6SJA.cjs → chunk-E64HPPRH.cjs} +31 -31
- package/dist/{chunk-CTRJNTYU.cjs → chunk-EQBJHJS7.cjs} +2 -2
- package/dist/{chunk-BMFU2CUL.cjs → chunk-HTSRAQVG.cjs} +4 -4
- package/dist/{chunk-NRFNZ35Z.cjs → chunk-IQQ3SLUK.cjs} +19 -19
- package/dist/{chunk-RNLRS4ID.cjs → chunk-KKAY6GPU.cjs} +2 -2
- package/dist/{chunk-ILZEXCJH.cjs → chunk-KWZ62LPZ.cjs} +124 -104
- package/dist/{chunk-KDMWXXLE.cjs → chunk-L5CKY5WA.cjs} +15 -15
- package/dist/{chunk-6LLF2QCS.cjs → chunk-LEVA5WO3.cjs} +39 -39
- package/dist/{chunk-CW3ML76U.cjs → chunk-NTPX5GXI.cjs} +4 -0
- package/dist/{chunk-VW2QQKQ6.cjs → chunk-NX7P2T2U.cjs} +15 -15
- package/dist/{chunk-7J4YWDT6.cjs → chunk-Q6B2DC65.cjs} +3 -3
- package/dist/{chunk-NPCFVTA2.cjs → chunk-Q7EXOVMT.cjs} +31 -31
- package/dist/{chunk-2A56MLLL.cjs → chunk-SWEPHSIP.cjs} +4 -4
- package/dist/{chunk-KSCEAIBS.cjs → chunk-TOPGBOCN.cjs} +2 -2
- package/dist/{chunk-I4ZVMNHO.cjs → chunk-TTQHSSHF.cjs} +6 -6
- package/dist/{chunk-FPCGKH5K.cjs → chunk-TUXPFF4P.cjs} +31 -29
- package/dist/{chunk-42YLIZFD.cjs → chunk-U332FL4C.cjs} +22 -22
- package/dist/{chunk-3FREBLAJ.cjs → chunk-UAKXZ2KD.cjs} +47 -45
- package/dist/{chunk-SE76YGR3.cjs → chunk-USMR73ND.cjs} +4 -4
- package/dist/{chunk-X5Z4HRH7.cjs → chunk-VISK6LKE.cjs} +2 -2
- package/dist/{chunk-HEEK42BL.cjs → chunk-VWUQVJ2D.cjs} +81 -81
- package/dist/{chunk-5V7BIUGA.cjs → chunk-Y3EBUFX4.cjs} +92 -21
- package/dist/{chunk-5HBGBLJT.cjs → chunk-ZHGOXDA3.cjs} +63 -59
- package/dist/{cloud-tenants-EE5ULFOK.cjs → cloud-tenants-7RNZ6GHM.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/ask-prompts.js +28 -19
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +3 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +2 -0
- package/dist/components/chat/entity-cards/program-card.d.ts +6 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +19 -2
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +10 -4
- package/dist/components/chat/utils/ask-ai-events.d.ts +10 -0
- package/dist/components/chat/utils/ask-ai-events.d.ts.map +1 -1
- package/dist/components/chat/utils/ask-ai-events.js +21 -1
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +5 -2
- package/dist/components/features/video-shared.d.ts +2 -1
- package/dist/components/features/video-shared.d.ts.map +1 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +64 -13
- package/dist/components/help-center-pages/index.cjs +100 -100
- package/dist/components/index.cjs +63 -61
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/site-header.d.ts.map +1 -1
- package/dist/components/navigation/site-header.js +3 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/index.cjs +7 -6
- package/dist/components/related-content/index.d.ts +2 -1
- package/dist/components/related-content/index.d.ts.map +1 -1
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/related-content/related-content-section.d.ts +8 -10
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +11 -7
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/index.cjs +13 -11
- package/dist/components/ui/photo-wall.d.ts +7 -0
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +16 -2
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +9 -3
- package/dist/{devices-EBGGHEGR.cjs → devices-NNDBC6IH.cjs} +12 -12
- package/dist/{embeddable-chat-HCT4QV35.cjs → embeddable-chat-DI7ZZTBP.cjs} +75 -75
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/hooks/use-near-viewport.js +4 -0
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-5ZSMKKTL.cjs → knowledge-DPUMWQED.cjs} +12 -12
- package/dist/{logs-GUV3BMGC.cjs → logs-EE25MWYM.cjs} +19 -19
- package/dist/{policies-HPMTDOAS.cjs → policies-H5LPZWEM.cjs} +15 -15
- package/dist/{scripts-QYYKCIUW.cjs → scripts-YGO4LOES.cjs} +16 -16
- package/dist/{software-update-NC2KZKEI.cjs → software-update-5BEB62ZH.cjs} +14 -14
- package/dist/utils/content-ref-groups.d.ts +8 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.js +2 -0
- package/dist/utils/dismiss-cookie.d.ts +14 -0
- package/dist/utils/dismiss-cookie.d.ts.map +1 -1
- package/dist/utils/dismiss-cookie.js +4 -0
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/visitor-os.d.ts +9 -0
- package/dist/utils/visitor-os.d.ts.map +1 -1
- package/dist/utils/visitor-os.js +4 -0
- package/dist/{video-file-player-COXRF4M5.cjs → video-file-player-4TXA7BZF.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/ask-prompts.tsx +6 -1
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +4 -0
- package/src/components/chat/entity-cards/program-card.tsx +24 -2
- package/src/components/chat/index.ts +16 -9
- package/src/components/chat/utils/ask-ai-events.ts +26 -0
- package/src/components/features/video-hover-preview.tsx +46 -37
- package/src/components/features/video-shared.tsx +2 -1
- package/src/components/features/video.tsx +102 -19
- package/src/components/navigation/mingo-ai-button.tsx +2 -1
- package/src/components/navigation/site-header.tsx +3 -1
- package/src/components/related-content/index.ts +2 -1
- package/src/components/related-content/related-content-section.tsx +26 -12
- package/src/components/ui/photo-wall.tsx +24 -2
- package/src/components/ui/tab-navigation.tsx +18 -3
- package/src/hooks/use-near-viewport.ts +6 -0
- package/src/utils/content-ref-groups.ts +9 -0
- package/src/utils/dismiss-cookie.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/visitor-os.ts +12 -0
|
@@ -46,6 +46,9 @@ function usesCommandKey(os) {
|
|
|
46
46
|
function shortcutLabel(os, key) {
|
|
47
47
|
return usesCommandKey(os) ? `\u2318${key}` : `Ctrl ${key}`;
|
|
48
48
|
}
|
|
49
|
+
function desktopOsBeforePaintScript(attribute) {
|
|
50
|
+
return `(function(){try{var n=window.navigator,h=n.userAgentData&&n.userAgentData.platform,p=String(h||'').replace(/"/g,'').trim().toLowerCase(),t=(n.maxTouchPoints||0)>1,o=null,m=${JSON.stringify(HINT_PLATFORMS)};if(m[p])o=m[p];else{var u=n.userAgent||'';if(/iPhone|iPad|iPod/i.test(u))o='ios';else if(/Android/i.test(u))o='android';else if(/Windows NT|Win64|Win32/i.test(u))o='windows';else if(/Macintosh|Mac OS X/i.test(u))o='mac';else if(/Linux|X11|CrOS/i.test(u))o='linux'}if(o==='mac'&&t)o='ios';if(o==='mac'||o==='windows'||o==='linux')document.documentElement.setAttribute(${JSON.stringify(attribute)},o)}catch(e){}})();`;
|
|
51
|
+
}
|
|
49
52
|
|
|
50
53
|
// src/hooks/ui/use-visitor-os.ts
|
|
51
54
|
var _react = require('react');
|
|
@@ -512,4 +515,5 @@ function captureFormRescueEvent(event, properties) {
|
|
|
512
515
|
|
|
513
516
|
|
|
514
517
|
|
|
515
|
-
|
|
518
|
+
|
|
519
|
+
exports.DESKTOP_OSES = DESKTOP_OSES; exports.detectVisitorOs = detectVisitorOs; exports.desktopOsOf = desktopOsOf; exports.detectDesktopOs = detectDesktopOs; exports.usesCommandKey = usesCommandKey; exports.shortcutLabel = shortcutLabel; exports.desktopOsBeforePaintScript = desktopOsBeforePaintScript; exports.useVisitorOs = useVisitorOs; exports.platformIcons = platformIcons; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.toClaudeMirrorPath = toClaudeMirrorPath; exports.toClaudeEmbedUrl = toClaudeEmbedUrl; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.HUMANITY_SIGNAL_KEYS = HUMANITY_SIGNAL_KEYS; exports.isHumanitySignalKey = isHumanitySignalKey; exports.extractHumanitySignals = extractHumanitySignals; exports.findHoneypotCopySource = findHoneypotCopySource; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.defineRescueForm = defineRescueForm; exports.getRescueForm = getRescueForm; exports.listRescueForms = listRescueForms; exports.RESCUE_FORMS = RESCUE_FORMS; exports.FORM_RESCUE_VALUE_FIELDS = FORM_RESCUE_VALUE_FIELDS; exports.isExcludedRescueField = isExcludedRescueField; exports.FORM_RESCUE_MAX_VALUE_CHARS = FORM_RESCUE_MAX_VALUE_CHARS; exports.FORM_RESCUE_DEBOUNCE_MS = FORM_RESCUE_DEBOUNCE_MS; exports.FORM_RESCUE_MAX_FIELDS = FORM_RESCUE_MAX_FIELDS; exports.FORM_RESCUE_ATTEMPT_FIELD = FORM_RESCUE_ATTEMPT_FIELD; exports.FORM_RESCUE_RESUME_FIELD = FORM_RESCUE_RESUME_FIELD; exports.FORM_RESCUE_SUBMIT_KEYS = FORM_RESCUE_SUBMIT_KEYS; exports.FORM_RESCUE_RESUME_PARAM = FORM_RESCUE_RESUME_PARAM; exports.isResumeToken = isResumeToken; exports.FORM_DRAFT_STATUSES = FORM_DRAFT_STATUSES; exports.FORM_RESCUE_SKIP_REASONS = FORM_RESCUE_SKIP_REASONS; exports.isRescueEmail = isRescueEmail; exports.isFormAttemptId = isFormAttemptId; exports.sanitizeRescueValues = sanitizeRescueValues; exports.filledRescueFields = filledRescueFields; exports.rescueCompletionPct = rescueCompletionPct; exports.sanitizeRescueFieldName = sanitizeRescueFieldName; exports.parseFormDraftSaveRequest = parseFormDraftSaveRequest; exports.FORM_RESCUE_EVENTS = FORM_RESCUE_EVENTS; exports.captureFormRescueEvent = captureFormRescueEvent;
|
|
@@ -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 _chunk4JZC624Scjs = require('./chunk-4JZC624S.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKWZ62LPZcjs = require('./chunk-KWZ62LPZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkXXJL5GY3cjs = require('./chunk-XXJL5GY3.cjs');
|
|
@@ -19,7 +19,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkKWZ62LPZcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunk4JZC624Scjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkKWZ62LPZcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkKWZ62LPZcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -183,7 +183,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
183
183
|
if (composed && !isAbsoluteHref(href)) {
|
|
184
184
|
return { kind: "navigate-same-tab", href };
|
|
185
185
|
}
|
|
186
|
-
const isNewTab =
|
|
186
|
+
const isNewTab = _chunkY3EBUFX4cjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -312,31 +312,31 @@ function useDocSearch(config) {
|
|
|
312
312
|
case "navigate-same-tab": {
|
|
313
313
|
if (wantsNewTab) {
|
|
314
314
|
setKeepOpen(true);
|
|
315
|
-
window.open(action.href, "_blank",
|
|
315
|
+
window.open(action.href, "_blank", _chunkY3EBUFX4cjs.NEW_TAB_FEATURES);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setKeepOpen(false);
|
|
319
319
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
320
320
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
321
|
-
router.push(
|
|
321
|
+
router.push(_chunkY3EBUFX4cjs.stripSameOriginToPath.call(void 0, action.href));
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
case "navigate-new-tab":
|
|
325
325
|
setKeepOpen(true);
|
|
326
326
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
327
327
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
328
|
-
|
|
328
|
+
_chunkY3EBUFX4cjs.resolveExternalNavigation.call(void 0, {
|
|
329
329
|
href: action.href,
|
|
330
330
|
targetPlatform,
|
|
331
331
|
runtime
|
|
332
332
|
}).open();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
window.open(action.href, "_blank",
|
|
335
|
+
window.open(action.href, "_blank", _chunkY3EBUFX4cjs.NEW_TAB_FEATURES);
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkKWZ62LPZcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkCZIMISARcjs = require('./chunk-CZIMISAR.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -807,7 +807,7 @@ function usePlatformConfig() {
|
|
|
807
807
|
label: platform.label
|
|
808
808
|
}))
|
|
809
809
|
];
|
|
810
|
-
const selectableOptions =
|
|
810
|
+
const selectableOptions = _chunkCZIMISARcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
811
811
|
return {
|
|
812
812
|
platforms,
|
|
813
813
|
platformOptions,
|
|
@@ -1325,10 +1325,10 @@ function useDownloads({
|
|
|
1325
1325
|
}
|
|
1326
1326
|
function useVisitorDesktopDownload(options = {}) {
|
|
1327
1327
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1328
|
-
const visitor =
|
|
1328
|
+
const visitor = _chunkCZIMISARcjs.useVisitorOs.call(void 0, );
|
|
1329
1329
|
const { data, error } = useDownloads(options);
|
|
1330
1330
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1331
|
-
const os =
|
|
1331
|
+
const os = _chunkCZIMISARcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1332
1332
|
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));
|
|
1333
1333
|
return { known: true, download };
|
|
1334
1334
|
}
|
|
@@ -2630,7 +2630,7 @@ function useAccessCodeIntegration() {
|
|
|
2630
2630
|
const validate = async (email, code) => {
|
|
2631
2631
|
setIsValidating(true);
|
|
2632
2632
|
try {
|
|
2633
|
-
return await
|
|
2633
|
+
return await _chunkCZIMISARcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2634
2634
|
} finally {
|
|
2635
2635
|
setIsValidating(false);
|
|
2636
2636
|
}
|
|
@@ -2638,7 +2638,7 @@ function useAccessCodeIntegration() {
|
|
|
2638
2638
|
const consume = async (email, code) => {
|
|
2639
2639
|
setIsConsuming(true);
|
|
2640
2640
|
try {
|
|
2641
|
-
return await
|
|
2641
|
+
return await _chunkCZIMISARcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2642
2642
|
} finally {
|
|
2643
2643
|
setIsConsuming(false);
|
|
2644
2644
|
}
|
|
@@ -2647,7 +2647,7 @@ function useAccessCodeIntegration() {
|
|
|
2647
2647
|
setIsValidating(true);
|
|
2648
2648
|
setIsConsuming(true);
|
|
2649
2649
|
try {
|
|
2650
|
-
return await
|
|
2650
|
+
return await _chunkCZIMISARcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2651
2651
|
} finally {
|
|
2652
2652
|
setIsValidating(false);
|
|
2653
2653
|
setIsConsuming(false);
|
|
@@ -2677,7 +2677,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
function useClaudeMirrorSrc(url) {
|
|
2679
2679
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2680
|
-
const mirrorPath =
|
|
2680
|
+
const mirrorPath = _chunkCZIMISARcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2681
2681
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2682
2682
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2683
2683
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2780,8 +2780,8 @@ function useHumanitySignals() {
|
|
|
2780
2780
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2781
2781
|
const getSignals = _react.useCallback.call(void 0,
|
|
2782
2782
|
() => ({
|
|
2783
|
-
[
|
|
2784
|
-
[
|
|
2783
|
+
[_chunkCZIMISARcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2784
|
+
[_chunkCZIMISARcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2785
2785
|
}),
|
|
2786
2786
|
[]
|
|
2787
2787
|
);
|
|
@@ -2789,7 +2789,7 @@ function useHumanitySignals() {
|
|
|
2789
2789
|
if (ref.current) ref.current.value = "";
|
|
2790
2790
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2791
2791
|
}, []);
|
|
2792
|
-
return { honeypotInputProps: { ref, name:
|
|
2792
|
+
return { honeypotInputProps: { ref, name: _chunkCZIMISARcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
2795
2795
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2802,9 +2802,9 @@ function readLocalDraft(formId) {
|
|
|
2802
2802
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2803
2803
|
if (!raw) return null;
|
|
2804
2804
|
const parsed = JSON.parse(raw);
|
|
2805
|
-
if (!
|
|
2805
|
+
if (!_chunkCZIMISARcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2806
2806
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2807
|
-
return { attemptId: parsed.attemptId, values:
|
|
2807
|
+
return { attemptId: parsed.attemptId, values: _chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2808
2808
|
} catch (e8) {
|
|
2809
2809
|
return null;
|
|
2810
2810
|
}
|
|
@@ -2824,9 +2824,9 @@ function clearLocalDraft(formId) {
|
|
|
2824
2824
|
function completeFormRescue(form, attemptId) {
|
|
2825
2825
|
if (!form || typeof window === "undefined") return;
|
|
2826
2826
|
const local = readLocalDraft(form.id);
|
|
2827
|
-
|
|
2827
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2828
2828
|
form_id: form.id,
|
|
2829
|
-
attempt_id:
|
|
2829
|
+
attempt_id: _chunkCZIMISARcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2830
2830
|
});
|
|
2831
2831
|
clearLocalDraft(form.id);
|
|
2832
2832
|
}
|
|
@@ -2887,7 +2887,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2887
2887
|
}).catch(() => void 0);
|
|
2888
2888
|
} catch (e12) {
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2891
2891
|
form_id: formId,
|
|
2892
2892
|
attempt_id: attemptId(),
|
|
2893
2893
|
fields_filled: body.fields_filled,
|
|
@@ -2900,14 +2900,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2900
2900
|
_react.useEffect.call(void 0, () => {
|
|
2901
2901
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2902
2902
|
let cancelled = false;
|
|
2903
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2903
|
+
const token = new URLSearchParams(window.location.search).get(_chunkCZIMISARcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2904
2904
|
const restoreLocal = () => {
|
|
2905
2905
|
const local = readLocalDraft(formId);
|
|
2906
2906
|
if (!local) return;
|
|
2907
2907
|
attemptIdRef.current = local.attemptId;
|
|
2908
2908
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2909
2909
|
};
|
|
2910
|
-
if (
|
|
2910
|
+
if (_chunkCZIMISARcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2911
2911
|
_chunkASMNNSUQcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2912
2912
|
if (cancelled) return;
|
|
2913
2913
|
if (!data || data.form_id !== formId) {
|
|
@@ -2915,8 +2915,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2915
2915
|
return;
|
|
2916
2916
|
}
|
|
2917
2917
|
resumeTokenRef.current = token;
|
|
2918
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2919
|
-
|
|
2918
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2919
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2920
2920
|
}).catch(() => {
|
|
2921
2921
|
if (!cancelled) restoreLocal();
|
|
2922
2922
|
});
|
|
@@ -2936,7 +2936,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2936
2936
|
timerRef.current = null;
|
|
2937
2937
|
}
|
|
2938
2938
|
send(true);
|
|
2939
|
-
|
|
2939
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2940
2940
|
form_id: formId,
|
|
2941
2941
|
attempt_id: attemptId(),
|
|
2942
2942
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2960,22 +2960,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2960
2960
|
const names = fieldNamesRef.current;
|
|
2961
2961
|
const visible = {};
|
|
2962
2962
|
for (const name of names) visible[name] = values[name];
|
|
2963
|
-
const filled =
|
|
2963
|
+
const filled = _chunkCZIMISARcjs.filledRescueFields.call(void 0, visible, names);
|
|
2964
2964
|
if (!filled.length) return;
|
|
2965
2965
|
if (!startedRef.current) {
|
|
2966
2966
|
startedRef.current = true;
|
|
2967
|
-
|
|
2967
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2968
2968
|
}
|
|
2969
|
-
const clean =
|
|
2970
|
-
if (!leadCapturedRef.current &&
|
|
2969
|
+
const clean = _chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2970
|
+
if (!leadCapturedRef.current && _chunkCZIMISARcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2971
2971
|
leadCapturedRef.current = true;
|
|
2972
|
-
|
|
2972
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2973
2973
|
}
|
|
2974
2974
|
latestRef.current = {
|
|
2975
2975
|
values: clean,
|
|
2976
2976
|
fields_filled: filled,
|
|
2977
|
-
last_field:
|
|
2978
|
-
completion_pct:
|
|
2977
|
+
last_field: _chunkCZIMISARcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2978
|
+
completion_pct: _chunkCZIMISARcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2979
2979
|
};
|
|
2980
2980
|
dirtyRef.current = true;
|
|
2981
2981
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2983,15 +2983,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2983
2983
|
timerRef.current = setTimeout(() => {
|
|
2984
2984
|
timerRef.current = null;
|
|
2985
2985
|
send(false);
|
|
2986
|
-
},
|
|
2986
|
+
}, _chunkCZIMISARcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2987
2987
|
},
|
|
2988
2988
|
[attemptId, formId, send]
|
|
2989
2989
|
);
|
|
2990
2990
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2991
2991
|
if (!formId) return {};
|
|
2992
2992
|
return {
|
|
2993
|
-
[
|
|
2994
|
-
...resumeTokenRef.current ? { [
|
|
2993
|
+
[_chunkCZIMISARcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2994
|
+
...resumeTokenRef.current ? { [_chunkCZIMISARcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2995
2995
|
};
|
|
2996
2996
|
}, [attemptId, formId]);
|
|
2997
2997
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5AOKXXHVcjs = require('./chunk-5AOKXXHV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXFRBEXQNcjs = require('./chunk-XFRBEXQN.cjs');
|
|
@@ -120,7 +120,7 @@ function PersistentPaginationWrapper({
|
|
|
120
120
|
},
|
|
121
121
|
"aria-hidden": isPaginationDisabled,
|
|
122
122
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
-
|
|
123
|
+
_chunk5AOKXXHVcjs.UnifiedPagination,
|
|
124
124
|
{
|
|
125
125
|
currentPage: displayCurrentPage,
|
|
126
126
|
totalPages: displayTotalPages,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkL5CKY5WAcjs = require('./chunk-L5CKY5WA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4JZC624Scjs = require('./chunk-4JZC624S.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
@@ -37,7 +37,7 @@ function FaqDocumentPage({
|
|
|
37
37
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
38
|
};
|
|
39
39
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkL5CKY5WAcjs.FaqSection,
|
|
41
41
|
{
|
|
42
42
|
initialFaqs,
|
|
43
43
|
heading: null,
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JZC624Scjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -1,12 +1,12 @@
|
|
|
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 _chunkE64HPPRHcjs = require('./chunk-E64HPPRH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBTVO676Bcjs = require('./chunk-BTVO676B.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -45,12 +45,12 @@ var _chunkUXUYT4WKcjs = require('./chunk-UXUYT4WK.cjs');
|
|
|
45
45
|
var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkTUXPFF4Pcjs = require('./chunk-TUXPFF4P.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
@@ -168,31 +168,31 @@ CveLink.displayName = "CveLink";
|
|
|
168
168
|
// src/components/platform/ShellTypeBadge.tsx
|
|
169
169
|
|
|
170
170
|
var shellIconMap = {
|
|
171
|
-
[
|
|
171
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.POWERSHELL]: {
|
|
172
172
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
173
173
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
174
174
|
},
|
|
175
|
-
[
|
|
175
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.CMD]: {
|
|
176
176
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
177
177
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.BASH]: {
|
|
180
180
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.PYTHON]: {
|
|
184
184
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
185
185
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.NUSHELL]: {
|
|
188
188
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
189
189
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.DENO]: {
|
|
192
192
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunkBTVO676Bcjs.ShellTypeValues.SHELL]: {
|
|
196
196
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
}
|
|
@@ -203,7 +203,7 @@ var defaultIconConfig = {
|
|
|
203
203
|
};
|
|
204
204
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
205
205
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
206
|
-
const label =
|
|
206
|
+
const label = _chunkBTVO676Bcjs.getShellLabel.call(void 0, normalizedType);
|
|
207
207
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
208
208
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
209
209
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -219,7 +219,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
219
219
|
if (!platforms || platforms.length === 0) {
|
|
220
220
|
return "All Platforms";
|
|
221
221
|
}
|
|
222
|
-
return platforms.map((platform) =>
|
|
222
|
+
return platforms.map((platform) => _chunkBTVO676Bcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
223
223
|
}
|
|
224
224
|
function InfoCell({ label, value, avatar, className }) {
|
|
225
225
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -239,7 +239,7 @@ var ScriptInfoSection = ({
|
|
|
239
239
|
author,
|
|
240
240
|
className
|
|
241
241
|
}) => {
|
|
242
|
-
const shellLabel =
|
|
242
|
+
const shellLabel = _chunkBTVO676Bcjs.getShellLabel.call(void 0, shellType);
|
|
243
243
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
244
244
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
245
245
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -287,7 +287,7 @@ function OnboardingStepCard({
|
|
|
287
287
|
onSkip();
|
|
288
288
|
};
|
|
289
289
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
290
|
-
|
|
290
|
+
_chunkTUXPFF4Pcjs.InteractiveCard,
|
|
291
291
|
{
|
|
292
292
|
clickable: false,
|
|
293
293
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
@@ -313,7 +313,7 @@ function OnboardingStepCard({
|
|
|
313
313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-[32px] w-[100px] rounded-[6px]" }),
|
|
314
314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-[32px] w-[120px] rounded-[6px]" })
|
|
315
315
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
316
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
317
317
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
318
|
_chunkTF5D5MNOcjs.Button,
|
|
319
319
|
{
|
|
@@ -324,7 +324,7 @@ function OnboardingStepCard({
|
|
|
324
324
|
children: step.completedText
|
|
325
325
|
}
|
|
326
326
|
)
|
|
327
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
327
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
328
328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
329
329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
330
330
|
] })
|
|
@@ -359,7 +359,7 @@ function OnboardingWalkthrough({
|
|
|
359
359
|
isStepSkipped,
|
|
360
360
|
allStepsComplete,
|
|
361
361
|
markMultipleComplete
|
|
362
|
-
} =
|
|
362
|
+
} = _chunkE64HPPRHcjs.useOnboardingState.call(void 0, storageKey);
|
|
363
363
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
364
364
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
365
365
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -441,7 +441,7 @@ function OnboardingWalkthrough({
|
|
|
441
441
|
const isAllComplete = allStepsComplete(steps);
|
|
442
442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
443
443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkY3EBUFX4cjs.SECTION_HEADING_CLASS, children: _chunkY3EBUFX4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
445
445
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
446
446
|
] }),
|
|
447
447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var _chunkSETFUCZAcjs = require('./chunk-SETFUCZA.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -41,7 +41,7 @@ function useVideoWarmup({
|
|
|
41
41
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
42
42
|
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _4 => _4.endpoints, 'access', _5 => _5.supabaseStorageOrigin])));
|
|
43
43
|
useVideoOriginPreconnect({ supabaseStorageOrigin: resolvedOrigin });
|
|
44
|
-
const { ref, isNear } =
|
|
44
|
+
const { ref, isNear } = _chunkNTPX5GXIcjs.useNearViewport.call(void 0, nearMargin);
|
|
45
45
|
_react.useEffect.call(void 0, () => {
|
|
46
46
|
if (!isNear || !videoUrl || !resolvedOrigin) return void 0;
|
|
47
47
|
if (saveDataEnabled()) return void 0;
|