@carlonicora/nextjs-jsonapi 6.19.0 → 6.20.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 (91) hide show
  1. package/dist/{BlockNoteEditor-5HSL74IX.mjs → BlockNoteEditor-7JRJ3XWV.mjs} +5 -5
  2. package/dist/{BlockNoteEditor-6RZXGMSD.js → BlockNoteEditor-MH2D5L4A.js} +20 -20
  3. package/dist/{BlockNoteEditor-6RZXGMSD.js.map → BlockNoteEditor-MH2D5L4A.js.map} +1 -1
  4. package/dist/{BlockNoteViewer-XYKFY77F.js → BlockNoteViewer-72J3CBAH.js} +4 -4
  5. package/dist/{BlockNoteViewer-XYKFY77F.js.map → BlockNoteViewer-72J3CBAH.js.map} +1 -1
  6. package/dist/{BlockNoteViewer-X4UEVI2A.mjs → BlockNoteViewer-UKYEU3E3.mjs} +3 -3
  7. package/dist/{analytics.modules-Bsacu6ik.d.ts → analytics.modules-C4OT7fVa.d.ts} +1 -0
  8. package/dist/{analytics.modules-txdCLNG-.d.mts → analytics.modules-DEnXnRGt.d.mts} +1 -0
  9. package/dist/billing/index.js +492 -492
  10. package/dist/billing/index.mjs +4 -4
  11. package/dist/{chunk-OKBJEIOP.mjs → chunk-2U57XVNF.mjs} +1 -1
  12. package/dist/chunk-2U57XVNF.mjs.map +1 -0
  13. package/dist/{chunk-KMPBSOFB.mjs → chunk-ASORDSWQ.mjs} +50 -2
  14. package/dist/chunk-ASORDSWQ.mjs.map +1 -0
  15. package/dist/{chunk-B4ZH2FOC.js → chunk-IN2F6HI2.js} +906 -906
  16. package/dist/{chunk-B4ZH2FOC.js.map → chunk-IN2F6HI2.js.map} +1 -1
  17. package/dist/{chunk-DFA566KY.js → chunk-JAOBCIE7.js} +4 -4
  18. package/dist/{chunk-DFA566KY.js.map → chunk-JAOBCIE7.js.map} +1 -1
  19. package/dist/{chunk-YVKWACDP.mjs → chunk-LSZZIQJ5.mjs} +2 -2
  20. package/dist/{chunk-I5BQLY7V.js → chunk-MVAIYPIN.js} +9 -9
  21. package/dist/{chunk-I5BQLY7V.js.map → chunk-MVAIYPIN.js.map} +1 -1
  22. package/dist/{chunk-HEDHJAKT.mjs → chunk-NKXNOGMH.mjs} +6 -6
  23. package/dist/{chunk-OO2DBP6L.js → chunk-SGLFQ55U.js} +942 -894
  24. package/dist/chunk-SGLFQ55U.js.map +1 -0
  25. package/dist/{chunk-TY5YWBLL.mjs → chunk-SJ3K3ATF.mjs} +3 -3
  26. package/dist/{chunk-A7Y5YW7Q.js → chunk-V7CHD7QT.js} +1 -1
  27. package/dist/{chunk-A7Y5YW7Q.js.map → chunk-V7CHD7QT.js.map} +1 -1
  28. package/dist/client/index.js +5 -5
  29. package/dist/client/index.mjs +4 -4
  30. package/dist/components/index.js +5 -5
  31. package/dist/components/index.mjs +4 -4
  32. package/dist/contexts/index.js +5 -5
  33. package/dist/contexts/index.mjs +4 -4
  34. package/dist/core/index.d.mts +2 -1
  35. package/dist/core/index.d.ts +2 -1
  36. package/dist/core/index.js +3 -3
  37. package/dist/core/index.mjs +2 -2
  38. package/dist/email-automations/index.js +118 -118
  39. package/dist/email-automations/index.mjs +4 -4
  40. package/dist/features/analytics/index.d.mts +60 -3
  41. package/dist/features/analytics/index.d.ts +60 -3
  42. package/dist/features/analytics/index.js +320 -128
  43. package/dist/features/analytics/index.js.map +1 -1
  44. package/dist/features/analytics/index.mjs +314 -122
  45. package/dist/features/analytics/index.mjs.map +1 -1
  46. package/dist/features/analytics/server.js +5 -5
  47. package/dist/features/analytics/server.mjs +3 -3
  48. package/dist/features/blog/index.js +151 -151
  49. package/dist/features/blog/index.mjs +4 -4
  50. package/dist/features/blog/server.js +17 -17
  51. package/dist/features/blog/server.mjs +2 -2
  52. package/dist/features/help/index.js +38 -38
  53. package/dist/features/help/index.mjs +4 -4
  54. package/dist/features/tokenusage/index.js +127 -127
  55. package/dist/features/tokenusage/index.mjs +4 -4
  56. package/dist/index.d.mts +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +4 -4
  59. package/dist/index.mjs +3 -3
  60. package/dist/offline/index.js +14 -14
  61. package/dist/offline/index.mjs +1 -1
  62. package/dist/server/index.js +4 -4
  63. package/dist/server/index.mjs +3 -3
  64. package/messages/en.json +8 -0
  65. package/messages/it.json +8 -0
  66. package/package.json +1 -1
  67. package/src/core/registry/ModuleRegistry.ts +1 -0
  68. package/src/features/analytics/analytics.modules.ts +6 -0
  69. package/src/features/analytics/components/AnalyticsAdminContainer.tsx +20 -0
  70. package/src/features/analytics/components/AnalyticsDailyUniquesChart.tsx +224 -0
  71. package/src/features/analytics/components/__tests__/AnalyticsDailyUniquesChart.spec.tsx +88 -0
  72. package/src/features/analytics/components/__tests__/AnalyticsPageContainers.spec.tsx +22 -0
  73. package/src/features/analytics/contexts/AnalyticsAdminContext.tsx +15 -2
  74. package/src/features/analytics/contexts/__tests__/AnalyticsAdminContext.spec.tsx +38 -0
  75. package/src/features/analytics/data/AnalyticsAdminService.ts +20 -0
  76. package/src/features/analytics/data/__tests__/AnalyticsAdminService.spec.ts +15 -0
  77. package/src/features/analytics/data/__tests__/models.spec.ts +29 -0
  78. package/src/features/analytics/data/analytics-daily-unique-timeline.interface.ts +11 -0
  79. package/src/features/analytics/data/analytics-daily-unique-timeline.ts +53 -0
  80. package/src/features/analytics/data/analytics.types.ts +10 -0
  81. package/src/features/analytics/data/index.ts +2 -0
  82. package/src/features/analytics/i18n-keys.ts +8 -0
  83. package/src/features/analytics/index.ts +1 -0
  84. package/dist/chunk-KMPBSOFB.mjs.map +0 -1
  85. package/dist/chunk-OKBJEIOP.mjs.map +0 -1
  86. package/dist/chunk-OO2DBP6L.js.map +0 -1
  87. /package/dist/{BlockNoteEditor-5HSL74IX.mjs.map → BlockNoteEditor-7JRJ3XWV.mjs.map} +0 -0
  88. /package/dist/{BlockNoteViewer-X4UEVI2A.mjs.map → BlockNoteViewer-UKYEU3E3.mjs.map} +0 -0
  89. /package/dist/{chunk-YVKWACDP.mjs.map → chunk-LSZZIQJ5.mjs.map} +0 -0
  90. /package/dist/{chunk-HEDHJAKT.mjs.map → chunk-NKXNOGMH.mjs.map} +0 -0
  91. /package/dist/{chunk-TY5YWBLL.mjs.map → chunk-SJ3K3ATF.mjs.map} +0 -0
