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