@burdenoff/microfe-notification 2026.424.101 → 2026.513.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.
Files changed (138) hide show
  1. package/dist/components/NotificationCard.d.ts.map +1 -1
  2. package/dist/components/NotificationCard.js +62 -57
  3. package/dist/components/NotificationCard.js.map +1 -1
  4. package/dist/generated/global-operations.d.ts +556 -8
  5. package/dist/generated/global-operations.d.ts.map +1 -1
  6. package/dist/generated/global-operations.js +198 -155
  7. package/dist/generated/global-operations.js.map +1 -1
  8. package/dist/generated/global-types.d.ts +2907 -153
  9. package/dist/generated/global-types.d.ts.map +1 -1
  10. package/dist/generated/wspace-types.d.ts +4521 -569
  11. package/dist/generated/wspace-types.d.ts.map +1 -1
  12. package/dist/graphql/global-client.d.ts.map +1 -1
  13. package/dist/graphql/global-client.js +41 -23
  14. package/dist/graphql/global-client.js.map +1 -1
  15. package/dist/hooks/index.d.ts +1 -0
  16. package/dist/hooks/index.d.ts.map +1 -1
  17. package/dist/hooks/index.js +1 -0
  18. package/dist/hooks/useNotificationAdmin.d.ts.map +1 -1
  19. package/dist/hooks/useNotificationPreferences.d.ts +12 -0
  20. package/dist/hooks/useNotificationPreferences.d.ts.map +1 -0
  21. package/dist/hooks/useNotificationPreferences.js +114 -0
  22. package/dist/hooks/useNotificationPreferences.js.map +1 -0
  23. package/dist/hooks/useNotifications.d.ts +6 -1
  24. package/dist/hooks/useNotifications.d.ts.map +1 -1
  25. package/dist/hooks/useNotifications.js +148 -99
  26. package/dist/hooks/useNotifications.js.map +1 -1
  27. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +24 -0
  28. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
  29. package/dist/node_modules/@apollo/client/errors/utils.js +16 -0
  30. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
  31. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +52 -0
  32. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
  33. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +41 -0
  34. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
  35. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +34 -0
  36. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
  37. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +6 -0
  38. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
  39. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +16 -0
  40. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
  41. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +19 -0
  42. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
  43. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +21 -0
  44. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
  45. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +17 -0
  46. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
  47. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
  48. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
  49. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +9 -0
  50. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
  51. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
  52. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
  53. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +9 -0
  54. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
  55. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
  56. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
  57. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
  58. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
  59. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +10 -0
  60. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
  61. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +23 -0
  62. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
  63. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +10 -0
  64. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
  65. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +57 -0
  66. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
  67. package/dist/node_modules/@apollo/client/version.js +6 -0
  68. package/dist/node_modules/@apollo/client/version.js.map +1 -0
  69. package/dist/node_modules/@wry/caches/lib/weak.js +67 -0
  70. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
  71. package/dist/node_modules/@wry/trie/lib/index.js +53 -0
  72. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
  73. package/dist/node_modules/graphql-ws/dist/client.js +272 -0
  74. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
  75. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +62 -0
  76. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
  77. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +21 -0
  78. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
  79. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +78 -0
  80. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
  81. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +117 -0
  82. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
  83. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +93 -0
  84. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
  85. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +12 -0
  86. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
  87. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +9 -0
  88. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
  89. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +16 -0
  90. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
  91. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +8 -0
  92. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
  93. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +13 -0
  94. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
  95. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
  96. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
  97. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +11 -0
  98. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
  99. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +22 -0
  100. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
  101. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
  102. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
  103. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
  104. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
  105. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
  106. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
  107. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +13 -0
  108. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
  109. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +14 -0
  110. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
  111. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js +52 -0
  112. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
  113. package/dist/pages/CreateNotificationPage.d.ts.map +1 -1
  114. package/dist/pages/CreateNotificationPage.js +449 -448
  115. package/dist/pages/CreateNotificationPage.js.map +1 -1
  116. package/dist/pages/NotificationCenterPage.d.ts.map +1 -1
  117. package/dist/pages/NotificationCenterPage.js +128 -123
  118. package/dist/pages/NotificationCenterPage.js.map +1 -1
  119. package/dist/pages/NotificationHistoryAdminPage.js +1 -1
  120. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  121. package/dist/pages/NotificationHistoryPage.d.ts.map +1 -1
  122. package/dist/pages/NotificationHistoryPage.js +35 -37
  123. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  124. package/dist/pages/NotificationPreferencesPage.d.ts.map +1 -1
  125. package/dist/pages/NotificationPreferencesPage.js +224 -79
  126. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  127. package/dist/pages/NotificationTemplatesPage.d.ts.map +1 -1
  128. package/dist/pages/NotificationTemplatesPage.js +155 -141
  129. package/dist/pages/NotificationTemplatesPage.js.map +1 -1
  130. package/dist/providers/NotificationProvider.d.ts.map +1 -1
  131. package/dist/providers/NotificationProvider.js +6 -5
  132. package/dist/providers/NotificationProvider.js.map +1 -1
  133. package/dist/types/index.d.ts +36 -0
  134. package/dist/types/index.d.ts.map +1 -1
  135. package/dist/utils/nativeBridge.d.ts +3 -0
  136. package/dist/utils/nativeBridge.d.ts.map +1 -0
  137. package/dist/utils/nativeBridge.js +2 -0
  138. package/package.json +5 -3
@@ -1,73 +1,74 @@
1
1
  import { useNotificationTopics as e } from "../hooks/useNotificationTopics.js";
2
2
  import { useTr as t } from "../shared/hooks/useTr.js";
3
3
  import { isPermissionError as n } from "../utils/index.js";
