@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
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXZKYU57Acjs = require('../../chunk-XZKYU57A.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk743MM5B6cjs = require('../../chunk-743MM5B6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCOTJLBOScjs = require('../../chunk-COTJLBOS.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,8 +22,8 @@ var _chunkQ7QYAINScjs = require('../../chunk-Q7QYAINS.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('../../chunk-
|
|
25
|
+
var _chunkD322VUSHcjs = require('../../chunk-D322VUSH.cjs');
|
|
26
|
+
require('../../chunk-CUDJP7R7.cjs');
|
|
27
27
|
require('../../chunk-SFUNXMY3.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ require('../../chunk-SFUNXMY3.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkVYLBW6ZVcjs = require('../../chunk-VYLBW6ZV.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkVEN6MGNXcjs = require('../../chunk-VEN6MGNX.cjs');
|
|
44
44
|
require('../../chunk-APOMNC7H.cjs');
|
|
45
45
|
require('../../chunk-24I6RFVU.cjs');
|
|
46
46
|
require('../../chunk-7Z536SPR.cjs');
|
|
@@ -51,13 +51,18 @@ var _chunkYR74H7Z3cjs = require('../../chunk-YR74H7Z3.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkTCMUVY3Mcjs = require('../../chunk-TCMUVY3M.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
58
|
-
require('../../chunk-
|
|
57
|
+
var _chunkPQ76VC2Pcjs = require('../../chunk-PQ76VC2P.cjs');
|
|
58
|
+
require('../../chunk-E64HJMY6.cjs');
|
|
59
59
|
require('../../chunk-ZD6SZLO2.cjs');
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
var _chunk7TBXHZLBcjs = require('../../chunk-7TBXHZLB.cjs');
|
|
61
66
|
require('../../chunk-JTIGKLKJ.cjs');
|
|
62
67
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
63
68
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1849,20 +1854,20 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1849
1854
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1850
1855
|
|
|
1851
1856
|
|
|
1852
|
-
var
|
|
1857
|
+
var _chunkZFUNSXSHcjs = require('../../chunk-ZFUNSXSH.cjs');
|
|
1853
1858
|
require('../../chunk-CNTBGJA7.cjs');
|
|
1854
|
-
require('../../chunk-
|
|
1859
|
+
require('../../chunk-4IU462LR.cjs');
|
|
1855
1860
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1856
1861
|
require('../../chunk-7DNL734S.cjs');
|
|
1857
1862
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1858
1863
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1859
1864
|
require('../../chunk-EWPR7662.cjs');
|
|
1860
|
-
require('../../chunk-
|
|
1861
|
-
require('../../chunk-
|
|
1865
|
+
require('../../chunk-4ZTGCCNI.cjs');
|
|
1866
|
+
require('../../chunk-VT2ACO3Z.cjs');
|
|
1862
1867
|
|
|
1863
1868
|
|
|
1864
|
-
var
|
|
1865
|
-
require('../../chunk-
|
|
1869
|
+
var _chunkSC3I3YWMcjs = require('../../chunk-SC3I3YWM.cjs');
|
|
1870
|
+
require('../../chunk-7Q2PFKU3.cjs');
|
|
1866
1871
|
require('../../chunk-P4B6PVSG.cjs');
|
|
1867
1872
|
|
|
1868
1873
|
|
|
@@ -1885,7 +1890,7 @@ require('../../chunk-RUHKTWGB.cjs');
|
|
|
1885
1890
|
|
|
1886
1891
|
|
|
1887
1892
|
var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
1888
|
-
require('../../chunk-
|
|
1893
|
+
require('../../chunk-4SZKJPQJ.cjs');
|
|
1889
1894
|
|
|
1890
1895
|
|
|
1891
1896
|
var _chunkFX35L4Y6cjs = require('../../chunk-FX35L4Y6.cjs');
|
|
@@ -1893,7 +1898,7 @@ require('../../chunk-NTPX5GXI.cjs');
|
|
|
1893
1898
|
require('../../chunk-MG3HJIGG.cjs');
|
|
1894
1899
|
require('../../chunk-LC65AC6M.cjs');
|
|
1895
1900
|
require('../../chunk-YSDB6HGQ.cjs');
|
|
1896
|
-
require('../../chunk-
|
|
1901
|
+
require('../../chunk-5DBW6ERF.cjs');
|
|
1897
1902
|
require('../../chunk-GI3MMBP3.cjs');
|
|
1898
1903
|
require('../../chunk-KUXHXLJQ.cjs');
|
|
1899
1904
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
@@ -1925,6 +1930,7 @@ var _chunkAHBTZ7DNcjs = require('../../chunk-AHBTZ7DN.cjs');
|
|
|
1925
1930
|
|
|
1926
1931
|
|
|
1927
1932
|
|
|
1933
|
+
|
|
1928
1934
|
var _chunk7JWFMAQBcjs = require('../../chunk-7JWFMAQB.cjs');
|
|
1929
1935
|
|
|
1930
1936
|
|
|
@@ -2221,7 +2227,7 @@ function useMeetingBooking(options) {
|
|
|
2221
2227
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2222
2228
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2223
2229
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2224
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2230
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET, offset)));
|
|
2225
2231
|
}, []);
|
|
2226
2232
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2227
2233
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2402,7 +2408,7 @@ var FIELD_CONTROLS = {
|
|
|
2402
2408
|
}
|
|
2403
2409
|
),
|
|
2404
2410
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2405
|
-
|
|
2411
|
+
_chunkD322VUSHcjs.Textarea,
|
|
2406
2412
|
{
|
|
2407
2413
|
id,
|
|
2408
2414
|
required: field.required,
|
|
@@ -2458,18 +2464,18 @@ var FIELD_CONTROLS = {
|
|
|
2458
2464
|
{
|
|
2459
2465
|
control,
|
|
2460
2466
|
name: registerName,
|
|
2461
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2467
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2462
2468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2463
|
-
|
|
2469
|
+
_chunkVYLBW6ZVcjs.SelectTrigger,
|
|
2464
2470
|
{
|
|
2465
2471
|
id,
|
|
2466
2472
|
"aria-required": field.required || void 0,
|
|
2467
2473
|
"aria-invalid": Boolean(error),
|
|
2468
2474
|
invalid: Boolean(error),
|
|
2469
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2475
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2470
2476
|
}
|
|
2471
2477
|
),
|
|
2472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2473
2479
|
] })
|
|
2474
2480
|
}
|
|
2475
2481
|
),
|
|
@@ -2479,14 +2485,14 @@ var FIELD_CONTROLS = {
|
|
|
2479
2485
|
control,
|
|
2480
2486
|
name: registerName,
|
|
2481
2487
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2482
|
-
|
|
2488
|
+
_chunkD322VUSHcjs.RadioGroup,
|
|
2483
2489
|
{
|
|
2484
2490
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2485
2491
|
onValueChange: rhf.onChange,
|
|
2486
2492
|
"aria-required": field.required || void 0,
|
|
2487
2493
|
"aria-invalid": Boolean(error),
|
|
2488
2494
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2490
2496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2491
2497
|
] }, opt))
|
|
2492
2498
|
}
|
|
@@ -2560,7 +2566,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2560
2566
|
control,
|
|
2561
2567
|
name: registerName,
|
|
2562
2568
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2563
|
-
|
|
2569
|
+
_chunkD322VUSHcjs.ToggleGroup,
|
|
2564
2570
|
{
|
|
2565
2571
|
id,
|
|
2566
2572
|
type: "single",
|
|
@@ -2575,7 +2581,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2575
2581
|
"aria-required": field.required || void 0,
|
|
2576
2582
|
"aria-invalid": Boolean(error),
|
|
2577
2583
|
className: CHIP_ROW_CLASS,
|
|
2578
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2584
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.ToggleGroupItem, { value: opt, className: _chunk7JWFMAQBcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2579
2585
|
}
|
|
2580
2586
|
)
|
|
2581
2587
|
}
|
|
@@ -2711,7 +2717,7 @@ function BookingFormBody({
|
|
|
2711
2717
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2712
2718
|
[supportedFields]
|
|
2713
2719
|
);
|
|
2714
|
-
const formRescue =
|
|
2720
|
+
const formRescue = _chunkVEN6MGNXcjs.useRescuedForm.call(void 0,
|
|
2715
2721
|
{ watch, getValues, setValue },
|
|
2716
2722
|
{
|
|
2717
2723
|
rescue,
|
|
@@ -2720,7 +2726,7 @@ function BookingFormBody({
|
|
|
2720
2726
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2721
2727
|
}
|
|
2722
2728
|
);
|
|
2723
|
-
const { toast } =
|
|
2729
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
2724
2730
|
const onInvalid = () => {
|
|
2725
2731
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2726
2732
|
toast({
|
|
@@ -2810,8 +2816,8 @@ function BookingFormBody({
|
|
|
2810
2816
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2811
2817
|
}
|
|
2812
2818
|
);
|
|
2813
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2819
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkTCMUVY3Mcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2815
2821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { context, slot: contextSlot }),
|
|
2816
2822
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2817
2823
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
@@ -2825,7 +2831,7 @@ function BookingFormBody({
|
|
|
2825
2831
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2826
2832
|
] }),
|
|
2827
2833
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2828
|
-
|
|
2834
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2829
2835
|
{
|
|
2830
2836
|
id: "ms-host-consent",
|
|
2831
2837
|
checked: consented,
|
|
@@ -2860,7 +2866,7 @@ function BookingFormBody({
|
|
|
2860
2866
|
// same block the waitlist form uses): box + label in one
|
|
2861
2867
|
// bordered row.
|
|
2862
2868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2863
|
-
|
|
2869
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2864
2870
|
{
|
|
2865
2871
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2866
2872
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2913,10 +2919,10 @@ function BookingFormPending({
|
|
|
2913
2919
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2914
2920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label: "", children: [
|
|
2915
2921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2916
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2922
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.Textarea, { tabIndex: -1 })
|
|
2917
2923
|
] }),
|
|
2918
2924
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2919
|
-
|
|
2925
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2920
2926
|
{
|
|
2921
2927
|
id: consentId,
|
|
2922
2928
|
checked: false,
|
|
@@ -2967,7 +2973,7 @@ function FieldSkeleton({
|
|
|
2967
2973
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2968
2974
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2969
2975
|
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2970
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "default", className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2976
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "default", className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkD322VUSHcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.Input, { tabIndex: -1 })
|
|
2971
2977
|
] })
|
|
2972
2978
|
);
|
|
2973
2979
|
}
|
|
@@ -3060,7 +3066,7 @@ function ContextPanelSkeleton({
|
|
|
3060
3066
|
timezone = "shown"
|
|
3061
3067
|
}) {
|
|
3062
3068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3063
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3064
3070
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3065
3071
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3066
3072
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3076,7 +3082,7 @@ function ContextPanelSkeleton({
|
|
|
3076
3082
|
] }),
|
|
3077
3083
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3078
3084
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3080
3086
|
] })
|
|
3081
3087
|
] })
|
|
3082
3088
|
] });
|
|
@@ -3114,7 +3120,7 @@ function SchedulerContextPanel({
|
|
|
3114
3120
|
);
|
|
3115
3121
|
}
|
|
3116
3122
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3117
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3123
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3118
3124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3119
3125
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3120
3126
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3155,7 +3161,7 @@ function SchedulerContextPanel({
|
|
|
3155
3161
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3156
3162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3157
3163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3158
|
-
|
|
3164
|
+
_chunkD322VUSHcjs.TimezoneSelect,
|
|
3159
3165
|
{
|
|
3160
3166
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3161
3167
|
loading: !timezone,
|
|
@@ -3212,7 +3218,7 @@ function SchedulerModalHeader({
|
|
|
3212
3218
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3213
3219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3214
3220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3215
|
-
|
|
3221
|
+
_chunkD322VUSHcjs.TimezoneSelect,
|
|
3216
3222
|
{
|
|
3217
3223
|
value: timezone,
|
|
3218
3224
|
loading: !timezone,
|
|
@@ -3233,7 +3239,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3233
3239
|
] }),
|
|
3234
3240
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3235
3241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3242
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3237
3243
|
] })
|
|
3238
3244
|
] });
|
|
3239
3245
|
}
|
|
@@ -3315,18 +3321,18 @@ var DISABLE_EVERY_DAY = () => true;
|
|
|
3315
3321
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3316
3322
|
const now = /* @__PURE__ */ new Date();
|
|
3317
3323
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3318
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3324
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3319
3325
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3320
3326
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _54 => _54.has, 'call', _55 => _55(calendarDayKey(day))]), [slotsByDay]);
|
|
3321
3327
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3322
|
-
|
|
3328
|
+
_chunkD322VUSHcjs.DatePickerCalendar,
|
|
3323
3329
|
{
|
|
3324
3330
|
mode: "single",
|
|
3325
3331
|
bare: true,
|
|
3326
3332
|
month: visibleMonth,
|
|
3327
3333
|
onMonthChange: (month) => {
|
|
3328
3334
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3329
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3335
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET, offset)));
|
|
3330
3336
|
},
|
|
3331
3337
|
fromDate: startMonth,
|
|
3332
3338
|
toDate: endMonth,
|
|
@@ -3470,7 +3476,7 @@ function SlotPicker({
|
|
|
3470
3476
|
monthLabelFor(monthOffset),
|
|
3471
3477
|
"."
|
|
3472
3478
|
] }),
|
|
3473
|
-
monthOffset <
|
|
3479
|
+
monthOffset < _chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3474
3480
|
_chunkAHBTZ7DNcjs.Button,
|
|
3475
3481
|
{
|
|
3476
3482
|
variant: "outline",
|
|
@@ -3494,7 +3500,7 @@ function SlotPicker({
|
|
|
3494
3500
|
|
|
3495
3501
|
|
|
3496
3502
|
function useNextAvailableLabel(ms) {
|
|
3497
|
-
const hydrated =
|
|
3503
|
+
const hydrated = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
3498
3504
|
return _react.useMemo.call(void 0, () => {
|
|
3499
3505
|
if (!hydrated || ms == null) return null;
|
|
3500
3506
|
return _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, ms, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
@@ -3533,7 +3539,7 @@ function DirectoryRow({
|
|
|
3533
3539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3534
3540
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3535
3541
|
] }),
|
|
3536
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3542
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3537
3543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLDHPPUcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3538
3544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3539
3545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
@@ -3567,7 +3573,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3567
3573
|
}) {
|
|
3568
3574
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3569
3575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOTJLBOScjs.PaginationSkeleton, {}) })
|
|
3571
3577
|
] });
|
|
3572
3578
|
}
|
|
3573
3579
|
function MeetingSchedulerDirectory({
|
|
@@ -3622,7 +3628,7 @@ function MeetingSchedulerDirectory({
|
|
|
3622
3628
|
}
|
|
3623
3629
|
if (error) {
|
|
3624
3630
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3625
|
-
|
|
3631
|
+
_chunk743MM5B6cjs.EmptyState,
|
|
3626
3632
|
{
|
|
3627
3633
|
type: "generic",
|
|
3628
3634
|
title: "We couldn't load available call times",
|
|
@@ -3633,7 +3639,7 @@ function MeetingSchedulerDirectory({
|
|
|
3633
3639
|
}
|
|
3634
3640
|
if (rows.length === 0) {
|
|
3635
3641
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3636
|
-
|
|
3642
|
+
_chunk743MM5B6cjs.EmptyState,
|
|
3637
3643
|
{
|
|
3638
3644
|
type: "generic",
|
|
3639
3645
|
title: "No call times are published right now",
|
|
@@ -3645,7 +3651,7 @@ function MeetingSchedulerDirectory({
|
|
|
3645
3651
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3646
3652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
3647
3653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
-
|
|
3654
|
+
_chunkXZKYU57Acjs.PersistentPaginationWrapper,
|
|
3649
3655
|
{
|
|
3650
3656
|
isLoading,
|
|
3651
3657
|
currentPage: page,
|
|
@@ -3784,7 +3790,7 @@ function HubSpotMeetingScheduler({
|
|
|
3784
3790
|
const modal = layout === "modal" && !detailsFirst;
|
|
3785
3791
|
const modalFormId = _react.useId.call(void 0, );
|
|
3786
3792
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3787
|
-
const hydrated =
|
|
3793
|
+
const hydrated = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
3788
3794
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3789
3795
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3790
3796
|
if (!hydrated) return null;
|
|
@@ -3818,8 +3824,8 @@ function HubSpotMeetingScheduler({
|
|
|
3818
3824
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3819
3825
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3820
3826
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3821
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3822
|
-
const { toast } =
|
|
3827
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkVEN6MGNXcjs.useHumanitySignals.call(void 0, );
|
|
3828
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
3823
3829
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3824
3830
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3825
3831
|
if (machineFor !== meetingId) {
|
|
@@ -3893,7 +3899,7 @@ function HubSpotMeetingScheduler({
|
|
|
3893
3899
|
return;
|
|
3894
3900
|
}
|
|
3895
3901
|
if (result.ok && result.confirmation) {
|
|
3896
|
-
|
|
3902
|
+
_chunkVEN6MGNXcjs.completeFormRescue.call(void 0, rescue, payload[_chunkZFUNSXSHcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3897
3903
|
setConfirmation(result.confirmation);
|
|
3898
3904
|
setStep("confirmed");
|
|
3899
3905
|
_optionalChain([onBooked, 'optionalCall', _64 => _64(result.confirmation)]);
|
|
@@ -3942,7 +3948,7 @@ function HubSpotMeetingScheduler({
|
|
|
3942
3948
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3943
3949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3944
3950
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3945
|
-
|
|
3951
|
+
_chunkVYLBW6ZVcjs.BackButton,
|
|
3946
3952
|
{
|
|
3947
3953
|
onClick: modalBack,
|
|
3948
3954
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
@@ -3988,7 +3994,7 @@ function HubSpotMeetingScheduler({
|
|
|
3988
3994
|
}
|
|
3989
3995
|
)
|
|
3990
3996
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3991
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3997
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3992
3998
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3993
3999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3994
4000
|
escapeHatch
|
|
@@ -4146,11 +4152,11 @@ function HubSpotMeetingScheduler({
|
|
|
4146
4152
|
)
|
|
4147
4153
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
4148
4154
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4149
|
-
|
|
4155
|
+
_chunkD322VUSHcjs.Alert,
|
|
4150
4156
|
{
|
|
4151
4157
|
variant: "warning",
|
|
4152
4158
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4153
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4159
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4154
4160
|
}
|
|
4155
4161
|
),
|
|
4156
4162
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|
|
@@ -4223,6 +4229,46 @@ function HubSpotMeetingScheduler({
|
|
|
4223
4229
|
] }) })
|
|
4224
4230
|
] }) });
|
|
4225
4231
|
}
|
|
4232
|
+
function MeetingSchedulerModal({
|
|
4233
|
+
isOpen,
|
|
4234
|
+
onClose,
|
|
4235
|
+
title,
|
|
4236
|
+
link,
|
|
4237
|
+
loading = false,
|
|
4238
|
+
apiBaseUrl = "",
|
|
4239
|
+
onBooked,
|
|
4240
|
+
emptyMessage = "No calls can be booked right now.",
|
|
4241
|
+
className
|
|
4242
|
+
}) {
|
|
4243
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
4244
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: _chunk7JWFMAQBcjs.cn.call(void 0, "md:max-w-[600px]", className), children: [
|
|
4245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: title }) }),
|
|
4246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalContent, { className: "flex flex-col", children: link || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingWhen, { loading: !link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4247
|
+
HubSpotMeetingScheduler,
|
|
4248
|
+
{
|
|
4249
|
+
layout: "modal",
|
|
4250
|
+
meetingId: _nullishCoalesce(_optionalChain([link, 'optionalAccess', _67 => _67.id]), () => ( "")),
|
|
4251
|
+
apiBaseUrl,
|
|
4252
|
+
hosts: _optionalChain([link, 'optionalAccess', _68 => _68.hosts]),
|
|
4253
|
+
fallbackUrl: _optionalChain([link, 'optionalAccess', _69 => _69.link]),
|
|
4254
|
+
onBack: onClose,
|
|
4255
|
+
onBooked: (booking) => {
|
|
4256
|
+
const when = _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, booking.startTimeMs, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "weekdayDateTimeZoned", {
|
|
4257
|
+
viewerLocale: true
|
|
4258
|
+
});
|
|
4259
|
+
toast({
|
|
4260
|
+
title: "Call booked",
|
|
4261
|
+
description: `${booking.title} - ${when}. Check your email for the invite.`,
|
|
4262
|
+
variant: "success"
|
|
4263
|
+
});
|
|
4264
|
+
_optionalChain([onBooked, 'optionalCall', _70 => _70(booking)]);
|
|
4265
|
+
onClose();
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: emptyMessage }) })
|
|
4269
|
+
] });
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4226
4272
|
|
|
4227
4273
|
|
|
4228
4274
|
|
|
@@ -4235,4 +4281,4 @@ function HubSpotMeetingScheduler({
|
|
|
4235
4281
|
|
|
4236
4282
|
|
|
4237
4283
|
|
|
4238
|
-
exports.BookingContextSummary = BookingContextSummary; exports.BookingForm = BookingForm; exports.DEFAULT_SCHEDULER_FLOW = DEFAULT_SCHEDULER_FLOW; exports.HubSpotMeetingScheduler = HubSpotMeetingScheduler; exports.MEETING_DIRECTORY_PAGE_SIZE = MEETING_DIRECTORY_PAGE_SIZE; exports.MEETING_SCHEDULER_DETAILS_FIRST_H = MEETING_SCHEDULER_DETAILS_FIRST_H; exports.MEETING_SCHEDULER_H = MEETING_SCHEDULER_H; exports.MeetingSchedulerDirectory = MeetingSchedulerDirectory; exports.SCHEDULER_FLOW_PRESETS = SCHEDULER_FLOW_PRESETS; exports.SchedulerDegradedCard = SchedulerDegradedCard; exports.formFieldOptionLabel = formFieldOptionLabel;
|
|
4284
|
+
exports.BookingContextSummary = BookingContextSummary; exports.BookingForm = BookingForm; exports.DEFAULT_SCHEDULER_FLOW = DEFAULT_SCHEDULER_FLOW; exports.HubSpotMeetingScheduler = HubSpotMeetingScheduler; exports.MEETING_DIRECTORY_PAGE_SIZE = MEETING_DIRECTORY_PAGE_SIZE; exports.MEETING_SCHEDULER_DETAILS_FIRST_H = MEETING_SCHEDULER_DETAILS_FIRST_H; exports.MEETING_SCHEDULER_H = MEETING_SCHEDULER_H; exports.MeetingSchedulerDirectory = MeetingSchedulerDirectory; exports.MeetingSchedulerModal = MeetingSchedulerModal; exports.SCHEDULER_FLOW_PRESETS = SCHEDULER_FLOW_PRESETS; exports.SchedulerDegradedCard = SchedulerDegradedCard; exports.formFieldOptionLabel = formFieldOptionLabel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { type BookingConfirmation, type MeetingAvailability, type MeetingBookingErrorCode, type MeetingHost } from '../../schemas/meeting-booking-schema';
|
|
2
|
+
import { type BookingConfirmation, type MeetingAvailability, type MeetingBookingErrorCode, type MeetingHost, type SchedulingLink } from '../../schemas/meeting-booking-schema';
|
|
3
3
|
import { type FormRescueDefinition } from '../../utils/form-rescue';
|
|
4
4
|
import { type BookingFormProps } from './booking-form';
|
|
5
5
|
export interface HubSpotMeetingSchedulerProps {
|
|
@@ -194,6 +194,35 @@ export declare function SchedulerDegradedCard({ flow, className, message, action
|
|
|
194
194
|
children?: ReactNode;
|
|
195
195
|
}): import("react").JSX.Element;
|
|
196
196
|
export declare function HubSpotMeetingScheduler({ meetingId, apiBaseUrl, initialAvailability, title, description, hosts, displayTimezone, fallbackUrl, onBack, onBooked, onStageChange, className, flow, detailsForm: DetailsForm, detailsFormProps, rescue, layout, }: HubSpotMeetingSchedulerProps): import("react").JSX.Element;
|
|
197
|
+
export interface MeetingSchedulerModalProps {
|
|
198
|
+
isOpen: boolean;
|
|
199
|
+
onClose: () => void;
|
|
200
|
+
/** The window's heading, e.g. "Book an Onboarding Call". */
|
|
201
|
+
title: string;
|
|
202
|
+
/** The link to book (from the host's `/api/meetings` directory); `null` while it is read or when there is none. */
|
|
203
|
+
link: SchedulingLink | null;
|
|
204
|
+
/** The host is still reading `link`: the scheduler draws its own loading state in its place. */
|
|
205
|
+
loading?: boolean;
|
|
206
|
+
/** Endpoints prefix, as on `HubSpotMeetingScheduler`. */
|
|
207
|
+
apiBaseUrl?: string;
|
|
208
|
+
/** Fires after a confirmed booking, once the booked toast is up; the window closes itself. */
|
|
209
|
+
onBooked?: (booking: BookingConfirmation) => void;
|
|
210
|
+
/** The line shown in place of the scheduler when there is no link to book. */
|
|
211
|
+
emptyMessage?: string;
|
|
212
|
+
className?: string;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* The whole booking window: a 600px `ModalV2` with the title, the scheduler in
|
|
216
|
+
* its modal layout, and a booked toast. The window closes on a confirmed
|
|
217
|
+
* booking, and on a phone's Cancel (the scheduler's host exit).
|
|
218
|
+
*
|
|
219
|
+
* The host passes the link it resolved, not a meeting id: the same read
|
|
220
|
+
* usually decides whether the entry point is offered at all, so the window
|
|
221
|
+
* takes its answer rather than reading the directory again. While it is read
|
|
222
|
+
* the scheduler draws its loading state in the same tree, so nothing remounts
|
|
223
|
+
* when the link lands.
|
|
224
|
+
*/
|
|
225
|
+
export declare function MeetingSchedulerModal({ isOpen, onClose, title, link, loading, apiBaseUrl, onBooked, emptyMessage, className, }: MeetingSchedulerModalProps): import("react").JSX.Element;
|
|
197
226
|
export { BookingForm, formFieldOptionLabel, type BookingFormProps, type BookingFieldRow, type BookingFieldSlot, type BookingFieldCopy, type BookingFormConsent, } from './booking-form';
|
|
198
227
|
export { BookingContextSummary } from './booking-context-summary';
|
|
199
228
|
export { MeetingSchedulerDirectory, MEETING_DIRECTORY_PAGE_SIZE, type MeetingSchedulerDirectoryProps, } from './directory';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,OAAO,EAGL,KAAK,mBAAmB,EACxB,K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