@burdenoff/microfe-calendar 2026.525.2 → 2026.527.1

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