@burdenoff/microfe-calendar 2026.830.1 → 2026.830.2

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 (64) hide show
  1. package/dist/CalendarRoot.d.ts.map +1 -1
  2. package/dist/CalendarRoot.js +35 -38
  3. package/dist/CalendarRoot.js.map +1 -1
  4. package/dist/CalendarRoutes.d.ts.map +1 -1
  5. package/dist/CalendarRoutes.js +35 -34
  6. package/dist/CalendarRoutes.js.map +1 -1
  7. package/dist/components/AgendaView.d.ts.map +1 -1
  8. package/dist/components/AgendaView.js +33 -36
  9. package/dist/components/AgendaView.js.map +1 -1
  10. package/dist/components/CalendarErrorState.d.ts.map +1 -1
  11. package/dist/components/CalendarErrorState.js +4 -7
  12. package/dist/components/CalendarErrorState.js.map +1 -1
  13. package/dist/components/ConfirmDialog.d.ts.map +1 -1
  14. package/dist/components/ConfirmDialog.js +11 -14
  15. package/dist/components/ConfirmDialog.js.map +1 -1
  16. package/dist/components/DayView.d.ts.map +1 -1
  17. package/dist/components/DayView.js +21 -24
  18. package/dist/components/DayView.js.map +1 -1
  19. package/dist/components/EventFormModal.d.ts.map +1 -1
  20. package/dist/components/EventFormModal.js +184 -187
  21. package/dist/components/EventFormModal.js.map +1 -1
  22. package/dist/components/MiniCalendar.d.ts.map +1 -1
  23. package/dist/components/MiniCalendar.js +38 -37
  24. package/dist/components/MiniCalendar.js.map +1 -1
  25. package/dist/components/MonthView.d.ts.map +1 -1
  26. package/dist/components/MonthView.js +28 -31
  27. package/dist/components/MonthView.js.map +1 -1
  28. package/dist/components/TaskEventDetail.d.ts.map +1 -1
  29. package/dist/components/TaskEventDetail.js +28 -31
  30. package/dist/components/TaskEventDetail.js.map +1 -1
  31. package/dist/components/TimelineView.d.ts.map +1 -1
  32. package/dist/components/TimelineView.js +35 -38
  33. package/dist/components/TimelineView.js.map +1 -1
  34. package/dist/components/ViewSwitcher.d.ts.map +1 -1
  35. package/dist/components/ViewSwitcher.js +13 -16
  36. package/dist/components/ViewSwitcher.js.map +1 -1
  37. package/dist/components/WeekView.d.ts.map +1 -1
  38. package/dist/components/WeekView.js +24 -27
  39. package/dist/components/WeekView.js.map +1 -1
  40. package/dist/components/YearView.d.ts.map +1 -1
  41. package/dist/components/YearView.js +30 -33
  42. package/dist/components/YearView.js.map +1 -1
  43. package/dist/pages/CalendarPage.d.ts.map +1 -1
  44. package/dist/pages/CalendarPage.js +173 -176
  45. package/dist/pages/CalendarPage.js.map +1 -1
  46. package/dist/pages/EventDetailsPage.d.ts.map +1 -1
  47. package/dist/pages/EventDetailsPage.js +88 -85
  48. package/dist/pages/EventDetailsPage.js.map +1 -1
  49. package/dist/pages/ResourcesPage.d.ts.map +1 -1
  50. package/dist/pages/ResourcesPage.js +197 -200
  51. package/dist/pages/ResourcesPage.js.map +1 -1
  52. package/dist/pages/SettingsPage.d.ts.map +1 -1
  53. package/dist/pages/SettingsPage.js +213 -169
  54. package/dist/pages/SettingsPage.js.map +1 -1
  55. package/dist/pages/SubscriptionsPage.d.ts.map +1 -1
  56. package/dist/pages/SubscriptionsPage.js +37 -40
  57. package/dist/pages/SubscriptionsPage.js.map +1 -1
  58. package/dist/shared/hooks/useTr.d.ts +17 -0
  59. package/dist/shared/hooks/useTr.d.ts.map +1 -0
  60. package/dist/shared/hooks/useTr.js +14 -0
  61. package/dist/shared/hooks/useTr.js.map +1 -0
  62. package/dist/translations/en.d.ts +351 -0
  63. package/dist/translations/en.d.ts.map +1 -0
  64. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { useCreateEventMutation as e, useGetCalendarsQuery as t, useUpdateEventMutation as n } from "../generated/wspace-operations.js";
2
- import { useEffect as r, useMemo as i, useState as a } from "react";
3
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
1
+ import { useTr as e } from "../shared/hooks/useTr.js";
2
+ import { useCreateEventMutation as t, useGetCalendarsQuery as n, useUpdateEventMutation as r } from "../generated/wspace-operations.js";
3
+ import { useEffect as i, useMemo as a, useState as o } from "react";
4
4
  import { AlignLeft as s, Calendar as c, Clock as l, MapPin as u, Tag as d } from "lucide-react";
