@burdenoff/microfe-calendar 2026.527.1 → 2026.625.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 (35) hide show
  1. package/dist/components/AgendaView.js +71 -55
  2. package/dist/components/AgendaView.js.map +1 -1
  3. package/dist/components/CalendarErrorState.js +40 -0
  4. package/dist/components/CalendarErrorState.js.map +1 -0
  5. package/dist/components/DayView.js +43 -32
  6. package/dist/components/DayView.js.map +1 -1
  7. package/dist/components/EventBlock.js +14 -26
  8. package/dist/components/EventBlock.js.map +1 -1
  9. package/dist/components/EventFormModal.js +458 -468
  10. package/dist/components/EventFormModal.js.map +1 -1
  11. package/dist/components/MonthView.js +37 -26
  12. package/dist/components/MonthView.js.map +1 -1
  13. package/dist/components/TimelineView.js +50 -39
  14. package/dist/components/TimelineView.js.map +1 -1
  15. package/dist/components/WeekView.js +53 -39
  16. package/dist/components/WeekView.js.map +1 -1
  17. package/dist/components/YearView.js +73 -51
  18. package/dist/components/YearView.js.map +1 -1
  19. package/dist/hooks/useEvents.js +22 -16
  20. package/dist/hooks/useEvents.js.map +1 -1
  21. package/dist/hooks/useOpenEvent.js +24 -0
  22. package/dist/hooks/useOpenEvent.js.map +1 -0
  23. package/dist/pages/CalendarPage.js +97 -86
  24. package/dist/pages/CalendarPage.js.map +1 -1
  25. package/dist/pages/EventDetailsPage.js +167 -172
  26. package/dist/pages/EventDetailsPage.js.map +1 -1
  27. package/dist/pages/ResourcesPage.js +120 -123
  28. package/dist/pages/ResourcesPage.js.map +1 -1
  29. package/dist/pages/SettingsPage.js +177 -172
  30. package/dist/pages/SettingsPage.js.map +1 -1
  31. package/dist/pages/SubscriptionsPage.js +49 -49
  32. package/dist/pages/SubscriptionsPage.js.map +1 -1
  33. package/dist/store/calendarStore.js +11 -4
  34. package/dist/store/calendarStore.js.map +1 -1
  35. package/package.json +4 -2
@@ -1,22 +1,23 @@
1
1
  import { useCalendar as e } from "../providers/CalendarProvider.js";
2
2
  import { useDeleteEventMutation as t, useGetEventQuery as n } from "../generated/wspace-operations.js";
