@flamingo-stack/openframe-frontend-core 0.0.705-snapshot.20261006160157 → 0.0.705
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-WCVZCGK5.cjs → chunk-2QEUFXNS.cjs} +71 -312
- package/dist/{chunk-N45D4ZXQ.js → chunk-2YXVWZVF.js} +715 -959
- package/dist/{chunk-7OFPU7WE.cjs → chunk-3MX5S4CF.cjs} +2547 -877
- package/dist/{chunk-MB4PNY7C.cjs → chunk-4I45Y3DN.cjs} +6 -6
- package/dist/{chunk-K6O43WDL.cjs → chunk-4KX6OED2.cjs} +46 -46
- package/dist/{chunk-JPG7OHEG.js → chunk-5HBHO5TB.js} +1 -1
- package/dist/{chunk-3PLDQDE6.cjs → chunk-6NJKKO73.cjs} +15 -15
- package/dist/{chunk-O2RSAA5M.js → chunk-6SEANMOU.js} +11 -11
- package/dist/{chunk-WMX26HB5.js → chunk-6XIF2Z7I.js} +3 -3
- package/dist/{chunk-TQ4LB2DS.cjs → chunk-7LS22BZU.cjs} +14 -14
- package/dist/{chunk-7GEBFJT2.js → chunk-7VVFKJY5.js} +3429 -1759
- package/dist/{chunk-DDVBX42E.cjs → chunk-A75QY6CD.cjs} +21 -21
- package/dist/{chunk-OF6GEI5A.cjs → chunk-ABU3TGXA.cjs} +3 -3
- package/dist/{chunk-4CJMQLB5.js → chunk-AQWZNP6A.js} +4 -4
- package/dist/{chunk-FI6GMDO7.js → chunk-CH5232HV.js} +662 -2455
- package/dist/{chunk-Y2GSOUCS.cjs → chunk-D7BTSVMS.cjs} +2 -2
- package/dist/{chunk-4ILM7W2R.js → chunk-DENB2XJC.js} +2 -2
- package/dist/{chunk-6232S532.js → chunk-DW7G4KG3.js} +3 -3
- package/dist/{chunk-3NCM4ZQB.js → chunk-F6AFPNDF.js} +15 -15
- package/dist/{chunk-PXOQIA5K.js → chunk-F6I6XZMN.js} +5 -5
- package/dist/{chunk-G6UMNAVI.js → chunk-FCGC42TS.js} +61 -57
- package/dist/{chunk-BHI6GVC4.js → chunk-G5A3PSPV.js} +691 -1080
- package/dist/{chunk-HZ7CBXPL.cjs → chunk-HPWWNJE7.cjs} +89 -89
- package/dist/{chunk-SW5ZV2BN.cjs → chunk-IHERL5V4.cjs} +34 -34
- package/dist/{chunk-UJ33ZXDT.cjs → chunk-IKTQ3ZAG.cjs} +6 -6
- package/dist/{chunk-SEKYEWQG.cjs → chunk-JEZKGCZI.cjs} +26 -26
- package/dist/{chunk-7SCNMP2B.cjs → chunk-KOWVJD4V.cjs} +56 -56
- package/dist/chunk-LMBC5FFP.js +43 -0
- package/dist/{chunk-F57ECE2I.js → chunk-MFFCUVWG.js} +1 -1
- package/dist/{chunk-KUC673HM.js → chunk-MKXO4Q5P.js} +142 -383
- package/dist/{chunk-6NTPY5QA.cjs → chunk-MMOODW57.cjs} +94 -1887
- package/dist/{chunk-CUME3VTQ.js → chunk-MP2C3LJ4.js} +1 -1
- package/dist/{chunk-VX4E6YSB.cjs → chunk-N3COXDBH.cjs} +5 -41
- package/dist/{chunk-FXJ3WWUB.js → chunk-NDESEPW5.js} +0 -68
- package/dist/chunk-O43V3EOS.js +252 -0
- package/dist/{chunk-PLYEKV3N.cjs → chunk-OHFS7VOU.cjs} +2 -2
- package/dist/{chunk-M75XEEGT.cjs → chunk-OUY3HHW6.cjs} +539 -928
- package/dist/{chunk-CZ7Y7UG4.js → chunk-PDWVPI3S.js} +72 -4
- package/dist/{chunk-TE773HEH.js → chunk-PN2RKPDF.js} +10 -10
- package/dist/{chunk-3EZ4HHAP.js → chunk-QFXRPRFT.js} +3 -3
- package/dist/chunk-QZVSJF2K.cjs +252 -0
- package/dist/chunk-RALRPFDW.cjs +43 -0
- package/dist/{chunk-YGJKKDDM.js → chunk-RBDP4WDE.js} +6 -6
- package/dist/{chunk-LM7TXMLU.cjs → chunk-RKV5B7EU.cjs} +4 -72
- package/dist/{chunk-UVTD52MD.cjs → chunk-TYWLNCNH.cjs} +82 -14
- package/dist/{chunk-IKJA3Y7Z.js → chunk-VA5T32XA.js} +2 -2
- package/dist/{chunk-GWQEYPYM.cjs → chunk-VESKITRQ.cjs} +732 -728
- package/dist/{chunk-RQRX4YC3.cjs → chunk-VHCACDKP.cjs} +39 -39
- package/dist/{chunk-4IBPRIQH.js → chunk-VR2ZLFCP.js} +1 -1
- package/dist/{chunk-RTIPR53L.cjs → chunk-WA6GUYQ4.cjs} +104 -104
- package/dist/{chunk-T5TMCHWM.js → chunk-X5MQ7JRP.js} +9 -9
- package/dist/{chunk-LLSUVPQC.cjs → chunk-X72J4ACL.cjs} +8 -252
- package/dist/{chunk-UDFRUKLC.cjs → chunk-XOYH2YQE.cjs} +2 -2
- package/dist/{chunk-LVSFKENJ.cjs → chunk-YFBM2K6X.cjs} +4 -4
- package/dist/{chunk-DWPAAWMR.js → chunk-YHM5AWTT.js} +6 -6
- package/dist/{chunk-NCPTID44.js → chunk-Z2VNQQ74.js} +942 -978
- package/dist/{chunk-STHZBOQI.cjs → chunk-ZSAGLQOD.cjs} +17 -17
- package/dist/{chunk-VZICIQW2.js → chunk-ZSAO2HBW.js} +15 -15
- package/dist/components/case-studies/index.cjs +32 -30
- package/dist/components/case-studies/index.js +16 -14
- package/dist/components/chat/entity-cards/case-study-card.d.ts +4 -11
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -9
- package/dist/components/chat/index.js +16 -14
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +14 -12
- package/dist/components/contact/index.js +13 -11
- package/dist/components/docs/index.cjs +17 -15
- package/dist/components/docs/index.js +16 -14
- package/dist/components/embeds/index.cjs +14 -12
- package/dist/components/embeds/index.js +13 -11
- package/dist/components/faq/index.cjs +15 -13
- package/dist/components/faq/index.js +14 -12
- package/dist/components/features/index.cjs +14 -12
- package/dist/components/features/index.js +23 -21
- package/dist/components/footer-waitlist-button.d.ts +29 -0
- package/dist/components/footer-waitlist-button.d.ts.map +1 -0
- package/dist/components/footer.d.ts +47 -0
- package/dist/components/footer.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +120 -118
- package/dist/components/help-center-pages/index.js +35 -33
- package/dist/components/icons/index.cjs +5 -3
- package/dist/components/icons/index.js +11 -9
- package/dist/components/icons-v2-generated/index.cjs +5 -3
- package/dist/components/icons-v2-generated/index.js +4 -2
- package/dist/components/index.cjs +159 -86
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +402 -329
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +64 -62
- package/dist/components/meeting-scheduler/index.js +14 -12
- package/dist/components/navigation/client-only-header.d.ts +8 -0
- package/dist/components/navigation/client-only-header.d.ts.map +1 -0
- package/dist/components/navigation/header-skeleton.d.ts +12 -0
- package/dist/components/navigation/header-skeleton.d.ts.map +1 -0
- package/dist/components/navigation/header.d.ts +9 -0
- package/dist/components/navigation/header.d.ts.map +1 -0
- package/dist/components/navigation/index.cjs +16 -28
- package/dist/components/navigation/index.d.ts +10 -14
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +26 -38
- package/dist/components/navigation/mingo-ai-button.d.ts +3 -38
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +10 -0
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +2 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +17 -15
- package/dist/components/onboarding-guides/index.js +16 -14
- package/dist/components/related-content/index.cjs +8 -10
- package/dist/components/related-content/index.js +7 -9
- package/dist/components/tickets/index.cjs +18 -16
- package/dist/components/tickets/index.js +17 -15
- package/dist/components/ui/index.cjs +14 -12
- package/dist/components/ui/index.js +19 -17
- package/dist/hooks/index.cjs +11 -19
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +11 -19
- package/dist/hooks/ui/index.d.ts +0 -3
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +22 -55
- package/dist/index.js +196 -229
- package/dist/types/case-study.d.ts +0 -9
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +65 -95
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -55
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -50
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +5 -115
- package/src/components/chat/utils/icon-library.tsx +1 -35
- package/src/components/footer-waitlist-button.tsx +53 -0
- package/src/components/footer.tsx +195 -0
- package/src/components/index.ts +2 -0
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/client-only-header.tsx +22 -0
- package/src/components/navigation/header-skeleton.tsx +74 -0
- package/src/components/navigation/header.tsx +429 -0
- package/src/components/navigation/index.ts +14 -21
- package/src/components/navigation/mingo-ai-button.tsx +63 -139
- package/src/components/navigation/mobile-nav-panel.tsx +155 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -1
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/hooks/index.ts +0 -1
- package/src/hooks/ui/index.ts +0 -3
- package/src/styles/chat-animations.css +2 -57
- package/src/types/case-study.ts +0 -16
- package/src/types/navigation.ts +66 -80
- package/src/utils/index.ts +0 -1
- package/src/utils/source-icons.ts +0 -13
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +0 -3
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-sheet.d.ts +0 -48
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +0 -1
- package/dist/components/navigation/nav-item-row.d.ts +0 -27
- package/dist/components/navigation/nav-item-row.d.ts.map +0 -1
- package/dist/components/navigation/nav-panel.d.ts +0 -43
- package/dist/components/navigation/nav-panel.d.ts.map +0 -1
- package/dist/components/navigation/site-footer.d.ts +0 -28
- package/dist/components/navigation/site-footer.d.ts.map +0 -1
- package/dist/components/navigation/site-header.d.ts +0 -61
- package/dist/components/navigation/site-header.d.ts.map +0 -1
- package/dist/components/navigation/site-nav-link.d.ts +0 -26
- package/dist/components/navigation/site-nav-link.d.ts.map +0 -1
- package/dist/hooks/ui/use-active-section.d.ts +0 -10
- package/dist/hooks/ui/use-active-section.d.ts.map +0 -1
- package/dist/hooks/ui/use-nav-menus.d.ts +0 -48
- package/dist/hooks/ui/use-nav-menus.d.ts.map +0 -1
- package/dist/hooks/ui/use-visitor-os.d.ts +0 -15
- package/dist/hooks/ui/use-visitor-os.d.ts.map +0 -1
- package/dist/hooks/use-location-hash.d.ts +0 -9
- package/dist/hooks/use-location-hash.d.ts.map +0 -1
- package/dist/utils/visitor-os.d.ts +0 -45
- package/dist/utils/visitor-os.d.ts.map +0 -1
- package/src/components/navigation/mobile-nav-sheet-id.ts +0 -2
- package/src/components/navigation/mobile-nav-sheet.tsx +0 -241
- package/src/components/navigation/nav-item-row.tsx +0 -129
- package/src/components/navigation/nav-panel.tsx +0 -196
- package/src/components/navigation/site-footer.tsx +0 -256
- package/src/components/navigation/site-header.tsx +0 -339
- package/src/components/navigation/site-nav-link.tsx +0 -41
- package/src/hooks/ui/use-active-section.ts +0 -44
- package/src/hooks/ui/use-nav-menus.ts +0 -200
- package/src/hooks/ui/use-visitor-os.ts +0 -33
- package/src/hooks/use-location-hash.ts +0 -34
- package/src/utils/visitor-os.ts +0 -84
|
@@ -7,7 +7,7 @@ interface PageLayoutSkeletonProps {
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function AnnouncementBarSkeleton(): React.JSX.Element;
|
|
9
9
|
/**
|
|
10
|
-
* Header skeleton
|
|
10
|
+
* Header skeleton that matches the ClientOnlyHeader placeholder but with proper animations
|
|
11
11
|
*/
|
|
12
12
|
export declare function HeaderSkeleton(): React.JSX.Element;
|
|
13
13
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD7BTSVMScjs = require('../../chunk-D7BTSVMS.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkOHFS7VOUcjs = require('../../chunk-OHFS7VOU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ var _chunkPLYEKV3Ncjs = require('../../chunk-PLYEKV3N.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVESKITRQcjs = require('../../chunk-VESKITRQ.cjs');
|
|
28
28
|
require('../../chunk-HQQE74RO.cjs');
|
|
29
29
|
require('../../chunk-DEY6XXGO.cjs');
|
|
30
30
|
|
|
@@ -33,21 +33,24 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk2QEUFXNScjs = require('../../chunk-2QEUFXNS.cjs');
|
|
37
37
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
38
38
|
require('../../chunk-BIZNSF3U.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkABU3TGXAcjs = require('../../chunk-ABU3TGXA.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
49
|
-
require('../../chunk-
|
|
48
|
+
var _chunk3MX5S4CFcjs = require('../../chunk-3MX5S4CF.cjs');
|
|
49
|
+
require('../../chunk-TYWLNCNH.cjs');
|
|
50
50
|
require('../../chunk-7DNL734S.cjs');
|
|
51
|
+
require('../../chunk-X72J4ACL.cjs');
|
|
52
|
+
require('../../chunk-N3COXDBH.cjs');
|
|
53
|
+
require('../../chunk-RDW5JAME.cjs');
|
|
51
54
|
|
|
52
55
|
|
|
53
56
|
|
|
@@ -56,12 +59,11 @@ require('../../chunk-7DNL734S.cjs');
|
|
|
56
59
|
|
|
57
60
|
|
|
58
61
|
|
|
59
|
-
var
|
|
62
|
+
var _chunkMMOODW57cjs = require('../../chunk-MMOODW57.cjs');
|
|
60
63
|
require('../../chunk-MGHIV4L6.cjs');
|
|
61
|
-
require('../../chunk-
|
|
62
|
-
require('../../chunk-
|
|
63
|
-
require('../../chunk-
|
|
64
|
-
require('../../chunk-RDW5JAME.cjs');
|
|
64
|
+
require('../../chunk-RKV5B7EU.cjs');
|
|
65
|
+
require('../../chunk-QZVSJF2K.cjs');
|
|
66
|
+
require('../../chunk-RALRPFDW.cjs');
|
|
65
67
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
66
68
|
|
|
67
69
|
|
|
@@ -357,7 +359,7 @@ function useMeetingBooking(options) {
|
|
|
357
359
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
358
360
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
359
361
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
360
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
362
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkVESKITRQcjs.MAX_MONTH_OFFSET, offset)));
|
|
361
363
|
}, []);
|
|
362
364
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
363
365
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -370,7 +372,7 @@ function useMeetingBooking(options) {
|
|
|
370
372
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
371
373
|
queryFn: async ({ signal }) => {
|
|
372
374
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
373
|
-
const res = await
|
|
375
|
+
const res = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
374
376
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
375
377
|
return await res.json();
|
|
376
378
|
},
|
|
@@ -387,7 +389,7 @@ function useMeetingBooking(options) {
|
|
|
387
389
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
388
390
|
mutationFn: async (payload) => {
|
|
389
391
|
try {
|
|
390
|
-
const res = await
|
|
392
|
+
const res = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
391
393
|
method: "POST",
|
|
392
394
|
headers: { "Content-Type": "application/json" },
|
|
393
395
|
body: JSON.stringify(payload)
|
|
@@ -487,7 +489,7 @@ var FIELD_CONTROLS = {
|
|
|
487
489
|
}
|
|
488
490
|
),
|
|
489
491
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
-
|
|
492
|
+
_chunkVESKITRQcjs.Textarea,
|
|
491
493
|
{
|
|
492
494
|
id,
|
|
493
495
|
required: field.required,
|
|
@@ -543,18 +545,18 @@ var FIELD_CONTROLS = {
|
|
|
543
545
|
{
|
|
544
546
|
control,
|
|
545
547
|
name: registerName,
|
|
546
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
548
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVESKITRQcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
547
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
550
|
+
_chunkVESKITRQcjs.SelectTrigger,
|
|
549
551
|
{
|
|
550
552
|
id,
|
|
551
553
|
"aria-required": field.required || void 0,
|
|
552
554
|
"aria-invalid": Boolean(error),
|
|
553
555
|
invalid: Boolean(error),
|
|
554
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
556
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
555
557
|
}
|
|
556
558
|
),
|
|
557
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
558
560
|
] })
|
|
559
561
|
}
|
|
560
562
|
),
|
|
@@ -564,14 +566,14 @@ var FIELD_CONTROLS = {
|
|
|
564
566
|
control,
|
|
565
567
|
name: registerName,
|
|
566
568
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
569
|
+
_chunkVESKITRQcjs.RadioGroup,
|
|
568
570
|
{
|
|
569
571
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
570
572
|
onValueChange: rhf.onChange,
|
|
571
573
|
"aria-required": field.required || void 0,
|
|
572
574
|
"aria-invalid": Boolean(error),
|
|
573
575
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
575
577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBM5MVGH3cjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
576
578
|
] }, opt))
|
|
577
579
|
}
|
|
@@ -710,7 +712,7 @@ function BookingForm({
|
|
|
710
712
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
711
713
|
[supportedFields]
|
|
712
714
|
);
|
|
713
|
-
const formRescue =
|
|
715
|
+
const formRescue = _chunk2QEUFXNScjs.useRescuedForm.call(void 0,
|
|
714
716
|
{ watch, getValues, setValue },
|
|
715
717
|
{
|
|
716
718
|
rescue,
|
|
@@ -719,7 +721,7 @@ function BookingForm({
|
|
|
719
721
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
720
722
|
}
|
|
721
723
|
);
|
|
722
|
-
const { toast } =
|
|
724
|
+
const { toast } = _chunk2QEUFXNScjs.useToast.call(void 0, );
|
|
723
725
|
const onInvalid = () => {
|
|
724
726
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
725
727
|
toast({
|
|
@@ -807,8 +809,8 @@ function BookingForm({
|
|
|
807
809
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
808
810
|
}
|
|
809
811
|
);
|
|
810
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
811
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
812
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkVESKITRQcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
813
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.HoneypotField, { ...honeypotInputProps }),
|
|
812
814
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
813
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("|"))),
|
|
814
816
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -821,7 +823,7 @@ function BookingForm({
|
|
|
821
823
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
822
824
|
] }),
|
|
823
825
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
-
|
|
826
|
+
_chunkVESKITRQcjs.CheckboxBlock,
|
|
825
827
|
{
|
|
826
828
|
id: "ms-host-consent",
|
|
827
829
|
checked: consented,
|
|
@@ -856,7 +858,7 @@ function BookingForm({
|
|
|
856
858
|
// same block the waitlist form uses): box + label in one
|
|
857
859
|
// bordered row.
|
|
858
860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
859
|
-
|
|
861
|
+
_chunkVESKITRQcjs.CheckboxBlock,
|
|
860
862
|
{
|
|
861
863
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
862
864
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -922,7 +924,7 @@ function skeletonRows(fieldRows) {
|
|
|
922
924
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
923
925
|
|
|
924
926
|
function Confirmation({ confirmation, timezone }) {
|
|
925
|
-
const when =
|
|
927
|
+
const when = _chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
926
928
|
viewerLocale: true
|
|
927
929
|
});
|
|
928
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: [
|
|
@@ -932,7 +934,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
932
934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
933
935
|
when,
|
|
934
936
|
" \xB7 ",
|
|
935
|
-
|
|
937
|
+
_chunkMMOODW57cjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
936
938
|
] }),
|
|
937
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." })
|
|
938
940
|
] });
|
|
@@ -953,7 +955,7 @@ function ContextPanelSkeleton({
|
|
|
953
955
|
backLabel = "Back"
|
|
954
956
|
}) {
|
|
955
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
956
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
957
959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
958
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
959
961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] content-lg:flex-none", children: [
|
|
@@ -989,13 +991,13 @@ function SchedulerContextPanel({
|
|
|
989
991
|
className
|
|
990
992
|
}) {
|
|
991
993
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
992
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
994
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
993
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
994
996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
995
997
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
996
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: [
|
|
997
999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
998
|
-
|
|
1000
|
+
_chunkMMOODW57cjs.SquareAvatar,
|
|
999
1001
|
{
|
|
1000
1002
|
variant: "round",
|
|
1001
1003
|
size: "sm",
|
|
@@ -1010,7 +1012,7 @@ function SchedulerContextPanel({
|
|
|
1010
1012
|
] })
|
|
1011
1013
|
] }, host.name)) }),
|
|
1012
1014
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMOODW57cjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1014
1016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1015
1017
|
hosts.length,
|
|
1016
1018
|
" hosts on this calendar"
|
|
@@ -1020,7 +1022,7 @@ function SchedulerContextPanel({
|
|
|
1020
1022
|
// Post-selection, or a link that offers one length: a static line,
|
|
1021
1023
|
// which is what sits beside the host on the header-strip layouts.
|
|
1022
1024
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1023
|
-
|
|
1025
|
+
_chunkMMOODW57cjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1024
1026
|
" call"
|
|
1025
1027
|
] })
|
|
1026
1028
|
) : null
|
|
@@ -1036,7 +1038,7 @@ function SchedulerContextPanel({
|
|
|
1036
1038
|
size: "small-legacy",
|
|
1037
1039
|
disabled,
|
|
1038
1040
|
onClick: () => onSelectDuration(ms),
|
|
1039
|
-
children:
|
|
1041
|
+
children: _chunkMMOODW57cjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1040
1042
|
},
|
|
1041
1043
|
ms
|
|
1042
1044
|
)) })
|
|
@@ -1051,7 +1053,7 @@ function SchedulerContextPanel({
|
|
|
1051
1053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
1052
1054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1053
1055
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1054
|
-
|
|
1056
|
+
_chunkVESKITRQcjs.TimezoneSelect,
|
|
1055
1057
|
{
|
|
1056
1058
|
value: timezone,
|
|
1057
1059
|
disabled,
|
|
@@ -1083,7 +1085,7 @@ function dateFromDayKey(key) {
|
|
|
1083
1085
|
return new Date(y, m - 1, d, 12);
|
|
1084
1086
|
}
|
|
1085
1087
|
function timeLabelInZone(ms, timeZone) {
|
|
1086
|
-
return
|
|
1088
|
+
return _chunkMMOODW57cjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1087
1089
|
}
|
|
1088
1090
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
1089
1091
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1127,25 +1129,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border content-md:border-b-0 content-m
|
|
|
1127
1129
|
function monthLabelFor(offset) {
|
|
1128
1130
|
const now = /* @__PURE__ */ new Date();
|
|
1129
1131
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1130
|
-
return
|
|
1132
|
+
return _chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, month, _chunkMMOODW57cjs.VIEWER_TIMEZONE, "monthYear");
|
|
1131
1133
|
}
|
|
1132
1134
|
var DISABLE_EVERY_DAY = () => true;
|
|
1133
1135
|
var NOOP = () => void 0;
|
|
1134
1136
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1135
1137
|
const now = /* @__PURE__ */ new Date();
|
|
1136
1138
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1137
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1139
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkVESKITRQcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1138
1140
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1139
1141
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1140
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,
|
|
1141
|
-
|
|
1143
|
+
_chunkVESKITRQcjs.DatePickerCalendar,
|
|
1142
1144
|
{
|
|
1143
1145
|
mode: "single",
|
|
1144
1146
|
bare: true,
|
|
1145
1147
|
month: visibleMonth,
|
|
1146
1148
|
onMonthChange: (month) => {
|
|
1147
1149
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1148
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1150
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkVESKITRQcjs.MAX_MONTH_OFFSET, offset)));
|
|
1149
1151
|
},
|
|
1150
1152
|
fromDate: startMonth,
|
|
1151
1153
|
toDate: endMonth,
|
|
@@ -1232,7 +1234,7 @@ function SlotPicker({
|
|
|
1232
1234
|
)
|
|
1233
1235
|
] }),
|
|
1234
1236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"), children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1235
|
-
/* @__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: _chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkMMOODW57cjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1236
1238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1237
1239
|
const isSelected = selectedSlot === ms;
|
|
1238
1240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1261,7 +1263,7 @@ function SlotPicker({
|
|
|
1261
1263
|
monthLabelFor(monthOffset),
|
|
1262
1264
|
"."
|
|
1263
1265
|
] }),
|
|
1264
|
-
monthOffset <
|
|
1266
|
+
monthOffset < _chunkVESKITRQcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1265
1267
|
_chunkDFQYAYBHcjs.Button,
|
|
1266
1268
|
{
|
|
1267
1269
|
variant: "outline",
|
|
@@ -1283,10 +1285,10 @@ function SlotPicker({
|
|
|
1283
1285
|
|
|
1284
1286
|
|
|
1285
1287
|
function useNextAvailableLabel(ms) {
|
|
1286
|
-
const hydrated =
|
|
1288
|
+
const hydrated = _chunk3MX5S4CFcjs.useIsHydrated.call(void 0, );
|
|
1287
1289
|
return _react.useMemo.call(void 0, () => {
|
|
1288
1290
|
if (!hydrated || ms == null) return null;
|
|
1289
|
-
return
|
|
1291
|
+
return _chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, ms, _chunkMMOODW57cjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1290
1292
|
}, [hydrated, ms]);
|
|
1291
1293
|
}
|
|
1292
1294
|
function DirectoryRow({
|
|
@@ -1297,7 +1299,7 @@ function DirectoryRow({
|
|
|
1297
1299
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1298
1300
|
const subtitle = [
|
|
1299
1301
|
link.description,
|
|
1300
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1302
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkMMOODW57cjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1301
1303
|
link.kind === "team" ? "Team" : null
|
|
1302
1304
|
].filter(Boolean).join(" \u2022 ");
|
|
1303
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1311,8 +1313,8 @@ function DirectoryRow({
|
|
|
1311
1313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1312
1314
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1313
1315
|
] }),
|
|
1314
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1316
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMOODW57cjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
1317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMOODW57cjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1316
1318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center content-md:flex", children: [
|
|
1317
1319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1318
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, () => ( " ")) })
|
|
@@ -1360,7 +1362,7 @@ function MeetingSchedulerDirectory({
|
|
|
1360
1362
|
setError(null);
|
|
1361
1363
|
try {
|
|
1362
1364
|
const qs = includeAll ? "?scope=all" : "";
|
|
1363
|
-
const res = await
|
|
1365
|
+
const res = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
1364
1366
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
1365
1367
|
const payload = await res.json();
|
|
1366
1368
|
if (active) setData(payload);
|
|
@@ -1381,7 +1383,7 @@ function MeetingSchedulerDirectory({
|
|
|
1381
1383
|
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _40 => _40.purposes]), () => ( []));
|
|
1382
1384
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1383
1385
|
}, [data]);
|
|
1384
|
-
const totalPages =
|
|
1386
|
+
const totalPages = _chunkABU3TGXAcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
1385
1387
|
const pageRows = rows.slice((page - 1) * pageSize, page * pageSize);
|
|
1386
1388
|
const rowsMinHeight = pageSize * 80 + (pageSize - 1) * 16;
|
|
1387
1389
|
if (isLoading && !data) {
|
|
@@ -1392,7 +1394,7 @@ function MeetingSchedulerDirectory({
|
|
|
1392
1394
|
}
|
|
1393
1395
|
if (error) {
|
|
1394
1396
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1395
|
-
|
|
1397
|
+
_chunkOHFS7VOUcjs.EmptyState,
|
|
1396
1398
|
{
|
|
1397
1399
|
type: "generic",
|
|
1398
1400
|
title: "We couldn't load available call times",
|
|
@@ -1403,7 +1405,7 @@ function MeetingSchedulerDirectory({
|
|
|
1403
1405
|
}
|
|
1404
1406
|
if (rows.length === 0) {
|
|
1405
1407
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1406
|
-
|
|
1408
|
+
_chunkOHFS7VOUcjs.EmptyState,
|
|
1407
1409
|
{
|
|
1408
1410
|
type: "generic",
|
|
1409
1411
|
title: "No call times are published right now",
|
|
@@ -1415,7 +1417,7 @@ function MeetingSchedulerDirectory({
|
|
|
1415
1417
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1416
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)) }),
|
|
1417
1419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1418
|
-
|
|
1420
|
+
_chunkD7BTSVMScjs.PersistentPaginationWrapper,
|
|
1419
1421
|
{
|
|
1420
1422
|
isLoading,
|
|
1421
1423
|
currentPage: page,
|
|
@@ -1516,7 +1518,7 @@ function HubSpotMeetingScheduler({
|
|
|
1516
1518
|
isSubmitting
|
|
1517
1519
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1518
1520
|
const detailsFirst = flow === "details-first";
|
|
1519
|
-
const hydrated =
|
|
1521
|
+
const hydrated = _chunk3MX5S4CFcjs.useIsHydrated.call(void 0, );
|
|
1520
1522
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1521
1523
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1522
1524
|
if (!hydrated) return null;
|
|
@@ -1549,8 +1551,8 @@ function HubSpotMeetingScheduler({
|
|
|
1549
1551
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1550
1552
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1551
1553
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1552
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1553
|
-
const { toast } =
|
|
1554
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk2QEUFXNScjs.useHumanitySignals.call(void 0, );
|
|
1555
|
+
const { toast } = _chunk2QEUFXNScjs.useToast.call(void 0, );
|
|
1554
1556
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1555
1557
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1556
1558
|
if (machineFor !== meetingId) {
|
|
@@ -1624,7 +1626,7 @@ function HubSpotMeetingScheduler({
|
|
|
1624
1626
|
return;
|
|
1625
1627
|
}
|
|
1626
1628
|
if (result.ok && result.confirmation) {
|
|
1627
|
-
|
|
1629
|
+
_chunk2QEUFXNScjs.completeFormRescue.call(void 0, rescue, payload[_chunk2QEUFXNScjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1628
1630
|
setConfirmation(result.confirmation);
|
|
1629
1631
|
setStep("confirmed");
|
|
1630
1632
|
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
@@ -1720,10 +1722,10 @@ function HubSpotMeetingScheduler({
|
|
|
1720
1722
|
durations.length > 0
|
|
1721
1723
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
1722
1724
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1723
|
-
|
|
1725
|
+
_chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1724
1726
|
" \xB7",
|
|
1725
1727
|
" ",
|
|
1726
|
-
|
|
1728
|
+
_chunkMMOODW57cjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1727
1729
|
] }),
|
|
1728
1730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
1731
|
DetailsForm,
|
|
@@ -1747,11 +1749,11 @@ function HubSpotMeetingScheduler({
|
|
|
1747
1749
|
)
|
|
1748
1750
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
1749
1751
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1750
|
-
|
|
1752
|
+
_chunkVESKITRQcjs.Alert,
|
|
1751
1753
|
{
|
|
1752
1754
|
variant: "warning",
|
|
1753
1755
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
1754
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1756
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1755
1757
|
}
|
|
1756
1758
|
),
|
|
1757
1759
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-5HBHO5TB.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-MFFCUVWG.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-FCGC42TS.js";
|
|
28
28
|
import "../../chunk-LQYXMEYF.js";
|
|
29
29
|
import "../../chunk-4JPLYOS6.js";
|
|
30
30
|
import {
|
|
@@ -33,21 +33,24 @@ import {
|
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-MKXO4Q5P.js";
|
|
37
37
|
import "../../chunk-HFL2F4RM.js";
|
|
38
38
|
import "../../chunk-UT4YHQZW.js";
|
|
39
39
|
import {
|
|
40
40
|
contentFetch,
|
|
41
41
|
pageCount
|
|
42
|
-
} from "../../chunk-
|
|
42
|
+
} from "../../chunk-MP2C3LJ4.js";
|
|
43
43
|
import {
|
|
44
44
|
Checkbox
|
|
45
45
|
} from "../../chunk-PLWMIU72.js";
|
|
46
46
|
import {
|
|
47
47
|
useIsHydrated
|
|
48
|
-
} from "../../chunk-
|
|
49
|
-
import "../../chunk-
|
|
48
|
+
} from "../../chunk-7VVFKJY5.js";
|
|
49
|
+
import "../../chunk-PDWVPI3S.js";
|
|
50
50
|
import "../../chunk-GY4IZG22.js";
|
|
51
|
+
import "../../chunk-2YXVWZVF.js";
|
|
52
|
+
import "../../chunk-Z2VNQQ74.js";
|
|
53
|
+
import "../../chunk-OSIKGEBU.js";
|
|
51
54
|
import {
|
|
52
55
|
AvatarStack,
|
|
53
56
|
SquareAvatar,
|
|
@@ -56,12 +59,11 @@ import {
|
|
|
56
59
|
formatDateWithTimezone,
|
|
57
60
|
formatDurationCompact,
|
|
58
61
|
formatTimeWithTimezone
|
|
59
|
-
} from "../../chunk-
|
|
62
|
+
} from "../../chunk-CH5232HV.js";
|
|
60
63
|
import "../../chunk-FBZMAPWO.js";
|
|
61
|
-
import "../../chunk-
|
|
62
|
-
import "../../chunk-
|
|
63
|
-
import "../../chunk-
|
|
64
|
-
import "../../chunk-OSIKGEBU.js";
|
|
64
|
+
import "../../chunk-NDESEPW5.js";
|
|
65
|
+
import "../../chunk-O43V3EOS.js";
|
|
66
|
+
import "../../chunk-LMBC5FFP.js";
|
|
65
67
|
import "../../chunk-E4ABZWTJ.js";
|
|
66
68
|
import {
|
|
67
69
|
FieldWrapper,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeaderConfig } from './header';
|
|
3
|
+
export interface ClientOnlyHeaderProps {
|
|
4
|
+
config: HeaderConfig;
|
|
5
|
+
skeleton?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function ClientOnlyHeader({ config, skeleton }: ClientOnlyHeaderProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=client-only-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-only-header.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/client-only-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAGrD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,ySAS3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HeaderConfig } from '../../types/navigation';
|
|
2
|
+
export interface HeaderSkeletonProps {
|
|
3
|
+
config?: HeaderConfig;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Loading skeleton mirroring the unified ODS top-navigation geometry
|
|
7
|
+
* (`TopNavigation`, Figma 2797-5978): 48px mobile / 56px md+, cell model.
|
|
8
|
+
* Keep in sync with `header.tsx` — a diverging skeleton makes the
|
|
9
|
+
* skeleton→live handoff jump.
|
|
10
|
+
*/
|
|
11
|
+
export declare function HeaderSkeleton({ config }: HeaderSkeletonProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=header-skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/header-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BA4D7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HeaderConfig } from '../../types/navigation';
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
config: HeaderConfig;
|
|
5
|
+
platform?: string;
|
|
6
|
+
}
|
|
7
|
+
export type { HeaderConfig } from '../../types/navigation';
|
|
8
|
+
export declare function Header({ config }: HeaderProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,wBAAwB,CAAC;AAU3E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAO3D,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,qBAiZ7C"}
|