@flamingo-stack/openframe-frontend-core 0.0.810 → 0.0.812
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{case-study-card-MEWJNF4N.cjs → case-study-card-3XLKCGLV.cjs} +7 -7
- package/dist/{chunk-CLMUD56S.cjs → chunk-2IZHRVKD.cjs} +26 -26
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-TOWVMBAP.cjs → chunk-4ZTGCCNI.cjs} +17 -17
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-GAHXURKJ.cjs → chunk-5QLDHPPU.cjs} +2 -2
- package/dist/{chunk-PIKHEBG5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-5MTYKS2Q.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-ZXBRPQND.cjs → chunk-7HNZHENA.cjs} +17 -17
- package/dist/{chunk-4W77VLQV.cjs → chunk-7Q2PFKU3.cjs} +10 -10
- package/dist/{chunk-KVJKKVB3.cjs → chunk-7TBXHZLB.cjs} +9 -9
- package/dist/{chunk-VXAKQRV7.cjs → chunk-APOMNC7H.cjs} +5 -5
- package/dist/{chunk-OJZBZH56.cjs → chunk-CNTBGJA7.cjs} +3 -3
- package/dist/{chunk-TUZV2ZQY.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-FLW2VL5W.cjs → chunk-CUDJP7R7.cjs} +24 -24
- package/dist/{chunk-B6DIM5JG.cjs → chunk-D2EPUQ35.cjs} +6 -6
- package/dist/{chunk-MSAXZRXZ.cjs → chunk-D322VUSH.cjs} +622 -621
- package/dist/{chunk-TOTR2WMH.cjs → chunk-DA2TWDGJ.cjs} +8 -8
- package/dist/{chunk-JLKGLPDC.cjs → chunk-E64HJMY6.cjs} +20 -20
- package/dist/{chunk-X2JSCOOR.cjs → chunk-EPMAMFQE.cjs} +100 -100
- package/dist/{chunk-MAQFG62O.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-7PNRXJX2.cjs → chunk-FX35L4Y6.cjs} +3 -3
- package/dist/{chunk-5GJM7VRR.cjs → chunk-GI3MMBP3.cjs} +91 -26
- package/dist/{chunk-GG36TCKP.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-2C63MX75.cjs → chunk-JMRO7CK2.cjs} +23 -23
- package/dist/{chunk-F26COFTW.cjs → chunk-K7IX2NAG.cjs} +89 -89
- package/dist/{chunk-V4FXUIMH.cjs → chunk-LC65AC6M.cjs} +4 -4
- package/dist/{chunk-AQXKXZWB.cjs → chunk-MG3HJIGG.cjs} +4 -4
- package/dist/{chunk-ETI7OMPU.cjs → chunk-NEDFRRLM.cjs} +71 -71
- package/dist/{chunk-RKNCNL6K.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-3FBXQSSC.cjs → chunk-PQ76VC2P.cjs} +865 -671
- package/dist/{chunk-R2ABQG2T.cjs → chunk-RSLLS6C4.cjs} +53 -53
- package/dist/{chunk-PRCGRDHV.cjs → chunk-SC3I3YWM.cjs} +18 -18
- package/dist/{chunk-NG3RKTQU.cjs → chunk-SFUNXMY3.cjs} +8 -8
- package/dist/{chunk-J4QORJMC.cjs → chunk-TCMUVY3M.cjs} +113 -113
- package/dist/{chunk-ML3DG4SS.cjs → chunk-TS4PKCG3.cjs} +5 -5
- package/dist/{chunk-TGOJHOQR.cjs → chunk-U2MHQBL4.cjs} +3 -3
- package/dist/{chunk-EKDLVUEA.cjs → chunk-VEN6MGNX.cjs} +50 -50
- package/dist/{chunk-FCFYZIOY.cjs → chunk-VPYGK4AV.cjs} +22 -22
- package/dist/{chunk-I3RJLXEL.cjs → chunk-VT2ACO3Z.cjs} +159 -159
- package/dist/{chunk-FRS2VO22.cjs → chunk-VYLBW6ZV.cjs} +41 -41
- package/dist/{chunk-RPBOWCME.cjs → chunk-WFJDKP2Q.cjs} +17 -17
- package/dist/{chunk-CZWQCYKV.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-VHX4A4SA.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-SZHDXXMK.cjs → chunk-YSDB6HGQ.cjs} +3 -3
- package/dist/{chunk-TT64NRFU.cjs → chunk-ZFUNSXSH.cjs} +7 -7
- package/dist/{cloud-tenants-QTASS5KP.cjs → cloud-tenants-CW3I7AIM.cjs} +27 -27
- package/dist/components/case-studies/index.cjs +43 -43
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -1
- package/dist/components/chat/index.cjs +21 -21
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +28 -28
- package/dist/components/docs/index.cjs +31 -31
- package/dist/components/embeds/index.cjs +28 -28
- package/dist/components/faq/index.cjs +29 -29
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +27 -27
- package/dist/components/help-center-pages/index.cjs +133 -133
- package/dist/components/index.cjs +98 -98
- package/dist/components/meeting-scheduler/index.cjs +143 -97
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/product-demo/index.cjs +38 -38
- package/dist/components/related-content/index.cjs +16 -16
- package/dist/components/tickets/index.cjs +34 -34
- package/dist/components/ui/index.cjs +27 -27
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +6 -7
- package/dist/components/ui/markdown/engine.d.ts +7 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +12 -3
- package/dist/components/ui/markdown/external-media-notice.d.ts +33 -0
- package/dist/components/ui/markdown/external-media-notice.d.ts.map +1 -0
- package/dist/components/ui/markdown/external-media-notice.js +56 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +24 -2
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -1
- package/dist/components/ui/markdown/mermaid-diagram.js +66 -6
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +4 -4
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +2 -1
- package/dist/components/ui/markdown/sanitize.d.ts +28 -3
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -1
- package/dist/components/ui/markdown/sanitize.js +84 -12
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +3 -2
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/{devices-KPMQI57Y.cjs → devices-KKRAB4Q2.cjs} +28 -28
- package/dist/{embeddable-chat-LB7NDFVQ.cjs → embeddable-chat-5UO66U4F.cjs} +93 -93
- package/dist/hooks/index.cjs +13 -13
- package/dist/index.cjs +33 -33
- package/dist/{knowledge-JWGBY3ZJ.cjs → knowledge-Z2PTGBA3.cjs} +28 -28
- package/dist/{logs-QENTXKWY.cjs → logs-6T5VK2TY.cjs} +35 -35
- package/dist/{policies-2HXFZ2EL.cjs → policies-JPIC5YDE.cjs} +31 -31
- package/dist/{remote-session-LMUFV2RZ.cjs → remote-session-VBVUMIUP.cjs} +12 -12
- package/dist/{scripts-TMXULK6L.cjs → scripts-BSYJJFBQ.cjs} +34 -34
- package/dist/{software-update-H2LAEWDN.cjs → software-update-KVEYYORC.cjs} +31 -31
- package/dist/{tickets-board-QF5JNSH2.cjs → tickets-board-YRZ54JJS.cjs} +16 -16
- package/dist/utils/app-origins.d.ts +41 -0
- package/dist/utils/app-origins.d.ts.map +1 -0
- package/dist/utils/app-origins.js +51 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts +7 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts.map +1 -0
- package/dist/utils/embed-auth-adapter-registry.js +34 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +6 -19
- package/dist/utils/index.cjs +32 -12
- package/dist/{video-file-player-2FMFCGXE.cjs → video-file-player-4QMVTOBE.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +12 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/ui/markdown/base-components.tsx +6 -7
- package/src/components/ui/markdown/engine.tsx +29 -5
- package/src/components/ui/markdown/external-media-notice.tsx +84 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +107 -5
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +11 -5
- package/src/components/ui/markdown/sanitize.ts +162 -15
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +6 -2
- package/src/utils/app-origins.ts +95 -0
- package/src/utils/embed-auth-adapter-registry.ts +49 -0
- package/src/utils/embed-authed-fetch.ts +7 -35
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXZKYU57Acjs = require('../../chunk-XZKYU57A.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk743MM5B6cjs = require('../../chunk-743MM5B6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCOTJLBOScjs = require('../../chunk-COTJLBOS.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,9 +22,9 @@ var _chunkTUZV2ZQYcjs = require('../../chunk-TUZV2ZQY.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('../../chunk-
|
|
27
|
-
require('../../chunk-
|
|
25
|
+
var _chunkD322VUSHcjs = require('../../chunk-D322VUSH.cjs');
|
|
26
|
+
require('../../chunk-CUDJP7R7.cjs');
|
|
27
|
+
require('../../chunk-SFUNXMY3.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ require('../../chunk-NG3RKTQU.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkVYLBW6ZVcjs = require('../../chunk-VYLBW6ZV.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -40,8 +40,8 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
44
|
-
require('../../chunk-
|
|
43
|
+
var _chunkVEN6MGNXcjs = require('../../chunk-VEN6MGNX.cjs');
|
|
44
|
+
require('../../chunk-APOMNC7H.cjs');
|
|
45
45
|
require('../../chunk-24I6RFVU.cjs');
|
|
46
46
|
require('../../chunk-7Z536SPR.cjs');
|
|
47
47
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
@@ -51,13 +51,18 @@ var _chunkYR74H7Z3cjs = require('../../chunk-YR74H7Z3.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkTCMUVY3Mcjs = require('../../chunk-TCMUVY3M.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
58
|
-
require('../../chunk-
|
|
57
|
+
var _chunkPQ76VC2Pcjs = require('../../chunk-PQ76VC2P.cjs');
|
|
58
|
+
require('../../chunk-E64HJMY6.cjs');
|
|
59
59
|
require('../../chunk-ZD6SZLO2.cjs');
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
var _chunk7TBXHZLBcjs = require('../../chunk-7TBXHZLB.cjs');
|
|
61
66
|
require('../../chunk-JTIGKLKJ.cjs');
|
|
62
67
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
63
68
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1849,24 +1854,24 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1849
1854
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1850
1855
|
|
|
1851
1856
|
|
|
1852
|
-
var
|
|
1853
|
-
require('../../chunk-
|
|
1854
|
-
require('../../chunk-
|
|
1857
|
+
var _chunkZFUNSXSHcjs = require('../../chunk-ZFUNSXSH.cjs');
|
|
1858
|
+
require('../../chunk-CNTBGJA7.cjs');
|
|
1859
|
+
require('../../chunk-4IU462LR.cjs');
|
|
1855
1860
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1856
1861
|
require('../../chunk-7DNL734S.cjs');
|
|
1857
1862
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1858
1863
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1859
1864
|
require('../../chunk-EWPR7662.cjs');
|
|
1860
|
-
require('../../chunk-
|
|
1861
|
-
require('../../chunk-
|
|
1865
|
+
require('../../chunk-4ZTGCCNI.cjs');
|
|
1866
|
+
require('../../chunk-VT2ACO3Z.cjs');
|
|
1862
1867
|
|
|
1863
1868
|
|
|
1864
|
-
var
|
|
1865
|
-
require('../../chunk-
|
|
1869
|
+
var _chunkSC3I3YWMcjs = require('../../chunk-SC3I3YWM.cjs');
|
|
1870
|
+
require('../../chunk-7Q2PFKU3.cjs');
|
|
1866
1871
|
require('../../chunk-P4B6PVSG.cjs');
|
|
1867
1872
|
|
|
1868
1873
|
|
|
1869
|
-
var
|
|
1874
|
+
var _chunk5QLDHPPUcjs = require('../../chunk-5QLDHPPU.cjs');
|
|
1870
1875
|
|
|
1871
1876
|
|
|
1872
1877
|
|
|
@@ -1874,7 +1879,7 @@ var _chunkGAHXURKJcjs = require('../../chunk-GAHXURKJ.cjs');
|
|
|
1874
1879
|
|
|
1875
1880
|
|
|
1876
1881
|
|
|
1877
|
-
var
|
|
1882
|
+
var _chunkU2MHQBL4cjs = require('../../chunk-U2MHQBL4.cjs');
|
|
1878
1883
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1879
1884
|
require('../../chunk-32ASZMTV.cjs');
|
|
1880
1885
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -1885,16 +1890,16 @@ require('../../chunk-RUHKTWGB.cjs');
|
|
|
1885
1890
|
|
|
1886
1891
|
|
|
1887
1892
|
var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
1888
|
-
require('../../chunk-
|
|
1893
|
+
require('../../chunk-4SZKJPQJ.cjs');
|
|
1889
1894
|
|
|
1890
1895
|
|
|
1891
|
-
var
|
|
1896
|
+
var _chunkFX35L4Y6cjs = require('../../chunk-FX35L4Y6.cjs');
|
|
1892
1897
|
require('../../chunk-NTPX5GXI.cjs');
|
|
1893
|
-
require('../../chunk-
|
|
1894
|
-
require('../../chunk-
|
|
1895
|
-
require('../../chunk-
|
|
1896
|
-
require('../../chunk-
|
|
1897
|
-
require('../../chunk-
|
|
1898
|
+
require('../../chunk-MG3HJIGG.cjs');
|
|
1899
|
+
require('../../chunk-LC65AC6M.cjs');
|
|
1900
|
+
require('../../chunk-YSDB6HGQ.cjs');
|
|
1901
|
+
require('../../chunk-5DBW6ERF.cjs');
|
|
1902
|
+
require('../../chunk-GI3MMBP3.cjs');
|
|
1898
1903
|
require('../../chunk-KUXHXLJQ.cjs');
|
|
1899
1904
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
1900
1905
|
|
|
@@ -1925,6 +1930,7 @@ var _chunkAHBTZ7DNcjs = require('../../chunk-AHBTZ7DN.cjs');
|
|
|
1925
1930
|
|
|
1926
1931
|
|
|
1927
1932
|
|
|
1933
|
+
|
|
1928
1934
|
var _chunk7JWFMAQBcjs = require('../../chunk-7JWFMAQB.cjs');
|
|
1929
1935
|
|
|
1930
1936
|
|
|
@@ -2221,7 +2227,7 @@ function useMeetingBooking(options) {
|
|
|
2221
2227
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2222
2228
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2223
2229
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2224
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2230
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET, offset)));
|
|
2225
2231
|
}, []);
|
|
2226
2232
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2227
2233
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2235,7 +2241,7 @@ function useMeetingBooking(options) {
|
|
|
2235
2241
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
2236
2242
|
queryFn: async ({ signal }) => {
|
|
2237
2243
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
2238
|
-
const res = await
|
|
2244
|
+
const res = await _chunkFX35L4Y6cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
2239
2245
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
2240
2246
|
return await res.json();
|
|
2241
2247
|
},
|
|
@@ -2253,7 +2259,7 @@ function useMeetingBooking(options) {
|
|
|
2253
2259
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
2254
2260
|
mutationFn: async (payload) => {
|
|
2255
2261
|
try {
|
|
2256
|
-
const res = await
|
|
2262
|
+
const res = await _chunkFX35L4Y6cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
2257
2263
|
method: "POST",
|
|
2258
2264
|
headers: { "Content-Type": "application/json" },
|
|
2259
2265
|
body: JSON.stringify(payload)
|
|
@@ -2323,7 +2329,7 @@ function BookingContextSummary({
|
|
|
2323
2329
|
const label = _nullishCoalesce(_optionalChain([slot, 'optionalAccess', _14 => _14.label]), () => ( _optionalChain([context, 'optionalAccess', _15 => _15.label])));
|
|
2324
2330
|
if (!label || !slot && items.length === 0) return null;
|
|
2325
2331
|
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,
|
|
2332
|
+
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, _chunkU2MHQBL4cjs.Tag, { label: item, ...LINE_TAG_PROPS }) }, item)) }) });
|
|
2327
2333
|
}
|
|
2328
2334
|
const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
|
|
2329
2335
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -2335,7 +2341,7 @@ function BookingContextSummary({
|
|
|
2335
2341
|
className: SLOT_CELL_CLASS,
|
|
2336
2342
|
"aria-hidden": empty || void 0,
|
|
2337
2343
|
"data-loading-item": "",
|
|
2338
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2344
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: item, ...LINE_TAG_PROPS }) : (
|
|
2339
2345
|
// With no line at all the empty state covers every slot; with some, the rest stay as slots.
|
|
2340
2346
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EMPTY_CELL_CLASS, items.length === 0 && "invisible") })
|
|
2341
2347
|
)
|
|
@@ -2402,7 +2408,7 @@ var FIELD_CONTROLS = {
|
|
|
2402
2408
|
}
|
|
2403
2409
|
),
|
|
2404
2410
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2405
|
-
|
|
2411
|
+
_chunkD322VUSHcjs.Textarea,
|
|
2406
2412
|
{
|
|
2407
2413
|
id,
|
|
2408
2414
|
required: field.required,
|
|
@@ -2458,18 +2464,18 @@ var FIELD_CONTROLS = {
|
|
|
2458
2464
|
{
|
|
2459
2465
|
control,
|
|
2460
2466
|
name: registerName,
|
|
2461
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2467
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2462
2468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2463
|
-
|
|
2469
|
+
_chunkVYLBW6ZVcjs.SelectTrigger,
|
|
2464
2470
|
{
|
|
2465
2471
|
id,
|
|
2466
2472
|
"aria-required": field.required || void 0,
|
|
2467
2473
|
"aria-invalid": Boolean(error),
|
|
2468
2474
|
invalid: Boolean(error),
|
|
2469
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2475
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2470
2476
|
}
|
|
2471
2477
|
),
|
|
2472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2473
2479
|
] })
|
|
2474
2480
|
}
|
|
2475
2481
|
),
|
|
@@ -2479,14 +2485,14 @@ var FIELD_CONTROLS = {
|
|
|
2479
2485
|
control,
|
|
2480
2486
|
name: registerName,
|
|
2481
2487
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2482
|
-
|
|
2488
|
+
_chunkD322VUSHcjs.RadioGroup,
|
|
2483
2489
|
{
|
|
2484
2490
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2485
2491
|
onValueChange: rhf.onChange,
|
|
2486
2492
|
"aria-required": field.required || void 0,
|
|
2487
2493
|
"aria-invalid": Boolean(error),
|
|
2488
2494
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2490
2496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2491
2497
|
] }, opt))
|
|
2492
2498
|
}
|
|
@@ -2560,7 +2566,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2560
2566
|
control,
|
|
2561
2567
|
name: registerName,
|
|
2562
2568
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2563
|
-
|
|
2569
|
+
_chunkD322VUSHcjs.ToggleGroup,
|
|
2564
2570
|
{
|
|
2565
2571
|
id,
|
|
2566
2572
|
type: "single",
|
|
@@ -2575,7 +2581,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2575
2581
|
"aria-required": field.required || void 0,
|
|
2576
2582
|
"aria-invalid": Boolean(error),
|
|
2577
2583
|
className: CHIP_ROW_CLASS,
|
|
2578
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2584
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.ToggleGroupItem, { value: opt, className: _chunk7JWFMAQBcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2579
2585
|
}
|
|
2580
2586
|
)
|
|
2581
2587
|
}
|
|
@@ -2711,7 +2717,7 @@ function BookingFormBody({
|
|
|
2711
2717
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2712
2718
|
[supportedFields]
|
|
2713
2719
|
);
|
|
2714
|
-
const formRescue =
|
|
2720
|
+
const formRescue = _chunkVEN6MGNXcjs.useRescuedForm.call(void 0,
|
|
2715
2721
|
{ watch, getValues, setValue },
|
|
2716
2722
|
{
|
|
2717
2723
|
rescue,
|
|
@@ -2720,7 +2726,7 @@ function BookingFormBody({
|
|
|
2720
2726
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2721
2727
|
}
|
|
2722
2728
|
);
|
|
2723
|
-
const { toast } =
|
|
2729
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
2724
2730
|
const onInvalid = () => {
|
|
2725
2731
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2726
2732
|
toast({
|
|
@@ -2810,8 +2816,8 @@ function BookingFormBody({
|
|
|
2810
2816
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2811
2817
|
}
|
|
2812
2818
|
);
|
|
2813
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2819
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkTCMUVY3Mcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2815
2821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { context, slot: contextSlot }),
|
|
2816
2822
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2817
2823
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
@@ -2825,7 +2831,7 @@ function BookingFormBody({
|
|
|
2825
2831
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2826
2832
|
] }),
|
|
2827
2833
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2828
|
-
|
|
2834
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2829
2835
|
{
|
|
2830
2836
|
id: "ms-host-consent",
|
|
2831
2837
|
checked: consented,
|
|
@@ -2860,7 +2866,7 @@ function BookingFormBody({
|
|
|
2860
2866
|
// same block the waitlist form uses): box + label in one
|
|
2861
2867
|
// bordered row.
|
|
2862
2868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2863
|
-
|
|
2869
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2864
2870
|
{
|
|
2865
2871
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2866
2872
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2913,10 +2919,10 @@ function BookingFormPending({
|
|
|
2913
2919
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2914
2920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label: "", children: [
|
|
2915
2921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2916
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2922
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.Textarea, { tabIndex: -1 })
|
|
2917
2923
|
] }),
|
|
2918
2924
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2919
|
-
|
|
2925
|
+
_chunkD322VUSHcjs.CheckboxBlock,
|
|
2920
2926
|
{
|
|
2921
2927
|
id: consentId,
|
|
2922
2928
|
checked: false,
|
|
@@ -2967,7 +2973,7 @@ function FieldSkeleton({
|
|
|
2967
2973
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2968
2974
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2969
2975
|
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2970
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "default", className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2976
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "default", className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkD322VUSHcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.Input, { tabIndex: -1 })
|
|
2971
2977
|
] })
|
|
2972
2978
|
);
|
|
2973
2979
|
}
|
|
@@ -2975,7 +2981,7 @@ function FieldSkeleton({
|
|
|
2975
2981
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2976
2982
|
|
|
2977
2983
|
function Confirmation({ confirmation, timezone }) {
|
|
2978
|
-
const when =
|
|
2984
|
+
const when = _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2979
2985
|
viewerLocale: true
|
|
2980
2986
|
});
|
|
2981
2987
|
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 +2991,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2985
2991
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2986
2992
|
when,
|
|
2987
2993
|
" \xB7 ",
|
|
2988
|
-
|
|
2994
|
+
_chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2989
2995
|
] }),
|
|
2990
2996
|
/* @__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
2997
|
] });
|
|
@@ -3003,7 +3009,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3003
3009
|
if (hosts.length === 0) return null;
|
|
3004
3010
|
if (hosts.length > MAX_HOST_ROWS) {
|
|
3005
3011
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEAM_CLASS, children: [
|
|
3006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3012
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLDHPPUcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3007
3013
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3008
3014
|
hosts.length,
|
|
3009
3015
|
" hosts on this calendar"
|
|
@@ -3012,7 +3018,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3012
3018
|
}
|
|
3013
3019
|
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
3020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3015
|
-
|
|
3021
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
3016
3022
|
{
|
|
3017
3023
|
variant: "round",
|
|
3018
3024
|
size: "sm",
|
|
@@ -3029,7 +3035,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3029
3035
|
}
|
|
3030
3036
|
function HostIdentitySkeleton() {
|
|
3031
3037
|
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,
|
|
3038
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
3033
3039
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
3034
3040
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3035
3041
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
@@ -3060,7 +3066,7 @@ function ContextPanelSkeleton({
|
|
|
3060
3066
|
timezone = "shown"
|
|
3061
3067
|
}) {
|
|
3062
3068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3063
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3064
3070
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3065
3071
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3066
3072
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3076,7 +3082,7 @@ function ContextPanelSkeleton({
|
|
|
3076
3082
|
] }),
|
|
3077
3083
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3078
3084
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3080
3086
|
] })
|
|
3081
3087
|
] })
|
|
3082
3088
|
] });
|
|
@@ -3114,7 +3120,7 @@ function SchedulerContextPanel({
|
|
|
3114
3120
|
);
|
|
3115
3121
|
}
|
|
3116
3122
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3117
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3123
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3118
3124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3119
3125
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3120
3126
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3123,7 +3129,7 @@ function SchedulerContextPanel({
|
|
|
3123
3129
|
// Post-selection, or a link that offers one length: a static line,
|
|
3124
3130
|
// which is what sits beside the host on the header-strip layouts.
|
|
3125
3131
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3126
|
-
|
|
3132
|
+
_chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3127
3133
|
" call"
|
|
3128
3134
|
] })
|
|
3129
3135
|
) : null
|
|
@@ -3140,7 +3146,7 @@ function SchedulerContextPanel({
|
|
|
3140
3146
|
size: "small-legacy",
|
|
3141
3147
|
disabled,
|
|
3142
3148
|
onClick: () => onSelectDuration(ms),
|
|
3143
|
-
children:
|
|
3149
|
+
children: _chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3144
3150
|
},
|
|
3145
3151
|
ms
|
|
3146
3152
|
)) })
|
|
@@ -3155,7 +3161,7 @@ function SchedulerContextPanel({
|
|
|
3155
3161
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3156
3162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3157
3163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3158
|
-
|
|
3164
|
+
_chunkD322VUSHcjs.TimezoneSelect,
|
|
3159
3165
|
{
|
|
3160
3166
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3161
3167
|
loading: !timezone,
|
|
@@ -3201,18 +3207,18 @@ function SchedulerModalHeader({
|
|
|
3201
3207
|
size: "small-legacy",
|
|
3202
3208
|
disabled,
|
|
3203
3209
|
onClick: () => onSelectDuration(ms),
|
|
3204
|
-
children:
|
|
3210
|
+
children: _chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3205
3211
|
},
|
|
3206
3212
|
ms
|
|
3207
3213
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3208
|
-
|
|
3214
|
+
_chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3209
3215
|
" call"
|
|
3210
3216
|
] })
|
|
3211
3217
|
] }),
|
|
3212
3218
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3213
3219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3214
3220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3215
|
-
|
|
3221
|
+
_chunkD322VUSHcjs.TimezoneSelect,
|
|
3216
3222
|
{
|
|
3217
3223
|
value: timezone,
|
|
3218
3224
|
loading: !timezone,
|
|
@@ -3233,7 +3239,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3233
3239
|
] }),
|
|
3234
3240
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3235
3241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3242
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk7JWFMAQBcjs.LOADING_NOOP })
|
|
3237
3243
|
] })
|
|
3238
3244
|
] });
|
|
3239
3245
|
}
|
|
@@ -3256,7 +3262,7 @@ function dateFromDayKey(key) {
|
|
|
3256
3262
|
return new Date(y, m - 1, d, 12);
|
|
3257
3263
|
}
|
|
3258
3264
|
function timeLabelInZone(ms, timeZone) {
|
|
3259
|
-
return
|
|
3265
|
+
return _chunkU2MHQBL4cjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3260
3266
|
}
|
|
3261
3267
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3262
3268
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3309,24 +3315,24 @@ var MODAL_CHIP_GRID_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
3309
3315
|
function monthLabelFor(offset) {
|
|
3310
3316
|
const now = /* @__PURE__ */ new Date();
|
|
3311
3317
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3312
|
-
return
|
|
3318
|
+
return _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, month, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "monthYear");
|
|
3313
3319
|
}
|
|
3314
3320
|
var DISABLE_EVERY_DAY = () => true;
|
|
3315
3321
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3316
3322
|
const now = /* @__PURE__ */ new Date();
|
|
3317
3323
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3318
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3324
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3319
3325
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3320
3326
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _54 => _54.has, 'call', _55 => _55(calendarDayKey(day))]), [slotsByDay]);
|
|
3321
3327
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3322
|
-
|
|
3328
|
+
_chunkD322VUSHcjs.DatePickerCalendar,
|
|
3323
3329
|
{
|
|
3324
3330
|
mode: "single",
|
|
3325
3331
|
bare: true,
|
|
3326
3332
|
month: visibleMonth,
|
|
3327
3333
|
onMonthChange: (month) => {
|
|
3328
3334
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3329
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3335
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET, offset)));
|
|
3330
3336
|
},
|
|
3331
3337
|
fromDate: startMonth,
|
|
3332
3338
|
toDate: endMonth,
|
|
@@ -3440,7 +3446,7 @@ function SlotPicker({
|
|
|
3440
3446
|
{
|
|
3441
3447
|
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
3448
|
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:
|
|
3449
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3444
3450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3445
3451
|
const isSelected = selectedSlot === ms;
|
|
3446
3452
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3470,7 +3476,7 @@ function SlotPicker({
|
|
|
3470
3476
|
monthLabelFor(monthOffset),
|
|
3471
3477
|
"."
|
|
3472
3478
|
] }),
|
|
3473
|
-
monthOffset <
|
|
3479
|
+
monthOffset < _chunkTCMUVY3Mcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3474
3480
|
_chunkAHBTZ7DNcjs.Button,
|
|
3475
3481
|
{
|
|
3476
3482
|
variant: "outline",
|
|
@@ -3494,10 +3500,10 @@ function SlotPicker({
|
|
|
3494
3500
|
|
|
3495
3501
|
|
|
3496
3502
|
function useNextAvailableLabel(ms) {
|
|
3497
|
-
const hydrated =
|
|
3503
|
+
const hydrated = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
3498
3504
|
return _react.useMemo.call(void 0, () => {
|
|
3499
3505
|
if (!hydrated || ms == null) return null;
|
|
3500
|
-
return
|
|
3506
|
+
return _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, ms, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3501
3507
|
}, [hydrated, ms]);
|
|
3502
3508
|
}
|
|
3503
3509
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3518,7 +3524,7 @@ function DirectoryRow({
|
|
|
3518
3524
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3519
3525
|
const subtitle = [
|
|
3520
3526
|
link.description,
|
|
3521
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3527
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3522
3528
|
link.kind === "team" ? "Team" : null
|
|
3523
3529
|
].filter(Boolean).join(" \u2022 ");
|
|
3524
3530
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3533,8 +3539,8 @@ function DirectoryRow({
|
|
|
3533
3539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3534
3540
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3535
3541
|
] }),
|
|
3536
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3542
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3543
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLDHPPUcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3538
3544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3539
3545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3540
3546
|
/* @__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, () => ( " ")) })
|
|
@@ -3553,7 +3559,7 @@ function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
|
3553
3559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3554
3560
|
] }),
|
|
3555
3561
|
/* @__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,
|
|
3562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLDHPPUcjs.AvatarStack, { people: NO_HOSTS, loading: true, max: TYPICAL_HOSTS, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3557
3563
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3558
3564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3559
3565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
@@ -3567,7 +3573,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3567
3573
|
}) {
|
|
3568
3574
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3569
3575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOTJLBOScjs.PaginationSkeleton, {}) })
|
|
3571
3577
|
] });
|
|
3572
3578
|
}
|
|
3573
3579
|
function MeetingSchedulerDirectory({
|
|
@@ -3593,7 +3599,7 @@ function MeetingSchedulerDirectory({
|
|
|
3593
3599
|
setError(null);
|
|
3594
3600
|
try {
|
|
3595
3601
|
const qs = includeAll ? "?scope=all" : "";
|
|
3596
|
-
const res = await
|
|
3602
|
+
const res = await _chunkFX35L4Y6cjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
3597
3603
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
3598
3604
|
const payload = await res.json();
|
|
3599
3605
|
if (active) setData(payload);
|
|
@@ -3622,7 +3628,7 @@ function MeetingSchedulerDirectory({
|
|
|
3622
3628
|
}
|
|
3623
3629
|
if (error) {
|
|
3624
3630
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3625
|
-
|
|
3631
|
+
_chunk743MM5B6cjs.EmptyState,
|
|
3626
3632
|
{
|
|
3627
3633
|
type: "generic",
|
|
3628
3634
|
title: "We couldn't load available call times",
|
|
@@ -3633,7 +3639,7 @@ function MeetingSchedulerDirectory({
|
|
|
3633
3639
|
}
|
|
3634
3640
|
if (rows.length === 0) {
|
|
3635
3641
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3636
|
-
|
|
3642
|
+
_chunk743MM5B6cjs.EmptyState,
|
|
3637
3643
|
{
|
|
3638
3644
|
type: "generic",
|
|
3639
3645
|
title: "No call times are published right now",
|
|
@@ -3645,7 +3651,7 @@ function MeetingSchedulerDirectory({
|
|
|
3645
3651
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3646
3652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
3647
3653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
-
|
|
3654
|
+
_chunkXZKYU57Acjs.PersistentPaginationWrapper,
|
|
3649
3655
|
{
|
|
3650
3656
|
isLoading,
|
|
3651
3657
|
currentPage: page,
|
|
@@ -3784,7 +3790,7 @@ function HubSpotMeetingScheduler({
|
|
|
3784
3790
|
const modal = layout === "modal" && !detailsFirst;
|
|
3785
3791
|
const modalFormId = _react.useId.call(void 0, );
|
|
3786
3792
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3787
|
-
const hydrated =
|
|
3793
|
+
const hydrated = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
3788
3794
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3789
3795
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3790
3796
|
if (!hydrated) return null;
|
|
@@ -3818,8 +3824,8 @@ function HubSpotMeetingScheduler({
|
|
|
3818
3824
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3819
3825
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3820
3826
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3821
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3822
|
-
const { toast } =
|
|
3827
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkVEN6MGNXcjs.useHumanitySignals.call(void 0, );
|
|
3828
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
3823
3829
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3824
3830
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3825
3831
|
if (machineFor !== meetingId) {
|
|
@@ -3893,7 +3899,7 @@ function HubSpotMeetingScheduler({
|
|
|
3893
3899
|
return;
|
|
3894
3900
|
}
|
|
3895
3901
|
if (result.ok && result.confirmation) {
|
|
3896
|
-
|
|
3902
|
+
_chunkVEN6MGNXcjs.completeFormRescue.call(void 0, rescue, payload[_chunkZFUNSXSHcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3897
3903
|
setConfirmation(result.confirmation);
|
|
3898
3904
|
setStep("confirmed");
|
|
3899
3905
|
_optionalChain([onBooked, 'optionalCall', _64 => _64(result.confirmation)]);
|
|
@@ -3938,11 +3944,11 @@ function HubSpotMeetingScheduler({
|
|
|
3938
3944
|
setSelectedDay(null);
|
|
3939
3945
|
setSelectedSlot(null);
|
|
3940
3946
|
};
|
|
3941
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3947
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3942
3948
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3943
3949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3944
3950
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3945
|
-
|
|
3951
|
+
_chunkVYLBW6ZVcjs.BackButton,
|
|
3946
3952
|
{
|
|
3947
3953
|
onClick: modalBack,
|
|
3948
3954
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
@@ -3988,7 +3994,7 @@ function HubSpotMeetingScheduler({
|
|
|
3988
3994
|
}
|
|
3989
3995
|
)
|
|
3990
3996
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3991
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3997
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3992
3998
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3993
3999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3994
4000
|
escapeHatch
|
|
@@ -4119,10 +4125,10 @@ function HubSpotMeetingScheduler({
|
|
|
4119
4125
|
durations.length > 0
|
|
4120
4126
|
) : 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
4127
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4122
|
-
|
|
4128
|
+
_chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4123
4129
|
" \xB7",
|
|
4124
4130
|
" ",
|
|
4125
|
-
|
|
4131
|
+
_chunkU2MHQBL4cjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4126
4132
|
] }),
|
|
4127
4133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4128
4134
|
DetailsForm,
|
|
@@ -4146,11 +4152,11 @@ function HubSpotMeetingScheduler({
|
|
|
4146
4152
|
)
|
|
4147
4153
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
4148
4154
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4149
|
-
|
|
4155
|
+
_chunkD322VUSHcjs.Alert,
|
|
4150
4156
|
{
|
|
4151
4157
|
variant: "warning",
|
|
4152
4158
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4153
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4159
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD322VUSHcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4154
4160
|
}
|
|
4155
4161
|
),
|
|
4156
4162
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|
|
@@ -4223,6 +4229,46 @@ function HubSpotMeetingScheduler({
|
|
|
4223
4229
|
] }) })
|
|
4224
4230
|
] }) });
|
|
4225
4231
|
}
|
|
4232
|
+
function MeetingSchedulerModal({
|
|
4233
|
+
isOpen,
|
|
4234
|
+
onClose,
|
|
4235
|
+
title,
|
|
4236
|
+
link,
|
|
4237
|
+
loading = false,
|
|
4238
|
+
apiBaseUrl = "",
|
|
4239
|
+
onBooked,
|
|
4240
|
+
emptyMessage = "No calls can be booked right now.",
|
|
4241
|
+
className
|
|
4242
|
+
}) {
|
|
4243
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
4244
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: _chunk7JWFMAQBcjs.cn.call(void 0, "md:max-w-[600px]", className), children: [
|
|
4245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: title }) }),
|
|
4246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalContent, { className: "flex flex-col", children: link || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingWhen, { loading: !link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4247
|
+
HubSpotMeetingScheduler,
|
|
4248
|
+
{
|
|
4249
|
+
layout: "modal",
|
|
4250
|
+
meetingId: _nullishCoalesce(_optionalChain([link, 'optionalAccess', _67 => _67.id]), () => ( "")),
|
|
4251
|
+
apiBaseUrl,
|
|
4252
|
+
hosts: _optionalChain([link, 'optionalAccess', _68 => _68.hosts]),
|
|
4253
|
+
fallbackUrl: _optionalChain([link, 'optionalAccess', _69 => _69.link]),
|
|
4254
|
+
onBack: onClose,
|
|
4255
|
+
onBooked: (booking) => {
|
|
4256
|
+
const when = _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, booking.startTimeMs, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "weekdayDateTimeZoned", {
|
|
4257
|
+
viewerLocale: true
|
|
4258
|
+
});
|
|
4259
|
+
toast({
|
|
4260
|
+
title: "Call booked",
|
|
4261
|
+
description: `${booking.title} - ${when}. Check your email for the invite.`,
|
|
4262
|
+
variant: "success"
|
|
4263
|
+
});
|
|
4264
|
+
_optionalChain([onBooked, 'optionalCall', _70 => _70(booking)]);
|
|
4265
|
+
onClose();
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: emptyMessage }) })
|
|
4269
|
+
] });
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4226
4272
|
|
|
4227
4273
|
|
|
4228
4274
|
|
|
@@ -4235,4 +4281,4 @@ function HubSpotMeetingScheduler({
|
|
|
4235
4281
|
|
|
4236
4282
|
|
|
4237
4283
|
|
|
4238
|
-
exports.BookingContextSummary = BookingContextSummary; exports.BookingForm = BookingForm; exports.DEFAULT_SCHEDULER_FLOW = DEFAULT_SCHEDULER_FLOW; exports.HubSpotMeetingScheduler = HubSpotMeetingScheduler; exports.MEETING_DIRECTORY_PAGE_SIZE = MEETING_DIRECTORY_PAGE_SIZE; exports.MEETING_SCHEDULER_DETAILS_FIRST_H = MEETING_SCHEDULER_DETAILS_FIRST_H; exports.MEETING_SCHEDULER_H = MEETING_SCHEDULER_H; exports.MeetingSchedulerDirectory = MeetingSchedulerDirectory; exports.SCHEDULER_FLOW_PRESETS = SCHEDULER_FLOW_PRESETS; exports.SchedulerDegradedCard = SchedulerDegradedCard; exports.formFieldOptionLabel = formFieldOptionLabel;
|
|
4284
|
+
exports.BookingContextSummary = BookingContextSummary; exports.BookingForm = BookingForm; exports.DEFAULT_SCHEDULER_FLOW = DEFAULT_SCHEDULER_FLOW; exports.HubSpotMeetingScheduler = HubSpotMeetingScheduler; exports.MEETING_DIRECTORY_PAGE_SIZE = MEETING_DIRECTORY_PAGE_SIZE; exports.MEETING_SCHEDULER_DETAILS_FIRST_H = MEETING_SCHEDULER_DETAILS_FIRST_H; exports.MEETING_SCHEDULER_H = MEETING_SCHEDULER_H; exports.MeetingSchedulerDirectory = MeetingSchedulerDirectory; exports.MeetingSchedulerModal = MeetingSchedulerModal; exports.SCHEDULER_FLOW_PRESETS = SCHEDULER_FLOW_PRESETS; exports.SchedulerDegradedCard = SchedulerDegradedCard; exports.formFieldOptionLabel = formFieldOptionLabel;
|