@flamingo-stack/openframe-frontend-core 0.0.720 → 0.0.722
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/{chunk-3HZ6XSZC.js → chunk-2TXGR7IK.js} +136 -59
- package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
- package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
- package/dist/{chunk-4SIZCHVZ.cjs → chunk-4LY6R4TN.cjs} +126 -49
- package/dist/{chunk-2NASBO7O.js → chunk-5D2K7TFT.js} +3 -3
- package/dist/{chunk-HFEYEPOG.cjs → chunk-5K6YKRP5.cjs} +29 -29
- package/dist/{chunk-7HYEQKN6.js → chunk-65C4WHG4.js} +6 -6
- package/dist/{chunk-DOPOHO6H.cjs → chunk-6HRQLM6T.cjs} +20 -20
- package/dist/{chunk-B2N4YX66.js → chunk-6YBUQAOH.js} +1 -1
- package/dist/{chunk-GANIUMRU.js → chunk-7UZ2JZJY.js} +3 -3
- package/dist/{chunk-4HJRHEXD.cjs → chunk-ABSWD4PQ.cjs} +27 -27
- package/dist/{chunk-VYVPII4W.js → chunk-AWWLEYAU.js} +6 -6
- package/dist/{chunk-V6B2FBZK.js → chunk-BCU6UUNQ.js} +8 -8
- package/dist/{chunk-LO3KCLEF.js → chunk-BUDZWXRG.js} +4 -4
- package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
- package/dist/{chunk-KSGMZHVV.cjs → chunk-DFM572VH.cjs} +2 -2
- package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
- package/dist/{chunk-DYDDAA6O.cjs → chunk-DWSBTGKT.cjs} +816 -798
- package/dist/{chunk-PSMJYZMV.js → chunk-DX3W7DPC.js} +2 -2
- package/dist/{chunk-PXAKSPLZ.js → chunk-E7NIZXDT.js} +20 -8
- package/dist/{chunk-6W46LVK4.js → chunk-ETQVXIYW.js} +6 -6
- package/dist/{chunk-742BGXNX.js → chunk-EWED6ISQ.js} +1 -1
- package/dist/{chunk-Q5327DXK.js → chunk-F33RMJOL.js} +11 -11
- package/dist/{chunk-RZQGIWK3.cjs → chunk-FDWYBJYD.cjs} +8 -8
- package/dist/{chunk-QF464PPL.cjs → chunk-GAFK3WNT.cjs} +62 -62
- package/dist/{chunk-6BLN5WDS.cjs → chunk-GYSTZD6X.cjs} +40 -40
- package/dist/{chunk-TORERAXD.js → chunk-HA2ASGJM.js} +6 -6
- package/dist/{chunk-KT3U3ZRP.cjs → chunk-HP4UUBJC.cjs} +16 -16
- package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
- package/dist/{chunk-AZRI4XBP.js → chunk-I3UUMRO7.js} +1 -1
- package/dist/{chunk-VYZCKY5K.js → chunk-IF72N4PE.js} +7 -7
- package/dist/{chunk-RFUOIQSG.cjs → chunk-IITZ6JSC.cjs} +37 -37
- package/dist/{chunk-7LPR4RZ3.cjs → chunk-JQ55FFIK.cjs} +31 -31
- package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
- package/dist/{chunk-URW23QUM.js → chunk-K76ACBR3.js} +2 -2
- package/dist/{chunk-7IOU6BJE.js → chunk-KBPGSPXQ.js} +2387 -2369
- package/dist/{chunk-ILNN6QRW.js → chunk-KS3YLYVL.js} +4 -4
- package/dist/{chunk-2C72EWQR.cjs → chunk-KWBH63GV.cjs} +26 -26
- package/dist/{chunk-IYVFSLWJ.js → chunk-KZQO5EJQ.js} +4 -0
- package/dist/{chunk-IMTY3GRR.cjs → chunk-LV6UJD2K.cjs} +2 -2
- package/dist/{chunk-UWJMDFDO.cjs → chunk-MJ4SXOG2.cjs} +28 -28
- package/dist/{chunk-VF2CJXZ2.cjs → chunk-NFABAOMD.cjs} +77 -79
- package/dist/{chunk-B5LNX4GZ.js → chunk-NMGWNUKB.js} +3 -3
- package/dist/{chunk-RDP5UZXQ.cjs → chunk-P7Y626YJ.cjs} +370 -358
- package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
- package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
- package/dist/{chunk-ISCZ6UNF.cjs → chunk-RVQV6J5K.cjs} +75 -75
- package/dist/{chunk-VBHGJFA3.js → chunk-SZ3CBFSH.js} +13 -13
- package/dist/{chunk-O3MKJU6A.js → chunk-SZF7ENIW.js} +4 -4
- package/dist/{chunk-F5BPGWGT.cjs → chunk-TKFTWM3V.cjs} +5 -1
- package/dist/{chunk-YK3X74SF.js → chunk-UYMTAFHG.js} +6 -8
- package/dist/{chunk-DHNJSQGX.cjs → chunk-VC7COEWF.cjs} +105 -105
- package/dist/{chunk-XW3Q623Q.js → chunk-VSYQJCNR.js} +2 -2
- package/dist/{chunk-IL3ZWNM2.cjs → chunk-VU7RU3LL.cjs} +7 -7
- package/dist/{chunk-XSM46FHD.cjs → chunk-VV5INIQB.cjs} +3 -3
- package/dist/{chunk-HTS46FFY.cjs → chunk-VYHCN5NU.cjs} +16 -16
- package/dist/{chunk-ZPHOQDAE.js → chunk-WY4SLTMZ.js} +3 -3
- package/dist/{chunk-5XDCCQ4A.cjs → chunk-XJYAUIOL.cjs} +13 -13
- package/dist/{chunk-ZHD3F2TH.cjs → chunk-XR7NVJXS.cjs} +13 -13
- package/dist/{chunk-EVMM3JE6.cjs → chunk-ZHC6MDGF.cjs} +43 -43
- package/dist/{chunk-K2BYVPGR.js → chunk-ZMHP4Y6M.js} +5 -5
- package/dist/{chunk-NYSMDM4J.cjs → chunk-ZSOFLPQN.cjs} +7 -7
- package/dist/{cloud-tenants-RKQRSDNE.js → cloud-tenants-4Z36KWSX.js} +14 -14
- package/dist/{cloud-tenants-UQZASXUB.cjs → cloud-tenants-5NIC5VXK.cjs} +15 -15
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.js +15 -15
- package/dist/components/chat/index.cjs +10 -10
- package/dist/components/chat/index.js +9 -9
- package/dist/components/contact/index.cjs +16 -16
- package/dist/components/contact/index.js +15 -15
- package/dist/components/docs/index.cjs +19 -19
- package/dist/components/docs/index.js +18 -18
- package/dist/components/embeds/index.cjs +16 -16
- package/dist/components/embeds/index.js +15 -15
- package/dist/components/faq/index.cjs +16 -16
- package/dist/components/faq/index.js +15 -15
- package/dist/components/features/index.cjs +15 -15
- package/dist/components/features/index.js +14 -14
- package/dist/components/features/remote-session/remote-access-request-card.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts +68 -0
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +347 -117
- package/dist/components/help-center-pages/index.d.ts +1 -0
- package/dist/components/help-center-pages/index.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.js +260 -30
- package/dist/components/index.cjs +87 -85
- package/dist/components/index.js +30 -28
- package/dist/components/meeting-scheduler/index.cjs +67 -67
- package/dist/components/meeting-scheduler/index.js +16 -16
- package/dist/components/navigation/index.cjs +18 -18
- package/dist/components/navigation/index.js +17 -17
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.js +17 -17
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/index.js +8 -8
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/index.js +6 -6
- package/dist/components/tickets/index.cjs +20 -20
- package/dist/components/tickets/index.js +19 -19
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +17 -15
- 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 +16 -14
- package/dist/components/ui/mobile-app-qr.d.ts +21 -0
- package/dist/components/ui/mobile-app-qr.d.ts.map +1 -0
- package/dist/components/ui/store-badges.d.ts +7 -4
- package/dist/components/ui/store-badges.d.ts.map +1 -1
- package/dist/{devices-U3Y4IIW4.js → devices-2TK3LAKM.js} +14 -14
- package/dist/{devices-7Q2EUM7B.cjs → devices-7IKT72DK.cjs} +16 -16
- package/dist/hooks/index.cjs +9 -3
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -2
- package/dist/hooks/use-downloads.d.ts +41 -0
- package/dist/hooks/use-downloads.d.ts.map +1 -0
- package/dist/index.cjs +52 -20
- package/dist/index.js +50 -18
- package/dist/{knowledge-NST53EXE.js → knowledge-3GJ4MU3V.js} +14 -14
- package/dist/{knowledge-UYIZ74MA.cjs → knowledge-HYSEV35H.cjs} +16 -16
- package/dist/{logs-JVTRG232.js → logs-TATVM62H.js} +14 -14
- package/dist/{logs-HTH7X7KV.cjs → logs-ZX3NADQC.cjs} +24 -24
- package/dist/{policies-MXK2HB4W.cjs → policies-J4FSDKPI.cjs} +19 -19
- package/dist/{policies-DTXTRK56.js → policies-MRRKLF4Q.js} +14 -14
- package/dist/{remote-session-LAJZKQBN.js → remote-session-WCLR47RN.js} +6 -6
- package/dist/{remote-session-SKKF4PBV.cjs → remote-session-Z2YCUPHU.cjs} +8 -8
- package/dist/{software-update-P6BSM6HX.cjs → software-update-CXUBWYD2.cjs} +19 -19
- package/dist/{software-update-6RHMPM3W.js → software-update-KM46WUVQ.js} +14 -14
- package/dist/{tickets-board-BHLPAVNJ.cjs → tickets-board-R5OQSEEC.cjs} +10 -10
- package/dist/{tickets-board-PYDNELSK.js → tickets-board-U3RF3AO4.js} +5 -5
- package/dist/types/downloads.d.ts +83 -0
- package/dist/types/downloads.d.ts.map +1 -0
- package/dist/types/index.cjs +24 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -1
- package/dist/utils/format.d.ts +11 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +15 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +13 -1
- package/dist/utils/mobile-app.cjs +37 -0
- package/dist/utils/mobile-app.d.ts +23 -0
- package/dist/utils/mobile-app.d.ts.map +1 -0
- package/dist/utils/mobile-app.js +34 -0
- package/package.json +7 -1
- package/src/components/features/remote-session/remote-access-request-card.tsx +6 -6
- package/src/components/help-center-pages/download-apps-page.tsx +388 -0
- package/src/components/help-center-pages/index.ts +1 -0
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-app-qr.tsx +35 -0
- package/src/components/ui/store-badges.tsx +17 -9
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-downloads.ts +138 -0
- package/src/types/downloads.ts +99 -0
- package/src/types/index.ts +1 -0
- package/src/utils/format.ts +15 -0
- package/src/utils/index.ts +3 -1
- package/src/utils/mobile-app.ts +34 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDFM572VHcjs = require('../../chunk-DFM572VH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZSOFLPQNcjs = require('../../chunk-ZSOFLPQN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,8 +16,8 @@ var _chunkNYSMDM4Jcjs = require('../../chunk-NYSMDM4J.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('../../chunk-
|
|
19
|
+
var _chunkDWSBTGKTcjs = require('../../chunk-DWSBTGKT.cjs');
|
|
20
|
+
require('../../chunk-ABSWD4PQ.cjs');
|
|
21
21
|
require('../../chunk-HQQE74RO.cjs');
|
|
22
22
|
require('../../chunk-DEY6XXGO.cjs');
|
|
23
23
|
|
|
@@ -27,17 +27,17 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkNFABAOMDcjs = require('../../chunk-NFABAOMD.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk4LY6R4TNcjs = require('../../chunk-4LY6R4TN.cjs');
|
|
37
37
|
require('../../chunk-B4NCVYEQ.cjs');
|
|
38
38
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
39
39
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
40
|
-
require('../../chunk-
|
|
40
|
+
require('../../chunk-BYUIFT7Q.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
@@ -45,30 +45,30 @@ var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
49
|
-
require('../../chunk-
|
|
48
|
+
var _chunkP7Y626YJcjs = require('../../chunk-P7Y626YJ.cjs');
|
|
49
|
+
require('../../chunk-HP4UUBJC.cjs');
|
|
50
50
|
require('../../chunk-EWPR7662.cjs');
|
|
51
|
-
require('../../chunk-
|
|
52
|
-
require('../../chunk-
|
|
51
|
+
require('../../chunk-FDWYBJYD.cjs');
|
|
52
|
+
require('../../chunk-RUZIICXT.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkK2JUJ37Dcjs = require('../../chunk-K2JUJ37D.cjs');
|
|
56
56
|
require('../../chunk-WVOTC7HW.cjs');
|
|
57
57
|
require('../../chunk-7DNL734S.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkIITZ6JSCcjs = require('../../chunk-IITZ6JSC.cjs');
|
|
61
61
|
require('../../chunk-AL2GUHAJ.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkLV6UJD2Kcjs = require('../../chunk-LV6UJD2K.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkTKFTWM3Vcjs = require('../../chunk-TKFTWM3V.cjs');
|
|
72
72
|
require('../../chunk-MGHIV4L6.cjs');
|
|
73
73
|
|
|
74
74
|
|
|
@@ -89,7 +89,7 @@ require('../../chunk-2Y7QZAB2.cjs');
|
|
|
89
89
|
require('../../chunk-4GFNWALL.cjs');
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkHQIOMFJHcjs = require('../../chunk-HQIOMFJH.cjs');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunkLLRGR4I5cjs = require('../../chunk-LLRGR4I5.cjs');
|
|
@@ -379,7 +379,7 @@ function useMeetingBooking(options) {
|
|
|
379
379
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
380
380
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
381
381
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
382
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
382
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkP7Y626YJcjs.MAX_MONTH_OFFSET, offset)));
|
|
383
383
|
}, []);
|
|
384
384
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
385
385
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -509,7 +509,7 @@ var FIELD_CONTROLS = {
|
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
511
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
512
|
-
|
|
512
|
+
_chunkDWSBTGKTcjs.Textarea,
|
|
513
513
|
{
|
|
514
514
|
id,
|
|
515
515
|
required: field.required,
|
|
@@ -565,18 +565,18 @@ var FIELD_CONTROLS = {
|
|
|
565
565
|
{
|
|
566
566
|
control,
|
|
567
567
|
name: registerName,
|
|
568
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
568
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNFABAOMDcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
569
569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
-
|
|
570
|
+
_chunkNFABAOMDcjs.SelectTrigger,
|
|
571
571
|
{
|
|
572
572
|
id,
|
|
573
573
|
"aria-required": field.required || void 0,
|
|
574
574
|
"aria-invalid": Boolean(error),
|
|
575
575
|
invalid: Boolean(error),
|
|
576
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
577
577
|
}
|
|
578
578
|
),
|
|
579
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
580
580
|
] })
|
|
581
581
|
}
|
|
582
582
|
),
|
|
@@ -586,14 +586,14 @@ var FIELD_CONTROLS = {
|
|
|
586
586
|
control,
|
|
587
587
|
name: registerName,
|
|
588
588
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
589
|
-
|
|
589
|
+
_chunkDWSBTGKTcjs.RadioGroup,
|
|
590
590
|
{
|
|
591
591
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
592
592
|
onValueChange: rhf.onChange,
|
|
593
593
|
"aria-required": field.required || void 0,
|
|
594
594
|
"aria-invalid": Boolean(error),
|
|
595
595
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
596
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
596
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWSBTGKTcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
597
597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXXBLN4BPcjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
598
598
|
] }, opt))
|
|
599
599
|
}
|
|
@@ -732,7 +732,7 @@ function BookingForm({
|
|
|
732
732
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
733
733
|
[supportedFields]
|
|
734
734
|
);
|
|
735
|
-
const formRescue =
|
|
735
|
+
const formRescue = _chunk4LY6R4TNcjs.useRescuedForm.call(void 0,
|
|
736
736
|
{ watch, getValues, setValue },
|
|
737
737
|
{
|
|
738
738
|
rescue,
|
|
@@ -741,7 +741,7 @@ function BookingForm({
|
|
|
741
741
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
742
742
|
}
|
|
743
743
|
);
|
|
744
|
-
const { toast } =
|
|
744
|
+
const { toast } = _chunk4LY6R4TNcjs.useToast.call(void 0, );
|
|
745
745
|
const onInvalid = () => {
|
|
746
746
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
747
747
|
toast({
|
|
@@ -820,7 +820,7 @@ function BookingForm({
|
|
|
820
820
|
const { rows: placedRows, unplacedBuiltIns, named: placedNames } = normalizeFieldRows(_nullishCoalesce(fieldRows, () => ( [])), slotResolves);
|
|
821
821
|
const unplacedFields = fieldRows ? supportedFields.filter((f) => !placedNames.has(f.name)) : [];
|
|
822
822
|
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
823
|
-
|
|
823
|
+
_chunkHQIOMFJHcjs.Button,
|
|
824
824
|
{
|
|
825
825
|
type: "submit",
|
|
826
826
|
loading: isSubmitting,
|
|
@@ -829,8 +829,8 @@ function BookingForm({
|
|
|
829
829
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
833
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
832
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkP7Y626YJcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
833
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWSBTGKTcjs.HoneypotField, { ...honeypotInputProps }),
|
|
834
834
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
835
835
|
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("|"))),
|
|
836
836
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -843,7 +843,7 @@ function BookingForm({
|
|
|
843
843
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
844
844
|
] }),
|
|
845
845
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
846
|
-
|
|
846
|
+
_chunkDWSBTGKTcjs.CheckboxBlock,
|
|
847
847
|
{
|
|
848
848
|
id: "ms-host-consent",
|
|
849
849
|
checked: consented,
|
|
@@ -878,7 +878,7 @@ function BookingForm({
|
|
|
878
878
|
// same block the waitlist form uses): box + label in one
|
|
879
879
|
// bordered row.
|
|
880
880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
881
|
+
_chunkDWSBTGKTcjs.CheckboxBlock,
|
|
882
882
|
{
|
|
883
883
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
884
884
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -944,7 +944,7 @@ function skeletonRows(fieldRows) {
|
|
|
944
944
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
945
945
|
|
|
946
946
|
function Confirmation({ confirmation, timezone }) {
|
|
947
|
-
const when =
|
|
947
|
+
const when = _chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
948
948
|
viewerLocale: true
|
|
949
949
|
});
|
|
950
950
|
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: [
|
|
@@ -954,7 +954,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
954
954
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
955
955
|
when,
|
|
956
956
|
" \xB7 ",
|
|
957
|
-
|
|
957
|
+
_chunkTKFTWM3Vcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
958
958
|
] }),
|
|
959
959
|
/* @__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." })
|
|
960
960
|
] });
|
|
@@ -975,7 +975,7 @@ function ContextPanelSkeleton({
|
|
|
975
975
|
backLabel = "Back"
|
|
976
976
|
}) {
|
|
977
977
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
978
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
978
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
979
979
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
980
980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
981
981
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] content-lg:flex-none", children: [
|
|
@@ -1011,13 +1011,13 @@ function SchedulerContextPanel({
|
|
|
1011
1011
|
className
|
|
1012
1012
|
}) {
|
|
1013
1013
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
1014
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1014
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
1015
1015
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
1016
1016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
1017
1017
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
1018
1018
|
hosts.length > 0 && hosts.length <= 3 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-s)]", children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
1019
1019
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1020
|
-
|
|
1020
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1021
1021
|
{
|
|
1022
1022
|
variant: "round",
|
|
1023
1023
|
size: "sm",
|
|
@@ -1032,7 +1032,7 @@ function SchedulerContextPanel({
|
|
|
1032
1032
|
] })
|
|
1033
1033
|
] }, host.name)) }),
|
|
1034
1034
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLV6UJD2Kcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1036
1036
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1037
1037
|
hosts.length,
|
|
1038
1038
|
" hosts on this calendar"
|
|
@@ -1042,7 +1042,7 @@ function SchedulerContextPanel({
|
|
|
1042
1042
|
// Post-selection, or a link that offers one length: a static line,
|
|
1043
1043
|
// which is what sits beside the host on the header-strip layouts.
|
|
1044
1044
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1045
|
-
|
|
1045
|
+
_chunkTKFTWM3Vcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1046
1046
|
" call"
|
|
1047
1047
|
] })
|
|
1048
1048
|
) : null
|
|
@@ -1052,13 +1052,13 @@ function SchedulerContextPanel({
|
|
|
1052
1052
|
!locked && durationsMs.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
1053
1053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
1054
1054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", children: durationsMs.map((ms) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1055
|
-
|
|
1055
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1056
1056
|
{
|
|
1057
1057
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
1058
1058
|
size: "small-legacy",
|
|
1059
1059
|
disabled,
|
|
1060
1060
|
onClick: () => onSelectDuration(ms),
|
|
1061
|
-
children:
|
|
1061
|
+
children: _chunkTKFTWM3Vcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1062
1062
|
},
|
|
1063
1063
|
ms
|
|
1064
1064
|
)) })
|
|
@@ -1073,7 +1073,7 @@ function SchedulerContextPanel({
|
|
|
1073
1073
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
1074
1074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1075
1075
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1076
|
-
|
|
1076
|
+
_chunkDWSBTGKTcjs.TimezoneSelect,
|
|
1077
1077
|
{
|
|
1078
1078
|
value: timezone,
|
|
1079
1079
|
disabled,
|
|
@@ -1105,7 +1105,7 @@ function dateFromDayKey(key) {
|
|
|
1105
1105
|
return new Date(y, m - 1, d, 12);
|
|
1106
1106
|
}
|
|
1107
1107
|
function timeLabelInZone(ms, timeZone) {
|
|
1108
|
-
return
|
|
1108
|
+
return _chunkTKFTWM3Vcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1109
1109
|
}
|
|
1110
1110
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
1111
1111
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1149,25 +1149,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border content-md:border-b-0 content-m
|
|
|
1149
1149
|
function monthLabelFor(offset) {
|
|
1150
1150
|
const now = /* @__PURE__ */ new Date();
|
|
1151
1151
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1152
|
-
return
|
|
1152
|
+
return _chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, month, _chunkTKFTWM3Vcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1153
1153
|
}
|
|
1154
1154
|
var DISABLE_EVERY_DAY = () => true;
|
|
1155
1155
|
var NOOP = () => void 0;
|
|
1156
1156
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1157
1157
|
const now = /* @__PURE__ */ new Date();
|
|
1158
1158
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1159
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1159
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkP7Y626YJcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1160
1160
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1161
1161
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1162
1162
|
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,
|
|
1163
|
-
|
|
1163
|
+
_chunkDWSBTGKTcjs.DatePickerCalendar,
|
|
1164
1164
|
{
|
|
1165
1165
|
mode: "single",
|
|
1166
1166
|
bare: true,
|
|
1167
1167
|
month: visibleMonth,
|
|
1168
1168
|
onMonthChange: (month) => {
|
|
1169
1169
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1170
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1170
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkP7Y626YJcjs.MAX_MONTH_OFFSET, offset)));
|
|
1171
1171
|
},
|
|
1172
1172
|
fromDate: startMonth,
|
|
1173
1173
|
toDate: endMonth,
|
|
@@ -1254,11 +1254,11 @@ function SlotPicker({
|
|
|
1254
1254
|
)
|
|
1255
1255
|
] }),
|
|
1256
1256
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"), children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1257
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1257
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkTKFTWM3Vcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1258
1258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1259
1259
|
const isSelected = selectedSlot === ms;
|
|
1260
1260
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1261
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1262
1262
|
{
|
|
1263
1263
|
variant: isSelected ? void 0 : "outline",
|
|
1264
1264
|
disabled: isSubmitting,
|
|
@@ -1283,8 +1283,8 @@ function SlotPicker({
|
|
|
1283
1283
|
monthLabelFor(monthOffset),
|
|
1284
1284
|
"."
|
|
1285
1285
|
] }),
|
|
1286
|
-
monthOffset <
|
|
1287
|
-
|
|
1286
|
+
monthOffset < _chunkP7Y626YJcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1287
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1288
1288
|
{
|
|
1289
1289
|
variant: "outline",
|
|
1290
1290
|
onClick: () => onMonthOffsetChange(monthOffset + 1),
|
|
@@ -1305,10 +1305,10 @@ function SlotPicker({
|
|
|
1305
1305
|
|
|
1306
1306
|
|
|
1307
1307
|
function useNextAvailableLabel(ms) {
|
|
1308
|
-
const hydrated =
|
|
1308
|
+
const hydrated = _chunkP7Y626YJcjs.useIsHydrated.call(void 0, );
|
|
1309
1309
|
return _react.useMemo.call(void 0, () => {
|
|
1310
1310
|
if (!hydrated || ms == null) return null;
|
|
1311
|
-
return
|
|
1311
|
+
return _chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, ms, _chunkTKFTWM3Vcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1312
1312
|
}, [hydrated, ms]);
|
|
1313
1313
|
}
|
|
1314
1314
|
function DirectoryRow({
|
|
@@ -1319,7 +1319,7 @@ function DirectoryRow({
|
|
|
1319
1319
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1320
1320
|
const subtitle = [
|
|
1321
1321
|
link.description,
|
|
1322
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1322
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkTKFTWM3Vcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1323
1323
|
link.kind === "team" ? "Team" : null
|
|
1324
1324
|
].filter(Boolean).join(" \u2022 ");
|
|
1325
1325
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1333,8 +1333,8 @@ function DirectoryRow({
|
|
|
1333
1333
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1334
1334
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1335
1335
|
] }),
|
|
1336
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIITZ6JSCcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
1337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLV6UJD2Kcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1338
1338
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center content-md:flex", children: [
|
|
1339
1339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1340
1340
|
/* @__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, () => ( " ")) })
|
|
@@ -1414,7 +1414,7 @@ function MeetingSchedulerDirectory({
|
|
|
1414
1414
|
}
|
|
1415
1415
|
if (error) {
|
|
1416
1416
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1417
|
-
|
|
1417
|
+
_chunkZSOFLPQNcjs.EmptyState,
|
|
1418
1418
|
{
|
|
1419
1419
|
type: "generic",
|
|
1420
1420
|
title: "We couldn't load available call times",
|
|
@@ -1425,7 +1425,7 @@ function MeetingSchedulerDirectory({
|
|
|
1425
1425
|
}
|
|
1426
1426
|
if (rows.length === 0) {
|
|
1427
1427
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1428
|
-
|
|
1428
|
+
_chunkZSOFLPQNcjs.EmptyState,
|
|
1429
1429
|
{
|
|
1430
1430
|
type: "generic",
|
|
1431
1431
|
title: "No call times are published right now",
|
|
@@ -1437,7 +1437,7 @@ function MeetingSchedulerDirectory({
|
|
|
1437
1437
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1438
1438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-4", style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
1439
1439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1440
|
-
|
|
1440
|
+
_chunkDFM572VHcjs.PersistentPaginationWrapper,
|
|
1441
1441
|
{
|
|
1442
1442
|
isLoading,
|
|
1443
1443
|
currentPage: page,
|
|
@@ -1538,7 +1538,7 @@ function HubSpotMeetingScheduler({
|
|
|
1538
1538
|
isSubmitting
|
|
1539
1539
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1540
1540
|
const detailsFirst = flow === "details-first";
|
|
1541
|
-
const hydrated =
|
|
1541
|
+
const hydrated = _chunkP7Y626YJcjs.useIsHydrated.call(void 0, );
|
|
1542
1542
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1543
1543
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1544
1544
|
if (!hydrated) return null;
|
|
@@ -1571,8 +1571,8 @@ function HubSpotMeetingScheduler({
|
|
|
1571
1571
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1572
1572
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1573
1573
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1574
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1575
|
-
const { toast } =
|
|
1574
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk4LY6R4TNcjs.useHumanitySignals.call(void 0, );
|
|
1575
|
+
const { toast } = _chunk4LY6R4TNcjs.useToast.call(void 0, );
|
|
1576
1576
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1577
1577
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1578
1578
|
if (machineFor !== meetingId) {
|
|
@@ -1646,7 +1646,7 @@ function HubSpotMeetingScheduler({
|
|
|
1646
1646
|
return;
|
|
1647
1647
|
}
|
|
1648
1648
|
if (result.ok && result.confirmation) {
|
|
1649
|
-
|
|
1649
|
+
_chunk4LY6R4TNcjs.completeFormRescue.call(void 0, rescue, payload[_chunkK2JUJ37Dcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1650
1650
|
setConfirmation(result.confirmation);
|
|
1651
1651
|
setStep("confirmed");
|
|
1652
1652
|
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
@@ -1673,7 +1673,7 @@ function HubSpotMeetingScheduler({
|
|
|
1673
1673
|
},
|
|
1674
1674
|
[book, bookingError, detailsFirst, onBooked, refetchAvailability, rescue, resetSignals, toast]
|
|
1675
1675
|
);
|
|
1676
|
-
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1676
|
+
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1677
1677
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1678
1678
|
const boxed = !formOnly;
|
|
1679
1679
|
const cardClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -1742,10 +1742,10 @@ function HubSpotMeetingScheduler({
|
|
|
1742
1742
|
durations.length > 0
|
|
1743
1743
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
1744
1744
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1745
|
-
|
|
1745
|
+
_chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1746
1746
|
" \xB7",
|
|
1747
1747
|
" ",
|
|
1748
|
-
|
|
1748
|
+
_chunkTKFTWM3Vcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1749
1749
|
] }),
|
|
1750
1750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1751
1751
|
DetailsForm,
|
|
@@ -1769,11 +1769,11 @@ function HubSpotMeetingScheduler({
|
|
|
1769
1769
|
)
|
|
1770
1770
|
] }) : /* @__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: [
|
|
1771
1771
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1772
|
-
|
|
1772
|
+
_chunkDWSBTGKTcjs.Alert,
|
|
1773
1773
|
{
|
|
1774
1774
|
variant: "warning",
|
|
1775
1775
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
1776
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWSBTGKTcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
1779
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-6YBUQAOH.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-K76ACBR3.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert,
|
|
11
11
|
AlertDescription,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
RadioGroupItem,
|
|
17
17
|
Textarea,
|
|
18
18
|
TimezoneSelect
|
|
19
|
-
} from "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
} from "../../chunk-KBPGSPXQ.js";
|
|
20
|
+
import "../../chunk-KS3YLYVL.js";
|
|
21
21
|
import "../../chunk-LQYXMEYF.js";
|
|
22
22
|
import "../../chunk-4JPLYOS6.js";
|
|
23
23
|
import {
|
|
@@ -27,17 +27,17 @@ import {
|
|
|
27
27
|
SelectItem,
|
|
28
28
|
SelectTrigger,
|
|
29
29
|
SelectValue
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-UYMTAFHG.js";
|
|
31
31
|
import {
|
|
32
32
|
completeFormRescue,
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-2TXGR7IK.js";
|
|
37
37
|
import "../../chunk-3K5ZLZE7.js";
|
|
38
38
|
import "../../chunk-HFL2F4RM.js";
|
|
39
39
|
import "../../chunk-YYYVS7CX.js";
|
|
40
|
-
import "../../chunk-
|
|
40
|
+
import "../../chunk-3UBWDR65.js";
|
|
41
41
|
import {
|
|
42
42
|
Checkbox
|
|
43
43
|
} from "../../chunk-PLWMIU72.js";
|
|
@@ -45,30 +45,30 @@ import {
|
|
|
45
45
|
HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
46
46
|
MAX_MONTH_OFFSET,
|
|
47
47
|
useIsHydrated
|
|
48
|
-
} from "../../chunk-
|
|
49
|
-
import "../../chunk-
|
|
48
|
+
} from "../../chunk-E7NIZXDT.js";
|
|
49
|
+
import "../../chunk-5D2K7TFT.js";
|
|
50
50
|
import "../../chunk-AFTRPEXO.js";
|
|
51
|
-
import "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
51
|
+
import "../../chunk-WY4SLTMZ.js";
|
|
52
|
+
import "../../chunk-REETLEL5.js";
|
|
53
53
|
import {
|
|
54
54
|
FORM_RESCUE_ATTEMPT_FIELD
|
|
55
|
-
} from "../../chunk-
|
|
55
|
+
} from "../../chunk-4I3K6LEH.js";
|
|
56
56
|
import "../../chunk-34I6XI3N.js";
|
|
57
57
|
import "../../chunk-GY4IZG22.js";
|
|
58
58
|
import {
|
|
59
59
|
StatusBadge
|
|
60
|
-
} from "../../chunk-
|
|
60
|
+
} from "../../chunk-7UZ2JZJY.js";
|
|
61
61
|
import "../../chunk-H3PKYE4N.js";
|
|
62
62
|
import {
|
|
63
63
|
AvatarStack
|
|
64
|
-
} from "../../chunk-
|
|
64
|
+
} from "../../chunk-EWED6ISQ.js";
|
|
65
65
|
import {
|
|
66
66
|
SquareAvatar,
|
|
67
67
|
VIEWER_TIMEZONE,
|
|
68
68
|
formatDateWithTimezone,
|
|
69
69
|
formatDurationCompact,
|
|
70
70
|
formatTimeWithTimezone
|
|
71
|
-
} from "../../chunk-
|
|
71
|
+
} from "../../chunk-KZQO5EJQ.js";
|
|
72
72
|
import "../../chunk-FBZMAPWO.js";
|
|
73
73
|
import {
|
|
74
74
|
contentFetch,
|
|
@@ -89,7 +89,7 @@ import "../../chunk-WI6FHKD7.js";
|
|
|
89
89
|
import "../../chunk-INS7KZJB.js";
|
|
90
90
|
import {
|
|
91
91
|
Button
|
|
92
|
-
} from "../../chunk-
|
|
92
|
+
} from "../../chunk-DJ4IFQNQ.js";
|
|
93
93
|
import {
|
|
94
94
|
next_link_default
|
|
95
95
|
} from "../../chunk-DAAVMYUT.js";
|