@flamingo-stack/openframe-frontend-core 0.0.787 → 0.0.789
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/case-study-card-FDDS5EG3.cjs +23 -0
- package/dist/{chunk-4ZHLORL3.cjs → chunk-3IJDTTOY.cjs} +5 -5
- package/dist/{chunk-W5ANQT3I.cjs → chunk-4ZLLUZQB.cjs} +171 -171
- package/dist/{chunk-2JDK4FWV.cjs → chunk-6TFNJDEQ.cjs} +207 -207
- package/dist/{chunk-NWNC22IZ.cjs → chunk-6YZNUHXT.cjs} +18 -4
- package/dist/{chunk-RU37NNZG.cjs → chunk-75PJ2SAZ.cjs} +2 -2
- package/dist/{chunk-HAAQUV3O.cjs → chunk-7A23WZY7.cjs} +54 -54
- package/dist/{chunk-YXNETOPJ.cjs → chunk-7NUFHVR6.cjs} +31 -31
- package/dist/{chunk-BP7GLDRJ.cjs → chunk-7VEYDE3T.cjs} +63 -63
- package/dist/{chunk-2U4H74KS.cjs → chunk-CWA6J7KC.cjs} +45 -45
- package/dist/{chunk-75IHI7JO.cjs → chunk-DNJVLDCH.cjs} +44 -44
- package/dist/{chunk-3UB47O7L.cjs → chunk-EQNNPLCN.cjs} +22 -22
- package/dist/{chunk-ICVLG6MM.cjs → chunk-F2GRQ2RL.cjs} +4 -4
- package/dist/{chunk-TC2T5Q7M.cjs → chunk-FJBE3WIJ.cjs} +14 -14
- package/dist/{chunk-Y6KZFPZN.cjs → chunk-G33O32RX.cjs} +12 -12
- package/dist/{chunk-DNB5DELQ.cjs → chunk-GD6RPLHX.cjs} +3 -3
- package/dist/{chunk-3SENOTWT.cjs → chunk-GDOJPPOF.cjs} +110 -110
- package/dist/{chunk-XQAKD5QY.cjs → chunk-GMGM3JV3.cjs} +60 -60
- package/dist/{chunk-J4ZNQ55O.cjs → chunk-HBAVHYXO.cjs} +2 -2
- package/dist/{chunk-ZDP5WEFF.cjs → chunk-HDCAH4AT.cjs} +115 -115
- package/dist/{chunk-L4ORB5RP.cjs → chunk-HJBJHQKE.cjs} +16 -16
- package/dist/{chunk-3ZYZOK7Z.cjs → chunk-HOYSVWKQ.cjs} +6 -6
- package/dist/{chunk-HE6UVP6R.cjs → chunk-HYF4LPXF.cjs} +10 -10
- package/dist/{chunk-UY2NXJFL.cjs → chunk-IKCMAIJ7.cjs} +110 -110
- package/dist/{chunk-5Z77NJZF.cjs → chunk-IODLD4VM.cjs} +7 -7
- package/dist/{chunk-Y5RXNEO2.cjs → chunk-JHFSLLQ6.cjs} +8 -8
- package/dist/{chunk-JHY6H2XR.cjs → chunk-JRTDBPJT.cjs} +3 -3
- package/dist/{chunk-5CAQZRVN.cjs → chunk-JXQNECXM.cjs} +7 -7
- package/dist/{chunk-IZXVGIQX.cjs → chunk-K7I3YYYU.cjs} +46 -45
- package/dist/{chunk-RGGV3YOP.cjs → chunk-KB7SPZFI.cjs} +536 -536
- package/dist/{chunk-YNMGACZT.cjs → chunk-KO4IF7R2.cjs} +3 -3
- package/dist/{chunk-HQJ56PDG.cjs → chunk-MFPTTZI5.cjs} +51 -51
- package/dist/{chunk-K2JUZV3X.cjs → chunk-MMC7H7C6.cjs} +37 -37
- package/dist/{chunk-WM6QMQDO.cjs → chunk-N3PYKA3B.cjs} +13 -13
- package/dist/{chunk-PZ5ZMKKB.cjs → chunk-OCTDWSTS.cjs} +46 -46
- package/dist/{chunk-KKD7XV5A.cjs → chunk-ORIXQCPX.cjs} +29 -29
- package/dist/{chunk-U5Z6FOMI.cjs → chunk-PPBNMZC5.cjs} +13 -13
- package/dist/{chunk-LGUHTN46.cjs → chunk-QELEIFHA.cjs} +61 -61
- package/dist/{chunk-QWVVXXFG.cjs → chunk-QVC5CMC5.cjs} +4 -4
- package/dist/{chunk-PCBKE6LA.cjs → chunk-QVF5A6UT.cjs} +4 -4
- package/dist/{chunk-UVPV6TUI.cjs → chunk-QVKWKY4O.cjs} +23 -23
- package/dist/{chunk-CF6IERIA.cjs → chunk-RJIFPWO4.cjs} +42 -42
- package/dist/{chunk-JSNLMPXN.cjs → chunk-RKWEFZ6P.cjs} +3 -3
- package/dist/{chunk-TRV5GGOH.cjs → chunk-SBC7RG7O.cjs} +61 -61
- package/dist/{chunk-WFMLODQ4.cjs → chunk-UB3C22AW.cjs} +197 -197
- package/dist/{chunk-MZOODES3.cjs → chunk-UCHO4BOS.cjs} +5 -5
- package/dist/{chunk-HQY6KYUD.cjs → chunk-W4RRVQZQ.cjs} +320 -320
- package/dist/{chunk-JFYHFBJ7.cjs → chunk-WDUHSGRT.cjs} +10 -10
- package/dist/{chunk-BAM6JT53.cjs → chunk-XI4KB7EF.cjs} +17 -17
- package/dist/{chunk-LCSYTFFO.cjs → chunk-YWPYSQYG.cjs} +14 -14
- package/dist/{chunk-HF35SNRU.cjs → chunk-ZH7SZ46Q.cjs} +2039 -2027
- package/dist/{chunk-NR6YD7BL.cjs → chunk-ZKNEKZS5.cjs} +19 -19
- package/dist/{cloud-tenants-Y2GSQAMJ.cjs → cloud-tenants-3SFM4VJZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-info-card.js +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +206 -204
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/actions-menu.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts +1 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +18 -4
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +2 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/page-actions.d.ts +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +17 -19
- package/dist/components/ui/step-arrow-button.d.ts +16 -0
- package/dist/components/ui/step-arrow-button.d.ts.map +1 -0
- package/dist/components/ui/step-arrow-button.js +16 -0
- package/dist/{devices-E3QVSJ3T.cjs → devices-PE57CA5O.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-IH6X2KIS.cjs → embeddable-chat-TIUNTOXQ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-A6AETFRT.cjs → knowledge-ZFJQMMR2.cjs} +33 -33
- package/dist/{logs-GB6UWTM6.cjs → logs-4GKGMB7A.cjs} +41 -41
- package/dist/{policies-DGFI3VSQ.cjs → policies-TRWFGAEE.cjs} +36 -36
- package/dist/{remote-session-AXKWTU4I.cjs → remote-session-WMAV72M7.cjs} +17 -17
- package/dist/{scripts-OV2PPYGS.cjs → scripts-2SHRGH3L.cjs} +39 -39
- package/dist/{software-update-LUR2BU2D.cjs → software-update-ROHSE2BE.cjs} +36 -36
- package/dist/{tickets-board-SXETISNL.cjs → tickets-board-37LBIQ65.cjs} +17 -17
- package/dist/{video-file-player-XWZIO3YN.cjs → video-file-player-HZPMCCYF.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/mingo-info-card.tsx +1 -1
- package/src/components/ui/actions-menu.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +18 -4
- package/src/components/ui/button/button.tsx +1 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/page-actions.tsx +1 -0
- package/src/components/ui/snap-carousel.tsx +23 -21
- package/src/components/ui/step-arrow-button.tsx +32 -0
- package/dist/case-study-card-236RTB5D.cjs +0 -23
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkUCHO4BOScjs = require('./chunk-UCHO4BOS.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ var _chunkMZOODES3cjs = require('./chunk-MZOODES3.cjs');
|
|
|
41
41
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkHBAVHYXOcjs = require('./chunk-HBAVHYXO.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -67,11 +67,11 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
67
67
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunk6YZNUHXTcjs = require('./chunk-6YZNUHXT.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkKHKPLOU4cjs = require('./chunk-KHKPLOU4.cjs');
|
|
@@ -808,7 +808,7 @@ function usePlatformConfig() {
|
|
|
808
808
|
label: platform.label
|
|
809
809
|
}))
|
|
810
810
|
];
|
|
811
|
-
const selectableOptions =
|
|
811
|
+
const selectableOptions = _chunkUCHO4BOScjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
812
812
|
return {
|
|
813
813
|
platforms,
|
|
814
814
|
platformOptions,
|
|
@@ -857,8 +857,8 @@ function ToastHeader({
|
|
|
857
857
|
className,
|
|
858
858
|
showProgress = true
|
|
859
859
|
}) {
|
|
860
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
860
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative flex w-full items-start gap-2 overflow-hidden bg-ods-card p-3", className), children: [
|
|
861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "size-[9px] rounded-full", dotColorByVariant[variant]) }) }),
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
863
863
|
title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
864
864
|
"p",
|
|
@@ -878,7 +878,7 @@ function ToastHeader({
|
|
|
878
878
|
) : null
|
|
879
879
|
] }),
|
|
880
880
|
dismissible ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
881
|
+
_chunkK7I3YYYUcjs.Button,
|
|
882
882
|
{
|
|
883
883
|
variant: "bare",
|
|
884
884
|
size: "icon-sm",
|
|
@@ -892,7 +892,7 @@ function ToastHeader({
|
|
|
892
892
|
showProgress && duration !== Infinity && duration > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
893
893
|
"div",
|
|
894
894
|
{
|
|
895
|
-
className:
|
|
895
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "absolute inset-x-0 bottom-0 h-1 origin-left", progressColorByVariant[variant]),
|
|
896
896
|
style: {
|
|
897
897
|
animation: `toast-progress ${duration}ms linear forwards`
|
|
898
898
|
}
|
|
@@ -913,7 +913,7 @@ function ToastCard({
|
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
role: "status",
|
|
916
|
-
className:
|
|
916
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
917
917
|
"w-[368px] max-w-[calc(100vw-32px)] overflow-hidden rounded-md border border-ods-border bg-ods-card shadow-lg",
|
|
918
918
|
className
|
|
919
919
|
),
|
|
@@ -961,7 +961,7 @@ function CommandApprovalToast({
|
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
963
|
role: "status",
|
|
964
|
-
className:
|
|
964
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
965
965
|
"flex w-[368px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg shadow-lg",
|
|
966
966
|
className
|
|
967
967
|
),
|
|
@@ -988,13 +988,13 @@ 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, _chunkHBAVHYXOcjs.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,
|
|
995
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4", children: [
|
|
996
996
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
997
|
-
|
|
997
|
+
_chunkK7I3YYYUcjs.Button,
|
|
998
998
|
{
|
|
999
999
|
variant: "accent",
|
|
1000
1000
|
size: "small",
|
|
@@ -1006,7 +1006,7 @@ function CommandApprovalToast({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
),
|
|
1008
1008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1009
|
-
|
|
1009
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1010
1010
|
{
|
|
1011
1011
|
variant: "outline",
|
|
1012
1012
|
size: "small",
|
|
@@ -1022,7 +1022,7 @@ function CommandApprovalToast({
|
|
|
1022
1022
|
] })
|
|
1023
1023
|
}
|
|
1024
1024
|
),
|
|
1025
|
-
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1025
|
+
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "row", type: "button", onClick: () => setExpanded(true), "aria-expanded": false, children: [
|
|
1026
1026
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-1", children: "Show Command" }),
|
|
1027
1027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { size: 16 })
|
|
1028
1028
|
] })
|
|
@@ -1290,7 +1290,7 @@ function useDownloads({
|
|
|
1290
1290
|
initialData,
|
|
1291
1291
|
enabled: enabledGiven = true
|
|
1292
1292
|
} = {}) {
|
|
1293
|
-
const held =
|
|
1293
|
+
const held = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
1294
1294
|
const enabled = enabledGiven && !held;
|
|
1295
1295
|
const entry = entryFor(endpoint);
|
|
1296
1296
|
if (initialData && entry.state.data !== initialData && !entry.request) {
|
|
@@ -1323,10 +1323,10 @@ function useDownloads({
|
|
|
1323
1323
|
}
|
|
1324
1324
|
function useVisitorDesktopDownload(options = {}) {
|
|
1325
1325
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1326
|
-
const visitor =
|
|
1326
|
+
const visitor = _chunkUCHO4BOScjs.useVisitorOs.call(void 0, );
|
|
1327
1327
|
const { data, error } = useDownloads(options);
|
|
1328
1328
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1329
|
-
const os =
|
|
1329
|
+
const os = _chunkUCHO4BOScjs.desktopOsOf.call(void 0, visitor.os);
|
|
1330
1330
|
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));
|
|
1331
1331
|
return { known: true, download };
|
|
1332
1332
|
}
|
|
@@ -2628,7 +2628,7 @@ function useAccessCodeIntegration() {
|
|
|
2628
2628
|
const validate = async (email, code) => {
|
|
2629
2629
|
setIsValidating(true);
|
|
2630
2630
|
try {
|
|
2631
|
-
return await
|
|
2631
|
+
return await _chunkUCHO4BOScjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2632
2632
|
} finally {
|
|
2633
2633
|
setIsValidating(false);
|
|
2634
2634
|
}
|
|
@@ -2636,7 +2636,7 @@ function useAccessCodeIntegration() {
|
|
|
2636
2636
|
const consume = async (email, code) => {
|
|
2637
2637
|
setIsConsuming(true);
|
|
2638
2638
|
try {
|
|
2639
|
-
return await
|
|
2639
|
+
return await _chunkUCHO4BOScjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2640
2640
|
} finally {
|
|
2641
2641
|
setIsConsuming(false);
|
|
2642
2642
|
}
|
|
@@ -2645,7 +2645,7 @@ function useAccessCodeIntegration() {
|
|
|
2645
2645
|
setIsValidating(true);
|
|
2646
2646
|
setIsConsuming(true);
|
|
2647
2647
|
try {
|
|
2648
|
-
return await
|
|
2648
|
+
return await _chunkUCHO4BOScjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2649
2649
|
} finally {
|
|
2650
2650
|
setIsValidating(false);
|
|
2651
2651
|
setIsConsuming(false);
|
|
@@ -2675,7 +2675,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
function useClaudeMirrorSrc(url) {
|
|
2677
2677
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2678
|
-
const mirrorPath =
|
|
2678
|
+
const mirrorPath = _chunkUCHO4BOScjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2679
2679
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2680
2680
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2681
2681
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2778,8 +2778,8 @@ function useHumanitySignals() {
|
|
|
2778
2778
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2779
2779
|
const getSignals = _react.useCallback.call(void 0,
|
|
2780
2780
|
() => ({
|
|
2781
|
-
[
|
|
2782
|
-
[
|
|
2781
|
+
[_chunkUCHO4BOScjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2782
|
+
[_chunkUCHO4BOScjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2783
2783
|
}),
|
|
2784
2784
|
[]
|
|
2785
2785
|
);
|
|
@@ -2787,7 +2787,7 @@ function useHumanitySignals() {
|
|
|
2787
2787
|
if (ref.current) ref.current.value = "";
|
|
2788
2788
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2789
2789
|
}, []);
|
|
2790
|
-
return { honeypotInputProps: { ref, name:
|
|
2790
|
+
return { honeypotInputProps: { ref, name: _chunkUCHO4BOScjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2791
2791
|
}
|
|
2792
2792
|
|
|
2793
2793
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2800,9 +2800,9 @@ function readLocalDraft(formId) {
|
|
|
2800
2800
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2801
2801
|
if (!raw) return null;
|
|
2802
2802
|
const parsed = JSON.parse(raw);
|
|
2803
|
-
if (!
|
|
2803
|
+
if (!_chunkUCHO4BOScjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2804
2804
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2805
|
-
return { attemptId: parsed.attemptId, values:
|
|
2805
|
+
return { attemptId: parsed.attemptId, values: _chunkUCHO4BOScjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2806
2806
|
} catch (e8) {
|
|
2807
2807
|
return null;
|
|
2808
2808
|
}
|
|
@@ -2822,9 +2822,9 @@ function clearLocalDraft(formId) {
|
|
|
2822
2822
|
function completeFormRescue(form, attemptId) {
|
|
2823
2823
|
if (!form || typeof window === "undefined") return;
|
|
2824
2824
|
const local = readLocalDraft(form.id);
|
|
2825
|
-
|
|
2825
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2826
2826
|
form_id: form.id,
|
|
2827
|
-
attempt_id:
|
|
2827
|
+
attempt_id: _chunkUCHO4BOScjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2828
2828
|
});
|
|
2829
2829
|
clearLocalDraft(form.id);
|
|
2830
2830
|
}
|
|
@@ -2885,7 +2885,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2885
2885
|
}).catch(() => void 0);
|
|
2886
2886
|
} catch (e12) {
|
|
2887
2887
|
}
|
|
2888
|
-
|
|
2888
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.progress, {
|
|
2889
2889
|
form_id: formId,
|
|
2890
2890
|
attempt_id: attemptId(),
|
|
2891
2891
|
fields_filled: body.fields_filled,
|
|
@@ -2898,14 +2898,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2898
2898
|
_react.useEffect.call(void 0, () => {
|
|
2899
2899
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2900
2900
|
let cancelled = false;
|
|
2901
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2901
|
+
const token = new URLSearchParams(window.location.search).get(_chunkUCHO4BOScjs.FORM_RESCUE_RESUME_PARAM);
|
|
2902
2902
|
const restoreLocal = () => {
|
|
2903
2903
|
const local = readLocalDraft(formId);
|
|
2904
2904
|
if (!local) return;
|
|
2905
2905
|
attemptIdRef.current = local.attemptId;
|
|
2906
2906
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2907
2907
|
};
|
|
2908
|
-
if (
|
|
2908
|
+
if (_chunkUCHO4BOScjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2909
2909
|
_chunk7PNRXJX2cjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2910
2910
|
if (cancelled) return;
|
|
2911
2911
|
if (!data || data.form_id !== formId) {
|
|
@@ -2913,8 +2913,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2913
2913
|
return;
|
|
2914
2914
|
}
|
|
2915
2915
|
resumeTokenRef.current = token;
|
|
2916
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2917
|
-
|
|
2916
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkUCHO4BOScjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2917
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2918
2918
|
}).catch(() => {
|
|
2919
2919
|
if (!cancelled) restoreLocal();
|
|
2920
2920
|
});
|
|
@@ -2934,7 +2934,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2934
2934
|
timerRef.current = null;
|
|
2935
2935
|
}
|
|
2936
2936
|
send(true);
|
|
2937
|
-
|
|
2937
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2938
2938
|
form_id: formId,
|
|
2939
2939
|
attempt_id: attemptId(),
|
|
2940
2940
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2958,22 +2958,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2958
2958
|
const names = fieldNamesRef.current;
|
|
2959
2959
|
const visible = {};
|
|
2960
2960
|
for (const name of names) visible[name] = values[name];
|
|
2961
|
-
const filled =
|
|
2961
|
+
const filled = _chunkUCHO4BOScjs.filledRescueFields.call(void 0, visible, names);
|
|
2962
2962
|
if (!filled.length) return;
|
|
2963
2963
|
if (!startedRef.current) {
|
|
2964
2964
|
startedRef.current = true;
|
|
2965
|
-
|
|
2965
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2966
2966
|
}
|
|
2967
|
-
const clean =
|
|
2968
|
-
if (!leadCapturedRef.current &&
|
|
2967
|
+
const clean = _chunkUCHO4BOScjs.sanitizeRescueValues.call(void 0, visible);
|
|
2968
|
+
if (!leadCapturedRef.current && _chunkUCHO4BOScjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2969
2969
|
leadCapturedRef.current = true;
|
|
2970
|
-
|
|
2970
|
+
_chunkUCHO4BOScjs.captureFormRescueEvent.call(void 0, _chunkUCHO4BOScjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2971
2971
|
}
|
|
2972
2972
|
latestRef.current = {
|
|
2973
2973
|
values: clean,
|
|
2974
2974
|
fields_filled: filled,
|
|
2975
|
-
last_field:
|
|
2976
|
-
completion_pct:
|
|
2975
|
+
last_field: _chunkUCHO4BOScjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2976
|
+
completion_pct: _chunkUCHO4BOScjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2977
2977
|
};
|
|
2978
2978
|
dirtyRef.current = true;
|
|
2979
2979
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2981,15 +2981,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2981
2981
|
timerRef.current = setTimeout(() => {
|
|
2982
2982
|
timerRef.current = null;
|
|
2983
2983
|
send(false);
|
|
2984
|
-
},
|
|
2984
|
+
}, _chunkUCHO4BOScjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2985
2985
|
},
|
|
2986
2986
|
[attemptId, formId, send]
|
|
2987
2987
|
);
|
|
2988
2988
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2989
2989
|
if (!formId) return {};
|
|
2990
2990
|
return {
|
|
2991
|
-
[
|
|
2992
|
-
...resumeTokenRef.current ? { [
|
|
2991
|
+
[_chunkUCHO4BOScjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2992
|
+
...resumeTokenRef.current ? { [_chunkUCHO4BOScjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2993
2993
|
};
|
|
2994
2994
|
}, [attemptId, formId]);
|
|
2995
2995
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZH7SZ46Qcjs = require('./chunk-ZH7SZ46Q.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6TFNJDEQcjs = require('./chunk-6TFNJDEQ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCWA6J7KCcjs = require('./chunk-CWA6J7KC.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkUB3C22AWcjs = require('./chunk-UB3C22AW.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkKB7SPZFIcjs = require('./chunk-KB7SPZFI.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkW4RRVQZQcjs = require('./chunk-W4RRVQZQ.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkFJBE3WIJcjs = require('./chunk-FJBE3WIJ.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkJRTDBPJTcjs = require('./chunk-JRTDBPJT.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
|
|
40
40
|
|
|
41
41
|
// src/components/contact/contact-form.tsx
|
|
42
42
|
var _zod = require('@hookform/resolvers/zod');
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkKB7SPZFIcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkCWA6J7KCcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkCWA6J7KCcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkCWA6J7KCcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkW4RRVQZQcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkW4RRVQZQcjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,22 +203,22 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkUB3C22AWcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZH7SZ46Qcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
216
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
216
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "name", children: [
|
|
217
217
|
"Your Name",
|
|
218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
218
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFJBE3WIJcjs.RequiredMark, {})
|
|
219
219
|
] }),
|
|
220
220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
221
|
-
|
|
221
|
+
_chunkFJBE3WIJcjs.Input,
|
|
222
222
|
{
|
|
223
223
|
id: "name",
|
|
224
224
|
type: "text",
|
|
@@ -233,12 +233,12 @@ function ContactForm({
|
|
|
233
233
|
errors.name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "name-error", className: "mt-1 text-ods-error text-h6", children: errors.name.message })
|
|
234
234
|
] }),
|
|
235
235
|
showEmail && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
236
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
236
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "email", children: [
|
|
237
237
|
"Email",
|
|
238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFJBE3WIJcjs.RequiredMark, {})
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
-
|
|
241
|
+
_chunkFJBE3WIJcjs.Input,
|
|
242
242
|
{
|
|
243
243
|
id: "email",
|
|
244
244
|
type: "email",
|
|
@@ -255,46 +255,46 @@ function ContactForm({
|
|
|
255
255
|
] }),
|
|
256
256
|
(showCompanySize || showReferralSource) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
257
257
|
showCompanySize && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
260
|
_reacthookform.Controller,
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6TFNJDEQcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunk6TFNJDEQcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
278
|
errors.companySize && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "companySize-error", className: "mt-1 text-ods-error text-h6", children: errors.companySize.message })
|
|
279
279
|
] }),
|
|
280
280
|
showReferralSource && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
283
|
_reacthookform.Controller,
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6TFNJDEQcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunk6TFNJDEQcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -302,39 +302,39 @@ function ContactForm({
|
|
|
302
302
|
] })
|
|
303
303
|
] }),
|
|
304
304
|
showHelpCategory && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
305
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
305
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "helpCategory", children: [
|
|
306
306
|
"Choose your main interest",
|
|
307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFJBE3WIJcjs.RequiredMark, {})
|
|
308
308
|
] }),
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
310
|
_reacthookform.Controller,
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6TFNJDEQcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunk6TFNJDEQcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6TFNJDEQcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
329
|
errors.helpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "helpCategory-error", className: "mt-1 text-ods-error text-h6", children: errors.helpCategory.message })
|
|
330
330
|
] }),
|
|
331
331
|
showMessage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-grow flex-col", children: [
|
|
332
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
332
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "message", children: [
|
|
333
333
|
"Your Message",
|
|
334
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
334
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFJBE3WIJcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkZH7SZ46Qcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkKB7SPZFIcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkKB7SPZFIcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -372,7 +372,7 @@ function ContactForm({
|
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-auto flex w-full flex-col items-center justify-end gap-4 pt-2 content-md:flex-row content-md:gap-6", children: [
|
|
373
373
|
footerText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-center text-ods-text-secondary text-h6 content-md:text-left", children: footerText }),
|
|
374
374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
-
|
|
375
|
+
_chunkK7I3YYYUcjs.Button,
|
|
376
376
|
{
|
|
377
377
|
type: "submit",
|
|
378
378
|
loading: isSubmitting,
|