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