@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.
Files changed (88) hide show
  1. package/dist/generated/wspace-operations.d.ts +342 -69
  2. package/dist/generated/wspace-operations.js +73 -31
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +405 -6
  5. package/dist/translations/en.d.ts +22 -4
  6. package/dist/v2/CalendarPageV2.js +45 -41
  7. package/dist/v2/CalendarPageV2.js.map +1 -1
  8. package/dist/v2/CalendarRoutesV2.js +64 -64
  9. package/dist/v2/CalendarRoutesV2.js.map +1 -1
  10. package/dist/v2/data/errors.d.ts +5 -0
  11. package/dist/v2/data/errors.js +6 -2
  12. package/dist/v2/data/errors.js.map +1 -1
  13. package/dist/v2/data/normalize.d.ts +31 -3
  14. package/dist/v2/data/normalize.js +57 -13
  15. package/dist/v2/data/normalize.js.map +1 -1
  16. package/dist/v2/data/seriesDateLookup.d.ts +9 -0
  17. package/dist/v2/data/seriesDateLookup.js +12 -0
  18. package/dist/v2/data/seriesDateLookup.js.map +1 -0
  19. package/dist/v2/data/useEventActions.d.ts +9 -3
  20. package/dist/v2/data/useEventActions.js +239 -186
  21. package/dist/v2/data/useEventActions.js.map +1 -1
  22. package/dist/v2/data/useEventForPeek.js +63 -21
  23. package/dist/v2/data/useEventForPeek.js.map +1 -1
  24. package/dist/v2/data/useEventsInRangeV2.d.ts +40 -2
  25. package/dist/v2/data/useEventsInRangeV2.js +76 -47
  26. package/dist/v2/data/useEventsInRangeV2.js.map +1 -1
  27. package/dist/v2/day/DayPanel.js +1 -1
  28. package/dist/v2/day/DayPanel.js.map +1 -1
  29. package/dist/v2/event/EventDialog.d.ts +13 -3
  30. package/dist/v2/event/EventDialog.js +189 -166
  31. package/dist/v2/event/EventDialog.js.map +1 -1
  32. package/dist/v2/event/EventDialogs.js +57 -50
  33. package/dist/v2/event/EventDialogs.js.map +1 -1
  34. package/dist/v2/event/EventMoreTab.js +8 -7
  35. package/dist/v2/event/EventMoreTab.js.map +1 -1
  36. package/dist/v2/event/EventPlaceTab.js +2 -2
  37. package/dist/v2/event/EventPlaceTab.js.map +1 -1
  38. package/dist/v2/event/FindTimeDialog.js +1 -1
  39. package/dist/v2/event/FindTimeDialog.js.map +1 -1
  40. package/dist/v2/event/RepeatField.js +10 -7
  41. package/dist/v2/event/RepeatField.js.map +1 -1
  42. package/dist/v2/event/dialogLogic.d.ts +10 -0
  43. package/dist/v2/event/dialogLogic.js +25 -22
  44. package/dist/v2/event/dialogLogic.js.map +1 -1
  45. package/dist/v2/event/dialogModel.d.ts +3 -0
  46. package/dist/v2/event/dialogModel.js.map +1 -1
  47. package/dist/v2/event/eventForm.d.ts +26 -0
  48. package/dist/v2/event/eventForm.js +145 -92
  49. package/dist/v2/event/eventForm.js.map +1 -1
  50. package/dist/v2/event/findTimeSource.js +44 -44
  51. package/dist/v2/event/findTimeSource.js.map +1 -1
  52. package/dist/v2/event/rrule.js.map +1 -1
  53. package/dist/v2/event/savePlan.d.ts +125 -15
  54. package/dist/v2/event/savePlan.js +162 -68
  55. package/dist/v2/event/savePlan.js.map +1 -1
  56. package/dist/v2/event/useEventData.d.ts +7 -2
  57. package/dist/v2/event/useEventData.js +107 -80
  58. package/dist/v2/event/useEventData.js.map +1 -1
  59. package/dist/v2/event/useEventDialogModel.d.ts +16 -3
  60. package/dist/v2/event/useEventDialogModel.js +82 -67
  61. package/dist/v2/event/useEventDialogModel.js.map +1 -1
  62. package/dist/v2/event/useEventSave.d.ts +20 -4
  63. package/dist/v2/event/useEventSave.js +181 -90
  64. package/dist/v2/event/useEventSave.js.map +1 -1
  65. package/dist/v2/events/eventLook.js +16 -16
  66. package/dist/v2/events/eventLook.js.map +1 -1
  67. package/dist/v2/events/eventModel.d.ts +17 -4
  68. package/dist/v2/events/eventModel.js +46 -34
  69. package/dist/v2/events/eventModel.js.map +1 -1
  70. package/dist/v2/events/localChanges.d.ts +4 -1
  71. package/dist/v2/events/localChanges.js +4 -2
  72. package/dist/v2/events/localChanges.js.map +1 -1
  73. package/dist/v2/page/CalendarPageContext.d.ts +2 -2
  74. package/dist/v2/page/CalendarPageContext.js.map +1 -1
  75. package/dist/v2/page/useCalendarPageModel.js +141 -139
  76. package/dist/v2/page/useCalendarPageModel.js.map +1 -1
  77. package/dist/v2/page/viewState.d.ts +9 -1
  78. package/dist/v2/page/viewState.js +5 -3
  79. package/dist/v2/page/viewState.js.map +1 -1
  80. package/dist/v2/peek/PeekEvent.js +210 -204
  81. package/dist/v2/peek/PeekEvent.js.map +1 -1
  82. package/dist/v2/rail/useMonthEventDates.js +1 -1
  83. package/dist/v2/rail/useMonthEventDates.js.map +1 -1
  84. package/dist/v2/states/CalendarStates.d.ts +15 -0
  85. package/dist/v2/states/CalendarStates.js +42 -11
  86. package/dist/v2/states/CalendarStates.js.map +1 -1
  87. package/dist/v2/types.d.ts +30 -2
  88. 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 p } from "./rrule.js";
