@carlonicora/nextjs-jsonapi 6.27.0 → 6.29.0

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 (51) hide show
  1. package/dist/{BlockNoteEditor-D2DXVXTJ.mjs → BlockNoteEditor-BHCNJ2JA.mjs} +8 -60
  2. package/dist/BlockNoteEditor-BHCNJ2JA.mjs.map +1 -0
  3. package/dist/{BlockNoteEditor-NQB75M47.js → BlockNoteEditor-KGCHQQVY.js} +21 -73
  4. package/dist/BlockNoteEditor-KGCHQQVY.js.map +1 -0
  5. package/dist/billing/index.js +378 -378
  6. package/dist/billing/index.mjs +1 -1
  7. package/dist/{chunk-HU3AGUFI.mjs → chunk-UQFDOZVF.mjs} +91 -8
  8. package/dist/chunk-UQFDOZVF.mjs.map +1 -0
  9. package/dist/{chunk-YGV27OAW.js → chunk-WXTEAATG.js} +92 -9
  10. package/dist/chunk-WXTEAATG.js.map +1 -0
  11. package/dist/client/index.js +2 -2
  12. package/dist/client/index.mjs +1 -1
  13. package/dist/components/containers/RoundPageContainer.d.ts +3 -1
  14. package/dist/components/containers/RoundPageContainer.d.ts.map +1 -1
  15. package/dist/components/editors/BlockNoteEditorMentionHoverCard.d.ts.map +1 -1
  16. package/dist/components/editors/BlockNoteEditorMentionInlineContent.d.ts +2 -0
  17. package/dist/components/editors/BlockNoteEditorMentionInlineContent.d.ts.map +1 -1
  18. package/dist/components/editors/index.d.ts +1 -0
  19. package/dist/components/editors/index.d.ts.map +1 -1
  20. package/dist/components/index.js +4 -2
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +3 -1
  23. package/dist/components/typography/DetailField.d.ts +3 -1
  24. package/dist/components/typography/DetailField.d.ts.map +1 -1
  25. package/dist/contexts/index.js +2 -2
  26. package/dist/contexts/index.mjs +1 -1
  27. package/dist/email-automations/index.js +78 -78
  28. package/dist/email-automations/index.mjs +1 -1
  29. package/dist/features/analytics/index.js +107 -107
  30. package/dist/features/analytics/index.mjs +1 -1
  31. package/dist/features/blog/index.js +93 -93
  32. package/dist/features/blog/index.mjs +1 -1
  33. package/dist/features/help/index.js +31 -31
  34. package/dist/features/help/index.mjs +1 -1
  35. package/dist/features/tokenusage/index.js +102 -102
  36. package/dist/features/tokenusage/index.mjs +1 -1
  37. package/package.json +1 -1
  38. package/src/components/containers/RoundPageContainer.tsx +21 -2
  39. package/src/components/containers/__tests__/RoundPageContainer.detailsSurface.spec.tsx +82 -0
  40. package/src/components/editors/BlockNoteEditorMentionHoverCard.tsx +8 -1
  41. package/src/components/editors/BlockNoteEditorMentionInlineContent.tsx +3 -1
  42. package/src/components/editors/__tests__/BlockNoteEditorMentionHoverCard.spec.tsx +42 -0
  43. package/src/components/editors/__tests__/BlockNoteEditorMentionInlineContent.spec.ts +30 -2
  44. package/src/components/editors/__tests__/blocknote-editor-options.spec.ts +8 -0
  45. package/src/components/editors/index.ts +1 -0
  46. package/src/components/typography/DetailField.tsx +4 -1
  47. package/src/components/typography/__tests__/DetailField.spec.tsx +13 -0
  48. package/dist/BlockNoteEditor-D2DXVXTJ.mjs.map +0 -1
  49. package/dist/BlockNoteEditor-NQB75M47.js.map +0 -1
  50. package/dist/chunk-HU3AGUFI.mjs.map +0 -1
  51. package/dist/chunk-YGV27OAW.js.map +0 -1
@@ -45,7 +45,7 @@
45
45
 
46
46
 
47
47
 
48
- var _chunkYGV27OAWjs = require('../chunk-YGV27OAW.js');
48
+ var _chunkWXTEAATGjs = require('../chunk-WXTEAATG.js');
49
49
 
50
50
 
51
51
 
