@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.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.
Files changed (86) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  4. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  5. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  6. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  7. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  8. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  9. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  10. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  11. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  12. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  13. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  14. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  15. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +253 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +260 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  23. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  24. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  25. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  26. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  27. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  28. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  29. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  30. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  31. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  33. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  35. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  36. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  37. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
  38. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  39. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  40. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  41. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  42. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  44. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  46. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  48. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  50. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  52. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  54. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  56. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  58. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  59. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  60. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  62. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  63. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  64. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  65. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  66. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  67. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  68. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  69. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  70. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  71. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  72. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  73. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  74. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  75. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  76. package/dist/generated/wspace-operations.d.ts +383 -0
  77. package/dist/generated/wspace-operations.js +177 -11
  78. package/dist/generated/wspace-operations.js.map +1 -1
  79. package/dist/generated/wspace-types.d.ts +29809 -1503
  80. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  81. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  82. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  83. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  84. package/dist/utils/pageContext.js +5 -0
  85. package/dist/utils/pageContext.js.map +1 -1
  86. package/package.json +1 -1
@@ -8,18 +8,18 @@ import { describeError as v, mutationSucceeded as y } from "../../lib/mutationRe
8
8
  import { notify as b } from "../../lib/toast.js";
9
9
  import { useMemo as x, useState as S } from "react";
10
10
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
11
- import { Badge as E, Megaphone as D, QrCode as O, Tag as k, TicketPlus as A, UserPlus as j, Users as M } from "lucide-react";
12
- import { Badge as N, Button as P, EmphasisPanel as F, GlassCard as I, GradientText as L, IllustratedEmptyState as R, NextSteps as z, PagePurpose as B, ResponsiveDialog as V, ResponsiveDialogContent as H, ResponsiveDialogDescription as U, ResponsiveDialogFooter as W, ResponsiveDialogHeader as G, ResponsiveDialogTitle as K, ResponsiveTable as q } from "@burdenoff/fe-libs/ui";
11
+ import { Badge as E, Button as D, EmphasisPanel as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, NextSteps as M, PagePurpose as N, ResponsiveDialog as P, ResponsiveDialogContent as F, ResponsiveDialogDescription as I, ResponsiveDialogFooter as L, ResponsiveDialogHeader as R, ResponsiveDialogTitle as z, ResponsiveTable as B } from "@burdenoff/fe-libs/ui";
12
+ import { Badge as V, Megaphone as H, QrCode as U, Tag as W, TicketPlus as G, UserPlus as K, Users as q } from "lucide-react";
13
13
  // src/eventfullymanaged/pages/modules/RegistrationPage.tsx