5
5
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
6
  import { Button as m, OptionalFields as h, ResponsiveDialog as g, ResponsiveDialogContent as _, ResponsiveDialogFooter as v, ResponsiveDialogHeader as y, ResponsiveDialogTitle as b } from "@burdenoff/fe-libs/ui";
@@ -15,30 +15,27 @@ function C(e, t) {
15
15
  return (/* @__PURE__ */ new Date(`${e}T${t}:00`)).toISOString();
16
16
  }
17
17
  var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, onSuccess: k }) => {
18
- let A = !!T, { t: j } = o(), M = (e, t) => {
19
- let n = j(e);
20
- return n === e ? t : n;
18
+ let A = !!T, j = e(), M = {
19
+ MEETING: j("calendar.meeting", "Meeting"),
20
+ TASK: j("calendar.task", "Task"),
21
+ MILESTONE: j("calendar.milestone", "Milestone"),
22
+ PROMPT: j("calendar.prompt", "Prompt")
21
23
  }, N = {
22
- MEETING: M("calendar.meeting", "Meeting"),
23
- TASK: M("calendar.task", "Task"),
24
- MILESTONE: M("calendar.milestone", "Milestone"),
25
- PROMPT: M("calendar.prompt", "Prompt")
24
+ PUBLIC: j("calendar.visibilityPublic", "Public"),
25
+ PRIVATE: j("calendar.visibilityPrivate", "Private"),
26
+ CONFIDENTIAL: j("calendar.visibilityConfidential", "Confidential")
26
27
  }, P = {
27
- PUBLIC: M("calendar.visibilityPublic", "Public"),
28
- PRIVATE: M("calendar.visibilityPrivate", "Private"),
29
- CONFIDENTIAL: M("calendar.visibilityConfidential", "Confidential")
28
+ PHYSICAL: j("calendar.locationPhysical", "Physical"),
29
+ ONLINE: j("calendar.locationOnline", "Online"),
30
+ HYBRID: j("calendar.locationHybrid", "Hybrid"),
31
+ TBD: j("calendar.locationTbd", "To be decided")
30
32
  }, F = {
31
- PHYSICAL: M("calendar.locationPhysical", "Physical"),
32
- ONLINE: M("calendar.locationOnline", "Online"),
33
- HYBRID: M("calendar.locationHybrid", "Hybrid"),
34
- TBD: M("calendar.locationTbd", "To be decided")
35
- }, I = {
36
- ZOOM: "Zoom",
37
- GOOGLE_MEET: "Google Meet",
38
- MICROSOFT_TEAMS: "Microsoft Teams",
39
- WEBEX: "Webex",
40
- CUSTOM: M("calendar.customMeetingProvider", "Custom")
41
- }, { data: L } = t({ variables: { pagination: { limit: 50 } } }), R = i(() => L?.calendars?.calendars ?? [], [L?.calendars?.calendars]), [z, { loading: B, error: V }] = e(), [H, { loading: U, error: W }] = n(), G = B || U, K = V || W, { defaultStart: q, defaultEnd: J } = i(() => {
33
+ ZOOM: j("calendar.providerZoom", "Zoom"),
34
+ GOOGLE_MEET: j("calendar.providerGoogleMeet", "Google Meet"),
35
+ MICROSOFT_TEAMS: j("calendar.providerMicrosoftTeams", "Microsoft Teams"),
36
+ WEBEX: j("calendar.providerWebex", "Webex"),
37
+ CUSTOM: j("calendar.customMeetingProvider", "Custom")
38
+ }, { data: I } = n({ variables: { pagination: { limit: 50 } } }), L = a(() => I?.calendars?.calendars ?? [], [I?.calendars?.calendars]), [R, { loading: z, error: B }] = t(), [V, { loading: H, error: U }] = r(), W = z || H, G = B || U, { defaultStart: K, defaultEnd: q } = a(() => {
42
39
  let e = E ?? /* @__PURE__ */ new Date(), t = D ?? e.getHours() + 1, n = new Date(e);
43
40
  n.setHours(t, 0, 0, 0);
44
41
  let r = new Date(n);
@@ -46,14 +43,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
46
43
  defaultStart: n,
47
44
  defaultEnd: r
48
45
  };
49
- }, [E, D]), [Y, X] = a({
46
+ }, [E, D]), [J, Y] = o({
50
47
  title: "",
51
48
  description: "",
52
49
  calendarId: "",
53
- startDate: x(q),
54
- startTime: S(q),
55
- endDate: x(J),
56
- endTime: S(J),
50
+ startDate: x(K),
51
+ startTime: S(K),
52
+ endDate: x(q),
53
+ endTime: S(q),
57
54
  allDay: !1,
58
55
  location: "",
59
56
  locationAddress: "",
@@ -71,11 +68,11 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
71
68
  tagsText: "",
72
69
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
73
70
  });
74
- r(() => {
71
+ i(() => {
75
72
  if (T) {
76
73
  let e = T;
77
74
  Promise.resolve().then(() => {
78
- X({
75
+ Y({
79
76
  title: e.title,
80
77
  description: e.description ?? "",
81
78
  calendarId: e.calendarId,
@@ -102,9 +99,9 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
102
99
  });
103
100
  });
104
101
  } else {
105
- let e = R.find((e) => e.isDefault) ?? R[0];
102
+ let e = L.find((e) => e.isDefault) ?? L[0];
106
103
  Promise.resolve().then(() => {
107
- X((t) => ({
104
+ Y((t) => ({
108
105
  ...t,
109
106
  title: "",
110
107
  description: "",
@@ -113,10 +110,10 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
113
110
  locationAddress: "",
114
111
  locationUrl: "",
115
112
  locationType: "PHYSICAL",
116
- startDate: x(q),
117
- startTime: S(q),
118
- endDate: x(J),
119
- endTime: S(J),
113
+ startDate: x(K),
114
+ startTime: S(K),
115
+ endDate: x(q),
116
+ endTime: S(q),
120
117
  allDay: !1,
121
118
  status: "CONFIRMED",
122
119
  visibility: "PUBLIC",
@@ -132,12 +129,12 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
132
129
  }
133
130
  }, [
134
131
  T,
135
- R,
136
- q,
137
- J
132
+ L,
133
+ K,
134
+ q
138
135
  ]);
139
- let Z = (e, t) => {
140
- X((n) => ({
136
+ let X = (e, t) => {
137
+ Y((n) => ({
141
138
  ...n,
142
139
  [e]: t
143
140
  }));
@@ -149,75 +146,75 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
149
146
  },
150
147
  children: /* @__PURE__ */ p(_, {
151
148
  className: "max-w-lg",
152
- children: [/* @__PURE__ */ f(y, { children: /* @__PURE__ */ f(b, { children: A ? M("calendar.editEvent", "Edit Event") : M("calendar.createEvent", "Create Event") }) }), /* @__PURE__ */ p("form", {
149
+ children: [/* @__PURE__ */ f(y, { children: /* @__PURE__ */ f(b, { children: A ? j("calendar.editEvent", "Edit Event") : j("calendar.createEvent", "Create Event") }) }), /* @__PURE__ */ p("form", {
153
150
  onSubmit: async (e) => {
154
- if (e.preventDefault(), !Y.title.trim()) return;
155
- let t = Y.allDay ? (/* @__PURE__ */ new Date(`${Y.startDate}T00:00:00`)).toISOString() : C(Y.startDate, Y.startTime), n = Y.allDay ? (/* @__PURE__ */ new Date(`${Y.endDate}T23:59:59`)).toISOString() : C(Y.endDate, Y.endTime);
156
- if (A && T) await H({ variables: {
151
+ if (e.preventDefault(), !J.title.trim()) return;
152
+ let t = J.allDay ? (/* @__PURE__ */ new Date(`${J.startDate}T00:00:00`)).toISOString() : C(J.startDate, J.startTime), n = J.allDay ? (/* @__PURE__ */ new Date(`${J.endDate}T23:59:59`)).toISOString() : C(J.endDate, J.endTime);
153
+ if (A && T) await V({ variables: {
157
154
  id: T.id,
158
155
  input: {
159
- title: Y.title,
160
- description: Y.description || void 0,
161
- location: Y.location || void 0,
162
- locationAddress: Y.locationAddress || void 0,
163
- locationUrl: Y.locationUrl || void 0,
164
- locationType: Y.locationType,
156
+ title: J.title,
157
+ description: J.description || void 0,
158
+ location: J.location || void 0,
159
+ locationAddress: J.locationAddress || void 0,
160
+ locationUrl: J.locationUrl || void 0,
161
+ locationType: J.locationType,
165
162
  startTime: t,
166
163
  endTime: n,
167
- allDay: Y.allDay,
168
- status: Y.status,
169
- visibility: Y.visibility,
170
- onlineMeetingProvider: Y.onlineMeetingProvider,
171
- onlineMeetingUrl: Y.onlineMeetingUrl || void 0,
172
- maxAttendees: Y.maxAttendees ? parseInt(Y.maxAttendees, 10) : void 0,
173
- checkInEnabled: Y.checkInEnabled,
174
- tags: Y.tagsText.split(",").flatMap((e) => {
164
+ allDay: J.allDay,
165
+ status: J.status,
166
+ visibility: J.visibility,
167
+ onlineMeetingProvider: J.onlineMeetingProvider,
168
+ onlineMeetingUrl: J.onlineMeetingUrl || void 0,
169
+ maxAttendees: J.maxAttendees ? parseInt(J.maxAttendees, 10) : void 0,
170
+ checkInEnabled: J.checkInEnabled,
171
+ tags: J.tagsText.split(",").flatMap((e) => {
175
172
  let t = e.trim();
176
173
  return t ? [t] : [];
177
174
  }),
178
- rrule: Y.isRecurring && Y.rrule.trim() ? Y.rrule.trim() : void 0,
179
- timezone: Y.timezone
175
+ rrule: J.isRecurring && J.rrule.trim() ? J.rrule.trim() : void 0,
176
+ timezone: J.timezone
180
177
  }
181
178
  } });
182
179
  else {
183
- let e = (await z({ variables: { input: {
184
- title: Y.title,
185
- description: Y.description || void 0,
186
- calendarId: Y.calendarId,
187
- location: Y.location || void 0,
188
- locationAddress: Y.locationAddress || void 0,
189
- locationUrl: Y.locationUrl || void 0,
190
- locationType: Y.locationType,
180
+ let e = (await R({ variables: { input: {
181
+ title: J.title,
182
+ description: J.description || void 0,
183
+ calendarId: J.calendarId,
184
+ location: J.location || void 0,
185
+ locationAddress: J.locationAddress || void 0,
186
+ locationUrl: J.locationUrl || void 0,
187
+ locationType: J.locationType,
191
188
  startTime: t,
192
189
  endTime: n,
193
- allDay: Y.allDay,
194
- eventType: Y.eventType,
195
- status: Y.status,
196
- onlineMeetingProvider: Y.onlineMeetingProvider,
197
- onlineMeetingUrl: Y.onlineMeetingUrl || void 0,
198
- maxAttendees: Y.maxAttendees ? parseInt(Y.maxAttendees, 10) : void 0,
199
- checkInEnabled: Y.checkInEnabled,
200
- isRecurring: Y.isRecurring,
201
- rrule: Y.isRecurring && Y.rrule.trim() ? Y.rrule.trim() : void 0,
202
- tags: Y.tagsText.split(",").flatMap((e) => {
190
+ allDay: J.allDay,
191
+ eventType: J.eventType,
192
+ status: J.status,
193
+ onlineMeetingProvider: J.onlineMeetingProvider,
194
+ onlineMeetingUrl: J.onlineMeetingUrl || void 0,
195
+ maxAttendees: J.maxAttendees ? parseInt(J.maxAttendees, 10) : void 0,
196
+ checkInEnabled: J.checkInEnabled,
197
+ isRecurring: J.isRecurring,
198
+ rrule: J.isRecurring && J.rrule.trim() ? J.rrule.trim() : void 0,
199
+ tags: J.tagsText.split(",").flatMap((e) => {
203
200
  let t = e.trim();
204
201
  return t ? [t] : [];
205
202
  }),
206
- timezone: Y.timezone
203
+ timezone: J.timezone
207
204
  } } })).data?.createEvent.id;
208
- e && Y.visibility !== "PUBLIC" && await H({ variables: {
205
+ e && J.visibility !== "PUBLIC" && await V({ variables: {
209
206
  id: e,
210
- input: { visibility: Y.visibility }
207
+ input: { visibility: J.visibility }
211
208
  } });
212
209
  }
213
210
  k?.(), O();
214
211
  },
215
212
  children: [
216
- K && /* @__PURE__ */ f("div", {
213
+ G && /* @__PURE__ */ f("div", {
217
214
  className: "mb-4 p-3 rounded-radius-md bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-800",
218
215
  children: /* @__PURE__ */ f("p", {
219
216
  className: "font-text-sm text-red-700 dark:text-red-300",
220
- children: K.message
217
+ children: G.message
221
218
  })
222
219
  }),
223
220
  /* @__PURE__ */ p("div", {
@@ -227,7 +224,7 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
227
224
  htmlFor: "event-title",
228
225
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
229
226
  children: [
230
- M("calendar.title", "Title"),
227
+ j("calendar.title", "Title"),
231
228
  " ",
232
229
  /* @__PURE__ */ f("span", {
233
230
  className: "text-red-500",
@@ -238,25 +235,25 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
238
235
  id: "event-title",
239
236
  type: "text",
240
237
  required: !0,
241
- value: Y.title,
242
- onChange: (e) => Z("title", e.target.value),
243
- placeholder: M("calendar.addTitle", "Add title"),
244
- "aria-label": M("calendar.title", "Title"),
238
+ value: J.title,
239
+ onChange: (e) => X("title", e.target.value),
240
+ placeholder: j("calendar.addTitle", "Add title"),
241
+ "aria-label": j("calendar.title", "Title"),
245
242
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
246
243
  })] }),
247
244
  !A && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
248
245
  htmlFor: "event-calendar",
249
246
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
250
- children: [/* @__PURE__ */ f(c, { className: "size-4 text-text-secondary" }), M("calendar.calendar", "Calendar")]
247
+ children: [/* @__PURE__ */ f(c, { className: "size-4 text-text-secondary" }), j("calendar.calendar", "Calendar")]
251
248
  }), /* @__PURE__ */ p("select", {
252
249
  id: "event-calendar",
253
- value: Y.calendarId,
254
- onChange: (e) => Z("calendarId", e.target.value),
250
+ value: J.calendarId,
251
+ onChange: (e) => X("calendarId", e.target.value),
255
252
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
256
253
  children: [/* @__PURE__ */ f("option", {
257
254
  value: "",
258
- children: M("calendar.selectCalendar", "Select calendar")
259
- }), R.map((e) => /* @__PURE__ */ f("option", {
255
+ children: j("calendar.selectCalendar", "Select calendar")
256
+ }), L.map((e) => /* @__PURE__ */ f("option", {
260
257
  value: e.id,
261
258
  children: e.name
262
259
  }, e.id))]
@@ -264,41 +261,41 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
264
261
  !A && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
265
262
  htmlFor: "event-type",
266
263
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
267
- children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), M("calendar.eventType", "Event Type")]
264
+ children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), j("calendar.eventType", "Event Type")]
268
265
  }), /* @__PURE__ */ p("select", {
269
266
  id: "event-type",
270
- value: Y.eventType,
271
- onChange: (e) => Z("eventType", e.target.value),
267
+ value: J.eventType,
268
+ onChange: (e) => X("eventType", e.target.value),
272
269
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
273
270
  children: [
274
271
  /* @__PURE__ */ f("option", {
275
272
  value: "MEETING",
276
- children: N.MEETING
273
+ children: M.MEETING
277
274
  }),
278
275
  /* @__PURE__ */ f("option", {
279
276
  value: "TASK",
280
- children: N.TASK
277
+ children: M.TASK
281
278
  }),
282
279
  /* @__PURE__ */ f("option", {
283
280
  value: "MILESTONE",
284
- children: N.MILESTONE
281
+ children: M.MILESTONE
285
282
  }),
286
283
  /* @__PURE__ */ f("option", {
287
284
  value: "PROMPT",
288
- children: N.PROMPT
285
+ children: M.PROMPT
289
286
  })
290
287
  ]
291
288
  })] }),
292
289
  /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
293
290
  htmlFor: "event-visibility",
294
291
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
295
- children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), M("calendar.visibility", "Visibility")]
292
+ children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), j("calendar.visibility", "Visibility")]
296
293
  }), /* @__PURE__ */ f("select", {
297
294
  id: "event-visibility",
298
- value: Y.visibility,
299
- onChange: (e) => Z("visibility", e.target.value),
295
+ value: J.visibility,
296
+ onChange: (e) => X("visibility", e.target.value),
300
297
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
301
- children: Object.entries(P).map(([e, t]) => /* @__PURE__ */ f("option", {
298
+ children: Object.entries(N).map(([e, t]) => /* @__PURE__ */ f("option", {
302
299
  value: e,
303
300
  children: t
304
301
  }, e))
@@ -308,14 +305,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
308
305
  children: [/* @__PURE__ */ f("input", {
309
306
  id: "event-allday",
310
307
  type: "checkbox",
311
- checked: Y.allDay,
312
- onChange: (e) => Z("allDay", e.target.checked),
308
+ checked: J.allDay,
309
+ onChange: (e) => X("allDay", e.target.checked),
313
310
  className: "size-4 rounded border-border-default",
314
- "aria-label": M("calendar.allDayEvent", "All day event")
311
+ "aria-label": j("calendar.allDayEvent", "All day event")
315
312
  }), /* @__PURE__ */ f("label", {
316
313
  htmlFor: "event-allday",
317
314
  className: "font-text-sm text-text-primary",
318
- children: M("calendar.allDayEvent", "All day event")
315
+ children: j("calendar.allDayEvent", "All day event")
319
316
  })]
320
317
  }),
321
318
  /* @__PURE__ */ p("div", {
@@ -324,43 +321,43 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
324
321
  /* @__PURE__ */ p("label", {
325
322
  htmlFor: "event-start-date",
326
323
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
327
- children: [/* @__PURE__ */ f(l, { className: "size-4 text-text-secondary" }), M("calendar.start", "Start")]
324
+ children: [/* @__PURE__ */ f(l, { className: "size-4 text-text-secondary" }), j("calendar.start", "Start")]
328
325
  }),
329
326
  /* @__PURE__ */ f("input", {
330
327
  id: "event-start-date",
331
328
  type: "date",
332
- value: Y.startDate,
333
- onChange: (e) => Z("startDate", e.target.value),
329
+ value: J.startDate,
330
+ onChange: (e) => X("startDate", e.target.value),
334
331
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
335
- "aria-label": M("calendar.start", "Start")
332
+ "aria-label": j("calendar.start", "Start")
336
333
  }),
337
- !Y.allDay && /* @__PURE__ */ f("input", {
334
+ !J.allDay && /* @__PURE__ */ f("input", {
338
335
  type: "time",
339
- value: Y.startTime,
340
- onChange: (e) => Z("startTime", e.target.value),
336
+ value: J.startTime,
337
+ onChange: (e) => X("startTime", e.target.value),
341
338
  className: "w-full mt-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
342
- "aria-label": M("calendar.startTime", "Start time")
339
+ "aria-label": j("calendar.startTime", "Start time")
343
340
  })
344
341
  ] }), /* @__PURE__ */ p("div", { children: [
345
342
  /* @__PURE__ */ f("label", {
346
343
  htmlFor: "event-end-date",
347
344
  className: "font-text-sm font-weight-medium text-text-primary mb-1 block",
348
- children: M("calendar.end", "End")
345
+ children: j("calendar.end", "End")
349
346
  }),
350
347
  /* @__PURE__ */ f("input", {
351
348
  id: "event-end-date",
352
349
  type: "date",
353
- value: Y.endDate,
354
- onChange: (e) => Z("endDate", e.target.value),
350
+ value: J.endDate,
351
+ onChange: (e) => X("endDate", e.target.value),
355
352
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
356
- "aria-label": M("calendar.end", "End")
353
+ "aria-label": j("calendar.end", "End")
357
354
  }),
358
- !Y.allDay && /* @__PURE__ */ f("input", {
355
+ !J.allDay && /* @__PURE__ */ f("input", {
359
356
  type: "time",
360
- value: Y.endTime,
361
- onChange: (e) => Z("endTime", e.target.value),
357
+ value: J.endTime,
358
+ onChange: (e) => X("endTime", e.target.value),
362
359
  className: "w-full mt-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
363
- "aria-label": M("calendar.endTime", "End time")
360
+ "aria-label": j("calendar.endTime", "End time")
364
361
  })
365
362
  ] })]
366
363
  }),
@@ -370,14 +367,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
370
367
  /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
371
368
  htmlFor: "event-location",
372
369
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
373
- children: [/* @__PURE__ */ f(u, { className: "size-4 text-text-secondary" }), M("calendar.location", "Location")]
370
+ children: [/* @__PURE__ */ f(u, { className: "size-4 text-text-secondary" }), j("calendar.location", "Location")]
374
371
  }), /* @__PURE__ */ f("input", {
375
372
  id: "event-location",
376
373
  type: "text",
377
- value: Y.location,
378
- onChange: (e) => Z("location", e.target.value),
379
- placeholder: M("calendar.addLocation", "Add location"),
380
- "aria-label": M("calendar.location", "Location"),
374
+ value: J.location,
375
+ onChange: (e) => X("location", e.target.value),
376
+ placeholder: j("calendar.addLocation", "Add location"),
377
+ "aria-label": j("calendar.location", "Location"),
381
378
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
382
379
  })] }),
383
380
  /* @__PURE__ */ p("div", {
@@ -385,78 +382,78 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
385
382
  children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
386
383
  htmlFor: "event-location-type",
387
384
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
388
- children: M("calendar.locationType", "Location type")
385
+ children: j("calendar.locationType", "Location type")
389
386
  }), /* @__PURE__ */ f("select", {
390
387
  id: "event-location-type",
391
- value: Y.locationType,
392
- onChange: (e) => Z("locationType", e.target.value),
388
+ value: J.locationType,
389
+ onChange: (e) => X("locationType", e.target.value),
393
390
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
394
- children: Object.entries(F).map(([e, t]) => /* @__PURE__ */ f("option", {
391
+ children: Object.entries(P).map(([e, t]) => /* @__PURE__ */ f("option", {
395
392
  value: e,
396
393
  children: t
397
394
  }, e))
398
395
  })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
399
396
  htmlFor: "event-max-attendees",
400
397
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
401
- children: M("calendar.maxAttendees", "Max attendees")
398
+ children: j("calendar.maxAttendees", "Max attendees")
402
399
  }), /* @__PURE__ */ f("input", {
403
400
  id: "event-max-attendees",
404
401
  type: "number",
405
402
  min: "1",
406
- value: Y.maxAttendees,
407
- onChange: (e) => Z("maxAttendees", e.target.value),
403
+ value: J.maxAttendees,
404
+ onChange: (e) => X("maxAttendees", e.target.value),
408
405
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
409
- "aria-label": M("calendar.maxAttendees", "Max attendees")
406
+ "aria-label": j("calendar.maxAttendees", "Max attendees")
410
407
  })] })]
411
408
  }),
412
409
  /* @__PURE__ */ f("input", {
413
410
  type: "text",
414
- value: Y.locationAddress,
415
- onChange: (e) => Z("locationAddress", e.target.value),
416
- placeholder: M("calendar.locationAddress", "Location address or room details"),
411
+ value: J.locationAddress,
412
+ onChange: (e) => X("locationAddress", e.target.value),
413
+ placeholder: j("calendar.locationAddress", "Location address or room details"),
417
414
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
418
- "aria-label": M("calendar.locationAddress", "Location address or room details")
415
+ "aria-label": j("calendar.locationAddress", "Location address or room details")
419
416
  }),
420
417
  /* @__PURE__ */ f("input", {
421
418
  type: "url",
422
- value: Y.locationUrl,
423
- onChange: (e) => Z("locationUrl", e.target.value),
424
- placeholder: M("calendar.locationUrl", "Location URL"),
419
+ value: J.locationUrl,
420
+ onChange: (e) => X("locationUrl", e.target.value),
421
+ placeholder: j("calendar.locationUrl", "Location URL"),
425
422
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
426
- "aria-label": M("calendar.locationUrl", "Location URL")
423
+ "aria-label": j("calendar.locationUrl", "Location URL")
427
424
  })
428
425
  ]
429
426
  }),
430
427
  /* @__PURE__ */ p(h, {
431
- title: M("calendar.advancedTitle", "Advanced"),
432
- description: M("calendar.advancedDescription", "Meeting provider, recurrence, timezone and other options"),
428
+ title: j("calendar.advancedTitle", "Advanced"),
429
+ description: j("calendar.advancedDescription", "Meeting provider, recurrence, timezone and other options"),
433
430
  children: [
434
431
  /* @__PURE__ */ p("div", {
435
432
  className: "grid grid-cols-1 gap-3 @md:grid-cols-2",
436
433
  children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
437
434
  htmlFor: "event-meeting-provider",
438
435
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
439
- children: M("calendar.meetingProvider", "Meeting provider")
436
+ children: j("calendar.meetingProvider", "Meeting provider")
440
437
  }), /* @__PURE__ */ f("select", {
441
438
  id: "event-meeting-provider",
442
- value: Y.onlineMeetingProvider,
443
- onChange: (e) => Z("onlineMeetingProvider", e.target.value),
439
+ value: J.onlineMeetingProvider,
440
+ onChange: (e) => X("onlineMeetingProvider", e.target.value),
444
441
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
445
- children: Object.entries(I).map(([e, t]) => /* @__PURE__ */ f("option", {
442
+ children: Object.entries(F).map(([e, t]) => /* @__PURE__ */ f("option", {
446
443
  value: e,
447
444
  children: t
448
445
  }, e))
449
446
  })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
450
447
  htmlFor: "event-meeting-url",
451
448
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
452
- children: M("calendar.meetingUrl", "Meeting URL")
449
+ children: j("calendar.meetingUrl", "Meeting URL")
453
450
  }), /* @__PURE__ */ f("input", {
454
451
  id: "event-meeting-url",
455
452
  type: "url",
456
- value: Y.onlineMeetingUrl,
457
- onChange: (e) => Z("onlineMeetingUrl", e.target.value),
458
- placeholder: M("calendar.addMeetingLink", "Add meeting link"),
459
- "aria-label": M("calendar.meetingUrl", "Meeting URL"),
453
+ value: J.onlineMeetingUrl,
454
+ onChange: (e) => X("onlineMeetingUrl", e.target.value),
455
+ placeholder: j("calendar.addMeetingLink", "Add meeting link"),
456
+ "aria-label": j("calendar.meetingUrl", "Meeting URL"),
460
457
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
461
458
  })] })]
462
459
  }),
@@ -464,20 +461,20 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
464
461
  /* @__PURE__ */ p("label", {
465
462
  htmlFor: "event-description",
466
463
  className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
467
- children: [/* @__PURE__ */ f(s, { className: "size-4 text-text-secondary" }), M("calendar.description", "Description")]
464
+ children: [/* @__PURE__ */ f(s, { className: "size-4 text-text-secondary" }), j("calendar.description", "Description")]
468
465
  }),
469
466
  /* @__PURE__ */ f("textarea", {
470
467
  id: "event-description",
471
- value: Y.description,
472
- onChange: (e) => Z("description", e.target.value),
473
- placeholder: M("calendar.addDescription", "Add markdown notes or event description"),
468
+ value: J.description,
469
+ onChange: (e) => X("description", e.target.value),
470
+ placeholder: j("calendar.addDescription", "Add markdown notes or event description"),
474
471
  rows: 4,
475
- "aria-label": M("calendar.description", "Description"),
472
+ "aria-label": j("calendar.description", "Description"),
476
473
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border resize-none"
477
474
  }),
478
475
  /* @__PURE__ */ f("p", {
479
476
  className: "mt-1 font-text-xs text-text-tertiary",
480
- children: M("calendar.descriptionMarkdownHint", "Supports markdown-style notes and formatting text.")
477
+ children: j("calendar.descriptionMarkdownHint", "Supports markdown-style notes and formatting text.")
481
478
  })
482
479
  ] }),
483
480
  /* @__PURE__ */ p("div", {
@@ -485,28 +482,28 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
485
482
  children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
486
483
  htmlFor: "event-tags",
487
484
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
488
- children: M("calendar.tags", "Tags")
485
+ children: j("calendar.tags", "Tags")
489
486
  }), /* @__PURE__ */ f("input", {
490
487
  id: "event-tags",
491
488
  type: "text",
492
- value: Y.tagsText,
493
- onChange: (e) => Z("tagsText", e.target.value),
494
- placeholder: M("calendar.tagsPlaceholder", "e.g. planning, roadmap, leadership"),
495
- "aria-label": M("calendar.tags", "Tags"),
489
+ value: J.tagsText,
490
+ onChange: (e) => X("tagsText", e.target.value),
491
+ placeholder: j("calendar.tagsPlaceholder", "e.g. planning, roadmap, leadership"),
492
+ "aria-label": j("calendar.tags", "Tags"),
496
493
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
497
494
  })] }), /* @__PURE__ */ p("div", {
498
495
  className: "flex items-center gap-3 self-end",
499
496
  children: [/* @__PURE__ */ f("input", {
500
497
  id: "event-checkin-enabled",
501
498
  type: "checkbox",
502
- checked: Y.checkInEnabled,
503
- onChange: (e) => Z("checkInEnabled", e.target.checked),
499
+ checked: J.checkInEnabled,
500
+ onChange: (e) => X("checkInEnabled", e.target.checked),
504
501
  className: "size-4 rounded border-border-default",
505
- "aria-label": M("calendar.enableCheckIn", "Enable attendee check-in")
502
+ "aria-label": j("calendar.enableCheckIn", "Enable attendee check-in")
506
503
  }), /* @__PURE__ */ f("label", {
507
504
  htmlFor: "event-checkin-enabled",
508
505
  className: "font-text-sm text-text-primary",
509
- children: M("calendar.enableCheckIn", "Enable attendee check-in")
506
+ children: j("calendar.enableCheckIn", "Enable attendee check-in")
510
507
  })]
511
508
  })]
512
509
  }),
@@ -517,26 +514,26 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
517
514
  children: [/* @__PURE__ */ f("input", {
518
515
  id: "event-recurring",
519
516
  type: "checkbox",
520
- checked: Y.isRecurring,
521
- onChange: (e) => Z("isRecurring", e.target.checked),
517
+ checked: J.isRecurring,
518
+ onChange: (e) => X("isRecurring", e.target.checked),
522
519
  className: "size-4 rounded border-border-default",
523
- "aria-label": M("calendar.recurringEvent", "Recurring event")
520
+ "aria-label": j("calendar.recurringEvent", "Recurring event")
524
521
  }), /* @__PURE__ */ f("label", {
525
522
  htmlFor: "event-recurring",
526
523
  className: "font-text-sm text-text-primary",
527
- children: M("calendar.recurringEvent", "Recurring event")
524
+ children: j("calendar.recurringEvent", "Recurring event")
528
525
  })]
529
- }), Y.isRecurring && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
526
+ }), J.isRecurring && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
530
527
  htmlFor: "event-rrule",
531
528
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
532
- children: M("calendar.rrule", "Recurrence rule (RRULE)")
529
+ children: j("calendar.rrule", "Recurrence rule (RRULE)")
533
530
  }), /* @__PURE__ */ f("input", {
534
531
  id: "event-rrule",
535
532
  type: "text",
536
- value: Y.rrule,
537
- onChange: (e) => Z("rrule", e.target.value),
538
- "aria-label": M("calendar.rrule", "Recurrence rule (RRULE)"),
539
- placeholder: M("calendar.rrulePlaceholder", "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;INTERVAL=1"),
533
+ value: J.rrule,
534
+ onChange: (e) => X("rrule", e.target.value),
535
+ "aria-label": j("calendar.rrule", "Recurrence rule (RRULE)"),
536
+ placeholder: j("calendar.rrulePlaceholder", "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;INTERVAL=1"),
540
537
  className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
541
538
  })] })]
542
539
  })
@@ -548,12 +545,12 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
548
545
  type: "button",
549
546
  variant: "outline",
550
547
  onClick: O,
551
- disabled: G,
552
- children: M("calendar.cancel", "Cancel")
548
+ disabled: W,
549
+ children: j("calendar.cancel", "Cancel")
553
550
  }), /* @__PURE__ */ f(m, {
554
551
  type: "submit",
555
- disabled: G || !Y.title.trim(),
556
- children: G ? M("calendar.saving", "Saving...") : A ? M("calendar.updateEvent", "Update Event") : M("calendar.createEvent", "Create Event")
552
+ disabled: W || !J.title.trim(),
553
+ children: W ? j("calendar.saving", "Saving...") : A ? j("calendar.updateEvent", "Update Event") : j("calendar.createEvent", "Create Event")
557
554
  })] })
558
555
  ]
559
556
  })]