@deviceinsight/ng-ui-scale-lib 9.24.0 → 9.26.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 (25) hide show
  1. package/dist/{AccessEditModal-f04b44b5.js → AccessEditModal-c2178ad5.js} +3 -3
  2. package/dist/{BundleManagementContainer-36855d44.js → BundleManagementContainer-60c28e65.js} +2 -2
  3. package/dist/{BundlesContainer-f17fefe0.js → BundlesContainer-b3ee1991.js} +28 -28
  4. package/dist/{ContextBarContext-312508b6.js → ContextBarContext-a6c59c97.js} +27061 -26209
  5. package/dist/{DatapointImport-a281089b.js → DatapointImport-f6bdbdbc.js} +61 -61
  6. package/dist/{FileUploadInput-e1b2d5d8.js → FileUploadInput-81bb787f.js} +6 -6
  7. package/dist/{Files-0ab4e355.js → Files-dc240d97.js} +18 -18
  8. package/dist/{GlobalPowerBiReports-9a73fa90.js → GlobalPowerBiReports-3b7feef9.js} +2 -2
  9. package/dist/{Graph-c1b08526.js → Graph-f5463f47.js} +2 -2
  10. package/dist/{JsonSettingWidget-297070b4.js → JsonSettingWidget-307658b8.js} +9 -9
  11. package/dist/{LicensesEditPage-2147817e.js → LicensesEditPage-f62cca26.js} +13 -13
  12. package/dist/{LicensesList-f3708b54.js → LicensesList-85279448.js} +2 -2
  13. package/dist/{PropertiesEditPage-0935b879.js → PropertiesEditPage-4edb93b7.js} +11 -11
  14. package/dist/{PropertiesList-1ad8350d.js → PropertiesList-59c05fe4.js} +7 -7
  15. package/dist/{TemplateEditPage-7a9df6ea.js → TemplateEditPage-fe1b5f44.js} +4 -4
  16. package/dist/{TemplateTextInput-128d90c4.js → TemplateTextInput-34e4356f.js} +6 -6
  17. package/dist/{TemplatesListPage-6dca9756.js → TemplatesListPage-cd3194a7.js} +32 -32
  18. package/dist/{UserGroupAssignments-1d792757.js → UserGroupAssignments-291f29f0.js} +2 -2
  19. package/dist/{UserGroupTheme-ea07247d.js → UserGroupTheme-6768666a.js} +2 -2
  20. package/dist/api.d.ts +1 -0
  21. package/dist/api.js +57 -57
  22. package/dist/{index-464f8665.js → index-738ab9ab.js} +1 -1
  23. package/dist/index.js +1275 -1281
  24. package/dist/style.css +1 -1
  25. package/package.json +5 -3
@@ -1,4 +1,4 @@
1
- import { aw as c, a5 as Et, c_ as wt, b1 as bt, ag as et, aY as kt, br as It } from "./ContextBarContext-312508b6.js";
1
+ import { ax as c, a5 as Et, d0 as wt, b2 as bt, ag as et, aZ as kt, bs as It } from "./ContextBarContext-a6c59c97.js";
2
2
  import * as Dt from "react";
3
3
  import { createContext as Ot, useState as pt, useEffect as Rt, useContext as At } from "react";
4
4
  import { Spinner as Tt, Button as yt, Icon as Lt, Bubble as jt } from "@deviceinsight/ng-ui-basic-components";
@@ -6,9 +6,9 @@ import { ReactableWithClientSidePagination as Nt, FileUpload as Ut } from "@devi
6
6
  import "react-i18next";
7
7
  import { fetchUnits as Pt, readAccountObject as Ft, writeAccountObject as zt } from "@deviceinsight/ng-ui-api-client";
8
8
  import "react-router-dom";
9
+ import "react-dom";
9
10
  import "i18next";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
12
  function Mt(h) {
13
13
  const l = h.uploadState || "UPLOAD_PENDING";
14
14
  return /* @__PURE__ */ c.jsx("span", { className: `di upload-status ${l.toLowerCase()}`, children: l === "UPLOAD_PENDING" && /* @__PURE__ */ c.jsx(Tt, { size: 16 }) });
@@ -99,9 +99,9 @@ class Wt extends Dt.PureComponent {
99
99
  return this.createDatapoint(l + 1);
100
100
  const {
101
101
  data: { name: I, datatype: P, unit: q, thresholds: a },
102
- error: Y
102
+ error: $
103
103
  } = g[l];
104
- if (Y)
104
+ if ($)
105
105
  return setTimeout(() => this.updateUploadStateAndContinue(l, "CANNOT_UPLOAD"), 0);
106
106
  const N = {
107
107
  name: I,
@@ -171,7 +171,7 @@ License: MIT
171
171
  return i.userStep = t.step, i.userChunk = t.chunk, i.userComplete = t.complete, i.userError = t.error, t.step = w(t.step), t.chunk = w(t.chunk), t.complete = w(t.complete), t.error = w(t.error), delete t.worker, void i.postMessage({ input: e, config: t, workerId: i.id });
172
172
  }
173
173
  var s = null;
174
- return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new J(t) : new V(t) : e.readable === !0 && w(e.read) && w(e.on) ? s = new ht(t) : (d.File && e instanceof File || e instanceof Object) && (s = new Z(t)), s.stream(e);
174
+ return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new Y(t) : new Z(t) : e.readable === !0 && w(e.read) && w(e.on) ? s = new ht(t) : (d.File && e instanceof File || e instanceof Object) && (s = new X(t)), s.stream(e);
175
175
  }, unparse: function(e, t) {
176
176
  var n = !1, i = !0, s = ",", f = `\r
177
177
  `, S = '"', F = S + S, D = !1, r = null, j = !1;
@@ -225,8 +225,8 @@ License: MIT
225
225
  if (!k) {
226
226
  for (var R = 0; R < b; R++) {
227
227
  0 < R && !y && (U += s);
228
- var $ = L && B ? C[R] : R;
229
- U += m(E[_][$], R);
228
+ var J = L && B ? C[R] : R;
229
+ U += m(E[_][J], R);
230
230
  }
231
231
  _ < E.length - 1 && (!T || 0 < b && !y) && (U += f);
232
232
  }
@@ -249,15 +249,15 @@ License: MIT
249
249
  }
250
250
  } };
