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