@burdenoff/microfe-calendar 2026.830.1 → 2026.830.2

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