@flamingo-stack/openframe-frontend-core 0.0.697 → 0.0.698-2527.7765.1
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-77XUG4Z4.js → chunk-2FCONMFQ.js} +10 -10
- package/dist/{chunk-F6U2H42L.cjs → chunk-2JRKNGJ4.cjs} +6 -1
- package/dist/chunk-2JRKNGJ4.cjs.map +1 -0
- package/dist/{chunk-N4G3C4B4.cjs → chunk-4WYMOK5O.cjs} +12 -12
- package/dist/{chunk-N4G3C4B4.cjs.map → chunk-4WYMOK5O.cjs.map} +1 -1
- package/dist/{chunk-NE4H4JJG.cjs → chunk-5EL4RXTH.cjs} +42 -42
- package/dist/{chunk-NE4H4JJG.cjs.map → chunk-5EL4RXTH.cjs.map} +1 -1
- package/dist/{chunk-6CDP6TGH.cjs → chunk-5TAHPP4S.cjs} +126 -27
- package/dist/chunk-5TAHPP4S.cjs.map +1 -0
- package/dist/{chunk-75CG72QX.cjs → chunk-66F4L6EW.cjs} +33 -33
- package/dist/{chunk-75CG72QX.cjs.map → chunk-66F4L6EW.cjs.map} +1 -1
- package/dist/{chunk-M3JA577H.js → chunk-6SN6IVLN.js} +3 -3
- package/dist/{chunk-QYFXRVH3.js → chunk-7XVYYJHT.js} +9 -9
- package/dist/{chunk-VSQVJHOS.js → chunk-AKVO7FP4.js} +2 -2
- package/dist/{chunk-LF4S37VU.js → chunk-AV7Z25I6.js} +5 -5
- package/dist/{chunk-RIDRAKQ5.cjs → chunk-AXH5TM5A.cjs} +15 -15
- package/dist/{chunk-RIDRAKQ5.cjs.map → chunk-AXH5TM5A.cjs.map} +1 -1
- package/dist/{chunk-KLDCI3KF.cjs → chunk-BBKYGX6S.cjs} +3 -3
- package/dist/{chunk-KLDCI3KF.cjs.map → chunk-BBKYGX6S.cjs.map} +1 -1
- package/dist/{chunk-J4MCVIXU.js → chunk-BNJBJTEK.js} +209 -110
- package/dist/chunk-BNJBJTEK.js.map +1 -0
- package/dist/{chunk-PYNHPMDB.js → chunk-BWUJUOI6.js} +5 -5
- package/dist/{chunk-LEGNIETR.cjs → chunk-CDLQ33TK.cjs} +5 -5
- package/dist/{chunk-LEGNIETR.cjs.map → chunk-CDLQ33TK.cjs.map} +1 -1
- package/dist/{chunk-LNOXNCEC.js → chunk-D3G6PGO5.js} +4 -4
- package/dist/{chunk-CVMWOUAX.cjs → chunk-DNSJ55MN.cjs} +48 -48
- package/dist/{chunk-CVMWOUAX.cjs.map → chunk-DNSJ55MN.cjs.map} +1 -1
- package/dist/{chunk-SG53SIJX.js → chunk-ERYNBP3I.js} +6 -6
- package/dist/{chunk-EWQZ4BXD.cjs → chunk-EYVR3SM4.cjs} +7 -7
- package/dist/{chunk-EWQZ4BXD.cjs.map → chunk-EYVR3SM4.cjs.map} +1 -1
- package/dist/{chunk-Z7A7FUWY.js → chunk-F4HUQV3I.js} +3 -3
- package/dist/{chunk-RQ3HFUKV.cjs → chunk-FEXS67IG.cjs} +8 -8
- package/dist/{chunk-RQ3HFUKV.cjs.map → chunk-FEXS67IG.cjs.map} +1 -1
- package/dist/{chunk-JBMFCHNT.js → chunk-HIYZHMNX.js} +2850 -2389
- package/dist/chunk-HIYZHMNX.js.map +1 -0
- package/dist/{chunk-3V7O7J4S.cjs → chunk-HMAXNSBZ.cjs} +28 -28
- package/dist/{chunk-3V7O7J4S.cjs.map → chunk-HMAXNSBZ.cjs.map} +1 -1
- package/dist/{chunk-JU6SBF3C.cjs → chunk-HT7SU5UN.cjs} +7 -7
- package/dist/{chunk-JU6SBF3C.cjs.map → chunk-HT7SU5UN.cjs.map} +1 -1
- package/dist/{chunk-Y2MDXJB4.js → chunk-JZCCRN3K.js} +2 -2
- package/dist/{chunk-WVDBRL2S.js → chunk-KSRNOGR7.js} +7 -7
- package/dist/{chunk-2FK7BZIM.cjs → chunk-LDQPA4PS.cjs} +18 -18
- package/dist/{chunk-2FK7BZIM.cjs.map → chunk-LDQPA4PS.cjs.map} +1 -1
- package/dist/{chunk-4HVWGYHI.js → chunk-LPLXCDNV.js} +6 -1
- package/dist/chunk-LPLXCDNV.js.map +1 -0
- package/dist/{chunk-QD4BVKAU.js → chunk-NIIR776F.js} +6 -6
- package/dist/{chunk-H6SSHFMD.js → chunk-OMP5KPDM.js} +6 -6
- package/dist/{chunk-J4VGVLQI.js → chunk-OPGUDB4U.js} +3 -3
- package/dist/{chunk-VE7HLTVQ.js → chunk-OX4IH3OJ.js} +2 -2
- package/dist/{chunk-GRBZC5N3.js → chunk-PELIFROQ.js} +2 -2
- package/dist/{chunk-T33ICOHD.cjs → chunk-R7BYRYBI.cjs} +29 -29
- package/dist/{chunk-T33ICOHD.cjs.map → chunk-R7BYRYBI.cjs.map} +1 -1
- package/dist/{chunk-7MM6EDNA.cjs → chunk-RNJUMB6Q.cjs} +55 -32
- package/dist/{chunk-7MM6EDNA.cjs.map → chunk-RNJUMB6Q.cjs.map} +1 -1
- package/dist/{chunk-5DBWXJBG.cjs → chunk-SLSHTLNT.cjs} +1462 -1001
- package/dist/chunk-SLSHTLNT.cjs.map +1 -0
- package/dist/{chunk-FZFEIXGB.cjs → chunk-TOS2OL6W.cjs} +98 -98
- package/dist/{chunk-FZFEIXGB.cjs.map → chunk-TOS2OL6W.cjs.map} +1 -1
- package/dist/{chunk-VCR3TW2H.cjs → chunk-TVMY3U3W.cjs} +8 -8
- package/dist/{chunk-VCR3TW2H.cjs.map → chunk-TVMY3U3W.cjs.map} +1 -1
- package/dist/{chunk-WADR7VIA.cjs → chunk-TWOY6ACV.cjs} +70 -70
- package/dist/{chunk-WADR7VIA.cjs.map → chunk-TWOY6ACV.cjs.map} +1 -1
- package/dist/{chunk-YCVDJX7Z.js → chunk-U5CUVGUQ.js} +4 -4
- package/dist/{chunk-3S56I5MX.js → chunk-U7J7G5J7.js} +3 -3
- package/dist/{chunk-XRW5VZKH.cjs → chunk-VCXNLUBP.cjs} +14 -14
- package/dist/{chunk-XRW5VZKH.cjs.map → chunk-VCXNLUBP.cjs.map} +1 -1
- package/dist/{chunk-5P2J7E5E.cjs → chunk-WC76QXUX.cjs} +3 -3
- package/dist/{chunk-5P2J7E5E.cjs.map → chunk-WC76QXUX.cjs.map} +1 -1
- package/dist/{chunk-OB3ZJ7GQ.js → chunk-XGB5EEFZ.js} +3 -3
- package/dist/{chunk-MFU3ALKM.cjs → chunk-YNAWEA3G.cjs} +232 -232
- package/dist/{chunk-MFU3ALKM.cjs.map → chunk-YNAWEA3G.cjs.map} +1 -1
- package/dist/{chunk-LZXZ3C6M.js → chunk-ZZ6VFA36.js} +32 -9
- package/dist/chunk-ZZ6VFA36.js.map +1 -0
- package/dist/components/announcement-bar.d.ts +1 -1
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/case-studies/index.js +7 -7
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/contact/index.js +7 -7
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/docs/index.js +10 -10
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/embeds/index.js +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/faq/index.js +7 -7
- package/dist/components/features/conversation-card.d.ts +32 -0
- package/dist/components/features/conversation-card.d.ts.map +1 -0
- package/dist/components/features/index.cjs +9 -7
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +8 -6
- package/dist/components/help-center-pages/index.cjs +101 -101
- package/dist/components/help-center-pages/index.js +20 -20
- package/dist/components/index.cjs +127 -109
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +39 -21
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +59 -59
- package/dist/components/meeting-scheduler/index.js +8 -8
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.js +9 -9
- package/dist/components/platform/ToolBadge.d.ts +17 -9
- package/dist/components/platform/ToolBadge.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +12 -12
- package/dist/components/tickets/index.js +11 -11
- package/dist/components/ui/app-window-frame.d.ts +20 -0
- package/dist/components/ui/app-window-frame.d.ts.map +1 -0
- package/dist/components/ui/button/button-styles.d.ts +1 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/feature-card.d.ts +5 -0
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts +12 -1
- package/dist/components/ui/feature-list.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/incident-feed.d.ts +49 -0
- package/dist/components/ui/incident-feed.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +21 -7
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +20 -6
- package/dist/components/ui/page-actions.d.ts +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/phone-frame.d.ts +19 -0
- package/dist/components/ui/phone-frame.d.ts.map +1 -0
- package/dist/components/ui/snap-carousel.d.ts +27 -0
- package/dist/components/ui/snap-carousel.d.ts.map +1 -0
- package/dist/components/ui/sticky-action-bar.d.ts +29 -0
- package/dist/components/ui/sticky-action-bar.d.ts.map +1 -0
- package/dist/components/ui/tab-navigation.d.ts +14 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/hooks/index.cjs +12 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +11 -1
- package/dist/hooks/ui/index.d.ts +2 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-in-view.d.ts +20 -0
- package/dist/hooks/ui/use-in-view.d.ts.map +1 -0
- package/dist/hooks/ui/use-prefers-reduced-motion.d.ts +13 -0
- package/dist/hooks/ui/use-prefers-reduced-motion.d.ts.map +1 -0
- package/dist/hooks/use-scenario-player.d.ts +45 -0
- package/dist/hooks/use-scenario-player.d.ts.map +1 -0
- package/dist/index.cjs +38 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -10
- package/dist/index.js.map +1 -1
- package/dist/types/announcement.cjs.map +1 -1
- package/dist/types/announcement.d.ts +21 -0
- package/dist/types/announcement.d.ts.map +1 -1
- package/dist/types/announcement.js.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +7 -1
- package/src/components/features/conversation-card.tsx +93 -0
- package/src/components/features/index.ts +3 -0
- package/src/components/platform/ToolBadge.tsx +47 -13
- package/src/components/ui/__tests__/snap-carousel.test.tsx +116 -0
- package/src/components/ui/app-window-frame.tsx +41 -0
- package/src/components/ui/button/button-styles.ts +5 -0
- package/src/components/ui/button/button.tsx +1 -0
- package/src/components/ui/feature-card.tsx +16 -1
- package/src/components/ui/feature-list.tsx +57 -13
- package/src/components/ui/incident-feed.tsx +143 -0
- package/src/components/ui/index.ts +8 -0
- package/src/components/ui/page-actions.tsx +1 -1
- package/src/components/ui/phone-frame.tsx +38 -0
- package/src/components/ui/snap-carousel.tsx +186 -0
- package/src/components/ui/sticky-action-bar.tsx +81 -0
- package/src/components/ui/tab-navigation.tsx +63 -13
- package/src/hooks/__tests__/use-scenario-player.test.tsx +144 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/ui/index.ts +2 -0
- package/src/hooks/ui/use-in-view.ts +63 -0
- package/src/hooks/ui/use-prefers-reduced-motion.ts +22 -0
- package/src/hooks/use-scenario-player.ts +102 -0
- package/src/stories/DemoStage.stories.tsx +241 -0
- package/src/types/announcement.ts +21 -0
- package/dist/chunk-4HVWGYHI.js.map +0 -1
- package/dist/chunk-5DBWXJBG.cjs.map +0 -1
- package/dist/chunk-6CDP6TGH.cjs.map +0 -1
- package/dist/chunk-F6U2H42L.cjs.map +0 -1
- package/dist/chunk-J4MCVIXU.js.map +0 -1
- package/dist/chunk-JBMFCHNT.js.map +0 -1
- package/dist/chunk-LZXZ3C6M.js.map +0 -1
- /package/dist/{chunk-77XUG4Z4.js.map → chunk-2FCONMFQ.js.map} +0 -0
- /package/dist/{chunk-M3JA577H.js.map → chunk-6SN6IVLN.js.map} +0 -0
- /package/dist/{chunk-QYFXRVH3.js.map → chunk-7XVYYJHT.js.map} +0 -0
- /package/dist/{chunk-VSQVJHOS.js.map → chunk-AKVO7FP4.js.map} +0 -0
- /package/dist/{chunk-LF4S37VU.js.map → chunk-AV7Z25I6.js.map} +0 -0
- /package/dist/{chunk-PYNHPMDB.js.map → chunk-BWUJUOI6.js.map} +0 -0
- /package/dist/{chunk-LNOXNCEC.js.map → chunk-D3G6PGO5.js.map} +0 -0
- /package/dist/{chunk-SG53SIJX.js.map → chunk-ERYNBP3I.js.map} +0 -0
- /package/dist/{chunk-Z7A7FUWY.js.map → chunk-F4HUQV3I.js.map} +0 -0
- /package/dist/{chunk-Y2MDXJB4.js.map → chunk-JZCCRN3K.js.map} +0 -0
- /package/dist/{chunk-WVDBRL2S.js.map → chunk-KSRNOGR7.js.map} +0 -0
- /package/dist/{chunk-QD4BVKAU.js.map → chunk-NIIR776F.js.map} +0 -0
- /package/dist/{chunk-H6SSHFMD.js.map → chunk-OMP5KPDM.js.map} +0 -0
- /package/dist/{chunk-J4VGVLQI.js.map → chunk-OPGUDB4U.js.map} +0 -0
- /package/dist/{chunk-VE7HLTVQ.js.map → chunk-OX4IH3OJ.js.map} +0 -0
- /package/dist/{chunk-GRBZC5N3.js.map → chunk-PELIFROQ.js.map} +0 -0
- /package/dist/{chunk-YCVDJX7Z.js.map → chunk-U5CUVGUQ.js.map} +0 -0
- /package/dist/{chunk-3S56I5MX.js.map → chunk-U7J7G5J7.js.map} +0 -0
- /package/dist/{chunk-OB3ZJ7GQ.js.map → chunk-XGB5EEFZ.js.map} +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWC76QXUXcjs = require('../../chunk-WC76QXUX.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFEXS67IGcjs = require('../../chunk-FEXS67IG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ var _chunkRQ3HFUKVcjs = require('../../chunk-RQ3HFUKV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSLSHTLNTcjs = require('../../chunk-SLSHTLNT.cjs');
|
|
28
28
|
require('../../chunk-GQWM3ECA.cjs');
|
|
29
29
|
require('../../chunk-TON3YCCW.cjs');
|
|
30
30
|
|
|
@@ -33,9 +33,9 @@ require('../../chunk-TON3YCCW.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk5TAHPP4Scjs = require('../../chunk-5TAHPP4S.cjs');
|
|
37
37
|
require('../../chunk-LCMT2GZK.cjs');
|
|
38
|
-
require('../../chunk-
|
|
38
|
+
require('../../chunk-HT7SU5UN.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ var _chunkNPPI32SOcjs = require('../../chunk-NPPI32SO.cjs');
|
|
|
45
45
|
var _chunkPTFE5WKPcjs = require('../../chunk-PTFE5WKP.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkYNAWEA3Gcjs = require('../../chunk-YNAWEA3G.cjs');
|
|
49
49
|
require('../../chunk-DMUUWHII.cjs');
|
|
50
50
|
require('../../chunk-SADRZ4YI.cjs');
|
|
51
51
|
require('../../chunk-NNDFVMFS.cjs');
|
|
@@ -59,7 +59,7 @@ require('../../chunk-XQFFGR6U.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkTVMY3U3Wcjs = require('../../chunk-TVMY3U3W.cjs');
|
|
63
63
|
require('../../chunk-WLSFBRT5.cjs');
|
|
64
64
|
require('../../chunk-MNFV4YLK.cjs');
|
|
65
65
|
require('../../chunk-W7RN5TGT.cjs');
|
|
@@ -74,7 +74,7 @@ var _chunkKWX65373cjs = require('../../chunk-KWX65373.cjs');
|
|
|
74
74
|
require('../../chunk-WZW7C7TF.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunk2JRKNGJ4cjs = require('../../chunk-2JRKNGJ4.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
var _chunkFCUTPPX5cjs = require('../../chunk-FCUTPPX5.cjs');
|
|
@@ -359,7 +359,7 @@ function useMeetingBooking(options) {
|
|
|
359
359
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
360
360
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
361
361
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
362
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
362
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkSLSHTLNTcjs.MAX_MONTH_OFFSET, offset)));
|
|
363
363
|
}, []);
|
|
364
364
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
365
365
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -489,7 +489,7 @@ var FIELD_CONTROLS = {
|
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunkSLSHTLNTcjs.Textarea,
|
|
493
493
|
{
|
|
494
494
|
id,
|
|
495
495
|
required: field.required,
|
|
@@ -545,18 +545,18 @@ var FIELD_CONTROLS = {
|
|
|
545
545
|
{
|
|
546
546
|
control,
|
|
547
547
|
name: registerName,
|
|
548
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
548
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSLSHTLNTcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
|
|
550
|
+
_chunkSLSHTLNTcjs.SelectTrigger,
|
|
551
551
|
{
|
|
552
552
|
id,
|
|
553
553
|
"aria-required": field.required || void 0,
|
|
554
554
|
"aria-invalid": Boolean(error),
|
|
555
555
|
invalid: Boolean(error),
|
|
556
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
556
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
557
557
|
}
|
|
558
558
|
),
|
|
559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
560
560
|
] })
|
|
561
561
|
}
|
|
562
562
|
),
|
|
@@ -566,14 +566,14 @@ var FIELD_CONTROLS = {
|
|
|
566
566
|
control,
|
|
567
567
|
name: registerName,
|
|
568
568
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
569
|
-
|
|
569
|
+
_chunkSLSHTLNTcjs.RadioGroup,
|
|
570
570
|
{
|
|
571
571
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
572
572
|
onValueChange: rhf.onChange,
|
|
573
573
|
"aria-required": field.required || void 0,
|
|
574
574
|
"aria-invalid": Boolean(error),
|
|
575
575
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
576
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
577
577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWX65373cjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
578
578
|
] }, opt))
|
|
579
579
|
}
|
|
@@ -712,7 +712,7 @@ function BookingForm({
|
|
|
712
712
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
713
713
|
[supportedFields]
|
|
714
714
|
);
|
|
715
|
-
const formRescue =
|
|
715
|
+
const formRescue = _chunk5TAHPP4Scjs.useRescuedForm.call(void 0,
|
|
716
716
|
{ watch, getValues, setValue },
|
|
717
717
|
{
|
|
718
718
|
rescue,
|
|
@@ -721,7 +721,7 @@ function BookingForm({
|
|
|
721
721
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
722
722
|
}
|
|
723
723
|
);
|
|
724
|
-
const { toast } =
|
|
724
|
+
const { toast } = _chunk5TAHPP4Scjs.useToast.call(void 0, );
|
|
725
725
|
const onInvalid = () => {
|
|
726
726
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
727
727
|
toast({
|
|
@@ -800,7 +800,7 @@ function BookingForm({
|
|
|
800
800
|
const { rows: placedRows, unplacedBuiltIns, named: placedNames } = normalizeFieldRows(_nullishCoalesce(fieldRows, () => ( [])), slotResolves);
|
|
801
801
|
const unplacedFields = fieldRows ? supportedFields.filter((f) => !placedNames.has(f.name)) : [];
|
|
802
802
|
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
803
|
-
|
|
803
|
+
_chunk2JRKNGJ4cjs.Button,
|
|
804
804
|
{
|
|
805
805
|
type: "submit",
|
|
806
806
|
loading: isSubmitting,
|
|
@@ -809,8 +809,8 @@ function BookingForm({
|
|
|
809
809
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
813
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
812
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkSLSHTLNTcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
813
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.HoneypotField, { ...honeypotInputProps }),
|
|
814
814
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
815
815
|
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("|"))),
|
|
816
816
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -823,7 +823,7 @@ function BookingForm({
|
|
|
823
823
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
824
824
|
] }),
|
|
825
825
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
-
|
|
826
|
+
_chunkSLSHTLNTcjs.CheckboxBlock,
|
|
827
827
|
{
|
|
828
828
|
id: "ms-host-consent",
|
|
829
829
|
checked: consented,
|
|
@@ -858,7 +858,7 @@ function BookingForm({
|
|
|
858
858
|
// same block the waitlist form uses): box + label in one
|
|
859
859
|
// bordered row.
|
|
860
860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
861
|
-
|
|
861
|
+
_chunkSLSHTLNTcjs.CheckboxBlock,
|
|
862
862
|
{
|
|
863
863
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
864
864
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -924,7 +924,7 @@ function skeletonRows(fieldRows) {
|
|
|
924
924
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
925
925
|
|
|
926
926
|
function Confirmation({ confirmation, timezone }) {
|
|
927
|
-
const when =
|
|
927
|
+
const when = _chunkTVMY3U3Wcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
928
928
|
viewerLocale: true
|
|
929
929
|
});
|
|
930
930
|
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: [
|
|
@@ -934,7 +934,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
934
934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
935
935
|
when,
|
|
936
936
|
" \xB7 ",
|
|
937
|
-
|
|
937
|
+
_chunkTVMY3U3Wcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
938
938
|
] }),
|
|
939
939
|
/* @__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." })
|
|
940
940
|
] });
|
|
@@ -955,7 +955,7 @@ function ContextPanelSkeleton({
|
|
|
955
955
|
backLabel = "Back"
|
|
956
956
|
}) {
|
|
957
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
958
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
959
959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
961
961
|
/* @__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: [
|
|
@@ -991,13 +991,13 @@ function SchedulerContextPanel({
|
|
|
991
991
|
className
|
|
992
992
|
}) {
|
|
993
993
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
994
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
994
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
995
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
996
996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
997
997
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
998
998
|
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: [
|
|
999
999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1000
|
-
|
|
1000
|
+
_chunkTVMY3U3Wcjs.SquareAvatar,
|
|
1001
1001
|
{
|
|
1002
1002
|
variant: "round",
|
|
1003
1003
|
size: "sm",
|
|
@@ -1012,7 +1012,7 @@ function SchedulerContextPanel({
|
|
|
1012
1012
|
] })
|
|
1013
1013
|
] }, host.name)) }),
|
|
1014
1014
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVMY3U3Wcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1016
1016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1017
1017
|
hosts.length,
|
|
1018
1018
|
" hosts on this calendar"
|
|
@@ -1022,7 +1022,7 @@ function SchedulerContextPanel({
|
|
|
1022
1022
|
// Post-selection, or a link that offers one length: a static line,
|
|
1023
1023
|
// which is what sits beside the host on the header-strip layouts.
|
|
1024
1024
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1025
|
-
|
|
1025
|
+
_chunkTVMY3U3Wcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1026
1026
|
" call"
|
|
1027
1027
|
] })
|
|
1028
1028
|
) : null
|
|
@@ -1032,13 +1032,13 @@ function SchedulerContextPanel({
|
|
|
1032
1032
|
!locked && durationsMs.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
1033
1033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
1034
1034
|
/* @__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,
|
|
1035
|
-
|
|
1035
|
+
_chunk2JRKNGJ4cjs.Button,
|
|
1036
1036
|
{
|
|
1037
1037
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
1038
1038
|
size: "small-legacy",
|
|
1039
1039
|
disabled,
|
|
1040
1040
|
onClick: () => onSelectDuration(ms),
|
|
1041
|
-
children:
|
|
1041
|
+
children: _chunkTVMY3U3Wcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1042
1042
|
},
|
|
1043
1043
|
ms
|
|
1044
1044
|
)) })
|
|
@@ -1053,7 +1053,7 @@ function SchedulerContextPanel({
|
|
|
1053
1053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
1054
1054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1055
1055
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1056
|
+
_chunkSLSHTLNTcjs.TimezoneSelect,
|
|
1057
1057
|
{
|
|
1058
1058
|
value: timezone,
|
|
1059
1059
|
disabled,
|
|
@@ -1085,7 +1085,7 @@ function dateFromDayKey(key) {
|
|
|
1085
1085
|
return new Date(y, m - 1, d, 12);
|
|
1086
1086
|
}
|
|
1087
1087
|
function timeLabelInZone(ms, timeZone) {
|
|
1088
|
-
return
|
|
1088
|
+
return _chunkTVMY3U3Wcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1089
1089
|
}
|
|
1090
1090
|
var CALENDAR_W = "md:w-[19rem] md:shrink-0 lg:w-[16rem]";
|
|
1091
1091
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1129,25 +1129,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border md:border-b-0 md:border-r lg:bo
|
|
|
1129
1129
|
function monthLabelFor(offset) {
|
|
1130
1130
|
const now = /* @__PURE__ */ new Date();
|
|
1131
1131
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1132
|
-
return
|
|
1132
|
+
return _chunkTVMY3U3Wcjs.formatDateWithTimezone.call(void 0, month, _chunkTVMY3U3Wcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1133
1133
|
}
|
|
1134
1134
|
var DISABLE_EVERY_DAY = () => true;
|
|
1135
1135
|
var NOOP = () => void 0;
|
|
1136
1136
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1137
1137
|
const now = /* @__PURE__ */ new Date();
|
|
1138
1138
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1139
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1139
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkSLSHTLNTcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1140
1140
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1141
1141
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1142
1142
|
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,
|
|
1143
|
-
|
|
1143
|
+
_chunkSLSHTLNTcjs.DatePickerCalendar,
|
|
1144
1144
|
{
|
|
1145
1145
|
mode: "single",
|
|
1146
1146
|
bare: true,
|
|
1147
1147
|
month: visibleMonth,
|
|
1148
1148
|
onMonthChange: (month) => {
|
|
1149
1149
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1150
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1150
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkSLSHTLNTcjs.MAX_MONTH_OFFSET, offset)));
|
|
1151
1151
|
},
|
|
1152
1152
|
fromDate: startMonth,
|
|
1153
1153
|
toDate: endMonth,
|
|
@@ -1234,11 +1234,11 @@ function SlotPicker({
|
|
|
1234
1234
|
)
|
|
1235
1235
|
] }),
|
|
1236
1236
|
/* @__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: [
|
|
1237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1237
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkTVMY3U3Wcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkTVMY3U3Wcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1238
1238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1239
1239
|
const isSelected = selectedSlot === ms;
|
|
1240
1240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1241
|
-
|
|
1241
|
+
_chunk2JRKNGJ4cjs.Button,
|
|
1242
1242
|
{
|
|
1243
1243
|
variant: isSelected ? void 0 : "outline",
|
|
1244
1244
|
disabled: isSubmitting,
|
|
@@ -1263,8 +1263,8 @@ function SlotPicker({
|
|
|
1263
1263
|
monthLabelFor(monthOffset),
|
|
1264
1264
|
"."
|
|
1265
1265
|
] }),
|
|
1266
|
-
monthOffset <
|
|
1267
|
-
|
|
1266
|
+
monthOffset < _chunkSLSHTLNTcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1267
|
+
_chunk2JRKNGJ4cjs.Button,
|
|
1268
1268
|
{
|
|
1269
1269
|
variant: "outline",
|
|
1270
1270
|
onClick: () => onMonthOffsetChange(monthOffset + 1),
|
|
@@ -1285,10 +1285,10 @@ function SlotPicker({
|
|
|
1285
1285
|
|
|
1286
1286
|
|
|
1287
1287
|
function useNextAvailableLabel(ms) {
|
|
1288
|
-
const hydrated =
|
|
1288
|
+
const hydrated = _chunkYNAWEA3Gcjs.useIsHydrated.call(void 0, );
|
|
1289
1289
|
return _react.useMemo.call(void 0, () => {
|
|
1290
1290
|
if (!hydrated || ms == null) return null;
|
|
1291
|
-
return
|
|
1291
|
+
return _chunkTVMY3U3Wcjs.formatDateWithTimezone.call(void 0, ms, _chunkTVMY3U3Wcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1292
1292
|
}, [hydrated, ms]);
|
|
1293
1293
|
}
|
|
1294
1294
|
function DirectoryRow({
|
|
@@ -1299,7 +1299,7 @@ function DirectoryRow({
|
|
|
1299
1299
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1300
1300
|
const subtitle = [
|
|
1301
1301
|
link.description,
|
|
1302
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1302
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkTVMY3U3Wcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1303
1303
|
link.kind === "team" ? "Team" : null
|
|
1304
1304
|
].filter(Boolean).join(" \u2022 ");
|
|
1305
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1313,8 +1313,8 @@ function DirectoryRow({
|
|
|
1313
1313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1314
1314
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1315
1315
|
] }),
|
|
1316
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1316
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVMY3U3Wcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 sm:inline-flex" }),
|
|
1317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVMY3U3Wcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1318
1318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center md:flex", children: [
|
|
1319
1319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1320
1320
|
/* @__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, () => ( " ")) })
|
|
@@ -1394,7 +1394,7 @@ function MeetingSchedulerDirectory({
|
|
|
1394
1394
|
}
|
|
1395
1395
|
if (error) {
|
|
1396
1396
|
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,
|
|
1397
|
-
|
|
1397
|
+
_chunkFEXS67IGcjs.EmptyState,
|
|
1398
1398
|
{
|
|
1399
1399
|
type: "generic",
|
|
1400
1400
|
title: "We couldn't load available call times",
|
|
@@ -1405,7 +1405,7 @@ function MeetingSchedulerDirectory({
|
|
|
1405
1405
|
}
|
|
1406
1406
|
if (rows.length === 0) {
|
|
1407
1407
|
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,
|
|
1408
|
-
|
|
1408
|
+
_chunkFEXS67IGcjs.EmptyState,
|
|
1409
1409
|
{
|
|
1410
1410
|
type: "generic",
|
|
1411
1411
|
title: "No call times are published right now",
|
|
@@ -1417,7 +1417,7 @@ function MeetingSchedulerDirectory({
|
|
|
1417
1417
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1418
1418
|
/* @__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)) }),
|
|
1419
1419
|
/* @__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,
|
|
1420
|
-
|
|
1420
|
+
_chunkWC76QXUXcjs.PersistentPaginationWrapper,
|
|
1421
1421
|
{
|
|
1422
1422
|
isLoading,
|
|
1423
1423
|
currentPage: page,
|
|
@@ -1518,7 +1518,7 @@ function HubSpotMeetingScheduler({
|
|
|
1518
1518
|
isSubmitting
|
|
1519
1519
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1520
1520
|
const detailsFirst = flow === "details-first";
|
|
1521
|
-
const hydrated =
|
|
1521
|
+
const hydrated = _chunkYNAWEA3Gcjs.useIsHydrated.call(void 0, );
|
|
1522
1522
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1523
1523
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1524
1524
|
if (!hydrated) return null;
|
|
@@ -1551,8 +1551,8 @@ function HubSpotMeetingScheduler({
|
|
|
1551
1551
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1552
1552
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1553
1553
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1554
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1555
|
-
const { toast } =
|
|
1554
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk5TAHPP4Scjs.useHumanitySignals.call(void 0, );
|
|
1555
|
+
const { toast } = _chunk5TAHPP4Scjs.useToast.call(void 0, );
|
|
1556
1556
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1557
1557
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1558
1558
|
if (machineFor !== meetingId) {
|
|
@@ -1626,7 +1626,7 @@ function HubSpotMeetingScheduler({
|
|
|
1626
1626
|
return;
|
|
1627
1627
|
}
|
|
1628
1628
|
if (result.ok && result.confirmation) {
|
|
1629
|
-
|
|
1629
|
+
_chunk5TAHPP4Scjs.completeFormRescue.call(void 0, rescue, payload[_chunk5TAHPP4Scjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1630
1630
|
setConfirmation(result.confirmation);
|
|
1631
1631
|
setStep("confirmed");
|
|
1632
1632
|
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
@@ -1653,7 +1653,7 @@ function HubSpotMeetingScheduler({
|
|
|
1653
1653
|
},
|
|
1654
1654
|
[book, bookingError, detailsFirst, onBooked, refetchAvailability, rescue, resetSignals, toast]
|
|
1655
1655
|
);
|
|
1656
|
-
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1656
|
+
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JRKNGJ4cjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1657
1657
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1658
1658
|
const boxed = !formOnly;
|
|
1659
1659
|
const cardClass = _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
@@ -1722,10 +1722,10 @@ function HubSpotMeetingScheduler({
|
|
|
1722
1722
|
durations.length > 0
|
|
1723
1723
|
) : 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: [
|
|
1724
1724
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1725
|
-
|
|
1725
|
+
_chunkTVMY3U3Wcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1726
1726
|
" \xB7",
|
|
1727
1727
|
" ",
|
|
1728
|
-
|
|
1728
|
+
_chunkTVMY3U3Wcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1729
1729
|
] }),
|
|
1730
1730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
1731
|
DetailsForm,
|
|
@@ -1749,11 +1749,11 @@ function HubSpotMeetingScheduler({
|
|
|
1749
1749
|
)
|
|
1750
1750
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1751
1751
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1752
|
-
|
|
1752
|
+
_chunkSLSHTLNTcjs.Alert,
|
|
1753
1753
|
{
|
|
1754
1754
|
variant: "warning",
|
|
1755
1755
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1756
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1756
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSLSHTLNTcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1757
1757
|
}
|
|
1758
1758
|
),
|
|
1759
1759
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-AKVO7FP4.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-6SN6IVLN.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert,
|
|
11
11
|
AlertDescription,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
SelectValue,
|
|
25
25
|
Textarea,
|
|
26
26
|
TimezoneSelect
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-HIYZHMNX.js";
|
|
28
28
|
import "../../chunk-L2SLFCXP.js";
|
|
29
29
|
import "../../chunk-BJXDHKUX.js";
|
|
30
30
|
import {
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-BNJBJTEK.js";
|
|
37
37
|
import "../../chunk-JD5TKRCU.js";
|
|
38
|
-
import "../../chunk-
|
|
38
|
+
import "../../chunk-PELIFROQ.js";
|
|
39
39
|
import {
|
|
40
40
|
contentFetch,
|
|
41
41
|
pageCount
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "../../chunk-HLCJPRXP.js";
|
|
46
46
|
import {
|
|
47
47
|
useIsHydrated
|
|
48
|
-
} from "../../chunk-
|
|
48
|
+
} from "../../chunk-XGB5EEFZ.js";
|
|
49
49
|
import "../../chunk-AVRVYWCS.js";
|
|
50
50
|
import "../../chunk-XXMHLZ3Y.js";
|
|
51
51
|
import "../../chunk-IEP3QHO7.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
formatDateWithTimezone,
|
|
60
60
|
formatDurationCompact,
|
|
61
61
|
formatTimeWithTimezone
|
|
62
|
-
} from "../../chunk-
|
|
62
|
+
} from "../../chunk-JZCCRN3K.js";
|
|
63
63
|
import "../../chunk-MDKCTSDS.js";
|
|
64
64
|
import "../../chunk-MOKB32FL.js";
|
|
65
65
|
import "../../chunk-GIUO6PIU.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
import "../../chunk-6U3IUD57.js";
|
|
75
75
|
import {
|
|
76
76
|
Button
|
|
77
|
-
} from "../../chunk-
|
|
77
|
+
} from "../../chunk-LPLXCDNV.js";
|
|
78
78
|
import {
|
|
79
79
|
next_link_default
|
|
80
80
|
} from "../../chunk-BTROSBHF.js";
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkDNSJ55MNcjs = require('../../chunk-DNSJ55MN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
require('../../chunk-
|
|
28
|
+
var _chunkBBKYGX6Scjs = require('../../chunk-BBKYGX6S.cjs');
|
|
29
|
+
require('../../chunk-CDLQ33TK.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -41,21 +41,21 @@ require('../../chunk-LEGNIETR.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkSLSHTLNTcjs = require('../../chunk-SLSHTLNT.cjs');
|
|
45
45
|
require('../../chunk-GQWM3ECA.cjs');
|
|
46
46
|
require('../../chunk-TON3YCCW.cjs');
|
|
47
|
-
require('../../chunk-
|
|
47
|
+
require('../../chunk-5TAHPP4S.cjs');
|
|
48
48
|
require('../../chunk-LCMT2GZK.cjs');
|
|
49
|
-
require('../../chunk-
|
|
49
|
+
require('../../chunk-HT7SU5UN.cjs');
|
|
50
50
|
require('../../chunk-NPPI32SO.cjs');
|
|
51
51
|
require('../../chunk-PTFE5WKP.cjs');
|
|
52
|
-
require('../../chunk-
|
|
52
|
+
require('../../chunk-YNAWEA3G.cjs');
|
|
53
53
|
require('../../chunk-DMUUWHII.cjs');
|
|
54
54
|
require('../../chunk-SADRZ4YI.cjs');
|
|
55
55
|
require('../../chunk-NNDFVMFS.cjs');
|
|
56
56
|
require('../../chunk-DWCV7IDU.cjs');
|
|
57
57
|
require('../../chunk-XQFFGR6U.cjs');
|
|
58
|
-
require('../../chunk-
|
|
58
|
+
require('../../chunk-TVMY3U3W.cjs');
|
|
59
59
|
require('../../chunk-WLSFBRT5.cjs');
|
|
60
60
|
require('../../chunk-MNFV4YLK.cjs');
|
|
61
61
|
require('../../chunk-W7RN5TGT.cjs');
|
|
@@ -63,7 +63,7 @@ require('../../chunk-QNMEMWUM.cjs');
|
|
|
63
63
|
require('../../chunk-U2YLMFJK.cjs');
|
|
64
64
|
require('../../chunk-KWX65373.cjs');
|
|
65
65
|
require('../../chunk-WZW7C7TF.cjs');
|
|
66
|
-
require('../../chunk-
|
|
66
|
+
require('../../chunk-2JRKNGJ4.cjs');
|
|
67
67
|
require('../../chunk-FCUTPPX5.cjs');
|
|
68
68
|
require('../../chunk-X7CEWD6V.cjs');
|
|
69
69
|
require('../../chunk-I5JVSFNV.cjs');
|
|
@@ -104,5 +104,5 @@ require('../../chunk-K4RM5MEW.cjs');
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
exports.AppHeader =
|
|
107
|
+
exports.AppHeader = _chunkDNSJ55MNcjs.AppHeader; exports.AppLayout = _chunkDNSJ55MNcjs.AppLayout; exports.AppLayoutDrawer = _chunkSLSHTLNTcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkSLSHTLNTcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkSLSHTLNTcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkSLSHTLNTcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkSLSHTLNTcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkSLSHTLNTcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkSLSHTLNTcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkSLSHTLNTcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkSLSHTLNTcjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunkDNSJ55MNcjs.ClientOnlyHeader; exports.Header = _chunkDNSJ55MNcjs.Header; exports.HeaderButton = _chunkSLSHTLNTcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkDNSJ55MNcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkDNSJ55MNcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkDNSJ55MNcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunkDNSJ55MNcjs.HeaderSkeleton; exports.MOBILE_NAV_PANEL_ID = _chunkDNSJ55MNcjs.MOBILE_NAV_PANEL_ID; exports.MingoAiButton = _chunkDNSJ55MNcjs.MingoAiButton; exports.MobileBurgerMenu = _chunkDNSJ55MNcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunkDNSJ55MNcjs.MobileNavPanel; exports.MobileNavigationDropdown = _chunkBBKYGX6Scjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkBBKYGX6Scjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunkDNSJ55MNcjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationItemBadge = _chunkDNSJ55MNcjs.NavigationItemBadge; exports.NavigationSidebar = _chunkDNSJ55MNcjs.NavigationSidebar; exports.SlidingSidebar = _chunkDNSJ55MNcjs.SlidingSidebar; exports.StickySectionNav = _chunkBBKYGX6Scjs.StickySectionNav; exports.TicketAlertsButton = _chunkDNSJ55MNcjs.TicketAlertsButton; exports.TopNavigation = _chunkDNSJ55MNcjs.TopNavigation; exports.UnreadCountBadge = _chunkSLSHTLNTcjs.UnreadCountBadge; exports.UnreadDot = _chunkSLSHTLNTcjs.UnreadDot; exports.useAppLayoutDrawerContainer = _chunkSLSHTLNTcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkBBKYGX6Scjs.useSectionNavigation;
|
|
108
108
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
SlidingSidebar,
|
|
20
20
|
TicketAlertsButton,
|
|
21
21
|
TopNavigation
|
|
22
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-KSRNOGR7.js";
|
|
23
23
|
import {
|
|
24
24
|
MobileNavigationDropdown,
|
|
25
25
|
MultiLevelNavigation,
|
|
26
26
|
StickySectionNav,
|
|
27
27
|
useSectionNavigation
|
|
28
|
-
} from "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
28
|
+
} from "../../chunk-OX4IH3OJ.js";
|
|
29
|
+
import "../../chunk-F4HUQV3I.js";
|
|
30
30
|
import {
|
|
31
31
|
AppLayoutDrawerBody,
|
|
32
32
|
AppLayoutDrawerClose,
|
|
@@ -41,21 +41,21 @@ import {
|
|
|
41
41
|
UnreadCountBadge,
|
|
42
42
|
UnreadDot,
|
|
43
43
|
useAppLayoutDrawerContainer
|
|
44
|
-
} from "../../chunk-
|
|
44
|
+
} from "../../chunk-HIYZHMNX.js";
|
|
45
45
|
import "../../chunk-L2SLFCXP.js";
|
|
46
46
|
import "../../chunk-BJXDHKUX.js";
|
|
47
|
-
import "../../chunk-
|
|
47
|
+
import "../../chunk-BNJBJTEK.js";
|
|
48
48
|
import "../../chunk-JD5TKRCU.js";
|
|
49
|
-
import "../../chunk-
|
|
49
|
+
import "../../chunk-PELIFROQ.js";
|
|
50
50
|
import "../../chunk-O6BRIUEE.js";
|
|
51
51
|
import "../../chunk-HLCJPRXP.js";
|
|
52
|
-
import "../../chunk-
|
|
52
|
+
import "../../chunk-XGB5EEFZ.js";
|
|
53
53
|
import "../../chunk-AVRVYWCS.js";
|
|
54
54
|
import "../../chunk-XXMHLZ3Y.js";
|
|
55
55
|
import "../../chunk-IEP3QHO7.js";
|
|
56
56
|
import "../../chunk-6PWDHLNW.js";
|
|
57
57
|
import "../../chunk-W72U7OU7.js";
|
|
58
|
-
import "../../chunk-
|
|
58
|
+
import "../../chunk-JZCCRN3K.js";
|
|
59
59
|
import "../../chunk-MDKCTSDS.js";
|
|
60
60
|
import "../../chunk-MOKB32FL.js";
|
|
61
61
|
import "../../chunk-GIUO6PIU.js";
|
|
@@ -63,7 +63,7 @@ import "../../chunk-IAMQPR4S.js";
|
|
|
63
63
|
import "../../chunk-3SMLYVM2.js";
|
|
64
64
|
import "../../chunk-RGI52IWK.js";
|
|
65
65
|
import "../../chunk-6U3IUD57.js";
|
|
66
|
-
import "../../chunk-
|
|
66
|
+
import "../../chunk-LPLXCDNV.js";
|
|
67
67
|
import "../../chunk-BTROSBHF.js";
|
|
68
68
|
import "../../chunk-OXB6LRBK.js";
|
|
69
69
|
import "../../chunk-3DTTSBDF.js";
|