@flamingo-stack/openframe-frontend-core 0.0.776 → 0.0.780
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-WXMWYGSW.cjs +25 -0
- package/dist/{chunk-2MF547RG.cjs → chunk-2JO5HNEF.cjs} +28 -26
- package/dist/{chunk-DDXQGTWB.cjs → chunk-2W3VDE4D.cjs} +5 -5
- package/dist/{chunk-R3JX4MXD.cjs → chunk-3ZLPYEL5.cjs} +10 -10
- package/dist/{chunk-3V27UHSH.cjs → chunk-4BBOHZM3.cjs} +17 -17
- package/dist/{chunk-XT5WEHFM.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-DGFDBPO7.cjs → chunk-5GJM7VRR.cjs} +1 -94
- package/dist/{chunk-E64HPPRH.cjs → chunk-5PK22JP7.cjs} +50 -50
- package/dist/{chunk-57B5RUYD.cjs → chunk-64KBI5MI.cjs} +2 -2
- package/dist/{chunk-ASMNNSUQ.cjs → chunk-7PNRXJX2.cjs} +3 -3
- package/dist/{chunk-OTZQP53Y.cjs → chunk-AQXEM7GI.cjs} +8 -8
- package/dist/{chunk-VFZFCRAL.cjs → chunk-AQXKXZWB.cjs} +4 -4
- package/dist/{chunk-VFUMM6JC.cjs → chunk-BEMGJDXI.cjs} +2 -2
- package/dist/{chunk-HY6BCZH7.cjs → chunk-BNUZKBNV.cjs} +3 -3
- package/dist/{chunk-2YB4X5WT.cjs → chunk-DQALLDTZ.cjs} +6 -6
- package/dist/{chunk-MWH5ZTMB.cjs → chunk-F3BASIMT.cjs} +97 -95
- package/dist/{chunk-Z5KX56TK.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-2AZAJ7RK.cjs → chunk-I4IC3BRC.cjs} +53 -53
- package/dist/{chunk-BDYI6HBT.cjs → chunk-IE3QCYBT.cjs} +18 -16
- package/dist/{chunk-UM6HFGTI.cjs → chunk-ILRQXZBA.cjs} +53 -51
- package/dist/{chunk-CZIMISAR.cjs → chunk-JB2SEF6Q.cjs} +7 -7
- package/dist/{chunk-AMVI5VXM.cjs → chunk-KA3VQ6X2.cjs} +91 -89
- package/dist/{chunk-LJT2KRE2.cjs → chunk-KLTUTZBO.cjs} +24 -24
- package/dist/{chunk-EHJE3UWZ.cjs → chunk-LBGAHB6X.cjs} +20 -20
- package/dist/{chunk-LNCBN4BL.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/chunk-OH5LAH3X.cjs +1456 -0
- package/dist/{chunk-XXJL5GY3.cjs → chunk-OJZBZH56.cjs} +3 -3
- package/dist/{chunk-IXZNBDXT.cjs → chunk-OMHQZXCD.cjs} +28 -28
- package/dist/{chunk-KM2TVQCH.cjs → chunk-OWQVDWTK.cjs} +259 -247
- package/dist/{chunk-YFTQ2ALU.cjs → chunk-PQBGSVZE.cjs} +116 -82
- package/dist/{chunk-OJLZ7PGO.cjs → chunk-QEFDGI3Z.cjs} +37 -35
- package/dist/{chunk-6HY2NH7D.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-RB7VLVMD.cjs → chunk-R6BKQKIF.cjs} +9 -7
- package/dist/{chunk-V3W56L2D.cjs → chunk-SIDDZZKL.cjs} +38 -38
- package/dist/chunk-SZHDXXMK.cjs +102 -0
- package/dist/{chunk-5P4TDV7V.cjs → chunk-TUAATMUE.cjs} +5 -93
- package/dist/{chunk-F65RSJVV.cjs → chunk-TVDQMG7I.cjs} +23 -21
- package/dist/{chunk-XN6LXMH5.cjs → chunk-UPAE4IV5.cjs} +595 -591
- package/dist/chunk-V4FXUIMH.cjs +92 -0
- package/dist/{chunk-2JRSYWFP.cjs → chunk-VXAKQRV7.cjs} +5 -5
- package/dist/{chunk-L55XLH5A.cjs → chunk-WR7KJML6.cjs} +33 -31
- package/dist/{chunk-5QP3K2CE.cjs → chunk-XEYL6AFZ.cjs} +9 -9
- package/dist/{chunk-MYHS4W2H.cjs → chunk-YG72MEHY.cjs} +213 -1647
- package/dist/{chunk-WAQPW4CB.cjs → chunk-YNECNYQF.cjs} +6 -6
- package/dist/{chunk-NWZSYG4S.cjs → chunk-YWQ3VXPL.cjs} +114 -112
- package/dist/{chunk-24OYQQZC.cjs → chunk-ZGWS3NJR.cjs} +22 -22
- package/dist/{cloud-tenants-QFE6QMR5.cjs → cloud-tenants-2ZLGCSGK.cjs} +27 -24
- package/dist/components/case-studies/index.cjs +45 -41
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -4
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +21 -17
- package/dist/components/chat/types/component.types.d.ts +9 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +28 -25
- package/dist/components/docs/index.cjs +31 -28
- package/dist/components/embeds/index.cjs +28 -25
- package/dist/components/faq/index.cjs +29 -26
- package/dist/components/features/index.cjs +28 -24
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -5
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +1 -44
- package/dist/components/help-center-pages/index.cjs +131 -127
- package/dist/components/index.cjs +94 -90
- package/dist/components/meeting-scheduler/index.cjs +95 -92
- package/dist/components/navigation/index.cjs +30 -27
- package/dist/components/navigation/nav-panel.d.ts.map +1 -1
- package/dist/components/navigation/nav-panel.js +47 -13
- package/dist/components/onboarding-guides/index.cjs +30 -27
- package/dist/components/product-demo/index.cjs +38 -35
- package/dist/components/related-content/index.cjs +15 -12
- package/dist/components/tickets/index.cjs +33 -30
- package/dist/components/ui/index.cjs +28 -24
- package/dist/{devices-SFJDLXSW.cjs → devices-UOBQFPV3.cjs} +28 -25
- package/dist/{embeddable-chat-XZUWAK4W.cjs → embeddable-chat-SFQWRUIV.cjs} +99 -95
- package/dist/hooks/index.cjs +12 -10
- package/dist/index.cjs +36 -30
- package/dist/{knowledge-SAK3ZGCO.cjs → knowledge-5K3LTHGB.cjs} +28 -25
- package/dist/{logs-CYBGMFA5.cjs → logs-WU3N6ESS.cjs} +35 -32
- package/dist/{policies-XXDOICWF.cjs → policies-2IYASCQO.cjs} +31 -28
- package/dist/{remote-session-TC3BZDBZ.cjs → remote-session-TGM2OTTV.cjs} +12 -10
- package/dist/{scripts-C5T2AQPA.cjs → scripts-IQBKOQEY.cjs} +34 -31
- package/dist/{software-update-XU5AI4TP.cjs → software-update-GJLDO5X5.cjs} +31 -28
- package/dist/{tickets-board-YT25IX3O.cjs → tickets-board-FB5AGLJD.cjs} +16 -14
- package/dist/{video-file-player-6ZFOZFER.cjs → video-file-player-SIJW5UWU.cjs} +3 -2
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +13 -4
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/features/video-hover-preview.tsx +37 -46
- package/src/components/features/video.tsx +1 -61
- package/src/components/navigation/nav-panel.tsx +74 -14
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQIQYD75Icjs = require('../../chunk-QIQYD75I.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHUPDPANNcjs = require('../../chunk-HUPDPANN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -19,9 +19,9 @@ var _chunkZ5KX56TKcjs = require('../../chunk-Z5KX56TK.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('../../chunk-
|
|
24
|
-
require('../../chunk-
|
|
22
|
+
var _chunkUPAE4IV5cjs = require('../../chunk-UPAE4IV5.cjs');
|
|
23
|
+
require('../../chunk-KLTUTZBO.cjs');
|
|
24
|
+
require('../../chunk-R6BKQKIF.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ require('../../chunk-RB7VLVMD.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkSIDDZZKLcjs = require('../../chunk-SIDDZZKL.cjs');
|
|
34
34
|
require('../../chunk-HQQE74RO.cjs');
|
|
35
35
|
require('../../chunk-DEY6XXGO.cjs');
|
|
36
36
|
|
|
@@ -38,27 +38,27 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
42
|
-
require('../../chunk-
|
|
41
|
+
var _chunk5PK22JP7cjs = require('../../chunk-5PK22JP7.cjs');
|
|
42
|
+
require('../../chunk-VXAKQRV7.cjs');
|
|
43
43
|
require('../../chunk-24I6RFVU.cjs');
|
|
44
44
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
45
45
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkMLX6Z7TUcjs = require('../../chunk-MLX6Z7TU.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkC42WIUH6cjs = require('../../chunk-C42WIUH6.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkYWQ3VXPLcjs = require('../../chunk-YWQ3VXPL.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
59
|
-
require('../../chunk-
|
|
58
|
+
var _chunkOWQVDWTKcjs = require('../../chunk-OWQVDWTK.cjs');
|
|
59
|
+
require('../../chunk-LBGAHB6X.cjs');
|
|
60
60
|
require('../../chunk-KKAY6GPU.cjs');
|
|
61
|
-
require('../../chunk-
|
|
61
|
+
require('../../chunk-XEYL6AFZ.cjs');
|
|
62
62
|
require('../../chunk-LELS4XMX.cjs');
|
|
63
63
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
64
64
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1850,23 +1850,24 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1850
1850
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1851
1851
|
|
|
1852
1852
|
|
|
1853
|
-
var
|
|
1854
|
-
require('../../chunk-
|
|
1855
|
-
require('../../chunk-
|
|
1853
|
+
var _chunkJB2SEF6Qcjs = require('../../chunk-JB2SEF6Q.cjs');
|
|
1854
|
+
require('../../chunk-OJZBZH56.cjs');
|
|
1855
|
+
require('../../chunk-64KBI5MI.cjs');
|
|
1856
1856
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1857
1857
|
require('../../chunk-7DNL734S.cjs');
|
|
1858
1858
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1859
1859
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1860
1860
|
require('../../chunk-EWPR7662.cjs');
|
|
1861
|
-
require('../../chunk-
|
|
1861
|
+
require('../../chunk-QEFDGI3Z.cjs');
|
|
1862
|
+
require('../../chunk-YG72MEHY.cjs');
|
|
1862
1863
|
|
|
1863
1864
|
|
|
1864
|
-
var
|
|
1865
|
-
require('../../chunk-
|
|
1865
|
+
var _chunkOH5LAH3Xcjs = require('../../chunk-OH5LAH3X.cjs');
|
|
1866
|
+
require('../../chunk-3ZLPYEL5.cjs');
|
|
1866
1867
|
require('../../chunk-SETFUCZA.cjs');
|
|
1867
1868
|
|
|
1868
1869
|
|
|
1869
|
-
var
|
|
1870
|
+
var _chunkBEMGJDXIcjs = require('../../chunk-BEMGJDXI.cjs');
|
|
1870
1871
|
|
|
1871
1872
|
|
|
1872
1873
|
|
|
@@ -1874,7 +1875,7 @@ var _chunkVFUMM6JCcjs = require('../../chunk-VFUMM6JC.cjs');
|
|
|
1874
1875
|
|
|
1875
1876
|
|
|
1876
1877
|
|
|
1877
|
-
var
|
|
1878
|
+
var _chunkBNUZKBNVcjs = require('../../chunk-BNUZKBNV.cjs');
|
|
1878
1879
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1879
1880
|
require('../../chunk-32ASZMTV.cjs');
|
|
1880
1881
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -1888,11 +1889,13 @@ var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
|
1888
1889
|
require('../../chunk-3LW5TD54.cjs');
|
|
1889
1890
|
|
|
1890
1891
|
|
|
1891
|
-
var
|
|
1892
|
+
var _chunk7PNRXJX2cjs = require('../../chunk-7PNRXJX2.cjs');
|
|
1892
1893
|
require('../../chunk-NTPX5GXI.cjs');
|
|
1893
|
-
require('../../chunk-
|
|
1894
|
-
require('../../chunk-
|
|
1895
|
-
require('../../chunk-
|
|
1894
|
+
require('../../chunk-AQXKXZWB.cjs');
|
|
1895
|
+
require('../../chunk-V4FXUIMH.cjs');
|
|
1896
|
+
require('../../chunk-SZHDXXMK.cjs');
|
|
1897
|
+
require('../../chunk-TUAATMUE.cjs');
|
|
1898
|
+
require('../../chunk-5GJM7VRR.cjs');
|
|
1896
1899
|
require('../../chunk-E76ONBKF.cjs');
|
|
1897
1900
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
1898
1901
|
|
|
@@ -2204,7 +2207,7 @@ function useMeetingBooking(options) {
|
|
|
2204
2207
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2205
2208
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2206
2209
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2207
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2210
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkYWQ3VXPLcjs.MAX_MONTH_OFFSET, offset)));
|
|
2208
2211
|
}, []);
|
|
2209
2212
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2210
2213
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2218,7 +2221,7 @@ function useMeetingBooking(options) {
|
|
|
2218
2221
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
2219
2222
|
queryFn: async ({ signal }) => {
|
|
2220
2223
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
2221
|
-
const res = await
|
|
2224
|
+
const res = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
2222
2225
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
2223
2226
|
return await res.json();
|
|
2224
2227
|
},
|
|
@@ -2236,7 +2239,7 @@ function useMeetingBooking(options) {
|
|
|
2236
2239
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
2237
2240
|
mutationFn: async (payload) => {
|
|
2238
2241
|
try {
|
|
2239
|
-
const res = await
|
|
2242
|
+
const res = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
2240
2243
|
method: "POST",
|
|
2241
2244
|
headers: { "Content-Type": "application/json" },
|
|
2242
2245
|
body: JSON.stringify(payload)
|
|
@@ -2335,7 +2338,7 @@ var FIELD_CONTROLS = {
|
|
|
2335
2338
|
}
|
|
2336
2339
|
),
|
|
2337
2340
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2338
|
-
|
|
2341
|
+
_chunkUPAE4IV5cjs.Textarea,
|
|
2339
2342
|
{
|
|
2340
2343
|
id,
|
|
2341
2344
|
required: field.required,
|
|
@@ -2391,18 +2394,18 @@ var FIELD_CONTROLS = {
|
|
|
2391
2394
|
{
|
|
2392
2395
|
control,
|
|
2393
2396
|
name: registerName,
|
|
2394
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2397
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSIDDZZKLcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2395
2398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2396
|
-
|
|
2399
|
+
_chunkSIDDZZKLcjs.SelectTrigger,
|
|
2397
2400
|
{
|
|
2398
2401
|
id,
|
|
2399
2402
|
"aria-required": field.required || void 0,
|
|
2400
2403
|
"aria-invalid": Boolean(error),
|
|
2401
2404
|
invalid: Boolean(error),
|
|
2402
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2405
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2403
2406
|
}
|
|
2404
2407
|
),
|
|
2405
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2406
2409
|
] })
|
|
2407
2410
|
}
|
|
2408
2411
|
),
|
|
@@ -2412,14 +2415,14 @@ var FIELD_CONTROLS = {
|
|
|
2412
2415
|
control,
|
|
2413
2416
|
name: registerName,
|
|
2414
2417
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2415
|
-
|
|
2418
|
+
_chunkUPAE4IV5cjs.RadioGroup,
|
|
2416
2419
|
{
|
|
2417
2420
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2418
2421
|
onValueChange: rhf.onChange,
|
|
2419
2422
|
"aria-required": field.required || void 0,
|
|
2420
2423
|
"aria-invalid": Boolean(error),
|
|
2421
2424
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2422
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2425
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2423
2426
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2424
2427
|
] }, opt))
|
|
2425
2428
|
}
|
|
@@ -2493,7 +2496,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2493
2496
|
control,
|
|
2494
2497
|
name: registerName,
|
|
2495
2498
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2496
|
-
|
|
2499
|
+
_chunkUPAE4IV5cjs.ToggleGroup,
|
|
2497
2500
|
{
|
|
2498
2501
|
id,
|
|
2499
2502
|
type: "single",
|
|
@@ -2508,7 +2511,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2508
2511
|
"aria-required": field.required || void 0,
|
|
2509
2512
|
"aria-invalid": Boolean(error),
|
|
2510
2513
|
className: CHIP_ROW_CLASS,
|
|
2511
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2514
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.ToggleGroupItem, { value: opt, className: _chunk65VVJSQZcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2512
2515
|
}
|
|
2513
2516
|
)
|
|
2514
2517
|
}
|
|
@@ -2641,7 +2644,7 @@ function BookingFormBody({
|
|
|
2641
2644
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2642
2645
|
[supportedFields]
|
|
2643
2646
|
);
|
|
2644
|
-
const formRescue =
|
|
2647
|
+
const formRescue = _chunk5PK22JP7cjs.useRescuedForm.call(void 0,
|
|
2645
2648
|
{ watch, getValues, setValue },
|
|
2646
2649
|
{
|
|
2647
2650
|
rescue,
|
|
@@ -2650,7 +2653,7 @@ function BookingFormBody({
|
|
|
2650
2653
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2651
2654
|
}
|
|
2652
2655
|
);
|
|
2653
|
-
const { toast } =
|
|
2656
|
+
const { toast } = _chunk5PK22JP7cjs.useToast.call(void 0, );
|
|
2654
2657
|
const onInvalid = () => {
|
|
2655
2658
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2656
2659
|
toast({
|
|
@@ -2738,8 +2741,8 @@ function BookingFormBody({
|
|
|
2738
2741
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2739
2742
|
}
|
|
2740
2743
|
);
|
|
2741
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2744
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkYWQ3VXPLcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.HoneypotField, { ...honeypotInputProps }),
|
|
2743
2746
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2744
2747
|
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("|"))),
|
|
2745
2748
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -2752,7 +2755,7 @@ function BookingFormBody({
|
|
|
2752
2755
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2753
2756
|
] }),
|
|
2754
2757
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2755
|
-
|
|
2758
|
+
_chunkUPAE4IV5cjs.CheckboxBlock,
|
|
2756
2759
|
{
|
|
2757
2760
|
id: "ms-host-consent",
|
|
2758
2761
|
checked: consented,
|
|
@@ -2787,7 +2790,7 @@ function BookingFormBody({
|
|
|
2787
2790
|
// same block the waitlist form uses): box + label in one
|
|
2788
2791
|
// bordered row.
|
|
2789
2792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2790
|
-
|
|
2793
|
+
_chunkUPAE4IV5cjs.CheckboxBlock,
|
|
2791
2794
|
{
|
|
2792
2795
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2793
2796
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _44 => _44.consented]), () => ( false)),
|
|
@@ -2838,10 +2841,10 @@ function BookingFormSkeleton({
|
|
|
2838
2841
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2839
2842
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label: "", children: [
|
|
2840
2843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2844
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.Textarea, { tabIndex: -1 })
|
|
2842
2845
|
] }),
|
|
2843
2846
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2844
|
-
|
|
2847
|
+
_chunkUPAE4IV5cjs.CheckboxBlock,
|
|
2845
2848
|
{
|
|
2846
2849
|
id: consentId,
|
|
2847
2850
|
checked: false,
|
|
@@ -2893,7 +2896,7 @@ function FieldSkeleton({
|
|
|
2893
2896
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2894
2897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _48 => _48.required]), className, children: [
|
|
2895
2898
|
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2896
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _49 => _49.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { variant: "default", className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
2899
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _49 => _49.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { variant: "default", className: _chunk65VVJSQZcjs.cn.call(void 0, _chunkUPAE4IV5cjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.Input, { tabIndex: -1 })
|
|
2897
2900
|
] })
|
|
2898
2901
|
);
|
|
2899
2902
|
}
|
|
@@ -2901,7 +2904,7 @@ function FieldSkeleton({
|
|
|
2901
2904
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2902
2905
|
|
|
2903
2906
|
function Confirmation({ confirmation, timezone }) {
|
|
2904
|
-
const when =
|
|
2907
|
+
const when = _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2905
2908
|
viewerLocale: true
|
|
2906
2909
|
});
|
|
2907
2910
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-m)] text-center", children: [
|
|
@@ -2911,7 +2914,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2911
2914
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2912
2915
|
when,
|
|
2913
2916
|
" \xB7 ",
|
|
2914
|
-
|
|
2917
|
+
_chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2915
2918
|
] }),
|
|
2916
2919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "A calendar invite is on its way to your email." })
|
|
2917
2920
|
] });
|
|
@@ -2942,12 +2945,12 @@ function ContextPanelSkeleton({
|
|
|
2942
2945
|
timezone = "shown"
|
|
2943
2946
|
}) {
|
|
2944
2947
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
2945
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2948
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
2946
2949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
2947
2950
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
2948
2951
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
2949
2952
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS, children: [
|
|
2950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNUZKBNVcjs.SquareAvatarSkeleton, { variant: "round", size: "sm" }),
|
|
2951
2954
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
2952
2955
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
2953
2956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
@@ -2964,7 +2967,7 @@ function ContextPanelSkeleton({
|
|
|
2964
2967
|
] }),
|
|
2965
2968
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
2966
2969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
2967
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.AutocompleteSkeleton, {})
|
|
2968
2971
|
] })
|
|
2969
2972
|
] })
|
|
2970
2973
|
] });
|
|
@@ -3002,13 +3005,13 @@ function SchedulerContextPanel({
|
|
|
3002
3005
|
);
|
|
3003
3006
|
}
|
|
3004
3007
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3005
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3008
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3006
3009
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3007
3010
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3008
3011
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
3009
3012
|
hosts.length > 0 && hosts.length <= 3 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-s)]", children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS, children: [
|
|
3010
3013
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3011
|
-
|
|
3014
|
+
_chunkBNUZKBNVcjs.SquareAvatar,
|
|
3012
3015
|
{
|
|
3013
3016
|
variant: "round",
|
|
3014
3017
|
size: "sm",
|
|
@@ -3023,7 +3026,7 @@ function SchedulerContextPanel({
|
|
|
3023
3026
|
] })
|
|
3024
3027
|
] }, host.name)) }),
|
|
3025
3028
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
3026
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3029
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBEMGJDXIcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3027
3030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3028
3031
|
hosts.length,
|
|
3029
3032
|
" hosts on this calendar"
|
|
@@ -3033,7 +3036,7 @@ function SchedulerContextPanel({
|
|
|
3033
3036
|
// Post-selection, or a link that offers one length: a static line,
|
|
3034
3037
|
// which is what sits beside the host on the header-strip layouts.
|
|
3035
3038
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3036
|
-
|
|
3039
|
+
_chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3037
3040
|
" call"
|
|
3038
3041
|
] })
|
|
3039
3042
|
) : null
|
|
@@ -3049,7 +3052,7 @@ function SchedulerContextPanel({
|
|
|
3049
3052
|
size: "small-legacy",
|
|
3050
3053
|
disabled,
|
|
3051
3054
|
onClick: () => onSelectDuration(ms),
|
|
3052
|
-
children:
|
|
3055
|
+
children: _chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3053
3056
|
},
|
|
3054
3057
|
ms
|
|
3055
3058
|
)) })
|
|
@@ -3064,7 +3067,7 @@ function SchedulerContextPanel({
|
|
|
3064
3067
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3065
3068
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3066
3069
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3067
|
-
|
|
3070
|
+
_chunkUPAE4IV5cjs.TimezoneSelect,
|
|
3068
3071
|
{
|
|
3069
3072
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3070
3073
|
loading: !timezone,
|
|
@@ -3093,7 +3096,7 @@ function HostIdentity({ hosts }) {
|
|
|
3093
3096
|
if (hosts.length === 0) return null;
|
|
3094
3097
|
if (hosts.length > 3) {
|
|
3095
3098
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
3096
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3099
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBEMGJDXIcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3097
3100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3098
3101
|
hosts.length,
|
|
3099
3102
|
" hosts on this calendar"
|
|
@@ -3102,7 +3105,7 @@ function HostIdentity({ hosts }) {
|
|
|
3102
3105
|
}
|
|
3103
3106
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HOST_LIST_CLASS, children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS2, children: [
|
|
3104
3107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3105
|
-
|
|
3108
|
+
_chunkBNUZKBNVcjs.SquareAvatar,
|
|
3106
3109
|
{
|
|
3107
3110
|
variant: "round",
|
|
3108
3111
|
size: "sm",
|
|
@@ -3141,18 +3144,18 @@ function SchedulerModalHeader({
|
|
|
3141
3144
|
size: "small-legacy",
|
|
3142
3145
|
disabled,
|
|
3143
3146
|
onClick: () => onSelectDuration(ms),
|
|
3144
|
-
children:
|
|
3147
|
+
children: _chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3145
3148
|
},
|
|
3146
3149
|
ms
|
|
3147
3150
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3148
|
-
|
|
3151
|
+
_chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3149
3152
|
" call"
|
|
3150
3153
|
] })
|
|
3151
3154
|
] }),
|
|
3152
3155
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3153
3156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3154
3157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3155
|
-
|
|
3158
|
+
_chunkUPAE4IV5cjs.TimezoneSelect,
|
|
3156
3159
|
{
|
|
3157
3160
|
value: timezone,
|
|
3158
3161
|
loading: !timezone,
|
|
@@ -3169,7 +3172,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3169
3172
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3170
3173
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3171
3174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HOST_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS2, children: [
|
|
3172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3175
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNUZKBNVcjs.SquareAvatarSkeleton, { variant: "round", size: "sm" }),
|
|
3173
3176
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS2, children: [
|
|
3174
3177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3175
3178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
@@ -3179,7 +3182,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3179
3182
|
] }),
|
|
3180
3183
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3181
3184
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3182
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSIDDZZKLcjs.AutocompleteSkeleton, {})
|
|
3183
3186
|
] })
|
|
3184
3187
|
] });
|
|
3185
3188
|
}
|
|
@@ -3202,7 +3205,7 @@ function dateFromDayKey(key) {
|
|
|
3202
3205
|
return new Date(y, m - 1, d, 12);
|
|
3203
3206
|
}
|
|
3204
3207
|
function timeLabelInZone(ms, timeZone) {
|
|
3205
|
-
return
|
|
3208
|
+
return _chunkBNUZKBNVcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3206
3209
|
}
|
|
3207
3210
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3208
3211
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3255,25 +3258,25 @@ var MODAL_CHIP_GRID_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
3255
3258
|
function monthLabelFor(offset) {
|
|
3256
3259
|
const now = /* @__PURE__ */ new Date();
|
|
3257
3260
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3258
|
-
return
|
|
3261
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, month, _chunkBNUZKBNVcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3259
3262
|
}
|
|
3260
3263
|
var DISABLE_EVERY_DAY = () => true;
|
|
3261
3264
|
var NOOP = () => void 0;
|
|
3262
3265
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3263
3266
|
const now = /* @__PURE__ */ new Date();
|
|
3264
3267
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3265
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3268
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkYWQ3VXPLcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3266
3269
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3267
3270
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _52 => _52.has, 'call', _53 => _53(calendarDayKey(day))]), [slotsByDay]);
|
|
3268
3271
|
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,
|
|
3269
|
-
|
|
3272
|
+
_chunkUPAE4IV5cjs.DatePickerCalendar,
|
|
3270
3273
|
{
|
|
3271
3274
|
mode: "single",
|
|
3272
3275
|
bare: true,
|
|
3273
3276
|
month: visibleMonth,
|
|
3274
3277
|
onMonthChange: (month) => {
|
|
3275
3278
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3276
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3279
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkYWQ3VXPLcjs.MAX_MONTH_OFFSET, offset)));
|
|
3277
3280
|
},
|
|
3278
3281
|
fromDate: startMonth,
|
|
3279
3282
|
toDate: endMonth,
|
|
@@ -3392,7 +3395,7 @@ function SlotPicker({
|
|
|
3392
3395
|
{
|
|
3393
3396
|
className: modal ? _chunk65VVJSQZcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk65VVJSQZcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3394
3397
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout }) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkBNUZKBNVcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3396
3399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3397
3400
|
const isSelected = selectedSlot === ms;
|
|
3398
3401
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3421,7 +3424,7 @@ function SlotPicker({
|
|
|
3421
3424
|
monthLabelFor(monthOffset),
|
|
3422
3425
|
"."
|
|
3423
3426
|
] }),
|
|
3424
|
-
monthOffset <
|
|
3427
|
+
monthOffset < _chunkYWQ3VXPLcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3425
3428
|
_chunkTF5D5MNOcjs.Button,
|
|
3426
3429
|
{
|
|
3427
3430
|
variant: "outline",
|
|
@@ -3445,10 +3448,10 @@ function SlotPicker({
|
|
|
3445
3448
|
|
|
3446
3449
|
|
|
3447
3450
|
function useNextAvailableLabel(ms) {
|
|
3448
|
-
const hydrated =
|
|
3451
|
+
const hydrated = _chunkOWQVDWTKcjs.useIsHydrated.call(void 0, );
|
|
3449
3452
|
return _react.useMemo.call(void 0, () => {
|
|
3450
3453
|
if (!hydrated || ms == null) return null;
|
|
3451
|
-
return
|
|
3454
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, ms, _chunkBNUZKBNVcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3452
3455
|
}, [hydrated, ms]);
|
|
3453
3456
|
}
|
|
3454
3457
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3469,7 +3472,7 @@ function DirectoryRow({
|
|
|
3469
3472
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3470
3473
|
const subtitle = [
|
|
3471
3474
|
link.description,
|
|
3472
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3475
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3473
3476
|
link.kind === "team" ? "Team" : null
|
|
3474
3477
|
].filter(Boolean).join(" \u2022 ");
|
|
3475
3478
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3483,8 +3486,8 @@ function DirectoryRow({
|
|
|
3483
3486
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3484
3487
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3485
3488
|
] }),
|
|
3486
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3487
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3489
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBEMGJDXIcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3488
3491
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3489
3492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3490
3493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-h-5 text-ods-text-primary text-h6", children: link.nextAvailableMs == null ? "No times published" : _nullishCoalesce(nextLabel, () => ( " ")) })
|
|
@@ -3515,7 +3518,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3515
3518
|
}) {
|
|
3516
3519
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3517
3520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: Array.from({ length: pageSize }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, {}, i)) }),
|
|
3518
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMLX6Z7TUcjs.PaginationSkeleton, {}) })
|
|
3519
3522
|
] });
|
|
3520
3523
|
}
|
|
3521
3524
|
function MeetingSchedulerDirectory({
|
|
@@ -3541,7 +3544,7 @@ function MeetingSchedulerDirectory({
|
|
|
3541
3544
|
setError(null);
|
|
3542
3545
|
try {
|
|
3543
3546
|
const qs = includeAll ? "?scope=all" : "";
|
|
3544
|
-
const res = await
|
|
3547
|
+
const res = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
3545
3548
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
3546
3549
|
const payload = await res.json();
|
|
3547
3550
|
if (active) setData(payload);
|
|
@@ -3570,7 +3573,7 @@ function MeetingSchedulerDirectory({
|
|
|
3570
3573
|
}
|
|
3571
3574
|
if (error) {
|
|
3572
3575
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3573
|
-
|
|
3576
|
+
_chunkHUPDPANNcjs.EmptyState,
|
|
3574
3577
|
{
|
|
3575
3578
|
type: "generic",
|
|
3576
3579
|
title: "We couldn't load available call times",
|
|
@@ -3581,7 +3584,7 @@ function MeetingSchedulerDirectory({
|
|
|
3581
3584
|
}
|
|
3582
3585
|
if (rows.length === 0) {
|
|
3583
3586
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3584
|
-
|
|
3587
|
+
_chunkHUPDPANNcjs.EmptyState,
|
|
3585
3588
|
{
|
|
3586
3589
|
type: "generic",
|
|
3587
3590
|
title: "No call times are published right now",
|
|
@@ -3593,7 +3596,7 @@ function MeetingSchedulerDirectory({
|
|
|
3593
3596
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3594
3597
|
/* @__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)) }),
|
|
3595
3598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3596
|
-
|
|
3599
|
+
_chunkQIQYD75Icjs.PersistentPaginationWrapper,
|
|
3597
3600
|
{
|
|
3598
3601
|
isLoading,
|
|
3599
3602
|
currentPage: page,
|
|
@@ -3733,7 +3736,7 @@ function HubSpotMeetingScheduler({
|
|
|
3733
3736
|
const modal = layout === "modal" && !detailsFirst;
|
|
3734
3737
|
const modalFormId = _react.useId.call(void 0, );
|
|
3735
3738
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3736
|
-
const hydrated =
|
|
3739
|
+
const hydrated = _chunkOWQVDWTKcjs.useIsHydrated.call(void 0, );
|
|
3737
3740
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3738
3741
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3739
3742
|
if (!hydrated) return null;
|
|
@@ -3767,8 +3770,8 @@ function HubSpotMeetingScheduler({
|
|
|
3767
3770
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3768
3771
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3769
3772
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3770
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3771
|
-
const { toast } =
|
|
3773
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk5PK22JP7cjs.useHumanitySignals.call(void 0, );
|
|
3774
|
+
const { toast } = _chunk5PK22JP7cjs.useToast.call(void 0, );
|
|
3772
3775
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3773
3776
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3774
3777
|
if (machineFor !== meetingId) {
|
|
@@ -3842,7 +3845,7 @@ function HubSpotMeetingScheduler({
|
|
|
3842
3845
|
return;
|
|
3843
3846
|
}
|
|
3844
3847
|
if (result.ok && result.confirmation) {
|
|
3845
|
-
|
|
3848
|
+
_chunk5PK22JP7cjs.completeFormRescue.call(void 0, rescue, payload[_chunkJB2SEF6Qcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3846
3849
|
setConfirmation(result.confirmation);
|
|
3847
3850
|
setStep("confirmed");
|
|
3848
3851
|
_optionalChain([onBooked, 'optionalCall', _62 => _62(result.confirmation)]);
|
|
@@ -3887,11 +3890,11 @@ function HubSpotMeetingScheduler({
|
|
|
3887
3890
|
setSelectedDay(null);
|
|
3888
3891
|
setSelectedSlot(null);
|
|
3889
3892
|
};
|
|
3890
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3893
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3891
3894
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3892
3895
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3893
3896
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3894
|
-
|
|
3897
|
+
_chunkSIDDZZKLcjs.BackButton,
|
|
3895
3898
|
{
|
|
3896
3899
|
onClick: modalBack,
|
|
3897
3900
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
@@ -3937,7 +3940,7 @@ function HubSpotMeetingScheduler({
|
|
|
3937
3940
|
}
|
|
3938
3941
|
)
|
|
3939
3942
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3940
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3943
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3941
3944
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3942
3945
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3943
3946
|
escapeHatch
|
|
@@ -4068,10 +4071,10 @@ function HubSpotMeetingScheduler({
|
|
|
4068
4071
|
durations.length > 0
|
|
4069
4072
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
4070
4073
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4071
|
-
|
|
4074
|
+
_chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4072
4075
|
" \xB7",
|
|
4073
4076
|
" ",
|
|
4074
|
-
|
|
4077
|
+
_chunkBNUZKBNVcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4075
4078
|
] }),
|
|
4076
4079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4077
4080
|
DetailsForm,
|
|
@@ -4095,11 +4098,11 @@ function HubSpotMeetingScheduler({
|
|
|
4095
4098
|
)
|
|
4096
4099
|
] }) : /* @__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: [
|
|
4097
4100
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4098
|
-
|
|
4101
|
+
_chunkUPAE4IV5cjs.Alert,
|
|
4099
4102
|
{
|
|
4100
4103
|
variant: "warning",
|
|
4101
4104
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4102
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4105
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4103
4106
|
}
|
|
4104
4107
|
),
|
|
4105
4108
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|