@burdenoff/microfe-notification 2026.624.2 → 2026.625.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.
@@ -9,36 +9,39 @@ import { useState as o } from "react";
9
9
  import { usePermissions as s } from "@burdenoff/fe-libs/shared/providers/shell";
10
10
  import { CalendarClock as c, Download as l, RefreshCw as u, Search as d } from "lucide-react";
11
11
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
12
+ import { Button as h, GlassCard as g, IllustratedEmptyState as _, ShowMore as v } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/pages/NotificationHistoryAdminPage.tsx
13
- function h(e) {
14
+ function y(e) {
14
15
  return e ? new Date(e).toLocaleString() : "—";
15
16
  }
16
- function g() {
17
- let g = n(), { hasPermission: _, isLoading: v } = s(), { topics: y } = t(), { filters: b, setFilters: x, notifications: S, scheduledNotifications: C, selectedNotification: w, events: T, isLoading: E, loadNotification: D, archiveNotification: O, unarchiveNotification: k, cancelScheduledNotification: A, rescheduleNotification: j, clearSelection: M } = e(), [N, P] = o("");
18
- return v ? /* @__PURE__ */ p("div", {
17
+ function b() {
18
+ let b = n(), { hasPermission: x, isLoading: S } = s(), { topics: C } = t(), { filters: w, setFilters: T, notifications: E, scheduledNotifications: D, selectedNotification: O, events: k, isLoading: A, loadNotification: j, archiveNotification: M, unarchiveNotification: N, cancelScheduledNotification: P, rescheduleNotification: F, clearSelection: I } = e(), [L, R] = o("");
19
+ return S ? /* @__PURE__ */ p("div", {
19
20
  className: "flex h-64 items-center justify-center",
20
21
  children: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
21
- }) : _(i.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
22
+ }) : x(i.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
22
23
  className: "space-y-4 sm:space-y-6",
23
24
  children: [
24
25
  /* @__PURE__ */ m("div", {
25
26
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
26
27
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
27
28
  className: "text-xl sm:text-2xl font-bold text-primary",
28
- children: g("notifications.adminHistoryTitle", "Notification Operations")
29
+ children: b("notifications.adminHistoryTitle", "Notification Operations")
29
30
  }), /* @__PURE__ */ p("p", {
30
31
  className: "text-sm text-secondary mt-1",
31
- children: g("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
32
- })] }), /* @__PURE__ */ m("button", {
32
+ children: b("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
33
+ })] }), /* @__PURE__ */ m(h, {
33
34
  type: "button",
34
- onClick: () => a(g, S),
35
- disabled: S.length === 0,
36
- className: "inline-flex items-center gap-2 rounded-md border border-default px-4 py-2 text-sm text-secondary hover:bg-bg-sunken disabled:opacity-50 disabled:cursor-not-allowed",
37
- children: [/* @__PURE__ */ p(l, { size: 16 }), g("notifications.export", "Export")]
35
+ variant: "outline",
36
+ onClick: () => a(b, E),
37
+ disabled: E.length === 0,
38
+ className: "gap-2",
39
+ children: [/* @__PURE__ */ p(l, { size: 16 }), b("notifications.export", "Export")]
38
40
  })]
39
41
  }),
