@flamingo-stack/openframe-frontend-core 0.0.695-2522.7745.1 → 0.0.695
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-PTP7UFUJ.js → chunk-2ACUTFHC.js} +5 -5
- package/dist/{chunk-3S56I5MX.js → chunk-2NLZ4CB4.js} +2 -2
- package/dist/{chunk-Y2MDXJB4.js → chunk-2WTBDVR3.js} +1 -12
- package/dist/chunk-2WTBDVR3.js.map +1 -0
- package/dist/{chunk-4DNNKZ5H.cjs → chunk-3DOGI3XP.cjs} +7 -7
- package/dist/{chunk-4DNNKZ5H.cjs.map → chunk-3DOGI3XP.cjs.map} +1 -1
- package/dist/{chunk-XVHJM7Z7.js → chunk-43YWCHYX.js} +5 -5
- package/dist/{chunk-RPX7QWH4.js → chunk-4XR3D6BN.js} +6 -6
- package/dist/{chunk-WLUBSBEK.js → chunk-7LYRB7DE.js} +3086 -3140
- package/dist/chunk-7LYRB7DE.js.map +1 -0
- package/dist/{chunk-I25SF2PZ.cjs → chunk-BU77ENDT.cjs} +860 -914
- package/dist/chunk-BU77ENDT.cjs.map +1 -0
- package/dist/{chunk-64XEIDGD.js → chunk-CI7HVQAK.js} +3 -3
- package/dist/{chunk-Y7O3QLPF.cjs → chunk-DELTA7VU.cjs} +23 -23
- package/dist/{chunk-Y7O3QLPF.cjs.map → chunk-DELTA7VU.cjs.map} +1 -1
- package/dist/{chunk-C6CTV7ML.cjs → chunk-DHQXA6FM.cjs} +81 -81
- package/dist/{chunk-C6CTV7ML.cjs.map → chunk-DHQXA6FM.cjs.map} +1 -1
- package/dist/{chunk-VGEOFST2.cjs → chunk-DT6DOSXV.cjs} +15 -15
- package/dist/{chunk-VGEOFST2.cjs.map → chunk-DT6DOSXV.cjs.map} +1 -1
- package/dist/{chunk-26JWVMDE.cjs → chunk-E4QJXPJP.cjs} +28 -28
- package/dist/{chunk-26JWVMDE.cjs.map → chunk-E4QJXPJP.cjs.map} +1 -1
- package/dist/{chunk-L6LXA3ES.cjs → chunk-ETFVFDJG.cjs} +19 -19
- package/dist/{chunk-L6LXA3ES.cjs.map → chunk-ETFVFDJG.cjs.map} +1 -1
- package/dist/{chunk-DBLNKQCC.cjs → chunk-H66LCO6R.cjs} +5 -5
- package/dist/{chunk-DBLNKQCC.cjs.map → chunk-H66LCO6R.cjs.map} +1 -1
- package/dist/{chunk-CCH36FJC.js → chunk-H74TCWVN.js} +7 -7
- package/dist/{chunk-NQMRRJGW.cjs → chunk-HDBKLVB6.cjs} +62 -62
- package/dist/{chunk-NQMRRJGW.cjs.map → chunk-HDBKLVB6.cjs.map} +1 -1
- package/dist/{chunk-2RW76FXD.cjs → chunk-HKM3DTSS.cjs} +3 -3
- package/dist/{chunk-2RW76FXD.cjs.map → chunk-HKM3DTSS.cjs.map} +1 -1
- package/dist/{chunk-NNVTNUKO.cjs → chunk-IE2H2P4K.cjs} +30 -30
- package/dist/{chunk-NNVTNUKO.cjs.map → chunk-IE2H2P4K.cjs.map} +1 -1
- package/dist/{chunk-BLI6T332.js → chunk-IHIEAC2G.js} +2 -2
- package/dist/{chunk-VCR3TW2H.cjs → chunk-IPKFWZDD.cjs} +5 -16
- package/dist/chunk-IPKFWZDD.cjs.map +1 -0
- package/dist/{chunk-O7OCRQJ5.js → chunk-JUO6CFGZ.js} +6 -6
- package/dist/{chunk-MFU3ALKM.cjs → chunk-LAGFAZ2H.cjs} +192 -192
- package/dist/{chunk-MFU3ALKM.cjs.map → chunk-LAGFAZ2H.cjs.map} +1 -1
- package/dist/{chunk-NE4H4JJG.cjs → chunk-N22KLGTR.cjs} +35 -35
- package/dist/{chunk-NE4H4JJG.cjs.map → chunk-N22KLGTR.cjs.map} +1 -1
- package/dist/{chunk-FO7LH32X.cjs → chunk-OQBJQJ6E.cjs} +6 -6
- package/dist/{chunk-FO7LH32X.cjs.map → chunk-OQBJQJ6E.cjs.map} +1 -1
- package/dist/{chunk-MGAQ7JG2.cjs → chunk-RWAHGA2H.cjs} +33 -33
- package/dist/{chunk-MGAQ7JG2.cjs.map → chunk-RWAHGA2H.cjs.map} +1 -1
- package/dist/{chunk-LM34RORU.js → chunk-SFIVEDZA.js} +3 -3
- package/dist/{chunk-H37T7MJI.js → chunk-SSBK7TBW.js} +4 -4
- package/dist/{chunk-ZAY6MSGJ.js → chunk-TGIBJHM6.js} +4 -4
- package/dist/{chunk-4PP5HQP3.cjs → chunk-UPLNZA6P.cjs} +11 -11
- package/dist/{chunk-4PP5HQP3.cjs.map → chunk-UPLNZA6P.cjs.map} +1 -1
- package/dist/{chunk-XOM5UJL3.js → chunk-VDROT42I.js} +3 -3
- package/dist/{chunk-NJ7NQK7C.js → chunk-WGKTGAP3.js} +3 -3
- package/dist/{chunk-ILONGHVW.cjs → chunk-WQ4BZDLO.cjs} +12 -12
- package/dist/{chunk-ILONGHVW.cjs.map → chunk-WQ4BZDLO.cjs.map} +1 -1
- package/dist/{chunk-5IAQM45M.js → chunk-YHE4PSYQ.js} +3 -3
- package/dist/{chunk-WWLTP7EJ.js → chunk-ZF2KSQER.js} +4 -4
- package/dist/{chunk-OB3ZJ7GQ.js → chunk-ZOVS6HJW.js} +2 -2
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +91 -91
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +56 -64
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -23
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/back-button.d.ts +1 -13
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +83 -54
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +47 -18
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +4 -12
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -11
- package/dist/index.cjs +9 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/utils/image-proxy.d.ts +0 -7
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -11
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -11
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/back-button.tsx +14 -37
- package/src/components/meeting-scheduler/context-panel.tsx +36 -3
- package/src/components/ui/index.ts +0 -1
- package/src/utils/image-proxy.ts +0 -17
- package/src/utils/index.ts +0 -1
- package/dist/chunk-I25SF2PZ.cjs.map +0 -1
- package/dist/chunk-VCR3TW2H.cjs.map +0 -1
- package/dist/chunk-WLUBSBEK.js.map +0 -1
- package/dist/chunk-Y2MDXJB4.js.map +0 -1
- package/dist/components/ui/timezone-select.d.ts +0 -25
- package/dist/components/ui/timezone-select.d.ts.map +0 -1
- package/src/components/ui/timezone-select.test.tsx +0 -27
- package/src/components/ui/timezone-select.tsx +0 -75
- package/src/utils/skips-image-optimizer.test.ts +0 -14
- /package/dist/{chunk-PTP7UFUJ.js.map → chunk-2ACUTFHC.js.map} +0 -0
- /package/dist/{chunk-3S56I5MX.js.map → chunk-2NLZ4CB4.js.map} +0 -0
- /package/dist/{chunk-XVHJM7Z7.js.map → chunk-43YWCHYX.js.map} +0 -0
- /package/dist/{chunk-RPX7QWH4.js.map → chunk-4XR3D6BN.js.map} +0 -0
- /package/dist/{chunk-64XEIDGD.js.map → chunk-CI7HVQAK.js.map} +0 -0
- /package/dist/{chunk-CCH36FJC.js.map → chunk-H74TCWVN.js.map} +0 -0
- /package/dist/{chunk-BLI6T332.js.map → chunk-IHIEAC2G.js.map} +0 -0
- /package/dist/{chunk-O7OCRQJ5.js.map → chunk-JUO6CFGZ.js.map} +0 -0
- /package/dist/{chunk-LM34RORU.js.map → chunk-SFIVEDZA.js.map} +0 -0
- /package/dist/{chunk-H37T7MJI.js.map → chunk-SSBK7TBW.js.map} +0 -0
- /package/dist/{chunk-ZAY6MSGJ.js.map → chunk-TGIBJHM6.js.map} +0 -0
- /package/dist/{chunk-XOM5UJL3.js.map → chunk-VDROT42I.js.map} +0 -0
- /package/dist/{chunk-NJ7NQK7C.js.map → chunk-WGKTGAP3.js.map} +0 -0
- /package/dist/{chunk-5IAQM45M.js.map → chunk-YHE4PSYQ.js.map} +0 -0
- /package/dist/{chunk-WWLTP7EJ.js.map → chunk-ZF2KSQER.js.map} +0 -0
- /package/dist/{chunk-OB3ZJ7GQ.js.map → chunk-ZOVS6HJW.js.map} +0 -0
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
Alert,
|
|
11
11
|
AlertDescription,
|
|
12
|
+
Autocomplete,
|
|
12
13
|
BackButton,
|
|
13
14
|
CheckboxBlock,
|
|
14
15
|
DatePickerCalendar,
|
|
@@ -22,9 +23,8 @@ import {
|
|
|
22
23
|
SelectItem,
|
|
23
24
|
SelectTrigger,
|
|
24
25
|
SelectValue,
|
|
25
|
-
Textarea
|
|
26
|
-
|
|
27
|
-
} from "../../chunk-WLUBSBEK.js";
|
|
26
|
+
Textarea
|
|
27
|
+
} from "../../chunk-7LYRB7DE.js";
|
|
28
28
|
import "../../chunk-L2SLFCXP.js";
|
|
29
29
|
import "../../chunk-BJXDHKUX.js";
|
|
30
30
|
import {
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "../../chunk-HLCJPRXP.js";
|
|
46
46
|
import {
|
|
47
47
|
useIsHydrated
|
|
48
|
-
} from "../../chunk-
|
|
48
|
+
} from "../../chunk-ZOVS6HJW.js";
|
|
49
49
|
import "../../chunk-AVRVYWCS.js";
|
|
50
50
|
import "../../chunk-XXMHLZ3Y.js";
|
|
51
51
|
import "../../chunk-IEP3QHO7.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
formatDateWithTimezone,
|
|
60
60
|
formatDurationCompact,
|
|
61
61
|
formatTimeWithTimezone
|
|
62
|
-
} from "../../chunk-
|
|
62
|
+
} from "../../chunk-2WTBDVR3.js";
|
|
63
63
|
import "../../chunk-MDKCTSDS.js";
|
|
64
64
|
import "../../chunk-MOKB32FL.js";
|
|
65
65
|
import "../../chunk-GIUO6PIU.js";
|
|
@@ -85,7 +85,7 @@ import "../../chunk-3DTTSBDF.js";
|
|
|
85
85
|
import "../../chunk-DCHYNTHI.js";
|
|
86
86
|
|
|
87
87
|
// src/components/meeting-scheduler/index.tsx
|
|
88
|
-
import { useCallback as useCallback3, useEffect as useEffect3, useMemo as
|
|
88
|
+
import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo5, useRef as useRef2, useState as useState4 } from "react";
|
|
89
89
|
|
|
90
90
|
// src/hooks/use-meeting-booking.ts
|
|
91
91
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -941,6 +941,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
// src/components/meeting-scheduler/context-panel.tsx
|
|
944
|
+
import { useMemo as useMemo2 } from "react";
|
|
944
945
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
945
946
|
var PANEL_STACK = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
946
947
|
var IDENTITY_ROW = "flex items-center justify-between gap-[var(--spacing-system-m)] lg:flex-col lg:items-stretch lg:gap-[var(--spacing-system-l)]";
|
|
@@ -949,6 +950,18 @@ var STRIP_MAIN = "flex min-w-0 flex-col gap-[var(--spacing-system-l)] md:flex-1"
|
|
|
949
950
|
var STRIP_ASIDE = "flex flex-col gap-[var(--spacing-system-xxs)] md:w-[280px] md:shrink-0 lg:w-full";
|
|
950
951
|
var BACK_BUTTON_CLASS = "py-0";
|
|
951
952
|
var FIELD_LABEL_CLASS = "text-h4 text-ods-text-primary";
|
|
953
|
+
function zoneLabel(tz) {
|
|
954
|
+
try {
|
|
955
|
+
const parts = new Intl.DateTimeFormat("en-US", {
|
|
956
|
+
timeZone: tz,
|
|
957
|
+
timeZoneName: "shortOffset"
|
|
958
|
+
}).formatToParts(/* @__PURE__ */ new Date());
|
|
959
|
+
const offset = parts.find((p) => p.type === "timeZoneName")?.value ?? "";
|
|
960
|
+
return offset ? `${tz.replace(/_/g, " ")} (${offset})` : tz.replace(/_/g, " ");
|
|
961
|
+
} catch {
|
|
962
|
+
return tz.replace(/_/g, " ");
|
|
963
|
+
}
|
|
964
|
+
}
|
|
952
965
|
function ContextPanelSkeleton({
|
|
953
966
|
className,
|
|
954
967
|
onBack,
|
|
@@ -990,6 +1003,18 @@ function SchedulerContextPanel({
|
|
|
990
1003
|
showTimezone = true,
|
|
991
1004
|
className
|
|
992
1005
|
}) {
|
|
1006
|
+
const zoneOptions = useMemo2(() => {
|
|
1007
|
+
if (!timezone) return [];
|
|
1008
|
+
let zones;
|
|
1009
|
+
try {
|
|
1010
|
+
const intl = Intl;
|
|
1011
|
+
zones = intl.supportedValuesOf ? intl.supportedValuesOf("timeZone") : [timezone];
|
|
1012
|
+
} catch {
|
|
1013
|
+
zones = [timezone];
|
|
1014
|
+
}
|
|
1015
|
+
if (!zones.includes(timezone)) zones = [timezone, ...zones];
|
|
1016
|
+
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
1017
|
+
}, [timezone]);
|
|
993
1018
|
return /* @__PURE__ */ jsxs3("div", { className: cn(PANEL_STACK, className), children: [
|
|
994
1019
|
onBack && /* @__PURE__ */ jsx3(BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
995
1020
|
/* @__PURE__ */ jsxs3("div", { className: STRIP_BODY, children: [
|
|
@@ -1053,13 +1078,17 @@ function SchedulerContextPanel({
|
|
|
1053
1078
|
/* @__PURE__ */ jsxs3("div", { className: cn(STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
1054
1079
|
/* @__PURE__ */ jsx3("p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1055
1080
|
timezone ? /* @__PURE__ */ jsx3(
|
|
1056
|
-
|
|
1081
|
+
Autocomplete,
|
|
1057
1082
|
{
|
|
1058
1083
|
value: timezone,
|
|
1059
1084
|
disabled,
|
|
1060
1085
|
onChange: (tz) => {
|
|
1061
1086
|
if (tz) onTimezoneChange?.(tz);
|
|
1062
|
-
}
|
|
1087
|
+
},
|
|
1088
|
+
options: zoneOptions,
|
|
1089
|
+
placeholder: "Search timezone\u2026",
|
|
1090
|
+
noOptionsText: "No matching timezone",
|
|
1091
|
+
showClearAll: false
|
|
1063
1092
|
}
|
|
1064
1093
|
) : /* @__PURE__ */ jsx3(Skeleton, { className: "h-12 w-full" })
|
|
1065
1094
|
] })
|
|
@@ -1069,7 +1098,7 @@ function SchedulerContextPanel({
|
|
|
1069
1098
|
|
|
1070
1099
|
// src/components/meeting-scheduler/slot-picker.tsx
|
|
1071
1100
|
import { ChevronRight } from "lucide-react";
|
|
1072
|
-
import { useCallback as useCallback2, useMemo as
|
|
1101
|
+
import { useCallback as useCallback2, useMemo as useMemo3 } from "react";
|
|
1073
1102
|
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1074
1103
|
function dayKeyInZone(ms, timeZone) {
|
|
1075
1104
|
return new Intl.DateTimeFormat("en-CA", { timeZone, year: "numeric", month: "2-digit", day: "2-digit" }).format(
|
|
@@ -1201,7 +1230,7 @@ function SlotPicker({
|
|
|
1201
1230
|
isLoading = false,
|
|
1202
1231
|
isSubmitting = false
|
|
1203
1232
|
}) {
|
|
1204
|
-
const slotsByDay =
|
|
1233
|
+
const slotsByDay = useMemo3(() => {
|
|
1205
1234
|
const map = /* @__PURE__ */ new Map();
|
|
1206
1235
|
for (const ms of slots) {
|
|
1207
1236
|
const key = dayKeyInZone(ms, timezone);
|
|
@@ -1212,7 +1241,7 @@ function SlotPicker({
|
|
|
1212
1241
|
for (const list of map.values()) list.sort((a, b) => a - b);
|
|
1213
1242
|
return map;
|
|
1214
1243
|
}, [slots, timezone]);
|
|
1215
|
-
const visibleMonth =
|
|
1244
|
+
const visibleMonth = useMemo3(() => {
|
|
1216
1245
|
const now = /* @__PURE__ */ new Date();
|
|
1217
1246
|
return new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1218
1247
|
}, [monthOffset]);
|
|
@@ -1282,11 +1311,11 @@ function SlotPicker({
|
|
|
1282
1311
|
|
|
1283
1312
|
// src/components/meeting-scheduler/directory.tsx
|
|
1284
1313
|
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1285
|
-
import { useEffect as useEffect2, useMemo as
|
|
1314
|
+
import { useEffect as useEffect2, useMemo as useMemo4, useState as useState3 } from "react";
|
|
1286
1315
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1287
1316
|
function useNextAvailableLabel(ms) {
|
|
1288
1317
|
const hydrated = useIsHydrated();
|
|
1289
|
-
return
|
|
1318
|
+
return useMemo4(() => {
|
|
1290
1319
|
if (!hydrated || ms == null) return null;
|
|
1291
1320
|
return formatDateWithTimezone(ms, VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1292
1321
|
}, [hydrated, ms]);
|
|
@@ -1379,7 +1408,7 @@ function MeetingSchedulerDirectory({
|
|
|
1379
1408
|
controller.abort();
|
|
1380
1409
|
};
|
|
1381
1410
|
}, [initialData, includeAll, apiBaseUrl]);
|
|
1382
|
-
const rows =
|
|
1411
|
+
const rows = useMemo4(() => {
|
|
1383
1412
|
const purposes = data?.purposes ?? [];
|
|
1384
1413
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1385
1414
|
}, [data]);
|
|
@@ -1520,7 +1549,7 @@ function HubSpotMeetingScheduler({
|
|
|
1520
1549
|
const detailsFirst = flow === "details-first";
|
|
1521
1550
|
const hydrated = useIsHydrated();
|
|
1522
1551
|
const [pickedTimezone, setTimezone] = useState4(null);
|
|
1523
|
-
const resolvedLocalTimezone =
|
|
1552
|
+
const resolvedLocalTimezone = useMemo5(() => {
|
|
1524
1553
|
if (!hydrated) return null;
|
|
1525
1554
|
try {
|
|
1526
1555
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
@@ -1568,14 +1597,14 @@ function HubSpotMeetingScheduler({
|
|
|
1568
1597
|
useEffect3(() => {
|
|
1569
1598
|
autoAdvanceCount.current = 0;
|
|
1570
1599
|
}, [meetingId]);
|
|
1571
|
-
const durations =
|
|
1600
|
+
const durations = useMemo5(() => availability?.durationsMs ?? [], [availability?.durationsMs]);
|
|
1572
1601
|
const shownHosts = hosts ?? availability?.hosts ?? [];
|
|
1573
1602
|
const durationMs = pickedDurationMs ?? durations[0] ?? null;
|
|
1574
|
-
const slots =
|
|
1603
|
+
const slots = useMemo5(() => {
|
|
1575
1604
|
if (!availability || durationMs == null) return [];
|
|
1576
1605
|
return availability.slotsByDurationMs[String(durationMs)] ?? [];
|
|
1577
1606
|
}, [availability, durationMs]);
|
|
1578
|
-
const selectedDay =
|
|
1607
|
+
const selectedDay = useMemo5(() => {
|
|
1579
1608
|
if (step !== "slot" || !timezone) return pickedDay;
|
|
1580
1609
|
const now = /* @__PURE__ */ new Date();
|
|
1581
1610
|
const visible = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|