@@ -163,7 +163,7 @@ function EmailAutomationEditorInternal({
163
163
  [t]
164
164
  );
165
165
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
166
- _chunkYGV27OAWjs.EditorSheet,
166
+ _chunkWXTEAATGjs.EditorSheet,
167
167
  {
168
168
  form,
169
169
  entityType: t("emailAutomations.admin.title"),
@@ -194,9 +194,9 @@ function EmailAutomationEditorInternal({
194
194
  dialogOpen,
195
195
  onDialogOpenChange,
196
196
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-4", children: [
197
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.FormInput, { form, id: "name", name: t("emailAutomations.fields.name.label"), isRequired: true }),
197
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.FormInput, { form, id: "name", name: t("emailAutomations.fields.name.label"), isRequired: true }),
198
198
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
199
- _chunkYGV27OAWjs.FormSelect,
199
+ _chunkWXTEAATGjs.FormSelect,
200
200
  {
201
201
  form,
202
202
  id: "purpose",
@@ -208,7 +208,7 @@ function EmailAutomationEditorInternal({
208
208
  }
209
209
  ),
210
210
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
211
- _chunkYGV27OAWjs.FormSelect,
211
+ _chunkWXTEAATGjs.FormSelect,
212
212
  {
213
213
  form,
214
214
  id: "trigger",
@@ -219,7 +219,7 @@ function EmailAutomationEditorInternal({
219
219
  }
220
220
  ),
221
221
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
222
- _chunkYGV27OAWjs.FormSelect,
222
+ _chunkWXTEAATGjs.FormSelect,
223
223
  {
224
224
  form,
225
225
  id: "exitTrigger",
@@ -229,9 +229,9 @@ function EmailAutomationEditorInternal({
229
229
  allowEmpty: true
230
230
  }
231
231
  ),
232
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.FormInput, { form, id: "replyTo", name: t("emailAutomations.fields.replyTo.label") }),
232
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.FormInput, { form, id: "replyTo", name: t("emailAutomations.fields.replyTo.label") }),
233
233
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
234
- _chunkYGV27OAWjs.FormSwitch,
234
+ _chunkWXTEAATGjs.FormSwitch,
235
235
  {
236
236
  form,
237
237
  id: "isActive",
@@ -255,7 +255,7 @@ var EmailAutomationEditor_default = EmailAutomationEditor;
255
255
  function EmailAutomationsList({ fullWidth } = {}) {
256
256
  const t = _nextintl.useTranslations.call(void 0, );
257
257
  const [triggers, setTriggers] = _react.useState.call(void 0, []);
258
- const data = _chunkYGV27OAWjs.useDataListRetriever.call(void 0, {
258
+ const data = _chunkWXTEAATGjs.useDataListRetriever.call(void 0, {
259
259
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk77JC2UCFjs.EmailAutomationService.findMany(params), "retriever"),
260
260
  retrieverParams: {},
261
261
  module: _chunkZ6T2575Ajs.Modules.EmailAutomation
@@ -276,7 +276,7 @@ function EmailAutomationsList({ fullWidth } = {}) {
276
276
  );
277
277
  const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationEditor_default, {}, "create-email-automation")];
278
278
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
279
- _chunkYGV27OAWjs.ContentListTable,
279
+ _chunkWXTEAATGjs.ContentListTable,
280
280
  {
281
281
  data,
282
282
  fields: [
@@ -294,7 +294,7 @@ function EmailAutomationsList({ fullWidth } = {}) {
294
294
  fullWidth,
295
295
  title: t("emailAutomations.admin.title"),
296
296
  context: { triggerLabels },
297
- emptyState: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.EmptyState, { icon: _lucidereact.MailIcon, title: t("emailAutomations.admin.empty") })
297
+ emptyState: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.EmptyState, { icon: _lucidereact.MailIcon, title: t("emailAutomations.admin.empty") })
298
298
  }
299
299
  );
300
300
  }
@@ -305,7 +305,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationsList, "EmailAutomationsList
305
305
  function EmailAutomationsListContainer() {
306
306
  const t = _nextintl.useTranslations.call(void 0, );
307
307
  const breadcrumbs = [{ name: t("emailAutomations.admin.title") }];
308
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SharedProvider, { value: { breadcrumbs, title: { type: t("emailAutomations.admin.title") } }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.RoundPageContainer, { module: _chunkZ6T2575Ajs.Modules.EmailAutomation, fullWidth: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationsList, { fullWidth: true }) }) });
308
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SharedProvider, { value: { breadcrumbs, title: { type: t("emailAutomations.admin.title") } }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.RoundPageContainer, { module: _chunkZ6T2575Ajs.Modules.EmailAutomation, fullWidth: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationsList, { fullWidth: true }) }) });
309
309
  }
