@burdenoff/microfe-eventfullymanaged 2026.1110.10 → 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,12 +1,12 @@
1
- import { useAnalyticsSnapshotsQuery as e, useAnnouncementsQuery as t, useAutomationRulesQuery as n, useCheckInRecordsQuery as r, useCommunicationCampaignsQuery as i, useDashboardSummaryQuery as a, useEventSessionsQuery as ee, useExhibitorsQuery as o, useFinanceSummaryQuery as s, useLeadsQuery as c, useNetworkingProfilesQuery as te, usePromoCodesQuery as ne, useRegistrationsQuery as re, useSponsorsQuery as l, useTicketTypesQuery as u, useVenuesQuery as d, useWorkflowTemplatesQuery as ie } from "../../api/eventApi.js";
2
- import { useEventfullyManaged as ae } from "../../context/EventfullyManagedContext.js";
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
3
  import { EntityListSection as f } from "./EntityListSection.js";
4
4
  import { useMemo as p } from "react";
5
5
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
6
6
  import { LayoutDashboard as g, Megaphone as _, Workflow as v } from "lucide-react";
7
- import { EmphasisPanel as y, GlassCard as b, GradientText as x, NextSteps as S, PagePurpose as C, ShowMore as w } from "@burdenoff/fe-libs/ui";
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 T(e, t) {
9
+ function x(e, t) {
10
10
  let n = Number(t);
11
11
  if (!Number.isFinite(n)) return `${t} ${e}`;
12
12
  try {
@@ -18,113 +18,127 @@ function T(e, t) {
18
18
  return `${new Intl.NumberFormat().format(n)} ${e}`;
19
19
  }
20
20
  }
21
- function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
22
- let { navigate: k } = ae(), A = (e) => D.includes(e), j = a(), M = t({
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({
23
23
  limit: 100,
24
24
  offset: 0,
25
- skip: !A("announcements")
26
- }), N = i({
25
+ skip: !E("announcements")
26
+ }), O = i({
27
27
  limit: 100,
28
28
  offset: 0,
29
- skip: !A("campaigns")
30
- }), P = ie({
29
+ skip: !E("campaigns")
30
+ }), k = u({
31
31
  limit: 100,
32
32
  offset: 0,
33
- skip: !A("templates")
34
- }), F = n({
33
+ skip: !E("templates")
34
+ }), A = n({
35
35
  limit: 100,
36
36
  offset: 0,
37
- skip: !A("rules")
38
- }), I = e({
37
+ skip: !E("rules")
38
+ }), j = e({
39
39
  limit: 100,
40
40
  offset: 0,
41
- skip: !A("snapshots")
42
- }), L = re({
41
+ skip: !E("snapshots")
42
+ }), M = ie({
43
43
  limit: 100,
44
44
  offset: 0,
45
- skip: !A("registrations")
46
- }), R = u({
45
+ skip: !E("registrations")
46
+ }), N = c({
47
47
  limit: 100,
48
48
  offset: 0,
49
- skip: !A("ticketTypes")
50
- }), z = ne({
49
+ skip: !E("ticketTypes")
50
+ }), P = re({
51
51
  limit: 100,
52
52
  offset: 0,
53
- skip: !A("promoCodes")
54
- }), B = l({
53
+ skip: !E("promoCodes")
54
+ }), F = oe({
55
55
  limit: 100,
56
56
  offset: 0,
57
- skip: !A("sponsors")
58
- }), V = o({
57
+ skip: !E("sponsors")
58
+ }), I = s({
59
59
  limit: 100,
60
60
  offset: 0,
61
- skip: !A("exhibitors")
62
- }), H = c({
61
+ skip: !E("exhibitors")
62
+ }), L = te({
63
63
  limit: 100,
64
64
  offset: 0,
65
- skip: !A("leads")
66
- }), U = d({
65
+ skip: !E("leads")
66
+ }), R = l({
67
67
  limit: 100,
68
68
  offset: 0,
69
- skip: !A("venues")
70
- }), W = ee({
69
+ skip: !E("venues")
70
+ }), z = o({
71
71
  limit: 100,
72
72
  offset: 0,
73
- skip: !A("sessions")
74
- }), G = r({
73
+ skip: !E("sessions")
74
+ }), B = r({
75
75
  limit: 100,
76
76
  offset: 0,
77
- skip: !A("checkInRecords")
78
- }), K = te({
77
+ skip: !E("checkInRecords")
78
+ }), V = ne({
79
79
  limit: 100,
80
80
  offset: 0,
81
- skip: !A("networkingProfiles")
82
- }), q = s({ skip: !O }), J = j.data?.dashboardSummary, Y = q.data?.financeSummary, X = p(() => L.data?.registrations.items ?? [], [L.data]), se = O ? [
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
83
  {
84
84
  label: "Registrations",
85
- value: Y?.registrationsTotal ?? 0
85
+ value: G?.registrationsTotal ?? 0
86
86
  },
87
87
  {
88
88
  label: "Ticket Types",
89
- value: Y?.ticketTypesTotal ?? 0
89
+ value: G?.ticketTypesTotal ?? 0
90
90
  },
91
91
  {
92
92
  label: "Promo Codes",
93
- value: Y?.promoCodesTotal ?? 0
93
+ value: G?.promoCodesTotal ?? 0
94
94
  }
95
95
  ] : [
96
96
  {
97
97
  label: "Events",
98
- value: J?.totalEvents ?? 0
98
+ value: W?.totalEvents ?? 0
99
99
  },
100
100
  {
101
101
  label: "Active",
102
- value: J?.activeEvents ?? 0
102
+ value: W?.activeEvents ?? 0
103
103
  },
104
104
  {
105
105
  label: "Registrations",
106
- value: J?.totalRegistrations ?? 0
106
+ value: W?.totalRegistrations ?? 0
107
107
  },
108
108
  {
109
109
  label: "Attendees",
110
- value: J?.totalAttendees ?? 0
110
+ value: W?.totalAttendees ?? 0
111
111
  },
112
112
  {
113
113
  label: "Venues",
114
- value: J?.totalVenues ?? 0
114
+ value: W?.totalVenues ?? 0
115
115
  },
116
116
  {
117
117
  label: "Sponsors",
118
- value: J?.totalSponsors ?? 0
118
+ value: W?.totalSponsors ?? 0
119
119
  }
120
- ], Z = p(() => (Y?.revenueByCurrency ?? []).map((e) => ({
120
+ ], q = p(() => (G?.revenueByCurrency ?? []).map((e) => ({
121
121
  currency: e.currency,
122
- formatted: T(e.currency, e.amount)
123
- })), [Y]), Q = (e) => {
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) => {
124
138
  if (e === "announcements") {
125
- let e = M.data?.announcements.items ?? [];
139
+ let e = D.data?.announcements.items ?? [];
126
140
  return /* @__PURE__ */ m(f, {
127
- heading: M.loading ? "Loading announcements..." : `Announcements (${M.data?.announcements.total ?? e.length})`,
141
+ heading: D.loading ? "Loading announcements..." : `Announcements (${D.data?.announcements.total ?? e.length})`,
128
142
  emptyLabel: "No announcements recorded.",
129
143
  rows: e.map((e) => ({
130
144
  id: e.id,
@@ -134,9 +148,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
134
148
  });
135
149
  }
136
150
  if (e === "campaigns") {
137
- let e = N.data?.communicationCampaigns.items ?? [];
151
+ let e = O.data?.communicationCampaigns.items ?? [];
138
152
  return /* @__PURE__ */ m(f, {
139
- heading: N.loading ? "Loading campaigns..." : `Campaigns (${N.data?.communicationCampaigns.total ?? e.length})`,
153
+ heading: O.loading ? "Loading campaigns..." : `Campaigns (${O.data?.communicationCampaigns.total ?? e.length})`,
140
154
  emptyLabel: "No communication campaigns available.",
141
155
  rows: e.map((e) => ({
142
156
  id: e.id,
@@ -146,9 +160,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
146
160
  });
147
161
  }
148
162
  if (e === "templates") {
149
- let e = P.data?.workflowTemplates.items ?? [];
163
+ let e = k.data?.workflowTemplates.items ?? [];
150
164
  return /* @__PURE__ */ m(f, {
151
- heading: P.loading ? "Loading templates..." : `Workflow Templates (${P.data?.workflowTemplates.total ?? e.length})`,
165
+ heading: k.loading ? "Loading templates..." : `Workflow Templates (${k.data?.workflowTemplates.total ?? e.length})`,
152
166
  emptyLabel: "No workflow templates configured.",
153
167
  rows: e.map((e) => ({
154
168
  id: e.id,
@@ -158,9 +172,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
158
172
  });
159
173
  }
160
174
  if (e === "rules") {
161
- let e = F.data?.automationRules.items ?? [];
175
+ let e = A.data?.automationRules.items ?? [];
162
176
  return /* @__PURE__ */ m(f, {
163
- heading: F.loading ? "Loading rules..." : `Automation Rules (${F.data?.automationRules.total ?? e.length})`,
177
+ heading: A.loading ? "Loading rules..." : `Automation Rules (${A.data?.automationRules.total ?? e.length})`,
164
178
  emptyLabel: "No automation rules configured.",
165
179
  rows: e.map((e) => ({
166
180
  id: e.id,
@@ -170,9 +184,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
170
184
  });
171
185
  }
172
186
  if (e === "snapshots") {
173
- let e = I.data?.analyticsSnapshots.items ?? [];
187
+ let e = j.data?.analyticsSnapshots.items ?? [];
174
188
  return /* @__PURE__ */ m(f, {
175
- heading: I.loading ? "Loading analytics snapshots..." : `Snapshots (${I.data?.analyticsSnapshots.total ?? e.length})`,
189
+ heading: j.loading ? "Loading analytics snapshots..." : `Snapshots (${j.data?.analyticsSnapshots.total ?? e.length})`,
176
190
  emptyLabel: "No analytics snapshots generated.",
177
191
  rows: e.map((e) => ({
178
192
  id: e.id,
@@ -182,19 +196,19 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
182
196
  });
183
197
  }
184
198
  if (e === "registrations") return /* @__PURE__ */ m(f, {
185
- heading: L.loading ? "Loading registrations..." : `Registrations (${L.data?.registrations.total ?? X.length})`,
199
+ heading: M.loading ? "Loading registrations..." : `Registrations (${M.data?.registrations.total ?? K.length})`,
186
200
  emptyLabel: "No registrations available.",
187
- rows: X.map((e) => ({
201
+ rows: K.map((e) => ({
188
202
  id: e.id,
189
203
  title: e.attendeeName ?? (e.attendeeId ? `Attendee ${e.attendeeId}` : `Registration ${e.id}`),
190
- subtitle: e.totalAmount ? T(e.currency ?? "", e.totalAmount) : void 0,
204
+ subtitle: e.totalAmount ? x(e.currency ?? "", e.totalAmount) : void 0,
191
205
  status: e.status ?? void 0
192
206
  }))
193
207
  });
194
208
  if (e === "ticketTypes") {
195
- let e = R.data?.ticketTypes.items ?? [];
209
+ let e = N.data?.ticketTypes.items ?? [];
196
210
  return /* @__PURE__ */ m(f, {
197
- heading: R.loading ? "Loading ticket types..." : `Ticket Types (${R.data?.ticketTypes.total ?? e.length})`,
211
+ heading: N.loading ? "Loading ticket types..." : `Ticket Types (${N.data?.ticketTypes.total ?? e.length})`,
198
212
  emptyLabel: "No ticket types configured.",
199
213
  rows: e.map((e) => ({
200
214
  id: e.id,
@@ -205,9 +219,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
205
219
  });
206
220
  }
207
221
  if (e === "promoCodes") {
208
- let e = z.data?.promoCodes.items ?? [];
222
+ let e = P.data?.promoCodes.items ?? [];
209
223
  return /* @__PURE__ */ m(f, {
210
- heading: z.loading ? "Loading promo codes..." : `Promo Codes (${z.data?.promoCodes.total ?? e.length})`,
224
+ heading: P.loading ? "Loading promo codes..." : `Promo Codes (${P.data?.promoCodes.total ?? e.length})`,
211
225
  emptyLabel: "No promo codes configured.",
212
226
  rows: e.map((e) => ({
213
227
  id: e.id,
@@ -218,9 +232,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
218
232
  });
219
233
  }
220
234
  if (e === "sponsors") {
221
- let e = B.data?.sponsors.items ?? [];
235
+ let e = F.data?.sponsors.items ?? [];
222
236
  return /* @__PURE__ */ m(f, {
223
- heading: B.loading ? "Loading sponsors..." : `Sponsors (${B.data?.sponsors.total ?? e.length})`,
237
+ heading: F.loading ? "Loading sponsors..." : `Sponsors (${F.data?.sponsors.total ?? e.length})`,
224
238
  emptyLabel: "No sponsors onboarded.",
225
239
  rows: e.map((e) => ({
226
240
  id: e.id,
@@ -230,9 +244,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
230
244
  });
231
245
  }
232
246
  if (e === "exhibitors") {
233
- let e = V.data?.exhibitors.items ?? [];
247
+ let e = I.data?.exhibitors.items ?? [];
234
248
  return /* @__PURE__ */ m(f, {
235
- heading: V.loading ? "Loading exhibitors..." : `Exhibitors (${V.data?.exhibitors.total ?? e.length})`,
249
+ heading: I.loading ? "Loading exhibitors..." : `Exhibitors (${I.data?.exhibitors.total ?? e.length})`,
236
250
  emptyLabel: "No exhibitors onboarded.",
237
251
  rows: e.map((e) => ({
238
252
  id: e.id,
@@ -243,9 +257,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
243
257
  });
244
258
  }
245
259
  if (e === "leads") {
246
- let e = H.data?.leads.items ?? [];
260
+ let e = L.data?.leads.items ?? [];
247
261
  return /* @__PURE__ */ m(f, {
248
- heading: H.loading ? "Loading leads..." : `Leads (${H.data?.leads.total ?? e.length})`,
262
+ heading: L.loading ? "Loading leads..." : `Leads (${L.data?.leads.total ?? e.length})`,
249
263
  emptyLabel: "No leads captured.",
250
264
  rows: e.map((e) => ({
251
265
  id: e.id,
@@ -256,9 +270,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
256
270
  });
257
271
  }
258
272
  if (e === "venues") {
259
- let e = U.data?.venues.items ?? [];
273
+ let e = R.data?.venues.items ?? [];
260
274
  return /* @__PURE__ */ m(f, {
261
- heading: U.loading ? "Loading venues..." : `Venues (${U.data?.venues.total ?? e.length})`,
275
+ heading: R.loading ? "Loading venues..." : `Venues (${R.data?.venues.total ?? e.length})`,
262
276
  emptyLabel: "No venues configured.",
263
277
  rows: e.map((e) => ({
264
278
  id: e.id,
@@ -269,9 +283,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
269
283
  });
270
284
  }
271
285
  if (e === "checkInRecords") {
272
- let e = G.data?.checkInRecords.items ?? [];
286
+ let e = B.data?.checkInRecords.items ?? [];
273
287
  return /* @__PURE__ */ m(f, {
274
- heading: G.loading ? "Loading check-in records..." : `Check-In Records (${G.data?.checkInRecords.total ?? e.length})`,
288
+ heading: B.loading ? "Loading check-in records..." : `Check-In Records (${B.data?.checkInRecords.total ?? e.length})`,
275
289
  emptyLabel: "No check-in records found.",
276
290
  rows: e.map((e) => ({
277
291
  id: e.id,
@@ -282,9 +296,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
282
296
  });
283
297
  }
284
298
  if (e === "networkingProfiles") {
285
- let e = K.data?.networkingProfiles.items ?? [];
299
+ let e = V.data?.networkingProfiles.items ?? [];
286
300
  return /* @__PURE__ */ m(f, {
287
- heading: K.loading ? "Loading networking profiles..." : `Profiles (${K.data?.networkingProfiles.total ?? e.length})`,
301
+ heading: V.loading ? "Loading networking profiles..." : `Profiles (${V.data?.networkingProfiles.total ?? e.length})`,
288
302
  emptyLabel: "No networking profiles available.",
289
303
  rows: e.map((e) => ({
290
304
  id: e.id,
@@ -294,9 +308,9 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
294
308
  }))
295
309
  });
296
310
  }
297
- let t = W.data?.eventSessions.items ?? [];
311
+ let t = z.data?.eventSessions.items ?? [];
298
312
  return /* @__PURE__ */ m(f, {
299
- heading: W.loading ? "Loading sessions..." : `Sessions (${W.data?.eventSessions.total ?? t.length})`,
313
+ heading: z.loading ? "Loading sessions..." : `Sessions (${z.data?.eventSessions.total ?? t.length})`,
300
314
  emptyLabel: "No sessions scheduled.",
301
315
  rows: t.map((e) => ({
302
316
  id: e.id,
@@ -305,58 +319,90 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
305
319
  status: e.status ?? void 0
306
320
  }))
307
321
  });
308
- }, ce = D.slice(0, 3), $ = D.slice(3);
322
+ }, he = C.slice(0, 3), $ = C.slice(3);
309
323
  return /* @__PURE__ */ h("div", {
310
324
  className: "space-y-6 p-6",
311
325
  children: [
312
- /* @__PURE__ */ h(C, { children: [
326
+ /* @__PURE__ */ h(le, { children: [
313
327
  "A focused operations hub that pulls together the live records most relevant to ",
314
- E,
328
+ S,
315
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."
316
330
  ] }),
317
331
  /* @__PURE__ */ h(y, { children: [/* @__PURE__ */ m("h1", {
318
332
  className: "text-2xl font-bold text-text-primary",
319
- children: /* @__PURE__ */ m(x, { children: E })
333
+ children: /* @__PURE__ */ m(se, { children: S })
320
334
  }), /* @__PURE__ */ m("p", {
321
335
  className: "mt-1 text-sm text-text-secondary",
322
- children: oe
336
+ children: de
323
337
  })] }),
324
338
  /* @__PURE__ */ h("section", { children: [
325
339
  /* @__PURE__ */ m("h2", {
326
340
  className: "text-lg font-semibold text-text-primary",
327
- children: O ? "Revenue" : "Operational Metrics"
341
+ children: w ? "Revenue" : "Operational Metrics"
328
342
  }),
329
- O ? /* @__PURE__ */ m("div", {
343
+ w ? /* @__PURE__ */ h("div", {
330
344
  className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
331
- children: Z.length > 0 ? Z.map((e) => /* @__PURE__ */ h(b, {
332
- treatment: "metric",
333
- className: "p-3",
334
- children: [/* @__PURE__ */ h("p", {
335
- className: "text-xs uppercase tracking-wide text-text-secondary",
336
- children: [
337
- "Revenue (",
338
- e.currency,
339
- ")"
340
- ]
341
- }), /* @__PURE__ */ m("p", {
342
- className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
343
- children: e.formatted
344
- })]
345
- }, e.currency)) : /* @__PURE__ */ h(b, {
346
- treatment: "metric",
347
- className: "p-3",
348
- children: [/* @__PURE__ */ m("p", {
349
- className: "text-xs uppercase tracking-wide text-text-secondary",
350
- children: "Revenue"
351
- }), /* @__PURE__ */ m("p", {
352
- className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
353
- children: q.loading ? "…" : "No revenue yet"
354
- })]
355
- })
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
+ ]
356
402
  }) : null,
357
403
  /* @__PURE__ */ m("div", {
358
404
  className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
359
- children: se.map((e) => /* @__PURE__ */ h(b, {
405
+ children: pe.map((e) => /* @__PURE__ */ h(b, {
360
406
  treatment: "metric",
361
407
  className: "p-3",
362
408
  children: [/* @__PURE__ */ m("p", {
@@ -367,10 +413,141 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
367
413
  children: e.value
368
414
  })]
369
415
  }, e.label))
370
- })
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
+ })]
546
+ })]
547
+ }) : null
371
548
  ] }),
372
- ce.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e)),
373
- $.length > 0 ? /* @__PURE__ */ m(w, {
549
+ he.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e)),
550
+ $.length > 0 ? /* @__PURE__ */ m(ue, {
374
551
  collapsedHeight: 160,
375
552
  label: "Show all sections",
376
553
  children: /* @__PURE__ */ m("div", {
@@ -378,7 +555,7 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
378
555
  children: $.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e))
379
556
  })
380
557
  }) : null,
381
- /* @__PURE__ */ m(S, {
558
+ /* @__PURE__ */ m(ce, {
382
559
  storageKey: "eventfullymanaged-operations-hub",
383
560
  title: "Where to go from here",
384
561
  steps: [
@@ -387,27 +564,27 @@ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
387
564
  label: "Back to the dashboard",
388
565
  description: "See the big picture across every part of your events.",
389
566
  icon: /* @__PURE__ */ m(g, { className: "h-4 w-4" }),
390
- onClick: () => k("/")
567
+ onClick: () => T("/")
391
568
  },
392
569
  {
393
570
  id: "automate",
394
571
  label: "Automate routine work",
395
572
  description: "Set up workflow templates and rules to save time.",
396
573
  icon: /* @__PURE__ */ m(v, { className: "h-4 w-4" }),
397
- onClick: () => k("/workflows")
574
+ onClick: () => T("/workflows")
398
575
  },
399
576
  {
400
577
  id: "communicate",
401
578
  label: "Reach your audience",
402
579
  description: "Send announcements and run campaigns.",
403
580
  icon: /* @__PURE__ */ m(_, { className: "h-4 w-4" }),
404
- onClick: () => k("/communication")
581
+ onClick: () => T("/communication")
405
582
  }
406
583
  ]
407
584
  })
408
585
  ]
409
586
  });
410
587
  }
411
- export { E as default };
588
+ export { S as default };
412
589
 
413
590
  //# sourceMappingURL=OperationsHubPage.js.map