@flamingo-stack/openframe-frontend-core 0.0.705 → 0.0.706-snapshot.20261006181108
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/chat-protocol/index.cjs +23 -14
- package/dist/chat-protocol/index.js +23 -14
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +11 -2
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
- package/dist/{chunk-QFXRPRFT.js → chunk-2YHNQAMU.js} +3 -3
- package/dist/{chunk-YHM5AWTT.js → chunk-3FZP73R4.js} +6 -6
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-AQWZNP6A.js → chunk-4RVC6TCE.js} +4 -4
- package/dist/{chunk-OUY3HHW6.cjs → chunk-4UMOD5NU.cjs} +928 -539
- package/dist/{chunk-IKTQ3ZAG.cjs → chunk-54L6NMKQ.cjs} +6 -6
- package/dist/{chunk-A75QY6CD.cjs → chunk-56LOCS37.cjs} +21 -21
- package/dist/{chunk-WA6GUYQ4.cjs → chunk-5CMYEGHE.cjs} +104 -104
- package/dist/{chunk-VA5T32XA.js → chunk-632NGOIH.js} +2 -2
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-VESKITRQ.cjs → chunk-7XVBJDH7.cjs} +728 -732
- package/dist/{chunk-3MX5S4CF.cjs → chunk-AGNG62O2.cjs} +905 -2564
- package/dist/{chunk-ZSAO2HBW.js → chunk-BETJB7UV.js} +15 -15
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-PDWVPI3S.js → chunk-CZ7Y7UG4.js} +4 -72
- package/dist/{chunk-F6I6XZMN.js → chunk-E2TQZIOJ.js} +5 -5
- package/dist/{chunk-X5MQ7JRP.js → chunk-ECXW3RIH.js} +9 -9
- package/dist/{chunk-JEZKGCZI.cjs → chunk-EUSDLX5W.cjs} +26 -26
- package/dist/{chunk-6NJKKO73.cjs → chunk-F4E3L3KV.cjs} +15 -15
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-F6AFPNDF.js → chunk-FBY4V3YS.js} +15 -15
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-FCGC42TS.js → chunk-HTBN3XYF.js} +57 -61
- package/dist/{chunk-ZSAGLQOD.cjs → chunk-I43ZVJRL.cjs} +17 -17
- package/dist/{chunk-7VVFKJY5.js → chunk-IBQZMRWO.js} +1796 -3455
- package/dist/{chunk-4KX6OED2.cjs → chunk-JFSLQ2XS.cjs} +46 -46
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-MKXO4Q5P.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-4I45Y3DN.cjs → chunk-L3Q7R7CQ.cjs} +6 -6
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-PN2RKPDF.js → chunk-LSQPH73L.js} +10 -10
- package/dist/{chunk-HPWWNJE7.cjs → chunk-MY3JYZQY.cjs} +89 -89
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-KOWVJD4V.cjs → chunk-O6WNIA6W.cjs} +56 -56
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-DW7G4KG3.js → chunk-RZNRVXHH.js} +3 -3
- package/dist/{chunk-G5A3PSPV.js → chunk-SGJP2WKD.js} +1080 -691
- package/dist/{chunk-7LS22BZU.cjs → chunk-STXYW25T.cjs} +14 -14
- package/dist/{chunk-YFBM2K6X.cjs → chunk-TB5EDWRC.cjs} +4 -4
- package/dist/{chunk-RBDP4WDE.js → chunk-U6BWEKJC.js} +6 -6
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-TYWLNCNH.cjs → chunk-UVTD52MD.cjs} +14 -82
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-2QEUFXNS.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-IHERL5V4.cjs → chunk-WXAT5C4C.cjs} +34 -34
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-6SEANMOU.js → chunk-Y5VSOYPS.js} +11 -11
- package/dist/{chunk-DENB2XJC.js → chunk-YQWTGQG5.js} +2 -2
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -11
- package/dist/components/chat/index.js +14 -16
- package/dist/components/chat/types/message.types.d.ts +20 -16
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +86 -159
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +329 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/index.cjs +28 -16
- package/dist/components/navigation/index.d.ts +14 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +38 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- 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 +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +12 -14
- package/dist/components/ui/index.js +17 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +55 -22
- package/dist/index.js +229 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/chat-protocol/nats-decoder.ts +10 -8
- package/src/chat-protocol/source-metadata.ts +25 -2
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/types/message.types.ts +21 -15
- package/src/components/chat/types/unified-chat-state.types.ts +1 -1
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/chat/utils/process-historical-messages.ts +12 -4
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/index.ts +21 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -7,7 +7,7 @@ interface PageLayoutSkeletonProps {
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function AnnouncementBarSkeleton(): React.JSX.Element;
|
|
9
9
|
/**
|
|
10
|
-
* Header skeleton that
|
|
10
|
+
* Header skeleton for a page that is still loading: logo, navigation and action placeholders
|
|
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 _chunkY2GSOUCScjs = require('../../chunk-Y2GSOUCS.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPLYEKV3Ncjs = require('../../chunk-PLYEKV3N.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ var _chunkOHFS7VOUcjs = require('../../chunk-OHFS7VOU.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7XVBJDH7cjs = require('../../chunk-7XVBJDH7.cjs');
|
|
28
28
|
require('../../chunk-HQQE74RO.cjs');
|
|
29
29
|
require('../../chunk-DEY6XXGO.cjs');
|
|
30
30
|
|
|
@@ -33,24 +33,21 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkWCVZCGK5cjs = require('../../chunk-WCVZCGK5.cjs');
|
|
37
37
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
38
38
|
require('../../chunk-BIZNSF3U.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkOF6GEI5Acjs = require('../../chunk-OF6GEI5A.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
49
|
-
require('../../chunk-
|
|
48
|
+
var _chunkAGNG62O2cjs = require('../../chunk-AGNG62O2.cjs');
|
|
49
|
+
require('../../chunk-UVTD52MD.cjs');
|
|
50
50
|
require('../../chunk-7DNL734S.cjs');
|
|
51
|
-
require('../../chunk-X72J4ACL.cjs');
|
|
52
|
-
require('../../chunk-N3COXDBH.cjs');
|
|
53
|
-
require('../../chunk-RDW5JAME.cjs');
|
|
54
51
|
|
|
55
52
|
|
|
56
53
|
|
|
@@ -59,11 +56,12 @@ require('../../chunk-RDW5JAME.cjs');
|
|
|
59
56
|
|
|
60
57
|
|
|
61
58
|
|
|
62
|
-
var
|
|
59
|
+
var _chunk6NTPY5QAcjs = require('../../chunk-6NTPY5QA.cjs');
|
|
63
60
|
require('../../chunk-MGHIV4L6.cjs');
|
|
64
|
-
require('../../chunk-
|
|
65
|
-
require('../../chunk-
|
|
66
|
-
require('../../chunk-
|
|
61
|
+
require('../../chunk-LM7TXMLU.cjs');
|
|
62
|
+
require('../../chunk-LLSUVPQC.cjs');
|
|
63
|
+
require('../../chunk-VX4E6YSB.cjs');
|
|
64
|
+
require('../../chunk-RDW5JAME.cjs');
|
|
67
65
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
68
66
|
|
|
69
67
|
|
|
@@ -359,7 +357,7 @@ function useMeetingBooking(options) {
|
|
|
359
357
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
360
358
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
361
359
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
362
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
360
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunk7XVBJDH7cjs.MAX_MONTH_OFFSET, offset)));
|
|
363
361
|
}, []);
|
|
364
362
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
365
363
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -372,7 +370,7 @@ function useMeetingBooking(options) {
|
|
|
372
370
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
373
371
|
queryFn: async ({ signal }) => {
|
|
374
372
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
375
|
-
const res = await
|
|
373
|
+
const res = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
376
374
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
377
375
|
return await res.json();
|
|
378
376
|
},
|
|
@@ -389,7 +387,7 @@ function useMeetingBooking(options) {
|
|
|
389
387
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
390
388
|
mutationFn: async (payload) => {
|
|
391
389
|
try {
|
|
392
|
-
const res = await
|
|
390
|
+
const res = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
393
391
|
method: "POST",
|
|
394
392
|
headers: { "Content-Type": "application/json" },
|
|
395
393
|
body: JSON.stringify(payload)
|
|
@@ -489,7 +487,7 @@ var FIELD_CONTROLS = {
|
|
|
489
487
|
}
|
|
490
488
|
),
|
|
491
489
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
490
|
+
_chunk7XVBJDH7cjs.Textarea,
|
|
493
491
|
{
|
|
494
492
|
id,
|
|
495
493
|
required: field.required,
|
|
@@ -545,18 +543,18 @@ var FIELD_CONTROLS = {
|
|
|
545
543
|
{
|
|
546
544
|
control,
|
|
547
545
|
name: registerName,
|
|
548
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
546
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XVBJDH7cjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
549
547
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
|
|
548
|
+
_chunk7XVBJDH7cjs.SelectTrigger,
|
|
551
549
|
{
|
|
552
550
|
id,
|
|
553
551
|
"aria-required": field.required || void 0,
|
|
554
552
|
"aria-invalid": Boolean(error),
|
|
555
553
|
invalid: Boolean(error),
|
|
556
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectValue, { placeholder: "Select\u2026" })
|
|
557
555
|
}
|
|
558
556
|
),
|
|
559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
557
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
560
558
|
] })
|
|
561
559
|
}
|
|
562
560
|
),
|
|
@@ -566,14 +564,14 @@ var FIELD_CONTROLS = {
|
|
|
566
564
|
control,
|
|
567
565
|
name: registerName,
|
|
568
566
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
569
|
-
|
|
567
|
+
_chunk7XVBJDH7cjs.RadioGroup,
|
|
570
568
|
{
|
|
571
569
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
572
570
|
onValueChange: rhf.onChange,
|
|
573
571
|
"aria-required": field.required || void 0,
|
|
574
572
|
"aria-invalid": Boolean(error),
|
|
575
573
|
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,
|
|
574
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
577
575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBM5MVGH3cjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
578
576
|
] }, opt))
|
|
579
577
|
}
|
|
@@ -712,7 +710,7 @@ function BookingForm({
|
|
|
712
710
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
713
711
|
[supportedFields]
|
|
714
712
|
);
|
|
715
|
-
const formRescue =
|
|
713
|
+
const formRescue = _chunkWCVZCGK5cjs.useRescuedForm.call(void 0,
|
|
716
714
|
{ watch, getValues, setValue },
|
|
717
715
|
{
|
|
718
716
|
rescue,
|
|
@@ -721,7 +719,7 @@ function BookingForm({
|
|
|
721
719
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
722
720
|
}
|
|
723
721
|
);
|
|
724
|
-
const { toast } =
|
|
722
|
+
const { toast } = _chunkWCVZCGK5cjs.useToast.call(void 0, );
|
|
725
723
|
const onInvalid = () => {
|
|
726
724
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
727
725
|
toast({
|
|
@@ -809,8 +807,8 @@ function BookingForm({
|
|
|
809
807
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
810
808
|
}
|
|
811
809
|
);
|
|
812
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
813
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
810
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunk7XVBJDH7cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.HoneypotField, { ...honeypotInputProps }),
|
|
814
812
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
815
813
|
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
814
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -823,7 +821,7 @@ function BookingForm({
|
|
|
823
821
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
824
822
|
] }),
|
|
825
823
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
-
|
|
824
|
+
_chunk7XVBJDH7cjs.CheckboxBlock,
|
|
827
825
|
{
|
|
828
826
|
id: "ms-host-consent",
|
|
829
827
|
checked: consented,
|
|
@@ -858,7 +856,7 @@ function BookingForm({
|
|
|
858
856
|
// same block the waitlist form uses): box + label in one
|
|
859
857
|
// bordered row.
|
|
860
858
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
861
|
-
|
|
859
|
+
_chunk7XVBJDH7cjs.CheckboxBlock,
|
|
862
860
|
{
|
|
863
861
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
864
862
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -924,7 +922,7 @@ function skeletonRows(fieldRows) {
|
|
|
924
922
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
925
923
|
|
|
926
924
|
function Confirmation({ confirmation, timezone }) {
|
|
927
|
-
const when =
|
|
925
|
+
const when = _chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
928
926
|
viewerLocale: true
|
|
929
927
|
});
|
|
930
928
|
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 +932,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
934
932
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
935
933
|
when,
|
|
936
934
|
" \xB7 ",
|
|
937
|
-
|
|
935
|
+
_chunk6NTPY5QAcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
938
936
|
] }),
|
|
939
937
|
/* @__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
938
|
] });
|
|
@@ -955,7 +953,7 @@ function ContextPanelSkeleton({
|
|
|
955
953
|
backLabel = "Back"
|
|
956
954
|
}) {
|
|
957
955
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
958
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
959
957
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
960
958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
961
959
|
/* @__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: [
|
|
@@ -991,13 +989,13 @@ function SchedulerContextPanel({
|
|
|
991
989
|
className
|
|
992
990
|
}) {
|
|
993
991
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
994
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
992
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
995
993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
996
994
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
997
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
998
996
|
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
997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1000
|
-
|
|
998
|
+
_chunk6NTPY5QAcjs.SquareAvatar,
|
|
1001
999
|
{
|
|
1002
1000
|
variant: "round",
|
|
1003
1001
|
size: "sm",
|
|
@@ -1012,7 +1010,7 @@ function SchedulerContextPanel({
|
|
|
1012
1010
|
] })
|
|
1013
1011
|
] }, host.name)) }),
|
|
1014
1012
|
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,
|
|
1013
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1016
1014
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1017
1015
|
hosts.length,
|
|
1018
1016
|
" hosts on this calendar"
|
|
@@ -1022,7 +1020,7 @@ function SchedulerContextPanel({
|
|
|
1022
1020
|
// Post-selection, or a link that offers one length: a static line,
|
|
1023
1021
|
// which is what sits beside the host on the header-strip layouts.
|
|
1024
1022
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1025
|
-
|
|
1023
|
+
_chunk6NTPY5QAcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1026
1024
|
" call"
|
|
1027
1025
|
] })
|
|
1028
1026
|
) : null
|
|
@@ -1038,7 +1036,7 @@ function SchedulerContextPanel({
|
|
|
1038
1036
|
size: "small-legacy",
|
|
1039
1037
|
disabled,
|
|
1040
1038
|
onClick: () => onSelectDuration(ms),
|
|
1041
|
-
children:
|
|
1039
|
+
children: _chunk6NTPY5QAcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1042
1040
|
},
|
|
1043
1041
|
ms
|
|
1044
1042
|
)) })
|
|
@@ -1053,7 +1051,7 @@ function SchedulerContextPanel({
|
|
|
1053
1051
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
1054
1052
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1055
1053
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1054
|
+
_chunk7XVBJDH7cjs.TimezoneSelect,
|
|
1057
1055
|
{
|
|
1058
1056
|
value: timezone,
|
|
1059
1057
|
disabled,
|
|
@@ -1085,7 +1083,7 @@ function dateFromDayKey(key) {
|
|
|
1085
1083
|
return new Date(y, m - 1, d, 12);
|
|
1086
1084
|
}
|
|
1087
1085
|
function timeLabelInZone(ms, timeZone) {
|
|
1088
|
-
return
|
|
1086
|
+
return _chunk6NTPY5QAcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1089
1087
|
}
|
|
1090
1088
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
1091
1089
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1129,25 +1127,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border content-md:border-b-0 content-m
|
|
|
1129
1127
|
function monthLabelFor(offset) {
|
|
1130
1128
|
const now = /* @__PURE__ */ new Date();
|
|
1131
1129
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1132
|
-
return
|
|
1130
|
+
return _chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, month, _chunk6NTPY5QAcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1133
1131
|
}
|
|
1134
1132
|
var DISABLE_EVERY_DAY = () => true;
|
|
1135
1133
|
var NOOP = () => void 0;
|
|
1136
1134
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1137
1135
|
const now = /* @__PURE__ */ new Date();
|
|
1138
1136
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1139
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1137
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunk7XVBJDH7cjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1140
1138
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1141
1139
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1142
1140
|
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
|
-
|
|
1141
|
+
_chunk7XVBJDH7cjs.DatePickerCalendar,
|
|
1144
1142
|
{
|
|
1145
1143
|
mode: "single",
|
|
1146
1144
|
bare: true,
|
|
1147
1145
|
month: visibleMonth,
|
|
1148
1146
|
onMonthChange: (month) => {
|
|
1149
1147
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1150
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1148
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunk7XVBJDH7cjs.MAX_MONTH_OFFSET, offset)));
|
|
1151
1149
|
},
|
|
1152
1150
|
fromDate: startMonth,
|
|
1153
1151
|
toDate: endMonth,
|
|
@@ -1234,7 +1232,7 @@ function SlotPicker({
|
|
|
1234
1232
|
)
|
|
1235
1233
|
] }),
|
|
1236
1234
|
/* @__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: [
|
|
1237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunk6NTPY5QAcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1238
1236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1239
1237
|
const isSelected = selectedSlot === ms;
|
|
1240
1238
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1263,7 +1261,7 @@ function SlotPicker({
|
|
|
1263
1261
|
monthLabelFor(monthOffset),
|
|
1264
1262
|
"."
|
|
1265
1263
|
] }),
|
|
1266
|
-
monthOffset <
|
|
1264
|
+
monthOffset < _chunk7XVBJDH7cjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1267
1265
|
_chunkDFQYAYBHcjs.Button,
|
|
1268
1266
|
{
|
|
1269
1267
|
variant: "outline",
|
|
@@ -1285,10 +1283,10 @@ function SlotPicker({
|
|
|
1285
1283
|
|
|
1286
1284
|
|
|
1287
1285
|
function useNextAvailableLabel(ms) {
|
|
1288
|
-
const hydrated =
|
|
1286
|
+
const hydrated = _chunkAGNG62O2cjs.useIsHydrated.call(void 0, );
|
|
1289
1287
|
return _react.useMemo.call(void 0, () => {
|
|
1290
1288
|
if (!hydrated || ms == null) return null;
|
|
1291
|
-
return
|
|
1289
|
+
return _chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, ms, _chunk6NTPY5QAcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1292
1290
|
}, [hydrated, ms]);
|
|
1293
1291
|
}
|
|
1294
1292
|
function DirectoryRow({
|
|
@@ -1299,7 +1297,7 @@ function DirectoryRow({
|
|
|
1299
1297
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1300
1298
|
const subtitle = [
|
|
1301
1299
|
link.description,
|
|
1302
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1300
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunk6NTPY5QAcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1303
1301
|
link.kind === "team" ? "Team" : null
|
|
1304
1302
|
].filter(Boolean).join(" \u2022 ");
|
|
1305
1303
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1313,8 +1311,8 @@ function DirectoryRow({
|
|
|
1313
1311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1314
1312
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1315
1313
|
] }),
|
|
1316
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1314
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
1315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1318
1316
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center content-md:flex", children: [
|
|
1319
1317
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1320
1318
|
/* @__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, () => ( " ")) })
|
|
@@ -1362,7 +1360,7 @@ function MeetingSchedulerDirectory({
|
|
|
1362
1360
|
setError(null);
|
|
1363
1361
|
try {
|
|
1364
1362
|
const qs = includeAll ? "?scope=all" : "";
|
|
1365
|
-
const res = await
|
|
1363
|
+
const res = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
1366
1364
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
1367
1365
|
const payload = await res.json();
|
|
1368
1366
|
if (active) setData(payload);
|
|
@@ -1383,7 +1381,7 @@ function MeetingSchedulerDirectory({
|
|
|
1383
1381
|
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _40 => _40.purposes]), () => ( []));
|
|
1384
1382
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1385
1383
|
}, [data]);
|
|
1386
|
-
const totalPages =
|
|
1384
|
+
const totalPages = _chunkOF6GEI5Acjs.pageCount.call(void 0, rows.length, pageSize);
|
|
1387
1385
|
const pageRows = rows.slice((page - 1) * pageSize, page * pageSize);
|
|
1388
1386
|
const rowsMinHeight = pageSize * 80 + (pageSize - 1) * 16;
|
|
1389
1387
|
if (isLoading && !data) {
|
|
@@ -1394,7 +1392,7 @@ function MeetingSchedulerDirectory({
|
|
|
1394
1392
|
}
|
|
1395
1393
|
if (error) {
|
|
1396
1394
|
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,
|
|
1397
|
-
|
|
1395
|
+
_chunkPLYEKV3Ncjs.EmptyState,
|
|
1398
1396
|
{
|
|
1399
1397
|
type: "generic",
|
|
1400
1398
|
title: "We couldn't load available call times",
|
|
@@ -1405,7 +1403,7 @@ function MeetingSchedulerDirectory({
|
|
|
1405
1403
|
}
|
|
1406
1404
|
if (rows.length === 0) {
|
|
1407
1405
|
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,
|
|
1408
|
-
|
|
1406
|
+
_chunkPLYEKV3Ncjs.EmptyState,
|
|
1409
1407
|
{
|
|
1410
1408
|
type: "generic",
|
|
1411
1409
|
title: "No call times are published right now",
|
|
@@ -1417,7 +1415,7 @@ function MeetingSchedulerDirectory({
|
|
|
1417
1415
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1418
1416
|
/* @__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
1417
|
/* @__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,
|
|
1420
|
-
|
|
1418
|
+
_chunkY2GSOUCScjs.PersistentPaginationWrapper,
|
|
1421
1419
|
{
|
|
1422
1420
|
isLoading,
|
|
1423
1421
|
currentPage: page,
|
|
@@ -1518,7 +1516,7 @@ function HubSpotMeetingScheduler({
|
|
|
1518
1516
|
isSubmitting
|
|
1519
1517
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1520
1518
|
const detailsFirst = flow === "details-first";
|
|
1521
|
-
const hydrated =
|
|
1519
|
+
const hydrated = _chunkAGNG62O2cjs.useIsHydrated.call(void 0, );
|
|
1522
1520
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1523
1521
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1524
1522
|
if (!hydrated) return null;
|
|
@@ -1551,8 +1549,8 @@ function HubSpotMeetingScheduler({
|
|
|
1551
1549
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1552
1550
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1553
1551
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1554
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1555
|
-
const { toast } =
|
|
1552
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkWCVZCGK5cjs.useHumanitySignals.call(void 0, );
|
|
1553
|
+
const { toast } = _chunkWCVZCGK5cjs.useToast.call(void 0, );
|
|
1556
1554
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1557
1555
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1558
1556
|
if (machineFor !== meetingId) {
|
|
@@ -1626,7 +1624,7 @@ function HubSpotMeetingScheduler({
|
|
|
1626
1624
|
return;
|
|
1627
1625
|
}
|
|
1628
1626
|
if (result.ok && result.confirmation) {
|
|
1629
|
-
|
|
1627
|
+
_chunkWCVZCGK5cjs.completeFormRescue.call(void 0, rescue, payload[_chunkWCVZCGK5cjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1630
1628
|
setConfirmation(result.confirmation);
|
|
1631
1629
|
setStep("confirmed");
|
|
1632
1630
|
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
@@ -1722,10 +1720,10 @@ function HubSpotMeetingScheduler({
|
|
|
1722
1720
|
durations.length > 0
|
|
1723
1721
|
) : 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: [
|
|
1724
1722
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1725
|
-
|
|
1723
|
+
_chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1726
1724
|
" \xB7",
|
|
1727
1725
|
" ",
|
|
1728
|
-
|
|
1726
|
+
_chunk6NTPY5QAcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1729
1727
|
] }),
|
|
1730
1728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
1729
|
DetailsForm,
|
|
@@ -1749,11 +1747,11 @@ function HubSpotMeetingScheduler({
|
|
|
1749
1747
|
)
|
|
1750
1748
|
] }) : /* @__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: [
|
|
1751
1749
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1752
|
-
|
|
1750
|
+
_chunk7XVBJDH7cjs.Alert,
|
|
1753
1751
|
{
|
|
1754
1752
|
variant: "warning",
|
|
1755
1753
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
1756
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1754
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.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
1755
|
}
|
|
1758
1756
|
),
|
|
1759
1757
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-JPG7OHEG.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-F57ECE2I.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-HTBN3XYF.js";
|
|
28
28
|
import "../../chunk-LQYXMEYF.js";
|
|
29
29
|
import "../../chunk-4JPLYOS6.js";
|
|
30
30
|
import {
|
|
@@ -33,24 +33,21 @@ import {
|
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-KUC673HM.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-CUME3VTQ.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-IBQZMRWO.js";
|
|
49
|
+
import "../../chunk-CZ7Y7UG4.js";
|
|
50
50
|
import "../../chunk-GY4IZG22.js";
|
|
51
|
-
import "../../chunk-2YXVWZVF.js";
|
|
52
|
-
import "../../chunk-Z2VNQQ74.js";
|
|
53
|
-
import "../../chunk-OSIKGEBU.js";
|
|
54
51
|
import {
|
|
55
52
|
AvatarStack,
|
|
56
53
|
SquareAvatar,
|
|
@@ -59,11 +56,12 @@ import {
|
|
|
59
56
|
formatDateWithTimezone,
|
|
60
57
|
formatDurationCompact,
|
|
61
58
|
formatTimeWithTimezone
|
|
62
|
-
} from "../../chunk-
|
|
59
|
+
} from "../../chunk-FI6GMDO7.js";
|
|
63
60
|
import "../../chunk-FBZMAPWO.js";
|
|
64
|
-
import "../../chunk-
|
|
65
|
-
import "../../chunk-
|
|
66
|
-
import "../../chunk-
|
|
61
|
+
import "../../chunk-FXJ3WWUB.js";
|
|
62
|
+
import "../../chunk-N45D4ZXQ.js";
|
|
63
|
+
import "../../chunk-NCPTID44.js";
|
|
64
|
+
import "../../chunk-OSIKGEBU.js";
|
|
67
65
|
import "../../chunk-E4ABZWTJ.js";
|
|
68
66
|
import {
|
|
69
67
|
FieldWrapper,
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var _chunkOUY3HHW6cjs = require('../../chunk-OUY3HHW6.cjs');
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
28
27
|
|
|
29
|
-
var _chunkYFBM2K6Xcjs = require('../../chunk-YFBM2K6X.cjs');
|
|
30
|
-
require('../../chunk-IKTQ3ZAG.cjs');
|
|
31
28
|
|
|
32
29
|
|
|
30
|
+
var _chunk4UMOD5NUcjs = require('../../chunk-4UMOD5NU.cjs');
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
|
|
36
|
+
var _chunkTB5EDWRCcjs = require('../../chunk-TB5EDWRC.cjs');
|
|
37
|
+
require('../../chunk-54L6NMKQ.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -42,25 +42,30 @@ require('../../chunk-IKTQ3ZAG.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var _chunk7XVBJDH7cjs = require('../../chunk-7XVBJDH7.cjs');
|
|
46
53
|
require('../../chunk-HQQE74RO.cjs');
|
|
47
54
|
require('../../chunk-DEY6XXGO.cjs');
|
|
48
|
-
require('../../chunk-
|
|
55
|
+
require('../../chunk-WCVZCGK5.cjs');
|
|
49
56
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
50
57
|
require('../../chunk-BIZNSF3U.cjs');
|
|
51
|
-
require('../../chunk-
|
|
58
|
+
require('../../chunk-OF6GEI5A.cjs');
|
|
52
59
|
require('../../chunk-LX22Y43B.cjs');
|
|
53
|
-
require('../../chunk-
|
|
54
|
-
require('../../chunk-
|
|
60
|
+
require('../../chunk-AGNG62O2.cjs');
|
|
61
|
+
require('../../chunk-UVTD52MD.cjs');
|
|
55
62
|
require('../../chunk-7DNL734S.cjs');
|
|
56
|
-
require('../../chunk-
|
|
57
|
-
require('../../chunk-N3COXDBH.cjs');
|
|
58
|
-
require('../../chunk-RDW5JAME.cjs');
|
|
59
|
-
require('../../chunk-MMOODW57.cjs');
|
|
63
|
+
require('../../chunk-6NTPY5QA.cjs');
|
|
60
64
|
require('../../chunk-MGHIV4L6.cjs');
|
|
61
|
-
require('../../chunk-
|
|
62
|
-
require('../../chunk-
|
|
63
|
-
require('../../chunk-
|
|
65
|
+
require('../../chunk-LM7TXMLU.cjs');
|
|
66
|
+
require('../../chunk-LLSUVPQC.cjs');
|
|
67
|
+
require('../../chunk-VX4E6YSB.cjs');
|
|
68
|
+
require('../../chunk-RDW5JAME.cjs');
|
|
64
69
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
65
70
|
require('../../chunk-BM5MVGH3.cjs');
|
|
66
71
|
require('../../chunk-4GFNWALL.cjs');
|
|
@@ -106,4 +111,11 @@ require('../../chunk-QBJ4SE23.cjs');
|
|
|
106
111
|
|
|
107
112
|
|
|
108
113
|
|
|
109
|
-
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
exports.ASK_AI_OPEN_EVENT = _chunk4UMOD5NUcjs.ASK_AI_OPEN_EVENT; exports.AppHeader = _chunk4UMOD5NUcjs.AppHeader; exports.AppLayout = _chunk4UMOD5NUcjs.AppLayout; exports.AppLayoutDrawer = _chunk7XVBJDH7cjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunk7XVBJDH7cjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunk7XVBJDH7cjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunk7XVBJDH7cjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunk7XVBJDH7cjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunk7XVBJDH7cjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunk7XVBJDH7cjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunk7XVBJDH7cjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunk7XVBJDH7cjs.AppLayoutDrawerTrigger; exports.HeaderButton = _chunk7XVBJDH7cjs.HeaderButton; exports.HeaderGlobalSearch = _chunk4UMOD5NUcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunk4UMOD5NUcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunk4UMOD5NUcjs.HeaderOrganizationFilter; exports.MOBILE_NAV_SHEET_ID = _chunk4UMOD5NUcjs.MOBILE_NAV_SHEET_ID; exports.MingoAiButton = _chunk4UMOD5NUcjs.MingoAiButton; exports.MobileBurgerMenu = _chunk4UMOD5NUcjs.MobileBurgerMenu; exports.MobileNavSheet = _chunk4UMOD5NUcjs.MobileNavSheet; exports.MobileNavigationDropdown = _chunkTB5EDWRCcjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkTB5EDWRCcjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunk4UMOD5NUcjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavItemRow = _chunk4UMOD5NUcjs.NavItemRow; exports.NavPanel = _chunk4UMOD5NUcjs.NavPanel; exports.NavigationItemBadge = _chunk4UMOD5NUcjs.NavigationItemBadge; exports.NavigationSidebar = _chunk4UMOD5NUcjs.NavigationSidebar; exports.SIDE_PANEL_FRAME_WIDTH = _chunk4UMOD5NUcjs.SIDE_PANEL_FRAME_WIDTH; exports.SiteFooter = _chunk4UMOD5NUcjs.SiteFooter; exports.SiteHeader = _chunk4UMOD5NUcjs.SiteHeader; exports.SlidingSidebar = _chunk4UMOD5NUcjs.SlidingSidebar; exports.StickySectionNav = _chunkTB5EDWRCcjs.StickySectionNav; exports.TicketAlertsButton = _chunk4UMOD5NUcjs.TicketAlertsButton; exports.TopNavigation = _chunk4UMOD5NUcjs.TopNavigation; exports.UnreadCountBadge = _chunk7XVBJDH7cjs.UnreadCountBadge; exports.UnreadDot = _chunk7XVBJDH7cjs.UnreadDot; exports.defaultRenderSiteNavLink = _chunk4UMOD5NUcjs.defaultRenderSiteNavLink; exports.isMegaMenu = _chunk4UMOD5NUcjs.isMegaMenu; exports.navLinkLabel = _chunk4UMOD5NUcjs.navLinkLabel; exports.openAskAi = _chunk4UMOD5NUcjs.openAskAi; exports.siteNavHasMobileMenus = _chunk4UMOD5NUcjs.siteNavHasMobileMenus; exports.useAppLayoutDrawerContainer = _chunk7XVBJDH7cjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkTB5EDWRCcjs.useSectionNavigation;
|