310
310
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationsListContainer, "EmailAutomationsListContainer");
311
311
 
@@ -459,17 +459,17 @@ function EmailAutomationActiveSwitch() {
459
459
  });
460
460
  await reload();
461
461
  } catch (error) {
462
- _chunkYGV27OAWjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
462
+ _chunkWXTEAATGjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
463
463
  } finally {
464
464
  setSaving(false);
465
465
  }
466
466
  }, "toggle");
467
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.Tooltip, { children: [
468
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "flex items-center gap-x-2" }), children: [
469
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Switch, { checked: automation.isActive, onCheckedChange: (checked) => void toggle(checked), disabled: saving }),
467
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.Tooltip, { children: [
468
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "flex items-center gap-x-2" }), children: [
469
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Switch, { checked: automation.isActive, onCheckedChange: (checked) => void toggle(checked), disabled: saving }),
470
470
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs", children: t("emailAutomations.fields.isActive.label") })
471
471
  ] }),
472
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.TooltipContent, { className: "max-w-xs", children: t("emailAutomations.fields.isActive.help") })
472
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.TooltipContent, { className: "max-w-xs", children: t("emailAutomations.fields.isActive.help") })
473
473
  ] });
474
474
  }
475
475
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationActiveSwitch, "EmailAutomationActiveSwitch");
@@ -502,7 +502,7 @@ function CanvasToolbar({ onTidy }) {
502
502
  const { zoomIn, zoomOut, fitView } = _react3.useReactFlow.call(void 0, );
503
503
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-help": "canvas.toolbar", className: "absolute end-2 top-2 z-10 flex flex-col gap-1 max-md:top-14", children: [
504
504
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
505
- _chunkYGV27OAWjs.Button,
505
+ _chunkWXTEAATGjs.Button,
506
506
  {
507
507
  type: "button",
508
508
  variant: "outline",
@@ -513,7 +513,7 @@ function CanvasToolbar({ onTidy }) {
513
513
  }
514
514
  ),
515
515
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
516
- _chunkYGV27OAWjs.Button,
516
+ _chunkWXTEAATGjs.Button,
517
517
  {
518
518
  type: "button",
519
519
  variant: "outline",
@@ -524,7 +524,7 @@ function CanvasToolbar({ onTidy }) {
524
524
  }
525
525
  ),
526
526
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
527
- _chunkYGV27OAWjs.Button,
527
+ _chunkWXTEAATGjs.Button,
528
528
  {
529
529
  type: "button",
530
530
  variant: "outline",
@@ -535,7 +535,7 @@ function CanvasToolbar({ onTidy }) {
535
535
  }
536
536
  ),
537
537
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
538
- _chunkYGV27OAWjs.Button,
538
+ _chunkWXTEAATGjs.Button,
539
539
  {
540
540
  type: "button",
541
541
  variant: "outline",
@@ -828,7 +828,7 @@ function EmailStepEditorInternal({
828
828
  defaultValues: getDefaultValues()
829
829
  });
830
830
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
831
- _chunkYGV27OAWjs.EditorSheet,
831
+ _chunkWXTEAATGjs.EditorSheet,
832
832
  {
833
833
  form,
834
834
  entityType: t("emailAutomations.step.title"),
@@ -860,9 +860,9 @@ function EmailStepEditorInternal({
860
860
  dialogOpen,
861
861
  onDialogOpenChange,
862
862
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-4", children: [
863
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.FormInput, { form, id: "subject", name: t("emailAutomations.step.fields.subject.label"), isRequired: true }),
863
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.FormInput, { form, id: "subject", name: t("emailAutomations.step.fields.subject.label"), isRequired: true }),
864
864
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
865
- _chunkYGV27OAWjs.FormInput,
865
+ _chunkWXTEAATGjs.FormInput,
866
866
  {
867
867
  form,
868
868
  id: "delayHours",
@@ -872,7 +872,7 @@ function EmailStepEditorInternal({
872
872
  }
873
873
  ),
874
874
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
875
- _chunkYGV27OAWjs.FormTextarea,
875
+ _chunkWXTEAATGjs.FormTextarea,
876
876
  {
877
877
  form,
878
878
  id: "body",
@@ -1051,7 +1051,7 @@ function EmailAutomationCanvas() {
1051
1051
  try {
1052
1052
  await setNext(stepId, nextStepId);
1053
1053
  } catch (error) {
1054
- _chunkYGV27OAWjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.chainError"), error });
1054
+ _chunkWXTEAATGjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.chainError"), error });
1055
1055
  await reload();
1056
1056
  }
1057
1057
  },
@@ -1183,7 +1183,7 @@ function EmailAutomationCanvas() {
1183
1183
  try {
1184
1184
  await deleteStep(stepId);
1185
1185
  } catch (error) {
1186
- _chunkYGV27OAWjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.deleteEmail"), error });
1186
+ _chunkWXTEAATGjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.deleteEmail"), error });
1187
1187
  throw error;
1188
1188
  }
1189
1189
  }, [pendingDeleteStepId, deleteStep, t]);
@@ -1246,7 +1246,7 @@ function EmailAutomationCanvas() {
1246
1246
  }
1247
1247
  ),
1248
1248
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1249
- _chunkYGV27OAWjs.ConfirmDialog,
1249
+ _chunkWXTEAATGjs.ConfirmDialog,
1250
1250
  {
1251
1251
  open: pendingDeleteStepId !== null,
1252
1252
  onOpenChange: (open) => {
@@ -1261,20 +1261,20 @@ function EmailAutomationCanvas() {
1261
1261
  }
1262
1262
  ),
1263
1263
  paneMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1264
- _chunkYGV27OAWjs.ContextMenu,
1264
+ _chunkWXTEAATGjs.ContextMenu,
1265
1265
  {
1266
1266
  open: true,
1267
1267
  onOpenChange: (open) => {
1268
1268
  if (!open) setPaneMenu(null);
1269
1269
  },
1270
1270
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1271
- _chunkYGV27OAWjs.ContextMenuContent,
1271
+ _chunkWXTEAATGjs.ContextMenuContent,
1272
1272
  {
1273
1273
  anchor: pointAnchor(paneMenu.screenX, paneMenu.screenY),
1274
1274
  side: "bottom",
1275
1275
  align: "start",
1276
1276
  sideOffset: 4,
1277
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.ContextMenuItem, { onClick: handleCreateStepFromPane, children: [
1277
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.ContextMenuItem, { onClick: handleCreateStepFromPane, children: [
1278
1278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusIcon, {}),
1279
1279
  t("emailAutomations.canvas.addEmail")
1280
1280
  ] })
@@ -1283,21 +1283,21 @@ function EmailAutomationCanvas() {
1283
1283
  }
1284
1284
  ),
1285
1285
  nodeMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1286
- _chunkYGV27OAWjs.ContextMenu,
1286
+ _chunkWXTEAATGjs.ContextMenu,
1287
1287
  {
1288
1288
  open: true,
1289
1289
  onOpenChange: (open) => {
1290
1290
  if (!open) setNodeMenu(null);
1291
1291
  },
1292
1292
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1293
- _chunkYGV27OAWjs.ContextMenuContent,
1293
+ _chunkWXTEAATGjs.ContextMenuContent,
1294
1294
  {
1295
1295
  anchor: pointAnchor(nodeMenu.screenX, nodeMenu.screenY),
1296
1296
  side: "bottom",
1297
1297
  align: "start",
1298
1298
  sideOffset: 4,
1299
1299
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1300
- _chunkYGV27OAWjs.ContextMenuItem,
1300
+ _chunkWXTEAATGjs.ContextMenuItem,
1301
1301
  {
1302
1302
  onClick: () => {
1303
1303
  const menu = nodeMenu;
@@ -1338,7 +1338,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TriggerAutomationEditor, "TriggerAutomation
1338
1338
  // src/features/email-automation/components/canvas/EmailAutomationCanvasTab.tsx
1339
1339
 
1340
1340
  function EmailAutomationCanvasTab() {
1341
- const { open, setOpen } = _chunkYGV27OAWjs.useSidebar.call(void 0, );
1341
+ const { open, setOpen } = _chunkWXTEAATGjs.useSidebar.call(void 0, );
1342
1342
  _react.useEffect.call(void 0, () => {
1343
1343
  const prev = open;
1344
1344
  if (prev) setOpen(false);
@@ -1371,7 +1371,7 @@ function EmailAutomationAddPersonDialog({
1371
1371
  const searchTermRef = _react.useRef.call(void 0, "");
1372
1372
  const [searchTerm, setSearchTerm] = _react.useState.call(void 0, "");
1373
1373
  const sentinelRef = _react.useRef.call(void 0, null);
1374
- const data = _chunkYGV27OAWjs.useDataListRetriever.call(void 0, {
1374
+ const data = _chunkWXTEAATGjs.useDataListRetriever.call(void 0, {
1375
1375
  ready: open,
1376
1376
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk77JC2UCFjs.EmailAutomationService.findCandidates(params), "retriever"),
1377
1377
  retrieverParams: { automationId },
@@ -1388,7 +1388,7 @@ function EmailAutomationAddPersonDialog({
1388
1388
  },
1389
1389
  [data]
1390
1390
  );
1391
- const updateSearchTerm = _chunkYGV27OAWjs.useDebounce.call(void 0, refreshList, 500);
1391
+ const updateSearchTerm = _chunkWXTEAATGjs.useDebounce.call(void 0, refreshList, 500);
1392
1392
  _react.useEffect.call(void 0, () => {
1393
1393
  if (open) updateSearchTerm(searchTerm);
1394
1394
  }, [open, searchTerm]);
@@ -1431,14 +1431,14 @@ function EmailAutomationAddPersonDialog({
1431
1431
  _chunk77JC2UCFjs.showToast.call(void 0, t("emailAutomations.recipients.addDialog.added", { email: candidate.email }));
1432
1432
  onAdded();
1433
1433
  } catch (error) {
1434
- _chunkYGV27OAWjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
1434
+ _chunkWXTEAATGjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
1435
1435
  }
1436
1436
  }, "add");
1437
1437
  const candidates = _nullishCoalesce(data.data, () => ( []));
1438
1438
  const addable = candidates.filter((candidate) => candidate.addable);
1439
1439
  const blocked = candidates.filter((candidate) => !candidate.addable);
1440
1440
  const renderCandidate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (candidate) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1441
- _chunkYGV27OAWjs.CommandItem,
1441
+ _chunkWXTEAATGjs.CommandItem,
1442
1442
  {
1443
1443
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
1444
1444
  value: candidate.id,
@@ -1447,20 +1447,20 @@ function EmailAutomationAddPersonDialog({
1447
1447
  "data-addable": candidate.addable ? "true" : "false",
1448
1448
  onSelect: () => void add(candidate),
1449
1449
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-row items-center px-4 py-1", children: [
1450
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Avatar, { className: "h-6 w-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.AvatarFallback, { children: _chunk77JC2UCFjs.getInitials.call(void 0, candidate.name || candidate.email) }) }) }),
1450
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Avatar, { className: "h-6 w-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.AvatarFallback, { children: _chunk77JC2UCFjs.getInitials.call(void 0, candidate.name || candidate.email) }) }) }),
1451
1451
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ms-5 me-3 flex min-w-0 flex-1 flex-col", children: candidate.name ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1452
1452
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm font-medium", children: candidate.name }),
1453
1453
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-xs font-normal", children: candidate.email })
1454
1454
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm font-medium", children: candidate.email }) }),
1455
1455
  candidate.addable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1456
- _chunkYGV27OAWjs.Badge,
1456
+ _chunkWXTEAATGjs.Badge,
1457
1457
  {
1458
1458
  variant: candidate.recipientType === "waitlist" ? "softBlue" : "softGray",
1459
1459
  className: "ms-auto shrink-0",
1460
1460
  children: t(`emailAutomations.recipients.addDialog.kind.${candidate.recipientType}`)
1461
1461
  }
1462
1462
  ) : candidate.reason && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1463
- _chunkYGV27OAWjs.Badge,
1463
+ _chunkWXTEAATGjs.Badge,
1464
1464
  {
1465
1465
  variant: "softAmber",
1466
1466
  className: "ms-auto shrink-0",
@@ -1473,11 +1473,11 @@ function EmailAutomationAddPersonDialog({
1473
1473
  candidate.id
1474
1474
  ), "renderCandidate");
1475
1475
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
1476
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.Dialog, { open, onOpenChange: handleOpenChange, children: [
1476
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.Dialog, { open, onOpenChange: handleOpenChange, children: [
1477
1477
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1478
- _chunkYGV27OAWjs.DialogTrigger,
1478
+ _chunkWXTEAATGjs.DialogTrigger,
1479
1479
  {
1480
- render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Button, { variant: "outline", size: "sm", "data-testid": "email-automation-add-person" }),
1480
+ render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Button, { variant: "outline", size: "sm", "data-testid": "email-automation-add-person" }),
1481
1481
  disabled,
1482
1482
  children: [
1483
1483
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UserPlusIcon, { className: "h-3.5 w-3.5" }),
@@ -1485,11 +1485,11 @@ function EmailAutomationAddPersonDialog({
1485
1485
  ]
1486
1486
  }
1487
1487
  ),
1488
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.DialogContent, { className: "sm:max-w-2xl", "data-testid": "email-automation-add-person-dialog", children: [
1489
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.DialogHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.DialogTitle, { children: t("emailAutomations.recipients.addDialog.title") }) }),
1490
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.Command, { shouldFilter: false, children: [
1488
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.DialogContent, { className: "sm:max-w-2xl", "data-testid": "email-automation-add-person-dialog", children: [
1489
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.DialogHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.DialogTitle, { children: t("emailAutomations.recipients.addDialog.title") }) }),
1490
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.Command, { shouldFilter: false, children: [
1491
1491
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1492
- _chunkYGV27OAWjs.CommandInput,
1492
+ _chunkWXTEAATGjs.CommandInput,
1493
1493
  {
1494
1494
  "data-testid": "email-automation-add-person-search",
1495
1495
  placeholder: t("emailAutomations.recipients.addDialog.search"),
@@ -1497,10 +1497,10 @@ function EmailAutomationAddPersonDialog({
1497
1497
  onValueChange: setSearchTerm
1498
1498
  }
1499
1499
  ),
1500
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.CommandList, { className: "mt-2", children: [
1501
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.CommandEmpty, { children: t("emailAutomations.recipients.addDialog.empty") }),
1502
- addable.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.addable"), children: addable.map(renderCandidate) }),
1503
- blocked.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.blocked"), children: blocked.map(renderCandidate) }),
1500
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.CommandList, { className: "mt-2", children: [
1501
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.CommandEmpty, { children: t("emailAutomations.recipients.addDialog.empty") }),
1502
+ addable.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.addable"), children: addable.map(renderCandidate) }),
1503
+ blocked.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.blocked"), children: blocked.map(renderCandidate) }),
1504
1504
  data.next && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, style: { height: 1 } })
1505
1505
  ] })
1506
1506
  ] })
@@ -1517,7 +1517,7 @@ function EmailAutomationRecipientsList() {
1517
1517
  const t = _nextintl.useTranslations.call(void 0, );
1518
1518
  const { automation, reload } = useEmailAutomation();
1519
1519
  const [statusFilter, setStatusFilter] = _react.useState.call(void 0, "all");
1520
- const data = _chunkYGV27OAWjs.useDataListRetriever.call(void 0, {
1520
+ const data = _chunkWXTEAATGjs.useDataListRetriever.call(void 0, {
1521
1521
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk77JC2UCFjs.EmailAutomationService.findEnrollments(params), "retriever"),
1522
1522
  retrieverParams: { automationId: _optionalChain([automation, 'optionalAccess', _50 => _50.id]) },
1523
1523
  module: _chunkZ6T2575Ajs.Modules.EmailAutomationEnrollment
@@ -1550,21 +1550,21 @@ function EmailAutomationRecipientsList() {
1550
1550
  }
1551
1551
  }
1552
1552
  ),
1553
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.Select, { items: statusItems, value: statusFilter, onValueChange: handleStatusChange, children: [
1554
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectTrigger, { className: "w-40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectValue, {}) }),
1555
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.SelectContent, { children: [
1556
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "all", children: t("emailAutomations.recipients.status.all") }),
1557
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "active", children: t("emailAutomations.recipients.status.active") }),
1558
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "completed", children: t("emailAutomations.recipients.status.completed") }),
1559
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "unsubscribed", children: t("emailAutomations.recipients.status.unsubscribed") }),
1560
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "exited", children: t("emailAutomations.recipients.status.exited") }),
1561
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SelectItem, { value: "failed", children: t("emailAutomations.recipients.status.failed") })
1553
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.Select, { items: statusItems, value: statusFilter, onValueChange: handleStatusChange, children: [
1554
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectTrigger, { className: "w-40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectValue, {}) }),
1555
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.SelectContent, { children: [
1556
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "all", children: t("emailAutomations.recipients.status.all") }),
1557
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "active", children: t("emailAutomations.recipients.status.active") }),
1558
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "completed", children: t("emailAutomations.recipients.status.completed") }),
1559
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "unsubscribed", children: t("emailAutomations.recipients.status.unsubscribed") }),
1560
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "exited", children: t("emailAutomations.recipients.status.exited") }),
1561
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SelectItem, { value: "failed", children: t("emailAutomations.recipients.status.failed") })
1562
1562
  ] })
1563
1563
  ] }),
1564
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Button, { variant: "outline", size: "icon", onClick: () => void data.refresh(), disabled: !data.isLoaded, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.RefreshCw, { className: `h-4 w-4 ${!data.isLoaded ? "animate-spin" : ""}` }) })
1564
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Button, { variant: "outline", size: "icon", onClick: () => void data.refresh(), disabled: !data.isLoaded, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.RefreshCw, { className: `h-4 w-4 ${!data.isLoaded ? "animate-spin" : ""}` }) })
1565
1565
  ] });
