@burdenoff/microfe-notification 2026.624.1 → 2026.625.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.
@@ -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, ShowMore as _ } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/pages/NotificationHistoryAdminPage.tsx
13
- function h(e) {
14
+ function v(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 y() {
18
+ let y = n(), { hasPermission: b, isLoading: x } = s(), { topics: S } = t(), { filters: C, setFilters: w, notifications: T, scheduledNotifications: E, selectedNotification: D, events: O, isLoading: k, loadNotification: A, archiveNotification: j, unarchiveNotification: M, cancelScheduledNotification: N, rescheduleNotification: P, clearSelection: F } = e(), [I, L] = o("");
19
+ return x ? /* @__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
+ }) : b(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: y("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: y("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(y, T),
37
+ disabled: T.length === 0,
38
+ className: "gap-2",
39
+ children: [/* @__PURE__ */ p(l, { size: 16 }), y("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: C.search,
54
+ onChange: (e) => w((t) => ({
52
55
  ...t,
53
56
  search: e.target.value
54
57
  })),
55
- placeholder: g("notifications.searchByTitleOrContent", "Search by title or content..."),
58
+ placeholder: y("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: C.status,
64
+ onChange: (e) => w((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: y("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: C.channel,
98
+ onChange: (e) => w((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: y("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: C.deliveryStatus,
132
+ onChange: (e) => w((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: y("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: C.topicId,
166
+ onChange: (e) => w((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: y("notifications.allTopics", "All Topics")
174
+ }), S.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: C.archived,
181
+ onChange: (e) => w((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: y("notifications.activeAndArchived", "Active + Archived")
187
190
  }),
188
191
  /* @__PURE__ */ p("option", {
189
192
  value: "active",
190
- children: g("notifications.activeOnly", "Active Only")
193
+ children: y("notifications.activeOnly", "Active Only")
191
194
  }),
192
195
  /* @__PURE__ */ p("option", {
193
196
  value: "archived",
194
- children: g("notifications.archivedOnly", "Archived Only")
197
+ children: y("notifications.archivedOnly", "Archived Only")
195
198
  })
196
199
  ]
197
200
  })
@@ -202,31 +205,31 @@ 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: y("notifications.sentNotifications", "Notifications")
211
214
  }), /* @__PURE__ */ m("p", {
212
215
  className: "text-sm text-secondary",
213
216
  children: [
214
- S.length,
217
+ T.length,
215
218
  " ",
216
- g("notifications.resultsFoundShort", "results")
219
+ y("notifications.resultsFoundShort", "results")
217
220
  ]
218
- })] }), E && /* @__PURE__ */ p(u, {
221
+ })] }), k && /* @__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", {
227
+ children: T.length === 0 ? /* @__PURE__ */ p("div", {
225
228
  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", {
229
+ children: y("notifications.noNotificationsFound", "No notifications found")
230
+ }) : T.map((e) => /* @__PURE__ */ p("button", {
228
231
  type: "button",
229
- onClick: () => D(e.id),
232
+ onClick: () => A(e.id),
230
233
  className: "block w-full text-left",
231
234
  children: /* @__PURE__ */ p(r, {
232
235
  notification: e,
@@ -237,7 +240,7 @@ function g() {
237
240
  }, e.id))
238
241
  })]
239
242
  }), /* @__PURE__ */ m("section", {
240
- className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
243
+ className: "rounded-lg border border-border-seam bg-gloss-card p-4",
241
244
  children: [/* @__PURE__ */ m("div", {
242
245
  className: "mb-4 flex items-center gap-2",
243
246
  children: [/* @__PURE__ */ p(c, {
@@ -245,14 +248,14 @@ function g() {
245
248
  className: "text-accent-primary"
246
249
  }), /* @__PURE__ */ p("h2", {
247
250
  className: "text-base font-semibold text-primary",
248
- children: g("notifications.scheduledNotifications", "Scheduled Notifications")
251
+ children: y("notifications.scheduledNotifications", "Scheduled Notifications")
249
252
  })]
250
253
  }), /* @__PURE__ */ p("div", {
251
254
  className: "space-y-3",
252
- children: C.length === 0 ? /* @__PURE__ */ p("div", {
255
+ children: E.length === 0 ? /* @__PURE__ */ p("div", {
253
256
  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", {
257
+ children: y("notifications.noScheduledNotifications", "No scheduled notifications")
258
+ }) : E.map((e) => /* @__PURE__ */ p("div", {
256
259
  className: "rounded-md border border-default bg-bg-canvas p-4",
257
260
  children: /* @__PURE__ */ m("div", {
258
261
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
@@ -267,20 +270,20 @@ function g() {
267
270
  e.notification.type,
268
271
  " •",
269
272
  " ",
270
- h(e.scheduledFor)
273
+ v(e.scheduledFor)
271
274
  ]
272
275
  })] }), /* @__PURE__ */ m("div", {
273
276
  className: "flex items-center gap-2",
274
277
  children: [/* @__PURE__ */ p("button", {
275
278
  type: "button",
276
- onClick: () => D(e.notification.id),
279
+ onClick: () => A(e.notification.id),
277
280
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
278
- children: g("notifications.view", "View")
281
+ children: y("notifications.view", "View")
279
282
  }), e.status === "PENDING" && /* @__PURE__ */ p("button", {
280
283
  type: "button",
281
- onClick: () => A(e.id),
284
+ onClick: () => N(e.id),
282
285
  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")
286
+ children: y("notifications.cancel", "Cancel")
284
287
  })]
285
288
  })]
286
289
  })
@@ -288,23 +291,23 @@ function g() {
288
291
  })]
289
292
  })]
290
293
  }), /* @__PURE__ */ p("aside", {
291
- className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
292
- children: w ? /* @__PURE__ */ m("div", {
294
+ 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",
295
+ children: D ? /* @__PURE__ */ m("div", {
293
296
  className: "space-y-4",
294
297
  children: [
295
298
  /* @__PURE__ */ m("div", {
296
299
  className: "flex items-start justify-between gap-3",
297
300
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
298
301
  className: "text-lg font-semibold text-primary",
299
- children: w.title
302
+ children: D.title
300
303
  }), /* @__PURE__ */ p("p", {
301
304
  className: "text-sm text-secondary",
302
- children: w.body
305
+ children: D.body
303
306
  })] }), /* @__PURE__ */ p("button", {
304
307
  type: "button",
305
- onClick: M,
308
+ onClick: F,
306
309
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
307
- children: g("notifications.close", "Close")
310
+ children: y("notifications.close", "Close")
308
311
  })]
309
312
  }),
310
313
  /* @__PURE__ */ m("div", {
@@ -313,63 +316,63 @@ function g() {
313
316
  /* @__PURE__ */ m("div", { children: [
314
317
  /* @__PURE__ */ p("strong", { children: "Status:" }),
315
318
  " ",
316
- w.status
319
+ D.status
317
320
  ] }),
318
321
  /* @__PURE__ */ m("div", { children: [
319
322
  /* @__PURE__ */ p("strong", { children: "Delivery:" }),
320
323
  " ",
321
- w.deliveryStatus || "—"
324
+ D.deliveryStatus || "—"
322
325
  ] }),
323
326
  /* @__PURE__ */ m("div", { children: [
324
327
  /* @__PURE__ */ p("strong", { children: "Topic:" }),
325
328
  " ",
326
- w.topic?.name || "—"
329
+ D.topic?.name || "—"
327
330
  ] }),
328
331
  /* @__PURE__ */ m("div", { children: [
329
332
  /* @__PURE__ */ p("strong", { children: "Created:" }),
330
333
  " ",
331
- h(w.createdAt)
334
+ v(D.createdAt)
332
335
  ] }),
333
336
  /* @__PURE__ */ m("div", { children: [
334
337
  /* @__PURE__ */ p("strong", { children: "Sent:" }),
335
338
  " ",
336
- h(w.sentAt)
339
+ v(D.sentAt)
337
340
  ] }),
338
341
  /* @__PURE__ */ m("div", { children: [
339
342
  /* @__PURE__ */ p("strong", { children: "Delivered:" }),
340
343
  " ",
341
- h(w.deliveredAt)
344
+ v(D.deliveredAt)
342
345
  ] }),
343
346
  /* @__PURE__ */ m("div", { children: [
344
347
  /* @__PURE__ */ p("strong", { children: "Opened:" }),
345
348
  " ",
346
- h(w.openedAt)
349
+ v(D.openedAt)
347
350
  ] }),
348
351
  /* @__PURE__ */ m("div", { children: [
349
352
  /* @__PURE__ */ p("strong", { children: "Clicked:" }),
350
353
  " ",
351
- h(w.clickedAt)
354
+ v(D.clickedAt)
352
355
  ] }),
353
356
  /* @__PURE__ */ m("div", { children: [
354
357
  /* @__PURE__ */ p("strong", { children: "Read:" }),
355
358
  " ",
356
- h(w.readAt)
359
+ v(D.readAt)
357
360
  ] }),
358
361
  /* @__PURE__ */ m("div", { children: [
359
362
  /* @__PURE__ */ p("strong", { children: "Recipient:" }),
360
363
  " ",
361
- w.recipientEmail || w.recipientPhone || w.id
364
+ D.recipientEmail || D.recipientPhone || D.id
362
365
  ] })
363
366
  ]
364
367
  }),
365
- w.media.length > 0 && /* @__PURE__ */ m("div", {
368
+ D.media.length > 0 && /* @__PURE__ */ m("div", {
366
369
  className: "space-y-2",
367
370
  children: [/* @__PURE__ */ p("h3", {
368
371
  className: "text-sm font-semibold text-primary",
369
- children: g("notifications.media", "Media")
372
+ children: y("notifications.media", "Media")
370
373
  }), /* @__PURE__ */ p("div", {
371
374
  className: "grid gap-3",
372
- children: w.media.map((e) => /* @__PURE__ */ p("a", {
375
+ children: D.media.map((e) => /* @__PURE__ */ p("a", {
373
376
  href: e.url,
374
377
  target: "_blank",
375
378
  rel: "noreferrer",
@@ -378,14 +381,14 @@ function g() {
378
381
  }, e.url))
379
382
  })]
380
383
  }),
381
- w.actions.length > 0 && /* @__PURE__ */ m("div", {
384
+ D.actions.length > 0 && /* @__PURE__ */ m("div", {
382
385
  className: "space-y-2",
383
386
  children: [/* @__PURE__ */ p("h3", {
384
387
  className: "text-sm font-semibold text-primary",
385
- children: g("notifications.actions", "Actions")
388
+ children: y("notifications.actions", "Actions")
386
389
  }), /* @__PURE__ */ p("div", {
387
390
  className: "grid gap-2",
388
- children: w.actions.map((e) => /* @__PURE__ */ m("div", {
391
+ children: D.actions.map((e) => /* @__PURE__ */ m("div", {
389
392
  className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
390
393
  children: [/* @__PURE__ */ p("div", {
391
394
  className: "font-medium text-primary",
@@ -397,89 +400,92 @@ function g() {
397
400
  }, e.id))
398
401
  })]
399
402
  }),
400
- w.scheduledNotification && /* @__PURE__ */ m("div", {
403
+ D.scheduledNotification && /* @__PURE__ */ m("div", {
401
404
  className: "space-y-3 rounded-md border border-default bg-bg-canvas p-3",
402
405
  children: [
403
406
  /* @__PURE__ */ p("div", {
404
407
  className: "text-sm font-semibold text-primary",
405
- children: g("notifications.scheduling", "Scheduling")
408
+ children: y("notifications.scheduling", "Scheduling")
406
409
  }),
407
410
  /* @__PURE__ */ p("div", {
408
411
  className: "text-sm text-secondary",
409
- children: h(w.scheduledNotification.scheduledFor)
412
+ children: v(D.scheduledNotification.scheduledFor)
410
413
  }),
411
- w.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
414
+ D.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
412
415
  type: "datetime-local",
413
- value: N,
414
- onChange: (e) => P(e.target.value),
416
+ value: I,
417
+ onChange: (e) => L(e.target.value),
415
418
  className: "w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary"
416
419
  }), /* @__PURE__ */ m("div", {
417
420
  className: "flex items-center gap-2",
418
421
  children: [/* @__PURE__ */ p("button", {
419
422
  type: "button",
420
- onClick: () => N && j(w.scheduledNotification.id, new Date(N).toISOString()),
423
+ onClick: () => I && P(D.scheduledNotification.id, new Date(I).toISOString()),
421
424
  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")
425
+ children: y("notifications.reschedule", "Reschedule")
423
426
  }), /* @__PURE__ */ p("button", {
424
427
  type: "button",
425
- onClick: () => A(w.scheduledNotification.id),
428
+ onClick: () => N(D.scheduledNotification.id),
426
429
  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")
430
+ children: y("notifications.cancel", "Cancel")
428
431
  })]
429
432
  })] })
430
433
  ]
431
434
  }),
432
435
  /* @__PURE__ */ p("div", {
433
436
  className: "flex items-center gap-2",
434
- children: w.archivedAt ? /* @__PURE__ */ p("button", {
437
+ children: D.archivedAt ? /* @__PURE__ */ p("button", {
435
438
  type: "button",
436
- onClick: () => k(w.id),
439
+ onClick: () => M(D.id),
437
440
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
438
- children: g("notifications.restore", "Restore")
441
+ children: y("notifications.restore", "Restore")
439
442
  }) : /* @__PURE__ */ p("button", {
440
443
  type: "button",
441
- onClick: () => O(w.id),
444
+ onClick: () => j(D.id),
442
445
  className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
443
- children: g("notifications.archive", "Archive")
446
+ children: y("notifications.archive", "Archive")
444
447
  })
445
448
  }),
446
449
  /* @__PURE__ */ m("div", {
447
450
  className: "space-y-2",
448
451
  children: [/* @__PURE__ */ p("h3", {
449
452
  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))
453
+ children: y("notifications.eventTimeline", "Event Timeline")
454
+ }), O.length === 0 ? /* @__PURE__ */ p("div", {
455
+ className: "rounded-md border border-dashed border-border-seam p-4 text-sm text-secondary",
456
+ children: y("notifications.noEvents", "No events recorded yet.")
457
+ }) : /* @__PURE__ */ p(_, {
458
+ collapsedHeight: 180,
459
+ children: /* @__PURE__ */ p("div", {
460
+ className: "space-y-2",
461
+ children: O.map((e) => /* @__PURE__ */ m("div", {
462
+ className: "rounded-md border border-border-seam bg-surface p-3 text-sm text-secondary",
463
+ children: [
464
+ /* @__PURE__ */ p("div", {
465
+ className: "font-medium text-primary",
466
+ children: e.eventType
467
+ }),
468
+ /* @__PURE__ */ p("div", { children: v(e.timestamp) }),
469
+ e.deliveryStatus && /* @__PURE__ */ m("div", { children: ["Delivery: ", e.deliveryStatus] })
470
+ ]
471
+ }, e.id))
472
+ })
467
473
  })]
468
474
  })
469
475
  ]
470
476
  }) : /* @__PURE__ */ p("div", {
471
477
  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.")
478
+ children: y("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
473
479
  })
474
480
  })]
475
481
  })
476
482
  ]
477
483
  }) : /* @__PURE__ */ p("div", {
478
484
  className: "p-8 text-center text-text-secondary",
479
- children: g("notifications.noPermissionHistory", "You don't have permission to view notification history.")
485
+ children: y("notifications.noPermissionHistory", "You don't have permission to view notification history.")
480
486
  });
481
487
  }
482
488
  //#endregion
483
- export { g as NotificationHistoryAdminPage };
489
+ export { y as NotificationHistoryAdminPage };
484
490
 
485
491
  //# sourceMappingURL=NotificationHistoryAdminPage.js.map