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