1566
1566
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": "email-automation-recipients", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1567
- _chunkYGV27OAWjs.ContentListTable,
1567
+ _chunkWXTEAATGjs.ContentListTable,
1568
1568
  {
1569
1569
  data,
1570
1570
  fields: [
@@ -1593,7 +1593,7 @@ function EmailAutomationContainer({ automationId }) {
1593
1593
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationContainer, "EmailAutomationContainer");
1594
1594
  function EmailAutomationShell() {
1595
1595
  const t = _nextintl.useTranslations.call(void 0, );
1596
- const generateUrl = _chunkYGV27OAWjs.usePageUrlGenerator.call(void 0, );
1596
+ const generateUrl = _chunkWXTEAATGjs.usePageUrlGenerator.call(void 0, );
1597
1597
  const { automation, reload } = useEmailAutomation();
1598
1598
  if (!automation) return null;
1599
1599
  const breadcrumbs = [
@@ -1601,7 +1601,7 @@ function EmailAutomationShell() {
1601
1601
  { name: automation.name }
1602
1602
  ];
1603
1603
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1604
- _chunkYGV27OAWjs.SharedProvider,
1604
+ _chunkWXTEAATGjs.SharedProvider,
1605
1605
  {
1606
1606
  value: {
1607
1607
  breadcrumbs,
@@ -1615,7 +1615,7 @@ function EmailAutomationShell() {
1615
1615
  }
1616
1616
  },
1617
1617
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1618
- _chunkYGV27OAWjs.RoundPageContainer,
1618
+ _chunkWXTEAATGjs.RoundPageContainer,
1619
1619
  {
1620
1620
  module: _chunkZ6T2575Ajs.Modules.EmailAutomation,
1621
1621
  id: automation.id,
@@ -1695,16 +1695,16 @@ function EmailUnsubscribe({ token, scope, source = "automation" }) {
1695
1695
  if (state === "error") {
1696
1696
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center space-y-4 py-16 text-center", children: [
1697
1697
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-destructive/10 rounded-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XCircle, { className: "text-destructive h-12 w-12" }) }),
1698
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.invalidTitle") }),
1698
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.invalidTitle") }),
1699
1699
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: t("emailAutomations.unsubscribe.invalidBody") })
1700
1700
  ] });