@@ -45,9 +45,9 @@
45
45
 
46
46
 
47
47
 
48
- var _chunkB4ZH2FOCjs = require('../chunk-B4ZH2FOC.js');
48
+ var _chunkIN2F6HI2js = require('../chunk-IN2F6HI2.js');
49
49
  require('../chunk-3EPNHTMH.js');
50
- require('../chunk-I5BQLY7V.js');
50
+ require('../chunk-MVAIYPIN.js');
51
51
  require('../chunk-G4JR3SFV.js');
52
52
 
53
53
 
@@ -60,12 +60,12 @@ require('../chunk-G4JR3SFV.js');
60
60
 
61
61
 
62
62
 
63
- var _chunkOO2DBP6Ljs = require('../chunk-OO2DBP6L.js');
63
+ var _chunkSGLFQ55Ujs = require('../chunk-SGLFQ55U.js');
64
64
  require('../chunk-DGN3PR2F.js');
65
65
 
66
66
 
67
67
 
68
- var _chunkA7Y5YW7Qjs = require('../chunk-A7Y5YW7Q.js');
68
+ var _chunkV7CHD7QTjs = require('../chunk-V7CHD7QT.js');
69
69
  require('../chunk-KV4N7DEG.js');
70
70
  require('../chunk-WCEYT3GG.js');
71
71
  require('../chunk-WUNSG3IN.js');
