@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.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.
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
- package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
- package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
- package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
- package/dist/eventfullymanaged/components/Pagination.js +7 -7
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +264 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
- package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +468 -0
- package/dist/generated/wspace-operations.js +215 -11
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +30060 -1503
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
- package/dist/utils/pageContext.js +5 -0
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,25 @@
|
|
|
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
3
|
import { useDeleteEventSessionMutation as n, useDeleteSpeakerMutation as r, useDeleteTicketTypeMutation as i, useEventQuery as a, useRegistrationsQuery as o, useSaveEventTemplateMutation as s, useSpeakersQuery as c, useTicketTypesQuery as l, useVenueQuery as u, useVenuesQuery as d } from "../../api/eventApi.js";
|
|
4
|
+
import { CertificateOrganizerLink as f } from "../certificates/CertificateAccess.js";
|
|
4
5
|
import "../../hooks/index.js";
|
|
5
|
-
import { ActionMenu as
|
|
6
|
-
import { CHART_COLORS as
|
|
7
|
-
import { Pagination as
|
|
8
|
-
import { useEventDelete as g } from "../../hooks/useEventDelete.js";
|
|
6
|
+
import { ActionMenu as p } from "../../components/ActionMenu.js";
|
|
7
|
+
import { CHART_COLORS as m } from "../../components/EventCharts.js";
|
|
8
|
+
import { Pagination as h, usePagination as g } from "../../components/Pagination.js";
|
|
9
9
|
import { useEventfullyManaged as _ } from "../../context/EventfullyManagedContext.js";
|
|
10
10
|
import { describeValidity as v } from "../../lib/format.js";
|
|
11
11
|
import { describeError as y, mutationSucceeded as b } from "../../lib/mutationResult.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { useEventDelete as x } from "../../hooks/useEventDelete.js";
|
|
13
|
+
import { notify as S } from "../../lib/toast.js";
|
|
14
|
+
import { formatDateTime as C } from "./eventFormUtils.js";
|
|
15
|
+
import { registerBreadcrumbName as w, unregisterBreadcrumbName as T } from "../../utils/breadcrumbRegistry.js";
|
|
16
|
+
import { useEffect as E, useMemo as D, useState as O } from "react";
|
|
17
|
+
import { useParams as ee } from "react-router";
|
|
17
18
|
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
19
|
+
import { Badge as M, Button as N, GlassCard as P, IllustratedEmptyState as F, Input as I, Skeleton as L, Tabs as te, TabsContent as R, TabsList as ne, TabsTrigger as z } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { ArrowLeft as B, CalendarClock as V, Clock as H, Edit as U, Eye as re, LayoutTemplate as W, MapPin as G, Mic2 as ie, Plus as K, Ticket as q, Users as J, Video as ae } from "lucide-react";
|
|
20
21
|
// src/eventfullymanaged/pages/events/EventDetailPage.tsx
|
|
21
|
-
function
|
|
22
|
+
function oe(e) {
|
|
22
23
|
let t = e.toLowerCase();
|
|
23
24
|
return [
|
|
24
25
|
"active",
|
|
@@ -40,24 +41,24 @@ function ie(e) {
|
|
|
40
41
|
"scheduled"
|
|
41
42
|
].includes(t) ? "info" : "secondary";
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function se(e, t) {
|
|
44
45
|
let n = new Date(e).getTime(), r = new Date(t).getTime();
|
|
45
46
|
if (Number.isNaN(n) || Number.isNaN(r) || r <= n) return "";
|
|
46
47
|
let i = Math.round((r - n) / 6e4), a = Math.floor(i / 60), o = i % 60;
|
|
47
48
|
return a && o ? `${a}h ${o}m` : a ? `${a}h` : `${o}m`;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function ce(e) {
|
|
50
51
|
let t = e < 12 ? "AM" : "PM";
|
|
51
52
|
return `${e % 12 == 0 ? 12 : e % 12}:00 ${t}`;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function le(e) {
|
|
54
55
|
let t = new Date(e);
|
|
55
56
|
return Number.isNaN(t.getTime()) ? "" : t.toLocaleTimeString(void 0, {
|
|
56
57
|
hour: "numeric",
|
|
57
58
|
minute: "2-digit"
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
|
-
var
|
|
61
|
+
var Y = e`
|
|
61
62
|
query EventfullymanagedScheduleSessions($eventId: ID, $limit: Int, $offset: Int) {
|
|
62
63
|
eventSessions: eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset) {
|
|
63
64
|
total
|
|
@@ -75,13 +76,13 @@ var X = e`
|
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
|
-
`,
|
|
79
|
-
function
|
|
79
|
+
`, X = "General";
|
|
80
|
+
function ue(e) {
|
|
80
81
|
let t = new Date(e);
|
|
81
82
|
return Number.isNaN(t.getTime()) ? "unknown" : t.toISOString().slice(0, 10);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
let o =
|
|
84
|
+
function Z({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDelete: a }) {
|
|
85
|
+
let o = se(e.startsAt, e.endsAt);
|
|
85
86
|
return /* @__PURE__ */ j("div", {
|
|
86
87
|
className: "relative rounded-card border border-border-subtle p-3 shadow-elevation-1",
|
|
87
88
|
style: {
|
|
@@ -96,7 +97,7 @@ function Q({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDel
|
|
|
96
97
|
children: e.title
|
|
97
98
|
}), /* @__PURE__ */ A("div", {
|
|
98
99
|
className: "-mr-1 -mt-1 shrink-0",
|
|
99
|
-
children: /* @__PURE__ */ A(
|
|
100
|
+
children: /* @__PURE__ */ A(p, {
|
|
100
101
|
ariaLabel: `Session actions for ${e.title}`,
|
|
101
102
|
entityName: e.title,
|
|
102
103
|
deleteLabel: "Delete session",
|
|
@@ -109,28 +110,28 @@ function Q({ session: e, color: t, speakerName: n, roomName: r, onEdit: i, onDel
|
|
|
109
110
|
children: [
|
|
110
111
|
/* @__PURE__ */ j("div", {
|
|
111
112
|
className: "flex items-center gap-1.5",
|
|
112
|
-
children: [/* @__PURE__ */ A(
|
|
113
|
+
children: [/* @__PURE__ */ A(ie, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ A("span", {
|
|
113
114
|
className: "truncate",
|
|
114
115
|
children: n ?? "Speaker TBD"
|
|
115
116
|
})]
|
|
116
117
|
}),
|
|
117
118
|
r ? /* @__PURE__ */ j("div", {
|
|
118
119
|
className: "flex items-center gap-1.5",
|
|
119
|
-
children: [/* @__PURE__ */ A(
|
|
120
|
+
children: [/* @__PURE__ */ A(G, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ A("span", {
|
|
120
121
|
className: "truncate",
|
|
121
122
|
children: r
|
|
122
123
|
})]
|
|
123
124
|
}) : null,
|
|
124
125
|
/* @__PURE__ */ j("div", {
|
|
125
126
|
className: "flex items-center gap-1.5",
|
|
126
|
-
children: [/* @__PURE__ */ A(
|
|
127
|
+
children: [/* @__PURE__ */ A(H, { className: "h-3.5 w-3.5 shrink-0 text-text-muted" }), /* @__PURE__ */ j("span", { children: [le(e.startsAt), o ? ` · ${o}` : ""] })]
|
|
127
128
|
})
|
|
128
129
|
]
|
|
129
130
|
})]
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
-
let { navigate: r } = _(), i =
|
|
133
|
+
function de({ eventId: e }) {
|
|
134
|
+
let { navigate: r } = _(), i = g(), { data: a, loading: o, refetch: s } = t(Y, { variables: {
|
|
134
135
|
eventId: e,
|
|
135
136
|
limit: i.limit,
|
|
136
137
|
offset: i.offset
|
|
@@ -140,29 +141,29 @@ function le({ eventId: e }) {
|
|
|
140
141
|
}), { data: u } = c({
|
|
141
142
|
limit: 200,
|
|
142
143
|
offset: 0
|
|
143
|
-
}), [f] = n(),
|
|
144
|
+
}), [f] = n(), p = a?.eventSessions?.total ?? 0, v = D(() => a?.eventSessions?.items ?? [], [a]), y = D(() => {
|
|
144
145
|
let e = /* @__PURE__ */ new Map();
|
|
145
146
|
for (let t of l?.venues?.items ?? []) e.set(t.id, t.name);
|
|
146
147
|
return e;
|
|
147
|
-
}, [l]), b =
|
|
148
|
+
}, [l]), b = D(() => {
|
|
148
149
|
let e = /* @__PURE__ */ new Map();
|
|
149
150
|
for (let t of u?.speakers?.items ?? []) e.set(t.id, t.fullName);
|
|
150
151
|
return e;
|
|
151
|
-
}, [u]),
|
|
152
|
+
}, [u]), x = D(() => {
|
|
152
153
|
let e = /* @__PURE__ */ new Map(), t = 0;
|
|
153
154
|
for (let n of v) {
|
|
154
|
-
let r = n.track?.trim() ||
|
|
155
|
-
e.has(r) || (e.set(r,
|
|
155
|
+
let r = n.track?.trim() || X;
|
|
156
|
+
e.has(r) || (e.set(r, m[t % m.length]), t += 1);
|
|
156
157
|
}
|
|
157
158
|
return e;
|
|
158
|
-
}, [v]), C =
|
|
159
|
+
}, [v]), C = D(() => {
|
|
159
160
|
let e = /* @__PURE__ */ new Map();
|
|
160
161
|
for (let t of [...v].sort((e, t) => new Date(e.startsAt).getTime() - new Date(t.startsAt).getTime())) {
|
|
161
|
-
let n =
|
|
162
|
+
let n = ue(t.startsAt), r = e.get(n) ?? [];
|
|
162
163
|
r.push(t), e.set(n, r);
|
|
163
164
|
}
|
|
164
165
|
return Array.from(e.entries()).map(([e, t]) => {
|
|
165
|
-
let n = Array.from(new Set(t.map((e) => e.track?.trim() ||
|
|
166
|
+
let n = Array.from(new Set(t.map((e) => e.track?.trim() || X))), 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 = [];
|
|
166
167
|
for (let e = i; e <= a; e += 1) o.push(e);
|
|
167
168
|
return {
|
|
168
169
|
key: e,
|
|
@@ -173,13 +174,13 @@ function le({ eventId: e }) {
|
|
|
173
174
|
});
|
|
174
175
|
}, [v]), w = async (e) => {
|
|
175
176
|
let t = await f({ variables: { id: e.id } });
|
|
176
|
-
if (t.error) throw
|
|
177
|
-
if (!t.data?.deleteEventSession) throw
|
|
178
|
-
|
|
177
|
+
if (t.error) throw S.error("Could not delete session", t.error.message), t.error;
|
|
178
|
+
if (!t.data?.deleteEventSession) throw S.error("Could not delete session", "The server did not confirm the change."), Error("delete-unconfirmed");
|
|
179
|
+
S.success("Session deleted", e.title), await s();
|
|
179
180
|
}, T = (e) => {
|
|
180
181
|
let t = e.metadata ?? {}, n = typeof t.speakerId == "string" ? t.speakerId : "";
|
|
181
182
|
return n ? b.get(n) : void 0;
|
|
182
|
-
},
|
|
183
|
+
}, E = (e) => e.venueId ? y.get(e.venueId) : void 0;
|
|
183
184
|
return /* @__PURE__ */ j("div", {
|
|
184
185
|
className: "space-y-5",
|
|
185
186
|
children: [
|
|
@@ -191,22 +192,22 @@ function le({ eventId: e }) {
|
|
|
191
192
|
}), /* @__PURE__ */ A("p", {
|
|
192
193
|
className: "text-sm text-text-secondary",
|
|
193
194
|
children: "A multi-track schedule of everything happening on the day."
|
|
194
|
-
})] }), /* @__PURE__ */ j(
|
|
195
|
+
})] }), /* @__PURE__ */ j(N, {
|
|
195
196
|
type: "button",
|
|
196
197
|
size: "sm",
|
|
197
198
|
onClick: () => r(`/events/${e}/sessions/create`),
|
|
198
|
-
children: [/* @__PURE__ */ A(
|
|
199
|
+
children: [/* @__PURE__ */ A(K, { className: "h-4 w-4" }), "New Session"]
|
|
199
200
|
})]
|
|
200
201
|
}),
|
|
201
|
-
o ? /* @__PURE__ */ A(
|
|
202
|
+
o ? /* @__PURE__ */ A(L, { className: "h-64 w-full rounded-card" }) : v.length === 0 ? /* @__PURE__ */ A(F, {
|
|
202
203
|
illustration: "empty-data",
|
|
203
204
|
title: "No sessions yet.",
|
|
204
205
|
description: "Build the agenda by adding your first session.",
|
|
205
|
-
action: /* @__PURE__ */ j(
|
|
206
|
+
action: /* @__PURE__ */ j(N, {
|
|
206
207
|
type: "button",
|
|
207
208
|
size: "sm",
|
|
208
209
|
onClick: () => r(`/events/${e}/sessions/create`),
|
|
209
|
-
children: [/* @__PURE__ */ A(
|
|
210
|
+
children: [/* @__PURE__ */ A(K, { className: "h-4 w-4" }), "New Session"]
|
|
210
211
|
}),
|
|
211
212
|
className: "py-10"
|
|
212
213
|
}) : /* @__PURE__ */ A("div", {
|
|
@@ -235,7 +236,7 @@ function le({ eventId: e }) {
|
|
|
235
236
|
className: "inline-flex items-center gap-2",
|
|
236
237
|
children: [/* @__PURE__ */ A("span", {
|
|
237
238
|
className: "h-2 w-2 rounded-full",
|
|
238
|
-
style: { background:
|
|
239
|
+
style: { background: x.get(e) },
|
|
239
240
|
"aria-hidden": "true"
|
|
240
241
|
}), e]
|
|
241
242
|
})
|
|
@@ -244,16 +245,16 @@ function le({ eventId: e }) {
|
|
|
244
245
|
className: "contents",
|
|
245
246
|
children: [/* @__PURE__ */ A("div", {
|
|
246
247
|
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",
|
|
247
|
-
children:
|
|
248
|
+
children: ce(n)
|
|
248
249
|
}), t.tracks.map((i) => {
|
|
249
|
-
let a = t.sessions.filter((e) => (e.track?.trim() ||
|
|
250
|
+
let a = t.sessions.filter((e) => (e.track?.trim() || X) === i && new Date(e.startsAt).getHours() === n);
|
|
250
251
|
return /* @__PURE__ */ A("div", {
|
|
251
252
|
className: "space-y-2 border-b border-l border-border-subtle p-2 align-top",
|
|
252
|
-
children: a.map((t) => /* @__PURE__ */ A(
|
|
253
|
+
children: a.map((t) => /* @__PURE__ */ A(Z, {
|
|
253
254
|
session: t,
|
|
254
|
-
color:
|
|
255
|
+
color: x.get(i) ?? m[0],
|
|
255
256
|
speakerName: T(t),
|
|
256
|
-
roomName:
|
|
257
|
+
roomName: E(t),
|
|
257
258
|
onEdit: () => r(`/events/${e}/sessions/${t.id}/edit`),
|
|
258
259
|
onDelete: () => w(t)
|
|
259
260
|
}, t.id))
|
|
@@ -266,12 +267,12 @@ function le({ eventId: e }) {
|
|
|
266
267
|
/* @__PURE__ */ A("ul", {
|
|
267
268
|
className: "space-y-2.5 md:hidden",
|
|
268
269
|
children: t.sessions.map((t) => {
|
|
269
|
-
let n = t.track?.trim() ||
|
|
270
|
-
return /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(
|
|
270
|
+
let n = t.track?.trim() || X;
|
|
271
|
+
return /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(Z, {
|
|
271
272
|
session: t,
|
|
272
|
-
color:
|
|
273
|
+
color: x.get(n) ?? m[0],
|
|
273
274
|
speakerName: T(t),
|
|
274
|
-
roomName:
|
|
275
|
+
roomName: E(t) ?? n,
|
|
275
276
|
onEdit: () => r(`/events/${e}/sessions/${t.id}/edit`),
|
|
276
277
|
onDelete: () => w(t)
|
|
277
278
|
}) }, t.id);
|
|
@@ -280,11 +281,11 @@ function le({ eventId: e }) {
|
|
|
280
281
|
]
|
|
281
282
|
}, t.key))
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */ A(
|
|
284
|
+
/* @__PURE__ */ A(h, {
|
|
284
285
|
offset: i.offset,
|
|
285
286
|
limit: i.limit,
|
|
286
287
|
loadedCount: v.length,
|
|
287
|
-
total:
|
|
288
|
+
total: p,
|
|
288
289
|
onPrev: i.prevPage,
|
|
289
290
|
onNext: i.nextPage,
|
|
290
291
|
itemLabel: "sessions",
|
|
@@ -293,15 +294,15 @@ function le({ eventId: e }) {
|
|
|
293
294
|
]
|
|
294
295
|
});
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
let { navigate: e } = _(), t =
|
|
297
|
+
function Q() {
|
|
298
|
+
let { navigate: e } = _(), t = g(), { data: n, loading: i, refetch: a } = c({
|
|
298
299
|
limit: t.limit,
|
|
299
300
|
offset: t.offset
|
|
300
301
|
}), [o] = r(), s = n?.speakers?.total ?? 0, l = n?.speakers?.items ?? [], u = async (e) => {
|
|
301
302
|
let t = await o({ variables: { id: e.id } });
|
|
302
|
-
if (t.error) throw
|
|
303
|
-
if (!t.data?.deleteSpeaker) throw
|
|
304
|
-
|
|
303
|
+
if (t.error) throw S.error("Could not delete speaker", t.error.message), t.error;
|
|
304
|
+
if (!t.data?.deleteSpeaker) throw S.error("Could not delete speaker", "The server did not confirm the change."), Error("delete-unconfirmed");
|
|
305
|
+
S.success("Speaker deleted", e.fullName), await a();
|
|
305
306
|
};
|
|
306
307
|
return /* @__PURE__ */ j("div", {
|
|
307
308
|
className: "space-y-4",
|
|
@@ -313,21 +314,21 @@ function ue() {
|
|
|
313
314
|
children: "Speakers"
|
|
314
315
|
}), /* @__PURE__ */ j("div", {
|
|
315
316
|
className: "flex items-center gap-2",
|
|
316
|
-
children: [/* @__PURE__ */ A(
|
|
317
|
+
children: [/* @__PURE__ */ A(N, {
|
|
317
318
|
type: "button",
|
|
318
319
|
variant: "outline",
|
|
319
320
|
size: "sm",
|
|
320
321
|
onClick: () => e("/speakers"),
|
|
321
322
|
children: "Manage speakers"
|
|
322
|
-
}), /* @__PURE__ */ j(
|
|
323
|
+
}), /* @__PURE__ */ j(N, {
|
|
323
324
|
type: "button",
|
|
324
325
|
size: "sm",
|
|
325
326
|
onClick: () => e("/speakers/create"),
|
|
326
|
-
children: [/* @__PURE__ */ A(
|
|
327
|
+
children: [/* @__PURE__ */ A(K, { className: "h-4 w-4" }), "New Speaker"]
|
|
327
328
|
})]
|
|
328
329
|
})]
|
|
329
330
|
}),
|
|
330
|
-
i ? /* @__PURE__ */ A(
|
|
331
|
+
i ? /* @__PURE__ */ A(L, { className: "h-40 w-full rounded-card" }) : l.length === 0 ? /* @__PURE__ */ A(F, {
|
|
331
332
|
illustration: "empty-people",
|
|
332
333
|
title: "No speakers yet.",
|
|
333
334
|
description: "Add speakers so you can assign them to sessions.",
|
|
@@ -353,7 +354,7 @@ function ue() {
|
|
|
353
354
|
children: [t.title, t.organization].filter(Boolean).join(" • ") || "Speaker"
|
|
354
355
|
})]
|
|
355
356
|
})]
|
|
356
|
-
}), /* @__PURE__ */ A(
|
|
357
|
+
}), /* @__PURE__ */ A(p, {
|
|
357
358
|
ariaLabel: `Speaker actions for ${t.fullName}`,
|
|
358
359
|
entityName: t.fullName,
|
|
359
360
|
deleteLabel: "Delete speaker",
|
|
@@ -363,7 +364,7 @@ function ue() {
|
|
|
363
364
|
})
|
|
364
365
|
}, t.id))
|
|
365
366
|
}),
|
|
366
|
-
/* @__PURE__ */ A(
|
|
367
|
+
/* @__PURE__ */ A(h, {
|
|
367
368
|
offset: t.offset,
|
|
368
369
|
limit: t.limit,
|
|
369
370
|
loadedCount: l.length,
|
|
@@ -376,16 +377,16 @@ function ue() {
|
|
|
376
377
|
]
|
|
377
378
|
});
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
-
let { navigate: t } = _(), n =
|
|
380
|
+
function fe({ eventId: e }) {
|
|
381
|
+
let { navigate: t } = _(), n = g(), { data: r, loading: a, refetch: o } = l({
|
|
381
382
|
eventId: e,
|
|
382
383
|
limit: n.limit,
|
|
383
384
|
offset: n.offset
|
|
384
385
|
}), [s] = i(), c = r?.ticketTypes?.total ?? 0, u = r?.ticketTypes?.items ?? [], d = async (e) => {
|
|
385
386
|
let t = await s({ variables: { id: e.id } });
|
|
386
|
-
if (t.error) throw
|
|
387
|
-
if (!t.data?.deleteTicketType) throw
|
|
388
|
-
|
|
387
|
+
if (t.error) throw S.error("Could not delete ticket type", t.error.message), t.error;
|
|
388
|
+
if (!t.data?.deleteTicketType) throw S.error("Could not delete ticket type", "The server did not confirm the change."), Error("delete-unconfirmed");
|
|
389
|
+
S.success("Ticket type deleted"), await o();
|
|
389
390
|
};
|
|
390
391
|
return /* @__PURE__ */ j("div", {
|
|
391
392
|
className: "space-y-4",
|
|
@@ -395,14 +396,14 @@ function de({ eventId: e }) {
|
|
|
395
396
|
children: [/* @__PURE__ */ A("h2", {
|
|
396
397
|
className: "text-lg font-semibold text-text-primary",
|
|
397
398
|
children: "Ticket Types"
|
|
398
|
-
}), /* @__PURE__ */ j(
|
|
399
|
+
}), /* @__PURE__ */ j(N, {
|
|
399
400
|
type: "button",
|
|
400
401
|
size: "sm",
|
|
401
402
|
onClick: () => t(`/events/${e}/tickets/create`),
|
|
402
|
-
children: [/* @__PURE__ */ A(
|
|
403
|
+
children: [/* @__PURE__ */ A(K, { className: "h-4 w-4" }), "New Ticket Type"]
|
|
403
404
|
})]
|
|
404
405
|
}),
|
|
405
|
-
a ? /* @__PURE__ */ A(
|
|
406
|
+
a ? /* @__PURE__ */ A(L, { className: "h-40 w-full rounded-card" }) : u.length === 0 ? /* @__PURE__ */ A(F, {
|
|
406
407
|
illustration: "empty-data",
|
|
407
408
|
title: "No ticket types yet.",
|
|
408
409
|
description: "Add a ticket type so attendees can register.",
|
|
@@ -432,7 +433,7 @@ function de({ eventId: e }) {
|
|
|
432
433
|
}),
|
|
433
434
|
/* @__PURE__ */ j("p", {
|
|
434
435
|
className: "mt-1 flex items-center gap-1.5 text-xs text-text-muted",
|
|
435
|
-
children: [/* @__PURE__ */ A(
|
|
436
|
+
children: [/* @__PURE__ */ A(V, {
|
|
436
437
|
className: "h-3.5 w-3.5 shrink-0",
|
|
437
438
|
"aria-hidden": "true"
|
|
438
439
|
}), /* @__PURE__ */ j("span", {
|
|
@@ -443,11 +444,11 @@ function de({ eventId: e }) {
|
|
|
443
444
|
]
|
|
444
445
|
}), /* @__PURE__ */ j("div", {
|
|
445
446
|
className: "flex shrink-0 items-center gap-2",
|
|
446
|
-
children: [/* @__PURE__ */ A(
|
|
447
|
+
children: [/* @__PURE__ */ A(M, {
|
|
447
448
|
variant: n.isActive ? "success" : "warning",
|
|
448
449
|
className: "uppercase",
|
|
449
450
|
children: n.isActive ? "Active" : "Inactive"
|
|
450
|
-
}), /* @__PURE__ */ A(
|
|
451
|
+
}), /* @__PURE__ */ A(p, {
|
|
451
452
|
ariaLabel: `Ticket actions for ${n.name}`,
|
|
452
453
|
entityName: n.name,
|
|
453
454
|
deleteLabel: "Delete ticket type",
|
|
@@ -494,7 +495,7 @@ function de({ eventId: e }) {
|
|
|
494
495
|
}, n.id);
|
|
495
496
|
})
|
|
496
497
|
}),
|
|
497
|
-
/* @__PURE__ */ A(
|
|
498
|
+
/* @__PURE__ */ A(h, {
|
|
498
499
|
offset: n.offset,
|
|
499
500
|
limit: n.limit,
|
|
500
501
|
loadedCount: u.length,
|
|
@@ -508,7 +509,7 @@ function de({ eventId: e }) {
|
|
|
508
509
|
});
|
|
509
510
|
}
|
|
510
511
|
function $({ label: e, value: t, icon: n }) {
|
|
511
|
-
return /* @__PURE__ */ j(
|
|
512
|
+
return /* @__PURE__ */ j(P, {
|
|
512
513
|
treatment: "metric",
|
|
513
514
|
className: "p-4",
|
|
514
515
|
children: [
|
|
@@ -527,8 +528,8 @@ function $({ label: e, value: t, icon: n }) {
|
|
|
527
528
|
]
|
|
528
529
|
});
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
-
let [n, r] =
|
|
531
|
+
function pe({ eventId: e, eventName: t }) {
|
|
532
|
+
let [n, r] = O(!1), [i, a] = O(""), [o, { loading: c }] = s(), l = async () => {
|
|
532
533
|
let n = i.trim() || `${t} template`, s = "Could not save the template";
|
|
533
534
|
try {
|
|
534
535
|
let i = await o({ variables: { input: {
|
|
@@ -537,28 +538,28 @@ function fe({ eventId: e, eventName: t }) {
|
|
|
537
538
|
description: `Saved from “${t}”`
|
|
538
539
|
} } });
|
|
539
540
|
if (!b(i, i.data?.saveEventTemplate?.id, s)) return;
|
|
540
|
-
|
|
541
|
+
S.success(`Template “${n}” saved — find it on the Events page`), r(!1), a("");
|
|
541
542
|
} catch (e) {
|
|
542
|
-
|
|
543
|
+
S.error(s, y(e));
|
|
543
544
|
}
|
|
544
545
|
};
|
|
545
546
|
return n ? /* @__PURE__ */ j("div", {
|
|
546
547
|
className: "flex flex-wrap items-center gap-2",
|
|
547
548
|
children: [
|
|
548
|
-
/* @__PURE__ */ A(
|
|
549
|
+
/* @__PURE__ */ A(I, {
|
|
549
550
|
value: i,
|
|
550
551
|
onChange: (e) => a(e.target.value),
|
|
551
552
|
placeholder: `${t} template`,
|
|
552
553
|
"aria-label": "Template name",
|
|
553
554
|
className: "w-56"
|
|
554
555
|
}),
|
|
555
|
-
/* @__PURE__ */ A(
|
|
556
|
+
/* @__PURE__ */ A(N, {
|
|
556
557
|
type: "button",
|
|
557
558
|
onClick: () => void l(),
|
|
558
559
|
disabled: c,
|
|
559
560
|
children: c ? "Saving…" : "Save template"
|
|
560
561
|
}),
|
|
561
|
-
/* @__PURE__ */ A(
|
|
562
|
+
/* @__PURE__ */ A(N, {
|
|
562
563
|
type: "button",
|
|
563
564
|
variant: "ghost",
|
|
564
565
|
size: "sm",
|
|
@@ -566,15 +567,15 @@ function fe({ eventId: e, eventName: t }) {
|
|
|
566
567
|
children: "Cancel"
|
|
567
568
|
})
|
|
568
569
|
]
|
|
569
|
-
}) : /* @__PURE__ */ j(
|
|
570
|
+
}) : /* @__PURE__ */ j(N, {
|
|
570
571
|
type: "button",
|
|
571
572
|
variant: "outline",
|
|
572
573
|
onClick: () => r(!0),
|
|
573
|
-
children: [/* @__PURE__ */ A(
|
|
574
|
+
children: [/* @__PURE__ */ A(W, { className: "h-4 w-4" }), "Save as template"]
|
|
574
575
|
});
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
-
let { id: e = "" } =
|
|
577
|
+
function me() {
|
|
578
|
+
let { id: e = "" } = ee(), { navigate: n } = _(), { data: r, loading: i } = a(e), { data: s } = t(Y, {
|
|
578
579
|
variables: {
|
|
579
580
|
eventId: e,
|
|
580
581
|
limit: 200
|
|
@@ -588,20 +589,20 @@ function pe() {
|
|
|
588
589
|
eventId: e,
|
|
589
590
|
limit: 1,
|
|
590
591
|
offset: 0
|
|
591
|
-
}), { onDeleteEvent:
|
|
592
|
-
await
|
|
592
|
+
}), { onDeleteEvent: m } = x(), [h, g] = O("overview"), v = async () => {
|
|
593
|
+
await m(e, { onSuccess: () => n("/events") });
|
|
593
594
|
}, y = r?.event ?? null;
|
|
594
|
-
|
|
595
|
-
let b =
|
|
595
|
+
E(() => (w(e, y?.name), () => T(e)), [e, y?.name]);
|
|
596
|
+
let b = D(() => {
|
|
596
597
|
let e = y?.metadata ?? {};
|
|
597
598
|
return typeof e.venueId == "string" ? e.venueId : "";
|
|
598
|
-
}, [y]), { data:
|
|
599
|
+
}, [y]), { data: S } = u(b), k = S?.venue?.name ?? void 0, I = s?.eventSessions?.total ?? 0, H = d?.registrations?.total ?? 0, W = D(() => (c?.ticketTypes?.items ?? []).reduce((e, t) => e + (t.soldCount ?? 0), 0), [c]);
|
|
599
600
|
return i ? /* @__PURE__ */ j("div", {
|
|
600
601
|
className: "space-y-4 p-6",
|
|
601
602
|
children: [
|
|
602
|
-
/* @__PURE__ */ A(
|
|
603
|
-
/* @__PURE__ */ A(
|
|
604
|
-
/* @__PURE__ */ A(
|
|
603
|
+
/* @__PURE__ */ A(L, { className: "h-8 w-40" }),
|
|
604
|
+
/* @__PURE__ */ A(L, { className: "h-24 w-full rounded-card" }),
|
|
605
|
+
/* @__PURE__ */ A(L, { className: "h-64 w-full rounded-card" })
|
|
605
606
|
]
|
|
606
607
|
}) : y ? /* @__PURE__ */ j("div", {
|
|
607
608
|
className: "space-y-6 p-6",
|
|
@@ -610,19 +611,19 @@ function pe() {
|
|
|
610
611
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
611
612
|
children: [/* @__PURE__ */ j("div", {
|
|
612
613
|
className: "space-y-3",
|
|
613
|
-
children: [/* @__PURE__ */ j(
|
|
614
|
+
children: [/* @__PURE__ */ j(N, {
|
|
614
615
|
type: "button",
|
|
615
616
|
variant: "ghost",
|
|
616
617
|
size: "sm",
|
|
617
618
|
onClick: () => n("/events"),
|
|
618
|
-
children: [/* @__PURE__ */ A(
|
|
619
|
+
children: [/* @__PURE__ */ A(B, { className: "h-4 w-4" }), "Back to Events"]
|
|
619
620
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ j("div", {
|
|
620
621
|
className: "flex flex-wrap items-center gap-3",
|
|
621
622
|
children: [/* @__PURE__ */ A("h1", {
|
|
622
623
|
className: "text-2xl font-bold text-text-primary",
|
|
623
624
|
children: y.name
|
|
624
|
-
}), /* @__PURE__ */ A(
|
|
625
|
-
variant:
|
|
625
|
+
}), /* @__PURE__ */ A(M, {
|
|
626
|
+
variant: oe(y.status),
|
|
626
627
|
className: "uppercase",
|
|
627
628
|
children: y.status
|
|
628
629
|
})]
|
|
@@ -631,35 +632,36 @@ function pe() {
|
|
|
631
632
|
children: [/* @__PURE__ */ j("span", {
|
|
632
633
|
className: "flex items-center gap-1.5",
|
|
633
634
|
children: [
|
|
634
|
-
/* @__PURE__ */ A(
|
|
635
|
-
|
|
635
|
+
/* @__PURE__ */ A(V, { className: "h-4 w-4 text-text-muted" }),
|
|
636
|
+
C(y.startAt),
|
|
636
637
|
" — ",
|
|
637
|
-
|
|
638
|
+
C(y.endAt)
|
|
638
639
|
]
|
|
639
640
|
}), k ? /* @__PURE__ */ j("span", {
|
|
640
641
|
className: "flex items-center gap-1.5",
|
|
641
|
-
children: [/* @__PURE__ */ A(
|
|
642
|
+
children: [/* @__PURE__ */ A(G, { className: "h-4 w-4 text-text-muted" }), k]
|
|
642
643
|
}) : null]
|
|
643
644
|
})] })]
|
|
644
645
|
}), /* @__PURE__ */ j("div", {
|
|
645
646
|
className: "flex flex-wrap gap-2",
|
|
646
647
|
children: [
|
|
647
|
-
y.type === "VIRTUAL" || y.type === "HYBRID" ? /* @__PURE__ */ j(
|
|
648
|
+
y.type === "VIRTUAL" || y.type === "HYBRID" ? /* @__PURE__ */ j(N, {
|
|
648
649
|
type: "button",
|
|
649
650
|
variant: "outline",
|
|
650
651
|
onClick: () => n(`/events/${e}/virtual`),
|
|
651
|
-
children: [/* @__PURE__ */ A(
|
|
652
|
+
children: [/* @__PURE__ */ A(ae, { className: "h-4 w-4" }), "Virtual Session"]
|
|
652
653
|
}) : null,
|
|
653
|
-
/* @__PURE__ */ A(
|
|
654
|
+
/* @__PURE__ */ A(f, { eventId: e }),
|
|
655
|
+
/* @__PURE__ */ A(pe, {
|
|
654
656
|
eventId: e,
|
|
655
657
|
eventName: y.name
|
|
656
658
|
}),
|
|
657
|
-
/* @__PURE__ */ j(
|
|
659
|
+
/* @__PURE__ */ j(N, {
|
|
658
660
|
type: "button",
|
|
659
661
|
onClick: () => n(`/events/${e}/edit`),
|
|
660
|
-
children: [/* @__PURE__ */ A(
|
|
662
|
+
children: [/* @__PURE__ */ A(U, { className: "h-4 w-4" }), "Edit Event"]
|
|
661
663
|
}),
|
|
662
|
-
/* @__PURE__ */ A(
|
|
664
|
+
/* @__PURE__ */ A(p, {
|
|
663
665
|
ariaLabel: "Event actions",
|
|
664
666
|
entityName: y.name,
|
|
665
667
|
deleteLabel: "Delete event",
|
|
@@ -674,53 +676,53 @@ function pe() {
|
|
|
674
676
|
/* @__PURE__ */ A($, {
|
|
675
677
|
label: "Capacity",
|
|
676
678
|
value: (y.capacity ?? 0).toLocaleString(),
|
|
677
|
-
icon:
|
|
679
|
+
icon: J
|
|
678
680
|
}),
|
|
679
681
|
/* @__PURE__ */ A($, {
|
|
680
682
|
label: "Sessions",
|
|
681
|
-
value:
|
|
682
|
-
icon:
|
|
683
|
+
value: I.toLocaleString(),
|
|
684
|
+
icon: V
|
|
683
685
|
}),
|
|
684
686
|
/* @__PURE__ */ A($, {
|
|
685
687
|
label: "Ticket types",
|
|
686
688
|
value: (c?.ticketTypes?.total ?? 0).toLocaleString(),
|
|
687
|
-
icon:
|
|
689
|
+
icon: q
|
|
688
690
|
}),
|
|
689
691
|
/* @__PURE__ */ A($, {
|
|
690
692
|
label: "Tickets sold",
|
|
691
|
-
value:
|
|
692
|
-
icon:
|
|
693
|
+
value: W.toLocaleString(),
|
|
694
|
+
icon: re
|
|
693
695
|
})
|
|
694
696
|
]
|
|
695
697
|
}),
|
|
696
|
-
/* @__PURE__ */ j(
|
|
697
|
-
value:
|
|
698
|
-
onValueChange:
|
|
698
|
+
/* @__PURE__ */ j(te, {
|
|
699
|
+
value: h,
|
|
700
|
+
onValueChange: g,
|
|
699
701
|
children: [
|
|
700
|
-
/* @__PURE__ */ j(
|
|
701
|
-
/* @__PURE__ */ A(
|
|
702
|
+
/* @__PURE__ */ j(ne, { children: [
|
|
703
|
+
/* @__PURE__ */ A(z, {
|
|
702
704
|
value: "overview",
|
|
703
705
|
children: "Overview"
|
|
704
706
|
}),
|
|
705
|
-
/* @__PURE__ */ A(
|
|
707
|
+
/* @__PURE__ */ A(z, {
|
|
706
708
|
value: "sessions",
|
|
707
709
|
children: "Sessions"
|
|
708
710
|
}),
|
|
709
|
-
/* @__PURE__ */ A(
|
|
711
|
+
/* @__PURE__ */ A(z, {
|
|
710
712
|
value: "speakers",
|
|
711
713
|
children: "Speakers"
|
|
712
714
|
}),
|
|
713
|
-
/* @__PURE__ */ A(
|
|
715
|
+
/* @__PURE__ */ A(z, {
|
|
714
716
|
value: "tickets",
|
|
715
717
|
children: "Tickets"
|
|
716
718
|
})
|
|
717
719
|
] }),
|
|
718
|
-
/* @__PURE__ */ A(
|
|
720
|
+
/* @__PURE__ */ A(R, {
|
|
719
721
|
value: "overview",
|
|
720
722
|
className: "mt-4",
|
|
721
723
|
children: /* @__PURE__ */ j("div", {
|
|
722
724
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-3",
|
|
723
|
-
children: [/* @__PURE__ */ j(
|
|
725
|
+
children: [/* @__PURE__ */ j(P, {
|
|
724
726
|
treatment: "plain",
|
|
725
727
|
className: "border-border-seam p-5 lg:col-span-2",
|
|
726
728
|
children: [
|
|
@@ -739,9 +741,9 @@ function pe() {
|
|
|
739
741
|
}), /* @__PURE__ */ j("dd", {
|
|
740
742
|
className: "text-text-primary",
|
|
741
743
|
children: [
|
|
742
|
-
|
|
744
|
+
C(y.startAt),
|
|
743
745
|
" — ",
|
|
744
|
-
|
|
746
|
+
C(y.endAt)
|
|
745
747
|
]
|
|
746
748
|
})]
|
|
747
749
|
}),
|
|
@@ -752,7 +754,7 @@ function pe() {
|
|
|
752
754
|
children: "Venue"
|
|
753
755
|
}), /* @__PURE__ */ A("dd", {
|
|
754
756
|
className: "text-text-primary",
|
|
755
|
-
children: k ? /* @__PURE__ */ A(
|
|
757
|
+
children: k ? /* @__PURE__ */ A(N, {
|
|
756
758
|
type: "button",
|
|
757
759
|
variant: "link",
|
|
758
760
|
size: "sm",
|
|
@@ -816,16 +818,16 @@ function pe() {
|
|
|
816
818
|
}),
|
|
817
819
|
/* @__PURE__ */ A("div", {
|
|
818
820
|
className: "mt-5",
|
|
819
|
-
children: /* @__PURE__ */ j(
|
|
821
|
+
children: /* @__PURE__ */ j(N, {
|
|
820
822
|
type: "button",
|
|
821
823
|
variant: "outline",
|
|
822
824
|
size: "sm",
|
|
823
825
|
onClick: () => n(`/events/${e}/edit`),
|
|
824
|
-
children: [/* @__PURE__ */ A(
|
|
826
|
+
children: [/* @__PURE__ */ A(U, { className: "h-4 w-4" }), "Edit event details"]
|
|
825
827
|
})
|
|
826
828
|
})
|
|
827
829
|
]
|
|
828
|
-
}), /* @__PURE__ */ j(
|
|
830
|
+
}), /* @__PURE__ */ j(P, {
|
|
829
831
|
treatment: "glass",
|
|
830
832
|
glow: !0,
|
|
831
833
|
className: "p-5",
|
|
@@ -840,7 +842,7 @@ function pe() {
|
|
|
840
842
|
children: "Registrations"
|
|
841
843
|
}), /* @__PURE__ */ A("dd", {
|
|
842
844
|
className: "text-2xl font-semibold tabular-nums text-text-primary",
|
|
843
|
-
children:
|
|
845
|
+
children: H.toLocaleString()
|
|
844
846
|
})] }),
|
|
845
847
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("dt", {
|
|
846
848
|
className: "text-sm text-text-secondary",
|
|
@@ -854,7 +856,7 @@ function pe() {
|
|
|
854
856
|
children: "Sessions"
|
|
855
857
|
}), /* @__PURE__ */ A("dd", {
|
|
856
858
|
className: "text-2xl font-semibold tabular-nums text-text-primary",
|
|
857
|
-
children:
|
|
859
|
+
children: I.toLocaleString()
|
|
858
860
|
})] }),
|
|
859
861
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("dt", {
|
|
860
862
|
className: "text-sm text-text-secondary",
|
|
@@ -868,43 +870,43 @@ function pe() {
|
|
|
868
870
|
children: "Tickets sold"
|
|
869
871
|
}), /* @__PURE__ */ A("dd", {
|
|
870
872
|
className: "text-2xl font-semibold tabular-nums text-text-primary",
|
|
871
|
-
children:
|
|
873
|
+
children: W.toLocaleString()
|
|
872
874
|
})] })
|
|
873
875
|
]
|
|
874
876
|
})]
|
|
875
877
|
})]
|
|
876
878
|
})
|
|
877
879
|
}),
|
|
878
|
-
/* @__PURE__ */ A(
|
|
880
|
+
/* @__PURE__ */ A(R, {
|
|
879
881
|
value: "sessions",
|
|
880
882
|
className: "mt-4",
|
|
881
|
-
children: /* @__PURE__ */ A(
|
|
883
|
+
children: /* @__PURE__ */ A(de, { eventId: e })
|
|
882
884
|
}),
|
|
883
|
-
/* @__PURE__ */ A(
|
|
885
|
+
/* @__PURE__ */ A(R, {
|
|
884
886
|
value: "speakers",
|
|
885
887
|
className: "mt-4",
|
|
886
|
-
children: /* @__PURE__ */ A(
|
|
888
|
+
children: /* @__PURE__ */ A(Q, {})
|
|
887
889
|
}),
|
|
888
|
-
/* @__PURE__ */ A(
|
|
890
|
+
/* @__PURE__ */ A(R, {
|
|
889
891
|
value: "tickets",
|
|
890
892
|
className: "mt-4",
|
|
891
|
-
children: /* @__PURE__ */ A(
|
|
893
|
+
children: /* @__PURE__ */ A(fe, { eventId: e })
|
|
892
894
|
})
|
|
893
895
|
]
|
|
894
896
|
})
|
|
895
897
|
]
|
|
896
898
|
}) : /* @__PURE__ */ j("div", {
|
|
897
899
|
className: "space-y-4 p-6",
|
|
898
|
-
children: [/* @__PURE__ */ j(
|
|
900
|
+
children: [/* @__PURE__ */ j(N, {
|
|
899
901
|
type: "button",
|
|
900
902
|
variant: "ghost",
|
|
901
903
|
size: "sm",
|
|
902
904
|
onClick: () => n("/events"),
|
|
903
|
-
children: [/* @__PURE__ */ A(
|
|
904
|
-
}), /* @__PURE__ */ A(
|
|
905
|
+
children: [/* @__PURE__ */ A(B, { className: "h-4 w-4" }), "Back to Events"]
|
|
906
|
+
}), /* @__PURE__ */ A(P, {
|
|
905
907
|
treatment: "plain",
|
|
906
908
|
className: "border-border-seam",
|
|
907
|
-
children: /* @__PURE__ */ A(
|
|
909
|
+
children: /* @__PURE__ */ A(F, {
|
|
908
910
|
illustration: "empty-search",
|
|
909
911
|
title: "Event not found.",
|
|
910
912
|
description: "This event may have been removed or is outside your current scope."
|
|
@@ -912,6 +914,6 @@ function pe() {
|
|
|
912
914
|
})]
|
|
913
915
|
});
|
|
914
916
|
}
|
|
915
|
-
export {
|
|
917
|
+
export { me as default };
|
|
916
918
|
|
|
917
919
|
//# sourceMappingURL=EventDetailPage.js.map
|