@burdenoff/microfe-eventfullymanaged 2026.1108.2 → 2026.1110.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/eventfullymanaged/api/eventApi.d.ts +9 -0
  2. package/dist/eventfullymanaged/api/eventApi.js +216 -199
  3. package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
  4. package/dist/eventfullymanaged/components/ImageUploadField.d.ts +8 -1
  5. package/dist/eventfullymanaged/components/ImageUploadField.js +19 -17
  6. package/dist/eventfullymanaged/components/ImageUploadField.js.map +1 -1
  7. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +252 -249
  8. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  9. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -78
  10. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  11. package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js +119 -127
  12. package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js.map +1 -1
  13. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +5 -4
  14. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js.map +1 -1
  15. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +81 -80
  16. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  17. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +93 -91
  18. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  19. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +21 -15
  20. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js.map +1 -1
  21. package/dist/eventfullymanaged/utils/breadcrumbRegistry.d.ts +2 -0
  22. package/dist/eventfullymanaged/utils/breadcrumbRegistry.js +13 -0
  23. package/dist/eventfullymanaged/utils/breadcrumbRegistry.js.map +1 -0
  24. package/package.json +1 -1
@@ -10,13 +10,14 @@ import { useEventfullyManaged as h } from "../../context/EventfullyManagedContex
10
10
  import { describeValidity as g } from "../../lib/format.js";
11
11
  import { notify as _ } from "../../lib/toast.js";
12
12
  import { formatDateTime as v } from "./eventFormUtils.js";
13
- import { useMemo as y, useState as b } from "react";
14
- import { useParams as x } from "react-router";
15
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
16
- import { ArrowLeft as T, CalendarClock as E, Clock as D, Edit as O, Eye as k, MapPin as A, Mic2 as j, Plus as M, Ticket as N, Users as P, Video as F } from "lucide-react";
17
- import { Badge as I, Button as L, GlassCard as R, IllustratedEmptyState as z, Skeleton as B, Tabs as ee, TabsContent as V, TabsList as H, TabsTrigger as U } from "@burdenoff/fe-libs/ui";
13
+ import { registerBreadcrumbName as y, unregisterBreadcrumbName as b } from "../../utils/breadcrumbRegistry.js";
14
+ import { useEffect as x, useMemo as S, useState as C } from "react";
15
+ import { useParams as w } from "react-router";
16
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
17
+ import { ArrowLeft as O, CalendarClock as k, Clock as A, Edit as j, Eye as M, MapPin as N, Mic2 as P, Plus as F, Ticket as I, Users as ee, Video as te } from "lucide-react";
18
+ import { Badge as L, Button as R, GlassCard as z, IllustratedEmptyState as B, Skeleton as V, Tabs as H, TabsContent as U, TabsList as W, TabsTrigger as G } from "@burdenoff/fe-libs/ui";
18
19
  // src/eventfullymanaged/pages/events/EventDetailPage.tsx
