@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.2

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 (92) 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 +264 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
  23. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  24. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
  25. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  26. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  27. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  28. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  29. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  30. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  31. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  33. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  35. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  36. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  37. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  38. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  39. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  40. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  41. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  42. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
  44. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  46. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  48. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  50. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  52. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  54. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  56. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  58. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  59. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  60. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  62. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  63. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  64. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  65. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  66. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  67. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  68. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  69. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  70. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  71. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  72. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  73. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  74. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  76. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  77. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  78. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  79. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  80. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  81. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  82. package/dist/generated/wspace-operations.d.ts +468 -0
  83. package/dist/generated/wspace-operations.js +215 -11
  84. package/dist/generated/wspace-operations.js.map +1 -1
  85. package/dist/generated/wspace-types.d.ts +30060 -1503
  86. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  87. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  88. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  89. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  90. package/dist/utils/pageContext.js +5 -0
  91. package/dist/utils/pageContext.js.map +1 -1
  92. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { useAttendeesQuery as e, useCheckInRecordsQuery as t, useCheckInStationsQuery as n, useCreateCheckInStationMutation as r, useCreateManualCheckInMutation as i, useDeleteCheckInRecordMutation as a, useDeleteCheckInStationMutation as o, useEventSessionsQuery as s, useEventsQuery as c, useKioskSearchAttendeesQuery as l, useScanCheckInMutation as u, useUpdateCheckInRecordMutation as d, useUpdateCheckInStationMutation as f } from "../../api/eventApi.js";
1
+ import { Pagination as e, usePagination as t } from "../../components/Pagination.js";
2
+ import { useAttendeesQuery as n, useCheckInRecordsQuery as r, useCheckInStationsQuery as i, useCreateCheckInStationMutation as a, useCreateManualCheckInMutation as o, useDeleteCheckInRecordMutation as s, useDeleteCheckInStationMutation as c, useEventSessionsQuery as l, useEventsQuery as u, useKioskSearchAttendeesQuery as d, useScanCheckInMutation as f, useUpdateCheckInRecordMutation as p, useUpdateCheckInStationMutation as m } from "../../api/eventApi.js";
2
3
  import "../../components/index.js";
3
- import { ActionMenu as p } from "../../components/ActionMenu.js";
4
- import { Pagination as m, usePagination as h } from "../../components/Pagination.js";
5
- import { enqueuePendingScan as g } from "../../lib/offlineCheckInQueue.js";
4
+ import { enqueuePendingScan as h } from "../../lib/offlineCheckInQueue.js";
5
+ import { ActionMenu as g } from "../../components/ActionMenu.js";
6
6
  import { describeError as _, mutationSucceeded as v } from "../../lib/mutationResult.js";
7
7
  import { notify as y } from "../../lib/toast.js";
8
8
  import { useBadgePrint as b } from "../../lib/useBadgePrint.js";
9
9
  import { useOfflineCheckInSync as x } from "../../lib/useOfflineCheckInSync.js";