4
- import { NOTIFICATION_PERMISSIONS as r } from "../constants/permissions.js";
5
- import { useSendNotification as ee } from "../hooks/useSendNotification.js";
6
- import { useNotificationTemplates as te } from "../hooks/useNotificationTemplates.js";
7
- import { useUserSearch as ne } from "../hooks/useUserSearch.js";
8
- import { RecipientSelector as re } from "../components/RecipientSelector.js";
9
- import { useMemo as i, useState as a } from "react";
10
- import { AlertCircle as ie, ArrowLeft as ae, Bell as oe, CheckCircle2 as o, Eye as se, EyeOff as ce, FileText as le, ImagePlus as ue, Link2 as de, Loader2 as s, Mail as fe, MessageSquare as c, Send as pe, Smartphone as l, User as u, Users as me, X as he } from "lucide-react";
11
- import { useNavigate as ge } from "react-router-dom";
12
- import { useGlobalUi as _e, usePermissions as ve } from "@burdenoff/fe-libs/shared/providers/shell";
13
- import { Fragment as ye, jsx as d, jsxs as f } from "react/jsx-runtime";
4
+ import { nativeImpact as r, nativeNotify as i } from "../utils/nativeBridge.js";
5
+ import { NOTIFICATION_PERMISSIONS as ee } from "../constants/permissions.js";
6
+ import { useSendNotification as te } from "../hooks/useSendNotification.js";
7
+ import { useNotificationTemplates as ne } from "../hooks/useNotificationTemplates.js";
8
+ import { useUserSearch as re } from "../hooks/useUserSearch.js";
9
+ import { RecipientSelector as ie } from "../components/RecipientSelector.js";
10
+ import { useMemo as a, useState as o } from "react";
11
+ import { AlertCircle as ae, ArrowLeft as oe, Bell as se, CheckCircle2 as s, Eye as ce, EyeOff as le, FileText as ue, ImagePlus as de, Link2 as fe, Loader2 as c, Mail as pe, MessageSquare as l, Send as me, Smartphone as u, User as d, Users as he, X as ge } from "lucide-react";
12
+ import { useNavigate as _e } from "react-router-dom";
13
+ import { useGlobalUi as ve, usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
14
+ import { Fragment as be, jsx as f, jsxs as p } from "react/jsx-runtime";
14
15
  //#region src/pages/CreateNotificationPage.tsx
15
- var be = [
16
+ var xe = [
16
17
  {
17
18
  value: "EMAIL",
18
19
  label: "Email",
19
- icon: fe,
20
+ icon: pe,
20
21
  description: "Send via email"
21
22
  },
22
23
  {
23
24
  value: "SMS",
24
25
  label: "SMS",
25
- icon: c,
26
+ icon: l,
26
27
  description: "Send text message"
27
28
  },
28
29
  {
29
30
  value: "PUSH",
30
31
  label: "Push",
31
- icon: l,
32
+ icon: u,
32
33
  description: "Mobile push notification"
33
34
  },
34
35
  {
35
36
  value: "WEBHOOK",
36
37
  label: "Webhook",
37
- icon: de,
38
+ icon: fe,
38
39
  description: "POST to a webhook URL"
39
40
  },
40
41
  {
41
42
  value: "WHATSAPP",
42
43
  label: "WhatsApp",
43
- icon: c,
44
+ icon: l,
44
45
  description: "Send via WhatsApp"
45
46
  },
46
47
  {
47
48
  value: "SLACK",
48
49
  label: "Slack",
49
- icon: c,
50
+ icon: l,
50
51
  description: "Send to Slack"
51
52
  },
52
53
  {
53
54
  value: "TEAMS",
54
55
  label: "Teams",
55
- icon: c,
56
+ icon: l,
56
57
  description: "Send to Microsoft Teams"
57
58
  },
58
59
  {
59
60
  value: "TELEGRAM",
60
61
  label: "Telegram",
61
- icon: c,
62
+ icon: l,
62
63
  description: "Send to Telegram"
63
64
  },
64
65
  {
65
66
  value: "DISCORD",
66
67
  label: "Discord",
67
- icon: c,
68
+ icon: l,
68
69
  description: "Send to Discord"
69
70
  }
70
- ], xe = [
71
+ ], Se = [
71
72
  {
72
73
  value: "TRANSACTIONAL",
73
74
  label: "Transactional",
@@ -88,7 +89,7 @@ var be = [
88
89
  label: "Alert",
89
90
  description: "Important alerts and warnings"
90
91
  }
91
- ], Se = [
92
+ ], Ce = [
92
93
  {
93
94
  value: "LOW",
94
95
  label: "Low",
@@ -109,7 +110,7 @@ var be = [
109
110
  label: "Urgent",
110
111
  color: "bg-status-error-bg-subtle text-status-error-text"
111
112
  }
112
- ], Ce = [
113
+ ], we = [
113
114
  {
114
115
  value: "",
115
116
  label: "All Roles"
@@ -138,7 +139,7 @@ var be = [
138
139
  value: "GUEST",
139
140
  label: "Guest"
140
141
  }
141
- ], we = [
142
+ ], Te = [
142
143
  {
143
144
  value: "",
144
145
  label: "All Statuses"
@@ -160,24 +161,24 @@ var be = [
160
161
  label: "Inactive"
161
162
  }
162
163
  ];
163
- function Te() {
164
- let fe = ge(), c = t(), { hasPermission: l, isLoading: Te, refreshPermissions: Ee } = ve(), { showToast: De } = _e(), { sendNotification: Oe, sendBatch: ke, sendWithTemplate: Ae, isSending: p, error: je, lastResult: Me, clearError: Ne, clearResult: Pe } = ee(), { templates: m, isLoading: Fe } = te(), { searchUsers: h, fetchAllUsers: Ie, results: g, isLoading: Le, error: _ } = ne(), { topics: Re } = e({ isActive: !0 }), [v, ze] = a("compose"), [y, Be] = a("EMAIL"), [b, Ve] = a("MARKETING"), [x, He] = a("MEDIUM"), [S, Ue] = a([]), [C, w] = a("manual"), [T, E] = a([]), [D, We] = a(!1), [O, Ge] = a(""), [k, Ke] = a(""), [A, qe] = a(""), [j, Je] = a(""), [Ye, Xe] = a(""), [Ze, Qe] = a(!1), [M, $e] = a(""), [N, P] = a([{
164
+ function Ee() {
165
+ let pe = _e(), l = t(), { hasPermission: u, isLoading: Ee, refreshPermissions: De } = ye(), { showToast: Oe } = ve(), { sendNotification: ke, sendBatch: Ae, sendWithTemplate: je, isSending: m, error: Me, lastResult: Ne, clearError: h, clearResult: Pe } = te(), { templates: g, isLoading: Fe } = ne(), { searchUsers: _, fetchAllUsers: Ie, results: v, isLoading: Le, error: y } = re(), { topics: Re } = e({ isActive: !0 }), [b, ze] = o("compose"), [x, Be] = o("EMAIL"), [S, Ve] = o("MARKETING"), [C, He] = o("MEDIUM"), [w, Ue] = o([]), [T, E] = o("manual"), [D, O] = o([]), [k, We] = o(!1), [A, Ge] = o(""), [j, Ke] = o(""), [M, qe] = o(""), [N, Je] = o(""), [Ye, Xe] = o(""), [Ze, Qe] = o(!1), [P, $e] = o(""), [et, F] = o([{
165
166
  url: "",
166
167
  label: "",
167
168
  kind: "image"
168
- }]), [F, I] = a([{
169
+ }]), [tt, I] = o([{
169
170
  id: "primary-action",
170
171
  label: "",
171
172
  url: "",
172
173
  style: "primary"
173
- }]), [L, et] = a(!1), [R, z] = a([]), [B, V] = a(""), [H, tt] = a(""), [U, nt] = a({}), [W, rt] = a(!1), [G, it] = a(""), [K, at] = a(!0), [ot, q] = a(null), [J, Y] = a(!1), X = i(() => m.find((e) => e.slug === H), [m, H]), Z = i(() => {
174
+ }]), [L, nt] = o(!1), [R, z] = o([]), [B, V] = o(""), [H, rt] = o(""), [U, it] = o({}), [W, at] = o(!1), [G, ot] = o(""), [K, st] = o(!0), [ct, q] = o(null), [J, Y] = o(!1), X = a(() => g.find((e) => e.slug === H), [g, H]), Z = a(() => {
174
175
  if (!X?.variables) return null;
175
176
  try {
176
177
  return typeof X.variables == "string" ? JSON.parse(X.variables) : X.variables;
177
178
  } catch {
178
179
  return null;
179
180
  }
180
- }, [X]), st = i(() => Z ? Array.isArray(Z) ? Z.filter((e) => e && typeof e.name == "string").map((e) => ({
181
+ }, [X]), lt = a(() => Z ? Array.isArray(Z) ? Z.filter((e) => e && typeof e.name == "string").map((e) => ({
181
182
  key: e.name,
182
183
  type: e.type || "string",
183
184
  required: !!e.required,
@@ -189,60 +190,60 @@ function Te() {
189
190
  required: !1,
190
191
  description: "",
191
192
  defaultValue: ""
192
- })) : [] : [], [Z]), ct = (e) => {
193
+ })) : [] : [], [Z]), ut = (e) => {
193
194
  let t = e;
194
195
  for (let [e, n] of Object.entries(U)) t = t.replace(RegExp(`\\{\\{${e}\\}\\}`, "g"), n || `{{${e}}}`);
195
196
  return t;
196
- }, lt = i(() => v === "template" && X ? ct(X.bodyTemplate || "") : j, [
197
- v,
197
+ }, dt = a(() => b === "template" && X ? ut(X.bodyTemplate || "") : N, [
198
+ b,
198
199
  X,
199
200
  U,
200
- j
201
- ]), ut = i(() => v === "template" && X?.subject ? ct(X.subject) : A, [
202
- v,
201
+ N
202
+ ]), ft = a(() => b === "template" && X?.subject ? ut(X.subject) : M, [
203
+ b,
203
204
  X,
204
205
  U,
205
- A
206
- ]), dt = [
206
+ M
207
+ ]), pt = [
207
208
  "EMAIL",
208
209
  "SMS",
209
210
  "WHATSAPP"
210
- ].includes(y), Q = i(() => F.filter((e) => e.label.trim() && e.url.trim()).map((e) => ({
211
+ ].includes(x), Q = a(() => tt.filter((e) => e.label.trim() && e.url.trim()).map((e) => ({
211
212
  id: e.id,
212
213
  label: e.label.trim(),
213
214
  url: e.url.trim(),
214
215
  style: e.style
215
- })), [F]), $ = i(() => N.filter((e) => e.url.trim()).map((e) => ({
216
+ })), [tt]), $ = a(() => et.filter((e) => e.url.trim()).map((e) => ({
216
217
  url: e.url.trim(),
217
218
  label: e.label.trim() || void 0,
218
219
  kind: e.kind
219
- })), [N]);
220
- if (Te) return /* @__PURE__ */ d("div", {
220
+ })), [et]);
221
+ if (Ee) return /* @__PURE__ */ f("div", {
221
222
  className: "flex h-64 items-center justify-center",
222
- children: /* @__PURE__ */ d("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
223
+ children: /* @__PURE__ */ f("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
223
224
  });
224
- let ft = l(r.NOTIFICATION_CREATE), pt = l(r.NOTIFICATION_SEND);
225
- if (!ft || !pt) return /* @__PURE__ */ d("div", {
225
+ let mt = u(ee.NOTIFICATION_CREATE), ht = u(ee.NOTIFICATION_SEND);
226
+ if (!mt || !ht) return /* @__PURE__ */ f("div", {
226
227
  className: "p-8 text-center text-text-secondary",
227
- children: c("notifications.noPermissionCreateAndSend", "You don't have permission to create and send notifications.")
228
+ children: l("notifications.noPermissionCreateAndSend", "You don't have permission to create and send notifications.")
228
229
  });
229
- let mt = (e) => y === "EMAIL" ? {
230
+ let gt = (e) => x === "EMAIL" ? {
230
231
  userId: e.id,
231
232
  email: e.email
232
- } : y === "SMS" ? e.phoneNumber ? {
233
+ } : x === "SMS" ? e.phoneNumber ? {
233
234
  userId: e.id,
234
235
  phoneNumber: e.phoneNumber
235
- } : null : y === "WHATSAPP" ? e.phoneNumber ? {
236
+ } : null : x === "WHATSAPP" ? e.phoneNumber ? {
236
237
  userId: e.id,
237
238
  whatsappNumber: e.phoneNumber
238
239
  } : null : {
239
240
  userId: e.id,
240
241
  email: e.email
241
- }, ht = async () => (D ? await Ie({
242
+ }, _t = async () => (k ? await Ie({
242
243
  search: B,
243
- role: O || void 0,
244
- status: k || void 0
245
- }) : T).map((e) => mt(e)).filter((e) => !!e), gt = () => S.map((e) => ({
244
+ role: A || void 0,
245
+ status: j || void 0
246
+ }) : D).map((e) => gt(e)).filter((e) => !!e), vt = () => w.map((e) => ({
246
247
  email: e.email,
247
248
  phoneNumber: e.phoneNumber,
248
249
  pushToken: e.pushToken,
@@ -251,33 +252,33 @@ function Te() {
251
252
  teamsUserId: e.teamsUserId,
252
253
  webhookUrl: e.webhookUrl,
253
254
  userId: e.userId
254
- })), _t = () => {
255
- if (q(null), C === "manual" && S.length === 0) return q(c("notifications.addRecipientRequired", "Please add at least one recipient")), !1;
256
- if (C === "directory" && T.length === 0 && !D) return q(c("notifications.selectDirectoryUsersRequired", "Please select at least one user")), !1;
257
- if (L && R.length === 0) return q(c("notifications.selectUsersRequired", "Please select users for in-app notifications")), !1;
258
- if (b === "MARKETING" && !M) return q(c("notifications.selectTopicRequired", "Please choose a topic for promotional notifications")), !1;
259
- if (v === "compose") {
260
- if (!j.trim()) return q(c("notifications.bodyRequired", "Message body is required")), !1;
261
- if (y === "EMAIL" && !A.trim()) return q(c("notifications.subjectRequired", "Subject is required for email notifications")), !1;
262
- } else if (!H) return q(c("notifications.selectTemplateRequired", "Please select a template")), !1;
255
+ })), yt = () => {
256
+ if (q(null), T === "manual" && w.length === 0) return q(l("notifications.addRecipientRequired", "Please add at least one recipient")), !1;
257
+ if (T === "directory" && D.length === 0 && !k) return q(l("notifications.selectDirectoryUsersRequired", "Please select at least one user")), !1;
258
+ if (L && R.length === 0) return q(l("notifications.selectUsersRequired", "Please select users for in-app notifications")), !1;
259
+ if (S === "MARKETING" && !P) return q(l("notifications.selectTopicRequired", "Please choose a topic for promotional notifications")), !1;
260
+ if (b === "compose") {
261
+ if (!N.trim()) return q(l("notifications.bodyRequired", "Message body is required")), !1;
262
+ if (x === "EMAIL" && !M.trim()) return q(l("notifications.subjectRequired", "Subject is required for email notifications")), !1;
263
+ } else if (!H) return q(l("notifications.selectTemplateRequired", "Please select a template")), !1;
263
264
  return !0;
264
- }, vt = async () => {
265
- if (_t()) {
266
- Ne(), Pe(), Y(!1);
265
+ }, bt = async () => {
266
+ if (r("light"), yt()) {
267
+ h(), Pe(), Y(!1);
267
268
  try {
268
- let e = C === "directory" ? await ht() : gt();
269
+ let e = T === "directory" ? await _t() : vt();
269
270
  if (e.length === 0) {
270
- q(c("notifications.noDeliverableRecipients", "No valid recipients matched the selected channel and filters"));
271
+ q(l("notifications.noDeliverableRecipients", "No valid recipients matched the selected channel and filters"));
271
272
  return;
272
273
  }
273
- if (v === "template") {
274
- let t = await Ae({
274
+ if (b === "template") {
275
+ let t = await je({
275
276
  templateSlug: H,
276
277
  variables: U,
277
278
  recipients: e,
278
- platform: y,
279
- priority: x,
280
- topicId: M || void 0,
279
+ platform: x,
280
+ priority: C,
281
+ topicId: P || void 0,
281
282
  actions: Q,
282
283
  media: $,
283
284
  redirectUrl: Q[0]?.url,
@@ -290,49 +291,49 @@ function Te() {
290
291
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
291
292
  }
292
293
  });
293
- t && t.totalTriggered > 0 && Y(!0);
294
+ t && t.totalTriggered > 0 && (Y(!0), i("success"));
294
295
  } else {
295
296
  let t = e.map((e) => ({
296
- body: j,
297
- channel: y,
297
+ body: N,
298
+ channel: x,
298
299
  recipient: e,
299
- subject: y === "EMAIL" ? A : void 0,
300
+ subject: x === "EMAIL" ? M : void 0,
300
301
  htmlBody: Ze && Ye ? Ye : void 0,
301
- type: b,
302
- priority: x,
303
- topicId: M || void 0,
302
+ type: S,
303
+ priority: C,
304
+ topicId: P || void 0,
304
305
  redirectUrl: Q[0]?.url,
305
306
  actions: Q,
306
307
  media: $
307
308
  }));
308
309
  if (W || t.length > 1) {
309
- let e = await ke({
310
+ let e = await Ae({
310
311
  notifications: t,
311
312
  ...W && G && {
312
313
  scheduledFor: new Date(G).toISOString(),
313
314
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
314
315
  }
315
316
  });
316
- e && (e.successCount > 0 || e.totalRequested > 0) && Y(!0);
317
- } else (await Oe({
317
+ e && (e.successCount > 0 || e.totalRequested > 0) && (Y(!0), i("success"));
318
+ } else (await ke({
318
319
  notification: t[0],
319
- platform: y,
320
+ platform: x,
320
321
  ...L && {
321
322
  includeInApp: L,
322
323
  userIds: R.map((e) => e.id)
323
324
  }
324
- }))?.status && Y(!0);
325
+ }))?.status && (Y(!0), i("success"));
325
326
  }
326
327
  } catch (e) {
327
- if (n(e)) {
328
- Ne(), De(c("notifications.permissionDeniedOnSend", "You don't have permission to send that notification. Refreshing access…"), "warning"), Ee().catch((e) => console.warn("[permissions] refresh failed after send denial:", e));
328
+ if (i("error"), n(e)) {
329
+ h(), Oe(l("notifications.permissionDeniedOnSend", "You don't have permission to send that notification. Refreshing access…"), "warning"), De().catch((e) => console.warn("[permissions] refresh failed after send denial:", e));
329
330
  return;
330
331
  }
331
332
  console.error("Failed to send notification:", e);
332
333
  }
333
334
  }
334
- }, yt = () => {
335
- Ue([]), w("manual"), E([]), We(!1), Ge(""), Ke(""), qe(""), Je(""), Xe(""), $e(""), P([{
335
+ }, xt = () => {
336
+ Ue([]), E("manual"), O([]), We(!1), Ge(""), Ke(""), qe(""), Je(""), Xe(""), $e(""), F([{
336
337
  url: "",
337
338
  label: "",
338
339
  kind: "image"
@@ -341,189 +342,189 @@ function Te() {
341
342
  label: "",
342
343
  url: "",
343
344
  style: "primary"
344
- }]), tt(""), nt({}), et(!1), z([]), V(""), rt(!1), it(""), Y(!1), Ne(), Pe();
345
- }, bt = ot || je;
346
- return /* @__PURE__ */ f("div", {
345
+ }]), rt(""), it({}), nt(!1), z([]), V(""), at(!1), ot(""), Y(!1), h(), Pe();
346
+ }, St = ct || Me;
347
+ return /* @__PURE__ */ p("div", {
347
348
  className: "min-h-screen bg-bg-canvas",
348
349
  children: [
349
- /* @__PURE__ */ f("div", {
350
+ /* @__PURE__ */ p("div", {
350
351
  className: "sticky top-0 z-10 flex items-center justify-between px-6 py-4 bg-bg-surface border-b border-border-subtle",
351
- children: [/* @__PURE__ */ f("div", {
352
+ children: [/* @__PURE__ */ p("div", {
352
353
  className: "flex items-center gap-4",
353
- children: [/* @__PURE__ */ d("button", {
354
- onClick: () => fe("/notifications/center"),
354
+ children: [/* @__PURE__ */ f("button", {
355
+ onClick: () => pe("/notifications/center"),
355
356
  className: "p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-lg transition-colors",
356
- children: /* @__PURE__ */ d(ae, { size: 20 })
357
- }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h1", {
357
+ children: /* @__PURE__ */ f(oe, { size: 20 })
358
+ }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
358
359
  className: "text-xl font-semibold text-text-primary",
359
- children: c("notifications.sendTitle", "Send Notification")
360
- }), /* @__PURE__ */ d("p", {
360
+ children: l("notifications.sendTitle", "Send Notification")
361
+ }), /* @__PURE__ */ f("p", {
361
362
  className: "text-sm text-text-secondary",
362
- children: c("notifications.sendSubtitle", "Compose and send notifications to users")
363
+ children: l("notifications.sendSubtitle", "Compose and send notifications to users")
363
364
  })] })]
364
- }), /* @__PURE__ */ f("div", {
365
+ }), /* @__PURE__ */ p("div", {
365
366
  className: "flex items-center gap-3",
366
- children: [/* @__PURE__ */ f("button", {
367
- onClick: () => at(!K),
367
+ children: [/* @__PURE__ */ p("button", {
368
+ onClick: () => st(!K),
368
369
  className: `flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-lg transition-colors ${K ? "bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300" : "text-text-secondary hover:bg-bg-sunken"}`,
369
- children: [d(K ? ce : se, { size: 16 }), c("notifications.preview", "Preview")]
370
- }), /* @__PURE__ */ f("button", {
371
- onClick: vt,
372
- disabled: p || J,
370
+ children: [f(K ? le : ce, { size: 16 }), l("notifications.preview", "Preview")]
371
+ }), /* @__PURE__ */ p("button", {
372
+ onClick: bt,
373
+ disabled: m || J,
373
374
  className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
374
- children: [p ? /* @__PURE__ */ d(s, {
375
+ children: [m ? /* @__PURE__ */ f(c, {
375
376
  size: 16,
376
377
  className: "animate-spin"
377
- }) : d(J ? o : pe, { size: 16 }), p ? c("notifications.sending", "Sending...") : J ? c("notifications.sent", "Sent!") : W ? c("notifications.schedule", "Schedule") : c("notifications.sendNotification", "Send Notification")]
378
+ }) : f(J ? s : me, { size: 16 }), m ? l("notifications.sending", "Sending...") : J ? l("notifications.sent", "Sent!") : W ? l("notifications.schedule", "Schedule") : l("notifications.sendNotification", "Send Notification")]
378
379
  })]
379
380
  })]
380
381
  }),
381
- J && /* @__PURE__ */ f("div", {
382
+ J && /* @__PURE__ */ p("div", {
382
383
  className: "mx-6 mt-4 flex items-center justify-between p-4 bg-status-success-bg-subtle border border-border-subtle rounded-lg",
383
- children: [/* @__PURE__ */ f("div", {
384
+ children: [/* @__PURE__ */ p("div", {
384
385
  className: "flex items-center gap-3",
385
- children: [/* @__PURE__ */ d(o, {
386
+ children: [/* @__PURE__ */ f(s, {
386
387
  size: 20,
387
388
  className: "text-status-success-text"
388
- }), /* @__PURE__ */ f("p", {
389
+ }), /* @__PURE__ */ p("p", {
389
390
  className: "text-sm text-status-success-text",
390
391
  children: [
391
- c("notifications.sentSuccessfully", "Notification sent successfully to"),
392
+ l("notifications.sentSuccessfully", "Notification sent successfully to"),
392
393
  " ",
393
- S.length,
394
+ w.length,
394
395
  " ",
395
- c("notifications.recipientCount", "recipient"),
396
- S.length === 1 ? "" : "s",
396
+ l("notifications.recipientCount", "recipient"),
397
+ w.length === 1 ? "" : "s",
397
398
  "!"
398
399
  ]
399
400
  })]
400
- }), /* @__PURE__ */ d("button", {
401
- onClick: yt,
401
+ }), /* @__PURE__ */ f("button", {
402
+ onClick: xt,
402
403
  className: "px-3 py-1.5 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle rounded-lg transition-colors",
403
- children: c("notifications.sendAnother", "Send Another")
404
+ children: l("notifications.sendAnother", "Send Another")
404
405
  })]
405
406
  }),
406
- bt && /* @__PURE__ */ f("div", {
407
+ St && /* @__PURE__ */ p("div", {
407
408
  className: "mx-6 mt-4 flex items-center gap-3 p-4 bg-status-error-bg-subtle border border-border-subtle rounded-lg",
408
- children: [/* @__PURE__ */ d(ie, {
409
+ children: [/* @__PURE__ */ f(ae, {
409
410
  size: 20,
410
411
  className: "text-status-error-text flex-shrink-0"
411
- }), /* @__PURE__ */ d("p", {
412
+ }), /* @__PURE__ */ f("p", {
412
413
  className: "text-sm text-status-error-text",
413
- children: bt
414
+ children: St
414
415
  })]
415
416
  }),
416
- /* @__PURE__ */ f("div", {
417
+ /* @__PURE__ */ p("div", {
417
418
  className: "flex gap-6 p-6",
418
- children: [/* @__PURE__ */ f("div", {
419
+ children: [/* @__PURE__ */ p("div", {
419
420
  className: `flex-1 space-y-6 ${K ? "max-w-2xl" : ""}`,
420
421
  children: [
421
- /* @__PURE__ */ f("div", {
422
+ /* @__PURE__ */ p("div", {
422
423
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
423
- children: [/* @__PURE__ */ f("div", {
424
+ children: [/* @__PURE__ */ p("div", {
424
425
  className: "flex items-center gap-2 mb-4",
425
- children: [/* @__PURE__ */ d(le, {
426
+ children: [/* @__PURE__ */ f(ue, {
426
427
  size: 18,
427
428
  className: "text-text-secondary"
428
- }), /* @__PURE__ */ d("h2", {
429
+ }), /* @__PURE__ */ f("h2", {
429
430
  className: "text-sm font-medium text-text-primary",
430
- children: c("notifications.sendMode", "Send Mode")
431
+ children: l("notifications.sendMode", "Send Mode")
431
432
  })]
432
- }), /* @__PURE__ */ f("div", {
433
+ }), /* @__PURE__ */ p("div", {
433
434
  className: "flex gap-2",
434
- children: [/* @__PURE__ */ d("button", {
435
+ children: [/* @__PURE__ */ f("button", {
435
436
  onClick: () => ze("compose"),
436
- className: `flex-1 px-4 py-3 text-sm font-medium rounded-lg border transition-colors ${v === "compose" ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
437
- children: c("notifications.composeMessage", "Compose Message")
438
- }), /* @__PURE__ */ d("button", {
437
+ className: `flex-1 px-4 py-3 text-sm font-medium rounded-lg border transition-colors ${b === "compose" ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
438
+ children: l("notifications.composeMessage", "Compose Message")
439
+ }), /* @__PURE__ */ f("button", {
439
440
  onClick: () => ze("template"),
440
- className: `flex-1 px-4 py-3 text-sm font-medium rounded-lg border transition-colors ${v === "template" ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
441
- children: c("notifications.useTemplate", "Use Template")
441
+ className: `flex-1 px-4 py-3 text-sm font-medium rounded-lg border transition-colors ${b === "template" ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
442
+ children: l("notifications.useTemplate", "Use Template")
442
443
  })]
443
444
  })]
444
445
  }),
445
- /* @__PURE__ */ f("div", {
446
+ /* @__PURE__ */ p("div", {
446
447
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
447
448
  children: [
448
- /* @__PURE__ */ d("h2", {
449
+ /* @__PURE__ */ f("h2", {
449
450
  className: "text-sm font-medium text-text-primary mb-4",
450
- children: c("notifications.channel", "Channel")
451
+ children: l("notifications.channel", "Channel")
451
452
  }),
452
- /* @__PURE__ */ d("div", {
453
+ /* @__PURE__ */ f("div", {
453
454
  className: "grid grid-cols-2 sm:grid-cols-4 gap-2",
454
- children: be.map((e) => {
455
+ children: xe.map((e) => {
455
456
  let t = e.icon;
456
- return /* @__PURE__ */ f("button", {
457
+ return /* @__PURE__ */ p("button", {
457
458
  onClick: () => {
458
- Be(e.value), Ue([]), E([]), [
459
+ Be(e.value), Ue([]), O([]), [
459
460
  "EMAIL",
460
461
  "SMS",
461
462
  "WHATSAPP"
462
- ].includes(e.value) || (w("manual"), We(!1));
463
+ ].includes(e.value) || (E("manual"), We(!1));
463
464
  },
464
- className: `flex flex-col items-center gap-2 p-3 rounded-lg border transition-colors ${y === e.value ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
465
- children: [/* @__PURE__ */ d(t, { size: 20 }), /* @__PURE__ */ d("span", {
465
+ className: `flex flex-col items-center gap-2 p-3 rounded-lg border transition-colors ${x === e.value ? "bg-primary-50 dark:bg-primary-900/30 border-primary-500 text-primary-700 dark:text-primary-300" : "bg-bg-canvas border-border-subtle text-text-secondary hover:bg-bg-sunken"}`,
466
+ children: [/* @__PURE__ */ f(t, { size: 20 }), /* @__PURE__ */ f("span", {
466
467
  className: "text-xs font-medium",
467
- children: c(`notifications.channel.${e.value}`, e.label)
468
+ children: l(`notifications.channel.${e.value}`, e.label)
468
469
  })]
469
470
  }, e.value);
470
471
  })
471
472
  }),
472
- /* @__PURE__ */ f("div", {
473
+ /* @__PURE__ */ p("div", {
473
474
  className: "mt-4 pt-4 border-t border-border-subtle",
474
- children: [/* @__PURE__ */ f("label", {
475
+ children: [/* @__PURE__ */ p("label", {
475
476
  className: "flex items-center gap-3 cursor-pointer",
476
- children: [/* @__PURE__ */ d("input", {
477
+ children: [/* @__PURE__ */ f("input", {
477
478
  type: "checkbox",
478
479
  checked: L,
479
480
  onChange: (e) => {
480
- et(e.target.checked), e.target.checked || (z([]), V(""));
481
+ nt(e.target.checked), e.target.checked || (z([]), V(""));
481
482
  },
482
483
  className: "w-4 h-4 rounded border-border-default text-primary-600 focus:ring-primary-500"
483
- }), /* @__PURE__ */ f("div", {
484
+ }), /* @__PURE__ */ p("div", {
484
485
  className: "flex items-center gap-2",
485
- children: [/* @__PURE__ */ d(oe, {
486
+ children: [/* @__PURE__ */ f(se, {
486
487
  size: 16,
487
488
  className: "text-primary-500"
488
- }), /* @__PURE__ */ d("span", {
489
+ }), /* @__PURE__ */ f("span", {
489
490
  className: "text-sm font-medium text-text-primary",
490
- children: c("notifications.alsoSendInApp", "Also send as In-App notification")
491
+ children: l("notifications.alsoSendInApp", "Also send as In-App notification")
491
492
  })]
492
493
  })]
493
- }), /* @__PURE__ */ d("p", {
494
+ }), /* @__PURE__ */ f("p", {
494
495
  className: "text-xs text-text-secondary ml-7 mt-1",
495
- children: c("notifications.inAppDescription", "Show this notification in the app's notification center alongside the selected channel")
496
+ children: l("notifications.inAppDescription", "Show this notification in the app's notification center alongside the selected channel")
496
497
  })]
497
498
  })
498
499
  ]
499
500
  }),
500
- /* @__PURE__ */ f("div", {
501
+ /* @__PURE__ */ p("div", {
501
502
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
502
- children: [/* @__PURE__ */ f("label", {
503
+ children: [/* @__PURE__ */ p("label", {
503
504
  className: "flex items-center gap-3 cursor-pointer",
504
- children: [/* @__PURE__ */ d("input", {
505
+ children: [/* @__PURE__ */ f("input", {
505
506
  type: "checkbox",
506
507
  checked: W,
507
508
  onChange: (e) => {
508
- rt(e.target.checked), e.target.checked || it("");
509
+ at(e.target.checked), e.target.checked || ot("");
509
510
  },
510
511
  className: "w-4 h-4 rounded border-border-default text-primary-600 focus:ring-primary-500"
511
- }), /* @__PURE__ */ d("span", {
512
+ }), /* @__PURE__ */ f("span", {
512
513
  className: "text-sm font-medium text-text-primary",
513
- children: c("notifications.scheduleForLater", "Schedule for later")
514
+ children: l("notifications.scheduleForLater", "Schedule for later")
514
515
  })]
515
- }), W && /* @__PURE__ */ f("div", {
516
+ }), W && /* @__PURE__ */ p("div", {
516
517
  className: "mt-3 ml-7",
517
- children: [/* @__PURE__ */ d("input", {
518
+ children: [/* @__PURE__ */ f("input", {
518
519
  type: "datetime-local",
519
520
  value: G,
520
521
  min: (/* @__PURE__ */ new Date()).toISOString().slice(0, 16),
521
- onChange: (e) => it(e.target.value),
522
+ onChange: (e) => ot(e.target.value),
522
523
  className: "px-4 py-2 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
523
- }), /* @__PURE__ */ f("p", {
524
+ }), /* @__PURE__ */ p("p", {
524
525
  className: "text-xs text-text-tertiary mt-1",
525
526
  children: [
526
- c("notifications.timezone", "Timezone"),
527
+ l("notifications.timezone", "Timezone"),
527
528
  ":",
528
529
  " ",
529
530
  Intl.DateTimeFormat().resolvedOptions().timeZone
@@ -531,24 +532,24 @@ function Te() {
531
532
  })]
532
533
  })]
533
534
  }),
534
- /* @__PURE__ */ f("div", {
535
+ /* @__PURE__ */ p("div", {
535
536
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
536
537
  children: [
537
- /* @__PURE__ */ f("label", {
538
+ /* @__PURE__ */ p("label", {
538
539
  className: "block text-sm font-medium text-text-primary mb-2",
539
- children: [c("notifications.topic", "Topic"), b === "MARKETING" && /* @__PURE__ */ d("span", {
540
+ children: [l("notifications.topic", "Topic"), S === "MARKETING" && /* @__PURE__ */ f("span", {
540
541
  className: "text-status-error-text ml-1",
541
542
  children: "*"
542
543
  })]
543
544
  }),
544
- /* @__PURE__ */ f("select", {
545
- value: M,
545
+ /* @__PURE__ */ p("select", {
546
+ value: P,
546
547
  onChange: (e) => $e(e.target.value),
547
548
  className: "w-full rounded-lg border border-border-subtle bg-bg-canvas px-4 py-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-500",
548
- children: [/* @__PURE__ */ d("option", {
549
+ children: [/* @__PURE__ */ f("option", {
549
550
  value: "",
550
- children: c("notifications.selectTopic", "Select a topic")
551
- }), Re.map((e) => /* @__PURE__ */ f("option", {
551
+ children: l("notifications.selectTopic", "Select a topic")
552
+ }), Re.map((e) => /* @__PURE__ */ p("option", {
552
553
  value: e.id,
553
554
  children: [
554
555
  e.name,
@@ -558,189 +559,189 @@ function Te() {
558
559
  ]
559
560
  }, e.id))]
560
561
  }),
561
- /* @__PURE__ */ d("p", {
562
+ /* @__PURE__ */ f("p", {
562
563
  className: "mt-2 text-xs text-text-secondary",
563
- children: c("notifications.topicHelper", "Topics help users unsubscribe from promotional content they do not want.")
564
+ children: l("notifications.topicHelper", "Topics help users unsubscribe from promotional content they do not want.")
564
565
  })
565
566
  ]
566
567
  }),
567
- /* @__PURE__ */ f("div", {
568
+ /* @__PURE__ */ p("div", {
568
569
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
569
570
  children: [
570
- /* @__PURE__ */ f("div", {
571
+ /* @__PURE__ */ p("div", {
571
572
  className: "flex items-center gap-2 mb-4",
572
- children: [/* @__PURE__ */ d(me, {
573
+ children: [/* @__PURE__ */ f(he, {
573
574
  size: 18,
574
575
  className: "text-text-secondary"
575
- }), /* @__PURE__ */ f("h2", {
576
+ }), /* @__PURE__ */ p("h2", {
576
577
  className: "text-sm font-medium text-text-primary",
577
578
  children: [
578
- c("notifications.recipients", "Recipients"),
579
+ l("notifications.recipients", "Recipients"),
579
580
  " ",
580
- /* @__PURE__ */ d("span", {
581
+ /* @__PURE__ */ f("span", {
581
582
  className: "text-status-error-text",
582
583
  children: "*"
583
584
  })
584
585
  ]
585
586
  })]
586
587
  }),
587
- dt && /* @__PURE__ */ f("div", {
588
+ pt && /* @__PURE__ */ p("div", {
588
589
  className: "mb-4 flex gap-2",
589
- children: [/* @__PURE__ */ d("button", {
590
- onClick: () => w("manual"),
591
- className: `flex-1 rounded-lg border px-4 py-2 text-sm font-medium ${C === "manual" ? "border-primary-500 bg-primary-50 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300" : "border-border-subtle bg-bg-canvas text-text-secondary hover:bg-bg-sunken"}`,
592
- children: c("notifications.manualRecipients", "Manual recipients")
593
- }), /* @__PURE__ */ d("button", {
594
- onClick: () => w("directory"),
595
- className: `flex-1 rounded-lg border px-4 py-2 text-sm font-medium ${C === "directory" ? "border-primary-500 bg-primary-50 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300" : "border-border-subtle bg-bg-canvas text-text-secondary hover:bg-bg-sunken"}`,
596
- children: c("notifications.userDirectory", "User directory")
590
+ children: [/* @__PURE__ */ f("button", {
591
+ onClick: () => E("manual"),
592
+ className: `flex-1 rounded-lg border px-4 py-2 text-sm font-medium ${T === "manual" ? "border-primary-500 bg-primary-50 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300" : "border-border-subtle bg-bg-canvas text-text-secondary hover:bg-bg-sunken"}`,
593
+ children: l("notifications.manualRecipients", "Manual recipients")
594
+ }), /* @__PURE__ */ f("button", {
595
+ onClick: () => E("directory"),
596
+ className: `flex-1 rounded-lg border px-4 py-2 text-sm font-medium ${T === "directory" ? "border-primary-500 bg-primary-50 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300" : "border-border-subtle bg-bg-canvas text-text-secondary hover:bg-bg-sunken"}`,
597
+ children: l("notifications.userDirectory", "User directory")
597
598
  })]
598
599
  }),
599
- C === "manual" || !dt ? /* @__PURE__ */ d(re, {
600
- recipients: S,
600
+ T === "manual" || !pt ? /* @__PURE__ */ f(ie, {
601
+ recipients: w,
601
602
  onChange: Ue,
602
- channel: y,
603
- disabled: p || J
604
- }) : /* @__PURE__ */ f("div", {
603
+ channel: x,
604
+ disabled: m || J
605
+ }) : /* @__PURE__ */ p("div", {
605
606
  className: "space-y-4",
606
607
  children: [
607
- /* @__PURE__ */ f("div", {
608
+ /* @__PURE__ */ p("div", {
608
609
  className: "grid gap-3 md:grid-cols-[minmax(0,1fr),180px,180px]",
609
610
  children: [
610
- /* @__PURE__ */ f("div", {
611
+ /* @__PURE__ */ p("div", {
611
612
  className: "relative",
612
- children: [/* @__PURE__ */ d("input", {
613
+ children: [/* @__PURE__ */ f("input", {
613
614
  type: "text",
614
615
  value: B,
615
616
  onChange: (e) => {
616
- V(e.target.value), h(e.target.value, {
617
- role: O || void 0,
618
- status: k || void 0
617
+ V(e.target.value), _(e.target.value, {
618
+ role: A || void 0,
619
+ status: j || void 0
619
620
  });
620
621
  },
621
- placeholder: c("notifications.searchUsersPlaceholder", "Search users by email or name..."),
622
+ placeholder: l("notifications.searchUsersPlaceholder", "Search users by email or name..."),
622
623
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
623
- }), Le && /* @__PURE__ */ d("div", {
624
+ }), Le && /* @__PURE__ */ f("div", {
624
625
  className: "absolute right-3 top-1/2 -translate-y-1/2",
625
- children: /* @__PURE__ */ d(s, {
626
+ children: /* @__PURE__ */ f(c, {
626
627
  size: 16,
627
628
  className: "animate-spin text-text-tertiary"
628
629
  })
629
630
  })]
630
631
  }),
631
- /* @__PURE__ */ d("select", {
632
- value: O,
632
+ /* @__PURE__ */ f("select", {
633
+ value: A,
633
634
  onChange: (e) => {
634
- Ge(e.target.value), h(B, {
635
+ Ge(e.target.value), _(B, {
635
636
  role: e.target.value || void 0,
636
- status: k || void 0
637
+ status: j || void 0
637
638
  });
638
639
  },
639
640
  className: "rounded-lg border border-border-subtle bg-bg-canvas px-4 py-3 text-sm text-text-primary",
640
- children: Ce.map((e) => /* @__PURE__ */ d("option", {
641
+ children: we.map((e) => /* @__PURE__ */ f("option", {
641
642
  value: e.value,
642
643
  children: e.label
643
644
  }, e.value))
644
645
  }),
645
- /* @__PURE__ */ d("select", {
646
- value: k,
646
+ /* @__PURE__ */ f("select", {
647
+ value: j,
647
648
  onChange: (e) => {
648
- Ke(e.target.value), h(B, {
649
- role: O || void 0,
649
+ Ke(e.target.value), _(B, {
650
+ role: A || void 0,
650
651
  status: e.target.value || void 0
651
652
  });
652
653
  },
653
654
  className: "rounded-lg border border-border-subtle bg-bg-canvas px-4 py-3 text-sm text-text-primary",
654
- children: we.map((e) => /* @__PURE__ */ d("option", {
655
+ children: Te.map((e) => /* @__PURE__ */ f("option", {
655
656
  value: e.value,
656
657
  children: e.label
657
658
  }, e.value))
658
659
  })
659
660
  ]
660
661
  }),
661
- /* @__PURE__ */ f("label", {
662
+ /* @__PURE__ */ p("label", {
662
663
  className: "flex items-center gap-3 text-sm text-text-secondary",
663
- children: [/* @__PURE__ */ d("input", {
664
+ children: [/* @__PURE__ */ f("input", {
664
665
  type: "checkbox",
665
- checked: D,
666
+ checked: k,
666
667
  onChange: (e) => We(e.target.checked),
667
668
  className: "h-4 w-4 rounded border-border-default text-primary-600 focus:ring-primary-500"
668
- }), /* @__PURE__ */ d("span", { children: c("notifications.sendToAllMatchingUsers", "Send to all users matching the current search and filters") })]
669
+ }), /* @__PURE__ */ f("span", { children: l("notifications.sendToAllMatchingUsers", "Send to all users matching the current search and filters") })]
669
670
  }),
670
- B && /* @__PURE__ */ d("div", {
671
+ B && /* @__PURE__ */ f("div", {
671
672
  className: "max-h-56 overflow-y-auto rounded-lg border border-border-subtle",
672
- children: g.length > 0 ? g.map((e) => {
673
- let t = T.some((t) => t.id === e.id), n = y === "EMAIL" ? !!e.email : y === "SMS" || y === "WHATSAPP" ? !!e.phoneNumber : !0;
674
- return /* @__PURE__ */ f("button", {
673
+ children: v.length > 0 ? v.map((e) => {
674
+ let t = D.some((t) => t.id === e.id), n = x === "EMAIL" ? !!e.email : x === "SMS" || x === "WHATSAPP" ? !!e.phoneNumber : !0;
675
+ return /* @__PURE__ */ p("button", {
675
676
  type: "button",
676
677
  disabled: !n,
677
678
  onClick: () => {
678
- E(t ? (t) => t.filter((t) => t.id !== e.id) : (t) => [...t, e]);
679
+ O(t ? (t) => t.filter((t) => t.id !== e.id) : (t) => [...t, e]);
679
680
  },
680
681
  className: `flex w-full items-center gap-3 p-3 text-left transition-colors ${t ? "bg-primary-50 dark:bg-primary-900/30" : "hover:bg-bg-canvas"} ${n ? "" : "cursor-not-allowed opacity-50"}`,
681
682
  children: [
682
- /* @__PURE__ */ d(u, {
683
+ /* @__PURE__ */ f(d, {
683
684
  size: 16,
684
685
  className: t ? "text-primary-500" : "text-text-tertiary"
685
686
  }),
686
- /* @__PURE__ */ f("div", {
687
+ /* @__PURE__ */ p("div", {
687
688
  className: "flex-1",
688
689
  children: [
689
- /* @__PURE__ */ d("div", {
690
+ /* @__PURE__ */ f("div", {
690
691
  className: "text-sm font-medium text-text-primary",
691
692
  children: e.name
692
693
  }),
693
- /* @__PURE__ */ d("div", {
694
+ /* @__PURE__ */ f("div", {
694
695
  className: "text-xs text-text-secondary",
695
696
  children: e.email
696
697
  }),
697
- e.phoneNumber && /* @__PURE__ */ d("div", {
698
+ e.phoneNumber && /* @__PURE__ */ f("div", {
698
699
  className: "text-xs text-text-tertiary",
699
700
  children: e.phoneNumber
700
701
  })
701
702
  ]
702
703
  }),
703
- !n && /* @__PURE__ */ d("span", {
704
+ !n && /* @__PURE__ */ f("span", {
704
705
  className: "text-xs text-status-error-text",
705
- children: c("notifications.missingChannelTarget", "Missing channel target")
706
+ children: l("notifications.missingChannelTarget", "Missing channel target")
706
707
  }),
707
- t && /* @__PURE__ */ d(o, {
708
+ t && /* @__PURE__ */ f(s, {
708
709
  size: 16,
709
710
  className: "text-primary-500"
710
711
  })
711
712
  ]
712
713
  }, e.id);
713
- }) : /* @__PURE__ */ d("div", {
714
+ }) : /* @__PURE__ */ f("div", {
714
715
  className: "p-4 text-center text-sm text-text-secondary",
715
- children: _ ? `${c("notifications.error", "Error")}: ${_}` : c("notifications.noUsersFound", "No users found")
716
+ children: y ? `${l("notifications.error", "Error")}: ${y}` : l("notifications.noUsersFound", "No users found")
716
717
  })
717
718
  }),
718
- T.length > 0 && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("h3", {
719
+ D.length > 0 && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("h3", {
719
720
  className: "mb-2 text-sm font-medium text-text-secondary",
720
721
  children: [
721
- c("notifications.selectedUsers", "Selected Users"),
722
+ l("notifications.selectedUsers", "Selected Users"),
722
723
  " (",
723
- T.length,
724
+ D.length,
724
725
  ")"
725
726
  ]
726
- }), /* @__PURE__ */ d("div", {
727
+ }), /* @__PURE__ */ f("div", {
727
728
  className: "flex flex-wrap gap-2",
728
- children: T.map((e) => /* @__PURE__ */ f("div", {
729
+ children: D.map((e) => /* @__PURE__ */ p("div", {
729
730
  className: "flex items-center gap-2 rounded-full border border-primary-200 bg-primary-50 px-3 py-1.5 text-sm dark:border-primary-800 dark:bg-primary-900/30",
730
731
  children: [
731
- /* @__PURE__ */ d(u, {
732
+ /* @__PURE__ */ f(d, {
732
733
  size: 12,
733
734
  className: "text-primary-500"
734
735
  }),
735
- /* @__PURE__ */ d("span", {
736
+ /* @__PURE__ */ f("span", {
736
737
  className: "text-primary-700 dark:text-primary-300",
737
738
  children: e.name
738
739
  }),
739
- /* @__PURE__ */ d("button", {
740
+ /* @__PURE__ */ f("button", {
740
741
  type: "button",
741
- onClick: () => E((t) => t.filter((t) => t.id !== e.id)),
742
+ onClick: () => O((t) => t.filter((t) => t.id !== e.id)),
742
743
  className: "rounded-full p-0.5 hover:bg-primary-100 dark:hover:bg-primary-800",
743
- children: /* @__PURE__ */ d(he, {
744
+ children: /* @__PURE__ */ f(ge, {
744
745
  size: 12,
745
746
  className: "text-primary-500"
746
747
  })
@@ -752,112 +753,112 @@ function Te() {
752
753
  })
753
754
  ]
754
755
  }),
755
- L && /* @__PURE__ */ f("div", {
756
+ L && /* @__PURE__ */ p("div", {
756
757
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
757
758
  children: [
758
- /* @__PURE__ */ f("div", {
759
+ /* @__PURE__ */ p("div", {
759
760
  className: "flex items-center gap-2 mb-4",
760
- children: [/* @__PURE__ */ d(oe, {
761
+ children: [/* @__PURE__ */ f(se, {
761
762
  size: 18,
762
763
  className: "text-primary-500"
763
- }), /* @__PURE__ */ f("h2", {
764
+ }), /* @__PURE__ */ p("h2", {
764
765
  className: "text-sm font-medium text-text-primary",
765
766
  children: [
766
- c("notifications.inAppUsers", "In-App Notification Users"),
767
+ l("notifications.inAppUsers", "In-App Notification Users"),
767
768
  " ",
768
- /* @__PURE__ */ d("span", {
769
+ /* @__PURE__ */ f("span", {
769
770
  className: "text-status-error-text",
770
771
  children: "*"
771
772
  })
772
773
  ]
773
774
  })]
774
775
  }),
775
- /* @__PURE__ */ f("div", {
776
+ /* @__PURE__ */ p("div", {
776
777
  className: "relative mb-4",
777
- children: [/* @__PURE__ */ d("input", {
778
+ children: [/* @__PURE__ */ f("input", {
778
779
  type: "text",
779
780
  value: B,
780
781
  onChange: (e) => {
781
- V(e.target.value), h(e.target.value, {
782
- role: O || void 0,
783
- status: k || void 0
782
+ V(e.target.value), _(e.target.value, {
783
+ role: A || void 0,
784
+ status: j || void 0
784
785
  });
785
786
  },
786
- placeholder: c("notifications.searchUsersPlaceholder", "Search users by email or name..."),
787
+ placeholder: l("notifications.searchUsersPlaceholder", "Search users by email or name..."),
787
788
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
788
- }), Le && /* @__PURE__ */ d("div", {
789
+ }), Le && /* @__PURE__ */ f("div", {
789
790
  className: "absolute right-3 top-1/2 transform -translate-y-1/2",
790
- children: /* @__PURE__ */ d(s, {
791
+ children: /* @__PURE__ */ f(c, {
791
792
  size: 16,
792
793
  className: "animate-spin text-text-tertiary"
793
794
  })
794
795
  })]
795
796
  }),
796
- B && /* @__PURE__ */ d("div", {
797
+ B && /* @__PURE__ */ f("div", {
797
798
  className: "mb-4",
798
- children: g.length > 0 ? /* @__PURE__ */ d("div", {
799
+ children: v.length > 0 ? /* @__PURE__ */ f("div", {
799
800
  className: "max-h-48 overflow-y-auto border border-border-subtle rounded-lg",
800
- children: g.map((e) => {
801
+ children: v.map((e) => {
801
802
  let t = R.some((t) => t.id === e.id);
802
- return /* @__PURE__ */ f("button", {
803
+ return /* @__PURE__ */ p("button", {
803
804
  type: "button",
804
805
  onClick: () => {
805
806
  z(t ? (t) => t.filter((t) => t.id !== e.id) : (t) => [...t, e]);
806
807
  },
807
808
  className: `w-full flex items-center gap-3 p-3 text-left hover:bg-bg-canvas transition-colors ${t ? "bg-primary-50 dark:bg-primary-900/30" : ""}`,
808
809
  children: [
809
- /* @__PURE__ */ d(u, {
810
+ /* @__PURE__ */ f(d, {
810
811
  size: 16,
811
812
  className: t ? "text-primary-500" : "text-text-tertiary"
812
813
  }),
813
- /* @__PURE__ */ f("div", {
814
+ /* @__PURE__ */ p("div", {
814
815
  className: "flex-1",
815
- children: [/* @__PURE__ */ d("div", {
816
+ children: [/* @__PURE__ */ f("div", {
816
817
  className: "text-sm font-medium text-text-primary",
817
818
  children: e.name
818
- }), /* @__PURE__ */ d("div", {
819
+ }), /* @__PURE__ */ f("div", {
819
820
  className: "text-xs text-text-secondary",
820
821
  children: e.email
821
822
  })]
822
823
  }),
823
- t && /* @__PURE__ */ d(o, {
824
+ t && /* @__PURE__ */ f(s, {
824
825
  size: 16,
825
826
  className: "text-primary-500"
826
827
  })
827
828
  ]
828
829
  }, e.id);
829
830
  })
830
- }) : /* @__PURE__ */ d("div", {
831
+ }) : /* @__PURE__ */ f("div", {
831
832
  className: "text-center py-4 text-sm text-text-secondary",
832
- children: _ ? `${c("notifications.error", "Error")}: ${_}` : c("notifications.noUsersFound", "No users found")
833
+ children: y ? `${l("notifications.error", "Error")}: ${y}` : l("notifications.noUsersFound", "No users found")
833
834
  })
834
835
  }),
835
- R.length > 0 && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("h3", {
836
+ R.length > 0 && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("h3", {
836
837
  className: "text-sm font-medium text-text-secondary mb-2",
837
838
  children: [
838
- c("notifications.selectedUsers", "Selected Users"),
839
+ l("notifications.selectedUsers", "Selected Users"),
839
840
  " (",
840
841
  R.length,
841
842
  ")"
842
843
  ]
843
- }), /* @__PURE__ */ d("div", {
844
+ }), /* @__PURE__ */ f("div", {
844
845
  className: "flex flex-wrap gap-2",
845
- children: R.map((e) => /* @__PURE__ */ f("div", {
846
+ children: R.map((e) => /* @__PURE__ */ p("div", {
846
847
  className: "flex items-center gap-2 px-3 py-1.5 bg-primary-50 dark:bg-primary-900/30 border border-primary-200 dark:border-primary-800 rounded-full text-sm",
847
848
  children: [
848
- /* @__PURE__ */ d(u, {
849
+ /* @__PURE__ */ f(d, {
849
850
  size: 12,
850
851
  className: "text-primary-500"
851
852
  }),
852
- /* @__PURE__ */ d("span", {
853
+ /* @__PURE__ */ f("span", {
853
854
  className: "text-primary-700 dark:text-primary-300",
854
855
  children: e.name
855
856
  }),
856
- /* @__PURE__ */ d("button", {
857
+ /* @__PURE__ */ f("button", {
857
858
  type: "button",
858
859
  onClick: () => z((t) => t.filter((t) => t.id !== e.id)),
859
860
  className: "p-0.5 hover:bg-primary-100 dark:hover:bg-primary-800 rounded-full transition-colors",
860
- children: /* @__PURE__ */ d(he, {
861
+ children: /* @__PURE__ */ f(ge, {
861
862
  size: 12,
862
863
  className: "text-primary-500"
863
864
  })
@@ -867,77 +868,77 @@ function Te() {
867
868
  })] })
868
869
  ]
869
870
  }),
870
- v === "template" && /* @__PURE__ */ f("div", {
871
+ b === "template" && /* @__PURE__ */ p("div", {
871
872
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
872
873
  children: [
873
- /* @__PURE__ */ f("h2", {
874
+ /* @__PURE__ */ p("h2", {
874
875
  className: "text-sm font-medium text-text-primary mb-4",
875
876
  children: [
876
- c("notifications.selectTemplate", "Select Template"),
877
+ l("notifications.selectTemplate", "Select Template"),
877
878
  " ",
878
- /* @__PURE__ */ d("span", {
879
+ /* @__PURE__ */ f("span", {
879
880
  className: "text-status-error-text",
880
881
  children: "*"
881
882
  })
882
883
  ]
883
884
  }),
884
- Fe ? /* @__PURE__ */ d("div", {
885
+ Fe ? /* @__PURE__ */ f("div", {
885
886
  className: "flex items-center justify-center py-8",
886
- children: /* @__PURE__ */ d(s, {
887
+ children: /* @__PURE__ */ f(c, {
887
888
  size: 24,
888
889
  className: "animate-spin text-text-tertiary"
889
890
  })
890
- }) : m.length === 0 ? /* @__PURE__ */ f("div", {
891
+ }) : g.length === 0 ? /* @__PURE__ */ p("div", {
891
892
  className: "text-center py-8",
892
893
  children: [
893
- /* @__PURE__ */ d(le, {
894
+ /* @__PURE__ */ f(ue, {
894
895
  size: 32,
895
896
  className: "mx-auto text-text-tertiary mb-2"
896
897
  }),
897
- /* @__PURE__ */ d("p", {
898
+ /* @__PURE__ */ f("p", {
898
899
  className: "text-sm text-text-secondary",
899
- children: c("notifications.noTemplatesAvailable", "No templates available")
900
+ children: l("notifications.noTemplatesAvailable", "No templates available")
900
901
  }),
901
- /* @__PURE__ */ d("button", {
902
- onClick: () => fe("/notifications/templates/new"),
902
+ /* @__PURE__ */ f("button", {
903
+ onClick: () => pe("/notifications/templates/new"),
903
904
  className: "mt-2 text-sm text-primary-600 hover:text-primary-700",
904
- children: c("notifications.createATemplate", "Create a template")
905
+ children: l("notifications.createATemplate", "Create a template")
905
906
  })
906
907
  ]
907
- }) : /* @__PURE__ */ f("select", {
908
+ }) : /* @__PURE__ */ p("select", {
908
909
  value: H,
909
910
  onChange: (e) => {
910
- tt(e.target.value), nt({});
911
+ rt(e.target.value), it({});
911
912
  },
912
913
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500",
913
- children: [/* @__PURE__ */ d("option", {
914
+ children: [/* @__PURE__ */ f("option", {
914
915
  value: "",
915
- children: c("notifications.selectATemplate", "Select a template...")
916
- }), m.filter((e) => e.enabled).map((e) => /* @__PURE__ */ f("option", {
916
+ children: l("notifications.selectATemplate", "Select a template...")
917
+ }), g.filter((e) => e.enabled).map((e) => /* @__PURE__ */ p("option", {
917
918
  value: e.slug,
918
919
  children: [
919
920
  e.name,
920
921
  " (",
921
- c(`notifications.type.${e.type}`, e.type),
922
+ l(`notifications.type.${e.type}`, e.type),
922
923
  ")"
923
924
  ]
924
925
  }, e.id))]
925
926
  }),
926
- X && st.length > 0 && /* @__PURE__ */ f("div", {
927
+ X && lt.length > 0 && /* @__PURE__ */ p("div", {
927
928
  className: "mt-4 space-y-3",
928
- children: [/* @__PURE__ */ d("h3", {
929
+ children: [/* @__PURE__ */ f("h3", {
929
930
  className: "text-sm font-medium text-text-secondary",
930
- children: c("notifications.templateVariables", "Template Variables")
931
- }), st.map((e) => /* @__PURE__ */ f("div", { children: [
932
- /* @__PURE__ */ f("label", {
931
+ children: l("notifications.templateVariables", "Template Variables")
932
+ }), lt.map((e) => /* @__PURE__ */ p("div", { children: [
933
+ /* @__PURE__ */ p("label", {
933
934
  className: "block text-xs text-text-secondary mb-1",
934
935
  children: [
935
936
  e.key,
936
- e.required && /* @__PURE__ */ d("span", {
937
+ e.required && /* @__PURE__ */ f("span", {
937
938
  className: "text-status-error-text ml-0.5",
938
939
  children: "*"
939
940
  }),
940
- /* @__PURE__ */ f("span", {
941
+ /* @__PURE__ */ p("span", {
941
942
  className: "text-text-tertiary ml-1",
942
943
  children: [
943
944
  "(",
@@ -947,159 +948,159 @@ function Te() {
947
948
  })
948
949
  ]
949
950
  }),
950
- e.description && /* @__PURE__ */ d("p", {
951
+ e.description && /* @__PURE__ */ f("p", {
951
952
  className: "text-xs text-text-tertiary mb-1",
952
953
  children: e.description
953
954
  }),
954
- /* @__PURE__ */ d("input", {
955
+ /* @__PURE__ */ f("input", {
955
956
  type: "text",
956
957
  value: U[e.key] || "",
957
- onChange: (t) => nt((n) => ({
958
+ onChange: (t) => it((n) => ({
958
959
  ...n,
959
960
  [e.key]: t.target.value
960
961
  })),
961
- placeholder: e.defaultValue || `${c("notifications.enterVariablePrefix", "Enter")} ${e.key}...`,
962
+ placeholder: e.defaultValue || `${l("notifications.enterVariablePrefix", "Enter")} ${e.key}...`,
962
963
  className: "w-full px-3 py-2 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
963
964
  })
964
965
  ] }, e.key))]
965
966
  })
966
967
  ]
967
968
  }),
968
- v === "compose" && /* @__PURE__ */ f(ye, { children: [
969
- /* @__PURE__ */ d("div", {
969
+ b === "compose" && /* @__PURE__ */ p(be, { children: [
970
+ /* @__PURE__ */ f("div", {
970
971
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
971
- children: /* @__PURE__ */ f("div", {
972
+ children: /* @__PURE__ */ p("div", {
972
973
  className: "grid grid-cols-2 gap-4",
973
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
974
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
974
975
  className: "block text-sm font-medium text-text-primary mb-2",
975
- children: c("notifications.typeLabel", "Type")
976
- }), /* @__PURE__ */ d("select", {
977
- value: b,
976
+ children: l("notifications.typeLabel", "Type")
977
+ }), /* @__PURE__ */ f("select", {
978
+ value: S,
978
979
  onChange: (e) => Ve(e.target.value),
979
980
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500",
980
- children: xe.map((e) => /* @__PURE__ */ d("option", {
981
+ children: Se.map((e) => /* @__PURE__ */ f("option", {
981
982
  value: e.value,
982
- children: c(`notifications.type.${e.value}`, e.label)
983
+ children: l(`notifications.type.${e.value}`, e.label)
983
984
  }, e.value))
984
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
985
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
985
986
  className: "block text-sm font-medium text-text-primary mb-2",
986
- children: c("notifications.priorityLabel", "Priority")
987
- }), /* @__PURE__ */ d("select", {
988
- value: x,
987
+ children: l("notifications.priorityLabel", "Priority")
988
+ }), /* @__PURE__ */ f("select", {
989
+ value: C,
989
990
  onChange: (e) => He(e.target.value),
990
991
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500",
991
- children: Se.map((e) => /* @__PURE__ */ d("option", {
992
+ children: Ce.map((e) => /* @__PURE__ */ f("option", {
992
993
  value: e.value,
993
- children: c(`notifications.priority.${e.value}`, e.label)
994
+ children: l(`notifications.priority.${e.value}`, e.label)
994
995
  }, e.value))
995
996
  })] })]
996
997
  })
997
998
  }),
998
- y === "EMAIL" && /* @__PURE__ */ f("div", {
999
+ x === "EMAIL" && /* @__PURE__ */ p("div", {
999
1000
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
1000
- children: [/* @__PURE__ */ f("label", {
1001
+ children: [/* @__PURE__ */ p("label", {
1001
1002
  className: "block text-sm font-medium text-text-primary mb-2",
1002
1003
  children: [
1003
- c("notifications.subjectLabel", "Subject"),
1004
+ l("notifications.subjectLabel", "Subject"),
1004
1005
  " ",
1005
- /* @__PURE__ */ d("span", {
1006
+ /* @__PURE__ */ f("span", {
1006
1007
  className: "text-status-error-text",
1007
1008
  children: "*"
1008
1009
  })
1009
1010
  ]
1010
- }), /* @__PURE__ */ d("input", {
1011
+ }), /* @__PURE__ */ f("input", {
1011
1012
  type: "text",
1012
- value: A,
1013
+ value: M,
1013
1014
  onChange: (e) => qe(e.target.value),
1014
- placeholder: c("notifications.enterSubjectPlaceholder", "Enter email subject..."),
1015
+ placeholder: l("notifications.enterSubjectPlaceholder", "Enter email subject..."),
1015
1016
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
1016
1017
  })]
1017
1018
  }),
1018
- /* @__PURE__ */ f("div", {
1019
+ /* @__PURE__ */ p("div", {
1019
1020
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
1020
1021
  children: [
1021
- /* @__PURE__ */ f("div", {
1022
+ /* @__PURE__ */ p("div", {
1022
1023
  className: "flex items-center justify-between mb-2",
1023
- children: [/* @__PURE__ */ f("label", {
1024
+ children: [/* @__PURE__ */ p("label", {
1024
1025
  className: "block text-sm font-medium text-text-primary",
1025
1026
  children: [
1026
- c("notifications.messageLabel", "Message"),
1027
+ l("notifications.messageLabel", "Message"),
1027
1028
  " ",
1028
- /* @__PURE__ */ d("span", {
1029
+ /* @__PURE__ */ f("span", {
1029
1030
  className: "text-status-error-text",
1030
1031
  children: "*"
1031
1032
  })
1032
1033
  ]
1033
- }), y === "EMAIL" && /* @__PURE__ */ f("label", {
1034
+ }), x === "EMAIL" && /* @__PURE__ */ p("label", {
1034
1035
  className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
1035
- children: [/* @__PURE__ */ d("input", {
1036
+ children: [/* @__PURE__ */ f("input", {
1036
1037
  type: "checkbox",
1037
1038
  checked: Ze,
1038
1039
  onChange: (e) => Qe(e.target.checked),
1039
1040
  className: "w-4 h-4 rounded border-border-default text-primary-600 focus:ring-primary-500"
1040
- }), c("notifications.includeHtmlVersion", "Include HTML version")]
1041
+ }), l("notifications.includeHtmlVersion", "Include HTML version")]
1041
1042
  })]
1042
1043
  }),
1043
- /* @__PURE__ */ d("textarea", {
1044
+ /* @__PURE__ */ f("textarea", {
1044
1045
  rows: 6,
1045
- value: j,
1046
+ value: N,
1046
1047
  onChange: (e) => Je(e.target.value),
1047
- placeholder: c("notifications.enterMessagePlaceholder", "Enter your message..."),
1048
+ placeholder: l("notifications.enterMessagePlaceholder", "Enter your message..."),
1048
1049
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 resize-none"
1049
1050
  }),
1050
- y === "EMAIL" && Ze && /* @__PURE__ */ f("div", {
1051
+ x === "EMAIL" && Ze && /* @__PURE__ */ p("div", {
1051
1052
  className: "mt-4",
1052
- children: [/* @__PURE__ */ d("label", {
1053
+ children: [/* @__PURE__ */ f("label", {
1053
1054
  className: "block text-sm font-medium text-text-secondary mb-2",
1054
- children: c("notifications.htmlContent", "HTML Content")
1055
- }), /* @__PURE__ */ d("textarea", {
1055
+ children: l("notifications.htmlContent", "HTML Content")
1056
+ }), /* @__PURE__ */ f("textarea", {
1056
1057
  rows: 8,
1057
1058
  value: Ye,
1058
1059
  onChange: (e) => Xe(e.target.value),
1059
- placeholder: c("notifications.htmlPlaceholder", "<html>...</html>"),
1060
+ placeholder: l("notifications.htmlPlaceholder", "<html>...</html>"),
1060
1061
  className: "w-full px-4 py-3 text-sm bg-bg-canvas border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 resize-none font-mono"
1061
1062
  })]
1062
1063
  })
1063
1064
  ]
1064
1065
  })
1065
1066
  ] }),
1066
- /* @__PURE__ */ f("div", {
1067
+ /* @__PURE__ */ p("div", {
1067
1068
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
1068
- children: [/* @__PURE__ */ f("div", {
1069
+ children: [/* @__PURE__ */ p("div", {
1069
1070
  className: "mb-4 flex items-center gap-2",
1070
- children: [/* @__PURE__ */ d(de, {
1071
+ children: [/* @__PURE__ */ f(fe, {
1071
1072
  size: 18,
1072
1073
  className: "text-text-secondary"
1073
- }), /* @__PURE__ */ d("h2", {
1074
+ }), /* @__PURE__ */ f("h2", {
1074
1075
  className: "text-sm font-medium text-text-primary",
1075
- children: c("notifications.actions", "Actions")
1076
+ children: l("notifications.actions", "Actions")
1076
1077
  })]
1077
- }), /* @__PURE__ */ f("div", {
1078
+ }), /* @__PURE__ */ p("div", {
1078
1079
  className: "space-y-3",
1079
- children: [F.map((e, t) => /* @__PURE__ */ f("div", {
1080
+ children: [tt.map((e, t) => /* @__PURE__ */ p("div", {
1080
1081
  className: "grid gap-3 rounded-lg border border-border-subtle bg-bg-canvas p-3 md:grid-cols-[1fr,1fr,160px,auto]",
1081
1082
  children: [
1082
- /* @__PURE__ */ d("input", {
1083
+ /* @__PURE__ */ f("input", {
1083
1084
  type: "text",
1084
1085
  value: e.label,
1085
1086
  onChange: (e) => I((n) => n.map((n, r) => r === t ? {
1086
1087
  ...n,
1087
1088
  label: e.target.value
1088
1089
  } : n)),
1089
- placeholder: c("notifications.actionLabel", "Action label"),
1090
+ placeholder: l("notifications.actionLabel", "Action label"),
1090
1091
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary"
1091
1092
  }),
1092
- /* @__PURE__ */ d("input", {
1093
+ /* @__PURE__ */ f("input", {
1093
1094
  type: "url",
1094
1095
  value: e.url,
1095
1096
  onChange: (e) => I((n) => n.map((n, r) => r === t ? {
1096
1097
  ...n,
1097
1098
  url: e.target.value
1098
1099
  } : n)),
1099
- placeholder: c("notifications.actionUrl", "https://..."),
1100
+ placeholder: l("notifications.actionUrl", "https://..."),
1100
1101
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary"
1101
1102
  }),
1102
- /* @__PURE__ */ f("select", {
1103
+ /* @__PURE__ */ p("select", {
1103
1104
  value: e.style,
1104
1105
  onChange: (e) => I((n) => n.map((n, r) => r === t ? {
1105
1106
  ...n,
@@ -1107,21 +1108,21 @@ function Te() {
1107
1108
  } : n)),
1108
1109
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary",
1109
1110
  children: [
1110
- /* @__PURE__ */ d("option", {
1111
+ /* @__PURE__ */ f("option", {
1111
1112
  value: "primary",
1112
1113
  children: "Primary"
1113
1114
  }),
1114
- /* @__PURE__ */ d("option", {
1115
+ /* @__PURE__ */ f("option", {
1115
1116
  value: "secondary",
1116
1117
  children: "Secondary"
1117
1118
  }),
1118
- /* @__PURE__ */ d("option", {
1119
+ /* @__PURE__ */ f("option", {
1119
1120
  value: "danger",
1120
1121
  children: "Danger"
1121
1122
  })
1122
1123
  ]
1123
1124
  }),
1124
- /* @__PURE__ */ d("button", {
1125
+ /* @__PURE__ */ f("button", {
1125
1126
  type: "button",
1126
1127
  onClick: () => I((e) => e.length === 1 ? [{
1127
1128
  id: "primary-action",
@@ -1130,10 +1131,10 @@ function Te() {
1130
1131
  style: "primary"
1131
1132
  }] : e.filter((e, n) => n !== t)),
1132
1133
  className: "rounded-md border border-border-subtle px-3 py-2 text-sm text-text-secondary hover:bg-bg-sunken",
1133
- children: c("notifications.remove", "Remove")
1134
+ children: l("notifications.remove", "Remove")
1134
1135
  })
1135
1136
  ]
1136
- }, e.id)), /* @__PURE__ */ d("button", {
1137
+ }, e.id)), /* @__PURE__ */ f("button", {
1137
1138
  type: "button",
1138
1139
  onClick: () => I((e) => [...e, {
1139
1140
  id: `action-${e.length + 1}`,
@@ -1142,211 +1143,211 @@ function Te() {
1142
1143
  style: "secondary"
1143
1144
  }]),
1144
1145
  className: "rounded-md border border-border-subtle px-3 py-2 text-sm text-text-secondary hover:bg-bg-sunken",
1145
- children: c("notifications.addAction", "Add action")
1146
+ children: l("notifications.addAction", "Add action")
1146
1147
  })]
1147
1148
  })]
1148
1149
  }),
1149
- /* @__PURE__ */ f("div", {
1150
+ /* @__PURE__ */ p("div", {
1150
1151
  className: "bg-bg-surface rounded-lg border border-border-subtle p-4",
1151
- children: [/* @__PURE__ */ f("div", {
1152
+ children: [/* @__PURE__ */ p("div", {
1152
1153
  className: "mb-4 flex items-center gap-2",
1153
- children: [/* @__PURE__ */ d(ue, {
1154
+ children: [/* @__PURE__ */ f(de, {
1154
1155
  size: 18,
1155
1156
  className: "text-text-secondary"
1156
- }), /* @__PURE__ */ d("h2", {
1157
+ }), /* @__PURE__ */ f("h2", {
1157
1158
  className: "text-sm font-medium text-text-primary",
1158
- children: c("notifications.media", "Media")
1159
+ children: l("notifications.media", "Media")
1159
1160
  })]
1160
- }), /* @__PURE__ */ f("div", {
1161
+ }), /* @__PURE__ */ p("div", {
1161
1162
  className: "space-y-3",
1162
- children: [N.map((e, t) => /* @__PURE__ */ f("div", {
1163
+ children: [et.map((e, t) => /* @__PURE__ */ p("div", {
1163
1164
  className: "grid gap-3 rounded-lg border border-border-subtle bg-bg-canvas p-3 md:grid-cols-[1fr,220px,140px,auto]",
1164
1165
  children: [
1165
- /* @__PURE__ */ d("input", {
1166
+ /* @__PURE__ */ f("input", {
1166
1167
  type: "url",
1167
1168
  value: e.url,
1168
- onChange: (e) => P((n) => n.map((n, r) => r === t ? {
1169
+ onChange: (e) => F((n) => n.map((n, r) => r === t ? {
1169
1170
  ...n,
1170
1171
  url: e.target.value
1171
1172
  } : n)),
1172
- placeholder: c("notifications.mediaUrl", "Media URL"),
1173
+ placeholder: l("notifications.mediaUrl", "Media URL"),
1173
1174
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary"
1174
1175
  }),
1175
- /* @__PURE__ */ d("input", {
1176
+ /* @__PURE__ */ f("input", {
1176
1177
  type: "text",
1177
1178
  value: e.label,
1178
- onChange: (e) => P((n) => n.map((n, r) => r === t ? {
1179
+ onChange: (e) => F((n) => n.map((n, r) => r === t ? {
1179
1180
  ...n,
1180
1181
  label: e.target.value
1181
1182
  } : n)),
1182
- placeholder: c("notifications.mediaLabel", "Caption / label"),
1183
+ placeholder: l("notifications.mediaLabel", "Caption / label"),
1183
1184
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary"
1184
1185
  }),
1185
- /* @__PURE__ */ f("select", {
1186
+ /* @__PURE__ */ p("select", {
1186
1187
  value: e.kind,
1187
- onChange: (e) => P((n) => n.map((n, r) => r === t ? {
1188
+ onChange: (e) => F((n) => n.map((n, r) => r === t ? {
1188
1189
  ...n,
1189
1190
  kind: e.target.value
1190
1191
  } : n)),
1191
1192
  className: "rounded-md border border-border-subtle bg-surface px-3 py-2 text-sm text-text-primary",
1192
1193
  children: [
1193
- /* @__PURE__ */ d("option", {
1194
+ /* @__PURE__ */ f("option", {
1194
1195
  value: "image",
1195
1196
  children: "Image"
1196
1197
  }),
1197
- /* @__PURE__ */ d("option", {
1198
+ /* @__PURE__ */ f("option", {
1198
1199
  value: "video",
1199
1200
  children: "Video"
1200
1201
  }),
1201
- /* @__PURE__ */ d("option", {
1202
+ /* @__PURE__ */ f("option", {
1202
1203
  value: "file",
1203
1204
  children: "File"
1204
1205
  })
1205
1206
  ]
1206
1207
  }),
1207
- /* @__PURE__ */ d("button", {
1208
+ /* @__PURE__ */ f("button", {
1208
1209
  type: "button",
1209
- onClick: () => P((e) => e.length === 1 ? [{
1210
+ onClick: () => F((e) => e.length === 1 ? [{
1210
1211
  url: "",
1211
1212
  label: "",
1212
1213
  kind: "image"
1213
1214
  }] : e.filter((e, n) => n !== t)),
1214
1215
  className: "rounded-md border border-border-subtle px-3 py-2 text-sm text-text-secondary hover:bg-bg-sunken",
1215
- children: c("notifications.remove", "Remove")
1216
+ children: l("notifications.remove", "Remove")
1216
1217
  })
1217
1218
  ]
1218
- }, `${e.kind}-${t}`)), /* @__PURE__ */ d("button", {
1219
+ }, `${e.kind}-${t}`)), /* @__PURE__ */ f("button", {
1219
1220
  type: "button",
1220
- onClick: () => P((e) => [...e, {
1221
+ onClick: () => F((e) => [...e, {
1221
1222
  url: "",
1222
1223
  label: "",
1223
1224
  kind: "image"
1224
1225
  }]),
1225
1226
  className: "rounded-md border border-border-subtle px-3 py-2 text-sm text-text-secondary hover:bg-bg-sunken",
1226
- children: c("notifications.addMedia", "Add media")
1227
+ children: l("notifications.addMedia", "Add media")
1227
1228
  })]
1228
1229
  })]
1229
1230
  })
1230
1231
  ]
1231
- }), K && /* @__PURE__ */ d("div", {
1232
+ }), K && /* @__PURE__ */ f("div", {
1232
1233
  className: "w-96 flex-shrink-0",
1233
- children: /* @__PURE__ */ f("div", {
1234
+ children: /* @__PURE__ */ p("div", {
1234
1235
  className: "sticky top-24 bg-bg-surface rounded-lg border border-border-subtle overflow-hidden",
1235
- children: [/* @__PURE__ */ d("div", {
1236
+ children: [/* @__PURE__ */ f("div", {
1236
1237
  className: "px-4 py-3 bg-bg-canvas border-b border-border-subtle",
1237
- children: /* @__PURE__ */ d("h3", {
1238
+ children: /* @__PURE__ */ f("h3", {
1238
1239
  className: "text-sm font-medium text-text-primary",
1239
- children: c("notifications.preview", "Preview")
1240
+ children: l("notifications.preview", "Preview")
1240
1241
  })
1241
- }), /* @__PURE__ */ f("div", {
1242
+ }), /* @__PURE__ */ p("div", {
1242
1243
  className: "p-4",
1243
1244
  children: [
1244
- /* @__PURE__ */ f("div", {
1245
+ /* @__PURE__ */ p("div", {
1245
1246
  className: "flex items-center gap-2 mb-4",
1246
1247
  children: [
1247
- /* @__PURE__ */ d("span", {
1248
+ /* @__PURE__ */ f("span", {
1248
1249
  className: "px-2 py-1 text-xs font-medium bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300 rounded",
1249
- children: c(`notifications.channel.${y}`, y)
1250
+ children: l(`notifications.channel.${x}`, x)
1250
1251
  }),
1251
- /* @__PURE__ */ d("span", {
1252
+ /* @__PURE__ */ f("span", {
1252
1253
  className: "px-2 py-1 text-xs font-medium bg-bg-sunken text-text-secondary rounded",
1253
- children: c(`notifications.type.${b}`, b)
1254
+ children: l(`notifications.type.${S}`, S)
1254
1255
  }),
1255
- /* @__PURE__ */ d("span", {
1256
- className: `px-2 py-1 text-xs font-medium rounded ${Se.find((e) => e.value === x)?.color || ""}`,
1257
- children: c(`notifications.priority.${x}`, x)
1256
+ /* @__PURE__ */ f("span", {
1257
+ className: `px-2 py-1 text-xs font-medium rounded ${Ce.find((e) => e.value === C)?.color || ""}`,
1258
+ children: l(`notifications.priority.${C}`, C)
1258
1259
  })
1259
1260
  ]
1260
1261
  }),
1261
- /* @__PURE__ */ f("div", {
1262
+ /* @__PURE__ */ p("div", {
1262
1263
  className: "mb-4",
1263
- children: [/* @__PURE__ */ d("p", {
1264
+ children: [/* @__PURE__ */ f("p", {
1264
1265
  className: "text-xs text-text-secondary mb-1",
1265
- children: c("notifications.recipients", "Recipients")
1266
- }), S.length === 0 ? C === "directory" ? /* @__PURE__ */ d("p", {
1266
+ children: l("notifications.recipients", "Recipients")
1267
+ }), w.length === 0 ? T === "directory" ? /* @__PURE__ */ f("p", {
1267
1268
  className: "text-sm text-text-primary",
1268
- children: D ? c("notifications.allMatchingUsers", "All matching directory users") : `${T.length} ${c("notifications.recipientCount", "recipient")}${T.length === 1 ? "" : "s"}`
1269
- }) : /* @__PURE__ */ d("p", {
1270
- className: "text-sm text-text-tertiary italic",
1271
- children: c("notifications.noRecipientsSelected", "No recipients selected")
1269
+ children: k ? l("notifications.allMatchingUsers", "All matching directory users") : `${D.length} ${l("notifications.recipientCount", "recipient")}${D.length === 1 ? "" : "s"}`
1272
1270
  }) : /* @__PURE__ */ f("p", {
1271
+ className: "text-sm text-text-tertiary italic",
1272
+ children: l("notifications.noRecipientsSelected", "No recipients selected")
1273
+ }) : /* @__PURE__ */ p("p", {
1273
1274
  className: "text-sm text-text-primary",
1274
1275
  children: [
1275
- S.length,
1276
+ w.length,
1276
1277
  " ",
1277
- c("notifications.recipientCount", "recipient"),
1278
- S.length === 1 ? "" : "s"
1278
+ l("notifications.recipientCount", "recipient"),
1279
+ w.length === 1 ? "" : "s"
1279
1280
  ]
1280
1281
  })]
1281
1282
  }),
1282
- y === "EMAIL" && ut && /* @__PURE__ */ f("div", {
1283
+ x === "EMAIL" && ft && /* @__PURE__ */ p("div", {
1283
1284
  className: "mb-4",
1284
- children: [/* @__PURE__ */ d("p", {
1285
+ children: [/* @__PURE__ */ f("p", {
1285
1286
  className: "text-xs text-text-secondary mb-1",
1286
- children: c("notifications.subjectLabel", "Subject")
1287
- }), /* @__PURE__ */ d("p", {
1287
+ children: l("notifications.subjectLabel", "Subject")
1288
+ }), /* @__PURE__ */ f("p", {
1288
1289
  className: "text-sm font-medium text-text-primary",
1289
- children: ut
1290
+ children: ft
1290
1291
  })]
1291
1292
  }),
1292
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
1293
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
1293
1294
  className: "text-xs text-text-secondary mb-1",
1294
- children: c("notifications.messageLabel", "Message")
1295
- }), lt ? /* @__PURE__ */ d("div", {
1295
+ children: l("notifications.messageLabel", "Message")
1296
+ }), dt ? /* @__PURE__ */ f("div", {
1296
1297
  className: "p-3 bg-bg-canvas rounded-lg",
1297
- children: /* @__PURE__ */ d("p", {
1298
+ children: /* @__PURE__ */ f("p", {
1298
1299
  className: "text-sm text-text-secondary whitespace-pre-wrap",
1299
- children: lt
1300
+ children: dt
1300
1301
  })
1301
- }) : /* @__PURE__ */ d("p", {
1302
+ }) : /* @__PURE__ */ f("p", {
1302
1303
  className: "text-sm text-text-tertiary italic",
1303
- children: c("notifications.noMessageContent", "No message content")
1304
+ children: l("notifications.noMessageContent", "No message content")
1304
1305
  })] }),
1305
- M && /* @__PURE__ */ f("div", {
1306
+ P && /* @__PURE__ */ p("div", {
1306
1307
  className: "mt-4",
1307
- children: [/* @__PURE__ */ d("p", {
1308
+ children: [/* @__PURE__ */ f("p", {
1308
1309
  className: "text-xs text-text-secondary mb-1",
1309
- children: c("notifications.topic", "Topic")
1310
- }), /* @__PURE__ */ d("p", {
1310
+ children: l("notifications.topic", "Topic")
1311
+ }), /* @__PURE__ */ f("p", {
1311
1312
  className: "text-sm text-text-primary",
1312
- children: Re.find((e) => e.id === M)?.name || M
1313
+ children: Re.find((e) => e.id === P)?.name || P
1313
1314
  })]
1314
1315
  }),
1315
- Q.length > 0 && /* @__PURE__ */ f("div", {
1316
+ Q.length > 0 && /* @__PURE__ */ p("div", {
1316
1317
  className: "mt-4",
1317
- children: [/* @__PURE__ */ d("p", {
1318
+ children: [/* @__PURE__ */ f("p", {
1318
1319
  className: "text-xs text-text-secondary mb-1",
1319
- children: c("notifications.actions", "Actions")
1320
- }), /* @__PURE__ */ d("div", {
1320
+ children: l("notifications.actions", "Actions")
1321
+ }), /* @__PURE__ */ f("div", {
1321
1322
  className: "flex flex-wrap gap-2",
1322
- children: Q.map((e) => /* @__PURE__ */ d("span", {
1323
+ children: Q.map((e) => /* @__PURE__ */ f("span", {
1323
1324
  className: "rounded-full bg-muted px-2 py-1 text-xs text-secondary",
1324
1325
  children: e.label
1325
1326
  }, e.id))
1326
1327
  })]
1327
1328
  }),
1328
- $.length > 0 && /* @__PURE__ */ f("div", {
1329
+ $.length > 0 && /* @__PURE__ */ p("div", {
1329
1330
  className: "mt-4 space-y-2",
1330
- children: [/* @__PURE__ */ d("p", {
1331
+ children: [/* @__PURE__ */ f("p", {
1331
1332
  className: "text-xs text-text-secondary",
1332
- children: c("notifications.media", "Media")
1333
- }), $.map((e) => /* @__PURE__ */ d("div", {
1333
+ children: l("notifications.media", "Media")
1334
+ }), $.map((e) => /* @__PURE__ */ f("div", {
1334
1335
  className: "rounded-lg border border-border-subtle bg-bg-canvas p-2 text-xs text-text-secondary",
1335
1336
  children: e.label || e.url
1336
1337
  }, e.url))]
1337
1338
  }),
1338
- v === "template" && X && /* @__PURE__ */ f("div", {
1339
+ b === "template" && X && /* @__PURE__ */ p("div", {
1339
1340
  className: "mt-4 pt-4 border-t border-border-subtle",
1340
1341
  children: [
1341
- /* @__PURE__ */ d("p", {
1342
+ /* @__PURE__ */ f("p", {
1342
1343
  className: "text-xs text-text-secondary mb-1",
1343
- children: c("notifications.usingTemplate", "Using Template")
1344
+ children: l("notifications.usingTemplate", "Using Template")
1344
1345
  }),
1345
- /* @__PURE__ */ d("p", {
1346
+ /* @__PURE__ */ f("p", {
1346
1347
  className: "text-sm font-medium text-text-primary",
1347
1348
  children: X.name
1348
1349
  }),
1349
- /* @__PURE__ */ d("p", {
1350
+ /* @__PURE__ */ f("p", {
1350
1351
  className: "text-xs text-text-secondary font-mono",
1351
1352
  children: X.slug
1352
1353
  })
@@ -1361,6 +1362,6 @@ function Te() {
1361
1362
  });
1362
1363
  }
1363
1364
  //#endregion
1364
- export { Te as CreateNotificationPage };
1365
+ export { Ee as CreateNotificationPage };
1365
1366
 
1366
1367
  //# sourceMappingURL=CreateNotificationPage.js.map