@flamingo-stack/openframe-frontend-core 0.0.761 → 0.0.762
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/{chunk-7Z4EQOIX.cjs → chunk-22XAPV6N.cjs} +35 -35
- package/dist/{chunk-AXBVN5SW.cjs → chunk-2IFCRPNP.cjs} +38 -38
- package/dist/{chunk-CSJO7ZGN.cjs → chunk-3RYIF4OW.cjs} +3 -3
- package/dist/{chunk-G6IK3HC5.cjs → chunk-3WPWUUFU.cjs} +32 -32
- package/dist/{chunk-35BJY5RR.cjs → chunk-47GZ33ND.cjs} +44 -44
- package/dist/{chunk-HQYWVNQL.cjs → chunk-4NGXJA3V.cjs} +4 -4
- package/dist/{chunk-GLQBCQOF.cjs → chunk-4VAMNI27.cjs} +59 -59
- package/dist/{chunk-4EM7HIIM.cjs → chunk-72XMAKDA.cjs} +566 -566
- package/dist/{chunk-B7AOUPBV.cjs → chunk-AXGTRPF6.cjs} +20 -20
- package/dist/{chunk-6T6O36LT.cjs → chunk-CEJDHCFZ.cjs} +89 -89
- package/dist/{chunk-NOFJH7MA.cjs → chunk-CZ3OVWUL.cjs} +14 -14
- package/dist/{chunk-GKRHGVB4.cjs → chunk-DYJWZIPU.cjs} +100 -100
- package/dist/{chunk-6M54EVOA.cjs → chunk-DZ6BYXQF.cjs} +28 -28
- package/dist/{chunk-2ANICXS7.cjs → chunk-E4LA4BEH.cjs} +21 -21
- package/dist/{chunk-JHQNUWFM.cjs → chunk-EQZXJUYV.cjs} +3 -3
- package/dist/{chunk-LU7TD6QS.cjs → chunk-FQSXZC2K.cjs} +3 -3
- package/dist/{chunk-QU5K52OP.cjs → chunk-GY2JESOC.cjs} +2 -2
- package/dist/{chunk-LOFDIDSD.cjs → chunk-GZKWF6NH.cjs} +9 -9
- package/dist/{chunk-VAZTFCVY.cjs → chunk-J4P47JHM.cjs} +20 -20
- package/dist/{chunk-WBOHLXFC.cjs → chunk-LVKUMVUJ.cjs} +2 -2
- package/dist/{chunk-L2IQESTQ.cjs → chunk-M7YZGRAV.cjs} +2 -2
- package/dist/{chunk-R34JD6NP.cjs → chunk-MWLD6NXV.cjs} +3 -3
- package/dist/{chunk-TIV74DVS.cjs → chunk-N52HFJTK.cjs} +43 -43
- package/dist/{chunk-W2RM764D.cjs → chunk-NET74KSQ.cjs} +5 -4
- package/dist/{chunk-B27XV2TC.cjs → chunk-NS64LMVE.cjs} +10 -10
- package/dist/{chunk-OBXZDUC3.cjs → chunk-NSR7K57R.cjs} +83 -83
- package/dist/{chunk-QYLIHZKZ.cjs → chunk-OJJ4RL2T.cjs} +4 -4
- package/dist/{chunk-F64VMOIB.cjs → chunk-PE26VSWT.cjs} +19 -19
- package/dist/{chunk-EMSOBT6R.cjs → chunk-PFXR3RF3.cjs} +6 -6
- package/dist/{chunk-D252ICCO.cjs → chunk-QCO32MEE.cjs} +17 -17
- package/dist/{chunk-KTPR66EE.cjs → chunk-R3TWQ3ZJ.cjs} +10 -0
- package/dist/{chunk-VUSXDMCE.cjs → chunk-RM6AHNM4.cjs} +7 -7
- package/dist/{chunk-T4BBZ5ST.cjs → chunk-RO72PRQI.cjs} +2 -2
- package/dist/{chunk-WI2OTGKC.cjs → chunk-SVP6DJFL.cjs} +2 -2
- package/dist/{chunk-H45OTVYI.cjs → chunk-TGVV7STM.cjs} +22 -22
- package/dist/{chunk-SUHPBFNU.cjs → chunk-TQPQKBBL.cjs} +242 -240
- package/dist/{chunk-5E6JHOGX.cjs → chunk-TSJUL6IH.cjs} +3 -3
- package/dist/{chunk-LOM3S64Z.cjs → chunk-TWAHPTWW.cjs} +8 -8
- package/dist/{chunk-VUWPLQBY.cjs → chunk-XCH7SPGI.cjs} +44 -44
- package/dist/{cloud-tenants-BDGV4N2T.cjs → cloud-tenants-M5SIL6QZ.cjs} +22 -22
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +23 -23
- package/dist/components/docs/index.cjs +26 -26
- package/dist/components/embeds/index.cjs +23 -23
- package/dist/components/faq/index.cjs +24 -24
- package/dist/components/features/index.cjs +22 -22
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +83 -83
- package/dist/components/meeting-scheduler/index.cjs +77 -77
- package/dist/components/navigation/index.cjs +25 -25
- package/dist/components/onboarding-guides/index.cjs +25 -25
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/index.cjs +22 -22
- package/dist/{devices-Q5YHMXGV.cjs → devices-TZY7RF7M.cjs} +23 -23
- package/dist/{embeddable-chat-ST5IR6VN.cjs → embeddable-chat-HWQSP3DY.cjs} +93 -93
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +28 -28
- package/dist/{knowledge-UJTJT36J.cjs → knowledge-UKC2BLQP.cjs} +23 -23
- package/dist/{logs-WMNITBLM.cjs → logs-MFVTQ5NN.cjs} +30 -30
- package/dist/platform-domains.cjs +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +2 -0
- package/dist/{policies-TRXVBOH7.cjs → policies-BETELENB.cjs} +26 -26
- package/dist/{remote-session-SKNXYG6K.cjs → remote-session-F72S6I7J.cjs} +9 -9
- package/dist/{scripts-HECY7XDL.cjs → scripts-XDT3ZAXU.cjs} +29 -29
- package/dist/{software-update-NNFLEMYD.cjs → software-update-EW5X7R2X.cjs} +26 -26
- package/dist/{tickets-board-B2FH7Z4B.cjs → tickets-board-4PBXPSGJ.cjs} +12 -12
- package/dist/types/platform.d.ts +1 -1
- package/dist/types/platform.d.ts.map +1 -1
- package/dist/utils/index.cjs +13 -0
- package/dist/utils/platform-config.d.ts.map +1 -1
- package/dist/utils/platform-config.js +1 -0
- package/dist/utils/platform-identity.cjs +10 -0
- package/dist/utils/platform-identity.d.ts +3 -2
- package/dist/utils/platform-identity.d.ts.map +1 -1
- package/dist/utils/platform-identity.js +10 -0
- package/package.json +1 -1
- package/src/platform-domains.ts +2 -0
- package/src/styles/README.md +1 -0
- package/src/styles/ods-colors.css +16 -0
- package/src/types/platform.ts +1 -0
- package/src/utils/platform-config.tsx +1 -0
- package/src/utils/platform-identity.ts +19 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRO72PRQIcjs = require('./chunk-RO72PRQI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -179,11 +179,11 @@ function UnifiedPagination({
|
|
|
179
179
|
}, 0);
|
|
180
180
|
};
|
|
181
181
|
if (totalPages <= 1) {
|
|
182
|
-
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
+
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRO72PRQIcjs.Pagination, { currentPage: 1, totalPages: 1, onPageChange: () => {
|
|
183
183
|
} }) }) }) : null;
|
|
184
184
|
}
|
|
185
185
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
|
|
186
|
+
_chunkRO72PRQIcjs.Pagination,
|
|
187
187
|
{
|
|
188
188
|
currentPage,
|
|
189
189
|
totalPages,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk72XMAKDAcjs = require('./chunk-72XMAKDA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -11,10 +11,10 @@ var _chunkM7ZSKWT3cjs = require('./chunk-M7ZSKWT3.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNET74KSQcjs = require('./chunk-NET74KSQ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEQZXJUYVcjs = require('./chunk-EQZXJUYV.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
@@ -29,7 +29,7 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
29
29
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
30
30
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
31
31
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
32
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
32
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkEQZXJUYVcjs.formatFileSize.call(void 0, fileSize) })
|
|
33
33
|
] })
|
|
34
34
|
] }),
|
|
35
35
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunk72XMAKDAcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -57,7 +57,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
57
57
|
{
|
|
58
58
|
variant: "outline",
|
|
59
59
|
size: "small-legacy",
|
|
60
|
-
href:
|
|
60
|
+
href: _chunkNET74KSQcjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
61
61
|
openInNewTab: true,
|
|
62
62
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-4 w-4" }),
|
|
63
63
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }),
|
|
@@ -65,7 +65,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
65
65
|
children: "Open in Google Sheets"
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
src:
|
|
68
|
+
src: _chunkNET74KSQcjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
69
69
|
height
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunk72XMAKDAcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -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 _chunkFQSXZC2Kcjs = require('./chunk-FQSXZC2K.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 _chunkNET74KSQcjs = require('./chunk-NET74KSQ.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -38,10 +38,10 @@ var _chunkW2RM764Dcjs = require('./chunk-W2RM764D.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk3RYIF4OWcjs = require('./chunk-3RYIF4OW.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkSVP6DJFLcjs = require('./chunk-SVP6DJFL.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.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 = _chunkFQSXZC2Kcjs.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 = _chunk3RYIF4OWcjs.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 = _chunkNET74KSQcjs.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, _chunkSVP6DJFLcjs.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,
|
|
@@ -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 = _chunkNET74KSQcjs.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 = _chunkNET74KSQcjs.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 = _chunk3RYIF4OWcjs.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 _chunkNET74KSQcjs.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 _chunkNET74KSQcjs.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 _chunkNET74KSQcjs.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 = _chunkNET74KSQcjs.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", _chunk3RYIF4OWcjs.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 = _chunk3RYIF4OWcjs.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 (_chunk3RYIF4OWcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
2738
|
+
const hash = _chunk3RYIF4OWcjs.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 = _chunk3RYIF4OWcjs.getHashTargetElement.call(void 0, hash);
|
|
2744
2744
|
if (el) {
|
|
2745
2745
|
rafId = null;
|
|
2746
|
-
|
|
2746
|
+
_chunk3RYIF4OWcjs.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
|
+
[_chunkNET74KSQcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2775
|
+
[_chunkNET74KSQcjs.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: _chunkNET74KSQcjs.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 (!_chunkNET74KSQcjs.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: _chunkNET74KSQcjs.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
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2819
2819
|
form_id: form.id,
|
|
2820
|
-
attempt_id:
|
|
2820
|
+
attempt_id: _chunkNET74KSQcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2821
2821
|
});
|
|
2822
2822
|
clearLocalDraft(form.id);
|
|
2823
2823
|
}
|
|
@@ -2878,7 +2878,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2878
2878
|
}).catch(() => void 0);
|
|
2879
2879
|
} catch (e12) {
|
|
2880
2880
|
}
|
|
2881
|
-
|
|
2881
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2882
2882
|
form_id: formId,
|
|
2883
2883
|
attempt_id: attemptId(),
|
|
2884
2884
|
fields_filled: body.fields_filled,
|
|
@@ -2891,14 +2891,14 @@ 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(_chunkNET74KSQcjs.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 (
|
|
2901
|
+
if (_chunkNET74KSQcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2902
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) {
|
|
@@ -2906,8 +2906,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
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(_chunkNET74KSQcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2910
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.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
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.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 = _chunkNET74KSQcjs.filledRescueFields.call(void 0, visible, names);
|
|
2955
2955
|
if (!filled.length) return;
|
|
2956
2956
|
if (!startedRef.current) {
|
|
2957
2957
|
startedRef.current = true;
|
|
2958
|
-
|
|
2958
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2959
2959
|
}
|
|
2960
|
-
const clean =
|
|
2961
|
-
if (!leadCapturedRef.current &&
|
|
2960
|
+
const clean = _chunkNET74KSQcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2961
|
+
if (!leadCapturedRef.current && _chunkNET74KSQcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2962
2962
|
leadCapturedRef.current = true;
|
|
2963
|
-
|
|
2963
|
+
_chunkNET74KSQcjs.captureFormRescueEvent.call(void 0, _chunkNET74KSQcjs.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: _chunkNET74KSQcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2969
|
+
completion_pct: _chunkNET74KSQcjs.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
|
+
}, _chunkNET74KSQcjs.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
|
+
[_chunkNET74KSQcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2985
|
+
...resumeTokenRef.current ? { [_chunkNET74KSQcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2986
2986
|
};
|
|
2987
2987
|
}, [attemptId, formId]);
|
|
2988
2988
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -9,24 +9,24 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
9
9
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
12
|
+
var _chunk72XMAKDAcjs = require('./chunk-72XMAKDA.cjs');
|
|
13
|
+
require('./chunk-E4LA4BEH.cjs');
|
|
14
|
+
require('./chunk-GY2JESOC.cjs');
|
|
15
|
+
require('./chunk-2IFCRPNP.cjs');
|
|
16
16
|
require('./chunk-HQQE74RO.cjs');
|
|
17
17
|
require('./chunk-DEY6XXGO.cjs');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-XCH7SPGI.cjs');
|
|
19
|
+
require('./chunk-FQSXZC2K.cjs');
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-A6P6DHEZ.cjs');
|
|
22
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-RO72PRQI.cjs');
|
|
24
24
|
require('./chunk-YUMFVQIN.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-CEJDHCFZ.cjs');
|
|
26
|
+
require('./chunk-TQPQKBBL.cjs');
|
|
27
|
+
require('./chunk-PE26VSWT.cjs');
|
|
28
28
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-GZKWF6NH.cjs');
|
|
30
30
|
require('./chunk-EFTUFJS2.cjs');
|
|
31
31
|
require('./chunk-ZOZR3QI2.cjs');
|
|
32
32
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1816,20 +1816,20 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1816
1816
|
require('./chunk-TMVC7S2R.cjs');
|
|
1817
1817
|
require('./chunk-IYHH5EIO.cjs');
|
|
1818
1818
|
require('./chunk-XIBCMGBW.cjs');
|
|
1819
|
-
require('./chunk-
|
|
1820
|
-
require('./chunk-
|
|
1821
|
-
require('./chunk-
|
|
1819
|
+
require('./chunk-NET74KSQ.cjs');
|
|
1820
|
+
require('./chunk-3RYIF4OW.cjs');
|
|
1821
|
+
require('./chunk-SVP6DJFL.cjs');
|
|
1822
1822
|
require('./chunk-JKX2C3I2.cjs');
|
|
1823
1823
|
require('./chunk-7DNL734S.cjs');
|
|
1824
1824
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1825
1825
|
require('./chunk-SKI6NKOE.cjs');
|
|
1826
1826
|
require('./chunk-EWPR7662.cjs');
|
|
1827
|
-
require('./chunk-
|
|
1828
|
-
require('./chunk-
|
|
1829
|
-
require('./chunk-
|
|
1827
|
+
require('./chunk-NS64LMVE.cjs');
|
|
1828
|
+
require('./chunk-22XAPV6N.cjs');
|
|
1829
|
+
require('./chunk-OJJ4RL2T.cjs');
|
|
1830
1830
|
require('./chunk-63N4FN5V.cjs');
|
|
1831
|
-
require('./chunk-
|
|
1832
|
-
require('./chunk-
|
|
1831
|
+
require('./chunk-M7YZGRAV.cjs');
|
|
1832
|
+
require('./chunk-EQZXJUYV.cjs');
|
|
1833
1833
|
require('./chunk-S5C3OZCO.cjs');
|
|
1834
1834
|
require('./chunk-32ASZMTV.cjs');
|
|
1835
1835
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1841,8 +1841,8 @@ require('./chunk-BLH2SFOO.cjs');
|
|
|
1841
1841
|
require('./chunk-I5MSCD57.cjs');
|
|
1842
1842
|
require('./chunk-ASMNNSUQ.cjs');
|
|
1843
1843
|
require('./chunk-CW3ML76U.cjs');
|
|
1844
|
-
require('./chunk-
|
|
1845
|
-
require('./chunk-
|
|
1844
|
+
require('./chunk-MWLD6NXV.cjs');
|
|
1845
|
+
require('./chunk-R3TWQ3ZJ.cjs');
|
|
1846
1846
|
require('./chunk-DGFDBPO7.cjs');
|
|
1847
1847
|
require('./chunk-HOTM4UM6.cjs');
|
|
1848
1848
|
require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -1920,7 +1920,7 @@ var getHref = () => "#";
|
|
|
1920
1920
|
function CloudTenantsScreen(_props) {
|
|
1921
1921
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1922
1922
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1923
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72XMAKDAcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1924
1924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1925
1925
|
}
|
|
1926
1926
|
|