@burdenoff/microfe-notification 2026.1118.1 → 2026.1120.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,49 +9,49 @@ 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, EmphasisPanel as g, GlassCard as _, IllustratedEmptyState as v, NextSteps as y, PagePurpose as b, ShowMore as x } from "@burdenoff/fe-libs/ui";
12
+ import { Button as h, EmphasisPanel as g, GlassCard as _, IllustratedEmptyState as v, NextSteps as y, PagePurpose as b, ShowMore as x, ThemedSelect as S } from "@burdenoff/fe-libs/ui";
13
13
  // src/pages/NotificationHistoryAdminPage.tsx
14
- function S(e) {
14
+ function C(e) {
15
15
  return e ? new Date(e).toLocaleString() : "—";
16
16
  }
17
- function C() {
18
- let C = i(), { hasPermission: w, isLoading: T } = s(), { topics: E } = t(), { filters: D, setFilters: O, notifications: k, scheduledNotifications: A, selectedNotification: j, events: M, isLoading: N, loadNotification: P, archiveNotification: F, unarchiveNotification: I, cancelScheduledNotification: L, rescheduleNotification: R, clearSelection: z } = e(), [B, V] = o("");
19
- return T ? /* @__PURE__ */ p("div", {
17
+ function w() {
18
+ let w = i(), { hasPermission: T, isLoading: E } = s(), { topics: D } = t(), { filters: O, setFilters: k, notifications: A, scheduledNotifications: j, selectedNotification: M, events: N, isLoading: P, loadNotification: F, archiveNotification: I, unarchiveNotification: L, cancelScheduledNotification: R, rescheduleNotification: z, clearSelection: B } = e(), [V, H] = o("");
19
+ return E ? /* @__PURE__ */ p("div", {
20
20
  className: "flex h-64 items-center justify-center",
21
21
  children: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
22
- }) : w(r.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
22
+ }) : T(r.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
23
23
  className: "space-y-4 sm:space-y-6",
24
24
  children: [
25
25
  /* @__PURE__ */ p(b, {
26
26
  icon: /* @__PURE__ */ p(c, { size: 16 }),
27
- children: C("notifications.adminHistoryPurpose", "The operations console for everything your team has sent. Audit delivery outcomes (delivered, opened, clicked, failed, unsubscribed), inspect a single notification’s full event timeline, and manage the schedule — reschedule or cancel anything still pending. Use it to debug a campaign or prove a notification went out.")
27
+ children: w("notifications.adminHistoryPurpose", "The operations console for everything your team has sent. Audit delivery outcomes (delivered, opened, clicked, failed, unsubscribed), inspect a single notification’s full event timeline, and manage the schedule — reschedule or cancel anything still pending. Use it to debug a campaign or prove a notification went out.")
28
28
  }),
29
29
  /* @__PURE__ */ p(y, {
30
30
  storageKey: "notification-admin-history",
31
31
  steps: [
32
32
  {
33
33
  id: "inspect",
34
- label: C("notifications.nextInspectLabel", "Inspect a delivery"),
35
- description: C("notifications.nextInspectDesc", "Click any notification to see its receipts, opens, clicks and full event timeline."),
34
+ label: w("notifications.nextInspectLabel", "Inspect a delivery"),
35
+ description: w("notifications.nextInspectDesc", "Click any notification to see its receipts, opens, clicks and full event timeline."),
36
36
  onClick: () => {
37
- k[0] && P(k[0].id);
37
+ A[0] && F(A[0].id);
38
38
  }
39
39
  },
40
40
  {
41
41
  id: "failed",
42
- label: C("notifications.nextFailedLabel", "Find failed deliveries"),
43
- description: C("notifications.nextFailedDesc", "Filter by a FAILED delivery state to triage what did not reach recipients."),
44
- onClick: () => O((e) => ({
42
+ label: w("notifications.nextFailedLabel", "Find failed deliveries"),
43
+ description: w("notifications.nextFailedDesc", "Filter by a FAILED delivery state to triage what did not reach recipients."),
44
+ onClick: () => k((e) => ({
45
45
  ...e,
46
46
  deliveryStatus: "FAILED"
47
47
  }))
48
48
  },
49
49
  {
50
50
  id: "export",
51
- label: C("notifications.nextExportLabel", "Export the current view"),
52
- description: C("notifications.nextExportDesc", "Download the filtered results as CSV for reporting or an external audit."),
51
+ label: w("notifications.nextExportLabel", "Export the current view"),
52
+ description: w("notifications.nextExportDesc", "Download the filtered results as CSV for reporting or an external audit."),
53
53
  onClick: () => {
54
- k.length > 0 && a(C, k);
54
+ A.length > 0 && a(w, A);
55
55
  }
56
56
  }
57
57
  ]
@@ -60,17 +60,17 @@ function C() {
60
60
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
61
61
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
62
62
  className: "text-xl sm:text-2xl font-bold text-primary",
63
- children: C("notifications.adminHistoryTitle", "Notification Operations")
63
+ children: w("notifications.adminHistoryTitle", "Notification Operations")
64
64
  }), /* @__PURE__ */ p("p", {
65
65
  className: "text-sm text-text-secondary mt-1",
66
- children: C("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
66
+ children: w("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
67
67
  })] }), /* @__PURE__ */ m(h, {
68
68
  type: "button",
69
69
  variant: "outline",
70
- onClick: () => a(C, k),
71
- disabled: k.length === 0,
70
+ onClick: () => a(w, A),
71
+ disabled: A.length === 0,
72
72
  className: "gap-2",
73
- children: [/* @__PURE__ */ p(l, { size: 16 }), C("notifications.export", "Export")]
73
+ children: [/* @__PURE__ */ p(l, { size: 16 }), w("notifications.export", "Export")]
74
74
  })]
75
75
  }),
76
76
  /* @__PURE__ */ m(_, {
@@ -84,18 +84,18 @@ function C() {
84
84
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
85
85
  }), /* @__PURE__ */ p("input", {
86
86
  type: "text",
87
- value: D.search,
88
- onChange: (e) => O((t) => ({
87
+ value: O.search,
88
+ onChange: (e) => k((t) => ({
89
89
  ...t,
90
90
  search: e.target.value
91
91
  })),
92
- placeholder: C("notifications.searchByTitleOrContent", "Search by title or content..."),
92
+ placeholder: w("notifications.searchByTitleOrContent", "Search by title or content..."),
93
93
  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"
94
94
  })]
95
95
  }),
96
- /* @__PURE__ */ m("select", {
97
- value: D.status,
98
- onChange: (e) => O((t) => ({
96
+ /* @__PURE__ */ m(S, {
97
+ value: O.status,
98
+ onChange: (e) => k((t) => ({
99
99
  ...t,
100
100
  status: e.target.value
101
101
  })),
@@ -103,7 +103,7 @@ function C() {
103
103
  children: [
104
104
  /* @__PURE__ */ p("option", {
105
105
  value: "all",
106
- children: C("notifications.allStatuses", "All Statuses")
106
+ children: w("notifications.allStatuses", "All Statuses")
107
107
  }),
108
108
  /* @__PURE__ */ p("option", {
109
109
  value: "PENDING",
@@ -127,9 +127,9 @@ function C() {
127
127
  })
128
128
  ]
129
129
  }),
130
- /* @__PURE__ */ m("select", {
131
- value: D.channel,
132
- onChange: (e) => O((t) => ({
130
+ /* @__PURE__ */ m(S, {
131
+ value: O.channel,
132
+ onChange: (e) => k((t) => ({
133
133
  ...t,
134
134
  channel: e.target.value
135
135
  })),
@@ -137,7 +137,7 @@ function C() {
137
137
  children: [
138
138
  /* @__PURE__ */ p("option", {
139
139
  value: "all",
140
- children: C("notifications.allChannels", "All Channels")
140
+ children: w("notifications.allChannels", "All Channels")
141
141
  }),
142
142
  /* @__PURE__ */ p("option", {
143
143
  value: "EMAIL",
@@ -161,9 +161,9 @@ function C() {
161
161
  })
162
162
  ]
163
163
  }),
164
- /* @__PURE__ */ m("select", {
165
- value: D.deliveryStatus,
166
- onChange: (e) => O((t) => ({
164
+ /* @__PURE__ */ m(S, {
165
+ value: O.deliveryStatus,
166
+ onChange: (e) => k((t) => ({
167
167
  ...t,
168
168
  deliveryStatus: e.target.value
169
169
  })),
@@ -171,7 +171,7 @@ function C() {
171
171
  children: [
172
172
  /* @__PURE__ */ p("option", {
173
173
  value: "all",
174
- children: C("notifications.allDeliveryStates", "All Delivery")
174
+ children: w("notifications.allDeliveryStates", "All Delivery")
175
175
  }),
176
176
  /* @__PURE__ */ p("option", {
177
177
  value: "DELIVERED",
@@ -195,24 +195,24 @@ function C() {
195
195
  })
196
196
  ]
197
197
  }),
198
- /* @__PURE__ */ m("select", {
199
- value: D.topicId,
200
- onChange: (e) => O((t) => ({
198
+ /* @__PURE__ */ m(S, {
199
+ value: O.topicId,
200
+ onChange: (e) => k((t) => ({
201
201
  ...t,
202
202
  topicId: e.target.value
203
203
  })),
204
204
  className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
205
205
  children: [/* @__PURE__ */ p("option", {
206
206
  value: "",
207
- children: C("notifications.allTopics", "All Topics")
208
- }), E.map((e) => /* @__PURE__ */ p("option", {
207
+ children: w("notifications.allTopics", "All Topics")
208
+ }), D.map((e) => /* @__PURE__ */ p("option", {
209
209
  value: e.id,
210
210
  children: e.name
211
211
  }, e.id))]
212
212
  }),
213
- /* @__PURE__ */ m("select", {
214
- value: D.archived,
215
- onChange: (e) => O((t) => ({
213
+ /* @__PURE__ */ m(S, {
214
+ value: O.archived,
215
+ onChange: (e) => k((t) => ({
216
216
  ...t,
217
217
  archived: e.target.value
218
218
  })),
@@ -220,15 +220,15 @@ function C() {
220
220
  children: [
221
221
  /* @__PURE__ */ p("option", {
222
222
  value: "all",
223
- children: C("notifications.activeAndArchived", "Active + Archived")
223
+ children: w("notifications.activeAndArchived", "Active + Archived")
224
224
  }),
225
225
  /* @__PURE__ */ p("option", {
226
226
  value: "active",
227
- children: C("notifications.activeOnly", "Active Only")
227
+ children: w("notifications.activeOnly", "Active Only")
228
228
  }),
229
229
  /* @__PURE__ */ p("option", {
230
230
  value: "archived",
231
- children: C("notifications.archivedOnly", "Archived Only")
231
+ children: w("notifications.archivedOnly", "Archived Only")
232
232
  })
233
233
  ]
234
234
  })
@@ -244,27 +244,28 @@ function C() {
244
244
  className: "mb-4 flex items-center justify-between",
245
245
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
246
246
  className: "text-base font-semibold text-primary",
247
- children: C("notifications.sentNotifications", "Notifications")
247
+ children: w("notifications.sentNotifications", "Notifications")
248
248
  }), /* @__PURE__ */ m("p", {
249
249
  className: "text-sm text-text-secondary",
250
250
  children: [
251
- k.length,
251
+ A.length,
252
252
  " ",
253
- C("notifications.resultsFoundShort", "results")
253
+ w("notifications.resultsFoundShort", "results")
254
254
  ]
255
- })] }), N && /* @__PURE__ */ p(u, {
255
+ })] }), P && /* @__PURE__ */ p(u, {
256
256
  size: 16,
257
257
  className: "animate-spin text-tertiary"
258
258
  })]
259
259
  }), /* @__PURE__ */ p("div", {
260
260
  className: "space-y-3",
261
- children: k.length === 0 ? /* @__PURE__ */ p(v, {
261
+ children: A.length === 0 ? /* @__PURE__ */ p(v, {
262
262
  illustration: "empty-search",
263
- title: C("notifications.noNotificationsFound", "No notifications found"),
264
- description: C("notifications.adjustSearchOrDateRange", "Try adjusting your filters")
265
- }) : k.map((e) => /* @__PURE__ */ p("button", {
263
+ title: w("notifications.noNotificationsFound", "No notifications found"),
264
+ description: w("notifications.adjustSearchOrDateRange", "Try adjusting your filters"),
265
+ kind: "filtered"
266
+ }) : A.map((e) => /* @__PURE__ */ p("button", {
266
267
  type: "button",
267
- onClick: () => P(e.id),
268
+ onClick: () => F(e.id),
268
269
  className: "block w-full text-left",
269
270
  children: /* @__PURE__ */ p(n, {
270
271
  notification: e,
@@ -283,15 +284,17 @@ function C() {
283
284
  className: "text-accent-primary"
284
285
  }), /* @__PURE__ */ p("h2", {
285
286
  className: "text-base font-semibold text-primary",
286
- children: C("notifications.scheduledNotifications", "Scheduled Notifications")
287
+ children: w("notifications.scheduledNotifications", "Scheduled Notifications")
287
288
  })]
288
289
  }), /* @__PURE__ */ p("div", {
289
290
  className: "space-y-3",
290
- children: A.length === 0 ? /* @__PURE__ */ p(v, {
291
+ children: j.length === 0 ? /* @__PURE__ */ p(v, {
291
292
  illustration: "empty-data",
292
- title: C("notifications.noScheduledNotifications", "No scheduled notifications"),
293
- description: C("notifications.noScheduledDescription", "Notifications queued for a future send time will appear here, ready to reschedule or cancel.")
294
- }) : A.map((e) => /* @__PURE__ */ p("div", {
293
+ title: w("notifications.noScheduledNotifications", "No scheduled notifications"),
294
+ description: w("notifications.noScheduledDescription", "Notifications queued for a future send time will appear here, ready to reschedule or cancel."),
295
+ glassIllustration: "calendar",
296
+ size: "panel"
297
+ }) : j.map((e) => /* @__PURE__ */ p("div", {
295
298
  className: "rounded-md border border-default bg-bg-canvas p-4",
296
299
  children: /* @__PURE__ */ m("div", {
297
300
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
@@ -306,20 +309,20 @@ function C() {
306
309
  e.notification.type,
307
310
  " •",
308
311
  " ",
309
- S(e.scheduledFor)
312
+ C(e.scheduledFor)
310
313
  ]
311
314
  })] }), /* @__PURE__ */ m("div", {
312
315
  className: "flex items-center gap-2",
313
316
  children: [/* @__PURE__ */ p("button", {
314
317
  type: "button",
315
- onClick: () => P(e.notification.id),
318
+ onClick: () => F(e.notification.id),
316
319
  className: "rounded-md border border-default px-3 py-2 text-xs text-text-secondary hover:bg-bg-sunken",
317
- children: C("notifications.view", "View")
320
+ children: w("notifications.view", "View")
318
321
  }), e.status === "PENDING" && /* @__PURE__ */ p("button", {
319
322
  type: "button",
320
- onClick: () => L(e.id),
323
+ onClick: () => R(e.id),
321
324
  className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
322
- children: C("notifications.cancel", "Cancel")
325
+ children: w("notifications.cancel", "Cancel")
323
326
  })]
324
327
  })]
325
328
  })
@@ -328,87 +331,87 @@ function C() {
328
331
  })]
329
332
  }), /* @__PURE__ */ p("aside", {
330
333
  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",
331
- children: j ? /* @__PURE__ */ m("div", {
334
+ children: M ? /* @__PURE__ */ m("div", {
332
335
  className: "space-y-4",
333
336
  children: [
334
337
  /* @__PURE__ */ m("div", {
335
338
  className: "flex items-start justify-between gap-3",
336
339
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
337
340
  className: "text-lg font-semibold text-primary",
338
- children: j.title
341
+ children: M.title
339
342
  }), /* @__PURE__ */ p("p", {
340
343
  className: "text-sm text-text-secondary",
341
- children: j.body
344
+ children: M.body
342
345
  })] }), /* @__PURE__ */ p("button", {
343
346
  type: "button",
344
- onClick: z,
347
+ onClick: B,
345
348
  className: "rounded-md border border-default px-3 py-2 text-xs text-text-secondary hover:bg-bg-sunken",
346
- children: C("notifications.close", "Close")
349
+ children: w("notifications.close", "Close")
347
350
  })]
348
351
  }),
349
352
  /* @__PURE__ */ m("div", {
350
353
  className: "grid gap-2 rounded-md border border-default bg-bg-canvas p-3 text-sm text-text-secondary",
351
354
  children: [
352
355
  /* @__PURE__ */ m("div", { children: [
353
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.status", "Status"), ":"] }),
356
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.status", "Status"), ":"] }),
354
357
  " ",
355
- j.status
358
+ M.status
356
359
  ] }),
357
360
  /* @__PURE__ */ m("div", { children: [
358
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.delivery", "Delivery"), ":"] }),
361
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.delivery", "Delivery"), ":"] }),
359
362
  " ",
360
- j.deliveryStatus || "—"
363
+ M.deliveryStatus || "—"
361
364
  ] }),
362
365
  /* @__PURE__ */ m("div", { children: [
363
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.topic", "Topic"), ":"] }),
366
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.topic", "Topic"), ":"] }),
364
367
  " ",
365
- j.topic?.name || "—"
368
+ M.topic?.name || "—"
366
369
  ] }),
367
370
  /* @__PURE__ */ m("div", { children: [
368
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.created", "Created"), ":"] }),
371
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.created", "Created"), ":"] }),
369
372
  " ",
370
- S(j.createdAt)
373
+ C(M.createdAt)
371
374
  ] }),
372
375
  /* @__PURE__ */ m("div", { children: [
373
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.sent", "Sent"), ":"] }),
376
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.sent", "Sent"), ":"] }),
374
377
  " ",
375
- S(j.sentAt)
378
+ C(M.sentAt)
376
379
  ] }),
377
380
  /* @__PURE__ */ m("div", { children: [
378
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.delivered", "Delivered"), ":"] }),
381
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.delivered", "Delivered"), ":"] }),
379
382
  " ",
380
- S(j.deliveredAt)
383
+ C(M.deliveredAt)
381
384
  ] }),
382
385
  /* @__PURE__ */ m("div", { children: [
383
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.opened", "Opened"), ":"] }),
386
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.opened", "Opened"), ":"] }),
384
387
  " ",
385
- S(j.openedAt)
388
+ C(M.openedAt)
386
389
  ] }),
387
390
  /* @__PURE__ */ m("div", { children: [
388
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.clicked", "Clicked"), ":"] }),
391
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.clicked", "Clicked"), ":"] }),
389
392
  " ",
390
- S(j.clickedAt)
393
+ C(M.clickedAt)
391
394
  ] }),
392
395
  /* @__PURE__ */ m("div", { children: [
393
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.read", "Read"), ":"] }),
396
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.read", "Read"), ":"] }),
394
397
  " ",
395
- S(j.readAt)
398
+ C(M.readAt)
396
399
  ] }),
397
400
  /* @__PURE__ */ m("div", { children: [
398
- /* @__PURE__ */ m("strong", { children: [C("notifications.detail.recipient", "Recipient"), ":"] }),
401
+ /* @__PURE__ */ m("strong", { children: [w("notifications.detail.recipient", "Recipient"), ":"] }),
399
402
  " ",
400
- j.recipientEmail || j.recipientPhone || j.id
403
+ M.recipientEmail || M.recipientPhone || M.id
401
404
  ] })
402
405
  ]
403
406
  }),
404
- j.media.length > 0 && /* @__PURE__ */ m("div", {
407
+ M.media.length > 0 && /* @__PURE__ */ m("div", {
405
408
  className: "space-y-2",
406
409
  children: [/* @__PURE__ */ p("h3", {
407
410
  className: "text-sm font-semibold text-primary",
408
- children: C("notifications.media", "Media")
411
+ children: w("notifications.media", "Media")
409
412
  }), /* @__PURE__ */ p("div", {
410
413
  className: "grid gap-3",
411
- children: j.media.map((e) => /* @__PURE__ */ p("a", {
414
+ children: M.media.map((e) => /* @__PURE__ */ p("a", {
412
415
  href: e.url,
413
416
  target: "_blank",
414
417
  rel: "noreferrer",
@@ -417,14 +420,14 @@ function C() {
417
420
  }, e.url))
418
421
  })]
419
422
  }),
420
- j.actions.length > 0 && /* @__PURE__ */ m("div", {
423
+ M.actions.length > 0 && /* @__PURE__ */ m("div", {
421
424
  className: "space-y-2",
422
425
  children: [/* @__PURE__ */ p("h3", {
423
426
  className: "text-sm font-semibold text-primary",
424
- children: C("notifications.actions", "Actions")
427
+ children: w("notifications.actions", "Actions")
425
428
  }), /* @__PURE__ */ p("div", {
426
429
  className: "grid gap-2",
427
- children: j.actions.map((e) => /* @__PURE__ */ m("div", {
430
+ children: M.actions.map((e) => /* @__PURE__ */ m("div", {
428
431
  className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-text-secondary",
429
432
  children: [/* @__PURE__ */ p("div", {
430
433
  className: "font-medium text-primary",
@@ -436,74 +439,74 @@ function C() {
436
439
  }, e.id))
437
440
  })]
438
441
  }),
439
- j.scheduledNotification && /* @__PURE__ */ m("div", {
442
+ M.scheduledNotification && /* @__PURE__ */ m("div", {
440
443
  className: "space-y-3 rounded-md border border-default bg-bg-canvas p-3",
441
444
  children: [
442
445
  /* @__PURE__ */ p("div", {
443
446
  className: "text-sm font-semibold text-primary",
444
- children: C("notifications.scheduling", "Scheduling")
447
+ children: w("notifications.scheduling", "Scheduling")
445
448
  }),
446
449
  /* @__PURE__ */ p("div", {
447
450
  className: "text-sm text-text-secondary",
448
- children: S(j.scheduledNotification.scheduledFor)
451
+ children: C(M.scheduledNotification.scheduledFor)
449
452
  }),
450
- j.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
453
+ M.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
451
454
  type: "datetime-local",
452
- value: B,
453
- onChange: (e) => V(e.target.value),
455
+ value: V,
456
+ onChange: (e) => H(e.target.value),
454
457
  className: "w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary"
455
458
  }), /* @__PURE__ */ m("div", {
456
459
  className: "flex items-center gap-2",
457
460
  children: [/* @__PURE__ */ p("button", {
458
461
  type: "button",
459
- onClick: () => B && R(j.scheduledNotification.id, new Date(B).toISOString()),
462
+ onClick: () => V && z(M.scheduledNotification.id, new Date(V).toISOString()),
460
463
  className: "rounded-md bg-accent-primary px-3 py-2 text-xs font-medium text-text-inverse hover:opacity-90",
461
- children: C("notifications.reschedule", "Reschedule")
464
+ children: w("notifications.reschedule", "Reschedule")
462
465
  }), /* @__PURE__ */ p("button", {
463
466
  type: "button",
464
- onClick: () => L(j.scheduledNotification.id),
467
+ onClick: () => R(M.scheduledNotification.id),
465
468
  className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
466
- children: C("notifications.cancel", "Cancel")
469
+ children: w("notifications.cancel", "Cancel")
467
470
  })]
468
471
  })] })
469
472
  ]
470
473
  }),
471
474
  /* @__PURE__ */ p("div", {
472
475
  className: "flex items-center gap-2",
473
- children: j.archivedAt ? /* @__PURE__ */ p("button", {
476
+ children: M.archivedAt ? /* @__PURE__ */ p("button", {
474
477
  type: "button",
475
- onClick: () => I(j.id),
478
+ onClick: () => L(M.id),
476
479
  className: "rounded-md border border-default px-3 py-2 text-xs text-text-secondary hover:bg-bg-sunken",
477
- children: C("notifications.restore", "Restore")
480
+ children: w("notifications.restore", "Restore")
478
481
  }) : /* @__PURE__ */ p("button", {
479
482
  type: "button",
480
- onClick: () => F(j.id),
483
+ onClick: () => I(M.id),
481
484
  className: "rounded-md border border-default px-3 py-2 text-xs text-text-secondary hover:bg-bg-sunken",
482
- children: C("notifications.archive", "Archive")
485
+ children: w("notifications.archive", "Archive")
483
486
  })
484
487
  }),
485
488
  /* @__PURE__ */ m("div", {
486
489
  className: "space-y-2",
487
490
  children: [/* @__PURE__ */ p("h3", {
488
491
  className: "text-sm font-semibold text-primary",
489
- children: C("notifications.eventTimeline", "Event Timeline")
490
- }), M.length === 0 ? /* @__PURE__ */ p("div", {
492
+ children: w("notifications.eventTimeline", "Event Timeline")
493
+ }), N.length === 0 ? /* @__PURE__ */ p("div", {
491
494
  className: "rounded-md border border-dashed border-border-seam p-4 text-sm text-text-secondary",
492
- children: C("notifications.noEvents", "No events recorded yet.")
495
+ children: w("notifications.noEvents", "No events recorded yet.")
493
496
  }) : /* @__PURE__ */ p(x, {
494
497
  collapsedHeight: 180,
495
498
  children: /* @__PURE__ */ p("div", {
496
499
  className: "space-y-2",
497
- children: M.map((e) => /* @__PURE__ */ m("div", {
500
+ children: N.map((e) => /* @__PURE__ */ m("div", {
498
501
  className: "rounded-md border border-border-seam bg-surface p-3 text-sm text-text-secondary",
499
502
  children: [
500
503
  /* @__PURE__ */ p("div", {
501
504
  className: "font-medium text-primary",
502
505
  children: e.eventType
503
506
  }),
504
- /* @__PURE__ */ p("div", { children: S(e.timestamp) }),
507
+ /* @__PURE__ */ p("div", { children: C(e.timestamp) }),
505
508
  e.deliveryStatus && /* @__PURE__ */ m("div", { children: [
506
- C("notifications.detail.delivery", "Delivery"),
509
+ w("notifications.detail.delivery", "Delivery"),
507
510
  ":",
508
511
  " ",
509
512
  e.deliveryStatus
@@ -518,8 +521,10 @@ function C() {
518
521
  className: "flex h-full min-h-[360px] items-center justify-center",
519
522
  children: /* @__PURE__ */ p(v, {
520
523
  illustration: "empty-search",
521
- title: C("notifications.selectNotificationTitle", "Nothing selected"),
522
- description: C("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
524
+ title: w("notifications.selectNotificationTitle", "Nothing selected"),
525
+ description: w("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity."),
526
+ glassIllustration: "notifications",
527
+ size: "panel"
523
528
  })
524
529
  })
525
530
  })]
@@ -527,9 +532,9 @@ function C() {
527
532
  ]
528
533
  }) : /* @__PURE__ */ p("div", {
529
534
  className: "p-8 text-center text-text-secondary",
530
- children: C("notifications.noPermissionHistory", "You don't have permission to view notification history.")
535
+ children: w("notifications.noPermissionHistory", "You don't have permission to view notification history.")
531
536
  });
532
537
  }
533
- export { C as NotificationHistoryAdminPage };
538
+ export { w as NotificationHistoryAdminPage };
534
539
 
535
540
  //# sourceMappingURL=NotificationHistoryAdminPage.js.map