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