@burdenoff/microfe-calendar 2026.1114.1 → 2026.1119.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.
@@ -3,28 +3,28 @@ import { useGetCalendarsQuery as t } from "../generated/wspace-operations.js";
3
3
  import { useCalendarStore as n } from "../store/calendarStore.js";
4
4
  import { CALENDAR_PERMISSIONS as r } from "../constants/permissions.js";
5
5
  import { useSafePermissions as i } from "../hooks/useSafePermissions.js";
6
- import { AVAILABILITY_RULES_QUERY as a, BLACKOUT_DATES_QUERY as o, CALENDAR_DETAILS_QUERY as ee, CONNECT_EXTERNAL_CALENDAR_MUTATION as te, CREATE_AVAILABILITY_RULE_MUTATION as ne, CREATE_BLACKOUT_DATE_MUTATION as re, CREATE_BOOKING_PAGE_MUTATION as ie, DELETE_AVAILABILITY_RULE_MUTATION as ae, DELETE_BLACKOUT_DATE_MUTATION as oe, DELETE_BOOKING_PAGE_MUTATION as se, DISCONNECT_EXTERNAL_CALENDAR_MUTATION as ce, EXTERNAL_SYNCS_QUERY as le, PAUSE_SYNC_MUTATION as ue, RESUME_SYNC_MUTATION as de, REVOKE_CALENDAR_SHARE_MUTATION as fe, SHARE_CALENDAR_MUTATION as s, TRIGGER_SYNC_MUTATION as c } from "../graphql/calendarDocuments.js";
7
- import { useMemo as l, useState as u } from "react";
8
- import { AccessDenied as pe } from "@burdenoff/fe-libs/shared/components";
9
- import { CalendarClock as me, CalendarDays as he, Clock as ge, Link2 as _e, Settings as ve, Shield as ye, Users as be } from "lucide-react";
10
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
- import { GlassCard as p, GradientText as xe, IllustratedEmptyState as m, NextSteps as Se, PagePurpose as Ce } from "@burdenoff/fe-libs/ui";
6
+ import { AVAILABILITY_RULES_QUERY as a, BLACKOUT_DATES_QUERY as ee, CALENDAR_DETAILS_QUERY as te, CONNECT_EXTERNAL_CALENDAR_MUTATION as ne, CREATE_AVAILABILITY_RULE_MUTATION as re, CREATE_BLACKOUT_DATE_MUTATION as ie, CREATE_BOOKING_PAGE_MUTATION as ae, DELETE_AVAILABILITY_RULE_MUTATION as oe, DELETE_BLACKOUT_DATE_MUTATION as se, DELETE_BOOKING_PAGE_MUTATION as ce, DISCONNECT_EXTERNAL_CALENDAR_MUTATION as le, EXTERNAL_SYNCS_QUERY as ue, PAUSE_SYNC_MUTATION as o, RESUME_SYNC_MUTATION as de, REVOKE_CALENDAR_SHARE_MUTATION as fe, SHARE_CALENDAR_MUTATION as pe, TRIGGER_SYNC_MUTATION as me } from "../graphql/calendarDocuments.js";
7
+ import { useMemo as s, useState as c } from "react";
8
+ import { AccessDenied as he } from "@burdenoff/fe-libs/shared/components";
9
+ import { CalendarClock as ge, CalendarDays as _e, Clock as ve, Link2 as ye, Settings as be, Shield as xe, Users as Se } from "lucide-react";
10
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
+ import { GlassCard as d, GradientText as Ce, IllustratedEmptyState as f, NextSteps as p, PagePurpose as we, ThemedSelect as m } from "@burdenoff/fe-libs/ui";
12
12
  import { useMutation as h, useQuery as g } from "@apollo/client/react";
13
13
  // src/pages/SettingsPage.tsx