40
- /* @__PURE__ */ m("div", {
41
- className: "grid gap-3 rounded-lg border border-default bg-surface p-4 lg:grid-cols-6",
42
+ /* @__PURE__ */ m(g, {
43
+ treatment: "plain",
44
+ className: "grid gap-3 border-border-seam p-4 lg:grid-cols-6",
42
45
  children: [
43
46
  /* @__PURE__ */ m("label", {
44
47
  className: "relative lg:col-span-2",
@@ -47,18 +50,18 @@ function g() {
47
50
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
48
51
  }), /* @__PURE__ */ p("input", {
49
52
  type: "text",
50
- value: b.search,
51
- onChange: (e) => x((t) => ({
53
+ value: w.search,
54
+ onChange: (e) => T((t) => ({
52
55
  ...t,
53
56
  search: e.target.value
54
57
  })),
55
- placeholder: g("notifications.searchByTitleOrContent", "Search by title or content..."),
58
+ placeholder: b("notifications.searchByTitleOrContent", "Search by title or content..."),
56
59
  className: "w-full rounded-md border border-default bg-bg-canvas py-2 pl-9 pr-3 text-sm text-primary focus:outline-none focus:ring-2 focus:ring-accent"
57
60
  })]
58
61
  }),
59
62
  /* @__PURE__ */ m("select", {
60
- value: b.status,
61
- onChange: (e) => x((t) => ({
63
+ value: w.status,
64
+ onChange: (e) => T((t) => ({
62
65
  ...t,
63
66
  status: e.target.value
64
67
  })),
@@ -66,7 +69,7 @@ function g() {
66
69
  children: [
67
70
  /* @__PURE__ */ p("option", {
68
71
  value: "all",
69
- children: g("notifications.allStatuses", "All Statuses")
72
+ children: b("notifications.allStatuses", "All Statuses")
70
73
  }),
71
74
  /* @__PURE__ */ p("option", {
72
75
  value: "PENDING",
@@ -91,8 +94,8 @@ function g() {
91
94
  ]
92
95
  }),
93
96
  /* @__PURE__ */ m("select", {
94
- value: b.channel,
95
- onChange: (e) => x((t) => ({
97
+ value: w.channel,
98
+ onChange: (e) => T((t) => ({
96
99
  ...t,
97
100
  channel: e.target.value
98
101
  })),
@@ -100,7 +103,7 @@ function g() {
100
103
  children: [
101
104
  /* @__PURE__ */ p("option", {
102
105
  value: "all",
103
- children: g("notifications.allChannels", "All Channels")
106
+ children: b("notifications.allChannels", "All Channels")
104
107
  }),
105
108
  /* @__PURE__ */ p("option", {
106
109
  value: "EMAIL",
@@ -125,8 +128,8 @@ function g() {
125
128
  ]
126
129
  }),
127
130
  /* @__PURE__ */ m("select", {
128
- value: b.deliveryStatus,
129
- onChange: (e) => x((t) => ({
131
+ value: w.deliveryStatus,
132
+ onChange: (e) => T((t) => ({
130
133
  ...t,
131
134
  deliveryStatus: e.target.value
132
135
  })),
@@ -134,7 +137,7 @@ function g() {
134
137
  children: [
135
138
  /* @__PURE__ */ p("option", {
136
139
  value: "all",
137
- children: g("notifications.allDeliveryStates", "All Delivery")
140
+ children: b("notifications.allDeliveryStates", "All Delivery")
138
141
  }),
139
142
  /* @__PURE__ */ p("option", {
140
143
  value: "DELIVERED",
@@ -159,23 +162,23 @@ function g() {
159
162
  ]
160
163
  }),
161
164
  /* @__PURE__ */ m("select", {
162
- value: b.topicId,
163
- onChange: (e) => x((t) => ({
165
+ value: w.topicId,
166
+ onChange: (e) => T((t) => ({
164
167
  ...t,
165
168
  topicId: e.target.value
166
169
  })),
167
170
  className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
168
171
  children: [/* @__PURE__ */ p("option", {
169
172
  value: "",
170
- children: g("notifications.allTopics", "All Topics")
171
- }), y.map((e) => /* @__PURE__ */ p("option", {
173
+ children: b("notifications.allTopics", "All Topics")
174
+ }), C.map((e) => /* @__PURE__ */ p("option", {
172
175
  value: e.id,
173
176
  children: e.name
174
177
  }, e.id))]
175
178
  }),
176
179
  /* @__PURE__ */ m("select", {
177
- value: b.archived,
178
- onChange: (e) => x((t) => ({
180
+ value: w.archived,
181
+ onChange: (e) => T((t) => ({
179
182
  ...t,
180
183
  archived: e.target.value
181
184
  })),
@@ -183,15 +186,15 @@ function g() {
183
186
  children: [
184
187
  /* @__PURE__ */ p("option", {
185
188
  value: "all",
186
- children: g("notifications.activeAndArchived", "Active + Archived")
189
+ children: b("notifications.activeAndArchived", "Active + Archived")
187
190
  }),
188
191
  /* @__PURE__ */ p("option", {
189
192
  value: "active",
190
- children: g("notifications.activeOnly", "Active Only")
193
+ children: b("notifications.activeOnly", "Active Only")
191
194
  }),
192
195
  /* @__PURE__ */ p("option", {
193
196
  value: "archived",
194
- children: g("notifications.archivedOnly", "Archived Only")
197
+ children: b("notifications.archivedOnly", "Archived Only")
195
198
  })
196
199
  ]
197
200
  })
@@ -202,31 +205,32 @@ function g() {
202
205
  children: [/* @__PURE__ */ m("div", {
203
206
  className: "space-y-6",
204
207
  children: [/* @__PURE__ */ m("section", {
205
- className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
208
+ className: "rounded-lg border border-border-seam bg-gloss-card p-4",
206
209
  children: [/* @__PURE__ */ m("div", {
207
210
  className: "mb-4 flex items-center justify-between",
208
211
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
209
212
  className: "text-base font-semibold text-primary",
210
- children: g("notifications.sentNotifications", "Notifications")
213
+ children: b("notifications.sentNotifications", "Notifications")
211
214
  }), /* @__PURE__ */ m("p", {
212
215
  className: "text-sm text-secondary",
213
216
  children: [
214
- S.length,
217
+ E.length,
215
218
  " ",
216
- g("notifications.resultsFoundShort", "results")
219
+ b("notifications.resultsFoundShort", "results")
217
220
  ]
218
- })] }), E && /* @__PURE__ */ p(u, {
221
+ })] }), A && /* @__PURE__ */ p(u, {
219
222
  size: 16,
220
223
  className: "animate-spin text-tertiary"
221
224
  })]
222
225
  }), /* @__PURE__ */ p("div", {
223
226
  className: "space-y-3",
224
- children: S.length === 0 ? /* @__PURE__ */ p("div", {
225
- className: "rounded-md border border-dashed border-default p-6 text-sm text-secondary",
226
- children: g("notifications.noNotificationsFound", "No notifications found")
227
- }) : S.map((e) => /* @__PURE__ */ p("button", {
227
+ children: E.length === 0 ? /* @__PURE__ */ p(_, {
228
+ illustration: "empty-search",
229
+ title: b("notifications.noNotificationsFound", "No notifications found"),
230
+ description: b("notifications.adjustSearchOrDateRange", "Try adjusting your filters")
231
+ }) : E.map((e) => /* @__PURE__ */ p("button", {
228
232
  type: "button",
229
- onClick: () => D(e.id),
233
+ onClick: () => j(e.id),
230
234
  className: "block w-full text-left",
231
235
  children: /* @__PURE__ */ p(r, {
232
236
  notification: e,
@@ -237,7 +241,7 @@ function g() {
237
241
  }, e.id))
238
242
  })]
239
243
  }), /* @__PURE__ */ m("section", {
240
- className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
244
+ className: "rounded-lg border border-border-seam bg-gloss-card p-4",
241
245
  children: [/* @__PURE__ */ m("div", {
242
246
  className: "mb-4 flex items-center gap-2",
243
247
  children: [/* @__PURE__ */ p(c, {
@@ -245,14 +249,14 @@ function g() {
245
249
  className: "text-accent-primary"
246
250
  }), /* @__PURE__ */ p("h2", {
247
251
  className: "text-base font-semibold text-primary",
248
- children: g("notifications.scheduledNotifications", "Scheduled Notifications")
252
+ children: b("notifications.scheduledNotifications", "Scheduled Notifications")
249
253
  })]
250
254
  }), /* @__PURE__ */ p("div", {
251
255
  className: "space-y-3",
252
- children: C.length === 0 ? /* @__PURE__ */ p("div", {
256
+ children: D.length === 0 ? /* @__PURE__ */ p("div", {
253
257
  className: "rounded-md border border-dashed border-default p-6 text-sm text-secondary",
254
- children: g("notifications.noScheduledNotifications", "No scheduled notifications")
255
- }) : C.map((e) => /* @__PURE__ */ p("div", {
258
+ children: b("notifications.noScheduledNotifications", "No scheduled notifications")
259
+ }) : D.map((e) => /* @__PURE__ */ p("div", {
256
260
  className: "rounded-md border border-default bg-bg-canvas p-4",
257
261
  children: /* @__PURE__ */ m("div", {
258
262
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
@@ -267,20 +271,20 @@ function g() {
267
271
  e.notification.type,
268
272
  " •",
269
273
  " ",
270
- h(e.scheduledFor)
274
+ y(e.scheduledFor)
271
275
  ]
272
276
  })] }), /* @__PURE__ */ m("div", {
273
277
  className: "flex items-center gap-2",
274
278
  children: [/* @__PURE__ */ p("button", {
275
279
  type: "button",
276
- onClick: () => D(e.notification.id),
280
+ onClick: () => j(e.notification.id),
277
281
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
278
- children: g("notifications.view", "View")
282
+ children: b("notifications.view", "View")
279
283
  }), e.status === "PENDING" && /* @__PURE__ */ p("button", {
280
284
  type: "button",
281
- onClick: () => A(e.id),
285
+ onClick: () => P(e.id),
282
286
  className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
283
- children: g("notifications.cancel", "Cancel")
287
+ children: b("notifications.cancel", "Cancel")
284
288
  })]
285
289
  })]
286
290
  })
@@ -288,23 +292,23 @@ function g() {
288
292
  })]
289
293
  })]
290
294
  }), /* @__PURE__ */ p("aside", {
291
- className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
292
- children: w ? /* @__PURE__ */ m("div", {
295
+ className: "rounded-lg border border-border-seam bg-gloss-card p-4 xl:sticky xl:top-4 xl:max-h-[calc(100vh-2rem)] xl:self-start xl:overflow-y-auto",
296
+ children: O ? /* @__PURE__ */ m("div", {
293
297
  className: "space-y-4",
294
298
  children: [
295
299
  /* @__PURE__ */ m("div", {
296
300
  className: "flex items-start justify-between gap-3",
297
301
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
298
302
  className: "text-lg font-semibold text-primary",
299
- children: w.title
303
+ children: O.title
300
304
  }), /* @__PURE__ */ p("p", {
301
305
  className: "text-sm text-secondary",
302
- children: w.body
306
+ children: O.body
303
307
  })] }), /* @__PURE__ */ p("button", {
304
308
  type: "button",
305
- onClick: M,
309
+ onClick: I,
306
310
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
307
- children: g("notifications.close", "Close")
311
+ children: b("notifications.close", "Close")
308
312
  })]
309
313
  }),
310
314
  /* @__PURE__ */ m("div", {
@@ -313,63 +317,63 @@ function g() {
313
317
  /* @__PURE__ */ m("div", { children: [
314
318
  /* @__PURE__ */ p("strong", { children: "Status:" }),
315
319
  " ",
316
- w.status
320
+ O.status
317
321
  ] }),
318
322
  /* @__PURE__ */ m("div", { children: [
319
323
  /* @__PURE__ */ p("strong", { children: "Delivery:" }),
320
324
  " ",
321
- w.deliveryStatus || "—"
325
+ O.deliveryStatus || "—"
322
326
  ] }),
323
327
  /* @__PURE__ */ m("div", { children: [
324
328
  /* @__PURE__ */ p("strong", { children: "Topic:" }),
325
329
  " ",
326
- w.topic?.name || "—"
330
+ O.topic?.name || "—"
327
331
  ] }),
328
332
  /* @__PURE__ */ m("div", { children: [
329
333
  /* @__PURE__ */ p("strong", { children: "Created:" }),
330
334
  " ",
331
- h(w.createdAt)
335
+ y(O.createdAt)
332
336
  ] }),
333
337
  /* @__PURE__ */ m("div", { children: [
334
338
  /* @__PURE__ */ p("strong", { children: "Sent:" }),
335
339
  " ",
336
- h(w.sentAt)
340
+ y(O.sentAt)
337
341
  ] }),
338
342
  /* @__PURE__ */ m("div", { children: [
339
343
  /* @__PURE__ */ p("strong", { children: "Delivered:" }),
340
344
  " ",
341
- h(w.deliveredAt)
345
+ y(O.deliveredAt)
342
346
  ] }),
343
347
  /* @__PURE__ */ m("div", { children: [
344
348
  /* @__PURE__ */ p("strong", { children: "Opened:" }),
345
349
  " ",
346
- h(w.openedAt)
350
+ y(O.openedAt)
347
351
  ] }),
348
352
  /* @__PURE__ */ m("div", { children: [
349
353
  /* @__PURE__ */ p("strong", { children: "Clicked:" }),
350
354
  " ",
351
- h(w.clickedAt)
355
+ y(O.clickedAt)
352
356
  ] }),
353
357
  /* @__PURE__ */ m("div", { children: [
354
358
  /* @__PURE__ */ p("strong", { children: "Read:" }),
355
359
  " ",
356
- h(w.readAt)
360
+ y(O.readAt)
357
361
  ] }),
358
362
  /* @__PURE__ */ m("div", { children: [
359
363
  /* @__PURE__ */ p("strong", { children: "Recipient:" }),
360
364
  " ",
361
- w.recipientEmail || w.recipientPhone || w.id
365
+ O.recipientEmail || O.recipientPhone || O.id
362
366
  ] })
363
367
  ]
364
368
  }),
365
- w.media.length > 0 && /* @__PURE__ */ m("div", {
369
+ O.media.length > 0 && /* @__PURE__ */ m("div", {
366
370
  className: "space-y-2",
367
371
  children: [/* @__PURE__ */ p("h3", {
368
372
  className: "text-sm font-semibold text-primary",
369
- children: g("notifications.media", "Media")
373
+ children: b("notifications.media", "Media")
370
374
  }), /* @__PURE__ */ p("div", {
371
375
  className: "grid gap-3",
372
- children: w.media.map((e) => /* @__PURE__ */ p("a", {
376
+ children: O.media.map((e) => /* @__PURE__ */ p("a", {
373
377
  href: e.url,
374
378
  target: "_blank",
375
379
  rel: "noreferrer",
@@ -378,14 +382,14 @@ function g() {
378
382
  }, e.url))
379
383
  })]
380
384
  }),
381
- w.actions.length > 0 && /* @__PURE__ */ m("div", {
385
+ O.actions.length > 0 && /* @__PURE__ */ m("div", {
382
386
  className: "space-y-2",
383
387
  children: [/* @__PURE__ */ p("h3", {
384
388
  className: "text-sm font-semibold text-primary",
385
- children: g("notifications.actions", "Actions")
389
+ children: b("notifications.actions", "Actions")
386
390
  }), /* @__PURE__ */ p("div", {
387
391
  className: "grid gap-2",
388
- children: w.actions.map((e) => /* @__PURE__ */ m("div", {
392
+ children: O.actions.map((e) => /* @__PURE__ */ m("div", {
389
393
  className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
390
394
  children: [/* @__PURE__ */ p("div", {
391
395
  className: "font-medium text-primary",
@@ -397,89 +401,92 @@ function g() {
397
401
  }, e.id))
398
402
  })]
399
403
  }),
400
- w.scheduledNotification && /* @__PURE__ */ m("div", {
404
+ O.scheduledNotification && /* @__PURE__ */ m("div", {
401
405
  className: "space-y-3 rounded-md border border-default bg-bg-canvas p-3",
402
406
  children: [
403
407
  /* @__PURE__ */ p("div", {
404
408
  className: "text-sm font-semibold text-primary",
405
- children: g("notifications.scheduling", "Scheduling")
409
+ children: b("notifications.scheduling", "Scheduling")
406
410
  }),
407
411
  /* @__PURE__ */ p("div", {
408
412
  className: "text-sm text-secondary",
409
- children: h(w.scheduledNotification.scheduledFor)
413
+ children: y(O.scheduledNotification.scheduledFor)
410
414
  }),
411
- w.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
415
+ O.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
412
416
  type: "datetime-local",
413
- value: N,
414
- onChange: (e) => P(e.target.value),
417
+ value: L,
418
+ onChange: (e) => R(e.target.value),
415
419
  className: "w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary"
416
420
  }), /* @__PURE__ */ m("div", {
417
421
  className: "flex items-center gap-2",
418
422
  children: [/* @__PURE__ */ p("button", {
419
423
  type: "button",
420
- onClick: () => N && j(w.scheduledNotification.id, new Date(N).toISOString()),
424
+ onClick: () => L && F(O.scheduledNotification.id, new Date(L).toISOString()),
421
425
  className: "rounded-md bg-accent-primary px-3 py-2 text-xs font-medium text-text-inverse hover:opacity-90",
422
- children: g("notifications.reschedule", "Reschedule")
426
+ children: b("notifications.reschedule", "Reschedule")
423
427
  }), /* @__PURE__ */ p("button", {
424
428
  type: "button",
425
- onClick: () => A(w.scheduledNotification.id),
429
+ onClick: () => P(O.scheduledNotification.id),
426
430
  className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
427
- children: g("notifications.cancel", "Cancel")
431
+ children: b("notifications.cancel", "Cancel")
428
432
  })]
429
433
  })] })
430
434
  ]
431
435
  }),
432
436
  /* @__PURE__ */ p("div", {
433
437
  className: "flex items-center gap-2",
434
- children: w.archivedAt ? /* @__PURE__ */ p("button", {
438
+ children: O.archivedAt ? /* @__PURE__ */ p("button", {
435
439
  type: "button",
436
- onClick: () => k(w.id),
440
+ onClick: () => N(O.id),
437
441
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
438
- children: g("notifications.restore", "Restore")
442
+ children: b("notifications.restore", "Restore")
439
443
  }) : /* @__PURE__ */ p("button", {
440
444
  type: "button",
441
- onClick: () => O(w.id),
445
+ onClick: () => M(O.id),
442
446
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
443
- children: g("notifications.archive", "Archive")
447
+ children: b("notifications.archive", "Archive")
444
448
  })
445
449
  }),
446
450
  /* @__PURE__ */ m("div", {
447
451
  className: "space-y-2",
448
452
  children: [/* @__PURE__ */ p("h3", {
449
453
  className: "text-sm font-semibold text-primary",
450
- children: g("notifications.eventTimeline", "Event Timeline")
451
- }), /* @__PURE__ */ p("div", {
452
- className: "space-y-2",
453
- children: T.length === 0 ? /* @__PURE__ */ p("div", {
454
- className: "rounded-md border border-dashed border-default p-4 text-sm text-secondary",
455
- children: g("notifications.noEvents", "No events recorded yet.")
456
- }) : T.map((e) => /* @__PURE__ */ m("div", {
457
- className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
458
- children: [
459
- /* @__PURE__ */ p("div", {
460
- className: "font-medium text-primary",
461
- children: e.eventType
462
- }),
463
- /* @__PURE__ */ p("div", { children: h(e.timestamp) }),
464
- e.deliveryStatus && /* @__PURE__ */ m("div", { children: ["Delivery: ", e.deliveryStatus] })
465
- ]
466
- }, e.id))
454
+ children: b("notifications.eventTimeline", "Event Timeline")
455
+ }), k.length === 0 ? /* @__PURE__ */ p("div", {
456
+ className: "rounded-md border border-dashed border-border-seam p-4 text-sm text-secondary",
457
+ children: b("notifications.noEvents", "No events recorded yet.")
458
+ }) : /* @__PURE__ */ p(v, {
459
+ collapsedHeight: 180,
460
+ children: /* @__PURE__ */ p("div", {
461
+ className: "space-y-2",
462
+ children: k.map((e) => /* @__PURE__ */ m("div", {
463
+ className: "rounded-md border border-border-seam bg-surface p-3 text-sm text-secondary",
464
+ children: [
465
+ /* @__PURE__ */ p("div", {
466
+ className: "font-medium text-primary",
467
+ children: e.eventType
468
+ }),
469
+ /* @__PURE__ */ p("div", { children: y(e.timestamp) }),
470
+ e.deliveryStatus && /* @__PURE__ */ m("div", { children: ["Delivery: ", e.deliveryStatus] })
471
+ ]
472
+ }, e.id))
473
+ })
467
474
  })]
468
475
  })
469
476
  ]
470
477
  }) : /* @__PURE__ */ p("div", {
471
478
  className: "flex h-full min-h-[360px] items-center justify-center rounded-md border border-dashed border-default p-6 text-center text-sm text-secondary",
472
- children: g("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
479
+ children: b("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
473
480
  })
474
481
  })]
475
482
  })
476
483
  ]
477
484
  }) : /* @__PURE__ */ p("div", {
478
485
  className: "p-8 text-center text-text-secondary",
479
- children: g("notifications.noPermissionHistory", "You don't have permission to view notification history.")
486
+ children: b("notifications.noPermissionHistory", "You don't have permission to view notification history.")
480
487
  });
481
488
  }
482
489
  //#endregion
483
- export { g as NotificationHistoryAdminPage };
490
+ export { b as NotificationHistoryAdminPage };
484
491
 
485
492
  //# sourceMappingURL=NotificationHistoryAdminPage.js.map