@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.812
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{case-study-card-AMINZROX.cjs → case-study-card-3XLKCGLV.cjs} +5 -5
- package/dist/{chunk-VXMPVDOS.cjs → chunk-2IZHRVKD.cjs} +24 -24
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-ACCZCRXT.cjs → chunk-4ZTGCCNI.cjs} +11 -11
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-PCVY63WQ.cjs → chunk-7HNZHENA.cjs} +13 -13
- package/dist/{chunk-OQDPZOGC.cjs → chunk-7Q2PFKU3.cjs} +4 -4
- package/dist/{chunk-NZSWROGM.cjs → chunk-7TBXHZLB.cjs} +2 -2
- package/dist/{chunk-Q7QYAINS.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-CUDJP7R7.cjs} +11 -11
- package/dist/{chunk-O32RLIN4.cjs → chunk-D2EPUQ35.cjs} +4 -4
- package/dist/{chunk-WX5WDSKV.cjs → chunk-D322VUSH.cjs} +498 -498
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-DA2TWDGJ.cjs} +6 -6
- package/dist/{chunk-ZW25QUJK.cjs → chunk-E64HJMY6.cjs} +11 -11
- package/dist/{chunk-IQLXO6EI.cjs → chunk-EPMAMFQE.cjs} +89 -89
- package/dist/{chunk-66J7ZSI5.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-TKK66KHU.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-JMRO7CK2.cjs} +21 -21
- package/dist/{chunk-CPP2APON.cjs → chunk-K7IX2NAG.cjs} +78 -78
- package/dist/{chunk-R55KNVPR.cjs → chunk-NEDFRRLM.cjs} +47 -47
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-CB77J5L7.cjs → chunk-PQ76VC2P.cjs} +187 -187
- package/dist/{chunk-XLEWM5X5.cjs → chunk-RSLLS6C4.cjs} +41 -41
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-SC3I3YWM.cjs} +17 -17
- package/dist/{chunk-J6C7F63P.cjs → chunk-TCMUVY3M.cjs} +87 -87
- package/dist/{chunk-PMOMZSCX.cjs → chunk-TS4PKCG3.cjs} +2 -2
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-VEN6MGNX.cjs} +33 -33
- package/dist/{chunk-MDBOYMCW.cjs → chunk-VPYGK4AV.cjs} +15 -15
- package/dist/{chunk-UP3TLY2V.cjs → chunk-VT2ACO3Z.cjs} +129 -129
- package/dist/{chunk-243TS7YL.cjs → chunk-VYLBW6ZV.cjs} +18 -18
- package/dist/{chunk-FK2WFU7R.cjs → chunk-WFJDKP2Q.cjs} +4 -4
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-ERLMCSGF.cjs → chunk-ZFUNSXSH.cjs} +4 -4
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-CW3I7AIM.cjs} +17 -17
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/index.cjs +13 -13
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +18 -18
- package/dist/components/docs/index.cjs +21 -21
- package/dist/components/embeds/index.cjs +18 -18
- package/dist/components/faq/index.cjs +19 -19
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +17 -17
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +75 -75
- package/dist/components/meeting-scheduler/index.cjs +109 -63
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +20 -20
- package/dist/components/onboarding-guides/index.cjs +20 -20
- package/dist/components/product-demo/index.cjs +28 -28
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +24 -24
- package/dist/components/ui/index.cjs +17 -17
- package/dist/{devices-H5Y4DBVC.cjs → devices-KKRAB4Q2.cjs} +18 -18
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-5UO66U4F.cjs} +81 -81
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +22 -22
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-Z2PTGBA3.cjs} +18 -18
- package/dist/{logs-OL7ETVK6.cjs → logs-6T5VK2TY.cjs} +25 -25
- package/dist/{policies-BCECWQ3F.cjs → policies-JPIC5YDE.cjs} +21 -21
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-VBVUMIUP.cjs} +6 -6
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BSYJJFBQ.cjs} +24 -24
- package/dist/{software-update-U5ESXRG5.cjs → software-update-KVEYYORC.cjs} +21 -21
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-YRZ54JJS.cjs} +10 -10
- package/dist/utils/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkZFUNSXSHcjs = require('./chunk-ZFUNSXSH.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ var _chunkERLMCSGFcjs = require('./chunk-ERLMCSGF.cjs');
|
|
|
41
41
|
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk4IU462LRcjs = require('./chunk-4IU462LR.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -808,7 +808,7 @@ function usePlatformConfig() {
|
|
|
808
808
|
label: platform.label
|
|
809
809
|
}))
|
|
810
810
|
];
|
|
811
|
-
const selectableOptions =
|
|
811
|
+
const selectableOptions = _chunkZFUNSXSHcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
812
812
|
return {
|
|
813
813
|
platforms,
|
|
814
814
|
platformOptions,
|
|
@@ -988,7 +988,7 @@ function CommandApprovalToast({
|
|
|
988
988
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
989
989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 w-full items-center gap-2 border-b border-ods-border bg-ods-card px-3 py-2", children: [
|
|
990
990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
991
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
991
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4IU462LRcjs.ToolIcon, { toolType, size: 16 }) : null
|
|
992
992
|
] }),
|
|
993
993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
994
994
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
@@ -1324,10 +1324,10 @@ function useDownloads({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function useVisitorDesktopDownload(options = {}) {
|
|
1326
1326
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1327
|
-
const visitor =
|
|
1327
|
+
const visitor = _chunkZFUNSXSHcjs.useVisitorOs.call(void 0, );
|
|
1328
1328
|
const { data, error } = useDownloads(options);
|
|
1329
1329
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1330
|
-
const os =
|
|
1330
|
+
const os = _chunkZFUNSXSHcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1331
1331
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1332
1332
|
return { known: true, download };
|
|
1333
1333
|
}
|
|
@@ -2629,7 +2629,7 @@ function useAccessCodeIntegration() {
|
|
|
2629
2629
|
const validate = async (email, code) => {
|
|
2630
2630
|
setIsValidating(true);
|
|
2631
2631
|
try {
|
|
2632
|
-
return await
|
|
2632
|
+
return await _chunkZFUNSXSHcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
setIsValidating(false);
|
|
2635
2635
|
}
|
|
@@ -2637,7 +2637,7 @@ function useAccessCodeIntegration() {
|
|
|
2637
2637
|
const consume = async (email, code) => {
|
|
2638
2638
|
setIsConsuming(true);
|
|
2639
2639
|
try {
|
|
2640
|
-
return await
|
|
2640
|
+
return await _chunkZFUNSXSHcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2641
2641
|
} finally {
|
|
2642
2642
|
setIsConsuming(false);
|
|
2643
2643
|
}
|
|
@@ -2646,7 +2646,7 @@ function useAccessCodeIntegration() {
|
|
|
2646
2646
|
setIsValidating(true);
|
|
2647
2647
|
setIsConsuming(true);
|
|
2648
2648
|
try {
|
|
2649
|
-
return await
|
|
2649
|
+
return await _chunkZFUNSXSHcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2650
2650
|
} finally {
|
|
2651
2651
|
setIsValidating(false);
|
|
2652
2652
|
setIsConsuming(false);
|
|
@@ -2676,7 +2676,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
function useClaudeMirrorSrc(url) {
|
|
2678
2678
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2679
|
-
const mirrorPath =
|
|
2679
|
+
const mirrorPath = _chunkZFUNSXSHcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2680
2680
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2681
2681
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2682
2682
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2779,8 +2779,8 @@ function useHumanitySignals() {
|
|
|
2779
2779
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2780
2780
|
const getSignals = _react.useCallback.call(void 0,
|
|
2781
2781
|
() => ({
|
|
2782
|
-
[
|
|
2783
|
-
[
|
|
2782
|
+
[_chunkZFUNSXSHcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2783
|
+
[_chunkZFUNSXSHcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2784
2784
|
}),
|
|
2785
2785
|
[]
|
|
2786
2786
|
);
|
|
@@ -2788,7 +2788,7 @@ function useHumanitySignals() {
|
|
|
2788
2788
|
if (ref.current) ref.current.value = "";
|
|
2789
2789
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2790
2790
|
}, []);
|
|
2791
|
-
return { honeypotInputProps: { ref, name:
|
|
2791
|
+
return { honeypotInputProps: { ref, name: _chunkZFUNSXSHcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2792
2792
|
}
|
|
2793
2793
|
|
|
2794
2794
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2801,9 +2801,9 @@ function readLocalDraft(formId) {
|
|
|
2801
2801
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2802
2802
|
if (!raw) return null;
|
|
2803
2803
|
const parsed = JSON.parse(raw);
|
|
2804
|
-
if (!
|
|
2804
|
+
if (!_chunkZFUNSXSHcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2805
2805
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2806
|
-
return { attemptId: parsed.attemptId, values:
|
|
2806
|
+
return { attemptId: parsed.attemptId, values: _chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2807
2807
|
} catch (e8) {
|
|
2808
2808
|
return null;
|
|
2809
2809
|
}
|
|
@@ -2823,9 +2823,9 @@ function clearLocalDraft(formId) {
|
|
|
2823
2823
|
function completeFormRescue(form, attemptId) {
|
|
2824
2824
|
if (!form || typeof window === "undefined") return;
|
|
2825
2825
|
const local = readLocalDraft(form.id);
|
|
2826
|
-
|
|
2826
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2827
2827
|
form_id: form.id,
|
|
2828
|
-
attempt_id:
|
|
2828
|
+
attempt_id: _chunkZFUNSXSHcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2829
2829
|
});
|
|
2830
2830
|
clearLocalDraft(form.id);
|
|
2831
2831
|
}
|
|
@@ -2886,7 +2886,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2886
2886
|
}).catch(() => void 0);
|
|
2887
2887
|
} catch (e12) {
|
|
2888
2888
|
}
|
|
2889
|
-
|
|
2889
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2890
2890
|
form_id: formId,
|
|
2891
2891
|
attempt_id: attemptId(),
|
|
2892
2892
|
fields_filled: body.fields_filled,
|
|
@@ -2899,14 +2899,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2899
2899
|
_react.useEffect.call(void 0, () => {
|
|
2900
2900
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2901
2901
|
let cancelled = false;
|
|
2902
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2902
|
+
const token = new URLSearchParams(window.location.search).get(_chunkZFUNSXSHcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2903
2903
|
const restoreLocal = () => {
|
|
2904
2904
|
const local = readLocalDraft(formId);
|
|
2905
2905
|
if (!local) return;
|
|
2906
2906
|
attemptIdRef.current = local.attemptId;
|
|
2907
2907
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2908
2908
|
};
|
|
2909
|
-
if (
|
|
2909
|
+
if (_chunkZFUNSXSHcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2910
2910
|
_chunkFX35L4Y6cjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2911
2911
|
if (cancelled) return;
|
|
2912
2912
|
if (!data || data.form_id !== formId) {
|
|
@@ -2914,8 +2914,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2914
2914
|
return;
|
|
2915
2915
|
}
|
|
2916
2916
|
resumeTokenRef.current = token;
|
|
2917
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2918
|
-
|
|
2917
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2918
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2919
2919
|
}).catch(() => {
|
|
2920
2920
|
if (!cancelled) restoreLocal();
|
|
2921
2921
|
});
|
|
@@ -2935,7 +2935,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2935
2935
|
timerRef.current = null;
|
|
2936
2936
|
}
|
|
2937
2937
|
send(true);
|
|
2938
|
-
|
|
2938
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2939
2939
|
form_id: formId,
|
|
2940
2940
|
attempt_id: attemptId(),
|
|
2941
2941
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2959,22 +2959,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2959
2959
|
const names = fieldNamesRef.current;
|
|
2960
2960
|
const visible = {};
|
|
2961
2961
|
for (const name of names) visible[name] = values[name];
|
|
2962
|
-
const filled =
|
|
2962
|
+
const filled = _chunkZFUNSXSHcjs.filledRescueFields.call(void 0, visible, names);
|
|
2963
2963
|
if (!filled.length) return;
|
|
2964
2964
|
if (!startedRef.current) {
|
|
2965
2965
|
startedRef.current = true;
|
|
2966
|
-
|
|
2966
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2967
2967
|
}
|
|
2968
|
-
const clean =
|
|
2969
|
-
if (!leadCapturedRef.current &&
|
|
2968
|
+
const clean = _chunkZFUNSXSHcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2969
|
+
if (!leadCapturedRef.current && _chunkZFUNSXSHcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2970
2970
|
leadCapturedRef.current = true;
|
|
2971
|
-
|
|
2971
|
+
_chunkZFUNSXSHcjs.captureFormRescueEvent.call(void 0, _chunkZFUNSXSHcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2972
2972
|
}
|
|
2973
2973
|
latestRef.current = {
|
|
2974
2974
|
values: clean,
|
|
2975
2975
|
fields_filled: filled,
|
|
2976
|
-
last_field:
|
|
2977
|
-
completion_pct:
|
|
2976
|
+
last_field: _chunkZFUNSXSHcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2977
|
+
completion_pct: _chunkZFUNSXSHcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2978
2978
|
};
|
|
2979
2979
|
dirtyRef.current = true;
|
|
2980
2980
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2982,15 +2982,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2982
2982
|
timerRef.current = setTimeout(() => {
|
|
2983
2983
|
timerRef.current = null;
|
|
2984
2984
|
send(false);
|
|
2985
|
-
},
|
|
2985
|
+
}, _chunkZFUNSXSHcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2986
2986
|
},
|
|
2987
2987
|
[attemptId, formId, send]
|
|
2988
2988
|
);
|
|
2989
2989
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2990
2990
|
if (!formId) return {};
|
|
2991
2991
|
return {
|
|
2992
|
-
[
|
|
2993
|
-
...resumeTokenRef.current ? { [
|
|
2992
|
+
[_chunkZFUNSXSHcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2993
|
+
...resumeTokenRef.current ? { [_chunkZFUNSXSHcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2994
2994
|
};
|
|
2995
2995
|
}, [attemptId, formId]);
|
|
2996
2996
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVEN6MGNXcjs = require('./chunk-VEN6MGNX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTCMUVY3Mcjs = require('./chunk-TCMUVY3M.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPQ76VC2Pcjs = require('./chunk-PQ76VC2P.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4ZTGCCNIcjs = require('./chunk-4ZTGCCNI.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunkPQ76VC2Pcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkTCMUVY3Mcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
146
|
const { ref, inView } = _chunkCNTBGJA7cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkTCMUVY3Mcjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunk4ZTGCCNIcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunkPQ76VC2Pcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunkPQ76VC2Pcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -341,7 +341,7 @@ function GroupedFaqList({
|
|
|
341
341
|
}, [groups, hashTarget]);
|
|
342
342
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
343
343
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
344
|
-
|
|
344
|
+
_chunkVEN6MGNXcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX });
|
|
345
345
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
346
346
|
if (pillSyncedHash !== hashTarget) {
|
|
347
347
|
setPillSyncedHash(hashTarget);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunk4ZTGCCNIcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|