@flamingo-stack/openframe-frontend-core 0.0.795 → 0.0.797
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-K6HYMHL6.cjs +23 -0
- package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
- package/dist/{chunk-QDW64E6T.cjs → chunk-3H3CQ7BQ.cjs} +541 -538
- package/dist/{chunk-ZCMXBX4Z.cjs → chunk-3NGJ7NPT.cjs} +61 -61
- package/dist/{chunk-ZIMPE7D5.cjs → chunk-4M5JIVAH.cjs} +3 -3
- package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
- package/dist/{chunk-OK467OQJ.cjs → chunk-5CEXT3V7.cjs} +37 -37
- package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
- package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
- package/dist/{chunk-7VXMO4XJ.cjs → chunk-6UKH22NQ.cjs} +32 -30
- package/dist/{chunk-43ZVXQJK.cjs → chunk-7AMU2ZD2.cjs} +60 -60
- package/dist/{chunk-4BYNNQBC.cjs → chunk-7GFKJGWH.cjs} +116 -116
- package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
- package/dist/{chunk-2KLYMAHF.cjs → chunk-7MLK7BGF.cjs} +10 -10
- package/dist/{chunk-BIYLAAFI.cjs → chunk-7MV23NNT.cjs} +54 -54
- package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
- package/dist/{chunk-KQPU5N7T.cjs → chunk-BUCCV72E.cjs} +13 -13
- package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
- package/dist/{chunk-IQTVKPRG.cjs → chunk-CHF6PHOR.cjs} +46 -46
- package/dist/{chunk-FYHXMHY6.cjs → chunk-CO6FB4DR.cjs} +31 -31
- package/dist/{chunk-PQIWR4Q2.cjs → chunk-DTBIIFZG.cjs} +63 -63
- package/dist/{chunk-RPC4P7GY.cjs → chunk-E56LN23H.cjs} +205 -205
- package/dist/{chunk-YPKAMHYA.cjs → chunk-FFEE2ON2.cjs} +2129 -2012
- package/dist/{chunk-A6E5ZNQR.cjs → chunk-GAFNJDZV.cjs} +13 -13
- package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
- package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
- package/dist/{chunk-3XAFK4WH.cjs → chunk-IS77JFF6.cjs} +17 -17
- package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
- package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
- package/dist/{chunk-YYKXX5NA.cjs → chunk-KWINW3FC.cjs} +44 -44
- package/dist/{chunk-U4D4ABXK.cjs → chunk-LAJNO2EW.cjs} +171 -171
- package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
- package/dist/{chunk-FOWQ4XTB.cjs → chunk-NBUHCGGG.cjs} +8 -8
- package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
- package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
- package/dist/{chunk-NGGEYE5R.cjs → chunk-NX4QOEPJ.cjs} +22 -22
- package/dist/{chunk-6VP5UWZG.cjs → chunk-OZUUCVDZ.cjs} +19 -19
- package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
- package/dist/{chunk-BFCGOHQG.cjs → chunk-PBL66EVT.cjs} +51 -51
- package/dist/{chunk-FYPVCCCV.cjs → chunk-QKXXHOOD.cjs} +321 -321
- package/dist/{chunk-IJ23KNYI.cjs → chunk-RD57WBJK.cjs} +4 -4
- package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
- package/dist/{chunk-NIW4ETGC.cjs → chunk-UKLSEI7S.cjs} +6 -6
- package/dist/{chunk-CLEZ6TWZ.cjs → chunk-VFCPLZFY.cjs} +110 -110
- package/dist/{chunk-72NE4G63.cjs → chunk-VVLL37EM.cjs} +12 -12
- package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
- package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
- package/dist/{chunk-HXL7AUPG.cjs → chunk-YHCC3BLP.cjs} +42 -42
- package/dist/{chunk-F73DM65J.cjs → chunk-YMWK7GOC.cjs} +197 -197
- package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
- package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
- package/dist/{chunk-6TUI5KQS.cjs → chunk-ZPTHTGHK.cjs} +62 -62
- package/dist/{cloud-tenants-Z3AYAXF5.cjs → cloud-tenants-THCY3N2P.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +218 -204
- package/dist/components/meeting-scheduler/index.cjs +191 -191
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +6 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/floating-tooltip.js +3 -1
- package/dist/components/ui/index.cjs +46 -32
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +6 -3
- package/dist/components/ui/trendline.d.ts +60 -0
- package/dist/components/ui/trendline.d.ts.map +1 -0
- package/dist/components/ui/trendline.js +121 -0
- package/dist/{devices-P6XQL23S.cjs → devices-N4EF5QDS.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-6BNLOSBB.cjs → embeddable-chat-7Z2OQK3X.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +62 -48
- package/dist/{knowledge-IU5ORU7U.cjs → knowledge-TL4DSXYQ.cjs} +33 -33
- package/dist/{logs-DCFTQVKA.cjs → logs-4VRUBGKE.cjs} +41 -41
- package/dist/{policies-ESC6XCVH.cjs → policies-TLNVCQGG.cjs} +36 -36
- package/dist/{remote-session-4ZNTOLOQ.cjs → remote-session-4LYKEZSY.cjs} +17 -17
- package/dist/{scripts-24PIP2VO.cjs → scripts-4LFWHIMH.cjs} +39 -39
- package/dist/{software-update-47GDTKMI.cjs → software-update-J4ZXQABW.cjs} +36 -36
- package/dist/{tickets-board-X4GHEKPB.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
- package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/ui/button/button-styles.ts +11 -1
- package/src/components/ui/floating-tooltip.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/tabs.tsx +5 -2
- package/src/components/ui/trendline.tsx +221 -0
- package/dist/case-study-card-KU4ZIONR.cjs +0 -23
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNBUHCGGGcjs = require('../../chunk-NBUHCGGG.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7MLK7BGFcjs = require('../../chunk-7MLK7BGF.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkOZUUCVDZcjs = require('../../chunk-OZUUCVDZ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,9 +22,9 @@ var _chunk6VP5UWZGcjs = require('../../chunk-6VP5UWZG.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('../../chunk-
|
|
27
|
-
require('../../chunk-
|
|
25
|
+
var _chunkFFEE2ON2cjs = require('../../chunk-FFEE2ON2.cjs');
|
|
26
|
+
require('../../chunk-DTBIIFZG.cjs');
|
|
27
|
+
require('../../chunk-NG3RKTQU.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ require('../../chunk-HJBJHQKE.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkE56LN23Hcjs = require('../../chunk-E56LN23H.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -40,25 +40,25 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkBWR5ACK3cjs = require('../../chunk-BWR5ACK3.cjs');
|
|
44
44
|
require('../../chunk-VXAKQRV7.cjs');
|
|
45
45
|
require('../../chunk-24I6RFVU.cjs');
|
|
46
46
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
47
47
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkYR74H7Z3cjs = require('../../chunk-YR74H7Z3.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkYMWK7GOCcjs = require('../../chunk-YMWK7GOC.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
58
|
-
require('../../chunk-
|
|
59
|
-
require('../../chunk-
|
|
60
|
-
require('../../chunk-
|
|
61
|
-
require('../../chunk-
|
|
57
|
+
var _chunk3H3CQ7BQcjs = require('../../chunk-3H3CQ7BQ.cjs');
|
|
58
|
+
require('../../chunk-7MV23NNT.cjs');
|
|
59
|
+
require('../../chunk-ZD6SZLO2.cjs');
|
|
60
|
+
require('../../chunk-3NGJ7NPT.cjs');
|
|
61
|
+
require('../../chunk-JTIGKLKJ.cjs');
|
|
62
62
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
63
63
|
require('../../chunk-OMV5S5PI.cjs');
|
|
64
64
|
require('../../chunk-KHPX3KU4.cjs');
|
|
@@ -1849,24 +1849,24 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1849
1849
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1850
1850
|
|
|
1851
1851
|
|
|
1852
|
-
var
|
|
1852
|
+
var _chunk6GCXQIUUcjs = require('../../chunk-6GCXQIUU.cjs');
|
|
1853
1853
|
require('../../chunk-OJZBZH56.cjs');
|
|
1854
|
-
require('../../chunk-
|
|
1854
|
+
require('../../chunk-HATRCNXJ.cjs');
|
|
1855
1855
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1856
1856
|
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-IS77JFF6.cjs');
|
|
1861
|
+
require('../../chunk-QKXXHOOD.cjs');
|
|
1862
1862
|
|
|
1863
1863
|
|
|
1864
|
-
var
|
|
1865
|
-
require('../../chunk-
|
|
1866
|
-
require('../../chunk-
|
|
1864
|
+
var _chunkYBTORXFYcjs = require('../../chunk-YBTORXFY.cjs');
|
|
1865
|
+
require('../../chunk-2JCY5KQL.cjs');
|
|
1866
|
+
require('../../chunk-P4B6PVSG.cjs');
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
|
-
var
|
|
1869
|
+
var _chunkVVLL37EMcjs = require('../../chunk-VVLL37EM.cjs');
|
|
1870
1870
|
|
|
1871
1871
|
|
|
1872
1872
|
|
|
@@ -1874,7 +1874,7 @@ var _chunk72NE4G63cjs = require('../../chunk-72NE4G63.cjs');
|
|
|
1874
1874
|
|
|
1875
1875
|
|
|
1876
1876
|
|
|
1877
|
-
var
|
|
1877
|
+
var _chunk6UKH22NQcjs = require('../../chunk-6UKH22NQ.cjs');
|
|
1878
1878
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1879
1879
|
require('../../chunk-32ASZMTV.cjs');
|
|
1880
1880
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -1885,7 +1885,7 @@ require('../../chunk-RUHKTWGB.cjs');
|
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
1887
|
var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
1888
|
-
require('../../chunk-
|
|
1888
|
+
require('../../chunk-XR323UBY.cjs');
|
|
1889
1889
|
|
|
1890
1890
|
|
|
1891
1891
|
var _chunk7PNRXJX2cjs = require('../../chunk-7PNRXJX2.cjs');
|
|
@@ -1893,39 +1893,39 @@ require('../../chunk-NTPX5GXI.cjs');
|
|
|
1893
1893
|
require('../../chunk-AQXKXZWB.cjs');
|
|
1894
1894
|
require('../../chunk-V4FXUIMH.cjs');
|
|
1895
1895
|
require('../../chunk-SZHDXXMK.cjs');
|
|
1896
|
-
require('../../chunk-
|
|
1896
|
+
require('../../chunk-5RGGUQ4Y.cjs');
|
|
1897
1897
|
require('../../chunk-5GJM7VRR.cjs');
|
|
1898
|
-
require('../../chunk-
|
|
1898
|
+
require('../../chunk-KUXHXLJQ.cjs');
|
|
1899
1899
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
1900
1900
|
|
|
1901
1901
|
|
|
1902
1902
|
|
|
1903
1903
|
|
|
1904
|
-
var
|
|
1904
|
+
var _chunkTTZEDDR5cjs = require('../../chunk-TTZEDDR5.cjs');
|
|
1905
1905
|
|
|
1906
1906
|
|
|
1907
|
-
var
|
|
1908
|
-
require('../../chunk-
|
|
1907
|
+
var _chunkGD47ZGOUcjs = require('../../chunk-GD47ZGOU.cjs');
|
|
1908
|
+
require('../../chunk-NL3G642U.cjs');
|
|
1909
1909
|
require('../../chunk-Z74QE57T.cjs');
|
|
1910
1910
|
require('../../chunk-XZJCBIYR.cjs');
|
|
1911
1911
|
|
|
1912
1912
|
|
|
1913
|
-
var
|
|
1913
|
+
var _chunkLKQ33CMYcjs = require('../../chunk-LKQ33CMY.cjs');
|
|
1914
1914
|
|
|
1915
1915
|
|
|
1916
1916
|
|
|
1917
1917
|
|
|
1918
|
-
var
|
|
1918
|
+
var _chunk4WIJI4AKcjs = require('../../chunk-4WIJI4AK.cjs');
|
|
1919
1919
|
|
|
1920
1920
|
|
|
1921
|
-
var
|
|
1921
|
+
var _chunkAHBTZ7DNcjs = require('../../chunk-AHBTZ7DN.cjs');
|
|
1922
1922
|
|
|
1923
1923
|
|
|
1924
1924
|
|
|
1925
1925
|
|
|
1926
1926
|
|
|
1927
1927
|
|
|
1928
|
-
var
|
|
1928
|
+
var _chunk7JWFMAQBcjs = require('../../chunk-7JWFMAQB.cjs');
|
|
1929
1929
|
|
|
1930
1930
|
|
|
1931
1931
|
var _chunkV45KLJQPcjs = require('../../chunk-V45KLJQP.cjs');
|
|
@@ -2221,7 +2221,7 @@ function useMeetingBooking(options) {
|
|
|
2221
2221
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2222
2222
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2223
2223
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2224
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2224
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkYMWK7GOCcjs.MAX_MONTH_OFFSET, offset)));
|
|
2225
2225
|
}, []);
|
|
2226
2226
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2227
2227
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2229,7 +2229,7 @@ function useMeetingBooking(options) {
|
|
|
2229
2229
|
prevMeetingIdRef.current = meetingId;
|
|
2230
2230
|
setMonthOffsetState(0);
|
|
2231
2231
|
}, [meetingId]);
|
|
2232
|
-
const inScope =
|
|
2232
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
2233
2233
|
const seed = _optionalChain([initialAvailability, 'optionalAccess', _13 => _13.meetingId]) === meetingId && initialAvailability.monthOffset === monthOffset ? initialAvailability : void 0;
|
|
2234
2234
|
const availabilityQuery = _reactquery.useQuery.call(void 0, {
|
|
2235
2235
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
@@ -2318,12 +2318,12 @@ function BookingContextSummary({
|
|
|
2318
2318
|
slot,
|
|
2319
2319
|
loading: loadingProp
|
|
2320
2320
|
}) {
|
|
2321
|
-
const loading =
|
|
2321
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2322
2322
|
const items = hasBookingContext(context) ? context.items.filter((item) => item.trim()) : [];
|
|
2323
2323
|
const label = _nullishCoalesce(_optionalChain([slot, 'optionalAccess', _14 => _14.label]), () => ( _optionalChain([context, 'optionalAccess', _15 => _15.label])));
|
|
2324
2324
|
if (!label || !slot && items.length === 0) return null;
|
|
2325
2325
|
if (!slot) {
|
|
2326
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", "aria-label": label, children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2326
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", "aria-label": label, children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: item, ...LINE_TAG_PROPS }) }, item)) }) });
|
|
2327
2327
|
}
|
|
2328
2328
|
const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
|
|
2329
2329
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -2335,9 +2335,9 @@ function BookingContextSummary({
|
|
|
2335
2335
|
className: SLOT_CELL_CLASS,
|
|
2336
2336
|
"aria-hidden": empty || void 0,
|
|
2337
2337
|
"data-loading-item": "",
|
|
2338
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2338
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: item, ...LINE_TAG_PROPS }) : (
|
|
2339
2339
|
// With no line at all the empty state covers every slot; with some, the rest stay as slots.
|
|
2340
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2340
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EMPTY_CELL_CLASS, items.length === 0 && "invisible") })
|
|
2341
2341
|
)
|
|
2342
2342
|
},
|
|
2343
2343
|
_nullishCoalesce(item, () => ( `empty-${index}`))
|
|
@@ -2375,7 +2375,7 @@ var evenSpan = (count, index) => {
|
|
|
2375
2375
|
const extra = GRID_COLUMNS - base * count;
|
|
2376
2376
|
return Math.min(GRID_COLUMNS, Math.max(1, index < extra ? base + 1 : base));
|
|
2377
2377
|
};
|
|
2378
|
-
var slotColumnClass = (row, slot, index) =>
|
|
2378
|
+
var slotColumnClass = (row, slot, index) => _chunk7JWFMAQBcjs.cn.call(void 0, row.length === 2 ? "col-span-1" : "col-span-2", SPAN_CLASS[_nullishCoalesce(slot.span, () => ( evenSpan(row.length, index)))]);
|
|
2379
2379
|
var placeholderFor = (field) => _nullishCoalesce(field.placeholder, () => ( _optionalChain([fieldTypeSpec, 'call', _16 => _16(field.type), 'access', _17 => _17.placeholder, 'optionalCall', _18 => _18(field)])));
|
|
2380
2380
|
var formFieldOptionLabel = (field, value) => _nullishCoalesce(_optionalChain([field, 'access', _19 => _19.optionLabels, 'optionalAccess', _20 => _20[value]]), () => ( value));
|
|
2381
2381
|
var trimmed = (v) => String(_nullishCoalesce(v, () => ( ""))).trim();
|
|
@@ -2389,7 +2389,7 @@ var canonicalNumber = (v) => {
|
|
|
2389
2389
|
};
|
|
2390
2390
|
var FIELD_CONTROLS = {
|
|
2391
2391
|
text: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2392
|
-
|
|
2392
|
+
_chunkTTZEDDR5cjs.Input,
|
|
2393
2393
|
{
|
|
2394
2394
|
id,
|
|
2395
2395
|
type: _nullishCoalesce(field.inputType, () => ( "text")),
|
|
@@ -2402,7 +2402,7 @@ var FIELD_CONTROLS = {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
),
|
|
2404
2404
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2405
|
-
|
|
2405
|
+
_chunkFFEE2ON2cjs.Textarea,
|
|
2406
2406
|
{
|
|
2407
2407
|
id,
|
|
2408
2408
|
required: field.required,
|
|
@@ -2413,7 +2413,7 @@ var FIELD_CONTROLS = {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
),
|
|
2415
2415
|
number: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2416
|
-
|
|
2416
|
+
_chunkTTZEDDR5cjs.Input,
|
|
2417
2417
|
{
|
|
2418
2418
|
id,
|
|
2419
2419
|
type: "number",
|
|
@@ -2426,7 +2426,7 @@ var FIELD_CONTROLS = {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
),
|
|
2428
2428
|
phone: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2429
|
-
|
|
2429
|
+
_chunkTTZEDDR5cjs.Input,
|
|
2430
2430
|
{
|
|
2431
2431
|
id,
|
|
2432
2432
|
type: "tel",
|
|
@@ -2442,7 +2442,7 @@ var FIELD_CONTROLS = {
|
|
|
2442
2442
|
date: ({ field, id, registerName, error, register }) => (
|
|
2443
2443
|
// The native picker emits exactly the wire shape (`YYYY-MM-DD`).
|
|
2444
2444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2445
|
-
|
|
2445
|
+
_chunkTTZEDDR5cjs.Input,
|
|
2446
2446
|
{
|
|
2447
2447
|
id,
|
|
2448
2448
|
type: "date",
|
|
@@ -2458,18 +2458,18 @@ var FIELD_CONTROLS = {
|
|
|
2458
2458
|
{
|
|
2459
2459
|
control,
|
|
2460
2460
|
name: registerName,
|
|
2461
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2461
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkE56LN23Hcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2462
2462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2463
|
-
|
|
2463
|
+
_chunkE56LN23Hcjs.SelectTrigger,
|
|
2464
2464
|
{
|
|
2465
2465
|
id,
|
|
2466
2466
|
"aria-required": field.required || void 0,
|
|
2467
2467
|
"aria-invalid": Boolean(error),
|
|
2468
2468
|
invalid: Boolean(error),
|
|
2469
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2469
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2470
2470
|
}
|
|
2471
2471
|
),
|
|
2472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2473
2473
|
] })
|
|
2474
2474
|
}
|
|
2475
2475
|
),
|
|
@@ -2479,15 +2479,15 @@ var FIELD_CONTROLS = {
|
|
|
2479
2479
|
control,
|
|
2480
2480
|
name: registerName,
|
|
2481
2481
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2482
|
-
|
|
2482
|
+
_chunkFFEE2ON2cjs.RadioGroup,
|
|
2483
2483
|
{
|
|
2484
2484
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2485
2485
|
onValueChange: rhf.onChange,
|
|
2486
2486
|
"aria-required": field.required || void 0,
|
|
2487
2487
|
"aria-invalid": Boolean(error),
|
|
2488
2488
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2489
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2491
2491
|
] }, opt))
|
|
2492
2492
|
}
|
|
2493
2493
|
)
|
|
@@ -2509,7 +2509,7 @@ var FIELD_CONTROLS = {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
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: [
|
|
2511
2511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2512
|
-
|
|
2512
|
+
_chunkYR74H7Z3cjs.Checkbox,
|
|
2513
2513
|
{
|
|
2514
2514
|
id: `${id}-${opt}`,
|
|
2515
2515
|
checked: selected.includes(opt),
|
|
@@ -2517,7 +2517,7 @@ var FIELD_CONTROLS = {
|
|
|
2517
2517
|
"aria-invalid": Boolean(error)
|
|
2518
2518
|
}
|
|
2519
2519
|
),
|
|
2520
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2520
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2521
2521
|
] }, opt)) });
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
@@ -2533,7 +2533,7 @@ var FIELD_CONTROLS = {
|
|
|
2533
2533
|
// this id — a second inline label would double the visible text AND
|
|
2534
2534
|
// the accessible name.
|
|
2535
2535
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2536
|
-
|
|
2536
|
+
_chunkYR74H7Z3cjs.Checkbox,
|
|
2537
2537
|
{
|
|
2538
2538
|
id,
|
|
2539
2539
|
checked: Boolean(rhf.value),
|
|
@@ -2560,7 +2560,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2560
2560
|
control,
|
|
2561
2561
|
name: registerName,
|
|
2562
2562
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2563
|
-
|
|
2563
|
+
_chunkFFEE2ON2cjs.ToggleGroup,
|
|
2564
2564
|
{
|
|
2565
2565
|
id,
|
|
2566
2566
|
type: "single",
|
|
@@ -2571,18 +2571,18 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2571
2571
|
},
|
|
2572
2572
|
ref: (group) => rhf.ref(group && { focus: () => _optionalChain([group, 'access', _23 => _23.querySelector, 'call', _24 => _24("button"), 'optionalAccess', _25 => _25.focus, 'call', _26 => _26()]) }),
|
|
2573
2573
|
onBlur: rhf.onBlur,
|
|
2574
|
-
"aria-labelledby":
|
|
2574
|
+
"aria-labelledby": _chunkTTZEDDR5cjs.fieldLabelId.call(void 0, id),
|
|
2575
2575
|
"aria-required": field.required || void 0,
|
|
2576
2576
|
"aria-invalid": Boolean(error),
|
|
2577
2577
|
className: CHIP_ROW_CLASS,
|
|
2578
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2578
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.ToggleGroupItem, { value: opt, className: _chunk7JWFMAQBcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2579
2579
|
}
|
|
2580
2580
|
)
|
|
2581
2581
|
}
|
|
2582
2582
|
);
|
|
2583
2583
|
var builtInId = (name) => `ms-${name.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`)}`;
|
|
2584
2584
|
function BookingForm(props) {
|
|
2585
|
-
const inScope =
|
|
2585
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
2586
2586
|
const { availability } = props;
|
|
2587
2587
|
if (inScope || props.loading || !availability) {
|
|
2588
2588
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2711,7 +2711,7 @@ function BookingFormBody({
|
|
|
2711
2711
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2712
2712
|
[supportedFields]
|
|
2713
2713
|
);
|
|
2714
|
-
const formRescue =
|
|
2714
|
+
const formRescue = _chunkBWR5ACK3cjs.useRescuedForm.call(void 0,
|
|
2715
2715
|
{ watch, getValues, setValue },
|
|
2716
2716
|
{
|
|
2717
2717
|
rescue,
|
|
@@ -2720,7 +2720,7 @@ function BookingFormBody({
|
|
|
2720
2720
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2721
2721
|
}
|
|
2722
2722
|
);
|
|
2723
|
-
const { toast } =
|
|
2723
|
+
const { toast } = _chunkBWR5ACK3cjs.useToast.call(void 0, );
|
|
2724
2724
|
const onInvalid = () => {
|
|
2725
2725
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2726
2726
|
toast({
|
|
@@ -2761,7 +2761,7 @@ function BookingFormBody({
|
|
|
2761
2761
|
const copy = _optionalChain([fieldCopy, 'optionalAccess', _40 => _40[field.name]]);
|
|
2762
2762
|
const shown = copy ? { ...field, label: _nullishCoalesce(copy.label, () => ( field.label)), placeholder: _nullishCoalesce(copy.placeholder, () => ( field.placeholder)) } : field;
|
|
2763
2763
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2764
|
-
|
|
2764
|
+
_chunkTTZEDDR5cjs.FieldWrapper,
|
|
2765
2765
|
{
|
|
2766
2766
|
label: shown.label,
|
|
2767
2767
|
htmlFor: where.id,
|
|
@@ -2801,7 +2801,7 @@ function BookingFormBody({
|
|
|
2801
2801
|
const { rows: placedRows, unplacedBuiltIns, named: placedNames } = normalizeFieldRows(_nullishCoalesce(fieldRows, () => ( [])), slotResolves);
|
|
2802
2802
|
const unplacedFields = fieldRows ? supportedFields.filter((f) => !placedNames.has(f.name)) : [];
|
|
2803
2803
|
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2804
|
-
|
|
2804
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2805
2805
|
{
|
|
2806
2806
|
type: "submit",
|
|
2807
2807
|
loading: isSubmitting,
|
|
@@ -2810,8 +2810,8 @@ function BookingFormBody({
|
|
|
2810
2810
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2811
2811
|
}
|
|
2812
2812
|
);
|
|
2813
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2813
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkYMWK7GOCcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2814
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.HoneypotField, { ...honeypotInputProps }),
|
|
2815
2815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { context, slot: contextSlot }),
|
|
2816
2816
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2817
2817
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
@@ -2825,7 +2825,7 @@ function BookingFormBody({
|
|
|
2825
2825
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2826
2826
|
] }),
|
|
2827
2827
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2828
|
-
|
|
2828
|
+
_chunkFFEE2ON2cjs.CheckboxBlock,
|
|
2829
2829
|
{
|
|
2830
2830
|
id: "ms-host-consent",
|
|
2831
2831
|
checked: consented,
|
|
@@ -2844,7 +2844,7 @@ function BookingFormBody({
|
|
|
2844
2844
|
// box doesn't shove the submit button down the card. With no error the
|
|
2845
2845
|
// wrapper is `display:contents` and the panel below is the flex item,
|
|
2846
2846
|
// exactly as it was.
|
|
2847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { error: _optionalChain([errors, 'access', _44 => _44.legalConsentResponses, 'optionalAccess', _45 => _45.message]), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
2848
2848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.processingConsentText }),
|
|
2849
2849
|
legalConsent.communicationConsentText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.communicationConsentText }),
|
|
2850
2850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2860,7 +2860,7 @@ function BookingFormBody({
|
|
|
2860
2860
|
// same block the waitlist form uses): box + label in one
|
|
2861
2861
|
// bordered row.
|
|
2862
2862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2863
|
-
|
|
2863
|
+
_chunkFFEE2ON2cjs.CheckboxBlock,
|
|
2864
2864
|
{
|
|
2865
2865
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2866
2866
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2896,10 +2896,10 @@ function BookingFormPending({
|
|
|
2896
2896
|
contextSlot
|
|
2897
2897
|
}) {
|
|
2898
2898
|
const consentId = _react.useId.call(void 0, );
|
|
2899
|
-
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2899
|
+
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", tabIndex: -1, className: footerNote ? SUBMIT_WIDE_CLASS : void 0, children: submitLabel });
|
|
2900
2900
|
return (
|
|
2901
2901
|
// Inert: the fields are the form's own controls, drawn so each is its loaded size; none takes focus.
|
|
2902
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2902
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex-1", FORM_STACK), "aria-hidden": true, inert: true, children: [
|
|
2903
2903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { slot: contextSlot, loading: true }),
|
|
2904
2904
|
skeletonRows(_nullishCoalesce(fieldRows, () => ( DEFAULT_FIELD_ROWS)), optionalFields).map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2905
2905
|
FieldSkeleton,
|
|
@@ -2911,18 +2911,18 @@ function BookingFormPending({
|
|
|
2911
2911
|
slot.name
|
|
2912
2912
|
)) }, row.map((s) => s.name).join("|"))),
|
|
2913
2913
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2914
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2915
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2916
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2914
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label: "", children: [
|
|
2915
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2916
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.Textarea, { tabIndex: -1 })
|
|
2917
2917
|
] }),
|
|
2918
2918
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2919
|
-
|
|
2919
|
+
_chunkFFEE2ON2cjs.CheckboxBlock,
|
|
2920
2920
|
{
|
|
2921
2921
|
id: consentId,
|
|
2922
2922
|
checked: false,
|
|
2923
|
-
onCheckedChange:
|
|
2923
|
+
onCheckedChange: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
2924
2924
|
required: true,
|
|
2925
|
-
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2925
|
+
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-64 max-w-full" }) : consent.label,
|
|
2926
2926
|
description: consent === true ? void 0 : consent.description
|
|
2927
2927
|
}
|
|
2928
2928
|
),
|
|
@@ -2965,9 +2965,9 @@ function FieldSkeleton({
|
|
|
2965
2965
|
const label = builtIn ? _nullishCoalesce(_optionalChain([copy, 'optionalAccess', _48 => _48.label]), () => ( builtIn.label)) : _optionalChain([copy, 'optionalAccess', _49 => _49.label]);
|
|
2966
2966
|
return (
|
|
2967
2967
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2968
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2969
|
-
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2970
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2968
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2969
|
+
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2970
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "default", className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkFFEE2ON2cjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.Input, { tabIndex: -1 })
|
|
2971
2971
|
] })
|
|
2972
2972
|
);
|
|
2973
2973
|
}
|
|
@@ -2975,7 +2975,7 @@ function FieldSkeleton({
|
|
|
2975
2975
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2976
2976
|
|
|
2977
2977
|
function Confirmation({ confirmation, timezone }) {
|
|
2978
|
-
const when =
|
|
2978
|
+
const when = _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2979
2979
|
viewerLocale: true
|
|
2980
2980
|
});
|
|
2981
2981
|
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: [
|
|
@@ -2985,7 +2985,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2985
2985
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2986
2986
|
when,
|
|
2987
2987
|
" \xB7 ",
|
|
2988
|
-
|
|
2988
|
+
_chunk6UKH22NQcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2989
2989
|
] }),
|
|
2990
2990
|
/* @__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." })
|
|
2991
2991
|
] });
|
|
@@ -2999,11 +2999,11 @@ var HOST_TEXT_CLASS = "flex min-w-0 flex-col";
|
|
|
2999
2999
|
var HOST_TEAM_CLASS = "flex min-w-0 flex-col gap-[var(--spacing-system-xs)]";
|
|
3000
3000
|
var MAX_HOST_ROWS = 3;
|
|
3001
3001
|
function HostIdentity({ hosts, loading = false }) {
|
|
3002
|
-
if (
|
|
3002
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentitySkeleton, {});
|
|
3003
3003
|
if (hosts.length === 0) return null;
|
|
3004
3004
|
if (hosts.length > MAX_HOST_ROWS) {
|
|
3005
3005
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEAM_CLASS, children: [
|
|
3006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVVLL37EMcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3007
3007
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3008
3008
|
hosts.length,
|
|
3009
3009
|
" hosts on this calendar"
|
|
@@ -3012,7 +3012,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
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: [
|
|
3014
3014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3015
|
-
|
|
3015
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
3016
3016
|
{
|
|
3017
3017
|
variant: "round",
|
|
3018
3018
|
size: "sm",
|
|
@@ -3029,10 +3029,10 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
function HostIdentitySkeleton() {
|
|
3031
3031
|
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: [
|
|
3032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3032
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
3034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
3036
3036
|
] })
|
|
3037
3037
|
] }) });
|
|
3038
3038
|
}
|
|
@@ -3059,24 +3059,24 @@ function ContextPanelSkeleton({
|
|
|
3059
3059
|
durations = 0,
|
|
3060
3060
|
timezone = "shown"
|
|
3061
3061
|
}) {
|
|
3062
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3063
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3062
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3063
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3064
3064
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3065
3065
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3066
3066
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
3067
3067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
3068
|
-
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3068
|
+
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-20 shrink-0" })
|
|
3069
3069
|
] }),
|
|
3070
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3071
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3070
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
3071
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-4/5" }),
|
|
3072
3072
|
durations > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DURATION_FIELD_CLASS, children: [
|
|
3073
3073
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
3074
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3074
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: durations, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { "data-loading-item": true, size: "small-legacy", className: "w-16" }) }) })
|
|
3075
3075
|
] })
|
|
3076
3076
|
] }),
|
|
3077
|
-
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3077
|
+
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3078
3078
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3079
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3080
3080
|
] })
|
|
3081
3081
|
] })
|
|
3082
3082
|
] });
|
|
@@ -3099,7 +3099,7 @@ function SchedulerContextPanel({
|
|
|
3099
3099
|
className,
|
|
3100
3100
|
loading = false
|
|
3101
3101
|
}) {
|
|
3102
|
-
if (
|
|
3102
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading) {
|
|
3103
3103
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3104
3104
|
ContextPanelSkeleton,
|
|
3105
3105
|
{
|
|
@@ -3113,8 +3113,8 @@ function SchedulerContextPanel({
|
|
|
3113
3113
|
}
|
|
3114
3114
|
);
|
|
3115
3115
|
}
|
|
3116
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3117
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3116
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3117
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3118
3118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3119
3119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3120
3120
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3123,7 +3123,7 @@ function SchedulerContextPanel({
|
|
|
3123
3123
|
// Post-selection, or a link that offers one length: a static line,
|
|
3124
3124
|
// which is what sits beside the host on the header-strip layouts.
|
|
3125
3125
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3126
|
-
|
|
3126
|
+
_chunk6UKH22NQcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3127
3127
|
" call"
|
|
3128
3128
|
] })
|
|
3129
3129
|
) : null
|
|
@@ -3133,14 +3133,14 @@ function SchedulerContextPanel({
|
|
|
3133
3133
|
!locked && durationsMs.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DURATION_FIELD_CLASS, children: [
|
|
3134
3134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
3135
3135
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: durationsMs.map((ms) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3136
|
-
|
|
3136
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3137
3137
|
{
|
|
3138
3138
|
"data-loading-item": true,
|
|
3139
3139
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
3140
3140
|
size: "small-legacy",
|
|
3141
3141
|
disabled,
|
|
3142
3142
|
onClick: () => onSelectDuration(ms),
|
|
3143
|
-
children:
|
|
3143
|
+
children: _chunk6UKH22NQcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3144
3144
|
},
|
|
3145
3145
|
ms
|
|
3146
3146
|
)) })
|
|
@@ -3152,10 +3152,10 @@ function SchedulerContextPanel({
|
|
|
3152
3152
|
// summary line states the zone one row below — so the fact survives,
|
|
3153
3153
|
// only the control steps aside. The 280px sidebar has the room, so
|
|
3154
3154
|
// there it stays.
|
|
3155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3155
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3156
3156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3157
3157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3158
|
-
|
|
3158
|
+
_chunkFFEE2ON2cjs.TimezoneSelect,
|
|
3159
3159
|
{
|
|
3160
3160
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3161
3161
|
loading: !timezone,
|
|
@@ -3173,9 +3173,9 @@ function SchedulerContextPanel({
|
|
|
3173
3173
|
// src/components/meeting-scheduler/modal-header.tsx
|
|
3174
3174
|
|
|
3175
3175
|
var ROW_CLASS = "border-b border-ods-border p-[var(--spacing-system-m)]";
|
|
3176
|
-
var STRIP_CLASS =
|
|
3176
|
+
var STRIP_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, ROW_CLASS, "flex items-center justify-between gap-[var(--spacing-system-m)]");
|
|
3177
3177
|
var FIELD_LABEL_CLASS2 = "text-h4 text-ods-text-primary";
|
|
3178
|
-
var TIMEZONE_ROW_CLASS =
|
|
3178
|
+
var TIMEZONE_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, ROW_CLASS, "flex flex-col gap-[var(--spacing-system-xxs)]");
|
|
3179
3179
|
var DURATION_LINE_CLASS2 = "shrink-0 text-ods-text-secondary text-h6";
|
|
3180
3180
|
function SchedulerModalHeader({
|
|
3181
3181
|
hosts,
|
|
@@ -3190,29 +3190,29 @@ function SchedulerModalHeader({
|
|
|
3190
3190
|
loading = false
|
|
3191
3191
|
}) {
|
|
3192
3192
|
const chips = !locked && durationsMs.length > 1;
|
|
3193
|
-
if (
|
|
3193
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchedulerModalHeaderSkeleton, { showTimezone });
|
|
3194
3194
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3195
3195
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3196
3196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts }),
|
|
3197
3197
|
chips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 flex-wrap justify-end gap-[var(--spacing-system-xs)]", children: durationsMs.map((ms) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3198
|
-
|
|
3198
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3199
3199
|
{
|
|
3200
3200
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
3201
3201
|
size: "small-legacy",
|
|
3202
3202
|
disabled,
|
|
3203
3203
|
onClick: () => onSelectDuration(ms),
|
|
3204
|
-
children:
|
|
3204
|
+
children: _chunk6UKH22NQcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3205
3205
|
},
|
|
3206
3206
|
ms
|
|
3207
3207
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3208
|
-
|
|
3208
|
+
_chunk6UKH22NQcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3209
3209
|
" call"
|
|
3210
3210
|
] })
|
|
3211
3211
|
] }),
|
|
3212
3212
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3213
3213
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3214
3214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3215
|
-
|
|
3215
|
+
_chunkFFEE2ON2cjs.TimezoneSelect,
|
|
3216
3216
|
{
|
|
3217
3217
|
value: timezone,
|
|
3218
3218
|
loading: !timezone,
|
|
@@ -3229,11 +3229,11 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3229
3229
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3230
3230
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3231
3231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
3232
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: _chunk7JWFMAQBcjs.cn.call(void 0, DURATION_LINE_CLASS2, "w-20") })
|
|
3233
3233
|
] }),
|
|
3234
3234
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3235
3235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3237
3237
|
] })
|
|
3238
3238
|
] });
|
|
3239
3239
|
}
|
|
@@ -3256,13 +3256,13 @@ function dateFromDayKey(key) {
|
|
|
3256
3256
|
return new Date(y, m - 1, d, 12);
|
|
3257
3257
|
}
|
|
3258
3258
|
function timeLabelInZone(ms, timeZone) {
|
|
3259
|
-
return
|
|
3259
|
+
return _chunk6UKH22NQcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3260
3260
|
}
|
|
3261
3261
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3262
3262
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
3263
3263
|
var COLUMN_STACK = "flex min-h-0 flex-col gap-[var(--spacing-system-xxs)]";
|
|
3264
3264
|
var SLOT_PICKER_HEADING = "Select Date & Time";
|
|
3265
|
-
var CHIP_GRID_CLASS =
|
|
3265
|
+
var CHIP_GRID_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3266
3266
|
"grid grid-cols-[repeat(auto-fill,minmax(5.5rem,1fr))] content-start gap-[var(--spacing-system-xs)]",
|
|
3267
3267
|
"overflow-y-auto",
|
|
3268
3268
|
// PHONE: a stated window (~3 rows, the mock's 156px) that scrolls, rather
|
|
@@ -3285,7 +3285,7 @@ var CHIP_GRID_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
|
3285
3285
|
"min-h-0 flex-1"
|
|
3286
3286
|
);
|
|
3287
3287
|
var CHIP_CLASS = "w-full px-[var(--spacing-system-xxs)]";
|
|
3288
|
-
var SLOT_ROW_CLASS =
|
|
3288
|
+
var SLOT_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3289
3289
|
"flex min-w-0 flex-col content-md:flex-row",
|
|
3290
3290
|
// Default `stretch` at every width, deliberately. Stacked, that is what
|
|
3291
3291
|
// makes each section span the card — an `items-start` here (it was here, to
|
|
@@ -3302,31 +3302,31 @@ var MODAL_CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0";
|
|
|
3302
3302
|
var MODAL_COLUMN_BOX = "p-[var(--spacing-system-m)]";
|
|
3303
3303
|
var MODAL_COLUMN_DIVIDER = "border-b border-ods-border content-md:border-b-0 content-md:border-r";
|
|
3304
3304
|
var MODAL_TIMES_H = "content-md:h-[21.5rem]";
|
|
3305
|
-
var MODAL_CHIP_GRID_CLASS =
|
|
3305
|
+
var MODAL_CHIP_GRID_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3306
3306
|
"grid grid-cols-4 content-start gap-[var(--spacing-system-xs)] overflow-y-auto content-md:grid-cols-1",
|
|
3307
3307
|
"max-h-[9.75rem] min-h-0 flex-1 content-md:max-h-none"
|
|
3308
3308
|
);
|
|
3309
3309
|
function monthLabelFor(offset) {
|
|
3310
3310
|
const now = /* @__PURE__ */ new Date();
|
|
3311
3311
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3312
|
-
return
|
|
3312
|
+
return _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, month, _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3313
3313
|
}
|
|
3314
3314
|
var DISABLE_EVERY_DAY = () => true;
|
|
3315
3315
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3316
3316
|
const now = /* @__PURE__ */ new Date();
|
|
3317
3317
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3318
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3318
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkYMWK7GOCcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3319
3319
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3320
3320
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _54 => _54.has, 'call', _55 => _55(calendarDayKey(day))]), [slotsByDay]);
|
|
3321
3321
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3322
|
-
|
|
3322
|
+
_chunkFFEE2ON2cjs.DatePickerCalendar,
|
|
3323
3323
|
{
|
|
3324
3324
|
mode: "single",
|
|
3325
3325
|
bare: true,
|
|
3326
3326
|
month: visibleMonth,
|
|
3327
3327
|
onMonthChange: (month) => {
|
|
3328
3328
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3329
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3329
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkYMWK7GOCcjs.MAX_MONTH_OFFSET, offset)));
|
|
3330
3330
|
},
|
|
3331
3331
|
fromDate: startMonth,
|
|
3332
3332
|
toDate: endMonth,
|
|
@@ -3347,16 +3347,16 @@ function SlotPickerSkeleton({ monthOffset = 0, layout = "card" }) {
|
|
|
3347
3347
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3348
3348
|
"div",
|
|
3349
3349
|
{
|
|
3350
|
-
className: modal ?
|
|
3350
|
+
className: modal ? _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_COLUMN_DIVIDER, MODAL_CALENDAR_W) : _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, COLUMN_DIVIDER, CALENDAR_W, "content-md:overflow-y-auto"),
|
|
3351
3351
|
children: [
|
|
3352
3352
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: SLOT_PICKER_HEADING }),
|
|
3353
3353
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3354
3354
|
DayCalendar,
|
|
3355
3355
|
{
|
|
3356
3356
|
monthOffset,
|
|
3357
|
-
onMonthOffsetChange:
|
|
3357
|
+
onMonthOffsetChange: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
3358
3358
|
selectedDay: null,
|
|
3359
|
-
onSelectDay:
|
|
3359
|
+
onSelectDay: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
3360
3360
|
slotsByDay: null
|
|
3361
3361
|
}
|
|
3362
3362
|
)
|
|
@@ -3366,7 +3366,7 @@ function SlotPickerSkeleton({ monthOffset = 0, layout = "card" }) {
|
|
|
3366
3366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3367
3367
|
"div",
|
|
3368
3368
|
{
|
|
3369
|
-
className: modal ?
|
|
3369
|
+
className: modal ? _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3370
3370
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout })
|
|
3371
3371
|
}
|
|
3372
3372
|
)
|
|
@@ -3375,8 +3375,8 @@ function SlotPickerSkeleton({ monthOffset = 0, layout = "card" }) {
|
|
|
3375
3375
|
var SLOT_PICKER_SKELETON_CHIPS = 16;
|
|
3376
3376
|
function TimeChipsSkeleton({ layout = "card" } = {}) {
|
|
3377
3377
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-40" }) }),
|
|
3379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: SLOT_PICKER_SKELETON_CHIPS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { "data-loading-item": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, CHIP_CLASS, "h-11 content-md:h-12") }) }) })
|
|
3380
3380
|
] });
|
|
3381
3381
|
}
|
|
3382
3382
|
function SlotPicker({
|
|
@@ -3393,7 +3393,7 @@ function SlotPicker({
|
|
|
3393
3393
|
isSubmitting = false,
|
|
3394
3394
|
loading = false
|
|
3395
3395
|
}) {
|
|
3396
|
-
const inScope =
|
|
3396
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
3397
3397
|
const slotsByDay = _react.useMemo.call(void 0, () => {
|
|
3398
3398
|
const map = /* @__PURE__ */ new Map();
|
|
3399
3399
|
if (timezone == null) return map;
|
|
@@ -3419,7 +3419,7 @@ function SlotPicker({
|
|
|
3419
3419
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3420
3420
|
"div",
|
|
3421
3421
|
{
|
|
3422
|
-
className: modal ?
|
|
3422
|
+
className: modal ? _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_COLUMN_DIVIDER, MODAL_CALENDAR_W) : _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, COLUMN_DIVIDER, CALENDAR_W, "content-md:overflow-y-auto"),
|
|
3423
3423
|
children: [
|
|
3424
3424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: SLOT_PICKER_HEADING }),
|
|
3425
3425
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3438,13 +3438,13 @@ function SlotPicker({
|
|
|
3438
3438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3439
3439
|
"div",
|
|
3440
3440
|
{
|
|
3441
|
-
className: modal ?
|
|
3441
|
+
className: modal ? _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk7JWFMAQBcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3442
3442
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout }) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3443
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3444
3444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3445
3445
|
const isSelected = selectedSlot === ms;
|
|
3446
3446
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3447
|
-
|
|
3447
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3448
3448
|
{
|
|
3449
3449
|
variant: isSelected ? void 0 : "outline",
|
|
3450
3450
|
disabled: isSubmitting,
|
|
@@ -3470,8 +3470,8 @@ function SlotPicker({
|
|
|
3470
3470
|
monthLabelFor(monthOffset),
|
|
3471
3471
|
"."
|
|
3472
3472
|
] }),
|
|
3473
|
-
monthOffset <
|
|
3474
|
-
|
|
3473
|
+
monthOffset < _chunkYMWK7GOCcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3474
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3475
3475
|
{
|
|
3476
3476
|
variant: "outline",
|
|
3477
3477
|
onClick: () => onMonthOffsetChange(monthOffset + 1),
|
|
@@ -3494,10 +3494,10 @@ function SlotPicker({
|
|
|
3494
3494
|
|
|
3495
3495
|
|
|
3496
3496
|
function useNextAvailableLabel(ms) {
|
|
3497
|
-
const hydrated =
|
|
3497
|
+
const hydrated = _chunk3H3CQ7BQcjs.useIsHydrated.call(void 0, );
|
|
3498
3498
|
return _react.useMemo.call(void 0, () => {
|
|
3499
3499
|
if (!hydrated || ms == null) return null;
|
|
3500
|
-
return
|
|
3500
|
+
return _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, ms, _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3501
3501
|
}, [hydrated, ms]);
|
|
3502
3502
|
}
|
|
3503
3503
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3518,7 +3518,7 @@ function DirectoryRow({
|
|
|
3518
3518
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3519
3519
|
const subtitle = [
|
|
3520
3520
|
link.description,
|
|
3521
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3521
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunk6UKH22NQcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3522
3522
|
link.kind === "team" ? "Team" : null
|
|
3523
3523
|
].filter(Boolean).join(" \u2022 ");
|
|
3524
3524
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3528,13 +3528,13 @@ function DirectoryRow({
|
|
|
3528
3528
|
href: `${bookingBasePath}/${link.slug}`,
|
|
3529
3529
|
prefetch: false,
|
|
3530
3530
|
className: "block rounded-lg text-inherit no-underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
3531
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3531
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_FRAME_CLASS, "transition-colors duration-150 hover:bg-ods-bg-hover"), children: [
|
|
3532
3532
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TITLE_COLUMN_CLASS, children: [
|
|
3533
3533
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3534
3534
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3535
3535
|
] }),
|
|
3536
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3536
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVVLL37EMcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3538
3538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3539
3539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3540
3540
|
/* @__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, () => ( " ")) })
|
|
@@ -3547,16 +3547,16 @@ function DirectoryRow({
|
|
|
3547
3547
|
var NO_HOSTS = [];
|
|
3548
3548
|
var TYPICAL_HOSTS = 1;
|
|
3549
3549
|
function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
3550
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_FRAME_CLASS, "aria-hidden": true, ...
|
|
3550
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_FRAME_CLASS, "aria-hidden": true, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: [
|
|
3551
3551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TITLE_COLUMN_CLASS, children: [
|
|
3552
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3553
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3553
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3554
3554
|
] }),
|
|
3555
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3556
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3555
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3556
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVVLL37EMcjs.AvatarStack, { people: NO_HOSTS, loading: true, max: TYPICAL_HOSTS, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3557
3557
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3558
3558
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3560
3560
|
] }),
|
|
3561
3561
|
/* @__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" }) })
|
|
3562
3562
|
] });
|
|
@@ -3565,9 +3565,9 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3565
3565
|
pageSize = MEETING_DIRECTORY_PAGE_SIZE,
|
|
3566
3566
|
className
|
|
3567
3567
|
}) {
|
|
3568
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3569
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3568
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3569
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3570
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZUUCVDZcjs.PaginationSkeleton, {}) })
|
|
3571
3571
|
] });
|
|
3572
3572
|
}
|
|
3573
3573
|
function MeetingSchedulerDirectory({
|
|
@@ -3583,7 +3583,7 @@ function MeetingSchedulerDirectory({
|
|
|
3583
3583
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, initialData === null);
|
|
3584
3584
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
3585
3585
|
const [page, setPage] = _react.useState.call(void 0, 1);
|
|
3586
|
-
const inScope =
|
|
3586
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
3587
3587
|
_react.useEffect.call(void 0, () => {
|
|
3588
3588
|
if (initialData !== null || inScope) return void 0;
|
|
3589
3589
|
const controller = new AbortController();
|
|
@@ -3621,8 +3621,8 @@ function MeetingSchedulerDirectory({
|
|
|
3621
3621
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectorySkeleton, { pageSize, className });
|
|
3622
3622
|
}
|
|
3623
3623
|
if (error) {
|
|
3624
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3625
|
-
|
|
3624
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3625
|
+
_chunk7MLK7BGFcjs.EmptyState,
|
|
3626
3626
|
{
|
|
3627
3627
|
type: "generic",
|
|
3628
3628
|
title: "We couldn't load available call times",
|
|
@@ -3632,8 +3632,8 @@ function MeetingSchedulerDirectory({
|
|
|
3632
3632
|
) });
|
|
3633
3633
|
}
|
|
3634
3634
|
if (rows.length === 0) {
|
|
3635
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3636
|
-
|
|
3635
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3636
|
+
_chunk7MLK7BGFcjs.EmptyState,
|
|
3637
3637
|
{
|
|
3638
3638
|
type: "generic",
|
|
3639
3639
|
title: "No call times are published right now",
|
|
@@ -3642,10 +3642,10 @@ function MeetingSchedulerDirectory({
|
|
|
3642
3642
|
}
|
|
3643
3643
|
) });
|
|
3644
3644
|
}
|
|
3645
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3645
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3646
3646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
3647
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3648
|
-
|
|
3647
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
+
_chunkNBUHCGGGcjs.PersistentPaginationWrapper,
|
|
3649
3649
|
{
|
|
3650
3650
|
isLoading,
|
|
3651
3651
|
currentPage: page,
|
|
@@ -3669,7 +3669,7 @@ var BOOKING_ERROR_COPY = {
|
|
|
3669
3669
|
var CONTEXT_PANEL_CLASS = "p-[var(--spacing-system-l)] shrink-0 content-lg:w-[280px] border-b content-lg:border-b-0 content-lg:border-r border-ods-border content-lg:min-h-0 content-lg:overflow-y-auto";
|
|
3670
3670
|
var ACTION_PANEL_CLASS = "flex-1 min-w-0 flex flex-col content-md:min-h-0 content-lg:p-[var(--spacing-system-l)]";
|
|
3671
3671
|
var PANEL_STEP_CLASS = "p-[var(--spacing-system-l)] content-md:min-h-0 content-md:overflow-y-auto content-lg:p-0";
|
|
3672
|
-
var STEP_PANEL_CLASS =
|
|
3672
|
+
var STEP_PANEL_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-1 flex-col", PANEL_STEP_CLASS);
|
|
3673
3673
|
var MEETING_SCHEDULER_H = "content-md:h-[34.375rem] content-lg:h-[23.75rem]";
|
|
3674
3674
|
var MEETING_SCHEDULER_DETAILS_FIRST_H = "h-[50.75rem] content-md:h-[39.875rem]";
|
|
3675
3675
|
var DEFAULT_SCHEDULER_FLOW = "slot-first";
|
|
@@ -3682,7 +3682,7 @@ var SCHEDULER_FLOW_PRESETS = {
|
|
|
3682
3682
|
footerNote: "Next step: pick a slot that works. Calendar invite lands right after."
|
|
3683
3683
|
}
|
|
3684
3684
|
};
|
|
3685
|
-
var CARD_CLASS =
|
|
3685
|
+
var CARD_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3686
3686
|
"overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
3687
3687
|
"content-md:flex content-md:flex-col"
|
|
3688
3688
|
// The height is NOT baked in any more: it is chosen per flow at each render
|
|
@@ -3690,7 +3690,7 @@ var CARD_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
|
3690
3690
|
// constants are module scope.
|
|
3691
3691
|
);
|
|
3692
3692
|
var CARD_INNER_CLASS = "flex flex-col content-md:min-h-0 content-md:flex-1 content-lg:h-full content-lg:flex-row";
|
|
3693
|
-
var CARD_DEGRADED_CLASS =
|
|
3693
|
+
var CARD_DEGRADED_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3694
3694
|
"flex flex-col items-start gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-lf)]",
|
|
3695
3695
|
"content-md:justify-center content-md:overflow-y-auto"
|
|
3696
3696
|
);
|
|
@@ -3701,7 +3701,7 @@ function SchedulerDegradedCard({
|
|
|
3701
3701
|
action,
|
|
3702
3702
|
children
|
|
3703
3703
|
}) {
|
|
3704
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3704
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_DEGRADED_CLASS, SCHEDULER_FLOW_PRESETS[flow].height, className), children: [
|
|
3705
3705
|
message && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: message }),
|
|
3706
3706
|
action,
|
|
3707
3707
|
children
|
|
@@ -3724,7 +3724,7 @@ var MODAL_FIELD_ROWS = [[{ name: "firstName" }, { name: "lastName" }], [{ name:
|
|
|
3724
3724
|
var MODAL_PRIMARY_CLASS = "flex-1 content-md:min-w-[15.5rem] content-md:flex-none";
|
|
3725
3725
|
function ModalFooter({ onCancel, primary }) {
|
|
3726
3726
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-[var(--spacing-system-l)] content-md:justify-end", children: [
|
|
3727
|
-
onCancel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3727
|
+
onCancel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: onCancel, className: "flex-1 content-md:hidden", children: "Cancel" }),
|
|
3728
3728
|
primary
|
|
3729
3729
|
] });
|
|
3730
3730
|
}
|
|
@@ -3734,7 +3734,7 @@ function schedulerCardClasses(flow, step, className) {
|
|
|
3734
3734
|
const boxed = !formOnly;
|
|
3735
3735
|
return {
|
|
3736
3736
|
formOnly,
|
|
3737
|
-
cardClass:
|
|
3737
|
+
cardClass: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3738
3738
|
CARD_CLASS,
|
|
3739
3739
|
boxed ? SCHEDULER_FLOW_PRESETS[flow].height : "content-md:h-auto",
|
|
3740
3740
|
detailsFirst && "flex flex-col",
|
|
@@ -3743,9 +3743,9 @@ function schedulerCardClasses(flow, step, className) {
|
|
|
3743
3743
|
),
|
|
3744
3744
|
/** details-first states a height on phones too (see MEETING_SCHEDULER_DETAILS_FIRST_H), so
|
|
3745
3745
|
* the wrappers that let content shrink into a stated height run at every width there. */
|
|
3746
|
-
innerClass:
|
|
3747
|
-
actionPanelClass:
|
|
3748
|
-
stepPanelClass:
|
|
3746
|
+
innerClass: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_INNER_CLASS, detailsFirst && boxed && "min-h-0 flex-1"),
|
|
3747
|
+
actionPanelClass: _chunk7JWFMAQBcjs.cn.call(void 0, ACTION_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto"),
|
|
3748
|
+
stepPanelClass: _chunk7JWFMAQBcjs.cn.call(void 0, STEP_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto")
|
|
3749
3749
|
};
|
|
3750
3750
|
}
|
|
3751
3751
|
function HubSpotMeetingScheduler({
|
|
@@ -3778,13 +3778,13 @@ function HubSpotMeetingScheduler({
|
|
|
3778
3778
|
book,
|
|
3779
3779
|
isSubmitting
|
|
3780
3780
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
3781
|
-
const inScope =
|
|
3781
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
3782
3782
|
const coldStart = inScope || isLoadingAvailability && !availability;
|
|
3783
3783
|
const detailsFirst = flow === "details-first";
|
|
3784
3784
|
const modal = layout === "modal" && !detailsFirst;
|
|
3785
3785
|
const modalFormId = _react.useId.call(void 0, );
|
|
3786
3786
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3787
|
-
const hydrated =
|
|
3787
|
+
const hydrated = _chunk3H3CQ7BQcjs.useIsHydrated.call(void 0, );
|
|
3788
3788
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3789
3789
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3790
3790
|
if (!hydrated) return null;
|
|
@@ -3818,8 +3818,8 @@ function HubSpotMeetingScheduler({
|
|
|
3818
3818
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3819
3819
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3820
3820
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3821
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3822
|
-
const { toast } =
|
|
3821
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkBWR5ACK3cjs.useHumanitySignals.call(void 0, );
|
|
3822
|
+
const { toast } = _chunkBWR5ACK3cjs.useToast.call(void 0, );
|
|
3823
3823
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3824
3824
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3825
3825
|
if (machineFor !== meetingId) {
|
|
@@ -3893,7 +3893,7 @@ function HubSpotMeetingScheduler({
|
|
|
3893
3893
|
return;
|
|
3894
3894
|
}
|
|
3895
3895
|
if (result.ok && result.confirmation) {
|
|
3896
|
-
|
|
3896
|
+
_chunkBWR5ACK3cjs.completeFormRescue.call(void 0, rescue, payload[_chunk6GCXQIUUcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3897
3897
|
setConfirmation(result.confirmation);
|
|
3898
3898
|
setStep("confirmed");
|
|
3899
3899
|
_optionalChain([onBooked, 'optionalCall', _64 => _64(result.confirmation)]);
|
|
@@ -3920,7 +3920,7 @@ function HubSpotMeetingScheduler({
|
|
|
3920
3920
|
},
|
|
3921
3921
|
[book, bookingError, detailsFirst, onBooked, refetchAvailability, rescue, resetSignals, toast]
|
|
3922
3922
|
);
|
|
3923
|
-
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3923
|
+
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
3924
3924
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
3925
3925
|
const { cardClass, innerClass, actionPanelClass, stepPanelClass } = schedulerCardClasses(flow, step, className);
|
|
3926
3926
|
const degraded = (message) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchedulerDegradedCard, { flow, className, message, action: escapeHatch });
|
|
@@ -3938,14 +3938,14 @@ function HubSpotMeetingScheduler({
|
|
|
3938
3938
|
setSelectedDay(null);
|
|
3939
3939
|
setSelectedSlot(null);
|
|
3940
3940
|
};
|
|
3941
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3942
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3943
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3941
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunk6UKH22NQcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3942
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3943
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3944
3944
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3945
|
-
|
|
3945
|
+
_chunkE56LN23Hcjs.BackButton,
|
|
3946
3946
|
{
|
|
3947
3947
|
onClick: modalBack,
|
|
3948
|
-
className:
|
|
3948
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3949
3949
|
"px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]",
|
|
3950
3950
|
step === "slot" && "content-md:hidden"
|
|
3951
3951
|
)
|
|
@@ -3965,7 +3965,7 @@ function HubSpotMeetingScheduler({
|
|
|
3965
3965
|
showTimezone: step === "slot"
|
|
3966
3966
|
}
|
|
3967
3967
|
),
|
|
3968
|
-
step === "confirmed" && confirmation && timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: MODAL_STEP_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Confirmation, { confirmation, timezone }) }) : step === "details" && durationMs != null && selectedSlot != null && timezone ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3968
|
+
step === "confirmed" && confirmation && timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: MODAL_STEP_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Confirmation, { confirmation, timezone }) }) : step === "details" && durationMs != null && selectedSlot != null && timezone ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STEP_CLASS, "gap-[var(--spacing-system-m)]"), children: [
|
|
3969
3969
|
summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: summary }),
|
|
3970
3970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3971
3971
|
DetailsForm,
|
|
@@ -3988,8 +3988,8 @@ function HubSpotMeetingScheduler({
|
|
|
3988
3988
|
}
|
|
3989
3989
|
)
|
|
3990
3990
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3991
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3992
|
-
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3991
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3992
|
+
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3993
3993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3994
3994
|
escapeHatch
|
|
3995
3995
|
] }) : (
|
|
@@ -4022,7 +4022,7 @@ function HubSpotMeetingScheduler({
|
|
|
4022
4022
|
{
|
|
4023
4023
|
onCancel: onBack,
|
|
4024
4024
|
primary: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4025
|
-
|
|
4025
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
4026
4026
|
{
|
|
4027
4027
|
disabled: selectedSlot == null || durationMs == null,
|
|
4028
4028
|
onClick: () => setStep("details"),
|
|
@@ -4037,7 +4037,7 @@ function HubSpotMeetingScheduler({
|
|
|
4037
4037
|
{
|
|
4038
4038
|
onCancel: onBack,
|
|
4039
4039
|
primary: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4040
|
-
|
|
4040
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
4041
4041
|
{
|
|
4042
4042
|
type: "submit",
|
|
4043
4043
|
form: modalFormId,
|
|
@@ -4051,7 +4051,7 @@ function HubSpotMeetingScheduler({
|
|
|
4051
4051
|
)
|
|
4052
4052
|
] });
|
|
4053
4053
|
}
|
|
4054
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cardClass, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4054
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cardClass, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: innerClass, children: [
|
|
4055
4055
|
!formOnly && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4056
4056
|
SchedulerContextPanel,
|
|
4057
4057
|
{
|
|
@@ -4103,11 +4103,11 @@ function HubSpotMeetingScheduler({
|
|
|
4103
4103
|
slots,
|
|
4104
4104
|
timezone,
|
|
4105
4105
|
monthOffset,
|
|
4106
|
-
onMonthOffsetChange:
|
|
4106
|
+
onMonthOffsetChange: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
4107
4107
|
selectedSlot: null,
|
|
4108
|
-
onSelectSlot:
|
|
4108
|
+
onSelectSlot: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
4109
4109
|
selectedDay: null,
|
|
4110
|
-
onSelectDay:
|
|
4110
|
+
onSelectDay: _chunk7JWFMAQBcjs.LOADING_NOOP
|
|
4111
4111
|
}
|
|
4112
4112
|
) })
|
|
4113
4113
|
) : step === "confirmed" && confirmation && timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: stepPanelClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Confirmation, { confirmation, timezone }) }) : step === "details" && (detailsFirst ? (
|
|
@@ -4117,12 +4117,12 @@ function HubSpotMeetingScheduler({
|
|
|
4117
4117
|
// "nothing published" message below at every moment, refetch or
|
|
4118
4118
|
// not — never a calendar skeleton in the form-only layout.
|
|
4119
4119
|
durations.length > 0
|
|
4120
|
-
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
4120
|
+
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
4121
4121
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4122
|
-
|
|
4122
|
+
_chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4123
4123
|
" \xB7",
|
|
4124
4124
|
" ",
|
|
4125
|
-
|
|
4125
|
+
_chunk6UKH22NQcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4126
4126
|
] }),
|
|
4127
4127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4128
4128
|
DetailsForm,
|
|
@@ -4146,11 +4146,11 @@ function HubSpotMeetingScheduler({
|
|
|
4146
4146
|
)
|
|
4147
4147
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
4148
4148
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4149
|
-
|
|
4149
|
+
_chunkFFEE2ON2cjs.Alert,
|
|
4150
4150
|
{
|
|
4151
4151
|
variant: "warning",
|
|
4152
4152
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4153
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4153
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEE2ON2cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4154
4154
|
}
|
|
4155
4155
|
),
|
|
4156
4156
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|