@burdenoff/microfe-eventfullymanaged 2026.1110.9 → 2026.1110.11

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.
@@ -1,94 +1,144 @@
1
- import { useAnalyticsSnapshotsQuery as e, useAnnouncementsQuery as t, useAutomationRulesQuery as n, useCheckInRecordsQuery as r, useCommunicationCampaignsQuery as i, useDashboardSummaryQuery as a, useEventSessionsQuery as o, useExhibitorsQuery as s, useLeadsQuery as c, useNetworkingProfilesQuery as l, usePromoCodesQuery as u, useRegistrationsQuery as d, useSponsorsQuery as f, useTicketTypesQuery as p, useVenuesQuery as m, useWorkflowTemplatesQuery as h } from "../../api/eventApi.js";
2
- import { useEventfullyManaged as g } from "../../context/EventfullyManagedContext.js";
3
- import { EntityListSection as _ } from "./EntityListSection.js";
4
- import { useMemo as v } from "react";
5
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
6
- import { LayoutDashboard as x, Megaphone as S, Workflow as C } from "lucide-react";
7
- import { EmphasisPanel as w, GlassCard as T, GradientText as E, NextSteps as D, PagePurpose as ee, ShowMore as te } from "@burdenoff/fe-libs/ui";
1
+ import { useAnalyticsSnapshotsQuery as e, useAnnouncementsQuery as t, useAutomationRulesQuery as n, useCheckInRecordsQuery as r, useCommunicationCampaignsQuery as i, useDashboardSummaryQuery as a, useEventSessionsQuery as o, useExhibitorsQuery as s, useFinanceSummaryQuery as ee, useLeadsQuery as te, useNetworkingProfilesQuery as ne, usePromoCodesQuery as re, useRegistrationsQuery as ie, useSponsorRoiReportQuery as ae, useSponsorsQuery as oe, useTicketTypesQuery as c, useVenuesQuery as l, useWorkflowTemplatesQuery as u } from "../../api/eventApi.js";
2
+ import { useEventfullyManaged as d } from "../../context/EventfullyManagedContext.js";
3
+ import { EntityListSection as f } from "./EntityListSection.js";
4
+ import { useMemo as p } from "react";
5
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
6
+ import { LayoutDashboard as g, Megaphone as _, Workflow as v } from "lucide-react";
7
+ import { EmphasisPanel as y, GlassCard as b, GradientText as se, NextSteps as ce, PagePurpose as le, ShowMore as ue } from "@burdenoff/fe-libs/ui";
8
8
  // src/eventfullymanaged/pages/modules/OperationsHubPage.tsx
