@burdenoff/microfe-eventfullymanaged 2026.1110.5 → 2026.1110.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
- import { useAttendeesQuery as e, useCheckInRecordsQuery as t, useCheckInStationsQuery as n, useCreateCheckInRecordMutation as r, useCreateCheckInStationMutation as i, useDeleteCheckInRecordMutation as a, useDeleteCheckInStationMutation as o, useEventSessionsQuery as s, useEventsQuery as c, useScanCheckInMutation as l, useUpdateCheckInRecordMutation as u, useUpdateCheckInStationMutation as d } from "../../api/eventApi.js";
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";
2
2
  import "../../components/index.js";
3
- import { ActionMenu as f } from "../../components/ActionMenu.js";
4
- import { Pagination as p, usePagination as m } from "../../components/Pagination.js";
5
- import { enqueuePendingScan as h } from "../../lib/offlineCheckInQueue.js";
6
- import { describeError as g, mutationSucceeded as _ } from "../../lib/mutationResult.js";
7
- import { notify as v } from "../../lib/toast.js";
8
- import { useBadgePrint as y } from "../../lib/useBadgePrint.js";
9
- import { useOfflineCheckInSync as b } from "../../lib/useOfflineCheckInSync.js";
10
- import { useCallback as x, useEffect as S, useMemo as C, useRef as w, useState as T } from "react";
11
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
12
- import { ArrowLeftFromLine as k, ArrowRightToLine as A, Camera as j, CameraOff as M, CloudOff as N, Keyboard as ee, LogIn as te, Plus as P, Printer as ne, QrCode as re, RefreshCw as F, ScanLine as ie } from "lucide-react";
13
- import { Badge as ae, Button as I, EmphasisPanel as oe, GlassCard as L, GradientText as R, IllustratedEmptyState as z, Input as B, Label as V, PagePurpose as se, ResponsiveDialog as H, ResponsiveDialogContent as U, ResponsiveDialogDescription as W, ResponsiveDialogFooter as G, ResponsiveDialogHeader as K, ResponsiveDialogTitle as q, ScrollArea as ce, Select as J, SelectContent as Y, SelectItem as X, SelectTrigger as Z, SelectValue as Q, Switch as le } from "@burdenoff/fe-libs/ui";
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";
6
+ import { describeError as _, mutationSucceeded as v } from "../../lib/mutationResult.js";
7
+ import { notify as y } from "../../lib/toast.js";
8
+ import { useBadgePrint as b } from "../../lib/useBadgePrint.js";
9
+ import { useOfflineCheckInSync as x } from "../../lib/useOfflineCheckInSync.js";
10
+ import { useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
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";
14
14
  // src/eventfullymanaged/pages/modules/KioskPage.tsx
15
- var ue = /^[^.\s]+\.[0-9a-f]{64}$/i, de = [
15
+ var Q = /^[^.\s]+\.[0-9a-f]{64}$/i, fe = [
16
16
  "DESK",
17
17
  "GATE",
18
18
  "SELF_SERVICE",
19
19
  "MOBILE"
20
- ], fe = ["QR", "MANUAL"], pe = ["IN", "OUT"];
20
+ ], pe = ["QR", "MANUAL"], me = ["IN", "OUT"];
21
21
  function $(e) {
22
22
  if (!e || typeof e != "object") return {};
23
23
  let t = e;
@@ -29,30 +29,30 @@ function $(e) {
29
29
  autoPrintBadge: typeof t.autoPrintBadge == "boolean" ? t.autoPrintBadge : void 0
30
30
  };
31
31
  }
32
- function me(e) {
32
+ function he(e) {
33
33
  return e.trim().toUpperCase().replace(/[^A-Z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 24) || "STATION";
34
34
  }
35
- function he(e) {
35
+ function ge(e) {
36
36
  let t = e.trim().split(/\s+/).filter(Boolean);
37
37
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
38
38
  }
39
- function ge(e) {
39
+ function _e(e) {
40
40
  let t = new Date(e);
41
41
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleTimeString([], {
42
42
  hour: "numeric",
43
43
  minute: "2-digit"
44
44
  });
45
45
  }
46
- function _e({ onDetected: e }) {
47
- let t = typeof window < "u" && !!window.BarcodeDetector, n = w(null), r = w(null), i = w(null), [a, o] = T(!1), [s, c] = T(null), l = x(() => {
46
+ function ve({ onDetected: e }) {
47
+ let t = typeof window < "u" && !!window.BarcodeDetector, n = T(null), r = T(null), i = T(null), [a, o] = E(!1), [s, c] = E(null), l = S(() => {
48
48
  if (i.current &&= (clearInterval(i.current), null), r.current) {
49
49
  for (let e of r.current.getTracks()) e.stop();
50
50
  r.current = null;
51
51
  }
52
52
  n.current && (n.current.srcObject = null), o(!1);
53
53
  }, []);
54
- S(() => l, [l]);
55
- let u = x(async () => {
54
+ C(() => l, [l]);
55
+ let u = S(async () => {
56
56
  if (t && window.BarcodeDetector) {
57
57
  c(null);
58
58
  try {
@@ -80,63 +80,63 @@ function _e({ onDetected: e }) {
80
80
  l,
81
81
  t
82
82
  ]);
83
- return /* @__PURE__ */ O("div", {
83
+ return /* @__PURE__ */ k("div", {
84
84
  className: "relative aspect-square w-full overflow-hidden rounded-card border-2 border-accent-primary/70 bg-bg-sunken",
85
85
  children: [
86
- /* @__PURE__ */ D("video", {
86
+ /* @__PURE__ */ O("video", {
87
87
  ref: n,
88
88
  className: `h-full w-full object-cover transition-opacity duration-300 ${a ? "opacity-100" : "opacity-0"}`,
89
89
  muted: !0,
90
90
  playsInline: !0,
91
91
  "aria-label": "Attendee QR camera preview"
92
92
  }),
93
- /* @__PURE__ */ D("div", {
93
+ /* @__PURE__ */ O("div", {
94
94
  className: "pointer-events-none absolute inset-0 p-5",
95
- children: /* @__PURE__ */ O("div", {
95
+ children: /* @__PURE__ */ k("div", {
96
96
  className: "relative h-full w-full",
97
97
  children: [
98
- /* @__PURE__ */ D("span", { className: "absolute left-0 top-0 h-10 w-10 rounded-tl-lg border-l-4 border-t-4 border-accent-primary" }),
99
- /* @__PURE__ */ D("span", { className: "absolute right-0 top-0 h-10 w-10 rounded-tr-lg border-r-4 border-t-4 border-accent-primary" }),
100
- /* @__PURE__ */ D("span", { className: "absolute bottom-0 left-0 h-10 w-10 rounded-bl-lg border-b-4 border-l-4 border-accent-primary" }),
101
- /* @__PURE__ */ D("span", { className: "absolute bottom-0 right-0 h-10 w-10 rounded-br-lg border-b-4 border-r-4 border-accent-primary" }),
102
- a ? /* @__PURE__ */ D("span", { className: "absolute inset-x-6 top-1/2 h-0.5 animate-pulse bg-accent-primary/80" }) : null
98
+ /* @__PURE__ */ O("span", { className: "absolute left-0 top-0 h-10 w-10 rounded-tl-lg border-l-4 border-t-4 border-accent-primary" }),
99
+ /* @__PURE__ */ O("span", { className: "absolute right-0 top-0 h-10 w-10 rounded-tr-lg border-r-4 border-t-4 border-accent-primary" }),
100
+ /* @__PURE__ */ O("span", { className: "absolute bottom-0 left-0 h-10 w-10 rounded-bl-lg border-b-4 border-l-4 border-accent-primary" }),
101
+ /* @__PURE__ */ O("span", { className: "absolute bottom-0 right-0 h-10 w-10 rounded-br-lg border-b-4 border-r-4 border-accent-primary" }),
102
+ a ? /* @__PURE__ */ O("span", { className: "absolute inset-x-6 top-1/2 h-0.5 animate-pulse bg-accent-primary/80" }) : null
103
103
  ]
104
104
  })
105
105
  }),
106
- a ? /* @__PURE__ */ O("div", {
106
+ a ? /* @__PURE__ */ k("div", {
107
107
  className: "absolute inset-x-0 bottom-0 flex items-center justify-between gap-2 bg-bg-canvas/70 p-3 backdrop-blur",
108
- children: [/* @__PURE__ */ O("span", {
108
+ children: [/* @__PURE__ */ k("span", {
109
109
  className: "flex items-center gap-1.5 text-xs font-medium text-text-primary",
110
- children: [/* @__PURE__ */ D("span", { className: "h-2 w-2 animate-pulse rounded-full bg-status-success-text" }), "Scanning…"]
111
- }), /* @__PURE__ */ O(I, {
110
+ children: [/* @__PURE__ */ O("span", { className: "h-2 w-2 animate-pulse rounded-full bg-status-success-text" }), "Scanning…"]
111
+ }), /* @__PURE__ */ k(F, {
112
112
  type: "button",
113
113
  size: "sm",
114
114
  variant: "outline",
115
115
  onClick: l,
116
- children: [/* @__PURE__ */ D(M, { className: "h-4 w-4" }), "Stop"]
116
+ children: [/* @__PURE__ */ O(j, { className: "h-4 w-4" }), "Stop"]
117
117
  })]
118
- }) : /* @__PURE__ */ O("div", {
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__ */ D(re, {
121
+ /* @__PURE__ */ O(N, {
122
122
  className: "h-16 w-16 text-text-muted",
123
123
  "aria-hidden": "true"
124
124
  }),
125
- /* @__PURE__ */ D("p", {
125
+ /* @__PURE__ */ O("p", {
126
126
  className: "text-lg font-semibold text-text-primary",
127
127
  children: "Scan attendee QR"
128
128
  }),
129
- t ? /* @__PURE__ */ O(I, {
129
+ t ? /* @__PURE__ */ k(F, {
130
130
  type: "button",
131
131
  size: "sm",
132
132
  variant: "secondary",
133
133
  onClick: () => void u(),
134
- children: [/* @__PURE__ */ D(j, { className: "h-4 w-4" }), "Start camera"]
135
- }) : /* @__PURE__ */ D("p", {
134
+ children: [/* @__PURE__ */ O(A, { className: "h-4 w-4" }), "Start camera"]
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."
138
138
  }),
139
- s ? /* @__PURE__ */ D("p", {
139
+ s ? /* @__PURE__ */ O("p", {
140
140
  className: "max-w-56 text-xs text-status-danger-text",
141
141
  children: s
142
142
  }) : null
@@ -145,31 +145,31 @@ function _e({ onDetected: e }) {
145
145
  ]
146
146
  });
147
147
  }
148
- function ve({ label: e, value: t, options: n, onChange: r }) {
149
- return /* @__PURE__ */ O("div", {
148
+ function ye({ label: e, value: t, options: n, onChange: r }) {
149
+ return /* @__PURE__ */ k("div", {
150
150
  className: "space-y-1.5",
151
- children: [/* @__PURE__ */ D("span", {
151
+ children: [/* @__PURE__ */ O("span", {
152
152
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
153
153
  children: e
154
- }), /* @__PURE__ */ D("div", {
154
+ }), /* @__PURE__ */ O("div", {
155
155
  role: "group",
156
156
  "aria-label": e,
157
157
  className: "inline-flex rounded-input border border-border-default bg-bg-sunken p-0.5",
158
158
  children: n.map((e) => {
159
159
  let n = e.icon, i = e.value === t;
160
- return /* @__PURE__ */ O("button", {
160
+ return /* @__PURE__ */ k("button", {
161
161
  type: "button",
162
162
  "aria-pressed": i,
163
163
  onClick: () => r(e.value),
164
164
  className: `inline-flex items-center gap-1.5 rounded-[calc(var(--radius-input)-2px)] px-3 py-1.5 text-sm font-medium transition-colors ${i ? "bg-action-primary-bg text-action-primary-text shadow-elevation-1" : "text-text-secondary hover:text-text-primary"}`,
165
- children: [n ? /* @__PURE__ */ D(n, { className: "h-4 w-4" }) : null, e.label]
165
+ children: [n ? /* @__PURE__ */ O(n, { className: "h-4 w-4" }) : null, e.label]
166
166
  }, e.value);
167
167
  })
168
168
  })]
169
169
  });
170
170
  }
171
- function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a }) {
172
- let o = !!a, [s, { loading: c }] = i(), [l, { loading: u }] = d(), f = C(() => {
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
173
  if (!a) return {
174
174
  name: "",
175
175
  code: "",
@@ -181,39 +181,39 @@ function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a })
181
181
  let e = $(a.metadata);
182
182
  return {
183
183
  name: a.name ?? "",
184
- code: e.code ?? me(a.name ?? ""),
184
+ code: e.code ?? he(a.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] = T(f), [h, y] = T(null), b = `${e ? "open" : "closed"}:${a?.id ?? "new"}`;
191
- e && h !== b && (y(b), m(f)), !e && h !== null && y(null);
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);
192
192
  let x = (e, t) => {
193
193
  m((n) => ({
194
194
  ...n,
195
195
  [e]: t
196
196
  }));
197
197
  }, S = c || u;
198
- return /* @__PURE__ */ D(H, {
198
+ return /* @__PURE__ */ O(V, {
199
199
  open: e,
200
200
  onOpenChange: t,
201
- children: /* @__PURE__ */ O(U, {
201
+ children: /* @__PURE__ */ k(H, {
202
202
  className: "max-w-lg",
203
203
  children: [
204
- /* @__PURE__ */ O(K, { children: [/* @__PURE__ */ D(q, { children: o ? "Edit check-in station" : "New check-in station" }), /* @__PURE__ */ O(W, { children: [
204
+ /* @__PURE__ */ k(W, { children: [/* @__PURE__ */ O(G, { children: o ? "Edit check-in station" : "New check-in station" }), /* @__PURE__ */ k(U, { children: [
205
205
  "A station is a desk, gate or device where attendees scan in at ",
206
- r,
206
+ i,
207
207
  "."
208
208
  ] })] }),
209
- /* @__PURE__ */ O("form", {
209
+ /* @__PURE__ */ k("form", {
210
210
  id: "station-form",
211
211
  onSubmit: async (e) => {
212
212
  e.preventDefault();
213
- let i = p.code.trim() || me(p.name), c = {
213
+ let r = p.code.trim() || he(p.name), c = {
214
214
  eventId: n,
215
215
  name: p.name.trim(),
216
- code: i,
216
+ code: r,
217
217
  location: p.location.trim() || null,
218
218
  isActive: p.isActive,
219
219
  kioskConfig: {
@@ -221,7 +221,7 @@ function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a })
221
221
  autoPrintBadge: p.autoPrintBadge
222
222
  },
223
223
  metadata: {
224
- code: i,
224
+ code: r,
225
225
  location: p.location.trim(),
226
226
  type: p.type,
227
227
  isActive: p.isActive,
@@ -234,101 +234,101 @@ function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a })
234
234
  id: a.id,
235
235
  input: c
236
236
  } });
237
- if (!_(e, e.data?.updateCheckInStation?.id, "Could not update station")) return;
238
- v.success("Station updated", `“${c.name}” is now ${p.isActive ? "active" : "disabled"}.`);
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"}.`);
239
239
  } else {
240
240
  let e = await s({ variables: { input: c } });
241
- if (!_(e, e.data?.createCheckInStation?.id, "Could not create station")) return;
242
- v.success("Station created", `“${c.name}” is ready at ${r}.`);
241
+ if (!v(e, e.data?.createCheckInStation?.id, "Could not create station")) return;
242
+ y.success("Station created", `“${c.name}” is ready at ${i}.`);
243
243
  }
244
244
  t(!1);
245
245
  } catch (e) {
246
- v.error("Could not save station", g(e));
246
+ y.error("Could not save station", _(e));
247
247
  }
248
248
  },
249
249
  className: "space-y-4",
250
250
  children: [
251
- /* @__PURE__ */ O("div", {
251
+ /* @__PURE__ */ k("div", {
252
252
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
253
- children: [/* @__PURE__ */ O("label", {
253
+ children: [/* @__PURE__ */ k("label", {
254
254
  className: "space-y-1 text-sm",
255
- children: [/* @__PURE__ */ D("span", {
255
+ children: [/* @__PURE__ */ O("span", {
256
256
  className: "font-medium text-text-primary",
257
257
  children: "Name"
258
- }), /* @__PURE__ */ D(B, {
258
+ }), /* @__PURE__ */ O(R, {
259
259
  value: p.name,
260
260
  onChange: (e) => x("name", e.target.value),
261
261
  placeholder: "Main entrance",
262
262
  required: !0
263
263
  })]
264
- }), /* @__PURE__ */ O("label", {
264
+ }), /* @__PURE__ */ k("label", {
265
265
  className: "space-y-1 text-sm",
266
- children: [/* @__PURE__ */ D("span", {
266
+ children: [/* @__PURE__ */ O("span", {
267
267
  className: "font-medium text-text-primary",
268
268
  children: "Code"
269
- }), /* @__PURE__ */ D(B, {
269
+ }), /* @__PURE__ */ O(R, {
270
270
  value: p.code,
271
271
  onChange: (e) => x("code", e.target.value),
272
272
  placeholder: "Auto from name"
273
273
  })]
274
274
  })]
275
275
  }),
276
- /* @__PURE__ */ O("div", {
276
+ /* @__PURE__ */ k("div", {
277
277
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
278
- children: [/* @__PURE__ */ O("label", {
278
+ children: [/* @__PURE__ */ k("label", {
279
279
  className: "space-y-1 text-sm",
280
- children: [/* @__PURE__ */ D("span", {
280
+ children: [/* @__PURE__ */ O("span", {
281
281
  className: "font-medium text-text-primary",
282
282
  children: "Location"
283
- }), /* @__PURE__ */ D(B, {
283
+ }), /* @__PURE__ */ O(R, {
284
284
  value: p.location,
285
285
  onChange: (e) => x("location", e.target.value),
286
286
  placeholder: "North lobby"
287
287
  })]
288
- }), /* @__PURE__ */ O("label", {
288
+ }), /* @__PURE__ */ k("label", {
289
289
  className: "space-y-1 text-sm",
290
- children: [/* @__PURE__ */ D("span", {
290
+ children: [/* @__PURE__ */ O("span", {
291
291
  className: "font-medium text-text-primary",
292
292
  children: "Type"
293
- }), /* @__PURE__ */ O(J, {
293
+ }), /* @__PURE__ */ k(K, {
294
294
  value: p.type,
295
295
  onValueChange: (e) => x("type", e),
296
- children: [/* @__PURE__ */ D(Z, {
296
+ children: [/* @__PURE__ */ O(Y, {
297
297
  "aria-label": "Station type",
298
- children: /* @__PURE__ */ D(Q, {})
299
- }), /* @__PURE__ */ D(Y, { children: de.map((e) => /* @__PURE__ */ D(X, {
298
+ children: /* @__PURE__ */ O(X, {})
299
+ }), /* @__PURE__ */ O(q, { children: fe.map((e) => /* @__PURE__ */ O(J, {
300
300
  value: e,
301
301
  children: e.replace("_", " ")
302
302
  }, e)) })]
303
303
  })]
304
304
  })]
305
305
  }),
306
- /* @__PURE__ */ O("div", {
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__ */ O("div", { children: [/* @__PURE__ */ D(V, {
308
+ children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(z, {
309
309
  htmlFor: "station-active",
310
310
  className: "text-text-primary",
311
311
  children: "Active"
312
- }), /* @__PURE__ */ D("p", {
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__ */ D(le, {
315
+ })] }), /* @__PURE__ */ O(Z, {
316
316
  id: "station-active",
317
317
  checked: p.isActive,
318
318
  onCheckedChange: (e) => x("isActive", e),
319
319
  "aria-label": "Station active"
320
320
  })]
321
321
  }),
322
- /* @__PURE__ */ O("div", {
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__ */ O("div", { children: [/* @__PURE__ */ D(V, {
324
+ children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(z, {
325
325
  htmlFor: "station-auto-print-badge",
326
326
  className: "text-text-primary",
327
327
  children: "Auto-print badge"
328
- }), /* @__PURE__ */ D("p", {
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__ */ D(le, {
331
+ })] }), /* @__PURE__ */ O(Z, {
332
332
  id: "station-auto-print-badge",
333
333
  checked: p.autoPrintBadge,
334
334
  onCheckedChange: (e) => x("autoPrintBadge", e),
@@ -337,13 +337,13 @@ function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a })
337
337
  })
338
338
  ]
339
339
  }),
340
- /* @__PURE__ */ O(G, { children: [/* @__PURE__ */ D(I, {
340
+ /* @__PURE__ */ k(ue, { children: [/* @__PURE__ */ O(F, {
341
341
  type: "button",
342
342
  variant: "outline",
343
343
  onClick: () => t(!1),
344
344
  disabled: S,
345
345
  children: "Cancel"
346
- }), /* @__PURE__ */ D(I, {
346
+ }), /* @__PURE__ */ O(F, {
347
347
  type: "submit",
348
348
  form: "station-form",
349
349
  disabled: S,
@@ -353,29 +353,29 @@ function ye({ open: e, onOpenChange: t, eventId: n, eventName: r, station: a })
353
353
  })
354
354
  });
355
355
  }
356
- function be({ open: e, onOpenChange: t, record: n, stations: r }) {
357
- let [i, { loading: a }] = u(), o = C(() => ({
356
+ function xe({ open: e, onOpenChange: t, record: n, stations: r }) {
357
+ let [i, { loading: a }] = d(), 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] = T(o), [l, d] = T(null), f = `${e ? "open" : "closed"}:${n?.id ?? "none"}`;
364
- e && l !== f && (d(f), c(o)), !e && l !== null && d(null);
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
365
  let p = (e, t) => {
366
366
  c((n) => ({
367
367
  ...n,
368
368
  [e]: t
369
369
  }));
370
370
  };
371
- return /* @__PURE__ */ D(H, {
371
+ return /* @__PURE__ */ O(V, {
372
372
  open: e,
373
373
  onOpenChange: t,
374
- children: /* @__PURE__ */ O(U, {
374
+ children: /* @__PURE__ */ k(H, {
375
375
  className: "max-w-lg",
376
376
  children: [
377
- /* @__PURE__ */ O(K, { children: [/* @__PURE__ */ D(q, { children: "Edit check-in record" }), /* @__PURE__ */ D(W, { children: "Correct the direction, method or station for this scan." })] }),
378
- /* @__PURE__ */ O("form", {
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." })] }),
378
+ /* @__PURE__ */ k("form", {
379
379
  id: "record-form",
380
380
  onSubmit: async (e) => {
381
381
  if (e.preventDefault(), !n) return;
@@ -394,86 +394,86 @@ function be({ open: e, onOpenChange: t, record: n, stations: r }) {
394
394
  id: n.id,
395
395
  input: r
396
396
  } });
397
- if (!_(e, e.data?.updateCheckInRecord?.id, "Could not update record")) return;
398
- v.success("Check-in updated"), t(!1);
397
+ if (!v(e, e.data?.updateCheckInRecord?.id, "Could not update record")) return;
398
+ y.success("Check-in updated"), t(!1);
399
399
  } catch (e) {
400
- v.error("Could not update record", g(e));
400
+ y.error("Could not update record", _(e));
401
401
  }
402
402
  },
403
403
  className: "space-y-4",
404
404
  children: [
405
- /* @__PURE__ */ O("label", {
405
+ /* @__PURE__ */ k("label", {
406
406
  className: "block space-y-1 text-sm",
407
- children: [/* @__PURE__ */ D("span", {
407
+ children: [/* @__PURE__ */ O("span", {
408
408
  className: "font-medium text-text-primary",
409
409
  children: "Attendee ID"
410
- }), /* @__PURE__ */ D(B, {
410
+ }), /* @__PURE__ */ O(R, {
411
411
  value: s.attendeeId,
412
412
  onChange: (e) => p("attendeeId", e.target.value)
413
413
  })]
414
414
  }),
415
- /* @__PURE__ */ O("div", {
415
+ /* @__PURE__ */ k("div", {
416
416
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
417
- children: [/* @__PURE__ */ O("label", {
417
+ children: [/* @__PURE__ */ k("label", {
418
418
  className: "space-y-1 text-sm",
419
- children: [/* @__PURE__ */ D("span", {
419
+ children: [/* @__PURE__ */ O("span", {
420
420
  className: "font-medium text-text-primary",
421
421
  children: "Method"
422
- }), /* @__PURE__ */ O(J, {
422
+ }), /* @__PURE__ */ k(K, {
423
423
  value: s.method,
424
424
  onValueChange: (e) => p("method", e),
425
- children: [/* @__PURE__ */ D(Z, {
425
+ children: [/* @__PURE__ */ O(Y, {
426
426
  "aria-label": "Method",
427
- children: /* @__PURE__ */ D(Q, {})
428
- }), /* @__PURE__ */ D(Y, { children: fe.map((e) => /* @__PURE__ */ D(X, {
427
+ children: /* @__PURE__ */ O(X, {})
428
+ }), /* @__PURE__ */ O(q, { children: pe.map((e) => /* @__PURE__ */ O(J, {
429
429
  value: e,
430
430
  children: e
431
431
  }, e)) })]
432
432
  })]
433
- }), /* @__PURE__ */ O("label", {
433
+ }), /* @__PURE__ */ k("label", {
434
434
  className: "space-y-1 text-sm",
435
- children: [/* @__PURE__ */ D("span", {
435
+ children: [/* @__PURE__ */ O("span", {
436
436
  className: "font-medium text-text-primary",
437
437
  children: "Direction"
438
- }), /* @__PURE__ */ O(J, {
438
+ }), /* @__PURE__ */ k(K, {
439
439
  value: s.direction,
440
440
  onValueChange: (e) => p("direction", e),
441
- children: [/* @__PURE__ */ D(Z, {
441
+ children: [/* @__PURE__ */ O(Y, {
442
442
  "aria-label": "Direction",
443
- children: /* @__PURE__ */ D(Q, {})
444
- }), /* @__PURE__ */ D(Y, { children: pe.map((e) => /* @__PURE__ */ D(X, {
443
+ children: /* @__PURE__ */ O(X, {})
444
+ }), /* @__PURE__ */ O(q, { children: me.map((e) => /* @__PURE__ */ O(J, {
445
445
  value: e,
446
446
  children: e
447
447
  }, e)) })]
448
448
  })]
449
449
  })]
450
450
  }),
451
- /* @__PURE__ */ O("div", {
451
+ /* @__PURE__ */ k("div", {
452
452
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
453
- children: [/* @__PURE__ */ O("label", {
453
+ children: [/* @__PURE__ */ k("label", {
454
454
  className: "space-y-1 text-sm",
455
- children: [/* @__PURE__ */ D("span", {
455
+ children: [/* @__PURE__ */ O("span", {
456
456
  className: "font-medium text-text-primary",
457
457
  children: "Status"
458
- }), /* @__PURE__ */ D(B, {
458
+ }), /* @__PURE__ */ O(R, {
459
459
  value: s.status,
460
460
  onChange: (e) => p("status", e.target.value)
461
461
  })]
462
- }), /* @__PURE__ */ O("label", {
462
+ }), /* @__PURE__ */ k("label", {
463
463
  className: "space-y-1 text-sm",
464
- children: [/* @__PURE__ */ D("span", {
464
+ children: [/* @__PURE__ */ O("span", {
465
465
  className: "font-medium text-text-primary",
466
466
  children: "Station"
467
- }), /* @__PURE__ */ O(J, {
467
+ }), /* @__PURE__ */ k(K, {
468
468
  value: s.stationId || "none",
469
469
  onValueChange: (e) => p("stationId", e === "none" ? "" : e),
470
- children: [/* @__PURE__ */ D(Z, {
470
+ children: [/* @__PURE__ */ O(Y, {
471
471
  "aria-label": "Station",
472
- children: /* @__PURE__ */ D(Q, {})
473
- }), /* @__PURE__ */ O(Y, { children: [/* @__PURE__ */ D(X, {
472
+ children: /* @__PURE__ */ O(X, {})
473
+ }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
474
474
  value: "none",
475
475
  children: "No station"
476
- }), r.map((e) => /* @__PURE__ */ D(X, {
476
+ }), r.map((e) => /* @__PURE__ */ O(J, {
477
477
  value: e.id,
478
478
  children: e.name ?? e.id
479
479
  }, e.id))] })]
@@ -482,13 +482,13 @@ function be({ open: e, onOpenChange: t, record: n, stations: r }) {
482
482
  })
483
483
  ]
484
484
  }),
485
- /* @__PURE__ */ O(G, { children: [/* @__PURE__ */ D(I, {
485
+ /* @__PURE__ */ k(ue, { children: [/* @__PURE__ */ O(F, {
486
486
  type: "button",
487
487
  variant: "outline",
488
488
  onClick: () => t(!1),
489
489
  disabled: a,
490
490
  children: "Cancel"
491
- }), /* @__PURE__ */ D(I, {
491
+ }), /* @__PURE__ */ O(F, {
492
492
  type: "submit",
493
493
  form: "record-form",
494
494
  disabled: a,
@@ -498,242 +498,284 @@ function be({ open: e, onOpenChange: t, record: n, stations: r }) {
498
498
  })
499
499
  });
500
500
  }
501
- function xe({ eventId: e, eventName: t, stations: n, attendees: i, activeStationId: a, onStationChange: o, onCheckedIn: c }) {
502
- let [u, d] = T(""), [f, p] = T("QR"), [m, x] = T("IN"), [S, C] = T(""), E = w(null), [j, { loading: M }] = r(), [P] = l(), ne = y(), oe = s({
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({
503
503
  eventId: e,
504
504
  limit: 100,
505
505
  offset: 0
506
- }).data?.eventSessions.items ?? [], { isOnline: R, pendingCount: z, syncNow: V } = b(P, c), se = (e) => {
507
- let t = e.trim();
508
- if (!t) return {
509
- attendeeId: null,
510
- label: "attendee",
511
- matched: !1
512
- };
513
- if (t.includes("@")) {
514
- let e = i.find((e) => e.email?.toLowerCase() === t.toLowerCase());
515
- return {
516
- attendeeId: e?.id ?? null,
517
- label: e?.fullName ?? t,
518
- matched: !!e
519
- };
520
- }
521
- let n = i.find((e) => e.id === t);
522
- return {
523
- attendeeId: t,
524
- label: n?.fullName ?? `attendee ${t}`,
525
- matched: !!n
526
- };
527
- }, H = (e) => {
528
- d(e), p("QR"), v.info("QR captured", "Confirm the details and tap Check in."), E.current?.focus();
529
- }, U = async (e) => {
530
- let t = crypto.randomUUID(), r = (/* @__PURE__ */ new Date()).toISOString(), i = {
506
+ }).data?.eventSessions.items ?? [], { isOnline: I, pendingCount: L, syncNow: z } = x(M, o), [B, V] = E(null), [H, U] = E("");
507
+ C(() => {
508
+ let e = setTimeout(() => U(c.trim()), 250);
509
+ return () => clearTimeout(e);
510
+ }, [c]);
511
+ let ue = !B && !Q.test(H) ? H : "", W = l({
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 = {
531
518
  clientScanId: t,
532
519
  token: e,
533
- stationId: a || null,
520
+ stationId: r || null,
534
521
  sessionId: S || null,
535
522
  method: "QR",
536
523
  direction: m,
537
- scannedAt: r
538
- }, o = async (e) => {
539
- await h(i), v.success("Saved on this device", e), d(""), E.current?.focus();
524
+ scannedAt: i
525
+ }, s = async (e) => {
526
+ await g(a), y.success("Saved on this device", e), d(""), D.current?.focus();
540
527
  };
541
- if (typeof navigator < "u" && !navigator.onLine) await o("No connection right now — this check-in will sync automatically once you're back online.");
528
+ if (typeof navigator < "u" && !navigator.onLine) await s("No connection right now — this check-in will sync automatically once you're back online.");
542
529
  else try {
543
- let i = await P({ variables: { input: {
530
+ let a = await M({ variables: { input: {
544
531
  token: e,
545
- stationId: a || null,
532
+ stationId: r || null,
546
533
  sessionId: S || null,
547
534
  method: "QR",
548
535
  direction: m,
549
- recordedAt: r,
536
+ recordedAt: i,
550
537
  clientScanId: t
551
538
  } } });
552
- if (i.error) {
553
- v.error("Could not record check-in", i.error.message);
539
+ if (a.error) {
540
+ y.error("Could not record check-in", a.error.message);
554
541
  return;
555
542
  }
556
- if (!i.data?.scanCheckIn?.id) {
557
- v.error("Could not record check-in", "The server did not confirm the change.");
543
+ if (!a.data?.scanCheckIn?.id) {
544
+ y.error("Could not record check-in", "The server did not confirm the change.");
558
545
  return;
559
546
  }
560
- let o = n.find((e) => e.id === a);
561
- v.success(`Checked ${m === "OUT" ? "out" : "in"}`, `Recorded via QR${o?.name ? ` • ${o.name}` : ""}.`);
562
- let s = i.data.scanCheckIn.registrationId;
563
- m === "IN" && s && o && $(o.metadata).autoPrintBadge && ne(s, a || null), d(""), E.current?.focus(), c();
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();
564
551
  } catch {
565
- await o("Connection dropped — this check-in will sync automatically once you're back online.");
552
+ await s("Connection dropped — this check-in will sync automatically once you're back online.");
566
553
  }
567
554
  };
568
- return /* @__PURE__ */ O(L, {
555
+ return /* @__PURE__ */ k(le, {
569
556
  treatment: "glass",
570
557
  glow: !0,
571
558
  className: "border-border-seam p-5 sm:p-6",
572
559
  children: [
573
- /* @__PURE__ */ O("div", {
560
+ /* @__PURE__ */ k("div", {
574
561
  className: "flex items-center justify-between gap-2",
575
- children: [/* @__PURE__ */ O("div", {
562
+ children: [/* @__PURE__ */ k("div", {
576
563
  className: "flex items-center gap-2",
577
- children: [/* @__PURE__ */ D(ie, {
564
+ children: [/* @__PURE__ */ O(P, {
578
565
  className: "h-5 w-5 text-accent-primary",
579
566
  "aria-hidden": "true"
580
- }), /* @__PURE__ */ D("h2", {
567
+ }), /* @__PURE__ */ O("h2", {
581
568
  className: "text-lg font-semibold text-text-primary",
582
569
  children: "Kiosk mode"
583
570
  })]
584
- }), !R || z > 0 ? /* @__PURE__ */ O("div", {
571
+ }), !I || L > 0 ? /* @__PURE__ */ k("div", {
585
572
  className: "flex items-center gap-2",
586
- children: [/* @__PURE__ */ O(ae, {
587
- variant: R ? "secondary" : "destructive",
573
+ children: [/* @__PURE__ */ k(se, {
574
+ variant: I ? "secondary" : "destructive",
588
575
  className: "flex items-center gap-1",
589
576
  children: [
590
- /* @__PURE__ */ D(N, {
577
+ /* @__PURE__ */ O(ne, {
591
578
  className: "h-3 w-3",
592
579
  "aria-hidden": "true"
593
580
  }),
594
- R ? "Syncing…" : "Offline",
595
- z > 0 ? ` · ${z} queued` : ""
581
+ I ? "Syncing…" : "Offline",
582
+ L > 0 ? ` · ${L} queued` : ""
596
583
  ]
597
- }), R && z > 0 ? /* @__PURE__ */ O(I, {
584
+ }), I && L > 0 ? /* @__PURE__ */ k(F, {
598
585
  type: "button",
599
586
  size: "sm",
600
587
  variant: "outline",
601
- onClick: V,
602
- children: [/* @__PURE__ */ D(F, { className: "h-3.5 w-3.5" }), "Sync now"]
588
+ onClick: z,
589
+ children: [/* @__PURE__ */ O(oe, { className: "h-3.5 w-3.5" }), "Sync now"]
603
590
  }) : null]
604
591
  }) : null]
605
592
  }),
606
- /* @__PURE__ */ O("p", {
593
+ /* @__PURE__ */ k("p", {
607
594
  className: "mt-1 text-sm text-text-secondary",
608
595
  children: [
609
596
  "Scan an attendee badge or look them up, set the direction, and check them into ",
610
597
  t,
611
598
  ".",
612
- z > 0 ? " Scans queue on this device and sync automatically once you have a connection." : ""
599
+ L > 0 ? " Scans queue on this device and sync automatically once you have a connection." : ""
613
600
  ]
614
601
  }),
615
- /* @__PURE__ */ D("div", {
602
+ /* @__PURE__ */ O("div", {
616
603
  className: "mt-5",
617
- children: /* @__PURE__ */ D(_e, { onDetected: H })
604
+ children: /* @__PURE__ */ O(ve, { onDetected: de })
618
605
  }),
619
- /* @__PURE__ */ O("form", {
606
+ /* @__PURE__ */ k("form", {
620
607
  onSubmit: async (t) => {
621
608
  t.preventDefault();
622
- let r = u.trim();
623
- if (f === "QR" && ue.test(r)) {
624
- await U(r);
609
+ let i = c.trim();
610
+ if (f === "QR" && Q.test(i)) {
611
+ await Z(i);
625
612
  return;
626
613
  }
627
- let { attendeeId: i, label: o } = se(u);
628
- if (u.trim().includes("@") && !i) {
629
- v.error("Attendee not found", `No attendee at this event matches “${u.trim()}”.`);
614
+ if (!B) {
615
+ y.error("No attendee selected", "Search for the attendee by name, email or ID and pick them from the list.");
630
616
  return;
631
617
  }
632
- let s = {
618
+ let a = {
633
619
  eventId: e,
634
- attendeeId: i,
635
- stationId: a || null,
636
- method: f,
620
+ attendeeId: B.id,
621
+ sessionId: S || null,
622
+ stationId: r || null,
637
623
  direction: m,
638
- status: m === "OUT" ? "checked_out" : "checked_in",
639
- recordedAt: (/* @__PURE__ */ new Date()).toISOString(),
640
- metadata: S ? { sessionId: S } : {}
624
+ recordedAt: (/* @__PURE__ */ new Date()).toISOString()
641
625
  };
642
626
  try {
643
- let e = await j({ variables: { input: s } });
644
- if (!_(e, e.data?.createCheckInRecord?.id, "Could not record check-in")) return;
645
- let t = n.find((e) => e.id === a);
646
- v.success(`${o} checked ${m === "OUT" ? "out" : "in"}`, `Recorded via ${f}${t?.name ? ` • ${t.name}` : ""}.`);
647
- let r = e.data?.createCheckInRecord?.registrationId;
648
- m === "IN" && r && t && $(t.metadata).autoPrintBadge && ne(r, a || null), d(""), E.current?.focus(), c();
627
+ let e = await A({ variables: { input: a } });
628
+ if (!v(e, e.data?.createManualCheckIn?.id, "Could not record check-in")) return;
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}` : ""}.`);
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();
649
633
  } catch (e) {
650
- v.error("Could not record check-in", g(e));
634
+ y.error("Could not record check-in", _(e));
651
635
  }
652
636
  },
653
637
  className: "mt-5 space-y-5",
654
638
  children: [
655
- /* @__PURE__ */ O("label", {
639
+ /* @__PURE__ */ k("label", {
656
640
  className: "block space-y-1.5",
657
- children: [/* @__PURE__ */ O("span", {
658
- className: "flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-text-secondary",
659
- children: [/* @__PURE__ */ D(ee, { className: "h-3.5 w-3.5" }), "Manual lookup"]
660
- }), /* @__PURE__ */ D(B, {
661
- ref: E,
662
- value: u,
663
- onChange: (e) => d(e.target.value),
664
- placeholder: "Enter name, email or attendee ID",
665
- autoComplete: "off",
666
- className: "h-12 text-base"
667
- })]
641
+ children: [
642
+ /* @__PURE__ */ k("span", {
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"]
645
+ }),
646
+ /* @__PURE__ */ O(R, {
647
+ ref: D,
648
+ value: c,
649
+ onChange: (e) => {
650
+ d(e.target.value), V(null);
651
+ },
652
+ placeholder: "Enter name, email or attendee ID",
653
+ autoComplete: "off",
654
+ className: "h-12 text-base"
655
+ }),
656
+ B ? /* @__PURE__ */ k("div", {
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
+ children: [/* @__PURE__ */ k("span", {
659
+ className: "font-medium text-text-primary",
660
+ children: [
661
+ B.fullName,
662
+ " ",
663
+ /* @__PURE__ */ k("span", {
664
+ className: "text-text-secondary",
665
+ children: [
666
+ "(",
667
+ B.email,
668
+ ")"
669
+ ]
670
+ })
671
+ ]
672
+ }), /* @__PURE__ */ O(F, {
673
+ type: "button",
674
+ variant: "ghost",
675
+ size: "sm",
676
+ onClick: () => {
677
+ V(null), d(""), D.current?.focus();
678
+ },
679
+ children: "Change"
680
+ })]
681
+ }) : G.length > 0 ? /* @__PURE__ */ O("div", {
682
+ className: "divide-y divide-border-seam rounded-md border border-border-seam",
683
+ children: G.map((e) => /* @__PURE__ */ k("button", {
684
+ type: "button",
685
+ className: "block w-full px-3 py-2 text-left text-sm hover:bg-surface-secondary",
686
+ onClick: () => {
687
+ V(e), p("MANUAL");
688
+ },
689
+ children: [
690
+ /* @__PURE__ */ O("span", {
691
+ className: "font-medium text-text-primary",
692
+ children: e.fullName
693
+ }),
694
+ " ",
695
+ /* @__PURE__ */ O("span", {
696
+ className: "text-text-secondary",
697
+ children: e.email
698
+ })
699
+ ]
700
+ }, e.id))
701
+ }) : H && !Q.test(H) && !W.loading ? /* @__PURE__ */ k("p", {
702
+ className: "text-sm text-text-secondary",
703
+ children: [
704
+ "No attendee at this event matches “",
705
+ H,
706
+ "”."
707
+ ]
708
+ }) : null
709
+ ]
668
710
  }),
669
- /* @__PURE__ */ O("div", {
711
+ /* @__PURE__ */ k("div", {
670
712
  className: "flex flex-wrap gap-5",
671
713
  children: [
672
- /* @__PURE__ */ D(ve, {
714
+ /* @__PURE__ */ O(ye, {
673
715
  label: "Method",
674
716
  value: f,
675
717
  onChange: p,
676
718
  options: [{
677
719
  value: "QR",
678
720
  label: "QR",
679
- icon: re
721
+ icon: N
680
722
  }, {
681
723
  value: "MANUAL",
682
724
  label: "Manual",
683
- icon: ee
725
+ icon: re
684
726
  }]
685
727
  }),
686
- /* @__PURE__ */ D(ve, {
728
+ /* @__PURE__ */ O(ye, {
687
729
  label: "Direction",
688
730
  value: m,
689
- onChange: x,
731
+ onChange: h,
690
732
  options: [{
691
733
  value: "IN",
692
734
  label: "In",
693
- icon: A
735
+ icon: te
694
736
  }, {
695
737
  value: "OUT",
696
738
  label: "Out",
697
- icon: k
739
+ icon: ee
698
740
  }]
699
741
  }),
700
- /* @__PURE__ */ O("label", {
742
+ /* @__PURE__ */ k("label", {
701
743
  className: "space-y-1.5",
702
- children: [/* @__PURE__ */ D("span", {
744
+ children: [/* @__PURE__ */ O("span", {
703
745
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
704
746
  children: "Station"
705
- }), /* @__PURE__ */ O(J, {
706
- value: a || "none",
707
- onValueChange: (e) => o(e === "none" ? "" : e),
708
- children: [/* @__PURE__ */ D(Z, {
747
+ }), /* @__PURE__ */ k(K, {
748
+ value: r || "none",
749
+ onValueChange: (e) => a(e === "none" ? "" : e),
750
+ children: [/* @__PURE__ */ O(Y, {
709
751
  "aria-label": "Station",
710
752
  className: "min-w-40",
711
- children: /* @__PURE__ */ D(Q, { placeholder: "No station" })
712
- }), /* @__PURE__ */ O(Y, { children: [/* @__PURE__ */ D(X, {
753
+ children: /* @__PURE__ */ O(X, { placeholder: "No station" })
754
+ }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
713
755
  value: "none",
714
756
  children: "No station"
715
- }), n.map((e) => /* @__PURE__ */ D(X, {
757
+ }), n.filter((e) => $(e.metadata).isActive !== !1).map((e) => /* @__PURE__ */ O(J, {
716
758
  value: e.id,
717
759
  children: e.name ?? e.id
718
760
  }, e.id))] })]
719
761
  })]
720
762
  }),
721
- /* @__PURE__ */ O("label", {
763
+ /* @__PURE__ */ k("label", {
722
764
  className: "space-y-1.5",
723
- children: [/* @__PURE__ */ D("span", {
765
+ children: [/* @__PURE__ */ O("span", {
724
766
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
725
767
  children: "Session"
726
- }), /* @__PURE__ */ O(J, {
768
+ }), /* @__PURE__ */ k(K, {
727
769
  value: S || "none",
728
- onValueChange: (e) => C(e === "none" ? "" : e),
729
- children: [/* @__PURE__ */ D(Z, {
770
+ onValueChange: (e) => w(e === "none" ? "" : e),
771
+ children: [/* @__PURE__ */ O(Y, {
730
772
  "aria-label": "Session",
731
773
  className: "min-w-40",
732
- children: /* @__PURE__ */ D(Q, { placeholder: "Whole event" })
733
- }), /* @__PURE__ */ O(Y, { children: [/* @__PURE__ */ D(X, {
774
+ children: /* @__PURE__ */ O(X, { placeholder: "Whole event" })
775
+ }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
734
776
  value: "none",
735
777
  children: "Whole event"
736
- }), oe.map((e) => /* @__PURE__ */ D(X, {
778
+ }), ce.map((e) => /* @__PURE__ */ O(J, {
737
779
  value: e.id,
738
780
  children: e.title
739
781
  }, e.id))] })]
@@ -741,27 +783,27 @@ function xe({ eventId: e, eventName: t, stations: n, attendees: i, activeStation
741
783
  })
742
784
  ]
743
785
  }),
744
- /* @__PURE__ */ O(I, {
786
+ /* @__PURE__ */ k(F, {
745
787
  type: "submit",
746
788
  size: "lg",
747
- disabled: M || !u.trim(),
789
+ disabled: j || !c.trim(),
748
790
  className: "h-12 w-full text-base",
749
- children: [/* @__PURE__ */ D(te, { className: "h-5 w-5" }), M ? "Recording…" : `Check ${m === "OUT" ? "out" : "in"}`]
791
+ children: [/* @__PURE__ */ O(ie, { className: "h-5 w-5" }), j ? "Recording…" : `Check ${m === "OUT" ? "out" : "in"}`]
750
792
  })
751
793
  ]
752
794
  })
753
795
  ]
754
796
  });
755
797
  }
756
- var Se = 10, Ce = 500;
757
- function we() {
798
+ var Ce = 10, we = 500;
799
+ function Te() {
758
800
  let r = c({
759
801
  limit: 100,
760
802
  offset: 0
761
- }).data?.events.items ?? [], [i, s] = T(""), l = i || void 0, u = r.find((e) => e.id === i), [d, h] = T(""), g = m({
762
- pageSize: Se,
803
+ }).data?.events.items ?? [], [i, s] = E(""), l = i || void 0, u = r.find((e) => e.id === i), [d, f] = E(""), g = h({
804
+ pageSize: Ce,
763
805
  resetKey: i
764
- }), b = n({
806
+ }), _ = n({
765
807
  eventId: l,
766
808
  limit: 100,
767
809
  offset: 0
@@ -771,22 +813,22 @@ function we() {
771
813
  offset: g.offset
772
814
  }), S = t({
773
815
  eventId: l,
774
- limit: Ce,
816
+ limit: we,
775
817
  offset: 0
776
- }), w = e({
818
+ }), C = e({
777
819
  eventId: l,
778
820
  limit: 200,
779
821
  offset: 0
780
- }), k = C(() => b.data?.checkInStations.items ?? [], [b.data]), A = x.data?.checkInRecords.items ?? [], j = x.data?.checkInRecords.total ?? 0, M = C(() => S.data?.checkInRecords.items ?? [], [S.data]), N = C(() => w.data?.attendees.items ?? [], [w.data]), ee = w.data?.attendees.total ?? 0, te = C(() => {
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(() => {
781
823
  let e = /* @__PURE__ */ new Map();
782
- for (let t of N) e.set(t.id, t.fullName);
824
+ for (let t of j) e.set(t.id, t.fullName);
783
825
  return e;
784
- }, [N]), re = C(() => {
826
+ }, [j]), ie = w(() => {
785
827
  let e = /* @__PURE__ */ new Map();
786
- for (let t of k) e.set(t.id, t.name ?? t.id);
828
+ for (let t of T) e.set(t.id, t.name ?? t.id);
787
829
  return e;
788
- }, [k]), { checkedInCount: F, stationCounts: ie } = C(() => {
789
- let e = /* @__PURE__ */ new Set(), t = { count: 0 }, n = /* @__PURE__ */ new Map(), r = [...M].sort((e, t) => new Date(e.recordedAt).getTime() - new Date(t.recordedAt).getTime());
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());
790
832
  for (let i of r) {
791
833
  let r = i.attendeeId ?? "";
792
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") {
@@ -800,214 +842,213 @@ function we() {
800
842
  checkedInCount: e.size + t.count,
801
843
  stationCounts: i
802
844
  };
803
- }, [M]), B = ee, V = B > 0 ? Math.min(100, Math.round(F / B * 100)) : 0, [H] = o(), [U] = a(), [W, G] = T(!1), [K, q] = T(void 0), [le, ue] = T(!1), [de, fe] = T(null), pe = () => {
804
- q(void 0), G(!0);
805
- }, $ = (e) => {
806
- q(e), G(!0);
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);
807
847
  }, me = (e) => {
808
- fe(e), ue(!0);
809
- }, _e = y(), ve = (e) => {
810
- e.registrationId && _e(e.registrationId, e.stationId ?? null);
811
- }, we = async (e) => {
812
- let t = await H({ variables: { id: e.id } });
813
- _(t, t.data?.deleteCheckInStation ? e.id : null, "Could not delete station") && (d === e.id && h(""), v.success("Station deleted", `“${e.name ?? e.id}” was removed.`));
848
+ W(e), U(!0);
849
+ }, $ = (e) => {
850
+ fe(e), Z(!0);
851
+ }, he = b(), ve = (e) => {
852
+ e.registrationId && he(e.registrationId, e.stationId ?? null);
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.`));
814
856
  }, Te = async (e) => {
815
- let t = await U({ variables: { id: e.id } });
816
- _(t, t.data?.deleteCheckInRecord ? e.id : null, "Could not delete record") && v.success("Check-in record deleted");
857
+ let t = await V({ variables: { id: e.id } });
858
+ v(t, t.data?.deleteCheckInRecord ? e.id : null, "Could not delete record") && y.success("Check-in record deleted");
817
859
  }, Ee = () => {
818
860
  x.refetch(), S.refetch();
819
- }, De = (e) => e.attendeeId ? te.get(e.attendeeId) ?? `Attendee ${e.attendeeId.slice(0, 8)}` : "Walk-in guest", Oe = !!i;
820
- return /* @__PURE__ */ O("div", {
861
+ }, De = (e) => e.attendeeId ? re.get(e.attendeeId) ?? `Attendee ${e.attendeeId.slice(0, 8)}` : "Walk-in guest", Oe = !!i;
862
+ return /* @__PURE__ */ k("div", {
821
863
  className: "space-y-6 p-6",
822
864
  children: [
823
- /* @__PURE__ */ D(se, { 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." }),
824
- /* @__PURE__ */ D(oe, { children: /* @__PURE__ */ O("div", {
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", {
825
867
  className: "flex flex-wrap items-start justify-between gap-4",
826
- children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("h1", {
868
+ children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("h1", {
827
869
  className: "text-2xl font-bold text-text-primary",
828
- children: [/* @__PURE__ */ D(R, { children: "Kiosk" }), " & Check-In"]
829
- }), /* @__PURE__ */ D("p", {
870
+ children: [/* @__PURE__ */ O(I, { children: "Kiosk" }), " & Check-In"]
871
+ }), /* @__PURE__ */ O("p", {
830
872
  className: "mt-1 text-sm text-text-secondary",
831
873
  children: "Manage check-in stations and record attendee arrivals against a live backend."
832
- })] }), /* @__PURE__ */ O("div", {
874
+ })] }), /* @__PURE__ */ k("div", {
833
875
  className: "flex flex-wrap items-end gap-3",
834
- children: [/* @__PURE__ */ O("label", {
876
+ children: [/* @__PURE__ */ k("label", {
835
877
  className: "space-y-1 text-sm",
836
- children: [/* @__PURE__ */ D("span", {
878
+ children: [/* @__PURE__ */ O("span", {
837
879
  className: "font-medium text-text-primary",
838
880
  children: "Event"
839
- }), /* @__PURE__ */ O(J, {
881
+ }), /* @__PURE__ */ k(K, {
840
882
  value: i || "all",
841
883
  onValueChange: (e) => s(e === "all" ? "" : e),
842
- children: [/* @__PURE__ */ D(Z, {
884
+ children: [/* @__PURE__ */ O(Y, {
843
885
  "aria-label": "Event",
844
886
  className: "min-w-52",
845
- children: /* @__PURE__ */ D(Q, { placeholder: "All events" })
846
- }), /* @__PURE__ */ O(Y, { children: [/* @__PURE__ */ D(X, {
887
+ children: /* @__PURE__ */ O(X, { placeholder: "All events" })
888
+ }), /* @__PURE__ */ k(q, { children: [/* @__PURE__ */ O(J, {
847
889
  value: "all",
848
890
  children: "All events"
849
- }), r.map((e) => /* @__PURE__ */ D(X, {
891
+ }), r.map((e) => /* @__PURE__ */ O(J, {
850
892
  value: e.id,
851
893
  children: e.name
852
894
  }, e.id))] })]
853
895
  })]
854
- }), /* @__PURE__ */ O(I, {
896
+ }), /* @__PURE__ */ k(F, {
855
897
  type: "button",
856
898
  onClick: pe,
857
899
  disabled: !Oe,
858
- children: [/* @__PURE__ */ D(P, { className: "h-4 w-4" }), "New station"]
900
+ children: [/* @__PURE__ */ O(M, { className: "h-4 w-4" }), "New station"]
859
901
  })]
860
902
  })]
861
903
  }) }),
862
- Oe ? /* @__PURE__ */ O("div", {
904
+ Oe ? /* @__PURE__ */ k("div", {
863
905
  className: "grid grid-cols-1 gap-6 lg:grid-cols-12",
864
- children: [/* @__PURE__ */ D("div", {
906
+ children: [/* @__PURE__ */ O("div", {
865
907
  className: "lg:col-span-5",
866
- children: /* @__PURE__ */ D(xe, {
908
+ children: /* @__PURE__ */ O(Se, {
867
909
  eventId: i,
868
910
  eventName: u?.name ?? "this event",
869
- stations: k,
870
- attendees: N,
911
+ stations: T,
871
912
  activeStationId: d,
872
- onStationChange: h,
913
+ onStationChange: f,
873
914
  onCheckedIn: Ee
874
915
  })
875
- }), /* @__PURE__ */ O("div", {
916
+ }), /* @__PURE__ */ k("div", {
876
917
  className: "space-y-6 lg:col-span-7",
877
- children: [/* @__PURE__ */ O("section", { children: [
878
- /* @__PURE__ */ D("h2", {
918
+ children: [/* @__PURE__ */ k("section", { children: [
919
+ /* @__PURE__ */ O("h2", {
879
920
  className: "text-sm font-semibold uppercase tracking-wide text-text-secondary",
880
921
  children: "Stations"
881
922
  }),
882
- /* @__PURE__ */ O("div", {
923
+ /* @__PURE__ */ k("div", {
883
924
  className: "mt-3 flex flex-wrap gap-2",
884
- children: [k.map((e) => {
885
- let t = d === e.id, n = ie.get(e.id) ?? 0;
886
- return /* @__PURE__ */ O("div", {
925
+ children: [T.map((e) => {
926
+ let t = d === e.id, n = oe.get(e.id) ?? 0;
927
+ return /* @__PURE__ */ k("div", {
887
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"}`,
888
- children: [/* @__PURE__ */ O("button", {
929
+ children: [/* @__PURE__ */ k("button", {
889
930
  type: "button",
890
931
  "aria-pressed": t,
891
- onClick: () => h(t ? "" : e.id),
932
+ onClick: () => f(t ? "" : e.id),
892
933
  className: "inline-flex items-center gap-1.5 font-medium outline-none",
893
- children: [e.name ?? e.id, n > 0 ? /* @__PURE__ */ D("span", {
934
+ children: [e.name ?? e.id, n > 0 ? /* @__PURE__ */ O("span", {
894
935
  className: "rounded-full bg-bg-sunken px-1.5 py-0.5 text-xs tabular-nums text-text-secondary",
895
936
  children: n
896
937
  }) : null]
897
- }), /* @__PURE__ */ D(f, {
938
+ }), /* @__PURE__ */ O(p, {
898
939
  ariaLabel: `Station ${e.name ?? e.id} actions`,
899
940
  entityName: e.name ?? void 0,
900
- onEdit: () => $(e),
901
- onDelete: () => we(e)
941
+ onEdit: () => me(e),
942
+ onDelete: () => ye(e)
902
943
  })]
903
944
  }, e.id);
904
- }), /* @__PURE__ */ O("button", {
945
+ }), /* @__PURE__ */ k("button", {
905
946
  type: "button",
906
947
  onClick: pe,
907
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",
908
- children: [/* @__PURE__ */ D(P, { className: "h-3.5 w-3.5" }), "New station"]
949
+ children: [/* @__PURE__ */ O(M, { className: "h-3.5 w-3.5" }), "New station"]
909
950
  })]
910
951
  }),
911
- b.loading && k.length === 0 ? /* @__PURE__ */ D("p", {
952
+ _.loading && T.length === 0 ? /* @__PURE__ */ O("p", {
912
953
  className: "mt-2 text-sm text-text-secondary",
913
954
  children: "Loading stations…"
914
955
  }) : null
915
- ] }), /* @__PURE__ */ O(L, {
956
+ ] }), /* @__PURE__ */ k(le, {
916
957
  treatment: "plain",
917
958
  className: "border-border-seam p-5",
918
959
  children: [
919
- /* @__PURE__ */ O("div", {
960
+ /* @__PURE__ */ k("div", {
920
961
  className: "flex flex-wrap items-center justify-between gap-2",
921
- children: [/* @__PURE__ */ D("h2", {
962
+ children: [/* @__PURE__ */ O("h2", {
922
963
  className: "text-lg font-semibold text-text-primary",
923
964
  children: "Check-In Records"
924
- }), /* @__PURE__ */ O("p", {
965
+ }), /* @__PURE__ */ k("p", {
925
966
  className: "text-sm text-text-secondary",
926
967
  children: [
927
968
  "Checked in",
928
969
  " ",
929
- /* @__PURE__ */ D("span", {
970
+ /* @__PURE__ */ O("span", {
930
971
  className: "text-lg font-bold tabular-nums text-text-primary",
931
- children: F.toLocaleString()
972
+ children: N.toLocaleString()
932
973
  }),
933
- B > 0 ? /* @__PURE__ */ O(E, { children: [
974
+ P > 0 ? /* @__PURE__ */ k(D, { children: [
934
975
  " ",
935
976
  "/ ",
936
- /* @__PURE__ */ D("span", {
977
+ /* @__PURE__ */ O("span", {
937
978
  className: "tabular-nums",
938
- children: B.toLocaleString()
979
+ children: P.toLocaleString()
939
980
  })
940
981
  ] }) : null
941
982
  ]
942
983
  })]
943
984
  }),
944
- B > 0 ? /* @__PURE__ */ D("div", {
985
+ P > 0 ? /* @__PURE__ */ O("div", {
945
986
  className: "mt-3 h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
946
987
  role: "progressbar",
947
- "aria-valuenow": F,
988
+ "aria-valuenow": N,
948
989
  "aria-valuemin": 0,
949
- "aria-valuemax": B,
990
+ "aria-valuemax": P,
950
991
  "aria-label": "Attendees checked in",
951
- children: /* @__PURE__ */ D("div", {
992
+ children: /* @__PURE__ */ O("div", {
952
993
  className: "h-full rounded-full bg-action-primary-bg transition-[width] duration-500",
953
- style: { width: `${V}%` }
994
+ style: { width: `${R}%` }
954
995
  })
955
996
  }) : null,
956
- /* @__PURE__ */ D("div", {
997
+ /* @__PURE__ */ O("div", {
957
998
  className: "mt-4",
958
- children: A.length === 0 ? /* @__PURE__ */ D(z, {
999
+ children: ee.length === 0 ? /* @__PURE__ */ O(L, {
959
1000
  illustration: "empty-data",
960
1001
  title: x.loading ? "Loading check-in records…" : "No check-in records yet",
961
1002
  description: "Arrivals recorded from this kiosk show up here, newest first.",
962
1003
  className: "py-8"
963
- }) : /* @__PURE__ */ D(ce, {
1004
+ }) : /* @__PURE__ */ O(de, {
964
1005
  className: "max-h-[28rem] pr-3",
965
- children: /* @__PURE__ */ D("ul", {
1006
+ children: /* @__PURE__ */ O("ul", {
966
1007
  className: "space-y-2.5",
967
- children: A.map((e) => {
968
- let t = De(e), n = e.direction === "OUT", r = e.stationId ? re.get(e.stationId) : null;
969
- return /* @__PURE__ */ O("li", {
1008
+ children: ee.map((e) => {
1009
+ let t = De(e), n = e.direction === "OUT", r = e.stationId ? ie.get(e.stationId) : null;
1010
+ return /* @__PURE__ */ k("li", {
970
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",
971
1012
  children: [
972
- /* @__PURE__ */ D("span", {
1013
+ /* @__PURE__ */ O("span", {
973
1014
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-accent-primary/10 text-sm font-semibold text-accent-primary",
974
1015
  "aria-hidden": "true",
975
- children: he(t)
1016
+ children: ge(t)
976
1017
  }),
977
- /* @__PURE__ */ O("div", {
1018
+ /* @__PURE__ */ k("div", {
978
1019
  className: "min-w-0 flex-1",
979
- children: [/* @__PURE__ */ D("p", {
1020
+ children: [/* @__PURE__ */ O("p", {
980
1021
  className: "truncate font-medium text-text-primary",
981
1022
  children: t
982
- }), /* @__PURE__ */ O("p", {
1023
+ }), /* @__PURE__ */ k("p", {
983
1024
  className: "mt-0.5 truncate text-sm text-text-secondary",
984
1025
  children: [
985
- ge(e.recordedAt),
1026
+ _e(e.recordedAt),
986
1027
  " • ",
987
1028
  e.method
988
1029
  ]
989
1030
  })]
990
1031
  }),
991
- /* @__PURE__ */ O("div", {
1032
+ /* @__PURE__ */ k("div", {
992
1033
  className: "flex shrink-0 items-center gap-2",
993
1034
  children: [
994
- /* @__PURE__ */ D(ae, {
1035
+ /* @__PURE__ */ O(se, {
995
1036
  variant: n ? "secondary" : "success",
996
1037
  className: "uppercase",
997
1038
  children: n ? "Checked out" : "Checked in"
998
1039
  }),
999
- r ? /* @__PURE__ */ D("span", {
1040
+ r ? /* @__PURE__ */ O("span", {
1000
1041
  className: "hidden text-sm text-text-secondary sm:inline",
1001
1042
  children: r
1002
1043
  }) : null,
1003
- /* @__PURE__ */ D(f, {
1044
+ /* @__PURE__ */ O(p, {
1004
1045
  ariaLabel: `Check-in record ${e.id} actions`,
1005
- onEdit: () => me(e),
1046
+ onEdit: () => $(e),
1006
1047
  onDelete: () => Te(e),
1007
1048
  extraItems: !n && e.registrationId ? [{
1008
1049
  key: "print-badge",
1009
1050
  label: "Print badge",
1010
- icon: ne,
1051
+ icon: ae,
1011
1052
  onSelect: () => ve(e)
1012
1053
  }] : []
1013
1054
  })
@@ -1019,11 +1060,11 @@ function we() {
1019
1060
  })
1020
1061
  })
1021
1062
  }),
1022
- /* @__PURE__ */ D(p, {
1063
+ /* @__PURE__ */ O(m, {
1023
1064
  offset: g.offset,
1024
1065
  limit: g.limit,
1025
- loadedCount: A.length,
1026
- total: j,
1066
+ loadedCount: ee.length,
1067
+ total: te,
1027
1068
  onPrev: g.prevPage,
1028
1069
  onNext: g.nextPage,
1029
1070
  itemLabel: "records",
@@ -1032,32 +1073,32 @@ function we() {
1032
1073
  ]
1033
1074
  })]
1034
1075
  })]
1035
- }) : /* @__PURE__ */ D(L, {
1076
+ }) : /* @__PURE__ */ O(le, {
1036
1077
  treatment: "plain",
1037
1078
  className: "border-border-seam p-5",
1038
- children: /* @__PURE__ */ D(z, {
1079
+ children: /* @__PURE__ */ O(L, {
1039
1080
  illustration: "empty-data",
1040
1081
  title: "Select an event to open the kiosk",
1041
1082
  description: "Check-in stations and records belong to a specific event. Pick one above to start scanning attendees in.",
1042
1083
  className: "py-8"
1043
1084
  })
1044
1085
  }),
1045
- i ? /* @__PURE__ */ D(ye, {
1046
- open: W,
1047
- onOpenChange: G,
1086
+ i ? /* @__PURE__ */ O(be, {
1087
+ open: H,
1088
+ onOpenChange: U,
1048
1089
  eventId: i,
1049
1090
  eventName: u?.name ?? "this event",
1050
- station: K
1091
+ station: ue
1051
1092
  }) : null,
1052
- /* @__PURE__ */ D(be, {
1053
- open: le,
1054
- onOpenChange: ue,
1055
- record: de,
1056
- stations: k
1093
+ /* @__PURE__ */ O(xe, {
1094
+ open: G,
1095
+ onOpenChange: Z,
1096
+ record: Q,
1097
+ stations: T
1057
1098
  })
1058
1099
  ]
1059
1100
  });
1060
1101
  }
1061
- export { we as default };
1102
+ export { Te as default };
1062
1103
 
1063
1104
  //# sourceMappingURL=KioskPage.js.map