251
251
  if (a.RECORD_SEP = String.fromCharCode(30), a.UNIT_SEP = String.fromCharCode(31), a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
252
- `, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !x && !!d.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = W, a.ParserHandle = ut, a.NetworkStreamer = J, a.FileStreamer = Z, a.StringStreamer = V, a.ReadableStreamStreamer = ht, d.jQuery) {
253
- var Y = d.jQuery;
254
- Y.fn.parse = function(e) {
252
+ `, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !x && !!d.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = W, a.ParserHandle = ut, a.NetworkStreamer = Y, a.FileStreamer = X, a.StringStreamer = Z, a.ReadableStreamStreamer = ht, d.jQuery) {
253
+ var $ = d.jQuery;
254
+ $.fn.parse = function(e) {
255
255
  var t = e.config || {}, n = [];
256
256
  return this.each(function(f) {
257
- if (!(Y(this).prop("tagName").toUpperCase() === "INPUT" && Y(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
257
+ if (!($(this).prop("tagName").toUpperCase() === "INPUT" && $(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
258
258
  return !0;
259
259
  for (var S = 0; S < this.files.length; S++)
260
- n.push({ file: this.files[S], inputElem: this, instanceConfig: Y.extend({}, t) });
260
+ n.push({ file: this.files[S], inputElem: this, instanceConfig: $.extend({}, t) });
261
261
  }), i(), this;
262
262
  function i() {
263
263
  if (n.length !== 0) {
@@ -269,7 +269,7 @@ License: MIT
269
269
  return f = "AbortError", S = r.file, F = r.inputElem, D = j.reason, void (w(e.error) && e.error({ name: f }, S, F, D));
270
270
  if (j.action === "skip")
271
271
  return void s();
272
- typeof j.config == "object" && (r.instanceConfig = Y.extend(r.instanceConfig, j.config));
272
+ typeof j.config == "object" && (r.instanceConfig = $.extend(r.instanceConfig, j.config));
273
273
  } else if (j === "skip")
274
274
  return void s();
275
275
  }
@@ -316,7 +316,7 @@ License: MIT
316
316
  w(this._config.error) ? this._config.error(t) : I && this._config.error && d.postMessage({ workerId: a.WORKER_ID, error: t, finished: !1 });
317
317
  };
318
318
  }
319
- function J(e) {
319
+ function Y(e) {
320
320
  var t;
321
321
  (e = e || {}).chunkSize || (e.chunkSize = a.RemoteChunkSize), N.call(this, e), this._nextChunk = x ? function() {
322
322
  this._readChunk(), this._chunkLoaded();
@@ -354,7 +354,7 @@ License: MIT
354
354
  this._sendError(new Error(i));
355
355
  };
356
356
  }
357
- function Z(e) {
357
+ function X(e) {
358
358
  var t, n;
359
359
  (e = e || {}).chunkSize || (e.chunkSize = a.LocalChunkSize), N.call(this, e);
360
360
  var i = typeof FileReader < "u";
@@ -376,7 +376,7 @@ License: MIT
376
376
  this._sendError(t.error);
377
377
  };
378
378
  }
379
- function V(e) {
379
+ function Z(e) {
380
380
  var t;
381
381
  N.call(this, e = e || {}), this.stream = function(n) {
382
382
  return t = n, this._nextChunk();
@@ -484,26 +484,26 @@ License: MIT
484
484
  var k = e.quoteChar || '"';
485
485
  if (e.newline || (e.newline = function(O, p) {
486
486
  O = O.substring(0, 1048576);
487
- var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), $ = (O = O.replace(R, "")).split("\r"), X = O.split(`
488
- `), tt = 1 < X.length && X[0].length < $[0].length;
489
- if ($.length === 1 || tt)
487
+ var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), J = (O = O.replace(R, "")).split("\r"), V = O.split(`
488
+ `), tt = 1 < V.length && V[0].length < J[0].length;
489
+ if (J.length === 1 || tt)
490
490
  return `
491
491
  `;
492
- for (var it = 0, H = 0; H < $.length; H++)
493
- $[H][0] === `
492
+ for (var it = 0, H = 0; H < J.length; H++)
493
+ J[H][0] === `
494
494
  ` && it++;
495
- return it >= $.length / 2 ? `\r
495
+ return it >= J.length / 2 ? `\r
496
496
  ` : "\r";
497
497
  }(u, k)), i = !1, e.delimiter)
498
498
  w(e.delimiter) && (e.delimiter = e.delimiter(u), m.meta.delimiter = e.delimiter);
499
499
  else {
500
- var y = function(O, p, R, $, X) {
500
+ var y = function(O, p, R, J, V) {
501
501
  var tt, it, H, lt;
502
- X = X || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
503
- for (var M = 0; M < X.length; M++) {
504
- var ot = X[M], dt = 0, A = 0, rt = 0;
502
+ V = V || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
503
+ for (var M = 0; M < V.length; M++) {
504
+ var ot = V[M], dt = 0, A = 0, rt = 0;
505
505
  H = void 0;
506
- for (var G = new W({ comments: $, delimiter: ot, newline: p, preview: 10 }).parse(O), st = 0; st < G.data.length; st++)
506
+ for (var G = new W({ comments: J, delimiter: ot, newline: p, preview: 10 }).parse(O), st = 0; st < G.data.length; st++)
507
507
  if (R && E(G.data[st]))
508
508
  rt++;
509
509
  else {
@@ -600,14 +600,14 @@ License: MIT
600
600
  if (t !== D || o[p + 1] !== D) {
601
601
  if (t === D || p === 0 || o[p - 1] !== D) {
602
602
  y !== -1 && y < p + 1 && (y = o.indexOf(n, p + 1)), v !== -1 && v < p + 1 && (v = o.indexOf(i, p + 1));
603
- var $ = it(v === -1 ? y : Math.min(y, v));
604
- if (o[p + 1 + $] === n) {
605
- u.push(o.substring(r, p).replace(O, t)), o[r = p + 1 + $ + C] !== t && (p = o.indexOf(t, r)), y = o.indexOf(n, r), v = o.indexOf(i, r);
603
+ var J = it(v === -1 ? y : Math.min(y, v));
604
+ if (o[p + 1 + J] === n) {
605
+ u.push(o.substring(r, p).replace(O, t)), o[r = p + 1 + J + C] !== t && (p = o.indexOf(t, r)), y = o.indexOf(n, r), v = o.indexOf(i, r);
606
606
  break;
607
607
  }
608
- var X = it(v);
609
- if (o.substring(p + 1 + X, p + 1 + X + E) === i) {
610
- if (u.push(o.substring(r, p).replace(O, t)), lt(p + 1 + X + E), y = o.indexOf(n, r), p = o.indexOf(t, r), U && (ot(), j))
608
+ var V = it(v);
609
+ if (o.substring(p + 1 + V, p + 1 + V + E) === i) {
610
+ if (u.push(o.substring(r, p).replace(O, t)), lt(p + 1 + V + E), y = o.indexOf(n, r), p = o.indexOf(t, r), U && (ot(), j))
611
611
  return M();
612
612
  if (S && L.length >= S)
613
613
  return M(!0);
@@ -707,7 +707,7 @@ License: MIT
707
707
  var n = a.parse(t.input, t.config);
708
708
  n && d.postMessage({ workerId: a.WORKER_ID, results: n, finished: !0 });
709
709
  }
710
- }), (J.prototype = Object.create(N.prototype)).constructor = J, (Z.prototype = Object.create(N.prototype)).constructor = Z, (V.prototype = Object.create(V.prototype)).constructor = V, (ht.prototype = Object.create(N.prototype)).constructor = ht, a;
710
+ }), (Y.prototype = Object.create(N.prototype)).constructor = Y, (X.prototype = Object.create(N.prototype)).constructor = X, (Z.prototype = Object.create(Z.prototype)).constructor = Z, (ht.prototype = Object.create(N.prototype)).constructor = ht, a;
711
711
  });
712
712
  })(Ct);
713
713
  var Ht = Ct.exports;
@@ -718,26 +718,26 @@ const Gt = 20, Qt = (h) => {
718
718
  return h[0][0] === "DATAPOINT_NAME" && d.shift(), d.forEach((x, I) => {
719
719
  if (g > Gt)
720
720
  throw new Error("INVALID_DOCUMENT");
721
- const [P, q, a, Y, N, J] = x, Z = {};
722
- N && !isNaN(parseInt(N)) && (Z.threshold1 = parseInt(N)), J && !isNaN(parseInt(J)) && (Z.threshold2 = parseInt(J));
723
- const V = {
721
+ const [P, q, a, $, N, Y] = x, X = {};
722
+ N && !isNaN(parseInt(N)) && (X.threshold1 = parseInt(N)), Y && !isNaN(parseInt(Y)) && (X.threshold2 = parseInt(Y));
723
+ const Z = {
724
724
  idx: I,
725
725
  data: {
726
726
  name: P,
727
727
  datatype: q && q.toUpperCase(),
728
- unit: Y ? {
729
- name: Y,
728
+ unit: $ ? {
729
+ name: $,
730
730
  print: a
731
731
  } : null,
732
- thresholds: Z
732
+ thresholds: X
733
733
  }
734
734
  };
735
- if (l.push(V), x.length < 2)
736
- return g++, V.error = "INVALID_NUMBER_OF_CELLS";
735
+ if (l.push(Z), x.length < 2)
736
+ return g++, Z.error = "INVALID_NUMBER_OF_CELLS";
737
737
  if (!wt.includes(q))
738
- return g++, V.error = "INVALID_DATATYPE";
738
+ return g++, Z.error = "INVALID_DATATYPE";
739
739
  }), l;
740
- }, Yt = (h) => new Promise((l, g) => {
740
+ }, $t = (h) => new Promise((l, g) => {
741
741
  Ht.parse(h, {
742
742
  skipEmptyLines: !0,
743
743
  complete: ({ data: d }) => {
@@ -752,17 +752,17 @@ const Gt = 20, Qt = (h) => {
752
752
  g(d);
753
753
  }
754
754
  });
755
- }), $t = (h, l, g) => g.findIndex((d) => (d == null ? void 0 : d.name) === (h == null ? void 0 : h.name)) === l, Jt = async (h, l, g) => {
756
- const x = l.filter((I) => !I.error).map((I) => I.data.unit).filter((I) => I && !h.some((P) => P.name === I.name)).filter($t).filter(bt).map(g);
755
+ }), Jt = (h, l, g) => g.findIndex((d) => (d == null ? void 0 : d.name) === (h == null ? void 0 : h.name)) === l, Yt = async (h, l, g) => {
756
+ const x = l.filter((I) => !I.error).map((I) => I.data.unit).filter((I) => I && !h.some((P) => P.name === I.name)).filter(Jt).filter(bt).map(g);
757
757
  return await Promise.all(x), await Pt();
758
- }, Vt = [
758
+ }, Zt = [
759
759
  "DATAPOINT_NAME,DATAPOINT_TYPE,UNIT_DISPLAY_NAME,UNIT_IDENTIFIER,DATAPOINT_UPPER_THRESHOLD,DATAPOINT_LOWER_THRESHOLD",
760
760
  "new_datapoint_1,LONG,°C,degrees-celsius,20,7",
761
761
  "new_datapoint_2,LONG,,,,"
762
762
  ], vt = {
763
763
  marginLeft: 15,
764
764
  listStyle: "disc"
765
- }, Xt = () => /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, width: 345 }, children: [
765
+ }, Vt = () => /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, width: 345 }, children: [
766
766
  /* @__PURE__ */ c.jsxs("li", { children: [
767
767
  /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.infoColumns", children: "Columns:" }),
768
768
  /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, listStyle: "circle" }, children: [
@@ -788,7 +788,7 @@ const Gt = 20, Qt = (h) => {
788
788
  onPageSizeChange: () => {
789
789
  }
790
790
  }), St = "uiConfigurations/datapointimportpagination";
791
- function Zt({ children: h }) {
791
+ function Xt({ children: h }) {
792
792
  const [l, g] = pt(10), d = (x) => {
793
793
  g(x), zt(St, { pageSize: x });
794
794
  };
@@ -801,19 +801,19 @@ function Zt({ children: h }) {
801
801
  }, []), /* @__PURE__ */ c.jsx(xt.Provider, { value: { pageSize: l, onPageSizeChange: d }, children: h });
802
802
  }
803
803
  function ue(h) {
804
- return /* @__PURE__ */ c.jsx(Zt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
804
+ return /* @__PURE__ */ c.jsx(Xt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
805
805
  }
806
806
  function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, addUnit: d }) {
807
- const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: Y } = At(xt), [N, J] = pt(!1);
808
- function Z() {
807
+ const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: $ } = At(xt), [N, Y] = pt(!1);
808
+ function X() {
809
809
  I([]), q(null);
810
810
  }
811
- function V(K) {
812
- J(!0), I([]), q(null), Yt(K).then(async (W) => {
813
- await Jt(h, W, d), I(W), l(!0, 0, 0);
811
+ function Z(K) {
812
+ Y(!0), I([]), q(null), $t(K).then(async (W) => {
813
+ await Yt(h, W, d), I(W), l(!0, 0, 0);
814
814
  }).catch((W) => {
815
815
  q(W);
816
- }).finally(() => J(!1));
816
+ }).finally(() => Y(!1));
817
817
  }
818
818
  function ht(K) {
819
819
  const W = Object.values(K), ft = W.filter((ct) => ct === "UPLOAD_SUCCESSFUL");
@@ -822,7 +822,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
822
822
  function ut() {
823
823
  const K = "datapoint-import-template.csv";
824
824
  It.saveAs(
825
- new Blob([Vt.join(`
825
+ new Blob([Zt.join(`
826
826
  `)], {
827
827
  type: "text/csv"
828
828
  }),
@@ -833,8 +833,8 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
833
833
  /* @__PURE__ */ c.jsx(
834
834
  Ut,
835
835
  {
836
- onRemoveFile: Z,
837
- onSelectFile: V,
836
+ onRemoveFile: X,
837
+ onSelectFile: Z,
838
838
  previewComponent: ({ file: K, onRemoveFile: W }) => /* @__PURE__ */ c.jsxs("strong", { className: "di delete-file-button", children: [
839
839
  K ? K.name : "",
840
840
  /* @__PURE__ */ c.jsx(yt, { naked: !0, onClick: W, "data-testid": "delete-file-button", children: /* @__PURE__ */ c.jsx(Lt, { del: !0 }) })
@@ -844,7 +844,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
844
844
  P && /* @__PURE__ */ c.jsx("div", { className: "di upload-error parsing-error", children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.tooManyParsingErrors", children: "Too many parsing errors" }) }),
845
845
  !x.length && /* @__PURE__ */ c.jsxs("div", { className: "di download-csv-section", children: [
846
846
  /* @__PURE__ */ c.jsx(yt, { onClick: ut, children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.downloadSample", children: "Download template csv file" }) }),
847
- /* @__PURE__ */ c.jsx("label", { className: "csv-upload-info", children: /* @__PURE__ */ c.jsx(jt, { content: /* @__PURE__ */ c.jsx(Xt, {}), children: /* @__PURE__ */ c.jsx("span", { className: "upload-anchor", children: " ?" }) }) })
847
+ /* @__PURE__ */ c.jsx("label", { className: "csv-upload-info", children: /* @__PURE__ */ c.jsx(jt, { content: /* @__PURE__ */ c.jsx(Vt, {}), children: /* @__PURE__ */ c.jsx("span", { className: "upload-anchor", children: " ?" }) }) })
848
848
  ] }),
849
849
  /* @__PURE__ */ c.jsx("div", { className: "datapoint-import-section", children: /* @__PURE__ */ c.jsx(
850
850
  Wt,
@@ -854,7 +854,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
854
854
  isLoading: N,
855
855
  createDatapoint: g,
856
856
  pageSize: a,
857
- onPageSizeChange: Y
857
+ onPageSizeChange: $
858
858
  }
859
859
  ) })
860
860
  ] });
@@ -1,7 +1,7 @@
1
- import { aw as t, cA as m } from "./ContextBarContext-312508b6.js";
1
+ import { ax as t, cC as m } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useState as p } from "react";
3
3
  import { Button as d, Icon as u } from "@deviceinsight/ng-ui-basic-components";
4
- import { ImageUpload as F, FileUpload as x } from "@deviceinsight/ng-ui-components";
4
+ import { ImageUpload as x, FileUpload as F } from "@deviceinsight/ng-ui-components";
5
5
  const s = ({ file: e, onRemoveFile: o }) => /* @__PURE__ */ t.jsxs(
6
6
  "strong",
7
7
  {
@@ -15,14 +15,14 @@ const s = ({ file: e, onRemoveFile: o }) => /* @__PURE__ */ t.jsxs(
15
15
  /* @__PURE__ */ t.jsx(d, { naked: !0, onClick: o, "data-testid": "delete-file-button", children: /* @__PURE__ */ t.jsx(u, { del: !0 }) })
16
16
  ]
17
17
  }
18
- ), I = ({ imagesOnly: e, onChange: o, ...a }) => {
18
+ ), U = ({ imagesOnly: e, onChange: o, ...a }) => {
19
19
  const [c, l] = p(null), n = (r) => {
20
20
  e && l(r.preview), o(r);
21
21
  }, i = () => {
22
22
  e && l(null), o(null);
23
23
  };
24
24
  return /* @__PURE__ */ t.jsx(m, { ...a, className: "fileuploadinput", children: e ? /* @__PURE__ */ t.jsx(
25
- F,
25
+ x,
26
26
  {
27
27
  onRemoveFile: i,
28
28
  onSelectFile: n,
@@ -31,7 +31,7 @@ const s = ({ file: e, onRemoveFile: o }) => /* @__PURE__ */ t.jsxs(
31
31
  accept: "image/*"
32
32
  }
33
33
  ) : /* @__PURE__ */ t.jsx(
34
- x,
34
+ F,
35
35
  {
36
36
  onRemoveFile: i,
37
37
  onSelectFile: n,
@@ -40,5 +40,5 @@ const s = ({ file: e, onRemoveFile: o }) => /* @__PURE__ */ t.jsxs(
40
40
  ) });
41
41
  };
42
42
  export {
43
- I as F
43
+ U as F
44
44
  };
@@ -1,9 +1,9 @@
1
- import { ah as V, aw as e, ag as p, c$ as D, d0 as R, br as G, a6 as Y, b4 as z, cr as Z, d1 as q, aY as _, aQ as $ } from "./ContextBarContext-312508b6.js";
1
+ import { ah as R, ax as e, ag as p, d1 as D, d2 as L, bs as G, a6 as Y, b5 as z, cs as Z, d3 as q, aZ as _, aR as $ } from "./ContextBarContext-a6c59c97.js";
2
2
  import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as te, RouteTabs as se } from "@deviceinsight/ng-ui-components";
3
3
  import "react-i18next";
4
4
  import { useState as B, useCallback as S, useRef as ie, useEffect as U, useMemo as X, createContext as ae, useContext as ne } from "react";
5
5
  import { Modal as le, SpinnerContainer as P, Button as k, Icon as W, useConfirm as oe } from "@deviceinsight/ng-ui-basic-components";
6
- import { F as re } from "./FileUploadInput-e1b2d5d8.js";
6
+ import { F as re } from "./FileUploadInput-81bb787f.js";
7
7
  import { createPortal as de } from "react-dom";
8
8
  import { Link as ce } from "react-router-dom";
9
9
  import { g as M } from "./customFileCategories-1b64ed45.js";
@@ -11,7 +11,7 @@ import "i18next";
11
11
  import "@deviceinsight/ng-ui-api-client";
12
12
  import "ux4iot-react";
13
13
  const Ae = ({ fileType: t, onClose: s, onUpload: l }) => {
14
- const { t: n } = V(), [u, i] = B(null), [m, A] = B(""), [g, f] = B(!1), h = u && !m, d = async (o) => {
14
+ const { t: n } = R(), [u, i] = B(null), [m, A] = B(""), [g, f] = B(!1), h = u && !m, d = async (o) => {
15
15
  if (o) {
16
16
  f(!0);
17
17
  try {
@@ -75,13 +75,13 @@ const he = ({ initialImageNumber: t, items: s, onDownload: l, onClose: n }) => {
75
75
  const o = s[u];
76
76
  U(() => {
77
77
  const b = x.current[o.key];
78
- b ? A(R(o.contentType, b)) : (f(!0), l(o).then((v) => {
79
- f(!1), x.current[o.key] = v, A(R(o.contentType, v));
78
+ b ? A(L(o.contentType, b)) : (f(!0), l(o).then((w) => {
79
+ f(!1), x.current[o.key] = w, A(L(o.contentType, w));
80
80
  }));
81
81
  }, [o, l]);
82
82
  const F = () => {
83
83
  G.saveAs(new Blob([x.current[o.key]]), o.filename);
84
- }, I = s.length > 0 && u > 0, w = s.length > 0 && u < s.length - 1, { body: y } = document;
84
+ }, I = s.length > 0 && u > 0, v = s.length > 0 && u < s.length - 1, { body: y } = document;
85
85
  return y ? de(
86
86
  /* @__PURE__ */ e.jsxs("div", { className: "di file-previewer", children: [
87
87
  /* @__PURE__ */ e.jsx("div", { className: "background" }),
@@ -92,7 +92,7 @@ const he = ({ initialImageNumber: t, items: s, onDownload: l, onClose: n }) => {
92
92
  /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
93
93
  /* @__PURE__ */ e.jsx("div", { className: "left", children: I && /* @__PURE__ */ e.jsx("button", { className: "btn previous", onClick: d, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "previous", children: /* @__PURE__ */ e.jsx("img", { src: ge, alt: "previous" }) }) }) }),
94
94
  /* @__PURE__ */ e.jsx("div", { className: "center", children: /* @__PURE__ */ e.jsx(ue, { loading: g, content: m, contentType: o.contentType }) }),
95
- /* @__PURE__ */ e.jsx("div", { className: "right", children: w && /* @__PURE__ */ e.jsx("button", { className: "btn next", onClick: h, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "next", children: /* @__PURE__ */ e.jsx("img", { src: fe, alt: "next" }) }) }) })
95
+ /* @__PURE__ */ e.jsx("div", { className: "right", children: v && /* @__PURE__ */ e.jsx("button", { className: "btn next", onClick: h, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "next", children: /* @__PURE__ */ e.jsx("img", { src: fe, alt: "next" }) }) }) })
96
96
  ] }),
97
97
  /* @__PURE__ */ e.jsx("div", { className: "footer", children: /* @__PURE__ */ e.jsx("button", { className: "btn download", onClick: F, disabled: g, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "close", children: /* @__PURE__ */ e.jsx("img", { src: xe, alt: "download" }) }) }) })
98
98
  ] }),
@@ -104,10 +104,10 @@ var Q = { exports: {} };
104
104
  (function(l) {
105
105
  var n = /^(b|B)$/, u = { iec: { bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"], bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] }, jedec: { bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"], bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] } }, i = { iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"], jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"] };
106
106
  function m(A) {
107
- var g, f, h, d, x, o, F, I, w, y, b, v, j, C, L, c = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : {}, a = [], N = 0, r = void 0, T = void 0;
107
+ var g, f, h, d, x, o, F, I, v, y, b, w, j, C, V, c = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : {}, a = [], N = 0, r = void 0, T = void 0;
108
108
  if (isNaN(A))
109
109
  throw new TypeError("Invalid number");
110
- return f = c.bits === !0, b = c.unix === !0, g = c.base || 2, y = c.round !== void 0 ? c.round : b ? 1 : 2, o = c.locale !== void 0 ? c.locale : "", F = c.localeOptions || {}, v = c.separator !== void 0 ? c.separator : "", j = c.spacer !== void 0 ? c.spacer : b ? "" : " ", L = c.symbols || {}, C = g === 2 && c.standard || "jedec", w = c.output || "string", d = c.fullform === !0, x = c.fullforms instanceof Array ? c.fullforms : [], r = c.exponent !== void 0 ? c.exponent : -1, h = 2 < g ? 1e3 : 1024, (I = (T = Number(A)) < 0) && (T = -T), (r === -1 || isNaN(r)) && (r = Math.floor(Math.log(T) / Math.log(h))) < 0 && (r = 0), 8 < r && (r = 8), w === "exponent" ? r : (T === 0 ? (a[0] = 0, a[1] = b ? "" : u[C][f ? "bits" : "bytes"][r]) : (N = T / (g === 2 ? Math.pow(2, 10 * r) : Math.pow(1e3, r)), f && h <= (N *= 8) && r < 8 && (N /= h, r++), a[0] = Number(N.toFixed(0 < r ? y : 0)), a[0] === h && r < 8 && c.exponent === void 0 && (a[0] = 1, r++), a[1] = g === 10 && r === 1 ? f ? "kb" : "kB" : u[C][f ? "bits" : "bytes"][r], b && (a[1] = C === "jedec" ? a[1].charAt(0) : 0 < r ? a[1].replace(/B$/, "") : a[1], n.test(a[1]) && (a[0] = Math.floor(a[0]), a[1] = ""))), I && (a[0] = -a[0]), a[1] = L[a[1]] || a[1], o === !0 ? a[0] = a[0].toLocaleString() : 0 < o.length ? a[0] = a[0].toLocaleString(o, F) : 0 < v.length && (a[0] = a[0].toString().replace(".", v)), w === "array" ? a : (d && (a[1] = x[r] ? x[r] : i[C][r] + (f ? "bit" : "byte") + (a[0] === 1 ? "" : "s")), w === "object" ? { value: a[0], symbol: a[1], exponent: r } : a.join(j)));
110
+ return f = c.bits === !0, b = c.unix === !0, g = c.base || 2, y = c.round !== void 0 ? c.round : b ? 1 : 2, o = c.locale !== void 0 ? c.locale : "", F = c.localeOptions || {}, w = c.separator !== void 0 ? c.separator : "", j = c.spacer !== void 0 ? c.spacer : b ? "" : " ", V = c.symbols || {}, C = g === 2 && c.standard || "jedec", v = c.output || "string", d = c.fullform === !0, x = c.fullforms instanceof Array ? c.fullforms : [], r = c.exponent !== void 0 ? c.exponent : -1, h = 2 < g ? 1e3 : 1024, (I = (T = Number(A)) < 0) && (T = -T), (r === -1 || isNaN(r)) && (r = Math.floor(Math.log(T) / Math.log(h))) < 0 && (r = 0), 8 < r && (r = 8), v === "exponent" ? r : (T === 0 ? (a[0] = 0, a[1] = b ? "" : u[C][f ? "bits" : "bytes"][r]) : (N = T / (g === 2 ? Math.pow(2, 10 * r) : Math.pow(1e3, r)), f && h <= (N *= 8) && r < 8 && (N /= h, r++), a[0] = Number(N.toFixed(0 < r ? y : 0)), a[0] === h && r < 8 && c.exponent === void 0 && (a[0] = 1, r++), a[1] = g === 10 && r === 1 ? f ? "kb" : "kB" : u[C][f ? "bits" : "bytes"][r], b && (a[1] = C === "jedec" ? a[1].charAt(0) : 0 < r ? a[1].replace(/B$/, "") : a[1], n.test(a[1]) && (a[0] = Math.floor(a[0]), a[1] = ""))), I && (a[0] = -a[0]), a[1] = V[a[1]] || a[1], o === !0 ? a[0] = a[0].toLocaleString() : 0 < o.length ? a[0] = a[0].toLocaleString(o, F) : 0 < w.length && (a[0] = a[0].toString().replace(".", w)), v === "array" ? a : (d && (a[1] = x[r] ? x[r] : i[C][r] + (f ? "bit" : "byte") + (a[0] === 1 ? "" : "s")), v === "object" ? { value: a[0], symbol: a[1], exponent: r } : a.join(j)));
111
111
  }
112
112
  m.partial = function(A) {
113
113
  return function(g) {
@@ -191,7 +191,7 @@ function Be(t, s, l, n, u) {
191
191
  ];
192
192
  }
193
193
  function Fe({ files: t, loading: s, type: l, onFilenameClick: n, onDownload: u, onDelete: i }) {
194
- const { t: m } = V();
194
+ const { t: m } = R();
195
195
  return /* @__PURE__ */ e.jsx(
196
196
  ee,
197
197
  {
@@ -258,24 +258,24 @@ function Ce({ asset: t, assetGroup: s, children: l }) {
258
258
  const n = K("documents", t, s), u = K("images", t, s);
259
259
  return /* @__PURE__ */ e.jsx(O.Provider, { value: { documents: n, images: u }, children: l });
260
260
  }
261
- function we(t) {
261
+ function ve(t) {
262
262
  const { documents: s, images: l } = ne(O);
263
263
  return t === "documents" ? s : l;
264
264
  }
265
- function ve(t, s) {
265
+ function we(t, s) {
266
266
  const l = M().map(({ categoryName: n }) => n);
267
267
  return s && l.includes(s) ? t.filter((n) => n.category === s) : t.filter(
268
268
  (n) => !n.category || !l.includes(n.category)
269
269
  );
270
270
  }
271
271
  function E({ type: t, category: s }) {
272
- const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = we(t), A = X(() => ve(n, s), [n, s]), [g, f] = B(!1), [h, d] = B(!1), [x, o] = B(0), { t: F } = V(), I = oe();
273
- async function w(j) {
272
+ const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = ve(t), A = X(() => we(n, s), [n, s]), [g, f] = B(!1), [h, d] = B(!1), [x, o] = B(0), { t: F } = R(), I = oe();
273
+ async function v(j) {
274
274
  const C = await m(j);
275
275
  G.saveAs(new Blob([C]), j.filename);
276
276
  }
277
277
  function y(j) {
278
- t === "images" ? (o(A.indexOf(j)), d(!0)) : w(j);
278
+ t === "images" ? (o(A.indexOf(j)), d(!0)) : v(j);
279
279
  }
280
280
  async function b(j) {
281
281
  try {
@@ -284,7 +284,7 @@ function E({ type: t, category: s }) {
284
284
  console.error(C), J(/* @__PURE__ */ e.jsx(p, { i18nKey: "files.error.unknown", children: "Operation failed" }));
285
285
  }
286
286
  }
287
- async function v(j) {
287
+ async function w(j) {
288
288
  await I({
289
289
  title: F("assets.detail.files.deleteConfirmTitle", { defaultValue: "Delete File" }),
290
290
  message: F("assets.detail.files.deleteConfirmMessage", {
@@ -299,9 +299,9 @@ function E({ type: t, category: s }) {
299
299
  files: A,
300
300
  loading: l,
301
301
  type: t,
302
- onDownload: w,
302
+ onDownload: v,
303
303
  onFilenameClick: y,
304
- onDelete: v
304
+ onDelete: w
305
305
  }
306
306
  ),
307
307
  /* @__PURE__ */ e.jsx($, { authorities: ["WRITE_ASSET_OR_ASSET_GROUP_FILE"], children: /* @__PURE__ */ e.jsxs(k, { onClick: () => f(!0), "data-testid": "add-file-button", children: [
@@ -1,13 +1,13 @@
1
- import { a5 as $t, ad as Rr, aw as wt, ag as _e } from "./ContextBarContext-312508b6.js";
1
+ import { a5 as $t, ad as Rr, ax as wt, ag as _e } from "./ContextBarContext-a6c59c97.js";
2
2
  import Ar, { useMemo as jr, useState as le, useEffect as He } from "react";
3
3
  import { getParamsForSingleReport as Mr } from "@deviceinsight/ng-ui-api-client";
4
4
  import { Tabs as Ir, Spinner as Br } from "@deviceinsight/ng-ui-basic-components";
5
5
  import { messageBoxError as kr } from "@deviceinsight/ng-ui-components";
6
6
  import "react-i18next";
7
7
  import "react-router-dom";
8
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  var Ae = { exports: {} }, $e;
12
12
  function Ge() {
13
13
  return $e || ($e = 1, function(lt, bt) {
@@ -1,13 +1,13 @@
1
- import { a5 as so, a6 as ro, aw as mn } from "./ContextBarContext-312508b6.js";
1
+ import { a5 as so, a6 as ro, ax as mn } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useRef as gn, useCallback as oo, useEffect as ao } from "react";
3
3
  import { SpinnerContainer as ho } from "@deviceinsight/ng-ui-basic-components";
4
4
  import "react-router-dom";
5
+ import "react-dom";
5
6
  import "@deviceinsight/ng-ui-components";
6
7
  import "react-i18next";
7
8
  import "i18next";
8
9
  import "@deviceinsight/ng-ui-api-client";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  var yn = { exports: {} };
12
12
  /**
13
13
  * vis.js
@@ -1,19 +1,19 @@
1
- import { df as S, dm as j, aw as t, cA as C, ag as g } from "./ContextBarContext-312508b6.js";
1
+ import { dh as S, dp as C, ax as t, cC as j, ag as g } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useState as d, useEffect as v, useCallback as y } from "react";
3
- import { C as V, j as b } from "./index-464f8665.js";
3
+ import { C as V, j as b } from "./index-738ab9ab.js";
4
4
  import "react-i18next";
5
5
  import "react-router-dom";
6
+ import "react-dom";
6
7
  import "@deviceinsight/ng-ui-basic-components";
7
8
  import "@deviceinsight/ng-ui-components";
8
9
  import "i18next";
9
10
  import "@deviceinsight/ng-ui-api-client";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
- function K({ setting: e, ...c }) {
13
- const { setValue: o, setError: i, clearErrors: n, control: p } = S(), {
12
+ function R({ setting: e, ...p }) {
13
+ const { setValue: o, setError: i, clearErrors: n, control: c } = S(), {
14
14
  field: r,
15
15
  fieldState: { error: s }
16
- } = j({ name: e.name, control: p }), [f, l] = d(""), [m, h] = d(!1);
16
+ } = C({ name: e.name, control: c }), [f, l] = d(""), [m, h] = d(!1);
17
17
  v(() => {
18
18
  if (!m && r.value) {
19
19
  const a = JSON.stringify(r.value, null, 2);
@@ -33,7 +33,7 @@ function K({ setting: e, ...c }) {
33
33
  [n, i, o, e.name]
34
34
  );
35
35
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
36
- C,
36
+ j,
37
37
  {
38
38
  label: /* @__PURE__ */ t.jsx(g, { i18nKey: `appSettings.property.${e.name}`, children: e.name }),
39
39
  error: (s == null ? void 0 : s.message) ?? "",
@@ -41,7 +41,7 @@ function K({ setting: e, ...c }) {
41
41
  children: /* @__PURE__ */ t.jsx(
42
42
  V,
43
43
  {
44
- "data-testid": c["data-testid"],
44
+ "data-testid": p["data-testid"],
45
45
  onChange: x,
46
46
  value: f,
47
47
  basicSetup: { lineNumbers: !0 },
@@ -52,5 +52,5 @@ function K({ setting: e, ...c }) {
52
52
  ) });
53
53
  }
54
54
  export {
55
- K as default
55
+ R as default
56
56
  };
@@ -1,15 +1,15 @@
1
- import { ah as K, bf as C, aw as e, ag as n, bl as y, b7 as b, bR as V } from "./ContextBarContext-312508b6.js";
1
+ import { ah as w, bg as C, ax as e, ag as n, bm as y, b8 as b, bS as V } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useState as d, useEffect as v } from "react";
3
- import { Prompt as q, useHistory as B, useLocation as H, useParams as R } from "react-router-dom";
4
- import { fetchLicenses as T, fetchLicenseByName as D, updateLicense as I, createLicense as k } from "@deviceinsight/ng-ui-api-client";
3
+ import { Prompt as q, useHistory as B, useLocation as H, useParams as T } from "react-router-dom";
4
+ import { fetchLicenses as D, fetchLicenseByName as I, updateLicense as R, createLicense as k } from "@deviceinsight/ng-ui-api-client";
5
5
  import { SpinnerContainer as U, ButtonRow as A, Button as N, Spinner as O } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { messageBoxError as P, ContentHeader as z, messageBoxSuccess as F } from "@deviceinsight/ng-ui-components";
7
7
  import "react-i18next";
8
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
12
- const { t } = K(), {
12
+ const { t } = w(), {
13
13
  handleSubmit: p,
14
14
  control: l,
15
15
  formState: { isSubmitting: a, isDirty: x },
@@ -18,16 +18,16 @@ function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
18
18
  defaultValues: c ?? { name: "", displayName: "", description: "" }
19
19
  }), [j, m] = d([]), [f, L] = d(!1);
20
20
  v(() => {
21
- L(!0), T().then(m).catch(() => {
21
+ L(!0), D().then(m).catch(() => {
22
22
  P(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.form.fetchingError", children: "Fetching licenses failed" }));
23
23
  }).finally(() => L(!1));
24
24
  }, []);
25
- function w(i) {
25
+ function E(i) {
26
26
  return c ? void 0 : j.some((h) => h.name === i) ? t("licenses.form.validation.nameInUse", {
27
27
  defaultValue: "A license with the same technical name already exists"
28
28
  }) : void 0;
29
29
  }
30
- function E() {
30
+ function K() {
31
31
  return p(async (s) => {
32
32
  var h, S;
33
33
  try {
@@ -53,7 +53,7 @@ function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
53
53
  required: t("licenses.form.validation.nameRequired", {
54
54
  defaultValue: "Please enter the technical name"
55
55
  }),
56
- validate: w
56
+ validate: E
57
57
  },
58
58
  render: ({ field: i, fieldState: { error: s } }) => /* @__PURE__ */ e.jsx(
59
59
  b,
@@ -103,16 +103,16 @@ function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ e.jsxs(A, { dividing: !0, children: [
106
- /* @__PURE__ */ e.jsx(N, { primary: !0, onClick: E, disabled: a, children: /* @__PURE__ */ e.jsx(n, { i18nKey: "general.actions.save", children: "Save" }) }),
106
+ /* @__PURE__ */ e.jsx(N, { primary: !0, onClick: K, disabled: a, children: /* @__PURE__ */ e.jsx(n, { i18nKey: "general.actions.save", children: "Save" }) }),
107
107
  /* @__PURE__ */ e.jsx(N, { disabled: a, onClick: r, children: /* @__PURE__ */ e.jsx(n, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
108
108
  ] }),
109
109
  /* @__PURE__ */ e.jsx(q, { message: "", when: x && !a })
110
110
  ] });
111
111
  }
112
112
  function se() {
113
- const c = B(), { pathname: u } = H(), { licenseName: r } = R(), [t, p] = d(), [l, a] = d(!1), [x, g] = d(!1);
113
+ const c = B(), { pathname: u } = H(), { licenseName: r } = T(), [t, p] = d(), [l, a] = d(!1), [x, g] = d(!1);
114
114
  if (v(() => {
115
- r && (a(!0), D(r).then(p).catch(() => {
115
+ r && (a(!0), I(r).then(p).catch(() => {
116
116
  P(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.editPage.fetchingError", children: "Fetching license failed" })), g(!0);
117
117
  }).finally(() => a(!1)));
118
118
  }, [r]), x)
@@ -120,7 +120,7 @@ function se() {
120
120
  if (l)
121
121
  return /* @__PURE__ */ e.jsx(O, { center: !0 });
122
122
  const j = async (f) => {
123
- r ? (await I(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.updateSuccess", children: "License updated" }))) : (await k(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.createSuccess", children: "License created" }))), m();
123
+ r ? (await R(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.updateSuccess", children: "License updated" }))) : (await k(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.createSuccess", children: "License created" }))), m();
124
124
  }, m = () => {
125
125
  c.push(u.substring(0, u.lastIndexOf("/")));
126
126
  };