9
- function O({ title: O, description: k, sectionKeys: A }) {
10
- let { navigate: j } = g(), M = a(), N = t({
9
+ function x(e, t) {
10
+ let n = Number(t);
11
+ if (!Number.isFinite(n)) return `${t} ${e}`;
12
+ try {
13
+ return new Intl.NumberFormat(void 0, {
14
+ style: "currency",
15
+ currency: e
16
+ }).format(n);
17
+ } catch {
18
+ return `${new Intl.NumberFormat().format(n)} ${e}`;
19
+ }
20
+ }
21
+ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
22
+ let { navigate: T } = d(), E = (e) => C.includes(e), fe = a(), D = t({
11
23
  limit: 100,
12
- offset: 0
13
- }), P = i({
24
+ offset: 0,
25
+ skip: !E("announcements")
26
+ }), O = i({
14
27
  limit: 100,
15
- offset: 0
16
- }), F = h({
28
+ offset: 0,
29
+ skip: !E("campaigns")
30
+ }), k = u({
17
31
  limit: 100,
18
- offset: 0
19
- }), I = n({
32
+ offset: 0,
33
+ skip: !E("templates")
34
+ }), A = n({
20
35
  limit: 100,
21
- offset: 0
22
- }), L = e({
36
+ offset: 0,
37
+ skip: !E("rules")
38
+ }), j = e({
23
39
  limit: 100,
24
- offset: 0
25
- }), R = d({
40
+ offset: 0,
41
+ skip: !E("snapshots")
42
+ }), M = ie({
26
43
  limit: 100,
27
- offset: 0
28
- }), z = p({
44
+ offset: 0,
45
+ skip: !E("registrations")
46
+ }), N = c({
29
47
  limit: 100,
30
- offset: 0
31
- }), B = u({
48
+ offset: 0,
49
+ skip: !E("ticketTypes")
50
+ }), P = re({
32
51
  limit: 100,
33
- offset: 0
34
- }), V = f({
52
+ offset: 0,
53
+ skip: !E("promoCodes")
54
+ }), F = oe({
35
55
  limit: 100,
36
- offset: 0
37
- }), H = s({
56
+ offset: 0,
57
+ skip: !E("sponsors")
58
+ }), I = s({
38
59
  limit: 100,
39
- offset: 0
40
- }), U = c({
60
+ offset: 0,
61
+ skip: !E("exhibitors")
62
+ }), L = te({
41
63
  limit: 100,
42
- offset: 0
43
- }), W = m({
64
+ offset: 0,
65
+ skip: !E("leads")
66
+ }), R = l({
44
67
  limit: 100,
45
- offset: 0
46
- }), G = o({
68
+ offset: 0,
69
+ skip: !E("venues")
70
+ }), z = o({
47
71
  limit: 100,
48
- offset: 0
49
- }), K = r({
72
+ offset: 0,
73
+ skip: !E("sessions")
74
+ }), B = r({
50
75
  limit: 100,
51
- offset: 0
52
- }), q = l({
76
+ offset: 0,
77
+ skip: !E("checkInRecords")
78
+ }), V = ne({
53
79
  limit: 100,
54
- offset: 0
55
- }), J = M.data?.dashboardSummary, Y = v(() => R.data?.registrations.items ?? [], [R.data]), X = v(() => Y.reduce((e, t) => {
56
- let n = Number(t.totalAmount ?? 0);
57
- return Number.isFinite(n) ? e + n : e;
58
- }, 0), [Y]), Z = [
80
+ offset: 0,
81
+ skip: !E("networkingProfiles")
82
+ }), H = ee({ skip: !w }), U = ae({ skip: !w }), W = fe.data?.dashboardSummary, G = H.data?.financeSummary, K = p(() => M.data?.registrations.items ?? [], [M.data]), pe = w ? [
83
+ {
84
+ label: "Registrations",
85
+ value: G?.registrationsTotal ?? 0
86
+ },
87
+ {
88
+ label: "Ticket Types",
89
+ value: G?.ticketTypesTotal ?? 0
90
+ },
91
+ {
92
+ label: "Promo Codes",
93
+ value: G?.promoCodesTotal ?? 0
94
+ }
95
+ ] : [
59
96
  {
60
97
  label: "Events",
61
- value: J?.totalEvents ?? 0
98
+ value: W?.totalEvents ?? 0
62
99
  },
63
100
  {
64
101
  label: "Active",
65
- value: J?.activeEvents ?? 0
102
+ value: W?.activeEvents ?? 0
66
103
  },
67
104
  {
68
105
  label: "Registrations",
69
- value: J?.totalRegistrations ?? 0
106
+ value: W?.totalRegistrations ?? 0
70
107
  },
71
108
  {
72
109
  label: "Attendees",
73
- value: J?.totalAttendees ?? 0
110
+ value: W?.totalAttendees ?? 0
74
111
  },
75
112
  {
76
113
  label: "Venues",
77
- value: J?.totalVenues ?? 0
114
+ value: W?.totalVenues ?? 0
78
115
  },
79
116
  {
80
117
  label: "Sponsors",
81
- value: J?.totalSponsors ?? 0
82
- },
83
- {
84
- label: "Tracked Revenue",
85
- value: X.toFixed(2)
118
+ value: W?.totalSponsors ?? 0
86
119
  }
87
- ], Q = (e) => {
120
+ ], q = p(() => (G?.revenueByCurrency ?? []).map((e) => ({
121
+ currency: e.currency,
122
+ formatted: x(e.currency, e.amount)
123
+ })), [G]), me = p(() => (G?.netRevenueByCurrency ?? []).map((e) => ({
124
+ currency: e.currency,
125
+ formatted: x(e.currency, e.amount)
126
+ })), [G]), J = p(() => (G?.refundsByCurrency ?? []).filter((e) => Number(e.amount) > 0).map((e) => ({
127
+ currency: e.currency,
128
+ formatted: x(e.currency, e.amount)
129
+ })), [G]), Y = (e) => e.length > 0 ? e.map((e) => x(e.currency, e.amount)).join(" · ") : "—", X = p(() => (G?.byEvent ?? []).filter((e) => e.revenueByCurrency.length > 0 || e.refundsByCurrency.length > 0 || e.paidRegistrations > 0 || e.refundedRegistrations > 0).map((e) => ({
130
+ id: e.event.id,
131
+ name: e.event.name,
132
+ revenue: Y(e.revenueByCurrency),
133
+ refunds: Y(e.refundsByCurrency),
134
+ net: Y(e.netRevenueByCurrency),
135
+ paid: e.paidRegistrations,
136
+ refunded: e.refundedRegistrations
137
+ })), [G]), Z = p(() => U.data?.sponsorRoiReport.items ?? [], [U.data]), Q = (e) => {
88
138
  if (e === "announcements") {
89
- let e = N.data?.announcements.items ?? [];
90
- return /* @__PURE__ */ y(_, {
91
- heading: N.loading ? "Loading announcements..." : `Announcements (${e.length})`,
139
+ let e = D.data?.announcements.items ?? [];
140
+ return /* @__PURE__ */ m(f, {
141
+ heading: D.loading ? "Loading announcements..." : `Announcements (${D.data?.announcements.total ?? e.length})`,
92
142
  emptyLabel: "No announcements recorded.",
93
143
  rows: e.map((e) => ({
94
144
  id: e.id,
@@ -98,9 +148,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
98
148
  });
99
149
  }
100
150
  if (e === "campaigns") {
101
- let e = P.data?.communicationCampaigns.items ?? [];
102
- return /* @__PURE__ */ y(_, {
103
- heading: P.loading ? "Loading campaigns..." : `Campaigns (${e.length})`,
151
+ let e = O.data?.communicationCampaigns.items ?? [];
152
+ return /* @__PURE__ */ m(f, {
153
+ heading: O.loading ? "Loading campaigns..." : `Campaigns (${O.data?.communicationCampaigns.total ?? e.length})`,
104
154
  emptyLabel: "No communication campaigns available.",
105
155
  rows: e.map((e) => ({
106
156
  id: e.id,
@@ -110,9 +160,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
110
160
  });
111
161
  }
112
162
  if (e === "templates") {
113
- let e = F.data?.workflowTemplates.items ?? [];
114
- return /* @__PURE__ */ y(_, {
115
- heading: F.loading ? "Loading templates..." : `Workflow Templates (${e.length})`,
163
+ let e = k.data?.workflowTemplates.items ?? [];
164
+ return /* @__PURE__ */ m(f, {
165
+ heading: k.loading ? "Loading templates..." : `Workflow Templates (${k.data?.workflowTemplates.total ?? e.length})`,
116
166
  emptyLabel: "No workflow templates configured.",
117
167
  rows: e.map((e) => ({
118
168
  id: e.id,
@@ -122,9 +172,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
122
172
  });
123
173
  }
124
174
  if (e === "rules") {
125
- let e = I.data?.automationRules.items ?? [];
126
- return /* @__PURE__ */ y(_, {
127
- heading: I.loading ? "Loading rules..." : `Automation Rules (${e.length})`,
175
+ let e = A.data?.automationRules.items ?? [];
176
+ return /* @__PURE__ */ m(f, {
177
+ heading: A.loading ? "Loading rules..." : `Automation Rules (${A.data?.automationRules.total ?? e.length})`,
128
178
  emptyLabel: "No automation rules configured.",
129
179
  rows: e.map((e) => ({
130
180
  id: e.id,
@@ -134,9 +184,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
134
184
  });
135
185
  }
136
186
  if (e === "snapshots") {
137
- let e = L.data?.analyticsSnapshots.items ?? [];
138
- return /* @__PURE__ */ y(_, {
139
- heading: L.loading ? "Loading analytics snapshots..." : `Snapshots (${e.length})`,
187
+ let e = j.data?.analyticsSnapshots.items ?? [];
188
+ return /* @__PURE__ */ m(f, {
189
+ heading: j.loading ? "Loading analytics snapshots..." : `Snapshots (${j.data?.analyticsSnapshots.total ?? e.length})`,
140
190
  emptyLabel: "No analytics snapshots generated.",
141
191
  rows: e.map((e) => ({
142
192
  id: e.id,
@@ -145,20 +195,20 @@ function O({ title: O, description: k, sectionKeys: A }) {
145
195
  }))
146
196
  });
147
197
  }
148
- if (e === "registrations") return /* @__PURE__ */ y(_, {
149
- heading: R.loading ? "Loading registrations..." : `Registrations (${Y.length})`,
198
+ if (e === "registrations") return /* @__PURE__ */ m(f, {
199
+ heading: M.loading ? "Loading registrations..." : `Registrations (${M.data?.registrations.total ?? K.length})`,
150
200
  emptyLabel: "No registrations available.",
151
- rows: Y.map((e) => ({
201
+ rows: K.map((e) => ({
152
202
  id: e.id,
153
- title: e.attendeeId ? `Attendee ${e.attendeeId}` : `Registration ${e.id}`,
154
- subtitle: e.totalAmount ? `${e.totalAmount} ${e.currency ?? ""}`.trim() : void 0,
203
+ title: e.attendeeName ?? (e.attendeeId ? `Attendee ${e.attendeeId}` : `Registration ${e.id}`),
204
+ subtitle: e.totalAmount ? x(e.currency ?? "", e.totalAmount) : void 0,
155
205
  status: e.status ?? void 0
156
206
  }))
157
207
  });
158
208
  if (e === "ticketTypes") {
159
- let e = z.data?.ticketTypes.items ?? [];
160
- return /* @__PURE__ */ y(_, {
161
- heading: z.loading ? "Loading ticket types..." : `Ticket Types (${e.length})`,
209
+ let e = N.data?.ticketTypes.items ?? [];
210
+ return /* @__PURE__ */ m(f, {
211
+ heading: N.loading ? "Loading ticket types..." : `Ticket Types (${N.data?.ticketTypes.total ?? e.length})`,
162
212
  emptyLabel: "No ticket types configured.",
163
213
  rows: e.map((e) => ({
164
214
  id: e.id,
@@ -169,9 +219,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
169
219
  });
170
220
  }
171
221
  if (e === "promoCodes") {
172
- let e = B.data?.promoCodes.items ?? [];
173
- return /* @__PURE__ */ y(_, {
174
- heading: B.loading ? "Loading promo codes..." : `Promo Codes (${e.length})`,
222
+ let e = P.data?.promoCodes.items ?? [];
223
+ return /* @__PURE__ */ m(f, {
224
+ heading: P.loading ? "Loading promo codes..." : `Promo Codes (${P.data?.promoCodes.total ?? e.length})`,
175
225
  emptyLabel: "No promo codes configured.",
176
226
  rows: e.map((e) => ({
177
227
  id: e.id,
@@ -182,9 +232,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
182
232
  });
183
233
  }
184
234
  if (e === "sponsors") {
185
- let e = V.data?.sponsors.items ?? [];
186
- return /* @__PURE__ */ y(_, {
187
- heading: V.loading ? "Loading sponsors..." : `Sponsors (${e.length})`,
235
+ let e = F.data?.sponsors.items ?? [];
236
+ return /* @__PURE__ */ m(f, {
237
+ heading: F.loading ? "Loading sponsors..." : `Sponsors (${F.data?.sponsors.total ?? e.length})`,
188
238
  emptyLabel: "No sponsors onboarded.",
189
239
  rows: e.map((e) => ({
190
240
  id: e.id,
@@ -194,9 +244,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
194
244
  });
195
245
  }
196
246
  if (e === "exhibitors") {
197
- let e = H.data?.exhibitors.items ?? [];
198
- return /* @__PURE__ */ y(_, {
199
- heading: H.loading ? "Loading exhibitors..." : `Exhibitors (${e.length})`,
247
+ let e = I.data?.exhibitors.items ?? [];
248
+ return /* @__PURE__ */ m(f, {
249
+ heading: I.loading ? "Loading exhibitors..." : `Exhibitors (${I.data?.exhibitors.total ?? e.length})`,
200
250
  emptyLabel: "No exhibitors onboarded.",
201
251
  rows: e.map((e) => ({
202
252
  id: e.id,
@@ -207,9 +257,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
207
257
  });
208
258
  }
209
259
  if (e === "leads") {
210
- let e = U.data?.leads.items ?? [];
211
- return /* @__PURE__ */ y(_, {
212
- heading: U.loading ? "Loading leads..." : `Leads (${e.length})`,
260
+ let e = L.data?.leads.items ?? [];
261
+ return /* @__PURE__ */ m(f, {
262
+ heading: L.loading ? "Loading leads..." : `Leads (${L.data?.leads.total ?? e.length})`,
213
263
  emptyLabel: "No leads captured.",
214
264
  rows: e.map((e) => ({
215
265
  id: e.id,
@@ -220,9 +270,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
220
270
  });
221
271
  }
222
272
  if (e === "venues") {
223
- let e = W.data?.venues.items ?? [];
224
- return /* @__PURE__ */ y(_, {
225
- heading: W.loading ? "Loading venues..." : `Venues (${e.length})`,
273
+ let e = R.data?.venues.items ?? [];
274
+ return /* @__PURE__ */ m(f, {
275
+ heading: R.loading ? "Loading venues..." : `Venues (${R.data?.venues.total ?? e.length})`,
226
276
  emptyLabel: "No venues configured.",
227
277
  rows: e.map((e) => ({
228
278
  id: e.id,
@@ -233,9 +283,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
233
283
  });
234
284
  }
235
285
  if (e === "checkInRecords") {
236
- let e = K.data?.checkInRecords.items ?? [];
237
- return /* @__PURE__ */ y(_, {
238
- heading: K.loading ? "Loading check-in records..." : `Check-In Records (${e.length})`,
286
+ let e = B.data?.checkInRecords.items ?? [];
287
+ return /* @__PURE__ */ m(f, {
288
+ heading: B.loading ? "Loading check-in records..." : `Check-In Records (${B.data?.checkInRecords.total ?? e.length})`,
239
289
  emptyLabel: "No check-in records found.",
240
290
  rows: e.map((e) => ({
241
291
  id: e.id,
@@ -246,9 +296,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
246
296
  });
247
297
  }
248
298
  if (e === "networkingProfiles") {
249
- let e = q.data?.networkingProfiles.items ?? [];
250
- return /* @__PURE__ */ y(_, {
251
- heading: q.loading ? "Loading networking profiles..." : `Profiles (${e.length})`,
299
+ let e = V.data?.networkingProfiles.items ?? [];
300
+ return /* @__PURE__ */ m(f, {
301
+ heading: V.loading ? "Loading networking profiles..." : `Profiles (${V.data?.networkingProfiles.total ?? e.length})`,
252
302
  emptyLabel: "No networking profiles available.",
253
303
  rows: e.map((e) => ({
254
304
  id: e.id,
@@ -258,9 +308,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
258
308
  }))
259
309
  });
260
310
  }
261
- let t = G.data?.eventSessions.items ?? [];
262
- return /* @__PURE__ */ y(_, {
263
- heading: G.loading ? "Loading sessions..." : `Sessions (${t.length})`,
311
+ let t = z.data?.eventSessions.items ?? [];
312
+ return /* @__PURE__ */ m(f, {
313
+ heading: z.loading ? "Loading sessions..." : `Sessions (${z.data?.eventSessions.total ?? t.length})`,
264
314
  emptyLabel: "No sessions scheduled.",
265
315
  rows: t.map((e) => ({
266
316
  id: e.id,
@@ -269,49 +319,243 @@ function O({ title: O, description: k, sectionKeys: A }) {
269
319
  status: e.status ?? void 0
270
320
  }))
271
321
  });
272
- }, ne = A.slice(0, 3), $ = A.slice(3);
273
- return /* @__PURE__ */ b("div", {
322
+ }, he = C.slice(0, 3), $ = C.slice(3);
323
+ return /* @__PURE__ */ h("div", {
274
324
  className: "space-y-6 p-6",
275
325
  children: [
276
- /* @__PURE__ */ b(ee, { children: [
326
+ /* @__PURE__ */ h(le, { children: [
277
327
  "A focused operations hub that pulls together the live records most relevant to ",
278
- O,
328
+ S,
279
329
  ". Instead of jumping between modules, you get the key metrics plus the specific lists you need for this area in one place — handy for a quick health check or a stand-up update."
280
330
  ] }),
281
- /* @__PURE__ */ b(w, { children: [/* @__PURE__ */ y("h1", {
331
+ /* @__PURE__ */ h(y, { children: [/* @__PURE__ */ m("h1", {
282
332
  className: "text-2xl font-bold text-text-primary",
283
- children: /* @__PURE__ */ y(E, { children: O })
284
- }), /* @__PURE__ */ y("p", {
333
+ children: /* @__PURE__ */ m(se, { children: S })
334
+ }), /* @__PURE__ */ m("p", {
285
335
  className: "mt-1 text-sm text-text-secondary",
286
- children: k
336
+ children: de
287
337
  })] }),
288
- /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y("h2", {
289
- className: "text-lg font-semibold text-text-primary",
290
- children: "Operational Metrics"
291
- }), /* @__PURE__ */ y("div", {
292
- className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
293
- children: Z.map((e) => /* @__PURE__ */ b(T, {
294
- treatment: "metric",
295
- className: "p-3",
296
- children: [/* @__PURE__ */ y("p", {
297
- className: "text-xs uppercase tracking-wide text-text-secondary",
298
- children: e.label
299
- }), /* @__PURE__ */ y("p", {
300
- className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
301
- children: e.value
338
+ /* @__PURE__ */ h("section", { children: [
339
+ /* @__PURE__ */ m("h2", {
340
+ className: "text-lg font-semibold text-text-primary",
341
+ children: w ? "Revenue" : "Operational Metrics"
342
+ }),
343
+ w ? /* @__PURE__ */ h("div", {
344
+ className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
345
+ children: [
346
+ q.length > 0 ? q.map((e) => /* @__PURE__ */ h(b, {
347
+ treatment: "metric",
348
+ className: "p-3",
349
+ children: [/* @__PURE__ */ h("p", {
350
+ className: "text-xs uppercase tracking-wide text-text-secondary",
351
+ children: [
352
+ "Revenue (",
353
+ e.currency,
354
+ ")"
355
+ ]
356
+ }), /* @__PURE__ */ m("p", {
357
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
358
+ children: e.formatted
359
+ })]
360
+ }, e.currency)) : /* @__PURE__ */ h(b, {
361
+ treatment: "metric",
362
+ className: "p-3",
363
+ children: [/* @__PURE__ */ m("p", {
364
+ className: "text-xs uppercase tracking-wide text-text-secondary",
365
+ children: "Revenue"
366
+ }), /* @__PURE__ */ m("p", {
367
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
368
+ children: H.loading ? "…" : "No revenue yet"
369
+ })]
370
+ }),
371
+ J.map((e) => /* @__PURE__ */ h(b, {
372
+ treatment: "metric",
373
+ className: "p-3",
374
+ children: [/* @__PURE__ */ h("p", {
375
+ className: "text-xs uppercase tracking-wide text-text-secondary",
376
+ children: [
377
+ "Refunds (",
378
+ e.currency,
379
+ ")"
380
+ ]
381
+ }), /* @__PURE__ */ m("p", {
382
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
383
+ children: e.formatted
384
+ })]
385
+ }, `refund-${e.currency}`)),
386
+ me.map((e) => /* @__PURE__ */ h(b, {
387
+ treatment: "metric",
388
+ className: "p-3",
389
+ children: [/* @__PURE__ */ h("p", {
390
+ className: "text-xs uppercase tracking-wide text-text-secondary",
391
+ children: [
392
+ "Net revenue (",
393
+ e.currency,
394
+ ")"
395
+ ]
396
+ }), /* @__PURE__ */ m("p", {
397
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
398
+ children: e.formatted
399
+ })]
400
+ }, `net-${e.currency}`))
401
+ ]
402
+ }) : null,
403
+ /* @__PURE__ */ m("div", {
404
+ className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
405
+ children: pe.map((e) => /* @__PURE__ */ h(b, {
406
+ treatment: "metric",
407
+ className: "p-3",
408
+ children: [/* @__PURE__ */ m("p", {
409
+ className: "text-xs uppercase tracking-wide text-text-secondary",
410
+ children: e.label
411
+ }), /* @__PURE__ */ m("p", {
412
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
413
+ children: e.value
414
+ })]
415
+ }, e.label))
416
+ }),
417
+ w ? /* @__PURE__ */ h("div", {
418
+ className: "mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2",
419
+ children: [/* @__PURE__ */ h(b, {
420
+ className: "p-4",
421
+ children: [/* @__PURE__ */ m("h3", {
422
+ className: "text-sm font-semibold text-text-primary",
423
+ children: "Revenue by event"
424
+ }), X.length === 0 ? /* @__PURE__ */ m("p", {
425
+ className: "mt-3 text-sm text-text-secondary",
426
+ children: H.loading ? "Loading…" : "No ticket revenue recorded yet."
427
+ }) : /* @__PURE__ */ h("table", {
428
+ className: "mt-3 w-full text-left text-sm",
429
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
430
+ className: "border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary",
431
+ children: [
432
+ /* @__PURE__ */ m("th", {
433
+ className: "py-2 pr-4 font-medium",
434
+ children: "Event"
435
+ }),
436
+ /* @__PURE__ */ m("th", {
437
+ className: "py-2 pr-4 font-medium",
438
+ children: "Revenue"
439
+ }),
440
+ /* @__PURE__ */ m("th", {
441
+ className: "py-2 pr-4 font-medium",
442
+ children: "Refunds"
443
+ }),
444
+ /* @__PURE__ */ m("th", {
445
+ className: "py-2 pr-4 font-medium",
446
+ children: "Net"
447
+ }),
448
+ /* @__PURE__ */ m("th", {
449
+ className: "py-2 font-medium",
450
+ children: "Paid / Refunded"
451
+ })
452
+ ]
453
+ }) }), /* @__PURE__ */ m("tbody", { children: X.map((e) => /* @__PURE__ */ h("tr", {
454
+ className: "border-b border-border-seam last:border-b-0",
455
+ children: [
456
+ /* @__PURE__ */ m("td", {
457
+ className: "py-2 pr-4 text-text-primary",
458
+ children: e.name
459
+ }),
460
+ /* @__PURE__ */ m("td", {
461
+ className: "py-2 pr-4 tabular-nums text-text-secondary",
462
+ children: e.revenue
463
+ }),
464
+ /* @__PURE__ */ m("td", {
465
+ className: "py-2 pr-4 tabular-nums text-text-secondary",
466
+ children: e.refunds
467
+ }),
468
+ /* @__PURE__ */ m("td", {
469
+ className: "py-2 pr-4 tabular-nums text-text-primary",
470
+ children: e.net
471
+ }),
472
+ /* @__PURE__ */ h("td", {
473
+ className: "py-2 tabular-nums text-text-secondary",
474
+ children: [
475
+ e.paid,
476
+ " / ",
477
+ e.refunded
478
+ ]
479
+ })
480
+ ]
481
+ }, e.id)) })]
482
+ })]
483
+ }), /* @__PURE__ */ h(b, {
484
+ className: "p-4",
485
+ children: [/* @__PURE__ */ m("h3", {
486
+ className: "text-sm font-semibold text-text-primary",
487
+ children: "Sponsor ROI"
488
+ }), Z.length === 0 ? /* @__PURE__ */ m("p", {
489
+ className: "mt-3 text-sm text-text-secondary",
490
+ children: U.loading ? "Loading…" : "No sponsors with contract value yet."
491
+ }) : /* @__PURE__ */ h("table", {
492
+ className: "mt-3 w-full text-left text-sm",
493
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
494
+ className: "border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary",
495
+ children: [
496
+ /* @__PURE__ */ m("th", {
497
+ className: "py-2 pr-4 font-medium",
498
+ children: "Sponsor"
499
+ }),
500
+ /* @__PURE__ */ m("th", {
501
+ className: "py-2 pr-4 font-medium",
502
+ children: "Contract value"
503
+ }),
504
+ /* @__PURE__ */ m("th", {
505
+ className: "py-2 pr-4 font-medium",
506
+ children: "Leads"
507
+ }),
508
+ /* @__PURE__ */ m("th", {
509
+ className: "py-2 font-medium",
510
+ children: "Cost per lead"
511
+ })
512
+ ]
513
+ }) }), /* @__PURE__ */ m("tbody", { children: Z.map((e) => /* @__PURE__ */ h("tr", {
514
+ className: "border-b border-border-seam last:border-b-0",
515
+ children: [
516
+ /* @__PURE__ */ h("td", {
517
+ className: "py-2 pr-4 text-text-primary",
518
+ children: [
519
+ e.name,
520
+ " ",
521
+ /* @__PURE__ */ h("span", {
522
+ className: "text-text-secondary",
523
+ children: [
524
+ "(",
525
+ e.level,
526
+ ")"
527
+ ]
528
+ })
529
+ ]
530
+ }),
531
+ /* @__PURE__ */ m("td", {
532
+ className: "py-2 pr-4 tabular-nums text-text-secondary",
533
+ children: e.contractValue > 0 ? x(e.currency ?? "USD", String(e.contractValue)) : "—"
534
+ }),
535
+ /* @__PURE__ */ h("td", {
536
+ className: "py-2 pr-4 tabular-nums text-text-secondary",
537
+ children: [e.leadsCaptured, e.leadsTarget > 0 ? ` / ${e.leadsTarget}` : ""]
538
+ }),
539
+ /* @__PURE__ */ m("td", {
540
+ className: "py-2 tabular-nums text-text-primary",
541
+ children: e.costPerLead === null ? "—" : x(e.currency ?? "USD", e.costPerLead.toFixed(2))
542
+ })
543
+ ]
544
+ }, e.sponsorId)) })]
545
+ })]
302
546
  })]
303
- }, e.label))
304
- })] }),
305
- ne.map((e) => /* @__PURE__ */ y("div", { children: Q(e) }, e)),
306
- $.length > 0 ? /* @__PURE__ */ y(te, {
547
+ }) : null
548
+ ] }),
549
+ he.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e)),
550
+ $.length > 0 ? /* @__PURE__ */ m(ue, {
307
551
  collapsedHeight: 160,
308
552
  label: "Show all sections",
309
- children: /* @__PURE__ */ y("div", {
553
+ children: /* @__PURE__ */ m("div", {
310
554
  className: "space-y-6",
311
- children: $.map((e) => /* @__PURE__ */ y("div", { children: Q(e) }, e))
555
+ children: $.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e))
312
556
  })
313
557
  }) : null,
314
- /* @__PURE__ */ y(D, {
558
+ /* @__PURE__ */ m(ce, {
315
559
  storageKey: "eventfullymanaged-operations-hub",
316
560
  title: "Where to go from here",
317
561
  steps: [
@@ -319,28 +563,28 @@ function O({ title: O, description: k, sectionKeys: A }) {
319
563
  id: "overview",
320
564
  label: "Back to the dashboard",
321
565
  description: "See the big picture across every part of your events.",
322
- icon: /* @__PURE__ */ y(x, { className: "h-4 w-4" }),
323
- onClick: () => j("/")
566
+ icon: /* @__PURE__ */ m(g, { className: "h-4 w-4" }),
567
+ onClick: () => T("/")
324
568
  },
325
569
  {
326
570
  id: "automate",
327
571
  label: "Automate routine work",
328
572
  description: "Set up workflow templates and rules to save time.",
329
- icon: /* @__PURE__ */ y(C, { className: "h-4 w-4" }),
330
- onClick: () => j("/workflows")
573
+ icon: /* @__PURE__ */ m(v, { className: "h-4 w-4" }),
574
+ onClick: () => T("/workflows")
331
575
  },
332
576
  {
333
577
  id: "communicate",
334
578
  label: "Reach your audience",
335
579
  description: "Send announcements and run campaigns.",
336
- icon: /* @__PURE__ */ y(S, { className: "h-4 w-4" }),
337
- onClick: () => j("/communication")
580
+ icon: /* @__PURE__ */ m(_, { className: "h-4 w-4" }),
581
+ onClick: () => T("/communication")
338
582
  }
339
583
  ]
340
584
  })
341
585
  ]
342
586
  });
343
587
  }
344
- export { O as default };
588
+ export { S as default };
345
589
 
346
590
  //# sourceMappingURL=OperationsHubPage.js.map