@burdenoff/microfe-calendar 2026.1124.3 → 2026.1124.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.d.ts +342 -69
- package/dist/generated/wspace-operations.js +73 -31
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +405 -6
- package/dist/translations/en.d.ts +22 -4
- package/dist/v2/CalendarPageV2.js +45 -41
- package/dist/v2/CalendarPageV2.js.map +1 -1
- package/dist/v2/CalendarRoutesV2.js +64 -64
- package/dist/v2/CalendarRoutesV2.js.map +1 -1
- package/dist/v2/data/errors.d.ts +5 -0
- package/dist/v2/data/errors.js +6 -2
- package/dist/v2/data/errors.js.map +1 -1
- package/dist/v2/data/normalize.d.ts +31 -3
- package/dist/v2/data/normalize.js +57 -13
- package/dist/v2/data/normalize.js.map +1 -1
- package/dist/v2/data/seriesDateLookup.d.ts +9 -0
- package/dist/v2/data/seriesDateLookup.js +12 -0
- package/dist/v2/data/seriesDateLookup.js.map +1 -0
- package/dist/v2/data/useEventActions.d.ts +9 -3
- package/dist/v2/data/useEventActions.js +239 -186
- package/dist/v2/data/useEventActions.js.map +1 -1
- package/dist/v2/data/useEventForPeek.js +63 -21
- package/dist/v2/data/useEventForPeek.js.map +1 -1
- package/dist/v2/data/useEventsInRangeV2.d.ts +40 -2
- package/dist/v2/data/useEventsInRangeV2.js +76 -47
- package/dist/v2/data/useEventsInRangeV2.js.map +1 -1
- package/dist/v2/day/DayPanel.js +1 -1
- package/dist/v2/day/DayPanel.js.map +1 -1
- package/dist/v2/event/EventDialog.d.ts +13 -3
- package/dist/v2/event/EventDialog.js +189 -166
- package/dist/v2/event/EventDialog.js.map +1 -1
- package/dist/v2/event/EventDialogs.js +57 -50
- package/dist/v2/event/EventDialogs.js.map +1 -1
- package/dist/v2/event/EventMoreTab.js +8 -7
- package/dist/v2/event/EventMoreTab.js.map +1 -1
- package/dist/v2/event/EventPlaceTab.js +2 -2
- package/dist/v2/event/EventPlaceTab.js.map +1 -1
- package/dist/v2/event/FindTimeDialog.js +1 -1
- package/dist/v2/event/FindTimeDialog.js.map +1 -1
- package/dist/v2/event/RepeatField.js +10 -7
- package/dist/v2/event/RepeatField.js.map +1 -1
- package/dist/v2/event/dialogLogic.d.ts +10 -0
- package/dist/v2/event/dialogLogic.js +25 -22
- package/dist/v2/event/dialogLogic.js.map +1 -1
- package/dist/v2/event/dialogModel.d.ts +3 -0
- package/dist/v2/event/dialogModel.js.map +1 -1
- package/dist/v2/event/eventForm.d.ts +26 -0
- package/dist/v2/event/eventForm.js +145 -92
- package/dist/v2/event/eventForm.js.map +1 -1
- package/dist/v2/event/findTimeSource.js +44 -44
- package/dist/v2/event/findTimeSource.js.map +1 -1
- package/dist/v2/event/rrule.js.map +1 -1
- package/dist/v2/event/savePlan.d.ts +125 -15
- package/dist/v2/event/savePlan.js +162 -68
- package/dist/v2/event/savePlan.js.map +1 -1
- package/dist/v2/event/useEventData.d.ts +7 -2
- package/dist/v2/event/useEventData.js +107 -80
- package/dist/v2/event/useEventData.js.map +1 -1
- package/dist/v2/event/useEventDialogModel.d.ts +16 -3
- package/dist/v2/event/useEventDialogModel.js +82 -67
- package/dist/v2/event/useEventDialogModel.js.map +1 -1
- package/dist/v2/event/useEventSave.d.ts +20 -4
- package/dist/v2/event/useEventSave.js +181 -90
- package/dist/v2/event/useEventSave.js.map +1 -1
- package/dist/v2/events/eventLook.js +16 -16
- package/dist/v2/events/eventLook.js.map +1 -1
- package/dist/v2/events/eventModel.d.ts +17 -4
- package/dist/v2/events/eventModel.js +46 -34
- package/dist/v2/events/eventModel.js.map +1 -1
- package/dist/v2/events/localChanges.d.ts +4 -1
- package/dist/v2/events/localChanges.js +4 -2
- package/dist/v2/events/localChanges.js.map +1 -1
- package/dist/v2/page/CalendarPageContext.d.ts +2 -2
- package/dist/v2/page/CalendarPageContext.js.map +1 -1
- package/dist/v2/page/useCalendarPageModel.js +141 -139
- package/dist/v2/page/useCalendarPageModel.js.map +1 -1
- package/dist/v2/page/viewState.d.ts +9 -1
- package/dist/v2/page/viewState.js +5 -3
- package/dist/v2/page/viewState.js.map +1 -1
- package/dist/v2/peek/PeekEvent.js +210 -204
- package/dist/v2/peek/PeekEvent.js.map +1 -1
- package/dist/v2/rail/useMonthEventDates.js +1 -1
- package/dist/v2/rail/useMonthEventDates.js.map +1 -1
- package/dist/v2/states/CalendarStates.d.ts +15 -0
- package/dist/v2/states/CalendarStates.js +42 -11
- package/dist/v2/states/CalendarStates.js.map +1 -1
- package/dist/v2/types.d.ts +30 -2
- package/package.json +1 -1
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
import { eventRoom as e, safeWebUrl as t } from "../events/eventModel.js";
|
|
2
2
|
import { dayDifference as n, eventDays as r, instantToZoned as i, startOfDayInZone as a, zonedTimeToInstant as o } from "../time/calendarTime.js";
|
|
3
|
-
import { buildRRule as s, followStart as c, parseRRule as l, presetOf as u, presetRule as d, presetsFor as f, ruleProblem as
|
|
4
|
-
import { addDays as
|
|
3
|
+
import { buildRRule as s, followStart as c, parseRRule as l, presetOf as u, presetRule as d, presetsFor as f, ruleProblem as ee } from "./rrule.js";
|
|
4
|
+
import { addDays as p } from "@burdenoff/fe-libs/ui";
|
|
5
5
|
// src/v2/event/eventForm.ts
|
|
6
|
-
var
|
|
6
|
+
var m = 6e4, h = [
|
|
7
7
|
30,
|
|
8
8
|
45,
|
|
9
9
|
60,
|
|
10
10
|
90
|
|
11
11
|
];
|
|
12
|
-
function
|
|
12
|
+
function g(e) {
|
|
13
13
|
return i(e.start, e.timeZone);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _(e) {
|
|
16
16
|
return i(e.end, e.timeZone);
|
|
17
17
|
}
|
|
18
|
+
function v(e) {
|
|
19
|
+
return e.allDay ? e.firstDay : g(e).date;
|
|
20
|
+
}
|
|
18
21
|
function y(e) {
|
|
19
|
-
return e.allDay ? e.firstDay :
|
|
22
|
+
return e.allDay ? /* @__PURE__ */ new Date(`${e.firstDay}T00:00:00.000Z`) : e.start;
|
|
20
23
|
}
|
|
21
24
|
function b(e) {
|
|
22
|
-
return e.allDay ? /* @__PURE__ */ new Date(`${e.
|
|
25
|
+
return e.allDay ? /* @__PURE__ */ new Date(`${p(e.lastDay, 1)}T00:00:00.000Z`) : e.end;
|
|
23
26
|
}
|
|
24
27
|
function x(e) {
|
|
25
|
-
return
|
|
28
|
+
return Math.round((e.end.getTime() - e.start.getTime()) / m);
|
|
26
29
|
}
|
|
27
30
|
function S(e) {
|
|
28
|
-
return Math.round((e.end.getTime() - e.start.getTime()) / h);
|
|
29
|
-
}
|
|
30
|
-
function C(e) {
|
|
31
31
|
if (e.allDay) return null;
|
|
32
|
-
let t =
|
|
33
|
-
return
|
|
32
|
+
let t = x(e);
|
|
33
|
+
return h.includes(t) ? t : null;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function C(e, t, n) {
|
|
36
36
|
return {
|
|
37
37
|
...e,
|
|
38
38
|
start: t,
|
|
39
|
-
end: new Date(t.getTime() + Math.max(1, n) *
|
|
39
|
+
end: new Date(t.getTime() + Math.max(1, n) * m)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function w(e, t) {
|
|
43
43
|
return {
|
|
44
44
|
...t,
|
|
45
|
-
repeat:
|
|
45
|
+
repeat: F(e.repeat, P(e), P(t))
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function T(e, t) {
|
|
49
49
|
if (e.allDay) {
|
|
50
50
|
if (t === e.firstDay) return e;
|
|
51
51
|
let r = Math.max(0, n(e.firstDay, e.lastDay));
|
|
52
|
-
return
|
|
52
|
+
return w(e, {
|
|
53
53
|
...e,
|
|
54
54
|
firstDay: t,
|
|
55
|
-
lastDay:
|
|
55
|
+
lastDay: p(t, r)
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
let r =
|
|
59
|
-
return t === r.date ? e :
|
|
58
|
+
let r = g(e);
|
|
59
|
+
return t === r.date ? e : w(e, C(e, o(t, r.minutes, e.timeZone), x(e)));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return e.allDay ? e :
|
|
61
|
+
function E(e, t) {
|
|
62
|
+
return e.allDay ? e : w(e, C(e, o(g(e).date, t, e.timeZone), x(e)));
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function D(e, t, n) {
|
|
65
65
|
if (e.allDay) return e;
|
|
66
|
-
let r =
|
|
66
|
+
let r = g(e).date;
|
|
67
67
|
return {
|
|
68
68
|
...e,
|
|
69
|
-
end: o(n ?
|
|
69
|
+
end: o(n ? p(r, 1) : r, t, e.timeZone)
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function O(e, t) {
|
|
73
73
|
return e.allDay ? e : {
|
|
74
74
|
...e,
|
|
75
|
-
end: o(
|
|
75
|
+
end: o(_(e).date, t, e.timeZone)
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function k(e, t) {
|
|
79
79
|
return e.allDay ? {
|
|
80
80
|
...e,
|
|
81
81
|
lastDay: t
|
|
82
82
|
} : {
|
|
83
83
|
...e,
|
|
84
|
-
end: o(t,
|
|
84
|
+
end: o(t, _(e).minutes, e.timeZone)
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return e.allDay ? e :
|
|
87
|
+
function te(e, t) {
|
|
88
|
+
return e.allDay ? e : C(e, e.start, t);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function A(e, t) {
|
|
91
91
|
if (e.allDay === t) return e;
|
|
92
92
|
if (t) {
|
|
93
|
-
let t =
|
|
93
|
+
let t = g(e).date, n = new Date(Math.max(e.start.getTime(), e.end.getTime() - 1)), r = i(n, e.timeZone).date;
|
|
94
94
|
return {
|
|
95
95
|
...e,
|
|
96
96
|
allDay: !0,
|
|
@@ -98,15 +98,15 @@ function M(e, t) {
|
|
|
98
98
|
lastDay: r < t ? t : r
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
let n = o(e.firstDay,
|
|
102
|
-
return
|
|
101
|
+
let n = o(e.firstDay, g(e).minutes, e.timeZone);
|
|
102
|
+
return w(e, C({
|
|
103
103
|
...e,
|
|
104
104
|
allDay: !1
|
|
105
|
-
}, n,
|
|
105
|
+
}, n, x(e)));
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function j(e, t) {
|
|
108
108
|
if (t === e.timeZone) return e;
|
|
109
|
-
let n =
|
|
109
|
+
let n = g(e), r = _(e);
|
|
110
110
|
return {
|
|
111
111
|
...e,
|
|
112
112
|
timeZone: t,
|
|
@@ -114,27 +114,27 @@ function N(e, t) {
|
|
|
114
114
|
end: o(r.date, r.minutes, t)
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function M(e, t) {
|
|
118
118
|
return {
|
|
119
|
-
start: i(
|
|
120
|
-
end: i(
|
|
119
|
+
start: i(y(e), t),
|
|
120
|
+
end: i(b(e), t)
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function N(e, t) {
|
|
124
124
|
let n = o(t.date, t.start, t.timeZone);
|
|
125
|
-
return
|
|
125
|
+
return w(e, C({
|
|
126
126
|
...e,
|
|
127
127
|
allDay: !1
|
|
128
128
|
}, n, t.length));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function P(e) {
|
|
131
131
|
if (e.allDay) return {
|
|
132
132
|
start: e.firstDay,
|
|
133
133
|
startMinutes: 0,
|
|
134
134
|
timeZone: e.timeZone,
|
|
135
135
|
allDay: !0
|
|
136
136
|
};
|
|
137
|
-
let t =
|
|
137
|
+
let t = g(e);
|
|
138
138
|
return {
|
|
139
139
|
start: t.date,
|
|
140
140
|
startMinutes: t.minutes,
|
|
@@ -142,7 +142,7 @@ function I(e) {
|
|
|
142
142
|
allDay: !1
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function F(e, t, n) {
|
|
146
146
|
if (e.kind === "custom") return {
|
|
147
147
|
kind: "custom",
|
|
148
148
|
rule: c(e.rule, t, n)
|
|
@@ -160,16 +160,16 @@ function L(e, t, n) {
|
|
|
160
160
|
rule: c(d(e.preset, t), t, n)
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return e.repeat.kind === "preset" ? d(e.repeat.preset,
|
|
163
|
+
function I(e) {
|
|
164
|
+
return e.repeat.kind === "preset" ? d(e.repeat.preset, P(e)) : e.repeat.kind === "custom" ? e.repeat.rule : null;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function L(e) {
|
|
167
167
|
if (e.repeat.kind === "none") return null;
|
|
168
168
|
if (e.repeat.kind === "kept") return e.repeat.text;
|
|
169
|
-
let t =
|
|
170
|
-
return t ? s(t,
|
|
169
|
+
let t = I(e);
|
|
170
|
+
return t ? s(t, P(e)) : null;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function R(e, t) {
|
|
173
173
|
let n = l(e, t);
|
|
174
174
|
if (n.kind === "none") return { kind: "none" };
|
|
175
175
|
if (n.kind === "kept") return {
|
|
@@ -185,25 +185,25 @@ function B(e, t) {
|
|
|
185
185
|
rule: n.rule
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function z(e) {
|
|
189
189
|
return /^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>.]{2,}$/.test(e.trim());
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function B(e) {
|
|
192
192
|
return e.userId ? `u:${e.userId}` : `e:${(e.email ?? "").trim().toLowerCase()}`;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function V(e) {
|
|
195
195
|
return e?.trim().toLowerCase() || null;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function H(e, t, n) {
|
|
198
198
|
let r = [...e.guests], i = new Set(r.map((e) => e.key)), a = !1;
|
|
199
199
|
for (let e of t) {
|
|
200
200
|
if (e.userId && e.userId === n) continue;
|
|
201
|
-
let t = e.email?.trim() || null, o =
|
|
201
|
+
let t = e.email?.trim() || null, o = B({
|
|
202
202
|
userId: e.userId,
|
|
203
203
|
email: t
|
|
204
204
|
});
|
|
205
205
|
if (o === "e:" || i.has(o)) continue;
|
|
206
|
-
let s =
|
|
206
|
+
let s = V(t), c = s ? r.findIndex((e) => V(e.email) === s) : -1, l = r[c];
|
|
207
207
|
if (l) {
|
|
208
208
|
if (!e.userId || l.userId || l.attendeeId !== null) continue;
|
|
209
209
|
r.splice(c, 1), i.delete(l.key);
|
|
@@ -223,13 +223,13 @@ function W(e, t, n) {
|
|
|
223
223
|
guests: r
|
|
224
224
|
} : e;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function U(e, t) {
|
|
227
227
|
return {
|
|
228
228
|
...e,
|
|
229
229
|
guests: e.guests.filter((e) => e.key !== t)
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function W(e, t, n) {
|
|
233
233
|
if (e.reminders.some((e) => e.minutesBefore === t && e.channel === n)) return e;
|
|
234
234
|
let r = `${n}:${t}`, i = [...e.reminders, {
|
|
235
235
|
key: r,
|
|
@@ -242,13 +242,13 @@ function K(e, t, n) {
|
|
|
242
242
|
reminders: i
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function G(e, t) {
|
|
246
246
|
return {
|
|
247
247
|
...e,
|
|
248
248
|
reminders: e.reminders.filter((e) => e.key !== t)
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function K(e) {
|
|
252
252
|
return e.meeting?.url ? {
|
|
253
253
|
url: e.meeting.url,
|
|
254
254
|
field: "onlineMeetingUrl"
|
|
@@ -260,9 +260,9 @@ function J(e) {
|
|
|
260
260
|
field: "onlineMeetingUrl"
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function q(e) {
|
|
264
264
|
let t = e.location?.trim() ?? "";
|
|
265
|
-
return t && !
|
|
265
|
+
return t && !Y(e) && !/^https?:\/\//i.test(t) ? {
|
|
266
266
|
text: t,
|
|
267
267
|
field: "location"
|
|
268
268
|
} : e.locationAddress?.trim() ? {
|
|
@@ -273,22 +273,22 @@ function Y(e) {
|
|
|
273
273
|
field: "location"
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function J(e, t) {
|
|
277
277
|
return e.allDay ? {
|
|
278
278
|
start: a(e.firstDay, t),
|
|
279
|
-
end: a(
|
|
279
|
+
end: a(p(e.lastDay, 1), t),
|
|
280
280
|
allDay: !0
|
|
281
281
|
} : {
|
|
282
|
-
start:
|
|
283
|
-
end:
|
|
282
|
+
start: y(e),
|
|
283
|
+
end: b(e),
|
|
284
284
|
allDay: !1
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Y(t) {
|
|
288
288
|
let n = e(t)?.name?.trim();
|
|
289
289
|
return !!n && t.location?.trim() === n;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function X(e) {
|
|
292
292
|
return e.defaultReminder === null ? [] : [{
|
|
293
293
|
key: `IN_APP:${e.defaultReminder}`,
|
|
294
294
|
minutesBefore: e.defaultReminder,
|
|
@@ -296,17 +296,17 @@ function Q(e) {
|
|
|
296
296
|
reminderId: null
|
|
297
297
|
}];
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Z(e, t, n, r) {
|
|
300
300
|
if (n === void 0 || n <= t) return null;
|
|
301
|
-
let i = o(e, t, r).getTime(), a = Math.round((o(e, n, r).getTime() - i) /
|
|
301
|
+
let i = o(e, t, r).getTime(), a = Math.round((o(e, n, r).getTime() - i) / m);
|
|
302
302
|
return a > 0 ? a : null;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
let n = e?.date ?? t.today, r = Math.max(0, Math.round(e?.start ?? 540)), i =
|
|
304
|
+
function ne(e, t) {
|
|
305
|
+
let n = e?.date ?? t.today, r = Math.max(0, Math.round(e?.start ?? 540)), i = Z(n, r, e?.end, t.timeZone) ?? t.defaultLength, a = o(n, r, t.timeZone), s = {
|
|
306
306
|
title: e?.title ?? "",
|
|
307
307
|
allDay: !1,
|
|
308
308
|
start: a,
|
|
309
|
-
end: new Date(a.getTime() + Math.max(1, i) *
|
|
309
|
+
end: new Date(a.getTime() + Math.max(1, i) * m),
|
|
310
310
|
firstDay: n,
|
|
311
311
|
lastDay: n,
|
|
312
312
|
timeZone: t.timeZone,
|
|
@@ -318,12 +318,13 @@ function ee(e, t) {
|
|
|
318
318
|
address: "",
|
|
319
319
|
calendarId: e?.calendarId ?? t.defaultCalendarId,
|
|
320
320
|
visibility: "PUBLIC",
|
|
321
|
-
|
|
321
|
+
busy: !0,
|
|
322
|
+
reminders: X(t)
|
|
322
323
|
};
|
|
323
|
-
return e?.allDay ?
|
|
324
|
+
return e?.allDay ? A(s, !0) : s;
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
-
let a = t.timeZone ?? n, s = e(t), c = s && (s.status === "APPROVED" || s.status === "PENDING") ? s : null, l = r(t, n), u = t.allDay ? o(l.start, 540, a) : t.start, d = t.allDay ? new Date(u.getTime() + 60 *
|
|
326
|
+
function Q(t, n, i = null) {
|
|
327
|
+
let a = t.timeZone ?? n, s = e(t), c = s && (s.status === "APPROVED" || s.status === "PENDING") ? s : null, l = r(t, n), u = t.allDay ? o(l.start, 540, a) : t.start, d = t.allDay ? new Date(u.getTime() + 60 * m) : t.end, f = {
|
|
327
328
|
title: t.title,
|
|
328
329
|
allDay: t.allDay,
|
|
329
330
|
start: u,
|
|
@@ -334,7 +335,7 @@ function te(t, n, i = null) {
|
|
|
334
335
|
repeat: { kind: "none" },
|
|
335
336
|
description: t.description ?? "",
|
|
336
337
|
guests: t.guests.filter((e) => !e.organizer && e.userId !== t.organizerId).map((e) => ({
|
|
337
|
-
key:
|
|
338
|
+
key: B(e),
|
|
338
339
|
userId: e.userId,
|
|
339
340
|
email: e.email,
|
|
340
341
|
name: e.name,
|
|
@@ -343,10 +344,11 @@ function te(t, n, i = null) {
|
|
|
343
344
|
response: e.response
|
|
344
345
|
})),
|
|
345
346
|
roomId: c?.resourceId ?? null,
|
|
346
|
-
videoUrl:
|
|
347
|
-
address:
|
|
347
|
+
videoUrl: K(t).url,
|
|
348
|
+
address: q(t).text,
|
|
348
349
|
calendarId: t.calendarId,
|
|
349
350
|
visibility: t.visibility,
|
|
351
|
+
busy: t.isBusy,
|
|
350
352
|
reminders: t.reminders.map((e) => ({
|
|
351
353
|
key: `r:${e.id}`,
|
|
352
354
|
minutesBefore: e.minutesBefore,
|
|
@@ -356,7 +358,7 @@ function te(t, n, i = null) {
|
|
|
356
358
|
};
|
|
357
359
|
if (t.isRecurring && t.rrule ? f = {
|
|
358
360
|
...f,
|
|
359
|
-
repeat:
|
|
361
|
+
repeat: R(t.rrule, P(f))
|
|
360
362
|
} : t.rrule && (f = {
|
|
361
363
|
...f,
|
|
362
364
|
repeat: {
|
|
@@ -364,8 +366,8 @@ function te(t, n, i = null) {
|
|
|
364
366
|
text: t.rrule
|
|
365
367
|
}
|
|
366
368
|
}), i?.date !== void 0 && i.start !== void 0) {
|
|
367
|
-
let e =
|
|
368
|
-
f =
|
|
369
|
+
let e = Z(i.date, i.start, i.end, n) ?? x(f);
|
|
370
|
+
f = N(f, {
|
|
369
371
|
date: i.date,
|
|
370
372
|
start: i.start,
|
|
371
373
|
length: e,
|
|
@@ -374,24 +376,75 @@ function te(t, n, i = null) {
|
|
|
374
376
|
}
|
|
375
377
|
return f;
|
|
376
378
|
}
|
|
377
|
-
function
|
|
379
|
+
function $(e, t) {
|
|
380
|
+
return e.allDay !== t.allDay || e.timeZone !== t.timeZone ? !1 : e.allDay ? e.firstDay === t.firstDay && e.lastDay === t.lastDay : e.start.getTime() === t.start.getTime() && e.end.getTime() === t.end.getTime();
|
|
381
|
+
}
|
|
382
|
+
function re(e) {
|
|
383
|
+
return {
|
|
384
|
+
...e,
|
|
385
|
+
guests: e.guests.map((e) => ({
|
|
386
|
+
...e,
|
|
387
|
+
attendeeId: null,
|
|
388
|
+
response: null
|
|
389
|
+
})),
|
|
390
|
+
reminders: e.reminders.map((e) => ({
|
|
391
|
+
...e,
|
|
392
|
+
key: `${e.channel}:${e.minutesBefore}`,
|
|
393
|
+
reminderId: null
|
|
394
|
+
}))
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function ie(e, t, r, i) {
|
|
398
|
+
let a = Q(r, i), o = $(e, t), s = L(e) === L(t), c = e.roomId === t.roomId ? a.roomId : e.roomId;
|
|
399
|
+
if (o && s) return {
|
|
400
|
+
...e,
|
|
401
|
+
roomId: c,
|
|
402
|
+
allDay: a.allDay,
|
|
403
|
+
start: a.start,
|
|
404
|
+
end: a.end,
|
|
405
|
+
firstDay: a.firstDay,
|
|
406
|
+
lastDay: a.lastDay,
|
|
407
|
+
timeZone: a.timeZone,
|
|
408
|
+
repeat: a.repeat
|
|
409
|
+
};
|
|
410
|
+
let l = n(v(t), v(e)), u = T(e, p(v(a), l)), d = o ? a : u;
|
|
411
|
+
return {
|
|
412
|
+
...e,
|
|
413
|
+
roomId: c,
|
|
414
|
+
allDay: d.allDay,
|
|
415
|
+
start: d.start,
|
|
416
|
+
end: d.end,
|
|
417
|
+
firstDay: d.firstDay,
|
|
418
|
+
lastDay: d.lastDay,
|
|
419
|
+
timeZone: d.timeZone,
|
|
420
|
+
repeat: u.repeat
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
function ae(e, t, r, a = null) {
|
|
424
|
+
let s = n(v(t), v(r)), c = g(r).minutes;
|
|
425
|
+
return e.filter((e) => a === null || e.getTime() >= a.getTime()).map((e) => {
|
|
426
|
+
let n = t.allDay ? e.toISOString().slice(0, 10) : i(e, t.timeZone).date, a = p(n, s);
|
|
427
|
+
return r.allDay ? /* @__PURE__ */ new Date(`${a}T00:00:00.000Z`) : o(a, c, r.timeZone);
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function oe(e) {
|
|
378
431
|
let n = {};
|
|
379
432
|
if (e.title.trim() === "" && (n.title = "missing"), (e.allDay ? e.lastDay >= e.firstDay : e.end.getTime() > e.start.getTime()) || (n.when = "endBeforeStart"), e.videoUrl.trim() !== "" && !t(e.videoUrl) && (n.video = "notWebAddress"), e.repeat.kind === "custom") {
|
|
380
|
-
let t =
|
|
433
|
+
let t = ee(e.repeat.rule, P(e));
|
|
381
434
|
t && (n.repeat = t);
|
|
382
435
|
}
|
|
383
436
|
return n;
|
|
384
437
|
}
|
|
385
|
-
function
|
|
438
|
+
function se(e) {
|
|
386
439
|
return Object.keys(e).length > 0;
|
|
387
440
|
}
|
|
388
|
-
function
|
|
441
|
+
function ce(e, t) {
|
|
389
442
|
let n = (e) => JSON.stringify({
|
|
390
443
|
...e,
|
|
391
444
|
title: e.title.trim()
|
|
392
445
|
});
|
|
393
446
|
return n(e) === n(t);
|
|
394
447
|
}
|
|
395
|
-
export {
|
|
448
|
+
export { h as LENGTH_CHIPS, q as addressOf, P as anchorOf, J as availabilitySpan, re as detachedForm, b as endInstant, _ as endWall, v as firstDayOf, Q as formFromEvent, oe as formIssues, B as guestKey, se as hasIssues, z as isEmailAddress, S as lengthChip, x as lengthMinutes, Y as locationIsRoomName, ae as movedCancellations, ne as newEventForm, I as repeatRuleOf, R as repeatStateOf, L as rruleOf, ce as sameForm, $ as sameTimes, ie as seriesFormOf, y as startInstant, g as startWall, K as videoOf, M as wallIn, A as withAllDay, O as withEndClock, k as withEndDate, D as withEndTime, H as withGuests, te as withLength, W as withReminder, N as withSlot, T as withStartDate, E as withStartTime, j as withTimeZone, U as withoutGuest, G as withoutReminder };
|
|
396
449
|
|
|
397
450
|
//# sourceMappingURL=eventForm.js.map
|