@flamingo-stack/openframe-frontend-core 0.0.573-snapshot.20260827222301 → 0.0.573
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-2IK6SB6F.js → chunk-2EB5273T.js} +2 -2
- package/dist/{chunk-KSKCQ3ZN.js → chunk-3ENV3IEP.js} +2 -2
- package/dist/{chunk-UPEIX7VG.js → chunk-4IAZOAS7.js} +4 -4
- package/dist/{chunk-GFSJXRX7.cjs → chunk-4TGUWWMY.cjs} +16 -16
- package/dist/{chunk-GFSJXRX7.cjs.map → chunk-4TGUWWMY.cjs.map} +1 -1
- package/dist/{chunk-BTZF3JRS.js → chunk-4WCTY326.js} +2 -2
- package/dist/{chunk-PBS4F534.js → chunk-66LZDE7U.js} +2 -3
- package/dist/chunk-66LZDE7U.js.map +1 -0
- package/dist/{chunk-BGZCZ2JS.cjs → chunk-6SMQCAPO.cjs} +3 -3
- package/dist/{chunk-BGZCZ2JS.cjs.map → chunk-6SMQCAPO.cjs.map} +1 -1
- package/dist/{chunk-PUL6X6HY.cjs → chunk-AQBWGEL3.cjs} +32 -32
- package/dist/{chunk-PUL6X6HY.cjs.map → chunk-AQBWGEL3.cjs.map} +1 -1
- package/dist/{chunk-BKXL7OYT.cjs → chunk-B7S7ETML.cjs} +3 -3
- package/dist/{chunk-BKXL7OYT.cjs.map → chunk-B7S7ETML.cjs.map} +1 -1
- package/dist/{chunk-3U2P63NQ.cjs → chunk-BWHLWS32.cjs} +10 -10
- package/dist/{chunk-3U2P63NQ.cjs.map → chunk-BWHLWS32.cjs.map} +1 -1
- package/dist/{chunk-ISULYCGY.js → chunk-DSU7LQMU.js} +2 -2
- package/dist/{chunk-5QDGP3RI.js → chunk-EC44ZXBH.js} +2 -2
- package/dist/{chunk-SVUZUFT4.cjs → chunk-EIK6KDAE.cjs} +34 -34
- package/dist/{chunk-SVUZUFT4.cjs.map → chunk-EIK6KDAE.cjs.map} +1 -1
- package/dist/{chunk-UILNZL6J.cjs → chunk-GSSJFXIW.cjs} +3 -3
- package/dist/{chunk-UILNZL6J.cjs.map → chunk-GSSJFXIW.cjs.map} +1 -1
- package/dist/{chunk-KG7D35RU.js → chunk-IBZBGRO2.js} +5 -5
- package/dist/{chunk-DTSRMQIY.js → chunk-J5OC2KYU.js} +5 -5
- package/dist/{chunk-K3XONUML.cjs → chunk-JLIXPN37.cjs} +4 -4
- package/dist/{chunk-K3XONUML.cjs.map → chunk-JLIXPN37.cjs.map} +1 -1
- package/dist/{chunk-WVKRSC65.js → chunk-JTDYVW2B.js} +2 -2
- package/dist/{chunk-QTVW5XBL.cjs → chunk-NCCWS6YE.cjs} +4 -4
- package/dist/{chunk-QTVW5XBL.cjs.map → chunk-NCCWS6YE.cjs.map} +1 -1
- package/dist/{chunk-OE7NV7H3.js → chunk-NGXP4EAQ.js} +2 -2
- package/dist/{chunk-3IUQLB47.cjs → chunk-OUMRHNZW.cjs} +3 -3
- package/dist/{chunk-3IUQLB47.cjs.map → chunk-OUMRHNZW.cjs.map} +1 -1
- package/dist/{chunk-QF5B6V4L.cjs → chunk-OYWAPTEF.cjs} +17 -17
- package/dist/{chunk-QF5B6V4L.cjs.map → chunk-OYWAPTEF.cjs.map} +1 -1
- package/dist/{chunk-IRJQH7RJ.cjs → chunk-P625NSEA.cjs} +17 -17
- package/dist/{chunk-IRJQH7RJ.cjs.map → chunk-P625NSEA.cjs.map} +1 -1
- package/dist/{chunk-RXJZXMDZ.cjs → chunk-PDQ7F5AB.cjs} +13 -13
- package/dist/{chunk-RXJZXMDZ.cjs.map → chunk-PDQ7F5AB.cjs.map} +1 -1
- package/dist/{chunk-BGE7CKXC.js → chunk-R3I2XI33.js} +4 -4
- package/dist/{chunk-IWISKP3F.js → chunk-SB67TZQU.js} +2 -2
- package/dist/{chunk-WAWMZSCP.js → chunk-SY7M6VAJ.js} +3 -3
- package/dist/{chunk-2EPUD2VR.js → chunk-TIX2SHZX.js} +2 -2
- package/dist/{chunk-QDOBY3TP.cjs → chunk-YK7M7RBF.cjs} +2 -3
- package/dist/chunk-YK7M7RBF.cjs.map +1 -0
- package/dist/{chunk-7G23ANVM.cjs → chunk-YS64Y5MP.cjs} +49 -49
- package/dist/{chunk-7G23ANVM.cjs.map → chunk-YS64Y5MP.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +114 -114
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +19 -35
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +4 -20
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/schemas/meeting-booking-schema.cjs.map +1 -1
- package/dist/schemas/meeting-booking-schema.d.ts +2 -6
- package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
- package/dist/schemas/meeting-booking-schema.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/index.tsx +16 -34
- package/src/components/ui/alert.tsx +0 -1
- package/src/schemas/meeting-booking-schema.ts +2 -6
- package/dist/chunk-PBS4F534.js.map +0 -1
- package/dist/chunk-QDOBY3TP.cjs.map +0 -1
- /package/dist/{chunk-2IK6SB6F.js.map → chunk-2EB5273T.js.map} +0 -0
- /package/dist/{chunk-KSKCQ3ZN.js.map → chunk-3ENV3IEP.js.map} +0 -0
- /package/dist/{chunk-UPEIX7VG.js.map → chunk-4IAZOAS7.js.map} +0 -0
- /package/dist/{chunk-BTZF3JRS.js.map → chunk-4WCTY326.js.map} +0 -0
- /package/dist/{chunk-ISULYCGY.js.map → chunk-DSU7LQMU.js.map} +0 -0
- /package/dist/{chunk-5QDGP3RI.js.map → chunk-EC44ZXBH.js.map} +0 -0
- /package/dist/{chunk-KG7D35RU.js.map → chunk-IBZBGRO2.js.map} +0 -0
- /package/dist/{chunk-DTSRMQIY.js.map → chunk-J5OC2KYU.js.map} +0 -0
- /package/dist/{chunk-WVKRSC65.js.map → chunk-JTDYVW2B.js.map} +0 -0
- /package/dist/{chunk-OE7NV7H3.js.map → chunk-NGXP4EAQ.js.map} +0 -0
- /package/dist/{chunk-BGE7CKXC.js.map → chunk-R3I2XI33.js.map} +0 -0
- /package/dist/{chunk-IWISKP3F.js.map → chunk-SB67TZQU.js.map} +0 -0
- /package/dist/{chunk-WAWMZSCP.js.map → chunk-SY7M6VAJ.js.map} +0 -0
- /package/dist/{chunk-2EPUD2VR.js.map → chunk-TIX2SHZX.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SoftwareInfo,
|
|
16
16
|
SoftwareSourceBadge,
|
|
17
17
|
ToolBadge
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-EC44ZXBH.js";
|
|
19
19
|
import {
|
|
20
20
|
AppHeader,
|
|
21
21
|
AppLayout,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
SlidingSidebar,
|
|
35
35
|
TicketAlertsButton,
|
|
36
36
|
TopNavigation
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-SY7M6VAJ.js";
|
|
38
38
|
import {
|
|
39
39
|
DeliveryLists,
|
|
40
40
|
DeliveryTable,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
RoadmapView,
|
|
49
49
|
useLegalDocs,
|
|
50
50
|
useRoadmapVoting
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-R3I2XI33.js";
|
|
52
52
|
import {
|
|
53
53
|
AnnouncementBarSkeleton,
|
|
54
54
|
ArticleLayoutSkeleton,
|
|
@@ -81,12 +81,12 @@ import {
|
|
|
81
81
|
useDocNavigation,
|
|
82
82
|
useDocumentTree,
|
|
83
83
|
useScrollSpy
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-IBZBGRO2.js";
|
|
85
85
|
import {
|
|
86
86
|
FileDownloadCard,
|
|
87
87
|
GoogleSheetsViewer,
|
|
88
88
|
PdfViewer
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-DSU7LQMU.js";
|
|
90
90
|
import {
|
|
91
91
|
PersistentPagination,
|
|
92
92
|
PersistentPaginationWrapper,
|
|
@@ -96,13 +96,13 @@ import {
|
|
|
96
96
|
FaqAccordion,
|
|
97
97
|
FaqDocumentPage,
|
|
98
98
|
FaqSection
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-NGXP4EAQ.js";
|
|
100
100
|
import {
|
|
101
101
|
MobileNavigationDropdown,
|
|
102
102
|
MultiLevelNavigation,
|
|
103
103
|
StickySectionNav,
|
|
104
104
|
useSectionNavigation
|
|
105
|
-
} from "../chunk-
|
|
105
|
+
} from "../chunk-3ENV3IEP.js";
|
|
106
106
|
import {
|
|
107
107
|
DeliveryRow,
|
|
108
108
|
DevCardRowContent,
|
|
@@ -110,16 +110,16 @@ import {
|
|
|
110
110
|
DevCardRowSkeletonList,
|
|
111
111
|
DevSectionPage,
|
|
112
112
|
DevSectionView
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-JTDYVW2B.js";
|
|
114
114
|
import {
|
|
115
115
|
EmptyState,
|
|
116
116
|
UnifiedPagination
|
|
117
117
|
} from "../chunk-QQ5ZVCD4.js";
|
|
118
|
-
import "../chunk-
|
|
118
|
+
import "../chunk-SB67TZQU.js";
|
|
119
119
|
import {
|
|
120
120
|
ArticleAuthorByline,
|
|
121
121
|
DetailPageSkeleton
|
|
122
|
-
} from "../chunk-
|
|
122
|
+
} from "../chunk-TIX2SHZX.js";
|
|
123
123
|
import {
|
|
124
124
|
DocSearchBar,
|
|
125
125
|
DocSearchResultRow,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
mapDocSearchResults,
|
|
128
128
|
resolveSearchResultAction,
|
|
129
129
|
useDocSearch
|
|
130
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-4WCTY326.js";
|
|
131
131
|
import {
|
|
132
132
|
useSelfFetch
|
|
133
133
|
} from "../chunk-UC5RXT3O.js";
|
|
@@ -576,7 +576,7 @@ import {
|
|
|
576
576
|
useTimeTracker,
|
|
577
577
|
useTrackerClock,
|
|
578
578
|
useWalkthroughVideo
|
|
579
|
-
} from "../chunk-
|
|
579
|
+
} from "../chunk-66LZDE7U.js";
|
|
580
580
|
import "../chunk-L2SLFCXP.js";
|
|
581
581
|
import "../chunk-BJXDHKUX.js";
|
|
582
582
|
import {
|
|
@@ -20,9 +20,7 @@ var _chunkVIAZWBZ2cjs = require('../../chunk-VIAZWBZ2.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _chunkQDOBY3TPcjs = require('../../chunk-QDOBY3TP.cjs');
|
|
23
|
+
var _chunkYK7M7RBFcjs = require('../../chunk-YK7M7RBF.cjs');
|
|
26
24
|
require('../../chunk-GQWM3ECA.cjs');
|
|
27
25
|
require('../../chunk-TON3YCCW.cjs');
|
|
28
26
|
|
|
@@ -96,7 +94,7 @@ function useMeetingBooking(options) {
|
|
|
96
94
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _2 => _2.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
97
95
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
98
96
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
99
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
97
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkYK7M7RBFcjs.MAX_MONTH_OFFSET, offset)));
|
|
100
98
|
}, []);
|
|
101
99
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
102
100
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -313,7 +311,7 @@ function BookingForm({
|
|
|
313
311
|
const inputClass = "bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-11 md:h-12";
|
|
314
312
|
const FORM_STACK = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
315
313
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, children: [
|
|
316
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.HoneypotField, { ...honeypotInputProps }),
|
|
317
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQYQXAXVRcjs.FieldWrapper, { label: "Email", htmlFor: "ms-email", error: _optionalChain([errors, 'access', _9 => _9.email, 'optionalAccess', _10 => _10.message]), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
316
|
_chunkQYQXAXVRcjs.Input,
|
|
319
317
|
{
|
|
@@ -361,7 +359,7 @@ function BookingForm({
|
|
|
361
359
|
error: fieldError(field.name),
|
|
362
360
|
children: [
|
|
363
361
|
field.type === "textarea" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
364
|
-
|
|
362
|
+
_chunkYK7M7RBFcjs.Textarea,
|
|
365
363
|
{
|
|
366
364
|
id: `ms-q-${field.name}`,
|
|
367
365
|
className: "border-ods-border bg-ods-card px-3 text-ods-text-primary placeholder-ods-text-secondary",
|
|
@@ -381,11 +379,11 @@ function BookingForm({
|
|
|
381
379
|
{
|
|
382
380
|
control,
|
|
383
381
|
name: `formFields.${field.name}`,
|
|
384
|
-
render: ({ field: rhf }) => field.type === "select" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
387
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
+
render: ({ field: rhf }) => field.type === "select" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYK7M7RBFcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
383
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.SelectTrigger, { id: `ms-q-${field.name}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.SelectValue, { placeholder: "Select\u2026" }) }),
|
|
384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
385
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.RadioGroup, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.RadioGroupItem, { id: `ms-q-${field.name}-${opt}`, value: opt }),
|
|
389
387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3QDJLLD2cjs.Label, { htmlFor: `ms-q-${field.name}-${opt}`, children: opt })
|
|
390
388
|
] }, opt)) })
|
|
391
389
|
}
|
|
@@ -506,7 +504,7 @@ function ContextPanelSkeleton({
|
|
|
506
504
|
backLabel = "Back"
|
|
507
505
|
}) {
|
|
508
506
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
509
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
510
508
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
511
509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
512
510
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] lg:flex-none", children: [
|
|
@@ -553,7 +551,7 @@ function SchedulerContextPanel({
|
|
|
553
551
|
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
554
552
|
}, [timezone]);
|
|
555
553
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
556
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYK7M7RBFcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
557
555
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
558
556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
559
557
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -614,7 +612,7 @@ function SchedulerContextPanel({
|
|
|
614
612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
615
613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
616
614
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
617
|
-
|
|
615
|
+
_chunkYK7M7RBFcjs.Autocomplete,
|
|
618
616
|
{
|
|
619
617
|
value: timezone,
|
|
620
618
|
onChange: (tz) => {
|
|
@@ -700,18 +698,18 @@ var NOOP = () => void 0;
|
|
|
700
698
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
701
699
|
const now = /* @__PURE__ */ new Date();
|
|
702
700
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
703
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
701
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkYK7M7RBFcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
704
702
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
705
703
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _22 => _22.has, 'call', _23 => _23(calendarDayKey(day))]), [slotsByDay]);
|
|
706
704
|
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,
|
|
707
|
-
|
|
705
|
+
_chunkYK7M7RBFcjs.DatePickerCalendar,
|
|
708
706
|
{
|
|
709
707
|
mode: "single",
|
|
710
708
|
bare: true,
|
|
711
709
|
month: visibleMonth,
|
|
712
710
|
onMonthChange: (month) => {
|
|
713
711
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
714
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
712
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkYK7M7RBFcjs.MAX_MONTH_OFFSET, offset)));
|
|
715
713
|
},
|
|
716
714
|
fromDate: startMonth,
|
|
717
715
|
toDate: endMonth,
|
|
@@ -825,7 +823,7 @@ function SlotPicker({
|
|
|
825
823
|
monthLabelFor(monthOffset),
|
|
826
824
|
"."
|
|
827
825
|
] }),
|
|
828
|
-
monthOffset <
|
|
826
|
+
monthOffset < _chunkYK7M7RBFcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
829
827
|
_chunkS6LZN66Dcjs.Button,
|
|
830
828
|
{
|
|
831
829
|
variant: "outline",
|
|
@@ -1003,13 +1001,6 @@ function MeetingSchedulerDirectory({
|
|
|
1003
1001
|
|
|
1004
1002
|
// src/components/meeting-scheduler/index.tsx
|
|
1005
1003
|
|
|
1006
|
-
var BOOKING_ERROR_COPY = {
|
|
1007
|
-
INVALID_EMAIL: "That email address was rejected by our scheduling system \u2014 please use a real, reachable address (work email works best).",
|
|
1008
|
-
VALIDATION: "Please double-check your details \u2014 especially that the email address is real and reachable \u2014 and try again.",
|
|
1009
|
-
TEMPORARILY_UNAVAILABLE: "Scheduling is briefly unavailable \u2014 please try again in a minute.",
|
|
1010
|
-
MEETING_UNAVAILABLE: "This meeting type has reached its booking limit for today \u2014 try another time or contact us.",
|
|
1011
|
-
LINK_GONE: "This meeting type is no longer available."
|
|
1012
|
-
};
|
|
1013
1004
|
var CONTEXT_PANEL_CLASS = "p-[var(--spacing-system-l)] shrink-0 lg:w-[280px] border-b lg:border-b-0 lg:border-r border-ods-border lg:min-h-0 lg:overflow-y-auto";
|
|
1014
1005
|
var ACTION_PANEL_CLASS = "flex-1 min-w-0 flex flex-col md:min-h-0 lg:p-[var(--spacing-system-l)]";
|
|
1015
1006
|
var PANEL_STEP_CLASS = "p-[var(--spacing-system-l)] md:min-h-0 md:overflow-y-auto lg:p-0";
|
|
@@ -1198,8 +1189,8 @@ function HubSpotMeetingScheduler({
|
|
|
1198
1189
|
"\xB7 ",
|
|
1199
1190
|
_chunkSPAAKHQAcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1200
1191
|
] }),
|
|
1201
|
-
bookingError && bookingError !== "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1202
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1192
|
+
bookingError && bookingError !== "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-[var(--spacing-system-xs)]", children: [
|
|
1193
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-error text-h6", children: bookingError === "TEMPORARILY_UNAVAILABLE" ? "Scheduling is briefly unavailable \u2014 please try again in a minute." : bookingError === "MEETING_UNAVAILABLE" ? "This meeting type has reached its booking limit for today \u2014 try another time or contact us." : bookingError === "LINK_GONE" ? "This meeting type is no longer available." : "Please double-check your details and try again." }),
|
|
1203
1194
|
escapeHatch
|
|
1204
1195
|
] }),
|
|
1205
1196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1217,14 +1208,7 @@ function HubSpotMeetingScheduler({
|
|
|
1217
1208
|
}
|
|
1218
1209
|
)
|
|
1219
1210
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1220
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1221
|
-
_chunkQDOBY3TPcjs.Alert,
|
|
1222
|
-
{
|
|
1223
|
-
variant: "warning",
|
|
1224
|
-
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1225
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDOBY3TPcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1226
|
-
}
|
|
1227
|
-
),
|
|
1211
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-l)] pt-[var(--spacing-system-l)] text-ods-error text-h6 lg:p-0", children: "That time is no longer available \u2014 if you just submitted, check your email for a confirmation before rebooking." }),
|
|
1228
1212
|
timezone && durationMs != null ? (
|
|
1229
1213
|
// The picker owns BOTH the loading and the empty month now —
|
|
1230
1214
|
// it keeps the calendar up either way, so there is no branch
|