14
14
  function J({ registrationId: e, label: t, onOpenChange: n }) {
15
15
  let { data: r, loading: a, error: o } = i(e), s = r?.checkInToken;
16
- return /* @__PURE__ */ w(V, {
16
+ return /* @__PURE__ */ w(P, {
17
17
  open: !0,
18
18
  onOpenChange: n,
19
- children: /* @__PURE__ */ T(H, {
19
+ children: /* @__PURE__ */ T(F, {
20
20
  className: "max-w-sm",
21
21
  children: [
22
- /* @__PURE__ */ T(G, { children: [/* @__PURE__ */ w(K, { children: "Check-in QR" }), /* @__PURE__ */ T(U, { children: [t, " scans this code at any check-in station to check in — it works even if the station has no connection at the moment."] })] }),
22
+ /* @__PURE__ */ T(R, { children: [/* @__PURE__ */ w(z, { children: "Check-in QR" }), /* @__PURE__ */ T(I, { children: [t, " scans this code at any check-in station to check in — it works even if the station has no connection at the moment."] })] }),
23
23
  /* @__PURE__ */ w("div", {
24
24
  className: "flex flex-col items-center gap-3 py-2",
25
25
  children: a ? /* @__PURE__ */ w("p", {
@@ -37,7 +37,7 @@ function J({ registrationId: e, label: t, onOpenChange: n }) {
37
37
  children: s.token
38
38
  })] })
39
39
  }),
40
- /* @__PURE__ */ w(W, { children: /* @__PURE__ */ w(P, {
40
+ /* @__PURE__ */ w(L, { children: /* @__PURE__ */ w(D, {
41
41
  type: "button",
42
42
  variant: "outline",
43
43
  onClick: () => n(!1),
@@ -91,7 +91,7 @@ function Z({ used: e, max: t }) {
91
91
  });
92
92
  }
93
93
  function Q({ icon: e, title: t, count: n, loading: r, action: i, children: a }) {
94
- return /* @__PURE__ */ T(I, {
94
+ return /* @__PURE__ */ T(k, {
95
95
  treatment: "plain",
96
96
  className: "border-border-seam p-5",
97
97
  children: [/* @__PURE__ */ T("div", {
@@ -123,8 +123,8 @@ function $() {
123
123
  let i = m({ pageSize: 10 }), { data: a, loading: o } = l({
124
124
  limit: i.limit,
125
125
  offset: i.offset
126
- }), [c] = d(), [h] = s(), [g, C] = S(null), D = e(), [k, j] = S(null), M = async (e, r) => {
127
- j(e);
126
+ }), [c] = d(), [h] = s(), [g, C] = S(null), D = e(), [O, k] = S(null), A = async (e, r) => {
127
+ k(e);
128
128
  try {
129
129
  let { data: i, error: a } = await D.query({
130
130
  query: t,
@@ -140,23 +140,23 @@ function $() {
140
140
  } catch (e) {
141
141
  b.error("Could not generate badge", v(e));
142
142
  } finally {
143
- j(null);
143
+ k(null);
144
144
  }
145
- }, { data: P } = r({
145
+ }, { data: M } = r({
146
146
  limit: 200,
147
147
  offset: 0
148
- }), { data: F } = u({
148
+ }), { data: N } = u({
149
149
  limit: 200,
150
150
  offset: 0
151
- }), I = x(() => {
151
+ }), P = x(() => {
152
152
  let e = /* @__PURE__ */ new Map();
153
- for (let t of P?.attendees.items ?? []) t.id && t.fullName && e.set(t.id, t.fullName);
153
+ for (let t of M?.attendees.items ?? []) t.id && t.fullName && e.set(t.id, t.fullName);
154
154
  return e;
155
- }, [P]), L = x(() => {
155
+ }, [M]), F = x(() => {
156
156
  let e = /* @__PURE__ */ new Map();
157
- for (let t of F?.ticketTypes.items ?? []) t.id && t.name && e.set(t.id, t.name);
157
+ for (let t of N?.ticketTypes.items ?? []) t.id && t.name && e.set(t.id, t.name);
158
158
  return e;
159
- }, [F]), z = (e) => e ? I.get(e) ?? `Attendee ${e.slice(0, 8)}…` : null, B = x(() => a?.registrations.items ?? [], [a]), V = a?.registrations.total ?? 0, H = async (e, t) => {
159
+ }, [N]), I = (e) => e ? P.get(e) ?? `Attendee ${e.slice(0, 8)}…` : null, L = x(() => a?.registrations.items ?? [], [a]), R = a?.registrations.total ?? 0, z = async (e, t) => {
160
160
  let n = await c({ variables: {
161
161
  id: e.id,
162
162
  input: {
@@ -170,19 +170,19 @@ function $() {
170
170
  }
171
171
  } });
172
172
  y(n, n.data?.updateRegistration?.id, "Could not update registration") && b.success("Registration updated", `Status set to ${t}`);
173
- }, U = async (e, t) => {
173
+ }, H = async (e, t) => {
174
174
  let n = await h({ variables: { id: e.id } });
175
175
  if (n.error) throw b.error("Could not delete registration", n.error.message), n.error;
176
176
  if (!n.data?.deleteRegistration) throw b.error("Could not delete registration", "The server did not confirm the change."), Error("delete-unconfirmed");
177
177
  b.success("Registration deleted", t);
178
- }, W = (e) => z(e.attendeeId) ?? `Registration ${e.id}`;
178
+ }, W = (e) => I(e.attendeeId) ?? `Registration ${e.id}`;
179
179
  return /* @__PURE__ */ T(Q, {
180
- icon: /* @__PURE__ */ w(A, { className: "h-4 w-4" }),
180
+ icon: /* @__PURE__ */ w(G, { className: "h-4 w-4" }),
181
181
  title: "Registrations",
182
- count: V,
182
+ count: R,
183
183
  loading: o,
184
184
  children: [
185
- /* @__PURE__ */ w(q, {
185
+ /* @__PURE__ */ w(B, {
186
186
  columns: [
187
187
  {
188
188
  key: "name",
@@ -199,7 +199,7 @@ function $() {
199
199
  mobileLabel: "Ticket",
200
200
  cell: (e) => /* @__PURE__ */ w("span", {
201
201
  className: "text-text-secondary",
202
- children: e.ticketTypeId ? L.get(e.ticketTypeId) ?? "—" : "—"
202
+ children: e.ticketTypeId ? F.get(e.ticketTypeId) ?? "—" : "—"
203
203
  })
204
204
  },
205
205
  {
@@ -224,15 +224,15 @@ function $() {
224
224
  key: "status",
225
225
  header: "Status",
226
226
  priority: "primary",
227
- cell: (e) => /* @__PURE__ */ w(N, {
227
+ cell: (e) => /* @__PURE__ */ w(E, {
228
228
  variant: X(e.status),
229
229
  children: e.status ?? "UNKNOWN"
230
230
  })
231
231
  }
232
232
  ],
233
- data: B,
233
+ data: L,
234
234
  rowKey: (e) => e.id,
235
- emptyState: o ? null : /* @__PURE__ */ w(R, {
235
+ emptyState: o ? null : /* @__PURE__ */ w(j, {
236
236
  illustration: "empty-data",
237
237
  title: "No registrations yet.",
238
238
  description: "Register your first attendee to start tracking sign-ups."
@@ -241,21 +241,21 @@ function $() {
241
241
  let t = W(e), n = Y.filter((t) => t !== (e.status ?? "").toUpperCase()).map((t, n) => ({
242
242
  key: t,
243
243
  label: `Set ${t.replace("_", " ").toLowerCase()}`,
244
- onSelect: () => void H(e, t),
244
+ onSelect: () => void z(e, t),
245
245
  separatorBefore: n === 0
246
246
  })), r = [
247
247
  {
248
248
  key: "view-qr",
249
249
  label: "View check-in QR",
250
- icon: O,
250
+ icon: U,
251
251
  onSelect: () => C(e.id)
252
252
  },
253
253
  {
254
254
  key: "download-badge",
255
- label: k === e.id ? "Generating badge…" : "Download badge",
256
- icon: E,
257
- disabled: k === e.id,
258
- onSelect: () => void M(e.id, t)
255
+ label: O === e.id ? "Generating badge…" : "Download badge",
256
+ icon: V,
257
+ disabled: O === e.id,
258
+ onSelect: () => void A(e.id, t)
259
259
  },
260
260
  ...n
261
261
  ];
@@ -264,22 +264,22 @@ function $() {
264
264
  entityName: t,
265
265
  deleteLabel: "Delete registration",
266
266
  extraItems: r,
267
- onDelete: () => U(e, t)
267
+ onDelete: () => H(e, t)
268
268
  });
269
269
  }
270
270
  }),
271
271
  /* @__PURE__ */ w(p, {
272
272
  offset: i.offset,
273
273
  limit: i.limit,
274
- loadedCount: B.length,
275
- total: V,
274
+ loadedCount: L.length,
275
+ total: R,
276
276
  onPrev: i.prevPage,
277
277
  onNext: i.nextPage,
278
278
  itemLabel: "registrations",
279
279
  loading: o
280
280
  }),
281
281
  g ? (() => {
282
- let e = B.find((e) => e.id === g), t = e ? W(e) : `Registration ${g}`;
282
+ let e = L.find((e) => e.id === g), t = e ? W(e) : `Registration ${g}`;
283
283
  return /* @__PURE__ */ w(J, {
284
284
  registrationId: g,
285
285
  label: t,
@@ -302,18 +302,18 @@ function ee() {
302
302
  b.success("Attendee deleted", e.fullName);
303
303
  };
304
304
  return /* @__PURE__ */ T(Q, {
305
- icon: /* @__PURE__ */ w(M, { className: "h-4 w-4" }),
305
+ icon: /* @__PURE__ */ w(q, { className: "h-4 w-4" }),
306
306
  title: "Attendees",
307
307
  count: c,
308
308
  loading: i,
309
- action: /* @__PURE__ */ T(P, {
309
+ action: /* @__PURE__ */ T(D, {
310
310
  type: "button",
311
311
  size: "sm",
312
312
  variant: "outline",
313
313
  onClick: () => e("/registration/attendees/create"),
314
- children: [/* @__PURE__ */ w(j, { className: "h-4 w-4" }), "Add attendee"]
314
+ children: [/* @__PURE__ */ w(K, { className: "h-4 w-4" }), "Add attendee"]
315
315
  }),
316
- children: [/* @__PURE__ */ w(q, {
316
+ children: [/* @__PURE__ */ w(B, {
317
317
  columns: [
318
318
  {
319
319
  key: "name",
@@ -344,7 +344,7 @@ function ee() {
344
344
  ],
345
345
  data: s,
346
346
  rowKey: (e) => e.id,
347
- emptyState: i ? null : /* @__PURE__ */ w(R, {
347
+ emptyState: i ? null : /* @__PURE__ */ w(j, {
348
348
  illustration: "empty-people",
349
349
  title: "No attendees yet.",
350
350
  description: "Add attendees or register one to build your guest list."
@@ -379,18 +379,18 @@ function te() {
379
379
  b.success("Promo code deleted", e.code);
380
380
  };
381
381
  return /* @__PURE__ */ T(Q, {
382
- icon: /* @__PURE__ */ w(k, { className: "h-4 w-4" }),
382
+ icon: /* @__PURE__ */ w(W, { className: "h-4 w-4" }),
383
383
  title: "Promo Codes",
384
384
  count: s,
385
385
  loading: r,
386
- action: /* @__PURE__ */ T(P, {
386
+ action: /* @__PURE__ */ T(D, {
387
387
  type: "button",
388
388
  size: "sm",
389
389
  variant: "outline",
390
390
  onClick: () => e("/registration/promo-codes/create"),
391
- children: [/* @__PURE__ */ w(A, { className: "h-4 w-4" }), "New promo code"]
391
+ children: [/* @__PURE__ */ w(G, { className: "h-4 w-4" }), "New promo code"]
392
392
  }),
393
- children: [/* @__PURE__ */ w(q, {
393
+ children: [/* @__PURE__ */ w(B, {
394
394
  columns: [
395
395
  {
396
396
  key: "code",
@@ -407,7 +407,7 @@ function te() {
407
407
  priority: "primary",
408
408
  cell: (e) => /* @__PURE__ */ T("span", {
409
409
  className: "flex items-center gap-2",
410
- children: [/* @__PURE__ */ w(N, {
410
+ children: [/* @__PURE__ */ w(E, {
411
411
  variant: "secondary",
412
412
  children: e.discountType === "PERCENT" ? "PERCENT" : "FIXED"
413
413
  }), /* @__PURE__ */ w("span", {
@@ -436,7 +436,7 @@ function te() {
436
436
  key: "status",
437
437
  header: "Status",
438
438
  priority: "secondary",
439
- cell: (e) => /* @__PURE__ */ w(N, {
439
+ cell: (e) => /* @__PURE__ */ w(E, {
440
440
  variant: e.isActive ? "default" : "secondary",
441
441
  children: e.isActive ? "Active" : "Inactive"
442
442
  })
@@ -444,7 +444,7 @@ function te() {
444
444
  ],
445
445
  data: a,
446
446
  rowKey: (e) => e.id,
447
- emptyState: r ? null : /* @__PURE__ */ w(R, {
447
+ emptyState: r ? null : /* @__PURE__ */ w(j, {
448
448
  illustration: "empty-data",
449
449
  title: "No promo codes yet.",
450
450
  description: "Create a code to offer discounts and drive registrations."
@@ -472,34 +472,34 @@ function ne() {
472
472
  return /* @__PURE__ */ T("div", {
473
473
  className: "space-y-6 p-6",
474
474
  children: [
475
- /* @__PURE__ */ w(B, { children: "This is where you see who is coming. Registrations are the paid or confirmed sign-ups, attendees are the people behind them, and promo codes let you offer discounts. Register attendees, edit their details, change a registration's status, and manage discount codes — all backed by live GraphQL APIs." }),
476
- /* @__PURE__ */ w(F, { children: /* @__PURE__ */ T("div", {
475
+ /* @__PURE__ */ w(N, { children: "This is where you see who is coming. Registrations are the paid or confirmed sign-ups, attendees are the people behind them, and promo codes let you offer discounts. Register attendees, edit their details, change a registration's status, and manage discount codes — all backed by live GraphQL APIs." }),
476
+ /* @__PURE__ */ w(O, { children: /* @__PURE__ */ T("div", {
477
477
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
478
478
  children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
479
479
  className: "text-2xl font-bold text-text-primary",
480
- children: /* @__PURE__ */ w(L, { children: "Registration" })
480
+ children: /* @__PURE__ */ w(A, { children: "Registration" })
481
481
  }), /* @__PURE__ */ w("p", {
482
482
  className: "mt-1 text-sm text-text-secondary",
483
483
  children: "Track registrations, attendees, and promo codes with backend persistence."
484
484
  })] }), /* @__PURE__ */ T("div", {
485
485
  className: "flex flex-wrap gap-2",
486
486
  children: [
487
- /* @__PURE__ */ T(P, {
487
+ /* @__PURE__ */ T(D, {
488
488
  type: "button",
489
489
  onClick: () => e("/registration/register"),
490
- children: [/* @__PURE__ */ w(A, { className: "h-4 w-4" }), "Register attendee"]
490
+ children: [/* @__PURE__ */ w(G, { className: "h-4 w-4" }), "Register attendee"]
491
491
  }),
492
- /* @__PURE__ */ T(P, {
492
+ /* @__PURE__ */ T(D, {
493
493
  type: "button",
494
494
  variant: "outline",
495
495
  onClick: () => e("/registration/attendees/create"),
496
- children: [/* @__PURE__ */ w(j, { className: "h-4 w-4" }), "Add attendee"]
496
+ children: [/* @__PURE__ */ w(K, { className: "h-4 w-4" }), "Add attendee"]
497
497
  }),
498
- /* @__PURE__ */ T(P, {
498
+ /* @__PURE__ */ T(D, {
499
499
  type: "button",
500
500
  variant: "outline",
501
501
  onClick: () => e("/registration/promo-codes/create"),
502
- children: [/* @__PURE__ */ w(k, { className: "h-4 w-4" }), "New promo code"]
502
+ children: [/* @__PURE__ */ w(W, { className: "h-4 w-4" }), "New promo code"]
503
503
  })
504
504
  ]
505
505
  })]
@@ -507,7 +507,7 @@ function ne() {
507
507
  /* @__PURE__ */ w($, {}),
508
508
  /* @__PURE__ */ w(ee, {}),
509
509
  /* @__PURE__ */ w(te, {}),
510
- /* @__PURE__ */ w(z, {
510
+ /* @__PURE__ */ w(M, {
511
511
  storageKey: "eventfullymanaged-registration",
512
512
  title: "Grow your registrations",
513
513
  steps: [
@@ -515,21 +515,21 @@ function ne() {
515
515
  id: "view-networking",
516
516
  label: "Set up attendee networking",
517
517
  description: "Turn registered attendees into connections with matchmaking.",
518
- icon: /* @__PURE__ */ w(M, { className: "h-4 w-4" }),
518
+ icon: /* @__PURE__ */ w(q, { className: "h-4 w-4" }),
519
519
  onClick: () => e("/networking")
520
520
  },
521
521
  {
522
522
  id: "promote",
523
523
  label: "Promote with a campaign",
524
524
  description: "Send reminders and offers to drive more sign-ups.",
525
- icon: /* @__PURE__ */ w(D, { className: "h-4 w-4" }),
525
+ icon: /* @__PURE__ */ w(H, { className: "h-4 w-4" }),
526
526
  onClick: () => e("/communication")
527
527
  },
528
528
  {
529
529
  id: "analyze",
530
530
  label: "Snapshot your numbers",
531
531
  description: "Capture an analytics snapshot to track registration trends.",
532
- icon: /* @__PURE__ */ w(k, { className: "h-4 w-4" }),
532
+ icon: /* @__PURE__ */ w(W, { className: "h-4 w-4" }),
533
533
  onClick: () => e("/analytics")
534
534
  }
535
535
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"RegistrationPage.js","names":["_Fragment","Badge","BadgeIcon","Badge$1","CheckInQrDialog","useCheckInTokenQuery","registrationId","token","data","ResponsiveDialog","ResponsiveDialogContent","ResponsiveDialogHeader","ResponsiveDialogTitle","ResponsiveDialogDescription","label","loading","error","Fragment","ResponsiveDialogFooter","Button","onOpenChange","REGISTRATION_STATUSES","statusVariant","status","UsageMeter","max","used","pct","SectionCard","GlassCard","icon","title","count","action","RegistrationsSection","pagination","usePagination","useRegistrationsQuery","updateRegistration","useUpdateRegistrationMutation","deleteRegistration","useDeleteRegistrationMutation","qrRegistrationId","setQrRegistrationId","useState","apollo","useApolloClient","downloadingBadgeId","setDownloadingBadgeId","onDownloadBadge","BADGE_PDF_QUERY","downloadBase64Pdf","notify","err","describeError","attendeesData","useAttendeesQuery","ticketsData","useTicketTypesQuery","nameById","useMemo","map","attendee","ticketById","ticket","attendeeLabel","attendeeId","items","total","changeStatus","response","row","mutationSucceeded","onDelete","rowLabel","TicketPlus","ResponsiveTable","formatMoney","IllustratedEmptyState","statusItems","candidate","index","extraItems","QrCode","Badge","ActionMenu","Pagination","qrRow","r","qrLabel","open","AttendeesSection","useEventfullyManaged","deleteAttendee","useDeleteAttendeeMutation","Users","navigate","UserPlus","PromoCodesSection","usePromoCodesQuery","deletePromoCode","useDeletePromoCodeMutation","Tag","describeValidity","RegistrationPage","PagePurpose","EmphasisPanel","GradientText","NextSteps","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/RegistrationPage.tsx"],"sourcesContent":["import { useApolloClient } from '@apollo/client/react';\nimport { Badge as BadgeIcon, Megaphone, QrCode, Tag, TicketPlus, UserPlus, Users } from 'lucide-react';\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n ResponsiveTable,\n type ResponsiveTableColumn,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState } from 'react';\n\nimport {\n BADGE_PDF_QUERY,\n downloadBase64Pdf,\n useAttendeesQuery,\n useCheckInTokenQuery,\n useDeleteAttendeeMutation,\n useDeletePromoCodeMutation,\n useDeleteRegistrationMutation,\n usePromoCodesQuery,\n useRegistrationsQuery,\n useTicketTypesQuery,\n useUpdateRegistrationMutation,\n type AttendeeGql,\n type PromoCodeGql,\n type RegistrationGql,\n} from '../../api/eventApi';\nimport { ActionMenu, type ActionMenuItem } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeValidity, formatMoney } from '../../lib/format';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\n/**\n * BOFF-4330 — displays a registration's signed QR check-in token. Fetched on\n * demand (never persisted client-side) so it always reflects the\n * registration's current signature; a kiosk scans this exact image/token via\n * `eventfullyManagedScanCheckIn`.\n */\nfunction CheckInQrDialog({\n registrationId,\n label,\n onOpenChange,\n}: {\n registrationId: string;\n label: string;\n onOpenChange: (open: boolean) => void;\n}) {\n const { data, loading, error } = useCheckInTokenQuery(registrationId);\n const token = data?.checkInToken;\n\n return (\n <ResponsiveDialog open onOpenChange={onOpenChange}>\n <ResponsiveDialogContent className=\"max-w-sm\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>Check-in QR</ResponsiveDialogTitle>\n <ResponsiveDialogDescription>\n {label} scans this code at any check-in station to check in — it works even if the station has no connection\n at the moment.\n </ResponsiveDialogDescription>\n </ResponsiveDialogHeader>\n\n <div className=\"flex flex-col items-center gap-3 py-2\">\n {loading ? (\n <p className=\"text-sm text-text-secondary\">Generating…</p>\n ) : error || !token ? (\n <p className=\"text-sm text-status-danger-text\">Could not generate a check-in QR for this registration.</p>\n ) : (\n <>\n <img\n src={token.qrDataUrl}\n alt={`Check-in QR code for ${label}`}\n className=\"h-56 w-56 rounded-card border border-border-seam bg-bg-surface p-2\"\n />\n <code className=\"max-w-full break-all rounded bg-bg-sunken px-2 py-1 text-xs text-text-secondary\">\n {token.token}\n </code>\n </>\n )}\n </div>\n\n <ResponsiveDialogFooter>\n <Button type=\"button\" variant=\"outline\" onClick={() => onOpenChange(false)}>\n Close\n </Button>\n </ResponsiveDialogFooter>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n}\n\nconst REGISTRATION_STATUSES = ['PENDING', 'CONFIRMED', 'WAITLISTED', 'CANCELLED', 'CHECKED_IN'] as const;\n\nfunction statusVariant(status?: string | null): 'default' | 'secondary' | 'destructive' | 'outline' {\n switch ((status ?? '').toUpperCase()) {\n case 'CONFIRMED':\n case 'CHECKED_IN':\n return 'default';\n case 'CANCELLED':\n return 'destructive';\n case 'WAITLISTED':\n return 'outline';\n default:\n return 'secondary';\n }\n}\n\n/** Compact used/max meter for promo redemptions — semantic-token only. */\nfunction UsageMeter({ used, max }: { used: number; max?: number | null }) {\n if (max == null || max <= 0) {\n return <span className=\"text-xs text-text-secondary\">{used} used</span>;\n }\n const pct = Math.min(100, Math.round((used / max) * 100));\n const nearLimit = pct >= 90;\n return (\n <div className=\"min-w-[7rem] space-y-1\">\n <div className=\"flex items-center justify-between text-xs tabular-nums text-text-secondary\">\n <span>\n {used} / {max}\n </span>\n <span className=\"text-text-muted\">{pct}%</span>\n </div>\n <div className=\"h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full ${nearLimit ? 'bg-status-warning' : 'bg-action-primary-bg'}`}\n style={{ width: `${pct}%` }}\n />\n </div>\n </div>\n );\n}\n\nfunction SectionCard({\n icon,\n title,\n count,\n loading,\n action,\n children,\n}: {\n icon: React.ReactNode;\n title: string;\n count?: number;\n loading?: boolean;\n action?: React.ReactNode;\n children: React.ReactNode;\n}) {\n return (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <div className=\"flex items-center gap-3\">\n <span className=\"flex h-9 w-9 items-center justify-center rounded-input bg-accent-wash text-action-primary\">\n {icon}\n </span>\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {loading ? `Loading ${title.toLowerCase()}…` : title}\n {!loading && count != null ? (\n <span className=\"ml-2 text-sm font-normal text-text-secondary\">({count.toLocaleString()})</span>\n ) : null}\n </h2>\n </div>\n {action}\n </div>\n <div className=\"mt-4\">{children}</div>\n </GlassCard>\n );\n}\n\nfunction RegistrationsSection() {\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = useRegistrationsQuery({ limit: pagination.limit, offset: pagination.offset });\n const [updateRegistration] = useUpdateRegistrationMutation();\n const [deleteRegistration] = useDeleteRegistrationMutation();\n // BOFF-4330 — registration id currently showing its check-in QR, if any.\n const [qrRegistrationId, setQrRegistrationId] = useState<string | null>(null);\n // BOFF-4322 — on-demand badge PDF download. A one-off query (not a hook)\n // since it's a rarely-used, heavy payload — same pattern as TimeCampus's\n // invoice PDF download.\n const apollo = useApolloClient();\n const [downloadingBadgeId, setDownloadingBadgeId] = useState<string | null>(null);\n const onDownloadBadge = async (registrationId: string, label: string) => {\n setDownloadingBadgeId(registrationId);\n try {\n const { data, error } = await apollo.query<{ badgePdf: string }>({\n query: BADGE_PDF_QUERY,\n variables: { registrationId },\n fetchPolicy: 'network-only',\n errorPolicy: 'all',\n });\n if (error || !data?.badgePdf) {\n notify.error('Could not generate badge', error?.message ?? 'Please try again.');\n return;\n }\n downloadBase64Pdf(data.badgePdf, `${label.replace(/[^a-z0-9]+/gi, '-')}-badge.pdf`);\n notify.success('Badge ready', `${label}'s badge downloaded.`);\n } catch (err) {\n notify.error('Could not generate badge', describeError(err));\n } finally {\n setDownloadingBadgeId(null);\n }\n };\n\n // Resolve attendee display names and ticket-type names (the registrations query\n // returns only ids). Pull a page of each to build id -> label lookups so rows\n // read \"Ada Lovelace\" / \"VIP\" instead of raw UUIDs.\n const { data: attendeesData } = useAttendeesQuery({ limit: 200, offset: 0 });\n const { data: ticketsData } = useTicketTypesQuery({ limit: 200, offset: 0 });\n const nameById = useMemo(() => {\n const map = new Map<string, string>();\n for (const attendee of attendeesData?.attendees.items ?? []) {\n if (attendee.id && attendee.fullName) map.set(attendee.id, attendee.fullName);\n }\n return map;\n }, [attendeesData]);\n const ticketById = useMemo(() => {\n const map = new Map<string, string>();\n for (const ticket of ticketsData?.ticketTypes.items ?? []) {\n if (ticket.id && ticket.name) map.set(ticket.id, ticket.name);\n }\n return map;\n }, [ticketsData]);\n const attendeeLabel = (attendeeId?: string | null): string | null => {\n if (!attendeeId) return null;\n return nameById.get(attendeeId) ?? `Attendee ${attendeeId.slice(0, 8)}…`;\n };\n\n const items = useMemo<RegistrationGql[]>(() => data?.registrations.items ?? [], [data]);\n const total = data?.registrations.total ?? 0;\n\n const changeStatus = async (row: RegistrationGql, status: string) => {\n const response = await updateRegistration({\n variables: {\n id: row.id,\n input: {\n eventId: row.eventId,\n attendeeId: row.attendeeId ?? null,\n ticketTypeId: row.ticketTypeId ?? null,\n quantity: row.quantity,\n currency: row.currency,\n totalAmount: row.totalAmount ?? null,\n status,\n },\n },\n });\n if (!mutationSucceeded(response, response.data?.updateRegistration?.id, 'Could not update registration')) {\n return;\n }\n notify.success('Registration updated', `Status set to ${status}`);\n };\n\n const onDelete = async (row: RegistrationGql, label: string) => {\n const response = await deleteRegistration({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete registration', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteRegistration) {\n notify.error('Could not delete registration', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Registration deleted', label);\n };\n\n const rowLabel = (row: RegistrationGql) => attendeeLabel(row.attendeeId) ?? `Registration ${row.id}`;\n\n const columns: ResponsiveTableColumn<RegistrationGql>[] = [\n {\n key: 'name',\n header: 'Name',\n priority: 'primary',\n cell: (row) => <span className=\"font-medium text-text-primary\">{rowLabel(row)}</span>,\n },\n {\n key: 'ticket',\n header: 'Ticket Type',\n mobileLabel: 'Ticket',\n cell: (row) => (\n <span className=\"text-text-secondary\">\n {row.ticketTypeId ? (ticketById.get(row.ticketTypeId) ?? '—') : '—'}\n </span>\n ),\n },\n {\n key: 'quantity',\n header: 'Qty',\n mobileLabel: 'Quantity',\n priority: 'secondary',\n cell: (row) => <span className=\"tabular-nums text-text-secondary\">{row.quantity}</span>,\n },\n {\n key: 'amount',\n header: 'Amount',\n cell: (row) => (\n <span className=\"tabular-nums text-text-primary\">\n {row.totalAmount ? formatMoney(Number(row.totalAmount), row.currency) : '—'}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n priority: 'primary',\n cell: (row) => <Badge variant={statusVariant(row.status)}>{row.status ?? 'UNKNOWN'}</Badge>,\n },\n ];\n\n return (\n <SectionCard icon={<TicketPlus className=\"h-4 w-4\" />} title=\"Registrations\" count={total} loading={loading}>\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No registrations yet.\"\n description=\"Register your first attendee to start tracking sign-ups.\"\n />\n )\n }\n rowActions={(row) => {\n const label = rowLabel(row);\n const statusItems: ActionMenuItem[] = REGISTRATION_STATUSES.filter(\n (candidate) => candidate !== (row.status ?? '').toUpperCase()\n ).map((candidate, index) => ({\n key: candidate,\n label: `Set ${candidate.replace('_', ' ').toLowerCase()}`,\n onSelect: () => void changeStatus(row, candidate),\n separatorBefore: index === 0,\n }));\n const extraItems: ActionMenuItem[] = [\n {\n key: 'view-qr',\n label: 'View check-in QR',\n icon: QrCode,\n onSelect: () => setQrRegistrationId(row.id),\n },\n {\n key: 'download-badge',\n label: downloadingBadgeId === row.id ? 'Generating badge…' : 'Download badge',\n icon: BadgeIcon,\n disabled: downloadingBadgeId === row.id,\n onSelect: () => void onDownloadBadge(row.id, label),\n },\n ...statusItems,\n ];\n return (\n <ActionMenu\n ariaLabel=\"Registration actions\"\n entityName={label}\n deleteLabel=\"Delete registration\"\n extraItems={extraItems}\n onDelete={() => onDelete(row, label)}\n />\n );\n }}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"registrations\"\n loading={loading}\n />\n {qrRegistrationId\n ? (() => {\n const qrRow = items.find((r) => r.id === qrRegistrationId);\n const qrLabel = qrRow ? rowLabel(qrRow) : `Registration ${qrRegistrationId}`;\n return (\n <CheckInQrDialog\n registrationId={qrRegistrationId}\n label={qrLabel}\n onOpenChange={(open) => {\n if (!open) setQrRegistrationId(null);\n }}\n />\n );\n })()\n : null}\n </SectionCard>\n );\n}\n\nfunction AttendeesSection() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = useAttendeesQuery({ limit: pagination.limit, offset: pagination.offset });\n const [deleteAttendee] = useDeleteAttendeeMutation();\n\n const items = useMemo<AttendeeGql[]>(() => data?.attendees.items ?? [], [data]);\n const total = data?.attendees.total ?? 0;\n\n const onDelete = async (row: AttendeeGql) => {\n const response = await deleteAttendee({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete attendee', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteAttendee) {\n notify.error('Could not delete attendee', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Attendee deleted', row.fullName);\n };\n\n const columns: ResponsiveTableColumn<AttendeeGql>[] = [\n {\n key: 'name',\n header: 'Name',\n priority: 'primary',\n cell: (row) => <span className=\"font-medium text-text-primary\">{row.fullName}</span>,\n },\n {\n key: 'email',\n header: 'Email',\n priority: 'primary',\n cell: (row) => <span className=\"text-text-secondary\">{row.email}</span>,\n },\n {\n key: 'company',\n header: 'Company',\n cell: (row) => (\n <span className=\"text-text-secondary\">{[row.company, row.role].filter(Boolean).join(' · ') || '—'}</span>\n ),\n },\n ];\n\n return (\n <SectionCard\n icon={<Users className=\"h-4 w-4\" />}\n title=\"Attendees\"\n count={total}\n loading={loading}\n action={\n <Button type=\"button\" size=\"sm\" variant=\"outline\" onClick={() => navigate('/registration/attendees/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Add attendee\n </Button>\n }\n >\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No attendees yet.\"\n description=\"Add attendees or register one to build your guest list.\"\n />\n )\n }\n rowActions={(row) => (\n <ActionMenu\n ariaLabel={`Actions for ${row.fullName}`}\n entityName={row.fullName}\n deleteLabel=\"Delete attendee\"\n onView={() => navigate(`/attendees/${row.id}/profile`)}\n onEdit={() => navigate(`/registration/attendees/${row.id}/edit`)}\n onDelete={() => onDelete(row)}\n />\n )}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"attendees\"\n loading={loading}\n />\n </SectionCard>\n );\n}\n\nfunction PromoCodesSection() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = usePromoCodesQuery({ limit: pagination.limit, offset: pagination.offset });\n const [deletePromoCode] = useDeletePromoCodeMutation();\n\n const items = useMemo<PromoCodeGql[]>(() => data?.promoCodes.items ?? [], [data]);\n const total = data?.promoCodes.total ?? 0;\n\n const onDelete = async (row: PromoCodeGql) => {\n const response = await deletePromoCode({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete promo code', response.error.message);\n throw response.error;\n }\n notify.success('Promo code deleted', row.code);\n };\n\n const columns: ResponsiveTableColumn<PromoCodeGql>[] = [\n {\n key: 'code',\n header: 'Code',\n priority: 'primary',\n cell: (row) => <span className=\"font-mono text-sm font-semibold text-text-primary\">{row.code}</span>,\n },\n {\n key: 'discount',\n header: 'Discount',\n priority: 'primary',\n cell: (row) => (\n <span className=\"flex items-center gap-2\">\n <Badge variant=\"secondary\">{row.discountType === 'PERCENT' ? 'PERCENT' : 'FIXED'}</Badge>\n <span className=\"text-sm text-text-secondary\">\n {row.discountType === 'PERCENT' ? `${row.discountValue}%` : row.discountValue}\n </span>\n </span>\n ),\n },\n {\n key: 'usage',\n header: 'Usage',\n cell: (row) => <UsageMeter used={row.usedCount} max={row.maxUses} />,\n },\n {\n key: 'validity',\n header: 'Validity',\n cell: (row) => (\n <span className=\"whitespace-nowrap text-sm text-text-secondary\">\n {describeValidity(row.startsAt ?? '', row.endsAt ?? '')}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n priority: 'secondary',\n cell: (row) => (\n <Badge variant={row.isActive ? 'default' : 'secondary'}>{row.isActive ? 'Active' : 'Inactive'}</Badge>\n ),\n },\n ];\n\n return (\n <SectionCard\n icon={<Tag className=\"h-4 w-4\" />}\n title=\"Promo Codes\"\n count={total}\n loading={loading}\n action={\n <Button type=\"button\" size=\"sm\" variant=\"outline\" onClick={() => navigate('/registration/promo-codes/create')}>\n <TicketPlus className=\"h-4 w-4\" />\n New promo code\n </Button>\n }\n >\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No promo codes yet.\"\n description=\"Create a code to offer discounts and drive registrations.\"\n />\n )\n }\n rowActions={(row) => (\n <ActionMenu\n ariaLabel={`Actions for ${row.code}`}\n entityName={row.code}\n onEdit={() => navigate(`/registration/promo-codes/${row.id}/edit`)}\n onDelete={() => onDelete(row)}\n />\n )}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"promo codes\"\n loading={loading}\n />\n </SectionCard>\n );\n}\n\nexport default function RegistrationPage() {\n const { navigate } = useEventfullyManaged();\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n This is where you see who is coming. Registrations are the paid or confirmed sign-ups, attendees are the people\n behind them, and promo codes let you offer discounts. Register attendees, edit their details, change a\n registration&apos;s status, and manage discount codes — all backed by live GraphQL APIs.\n </PagePurpose>\n\n <EmphasisPanel>\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Registration</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Track registrations, attendees, and promo codes with backend persistence.\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <Button type=\"button\" onClick={() => navigate('/registration/register')}>\n <TicketPlus className=\"h-4 w-4\" />\n Register attendee\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/registration/attendees/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Add attendee\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/registration/promo-codes/create')}>\n <Tag className=\"h-4 w-4\" />\n New promo code\n </Button>\n </div>\n </div>\n </EmphasisPanel>\n\n <RegistrationsSection />\n <AttendeesSection />\n <PromoCodesSection />\n\n <NextSteps\n storageKey=\"eventfullymanaged-registration\"\n title=\"Grow your registrations\"\n steps={[\n {\n id: 'view-networking',\n label: 'Set up attendee networking',\n description: 'Turn registered attendees into connections with matchmaking.',\n icon: <Users className=\"h-4 w-4\" />,\n onClick: () => navigate('/networking'),\n },\n {\n id: 'promote',\n label: 'Promote with a campaign',\n description: 'Send reminders and offers to drive more sign-ups.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n {\n id: 'analyze',\n label: 'Snapshot your numbers',\n description: 'Capture an analytics snapshot to track registration trends.',\n icon: <Tag className=\"h-4 w-4\" />,\n onClick: () => navigate('/analytics'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAmDA,SAASI,EAAgB,EACvB,mBACA,UACA,mBAKC;CACD,IAAM,EAAE,SAAM,YAAS,aAAUC,EAAqBC,CAAc,GAC9DC,IAAQC,GAAM;CAEpB,OACE,kBAACC,GAAD;EAAkB,MAAA;EAAmB;EACnC,UAAA,kBAACC,GAAD;GAAyB,WAAU;GAAnC,UAAA;IACE,kBAACC,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UAAuB,cAAkC,CAAA,GACzD,kBAACC,GAAD,EAAA,UAAA,CACGC,GAAM,sHAEoB,EAAA,CAAA,CACP,EAAA,CAAA;IAExB,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAAC,IACC,kBAAC,KAAD;MAAG,WAAU;MAA8B,UAAA;KAAc,CAAA,IACvDC,KAAS,CAACT,IACZ,kBAAC,KAAD;MAAG,WAAU;MAAkC,UAAA;KAA0D,CAAA,IAEzG,kBAAAP,GAAA,EAAA,UAAA,CACE,kBAAC,OAAD;MACE,KAAKO,EAAM;MACX,KAAK,wBAAwBO;MAC7B,WAAU;KACX,CAAA,GACD,kBAAC,QAAD;MAAM,WAAU;MACb,UAAAP,EAAM;KACH,CAAA,CACN,EAAA,CAAA;IAED,CAAA;IAEL,kBAACW,GAAD,EAAA,UACE,kBAACC,GAAD;KAAQ,MAAK;KAAS,SAAQ;KAAU,eAAeC,EAAa,EAAK;KAAG,UAAA;IAEpE,CAAA,EACc,CAAA;GACD;;CACT,CAAA;AAEtB;AAEA,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WAAU,UAAW,CAAA,GAAC,gBAErB;;KACL;IACF,CAAA,CAAA;GACQ,CAAA,EAAA,CAAA;GAEf,kBAACpE,GAAD,CAAuB,CAAA;GACvB,kBAACyD,IAAD,CAAmB,CAAA;GACnB,kBAACO,IAAD,CAAoB,CAAA;GAEpB,kBAACU,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACb,GAAD,EAAO,WAAU,UAAW,CAAA;MAClC,eAAeC,EAAS,aAAa;KACvC;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACa,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAeb,EAAS,gBAAgB;KAC1C;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACM,GAAD,EAAK,WAAU,UAAW,CAAA;MAChC,eAAeN,EAAS,YAAY;KACtC;IACF;GACD,CAAA;EACE;;AAET"}
1
+ {"version":3,"file":"RegistrationPage.js","names":["_Fragment","BadgeIcon","Badge$1","CheckInQrDialog","useCheckInTokenQuery","registrationId","token","data","ResponsiveDialog","ResponsiveDialogContent","ResponsiveDialogHeader","ResponsiveDialogTitle","ResponsiveDialogDescription","label","loading","error","Fragment","ResponsiveDialogFooter","Button","onOpenChange","REGISTRATION_STATUSES","statusVariant","status","UsageMeter","max","used","pct","SectionCard","GlassCard","icon","title","count","action","RegistrationsSection","pagination","usePagination","useRegistrationsQuery","updateRegistration","useUpdateRegistrationMutation","deleteRegistration","useDeleteRegistrationMutation","qrRegistrationId","setQrRegistrationId","useState","apollo","useApolloClient","downloadingBadgeId","setDownloadingBadgeId","onDownloadBadge","BADGE_PDF_QUERY","downloadBase64Pdf","notify","err","describeError","attendeesData","useAttendeesQuery","ticketsData","useTicketTypesQuery","nameById","useMemo","map","attendee","ticketById","ticket","attendeeLabel","attendeeId","items","total","changeStatus","response","row","mutationSucceeded","onDelete","rowLabel","TicketPlus","ResponsiveTable","formatMoney","Badge","IllustratedEmptyState","statusItems","candidate","index","extraItems","QrCode","ActionMenu","Pagination","qrRow","r","qrLabel","open","AttendeesSection","useEventfullyManaged","deleteAttendee","useDeleteAttendeeMutation","Users","navigate","UserPlus","PromoCodesSection","usePromoCodesQuery","deletePromoCode","useDeletePromoCodeMutation","Tag","describeValidity","RegistrationPage","PagePurpose","EmphasisPanel","GradientText","NextSteps","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/RegistrationPage.tsx"],"sourcesContent":["import { useApolloClient } from '@apollo/client/react';\nimport { Badge as BadgeIcon, Megaphone, QrCode, Tag, TicketPlus, UserPlus, Users } from 'lucide-react';\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n ResponsiveTable,\n type ResponsiveTableColumn,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState } from 'react';\n\nimport {\n BADGE_PDF_QUERY,\n downloadBase64Pdf,\n useAttendeesQuery,\n useCheckInTokenQuery,\n useDeleteAttendeeMutation,\n useDeletePromoCodeMutation,\n useDeleteRegistrationMutation,\n usePromoCodesQuery,\n useRegistrationsQuery,\n useTicketTypesQuery,\n useUpdateRegistrationMutation,\n type AttendeeGql,\n type PromoCodeGql,\n type RegistrationGql,\n} from '../../api/eventApi';\nimport { ActionMenu, type ActionMenuItem } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeValidity, formatMoney } from '../../lib/format';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\n/**\n * BOFF-4330 — displays a registration's signed QR check-in token. Fetched on\n * demand (never persisted client-side) so it always reflects the\n * registration's current signature; a kiosk scans this exact image/token via\n * `eventfullyManagedScanCheckIn`.\n */\nfunction CheckInQrDialog({\n registrationId,\n label,\n onOpenChange,\n}: {\n registrationId: string;\n label: string;\n onOpenChange: (open: boolean) => void;\n}) {\n const { data, loading, error } = useCheckInTokenQuery(registrationId);\n const token = data?.checkInToken;\n\n return (\n <ResponsiveDialog open onOpenChange={onOpenChange}>\n <ResponsiveDialogContent className=\"max-w-sm\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>Check-in QR</ResponsiveDialogTitle>\n <ResponsiveDialogDescription>\n {label} scans this code at any check-in station to check in — it works even if the station has no connection\n at the moment.\n </ResponsiveDialogDescription>\n </ResponsiveDialogHeader>\n\n <div className=\"flex flex-col items-center gap-3 py-2\">\n {loading ? (\n <p className=\"text-sm text-text-secondary\">Generating…</p>\n ) : error || !token ? (\n <p className=\"text-sm text-status-danger-text\">Could not generate a check-in QR for this registration.</p>\n ) : (\n <>\n <img\n src={token.qrDataUrl}\n alt={`Check-in QR code for ${label}`}\n className=\"h-56 w-56 rounded-card border border-border-seam bg-bg-surface p-2\"\n />\n <code className=\"max-w-full break-all rounded bg-bg-sunken px-2 py-1 text-xs text-text-secondary\">\n {token.token}\n </code>\n </>\n )}\n </div>\n\n <ResponsiveDialogFooter>\n <Button type=\"button\" variant=\"outline\" onClick={() => onOpenChange(false)}>\n Close\n </Button>\n </ResponsiveDialogFooter>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n}\n\nconst REGISTRATION_STATUSES = ['PENDING', 'CONFIRMED', 'WAITLISTED', 'CANCELLED', 'CHECKED_IN'] as const;\n\nfunction statusVariant(status?: string | null): 'default' | 'secondary' | 'destructive' | 'outline' {\n switch ((status ?? '').toUpperCase()) {\n case 'CONFIRMED':\n case 'CHECKED_IN':\n return 'default';\n case 'CANCELLED':\n return 'destructive';\n case 'WAITLISTED':\n return 'outline';\n default:\n return 'secondary';\n }\n}\n\n/** Compact used/max meter for promo redemptions — semantic-token only. */\nfunction UsageMeter({ used, max }: { used: number; max?: number | null }) {\n if (max == null || max <= 0) {\n return <span className=\"text-xs text-text-secondary\">{used} used</span>;\n }\n const pct = Math.min(100, Math.round((used / max) * 100));\n const nearLimit = pct >= 90;\n return (\n <div className=\"min-w-[7rem] space-y-1\">\n <div className=\"flex items-center justify-between text-xs tabular-nums text-text-secondary\">\n <span>\n {used} / {max}\n </span>\n <span className=\"text-text-muted\">{pct}%</span>\n </div>\n <div className=\"h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full ${nearLimit ? 'bg-status-warning' : 'bg-action-primary-bg'}`}\n style={{ width: `${pct}%` }}\n />\n </div>\n </div>\n );\n}\n\nfunction SectionCard({\n icon,\n title,\n count,\n loading,\n action,\n children,\n}: {\n icon: React.ReactNode;\n title: string;\n count?: number;\n loading?: boolean;\n action?: React.ReactNode;\n children: React.ReactNode;\n}) {\n return (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <div className=\"flex items-center gap-3\">\n <span className=\"flex h-9 w-9 items-center justify-center rounded-input bg-accent-wash text-action-primary\">\n {icon}\n </span>\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {loading ? `Loading ${title.toLowerCase()}…` : title}\n {!loading && count != null ? (\n <span className=\"ml-2 text-sm font-normal text-text-secondary\">({count.toLocaleString()})</span>\n ) : null}\n </h2>\n </div>\n {action}\n </div>\n <div className=\"mt-4\">{children}</div>\n </GlassCard>\n );\n}\n\nfunction RegistrationsSection() {\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = useRegistrationsQuery({ limit: pagination.limit, offset: pagination.offset });\n const [updateRegistration] = useUpdateRegistrationMutation();\n const [deleteRegistration] = useDeleteRegistrationMutation();\n // BOFF-4330 — registration id currently showing its check-in QR, if any.\n const [qrRegistrationId, setQrRegistrationId] = useState<string | null>(null);\n // BOFF-4322 — on-demand badge PDF download. A one-off query (not a hook)\n // since it's a rarely-used, heavy payload — same pattern as TimeCampus's\n // invoice PDF download.\n const apollo = useApolloClient();\n const [downloadingBadgeId, setDownloadingBadgeId] = useState<string | null>(null);\n const onDownloadBadge = async (registrationId: string, label: string) => {\n setDownloadingBadgeId(registrationId);\n try {\n const { data, error } = await apollo.query<{ badgePdf: string }>({\n query: BADGE_PDF_QUERY,\n variables: { registrationId },\n fetchPolicy: 'network-only',\n errorPolicy: 'all',\n });\n if (error || !data?.badgePdf) {\n notify.error('Could not generate badge', error?.message ?? 'Please try again.');\n return;\n }\n downloadBase64Pdf(data.badgePdf, `${label.replace(/[^a-z0-9]+/gi, '-')}-badge.pdf`);\n notify.success('Badge ready', `${label}'s badge downloaded.`);\n } catch (err) {\n notify.error('Could not generate badge', describeError(err));\n } finally {\n setDownloadingBadgeId(null);\n }\n };\n\n // Resolve attendee display names and ticket-type names (the registrations query\n // returns only ids). Pull a page of each to build id -> label lookups so rows\n // read \"Ada Lovelace\" / \"VIP\" instead of raw UUIDs.\n const { data: attendeesData } = useAttendeesQuery({ limit: 200, offset: 0 });\n const { data: ticketsData } = useTicketTypesQuery({ limit: 200, offset: 0 });\n const nameById = useMemo(() => {\n const map = new Map<string, string>();\n for (const attendee of attendeesData?.attendees.items ?? []) {\n if (attendee.id && attendee.fullName) map.set(attendee.id, attendee.fullName);\n }\n return map;\n }, [attendeesData]);\n const ticketById = useMemo(() => {\n const map = new Map<string, string>();\n for (const ticket of ticketsData?.ticketTypes.items ?? []) {\n if (ticket.id && ticket.name) map.set(ticket.id, ticket.name);\n }\n return map;\n }, [ticketsData]);\n const attendeeLabel = (attendeeId?: string | null): string | null => {\n if (!attendeeId) return null;\n return nameById.get(attendeeId) ?? `Attendee ${attendeeId.slice(0, 8)}…`;\n };\n\n const items = useMemo<RegistrationGql[]>(() => data?.registrations.items ?? [], [data]);\n const total = data?.registrations.total ?? 0;\n\n const changeStatus = async (row: RegistrationGql, status: string) => {\n const response = await updateRegistration({\n variables: {\n id: row.id,\n input: {\n eventId: row.eventId,\n attendeeId: row.attendeeId ?? null,\n ticketTypeId: row.ticketTypeId ?? null,\n quantity: row.quantity,\n currency: row.currency,\n totalAmount: row.totalAmount ?? null,\n status,\n },\n },\n });\n if (!mutationSucceeded(response, response.data?.updateRegistration?.id, 'Could not update registration')) {\n return;\n }\n notify.success('Registration updated', `Status set to ${status}`);\n };\n\n const onDelete = async (row: RegistrationGql, label: string) => {\n const response = await deleteRegistration({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete registration', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteRegistration) {\n notify.error('Could not delete registration', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Registration deleted', label);\n };\n\n const rowLabel = (row: RegistrationGql) => attendeeLabel(row.attendeeId) ?? `Registration ${row.id}`;\n\n const columns: ResponsiveTableColumn<RegistrationGql>[] = [\n {\n key: 'name',\n header: 'Name',\n priority: 'primary',\n cell: (row) => <span className=\"font-medium text-text-primary\">{rowLabel(row)}</span>,\n },\n {\n key: 'ticket',\n header: 'Ticket Type',\n mobileLabel: 'Ticket',\n cell: (row) => (\n <span className=\"text-text-secondary\">\n {row.ticketTypeId ? (ticketById.get(row.ticketTypeId) ?? '—') : '—'}\n </span>\n ),\n },\n {\n key: 'quantity',\n header: 'Qty',\n mobileLabel: 'Quantity',\n priority: 'secondary',\n cell: (row) => <span className=\"tabular-nums text-text-secondary\">{row.quantity}</span>,\n },\n {\n key: 'amount',\n header: 'Amount',\n cell: (row) => (\n <span className=\"tabular-nums text-text-primary\">\n {row.totalAmount ? formatMoney(Number(row.totalAmount), row.currency) : '—'}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n priority: 'primary',\n cell: (row) => <Badge variant={statusVariant(row.status)}>{row.status ?? 'UNKNOWN'}</Badge>,\n },\n ];\n\n return (\n <SectionCard icon={<TicketPlus className=\"h-4 w-4\" />} title=\"Registrations\" count={total} loading={loading}>\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No registrations yet.\"\n description=\"Register your first attendee to start tracking sign-ups.\"\n />\n )\n }\n rowActions={(row) => {\n const label = rowLabel(row);\n const statusItems: ActionMenuItem[] = REGISTRATION_STATUSES.filter(\n (candidate) => candidate !== (row.status ?? '').toUpperCase()\n ).map((candidate, index) => ({\n key: candidate,\n label: `Set ${candidate.replace('_', ' ').toLowerCase()}`,\n onSelect: () => void changeStatus(row, candidate),\n separatorBefore: index === 0,\n }));\n const extraItems: ActionMenuItem[] = [\n {\n key: 'view-qr',\n label: 'View check-in QR',\n icon: QrCode,\n onSelect: () => setQrRegistrationId(row.id),\n },\n {\n key: 'download-badge',\n label: downloadingBadgeId === row.id ? 'Generating badge…' : 'Download badge',\n icon: BadgeIcon,\n disabled: downloadingBadgeId === row.id,\n onSelect: () => void onDownloadBadge(row.id, label),\n },\n ...statusItems,\n ];\n return (\n <ActionMenu\n ariaLabel=\"Registration actions\"\n entityName={label}\n deleteLabel=\"Delete registration\"\n extraItems={extraItems}\n onDelete={() => onDelete(row, label)}\n />\n );\n }}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"registrations\"\n loading={loading}\n />\n {qrRegistrationId\n ? (() => {\n const qrRow = items.find((r) => r.id === qrRegistrationId);\n const qrLabel = qrRow ? rowLabel(qrRow) : `Registration ${qrRegistrationId}`;\n return (\n <CheckInQrDialog\n registrationId={qrRegistrationId}\n label={qrLabel}\n onOpenChange={(open) => {\n if (!open) setQrRegistrationId(null);\n }}\n />\n );\n })()\n : null}\n </SectionCard>\n );\n}\n\nfunction AttendeesSection() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = useAttendeesQuery({ limit: pagination.limit, offset: pagination.offset });\n const [deleteAttendee] = useDeleteAttendeeMutation();\n\n const items = useMemo<AttendeeGql[]>(() => data?.attendees.items ?? [], [data]);\n const total = data?.attendees.total ?? 0;\n\n const onDelete = async (row: AttendeeGql) => {\n const response = await deleteAttendee({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete attendee', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteAttendee) {\n notify.error('Could not delete attendee', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Attendee deleted', row.fullName);\n };\n\n const columns: ResponsiveTableColumn<AttendeeGql>[] = [\n {\n key: 'name',\n header: 'Name',\n priority: 'primary',\n cell: (row) => <span className=\"font-medium text-text-primary\">{row.fullName}</span>,\n },\n {\n key: 'email',\n header: 'Email',\n priority: 'primary',\n cell: (row) => <span className=\"text-text-secondary\">{row.email}</span>,\n },\n {\n key: 'company',\n header: 'Company',\n cell: (row) => (\n <span className=\"text-text-secondary\">{[row.company, row.role].filter(Boolean).join(' · ') || '—'}</span>\n ),\n },\n ];\n\n return (\n <SectionCard\n icon={<Users className=\"h-4 w-4\" />}\n title=\"Attendees\"\n count={total}\n loading={loading}\n action={\n <Button type=\"button\" size=\"sm\" variant=\"outline\" onClick={() => navigate('/registration/attendees/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Add attendee\n </Button>\n }\n >\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No attendees yet.\"\n description=\"Add attendees or register one to build your guest list.\"\n />\n )\n }\n rowActions={(row) => (\n <ActionMenu\n ariaLabel={`Actions for ${row.fullName}`}\n entityName={row.fullName}\n deleteLabel=\"Delete attendee\"\n onView={() => navigate(`/attendees/${row.id}/profile`)}\n onEdit={() => navigate(`/registration/attendees/${row.id}/edit`)}\n onDelete={() => onDelete(row)}\n />\n )}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"attendees\"\n loading={loading}\n />\n </SectionCard>\n );\n}\n\nfunction PromoCodesSection() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 10 });\n const { data, loading } = usePromoCodesQuery({ limit: pagination.limit, offset: pagination.offset });\n const [deletePromoCode] = useDeletePromoCodeMutation();\n\n const items = useMemo<PromoCodeGql[]>(() => data?.promoCodes.items ?? [], [data]);\n const total = data?.promoCodes.total ?? 0;\n\n const onDelete = async (row: PromoCodeGql) => {\n const response = await deletePromoCode({ variables: { id: row.id } });\n if (response.error) {\n notify.error('Could not delete promo code', response.error.message);\n throw response.error;\n }\n notify.success('Promo code deleted', row.code);\n };\n\n const columns: ResponsiveTableColumn<PromoCodeGql>[] = [\n {\n key: 'code',\n header: 'Code',\n priority: 'primary',\n cell: (row) => <span className=\"font-mono text-sm font-semibold text-text-primary\">{row.code}</span>,\n },\n {\n key: 'discount',\n header: 'Discount',\n priority: 'primary',\n cell: (row) => (\n <span className=\"flex items-center gap-2\">\n <Badge variant=\"secondary\">{row.discountType === 'PERCENT' ? 'PERCENT' : 'FIXED'}</Badge>\n <span className=\"text-sm text-text-secondary\">\n {row.discountType === 'PERCENT' ? `${row.discountValue}%` : row.discountValue}\n </span>\n </span>\n ),\n },\n {\n key: 'usage',\n header: 'Usage',\n cell: (row) => <UsageMeter used={row.usedCount} max={row.maxUses} />,\n },\n {\n key: 'validity',\n header: 'Validity',\n cell: (row) => (\n <span className=\"whitespace-nowrap text-sm text-text-secondary\">\n {describeValidity(row.startsAt ?? '', row.endsAt ?? '')}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n priority: 'secondary',\n cell: (row) => (\n <Badge variant={row.isActive ? 'default' : 'secondary'}>{row.isActive ? 'Active' : 'Inactive'}</Badge>\n ),\n },\n ];\n\n return (\n <SectionCard\n icon={<Tag className=\"h-4 w-4\" />}\n title=\"Promo Codes\"\n count={total}\n loading={loading}\n action={\n <Button type=\"button\" size=\"sm\" variant=\"outline\" onClick={() => navigate('/registration/promo-codes/create')}>\n <TicketPlus className=\"h-4 w-4\" />\n New promo code\n </Button>\n }\n >\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n emptyState={\n loading ? null : (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No promo codes yet.\"\n description=\"Create a code to offer discounts and drive registrations.\"\n />\n )\n }\n rowActions={(row) => (\n <ActionMenu\n ariaLabel={`Actions for ${row.code}`}\n entityName={row.code}\n onEdit={() => navigate(`/registration/promo-codes/${row.id}/edit`)}\n onDelete={() => onDelete(row)}\n />\n )}\n />\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={items.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"promo codes\"\n loading={loading}\n />\n </SectionCard>\n );\n}\n\nexport default function RegistrationPage() {\n const { navigate } = useEventfullyManaged();\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n This is where you see who is coming. Registrations are the paid or confirmed sign-ups, attendees are the people\n behind them, and promo codes let you offer discounts. Register attendees, edit their details, change a\n registration&apos;s status, and manage discount codes — all backed by live GraphQL APIs.\n </PagePurpose>\n\n <EmphasisPanel>\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Registration</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Track registrations, attendees, and promo codes with backend persistence.\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <Button type=\"button\" onClick={() => navigate('/registration/register')}>\n <TicketPlus className=\"h-4 w-4\" />\n Register attendee\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/registration/attendees/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Add attendee\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/registration/promo-codes/create')}>\n <Tag className=\"h-4 w-4\" />\n New promo code\n </Button>\n </div>\n </div>\n </EmphasisPanel>\n\n <RegistrationsSection />\n <AttendeesSection />\n <PromoCodesSection />\n\n <NextSteps\n storageKey=\"eventfullymanaged-registration\"\n title=\"Grow your registrations\"\n steps={[\n {\n id: 'view-networking',\n label: 'Set up attendee networking',\n description: 'Turn registered attendees into connections with matchmaking.',\n icon: <Users className=\"h-4 w-4\" />,\n onClick: () => navigate('/networking'),\n },\n {\n id: 'promote',\n label: 'Promote with a campaign',\n description: 'Send reminders and offers to drive more sign-ups.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n {\n id: 'analyze',\n label: 'Snapshot your numbers',\n description: 'Capture an analytics snapshot to track registration trends.',\n icon: <Tag className=\"h-4 w-4\" />,\n onClick: () => navigate('/analytics'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAmDA,SAASG,EAAgB,EACvB,mBACA,UACA,mBAKC;CACD,IAAM,EAAE,SAAM,YAAS,aAAUC,EAAqBC,CAAc,GAC9DC,IAAQC,GAAM;CAEpB,OACE,kBAACC,GAAD;EAAkB,MAAA;EAAmB;EACnC,UAAA,kBAACC,GAAD;GAAyB,WAAU;GAAnC,UAAA;IACE,kBAACC,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UAAuB,cAAkC,CAAA,GACzD,kBAACC,GAAD,EAAA,UAAA,CACGC,GAAM,sHAEoB,EAAA,CAAA,CACP,EAAA,CAAA;IAExB,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAAC,IACC,kBAAC,KAAD;MAAG,WAAU;MAA8B,UAAA;KAAc,CAAA,IACvDC,KAAS,CAACT,IACZ,kBAAC,KAAD;MAAG,WAAU;MAAkC,UAAA;KAA0D,CAAA,IAEzG,kBAAAN,GAAA,EAAA,UAAA,CACE,kBAAC,OAAD;MACE,KAAKM,EAAM;MACX,KAAK,wBAAwBO;MAC7B,WAAU;KACX,CAAA,GACD,kBAA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