@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.791
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-FDDS5EG3.cjs → case-study-card-MCAM232N.cjs} +5 -5
- package/dist/{chunk-ZH7SZ46Q.cjs → chunk-2I2AXIBD.cjs} +856 -859
- package/dist/{chunk-IKCMAIJ7.cjs → chunk-3AN35WAO.cjs} +80 -80
- package/dist/{chunk-KO4IF7R2.cjs → chunk-3XSWE5FW.cjs} +3 -3
- package/dist/{chunk-RJIFPWO4.cjs → chunk-5MIGBLDC.cjs} +24 -24
- package/dist/{chunk-QELEIFHA.cjs → chunk-6TPROUHW.cjs} +52 -52
- package/dist/{chunk-N3PYKA3B.cjs → chunk-6ZPHUDTP.cjs} +5 -5
- package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
- package/dist/{chunk-UB3C22AW.cjs → chunk-7EH7KKFW.cjs} +121 -121
- package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
- package/dist/{chunk-MFPTTZI5.cjs → chunk-ABZGBMC2.cjs} +40 -40
- package/dist/{chunk-YWPYSQYG.cjs → chunk-AT4C2YMA.cjs} +30 -1
- package/dist/{chunk-7A23WZY7.cjs → chunk-BIYLAAFI.cjs} +15 -15
- package/dist/{chunk-GDOJPPOF.cjs → chunk-C5EPWKM7.cjs} +50 -50
- package/dist/{chunk-3IJDTTOY.cjs → chunk-DRWPSN3A.cjs} +2 -2
- package/dist/{chunk-PPBNMZC5.cjs → chunk-EPWLLLGW.cjs} +13 -13
- package/dist/{chunk-KB7SPZFI.cjs → chunk-FBA6S4ES.cjs} +259 -258
- package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
- package/dist/{chunk-WDUHSGRT.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-JHFSLLQ6.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
- package/dist/{chunk-HDCAH4AT.cjs → chunk-MIUFSOUN.cjs} +90 -90
- package/dist/{chunk-DNJVLDCH.cjs → chunk-O4TKEWNW.cjs} +31 -31
- package/dist/{chunk-W4RRVQZQ.cjs → chunk-OZIPPOSJ.cjs} +253 -246
- package/dist/{chunk-GMGM3JV3.cjs → chunk-P2JY2XCV.cjs} +54 -54
- package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
- package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
- package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
- package/dist/{chunk-MMC7H7C6.cjs → chunk-SXEIK7RU.cjs} +9 -9
- package/dist/{chunk-EQNNPLCN.cjs → chunk-TBGVWIF7.cjs} +14 -14
- package/dist/{chunk-F2GRQ2RL.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-7NUFHVR6.cjs → chunk-VUQNTCAL.cjs} +19 -19
- package/dist/{chunk-HOYSVWKQ.cjs → chunk-W3Q7ZQLS.cjs} +6 -6
- package/dist/{chunk-OCTDWSTS.cjs → chunk-YPWFYQFE.cjs} +39 -39
- package/dist/{chunk-4ZLLUZQB.cjs → chunk-YWNXZAQ2.cjs} +55 -55
- package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
- package/dist/{chunk-ZKNEKZS5.cjs → chunk-ZW2TS775.cjs} +6 -6
- package/dist/{chunk-XI4KB7EF.cjs → chunk-ZZPGSLMO.cjs} +14 -14
- package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-TTOYIEN3.cjs} +18 -18
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +14 -14
- package/dist/components/contact/index.cjs +19 -19
- package/dist/components/docs/index.cjs +22 -22
- package/dist/components/embeds/index.cjs +19 -19
- package/dist/components/faq/index.cjs +20 -20
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +18 -18
- package/dist/components/help-center-pages/index.cjs +120 -120
- package/dist/components/index.cjs +122 -120
- package/dist/components/layout/page-heading.d.ts +7 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +10 -3
- package/dist/components/layout/page-layout.d.ts +2 -2
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -7
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +6 -31
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +2 -0
- package/dist/components/loading/unified-skeleton.d.ts +17 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +30 -1
- package/dist/components/meeting-scheduler/index.cjs +104 -104
- package/dist/components/navigation/index.cjs +21 -21
- package/dist/components/onboarding-guides/index.cjs +21 -21
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/file-manager/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +18 -18
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-PE57CA5O.cjs → devices-SKWJYGUD.cjs} +19 -19
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-TIUNTOXQ.cjs → embeddable-chat-54X3TTG4.cjs} +81 -81
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +26 -26
- package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-BPB2TROI.cjs} +19 -19
- package/dist/{logs-4GKGMB7A.cjs → logs-VIHYNQU4.cjs} +26 -26
- package/dist/{policies-TRWFGAEE.cjs → policies-YVNOCNNO.cjs} +22 -22
- package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
- package/dist/{scripts-2SHRGH3L.cjs → scripts-MK5FCR7L.cjs} +25 -25
- package/dist/{software-update-ROHSE2BE.cjs → software-update-GDV75A2Z.cjs} +22 -22
- package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/layout/page-heading.tsx +30 -8
- package/src/components/layout/page-layout.tsx +3 -2
- package/src/components/layout/title-block.tsx +7 -29
- package/src/components/loading/index.ts +2 -0
- package/src/components/loading/unified-skeleton.tsx +42 -0
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/index.ts +1 -1
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIHLGPIFOcjs = require('../../chunk-IHLGPIFO.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHMV32LV4cjs = require('../../chunk-HMV32LV4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZW2TS775cjs = require('../../chunk-ZW2TS775.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,8 +22,8 @@ var _chunkZKNEKZS5cjs = require('../../chunk-ZKNEKZS5.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('../../chunk-
|
|
25
|
+
var _chunk2I2AXIBDcjs = require('../../chunk-2I2AXIBD.cjs');
|
|
26
|
+
require('../../chunk-PQIWR4Q2.cjs');
|
|
27
27
|
require('../../chunk-HJBJHQKE.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ require('../../chunk-HJBJHQKE.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkRPC4P7GYcjs = require('../../chunk-RPC4P7GY.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -47,17 +47,17 @@ require('../../chunk-A6P6DHEZ.cjs');
|
|
|
47
47
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkRFIBRGXGcjs = require('../../chunk-RFIBRGXG.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk7EH7KKFWcjs = require('../../chunk-7EH7KKFW.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
58
|
-
require('../../chunk-
|
|
57
|
+
var _chunkFBA6S4EScjs = require('../../chunk-FBA6S4ES.cjs');
|
|
58
|
+
require('../../chunk-BIYLAAFI.cjs');
|
|
59
59
|
require('../../chunk-RKWEFZ6P.cjs');
|
|
60
|
-
require('../../chunk-
|
|
60
|
+
require('../../chunk-ZCMXBX4Z.cjs');
|
|
61
61
|
require('../../chunk-QVKWKY4O.cjs');
|
|
62
62
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
63
63
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1857,23 +1857,23 @@ require('../../chunk-7DNL734S.cjs');
|
|
|
1857
1857
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1858
1858
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1859
1859
|
require('../../chunk-EWPR7662.cjs');
|
|
1860
|
-
require('../../chunk-
|
|
1861
|
-
require('../../chunk-
|
|
1860
|
+
require('../../chunk-ZZPGSLMO.cjs');
|
|
1861
|
+
require('../../chunk-OZIPPOSJ.cjs');
|
|
1862
1862
|
|
|
1863
1863
|
|
|
1864
|
-
var
|
|
1864
|
+
var _chunkC5EPWKM7cjs = require('../../chunk-C5EPWKM7.cjs');
|
|
1865
1865
|
require('../../chunk-QVC5CMC5.cjs');
|
|
1866
1866
|
require('../../chunk-JXQNECXM.cjs');
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
|
-
var
|
|
1869
|
+
var _chunk72NE4G63cjs = require('../../chunk-72NE4G63.cjs');
|
|
1870
1870
|
|
|
1871
1871
|
|
|
1872
1872
|
|
|
1873
1873
|
|
|
1874
1874
|
|
|
1875
1875
|
|
|
1876
|
-
var
|
|
1876
|
+
var _chunk7VXMO4XJcjs = require('../../chunk-7VXMO4XJ.cjs');
|
|
1877
1877
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1878
1878
|
require('../../chunk-32ASZMTV.cjs');
|
|
1879
1879
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -1884,7 +1884,7 @@ require('../../chunk-RUHKTWGB.cjs');
|
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
1886
|
var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
1887
|
-
require('../../chunk-
|
|
1887
|
+
require('../../chunk-LL6PXI6C.cjs');
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
1890
|
var _chunk7PNRXJX2cjs = require('../../chunk-7PNRXJX2.cjs');
|
|
@@ -1894,13 +1894,13 @@ require('../../chunk-V4FXUIMH.cjs');
|
|
|
1894
1894
|
require('../../chunk-SZHDXXMK.cjs');
|
|
1895
1895
|
require('../../chunk-75PJ2SAZ.cjs');
|
|
1896
1896
|
require('../../chunk-5GJM7VRR.cjs');
|
|
1897
|
-
require('../../chunk-
|
|
1897
|
+
require('../../chunk-DRWPSN3A.cjs');
|
|
1898
1898
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
1899
1899
|
|
|
1900
1900
|
|
|
1901
1901
|
|
|
1902
1902
|
|
|
1903
|
-
var
|
|
1903
|
+
var _chunkHCXNFMLOcjs = require('../../chunk-HCXNFMLO.cjs');
|
|
1904
1904
|
|
|
1905
1905
|
|
|
1906
1906
|
var _chunkJRTDBPJTcjs = require('../../chunk-JRTDBPJT.cjs');
|
|
@@ -1914,7 +1914,7 @@ var _chunkGD6RPLHXcjs = require('../../chunk-GD6RPLHX.cjs');
|
|
|
1914
1914
|
|
|
1915
1915
|
|
|
1916
1916
|
|
|
1917
|
-
var
|
|
1917
|
+
var _chunkAT4C2YMAcjs = require('../../chunk-AT4C2YMA.cjs');
|
|
1918
1918
|
|
|
1919
1919
|
|
|
1920
1920
|
var _chunkK7I3YYYUcjs = require('../../chunk-K7I3YYYU.cjs');
|
|
@@ -2208,7 +2208,7 @@ function useMeetingBooking(options) {
|
|
|
2208
2208
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _11 => _11.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2209
2209
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2210
2210
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2211
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2211
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunk7EH7KKFWcjs.MAX_MONTH_OFFSET, offset)));
|
|
2212
2212
|
}, []);
|
|
2213
2213
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2214
2214
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2326,7 +2326,7 @@ var canonicalNumber = (v) => {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
var FIELD_CONTROLS = {
|
|
2328
2328
|
text: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2329
|
-
|
|
2329
|
+
_chunkHCXNFMLOcjs.Input,
|
|
2330
2330
|
{
|
|
2331
2331
|
id,
|
|
2332
2332
|
type: _nullishCoalesce(field.inputType, () => ( "text")),
|
|
@@ -2339,7 +2339,7 @@ var FIELD_CONTROLS = {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
),
|
|
2341
2341
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2342
|
-
|
|
2342
|
+
_chunk2I2AXIBDcjs.Textarea,
|
|
2343
2343
|
{
|
|
2344
2344
|
id,
|
|
2345
2345
|
required: field.required,
|
|
@@ -2350,7 +2350,7 @@ var FIELD_CONTROLS = {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
),
|
|
2352
2352
|
number: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2353
|
-
|
|
2353
|
+
_chunkHCXNFMLOcjs.Input,
|
|
2354
2354
|
{
|
|
2355
2355
|
id,
|
|
2356
2356
|
type: "number",
|
|
@@ -2363,7 +2363,7 @@ var FIELD_CONTROLS = {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
),
|
|
2365
2365
|
phone: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2366
|
-
|
|
2366
|
+
_chunkHCXNFMLOcjs.Input,
|
|
2367
2367
|
{
|
|
2368
2368
|
id,
|
|
2369
2369
|
type: "tel",
|
|
@@ -2379,7 +2379,7 @@ var FIELD_CONTROLS = {
|
|
|
2379
2379
|
date: ({ field, id, registerName, error, register }) => (
|
|
2380
2380
|
// The native picker emits exactly the wire shape (`YYYY-MM-DD`).
|
|
2381
2381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2382
|
-
|
|
2382
|
+
_chunkHCXNFMLOcjs.Input,
|
|
2383
2383
|
{
|
|
2384
2384
|
id,
|
|
2385
2385
|
type: "date",
|
|
@@ -2395,18 +2395,18 @@ var FIELD_CONTROLS = {
|
|
|
2395
2395
|
{
|
|
2396
2396
|
control,
|
|
2397
2397
|
name: registerName,
|
|
2398
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2398
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRPC4P7GYcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2399
2399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2400
|
-
|
|
2400
|
+
_chunkRPC4P7GYcjs.SelectTrigger,
|
|
2401
2401
|
{
|
|
2402
2402
|
id,
|
|
2403
2403
|
"aria-required": field.required || void 0,
|
|
2404
2404
|
"aria-invalid": Boolean(error),
|
|
2405
2405
|
invalid: Boolean(error),
|
|
2406
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2406
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2407
2407
|
}
|
|
2408
2408
|
),
|
|
2409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2410
2410
|
] })
|
|
2411
2411
|
}
|
|
2412
2412
|
),
|
|
@@ -2416,14 +2416,14 @@ var FIELD_CONTROLS = {
|
|
|
2416
2416
|
control,
|
|
2417
2417
|
name: registerName,
|
|
2418
2418
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2419
|
-
|
|
2419
|
+
_chunk2I2AXIBDcjs.RadioGroup,
|
|
2420
2420
|
{
|
|
2421
2421
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2422
2422
|
onValueChange: rhf.onChange,
|
|
2423
2423
|
"aria-required": field.required || void 0,
|
|
2424
2424
|
"aria-invalid": Boolean(error),
|
|
2425
2425
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2426
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2426
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2427
2427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2428
2428
|
] }, opt))
|
|
2429
2429
|
}
|
|
@@ -2446,7 +2446,7 @@ var FIELD_CONTROLS = {
|
|
|
2446
2446
|
};
|
|
2447
2447
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, role: "group", className: "flex flex-col gap-[var(--spacing-system-xs)]", children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2448
2448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2449
|
-
|
|
2449
|
+
_chunkRFIBRGXGcjs.Checkbox,
|
|
2450
2450
|
{
|
|
2451
2451
|
id: `${id}-${opt}`,
|
|
2452
2452
|
checked: selected.includes(opt),
|
|
@@ -2470,7 +2470,7 @@ var FIELD_CONTROLS = {
|
|
|
2470
2470
|
// this id — a second inline label would double the visible text AND
|
|
2471
2471
|
// the accessible name.
|
|
2472
2472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2473
|
-
|
|
2473
|
+
_chunkRFIBRGXGcjs.Checkbox,
|
|
2474
2474
|
{
|
|
2475
2475
|
id,
|
|
2476
2476
|
checked: Boolean(rhf.value),
|
|
@@ -2497,7 +2497,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2497
2497
|
control,
|
|
2498
2498
|
name: registerName,
|
|
2499
2499
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2500
|
-
|
|
2500
|
+
_chunk2I2AXIBDcjs.ToggleGroup,
|
|
2501
2501
|
{
|
|
2502
2502
|
id,
|
|
2503
2503
|
type: "single",
|
|
@@ -2508,11 +2508,11 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2508
2508
|
},
|
|
2509
2509
|
ref: (group) => rhf.ref(group && { focus: () => _optionalChain([group, 'access', _20 => _20.querySelector, 'call', _21 => _21("button"), 'optionalAccess', _22 => _22.focus, 'call', _23 => _23()]) }),
|
|
2510
2510
|
onBlur: rhf.onBlur,
|
|
2511
|
-
"aria-labelledby":
|
|
2511
|
+
"aria-labelledby": _chunkHCXNFMLOcjs.fieldLabelId.call(void 0, id),
|
|
2512
2512
|
"aria-required": field.required || void 0,
|
|
2513
2513
|
"aria-invalid": Boolean(error),
|
|
2514
2514
|
className: CHIP_ROW_CLASS,
|
|
2515
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2515
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.ToggleGroupItem, { value: opt, className: _chunk6YZNUHXTcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2516
2516
|
}
|
|
2517
2517
|
)
|
|
2518
2518
|
}
|
|
@@ -2693,7 +2693,7 @@ function BookingFormBody({
|
|
|
2693
2693
|
const copy = _optionalChain([fieldCopy, 'optionalAccess', _37 => _37[field.name]]);
|
|
2694
2694
|
const shown = copy ? { ...field, label: _nullishCoalesce(copy.label, () => ( field.label)), placeholder: _nullishCoalesce(copy.placeholder, () => ( field.placeholder)) } : field;
|
|
2695
2695
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2696
|
-
|
|
2696
|
+
_chunkHCXNFMLOcjs.FieldWrapper,
|
|
2697
2697
|
{
|
|
2698
2698
|
label: shown.label,
|
|
2699
2699
|
htmlFor: where.id,
|
|
@@ -2742,8 +2742,8 @@ function BookingFormBody({
|
|
|
2742
2742
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2743
2743
|
}
|
|
2744
2744
|
);
|
|
2745
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2746
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2745
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunk7EH7KKFWcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2746
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2747
2747
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2748
2748
|
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("|"))),
|
|
2749
2749
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -2756,7 +2756,7 @@ function BookingFormBody({
|
|
|
2756
2756
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2757
2757
|
] }),
|
|
2758
2758
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2759
|
-
|
|
2759
|
+
_chunk2I2AXIBDcjs.CheckboxBlock,
|
|
2760
2760
|
{
|
|
2761
2761
|
id: "ms-host-consent",
|
|
2762
2762
|
checked: consented,
|
|
@@ -2775,7 +2775,7 @@ function BookingFormBody({
|
|
|
2775
2775
|
// box doesn't shove the submit button down the card. With no error the
|
|
2776
2776
|
// wrapper is `display:contents` and the panel below is the flex item,
|
|
2777
2777
|
// exactly as it was.
|
|
2778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { error: _optionalChain([errors, 'access', _41 => _41.legalConsentResponses, 'optionalAccess', _42 => _42.message]), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
2779
2779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.processingConsentText }),
|
|
2780
2780
|
legalConsent.communicationConsentText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.communicationConsentText }),
|
|
2781
2781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2791,7 +2791,7 @@ function BookingFormBody({
|
|
|
2791
2791
|
// same block the waitlist form uses): box + label in one
|
|
2792
2792
|
// bordered row.
|
|
2793
2793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2794
|
-
|
|
2794
|
+
_chunk2I2AXIBDcjs.CheckboxBlock,
|
|
2795
2795
|
{
|
|
2796
2796
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2797
2797
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _43 => _43.consented]), () => ( false)),
|
|
@@ -2840,18 +2840,18 @@ function BookingFormPending({
|
|
|
2840
2840
|
slot.name
|
|
2841
2841
|
)) }, row.map((s) => s.name).join("|"))),
|
|
2842
2842
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2843
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2844
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2845
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2843
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label: "", children: [
|
|
2844
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2845
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.Textarea, { tabIndex: -1 })
|
|
2846
2846
|
] }),
|
|
2847
2847
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunk2I2AXIBDcjs.CheckboxBlock,
|
|
2849
2849
|
{
|
|
2850
2850
|
id: consentId,
|
|
2851
2851
|
checked: false,
|
|
2852
2852
|
onCheckedChange: _chunk6YZNUHXTcjs.LOADING_NOOP,
|
|
2853
2853
|
required: true,
|
|
2854
|
-
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2854
|
+
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-64 max-w-full" }) : consent.label,
|
|
2855
2855
|
description: consent === true ? void 0 : consent.description
|
|
2856
2856
|
}
|
|
2857
2857
|
),
|
|
@@ -2894,9 +2894,9 @@ function FieldSkeleton({
|
|
|
2894
2894
|
const label = builtIn ? _nullishCoalesce(_optionalChain([copy, 'optionalAccess', _45 => _45.label]), () => ( builtIn.label)) : _optionalChain([copy, 'optionalAccess', _46 => _46.label]);
|
|
2895
2895
|
return (
|
|
2896
2896
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2897
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2898
|
-
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2899
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _48 => _48.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2897
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _47 => _47.required]), className, children: [
|
|
2898
|
+
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2899
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _48 => _48.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { variant: "default", className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunk2I2AXIBDcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.Input, { tabIndex: -1 })
|
|
2900
2900
|
] })
|
|
2901
2901
|
);
|
|
2902
2902
|
}
|
|
@@ -2904,7 +2904,7 @@ function FieldSkeleton({
|
|
|
2904
2904
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2905
2905
|
|
|
2906
2906
|
function Confirmation({ confirmation, timezone }) {
|
|
2907
|
-
const when =
|
|
2907
|
+
const when = _chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2908
2908
|
viewerLocale: true
|
|
2909
2909
|
});
|
|
2910
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: [
|
|
@@ -2914,7 +2914,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2914
2914
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2915
2915
|
when,
|
|
2916
2916
|
" \xB7 ",
|
|
2917
|
-
|
|
2917
|
+
_chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2918
2918
|
] }),
|
|
2919
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." })
|
|
2920
2920
|
] });
|
|
@@ -2932,7 +2932,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
2932
2932
|
if (hosts.length === 0) return null;
|
|
2933
2933
|
if (hosts.length > MAX_HOST_ROWS) {
|
|
2934
2934
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEAM_CLASS, children: [
|
|
2935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2935
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
2936
2936
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2937
2937
|
hosts.length,
|
|
2938
2938
|
" hosts on this calendar"
|
|
@@ -2941,7 +2941,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
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_CLASS, "data-loading-item": true, children: [
|
|
2943
2943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2944
|
-
|
|
2944
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
2945
2945
|
{
|
|
2946
2946
|
variant: "round",
|
|
2947
2947
|
size: "sm",
|
|
@@ -2958,10 +2958,10 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
function HostIdentitySkeleton() {
|
|
2960
2960
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HOST_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS, "data-loading-item": true, children: [
|
|
2961
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
2962
2962
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
2963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2964
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2963
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
2964
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
2965
2965
|
] })
|
|
2966
2966
|
] }) });
|
|
2967
2967
|
}
|
|
@@ -2989,23 +2989,23 @@ function ContextPanelSkeleton({
|
|
|
2989
2989
|
timezone = "shown"
|
|
2990
2990
|
}) {
|
|
2991
2991
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
2992
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2992
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
2993
2993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
2994
2994
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
2995
2995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
2996
2996
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
2997
|
-
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2997
|
+
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-20 shrink-0" })
|
|
2998
2998
|
] }),
|
|
2999
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3000
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2999
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
3000
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-4/5" }),
|
|
3001
3001
|
durations > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DURATION_FIELD_CLASS, children: [
|
|
3002
3002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
3003
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: durations, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3003
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: durations, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { "data-loading-item": true, size: "small-legacy", className: "w-16" }) }) })
|
|
3004
3004
|
] })
|
|
3005
3005
|
] }),
|
|
3006
3006
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3007
3007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3008
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk6YZNUHXTcjs.LOADING_NOOP })
|
|
3009
3009
|
] })
|
|
3010
3010
|
] })
|
|
3011
3011
|
] });
|
|
@@ -3043,7 +3043,7 @@ function SchedulerContextPanel({
|
|
|
3043
3043
|
);
|
|
3044
3044
|
}
|
|
3045
3045
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3046
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3046
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3047
3047
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3048
3048
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3049
3049
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3052,7 +3052,7 @@ function SchedulerContextPanel({
|
|
|
3052
3052
|
// Post-selection, or a link that offers one length: a static line,
|
|
3053
3053
|
// which is what sits beside the host on the header-strip layouts.
|
|
3054
3054
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3055
|
-
|
|
3055
|
+
_chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3056
3056
|
" call"
|
|
3057
3057
|
] })
|
|
3058
3058
|
) : null
|
|
@@ -3069,7 +3069,7 @@ function SchedulerContextPanel({
|
|
|
3069
3069
|
size: "small-legacy",
|
|
3070
3070
|
disabled,
|
|
3071
3071
|
onClick: () => onSelectDuration(ms),
|
|
3072
|
-
children:
|
|
3072
|
+
children: _chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3073
3073
|
},
|
|
3074
3074
|
ms
|
|
3075
3075
|
)) })
|
|
@@ -3084,7 +3084,7 @@ function SchedulerContextPanel({
|
|
|
3084
3084
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3085
3085
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3086
3086
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3087
|
-
|
|
3087
|
+
_chunk2I2AXIBDcjs.TimezoneSelect,
|
|
3088
3088
|
{
|
|
3089
3089
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3090
3090
|
loading: !timezone,
|
|
@@ -3130,18 +3130,18 @@ function SchedulerModalHeader({
|
|
|
3130
3130
|
size: "small-legacy",
|
|
3131
3131
|
disabled,
|
|
3132
3132
|
onClick: () => onSelectDuration(ms),
|
|
3133
|
-
children:
|
|
3133
|
+
children: _chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3134
3134
|
},
|
|
3135
3135
|
ms
|
|
3136
3136
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3137
|
-
|
|
3137
|
+
_chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3138
3138
|
" call"
|
|
3139
3139
|
] })
|
|
3140
3140
|
] }),
|
|
3141
3141
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3142
3142
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3143
3143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3144
|
-
|
|
3144
|
+
_chunk2I2AXIBDcjs.TimezoneSelect,
|
|
3145
3145
|
{
|
|
3146
3146
|
value: timezone,
|
|
3147
3147
|
loading: !timezone,
|
|
@@ -3158,11 +3158,11 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3158
3158
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3159
3159
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3160
3160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
3161
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3161
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: _chunk6YZNUHXTcjs.cn.call(void 0, DURATION_LINE_CLASS2, "w-20") })
|
|
3162
3162
|
] }),
|
|
3163
3163
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3164
3164
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3165
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3165
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk6YZNUHXTcjs.LOADING_NOOP })
|
|
3166
3166
|
] })
|
|
3167
3167
|
] });
|
|
3168
3168
|
}
|
|
@@ -3185,7 +3185,7 @@ function dateFromDayKey(key) {
|
|
|
3185
3185
|
return new Date(y, m - 1, d, 12);
|
|
3186
3186
|
}
|
|
3187
3187
|
function timeLabelInZone(ms, timeZone) {
|
|
3188
|
-
return
|
|
3188
|
+
return _chunk7VXMO4XJcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3189
3189
|
}
|
|
3190
3190
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3191
3191
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3238,24 +3238,24 @@ var MODAL_CHIP_GRID_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
|
3238
3238
|
function monthLabelFor(offset) {
|
|
3239
3239
|
const now = /* @__PURE__ */ new Date();
|
|
3240
3240
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3241
|
-
return
|
|
3241
|
+
return _chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, month, _chunk7VXMO4XJcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3242
3242
|
}
|
|
3243
3243
|
var DISABLE_EVERY_DAY = () => true;
|
|
3244
3244
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3245
3245
|
const now = /* @__PURE__ */ new Date();
|
|
3246
3246
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3247
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3247
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunk7EH7KKFWcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3248
3248
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3249
3249
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _51 => _51.has, 'call', _52 => _52(calendarDayKey(day))]), [slotsByDay]);
|
|
3250
3250
|
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,
|
|
3251
|
-
|
|
3251
|
+
_chunk2I2AXIBDcjs.DatePickerCalendar,
|
|
3252
3252
|
{
|
|
3253
3253
|
mode: "single",
|
|
3254
3254
|
bare: true,
|
|
3255
3255
|
month: visibleMonth,
|
|
3256
3256
|
onMonthChange: (month) => {
|
|
3257
3257
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3258
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3258
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunk7EH7KKFWcjs.MAX_MONTH_OFFSET, offset)));
|
|
3259
3259
|
},
|
|
3260
3260
|
fromDate: startMonth,
|
|
3261
3261
|
toDate: endMonth,
|
|
@@ -3304,8 +3304,8 @@ function SlotPickerSkeleton({ monthOffset = 0, layout = "card" }) {
|
|
|
3304
3304
|
var SLOT_PICKER_SKELETON_CHIPS = 16;
|
|
3305
3305
|
function TimeChipsSkeleton({ layout = "card" } = {}) {
|
|
3306
3306
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3308
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: SLOT_PICKER_SKELETON_CHIPS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-40" }) }),
|
|
3308
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: SLOT_PICKER_SKELETON_CHIPS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { "data-loading-item": true, className: _chunk6YZNUHXTcjs.cn.call(void 0, CHIP_CLASS, "h-11 content-md:h-12") }) }) })
|
|
3309
3309
|
] });
|
|
3310
3310
|
}
|
|
3311
3311
|
function SlotPicker({
|
|
@@ -3369,7 +3369,7 @@ function SlotPicker({
|
|
|
3369
3369
|
{
|
|
3370
3370
|
className: modal ? _chunk6YZNUHXTcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk6YZNUHXTcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3371
3371
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout }) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3372
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3372
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunk7VXMO4XJcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3373
3373
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3374
3374
|
const isSelected = selectedSlot === ms;
|
|
3375
3375
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3399,7 +3399,7 @@ function SlotPicker({
|
|
|
3399
3399
|
monthLabelFor(monthOffset),
|
|
3400
3400
|
"."
|
|
3401
3401
|
] }),
|
|
3402
|
-
monthOffset <
|
|
3402
|
+
monthOffset < _chunk7EH7KKFWcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3403
3403
|
_chunkK7I3YYYUcjs.Button,
|
|
3404
3404
|
{
|
|
3405
3405
|
variant: "outline",
|
|
@@ -3423,10 +3423,10 @@ function SlotPicker({
|
|
|
3423
3423
|
|
|
3424
3424
|
|
|
3425
3425
|
function useNextAvailableLabel(ms) {
|
|
3426
|
-
const hydrated =
|
|
3426
|
+
const hydrated = _chunkFBA6S4EScjs.useIsHydrated.call(void 0, );
|
|
3427
3427
|
return _react.useMemo.call(void 0, () => {
|
|
3428
3428
|
if (!hydrated || ms == null) return null;
|
|
3429
|
-
return
|
|
3429
|
+
return _chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, ms, _chunk7VXMO4XJcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3430
3430
|
}, [hydrated, ms]);
|
|
3431
3431
|
}
|
|
3432
3432
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3447,7 +3447,7 @@ function DirectoryRow({
|
|
|
3447
3447
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3448
3448
|
const subtitle = [
|
|
3449
3449
|
link.description,
|
|
3450
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3450
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3451
3451
|
link.kind === "team" ? "Team" : null
|
|
3452
3452
|
].filter(Boolean).join(" \u2022 ");
|
|
3453
3453
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3462,8 +3462,8 @@ function DirectoryRow({
|
|
|
3462
3462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3463
3463
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3464
3464
|
] }),
|
|
3465
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3466
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3465
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3466
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3467
3467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3468
3468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3469
3469
|
/* @__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, () => ( " ")) })
|
|
@@ -3476,14 +3476,14 @@ function DirectoryRow({
|
|
|
3476
3476
|
function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
3477
3477
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_FRAME_CLASS, "aria-hidden": true, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: [
|
|
3478
3478
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TITLE_COLUMN_CLASS, children: [
|
|
3479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3481
3481
|
] }),
|
|
3482
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3483
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3482
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3483
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-10 w-10 shrink-0 rounded-full" }),
|
|
3484
3484
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3485
3485
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3487
3487
|
] }),
|
|
3488
3488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_CHEVRON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "size-6 text-ods-text-secondary" }) })
|
|
3489
3489
|
] });
|
|
@@ -3494,7 +3494,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3494
3494
|
}) {
|
|
3495
3495
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3496
3496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3497
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW2TS775cjs.PaginationSkeleton, {}) })
|
|
3498
3498
|
] });
|
|
3499
3499
|
}
|
|
3500
3500
|
function MeetingSchedulerDirectory({
|
|
@@ -3549,7 +3549,7 @@ function MeetingSchedulerDirectory({
|
|
|
3549
3549
|
}
|
|
3550
3550
|
if (error) {
|
|
3551
3551
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
-
|
|
3552
|
+
_chunkHMV32LV4cjs.EmptyState,
|
|
3553
3553
|
{
|
|
3554
3554
|
type: "generic",
|
|
3555
3555
|
title: "We couldn't load available call times",
|
|
@@ -3560,7 +3560,7 @@ function MeetingSchedulerDirectory({
|
|
|
3560
3560
|
}
|
|
3561
3561
|
if (rows.length === 0) {
|
|
3562
3562
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3563
|
-
|
|
3563
|
+
_chunkHMV32LV4cjs.EmptyState,
|
|
3564
3564
|
{
|
|
3565
3565
|
type: "generic",
|
|
3566
3566
|
title: "No call times are published right now",
|
|
@@ -3572,7 +3572,7 @@ function MeetingSchedulerDirectory({
|
|
|
3572
3572
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3573
3573
|
/* @__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)) }),
|
|
3574
3574
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3575
|
-
|
|
3575
|
+
_chunkIHLGPIFOcjs.PersistentPaginationWrapper,
|
|
3576
3576
|
{
|
|
3577
3577
|
isLoading,
|
|
3578
3578
|
currentPage: page,
|
|
@@ -3711,7 +3711,7 @@ function HubSpotMeetingScheduler({
|
|
|
3711
3711
|
const modal = layout === "modal" && !detailsFirst;
|
|
3712
3712
|
const modalFormId = _react.useId.call(void 0, );
|
|
3713
3713
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3714
|
-
const hydrated =
|
|
3714
|
+
const hydrated = _chunkFBA6S4EScjs.useIsHydrated.call(void 0, );
|
|
3715
3715
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3716
3716
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3717
3717
|
if (!hydrated) return null;
|
|
@@ -3865,11 +3865,11 @@ function HubSpotMeetingScheduler({
|
|
|
3865
3865
|
setSelectedDay(null);
|
|
3866
3866
|
setSelectedSlot(null);
|
|
3867
3867
|
};
|
|
3868
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3868
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3869
3869
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3870
3870
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3871
3871
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3872
|
-
|
|
3872
|
+
_chunkRPC4P7GYcjs.BackButton,
|
|
3873
3873
|
{
|
|
3874
3874
|
onClick: modalBack,
|
|
3875
3875
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
@@ -3915,7 +3915,7 @@ function HubSpotMeetingScheduler({
|
|
|
3915
3915
|
}
|
|
3916
3916
|
)
|
|
3917
3917
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3918
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3918
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3919
3919
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3920
3920
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3921
3921
|
escapeHatch
|
|
@@ -4046,10 +4046,10 @@ function HubSpotMeetingScheduler({
|
|
|
4046
4046
|
durations.length > 0
|
|
4047
4047
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
4048
4048
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4049
|
-
|
|
4049
|
+
_chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4050
4050
|
" \xB7",
|
|
4051
4051
|
" ",
|
|
4052
|
-
|
|
4052
|
+
_chunk7VXMO4XJcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4053
4053
|
] }),
|
|
4054
4054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4055
4055
|
DetailsForm,
|
|
@@ -4073,11 +4073,11 @@ function HubSpotMeetingScheduler({
|
|
|
4073
4073
|
)
|
|
4074
4074
|
] }) : /* @__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: [
|
|
4075
4075
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4076
|
-
|
|
4076
|
+
_chunk2I2AXIBDcjs.Alert,
|
|
4077
4077
|
{
|
|
4078
4078
|
variant: "warning",
|
|
4079
4079
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4080
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4080
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4081
4081
|
}
|
|
4082
4082
|
),
|
|
4083
4083
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|