19
- function W(e) {
20
+ function K(e) {
20
21
  let t = e.toLowerCase();
21
22
  return [
22
23
  "active",
@@ -38,24 +39,24 @@ function W(e) {
38
39
  "scheduled"
39
40
  ].includes(t) ? "info" : "secondary";
40
41
  }
41
- function G(e, t) {
42
+ function q(e, t) {
42
43
  let n = new Date(e).getTime(), r = new Date(t).getTime();
43
44
  if (Number.isNaN(n) || Number.isNaN(r) || r <= n) return "";
44
45
  let i = Math.round((r - n) / 6e4), a = Math.floor(i / 60), o = i % 60;
45
46
  return a && o ? `${a}h ${o}m` : a ? `${a}h` : `${o}m`;
46
47
  }
47
- function K(e) {
48
+ function J(e) {
48
49
  let t = e < 12 ? "AM" : "PM";
49
50
  return `${e % 12 == 0 ? 12 : e % 12}:00 ${t}`;
50
51
  }
51
- function q(e) {
52
+ function Y(e) {
52
53
  let t = new Date(e);
53
54
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleTimeString(void 0, {
54
55
  hour: "numeric",
55
56
  minute: "2-digit"
56
57
  });
57
58
  }
58
- var J = e`
59
+ var X = e`
59
60
  query EventfullymanagedScheduleSessions($eventId: ID, $limit: Int, $offset: Int) {
60
61
  eventSessions: eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset) {
61
62
  total
@@ -73,28 +74,28 @@ var J = e`
73
74
  }
74
75
  }
75
76
  }
76
- `, Y = "General";
77
- function X(e) {
77
+ `, Z = "General";
78
+ function ne(e) {
78
79
  let t = new Date(e);
79
80
  return Number.isNaN(t.getTime()) ? "unknown" : t.toISOString().slice(0, 10);
80
81
  }
81
- function Z({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDelete: a }) {
82
- let o = G(e.startsAt, e.endsAt);
83
- return /* @__PURE__ */ w("div", {
82
+ function Q({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDelete: a }) {
83
+ let o = q(e.startsAt, e.endsAt);
84
+ return /* @__PURE__ */ D("div", {
84
85
  className: "relative rounded-card border border-border-subtle p-3 shadow-elevation-1",
85
86
  style: {
86
87
  borderLeftWidth: "3px",
87
88
  borderLeftColor: t,
88
89
  background: `color-mix(in srgb, ${t} 8%, var(--color-bg-surface))`
89
90
  },
90
- children: [/* @__PURE__ */ w("div", {
91
+ children: [/* @__PURE__ */ D("div", {
91
92
  className: "flex items-start justify-between gap-2",
92
- children: [/* @__PURE__ */ C("p", {
93
+ children: [/* @__PURE__ */ E("p", {
93
94
  className: "min-w-0 pr-1 text-sm font-semibold leading-snug text-text-primary",
94
95
  children: e.title
95
- }), /* @__PURE__ */ C("div", {
96
+ }), /* @__PURE__ */ E("div", {
96
97
  className: "-mr-1 -mt-1 shrink-0",
97
- children: /* @__PURE__ */ C(u, {
98
+ children: /* @__PURE__ */ E(u, {
98
99
  ariaLabel: `Session actions for ${e.title}`,
99
100
  entityName: e.title,
100
101
  deleteLabel: "Delete session",
@@ -102,33 +103,33 @@ function Z({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDel
102
103
  onDelete: a
103
104
  })
104
105
  })]
105
- }), /* @__PURE__ */ w("dl", {
106
+ }), /* @__PURE__ */ D("dl", {
106
107
  className: "mt-2 space-y-1 text-xs text-text-secondary",
107
108
  children: [
108
- /* @__PURE__ */ w("div", {
109
+ /* @__PURE__ */ D("div", {
109
110
  className: "flex items-center gap-1.5",
110
- children: [/* @__PURE__ */ C(j, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ C("span", {
111
+ children: [/* @__PURE__ */ E(P, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ E("span", {
111
112
  className: "truncate",
112
113
  children: n ?? "Speaker TBD"
113
114
  })]
114
115
  }),
115
- r ? /* @__PURE__ */ w("div", {
116
+ r ? /* @__PURE__ */ D("div", {
116
117
  className: "flex items-center gap-1.5",
117
- children: [/* @__PURE__ */ C(A, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ C("span", {
118
+ children: [/* @__PURE__ */ E(N, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ E("span", {
118
119
  className: "truncate",
119
120
  children: r
120
121
  })]
121
122
  }) : null,
122
- /* @__PURE__ */ w("div", {
123
+ /* @__PURE__ */ D("div", {
123
124
  className: "flex items-center gap-1.5",
124
- children: [/* @__PURE__ */ C(D, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ w("span", { children: [q(e.startsAt), o ? ` · ${o}` : ""] })]
125
+ children: [/* @__PURE__ */ E(A, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ D("span", { children: [Y(e.startsAt), o ? ` · ${o}` : ""] })]
125
126
  })
126
127
  ]
127
128
  })]
128
129
  });
129
130
  }
130
- function Q({ eventId: e }) {
131
- let { navigate: r } = h(), i = p(), { data: a, loading: o, refetch: c } = t(J, { variables: {
131
+ function re({ eventId: e }) {
132
+ let { navigate: r } = h(), i = p(), { data: a, loading: o, refetch: c } = t(X, { variables: {
132
133
  eventId: e,
133
134
  limit: i.limit,
134
135
  offset: i.offset
@@ -138,29 +139,29 @@ function Q({ eventId: e }) {
138
139
  }), { data: m } = s({
139
140
  limit: 100,
140
141
  offset: 0
141
- }), [g] = n(), v = a?.eventSessions?.total ?? 0, b = y(() => a?.eventSessions?.items ?? [], [a]), x = y(() => {
142
+ }), [g] = n(), v = a?.eventSessions?.total ?? 0, y = S(() => a?.eventSessions?.items ?? [], [a]), b = S(() => {
142
143
  let e = /* @__PURE__ */ new Map();
143
144
  for (let t of u?.venues?.items ?? []) e.set(t.id, t.name);
144
145
  return e;
145
- }, [u]), S = y(() => {
146
+ }, [u]), x = S(() => {
146
147
  let e = /* @__PURE__ */ new Map();
147
148
  for (let t of m?.speakers?.items ?? []) e.set(t.id, t.fullName);
148
149
  return e;
149
- }, [m]), T = y(() => {
150
+ }, [m]), C = S(() => {
150
151
  let e = /* @__PURE__ */ new Map(), t = 0;
151
- for (let n of b) {
152
- let r = n.track?.trim() || Y;
152
+ for (let n of y) {
153
+ let r = n.track?.trim() || Z;
153
154
  e.has(r) || (e.set(r, d[t % d.length]), t += 1);
154
155
  }
155
156
  return e;
156
- }, [b]), E = y(() => {
157
+ }, [y]), w = S(() => {
157
158
  let e = /* @__PURE__ */ new Map();
158
- for (let t of [...b].sort((e, t) => new Date(e.startsAt).getTime() - new Date(t.startsAt).getTime())) {
159
- let n = X(t.startsAt), r = e.get(n) ?? [];
159
+ for (let t of [...y].sort((e, t) => new Date(e.startsAt).getTime() - new Date(t.startsAt).getTime())) {
160
+ let n = ne(t.startsAt), r = e.get(n) ?? [];
160
161
  r.push(t), e.set(n, r);
161
162
  }
162
163
  return Array.from(e.entries()).map(([e, t]) => {
163
- let n = Array.from(new Set(t.map((e) => e.track?.trim() || Y))), r = t.map((e) => new Date(e.startsAt).getHours()).filter((e) => !Number.isNaN(e)), i = r.length ? Math.min(...r) : 9, a = r.length ? Math.max(...r) : 17, o = [];
164
+ let n = Array.from(new Set(t.map((e) => e.track?.trim() || Z))), r = t.map((e) => new Date(e.startsAt).getHours()).filter((e) => !Number.isNaN(e)), i = r.length ? Math.min(...r) : 9, a = r.length ? Math.max(...r) : 17, o = [];
164
165
  for (let e = i; e <= a; e += 1) o.push(e);
165
166
  return {
166
167
  key: e,
@@ -169,50 +170,50 @@ function Q({ eventId: e }) {
169
170
  hourRange: o
170
171
  };
171
172
  });
172
- }, [b]), D = async (e) => {
173
+ }, [y]), T = async (e) => {
173
174
  let t = await g({ variables: { id: e.id } });
174
175
  if (t.error) throw _.error("Could not delete session", t.error.message), t.error;
175
176
  if (!t.data?.deleteEventSession) throw _.error("Could not delete session", "The server did not confirm the change."), Error("delete-unconfirmed");
176
177
  _.success("Session deleted", e.title), await c();
177
178
  }, O = (e) => {
178
179
  let t = e.metadata ?? {}, n = typeof t.speakerId == "string" ? t.speakerId : "";
179
- return n ? S.get(n) : void 0;
180
- }, k = (e) => e.venueId ? x.get(e.venueId) : void 0;
181
- return /* @__PURE__ */ w("div", {
180
+ return n ? x.get(n) : void 0;
181
+ }, k = (e) => e.venueId ? b.get(e.venueId) : void 0;
182
+ return /* @__PURE__ */ D("div", {
182
183
  className: "space-y-5",
183
184
  children: [
184
- /* @__PURE__ */ w("div", {
185
+ /* @__PURE__ */ D("div", {
185
186
  className: "flex items-center justify-between gap-3",
186
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h2", {
187
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
187
188
  className: "text-lg font-semibold text-text-primary",
188
189
  children: "Agenda & Sessions"
189
- }), /* @__PURE__ */ C("p", {
190
+ }), /* @__PURE__ */ E("p", {
190
191
  className: "text-sm text-text-secondary",
191
192
  children: "A multi-track schedule of everything happening on the day."
192
- })] }), /* @__PURE__ */ w(L, {
193
+ })] }), /* @__PURE__ */ D(R, {
193
194
  type: "button",
194
195
  size: "sm",
195
196
  onClick: () => r(`/events/${e}/sessions/create`),
196
- children: [/* @__PURE__ */ C(M, { className: "h-4 w-4" }), "New Session"]
197
+ children: [/* @__PURE__ */ E(F, { className: "h-4 w-4" }), "New Session"]
197
198
  })]
198
199
  }),
199
- o ? /* @__PURE__ */ C(B, { className: "h-64 w-full rounded-card" }) : b.length === 0 ? /* @__PURE__ */ C(z, {
200
+ o ? /* @__PURE__ */ E(V, { className: "h-64 w-full rounded-card" }) : y.length === 0 ? /* @__PURE__ */ E(B, {
200
201
  illustration: "empty-data",
201
202
  title: "No sessions yet.",
202
203
  description: "Build the agenda by adding your first session.",
203
- action: /* @__PURE__ */ w(L, {
204
+ action: /* @__PURE__ */ D(R, {
204
205
  type: "button",
205
206
  size: "sm",
206
207
  onClick: () => r(`/events/${e}/sessions/create`),
207
- children: [/* @__PURE__ */ C(M, { className: "h-4 w-4" }), "New Session"]
208
+ children: [/* @__PURE__ */ E(F, { className: "h-4 w-4" }), "New Session"]
208
209
  }),
209
210
  className: "py-10"
210
- }) : /* @__PURE__ */ C("div", {
211
+ }) : /* @__PURE__ */ E("div", {
211
212
  className: "space-y-8",
212
- children: E.map((t) => /* @__PURE__ */ w("section", {
213
+ children: w.map((t) => /* @__PURE__ */ D("section", {
213
214
  className: "space-y-3",
214
215
  children: [
215
- /* @__PURE__ */ C("h3", {
216
+ /* @__PURE__ */ E("h3", {
216
217
  className: "text-sm font-semibold text-text-primary",
217
218
  children: (/* @__PURE__ */ new Date(`${t.key}T00:00:00`)).toLocaleDateString(void 0, {
218
219
  weekday: "long",
@@ -220,40 +221,40 @@ function Q({ eventId: e }) {
220
221
  day: "numeric"
221
222
  })
222
223
  }),
223
- /* @__PURE__ */ C("div", {
224
+ /* @__PURE__ */ E("div", {
224
225
  className: "hidden overflow-x-auto rounded-card border border-border-seam md:block",
225
- children: /* @__PURE__ */ w("div", {
226
+ children: /* @__PURE__ */ D("div", {
226
227
  className: "grid min-w-max",
227
228
  style: { gridTemplateColumns: `88px repeat(${t.tracks.length}, minmax(200px, 1fr))` },
228
229
  children: [
229
- /* @__PURE__ */ C("div", { className: "sticky left-0 z-10 border-b border-border-seam bg-bg-sunken px-3 py-2.5" }),
230
- t.tracks.map((e) => /* @__PURE__ */ C("div", {
230
+ /* @__PURE__ */ E("div", { className: "sticky left-0 z-10 border-b border-border-seam bg-bg-sunken px-3 py-2.5" }),
231
+ t.tracks.map((e) => /* @__PURE__ */ E("div", {
231
232
  className: "border-b border-l border-border-seam bg-bg-sunken px-3 py-2.5 text-center text-sm font-semibold text-text-primary",
232
- children: /* @__PURE__ */ w("span", {
233
+ children: /* @__PURE__ */ D("span", {
233
234
  className: "inline-flex items-center gap-2",
234
- children: [/* @__PURE__ */ C("span", {
235
+ children: [/* @__PURE__ */ E("span", {
235
236
  className: "h-2 w-2 rounded-full",
236
- style: { background: T.get(e) },
237
+ style: { background: C.get(e) },
237
238
  "aria-hidden": "true"
238
239
  }), e]
239
240
  })
240
241
  }, e)),
241
- t.hourRange.map((n) => /* @__PURE__ */ w("div", {
242
+ t.hourRange.map((n) => /* @__PURE__ */ D("div", {
242
243
  className: "contents",
243
- children: [/* @__PURE__ */ C("div", {
244
+ children: [/* @__PURE__ */ E("div", {
244
245
  className: "sticky left-0 z-10 border-b border-border-subtle bg-bg-surface px-3 py-3 text-xs font-medium text-text-muted",
245
- children: K(n)
246
+ children: J(n)
246
247
  }), t.tracks.map((i) => {
247
- let a = t.sessions.filter((e) => (e.track?.trim() || Y) === i && new Date(e.startsAt).getHours() === n);
248
- return /* @__PURE__ */ C("div", {
248
+ let a = t.sessions.filter((e) => (e.track?.trim() || Z) === i && new Date(e.startsAt).getHours() === n);
249
+ return /* @__PURE__ */ E("div", {
249
250
  className: "space-y-2 border-b border-l border-border-subtle p-2 align-top",
250
- children: a.map((t) => /* @__PURE__ */ C(Z, {
251
+ children: a.map((t) => /* @__PURE__ */ E(Q, {
251
252
  session: t,
252
- color: T.get(i) ?? d[0],
253
+ color: C.get(i) ?? d[0],
253
254
  speakerName: O(t),
254
255
  roomName: k(t),
255
256
  onEdit: () => r(`/events/${e}/sessions/${t.id}/edit`),
256
- onDelete: () => D(t)
257
+ onDelete: () => T(t)
257
258
  }, t.id))
258
259
  }, `${n}-${i}`);
259
260
  })]
@@ -261,27 +262,27 @@ function Q({ eventId: e }) {
261
262
  ]
262
263
  })
263
264
  }),
264
- /* @__PURE__ */ C("ul", {
265
+ /* @__PURE__ */ E("ul", {
265
266
  className: "space-y-2.5 md:hidden",
266
267
  children: t.sessions.map((t) => {
267
- let n = t.track?.trim() || Y;
268
- return /* @__PURE__ */ C("li", { children: /* @__PURE__ */ C(Z, {
268
+ let n = t.track?.trim() || Z;
269
+ return /* @__PURE__ */ E("li", { children: /* @__PURE__ */ E(Q, {
269
270
  session: t,
270
- color: T.get(n) ?? d[0],
271
+ color: C.get(n) ?? d[0],
271
272
  speakerName: O(t),
272
273
  roomName: k(t) ?? n,
273
274
  onEdit: () => r(`/events/${e}/sessions/${t.id}/edit`),
274
- onDelete: () => D(t)
275
+ onDelete: () => T(t)
275
276
  }) }, t.id);
276
277
  })
277
278
  })
278
279
  ]
279
280
  }, t.key))
280
281
  }),
281
- /* @__PURE__ */ C(f, {
282
+ /* @__PURE__ */ E(f, {
282
283
  offset: i.offset,
283
284
  limit: i.limit,
284
- loadedCount: b.length,
285
+ loadedCount: y.length,
285
286
  total: v,
286
287
  onPrev: i.prevPage,
287
288
  onNext: i.nextPage,
@@ -291,7 +292,7 @@ function Q({ eventId: e }) {
291
292
  ]
292
293
  });
293
294
  }
294
- function te() {
295
+ function ie() {
295
296
  let { navigate: e } = h(), t = p(), { data: n, loading: i, refetch: a } = s({
296
297
  limit: t.limit,
297
298
  offset: t.offset
@@ -301,57 +302,57 @@ function te() {
301
302
  if (!t.data?.deleteSpeaker) throw _.error("Could not delete speaker", "The server did not confirm the change."), Error("delete-unconfirmed");
302
303
  _.success("Speaker deleted", e.fullName), await a();
303
304
  };
304
- return /* @__PURE__ */ w("div", {
305
+ return /* @__PURE__ */ D("div", {
305
306
  className: "space-y-4",
306
307
  children: [
307
- /* @__PURE__ */ w("div", {
308
+ /* @__PURE__ */ D("div", {
308
309
  className: "flex items-center justify-between gap-3",
309
- children: [/* @__PURE__ */ C("h2", {
310
+ children: [/* @__PURE__ */ E("h2", {
310
311
  className: "text-lg font-semibold text-text-primary",
311
312
  children: "Speakers"
312
- }), /* @__PURE__ */ w("div", {
313
+ }), /* @__PURE__ */ D("div", {
313
314
  className: "flex items-center gap-2",
314
- children: [/* @__PURE__ */ C(L, {
315
+ children: [/* @__PURE__ */ E(R, {
315
316
  type: "button",
316
317
  variant: "outline",
317
318
  size: "sm",
318
319
  onClick: () => e("/speakers"),
319
320
  children: "Manage speakers"
320
- }), /* @__PURE__ */ w(L, {
321
+ }), /* @__PURE__ */ D(R, {
321
322
  type: "button",
322
323
  size: "sm",
323
324
  onClick: () => e("/speakers/create"),
324
- children: [/* @__PURE__ */ C(M, { className: "h-4 w-4" }), "New Speaker"]
325
+ children: [/* @__PURE__ */ E(F, { className: "h-4 w-4" }), "New Speaker"]
325
326
  })]
326
327
  })]
327
328
  }),
328
- i ? /* @__PURE__ */ C(B, { className: "h-40 w-full rounded-card" }) : l.length === 0 ? /* @__PURE__ */ C(z, {
329
+ i ? /* @__PURE__ */ E(V, { className: "h-40 w-full rounded-card" }) : l.length === 0 ? /* @__PURE__ */ E(B, {
329
330
  illustration: "empty-people",
330
331
  title: "No speakers yet.",
331
332
  description: "Add speakers so you can assign them to sessions.",
332
333
  className: "py-8"
333
- }) : /* @__PURE__ */ C("ul", {
334
+ }) : /* @__PURE__ */ E("ul", {
334
335
  className: "grid grid-cols-1 gap-2.5 sm:grid-cols-2",
335
- children: l.map((t) => /* @__PURE__ */ C("li", {
336
+ children: l.map((t) => /* @__PURE__ */ E("li", {
336
337
  className: "rounded-card border border-border-seam bg-bg-surface p-3 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1",
337
- children: /* @__PURE__ */ w("div", {
338
+ children: /* @__PURE__ */ D("div", {
338
339
  className: "flex items-center justify-between gap-3",
339
- children: [/* @__PURE__ */ w("div", {
340
+ children: [/* @__PURE__ */ D("div", {
340
341
  className: "flex min-w-0 items-center gap-3",
341
- children: [/* @__PURE__ */ C("span", {
342
+ children: [/* @__PURE__ */ E("span", {
342
343
  className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-accent-wash text-sm font-semibold text-action-primary-bg",
343
344
  children: t.fullName.slice(0, 1).toUpperCase()
344
- }), /* @__PURE__ */ w("div", {
345
+ }), /* @__PURE__ */ D("div", {
345
346
  className: "min-w-0",
346
- children: [/* @__PURE__ */ C("p", {
347
+ children: [/* @__PURE__ */ E("p", {
347
348
  className: "truncate font-medium text-text-primary",
348
349
  children: t.fullName
349
- }), /* @__PURE__ */ C("p", {
350
+ }), /* @__PURE__ */ E("p", {
350
351
  className: "mt-0.5 truncate text-sm text-text-secondary",
351
352
  children: [t.title, t.organization].filter(Boolean).join(" • ") || "Speaker"
352
353
  })]
353
354
  })]
354
- }), /* @__PURE__ */ C(u, {
355
+ }), /* @__PURE__ */ E(u, {
355
356
  ariaLabel: `Speaker actions for ${t.fullName}`,
356
357
  entityName: t.fullName,
357
358
  deleteLabel: "Delete speaker",
@@ -361,7 +362,7 @@ function te() {
361
362
  })
362
363
  }, t.id))
363
364
  }),
364
- /* @__PURE__ */ C(f, {
365
+ /* @__PURE__ */ E(f, {
365
366
  offset: t.offset,
366
367
  limit: t.limit,
367
368
  loadedCount: l.length,
@@ -374,7 +375,7 @@ function te() {
374
375
  ]
375
376
  });
376
377
  }
377
- function ne({ eventId: e }) {
378
+ function ae({ eventId: e }) {
378
379
  let { navigate: t } = h(), n = p(), { data: r, loading: a, refetch: o } = c({
379
380
  eventId: e,
380
381
  limit: n.limit,
@@ -385,42 +386,42 @@ function ne({ eventId: e }) {
385
386
  if (!t.data?.deleteTicketType) throw _.error("Could not delete ticket type", "The server did not confirm the change."), Error("delete-unconfirmed");
386
387
  _.success("Ticket type deleted"), await o();
387
388
  };
388
- return /* @__PURE__ */ w("div", {
389
+ return /* @__PURE__ */ D("div", {
389
390
  className: "space-y-4",
390
391
  children: [
391
- /* @__PURE__ */ w("div", {
392
+ /* @__PURE__ */ D("div", {
392
393
  className: "flex items-center justify-between gap-3",
393
- children: [/* @__PURE__ */ C("h2", {
394
+ children: [/* @__PURE__ */ E("h2", {
394
395
  className: "text-lg font-semibold text-text-primary",
395
396
  children: "Ticket Types"
396
- }), /* @__PURE__ */ w(L, {
397
+ }), /* @__PURE__ */ D(R, {
397
398
  type: "button",
398
399
  size: "sm",
399
400
  onClick: () => t(`/events/${e}/tickets/create`),
400
- children: [/* @__PURE__ */ C(M, { className: "h-4 w-4" }), "New Ticket Type"]
401
+ children: [/* @__PURE__ */ E(F, { className: "h-4 w-4" }), "New Ticket Type"]
401
402
  })]
402
403
  }),
403
- a ? /* @__PURE__ */ C(B, { className: "h-40 w-full rounded-card" }) : d.length === 0 ? /* @__PURE__ */ C(z, {
404
+ a ? /* @__PURE__ */ E(V, { className: "h-40 w-full rounded-card" }) : d.length === 0 ? /* @__PURE__ */ E(B, {
404
405
  illustration: "empty-data",
405
406
  title: "No ticket types yet.",
406
407
  description: "Add a ticket type so attendees can register.",
407
408
  className: "py-8"
408
- }) : /* @__PURE__ */ C("ul", {
409
+ }) : /* @__PURE__ */ E("ul", {
409
410
  className: "space-y-3",
410
411
  children: d.map((n) => {
411
412
  let r = n.capacity != null && n.capacity > 0, i = r ? Math.min(100, Math.round(n.soldCount / n.capacity * 100)) : 0, a = i >= 90;
412
- return /* @__PURE__ */ w("li", {
413
+ return /* @__PURE__ */ D("li", {
413
414
  className: "rounded-card border border-border-seam bg-bg-surface p-4 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1",
414
- children: [/* @__PURE__ */ w("div", {
415
+ children: [/* @__PURE__ */ D("div", {
415
416
  className: "flex items-start justify-between gap-3",
416
- children: [/* @__PURE__ */ w("div", {
417
+ children: [/* @__PURE__ */ D("div", {
417
418
  className: "min-w-0",
418
419
  children: [
419
- /* @__PURE__ */ C("p", {
420
+ /* @__PURE__ */ E("p", {
420
421
  className: "truncate font-medium text-text-primary",
421
422
  children: n.name
422
423
  }),
423
- /* @__PURE__ */ w("p", {
424
+ /* @__PURE__ */ D("p", {
424
425
  className: "mt-0.5 text-sm text-text-secondary",
425
426
  children: [
426
427
  n.price,
@@ -428,24 +429,24 @@ function ne({ eventId: e }) {
428
429
  n.currency
429
430
  ]
430
431
  }),
431
- /* @__PURE__ */ w("p", {
432
+ /* @__PURE__ */ D("p", {
432
433
  className: "mt-1 flex items-center gap-1.5 text-xs text-text-muted",
433
- children: [/* @__PURE__ */ C(E, {
434
+ children: [/* @__PURE__ */ E(k, {
434
435
  className: "h-3.5 w-3.5 shrink-0",
435
436
  "aria-hidden": "true"
436
- }), /* @__PURE__ */ w("span", {
437
+ }), /* @__PURE__ */ D("span", {
437
438
  className: "truncate",
438
439
  children: ["Sales window · ", g(n.salesStartAt ?? "", n.salesEndAt ?? "")]
439
440
  })]
440
441
  })
441
442
  ]
442
- }), /* @__PURE__ */ w("div", {
443
+ }), /* @__PURE__ */ D("div", {
443
444
  className: "flex shrink-0 items-center gap-2",
444
- children: [/* @__PURE__ */ C(I, {
445
+ children: [/* @__PURE__ */ E(L, {
445
446
  variant: n.isActive ? "success" : "warning",
446
447
  className: "uppercase",
447
448
  children: n.isActive ? "Active" : "Inactive"
448
- }), /* @__PURE__ */ C(u, {
449
+ }), /* @__PURE__ */ E(u, {
449
450
  ariaLabel: `Ticket actions for ${n.name}`,
450
451
  entityName: n.name,
451
452
  deleteLabel: "Delete ticket type",
@@ -453,34 +454,34 @@ function ne({ eventId: e }) {
453
454
  onDelete: () => m(n)
454
455
  })]
455
456
  })]
456
- }), /* @__PURE__ */ w("div", {
457
+ }), /* @__PURE__ */ D("div", {
457
458
  className: "mt-3",
458
- children: [/* @__PURE__ */ w("div", {
459
+ children: [/* @__PURE__ */ D("div", {
459
460
  className: "flex items-center justify-between text-xs text-text-secondary",
460
- children: [/* @__PURE__ */ w("span", { children: [
461
- /* @__PURE__ */ C("span", {
461
+ children: [/* @__PURE__ */ D("span", { children: [
462
+ /* @__PURE__ */ E("span", {
462
463
  className: "font-medium tabular-nums text-text-primary",
463
464
  children: n.soldCount.toLocaleString()
464
465
  }),
465
466
  " ",
466
467
  "sold",
467
- r ? /* @__PURE__ */ w(S, { children: [
468
+ r ? /* @__PURE__ */ D(T, { children: [
468
469
  " / ",
469
470
  n.capacity.toLocaleString(),
470
471
  " capacity"
471
472
  ] }) : " • unlimited capacity"
472
- ] }), r ? /* @__PURE__ */ w("span", {
473
+ ] }), r ? /* @__PURE__ */ D("span", {
473
474
  className: a ? "font-medium text-text-primary" : "",
474
475
  children: [i, "%"]
475
476
  }) : null]
476
- }), r ? /* @__PURE__ */ C("div", {
477
+ }), r ? /* @__PURE__ */ E("div", {
477
478
  className: "mt-1.5 h-2 overflow-hidden rounded-full bg-bg-sunken",
478
479
  role: "progressbar",
479
480
  "aria-valuenow": i,
480
481
  "aria-valuemin": 0,
481
482
  "aria-valuemax": 100,
482
483
  "aria-label": `${n.name} sold`,
483
- children: /* @__PURE__ */ C("div", {
484
+ children: /* @__PURE__ */ E("div", {
484
485
  className: "h-full rounded-full transition-[width] duration-500",
485
486
  style: {
486
487
  width: `${i}%`,
@@ -492,7 +493,7 @@ function ne({ eventId: e }) {
492
493
  }, n.id);
493
494
  })
494
495
  }),
495
- /* @__PURE__ */ C(f, {
496
+ /* @__PURE__ */ E(f, {
496
497
  offset: n.offset,
497
498
  limit: n.limit,
498
499
  loadedCount: d.length,
@@ -506,27 +507,27 @@ function ne({ eventId: e }) {
506
507
  });
507
508
  }
508
509
  function $({ label: e, value: t, icon: n }) {
509
- return /* @__PURE__ */ w(R, {
510
+ return /* @__PURE__ */ D(z, {
510
511
  treatment: "metric",
511
512
  className: "p-4",
512
513
  children: [
513
- /* @__PURE__ */ C("span", {
514
+ /* @__PURE__ */ E("span", {
514
515
  className: "flex h-8 w-8 items-center justify-center rounded-button bg-accent-wash text-action-primary-bg",
515
- children: /* @__PURE__ */ C(n, { className: "h-4 w-4" })
516
+ children: /* @__PURE__ */ E(n, { className: "h-4 w-4" })
516
517
  }),
517
- /* @__PURE__ */ C("div", {
518
+ /* @__PURE__ */ E("div", {
518
519
  className: "mt-2.5 text-xl font-semibold tabular-nums text-text-primary",
519
520
  children: t
520
521
  }),
521
- /* @__PURE__ */ C("div", {
522
+ /* @__PURE__ */ E("div", {
522
523
  className: "mt-0.5 text-xs text-text-muted",
523
524
  children: e
524
525
  })
525
526
  ]
526
527
  });
527
528
  }
528
- function re() {
529
- let { id: e = "" } = x(), { navigate: n } = h(), { data: r, loading: i } = a(e), { data: s } = t(J, {
529
+ function oe() {
530
+ let { id: e = "" } = w(), { navigate: n } = h(), { data: r, loading: i } = a(e), { data: s } = t(X, {
530
531
  variables: {
531
532
  eventId: e,
532
533
  limit: 200
@@ -543,317 +544,319 @@ function re() {
543
544
  eventId: e,
544
545
  limit: 1,
545
546
  offset: 0
546
- }), { onDeleteEvent: g } = m(), [_, S] = b("overview"), D = async () => {
547
+ }), { onDeleteEvent: g } = m(), [_, T] = C("overview"), A = async () => {
547
548
  await g(e, { onSuccess: () => n("/events") });
548
- }, j = r?.event ?? null, M = y(() => {
549
- let e = j?.metadata ?? {};
549
+ }, P = r?.event ?? null;
550
+ x(() => (y(e, P?.name), () => b(e)), [e, P?.name]);
551
+ let F = S(() => {
552
+ let e = P?.metadata ?? {};
550
553
  return typeof e.venueId == "string" ? e.venueId : "";
551
- }, [j]), G = y(() => M ? f?.venues?.items?.find((e) => e.id === M)?.name : void 0, [M, f]), K = s?.eventSessions?.total ?? 0, q = p?.registrations?.total ?? 0, Y = y(() => (d?.ticketTypes?.items ?? []).reduce((e, t) => e + (t.soldCount ?? 0), 0), [d]);
552
- return i ? /* @__PURE__ */ w("div", {
554
+ }, [P]), q = S(() => F ? f?.venues?.items?.find((e) => e.id === F)?.name : void 0, [F, f]), J = s?.eventSessions?.total ?? 0, Y = p?.registrations?.total ?? 0, Z = S(() => (d?.ticketTypes?.items ?? []).reduce((e, t) => e + (t.soldCount ?? 0), 0), [d]);
555
+ return i ? /* @__PURE__ */ D("div", {
553
556
  className: "space-y-4 p-6",
554
557
  children: [
555
- /* @__PURE__ */ C(B, { className: "h-8 w-40" }),
556
- /* @__PURE__ */ C(B, { className: "h-24 w-full rounded-card" }),
557
- /* @__PURE__ */ C(B, { className: "h-64 w-full rounded-card" })
558
+ /* @__PURE__ */ E(V, { className: "h-8 w-40" }),
559
+ /* @__PURE__ */ E(V, { className: "h-24 w-full rounded-card" }),
560
+ /* @__PURE__ */ E(V, { className: "h-64 w-full rounded-card" })
558
561
  ]
559
- }) : j ? /* @__PURE__ */ w("div", {
562
+ }) : P ? /* @__PURE__ */ D("div", {
560
563
  className: "space-y-6 p-6",
561
564
  children: [
562
- /* @__PURE__ */ w("div", {
565
+ /* @__PURE__ */ D("div", {
563
566
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
564
- children: [/* @__PURE__ */ w("div", {
567
+ children: [/* @__PURE__ */ D("div", {
565
568
  className: "space-y-3",
566
- children: [/* @__PURE__ */ w(L, {
569
+ children: [/* @__PURE__ */ D(R, {
567
570
  type: "button",
568
571
  variant: "ghost",
569
572
  size: "sm",
570
573
  onClick: () => n("/events"),
571
- children: [/* @__PURE__ */ C(T, { className: "h-4 w-4" }), "Back to Events"]
572
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
574
+ children: [/* @__PURE__ */ E(O, { className: "h-4 w-4" }), "Back to Events"]
575
+ }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
573
576
  className: "flex flex-wrap items-center gap-3",
574
- children: [/* @__PURE__ */ C("h1", {
577
+ children: [/* @__PURE__ */ E("h1", {
575
578
  className: "text-2xl font-bold text-text-primary",
576
- children: j.name
577
- }), /* @__PURE__ */ C(I, {
578
- variant: W(j.status),
579
+ children: P.name
580
+ }), /* @__PURE__ */ E(L, {
581
+ variant: K(P.status),
579
582
  className: "uppercase",
580
- children: j.status
583
+ children: P.status
581
584
  })]
582
- }), /* @__PURE__ */ w("p", {
585
+ }), /* @__PURE__ */ D("p", {
583
586
  className: "mt-1 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary",
584
- children: [/* @__PURE__ */ w("span", {
587
+ children: [/* @__PURE__ */ D("span", {
585
588
  className: "flex items-center gap-1.5",
586
589
  children: [
587
- /* @__PURE__ */ C(E, { className: "h-4 w-4 text-text-muted" }),
588
- v(j.startAt),
590
+ /* @__PURE__ */ E(k, { className: "h-4 w-4 text-text-muted" }),
591
+ v(P.startAt),
589
592
  " — ",
590
- v(j.endAt)
593
+ v(P.endAt)
591
594
  ]
592
- }), G ? /* @__PURE__ */ w("span", {
595
+ }), q ? /* @__PURE__ */ D("span", {
593
596
  className: "flex items-center gap-1.5",
594
- children: [/* @__PURE__ */ C(A, { className: "h-4 w-4 text-text-muted" }), G]
597
+ children: [/* @__PURE__ */ E(N, { className: "h-4 w-4 text-text-muted" }), q]
595
598
  }) : null]
596
599
  })] })]
597
- }), /* @__PURE__ */ w("div", {
600
+ }), /* @__PURE__ */ D("div", {
598
601
  className: "flex flex-wrap gap-2",
599
602
  children: [
600
- j.type === "VIRTUAL" || j.type === "HYBRID" ? /* @__PURE__ */ w(L, {
603
+ P.type === "VIRTUAL" || P.type === "HYBRID" ? /* @__PURE__ */ D(R, {
601
604
  type: "button",
602
605
  variant: "outline",
603
606
  onClick: () => n(`/events/${e}/virtual`),
604
- children: [/* @__PURE__ */ C(F, { className: "h-4 w-4" }), "Virtual Session"]
607
+ children: [/* @__PURE__ */ E(te, { className: "h-4 w-4" }), "Virtual Session"]
605
608
  }) : null,
606
- /* @__PURE__ */ w(L, {
609
+ /* @__PURE__ */ D(R, {
607
610
  type: "button",
608
611
  onClick: () => n(`/events/${e}/edit`),
609
- children: [/* @__PURE__ */ C(O, { className: "h-4 w-4" }), "Edit Event"]
612
+ children: [/* @__PURE__ */ E(j, { className: "h-4 w-4" }), "Edit Event"]
610
613
  }),
611
- /* @__PURE__ */ C(u, {
614
+ /* @__PURE__ */ E(u, {
612
615
  ariaLabel: "Event actions",
613
- entityName: j.name,
616
+ entityName: P.name,
614
617
  deleteLabel: "Delete event",
615
- onDelete: D
618
+ onDelete: A
616
619
  })
617
620
  ]
618
621
  })]
619
622
  }),
620
- /* @__PURE__ */ w("div", {
623
+ /* @__PURE__ */ D("div", {
621
624
  className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
622
625
  children: [
623
- /* @__PURE__ */ C($, {
626
+ /* @__PURE__ */ E($, {
624
627
  label: "Capacity",
625
- value: (j.capacity ?? 0).toLocaleString(),
626
- icon: P
628
+ value: (P.capacity ?? 0).toLocaleString(),
629
+ icon: ee
627
630
  }),
628
- /* @__PURE__ */ C($, {
631
+ /* @__PURE__ */ E($, {
629
632
  label: "Sessions",
630
- value: K.toLocaleString(),
631
- icon: E
633
+ value: J.toLocaleString(),
634
+ icon: k
632
635
  }),
633
- /* @__PURE__ */ C($, {
636
+ /* @__PURE__ */ E($, {
634
637
  label: "Ticket types",
635
638
  value: (d?.ticketTypes?.total ?? 0).toLocaleString(),
636
- icon: N
639
+ icon: I
637
640
  }),
638
- /* @__PURE__ */ C($, {
641
+ /* @__PURE__ */ E($, {
639
642
  label: "Tickets sold",
640
- value: Y.toLocaleString(),
641
- icon: k
643
+ value: Z.toLocaleString(),
644
+ icon: M
642
645
  })
643
646
  ]
644
647
  }),
645
- /* @__PURE__ */ w(ee, {
648
+ /* @__PURE__ */ D(H, {
646
649
  value: _,
647
- onValueChange: S,
650
+ onValueChange: T,
648
651
  children: [
649
- /* @__PURE__ */ w(H, { children: [
650
- /* @__PURE__ */ C(U, {
652
+ /* @__PURE__ */ D(W, { children: [
653
+ /* @__PURE__ */ E(G, {
651
654
  value: "overview",
652
655
  children: "Overview"
653
656
  }),
654
- /* @__PURE__ */ C(U, {
657
+ /* @__PURE__ */ E(G, {
655
658
  value: "sessions",
656
659
  children: "Sessions"
657
660
  }),
658
- /* @__PURE__ */ C(U, {
661
+ /* @__PURE__ */ E(G, {
659
662
  value: "speakers",
660
663
  children: "Speakers"
661
664
  }),
662
- /* @__PURE__ */ C(U, {
665
+ /* @__PURE__ */ E(G, {
663
666
  value: "tickets",
664
667
  children: "Tickets"
665
668
  })
666
669
  ] }),
667
- /* @__PURE__ */ C(V, {
670
+ /* @__PURE__ */ E(U, {
668
671
  value: "overview",
669
672
  className: "mt-4",
670
- children: /* @__PURE__ */ w("div", {
673
+ children: /* @__PURE__ */ D("div", {
671
674
  className: "grid grid-cols-1 gap-4 lg:grid-cols-3",
672
- children: [/* @__PURE__ */ w(R, {
675
+ children: [/* @__PURE__ */ D(z, {
673
676
  treatment: "plain",
674
677
  className: "border-border-seam p-5 lg:col-span-2",
675
678
  children: [
676
- /* @__PURE__ */ C("h2", {
679
+ /* @__PURE__ */ E("h2", {
677
680
  className: "text-lg font-semibold text-text-primary",
678
681
  children: "Event Details"
679
682
  }),
680
- /* @__PURE__ */ w("dl", {
683
+ /* @__PURE__ */ D("dl", {
681
684
  className: "mt-4 space-y-4 text-sm",
682
685
  children: [
683
- /* @__PURE__ */ w("div", {
686
+ /* @__PURE__ */ D("div", {
684
687
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
685
- children: [/* @__PURE__ */ C("dt", {
688
+ children: [/* @__PURE__ */ E("dt", {
686
689
  className: "text-text-muted",
687
690
  children: "Dates"
688
- }), /* @__PURE__ */ w("dd", {
691
+ }), /* @__PURE__ */ D("dd", {
689
692
  className: "text-text-primary",
690
693
  children: [
691
- v(j.startAt),
694
+ v(P.startAt),
692
695
  " — ",
693
- v(j.endAt)
696
+ v(P.endAt)
694
697
  ]
695
698
  })]
696
699
  }),
697
- /* @__PURE__ */ w("div", {
700
+ /* @__PURE__ */ D("div", {
698
701
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
699
- children: [/* @__PURE__ */ C("dt", {
702
+ children: [/* @__PURE__ */ E("dt", {
700
703
  className: "text-text-muted",
701
704
  children: "Venue"
702
- }), /* @__PURE__ */ C("dd", {
705
+ }), /* @__PURE__ */ E("dd", {
703
706
  className: "text-text-primary",
704
- children: G ? /* @__PURE__ */ C(L, {
707
+ children: q ? /* @__PURE__ */ E(R, {
705
708
  type: "button",
706
709
  variant: "link",
707
710
  size: "sm",
708
711
  className: "h-auto p-0",
709
- onClick: () => n(`/venues/${M}`),
710
- children: G
712
+ onClick: () => n(`/venues/${F}`),
713
+ children: q
711
714
  }) : "No venue assigned"
712
715
  })]
713
716
  }),
714
- /* @__PURE__ */ w("div", {
717
+ /* @__PURE__ */ D("div", {
715
718
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
716
- children: [/* @__PURE__ */ C("dt", {
719
+ children: [/* @__PURE__ */ E("dt", {
717
720
  className: "text-text-muted",
718
721
  children: "Capacity"
719
- }), /* @__PURE__ */ w("dd", {
722
+ }), /* @__PURE__ */ D("dd", {
720
723
  className: "text-text-primary",
721
- children: [(j.capacity ?? 0).toLocaleString(), " attendees"]
724
+ children: [(P.capacity ?? 0).toLocaleString(), " attendees"]
722
725
  })]
723
726
  }),
724
- /* @__PURE__ */ w("div", {
727
+ /* @__PURE__ */ D("div", {
725
728
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
726
- children: [/* @__PURE__ */ C("dt", {
729
+ children: [/* @__PURE__ */ E("dt", {
727
730
  className: "text-text-muted",
728
731
  children: "Type"
729
- }), /* @__PURE__ */ C("dd", {
732
+ }), /* @__PURE__ */ E("dd", {
730
733
  className: "capitalize text-text-primary",
731
- children: j.type.toLowerCase().replace(/_/g, " ")
734
+ children: P.type.toLowerCase().replace(/_/g, " ")
732
735
  })]
733
736
  }),
734
- /* @__PURE__ */ w("div", {
737
+ /* @__PURE__ */ D("div", {
735
738
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
736
- children: [/* @__PURE__ */ C("dt", {
739
+ children: [/* @__PURE__ */ E("dt", {
737
740
  className: "text-text-muted",
738
741
  children: "Timezone"
739
- }), /* @__PURE__ */ C("dd", {
742
+ }), /* @__PURE__ */ E("dd", {
740
743
  className: "text-text-primary",
741
- children: j.timezone
744
+ children: P.timezone
742
745
  })]
743
746
  }),
744
- /* @__PURE__ */ w("div", {
747
+ /* @__PURE__ */ D("div", {
745
748
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
746
- children: [/* @__PURE__ */ C("dt", {
749
+ children: [/* @__PURE__ */ E("dt", {
747
750
  className: "text-text-muted",
748
751
  children: "Visibility"
749
- }), /* @__PURE__ */ C("dd", {
752
+ }), /* @__PURE__ */ E("dd", {
750
753
  className: "capitalize text-text-primary",
751
- children: j.visibility
754
+ children: P.visibility
752
755
  })]
753
756
  }),
754
- /* @__PURE__ */ w("div", {
757
+ /* @__PURE__ */ D("div", {
755
758
  className: "grid grid-cols-1 gap-1 sm:grid-cols-[140px_1fr]",
756
- children: [/* @__PURE__ */ C("dt", {
759
+ children: [/* @__PURE__ */ E("dt", {
757
760
  className: "text-text-muted",
758
761
  children: "Description"
759
- }), /* @__PURE__ */ C("dd", {
762
+ }), /* @__PURE__ */ E("dd", {
760
763
  className: "text-text-secondary",
761
- children: j.description?.trim() ? j.description : "No description provided."
764
+ children: P.description?.trim() ? P.description : "No description provided."
762
765
  })]
763
766
  })
764
767
  ]
765
768
  }),
766
- /* @__PURE__ */ C("div", {
769
+ /* @__PURE__ */ E("div", {
767
770
  className: "mt-5",
768
- children: /* @__PURE__ */ w(L, {
771
+ children: /* @__PURE__ */ D(R, {
769
772
  type: "button",
770
773
  variant: "outline",
771
774
  size: "sm",
772
775
  onClick: () => n(`/events/${e}/edit`),
773
- children: [/* @__PURE__ */ C(O, { className: "h-4 w-4" }), "Edit event details"]
776
+ children: [/* @__PURE__ */ E(j, { className: "h-4 w-4" }), "Edit event details"]
774
777
  })
775
778
  })
776
779
  ]
777
- }), /* @__PURE__ */ w(R, {
780
+ }), /* @__PURE__ */ D(z, {
778
781
  treatment: "glass",
779
782
  glow: !0,
780
783
  className: "p-5",
781
- children: [/* @__PURE__ */ C("h2", {
784
+ children: [/* @__PURE__ */ E("h2", {
782
785
  className: "text-lg font-semibold text-text-primary",
783
786
  children: "Key Metrics"
784
- }), /* @__PURE__ */ w("dl", {
787
+ }), /* @__PURE__ */ D("dl", {
785
788
  className: "mt-4 space-y-4",
786
789
  children: [
787
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
790
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
788
791
  className: "text-sm text-text-secondary",
789
792
  children: "Registrations"
790
- }), /* @__PURE__ */ C("dd", {
793
+ }), /* @__PURE__ */ E("dd", {
791
794
  className: "text-2xl font-semibold tabular-nums text-text-primary",
792
- children: q.toLocaleString()
795
+ children: Y.toLocaleString()
793
796
  })] }),
794
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
797
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
795
798
  className: "text-sm text-text-secondary",
796
799
  children: "Capacity"
797
- }), /* @__PURE__ */ C("dd", {
800
+ }), /* @__PURE__ */ E("dd", {
798
801
  className: "text-2xl font-semibold tabular-nums text-text-primary",
799
- children: (j.capacity ?? 0).toLocaleString()
802
+ children: (P.capacity ?? 0).toLocaleString()
800
803
  })] }),
801
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
804
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
802
805
  className: "text-sm text-text-secondary",
803
806
  children: "Sessions"
804
- }), /* @__PURE__ */ C("dd", {
807
+ }), /* @__PURE__ */ E("dd", {
805
808
  className: "text-2xl font-semibold tabular-nums text-text-primary",
806
- children: K.toLocaleString()
809
+ children: J.toLocaleString()
807
810
  })] }),
808
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
811
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
809
812
  className: "text-sm text-text-secondary",
810
813
  children: "Ticket types"
811
- }), /* @__PURE__ */ C("dd", {
814
+ }), /* @__PURE__ */ E("dd", {
812
815
  className: "text-2xl font-semibold tabular-nums text-text-primary",
813
816
  children: (d?.ticketTypes?.total ?? 0).toLocaleString()
814
817
  })] }),
815
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
818
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
816
819
  className: "text-sm text-text-secondary",
817
820
  children: "Tickets sold"
818
- }), /* @__PURE__ */ C("dd", {
821
+ }), /* @__PURE__ */ E("dd", {
819
822
  className: "text-2xl font-semibold tabular-nums text-text-primary",
820
- children: Y.toLocaleString()
823
+ children: Z.toLocaleString()
821
824
  })] })
822
825
  ]
823
826
  })]
824
827
  })]
825
828
  })
826
829
  }),
827
- /* @__PURE__ */ C(V, {
830
+ /* @__PURE__ */ E(U, {
828
831
  value: "sessions",
829
832
  className: "mt-4",
830
- children: /* @__PURE__ */ C(Q, { eventId: e })
833
+ children: /* @__PURE__ */ E(re, { eventId: e })
831
834
  }),
832
- /* @__PURE__ */ C(V, {
835
+ /* @__PURE__ */ E(U, {
833
836
  value: "speakers",
834
837
  className: "mt-4",
835
- children: /* @__PURE__ */ C(te, {})
838
+ children: /* @__PURE__ */ E(ie, {})
836
839
  }),
837
- /* @__PURE__ */ C(V, {
840
+ /* @__PURE__ */ E(U, {
838
841
  value: "tickets",
839
842
  className: "mt-4",
840
- children: /* @__PURE__ */ C(ne, { eventId: e })
843
+ children: /* @__PURE__ */ E(ae, { eventId: e })
841
844
  })
842
845
  ]
843
846
  })
844
847
  ]
845
- }) : /* @__PURE__ */ w("div", {
848
+ }) : /* @__PURE__ */ D("div", {
846
849
  className: "space-y-4 p-6",
847
- children: [/* @__PURE__ */ w(L, {
850
+ children: [/* @__PURE__ */ D(R, {
848
851
  type: "button",
849
852
  variant: "ghost",
850
853
  size: "sm",
851
854
  onClick: () => n("/events"),
852
- children: [/* @__PURE__ */ C(T, { className: "h-4 w-4" }), "Back to Events"]
853
- }), /* @__PURE__ */ C(R, {
855
+ children: [/* @__PURE__ */ E(O, { className: "h-4 w-4" }), "Back to Events"]
856
+ }), /* @__PURE__ */ E(z, {
854
857
  treatment: "plain",
855
858
  className: "border-border-seam",
856
- children: /* @__PURE__ */ C(z, {
859
+ children: /* @__PURE__ */ E(B, {
857
860
  illustration: "empty-search",
858
861
  title: "Event not found.",
859
862
  description: "This event may have been removed or is outside your current scope."
@@ -861,6 +864,6 @@ function re() {
861
864
  })]
862
865
  });
863
866
  }
864
- export { re as default };
867
+ export { oe as default };
865
868
 
866
869
  //# sourceMappingURL=EventDetailPage.js.map