@sensinum/strapi-plugin-xecp 5.0.2 → 5.1.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 (29) hide show
  1. package/README.md +19 -16
  2. package/dist/admin/{App-COKB0PXI.mjs → App-DnN-IvA2.mjs} +508 -519
  3. package/dist/admin/App-fzbS9IJs.js +30 -0
  4. package/dist/admin/TruncatedTypography-BIh1V9g2.mjs +49 -0
  5. package/dist/admin/TruncatedTypography-IG2-4h8c.js +12 -0
  6. package/dist/admin/{de-Bc7t3sCO.mjs → de-CXusi8Qg.mjs} +4 -1
  7. package/dist/admin/{de-B5M8juGn.js → de-DB2gq7qr.js} +1 -1
  8. package/dist/admin/{en-DXWBDgkB.js → en-BuzP59R9.js} +1 -1
  9. package/dist/admin/{en-16Qqparh.mjs → en-Dw6HZo7C.mjs} +4 -1
  10. package/dist/admin/{fr-CMzm8jIl.mjs → fr-CyBDGDh1.mjs} +4 -1
  11. package/dist/admin/{fr-CPWgcURq.js → fr-ISZXcmX2.js} +1 -1
  12. package/dist/admin/index-BPA-rtqa.js +1 -0
  13. package/dist/admin/{index-Bgk0cBQK.mjs → index-CUUBtl-O.mjs} +5 -5
  14. package/dist/admin/{index-ogQgaRcB.js → index-CzhrALSL.js} +1 -1
  15. package/dist/admin/index-DDj2bCYO.mjs +653 -0
  16. package/dist/admin/{index-BNa83Wfu.js → index-DGBlS60G.js} +1 -1
  17. package/dist/admin/{index-DQgqKBmR.mjs → index-Dr164lAs.mjs} +1 -1
  18. package/dist/admin/index.js +1 -1
  19. package/dist/admin/index.mjs +1 -1
  20. package/dist/admin/{pl-Blw4wk9g.js → pl-Ds5SR76s.js} +1 -1
  21. package/dist/admin/{pl-CuTaHdsS.mjs → pl-mwGoOpdR.mjs} +4 -1
  22. package/dist/server/index.js +7 -10
  23. package/dist/server/index.mjs +7873 -7787
  24. package/package.json +1 -1
  25. package/dist/admin/App-CxQAwCC4.js +0 -30
  26. package/dist/admin/TruncatedTypography-72wp11m4.js +0 -12
  27. package/dist/admin/TruncatedTypography-Df3hMZdB.mjs +0 -34
  28. package/dist/admin/index-BnS-25UL.mjs +0 -610
  29. package/dist/admin/index-C0CxNaV6.js +0 -1
@@ -1,50 +1,50 @@
1
- import { jsx as o, jsxs as u, Fragment as A } from "react/jsx-runtime";
2
- import { useFetchClient as k, useRBAC as St, useQueryParams as Ct, Page as Z, Layouts as Qe, Pagination as Ee } from "@strapi/strapi/admin";
3
- import { Link as Me, Routes as bt, Route as He } from "react-router-dom";
4
- import { U as _, g as a, P as ke } from "./index-Bgk0cBQK.mjs";
5
- import { L as wt, S as It, P as Et, Q as vt } from "./queryKeys-rUHP1d6p.mjs";
6
- import { Combobox as Tt, ComboboxOption as kt, Modal as N, Button as E, Flex as f, Typography as h, Link as Re, EmptyStateLayout as W, Tooltip as qe, Checkbox as Le, Badge as z, Table as _e, Thead as Ke, Tr as H, Th as F, Tbody as De, Td as v, Accordion as q, Divider as xt, Box as Mt, ProgressBar as Rt, Loader as ve } from "@strapi/design-system";
7
- import { WarningCircle as Ae, Information as qt } from "@strapi/icons";
8
- import { useState as L, useEffect as ne, Fragment as Lt, useMemo as Je, useRef as Ze, useCallback as Ve } from "react";
1
+ import { jsx as n, jsxs as u, Fragment as A } from "react/jsx-runtime";
2
+ import { useFetchClient as k, useRBAC as Pt, useQueryParams as St, Page as Z, Layouts as Qe, Pagination as Ee } from "@strapi/strapi/admin";
3
+ import { Link as Re, Routes as Ct, Route as He } from "react-router-dom";
4
+ import { U as _, g as a, P as ke } from "./index-CUUBtl-O.mjs";
5
+ import { L as bt, S as It, P as wt, Q as Et } from "./queryKeys-rUHP1d6p.mjs";
6
+ import { Combobox as Tt, ComboboxOption as vt, Modal as N, Button as E, Flex as f, Typography as h, Link as Me, EmptyStateLayout as W, Tooltip as qe, Checkbox as Le, Badge as z, Table as _e, Thead as Ke, Tr as H, Th as F, Tbody as De, Td as T, Accordion as q, Divider as kt, Box as xt, ProgressBar as Rt, Loader as Te } from "@strapi/design-system";
7
+ import { WarningCircle as Ae, Information as Mt } from "@strapi/icons";
8
+ import { useState as L, useEffect as ne, Fragment as qt, useMemo as Je, useRef as Ze, useCallback as Ve } from "react";
9
9
  import { useIntl as b } from "react-intl";
10
10
  import ae from "zod";
11
- import { A as I, T as V } from "./TruncatedTypography-Df3hMZdB.mjs";
12
- import { useQuery as U, useQueryClient as oe, useMutation as ue } from "@tanstack/react-query";
11
+ import { f as ue, A as w, T as V, a as Lt } from "./TruncatedTypography-BIh1V9g2.mjs";
12
+ import { useQuery as U, useQueryClient as oe, useMutation as me } from "@tanstack/react-query";
13
13
  import Be from "styled-components";
14
14
  const _t = 120 * 1e3, Kt = () => {
15
15
  const { get: e } = k();
16
16
  return U({
17
- queryKey: [wt, "status"],
17
+ queryKey: [bt, "status"],
18
18
  staleTime: _t,
19
19
  queryFn: async () => {
20
20
  const { data: t } = await e(`/${_}/license/status`);
21
21
  return t;
22
22
  }
23
23
  });
24
- }, Ye = (e, t) => t ? e.find((n) => n.value === t)?.label ?? "" : "", Dt = ({ name: e, onClear: t, onChange: n, options: r, value: i, placeholder: s, disabled: l }) => {
24
+ }, Ye = (e, t) => t ? e.find((o) => o.value === t)?.label ?? "" : "", Dt = ({ name: e, onClear: t, onChange: o, options: r, value: i, placeholder: s, disabled: l }) => {
25
25
  const [c, d] = L(() => Ye(r, i));
26
26
  return ne(() => {
27
27
  d(Ye(r, i));
28
- }, [i, r]), /* @__PURE__ */ o(
28
+ }, [i, r]), /* @__PURE__ */ n(
29
29
  Tt,
30
30
  {
31
31
  name: e,
32
32
  autocomplete: "list",
33
33
  onClear: t,
34
- onChange: n,
34
+ onChange: o,
35
35
  placeholder: s,
36
36
  onTextValueChange: d,
37
37
  value: i,
38
38
  textValue: c,
39
39
  disabled: l,
40
40
  width: "100%",
41
- children: r.map(({ key: m, label: p, value: y }) => /* @__PURE__ */ o(kt, { value: y, children: p }, m))
41
+ children: r.map(({ key: m, label: p, value: y }) => /* @__PURE__ */ n(vt, { value: y, children: p }, m))
42
42
  }
43
43
  );
