@burdenoff/microfe-eventfullymanaged 2026.1124.3 → 2026.1124.4

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.
@@ -2,14 +2,15 @@ import { gql as e } from "../../../node_modules/graphql-tag/lib/index.js";
2
2
  import { useQuery as t } from "../../../node_modules/@apollo/client/react/hooks/useQuery.js";
3
3
  import { CHART_SERIES_COLORS as n, ChartLegend as r, EventAreaChart as ee, EventBarChart as i, EventDonutChart as te } from "../../components/EventCharts.js";
4
4
  import { Pagination as ne, usePagination as re } from "../../components/Pagination.js";
5
- import { AttendanceForecast as ie } from "../../components/AttendanceForecast.js";
6
- import { EventDraftAssistant as ae } from "../../components/EventDraftAssistant.js";
7
- import { useCheckInThroughputQuery as a, useDashboardSummaryQuery as o, useEventsQuery as s, useUpsertAnalyticsSnapshotMutation as c } from "../../api/eventApi.js";
8
- import { describeError as l, mutationSucceeded as u } from "../../lib/mutationResult.js";
9
- import { notify as d } from "../../lib/toast.js";
10
- import { useMemo as f, useState as p } from "react";
11
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
12
- import { Badge as oe, Button as se, EmphasisPanel as ce, GlassCard as g, GradientText as le, IllustratedEmptyState as ue, Input as de, PagePurpose as fe, Select as _, SelectContent as v, SelectItem as y, SelectTrigger as b, SelectValue as x, Skeleton as S } from "@burdenoff/fe-libs/ui";
5
+ import { AiOperationsPanel as ie } from "../../components/AiOperationsPanel.js";
6
+ import { AttendanceForecast as ae } from "../../components/AttendanceForecast.js";
7
+ import { EventDraftAssistant as a } from "../../components/EventDraftAssistant.js";
8
+ import { useCheckInThroughputQuery as o, useDashboardSummaryQuery as s, useEventsQuery as c, useUpsertAnalyticsSnapshotMutation as l } from "../../api/eventApi.js";
9
+ import { describeError as oe, mutationSucceeded as se } from "../../lib/mutationResult.js";
10
+ import { notify as u } from "../../lib/toast.js";
11
+ import { useMemo as d, useState as f } from "react";
12
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
13
+ import { Badge as ce, Button as le, EmphasisPanel as ue, GlassCard as h, GradientText as de, IllustratedEmptyState as fe, Input as pe, PagePurpose as g, Select as _, SelectContent as v, SelectItem as y, SelectTrigger as b, SelectValue as x, Skeleton as S } from "@burdenoff/fe-libs/ui";
13
14
  import { BarChart3 as C, CalendarDays as w, ClipboardList as T, MapPin as E, QrCode as D, Sparkles as O, Ticket as k, Trophy as A, Users as j } from "lucide-react";
14
15
  // src/eventfullymanaged/pages/modules/AnalyticsPage.tsx