1701
1701
  }
1702
1702
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center space-y-4 py-16 text-center", children: [
1703
1703
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary/10 rounded-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CheckCircle, { className: "text-primary h-12 w-12" }) }),
1704
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.title") }),
1704
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.title") }),
1705
1705
  stoppedScope === "all" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: t("emailAutomations.unsubscribe.stoppedAll") }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1706
1706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: t("emailAutomations.unsubscribe.stoppedAutomation", { name: automationName }) }),
1707
- !isServiceAutomation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYGV27OAWjs.Button, { variant: "secondary", onClick: stopAll, disabled: isStoppingAll, children: [
1707
+ !isServiceAutomation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWXTEAATGjs.Button, { variant: "secondary", onClick: stopAll, disabled: isStoppingAll, children: [
1708
1708
  isStoppingAll && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }),
1709
1709
  t("emailAutomations.unsubscribe.alsoStopAll")
1710
1710
  ] })
@@ -1719,7 +1719,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, EmailUnsubscribe, "EmailUnsubscribe");
1719
1719
 
1720
1720
  var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
1721
1721
  const t = _nextintl.useTranslations.call(void 0, );
1722
- const generateUrl = _chunkYGV27OAWjs.usePageUrlGenerator.call(void 0, );
1722
+ const generateUrl = _chunkWXTEAATGjs.usePageUrlGenerator.call(void 0, );
1723
1723
  const triggerLabels = _nullishCoalesce(_optionalChain([params, 'access', _55 => _55.context, 'optionalAccess', _56 => _56.triggerLabels]), () => ( {}));
