@burdenoff/microfe-newsletter 2026.830.1 → 2026.830.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.
Files changed (28) hide show
  1. package/dist/newsletter/AdminNewsletterRoot.js +4 -4
  2. package/dist/newsletter/UserNewsletterRoot.js +4 -4
  3. package/dist/newsletter/pages/ABTestingPage.js +23 -23
  4. package/dist/newsletter/pages/ABTestingPage.js.map +1 -1
  5. package/dist/newsletter/pages/AnalyticsDashboardPage.js +95 -97
  6. package/dist/newsletter/pages/AnalyticsDashboardPage.js.map +1 -1
  7. package/dist/newsletter/pages/CampaignAnalyticsPage.js +3 -3
  8. package/dist/newsletter/pages/CampaignEditorPage.js +297 -300
  9. package/dist/newsletter/pages/CampaignEditorPage.js.map +1 -1
  10. package/dist/newsletter/pages/CampaignsListPage.js +14 -14
  11. package/dist/newsletter/pages/CompliancePage.js +175 -184
  12. package/dist/newsletter/pages/CompliancePage.js.map +1 -1
  13. package/dist/newsletter/pages/SchedulerPage.js +3 -3
  14. package/dist/newsletter/pages/SubscriberDetailPage.js +222 -222
  15. package/dist/newsletter/pages/SubscriberDetailPage.js.map +1 -1
  16. package/dist/newsletter/pages/SubscribersListPage.js +279 -282
  17. package/dist/newsletter/pages/SubscribersListPage.js.map +1 -1
  18. package/dist/newsletter/pages/TemplateEditorPage.js +3 -3
  19. package/dist/newsletter/pages/TemplateLibraryPage.js +109 -112
  20. package/dist/newsletter/pages/TemplateLibraryPage.js.map +1 -1
  21. package/dist/newsletter/pages/WaitlistDetailPage.js +3 -3
  22. package/dist/newsletter/pages/WaitlistListPage.js +139 -139
  23. package/dist/newsletter/pages/WaitlistListPage.js.map +1 -1
  24. package/dist/newsletter/providers/NewsletterProvider.js +47 -46
  25. package/dist/newsletter/providers/NewsletterProvider.js.map +1 -1
  26. package/dist/newsletter/shared/hooks/useTr.js +3 -3
  27. package/dist/newsletter/shared/hooks/useTr.js.map +1 -1
  28. package/package.json +1 -1
@@ -1,26 +1,23 @@
1
- import { useNewsletter as e } from "../providers/NewsletterProvider.js";
2
- import { NEWSLETTER_PERMISSIONS as t } from "../constants/permissions.js";
3
- import { useTr as n } from "../shared/hooks/useTr.js";
1
+ import { useTr as e } from "../shared/hooks/useTr.js";
2
+ import { useNewsletter as t } from "../providers/NewsletterProvider.js";
3
+ import { NEWSLETTER_PERMISSIONS as n } from "../constants/permissions.js";
4
4
  import { useComplianceAuditLog as r, useComplianceSettings as i, useComplianceSettingsMutations as a, useSuppressionMutations as o, useSuppressions as s } from "../hooks/useComplianceOperations.js";
5
- import { useCallback as c, useMemo as l, useState as u } from "react";
6
- import { AccessDenied as d } from "@burdenoff/fe-libs/shared/components";
7
- import { AlertCircle as f, AlertTriangle as p, CheckCircle as m, Clock as h, Download as g, FileText as _, Loader2 as v, Mail as y, RefreshCw as b, Search as x, Settings as S, Shield as C, ShieldAlert as w, ShieldCheck as T, Trash2 as E, UserX as D } from "lucide-react";
8
- import { usePermissions as O } from "@burdenoff/fe-libs/shared/providers/shell";
5
+ import { useMemo as c, useState as l } from "react";
6
+ import { AccessDenied as u } from "@burdenoff/fe-libs/shared/components";
7
+ import { AlertCircle as d, AlertTriangle as f, CheckCircle as p, Clock as m, Download as h, FileText as g, Loader2 as _, Mail as v, RefreshCw as y, Search as b, Settings as x, Shield as S, ShieldAlert as C, ShieldCheck as w, Trash2 as T, UserX as E } from "lucide-react";
8
+ import { usePermissions as D } from "@burdenoff/fe-libs/shared/providers/shell";
9
+ import { useI18n as O } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
10
  import { jsx as k, jsxs as A } from "react/jsx-runtime";
10
11
  import { AuroraBackground as j, Button as M, EmphasisPanel as N, GlassCard as P, GradientText as F, IllustratedEmptyState as I, NextSteps as L, PagePurpose as R } from "@burdenoff/fe-libs/ui";
11
- import { useI18n as z } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
12
  //#region src/newsletter/pages/CompliancePage.tsx
