@burdenoff/microfe-calendar 2026.626.2 → 2026.704.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.
@@ -1,9 +1,9 @@
1
1
  import { useCalendar as e } from "../providers/CalendarProvider.js";
2
2
  import { useGetCalendarsQuery as t } from "../generated/wspace-operations.js";
3
3
  import { useCalendarStore as n } from "../store/calendarStore.js";
4
- import { useSafePermissions as ee } from "../hooks/useSafePermissions.js";
5
- import { formatDate as r } from "../utils/dateHelpers.js";
6
- import { WeekView as i } from "../components/WeekView.js";
4
+ import { useSafePermissions as r } from "../hooks/useSafePermissions.js";
5
+ import { formatDate as i } from "../utils/dateHelpers.js";
6
+ import { WeekView as ee } from "../components/WeekView.js";
7
7
  import { MonthView as a } from "../components/MonthView.js";
8
8
  import { DayView as o } from "../components/DayView.js";
9
9
  import { AgendaView as s } from "../components/AgendaView.js";
@@ -11,290 +11,341 @@ import { YearView as c } from "../components/YearView.js";
11
11
  import { TimelineView as l } from "../components/TimelineView.js";
12
12
  import { ViewSwitcher as u } from "../components/ViewSwitcher.js";
13
13
  import { MiniCalendar as d } from "../components/MiniCalendar.js";