1724
1724
  const tableData = _react.useMemo.call(void 0, () => {
1725
1725
  return params.data.map((automation) => {
@@ -1748,7 +1748,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1748
1748
  header: t("emailAutomations.list.columns.name"),
1749
1749
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1750
1750
  const automation = row.original.jsonApiData;
1751
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Link, { href: generateUrl({ page: _chunkZ6T2575Ajs.Modules.EmailAutomation, id: automation.id }), children: automation.name });
1751
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Link, { href: generateUrl({ page: _chunkZ6T2575Ajs.Modules.EmailAutomation, id: automation.id }), children: automation.name });
1752
1752
  }, "cell"),
1753
1753
  enableSorting: false,
1754
1754
  enableHiding: false
@@ -1759,7 +1759,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1759
1759
  header: t("emailAutomations.list.columns.purpose"),
1760
1760
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1761
1761
  const automation = row.original.jsonApiData;
1762
- return automation.purpose === "service" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Badge, { variant: "softBlue", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.service") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Badge, { variant: "softGray", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.marketing") });
1762
+ return automation.purpose === "service" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Badge, { variant: "softBlue", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.service") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Badge, { variant: "softGray", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.marketing") });
1763
1763
  }, "cell"),
1764
1764
  enableSorting: false,
1765
1765
  enableHiding: false
