@deviceinsight/ng-ui-scale-lib 9.18.7 → 9.19.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 (24) hide show
  1. package/dist/{AccessEditModal-eb390351.js → AccessEditModal-38c11d48.js} +12 -11
  2. package/dist/{BundleManagementContainer-174064d0.js → BundleManagementContainer-0efa3cec.js} +1 -1
  3. package/dist/{BundlesContainer-98d8614b.js → BundlesContainer-ff572d82.js} +92 -91
  4. package/dist/{ContextBarContext-9a83b3c2.js → ContextBarContext-0565a593.js} +8448 -8362
  5. package/dist/{DatapointImport-5de3d9f9.js → DatapointImport-2deee17a.js} +35 -34
  6. package/dist/{FileUploadInput-7cfdef17.js → FileUploadInput-87e9d774.js} +1 -1
  7. package/dist/{Files-e5b01d5a.js → Files-f6c464c2.js} +28 -27
  8. package/dist/{GlobalPowerBiReports-18c8580e.js → GlobalPowerBiReports-f448278b.js} +1 -1
  9. package/dist/{Graph-13c4a5ff.js → Graph-fce6bde2.js} +1 -1
  10. package/dist/{JsonSettingWidget-a793cc7a.js → JsonSettingWidget-0360cf69.js} +2 -2
  11. package/dist/{LicensesEditPage-f4ed65d6.js → LicensesEditPage-effb07a9.js} +1 -1
  12. package/dist/{LicensesList-be940cde.js → LicensesList-7832868c.js} +6 -5
  13. package/dist/{PropertiesEditPage-925088fa.js → PropertiesEditPage-e84dd613.js} +2 -2
  14. package/dist/{PropertiesList-16e7473a.js → PropertiesList-e8f218de.js} +6 -5
  15. package/dist/{TemplateEditPage-b72dcdc7.js → TemplateEditPage-a3994735.js} +19 -17
  16. package/dist/{TemplateTextInput-73c5f313.js → TemplateTextInput-712d3528.js} +2 -2
  17. package/dist/{TemplatesListPage-b80bb576.js → TemplatesListPage-86d0d508.js} +4 -3
  18. package/dist/{UserGroupAssignments-f7a49d60.js → UserGroupAssignments-b2e98796.js} +3 -2
  19. package/dist/{UserGroupTheme-e57b29f5.js → UserGroupTheme-6e262174.js} +2 -2
  20. package/dist/api.js +2 -2
  21. package/dist/{index-b7e29e8f.js → index-8f79799f.js} +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{react-router-38979171.js → react-router-824f2efe.js} +1 -1
  24. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { aA as g, aj as y, a_ as w, az as e, ai as r, bR as I, di as U, dj as _, dk as O, cj as E, dl as m } from "./ContextBarContext-9a83b3c2.js";
