@flamingo-stack/openframe-frontend-core 0.0.740 → 0.0.742
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-BV5WZVOP.cjs → chunk-32Q7K5OP.cjs} +254 -254
- package/dist/{chunk-ZLTCQKTD.cjs → chunk-3LW43GIJ.cjs} +6 -6
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-EKGL5K5K.cjs → chunk-4LDU32OB.cjs} +17 -17
- package/dist/{chunk-VC4IV3AY.cjs → chunk-4PKORVOX.cjs} +2804 -954
- package/dist/{chunk-3ZIQOYNX.cjs → chunk-54EA4RLX.cjs} +8 -8
- package/dist/{chunk-YXKB5WRE.cjs → chunk-5MH6BRPY.cjs} +36 -36
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-BI3XBCQX.cjs} +2 -2
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
- package/dist/{chunk-BDA5F6RM.cjs → chunk-DNFSMVXJ.cjs} +16 -16
- package/dist/{chunk-B3XBJCOD.cjs → chunk-H3UA7UY5.cjs} +7 -7
- package/dist/{chunk-2Y5Y4FLM.cjs → chunk-HDBY2URA.cjs} +64 -64
- package/dist/{chunk-UW3YXDC4.cjs → chunk-HIRVNBX5.cjs} +20 -20
- package/dist/{chunk-LLAC2UZ3.cjs → chunk-ISJXKKYW.cjs} +28 -28
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-7UIQPMBJ.cjs → chunk-L34TKFTS.cjs} +21 -164
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-WBANGORJ.cjs → chunk-OBODY7F3.cjs} +3 -3
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-CWRVTQUO.cjs → chunk-PS6T65KA.cjs} +101 -101
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-VU4CKUJW.cjs → chunk-R6SCSV2I.cjs} +103 -103
- package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
- package/dist/{chunk-4RLGLB45.cjs → chunk-T433HSL6.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-HYBMADYO.cjs → chunk-UWHCRIQQ.cjs} +22 -22
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-D5KEWWLW.cjs → chunk-UZLRSFGG.cjs} +32 -32
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-SFY4UYPY.cjs → chunk-WIHHA54J.cjs} +44 -44
- package/dist/{chunk-YRE3O65E.cjs → chunk-XAA5EZ5T.cjs} +12 -12
- package/dist/{chunk-KLI4OSRA.cjs → chunk-YQGDXH3M.cjs} +2 -2
- package/dist/{chunk-SWR22DOZ.cjs → chunk-Z2DQYKZA.cjs} +89 -89
- package/dist/{chunk-5SVOGLNK.cjs → chunk-ZIFYSLIM.cjs} +6 -6
- package/dist/{cloud-tenants-PVXDI5MU.cjs → cloud-tenants-6ICAL3HO.cjs} +34 -34
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/capability-explorer.d.ts +9 -2
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +113 -6
- package/dist/components/features/index.cjs +162 -24
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +1 -0
- package/dist/components/features/scripts/execution-cells.d.ts +65 -0
- package/dist/components/features/scripts/execution-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-cells.js +75 -0
- package/dist/components/features/scripts/execution-status.d.ts +48 -0
- package/dist/components/features/scripts/execution-status.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-status.js +15 -0
- package/dist/components/features/scripts/index.d.ts +20 -0
- package/dist/components/features/scripts/index.d.ts.map +1 -0
- package/dist/components/features/scripts/index.js +59 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts +18 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/index.js +84 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts +24 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.js +18 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts +57 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.js +169 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts +138 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.js +72 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +54 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +60 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts +29 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +124 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts +52 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +244 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts +35 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.js +58 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts +25 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.js +66 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +77 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +262 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts +288 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.js +165 -0
- package/dist/components/features/scripts/script-cells.d.ts +11 -0
- package/dist/components/features/scripts/script-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/script-cells.js +19 -0
- package/dist/components/features/scripts/script-executions-table.d.ts +58 -0
- package/dist/components/features/scripts/script-executions-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-executions-table.js +88 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts +38 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-schedules-table.js +71 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts +9 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts.map +1 -0
- package/dist/components/features/scripts/script-shell-badge.js +15 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts +162 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-columns.js +69 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts +19 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-shared.js +35 -0
- package/dist/components/features/scripts/scripts-table.d.ts +40 -0
- package/dist/components/features/scripts/scripts-table.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table.js +84 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts +5 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-tabs.js +10 -0
- package/dist/components/features/scripts/shell-types.d.ts +13 -0
- package/dist/components/features/scripts/shell-types.d.ts.map +1 -0
- package/dist/components/features/scripts/shell-types.js +21 -0
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +224 -86
- package/dist/components/meeting-scheduler/index.cjs +74 -74
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/fixtures/scripts.d.ts +34 -0
- package/dist/components/product-demo/fixtures/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/scripts.js +123 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +8 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +7 -1
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/software-update.js +1 -5
- package/dist/components/product-demo/index.cjs +16 -13
- package/dist/components/product-demo/product-screen.d.ts.map +1 -1
- package/dist/components/product-demo/product-screen.js +2 -1
- package/dist/components/product-demo/registry.d.ts.map +1 -1
- package/dist/components/product-demo/registry.js +2 -1
- package/dist/components/product-demo/screen-keys.cjs +2 -1
- package/dist/components/product-demo/screen-keys.d.ts +1 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -1
- package/dist/components/product-demo/screen-keys.js +2 -1
- package/dist/components/product-demo/screens/scripts.d.ts +11 -0
- package/dist/components/product-demo/screens/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/screens/scripts.js +130 -0
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +24 -24
- package/dist/{devices-TWEA7XOR.cjs → devices-OFP2IBKN.cjs} +30 -30
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-4C22MGNC.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +169 -31
- package/dist/{knowledge-4GQDBNQB.cjs → knowledge-KKBCSNUA.cjs} +29 -29
- package/dist/{logs-EVU6GJHZ.cjs → logs-X2GRNO57.cjs} +46 -46
- package/dist/{policies-OZUEA5YS.cjs → policies-35BXKB6P.cjs} +31 -31
- package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-N4PJB5FW.cjs} +15 -15
- package/dist/scripts-KQYVQOLU.cjs +2112 -0
- package/dist/{software-update-BLIVYOY2.cjs → software-update-ED33WSKT.cjs} +36 -40
- package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-O753S4ZB.cjs} +31 -31
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/components/features/capability-explorer.tsx +134 -7
- package/src/components/features/index.ts +1 -0
- package/src/components/features/scripts/execution-cells.tsx +149 -0
- package/src/components/features/scripts/execution-status.ts +42 -0
- package/src/components/features/scripts/index.ts +42 -0
- package/src/components/features/scripts/schedule-form/index.ts +59 -0
- package/src/components/features/scripts/schedule-form/schedule-enums.ts +26 -0
- package/src/components/features/scripts/schedule-form/schedule-form-fields.tsx +249 -0
- package/src/components/features/scripts/schedule-form/schedule-form-types.ts +189 -0
- package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +121 -0
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +218 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +321 -0
- package/src/components/features/scripts/schedule-form/schedule-script-search-field.tsx +115 -0
- package/src/components/features/scripts/schedule-form/schedule-scripts-field.tsx +97 -0
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +482 -0
- package/src/components/features/scripts/schedule-form/schedule-timing.ts +484 -0
- package/src/components/features/scripts/script-cells.tsx +29 -0
- package/src/components/features/scripts/script-executions-table.tsx +145 -0
- package/src/components/features/scripts/script-schedules-table.tsx +113 -0
- package/src/components/features/scripts/script-shell-badge.tsx +25 -0
- package/src/components/features/scripts/scripts-table-columns.ts +95 -0
- package/src/components/features/scripts/scripts-table-shared.tsx +43 -0
- package/src/components/features/scripts/scripts-table.tsx +124 -0
- package/src/components/features/scripts/scripts-tabs.ts +11 -0
- package/src/components/features/scripts/shell-types.ts +26 -0
- package/src/components/product-demo/fixtures/scripts.ts +186 -0
- package/src/components/product-demo/fixtures/shared.ts +7 -0
- package/src/components/product-demo/fixtures/software-update.ts +1 -7
- package/src/components/product-demo/product-screen.tsx +3 -1
- package/src/components/product-demo/registry.ts +1 -0
- package/src/components/product-demo/screen-keys.ts +1 -0
- package/src/components/product-demo/screens/scripts.tsx +192 -0
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -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 _chunkUWHCRIQQcjs = require('./chunk-UWHCRIQQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4PKORVOXcjs = require('./chunk-4PKORVOX.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -34,8 +34,8 @@ function FaqDocumentPage({
|
|
|
34
34
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
37
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
+
_chunkUWHCRIQQcjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PKORVOXcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -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 _chunkLU7TD6QScjs = require('./chunk-LU7TD6QS.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 _chunkW2RM764Dcjs = require('./chunk-W2RM764D.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -38,10 +38,10 @@ var _chunkDUVOQHQIcjs = require('./chunk-DUVOQHQI.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkWI2OTGKCcjs = require('./chunk-WI2OTGKC.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 _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
var _chunkG7SBHMRRcjs = require('./chunk-G7SBHMRR.cjs');
|
|
@@ -323,7 +323,7 @@ function useOnboardingState(storageKey = "openframe-onboarding-state") {
|
|
|
323
323
|
const [, forceUpdate] = _react.useState.call(void 0, 0);
|
|
324
324
|
_react.useEffect.call(void 0, () => {
|
|
325
325
|
const handleStorageUpdate = (event) => {
|
|
326
|
-
const detail =
|
|
326
|
+
const detail = _chunkLU7TD6QScjs.readLocalStorageUpdateDetail.call(void 0, event);
|
|
327
327
|
if (_optionalChain([detail, 'optionalAccess', _14 => _14.key]) !== storageKey) return;
|
|
328
328
|
const newState = loadOnboardingState(storageKey);
|
|
329
329
|
setState(newState);
|
|
@@ -414,7 +414,7 @@ function useSearch(config) {
|
|
|
414
414
|
searchFnRef.current = searchFn;
|
|
415
415
|
mapResultRef.current = mapResult;
|
|
416
416
|
});
|
|
417
|
-
const debouncedQuery =
|
|
417
|
+
const debouncedQuery = _chunkCSJO7ZGNcjs.useDebounce.call(void 0, query, debounceMs);
|
|
418
418
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
419
419
|
setResults(NO_RESULTS);
|
|
420
420
|
setError(null);
|
|
@@ -804,7 +804,7 @@ function usePlatformConfig() {
|
|
|
804
804
|
label: platform.label
|
|
805
805
|
}))
|
|
806
806
|
];
|
|
807
|
-
const selectableOptions =
|
|
807
|
+
const selectableOptions = _chunkW2RM764Dcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
808
808
|
return {
|
|
809
809
|
platforms,
|
|
810
810
|
platformOptions,
|
|
@@ -982,7 +982,7 @@ function CommandApprovalToast({
|
|
|
982
982
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
983
983
|
/* @__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: [
|
|
984
984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
985
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
985
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWI2OTGKCcjs.ToolIcon, { toolType, size: 16 }) : null
|
|
986
986
|
] }),
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
988
988
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
@@ -1155,7 +1155,7 @@ function useContactSubmission(options = {}) {
|
|
|
1155
1155
|
if (isSubmitting) return;
|
|
1156
1156
|
setIsSubmitting(true);
|
|
1157
1157
|
try {
|
|
1158
|
-
const response = await
|
|
1158
|
+
const response = await _chunkASMNNSUQcjs.contentFetch.call(void 0, contactUrl, {
|
|
1159
1159
|
method: "POST",
|
|
1160
1160
|
headers: { "Content-Type": "application/json" },
|
|
1161
1161
|
body: JSON.stringify({
|
|
@@ -1165,7 +1165,7 @@ function useContactSubmission(options = {}) {
|
|
|
1165
1165
|
});
|
|
1166
1166
|
if (!response.ok) {
|
|
1167
1167
|
const failure = await response.json().catch(() => null);
|
|
1168
|
-
throw new Error(
|
|
1168
|
+
throw new Error(_chunkASMNNSUQcjs.apiErrorMessage.call(void 0, failure, "Failed to submit contact form"));
|
|
1169
1169
|
}
|
|
1170
1170
|
setIsSuccess(true);
|
|
1171
1171
|
const message = successToastMessage ? `Thank you! Your message has been sent. ${successToastMessage}` : "Thank you! Your message has been sent successfully.";
|
|
@@ -1274,7 +1274,7 @@ function load(endpoint, force = false) {
|
|
|
1274
1274
|
const entry = entryFor(endpoint);
|
|
1275
1275
|
if (entry.request || entry.state.data && !force) return;
|
|
1276
1276
|
publish(endpoint, { data: entry.state.data, isLoading: true, error: false });
|
|
1277
|
-
entry.request =
|
|
1277
|
+
entry.request = _chunkASMNNSUQcjs.contentFetch.call(void 0, endpoint).then(async (response) => {
|
|
1278
1278
|
if (!response.ok) throw new Error(`Request failed (${response.status})`);
|
|
1279
1279
|
publish(endpoint, { data: await response.json(), isLoading: false, error: false });
|
|
1280
1280
|
}).catch(() => publish(endpoint, { data: entry.state.data, isLoading: false, error: true })).finally(() => {
|
|
@@ -1316,10 +1316,10 @@ function useDownloads({ endpoint = DOWNLOADS_API_PATH, initialData, enabled = tr
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function useVisitorDesktopDownload(options = {}) {
|
|
1318
1318
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1319
|
-
const visitor =
|
|
1319
|
+
const visitor = _chunkW2RM764Dcjs.useVisitorOs.call(void 0, );
|
|
1320
1320
|
const { data, error } = useDownloads(options);
|
|
1321
1321
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1322
|
-
const os =
|
|
1322
|
+
const os = _chunkW2RM764Dcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1323
1323
|
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));
|
|
1324
1324
|
return { known: true, download };
|
|
1325
1325
|
}
|
|
@@ -2569,7 +2569,7 @@ function useScenarioPlayer({
|
|
|
2569
2569
|
startAtEnd = false,
|
|
2570
2570
|
emptyFirstStep = true
|
|
2571
2571
|
}) {
|
|
2572
|
-
const auto =
|
|
2572
|
+
const auto = _chunkCSJO7ZGNcjs.useAutoplay.call(void 0, enabled);
|
|
2573
2573
|
const { reducedMotion, held, holdProps, release } = auto;
|
|
2574
2574
|
const [scenario, setScenario] = _react.useState.call(void 0, initialScenario);
|
|
2575
2575
|
const [rawStep, setRawStep] = _react.useState.call(void 0, startAtEnd ? Number.MAX_SAFE_INTEGER : 0);
|
|
@@ -2621,7 +2621,7 @@ function useAccessCodeIntegration() {
|
|
|
2621
2621
|
const validate = async (email, code) => {
|
|
2622
2622
|
setIsValidating(true);
|
|
2623
2623
|
try {
|
|
2624
|
-
return await
|
|
2624
|
+
return await _chunkW2RM764Dcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2625
2625
|
} finally {
|
|
2626
2626
|
setIsValidating(false);
|
|
2627
2627
|
}
|
|
@@ -2629,7 +2629,7 @@ function useAccessCodeIntegration() {
|
|
|
2629
2629
|
const consume = async (email, code) => {
|
|
2630
2630
|
setIsConsuming(true);
|
|
2631
2631
|
try {
|
|
2632
|
-
return await
|
|
2632
|
+
return await _chunkW2RM764Dcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
setIsConsuming(false);
|
|
2635
2635
|
}
|
|
@@ -2638,7 +2638,7 @@ function useAccessCodeIntegration() {
|
|
|
2638
2638
|
setIsValidating(true);
|
|
2639
2639
|
setIsConsuming(true);
|
|
2640
2640
|
try {
|
|
2641
|
-
return await
|
|
2641
|
+
return await _chunkW2RM764Dcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2642
2642
|
} finally {
|
|
2643
2643
|
setIsValidating(false);
|
|
2644
2644
|
setIsConsuming(false);
|
|
@@ -2668,7 +2668,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2668
2668
|
}
|
|
2669
2669
|
function useClaudeMirrorSrc(url) {
|
|
2670
2670
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2671
|
-
const mirrorPath =
|
|
2671
|
+
const mirrorPath = _chunkW2RM764Dcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2672
2672
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2673
2673
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2674
2674
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2699,7 +2699,7 @@ function useClaudeMirrorSrc(url) {
|
|
|
2699
2699
|
|
|
2700
2700
|
// src/hooks/use-location-hash.ts
|
|
2701
2701
|
|
|
2702
|
-
var HASH_EVENTS = ["hashchange", "popstate",
|
|
2702
|
+
var HASH_EVENTS = ["hashchange", "popstate", _chunkCSJO7ZGNcjs.LOCATION_HASH_SYNC_EVENT];
|
|
2703
2703
|
function subscribe(onChange) {
|
|
2704
2704
|
for (const event of HASH_EVENTS) window.addEventListener(event, onChange);
|
|
2705
2705
|
return () => {
|
|
@@ -2707,7 +2707,7 @@ function subscribe(onChange) {
|
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
2709
|
function readHash() {
|
|
2710
|
-
const raw =
|
|
2710
|
+
const raw = _chunkCSJO7ZGNcjs.normalizeHashFragment.call(void 0, window.location.hash).replace(/^#/, "");
|
|
2711
2711
|
try {
|
|
2712
2712
|
return decodeURIComponent(raw);
|
|
2713
2713
|
} catch (e7) {
|
|
@@ -2734,16 +2734,16 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
2736
|
const tryScrollToHash = () => {
|
|
2737
|
-
if (
|
|
2738
|
-
const hash =
|
|
2737
|
+
if (_chunkCSJO7ZGNcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
2738
|
+
const hash = _chunkCSJO7ZGNcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2739
2739
|
if (!hash) return;
|
|
2740
2740
|
cancelPoll();
|
|
2741
2741
|
let frames = 0;
|
|
2742
2742
|
const tick = () => {
|
|
2743
|
-
const el =
|
|
2743
|
+
const el = _chunkCSJO7ZGNcjs.getHashTargetElement.call(void 0, hash);
|
|
2744
2744
|
if (el) {
|
|
2745
2745
|
rafId = null;
|
|
2746
|
-
|
|
2746
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2747
2747
|
return;
|
|
2748
2748
|
}
|
|
2749
2749
|
if (frames++ < MAX_POLL_FRAMES) {
|
|
@@ -2771,8 +2771,8 @@ function useHumanitySignals() {
|
|
|
2771
2771
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2772
2772
|
const getSignals = _react.useCallback.call(void 0,
|
|
2773
2773
|
() => ({
|
|
2774
|
-
[
|
|
2775
|
-
[
|
|
2774
|
+
[_chunkW2RM764Dcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2775
|
+
[_chunkW2RM764Dcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2776
2776
|
}),
|
|
2777
2777
|
[]
|
|
2778
2778
|
);
|
|
@@ -2780,7 +2780,7 @@ function useHumanitySignals() {
|
|
|
2780
2780
|
if (ref.current) ref.current.value = "";
|
|
2781
2781
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2782
2782
|
}, []);
|
|
2783
|
-
return { honeypotInputProps: { ref, name:
|
|
2783
|
+
return { honeypotInputProps: { ref, name: _chunkW2RM764Dcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2784
2784
|
}
|
|
2785
2785
|
|
|
2786
2786
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2793,9 +2793,9 @@ function readLocalDraft(formId) {
|
|
|
2793
2793
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2794
2794
|
if (!raw) return null;
|
|
2795
2795
|
const parsed = JSON.parse(raw);
|
|
2796
|
-
if (!
|
|
2796
|
+
if (!_chunkW2RM764Dcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2797
2797
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2798
|
-
return { attemptId: parsed.attemptId, values:
|
|
2798
|
+
return { attemptId: parsed.attemptId, values: _chunkW2RM764Dcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2799
2799
|
} catch (e8) {
|
|
2800
2800
|
return null;
|
|
2801
2801
|
}
|
|
@@ -2815,9 +2815,9 @@ function clearLocalDraft(formId) {
|
|
|
2815
2815
|
function completeFormRescue(form, attemptId) {
|
|
2816
2816
|
if (!form || typeof window === "undefined") return;
|
|
2817
2817
|
const local = readLocalDraft(form.id);
|
|
2818
|
-
|
|
2818
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2819
2819
|
form_id: form.id,
|
|
2820
|
-
attempt_id:
|
|
2820
|
+
attempt_id: _chunkW2RM764Dcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2821
2821
|
});
|
|
2822
2822
|
clearLocalDraft(form.id);
|
|
2823
2823
|
}
|
|
@@ -2870,7 +2870,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2870
2870
|
...resumeTokenRef.current ? { resume_token: resumeTokenRef.current } : {}
|
|
2871
2871
|
};
|
|
2872
2872
|
try {
|
|
2873
|
-
void
|
|
2873
|
+
void _chunkASMNNSUQcjs.contentFetch.call(void 0, draftsUrl, {
|
|
2874
2874
|
method: "POST",
|
|
2875
2875
|
headers: { "Content-Type": "application/json" },
|
|
2876
2876
|
body: JSON.stringify({ ...body, ..._nullishCoalesce(_optionalChain([getSignalsRef, 'access', _39 => _39.current, 'optionalCall', _40 => _40()]), () => ( {})) }),
|
|
@@ -2878,7 +2878,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2878
2878
|
}).catch(() => void 0);
|
|
2879
2879
|
} catch (e12) {
|
|
2880
2880
|
}
|
|
2881
|
-
|
|
2881
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2882
2882
|
form_id: formId,
|
|
2883
2883
|
attempt_id: attemptId(),
|
|
2884
2884
|
fields_filled: body.fields_filled,
|
|
@@ -2891,23 +2891,23 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2891
2891
|
_react.useEffect.call(void 0, () => {
|
|
2892
2892
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2893
2893
|
let cancelled = false;
|
|
2894
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2894
|
+
const token = new URLSearchParams(window.location.search).get(_chunkW2RM764Dcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2895
2895
|
const restoreLocal = () => {
|
|
2896
2896
|
const local = readLocalDraft(formId);
|
|
2897
2897
|
if (!local) return;
|
|
2898
2898
|
attemptIdRef.current = local.attemptId;
|
|
2899
2899
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2900
2900
|
};
|
|
2901
|
-
if (
|
|
2902
|
-
|
|
2901
|
+
if (_chunkW2RM764Dcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2902
|
+
_chunkASMNNSUQcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2903
2903
|
if (cancelled) return;
|
|
2904
2904
|
if (!data || data.form_id !== formId) {
|
|
2905
2905
|
restoreLocal();
|
|
2906
2906
|
return;
|
|
2907
2907
|
}
|
|
2908
2908
|
resumeTokenRef.current = token;
|
|
2909
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2910
|
-
|
|
2909
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkW2RM764Dcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2910
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2911
2911
|
}).catch(() => {
|
|
2912
2912
|
if (!cancelled) restoreLocal();
|
|
2913
2913
|
});
|
|
@@ -2927,7 +2927,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2927
2927
|
timerRef.current = null;
|
|
2928
2928
|
}
|
|
2929
2929
|
send(true);
|
|
2930
|
-
|
|
2930
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2931
2931
|
form_id: formId,
|
|
2932
2932
|
attempt_id: attemptId(),
|
|
2933
2933
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2951,22 +2951,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2951
2951
|
const names = fieldNamesRef.current;
|
|
2952
2952
|
const visible = {};
|
|
2953
2953
|
for (const name of names) visible[name] = values[name];
|
|
2954
|
-
const filled =
|
|
2954
|
+
const filled = _chunkW2RM764Dcjs.filledRescueFields.call(void 0, visible, names);
|
|
2955
2955
|
if (!filled.length) return;
|
|
2956
2956
|
if (!startedRef.current) {
|
|
2957
2957
|
startedRef.current = true;
|
|
2958
|
-
|
|
2958
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2959
2959
|
}
|
|
2960
|
-
const clean =
|
|
2961
|
-
if (!leadCapturedRef.current &&
|
|
2960
|
+
const clean = _chunkW2RM764Dcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2961
|
+
if (!leadCapturedRef.current && _chunkW2RM764Dcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2962
2962
|
leadCapturedRef.current = true;
|
|
2963
|
-
|
|
2963
|
+
_chunkW2RM764Dcjs.captureFormRescueEvent.call(void 0, _chunkW2RM764Dcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2964
2964
|
}
|
|
2965
2965
|
latestRef.current = {
|
|
2966
2966
|
values: clean,
|
|
2967
2967
|
fields_filled: filled,
|
|
2968
|
-
last_field:
|
|
2969
|
-
completion_pct:
|
|
2968
|
+
last_field: _chunkW2RM764Dcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2969
|
+
completion_pct: _chunkW2RM764Dcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2970
2970
|
};
|
|
2971
2971
|
dirtyRef.current = true;
|
|
2972
2972
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2974,15 +2974,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2974
2974
|
timerRef.current = setTimeout(() => {
|
|
2975
2975
|
timerRef.current = null;
|
|
2976
2976
|
send(false);
|
|
2977
|
-
},
|
|
2977
|
+
}, _chunkW2RM764Dcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2978
2978
|
},
|
|
2979
2979
|
[attemptId, formId, send]
|
|
2980
2980
|
);
|
|
2981
2981
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2982
2982
|
if (!formId) return {};
|
|
2983
2983
|
return {
|
|
2984
|
-
[
|
|
2985
|
-
...resumeTokenRef.current ? { [
|
|
2984
|
+
[_chunkW2RM764Dcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2985
|
+
...resumeTokenRef.current ? { [_chunkW2RM764Dcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2986
2986
|
};
|
|
2987
2987
|
}, [attemptId, formId]);
|
|
2988
2988
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -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 _chunkPS6T65KAcjs = require('./chunk-PS6T65KA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk32Q7K5OPcjs = require('./chunk-32Q7K5OP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkBV5WZVOPcjs = require('./chunk-BV5WZVOP.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -47,7 +47,7 @@ function HorizontalSectionNav({
|
|
|
47
47
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
48
48
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
49
49
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
|
-
|
|
50
|
+
_chunk32Q7K5OPcjs.ScrollShadow,
|
|
51
51
|
{
|
|
52
52
|
axis: "horizontal",
|
|
53
53
|
className: "min-w-0 flex-1",
|
|
@@ -166,7 +166,7 @@ function useSectionNavigation(sections, options) {
|
|
|
166
166
|
if (!targetElement) return;
|
|
167
167
|
isScrollingFromClick.current = true;
|
|
168
168
|
setActiveSection(sectionId);
|
|
169
|
-
|
|
169
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
170
170
|
setTimeout(() => {
|
|
171
171
|
isScrollingFromClick.current = false;
|
|
172
172
|
}, 500);
|
|
@@ -219,13 +219,13 @@ var SCROLL_OFFSET = 100;
|
|
|
219
219
|
var ID_SEPARATOR = "\n";
|
|
220
220
|
var LINE_TOLERANCE_PX = 1;
|
|
221
221
|
function currentHashId() {
|
|
222
|
-
return
|
|
222
|
+
return _chunkCSJO7ZGNcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
223
223
|
}
|
|
224
224
|
function activeChildAnchor(section) {
|
|
225
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${
|
|
225
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${_chunkCSJO7ZGNcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _11 => _11.id]), () => ( null));
|
|
226
226
|
}
|
|
227
227
|
function hashIsWithin(section) {
|
|
228
|
-
return section.contains(
|
|
228
|
+
return section.contains(_chunkCSJO7ZGNcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
229
229
|
}
|
|
230
230
|
function hashForSection(sectionId) {
|
|
231
231
|
const section = document.getElementById(sectionId);
|
|
@@ -233,7 +233,7 @@ function hashForSection(sectionId) {
|
|
|
233
233
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
234
234
|
}
|
|
235
235
|
function resolveScroller(firstSection) {
|
|
236
|
-
const container = firstSection ?
|
|
236
|
+
const container = firstSection ? _chunkCSJO7ZGNcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
237
237
|
if (container) {
|
|
238
238
|
return {
|
|
239
239
|
target: container,
|
|
@@ -263,8 +263,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
263
263
|
if (!targetElement) return;
|
|
264
264
|
isScrollingFromClick.current = true;
|
|
265
265
|
setActiveSection(sectionId);
|
|
266
|
-
if (syncHash)
|
|
267
|
-
|
|
266
|
+
if (syncHash) _chunkCSJO7ZGNcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
267
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
268
268
|
setTimeout(() => {
|
|
269
269
|
isScrollingFromClick.current = false;
|
|
270
270
|
}, 800);
|
|
@@ -280,7 +280,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
280
280
|
const scrollTop = scroller.scrollTop();
|
|
281
281
|
const viewportTop = scroller.viewportTop();
|
|
282
282
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
283
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
283
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkCSJO7ZGNcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
284
284
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
285
285
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
286
286
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -303,16 +303,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
303
303
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
304
304
|
if (!syncHash) return;
|
|
305
305
|
if (fromScroll) {
|
|
306
|
-
|
|
306
|
+
_chunkCSJO7ZGNcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
|
-
if (restoredChecked.current || !
|
|
310
|
-
const target =
|
|
309
|
+
if (restoredChecked.current || !_chunkCSJO7ZGNcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
310
|
+
const target = _chunkCSJO7ZGNcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
311
311
|
const tracked = sectionIds.some((id) => _nullishCoalesce(_optionalChain([document, 'access', _16 => _16.getElementById, 'call', _17 => _17(id), 'optionalAccess', _18 => _18.contains, 'call', _19 => _19(target)]), () => ( false)));
|
|
312
312
|
if (!target || !tracked) return;
|
|
313
313
|
restoredChecked.current = true;
|
|
314
314
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
315
|
-
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)]))
|
|
315
|
+
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)])) _chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
316
316
|
};
|
|
317
317
|
let scrollTimer;
|
|
318
318
|
const throttledScroll = () => {
|
|
@@ -332,7 +332,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
332
332
|
// src/components/navigation/multi-level-navigation.tsx
|
|
333
333
|
var _lucidereact = require('lucide-react');
|
|
334
334
|
|
|
335
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
335
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkPS6T65KAcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
336
336
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
337
337
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
338
338
|
if (selectedPath === node.path) {
|