15
16
  var M = e`
@@ -91,35 +92,35 @@ function L(e) {
91
92
  return e.replace(/[_-]+/g, " ").split(" ").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" ");
92
93
  }
93
94
  function R({ icon: e, label: t, value: n }) {
94
- return /* @__PURE__ */ h(g, {
95
+ return /* @__PURE__ */ m(h, {
95
96
  treatment: "metric",
96
97
  className: "p-4",
97
- children: [/* @__PURE__ */ h("div", {
98
+ children: [/* @__PURE__ */ m("div", {
98
99
  className: "flex items-center gap-2 text-text-secondary",
99
- children: [/* @__PURE__ */ m(e, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ m("p", {
100
+ children: [/* @__PURE__ */ p(e, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ p("p", {
100
101
  className: "text-xs font-medium uppercase tracking-wide",
101
102
  children: t
102
103
  })]
103
- }), /* @__PURE__ */ m("p", {
104
+ }), /* @__PURE__ */ p("p", {
104
105
  className: "mt-2 text-2xl font-bold tabular-nums text-text-primary",
105
106
  children: n.toLocaleString()
106
107
  })]
107
108
  });
108
109
  }
109
110
  function z() {
110
- let e = re({ pageSize: 8 }), { data: z, loading: B, refetch: pe } = t(M, { variables: {
111
+ let e = re({ pageSize: 8 }), { data: z, loading: B, refetch: me } = t(M, { variables: {
111
112
  limit: e.limit,
112
113
  offset: e.offset
113
- } }), V = o(), [me, { loading: H }] = c(), [U, he] = p("overview"), W = s({
114
+ } }), V = s(), [he, { loading: H }] = l(), [U, ge] = f("overview"), W = c({
114
115
  limit: 50,
115
116
  offset: 0
116
- }), G = f(() => W.data?.events.items ?? [], [W.data]), [ge, _e] = p(""), K = ge || G[0]?.id || "", q = a({ eventId: K }), J = q.data?.checkInThroughput[0]?.timezone ?? null, ve = f(() => (q.data?.checkInThroughput ?? []).map((e) => ({
117
+ }), G = d(() => W.data?.events.items ?? [], [W.data]), [_e, ve] = f(""), K = _e || G[0]?.id || "", q = o({ eventId: K }), J = q.data?.checkInThroughput[0]?.timezone ?? null, ye = d(() => (q.data?.checkInThroughput ?? []).map((e) => ({
117
118
  name: new Date(e.hour).toLocaleTimeString(void 0, {
118
119
  hour: "numeric",
119
120
  timeZone: e.timezone
120
121
  }),
121
122
  value: e.count
122
- })), [q.data]), Y = f(() => z?.analyticsSnapshots.items ?? [], [z]), X = z?.analyticsSnapshots.total ?? 0, Z = V.data?.dashboardSummary, Q = Z?.checkedInRegistrations ?? 0, ye = f(() => Y.map((e) => {
123
+ })), [q.data]), Y = d(() => z?.analyticsSnapshots.items ?? [], [z]), X = z?.analyticsSnapshots.total ?? 0, Z = V.data?.dashboardSummary, Q = Z?.checkedInRegistrations ?? 0, be = d(() => Y.map((e) => {
123
124
  let t = e.metrics?.generatedAt ?? e.createdAt ?? null, n = t ? new Date(t) : null, r = typeof e.metrics?.totalRegistrations == "number" ? e.metrics.totalRegistrations : null;
124
125
  return n && !Number.isNaN(n.getTime()) && r !== null ? {
125
126
  time: n.getTime(),
@@ -129,11 +130,11 @@ function z() {
129
130
  }).filter((e) => e !== null).sort((e, t) => e.time - t.time).map(({ label: e, value: t }) => ({
130
131
  label: e,
131
132
  value: t
132
- })), [Y]), $ = f(() => (Z?.registrationsByStatus ?? []).slice().sort((e, t) => t.count - e.count).map((e, t) => ({
133
+ })), [Y]), $ = d(() => (Z?.registrationsByStatus ?? []).slice().sort((e, t) => t.count - e.count).map((e, t) => ({
133
134
  name: L(e.status || "unknown"),
134
135
  value: e.count,
135
136
  color: n[t % n.length]
136
- })), [Z]), be = Z?.totalRegistrations ?? 0, xe = f(() => Z ? [
137
+ })), [Z]), xe = Z?.totalRegistrations ?? 0, Se = d(() => Z ? [
137
138
  {
138
139
  name: "Events",
139
140
  value: Z.totalEvents
@@ -162,53 +163,53 @@ function z() {
162
163
  name: "Sessions",
163
164
  value: Z.upcomingSessions
164
165
  }
165
- ] : [], [Z, Q]), Se = async () => {
166
+ ] : [], [Z, Q]), Ce = async () => {
166
167
  let e = U.trim();
167
168
  if (e) {
168
- if (Y.some((t) => (t.name ?? "").toLowerCase() === e.toLowerCase())) d.error("Snapshot name already used", "Pick a different name, or delete the existing snapshot first.");
169
+ if (Y.some((t) => (t.name ?? "").toLowerCase() === e.toLowerCase())) u.error("Snapshot name already used", "Pick a different name, or delete the existing snapshot first.");
169
170
  else try {
170
- let t = await me({ variables: { input: {
171
+ let t = await he({ variables: { input: {
171
172
  name: e,
172
173
  title: e,
173
174
  status: "created",
174
175
  metadata: {}
175
176
  } } });
176
- if (!u(t, t.data?.upsertAnalyticsSnapshot?.id, "Could not generate snapshot")) return;
177
- d.success("Snapshot generated"), await pe();
177
+ if (!se(t, t.data?.upsertAnalyticsSnapshot?.id, "Could not generate snapshot")) return;
178
+ u.success("Snapshot generated"), await me();
178
179
  } catch (e) {
179
- d.error("Could not generate snapshot", l(e));
180
+ u.error("Could not generate snapshot", oe(e));
180
181
  }
181
182
  }
182
- }, Ce = V.loading && !Z;
183
- return /* @__PURE__ */ h("div", {
183
+ }, we = V.loading && !Z;
184
+ return /* @__PURE__ */ m("div", {
184
185
  className: "space-y-6 p-6",
185
186
  children: [
186
- /* @__PURE__ */ m(fe, { children: "Analytics shows current totals across every entity you manage, how registrations break down by status, and a trend line built from your saved snapshots. Generate a snapshot to record today's numbers for the workspace; each one is kept on its own and does not get replaced by later snapshots." }),
187
- /* @__PURE__ */ m(ce, { children: /* @__PURE__ */ h("div", {
187
+ /* @__PURE__ */ p(g, { children: "Analytics shows current totals across every entity you manage, how registrations break down by status, and a trend line built from your saved snapshots. Generate a snapshot to record today's numbers for the workspace; each one is kept on its own and does not get replaced by later snapshots." }),
188
+ /* @__PURE__ */ p(ue, { children: /* @__PURE__ */ m("div", {
188
189
  className: "flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",
189
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
190
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
190
191
  className: "text-2xl font-bold text-text-primary",
191
- children: /* @__PURE__ */ m(le, { children: "Analytics" })
192
- }), /* @__PURE__ */ m("p", {
192
+ children: /* @__PURE__ */ p(de, { children: "Analytics" })
193
+ }), /* @__PURE__ */ p("p", {
193
194
  className: "mt-1 text-sm text-text-secondary",
194
195
  children: "Current metrics from live event operations, loaded when the page opens, plus point-in-time snapshots you control."
195
- })] }), /* @__PURE__ */ h("div", {
196
+ })] }), /* @__PURE__ */ m("div", {
196
197
  className: "flex w-full flex-col gap-2 sm:w-auto sm:flex-row",
197
- children: [/* @__PURE__ */ m(de, {
198
+ children: [/* @__PURE__ */ p(pe, {
198
199
  value: U,
199
- onChange: (e) => he(e.target.value),
200
+ onChange: (e) => ge(e.target.value),
200
201
  placeholder: "daily-summary",
201
202
  "aria-label": "Snapshot name",
202
203
  className: "sm:w-48"
203
- }), /* @__PURE__ */ h(se, {
204
+ }), /* @__PURE__ */ m(le, {
204
205
  type: "button",
205
206
  disabled: H,
206
- onClick: Se,
207
- children: [/* @__PURE__ */ m(O, { className: "h-4 w-4" }), H ? "Generating..." : "Generate snapshot"]
207
+ onClick: Ce,
208
+ children: [/* @__PURE__ */ p(O, { className: "h-4 w-4" }), H ? "Generating..." : "Generate snapshot"]
208
209
  })]
209
210
  })]
210
211
  }) }),
211
- /* @__PURE__ */ m(ie, {
212
+ /* @__PURE__ */ p(ae, {
212
213
  events: G,
213
214
  total: W.data?.events.total ?? 0,
214
215
  loading: W.loading,
@@ -225,95 +226,96 @@ function z() {
225
226
  } })
226
227
  })
227
228
  }),
228
- /* @__PURE__ */ m(ae, { events: G }),
229
- /* @__PURE__ */ h("div", {
229
+ /* @__PURE__ */ p(ie, { events: G }),
230
+ /* @__PURE__ */ p(a, { events: G }),
231
+ /* @__PURE__ */ m("div", {
230
232
  className: "grid grid-cols-1 gap-6 xl:grid-cols-[minmax(0,1fr)_320px]",
231
- children: [/* @__PURE__ */ h("div", {
233
+ children: [/* @__PURE__ */ m("div", {
232
234
  className: "space-y-6",
233
235
  children: [
234
- Ce ? /* @__PURE__ */ m("div", {
236
+ we ? /* @__PURE__ */ p("div", {
235
237
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 xl:grid-cols-4",
236
- children: Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */ m(S, { className: "h-[92px] rounded-card" }, t))
237
- }) : Z ? /* @__PURE__ */ h("div", {
238
+ children: Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */ p(S, { className: "h-[92px] rounded-card" }, t))
239
+ }) : Z ? /* @__PURE__ */ m("div", {
238
240
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 xl:grid-cols-4",
239
241
  children: [
240
- /* @__PURE__ */ m(R, {
242
+ /* @__PURE__ */ p(R, {
241
243
  icon: w,
242
244
  label: "Events",
243
245
  value: Z.totalEvents
244
246
  }),
245
- /* @__PURE__ */ m(R, {
247
+ /* @__PURE__ */ p(R, {
246
248
  icon: T,
247
249
  label: "Registrations",
248
250
  value: Z.totalRegistrations
249
251
  }),
250
- /* @__PURE__ */ m(R, {
252
+ /* @__PURE__ */ p(R, {
251
253
  icon: j,
252
254
  label: "Attendees",
253
255
  value: Z.totalAttendees
254
256
  }),
255
- /* @__PURE__ */ m(R, {
257
+ /* @__PURE__ */ p(R, {
256
258
  icon: D,
257
259
  label: "Check-ins",
258
260
  value: Q
259
261
  }),
260
- /* @__PURE__ */ m(R, {
262
+ /* @__PURE__ */ p(R, {
261
263
  icon: E,
262
264
  label: "Venues",
263
265
  value: Z.totalVenues
264
266
  }),
265
- /* @__PURE__ */ m(R, {
267
+ /* @__PURE__ */ p(R, {
266
268
  icon: A,
267
269
  label: "Sponsors",
268
270
  value: Z.totalSponsors
269
271
  }),
270
- /* @__PURE__ */ m(R, {
272
+ /* @__PURE__ */ p(R, {
271
273
  icon: k,
272
274
  label: "Upcoming Sessions",
273
275
  value: Z.upcomingSessions
274
276
  })
275
277
  ]
276
278
  }) : null,
277
- /* @__PURE__ */ h("div", {
279
+ /* @__PURE__ */ m("div", {
278
280
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
279
- children: [/* @__PURE__ */ h(g, {
281
+ children: [/* @__PURE__ */ m(h, {
280
282
  treatment: "insight",
281
283
  className: "p-5",
282
- children: [/* @__PURE__ */ h("div", {
284
+ children: [/* @__PURE__ */ m("div", {
283
285
  className: "flex items-center justify-between",
284
- children: [/* @__PURE__ */ m("h2", {
286
+ children: [/* @__PURE__ */ p("h2", {
285
287
  className: "text-base font-semibold text-text-primary",
286
288
  children: "Registrations over time"
287
- }), /* @__PURE__ */ m("span", {
289
+ }), /* @__PURE__ */ p("span", {
288
290
  className: "text-xs text-text-muted",
289
291
  children: "By snapshot"
290
292
  })]
291
- }), /* @__PURE__ */ m("div", {
293
+ }), /* @__PURE__ */ p("div", {
292
294
  className: "mt-4",
293
- children: /* @__PURE__ */ m(ee, {
294
- data: ye,
295
+ children: /* @__PURE__ */ p(ee, {
296
+ data: be,
295
297
  emptyLabel: "Generate a few snapshots to chart the trend"
296
298
  })
297
299
  })]
298
- }), /* @__PURE__ */ h(g, {
300
+ }), /* @__PURE__ */ m(h, {
299
301
  treatment: "insight",
300
302
  className: "p-5",
301
- children: [/* @__PURE__ */ m("h2", {
303
+ children: [/* @__PURE__ */ p("h2", {
302
304
  className: "text-base font-semibold text-text-primary",
303
305
  children: "Registrations by status"
304
- }), /* @__PURE__ */ h("div", {
306
+ }), /* @__PURE__ */ m("div", {
305
307
  className: "mt-4 flex flex-col items-center gap-4 sm:flex-row",
306
- children: [/* @__PURE__ */ m("div", {
308
+ children: [/* @__PURE__ */ p("div", {
307
309
  className: "w-full sm:w-1/2",
308
- children: /* @__PURE__ */ m(te, {
310
+ children: /* @__PURE__ */ p(te, {
309
311
  data: $,
310
- centerValue: be.toLocaleString(),
312
+ centerValue: xe.toLocaleString(),
311
313
  centerLabel: "Registrations",
312
314
  emptyLabel: "No registrations yet"
313
315
  })
314
- }), /* @__PURE__ */ m("div", {
316
+ }), /* @__PURE__ */ p("div", {
315
317
  className: "w-full sm:w-1/2",
316
- children: /* @__PURE__ */ m(r, { items: $.map((e) => ({
318
+ children: /* @__PURE__ */ p(r, { items: $.map((e) => ({
317
319
  label: e.name,
318
320
  color: e.color ?? "var(--color-chart-1)",
319
321
  value: e.value.toLocaleString()
@@ -322,70 +324,70 @@ function z() {
322
324
  })]
323
325
  })]
324
326
  }),
325
- /* @__PURE__ */ h(g, {
327
+ /* @__PURE__ */ m(h, {
326
328
  treatment: "insight",
327
329
  className: "p-5",
328
330
  children: [
329
- /* @__PURE__ */ m("h2", {
331
+ /* @__PURE__ */ p("h2", {
330
332
  className: "text-base font-semibold text-text-primary",
331
333
  children: "Portfolio totals"
332
334
  }),
333
- /* @__PURE__ */ m("p", {
335
+ /* @__PURE__ */ p("p", {
334
336
  className: "mt-0.5 text-xs text-text-muted",
335
337
  children: "Live counts across every entity you manage."
336
338
  }),
337
- /* @__PURE__ */ m("div", {
339
+ /* @__PURE__ */ p("div", {
338
340
  className: "mt-4",
339
- children: /* @__PURE__ */ m(i, {
340
- data: xe,
341
+ children: /* @__PURE__ */ p(i, {
342
+ data: Se,
341
343
  emptyLabel: "No operational data yet"
342
344
  })
343
345
  })
344
346
  ]
345
347
  }),
346
- /* @__PURE__ */ h(g, {
348
+ /* @__PURE__ */ m(h, {
347
349
  treatment: "insight",
348
350
  className: "p-5",
349
- children: [/* @__PURE__ */ h("div", {
351
+ children: [/* @__PURE__ */ m("div", {
350
352
  className: "flex flex-wrap items-center justify-between gap-3",
351
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h2", {
353
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
352
354
  className: "text-base font-semibold text-text-primary",
353
355
  children: "Check-in throughput"
354
- }), /* @__PURE__ */ h("p", {
356
+ }), /* @__PURE__ */ m("p", {
355
357
  className: "mt-0.5 text-xs text-text-muted",
356
358
  children: [
357
359
  "Scans per hour at the door for the selected event",
358
360
  J ? ` (${J})` : "",
359
361
  "."
360
362
  ]
361
- })] }), G.length > 0 ? /* @__PURE__ */ h(_, {
363
+ })] }), G.length > 0 ? /* @__PURE__ */ m(_, {
362
364
  value: K,
363
- onValueChange: _e,
364
- children: [/* @__PURE__ */ m(b, {
365
+ onValueChange: ve,
366
+ children: [/* @__PURE__ */ p(b, {
365
367
  className: "w-full sm:w-56",
366
368
  "aria-label": "Select event for check-in throughput",
367
- children: /* @__PURE__ */ m(x, { placeholder: "Select event" })
368
- }), /* @__PURE__ */ m(v, { children: G.map((e) => /* @__PURE__ */ m(y, {
369
+ children: /* @__PURE__ */ p(x, { placeholder: "Select event" })
370
+ }), /* @__PURE__ */ p(v, { children: G.map((e) => /* @__PURE__ */ p(y, {
369
371
  value: e.id,
370
372
  children: e.name
371
373
  }, e.id)) })]
372
374
  }) : null]
373
- }), /* @__PURE__ */ m("div", {
375
+ }), /* @__PURE__ */ p("div", {
374
376
  className: "mt-4",
375
- children: /* @__PURE__ */ m(i, {
376
- data: ve,
377
+ children: /* @__PURE__ */ p(i, {
378
+ data: ye,
377
379
  emptyLabel: K ? "No check-ins recorded yet for this event" : "Select an event to see throughput"
378
380
  })
379
381
  })]
380
382
  })
381
383
  ]
382
- }), /* @__PURE__ */ h("aside", {
384
+ }), /* @__PURE__ */ m("aside", {
383
385
  className: "space-y-4",
384
- children: [/* @__PURE__ */ h("div", {
386
+ children: [/* @__PURE__ */ m("div", {
385
387
  className: "flex items-center justify-between",
386
- children: [/* @__PURE__ */ h("h2", {
388
+ children: [/* @__PURE__ */ m("h2", {
387
389
  className: "text-base font-semibold text-text-primary",
388
- children: ["Saved snapshots ", X > 0 ? /* @__PURE__ */ h("span", {
390
+ children: ["Saved snapshots ", X > 0 ? /* @__PURE__ */ m("span", {
389
391
  className: "text-text-muted",
390
392
  children: [
391
393
  "(",
@@ -393,20 +395,20 @@ function z() {
393
395
  ")"
394
396
  ]
395
397
  }) : null]
396
- }), /* @__PURE__ */ m(C, { className: "h-4 w-4 text-text-muted" })]
397
- }), B && Y.length === 0 ? /* @__PURE__ */ m("div", {
398
+ }), /* @__PURE__ */ p(C, { className: "h-4 w-4 text-text-muted" })]
399
+ }), B && Y.length === 0 ? /* @__PURE__ */ p("div", {
398
400
  className: "space-y-3",
399
- children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ m(S, { className: "h-24 rounded-card" }, t))
400
- }) : Y.length === 0 ? /* @__PURE__ */ m(g, {
401
+ children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ p(S, { className: "h-24 rounded-card" }, t))
402
+ }) : Y.length === 0 ? /* @__PURE__ */ p(h, {
401
403
  treatment: "plain",
402
404
  className: "border-border-seam",
403
- children: /* @__PURE__ */ m(ue, {
405
+ children: /* @__PURE__ */ p(fe, {
404
406
  illustration: "empty-data",
405
407
  title: "No snapshots yet",
406
408
  description: "Generate your first snapshot to freeze the current metrics.",
407
409
  className: "py-8"
408
410
  })
409
- }) : /* @__PURE__ */ h("div", {
411
+ }) : /* @__PURE__ */ m("div", {
410
412
  className: "space-y-3",
411
413
  children: [Y.map((e) => {
412
414
  let t = F(e.metrics?.generatedAt) ?? F(e.createdAt), n = N.map((t) => {
@@ -416,43 +418,43 @@ function z() {
416
418
  value: typeof n == "number" ? n : null
417
419
  };
418
420
  }).filter((e) => e.value !== null);
419
- return /* @__PURE__ */ h(g, {
421
+ return /* @__PURE__ */ m(h, {
420
422
  treatment: "plain",
421
423
  className: "border-border-seam p-4",
422
- children: [/* @__PURE__ */ h("div", {
424
+ children: [/* @__PURE__ */ m("div", {
423
425
  className: "flex items-start justify-between gap-2",
424
- children: [/* @__PURE__ */ h("div", {
426
+ children: [/* @__PURE__ */ m("div", {
425
427
  className: "min-w-0",
426
- children: [/* @__PURE__ */ m("h3", {
428
+ children: [/* @__PURE__ */ p("h3", {
427
429
  className: "truncate text-sm font-semibold text-text-primary",
428
430
  children: e.title ?? e.name ?? `Snapshot ${e.id}`
429
- }), t ? /* @__PURE__ */ m("p", {
431
+ }), t ? /* @__PURE__ */ p("p", {
430
432
  className: "mt-0.5 text-xs text-text-muted",
431
433
  children: t
432
434
  }) : null]
433
- }), e.status ? /* @__PURE__ */ m(oe, {
435
+ }), e.status ? /* @__PURE__ */ p(ce, {
434
436
  variant: P(e.status),
435
437
  className: "shrink-0 uppercase",
436
438
  children: e.status
437
439
  }) : null]
438
- }), n.length > 0 ? /* @__PURE__ */ m("dl", {
440
+ }), n.length > 0 ? /* @__PURE__ */ p("dl", {
439
441
  className: "mt-3 space-y-1.5",
440
- children: n.map((e) => /* @__PURE__ */ h("div", {
442
+ children: n.map((e) => /* @__PURE__ */ m("div", {
441
443
  className: "flex items-center justify-between text-xs",
442
- children: [/* @__PURE__ */ m("dt", {
444
+ children: [/* @__PURE__ */ p("dt", {
443
445
  className: "text-text-secondary",
444
446
  children: e.label
445
- }), /* @__PURE__ */ m("dd", {
447
+ }), /* @__PURE__ */ p("dd", {
446
448
  className: "font-semibold tabular-nums text-text-primary",
447
449
  children: (e.value ?? 0).toLocaleString()
448
450
  })]
449
451
  }, e.label))
450
- }) : /* @__PURE__ */ m("p", {
452
+ }) : /* @__PURE__ */ p("p", {
451
453
  className: "mt-3 text-xs text-text-muted",
452
454
  children: "No metrics captured."
453
455
  })]
454
456
  }, e.id);
455
- }), /* @__PURE__ */ m(ne, {
457
+ }), /* @__PURE__ */ p(ne, {
456
458
  offset: e.offset,
457
459
  limit: e.limit,
458
460
  loadedCount: Y.length,