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