@innosolutions/inno-calendar 1.0.57 → 1.0.59
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/AGENT.md +1721 -1610
- package/README.md +235 -235
- package/dist/agenda-widget-BxZU4eGL.cjs +2 -0
- package/dist/agenda-widget-BxZU4eGL.cjs.map +1 -0
- package/dist/{agenda-widget-1kak6FM9.js → agenda-widget-wrZfO67A.js} +1308 -1223
- package/dist/agenda-widget-wrZfO67A.js.map +1 -0
- package/dist/components/event/event-card.d.ts.map +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/primitives/scroll-navigator.d.ts +1 -1
- package/dist/components/primitives/scroll-navigator.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +200 -200
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/{tailwind-calendar-DjtOowce.js → tailwind-calendar-CVuxWXLY.js} +2 -2
- package/dist/{tailwind-calendar-DjtOowce.js.map → tailwind-calendar-CVuxWXLY.js.map} +1 -1
- package/dist/{tailwind-calendar-DpEkgg5k.cjs → tailwind-calendar-DoG6s3PJ.cjs} +2 -2
- package/dist/{tailwind-calendar-DpEkgg5k.cjs.map → tailwind-calendar-DoG6s3PJ.cjs.map} +1 -1
- package/dist/week-view-Bzpbti1B.cjs +11 -0
- package/dist/week-view-Bzpbti1B.cjs.map +1 -0
- package/dist/{week-view-CKx6bJdJ.js → week-view-C1FxF_nk.js} +880 -867
- package/dist/week-view-C1FxF_nk.js.map +1 -0
- package/package.json +138 -138
- package/dist/agenda-widget-1kak6FM9.js.map +0 -1
- package/dist/agenda-widget-C8CFFI1c.cjs +0 -2
- package/dist/agenda-widget-C8CFFI1c.cjs.map +0 -1
- package/dist/week-view-CKx6bJdJ.js.map +0 -1
- package/dist/week-view-DXlwhFjn.cjs +0 -11
- package/dist/week-view-DXlwhFjn.cjs.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as i, a as
|
|
5
|
-
import * as
|
|
6
|
-
import { formatEventTimeDisplay as
|
|
7
|
-
import { j as
|
|
8
|
-
import * as
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as kt } from "react/jsx-runtime";
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import { forwardRef as Pe, createElement as Be, useState as Q, useEffect as ke, useCallback as W, useRef as ne, useMemo as K, useLayoutEffect as je } from "react";
|
|
4
|
+
import { c as i, a as Dt } from "./index-DtaLkIY8.js";
|
|
5
|
+
import * as X from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
import { formatEventTimeDisplay as J, getEventsCountInView as Ct, getRangeText as St, groupEventsByDate as Mt, isToday as ce, detectAllDayEvent as ze, isSameDay as se, getEventsForDay as Fe, separateEventsByDuration as it, calculateOverlappingPositions as st, getVisibleHoursArray as lt, isWorkingHour as dt, formatHourLabel as Ae, generateMonthGrid as Tt, startOfDay as Ke, getWeekDays as zt } from "./utils.mjs";
|
|
7
|
+
import { j as Ve, k as ct, l as Ge } from "./slot-selection-context-BwghpxKA.js";
|
|
8
|
+
import * as V from "@radix-ui/react-dialog";
|
|
9
9
|
import * as ge from "@radix-ui/react-popover";
|
|
10
|
-
import * as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
import * as De from "@radix-ui/react-tooltip";
|
|
11
|
+
const ut = (...t) => t.filter((n, r, a) => !!n && n.trim() !== "" && a.indexOf(n) === r).join(" ").trim();
|
|
12
|
+
const At = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
13
|
+
const Et = (t) => t.replace(
|
|
14
14
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
15
15
|
(n, r, a) => a ? a.toUpperCase() : r.toLowerCase()
|
|
16
16
|
);
|
|
17
|
-
const
|
|
18
|
-
const n =
|
|
17
|
+
const Xe = (t) => {
|
|
18
|
+
const n = Et(t);
|
|
19
19
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
20
20
|
};
|
|
21
21
|
var Wt = {
|
|
@@ -29,13 +29,13 @@ var Wt = {
|
|
|
29
29
|
strokeLinecap: "round",
|
|
30
30
|
strokeLinejoin: "round"
|
|
31
31
|
};
|
|
32
|
-
const
|
|
32
|
+
const Lt = (t) => {
|
|
33
33
|
for (const n in t)
|
|
34
34
|
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
35
35
|
return !0;
|
|
36
36
|
return !1;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const Rt = Pe(
|
|
39
39
|
({
|
|
40
40
|
color: t = "currentColor",
|
|
41
41
|
size: n = 24,
|
|
@@ -45,7 +45,7 @@ const Lt = Oe(
|
|
|
45
45
|
children: h,
|
|
46
46
|
iconNode: s,
|
|
47
47
|
...y
|
|
48
|
-
}, k) =>
|
|
48
|
+
}, k) => Be(
|
|
49
49
|
"svg",
|
|
50
50
|
{
|
|
51
51
|
ref: k,
|
|
@@ -54,39 +54,39 @@ const Lt = Oe(
|
|
|
54
54
|
height: n,
|
|
55
55
|
stroke: t,
|
|
56
56
|
strokeWidth: a ? Number(r) * 24 / Number(n) : r,
|
|
57
|
-
className:
|
|
58
|
-
...!h && !
|
|
57
|
+
className: ut("lucide", d),
|
|
58
|
+
...!h && !Lt(y) && { "aria-hidden": "true" },
|
|
59
59
|
...y
|
|
60
60
|
},
|
|
61
61
|
[
|
|
62
|
-
...s.map(([l, b]) =>
|
|
62
|
+
...s.map(([l, b]) => Be(l, b)),
|
|
63
63
|
...Array.isArray(h) ? h : [h]
|
|
64
64
|
]
|
|
65
65
|
)
|
|
66
66
|
);
|
|
67
|
-
const
|
|
68
|
-
const r =
|
|
69
|
-
({ className: a, ...d }, h) =>
|
|
67
|
+
const Le = (t, n) => {
|
|
68
|
+
const r = Pe(
|
|
69
|
+
({ className: a, ...d }, h) => Be(Rt, {
|
|
70
70
|
ref: h,
|
|
71
71
|
iconNode: n,
|
|
72
|
-
className:
|
|
73
|
-
`lucide-${
|
|
72
|
+
className: ut(
|
|
73
|
+
`lucide-${At(Xe(t))}`,
|
|
74
74
|
`lucide-${t}`,
|
|
75
75
|
a
|
|
76
76
|
),
|
|
77
77
|
...d
|
|
78
78
|
})
|
|
79
79
|
);
|
|
80
|
-
return r.displayName =
|
|
80
|
+
return r.displayName = Xe(t), r;
|
|
81
81
|
};
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
82
|
+
const _t = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], It = Le("check", _t);
|
|
83
|
+
const Bt = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], $t = Le("chevron-right", Bt);
|
|
84
|
+
const Ht = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Ot = Le("circle", Ht);
|
|
85
|
+
const Pt = [
|
|
86
86
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
87
87
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
88
|
-
],
|
|
89
|
-
|
|
88
|
+
], mt = Le("x", Pt), jt = V.Root, Ft = V.Trigger, Vt = V.Portal, Vn = V.Close, ht = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
89
|
+
V.Overlay,
|
|
90
90
|
{
|
|
91
91
|
ref: r,
|
|
92
92
|
className: i(
|
|
@@ -96,11 +96,11 @@ const Ot = [
|
|
|
96
96
|
...n
|
|
97
97
|
}
|
|
98
98
|
));
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
/* @__PURE__ */ e(
|
|
99
|
+
ht.displayName = V.Overlay.displayName;
|
|
100
|
+
const pt = Y.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__ */ o(Vt, { children: [
|
|
101
|
+
/* @__PURE__ */ e(ht, {}),
|
|
102
102
|
/* @__PURE__ */ o(
|
|
103
|
-
|
|
103
|
+
V.Content,
|
|
104
104
|
{
|
|
105
105
|
ref: a,
|
|
106
106
|
className: i(
|
|
@@ -110,16 +110,16 @@ const ht = X.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__
|
|
|
110
110
|
...r,
|
|
111
111
|
children: [
|
|
112
112
|
n,
|
|
113
|
-
/* @__PURE__ */ o(
|
|
114
|
-
/* @__PURE__ */ e(
|
|
113
|
+
/* @__PURE__ */ o(V.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
114
|
+
/* @__PURE__ */ e(mt, { className: "size-4" }),
|
|
115
115
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
116
116
|
] })
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
)
|
|
120
120
|
] }));
|
|
121
|
-
|
|
122
|
-
const
|
|
121
|
+
pt.displayName = V.Content.displayName;
|
|
122
|
+
const Gt = ({
|
|
123
123
|
className: t,
|
|
124
124
|
...n
|
|
125
125
|
}) => /* @__PURE__ */ e(
|
|
@@ -129,26 +129,26 @@ const Vt = ({
|
|
|
129
129
|
...n
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
|
|
132
|
+
Gt.displayName = "DialogHeader";
|
|
133
|
+
const Ut = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
134
|
+
V.Title,
|
|
135
135
|
{
|
|
136
136
|
ref: r,
|
|
137
137
|
className: i("text-lg font-semibold leading-none tracking-tight", t),
|
|
138
138
|
...n
|
|
139
139
|
}
|
|
140
140
|
));
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
|
|
141
|
+
Ut.displayName = V.Title.displayName;
|
|
142
|
+
const qt = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
143
|
+
V.Description,
|
|
144
144
|
{
|
|
145
145
|
ref: r,
|
|
146
146
|
className: i("text-sm text-muted-foreground", t),
|
|
147
147
|
...n
|
|
148
148
|
}
|
|
149
149
|
));
|
|
150
|
-
|
|
151
|
-
const ue = ge.Root, me = ge.Trigger,
|
|
150
|
+
qt.displayName = V.Description.displayName;
|
|
151
|
+
const ue = ge.Root, me = ge.Trigger, Gn = ge.Anchor, le = Y.forwardRef(({ className: t, align: n = "center", sideOffset: r = 4, ...a }, d) => /* @__PURE__ */ e(ge.Portal, { children: /* @__PURE__ */ e(
|
|
152
152
|
ge.Content,
|
|
153
153
|
{
|
|
154
154
|
ref: d,
|
|
@@ -162,8 +162,8 @@ const ue = ge.Root, me = ge.Trigger, Vn = ge.Anchor, le = X.forwardRef(({ classN
|
|
|
162
162
|
}
|
|
163
163
|
) }));
|
|
164
164
|
le.displayName = ge.Content.displayName;
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const Kt = V.Root, Xt = V.Trigger, Un = V.Close, Yt = V.Portal, ft = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
166
|
+
V.Overlay,
|
|
167
167
|
{
|
|
168
168
|
className: i(
|
|
169
169
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -173,11 +173,11 @@ const qt = P.Root, Kt = P.Trigger, Gn = P.Close, Xt = P.Portal, pt = X.forwardRe
|
|
|
173
173
|
ref: r
|
|
174
174
|
}
|
|
175
175
|
));
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
/* @__PURE__ */ e(
|
|
176
|
+
ft.displayName = V.Overlay.displayName;
|
|
177
|
+
const gt = Y.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__ */ o(Yt, { children: [
|
|
178
|
+
/* @__PURE__ */ e(ft, {}),
|
|
179
179
|
/* @__PURE__ */ o(
|
|
180
|
-
|
|
180
|
+
V.Content,
|
|
181
181
|
{
|
|
182
182
|
ref: a,
|
|
183
183
|
className: i(
|
|
@@ -189,16 +189,16 @@ const ft = X.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__
|
|
|
189
189
|
...r,
|
|
190
190
|
children: [
|
|
191
191
|
n,
|
|
192
|
-
/* @__PURE__ */ o(
|
|
193
|
-
/* @__PURE__ */ e(
|
|
192
|
+
/* @__PURE__ */ o(V.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
193
|
+
/* @__PURE__ */ e(mt, { className: "size-4" }),
|
|
194
194
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
195
195
|
] })
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
198
|
)
|
|
199
199
|
] }));
|
|
200
|
-
|
|
201
|
-
const
|
|
200
|
+
gt.displayName = "SheetContent";
|
|
201
|
+
const Jt = ({
|
|
202
202
|
className: t,
|
|
203
203
|
...n
|
|
204
204
|
}) => /* @__PURE__ */ e(
|
|
@@ -208,27 +208,27 @@ const Yt = ({
|
|
|
208
208
|
...n
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
|
|
211
|
+
Jt.displayName = "SheetHeader";
|
|
212
|
+
const Zt = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
213
|
+
V.Title,
|
|
214
214
|
{
|
|
215
215
|
ref: r,
|
|
216
216
|
className: i("text-lg font-semibold text-foreground", t),
|
|
217
217
|
...n
|
|
218
218
|
}
|
|
219
219
|
));
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
|
|
220
|
+
Zt.displayName = V.Title.displayName;
|
|
221
|
+
const Qt = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
222
|
+
V.Description,
|
|
223
223
|
{
|
|
224
224
|
ref: r,
|
|
225
225
|
className: i("text-sm text-muted-foreground", t),
|
|
226
226
|
...n
|
|
227
227
|
}
|
|
228
228
|
));
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
229
|
+
Qt.displayName = V.Description.displayName;
|
|
230
|
+
const qn = De.Provider, ae = De.Root, ie = De.Trigger, re = Y.forwardRef(({ className: t, sideOffset: n = 4, ...r }, a) => /* @__PURE__ */ e(
|
|
231
|
+
De.Content,
|
|
232
232
|
{
|
|
233
233
|
ref: a,
|
|
234
234
|
sideOffset: n,
|
|
@@ -239,7 +239,7 @@ const Un = ve.Provider, ae = ve.Root, ie = ve.Trigger, re = X.forwardRef(({ clas
|
|
|
239
239
|
...r
|
|
240
240
|
}
|
|
241
241
|
));
|
|
242
|
-
re.displayName =
|
|
242
|
+
re.displayName = De.Content.displayName;
|
|
243
243
|
function de(t) {
|
|
244
244
|
return {
|
|
245
245
|
blue: {
|
|
@@ -324,11 +324,11 @@ function de(t) {
|
|
|
324
324
|
}
|
|
325
325
|
}[t ?? "blue"];
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function xt(t) {
|
|
328
328
|
const n = new Date(t);
|
|
329
329
|
return n.setHours(0, 0, 0, 0), n;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ee({
|
|
332
332
|
event: t,
|
|
333
333
|
variant: n = "full",
|
|
334
334
|
badgeVariant: r = "colored",
|
|
@@ -340,72 +340,72 @@ function ze({
|
|
|
340
340
|
style: k,
|
|
341
341
|
disablePopover: l = !1,
|
|
342
342
|
renderPopover: b,
|
|
343
|
-
enableDrag:
|
|
343
|
+
enableDrag: v = !1,
|
|
344
344
|
enablePageTransition: u = !1,
|
|
345
345
|
pageTransitionDuration: x = 400,
|
|
346
|
-
eventDetailMode:
|
|
347
|
-
renderEventDetail:
|
|
346
|
+
eventDetailMode: p = "popover",
|
|
347
|
+
renderEventDetail: N
|
|
348
348
|
}) {
|
|
349
|
-
const g = de(t.color), [
|
|
350
|
-
|
|
351
|
-
if (!l &&
|
|
352
|
-
const
|
|
353
|
-
D(!0),
|
|
349
|
+
const g = de(t.color), [L, D] = Q(!1), [T, _] = Q(!1), [U, j] = Q(!1), [B, M] = Q(null), E = ne(null), I = Ve(), H = ct();
|
|
350
|
+
ke(() => {
|
|
351
|
+
if (!l && H?.focusEventId && H.focusEventId === t.id) {
|
|
352
|
+
const q = setTimeout(() => {
|
|
353
|
+
D(!0), H.clearFocusEventId();
|
|
354
354
|
}, 300);
|
|
355
|
-
return () => clearTimeout(
|
|
355
|
+
return () => clearTimeout(q);
|
|
356
356
|
}
|
|
357
|
-
}, [
|
|
358
|
-
const z = t.endDate <
|
|
359
|
-
if (!
|
|
357
|
+
}, [H?.focusEventId, t.id, l]);
|
|
358
|
+
const z = t.endDate < xt(/* @__PURE__ */ new Date()), f = t.isCanceled ?? !1, R = v && I && !f && !z, A = t.data, F = A?.meetingTookPlace ?? t.meetingTookPlace ?? !1, w = f ? /* @__PURE__ */ e(tn, { className: "h-3 w-3 text-zinc-800 dark:text-zinc-200" }) : F ? /* @__PURE__ */ e(en, { className: i("h-3 w-3", g.text) }) : null, c = A?.productName, m = A?.extendedProps, S = A?.nrParticipant, C = A?.siteName, P = A?.siteCity, O = [C, P].filter(Boolean).join(", "), $ = W(() => {
|
|
359
|
+
if (!T) {
|
|
360
360
|
if (l && a) {
|
|
361
361
|
a(t);
|
|
362
362
|
return;
|
|
363
363
|
}
|
|
364
|
-
if (u &&
|
|
365
|
-
const
|
|
366
|
-
|
|
364
|
+
if (u && E.current) {
|
|
365
|
+
const q = E.current.getBoundingClientRect();
|
|
366
|
+
M(q), j(!0);
|
|
367
367
|
} else l || D(!0);
|
|
368
368
|
}
|
|
369
|
-
}, [
|
|
370
|
-
|
|
371
|
-
|
|
369
|
+
}, [T, l, a, t, u]);
|
|
370
|
+
W(() => {
|
|
371
|
+
j(!1), M(null), l || D(!0);
|
|
372
372
|
}, [l]);
|
|
373
|
-
const
|
|
373
|
+
const G = W(() => {
|
|
374
374
|
D(!1);
|
|
375
|
-
}, []),
|
|
376
|
-
(
|
|
377
|
-
|
|
375
|
+
}, []), oe = W(
|
|
376
|
+
(q) => {
|
|
377
|
+
R && (q.dataTransfer.effectAllowed = "move", q.dataTransfer.setData("text/plain", t.id), _(!0), I?.startDrag?.(t));
|
|
378
378
|
},
|
|
379
|
-
[
|
|
380
|
-
),
|
|
381
|
-
|
|
382
|
-
}, [
|
|
383
|
-
switch (
|
|
379
|
+
[R, t, I]
|
|
380
|
+
), Z = W(() => {
|
|
381
|
+
_(!1), I?.isDragging && I.endDrag?.();
|
|
382
|
+
}, [I]), ee = N ? N({ event: t, onClose: G }) : b ? b({ event: t, onClose: G }) : /* @__PURE__ */ e(qe, { event: t, onClose: G }), xe = (q) => {
|
|
383
|
+
switch (p) {
|
|
384
384
|
case "dialog":
|
|
385
|
-
return /* @__PURE__ */ o(
|
|
386
|
-
/* @__PURE__ */ e(
|
|
387
|
-
/* @__PURE__ */ e(
|
|
385
|
+
return /* @__PURE__ */ o(jt, { open: L, onOpenChange: D, children: [
|
|
386
|
+
/* @__PURE__ */ e(Ft, { asChild: !0, children: q }),
|
|
387
|
+
/* @__PURE__ */ e(pt, { className: "sm:max-w-md", children: ee })
|
|
388
388
|
] });
|
|
389
389
|
case "sheet":
|
|
390
|
-
return /* @__PURE__ */ o(
|
|
391
|
-
/* @__PURE__ */ e(
|
|
392
|
-
/* @__PURE__ */ e(
|
|
390
|
+
return /* @__PURE__ */ o(Kt, { open: L, onOpenChange: D, children: [
|
|
391
|
+
/* @__PURE__ */ e(Xt, { asChild: !0, children: q }),
|
|
392
|
+
/* @__PURE__ */ e(gt, { children: ee })
|
|
393
393
|
] });
|
|
394
394
|
case "custom":
|
|
395
|
-
return
|
|
395
|
+
return q;
|
|
396
396
|
default:
|
|
397
|
-
return /* @__PURE__ */ o(ue, { open:
|
|
398
|
-
/* @__PURE__ */ e(me, { asChild: !0, children:
|
|
399
|
-
/* @__PURE__ */ e(le, { className: "w-80", children:
|
|
397
|
+
return /* @__PURE__ */ o(ue, { open: L, onOpenChange: D, children: [
|
|
398
|
+
/* @__PURE__ */ e(me, { asChild: !0, children: q }),
|
|
399
|
+
/* @__PURE__ */ e(le, { className: "w-80", children: ee })
|
|
400
400
|
] });
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
if (n === "dot") {
|
|
404
|
-
const
|
|
404
|
+
const q = /* @__PURE__ */ e(
|
|
405
405
|
"button",
|
|
406
406
|
{
|
|
407
407
|
type: "button",
|
|
408
|
-
onClick:
|
|
408
|
+
onClick: $,
|
|
409
409
|
className: i(
|
|
410
410
|
"size-2 rounded-full cursor-pointer transition-opacity",
|
|
411
411
|
g.dot,
|
|
@@ -417,37 +417,37 @@ function ze({
|
|
|
417
417
|
}
|
|
418
418
|
);
|
|
419
419
|
return l ? /* @__PURE__ */ o(ae, { children: [
|
|
420
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
420
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: q }),
|
|
421
421
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
422
422
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
423
|
-
/* @__PURE__ */ e("div", { className: "text-xs opacity-80", children:
|
|
423
|
+
/* @__PURE__ */ e("div", { className: "text-xs opacity-80", children: J(t) })
|
|
424
424
|
] }) })
|
|
425
|
-
] }) :
|
|
425
|
+
] }) : xe(
|
|
426
426
|
/* @__PURE__ */ o(ae, { children: [
|
|
427
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
427
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: q }),
|
|
428
428
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("div", { className: "font-medium", children: t.title }) })
|
|
429
429
|
] })
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
432
|
if (n === "compact") {
|
|
433
|
-
const
|
|
433
|
+
const q = /* @__PURE__ */ o(
|
|
434
434
|
"div",
|
|
435
435
|
{
|
|
436
436
|
role: "button",
|
|
437
437
|
tabIndex: 0,
|
|
438
|
-
draggable: !!
|
|
439
|
-
onDragStart:
|
|
440
|
-
onDragEnd:
|
|
441
|
-
onClick: l ?
|
|
442
|
-
onKeyDown: (
|
|
443
|
-
(
|
|
438
|
+
draggable: !!R,
|
|
439
|
+
onDragStart: oe,
|
|
440
|
+
onDragEnd: Z,
|
|
441
|
+
onClick: l ? $ : void 0,
|
|
442
|
+
onKeyDown: (be) => {
|
|
443
|
+
(be.key === "Enter" || be.key === " ") && (be.preventDefault(), $());
|
|
444
444
|
},
|
|
445
445
|
className: i(
|
|
446
446
|
"group flex w-full relative items-center shadow-[0_0_1px_rgba(0,0,0,0.3)] gap-0 rounded px-1.5 py-1 text-left text-xs transition-colors hover:opacity-80",
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
R ? "cursor-grab active:cursor-grabbing" : "cursor-pointer",
|
|
448
|
+
T && "opacity-50",
|
|
449
449
|
// Cancelled events get gray background with strikethrough
|
|
450
|
-
|
|
450
|
+
f ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-500 dark:text-zinc-400 line-through" : [
|
|
451
451
|
r === "colored" && [g.bg, g.text],
|
|
452
452
|
r === "mixed" && [g.bg, g.text],
|
|
453
453
|
r === "dot" && "bg-muted/50"
|
|
@@ -456,7 +456,7 @@ function ze({
|
|
|
456
456
|
),
|
|
457
457
|
style: k,
|
|
458
458
|
children: [
|
|
459
|
-
["dot", "mixed"].includes(r) && !
|
|
459
|
+
["dot", "mixed"].includes(r) && !f && /* @__PURE__ */ e(
|
|
460
460
|
"svg",
|
|
461
461
|
{
|
|
462
462
|
width: "8",
|
|
@@ -492,33 +492,33 @@ function ze({
|
|
|
492
492
|
"w-fit mt-0.5 text-[10px] px-1 py-0.5 border border-dashed rounded-full font-medium",
|
|
493
493
|
g.border
|
|
494
494
|
),
|
|
495
|
-
children:
|
|
495
|
+
children: J(t)
|
|
496
496
|
}
|
|
497
497
|
)
|
|
498
498
|
] }) }),
|
|
499
|
-
/* @__PURE__ */ e("div", { className: "flex gap-0.5", children:
|
|
499
|
+
/* @__PURE__ */ e("div", { className: "flex gap-0.5", children: w })
|
|
500
500
|
]
|
|
501
501
|
}
|
|
502
502
|
);
|
|
503
503
|
return l ? /* @__PURE__ */ o(ae, { children: [
|
|
504
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
504
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: q }),
|
|
505
505
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
506
506
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
507
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
507
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t) })
|
|
508
508
|
] }) })
|
|
509
|
-
] }) :
|
|
509
|
+
] }) : xe(q);
|
|
510
510
|
}
|
|
511
|
-
const
|
|
511
|
+
const ye = /* @__PURE__ */ o(
|
|
512
512
|
"button",
|
|
513
513
|
{
|
|
514
514
|
type: "button",
|
|
515
|
-
onClick:
|
|
515
|
+
onClick: $,
|
|
516
516
|
className: i(
|
|
517
517
|
"group relative flex w-full flex-col gap-1 rounded-md border-l-[3px] px-2 py-1.5 text-left transition-all",
|
|
518
518
|
"shadow-[0_1px_3px_rgba(0,0,0,0.08)] hover:shadow-[0_2px_6px_rgba(0,0,0,0.12)]",
|
|
519
519
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
520
520
|
// Cancelled events get gray background with strikethrough
|
|
521
|
-
|
|
521
|
+
f ? "bg-zinc-100 dark:bg-zinc-800 border-l-zinc-400 dark:border-l-zinc-600 text-zinc-500 dark:text-zinc-400 line-through" : [
|
|
522
522
|
r === "colored" && [
|
|
523
523
|
g.bg,
|
|
524
524
|
g.accentBorder,
|
|
@@ -537,7 +537,7 @@ function ze({
|
|
|
537
537
|
children: [
|
|
538
538
|
/* @__PURE__ */ o("div", { className: "flex items-start justify-between gap-1", children: [
|
|
539
539
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
540
|
-
["dot", "mixed"].includes(r) && !
|
|
540
|
+
["dot", "mixed"].includes(r) && !f && /* @__PURE__ */ e(
|
|
541
541
|
"svg",
|
|
542
542
|
{
|
|
543
543
|
width: "8",
|
|
@@ -554,49 +554,50 @@ function ze({
|
|
|
554
554
|
{
|
|
555
555
|
className: i(
|
|
556
556
|
"text-sm font-medium truncate",
|
|
557
|
-
!
|
|
558
|
-
|
|
557
|
+
!f && r !== "dot" && g.text,
|
|
558
|
+
f && "line-through"
|
|
559
559
|
),
|
|
560
560
|
children: t.title
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
563
|
] }),
|
|
564
|
-
|
|
564
|
+
w
|
|
565
565
|
] }),
|
|
566
566
|
c && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground truncate", children: c }),
|
|
567
|
-
m
|
|
568
|
-
|
|
567
|
+
m && m.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col", children: m.map((q, be) => /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground truncate", children: q }, be)) }),
|
|
568
|
+
S != null && S > 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1 text-xs text-muted-foreground", children: [
|
|
569
|
+
/* @__PURE__ */ e($e, { className: "h-3 w-3 shrink-0" }),
|
|
569
570
|
/* @__PURE__ */ o("span", { children: [
|
|
570
|
-
|
|
571
|
+
S,
|
|
571
572
|
" participant",
|
|
572
|
-
|
|
573
|
+
S !== 1 ? "s" : ""
|
|
573
574
|
] })
|
|
574
575
|
] }),
|
|
575
576
|
h && /* @__PURE__ */ o("div", { className: "flex items-center gap-1 text-xs text-muted-foreground", children: [
|
|
576
|
-
/* @__PURE__ */ e(
|
|
577
|
-
/* @__PURE__ */ e("span", { children:
|
|
577
|
+
/* @__PURE__ */ e(Ue, { className: "h-3 w-3 shrink-0" }),
|
|
578
|
+
/* @__PURE__ */ e("span", { children: J(t) })
|
|
578
579
|
] }),
|
|
579
|
-
|
|
580
|
-
/* @__PURE__ */ e(
|
|
581
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
580
|
+
O && /* @__PURE__ */ o("div", { className: "flex items-center gap-1 text-xs text-muted-foreground", children: [
|
|
581
|
+
/* @__PURE__ */ e(yt, { className: "h-3 w-3 shrink-0" }),
|
|
582
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: O })
|
|
582
583
|
] }),
|
|
583
584
|
s && t.description && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground line-clamp-2", children: t.description }),
|
|
584
585
|
y && t.participants && t.participants.length > 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1 text-xs text-muted-foreground", children: [
|
|
585
|
-
/* @__PURE__ */ e(
|
|
586
|
-
/* @__PURE__ */ e("span", { className: "truncate", children: t.participants.map((
|
|
586
|
+
/* @__PURE__ */ e($e, { className: "h-3 w-3 shrink-0" }),
|
|
587
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: t.participants.map((q) => q.name).join(", ") })
|
|
587
588
|
] })
|
|
588
589
|
]
|
|
589
590
|
}
|
|
590
591
|
);
|
|
591
592
|
return l ? /* @__PURE__ */ o(ae, { children: [
|
|
592
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
593
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: ye }),
|
|
593
594
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
594
595
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
595
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
596
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t) })
|
|
596
597
|
] }) })
|
|
597
|
-
] }) :
|
|
598
|
+
] }) : xe(ye);
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
+
function Ue({ className: t }) {
|
|
600
601
|
return /* @__PURE__ */ o(
|
|
601
602
|
"svg",
|
|
602
603
|
{
|
|
@@ -615,7 +616,7 @@ function Ge({ className: t }) {
|
|
|
615
616
|
}
|
|
616
617
|
);
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
+
function en({ className: t }) {
|
|
619
620
|
return /* @__PURE__ */ e(
|
|
620
621
|
"svg",
|
|
621
622
|
{
|
|
@@ -631,7 +632,7 @@ function Qt({ className: t }) {
|
|
|
631
632
|
}
|
|
632
633
|
);
|
|
633
634
|
}
|
|
634
|
-
function
|
|
635
|
+
function tn({ className: t }) {
|
|
635
636
|
return /* @__PURE__ */ o(
|
|
636
637
|
"svg",
|
|
637
638
|
{
|
|
@@ -650,7 +651,7 @@ function en({ className: t }) {
|
|
|
650
651
|
}
|
|
651
652
|
);
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function $e({ className: t }) {
|
|
654
655
|
return /* @__PURE__ */ o(
|
|
655
656
|
"svg",
|
|
656
657
|
{
|
|
@@ -671,7 +672,7 @@ function Be({ className: t }) {
|
|
|
671
672
|
}
|
|
672
673
|
);
|
|
673
674
|
}
|
|
674
|
-
function
|
|
675
|
+
function yt({ className: t }) {
|
|
675
676
|
return /* @__PURE__ */ o(
|
|
676
677
|
"svg",
|
|
677
678
|
{
|
|
@@ -690,7 +691,7 @@ function xt({ className: t }) {
|
|
|
690
691
|
}
|
|
691
692
|
);
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
+
function qe({
|
|
694
695
|
event: t,
|
|
695
696
|
onClose: n
|
|
696
697
|
}) {
|
|
@@ -710,8 +711,8 @@ function Ue({
|
|
|
710
711
|
}
|
|
711
712
|
),
|
|
712
713
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1 text-sm text-muted-foreground mt-1", children: [
|
|
713
|
-
/* @__PURE__ */ e(
|
|
714
|
-
/* @__PURE__ */ e("span", { className: "tabular-nums", children:
|
|
714
|
+
/* @__PURE__ */ e(Ue, { className: "h-4 w-4 shrink-0" }),
|
|
715
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: J(t) })
|
|
715
716
|
] })
|
|
716
717
|
] })
|
|
717
718
|
] }),
|
|
@@ -732,7 +733,7 @@ function Ue({
|
|
|
732
733
|
) })
|
|
733
734
|
] });
|
|
734
735
|
}
|
|
735
|
-
function
|
|
736
|
+
function bt({
|
|
736
737
|
event: t,
|
|
737
738
|
position: n,
|
|
738
739
|
hourHeight: r = 96,
|
|
@@ -743,70 +744,70 @@ function yt({
|
|
|
743
744
|
renderPopover: y,
|
|
744
745
|
enableDrag: k = !0
|
|
745
746
|
}) {
|
|
746
|
-
const l = de(t.color), [b,
|
|
747
|
-
|
|
748
|
-
if (!s &&
|
|
749
|
-
const
|
|
750
|
-
|
|
747
|
+
const l = de(t.color), [b, v] = Q(!1), [u, x] = Q(!1), p = Ve(), N = ct();
|
|
748
|
+
ke(() => {
|
|
749
|
+
if (!s && N?.focusEventId && N.focusEventId === t.id) {
|
|
750
|
+
const O = setTimeout(() => {
|
|
751
|
+
v(!0), N.clearFocusEventId();
|
|
751
752
|
}, 300);
|
|
752
|
-
return () => clearTimeout(
|
|
753
|
+
return () => clearTimeout(O);
|
|
753
754
|
}
|
|
754
|
-
}, [
|
|
755
|
-
const g = (t.endDate.getTime() - t.startDate.getTime()) / (1e3 * 60),
|
|
756
|
-
u || (s && d ? d(t) : s ||
|
|
757
|
-
}, [u, s, d, t]),
|
|
758
|
-
|
|
759
|
-
}, []),
|
|
760
|
-
(
|
|
761
|
-
if (!
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
), x(!0),
|
|
755
|
+
}, [N?.focusEventId, t.id, s]);
|
|
756
|
+
const g = (t.endDate.getTime() - t.startDate.getTime()) / (1e3 * 60), L = g / 60 * r - 8, D = t.endDate < xt(/* @__PURE__ */ new Date()), T = t.isCanceled ?? !1, _ = k && p && !T && !D, U = g < 35, j = g > 25, B = g >= 45, M = t.data, E = M?.productName, I = M?.extendedProps, H = M?.nrParticipant, z = M?.siteName, f = M?.siteCity, R = [z, f].filter(Boolean).join(", "), A = a === "dot", F = W(() => {
|
|
757
|
+
u || (s && d ? d(t) : s || v(!0));
|
|
758
|
+
}, [u, s, d, t]), w = W(() => {
|
|
759
|
+
v(!1);
|
|
760
|
+
}, []), c = W(
|
|
761
|
+
(O) => {
|
|
762
|
+
if (!_) return;
|
|
763
|
+
O.dataTransfer.effectAllowed = "move", O.dataTransfer.setData("text/plain", t.id);
|
|
764
|
+
const $ = O.currentTarget, G = $.getBoundingClientRect();
|
|
765
|
+
O.dataTransfer.setDragImage(
|
|
766
|
+
$,
|
|
767
|
+
O.clientX - G.left,
|
|
768
|
+
O.clientY - G.top
|
|
769
|
+
), x(!0), p?.startDrag?.(t);
|
|
769
770
|
},
|
|
770
|
-
[
|
|
771
|
-
),
|
|
772
|
-
x(!1),
|
|
773
|
-
}, [
|
|
774
|
-
(
|
|
775
|
-
(
|
|
771
|
+
[_, t, p]
|
|
772
|
+
), m = W(() => {
|
|
773
|
+
x(!1), p?.isDragging && p.endDrag?.();
|
|
774
|
+
}, [p]), S = W(
|
|
775
|
+
(O) => {
|
|
776
|
+
(O.key === "Enter" || O.key === " ") && (O.preventDefault(), F());
|
|
776
777
|
},
|
|
777
|
-
[
|
|
778
|
-
),
|
|
778
|
+
[F]
|
|
779
|
+
), C = /* @__PURE__ */ o(
|
|
779
780
|
"div",
|
|
780
781
|
{
|
|
781
782
|
role: "button",
|
|
782
783
|
tabIndex: 0,
|
|
783
|
-
draggable: !!
|
|
784
|
-
onDragStart:
|
|
785
|
-
onDragEnd:
|
|
786
|
-
onKeyDown:
|
|
787
|
-
onClick: u ? void 0 :
|
|
784
|
+
draggable: !!_,
|
|
785
|
+
onDragStart: c,
|
|
786
|
+
onDragEnd: m,
|
|
787
|
+
onKeyDown: S,
|
|
788
|
+
onClick: u ? void 0 : F,
|
|
788
789
|
className: i(
|
|
789
790
|
"group flex w-full select-none flex-col gap-0.5 overflow-hidden rounded-md border-l-[3px] px-2 py-1.5 text-xs text-left",
|
|
790
791
|
"shadow-[0_1px_3px_rgba(0,0,0,0.08)] hover:shadow-[0_2px_6px_rgba(0,0,0,0.12)]",
|
|
791
792
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
792
793
|
"transition-all",
|
|
793
|
-
|
|
794
|
+
_ ? "cursor-grab active:cursor-grabbing" : "cursor-pointer",
|
|
794
795
|
u && "opacity-50",
|
|
795
796
|
// Cancelled events get gray background with strikethrough
|
|
796
|
-
|
|
797
|
+
T ? "bg-zinc-100 dark:bg-zinc-800 border-l-zinc-400 dark:border-l-zinc-600 text-zinc-500 dark:text-zinc-400 line-through" : [
|
|
797
798
|
// Colored/mixed variants
|
|
798
|
-
!
|
|
799
|
+
!A && [l.bg, l.accentBorder, l.text],
|
|
799
800
|
// Dot variant - neutral background
|
|
800
|
-
|
|
801
|
+
A && "bg-neutral-50 dark:bg-neutral-900 border-l-neutral-400 dark:border-l-neutral-600"
|
|
801
802
|
],
|
|
802
803
|
// Short events center content
|
|
803
|
-
|
|
804
|
+
U && "py-0 justify-center",
|
|
804
805
|
h
|
|
805
806
|
),
|
|
806
|
-
style: { height: `${Math.max(
|
|
807
|
+
style: { height: `${Math.max(L, 20)}px` },
|
|
807
808
|
children: [
|
|
808
809
|
/* @__PURE__ */ o("div", { className: "flex items-start gap-1.5 min-w-0", children: [
|
|
809
|
-
["mixed", "dot"].includes(a) && !
|
|
810
|
+
["mixed", "dot"].includes(a) && !T && /* @__PURE__ */ e(
|
|
810
811
|
"svg",
|
|
811
812
|
{
|
|
812
813
|
width: "8",
|
|
@@ -823,77 +824,89 @@ function yt({
|
|
|
823
824
|
{
|
|
824
825
|
className: i(
|
|
825
826
|
"font-semibold truncate leading-tight",
|
|
826
|
-
!
|
|
827
|
+
!T && A && "text-foreground"
|
|
827
828
|
),
|
|
828
829
|
children: t.title
|
|
829
830
|
}
|
|
830
831
|
) })
|
|
831
832
|
] }),
|
|
832
|
-
|
|
833
|
+
B && E && /* @__PURE__ */ e(
|
|
833
834
|
"p",
|
|
834
835
|
{
|
|
835
836
|
className: i(
|
|
836
837
|
"text-[11px] truncate leading-tight",
|
|
837
|
-
|
|
838
|
+
A ? "text-muted-foreground" : "opacity-80"
|
|
838
839
|
),
|
|
839
|
-
children:
|
|
840
|
+
children: E
|
|
840
841
|
}
|
|
841
842
|
),
|
|
842
|
-
|
|
843
|
+
B && I && I.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col", children: I.map((O, $) => /* @__PURE__ */ e(
|
|
844
|
+
"p",
|
|
845
|
+
{
|
|
846
|
+
className: i(
|
|
847
|
+
"text-[11px] truncate leading-tight",
|
|
848
|
+
A ? "text-muted-foreground" : "opacity-80"
|
|
849
|
+
),
|
|
850
|
+
children: O
|
|
851
|
+
},
|
|
852
|
+
$
|
|
853
|
+
)) }),
|
|
854
|
+
H != null && H > 0 && /* @__PURE__ */ o(
|
|
843
855
|
"div",
|
|
844
856
|
{
|
|
845
857
|
className: i(
|
|
846
858
|
"flex items-center gap-1 text-[11px] leading-tight",
|
|
847
|
-
|
|
859
|
+
A ? "text-muted-foreground" : "opacity-80"
|
|
848
860
|
),
|
|
849
861
|
children: [
|
|
850
|
-
/* @__PURE__ */ e(
|
|
862
|
+
/* @__PURE__ */ e($e, { className: "h-3 w-3 shrink-0" }),
|
|
851
863
|
/* @__PURE__ */ o("span", { children: [
|
|
852
|
-
|
|
864
|
+
H,
|
|
853
865
|
" participant",
|
|
854
|
-
|
|
866
|
+
H !== 1 ? "s" : ""
|
|
855
867
|
] })
|
|
856
868
|
]
|
|
857
869
|
}
|
|
858
870
|
),
|
|
859
|
-
|
|
871
|
+
j && /* @__PURE__ */ o(
|
|
860
872
|
"div",
|
|
861
873
|
{
|
|
862
874
|
className: i(
|
|
863
875
|
"flex items-center gap-1 text-[11px] tabular-nums leading-tight",
|
|
864
|
-
|
|
876
|
+
A ? "text-muted-foreground" : "opacity-90"
|
|
865
877
|
),
|
|
866
878
|
children: [
|
|
867
|
-
/* @__PURE__ */ e(
|
|
868
|
-
/* @__PURE__ */ e("span", { children:
|
|
879
|
+
/* @__PURE__ */ e(Ue, { className: "h-3 w-3 shrink-0" }),
|
|
880
|
+
/* @__PURE__ */ e("span", { children: J(t) })
|
|
869
881
|
]
|
|
870
882
|
}
|
|
871
883
|
),
|
|
872
|
-
|
|
884
|
+
B && R && /* @__PURE__ */ o(
|
|
873
885
|
"div",
|
|
874
886
|
{
|
|
875
887
|
className: i(
|
|
876
888
|
"flex items-center gap-1 text-[11px] truncate leading-tight",
|
|
877
|
-
|
|
889
|
+
A ? "text-muted-foreground" : "opacity-80"
|
|
878
890
|
),
|
|
879
891
|
children: [
|
|
880
|
-
/* @__PURE__ */ e(
|
|
881
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
892
|
+
/* @__PURE__ */ e(yt, { className: "h-3 w-3 shrink-0" }),
|
|
893
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: R })
|
|
882
894
|
]
|
|
883
895
|
}
|
|
884
896
|
)
|
|
885
897
|
]
|
|
886
898
|
}
|
|
887
|
-
),
|
|
899
|
+
), P = /* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
888
900
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
901
|
+
E && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: E }),
|
|
902
|
+
I && I.length > 0 && I.map((O, $) => /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: O }, $)),
|
|
903
|
+
H != null && /* @__PURE__ */ o("div", { className: "text-xs text-muted-foreground", children: [
|
|
904
|
+
H,
|
|
892
905
|
" participant",
|
|
893
|
-
|
|
906
|
+
H !== 1 ? "s" : ""
|
|
894
907
|
] }),
|
|
895
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
896
|
-
|
|
908
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t) }),
|
|
909
|
+
R && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: R })
|
|
897
910
|
] }) });
|
|
898
911
|
return s ? /* @__PURE__ */ e(
|
|
899
912
|
"div",
|
|
@@ -906,8 +919,8 @@ function yt({
|
|
|
906
919
|
minWidth: n.minWidth ? `${n.minWidth}px` : void 0
|
|
907
920
|
},
|
|
908
921
|
children: /* @__PURE__ */ o(ae, { children: [
|
|
909
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
910
|
-
|
|
922
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: C }),
|
|
923
|
+
P
|
|
911
924
|
] })
|
|
912
925
|
}
|
|
913
926
|
) : /* @__PURE__ */ e(
|
|
@@ -920,14 +933,14 @@ function yt({
|
|
|
920
933
|
width: n.minWidth ? `max(${n.minWidth}px, ${n.width}%)` : `${n.width}%`,
|
|
921
934
|
minWidth: n.minWidth ? `${n.minWidth}px` : void 0
|
|
922
935
|
},
|
|
923
|
-
children: /* @__PURE__ */ o(ue, { open: b, onOpenChange:
|
|
924
|
-
/* @__PURE__ */ e(me, { asChild: !0, children:
|
|
925
|
-
/* @__PURE__ */ e(le, { className: "w-80", children: y ? y({ event: t, onClose:
|
|
936
|
+
children: /* @__PURE__ */ o(ue, { open: b, onOpenChange: v, children: [
|
|
937
|
+
/* @__PURE__ */ e(me, { asChild: !0, children: C }),
|
|
938
|
+
/* @__PURE__ */ e(le, { className: "w-80", children: y ? y({ event: t, onClose: w }) : /* @__PURE__ */ e(qe, { event: t, onClose: w }) })
|
|
926
939
|
] })
|
|
927
940
|
}
|
|
928
941
|
);
|
|
929
942
|
}
|
|
930
|
-
function
|
|
943
|
+
function Kn({
|
|
931
944
|
event: t,
|
|
932
945
|
spanDays: n,
|
|
933
946
|
isStart: r,
|
|
@@ -937,11 +950,11 @@ function qn({
|
|
|
937
950
|
disablePopover: s = !1,
|
|
938
951
|
renderPopover: y
|
|
939
952
|
}) {
|
|
940
|
-
const k = de(t.color), [l, b] = Q(!1),
|
|
953
|
+
const k = de(t.color), [l, b] = Q(!1), v = t.isCanceled ?? !1, u = W(() => {
|
|
941
954
|
s && d ? d(t) : s || b(!0);
|
|
942
|
-
}, [s, d, t]), x =
|
|
955
|
+
}, [s, d, t]), x = W(() => {
|
|
943
956
|
b(!1);
|
|
944
|
-
}, []),
|
|
957
|
+
}, []), p = /* @__PURE__ */ e(
|
|
945
958
|
"button",
|
|
946
959
|
{
|
|
947
960
|
type: "button",
|
|
@@ -949,7 +962,7 @@ function qn({
|
|
|
949
962
|
className: i(
|
|
950
963
|
"flex h-5 items-center px-1.5 text-xs font-medium transition-opacity hover:opacity-80",
|
|
951
964
|
// Cancelled events get gray background with strikethrough
|
|
952
|
-
|
|
965
|
+
v ? "bg-zinc-200 dark:bg-zinc-700 text-zinc-500 dark:text-zinc-400 line-through" : [k.dot, "text-white"],
|
|
953
966
|
r && "rounded-l",
|
|
954
967
|
a && "rounded-r",
|
|
955
968
|
!r && "border-l-0",
|
|
@@ -959,16 +972,16 @@ function qn({
|
|
|
959
972
|
style: { width: `${n * 100}%` },
|
|
960
973
|
children: r && /* @__PURE__ */ e("span", { className: "truncate", children: t.title })
|
|
961
974
|
}
|
|
962
|
-
),
|
|
975
|
+
), N = /* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
963
976
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
964
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
977
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t) })
|
|
965
978
|
] }) });
|
|
966
979
|
return s ? /* @__PURE__ */ o(ae, { children: [
|
|
967
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
968
|
-
|
|
980
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: p }),
|
|
981
|
+
N
|
|
969
982
|
] }) : /* @__PURE__ */ o(ue, { open: l, onOpenChange: b, children: [
|
|
970
|
-
/* @__PURE__ */ e(me, { asChild: !0, children:
|
|
971
|
-
/* @__PURE__ */ e(le, { className: "w-80", children: y ? y({ event: t, onClose: x }) : /* @__PURE__ */ e(
|
|
983
|
+
/* @__PURE__ */ e(me, { asChild: !0, children: p }),
|
|
984
|
+
/* @__PURE__ */ e(le, { className: "w-80", children: y ? y({ event: t, onClose: x }) : /* @__PURE__ */ e(qe, { event: t, onClose: x }) })
|
|
972
985
|
] });
|
|
973
986
|
}
|
|
974
987
|
if (typeof window < "u" && !document.getElementById("inno-calendar-event-marquee-style")) {
|
|
@@ -984,36 +997,36 @@ if (typeof window < "u" && !document.getElementById("inno-calendar-event-marquee
|
|
|
984
997
|
}
|
|
985
998
|
`, document.head.appendChild(t);
|
|
986
999
|
}
|
|
987
|
-
const
|
|
1000
|
+
const Ye = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Je = Dt, wt = (t, n) => (r) => {
|
|
988
1001
|
var a;
|
|
989
|
-
if (n?.variants == null) return
|
|
1002
|
+
if (n?.variants == null) return Je(t, r?.class, r?.className);
|
|
990
1003
|
const { variants: d, defaultVariants: h } = n, s = Object.keys(d).map((l) => {
|
|
991
|
-
const b = r?.[l],
|
|
1004
|
+
const b = r?.[l], v = h?.[l];
|
|
992
1005
|
if (b === null) return null;
|
|
993
|
-
const u =
|
|
1006
|
+
const u = Ye(b) || Ye(v);
|
|
994
1007
|
return d[l][u];
|
|
995
1008
|
}), y = r && Object.entries(r).reduce((l, b) => {
|
|
996
|
-
let [
|
|
997
|
-
return u === void 0 || (l[
|
|
1009
|
+
let [v, u] = b;
|
|
1010
|
+
return u === void 0 || (l[v] = u), l;
|
|
998
1011
|
}, {}), k = n == null || (a = n.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((l, b) => {
|
|
999
|
-
let { class:
|
|
1000
|
-
return Object.entries(x).every((
|
|
1001
|
-
let [
|
|
1012
|
+
let { class: v, className: u, ...x } = b;
|
|
1013
|
+
return Object.entries(x).every((p) => {
|
|
1014
|
+
let [N, g] = p;
|
|
1002
1015
|
return Array.isArray(g) ? g.includes({
|
|
1003
1016
|
...h,
|
|
1004
1017
|
...y
|
|
1005
|
-
}[
|
|
1018
|
+
}[N]) : {
|
|
1006
1019
|
...h,
|
|
1007
1020
|
...y
|
|
1008
|
-
}[
|
|
1021
|
+
}[N] === g;
|
|
1009
1022
|
}) ? [
|
|
1010
1023
|
...l,
|
|
1011
|
-
|
|
1024
|
+
v,
|
|
1012
1025
|
u
|
|
1013
1026
|
] : l;
|
|
1014
1027
|
}, []);
|
|
1015
|
-
return
|
|
1016
|
-
},
|
|
1028
|
+
return Je(t, s, k, r?.class, r?.className);
|
|
1029
|
+
}, nn = wt(
|
|
1017
1030
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1018
1031
|
{
|
|
1019
1032
|
variants: {
|
|
@@ -1037,11 +1050,11 @@ const Xe = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Ye = kt, b
|
|
|
1037
1050
|
size: "default"
|
|
1038
1051
|
}
|
|
1039
1052
|
}
|
|
1040
|
-
), pe =
|
|
1053
|
+
), pe = Pe(
|
|
1041
1054
|
({ className: t, variant: n, size: r, loading: a, disabled: d, children: h, ...s }, y) => /* @__PURE__ */ o(
|
|
1042
1055
|
"button",
|
|
1043
1056
|
{
|
|
1044
|
-
className: i(
|
|
1057
|
+
className: i(nn({ variant: n, size: r, className: t })),
|
|
1045
1058
|
ref: y,
|
|
1046
1059
|
disabled: d || a,
|
|
1047
1060
|
...s,
|
|
@@ -1082,8 +1095,8 @@ const Xe = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Ye = kt, b
|
|
|
1082
1095
|
)
|
|
1083
1096
|
);
|
|
1084
1097
|
pe.displayName = "Button";
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1098
|
+
const Ze = X.Root, Qe = X.Trigger, rn = Y.forwardRef(({ className: t, inset: n, children: r, ...a }, d) => /* @__PURE__ */ o(
|
|
1099
|
+
X.SubTrigger,
|
|
1087
1100
|
{
|
|
1088
1101
|
ref: d,
|
|
1089
1102
|
className: i(
|
|
@@ -1094,13 +1107,13 @@ const Je = q.Root, Ze = q.Trigger, nn = X.forwardRef(({ className: t, inset: n,
|
|
|
1094
1107
|
...a,
|
|
1095
1108
|
children: [
|
|
1096
1109
|
r,
|
|
1097
|
-
/* @__PURE__ */ e(
|
|
1110
|
+
/* @__PURE__ */ e($t, { className: "ml-auto h-4 w-4" })
|
|
1098
1111
|
]
|
|
1099
1112
|
}
|
|
1100
1113
|
));
|
|
1101
|
-
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1114
|
+
rn.displayName = X.SubTrigger.displayName;
|
|
1115
|
+
const on = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
1116
|
+
X.SubContent,
|
|
1104
1117
|
{
|
|
1105
1118
|
ref: r,
|
|
1106
1119
|
className: i(
|
|
@@ -1110,9 +1123,9 @@ const rn = X.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
1110
1123
|
...n
|
|
1111
1124
|
}
|
|
1112
1125
|
));
|
|
1113
|
-
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1126
|
+
on.displayName = X.SubContent.displayName;
|
|
1127
|
+
const He = Y.forwardRef(({ className: t, sideOffset: n = 4, ...r }, a) => /* @__PURE__ */ e(X.Portal, { children: /* @__PURE__ */ e(
|
|
1128
|
+
X.Content,
|
|
1116
1129
|
{
|
|
1117
1130
|
ref: a,
|
|
1118
1131
|
sideOffset: n,
|
|
@@ -1123,9 +1136,9 @@ const $e = X.forwardRef(({ className: t, sideOffset: n = 4, ...r }, a) => /* @__
|
|
|
1123
1136
|
...r
|
|
1124
1137
|
}
|
|
1125
1138
|
) }));
|
|
1126
|
-
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1139
|
+
He.displayName = X.Content.displayName;
|
|
1140
|
+
const Oe = Y.forwardRef(({ className: t, inset: n, ...r }, a) => /* @__PURE__ */ e(
|
|
1141
|
+
X.Item,
|
|
1129
1142
|
{
|
|
1130
1143
|
ref: a,
|
|
1131
1144
|
className: i(
|
|
@@ -1136,9 +1149,9 @@ const He = X.forwardRef(({ className: t, inset: n, ...r }, a) => /* @__PURE__ */
|
|
|
1136
1149
|
...r
|
|
1137
1150
|
}
|
|
1138
1151
|
));
|
|
1139
|
-
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1152
|
+
Oe.displayName = X.Item.displayName;
|
|
1153
|
+
const an = Y.forwardRef(({ className: t, children: n, checked: r = !1, ...a }, d) => /* @__PURE__ */ o(
|
|
1154
|
+
X.CheckboxItem,
|
|
1142
1155
|
{
|
|
1143
1156
|
ref: d,
|
|
1144
1157
|
className: i(
|
|
@@ -1148,14 +1161,14 @@ const on = X.forwardRef(({ className: t, children: n, checked: r = !1, ...a }, d
|
|
|
1148
1161
|
checked: r,
|
|
1149
1162
|
...a,
|
|
1150
1163
|
children: [
|
|
1151
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1164
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(X.ItemIndicator, { children: /* @__PURE__ */ e(It, { className: "h-4 w-4" }) }) }),
|
|
1152
1165
|
n
|
|
1153
1166
|
]
|
|
1154
1167
|
}
|
|
1155
1168
|
));
|
|
1156
|
-
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1169
|
+
an.displayName = X.CheckboxItem.displayName;
|
|
1170
|
+
const sn = Y.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__ */ o(
|
|
1171
|
+
X.RadioItem,
|
|
1159
1172
|
{
|
|
1160
1173
|
ref: a,
|
|
1161
1174
|
className: i(
|
|
@@ -1164,31 +1177,31 @@ const an = X.forwardRef(({ className: t, children: n, ...r }, a) => /* @__PURE__
|
|
|
1164
1177
|
),
|
|
1165
1178
|
...r,
|
|
1166
1179
|
children: [
|
|
1167
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1180
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(X.ItemIndicator, { children: /* @__PURE__ */ e(Ot, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1168
1181
|
n
|
|
1169
1182
|
]
|
|
1170
1183
|
}
|
|
1171
1184
|
));
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1185
|
+
sn.displayName = X.RadioItem.displayName;
|
|
1186
|
+
const ln = Y.forwardRef(({ className: t, inset: n, ...r }, a) => /* @__PURE__ */ e(
|
|
1187
|
+
X.Label,
|
|
1175
1188
|
{
|
|
1176
1189
|
ref: a,
|
|
1177
1190
|
className: i("px-2 py-1.5 text-sm font-semibold", n && "pl-8", t),
|
|
1178
1191
|
...r
|
|
1179
1192
|
}
|
|
1180
1193
|
));
|
|
1181
|
-
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1194
|
+
ln.displayName = X.Label.displayName;
|
|
1195
|
+
const dn = Y.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
1196
|
+
X.Separator,
|
|
1184
1197
|
{
|
|
1185
1198
|
ref: r,
|
|
1186
1199
|
className: i("-mx-1 my-1 h-px bg-muted", t),
|
|
1187
1200
|
...n
|
|
1188
1201
|
}
|
|
1189
1202
|
));
|
|
1190
|
-
|
|
1191
|
-
const
|
|
1203
|
+
dn.displayName = X.Separator.displayName;
|
|
1204
|
+
const cn = wt(
|
|
1192
1205
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
1193
1206
|
{
|
|
1194
1207
|
variants: {
|
|
@@ -1202,10 +1215,10 @@ const dn = bt(
|
|
|
1202
1215
|
defaultVariants: { variant: "default" }
|
|
1203
1216
|
}
|
|
1204
1217
|
);
|
|
1205
|
-
function
|
|
1206
|
-
return /* @__PURE__ */ e("div", { className: i(
|
|
1218
|
+
function un({ className: t, variant: n, ...r }) {
|
|
1219
|
+
return /* @__PURE__ */ e("div", { className: i(cn({ variant: n }), t), ...r });
|
|
1207
1220
|
}
|
|
1208
|
-
function
|
|
1221
|
+
function mn({ className: t }) {
|
|
1209
1222
|
return /* @__PURE__ */ e(
|
|
1210
1223
|
"svg",
|
|
1211
1224
|
{
|
|
@@ -1223,7 +1236,7 @@ function un({ className: t }) {
|
|
|
1223
1236
|
}
|
|
1224
1237
|
);
|
|
1225
1238
|
}
|
|
1226
|
-
function
|
|
1239
|
+
function hn({ className: t }) {
|
|
1227
1240
|
return /* @__PURE__ */ e(
|
|
1228
1241
|
"svg",
|
|
1229
1242
|
{
|
|
@@ -1241,7 +1254,7 @@ function mn({ className: t }) {
|
|
|
1241
1254
|
}
|
|
1242
1255
|
);
|
|
1243
1256
|
}
|
|
1244
|
-
const
|
|
1257
|
+
const pn = [
|
|
1245
1258
|
"January",
|
|
1246
1259
|
"February",
|
|
1247
1260
|
"March",
|
|
@@ -1255,7 +1268,7 @@ const hn = [
|
|
|
1255
1268
|
"November",
|
|
1256
1269
|
"December"
|
|
1257
1270
|
];
|
|
1258
|
-
function
|
|
1271
|
+
function fn({
|
|
1259
1272
|
date: t,
|
|
1260
1273
|
view: n,
|
|
1261
1274
|
events: r = [],
|
|
@@ -1265,7 +1278,7 @@ function pn({
|
|
|
1265
1278
|
showEventCount: s = !0,
|
|
1266
1279
|
className: y
|
|
1267
1280
|
}) {
|
|
1268
|
-
const k =
|
|
1281
|
+
const k = pn[t.getMonth()], l = t.getFullYear(), b = s ? Ct(r, t, n, h) : 0, v = St(t, n);
|
|
1269
1282
|
return /* @__PURE__ */ o("div", { className: i("min-w-0 flex-1", y), children: [
|
|
1270
1283
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 sm:gap-2 flex-wrap", children: [
|
|
1271
1284
|
/* @__PURE__ */ o("span", { className: "text-base sm:text-lg font-semibold truncate", children: [
|
|
@@ -1273,7 +1286,7 @@ function pn({
|
|
|
1273
1286
|
" ",
|
|
1274
1287
|
l
|
|
1275
1288
|
] }),
|
|
1276
|
-
s && /* @__PURE__ */ e(
|
|
1289
|
+
s && /* @__PURE__ */ e(un, { variant: "outline", className: "px-1 sm:px-1.5 text-[10px] sm:text-xs shrink-0", children: b })
|
|
1277
1290
|
] }),
|
|
1278
1291
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 sm:gap-2", children: [
|
|
1279
1292
|
/* @__PURE__ */ e(
|
|
@@ -1283,10 +1296,10 @@ function pn({
|
|
|
1283
1296
|
size: "icon",
|
|
1284
1297
|
className: "size-5 sm:size-6 [&_svg]:size-3 sm:[&_svg]:size-4",
|
|
1285
1298
|
onClick: a,
|
|
1286
|
-
children: /* @__PURE__ */ e(
|
|
1299
|
+
children: /* @__PURE__ */ e(mn, {})
|
|
1287
1300
|
}
|
|
1288
1301
|
),
|
|
1289
|
-
/* @__PURE__ */ e("p", { className: "text-xs sm:text-sm text-muted-foreground truncate", children:
|
|
1302
|
+
/* @__PURE__ */ e("p", { className: "text-xs sm:text-sm text-muted-foreground truncate", children: v }),
|
|
1290
1303
|
/* @__PURE__ */ e(
|
|
1291
1304
|
pe,
|
|
1292
1305
|
{
|
|
@@ -1294,13 +1307,13 @@ function pn({
|
|
|
1294
1307
|
size: "icon",
|
|
1295
1308
|
className: "size-5 sm:size-6 [&_svg]:size-3 sm:[&_svg]:size-4",
|
|
1296
1309
|
onClick: d,
|
|
1297
|
-
children: /* @__PURE__ */ e(
|
|
1310
|
+
children: /* @__PURE__ */ e(hn, {})
|
|
1298
1311
|
}
|
|
1299
1312
|
)
|
|
1300
1313
|
] })
|
|
1301
1314
|
] });
|
|
1302
1315
|
}
|
|
1303
|
-
const
|
|
1316
|
+
const gn = [
|
|
1304
1317
|
"JAN",
|
|
1305
1318
|
"FEB",
|
|
1306
1319
|
"MAR",
|
|
@@ -1314,7 +1327,7 @@ const fn = [
|
|
|
1314
1327
|
"NOV",
|
|
1315
1328
|
"DEC"
|
|
1316
1329
|
];
|
|
1317
|
-
function
|
|
1330
|
+
function xn({ onClick: t, className: n }) {
|
|
1318
1331
|
const r = /* @__PURE__ */ new Date();
|
|
1319
1332
|
return /* @__PURE__ */ o(
|
|
1320
1333
|
"button",
|
|
@@ -1328,13 +1341,13 @@ function gn({ onClick: t, className: n }) {
|
|
|
1328
1341
|
),
|
|
1329
1342
|
onClick: t,
|
|
1330
1343
|
children: [
|
|
1331
|
-
/* @__PURE__ */ e("p", { className: "flex h-4 sm:h-6 w-full items-center justify-center bg-primary text-center text-[10px] sm:text-xs font-semibold text-primary-foreground", children:
|
|
1344
|
+
/* @__PURE__ */ e("p", { className: "flex h-4 sm:h-6 w-full items-center justify-center bg-primary text-center text-[10px] sm:text-xs font-semibold text-primary-foreground", children: gn[r.getMonth()] }),
|
|
1332
1345
|
/* @__PURE__ */ e("p", { className: "flex w-full flex-1 items-center justify-center text-sm sm:text-lg font-bold", children: r.getDate() })
|
|
1333
1346
|
]
|
|
1334
1347
|
}
|
|
1335
1348
|
);
|
|
1336
1349
|
}
|
|
1337
|
-
function
|
|
1350
|
+
function yn({ className: t }) {
|
|
1338
1351
|
return /* @__PURE__ */ o(
|
|
1339
1352
|
"svg",
|
|
1340
1353
|
{
|
|
@@ -1386,7 +1399,7 @@ function fe({ className: t }) {
|
|
|
1386
1399
|
}
|
|
1387
1400
|
);
|
|
1388
1401
|
}
|
|
1389
|
-
function
|
|
1402
|
+
function et({ className: t }) {
|
|
1390
1403
|
return /* @__PURE__ */ e(
|
|
1391
1404
|
"svg",
|
|
1392
1405
|
{
|
|
@@ -1404,7 +1417,7 @@ function Qe({ className: t }) {
|
|
|
1404
1417
|
}
|
|
1405
1418
|
);
|
|
1406
1419
|
}
|
|
1407
|
-
function
|
|
1420
|
+
function bn({ className: t }) {
|
|
1408
1421
|
return /* @__PURE__ */ o(
|
|
1409
1422
|
"svg",
|
|
1410
1423
|
{
|
|
@@ -1425,7 +1438,7 @@ function yn({ className: t }) {
|
|
|
1425
1438
|
}
|
|
1426
1439
|
);
|
|
1427
1440
|
}
|
|
1428
|
-
function
|
|
1441
|
+
function tt({ className: t }) {
|
|
1429
1442
|
return /* @__PURE__ */ o(
|
|
1430
1443
|
"svg",
|
|
1431
1444
|
{
|
|
@@ -1446,7 +1459,7 @@ function et({ className: t }) {
|
|
|
1446
1459
|
}
|
|
1447
1460
|
);
|
|
1448
1461
|
}
|
|
1449
|
-
function
|
|
1462
|
+
function wn({ className: t }) {
|
|
1450
1463
|
return /* @__PURE__ */ o(
|
|
1451
1464
|
"svg",
|
|
1452
1465
|
{
|
|
@@ -1471,7 +1484,7 @@ function bn({ className: t }) {
|
|
|
1471
1484
|
}
|
|
1472
1485
|
);
|
|
1473
1486
|
}
|
|
1474
|
-
function
|
|
1487
|
+
function vn({ className: t }) {
|
|
1475
1488
|
return /* @__PURE__ */ o(
|
|
1476
1489
|
"svg",
|
|
1477
1490
|
{
|
|
@@ -1492,7 +1505,7 @@ function wn({ className: t }) {
|
|
|
1492
1505
|
}
|
|
1493
1506
|
);
|
|
1494
1507
|
}
|
|
1495
|
-
function
|
|
1508
|
+
function Nn({ className: t }) {
|
|
1496
1509
|
return /* @__PURE__ */ o(
|
|
1497
1510
|
"svg",
|
|
1498
1511
|
{
|
|
@@ -1514,7 +1527,7 @@ function vn({ className: t }) {
|
|
|
1514
1527
|
}
|
|
1515
1528
|
);
|
|
1516
1529
|
}
|
|
1517
|
-
function
|
|
1530
|
+
function kn({ className: t }) {
|
|
1518
1531
|
return /* @__PURE__ */ o(
|
|
1519
1532
|
"svg",
|
|
1520
1533
|
{
|
|
@@ -1538,21 +1551,21 @@ function Nn({ className: t }) {
|
|
|
1538
1551
|
}
|
|
1539
1552
|
);
|
|
1540
1553
|
}
|
|
1541
|
-
const
|
|
1542
|
-
{ value: "day", label: "Day", icon:
|
|
1543
|
-
{ value: "week", label: "Week", icon:
|
|
1544
|
-
{ value: "month", label: "Month", icon:
|
|
1545
|
-
{ value: "year", label: "Year", icon:
|
|
1554
|
+
const Dn = [
|
|
1555
|
+
{ value: "day", label: "Day", icon: wn },
|
|
1556
|
+
{ value: "week", label: "Week", icon: vn },
|
|
1557
|
+
{ value: "month", label: "Month", icon: Nn },
|
|
1558
|
+
{ value: "year", label: "Year", icon: kn }
|
|
1546
1559
|
// { value: 'agenda', label: 'Agenda', icon: ListIcon }, NOTE: Not needed currently
|
|
1547
|
-
],
|
|
1560
|
+
], nt = [
|
|
1548
1561
|
{ value: "timeline-day", label: "1 Day", icon: fe },
|
|
1549
1562
|
{ value: "timeline-3day", label: "3 Days", icon: fe },
|
|
1550
1563
|
{ value: "timeline-week", label: "7 Days", icon: fe }
|
|
1551
|
-
],
|
|
1564
|
+
], Cn = [
|
|
1552
1565
|
{ value: "resource-day", label: "1 Day", icon: fe },
|
|
1553
1566
|
{ value: "resource-week", label: "7 Days", icon: fe }
|
|
1554
1567
|
];
|
|
1555
|
-
function
|
|
1568
|
+
function Xn({
|
|
1556
1569
|
currentDate: t,
|
|
1557
1570
|
view: n,
|
|
1558
1571
|
events: r = [],
|
|
@@ -1564,84 +1577,84 @@ function Kn({
|
|
|
1564
1577
|
onAddEvent: k,
|
|
1565
1578
|
availableViews: l = ["day", "week", "month", "agenda"],
|
|
1566
1579
|
showTimelineViews: b = !1,
|
|
1567
|
-
timelineViews:
|
|
1580
|
+
timelineViews: v,
|
|
1568
1581
|
settingsContent: u,
|
|
1569
1582
|
showSettings: x = !1,
|
|
1570
|
-
filterContent:
|
|
1571
|
-
actions:
|
|
1583
|
+
filterContent: p,
|
|
1584
|
+
actions: N,
|
|
1572
1585
|
className: g,
|
|
1573
|
-
weekStartsOn:
|
|
1586
|
+
weekStartsOn: L = 1,
|
|
1574
1587
|
headerConfig: D,
|
|
1575
|
-
labels:
|
|
1588
|
+
labels: T = {}
|
|
1576
1589
|
}) {
|
|
1577
|
-
const
|
|
1590
|
+
const _ = D?.showToday ?? !0, U = D?.showDateNavigator ?? !0, j = D?.showCalendarViews ?? !0, B = D?.showResourceViews ?? b, M = D?.showSettings ?? x, E = D?.showAddEvent ?? !0, I = D?.showFilters ?? !0, H = K(
|
|
1578
1591
|
() => ({
|
|
1579
1592
|
today: "Today",
|
|
1580
1593
|
addEvent: "Add Event",
|
|
1581
1594
|
calendarView: "Calendar View",
|
|
1582
1595
|
resourceView: "Resource View",
|
|
1583
|
-
...
|
|
1596
|
+
...T
|
|
1584
1597
|
}),
|
|
1585
|
-
[
|
|
1598
|
+
[T]
|
|
1586
1599
|
), z = () => {
|
|
1587
1600
|
a?.(), s?.("today");
|
|
1588
|
-
},
|
|
1601
|
+
}, f = () => {
|
|
1589
1602
|
d?.(), s?.("prev");
|
|
1590
|
-
},
|
|
1603
|
+
}, R = () => {
|
|
1591
1604
|
h?.(), s?.("next");
|
|
1592
|
-
},
|
|
1605
|
+
}, A = ["day", "week", "month", "year", "agenda"].includes(
|
|
1593
1606
|
n
|
|
1594
|
-
),
|
|
1607
|
+
), F = n.startsWith("timeline-") || n.startsWith("resource-"), w = Dn.filter(
|
|
1595
1608
|
(C) => l.includes(C.value)
|
|
1596
|
-
), c =
|
|
1609
|
+
), c = A ? w.find((C) => C.value === n) : null, m = [...nt, ...Cn], S = F ? m.find((C) => C.value === n) : null;
|
|
1597
1610
|
return /* @__PURE__ */ o("div", { className: i("flex flex-col w-full gap-3 mb-2", g), children: [
|
|
1598
1611
|
/* @__PURE__ */ o("div", { className: "flex lg:flex-row flex-col w-full justify-between gap-3", children: [
|
|
1599
1612
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1600
1613
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 sm:gap-3 min-w-0", children: [
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1614
|
+
_ && /* @__PURE__ */ e(xn, { onClick: z }),
|
|
1615
|
+
U && /* @__PURE__ */ e(
|
|
1616
|
+
fn,
|
|
1604
1617
|
{
|
|
1605
1618
|
date: t,
|
|
1606
1619
|
view: n,
|
|
1607
1620
|
events: r,
|
|
1608
|
-
onNavigatePrev:
|
|
1609
|
-
onNavigateNext:
|
|
1610
|
-
weekStartsOn:
|
|
1621
|
+
onNavigatePrev: f,
|
|
1622
|
+
onNavigateNext: R,
|
|
1623
|
+
weekStartsOn: L
|
|
1611
1624
|
}
|
|
1612
1625
|
)
|
|
1613
1626
|
] }),
|
|
1614
|
-
|
|
1627
|
+
E && k && /* @__PURE__ */ e(
|
|
1615
1628
|
pe,
|
|
1616
1629
|
{
|
|
1617
1630
|
size: "icon",
|
|
1618
1631
|
className: "shrink-0 lg:hidden",
|
|
1619
1632
|
onClick: k,
|
|
1620
|
-
children: /* @__PURE__ */ e(
|
|
1633
|
+
children: /* @__PURE__ */ e(tt, { className: "size-4" })
|
|
1621
1634
|
}
|
|
1622
1635
|
)
|
|
1623
1636
|
] }),
|
|
1624
1637
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 sm:gap-2 overflow-x-auto pb-1 -mb-1 scrollbar-none", children: [
|
|
1625
|
-
|
|
1638
|
+
j && y && w.length > 0 && /* @__PURE__ */ o(Ze, { children: [
|
|
1626
1639
|
/* @__PURE__ */ o(
|
|
1627
|
-
|
|
1640
|
+
Qe,
|
|
1628
1641
|
{
|
|
1629
1642
|
className: i(
|
|
1630
1643
|
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors",
|
|
1631
1644
|
"h-10 px-2 sm:px-3 gap-1 sm:gap-1.5 shrink-0",
|
|
1632
|
-
|
|
1645
|
+
A ? "bg-primary text-primary-foreground hover:bg-primary/90" : "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
|
|
1633
1646
|
),
|
|
1634
1647
|
children: [
|
|
1635
|
-
/* @__PURE__ */ e(
|
|
1636
|
-
/* @__PURE__ */ e("span", { className: "text-xs sm:text-sm font-medium", children: c?.label ??
|
|
1637
|
-
/* @__PURE__ */ e(
|
|
1648
|
+
/* @__PURE__ */ e(yn, { className: "size-4" }),
|
|
1649
|
+
/* @__PURE__ */ e("span", { className: "text-xs sm:text-sm font-medium", children: c?.label ?? H.calendarView }),
|
|
1650
|
+
/* @__PURE__ */ e(et, { className: "size-3 opacity-60" })
|
|
1638
1651
|
]
|
|
1639
1652
|
}
|
|
1640
1653
|
),
|
|
1641
|
-
/* @__PURE__ */ e(
|
|
1642
|
-
const
|
|
1654
|
+
/* @__PURE__ */ e(He, { align: "start", className: "min-w-[120px]", children: w.map((C) => {
|
|
1655
|
+
const P = C.icon;
|
|
1643
1656
|
return /* @__PURE__ */ o(
|
|
1644
|
-
|
|
1657
|
+
Oe,
|
|
1645
1658
|
{
|
|
1646
1659
|
onClick: () => y(C.value),
|
|
1647
1660
|
className: i(
|
|
@@ -1649,7 +1662,7 @@ function Kn({
|
|
|
1649
1662
|
n === C.value && "bg-accent"
|
|
1650
1663
|
),
|
|
1651
1664
|
children: [
|
|
1652
|
-
/* @__PURE__ */ e(
|
|
1665
|
+
/* @__PURE__ */ e(P, { className: "size-4" }),
|
|
1653
1666
|
/* @__PURE__ */ e("span", { children: C.label })
|
|
1654
1667
|
]
|
|
1655
1668
|
},
|
|
@@ -1657,26 +1670,26 @@ function Kn({
|
|
|
1657
1670
|
);
|
|
1658
1671
|
}) })
|
|
1659
1672
|
] }),
|
|
1660
|
-
|
|
1673
|
+
B && y && /* @__PURE__ */ o(Ze, { children: [
|
|
1661
1674
|
/* @__PURE__ */ o(
|
|
1662
|
-
|
|
1675
|
+
Qe,
|
|
1663
1676
|
{
|
|
1664
1677
|
className: i(
|
|
1665
1678
|
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors",
|
|
1666
1679
|
"h-10 px-2 sm:px-3 gap-1 sm:gap-1.5 shrink-0",
|
|
1667
|
-
|
|
1680
|
+
F ? "bg-primary text-primary-foreground hover:bg-primary/90" : "border border-input bg-white hover:bg-zinc-50 hover:text-accent-foreground"
|
|
1668
1681
|
),
|
|
1669
1682
|
children: [
|
|
1670
1683
|
/* @__PURE__ */ e(fe, { className: "size-4" }),
|
|
1671
|
-
/* @__PURE__ */ e("span", { className: "text-xs sm:text-sm font-medium", children: S?.label ??
|
|
1672
|
-
/* @__PURE__ */ e(
|
|
1684
|
+
/* @__PURE__ */ e("span", { className: "text-xs sm:text-sm font-medium", children: S?.label ?? H.resourceView }),
|
|
1685
|
+
/* @__PURE__ */ e(et, { className: "size-3 opacity-60" })
|
|
1673
1686
|
]
|
|
1674
1687
|
}
|
|
1675
1688
|
),
|
|
1676
|
-
/* @__PURE__ */ e(
|
|
1677
|
-
const
|
|
1689
|
+
/* @__PURE__ */ e(He, { align: "start", className: "min-w-[120px]", children: nt.map((C) => {
|
|
1690
|
+
const P = C.icon;
|
|
1678
1691
|
return /* @__PURE__ */ o(
|
|
1679
|
-
|
|
1692
|
+
Oe,
|
|
1680
1693
|
{
|
|
1681
1694
|
onClick: () => y(C.value),
|
|
1682
1695
|
className: i(
|
|
@@ -1684,7 +1697,7 @@ function Kn({
|
|
|
1684
1697
|
n === C.value && "bg-accent"
|
|
1685
1698
|
),
|
|
1686
1699
|
children: [
|
|
1687
|
-
/* @__PURE__ */ e(
|
|
1700
|
+
/* @__PURE__ */ e(P, { className: "size-4" }),
|
|
1688
1701
|
/* @__PURE__ */ e("span", { children: C.label })
|
|
1689
1702
|
]
|
|
1690
1703
|
},
|
|
@@ -1692,14 +1705,14 @@ function Kn({
|
|
|
1692
1705
|
);
|
|
1693
1706
|
}) })
|
|
1694
1707
|
] }),
|
|
1695
|
-
|
|
1708
|
+
M && u && /* @__PURE__ */ o(ue, { children: [
|
|
1696
1709
|
/* @__PURE__ */ e(me, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1697
1710
|
pe,
|
|
1698
1711
|
{
|
|
1699
1712
|
variant: "outline",
|
|
1700
1713
|
size: "icon",
|
|
1701
1714
|
className: "min-w-10 min-h-10 shrink-0 mx-0",
|
|
1702
|
-
children: /* @__PURE__ */ e(
|
|
1715
|
+
children: /* @__PURE__ */ e(bn, { className: "size-4 sm:size-5" })
|
|
1703
1716
|
}
|
|
1704
1717
|
) }),
|
|
1705
1718
|
/* @__PURE__ */ e(
|
|
@@ -1712,24 +1725,24 @@ function Kn({
|
|
|
1712
1725
|
}
|
|
1713
1726
|
)
|
|
1714
1727
|
] }),
|
|
1715
|
-
|
|
1716
|
-
|
|
1728
|
+
N,
|
|
1729
|
+
E && k && /* @__PURE__ */ o(
|
|
1717
1730
|
pe,
|
|
1718
1731
|
{
|
|
1719
1732
|
className: "hidden lg:flex shrink-0 max-h-10",
|
|
1720
1733
|
onClick: k,
|
|
1721
1734
|
children: [
|
|
1722
|
-
/* @__PURE__ */ e(
|
|
1723
|
-
|
|
1735
|
+
/* @__PURE__ */ e(tt, { className: "size-4" }),
|
|
1736
|
+
H.addEvent
|
|
1724
1737
|
]
|
|
1725
1738
|
}
|
|
1726
1739
|
)
|
|
1727
1740
|
] })
|
|
1728
1741
|
] }),
|
|
1729
|
-
|
|
1742
|
+
I && p && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 pb-1 -mb-1 scrollbar-none", children: p })
|
|
1730
1743
|
] });
|
|
1731
1744
|
}
|
|
1732
|
-
function
|
|
1745
|
+
function Yn({
|
|
1733
1746
|
events: t,
|
|
1734
1747
|
date: n,
|
|
1735
1748
|
daysAhead: r = 60,
|
|
@@ -1741,22 +1754,22 @@ function Xn({
|
|
|
1741
1754
|
slots: k,
|
|
1742
1755
|
classNames: l
|
|
1743
1756
|
}) {
|
|
1744
|
-
const b =
|
|
1757
|
+
const b = K(() => {
|
|
1745
1758
|
const u = new Date(n);
|
|
1746
1759
|
u.setHours(0, 0, 0, 0);
|
|
1747
1760
|
const x = new Date(u);
|
|
1748
|
-
return x.setDate(x.getDate() + r), t.filter((
|
|
1749
|
-
}, [t, r, n]),
|
|
1750
|
-
const u =
|
|
1751
|
-
for (const [
|
|
1761
|
+
return x.setDate(x.getDate() + r), t.filter((p) => p.endDate >= u && p.startDate <= x);
|
|
1762
|
+
}, [t, r, n]), v = K(() => {
|
|
1763
|
+
const u = Mt(b), x = [];
|
|
1764
|
+
for (const [p, N] of u)
|
|
1752
1765
|
x.push({
|
|
1753
|
-
date: new Date(
|
|
1754
|
-
dateKey:
|
|
1755
|
-
events:
|
|
1766
|
+
date: new Date(p),
|
|
1767
|
+
dateKey: p,
|
|
1768
|
+
events: N
|
|
1756
1769
|
});
|
|
1757
|
-
return x.sort((
|
|
1770
|
+
return x.sort((p, N) => p.date.getTime() - N.date.getTime()), x;
|
|
1758
1771
|
}, [b]);
|
|
1759
|
-
return
|
|
1772
|
+
return v.length === 0 ? /* @__PURE__ */ e("div", { className: i("flex flex-col items-center justify-center h-full py-12", h), children: /* @__PURE__ */ o("div", { className: "text-center", children: [
|
|
1760
1773
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground", children: "No events found" }),
|
|
1761
1774
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground/70", children: "No events scheduled for this period" })
|
|
1762
1775
|
] }) }) : /* @__PURE__ */ o("div", { className: i("flex flex-col h-full overflow-auto", l?.agendaList, h), children: [
|
|
@@ -1768,8 +1781,8 @@ function Xn({
|
|
|
1768
1781
|
b.length !== 1 ? "s" : ""
|
|
1769
1782
|
] })
|
|
1770
1783
|
] }) }),
|
|
1771
|
-
/* @__PURE__ */ e("div", { className: "flex-1", children:
|
|
1772
|
-
const
|
|
1784
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: v.map(({ date: u, dateKey: x, events: p }) => {
|
|
1785
|
+
const N = ce(u), g = u.toLocaleDateString([], { weekday: "short" }), L = u.getDate(), D = u.toLocaleDateString([], { month: "short" });
|
|
1773
1786
|
return /* @__PURE__ */ o("div", { className: i("", l?.agendaDayGroup), children: [
|
|
1774
1787
|
/* @__PURE__ */ e(
|
|
1775
1788
|
"div",
|
|
@@ -1785,7 +1798,7 @@ function Xn({
|
|
|
1785
1798
|
{
|
|
1786
1799
|
className: i(
|
|
1787
1800
|
"text-[11px] font-medium uppercase tracking-wide",
|
|
1788
|
-
|
|
1801
|
+
N ? "text-primary" : "text-muted-foreground"
|
|
1789
1802
|
),
|
|
1790
1803
|
children: g
|
|
1791
1804
|
}
|
|
@@ -1796,9 +1809,9 @@ function Xn({
|
|
|
1796
1809
|
className: i(
|
|
1797
1810
|
"flex items-center justify-center rounded-full mt-0.5",
|
|
1798
1811
|
"size-10 text-xl font-normal",
|
|
1799
|
-
|
|
1812
|
+
N ? "bg-primary text-primary-foreground" : "text-foreground"
|
|
1800
1813
|
),
|
|
1801
|
-
children:
|
|
1814
|
+
children: L
|
|
1802
1815
|
}
|
|
1803
1816
|
)
|
|
1804
1817
|
] }),
|
|
@@ -1810,11 +1823,11 @@ function Xn({
|
|
|
1810
1823
|
] })
|
|
1811
1824
|
}
|
|
1812
1825
|
),
|
|
1813
|
-
/* @__PURE__ */ e("div", { className: "px-4 py-3 space-y-2 border-b last:border-b-0", children:
|
|
1814
|
-
(
|
|
1815
|
-
|
|
1826
|
+
/* @__PURE__ */ e("div", { className: "px-4 py-3 space-y-2 border-b last:border-b-0", children: p.map(
|
|
1827
|
+
(T) => s ? /* @__PURE__ */ e("div", { children: s({ event: T, variant: "full" }) }, T.id) : /* @__PURE__ */ e(
|
|
1828
|
+
Ee,
|
|
1816
1829
|
{
|
|
1817
|
-
event:
|
|
1830
|
+
event: T,
|
|
1818
1831
|
variant: "full",
|
|
1819
1832
|
badgeVariant: a,
|
|
1820
1833
|
onClick: d,
|
|
@@ -1825,15 +1838,15 @@ function Xn({
|
|
|
1825
1838
|
showParticipants: !0,
|
|
1826
1839
|
...l?.eventCard && { className: l.eventCard }
|
|
1827
1840
|
},
|
|
1828
|
-
|
|
1841
|
+
T.id
|
|
1829
1842
|
)
|
|
1830
1843
|
) })
|
|
1831
1844
|
] }, x);
|
|
1832
1845
|
}) })
|
|
1833
1846
|
] });
|
|
1834
1847
|
}
|
|
1835
|
-
const
|
|
1836
|
-
function
|
|
1848
|
+
const Ce = 360, Se = 480, Re = 280;
|
|
1849
|
+
function Sn({
|
|
1837
1850
|
isOpen: t,
|
|
1838
1851
|
onClose: n,
|
|
1839
1852
|
date: r,
|
|
@@ -1845,29 +1858,29 @@ function Cn({
|
|
|
1845
1858
|
renderPopover: k,
|
|
1846
1859
|
className: l
|
|
1847
1860
|
}) {
|
|
1848
|
-
const b = ne(null),
|
|
1849
|
-
d && (
|
|
1850
|
-
const
|
|
1851
|
-
() => [...a].sort((
|
|
1861
|
+
const b = ne(null), v = ne(null), [u, x] = Q("closed"), p = ne(null);
|
|
1862
|
+
d && (p.current = d);
|
|
1863
|
+
const N = d ?? p.current, g = K(
|
|
1864
|
+
() => [...a].sort((M, E) => M.startDate.getTime() - E.startDate.getTime()),
|
|
1852
1865
|
[a]
|
|
1853
|
-
),
|
|
1854
|
-
const
|
|
1855
|
-
if (!
|
|
1866
|
+
), L = K(() => {
|
|
1867
|
+
const M = N;
|
|
1868
|
+
if (!M)
|
|
1856
1869
|
return {
|
|
1857
1870
|
top: 0,
|
|
1858
1871
|
left: 0,
|
|
1859
|
-
width:
|
|
1860
|
-
maxHeight:
|
|
1872
|
+
width: Ce,
|
|
1873
|
+
maxHeight: Se
|
|
1861
1874
|
};
|
|
1862
|
-
const
|
|
1863
|
-
let
|
|
1864
|
-
|
|
1865
|
-
const z = Math.min(a.length * 68 + 80,
|
|
1866
|
-
let
|
|
1867
|
-
return
|
|
1868
|
-
}, [
|
|
1869
|
-
|
|
1870
|
-
if (t &&
|
|
1875
|
+
const E = typeof window < "u" ? window.innerWidth : 1200, I = typeof window < "u" ? window.innerHeight : 800;
|
|
1876
|
+
let H = M.left + M.width / 2 - Ce / 2;
|
|
1877
|
+
H = Math.max(16, Math.min(H, E - Ce - 16));
|
|
1878
|
+
const z = Math.min(a.length * 68 + 80, Se);
|
|
1879
|
+
let f = M.top + M.height / 2 - z / 2;
|
|
1880
|
+
return f = Math.max(16, Math.min(f, I - z - 16)), { top: f, left: H, width: Ce, maxHeight: Se };
|
|
1881
|
+
}, [N, a.length]);
|
|
1882
|
+
je(() => {
|
|
1883
|
+
if (t && N)
|
|
1871
1884
|
x("entering"), requestAnimationFrame(() => {
|
|
1872
1885
|
requestAnimationFrame(() => {
|
|
1873
1886
|
x("open");
|
|
@@ -1875,54 +1888,54 @@ function Cn({
|
|
|
1875
1888
|
});
|
|
1876
1889
|
else if (!t && (u === "open" || u === "entering")) {
|
|
1877
1890
|
x("exiting");
|
|
1878
|
-
const
|
|
1879
|
-
x("closed"),
|
|
1880
|
-
},
|
|
1881
|
-
return () => clearTimeout(
|
|
1891
|
+
const M = setTimeout(() => {
|
|
1892
|
+
x("closed"), p.current = null;
|
|
1893
|
+
}, Re);
|
|
1894
|
+
return () => clearTimeout(M);
|
|
1882
1895
|
}
|
|
1883
|
-
}, [t,
|
|
1896
|
+
}, [t, N]), ke(() => {
|
|
1884
1897
|
if (u === "closed") return;
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1898
|
+
const M = (E) => {
|
|
1899
|
+
E.key === "Escape" && (E.stopPropagation(), n());
|
|
1887
1900
|
};
|
|
1888
|
-
return document.addEventListener("keydown",
|
|
1889
|
-
}, [u, n]),
|
|
1890
|
-
u === "open" &&
|
|
1901
|
+
return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
|
|
1902
|
+
}, [u, n]), ke(() => {
|
|
1903
|
+
u === "open" && v.current && v.current.focus();
|
|
1891
1904
|
}, [u]);
|
|
1892
|
-
const D =
|
|
1893
|
-
(
|
|
1894
|
-
|
|
1905
|
+
const D = W(
|
|
1906
|
+
(M) => {
|
|
1907
|
+
M.target === b.current && n();
|
|
1895
1908
|
},
|
|
1896
1909
|
[n]
|
|
1897
1910
|
);
|
|
1898
1911
|
if (u === "closed") return null;
|
|
1899
|
-
const
|
|
1912
|
+
const T = u === "entering" || u === "exiting", _ = N, U = T && _ ? {
|
|
1900
1913
|
// Collapsed state: match the day cell exactly
|
|
1901
1914
|
position: "fixed",
|
|
1902
|
-
top:
|
|
1903
|
-
left:
|
|
1904
|
-
width:
|
|
1905
|
-
height:
|
|
1906
|
-
maxHeight:
|
|
1915
|
+
top: _.top,
|
|
1916
|
+
left: _.left,
|
|
1917
|
+
width: _.width,
|
|
1918
|
+
height: _.height,
|
|
1919
|
+
maxHeight: _.height,
|
|
1907
1920
|
opacity: u === "entering" ? 0.7 : 0,
|
|
1908
1921
|
transform: "scale(1)",
|
|
1909
1922
|
borderRadius: "8px"
|
|
1910
1923
|
} : {
|
|
1911
1924
|
// Expanded state: full panel
|
|
1912
1925
|
position: "fixed",
|
|
1913
|
-
top:
|
|
1914
|
-
left:
|
|
1915
|
-
width:
|
|
1916
|
-
maxHeight:
|
|
1926
|
+
top: L.top,
|
|
1927
|
+
left: L.left,
|
|
1928
|
+
width: L.width,
|
|
1929
|
+
maxHeight: L.maxHeight,
|
|
1917
1930
|
opacity: 1,
|
|
1918
1931
|
transform: "scale(1)",
|
|
1919
1932
|
borderRadius: "12px"
|
|
1920
|
-
},
|
|
1933
|
+
}, j = T ? 0 : 1, B = r.toLocaleDateString(void 0, {
|
|
1921
1934
|
weekday: "long",
|
|
1922
1935
|
month: "long",
|
|
1923
1936
|
day: "numeric"
|
|
1924
1937
|
});
|
|
1925
|
-
return /* @__PURE__ */ o(
|
|
1938
|
+
return /* @__PURE__ */ o(kt, { children: [
|
|
1926
1939
|
/* @__PURE__ */ e(
|
|
1927
1940
|
"div",
|
|
1928
1941
|
{
|
|
@@ -1935,18 +1948,18 @@ function Cn({
|
|
|
1935
1948
|
inset: 0,
|
|
1936
1949
|
zIndex: 40,
|
|
1937
1950
|
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
1938
|
-
opacity:
|
|
1939
|
-
transition: `opacity ${
|
|
1951
|
+
opacity: j,
|
|
1952
|
+
transition: `opacity ${Re}ms cubic-bezier(0.32, 0.72, 0, 1)`
|
|
1940
1953
|
}
|
|
1941
1954
|
}
|
|
1942
1955
|
),
|
|
1943
1956
|
/* @__PURE__ */ o(
|
|
1944
1957
|
"div",
|
|
1945
1958
|
{
|
|
1946
|
-
ref:
|
|
1959
|
+
ref: v,
|
|
1947
1960
|
role: "dialog",
|
|
1948
1961
|
"aria-modal": "true",
|
|
1949
|
-
"aria-label": `Events for ${
|
|
1962
|
+
"aria-label": `Events for ${B}`,
|
|
1950
1963
|
tabIndex: -1,
|
|
1951
1964
|
className: i(
|
|
1952
1965
|
"ic-expansion-panel",
|
|
@@ -1955,15 +1968,15 @@ function Cn({
|
|
|
1955
1968
|
l
|
|
1956
1969
|
),
|
|
1957
1970
|
style: {
|
|
1958
|
-
...
|
|
1971
|
+
...U,
|
|
1959
1972
|
zIndex: 41,
|
|
1960
|
-
transition: `all ${
|
|
1973
|
+
transition: `all ${Re}ms cubic-bezier(0.32, 0.72, 0, 1)`,
|
|
1961
1974
|
willChange: "top, left, width, height, max-height, opacity, border-radius"
|
|
1962
1975
|
},
|
|
1963
1976
|
children: [
|
|
1964
1977
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between px-4 py-3 border-b bg-muted/30", children: [
|
|
1965
1978
|
/* @__PURE__ */ o("div", { className: "flex flex-col", children: [
|
|
1966
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground", children:
|
|
1979
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground", children: B }),
|
|
1967
1980
|
/* @__PURE__ */ o("span", { className: "text-xs text-muted-foreground", children: [
|
|
1968
1981
|
a.length,
|
|
1969
1982
|
" event",
|
|
@@ -2001,19 +2014,19 @@ function Cn({
|
|
|
2001
2014
|
"div",
|
|
2002
2015
|
{
|
|
2003
2016
|
className: "overflow-y-auto px-3 py-2 space-y-1.5",
|
|
2004
|
-
style: { maxHeight: `${
|
|
2017
|
+
style: { maxHeight: `${Se - 64}px` },
|
|
2005
2018
|
children: [
|
|
2006
|
-
g.map((
|
|
2007
|
-
|
|
2019
|
+
g.map((M) => /* @__PURE__ */ e("div", { onPointerDown: (E) => E.stopPropagation(), children: y ? y({ event: M, variant: "compact" }) : /* @__PURE__ */ e(
|
|
2020
|
+
Ee,
|
|
2008
2021
|
{
|
|
2009
|
-
event:
|
|
2022
|
+
event: M,
|
|
2010
2023
|
variant: "compact",
|
|
2011
2024
|
badgeVariant: h,
|
|
2012
2025
|
onClick: s,
|
|
2013
2026
|
renderPopover: k,
|
|
2014
2027
|
showTime: !0
|
|
2015
2028
|
}
|
|
2016
|
-
) },
|
|
2029
|
+
) }, M.id)),
|
|
2017
2030
|
a.length === 0 && /* @__PURE__ */ e("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No events" })
|
|
2018
2031
|
]
|
|
2019
2032
|
}
|
|
@@ -2023,23 +2036,23 @@ function Cn({
|
|
|
2023
2036
|
)
|
|
2024
2037
|
] });
|
|
2025
2038
|
}
|
|
2026
|
-
function
|
|
2039
|
+
function Mn({
|
|
2027
2040
|
event: t,
|
|
2028
2041
|
date: n,
|
|
2029
2042
|
onEventClick: r,
|
|
2030
2043
|
disablePopover: a,
|
|
2031
2044
|
renderPopover: d
|
|
2032
2045
|
}) {
|
|
2033
|
-
const [h, s] = Q(!1), y = de(t.color), k =
|
|
2046
|
+
const [h, s] = Q(!1), y = de(t.color), k = ze(t), l = se(t.startDate, n), b = se(t.endDate, n), v = k && se(t.startDate, t.endDate), u = W(() => {
|
|
2034
2047
|
a && r ? r(t) : a || s(!0);
|
|
2035
|
-
}, [a, r, t]), x =
|
|
2048
|
+
}, [a, r, t]), x = W(() => {
|
|
2036
2049
|
s(!1);
|
|
2037
|
-
}, []),
|
|
2050
|
+
}, []), p = /* @__PURE__ */ o(
|
|
2038
2051
|
"button",
|
|
2039
2052
|
{
|
|
2040
2053
|
type: "button",
|
|
2041
2054
|
onClick: u,
|
|
2042
|
-
title:
|
|
2055
|
+
title: J(t),
|
|
2043
2056
|
className: i(
|
|
2044
2057
|
"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium transition-opacity hover:opacity-80",
|
|
2045
2058
|
"sm:px-2 sm:py-1 sm:text-xs",
|
|
@@ -2048,26 +2061,26 @@ function Sn({
|
|
|
2048
2061
|
t.isCanceled && "opacity-60 line-through"
|
|
2049
2062
|
),
|
|
2050
2063
|
children: [
|
|
2051
|
-
!
|
|
2052
|
-
!
|
|
2053
|
-
!
|
|
2064
|
+
!v && l && !b && "→ ",
|
|
2065
|
+
!v && !l && b && " ←",
|
|
2066
|
+
!v && !l && !b && "↔ ",
|
|
2054
2067
|
/* @__PURE__ */ e("span", { className: "truncate max-w-24 sm:max-w-32", children: t.title }),
|
|
2055
|
-
|
|
2068
|
+
v && /* @__PURE__ */ e("span", { className: "text-[9px] opacity-70 sm:text-[10px]", children: "All day" })
|
|
2056
2069
|
]
|
|
2057
2070
|
}
|
|
2058
|
-
),
|
|
2071
|
+
), N = /* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
2059
2072
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.title }),
|
|
2060
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
2073
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t) })
|
|
2061
2074
|
] }) });
|
|
2062
2075
|
return a ? /* @__PURE__ */ o(ae, { children: [
|
|
2063
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children:
|
|
2064
|
-
|
|
2076
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: p }),
|
|
2077
|
+
N
|
|
2065
2078
|
] }) : /* @__PURE__ */ o(ue, { open: h, onOpenChange: s, children: [
|
|
2066
|
-
/* @__PURE__ */ e(me, { asChild: !0, children:
|
|
2067
|
-
/* @__PURE__ */ e(le, { className: "w-80", children: d ? d({ event: t, onClose: x }) : /* @__PURE__ */ e(
|
|
2079
|
+
/* @__PURE__ */ e(me, { asChild: !0, children: p }),
|
|
2080
|
+
/* @__PURE__ */ e(le, { className: "w-80", children: d ? d({ event: t, onClose: x }) : /* @__PURE__ */ e(Tn, { event: t, onClose: x }) })
|
|
2068
2081
|
] });
|
|
2069
2082
|
}
|
|
2070
|
-
function
|
|
2083
|
+
function Tn({
|
|
2071
2084
|
event: t,
|
|
2072
2085
|
onClose: n
|
|
2073
2086
|
}) {
|
|
@@ -2077,7 +2090,7 @@ function Mn({
|
|
|
2077
2090
|
/* @__PURE__ */ e("div", { className: i("size-4 rounded shrink-0 mt-0.5", r.dot) }),
|
|
2078
2091
|
/* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: [
|
|
2079
2092
|
/* @__PURE__ */ e("h3", { className: i("font-semibold text-lg", a && "line-through opacity-50"), children: t.title }),
|
|
2080
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-sm text-muted-foreground mt-1 tabular-nums", children:
|
|
2093
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-sm text-muted-foreground mt-1 tabular-nums", children: J(t) })
|
|
2081
2094
|
] })
|
|
2082
2095
|
] }),
|
|
2083
2096
|
t.description && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: t.description }),
|
|
@@ -2096,7 +2109,7 @@ function Mn({
|
|
|
2096
2109
|
) })
|
|
2097
2110
|
] });
|
|
2098
2111
|
}
|
|
2099
|
-
function
|
|
2112
|
+
function zn({
|
|
2100
2113
|
events: t,
|
|
2101
2114
|
date: n,
|
|
2102
2115
|
onEventClick: r,
|
|
@@ -2105,13 +2118,13 @@ function Tn({
|
|
|
2105
2118
|
className: h
|
|
2106
2119
|
}) {
|
|
2107
2120
|
if (t.length === 0) return null;
|
|
2108
|
-
const s = t.some((l) =>
|
|
2109
|
-
(l) => !se(l.startDate, l.endDate) ||
|
|
2121
|
+
const s = t.some((l) => ze(l) && se(l.startDate, l.endDate)), y = t.some(
|
|
2122
|
+
(l) => !se(l.startDate, l.endDate) || ze(l) && !se(l.startDate, l.endDate)
|
|
2110
2123
|
), k = s && y ? "All day / Multi-day" : s ? "All day" : "Multi-day";
|
|
2111
2124
|
return /* @__PURE__ */ o("div", { className: i("border-b bg-muted/20 px-2 py-1.5 space-y-1", "sm:px-4 sm:py-2", h), children: [
|
|
2112
2125
|
/* @__PURE__ */ e("span", { className: "text-[10px] font-medium text-muted-foreground sm:text-xs", children: k }),
|
|
2113
2126
|
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: t.map((l) => /* @__PURE__ */ e(
|
|
2114
|
-
|
|
2127
|
+
Mn,
|
|
2115
2128
|
{
|
|
2116
2129
|
event: l,
|
|
2117
2130
|
date: n,
|
|
@@ -2123,8 +2136,8 @@ function Tn({
|
|
|
2123
2136
|
)) })
|
|
2124
2137
|
] });
|
|
2125
2138
|
}
|
|
2126
|
-
const
|
|
2127
|
-
function
|
|
2139
|
+
const An = 5;
|
|
2140
|
+
function vt({
|
|
2128
2141
|
slot: t,
|
|
2129
2142
|
onSelectionStart: n,
|
|
2130
2143
|
onSelectionMove: r,
|
|
@@ -2136,53 +2149,53 @@ function wt({
|
|
|
2136
2149
|
children: k,
|
|
2137
2150
|
className: l,
|
|
2138
2151
|
height: b,
|
|
2139
|
-
style:
|
|
2152
|
+
style: v,
|
|
2140
2153
|
dataAttributes: u
|
|
2141
2154
|
}) {
|
|
2142
|
-
const x = ne(null),
|
|
2155
|
+
const x = ne(null), p = ne(!1), N = ne(!1), g = ne(null), [L, D] = Q(!1), T = Ve(), _ = W(
|
|
2143
2156
|
(z) => {
|
|
2144
|
-
s || z.button !== 0 && z.pointerType === "mouse" || (z.preventDefault(), x.current = { x: z.clientX, y: z.clientY },
|
|
2157
|
+
s || z.button !== 0 && z.pointerType === "mouse" || (z.preventDefault(), x.current = { x: z.clientX, y: z.clientY }, p.current = !1, N.current = !0, n?.(t));
|
|
2145
2158
|
},
|
|
2146
2159
|
[s, t, n]
|
|
2147
|
-
),
|
|
2160
|
+
), U = W(
|
|
2148
2161
|
(z) => {
|
|
2149
|
-
if (!(x.current &&
|
|
2150
|
-
const
|
|
2151
|
-
Math.sqrt(
|
|
2162
|
+
if (!(x.current && N.current && !s)) return;
|
|
2163
|
+
const f = z.clientX - x.current.x, R = z.clientY - x.current.y;
|
|
2164
|
+
Math.sqrt(f * f + R * R) >= An && (p.current = !0);
|
|
2152
2165
|
},
|
|
2153
2166
|
[s]
|
|
2154
|
-
),
|
|
2167
|
+
), j = W(
|
|
2155
2168
|
(z) => {
|
|
2156
2169
|
s || (z.buttons > 0 || h) && r?.(t);
|
|
2157
2170
|
},
|
|
2158
2171
|
[s, h, t, r]
|
|
2159
|
-
),
|
|
2160
|
-
s || (a?.(), x.current = null,
|
|
2161
|
-
}, [s, a]),
|
|
2172
|
+
), B = W(() => {
|
|
2173
|
+
s || (a?.(), x.current = null, p.current = !1, N.current = !1);
|
|
2174
|
+
}, [s, a]), M = W(
|
|
2162
2175
|
(z) => {
|
|
2163
|
-
if (!
|
|
2176
|
+
if (!T?.isDragging || s) return;
|
|
2164
2177
|
z.preventDefault(), z.dataTransfer.dropEffect = "move", D(!0);
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2178
|
+
const f = /* @__PURE__ */ new Date(), R = t.hour ?? f.getHours(), A = t.minute ?? (f.getMinutes() >= 30 ? 30 : 0);
|
|
2179
|
+
T.updateDragPreview?.(t.date, R, A);
|
|
2167
2180
|
},
|
|
2168
|
-
[
|
|
2169
|
-
),
|
|
2181
|
+
[T, s, t]
|
|
2182
|
+
), E = W(() => {
|
|
2170
2183
|
D(!1);
|
|
2171
|
-
}, []),
|
|
2184
|
+
}, []), I = W(
|
|
2172
2185
|
(z) => {
|
|
2173
|
-
z.preventDefault(), D(!1), !(!
|
|
2186
|
+
z.preventDefault(), D(!1), !(!T?.isDragging || s) && T.endDrag?.();
|
|
2174
2187
|
},
|
|
2175
|
-
[
|
|
2188
|
+
[T, s]
|
|
2176
2189
|
);
|
|
2177
|
-
|
|
2190
|
+
ke(() => {
|
|
2178
2191
|
const z = () => {
|
|
2179
|
-
|
|
2192
|
+
N.current && (N.current = !1, x.current = null, p.current = !1);
|
|
2180
2193
|
};
|
|
2181
2194
|
return window.addEventListener("pointerup", z), window.addEventListener("pointercancel", z), () => {
|
|
2182
2195
|
window.removeEventListener("pointerup", z), window.removeEventListener("pointercancel", z);
|
|
2183
2196
|
};
|
|
2184
2197
|
}, []);
|
|
2185
|
-
const
|
|
2198
|
+
const H = W(
|
|
2186
2199
|
(z) => {
|
|
2187
2200
|
s || (z.key === "Enter" || z.key === " ") && (z.preventDefault(), n?.(t), a?.());
|
|
2188
2201
|
},
|
|
@@ -2197,14 +2210,14 @@ function wt({
|
|
|
2197
2210
|
"aria-disabled": s,
|
|
2198
2211
|
"aria-pressed": d,
|
|
2199
2212
|
disabled: s,
|
|
2200
|
-
onPointerDown:
|
|
2201
|
-
onPointerMove:
|
|
2202
|
-
onPointerUp:
|
|
2203
|
-
onPointerEnter:
|
|
2204
|
-
onKeyDown:
|
|
2205
|
-
onDragOver:
|
|
2206
|
-
onDragLeave:
|
|
2207
|
-
onDrop:
|
|
2213
|
+
onPointerDown: _,
|
|
2214
|
+
onPointerMove: U,
|
|
2215
|
+
onPointerUp: B,
|
|
2216
|
+
onPointerEnter: j,
|
|
2217
|
+
onKeyDown: H,
|
|
2218
|
+
onDragOver: M,
|
|
2219
|
+
onDragLeave: E,
|
|
2220
|
+
onDrop: I,
|
|
2208
2221
|
className: i(
|
|
2209
2222
|
"select-none touch-none cursor-pointer transition-colors",
|
|
2210
2223
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
@@ -2213,18 +2226,18 @@ function wt({
|
|
|
2213
2226
|
// Selection state — blue tint matching the primary color
|
|
2214
2227
|
d && "bg-blue-100/70",
|
|
2215
2228
|
// Drag over state - visual feedback when event is dragged over
|
|
2216
|
-
|
|
2229
|
+
L && "bg-primary/20 ring-2 ring-primary ring-inset",
|
|
2217
2230
|
// Disabled state
|
|
2218
2231
|
s && "cursor-not-allowed opacity-50",
|
|
2219
2232
|
l
|
|
2220
2233
|
),
|
|
2221
|
-
style: { height: b, ...
|
|
2234
|
+
style: { height: b, ...v },
|
|
2222
2235
|
...u,
|
|
2223
2236
|
children: k
|
|
2224
2237
|
}
|
|
2225
2238
|
);
|
|
2226
2239
|
}
|
|
2227
|
-
function
|
|
2240
|
+
function Nt({
|
|
2228
2241
|
slot: t,
|
|
2229
2242
|
date: n,
|
|
2230
2243
|
hour: r,
|
|
@@ -2233,14 +2246,14 @@ function vt({
|
|
|
2233
2246
|
...h
|
|
2234
2247
|
}) {
|
|
2235
2248
|
const s = t ?? { date: n, hour: r ?? 0, minute: a ?? 0 }, y = d ?? `Add event at ${(s.hour ?? 0).toString().padStart(2, "0")}:${(s.minute ?? 0).toString().padStart(2, "0")} on ${s.date.toLocaleDateString()}`;
|
|
2236
|
-
return /* @__PURE__ */ e(
|
|
2249
|
+
return /* @__PURE__ */ e(vt, { slot: s, ariaLabel: y, ...h });
|
|
2237
2250
|
}
|
|
2238
|
-
function
|
|
2251
|
+
function En({ slot: t, date: n, ariaLabel: r, ...a }) {
|
|
2239
2252
|
const d = t ?? { date: n }, h = r ?? `Select ${d.date.toLocaleDateString()}`;
|
|
2240
|
-
return /* @__PURE__ */ e(
|
|
2253
|
+
return /* @__PURE__ */ e(vt, { slot: d, ariaLabel: h, ...a });
|
|
2241
2254
|
}
|
|
2242
|
-
const
|
|
2243
|
-
function
|
|
2255
|
+
const we = 96, _e = 72, Ie = 80;
|
|
2256
|
+
function Jn({
|
|
2244
2257
|
events: t,
|
|
2245
2258
|
date: n,
|
|
2246
2259
|
visibleHours: r = { startHour: 0, endHour: 24 },
|
|
@@ -2252,38 +2265,38 @@ function Yn({
|
|
|
2252
2265
|
className: k,
|
|
2253
2266
|
renderEvent: l,
|
|
2254
2267
|
renderPopover: b,
|
|
2255
|
-
slots:
|
|
2268
|
+
slots: v,
|
|
2256
2269
|
classNames: u
|
|
2257
2270
|
}) {
|
|
2258
|
-
const x = 60 / d,
|
|
2259
|
-
const
|
|
2271
|
+
const x = 60 / d, p = 100 / x, N = K(() => {
|
|
2272
|
+
const w = [];
|
|
2260
2273
|
for (let c = 0; c < x; c++)
|
|
2261
|
-
|
|
2262
|
-
return
|
|
2263
|
-
}, [x, d]), g =
|
|
2264
|
-
const
|
|
2265
|
-
for (const m of
|
|
2274
|
+
w.push(c * d);
|
|
2275
|
+
return w;
|
|
2276
|
+
}, [x, d]), g = K(() => Fe(t, n), [t, n]), { singleDay: L, multiDay: D } = K(() => it(g), [g]), T = K(() => {
|
|
2277
|
+
const w = st(L, n, r, we), c = /* @__PURE__ */ new Map();
|
|
2278
|
+
for (const m of w)
|
|
2266
2279
|
c.set(m.event.id, m.position);
|
|
2267
2280
|
return c;
|
|
2268
|
-
}, [
|
|
2269
|
-
if (!
|
|
2270
|
-
const
|
|
2271
|
-
return
|
|
2272
|
-
}, [
|
|
2273
|
-
|
|
2274
|
-
const
|
|
2275
|
-
if (!
|
|
2281
|
+
}, [L, n, r]), _ = K(() => lt(r), [r]), U = /* @__PURE__ */ new Date(), j = ce(n), B = K(() => {
|
|
2282
|
+
if (!j) return 0;
|
|
2283
|
+
const w = U.getHours() + U.getMinutes() / 60;
|
|
2284
|
+
return w < r.startHour || w > r.endHour ? -1 : (w - r.startHour) * we;
|
|
2285
|
+
}, [j, r, U]), M = ne(null);
|
|
2286
|
+
je(() => {
|
|
2287
|
+
const w = M.current;
|
|
2288
|
+
if (!w) return;
|
|
2276
2289
|
const c = () => {
|
|
2277
2290
|
let m;
|
|
2278
|
-
if (
|
|
2291
|
+
if (j) {
|
|
2279
2292
|
const C = (/* @__PURE__ */ new Date()).getHours();
|
|
2280
2293
|
m = Math.max(C - 1, r.startHour);
|
|
2281
2294
|
} else {
|
|
2282
|
-
const C = n.getDay(),
|
|
2283
|
-
|
|
2295
|
+
const C = n.getDay(), P = a?.[C];
|
|
2296
|
+
P?.enabled && P.from > 0 ? m = Math.max(P.from - 1, r.startHour) : m = Math.max(7, r.startHour);
|
|
2284
2297
|
}
|
|
2285
|
-
const S = (m - r.startHour) *
|
|
2286
|
-
|
|
2298
|
+
const S = (m - r.startHour) * we;
|
|
2299
|
+
w.scrollTo({
|
|
2287
2300
|
top: S,
|
|
2288
2301
|
behavior: "instant"
|
|
2289
2302
|
});
|
|
@@ -2291,25 +2304,25 @@ function Yn({
|
|
|
2291
2304
|
requestAnimationFrame(() => {
|
|
2292
2305
|
requestAnimationFrame(c);
|
|
2293
2306
|
});
|
|
2294
|
-
}, [n, a, r,
|
|
2295
|
-
const
|
|
2296
|
-
(
|
|
2297
|
-
|
|
2307
|
+
}, [n, a, r, j]);
|
|
2308
|
+
const E = Ge(), I = W(
|
|
2309
|
+
(w) => {
|
|
2310
|
+
E?.startSelection(w);
|
|
2298
2311
|
},
|
|
2299
|
-
[
|
|
2300
|
-
),
|
|
2301
|
-
(
|
|
2302
|
-
|
|
2312
|
+
[E]
|
|
2313
|
+
), H = W(
|
|
2314
|
+
(w) => {
|
|
2315
|
+
E?.updateSelection(w);
|
|
2303
2316
|
},
|
|
2304
|
-
[
|
|
2305
|
-
), z =
|
|
2306
|
-
|
|
2307
|
-
}, [
|
|
2308
|
-
(
|
|
2309
|
-
s?.(
|
|
2317
|
+
[E]
|
|
2318
|
+
), z = W(() => {
|
|
2319
|
+
E?.endSelection();
|
|
2320
|
+
}, [E]), f = W(
|
|
2321
|
+
(w) => {
|
|
2322
|
+
s?.(w);
|
|
2310
2323
|
},
|
|
2311
2324
|
[s]
|
|
2312
|
-
),
|
|
2325
|
+
), R = n.toLocaleDateString([], { weekday: "short" }), A = n.getDate(), F = ce(n);
|
|
2313
2326
|
return /* @__PURE__ */ o("div", { className: i("flex flex-col h-full", k), children: [
|
|
2314
2327
|
/* @__PURE__ */ e(
|
|
2315
2328
|
"div",
|
|
@@ -2317,7 +2330,7 @@ function Yn({
|
|
|
2317
2330
|
className: i(
|
|
2318
2331
|
"flex items-center gap-3 border-b px-4 py-3",
|
|
2319
2332
|
u?.columnHeader,
|
|
2320
|
-
|
|
2333
|
+
F && u?.columnHeaderToday
|
|
2321
2334
|
),
|
|
2322
2335
|
children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center", children: [
|
|
2323
2336
|
/* @__PURE__ */ e(
|
|
@@ -2325,9 +2338,9 @@ function Yn({
|
|
|
2325
2338
|
{
|
|
2326
2339
|
className: i(
|
|
2327
2340
|
"text-[11px] font-medium uppercase tracking-wide",
|
|
2328
|
-
|
|
2341
|
+
F ? "text-primary" : "text-muted-foreground"
|
|
2329
2342
|
),
|
|
2330
|
-
children:
|
|
2343
|
+
children: R
|
|
2331
2344
|
}
|
|
2332
2345
|
),
|
|
2333
2346
|
/* @__PURE__ */ e(
|
|
@@ -2336,20 +2349,20 @@ function Yn({
|
|
|
2336
2349
|
className: i(
|
|
2337
2350
|
"flex items-center justify-center rounded-full mt-0.5",
|
|
2338
2351
|
"size-12 text-3xl font-normal",
|
|
2339
|
-
|
|
2352
|
+
F ? "bg-primary text-primary-foreground" : "text-foreground"
|
|
2340
2353
|
),
|
|
2341
|
-
children:
|
|
2354
|
+
children: A
|
|
2342
2355
|
}
|
|
2343
2356
|
)
|
|
2344
2357
|
] })
|
|
2345
2358
|
}
|
|
2346
2359
|
),
|
|
2347
2360
|
D.length > 0 && /* @__PURE__ */ e(
|
|
2348
|
-
|
|
2361
|
+
zn,
|
|
2349
2362
|
{
|
|
2350
2363
|
events: D,
|
|
2351
2364
|
date: n,
|
|
2352
|
-
onEventClick:
|
|
2365
|
+
onEventClick: f,
|
|
2353
2366
|
disablePopover: !!s && !b,
|
|
2354
2367
|
renderPopover: b,
|
|
2355
2368
|
...u?.multiDayBanner && { className: u.multiDayBanner }
|
|
@@ -2358,11 +2371,11 @@ function Yn({
|
|
|
2358
2371
|
/* @__PURE__ */ e(
|
|
2359
2372
|
"div",
|
|
2360
2373
|
{
|
|
2361
|
-
ref:
|
|
2374
|
+
ref: M,
|
|
2362
2375
|
className: i("flex-1", u?.scrollContainer),
|
|
2363
2376
|
children: /* @__PURE__ */ o("div", { className: "relative min-h-full", children: [
|
|
2364
|
-
|
|
2365
|
-
const S = !
|
|
2377
|
+
_.map((w, c) => {
|
|
2378
|
+
const S = !dt(n, w, a);
|
|
2366
2379
|
return /* @__PURE__ */ o(
|
|
2367
2380
|
"div",
|
|
2368
2381
|
{
|
|
@@ -2372,7 +2385,7 @@ function Yn({
|
|
|
2372
2385
|
u?.timeSlot,
|
|
2373
2386
|
S ? u?.timeSlotNonWorking : u?.timeSlotWorking
|
|
2374
2387
|
),
|
|
2375
|
-
style: { height:
|
|
2388
|
+
style: { height: we },
|
|
2376
2389
|
children: [
|
|
2377
2390
|
/* @__PURE__ */ e(
|
|
2378
2391
|
"div",
|
|
@@ -2381,7 +2394,7 @@ function Yn({
|
|
|
2381
2394
|
"relative flex-shrink-0 border-r border-border/50 bg-zinc-50 dark:bg-zinc-900",
|
|
2382
2395
|
u?.timeGutter
|
|
2383
2396
|
),
|
|
2384
|
-
style: { width:
|
|
2397
|
+
style: { width: _e },
|
|
2385
2398
|
children: /* @__PURE__ */ e("div", { className: "absolute -top-2.5 right-1 sm:right-2 flex h-5 items-center", children: c !== 0 && /* @__PURE__ */ e(
|
|
2386
2399
|
"span",
|
|
2387
2400
|
{
|
|
@@ -2389,15 +2402,15 @@ function Yn({
|
|
|
2389
2402
|
"text-[10px] sm:text-xs text-muted-foreground",
|
|
2390
2403
|
u?.timeGutterLabel
|
|
2391
2404
|
),
|
|
2392
|
-
children:
|
|
2405
|
+
children: Ae(w)
|
|
2393
2406
|
}
|
|
2394
2407
|
) })
|
|
2395
2408
|
}
|
|
2396
2409
|
),
|
|
2397
2410
|
/* @__PURE__ */ o("div", { className: "relative flex-1", children: [
|
|
2398
|
-
|
|
2411
|
+
j && !S && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-primary/5" }),
|
|
2399
2412
|
c !== 0 && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-x-0 top-0 border-b border-border/50" }),
|
|
2400
|
-
|
|
2413
|
+
N.slice(1).map((C) => /* @__PURE__ */ e(
|
|
2401
2414
|
"div",
|
|
2402
2415
|
{
|
|
2403
2416
|
className: "pointer-events-none absolute inset-x-0 border-b border-dashed border-border/30",
|
|
@@ -2405,24 +2418,24 @@ function Yn({
|
|
|
2405
2418
|
},
|
|
2406
2419
|
C
|
|
2407
2420
|
)),
|
|
2408
|
-
|
|
2409
|
-
const
|
|
2421
|
+
N.map((C, P) => {
|
|
2422
|
+
const O = { date: n, hour: w, minute: C };
|
|
2410
2423
|
return /* @__PURE__ */ e(
|
|
2411
|
-
|
|
2424
|
+
Nt,
|
|
2412
2425
|
{
|
|
2413
|
-
slot:
|
|
2414
|
-
onSelectionStart:
|
|
2415
|
-
onSelectionMove:
|
|
2426
|
+
slot: O,
|
|
2427
|
+
onSelectionStart: I,
|
|
2428
|
+
onSelectionMove: H,
|
|
2416
2429
|
onSelectionEnd: z,
|
|
2417
|
-
isSelected:
|
|
2418
|
-
isSelecting:
|
|
2430
|
+
isSelected: E?.isSlotSelected(O) ?? !1,
|
|
2431
|
+
isSelecting: E?.isSelecting ?? !1,
|
|
2419
2432
|
disabled: S,
|
|
2420
2433
|
className: "absolute inset-x-0",
|
|
2421
2434
|
style: {
|
|
2422
|
-
top: `${
|
|
2423
|
-
height: `${
|
|
2435
|
+
top: `${P * p}%`,
|
|
2436
|
+
height: `${p}%`
|
|
2424
2437
|
},
|
|
2425
|
-
ariaLabel: `Add event at ${
|
|
2438
|
+
ariaLabel: `Add event at ${Ae(w)}:${String(C).padStart(2, "0")}`
|
|
2426
2439
|
},
|
|
2427
2440
|
C
|
|
2428
2441
|
);
|
|
@@ -2430,18 +2443,18 @@ function Yn({
|
|
|
2430
2443
|
] })
|
|
2431
2444
|
]
|
|
2432
2445
|
},
|
|
2433
|
-
|
|
2446
|
+
w
|
|
2434
2447
|
);
|
|
2435
2448
|
}),
|
|
2436
2449
|
/* @__PURE__ */ e(
|
|
2437
2450
|
"div",
|
|
2438
2451
|
{
|
|
2439
2452
|
className: "absolute top-0 bottom-0 right-0 pointer-events-none",
|
|
2440
|
-
style: { left:
|
|
2441
|
-
children:
|
|
2442
|
-
const c =
|
|
2453
|
+
style: { left: _e },
|
|
2454
|
+
children: L.map((w) => {
|
|
2455
|
+
const c = T.get(w.id);
|
|
2443
2456
|
if (!c) return null;
|
|
2444
|
-
const m = `calc(${c.width}% - 2px)`, S = `max(${
|
|
2457
|
+
const m = `calc(${c.width}% - 2px)`, S = `max(${Ie}px, ${m})`;
|
|
2445
2458
|
return l ? /* @__PURE__ */ e(
|
|
2446
2459
|
"div",
|
|
2447
2460
|
{
|
|
@@ -2450,34 +2463,34 @@ function Yn({
|
|
|
2450
2463
|
top: `${c.top}px`,
|
|
2451
2464
|
left: `${c.left}%`,
|
|
2452
2465
|
width: S,
|
|
2453
|
-
minWidth: `${
|
|
2466
|
+
minWidth: `${Ie}px`
|
|
2454
2467
|
},
|
|
2455
|
-
children: l({ event:
|
|
2468
|
+
children: l({ event: w, position: c })
|
|
2456
2469
|
},
|
|
2457
|
-
|
|
2470
|
+
w.id
|
|
2458
2471
|
) : /* @__PURE__ */ e(
|
|
2459
|
-
|
|
2472
|
+
bt,
|
|
2460
2473
|
{
|
|
2461
|
-
event:
|
|
2474
|
+
event: w,
|
|
2462
2475
|
position: {
|
|
2463
2476
|
top: c.top,
|
|
2464
2477
|
left: c.left,
|
|
2465
2478
|
width: c.width,
|
|
2466
|
-
minWidth:
|
|
2479
|
+
minWidth: Ie
|
|
2467
2480
|
},
|
|
2468
|
-
hourHeight:
|
|
2481
|
+
hourHeight: we,
|
|
2469
2482
|
badgeVariant: h,
|
|
2470
2483
|
onClick: s,
|
|
2471
2484
|
disablePopover: !!s && !b,
|
|
2472
2485
|
renderPopover: b,
|
|
2473
2486
|
className: i("pointer-events-auto", u?.eventCard)
|
|
2474
2487
|
},
|
|
2475
|
-
|
|
2488
|
+
w.id
|
|
2476
2489
|
);
|
|
2477
2490
|
})
|
|
2478
2491
|
}
|
|
2479
2492
|
),
|
|
2480
|
-
|
|
2493
|
+
j && B >= 0 && /* @__PURE__ */ o(
|
|
2481
2494
|
"div",
|
|
2482
2495
|
{
|
|
2483
2496
|
className: i(
|
|
@@ -2485,8 +2498,8 @@ function Yn({
|
|
|
2485
2498
|
u?.currentTimeIndicator
|
|
2486
2499
|
),
|
|
2487
2500
|
style: {
|
|
2488
|
-
top:
|
|
2489
|
-
left:
|
|
2501
|
+
top: B,
|
|
2502
|
+
left: _e
|
|
2490
2503
|
},
|
|
2491
2504
|
children: [
|
|
2492
2505
|
/* @__PURE__ */ e("div", { className: "h-2.5 w-2.5 -ml-1 rounded-full bg-red-500" }),
|
|
@@ -2507,7 +2520,7 @@ const Wn = [
|
|
|
2507
2520
|
{ full: "Friday", short: "Fri", tiny: "F" },
|
|
2508
2521
|
{ full: "Saturday", short: "Sat", tiny: "S" },
|
|
2509
2522
|
{ full: "Sunday", short: "Sun", tiny: "S" }
|
|
2510
|
-
],
|
|
2523
|
+
], Ln = [
|
|
2511
2524
|
{ full: "Sunday", short: "Sun", tiny: "S" },
|
|
2512
2525
|
{ full: "Monday", short: "Mon", tiny: "M" },
|
|
2513
2526
|
{ full: "Tuesday", short: "Tue", tiny: "T" },
|
|
@@ -2515,8 +2528,8 @@ const Wn = [
|
|
|
2515
2528
|
{ full: "Thursday", short: "Thu", tiny: "T" },
|
|
2516
2529
|
{ full: "Friday", short: "Fri", tiny: "F" },
|
|
2517
2530
|
{ full: "Saturday", short: "Sat", tiny: "S" }
|
|
2518
|
-
],
|
|
2519
|
-
function
|
|
2531
|
+
], ve = 3;
|
|
2532
|
+
function Zn({
|
|
2520
2533
|
events: t,
|
|
2521
2534
|
date: n,
|
|
2522
2535
|
weekStartsOn: r = 1,
|
|
@@ -2528,35 +2541,35 @@ function Jn({
|
|
|
2528
2541
|
renderEvent: k,
|
|
2529
2542
|
renderPopover: l,
|
|
2530
2543
|
showMoreMode: b,
|
|
2531
|
-
showMoreEventsInPopover:
|
|
2544
|
+
showMoreEventsInPopover: v = !1,
|
|
2532
2545
|
slots: u,
|
|
2533
2546
|
classNames: x
|
|
2534
2547
|
}) {
|
|
2535
|
-
const
|
|
2536
|
-
const
|
|
2537
|
-
for (const
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2548
|
+
const p = b ?? (v ? "popover" : "expand"), N = u?.dayCellHeader, g = u?.dayCellFooter, [L, D] = Q(null), [T, _] = Q(null), U = K(() => Tt(n, r), [n, r]), j = K(() => {
|
|
2549
|
+
const f = /* @__PURE__ */ new Map();
|
|
2550
|
+
for (const R of U) {
|
|
2551
|
+
const A = R.date.toDateString(), F = Fe(t, R.date);
|
|
2552
|
+
F.sort((w, c) => w.startDate.getTime() - c.startDate.getTime()), f.set(A, F);
|
|
2540
2553
|
}
|
|
2541
|
-
return
|
|
2542
|
-
}, [
|
|
2543
|
-
(
|
|
2544
|
-
|
|
2554
|
+
return f;
|
|
2555
|
+
}, [U, t]), B = Ge(), M = W(
|
|
2556
|
+
(f) => {
|
|
2557
|
+
B?.startSelection(f);
|
|
2545
2558
|
},
|
|
2546
|
-
[
|
|
2547
|
-
),
|
|
2548
|
-
(
|
|
2549
|
-
|
|
2559
|
+
[B]
|
|
2560
|
+
), E = W(
|
|
2561
|
+
(f) => {
|
|
2562
|
+
B?.updateSelection(f);
|
|
2550
2563
|
},
|
|
2551
|
-
[
|
|
2552
|
-
),
|
|
2553
|
-
|
|
2554
|
-
}, [
|
|
2555
|
-
(
|
|
2556
|
-
s?.(
|
|
2564
|
+
[B]
|
|
2565
|
+
), I = W(() => {
|
|
2566
|
+
B?.endSelection();
|
|
2567
|
+
}, [B]), H = W(
|
|
2568
|
+
(f) => {
|
|
2569
|
+
s?.(f);
|
|
2557
2570
|
},
|
|
2558
2571
|
[s]
|
|
2559
|
-
), z = r === 0 ?
|
|
2572
|
+
), z = r === 0 ? Ln : Wn;
|
|
2560
2573
|
return /* @__PURE__ */ o("div", { className: i("flex flex-col h-full overflow-hidden", y), children: [
|
|
2561
2574
|
/* @__PURE__ */ e("div", { className: "flex flex-col flex-1 overflow-auto", children: /* @__PURE__ */ o("div", { className: "flex flex-col flex-1 min-w-[560px] sm:min-w-0", children: [
|
|
2562
2575
|
/* @__PURE__ */ e(
|
|
@@ -2566,54 +2579,54 @@ function Jn({
|
|
|
2566
2579
|
"grid grid-cols-7 border-b !sticky !top-0 bg-background z-10",
|
|
2567
2580
|
x?.weekdayHeader
|
|
2568
2581
|
),
|
|
2569
|
-
children: z.map((
|
|
2582
|
+
children: z.map((f, R) => /* @__PURE__ */ o(
|
|
2570
2583
|
"div",
|
|
2571
2584
|
{
|
|
2572
2585
|
className: i(
|
|
2573
2586
|
"py-2 sm:py-2.5 text-center text-[11px] uppercase font-medium tracking-wide text-muted-foreground",
|
|
2574
|
-
|
|
2587
|
+
R >= 5 && "text-muted-foreground/70",
|
|
2575
2588
|
// Weekend
|
|
2576
2589
|
x?.weekdayLabel
|
|
2577
2590
|
),
|
|
2578
2591
|
children: [
|
|
2579
|
-
/* @__PURE__ */ e("span", { className: "sm:hidden", children:
|
|
2580
|
-
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children:
|
|
2592
|
+
/* @__PURE__ */ e("span", { className: "sm:hidden", children: f.short }),
|
|
2593
|
+
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children: f.short })
|
|
2581
2594
|
]
|
|
2582
2595
|
},
|
|
2583
|
-
|
|
2596
|
+
f.full
|
|
2584
2597
|
))
|
|
2585
2598
|
}
|
|
2586
2599
|
),
|
|
2587
|
-
/* @__PURE__ */ e("div", { className: i("grid grid-cols-7 auto-rows-min", x?.monthGrid), children:
|
|
2588
|
-
const
|
|
2600
|
+
/* @__PURE__ */ e("div", { className: i("grid grid-cols-7 auto-rows-min", x?.monthGrid), children: U.map((f) => {
|
|
2601
|
+
const R = f.date.toDateString(), A = j.get(R) || [], F = ce(f.date), w = f.date.getDay() === 0 || f.date.getDay() === 6, c = A.length > ve;
|
|
2589
2602
|
return /* @__PURE__ */ o(
|
|
2590
|
-
|
|
2603
|
+
En,
|
|
2591
2604
|
{
|
|
2592
|
-
date:
|
|
2593
|
-
dataAttributes: { "data-day-key":
|
|
2594
|
-
onSelectionStart:
|
|
2595
|
-
onSelectionMove:
|
|
2596
|
-
onSelectionEnd:
|
|
2597
|
-
isSelected:
|
|
2598
|
-
isSelecting:
|
|
2605
|
+
date: f.date,
|
|
2606
|
+
dataAttributes: { "data-day-key": R },
|
|
2607
|
+
onSelectionStart: M,
|
|
2608
|
+
onSelectionMove: E,
|
|
2609
|
+
onSelectionEnd: I,
|
|
2610
|
+
isSelected: B?.isSlotSelected({ date: f.date }) ?? !1,
|
|
2611
|
+
isSelecting: B?.isSelecting ?? !1,
|
|
2599
2612
|
className: i(
|
|
2600
2613
|
"relative flex flex-col border-r border-b text-left min-h-[80px] sm:min-h-[100px] overflow-hidden",
|
|
2601
2614
|
"[&:nth-child(7n)]:border-r-0",
|
|
2602
|
-
!
|
|
2603
|
-
|
|
2615
|
+
!f.isCurrentMonth && "bg-muted/20",
|
|
2616
|
+
w && f.isCurrentMonth && "bg-muted/10",
|
|
2604
2617
|
x?.dayCell,
|
|
2605
|
-
|
|
2606
|
-
!
|
|
2607
|
-
|
|
2618
|
+
F && x?.dayCellToday,
|
|
2619
|
+
!f.isCurrentMonth && x?.dayCellOutside,
|
|
2620
|
+
w && x?.dayCellWeekend
|
|
2608
2621
|
),
|
|
2609
|
-
ariaLabel: `${
|
|
2622
|
+
ariaLabel: `${f.date.toLocaleDateString()} - ${A.length} events. Click to create event, double-click to view day.`,
|
|
2610
2623
|
children: [
|
|
2611
2624
|
/* @__PURE__ */ e(
|
|
2612
2625
|
"div",
|
|
2613
2626
|
{
|
|
2614
2627
|
className: i(
|
|
2615
2628
|
"flex items-center justify-center p-1",
|
|
2616
|
-
!
|
|
2629
|
+
!f.isCurrentMonth && "text-muted-foreground/40",
|
|
2617
2630
|
x?.dayCellNumber
|
|
2618
2631
|
),
|
|
2619
2632
|
children: /* @__PURE__ */ e(
|
|
@@ -2621,26 +2634,26 @@ function Jn({
|
|
|
2621
2634
|
{
|
|
2622
2635
|
type: "button",
|
|
2623
2636
|
onClick: (m) => {
|
|
2624
|
-
m.stopPropagation(),
|
|
2637
|
+
m.stopPropagation(), H(f.date);
|
|
2625
2638
|
},
|
|
2626
2639
|
className: i(
|
|
2627
2640
|
"flex items-center justify-center rounded-full transition-colors",
|
|
2628
2641
|
"size-7 text-sm font-normal",
|
|
2629
|
-
|
|
2642
|
+
F ? "bg-primary text-primary-foreground" : "hover:bg-muted"
|
|
2630
2643
|
),
|
|
2631
|
-
children:
|
|
2644
|
+
children: f.date.getDate()
|
|
2632
2645
|
}
|
|
2633
2646
|
)
|
|
2634
2647
|
}
|
|
2635
2648
|
),
|
|
2636
|
-
|
|
2637
|
-
|
|
2649
|
+
N && /* @__PURE__ */ e(
|
|
2650
|
+
N,
|
|
2638
2651
|
{
|
|
2639
|
-
date:
|
|
2640
|
-
events:
|
|
2641
|
-
isToday:
|
|
2642
|
-
isCurrentMonth:
|
|
2643
|
-
isWeekend:
|
|
2652
|
+
date: f.date,
|
|
2653
|
+
events: A,
|
|
2654
|
+
isToday: F,
|
|
2655
|
+
isCurrentMonth: f.isCurrentMonth,
|
|
2656
|
+
isWeekend: w,
|
|
2644
2657
|
view: "month"
|
|
2645
2658
|
}
|
|
2646
2659
|
),
|
|
@@ -2652,14 +2665,14 @@ function Jn({
|
|
|
2652
2665
|
x?.dayCellContent
|
|
2653
2666
|
),
|
|
2654
2667
|
children: [
|
|
2655
|
-
|
|
2668
|
+
A.slice(0, ve).map((m) => /* @__PURE__ */ e(
|
|
2656
2669
|
"div",
|
|
2657
2670
|
{
|
|
2658
2671
|
onPointerDown: (S) => {
|
|
2659
2672
|
S.stopPropagation();
|
|
2660
2673
|
},
|
|
2661
2674
|
children: k ? k({ event: m, variant: "compact" }) : /* @__PURE__ */ e(
|
|
2662
|
-
|
|
2675
|
+
Ee,
|
|
2663
2676
|
{
|
|
2664
2677
|
event: m,
|
|
2665
2678
|
variant: "compact",
|
|
@@ -2677,17 +2690,17 @@ function Jn({
|
|
|
2677
2690
|
},
|
|
2678
2691
|
m.id
|
|
2679
2692
|
)),
|
|
2680
|
-
c &&
|
|
2693
|
+
c && p === "expand" && /* @__PURE__ */ o(
|
|
2681
2694
|
"button",
|
|
2682
2695
|
{
|
|
2683
2696
|
type: "button",
|
|
2684
2697
|
onPointerDown: (m) => m.stopPropagation(),
|
|
2685
2698
|
onClick: (m) => {
|
|
2686
2699
|
m.stopPropagation();
|
|
2687
|
-
const S = document.querySelector(`[data-day-key="${
|
|
2688
|
-
|
|
2689
|
-
date:
|
|
2690
|
-
events:
|
|
2700
|
+
const S = document.querySelector(`[data-day-key="${R}"]`);
|
|
2701
|
+
_({
|
|
2702
|
+
date: f.date,
|
|
2703
|
+
events: A,
|
|
2691
2704
|
rect: S?.getBoundingClientRect() ?? new DOMRect(window.innerWidth / 2 - 180, window.innerHeight / 2 - 240, 0, 0)
|
|
2692
2705
|
});
|
|
2693
2706
|
},
|
|
@@ -2697,16 +2710,16 @@ function Jn({
|
|
|
2697
2710
|
),
|
|
2698
2711
|
children: [
|
|
2699
2712
|
"+",
|
|
2700
|
-
|
|
2713
|
+
A.length - ve,
|
|
2701
2714
|
" more"
|
|
2702
2715
|
]
|
|
2703
2716
|
}
|
|
2704
2717
|
),
|
|
2705
|
-
c &&
|
|
2718
|
+
c && p === "popover" && /* @__PURE__ */ o(
|
|
2706
2719
|
ue,
|
|
2707
2720
|
{
|
|
2708
|
-
open:
|
|
2709
|
-
onOpenChange: (m) => D(m ?
|
|
2721
|
+
open: L === R,
|
|
2722
|
+
onOpenChange: (m) => D(m ? R : null),
|
|
2710
2723
|
children: [
|
|
2711
2724
|
/* @__PURE__ */ e(me, { asChild: !0, children: /* @__PURE__ */ o(
|
|
2712
2725
|
"button",
|
|
@@ -2714,7 +2727,7 @@ function Jn({
|
|
|
2714
2727
|
type: "button",
|
|
2715
2728
|
onPointerDown: (m) => m.stopPropagation(),
|
|
2716
2729
|
onClick: (m) => {
|
|
2717
|
-
m.stopPropagation(), D(
|
|
2730
|
+
m.stopPropagation(), D(R);
|
|
2718
2731
|
},
|
|
2719
2732
|
className: i(
|
|
2720
2733
|
"w-full text-left text-xs text-muted-foreground hover:text-foreground hover:underline px-1.5 cursor-pointer",
|
|
@@ -2722,7 +2735,7 @@ function Jn({
|
|
|
2722
2735
|
),
|
|
2723
2736
|
children: [
|
|
2724
2737
|
"+",
|
|
2725
|
-
|
|
2738
|
+
A.length - ve,
|
|
2726
2739
|
" more"
|
|
2727
2740
|
]
|
|
2728
2741
|
}
|
|
@@ -2737,18 +2750,18 @@ function Jn({
|
|
|
2737
2750
|
onPointerDown: (m) => m.stopPropagation(),
|
|
2738
2751
|
children: [
|
|
2739
2752
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between mb-2 pb-2 border-b", children: [
|
|
2740
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children:
|
|
2753
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: f.date.toLocaleDateString(void 0, {
|
|
2741
2754
|
weekday: "short",
|
|
2742
2755
|
month: "short",
|
|
2743
2756
|
day: "numeric"
|
|
2744
2757
|
}) }),
|
|
2745
2758
|
/* @__PURE__ */ o("span", { className: "text-xs text-muted-foreground", children: [
|
|
2746
|
-
|
|
2759
|
+
A.length,
|
|
2747
2760
|
" events"
|
|
2748
2761
|
] })
|
|
2749
2762
|
] }),
|
|
2750
|
-
/* @__PURE__ */ e("div", { className: "space-y-1.5", children:
|
|
2751
|
-
|
|
2763
|
+
/* @__PURE__ */ e("div", { className: "space-y-1.5", children: A.map((m) => /* @__PURE__ */ e("div", { children: k ? k({ event: m, variant: "compact" }) : /* @__PURE__ */ e(
|
|
2764
|
+
Ee,
|
|
2752
2765
|
{
|
|
2753
2766
|
event: m,
|
|
2754
2767
|
variant: "compact",
|
|
@@ -2767,11 +2780,11 @@ function Jn({
|
|
|
2767
2780
|
]
|
|
2768
2781
|
}
|
|
2769
2782
|
),
|
|
2770
|
-
c &&
|
|
2783
|
+
c && p === "dayView" && /* @__PURE__ */ o(
|
|
2771
2784
|
"div",
|
|
2772
2785
|
{
|
|
2773
2786
|
onPointerDown: (m) => {
|
|
2774
|
-
m.stopPropagation(),
|
|
2787
|
+
m.stopPropagation(), H(f.date);
|
|
2775
2788
|
},
|
|
2776
2789
|
className: i(
|
|
2777
2790
|
"w-full text-left text-xs text-muted-foreground hover:text-foreground hover:underline px-1.5 cursor-pointer",
|
|
@@ -2779,7 +2792,7 @@ function Jn({
|
|
|
2779
2792
|
),
|
|
2780
2793
|
children: [
|
|
2781
2794
|
"+",
|
|
2782
|
-
|
|
2795
|
+
A.length - ve,
|
|
2783
2796
|
" more"
|
|
2784
2797
|
]
|
|
2785
2798
|
}
|
|
@@ -2790,28 +2803,28 @@ function Jn({
|
|
|
2790
2803
|
g && /* @__PURE__ */ e(
|
|
2791
2804
|
g,
|
|
2792
2805
|
{
|
|
2793
|
-
date:
|
|
2794
|
-
events:
|
|
2795
|
-
isToday:
|
|
2796
|
-
isCurrentMonth:
|
|
2797
|
-
isWeekend:
|
|
2806
|
+
date: f.date,
|
|
2807
|
+
events: A,
|
|
2808
|
+
isToday: F,
|
|
2809
|
+
isCurrentMonth: f.isCurrentMonth,
|
|
2810
|
+
isWeekend: w,
|
|
2798
2811
|
view: "month"
|
|
2799
2812
|
}
|
|
2800
2813
|
)
|
|
2801
2814
|
]
|
|
2802
2815
|
},
|
|
2803
|
-
|
|
2816
|
+
R
|
|
2804
2817
|
);
|
|
2805
2818
|
}) })
|
|
2806
2819
|
] }) }),
|
|
2807
2820
|
/* @__PURE__ */ e(
|
|
2808
|
-
|
|
2821
|
+
Sn,
|
|
2809
2822
|
{
|
|
2810
|
-
isOpen:
|
|
2811
|
-
onClose: () =>
|
|
2812
|
-
date:
|
|
2813
|
-
events:
|
|
2814
|
-
anchorRect:
|
|
2823
|
+
isOpen: T !== null,
|
|
2824
|
+
onClose: () => _(null),
|
|
2825
|
+
date: T?.date ?? /* @__PURE__ */ new Date(),
|
|
2826
|
+
events: T?.events ?? [],
|
|
2827
|
+
anchorRect: T?.rect ?? null,
|
|
2815
2828
|
badgeVariant: a,
|
|
2816
2829
|
onEventClick: d,
|
|
2817
2830
|
renderEvent: k,
|
|
@@ -2820,17 +2833,17 @@ function Jn({
|
|
|
2820
2833
|
)
|
|
2821
2834
|
] });
|
|
2822
2835
|
}
|
|
2823
|
-
const
|
|
2824
|
-
function
|
|
2825
|
-
const r =
|
|
2836
|
+
const We = 26, rt = 2, Me = 4;
|
|
2837
|
+
function ot(t, n) {
|
|
2838
|
+
const r = Ke(t);
|
|
2826
2839
|
for (let d = 0; d < n.length; d++) {
|
|
2827
2840
|
const h = n[d];
|
|
2828
2841
|
if (h && se(r, h)) return d;
|
|
2829
2842
|
}
|
|
2830
2843
|
const a = n[0];
|
|
2831
|
-
return a && r <
|
|
2844
|
+
return a && r < Ke(a) ? -1 : 7;
|
|
2832
2845
|
}
|
|
2833
|
-
function
|
|
2846
|
+
function Rn(t) {
|
|
2834
2847
|
const n = [...t].sort((a, d) => {
|
|
2835
2848
|
const h = a.endCol - a.startCol, s = d.endCol - d.startCol;
|
|
2836
2849
|
return s !== h ? s - h : a.startCol - d.startCol;
|
|
@@ -2859,15 +2872,15 @@ function Ln(t) {
|
|
|
2859
2872
|
return { ...a, row: d };
|
|
2860
2873
|
});
|
|
2861
2874
|
}
|
|
2862
|
-
function
|
|
2875
|
+
function _n({
|
|
2863
2876
|
pe: t,
|
|
2864
2877
|
onEventClick: n,
|
|
2865
2878
|
disablePopover: r,
|
|
2866
2879
|
renderPopover: a
|
|
2867
2880
|
}) {
|
|
2868
|
-
const [d, h] = Q(!1), s = de(t.event.color), y =
|
|
2881
|
+
const [d, h] = Q(!1), s = de(t.event.color), y = W(() => {
|
|
2869
2882
|
r && n ? n(t.event) : r || h(!0);
|
|
2870
|
-
}, [r, n, t.event]), k =
|
|
2883
|
+
}, [r, n, t.event]), k = W(() => {
|
|
2871
2884
|
h(!1);
|
|
2872
2885
|
}, []), l = /* @__PURE__ */ o(
|
|
2873
2886
|
"button",
|
|
@@ -2884,8 +2897,8 @@ function Rn({
|
|
|
2884
2897
|
t.continuesAfter && "rounded-r-none -mr-0.5 pr-1"
|
|
2885
2898
|
),
|
|
2886
2899
|
style: {
|
|
2887
|
-
height:
|
|
2888
|
-
lineHeight: `${
|
|
2900
|
+
height: We,
|
|
2901
|
+
lineHeight: `${We}px`,
|
|
2889
2902
|
paddingLeft: t.continuesBefore ? 4 : 6,
|
|
2890
2903
|
paddingRight: t.continuesAfter ? 4 : 6
|
|
2891
2904
|
},
|
|
@@ -2898,20 +2911,20 @@ function Rn({
|
|
|
2898
2911
|
}
|
|
2899
2912
|
), b = /* @__PURE__ */ e(re, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0.5", children: [
|
|
2900
2913
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t.event.title }),
|
|
2901
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children:
|
|
2902
|
-
] }) }),
|
|
2914
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground tabular-nums", children: J(t.event) })
|
|
2915
|
+
] }) }), v = {
|
|
2903
2916
|
gridColumn: `${t.startCol + 2} / ${t.endCol + 3}`,
|
|
2904
2917
|
gridRow: t.row + 1
|
|
2905
2918
|
};
|
|
2906
|
-
return r ? /* @__PURE__ */ e("div", { style:
|
|
2919
|
+
return r ? /* @__PURE__ */ e("div", { style: v, children: /* @__PURE__ */ o(ae, { children: [
|
|
2907
2920
|
/* @__PURE__ */ e(ie, { asChild: !0, children: l }),
|
|
2908
2921
|
b
|
|
2909
|
-
] }) }) : /* @__PURE__ */ e("div", { style:
|
|
2922
|
+
] }) }) : /* @__PURE__ */ e("div", { style: v, children: /* @__PURE__ */ o(ue, { open: d, onOpenChange: h, children: [
|
|
2910
2923
|
/* @__PURE__ */ e(me, { asChild: !0, children: l }),
|
|
2911
|
-
/* @__PURE__ */ e(le, { className: "w-80", children: a ? a({ event: t.event, onClose: k }) : /* @__PURE__ */ e(
|
|
2924
|
+
/* @__PURE__ */ e(le, { className: "w-80", children: a ? a({ event: t.event, onClose: k }) : /* @__PURE__ */ e(In, { event: t.event, onClose: k }) })
|
|
2912
2925
|
] }) });
|
|
2913
2926
|
}
|
|
2914
|
-
function
|
|
2927
|
+
function In({
|
|
2915
2928
|
event: t,
|
|
2916
2929
|
onClose: n
|
|
2917
2930
|
}) {
|
|
@@ -2930,7 +2943,7 @@ function _n({
|
|
|
2930
2943
|
children: t.title
|
|
2931
2944
|
}
|
|
2932
2945
|
),
|
|
2933
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-sm text-muted-foreground mt-1 tabular-nums", children:
|
|
2946
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-sm text-muted-foreground mt-1 tabular-nums", children: J(t) })
|
|
2934
2947
|
] })
|
|
2935
2948
|
] }),
|
|
2936
2949
|
t.description && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: t.description }),
|
|
@@ -2949,7 +2962,7 @@ function _n({
|
|
|
2949
2962
|
) })
|
|
2950
2963
|
] });
|
|
2951
2964
|
}
|
|
2952
|
-
function
|
|
2965
|
+
function Bn({
|
|
2953
2966
|
events: t,
|
|
2954
2967
|
weekDays: n,
|
|
2955
2968
|
hourColumnWidth: r,
|
|
@@ -2960,28 +2973,28 @@ function In({
|
|
|
2960
2973
|
renderPopover: y,
|
|
2961
2974
|
className: k
|
|
2962
2975
|
}) {
|
|
2963
|
-
const l =
|
|
2976
|
+
const l = K(() => {
|
|
2964
2977
|
if (t.length === 0) return [];
|
|
2965
|
-
const g = t.map((
|
|
2966
|
-
const D =
|
|
2967
|
-
if (
|
|
2968
|
-
const
|
|
2978
|
+
const g = t.map((L) => {
|
|
2979
|
+
const D = ot(L.startDate, n), T = ot(L.endDate, n), _ = Math.max(0, D), U = Math.min(6, T);
|
|
2980
|
+
if (_ > 6 || U < 0) return null;
|
|
2981
|
+
const j = D < 0, B = T > 6, E = ze(L) && se(L.startDate, L.endDate);
|
|
2969
2982
|
return {
|
|
2970
|
-
event:
|
|
2971
|
-
startCol:
|
|
2972
|
-
endCol:
|
|
2973
|
-
continuesBefore:
|
|
2974
|
-
continuesAfter:
|
|
2975
|
-
isSingleDayAllDay:
|
|
2983
|
+
event: L,
|
|
2984
|
+
startCol: _,
|
|
2985
|
+
endCol: U,
|
|
2986
|
+
continuesBefore: j,
|
|
2987
|
+
continuesAfter: B,
|
|
2988
|
+
isSingleDayAllDay: E
|
|
2976
2989
|
};
|
|
2977
2990
|
}).filter(Boolean);
|
|
2978
|
-
return
|
|
2991
|
+
return Rn(g);
|
|
2979
2992
|
}, [t, n]);
|
|
2980
2993
|
if (l.length === 0) return null;
|
|
2981
|
-
const b = Math.max(...l.map((g) => g.row)) + 1,
|
|
2994
|
+
const b = Math.max(...l.map((g) => g.row)) + 1, v = Math.min(b, Me), u = b > Me, x = u ? l.filter((g) => g.row >= Me).length : 0, p = [
|
|
2982
2995
|
`${r}px`,
|
|
2983
2996
|
...d.map((g) => g > a ? `${g}px` : `minmax(${a}px, 1fr)`)
|
|
2984
|
-
].join(" "),
|
|
2997
|
+
].join(" "), N = v * We + (v - 1) * rt + 8;
|
|
2985
2998
|
return /* @__PURE__ */ o(
|
|
2986
2999
|
"div",
|
|
2987
3000
|
{
|
|
@@ -2991,12 +3004,12 @@ function In({
|
|
|
2991
3004
|
),
|
|
2992
3005
|
style: {
|
|
2993
3006
|
display: "grid",
|
|
2994
|
-
gridTemplateColumns:
|
|
2995
|
-
gridTemplateRows: `repeat(${
|
|
2996
|
-
gap: `${
|
|
3007
|
+
gridTemplateColumns: p,
|
|
3008
|
+
gridTemplateRows: `repeat(${v}, ${We}px)`,
|
|
3009
|
+
gap: `${rt}px 0`,
|
|
2997
3010
|
paddingTop: 4,
|
|
2998
3011
|
paddingBottom: 4,
|
|
2999
|
-
minHeight:
|
|
3012
|
+
minHeight: N
|
|
3000
3013
|
},
|
|
3001
3014
|
children: [
|
|
3002
3015
|
/* @__PURE__ */ e(
|
|
@@ -3005,24 +3018,24 @@ function In({
|
|
|
3005
3018
|
className: "flex items-start justify-center pt-1 text-[10px] font-medium text-muted-foreground",
|
|
3006
3019
|
style: {
|
|
3007
3020
|
gridColumn: 1,
|
|
3008
|
-
gridRow: `1 / span ${
|
|
3021
|
+
gridRow: `1 / span ${v}`
|
|
3009
3022
|
},
|
|
3010
3023
|
children: /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "All day" })
|
|
3011
3024
|
}
|
|
3012
3025
|
),
|
|
3013
|
-
n.map((g,
|
|
3026
|
+
n.map((g, L) => /* @__PURE__ */ e(
|
|
3014
3027
|
"div",
|
|
3015
3028
|
{
|
|
3016
3029
|
className: "pointer-events-none border-r last:border-r-0",
|
|
3017
3030
|
style: {
|
|
3018
|
-
gridColumn:
|
|
3019
|
-
gridRow: `1 / span ${
|
|
3031
|
+
gridColumn: L + 2,
|
|
3032
|
+
gridRow: `1 / span ${v}`
|
|
3020
3033
|
}
|
|
3021
3034
|
},
|
|
3022
3035
|
g.toDateString()
|
|
3023
3036
|
)),
|
|
3024
|
-
l.filter((g) => g.row <
|
|
3025
|
-
|
|
3037
|
+
l.filter((g) => g.row < Me).map((g) => /* @__PURE__ */ e(
|
|
3038
|
+
_n,
|
|
3026
3039
|
{
|
|
3027
3040
|
pe: g,
|
|
3028
3041
|
onEventClick: h,
|
|
@@ -3037,7 +3050,7 @@ function In({
|
|
|
3037
3050
|
className: "text-[10px] text-muted-foreground font-medium px-2 flex items-center",
|
|
3038
3051
|
style: {
|
|
3039
3052
|
gridColumn: `2 / ${n.length + 2}`,
|
|
3040
|
-
gridRow:
|
|
3053
|
+
gridRow: v
|
|
3041
3054
|
},
|
|
3042
3055
|
children: [
|
|
3043
3056
|
"+",
|
|
@@ -3050,8 +3063,8 @@ function In({
|
|
|
3050
3063
|
}
|
|
3051
3064
|
);
|
|
3052
3065
|
}
|
|
3053
|
-
const he = 96,
|
|
3054
|
-
function
|
|
3066
|
+
const he = 96, Ne = 56, at = 72, te = 120, Te = 100, $n = 3;
|
|
3067
|
+
function Qn({
|
|
3055
3068
|
events: t,
|
|
3056
3069
|
date: n,
|
|
3057
3070
|
weekStartsOn: r = 1,
|
|
@@ -3063,73 +3076,73 @@ function Zn({
|
|
|
3063
3076
|
onSlotSelect: k,
|
|
3064
3077
|
onDayClick: l,
|
|
3065
3078
|
className: b,
|
|
3066
|
-
renderEvent:
|
|
3079
|
+
renderEvent: v,
|
|
3067
3080
|
renderPopover: u,
|
|
3068
3081
|
slots: x,
|
|
3069
|
-
classNames:
|
|
3082
|
+
classNames: p
|
|
3070
3083
|
}) {
|
|
3071
|
-
const
|
|
3084
|
+
const N = 60 / h, g = 100 / N, L = K(() => {
|
|
3072
3085
|
const c = [];
|
|
3073
|
-
for (let m = 0; m <
|
|
3086
|
+
for (let m = 0; m < N; m++)
|
|
3074
3087
|
c.push(m * h);
|
|
3075
3088
|
return c;
|
|
3076
|
-
}, [
|
|
3077
|
-
() =>
|
|
3089
|
+
}, [N, h]), D = K(
|
|
3090
|
+
() => zt(n, r),
|
|
3078
3091
|
[n, r]
|
|
3079
|
-
),
|
|
3080
|
-
() =>
|
|
3092
|
+
), T = K(
|
|
3093
|
+
() => lt(a),
|
|
3081
3094
|
[a]
|
|
3082
|
-
),
|
|
3095
|
+
), _ = K(() => {
|
|
3083
3096
|
const c = /* @__PURE__ */ new Map();
|
|
3084
3097
|
for (const m of D) {
|
|
3085
|
-
const S = m.toDateString(), C =
|
|
3086
|
-
|
|
3098
|
+
const S = m.toDateString(), C = Fe(t, m), { singleDay: P, multiDay: O } = it(C), $ = st(
|
|
3099
|
+
P,
|
|
3087
3100
|
m,
|
|
3088
3101
|
a,
|
|
3089
3102
|
he
|
|
3090
|
-
),
|
|
3103
|
+
), G = /* @__PURE__ */ new Map();
|
|
3091
3104
|
let oe = 1;
|
|
3092
|
-
for (const
|
|
3093
|
-
if (
|
|
3094
|
-
const ee = Math.round(100 /
|
|
3105
|
+
for (const Z of $)
|
|
3106
|
+
if (G.set(Z.event.id, Z.position), Z.position.width > 0) {
|
|
3107
|
+
const ee = Math.round(100 / Z.position.width);
|
|
3095
3108
|
oe = Math.max(oe, ee);
|
|
3096
3109
|
}
|
|
3097
3110
|
c.set(S, {
|
|
3098
|
-
singleDay:
|
|
3099
|
-
multiDay:
|
|
3100
|
-
positions:
|
|
3111
|
+
singleDay: P,
|
|
3112
|
+
multiDay: O,
|
|
3113
|
+
positions: G,
|
|
3101
3114
|
maxOverlapping: oe
|
|
3102
3115
|
});
|
|
3103
3116
|
}
|
|
3104
3117
|
return c;
|
|
3105
|
-
}, [D, t, a]),
|
|
3118
|
+
}, [D, t, a]), U = K(() => {
|
|
3106
3119
|
const c = /* @__PURE__ */ new Map();
|
|
3107
|
-
for (const { multiDay: m } of
|
|
3120
|
+
for (const { multiDay: m } of _.values())
|
|
3108
3121
|
for (const S of m)
|
|
3109
3122
|
c.set(S.id, S);
|
|
3110
3123
|
return Array.from(c.values());
|
|
3111
|
-
}, [
|
|
3112
|
-
if (
|
|
3113
|
-
const c =
|
|
3124
|
+
}, [_]), j = /* @__PURE__ */ new Date(), B = D.findIndex((c) => ce(c)), M = K(() => {
|
|
3125
|
+
if (B < 0) return -1;
|
|
3126
|
+
const c = j.getHours() + j.getMinutes() / 60;
|
|
3114
3127
|
return c < a.startHour || c > a.endHour ? -1 : (c - a.startHour) * he;
|
|
3115
|
-
}, [
|
|
3116
|
-
|
|
3117
|
-
const c =
|
|
3128
|
+
}, [B, a, j]), E = ne(null);
|
|
3129
|
+
je(() => {
|
|
3130
|
+
const c = E.current;
|
|
3118
3131
|
if (!c) return;
|
|
3119
3132
|
const m = () => {
|
|
3120
3133
|
let S;
|
|
3121
|
-
if (
|
|
3122
|
-
const
|
|
3123
|
-
S = Math.max(
|
|
3134
|
+
if (B !== -1) {
|
|
3135
|
+
const P = (/* @__PURE__ */ new Date()).getHours();
|
|
3136
|
+
S = Math.max(P - 1, a.startHour);
|
|
3124
3137
|
} else {
|
|
3125
|
-
const
|
|
3126
|
-
let
|
|
3127
|
-
if (
|
|
3128
|
-
const
|
|
3129
|
-
|
|
3138
|
+
const O = (/* @__PURE__ */ new Date()).getDay();
|
|
3139
|
+
let $ = d?.[O];
|
|
3140
|
+
if (!$?.enabled || $.from === 0) {
|
|
3141
|
+
const G = d?.[1];
|
|
3142
|
+
G?.enabled && ($ = G);
|
|
3130
3143
|
}
|
|
3131
|
-
|
|
3132
|
-
|
|
3144
|
+
$?.enabled && $.from > 0 ? S = Math.max(
|
|
3145
|
+
$.from - 1,
|
|
3133
3146
|
a.startHour
|
|
3134
3147
|
) : S = Math.max(7, a.startHour);
|
|
3135
3148
|
}
|
|
@@ -3142,66 +3155,66 @@ function Zn({
|
|
|
3142
3155
|
requestAnimationFrame(() => {
|
|
3143
3156
|
requestAnimationFrame(m);
|
|
3144
3157
|
});
|
|
3145
|
-
}, [n, d, a,
|
|
3146
|
-
const
|
|
3158
|
+
}, [n, d, a, B]);
|
|
3159
|
+
const I = Ge(), H = W(
|
|
3147
3160
|
(c) => {
|
|
3148
|
-
|
|
3161
|
+
I?.startSelection(c);
|
|
3149
3162
|
},
|
|
3150
|
-
[
|
|
3151
|
-
), z =
|
|
3163
|
+
[I]
|
|
3164
|
+
), z = W(
|
|
3152
3165
|
(c) => {
|
|
3153
|
-
|
|
3166
|
+
I?.updateSelection(c);
|
|
3154
3167
|
},
|
|
3155
|
-
[
|
|
3156
|
-
),
|
|
3157
|
-
|
|
3158
|
-
}, [
|
|
3168
|
+
[I]
|
|
3169
|
+
), f = W(() => {
|
|
3170
|
+
I?.endSelection();
|
|
3171
|
+
}, [I]), R = W(
|
|
3159
3172
|
(c) => {
|
|
3160
3173
|
y?.(c);
|
|
3161
3174
|
},
|
|
3162
3175
|
[y]
|
|
3163
|
-
),
|
|
3176
|
+
), A = Ne + 7 * te, F = K(() => {
|
|
3164
3177
|
const c = [];
|
|
3165
3178
|
for (const m of D) {
|
|
3166
|
-
const S = m.toDateString(),
|
|
3167
|
-
|
|
3168
|
-
Math.max(te,
|
|
3179
|
+
const S = m.toDateString(), P = _.get(S)?.maxOverlapping ?? 1;
|
|
3180
|
+
P > $n ? c.push(
|
|
3181
|
+
Math.max(te, P * Te)
|
|
3169
3182
|
) : c.push(te);
|
|
3170
3183
|
}
|
|
3171
3184
|
return c;
|
|
3172
|
-
}, [D,
|
|
3185
|
+
}, [D, _]), w = Ne + F.reduce((c, m) => c + m, 0);
|
|
3173
3186
|
return /* @__PURE__ */ o("div", { className: i("ic-week-view flex flex-col h-full", b), children: [
|
|
3174
|
-
|
|
3175
|
-
|
|
3187
|
+
U.length > 0 && /* @__PURE__ */ e(
|
|
3188
|
+
Bn,
|
|
3176
3189
|
{
|
|
3177
|
-
events:
|
|
3190
|
+
events: U,
|
|
3178
3191
|
weekDays: D,
|
|
3179
|
-
hourColumnWidth:
|
|
3192
|
+
hourColumnWidth: Ne,
|
|
3180
3193
|
minDayColumnWidth: te,
|
|
3181
|
-
dayColumnWidths:
|
|
3182
|
-
onEventClick:
|
|
3194
|
+
dayColumnWidths: F,
|
|
3195
|
+
onEventClick: R,
|
|
3183
3196
|
disablePopover: !!y && !u,
|
|
3184
3197
|
renderPopover: u,
|
|
3185
|
-
...
|
|
3186
|
-
className:
|
|
3198
|
+
...p?.multiDayBanner && {
|
|
3199
|
+
className: p.multiDayBanner
|
|
3187
3200
|
}
|
|
3188
3201
|
}
|
|
3189
3202
|
),
|
|
3190
3203
|
/* @__PURE__ */ e(
|
|
3191
3204
|
"div",
|
|
3192
3205
|
{
|
|
3193
|
-
ref:
|
|
3206
|
+
ref: E,
|
|
3194
3207
|
className: i(
|
|
3195
3208
|
"ic-week-scroll-container flex-1",
|
|
3196
|
-
|
|
3209
|
+
p?.scrollContainer
|
|
3197
3210
|
),
|
|
3198
|
-
children: /* @__PURE__ */ o("div", { style: { minWidth: Math.max(
|
|
3211
|
+
children: /* @__PURE__ */ o("div", { style: { minWidth: Math.max(A, w) }, children: [
|
|
3199
3212
|
/* @__PURE__ */ e("div", { className: "ic-week-header sticky top-0 z-20 border-b bg-background", children: /* @__PURE__ */ o("div", { className: "flex", children: [
|
|
3200
3213
|
/* @__PURE__ */ e(
|
|
3201
3214
|
"div",
|
|
3202
3215
|
{
|
|
3203
3216
|
className: "flex-shrink-0 flex items-end justify-center pb-2 text-[10px] text-muted-foreground/70",
|
|
3204
|
-
style: { width:
|
|
3217
|
+
style: { width: Ne, height: at },
|
|
3205
3218
|
children: /* @__PURE__ */ o("span", { className: "hidden sm:inline", children: [
|
|
3206
3219
|
"GMT",
|
|
3207
3220
|
(() => {
|
|
@@ -3212,18 +3225,18 @@ function Zn({
|
|
|
3212
3225
|
}
|
|
3213
3226
|
),
|
|
3214
3227
|
D.map((c, m) => {
|
|
3215
|
-
const S = ce(c), C =
|
|
3228
|
+
const S = ce(c), C = F[m] ?? te, P = C > te;
|
|
3216
3229
|
return /* @__PURE__ */ o(
|
|
3217
3230
|
"div",
|
|
3218
3231
|
{
|
|
3219
3232
|
className: i(
|
|
3220
3233
|
"flex-1 flex flex-col items-center justify-center border-r last:border-r-0 py-2",
|
|
3221
|
-
|
|
3222
|
-
S &&
|
|
3234
|
+
p?.columnHeader,
|
|
3235
|
+
S && p?.columnHeaderToday
|
|
3223
3236
|
),
|
|
3224
3237
|
style: {
|
|
3225
|
-
height:
|
|
3226
|
-
minWidth:
|
|
3238
|
+
height: at,
|
|
3239
|
+
minWidth: P ? C : te
|
|
3227
3240
|
},
|
|
3228
3241
|
children: [
|
|
3229
3242
|
/* @__PURE__ */ e(
|
|
@@ -3261,10 +3274,10 @@ function Zn({
|
|
|
3261
3274
|
{
|
|
3262
3275
|
className: i(
|
|
3263
3276
|
"ic-hour-column sticky left-0 z-10 bg-zinc-50 border-r",
|
|
3264
|
-
|
|
3277
|
+
p?.timeGutter
|
|
3265
3278
|
),
|
|
3266
|
-
style: { width:
|
|
3267
|
-
children:
|
|
3279
|
+
style: { width: Ne },
|
|
3280
|
+
children: T.map((c, m) => /* @__PURE__ */ e(
|
|
3268
3281
|
"div",
|
|
3269
3282
|
{
|
|
3270
3283
|
className: "relative",
|
|
@@ -3274,9 +3287,9 @@ function Zn({
|
|
|
3274
3287
|
{
|
|
3275
3288
|
className: i(
|
|
3276
3289
|
"text-[10px] sm:text-xs text-muted-foreground",
|
|
3277
|
-
|
|
3290
|
+
p?.timeGutterLabel
|
|
3278
3291
|
),
|
|
3279
|
-
children:
|
|
3292
|
+
children: Ae(c)
|
|
3280
3293
|
}
|
|
3281
3294
|
) })
|
|
3282
3295
|
},
|
|
@@ -3285,19 +3298,19 @@ function Zn({
|
|
|
3285
3298
|
}
|
|
3286
3299
|
),
|
|
3287
3300
|
/* @__PURE__ */ e("div", { className: "ic-week-grid relative flex-1", children: /* @__PURE__ */ e("div", { className: "flex divide-x", children: D.map((c, m) => {
|
|
3288
|
-
const S = c.toDateString(), C =
|
|
3301
|
+
const S = c.toDateString(), C = _.get(S), P = F[m] ?? te, O = P > te;
|
|
3289
3302
|
return /* @__PURE__ */ o(
|
|
3290
3303
|
"div",
|
|
3291
3304
|
{
|
|
3292
3305
|
className: "ic-day-column relative flex-1",
|
|
3293
3306
|
style: {
|
|
3294
|
-
minWidth:
|
|
3307
|
+
minWidth: O ? P : te
|
|
3295
3308
|
},
|
|
3296
3309
|
children: [
|
|
3297
|
-
|
|
3298
|
-
const
|
|
3310
|
+
T.map(($, G) => {
|
|
3311
|
+
const Z = !dt(
|
|
3299
3312
|
c,
|
|
3300
|
-
|
|
3313
|
+
$,
|
|
3301
3314
|
d
|
|
3302
3315
|
);
|
|
3303
3316
|
return /* @__PURE__ */ o(
|
|
@@ -3305,15 +3318,15 @@ function Zn({
|
|
|
3305
3318
|
{
|
|
3306
3319
|
className: i(
|
|
3307
3320
|
"relative",
|
|
3308
|
-
|
|
3309
|
-
ce(c) && !
|
|
3310
|
-
|
|
3311
|
-
|
|
3321
|
+
Z && "bg-calendar-disabled-hour",
|
|
3322
|
+
ce(c) && !Z && "bg-primary/5",
|
|
3323
|
+
p?.timeSlot,
|
|
3324
|
+
Z ? p?.timeSlotNonWorking : p?.timeSlotWorking
|
|
3312
3325
|
),
|
|
3313
3326
|
style: { height: he },
|
|
3314
3327
|
children: [
|
|
3315
|
-
|
|
3316
|
-
|
|
3328
|
+
G !== 0 && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-x-0 top-0 border-b border-border/50" }),
|
|
3329
|
+
L.slice(1).map((ee) => /* @__PURE__ */ e(
|
|
3317
3330
|
"div",
|
|
3318
3331
|
{
|
|
3319
3332
|
className: "pointer-events-none absolute inset-x-0 border-b border-dashed border-border/30",
|
|
@@ -3321,63 +3334,63 @@ function Zn({
|
|
|
3321
3334
|
},
|
|
3322
3335
|
ee
|
|
3323
3336
|
)),
|
|
3324
|
-
|
|
3325
|
-
const
|
|
3337
|
+
L.map((ee, xe) => {
|
|
3338
|
+
const ye = {
|
|
3326
3339
|
date: c,
|
|
3327
|
-
hour:
|
|
3340
|
+
hour: $,
|
|
3328
3341
|
minute: ee
|
|
3329
3342
|
};
|
|
3330
3343
|
return /* @__PURE__ */ e(
|
|
3331
|
-
|
|
3344
|
+
Nt,
|
|
3332
3345
|
{
|
|
3333
|
-
slot:
|
|
3334
|
-
onSelectionStart:
|
|
3346
|
+
slot: ye,
|
|
3347
|
+
onSelectionStart: H,
|
|
3335
3348
|
onSelectionMove: z,
|
|
3336
|
-
onSelectionEnd:
|
|
3337
|
-
isSelected:
|
|
3338
|
-
isSelecting:
|
|
3339
|
-
disabled:
|
|
3349
|
+
onSelectionEnd: f,
|
|
3350
|
+
isSelected: I?.isSlotSelected(ye) ?? !1,
|
|
3351
|
+
isSelecting: I?.isSelecting ?? !1,
|
|
3352
|
+
disabled: Z,
|
|
3340
3353
|
className: "absolute inset-x-0",
|
|
3341
3354
|
style: {
|
|
3342
|
-
top: `${
|
|
3355
|
+
top: `${xe * g}%`,
|
|
3343
3356
|
height: `${g}%`
|
|
3344
3357
|
},
|
|
3345
|
-
ariaLabel: `Add event on ${c.toLocaleDateString()} at ${
|
|
3358
|
+
ariaLabel: `Add event on ${c.toLocaleDateString()} at ${Ae($)}:${String(ee).padStart(2, "0")}`
|
|
3346
3359
|
},
|
|
3347
3360
|
ee
|
|
3348
3361
|
);
|
|
3349
3362
|
})
|
|
3350
3363
|
]
|
|
3351
3364
|
},
|
|
3352
|
-
|
|
3365
|
+
$
|
|
3353
3366
|
);
|
|
3354
3367
|
}),
|
|
3355
|
-
C?.singleDay.map((
|
|
3356
|
-
const
|
|
3357
|
-
if (!
|
|
3358
|
-
const oe = `calc(${
|
|
3359
|
-
return
|
|
3368
|
+
C?.singleDay.map(($) => {
|
|
3369
|
+
const G = C.positions.get($.id);
|
|
3370
|
+
if (!G) return null;
|
|
3371
|
+
const oe = `calc(${G.width}% - 2px)`, Z = `max(${Te}px, ${oe})`;
|
|
3372
|
+
return v ? /* @__PURE__ */ e(
|
|
3360
3373
|
"div",
|
|
3361
3374
|
{
|
|
3362
3375
|
className: "absolute pointer-events-auto p-0.5",
|
|
3363
3376
|
style: {
|
|
3364
|
-
top: `${
|
|
3365
|
-
left: `${
|
|
3366
|
-
width:
|
|
3367
|
-
minWidth: `${
|
|
3377
|
+
top: `${G.top}px`,
|
|
3378
|
+
left: `${G.left}%`,
|
|
3379
|
+
width: Z,
|
|
3380
|
+
minWidth: `${Te}px`
|
|
3368
3381
|
},
|
|
3369
|
-
children:
|
|
3382
|
+
children: v({ event: $, position: G })
|
|
3370
3383
|
},
|
|
3371
|
-
|
|
3384
|
+
$.id
|
|
3372
3385
|
) : /* @__PURE__ */ e(
|
|
3373
|
-
|
|
3386
|
+
bt,
|
|
3374
3387
|
{
|
|
3375
|
-
event:
|
|
3388
|
+
event: $,
|
|
3376
3389
|
position: {
|
|
3377
|
-
top:
|
|
3378
|
-
left:
|
|
3379
|
-
width:
|
|
3380
|
-
minWidth:
|
|
3390
|
+
top: G.top,
|
|
3391
|
+
left: G.left,
|
|
3392
|
+
width: G.width,
|
|
3393
|
+
minWidth: Te
|
|
3381
3394
|
},
|
|
3382
3395
|
hourHeight: he,
|
|
3383
3396
|
badgeVariant: s,
|
|
@@ -3386,20 +3399,20 @@ function Zn({
|
|
|
3386
3399
|
renderPopover: u,
|
|
3387
3400
|
className: i(
|
|
3388
3401
|
"pointer-events-auto",
|
|
3389
|
-
|
|
3402
|
+
p?.eventCard
|
|
3390
3403
|
)
|
|
3391
3404
|
},
|
|
3392
|
-
|
|
3405
|
+
$.id
|
|
3393
3406
|
);
|
|
3394
3407
|
}),
|
|
3395
|
-
m ===
|
|
3408
|
+
m === B && M >= 0 && /* @__PURE__ */ o(
|
|
3396
3409
|
"div",
|
|
3397
3410
|
{
|
|
3398
3411
|
className: i(
|
|
3399
3412
|
"absolute left-0 right-0 z-20 flex items-center pointer-events-none",
|
|
3400
|
-
|
|
3413
|
+
p?.currentTimeIndicator
|
|
3401
3414
|
),
|
|
3402
|
-
style: { top:
|
|
3415
|
+
style: { top: M },
|
|
3403
3416
|
children: [
|
|
3404
3417
|
/* @__PURE__ */ e("div", { className: "h-2 w-2 -ml-1 rounded-full bg-red-500" }),
|
|
3405
3418
|
/* @__PURE__ */ e("div", { className: "flex-1 h-0.5 bg-red-500" })
|
|
@@ -3418,49 +3431,49 @@ function Zn({
|
|
|
3418
3431
|
] });
|
|
3419
3432
|
}
|
|
3420
3433
|
export {
|
|
3421
|
-
|
|
3434
|
+
Yn as A,
|
|
3422
3435
|
pe as B,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3436
|
+
Xn as C,
|
|
3437
|
+
fn as D,
|
|
3438
|
+
bt as E,
|
|
3426
3439
|
ie as F,
|
|
3427
|
-
|
|
3440
|
+
nn as G,
|
|
3428
3441
|
de as H,
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3442
|
+
Ze as I,
|
|
3443
|
+
Qe as J,
|
|
3444
|
+
He as K,
|
|
3445
|
+
Oe as L,
|
|
3446
|
+
Zn as M,
|
|
3447
|
+
un as N,
|
|
3435
3448
|
ue as P,
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3449
|
+
Kt as S,
|
|
3450
|
+
Nt as T,
|
|
3451
|
+
Qn as W,
|
|
3452
|
+
Sn as a,
|
|
3453
|
+
En as b,
|
|
3454
|
+
Jn as c,
|
|
3455
|
+
jt as d,
|
|
3456
|
+
Vn as e,
|
|
3457
|
+
pt as f,
|
|
3458
|
+
qt as g,
|
|
3459
|
+
Gt as h,
|
|
3460
|
+
Ut as i,
|
|
3461
|
+
Ft as j,
|
|
3462
|
+
Ee as k,
|
|
3463
|
+
zn as l,
|
|
3464
|
+
Kn as m,
|
|
3465
|
+
Gn as n,
|
|
3453
3466
|
le as o,
|
|
3454
3467
|
me as p,
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3468
|
+
Un as q,
|
|
3469
|
+
gt as r,
|
|
3470
|
+
Qt as s,
|
|
3471
|
+
Jt as t,
|
|
3472
|
+
Zt as u,
|
|
3473
|
+
Xt as v,
|
|
3474
|
+
xn as w,
|
|
3462
3475
|
ae as x,
|
|
3463
3476
|
re as y,
|
|
3464
|
-
|
|
3477
|
+
qn as z
|
|
3465
3478
|
};
|
|
3466
|
-
//# sourceMappingURL=week-view-
|
|
3479
|
+
//# sourceMappingURL=week-view-C1FxF_nk.js.map
|