@@ -102,12 +102,12 @@ function EmailAutomationEditorInternal({
102
102
  onDialogOpenChange
103
103
  }) {
104
104
  const t = _nextintl.useTranslations.call(void 0, );
105
- const router = _chunkA7Y5YW7Qjs.useI18nRouter.call(void 0, );
105
+ const router = _chunkV7CHD7QTjs.useI18nRouter.call(void 0, );
106
106
  const isEdit = !!automation;
107
107
  const [triggers, setTriggers] = _react.useState.call(void 0, []);
108
108
  _react.useEffect.call(void 0, () => {
109
109
  let active = true;
110
- _chunkOO2DBP6Ljs.EmailAutomationService.findTriggers().then((list) => {
110
+ _chunkSGLFQ55Ujs.EmailAutomationService.findTriggers().then((list) => {
111
111
  if (active) setTriggers(list);
112
112
  }).catch(() => {
113
113
  });
@@ -156,14 +156,14 @@ function EmailAutomationEditorInternal({
156
156
  [t]
157
157
  );
158
158
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
159
- _chunkB4ZH2FOCjs.EditorSheet,
159
+ _chunkIN2F6HI2js.EditorSheet,
160
160
  {
161
161
  form,
162
162
  entityType: t("emailAutomations.admin.title"),
163
163
  entityName: _optionalChain([automation, 'optionalAccess', _8 => _8.name]),
164
164
  title: isEdit ? t("emailAutomations.admin.editAutomation") : t("emailAutomations.admin.newAutomation"),
165
165
  isEdit,
166
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomation,
166
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomation,
167
167
  size: "md",
168
168
  propagateChanges,
169
169
  onSuccess,
@@ -178,7 +178,7 @@ function EmailAutomationEditorInternal({
178
178
  isActive: values.isActive,
179
179
  purpose: values.purpose
180
180
  };
181
- return isEdit ? await _chunkOO2DBP6Ljs.EmailAutomationService.update(payload) : await _chunkOO2DBP6Ljs.EmailAutomationService.create(payload);
181
+ return isEdit ? await _chunkSGLFQ55Ujs.EmailAutomationService.update(payload) : await _chunkSGLFQ55Ujs.EmailAutomationService.create(payload);
182
182
  },
183
183
  onReset: getDefaultValues,
184
184
  trigger,
@@ -187,9 +187,9 @@ function EmailAutomationEditorInternal({
187
187
  dialogOpen,
188
188
  onDialogOpenChange,
189
189
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-4", children: [
190
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.FormInput, { form, id: "name", name: t("emailAutomations.fields.name.label"), isRequired: true }),
190
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.FormInput, { form, id: "name", name: t("emailAutomations.fields.name.label"), isRequired: true }),
191
191
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
192
- _chunkB4ZH2FOCjs.FormSelect,
192
+ _chunkIN2F6HI2js.FormSelect,
193
193
  {
194
194
  form,
195
195
  id: "purpose",
@@ -201,7 +201,7 @@ function EmailAutomationEditorInternal({
201
201
  }
202
202
  ),
203
203
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
204
- _chunkB4ZH2FOCjs.FormSelect,
204
+ _chunkIN2F6HI2js.FormSelect,
205
205
  {
206
206
  form,
207
207
  id: "trigger",
@@ -212,7 +212,7 @@ function EmailAutomationEditorInternal({
212
212
  }
213
213
  ),
214
214
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
215
- _chunkB4ZH2FOCjs.FormSelect,
215
+ _chunkIN2F6HI2js.FormSelect,
216
216
  {
217
217
  form,
218
218
  id: "exitTrigger",
@@ -222,9 +222,9 @@ function EmailAutomationEditorInternal({
222
222
  allowEmpty: true
223
223
  }
224
224
  ),
225
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.FormInput, { form, id: "replyTo", name: t("emailAutomations.fields.replyTo.label") }),
225
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.FormInput, { form, id: "replyTo", name: t("emailAutomations.fields.replyTo.label") }),
226
226
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
227
- _chunkB4ZH2FOCjs.FormSwitch,
227
+ _chunkIN2F6HI2js.FormSwitch,
228
228
  {
229
229
  form,
230
230
  id: "isActive",
@@ -248,14 +248,14 @@ var EmailAutomationEditor_default = EmailAutomationEditor;
248
248
  function EmailAutomationsList({ fullWidth } = {}) {
249
249
  const t = _nextintl.useTranslations.call(void 0, );
250
250
  const [triggers, setTriggers] = _react.useState.call(void 0, []);
251
- const data = _chunkB4ZH2FOCjs.useDataListRetriever.call(void 0, {
252
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkOO2DBP6Ljs.EmailAutomationService.findMany(params), "retriever"),
251
+ const data = _chunkIN2F6HI2js.useDataListRetriever.call(void 0, {
252
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkSGLFQ55Ujs.EmailAutomationService.findMany(params), "retriever"),
253
253
  retrieverParams: {},
254
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomation
254
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomation
255
255
  });
256
256
  _react.useEffect.call(void 0, () => {
257
257
  let active = true;
258
- _chunkOO2DBP6Ljs.EmailAutomationService.findTriggers().then((list) => {
258
+ _chunkSGLFQ55Ujs.EmailAutomationService.findTriggers().then((list) => {
259
259
  if (active) setTriggers(list);
260
260
  }).catch(() => {
261
261
  });
@@ -269,7 +269,7 @@ function EmailAutomationsList({ fullWidth } = {}) {
269
269
  );
270
270
  const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationEditor_default, {}, "create-email-automation")];
271
271
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
272
- _chunkB4ZH2FOCjs.ContentListTable,
272
+ _chunkIN2F6HI2js.ContentListTable,
273
273
  {
274
274
  data,
275
275
  fields: [
@@ -282,12 +282,12 @@ function EmailAutomationsList({ fullWidth } = {}) {
282
282
  "completed" /* completed */,
283
283
  "unsubscribed" /* unsubscribed */
284
284
  ],
285
- tableGeneratorType: _chunkA7Y5YW7Qjs.Modules.EmailAutomation,
285
+ tableGeneratorType: _chunkV7CHD7QTjs.Modules.EmailAutomation,
286
286
  functions,
287
287
  fullWidth,
288
288
  title: t("emailAutomations.admin.title"),
289
289
  context: { triggerLabels },
290
- emptyState: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.EmptyState, { icon: _lucidereact.MailIcon, title: t("emailAutomations.admin.empty") })
290
+ emptyState: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.EmptyState, { icon: _lucidereact.MailIcon, title: t("emailAutomations.admin.empty") })
291
291
  }
292
292
  );
293
293
  }
@@ -298,7 +298,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationsList, "EmailAutomationsList
298
298
  function EmailAutomationsListContainer() {
299
299
  const t = _nextintl.useTranslations.call(void 0, );
300
300
  const breadcrumbs = [{ name: t("emailAutomations.admin.title") }];
301
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SharedProvider, { value: { breadcrumbs, title: { type: t("emailAutomations.admin.title") } }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.RoundPageContainer, { module: _chunkA7Y5YW7Qjs.Modules.EmailAutomation, fullWidth: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationsList, { fullWidth: true }) }) });
301
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SharedProvider, { value: { breadcrumbs, title: { type: t("emailAutomations.admin.title") } }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.RoundPageContainer, { module: _chunkV7CHD7QTjs.Modules.EmailAutomation, fullWidth: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmailAutomationsList, { fullWidth: true }) }) });
302
302
  }
303
303
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationsListContainer, "EmailAutomationsListContainer");
304
304
 
@@ -317,8 +317,8 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
317
317
  const [selectedStepId, setSelectedStepId] = _react.useState.call(void 0, null);
318
318
  const reload = _react.useCallback.call(void 0, async () => {
319
319
  const [loadedAutomation, loadedSteps] = await Promise.all([
320
- _chunkOO2DBP6Ljs.EmailAutomationService.findOne({ id: automationId }),
321
- _chunkOO2DBP6Ljs.EmailAutomationStepService.findByAutomation({ automationId })
320
+ _chunkSGLFQ55Ujs.EmailAutomationService.findOne({ id: automationId }),
321
+ _chunkSGLFQ55Ujs.EmailAutomationStepService.findByAutomation({ automationId })
322
322
  ]);
323
323
  setAutomation(loadedAutomation);
324
324
  setSteps(loadedSteps);
@@ -328,7 +328,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
328
328
  }, [reload]);
329
329
  _react.useEffect.call(void 0, () => {
330
330
  let active = true;
331
- _chunkOO2DBP6Ljs.EmailAutomationService.findTriggers().then((list) => {
331
+ _chunkSGLFQ55Ujs.EmailAutomationService.findTriggers().then((list) => {
332
332
  if (active) setTriggers(list);
333
333
  }).catch(() => {
334
334
  });
@@ -339,7 +339,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
339
339
  const select = _react.useCallback.call(void 0, (id) => setSelectedStepId(id), []);
340
340
  const createStep = _react.useCallback.call(void 0,
341
341
  async (input) => {
342
- const saved = await _chunkOO2DBP6Ljs.EmailAutomationStepService.create({ ...input, id: _nullishCoalesce(input.id, () => ( _uuid.v4.call(void 0, ))), automationId });
342
+ const saved = await _chunkSGLFQ55Ujs.EmailAutomationStepService.create({ ...input, id: _nullishCoalesce(input.id, () => ( _uuid.v4.call(void 0, ))), automationId });
343
343
  await reload();
344
344
  return saved;
345
345
  },
@@ -347,7 +347,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
347
347
  );
348
348
  const updateStep = _react.useCallback.call(void 0,
349
349
  async (input) => {
350
- const saved = await _chunkOO2DBP6Ljs.EmailAutomationStepService.update({ ...input, automationId });
350
+ const saved = await _chunkSGLFQ55Ujs.EmailAutomationStepService.update({ ...input, automationId });
351
351
  await reload();
352
352
  return saved;
353
353
  },
@@ -355,7 +355,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
355
355
  );
356
356
  const deleteStep = _react.useCallback.call(void 0,
357
357
  async (id) => {
358
- await _chunkOO2DBP6Ljs.EmailAutomationStepService.delete({ id });
358
+ await _chunkSGLFQ55Ujs.EmailAutomationStepService.delete({ id });
359
359
  if (selectedStepId === id) setSelectedStepId(null);
360
360
  await reload();
361
361
  },
@@ -363,8 +363,8 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
363
363
  );
364
364
  const setNext = _react.useCallback.call(void 0,
365
365
  async (stepId, nextStepId) => {
366
- if (nextStepId) await _chunkOO2DBP6Ljs.EmailAutomationStepService.setNext({ stepId, nextStepId });
367
- else await _chunkOO2DBP6Ljs.EmailAutomationStepService.clearNext({ stepId });
366
+ if (nextStepId) await _chunkSGLFQ55Ujs.EmailAutomationStepService.setNext({ stepId, nextStepId });
367
+ else await _chunkSGLFQ55Ujs.EmailAutomationStepService.clearNext({ stepId });
368
368
  await reload();
369
369
  },
370
370
  [reload]
@@ -373,7 +373,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
373
373
  async (stepId, x, y) => {
374
374
  const step = steps.find((candidate) => candidate.id === stepId);
375
375
  if (!step) return;
376
- await _chunkOO2DBP6Ljs.EmailAutomationStepService.update({
376
+ await _chunkSGLFQ55Ujs.EmailAutomationStepService.update({
377
377
  id: step.id,
378
378
  automationId,
379
379
  subject: step.subject,
@@ -387,7 +387,7 @@ var EmailAutomationProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
387
387
  [automationId, reload, steps]
388
388
  );
389
389
  const tidy = _react.useCallback.call(void 0, async () => {
390
- await _chunkOO2DBP6Ljs.EmailAutomationService.tidy({ id: automationId });
390
+ await _chunkSGLFQ55Ujs.EmailAutomationService.tidy({ id: automationId });
391
391
  await reload();
392
392
  }, [automationId, reload]);
393
393
  const value = _react.useMemo.call(void 0,
@@ -442,7 +442,7 @@ function EmailAutomationActiveSwitch() {
442
442
  const toggle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (checked) => {
443
443
  setSaving(true);
444
444
  try {
445
- await _chunkOO2DBP6Ljs.EmailAutomationService.update({
445
+ await _chunkSGLFQ55Ujs.EmailAutomationService.update({
446
446
  id: automation.id,
447
447
  name: automation.name,
448
448
  trigger: automation.trigger,
@@ -452,17 +452,17 @@ function EmailAutomationActiveSwitch() {
452
452
  });
453
453
  await reload();
454
454
  } catch (error) {
455
- _chunkB4ZH2FOCjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
455
+ _chunkIN2F6HI2js.errorToast.call(void 0, { title: t("common.errors.error"), error });
456
456
  } finally {
457
457
  setSaving(false);
458
458
  }
459
459
  }, "toggle");
460
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.Tooltip, { children: [
461
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "flex items-center gap-x-2" }), children: [
462
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Switch, { checked: automation.isActive, onCheckedChange: (checked) => void toggle(checked), disabled: saving }),
460
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.Tooltip, { children: [
461
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "flex items-center gap-x-2" }), children: [
462
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Switch, { checked: automation.isActive, onCheckedChange: (checked) => void toggle(checked), disabled: saving }),
463
463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs", children: t("emailAutomations.fields.isActive.label") })
464
464
  ] }),
465
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.TooltipContent, { className: "max-w-xs", children: t("emailAutomations.fields.isActive.help") })
465
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.TooltipContent, { className: "max-w-xs", children: t("emailAutomations.fields.isActive.help") })
466
466
  ] });
467
467
  }
468
468
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationActiveSwitch, "EmailAutomationActiveSwitch");
@@ -495,7 +495,7 @@ function CanvasToolbar({ onTidy }) {
495
495
  const { zoomIn, zoomOut, fitView } = _react3.useReactFlow.call(void 0, );
496
496
  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: [
497
497
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
498
- _chunkB4ZH2FOCjs.Button,
498
+ _chunkIN2F6HI2js.Button,
499
499
  {
500
500
  type: "button",
501
501
  variant: "outline",
@@ -506,7 +506,7 @@ function CanvasToolbar({ onTidy }) {
506
506
  }
507
507
  ),
508
508
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
509
- _chunkB4ZH2FOCjs.Button,
509
+ _chunkIN2F6HI2js.Button,
510
510
  {
511
511
  type: "button",
512
512
  variant: "outline",
@@ -517,7 +517,7 @@ function CanvasToolbar({ onTidy }) {
517
517
  }
518
518
  ),
519
519
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
520
- _chunkB4ZH2FOCjs.Button,
520
+ _chunkIN2F6HI2js.Button,
521
521
  {
522
522
  type: "button",
523
523
  variant: "outline",
@@ -528,7 +528,7 @@ function CanvasToolbar({ onTidy }) {
528
528
  }
529
529
  ),
530
530
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
531
- _chunkB4ZH2FOCjs.Button,
531
+ _chunkIN2F6HI2js.Button,
532
532
  {
533
533
  type: "button",
534
534
  variant: "outline",
@@ -821,14 +821,14 @@ function EmailStepEditorInternal({
821
821
  defaultValues: getDefaultValues()
822
822
  });
823
823
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
824
- _chunkB4ZH2FOCjs.EditorSheet,
824
+ _chunkIN2F6HI2js.EditorSheet,
825
825
  {
826
826
  form,
827
827
  entityType: t("emailAutomations.step.title"),
828
828
  entityName: _optionalChain([step, 'optionalAccess', _20 => _20.subject]),
829
829
  title: isEdit ? t("emailAutomations.step.editTitle") : t("emailAutomations.step.title"),
830
830
  isEdit,
831
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomationStep,
831
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomationStep,
832
832
  size: "lg",
833
833
  onSubmit: async (values) => {
834
834
  const payload = {
@@ -840,7 +840,7 @@ function EmailStepEditorInternal({
840
840
  positionX: step ? step.positionX : _optionalChain([initialPosition, 'optionalAccess', _21 => _21.x]),
841
841
  positionY: step ? step.positionY : _optionalChain([initialPosition, 'optionalAccess', _22 => _22.y])
842
842
  };
843
- return isEdit ? await _chunkOO2DBP6Ljs.EmailAutomationStepService.update(payload) : await _chunkOO2DBP6Ljs.EmailAutomationStepService.create(payload);
843
+ return isEdit ? await _chunkSGLFQ55Ujs.EmailAutomationStepService.update(payload) : await _chunkSGLFQ55Ujs.EmailAutomationStepService.create(payload);
844
844
  },
845
845
  onSuccess: async () => {
846
846
  await reload();
@@ -853,9 +853,9 @@ function EmailStepEditorInternal({
853
853
  dialogOpen,
854
854
  onDialogOpenChange,
855
855
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-4", children: [
856
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.FormInput, { form, id: "subject", name: t("emailAutomations.step.fields.subject.label"), isRequired: true }),
856
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.FormInput, { form, id: "subject", name: t("emailAutomations.step.fields.subject.label"), isRequired: true }),
857
857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
858
- _chunkB4ZH2FOCjs.FormInput,
858
+ _chunkIN2F6HI2js.FormInput,
859
859
  {
860
860
  form,
861
861
  id: "delayHours",
@@ -865,7 +865,7 @@ function EmailStepEditorInternal({
865
865
  }
866
866
  ),
867
867
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
868
- _chunkB4ZH2FOCjs.FormTextarea,
868
+ _chunkIN2F6HI2js.FormTextarea,
869
869
  {
870
870
  form,
871
871
  id: "body",
@@ -1005,7 +1005,7 @@ var stepIdOf = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (nodeId) =>
1005
1005
  function EmailAutomationCanvas() {
1006
1006
  const { automation, steps, triggers, select, reload, createStep, deleteStep, setNext, updatePosition, tidy } = useEmailAutomation();
1007
1007
  const t = _nextintl.useTranslations.call(void 0, );
1008
- const isMobile = _chunkOO2DBP6Ljs.useIsMobile.call(void 0, );
1008
+ const isMobile = _chunkSGLFQ55Ujs.useIsMobile.call(void 0, );
1009
1009
  const [nodes, setNodes] = _react.useState.call(void 0, []);
1010
1010
  const [edges, setEdges] = _react.useState.call(void 0, []);
1011
1011
  const { screenToFlowPosition } = _react3.useReactFlow.call(void 0, );
@@ -1044,7 +1044,7 @@ function EmailAutomationCanvas() {
1044
1044
  try {
1045
1045
  await setNext(stepId, nextStepId);
1046
1046
  } catch (error) {
1047
- _chunkB4ZH2FOCjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.chainError"), error });
1047
+ _chunkIN2F6HI2js.errorToast.call(void 0, { title: t("emailAutomations.canvas.chainError"), error });
1048
1048
  await reload();
1049
1049
  }
1050
1050
  },
@@ -1058,7 +1058,7 @@ function EmailAutomationCanvas() {
1058
1058
  if (!_optionalChain([conn, 'access', _31 => _31.targetHandle, 'optionalAccess', _32 => _32.startsWith, 'call', _33 => _33(STEP_TARGET_HANDLE_PREFIX)])) return;
1059
1059
  const targetStepId = conn.targetHandle.slice(STEP_TARGET_HANDLE_PREFIX.length);
1060
1060
  if (from.handleId === TRIGGER_SOURCE_HANDLE) {
1061
- _chunkOO2DBP6Ljs.showError.call(void 0, t("emailAutomations.canvas.chainError"));
1061
+ _chunkSGLFQ55Ujs.showError.call(void 0, t("emailAutomations.canvas.chainError"));
1062
1062
  return;
1063
1063
  }
1064
1064
  if (!from.handleId.startsWith(STEP_SOURCE_HANDLE_PREFIX)) return;
@@ -1176,7 +1176,7 @@ function EmailAutomationCanvas() {
1176
1176
  try {
1177
1177
  await deleteStep(stepId);
1178
1178
  } catch (error) {
1179
- _chunkB4ZH2FOCjs.errorToast.call(void 0, { title: t("emailAutomations.canvas.deleteEmail"), error });
1179
+ _chunkIN2F6HI2js.errorToast.call(void 0, { title: t("emailAutomations.canvas.deleteEmail"), error });
1180
1180
  throw error;
1181
1181
  }
1182
1182
  }, [pendingDeleteStepId, deleteStep, t]);
@@ -1239,7 +1239,7 @@ function EmailAutomationCanvas() {
1239
1239
  }
1240
1240
  ),
1241
1241
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1242
- _chunkB4ZH2FOCjs.ConfirmDialog,
1242
+ _chunkIN2F6HI2js.ConfirmDialog,
1243
1243
  {
1244
1244
  open: pendingDeleteStepId !== null,
1245
1245
  onOpenChange: (open) => {
@@ -1254,20 +1254,20 @@ function EmailAutomationCanvas() {
1254
1254
  }
1255
1255
  ),
1256
1256
  paneMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1257
- _chunkB4ZH2FOCjs.ContextMenu,
1257
+ _chunkIN2F6HI2js.ContextMenu,
1258
1258
  {
1259
1259
  open: true,
1260
1260
  onOpenChange: (open) => {
1261
1261
  if (!open) setPaneMenu(null);
1262
1262
  },
1263
1263
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1264
- _chunkB4ZH2FOCjs.ContextMenuContent,
1264
+ _chunkIN2F6HI2js.ContextMenuContent,
1265
1265
  {
1266
1266
  anchor: pointAnchor(paneMenu.screenX, paneMenu.screenY),
1267
1267
  side: "bottom",
1268
1268
  align: "start",
1269
1269
  sideOffset: 4,
1270
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.ContextMenuItem, { onClick: handleCreateStepFromPane, children: [
1270
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.ContextMenuItem, { onClick: handleCreateStepFromPane, children: [
1271
1271
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusIcon, {}),
1272
1272
  t("emailAutomations.canvas.addEmail")
1273
1273
  ] })
@@ -1276,21 +1276,21 @@ function EmailAutomationCanvas() {
1276
1276
  }
1277
1277
  ),
1278
1278
  nodeMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1279
- _chunkB4ZH2FOCjs.ContextMenu,
1279
+ _chunkIN2F6HI2js.ContextMenu,
1280
1280
  {
1281
1281
  open: true,
1282
1282
  onOpenChange: (open) => {
1283
1283
  if (!open) setNodeMenu(null);
1284
1284
  },
1285
1285
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1286
- _chunkB4ZH2FOCjs.ContextMenuContent,
1286
+ _chunkIN2F6HI2js.ContextMenuContent,
1287
1287
  {
1288
1288
  anchor: pointAnchor(nodeMenu.screenX, nodeMenu.screenY),
1289
1289
  side: "bottom",
1290
1290
  align: "start",
1291
1291
  sideOffset: 4,
1292
1292
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1293
- _chunkB4ZH2FOCjs.ContextMenuItem,
1293
+ _chunkIN2F6HI2js.ContextMenuItem,
1294
1294
  {
1295
1295
  onClick: () => {
1296
1296
  const menu = nodeMenu;
@@ -1331,7 +1331,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TriggerAutomationEditor, "TriggerAutomation
1331
1331
  // src/features/email-automation/components/canvas/EmailAutomationCanvasTab.tsx
1332
1332
 
1333
1333
  function EmailAutomationCanvasTab() {
1334
- const { open, setOpen } = _chunkB4ZH2FOCjs.useSidebar.call(void 0, );
1334
+ const { open, setOpen } = _chunkIN2F6HI2js.useSidebar.call(void 0, );
1335
1335
  _react.useEffect.call(void 0, () => {
1336
1336
  const prev = open;
1337
1337
  if (prev) setOpen(false);
@@ -1364,11 +1364,11 @@ function EmailAutomationAddPersonDialog({
1364
1364
  const searchTermRef = _react.useRef.call(void 0, "");
1365
1365
  const [searchTerm, setSearchTerm] = _react.useState.call(void 0, "");
1366
1366
  const sentinelRef = _react.useRef.call(void 0, null);
1367
- const data = _chunkB4ZH2FOCjs.useDataListRetriever.call(void 0, {
1367
+ const data = _chunkIN2F6HI2js.useDataListRetriever.call(void 0, {
1368
1368
  ready: open,
1369
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkOO2DBP6Ljs.EmailAutomationService.findCandidates(params), "retriever"),
1369
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkSGLFQ55Ujs.EmailAutomationService.findCandidates(params), "retriever"),
1370
1370
  retrieverParams: { automationId },
1371
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomationCandidate
1371
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomationCandidate
1372
1372
  });
1373
1373
  _react.useEffect.call(void 0, () => {
1374
1374
  if (open) data.setReady(true);
@@ -1381,7 +1381,7 @@ function EmailAutomationAddPersonDialog({
1381
1381
  },
1382
1382
  [data]
1383
1383
  );
1384
- const updateSearchTerm = _chunkB4ZH2FOCjs.useDebounce.call(void 0, refreshList, 500);
1384
+ const updateSearchTerm = _chunkIN2F6HI2js.useDebounce.call(void 0, refreshList, 500);
1385
1385
  _react.useEffect.call(void 0, () => {
1386
1386
  if (open) updateSearchTerm(searchTerm);
1387
1387
  }, [open, searchTerm]);
@@ -1416,22 +1416,22 @@ function EmailAutomationAddPersonDialog({
1416
1416
  const add = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (candidate) => {
1417
1417
  if (!candidate.addable) return;
1418
1418
  try {
1419
- await _chunkOO2DBP6Ljs.EmailAutomationService.addEnrollment({
1419
+ await _chunkSGLFQ55Ujs.EmailAutomationService.addEnrollment({
1420
1420
  automationId,
1421
1421
  input: { id: _uuid.v4.call(void 0, ), recipientType: candidate.recipientType, recipientId: candidate.recipientId }
1422
1422
  });
1423
1423
  setOpen(false);
1424
- _chunkOO2DBP6Ljs.showToast.call(void 0, t("emailAutomations.recipients.addDialog.added", { email: candidate.email }));
1424
+ _chunkSGLFQ55Ujs.showToast.call(void 0, t("emailAutomations.recipients.addDialog.added", { email: candidate.email }));
1425
1425
  onAdded();
1426
1426
  } catch (error) {
1427
- _chunkB4ZH2FOCjs.errorToast.call(void 0, { title: t("common.errors.error"), error });
1427
+ _chunkIN2F6HI2js.errorToast.call(void 0, { title: t("common.errors.error"), error });
1428
1428
  }
1429
1429
  }, "add");
1430
1430
  const candidates = _nullishCoalesce(data.data, () => ( []));
1431
1431
  const addable = candidates.filter((candidate) => candidate.addable);
1432
1432
  const blocked = candidates.filter((candidate) => !candidate.addable);
1433
1433
  const renderCandidate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (candidate) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1434
- _chunkB4ZH2FOCjs.CommandItem,
1434
+ _chunkIN2F6HI2js.CommandItem,
1435
1435
  {
1436
1436
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
1437
1437
  value: candidate.id,
@@ -1440,20 +1440,20 @@ function EmailAutomationAddPersonDialog({
1440
1440
  "data-addable": candidate.addable ? "true" : "false",
1441
1441
  onSelect: () => void add(candidate),
1442
1442
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-row items-center px-4 py-1", children: [
1443
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Avatar, { className: "h-6 w-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.AvatarFallback, { children: _chunkOO2DBP6Ljs.getInitials.call(void 0, candidate.name || candidate.email) }) }) }),
1443
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Avatar, { className: "h-6 w-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.AvatarFallback, { children: _chunkSGLFQ55Ujs.getInitials.call(void 0, candidate.name || candidate.email) }) }) }),
1444
1444
  /* @__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: [
1445
1445
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm font-medium", children: candidate.name }),
1446
1446
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-xs font-normal", children: candidate.email })
1447
1447
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm font-medium", children: candidate.email }) }),
1448
1448
  candidate.addable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1449
- _chunkB4ZH2FOCjs.Badge,
1449
+ _chunkIN2F6HI2js.Badge,
1450
1450
  {
1451
1451
  variant: candidate.recipientType === "waitlist" ? "softBlue" : "softGray",
1452
1452
  className: "ms-auto shrink-0",
1453
1453
  children: t(`emailAutomations.recipients.addDialog.kind.${candidate.recipientType}`)
1454
1454
  }
1455
1455
  ) : candidate.reason && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1456
- _chunkB4ZH2FOCjs.Badge,
1456
+ _chunkIN2F6HI2js.Badge,
1457
1457
  {
1458
1458
  variant: "softAmber",
1459
1459
  className: "ms-auto shrink-0",
@@ -1466,11 +1466,11 @@ function EmailAutomationAddPersonDialog({
1466
1466
  candidate.id
1467
1467
  ), "renderCandidate");
1468
1468
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
1469
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.Dialog, { open, onOpenChange: handleOpenChange, children: [
1469
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.Dialog, { open, onOpenChange: handleOpenChange, children: [
1470
1470
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1471
- _chunkB4ZH2FOCjs.DialogTrigger,
1471
+ _chunkIN2F6HI2js.DialogTrigger,
1472
1472
  {
1473
- render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Button, { variant: "outline", size: "sm", "data-testid": "email-automation-add-person" }),
1473
+ render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Button, { variant: "outline", size: "sm", "data-testid": "email-automation-add-person" }),
1474
1474
  disabled,
1475
1475
  children: [
1476
1476
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UserPlusIcon, { className: "h-3.5 w-3.5" }),
@@ -1478,11 +1478,11 @@ function EmailAutomationAddPersonDialog({
1478
1478
  ]
1479
1479
  }
1480
1480
  ),
1481
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.DialogContent, { className: "sm:max-w-2xl", "data-testid": "email-automation-add-person-dialog", children: [
1482
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.DialogHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.DialogTitle, { children: t("emailAutomations.recipients.addDialog.title") }) }),
1483
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.Command, { shouldFilter: false, children: [
1481
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.DialogContent, { className: "sm:max-w-2xl", "data-testid": "email-automation-add-person-dialog", children: [
1482
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.DialogHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.DialogTitle, { children: t("emailAutomations.recipients.addDialog.title") }) }),
1483
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.Command, { shouldFilter: false, children: [
1484
1484
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1485
- _chunkB4ZH2FOCjs.CommandInput,
1485
+ _chunkIN2F6HI2js.CommandInput,
1486
1486
  {
1487
1487
  "data-testid": "email-automation-add-person-search",
1488
1488
  placeholder: t("emailAutomations.recipients.addDialog.search"),
@@ -1490,10 +1490,10 @@ function EmailAutomationAddPersonDialog({
1490
1490
  onValueChange: setSearchTerm
1491
1491
  }
1492
1492
  ),
1493
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.CommandList, { className: "mt-2", children: [
1494
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.CommandEmpty, { children: t("emailAutomations.recipients.addDialog.empty") }),
1495
- addable.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.addable"), children: addable.map(renderCandidate) }),
1496
- blocked.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.blocked"), children: blocked.map(renderCandidate) }),
1493
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.CommandList, { className: "mt-2", children: [
1494
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.CommandEmpty, { children: t("emailAutomations.recipients.addDialog.empty") }),
1495
+ addable.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.addable"), children: addable.map(renderCandidate) }),
1496
+ blocked.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.CommandGroup, { heading: t("emailAutomations.recipients.addDialog.groups.blocked"), children: blocked.map(renderCandidate) }),
1497
1497
  data.next && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, style: { height: 1 } })
1498
1498
  ] })
1499
1499
  ] })
@@ -1510,10 +1510,10 @@ function EmailAutomationRecipientsList() {
1510
1510
  const t = _nextintl.useTranslations.call(void 0, );
1511
1511
  const { automation, reload } = useEmailAutomation();
1512
1512
  const [statusFilter, setStatusFilter] = _react.useState.call(void 0, "all");
1513
- const data = _chunkB4ZH2FOCjs.useDataListRetriever.call(void 0, {
1514
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkOO2DBP6Ljs.EmailAutomationService.findEnrollments(params), "retriever"),
1513
+ const data = _chunkIN2F6HI2js.useDataListRetriever.call(void 0, {
1514
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkSGLFQ55Ujs.EmailAutomationService.findEnrollments(params), "retriever"),
1515
1515
  retrieverParams: { automationId: _optionalChain([automation, 'optionalAccess', _50 => _50.id]) },
1516
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomationEnrollment
1516
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomationEnrollment
1517
1517
  });
1518
1518
  const handleStatusChange = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (value) => {
1519
1519
  const status = _nullishCoalesce(value, () => ( "all"));
@@ -1543,21 +1543,21 @@ function EmailAutomationRecipientsList() {
1543
1543
  }
1544
1544
  }
1545
1545
  ),
1546
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.Select, { items: statusItems, value: statusFilter, onValueChange: handleStatusChange, children: [
1547
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectTrigger, { className: "w-40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectValue, {}) }),
1548
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.SelectContent, { children: [
1549
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "all", children: t("emailAutomations.recipients.status.all") }),
1550
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "active", children: t("emailAutomations.recipients.status.active") }),
1551
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "completed", children: t("emailAutomations.recipients.status.completed") }),
1552
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "unsubscribed", children: t("emailAutomations.recipients.status.unsubscribed") }),
1553
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "exited", children: t("emailAutomations.recipients.status.exited") }),
1554
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SelectItem, { value: "failed", children: t("emailAutomations.recipients.status.failed") })
1546
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.Select, { items: statusItems, value: statusFilter, onValueChange: handleStatusChange, children: [
1547
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectTrigger, { className: "w-40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectValue, {}) }),
1548
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.SelectContent, { children: [
1549
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "all", children: t("emailAutomations.recipients.status.all") }),
1550
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "active", children: t("emailAutomations.recipients.status.active") }),
1551
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "completed", children: t("emailAutomations.recipients.status.completed") }),
1552
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "unsubscribed", children: t("emailAutomations.recipients.status.unsubscribed") }),
1553
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "exited", children: t("emailAutomations.recipients.status.exited") }),
1554
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SelectItem, { value: "failed", children: t("emailAutomations.recipients.status.failed") })
1555
1555
  ] })
1556
1556
  ] }),
1557
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.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" : ""}` }) })
1557
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.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" : ""}` }) })
1558
1558
  ] });
1559
1559
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": "email-automation-recipients", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1560
- _chunkB4ZH2FOCjs.ContentListTable,
1560
+ _chunkIN2F6HI2js.ContentListTable,
1561
1561
  {
1562
1562
  data,
1563
1563
  fields: [
@@ -1568,7 +1568,7 @@ function EmailAutomationRecipientsList() {
1568
1568
  "nextSendAt" /* nextSendAt */,
1569
1569
  "sentCount" /* sentCount */
1570
1570
  ],
1571
- tableGeneratorType: _chunkA7Y5YW7Qjs.Modules.EmailAutomationEnrollment,
1571
+ tableGeneratorType: _chunkV7CHD7QTjs.Modules.EmailAutomationEnrollment,
1572
1572
  title: t("emailAutomations.tabs.recipients"),
1573
1573
  filters,
1574
1574
  allowSearch: false,
@@ -1586,15 +1586,15 @@ function EmailAutomationContainer({ automationId }) {
1586
1586
  _chunk7QVYU63Ejs.__name.call(void 0, EmailAutomationContainer, "EmailAutomationContainer");
1587
1587
  function EmailAutomationShell() {
1588
1588
  const t = _nextintl.useTranslations.call(void 0, );
1589
- const generateUrl = _chunkB4ZH2FOCjs.usePageUrlGenerator.call(void 0, );
1589
+ const generateUrl = _chunkIN2F6HI2js.usePageUrlGenerator.call(void 0, );
1590
1590
  const { automation, reload } = useEmailAutomation();
1591
1591
  if (!automation) return null;
1592
1592
  const breadcrumbs = [
1593
- { name: t("emailAutomations.admin.title"), href: generateUrl({ page: _chunkA7Y5YW7Qjs.Modules.EmailAutomation }) },
1593
+ { name: t("emailAutomations.admin.title"), href: generateUrl({ page: _chunkV7CHD7QTjs.Modules.EmailAutomation }) },
1594
1594
  { name: automation.name }
1595
1595
  ];
1596
1596
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1597
- _chunkB4ZH2FOCjs.SharedProvider,
1597
+ _chunkIN2F6HI2js.SharedProvider,
1598
1598
  {
1599
1599
  value: {
1600
1600
  breadcrumbs,
@@ -1608,9 +1608,9 @@ function EmailAutomationShell() {
1608
1608
  }
1609
1609
  },
1610
1610
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1611
- _chunkB4ZH2FOCjs.RoundPageContainer,
1611
+ _chunkIN2F6HI2js.RoundPageContainer,
1612
1612
  {
1613
- module: _chunkA7Y5YW7Qjs.Modules.EmailAutomation,
1613
+ module: _chunkV7CHD7QTjs.Modules.EmailAutomation,
1614
1614
  id: automation.id,
1615
1615
  fullWidth: true,
1616
1616
  forceHeader: true,
@@ -1651,12 +1651,12 @@ function EmailUnsubscribe({ token, scope, source = "automation" }) {
1651
1651
  async function unsubscribe() {
1652
1652
  try {
1653
1653
  if (source === "blast") {
1654
- await _chunkOO2DBP6Ljs.EmailBlastDeliveryService.unsubscribe({ token });
1654
+ await _chunkSGLFQ55Ujs.EmailBlastDeliveryService.unsubscribe({ token });
1655
1655
  setStoppedScope("all");
1656
1656
  setState("success");
1657
1657
  return;
1658
1658
  }
1659
- const enrollment = await _chunkOO2DBP6Ljs.EmailAutomationEnrollmentService.unsubscribe({ token, scope });
1659
+ const enrollment = await _chunkSGLFQ55Ujs.EmailAutomationEnrollmentService.unsubscribe({ token, scope });
1660
1660
  setAutomationName(_nullishCoalesce(_optionalChain([enrollment, 'optionalAccess', _51 => _51.automation, 'optionalAccess', _52 => _52.name]), () => ( "")));
1661
1661
  setIsServiceAutomation(_optionalChain([enrollment, 'optionalAccess', _53 => _53.automation, 'optionalAccess', _54 => _54.purpose]) === "service");
1662
1662
  setStoppedScope(scope);
@@ -1671,7 +1671,7 @@ function EmailUnsubscribe({ token, scope, source = "automation" }) {
1671
1671
  const stopAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
1672
1672
  setIsStoppingAll(true);
1673
1673
  try {
1674
- await _chunkOO2DBP6Ljs.EmailAutomationEnrollmentService.unsubscribe({ token, scope: "all" });
1674
+ await _chunkSGLFQ55Ujs.EmailAutomationEnrollmentService.unsubscribe({ token, scope: "all" });
1675
1675
  setStoppedScope("all");
1676
1676
  } catch (e3) {
1677
1677
  setState("error");
@@ -1688,16 +1688,16 @@ function EmailUnsubscribe({ token, scope, source = "automation" }) {
1688
1688
  if (state === "error") {
1689
1689
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center space-y-4 py-16 text-center", children: [
1690
1690
  /* @__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" }) }),
1691
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.invalidTitle") }),
1691
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.invalidTitle") }),
1692
1692
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: t("emailAutomations.unsubscribe.invalidBody") })
1693
1693
  ] });
1694
1694
  }
1695
1695
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center space-y-4 py-16 text-center", children: [
1696
1696
  /* @__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" }) }),
1697
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.title") }),
1697
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.SectionHeader, { level: 2, children: t("emailAutomations.unsubscribe.title") }),
1698
1698
  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: [
1699
1699
  /* @__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 }) }),
1700
- !isServiceAutomation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4ZH2FOCjs.Button, { variant: "secondary", onClick: stopAll, disabled: isStoppingAll, children: [
1700
+ !isServiceAutomation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIN2F6HI2js.Button, { variant: "secondary", onClick: stopAll, disabled: isStoppingAll, children: [
1701
1701
  isStoppingAll && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }),
1702
1702
  t("emailAutomations.unsubscribe.alsoStopAll")
1703
1703
  ] })
@@ -1712,7 +1712,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, EmailUnsubscribe, "EmailUnsubscribe");
1712
1712
 
1713
1713
  var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
1714
1714
  const t = _nextintl.useTranslations.call(void 0, );
1715
- const generateUrl = _chunkB4ZH2FOCjs.usePageUrlGenerator.call(void 0, );
1715
+ const generateUrl = _chunkIN2F6HI2js.usePageUrlGenerator.call(void 0, );
1716
1716
  const triggerLabels = _nullishCoalesce(_optionalChain([params, 'access', _55 => _55.context, 'optionalAccess', _56 => _56.triggerLabels]), () => ( {}));
1717
1717
  const tableData = _react.useMemo.call(void 0, () => {
1718
1718
  return params.data.map((automation) => {
@@ -1741,7 +1741,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1741
1741
  header: t("emailAutomations.list.columns.name"),
1742
1742
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1743
1743
  const automation = row.original.jsonApiData;
1744
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Link, { href: generateUrl({ page: _chunkA7Y5YW7Qjs.Modules.EmailAutomation, id: automation.id }), children: automation.name });
1744
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Link, { href: generateUrl({ page: _chunkV7CHD7QTjs.Modules.EmailAutomation, id: automation.id }), children: automation.name });
1745
1745
  }, "cell"),
1746
1746
  enableSorting: false,
1747
1747
  enableHiding: false
@@ -1752,7 +1752,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1752
1752
  header: t("emailAutomations.list.columns.purpose"),
1753
1753
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1754
1754
  const automation = row.original.jsonApiData;
1755
- return automation.purpose === "service" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Badge, { variant: "softBlue", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.service") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Badge, { variant: "softGray", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.marketing") });
1755
+ return automation.purpose === "service" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Badge, { variant: "softBlue", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.service") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Badge, { variant: "softGray", "data-testid": "email-automation-purpose-badge", children: t("emailPurpose.marketing") });
1756
1756
  }, "cell"),
1757
1757
  enableSorting: false,
1758
1758
  enableHiding: false
@@ -1775,7 +1775,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1775
1775
  header: t("emailAutomations.list.columns.status"),
1776
1776
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1777
1777
  const automation = row.original.jsonApiData;
1778
- return automation.isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Badge, { variant: "softGreen", children: t("emailAutomations.list.status.on") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4ZH2FOCjs.Badge, { variant: "softGray", children: t("emailAutomations.list.status.off") });
1778
+ return automation.isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Badge, { variant: "softGreen", children: t("emailAutomations.list.status.on") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIN2F6HI2js.Badge, { variant: "softGray", children: t("emailAutomations.list.status.off") });
1779
1779
  }, "cell"),
1780
1780
  enableSorting: false,
1781
1781
  enableHiding: false
@@ -1798,7 +1798,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
1798
1798
  }, [params.fields, fieldColumnMap, t, generateUrl]);
1799
1799
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
1800
1800
  }, "useEmailAutomationTableStructure");
1801
- _chunkB4ZH2FOCjs.registerTableGenerator.call(void 0, "email-automations", useEmailAutomationTableStructure);
1801
+ _chunkIN2F6HI2js.registerTableGenerator.call(void 0, "email-automations", useEmailAutomationTableStructure);
1802
1802
 
1803
1803
  // src/features/email-automation/hooks/useEmailAutomationEnrollmentTableStructure.tsx
1804
1804
 
@@ -1813,7 +1813,7 @@ var STATUS_VARIANTS = {
1813
1813
  };
1814
1814
  var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
1815
1815
  const t = _nextintl.useTranslations.call(void 0, );
1816
- const locale = _chunkOO2DBP6Ljs.dateFormatLocale.call(void 0, _nextintl.useLocale.call(void 0, ));
1816
+ const locale = _chunkSGLFQ55Ujs.dateFormatLocale.call(void 0, _nextintl.useLocale.call(void 0, ));
1817
1817
  const tableData = _react.useMemo.call(void 0, () => {
1818
1818
  return params.data.map((enrollment) => {
1819
1819
  const entry = { jsonApiData: enrollment };
@@ -1854,7 +1854,7 @@ var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ej
1854
1854
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1855
1855
  const enrollment = row.original.jsonApiData;
1856
1856
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1857
- _chunkB4ZH2FOCjs.Badge,
1857
+ _chunkIN2F6HI2js.Badge,
1858
1858
  {
1859
1859
  variant: _nullishCoalesce(STATUS_VARIANTS[enrollment.status], () => ( "softGray")),
1860
1860
  title: enrollment.status === "failed" ? enrollment.lastError : void 0,
@@ -1883,7 +1883,7 @@ var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ej
1883
1883
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
1884
1884
  const enrollment = row.original.jsonApiData;
1885
1885
  if (!enrollment.nextSendAt) return empty;
1886
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs tabular-nums", children: _chunkOO2DBP6Ljs.formatDate.call(void 0, enrollment.nextSendAt, "dateTime", locale) });
1886
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs tabular-nums", children: _chunkSGLFQ55Ujs.formatDate.call(void 0, enrollment.nextSendAt, "dateTime", locale) });
1887
1887
  }, "cell"),
1888
1888
  enableSorting: false,
1889
1889
  enableHiding: false
@@ -1905,7 +1905,7 @@ var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ej
1905
1905
  }, [params.fields, fieldColumnMap, t, locale]);
1906
1906
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
1907
1907
  }, "useEmailAutomationEnrollmentTableStructure");
1908
- _chunkB4ZH2FOCjs.registerTableGenerator.call(void 0, "email-automation-enrollments", useEmailAutomationEnrollmentTableStructure);
1908
+ _chunkIN2F6HI2js.registerTableGenerator.call(void 0, "email-automation-enrollments", useEmailAutomationEnrollmentTableStructure);
1909
1909
 
1910
1910
 
1911
1911