@@ -1782,7 +1782,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1782
1782
  header: t("emailAutomations.list.columns.status"),
1783
1783
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1784
1784
  const automation = row.original.jsonApiData;
1785
- return automation.isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Badge, { variant: "softGreen", children: t("emailAutomations.list.status.on") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYGV27OAWjs.Badge, { variant: "softGray", children: t("emailAutomations.list.status.off") });
1785
+ return automation.isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Badge, { variant: "softGreen", children: t("emailAutomations.list.status.on") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWXTEAATGjs.Badge, { variant: "softGray", children: t("emailAutomations.list.status.off") });
1786
1786
  }, "cell"),
1787
1787
  enableSorting: false,
1788
1788
  enableHiding: false
@@ -1805,7 +1805,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1805
1805
  }, [params.fields, fieldColumnMap, t, generateUrl]);
1806
1806
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
1807
1807
  }, "useEmailAutomationTableStructure");
1808
- _chunkYGV27OAWjs.registerTableGenerator.call(void 0, "email-automations", useEmailAutomationTableStructure);
1808
+ _chunkWXTEAATGjs.registerTableGenerator.call(void 0, "email-automations", useEmailAutomationTableStructure);
1809
1809
 
1810
1810
  // src/features/email-automation/hooks/useEmailAutomationEnrollmentTableStructure.tsx
