@burdenoff/microfe-eventfullymanaged 2026.828.1 → 2026.1030.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.
@@ -8,12 +8,12 @@ import "../../hooks/index.js";
8
8
  import { ActionMenu as c } from "../../components/ActionMenu.js";
9
9
  import { Pagination as l, usePagination as ee } from "../../components/Pagination.js";
10
10
  import { useMemo as u, useState as d } from "react";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
- import { Award as m, CalendarClock as te, CalendarDays as ne, CalendarPlus as h, LayoutGrid as re, MapPin as g, Rows3 as ie, Search as _, Ticket as ae, UserCheck as v, Users as y } from "lucide-react";
13
- import { useI18n as oe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { Badge as b, Button as x, EmphasisPanel as S, GlassCard as C, GradientText as w, IllustratedEmptyState as T, Input as se, NextSteps as ce, PagePurpose as le, Skeleton as E, Table as ue, TableBody as D, TableCell as O, TableHead as k, TableHeader as de, TableRow as A, Tabs as fe, TabsList as pe, TabsTrigger as j } from "@burdenoff/fe-libs/ui";
11
+ import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
13
+ import { Award as te, CalendarClock as ne, CalendarDays as re, CalendarPlus as h, LayoutGrid as ie, MapPin as g, Rows3 as ae, Search as oe, Ticket as se, UserCheck as _, Users as v } from "lucide-react";
14
+ import { Badge as y, Button as b, EmphasisPanel as ce, GlassCard as x, GradientText as le, IllustratedEmptyState as S, Input as C, NextSteps as w, PagePurpose as T, Skeleton as E, Table as ue, TableBody as de, TableCell as D, TableHead as O, TableHeader as fe, TableRow as k, Tabs as pe, TabsList as me, TabsTrigger as A } from "@burdenoff/fe-libs/ui";
15
15
  //#region src/eventfullymanaged/pages/modules/EventsPage.tsx
16
- var me = t`
16
+ var he = t`
17
17
  query EventfullymanagedEventsRegistrations($limit: Int) {
18
18
  registrations: eventfullyManagedRegistrations(limit: $limit, offset: 0) {
19
19
  total
@@ -25,7 +25,7 @@ var me = t`
25
25
  }
26
26
  }
27
27
  `;
28
- function M(e) {
28
+ function j(e) {
29
29
  let t = e.toLowerCase();
30
30
  return [
31
31
  "active",
@@ -47,29 +47,29 @@ function M(e) {
47
47
  "scheduled"
48
48
  ].includes(t) ? "info" : "secondary";
49
49
  }
50
- function N(e, t) {
50
+ function M(e, t) {
51
51
  let n = e ? o(e) : "", r = t ? o(t) : "";
52
52
  return n && r ? `${n} — ${r}` : n || r || "No schedule set";
53
53
  }
54
- function P(e, t) {
54
+ function N(e, t) {
55
55
  let n = Date.now(), r = e ? new Date(e).getTime() : NaN, i = t ? new Date(t).getTime() : NaN, a = !Number.isNaN(r), o = !Number.isNaN(i);
56
56
  return !a && !o ? null : a && n < r ? "upcoming" : o && n > i ? "past" : a ? "live" : "upcoming";
57
57
  }
58
- function F({ icon: e, label: t, value: n, loading: r }) {
59
- return /* @__PURE__ */ f(C, {
58
+ function P({ icon: e, label: t, value: n, loading: r }) {
59
+ return /* @__PURE__ */ p(x, {
60
60
  treatment: "plain",
61
61
  className: "border-border-seam p-4",
62
- children: /* @__PURE__ */ p("div", {
62
+ children: /* @__PURE__ */ m("div", {
63
63
  className: "flex items-center gap-3",
64
- children: [/* @__PURE__ */ f("span", {
64
+ children: [/* @__PURE__ */ p("span", {
65
65
  className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-button bg-bg-sunken text-text-secondary",
66
- children: /* @__PURE__ */ f(e, { className: "h-4 w-4" })
67
- }), /* @__PURE__ */ p("div", {
66
+ children: /* @__PURE__ */ p(e, { className: "h-4 w-4" })
67
+ }), /* @__PURE__ */ m("div", {
68
68
  className: "min-w-0",
69
- children: [r ? /* @__PURE__ */ f(E, { className: "h-6 w-12" }) : /* @__PURE__ */ f("p", {
69
+ children: [r ? /* @__PURE__ */ p(E, { className: "h-6 w-12" }) : /* @__PURE__ */ p("p", {
70
70
  className: "truncate text-xl font-bold tabular-nums text-text-primary",
71
71
  children: n
72
- }), /* @__PURE__ */ f("p", {
72
+ }), /* @__PURE__ */ p("p", {
73
73
  className: "truncate text-xs text-text-muted",
74
74
  children: t
75
75
  })]
@@ -77,48 +77,48 @@ function F({ icon: e, label: t, value: n, loading: r }) {
77
77
  })
78
78
  });
79
79
  }
80
- function I({ icon: e, label: t, value: n }) {
81
- return /* @__PURE__ */ p("div", {
80
+ function F({ icon: e, label: t, value: n }) {
81
+ return /* @__PURE__ */ m("div", {
82
82
  className: "flex items-center gap-1.5",
83
83
  children: [
84
- /* @__PURE__ */ f(e, { className: "h-3.5 w-3.5 text-text-muted" }),
85
- /* @__PURE__ */ f("span", {
84
+ /* @__PURE__ */ p(e, { className: "h-3.5 w-3.5 text-text-muted" }),
85
+ /* @__PURE__ */ p("span", {
86
86
  className: "tabular-nums font-medium text-text-primary",
87
87
  children: n
88
88
  }),
89
- /* @__PURE__ */ f("span", {
89
+ /* @__PURE__ */ p("span", {
90
90
  className: "text-text-muted",
91
91
  children: t
92
92
  })
93
93
  ]
94
94
  });
95
95
  }
96
- function L() {
97
- let { t } = oe(), o = (e, n) => {
96
+ function I() {
97
+ let { t } = f(), o = (e, n) => {
98
98
  let r = t(e);
99
99
  return r === e ? n : r;
100
- }, { navigate: L } = e(), [R, he] = d(""), [z, ge] = d("all"), [B, V] = d("table"), H = ee({ resetKey: R }), { data: U, loading: W, refetch: _e } = r({
101
- search: R,
102
- limit: H.limit,
103
- offset: H.offset
104
- }), { onDeleteEvent: ve } = s(), { data: G, loading: ye } = a({
100
+ }, { navigate: I } = e(), [L, ge] = d(""), [R, _e] = d("all"), [z, B] = d("table"), V = ee({ resetKey: L }), { data: H, loading: U, refetch: ve } = r({
101
+ search: L,
102
+ limit: V.limit,
103
+ offset: V.offset
104
+ }), { onDeleteEvent: ye } = s(), { data: W, loading: be } = a({
105
105
  limit: 100,
106
106
  offset: 0
107
- }), { data: K, loading: be } = i({
107
+ }), { data: G, loading: xe } = i({
108
108
  limit: 1,
109
109
  offset: 0
110
- }), { data: q, loading: xe } = n(me, { variables: { limit: 500 } }), J = U?.events?.total ?? 0, Y = u(() => U?.events?.items ?? [], [U]), Se = q?.registrations?.total ?? 0, Ce = G?.venues?.total ?? 0, we = K?.sponsors?.total ?? 0, X = async (e) => {
111
- await ve(e.id, {
110
+ }), { data: K, loading: q } = n(he, { variables: { limit: 500 } }), J = H?.events?.total ?? 0, Y = u(() => H?.events?.items ?? [], [H]), Se = K?.registrations?.total ?? 0, Ce = W?.venues?.total ?? 0, we = G?.sponsors?.total ?? 0, X = async (e) => {
111
+ await ye(e.id, {
112
112
  name: e.name,
113
- onSuccess: () => void _e()
113
+ onSuccess: () => void ve()
114
114
  });
115
- }, Z = u(() => z === "all" ? Y : Y.filter((e) => P(e.startAt, e.endAt) === z), [Y, z]), Q = u(() => {
115
+ }, Z = u(() => R === "all" ? Y : Y.filter((e) => N(e.startAt, e.endAt) === R), [Y, R]), Q = u(() => {
116
116
  let e = /* @__PURE__ */ new Map();
117
- for (let t of G?.venues?.items ?? []) e.set(t.id, t.name);
117
+ for (let t of W?.venues?.items ?? []) e.set(t.id, t.name);
118
118
  return e;
119
- }, [G]), $ = u(() => {
119
+ }, [W]), $ = u(() => {
120
120
  let e = /* @__PURE__ */ new Map();
121
- for (let t of q?.registrations?.items ?? []) {
121
+ for (let t of K?.registrations?.items ?? []) {
122
122
  let n = e.get(t.eventId) ?? {
123
123
  registrations: 0,
124
124
  checkedIn: 0
@@ -126,213 +126,213 @@ function L() {
126
126
  n.registrations += 1, t.checkedInAt && (n.checkedIn += 1), e.set(t.eventId, n);
127
127
  }
128
128
  return e;
129
- }, [q]);
130
- return /* @__PURE__ */ p("div", {
129
+ }, [K]);
130
+ return /* @__PURE__ */ m("div", {
131
131
  className: "space-y-6 p-6",
132
132
  children: [
133
- /* @__PURE__ */ f(le, { children: o("eventfullymanaged.events.purpose", "Events are the heart of the platform — each one is a happening you sell tickets for, register attendees to, and run on the day. Create an event, open it to reveal its agenda, speakers and ticket types, then publish it when it is ready.") }),
134
- /* @__PURE__ */ f(S, { children: /* @__PURE__ */ p("div", {
133
+ /* @__PURE__ */ p(T, { children: o("eventfullymanaged.events.purpose", "Events are the heart of the platform — each one is a happening you sell tickets for, register attendees to, and run on the day. Create an event, open it to reveal its agenda, speakers and ticket types, then publish it when it is ready.") }),
134
+ /* @__PURE__ */ p(ce, { children: /* @__PURE__ */ m("div", {
135
135
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
136
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
136
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
137
137
  className: "text-2xl font-bold text-text-primary",
138
- children: /* @__PURE__ */ f(w, { children: o("eventfullymanaged.events.title", "Events") })
139
- }), /* @__PURE__ */ f("p", {
138
+ children: /* @__PURE__ */ p(le, { children: o("eventfullymanaged.events.title", "Events") })
139
+ }), /* @__PURE__ */ p("p", {
140
140
  className: "mt-1 text-sm text-text-secondary",
141
141
  children: o("eventfullymanaged.events.description", "Create and manage live events from the workspace graph.")
142
- })] }), /* @__PURE__ */ p(x, {
142
+ })] }), /* @__PURE__ */ m(b, {
143
143
  type: "button",
144
- onClick: () => L("/events/create"),
145
- children: [/* @__PURE__ */ f(h, { className: "h-4 w-4" }), o("eventfullymanaged.events.actions.create", "Create Event")]
144
+ onClick: () => I("/events/create"),
145
+ children: [/* @__PURE__ */ p(h, { className: "h-4 w-4" }), o("eventfullymanaged.events.actions.create", "Create Event")]
146
146
  })]
147
147
  }) }),
148
- /* @__PURE__ */ p("div", {
148
+ /* @__PURE__ */ m("div", {
149
149
  className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
150
150
  children: [
151
- /* @__PURE__ */ f(F, {
152
- icon: ne,
151
+ /* @__PURE__ */ p(P, {
152
+ icon: re,
153
153
  label: o("eventfullymanaged.events.portfolio.events", "Events"),
154
154
  value: J.toLocaleString(),
155
- loading: W && J === 0
155
+ loading: U && J === 0
156
156
  }),
157
- /* @__PURE__ */ f(F, {
158
- icon: y,
157
+ /* @__PURE__ */ p(P, {
158
+ icon: v,
159
159
  label: o("eventfullymanaged.events.portfolio.registrations", "Registrations"),
160
160
  value: Se.toLocaleString(),
161
- loading: xe && !q
161
+ loading: q && !K
162
162
  }),
163
- /* @__PURE__ */ f(F, {
163
+ /* @__PURE__ */ p(P, {
164
164
  icon: g,
165
165
  label: o("eventfullymanaged.events.portfolio.venues", "Venues"),
166
166
  value: Ce.toLocaleString(),
167
- loading: ye && !G
167
+ loading: be && !W
168
168
  }),
169
- /* @__PURE__ */ f(F, {
170
- icon: m,
169
+ /* @__PURE__ */ p(P, {
170
+ icon: te,
171
171
  label: o("eventfullymanaged.events.portfolio.sponsors", "Sponsors"),
172
172
  value: we.toLocaleString(),
173
- loading: be && !K
173
+ loading: xe && !G
174
174
  })
175
175
  ]
176
176
  }),
177
- /* @__PURE__ */ p("div", {
177
+ /* @__PURE__ */ m("div", {
178
178
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
179
179
  children: [
180
- /* @__PURE__ */ p("div", {
180
+ /* @__PURE__ */ m("div", {
181
181
  className: "relative flex-1",
182
- children: [/* @__PURE__ */ f(_, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted" }), /* @__PURE__ */ f(se, {
182
+ children: [/* @__PURE__ */ p(oe, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted" }), /* @__PURE__ */ p(C, {
183
183
  type: "text",
184
- value: R,
185
- onChange: (e) => he(e.target.value),
184
+ value: L,
185
+ onChange: (e) => ge(e.target.value),
186
186
  placeholder: o("eventfullymanaged.events.searchPlaceholder", "Search events"),
187
187
  "aria-label": o("eventfullymanaged.events.searchPlaceholder", "Search events"),
188
188
  className: "pl-10"
189
189
  })]
190
190
  }),
191
- /* @__PURE__ */ f(fe, {
192
- value: z,
193
- onValueChange: (e) => ge(e),
191
+ /* @__PURE__ */ p(pe, {
192
+ value: R,
193
+ onValueChange: (e) => _e(e),
194
194
  className: "w-full sm:w-auto",
195
- children: /* @__PURE__ */ p(pe, {
195
+ children: /* @__PURE__ */ m(me, {
196
196
  className: "w-full overflow-x-auto sm:w-auto",
197
197
  children: [
198
- /* @__PURE__ */ f(j, {
198
+ /* @__PURE__ */ p(A, {
199
199
  value: "all",
200
200
  children: o("eventfullymanaged.events.filters.all", "All")
201
201
  }),
202
- /* @__PURE__ */ f(j, {
202
+ /* @__PURE__ */ p(A, {
203
203
  value: "upcoming",
204
204
  children: o("eventfullymanaged.events.filters.upcoming", "Upcoming")
205
205
  }),
206
- /* @__PURE__ */ f(j, {
206
+ /* @__PURE__ */ p(A, {
207
207
  value: "live",
208
208
  children: o("eventfullymanaged.events.filters.live", "Live")
209
209
  }),
210
- /* @__PURE__ */ f(j, {
210
+ /* @__PURE__ */ p(A, {
211
211
  value: "past",
212
212
  children: o("eventfullymanaged.events.filters.past", "Past")
213
213
  })
214
214
  ]
215
215
  })
216
216
  }),
217
- /* @__PURE__ */ p("div", {
217
+ /* @__PURE__ */ m("div", {
218
218
  className: "flex shrink-0 items-center gap-1 self-start rounded-button border border-border-seam p-1 sm:self-auto",
219
- children: [/* @__PURE__ */ f(x, {
219
+ children: [/* @__PURE__ */ p(b, {
220
220
  type: "button",
221
- variant: B === "table" ? "default" : "ghost",
221
+ variant: z === "table" ? "default" : "ghost",
222
222
  size: "sm",
223
- "aria-pressed": B === "table",
223
+ "aria-pressed": z === "table",
224
224
  "aria-label": o("eventfullymanaged.events.view.table", "Table view"),
225
- onClick: () => V("table"),
226
- children: /* @__PURE__ */ f(ie, { className: "h-4 w-4" })
227
- }), /* @__PURE__ */ f(x, {
225
+ onClick: () => B("table"),
226
+ children: /* @__PURE__ */ p(ae, { className: "h-4 w-4" })
227
+ }), /* @__PURE__ */ p(b, {
228
228
  type: "button",
229
- variant: B === "cards" ? "default" : "ghost",
229
+ variant: z === "cards" ? "default" : "ghost",
230
230
  size: "sm",
231
- "aria-pressed": B === "cards",
231
+ "aria-pressed": z === "cards",
232
232
  "aria-label": o("eventfullymanaged.events.view.cards", "Card view"),
233
- onClick: () => V("cards"),
234
- children: /* @__PURE__ */ f(re, { className: "h-4 w-4" })
233
+ onClick: () => B("cards"),
234
+ children: /* @__PURE__ */ p(ie, { className: "h-4 w-4" })
235
235
  })]
236
236
  })
237
237
  ]
238
238
  }),
239
- W ? /* @__PURE__ */ p("div", {
239
+ U ? /* @__PURE__ */ m("div", {
240
240
  className: "space-y-3",
241
241
  children: [
242
- /* @__PURE__ */ f(E, { className: "h-28 w-full rounded-card" }),
243
- /* @__PURE__ */ f(E, { className: "h-28 w-full rounded-card" }),
244
- /* @__PURE__ */ f(E, { className: "h-28 w-full rounded-card" })
242
+ /* @__PURE__ */ p(E, { className: "h-28 w-full rounded-card" }),
243
+ /* @__PURE__ */ p(E, { className: "h-28 w-full rounded-card" }),
244
+ /* @__PURE__ */ p(E, { className: "h-28 w-full rounded-card" })
245
245
  ]
246
- }) : Y.length === 0 ? /* @__PURE__ */ f(C, {
246
+ }) : Y.length === 0 ? /* @__PURE__ */ p(x, {
247
247
  treatment: "plain",
248
248
  className: "border-border-seam",
249
- children: /* @__PURE__ */ f(T, {
250
- illustration: R ? "empty-search" : "empty-data",
251
- title: R ? o("eventfullymanaged.events.list.emptySearch", "No events match your search.") : o("eventfullymanaged.events.list.empty", "No events yet."),
252
- description: R ? o("eventfullymanaged.events.list.emptySearchHint", "Try a different name.") : o("eventfullymanaged.events.list.emptyHint", "Create your first event to get started."),
253
- action: R ? void 0 : /* @__PURE__ */ p(x, {
249
+ children: /* @__PURE__ */ p(S, {
250
+ illustration: L ? "empty-search" : "empty-data",
251
+ title: L ? o("eventfullymanaged.events.list.emptySearch", "No events match your search.") : o("eventfullymanaged.events.list.empty", "No events yet."),
252
+ description: L ? o("eventfullymanaged.events.list.emptySearchHint", "Try a different name.") : o("eventfullymanaged.events.list.emptyHint", "Create your first event to get started."),
253
+ action: L ? void 0 : /* @__PURE__ */ m(b, {
254
254
  type: "button",
255
- onClick: () => L("/events/create"),
256
- children: [/* @__PURE__ */ f(h, { className: "h-4 w-4" }), o("eventfullymanaged.events.actions.create", "Create Event")]
255
+ onClick: () => I("/events/create"),
256
+ children: [/* @__PURE__ */ p(h, { className: "h-4 w-4" }), o("eventfullymanaged.events.actions.create", "Create Event")]
257
257
  })
258
258
  })
259
- }) : Z.length === 0 ? /* @__PURE__ */ p("div", {
259
+ }) : Z.length === 0 ? /* @__PURE__ */ m("div", {
260
260
  className: "space-y-3",
261
- children: [/* @__PURE__ */ f(C, {
261
+ children: [/* @__PURE__ */ p(x, {
262
262
  treatment: "plain",
263
263
  className: "border-border-seam",
264
- children: /* @__PURE__ */ f("p", {
264
+ children: /* @__PURE__ */ p("p", {
265
265
  className: "px-2 py-8 text-center text-sm text-text-secondary",
266
- children: o("eventfullymanaged.events.filters.empty", `No ${z} events on this page. Switch tabs or move to another page.`)
266
+ children: o("eventfullymanaged.events.filters.empty", `No ${R} events on this page. Switch tabs or move to another page.`)
267
267
  })
268
- }), /* @__PURE__ */ f(l, {
269
- offset: H.offset,
270
- limit: H.limit,
268
+ }), /* @__PURE__ */ p(l, {
269
+ offset: V.offset,
270
+ limit: V.limit,
271
271
  loadedCount: Y.length,
272
272
  total: J,
273
- onPrev: H.prevPage,
274
- onNext: H.nextPage,
273
+ onPrev: V.prevPage,
274
+ onNext: V.nextPage,
275
275
  itemLabel: "events",
276
- loading: W
276
+ loading: U
277
277
  })]
278
- }) : B === "table" ? /* @__PURE__ */ p("div", {
278
+ }) : z === "table" ? /* @__PURE__ */ m("div", {
279
279
  className: "space-y-3",
280
- children: [/* @__PURE__ */ f("div", {
280
+ children: [/* @__PURE__ */ p("div", {
281
281
  className: "overflow-hidden rounded-card border border-border-seam",
282
- children: /* @__PURE__ */ p(ue, { children: [/* @__PURE__ */ f(de, { children: /* @__PURE__ */ p(A, { children: [
283
- /* @__PURE__ */ f(k, { children: o("eventfullymanaged.events.table.name", "Event") }),
284
- /* @__PURE__ */ f(k, { children: o("eventfullymanaged.events.table.date", "Date") }),
285
- /* @__PURE__ */ f(k, { children: o("eventfullymanaged.events.table.venue", "Venue") }),
286
- /* @__PURE__ */ f(k, { children: o("eventfullymanaged.events.table.status", "Status") }),
287
- /* @__PURE__ */ f(k, {
282
+ children: /* @__PURE__ */ m(ue, { children: [/* @__PURE__ */ p(fe, { children: /* @__PURE__ */ m(k, { children: [
283
+ /* @__PURE__ */ p(O, { children: o("eventfullymanaged.events.table.name", "Event") }),
284
+ /* @__PURE__ */ p(O, { children: o("eventfullymanaged.events.table.date", "Date") }),
285
+ /* @__PURE__ */ p(O, { children: o("eventfullymanaged.events.table.venue", "Venue") }),
286
+ /* @__PURE__ */ p(O, { children: o("eventfullymanaged.events.table.status", "Status") }),
287
+ /* @__PURE__ */ p(O, {
288
288
  className: "text-right",
289
289
  children: o("eventfullymanaged.events.table.attendees", "Attendees")
290
290
  }),
291
- /* @__PURE__ */ f(k, {
291
+ /* @__PURE__ */ p(O, {
292
292
  className: "w-10",
293
293
  "aria-label": o("eventfullymanaged.events.table.actions", "Actions")
294
294
  })
295
- ] }) }), /* @__PURE__ */ f(D, { children: Z.map((e) => {
295
+ ] }) }), /* @__PURE__ */ p(de, { children: Z.map((e) => {
296
296
  let t = e.metadata ?? {}, n = typeof t.venueId == "string" ? t.venueId : "", r = n ? Q.get(n) : void 0, i = $.get(e.id), a = i?.registrations ?? 0, s = a > 0 ? Math.round((i?.checkedIn ?? 0) / a * 100) : 0;
297
- return /* @__PURE__ */ p(A, {
297
+ return /* @__PURE__ */ m(k, {
298
298
  className: "cursor-pointer",
299
299
  tabIndex: 0,
300
300
  "aria-label": e.name,
301
- onClick: () => L(`/events/${e.id}`),
301
+ onClick: () => I(`/events/${e.id}`),
302
302
  onKeyDown: (t) => {
303
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), L(`/events/${e.id}`));
303
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), I(`/events/${e.id}`));
304
304
  },
305
305
  children: [
306
- /* @__PURE__ */ f(O, {
306
+ /* @__PURE__ */ p(D, {
307
307
  className: "max-w-[18rem]",
308
- children: /* @__PURE__ */ p("div", {
308
+ children: /* @__PURE__ */ m("div", {
309
309
  className: "flex flex-wrap items-center gap-2",
310
- children: [/* @__PURE__ */ f("span", {
310
+ children: [/* @__PURE__ */ p("span", {
311
311
  className: "truncate font-medium text-text-primary",
312
312
  children: e.name
313
- }), e.type ? /* @__PURE__ */ f(b, {
313
+ }), e.type ? /* @__PURE__ */ p(y, {
314
314
  variant: "secondary",
315
315
  className: "shrink-0 capitalize",
316
316
  children: e.type.toLowerCase().replace(/_/g, " ")
317
317
  }) : null]
318
318
  })
319
319
  }),
320
- /* @__PURE__ */ f(O, {
320
+ /* @__PURE__ */ p(D, {
321
321
  className: "whitespace-nowrap text-text-secondary",
322
- children: N(e.startAt, e.endAt)
322
+ children: M(e.startAt, e.endAt)
323
323
  }),
324
- /* @__PURE__ */ f(O, {
324
+ /* @__PURE__ */ p(D, {
325
325
  className: "text-text-secondary",
326
326
  children: r ?? o("eventfullymanaged.events.card.noVenue", "No venue")
327
327
  }),
328
- /* @__PURE__ */ f(O, { children: e.status ? /* @__PURE__ */ f(b, {
329
- variant: M(e.status),
328
+ /* @__PURE__ */ p(D, { children: e.status ? /* @__PURE__ */ p(y, {
329
+ variant: j(e.status),
330
330
  className: "uppercase",
331
331
  children: e.status
332
332
  }) : "—" }),
333
- /* @__PURE__ */ p(O, {
333
+ /* @__PURE__ */ m(D, {
334
334
  className: "whitespace-nowrap text-right tabular-nums text-text-primary",
335
- children: [a.toLocaleString(), /* @__PURE__ */ p("span", {
335
+ children: [a.toLocaleString(), /* @__PURE__ */ m("span", {
336
336
  className: "ml-1 text-xs text-text-muted",
337
337
  children: [
338
338
  "(",
@@ -341,131 +341,131 @@ function L() {
341
341
  ]
342
342
  })]
343
343
  }),
344
- /* @__PURE__ */ f(O, {
344
+ /* @__PURE__ */ p(D, {
345
345
  onClick: (e) => e.stopPropagation(),
346
346
  onKeyDown: (e) => e.stopPropagation(),
347
- children: /* @__PURE__ */ f(c, {
347
+ children: /* @__PURE__ */ p(c, {
348
348
  ariaLabel: `Event actions for ${e.name}`,
349
349
  entityName: e.name,
350
350
  deleteLabel: "Delete event",
351
- onView: () => L(`/events/${e.id}`),
352
- onEdit: () => L(`/events/${e.id}/edit`),
351
+ onView: () => I(`/events/${e.id}`),
352
+ onEdit: () => I(`/events/${e.id}/edit`),
353
353
  onDelete: () => X(e)
354
354
  })
355
355
  })
356
356
  ]
357
357
  }, e.id);
358
358
  }) })] })
359
- }), /* @__PURE__ */ f(l, {
360
- offset: H.offset,
361
- limit: H.limit,
359
+ }), /* @__PURE__ */ p(l, {
360
+ offset: V.offset,
361
+ limit: V.limit,
362
362
  loadedCount: Y.length,
363
363
  total: J,
364
- onPrev: H.prevPage,
365
- onNext: H.nextPage,
364
+ onPrev: V.prevPage,
365
+ onNext: V.nextPage,
366
366
  itemLabel: "events",
367
- loading: W
367
+ loading: U
368
368
  })]
369
- }) : /* @__PURE__ */ p("div", {
369
+ }) : /* @__PURE__ */ m("div", {
370
370
  className: "space-y-3",
371
371
  children: [Z.map((e) => {
372
372
  let t = e.metadata ?? {}, n = typeof t.venueId == "string" ? t.venueId : "", r = n ? Q.get(n) : void 0, i = $.get(e.id), a = i?.registrations ?? 0, s = a > 0 ? Math.round((i?.checkedIn ?? 0) / a * 100) : 0;
373
- return /* @__PURE__ */ p(C, {
373
+ return /* @__PURE__ */ m(x, {
374
374
  treatment: "plain",
375
375
  role: "button",
376
376
  tabIndex: 0,
377
377
  "aria-label": e.name,
378
378
  className: "group relative cursor-pointer overflow-hidden border-border-seam p-0 outline-none transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1 focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
379
- onClick: () => L(`/events/${e.id}`),
379
+ onClick: () => I(`/events/${e.id}`),
380
380
  onKeyDown: (t) => {
381
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), L(`/events/${e.id}`));
381
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), I(`/events/${e.id}`));
382
382
  },
383
- children: [/* @__PURE__ */ f("span", {
383
+ children: [/* @__PURE__ */ p("span", {
384
384
  "aria-hidden": "true",
385
385
  className: "absolute inset-y-0 left-0 w-1.5 bg-gradient-to-b from-[var(--color-chart-1)] to-[var(--color-chart-2)]"
386
- }), /* @__PURE__ */ p("div", {
386
+ }), /* @__PURE__ */ m("div", {
387
387
  className: "flex flex-col gap-3 py-4 pl-5 pr-4 sm:flex-row sm:items-center sm:justify-between",
388
- children: [/* @__PURE__ */ p("div", {
388
+ children: [/* @__PURE__ */ m("div", {
389
389
  className: "min-w-0 space-y-2",
390
390
  children: [
391
- /* @__PURE__ */ p("div", {
391
+ /* @__PURE__ */ m("div", {
392
392
  className: "flex flex-wrap items-center gap-2",
393
393
  children: [
394
- /* @__PURE__ */ f("p", {
394
+ /* @__PURE__ */ p("p", {
395
395
  className: "truncate text-lg font-semibold text-text-primary",
396
396
  children: e.name
397
397
  }),
398
- e.status ? /* @__PURE__ */ f(b, {
399
- variant: M(e.status),
398
+ e.status ? /* @__PURE__ */ p(y, {
399
+ variant: j(e.status),
400
400
  className: "uppercase",
401
401
  children: e.status
402
402
  }) : null,
403
- e.type ? /* @__PURE__ */ f(b, {
403
+ e.type ? /* @__PURE__ */ p(y, {
404
404
  variant: "secondary",
405
405
  className: "capitalize",
406
406
  children: e.type.toLowerCase().replace(/_/g, " ")
407
407
  }) : null
408
408
  ]
409
409
  }),
410
- /* @__PURE__ */ p("div", {
410
+ /* @__PURE__ */ m("div", {
411
411
  className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary",
412
- children: [/* @__PURE__ */ p("span", {
412
+ children: [/* @__PURE__ */ m("span", {
413
413
  className: "flex items-center gap-1.5",
414
- children: [/* @__PURE__ */ f(te, { className: "h-4 w-4 shrink-0 text-text-muted" }), N(e.startAt, e.endAt)]
415
- }), /* @__PURE__ */ p("span", {
414
+ children: [/* @__PURE__ */ p(ne, { className: "h-4 w-4 shrink-0 text-text-muted" }), M(e.startAt, e.endAt)]
415
+ }), /* @__PURE__ */ m("span", {
416
416
  className: "flex items-center gap-1.5",
417
- children: [/* @__PURE__ */ f(g, { className: "h-4 w-4 shrink-0 text-text-muted" }), r ?? o("eventfullymanaged.events.card.noVenue", "No venue")]
417
+ children: [/* @__PURE__ */ p(g, { className: "h-4 w-4 shrink-0 text-text-muted" }), r ?? o("eventfullymanaged.events.card.noVenue", "No venue")]
418
418
  })]
419
419
  }),
420
- /* @__PURE__ */ p("div", {
420
+ /* @__PURE__ */ m("div", {
421
421
  className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs",
422
422
  children: [
423
- /* @__PURE__ */ f(I, {
424
- icon: v,
423
+ /* @__PURE__ */ p(F, {
424
+ icon: _,
425
425
  label: o("eventfullymanaged.events.card.registered", "registered"),
426
426
  value: a.toLocaleString()
427
427
  }),
428
- /* @__PURE__ */ f(I, {
429
- icon: v,
428
+ /* @__PURE__ */ p(F, {
429
+ icon: _,
430
430
  label: o("eventfullymanaged.events.card.checkedIn", "checked in"),
431
431
  value: `${s}%`
432
432
  }),
433
- /* @__PURE__ */ f(I, {
434
- icon: y,
433
+ /* @__PURE__ */ p(F, {
434
+ icon: v,
435
435
  label: o("eventfullymanaged.events.card.capacity", "capacity"),
436
436
  value: e.capacity == null ? "—" : e.capacity.toLocaleString()
437
437
  })
438
438
  ]
439
439
  })
440
440
  ]
441
- }), /* @__PURE__ */ f("div", {
441
+ }), /* @__PURE__ */ p("div", {
442
442
  className: "flex shrink-0 items-center gap-2 self-start sm:self-center",
443
443
  onClick: (e) => e.stopPropagation(),
444
444
  onKeyDown: (e) => e.stopPropagation(),
445
445
  role: "presentation",
446
- children: /* @__PURE__ */ f(c, {
446
+ children: /* @__PURE__ */ p(c, {
447
447
  ariaLabel: `Event actions for ${e.name}`,
448
448
  entityName: e.name,
449
449
  deleteLabel: "Delete event",
450
- onView: () => L(`/events/${e.id}`),
451
- onEdit: () => L(`/events/${e.id}/edit`),
450
+ onView: () => I(`/events/${e.id}`),
451
+ onEdit: () => I(`/events/${e.id}/edit`),
452
452
  onDelete: () => X(e)
453
453
  })
454
454
  })]
455
455
  })]
456
456
  }, e.id);
457
- }), /* @__PURE__ */ f(l, {
458
- offset: H.offset,
459
- limit: H.limit,
457
+ }), /* @__PURE__ */ p(l, {
458
+ offset: V.offset,
459
+ limit: V.limit,
460
460
  loadedCount: Y.length,
461
461
  total: J,
462
- onPrev: H.prevPage,
463
- onNext: H.nextPage,
462
+ onPrev: V.prevPage,
463
+ onNext: V.nextPage,
464
464
  itemLabel: "events",
465
- loading: W
465
+ loading: U
466
466
  })]
467
467
  }),
468
- /* @__PURE__ */ f(ce, {
468
+ /* @__PURE__ */ p(w, {
469
469
  storageKey: "eventfullymanaged-events",
470
470
  title: o("eventfullymanaged.events.nextSteps.title", "Finish setting up your event"),
471
471
  steps: [
@@ -473,22 +473,22 @@ function L() {
473
473
  id: "configure-registration",
474
474
  label: o("eventfullymanaged.events.nextSteps.registration", "Configure registration & tickets"),
475
475
  description: o("eventfullymanaged.events.nextSteps.registrationDesc", "Open an event and define ticket types so people can register."),
476
- icon: /* @__PURE__ */ f(ae, { className: "h-4 w-4" }),
477
- onClick: () => L("/registration")
476
+ icon: /* @__PURE__ */ p(se, { className: "h-4 w-4" }),
477
+ onClick: () => I("/registration")
478
478
  },
479
479
  {
480
480
  id: "plan-networking",
481
481
  label: o("eventfullymanaged.events.nextSteps.networking", "Plan networking & sessions"),
482
482
  description: o("eventfullymanaged.events.nextSteps.networkingDesc", "Set up attendee matchmaking and meeting schedules."),
483
- icon: /* @__PURE__ */ f(y, { className: "h-4 w-4" }),
484
- onClick: () => L("/networking")
483
+ icon: /* @__PURE__ */ p(v, { className: "h-4 w-4" }),
484
+ onClick: () => I("/networking")
485
485
  },
486
486
  {
487
487
  id: "announce",
488
488
  label: o("eventfullymanaged.events.nextSteps.announce", "Announce to attendees"),
489
489
  description: o("eventfullymanaged.events.nextSteps.announceDesc", "Send announcements and run communication campaigns."),
490
- icon: /* @__PURE__ */ f(h, { className: "h-4 w-4" }),
491
- onClick: () => L("/communication")
490
+ icon: /* @__PURE__ */ p(h, { className: "h-4 w-4" }),
491
+ onClick: () => I("/communication")
492
492
  }
493
493
  ]
494
494
  })
@@ -496,6 +496,6 @@ function L() {
496
496
  });
497
497
  }
498
498
  //#endregion
499
- export { L as default };
499
+ export { I as default };
500
500
 
501
501
  //# sourceMappingURL=EventsPage.js.map