2
- import { useState as f, useContext as M, useMemo as k } from "react";
3
- import { Modal as b, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
1
+ import { aA as g, aj as y, a_ as w, az as e, ai as r, bR as I, di as U, dj as _, dk as O, cj as b, dl as m } from "./ContextBarContext-0565a593.js";
2
+ import { useState as f, useContext as E, useMemo as M } from "react";
3
+ import { Modal as k, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
4
4
  import { InfoBox as F } from "@deviceinsight/ng-ui-components";
5
5
  import { searchUserGroups as R } from "@deviceinsight/ng-ui-api-client";
6
6
  const W = "usergroupsWithoutAccessToTemplate";
7
7
  function z(o) {
8
8
  return {
9
- fields: E,
9
+ fields: b,
10
10
  search: (s, t) => R(o(s), t)
11
11
  };
12
12
  }
@@ -17,15 +17,15 @@ function L(o, s) {
17
17
  ) : m(o, !0);
18
18
  }
19
19
  function q({ onSave: o, onCancel: s, loading: t, template: n }) {
20
- const [i, T] = f([]), [c, S] = f(!0), { user: u } = M(g), l = n && n.accountGroupsWithAccess || [], C = c ? u.accountGroupIds ?? [] : null, G = k(
20
+ const [i, T] = f([]), [a, S] = f(!0), { user: u } = E(g), l = n && n.accountGroupsWithAccess || [], C = a ? u.accountGroupIds ?? [] : null, G = M(
21
21
  () => Math.random(),
22
22
  // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [c]
23
+ [a]
24
24
  ), { t: d } = y(), h = w(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), j = (n == null ? void 0 : n.accountGroupsWithAccess) ?? [], p = [...i, ...j].some(
25
- (a) => u.accountGroupIds.includes(a)
25
+ (c) => u.accountGroupIds.includes(c)
26
26
  ), A = !h && !p || t;
27
27
  return /* @__PURE__ */ e.jsx(
28
- b,
28
+ k,
29
29
  {
30
30
  onOutsideClick: s,
31
31
  header: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.title", children: "Authorize User Groups to access this template" }),
@@ -47,7 +47,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
47
47
  searchContext: W,
48
48
  searchConfig: z(L(l, C)),
49
49
  columnDefinitions: _(!0),
50
- uniqueItemKey: (a) => a.id,
50
+ uniqueItemKey: (c) => c.id,
51
51
  pageSize: 5,
52
52
  onSelectSome: T,
53
53
  updateTrigger: G,
@@ -58,7 +58,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
58
58
  flexGrow: 1,
59
59
  marginLeft: "50px"
60
60
  },
61
- value: c,
61
+ value: a,
62
62
  onChange: S,
63
63
  label: d("notificationTemplate.access.modal.showOnlyMyGroups", {
64
64
  defaultValue: "Show only my groups"
@@ -66,7 +66,8 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
66
66
  horizontal: !0
67
67
  }
68
68
  ),
69
- searchInputScope: "notification-template-access-modal"
69
+ searchInputScope: "notification-template-access-modal",
70
+ tableName: "notification-template-access-modal-table"
70
71
  }
71
72
  ),
72
73
  /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.note", children: "Please select User Groups to authorise them to access and work with this template." })
@@ -1,4 +1,4 @@
1
- import { by as n, az as r } from "./ContextBarContext-9a83b3c2.js";
1
+ import { by as n, az as r } from "./ContextBarContext-0565a593.js";
2
2
  import { useContext as m, useEffect as s } from "react";
3
3
  import { useLocation as a } from "react-router-dom";
4
4
  import { messageBoxDismissGroup as i } from "@deviceinsight/ng-ui-components";
@@ -1,19 +1,19 @@
1
- import { aj as S, bi as P, az as e, ai as r, bo as A, ba as I, d8 as T, aT as F, b7 as re, am as ae, d9 as ie, cq as q, da as oe } from "./ContextBarContext-9a83b3c2.js";
1
+ import { aj as S, bi as P, az as e, ai as r, bo as A, ba as I, d8 as T, aT as F, b7 as re, am as ae, d9 as ie, cq as q, da as oe } from "./ContextBarContext-0565a593.js";
2
2
  import { useEffect as D, useState as V, useRef as ce, useCallback as ue, createElement as he } from "react";
3
3
  import { useLocation as me } from "react-router-dom";
4
4
  import { createBundle as xe, deleteBundleFile as je, createBundleFile as fe, releaseBundleVersion as Ee, fetchBundleVersion as G, fetchBundleFiles as z, createBundleVersion as ge, deleteBundleVersion as Be, downloadBundleFile as be, fetchBundleVersions as W, deleteBundle as Ve, fetchAllBundles as De } from "@deviceinsight/ng-ui-api-client";
5
5
  import { messageBoxSuccess as $, messageBoxError as H, ReactableWithClientSidePagination as Ne, Reactable as Te, ContentHeader as ve } from "@deviceinsight/ng-ui-components";
6
6
  import { Modal as _, SpinnerContainer as N, Button as j, Icon as v, Label as _e, AccordionItem as ye, Accordion as pe } from "@deviceinsight/ng-ui-basic-components";
7
7
  import { B as c, Q, a as Ce } from "./consts-012135e5.js";
8
- import { F as Le } from "./FileUploadInput-7cfdef17.js";
8
+ import { F as Le } from "./FileUploadInput-87e9d774.js";
9
9
  import { u as Se, b as Ae } from "./useCanDeleteBundleVersion-64f35949.js";
10
10
  import "react-dom";
11
11
  const Y = (n) => {
12
12
  n && setTimeout(() => n.focus(), 0);
13
13
  }, Z = (n, t) => {
14
14
  D(() => {
15
- const s = (l) => {
16
- t || (l.code === "Enter" || l.code === "NumpadEnter") && n();
15
+ const s = (d) => {
16
+ t || (d.code === "Enter" || d.code === "NumpadEnter") && n();
17
17
  };
18
18
  return document.addEventListener("keydown", s), () => {
19
19
  document.removeEventListener("keydown", s);
@@ -21,8 +21,8 @@ const Y = (n) => {
21
21
  }, [n, t]);
22
22
  }, Ie = ({ setOpen: n, loadBundles: t }) => {
23
23
  const { t: s } = S(), {
24
- handleSubmit: l,
25
- control: d,
24
+ handleSubmit: d,
25
+ control: l,
26
26
  formState: { isSubmitting: a }
27
27
  } = P({ defaultValues: { name: "" } }), i = (o) => xe(o).then(() => {
28
28
  t(), n(!1), $(
@@ -30,7 +30,7 @@ const Y = (n) => {
30
30
  );
31
31
  }).catch((h) => {
32
32
  console.error("bundle creation error", h), H(/* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.createBundleError", children: "Could not save bundle" }));
33
- }), u = () => l(i, (o) => {
33
+ }), u = () => d(i, (o) => {
34
34
  console.warn("Validation error", o);
35
35
  })();
36
36
  return Z(u, !1), /* @__PURE__ */ e.jsx(
@@ -42,7 +42,7 @@ const Y = (n) => {
42
42
  A,
43
43
  {
44
44
  name: "name",
45
- control: d,
45
+ control: l,
46
46
  rules: {
47
47
  required: s("bundleManagement.bundles.name.required", {
48
48
  defaultValue: "Name is required"
@@ -92,15 +92,15 @@ const Y = (n) => {
92
92
  }
93
93
  );
94
94
  }, O = (n, t, s) => {
95
- n && n.some((l) => !l.condition || l.condition(s) ? (t(/* @__PURE__ */ e.jsx(r, { i18nKey: l.id, children: l.defaultValue })), !0) : !1);
95
+ n && n.some((d) => !d.condition || d.condition(s) ? (t(/* @__PURE__ */ e.jsx(r, { i18nKey: d.id, children: d.defaultValue })), !0) : !1);
96
96
  };
97
97
  function g({
98
98
  requestFunction: n,
99
99
  errorMessages: t,
100
100
  successMessages: s,
101
- initialData: l
101
+ initialData: d
102
102
  }) {
103
- const [d, a] = V(l), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0), b = ue(async (...B) => {
103
+ const [l, a] = V(d), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0), b = ue(async (...B) => {
104
104
  try {
105
105
  h(void 0), u(!0);
106
106
  const f = await n(...B);
@@ -113,25 +113,25 @@ function g({
113
113
  }, [n, t, s]);
114
114
  return D(() => (m.current = !0, () => {
115
115
  m.current = !1;
116
- }), [n, t, s]), { run: b, data: d, loading: i, error: o };
116
+ }), [n, t, s]), { run: b, data: l, loading: i, error: o };
117
117
  }
118
118
  const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimezone: !1 }) }) : "-", Fe = ({
119
119
  onViewDetails: n,
120
120
  onDelete: t,
121
121
  onEdit: s
122
- }, l) => [
122
+ }, d) => [
123
123
  {
124
124
  name: "name",
125
125
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.name", children: "Name" }),
126
126
  sortable: !0,
127
- render: (d) => /* @__PURE__ */ e.jsx(
127
+ render: (l) => /* @__PURE__ */ e.jsx(
128
128
  "a",
129
129
  {
130
130
  href: "edit",
131
131
  onClick: (a) => {
132
- a.preventDefault(), n(d.id);
132
+ a.preventDefault(), n(l.id);
133
133
  },
134
- children: d.name
134
+ children: l.name
135
135
  }
136
136
  ),
137
137
  width: "15%"
@@ -140,48 +140,48 @@ const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimez
140
140
  name: "description",
141
141
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.description", children: "Description" }),
142
142
  sortable: !0,
143
- render: ({ description: d }) => /* @__PURE__ */ e.jsx("span", { children: d }),
143
+ render: ({ description: l }) => /* @__PURE__ */ e.jsx("span", { children: l }),
144
144
  width: "20%"
145
145
  },
146
146
  {
147
147
  name: "fileCount",
148
148
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.files", children: "Files" }),
149
149
  sortable: !0,
150
- render: ({ fileCount: d }) => /* @__PURE__ */ e.jsx("span", { children: d || "-" }),
150
+ render: ({ fileCount: l }) => /* @__PURE__ */ e.jsx("span", { children: l || "-" }),
151
151
  width: "10%"
152
152
  },
153
153
  {
154
154
  name: "draft",
155
155
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.status", children: "Status" }),
156
156
  sortable: !0,
157
- render: ({ draft: d }) => /* @__PURE__ */ e.jsx("span", { children: d ? /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.draft", children: "Draft" }) : /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.published", children: "Published" }) }),
157
+ render: ({ draft: l }) => /* @__PURE__ */ e.jsx("span", { children: l ? /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.draft", children: "Draft" }) : /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.published", children: "Published" }) }),
158
158
  width: "10%"
159
159
  },
160
160
  {
161
161
  name: "createdAt",
162
162
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.createdAt", children: "Created at" }),
163
163
  sortable: !0,
164
- render: ({ createdAt: d }) => /* @__PURE__ */ e.jsx("span", { children: K(d) })
164
+ render: ({ createdAt: l }) => /* @__PURE__ */ e.jsx("span", { children: K(l) })
165
165
  },
166
166
  {
167
167
  name: "releasedAt",
168
168
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.releasedAt", children: "Published at" }),
169
169
  sortable: !0,
170
- render: ({ releasedAt: d }) => /* @__PURE__ */ e.jsx("span", { children: d ? K(d) : "-" })
170
+ render: ({ releasedAt: l }) => /* @__PURE__ */ e.jsx("span", { children: l ? K(l) : "-" })
171
171
  },
172
172
  {
173
173
  name: "delete",
174
174
  label: "",
175
175
  width: "5%",
176
176
  align: "right",
177
- render: (d) => /* @__PURE__ */ e.jsx(F, { authorities: ["WRITE_BUNDLE"], children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
178
- d.draft && /* @__PURE__ */ e.jsx(
177
+ render: (l) => /* @__PURE__ */ e.jsx(F, { authorities: ["WRITE_BUNDLE"], children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
178
+ l.draft && /* @__PURE__ */ e.jsx(
179
179
  j,
180
180
  {
181
181
  naked: !0,
182
182
  small: !0,
183
- onClick: () => s(d.id),
184
- title: l("bundleversion.edit", {
183
+ onClick: () => s(l.id),
184
+ title: d("bundleversion.edit", {
185
185
  defaultValue: "Edit Bundle Version"
186
186
  }),
187
187
  "data-testid": c.DELETE_VERSION_ICON,
@@ -193,10 +193,10 @@ const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimez
193
193
  {
194
194
  naked: !0,
195
195
  small: !0,
196
- onClick: () => t(d),
197
- title: l("bundleversion.delete", {
196
+ onClick: () => t(l),
197
+ title: d("bundleversion.delete", {
198
198
  defaultValue: "Delete Bundle Version",
199
- version: d.name
199
+ version: l.name
200
200
  }),
201
201
  "data-testid": c.DELETE_VERSION_ICON,
202
202
  children: /* @__PURE__ */ e.jsx(v, { del: !0 })
@@ -206,7 +206,7 @@ const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimez
206
206
  }
207
207
  ], Me = /^[a-zA-Z0-9_.-]*$/;
208
208
  function we({ header: n, formContext: t, onSubmit: s }) {
209
- const { t: l } = S(), { control: d } = t;
209
+ const { t: d } = S(), { control: l } = t;
210
210
  return Z(s, !1), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
211
211
  /* @__PURE__ */ e.jsx(
212
212
  "h3",
@@ -222,20 +222,20 @@ function we({ header: n, formContext: t, onSubmit: s }) {
222
222
  A,
223
223
  {
224
224
  name: "name",
225
- control: d,
225
+ control: l,
226
226
  rules: {
227
- required: l("version.name.required", {
227
+ required: d("version.name.required", {
228
228
  defaultValue: "Name is required."
229
229
  }),
230
230
  pattern: {
231
231
  value: Me,
232
- message: l("version.name.pattern", {
232
+ message: d("version.name.pattern", {
233
233
  defaultValue: "Name can only contain latin characters, number, dots and underscores."
234
234
  })
235
235
  },
236
236
  maxLength: {
237
237
  value: 50,
238
- message: l("version.name.maxLength", {
238
+ message: d("version.name.maxLength", {
239
239
  defaultValue: "Name cannot be longer than 50 characters"
240
240
  })
241
241
  }
@@ -259,11 +259,11 @@ function we({ header: n, formContext: t, onSubmit: s }) {
259
259
  A,
260
260
  {
261
261
  name: "description",
262
- control: d,
262
+ control: l,
263
263
  rules: {
264
264
  maxLength: {
265
265
  value: 250,
266
- message: l("version.description.maxLength", {
266
+ message: d("version.description.maxLength", {
267
267
  defaultValue: "Description cannot be longer than 250 characters"
268
268
  })
269
269
  }
@@ -374,10 +374,11 @@ const J = [
374
374
  Ne,
375
375
  {
376
376
  columnDefs: t,
377
- uniqueItemKey: (l) => `${l.name}_${l.size}`,
377
+ uniqueItemKey: (d) => `${d.name}_${d.size}`,
378
378
  paginationSettings: Re,
379
379
  items: n,
380
- isLoading: s
380
+ isLoading: s,
381
+ tableName: "files"
381
382
  }
382
383
  )
383
384
  ] }) }), ne = ({ bundle: n, version: t }) => /* @__PURE__ */ e.jsxs("div", { className: "bundle-version-info", children: [
@@ -432,7 +433,7 @@ const J = [
432
433
  }, Ye = "DUPLICATE_FILE_NAME", Ze = ({
433
434
  bundle: n,
434
435
  version: t,
435
- fileLoader: { run: s, data: l, loading: d }
436
+ fileLoader: { run: s, data: d, loading: l }
436
437
  }) => {
437
438
  const { t: a } = S(), i = t ? t.id : "", { run: u, loading: o } = g({
438
439
  requestFunction: je,
@@ -454,8 +455,8 @@ const J = [
454
455
  /* @__PURE__ */ e.jsx(
455
456
  ee,
456
457
  {
457
- isLoading: o || m || d,
458
- files: l || [],
458
+ isLoading: o || m || l,
459
+ files: d || [],
459
460
  columnDefs: f
460
461
  }
461
462
  ),
@@ -472,7 +473,7 @@ const J = [
472
473
  }
473
474
  }
474
475
  },
475
- l ? l.length : 1
476
+ d ? d.length : 1
476
477
  ) })
477
478
  ] });
478
479
  }, Je = {
@@ -496,21 +497,21 @@ const J = [
496
497
  }, R = {
497
498
  id: "bundlemanagement.modalSaveAndProceedButton",
498
499
  defaultValue: "Save and Proceed"
499
- }, nn = [te], tn = [se], sn = [ze], dn = [Ge], ln = [en], rn = ({ bundle: n, versionId: t, setVersionId: s, onClose: l }) => {
500
- const d = P({
500
+ }, nn = [te], tn = [se], sn = [ze], ln = [Ge], dn = [en], rn = ({ bundle: n, versionId: t, setVersionId: s, onClose: d }) => {
501
+ const l = P({
501
502
  defaultValues: {
502
503
  name: "",
503
504
  description: ""
504
505
  }
505
- }), { handleSubmit: a } = d, i = (f) => ge(n.id, f).then((E) => s(E.id)), u = () => a(i, (f) => {
506
+ }), { handleSubmit: a } = l, i = (f) => ge(n.id, f).then((E) => s(E.id)), u = () => a(i, (f) => {
506
507
  console.warn("Validation error", f);
507
508
  })(), o = g({
508
509
  requestFunction: u,
509
510
  errorMessages: sn
510
511
  }), h = g({
511
512
  requestFunction: Ee,
512
- errorMessages: dn,
513
- successMessages: ln
513
+ errorMessages: ln,
514
+ successMessages: dn
514
515
  }), m = g({
515
516
  requestFunction: G,
516
517
  errorMessages: nn
@@ -531,7 +532,7 @@ const J = [
531
532
  N,
532
533
  {
533
534
  show: h.loading || m.loading && !m.data || o.loading,
534
- children: t ? /* @__PURE__ */ e.jsx(Ze, { bundle: n, version: m.data, fileLoader: x }) : /* @__PURE__ */ e.jsx(we, { header: n.name, formContext: d, onSubmit: u })
535
+ children: t ? /* @__PURE__ */ e.jsx(Ze, { bundle: n, version: m.data, fileLoader: x }) : /* @__PURE__ */ e.jsx(we, { header: n.name, formContext: l, onSubmit: u })
535
536
  }
536
537
  ),
537
538
  footer: t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -539,24 +540,24 @@ const J = [
539
540
  j,
540
541
  {
541
542
  primary: !0,
542
- onClick: () => h.run(n.id, t || "").then(l),
543
+ onClick: () => h.run(n.id, t || "").then(d),
543
544
  disabled: !B || h.loading,
544
545
  children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.publish", children: "Publish" })
545
546
  }
546
547
  ),
547
- /* @__PURE__ */ e.jsx(j, { onClick: l, "data-testid": c.CANCEL_SAVE_VERSION_BUTTON, children: /* @__PURE__ */ e.jsx(r, { i18nKey: p.id, children: p.defaultValue }) })
548
+ /* @__PURE__ */ e.jsx(j, { onClick: d, "data-testid": c.CANCEL_SAVE_VERSION_BUTTON, children: /* @__PURE__ */ e.jsx(r, { i18nKey: p.id, children: p.defaultValue }) })
548
549
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
549
550
  /* @__PURE__ */ e.jsx(
550
551
  j,
551
552
  {
552
553
  primary: !0,
553
554
  onClick: o.run,
554
- disabled: d.formState.isSubmitting || o.loading,
555
+ disabled: l.formState.isSubmitting || o.loading,
555
556
  "data-testid": c.SAVE_VERSION_BUTTON,
556
557
  children: /* @__PURE__ */ e.jsx(r, { i18nKey: R.id, children: R.defaultValue })
557
558
  }
558
559
  ),
559
- /* @__PURE__ */ e.jsx(j, { onClick: l, "data-testid": c.CANCEL_SAVE_VERSION_BUTTON, children: /* @__PURE__ */ e.jsx(r, { i18nKey: T.cancel.id, children: T.cancel.defaultValue }) })
560
+ /* @__PURE__ */ e.jsx(j, { onClick: d, "data-testid": c.CANCEL_SAVE_VERSION_BUTTON, children: /* @__PURE__ */ e.jsx(r, { i18nKey: T.cancel.id, children: T.cancel.defaultValue }) })
560
561
  ] })
561
562
  }
562
563
  );
@@ -574,20 +575,20 @@ const J = [
574
575
  "Do you really want to delete the version ",
575
576
  /* @__PURE__ */ e.jsx("strong", { children: n }),
576
577
  "?"
577
- ] }) }) }) }), cn = ({ version: n, canBeDeleted: t, error: s, processing: l }) => /* @__PURE__ */ e.jsx(N, { show: l, children: /* @__PURE__ */ e.jsx(
578
+ ] }) }) }) }), cn = ({ version: n, canBeDeleted: t, error: s, processing: d }) => /* @__PURE__ */ e.jsx(N, { show: d, children: /* @__PURE__ */ e.jsx(
578
579
  "div",
579
580
  {
580
581
  style: {
581
582
  minHeight: 50
582
583
  },
583
- children: !l && (t ? on(n.name) : an(n.name, s))
584
+ children: !d && (t ? on(n.name) : an(n.name, s))
584
585
  }
585
- ) }), un = [qe], hn = [Xe], mn = ({ bundle: n, version: t, onCancel: s, loadVersions: l }) => {
586
- const { run: d } = g({
586
+ ) }), un = [qe], hn = [Xe], mn = ({ bundle: n, version: t, onCancel: s, loadVersions: d }) => {
587
+ const { run: l } = g({
587
588
  requestFunction: Be,
588
589
  errorMessages: un,
589
590
  successMessages: hn
590
- }), a = Se(n, t), i = () => d(n.id, t.id).then(l).then(s);
591
+ }), a = Se(n, t), i = () => l(n.id, t.id).then(d).then(s);
591
592
  return /* @__PURE__ */ e.jsx(
592
593
  _,
593
594
  {
@@ -600,9 +601,9 @@ const J = [
600
601
  width: 500
601
602
  }
602
603
  );
603
- }, xn = [te], jn = [se], fn = ({ bundle: n, versionId: t, onClose: s, t: l }) => {
604
+ }, xn = [te], jn = [se], fn = ({ bundle: n, versionId: t, onClose: s, t: d }) => {
604
605
  const {
605
- run: d,
606
+ run: l,
606
607
  data: a,
607
608
  loading: i
608
609
  } = g({
@@ -621,10 +622,10 @@ const J = [
621
622
  window.location.replace(f.downloadLink);
622
623
  }),
623
624
  errorMessages: [Pe]
624
- }), b = Ke(m, l);
625
+ }), b = Ke(m, d);
625
626
  return D(() => {
626
- t && (d(n.id, t), u(n.id, t));
627
- }, [u, d, t, n]), /* @__PURE__ */ e.jsx(
627
+ t && (l(n.id, t), u(n.id, t));
628
+ }, [u, l, t, n]), /* @__PURE__ */ e.jsx(
628
629
  _,
629
630
  {
630
631
  width: 500,
@@ -645,7 +646,7 @@ const J = [
645
646
  );
646
647
  }, En = {
647
648
  getRowClass: (n) => n.draft ? "draft" : "released"
648
- }, gn = ({ columnDefs: n, paginationSettings: t, setPaginationSettings: s, versions: l, loading: d }) => /* @__PURE__ */ e.jsx(N, { show: d, children: /* @__PURE__ */ e.jsxs(
649
+ }, gn = ({ columnDefs: n, paginationSettings: t, setPaginationSettings: s, versions: d, loading: l }) => /* @__PURE__ */ e.jsx(N, { show: l, children: /* @__PURE__ */ e.jsxs(
649
650
  "div",
650
651
  {
651
652
  className: "bundle-version-table",
@@ -655,7 +656,7 @@ const J = [
655
656
  children: [
656
657
  /* @__PURE__ */ e.jsxs("h2", { children: [
657
658
  /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.title", children: "Versions" }),
658
- /* @__PURE__ */ e.jsx(X, { count: l && l.totalElements })
659
+ /* @__PURE__ */ e.jsx(X, { count: d && d.totalElements })
659
660
  ] }),
660
661
  /* @__PURE__ */ e.jsx(
661
662
  Te,
@@ -672,7 +673,7 @@ const J = [
672
673
  direction: i
673
674
  }
674
675
  }),
675
- pageable: l,
676
+ pageable: d,
676
677
  rowDef: En,
677
678
  "data-testid": "bundle-versions-table"
678
679
  }
@@ -687,10 +688,10 @@ const J = [
687
688
  direction: "DESC"
688
689
  }
689
690
  }, bn = [We], Vn = ({ bundle: n, isOpen: t }) => {
690
- const { t: s } = S(), [l, d] = V(!1), [a, i] = V(void 0), [u, o] = V(void 0), [h, m] = V(void 0), x = q();
691
+ const { t: s } = S(), [d, l] = V(!1), [a, i] = V(void 0), [u, o] = V(void 0), [h, m] = V(void 0), x = q();
691
692
  D(() => {
692
- const le = x.get(Q), w = x.get(Ce);
693
- w && le === n.id && i(w);
693
+ const de = x.get(Q), w = x.get(Ce);
694
+ w && de === n.id && i(w);
694
695
  }, [x, n]);
695
696
  const b = Fe(
696
697
  {
@@ -702,7 +703,7 @@ const J = [
702
703
  ), [B, f] = V(Bn), {
703
704
  run: E,
704
705
  data: y,
705
- loading: de
706
+ loading: le
706
707
  } = g({
707
708
  requestFunction: W,
708
709
  errorMessages: bn
@@ -717,13 +718,13 @@ const J = [
717
718
  paginationSettings: B,
718
719
  setPaginationSettings: f,
719
720
  columnDefs: b,
720
- loading: de
721
+ loading: le
721
722
  }
722
723
  ),
723
724
  /* @__PURE__ */ e.jsx(F, { authorities: ["WRITE_BUNDLE"], children: /* @__PURE__ */ e.jsxs(
724
725
  j,
725
726
  {
726
- onClick: () => d(!0),
727
+ onClick: () => l(!0),
727
728
  "data-testid": c.CREATE_VERSION_BUTTON,
728
729
  children: [
729
730
  /* @__PURE__ */ e.jsx(v, { add: !0 }),
@@ -740,14 +741,14 @@ const J = [
740
741
  loadVersions: M
741
742
  }
742
743
  ),
743
- (l || u) && /* @__PURE__ */ e.jsx(
744
+ (d || u) && /* @__PURE__ */ e.jsx(
744
745
  rn,
745
746
  {
746
747
  bundle: n,
747
748
  versionId: u,
748
749
  setVersionId: o,
749
750
  onClose: () => {
750
- d(!1), o(void 0), M();
751
+ l(!1), o(void 0), M();
751
752
  }
752
753
  }
753
754
  ),
@@ -762,14 +763,14 @@ const J = [
762
763
  )
763
764
  ] });
764
765
  }, Dn = (n) => {
765
- const { bundle: t, onDelete: s, isOpen: l } = n, { id: d, name: a } = t;
766
+ const { bundle: t, onDelete: s, isOpen: d } = n, { id: l, name: a } = t;
766
767
  return /* @__PURE__ */ he(
767
768
  ye,
768
769
  {
769
770
  ...n,
770
- "data-testid": c.ACCORDION_ITEM + d,
771
+ "data-testid": c.ACCORDION_ITEM + l,
771
772
  title: a,
772
- key: d,
773
+ key: l,
773
774
  tools: [
774
775
  /* @__PURE__ */ e.jsx(
775
776
  F,
@@ -794,15 +795,15 @@ const J = [
794
795
  )
795
796
  ]
796
797
  },
797
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Vn, { bundle: t, isOpen: !!l }) })
798
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Vn, { bundle: t, isOpen: !!d }) })
798
799
  );
799
800
  }, Nn = (n, t) => {
800
801
  const s = n.get(Q);
801
- return !t || !t.length || !s ? 0 : t.reduce((l, d, a) => d.id === s ? a : l, 0);
802
+ return !t || !t.length || !s ? 0 : t.reduce((d, l, a) => l.id === s ? a : d, 0);
802
803
  }, Tn = ({ bundles: n, onDelete: t, isLoading: s }) => {
803
- const l = q(), d = Nn(l, n);
804
+ const d = q(), l = Nn(d, n);
804
805
  return /* @__PURE__ */ e.jsxs(N, { show: s, children: [
805
- /* @__PURE__ */ e.jsx(pe, { accordionClass: "bundles", defaultOpenPageIndex: d, children: (n || []).map((a) => /* @__PURE__ */ e.jsx(Dn, { bundle: a, onDelete: t }, a.name)) }, d),
806
+ /* @__PURE__ */ e.jsx(pe, { accordionClass: "bundles", defaultOpenPageIndex: l, children: (n || []).map((a) => /* @__PURE__ */ e.jsx(Dn, { bundle: a, onDelete: t }, a.name)) }, l),
806
807
  !s && (!n || !n.length) && /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleManagement.noBundles", children: "There are currently no bundles" })
807
808
  ] });
808
809
  }, vn = (n, t) => /* @__PURE__ */ e.jsx("div", { "data-testid": c.DELETE_BUNDLE_DIALOG, children: t || /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.deleteBundleModalBodyError", children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -821,38 +822,38 @@ const J = [
821
822
  " version(s) and the associated files."
822
823
  ] }) }) }),
823
824
  /* @__PURE__ */ e.jsx("p", { "data-testid": "deleteBundleModalBody3", children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.deleteBundleModalBody3", children: "This action cannot be undone." }) })
824
- ] }), yn = ({ bundle: n, canBeDeleted: t, error: s, processing: l }) => {
825
+ ] }), yn = ({ bundle: n, canBeDeleted: t, error: s, processing: d }) => {
825
826
  const {
826
- run: d,
827
+ run: l,
827
828
  data: a,
828
829
  loading: i
829
830
  } = g({
830
831
  requestFunction: W
831
832
  });
832
833
  return D(() => {
833
- t && d(n.id);
834
- }, [d, n, t]), /* @__PURE__ */ e.jsx(N, { show: l || i, children: /* @__PURE__ */ e.jsx(
834
+ t && l(n.id);
835
+ }, [l, n, t]), /* @__PURE__ */ e.jsx(N, { show: d || i, children: /* @__PURE__ */ e.jsx(
835
836
  "div",
836
837
  {
837
838
  style: {
838
839
  minHeight: 50
839
840
  },
840
- children: !l && !i && (t ? _n(n.name, a ? a.totalElements.toString() : void 0) : vn(n.name, s))
841
+ children: !d && !i && (t ? _n(n.name, a ? a.totalElements.toString() : void 0) : vn(n.name, s))
841
842
  }
842
843
  ) });
843
844
  }, pn = [ke], Cn = [Je], Ln = ({ bundle: n, onCancel: t, loadBundles: s }) => {
844
- const { run: l } = g({
845
+ const { run: d } = g({
845
846
  requestFunction: Ve,
846
847
  errorMessages: pn,
847
848
  successMessages: Cn
848
- }), d = Ae(n), a = () => l(n.id).then(s).then(t);
849
+ }), l = Ae(n), a = () => d(n.id).then(s).then(t);
849
850
  return /* @__PURE__ */ e.jsx(
850
851
  _,
851
852
  {
852
853
  header: /* @__PURE__ */ e.jsx(r, { i18nKey: k.id, children: k.defaultValue }),
853
- content: /* @__PURE__ */ e.jsx(yn, { bundle: n, ...d }),
854
+ content: /* @__PURE__ */ e.jsx(yn, { bundle: n, ...l }),
854
855
  footer: /* @__PURE__ */ e.jsxs("div", { children: [
855
- /* @__PURE__ */ e.jsx(j, { primary: !0, disabled: !d.canBeDeleted, onClick: a, children: /* @__PURE__ */ e.jsx(r, { i18nKey: C.id, children: C.defaultValue }) }),
856
+ /* @__PURE__ */ e.jsx(j, { primary: !0, disabled: !l.canBeDeleted, onClick: a, children: /* @__PURE__ */ e.jsx(r, { i18nKey: C.id, children: C.defaultValue }) }),
856
857
  /* @__PURE__ */ e.jsx(j, { onClick: t, children: /* @__PURE__ */ e.jsx(r, { i18nKey: L.id, children: L.defaultValue }) })
857
858
  ] }),
858
859
  width: 500
@@ -860,8 +861,8 @@ const J = [
860
861
  );
861
862
  }, Sn = [Ue], Pn = () => {
862
863
  const n = me(), [t, s] = V(!1), {
863
- data: l,
864
- loading: d,
864
+ data: d,
865
+ loading: l,
865
866
  run: a
866
867
  } = g({
867
868
  requestFunction: De,
@@ -891,7 +892,7 @@ const J = [
891
892
  onClick: h
892
893
  }
893
894
  ),
894
- /* @__PURE__ */ e.jsx(Tn, { bundles: l, onDelete: u, isLoading: d }),
895
+ /* @__PURE__ */ e.jsx(Tn, { bundles: d, onDelete: u, isLoading: l }),
895
896
  i && /* @__PURE__ */ e.jsx(
896
897
  Ln,
897
898
  {