44
- }, At = "90vh", me = ({
44
+ }, At = "90vh", ge = ({
45
45
  open: e,
46
46
  onClose: t,
47
- title: n,
47
+ title: o,
48
48
  children: r,
49
49
  isConfirmButtonLoading: i = !1,
50
50
  confirmButtonText: s,
@@ -55,12 +55,12 @@ const _t = 120 * 1e3, Kt = () => {
55
55
  fillMaxHeight: p = !1
56
56
  }) => {
57
57
  const { formatMessage: y } = b();
58
- return /* @__PURE__ */ o(N.Root, { open: e, onOpenChange: () => t(), children: /* @__PURE__ */ u(N.Content, { style: p ? { height: At } : void 0, children: [
59
- /* @__PURE__ */ o(N.Header, { children: /* @__PURE__ */ o(N.Title, { children: n }) }),
60
- /* @__PURE__ */ o(N.Body, { children: r }),
61
- /* @__PURE__ */ o(N.Footer, { style: m ? void 0 : { justifyContent: "flex-end" }, children: m ? /* @__PURE__ */ u(A, { children: [
62
- /* @__PURE__ */ o(N.Close, { children: /* @__PURE__ */ o(E, { variant: "tertiary", onClick: t, children: d || y({ id: a("common.button.close") }) }) }),
63
- /* @__PURE__ */ o(
58
+ return /* @__PURE__ */ n(N.Root, { open: e, onOpenChange: () => t(), children: /* @__PURE__ */ u(N.Content, { style: p ? { height: At } : void 0, children: [
59
+ /* @__PURE__ */ n(N.Header, { children: /* @__PURE__ */ n(N.Title, { children: o }) }),
60
+ /* @__PURE__ */ n(N.Body, { children: r }),
61
+ /* @__PURE__ */ n(N.Footer, { style: m ? void 0 : { justifyContent: "flex-end" }, children: m ? /* @__PURE__ */ u(A, { children: [
62
+ /* @__PURE__ */ n(N.Close, { children: /* @__PURE__ */ n(E, { variant: "tertiary", onClick: t, children: d || y({ id: a("common.button.close") }) }) }),
63
+ /* @__PURE__ */ n(
64
64
  E,
65
65
  {
66
66
  loading: i,
@@ -69,68 +69,57 @@ const _t = 120 * 1e3, Kt = () => {
69
69
  children: s || y({ id: a("common.button.submit") })
70
70
  }
71
71
  )
72
- ] }) : /* @__PURE__ */ o(N.Close, { children: /* @__PURE__ */ o(E, { variant: "tertiary", onClick: t, children: d || y({ id: a("common.button.close") }) }) }) })
72
+ ] }) : /* @__PURE__ */ n(N.Close, { children: /* @__PURE__ */ n(E, { variant: "tertiary", onClick: t, children: d || y({ id: a("common.button.close") }) }) }) })
73
73
  ] }) });
74
- }, We = (e) => /^[\w]+(?:\.[\w]+)+$/.test(e), Bt = (e) => {
75
- if (typeof e != "object" || e === null)
76
- return;
77
- const t = e.response?.data?.error?.message;
78
- if (typeof t == "string")
79
- return t;
80
- const n = e.message;
81
- return typeof n == "string" ? n : void 0;
82
- }, ge = (e, t) => {
83
- const n = Bt(e);
84
- return n && We(n) ? t({ id: a(n) }) : t({ id: a("homePage.error") });
85
- }, Nt = (e, t) => e && We(e) ? t({ id: a(e) }) : null, ee = {
74
+ }, ee = {
86
75
  all: ["sync"],
87
76
  lists: () => [...ee.all, "list"],
88
77
  list: (e) => [...ee.lists(), { uid: e }]
89
- }, ze = "entities-comparison", Ft = ({
78
+ }, We = "entities-comparison", Bt = ({
90
79
  uid: e,
91
80
  page: t = 1,
92
- pageSize: n = 10,
81
+ pageSize: o = 10,
93
82
  enabled: r = !0
94
83
  }) => {
95
84
  const { get: i } = k();
96
85
  return U({
97
- queryKey: [ze, { uid: e, page: t, pageSize: n }],
86
+ queryKey: [We, { uid: e, page: t, pageSize: o }],
98
87
  queryFn: async () => {
99
88
  const { data: s } = await i(
100
- `/${_}/entity-comparison/${e}?page=${t}&pageSize=${n}`
89
+ `/${_}/entity-comparison/${e}?page=${t}&pageSize=${o}`
101
90
  );
102
91
  return s;
103
92
  },
104
93
  enabled: !!e && r
105
94
  });
106
- }, et = (e) => {
107
- e.invalidateQueries({ queryKey: [ze] });
95
+ }, ze = (e) => {
96
+ e.invalidateQueries({ queryKey: [We] });
108
97
  }, he = (e, t) => {
109
- e.invalidateQueries({ queryKey: t ? ee.list(t) : ee.lists() }), et(e);
110
- }, Ot = () => {
98
+ e.invalidateQueries({ queryKey: t ? ee.list(t) : ee.lists() }), ze(e);
99
+ }, Nt = () => {
111
100
  const { post: e } = k(), t = oe();
112
- return ue({
113
- mutationFn: async (n) => await e(`/${_}/snapshot/${n}/sync`),
114
- onSuccess: (n, r) => {
101
+ return me({
102
+ mutationFn: async (o) => await e(`/${_}/snapshot/${o}/sync`),
103
+ onSuccess: (o, r) => {
115
104
  he(t, r);
116
105
  }
117
106
  });
118
- }, tt = ({ open: e, onClose: t, contentTypeUid: n }) => {
107
+ }, et = ({ open: e, onClose: t, contentTypeUid: o }) => {
119
108
  const { formatMessage: r } = b(), {
120
109
  mutate: i,
121
110
  isPending: s,
122
111
  error: l,
123
112
  reset: c
124
- } = Ot();
125
- return /* @__PURE__ */ o(
126
- me,
113
+ } = Nt();
114
+ return /* @__PURE__ */ n(
115
+ ge,
127
116
  {
128
117
  open: e,
129
118
  onClose: () => {
130
119
  t(), c();
131
120
  },
132
121
  onSubmit: () => {
133
- i(n, {
122
+ i(o, {
134
123
  onSuccess: t
135
124
  });
136
125
  },
@@ -140,20 +129,20 @@ const _t = 120 * 1e3, Kt = () => {
140
129
  confirmButtonText: r({
141
130
  id: a("homePage.modal.getNewSnapshot.confirmButtonText")
142
131
  }),
143
- isConfirmButtonDisabled: s || !n,
132
+ isConfirmButtonDisabled: s || !o,
144
133
  isConfirmButtonLoading: s,
145
134
  children: /* @__PURE__ */ u(f, { direction: "column", gap: 4, alignItems: "stretch", children: [
146
- /* @__PURE__ */ o(h, { variant: "omega", children: r({
135
+ /* @__PURE__ */ n(h, { variant: "omega", children: r({
147
136
  id: a("homePage.modal.getNewSnapshot.description")
148
137
  }) }),
149
- l && /* @__PURE__ */ o(h, { variant: "omega", textColor: "danger500", children: ge(l, r) })
138
+ l && /* @__PURE__ */ n(h, { variant: "omega", textColor: "danger500", children: ue(l, r) })
150
139
  ] })
151
140
  }
152
141
  );
153
- }, Ut = ({
142
+ }, Ft = ({
154
143
  contentTypeUid: e,
155
144
  selectedPromotionsLength: t,
156
- syncedAt: n,
145
+ syncedAt: o,
157
146
  isGetSnapshotDisabled: r = !1,
158
147
  hasSnapshot: i,
159
148
  clearSelectedPromotions: s,
@@ -170,20 +159,20 @@ const _t = 120 * 1e3, Kt = () => {
170
159
  marginTop: 1,
171
160
  children: [
172
161
  e && i ? /* @__PURE__ */ u(f, { direction: "row", gap: 3, alignItems: "center", children: [
173
- /* @__PURE__ */ o(h, { variant: "omega", children: c(
162
+ /* @__PURE__ */ n(h, { variant: "omega", children: c(
174
163
  { id: a("homePage.selectedEntities") },
175
164
  { count: t }
176
165
  ) }),
177
- t > 0 && l ? /* @__PURE__ */ o(E, { variant: "secondary", onClick: s, children: c({ id: a("homePage.clearSelectedEntities") }) }) : null
166
+ t > 0 && l ? /* @__PURE__ */ n(E, { variant: "secondary", onClick: s, children: c({ id: a("homePage.clearSelectedEntities") }) }) : null
178
167
  ] }) : null,
179
- n ? /* @__PURE__ */ u(f, { direction: "row", gap: 3, alignItems: "center", children: [
180
- /* @__PURE__ */ o(h, { variant: "omega", textColor: "neutral600", children: c(
168
+ o ? /* @__PURE__ */ u(f, { direction: "row", gap: 3, alignItems: "center", children: [
169
+ /* @__PURE__ */ n(h, { variant: "omega", textColor: "neutral600", children: c(
181
170
  { id: a("homePage.lastSync") },
182
171
  {
183
- lastSync: new Date(n).toLocaleString()
172
+ lastSync: new Date(o).toLocaleString()
184
173
  }
185
174
  ) }),
186
- l ? /* @__PURE__ */ o(
175
+ l ? /* @__PURE__ */ n(
187
176
  E,
188
177
  {
189
178
  variant: "secondary",
@@ -195,8 +184,8 @@ const _t = 120 * 1e3, Kt = () => {
195
184
  }
196
185
  ) : null
197
186
  ] }) : null,
198
- l ? /* @__PURE__ */ o(
199
- tt,
187
+ l ? /* @__PURE__ */ n(
188
+ et,
200
189
  {
201
190
  open: d,
202
191
  onClose: () => m(!1),
@@ -206,10 +195,10 @@ const _t = 120 * 1e3, Kt = () => {
206
195
  ]
207
196
  }
208
197
  );
209
- }, $t = ({ canReadSettings: e }) => {
198
+ }, Ot = ({ canReadSettings: e }) => {
210
199
  const { formatMessage: t } = b();
211
- return /* @__PURE__ */ o(
212
- I,
200
+ return /* @__PURE__ */ n(
201
+ w,
213
202
  {
214
203
  title: t({ id: a("homePage.alert.invalidLicense.title") }),
215
204
  variant: "danger",
@@ -218,32 +207,32 @@ const _t = 120 * 1e3, Kt = () => {
218
207
  e ? "homePage.alert.invalidLicense.description" : "homePage.alert.invalidLicense.readOnlyDescription"
219
208
  )
220
209
  }),
221
- action: e ? /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(Re, { tag: Me, to: "/settings/xecp/about", children: t({ id: a("homePage.alert.invalidLicense.linkText") }) }) }) : void 0
210
+ action: e ? /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(Me, { tag: Re, to: "/settings/xecp/about", children: t({ id: a("homePage.alert.invalidLicense.linkText") }) }) }) : void 0
222
211
  }
223
212
  );
224
- }, Gt = ({ compareSchemasData: e, errorCompareSchemas: t }) => {
225
- const { formatMessage: n } = b(), r = e && !e?.isMatch, i = () => n(r ? { id: a("homePage.alert.schemaMismatch.title") } : { id: a("homePage.error") }), s = () => {
213
+ }, Ut = ({ compareSchemasData: e, errorCompareSchemas: t }) => {
214
+ const { formatMessage: o } = b(), r = e && !e?.isMatch, i = () => o(r ? { id: a("homePage.alert.schemaMismatch.title") } : { id: a("homePage.error") }), s = () => {
226
215
  switch (!0) {
227
216
  case r:
228
- return n({ id: a("homePage.alert.schemaMismatch.description") });
217
+ return o({ id: a("homePage.alert.schemaMismatch.description") });
229
218
  case !!t:
230
219
  return t;
231
220
  default:
232
- return n({ id: a("homePage.somethingWentWrong") });
221
+ return o({ id: a("homePage.somethingWentWrong") });
233
222
  }
234
223
  };
235
- return /* @__PURE__ */ o(I, { title: i(), variant: "danger", children: s() });
236
- }, Qt = ({
224
+ return /* @__PURE__ */ n(w, { title: i(), variant: "danger", children: s() });
225
+ }, $t = ({
237
226
  contentTypeUid: e,
238
227
  hasExistingSnapshot: t,
239
- unconfiguredRelationsError: n,
228
+ unconfiguredRelationsError: o,
240
229
  isGetSnapshotDisabled: r = !1,
241
230
  canExecute: i,
242
231
  canReadSettings: s
243
232
  }) => {
244
233
  const { formatMessage: l } = b(), [c, d] = L(!1);
245
- return !t && !n ? /* @__PURE__ */ u(A, { children: [
246
- /* @__PURE__ */ o(
234
+ return !t && !o ? /* @__PURE__ */ u(A, { children: [
235
+ /* @__PURE__ */ n(
247
236
  W,
248
237
  {
249
238
  content: l({
@@ -251,7 +240,7 @@ const _t = 120 * 1e3, Kt = () => {
251
240
  i ? "homePage.alert.noSync.description" : "homePage.alert.noSync.readOnlyDescription"
252
241
  )
253
242
  }),
254
- action: i ? /* @__PURE__ */ o(
243
+ action: i ? /* @__PURE__ */ n(
255
244
  E,
256
245
  {
257
246
  onClick: () => d(!0),
@@ -261,8 +250,8 @@ const _t = 120 * 1e3, Kt = () => {
261
250
  ) : void 0
262
251
  }
263
252
  ),
264
- i ? /* @__PURE__ */ o(
265
- tt,
253
+ i ? /* @__PURE__ */ n(
254
+ et,
266
255
  {
267
256
  open: c,
268
257
  onClose: () => d(!1),
@@ -270,14 +259,14 @@ const _t = 120 * 1e3, Kt = () => {
270
259
  }
271
260
  ) : null
272
261
  ] }) : /* @__PURE__ */ u(A, { children: [
273
- n ? /* @__PURE__ */ o(
274
- I,
262
+ o ? /* @__PURE__ */ n(
263
+ w,
275
264
  {
276
265
  title: l({
277
266
  id: a("homePage.alert.unconfiguredRelations.title")
278
267
  }),
279
268
  variant: "danger",
280
- action: s ? /* @__PURE__ */ o(Re, { tag: Me, to: "/settings/xecp/configuration", children: l({
269
+ action: s ? /* @__PURE__ */ n(Me, { tag: Re, to: "/settings/xecp/configuration", children: l({
281
270
  id: a("homePage.alert.unconfiguredRelations.linkText")
282
271
  }) }) : void 0,
283
272
  description: l(
@@ -286,19 +275,19 @@ const _t = 120 * 1e3, Kt = () => {
286
275
  s ? "homePage.alert.unconfiguredRelations.description" : "homePage.alert.unconfiguredRelations.readOnlyDescription"
287
276
  )
288
277
  },
289
- { relations: n.unconfiguredRelations.join(", ") }
278
+ { relations: o.unconfiguredRelations.join(", ") }
290
279
  )
291
280
  }
292
281
  ) : null,
293
- /* @__PURE__ */ o(W, { content: l({ id: a("homePage.emptyState") }) })
282
+ /* @__PURE__ */ n(W, { content: l({ id: a("homePage.emptyState") }) })
294
283
  ] });
295
284
  }, Ne = (e) => [
296
285
  e,
297
286
  ...e.localizations ?? []
298
- ], nt = (e) => (e ?? []).flatMap(Ne), Ht = (e, t) => {
299
- const n = t?.find((r) => r.documentId === e);
300
- return n ? Ne(n) : [];
301
- }, Vt = (e) => {
287
+ ], tt = (e) => (e ?? []).flatMap(Ne), Gt = (e, t) => {
288
+ const o = t?.find((r) => r.documentId === e);
289
+ return o ? Ne(o) : [];
290
+ }, Qt = (e) => {
302
291
  const t = e[0];
303
292
  return t ? {
304
293
  ...t,
@@ -306,24 +295,24 @@ const _t = 120 * 1e3, Kt = () => {
306
295
  } : null;
307
296
  }, pe = (e, t) => {
308
297
  if (!t) return e.uniqueKeyValue;
309
- const n = e?.[t];
310
- return typeof n == "string" || typeof n == "number" ? String(n) : e.uniqueKeyValue;
298
+ const o = e?.[t];
299
+ return typeof o == "string" || typeof o == "number" ? String(o) : e.uniqueKeyValue;
311
300
  }, se = (e) => ({
312
301
  documentId: e.documentId,
313
302
  locale: e.locale ?? "default"
314
- }), te = (e, t) => e.documentId === t.documentId && e.locale === t.locale, ce = (e, t) => t.some((n) => te(n, se(e))), Yt = (e) => [...new Set(e.map((t) => t.documentId))], jt = (e, t) => {
303
+ }), te = (e, t) => e.documentId === t.documentId && e.locale === t.locale, ce = (e, t) => t.some((o) => te(o, se(e))), Ht = (e) => [...new Set(e.map((t) => t.documentId))], Vt = (e, t) => {
315
304
  if (e.length === 0)
316
305
  return !1;
317
- const n = e.filter((r) => t.has(r)).length;
318
- return n === 0 ? !1 : n === e.length ? !0 : "indeterminate";
319
- }, Xt = (e, t) => {
320
- const n = new Set(t);
321
- return new Set([...e].filter((r) => n.has(r)));
322
- }, Jt = "homePage.missingUniqueKey", le = {
306
+ const o = e.filter((r) => t.has(r)).length;
307
+ return o === 0 ? !1 : o === e.length ? !0 : "indeterminate";
308
+ }, Yt = (e, t) => {
309
+ const o = new Set(t);
310
+ return new Set([...e].filter((r) => o.has(r)));
311
+ }, jt = "homePage.missingUniqueKey", le = {
323
312
  single: "homePage.hint.missingUniqueKey.single",
324
313
  allLocales: "homePage.hint.missingUniqueKey.allLocales",
325
314
  someLocales: "homePage.hint.missingUniqueKey.someLocales"
326
- }, Y = (e, t) => e !== "up_to_date" && t !== "missing_unique_key", Zt = (e) => {
315
+ }, Y = (e, t) => e !== "up_to_date" && t !== "missing_unique_key", Xt = (e) => {
327
316
  switch (!0) {
328
317
  case e.every((t) => t.warning === "missing_unique_key"):
329
318
  return "allLocales";
@@ -332,26 +321,26 @@ const _t = 120 * 1e3, Kt = () => {
332
321
  default:
333
322
  return null;
334
323
  }
335
- }, ot = (e, t, n) => {
324
+ }, nt = (e, t, o) => {
336
325
  if (!e)
337
326
  return "homePage.tooltip.noExecutePermission";
338
327
  switch (!0) {
339
328
  case t === "up_to_date":
340
329
  return "homePage.tooltip.upToDate";
341
- case n === "missing_unique_key":
330
+ case o === "missing_unique_key":
342
331
  return le.single;
343
332
  default:
344
333
  return null;
345
334
  }
346
- }, rt = (e, t) => {
335
+ }, ot = (e, t) => {
347
336
  if (!e)
348
337
  return "homePage.tooltip.noExecutePermission";
349
338
  switch (!0) {
350
- case t.some((n) => Y(n.status, n.warning)):
339
+ case t.some((o) => Y(o.status, o.warning)):
351
340
  return null;
352
- case t.every((n) => n.status === "up_to_date"):
341
+ case t.every((o) => o.status === "up_to_date"):
353
342
  return "homePage.tooltip.allEntitiesUpToDate";
354
- case t.every((n) => n.warning === "missing_unique_key"):
343
+ case t.every((o) => o.warning === "missing_unique_key"):
355
344
  return le.allLocales;
356
345
  default:
357
346
  return le.someLocales;
@@ -359,12 +348,12 @@ const _t = 120 * 1e3, Kt = () => {
359
348
  }, xe = ({
360
349
  checked: e,
361
350
  onCheckedChange: t,
362
- disable: n = !1,
351
+ disable: o = !1,
363
352
  tooltipLabel: r = ""
364
- }) => /* @__PURE__ */ o("div", { onClick: (i) => i.stopPropagation(), children: /* @__PURE__ */ o(qe, { label: n ? r : "", align: "start", children: /* @__PURE__ */ o(Le, { checked: e, onCheckedChange: t, disabled: n }) }) }), ye = ({ locale: e }) => {
353
+ }) => /* @__PURE__ */ n("div", { onClick: (i) => i.stopPropagation(), children: /* @__PURE__ */ n(qe, { label: o ? r : "", align: "start", children: /* @__PURE__ */ n(Le, { checked: e, onCheckedChange: t, disabled: o }) }) }), ye = ({ locale: e }) => {
365
354
  const { formatMessage: t } = b();
366
- return e === "default" ? /* @__PURE__ */ o(z, { variant: "neutral", children: t({ id: a("homePage.promotionResults.locale.nonLocalized") }) }) : /* @__PURE__ */ o(z, { variant: "neutral", children: e });
367
- }, Wt = (e) => {
355
+ return e === "default" ? /* @__PURE__ */ n(z, { variant: "neutral", children: t({ id: a("homePage.promotionResults.locale.nonLocalized") }) }) : /* @__PURE__ */ n(z, { variant: "neutral", children: e });
356
+ }, Jt = (e) => {
368
357
  switch (e) {
369
358
  case "new":
370
359
  return "homePage.table.status.new";
@@ -375,7 +364,7 @@ const _t = 120 * 1e3, Kt = () => {
375
364
  default:
376
365
  return "homePage.table.status.new";
377
366
  }
378
- }, zt = (e) => {
367
+ }, Zt = (e) => {
379
368
  switch (e) {
380
369
  case "new":
381
370
  return "success";
@@ -386,36 +375,36 @@ const _t = 120 * 1e3, Kt = () => {
386
375
  default:
387
376
  return "success";
388
377
  }
389
- }, it = ({ status: e }) => {
378
+ }, rt = ({ status: e }) => {
390
379
  const { formatMessage: t } = b();
391
- return /* @__PURE__ */ o(z, { variant: zt(e), children: t({
392
- id: a(Wt(e))
380
+ return /* @__PURE__ */ n(z, { variant: Zt(e), children: t({
381
+ id: a(Jt(e))
393
382
  }) });
394
- }, en = ({ shouldShow: e, message: t, tooltipLabel: n }) => e ? /* @__PURE__ */ o(qe, { label: n, align: "start", children: /* @__PURE__ */ u(f, { direction: "row", gap: 1, alignItems: "center", children: [
395
- /* @__PURE__ */ o(Ae, { fill: "warning500", width: 20, height: 20 }),
396
- /* @__PURE__ */ o(h, { variant: "pi", textColor: "warning500", children: t })
397
- ] }) }) : null, fe = ({ uniqueKey: e, missingUniqueKeyScope: t, maxCharacters: n = 40 }) => {
383
+ }, Wt = ({ shouldShow: e, message: t, tooltipLabel: o }) => e ? /* @__PURE__ */ n(qe, { label: o, align: "start", children: /* @__PURE__ */ u(f, { direction: "row", gap: 1, alignItems: "center", children: [
384
+ /* @__PURE__ */ n(Ae, { fill: "warning500", width: 20, height: 20 }),
385
+ /* @__PURE__ */ n(h, { variant: "pi", textColor: "warning500", children: t })
386
+ ] }) }) : null, fe = ({ uniqueKey: e, missingUniqueKeyScope: t, maxCharacters: o = 40 }) => {
398
387
  const { formatMessage: r } = b();
399
388
  if (!t)
400
- return /* @__PURE__ */ o(
389
+ return /* @__PURE__ */ n(
401
390
  V,
402
391
  {
403
- maxCharacters: n,
392
+ maxCharacters: o,
404
393
  text: e || "N/A",
405
394
  variant: "pi",
406
395
  textColor: "neutral600"
407
396
  }
408
397
  );
409
398
  const i = r({
410
- id: a(Jt)
399
+ id: a(jt)
411
400
  }), s = r({
412
401
  id: a(le[t])
413
- }), l = /* @__PURE__ */ o(en, { shouldShow: !0, tooltipLabel: s, message: i });
402
+ }), l = /* @__PURE__ */ n(Wt, { shouldShow: !0, tooltipLabel: s, message: i });
414
403
  return t === "someLocales" && e ? /* @__PURE__ */ u(f, { direction: "row", gap: 2, alignItems: "center", children: [
415
- /* @__PURE__ */ o(
404
+ /* @__PURE__ */ n(
416
405
  V,
417
406
  {
418
- maxCharacters: n,
407
+ maxCharacters: o,
419
408
  text: e,
420
409
  variant: "pi",
421
410
  textColor: "neutral600"
@@ -423,10 +412,10 @@ const _t = 120 * 1e3, Kt = () => {
423
412
  ),
424
413
  l
425
414
  ] }) : l;
426
- }, at = ({
415
+ }, it = ({
427
416
  entryTitle: e,
428
417
  uniqueKey: t,
429
- missingUniqueKeyScope: n,
418
+ missingUniqueKeyScope: o,
430
419
  locale: r,
431
420
  titleMaxCharacters: i = 60,
432
421
  checked: s,
@@ -435,7 +424,7 @@ const _t = 120 * 1e3, Kt = () => {
435
424
  checkboxTooltipLabel: d,
436
425
  status: m
437
426
  }) => {
438
- const p = /* @__PURE__ */ o(
427
+ const p = /* @__PURE__ */ n(
439
428
  V,
440
429
  {
441
430
  maxCharacters: i,
@@ -446,7 +435,7 @@ const _t = 120 * 1e3, Kt = () => {
446
435
  );
447
436
  return /* @__PURE__ */ u(A, { children: [
448
437
  /* @__PURE__ */ u(f, { direction: "row", gap: 4, alignItems: "center", children: [
449
- /* @__PURE__ */ o(
438
+ /* @__PURE__ */ n(
450
439
  xe,
451
440
  {
452
441
  checked: s,
@@ -456,25 +445,25 @@ const _t = 120 * 1e3, Kt = () => {
456
445
  }
457
446
  ),
458
447
  r ? /* @__PURE__ */ u(f, { direction: "row", gap: 2, alignItems: "center", children: [
459
- /* @__PURE__ */ o(ye, { locale: r }),
448
+ /* @__PURE__ */ n(ye, { locale: r }),
460
449
  p
461
450
  ] }) : p,
462
- /* @__PURE__ */ o(fe, { uniqueKey: t, missingUniqueKeyScope: n })
451
+ /* @__PURE__ */ n(fe, { uniqueKey: t, missingUniqueKeyScope: o })
463
452
  ] }),
464
- /* @__PURE__ */ o(it, { status: m })
453
+ /* @__PURE__ */ n(rt, { status: m })
465
454
  ] });
466
- }, tn = ({
455
+ }, zt = ({
467
456
  entryTitle: e,
468
457
  uniqueKey: t,
469
- status: n,
458
+ status: o,
470
459
  warning: r,
471
460
  locale: i,
472
461
  isChecked: s,
473
462
  onCheckItemChange: l,
474
463
  canExecute: c
475
464
  }) => {
476
- const { formatMessage: d } = b(), m = !c || !Y(n, r), p = ot(c, n, r);
477
- return /* @__PURE__ */ o(
465
+ const { formatMessage: d } = b(), m = !c || !Y(o, r), p = nt(c, o, r);
466
+ return /* @__PURE__ */ n(
478
467
  f,
479
468
  {
480
469
  direction: "row",
@@ -487,8 +476,8 @@ const _t = 120 * 1e3, Kt = () => {
487
476
  },
488
477
  grow: 1,
489
478
  gap: 4,
490
- children: /* @__PURE__ */ o(
491
- at,
479
+ children: /* @__PURE__ */ n(
480
+ it,
492
481
  {
493
482
  entryTitle: e,
494
483
  uniqueKey: t,
@@ -498,15 +487,15 @@ const _t = 120 * 1e3, Kt = () => {
498
487
  onCheckedChange: l,
499
488
  checkboxDisabled: m,
500
489
  checkboxTooltipLabel: p ? d({ id: a(p) }) : void 0,
501
- status: n
490
+ status: o
502
491
  }
503
492
  )
504
493
  }
505
494
  );
506
- }, nn = ({
495
+ }, en = ({
507
496
  isAllCheckedInEntity: e,
508
497
  onCheckAllInEntity: t,
509
- entityWithLocalizations: n,
498
+ entityWithLocalizations: o,
510
499
  selectedPromotions: r,
511
500
  onCheckItemChange: i,
512
501
  isIndeterminate: s,
@@ -533,14 +522,14 @@ const _t = 120 * 1e3, Kt = () => {
533
522
  key: "status",
534
523
  label: d({ id: a("homePage.table.status") })
535
524
  }
536
- ], p = !n?.some(
525
+ ], p = !o?.some(
537
526
  (g) => Y(g.status, g.warning)
538
- ), y = rt(
527
+ ), y = ot(
539
528
  c,
540
- n ?? []
529
+ o ?? []
541
530
  );
542
- return /* @__PURE__ */ u(_e, { colCount: m.length, rowCount: n?.length ?? 0, children: [
543
- /* @__PURE__ */ o(Ke, { children: /* @__PURE__ */ o(H, { children: m.map((g) => /* @__PURE__ */ o(F, { children: g.key === "checkbox" ? /* @__PURE__ */ o(
531
+ return /* @__PURE__ */ u(_e, { colCount: m.length, rowCount: o?.length ?? 0, children: [
532
+ /* @__PURE__ */ n(Ke, { children: /* @__PURE__ */ n(H, { children: m.map((g) => /* @__PURE__ */ n(F, { children: g.key === "checkbox" ? /* @__PURE__ */ n(
544
533
  xe,
545
534
  {
546
535
  checked: s ? "indeterminate" : e,
@@ -548,15 +537,15 @@ const _t = 120 * 1e3, Kt = () => {
548
537
  disable: p || !c,
549
538
  tooltipLabel: y ? d({ id: a(y) }) : ""
550
539
  }
551
- ) : /* @__PURE__ */ o(h, { variant: "sigma", children: g.label }) }, g.key)) }) }),
552
- /* @__PURE__ */ o(De, { children: n?.map((g) => {
553
- const P = !c || !Y(g.status, g.warning), C = ot(
540
+ ) : /* @__PURE__ */ n(h, { variant: "sigma", children: g.label }) }, g.key)) }) }),
541
+ /* @__PURE__ */ n(De, { children: o?.map((g) => {
542
+ const P = !c || !Y(g.status, g.warning), C = nt(
554
543
  c,
555
544
  g.status,
556
545
  g.warning
557
546
  );
558
547
  return /* @__PURE__ */ u(H, { children: [
559
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
548
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(
560
549
  xe,
561
550
  {
562
551
  checked: ce(g, r),
@@ -565,26 +554,26 @@ const _t = 120 * 1e3, Kt = () => {
565
554
  tooltipLabel: C ? d({ id: a(C) }) : ""
566
555
  }
567
556
  ) }),
568
- /* @__PURE__ */ o(v, { children: g?.locale ? /* @__PURE__ */ o(ye, { locale: g.locale }) : null }),
569
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
557
+ /* @__PURE__ */ n(T, { children: g?.locale ? /* @__PURE__ */ n(ye, { locale: g.locale }) : null }),
558
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(
570
559
  V,
571
560
  {
572
561
  maxCharacters: 50,
573
562
  text: pe(g, l) || ""
574
563
  }
575
564
  ) }),
576
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
565
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(
577
566
  fe,
578
567
  {
579
568
  uniqueKey: g?.uniqueKeyValue,
580
569
  missingUniqueKeyScope: g?.warning === "missing_unique_key" ? "single" : null
581
570
  }
582
571
  ) }),
583
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(it, { status: g?.status }) })
572
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(rt, { status: g?.status }) })
584
573
  ] }, `${g.documentId}-${g.locale}`);
585
574
  }) })
586
575
  ] });
587
- }, on = Be(q.Trigger)`
576
+ }, tn = Be(q.Trigger)`
588
577
  width: 100%;
589
578
  & > span:first-child {
590
579
  width: 100%;
@@ -594,10 +583,10 @@ const _t = 120 * 1e3, Kt = () => {
594
583
  width: 100%;
595
584
  }
596
585
  }
597
- `, rn = ({
586
+ `, nn = ({
598
587
  uniqueKey: e,
599
588
  entityWithLocalizations: t,
600
- entryTitle: n,
589
+ entryTitle: o,
601
590
  selectedPromotions: r,
602
591
  setSelectedPromotions: i,
603
592
  onCheckItemChange: s,
@@ -610,20 +599,20 @@ const _t = 120 * 1e3, Kt = () => {
610
599
  ), y = (S) => {
611
600
  i((G) => {
612
601
  const Q = p.map(
613
- (M) => se(M)
614
- ), K = (M) => t.some(
615
- (R) => te(M, se(R))
602
+ (R) => se(R)
603
+ ), K = (R) => t.some(
604
+ (M) => te(R, se(M))
616
605
  );
617
- return S ? (c?.(t), [...G.filter((R) => !K(R)), ...Q]) : G.filter((M) => !K(M));
606
+ return S ? (c?.(t), [...G.filter((M) => !K(M)), ...Q]) : G.filter((R) => !K(R));
618
607
  });
619
608
  }, g = t?.some(
620
609
  (S) => ce(S, r)
621
610
  ), P = p.length > 0 && p.every(
622
611
  (S) => ce(S, r)
623
- ), C = p.length === 0, T = rt(
612
+ ), C = p.length === 0, v = ot(
624
613
  d,
625
614
  t
626
- ), $ = Zt(t), x = (() => {
615
+ ), $ = Xt(t), x = (() => {
627
616
  switch (!0) {
628
617
  case t?.some((S) => S?.status === "new"):
629
618
  return "new";
@@ -633,8 +622,8 @@ const _t = 120 * 1e3, Kt = () => {
633
622
  return "up_to_date";
634
623
  }
635
624
  })(), O = g && !P;
636
- return /* @__PURE__ */ o(q.Root, { style: { width: "100%" }, size: "M", children: /* @__PURE__ */ u(q.Item, { value: `${n}-${e}`, children: [
637
- /* @__PURE__ */ o(q.Header, { children: /* @__PURE__ */ o(on, { caretPosition: "right", children: /* @__PURE__ */ o(
625
+ return /* @__PURE__ */ n(q.Root, { style: { width: "100%" }, size: "M", children: /* @__PURE__ */ u(q.Item, { value: `${o}-${e}`, children: [
626
+ /* @__PURE__ */ n(q.Header, { children: /* @__PURE__ */ n(tn, { caretPosition: "right", children: /* @__PURE__ */ n(
638
627
  f,
639
628
  {
640
629
  direction: "row",
@@ -643,23 +632,23 @@ const _t = 120 * 1e3, Kt = () => {
643
632
  style: { width: "100%" },
644
633
  grow: 1,
645
634
  gap: 4,
646
- children: /* @__PURE__ */ o(
647
- at,
635
+ children: /* @__PURE__ */ n(
636
+ it,
648
637
  {
649
- entryTitle: n,
638
+ entryTitle: o,
650
639
  uniqueKey: e,
651
640
  missingUniqueKeyScope: $,
652
641
  checked: O ? "indeterminate" : P,
653
642
  onCheckedChange: y,
654
643
  checkboxDisabled: C || !d,
655
- checkboxTooltipLabel: T ? m({ id: a(T) }) : void 0,
644
+ checkboxTooltipLabel: v ? m({ id: a(v) }) : void 0,
656
645
  status: x
657
646
  }
658
647
  )
659
648
  }
660
649
  ) }) }),
661
- /* @__PURE__ */ o(q.Content, { children: /* @__PURE__ */ o(
662
- nn,
650
+ /* @__PURE__ */ n(q.Content, { children: /* @__PURE__ */ n(
651
+ en,
663
652
  {
664
653
  isAllCheckedInEntity: P,
665
654
  onCheckAllInEntity: y,
@@ -672,10 +661,10 @@ const _t = 120 * 1e3, Kt = () => {
672
661
  }
673
662
  ) })
674
663
  ] }) });
675
- }, an = ({
664
+ }, on = ({
676
665
  entities: e,
677
666
  contentTypeMainField: t,
678
- selectedPromotions: n,
667
+ selectedPromotions: o,
679
668
  setSelectedPromotions: r,
680
669
  onRememberEntityGroup: i,
681
670
  canExecute: s
@@ -685,41 +674,41 @@ const _t = 120 * 1e3, Kt = () => {
685
674
  r((g) => p ? g.some((P) => te(P, y)) ? g : (i?.(d), [...g, y]) : g.filter((P) => !te(P, y)));
686
675
  }, c = (d, m) => {
687
676
  const p = pe(d, t), y = d?.uniqueKeyValue || "";
688
- return m.length > 1 ? /* @__PURE__ */ o(
689
- rn,
677
+ return m.length > 1 ? /* @__PURE__ */ n(
678
+ nn,
690
679
  {
691
680
  uniqueKey: y,
692
681
  contentTypeMainField: t,
693
682
  entityWithLocalizations: m,
694
683
  entryTitle: p || "",
695
- selectedPromotions: n,
684
+ selectedPromotions: o,
696
685
  setSelectedPromotions: r,
697
686
  onCheckItemChange: l(m),
698
687
  onRememberEntityGroup: i,
699
688
  canExecute: s
700
689
  }
701
- ) : /* @__PURE__ */ o(
702
- tn,
690
+ ) : /* @__PURE__ */ n(
691
+ zt,
703
692
  {
704
693
  entryTitle: p || "",
705
694
  uniqueKey: y,
706
695
  status: d?.status,
707
696
  warning: d?.warning,
708
697
  locale: d?.locale,
709
- isChecked: ce(d, n),
698
+ isChecked: ce(d, o),
710
699
  onCheckItemChange: l(m)(d),
711
700
  canExecute: s
712
701
  }
713
702
  );
714
703
  };
715
- return /* @__PURE__ */ o("div", { children: e?.map((d, m) => {
704
+ return /* @__PURE__ */ n("div", { children: e?.map((d, m) => {
716
705
  const p = Ne(d);
717
- return /* @__PURE__ */ u(Lt, { children: [
706
+ return /* @__PURE__ */ u(qt, { children: [
718
707
  c(d, p),
719
- e?.length - 1 > m && /* @__PURE__ */ o(xt, {})
708
+ e?.length - 1 > m && /* @__PURE__ */ n(kt, {})
720
709
  ] }, d?.documentId);
721
710
  }) });
722
- }, sn = () => {
711
+ }, rn = () => {
723
712
  const { get: e } = k();
724
713
  return U({
725
714
  queryKey: ["content-types"],
@@ -728,12 +717,12 @@ const _t = 120 * 1e3, Kt = () => {
728
717
  return t.data;
729
718
  }
730
719
  });
731
- }, cn = (e, t) => {
732
- const { get: n } = k();
720
+ }, an = (e, t) => {
721
+ const { get: o } = k();
733
722
  return U({
734
723
  queryKey: [It, "related-content-types", e],
735
724
  queryFn: async () => {
736
- const { data: r } = await n(
725
+ const { data: r } = await o(
737
726
  `/${_}/promotion/related-content-types`,
738
727
  {
739
728
  params: {
@@ -745,25 +734,25 @@ const _t = 120 * 1e3, Kt = () => {
745
734
  },
746
735
  enabled: !!e && t
747
736
  });
748
- }, ln = () => {
737
+ }, sn = () => {
749
738
  const { post: e } = k(), t = oe();
750
- return ue({
751
- mutationFn: async (n) => {
739
+ return me({
740
+ mutationFn: async (o) => {
752
741
  const { data: r } = await e(
753
742
  `/${_}/promotion`,
754
- n
743
+ o
755
744
  );
756
745
  return r;
757
746
  },
758
747
  onSuccess: () => {
759
- et(t);
748
+ ze(t);
760
749
  }
761
750
  });
762
- }, dn = (e, t) => e.includes(t) ? [t, ...e.filter((n) => n !== t).sort()] : e.sort(), un = (e) => e.filter((t) => Y(t.status, t.warning)).map((t) => t.locale ?? "default"), mn = (e, t) => e.length > 0 && e.every((n) => t.includes(n)), gn = (e, t, n) => {
751
+ }, cn = (e, t) => e.includes(t) ? [t, ...e.filter((o) => o !== t).sort()] : e.sort(), ln = (e) => e.filter((t) => Y(t.status, t.warning)).map((t) => t.locale ?? "default"), dn = (e, t) => e.length > 0 && e.every((o) => t.includes(o)), un = (e, t, o) => {
763
752
  const r = /* @__PURE__ */ new Map();
764
753
  for (const c of t ?? [])
765
754
  r.set(c.documentId, c);
766
- const i = nt(t), s = /* @__PURE__ */ new Map();
755
+ const i = tt(t), s = /* @__PURE__ */ new Map();
767
756
  for (const c of e) {
768
757
  const d = s.get(c.documentId) ?? [];
769
758
  d.push(c), s.set(c.documentId, d);
@@ -771,51 +760,51 @@ const _t = 120 * 1e3, Kt = () => {
771
760
  return [...new Set(e.map((c) => c.documentId))].map((c) => {
772
761
  const d = s.get(c) ?? [], m = r.get(c) ?? i.find((C) => C.documentId === c), p = m?.locale ?? "default", y = m ?? i.find(
773
762
  (C) => d.some(
774
- (T) => te(T, {
763
+ (v) => te(v, {
775
764
  documentId: C.documentId,
776
765
  locale: C.locale ?? "default"
777
766
  })
778
767
  )
779
- ), g = dn(
768
+ ), g = cn(
780
769
  d.map((C) => C.locale),
781
770
  p
782
- ), P = un(
783
- Ht(c, t)
771
+ ), P = ln(
772
+ Gt(c, t)
784
773
  );
785
774
  return {
786
775
  documentId: c,
787
- title: y ? pe(y, n) ?? c : c,
776
+ title: y ? pe(y, o) ?? c : c,
788
777
  locales: g,
789
- allLocalesSelected: mn(P, g),
778
+ allLocalesSelected: dn(P, g),
790
779
  uniqueKey: y?.uniqueKeyValue ?? null
791
780
  };
792
781
  });
793
- }, de = (e, t) => t?.find((n) => n.uid === e)?.schema.displayName ?? e, hn = (e) => {
782
+ }, de = (e, t) => t?.find((o) => o.uid === e)?.schema.displayName ?? e, mn = (e) => {
794
783
  const t = [
795
784
  e.summary,
796
785
  ...e.dependencyResults.map((i) => i.summary)
797
- ], n = t.reduce((i, s) => i + s.failed, 0), r = t.reduce((i, s) => i + s.total, 0);
798
- return n === 0 ? "success" : n >= r ? "failure" : "partial";
799
- }, pn = ["en", "default"], yn = (e) => {
800
- for (const t of pn) {
801
- const n = e.find((r) => r.locale === t);
802
- if (n?.uniqueKey != null && n.uniqueKey.length > 0)
803
- return n.uniqueKey;
786
+ ], o = t.reduce((i, s) => i + s.failed, 0), r = t.reduce((i, s) => i + s.total, 0);
787
+ return o === 0 ? "success" : o >= r ? "failure" : "partial";
788
+ }, gn = ["en", "default"], hn = (e) => {
789
+ for (const t of gn) {
790
+ const o = e.find((r) => r.locale === t);
791
+ if (o?.uniqueKey != null && o.uniqueKey.length > 0)
792
+ return o.uniqueKey;
804
793
  }
805
794
  return e.find((t) => t.uniqueKey != null && t.uniqueKey.length > 0)?.uniqueKey ?? null;
806
- }, fn = (e, t, n) => {
795
+ }, pn = (e, t, o) => {
807
796
  if (e.uniqueKey != null && e.uniqueKey.length > 0)
808
797
  return e.uniqueKey;
809
- const r = e.documentId ?? e.documentKey, i = nt(t).find(
798
+ const r = e.documentId ?? e.documentKey, i = tt(t).find(
810
799
  (s) => s.documentId === r
811
800
  );
812
801
  if (i) {
813
- const s = pe(i, n);
802
+ const s = pe(i, o);
814
803
  if (s != null && String(s).length > 0)
815
804
  return String(s);
816
805
  }
817
806
  return r;
818
- }, Pn = (e) => {
807
+ }, yn = (e) => {
819
808
  if (e.documentId != null && e.documentId.length > 0)
820
809
  return e.documentId;
821
810
  const t = e.steps.find(
@@ -825,15 +814,15 @@ const _t = 120 * 1e3, Kt = () => {
825
814
  return t;
826
815
  if (e.uniqueKey != null && e.uniqueKey.length > 0)
827
816
  return e.uniqueKey;
828
- const n = e.groupKey.lastIndexOf("::");
829
- return n === -1 ? e.groupKey : e.groupKey.slice(0, n);
830
- }, Sn = {
817
+ const o = e.groupKey.lastIndexOf("::");
818
+ return o === -1 ? e.groupKey : e.groupKey.slice(0, o);
819
+ }, fn = {
831
820
  create: "created",
832
821
  update: "updated"
833
- }, st = (e) => e.push.ok ? e.push.skipped || e.action === "skip" ? "skipped" : Sn[e.action] : "failed", Cn = (e) => {
822
+ }, at = (e) => e.push.ok ? e.push.skipped || e.action === "skip" ? "skipped" : fn[e.action] : "failed", Pn = (e) => {
834
823
  const t = e[0];
835
- return t ? st(t) : "skipped";
836
- }, bn = (e) => {
824
+ return t ? at(t) : "skipped";
825
+ }, Sn = (e) => {
837
826
  switch (e) {
838
827
  case "failed":
839
828
  return "danger";
@@ -848,74 +837,74 @@ const _t = 120 * 1e3, Kt = () => {
848
837
  }
849
838
  }, re = (e) => {
850
839
  const t = /* @__PURE__ */ new Map();
851
- for (const n of e) {
852
- const r = n.snapshotKey, i = t.get(r) ?? [];
853
- i.push(n), t.set(r, i);
840
+ for (const o of e) {
841
+ const r = o.snapshotKey, i = t.get(r) ?? [];
842
+ i.push(o), t.set(r, i);
854
843
  }
855
- return Array.from(t.entries()).map(([n, r]) => {
844
+ return Array.from(t.entries()).map(([o, r]) => {
856
845
  const i = r.some((l) => !l.push.ok), s = r[r.length - 1];
857
846
  return {
858
- groupKey: n,
847
+ groupKey: o,
859
848
  documentId: s.documentId,
860
849
  locale: s.locale,
861
850
  uniqueKey: s.uniqueKey,
862
- outcome: i ? "failed" : Cn(r),
851
+ outcome: i ? "failed" : Pn(r),
863
852
  steps: r,
864
853
  hasFailure: i
865
854
  };
866
855
  });
867
- }, ct = (e) => {
868
- const t = re(e), n = /* @__PURE__ */ new Map();
856
+ }, st = (e) => {
857
+ const t = re(e), o = /* @__PURE__ */ new Map();
869
858
  for (const r of t) {
870
- const i = Pn(r), s = n.get(i) ?? [];
871
- s.push(r), n.set(i, s);
859
+ const i = yn(r), s = o.get(i) ?? [];
860
+ s.push(r), o.set(i, s);
872
861
  }
873
- return Array.from(n.entries()).map(([r, i]) => {
862
+ return Array.from(o.entries()).map(([r, i]) => {
874
863
  const s = i.sort(
875
864
  (l, c) => l.locale.localeCompare(c.locale)
876
865
  );
877
866
  return {
878
867
  documentKey: r,
879
868
  documentId: s[0]?.documentId,
880
- uniqueKey: yn(s),
869
+ uniqueKey: hn(s),
881
870
  localeEntries: s
882
871
  };
883
872
  });
884
- }, wn = (e, t) => ct(e).map((n) => ({
885
- id: n.documentKey,
886
- title: fn(
887
- n,
873
+ }, Cn = (e, t) => st(e).map((o) => ({
874
+ id: o.documentKey,
875
+ title: pn(
876
+ o,
888
877
  t?.comparedEntities,
889
878
  t?.contentTypeMainField
890
879
  ),
891
- entries: n.localeEntries.flatMap((r) => r.steps)
880
+ entries: o.localeEntries.flatMap((r) => r.steps)
892
881
  })), je = (e) => {
893
882
  const t = re(e);
894
883
  return {
895
884
  entityCount: t.length,
896
- created: t.filter((n) => n.outcome === "created").length,
897
- updated: t.filter((n) => n.outcome === "updated").length,
898
- skipped: t.filter((n) => n.outcome === "skipped").length,
899
- failed: t.filter((n) => n.outcome === "failed").length,
900
- locales: [...new Set(t.map((n) => n.locale))].sort()
885
+ created: t.filter((o) => o.outcome === "created").length,
886
+ updated: t.filter((o) => o.outcome === "updated").length,
887
+ skipped: t.filter((o) => o.outcome === "skipped").length,
888
+ failed: t.filter((o) => o.outcome === "failed").length,
889
+ locales: [...new Set(t.map((o) => o.locale))].sort()
901
890
  };
902
- }, In = (e) => {
891
+ }, bn = (e) => {
903
892
  const t = {
904
893
  total: 0,
905
894
  created: 0,
906
895
  updated: 0,
907
896
  skipped: 0,
908
897
  failed: 0
909
- }, n = re(e);
910
- for (const r of n) {
898
+ }, o = re(e);
899
+ for (const r of o) {
911
900
  const i = r.steps[0];
912
- i && (t.total += 1, t[st(i)] += 1);
901
+ i && (t.total += 1, t[at(i)] += 1);
913
902
  }
914
903
  return t;
915
- }, En = (e) => re(e).filter(
916
- (t) => t.steps.some((n) => n.hasUnlinkedRelations)
917
- ).length, vn = (e, t) => {
918
- const n = ct(e.entries), r = je(e.entries), i = [
904
+ }, In = (e) => re(e).filter(
905
+ (t) => t.steps.some((o) => o.hasUnlinkedRelations)
906
+ ).length, wn = (e, t) => {
907
+ const o = st(e.entries), r = je(e.entries), i = [
919
908
  ...new Set(e.selections.map((d) => d.locale))
920
909
  ].sort(), s = e.dependencyResults.map((d) => {
921
910
  const m = je(d.entries);
@@ -926,9 +915,9 @@ const _t = 120 * 1e3, Kt = () => {
926
915
  };
927
916
  }), l = r.entityCount + s.reduce((d, m) => d + m.entityCount, 0), c = r.failed + s.reduce((d, m) => d + m.failed, 0);
928
917
  return {
929
- outcome: hn(e),
918
+ outcome: mn(e),
930
919
  primaryDisplayName: de(e.contentTypeUid, t),
931
- primaryEntityCount: n.length,
920
+ primaryEntityCount: o.length,
932
921
  dependencySummaries: s,
933
922
  totalEntityCount: l,
934
923
  totalFailed: c,
@@ -936,49 +925,49 @@ const _t = 120 * 1e3, Kt = () => {
936
925
  dependencyContentTypeCount: e.dependencyResults.length,
937
926
  mediaSummary: e.mediaSummary
938
927
  };
939
- }, lt = ({ entries: e, showFailuresOnly: t = !1 }) => {
940
- const { formatMessage: n } = b(), r = Je(() => {
928
+ }, ct = ({ entries: e, showFailuresOnly: t = !1 }) => {
929
+ const { formatMessage: o } = b(), r = Je(() => {
941
930
  const i = re(e);
942
931
  return t ? i.filter((s) => s.hasFailure) : i;
943
932
  }, [e, t]);
944
- return r.length === 0 ? /* @__PURE__ */ o(h, { variant: "omega", textColor: "neutral600", children: n({
933
+ return r.length === 0 ? /* @__PURE__ */ n(h, { variant: "omega", textColor: "neutral600", children: o({
945
934
  id: a(
946
935
  t ? "homePage.promotionResults.noFailures" : "homePage.promotionResults.noEntries"
947
936
  )
948
937
  }) }) : /* @__PURE__ */ u(_e, { colCount: 3, rowCount: r.length, children: [
949
- /* @__PURE__ */ o(Ke, { children: /* @__PURE__ */ u(H, { children: [
950
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: n({ id: a("homePage.table.locale") }) }) }),
951
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: n({ id: a("homePage.table.key") }) }) }),
952
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: n({
938
+ /* @__PURE__ */ n(Ke, { children: /* @__PURE__ */ u(H, { children: [
939
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: o({ id: a("homePage.table.locale") }) }) }),
940
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: o({ id: a("homePage.table.key") }) }) }),
941
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: o({
953
942
  id: a("homePage.promotionResults.table.outcome")
954
943
  }) }) })
955
944
  ] }) }),
956
- /* @__PURE__ */ o(De, { children: r.map((i) => /* @__PURE__ */ u(H, { children: [
957
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(ye, { locale: i.locale }) }),
958
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(fe, { uniqueKey: i.uniqueKey, maxCharacters: 35 }) }),
959
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(z, { variant: bn(i.outcome), children: n({
945
+ /* @__PURE__ */ n(De, { children: r.map((i) => /* @__PURE__ */ u(H, { children: [
946
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(ye, { locale: i.locale }) }),
947
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(fe, { uniqueKey: i.uniqueKey, maxCharacters: 35 }) }),
948
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(z, { variant: Sn(i.outcome), children: o({
960
949
  id: a(`homePage.promotionResults.outcome.${i.outcome}`)
961
950
  }) }) })
962
951
  ] }, i.groupKey)) })
963
952
  ] });
964
- }, Tn = ({ summary: e, unlinkedRelationCount: t = 0 }) => {
965
- const { formatMessage: n } = b(), r = [
953
+ }, En = ({ summary: e, unlinkedRelationCount: t = 0 }) => {
954
+ const { formatMessage: o } = b(), r = [
966
955
  {
967
956
  key: "created",
968
- label: n({ id: a("homePage.promotionResults.summary.created") }),
957
+ label: o({ id: a("homePage.promotionResults.summary.created") }),
969
958
  value: e.created,
970
959
  variant: "success"
971
960
  },
972
961
  {
973
962
  key: "updated",
974
- label: n({ id: a("homePage.promotionResults.summary.updated") }),
963
+ label: o({ id: a("homePage.promotionResults.summary.updated") }),
975
964
  value: e.updated,
976
965
  variant: "secondary"
977
966
  },
978
967
  ...e.skipped > 0 ? [
979
968
  {
980
969
  key: "skipped",
981
- label: n({
970
+ label: o({
982
971
  id: a("homePage.promotionResults.summary.skipped")
983
972
  }),
984
973
  value: e.skipped,
@@ -988,7 +977,7 @@ const _t = 120 * 1e3, Kt = () => {
988
977
  ...e.failed > 0 ? [
989
978
  {
990
979
  key: "failed",
991
- label: n({
980
+ label: o({
992
981
  id: a("homePage.promotionResults.summary.failed")
993
982
  }),
994
983
  value: e.failed,
@@ -998,7 +987,7 @@ const _t = 120 * 1e3, Kt = () => {
998
987
  ...t > 0 ? [
999
988
  {
1000
989
  key: "unlinkedRelations",
1001
- label: n({
990
+ label: o({
1002
991
  id: a("homePage.promotionResults.summary.unlinkedRelations")
1003
992
  }),
1004
993
  value: t,
@@ -1006,12 +995,12 @@ const _t = 120 * 1e3, Kt = () => {
1006
995
  }
1007
996
  ] : []
1008
997
  ];
1009
- return /* @__PURE__ */ o(f, { gap: 2, wrap: "wrap", children: r.map((i) => /* @__PURE__ */ u(z, { variant: i.variant, children: [
998
+ return /* @__PURE__ */ n(f, { gap: 2, wrap: "wrap", children: r.map((i) => /* @__PURE__ */ u(z, { variant: i.variant, children: [
1010
999
  i.label,
1011
1000
  ": ",
1012
1001
  i.value
1013
1002
  ] }, i.key)) });
1014
- }, kn = Be(q.Trigger)`
1003
+ }, Tn = Be(q.Trigger)`
1015
1004
  width: 100%;
1016
1005
  font-weight: ${({ theme: e }) => e.fontWeights.regular};
1017
1006
 
@@ -1025,22 +1014,22 @@ const _t = 120 * 1e3, Kt = () => {
1025
1014
  font-weight: inherit;
1026
1015
  }
1027
1016
  }
1028
- `, Xe = ({ items: e }) => /* @__PURE__ */ o(q.Root, { style: { width: "100%" }, size: "S", children: e.map((t) => /* @__PURE__ */ u(q.Item, { value: t.id, children: [
1029
- /* @__PURE__ */ o(q.Header, { children: /* @__PURE__ */ o(kn, { caretPosition: "right", children: /* @__PURE__ */ u(f, { justifyContent: "space-between", alignItems: "center", width: "100%", gap: 2, children: [
1030
- /* @__PURE__ */ o(V, { maxCharacters: 40, text: t.title, fontWeight: "regular" }),
1031
- /* @__PURE__ */ o(Mt, { style: { flexShrink: 0 }, children: /* @__PURE__ */ o(
1032
- Tn,
1017
+ `, Xe = ({ items: e }) => /* @__PURE__ */ n(q.Root, { style: { width: "100%" }, size: "S", children: e.map((t) => /* @__PURE__ */ u(q.Item, { value: t.id, children: [
1018
+ /* @__PURE__ */ n(q.Header, { children: /* @__PURE__ */ n(Tn, { caretPosition: "right", children: /* @__PURE__ */ u(f, { justifyContent: "space-between", alignItems: "center", width: "100%", gap: 2, children: [
1019
+ /* @__PURE__ */ n(V, { maxCharacters: 40, text: t.title, fontWeight: "regular" }),
1020
+ /* @__PURE__ */ n(xt, { style: { flexShrink: 0 }, children: /* @__PURE__ */ n(
1021
+ En,
1033
1022
  {
1034
- summary: In(t.entries),
1035
- unlinkedRelationCount: En(t.entries)
1023
+ summary: bn(t.entries),
1024
+ unlinkedRelationCount: In(t.entries)
1036
1025
  }
1037
1026
  ) })
1038
1027
  ] }) }) }),
1039
- /* @__PURE__ */ o(q.Content, { children: /* @__PURE__ */ o(lt, { entries: t.entries }) })
1040
- ] }, t.id)) }), xn = ({ overview: e }) => {
1041
- const { formatMessage: t } = b(), n = e.dependencySummaries.map((r) => r.displayName);
1028
+ /* @__PURE__ */ n(q.Content, { children: /* @__PURE__ */ n(ct, { entries: t.entries }) })
1029
+ ] }, t.id)) }), vn = ({ overview: e }) => {
1030
+ const { formatMessage: t } = b(), o = e.dependencySummaries.map((r) => r.displayName);
1042
1031
  return /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 2, children: [
1043
- /* @__PURE__ */ o(h, { variant: "omega", children: t(
1032
+ /* @__PURE__ */ n(h, { variant: "omega", children: t(
1044
1033
  { id: a("homePage.promotionResults.header.summary") },
1045
1034
  {
1046
1035
  primaryCount: e.primaryEntityCount,
@@ -1049,11 +1038,11 @@ const _t = 120 * 1e3, Kt = () => {
1049
1038
  failedCount: e.totalFailed
1050
1039
  }
1051
1040
  ) }),
1052
- n.length > 0 && /* @__PURE__ */ o(h, { variant: "pi", textColor: "neutral600", children: t(
1041
+ o.length > 0 && /* @__PURE__ */ n(h, { variant: "pi", textColor: "neutral600", children: t(
1053
1042
  { id: a("homePage.promotionResults.header.dependencies") },
1054
- { contentTypes: n.join(", ") }
1043
+ { contentTypes: o.join(", ") }
1055
1044
  ) }),
1056
- e.mediaSummary && /* @__PURE__ */ o(h, { variant: "pi", textColor: "neutral600", children: t(
1045
+ e.mediaSummary && /* @__PURE__ */ n(h, { variant: "pi", textColor: "neutral600", children: t(
1057
1046
  { id: a("homePage.promotionResults.media.summary") },
1058
1047
  {
1059
1048
  uploaded: e.mediaSummary.uploaded,
@@ -1062,17 +1051,17 @@ const _t = 120 * 1e3, Kt = () => {
1062
1051
  }
1063
1052
  ) })
1064
1053
  ] });
1065
- }, Mn = ({
1054
+ }, kn = ({
1066
1055
  result: e,
1067
1056
  contentTypes: t,
1068
- comparedEntities: n,
1057
+ comparedEntities: o,
1069
1058
  contentTypeMainField: r
1070
1059
  }) => {
1071
- const { formatMessage: i } = b(), s = vn(e, t), l = s.outcome, c = [
1060
+ const { formatMessage: i } = b(), s = wn(e, t), l = s.outcome, c = [
1072
1061
  ...e.entries,
1073
1062
  ...e.dependencyResults.flatMap((C) => C.entries)
1074
- ], d = de(e.contentTypeUid, t), m = s.totalFailed > 0, p = e.dependencyResults.length > 0, y = wn(e.entries, {
1075
- comparedEntities: n,
1063
+ ], d = de(e.contentTypeUid, t), m = s.totalFailed > 0, p = e.dependencyResults.length > 0, y = Cn(e.entries, {
1064
+ comparedEntities: o,
1076
1065
  contentTypeMainField: r
1077
1066
  }), g = e.dependencyResults.map((C) => ({
1078
1067
  id: C.contentTypeUid,
@@ -1083,8 +1072,8 @@ const _t = 120 * 1e3, Kt = () => {
1083
1072
  (() => {
1084
1073
  switch (l) {
1085
1074
  case "success":
1086
- return /* @__PURE__ */ o(
1087
- I,
1075
+ return /* @__PURE__ */ n(
1076
+ w,
1088
1077
  {
1089
1078
  variant: "success",
1090
1079
  title: i({
@@ -1099,8 +1088,8 @@ const _t = 120 * 1e3, Kt = () => {
1099
1088
  }
1100
1089
  );
1101
1090
  case "partial":
1102
- return /* @__PURE__ */ o(
1103
- I,
1091
+ return /* @__PURE__ */ n(
1092
+ w,
1104
1093
  {
1105
1094
  variant: "warning",
1106
1095
  title: i({
@@ -1112,8 +1101,8 @@ const _t = 120 * 1e3, Kt = () => {
1112
1101
  }
1113
1102
  );
1114
1103
  case "failure":
1115
- return /* @__PURE__ */ o(
1116
- I,
1104
+ return /* @__PURE__ */ n(
1105
+ w,
1117
1106
  {
1118
1107
  variant: "danger",
1119
1108
  title: i({
@@ -1126,8 +1115,8 @@ const _t = 120 * 1e3, Kt = () => {
1126
1115
  );
1127
1116
  }
1128
1117
  })(),
1129
- e.hasUnlinkedRelations && /* @__PURE__ */ o(
1130
- I,
1118
+ e.hasUnlinkedRelations && /* @__PURE__ */ n(
1119
+ w,
1131
1120
  {
1132
1121
  variant: "warning",
1133
1122
  title: i({
@@ -1138,59 +1127,59 @@ const _t = 120 * 1e3, Kt = () => {
1138
1127
  })
1139
1128
  }
1140
1129
  ),
1141
- /* @__PURE__ */ o(xn, { overview: s }),
1130
+ /* @__PURE__ */ n(vn, { overview: s }),
1142
1131
  m && /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 2, children: [
1143
- /* @__PURE__ */ o(h, { variant: "delta", children: i({
1132
+ /* @__PURE__ */ n(h, { variant: "delta", children: i({
1144
1133
  id: a("homePage.promotionResults.failures.title")
1145
1134
  }) }),
1146
- /* @__PURE__ */ o(lt, { entries: c, showFailuresOnly: !0 })
1135
+ /* @__PURE__ */ n(ct, { entries: c, showFailuresOnly: !0 })
1147
1136
  ] }),
1148
1137
  /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 2, children: [
1149
1138
  /* @__PURE__ */ u(h, { variant: "delta", children: [
1150
1139
  d,
1151
1140
  ":"
1152
1141
  ] }),
1153
- /* @__PURE__ */ o(Xe, { items: y })
1142
+ /* @__PURE__ */ n(Xe, { items: y })
1154
1143
  ] }),
1155
1144
  p && /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 2, children: [
1156
- /* @__PURE__ */ o(h, { variant: "delta", children: i({
1145
+ /* @__PURE__ */ n(h, { variant: "delta", children: i({
1157
1146
  id: a("homePage.promotionResults.dependencies.title")
1158
1147
  }) }),
1159
- /* @__PURE__ */ o(Xe, { items: g })
1148
+ /* @__PURE__ */ n(Xe, { items: g })
1160
1149
  ] })
1161
1150
  ] });
1162
- }, Rn = ({
1151
+ }, xn = ({
1163
1152
  previews: e,
1164
1153
  mediaDocumentIds: t,
1165
- onToggleMediaDocument: n
1154
+ onToggleMediaDocument: o
1166
1155
  }) => {
1167
1156
  const { formatMessage: r } = b();
1168
1157
  return e.length === 0 ? null : /* @__PURE__ */ u(_e, { colCount: 4, rowCount: e.length, children: [
1169
- /* @__PURE__ */ o(Ke, { children: /* @__PURE__ */ u(H, { children: [
1158
+ /* @__PURE__ */ n(Ke, { children: /* @__PURE__ */ u(H, { children: [
1170
1159
  /* @__PURE__ */ u(F, { children: [
1171
- /* @__PURE__ */ o(h, { variant: "sigma", children: r({
1160
+ /* @__PURE__ */ n(h, { variant: "sigma", children: r({
1172
1161
  id: a("homePage.modal.confirmPromotion.includeMedia")
1173
1162
  }) }),
1174
- /* @__PURE__ */ o(
1163
+ /* @__PURE__ */ n(
1175
1164
  qe,
1176
1165
  {
1177
1166
  label: r({
1178
1167
  id: a("homePage.modal.confirmPromotion.tooltip")
1179
1168
  }),
1180
- children: /* @__PURE__ */ o(qt, { style: { marginLeft: "4px" } })
1169
+ children: /* @__PURE__ */ n(Mt, { style: { marginLeft: "4px" } })
1181
1170
  }
1182
1171
  )
1183
1172
  ] }),
1184
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: r({ id: a("homePage.table.entryTitle") }) }) }),
1185
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: r({ id: a("homePage.table.locale") }) }) }),
1186
- /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(h, { variant: "sigma", children: r({ id: a("homePage.table.key") }) }) })
1173
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: r({ id: a("homePage.table.entryTitle") }) }) }),
1174
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: r({ id: a("homePage.table.locale") }) }) }),
1175
+ /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(h, { variant: "sigma", children: r({ id: a("homePage.table.key") }) }) })
1187
1176
  ] }) }),
1188
- /* @__PURE__ */ o(De, { children: e.map((i) => /* @__PURE__ */ u(H, { children: [
1189
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
1177
+ /* @__PURE__ */ n(De, { children: e.map((i) => /* @__PURE__ */ u(H, { children: [
1178
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(
1190
1179
  Le,
1191
1180
  {
1192
1181
  checked: t.has(i.documentId),
1193
- onCheckedChange: (s) => n(i.documentId, s === !0),
1182
+ onCheckedChange: (s) => o(i.documentId, s === !0),
1194
1183
  "aria-label": r(
1195
1184
  {
1196
1185
  id: a("homePage.modal.confirmPromotion.includeMediaForDocument")
@@ -1199,68 +1188,68 @@ const _t = 120 * 1e3, Kt = () => {
1199
1188
  )
1200
1189
  }
1201
1190
  ) }),
1202
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(V, { maxCharacters: 50, text: i.title }) }),
1203
- /* @__PURE__ */ o(v, { children: i.allLocalesSelected ? /* @__PURE__ */ o(h, { variant: "pi", children: r({
1191
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(V, { maxCharacters: 50, text: i.title }) }),
1192
+ /* @__PURE__ */ n(T, { children: i.allLocalesSelected ? /* @__PURE__ */ n(h, { variant: "pi", children: r({
1204
1193
  id: a("homePage.modal.confirmPromotion.allLocalesSelected")
1205
- }) }) : /* @__PURE__ */ o(f, { gap: 2, wrap: "wrap", children: i.locales.map((s) => /* @__PURE__ */ o(ye, { locale: s }, `${i.documentId}-${s}`)) }) }),
1206
- /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(fe, { uniqueKey: i.uniqueKey, maxCharacters: 35 }) })
1194
+ }) }) : /* @__PURE__ */ n(f, { gap: 2, wrap: "wrap", children: i.locales.map((s) => /* @__PURE__ */ n(ye, { locale: s }, `${i.documentId}-${s}`)) }) }),
1195
+ /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(fe, { uniqueKey: i.uniqueKey, maxCharacters: 35 }) })
1207
1196
  ] }, i.documentId)) })
1208
1197
  ] });
1209
- }, qn = ({
1198
+ }, Rn = ({
1210
1199
  open: e,
1211
1200
  onClose: t,
1212
- selectedPromotions: n,
1201
+ selectedPromotions: o,
1213
1202
  contentTypeUid: r,
1214
1203
  contentTypeMainField: i,
1215
1204
  comparedEntities: s,
1216
1205
  onPromoteComplete: l
1217
1206
  }) => {
1218
- const { formatMessage: c } = b(), { data: d } = sn(), { data: m } = cn(
1207
+ const { formatMessage: c } = b(), { data: d } = rn(), { data: m } = an(
1219
1208
  r,
1220
1209
  e
1221
- ), [p, y] = L(null), [g, P] = L(() => /* @__PURE__ */ new Set()), C = Yt(n), T = jt(C, g), $ = g.size > 0, {
1210
+ ), [p, y] = L(null), [g, P] = L(() => /* @__PURE__ */ new Set()), C = Ht(o), v = Vt(C, g), $ = g.size > 0, {
1222
1211
  mutate: j,
1223
1212
  isPending: x,
1224
1213
  error: O,
1225
1214
  reset: S
1226
- } = ln(), G = () => {
1215
+ } = sn(), G = () => {
1227
1216
  y(null), P(/* @__PURE__ */ new Set()), S();
1228
1217
  };
1229
1218
  ne(() => {
1230
- P((w) => Xt(w, C));
1219
+ P((I) => Yt(I, C));
1231
1220
  }, [C]);
1232
- const Q = m?.contentTypes.map((w) => w.displayName) ?? [], K = gn(
1233
- n,
1221
+ const Q = m?.contentTypes.map((I) => I.displayName) ?? [], K = un(
1222
+ o,
1234
1223
  s,
1235
1224
  i
1236
- ), M = () => {
1225
+ ), R = () => {
1237
1226
  G(), t();
1238
- }, R = (w) => {
1239
- P(w ? new Set(C) : /* @__PURE__ */ new Set());
1240
- }, Pe = (w, Ce) => {
1227
+ }, M = (I) => {
1228
+ P(I ? new Set(C) : /* @__PURE__ */ new Set());
1229
+ }, Pe = (I, Ce) => {
1241
1230
  P((J) => {
1242
1231
  const D = new Set(J);
1243
- return Ce ? D.add(w) : D.delete(w), D;
1232
+ return Ce ? D.add(I) : D.delete(I), D;
1244
1233
  });
1245
1234
  }, Se = () => {
1246
1235
  j(
1247
1236
  {
1248
- selections: n,
1237
+ selections: o,
1249
1238
  contentTypeUid: r,
1250
1239
  mediaDocumentIds: [...g]
1251
1240
  },
1252
1241
  {
1253
- onSuccess: (w) => {
1254
- y(w), l?.(w);
1242
+ onSuccess: (I) => {
1243
+ y(I), l?.(I);
1255
1244
  }
1256
1245
  }
1257
1246
  );
1258
1247
  }, X = p != null;
1259
- return /* @__PURE__ */ o(
1260
- me,
1248
+ return /* @__PURE__ */ n(
1249
+ ge,
1261
1250
  {
1262
1251
  open: e,
1263
- onClose: M,
1252
+ onClose: R,
1264
1253
  onSubmit: Se,
1265
1254
  title: c({
1266
1255
  id: a(
@@ -1270,12 +1259,12 @@ const _t = 120 * 1e3, Kt = () => {
1270
1259
  confirmButtonText: c({
1271
1260
  id: a("homePage.modal.confirmPromotion.confirmButtonText")
1272
1261
  }),
1273
- isConfirmButtonDisabled: x || !r || n.length === 0,
1262
+ isConfirmButtonDisabled: x || !r || o.length === 0,
1274
1263
  isConfirmButtonLoading: x,
1275
1264
  showConfirmButton: !X,
1276
1265
  fillMaxHeight: !0,
1277
- children: X ? /* @__PURE__ */ o(
1278
- Mn,
1266
+ children: X ? /* @__PURE__ */ n(
1267
+ kn,
1279
1268
  {
1280
1269
  result: p,
1281
1270
  contentTypes: d,
@@ -1283,32 +1272,32 @@ const _t = 120 * 1e3, Kt = () => {
1283
1272
  contentTypeMainField: i
1284
1273
  }
1285
1274
  ) : /* @__PURE__ */ u(f, { direction: "column", gap: 4, alignItems: "stretch", children: [
1286
- /* @__PURE__ */ o(h, { variant: "omega", children: c(
1275
+ /* @__PURE__ */ n(h, { variant: "omega", children: c(
1287
1276
  {
1288
1277
  id: a("homePage.modal.confirmPromotion.description")
1289
1278
  },
1290
- { count: n.length }
1279
+ { count: o.length }
1291
1280
  ) }),
1292
- /* @__PURE__ */ o(
1281
+ /* @__PURE__ */ n(
1293
1282
  Le,
1294
1283
  {
1295
- checked: T,
1296
- onCheckedChange: (w) => R(w === !0),
1284
+ checked: v,
1285
+ onCheckedChange: (I) => M(I === !0),
1297
1286
  children: c({
1298
1287
  id: a("homePage.modal.confirmPromotion.includeMediaAll")
1299
1288
  })
1300
1289
  }
1301
1290
  ),
1302
- /* @__PURE__ */ o(
1303
- Rn,
1291
+ /* @__PURE__ */ n(
1292
+ xn,
1304
1293
  {
1305
1294
  previews: K,
1306
1295
  mediaDocumentIds: g,
1307
1296
  onToggleMediaDocument: Pe
1308
1297
  }
1309
1298
  ),
1310
- /* @__PURE__ */ o(
1311
- I,
1299
+ /* @__PURE__ */ n(
1300
+ w,
1312
1301
  {
1313
1302
  variant: "default",
1314
1303
  title: c({
@@ -1319,8 +1308,8 @@ const _t = 120 * 1e3, Kt = () => {
1319
1308
  })
1320
1309
  }
1321
1310
  ),
1322
- $ && /* @__PURE__ */ o(
1323
- I,
1311
+ $ && /* @__PURE__ */ n(
1312
+ w,
1324
1313
  {
1325
1314
  variant: "default",
1326
1315
  title: c({
@@ -1331,8 +1320,8 @@ const _t = 120 * 1e3, Kt = () => {
1331
1320
  })
1332
1321
  }
1333
1322
  ),
1334
- Q.length > 0 && /* @__PURE__ */ o(
1335
- I,
1323
+ Q.length > 0 && /* @__PURE__ */ n(
1324
+ w,
1336
1325
  {
1337
1326
  variant: "warning",
1338
1327
  title: c({
@@ -1346,21 +1335,21 @@ const _t = 120 * 1e3, Kt = () => {
1346
1335
  )
1347
1336
  }
1348
1337
  ),
1349
- O && /* @__PURE__ */ o(h, { variant: "omega", textColor: "danger500", children: ge(O, c) })
1338
+ O && /* @__PURE__ */ n(h, { variant: "omega", textColor: "danger500", children: ue(O, c) })
1350
1339
  ] })
1351
1340
  }
1352
1341
  );
1353
- }, Ln = 2500, _n = 5e3, Kn = (e) => e === "running" ? Ln : e === "queued" ? _n : !1, dt = (e, t = !0) => {
1354
- const { get: n } = k(), r = oe(), i = Ze(void 0), s = U({
1342
+ }, Mn = 2500, qn = 5e3, Ln = (e) => e === "running" ? Mn : e === "queued" ? qn : !1, lt = (e, t = !0) => {
1343
+ const { get: o } = k(), r = oe(), i = Ze(void 0), s = U({
1355
1344
  queryKey: ee.list(e),
1356
1345
  queryFn: async () => {
1357
- const { data: l } = await n(
1346
+ const { data: l } = await o(
1358
1347
  `/${_}/snapshot/sync/${e}/status`
1359
1348
  );
1360
1349
  return l;
1361
1350
  },
1362
1351
  enabled: !!e && t,
1363
- refetchInterval: (l) => Kn(l.state.data?.status),
1352
+ refetchInterval: (l) => Ln(l.state.data?.status),
1364
1353
  refetchOnWindowFocus: !0
1365
1354
  });
1366
1355
  return ne(() => {
@@ -1369,32 +1358,32 @@ const _t = 120 * 1e3, Kt = () => {
1369
1358
  const l = i.current, c = s.data?.status;
1370
1359
  (l === "running" && c !== "running" || l === "queued" && c === "running") && he(r, e), i.current = c;
1371
1360
  }, [s.data?.status, e, r]), s;
1372
- }, Dn = ({
1361
+ }, _n = ({
1373
1362
  syncStatus: e,
1374
1363
  isSyncInProgressFromComparison: t
1375
1364
  }) => {
1376
- const n = e?.status;
1365
+ const o = e?.status;
1377
1366
  switch (!0) {
1378
- case (n === "running" || t):
1367
+ case (o === "running" || t):
1379
1368
  return "in_progress";
1380
- case n === "queued":
1369
+ case o === "queued":
1381
1370
  return "queued";
1382
- case n === "cancelled":
1371
+ case o === "cancelled":
1383
1372
  return "cancelled";
1384
- case n === "failed":
1373
+ case o === "failed":
1385
1374
  return "failed";
1386
1375
  default:
1387
1376
  return "none";
1388
1377
  }
1389
- }, An = Be(Rt)`
1378
+ }, Kn = Be(Rt)`
1390
1379
  background-color: ${({ theme: e }) => e.colors.neutral600};
1391
1380
  & > div {
1392
1381
  background-color: ${({ theme: e }) => e.colors.neutral150};
1393
1382
  }
1394
- `, Te = ({ lastProcessedPage: e, totalPages: t }) => {
1395
- const { formatMessage: n } = b(), r = (i, s) => Math.round(Number(i) / Number(s) * 100);
1383
+ `, ve = ({ lastProcessedPage: e, totalPages: t }) => {
1384
+ const { formatMessage: o } = b(), r = (i, s) => Math.round(Number(i) / Number(s) * 100);
1396
1385
  return /* @__PURE__ */ u(f, { direction: "row", gap: 2, alignItems: "center", children: [
1397
- /* @__PURE__ */ o(h, { variant: "omega", children: n(
1386
+ /* @__PURE__ */ n(h, { variant: "omega", children: o(
1398
1387
  {
1399
1388
  id: a("homePage.alert.syncInProgress.progress")
1400
1389
  },
@@ -1403,12 +1392,12 @@ const _t = 120 * 1e3, Kt = () => {
1403
1392
  totalPages: t
1404
1393
  }
1405
1394
  ) }),
1406
- /* @__PURE__ */ o(An, { value: r(e, t) })
1395
+ /* @__PURE__ */ n(Kn, { value: r(e, t) })
1407
1396
  ] });
1408
- }, Bn = ({
1397
+ }, Dn = ({
1409
1398
  view: e,
1410
1399
  syncStatus: t,
1411
- onRefresh: n,
1400
+ onRefresh: o,
1412
1401
  onCancel: r,
1413
1402
  onResume: i,
1414
1403
  canExecute: s
@@ -1416,7 +1405,7 @@ const _t = 120 * 1e3, Kt = () => {
1416
1405
  const { formatMessage: l } = b();
1417
1406
  if (e === "none")
1418
1407
  return null;
1419
- const c = Nt(t?.error, l), m = (() => {
1408
+ const c = Lt(t?.error, l), m = (() => {
1420
1409
  switch (e) {
1421
1410
  case "queued":
1422
1411
  return {
@@ -1424,19 +1413,19 @@ const _t = 120 * 1e3, Kt = () => {
1424
1413
  id: a("homePage.alert.syncQueued.title")
1425
1414
  }),
1426
1415
  description: /* @__PURE__ */ u(f, { direction: "column", gap: 2, alignItems: "flex-start", children: [
1427
- /* @__PURE__ */ o(h, { variant: "omega", children: l({
1416
+ /* @__PURE__ */ n(h, { variant: "omega", children: l({
1428
1417
  id: a("homePage.alert.syncQueued.description")
1429
1418
  }) }),
1430
- t?.queuePosition != null ? /* @__PURE__ */ o(h, { variant: "omega", textColor: "neutral600", children: l(
1419
+ t?.queuePosition != null ? /* @__PURE__ */ n(h, { variant: "omega", textColor: "neutral600", children: l(
1431
1420
  { id: a("homePage.alert.syncQueued.position") },
1432
1421
  { position: t.queuePosition }
1433
1422
  ) }) : null,
1434
- t?.queuedAt ? /* @__PURE__ */ o(h, { variant: "omega", textColor: "neutral600", children: l(
1423
+ t?.queuedAt ? /* @__PURE__ */ n(h, { variant: "omega", textColor: "neutral600", children: l(
1435
1424
  { id: a("homePage.alert.syncQueued.queuedAt") },
1436
1425
  { queuedAt: new Date(t.queuedAt).toLocaleString() }
1437
1426
  ) }) : null
1438
1427
  ] }),
1439
- action: /* @__PURE__ */ o(E, { onClick: n, variant: "secondary", children: l({
1428
+ action: /* @__PURE__ */ n(E, { onClick: o, variant: "secondary", children: l({
1440
1429
  id: a("homePage.alert.syncQueued.linkText")
1441
1430
  }) }),
1442
1431
  variant: "default"
@@ -1447,11 +1436,11 @@ const _t = 120 * 1e3, Kt = () => {
1447
1436
  id: a("homePage.alert.syncInProgress.title")
1448
1437
  }),
1449
1438
  description: /* @__PURE__ */ u(f, { direction: "column", gap: 2, alignItems: "flex-start", children: [
1450
- /* @__PURE__ */ o(h, { variant: "omega", children: l({
1439
+ /* @__PURE__ */ n(h, { variant: "omega", children: l({
1451
1440
  id: a("homePage.alert.syncInProgress.description")
1452
1441
  }) }),
1453
- /* @__PURE__ */ o(
1454
- Te,
1442
+ /* @__PURE__ */ n(
1443
+ ve,
1455
1444
  {
1456
1445
  lastProcessedPage: t?.lastProcessedPage ?? 0,
1457
1446
  totalPages: t?.totalPages ?? 1
@@ -1459,10 +1448,10 @@ const _t = 120 * 1e3, Kt = () => {
1459
1448
  )
1460
1449
  ] }),
1461
1450
  action: /* @__PURE__ */ u(f, { direction: "row", gap: 2, alignItems: "center", children: [
1462
- /* @__PURE__ */ o(E, { onClick: n, variant: "secondary", children: l({
1451
+ /* @__PURE__ */ n(E, { onClick: o, variant: "secondary", children: l({
1463
1452
  id: a("homePage.alert.syncInProgress.linkText")
1464
1453
  }) }),
1465
- s ? /* @__PURE__ */ o(E, { variant: "danger-light", onClick: r, children: l({
1454
+ s ? /* @__PURE__ */ n(E, { variant: "danger-light", onClick: r, children: l({
1466
1455
  id: a("common.button.cancel")
1467
1456
  }) }) : null
1468
1457
  ] }),
@@ -1474,18 +1463,18 @@ const _t = 120 * 1e3, Kt = () => {
1474
1463
  id: a("homePage.alert.resumeSync.title")
1475
1464
  }),
1476
1465
  description: /* @__PURE__ */ u(f, { direction: "column", gap: 2, alignItems: "flex-start", children: [
1477
- /* @__PURE__ */ o(h, { variant: "omega", children: l({
1466
+ /* @__PURE__ */ n(h, { variant: "omega", children: l({
1478
1467
  id: a("homePage.alert.resumeSync.description")
1479
1468
  }) }),
1480
- /* @__PURE__ */ o(
1481
- Te,
1469
+ /* @__PURE__ */ n(
1470
+ ve,
1482
1471
  {
1483
1472
  lastProcessedPage: t?.lastProcessedPage ?? 0,
1484
1473
  totalPages: t?.totalPages ?? 1
1485
1474
  }
1486
1475
  )
1487
1476
  ] }),
1488
- action: s ? /* @__PURE__ */ o(E, { onClick: i, variant: "secondary", children: l({
1477
+ action: s ? /* @__PURE__ */ n(E, { onClick: i, variant: "secondary", children: l({
1489
1478
  id: a("homePage.alert.resumeSync.linkText")
1490
1479
  }) }) : void 0,
1491
1480
  variant: "warning"
@@ -1496,19 +1485,19 @@ const _t = 120 * 1e3, Kt = () => {
1496
1485
  id: a("homePage.alert.syncFailed.title")
1497
1486
  }),
1498
1487
  description: /* @__PURE__ */ u(f, { direction: "column", gap: 2, alignItems: "flex-start", children: [
1499
- /* @__PURE__ */ o(h, { variant: "omega", children: l({
1488
+ /* @__PURE__ */ n(h, { variant: "omega", children: l({
1500
1489
  id: a("homePage.alert.syncFailed.description")
1501
1490
  }) }),
1502
- c ? /* @__PURE__ */ o(h, { variant: "omega", textColor: "danger500", children: c }) : null,
1503
- /* @__PURE__ */ o(
1504
- Te,
1491
+ c ? /* @__PURE__ */ n(h, { variant: "omega", textColor: "danger500", children: c }) : null,
1492
+ /* @__PURE__ */ n(
1493
+ ve,
1505
1494
  {
1506
1495
  lastProcessedPage: t?.lastProcessedPage ?? 0,
1507
1496
  totalPages: t?.totalPages ?? 1
1508
1497
  }
1509
1498
  )
1510
1499
  ] }),
1511
- action: s ? /* @__PURE__ */ o(E, { onClick: i, variant: "secondary", children: l({
1500
+ action: s ? /* @__PURE__ */ n(E, { onClick: i, variant: "secondary", children: l({
1512
1501
  id: a("homePage.alert.syncFailed.linkText")
1513
1502
  }) }) : void 0,
1514
1503
  variant: "danger"
@@ -1517,8 +1506,8 @@ const _t = 120 * 1e3, Kt = () => {
1517
1506
  return e;
1518
1507
  }
1519
1508
  })();
1520
- return /* @__PURE__ */ o(
1521
- I,
1509
+ return /* @__PURE__ */ n(
1510
+ w,
1522
1511
  {
1523
1512
  title: m?.title,
1524
1513
  description: m?.description,
@@ -1526,115 +1515,115 @@ const _t = 120 * 1e3, Kt = () => {
1526
1515
  variant: m?.variant
1527
1516
  }
1528
1517
  );
1529
- }, Nn = () => {
1518
+ }, An = () => {
1530
1519
  const { post: e } = k(), t = oe();
1531
- return ue({
1520
+ return me({
1532
1521
  mutationFn: async () => await e(`/${_}/snapshot/sync/cancel`),
1533
1522
  onSuccess: () => {
1534
1523
  he(t);
1535
1524
  }
1536
1525
  });
1537
- }, Fn = ({ open: e, onClose: t }) => {
1538
- const { formatMessage: n } = b(), {
1526
+ }, Bn = ({ open: e, onClose: t }) => {
1527
+ const { formatMessage: o } = b(), {
1539
1528
  mutate: r,
1540
1529
  isPending: i,
1541
1530
  error: s,
1542
1531
  reset: l
1543
- } = Nn(), c = () => {
1532
+ } = An(), c = () => {
1544
1533
  t(), l();
1545
1534
  };
1546
- return /* @__PURE__ */ o(
1547
- me,
1535
+ return /* @__PURE__ */ n(
1536
+ ge,
1548
1537
  {
1549
1538
  open: e,
1550
1539
  onClose: c,
1551
1540
  onSubmit: () => r(void 0, { onSuccess: c }),
1552
1541
  title: /* @__PURE__ */ u(f, { direction: "row", gap: 2, alignItems: "center", children: [
1553
- /* @__PURE__ */ o(Ae, { fill: "danger500", width: 20, height: 20 }),
1554
- n({
1542
+ /* @__PURE__ */ n(Ae, { fill: "danger500", width: 20, height: 20 }),
1543
+ o({
1555
1544
  id: a("homePage.modal.cancelSync.title")
1556
1545
  })
1557
1546
  ] }),
1558
- confirmButtonText: n({
1547
+ confirmButtonText: o({
1559
1548
  id: a("homePage.modal.cancelSync.confirmButtonText")
1560
1549
  }),
1561
1550
  isConfirmButtonLoading: i,
1562
1551
  children: /* @__PURE__ */ u(f, { direction: "column", gap: 4, alignItems: "stretch", children: [
1563
- /* @__PURE__ */ o(h, { variant: "omega", children: n({
1552
+ /* @__PURE__ */ n(h, { variant: "omega", children: o({
1564
1553
  id: a("homePage.modal.cancelSync.description")
1565
1554
  }) }),
1566
- s && /* @__PURE__ */ o(h, { variant: "omega", textColor: "danger500", children: ge(s, n) })
1555
+ s && /* @__PURE__ */ n(h, { variant: "omega", textColor: "danger500", children: ue(s, o) })
1567
1556
  ] })
1568
1557
  }
1569
1558
  );
1570
- }, On = () => {
1559
+ }, Nn = () => {
1571
1560
  const { post: e } = k(), t = oe();
1572
- return ue({
1573
- mutationFn: async (n) => await e(`/${_}/snapshot/sync/${n}/resume`),
1561
+ return me({
1562
+ mutationFn: async (o) => await e(`/${_}/snapshot/sync/${o}/resume`),
1574
1563
  onSuccess: () => {
1575
1564
  he(t);
1576
1565
  }
1577
1566
  });
1578
- }, Un = ({ open: e, onClose: t, jobDocumentId: n }) => {
1567
+ }, Fn = ({ open: e, onClose: t, jobDocumentId: o }) => {
1579
1568
  const { formatMessage: r } = b(), {
1580
1569
  mutate: i,
1581
1570
  isPending: s,
1582
1571
  error: l,
1583
1572
  reset: c
1584
- } = On(), d = () => {
1573
+ } = Nn(), d = () => {
1585
1574
  t(), c();
1586
1575
  };
1587
- return /* @__PURE__ */ o(
1588
- me,
1576
+ return /* @__PURE__ */ n(
1577
+ ge,
1589
1578
  {
1590
1579
  open: e,
1591
1580
  onClose: d,
1592
- onSubmit: () => i(n, { onSuccess: d }),
1581
+ onSubmit: () => i(o, { onSuccess: d }),
1593
1582
  title: r({
1594
1583
  id: a("homePage.modal.resumeSync.title")
1595
1584
  }),
1596
1585
  confirmButtonText: r({
1597
1586
  id: a("homePage.modal.resumeSync.confirmButtonText")
1598
1587
  }),
1599
- isConfirmButtonDisabled: !n,
1588
+ isConfirmButtonDisabled: !o,
1600
1589
  isConfirmButtonLoading: s,
1601
1590
  children: /* @__PURE__ */ u(f, { direction: "column", gap: 4, alignItems: "stretch", children: [
1602
- /* @__PURE__ */ o(h, { variant: "omega", children: r({
1591
+ /* @__PURE__ */ n(h, { variant: "omega", children: r({
1603
1592
  id: a("homePage.modal.resumeSync.description")
1604
1593
  }) }),
1605
- l && /* @__PURE__ */ o(h, { variant: "omega", textColor: "danger500", children: ge(l, r) })
1594
+ l && /* @__PURE__ */ n(h, { variant: "omega", textColor: "danger500", children: ue(l, r) })
1606
1595
  ] })
1607
1596
  }
1608
1597
  );
1609
- }, $n = ({
1598
+ }, On = ({
1610
1599
  contentTypeUid: e,
1611
1600
  isSyncInProgressFromComparison: t,
1612
- canExecute: n,
1601
+ canExecute: o,
1613
1602
  enabled: r = !0
1614
1603
  }) => {
1615
- const [i, s] = L(!1), [l, c] = L(!1), { data: d, refetch: m } = dt(
1604
+ const [i, s] = L(!1), [l, c] = L(!1), { data: d, refetch: m } = lt(
1616
1605
  e,
1617
1606
  r
1618
- ), p = Dn({
1607
+ ), p = _n({
1619
1608
  syncStatus: d,
1620
1609
  isSyncInProgressFromComparison: t
1621
1610
  }), y = d?.jobDocumentId ?? "";
1622
1611
  return /* @__PURE__ */ u(A, { children: [
1623
- /* @__PURE__ */ o(
1624
- Bn,
1612
+ /* @__PURE__ */ n(
1613
+ Dn,
1625
1614
  {
1626
1615
  view: p,
1627
1616
  syncStatus: d,
1628
1617
  onRefresh: () => m(),
1629
1618
  onCancel: () => s(!0),
1630
1619
  onResume: () => c(!0),
1631
- canExecute: n
1620
+ canExecute: o
1632
1621
  }
1633
1622
  ),
1634
- n ? /* @__PURE__ */ u(A, { children: [
1635
- /* @__PURE__ */ o(Fn, { open: i, onClose: () => s(!1) }),
1636
- /* @__PURE__ */ o(
1637
- Un,
1623
+ o ? /* @__PURE__ */ u(A, { children: [
1624
+ /* @__PURE__ */ n(Bn, { open: i, onClose: () => s(!1) }),
1625
+ /* @__PURE__ */ n(
1626
+ Fn,
1638
1627
  {
1639
1628
  open: l,
1640
1629
  onClose: () => c(!1),
@@ -1643,79 +1632,79 @@ const _t = 120 * 1e3, Kt = () => {
1643
1632
  )
1644
1633
  ] }) : null
1645
1634
  ] });
1646
- }, Gn = (e) => {
1635
+ }, Un = (e) => {
1647
1636
  const { get: t } = k();
1648
1637
  return U({
1649
1638
  queryKey: ["compare-schemas"],
1650
1639
  queryFn: async () => {
1651
- const { data: n } = await t(`/${_}/compare-schemas`);
1652
- return n;
1640
+ const { data: o } = await t(`/${_}/compare-schemas`);
1641
+ return o;
1653
1642
  },
1654
1643
  enabled: e
1655
1644
  });
1656
- }, Qn = (e = !0) => {
1645
+ }, $n = (e = !0) => {
1657
1646
  const { get: t } = k();
1658
1647
  return U({
1659
- queryKey: [Et],
1648
+ queryKey: [wt],
1660
1649
  enabled: e,
1661
1650
  queryFn: async () => {
1662
- const { data: n } = await t(
1651
+ const { data: o } = await t(
1663
1652
  `/${_}/promotion/promotable-content-types`
1664
1653
  );
1665
- return n.contentTypes;
1654
+ return o.contentTypes;
1666
1655
  }
1667
1656
  });
1668
- }, Hn = (e, t) => {
1669
- const n = new Set((e ?? []).map((i) => i.documentId)), r = [...t.entries()].filter(([i]) => !n.has(i)).map(([, i]) => Vt(i)).filter((i) => i != null);
1657
+ }, Gn = (e, t) => {
1658
+ const o = new Set((e ?? []).map((i) => i.documentId)), r = [...t.entries()].filter(([i]) => !o.has(i)).map(([, i]) => Qt(i)).filter((i) => i != null);
1670
1659
  return [...e ?? [], ...r];
1671
- }, Vn = (e, t) => {
1672
- const n = new Set(t.map((i) => i.documentId)), r = /* @__PURE__ */ new Map();
1660
+ }, Qn = (e, t) => {
1661
+ const o = new Set(t.map((i) => i.documentId)), r = /* @__PURE__ */ new Map();
1673
1662
  for (const [i, s] of e)
1674
- n.has(i) && r.set(i, s);
1663
+ o.has(i) && r.set(i, s);
1675
1664
  return r;
1676
- }, Yn = (e, t) => {
1677
- const n = t[0]?.documentId;
1678
- if (!n)
1665
+ }, Hn = (e, t) => {
1666
+ const o = t[0]?.documentId;
1667
+ if (!o)
1679
1668
  return e;
1680
1669
  const r = new Map(e);
1681
- return r.set(n, t), r;
1682
- }, jn = (e) => {
1683
- const [t, n] = L([]), [r, i] = L(() => /* @__PURE__ */ new Map()), s = Ve(() => {
1684
- n([]), i(/* @__PURE__ */ new Map());
1670
+ return r.set(o, t), r;
1671
+ }, Vn = (e) => {
1672
+ const [t, o] = L([]), [r, i] = L(() => /* @__PURE__ */ new Map()), s = Ve(() => {
1673
+ o([]), i(/* @__PURE__ */ new Map());
1685
1674
  }, []);
1686
1675
  ne(() => {
1687
1676
  i(
1688
- (d) => Vn(d, t)
1677
+ (d) => Qn(d, t)
1689
1678
  );
1690
1679
  }, [t]);
1691
1680
  const l = Ve((d) => {
1692
1681
  i(
1693
- (m) => Yn(m, d)
1682
+ (m) => Hn(m, d)
1694
1683
  );
1695
1684
  }, []), c = Je(
1696
- () => Hn(e, r),
1685
+ () => Gn(e, r),
1697
1686
  [e, r]
1698
1687
  );
1699
1688
  return {
1700
1689
  selectedPromotions: t,
1701
- setSelectedPromotions: n,
1690
+ setSelectedPromotions: o,
1702
1691
  clear: s,
1703
1692
  rememberEntityGroup: l,
1704
1693
  entitiesForPreview: c
1705
1694
  };
1706
- }, Xn = () => {
1695
+ }, Yn = () => {
1707
1696
  const { formatMessage: e } = b(), {
1708
1697
  isLoading: t,
1709
- allowedActions: { canExecute: n = !1, canRead: r = !1 }
1710
- } = St([...ke.promotionExecute, ...ke.settingsRead]), [{ query: i }, s] = Ct(), l = Ze(!1), c = ae.object({
1698
+ allowedActions: { canExecute: o = !1, canRead: r = !1 }
1699
+ } = Pt([...ke.promotionExecute, ...ke.settingsRead]), [{ query: i }, s] = St(), l = Ze(!1), c = ae.object({
1711
1700
  page: ae.coerce.number().optional().default(1),
1712
1701
  pageSize: ae.coerce.number().optional().default(10),
1713
1702
  uid: ae.string().optional()
1714
- }).parse(i), [d, m] = L(!1), { data: p, isLoading: y } = Kt(), g = p?.active === !0, P = !y && p?.active === !1, { data: C } = dt(c.uid ?? "", g), {
1715
- data: T,
1703
+ }).parse(i), [d, m] = L(!1), { data: p, isLoading: y } = Kt(), g = p?.active === !0, P = !y && p?.active === !1, { data: C } = lt(c.uid ?? "", g), {
1704
+ data: v,
1716
1705
  isSuccess: $,
1717
1706
  isLoading: j
1718
- } = Qn(g), x = $ && (T?.length ?? 0) > 0, O = T?.map((B) => ({
1707
+ } = $n(g), x = $ && (v?.length ?? 0) > 0, O = v?.map((B) => ({
1719
1708
  key: B.uid,
1720
1709
  value: B.uid,
1721
1710
  label: B.displayName
@@ -1723,44 +1712,44 @@ const _t = 120 * 1e3, Kt = () => {
1723
1712
  data: S,
1724
1713
  isLoading: G,
1725
1714
  error: Q
1726
- } = Ft({
1715
+ } = Bt({
1727
1716
  uid: c.uid,
1728
1717
  page: c.page,
1729
1718
  pageSize: c.pageSize,
1730
1719
  enabled: g
1731
1720
  }), {
1732
1721
  selectedPromotions: K,
1733
- setSelectedPromotions: M,
1734
- clear: R,
1722
+ setSelectedPromotions: R,
1723
+ clear: M,
1735
1724
  rememberEntityGroup: Pe,
1736
1725
  entitiesForPreview: Se
1737
- } = jn(S?.results), X = (B) => {
1726
+ } = Vn(S?.results), X = (B) => {
1738
1727
  l.current = !1, s({
1739
1728
  ...i,
1740
1729
  page: 1,
1741
1730
  pageSize: 10,
1742
1731
  uid: B
1743
- }), R();
1744
- }, w = () => {
1732
+ }), M();
1733
+ }, I = () => {
1745
1734
  l.current = !0, s({
1746
1735
  ...i,
1747
1736
  page: 1,
1748
1737
  pageSize: 10,
1749
1738
  uid: void 0
1750
- }), R();
1739
+ }), M();
1751
1740
  }, Ce = () => {
1752
- m(!1), R();
1741
+ m(!1), M();
1753
1742
  }, {
1754
1743
  data: J,
1755
1744
  isLoading: D,
1756
1745
  error: Fe
1757
- } = Gn(g && x), Oe = S?.mainField, ut = S?.maxDepthReached, be = S?.errors, mt = be?.type === "unconfigured_relations" ? be : void 0, we = be?.type === "sync_in_progress", Ie = we || C?.status === "running", ie = !P && !D && (!!Fe || !!J && !J?.isMatch), Ue = !n || y || P || D || ie || we || C?.status === "running" || C?.status === "queued", gt = !!c.uid && G, ht = () => {
1746
+ } = Un(g && x), Oe = S?.mainField, dt = S?.maxDepthReached, be = S?.errors, ut = be?.type === "unconfigured_relations" ? be : void 0, Ie = be?.type === "sync_in_progress", we = Ie || C?.status === "running", ie = !P && !D && (!!Fe || !!J && !J?.isMatch), Ue = !o || y || P || D || ie || Ie || C?.status === "running" || C?.status === "queued", mt = !!c.uid && G, gt = () => {
1758
1747
  switch (!0) {
1759
- case (j || gt):
1760
- return /* @__PURE__ */ o(ve, {});
1748
+ case (j || mt):
1749
+ return /* @__PURE__ */ n(Te, {});
1761
1750
  case ($ && !x):
1762
- return /* @__PURE__ */ o(
1763
- I,
1751
+ return /* @__PURE__ */ n(
1752
+ w,
1764
1753
  {
1765
1754
  title: e({
1766
1755
  id: a("homePage.alert.configurationNeeded.title")
@@ -1770,14 +1759,14 @@ const _t = 120 * 1e3, Kt = () => {
1770
1759
  r ? "homePage.alert.configurationNeeded.description" : "homePage.alert.configurationNeeded.readOnlyDescription"
1771
1760
  )
1772
1761
  }),
1773
- action: r ? /* @__PURE__ */ o(Re, { tag: Me, to: "/settings/xecp/configuration", children: e({
1762
+ action: r ? /* @__PURE__ */ n(Me, { tag: Re, to: "/settings/xecp/configuration", children: e({
1774
1763
  id: a("homePage.alert.configurationNeeded.linkText")
1775
1764
  }) }) : void 0,
1776
1765
  variant: "danger"
1777
1766
  }
1778
1767
  );
1779
- case Ie:
1780
- return /* @__PURE__ */ o(
1768
+ case we:
1769
+ return /* @__PURE__ */ n(
1781
1770
  W,
1782
1771
  {
1783
1772
  content: e({
@@ -1787,8 +1776,8 @@ const _t = 120 * 1e3, Kt = () => {
1787
1776
  );
1788
1777
  case (S?.results && S?.results?.length > 0):
1789
1778
  return /* @__PURE__ */ u(A, { children: [
1790
- ut && /* @__PURE__ */ o(
1791
- I,
1779
+ dt && /* @__PURE__ */ n(
1780
+ w,
1792
1781
  {
1793
1782
  title: e({
1794
1783
  id: a("homePage.alert.maxDepthExceeded.title")
@@ -1799,40 +1788,40 @@ const _t = 120 * 1e3, Kt = () => {
1799
1788
  })
1800
1789
  }
1801
1790
  ),
1802
- /* @__PURE__ */ o(
1803
- an,
1791
+ /* @__PURE__ */ n(
1792
+ on,
1804
1793
  {
1805
1794
  entities: S?.results,
1806
1795
  contentTypeMainField: Oe,
1807
1796
  selectedPromotions: K,
1808
- setSelectedPromotions: M,
1797
+ setSelectedPromotions: R,
1809
1798
  onRememberEntityGroup: Pe,
1810
- canExecute: n && !P
1799
+ canExecute: o && !P
1811
1800
  }
1812
1801
  )
1813
1802
  ] });
1814
1803
  case !!Q:
1815
- return /* @__PURE__ */ o(
1804
+ return /* @__PURE__ */ n(
1816
1805
  W,
1817
1806
  {
1818
- icon: /* @__PURE__ */ o(Ae, { width: 24, height: 24 }),
1807
+ icon: /* @__PURE__ */ n(Ae, { width: 24, height: 24 }),
1819
1808
  content: e({ id: a("homePage.errorLoadingEntities") })
1820
1809
  }
1821
1810
  );
1822
1811
  case (S?.results && S?.results?.length === 0):
1823
- return /* @__PURE__ */ o(
1824
- Qt,
1812
+ return /* @__PURE__ */ n(
1813
+ $t,
1825
1814
  {
1826
1815
  contentTypeUid: c.uid ?? "",
1827
1816
  hasExistingSnapshot: S?.snapshot?.exists ?? !1,
1828
- unconfiguredRelationsError: mt,
1817
+ unconfiguredRelationsError: ut,
1829
1818
  isGetSnapshotDisabled: Ue,
1830
- canExecute: n && !P,
1819
+ canExecute: o && !P,
1831
1820
  canReadSettings: r
1832
1821
  }
1833
1822
  );
1834
1823
  default:
1835
- return /* @__PURE__ */ o(
1824
+ return /* @__PURE__ */ n(
1836
1825
  W,
1837
1826
  {
1838
1827
  content: e({
@@ -1841,23 +1830,23 @@ const _t = 120 * 1e3, Kt = () => {
1841
1830
  }
1842
1831
  );
1843
1832
  }
1844
- }, $e = S?.snapshot?.exists ?? !1, pt = !Ie && $e && S?.pagination && S?.pagination?.pageCount > 0, yt = !n || y || P || D || !x || ie || !c.uid || K.length === 0 || Ie, ft = j || y || D || P || ie || !x, Pt = () => {
1833
+ }, $e = S?.snapshot?.exists ?? !1, ht = !we && $e && S?.pagination && S?.pagination?.pageCount > 0, pt = !o || y || P || D || !x || ie || !c.uid || K.length === 0 || we, yt = j || y || D || P || ie || !x, ft = () => {
1845
1834
  switch (!0) {
1846
1835
  case y:
1847
1836
  return /* @__PURE__ */ u(f, { gap: 2, alignItems: "center", children: [
1848
- /* @__PURE__ */ o(ve, { small: !0 }),
1849
- /* @__PURE__ */ o(h, { variant: "omega", children: e({ id: a("homePage.verifyingLicense") }) })
1837
+ /* @__PURE__ */ n(Te, { small: !0 }),
1838
+ /* @__PURE__ */ n(h, { variant: "omega", children: e({ id: a("homePage.verifyingLicense") }) })
1850
1839
  ] });
1851
1840
  case P:
1852
- return /* @__PURE__ */ o($t, { canReadSettings: r });
1841
+ return /* @__PURE__ */ n(Ot, { canReadSettings: r });
1853
1842
  case D:
1854
1843
  return /* @__PURE__ */ u(f, { gap: 2, alignItems: "center", children: [
1855
- /* @__PURE__ */ o(ve, { small: !0 }),
1856
- /* @__PURE__ */ o(h, { variant: "omega", children: e({ id: a("homePage.verifyingSchemas") }) })
1844
+ /* @__PURE__ */ n(Te, { small: !0 }),
1845
+ /* @__PURE__ */ n(h, { variant: "omega", children: e({ id: a("homePage.verifyingSchemas") }) })
1857
1846
  ] });
1858
1847
  case ie:
1859
- return /* @__PURE__ */ o(
1860
- Gt,
1848
+ return /* @__PURE__ */ n(
1849
+ Ut,
1861
1850
  {
1862
1851
  compareSchemasData: J,
1863
1852
  errorCompareSchemas: Fe?.message
@@ -1869,76 +1858,76 @@ const _t = 120 * 1e3, Kt = () => {
1869
1858
  }, Ge = l.current || !!c.uid || !x;
1870
1859
  return ne(() => {
1871
1860
  if (Ge) return;
1872
- const B = T?.[0]?.uid;
1861
+ const B = v?.[0]?.uid;
1873
1862
  B && s({
1874
1863
  ...i,
1875
1864
  uid: B,
1876
1865
  page: 1,
1877
1866
  pageSize: 10
1878
1867
  });
1879
- }, [Ge, T, i, s]), t ? /* @__PURE__ */ o(Z.Loading, {}) : /* @__PURE__ */ u(A, { children: [
1880
- /* @__PURE__ */ o(Z.Title, { children: e({ id: a("homePage.title") }) }),
1868
+ }, [Ge, v, i, s]), t ? /* @__PURE__ */ n(Z.Loading, {}) : /* @__PURE__ */ u(A, { children: [
1869
+ /* @__PURE__ */ n(Z.Title, { children: e({ id: a("homePage.title") }) }),
1881
1870
  /* @__PURE__ */ u(Z.Main, { children: [
1882
- /* @__PURE__ */ o(
1871
+ /* @__PURE__ */ n(
1883
1872
  Qe.Header,
1884
1873
  {
1885
1874
  title: e({ id: a("homePage.title") }),
1886
- primaryAction: n ? /* @__PURE__ */ o(E, { disabled: yt, onClick: () => m(!0), children: e({ id: a("homePage.promoteContent") }) }) : null
1875
+ primaryAction: o ? /* @__PURE__ */ n(E, { disabled: pt, onClick: () => m(!0), children: e({ id: a("homePage.promoteContent") }) }) : null
1887
1876
  }
1888
1877
  ),
1889
- /* @__PURE__ */ o(Qe.Content, { children: /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 4, children: [
1890
- Pt(),
1891
- /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(
1878
+ /* @__PURE__ */ n(Qe.Content, { children: /* @__PURE__ */ u(f, { direction: "column", alignItems: "stretch", gap: 4, children: [
1879
+ ft(),
1880
+ /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(
1892
1881
  Dt,
1893
1882
  {
1894
1883
  name: "contentType",
1895
1884
  placeholder: e({ id: a("homePage.selectContentType") }),
1896
- onClear: w,
1885
+ onClear: I,
1897
1886
  onChange: X,
1898
1887
  options: O,
1899
1888
  value: c.uid,
1900
- disabled: ft
1889
+ disabled: yt
1901
1890
  }
1902
1891
  ) }),
1903
1892
  c?.uid && !P ? /* @__PURE__ */ u(A, { children: [
1904
- /* @__PURE__ */ o(
1905
- $n,
1893
+ /* @__PURE__ */ n(
1894
+ On,
1906
1895
  {
1907
1896
  contentTypeUid: c.uid,
1908
- isSyncInProgressFromComparison: we,
1909
- canExecute: n && !P,
1897
+ isSyncInProgressFromComparison: Ie,
1898
+ canExecute: o && !P,
1910
1899
  enabled: g
1911
1900
  }
1912
1901
  ),
1913
- /* @__PURE__ */ o(
1914
- Ut,
1902
+ /* @__PURE__ */ n(
1903
+ Ft,
1915
1904
  {
1916
1905
  contentTypeUid: c.uid,
1917
1906
  selectedPromotionsLength: K.length,
1918
1907
  syncedAt: S?.snapshot?.syncedAt ?? null,
1919
1908
  isGetSnapshotDisabled: Ue,
1920
1909
  hasSnapshot: $e,
1921
- clearSelectedPromotions: R,
1922
- canExecute: n && !P
1910
+ clearSelectedPromotions: M,
1911
+ canExecute: o && !P
1923
1912
  }
1924
1913
  )
1925
1914
  ] }) : null,
1926
- P ? null : ht(),
1927
- pt && !P ? /* @__PURE__ */ u(
1915
+ P ? null : gt(),
1916
+ ht && !P ? /* @__PURE__ */ u(
1928
1917
  Ee.Root,
1929
1918
  {
1930
1919
  total: S?.pagination?.total || 0,
1931
1920
  pageCount: S?.pagination?.pageCount || 0,
1932
1921
  children: [
1933
- /* @__PURE__ */ o(Ee.PageSize, {}),
1934
- /* @__PURE__ */ o(Ee.Links, {})
1922
+ /* @__PURE__ */ n(Ee.PageSize, {}),
1923
+ /* @__PURE__ */ n(Ee.Links, {})
1935
1924
  ]
1936
1925
  }
1937
1926
  ) : null
1938
1927
  ] }) })
1939
1928
  ] }),
1940
- n && !P && d ? /* @__PURE__ */ o(
1941
- qn,
1929
+ o && !P && d ? /* @__PURE__ */ n(
1930
+ Rn,
1942
1931
  {
1943
1932
  open: d,
1944
1933
  onClose: Ce,
@@ -1949,10 +1938,10 @@ const _t = 120 * 1e3, Kt = () => {
1949
1938
  }
1950
1939
  ) : null
1951
1940
  ] });
1952
- }, Jn = () => /* @__PURE__ */ o(Z.Protect, { permissions: [...ke.promotionRead], children: /* @__PURE__ */ o(Xn, {}) }), uo = () => /* @__PURE__ */ o(vt, { children: /* @__PURE__ */ u(bt, { children: [
1953
- /* @__PURE__ */ o(He, { index: !0, element: /* @__PURE__ */ o(Jn, {}) }),
1954
- /* @__PURE__ */ o(He, { path: "*", element: /* @__PURE__ */ o(Z.Error, {}) })
1941
+ }, jn = () => /* @__PURE__ */ n(Z.Protect, { permissions: [...ke.promotionRead], children: /* @__PURE__ */ n(Yn, {}) }), co = () => /* @__PURE__ */ n(Et, { children: /* @__PURE__ */ u(Ct, { children: [
1942
+ /* @__PURE__ */ n(He, { index: !0, element: /* @__PURE__ */ n(jn, {}) }),
1943
+ /* @__PURE__ */ n(He, { path: "*", element: /* @__PURE__ */ n(Z.Error, {}) })
1955
1944
  ] }) });
1956
1945
  export {
1957
- uo as default
1946
+ co as default
1958
1947
  };