14
14
  function _({ id: e, title: t, description: n, icon: r, children: i, emphasis: a = !1 }) {
15
- return /* @__PURE__ */ d(p, {
15
+ return /* @__PURE__ */ l(d, {
16
16
  id: e,
17
17
  treatment: a ? "glass" : "metric",
18
18
  glow: a,
19
19
  className: "scroll-mt-24 p-card-padding",
20
- children: /* @__PURE__ */ f("div", {
20
+ children: /* @__PURE__ */ u("div", {
21
21
  className: "space-y-4",
22
- children: [/* @__PURE__ */ f("div", {
22
+ children: [/* @__PURE__ */ u("div", {
23
23
  className: "flex items-start gap-3",
24
- children: [/* @__PURE__ */ d(r, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
24
+ children: [/* @__PURE__ */ l(r, { className: "size-5 text-text-secondary shrink-0" }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h2", {
25
25
  className: "font-heading-sm text-text-primary",
26
26
  children: t
27
- }), n ? /* @__PURE__ */ d("p", {
27
+ }), n ? /* @__PURE__ */ l("p", {
28
28
  className: "font-text-sm text-text-secondary mt-1",
29
29
  children: n
30
30
  }) : null] })]
@@ -36,14 +36,14 @@ function v(e) {
36
36
  return e ? new Date(e).toLocaleString() : "—";
37
37
  }
38
38
  function y() {
39
- let { hasPermission: p, isLoading: y } = i(), b = n((e) => e.currentView), x = n((e) => e.selectedTimeZone), we = n((e) => e.setTimeZone), Te = n((e) => e.miniCalendarVisible), Ee = n((e) => e.setMiniCalendarVisible), S = e(), De = {
39
+ let { hasPermission: d, isLoading: y } = i(), b = n((e) => e.currentView), x = n((e) => e.selectedTimeZone), Te = n((e) => e.setTimeZone), Ee = n((e) => e.miniCalendarVisible), De = n((e) => e.setMiniCalendarVisible), S = e(), Oe = {
40
40
  day: S("calendar.day", "Day"),
41
41
  week: S("calendar.week", "Week"),
42
42
  month: S("calendar.month", "Month"),
43
43
  year: S("calendar.year", "Year"),
44
44
  agenda: S("calendar.agenda", "Agenda"),
45
45
  timeline: S("calendar.timeline", "Timeline")
46
- }, [C, w] = u(""), [T, E] = u(""), [D, Oe] = u("user"), [O, k] = u("VIEW"), [A, j] = u({
46
+ }, [C, w] = c(""), [T, E] = c(""), [D, ke] = c("user"), [O, k] = c("VIEW"), [A, j] = c({
47
47
  dayOfWeek: "MONDAY",
48
48
  startTime: "09:00",
49
49
  endTime: "17:00",
@@ -52,11 +52,11 @@ function y() {
52
52
  slotIncrement: "30",
53
53
  minNotice: "60",
54
54
  maxNotice: "43200"
55
- }), [M, N] = u({
55
+ }), [M, N] = c({
56
56
  startDate: "",
57
57
  endDate: "",
58
58
  reason: ""
59
- }), [P, F] = u({
59
+ }), [P, F] = c({
60
60
  name: "",
61
61
  slug: "",
62
62
  pageType: "ONE_ON_ONE",
@@ -64,7 +64,7 @@ function y() {
64
64
  locationType: "ONLINE",
65
65
  maxAttendees: "1",
66
66
  requireApproval: !1
67
- }), [I, L] = u({
67
+ }), [I, L] = c({
68
68
  provider: "GOOGLE_CALENDAR",
69
69
  externalCalendarId: "",
70
70
  externalCalendarName: "",
@@ -72,10 +72,10 @@ function y() {
72
72
  refreshToken: "",
73
73
  syncFrequency: "300",
74
74
  direction: "TWO_WAY"
75
- }), { data: R, loading: ke, refetch: Ae } = t({
75
+ }), { data: R, loading: Ae, refetch: je } = t({
76
76
  variables: { pagination: { limit: 50 } },
77
77
  skip: y
78
- }), z = l(() => R?.calendars?.calendars ?? [], [R?.calendars?.calendars]), B = l(() => C || ((z.find((e) => e.isDefault) ?? z[0])?.id ?? ""), [z, C]), V = l(() => /* @__PURE__ */ new Date(), []), je = l(() => new Date(V.getFullYear() - 1, V.getMonth(), V.getDate()).toISOString(), [V]), Me = l(() => new Date(V.getFullYear() + 1, V.getMonth(), V.getDate()).toISOString(), [V]), { data: Ne, refetch: Pe } = g(ee, {
78
+ }), z = s(() => R?.calendars?.calendars ?? [], [R?.calendars?.calendars]), B = s(() => C || ((z.find((e) => e.isDefault) ?? z[0])?.id ?? ""), [z, C]), V = s(() => /* @__PURE__ */ new Date(), []), Me = s(() => new Date(V.getFullYear() - 1, V.getMonth(), V.getDate()).toISOString(), [V]), H = s(() => new Date(V.getFullYear() + 1, V.getMonth(), V.getDate()).toISOString(), [V]), { data: Ne, refetch: Pe } = g(te, {
79
79
  variables: { id: B },
80
80
  skip: !B,
81
81
  fetchPolicy: "cache-and-network"
@@ -83,51 +83,51 @@ function y() {
83
83
  variables: { calendarId: B },
84
84
  skip: !B,
85
85
  fetchPolicy: "cache-and-network"
86
- }), { data: Le, refetch: Re } = g(o, {
86
+ }), { data: Le, refetch: Re } = g(ee, {
87
87
  variables: {
88
88
  calendarId: B,
89
- startDate: je,
90
- endDate: Me
89
+ startDate: Me,
90
+ endDate: H
91
91
  },
92
92
  skip: !B,
93
93
  fetchPolicy: "cache-and-network"
94
- }), { data: ze, refetch: Be } = g(le, {
94
+ }), { data: ze, refetch: Be } = g(ue, {
95
95
  variables: { calendarId: B },
96
96
  skip: !B,
97
97
  fetchPolicy: "cache-and-network"
98
- }), [Ve, { loading: H }] = h(s), [He] = h(fe), [Ue, { loading: U }] = h(ne), [We] = h(ae), [Ge, { loading: W }] = h(re), [Ke] = h(oe), [qe, { loading: G }] = h(ie), [Je] = h(se), [K, { loading: q }] = h(te), [Ye] = h(ue), [Xe] = h(de), [Ze] = h(c), [Qe] = h(ce), J = Ne?.calendar, Y = J?.shares ?? [], X = J?.bookingPages ?? [], Z = Fe?.getAvailabilityRules ?? [], $e = Le?.getBlackoutDates ?? [], Q = ze?.getExternalCalendarSyncs ?? [], $ = async () => {
98
+ }), [Ve, { loading: U }] = h(pe), [He] = h(fe), [Ue, { loading: W }] = h(re), [We] = h(oe), [Ge, { loading: G }] = h(ie), [Ke] = h(se), [qe, { loading: K }] = h(ae), [Je] = h(ce), [Ye, { loading: q }] = h(ne), [Xe] = h(o), [Ze] = h(de), [Qe] = h(me), [$e] = h(le), J = Ne?.calendar, Y = J?.shares ?? [], X = J?.bookingPages ?? [], Z = Fe?.getAvailabilityRules ?? [], et = Le?.getBlackoutDates ?? [], Q = ze?.getExternalCalendarSyncs ?? [], $ = async () => {
99
99
  await Promise.all([
100
- Ae(),
100
+ je(),
101
101
  Pe(),
102
102
  Ie(),
103
103
  Re(),
104
104
  Be()
105
105
  ]);
106
106
  };
107
- return y || ke ? /* @__PURE__ */ d("div", {
107
+ return y || Ae ? /* @__PURE__ */ l("div", {
108
108
  className: "@container min-h-screen bg-bg-canvas flex items-center justify-center",
109
- children: /* @__PURE__ */ d("p", {
109
+ children: /* @__PURE__ */ l("p", {
110
110
  className: "font-text-md text-text-secondary",
111
111
  children: S("calendar.loading", "Loading...")
112
112
  })
113
- }) : p(r.CALENDAR_READ) ? /* @__PURE__ */ f("div", {
113
+ }) : d(r.CALENDAR_READ) ? /* @__PURE__ */ u("div", {
114
114
  className: "@container min-h-screen bg-bg-canvas",
115
- children: [/* @__PURE__ */ f("header", {
115
+ children: [/* @__PURE__ */ u("header", {
116
116
  className: "border-b border-border-seam bg-bg-surface px-6 py-3",
117
- children: [/* @__PURE__ */ f("div", {
117
+ children: [/* @__PURE__ */ u("div", {
118
118
  className: "flex items-center gap-2",
119
- children: [/* @__PURE__ */ d(ve, { className: "size-5 text-text-secondary" }), /* @__PURE__ */ d("h1", {
119
+ children: [/* @__PURE__ */ l(be, { className: "size-5 text-text-secondary" }), /* @__PURE__ */ l("h1", {
120
120
  className: "font-heading-lg text-text-primary",
121
- children: /* @__PURE__ */ d(xe, { children: S("calendar.calendarSettings", "Calendar Settings") })
121
+ children: /* @__PURE__ */ l(Ce, { children: S("calendar.calendarSettings", "Calendar Settings") })
122
122
  })]
123
- }), /* @__PURE__ */ d(Ce, {
123
+ }), /* @__PURE__ */ l(we, {
124
124
  className: "mt-4-sm max-w-3xl",
125
125
  children: S("calendar.settingsPagePurpose", "The control room for a calendar. Pick the calendar to manage, set how it displays, share it with people or teams, define when you are bookable, publish Calendly-style booking pages, and connect Google, Outlook, or Apple so everything stays in sync.")
126
126
  })]
127
- }), /* @__PURE__ */ f("div", {
127
+ }), /* @__PURE__ */ u("div", {
128
128
  className: "max-w-5xl mx-auto p-6 space-y-6",
129
129
  children: [
130
- /* @__PURE__ */ d(Se, {
130
+ /* @__PURE__ */ l(p, {
131
131
  storageKey: "calendar-settings",
132
132
  steps: [
133
133
  {
@@ -156,72 +156,72 @@ function y() {
156
156
  }
157
157
  ]
158
158
  }),
159
- /* @__PURE__ */ d(_, {
159
+ /* @__PURE__ */ l(_, {
160
160
  id: "settings-active-calendar",
161
161
  emphasis: !0,
162
162
  title: S("calendar.activeCalendar", "Active calendar"),
163
163
  description: S("calendar.activeCalendarDescription", "Choose which calendar to manage for availability, shares, booking pages, and syncs."),
164
- icon: he,
165
- children: /* @__PURE__ */ d("select", {
164
+ icon: _e,
165
+ children: /* @__PURE__ */ l(m, {
166
166
  value: B,
167
167
  onChange: (e) => w(e.target.value),
168
168
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
169
- children: z.map((e) => /* @__PURE__ */ d("option", {
169
+ children: z.map((e) => /* @__PURE__ */ l("option", {
170
170
  value: e.id,
171
171
  children: e.name
172
172
  }, e.id))
173
173
  })
174
174
  }),
175
- /* @__PURE__ */ f(_, {
175
+ /* @__PURE__ */ u(_, {
176
176
  title: S("calendar.displayPreferences", "Display preferences"),
177
177
  description: S("calendar.displayPreferencesDescription", "Personalize your default view, sidebar visibility, and timezone rendering."),
178
- icon: ge,
179
- children: [/* @__PURE__ */ f("div", {
178
+ icon: ve,
179
+ children: [/* @__PURE__ */ u("div", {
180
180
  className: "grid grid-cols-1 gap-4 @md:grid-cols-2",
181
- children: [/* @__PURE__ */ f("div", {
181
+ children: [/* @__PURE__ */ u("div", {
182
182
  className: "space-y-2",
183
- children: [/* @__PURE__ */ d("p", {
183
+ children: [/* @__PURE__ */ l("p", {
184
184
  className: "font-text-sm font-weight-medium text-text-primary",
185
185
  children: S("calendar.currentView", "Current view")
186
- }), /* @__PURE__ */ d("p", {
186
+ }), /* @__PURE__ */ l("p", {
187
187
  className: "font-text-sm text-text-secondary",
188
- children: De[b] ?? b
188
+ children: Oe[b] ?? b
189
189
  })]
190
- }), /* @__PURE__ */ f("div", {
190
+ }), /* @__PURE__ */ u("div", {
191
191
  className: "flex items-center justify-between rounded-radius-md border border-border-subtle px-3 py-2 bg-bg-canvas",
192
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
192
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
193
193
  className: "font-text-sm font-weight-medium text-text-primary",
194
194
  children: S("calendar.showMiniCalendar", "Show mini calendar")
195
- }), /* @__PURE__ */ d("p", {
195
+ }), /* @__PURE__ */ l("p", {
196
196
  className: "font-text-xs text-text-tertiary",
197
197
  children: S("calendar.showMiniCalendarDescription", "Display the mini calendar sidebar in calendar views.")
198
- })] }), /* @__PURE__ */ d("input", {
198
+ })] }), /* @__PURE__ */ l("input", {
199
199
  type: "checkbox",
200
- checked: Te,
201
- onChange: (e) => Ee(e.target.checked),
200
+ checked: Ee,
201
+ onChange: (e) => De(e.target.checked),
202
202
  className: "size-4 rounded border-border-default",
203
203
  "aria-label": S("calendar.showMiniCalendar", "Show mini calendar")
204
204
  })]
205
205
  })]
206
- }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
206
+ }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
207
207
  className: "block font-text-sm font-weight-medium text-text-primary mb-1",
208
208
  children: S("calendar.timezone", "Timezone")
209
- }), /* @__PURE__ */ d("select", {
209
+ }), /* @__PURE__ */ l(m, {
210
210
  value: x,
211
- onChange: (e) => we(e.target.value),
211
+ onChange: (e) => Te(e.target.value),
212
212
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
213
- children: Intl.supportedValuesOf("timeZone").map((e) => /* @__PURE__ */ d("option", {
213
+ children: Intl.supportedValuesOf("timeZone").map((e) => /* @__PURE__ */ l("option", {
214
214
  value: e,
215
215
  children: e
216
216
  }, e))
217
217
  })] })]
218
218
  }),
219
- /* @__PURE__ */ f(_, {
219
+ /* @__PURE__ */ u(_, {
220
220
  id: "settings-sharing",
221
221
  title: S("calendar.sharingAndPermissions", "Sharing and permissions"),
222
222
  description: S("calendar.sharingAndPermissionsDescription", "Share calendars with users or teams using view, edit, or admin access."),
223
- icon: be,
224
- children: [/* @__PURE__ */ f("form", {
223
+ icon: Se,
224
+ children: [/* @__PURE__ */ u("form", {
225
225
  onSubmit: async (e) => {
226
226
  e.preventDefault(), B && T.trim() && (await Ve({ variables: {
227
227
  calendarId: B,
@@ -234,64 +234,64 @@ function y() {
234
234
  },
235
235
  className: "grid grid-cols-1 gap-3 @md:grid-cols-4",
236
236
  children: [
237
- /* @__PURE__ */ f("select", {
237
+ /* @__PURE__ */ u(m, {
238
238
  value: D,
239
- onChange: (e) => Oe(e.target.value),
239
+ onChange: (e) => ke(e.target.value),
240
240
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
241
- children: [/* @__PURE__ */ d("option", {
241
+ children: [/* @__PURE__ */ l("option", {
242
242
  value: "user",
243
243
  children: S("calendar.shareWithUser", "User")
244
- }), /* @__PURE__ */ d("option", {
244
+ }), /* @__PURE__ */ l("option", {
245
245
  value: "team",
246
246
  children: S("calendar.shareWithTeam", "Team")
247
247
  })]
248
248
  }),
249
- /* @__PURE__ */ d("input", {
249
+ /* @__PURE__ */ l("input", {
250
250
  value: T,
251
251
  onChange: (e) => E(e.target.value),
252
252
  placeholder: S("calendar.shareTargetPlaceholder", "User ID or team ID"),
253
253
  "aria-label": S("calendar.shareTarget", "Share target"),
254
254
  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"
255
255
  }),
256
- /* @__PURE__ */ f("select", {
256
+ /* @__PURE__ */ u(m, {
257
257
  value: O,
258
258
  onChange: (e) => k(e.target.value),
259
259
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
260
260
  children: [
261
- /* @__PURE__ */ d("option", {
261
+ /* @__PURE__ */ l("option", {
262
262
  value: "VIEW",
263
263
  children: S("calendar.permissionView", "View")
264
264
  }),
265
- /* @__PURE__ */ d("option", {
265
+ /* @__PURE__ */ l("option", {
266
266
  value: "EDIT",
267
267
  children: S("calendar.permissionEdit", "Edit")
268
268
  }),
269
- /* @__PURE__ */ d("option", {
269
+ /* @__PURE__ */ l("option", {
270
270
  value: "ADMIN",
271
271
  children: S("calendar.permissionAdmin", "Admin")
272
272
  })
273
273
  ]
274
274
  }),
275
- /* @__PURE__ */ d("button", {
275
+ /* @__PURE__ */ l("button", {
276
276
  type: "submit",
277
- disabled: !B || !T.trim() || H,
277
+ disabled: !B || !T.trim() || U,
278
278
  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",
279
- children: H ? S("calendar.sharing", "Sharing...") : S("calendar.shareCalendar", "Share calendar")
279
+ children: U ? S("calendar.sharing", "Sharing...") : S("calendar.shareCalendar", "Share calendar")
280
280
  })
281
281
  ]
282
- }), /* @__PURE__ */ d("div", {
282
+ }), /* @__PURE__ */ l("div", {
283
283
  className: "space-y-2",
284
- children: Y.length === 0 ? /* @__PURE__ */ d(m, {
284
+ children: Y.length === 0 ? /* @__PURE__ */ l(f, {
285
285
  illustration: "empty-people",
286
286
  className: "py-8",
287
287
  title: S("calendar.noSharesConfigured", "No calendar shares configured yet."),
288
288
  description: S("calendar.noSharesConfiguredDesc", "Use the form above to give a user or team view, edit, or admin access to this calendar.")
289
- }) : Y.map((e) => /* @__PURE__ */ f("div", {
289
+ }) : Y.map((e) => /* @__PURE__ */ u("div", {
290
290
  className: "flex flex-col gap-2 rounded-radius-md border border-border-subtle bg-bg-canvas p-3 @md:flex-row @md:items-center @md:justify-between",
291
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
291
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
292
292
  className: "font-text-sm font-weight-medium text-text-primary",
293
293
  children: e.userId ?? e.teamId ?? S("calendar.unknownShareTarget", "Unknown target")
294
- }), /* @__PURE__ */ f("p", {
294
+ }), /* @__PURE__ */ u("p", {
295
295
  className: "font-text-xs text-text-tertiary",
296
296
  children: [
297
297
  e.canManage ? S("calendar.permissionLevelAdmin", "ADMIN") : e.canEdit ? S("calendar.permissionLevelEdit", "EDIT") : S("calendar.permissionLevelView", "VIEW"),
@@ -299,7 +299,7 @@ function y() {
299
299
  "• ",
300
300
  v(e.createdAt)
301
301
  ]
302
- })] }), /* @__PURE__ */ d("button", {
302
+ })] }), /* @__PURE__ */ l("button", {
303
303
  type: "button",
304
304
  onClick: async () => {
305
305
  await He({ variables: { shareId: e.id } }), await $();
@@ -310,13 +310,13 @@ function y() {
310
310
  }, e.id))
311
311
  })]
312
312
  }),
313
- /* @__PURE__ */ f(_, {
313
+ /* @__PURE__ */ u(_, {
314
314
  id: "settings-availability",
315
315
  title: S("calendar.availabilityAndBlocking", "Availability and blocking"),
316
316
  description: S("calendar.availabilityAndBlockingDescription", "Define recurring availability and create manual blackout windows for booking protection."),
317
- icon: me,
317
+ icon: ge,
318
318
  children: [
319
- /* @__PURE__ */ f("form", {
319
+ /* @__PURE__ */ u("form", {
320
320
  onSubmit: async (e) => {
321
321
  e.preventDefault(), B && (await Ue({ variables: { input: {
322
322
  calendarId: B,
@@ -334,7 +334,7 @@ function y() {
334
334
  },
335
335
  className: "grid grid-cols-1 gap-3 @md:grid-cols-4",
336
336
  children: [
337
- /* @__PURE__ */ d("select", {
337
+ /* @__PURE__ */ l(m, {
338
338
  value: A.dayOfWeek,
339
339
  onChange: (e) => j((t) => ({
340
340
  ...t,
@@ -370,12 +370,12 @@ function y() {
370
370
  value: "SUNDAY",
371
371
  label: S("calendar.dayOfWeekSunday", "Sunday")
372
372
  }
373
- ].map(({ value: e, label: t }) => /* @__PURE__ */ d("option", {
373
+ ].map(({ value: e, label: t }) => /* @__PURE__ */ l("option", {
374
374
  value: e,
375
375
  children: t
376
376
  }, e))
377
377
  }),
378
- /* @__PURE__ */ d("input", {
378
+ /* @__PURE__ */ l("input", {
379
379
  type: "time",
380
380
  value: A.startTime,
381
381
  onChange: (e) => j((t) => ({
@@ -385,7 +385,7 @@ function y() {
385
385
  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",
386
386
  "aria-label": S("calendar.availabilityStart", "Availability start time")
387
387
  }),
388
- /* @__PURE__ */ d("input", {
388
+ /* @__PURE__ */ l("input", {
389
389
  type: "time",
390
390
  value: A.endTime,
391
391
  onChange: (e) => j((t) => ({
@@ -395,24 +395,24 @@ function y() {
395
395
  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",
396
396
  "aria-label": S("calendar.availabilityEnd", "Availability end time")
397
397
  }),
398
- /* @__PURE__ */ d("button", {
398
+ /* @__PURE__ */ l("button", {
399
399
  type: "submit",
400
- disabled: !B || U,
400
+ disabled: !B || W,
401
401
  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",
402
- children: U ? S("calendar.savingAvailability", "Saving...") : S("calendar.addAvailabilityRule", "Add availability rule")
402
+ children: W ? S("calendar.savingAvailability", "Saving...") : S("calendar.addAvailabilityRule", "Add availability rule")
403
403
  })
404
404
  ]
405
405
  }),
406
- /* @__PURE__ */ f("div", {
406
+ /* @__PURE__ */ u("div", {
407
407
  className: "space-y-2",
408
- children: [Z.length === 0 ? /* @__PURE__ */ d(m, {
408
+ children: [Z.length === 0 ? /* @__PURE__ */ l(f, {
409
409
  illustration: "empty-data",
410
410
  className: "py-8",
411
411
  title: S("calendar.noAvailabilityRules", "No availability rules yet"),
412
412
  description: S("calendar.noAvailabilityRulesDesc", "Add a weekly window above to tell booking pages when you can be scheduled.")
413
- }) : null, Z.map((e) => /* @__PURE__ */ f("div", {
413
+ }) : null, Z.map((e) => /* @__PURE__ */ u("div", {
414
414
  className: "flex items-center justify-between rounded-radius-md border border-border-subtle bg-bg-canvas p-3",
415
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("p", {
415
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("p", {
416
416
  className: "font-text-sm font-weight-medium text-text-primary",
417
417
  children: [
418
418
  e.dayOfWeek,
@@ -421,10 +421,10 @@ function y() {
421
421
  " - ",
422
422
  e.endTime
423
423
  ]
424
- }), /* @__PURE__ */ d("p", {
424
+ }), /* @__PURE__ */ l("p", {
425
425
  className: "font-text-xs text-text-tertiary",
426
426
  children: e.timezone
427
- })] }), /* @__PURE__ */ d("button", {
427
+ })] }), /* @__PURE__ */ l("button", {
428
428
  type: "button",
429
429
  onClick: async () => {
430
430
  await We({ variables: { id: e.id } }), await $();
@@ -434,7 +434,7 @@ function y() {
434
434
  })]
435
435
  }, e.id))]
436
436
  }),
437
- /* @__PURE__ */ f("form", {
437
+ /* @__PURE__ */ u("form", {
438
438
  onSubmit: async (e) => {
439
439
  e.preventDefault(), B && M.startDate && M.endDate && (await Ge({ variables: { input: {
440
440
  calendarId: B,
@@ -449,7 +449,7 @@ function y() {
449
449
  },
450
450
  className: "grid grid-cols-1 gap-3 @md:grid-cols-4",
451
451
  children: [
452
- /* @__PURE__ */ d("input", {
452
+ /* @__PURE__ */ l("input", {
453
453
  type: "datetime-local",
454
454
  value: M.startDate,
455
455
  onChange: (e) => N((t) => ({
@@ -459,7 +459,7 @@ function y() {
459
459
  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",
460
460
  "aria-label": S("calendar.blackoutStart", "Blackout start")
461
461
  }),
462
- /* @__PURE__ */ d("input", {
462
+ /* @__PURE__ */ l("input", {
463
463
  type: "datetime-local",
464
464
  value: M.endDate,
465
465
  onChange: (e) => N((t) => ({
@@ -469,7 +469,7 @@ function y() {
469
469
  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",
470
470
  "aria-label": S("calendar.blackoutEnd", "Blackout end")
471
471
  }),
472
- /* @__PURE__ */ d("input", {
472
+ /* @__PURE__ */ l("input", {
473
473
  value: M.reason,
474
474
  onChange: (e) => N((t) => ({
475
475
  ...t,
@@ -479,29 +479,29 @@ function y() {
479
479
  "aria-label": S("calendar.blackoutReason", "Reason for block"),
480
480
  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"
481
481
  }),
482
- /* @__PURE__ */ d("button", {
482
+ /* @__PURE__ */ l("button", {
483
483
  type: "submit",
484
- disabled: !B || W,
484
+ disabled: !B || G,
485
485
  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",
486
- children: W ? S("calendar.blocking", "Blocking...") : S("calendar.addBlackout", "Add block")
486
+ children: G ? S("calendar.blocking", "Blocking...") : S("calendar.addBlackout", "Add block")
487
487
  })
488
488
  ]
489
489
  }),
490
- /* @__PURE__ */ d("div", {
490
+ /* @__PURE__ */ l("div", {
491
491
  className: "space-y-2",
492
- children: $e.map((e) => /* @__PURE__ */ f("div", {
492
+ children: et.map((e) => /* @__PURE__ */ u("div", {
493
493
  className: "flex items-center justify-between rounded-radius-md border border-border-subtle bg-bg-canvas p-3",
494
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("p", {
494
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("p", {
495
495
  className: "font-text-sm font-weight-medium text-text-primary",
496
496
  children: [
497
497
  v(e.startDate),
498
498
  " → ",
499
499
  v(e.endDate)
500
500
  ]
501
- }), /* @__PURE__ */ d("p", {
501
+ }), /* @__PURE__ */ l("p", {
502
502
  className: "font-text-xs text-text-tertiary",
503
503
  children: e.reason ?? "—"
504
- })] }), /* @__PURE__ */ d("button", {
504
+ })] }), /* @__PURE__ */ l("button", {
505
505
  type: "button",
506
506
  onClick: async () => {
507
507
  await Ke({ variables: { id: e.id } }), await $();
@@ -513,12 +513,12 @@ function y() {
513
513
  })
514
514
  ]
515
515
  }),
516
- /* @__PURE__ */ f(_, {
516
+ /* @__PURE__ */ u(_, {
517
517
  id: "settings-booking-pages",
518
518
  title: S("calendar.bookingPages", "Booking pages"),
519
519
  description: S("calendar.bookingPagesDescription", "Create Calendly-style booking pages for appointment scheduling from your calendar availability."),
520
- icon: _e,
521
- children: [/* @__PURE__ */ f("form", {
520
+ icon: ye,
521
+ children: [/* @__PURE__ */ u("form", {
522
522
  onSubmit: async (e) => {
523
523
  e.preventDefault(), B && P.name.trim() && P.slug.trim() && (await qe({ variables: { input: {
524
524
  calendarId: B,
@@ -543,7 +543,7 @@ function y() {
543
543
  },
544
544
  className: "grid grid-cols-1 gap-3 @md:grid-cols-3",
545
545
  children: [
546
- /* @__PURE__ */ d("input", {
546
+ /* @__PURE__ */ l("input", {
547
547
  "aria-label": S("calendar.bookingPageName", "Booking page name"),
548
548
  value: P.name,
549
549
  onChange: (e) => F((t) => ({
@@ -553,7 +553,7 @@ function y() {
553
553
  placeholder: S("calendar.bookingPageName", "Booking page name"),
554
554
  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"
555
555
  }),
556
- /* @__PURE__ */ d("input", {
556
+ /* @__PURE__ */ l("input", {
557
557
  "aria-label": S("calendar.bookingPageSlugLabel", "Booking page slug"),
558
558
  value: P.slug,
559
559
  onChange: (e) => F((t) => ({
@@ -563,7 +563,7 @@ function y() {
563
563
  placeholder: S("calendar.bookingPageSlug", "booking-page-slug"),
564
564
  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"
565
565
  }),
566
- /* @__PURE__ */ d("input", {
566
+ /* @__PURE__ */ l("input", {
567
567
  "aria-label": S("calendar.bookingPageDuration", "Event duration in minutes"),
568
568
  type: "number",
569
569
  min: "15",
@@ -575,7 +575,7 @@ function y() {
575
575
  })),
576
576
  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"
577
577
  }),
578
- /* @__PURE__ */ d("select", {
578
+ /* @__PURE__ */ l(m, {
579
579
  value: P.pageType,
580
580
  onChange: (e) => F((t) => ({
581
581
  ...t,
@@ -599,12 +599,12 @@ function y() {
599
599
  value: "COLLECTIVE",
600
600
  label: S("calendar.pageTypeCollective", "Collective")
601
601
  }
602
- ].map(({ value: e, label: t }) => /* @__PURE__ */ d("option", {
602
+ ].map(({ value: e, label: t }) => /* @__PURE__ */ l("option", {
603
603
  value: e,
604
604
  children: t
605
605
  }, e))
606
606
  }),
607
- /* @__PURE__ */ d("select", {
607
+ /* @__PURE__ */ l(m, {
608
608
  value: P.locationType,
609
609
  onChange: (e) => F((t) => ({
610
610
  ...t,
@@ -628,14 +628,14 @@ function y() {
628
628
  value: "TBD",
629
629
  label: S("calendar.locationTypeTbd", "TBD")
630
630
  }
631
- ].map(({ value: e, label: t }) => /* @__PURE__ */ d("option", {
631
+ ].map(({ value: e, label: t }) => /* @__PURE__ */ l("option", {
632
632
  value: e,
633
633
  children: t
634
634
  }, e))
635
635
  }),
636
- /* @__PURE__ */ f("div", {
636
+ /* @__PURE__ */ u("div", {
637
637
  className: "flex items-center gap-3 rounded-radius-md border border-border-subtle bg-bg-canvas px-3 py-2",
638
- children: [/* @__PURE__ */ d("input", {
638
+ children: [/* @__PURE__ */ l("input", {
639
639
  id: "booking-page-approval",
640
640
  "aria-label": S("calendar.requireApproval", "Require approval"),
641
641
  type: "checkbox",
@@ -645,36 +645,36 @@ function y() {
645
645
  requireApproval: e.target.checked
646
646
  })),
647
647
  className: "size-4 rounded border-border-default"
648
- }), /* @__PURE__ */ d("label", {
648
+ }), /* @__PURE__ */ l("label", {
649
649
  htmlFor: "booking-page-approval",
650
650
  className: "font-text-sm text-text-primary",
651
651
  children: S("calendar.requireApproval", "Require approval")
652
652
  })]
653
653
  }),
654
- /* @__PURE__ */ d("button", {
654
+ /* @__PURE__ */ l("button", {
655
655
  type: "submit",
656
- disabled: !B || G,
656
+ disabled: !B || K,
657
657
  className: "@md:col-span-3 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",
658
- children: G ? S("calendar.creating", "Creating...") : S("calendar.createBookingPage", "Create booking page")
658
+ children: K ? S("calendar.creating", "Creating...") : S("calendar.createBookingPage", "Create booking page")
659
659
  })
660
660
  ]
661
- }), /* @__PURE__ */ f("div", {
661
+ }), /* @__PURE__ */ u("div", {
662
662
  className: "space-y-2",
663
- children: [X.length === 0 ? /* @__PURE__ */ d(m, {
663
+ children: [X.length === 0 ? /* @__PURE__ */ l(f, {
664
664
  illustration: "empty-data",
665
665
  className: "py-8",
666
666
  title: S("calendar.noBookingPages", "No booking pages yet"),
667
667
  description: S("calendar.noBookingPagesDesc", "Create a booking page above to let others self-schedule time with you.")
668
- }) : null, X.map((e) => /* @__PURE__ */ f("div", {
668
+ }) : null, X.map((e) => /* @__PURE__ */ u("div", {
669
669
  className: "flex items-center justify-between rounded-radius-md border border-border-subtle bg-bg-canvas p-3",
670
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("p", {
670
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("p", {
671
671
  className: "font-text-sm font-weight-medium text-text-primary",
672
672
  children: [
673
673
  e.name,
674
674
  " • ",
675
675
  e.pageType
676
676
  ]
677
- }), /* @__PURE__ */ f("p", {
677
+ }), /* @__PURE__ */ u("p", {
678
678
  className: "font-text-xs text-text-tertiary",
679
679
  children: [
680
680
  "/book/",
@@ -687,7 +687,7 @@ function y() {
687
687
  " ",
688
688
  e.isActive ? S("calendar.statusActive", "ACTIVE") : S("calendar.statusInactive", "INACTIVE")
689
689
  ]
690
- })] }), /* @__PURE__ */ d("button", {
690
+ })] }), /* @__PURE__ */ l("button", {
691
691
  type: "button",
692
692
  onClick: async () => {
693
693
  await Je({ variables: { id: e.id } }), await $();
@@ -698,14 +698,14 @@ function y() {
698
698
  }, e.id))]
699
699
  })]
700
700
  }),
701
- /* @__PURE__ */ f(_, {
701
+ /* @__PURE__ */ u(_, {
702
702
  id: "settings-external-sync",
703
703
  title: S("calendar.externalCalendarSync", "External calendar sync"),
704
704
  description: S("calendar.externalCalendarSyncDescription", "Configure Google, Outlook, and Apple-compatible sync connections and trigger synchronization cycles."),
705
- icon: ye,
706
- children: [/* @__PURE__ */ f("form", {
705
+ icon: xe,
706
+ children: [/* @__PURE__ */ u("form", {
707
707
  onSubmit: async (e) => {
708
- e.preventDefault(), B && I.externalCalendarId.trim() && I.accessToken.trim() && (await K({ variables: { input: {
708
+ e.preventDefault(), B && I.externalCalendarId.trim() && I.accessToken.trim() && (await Ye({ variables: { input: {
709
709
  calendarId: B,
710
710
  provider: I.provider,
711
711
  externalCalendarId: I.externalCalendarId.trim(),
@@ -726,7 +726,7 @@ function y() {
726
726
  },
727
727
  className: "grid grid-cols-1 gap-3 @md:grid-cols-3",
728
728
  children: [
729
- /* @__PURE__ */ f("select", {
729
+ /* @__PURE__ */ u(m, {
730
730
  value: I.provider,
731
731
  onChange: (e) => L((t) => ({
732
732
  ...t,
@@ -734,25 +734,25 @@ function y() {
734
734
  })),
735
735
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
736
736
  children: [
737
- /* @__PURE__ */ d("option", {
737
+ /* @__PURE__ */ l("option", {
738
738
  value: "GOOGLE_CALENDAR",
739
739
  children: S("calendar.providerGoogleCalendar", "Google Calendar")
740
740
  }),
741
- /* @__PURE__ */ d("option", {
741
+ /* @__PURE__ */ l("option", {
742
742
  value: "OUTLOOK_CALENDAR",
743
743
  children: S("calendar.providerOutlookCalendar", "Outlook Calendar")
744
744
  }),
745
- /* @__PURE__ */ d("option", {
745
+ /* @__PURE__ */ l("option", {
746
746
  value: "APPLE_ICAL",
747
747
  children: S("calendar.providerAppleCalendar", "Apple Calendar")
748
748
  }),
749
- /* @__PURE__ */ d("option", {
749
+ /* @__PURE__ */ l("option", {
750
750
  value: "CALDAV",
751
751
  children: S("calendar.providerCalDav", "CalDAV")
752
752
  })
753
753
  ]
754
754
  }),
755
- /* @__PURE__ */ d("input", {
755
+ /* @__PURE__ */ l("input", {
756
756
  "aria-label": S("calendar.externalCalendarId", "External calendar ID"),
757
757
  value: I.externalCalendarId,
758
758
  onChange: (e) => L((t) => ({
@@ -762,7 +762,7 @@ function y() {
762
762
  placeholder: S("calendar.externalCalendarId", "External calendar ID"),
763
763
  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"
764
764
  }),
765
- /* @__PURE__ */ d("input", {
765
+ /* @__PURE__ */ l("input", {
766
766
  "aria-label": S("calendar.externalCalendarName", "External calendar name"),
767
767
  value: I.externalCalendarName,
768
768
  onChange: (e) => L((t) => ({
@@ -772,7 +772,7 @@ function y() {
772
772
  placeholder: S("calendar.externalCalendarName", "External calendar name"),
773
773
  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"
774
774
  }),
775
- /* @__PURE__ */ d("input", {
775
+ /* @__PURE__ */ l("input", {
776
776
  "aria-label": S("calendar.accessToken", "Access token"),
777
777
  value: I.accessToken,
778
778
  onChange: (e) => L((t) => ({
@@ -782,7 +782,7 @@ function y() {
782
782
  placeholder: S("calendar.accessToken", "Access token"),
783
783
  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"
784
784
  }),
785
- /* @__PURE__ */ d("input", {
785
+ /* @__PURE__ */ l("input", {
786
786
  "aria-label": S("calendar.refreshToken", "Refresh token (optional)"),
787
787
  value: I.refreshToken,
788
788
  onChange: (e) => L((t) => ({
@@ -792,7 +792,7 @@ function y() {
792
792
  placeholder: S("calendar.refreshToken", "Refresh token (optional)"),
793
793
  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"
794
794
  }),
795
- /* @__PURE__ */ d("input", {
795
+ /* @__PURE__ */ l("input", {
796
796
  "aria-label": S("calendar.syncFrequencyLabel", "Sync frequency in seconds"),
797
797
  type: "number",
798
798
  min: "60",
@@ -804,7 +804,7 @@ function y() {
804
804
  })),
805
805
  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"
806
806
  }),
807
- /* @__PURE__ */ f("select", {
807
+ /* @__PURE__ */ u(m, {
808
808
  value: I.direction,
809
809
  onChange: (e) => L((t) => ({
810
810
  ...t,
@@ -812,38 +812,38 @@ function y() {
812
812
  })),
813
813
  className: "@md:col-span-2 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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
814
814
  children: [
815
- /* @__PURE__ */ d("option", {
815
+ /* @__PURE__ */ l("option", {
816
816
  value: "TWO_WAY",
817
817
  children: S("calendar.twoWaySync", "Two-way sync")
818
818
  }),
819
- /* @__PURE__ */ d("option", {
819
+ /* @__PURE__ */ l("option", {
820
820
  value: "ONE_WAY_TO_EXTERNAL",
821
821
  children: S("calendar.oneWayToExternal", "One-way to external")
822
822
  }),
823
- /* @__PURE__ */ d("option", {
823
+ /* @__PURE__ */ l("option", {
824
824
  value: "ONE_WAY_FROM_EXTERNAL",
825
825
  children: S("calendar.oneWayFromExternal", "One-way from external")
826
826
  })
827
827
  ]
828
828
  }),
829
- /* @__PURE__ */ d("button", {
829
+ /* @__PURE__ */ l("button", {
830
830
  type: "submit",
831
831
  disabled: !B || q,
832
832
  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",
833
833
  children: q ? S("calendar.connecting", "Connecting...") : S("calendar.connectExternalCalendar", "Connect external calendar")
834
834
  })
835
835
  ]
836
- }), /* @__PURE__ */ f("div", {
836
+ }), /* @__PURE__ */ u("div", {
837
837
  className: "space-y-3",
838
- children: [Q.length === 0 ? /* @__PURE__ */ d(m, {
838
+ children: [Q.length === 0 ? /* @__PURE__ */ l(f, {
839
839
  illustration: "empty-generic",
840
840
  className: "py-8",
841
841
  title: S("calendar.noExternalSyncs", "No external calendars connected"),
842
842
  description: S("calendar.noExternalSyncsDesc", "Connect Google, Outlook, or Apple above to keep events in sync both ways.")
843
- }) : null, Q.map((e) => /* @__PURE__ */ f("div", {
843
+ }) : null, Q.map((e) => /* @__PURE__ */ u("div", {
844
844
  className: "rounded-radius-md border border-border-subtle bg-bg-canvas p-3 space-y-3",
845
- children: [/* @__PURE__ */ f("div", { children: [
846
- /* @__PURE__ */ f("p", {
845
+ children: [/* @__PURE__ */ u("div", { children: [
846
+ /* @__PURE__ */ u("p", {
847
847
  className: "font-text-sm font-weight-medium text-text-primary",
848
848
  children: [
849
849
  e.provider,
@@ -851,7 +851,7 @@ function y() {
851
851
  e.externalCalendarName ?? e.externalCalendarId
852
852
  ]
853
853
  }),
854
- /* @__PURE__ */ f("p", {
854
+ /* @__PURE__ */ u("p", {
855
855
  className: "font-text-xs text-text-tertiary",
856
856
  children: [
857
857
  e.status,
@@ -860,7 +860,7 @@ function y() {
860
860
  S("calendar.everySeconds", "Every {{value}} seconds", { value: e.syncFrequency })
861
861
  ]
862
862
  }),
863
- /* @__PURE__ */ f("p", {
863
+ /* @__PURE__ */ u("p", {
864
864
  className: "font-text-xs text-text-tertiary",
865
865
  children: [
866
866
  S("calendar.lastSync", "Last sync"),
@@ -871,33 +871,33 @@ function y() {
871
871
  e.lastSyncStatus ?? S("calendar.notAvailable", "—")
872
872
  ]
873
873
  }),
874
- e.lastSyncError ? /* @__PURE__ */ d("p", {
874
+ e.lastSyncError ? /* @__PURE__ */ l("p", {
875
875
  className: "font-text-xs text-text-secondary",
876
876
  children: e.lastSyncError
877
877
  }) : null
878
- ] }), /* @__PURE__ */ f("div", {
878
+ ] }), /* @__PURE__ */ u("div", {
879
879
  className: "flex flex-wrap gap-2",
880
880
  children: [
881
- /* @__PURE__ */ d("button", {
881
+ /* @__PURE__ */ l("button", {
882
882
  type: "button",
883
883
  onClick: async () => {
884
- await Ze({ variables: { syncId: e.id } }), await $();
884
+ await Qe({ variables: { syncId: e.id } }), await $();
885
885
  },
886
886
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary font-text-sm",
887
887
  children: S("calendar.triggerSync", "Trigger sync")
888
888
  }),
889
- /* @__PURE__ */ d("button", {
889
+ /* @__PURE__ */ l("button", {
890
890
  type: "button",
891
891
  onClick: async () => {
892
- e.syncEnabled ? await Ye({ variables: { syncId: e.id } }) : await Xe({ variables: { syncId: e.id } }), await $();
892
+ e.syncEnabled ? await Xe({ variables: { syncId: e.id } }) : await Ze({ variables: { syncId: e.id } }), await $();
893
893
  },
894
894
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary font-text-sm",
895
895
  children: e.syncEnabled ? S("calendar.pauseSync", "Pause") : S("calendar.resumeSync", "Resume")
896
896
  }),
897
- /* @__PURE__ */ d("button", {
897
+ /* @__PURE__ */ l("button", {
898
898
  type: "button",
899
899
  onClick: async () => {
900
- await Qe({ variables: { syncId: e.id } }), await $();
900
+ await $e({ variables: { syncId: e.id } }), await $();
901
901
  },
902
902
  className: "px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary font-text-sm",
903
903
  children: S("calendar.disconnect", "Disconnect")
@@ -909,7 +909,7 @@ function y() {
909
909
  })
910
910
  ]
911
911
  })]
912
- }) : /* @__PURE__ */ d(pe, {
912
+ }) : /* @__PURE__ */ l(he, {
913
913
  title: S("calendar.accessDenied", "Access Denied"),
914
914
  description: S("calendar.noPermissionViewSettings", "You don't have permission to view calendar settings.")
915
915
  });