3
- import { useSafePermissions as r } from "../hooks/useSafePermissions.js";
4
- import { formatDateTime as i } from "../utils/dateHelpers.js";
5
- import { ADD_ATTENDEE_MUTATION as ee, CREATE_REMINDER_MUTATION as te, DELETE_REMINDER_MUTATION as ne, REMOVE_ATTENDEE_MUTATION as a, RESPOND_TO_EVENT_MUTATION as o } from "../graphql/calendarDocuments.js";
6
- import { EventFormModal as s } from "../components/EventFormModal.js";
7
- import { CALENDAR_PERMISSIONS as c } from "../constants/permissions.js";
8
- import { useEventPermissions as re } from "../hooks/useEventPermissions.js";
9
- import { ConfirmDialog as ie } from "../components/ConfirmDialog.js";
10
- import { nativeConfirm as ae, nativeNotify as l } from "../utils/nativeBridge.js";
11
- import { useState as u } from "react";
12
- import { AccessDenied as d } from "@burdenoff/fe-libs/shared/components";
13
- import { useI18n as oe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { ArrowLeft as se, Bell as f, Clock as p, Edit as m, Link2 as h, MapPin as g, Paperclip as _, Repeat as v, Shield as y, Tag as b, Trash2 as ce, Users as x, Video as le } from "lucide-react";
15
- import { useNavigate as ue, useParams as de } from "react-router-dom";
16
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
17
- import { useMutation as w } from "@apollo/client/react";
3
+ import { useSafePermissions as ee } from "../hooks/useSafePermissions.js";
4
+ import { formatDateTime as r } from "../utils/dateHelpers.js";
5
+ import { ADD_ATTENDEE_MUTATION as i, CREATE_REMINDER_MUTATION as a, DELETE_REMINDER_MUTATION as te, REMOVE_ATTENDEE_MUTATION as ne, RESPOND_TO_EVENT_MUTATION as re } from "../graphql/calendarDocuments.js";
6
+ import { EventFormModal as ie } from "../components/EventFormModal.js";
7
+ import { CALENDAR_PERMISSIONS as o } from "../constants/permissions.js";
8
+ import { useEventPermissions as s } from "../hooks/useEventPermissions.js";
9
+ import { ConfirmDialog as c } from "../components/ConfirmDialog.js";
10
+ import { nativeConfirm as l, nativeNotify as u } from "../utils/nativeBridge.js";
11
+ import { useState as d } from "react";
12
+ import { AccessDenied as f } from "@burdenoff/fe-libs/shared/components";
13
+ import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
+ import { ArrowLeft as m, Bell as h, Clock as g, Edit as ae, Link2 as oe, MapPin as _, Paperclip as se, Repeat as ce, Shield as le, Tag as v, Trash2 as ue, Users as y, Video as de } from "lucide-react";
15
+ import { useNavigate as fe, useParams as pe } from "react-router-dom";
16
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
17
+ import { CTAOverflowMenu as me, GlassCard as he, GradientText as S } from "@burdenoff/fe-libs/ui";
18
+ import { useMutation as C } from "@apollo/client/react";
18
19
  //#region src/pages/EventDetailsPage.tsx
19
- function fe(e) {
20
+ function w(e) {
20
21
  return e ? {
21
22
  id: e.id,
22
23
  calendarId: e.calendarId,
@@ -82,7 +83,7 @@ function fe(e) {
82
83
  } : null;
83
84
  }
84
85
  function T() {
85
- let { eventId: T } = de(), E = ue(), { basePath: D } = e(), { t: O } = oe(), k = (e, t) => {
86
+ let { eventId: T } = pe(), E = fe(), { basePath: D } = e(), { t: O } = p(), k = (e, t) => {
86
87
  let n = O(e);
87
88
  return n === e ? t : n;
88
89
  }, A = {
@@ -98,31 +99,31 @@ function T() {
98
99
  EMAIL: k("calendar.reminderMethodEmail", "email"),
99
100
  NOTIFICATION: k("calendar.reminderMethodNotification", "notification"),
100
101
  SMS: k("calendar.reminderMethodSms", "sms")
101
- }, [N, P] = u(!1), [F, I] = u(!1), [L, R] = u(""), [z, B] = u(""), [V, pe] = u("15"), [H, me] = u("IN_APP"), { hasPermission: U, isLoading: W } = r(), he = U(c.CALENDAR_EVENT_READ), { data: G, loading: ge, error: K, refetch: q } = n({
102
+ }, [N, P] = d(!1), [F, I] = d(!1), [L, R] = d(""), [z, B] = d(""), [V, ge] = d("15"), [H, _e] = d("IN_APP"), { hasPermission: U, isLoading: W } = ee(), ve = U(o.CALENDAR_EVENT_READ), { data: G, loading: ye, error: K, refetch: q } = n({
102
103
  variables: { id: T ?? "" },
103
- skip: !T || W || !he,
104
+ skip: !T || W || !ve,
104
105
  fetchPolicy: "cache-and-network"
105
- }), [_e, { loading: ve }] = t(), [ye, { loading: J }] = w(ee), [be, { loading: xe }] = w(a), [Se] = w(o), [Ce, { loading: Y }] = w(te), [we, { loading: X }] = w(ne), Z = fe(G?.event ?? null), Q = re(Z), $ = U;
106
- return W || ge && !G ? /* @__PURE__ */ S("div", {
106
+ }), [be, { loading: xe }] = t(), [Se, { loading: J }] = C(i), [Ce, { loading: we }] = C(ne), [Y] = C(re), [Te, { loading: X }] = C(a), [Ee, { loading: De }] = C(te), Z = w(G?.event ?? null), Q = s(Z), $ = U;
107
+ return W || ye && !G ? /* @__PURE__ */ b("div", {
107
108
  className: "@container min-h-screen bg-bg-canvas flex items-center justify-center",
108
- children: /* @__PURE__ */ S("p", {
109
+ children: /* @__PURE__ */ b("p", {
109
110
  className: "font-text-md text-text-secondary",
110
111
  children: k("calendar.loading", "Loading...")
111
112
  })
112
- }) : $(c.CALENDAR_EVENT_READ) ? K ? /* @__PURE__ */ S("div", {
113
+ }) : $(o.CALENDAR_EVENT_READ) ? K ? /* @__PURE__ */ b("div", {
113
114
  className: "@container min-h-screen bg-bg-canvas p-page-padding",
114
- children: /* @__PURE__ */ S("div", {
115
+ children: /* @__PURE__ */ b("div", {
115
116
  className: "max-w-3xl mx-auto",
116
- children: /* @__PURE__ */ C("div", {
117
+ children: /* @__PURE__ */ x("div", {
117
118
  className: "text-center py-12",
118
- children: [/* @__PURE__ */ C("p", {
119
+ children: [/* @__PURE__ */ x("p", {
119
120
  className: "font-text-md text-red-600 dark:text-red-400 mb-4",
120
121
  children: [
121
122
  k("calendar.failedToLoadEvent", "Failed to load event:"),
122
123
  " ",
123
124
  K.message
124
125
  ]
125
- }), /* @__PURE__ */ S("button", {
126
+ }), /* @__PURE__ */ b("button", {
126
127
  type: "button",
127
128
  onClick: () => E(`${D}/view/week`),
128
129
  className: "px-element-padding py-element-padding-sm 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",
@@ -130,87 +131,81 @@ function T() {
130
131
  })]
131
132
  })
132
133
  })
133
- }) : Z ? /* @__PURE__ */ C("div", {
134
+ }) : Z ? /* @__PURE__ */ x("div", {
134
135
  className: "@container min-h-screen bg-bg-canvas",
135
136
  children: [
136
- /* @__PURE__ */ S("header", {
137
- className: "border-b border-border-default bg-bg-surface px-page-padding py-element-padding",
138
- children: /* @__PURE__ */ C("div", {
139
- className: "max-w-4xl mx-auto flex items-center justify-between",
140
- children: [/* @__PURE__ */ C("button", {
137
+ /* @__PURE__ */ b("header", {
138
+ className: "border-b border-border-seam bg-bg-surface px-page-padding py-element-padding",
139
+ children: /* @__PURE__ */ x("div", {
140
+ className: "max-w-4xl mx-auto flex items-center justify-between gap-inline-gap",
141
+ children: [/* @__PURE__ */ x("button", {
141
142
  type: "button",
142
143
  onClick: () => E(-1),
143
144
  className: "inline-flex items-center gap-inline-gap-sm text-text-secondary hover:text-text-primary font-text-sm font-weight-medium transition-colors",
144
- children: [/* @__PURE__ */ S(se, { className: "size-4" }), k("calendar.back", "Back")]
145
- }), /* @__PURE__ */ C("div", {
146
- className: "flex items-center gap-inline-gap",
147
- children: [$(c.CALENDAR_EVENT_UPDATE) && Q.canEdit && /* @__PURE__ */ C("button", {
148
- type: "button",
149
- onClick: () => P(!0),
150
- className: "inline-flex items-center gap-inline-gap-sm px-element-padding py-element-padding-sm rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary font-text-sm font-weight-medium transition-colors",
151
- children: [/* @__PURE__ */ S(m, { className: "size-4" }), /* @__PURE__ */ S("span", {
152
- className: "hidden @sm:inline",
153
- children: k("calendar.edit", "Edit")
154
- })]
155
- }), $(c.CALENDAR_EVENT_DELETE) && Q.canDelete && /* @__PURE__ */ C("button", {
156
- type: "button",
157
- onClick: () => I(!0),
158
- className: "inline-flex items-center gap-inline-gap-sm px-element-padding py-element-padding-sm rounded-radius-md border border-red-300 dark:border-red-800 bg-bg-surface hover:bg-red-50 dark:hover:bg-red-950/20 text-red-600 dark:text-red-400 font-text-sm font-weight-medium transition-colors",
159
- children: [/* @__PURE__ */ S(ce, { className: "size-4" }), /* @__PURE__ */ S("span", {
160
- className: "hidden @sm:inline",
161
- children: k("calendar.delete", "Delete")
162
- })]
163
- })]
145
+ children: [/* @__PURE__ */ b(m, { className: "size-4" }), k("calendar.back", "Back")]
146
+ }), /* @__PURE__ */ b(me, {
147
+ primary: $(o.CALENDAR_EVENT_UPDATE) && Q.canEdit ? {
148
+ label: k("calendar.edit", "Edit"),
149
+ icon: /* @__PURE__ */ b(ae, { className: "size-4" }),
150
+ onSelect: () => P(!0)
151
+ } : void 0,
152
+ actions: $(o.CALENDAR_EVENT_DELETE) && Q.canDelete ? [{
153
+ label: k("calendar.delete", "Delete"),
154
+ icon: /* @__PURE__ */ b(ue, { className: "size-4" }),
155
+ intent: "destructive",
156
+ onSelect: () => I(!0)
157
+ }] : []
164
158
  })]
165
159
  })
166
160
  }),
167
- /* @__PURE__ */ S("div", {
161
+ /* @__PURE__ */ b("div", {
168
162
  className: "max-w-4xl mx-auto p-page-padding",
169
- children: /* @__PURE__ */ C("div", {
170
- className: "bg-bg-surface border border-border-default rounded-radius-lg p-card-padding",
171
- children: [/* @__PURE__ */ C("div", {
163
+ children: /* @__PURE__ */ x(he, {
164
+ treatment: "glass",
165
+ className: "p-card-padding",
166
+ children: [/* @__PURE__ */ x("div", {
172
167
  className: "mb-section-gap",
173
- children: [/* @__PURE__ */ S("h1", {
168
+ children: [/* @__PURE__ */ b("h1", {
174
169
  className: "font-heading-lg text-text-primary mb-stack-gap",
175
- children: Z.title
176
- }), /* @__PURE__ */ C("div", {
170
+ children: /* @__PURE__ */ b(S, { children: Z.title })
171
+ }), /* @__PURE__ */ x("div", {
177
172
  className: "flex items-center gap-inline-gap text-text-secondary font-text-md",
178
- children: [/* @__PURE__ */ S(p, { className: "size-4" }), /* @__PURE__ */ S("span", { children: Z.isAllDay ? `${i(Z.startTime).split(",")[0]} (${k("calendar.allDay", "All day")})` : `${i(Z.startTime)} - ${i(Z.endTime)}` })]
173
+ children: [/* @__PURE__ */ b(g, { className: "size-4" }), /* @__PURE__ */ b("span", { children: Z.isAllDay ? `${r(Z.startTime).split(",")[0]} (${k("calendar.allDay", "All day")})` : `${r(Z.startTime)} - ${r(Z.endTime)}` })]
179
174
  })]
180
- }), /* @__PURE__ */ C("div", {
175
+ }), /* @__PURE__ */ x("div", {
181
176
  className: "space-y-stack-gap",
182
177
  children: [
183
- Z.location && /* @__PURE__ */ C("div", {
178
+ Z.location && /* @__PURE__ */ x("div", {
184
179
  className: "flex gap-inline-gap",
185
- children: [/* @__PURE__ */ S(g, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
180
+ children: [/* @__PURE__ */ b(_, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
186
181
  className: "min-w-0 flex-1",
187
- children: [/* @__PURE__ */ S("p", {
182
+ children: [/* @__PURE__ */ b("p", {
188
183
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
189
184
  children: k("calendar.location", "Location")
190
- }), /* @__PURE__ */ S("p", {
185
+ }), /* @__PURE__ */ b("p", {
191
186
  className: "font-text-sm text-text-secondary",
192
187
  children: Z.location
193
188
  })]
194
189
  })]
195
190
  }),
196
- (Z.locationAddress || Z.locationUrl || Z.locationType) && /* @__PURE__ */ C("div", {
191
+ (Z.locationAddress || Z.locationUrl || Z.locationType) && /* @__PURE__ */ x("div", {
197
192
  className: "flex gap-inline-gap",
198
- children: [/* @__PURE__ */ S(g, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
193
+ children: [/* @__PURE__ */ b(_, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
199
194
  className: "min-w-0 flex-1 space-y-1",
200
195
  children: [
201
- /* @__PURE__ */ S("p", {
196
+ /* @__PURE__ */ b("p", {
202
197
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
203
198
  children: k("calendar.locationDetails", "Location details")
204
199
  }),
205
- Z.locationType && /* @__PURE__ */ S("p", {
200
+ Z.locationType && /* @__PURE__ */ b("p", {
206
201
  className: "font-text-sm text-text-secondary",
207
202
  children: Z.locationType
208
203
  }),
209
- Z.locationAddress && /* @__PURE__ */ S("p", {
204
+ Z.locationAddress && /* @__PURE__ */ b("p", {
210
205
  className: "font-text-sm text-text-secondary",
211
206
  children: Z.locationAddress
212
207
  }),
213
- Z.locationUrl && /* @__PURE__ */ S("a", {
208
+ Z.locationUrl && /* @__PURE__ */ b("a", {
214
209
  href: Z.locationUrl,
215
210
  target: "_blank",
216
211
  rel: "noopener noreferrer",
@@ -220,14 +215,14 @@ function T() {
220
215
  ]
221
216
  })]
222
217
  }),
223
- Z.videoCallLink && /* @__PURE__ */ C("div", {
218
+ Z.videoCallLink && /* @__PURE__ */ x("div", {
224
219
  className: "flex gap-inline-gap",
225
- children: [/* @__PURE__ */ S(le, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
220
+ children: [/* @__PURE__ */ b(de, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
226
221
  className: "min-w-0 flex-1",
227
- children: [/* @__PURE__ */ S("p", {
222
+ children: [/* @__PURE__ */ b("p", {
228
223
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
229
224
  children: k("calendar.videoCall", "Video Call")
230
- }), /* @__PURE__ */ S("a", {
225
+ }), /* @__PURE__ */ b("a", {
231
226
  href: Z.videoCallLink,
232
227
  target: "_blank",
233
228
  rel: "noopener noreferrer",
@@ -236,16 +231,16 @@ function T() {
236
231
  })]
237
232
  })]
238
233
  }),
239
- /* @__PURE__ */ C("div", {
234
+ /* @__PURE__ */ x("div", {
240
235
  className: "flex gap-inline-gap",
241
- children: [/* @__PURE__ */ S(y, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
236
+ children: [/* @__PURE__ */ b(le, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
242
237
  className: "min-w-0 flex-1 space-y-1",
243
238
  children: [
244
- /* @__PURE__ */ S("p", {
239
+ /* @__PURE__ */ b("p", {
245
240
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
246
241
  children: k("calendar.eventRules", "Event rules")
247
242
  }),
248
- /* @__PURE__ */ C("p", {
243
+ /* @__PURE__ */ x("p", {
249
244
  className: "font-text-sm text-text-secondary",
250
245
  children: [
251
246
  k("calendar.visibility", "Visibility"),
@@ -253,23 +248,23 @@ function T() {
253
248
  Z.privacy
254
249
  ]
255
250
  }),
256
- Z.maxAttendees ? /* @__PURE__ */ S("p", {
251
+ Z.maxAttendees ? /* @__PURE__ */ b("p", {
257
252
  className: "font-text-sm text-text-secondary",
258
253
  children: k("calendar.attendeeCapacity", "{current} / {max} attendees").replace("{current}", String(Z.currentAttendeeCount ?? 0)).replace("{max}", String(Z.maxAttendees))
259
254
  }) : null,
260
- Z.checkInEnabled ? /* @__PURE__ */ S("p", {
255
+ Z.checkInEnabled ? /* @__PURE__ */ b("p", {
261
256
  className: "font-text-sm text-text-secondary",
262
257
  children: k("calendar.checkInEnabled", "Attendee check-in enabled")
263
258
  }) : null
264
259
  ]
265
260
  })]
266
261
  }),
267
- /* @__PURE__ */ C("div", {
262
+ /* @__PURE__ */ x("div", {
268
263
  className: "flex gap-inline-gap",
269
- children: [/* @__PURE__ */ S(x, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
264
+ children: [/* @__PURE__ */ b(y, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
270
265
  className: "min-w-0 flex-1",
271
266
  children: [
272
- /* @__PURE__ */ C("p", {
267
+ /* @__PURE__ */ x("p", {
273
268
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
274
269
  children: [
275
270
  k("calendar.attendees", "Attendees"),
@@ -278,56 +273,56 @@ function T() {
278
273
  ")"
279
274
  ]
280
275
  }),
281
- Z.attendees && Z.attendees.length > 0 ? /* @__PURE__ */ S("div", {
276
+ Z.attendees && Z.attendees.length > 0 ? /* @__PURE__ */ b("div", {
282
277
  className: "space-y-1",
283
- children: Z.attendees.map((e) => /* @__PURE__ */ C("div", {
278
+ children: Z.attendees.map((e) => /* @__PURE__ */ x("div", {
284
279
  className: "flex items-center justify-between",
285
280
  children: [
286
- /* @__PURE__ */ S("span", {
281
+ /* @__PURE__ */ b("span", {
287
282
  className: "font-text-sm text-text-secondary",
288
283
  children: e.name || e.email || e.userId
289
284
  }),
290
- /* @__PURE__ */ S("span", {
285
+ /* @__PURE__ */ b("span", {
291
286
  className: `font-text-xs px-2 py-0.5 rounded-radius-sm ${e.status === "ACCEPTED" ? "bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300" : e.status === "DECLINED" ? "bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300" : "bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400"}`,
292
287
  children: A[e.status] ?? e.status
293
288
  }),
294
- $(c.CALENDAR_ATTENDEE_DELETE) ? /* @__PURE__ */ S("button", {
289
+ $(o.CALENDAR_ATTENDEE_DELETE) ? /* @__PURE__ */ b("button", {
295
290
  type: "button",
296
291
  onClick: async () => {
297
292
  let t = G?.event?.attendees?.find((t) => (t.email ?? t.userId) === (e.email || e.userId))?.id;
298
- t && (await be({ variables: { attendeeId: t } }), await q());
293
+ t && (await Ce({ variables: { attendeeId: t } }), await q());
299
294
  },
300
- disabled: xe,
295
+ disabled: we,
301
296
  className: "ml-2 font-text-xs text-action-primary-bg hover:underline disabled:opacity-50",
302
297
  children: k("calendar.remove", "Remove")
303
298
  }) : null
304
299
  ]
305
300
  }, e.userId || e.email))
306
- }) : /* @__PURE__ */ S("p", {
301
+ }) : /* @__PURE__ */ b("p", {
307
302
  className: "font-text-sm text-text-secondary",
308
303
  children: k("calendar.noAttendeesYet", "No attendees added yet.")
309
304
  }),
310
- /* @__PURE__ */ C("div", {
305
+ /* @__PURE__ */ x("div", {
311
306
  className: "mt-3 grid grid-cols-1 gap-2 @md:grid-cols-[1fr,1fr,auto]",
312
307
  children: [
313
- /* @__PURE__ */ S("input", {
308
+ /* @__PURE__ */ b("input", {
314
309
  value: L,
315
310
  onChange: (e) => R(e.target.value),
316
311
  placeholder: k("calendar.attendeeEmail", "Attendee email"),
317
312
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
318
313
  "aria-label": k("calendar.attendeeEmail", "Attendee email")
319
314
  }),
320
- /* @__PURE__ */ S("input", {
315
+ /* @__PURE__ */ b("input", {
321
316
  value: z,
322
317
  onChange: (e) => B(e.target.value),
323
318
  placeholder: k("calendar.attendeeName", "Attendee name"),
324
319
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
325
320
  "aria-label": k("calendar.attendeeName", "Attendee name")
326
321
  }),
327
- /* @__PURE__ */ S("button", {
322
+ /* @__PURE__ */ b("button", {
328
323
  type: "button",
329
324
  onClick: async () => {
330
- !T || !L.trim() || (await ye({ variables: {
325
+ !T || !L.trim() || (await Se({ variables: {
331
326
  eventId: T,
332
327
  email: L.trim(),
333
328
  name: z.trim() || void 0
@@ -339,16 +334,16 @@ function T() {
339
334
  })
340
335
  ]
341
336
  }),
342
- /* @__PURE__ */ S("div", {
337
+ /* @__PURE__ */ b("div", {
343
338
  className: "mt-2 flex flex-wrap gap-2",
344
339
  children: [
345
340
  "ACCEPTED",
346
341
  "TENTATIVE",
347
342
  "DECLINED"
348
- ].map((e) => /* @__PURE__ */ S("button", {
343
+ ].map((e) => /* @__PURE__ */ b("button", {
349
344
  type: "button",
350
345
  onClick: async () => {
351
- T && (await Se({ variables: {
346
+ T && (await Y({ variables: {
352
347
  eventId: T,
353
348
  status: e
354
349
  } }), await q());
@@ -360,30 +355,30 @@ function T() {
360
355
  ]
361
356
  })]
362
357
  }),
363
- Z.tags && Z.tags.length > 0 && /* @__PURE__ */ C("div", {
358
+ Z.tags && Z.tags.length > 0 && /* @__PURE__ */ x("div", {
364
359
  className: "flex gap-inline-gap",
365
- children: [/* @__PURE__ */ S(b, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
360
+ children: [/* @__PURE__ */ b(v, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
366
361
  className: "min-w-0 flex-1",
367
- children: [/* @__PURE__ */ S("p", {
362
+ children: [/* @__PURE__ */ b("p", {
368
363
  className: "font-text-sm font-weight-semibold text-text-primary mb-2",
369
364
  children: k("calendar.tags", "Tags")
370
- }), /* @__PURE__ */ S("div", {
365
+ }), /* @__PURE__ */ b("div", {
371
366
  className: "flex flex-wrap gap-2",
372
- children: Z.tags.map((e) => /* @__PURE__ */ S("span", {
367
+ children: Z.tags.map((e) => /* @__PURE__ */ b("span", {
373
368
  className: "px-2 py-0.5 rounded-radius-sm bg-bg-neutral text-text-secondary font-text-xs",
374
369
  children: e
375
370
  }, e))
376
371
  })]
377
372
  })]
378
373
  }),
379
- (Z.recurrence || Z.rrule) && /* @__PURE__ */ C("div", {
374
+ (Z.recurrence || Z.rrule) && /* @__PURE__ */ x("div", {
380
375
  className: "flex gap-inline-gap",
381
- children: [/* @__PURE__ */ S(v, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
376
+ children: [/* @__PURE__ */ b(ce, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
382
377
  className: "min-w-0 flex-1",
383
- children: [/* @__PURE__ */ S("p", {
378
+ children: [/* @__PURE__ */ b("p", {
384
379
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
385
380
  children: k("calendar.recurrence", "Recurrence")
386
- }), Z.recurrence ? /* @__PURE__ */ C("p", {
381
+ }), Z.recurrence ? /* @__PURE__ */ x("p", {
387
382
  className: "font-text-sm text-text-secondary",
388
383
  children: [
389
384
  Z.recurrence.pattern,
@@ -391,112 +386,112 @@ function T() {
391
386
  k("calendar.recurrenceEveryInterval", "every {interval}").replace("{interval}", String(Z.recurrence.interval)),
392
387
  ")"
393
388
  ]
394
- }) : /* @__PURE__ */ S("p", {
389
+ }) : /* @__PURE__ */ b("p", {
395
390
  className: "font-text-sm text-text-secondary font-mono break-all",
396
391
  children: Z.rrule
397
392
  })]
398
393
  })]
399
394
  }),
400
- /* @__PURE__ */ C("div", {
395
+ /* @__PURE__ */ x("div", {
401
396
  className: "flex gap-inline-gap",
402
- children: [/* @__PURE__ */ S(f, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
397
+ children: [/* @__PURE__ */ b(h, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
403
398
  className: "min-w-0 flex-1",
404
399
  children: [
405
- /* @__PURE__ */ S("p", {
400
+ /* @__PURE__ */ b("p", {
406
401
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
407
402
  children: k("calendar.reminders", "Reminders")
408
403
  }),
409
- Z.reminders && Z.reminders.length > 0 ? /* @__PURE__ */ S("div", {
404
+ Z.reminders && Z.reminders.length > 0 ? /* @__PURE__ */ b("div", {
410
405
  className: "space-y-1",
411
- children: Z.reminders.map((e) => /* @__PURE__ */ C("div", {
406
+ children: Z.reminders.map((e) => /* @__PURE__ */ x("div", {
412
407
  className: "flex items-center justify-between gap-3",
413
- children: [/* @__PURE__ */ S("p", {
408
+ children: [/* @__PURE__ */ b("p", {
414
409
  className: "font-text-sm text-text-secondary",
415
410
  children: k("calendar.reminderSummary", "{minutes} minutes before ({method})").replace("{minutes}", String(e.minutesBefore)).replace("{method}", M[e.method] ?? e.method.toLowerCase())
416
- }), /* @__PURE__ */ S("button", {
411
+ }), /* @__PURE__ */ b("button", {
417
412
  type: "button",
418
413
  onClick: async () => {
419
- e.id && (await we({ variables: { id: e.id } }), await q());
414
+ e.id && (await Ee({ variables: { id: e.id } }), await q());
420
415
  },
421
- disabled: X,
416
+ disabled: De,
422
417
  className: "font-text-xs text-action-primary-bg hover:underline disabled:opacity-50",
423
418
  children: k("calendar.delete", "Delete")
424
419
  })]
425
420
  }, e.id))
426
- }) : /* @__PURE__ */ S("p", {
421
+ }) : /* @__PURE__ */ b("p", {
427
422
  className: "font-text-sm text-text-secondary",
428
423
  children: k("calendar.noRemindersConfigured", "No reminders configured yet.")
429
424
  }),
430
- /* @__PURE__ */ C("div", {
425
+ /* @__PURE__ */ x("div", {
431
426
  className: "mt-3 grid grid-cols-1 gap-2 @md:grid-cols-[1fr,1fr,auto]",
432
427
  children: [
433
- /* @__PURE__ */ S("input", {
428
+ /* @__PURE__ */ b("input", {
434
429
  type: "number",
435
430
  min: "1",
436
431
  value: V,
437
- onChange: (e) => pe(e.target.value),
432
+ onChange: (e) => ge(e.target.value),
438
433
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
439
434
  "aria-label": k("calendar.reminderMinutesBefore", "Minutes before event")
440
435
  }),
441
- /* @__PURE__ */ C("select", {
436
+ /* @__PURE__ */ x("select", {
442
437
  value: H,
443
- onChange: (e) => me(e.target.value),
438
+ onChange: (e) => _e(e.target.value),
444
439
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
445
440
  "aria-label": k("calendar.reminderChannel", "Reminder channel"),
446
441
  children: [
447
- /* @__PURE__ */ S("option", {
442
+ /* @__PURE__ */ b("option", {
448
443
  value: "IN_APP",
449
444
  children: k("calendar.inApp", "In app")
450
445
  }),
451
- /* @__PURE__ */ S("option", {
446
+ /* @__PURE__ */ b("option", {
452
447
  value: "EMAIL",
453
448
  children: k("calendar.email", "Email")
454
449
  }),
455
- /* @__PURE__ */ S("option", {
450
+ /* @__PURE__ */ b("option", {
456
451
  value: "SMS",
457
452
  children: "SMS"
458
453
  })
459
454
  ]
460
455
  }),
461
- /* @__PURE__ */ S("button", {
456
+ /* @__PURE__ */ b("button", {
462
457
  type: "button",
463
458
  onClick: async () => {
464
- T && (await Ce({ variables: { input: {
459
+ T && (await Te({ variables: { input: {
465
460
  eventId: T,
466
461
  minutesBefore: parseInt(V, 10),
467
462
  channel: H
468
463
  } } }), await q());
469
464
  },
470
- disabled: Y,
465
+ disabled: X,
471
466
  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 disabled:opacity-50",
472
- children: Y ? k("calendar.adding", "Adding...") : k("calendar.addReminder", "Add reminder")
467
+ children: X ? k("calendar.adding", "Adding...") : k("calendar.addReminder", "Add reminder")
473
468
  })
474
469
  ]
475
470
  })
476
471
  ]
477
472
  })]
478
473
  }),
479
- Z.resourceBookings && Z.resourceBookings.length > 0 && /* @__PURE__ */ C("div", {
474
+ Z.resourceBookings && Z.resourceBookings.length > 0 && /* @__PURE__ */ x("div", {
480
475
  className: "flex gap-inline-gap",
481
- children: [/* @__PURE__ */ S(x, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
476
+ children: [/* @__PURE__ */ b(y, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
482
477
  className: "min-w-0 flex-1",
483
- children: [/* @__PURE__ */ S("p", {
478
+ children: [/* @__PURE__ */ b("p", {
484
479
  className: "font-text-sm font-weight-semibold text-text-primary mb-2",
485
480
  children: k("calendar.resourceBookings", "Resource bookings")
486
- }), /* @__PURE__ */ S("div", {
481
+ }), /* @__PURE__ */ b("div", {
487
482
  className: "space-y-2",
488
- children: Z.resourceBookings.map((e) => /* @__PURE__ */ C("div", {
483
+ children: Z.resourceBookings.map((e) => /* @__PURE__ */ x("div", {
489
484
  className: "rounded-radius-md border border-border-subtle p-3",
490
485
  children: [
491
- /* @__PURE__ */ S("p", {
486
+ /* @__PURE__ */ b("p", {
492
487
  className: "font-text-sm font-weight-medium text-text-primary",
493
488
  children: e.resourceName
494
489
  }),
495
- /* @__PURE__ */ S("p", {
490
+ /* @__PURE__ */ b("p", {
496
491
  className: "font-text-xs text-text-tertiary",
497
492
  children: [e.resourceType, e.resourceLocation].filter(Boolean).join(" • ")
498
493
  }),
499
- e.notes ? /* @__PURE__ */ S("p", {
494
+ e.notes ? /* @__PURE__ */ b("p", {
500
495
  className: "mt-1 font-text-sm text-text-secondary",
501
496
  children: e.notes
502
497
  }) : null
@@ -505,24 +500,24 @@ function T() {
505
500
  })]
506
501
  })]
507
502
  }),
508
- Z.attachments && Z.attachments.length > 0 && /* @__PURE__ */ C("div", {
503
+ Z.attachments && Z.attachments.length > 0 && /* @__PURE__ */ x("div", {
509
504
  className: "flex gap-inline-gap",
510
- children: [/* @__PURE__ */ S(_, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
505
+ children: [/* @__PURE__ */ b(se, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
511
506
  className: "min-w-0 flex-1",
512
- children: [/* @__PURE__ */ S("p", {
507
+ children: [/* @__PURE__ */ b("p", {
513
508
  className: "font-text-sm font-weight-semibold text-text-primary mb-2",
514
509
  children: k("calendar.attachments", "Attachments")
515
- }), /* @__PURE__ */ S("div", {
510
+ }), /* @__PURE__ */ b("div", {
516
511
  className: "space-y-2",
517
- children: Z.attachments.map((e) => /* @__PURE__ */ C("div", {
512
+ children: Z.attachments.map((e) => /* @__PURE__ */ x("div", {
518
513
  className: "flex items-center gap-2 font-text-sm",
519
- children: [/* @__PURE__ */ S("a", {
514
+ children: [/* @__PURE__ */ b("a", {
520
515
  href: e.url || "#",
521
516
  target: "_blank",
522
517
  rel: "noopener noreferrer",
523
518
  className: "text-blue-600 dark:text-blue-400 hover:underline break-all",
524
519
  children: e.name
525
- }), e.fileId ? /* @__PURE__ */ C("span", {
520
+ }), e.fileId ? /* @__PURE__ */ x("span", {
526
521
  className: "text-text-tertiary",
527
522
  children: [
528
523
  "(",
@@ -534,40 +529,40 @@ function T() {
534
529
  })]
535
530
  })]
536
531
  }),
537
- /* @__PURE__ */ C("div", {
532
+ /* @__PURE__ */ x("div", {
538
533
  className: "flex gap-inline-gap",
539
- children: [/* @__PURE__ */ S(b, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ C("div", {
534
+ children: [/* @__PURE__ */ b(v, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ x("div", {
540
535
  className: "min-w-0 flex-1",
541
- children: [/* @__PURE__ */ S("p", {
536
+ children: [/* @__PURE__ */ b("p", {
542
537
  className: "font-text-sm font-weight-semibold text-text-primary mb-1",
543
538
  children: k("calendar.status", "Status")
544
- }), /* @__PURE__ */ S("span", {
539
+ }), /* @__PURE__ */ b("span", {
545
540
  className: `font-text-xs px-2 py-0.5 rounded-radius-sm ${Z.status === "CONFIRMED" ? "bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300" : Z.status === "CANCELLED" ? "bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300" : "bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300"}`,
546
541
  children: j[Z.status] ?? Z.status
547
542
  })]
548
543
  })]
549
544
  }),
550
- Z.description && /* @__PURE__ */ C("div", {
545
+ Z.description && /* @__PURE__ */ x("div", {
551
546
  className: "pt-stack-gap border-t border-border-default",
552
- children: [/* @__PURE__ */ S("p", {
547
+ children: [/* @__PURE__ */ b("p", {
553
548
  className: "font-text-sm font-weight-semibold text-text-primary mb-2",
554
549
  children: k("calendar.notes", "Notes")
555
- }), /* @__PURE__ */ S("p", {
550
+ }), /* @__PURE__ */ b("p", {
556
551
  className: "font-text-sm text-text-secondary whitespace-pre-wrap",
557
552
  children: Z.description
558
553
  })]
559
554
  }),
560
- Array.isArray(Z.metadata?.links) && Z.metadata?.links.length > 0 && /* @__PURE__ */ C("div", {
555
+ Array.isArray(Z.metadata?.links) && Z.metadata?.links.length > 0 && /* @__PURE__ */ x("div", {
561
556
  className: "pt-stack-gap border-t border-border-default",
562
- children: [/* @__PURE__ */ C("div", {
557
+ children: [/* @__PURE__ */ x("div", {
563
558
  className: "flex items-center gap-inline-gap-sm mb-2",
564
- children: [/* @__PURE__ */ S(h, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ S("p", {
559
+ children: [/* @__PURE__ */ b(oe, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ b("p", {
565
560
  className: "font-text-sm font-weight-semibold text-text-primary",
566
561
  children: k("calendar.links", "Links")
567
562
  })]
568
- }), /* @__PURE__ */ S("div", {
563
+ }), /* @__PURE__ */ b("div", {
569
564
  className: "space-y-2",
570
- children: Z.metadata.links.map((e) => /* @__PURE__ */ S("a", {
565
+ children: Z.metadata.links.map((e) => /* @__PURE__ */ b("a", {
571
566
  href: e,
572
567
  target: "_blank",
573
568
  rel: "noopener noreferrer",
@@ -580,42 +575,42 @@ function T() {
580
575
  })]
581
576
  })
582
577
  }),
583
- /* @__PURE__ */ S(s, {
578
+ /* @__PURE__ */ b(ie, {
584
579
  open: N,
585
580
  event: Z,
586
581
  onClose: () => P(!1)
587
582
  }),
588
- /* @__PURE__ */ S(ie, {
583
+ /* @__PURE__ */ b(c, {
589
584
  open: F,
590
585
  title: k("calendar.deleteEvent", "Delete Event"),
591
586
  message: k("calendar.deleteEventConfirmation", "Are you sure you want to delete \"{title}\"? This action cannot be undone.").replace("{title}", Z.title),
592
587
  confirmLabel: k("calendar.delete", "Delete"),
593
588
  variant: "danger",
594
- loading: ve,
589
+ loading: xe,
595
590
  onConfirm: async () => {
596
- if (T && await ae({
591
+ if (T && await l({
597
592
  title: k("calendar.deleteEvent", "Delete Event"),
598
593
  message: k("calendar.deleteEventConfirmation", "Are you sure you want to delete \"{title}\"? This action cannot be undone.").replace("{title}", Z?.title ?? ""),
599
594
  okButtonTitle: k("calendar.delete", "Delete")
600
595
  }) !== !1) try {
601
- await _e({ variables: { id: T } }), l("success"), I(!1), E(`${D}/view/week`);
596
+ await be({ variables: { id: T } }), u("success"), I(!1), E(`${D}/view/week`);
602
597
  } catch (e) {
603
- throw l("error"), e;
598
+ throw u("error"), e;
604
599
  }
605
600
  },
606
601
  onCancel: () => I(!1)
607
602
  })
608
603
  ]
609
- }) : /* @__PURE__ */ S("div", {
604
+ }) : /* @__PURE__ */ b("div", {
610
605
  className: "@container min-h-screen bg-bg-canvas p-page-padding",
611
- children: /* @__PURE__ */ S("div", {
606
+ children: /* @__PURE__ */ b("div", {
612
607
  className: "max-w-3xl mx-auto",
613
- children: /* @__PURE__ */ C("div", {
608
+ children: /* @__PURE__ */ x("div", {
614
609
  className: "text-center py-12",
615
- children: [/* @__PURE__ */ S("p", {
610
+ children: [/* @__PURE__ */ b("p", {
616
611
  className: "font-text-md text-text-secondary",
617
612
  children: k("calendar.eventNotFound", "Event not found")
618
- }), /* @__PURE__ */ S("button", {
613
+ }), /* @__PURE__ */ b("button", {
619
614
  type: "button",
620
615
  onClick: () => E(`${D}/view/week`),
621
616
  className: "mt-stack-gap px-element-padding py-element-padding-sm 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",
@@ -623,7 +618,7 @@ function T() {
623
618
  })]
624
619
  })
625
620
  })
626
- }) : /* @__PURE__ */ S(d, {
621
+ }) : /* @__PURE__ */ b(f, {
627
622
  title: k("calendar.accessDenied", "Access Denied"),
628
623
  description: k("calendar.noPermissionViewEvent", "You don't have permission to view this event.")
629
624
  });