@flamingo-stack/openframe-frontend-core 0.0.690 → 0.0.691-2504.7650.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-22RSJ57Z.js → chunk-2YVTGPM7.js} +2 -2
- package/dist/{chunk-V5NOURSR.js → chunk-4HZXOQRM.js} +5 -5
- package/dist/{chunk-MDYTAKJ5.cjs → chunk-4N2JOPAQ.cjs} +22 -22
- package/dist/{chunk-MDYTAKJ5.cjs.map → chunk-4N2JOPAQ.cjs.map} +1 -1
- package/dist/{chunk-QNWQQ4RT.cjs → chunk-53O6PQ3F.cjs} +7 -7
- package/dist/{chunk-QNWQQ4RT.cjs.map → chunk-53O6PQ3F.cjs.map} +1 -1
- package/dist/{chunk-X4WBGDNW.cjs → chunk-5N2ZSB42.cjs} +18 -18
- package/dist/{chunk-X4WBGDNW.cjs.map → chunk-5N2ZSB42.cjs.map} +1 -1
- package/dist/{chunk-XRSJER2B.js → chunk-6Z26ZMR4.js} +4 -4
- package/dist/{chunk-HLEXYTOE.js → chunk-7EPGJOKN.js} +4 -4
- package/dist/{chunk-DOUG4UEZ.js → chunk-7WYWPELF.js} +11 -11
- package/dist/{chunk-ZBQZJAC7.cjs → chunk-BXAGR3PO.cjs} +7 -7
- package/dist/chunk-BXAGR3PO.cjs.map +1 -0
- package/dist/{chunk-QUGV2GT3.cjs → chunk-BXE2RZEV.cjs} +34 -34
- package/dist/{chunk-QUGV2GT3.cjs.map → chunk-BXE2RZEV.cjs.map} +1 -1
- package/dist/{chunk-DLRE5Y3G.js → chunk-C2SVJVEB.js} +2 -2
- package/dist/{chunk-OC3QH5WG.js → chunk-CMYDGVTZ.js} +2 -2
- package/dist/{chunk-VLWUKFQE.cjs → chunk-CWXRZVDI.cjs} +751 -710
- package/dist/chunk-CWXRZVDI.cjs.map +1 -0
- package/dist/{chunk-2PQKZWWP.js → chunk-DC3G4XGP.js} +6 -6
- package/dist/{chunk-KZXKT5AX.cjs → chunk-DDWLF2JV.cjs} +14 -14
- package/dist/{chunk-KZXKT5AX.cjs.map → chunk-DDWLF2JV.cjs.map} +1 -1
- package/dist/{chunk-NMXL34Z2.cjs → chunk-DVSPRY2V.cjs} +3 -3
- package/dist/{chunk-NMXL34Z2.cjs.map → chunk-DVSPRY2V.cjs.map} +1 -1
- package/dist/{chunk-OQVHGPHA.js → chunk-DZMDG7PC.js} +3 -3
- package/dist/{chunk-2MGTNYHW.cjs → chunk-ESFPY5FF.cjs} +100 -100
- package/dist/{chunk-2MGTNYHW.cjs.map → chunk-ESFPY5FF.cjs.map} +1 -1
- package/dist/{chunk-S5M5SEW2.js → chunk-FNMQ2J44.js} +5 -5
- package/dist/{chunk-UAKWSR3U.js → chunk-GDZ7IC5B.js} +2 -2
- package/dist/{chunk-OD2WMUAO.cjs → chunk-GZRU2A4L.cjs} +197 -197
- package/dist/{chunk-OD2WMUAO.cjs.map → chunk-GZRU2A4L.cjs.map} +1 -1
- package/dist/{chunk-3ZAIHRQH.cjs → chunk-H54RDLVC.cjs} +35 -35
- package/dist/{chunk-3ZAIHRQH.cjs.map → chunk-H54RDLVC.cjs.map} +1 -1
- package/dist/{chunk-Q76YVNCQ.js → chunk-HM7ZGABI.js} +2 -2
- package/dist/{chunk-YCKGUQA2.cjs → chunk-I27PWVWE.cjs} +17 -12
- package/dist/chunk-I27PWVWE.cjs.map +1 -0
- package/dist/{chunk-25X43LSD.js → chunk-JSG7WZKV.js} +4 -4
- package/dist/{chunk-AIXPQT3G.js → chunk-KMW2PXBU.js} +52 -11
- package/dist/chunk-KMW2PXBU.js.map +1 -0
- package/dist/{chunk-TBJWPNHU.js → chunk-KVDLL4LU.js} +4 -4
- package/dist/chunk-KVDLL4LU.js.map +1 -0
- package/dist/{chunk-54X75QTC.cjs → chunk-LCENRN2N.cjs} +14 -14
- package/dist/{chunk-54X75QTC.cjs.map → chunk-LCENRN2N.cjs.map} +1 -1
- package/dist/{chunk-BJHM2OEY.cjs → chunk-LNKLB7GM.cjs} +17 -17
- package/dist/{chunk-BJHM2OEY.cjs.map → chunk-LNKLB7GM.cjs.map} +1 -1
- package/dist/{chunk-JGVJRUGB.cjs → chunk-MIZU2OTO.cjs} +4 -4
- package/dist/{chunk-JGVJRUGB.cjs.map → chunk-MIZU2OTO.cjs.map} +1 -1
- package/dist/{chunk-TSENCZUL.js → chunk-MJI5GVT7.js} +11 -11
- package/dist/{chunk-BOM6MMWB.cjs → chunk-N3526CTH.cjs} +3 -3
- package/dist/{chunk-BOM6MMWB.cjs.map → chunk-N3526CTH.cjs.map} +1 -1
- package/dist/{chunk-D7BFS7N6.cjs → chunk-N4S7RBUM.cjs} +3 -3
- package/dist/{chunk-D7BFS7N6.cjs.map → chunk-N4S7RBUM.cjs.map} +1 -1
- package/dist/{chunk-4HBYEZ3I.cjs → chunk-SA4KQCNB.cjs} +82 -82
- package/dist/{chunk-4HBYEZ3I.cjs.map → chunk-SA4KQCNB.cjs.map} +1 -1
- package/dist/{chunk-RF2EYX3B.js → chunk-SC44YJCF.js} +2 -2
- package/dist/{chunk-2OD2PPNO.cjs → chunk-SDORFSFK.cjs} +37 -37
- package/dist/{chunk-2OD2PPNO.cjs.map → chunk-SDORFSFK.cjs.map} +1 -1
- package/dist/{chunk-42RQ4NIL.js → chunk-TSNGVWQO.js} +6 -6
- package/dist/{chunk-DMXI5D2Q.cjs → chunk-USKQURNF.cjs} +3 -3
- package/dist/{chunk-DMXI5D2Q.cjs.map → chunk-USKQURNF.cjs.map} +1 -1
- package/dist/{chunk-2KILTCND.js → chunk-UVUNBXS6.js} +6 -1
- package/dist/chunk-UVUNBXS6.js.map +1 -0
- package/dist/{chunk-5CBQBTGN.cjs → chunk-WZYIAKIH.cjs} +7 -7
- package/dist/{chunk-5CBQBTGN.cjs.map → chunk-WZYIAKIH.cjs.map} +1 -1
- package/dist/{chunk-2V4KPBNZ.js → chunk-XAOAYDGR.js} +3 -3
- package/dist/{chunk-U4OJCJTH.js → chunk-XBYF4SGD.js} +4 -4
- package/dist/{chunk-FCQR6VY4.cjs → chunk-Y3BC7TOJ.cjs} +26 -26
- package/dist/{chunk-FCQR6VY4.cjs.map → chunk-Y3BC7TOJ.cjs.map} +1 -1
- package/dist/{chunk-P27OGSQL.cjs → chunk-Y3Q76RAA.cjs} +37 -37
- package/dist/{chunk-P27OGSQL.cjs.map → chunk-Y3Q76RAA.cjs.map} +1 -1
- package/dist/{chunk-4BUPMSLY.js → chunk-Y7ZEVTLC.js} +3 -3
- package/dist/{chunk-Z622ACFD.js → chunk-Y7ZQZOE6.js} +5 -5
- package/dist/{chunk-5A3WSWZD.js → chunk-Z5FHXCXF.js} +8 -8
- package/dist/{chunk-UFXV64WQ.cjs → chunk-ZLYLHP64.cjs} +9 -9
- package/dist/{chunk-UFXV64WQ.cjs.map → chunk-ZLYLHP64.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +20 -20
- 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 +9 -9
- package/dist/components/faq/index.js +8 -8
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/index.js +6 -6
- package/dist/components/help-center-pages/index.cjs +101 -101
- package/dist/components/help-center-pages/index.js +21 -21
- package/dist/components/index.cjs +65 -65
- package/dist/components/index.js +21 -21
- package/dist/components/meeting-scheduler/index.cjs +58 -58
- 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 +11 -11
- package/dist/components/onboarding-guides/index.js +10 -10
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +12 -12
- package/dist/components/tickets/index.js +11 -11
- package/dist/components/tickets/ticket-live-provider.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/index.js +6 -6
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +12 -12
- package/dist/index.js +10 -10
- package/dist/utils/embed-authed-fetch.d.ts +18 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/index.cjs +50 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +50 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/sse-subscription.d.ts +29 -11
- package/dist/utils/sse-subscription.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/tickets/ticket-live-provider.tsx +14 -12
- package/src/utils/embed-authed-fetch.ts +21 -0
- package/src/utils/sse-subscription.ts +107 -20
- package/dist/chunk-2KILTCND.js.map +0 -1
- package/dist/chunk-AIXPQT3G.js.map +0 -1
- package/dist/chunk-TBJWPNHU.js.map +0 -1
- package/dist/chunk-VLWUKFQE.cjs.map +0 -1
- package/dist/chunk-YCKGUQA2.cjs.map +0 -1
- package/dist/chunk-ZBQZJAC7.cjs.map +0 -1
- /package/dist/{chunk-22RSJ57Z.js.map → chunk-2YVTGPM7.js.map} +0 -0
- /package/dist/{chunk-V5NOURSR.js.map → chunk-4HZXOQRM.js.map} +0 -0
- /package/dist/{chunk-XRSJER2B.js.map → chunk-6Z26ZMR4.js.map} +0 -0
- /package/dist/{chunk-HLEXYTOE.js.map → chunk-7EPGJOKN.js.map} +0 -0
- /package/dist/{chunk-DOUG4UEZ.js.map → chunk-7WYWPELF.js.map} +0 -0
- /package/dist/{chunk-DLRE5Y3G.js.map → chunk-C2SVJVEB.js.map} +0 -0
- /package/dist/{chunk-OC3QH5WG.js.map → chunk-CMYDGVTZ.js.map} +0 -0
- /package/dist/{chunk-2PQKZWWP.js.map → chunk-DC3G4XGP.js.map} +0 -0
- /package/dist/{chunk-OQVHGPHA.js.map → chunk-DZMDG7PC.js.map} +0 -0
- /package/dist/{chunk-S5M5SEW2.js.map → chunk-FNMQ2J44.js.map} +0 -0
- /package/dist/{chunk-UAKWSR3U.js.map → chunk-GDZ7IC5B.js.map} +0 -0
- /package/dist/{chunk-Q76YVNCQ.js.map → chunk-HM7ZGABI.js.map} +0 -0
- /package/dist/{chunk-25X43LSD.js.map → chunk-JSG7WZKV.js.map} +0 -0
- /package/dist/{chunk-TSENCZUL.js.map → chunk-MJI5GVT7.js.map} +0 -0
- /package/dist/{chunk-RF2EYX3B.js.map → chunk-SC44YJCF.js.map} +0 -0
- /package/dist/{chunk-42RQ4NIL.js.map → chunk-TSNGVWQO.js.map} +0 -0
- /package/dist/{chunk-2V4KPBNZ.js.map → chunk-XAOAYDGR.js.map} +0 -0
- /package/dist/{chunk-U4OJCJTH.js.map → chunk-XBYF4SGD.js.map} +0 -0
- /package/dist/{chunk-4BUPMSLY.js.map → chunk-Y7ZEVTLC.js.map} +0 -0
- /package/dist/{chunk-Z622ACFD.js.map → chunk-Y7ZQZOE6.js.map} +0 -0
- /package/dist/{chunk-5A3WSWZD.js.map → chunk-Z5FHXCXF.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../chunk-5I3BSQ6D.js";
|
|
|
4
4
|
import {
|
|
5
5
|
GROUP_PAGE_SIZE,
|
|
6
6
|
RelatedContentSection
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-7EPGJOKN.js";
|
|
8
8
|
import {
|
|
9
9
|
CveLink,
|
|
10
10
|
OnboardingStepCard,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SoftwareInfo,
|
|
16
16
|
SoftwareSourceBadge,
|
|
17
17
|
ToolBadge
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-Y7ZQZOE6.js";
|
|
19
19
|
import {
|
|
20
20
|
AppHeader,
|
|
21
21
|
AppLayout,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
SlidingSidebar,
|
|
36
36
|
TicketAlertsButton,
|
|
37
37
|
TopNavigation
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-DC3G4XGP.js";
|
|
39
39
|
import {
|
|
40
40
|
DeliveryLists,
|
|
41
41
|
DeliveryTable,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
RoadmapView,
|
|
50
50
|
useLegalDocs,
|
|
51
51
|
useRoadmapVoting
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-MJI5GVT7.js";
|
|
53
53
|
import {
|
|
54
54
|
DocNavigationProvider,
|
|
55
55
|
DocViewer,
|
|
@@ -63,28 +63,28 @@ import {
|
|
|
63
63
|
useDocNavigation,
|
|
64
64
|
useDocumentTree,
|
|
65
65
|
useScrollSpy
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-TSNGVWQO.js";
|
|
67
67
|
import {
|
|
68
68
|
FileDownloadCard,
|
|
69
69
|
GoogleSheetsViewer,
|
|
70
70
|
PdfViewer
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-6Z26ZMR4.js";
|
|
72
72
|
import {
|
|
73
73
|
PersistentPagination,
|
|
74
74
|
PersistentPaginationWrapper,
|
|
75
75
|
usePaginationLoading
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-SC44YJCF.js";
|
|
77
77
|
import {
|
|
78
78
|
FaqAccordion,
|
|
79
79
|
FaqDocumentPage,
|
|
80
80
|
FaqSection
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-4HZXOQRM.js";
|
|
82
82
|
import {
|
|
83
83
|
MobileNavigationDropdown,
|
|
84
84
|
MultiLevelNavigation,
|
|
85
85
|
StickySectionNav,
|
|
86
86
|
useSectionNavigation
|
|
87
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-CMYDGVTZ.js";
|
|
88
88
|
import {
|
|
89
89
|
DeliveryRow,
|
|
90
90
|
DevCardRowContent,
|
|
@@ -93,16 +93,16 @@ import {
|
|
|
93
93
|
DevSectionPage,
|
|
94
94
|
DevSectionView,
|
|
95
95
|
ListEmptyState
|
|
96
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-JSG7WZKV.js";
|
|
97
97
|
import {
|
|
98
98
|
EmptyState,
|
|
99
99
|
UnifiedPagination
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-
|
|
100
|
+
} from "../chunk-HM7ZGABI.js";
|
|
101
|
+
import "../chunk-KVDLL4LU.js";
|
|
102
102
|
import {
|
|
103
103
|
ArticleAuthorByline,
|
|
104
104
|
DetailPageSkeleton
|
|
105
|
-
} from "../chunk-
|
|
105
|
+
} from "../chunk-DZMDG7PC.js";
|
|
106
106
|
import {
|
|
107
107
|
DocSearchBar,
|
|
108
108
|
DocSearchResultRow,
|
|
@@ -110,10 +110,10 @@ import {
|
|
|
110
110
|
mapDocSearchResults,
|
|
111
111
|
resolveSearchResultAction,
|
|
112
112
|
useDocSearch
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-FNMQ2J44.js";
|
|
114
114
|
import {
|
|
115
115
|
useSelfFetch
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-C2SVJVEB.js";
|
|
117
117
|
import {
|
|
118
118
|
AIEnrichButton,
|
|
119
119
|
AIEnrichSection,
|
|
@@ -624,7 +624,7 @@ import {
|
|
|
624
624
|
useTimeTracker,
|
|
625
625
|
useTrackerClock,
|
|
626
626
|
useWalkthroughVideo
|
|
627
|
-
} from "../chunk-
|
|
627
|
+
} from "../chunk-KMW2PXBU.js";
|
|
628
628
|
import "../chunk-L2SLFCXP.js";
|
|
629
629
|
import "../chunk-BJXDHKUX.js";
|
|
630
630
|
import {
|
|
@@ -637,7 +637,7 @@ import {
|
|
|
637
637
|
showToast,
|
|
638
638
|
useOnboardingState,
|
|
639
639
|
useToast
|
|
640
|
-
} from "../chunk-
|
|
640
|
+
} from "../chunk-XAOAYDGR.js";
|
|
641
641
|
import {
|
|
642
642
|
useEndpointsRuntime
|
|
643
643
|
} from "../chunk-JD5TKRCU.js";
|
|
@@ -652,7 +652,7 @@ import {
|
|
|
652
652
|
} from "../chunk-GRBZC5N3.js";
|
|
653
653
|
import {
|
|
654
654
|
positiveInt
|
|
655
|
-
} from "../chunk-
|
|
655
|
+
} from "../chunk-GDZ7IC5B.js";
|
|
656
656
|
import {
|
|
657
657
|
Checkbox
|
|
658
658
|
} from "../chunk-HLCJPRXP.js";
|
|
@@ -1016,7 +1016,7 @@ import {
|
|
|
1016
1016
|
useVideoOriginPreconnect,
|
|
1017
1017
|
useVideoWarmup,
|
|
1018
1018
|
usesCanonicalStatusStyle
|
|
1019
|
-
} from "../chunk-
|
|
1019
|
+
} from "../chunk-Y7ZEVTLC.js";
|
|
1020
1020
|
import {
|
|
1021
1021
|
errorMessage,
|
|
1022
1022
|
scrollElementIntoView
|
|
@@ -1271,13 +1271,13 @@ import {
|
|
|
1271
1271
|
statusBadgeVariants,
|
|
1272
1272
|
toStripProfile,
|
|
1273
1273
|
useCoverImageFallback
|
|
1274
|
-
} from "../chunk-
|
|
1274
|
+
} from "../chunk-2YVTGPM7.js";
|
|
1275
1275
|
import {
|
|
1276
1276
|
next_image_default
|
|
1277
1277
|
} from "../chunk-MDKCTSDS.js";
|
|
1278
1278
|
import {
|
|
1279
1279
|
getAppType
|
|
1280
|
-
} from "../chunk-
|
|
1280
|
+
} from "../chunk-UVUNBXS6.js";
|
|
1281
1281
|
import {
|
|
1282
1282
|
FigmaIcon,
|
|
1283
1283
|
ImageIcon,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkN3526CTHcjs = require('../../chunk-N3526CTH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDVSPRY2Vcjs = require('../../chunk-DVSPRY2V.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ var _chunkNMXL34Z2cjs = require('../../chunk-NMXL34Z2.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkCWXRZVDIcjs = require('../../chunk-CWXRZVDI.cjs');
|
|
28
28
|
require('../../chunk-GQWM3ECA.cjs');
|
|
29
29
|
require('../../chunk-TON3YCCW.cjs');
|
|
30
30
|
|
|
@@ -33,19 +33,19 @@ require('../../chunk-TON3YCCW.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkLNKLB7GMcjs = require('../../chunk-LNKLB7GM.cjs');
|
|
37
37
|
require('../../chunk-LCMT2GZK.cjs');
|
|
38
38
|
require('../../chunk-JU6SBF3C.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkMIZU2OTOcjs = require('../../chunk-MIZU2OTO.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkPTFE5WKPcjs = require('../../chunk-PTFE5WKP.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkGZRU2A4Lcjs = require('../../chunk-GZRU2A4L.cjs');
|
|
49
49
|
require('../../chunk-QRA2JXE4.cjs');
|
|
50
50
|
require('../../chunk-SADRZ4YI.cjs');
|
|
51
51
|
require('../../chunk-5R4QMTML.cjs');
|
|
@@ -59,9 +59,9 @@ require('../../chunk-XQFFGR6U.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunk53O6PQ3Fcjs = require('../../chunk-53O6PQ3F.cjs');
|
|
63
63
|
require('../../chunk-WLSFBRT5.cjs');
|
|
64
|
-
require('../../chunk-
|
|
64
|
+
require('../../chunk-I27PWVWE.cjs');
|
|
65
65
|
require('../../chunk-63QUMV72.cjs');
|
|
66
66
|
require('../../chunk-U2YLMFJK.cjs');
|
|
67
67
|
|
|
@@ -358,7 +358,7 @@ function useMeetingBooking(options) {
|
|
|
358
358
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
359
359
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
360
360
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
361
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
361
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkCWXRZVDIcjs.MAX_MONTH_OFFSET, offset)));
|
|
362
362
|
}, []);
|
|
363
363
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
364
364
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -371,7 +371,7 @@ function useMeetingBooking(options) {
|
|
|
371
371
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
372
372
|
queryFn: async ({ signal }) => {
|
|
373
373
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
374
|
-
const res = await
|
|
374
|
+
const res = await _chunkMIZU2OTOcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
375
375
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
376
376
|
return await res.json();
|
|
377
377
|
},
|
|
@@ -388,7 +388,7 @@ function useMeetingBooking(options) {
|
|
|
388
388
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
389
389
|
mutationFn: async (payload) => {
|
|
390
390
|
try {
|
|
391
|
-
const res = await
|
|
391
|
+
const res = await _chunkMIZU2OTOcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
392
392
|
method: "POST",
|
|
393
393
|
headers: { "Content-Type": "application/json" },
|
|
394
394
|
body: JSON.stringify(payload)
|
|
@@ -488,7 +488,7 @@ var FIELD_CONTROLS = {
|
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
490
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
491
|
-
|
|
491
|
+
_chunkCWXRZVDIcjs.Textarea,
|
|
492
492
|
{
|
|
493
493
|
id,
|
|
494
494
|
required: field.required,
|
|
@@ -544,18 +544,18 @@ var FIELD_CONTROLS = {
|
|
|
544
544
|
{
|
|
545
545
|
control,
|
|
546
546
|
name: registerName,
|
|
547
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
547
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCWXRZVDIcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
548
548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
549
|
-
|
|
549
|
+
_chunkCWXRZVDIcjs.SelectTrigger,
|
|
550
550
|
{
|
|
551
551
|
id,
|
|
552
552
|
"aria-required": field.required || void 0,
|
|
553
553
|
"aria-invalid": Boolean(error),
|
|
554
554
|
invalid: Boolean(error),
|
|
555
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
555
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
556
556
|
}
|
|
557
557
|
),
|
|
558
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
559
559
|
] })
|
|
560
560
|
}
|
|
561
561
|
),
|
|
@@ -565,14 +565,14 @@ var FIELD_CONTROLS = {
|
|
|
565
565
|
control,
|
|
566
566
|
name: registerName,
|
|
567
567
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunkCWXRZVDIcjs.RadioGroup,
|
|
569
569
|
{
|
|
570
570
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
571
571
|
onValueChange: rhf.onChange,
|
|
572
572
|
"aria-required": field.required || void 0,
|
|
573
573
|
"aria-invalid": Boolean(error),
|
|
574
574
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
575
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
576
576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWX65373cjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
577
577
|
] }, opt))
|
|
578
578
|
}
|
|
@@ -711,7 +711,7 @@ function BookingForm({
|
|
|
711
711
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
712
712
|
[supportedFields]
|
|
713
713
|
);
|
|
714
|
-
const formRescue =
|
|
714
|
+
const formRescue = _chunkLNKLB7GMcjs.useRescuedForm.call(void 0,
|
|
715
715
|
{ watch, getValues, setValue },
|
|
716
716
|
{
|
|
717
717
|
rescue,
|
|
@@ -720,7 +720,7 @@ function BookingForm({
|
|
|
720
720
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
721
721
|
}
|
|
722
722
|
);
|
|
723
|
-
const { toast } =
|
|
723
|
+
const { toast } = _chunkLNKLB7GMcjs.useToast.call(void 0, );
|
|
724
724
|
const onInvalid = () => {
|
|
725
725
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
726
726
|
toast({
|
|
@@ -808,8 +808,8 @@ function BookingForm({
|
|
|
808
808
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
809
809
|
}
|
|
810
810
|
);
|
|
811
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
811
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkCWXRZVDIcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.HoneypotField, { ...honeypotInputProps }),
|
|
813
813
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
814
814
|
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("|"))),
|
|
815
815
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -822,7 +822,7 @@ function BookingForm({
|
|
|
822
822
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
823
823
|
] }),
|
|
824
824
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
825
|
-
|
|
825
|
+
_chunkCWXRZVDIcjs.CheckboxBlock,
|
|
826
826
|
{
|
|
827
827
|
id: "ms-host-consent",
|
|
828
828
|
checked: consented,
|
|
@@ -857,7 +857,7 @@ function BookingForm({
|
|
|
857
857
|
// same block the waitlist form uses): box + label in one
|
|
858
858
|
// bordered row.
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkCWXRZVDIcjs.CheckboxBlock,
|
|
861
861
|
{
|
|
862
862
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
863
863
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -923,7 +923,7 @@ function skeletonRows(fieldRows) {
|
|
|
923
923
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
924
924
|
|
|
925
925
|
function Confirmation({ confirmation, timezone }) {
|
|
926
|
-
const when =
|
|
926
|
+
const when = _chunk53O6PQ3Fcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
927
927
|
viewerLocale: true
|
|
928
928
|
});
|
|
929
929
|
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: [
|
|
@@ -933,7 +933,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
933
933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
934
934
|
when,
|
|
935
935
|
" \xB7 ",
|
|
936
|
-
|
|
936
|
+
_chunk53O6PQ3Fcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
937
937
|
] }),
|
|
938
938
|
/* @__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." })
|
|
939
939
|
] });
|
|
@@ -967,7 +967,7 @@ function ContextPanelSkeleton({
|
|
|
967
967
|
backLabel = "Back"
|
|
968
968
|
}) {
|
|
969
969
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
970
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
971
971
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
972
972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
973
973
|
/* @__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: [
|
|
@@ -1015,13 +1015,13 @@ function SchedulerContextPanel({
|
|
|
1015
1015
|
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
1016
1016
|
}, [timezone]);
|
|
1017
1017
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
1018
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1018
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
1019
1019
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
1020
1020
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
1021
1021
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
1022
1022
|
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: [
|
|
1023
1023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1024
|
-
|
|
1024
|
+
_chunk53O6PQ3Fcjs.SquareAvatar,
|
|
1025
1025
|
{
|
|
1026
1026
|
variant: "round",
|
|
1027
1027
|
size: "sm",
|
|
@@ -1036,7 +1036,7 @@ function SchedulerContextPanel({
|
|
|
1036
1036
|
] })
|
|
1037
1037
|
] }, host.name)) }),
|
|
1038
1038
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk53O6PQ3Fcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1040
1040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1041
1041
|
hosts.length,
|
|
1042
1042
|
" hosts on this calendar"
|
|
@@ -1046,7 +1046,7 @@ function SchedulerContextPanel({
|
|
|
1046
1046
|
// Post-selection, or a link that offers one length: a static line,
|
|
1047
1047
|
// which is what sits beside the host on the header-strip layouts.
|
|
1048
1048
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1049
|
-
|
|
1049
|
+
_chunk53O6PQ3Fcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1050
1050
|
" call"
|
|
1051
1051
|
] })
|
|
1052
1052
|
) : null
|
|
@@ -1062,7 +1062,7 @@ function SchedulerContextPanel({
|
|
|
1062
1062
|
size: "small-legacy",
|
|
1063
1063
|
disabled,
|
|
1064
1064
|
onClick: () => onSelectDuration(ms),
|
|
1065
|
-
children:
|
|
1065
|
+
children: _chunk53O6PQ3Fcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1066
1066
|
},
|
|
1067
1067
|
ms
|
|
1068
1068
|
)) })
|
|
@@ -1077,7 +1077,7 @@ function SchedulerContextPanel({
|
|
|
1077
1077
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
1078
1078
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1079
1079
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1080
|
-
|
|
1080
|
+
_chunkCWXRZVDIcjs.Autocomplete,
|
|
1081
1081
|
{
|
|
1082
1082
|
value: timezone,
|
|
1083
1083
|
disabled,
|
|
@@ -1113,7 +1113,7 @@ function dateFromDayKey(key) {
|
|
|
1113
1113
|
return new Date(y, m - 1, d, 12);
|
|
1114
1114
|
}
|
|
1115
1115
|
function timeLabelInZone(ms, timeZone) {
|
|
1116
|
-
return
|
|
1116
|
+
return _chunk53O6PQ3Fcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1117
1117
|
}
|
|
1118
1118
|
var CALENDAR_W = "md:w-[19rem] md:shrink-0 lg:w-[16rem]";
|
|
1119
1119
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1157,25 +1157,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border md:border-b-0 md:border-r lg:bo
|
|
|
1157
1157
|
function monthLabelFor(offset) {
|
|
1158
1158
|
const now = /* @__PURE__ */ new Date();
|
|
1159
1159
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1160
|
-
return
|
|
1160
|
+
return _chunk53O6PQ3Fcjs.formatDateWithTimezone.call(void 0, month, _chunk53O6PQ3Fcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1161
1161
|
}
|
|
1162
1162
|
var DISABLE_EVERY_DAY = () => true;
|
|
1163
1163
|
var NOOP = () => void 0;
|
|
1164
1164
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1165
1165
|
const now = /* @__PURE__ */ new Date();
|
|
1166
1166
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1167
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1167
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkCWXRZVDIcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1168
1168
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1169
1169
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _39 => _39.has, 'call', _40 => _40(calendarDayKey(day))]), [slotsByDay]);
|
|
1170
1170
|
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,
|
|
1171
|
-
|
|
1171
|
+
_chunkCWXRZVDIcjs.DatePickerCalendar,
|
|
1172
1172
|
{
|
|
1173
1173
|
mode: "single",
|
|
1174
1174
|
bare: true,
|
|
1175
1175
|
month: visibleMonth,
|
|
1176
1176
|
onMonthChange: (month) => {
|
|
1177
1177
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1178
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1178
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkCWXRZVDIcjs.MAX_MONTH_OFFSET, offset)));
|
|
1179
1179
|
},
|
|
1180
1180
|
fromDate: startMonth,
|
|
1181
1181
|
toDate: endMonth,
|
|
@@ -1262,7 +1262,7 @@ function SlotPicker({
|
|
|
1262
1262
|
)
|
|
1263
1263
|
] }),
|
|
1264
1264
|
/* @__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: [
|
|
1265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunk53O6PQ3Fcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunk53O6PQ3Fcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1266
1266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1267
1267
|
const isSelected = selectedSlot === ms;
|
|
1268
1268
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1291,7 +1291,7 @@ function SlotPicker({
|
|
|
1291
1291
|
monthLabelFor(monthOffset),
|
|
1292
1292
|
"."
|
|
1293
1293
|
] }),
|
|
1294
|
-
monthOffset <
|
|
1294
|
+
monthOffset < _chunkCWXRZVDIcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1295
1295
|
_chunkF6U2H42Lcjs.Button,
|
|
1296
1296
|
{
|
|
1297
1297
|
variant: "outline",
|
|
@@ -1313,10 +1313,10 @@ function SlotPicker({
|
|
|
1313
1313
|
|
|
1314
1314
|
|
|
1315
1315
|
function useNextAvailableLabel(ms) {
|
|
1316
|
-
const hydrated =
|
|
1316
|
+
const hydrated = _chunkGZRU2A4Lcjs.useIsHydrated.call(void 0, );
|
|
1317
1317
|
return _react.useMemo.call(void 0, () => {
|
|
1318
1318
|
if (!hydrated || ms == null) return null;
|
|
1319
|
-
return
|
|
1319
|
+
return _chunk53O6PQ3Fcjs.formatDateWithTimezone.call(void 0, ms, _chunk53O6PQ3Fcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1320
1320
|
}, [hydrated, ms]);
|
|
1321
1321
|
}
|
|
1322
1322
|
function DirectoryRow({
|
|
@@ -1327,7 +1327,7 @@ function DirectoryRow({
|
|
|
1327
1327
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1328
1328
|
const subtitle = [
|
|
1329
1329
|
link.description,
|
|
1330
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1330
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunk53O6PQ3Fcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1331
1331
|
link.kind === "team" ? "Team" : null
|
|
1332
1332
|
].filter(Boolean).join(" \u2022 ");
|
|
1333
1333
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1341,8 +1341,8 @@ function DirectoryRow({
|
|
|
1341
1341
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1342
1342
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1343
1343
|
] }),
|
|
1344
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1344
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk53O6PQ3Fcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 sm:inline-flex" }),
|
|
1345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk53O6PQ3Fcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1346
1346
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center md:flex", children: [
|
|
1347
1347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1348
1348
|
/* @__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, () => ( " ")) })
|
|
@@ -1390,7 +1390,7 @@ function MeetingSchedulerDirectory({
|
|
|
1390
1390
|
setError(null);
|
|
1391
1391
|
try {
|
|
1392
1392
|
const qs = includeAll ? "?scope=all" : "";
|
|
1393
|
-
const res = await
|
|
1393
|
+
const res = await _chunkMIZU2OTOcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
1394
1394
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
1395
1395
|
const payload = await res.json();
|
|
1396
1396
|
if (active) setData(payload);
|
|
@@ -1411,7 +1411,7 @@ function MeetingSchedulerDirectory({
|
|
|
1411
1411
|
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _43 => _43.purposes]), () => ( []));
|
|
1412
1412
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1413
1413
|
}, [data]);
|
|
1414
|
-
const totalPages =
|
|
1414
|
+
const totalPages = _chunkMIZU2OTOcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
1415
1415
|
const pageRows = rows.slice((page - 1) * pageSize, page * pageSize);
|
|
1416
1416
|
const rowsMinHeight = pageSize * 80 + (pageSize - 1) * 16;
|
|
1417
1417
|
if (isLoading && !data) {
|
|
@@ -1422,7 +1422,7 @@ function MeetingSchedulerDirectory({
|
|
|
1422
1422
|
}
|
|
1423
1423
|
if (error) {
|
|
1424
1424
|
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,
|
|
1425
|
-
|
|
1425
|
+
_chunkDVSPRY2Vcjs.EmptyState,
|
|
1426
1426
|
{
|
|
1427
1427
|
type: "generic",
|
|
1428
1428
|
title: "We couldn't load available call times",
|
|
@@ -1433,7 +1433,7 @@ function MeetingSchedulerDirectory({
|
|
|
1433
1433
|
}
|
|
1434
1434
|
if (rows.length === 0) {
|
|
1435
1435
|
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,
|
|
1436
|
-
|
|
1436
|
+
_chunkDVSPRY2Vcjs.EmptyState,
|
|
1437
1437
|
{
|
|
1438
1438
|
type: "generic",
|
|
1439
1439
|
title: "No call times are published right now",
|
|
@@ -1445,7 +1445,7 @@ function MeetingSchedulerDirectory({
|
|
|
1445
1445
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1446
1446
|
/* @__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)) }),
|
|
1447
1447
|
/* @__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,
|
|
1448
|
-
|
|
1448
|
+
_chunkN3526CTHcjs.PersistentPaginationWrapper,
|
|
1449
1449
|
{
|
|
1450
1450
|
isLoading,
|
|
1451
1451
|
currentPage: page,
|
|
@@ -1546,7 +1546,7 @@ function HubSpotMeetingScheduler({
|
|
|
1546
1546
|
isSubmitting
|
|
1547
1547
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1548
1548
|
const detailsFirst = flow === "details-first";
|
|
1549
|
-
const hydrated =
|
|
1549
|
+
const hydrated = _chunkGZRU2A4Lcjs.useIsHydrated.call(void 0, );
|
|
1550
1550
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1551
1551
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1552
1552
|
if (!hydrated) return null;
|
|
@@ -1579,8 +1579,8 @@ function HubSpotMeetingScheduler({
|
|
|
1579
1579
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1580
1580
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1581
1581
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1582
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1583
|
-
const { toast } =
|
|
1582
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkLNKLB7GMcjs.useHumanitySignals.call(void 0, );
|
|
1583
|
+
const { toast } = _chunkLNKLB7GMcjs.useToast.call(void 0, );
|
|
1584
1584
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1585
1585
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1586
1586
|
if (machineFor !== meetingId) {
|
|
@@ -1654,7 +1654,7 @@ function HubSpotMeetingScheduler({
|
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
if (result.ok && result.confirmation) {
|
|
1657
|
-
|
|
1657
|
+
_chunkLNKLB7GMcjs.completeFormRescue.call(void 0, rescue, payload[_chunkLNKLB7GMcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1658
1658
|
setConfirmation(result.confirmation);
|
|
1659
1659
|
setStep("confirmed");
|
|
1660
1660
|
_optionalChain([onBooked, 'optionalCall', _49 => _49(result.confirmation)]);
|
|
@@ -1750,10 +1750,10 @@ function HubSpotMeetingScheduler({
|
|
|
1750
1750
|
durations.length > 0
|
|
1751
1751
|
) : 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: [
|
|
1752
1752
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1753
|
-
|
|
1753
|
+
_chunk53O6PQ3Fcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1754
1754
|
" \xB7",
|
|
1755
1755
|
" ",
|
|
1756
|
-
|
|
1756
|
+
_chunk53O6PQ3Fcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1757
1757
|
] }),
|
|
1758
1758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1759
1759
|
DetailsForm,
|
|
@@ -1777,11 +1777,11 @@ function HubSpotMeetingScheduler({
|
|
|
1777
1777
|
)
|
|
1778
1778
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1779
1779
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1780
|
-
|
|
1780
|
+
_chunkCWXRZVDIcjs.Alert,
|
|
1781
1781
|
{
|
|
1782
1782
|
variant: "warning",
|
|
1783
1783
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1784
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1784
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWXRZVDIcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1785
1785
|
}
|
|
1786
1786
|
),
|
|
1787
1787
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-SC44YJCF.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-HM7ZGABI.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert,
|
|
11
11
|
AlertDescription,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
SelectTrigger,
|
|
25
25
|
SelectValue,
|
|
26
26
|
Textarea
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-KMW2PXBU.js";
|
|
28
28
|
import "../../chunk-L2SLFCXP.js";
|
|
29
29
|
import "../../chunk-BJXDHKUX.js";
|
|
30
30
|
import {
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-XAOAYDGR.js";
|
|
37
37
|
import "../../chunk-JD5TKRCU.js";
|
|
38
38
|
import "../../chunk-GRBZC5N3.js";
|
|
39
39
|
import {
|
|
40
40
|
contentFetch,
|
|
41
41
|
pageCount
|
|
42
|
-
} from "../../chunk-
|
|
42
|
+
} from "../../chunk-GDZ7IC5B.js";
|
|
43
43
|
import {
|
|
44
44
|
Checkbox
|
|
45
45
|
} from "../../chunk-HLCJPRXP.js";
|
|
46
46
|
import {
|
|
47
47
|
useIsHydrated
|
|
48
|
-
} from "../../chunk-
|
|
48
|
+
} from "../../chunk-Y7ZEVTLC.js";
|
|
49
49
|
import "../../chunk-JUNOY5HK.js";
|
|
50
50
|
import "../../chunk-XXMHLZ3Y.js";
|
|
51
51
|
import "../../chunk-VQZXJIPY.js";
|
|
@@ -59,9 +59,9 @@ import {
|
|
|
59
59
|
formatDateWithTimezone,
|
|
60
60
|
formatDurationCompact,
|
|
61
61
|
formatTimeWithTimezone
|
|
62
|
-
} from "../../chunk-
|
|
62
|
+
} from "../../chunk-2YVTGPM7.js";
|
|
63
63
|
import "../../chunk-MDKCTSDS.js";
|
|
64
|
-
import "../../chunk-
|
|
64
|
+
import "../../chunk-UVUNBXS6.js";
|
|
65
65
|
import "../../chunk-OTX6XNSA.js";
|
|
66
66
|
import "../../chunk-3SMLYVM2.js";
|
|
67
67
|
import {
|