@flamingo-stack/openframe-frontend-core 0.0.644 → 0.0.645-snapshot.20260917103313
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/README.md +2 -2
- package/dist/{chunk-RFFF2EYD.cjs → chunk-2KE2M67P.cjs} +15 -15
- package/dist/{chunk-RFFF2EYD.cjs.map → chunk-2KE2M67P.cjs.map} +1 -1
- package/dist/{chunk-PFV4DAX5.js → chunk-2ZLCQSG4.js} +10 -10
- package/dist/{chunk-FOSIR4QF.js → chunk-3DWDJ54N.js} +5 -5
- package/dist/{chunk-YB6FI2G3.js → chunk-3SMLYVM2.js} +1 -1
- package/dist/{chunk-YB6FI2G3.js.map → chunk-3SMLYVM2.js.map} +1 -1
- package/dist/{chunk-4EEUB62O.js → chunk-4HVWGYHI.js} +2 -2
- package/dist/{chunk-27RD5XTP.js → chunk-4TLGU2FT.js} +5 -5
- package/dist/{chunk-G5U4JP45.js → chunk-5ONM3FHQ.js} +4 -4
- package/dist/{chunk-MRIOYSXH.js → chunk-63RIPFJ4.js} +5 -5
- package/dist/{chunk-GELNUDBT.cjs → chunk-77BLJHKI.cjs} +10 -10
- package/dist/{chunk-GELNUDBT.cjs.map → chunk-77BLJHKI.cjs.map} +1 -1
- package/dist/{chunk-KJWPAJRT.js → chunk-7EI3NES7.js} +3 -3
- package/dist/{chunk-DCCY54LU.cjs → chunk-7HHVE7DC.cjs} +14 -14
- package/dist/{chunk-DCCY54LU.cjs.map → chunk-7HHVE7DC.cjs.map} +1 -1
- package/dist/{chunk-CBXZSTAG.cjs → chunk-7UWJMWDH.cjs} +1004 -794
- package/dist/chunk-7UWJMWDH.cjs.map +1 -0
- package/dist/{chunk-3DGRXC74.js → chunk-CH5E4GXC.js} +5 -5
- package/dist/{chunk-VE52MSYC.js → chunk-CJMWRV65.js} +8 -8
- package/dist/{chunk-65EVGKFV.cjs → chunk-CSZBFSYT.cjs} +14 -14
- package/dist/{chunk-65EVGKFV.cjs.map → chunk-CSZBFSYT.cjs.map} +1 -1
- package/dist/{chunk-TTVOBWAH.js → chunk-D5PU7K2W.js} +5 -5
- package/dist/{chunk-3IXDZI3R.cjs → chunk-DOVVKQMZ.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-DOVVKQMZ.cjs.map} +1 -1
- package/dist/{chunk-I57XLISO.js → chunk-DULSS7R6.js} +226 -16
- package/dist/chunk-DULSS7R6.js.map +1 -0
- package/dist/{chunk-KOQCA5X5.cjs → chunk-DWJREJRA.cjs} +5 -5
- package/dist/{chunk-KOQCA5X5.cjs.map → chunk-DWJREJRA.cjs.map} +1 -1
- package/dist/{chunk-7R2DIGG4.cjs → chunk-EX5PJGVA.cjs} +76 -76
- package/dist/{chunk-7R2DIGG4.cjs.map → chunk-EX5PJGVA.cjs.map} +1 -1
- package/dist/{chunk-GBEUGDZG.cjs → chunk-F6U2H42L.cjs} +23 -23
- package/dist/{chunk-GBEUGDZG.cjs.map → chunk-F6U2H42L.cjs.map} +1 -1
- package/dist/{chunk-3UBT2OIX.cjs → chunk-FMG2YUBW.cjs} +74 -74
- package/dist/{chunk-3UBT2OIX.cjs.map → chunk-FMG2YUBW.cjs.map} +1 -1
- package/dist/{chunk-KEKN76JR.js → chunk-FRQ2DE5Z.js} +5 -5
- package/dist/{chunk-JOV64HW5.js → chunk-GRBZC5N3.js} +3 -3
- package/dist/{chunk-CHIHYC7Q.cjs → chunk-GSD62VAY.cjs} +21 -21
- package/dist/{chunk-CHIHYC7Q.cjs.map → chunk-GSD62VAY.cjs.map} +1 -1
- package/dist/{chunk-LPMDCQLL.js → chunk-H3EJDISW.js} +2 -2
- package/dist/{chunk-HPWLIYRL.js → chunk-HT4B4NGI.js} +14 -14
- package/dist/{chunk-KOLVBEW5.js → chunk-IWISVG4P.js} +3 -3
- package/dist/{chunk-MCQAOIUK.cjs → chunk-JEH4PXJG.cjs} +37 -37
- package/dist/{chunk-MCQAOIUK.cjs.map → chunk-JEH4PXJG.cjs.map} +1 -1
- package/dist/{chunk-GNKM6R55.cjs → chunk-JH5P72AF.cjs} +25 -25
- package/dist/{chunk-GNKM6R55.cjs.map → chunk-JH5P72AF.cjs.map} +1 -1
- package/dist/{chunk-HOGOQA2X.js → chunk-JNOPOJHH.js} +3 -3
- package/dist/{chunk-LCK7T2RM.cjs → chunk-JU6SBF3C.cjs} +13 -13
- package/dist/{chunk-LCK7T2RM.cjs.map → chunk-JU6SBF3C.cjs.map} +1 -1
- package/dist/{chunk-F2KBCLUG.js → chunk-KKSSA4CS.js} +2 -2
- package/dist/{chunk-IXD6SHQ6.js → chunk-KMI4VAS2.js} +6 -6
- package/dist/{chunk-IIXB5REN.cjs → chunk-KNMCYCY3.cjs} +16 -16
- package/dist/{chunk-IIXB5REN.cjs.map → chunk-KNMCYCY3.cjs.map} +1 -1
- package/dist/{chunk-RNMGKAS6.js → chunk-KPEBCJIH.js} +15 -15
- package/dist/{chunk-OMSUWB6A.cjs → chunk-LPMW5CNR.cjs} +118 -118
- package/dist/{chunk-OMSUWB6A.cjs.map → chunk-LPMW5CNR.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-LZLT67PE.js} +2 -2
- package/dist/{chunk-B3Z3RJRW.js → chunk-M4AD2PHE.js} +5 -5
- package/dist/{chunk-BVQEU5JB.js → chunk-MT5A25AX.js} +2 -2
- package/dist/chunk-OXB6LRBK.js +20 -0
- package/dist/chunk-OXB6LRBK.js.map +1 -0
- package/dist/{chunk-OVXYX47B.cjs → chunk-PP6RACFB.cjs} +19 -19
- package/dist/{chunk-OVXYX47B.cjs.map → chunk-PP6RACFB.cjs.map} +1 -1
- package/dist/{chunk-S2KMNFFN.js → chunk-RJUXSUSM.js} +7 -7
- package/dist/{chunk-TGUA3C4U.cjs → chunk-RKN3TM24.cjs} +9 -9
- package/dist/{chunk-TGUA3C4U.cjs.map → chunk-RKN3TM24.cjs.map} +1 -1
- package/dist/{chunk-C5Y5T6GC.cjs → chunk-SBJ7BWYG.cjs} +20 -20
- package/dist/{chunk-C5Y5T6GC.cjs.map → chunk-SBJ7BWYG.cjs.map} +1 -1
- package/dist/{chunk-UKV52KAP.cjs → chunk-SIXBT6BA.cjs} +44 -44
- package/dist/{chunk-UKV52KAP.cjs.map → chunk-SIXBT6BA.cjs.map} +1 -1
- package/dist/{chunk-SKABQX44.js → chunk-SKA27VLR.js} +7 -7
- package/dist/{chunk-UPKZU6QU.cjs → chunk-U2YLMFJK.cjs} +1 -1
- package/dist/{chunk-UPKZU6QU.cjs.map → chunk-U2YLMFJK.cjs.map} +1 -1
- package/dist/{chunk-B5IFXCRF.cjs → chunk-VJOZGHTK.cjs} +41 -41
- package/dist/{chunk-B5IFXCRF.cjs.map → chunk-VJOZGHTK.cjs.map} +1 -1
- package/dist/{chunk-UEXIMEVU.js → chunk-VK7YKTAL.js} +10 -10
- package/dist/{chunk-CCWI3622.cjs → chunk-VTYP25OW.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VTYP25OW.cjs.map} +1 -1
- package/dist/{chunk-4WVWRFGP.js → chunk-W2HZUFVB.js} +9 -9
- package/dist/{chunk-T3C3JLGV.cjs → chunk-WKX7DYFM.cjs} +8 -8
- package/dist/{chunk-T3C3JLGV.cjs.map → chunk-WKX7DYFM.cjs.map} +1 -1
- package/dist/{chunk-RB6L5EGM.cjs → chunk-X2YUAHNR.cjs} +1131 -1131
- package/dist/{chunk-RB6L5EGM.cjs.map → chunk-X2YUAHNR.cjs.map} +1 -1
- package/dist/{chunk-LZYPSDFE.cjs → chunk-X5OMIX5I.cjs} +90 -90
- package/dist/{chunk-LZYPSDFE.cjs.map → chunk-X5OMIX5I.cjs.map} +1 -1
- package/dist/chunk-X7CEWD6V.cjs +20 -0
- package/dist/chunk-X7CEWD6V.cjs.map +1 -0
- package/dist/{chunk-5JUTGEZE.js → chunk-XBTZOO74.js} +2 -2
- package/dist/{chunk-RWURXICE.cjs → chunk-XGD6SCHN.cjs} +44 -44
- package/dist/{chunk-RWURXICE.cjs.map → chunk-XGD6SCHN.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-XOGD2AME.cjs} +3 -3
- package/dist/{chunk-EHAYNUOL.cjs.map → chunk-XOGD2AME.cjs.map} +1 -1
- package/dist/{chunk-FAD5WURS.cjs → chunk-YR5S7VBA.cjs} +124 -124
- package/dist/{chunk-FAD5WURS.cjs.map → chunk-YR5S7VBA.cjs.map} +1 -1
- package/dist/{chunk-N6HNK25A.cjs → chunk-YWUZL3RT.cjs} +11 -11
- package/dist/{chunk-N6HNK25A.cjs.map → chunk-YWUZL3RT.cjs.map} +1 -1
- package/dist/{chunk-7Q5XXPCB.js → chunk-Z3HJFVYS.js} +14 -14
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/calendar.js +2 -2
- package/dist/components/case-studies/index.cjs +30 -30
- package/dist/components/case-studies/index.js +14 -14
- package/dist/components/chat/embeddable-chat.d.ts +14 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +8 -8
- package/dist/components/chat/utils/source-row-cta.d.ts +1 -1
- package/dist/components/command.d.ts +7 -7
- package/dist/components/contact/index.cjs +15 -15
- package/dist/components/contact/index.js +14 -14
- package/dist/components/docs/index.cjs +18 -18
- package/dist/components/docs/index.js +17 -17
- package/dist/components/embeds/index.cjs +15 -15
- package/dist/components/embeds/index.js +14 -14
- package/dist/components/faq/index.cjs +16 -16
- package/dist/components/faq/index.js +15 -15
- package/dist/components/features/index.cjs +14 -14
- package/dist/components/features/index.js +13 -13
- package/dist/components/help-center-pages/index.cjs +37 -37
- package/dist/components/help-center-pages/index.js +28 -28
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +115 -115
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +31 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/meeting-scheduler/index.js +15 -15
- package/dist/components/navigation/index.cjs +17 -17
- package/dist/components/navigation/index.js +16 -16
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.js +17 -17
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/related-content/index.js +9 -9
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/tickets/index.js +18 -18
- package/dist/components/ui/file-manager/index.cjs +57 -57
- package/dist/components/ui/file-manager/index.js +4 -4
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +13 -13
- package/dist/contexts/chat-runtime-context.d.ts +1 -1
- package/dist/contexts/index.cjs +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.cjs +7 -7
- package/dist/hooks/index.js +6 -6
- package/dist/index.cjs +36 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -22
- package/dist/index.js.map +1 -1
- package/dist/platform-domains.cjs +43 -0
- package/dist/platform-domains.cjs.map +1 -1
- package/dist/platform-domains.d.ts +62 -4
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +39 -1
- package/dist/platform-domains.js.map +1 -1
- package/dist/types/index.cjs +0 -104
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +0 -104
- package/dist/types/index.js.map +1 -1
- package/dist/utils/cn.d.ts +0 -21
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/index.cjs +53 -25
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +49 -25
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/platform-domains.test.ts +124 -0
- package/src/components/chat/embeddable-chat.tsx +65 -3
- package/src/components/chat/index.ts +6 -1
- package/src/components/chat/utils/__tests__/source-row-cta.test.ts +2 -2
- package/src/components/chat/utils/source-row-cta.ts +4 -4
- package/src/components/made-with-love.tsx +2 -2
- package/src/contexts/chat-runtime-context.tsx +1 -1
- package/src/platform-domains.ts +99 -4
- package/src/utils/.cn.md +3 -23
- package/src/utils/cn.ts +0 -47
- package/src/utils/index.ts +9 -2
- package/dist/chunk-23V5BSHD.cjs +0 -169
- package/dist/chunk-23V5BSHD.cjs.map +0 -1
- package/dist/chunk-CBXZSTAG.cjs.map +0 -1
- package/dist/chunk-I57XLISO.js.map +0 -1
- package/dist/chunk-O4MCCKKN.js +0 -169
- package/dist/chunk-O4MCCKKN.js.map +0 -1
- /package/dist/{chunk-PFV4DAX5.js.map → chunk-2ZLCQSG4.js.map} +0 -0
- /package/dist/{chunk-FOSIR4QF.js.map → chunk-3DWDJ54N.js.map} +0 -0
- /package/dist/{chunk-4EEUB62O.js.map → chunk-4HVWGYHI.js.map} +0 -0
- /package/dist/{chunk-27RD5XTP.js.map → chunk-4TLGU2FT.js.map} +0 -0
- /package/dist/{chunk-G5U4JP45.js.map → chunk-5ONM3FHQ.js.map} +0 -0
- /package/dist/{chunk-MRIOYSXH.js.map → chunk-63RIPFJ4.js.map} +0 -0
- /package/dist/{chunk-KJWPAJRT.js.map → chunk-7EI3NES7.js.map} +0 -0
- /package/dist/{chunk-3DGRXC74.js.map → chunk-CH5E4GXC.js.map} +0 -0
- /package/dist/{chunk-VE52MSYC.js.map → chunk-CJMWRV65.js.map} +0 -0
- /package/dist/{chunk-TTVOBWAH.js.map → chunk-D5PU7K2W.js.map} +0 -0
- /package/dist/{chunk-KEKN76JR.js.map → chunk-FRQ2DE5Z.js.map} +0 -0
- /package/dist/{chunk-JOV64HW5.js.map → chunk-GRBZC5N3.js.map} +0 -0
- /package/dist/{chunk-LPMDCQLL.js.map → chunk-H3EJDISW.js.map} +0 -0
- /package/dist/{chunk-HPWLIYRL.js.map → chunk-HT4B4NGI.js.map} +0 -0
- /package/dist/{chunk-KOLVBEW5.js.map → chunk-IWISVG4P.js.map} +0 -0
- /package/dist/{chunk-HOGOQA2X.js.map → chunk-JNOPOJHH.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-KKSSA4CS.js.map} +0 -0
- /package/dist/{chunk-IXD6SHQ6.js.map → chunk-KMI4VAS2.js.map} +0 -0
- /package/dist/{chunk-RNMGKAS6.js.map → chunk-KPEBCJIH.js.map} +0 -0
- /package/dist/{chunk-FKBM6U43.js.map → chunk-LZLT67PE.js.map} +0 -0
- /package/dist/{chunk-B3Z3RJRW.js.map → chunk-M4AD2PHE.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-MT5A25AX.js.map} +0 -0
- /package/dist/{chunk-S2KMNFFN.js.map → chunk-RJUXSUSM.js.map} +0 -0
- /package/dist/{chunk-SKABQX44.js.map → chunk-SKA27VLR.js.map} +0 -0
- /package/dist/{chunk-UEXIMEVU.js.map → chunk-VK7YKTAL.js.map} +0 -0
- /package/dist/{chunk-4WVWRFGP.js.map → chunk-W2HZUFVB.js.map} +0 -0
- /package/dist/{chunk-5JUTGEZE.js.map → chunk-XBTZOO74.js.map} +0 -0
- /package/dist/{chunk-7Q5XXPCB.js.map → chunk-Z3HJFVYS.js.map} +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWKX7DYFMcjs = require('../../chunk-WKX7DYFM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk77BLJHKIcjs = require('../../chunk-77BLJHKI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -24,30 +24,30 @@ var _chunkGELNUDBTcjs = require('../../chunk-GELNUDBT.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkX2YUAHNRcjs = require('../../chunk-X2YUAHNR.cjs');
|
|
28
28
|
require('../../chunk-GQWM3ECA.cjs');
|
|
29
29
|
require('../../chunk-TON3YCCW.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkJH5P72AFcjs = require('../../chunk-JH5P72AF.cjs');
|
|
34
34
|
require('../../chunk-D55IENZJ.cjs');
|
|
35
|
-
require('../../chunk-
|
|
35
|
+
require('../../chunk-JU6SBF3C.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkVTYP25OWcjs = require('../../chunk-VTYP25OW.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkYWUZL3RTcjs = require('../../chunk-YWUZL3RT.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunk7UWJMWDHcjs = require('../../chunk-7UWJMWDH.cjs');
|
|
48
48
|
require('../../chunk-TLLJIGTP.cjs');
|
|
49
49
|
require('../../chunk-SADRZ4YI.cjs');
|
|
50
|
-
require('../../chunk-
|
|
50
|
+
require('../../chunk-DWJREJRA.cjs');
|
|
51
51
|
require('../../chunk-YRTMAXLE.cjs');
|
|
52
52
|
require('../../chunk-XQFFGR6U.cjs');
|
|
53
53
|
|
|
@@ -58,25 +58,25 @@ require('../../chunk-XQFFGR6U.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkEX5PJGVAcjs = require('../../chunk-EX5PJGVA.cjs');
|
|
62
62
|
require('../../chunk-WLSFBRT5.cjs');
|
|
63
|
-
require('../../chunk-
|
|
63
|
+
require('../../chunk-XOGD2AME.cjs');
|
|
64
64
|
require('../../chunk-63QUMV72.cjs');
|
|
65
|
-
require('../../chunk-
|
|
65
|
+
require('../../chunk-U2YLMFJK.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkGSD62VAYcjs = require('../../chunk-GSD62VAY.cjs');
|
|
70
70
|
require('../../chunk-WZW7C7TF.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkF6U2H42Lcjs = require('../../chunk-F6U2H42L.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
var _chunkFCUTPPX5cjs = require('../../chunk-FCUTPPX5.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkX7CEWD6Vcjs = require('../../chunk-X7CEWD6V.cjs');
|
|
80
80
|
require('../../chunk-I5JVSFNV.cjs');
|
|
81
81
|
require('../../chunk-K4RM5MEW.cjs');
|
|
82
82
|
|
|
@@ -257,7 +257,7 @@ function useMeetingBooking(options) {
|
|
|
257
257
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _3 => _3.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
258
258
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
259
259
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
260
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
260
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkX2YUAHNRcjs.MAX_MONTH_OFFSET, offset)));
|
|
261
261
|
}, []);
|
|
262
262
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
263
263
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -270,7 +270,7 @@ function useMeetingBooking(options) {
|
|
|
270
270
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
271
271
|
queryFn: async ({ signal }) => {
|
|
272
272
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
273
|
-
const res = await
|
|
273
|
+
const res = await _chunkVTYP25OWcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
274
274
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
275
275
|
return await res.json();
|
|
276
276
|
},
|
|
@@ -287,7 +287,7 @@ function useMeetingBooking(options) {
|
|
|
287
287
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
288
288
|
mutationFn: async (payload) => {
|
|
289
289
|
try {
|
|
290
|
-
const res = await
|
|
290
|
+
const res = await _chunkVTYP25OWcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
291
291
|
method: "POST",
|
|
292
292
|
headers: { "Content-Type": "application/json" },
|
|
293
293
|
body: JSON.stringify(payload)
|
|
@@ -360,7 +360,7 @@ var evenSpan = (count, index) => {
|
|
|
360
360
|
const extra = GRID_COLUMNS - base * count;
|
|
361
361
|
return Math.min(GRID_COLUMNS, Math.max(1, index < extra ? base + 1 : base));
|
|
362
362
|
};
|
|
363
|
-
var slotColumnClass = (row, slot, index) =>
|
|
363
|
+
var slotColumnClass = (row, slot, index) => _chunkX7CEWD6Vcjs.cn.call(void 0, row.length === 2 ? "col-span-1" : "col-span-2", SPAN_CLASS[_nullishCoalesce(slot.span, () => ( evenSpan(row.length, index)))]);
|
|
364
364
|
var placeholderFor = (field) => _nullishCoalesce(field.placeholder, () => ( _optionalChain([fieldTypeSpec, 'call', _5 => _5(field.type), 'access', _6 => _6.placeholder, 'optionalCall', _7 => _7(field)])));
|
|
365
365
|
var canonicalNumber = (v) => {
|
|
366
366
|
const s = String(_nullishCoalesce(v, () => ( ""))).trim();
|
|
@@ -372,7 +372,7 @@ var canonicalNumber = (v) => {
|
|
|
372
372
|
};
|
|
373
373
|
var FIELD_CONTROLS = {
|
|
374
374
|
text: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
-
|
|
375
|
+
_chunkYWUZL3RTcjs.Input,
|
|
376
376
|
{
|
|
377
377
|
id,
|
|
378
378
|
type: _nullishCoalesce(field.inputType, () => ( "text")),
|
|
@@ -384,7 +384,7 @@ var FIELD_CONTROLS = {
|
|
|
384
384
|
}
|
|
385
385
|
),
|
|
386
386
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
387
|
-
|
|
387
|
+
_chunkX2YUAHNRcjs.Textarea,
|
|
388
388
|
{
|
|
389
389
|
id,
|
|
390
390
|
required: field.required,
|
|
@@ -394,7 +394,7 @@ var FIELD_CONTROLS = {
|
|
|
394
394
|
}
|
|
395
395
|
),
|
|
396
396
|
number: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
397
|
-
|
|
397
|
+
_chunkYWUZL3RTcjs.Input,
|
|
398
398
|
{
|
|
399
399
|
id,
|
|
400
400
|
type: "number",
|
|
@@ -410,9 +410,9 @@ var FIELD_CONTROLS = {
|
|
|
410
410
|
{
|
|
411
411
|
control,
|
|
412
412
|
name: registerName,
|
|
413
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkX2YUAHNRcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.SelectTrigger, { id, "aria-required": field.required || void 0, "aria-invalid": Boolean(error), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.SelectValue, { placeholder: "Select\u2026" }) }),
|
|
415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
416
416
|
] })
|
|
417
417
|
}
|
|
418
418
|
),
|
|
@@ -422,15 +422,15 @@ var FIELD_CONTROLS = {
|
|
|
422
422
|
control,
|
|
423
423
|
name: registerName,
|
|
424
424
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
425
|
-
|
|
425
|
+
_chunkX2YUAHNRcjs.RadioGroup,
|
|
426
426
|
{
|
|
427
427
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
428
428
|
onValueChange: rhf.onChange,
|
|
429
429
|
"aria-required": field.required || void 0,
|
|
430
430
|
"aria-invalid": Boolean(error),
|
|
431
431
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
432
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
433
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
432
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
433
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Label, { htmlFor: `${id}-${opt}`, children: opt })
|
|
434
434
|
] }, opt))
|
|
435
435
|
}
|
|
436
436
|
)
|
|
@@ -446,7 +446,7 @@ var FIELD_CONTROLS = {
|
|
|
446
446
|
// this id — a second inline label would double the visible text AND
|
|
447
447
|
// the accessible name.
|
|
448
448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
449
|
-
|
|
449
|
+
_chunkYWUZL3RTcjs.Checkbox,
|
|
450
450
|
{
|
|
451
451
|
id,
|
|
452
452
|
checked: Boolean(rhf.value),
|
|
@@ -554,7 +554,7 @@ function BookingForm({
|
|
|
554
554
|
const err = _optionalChain([errors, 'access', _15 => _15.formFields, 'optionalAccess', _16 => _16[name]]);
|
|
555
555
|
return _optionalChain([err, 'optionalAccess', _17 => _17.message]);
|
|
556
556
|
};
|
|
557
|
-
const renderField = (field, where) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
557
|
+
const renderField = (field, where) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYWUZL3RTcjs.FieldWrapper, { label: field.label, htmlFor: where.id, required: field.required, error: where.error, children: FIELD_CONTROLS[field.type]({
|
|
558
558
|
field,
|
|
559
559
|
id: where.id,
|
|
560
560
|
registerName: where.registerName,
|
|
@@ -584,7 +584,7 @@ function BookingForm({
|
|
|
584
584
|
const { rows: placedRows, unplacedBuiltIns, named: placedNames } = normalizeFieldRows(_nullishCoalesce(fieldRows, () => ( [])), slotResolves);
|
|
585
585
|
const unplacedFields = fieldRows ? supportedFields.filter((f) => !placedNames.has(f.name)) : [];
|
|
586
586
|
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
587
|
-
|
|
587
|
+
_chunkF6U2H42Lcjs.Button,
|
|
588
588
|
{
|
|
589
589
|
type: "submit",
|
|
590
590
|
loading: isSubmitting,
|
|
@@ -593,8 +593,8 @@ function BookingForm({
|
|
|
593
593
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
597
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
596
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkX2YUAHNRcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
597
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.HoneypotField, { ...honeypotInputProps }),
|
|
598
598
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
599
599
|
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("|"))),
|
|
600
600
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -607,7 +607,7 @@ function BookingForm({
|
|
|
607
607
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
608
608
|
] }),
|
|
609
609
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
610
|
-
|
|
610
|
+
_chunkX2YUAHNRcjs.CheckboxBlock,
|
|
611
611
|
{
|
|
612
612
|
id: "ms-host-consent",
|
|
613
613
|
checked: consented,
|
|
@@ -626,7 +626,7 @@ function BookingForm({
|
|
|
626
626
|
// box doesn't shove the submit button down the card. With no error the
|
|
627
627
|
// wrapper is `display:contents` and the panel below is the flex item,
|
|
628
628
|
// exactly as it was.
|
|
629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYWUZL3RTcjs.FieldWrapper, { error: _optionalChain([errors, 'access', _20 => _20.legalConsentResponses, 'optionalAccess', _21 => _21.message]), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
630
630
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.processingConsentText }),
|
|
631
631
|
legalConsent.communicationConsentText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.communicationConsentText }),
|
|
632
632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -642,7 +642,7 @@ function BookingForm({
|
|
|
642
642
|
// same block the waitlist form uses): box + label in one
|
|
643
643
|
// bordered row.
|
|
644
644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
645
|
-
|
|
645
|
+
_chunkX2YUAHNRcjs.CheckboxBlock,
|
|
646
646
|
{
|
|
647
647
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
648
648
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _22 => _22.consented]), () => ( false)),
|
|
@@ -673,14 +673,14 @@ function BookingFormSkeleton({
|
|
|
673
673
|
consent,
|
|
674
674
|
footerNote
|
|
675
675
|
}) {
|
|
676
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
677
|
-
skeletonRows(_nullishCoalesce(fieldRows, () => ( DEFAULT_FIELD_ROWS))).map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
678
|
-
!fieldRows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
679
|
-
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
676
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex-1", FORM_STACK), children: [
|
|
677
|
+
skeletonRows(_nullishCoalesce(fieldRows, () => ( DEFAULT_FIELD_ROWS))).map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: _chunkX7CEWD6Vcjs.cn.call(void 0, FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex)) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
678
|
+
!fieldRows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
679
|
+
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-[4.25rem] w-full" }),
|
|
680
680
|
footerNote ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: FOOTER_ROW_CLASS, children: [
|
|
681
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
683
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: FOOTER_BARE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
681
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-5 min-w-40 flex-1" }),
|
|
682
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "h-12 w-full", SUBMIT_WIDE_CLASS) })
|
|
683
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: FOOTER_BARE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-12 w-40" }) })
|
|
684
684
|
] });
|
|
685
685
|
}
|
|
686
686
|
function normalizeFieldRows(fieldRows, resolves = () => true) {
|
|
@@ -708,7 +708,7 @@ function skeletonRows(fieldRows) {
|
|
|
708
708
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
709
709
|
|
|
710
710
|
function Confirmation({ confirmation, timezone }) {
|
|
711
|
-
const when =
|
|
711
|
+
const when = _chunkEX5PJGVAcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
712
712
|
viewerLocale: true
|
|
713
713
|
});
|
|
714
714
|
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: [
|
|
@@ -718,7 +718,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
718
718
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
719
719
|
when,
|
|
720
720
|
" \xB7 ",
|
|
721
|
-
|
|
721
|
+
_chunkEX5PJGVAcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
722
722
|
] }),
|
|
723
723
|
/* @__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." })
|
|
724
724
|
] });
|
|
@@ -751,22 +751,22 @@ function ContextPanelSkeleton({
|
|
|
751
751
|
onBack,
|
|
752
752
|
backLabel = "Back"
|
|
753
753
|
}) {
|
|
754
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
755
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
754
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
755
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
756
756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
757
757
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
758
758
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] lg:flex-none", children: [
|
|
759
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
759
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-8 w-8 shrink-0 rounded-full" }),
|
|
760
760
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
761
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
762
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
761
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-5 w-32" }),
|
|
762
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-4 w-24" })
|
|
763
763
|
] })
|
|
764
764
|
] }),
|
|
765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-4 w-20 shrink-0" })
|
|
766
766
|
] }) }),
|
|
767
767
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_ASIDE, children: [
|
|
768
768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
769
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-12 w-full" })
|
|
770
770
|
] })
|
|
771
771
|
] })
|
|
772
772
|
] });
|
|
@@ -799,14 +799,14 @@ function SchedulerContextPanel({
|
|
|
799
799
|
if (!zones.includes(timezone)) zones = [timezone, ...zones];
|
|
800
800
|
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
801
801
|
}, [timezone]);
|
|
802
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
803
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
802
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
803
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
804
804
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
806
806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
807
807
|
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: [
|
|
808
808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
809
|
-
|
|
809
|
+
_chunkEX5PJGVAcjs.SquareAvatar,
|
|
810
810
|
{
|
|
811
811
|
variant: "round",
|
|
812
812
|
size: "sm",
|
|
@@ -821,7 +821,7 @@ function SchedulerContextPanel({
|
|
|
821
821
|
] })
|
|
822
822
|
] }, host.name)) }),
|
|
823
823
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
825
825
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
826
826
|
hosts.length,
|
|
827
827
|
" hosts on this calendar"
|
|
@@ -831,7 +831,7 @@ function SchedulerContextPanel({
|
|
|
831
831
|
// Post-selection, or a link that offers one length: a static line,
|
|
832
832
|
// which is what sits beside the host on the header-strip layouts.
|
|
833
833
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
834
|
-
|
|
834
|
+
_chunkEX5PJGVAcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
835
835
|
" call"
|
|
836
836
|
] })
|
|
837
837
|
) : null
|
|
@@ -841,13 +841,13 @@ function SchedulerContextPanel({
|
|
|
841
841
|
!locked && durationsMs.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
842
842
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
843
843
|
/* @__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,
|
|
844
|
-
|
|
844
|
+
_chunkF6U2H42Lcjs.Button,
|
|
845
845
|
{
|
|
846
846
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
847
847
|
size: "small-legacy",
|
|
848
848
|
disabled,
|
|
849
849
|
onClick: () => onSelectDuration(ms),
|
|
850
|
-
children:
|
|
850
|
+
children: _chunkEX5PJGVAcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
851
851
|
},
|
|
852
852
|
ms
|
|
853
853
|
)) })
|
|
@@ -859,10 +859,10 @@ function SchedulerContextPanel({
|
|
|
859
859
|
// summary line states the zone one row below — so the fact survives,
|
|
860
860
|
// only the control steps aside. The 280px sidebar has the room, so
|
|
861
861
|
// there it stays.
|
|
862
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
862
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
863
863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
864
864
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
865
|
-
|
|
865
|
+
_chunkX2YUAHNRcjs.Autocomplete,
|
|
866
866
|
{
|
|
867
867
|
value: timezone,
|
|
868
868
|
disabled,
|
|
@@ -874,7 +874,7 @@ function SchedulerContextPanel({
|
|
|
874
874
|
noOptionsText: "No matching timezone",
|
|
875
875
|
showClearAll: false
|
|
876
876
|
}
|
|
877
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
877
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-12 w-full" })
|
|
878
878
|
] })
|
|
879
879
|
] })
|
|
880
880
|
] });
|
|
@@ -898,13 +898,13 @@ function dateFromDayKey(key) {
|
|
|
898
898
|
return new Date(y, m - 1, d, 12);
|
|
899
899
|
}
|
|
900
900
|
function timeLabelInZone(ms, timeZone) {
|
|
901
|
-
return
|
|
901
|
+
return _chunkEX5PJGVAcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
902
902
|
}
|
|
903
903
|
var CALENDAR_W = "md:w-[19rem] md:shrink-0 lg:w-[16rem]";
|
|
904
904
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
905
905
|
var COLUMN_STACK = "flex min-h-0 flex-col gap-[var(--spacing-system-xxs)]";
|
|
906
906
|
var SLOT_PICKER_HEADING = "Select Date & Time";
|
|
907
|
-
var CHIP_GRID_CLASS =
|
|
907
|
+
var CHIP_GRID_CLASS = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
908
908
|
"grid grid-cols-[repeat(auto-fill,minmax(5.5rem,1fr))] content-start gap-[var(--spacing-system-xs)]",
|
|
909
909
|
"overflow-y-auto",
|
|
910
910
|
// PHONE: a stated window (~3 rows, the mock's 156px) that scrolls, rather
|
|
@@ -927,7 +927,7 @@ var CHIP_GRID_CLASS = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
|
927
927
|
"min-h-0 flex-1"
|
|
928
928
|
);
|
|
929
929
|
var CHIP_CLASS = "w-full px-[var(--spacing-system-xxs)]";
|
|
930
|
-
var SLOT_ROW_CLASS =
|
|
930
|
+
var SLOT_ROW_CLASS = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
931
931
|
"flex min-w-0 flex-col md:flex-row",
|
|
932
932
|
// Default `stretch` at every width, deliberately. Stacked, that is what
|
|
933
933
|
// makes each section span the card — an `items-start` here (it was here, to
|
|
@@ -942,25 +942,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border md:border-b-0 md:border-r lg:bo
|
|
|
942
942
|
function monthLabelFor(offset) {
|
|
943
943
|
const now = /* @__PURE__ */ new Date();
|
|
944
944
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
945
|
-
return
|
|
945
|
+
return _chunkEX5PJGVAcjs.formatDateWithTimezone.call(void 0, month, _chunkEX5PJGVAcjs.VIEWER_TIMEZONE, "monthYear");
|
|
946
946
|
}
|
|
947
947
|
var DISABLE_EVERY_DAY = () => true;
|
|
948
948
|
var NOOP = () => void 0;
|
|
949
949
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
950
950
|
const now = /* @__PURE__ */ new Date();
|
|
951
951
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
952
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
952
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkX2YUAHNRcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
953
953
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
954
954
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _27 => _27.has, 'call', _28 => _28(calendarDayKey(day))]), [slotsByDay]);
|
|
955
955
|
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,
|
|
956
|
-
|
|
956
|
+
_chunkX2YUAHNRcjs.DatePickerCalendar,
|
|
957
957
|
{
|
|
958
958
|
mode: "single",
|
|
959
959
|
bare: true,
|
|
960
960
|
month: visibleMonth,
|
|
961
961
|
onMonthChange: (month) => {
|
|
962
962
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
963
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
963
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkX2YUAHNRcjs.MAX_MONTH_OFFSET, offset)));
|
|
964
964
|
},
|
|
965
965
|
fromDate: startMonth,
|
|
966
966
|
toDate: endMonth,
|
|
@@ -977,7 +977,7 @@ function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDa
|
|
|
977
977
|
}
|
|
978
978
|
function SlotPickerSkeleton({ monthOffset = 0 }) {
|
|
979
979
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SLOT_ROW_CLASS, children: [
|
|
980
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
980
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, COLUMN_DIVIDER, CALENDAR_W, "md:overflow-y-auto"), children: [
|
|
981
981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: SLOT_PICKER_HEADING }),
|
|
982
982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
983
983
|
DayCalendar,
|
|
@@ -990,15 +990,15 @@ function SlotPickerSkeleton({ monthOffset = 0 }) {
|
|
|
990
990
|
}
|
|
991
991
|
)
|
|
992
992
|
] }),
|
|
993
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
993
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 md:flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) })
|
|
994
994
|
] });
|
|
995
995
|
}
|
|
996
996
|
function TimeChipsSkeleton() {
|
|
997
997
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
998
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "inline-block h-4 w-40 align-middle" }) }),
|
|
999
999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: Array.from({ length: 16 }, (_, i) => (
|
|
1000
1000
|
// h-11 md:h-12 — the loaded chip's own default-size height.
|
|
1001
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1001
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: _chunkX7CEWD6Vcjs.cn.call(void 0, CHIP_CLASS, "h-11 md:h-12") }, i)
|
|
1002
1002
|
)) })
|
|
1003
1003
|
] });
|
|
1004
1004
|
}
|
|
@@ -1033,7 +1033,7 @@ function SlotPicker({
|
|
|
1033
1033
|
const monthPrefix = `${visibleMonth.getFullYear()}-${String(visibleMonth.getMonth() + 1).padStart(2, "0")}`;
|
|
1034
1034
|
const monthHasSlots = [...slotsByDay.keys()].some((key) => key.startsWith(monthPrefix));
|
|
1035
1035
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SLOT_ROW_CLASS, children: [
|
|
1036
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1036
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, COLUMN_DIVIDER, CALENDAR_W, "md:overflow-y-auto"), children: [
|
|
1037
1037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: SLOT_PICKER_HEADING }),
|
|
1038
1038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1039
1039
|
DayCalendar,
|
|
@@ -1046,12 +1046,12 @@ function SlotPicker({
|
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
1048
|
] }),
|
|
1049
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1049
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 md:flex-1"), children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkEX5PJGVAcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkEX5PJGVAcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1051
1051
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1052
1052
|
const isSelected = selectedSlot === ms;
|
|
1053
1053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1054
|
-
|
|
1054
|
+
_chunkF6U2H42Lcjs.Button,
|
|
1055
1055
|
{
|
|
1056
1056
|
variant: isSelected ? void 0 : "outline",
|
|
1057
1057
|
disabled: isSubmitting,
|
|
@@ -1076,8 +1076,8 @@ function SlotPicker({
|
|
|
1076
1076
|
monthLabelFor(monthOffset),
|
|
1077
1077
|
"."
|
|
1078
1078
|
] }),
|
|
1079
|
-
monthOffset <
|
|
1080
|
-
|
|
1079
|
+
monthOffset < _chunkX2YUAHNRcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1080
|
+
_chunkF6U2H42Lcjs.Button,
|
|
1081
1081
|
{
|
|
1082
1082
|
variant: "outline",
|
|
1083
1083
|
onClick: () => onMonthOffsetChange(monthOffset + 1),
|
|
@@ -1098,10 +1098,10 @@ function SlotPicker({
|
|
|
1098
1098
|
|
|
1099
1099
|
|
|
1100
1100
|
function useNextAvailableLabel(ms) {
|
|
1101
|
-
const hydrated =
|
|
1101
|
+
const hydrated = _chunk7UWJMWDHcjs.useIsHydrated.call(void 0, );
|
|
1102
1102
|
return _react.useMemo.call(void 0, () => {
|
|
1103
1103
|
if (!hydrated || ms == null) return null;
|
|
1104
|
-
return
|
|
1104
|
+
return _chunkEX5PJGVAcjs.formatDateWithTimezone.call(void 0, ms, _chunkEX5PJGVAcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1105
1105
|
}, [hydrated, ms]);
|
|
1106
1106
|
}
|
|
1107
1107
|
function DirectoryRow({
|
|
@@ -1112,7 +1112,7 @@ function DirectoryRow({
|
|
|
1112
1112
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1113
1113
|
const subtitle = [
|
|
1114
1114
|
link.description,
|
|
1115
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1115
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkEX5PJGVAcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1116
1116
|
link.kind === "team" ? "Team" : null
|
|
1117
1117
|
].filter(Boolean).join(" \u2022 ");
|
|
1118
1118
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1126,8 +1126,8 @@ function DirectoryRow({
|
|
|
1126
1126
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1127
1127
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1128
1128
|
] }),
|
|
1129
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1130
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1129
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 sm:inline-flex" }),
|
|
1130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1131
1131
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center md:flex", children: [
|
|
1132
1132
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1133
1133
|
/* @__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, () => ( " ")) })
|
|
@@ -1140,16 +1140,16 @@ function DirectoryRow({
|
|
|
1140
1140
|
function MeetingSchedulerDirectoryRowSkeleton() {
|
|
1141
1141
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-20 w-full items-center gap-4 rounded-lg border border-ods-border bg-ods-card px-4 py-3", children: [
|
|
1142
1142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1", children: [
|
|
1143
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1143
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-5 w-1/2" }),
|
|
1144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-4 w-1/3" })
|
|
1145
1145
|
] }),
|
|
1146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1147
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "hidden h-6 w-28 shrink-0 sm:block" }),
|
|
1147
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-10 w-10 shrink-0 rounded-full" }),
|
|
1148
1148
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end gap-1 md:flex", children: [
|
|
1149
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1149
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-4 w-24" }),
|
|
1150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-5 w-32" })
|
|
1151
1151
|
] }),
|
|
1152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "size-12 shrink-0 rounded-md" })
|
|
1153
1153
|
] });
|
|
1154
1154
|
}
|
|
1155
1155
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -1175,7 +1175,7 @@ function MeetingSchedulerDirectory({
|
|
|
1175
1175
|
setError(null);
|
|
1176
1176
|
try {
|
|
1177
1177
|
const qs = includeAll ? "?scope=all" : "";
|
|
1178
|
-
const res = await
|
|
1178
|
+
const res = await _chunkVTYP25OWcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
1179
1179
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
1180
1180
|
const payload = await res.json();
|
|
1181
1181
|
if (active) setData(payload);
|
|
@@ -1196,18 +1196,18 @@ function MeetingSchedulerDirectory({
|
|
|
1196
1196
|
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _31 => _31.purposes]), () => ( []));
|
|
1197
1197
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1198
1198
|
}, [data]);
|
|
1199
|
-
const totalPages =
|
|
1199
|
+
const totalPages = _chunkVTYP25OWcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
1200
1200
|
const pageRows = rows.slice((page - 1) * pageSize, page * pageSize);
|
|
1201
1201
|
const rowsMinHeight = pageSize * 80 + (pageSize - 1) * 16;
|
|
1202
1202
|
if (isLoading && !data) {
|
|
1203
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1203
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1204
1204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-4", style: { minHeight: rowsMinHeight }, children: Array.from({ length: pageSize }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, {}, i)) }),
|
|
1205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Skeleton, { className: "h-10 w-64" }) })
|
|
1206
1206
|
] });
|
|
1207
1207
|
}
|
|
1208
1208
|
if (error) {
|
|
1209
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1210
|
-
|
|
1209
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1210
|
+
_chunk77BLJHKIcjs.EmptyState,
|
|
1211
1211
|
{
|
|
1212
1212
|
type: "generic",
|
|
1213
1213
|
title: "We couldn't load available call times",
|
|
@@ -1217,8 +1217,8 @@ function MeetingSchedulerDirectory({
|
|
|
1217
1217
|
) });
|
|
1218
1218
|
}
|
|
1219
1219
|
if (rows.length === 0) {
|
|
1220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1221
|
-
|
|
1220
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1221
|
+
_chunk77BLJHKIcjs.EmptyState,
|
|
1222
1222
|
{
|
|
1223
1223
|
type: "generic",
|
|
1224
1224
|
title: "No call times are published right now",
|
|
@@ -1227,10 +1227,10 @@ function MeetingSchedulerDirectory({
|
|
|
1227
1227
|
}
|
|
1228
1228
|
) });
|
|
1229
1229
|
}
|
|
1230
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1230
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1231
1231
|
/* @__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)) }),
|
|
1232
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1233
|
-
|
|
1232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.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,
|
|
1233
|
+
_chunkWKX7DYFMcjs.PersistentPaginationWrapper,
|
|
1234
1234
|
{
|
|
1235
1235
|
isLoading,
|
|
1236
1236
|
currentPage: page,
|
|
@@ -1254,7 +1254,7 @@ var BOOKING_ERROR_COPY = {
|
|
|
1254
1254
|
var CONTEXT_PANEL_CLASS = "p-[var(--spacing-system-l)] shrink-0 lg:w-[280px] border-b lg:border-b-0 lg:border-r border-ods-border lg:min-h-0 lg:overflow-y-auto";
|
|
1255
1255
|
var ACTION_PANEL_CLASS = "flex-1 min-w-0 flex flex-col md:min-h-0 lg:p-[var(--spacing-system-l)]";
|
|
1256
1256
|
var PANEL_STEP_CLASS = "p-[var(--spacing-system-l)] md:min-h-0 md:overflow-y-auto lg:p-0";
|
|
1257
|
-
var STEP_PANEL_CLASS =
|
|
1257
|
+
var STEP_PANEL_CLASS = _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-1 flex-col", PANEL_STEP_CLASS);
|
|
1258
1258
|
var MEETING_SCHEDULER_H = "md:h-[34.375rem] lg:h-[23.75rem]";
|
|
1259
1259
|
var MEETING_SCHEDULER_DETAILS_FIRST_H = "h-[50.75rem] md:h-[39.875rem]";
|
|
1260
1260
|
var DEFAULT_SCHEDULER_FLOW = "slot-first";
|
|
@@ -1267,7 +1267,7 @@ var SCHEDULER_FLOW_PRESETS = {
|
|
|
1267
1267
|
footerNote: "Next step: pick a slot that works. Calendar invite lands right after."
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
|
-
var CARD_CLASS =
|
|
1270
|
+
var CARD_CLASS = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
1271
1271
|
"overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
1272
1272
|
"md:flex md:flex-col"
|
|
1273
1273
|
// The height is NOT baked in any more: it is chosen per flow at each render
|
|
@@ -1275,7 +1275,7 @@ var CARD_CLASS = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
|
1275
1275
|
// constants are module scope.
|
|
1276
1276
|
);
|
|
1277
1277
|
var CARD_INNER_CLASS = "flex flex-col md:min-h-0 md:flex-1 lg:h-full lg:flex-row";
|
|
1278
|
-
var CARD_DEGRADED_CLASS =
|
|
1278
|
+
var CARD_DEGRADED_CLASS = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
1279
1279
|
"flex flex-col items-start gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-lf)]",
|
|
1280
1280
|
"md:justify-center md:overflow-y-auto"
|
|
1281
1281
|
);
|
|
@@ -1286,7 +1286,7 @@ function SchedulerDegradedCard({
|
|
|
1286
1286
|
action,
|
|
1287
1287
|
children
|
|
1288
1288
|
}) {
|
|
1289
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1289
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, CARD_DEGRADED_CLASS, SCHEDULER_FLOW_PRESETS[flow].height, className), children: [
|
|
1290
1290
|
message && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: message }),
|
|
1291
1291
|
action,
|
|
1292
1292
|
children
|
|
@@ -1330,7 +1330,7 @@ function HubSpotMeetingScheduler({
|
|
|
1330
1330
|
isSubmitting
|
|
1331
1331
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1332
1332
|
const detailsFirst = flow === "details-first";
|
|
1333
|
-
const hydrated =
|
|
1333
|
+
const hydrated = _chunk7UWJMWDHcjs.useIsHydrated.call(void 0, );
|
|
1334
1334
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1335
1335
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1336
1336
|
if (!hydrated) return null;
|
|
@@ -1363,8 +1363,8 @@ function HubSpotMeetingScheduler({
|
|
|
1363
1363
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1364
1364
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1365
1365
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1366
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1367
|
-
const { toast } =
|
|
1366
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkJH5P72AFcjs.useHumanitySignals.call(void 0, );
|
|
1367
|
+
const { toast } = _chunkJH5P72AFcjs.useToast.call(void 0, );
|
|
1368
1368
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1369
1369
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1370
1370
|
if (machineFor !== meetingId) {
|
|
@@ -1464,19 +1464,19 @@ function HubSpotMeetingScheduler({
|
|
|
1464
1464
|
},
|
|
1465
1465
|
[book, bookingError, detailsFirst, onBooked, refetchAvailability, resetSignals, toast]
|
|
1466
1466
|
);
|
|
1467
|
-
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1467
|
+
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF6U2H42Lcjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1468
1468
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1469
1469
|
const boxed = !formOnly;
|
|
1470
|
-
const cardClass =
|
|
1470
|
+
const cardClass = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
1471
1471
|
CARD_CLASS,
|
|
1472
1472
|
boxed ? preset.height : "md:h-auto",
|
|
1473
1473
|
detailsFirst && "flex flex-col",
|
|
1474
1474
|
formOnly && "bg-ods-bg",
|
|
1475
1475
|
className
|
|
1476
1476
|
);
|
|
1477
|
-
const innerClass =
|
|
1478
|
-
const actionPanelClass =
|
|
1479
|
-
const stepPanelClass =
|
|
1477
|
+
const innerClass = _chunkX7CEWD6Vcjs.cn.call(void 0, CARD_INNER_CLASS, detailsFirst && boxed && "min-h-0 flex-1");
|
|
1478
|
+
const actionPanelClass = _chunkX7CEWD6Vcjs.cn.call(void 0, ACTION_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto");
|
|
1479
|
+
const stepPanelClass = _chunkX7CEWD6Vcjs.cn.call(void 0, STEP_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto");
|
|
1480
1480
|
const degraded = (message) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchedulerDegradedCard, { flow, className, message, action: escapeHatch });
|
|
1481
1481
|
const degradedCard = degraded("We couldn't load available call times. Please try again shortly.");
|
|
1482
1482
|
if (isLoadingAvailability && !availability) {
|
|
@@ -1531,12 +1531,12 @@ function HubSpotMeetingScheduler({
|
|
|
1531
1531
|
// "nothing published" message below at every moment, refetch or
|
|
1532
1532
|
// not — never a calendar skeleton in the form-only layout.
|
|
1533
1533
|
durations.length > 0
|
|
1534
|
-
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1534
|
+
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
1535
1535
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1536
|
-
|
|
1536
|
+
_chunkEX5PJGVAcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1537
1537
|
" \xB7",
|
|
1538
1538
|
" ",
|
|
1539
|
-
|
|
1539
|
+
_chunkEX5PJGVAcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1540
1540
|
] }),
|
|
1541
1541
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1542
1542
|
DetailsForm,
|
|
@@ -1559,11 +1559,11 @@ function HubSpotMeetingScheduler({
|
|
|
1559
1559
|
)
|
|
1560
1560
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1561
1561
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1562
|
-
|
|
1562
|
+
_chunkX2YUAHNRcjs.Alert,
|
|
1563
1563
|
{
|
|
1564
1564
|
variant: "warning",
|
|
1565
1565
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1566
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1566
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX2YUAHNRcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
1569
|
timezone && durationMs != null ? (
|