1811
1811
 
@@ -1862,7 +1862,7 @@ var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ej
1862
1862
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1863
1863
  const enrollment = row.original.jsonApiData;
1864
1864
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1865
- _chunkYGV27OAWjs.Badge,
1865
+ _chunkWXTEAATGjs.Badge,
1866
1866
  {
1867
1867
  variant: _nullishCoalesce(STATUS_VARIANTS[enrollment.status], () => ( "softGray")),
1868
1868
  title: enrollment.status === "failed" ? enrollment.lastError : void 0,
@@ -1913,7 +1913,7 @@ var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ej
1913
1913
  }, [params.fields, fieldColumnMap, t, locale, now]);
1914
1914
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
1915
1915
  }, "useEmailAutomationEnrollmentTableStructure");
1916
- _chunkYGV27OAWjs.registerTableGenerator.call(void 0, "email-automation-enrollments", useEmailAutomationEnrollmentTableStructure);
1916
+ _chunkWXTEAATGjs.registerTableGenerator.call(void 0, "email-automation-enrollments", useEmailAutomationEnrollmentTableStructure);
1917
1917
 
1918
1918
 
1919
1919
 
@@ -45,7 +45,7 @@ import {
45
45
  useDebounce,
46
46
  usePageUrlGenerator,
47
47
  useSidebar
48
- } from "../chunk-HU3AGUFI.mjs";
48
+ } from "../chunk-UQFDOZVF.mjs";
49
49
  import {
50
50
  useDateFormatter,
51
51
  useMountedNow