4
- import { addDays as m } from "@burdenoff/fe-libs/ui";
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 h = 6e4, g = [
6
+ var m = 6e4, h = [
7
7
  30,
8
8
  45,
9
9
  60,
10
10
  90
11
11
  ];
12
- function _(e) {
12
+ function g(e) {
13
13
  return i(e.start, e.timeZone);
14
14
  }
15
- function v(e) {
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 : _(e).date;
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.firstDay}T00:00:00.000Z`) : e.start;
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 e.allDay ? /* @__PURE__ */ new Date(`${m(e.lastDay, 1)}T00:00:00.000Z`) : e.end;
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 = S(e);
33
- return g.includes(t) ? t : null;
32
+ let t = x(e);
33
+ return h.includes(t) ? t : null;
34
34
  }
35
- function w(e, t, n) {
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) * h)
39
+ end: new Date(t.getTime() + Math.max(1, n) * m)
40
40
  };
41
41
  }
42
- function T(e, t) {
42
+ function w(e, t) {
43
43
  return {
44
44
  ...t,
45
- repeat: L(e.repeat, I(e), I(t))
45
+ repeat: F(e.repeat, P(e), P(t))
46
46
  };
47
47
  }
48
- function E(e, t) {
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 T(e, {
52
+ return w(e, {
53
53
  ...e,
54
54
  firstDay: t,
55
- lastDay: m(t, r)
55
+ lastDay: p(t, r)
56
56
  });
57
57
  }
58
- let r = _(e);
59
- return t === r.date ? e : T(e, w(e, o(t, r.minutes, e.timeZone), S(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 D(e, t) {
62
- return e.allDay ? e : T(e, w(e, o(_(e).date, t, e.timeZone), S(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 O(e, t, n) {
64
+ function D(e, t, n) {
65
65
  if (e.allDay) return e;
66
- let r = _(e).date;
66
+ let r = g(e).date;
67
67
  return {
68
68
  ...e,
69
- end: o(n ? m(r, 1) : r, t, e.timeZone)
69
+ end: o(n ? p(r, 1) : r, t, e.timeZone)
70
70
  };
71
71
  }
72
- function k(e, t) {
72
+ function O(e, t) {
73
73
  return e.allDay ? e : {
74
74
  ...e,
75
- end: o(v(e).date, t, e.timeZone)
75
+ end: o(_(e).date, t, e.timeZone)
76
76
  };
77
77
  }
78
- function A(e, t) {
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, v(e).minutes, e.timeZone)
84
+ end: o(t, _(e).minutes, e.timeZone)
85
85
  };
86
86
  }
87
- function j(e, t) {
88
- return e.allDay ? e : w(e, e.start, t);
87
+ function te(e, t) {
88
+ return e.allDay ? e : C(e, e.start, t);
89
89
  }
90
- function M(e, t) {
90
+ function A(e, t) {
91
91
  if (e.allDay === t) return e;
92
92
  if (t) {
93
- let t = _(e).date, n = new Date(Math.max(e.start.getTime(), e.end.getTime() - 1)), r = i(n, e.timeZone).date;
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, _(e).minutes, e.timeZone);
102
- return T(e, w({
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, S(e)));
105
+ }, n, x(e)));
106
106
  }
107
- function N(e, t) {
107
+ function j(e, t) {
108
108
  if (t === e.timeZone) return e;
109
- let n = _(e), r = v(e);
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 P(e, t) {
117
+ function M(e, t) {
118
118
  return {
119
- start: i(b(e), t),
120
- end: i(x(e), t)
119
+ start: i(y(e), t),
120
+ end: i(b(e), t)
121
121
  };
122
122
  }
123
- function F(e, t) {
123
+ function N(e, t) {
124
124
  let n = o(t.date, t.start, t.timeZone);
125
- return T(e, w({
125
+ return w(e, C({
126
126
  ...e,
127
127
  allDay: !1
128
128
  }, n, t.length));
129
129
  }
130
- function I(e) {
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 = _(e);
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 L(e, t, n) {
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 R(e) {
164
- return e.repeat.kind === "preset" ? d(e.repeat.preset, I(e)) : e.repeat.kind === "custom" ? e.repeat.rule : null;
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 z(e) {
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 = R(e);
170
- return t ? s(t, I(e)) : null;
169
+ let t = I(e);
170
+ return t ? s(t, P(e)) : null;
171
171
  }
172
- function B(e, t) {
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 V(e) {
188
+ function z(e) {
189
189
  return /^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>.]{2,}$/.test(e.trim());
190
190
  }
191
- function H(e) {
191
+ function B(e) {
192
192
  return e.userId ? `u:${e.userId}` : `e:${(e.email ?? "").trim().toLowerCase()}`;
193
193
  }
194
- function U(e) {
194
+ function V(e) {
195
195
  return e?.trim().toLowerCase() || null;
196
196
  }
197
- function W(e, t, n) {
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 = H({
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 = U(t), c = s ? r.findIndex((e) => U(e.email) === s) : -1, l = r[c];
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 G(e, t) {
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 K(e, t, n) {
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 q(e, t) {
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 J(e) {
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 Y(e) {
263
+ function q(e) {
264
264
  let t = e.location?.trim() ?? "";
265
- return t && !Z(e) && !/^https?:\/\//i.test(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 X(e, t) {
276
+ function J(e, t) {
277
277
  return e.allDay ? {
278
278
  start: a(e.firstDay, t),
279
- end: a(m(e.lastDay, 1), t),
279
+ end: a(p(e.lastDay, 1), t),
280
280
  allDay: !0
281
281
  } : {
282
- start: b(e),
283
- end: x(e),
282
+ start: y(e),
283
+ end: b(e),
284
284
  allDay: !1
285
285
  };
286
286
  }
287
- function Z(t) {
287
+ function Y(t) {
288
288
  let n = e(t)?.name?.trim();
289
289
  return !!n && t.location?.trim() === n;
290
290
  }
291
- function Q(e) {
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 $(e, t, n, r) {
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) / h);
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 ee(e, t) {
305
- let n = e?.date ?? t.today, r = Math.max(0, Math.round(e?.start ?? 540)), i = $(n, r, e?.end, t.timeZone) ?? t.defaultLength, a = o(n, r, t.timeZone), s = {
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) * h),
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
- reminders: Q(t)
321
+ busy: !0,
322
+ reminders: X(t)
322
323
  };
323
- return e?.allDay ? M(s, !0) : s;
324
+ return e?.allDay ? A(s, !0) : s;
324
325
  }
325
- function te(t, n, i = null) {
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 * h) : t.end, f = {
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: H(e),
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: J(t).url,
347
- address: Y(t).text,
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: B(t.rrule, I(f))
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 = $(i.date, i.start, i.end, n) ?? S(f);
368
- f = F(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 ne(e) {
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 = p(e.repeat.rule, I(e));
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 re(e) {
438
+ function se(e) {
386
439
  return Object.keys(e).length > 0;
387
440
  }
388
- function ie(e, t) {
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 { g as LENGTH_CHIPS, Y as addressOf, I as anchorOf, X as availabilitySpan, x as endInstant, v as endWall, y as firstDayOf, te as formFromEvent, ne as formIssues, H as guestKey, re as hasIssues, V as isEmailAddress, C as lengthChip, S as lengthMinutes, Z as locationIsRoomName, ee as newEventForm, R as repeatRuleOf, B as repeatStateOf, z as rruleOf, ie as sameForm, b as startInstant, _ as startWall, J as videoOf, P as wallIn, M as withAllDay, k as withEndClock, A as withEndDate, O as withEndTime, W as withGuests, j as withLength, K as withReminder, F as withSlot, E as withStartDate, D as withStartTime, N as withTimeZone, G as withoutGuest, q as withoutReminder };
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