14
- import { EventFormModal as te } from "../components/EventFormModal.js";
15
- import { CALENDAR_PERMISSIONS as f } from "../constants/permissions.js";
16
- import { useEffect as ne, useState as p } from "react";
17
- import { AccessDenied as m } from "@burdenoff/fe-libs/shared/components";
18
- import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
- import { CalendarPlus as h, ChevronLeft as g, ChevronRight as _, DoorOpen as v, PanelLeft as y, Plus as b, Rss as x, Search as ie, Settings2 as S } from "lucide-react";
20
- import { useParams as ae } from "react-router-dom";
21
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
22
- import { AuroraBackground as T, GradientText as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
14
+ import { EventFormModal as f } from "../components/EventFormModal.js";
15
+ import { TaskEventDetail as p } from "../components/TaskEventDetail.js";
16
+ import { CALENDAR_PERMISSIONS as m } from "../constants/permissions.js";
17
+ import { useEffect as h, useState as g } from "react";
18
+ import { AccessDenied as _ } from "@burdenoff/fe-libs/shared/components";
19
+ import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
20
+ import { CalendarPlus as y, ChevronLeft as b, ChevronRight as te, DoorOpen as ne, PanelLeft as re, Plus as ie, Rss as ae, Search as oe, Settings2 as x } from "lucide-react";
21
+ import { useParams as se } from "react-router-dom";
22
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
23
+ import { AuroraBackground as w, GradientText as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
23
24
  //#region src/pages/CalendarPage.tsx
24
- function k() {
25
- let { viewType: k } = ae(), { hasPermission: A, isLoading: j } = ee(), { navigate: M, basePath: N } = e(), P = n((e) => e.currentView), F = n((e) => e.currentDate), I = n((e) => e.setView), L = n((e) => e.navigateDate), R = n((e) => e.miniCalendarVisible), z = n((e) => e.toggleMiniCalendar), B = n((e) => e.visibleCalendars), V = n((e) => e.setVisibleCalendars), H = n((e) => e.eventFilter), U = n((e) => e.updateEventFilter), { t: W } = re(), G = (e, t) => {
26
- let n = W(e);
25
+ function O() {
26
+ let { viewType: O } = se(), { hasPermission: k, isLoading: A } = r(), { navigate: j, basePath: M, taskOverlay: N } = e(), P = n((e) => e.currentView), F = n((e) => e.currentDate), I = n((e) => e.setView), L = n((e) => e.navigateDate), ce = n((e) => e.miniCalendarVisible), R = n((e) => e.toggleMiniCalendar), z = n((e) => e.visibleCalendars), B = n((e) => e.setVisibleCalendars), V = n((e) => e.eventFilter), H = n((e) => e.updateEventFilter), { t: U } = v(), W = (e, t) => {
27
+ let n = U(e);
27
28
  return n === e ? t : n;
28
- }, [K, q] = p(!1), [J, Y] = p(null), X = A(f.CALENDAR_EVENT_CREATE), Z = X ? (e, t) => {
29
- Y({
29
+ }, [G, K] = g(!1), [q, J] = g(null), Y = k(m.CALENDAR_EVENT_CREATE), X = Y ? (e, t) => {
30
+ J({
30
31
  date: e,
31
32
  hour: t ?? 9
32
- }), q(!0);
33
- } : void 0, { data: oe } = t({
33
+ }), K(!0);
34
+ } : void 0, { data: le } = t({
34
35
  variables: { pagination: { limit: 50 } },
35
- skip: j
36
- }), Q = oe?.calendars?.calendars ?? [], $ = B.size > 0 ? B : new Set(Q.map((e) => e.id)), se = (e) => {
37
- let t = new Set($);
38
- t.has(e) ? t.delete(e) : t.add(e), V(Array.from(t));
36
+ skip: A
37
+ }), Z = le?.calendars?.calendars ?? [], Q = z.size > 0 ? z : new Set(Z.map((e) => e.id)), $ = (e) => {
38
+ let t = new Set(Q);
39
+ t.has(e) ? t.delete(e) : t.add(e), B(Array.from(t));
39
40
  };
40
- return ne(() => {
41
- k && k !== P && I(k);
41
+ return h(() => {
42
+ O && O !== P && I(O);
42
43
  }, [
43
- k,
44
+ O,
44
45
  P,
45
46
  I
46
- ]), j ? /* @__PURE__ */ C("div", {
47
+ ]), A ? /* @__PURE__ */ S("div", {
47
48
  className: "@container min-h-screen bg-bg-canvas flex items-center justify-center",
48
- children: /* @__PURE__ */ C("p", {
49
+ children: /* @__PURE__ */ S("p", {
49
50
  className: "font-text-md text-text-secondary",
50
- children: G("calendar.loading", "Loading...")
51
+ children: W("calendar.loading", "Loading...")
51
52
  })
52
- }) : A(f.CALENDAR_READ) ? /* @__PURE__ */ w("div", {
53
+ }) : k(m.CALENDAR_READ) ? /* @__PURE__ */ C("div", {
53
54
  className: "@container min-h-screen bg-bg-canvas",
54
55
  children: [
55
- /* @__PURE__ */ w("header", {
56
+ /* @__PURE__ */ C("header", {
56
57
  className: "relative overflow-hidden border-b border-border-seam bg-bg-surface px-page-padding py-element-padding",
57
58
  children: [
58
- /* @__PURE__ */ C(T, { intensity: "subtle" }),
59
- /* @__PURE__ */ w("div", {
59
+ /* @__PURE__ */ S(w, { intensity: "subtle" }),
60
+ /* @__PURE__ */ C("div", {
60
61
  className: "flex flex-col @lg:flex-row @lg:items-center @lg:justify-between gap-stack-gap",
61
- children: [/* @__PURE__ */ w("div", {
62
+ children: [/* @__PURE__ */ C("div", {
62
63
  className: "flex items-center gap-inline-gap",
63
64
  children: [
64
- /* @__PURE__ */ C("button", {
65
+ /* @__PURE__ */ S("button", {
65
66
  type: "button",
66
- onClick: z,
67
+ onClick: R,
67
68
  className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
68
- "aria-label": G("calendar.toggleSidebar", "Toggle sidebar"),
69
- children: /* @__PURE__ */ C(y, { className: "size-4" })
69
+ "aria-label": W("calendar.toggleSidebar", "Toggle sidebar"),
70
+ children: /* @__PURE__ */ S(re, { className: "size-4" })
70
71
  }),
71
- /* @__PURE__ */ C("button", {
72
+ /* @__PURE__ */ S("button", {
72
73
  type: "button",
73
74
  onClick: () => L("today"),
74
75
  className: "px-element-padding py-element-padding-sm 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",
75
- children: G("calendar.today", "Today")
76
+ children: W("calendar.today", "Today")
76
77
  }),
77
- /* @__PURE__ */ w("div", {
78
+ /* @__PURE__ */ C("div", {
78
79
  className: "flex items-center gap-inline-gap-sm",
79
- children: [/* @__PURE__ */ C("button", {
80
+ children: [/* @__PURE__ */ S("button", {
80
81
  type: "button",
81
82
  onClick: () => L("prev"),
82
83
  className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
83
- "aria-label": G("calendar.previous", "Previous"),
84
- children: /* @__PURE__ */ C(g, { className: "size-4" })
85
- }), /* @__PURE__ */ C("button", {
84
+ "aria-label": W("calendar.previous", "Previous"),
85
+ children: /* @__PURE__ */ S(b, { className: "size-4" })
86
+ }), /* @__PURE__ */ S("button", {
86
87
  type: "button",
87
88
  onClick: () => L("next"),
88
89
  className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
89
- "aria-label": G("calendar.next", "Next"),
90
- children: /* @__PURE__ */ C(_, { className: "size-4" })
90
+ "aria-label": W("calendar.next", "Next"),
91
+ children: /* @__PURE__ */ S(te, { className: "size-4" })
91
92
  })]
92
93
  }),
93
- /* @__PURE__ */ C("h2", {
94
+ /* @__PURE__ */ S("h2", {
94
95
  className: "font-heading-md text-text-primary tabular-nums",
95
- children: /* @__PURE__ */ C(E, { children: r(F) })
96
+ children: /* @__PURE__ */ S(T, { children: i(F) })
96
97
  })
97
98
  ]
98
- }), /* @__PURE__ */ w("div", {
99
+ }), /* @__PURE__ */ C("div", {
99
100
  className: "flex items-center gap-inline-gap",
100
- children: [/* @__PURE__ */ C(u, {}), X ? /* @__PURE__ */ w("button", {
101
+ children: [/* @__PURE__ */ S(u, {}), Y ? /* @__PURE__ */ C("button", {
101
102
  type: "button",
102
103
  onClick: () => {
103
- Y(null), q(!0);
104
+ J(null), K(!0);
104
105
  },
105
106
  className: "inline-flex items-center gap-inline-gap-sm 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",
106
- children: [/* @__PURE__ */ C(b, { className: "size-4" }), /* @__PURE__ */ C("span", {
107
+ children: [/* @__PURE__ */ S(ie, { className: "size-4" }), /* @__PURE__ */ S("span", {
107
108
  className: "hidden @sm:inline",
108
- children: G("calendar.createEvent", "Create Event")
109
+ children: W("calendar.createEvent", "Create Event")
109
110
  })]
110
111
  }) : null]
111
112
  })]
112
113
  }),
113
- /* @__PURE__ */ C(O, {
114
+ /* @__PURE__ */ S(D, {
114
115
  className: "relative mt-element-padding max-w-3xl",
115
- children: G("calendar.pagePurpose", "Your shared schedule. See, create, and manage events across day, week, month, agenda, and timeline views — then toggle calendars, search, and overlay scheduled jobs from the sidebar so the whole team stays in sync.")
116
+ children: W("calendar.pagePurpose", "Your shared schedule. See, create, and manage events across day, week, month, agenda, and timeline views — then toggle calendars, search, and overlay scheduled jobs from the sidebar so the whole team stays in sync.")
116
117
  })
117
118
  ]
118
119
  }),
119
- /* @__PURE__ */ w("div", {
120
+ /* @__PURE__ */ C("div", {
120
121
  className: "flex min-h-0 flex-1",
121
- children: [R && /* @__PURE__ */ w("aside", {
122
+ children: [ce && /* @__PURE__ */ C("aside", {
122
123
  className: "hidden @lg:block w-72 border-r border-border-seam bg-bg-surface p-section-padding space-y-5",
123
124
  children: [
124
- /* @__PURE__ */ C(d, {}),
125
- /* @__PURE__ */ w("div", {
125
+ /* @__PURE__ */ S(d, {}),
126
+ /* @__PURE__ */ C("div", {
126
127
  className: "space-y-3",
127
- children: [/* @__PURE__ */ w("div", {
128
+ children: [/* @__PURE__ */ C("div", {
128
129
  className: "flex items-center gap-2",
129
- children: [/* @__PURE__ */ C(ie, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ C("input", {
130
+ children: [/* @__PURE__ */ S(oe, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ S("input", {
130
131
  type: "search",
131
- value: H.search ?? "",
132
- onChange: (e) => U({ search: e.target.value.trim() || void 0 }),
133
- placeholder: G("calendar.searchEvents", "Search events, tags, or calendars"),
134
- "aria-label": G("calendar.searchEvents", "Search events, tags, or calendars"),
132
+ value: V.search ?? "",
133
+ onChange: (e) => H({ search: e.target.value.trim() || void 0 }),
134
+ placeholder: W("calendar.searchEvents", "Search events, tags, or calendars"),
135
+ "aria-label": W("calendar.searchEvents", "Search events, tags, or calendars"),
135
136
  className: "w-full 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"
136
137
  })]
137
- }), /* @__PURE__ */ w("select", {
138
- value: H.status?.[0] ?? "",
139
- onChange: (e) => U({ status: e.target.value ? [e.target.value] : void 0 }),
138
+ }), /* @__PURE__ */ C("select", {
139
+ value: V.status?.[0] ?? "",
140
+ onChange: (e) => H({ status: e.target.value ? [e.target.value] : void 0 }),
140
141
  className: "w-full 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",
141
142
  children: [
142
- /* @__PURE__ */ C("option", {
143
+ /* @__PURE__ */ S("option", {
143
144
  value: "",
144
- children: G("calendar.allStatuses", "All statuses")
145
+ children: W("calendar.allStatuses", "All statuses")
145
146
  }),
146
- /* @__PURE__ */ C("option", {
147
+ /* @__PURE__ */ S("option", {
147
148
  value: "CONFIRMED",
148
- children: G("calendar.eventStatusConfirmed", "Confirmed")
149
+ children: W("calendar.eventStatusConfirmed", "Confirmed")
149
150
  }),
150
- /* @__PURE__ */ C("option", {
151
+ /* @__PURE__ */ S("option", {
151
152
  value: "TENTATIVE",
152
- children: G("calendar.eventStatusTentative", "Tentative")
153
+ children: W("calendar.eventStatusTentative", "Tentative")
153
154
  }),
154
- /* @__PURE__ */ C("option", {
155
+ /* @__PURE__ */ S("option", {
155
156
  value: "CANCELLED",
156
- children: G("calendar.eventStatusCancelled", "Cancelled")
157
+ children: W("calendar.eventStatusCancelled", "Cancelled")
157
158
  })
158
159
  ]
159
160
  })]
160
161
  }),
161
- /* @__PURE__ */ w("div", {
162
+ /* @__PURE__ */ C("div", {
162
163
  className: "space-y-3",
163
164
  children: [
164
- /* @__PURE__ */ w("div", {
165
+ /* @__PURE__ */ C("div", {
165
166
  className: "flex items-center justify-between",
166
- children: [/* @__PURE__ */ C("h3", {
167
+ children: [/* @__PURE__ */ S("h3", {
167
168
  className: "font-text-sm font-weight-semibold text-text-primary",
168
- children: G("calendar.visibleCalendars", "Visible calendars")
169
- }), /* @__PURE__ */ C("button", {
169
+ children: W("calendar.visibleCalendars", "Visible calendars")
170
+ }), /* @__PURE__ */ S("button", {
170
171
  type: "button",
171
- onClick: () => V([]),
172
+ onClick: () => B([]),
172
173
  className: "font-text-xs text-action-primary-bg hover:underline",
173
- children: G("calendar.showAll", "Show all")
174
+ children: W("calendar.showAll", "Show all")
174
175
  })]
175
176
  }),
176
- /* @__PURE__ */ C("div", {
177
+ /* @__PURE__ */ S("div", {
177
178
  className: "space-y-2 max-h-[280px] overflow-auto pr-1",
178
- children: Q.map((e) => /* @__PURE__ */ w("label", {
179
+ children: Z.map((e) => /* @__PURE__ */ C("label", {
179
180
  className: "flex items-center gap-3 rounded-radius-md border border-border-subtle px-3 py-2 hover:bg-bg-canvas",
180
181
  children: [
181
- /* @__PURE__ */ C("input", {
182
+ /* @__PURE__ */ S("input", {
182
183
  type: "checkbox",
183
- checked: $.has(e.id),
184
- onChange: () => se(e.id),
184
+ checked: Q.has(e.id),
185
+ onChange: () => $(e.id),
185
186
  className: "size-4 rounded border-border-default",
186
187
  "aria-label": e.name
187
188
  }),
188
- /* @__PURE__ */ C("span", {
189
+ /* @__PURE__ */ S("span", {
189
190
  className: "size-3 rounded-full shrink-0",
190
191
  style: { backgroundColor: e.color ?? "var(--color-action-primary-bg)" }
191
192
  }),
192
- /* @__PURE__ */ C("span", {
193
+ /* @__PURE__ */ S("span", {
193
194
  className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
194
195
  children: e.name
195
196
  })
196
197
  ]
197
198
  }, e.id))
198
199
  }),
199
- /* @__PURE__ */ w("div", {
200
+ /* @__PURE__ */ C("div", {
200
201
  className: "rounded-radius-md border border-border-subtle bg-bg-canvas px-3 py-2",
201
- children: [/* @__PURE__ */ C("p", {
202
+ children: [/* @__PURE__ */ S("p", {
202
203
  className: "font-text-xs font-weight-semibold text-text-primary mb-1",
203
- children: G("calendar.schedulerOverlay", "Scheduler overlay")
204
- }), /* @__PURE__ */ C("p", {
204
+ children: W("calendar.schedulerOverlay", "Scheduler overlay")
205
+ }), /* @__PURE__ */ S("p", {
205
206
  className: "font-text-xs text-text-secondary",
206
- children: G("calendar.schedulerOverlayDescription", "Scheduled jobs from scheduler are shown in calendar views and deep-link to /scheduler.")
207
+ children: W("calendar.schedulerOverlayDescription", "Scheduled jobs from scheduler are shown in calendar views and deep-link to /scheduler.")
207
208
  })]
209
+ }),
210
+ N && /* @__PURE__ */ C("div", {
211
+ className: "space-y-2 rounded-radius-md border border-border-subtle px-3 py-2",
212
+ children: [
213
+ /* @__PURE__ */ S("p", {
214
+ className: "font-text-xs font-weight-semibold text-text-primary",
215
+ children: W("calendar.taskOverlay", "Tasks & milestones")
216
+ }),
217
+ /* @__PURE__ */ C("label", {
218
+ className: "flex items-center gap-3 py-1",
219
+ children: [
220
+ /* @__PURE__ */ S("input", {
221
+ type: "checkbox",
222
+ checked: V.showTasks !== !1,
223
+ onChange: (e) => H({ showTasks: e.target.checked }),
224
+ className: "size-4 rounded border-border-default",
225
+ "aria-label": W("calendar.showTasks", "Show tasks")
226
+ }),
227
+ /* @__PURE__ */ S("span", {
228
+ className: "size-3 rounded-full shrink-0",
229
+ style: { backgroundColor: "var(--color-accent-blue)" }
230
+ }),
231
+ /* @__PURE__ */ S("span", {
232
+ className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
233
+ children: W("calendar.showTasks", "Show tasks")
234
+ })
235
+ ]
236
+ }),
237
+ /* @__PURE__ */ C("label", {
238
+ className: "flex items-center gap-3 py-1",
239
+ children: [
240
+ /* @__PURE__ */ S("input", {
241
+ type: "checkbox",
242
+ checked: V.showMilestones !== !1,
243
+ onChange: (e) => H({ showMilestones: e.target.checked }),
244
+ className: "size-4 rounded border-border-default",
245
+ "aria-label": W("calendar.showMilestones", "Show milestones")
246
+ }),
247
+ /* @__PURE__ */ S("span", {
248
+ className: "size-3 rounded-full shrink-0",
249
+ style: { backgroundColor: "var(--color-accent-purple)" }
250
+ }),
251
+ /* @__PURE__ */ S("span", {
252
+ className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
253
+ children: W("calendar.showMilestones", "Show milestones")
254
+ })
255
+ ]
256
+ })
257
+ ]
208
258
  })
209
259
  ]
210
260
  }),
211
- /* @__PURE__ */ w("div", {
261
+ /* @__PURE__ */ C("div", {
212
262
  className: "space-y-2 pt-2 border-t border-border-subtle",
213
263
  children: [
214
- /* @__PURE__ */ w("button", {
264
+ /* @__PURE__ */ C("button", {
215
265
  type: "button",
216
- onClick: () => M(`${N}/settings`),
266
+ onClick: () => j(`${M}/settings`),
217
267
  className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
218
- children: [/* @__PURE__ */ C(S, { className: "size-4" }), G("calendar.manageCalendarSettings", "Manage calendar settings")]
268
+ children: [/* @__PURE__ */ S(x, { className: "size-4" }), W("calendar.manageCalendarSettings", "Manage calendar settings")]
219
269
  }),
220
- /* @__PURE__ */ C("button", {
270
+ /* @__PURE__ */ S("button", {
221
271
  type: "button",
222
- onClick: () => M(`${N}/resources`),
272
+ onClick: () => j(`${M}/resources`),
223
273
  className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
224
- children: G("calendar.openResources", "Open resources")
274
+ children: W("calendar.openResources", "Open resources")
225
275
  }),
226
- /* @__PURE__ */ C("button", {
276
+ /* @__PURE__ */ S("button", {
227
277
  type: "button",
228
- onClick: () => M(`${N}/subscriptions`),
278
+ onClick: () => j(`${M}/subscriptions`),
229
279
  className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
230
- children: G("calendar.exportAndSubscriptions", "Export and subscriptions")
280
+ children: W("calendar.exportAndSubscriptions", "Export and subscriptions")
231
281
  })
232
282
  ]
233
283
  })
234
284
  ]
235
- }), /* @__PURE__ */ w("div", {
285
+ }), /* @__PURE__ */ C("div", {
236
286
  className: "min-w-0 flex-1 p-page-padding",
237
287
  children: [
238
- /* @__PURE__ */ C(D, {
288
+ /* @__PURE__ */ S(E, {
239
289
  storageKey: "calendar-overview",
240
290
  className: "mb-stack-gap",
241
291
  steps: [
242
- ...X ? [{
292
+ ...Y ? [{
243
293
  id: "create-event",
244
- label: G("calendar.nextStepCreateEvent", "Create your first event"),
245
- description: G("calendar.nextStepCreateEventDesc", "Add a meeting, reminder, or all-day event to this calendar."),
246
- icon: /* @__PURE__ */ C(h, { className: "size-4" }),
294
+ label: W("calendar.nextStepCreateEvent", "Create your first event"),
295
+ description: W("calendar.nextStepCreateEventDesc", "Add a meeting, reminder, or all-day event to this calendar."),
296
+ icon: /* @__PURE__ */ S(y, { className: "size-4" }),
247
297
  onClick: () => {
248
- Y(null), q(!0);
298
+ J(null), K(!0);
249
299
  }
250
300
  }] : [],
251
301
  {
252
302
  id: "book-resources",
253
- label: G("calendar.nextStepResources", "Book rooms and resources"),
254
- description: G("calendar.nextStepResourcesDesc", "Reserve conference rooms, equipment, and desks for your events."),
255
- icon: /* @__PURE__ */ C(v, { className: "size-4" }),
256
- onClick: () => M(`${N}/resources`)
303
+ label: W("calendar.nextStepResources", "Book rooms and resources"),
304
+ description: W("calendar.nextStepResourcesDesc", "Reserve conference rooms, equipment, and desks for your events."),
305
+ icon: /* @__PURE__ */ S(ne, { className: "size-4" }),
306
+ onClick: () => j(`${M}/resources`)
257
307
  },
258
308
  {
259
309
  id: "export-subscribe",
260
- label: G("calendar.nextStepSubscriptions", "Export or subscribe"),
261
- description: G("calendar.nextStepSubscriptionsDesc", "Download ICS files to sync with Google, Apple, or Outlook calendars."),
262
- icon: /* @__PURE__ */ C(x, { className: "size-4" }),
263
- onClick: () => M(`${N}/subscriptions`)
310
+ label: W("calendar.nextStepSubscriptions", "Export or subscribe"),
311
+ description: W("calendar.nextStepSubscriptionsDesc", "Download ICS files to sync with Google, Apple, or Outlook calendars."),
312
+ icon: /* @__PURE__ */ S(ae, { className: "size-4" }),
313
+ onClick: () => j(`${M}/subscriptions`)
264
314
  },
265
315
  {
266
316
  id: "tune-settings",
267
- label: G("calendar.nextStepSettings", "Tune your calendar settings"),
268
- description: G("calendar.nextStepSettingsDesc", "Set availability, sharing, booking pages, and default view."),
269
- icon: /* @__PURE__ */ C(S, { className: "size-4" }),
270
- onClick: () => M(`${N}/settings`)
317
+ label: W("calendar.nextStepSettings", "Tune your calendar settings"),
318
+ description: W("calendar.nextStepSettingsDesc", "Set availability, sharing, booking pages, and default view."),
319
+ icon: /* @__PURE__ */ S(x, { className: "size-4" }),
320
+ onClick: () => j(`${M}/settings`)
271
321
  }
272
322
  ]
273
323
  }),
274
- P === "day" && /* @__PURE__ */ C(o, { onCreateSlot: Z }),
275
- P === "week" && /* @__PURE__ */ C(i, { onCreateSlot: Z }),
276
- P === "month" && /* @__PURE__ */ C(a, { onCreateSlot: Z }),
277
- P === "year" && /* @__PURE__ */ C(c, {}),
278
- P === "agenda" && /* @__PURE__ */ C(s, {}),
279
- P === "timeline" && /* @__PURE__ */ C(l, {})
324
+ P === "day" && /* @__PURE__ */ S(o, { onCreateSlot: X }),
325
+ P === "week" && /* @__PURE__ */ S(ee, { onCreateSlot: X }),
326
+ P === "month" && /* @__PURE__ */ S(a, { onCreateSlot: X }),
327
+ P === "year" && /* @__PURE__ */ S(c, {}),
328
+ P === "agenda" && /* @__PURE__ */ S(s, {}),
329
+ P === "timeline" && /* @__PURE__ */ S(l, {})
280
330
  ]
281
331
  })]
282
332
  }),
283
- /* @__PURE__ */ C(te, {
284
- open: K,
285
- defaultDate: J?.date ?? F,
286
- defaultStartHour: J?.hour,
333
+ /* @__PURE__ */ S(f, {
334
+ open: G,
335
+ defaultDate: q?.date ?? F,
336
+ defaultStartHour: q?.hour,
287
337
  onClose: () => {
288
- q(!1), Y(null);
338
+ K(!1), J(null);
289
339
  }
290
- })
340
+ }),
341
+ /* @__PURE__ */ S(p, {})
291
342
  ]
292
- }) : /* @__PURE__ */ C(m, {
293
- title: G("calendar.accessDenied", "Access Denied"),
294
- description: G("calendar.noPermissionViewCalendar", "You don't have permission to view the calendar.")
343
+ }) : /* @__PURE__ */ S(_, {
344
+ title: W("calendar.accessDenied", "Access Denied"),
345
+ description: W("calendar.noPermissionViewCalendar", "You don't have permission to view the calendar.")
295
346
  });
296
347
  }
297
348
  //#endregion
298
- export { k as CalendarPage };
349
+ export { O as CalendarPage };
299
350
 
300
351
  //# sourceMappingURL=CalendarPage.js.map