10
10
  import { useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
11
11
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
12
- import { ArrowLeftFromLine as ee, ArrowRightToLine as te, Camera as A, CameraOff as j, CloudOff as ne, Keyboard as re, LogIn as ie, Plus as M, Printer as ae, QrCode as N, RefreshCw as oe, ScanLine as P } from "lucide-react";
13
- import { Badge as se, Button as F, EmphasisPanel as ce, GlassCard as le, GradientText as I, IllustratedEmptyState as L, Input as R, Label as z, PagePurpose as B, ResponsiveDialog as V, ResponsiveDialogContent as H, ResponsiveDialogDescription as U, ResponsiveDialogFooter as ue, ResponsiveDialogHeader as W, ResponsiveDialogTitle as G, ScrollArea as de, Select as K, SelectContent as q, SelectItem as J, SelectTrigger as Y, SelectValue as X, Switch as Z } from "@burdenoff/fe-libs/ui";
12
+ import { Badge as ee, Button as A, EmphasisPanel as te, GlassCard as j, GradientText as ne, IllustratedEmptyState as M, Input as N, Label as P, PagePurpose as re, ResponsiveDialog as F, ResponsiveDialogContent as I, ResponsiveDialogDescription as L, ResponsiveDialogFooter as R, ResponsiveDialogHeader as z, ResponsiveDialogTitle as B, ScrollArea as ie, Select as V, SelectContent as H, SelectItem as U, SelectTrigger as W, SelectValue as G, Switch as K } from "@burdenoff/fe-libs/ui";
13
+ import { ArrowLeftFromLine as q, ArrowRightToLine as ae, Camera as J, CameraOff as Y, CloudOff as oe, Keyboard as X, LogIn as se, Plus as ce, Printer as le, QrCode as Z, RefreshCw as ue, ScanLine as de } from "lucide-react";
14
14
  // src/eventfullymanaged/pages/modules/KioskPage.tsx
15
15
  var Q = /^[^.\s]+\.[0-9a-f]{64}$/i, fe = [
16
16
  "DESK",
@@ -108,17 +108,17 @@ function ve({ onDetected: e }) {
108
108
  children: [/* @__PURE__ */ k("span", {
109
109
  className: "flex items-center gap-1.5 text-xs font-medium text-text-primary",
110
110
  children: [/* @__PURE__ */ O("span", { className: "h-2 w-2 animate-pulse rounded-full bg-status-success-text" }), "Scanning…"]
111
- }), /* @__PURE__ */ k(F, {
111
+ }), /* @__PURE__ */ k(A, {
112
112
  type: "button",
113
113
  size: "sm",
114
114
  variant: "outline",
115
115
  onClick: l,
116
- children: [/* @__PURE__ */ O(j, { className: "h-4 w-4" }), "Stop"]
116
+ children: [/* @__PURE__ */ O(Y, { className: "h-4 w-4" }), "Stop"]
117
117
  })]
118
118
  }) : /* @__PURE__ */ k("div", {
119
119
  className: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-center",
120
120
  children: [
121
- /* @__PURE__ */ O(N, {
121
+ /* @__PURE__ */ O(Z, {
122
122
  className: "h-16 w-16 text-text-muted",
123
123
  "aria-hidden": "true"
124
124
  }),
@@ -126,12 +126,12 @@ function ve({ onDetected: e }) {
126
126
  className: "text-lg font-semibold text-text-primary",
127
127
  children: "Scan attendee QR"
128
128
  }),
129
- t ? /* @__PURE__ */ k(F, {
129
+ t ? /* @__PURE__ */ k(A, {
130
130
  type: "button",
131
131
  size: "sm",
132
132
  variant: "secondary",
133
133
  onClick: () => void u(),
134
- children: [/* @__PURE__ */ O(A, { className: "h-4 w-4" }), "Start camera"]
134
+ children: [/* @__PURE__ */ O(J, { className: "h-4 w-4" }), "Start camera"]
135
135
  }) : /* @__PURE__ */ O("p", {
136
136
  className: "max-w-56 text-xs text-text-secondary",
137
137
  children: "Camera scanning isn't available in this browser — use manual lookup below."
@@ -168,9 +168,9 @@ function ye({ label: e, value: t, options: n, onChange: r }) {
168
168
  })]
169
169
  });
170
170
  }
171
- function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a }) {
172
- let o = !!a, [s, { loading: c }] = r(), [l, { loading: u }] = f(), d = w(() => {
173
- if (!a) return {
171
+ function be({ open: e, onOpenChange: t, eventId: n, eventName: r, station: i }) {
172
+ let o = !!i, [s, { loading: c }] = a(), [l, { loading: u }] = m(), d = w(() => {
173
+ if (!i) return {
174
174
  name: "",
175
175
  code: "",
176
176
  location: "",
@@ -178,68 +178,68 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
178
178
  isActive: !0,
179
179
  autoPrintBadge: !1
180
180
  };
181
- let e = $(a.metadata);
181
+ let e = $(i.metadata);
182
182
  return {
183
- name: a.name ?? "",
184
- code: e.code ?? he(a.name ?? ""),
183
+ name: i.name ?? "",
184
+ code: e.code ?? he(i.name ?? ""),
185
185
  location: e.location ?? "",
186
186
  type: e.type ?? "DESK",
187
187
  isActive: e.isActive ?? !0,
188
188
  autoPrintBadge: e.autoPrintBadge ?? !1
189
189
  };
190
- }, [a]), [p, m] = E(d), [h, g] = E(null), b = `${e ? "open" : "closed"}:${a?.id ?? "new"}`;
191
- e && h !== b && (g(b), m(d)), !e && h !== null && g(null);
190
+ }, [i]), [f, p] = E(d), [h, g] = E(null), b = `${e ? "open" : "closed"}:${i?.id ?? "new"}`;
191
+ e && h !== b && (g(b), p(d)), !e && h !== null && g(null);
192
192
  let x = (e, t) => {
193
- m((n) => ({
193
+ p((n) => ({
194
194
  ...n,
195
195
  [e]: t
196
196
  }));
197
197
  }, S = c || u;
198
- return /* @__PURE__ */ O(V, {
198
+ return /* @__PURE__ */ O(F, {
199
199
  open: e,
200
200
  onOpenChange: t,
201
- children: /* @__PURE__ */ k(H, {
201
+ children: /* @__PURE__ */ k(I, {
202
202
  className: "max-w-lg",
203
203
  children: [
204
- /* @__PURE__ */ k(W, { children: [/* @__PURE__ */ O(G, { children: o ? "Edit check-in station" : "New check-in station" }), /* @__PURE__ */ k(U, { children: [
204
+ /* @__PURE__ */ k(z, { children: [/* @__PURE__ */ O(B, { children: o ? "Edit check-in station" : "New check-in station" }), /* @__PURE__ */ k(L, { children: [
205
205
  "A station is a desk, gate or device where attendees scan in at ",
206
- i,
206
+ r,
207
207
  "."
208
208
  ] })] }),
209
209
  /* @__PURE__ */ k("form", {
210
210
  id: "station-form",
211
211
  onSubmit: async (e) => {
212
212
  e.preventDefault();
213
- let r = p.code.trim() || he(p.name), c = {
213
+ let a = f.code.trim() || he(f.name), c = {
214
214
  eventId: n,
215
- name: p.name.trim(),
216
- code: r,
217
- location: p.location.trim() || null,
218
- isActive: p.isActive,
215
+ name: f.name.trim(),
216
+ code: a,
217
+ location: f.location.trim() || null,
218
+ isActive: f.isActive,
219
219
  kioskConfig: {
220
- type: p.type,
221
- autoPrintBadge: p.autoPrintBadge
220
+ type: f.type,
221
+ autoPrintBadge: f.autoPrintBadge
222
222
  },
223
223
  metadata: {
224
- code: r,
225
- location: p.location.trim(),
226
- type: p.type,
227
- isActive: p.isActive,
228
- autoPrintBadge: p.autoPrintBadge
224
+ code: a,
225
+ location: f.location.trim(),
226
+ type: f.type,
227
+ isActive: f.isActive,
228
+ autoPrintBadge: f.autoPrintBadge
229
229
  }
230
230
  };
231
231
  try {
232
- if (o && a) {
232
+ if (o && i) {
233
233
  let e = await l({ variables: {
234
- id: a.id,
234
+ id: i.id,
235
235
  input: c
236
236
  } });
237
237
  if (!v(e, e.data?.updateCheckInStation?.id, "Could not update station")) return;
238
- y.success("Station updated", `“${c.name}” is now ${p.isActive ? "active" : "disabled"}.`);
238
+ y.success("Station updated", `“${c.name}” is now ${f.isActive ? "active" : "disabled"}.`);
239
239
  } else {
240
240
  let e = await s({ variables: { input: c } });
241
241
  if (!v(e, e.data?.createCheckInStation?.id, "Could not create station")) return;
242
- y.success("Station created", `“${c.name}” is ready at ${i}.`);
242
+ y.success("Station created", `“${c.name}” is ready at ${r}.`);
243
243
  }
244
244
  t(!1);
245
245
  } catch (e) {
@@ -255,8 +255,8 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
255
255
  children: [/* @__PURE__ */ O("span", {
256
256
  className: "font-medium text-text-primary",
257
257
  children: "Name"
258
- }), /* @__PURE__ */ O(R, {
259
- value: p.name,
258
+ }), /* @__PURE__ */ O(N, {
259
+ value: f.name,
260
260
  onChange: (e) => x("name", e.target.value),
261
261
  placeholder: "Main entrance",
262
262
  required: !0
@@ -266,8 +266,8 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
266
266
  children: [/* @__PURE__ */ O("span", {
267
267
  className: "font-medium text-text-primary",
268
268
  children: "Code"
269
- }), /* @__PURE__ */ O(R, {
270
- value: p.code,
269
+ }), /* @__PURE__ */ O(N, {
270
+ value: f.code,
271
271
  onChange: (e) => x("code", e.target.value),
272
272
  placeholder: "Auto from name"
273
273
  })]
@@ -280,8 +280,8 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
280
280
  children: [/* @__PURE__ */ O("span", {
281
281
  className: "font-medium text-text-primary",
282
282
  children: "Location"
283
- }), /* @__PURE__ */ O(R, {
284
- value: p.location,
283
+ }), /* @__PURE__ */ O(N, {
284
+ value: f.location,
285
285
  onChange: (e) => x("location", e.target.value),
286
286
  placeholder: "North lobby"
287
287
  })]
@@ -290,13 +290,13 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
290
290
  children: [/* @__PURE__ */ O("span", {
291
291
  className: "font-medium text-text-primary",
292
292
  children: "Type"
293
- }), /* @__PURE__ */ k(K, {
294
- value: p.type,
293
+ }), /* @__PURE__ */ k(V, {
294
+ value: f.type,
295
295
  onValueChange: (e) => x("type", e),
296
- children: [/* @__PURE__ */ O(Y, {
296
+ children: [/* @__PURE__ */ O(W, {
297
297
  "aria-label": "Station type",
298
- children: /* @__PURE__ */ O(X, {})
299
- }), /* @__PURE__ */ O(q, { children: fe.map((e) => /* @__PURE__ */ O(J, {
298
+ children: /* @__PURE__ */ O(G, {})
299
+ }), /* @__PURE__ */ O(H, { children: fe.map((e) => /* @__PURE__ */ O(U, {
300
300
  value: e,
301
301
  children: e.replace("_", " ")
302
302
  }, e)) })]
@@ -305,45 +305,45 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
305
305
  }),
306
306
  /* @__PURE__ */ k("div", {
307
307
  className: "flex items-center justify-between rounded-card border border-border-seam bg-bg-surface p-3",
308
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(z, {
308
+ children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(P, {
309
309
  htmlFor: "station-active",
310
310
  className: "text-text-primary",
311
311
  children: "Active"
312
312
  }), /* @__PURE__ */ O("p", {
313
313
  className: "text-xs text-text-secondary",
314
314
  children: "Disabled stations stay configured but cannot accept scans."
315
- })] }), /* @__PURE__ */ O(Z, {
315
+ })] }), /* @__PURE__ */ O(K, {
316
316
  id: "station-active",
317
- checked: p.isActive,
317
+ checked: f.isActive,
318
318
  onCheckedChange: (e) => x("isActive", e),
319
319
  "aria-label": "Station active"
320
320
  })]
321
321
  }),
322
322
  /* @__PURE__ */ k("div", {
323
323
  className: "flex items-center justify-between rounded-card border border-border-seam bg-bg-surface p-3",
324
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(z, {
324
+ children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(P, {
325
325
  htmlFor: "station-auto-print-badge",
326
326
  className: "text-text-primary",
327
327
  children: "Auto-print badge"
328
328
  }), /* @__PURE__ */ O("p", {
329
329
  className: "text-xs text-text-secondary",
330
330
  children: "Print each attendee's badge through the kiosk printer when they check in at this station."
331
- })] }), /* @__PURE__ */ O(Z, {
331
+ })] }), /* @__PURE__ */ O(K, {
332
332
  id: "station-auto-print-badge",
333
- checked: p.autoPrintBadge,
333
+ checked: f.autoPrintBadge,
334
334
  onCheckedChange: (e) => x("autoPrintBadge", e),
335
335
  "aria-label": "Auto-print badge on check-in"
336
336
  })]
337
337
  })
338
338
  ]
339
339
  }),
340
- /* @__PURE__ */ k(ue, { children: [/* @__PURE__ */ O(F, {
340
+ /* @__PURE__ */ k(R, { children: [/* @__PURE__ */ O(A, {
341
341
  type: "button",
342
342
  variant: "outline",
343
343
  onClick: () => t(!1),
344
344
  disabled: S,
345
345
  children: "Cancel"
346
- }), /* @__PURE__ */ O(F, {
346
+ }), /* @__PURE__ */ O(A, {
347
347
  type: "submit",
348
348
  form: "station-form",
349
349
  disabled: S,
@@ -354,27 +354,27 @@ function be({ open: e, onOpenChange: t, eventId: n, eventName: i, station: a })
354
354
  });
355
355
  }
356
356
  function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
357
- let [i, { loading: a }] = d(), o = w(() => ({
357
+ let [i, { loading: a }] = p(), o = w(() => ({
358
358
  method: n?.method ?? "MANUAL",
359
359
  direction: n?.direction ?? "IN",
360
360
  status: n?.status ?? "checked_in",
361
361
  stationId: n?.stationId ?? "",
362
362
  attendeeId: n?.attendeeId ?? ""
363
- }), [n]), [s, c] = E(o), [l, u] = E(null), f = `${e ? "open" : "closed"}:${n?.id ?? "none"}`;
364
- e && l !== f && (u(f), c(o)), !e && l !== null && u(null);
365
- let p = (e, t) => {
363
+ }), [n]), [s, c] = E(o), [l, u] = E(null), d = `${e ? "open" : "closed"}:${n?.id ?? "none"}`;
364
+ e && l !== d && (u(d), c(o)), !e && l !== null && u(null);
365
+ let f = (e, t) => {
366
366
  c((n) => ({
367
367
  ...n,
368
368
  [e]: t
369
369
  }));
370
370
  };
371
- return /* @__PURE__ */ O(V, {
371
+ return /* @__PURE__ */ O(F, {
372
372
  open: e,
373
373
  onOpenChange: t,
374
- children: /* @__PURE__ */ k(H, {
374
+ children: /* @__PURE__ */ k(I, {
375
375
  className: "max-w-lg",
376
376
  children: [
377
- /* @__PURE__ */ k(W, { children: [/* @__PURE__ */ O(G, { children: "Edit check-in record" }), /* @__PURE__ */ O(U, { children: "Correct the direction, method or station for this scan." })] }),
377
+ /* @__PURE__ */ k(z, { children: [/* @__PURE__ */ O(B, { children: "Edit check-in record" }), /* @__PURE__ */ O(L, { children: "Correct the direction, method or station for this scan." })] }),
378
378
  /* @__PURE__ */ k("form", {
379
379
  id: "record-form",
380
380
  onSubmit: async (e) => {
@@ -407,9 +407,9 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
407
407
  children: [/* @__PURE__ */ O("span", {
408
408
  className: "font-medium text-text-primary",
409
409
  children: "Attendee ID"
410
- }), /* @__PURE__ */ O(R, {
410
+ }), /* @__PURE__ */ O(N, {
411
411
  value: s.attendeeId,
412
- onChange: (e) => p("attendeeId", e.target.value)
412
+ onChange: (e) => f("attendeeId", e.target.value)
413
413
  })]
414
414
  }),
415
415
  /* @__PURE__ */ k("div", {
@@ -419,13 +419,13 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
419
419
  children: [/* @__PURE__ */ O("span", {
420
420
  className: "font-medium text-text-primary",
421
421
  children: "Method"
422
- }), /* @__PURE__ */ k(K, {
422
+ }), /* @__PURE__ */ k(V, {
423
423
  value: s.method,
424
- onValueChange: (e) => p("method", e),
425
- children: [/* @__PURE__ */ O(Y, {
424
+ onValueChange: (e) => f("method", e),
425
+ children: [/* @__PURE__ */ O(W, {
426
426
  "aria-label": "Method",
427
- children: /* @__PURE__ */ O(X, {})
428
- }), /* @__PURE__ */ O(q, { children: pe.map((e) => /* @__PURE__ */ O(J, {
427
+ children: /* @__PURE__ */ O(G, {})
428
+ }), /* @__PURE__ */ O(H, { children: pe.map((e) => /* @__PURE__ */ O(U, {
429
429
  value: e,
430
430
  children: e
431
431
  }, e)) })]
@@ -435,13 +435,13 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
435
435
  children: [/* @__PURE__ */ O("span", {
436
436
  className: "font-medium text-text-primary",
437
437
  children: "Direction"
438
- }), /* @__PURE__ */ k(K, {
438
+ }), /* @__PURE__ */ k(V, {
439
439
  value: s.direction,
440
- onValueChange: (e) => p("direction", e),
441
- children: [/* @__PURE__ */ O(Y, {
440
+ onValueChange: (e) => f("direction", e),
441
+ children: [/* @__PURE__ */ O(W, {
442
442
  "aria-label": "Direction",
443
- children: /* @__PURE__ */ O(X, {})
444
- }), /* @__PURE__ */ O(q, { children: me.map((e) => /* @__PURE__ */ O(J, {
443
+ children: /* @__PURE__ */ O(G, {})
444
+ }), /* @__PURE__ */ O(H, { children: me.map((e) => /* @__PURE__ */ O(U, {
445
445
  value: e,
446
446
  children: e
447
447
  }, e)) })]
@@ -455,25 +455,25 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
455
455
  children: [/* @__PURE__ */ O("span", {
456
456
  className: "font-medium text-text-primary",
457
457
  children: "Status"
458
- }), /* @__PURE__ */ O(R, {
458
+ }), /* @__PURE__ */ O(N, {
459
459
  value: s.status,
460
- onChange: (e) => p("status", e.target.value)
460
+ onChange: (e) => f("status", e.target.value)
461
461
  })]
462
462
  }), /* @__PURE__ */ k("label", {
463
463
  className: "space-y-1 text-sm",
464
464
  children: [/* @__PURE__ */ O("span", {
465
465
  className: "font-medium text-text-primary",
466
466
  children: "Station"
467
- }), /* @__PURE__ */ k(K, {
467
+ }), /* @__PURE__ */ k(V, {
468
468
  value: s.stationId || "none",
469
- onValueChange: (e) => p("stationId", e === "none" ? "" : e),
470
- children: [/* @__PURE__ */ O(Y, {
469
+ onValueChange: (e) => f("stationId", e === "none" ? "" : e),
470
+ children: [/* @__PURE__ */ O(W, {
471
471
  "aria-label": "Station",
472
- children: /* @__PURE__ */ O(X, {})
473
- }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
472
+ children: /* @__PURE__ */ O(G, {})
473
+ }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
474
474
  value: "none",
475
475
  children: "No station"
476
- }), r.map((e) => /* @__PURE__ */ O(J, {
476
+ }), r.map((e) => /* @__PURE__ */ O(U, {
477
477
  value: e.id,
478
478
  children: e.name ?? e.id
479
479
  }, e.id))] })]
@@ -482,13 +482,13 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
482
482
  })
483
483
  ]
484
484
  }),
485
- /* @__PURE__ */ k(ue, { children: [/* @__PURE__ */ O(F, {
485
+ /* @__PURE__ */ k(R, { children: [/* @__PURE__ */ O(A, {
486
486
  type: "button",
487
487
  variant: "outline",
488
488
  onClick: () => t(!1),
489
489
  disabled: a,
490
490
  children: "Cancel"
491
- }), /* @__PURE__ */ O(F, {
491
+ }), /* @__PURE__ */ O(A, {
492
492
  type: "submit",
493
493
  form: "record-form",
494
494
  disabled: a,
@@ -498,23 +498,23 @@ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
498
498
  })
499
499
  });
500
500
  }
501
- function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStationChange: a, onCheckedIn: o }) {
502
- let [c, d] = E(""), [f, p] = E("QR"), [m, h] = E("IN"), [S, w] = E(""), D = T(null), [A, { loading: j }] = i(), [M] = u(), ae = b(), ce = s({
501
+ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStationChange: i, onCheckedIn: a }) {
502
+ let [s, c] = E(""), [u, p] = E("QR"), [m, g] = E("IN"), [S, w] = E(""), D = T(null), [te, { loading: ne }] = o(), [M] = f(), P = b(), re = l({
503
503
  eventId: e,
504
504
  limit: 100,
505
505
  offset: 0
506
- }).data?.eventSessions.items ?? [], { isOnline: I, pendingCount: L, syncNow: z } = x(M, o), [B, V] = E(null), [H, U] = E("");
506
+ }).data?.eventSessions.items ?? [], { isOnline: F, pendingCount: I, syncNow: L } = x(M, a), [R, z] = E(null), [B, ie] = E("");
507
507
  C(() => {
508
- let e = setTimeout(() => U(c.trim()), 250);
508
+ let e = setTimeout(() => ie(s.trim()), 250);
509
509
  return () => clearTimeout(e);
510
- }, [c]);
511
- let ue = !B && !Q.test(H) ? H : "", W = l({
510
+ }, [s]);
511
+ let K = !R && !Q.test(B) ? B : "", J = d({
512
512
  eventId: e,
513
- query: ue
514
- }), G = W.data?.kioskSearchAttendees ?? [], de = (e) => {
515
- d(e), V(null), p("QR"), y.info("QR captured", "Confirm the details and tap Check in."), D.current?.focus();
516
- }, Z = async (e) => {
517
- let t = crypto.randomUUID(), i = (/* @__PURE__ */ new Date()).toISOString(), a = {
513
+ query: K
514
+ }), Y = J.data?.kioskSearchAttendees ?? [], ce = (e) => {
515
+ c(e), z(null), p("QR"), y.info("QR captured", "Confirm the details and tap Check in."), D.current?.focus();
516
+ }, le = async (e) => {
517
+ let t = crypto.randomUUID(), i = (/* @__PURE__ */ new Date()).toISOString(), o = {
518
518
  clientScanId: t,
519
519
  token: e,
520
520
  stationId: r || null,
@@ -523,11 +523,11 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
523
523
  direction: m,
524
524
  scannedAt: i
525
525
  }, s = async (e) => {
526
- await g(a), y.success("Saved on this device", e), d(""), D.current?.focus();
526
+ await h(o), y.success("Saved on this device", e), c(""), D.current?.focus();
527
527
  };
528
528
  if (typeof navigator < "u" && !navigator.onLine) await s("No connection right now — this check-in will sync automatically once you're back online.");
529
529
  else try {
530
- let a = await M({ variables: { input: {
530
+ let o = await M({ variables: { input: {
531
531
  token: e,
532
532
  stationId: r || null,
533
533
  sessionId: S || null,
@@ -536,23 +536,23 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
536
536
  recordedAt: i,
537
537
  clientScanId: t
538
538
  } } });
539
- if (a.error) {
540
- y.error("Could not record check-in", a.error.message);
539
+ if (o.error) {
540
+ y.error("Could not record check-in", o.error.message);
541
541
  return;
542
542
  }
543
- if (!a.data?.scanCheckIn?.id) {
543
+ if (!o.data?.scanCheckIn?.id) {
544
544
  y.error("Could not record check-in", "The server did not confirm the change.");
545
545
  return;
546
546
  }
547
547
  let s = n.find((e) => e.id === r);
548
- a.data.scanCheckIn.alreadyCheckedIn ? y.info("Already checked in", "This attendee was already checked in — nothing new was recorded.") : y.success(`Checked ${m === "OUT" ? "out" : "in"}`, `Recorded via QR${s?.name ? ` • ${s.name}` : ""}.`);
549
- let c = a.data.scanCheckIn.registrationId;
550
- m === "IN" && c && s && $(s.metadata).autoPrintBadge && ae(c, r || null), d(""), D.current?.focus(), o();
548
+ o.data.scanCheckIn.alreadyCheckedIn ? y.info("Already checked in", "This attendee was already checked in — nothing new was recorded.") : y.success(`Checked ${m === "OUT" ? "out" : "in"}`, `Recorded via QR${s?.name ? ` • ${s.name}` : ""}.`);
549
+ let l = o.data.scanCheckIn.registrationId;
550
+ m === "IN" && l && s && $(s.metadata).autoPrintBadge && P(l, r || null), c(""), D.current?.focus(), a();
551
551
  } catch {
552
552
  await s("Connection dropped — this check-in will sync automatically once you're back online.");
553
553
  }
554
554
  };
555
- return /* @__PURE__ */ k(le, {
555
+ return /* @__PURE__ */ k(j, {
556
556
  treatment: "glass",
557
557
  glow: !0,
558
558
  className: "border-border-seam p-5 sm:p-6",
@@ -561,32 +561,32 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
561
561
  className: "flex items-center justify-between gap-2",
562
562
  children: [/* @__PURE__ */ k("div", {
563
563
  className: "flex items-center gap-2",
564
- children: [/* @__PURE__ */ O(P, {
564
+ children: [/* @__PURE__ */ O(de, {
565
565
  className: "h-5 w-5 text-accent-primary",
566
566
  "aria-hidden": "true"
567
567
  }), /* @__PURE__ */ O("h2", {
568
568
  className: "text-lg font-semibold text-text-primary",
569
569
  children: "Kiosk mode"
570
570
  })]
571
- }), !I || L > 0 ? /* @__PURE__ */ k("div", {
571
+ }), !F || I > 0 ? /* @__PURE__ */ k("div", {
572
572
  className: "flex items-center gap-2",
573
- children: [/* @__PURE__ */ k(se, {
574
- variant: I ? "secondary" : "destructive",
573
+ children: [/* @__PURE__ */ k(ee, {
574
+ variant: F ? "secondary" : "destructive",
575
575
  className: "flex items-center gap-1",
576
576
  children: [
577
- /* @__PURE__ */ O(ne, {
577
+ /* @__PURE__ */ O(oe, {
578
578
  className: "h-3 w-3",
579
579
  "aria-hidden": "true"
580
580
  }),
581
- I ? "Syncing…" : "Offline",
582
- L > 0 ? ` · ${L} queued` : ""
581
+ F ? "Syncing…" : "Offline",
582
+ I > 0 ? ` · ${I} queued` : ""
583
583
  ]
584
- }), I && L > 0 ? /* @__PURE__ */ k(F, {
584
+ }), F && I > 0 ? /* @__PURE__ */ k(A, {
585
585
  type: "button",
586
586
  size: "sm",
587
587
  variant: "outline",
588
- onClick: z,
589
- children: [/* @__PURE__ */ O(oe, { className: "h-3.5 w-3.5" }), "Sync now"]
588
+ onClick: L,
589
+ children: [/* @__PURE__ */ O(ue, { className: "h-3.5 w-3.5" }), "Sync now"]
590
590
  }) : null]
591
591
  }) : null]
592
592
  }),
@@ -596,40 +596,40 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
596
596
  "Scan an attendee badge or look them up, set the direction, and check them into ",
597
597
  t,
598
598
  ".",
599
- L > 0 ? " Scans queue on this device and sync automatically once you have a connection." : ""
599
+ I > 0 ? " Scans queue on this device and sync automatically once you have a connection." : ""
600
600
  ]
601
601
  }),
602
602
  /* @__PURE__ */ O("div", {
603
603
  className: "mt-5",
604
- children: /* @__PURE__ */ O(ve, { onDetected: de })
604
+ children: /* @__PURE__ */ O(ve, { onDetected: ce })
605
605
  }),
606
606
  /* @__PURE__ */ k("form", {
607
607
  onSubmit: async (t) => {
608
608
  t.preventDefault();
609
- let i = c.trim();
610
- if (f === "QR" && Q.test(i)) {
611
- await Z(i);
609
+ let i = s.trim();
610
+ if (u === "QR" && Q.test(i)) {
611
+ await le(i);
612
612
  return;
613
613
  }
614
- if (!B) {
614
+ if (!R) {
615
615
  y.error("No attendee selected", "Search for the attendee by name, email or ID and pick them from the list.");
616
616
  return;
617
617
  }
618
- let a = {
618
+ let o = {
619
619
  eventId: e,
620
- attendeeId: B.id,
620
+ attendeeId: R.id,
621
621
  sessionId: S || null,
622
622
  stationId: r || null,
623
623
  direction: m,
624
624
  recordedAt: (/* @__PURE__ */ new Date()).toISOString()
625
625
  };
626
626
  try {
627
- let e = await A({ variables: { input: a } });
627
+ let e = await te({ variables: { input: o } });
628
628
  if (!v(e, e.data?.createManualCheckIn?.id, "Could not record check-in")) return;
629
629
  let t = n.find((e) => e.id === r);
630
- e.data?.createManualCheckIn?.alreadyCheckedIn ? y.info("Already checked in", `${B.fullName} was already checked in.`) : y.success(`${B.fullName} checked ${m === "OUT" ? "out" : "in"}`, `Recorded manually${t?.name ? ` • ${t.name}` : ""}.`);
630
+ e.data?.createManualCheckIn?.alreadyCheckedIn ? y.info("Already checked in", `${R.fullName} was already checked in.`) : y.success(`${R.fullName} checked ${m === "OUT" ? "out" : "in"}`, `Recorded manually${t?.name ? ` • ${t.name}` : ""}.`);
631
631
  let i = e.data?.createManualCheckIn?.registrationId;
632
- m === "IN" && i && t && $(t.metadata).autoPrintBadge && ae(i, r || null), d(""), V(null), D.current?.focus(), o();
632
+ m === "IN" && i && t && $(t.metadata).autoPrintBadge && P(i, r || null), c(""), z(null), D.current?.focus(), a();
633
633
  } catch (e) {
634
634
  y.error("Could not record check-in", _(e));
635
635
  }
@@ -641,50 +641,50 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
641
641
  children: [
642
642
  /* @__PURE__ */ k("span", {
643
643
  className: "flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-text-secondary",
644
- children: [/* @__PURE__ */ O(re, { className: "h-3.5 w-3.5" }), "Manual lookup"]
644
+ children: [/* @__PURE__ */ O(X, { className: "h-3.5 w-3.5" }), "Manual lookup"]
645
645
  }),
646
- /* @__PURE__ */ O(R, {
646
+ /* @__PURE__ */ O(N, {
647
647
  ref: D,
648
- value: c,
648
+ value: s,
649
649
  onChange: (e) => {
650
- d(e.target.value), V(null);
650
+ c(e.target.value), z(null);
651
651
  },
652
652
  placeholder: "Enter name, email or attendee ID",
653
653
  autoComplete: "off",
654
654
  className: "h-12 text-base"
655
655
  }),
656
- B ? /* @__PURE__ */ k("div", {
656
+ R ? /* @__PURE__ */ k("div", {
657
657
  className: "flex items-center justify-between gap-2 rounded-md border border-border-seam bg-surface-secondary px-3 py-2 text-sm",
658
658
  children: [/* @__PURE__ */ k("span", {
659
659
  className: "font-medium text-text-primary",
660
660
  children: [
661
- B.fullName,
661
+ R.fullName,
662
662
  " ",
663
663
  /* @__PURE__ */ k("span", {
664
664
  className: "text-text-secondary",
665
665
  children: [
666
666
  "(",
667
- B.email,
667
+ R.email,
668
668
  ")"
669
669
  ]
670
670
  })
671
671
  ]
672
- }), /* @__PURE__ */ O(F, {
672
+ }), /* @__PURE__ */ O(A, {
673
673
  type: "button",
674
674
  variant: "ghost",
675
675
  size: "sm",
676
676
  onClick: () => {
677
- V(null), d(""), D.current?.focus();
677
+ z(null), c(""), D.current?.focus();
678
678
  },
679
679
  children: "Change"
680
680
  })]
681
- }) : G.length > 0 ? /* @__PURE__ */ O("div", {
681
+ }) : Y.length > 0 ? /* @__PURE__ */ O("div", {
682
682
  className: "divide-y divide-border-seam rounded-md border border-border-seam",
683
- children: G.map((e) => /* @__PURE__ */ k("button", {
683
+ children: Y.map((e) => /* @__PURE__ */ k("button", {
684
684
  type: "button",
685
685
  className: "block w-full px-3 py-2 text-left text-sm hover:bg-surface-secondary",
686
686
  onClick: () => {
687
- V(e), p("MANUAL");
687
+ z(e), p("MANUAL");
688
688
  },
689
689
  children: [
690
690
  /* @__PURE__ */ O("span", {
@@ -698,11 +698,11 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
698
698
  })
699
699
  ]
700
700
  }, e.id))
701
- }) : H && !Q.test(H) && !W.loading ? /* @__PURE__ */ k("p", {
701
+ }) : B && !Q.test(B) && !J.loading ? /* @__PURE__ */ k("p", {
702
702
  className: "text-sm text-text-secondary",
703
703
  children: [
704
704
  "No attendee at this event matches “",
705
- H,
705
+ B,
706
706
  "”."
707
707
  ]
708
708
  }) : null
@@ -713,30 +713,30 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
713
713
  children: [
714
714
  /* @__PURE__ */ O(ye, {
715
715
  label: "Method",
716
- value: f,
716
+ value: u,
717
717
  onChange: p,
718
718
  options: [{
719
719
  value: "QR",
720
720
  label: "QR",
721
- icon: N
721
+ icon: Z
722
722
  }, {
723
723
  value: "MANUAL",
724
724
  label: "Manual",
725
- icon: re
725
+ icon: X
726
726
  }]
727
727
  }),
728
728
  /* @__PURE__ */ O(ye, {
729
729
  label: "Direction",
730
730
  value: m,
731
- onChange: h,
731
+ onChange: g,
732
732
  options: [{
733
733
  value: "IN",
734
734
  label: "In",
735
- icon: te
735
+ icon: ae
736
736
  }, {
737
737
  value: "OUT",
738
738
  label: "Out",
739
- icon: ee
739
+ icon: q
740
740
  }]
741
741
  }),
742
742
  /* @__PURE__ */ k("label", {
@@ -744,17 +744,17 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
744
744
  children: [/* @__PURE__ */ O("span", {
745
745
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
746
746
  children: "Station"
747
- }), /* @__PURE__ */ k(K, {
747
+ }), /* @__PURE__ */ k(V, {
748
748
  value: r || "none",
749
- onValueChange: (e) => a(e === "none" ? "" : e),
750
- children: [/* @__PURE__ */ O(Y, {
749
+ onValueChange: (e) => i(e === "none" ? "" : e),
750
+ children: [/* @__PURE__ */ O(W, {
751
751
  "aria-label": "Station",
752
752
  className: "min-w-40",
753
- children: /* @__PURE__ */ O(X, { placeholder: "No station" })
754
- }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
753
+ children: /* @__PURE__ */ O(G, { placeholder: "No station" })
754
+ }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
755
755
  value: "none",
756
756
  children: "No station"
757
- }), n.filter((e) => $(e.metadata).isActive !== !1).map((e) => /* @__PURE__ */ O(J, {
757
+ }), n.filter((e) => $(e.metadata).isActive !== !1).map((e) => /* @__PURE__ */ O(U, {
758
758
  value: e.id,
759
759
  children: e.name ?? e.id
760
760
  }, e.id))] })]
@@ -765,17 +765,17 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
765
765
  children: [/* @__PURE__ */ O("span", {
766
766
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
767
767
  children: "Session"
768
- }), /* @__PURE__ */ k(K, {
768
+ }), /* @__PURE__ */ k(V, {
769
769
  value: S || "none",
770
770
  onValueChange: (e) => w(e === "none" ? "" : e),
771
- children: [/* @__PURE__ */ O(Y, {
771
+ children: [/* @__PURE__ */ O(W, {
772
772
  "aria-label": "Session",
773
773
  className: "min-w-40",
774
- children: /* @__PURE__ */ O(X, { placeholder: "Whole event" })
775
- }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
774
+ children: /* @__PURE__ */ O(G, { placeholder: "Whole event" })
775
+ }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
776
776
  value: "none",
777
777
  children: "Whole event"
778
- }), ce.map((e) => /* @__PURE__ */ O(J, {
778
+ }), re.map((e) => /* @__PURE__ */ O(U, {
779
779
  value: e.id,
780
780
  children: e.title
781
781
  }, e.id))] })]
@@ -783,12 +783,12 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
783
783
  })
784
784
  ]
785
785
  }),
786
- /* @__PURE__ */ k(F, {
786
+ /* @__PURE__ */ k(A, {
787
787
  type: "submit",
788
788
  size: "lg",
789
- disabled: j || !c.trim(),
789
+ disabled: ne || !s.trim(),
790
790
  className: "h-12 w-full text-base",
791
- children: [/* @__PURE__ */ O(ie, { className: "h-5 w-5" }), j ? "Recording…" : `Check ${m === "OUT" ? "out" : "in"}`]
791
+ children: [/* @__PURE__ */ O(se, { className: "h-5 w-5" }), ne ? "Recording…" : `Check ${m === "OUT" ? "out" : "in"}`]
792
792
  })
793
793
  ]
794
794
  })
@@ -797,38 +797,38 @@ function Se({ eventId: e, eventName: t, stations: n, activeStationId: r, onStati
797
797
  }
798
798
  var Ce = 10, we = 500;
799
799
  function Te() {
800
- let r = c({
800
+ let a = u({
801
801
  limit: 100,
802
802
  offset: 0
803
- }).data?.events.items ?? [], [i, s] = E(""), l = i || void 0, u = r.find((e) => e.id === i), [d, f] = E(""), g = h({
803
+ }).data?.events.items ?? [], [o, l] = E(""), d = o || void 0, f = a.find((e) => e.id === o), [p, m] = E(""), h = t({
804
804
  pageSize: Ce,
805
- resetKey: i
806
- }), _ = n({
807
- eventId: l,
805
+ resetKey: o
806
+ }), _ = i({
807
+ eventId: d,
808
808
  limit: 100,
809
809
  offset: 0
810
- }), x = t({
811
- eventId: l,
812
- limit: g.limit,
813
- offset: g.offset
814
- }), S = t({
815
- eventId: l,
810
+ }), x = r({
811
+ eventId: d,
812
+ limit: h.limit,
813
+ offset: h.offset
814
+ }), S = r({
815
+ eventId: d,
816
816
  limit: we,
817
817
  offset: 0
818
- }), C = e({
819
- eventId: l,
818
+ }), C = n({
819
+ eventId: d,
820
820
  limit: 200,
821
821
  offset: 0
822
- }), T = w(() => _.data?.checkInStations.items ?? [], [_.data]), ee = x.data?.checkInRecords.items ?? [], te = x.data?.checkInRecords.total ?? 0, A = w(() => S.data?.checkInRecords.items ?? [], [S.data]), j = w(() => C.data?.attendees.items ?? [], [C.data]), ne = C.data?.attendees.total ?? 0, re = w(() => {
822
+ }), T = w(() => _.data?.checkInStations.items ?? [], [_.data]), N = x.data?.checkInRecords.items ?? [], P = x.data?.checkInRecords.total ?? 0, F = w(() => S.data?.checkInRecords.items ?? [], [S.data]), I = w(() => C.data?.attendees.items ?? [], [C.data]), L = C.data?.attendees.total ?? 0, R = w(() => {
823
823
  let e = /* @__PURE__ */ new Map();
824
- for (let t of j) e.set(t.id, t.fullName);
824
+ for (let t of I) e.set(t.id, t.fullName);
825
825
  return e;
826
- }, [j]), ie = w(() => {
826
+ }, [I]), z = w(() => {
827
827
  let e = /* @__PURE__ */ new Map();
828
828
  for (let t of T) e.set(t.id, t.name ?? t.id);
829
829
  return e;
830
- }, [T]), { checkedInCount: N, stationCounts: oe } = w(() => {
831
- let e = /* @__PURE__ */ new Set(), t = { count: 0 }, n = /* @__PURE__ */ new Map(), r = [...A].sort((e, t) => new Date(e.recordedAt).getTime() - new Date(t.recordedAt).getTime());
830
+ }, [T]), { checkedInCount: B, stationCounts: K } = w(() => {
831
+ let e = /* @__PURE__ */ new Set(), t = { count: 0 }, n = /* @__PURE__ */ new Map(), r = [...F].sort((e, t) => new Date(e.recordedAt).getTime() - new Date(t.recordedAt).getTime());
832
832
  for (let i of r) {
833
833
  let r = i.attendeeId ?? "";
834
834
  if (i.direction === "OUT" ? r ? e.delete(r) : t.count > 0 && --t.count : r ? e.add(r) : t.count += 1, i.stationId && i.direction !== "OUT") {
@@ -842,32 +842,32 @@ function Te() {
842
842
  checkedInCount: e.size + t.count,
843
843
  stationCounts: i
844
844
  };
845
- }, [A]), P = ne, R = P > 0 ? Math.min(100, Math.round(N / P * 100)) : 0, [z] = o(), [V] = a(), [H, U] = E(!1), [ue, W] = E(void 0), [G, Z] = E(!1), [Q, fe] = E(null), pe = () => {
846
- W(void 0), U(!0);
845
+ }, [F]), q = L, ae = q > 0 ? Math.min(100, Math.round(B / q * 100)) : 0, [J] = c(), [Y] = s(), [oe, X] = E(!1), [se, Z] = E(void 0), [ue, de] = E(!1), [Q, fe] = E(null), pe = () => {
846
+ Z(void 0), X(!0);
847
847
  }, me = (e) => {
848
- W(e), U(!0);
848
+ Z(e), X(!0);
849
849
  }, $ = (e) => {
850
- fe(e), Z(!0);
850
+ fe(e), de(!0);
851
851
  }, he = b(), ve = (e) => {
852
852
  e.registrationId && he(e.registrationId, e.stationId ?? null);
853
853
  }, ye = async (e) => {
854
- let t = await z({ variables: { id: e.id } });
855
- v(t, t.data?.deleteCheckInStation ? e.id : null, "Could not delete station") && (d === e.id && f(""), y.success("Station deleted", `“${e.name ?? e.id}” was removed.`));
854
+ let t = await J({ variables: { id: e.id } });
855
+ v(t, t.data?.deleteCheckInStation ? e.id : null, "Could not delete station") && (p === e.id && m(""), y.success("Station deleted", `“${e.name ?? e.id}” was removed.`));
856
856
  }, Te = async (e) => {
857
- let t = await V({ variables: { id: e.id } });
857
+ let t = await Y({ variables: { id: e.id } });
858
858
  v(t, t.data?.deleteCheckInRecord ? e.id : null, "Could not delete record") && y.success("Check-in record deleted");
859
859
  }, Ee = () => {
860
860
  x.refetch(), S.refetch();
861
- }, De = (e) => e.attendeeId ? re.get(e.attendeeId) ?? `Attendee ${e.attendeeId.slice(0, 8)}` : "Walk-in guest", Oe = !!i;
861
+ }, De = (e) => e.attendeeId ? R.get(e.attendeeId) ?? `Attendee ${e.attendeeId.slice(0, 8)}` : "Walk-in guest", Oe = !!o;
862
862
  return /* @__PURE__ */ k("div", {
863
863
  className: "space-y-6 p-6",
864
864
  children: [
865
- /* @__PURE__ */ O(B, { children: "Kiosks are the front desk of your event. Each check-in station is a device or counter where attendees scan in, and check-in records are the live log of who arrived and when. Configure your stations before doors open, then check attendees in from this page and watch arrivals flow in on the day." }),
866
- /* @__PURE__ */ O(ce, { children: /* @__PURE__ */ k("div", {
865
+ /* @__PURE__ */ O(re, { children: "Kiosks are the front desk of your event. Each check-in station is a device or counter where attendees scan in, and check-in records are the live log of who arrived and when. Configure your stations before doors open, then check attendees in from this page and watch arrivals flow in on the day." }),
866
+ /* @__PURE__ */ O(te, { children: /* @__PURE__ */ k("div", {
867
867
  className: "flex flex-wrap items-start justify-between gap-4",
868
868
  children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("h1", {
869
869
  className: "text-2xl font-bold text-text-primary",
870
- children: [/* @__PURE__ */ O(I, { children: "Kiosk" }), " & Check-In"]
870
+ children: [/* @__PURE__ */ O(ne, { children: "Kiosk" }), " & Check-In"]
871
871
  }), /* @__PURE__ */ O("p", {
872
872
  className: "mt-1 text-sm text-text-secondary",
873
873
  children: "Manage check-in stations and record attendee arrivals against a live backend."
@@ -878,26 +878,26 @@ function Te() {
878
878
  children: [/* @__PURE__ */ O("span", {
879
879
  className: "font-medium text-text-primary",
880
880
  children: "Event"
881
- }), /* @__PURE__ */ k(K, {
882
- value: i || "all",
883
- onValueChange: (e) => s(e === "all" ? "" : e),
884
- children: [/* @__PURE__ */ O(Y, {
881
+ }), /* @__PURE__ */ k(V, {
882
+ value: o || "all",
883
+ onValueChange: (e) => l(e === "all" ? "" : e),
884
+ children: [/* @__PURE__ */ O(W, {
885
885
  "aria-label": "Event",
886
886
  className: "min-w-52",
887
- children: /* @__PURE__ */ O(X, { placeholder: "All events" })
888
- }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
887
+ children: /* @__PURE__ */ O(G, { placeholder: "All events" })
888
+ }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
889
889
  value: "all",
890
890
  children: "All events"
891
- }), r.map((e) => /* @__PURE__ */ O(J, {
891
+ }), a.map((e) => /* @__PURE__ */ O(U, {
892
892
  value: e.id,
893
893
  children: e.name
894
894
  }, e.id))] })]
895
895
  })]
896
- }), /* @__PURE__ */ k(F, {
896
+ }), /* @__PURE__ */ k(A, {
897
897
  type: "button",
898
898
  onClick: pe,
899
899
  disabled: !Oe,
900
- children: [/* @__PURE__ */ O(M, { className: "h-4 w-4" }), "New station"]
900
+ children: [/* @__PURE__ */ O(ce, { className: "h-4 w-4" }), "New station"]
901
901
  })]
902
902
  })]
903
903
  }) }),
@@ -906,11 +906,11 @@ function Te() {
906
906
  children: [/* @__PURE__ */ O("div", {
907
907
  className: "lg:col-span-5",
908
908
  children: /* @__PURE__ */ O(Se, {
909
- eventId: i,
910
- eventName: u?.name ?? "this event",
909
+ eventId: o,
910
+ eventName: f?.name ?? "this event",
911
911
  stations: T,
912
- activeStationId: d,
913
- onStationChange: f,
912
+ activeStationId: p,
913
+ onStationChange: m,
914
914
  onCheckedIn: Ee
915
915
  })
916
916
  }), /* @__PURE__ */ k("div", {
@@ -923,19 +923,19 @@ function Te() {
923
923
  /* @__PURE__ */ k("div", {
924
924
  className: "mt-3 flex flex-wrap gap-2",
925
925
  children: [T.map((e) => {
926
- let t = d === e.id, n = oe.get(e.id) ?? 0;
926
+ let t = p === e.id, n = K.get(e.id) ?? 0;
927
927
  return /* @__PURE__ */ k("div", {
928
928
  className: `group inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-colors ${t ? "border-accent-primary bg-accent-primary/10 text-accent-primary" : "border-border-default bg-bg-surface text-text-secondary hover:border-border-strong"}`,
929
929
  children: [/* @__PURE__ */ k("button", {
930
930
  type: "button",
931
931
  "aria-pressed": t,
932
- onClick: () => f(t ? "" : e.id),
932
+ onClick: () => m(t ? "" : e.id),
933
933
  className: "inline-flex items-center gap-1.5 font-medium outline-none",
934
934
  children: [e.name ?? e.id, n > 0 ? /* @__PURE__ */ O("span", {
935
935
  className: "rounded-full bg-bg-sunken px-1.5 py-0.5 text-xs tabular-nums text-text-secondary",
936
936
  children: n
937
937
  }) : null]
938
- }), /* @__PURE__ */ O(p, {
938
+ }), /* @__PURE__ */ O(g, {
939
939
  ariaLabel: `Station ${e.name ?? e.id} actions`,
940
940
  entityName: e.name ?? void 0,
941
941
  onEdit: () => me(e),
@@ -946,14 +946,14 @@ function Te() {
946
946
  type: "button",
947
947
  onClick: pe,
948
948
  className: "inline-flex items-center gap-1.5 rounded-full border border-dashed border-border-strong px-3 py-1.5 text-sm font-medium text-text-secondary transition-colors hover:border-accent-primary hover:text-accent-primary",
949
- children: [/* @__PURE__ */ O(M, { className: "h-3.5 w-3.5" }), "New station"]
949
+ children: [/* @__PURE__ */ O(ce, { className: "h-3.5 w-3.5" }), "New station"]
950
950
  })]
951
951
  }),
952
952
  _.loading && T.length === 0 ? /* @__PURE__ */ O("p", {
953
953
  className: "mt-2 text-sm text-text-secondary",
954
954
  children: "Loading stations…"
955
955
  }) : null
956
- ] }), /* @__PURE__ */ k(le, {
956
+ ] }), /* @__PURE__ */ k(j, {
957
957
  treatment: "plain",
958
958
  className: "border-border-seam p-5",
959
959
  children: [
@@ -969,44 +969,44 @@ function Te() {
969
969
  " ",
970
970
  /* @__PURE__ */ O("span", {
971
971
  className: "text-lg font-bold tabular-nums text-text-primary",
972
- children: N.toLocaleString()
972
+ children: B.toLocaleString()
973
973
  }),
974
- P > 0 ? /* @__PURE__ */ k(D, { children: [
974
+ q > 0 ? /* @__PURE__ */ k(D, { children: [
975
975
  " ",
976
976
  "/ ",
977
977
  /* @__PURE__ */ O("span", {
978
978
  className: "tabular-nums",
979
- children: P.toLocaleString()
979
+ children: q.toLocaleString()
980
980
  })
981
981
  ] }) : null
982
982
  ]
983
983
  })]
984
984
  }),
985
- P > 0 ? /* @__PURE__ */ O("div", {
985
+ q > 0 ? /* @__PURE__ */ O("div", {
986
986
  className: "mt-3 h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
987
987
  role: "progressbar",
988
- "aria-valuenow": N,
988
+ "aria-valuenow": B,
989
989
  "aria-valuemin": 0,
990
- "aria-valuemax": P,
990
+ "aria-valuemax": q,
991
991
  "aria-label": "Attendees checked in",
992
992
  children: /* @__PURE__ */ O("div", {
993
993
  className: "h-full rounded-full bg-action-primary-bg transition-[width] duration-500",
994
- style: { width: `${R}%` }
994
+ style: { width: `${ae}%` }
995
995
  })
996
996
  }) : null,
997
997
  /* @__PURE__ */ O("div", {
998
998
  className: "mt-4",
999
- children: ee.length === 0 ? /* @__PURE__ */ O(L, {
999
+ children: N.length === 0 ? /* @__PURE__ */ O(M, {
1000
1000
  illustration: "empty-data",
1001
1001
  title: x.loading ? "Loading check-in records…" : "No check-in records yet",
1002
1002
  description: "Arrivals recorded from this kiosk show up here, newest first.",
1003
1003
  className: "py-8"
1004
- }) : /* @__PURE__ */ O(de, {
1004
+ }) : /* @__PURE__ */ O(ie, {
1005
1005
  className: "max-h-[28rem] pr-3",
1006
1006
  children: /* @__PURE__ */ O("ul", {
1007
1007
  className: "space-y-2.5",
1008
- children: ee.map((e) => {
1009
- let t = De(e), n = e.direction === "OUT", r = e.stationId ? ie.get(e.stationId) : null;
1008
+ children: N.map((e) => {
1009
+ let t = De(e), n = e.direction === "OUT", r = e.stationId ? z.get(e.stationId) : null;
1010
1010
  return /* @__PURE__ */ k("li", {
1011
1011
  className: "flex items-center gap-3 rounded-card border border-border-seam bg-bg-surface p-3 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1",
1012
1012
  children: [
@@ -1032,7 +1032,7 @@ function Te() {
1032
1032
  /* @__PURE__ */ k("div", {
1033
1033
  className: "flex shrink-0 items-center gap-2",
1034
1034
  children: [
1035
- /* @__PURE__ */ O(se, {
1035
+ /* @__PURE__ */ O(ee, {
1036
1036
  variant: n ? "secondary" : "success",
1037
1037
  className: "uppercase",
1038
1038
  children: n ? "Checked out" : "Checked in"
@@ -1041,14 +1041,14 @@ function Te() {
1041
1041
  className: "hidden text-sm text-text-secondary sm:inline",
1042
1042
  children: r
1043
1043
  }) : null,
1044
- /* @__PURE__ */ O(p, {
1044
+ /* @__PURE__ */ O(g, {
1045
1045
  ariaLabel: `Check-in record ${e.id} actions`,
1046
1046
  onEdit: () => $(e),
1047
1047
  onDelete: () => Te(e),
1048
1048
  extraItems: !n && e.registrationId ? [{
1049
1049
  key: "print-badge",
1050
1050
  label: "Print badge",
1051
- icon: ae,
1051
+ icon: le,
1052
1052
  onSelect: () => ve(e)
1053
1053
  }] : []
1054
1054
  })
@@ -1060,39 +1060,39 @@ function Te() {
1060
1060
  })
1061
1061
  })
1062
1062
  }),
1063
- /* @__PURE__ */ O(m, {
1064
- offset: g.offset,
1065
- limit: g.limit,
1066
- loadedCount: ee.length,
1067
- total: te,
1068
- onPrev: g.prevPage,
1069
- onNext: g.nextPage,
1063
+ /* @__PURE__ */ O(e, {
1064
+ offset: h.offset,
1065
+ limit: h.limit,
1066
+ loadedCount: N.length,
1067
+ total: P,
1068
+ onPrev: h.prevPage,
1069
+ onNext: h.nextPage,
1070
1070
  itemLabel: "records",
1071
1071
  loading: x.loading
1072
1072
  })
1073
1073
  ]
1074
1074
  })]
1075
1075
  })]
1076
- }) : /* @__PURE__ */ O(le, {
1076
+ }) : /* @__PURE__ */ O(j, {
1077
1077
  treatment: "plain",
1078
1078
  className: "border-border-seam p-5",
1079
- children: /* @__PURE__ */ O(L, {
1079
+ children: /* @__PURE__ */ O(M, {
1080
1080
  illustration: "empty-data",
1081
1081
  title: "Select an event to open the kiosk",
1082
1082
  description: "Check-in stations and records belong to a specific event. Pick one above to start scanning attendees in.",
1083
1083
  className: "py-8"
1084
1084
  })
1085
1085
  }),
1086
- i ? /* @__PURE__ */ O(be, {
1087
- open: H,
1088
- onOpenChange: U,
1089
- eventId: i,
1090
- eventName: u?.name ?? "this event",
1091
- station: ue
1086
+ o ? /* @__PURE__ */ O(be, {
1087
+ open: oe,
1088
+ onOpenChange: X,
1089
+ eventId: o,
1090
+ eventName: f?.name ?? "this event",
1091
+ station: se
1092
1092
  }) : null,
1093
1093
  /* @__PURE__ */ O(xe, {
1094
- open: G,
1095
- onOpenChange: Z,
1094
+ open: ue,
1095
+ onOpenChange: de,
1096
1096
  record: Q,
1097
1097
  stations: T
1098
1098
  })