13
- function B() {
14
- let { t: n } = z(), r = c((e, t) => {
15
- let r = n(e);
16
- return r === e ? t : r;
17
- }, [n]), { productId: a } = e(), { hasPermission: o, isLoading: s, permissions: p } = O(), [h, g] = u("CHECKLIST"), [y, b] = u(null), [x, C] = u(""), { settings: w, loading: E } = i(a), M = (e, t) => {
18
- b({
13
+ function z() {
14
+ let r = e(), { productId: a } = t(), { hasPermission: o, isLoading: s, permissions: f } = D(), [m, h] = l("CHECKLIST"), [v, y] = l(null), [b, S] = l(""), { settings: C, loading: T } = i(a), O = (e, t) => {
15
+ y({
19
16
  type: e,
20
17
  message: t
21
- }), setTimeout(() => b(null), 5e3);
22
- }, P = l(() => {
23
- let e = !!w?.physicalAddress?.trim(), t = !!w?.unsubscribeUrl?.trim(), n = !!w?.privacyPolicyUrl?.trim(), i = !!w?.doubleOptIn, a = [
18
+ }), setTimeout(() => y(null), 5e3);
19
+ }, M = c(() => {
20
+ let e = !!C?.physicalAddress?.trim(), t = !!C?.unsubscribeUrl?.trim(), n = !!C?.privacyPolicyUrl?.trim(), i = !!C?.doubleOptIn, a = [
24
21
  {
25
22
  label: r("compliance.physicalAddressFooter", "Physical address in footer"),
26
23
  status: e ? "PASS" : "FAIL"
@@ -119,46 +116,46 @@ function B() {
119
116
  items: c
120
117
  }
121
118
  ];
122
- }, [w, r]), I = () => {
123
- let e = P.length, t = P.filter((e) => e.status === "COMPLIANT").length;
119
+ }, [C, r]), P = () => {
120
+ let e = M.length, t = M.filter((e) => e.status === "COMPLIANT").length;
124
121
  return Math.round(t / e * 100);
125
- }, B = (Array.isArray(p) ? p : p?.permissionStrings)?.some?.((e) => e.startsWith("tenantmodule-newsletter:")) ? o(t.CONFIG_VIEW) : !0, W = [
122
+ }, I = (Array.isArray(f) ? f : f?.permissionStrings)?.some?.((e) => e.startsWith("tenantmodule-newsletter:")) ? o(n.CONFIG_VIEW) : !0, z = [
126
123
  {
127
124
  id: "CHECKLIST",
128
125
  label: r("compliance.tabChecklist", "Compliance Checklist"),
129
- icon: T
126
+ icon: w
130
127
  },
131
128
  {
132
129
  id: "SUPPRESSION",
133
130
  label: r("compliance.tabSuppression", "Suppression List"),
134
- icon: D
131
+ icon: E
135
132
  },
136
133
  {
137
134
  id: "SETTINGS",
138
135
  label: r("compliance.tabSettings", "Settings"),
139
- icon: S
136
+ icon: x
140
137
  },
141
138
  {
142
139
  id: "AUDIT",
143
140
  label: r("compliance.tabAudit", "Audit Log"),
144
- icon: _
141
+ icon: g
145
142
  }
146
143
  ];
147
144
  return s ? /* @__PURE__ */ k("div", {
148
145
  className: "flex items-center justify-center h-full",
149
146
  children: /* @__PURE__ */ A("div", {
150
147
  className: "flex items-center gap-2 text-text-secondary",
151
- children: [/* @__PURE__ */ k(v, {
148
+ children: [/* @__PURE__ */ k(_, {
152
149
  className: "animate-spin",
153
150
  size: 24
154
151
  }), /* @__PURE__ */ k("span", { children: r("newsletterCommon.loading", "Loading...") })]
155
152
  })
156
- }) : !s && p && p.permissionStrings?.length > 0 && !B ? /* @__PURE__ */ k(d, {}) : /* @__PURE__ */ A("div", {
153
+ }) : !s && f && f.permissionStrings?.length > 0 && !I ? /* @__PURE__ */ k(u, {}) : /* @__PURE__ */ A("div", {
157
154
  className: "flex flex-col h-full",
158
155
  children: [
159
- y && /* @__PURE__ */ A("div", {
160
- className: `fixed top-4 right-4 z-50 flex items-center gap-2 px-4 py-3 rounded-lg shadow-pop ${y.type === "success" ? "bg-status-success-bg/10 text-status-success-text border border-status-success-border/20" : "bg-status-error-bg/10 text-status-error-text border border-status-error-border/20"}`,
161
- children: [y.type === "success" ? /* @__PURE__ */ k(m, { size: 20 }) : /* @__PURE__ */ k(f, { size: 20 }), /* @__PURE__ */ k("span", { children: y.message })]
156
+ v && /* @__PURE__ */ A("div", {
157
+ className: `fixed top-4 right-4 z-50 flex items-center gap-2 px-4 py-3 rounded-lg shadow-pop ${v.type === "success" ? "bg-status-success-bg/10 text-status-success-text border border-status-success-border/20" : "bg-status-error-bg/10 text-status-error-text border border-status-error-border/20"}`,
158
+ children: [v.type === "success" ? /* @__PURE__ */ k(p, { size: 20 }) : /* @__PURE__ */ k(d, { size: 20 }), /* @__PURE__ */ k("span", { children: v.message })]
162
159
  }),
163
160
  /* @__PURE__ */ A("div", {
164
161
  className: "relative overflow-hidden p-6 border-b border-border-seam",
@@ -174,7 +171,7 @@ function B() {
174
171
  children: r("compliance.description", "Ensure your newsletter campaigns comply with regulations")
175
172
  })] }), /* @__PURE__ */ A(N, {
176
173
  className: "flex items-center gap-3 px-4 py-3",
177
- children: [/* @__PURE__ */ k(T, {
174
+ children: [/* @__PURE__ */ k(w, {
178
175
  size: 24,
179
176
  className: "text-status-success-text"
180
177
  }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("div", {
@@ -182,16 +179,16 @@ function B() {
182
179
  children: r("compliance.complianceScore", "Compliance Score")
183
180
  }), /* @__PURE__ */ k("div", {
184
181
  className: "text-xl font-bold text-status-success-text tabular-nums",
185
- children: E ? "..." : `${I()}%`
182
+ children: T ? "..." : `${P()}%`
186
183
  })] })]
187
184
  })]
188
185
  }),
189
186
  /* @__PURE__ */ k("div", {
190
187
  className: "flex items-center gap-1 mt-6 flex-wrap",
191
- children: W.map((e) => /* @__PURE__ */ A("button", {
188
+ children: z.map((e) => /* @__PURE__ */ A("button", {
192
189
  type: "button",
193
- onClick: () => g(e.id),
194
- className: `flex items-center gap-2 px-4 py-2 rounded-lg transition-colors ${h === e.id ? "bg-action-primary-bg/10 text-primary" : "text-text-secondary hover:bg-accent"}`,
190
+ onClick: () => h(e.id),
191
+ className: `flex items-center gap-2 px-4 py-2 rounded-lg transition-colors ${m === e.id ? "bg-action-primary-bg/10 text-primary" : "text-text-secondary hover:bg-accent"}`,
195
192
  children: [/* @__PURE__ */ k(e.icon, { size: 18 }), e.label]
196
193
  }, e.id))
197
194
  })
@@ -206,29 +203,29 @@ function B() {
206
203
  id: "settings",
207
204
  label: r("compliance.nextStepSettings", "Set your legal requirements"),
208
205
  description: r("compliance.nextStepSettingsDesc", "Add the physical address, unsubscribe URL, and privacy policy CAN-SPAM and GDPR require."),
209
- icon: /* @__PURE__ */ k(S, { size: 16 }),
210
- onClick: () => g("SETTINGS")
206
+ icon: /* @__PURE__ */ k(x, { size: 16 }),
207
+ onClick: () => h("SETTINGS")
211
208
  },
212
209
  {
213
210
  id: "checklist",
214
211
  label: r("compliance.nextStepChecklist", "Review the compliance checklist"),
215
212
  description: r("compliance.nextStepChecklistDesc", "See at a glance where you pass and what still needs attention."),
216
- icon: /* @__PURE__ */ k(T, { size: 16 }),
217
- onClick: () => g("CHECKLIST")
213
+ icon: /* @__PURE__ */ k(w, { size: 16 }),
214
+ onClick: () => h("CHECKLIST")
218
215
  },
219
216
  {
220
217
  id: "suppression",
221
218
  label: r("compliance.nextStepSuppression", "Check the suppression list"),
222
219
  description: r("compliance.nextStepSuppressionDesc", "Make sure unsubscribed, bounced, and complained addresses are excluded."),
223
- icon: /* @__PURE__ */ k(D, { size: 16 }),
224
- onClick: () => g("SUPPRESSION")
220
+ icon: /* @__PURE__ */ k(E, { size: 16 }),
221
+ onClick: () => h("SUPPRESSION")
225
222
  },
226
223
  {
227
224
  id: "audit",
228
225
  label: r("compliance.nextStepAudit", "Inspect the audit log"),
229
226
  description: r("compliance.nextStepAuditDesc", "Verify a record exists for every compliance-relevant event."),
230
- icon: /* @__PURE__ */ k(_, { size: 16 }),
231
- onClick: () => g("AUDIT")
227
+ icon: /* @__PURE__ */ k(g, { size: 16 }),
228
+ onClick: () => h("AUDIT")
232
229
  }
233
230
  ]
234
231
  })]
@@ -236,76 +233,76 @@ function B() {
236
233
  /* @__PURE__ */ A("div", {
237
234
  className: "flex-1 overflow-auto",
238
235
  children: [
239
- h === "CHECKLIST" && /* @__PURE__ */ k(V, { complianceItems: P }),
240
- h === "SUPPRESSION" && /* @__PURE__ */ k(H, {
241
- searchQuery: x,
242
- setSearchQuery: C,
243
- showNotification: M
236
+ m === "CHECKLIST" && /* @__PURE__ */ k(B, { complianceItems: M }),
237
+ m === "SUPPRESSION" && /* @__PURE__ */ k(V, {
238
+ searchQuery: b,
239
+ setSearchQuery: S,
240
+ showNotification: O
244
241
  }),
245
- h === "SETTINGS" && /* @__PURE__ */ k(U, {
242
+ m === "SETTINGS" && /* @__PURE__ */ k(H, {
246
243
  platformProductId: a,
247
- showNotification: M
244
+ showNotification: O
248
245
  }),
249
- h === "AUDIT" && /* @__PURE__ */ k(G, { platformProductId: a })
246
+ m === "AUDIT" && /* @__PURE__ */ k(W, { platformProductId: a })
250
247
  ]
251
248
  })
252
249
  ]
253
250
  });
254
251
  }
255
- function V({ complianceItems: e }) {
256
- let t = n(), r = (e) => {
252
+ function B({ complianceItems: t }) {
253
+ let n = e(), r = (e) => {
257
254
  switch (e) {
258
255
  case "COMPLIANT":
259
- case "PASS": return /* @__PURE__ */ k(m, {
256
+ case "PASS": return /* @__PURE__ */ k(p, {
260
257
  size: 20,
261
258
  className: "text-status-success-text"
262
259
  });
263
260
  case "WARNING":
264
- case "WARN": return /* @__PURE__ */ k(p, {
261
+ case "WARN": return /* @__PURE__ */ k(f, {
265
262
  size: 20,
266
263
  className: "text-status-warning-text"
267
264
  });
268
265
  case "NON_COMPLIANT":
269
- case "FAIL": return /* @__PURE__ */ k(f, {
266
+ case "FAIL": return /* @__PURE__ */ k(d, {
270
267
  size: 20,
271
268
  className: "text-status-error-text"
272
269
  });
273
- default: return /* @__PURE__ */ k(f, {
270
+ default: return /* @__PURE__ */ k(d, {
274
271
  size: 20,
275
272
  className: "text-text-secondary"
276
273
  });
277
274
  }
278
275
  }, i = (e) => {
279
- let n = {
276
+ let t = {
280
277
  COMPLIANT: "bg-status-success-bg/10 text-status-success-text",
281
278
  WARNING: "bg-status-warning-bg/10 text-status-warning-text",
282
279
  NON_COMPLIANT: "bg-status-error-bg/10 text-status-error-text"
283
280
  }, r = {
284
- COMPLIANT: t("compliance.compliant", "Compliant"),
285
- WARNING: t("compliance.needsReview", "Needs Review"),
286
- NON_COMPLIANT: t("compliance.nonCompliant", "Non-Compliant")
281
+ COMPLIANT: n("compliance.compliant", "Compliant"),
282
+ WARNING: n("compliance.needsReview", "Needs Review"),
283
+ NON_COMPLIANT: n("compliance.nonCompliant", "Non-Compliant")
287
284
  };
288
285
  return /* @__PURE__ */ k("span", {
289
- className: `px-2.5 py-0.5 rounded-full text-xs font-medium ${n[e]}`,
286
+ className: `px-2.5 py-0.5 rounded-full text-xs font-medium ${t[e]}`,
290
287
  children: r[e]
291
288
  });
292
289
  };
293
290
  return /* @__PURE__ */ A("div", {
294
291
  className: "p-6 space-y-4",
295
- children: [e.map((e) => /* @__PURE__ */ k(P, {
292
+ children: [t.map((e) => /* @__PURE__ */ k(P, {
296
293
  treatment: "glass",
297
294
  className: "border-border-seam p-4",
298
295
  children: /* @__PURE__ */ A("div", {
299
296
  className: "flex items-start gap-3",
300
297
  children: [/* @__PURE__ */ k("div", {
301
298
  className: "flex-shrink-0 mt-1",
302
- children: e.status === "COMPLIANT" ? /* @__PURE__ */ k(T, {
299
+ children: e.status === "COMPLIANT" ? /* @__PURE__ */ k(w, {
303
300
  size: 28,
304
301
  className: "text-status-success-text"
305
- }) : e.status === "WARNING" ? /* @__PURE__ */ k(w, {
302
+ }) : e.status === "WARNING" ? /* @__PURE__ */ k(C, {
306
303
  size: 28,
307
304
  className: "text-status-warning-text"
308
- }) : /* @__PURE__ */ k(C, {
305
+ }) : /* @__PURE__ */ k(S, {
309
306
  size: 28,
310
307
  className: "text-status-error-text"
311
308
  })
@@ -341,80 +338,77 @@ function V({ complianceItems: e }) {
341
338
  className: "p-4",
342
339
  children: [/* @__PURE__ */ k("h3", {
343
340
  className: "font-medium text-primary mb-2",
344
- children: t("compliance.bestPractices", "Compliance Best Practices")
341
+ children: n("compliance.bestPractices", "Compliance Best Practices")
345
342
  }), /* @__PURE__ */ A("ul", {
346
343
  className: "text-sm text-primary/80 space-y-1",
347
344
  children: [
348
345
  /* @__PURE__ */ A("li", { children: [
349
346
  "•",
350
347
  " ",
351
- t("compliance.bestPractice1", "Always include a clear unsubscribe link in every email")
348
+ n("compliance.bestPractice1", "Always include a clear unsubscribe link in every email")
352
349
  ] }),
353
350
  /* @__PURE__ */ A("li", { children: [
354
351
  "•",
355
352
  " ",
356
- t("compliance.bestPractice2", "Keep accurate records of consent for all subscribers")
353
+ n("compliance.bestPractice2", "Keep accurate records of consent for all subscribers")
357
354
  ] }),
358
355
  /* @__PURE__ */ A("li", { children: [
359
356
  "•",
360
357
  " ",
361
- t("compliance.bestPractice3", "Honor unsubscribe requests within 10 business days (CAN-SPAM)")
358
+ n("compliance.bestPractice3", "Honor unsubscribe requests within 10 business days (CAN-SPAM)")
362
359
  ] }),
363
360
  /* @__PURE__ */ A("li", { children: [
364
361
  "•",
365
362
  " ",
366
- t("compliance.bestPractice4", "Provide a physical mailing address in your email footer")
363
+ n("compliance.bestPractice4", "Provide a physical mailing address in your email footer")
367
364
  ] }),
368
- /* @__PURE__ */ A("li", { children: ["• ", t("compliance.bestPractice5", "Use accurate sender names and subject lines")] })
365
+ /* @__PURE__ */ A("li", { children: ["• ", n("compliance.bestPractice5", "Use accurate sender names and subject lines")] })
369
366
  ]
370
367
  })]
371
368
  })]
372
369
  });
373
370
  }
374
- function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
375
- let { t: i, locale: a } = z(), l = c((e, t) => {
376
- let n = i(e);
377
- return n === e ? t : n;
378
- }, [i]), { productId: d } = e(), [m, h] = u("ALL"), { suppressions: _, loading: S, error: C, refetch: w } = s({ platformProductId: d }, 100), { removeSuppression: T, removing: O } = o(), j = _.filter((e) => {
379
- if (m !== "ALL" && e.reason !== m) return !1;
380
- if (t) {
381
- let n = t.toLowerCase();
382
- return e.email.toLowerCase().includes(n);
371
+ function V({ searchQuery: n, setSearchQuery: r, showNotification: i }) {
372
+ let { locale: a } = O(), c = e(), { productId: u } = t(), [p, m] = l("ALL"), { suppressions: g, loading: x, error: S, refetch: C } = s({ platformProductId: u }, 100), { removeSuppression: w, removing: D } = o(), j = g.filter((e) => {
373
+ if (p !== "ALL" && e.reason !== p) return !1;
374
+ if (n) {
375
+ let t = n.toLowerCase();
376
+ return e.email.toLowerCase().includes(t);
383
377
  }
384
378
  return !0;
385
379
  }), N = {
386
- unsubscribed: _.filter((e) => e.reason === "unsubscribed").length,
387
- bounced: _.filter((e) => e.reason === "bounced" || e.reason === "hard_bounce").length,
388
- complained: _.filter((e) => e.reason === "complained" || e.reason === "spam_complaint").length,
389
- total: _.length
380
+ unsubscribed: g.filter((e) => e.reason === "unsubscribed").length,
381
+ bounced: g.filter((e) => e.reason === "bounced" || e.reason === "hard_bounce").length,
382
+ complained: g.filter((e) => e.reason === "complained" || e.reason === "spam_complaint").length,
383
+ total: g.length
390
384
  }, F = () => {
391
385
  try {
392
386
  let e = [[
393
- l("newsletter.email", "Email"),
394
- l("compliance.reason", "Reason"),
395
- l("compliance.source", "Source"),
396
- l("compliance.addedAt", "Added At")
397
- ], ..._.map((e) => [
387
+ c("newsletter.email", "Email"),
388
+ c("compliance.reason", "Reason"),
389
+ c("compliance.source", "Source"),
390
+ c("compliance.addedAt", "Added At")
391
+ ], ...g.map((e) => [
398
392
  e.email,
399
393
  e.reason,
400
394
  e.source || "",
401
395
  e.addedAt
402
- ])].map((e) => e.join(",")).join("\n"), t = new Blob([e], { type: "text/csv" }), n = URL.createObjectURL(t), i = document.createElement("a");
403
- i.href = n, i.download = `${l("compliance.suppressionExportFilename", "suppression-list")}.csv`, i.click(), URL.revokeObjectURL(n), r("success", l("compliance.suppressionListExported", "Suppression list exported"));
396
+ ])].map((e) => e.join(",")).join("\n"), t = new Blob([e], { type: "text/csv" }), n = URL.createObjectURL(t), r = document.createElement("a");
397
+ r.href = n, r.download = `${c("compliance.suppressionExportFilename", "suppression-list")}.csv`, r.click(), URL.revokeObjectURL(n), i("success", c("compliance.suppressionListExported", "Suppression list exported"));
404
398
  } catch (e) {
405
- r("error", `${l("subscribers.failedToExport", "Failed to export")}: ${e instanceof Error ? e.message : l("newsletter.unknownError", "Unknown error")}`);
399
+ i("error", `${c("subscribers.failedToExport", "Failed to export")}: ${e instanceof Error ? e.message : c("newsletter.unknownError", "Unknown error")}`);
406
400
  }
407
401
  }, L = async (e) => {
408
- if (confirm(`${l("compliance.confirmRemoveSuppressionPrefix", "Remove")} ${e.email} ${l("compliance.confirmRemoveSuppressionSuffix", "from suppression list? They will be able to receive emails again.")}`)) try {
409
- await T(e.id), r("success", `${e.email} ${l("compliance.removedFromSuppressionSuffix", "removed from suppression list")}`), w();
402
+ if (confirm(`${c("compliance.confirmRemoveSuppressionPrefix", "Remove")} ${e.email} ${c("compliance.confirmRemoveSuppressionSuffix", "from suppression list? They will be able to receive emails again.")}`)) try {
403
+ await w(e.id), i("success", `${e.email} ${c("compliance.removedFromSuppressionSuffix", "removed from suppression list")}`), C();
410
404
  } catch (e) {
411
- r("error", `${l("compliance.failedToRemove", "Failed to remove")}: ${e instanceof Error ? e.message : l("newsletter.unknownError", "Unknown error")}`);
405
+ i("error", `${c("compliance.failedToRemove", "Failed to remove")}: ${e instanceof Error ? e.message : c("newsletter.unknownError", "Unknown error")}`);
412
406
  }
413
407
  }, R = (e) => e ? new Date(e).toLocaleDateString(a || "en-US", {
414
408
  month: "short",
415
409
  day: "numeric",
416
410
  year: "numeric"
417
- }) : l("newsletterCommon.notAvailable", "N/A"), B = (e) => {
411
+ }) : c("newsletterCommon.notAvailable", "N/A"), z = (e) => {
418
412
  let t = {
419
413
  unsubscribed: "bg-bg-sunken text-text-secondary",
420
414
  bounced: "bg-status-error-bg/10 text-status-error-text",
@@ -423,28 +417,28 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
423
417
  spam_complaint: "bg-status-warning-bg/10 text-status-warning-text",
424
418
  manual: "bg-action-primary-bg/10 text-primary"
425
419
  }, n = {
426
- unsubscribed: l("compliance.unsubscribed", "Unsubscribed"),
427
- bounced: l("compliance.bounced", "Bounced"),
428
- hard_bounce: l("compliance.hardBounce", "Hard bounce"),
429
- complained: l("compliance.complained", "Complained"),
430
- spam_complaint: l("compliance.spamComplaint", "Spam complaint"),
431
- manual: l("compliance.manual", "Manual")
420
+ unsubscribed: c("compliance.unsubscribed", "Unsubscribed"),
421
+ bounced: c("compliance.bounced", "Bounced"),
422
+ hard_bounce: c("compliance.hardBounce", "Hard bounce"),
423
+ complained: c("compliance.complained", "Complained"),
424
+ spam_complaint: c("compliance.spamComplaint", "Spam complaint"),
425
+ manual: c("compliance.manual", "Manual")
432
426
  };
433
427
  return /* @__PURE__ */ k("span", {
434
428
  className: `px-2 py-0.5 rounded-full text-xs font-medium ${t[e] || "bg-bg-sunken text-text-secondary"}`,
435
429
  children: n[e] || e.replace("_", " ")
436
430
  });
437
431
  };
438
- return C ? /* @__PURE__ */ k("div", {
432
+ return S ? /* @__PURE__ */ k("div", {
439
433
  className: "flex items-center justify-center h-full p-6",
440
434
  children: /* @__PURE__ */ k(I, {
441
435
  illustration: "empty-generic",
442
- title: l("compliance.failedLoadSuppression", "Failed to load suppression list"),
443
- description: C.message,
436
+ title: c("compliance.failedLoadSuppression", "Failed to load suppression list"),
437
+ description: S.message,
444
438
  action: /* @__PURE__ */ k(M, {
445
439
  type: "button",
446
- onClick: () => w(),
447
- children: l("newsletterCommon.tryAgain", "Try Again")
440
+ onClick: () => C(),
441
+ children: c("newsletterCommon.tryAgain", "Try Again")
448
442
  })
449
443
  })
450
444
  }) : /* @__PURE__ */ A("div", {
@@ -458,12 +452,12 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
458
452
  className: "p-4",
459
453
  children: [/* @__PURE__ */ A("div", {
460
454
  className: "flex items-center gap-2 mb-1",
461
- children: [/* @__PURE__ */ k(D, {
455
+ children: [/* @__PURE__ */ k(E, {
462
456
  size: 18,
463
457
  className: "text-text-secondary"
464
458
  }), /* @__PURE__ */ k("span", {
465
459
  className: "text-sm text-text-secondary",
466
- children: l("compliance.totalSuppressed", "Total Suppressed")
460
+ children: c("compliance.totalSuppressed", "Total Suppressed")
467
461
  })]
468
462
  }), /* @__PURE__ */ k("div", {
469
463
  className: "text-2xl font-bold text-text-primary tabular-nums",
@@ -475,12 +469,12 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
475
469
  className: "p-4",
476
470
  children: [/* @__PURE__ */ A("div", {
477
471
  className: "flex items-center gap-2 mb-1",
478
- children: [/* @__PURE__ */ k(y, {
472
+ children: [/* @__PURE__ */ k(v, {
479
473
  size: 18,
480
474
  className: "text-text-secondary"
481
475
  }), /* @__PURE__ */ k("span", {
482
476
  className: "text-sm text-text-secondary",
483
- children: l("compliance.unsubscribed", "Unsubscribed")
477
+ children: c("compliance.unsubscribed", "Unsubscribed")
484
478
  })]
485
479
  }), /* @__PURE__ */ k("div", {
486
480
  className: "text-2xl font-bold text-text-primary tabular-nums",
@@ -492,12 +486,12 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
492
486
  className: "p-4",
493
487
  children: [/* @__PURE__ */ A("div", {
494
488
  className: "flex items-center gap-2 mb-1",
495
- children: [/* @__PURE__ */ k(p, {
489
+ children: [/* @__PURE__ */ k(f, {
496
490
  size: 18,
497
491
  className: "text-status-error-text"
498
492
  }), /* @__PURE__ */ k("span", {
499
493
  className: "text-sm text-text-secondary",
500
- children: l("compliance.bounced", "Bounced")
494
+ children: c("compliance.bounced", "Bounced")
501
495
  })]
502
496
  }), /* @__PURE__ */ k("div", {
503
497
  className: "text-2xl font-bold text-status-error-text tabular-nums",
@@ -509,12 +503,12 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
509
503
  className: "p-4",
510
504
  children: [/* @__PURE__ */ A("div", {
511
505
  className: "flex items-center gap-2 mb-1",
512
- children: [/* @__PURE__ */ k(f, {
506
+ children: [/* @__PURE__ */ k(d, {
513
507
  size: 18,
514
508
  className: "text-status-warning-text"
515
509
  }), /* @__PURE__ */ k("span", {
516
510
  className: "text-sm text-text-secondary",
517
- children: l("compliance.complained", "Complained")
511
+ children: c("compliance.complained", "Complained")
518
512
  })]
519
513
  }), /* @__PURE__ */ k("div", {
520
514
  className: "text-2xl font-bold text-status-warning-text tabular-nums",
@@ -529,41 +523,41 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
529
523
  className: "flex items-center gap-4",
530
524
  children: [/* @__PURE__ */ A("div", {
531
525
  className: "relative",
532
- children: [/* @__PURE__ */ k(x, {
526
+ children: [/* @__PURE__ */ k(b, {
533
527
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary",
534
528
  size: 18
535
529
  }), /* @__PURE__ */ k("input", {
536
530
  type: "text",
537
- "aria-label": l("compliance.searchEmails", "Search emails..."),
538
- placeholder: l("compliance.searchEmails", "Search emails..."),
539
- value: t,
540
- onChange: (e) => n(e.target.value),
531
+ "aria-label": c("compliance.searchEmails", "Search emails..."),
532
+ placeholder: c("compliance.searchEmails", "Search emails..."),
533
+ value: n,
534
+ onChange: (e) => r(e.target.value),
541
535
  className: "pl-10 pr-4 py-2 border border-border-seam rounded-lg bg-bg-surface focus:ring-2 focus:ring-primary/50 focus:border-transparent w-64"
542
536
  })]
543
537
  }), /* @__PURE__ */ A("select", {
544
- value: m,
545
- onChange: (e) => h(e.target.value),
538
+ value: p,
539
+ onChange: (e) => m(e.target.value),
546
540
  className: "px-4 py-2 border border-border-seam rounded-lg bg-bg-surface focus:ring-2 focus:ring-primary/50 focus:border-transparent",
547
541
  children: [
548
542
  /* @__PURE__ */ k("option", {
549
543
  value: "ALL",
550
- children: l("compliance.allReasons", "All Reasons")
544
+ children: c("compliance.allReasons", "All Reasons")
551
545
  }),
552
546
  /* @__PURE__ */ k("option", {
553
547
  value: "unsubscribed",
554
- children: l("compliance.unsubscribed", "Unsubscribed")
548
+ children: c("compliance.unsubscribed", "Unsubscribed")
555
549
  }),
556
550
  /* @__PURE__ */ k("option", {
557
551
  value: "bounced",
558
- children: l("compliance.bounced", "Bounced")
552
+ children: c("compliance.bounced", "Bounced")
559
553
  }),
560
554
  /* @__PURE__ */ k("option", {
561
555
  value: "complained",
562
- children: l("compliance.complained", "Complained")
556
+ children: c("compliance.complained", "Complained")
563
557
  }),
564
558
  /* @__PURE__ */ k("option", {
565
559
  value: "manual",
566
- children: l("compliance.manual", "Manual")
560
+ children: c("compliance.manual", "Manual")
567
561
  })
568
562
  ]
569
563
  })]
@@ -573,38 +567,38 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
573
567
  type: "button",
574
568
  variant: "outline",
575
569
  size: "icon",
576
- onClick: () => w(),
577
- title: l("newsletter.refresh", "Refresh"),
578
- "aria-label": l("newsletter.refresh", "Refresh"),
579
- children: /* @__PURE__ */ k(b, {
570
+ onClick: () => C(),
571
+ title: c("newsletter.refresh", "Refresh"),
572
+ "aria-label": c("newsletter.refresh", "Refresh"),
573
+ children: /* @__PURE__ */ k(y, {
580
574
  size: 20,
581
- className: S ? "animate-spin" : ""
575
+ className: x ? "animate-spin" : ""
582
576
  })
583
577
  }), /* @__PURE__ */ A(M, {
584
578
  type: "button",
585
579
  variant: "outline",
586
580
  onClick: F,
587
- disabled: _.length === 0,
581
+ disabled: g.length === 0,
588
582
  className: "gap-2",
589
- children: [/* @__PURE__ */ k(g, { size: 18 }), l("subscribers.export", "Export")]
583
+ children: [/* @__PURE__ */ k(h, { size: 18 }), c("subscribers.export", "Export")]
590
584
  })]
591
585
  })]
592
586
  }),
593
- S && _.length === 0 ? /* @__PURE__ */ k("div", {
587
+ x && g.length === 0 ? /* @__PURE__ */ k("div", {
594
588
  className: "flex items-center justify-center h-48",
595
589
  children: /* @__PURE__ */ A("div", {
596
590
  className: "flex items-center gap-2 text-text-secondary",
597
- children: [/* @__PURE__ */ k(v, {
591
+ children: [/* @__PURE__ */ k(_, {
598
592
  className: "animate-spin",
599
593
  size: 24
600
- }), /* @__PURE__ */ k("span", { children: l("compliance.loadingSuppressionList", "Loading suppression list...") })]
594
+ }), /* @__PURE__ */ k("span", { children: c("compliance.loadingSuppressionList", "Loading suppression list...") })]
601
595
  })
602
596
  }) : j.length === 0 ? /* @__PURE__ */ k("div", {
603
597
  className: "py-12",
604
598
  children: /* @__PURE__ */ k(I, {
605
- illustration: t ? "empty-search" : "empty-people",
606
- title: t ? l("compliance.noMatchingEmails", "No matching emails found") : l("compliance.suppressionListEmpty", "Suppression list is empty"),
607
- description: t ? l("newsletterCommon.tryDifferentSearch", "Try a different search term") : l("compliance.suppressionDescription", "Unsubscribed, bounced, and complained emails will appear here")
599
+ illustration: n ? "empty-search" : "empty-people",
600
+ title: n ? c("compliance.noMatchingEmails", "No matching emails found") : c("compliance.suppressionListEmpty", "Suppression list is empty"),
601
+ description: n ? c("newsletterCommon.tryDifferentSearch", "Try a different search term") : c("compliance.suppressionDescription", "Unsubscribed, bounced, and complained emails will appear here")
608
602
  })
609
603
  }) : /* @__PURE__ */ k(P, {
610
604
  treatment: "glass",
@@ -616,23 +610,23 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
616
610
  children: /* @__PURE__ */ A("tr", { children: [
617
611
  /* @__PURE__ */ k("th", {
618
612
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase",
619
- children: l("newsletter.email", "Email")
613
+ children: c("newsletter.email", "Email")
620
614
  }),
621
615
  /* @__PURE__ */ k("th", {
622
616
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase",
623
- children: l("compliance.reason", "Reason")
617
+ children: c("compliance.reason", "Reason")
624
618
  }),
625
619
  /* @__PURE__ */ k("th", {
626
620
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase",
627
- children: l("compliance.source", "Source")
621
+ children: c("compliance.source", "Source")
628
622
  }),
629
623
  /* @__PURE__ */ k("th", {
630
624
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase",
631
- children: l("newsletterCommon.date", "Date")
625
+ children: c("newsletterCommon.date", "Date")
632
626
  }),
633
627
  /* @__PURE__ */ k("th", {
634
628
  className: "px-4 py-3 text-right text-xs font-medium text-text-secondary uppercase",
635
- children: l("newsletter.actions", "Actions")
629
+ children: c("newsletter.actions", "Actions")
636
630
  })
637
631
  ] })
638
632
  }), /* @__PURE__ */ k("tbody", {
@@ -646,11 +640,11 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
646
640
  }),
647
641
  /* @__PURE__ */ k("td", {
648
642
  className: "px-4 py-3",
649
- children: B(e.reason)
643
+ children: z(e.reason)
650
644
  }),
651
645
  /* @__PURE__ */ k("td", {
652
646
  className: "px-4 py-3 text-sm text-text-secondary",
653
- children: e.source || l("newsletterCommon.notAvailable", "N/A")
647
+ children: e.source || c("newsletterCommon.notAvailable", "N/A")
654
648
  }),
655
649
  /* @__PURE__ */ k("td", {
656
650
  className: "px-4 py-3 text-sm text-text-secondary",
@@ -663,11 +657,11 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
663
657
  variant: "ghost",
664
658
  size: "icon-sm",
665
659
  onClick: () => L(e),
666
- disabled: O,
660
+ disabled: D,
667
661
  className: "text-status-error-text",
668
- title: l("compliance.removeFromSuppression", "Remove from suppression"),
669
- "aria-label": l("compliance.removeFromSuppression", "Remove from suppression"),
670
- children: /* @__PURE__ */ k(E, { size: 16 })
662
+ title: c("compliance.removeFromSuppression", "Remove from suppression"),
663
+ "aria-label": c("compliance.removeFromSuppression", "Remove from suppression"),
664
+ children: /* @__PURE__ */ k(T, { size: 16 })
671
665
  })
672
666
  })
673
667
  ]
@@ -678,25 +672,25 @@ function H({ searchQuery: t, setSearchQuery: n, showNotification: r }) {
678
672
  ]
679
673
  });
680
674
  }
681
- function U({ platformProductId: e, showNotification: t }) {
682
- let r = n(), { settings: a, loading: o } = i(e);
675
+ function H({ platformProductId: t, showNotification: n }) {
676
+ let r = e(), { settings: a, loading: o } = i(t);
683
677
  return o ? /* @__PURE__ */ k("div", {
684
678
  className: "flex items-center justify-center h-48",
685
679
  children: /* @__PURE__ */ A("div", {
686
680
  className: "flex items-center gap-2 text-text-secondary",
687
- children: [/* @__PURE__ */ k(v, {
681
+ children: [/* @__PURE__ */ k(_, {
688
682
  className: "animate-spin",
689
683
  size: 24
690
684
  }), /* @__PURE__ */ k("span", { children: r("compliance.loadingSettings", "Loading settings...") })]
691
685
  })
692
- }) : /* @__PURE__ */ k(W, {
693
- platformProductId: e,
686
+ }) : /* @__PURE__ */ k(U, {
687
+ platformProductId: t,
694
688
  initialSettings: a,
695
- showNotification: t
689
+ showNotification: n
696
690
  }, a?.id ?? "new");
697
691
  }
698
- function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
699
- let i = n(), { upsertComplianceSettings: o, loading: s } = a(), [c, l] = u(t?.unsubscribeUrl ?? ""), [d, f] = u(t?.privacyPolicyUrl ?? ""), [p, h] = u(t?.physicalAddress ?? ""), [g, _] = u(t?.collectReasons ?? !1), [y, b] = u(t?.allowResubscribe ?? !1), [x, S] = u(t?.doubleOptIn ?? !1), [C, w] = u(String(t?.analyticsRetention ?? 365)), [T, E] = u(String(t?.inactiveCleanup ?? 0));
692
+ function U({ platformProductId: t, initialSettings: n, showNotification: r }) {
693
+ let i = e(), { upsertComplianceSettings: o, loading: s } = a(), [c, u] = l(n?.unsubscribeUrl ?? ""), [d, f] = l(n?.privacyPolicyUrl ?? ""), [m, h] = l(n?.physicalAddress ?? ""), [g, v] = l(n?.collectReasons ?? !1), [y, b] = l(n?.allowResubscribe ?? !1), [x, S] = l(n?.doubleOptIn ?? !1), [C, w] = l(String(n?.analyticsRetention ?? 365)), [T, E] = l(String(n?.inactiveCleanup ?? 0));
700
694
  return /* @__PURE__ */ A("div", {
701
695
  className: "p-6 space-y-6",
702
696
  children: [
@@ -716,7 +710,7 @@ function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
716
710
  type: "text",
717
711
  "aria-label": i("compliance.unsubscribeLandingPageUrl", "Unsubscribe Landing Page URL"),
718
712
  value: c,
719
- onChange: (e) => l(e.target.value),
713
+ onChange: (e) => u(e.target.value),
720
714
  className: "w-full px-3 py-2 border border-border-seam rounded-lg bg-bg-surface focus:ring-2 focus:ring-primary/50 focus:border-transparent"
721
715
  })] }),
722
716
  /* @__PURE__ */ A("div", {
@@ -726,7 +720,7 @@ function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
726
720
  id: "collect-reasons",
727
721
  "aria-label": i("compliance.collectUnsubscribeReasons", "Collect unsubscribe reasons (optional survey)"),
728
722
  checked: g,
729
- onChange: (e) => _(e.target.checked),
723
+ onChange: (e) => v(e.target.checked),
730
724
  className: "rounded border-border-seam"
731
725
  }), /* @__PURE__ */ k("label", {
732
726
  htmlFor: "collect-reasons",
@@ -795,7 +789,7 @@ function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
795
789
  }),
796
790
  /* @__PURE__ */ k("textarea", {
797
791
  "aria-label": i("compliance.physicalMailingAddress", "Physical Mailing Address (CAN-SPAM)"),
798
- value: p,
792
+ value: m,
799
793
  onChange: (e) => h(e.target.value),
800
794
  rows: 2,
801
795
  className: "w-full px-3 py-2 border border-border-seam rounded-lg bg-bg-surface focus:ring-2 focus:ring-primary/50 focus:border-transparent"
@@ -886,15 +880,15 @@ function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
886
880
  children: /* @__PURE__ */ A(M, {
887
881
  type: "button",
888
882
  onClick: async () => {
889
- if (!p.trim()) {
883
+ if (!m.trim()) {
890
884
  r("error", i("compliance.physicalAddressRequired", "Physical mailing address is required for CAN-SPAM compliance"));
891
885
  return;
892
886
  }
893
887
  try {
894
- await o(e, {
888
+ await o(t, {
895
889
  unsubscribeUrl: c || void 0,
896
890
  privacyPolicyUrl: d || void 0,
897
- physicalAddress: p,
891
+ physicalAddress: m,
898
892
  collectReasons: g,
899
893
  allowResubscribe: y,
900
894
  doubleOptIn: x,
@@ -908,20 +902,17 @@ function W({ platformProductId: e, initialSettings: t, showNotification: r }) {
908
902
  disabled: s,
909
903
  size: "lg",
910
904
  className: "gap-2",
911
- children: [s ? /* @__PURE__ */ k(v, {
905
+ children: [s ? /* @__PURE__ */ k(_, {
912
906
  size: 18,
913
907
  className: "animate-spin"
914
- }) : /* @__PURE__ */ k(m, { size: 18 }), i("compliance.saveSettings", "Save Settings")]
908
+ }) : /* @__PURE__ */ k(p, { size: 18 }), i("compliance.saveSettings", "Save Settings")]
915
909
  })
916
910
  })
917
911
  ]
918
912
  });
919
913
  }
920
- function G({ platformProductId: e }) {
921
- let { t, locale: n } = z(), i = c((e, n) => {
922
- let r = t(e);
923
- return r === e ? n : r;
924
- }, [t]), [a, o] = u("7d"), { auditLogs: s, loading: d, error: f, refetch: p } = r(e, l(() => {
914
+ function W({ platformProductId: t }) {
915
+ let { locale: n } = O(), i = e(), [a, o] = l("7d"), { auditLogs: s, loading: u, error: d, refetch: f } = r(t, c(() => {
925
916
  switch (a) {
926
917
  case "7d": return 7;
927
918
  case "30d": return 30;
@@ -929,7 +920,7 @@ function G({ platformProductId: e }) {
929
920
  case "all": return;
930
921
  default: return 7;
931
922
  }
932
- }, [a])), m = (e) => {
923
+ }, [a])), p = (e) => {
933
924
  let t = {
934
925
  UNSUBSCRIBE: "bg-status-warning-bg/10 text-status-warning-text",
935
926
  GDPR_EXPORT: "bg-action-primary-bg/10 text-primary",
@@ -953,21 +944,21 @@ function G({ platformProductId: e }) {
953
944
  className: `px-2 py-0.5 rounded-full text-xs font-medium ${t[e] || "bg-bg-sunken text-text-secondary"}`,
954
945
  children: n[e] || e.replace("_", " ")
955
946
  });
956
- }, _ = (e) => new Date(e).toLocaleString(n || "en-US", {
947
+ }, g = (e) => new Date(e).toLocaleString(n || "en-US", {
957
948
  month: "short",
958
949
  day: "numeric",
959
950
  hour: "2-digit",
960
951
  minute: "2-digit"
961
952
  });
962
- return f ? /* @__PURE__ */ k("div", {
953
+ return d ? /* @__PURE__ */ k("div", {
963
954
  className: "flex items-center justify-center h-full p-6",
964
955
  children: /* @__PURE__ */ k(I, {
965
956
  illustration: "empty-generic",
966
957
  title: i("compliance.failedLoadAuditLog", "Failed to load audit log"),
967
- description: f.message,
958
+ description: d.message,
968
959
  action: /* @__PURE__ */ k(M, {
969
960
  type: "button",
970
- onClick: () => p(),
961
+ onClick: () => f(),
971
962
  children: i("newsletterCommon.tryAgain", "Try Again")
972
963
  })
973
964
  })
@@ -1000,7 +991,7 @@ function G({ platformProductId: e }) {
1000
991
  children: i("analytics.allTime", "All time")
1001
992
  })
1002
993
  ]
1003
- }), d && /* @__PURE__ */ k(v, {
994
+ }), u && /* @__PURE__ */ k(_, {
1004
995
  size: 18,
1005
996
  className: "animate-spin text-text-secondary"
1006
997
  })]
@@ -1027,14 +1018,14 @@ function G({ platformProductId: e }) {
1027
1018
  },
1028
1019
  disabled: s.length === 0,
1029
1020
  className: "gap-2",
1030
- children: [/* @__PURE__ */ k(g, { size: 18 }), i("compliance.exportLog", "Export Log")]
1021
+ children: [/* @__PURE__ */ k(h, { size: 18 }), i("compliance.exportLog", "Export Log")]
1031
1022
  })]
1032
1023
  }),
1033
- d && s.length === 0 ? /* @__PURE__ */ k("div", {
1024
+ u && s.length === 0 ? /* @__PURE__ */ k("div", {
1034
1025
  className: "flex items-center justify-center h-48",
1035
1026
  children: /* @__PURE__ */ A("div", {
1036
1027
  className: "flex items-center gap-2 text-text-secondary",
1037
- children: [/* @__PURE__ */ k(v, {
1028
+ children: [/* @__PURE__ */ k(_, {
1038
1029
  className: "animate-spin",
1039
1030
  size: 24
1040
1031
  }), /* @__PURE__ */ k("span", { children: i("compliance.loadingAuditLog", "Loading audit log...") })]
@@ -1083,7 +1074,7 @@ function G({ platformProductId: e }) {
1083
1074
  children: [
1084
1075
  /* @__PURE__ */ k("td", {
1085
1076
  className: "px-4 py-3",
1086
- children: m(e.event)
1077
+ children: p(e.event)
1087
1078
  }),
1088
1079
  /* @__PURE__ */ k("td", {
1089
1080
  className: "px-4 py-3 text-sm text-text-primary",
@@ -1101,7 +1092,7 @@ function G({ platformProductId: e }) {
1101
1092
  className: "px-4 py-3 text-sm text-text-secondary",
1102
1093
  children: /* @__PURE__ */ A("div", {
1103
1094
  className: "flex items-center gap-1",
1104
- children: [/* @__PURE__ */ k(h, { size: 14 }), _(e.timestamp)]
1095
+ children: [/* @__PURE__ */ k(m, { size: 14 }), g(e.timestamp)]
1105
1096
  })
1106
1097
  })
1107
1098
  ]
@@ -1125,6 +1116,6 @@ function G({ platformProductId: e }) {
1125
1116
  });
1126
1117
  }
1127
1118
  //#endregion
1128
- export { B as CompliancePage };
1119
+ export { z as CompliancePage };
1129
1120
 
1130
1121
  //# sourceMappingURL=CompliancePage.js.map