@deviceinsight/ng-ui-components 7.0.0 → 7.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.
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsx as a, jsxs as m, Fragment as Le } from "react/jsx-runtime";
2
- import { toast as U, ToastContainer as ot, Slide as lt } from "react-toastify";
3
- import { customAlphabet as ct } from "nanoid";
4
- import * as W from "react";
5
- import { useState as N, useEffect as k, forwardRef as Ve, useMemo as dt, useCallback as X, useRef as O, createElement as Fe, Component as L, createRef as ht } from "react";
1
+ import { jsx as a, jsxs as m, Fragment as Ve } from "react/jsx-runtime";
2
+ import { toast as Q, ToastContainer as ct, Slide as dt } from "react-toastify";
3
+ import { customAlphabet as ht } from "nanoid";
4
+ import * as $ from "react";
5
+ import { useState as N, useEffect as R, forwardRef as Fe, useMemo as ut, useCallback as q, useRef as D, createElement as Be, Component as V, createRef as je } from "react";
6
6
  import P from "classnames";
7
- import { Popup as ee, Button as V, Icon as ue, Modal as Be, Checkbox as be, SpinnerContainer as ut } from "@deviceinsight/ng-ui-basic-components";
8
- import { convert as je, parse as pt } from "pure-color";
9
- import { HexColorPicker as ft, RgbaStringColorPicker as gt, RgbStringColorPicker as mt } from "react-colorful";
10
- import He from "dayjs/plugin/timezone";
11
- import Ge from "dayjs/plugin/utc";
12
- import ne, { registerLocale as vt } from "react-datepicker";
13
- import { debounce as Ye, isEqual as Z, orderBy as yt, uniqWith as bt, difference as St } from "lodash";
14
- import S from "dayjs";
15
- import wt from "dayjs/plugin/localeData";
16
- import Ct from "dayjs/plugin/localizedFormat";
17
- import At from "dayjs/plugin/customParseFormat";
18
- import $ from "i18next";
19
- import * as ie from "date-fns/locale";
7
+ import { Popup as te, Button as F, Icon as pe, Modal as He, Checkbox as Se, SpinnerContainer as pt } from "@deviceinsight/ng-ui-basic-components";
8
+ import { convert as Ge, parse as ft } from "pure-color";
9
+ import { HexColorPicker as gt, RgbaStringColorPicker as mt, RgbStringColorPicker as vt } from "react-colorful";
10
+ import Ye from "dayjs/plugin/timezone";
11
+ import Ze from "dayjs/plugin/utc";
12
+ import ie, { registerLocale as yt } from "react-datepicker";
13
+ import { debounce as Ue, isEqual as z, orderBy as bt, uniqWith as St, difference as wt } from "lodash";
14
+ import b from "dayjs";
15
+ import Ct from "dayjs/plugin/localeData";
16
+ import At from "dayjs/plugin/localizedFormat";
17
+ import Nt from "dayjs/plugin/customParseFormat";
18
+ import J from "i18next";
19
+ import * as se from "date-fns/locale";
20
20
  import "dayjs/locale/en";
21
21
  import "dayjs/locale/en-gb";
22
22
  import "dayjs/locale/en-ca";
@@ -25,78 +25,78 @@ import "dayjs/locale/de-at";
25
25
  import "dayjs/locale/de-ch";
26
26
  import "dayjs/locale/it";
27
27
  import "dayjs/locale/ja";
28
- import { useHistory as pe, useLocation as fe, Switch as Nt, Route as Se, Redirect as xt, Link as Ze } from "react-router-dom";
29
- import { DndContext as It, closestCenter as kt } from "@dnd-kit/core";
30
- import { SortableContext as Mt, horizontalListSortingStrategy as Ue, useSortable as Rt } from "@dnd-kit/sortable";
31
- import { restrictToHorizontalAxis as Tt } from "@dnd-kit/modifiers";
32
- import Ot from "react-select";
28
+ import { useHistory as fe, useLocation as ge, Switch as xt, Route as we, Redirect as It, Link as We } from "react-router-dom";
29
+ import { DndContext as Rt, closestCenter as kt } from "@dnd-kit/core";
30
+ import { SortableContext as Mt, horizontalListSortingStrategy as ze, useSortable as Tt } from "@dnd-kit/sortable";
31
+ import { restrictToHorizontalAxis as Ot } from "@dnd-kit/modifiers";
33
32
  import { readAccountObject as Et, writeAccountObject as Dt } from "@deviceinsight/ng-ui-api-client";
33
+ import Lt from "react-select";
34
34
  import Pt from "react-dropzone";
35
- import { AsyncPaginate as Lt } from "react-select-async-paginate";
36
- import { SVG as We } from "@svgdotjs/svg.js";
37
- import Vt from "highcharts";
38
- import Ft from "highcharts-react-official";
39
- import ze from "@rc-component/slider";
40
- import Bt from "@rc-component/tooltip";
41
- let j = {}, Qe = {
35
+ import { AsyncPaginate as Vt } from "react-select-async-paginate";
36
+ import { SVG as Qe } from "@svgdotjs/svg.js";
37
+ import Ft from "highcharts";
38
+ import Bt from "highcharts-react-official";
39
+ import $e from "@rc-component/slider";
40
+ import jt from "@rc-component/tooltip";
41
+ let G = {}, Je = {
42
42
  autoClose: !1
43
43
  };
44
- const Qi = (t) => {
45
- Qe = t;
46
- }, te = (t, e) => {
47
- t && (j[t] ? j[t] = [...j[t], e] : j[t] = [e]);
48
- }, $i = (t, e, n) => {
49
- const i = U.success(t, e);
50
- n && te(n, i);
44
+ const $i = (t) => {
45
+ Je = t;
46
+ }, ne = (t, e) => {
47
+ t && (G[t] ? G[t] = [...G[t], e] : G[t] = [e]);
51
48
  }, Ji = (t, e, n) => {
52
- const i = U.info(t, e);
53
- n && te(n, i);
49
+ const i = Q.success(t, e);
50
+ n && ne(n, i);
54
51
  }, Ki = (t, e, n) => {
55
- const i = U.warn(t, e);
56
- n && te(n, i);
52
+ const i = Q.info(t, e);
53
+ n && ne(n, i);
57
54
  }, Xi = (t, e, n) => {
58
- const i = U.error(t, { ...Qe, ...e });
59
- n && te(n, i);
60
- }, qi = (t) => {
61
- U.dismiss(t);
55
+ const i = Q.warn(t, e);
56
+ n && ne(n, i);
57
+ }, qi = (t, e, n) => {
58
+ const i = Q.error(t, { ...Je, ...e });
59
+ n && ne(n, i);
62
60
  }, _i = (t) => {
63
- j[t] && (j[t].forEach((e) => U.dismiss(e)), delete j[t]);
64
- }, es = () => {
65
- j = {}, U.dismiss();
66
- }, ts = () => /* @__PURE__ */ a(ot, { position: "top-center", theme: "colored", autoClose: 3e4, hideProgressBar: !0, transition: lt }), jt = (t = 32) => {
61
+ Q.dismiss(t);
62
+ }, es = (t) => {
63
+ G[t] && (G[t].forEach((e) => Q.dismiss(e)), delete G[t]);
64
+ }, ts = () => {
65
+ G = {}, Q.dismiss();
66
+ }, ns = () => /* @__PURE__ */ a(ct, { position: "top-center", theme: "colored", autoClose: 3e4, hideProgressBar: !0, transition: dt }), Ht = (t = 32) => {
67
67
  let e = "";
68
68
  for (let n = 0; n < t; n++) {
69
69
  const i = Math.random() * 16 | 0;
70
70
  (n === 8 || n === 12 || n === 16 || n === 20) && (e += "-"), e += (n === 12 ? 4 : n === 16 ? i & 3 | 8 : i).toString(16);
71
71
  }
72
72
  return e;
73
- }, Ht = "0123456789abcdefghijklmnopqrstuvwxyz", ns = ct(Ht, 10);
74
- let A, F;
75
- function is(t, e) {
76
- A = t, F = e;
73
+ }, Gt = "0123456789abcdefghijklmnopqrstuvwxyz", is = ht(Gt, 10);
74
+ let A, B;
75
+ function ss(t, e) {
76
+ A = t, B = e;
77
77
  }
78
- function Gt(t) {
78
+ function Yt(t) {
79
79
  return t.filter((e, n, i) => i.indexOf(e) === n);
80
80
  }
81
- function Yt(t, e) {
82
- return t.filter((n) => !e.includes(n));
83
- }
84
81
  function Zt(t, e) {
85
- return Gt([...t, ...e]);
82
+ return t.filter((n) => !e.includes(n));
86
83
  }
87
84
  function Ut(t, e) {
85
+ return Yt([...t, ...e]);
86
+ }
87
+ function Wt(t, e) {
88
88
  return t.filter((n) => e.includes(n));
89
89
  }
90
- function oe(t) {
91
- return t.children ? t.children.length + t.children.reduce((n, i) => n + oe(i), 0) : 0;
90
+ function le(t) {
91
+ return t.children ? t.children.length + t.children.reduce((n, i) => n + le(i), 0) : 0;
92
92
  }
93
- function q(t) {
94
- return t.children ? t.children.reduce((e, n) => [...e, ...q(n)], []) : [t];
93
+ function _(t) {
94
+ return t.children ? t.children.reduce((e, n) => [...e, ..._(n)], []) : [t];
95
95
  }
96
- function Wt(t) {
97
- return q(t).map((e) => e.id);
96
+ function zt(t) {
97
+ return _(t).map((e) => e.id);
98
98
  }
99
- function zt({
99
+ function Qt({
100
100
  childNodeKey: t,
101
101
  idKey: e,
102
102
  displayNameKey: n,
@@ -108,43 +108,43 @@ function zt({
108
108
  const { typeValue: l, image: c, resolver: h } = o, { typeValue: d, expandedImage: u, closedImage: f, resolver: p } = r;
109
109
  return function g(v, w = "") {
110
110
  return v.map((y) => {
111
- const C = y[e], x = y[n], M = y[t], I = y[s], R = p ? p(y) : y[i] === d, H = h ? h(y) : y[i] === l, b = `${w}/${x}`, E = y;
112
- if (R)
111
+ const C = y[e], x = y[n], k = y[t], I = y[s], M = p ? p(y) : y[i] === d, E = h ? h(y) : y[i] === l, S = `${w}/${x}`, T = y;
112
+ if (M)
113
113
  return {
114
114
  id: C,
115
115
  name: x,
116
- children: g(M || [], b),
116
+ children: g(k || [], S),
117
117
  lazyLoadable: I,
118
118
  expandedImage: u,
119
119
  closedImage: f,
120
- path: b,
121
- originalNode: E
120
+ path: S,
121
+ originalNode: T
122
122
  };
123
- if (H)
123
+ if (E)
124
124
  return {
125
125
  id: C,
126
126
  name: x,
127
127
  image: c,
128
- path: b,
129
- originalNode: E
128
+ path: S,
129
+ originalNode: T
130
130
  };
131
131
  throw new Error("unknown node or leaf type provided");
132
132
  });
133
133
  };
134
134
  }
135
- function Qt(t, e) {
135
+ function $t(t, e) {
136
136
  let n;
137
137
  return e.children !== void 0 && (t.children !== void 0 ? n = [...t.children, ...e.children] : n = [...e.children]), { ...t, ...e, children: n || void 0 };
138
138
  }
139
- function $e(t, e, n) {
140
- return t.children === void 0 ? t : t.id === e ? Qt(t, n) : { ...t, children: t.children.map((i) => $e(i, e, n)) };
139
+ function Ke(t, e, n) {
140
+ return t.children === void 0 ? t : t.id === e ? $t(t, n) : { ...t, children: t.children.map((i) => Ke(i, e, n)) };
141
141
  }
142
- function Je(t, e, n, i, s) {
142
+ function Xe(t, e, n, i, s) {
143
143
  if (t[n] === e)
144
144
  return [t[s]];
145
145
  if (t[i])
146
146
  for (let r = 0; r < t[i].length; r++) {
147
- const o = Je(
147
+ const o = Xe(
148
148
  t[i][r],
149
149
  e,
150
150
  n,
@@ -156,11 +156,11 @@ function Je(t, e, n, i, s) {
156
156
  }
157
157
  return null;
158
158
  }
159
- function ss(t, e, n, i, s) {
160
- const r = Je(t, e, n, i, s);
159
+ function rs(t, e, n, i, s) {
160
+ const r = Xe(t, e, n, i, s);
161
161
  return r ? r.join(".") : null;
162
162
  }
163
- function Ke({
163
+ function qe({
164
164
  isOpen: t,
165
165
  onOpenChange: e,
166
166
  className: n,
@@ -170,7 +170,7 @@ function Ke({
170
170
  children: o
171
171
  }) {
172
172
  return /* @__PURE__ */ a(
173
- ee,
173
+ te,
174
174
  {
175
175
  handler: /* @__PURE__ */ a("div", { className: `di color-picker-popper ${n || ""}`, style: i, children: /* @__PURE__ */ a("div", { className: "trigger", style: { ...i, backgroundColor: s } }) }),
176
176
  open: t,
@@ -180,7 +180,7 @@ function Ke({
180
180
  }
181
181
  );
182
182
  }
183
- function rs({
183
+ function as({
184
184
  value: t,
185
185
  isOpen: e,
186
186
  onOpenStateChange: n,
@@ -207,7 +207,7 @@ function rs({
207
207
  g
208
208
  )) });
209
209
  return c ? p : /* @__PURE__ */ a(
210
- Ke,
210
+ qe,
211
211
  {
212
212
  className: h,
213
213
  style: d,
@@ -219,10 +219,10 @@ function rs({
219
219
  }
220
220
  );
221
221
  }
222
- const we = (t, e, n) => t.length ? e.test(t) : !n, ye = class ye extends W.Component {
222
+ const Ce = (t, e, n) => t.length ? e.test(t) : !n, be = class be extends $.Component {
223
223
  constructor() {
224
224
  super(...arguments), this.handleChange = (e) => {
225
- const { value: n } = e.target, { pattern: i, required: s, onChange: r } = this.props, o = we(n, i, s);
225
+ const { value: n } = e.target, { pattern: i, required: s, onChange: r } = this.props, o = Ce(n, i, s);
226
226
  r(n, o);
227
227
  };
228
228
  }
@@ -234,25 +234,25 @@ const we = (t, e, n) => t.length ? e.test(t) : !n, ye = class ye extends W.Compo
234
234
  ...l,
235
235
  value: i,
236
236
  onChange: this.handleChange,
237
- style: we(i, r, o) ? e : { ...e, ...n },
237
+ style: Ce(i, r, o) ? e : { ...e, ...n },
238
238
  type: "text"
239
239
  }
240
240
  );
241
241
  }
242
242
  };
243
- ye.defaultProps = {
243
+ be.defaultProps = {
244
244
  required: !1
245
245
  };
246
- let _ = ye;
247
- function Ce({ value: t, pattern: e, onChange: n, placeholder: i, style: s }) {
246
+ let ee = be;
247
+ function Ae({ value: t, pattern: e, onChange: n, placeholder: i, style: s }) {
248
248
  const [r, o] = N(t);
249
249
  function l(c, h) {
250
250
  o(c), h && n(c);
251
251
  }
252
- return k(() => {
252
+ return R(() => {
253
253
  o(t);
254
254
  }, [t]), /* @__PURE__ */ a(
255
- _,
255
+ ee,
256
256
  {
257
257
  value: r,
258
258
  onChange: l,
@@ -266,8 +266,8 @@ function Ce({ value: t, pattern: e, onChange: n, placeholder: i, style: s }) {
266
266
  }
267
267
  );
268
268
  }
269
- const $t = /^#([A-Fa-f0-9]{6})$/, Jt = /^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/, Xe = (t) => pt(t).splice(0, 3), Kt = (t) => t && t.length > 6 ? je.rgb.hex(Xe(t)) : "", Xt = (t) => t ? je.rgb.string(Xe(t)) : "";
270
- function as({
269
+ const Jt = /^#([A-Fa-f0-9]{6})$/, Kt = /^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/, _e = (t) => ft(t).splice(0, 3), Xt = (t) => t && t.length > 6 ? Ge.rgb.hex(_e(t)) : "", qt = (t) => t ? Ge.rgb.string(_e(t)) : "";
270
+ function os({
271
271
  onOpenStateChange: t,
272
272
  onPick: e,
273
273
  allowTextInput: n,
@@ -281,7 +281,7 @@ function as({
281
281
  style: d,
282
282
  value: u
283
283
  }) {
284
- const [f, p] = N(!1), g = Kt(u), v = Xt(u), w = u === g ? ft : l && !n ? gt : mt, y = /* @__PURE__ */ m(
284
+ const [f, p] = N(!1), g = Xt(u), v = qt(u), w = u === g ? gt : l && !n ? mt : vt, y = /* @__PURE__ */ m(
285
285
  "div",
286
286
  {
287
287
  className: P(
@@ -296,21 +296,21 @@ function as({
296
296
  /* @__PURE__ */ a(w, { color: u, onChange: e }),
297
297
  n && /* @__PURE__ */ m("div", { className: "inputs", children: [
298
298
  /* @__PURE__ */ a(
299
- Ce,
299
+ Ae,
300
300
  {
301
301
  value: g,
302
302
  onChange: e,
303
- pattern: $t,
303
+ pattern: Jt,
304
304
  placeholder: "#FF00FF",
305
305
  style: { width: 60 }
306
306
  }
307
307
  ),
308
308
  /* @__PURE__ */ a(
309
- Ce,
309
+ Ae,
310
310
  {
311
311
  value: v,
312
312
  onChange: e,
313
- pattern: Jt,
313
+ pattern: Kt,
314
314
  placeholder: "rgb(255,0,255)",
315
315
  style: { width: 115 }
316
316
  }
@@ -320,7 +320,7 @@ function as({
320
320
  }
321
321
  );
322
322
  return r ? y : /* @__PURE__ */ a(
323
- Ke,
323
+ qe,
324
324
  {
325
325
  className: i,
326
326
  style: d,
@@ -332,93 +332,93 @@ function as({
332
332
  }
333
333
  );
334
334
  }
335
- const qt = ["en", "en-gb", "en-ca", "de", "de-at", "de-ch", "it", "ja"];
336
- function Ae(t) {
337
- return qt.includes(t);
335
+ const _t = ["en", "en-gb", "en-ca", "de", "de-at", "de-ch", "it", "ja"];
336
+ function Ne(t) {
337
+ return _t.includes(t);
338
338
  }
339
- S.extend(Ge);
340
- S.extend(He);
341
- S.extend(wt);
342
- S.extend(Ct);
343
- S.extend(At);
344
- function _t(t) {
339
+ b.extend(Ze);
340
+ b.extend(Ye);
341
+ b.extend(Ct);
342
+ b.extend(At);
343
+ b.extend(Nt);
344
+ function en(t) {
345
345
  const [e, n] = t.split("-");
346
346
  let i;
347
- e && n ? i = ie[`${e}${n}`] ?? ie[e] : e ? i = ie[e] : i = null, i && vt(t, i);
347
+ e && n ? i = se[`${e}${n}`] ?? se[e] : e ? i = se[e] : i = null, i && yt(t, i);
348
348
  }
349
- async function en(t) {
349
+ async function tn(t) {
350
350
  let e = null;
351
351
  const [n] = t.split("-");
352
- Ae(t.toLowerCase()) ? e = t.toLowerCase() : Ae(n.toLowerCase()) && (e = n.toLowerCase()), e && S.locale(e);
352
+ Ne(t.toLowerCase()) ? e = t.toLowerCase() : Ne(n.toLowerCase()) && (e = n.toLowerCase()), e && b.locale(e);
353
353
  }
354
- function Ne(t, e) {
355
- return t == null || t === "" ? !0 : typeof t == "number" ? !isNaN(t) : typeof t == "string" ? S(t, e, !0).isValid() : !1;
354
+ function xe(t, e) {
355
+ return t == null || t === "" ? !0 : typeof t == "number" ? !isNaN(t) : typeof t == "string" ? b(t, e, !0).isValid() : !1;
356
356
  }
357
- function se(t, e, n) {
358
- return typeof t == "number" && !Number.isNaN(t) ? new Date(t) : typeof t == "string" && S(t, e, !0).isValid() ? S.tz(t, e, n).toDate() : null;
357
+ function re(t, e, n) {
358
+ return typeof t == "number" && !Number.isNaN(t) ? new Date(t) : typeof t == "string" && b(t, e, !0).isValid() ? b.tz(t, e, n).toDate() : null;
359
359
  }
360
- function tn(t, e, n) {
361
- return typeof t == "number" ? S.tz(t, n) : typeof t == "string" && S(t, e, !0).isValid() ? S.tz(t, e, n) : null;
360
+ function nn(t, e, n) {
361
+ return typeof t == "number" ? b.tz(t, n) : typeof t == "string" && b(t, e, !0).isValid() ? b.tz(t, e, n) : null;
362
362
  }
363
- const qe = Ve(
363
+ const et = Fe(
364
364
  ({ value: t, clearable: e, inline: n, readOnly: i, wrapperClassName: s, onChange: r, locale: o, timezone: l, ...c }, h) => {
365
- const [d, u] = N(S.localeData().longDateFormat("L")), { t: f } = F(), [p, g] = N(!1), [v, w] = N(!1), [y, C] = N(""), x = dt(() => Ye(w, 30), []);
366
- k(() => {
367
- const b = o ?? $.language;
368
- b && (_t(b), en(b).then(() => u(S.localeData().longDateFormat("L"))));
365
+ const [d, u] = N(b.localeData().longDateFormat("L")), { t: f } = B(), [p, g] = N(!1), [v, w] = N(!1), [y, C] = N(""), x = ut(() => Ue(w, 30), []);
366
+ R(() => {
367
+ const S = o ?? J.language;
368
+ S && (en(S), tn(S).then(() => u(b.localeData().longDateFormat("L"))));
369
369
  }, [o]);
370
- const M = X(
371
- (b) => b == null || b == "" ? "" : Ne(b, d) ? typeof b == "number" ? S.tz(b, l).format(d) : b : f("dateInput.invalidDate", {
370
+ const k = q(
371
+ (S) => S == null || S == "" ? "" : xe(S, d) ? typeof S == "number" ? b.tz(S, l).format(d) : S : f("dateInput.invalidDate", {
372
372
  defaultValue: "invalid date"
373
373
  }),
374
374
  [d, f, l]
375
375
  );
376
- k(() => {
377
- t == null ? C("") : C(M(t));
378
- }, [M, t]), k(() => {
379
- g(Ne(t, d));
380
- }, [d, t]), k(() => {
381
- S.locale(o ?? $.language), u(S.localeData().longDateFormat("L"));
376
+ R(() => {
377
+ t == null ? C("") : C(k(t));
378
+ }, [k, t]), R(() => {
379
+ g(xe(t, d));
380
+ }, [d, t]), R(() => {
381
+ b.locale(o ?? J.language), u(b.localeData().longDateFormat("L"));
382
382
  }, [o]);
383
- const I = (b) => {
384
- if (C(b), b) {
385
- const E = S(b, d, !0).isValid();
386
- if (E) {
387
- const z = tn(t, d, l), Q = S.tz(b, d, l ?? S.tz.guess());
388
- z && (Q.set("hour", z.hour()), Q.set("minute", z.minute()), Q.set("second", z.second()), Q.set("millisecond", z.millisecond())), r(Q.valueOf(), !0);
383
+ const I = (S) => {
384
+ if (C(S), S) {
385
+ const T = b(S, d, !0).isValid();
386
+ if (T) {
387
+ const Y = nn(t, d, l), Z = b.tz(S, d, l ?? b.tz.guess());
388
+ Y && (Z.set("hour", Y.hour()), Z.set("minute", Y.minute()), Z.set("second", Y.second()), Z.set("millisecond", Y.millisecond())), r(Z.valueOf(), !0);
389
389
  }
390
- g(E);
390
+ g(T);
391
391
  } else
392
392
  r(null, !0), g(!0);
393
- }, R = (b) => {
394
- r(b ? b.valueOf() : null), C(M(b ? b.getTime() : null)), w(!1);
395
- }, H = () => I("");
393
+ }, M = (S) => {
394
+ r(S ? S.valueOf() : null), C(k(S ? S.getTime() : null)), w(!1);
395
+ }, E = () => I("");
396
396
  return n ? /* @__PURE__ */ a(
397
- ne,
397
+ ie,
398
398
  {
399
399
  ...c,
400
- onChange: R,
401
- selected: se(t, d, l),
402
- locale: o ?? $.language,
400
+ onChange: M,
401
+ selected: re(t, d, l),
402
+ locale: o ?? J.language,
403
403
  isClearable: e,
404
404
  placeholderText: d,
405
405
  className: P("date", { invalid: !p }),
406
406
  inline: !0
407
407
  }
408
408
  ) : i ? /* @__PURE__ */ a(
409
- ne,
409
+ ie,
410
410
  {
411
411
  ...c,
412
412
  onChange: () => {
413
413
  },
414
- selected: se(t, d, l),
415
- locale: o ?? $.language,
416
- customInput: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a("input", { type: "text", value: M(t), readOnly: !0 }) }),
414
+ selected: re(t, d, l),
415
+ locale: o ?? J.language,
416
+ customInput: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a("input", { type: "text", value: k(t), readOnly: !0 }) }),
417
417
  placeholderText: d,
418
418
  readOnly: !0
419
419
  }
420
420
  ) : /* @__PURE__ */ a(
421
- ee,
421
+ te,
422
422
  {
423
423
  handler: /* @__PURE__ */ m("span", { className: "di date-input-wrapper", children: [
424
424
  /* @__PURE__ */ a(
@@ -427,15 +427,15 @@ const qe = Ve(
427
427
  ref: h,
428
428
  "data-testid": "date-input",
429
429
  className: P("date", { invalid: !p }),
430
- onChange: (b) => I(b.target.value),
430
+ onChange: (S) => I(S.target.value),
431
431
  value: y,
432
432
  placeholder: d,
433
433
  onBlur: () => {
434
- I(M(t)), x(!1);
434
+ I(k(t)), x(!1);
435
435
  }
436
436
  }
437
437
  ),
438
- e && /* @__PURE__ */ a(V, { naked: !0, small: !0, onClick: H, children: /* @__PURE__ */ a(ue, { del: !0 }) })
438
+ e && /* @__PURE__ */ a(F, { naked: !0, small: !0, onClick: E, children: /* @__PURE__ */ a(pe, { del: !0 }) })
439
439
  ] }),
440
440
  mode: ["click", "focus"],
441
441
  className: "date-input",
@@ -451,12 +451,12 @@ const qe = Ve(
451
451
  x(!0);
452
452
  },
453
453
  children: /* @__PURE__ */ a(
454
- ne,
454
+ ie,
455
455
  {
456
456
  ...c,
457
- selected: se(t, d, l),
458
- onChange: R,
459
- locale: o ?? $.language,
457
+ selected: re(t, d, l),
458
+ onChange: M,
459
+ locale: o ?? J.language,
460
460
  isClearable: e,
461
461
  placeholderText: d,
462
462
  className: P("date", { invalid: !p }),
@@ -469,7 +469,7 @@ const qe = Ve(
469
469
  );
470
470
  }
471
471
  );
472
- class os extends W.Component {
472
+ class ls extends $.Component {
473
473
  constructor() {
474
474
  super(...arguments), this.state = {
475
475
  editMode: !1
@@ -498,11 +498,11 @@ class os extends W.Component {
498
498
  children: n
499
499
  }
500
500
  ),
501
- /* @__PURE__ */ a(V, { small: !0, onClick: this.handleEdit, children: /* @__PURE__ */ a(ue, { edit: !0 }) })
501
+ /* @__PURE__ */ a(F, { small: !0, onClick: this.handleEdit, children: /* @__PURE__ */ a(pe, { edit: !0 }) })
502
502
  ] });
503
503
  }
504
504
  }
505
- function nn({
505
+ function sn({
506
506
  title: t,
507
507
  message: e,
508
508
  onAccept: n,
@@ -511,11 +511,11 @@ function nn({
511
511
  cancelButtonLabel: r,
512
512
  acceptButtonLabel: o
513
513
  }) {
514
- const { t: l } = F(), c = O(null), [h, d] = N("");
515
- return k(() => {
514
+ const { t: l } = B(), c = D(null), [h, d] = N("");
515
+ return R(() => {
516
516
  c.current?.focus();
517
517
  }), /* @__PURE__ */ a(
518
- Be,
518
+ He,
519
519
  {
520
520
  header: l(t.id, {
521
521
  defaultValue: t.defaultValue
@@ -539,7 +539,7 @@ function nn({
539
539
  ] }) }),
540
540
  footer: /* @__PURE__ */ m("div", { children: [
541
541
  /* @__PURE__ */ a(
542
- V,
542
+ F,
543
543
  {
544
544
  primary: !0,
545
545
  onClick: () => {
@@ -549,14 +549,14 @@ function nn({
549
549
  children: o ? /* @__PURE__ */ a(A, { i18nKey: o.id, children: o.defaultValue }) : /* @__PURE__ */ a(A, { i18nKey: "form.accept", children: "Accept" })
550
550
  }
551
551
  ),
552
- /* @__PURE__ */ a(V, { onClick: i, children: r ? /* @__PURE__ */ a(A, { i18nKey: r.id, children: r.defaultValue }) : /* @__PURE__ */ a(A, { i18nKey: "form.cancel", children: "Cancel" }) })
552
+ /* @__PURE__ */ a(F, { onClick: i, children: r ? /* @__PURE__ */ a(A, { i18nKey: r.id, children: r.defaultValue }) : /* @__PURE__ */ a(A, { i18nKey: "form.cancel", children: "Cancel" }) })
553
553
  ] }),
554
554
  width: 600
555
555
  }
556
556
  );
557
557
  }
558
- function cs(t) {
559
- return class extends W.Component {
558
+ function ds(t) {
559
+ return class extends $.Component {
560
560
  constructor() {
561
561
  super(...arguments), this.state = {
562
562
  show: !1
@@ -564,7 +564,7 @@ function cs(t) {
564
564
  this.setState({
565
565
  show: !0,
566
566
  promptElement: /* @__PURE__ */ a(
567
- nn,
567
+ sn,
568
568
  {
569
569
  title: n,
570
570
  message: i,
@@ -589,33 +589,33 @@ function cs(t) {
589
589
  }
590
590
  render() {
591
591
  return [
592
- /* @__PURE__ */ Fe(t, { ...this.props, prompt: this.prompt, key: "0" }),
592
+ /* @__PURE__ */ Be(t, { ...this.props, prompt: this.prompt, key: "0" }),
593
593
  this.state.show ? this.state.promptElement : null
594
594
  ];
595
595
  }
596
596
  };
597
597
  }
598
- const xe = (t) => !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
599
- function ds({ to: t, confirm: e, className: n, title: i, children: s, keyboardShortcut: r, ...o }) {
600
- const l = pe(), { t: c } = F(), h = X(() => {
598
+ const Ie = (t) => !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
599
+ function hs({ to: t, confirm: e, className: n, title: i, children: s, keyboardShortcut: r, ...o }) {
600
+ const l = fe(), { t: c } = B(), h = q(() => {
601
601
  e ? e().then((p) => l.push(p || t)).catch(() => {
602
602
  }) : l.push(t);
603
- }, [e, l, t]), d = X(
603
+ }, [e, l, t]), d = q(
604
604
  (p) => {
605
- r && p.key === r && !xe(p) && // @ts-ignore EventTarget is a Node and has a tagName
605
+ r && p.key === r && !Ie(p) && // @ts-ignore EventTarget is a Node and has a tagName
606
606
  p.target.tagName && // @ts-ignore EventTarget is a Node and has a tagName
607
607
  !["INPUT", "SELECT", "TEXTAREA"].includes(p.target.tagName) && (p.preventDefault(), h());
608
608
  },
609
609
  [r, h]
610
610
  );
611
- k(() => {
611
+ R(() => {
612
612
  if (r)
613
613
  return window.addEventListener("keydown", d), () => {
614
614
  window.removeEventListener("keydown", d);
615
615
  };
616
616
  }, [r, d]);
617
617
  const u = (p) => {
618
- p.button === 0 && !xe(p) && (p.preventDefault(), h());
618
+ p.button === 0 && !Ie(p) && (p.preventDefault(), h());
619
619
  }, f = l.createHref(typeof t == "string" ? { pathname: t } : t);
620
620
  return /* @__PURE__ */ a(
621
621
  "a",
@@ -631,14 +631,14 @@ function ds({ to: t, confirm: e, className: n, title: i, children: s, keyboardSh
631
631
  }
632
632
  );
633
633
  }
634
- const sn = {
634
+ const rn = {
635
635
  info: "#ffffff",
636
636
  success: "#cce0cc",
637
637
  warning: "#fed254",
638
638
  error: "#d66961"
639
639
  };
640
- function hs({ type: t = "info", hideable: e = !1, className: n, icon: i, message: s, children: r }) {
641
- const [o, l] = N(!0), { t: c } = F();
640
+ function us({ type: t = "info", hideable: e = !1, className: n, icon: i, message: s, children: r }) {
641
+ const [o, l] = N(!0), { t: c } = B();
642
642
  function h() {
643
643
  if (typeof s != "string") {
644
644
  const { id: u, defaultValue: f, ...p } = s;
@@ -653,21 +653,21 @@ function hs({ type: t = "info", hideable: e = !1, className: n, icon: i, message
653
653
  {
654
654
  className: "infobox-header",
655
655
  style: {
656
- backgroundColor: sn[t]
656
+ backgroundColor: rn[t]
657
657
  },
658
658
  children: [
659
659
  /* @__PURE__ */ m("div", { className: "infobox-header-content", children: [
660
660
  i && /* @__PURE__ */ a("div", { className: "infobox-iconcontainer", children: /* @__PURE__ */ a("img", { src: i, alt: "info-icon", style: { width: 16, height: 16 } }) }),
661
661
  /* @__PURE__ */ a("div", { className: "infobox-message", children: d })
662
662
  ] }),
663
- e && /* @__PURE__ */ a("button", { className: "infobox-closebutton", onClick: () => l(!1), children: /* @__PURE__ */ a(ue, { del: !0, large: !0 }) })
663
+ e && /* @__PURE__ */ a("button", { className: "infobox-closebutton", onClick: () => l(!1), children: /* @__PURE__ */ a(pe, { del: !0, large: !0 }) })
664
664
  ]
665
665
  }
666
666
  ),
667
667
  r
668
668
  ] }) : null;
669
669
  }
670
- const le = /* @__PURE__ */ Object.freeze({
670
+ const ce = /* @__PURE__ */ Object.freeze({
671
671
  Translate: {
672
672
  toString(t) {
673
673
  if (!t)
@@ -693,7 +693,7 @@ const le = /* @__PURE__ */ Object.freeze({
693
693
  Transform: {
694
694
  toString(t) {
695
695
  if (t)
696
- return [le.Translate.toString(t), le.Scale.toString(t)].join(" ");
696
+ return [ce.Translate.toString(t), ce.Scale.toString(t)].join(" ");
697
697
  }
698
698
  },
699
699
  Transition: {
@@ -707,11 +707,11 @@ const le = /* @__PURE__ */ Object.freeze({
707
707
  }
708
708
  }
709
709
  });
710
- function re(t, e) {
710
+ function ae(t, e) {
711
711
  const n = t.endsWith("/") ? "" : "/";
712
712
  return `${t}${n}${e}`;
713
713
  }
714
- const rn = ({
714
+ const an = ({
715
715
  id: t,
716
716
  to: e,
717
717
  className: n,
@@ -719,14 +719,14 @@ const rn = ({
719
719
  children: s,
720
720
  draggingDisabled: r
721
721
  }) => {
722
- const { attributes: o, listeners: l, setNodeRef: c, transform: h, transition: d } = Rt({
722
+ const { attributes: o, listeners: l, setNodeRef: c, transform: h, transition: d } = Tt({
723
723
  id: t,
724
724
  disabled: r,
725
- strategy: Ue
725
+ strategy: ze
726
726
  }), u = {
727
- transform: h ? le.Transform.toString({ ...h, scaleX: 1 }) : void 0,
727
+ transform: h ? ce.Transform.toString({ ...h, scaleX: 1 }) : void 0,
728
728
  transition: d
729
- }, { pathname: f } = fe();
729
+ }, { pathname: f } = ge();
730
730
  return f.endsWith(e.toString()) ? /* @__PURE__ */ a(
731
731
  "button",
732
732
  {
@@ -741,7 +741,7 @@ const rn = ({
741
741
  children: s
742
742
  }
743
743
  ) : /* @__PURE__ */ a(
744
- Ze,
744
+ We,
745
745
  {
746
746
  "data-testid": "tab-button",
747
747
  to: e,
@@ -755,8 +755,8 @@ const rn = ({
755
755
  }
756
756
  );
757
757
  };
758
- function us({ pages: t, onOrderChange: e, basePath: n, ...i }) {
759
- const [s, r] = N(!1), { pathname: o, state: l } = fe();
758
+ function ps({ pages: t, onOrderChange: e, basePath: n, ...i }) {
759
+ const [s, r] = N(!1), { pathname: o, state: l } = ge();
760
760
  function c() {
761
761
  const d = o.split("/").reverse()[0];
762
762
  return t.some((u) => u.path === d) ? o.substring(0, o.lastIndexOf("/")) : o;
@@ -771,22 +771,22 @@ function us({ pages: t, onOrderChange: e, basePath: n, ...i }) {
771
771
  }
772
772
  return /* @__PURE__ */ m("div", { className: s ? "draggable-area" : "", children: [
773
773
  /* @__PURE__ */ a(
774
- It,
774
+ Rt,
775
775
  {
776
776
  collisionDetection: kt,
777
777
  onDragEnd: h,
778
778
  onDragStart: () => r(!0),
779
- modifiers: [Tt],
779
+ modifiers: [Ot],
780
780
  children: /* @__PURE__ */ a("div", { className: "di tabs", children: /* @__PURE__ */ a(
781
781
  Mt,
782
782
  {
783
783
  items: t.map((d) => ({ ...d, id: d.path })),
784
- strategy: Ue,
784
+ strategy: ze,
785
785
  children: t.map(({ path: d, renderHeading: u, headingTitle: f, draggingDisabled: p, disabled: g }) => /* @__PURE__ */ a(
786
- rn,
786
+ an,
787
787
  {
788
788
  id: d,
789
- to: re(n || c(), d),
789
+ to: ae(n || c(), d),
790
790
  title: f,
791
791
  draggingDisabled: g || p || !e || !s && !o.endsWith(d),
792
792
  children: u(i)
@@ -797,20 +797,20 @@ function us({ pages: t, onOrderChange: e, basePath: n, ...i }) {
797
797
  ) })
798
798
  }
799
799
  ),
800
- /* @__PURE__ */ m(Nt, { children: [
800
+ /* @__PURE__ */ m(xt, { children: [
801
801
  t.map(({ renderBody: d, path: u }) => /* @__PURE__ */ a(
802
- Se,
802
+ we,
803
803
  {
804
- path: re(n || c(), u),
804
+ path: ae(n || c(), u),
805
805
  render: () => d(i)
806
806
  },
807
807
  u
808
808
  )),
809
- /* @__PURE__ */ a(Se, { children: /* @__PURE__ */ a(
810
- xt,
809
+ /* @__PURE__ */ a(we, { children: /* @__PURE__ */ a(
810
+ It,
811
811
  {
812
812
  to: {
813
- pathname: re(n || c(), t[0].path),
813
+ pathname: ae(n || c(), t[0].path),
814
814
  state: l
815
815
  }
816
816
  }
@@ -818,9 +818,9 @@ function us({ pages: t, onOrderChange: e, basePath: n, ...i }) {
818
818
  ] })
819
819
  ] });
820
820
  }
821
- const an = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMZJREFUeNpi/P//PwMtARMDjcHQt4ABGgchQPwKxMWBzwKxKFlmQy14g8dwGL5MqiXIFvynEgb5VJmWFoDwImQLWNB8pQ/EjyiM1j/IHHQLPgHxB3ok00dUCKpnuCzQAmJZKjh+Jy4L3KkUOjgtcKNG/gXi3cg5GRZuGkD8jQrhfwpmNroPbIGYkwo+2IErFXlQKfx3oRd2MK99oELwfIDlL+Qgegul+ang+u0ouRnqg0ACxTWx+CIQKyGbzThaJw+4BQABBgBH38BkTQm7ZwAAAABJRU5ErkJggg==", on = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwMtARMDjcHQt4ABFAfQeAgH4jcgIRy4gyxzkSzAZzjJlmCz4D+VMMih4TBzGWHJlJGRkZrp9S3QXBGwuTSyAOR6xtF8MGrBqAUDYMFbahYV5BTXlBV2o5E8YBYABBgAxQJ9mxTaZMQAAAAASUVORK5CYII=", ln = "data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20style='enable-background:new%200%200%2050%2050;'%20xml:space='preserve'%3e%3crect%20x='0'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='9'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.2s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='19'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.4s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3c/svg%3e", cn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjIwNDI3RTg2NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjIwNDI3RTg3NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MjA0MjdFODQ0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MjA0MjdFODU0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5FrZPxAAAA5UlEQVR42qzTvQ7BUBTA8UpEYraJWAwSNVgMHsDIZvUEngWDisTiBTyA4A3EJEiMYrBJGBBf/yO3UlVNq07y63Cbc3rvuaea9hkZ1LHAUZmrtYzmEhG0cMX9C3nXQdQpeeiSaDdSOa8wfCSbWmayjssPBSRHD/EoqzMtscEeN8SQQwVVhB361pRHDX1VYGf5whZjlJDHymEXclPaycN2e4hjYFs/eS0gJkiibVmT4z634bVxaxRQxBQzKdDw2X0Zpi7SSEiBbIBrTAUZJOOvoxz4Z7KGriZMBuuMg+p2U/XrLR4CDACHu7RW+98pzwAAAABJRU5ErkJggg==";
822
- var D = /* @__PURE__ */ ((t) => (t.ALL = "all", t.SOME = "some", t.NONE = "none", t))(D || {});
823
- const dn = ({ lastChild: t }) => /* @__PURE__ */ m("div", { className: "skeleton", children: [
821
+ const on = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMZJREFUeNpi/P//PwMtARMDjcHQt4ABGgchQPwKxMWBzwKxKFlmQy14g8dwGL5MqiXIFvynEgb5VJmWFoDwImQLWNB8pQ/EjyiM1j/IHHQLPgHxB3ok00dUCKpnuCzQAmJZKjh+Jy4L3KkUOjgtcKNG/gXi3cg5GRZuGkD8jQrhfwpmNroPbIGYkwo+2IErFXlQKfx3oRd2MK99oELwfIDlL+Qgegul+ang+u0ouRnqg0ACxTWx+CIQKyGbzThaJw+4BQABBgBH38BkTQm7ZwAAAABJRU5ErkJggg==", ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwMtARMDjcHQt4ABFAfQeAgH4jcgIRy4gyxzkSzAZzjJlmCz4D+VMMih4TBzGWHJlJGRkZrp9S3QXBGwuTSyAOR6xtF8MGrBqAUDYMFbahYV5BTXlBV2o5E8YBYABBgAxQJ9mxTaZMQAAAAASUVORK5CYII=", cn = "data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20style='enable-background:new%200%200%2050%2050;'%20xml:space='preserve'%3e%3crect%20x='0'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='9'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.2s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='19'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.4s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3c/svg%3e", dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjIwNDI3RTg2NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjIwNDI3RTg3NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MjA0MjdFODQ0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MjA0MjdFODU0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5FrZPxAAAA5UlEQVR42qzTvQ7BUBTA8UpEYraJWAwSNVgMHsDIZvUEngWDisTiBTyA4A3EJEiMYrBJGBBf/yO3UlVNq07y63Cbc3rvuaea9hkZ1LHAUZmrtYzmEhG0cMX9C3nXQdQpeeiSaDdSOa8wfCSbWmayjssPBSRHD/EoqzMtscEeN8SQQwVVhB361pRHDX1VYGf5whZjlJDHymEXclPaycN2e4hjYFs/eS0gJkiibVmT4z634bVxaxRQxBQzKdDw2X0Zpi7SSEiBbIBrTAUZJOOvoxz4Z7KGriZMBuuMg+p2U/XrLR4CDACHu7RW+98pzwAAAABJRU5ErkJggg==";
822
+ var L = /* @__PURE__ */ ((t) => (t.ALL = "all", t.SOME = "some", t.NONE = "none", t))(L || {});
823
+ const hn = ({ lastChild: t }) => /* @__PURE__ */ m("div", { className: "skeleton", children: [
824
824
  /* @__PURE__ */ a("div", { className: "skeleton-cell top" }),
825
825
  /* @__PURE__ */ a(
826
826
  "div",
@@ -831,18 +831,18 @@ const dn = ({ lastChild: t }) => /* @__PURE__ */ m("div", { className: "skeleton
831
831
  }
832
832
  }
833
833
  )
834
- ] }), hn = ({ node: t, leafNode: e, expanded: n, isLoading: i, onExpand: s }) => {
834
+ ] }), un = ({ node: t, leafNode: e, expanded: n, isLoading: i, onExpand: s }) => {
835
835
  let r;
836
- return e ? r = t.image || cn : i ? r = ln : n ? r = t.expandedImage || an : r = t.closedImage || on, /* @__PURE__ */ a("div", { className: "icon-container", children: /* @__PURE__ */ a("img", { src: r, alt: "node", onClick: s }) });
836
+ return e ? r = t.image || dn : i ? r = cn : n ? r = t.expandedImage || on : r = t.closedImage || ln, /* @__PURE__ */ a("div", { className: "icon-container", children: /* @__PURE__ */ a("img", { src: r, alt: "node", onClick: s }) });
837
837
  };
838
- class un extends W.PureComponent {
838
+ class pn extends $.PureComponent {
839
839
  constructor() {
840
840
  super(...arguments), this.onSelect = (e) => {
841
841
  const { onSelect: n, selectionState: i } = this.props;
842
- n(i === D.SOME ? !1 : e.currentTarget.checked);
842
+ n(i === L.SOME ? !1 : e.currentTarget.checked);
843
843
  }, this.onLabelClick = () => {
844
844
  const { onSelect: e, selectionState: n } = this.props;
845
- e(n === D.SOME ? !1 : this.inputRef ? !this.inputRef.checked : !1);
845
+ e(n === L.SOME ? !1 : this.inputRef ? !this.inputRef.checked : !1);
846
846
  };
847
847
  }
848
848
  componentDidMount() {
@@ -853,7 +853,7 @@ class un extends W.PureComponent {
853
853
  }
854
854
  updateSelectionState() {
855
855
  const { selectionState: e } = this.props;
856
- this.inputRef && (this.inputRef.indeterminate = e === D.SOME);
856
+ this.inputRef && (this.inputRef.indeterminate = e === L.SOME);
857
857
  }
858
858
  render() {
859
859
  const {
@@ -865,11 +865,11 @@ class un extends W.PureComponent {
865
865
  onExpand: o,
866
866
  selectionState: l,
867
867
  isLoading: c
868
- } = this.props, h = l === D.ALL;
868
+ } = this.props, h = l === L.ALL;
869
869
  return /* @__PURE__ */ m("div", { className: `node-info ${h ? "selected" : ""}`, children: [
870
- r !== void 0 && /* @__PURE__ */ a(dn, { lastChild: r }),
870
+ r !== void 0 && /* @__PURE__ */ a(hn, { lastChild: r }),
871
871
  /* @__PURE__ */ a(
872
- hn,
872
+ un,
873
873
  {
874
874
  node: e,
875
875
  leafNode: i,
@@ -885,7 +885,7 @@ class un extends W.PureComponent {
885
885
  this.inputRef = d;
886
886
  },
887
887
  type: "checkbox",
888
- checked: l === D.ALL,
888
+ checked: l === L.ALL,
889
889
  onChange: this.onSelect
890
890
  }
891
891
  ),
@@ -893,7 +893,7 @@ class un extends W.PureComponent {
893
893
  ] });
894
894
  }
895
895
  }
896
- class ge extends L {
896
+ class me extends V {
897
897
  constructor() {
898
898
  super(...arguments), this.state = {
899
899
  expanded: !1,
@@ -919,10 +919,10 @@ class ge extends L {
919
919
  }, this.onSelect = (e) => {
920
920
  const { node: n, selectNodes: i, deselectNodes: s, selectedNodes: r } = this.props;
921
921
  if (e) {
922
- const o = q(n).filter((l) => !r.includes(l.id));
922
+ const o = _(n).filter((l) => !r.includes(l.id));
923
923
  i(o);
924
924
  } else {
925
- const o = q(n).filter((l) => r.includes(l.id));
925
+ const o = _(n).filter((l) => r.includes(l.id));
926
926
  s(o);
927
927
  }
928
928
  };
@@ -955,17 +955,17 @@ class ge extends L {
955
955
  getSelectionState() {
956
956
  const { node: e, selectedNodes: n } = this.props;
957
957
  if (this.isLeaf())
958
- return n.includes(e.id) ? D.ALL : D.NONE;
958
+ return n.includes(e.id) ? L.ALL : L.NONE;
959
959
  {
960
- const i = Wt(e), s = Ut(i, n);
961
- return s.length === i.length && i.length !== 0 ? D.ALL : s.length === 0 ? D.NONE : D.SOME;
960
+ const i = zt(e), s = Wt(i, n);
961
+ return s.length === i.length && i.length !== 0 ? L.ALL : s.length === 0 ? L.NONE : L.SOME;
962
962
  }
963
963
  }
964
964
  render() {
965
965
  const { node: e, isLastChild: n, ...i } = this.props, { expanded: s, selectionState: r, isLoading: o } = this.state;
966
966
  return /* @__PURE__ */ m("div", { className: "node", children: [
967
967
  /* @__PURE__ */ a(
968
- un,
968
+ pn,
969
969
  {
970
970
  node: e,
971
971
  displayName: e.name,
@@ -978,8 +978,8 @@ class ge extends L {
978
978
  selectionState: r
979
979
  }
980
980
  ),
981
- s && e.children && e.children.map((l, c) => /* @__PURE__ */ Fe(
982
- ge,
981
+ s && e.children && e.children.map((l, c) => /* @__PURE__ */ Be(
982
+ me,
983
983
  {
984
984
  ...i,
985
985
  key: c,
@@ -990,7 +990,7 @@ class ge extends L {
990
990
  ] });
991
991
  }
992
992
  }
993
- class ps extends L {
993
+ class fs extends V {
994
994
  constructor() {
995
995
  super(...arguments), this.state = {
996
996
  treeData: this.props.treeData,
@@ -1003,10 +1003,10 @@ class ps extends L {
1003
1003
  },
1004
1004
  treeSize: 0,
1005
1005
  selectedNodes: this.props.selectedNodes || []
1006
- }, this.convert = zt(this.props.dataSetConfig), this.selectNodes = (e) => {
1006
+ }, this.convert = Qt(this.props.dataSetConfig), this.selectNodes = (e) => {
1007
1007
  const { onSelect: n } = this.props, { selectedNodes: i } = this.state;
1008
1008
  this.setState({
1009
- selectedNodes: Zt(
1009
+ selectedNodes: Ut(
1010
1010
  i,
1011
1011
  e.map(({ id: s }) => s)
1012
1012
  )
@@ -1014,7 +1014,7 @@ class ps extends L {
1014
1014
  }, this.deselectNodes = (e) => {
1015
1015
  const { onDeselect: n } = this.props, { selectedNodes: i } = this.state;
1016
1016
  this.setState({
1017
- selectedNodes: Yt(
1017
+ selectedNodes: Zt(
1018
1018
  i,
1019
1019
  e.map(({ id: s }) => s)
1020
1020
  )
@@ -1024,14 +1024,14 @@ class ps extends L {
1024
1024
  id: "virtualRootNode",
1025
1025
  name: "",
1026
1026
  children: (i.children || []).map(
1027
- (l) => $e(l, n.id, {
1027
+ (l) => Ke(l, n.id, {
1028
1028
  lazyLoadable: !1,
1029
1029
  children: s
1030
1030
  })
1031
1031
  ),
1032
1032
  path: "/",
1033
1033
  originalNode: {}
1034
- }, o = oe(r);
1034
+ }, o = le(r);
1035
1035
  this.setState({
1036
1036
  tree: r,
1037
1037
  treeSize: o
@@ -1044,7 +1044,7 @@ class ps extends L {
1044
1044
  };
1045
1045
  }
1046
1046
  componentDidMount() {
1047
- const { treeData: e } = this.props, n = this.initTree(e), i = oe(n);
1047
+ const { treeData: e } = this.props, n = this.initTree(e), i = le(n);
1048
1048
  this.setState({
1049
1049
  tree: n,
1050
1050
  treeSize: i
@@ -1068,7 +1068,7 @@ class ps extends L {
1068
1068
  render() {
1069
1069
  const { tree: e, selectedNodes: n, treeSize: i } = this.state;
1070
1070
  return /* @__PURE__ */ a("div", { className: "treeview", children: e.children && e.children.map((s, r) => /* @__PURE__ */ a(
1071
- ge,
1071
+ me,
1072
1072
  {
1073
1073
  node: s,
1074
1074
  selectedNodes: n,
@@ -1081,32 +1081,32 @@ class ps extends L {
1081
1081
  )) });
1082
1082
  }
1083
1083
  }
1084
- const pn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='7.5'%20cy='3.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='11.5'%20r='1.5'/%3e%3c/svg%3e", _e = W.createContext({
1084
+ const fn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='7.5'%20cy='3.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='11.5'%20r='1.5'/%3e%3c/svg%3e", tt = $.createContext({
1085
1085
  toggleMenu: () => {
1086
1086
  }
1087
1087
  });
1088
- function fn({ menuButton: t, children: e, direction: n, className: i, open: s, onOpenChange: r }) {
1088
+ function gn({ menuButton: t, children: e, direction: n, className: i, open: s, onOpenChange: r }) {
1089
1089
  const [o, l] = N(!1), c = () => {
1090
1090
  l(!o);
1091
1091
  };
1092
1092
  return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
1093
- ee,
1093
+ te,
1094
1094
  {
1095
1095
  open: s ?? o,
1096
1096
  onOpenChange: r ?? l,
1097
1097
  handler: t,
1098
1098
  placement: n,
1099
1099
  className: i,
1100
- children: /* @__PURE__ */ a("div", { className: "di multimenu", children: /* @__PURE__ */ a("div", { className: `drop ${n || "bottom"} ${o ? "show" : ""}`, children: /* @__PURE__ */ a(_e.Provider, { value: { toggleMenu: c }, children: e }) }) })
1100
+ children: /* @__PURE__ */ a("div", { className: "di multimenu", children: /* @__PURE__ */ a("div", { className: `drop ${n || "bottom"} ${o ? "show" : ""}`, children: /* @__PURE__ */ a(tt.Provider, { value: { toggleMenu: c }, children: e }) }) })
1101
1101
  }
1102
1102
  ) });
1103
1103
  }
1104
- const gn = [5, 10, 15, 20, 50];
1105
- function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s }) {
1106
- const r = O(null), { current: o } = r, [l, c] = N(`${e + 1}`), [h, d] = N(!1);
1107
- k(() => {
1108
- r.current = Ye(t, 500);
1109
- }, [t]), k(() => {
1104
+ const mn = [5, 10, 15, 20, 50];
1105
+ function vn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s }) {
1106
+ const r = D(null), { current: o } = r, [l, c] = N(`${e + 1}`), [h, d] = N(!1);
1107
+ R(() => {
1108
+ r.current = Ue(t, 500);
1109
+ }, [t]), R(() => {
1110
1110
  c(`${e + 1}`);
1111
1111
  }, [e]);
1112
1112
  function u() {
@@ -1123,18 +1123,18 @@ function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s
1123
1123
  }
1124
1124
  function v(x) {
1125
1125
  if (i) {
1126
- const M = parseInt(x.target.value, 10);
1127
- i(M), d(!1);
1126
+ const k = parseInt(x.target.value, 10);
1127
+ i(k), d(!1);
1128
1128
  }
1129
1129
  }
1130
1130
  function w(x) {
1131
- const M = x.target.value;
1132
- if (M.trim() === "") {
1133
- c(M);
1131
+ const k = x.target.value;
1132
+ if (k.trim() === "") {
1133
+ c(k);
1134
1134
  return;
1135
1135
  }
1136
1136
  const I = Number(x.target.value);
1137
- !Number.isNaN(I) && I >= 1 && I <= n && (o?.(I - 1), c(M));
1137
+ !Number.isNaN(I) && I >= 1 && I <= n && (o?.(I - 1), c(k));
1138
1138
  }
1139
1139
  function y() {
1140
1140
  c(`${e + 1}`);
@@ -1146,7 +1146,7 @@ function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s
1146
1146
  /* @__PURE__ */ m("span", { className: "info", children: [
1147
1147
  /* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.page", children: "Page" }),
1148
1148
  /* @__PURE__ */ a("input", { value: l, onChange: w, onBlur: y }),
1149
- typeof process < "u" && process?.env?.STORYBOOK_MODE ? /* @__PURE__ */ m(Le, { children: [
1149
+ typeof process < "u" && process?.env?.STORYBOOK_MODE ? /* @__PURE__ */ m(Ve, { children: [
1150
1150
  "of   ",
1151
1151
  n
1152
1152
  ] }) : /* @__PURE__ */ m(A, { i18nKey: "reactable.pagination.ofTotal", children: [
@@ -1157,20 +1157,20 @@ function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s
1157
1157
  /* @__PURE__ */ a("span", { className: `next ${C ? "disabled" : ""}`, onClick: p, children: "›" }),
1158
1158
  /* @__PURE__ */ a("span", { className: `next ${C ? "disabled" : ""}`, onClick: g, children: "»" }),
1159
1159
  i && /* @__PURE__ */ a("div", { className: "options", children: /* @__PURE__ */ a(
1160
- fn,
1160
+ gn,
1161
1161
  {
1162
1162
  direction: "left",
1163
1163
  open: h,
1164
1164
  onOpenChange: d,
1165
1165
  menuButton: /* @__PURE__ */ a(
1166
- V,
1166
+ F,
1167
1167
  {
1168
1168
  naked: !0,
1169
1169
  title: {
1170
1170
  id: "trend.settings.buttonTitle",
1171
1171
  defaultValue: "Settings"
1172
1172
  },
1173
- children: /* @__PURE__ */ a("img", { src: pn, alt: "settings icon", style: { width: 16, height: 16 } })
1173
+ children: /* @__PURE__ */ a("img", { src: fn, alt: "settings icon", style: { width: 16, height: 16 } })
1174
1174
  }
1175
1175
  ),
1176
1176
  children: /* @__PURE__ */ m(
@@ -1184,7 +1184,7 @@ function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s
1184
1184
  children: [
1185
1185
  /* @__PURE__ */ m("div", { className: "field", children: [
1186
1186
  /* @__PURE__ */ a("label", { children: /* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.entriesPerPage", children: "Entries per page" }) }),
1187
- /* @__PURE__ */ a("select", { onChange: v, value: s, children: gn.map((x) => /* @__PURE__ */ a("option", { value: x, children: x }, x)) })
1187
+ /* @__PURE__ */ a("select", { onChange: v, value: s, children: mn.map((x) => /* @__PURE__ */ a("option", { value: x, children: x }, x)) })
1188
1188
  ] }),
1189
1189
  /* @__PURE__ */ a("p", { children: /* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.changePageWillBeStored", children: "Your changes will be stored for view." }) })
1190
1190
  ]
@@ -1194,7 +1194,24 @@ function mn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s
1194
1194
  ) })
1195
1195
  ] }) });
1196
1196
  }
1197
- function vn(t, e, n) {
1197
+ const yn = (t) => t.filterable?.initialValue ?? "", bn = ({ columnDef: t, changeFilter: e }) => {
1198
+ const { t: n } = B(), [i, s] = N(yn(t)), r = (o) => {
1199
+ const l = o.target.value;
1200
+ s(l), e(t.name, l);
1201
+ };
1202
+ return /* @__PURE__ */ a(
1203
+ "input",
1204
+ {
1205
+ type: "text",
1206
+ placeholder: n(`${t.filterable?.placeholder ?? "reactable.filter.placeholder"}`, {
1207
+ defaultValue: "Filter..."
1208
+ }),
1209
+ onChange: r,
1210
+ value: i
1211
+ }
1212
+ );
1213
+ };
1214
+ function Sn(t, e, n) {
1198
1215
  if (!t)
1199
1216
  return null;
1200
1217
  const { page: i, size: s, sort: r } = e;
@@ -1207,18 +1224,18 @@ function vn(t, e, n) {
1207
1224
  sort: [r]
1208
1225
  };
1209
1226
  }
1210
- const yn = (t, e) => t === "text" ? (n, i) => n[e] && n[e].toString().toLowerCase().includes(i.toLowerCase()) : (n, i) => n[e] === i;
1211
- function Ie(t, e, n) {
1227
+ const wn = (t, e) => t === "text" ? (n, i) => n[e] && n[e].toString().toLowerCase().includes(i.toLowerCase()) : (n, i) => n[e] === i;
1228
+ function Re(t, e, n) {
1212
1229
  return t ? t.filter((i) => Object.keys(n).every((s) => {
1213
1230
  const r = n[s];
1214
1231
  if (r && r.length > 0) {
1215
- const o = bn(s, e);
1216
- return o.filterable ? (o.filterable.filterFn || yn(o.filterable.filterType, o.name))(i, r) : !1;
1232
+ const o = Cn(s, e);
1233
+ return o.filterable ? (o.filterable.filterFn || wn(o.filterable.filterType, o.name))(i, r) : !1;
1217
1234
  }
1218
1235
  return !0;
1219
1236
  })) : null;
1220
1237
  }
1221
- function bn(t, e) {
1238
+ function Cn(t, e) {
1222
1239
  const n = e.find((i) => i.name === t);
1223
1240
  if (!n)
1224
1241
  throw Error(`column definition not found for ${t}`);
@@ -1230,12 +1247,12 @@ function ke(t, e) {
1230
1247
  return s === r ? 0 : typeof s == "string" && typeof r == "string" ? s.localeCompare(r) * o : typeof s == "number" && typeof r == "number" ? (s - r) * o : s.toString().localeCompare(r.toString()) * o;
1231
1248
  });
1232
1249
  }
1233
- function Sn(t, e, n, i, s, r) {
1250
+ function An(t, e, n, i, s, r) {
1234
1251
  return [
1235
1252
  {
1236
1253
  name: "checkbox",
1237
1254
  label: /* @__PURE__ */ a(
1238
- be,
1255
+ Se,
1239
1256
  {
1240
1257
  value: i,
1241
1258
  onChange: n,
@@ -1247,7 +1264,7 @@ function Sn(t, e, n, i, s, r) {
1247
1264
  ),
1248
1265
  sortable: !1,
1249
1266
  render: (o) => /* @__PURE__ */ a(
1250
- be,
1267
+ Se,
1251
1268
  {
1252
1269
  value: s.includes(r(o)),
1253
1270
  onChange: (l) => e(l, o)
@@ -1258,122 +1275,25 @@ function Sn(t, e, n, i, s, r) {
1258
1275
  ...t
1259
1276
  ];
1260
1277
  }
1261
- function me(t, e) {
1278
+ function ve(t, e) {
1262
1279
  return `${t || "unnamedTable"}-${e}`;
1263
1280
  }
1264
- class wn extends L {
1265
- constructor() {
1266
- super(...arguments), this.getRowClass = () => {
1267
- const { rowDef: e, item: n } = this.props;
1268
- return e && typeof e.getRowClass == "function" ? e.getRowClass(n) : "";
1269
- }, this.handleClick = () => {
1270
- const { rowDef: e, item: n } = this.props;
1271
- e && typeof e.onClick == "function" && e.onClick(n);
1272
- }, this.getTooltip = () => {
1273
- const { rowDef: e, item: n } = this.props;
1274
- return e && typeof e.getTooltip == "function" ? e.getTooltip(n) : "";
1275
- }, this.getRowStyle = () => {
1276
- const { rowDef: e, item: n } = this.props;
1277
- if (e && e.getRowStyle)
1278
- return e.getRowStyle(n);
1279
- };
1280
- }
1281
- render() {
1282
- const { columnDefs: e, item: n, tableName: i } = this.props;
1283
- return /* @__PURE__ */ a(
1284
- "tr",
1285
- {
1286
- className: this.getRowClass(),
1287
- onClick: this.handleClick,
1288
- title: this.getTooltip(),
1289
- style: this.getRowStyle(),
1290
- children: e.map((s) => {
1291
- const r = s.align || "left", o = s.onClick ? "pointer" : "inherit", l = s.whiteSpace || void 0, c = s.onClick ? () => s.onClick ? s.onClick(n) : void 0 : void 0;
1292
- return /* @__PURE__ */ a(
1293
- "td",
1294
- {
1295
- style: {
1296
- textAlign: r,
1297
- cursor: o,
1298
- // @ts-ignore
1299
- whiteSpace: l
1300
- },
1301
- onClick: c,
1302
- className: me(i, s.name),
1303
- children: s.render(n)
1304
- },
1305
- `${n.id}_${s.name}`
1306
- );
1307
- })
1308
- }
1309
- );
1310
- }
1311
- }
1312
- const Cn = (t) => t === "ASC" ? "DESC" : "ASC";
1313
- class An extends L {
1314
- constructor() {
1315
- super(...arguments), this.handleSort = (e) => {
1316
- const { paginationSettings: n, onSort: i } = this.props, s = e.name === n.sort.property ? Cn(n.sort.direction) : e.defaultSortDirection || "ASC";
1317
- i(e.name, s);
1318
- }, this.getClassName = (e) => {
1319
- const { paginationSettings: n, tableName: i } = this.props, s = me(i, e.name);
1320
- return e.sortable ? e.name === n.sort.property ? n.sort.direction === "ASC" ? `${s} sortable sortAsc` : `${s} sortable sortDes` : `${s} sortable` : `${s}`;
1321
- }, this.printLabel = (e) => Nn(e) ? /* @__PURE__ */ a(A, { i18nKey: e.id, children: e.defaultValue }) : e;
1322
- }
1323
- render() {
1324
- return /* @__PURE__ */ a("tr", { children: this.props.columnDefs.map((e) => /* @__PURE__ */ a(
1325
- "th",
1326
- {
1327
- style: {
1328
- width: e.width || "auto",
1329
- textAlign: e.align || "left"
1330
- },
1331
- className: this.getClassName(e),
1332
- onClick: () => {
1333
- e.sortable && this.handleSort(e);
1334
- },
1335
- children: this.printLabel(e.label)
1336
- },
1337
- e.name
1338
- )) });
1339
- }
1340
- }
1341
- function Nn(t) {
1342
- return typeof t == "object" && t != null && "id" in t && t.id !== void 0;
1343
- }
1344
- const xn = (t) => t.filterable?.initialValue ?? "", In = ({ columnDef: t, changeFilter: e }) => {
1345
- const { t: n } = F(), [i, s] = N(xn(t)), r = (o) => {
1346
- const l = o.target.value;
1347
- s(l), e(t.name, l);
1348
- };
1349
- return /* @__PURE__ */ a(
1350
- "input",
1351
- {
1352
- type: "text",
1353
- placeholder: n(`${t.filterable?.placeholder ?? "reactable.filter.placeholder"}`, {
1354
- defaultValue: "Filter..."
1355
- }),
1356
- onChange: r,
1357
- value: i
1358
- }
1359
- );
1360
- };
1361
- function kn(t, e) {
1281
+ function Nn(t, e) {
1362
1282
  if (!e)
1363
- return yt(t, "label", "asc");
1283
+ return bt(t, "label", "asc");
1364
1284
  if (t.every((n) => !n.options))
1365
1285
  return [...t].sort(e);
1366
1286
  if (t.every((n) => n.options))
1367
1287
  return t.map((i) => ({ ...i, options: [...i.options].sort(e) }));
1368
1288
  throw new Error("Mixing groups with single options not allowed");
1369
1289
  }
1370
- class Mn extends L {
1290
+ class xn extends V {
1371
1291
  constructor() {
1372
1292
  super(...arguments), this.state = {
1373
1293
  options: [],
1374
1294
  inputValue: null
1375
- }, this.selectRef = ht(), this.portalRoot = null, this.updateOptions = () => {
1376
- const { options: e, specialOptions: n, compareOptions: i } = this.props, s = kn(e, i);
1295
+ }, this.selectRef = je(), this.portalRoot = null, this.updateOptions = () => {
1296
+ const { options: e, specialOptions: n, compareOptions: i } = this.props, s = Nn(e, i);
1377
1297
  n ? this.setState({
1378
1298
  // @ts-ignore
1379
1299
  options: [...s, ...n]
@@ -1393,7 +1313,7 @@ class Mn extends L {
1393
1313
  }
1394
1314
  }
1395
1315
  componentDidUpdate(e) {
1396
- (!Z(e.options, this.props.options) || e.freeForm !== this.props.freeForm) && this.updateOptions();
1316
+ (!z(e.options, this.props.options) || e.freeForm !== this.props.freeForm) && this.updateOptions();
1397
1317
  }
1398
1318
  componentWillUnmount() {
1399
1319
  this.props.menuPortalTarget && this.portalRoot && this.props.menuPortalTarget.removeChild(this.portalRoot);
@@ -1401,7 +1321,7 @@ class Mn extends L {
1401
1321
  render() {
1402
1322
  const { noResultsMessage: e, placeholder: n, value: i, onChange: s, clearable: r, loading: o, disabled: l } = this.props, { options: c } = this.state;
1403
1323
  return /* @__PURE__ */ a(
1404
- Ot,
1324
+ Lt,
1405
1325
  {
1406
1326
  ref: this.selectRef,
1407
1327
  joinValues: !0,
@@ -1439,11 +1359,11 @@ class Mn extends L {
1439
1359
  );
1440
1360
  }
1441
1361
  }
1442
- const Rn = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1443
- const { t: i } = F(), [s, r] = N({}), o = O(e);
1444
- k(() => {
1362
+ const In = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1363
+ const { t: i } = B(), [s, r] = N({}), o = D(e);
1364
+ R(() => {
1445
1365
  o.current = e;
1446
- }, [e]), k(() => {
1366
+ }, [e]), R(() => {
1447
1367
  r((u) => {
1448
1368
  const f = {};
1449
1369
  for (const y of t)
@@ -1466,7 +1386,7 @@ const Rn = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1466
1386
  throw new Error(`Filter type ${u.filterable.filterType} not supported`);
1467
1387
  }
1468
1388
  return null;
1469
- }, h = (u) => /* @__PURE__ */ a(In, { columnDef: u, changeFilter: l }), d = (u) => {
1389
+ }, h = (u) => /* @__PURE__ */ a(bn, { columnDef: u, changeFilter: l }), d = (u) => {
1470
1390
  if (!u.filterable?.filterOptions)
1471
1391
  throw new Error(`No filterOptions found for column type: options on columnDef: ${u.name}`);
1472
1392
  const f = u.filterable.filterOptions;
@@ -1477,7 +1397,7 @@ const Rn = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1477
1397
  value: v.value
1478
1398
  })), g = s[u.name];
1479
1399
  return /* @__PURE__ */ a(
1480
- Mn,
1400
+ xn,
1481
1401
  {
1482
1402
  options: p,
1483
1403
  onChange: (v) => {
@@ -1502,7 +1422,7 @@ const Rn = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1502
1422
  f.map((p) => /* @__PURE__ */ a(
1503
1423
  "option",
1504
1424
  {
1505
- className: me(n, u.name),
1425
+ className: ve(n, u.name),
1506
1426
  value: p.value,
1507
1427
  children: typeof p.label == "string" ? p.label : i(p.label.id, { defaultValue: p.label.defaultValue })
1508
1428
  },
@@ -1513,8 +1433,87 @@ const Rn = ({ columnDefs: t, onFilter: e, tableName: n }) => {
1513
1433
  );
1514
1434
  };
1515
1435
  return /* @__PURE__ */ a("tr", { className: "di filterrow form", children: t.map((u) => /* @__PURE__ */ a("td", { style: { textAlign: u.align || "left" }, children: c(u) }, u.name)) });
1516
- };
1517
- function Tn({
1436
+ }, Rn = (t) => t === "ASC" ? "DESC" : "ASC";
1437
+ class kn extends V {
1438
+ constructor() {
1439
+ super(...arguments), this.handleSort = (e) => {
1440
+ const { paginationSettings: n, onSort: i } = this.props, s = e.name === n.sort.property ? Rn(n.sort.direction) : e.defaultSortDirection || "ASC";
1441
+ i(e.name, s);
1442
+ }, this.getClassName = (e) => {
1443
+ const { paginationSettings: n, tableName: i } = this.props, s = ve(i, e.name);
1444
+ return e.sortable ? e.name === n.sort.property ? n.sort.direction === "ASC" ? `${s} sortable sortAsc` : `${s} sortable sortDes` : `${s} sortable` : `${s}`;
1445
+ }, this.printLabel = (e) => Mn(e) ? /* @__PURE__ */ a(A, { i18nKey: e.id, children: e.defaultValue }) : e;
1446
+ }
1447
+ render() {
1448
+ return /* @__PURE__ */ a("tr", { children: this.props.columnDefs.map((e) => /* @__PURE__ */ a(
1449
+ "th",
1450
+ {
1451
+ style: {
1452
+ width: e.width || "auto",
1453
+ textAlign: e.align || "left"
1454
+ },
1455
+ className: this.getClassName(e),
1456
+ onClick: () => {
1457
+ e.sortable && this.handleSort(e);
1458
+ },
1459
+ children: this.printLabel(e.label)
1460
+ },
1461
+ e.name
1462
+ )) });
1463
+ }
1464
+ }
1465
+ function Mn(t) {
1466
+ return typeof t == "object" && t != null && "id" in t && t.id !== void 0;
1467
+ }
1468
+ class Tn extends V {
1469
+ constructor() {
1470
+ super(...arguments), this.getRowClass = () => {
1471
+ const { rowDef: e, item: n } = this.props;
1472
+ return e && typeof e.getRowClass == "function" ? e.getRowClass(n) : "";
1473
+ }, this.handleClick = () => {
1474
+ const { rowDef: e, item: n } = this.props;
1475
+ e && typeof e.onClick == "function" && e.onClick(n);
1476
+ }, this.getTooltip = () => {
1477
+ const { rowDef: e, item: n } = this.props;
1478
+ return e && typeof e.getTooltip == "function" ? e.getTooltip(n) : "";
1479
+ }, this.getRowStyle = () => {
1480
+ const { rowDef: e, item: n } = this.props;
1481
+ if (e && e.getRowStyle)
1482
+ return e.getRowStyle(n);
1483
+ };
1484
+ }
1485
+ render() {
1486
+ const { columnDefs: e, item: n, tableName: i } = this.props;
1487
+ return /* @__PURE__ */ a(
1488
+ "tr",
1489
+ {
1490
+ className: this.getRowClass(),
1491
+ onClick: this.handleClick,
1492
+ title: this.getTooltip(),
1493
+ style: this.getRowStyle(),
1494
+ children: e.map((s) => {
1495
+ const r = s.align || "left", o = s.onClick ? "pointer" : "inherit", l = s.whiteSpace || void 0, c = s.onClick ? () => s.onClick ? s.onClick(n) : void 0 : void 0;
1496
+ return /* @__PURE__ */ a(
1497
+ "td",
1498
+ {
1499
+ style: {
1500
+ textAlign: r,
1501
+ cursor: o,
1502
+ // @ts-ignore
1503
+ whiteSpace: l
1504
+ },
1505
+ onClick: c,
1506
+ className: ve(i, s.name),
1507
+ children: s.render(n)
1508
+ },
1509
+ `${n.id}_${s.name}`
1510
+ );
1511
+ })
1512
+ }
1513
+ );
1514
+ }
1515
+ }
1516
+ function On({
1518
1517
  columnDefs: t,
1519
1518
  uniqueItemKey: e,
1520
1519
  paginationSettings: n,
@@ -1528,48 +1527,53 @@ function Tn({
1528
1527
  messageWhenEmpty: d,
1529
1528
  "data-testid": u
1530
1529
  }) {
1531
- const f = O(null), p = O(null), [g, v] = N(!1), [w, y] = N(!0), [C, x] = N(!1), M = "uiConfigurations/nevershowscrollingadvice", I = O(w);
1532
- k(() => {
1533
- I.current = w;
1530
+ const f = D(null), p = D(null), [g, v] = N(!1), [w, y] = N(!0), [C, x] = N(!1), k = "uiConfigurations/nevershowscrollingadvice", I = "reactable.neverShowScrollingAdvice", M = D(w);
1531
+ R(() => {
1532
+ M.current = w;
1534
1533
  }, [w]);
1535
- const R = () => {
1534
+ const E = () => {
1536
1535
  f.current && p.current && v(
1537
- !I.current && p.current.scrollWidth > f.current.offsetWidth
1536
+ !M.current && p.current.scrollWidth > f.current.offsetWidth
1538
1537
  );
1539
1538
  };
1540
- k(() => {
1539
+ R(() => {
1541
1540
  setTimeout(() => {
1542
1541
  (async () => {
1542
+ const T = localStorage.getItem(I), Y = T !== null;
1543
1543
  try {
1544
- const E = await Et(M) === !0;
1545
- y(E), I.current = E, E || R();
1544
+ const j = await Et(k) === !0;
1545
+ y(j), M.current = j, localStorage.setItem(I, String(j)), j || E();
1546
1546
  } catch {
1547
- y(!1), I.current = !1, R();
1547
+ if (Y) {
1548
+ const j = T === "true";
1549
+ y(j), M.current = j, j || E();
1550
+ } else
1551
+ y(!1), M.current = !1, E();
1548
1552
  }
1549
1553
  x(!0);
1550
1554
  })();
1551
1555
  }, 0);
1552
- }, []), k(() => (R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R)), [o, t]);
1553
- const H = t.some((b) => b.filterable);
1554
- return /* @__PURE__ */ a(ut, { show: l, children: /* @__PURE__ */ m("div", { ref: f, className: "di reactable scroll-x", children: [
1556
+ }, []), R(() => (E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E)), [o, t]);
1557
+ const S = t.some((T) => T.filterable);
1558
+ return /* @__PURE__ */ a(pt, { show: l, children: /* @__PURE__ */ m("div", { ref: f, className: "di reactable scroll-x", children: [
1555
1559
  C && g && !l && /* @__PURE__ */ a(
1556
- Be,
1560
+ He,
1557
1561
  {
1558
1562
  className: "scroll-horizontally-advice",
1559
1563
  content: /* @__PURE__ */ m("div", { children: [
1560
1564
  /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.advice", children: "SHIFT + mouse wheel to scroll horizontally" }),
1561
1565
  /* @__PURE__ */ m("div", { className: "scroll-horizontally-advice-buttons", children: [
1562
1566
  /* @__PURE__ */ a(
1563
- V,
1567
+ F,
1564
1568
  {
1565
1569
  primary: !0,
1566
1570
  onClick: async () => {
1567
- await Dt(M, !0), y(!0), I.current = !0, v(!1);
1571
+ await Dt(k, !0), localStorage.setItem(I, "true"), y(!0), M.current = !0, v(!1);
1568
1572
  },
1569
1573
  children: /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.neverShowAgain", children: "Never show again" })
1570
1574
  }
1571
1575
  ),
1572
- /* @__PURE__ */ a(V, { onClick: () => v(!1), children: /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.ok", children: "OK" }) })
1576
+ /* @__PURE__ */ a(F, { onClick: () => v(!1), children: /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.ok", children: "OK" }) })
1573
1577
  ] })
1574
1578
  ] }),
1575
1579
  width: "40%"
@@ -1583,7 +1587,7 @@ function Tn({
1583
1587
  "data-testid": u,
1584
1588
  children: [
1585
1589
  /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a(
1586
- An,
1590
+ kn,
1587
1591
  {
1588
1592
  columnDefs: t,
1589
1593
  paginationSettings: n,
@@ -1592,23 +1596,23 @@ function Tn({
1592
1596
  }
1593
1597
  ) }),
1594
1598
  /* @__PURE__ */ m("tbody", { children: [
1595
- s && H && /* @__PURE__ */ a(
1596
- Rn,
1599
+ s && S && /* @__PURE__ */ a(
1600
+ In,
1597
1601
  {
1598
1602
  columnDefs: t,
1599
1603
  onFilter: s,
1600
1604
  tableName: r
1601
1605
  }
1602
1606
  ),
1603
- o?.content.length ? o.content.slice(0, n.size).map((b) => /* @__PURE__ */ a(
1604
- wn,
1607
+ o?.content.length ? o.content.slice(0, n.size).map((T) => /* @__PURE__ */ a(
1608
+ Tn,
1605
1609
  {
1606
1610
  columnDefs: t,
1607
- item: b,
1611
+ item: T,
1608
1612
  rowDef: c,
1609
1613
  tableName: r
1610
1614
  },
1611
- e(b)
1615
+ e(T)
1612
1616
  )) : !l && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: t.length, children: /* @__PURE__ */ a(A, { i18nKey: d ?? "reactable.noEntriesFound", children: "No entries found" }) }) })
1613
1617
  ] })
1614
1618
  ]
@@ -1616,7 +1620,7 @@ function Tn({
1616
1620
  )
1617
1621
  ] }) });
1618
1622
  }
1619
- class On extends L {
1623
+ class En extends V {
1620
1624
  componentDidUpdate() {
1621
1625
  const { pageable: e, paginationSettings: n, onChangePage: i } = this.props;
1622
1626
  if (!e)
@@ -1627,9 +1631,9 @@ class On extends L {
1627
1631
  render() {
1628
1632
  const { paginationSettings: e, pageable: n, onChangePage: i, onChangeSize: s } = this.props, r = s ? n && n.totalElements > 0 : n && n.totalPages > 1;
1629
1633
  return /* @__PURE__ */ m("div", { children: [
1630
- /* @__PURE__ */ a(Tn, { ...this.props }),
1634
+ /* @__PURE__ */ a(On, { ...this.props }),
1631
1635
  n && r && /* @__PURE__ */ a(
1632
- mn,
1636
+ vn,
1633
1637
  {
1634
1638
  page: e.page,
1635
1639
  totalPages: n.totalPages,
@@ -1649,7 +1653,7 @@ const Me = {
1649
1653
  direction: "DESC"
1650
1654
  }
1651
1655
  };
1652
- class fs extends L {
1656
+ class gs extends V {
1653
1657
  constructor(e) {
1654
1658
  super(e), this.content = [], this.calculatePageNumber = (i, s) => {
1655
1659
  const { forceResetPaginationOnItemsChange: r } = this.props;
@@ -1682,15 +1686,15 @@ class fs extends L {
1682
1686
  },
1683
1687
  () => {
1684
1688
  r && r(i);
1685
- const c = Ie(s, o, i);
1689
+ const c = Re(s, o, i);
1686
1690
  this.setState({
1687
1691
  filteredItems: c
1688
1692
  }), c && l?.(c);
1689
1693
  }
1690
1694
  );
1691
1695
  }, this.getPageable = () => {
1692
- const { customSortFunction: i, items: s, columnDefs: r, onContentChange: o } = this.props, { filterSettings: l, paginationSettings: c } = this.state, h = Ie(s, r, l), d = vn(h, c, i);
1693
- return d && d.content && !Z(d.content, this.content) && (this.content = d.content, o && o(this.content)), d;
1696
+ const { customSortFunction: i, items: s, columnDefs: r, onContentChange: o } = this.props, { filterSettings: l, paginationSettings: c } = this.state, h = Re(s, r, l), d = Sn(h, c, i);
1697
+ return d && d.content && !z(d.content, this.content) && (this.content = d.content, o && o(this.content)), d;
1694
1698
  }, this.handleSelectChange = (i, s) => {
1695
1699
  const { onSelectedItemsChange: r, selectedItems: o = [], uniqueItemKey: l } = this.props;
1696
1700
  if (r)
@@ -1703,7 +1707,7 @@ class fs extends L {
1703
1707
  console.warn("ReactableWithClientSidePagination: onSelectedItemsChange property is missing");
1704
1708
  }, this.handleSelectAllChange = (i) => {
1705
1709
  const { onSelectedItemsChange: s, items: r, selectedItems: o = [], uniqueItemKey: l } = this.props, { filteredItems: c } = this.state, h = (c || r || []).map(l);
1706
- s ? s(i ? bt([...o, ...h], Z).sort() : St(o, h)) : console.warn("ReactableWithClientSidePagination: onSelectedItemsChange property is missing");
1710
+ s ? s(i ? St([...o, ...h], z).sort() : wt(o, h)) : console.warn("ReactableWithClientSidePagination: onSelectedItemsChange property is missing");
1707
1711
  }, this.areSelectedAll = () => {
1708
1712
  const { items: i, selectedItems: s, uniqueItemKey: r } = this.props, { filteredItems: o } = this.state;
1709
1713
  return !!s && (o || i || []).every((c) => s.some((h) => h === r(c)));
@@ -1717,7 +1721,7 @@ class fs extends L {
1717
1721
  }
1718
1722
  componentDidUpdate(e) {
1719
1723
  const { items: n } = this.props, { items: i } = e, s = this.props.paginationSettings || this.props.initialPaginationSettings, r = e.paginationSettings || e.initialPaginationSettings;
1720
- n && i && n.length !== i.length && this.calculatePageNumber(n, this.state.paginationSettings), s && !Z(s, r) && this.setState(
1724
+ n && i && n.length !== i.length && this.calculatePageNumber(n, this.state.paginationSettings), s && !z(s, r) && this.setState(
1721
1725
  {
1722
1726
  paginationSettings: s
1723
1727
  },
@@ -1735,7 +1739,7 @@ class fs extends L {
1735
1739
  selectable: l,
1736
1740
  selectedItems: c,
1737
1741
  onChangeSize: h
1738
- } = this.props, d = l ? Sn(
1742
+ } = this.props, d = l ? An(
1739
1743
  i,
1740
1744
  this.handleSelectChange,
1741
1745
  this.handleSelectAllChange,
@@ -1744,7 +1748,7 @@ class fs extends L {
1744
1748
  e
1745
1749
  ) : i;
1746
1750
  return /* @__PURE__ */ a(
1747
- On,
1751
+ En,
1748
1752
  {
1749
1753
  columnDefs: d,
1750
1754
  rowDef: s,
@@ -1763,7 +1767,7 @@ class fs extends L {
1763
1767
  );
1764
1768
  }
1765
1769
  }
1766
- const Y = class Y extends W.Component {
1770
+ const W = class W extends $.Component {
1767
1771
  constructor() {
1768
1772
  super(...arguments), this.state = {
1769
1773
  files: []
@@ -1807,7 +1811,7 @@ const Y = class Y extends W.Component {
1807
1811
  maxSize: g,
1808
1812
  multiple: v,
1809
1813
  ...w
1810
- } = this.props, y = s || Y.defaultProps.dropHint, C = r || Y.defaultProps.hoverHint, x = o || Y.defaultProps.acceptHint, M = l || Y.defaultProps.rejectHint;
1814
+ } = this.props, y = s || W.defaultProps.dropHint, C = r || W.defaultProps.hoverHint, x = o || W.defaultProps.acceptHint, k = l || W.defaultProps.rejectHint;
1811
1815
  return /* @__PURE__ */ m(
1812
1816
  "div",
1813
1817
  {
@@ -1817,14 +1821,14 @@ const Y = class Y extends W.Component {
1817
1821
  hasContent: !!e.length
1818
1822
  }),
1819
1823
  children: [
1820
- !!i && e.map((I, R) => /* @__PURE__ */ a(
1824
+ !!i && e.map((I, M) => /* @__PURE__ */ a(
1821
1825
  i,
1822
1826
  {
1823
1827
  file: I,
1824
1828
  onRemoveFile: () => this.handleRemoveFile(I),
1825
1829
  onDownloadFile: d ? () => d(I) : void 0
1826
1830
  },
1827
- R
1831
+ M
1828
1832
  )),
1829
1833
  (v || !e.length) && /* @__PURE__ */ a(
1830
1834
  Pt,
@@ -1835,21 +1839,21 @@ const Y = class Y extends W.Component {
1835
1839
  onDropRejected: f,
1836
1840
  onDropAccepted: p,
1837
1841
  maxSize: g || 1 / 0,
1838
- children: ({ getRootProps: I, getInputProps: R, isDragAccept: H, isDragReject: b, isDragActive: E }) => /* @__PURE__ */ m(
1842
+ children: ({ getRootProps: I, getInputProps: M, isDragAccept: E, isDragReject: S, isDragActive: T }) => /* @__PURE__ */ m(
1839
1843
  "div",
1840
1844
  {
1841
1845
  className: P("drag-drop-text-container", {
1842
- active: E,
1843
- accept: H,
1844
- reject: b
1846
+ active: T,
1847
+ accept: E,
1848
+ reject: S
1845
1849
  }),
1846
1850
  ...I(),
1847
1851
  children: [
1848
- /* @__PURE__ */ a("input", { ...R() }),
1852
+ /* @__PURE__ */ a("input", { ...M() }),
1849
1853
  /* @__PURE__ */ a("p", { className: "drag-drop-hint", children: /* @__PURE__ */ a(A, { i18nKey: y.id, children: y.defaultValue }) }),
1850
1854
  /* @__PURE__ */ a("p", { className: "drag-drop-hover-hint", children: /* @__PURE__ */ a(A, { i18nKey: C.id, children: C.defaultValue }) }),
1851
1855
  /* @__PURE__ */ a("p", { className: "drag-drop-accept", children: /* @__PURE__ */ a(A, { i18nKey: x.id, children: x.defaultValue }) }),
1852
- /* @__PURE__ */ a("p", { className: "drag-drop-reject", children: /* @__PURE__ */ a(A, { i18nKey: M.id, children: M.defaultValue }) })
1856
+ /* @__PURE__ */ a("p", { className: "drag-drop-reject", children: /* @__PURE__ */ a(A, { i18nKey: k.id, children: k.defaultValue }) })
1853
1857
  ]
1854
1858
  }
1855
1859
  )
@@ -1860,7 +1864,7 @@ const Y = class Y extends W.Component {
1860
1864
  );
1861
1865
  }
1862
1866
  };
1863
- Y.defaultProps = {
1867
+ W.defaultProps = {
1864
1868
  dropHint: {
1865
1869
  id: "fileUpload.dropHint",
1866
1870
  defaultValue: "Drop file here, or click to browse ..."
@@ -1878,8 +1882,8 @@ Y.defaultProps = {
1878
1882
  defaultValue: "This file type cannot be uploaded"
1879
1883
  }
1880
1884
  };
1881
- let ce = Y;
1882
- const En = ({ url: t, imageSize: e, onRemoveFile: n, onDragOver: i, onDownloadFile: s }) => /* @__PURE__ */ a("div", { className: "di upload preview-container", onDragOver: i, children: /* @__PURE__ */ m(
1885
+ let de = W;
1886
+ const Dn = ({ url: t, imageSize: e, onRemoveFile: n, onDragOver: i, onDownloadFile: s }) => /* @__PURE__ */ a("div", { className: "di upload preview-container", onDragOver: i, children: /* @__PURE__ */ m(
1883
1887
  "div",
1884
1888
  {
1885
1889
  className: "preview",
@@ -1893,7 +1897,7 @@ const En = ({ url: t, imageSize: e, onRemoveFile: n, onDragOver: i, onDownloadFi
1893
1897
  ]
1894
1898
  }
1895
1899
  ) });
1896
- class gs extends L {
1900
+ class ms extends V {
1897
1901
  constructor() {
1898
1902
  super(...arguments), this.state = {
1899
1903
  dragOverPreview: !1,
@@ -1912,7 +1916,7 @@ class gs extends L {
1912
1916
  render() {
1913
1917
  const { accept: e, imageUrl: n, imageSize: i, onSelectFile: s, onRemoveFile: r, onDownloadFile: o, ...l } = this.props, { dragOverPreview: c, file: h } = this.state;
1914
1918
  return n && !c && h ? /* @__PURE__ */ a(
1915
- En,
1919
+ Dn,
1916
1920
  {
1917
1921
  url: n,
1918
1922
  imageSize: i,
@@ -1921,7 +1925,7 @@ class gs extends L {
1921
1925
  onDragOver: this.handleDragOver
1922
1926
  }
1923
1927
  ) : /* @__PURE__ */ a(
1924
- ce,
1928
+ de,
1925
1929
  {
1926
1930
  ...l,
1927
1931
  onRemoveFile: (d) => {
@@ -1937,7 +1941,7 @@ class gs extends L {
1937
1941
  );
1938
1942
  }
1939
1943
  }
1940
- const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDplMjI2NGVmOC0xY2Q1LTgyNDQtOWQ5NS0yZDBjNGMxMmZkM2UiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDhENjczMThERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDhENjczMTdERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTcyODQ4NjktNjA0NC0xZjQ2LTg2OWMtMjBlYzMwMTA0MWE2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmUyMjY0ZWY4LTFjZDUtODI0NC05ZDk1LTJkMGM0YzEyZmQzZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnOjy94AAABySURBVHjapFMJDsAgCFvJ/v/lbkvYEQ4naGIiShtaASS3lSWjRwA8d4/gAutxSLJrsr3/6kKUc0uPKnDgioQS2BKUwY8HBhzFoc+/31ipAF0JkoDY7cQyiWTmzJLADZN2HIwn2dD5Ct5EzBiK1XE+BBgAvZQfJzDjL2UAAAAASUVORK5CYII=", ms = ({
1944
+ const Ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDplMjI2NGVmOC0xY2Q1LTgyNDQtOWQ5NS0yZDBjNGMxMmZkM2UiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDhENjczMThERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDhENjczMTdERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTcyODQ4NjktNjA0NC0xZjQ2LTg2OWMtMjBlYzMwMTA0MWE2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmUyMjY0ZWY4LTFjZDUtODI0NC05ZDk1LTJkMGM0YzEyZmQzZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnOjy94AAABySURBVHjapFMJDsAgCFvJ/v/lbkvYEQ4naGIiShtaASS3lSWjRwA8d4/gAutxSLJrsr3/6kKUc0uPKnDgioQS2BKUwY8HBhzFoc+/31ipAF0JkoDY7cQyiWTmzJLADZN2HIwn2dD5Ct5EzBiK1XE+BBgAvZQfJzDjL2UAAAAASUVORK5CYII=", vs = ({
1941
1945
  parentPageLink: t,
1942
1946
  title: e,
1943
1947
  subPagePathPrefixArray: n,
@@ -1945,7 +1949,7 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1945
1949
  subtitle: s,
1946
1950
  children: r
1947
1951
  }) => {
1948
- const { push: o } = pe(), { pathname: l } = fe(), { t: c } = F(), h = () => {
1952
+ const { push: o } = fe(), { pathname: l } = ge(), { t: c } = B(), h = () => {
1949
1953
  i ? o(l.substring(0, l.lastIndexOf(i))) : n ? n.forEach((u) => {
1950
1954
  l.includes(u) && o(l.substring(0, l.lastIndexOf(u)));
1951
1955
  }) : o(l.substring(0, l.lastIndexOf("/")));
@@ -1961,7 +1965,7 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1961
1965
  };
1962
1966
  return /* @__PURE__ */ m("h1", { className: "di header", children: [
1963
1967
  t && /* @__PURE__ */ a(
1964
- V,
1968
+ F,
1965
1969
  {
1966
1970
  onClick: h,
1967
1971
  style: {
@@ -1970,7 +1974,7 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1970
1974
  children: /* @__PURE__ */ a(
1971
1975
  "img",
1972
1976
  {
1973
- src: Dn,
1977
+ src: Ln,
1974
1978
  alt: c("general.navigation.goBack", {
1975
1979
  defaultValue: "Go Back"
1976
1980
  })
@@ -1982,25 +1986,25 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1982
1986
  s && /* @__PURE__ */ a("span", { className: "search-result-count", children: d(s) }),
1983
1987
  r
1984
1988
  ] });
1985
- }, ae = (t, e) => {
1989
+ }, oe = (t, e) => {
1986
1990
  try {
1987
- return S.tz(e, t).format("HH:mm");
1991
+ return b.tz(e, t).format("HH:mm");
1988
1992
  } catch (n) {
1989
1993
  return console.error("DateTimeInput: Error while extracting time from date", n), "00:00";
1990
1994
  }
1991
- }, Re = Ve(
1995
+ }, Te = Fe(
1992
1996
  ({ timestamp: t, timezone: e, warning: n, readOnly: i = !1, onChange: s, ...r }, o) => {
1993
- const [l, c] = N(ae(e, t)), h = l ?? ae(e, t);
1994
- k(() => {
1995
- c(ae(e, t));
1997
+ const [l, c] = N(oe(e, t)), h = l ?? oe(e, t);
1998
+ R(() => {
1999
+ c(oe(e, t));
1996
2000
  }, [e, t]);
1997
2001
  function d(p, g) {
1998
- const v = S.tz(t, e), w = S.tz(p, e).set("hour", v.hour()).set("minute", v.minute()).set("second", v.second()).set("millisecond", v.millisecond());
2002
+ const v = b.tz(t, e), w = b.tz(p, e).set("hour", v.hour()).set("minute", v.minute()).set("second", v.second()).set("millisecond", v.millisecond());
1999
2003
  s(w.valueOf(), g);
2000
2004
  }
2001
2005
  function u(p, g) {
2002
2006
  if (g) {
2003
- const [v, w] = p.split(":").map(Number), y = S.tz(t, e).set("hours", v).set("minutes", w);
2007
+ const [v, w] = p.split(":").map(Number), y = b.tz(t, e).set("hours", v).set("minutes", w);
2004
2008
  s(y.valueOf(), !0);
2005
2009
  }
2006
2010
  c(p);
@@ -2010,7 +2014,7 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
2010
2014
  }
2011
2015
  return /* @__PURE__ */ m("span", { className: `di date-time-input ${n ? "with-warning" : ""}`, children: [
2012
2016
  /* @__PURE__ */ a(
2013
- qe,
2017
+ et,
2014
2018
  {
2015
2019
  ...r,
2016
2020
  ref: o,
@@ -2021,7 +2025,7 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
2021
2025
  }
2022
2026
  ),
2023
2027
  /* @__PURE__ */ a(
2024
- _,
2028
+ ee,
2025
2029
  {
2026
2030
  "data-testid": "time-input",
2027
2031
  value: h,
@@ -2040,12 +2044,12 @@ const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
2040
2044
  ] });
2041
2045
  }
2042
2046
  );
2043
- class vs extends L {
2047
+ class ys extends V {
2044
2048
  constructor() {
2045
2049
  super(...arguments), this.state = {
2046
2050
  cache: {},
2047
2051
  currentItem: null
2048
- }, this.transformBackendItemToSelectItem = (e) => {
2052
+ }, this.selectRef = je(), this.transformBackendItemToSelectItem = (e) => {
2049
2053
  const { labelKey: n, valueKey: i } = this.props;
2050
2054
  return {
2051
2055
  value: e[i],
@@ -2092,7 +2096,9 @@ class vs extends L {
2092
2096
  }
2093
2097
  componentDidMount() {
2094
2098
  const { value: e, searchById: n } = this.props;
2095
- e && n(e).then(this.addBackendItemToCache);
2099
+ e && n(e).then(this.addBackendItemToCache), this.props["data-testid"] && setTimeout(() => {
2100
+ this.selectRef?.current?.controlRef && this.selectRef.current.controlRef.setAttribute("data-testid", this.props["data-testid"]);
2101
+ }, 0);
2096
2102
  }
2097
2103
  componentDidUpdate() {
2098
2104
  const { value: e, searchById: n } = this.props, { currentItem: i } = this.state;
@@ -2103,8 +2109,9 @@ class vs extends L {
2103
2109
  render() {
2104
2110
  const { clearable: e, noResultsMessage: n, disabled: i, menuPortalTarget: s } = this.props, { currentItem: r } = this.state;
2105
2111
  return /* @__PURE__ */ a(
2106
- Lt,
2112
+ Vt,
2107
2113
  {
2114
+ selectRef: this.selectRef,
2108
2115
  className: "select-search-container",
2109
2116
  classNamePrefix: "select-search",
2110
2117
  isClearable: e,
@@ -2119,7 +2126,7 @@ class vs extends L {
2119
2126
  );
2120
2127
  }
2121
2128
  }
2122
- class ys extends W.PureComponent {
2129
+ class bs extends $.PureComponent {
2123
2130
  constructor() {
2124
2131
  super(...arguments), this.createClickHandler = (e) => () => {
2125
2132
  const { onClick: n } = this.props;
@@ -2128,8 +2135,8 @@ class ys extends W.PureComponent {
2128
2135
  }
2129
2136
  render() {
2130
2137
  const { disabled: e, icon: n, children: i, linkTo: s } = this.props, r = this.props["data-testid"];
2131
- return /* @__PURE__ */ a(_e.Consumer, { children: ({ toggleMenu: o }) => s ? /* @__PURE__ */ m(
2132
- Ze,
2138
+ return /* @__PURE__ */ a(tt.Consumer, { children: ({ toggleMenu: o }) => s ? /* @__PURE__ */ m(
2139
+ We,
2133
2140
  {
2134
2141
  "data-testid": r,
2135
2142
  to: s,
@@ -2154,33 +2161,33 @@ class ys extends W.PureComponent {
2154
2161
  ) });
2155
2162
  }
2156
2163
  }
2157
- const Te = 3600 * 1e3;
2164
+ const Oe = 3600 * 1e3;
2158
2165
  function Pn({ period: t, onChange: e, readOnly: n, locale: i, timezone: s }) {
2159
- const [r, o] = N(""), l = O(void 0), c = O(null), h = new Date(t.tsStart), d = new Date(t.tsEnd);
2166
+ const [r, o] = N(""), l = D(void 0), c = D(null), h = new Date(t.tsStart), d = new Date(t.tsEnd);
2160
2167
  function u(g) {
2161
2168
  l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => o(""), 1e3);
2162
2169
  }
2163
2170
  function f(g, v) {
2164
2171
  if (g) {
2165
- const w = t.tsEnd && g > t.tsEnd, y = w ? g + Te : t.tsEnd, C = {
2172
+ const w = t.tsEnd && g > t.tsEnd, y = w ? g + Oe : t.tsEnd, C = {
2166
2173
  tsStart: g,
2167
2174
  tsEnd: y
2168
2175
  };
2169
- Z(C, t) || e(C), !v && c.current && c.current.focus(), w && u("date-to");
2176
+ z(C, t) || e(C), !v && c.current && c.current.focus(), w && u("date-to");
2170
2177
  }
2171
2178
  }
2172
2179
  function p(g) {
2173
2180
  if (g) {
2174
2181
  const v = t.tsStart && g < t.tsStart, y = {
2175
- tsStart: v ? g - Te : t.tsStart,
2182
+ tsStart: v ? g - Oe : t.tsStart,
2176
2183
  tsEnd: g
2177
2184
  };
2178
- Z(y, t) || e(y), v && u("date-from");
2185
+ z(y, t) || e(y), v && u("date-from");
2179
2186
  }
2180
2187
  }
2181
2188
  return /* @__PURE__ */ m("span", { className: "inputs", children: [
2182
2189
  /* @__PURE__ */ a("span", { "data-testid": "from-wrapper", children: /* @__PURE__ */ a(
2183
- Re,
2190
+ Te,
2184
2191
  {
2185
2192
  timestamp: t.tsStart,
2186
2193
  onChange: f,
@@ -2195,7 +2202,7 @@ function Pn({ period: t, onChange: e, readOnly: n, locale: i, timezone: s }) {
2195
2202
  ) }),
2196
2203
  "  -  ",
2197
2204
  /* @__PURE__ */ a("span", { "data-testid": "to-wrapper", children: /* @__PURE__ */ a(
2198
- Re,
2205
+ Te,
2199
2206
  {
2200
2207
  ref: c,
2201
2208
  timestamp: t.tsEnd,
@@ -2211,7 +2218,7 @@ function Pn({ period: t, onChange: e, readOnly: n, locale: i, timezone: s }) {
2211
2218
  ) })
2212
2219
  ] });
2213
2220
  }
2214
- class Ln extends L {
2221
+ class Vn extends V {
2215
2222
  constructor(e) {
2216
2223
  super(e), this.tdMonth = (s) => {
2217
2224
  const { selectedMonth: r, selectedYear: o, displayedYear: l } = this.state;
@@ -2226,11 +2233,11 @@ class Ln extends L {
2226
2233
  });
2227
2234
  },
2228
2235
  className: P({ selected: s === r && l === o }),
2229
- children: S(`${o}/${s.toString().padStart(2, "0")}/01`, "YYYY/MM/DD").format("MMM")
2236
+ children: b(`${o}/${s.toString().padStart(2, "0")}/01`, "YYYY/MM/DD").format("MMM")
2230
2237
  }
2231
2238
  );
2232
2239
  };
2233
- const n = e.month !== null && e.month !== void 0 ? e.month : S().month() + 1, i = e.year !== null && e.year !== void 0 ? e.year : S().year();
2240
+ const n = e.month !== null && e.month !== void 0 ? e.month : b().month() + 1, i = e.year !== null && e.year !== void 0 ? e.year : b().year();
2234
2241
  this.state = {
2235
2242
  selectedMonth: n,
2236
2243
  selectedYear: i,
@@ -2298,68 +2305,68 @@ class Ln extends L {
2298
2305
  ] });
2299
2306
  }
2300
2307
  }
2301
- const Vn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20%3c/style%3e%3c/defs%3e%3cg%3e%3cg%3e%3crect%20class='cls-1'%20x='3.5'%20y='7.5'%20width='2'%20height='2'/%3e%3cpath%20d='M5,8V9H4V8H5M6,7H3v3H6V7Z'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%207%208%207%208%208%209%208%209%207%209%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='11%207%2010%207%2010%208%2011%208%2011%207%2011%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='12'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='13%207%2012%207%2012%208%2013%208%2013%207%2013%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='9'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%209%208%209%208%2010%209%2010%209%209%209%209'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%2011%208%2011%208%2012%209%2012%209%2011%209%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='6'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='7%2011%206%2011%206%2012%207%2012%207%2011%207%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='4'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='5%2011%204%2011%204%2012%205%2012%205%2011%205%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10.5'%20y='9.5'%20width='2'%20height='2'/%3e%3cpath%20d='M12,10v1H11V10h1m1-1H10v3h3V9Z'/%3e%3c/g%3e%3cpath%20d='M15.31,2H.69A.69.69,0,0,0,0,2.69V14.31A.69.69,0,0,0,.69,15H15.31a.69.69,0,0,0,.69-.69V2.69A.69.69,0,0,0,15.31,2ZM14,13H2V6H14Z'/%3e%3c/g%3e%3crect%20x='3'%20width='3'%20height='2'/%3e%3crect%20x='10'%20width='3'%20height='2'/%3e%3c/svg%3e", Fn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpolygon%20points='7.5%2010%204%206%2011%206%207.5%2010'/%3e%3c/svg%3e";
2302
- S.extend(He);
2303
- S.extend(Ge);
2304
- function T(t, e) {
2305
- return t ? S.tz(e, t) : S(e);
2308
+ const Fn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20%3c/style%3e%3c/defs%3e%3cg%3e%3cg%3e%3crect%20class='cls-1'%20x='3.5'%20y='7.5'%20width='2'%20height='2'/%3e%3cpath%20d='M5,8V9H4V8H5M6,7H3v3H6V7Z'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%207%208%207%208%208%209%208%209%207%209%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='11%207%2010%207%2010%208%2011%208%2011%207%2011%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='12'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='13%207%2012%207%2012%208%2013%208%2013%207%2013%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='9'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%209%208%209%208%2010%209%2010%209%209%209%209'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%2011%208%2011%208%2012%209%2012%209%2011%209%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='6'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='7%2011%206%2011%206%2012%207%2012%207%2011%207%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='4'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='5%2011%204%2011%204%2012%205%2012%205%2011%205%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10.5'%20y='9.5'%20width='2'%20height='2'/%3e%3cpath%20d='M12,10v1H11V10h1m1-1H10v3h3V9Z'/%3e%3c/g%3e%3cpath%20d='M15.31,2H.69A.69.69,0,0,0,0,2.69V14.31A.69.69,0,0,0,.69,15H15.31a.69.69,0,0,0,.69-.69V2.69A.69.69,0,0,0,15.31,2ZM14,13H2V6H14Z'/%3e%3c/g%3e%3crect%20x='3'%20width='3'%20height='2'/%3e%3crect%20x='10'%20width='3'%20height='2'/%3e%3c/svg%3e", Bn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpolygon%20points='7.5%2010%204%206%2011%206%207.5%2010'/%3e%3c/svg%3e";
2309
+ b.extend(Ye);
2310
+ b.extend(Ze);
2311
+ function O(t, e) {
2312
+ return t ? b.tz(e, t) : b(e);
2306
2313
  }
2307
- function et(t) {
2314
+ function nt(t) {
2308
2315
  return {
2309
- tsStart: T(t).startOf("day").valueOf(),
2310
- tsEnd: T(t).endOf("day").valueOf()
2316
+ tsStart: O(t).startOf("day").valueOf(),
2317
+ tsEnd: O(t).endOf("day").valueOf()
2311
2318
  };
2312
2319
  }
2313
- function tt(t) {
2320
+ function it(t) {
2314
2321
  return {
2315
- tsStart: T(t).subtract(1, "day").startOf("day").valueOf(),
2316
- tsEnd: T(t).subtract(1, "day").endOf("day").valueOf()
2322
+ tsStart: O(t).subtract(1, "day").startOf("day").valueOf(),
2323
+ tsEnd: O(t).subtract(1, "day").endOf("day").valueOf()
2317
2324
  };
2318
2325
  }
2319
- function nt(t) {
2326
+ function st(t) {
2320
2327
  return {
2321
- tsStart: T(t).startOf("week").valueOf(),
2322
- tsEnd: T(t).endOf("week").valueOf()
2328
+ tsStart: O(t).startOf("week").valueOf(),
2329
+ tsEnd: O(t).endOf("week").valueOf()
2323
2330
  };
2324
2331
  }
2325
- function it(t) {
2332
+ function rt(t) {
2326
2333
  return {
2327
- tsStart: T(t).startOf("month").valueOf(),
2328
- tsEnd: T(t).endOf("month").valueOf()
2334
+ tsStart: O(t).startOf("month").valueOf(),
2335
+ tsEnd: O(t).endOf("month").valueOf()
2329
2336
  };
2330
2337
  }
2331
- function st(t, e) {
2338
+ function at(t, e) {
2332
2339
  return {
2333
- tsStart: T(e, t).startOf("day").valueOf(),
2334
- tsEnd: T(e, t).endOf("day").valueOf()
2340
+ tsStart: O(e, t).startOf("day").valueOf(),
2341
+ tsEnd: O(e, t).endOf("day").valueOf()
2335
2342
  };
2336
2343
  }
2337
- function rt(t, e) {
2344
+ function ot(t, e) {
2338
2345
  return {
2339
- tsStart: T(e, t).startOf("month").valueOf(),
2340
- tsEnd: T(e, t).endOf("month").valueOf()
2346
+ tsStart: O(e, t).startOf("month").valueOf(),
2347
+ tsEnd: O(e, t).endOf("month").valueOf()
2341
2348
  };
2342
2349
  }
2343
- function de(t, e) {
2344
- const n = T(e).subtract(t - 1, "days").startOf("day").valueOf(), i = S().endOf("day").valueOf();
2350
+ function he(t, e) {
2351
+ const n = O(e).subtract(t - 1, "days").startOf("day").valueOf(), i = b().endOf("day").valueOf();
2345
2352
  return { tsStart: n, tsEnd: i };
2346
2353
  }
2347
- const Bn = 1e3 * 60 * 60 * 24;
2348
- function jn({ tsStart: t, tsEnd: e }) {
2349
- return Math.round((e - t + 1) / Bn);
2354
+ const jn = 1e3 * 60 * 60 * 24;
2355
+ function Hn({ tsStart: t, tsEnd: e }) {
2356
+ return Math.round((e - t + 1) / jn);
2350
2357
  }
2351
- function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i }) {
2358
+ function Gn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i }) {
2352
2359
  const [s, r] = N(!1), [o, l] = N(!1), [c, h] = N(!1), [d, u] = N(Date.now());
2353
2360
  function f(C) {
2354
2361
  t(C), r(!1), e && e(!1);
2355
2362
  }
2356
2363
  function p(C) {
2357
- f(st(C ?? Date.now(), i)), l(!1), u(C ?? void 0);
2364
+ f(at(C ?? Date.now(), i)), l(!1), u(C ?? void 0);
2358
2365
  }
2359
2366
  function g(C, x) {
2360
2367
  f(
2361
- rt(
2362
- S().year(x).month(C - 1).valueOf(),
2368
+ ot(
2369
+ b().year(x).month(C - 1).valueOf(),
2363
2370
  i
2364
2371
  )
2365
2372
  ), h(!1);
@@ -2374,40 +2381,40 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2374
2381
  r(!1), e && e(!0);
2375
2382
  }
2376
2383
  return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
2377
- ee,
2384
+ te,
2378
2385
  {
2379
2386
  open: s,
2380
2387
  onOpenChange: r,
2381
2388
  handler: /* @__PURE__ */ a(
2382
- V,
2389
+ F,
2383
2390
  {
2384
2391
  "data-testid": "time-period-menu-button",
2385
2392
  title: {
2386
2393
  id: "trend.calendarMenu.calendar.timePeriod",
2387
2394
  defaultValue: "Time Period"
2388
2395
  },
2389
- children: /* @__PURE__ */ m(Le, { children: [
2390
- /* @__PURE__ */ a("img", { src: Vn, alt: "calendar icon", style: { width: 16, height: 16 } }),
2396
+ children: /* @__PURE__ */ m(Ve, { children: [
2397
+ /* @__PURE__ */ a("img", { src: Fn, alt: "calendar icon", style: { width: 16, height: 16 } }),
2391
2398
  " ",
2392
2399
  !!n && /* @__PURE__ */ m("span", { children: [
2393
2400
  " ",
2394
2401
  n,
2395
2402
  " "
2396
2403
  ] }),
2397
- /* @__PURE__ */ a("img", { src: Fn, alt: "triangle down", style: { width: 16, height: 16 } })
2404
+ /* @__PURE__ */ a("img", { src: Bn, alt: "triangle down", style: { width: 16, height: 16 } })
2398
2405
  ] })
2399
2406
  }
2400
2407
  ),
2401
2408
  children: /* @__PURE__ */ a("div", { className: "di multimenu period-picker-multimenu", children: /* @__PURE__ */ m("div", { className: `drop bottom ${s ? "show" : ""}`, children: [
2402
- /* @__PURE__ */ a("div", { className: `left-box ${o ? "show" : ""}`, children: /* @__PURE__ */ a(qe, { inline: !0, value: d, onChange: p }) }),
2403
- /* @__PURE__ */ a("div", { className: `left-box ${c ? "show" : ""}`, children: /* @__PURE__ */ a(Ln, { onChange: g }) }),
2409
+ /* @__PURE__ */ a("div", { className: `left-box ${o ? "show" : ""}`, children: /* @__PURE__ */ a(et, { inline: !0, value: d, onChange: p }) }),
2410
+ /* @__PURE__ */ a("div", { className: `left-box ${c ? "show" : ""}`, children: /* @__PURE__ */ a(Vn, { onChange: g }) }),
2404
2411
  /* @__PURE__ */ m("div", { className: "right-box", children: [
2405
2412
  /* @__PURE__ */ a(
2406
2413
  "div",
2407
2414
  {
2408
2415
  className: "item",
2409
2416
  "data-testid": "today-button",
2410
- onClick: () => f(et(i)),
2417
+ onClick: () => f(nt(i)),
2411
2418
  children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.today", children: "Today" }) })
2412
2419
  }
2413
2420
  ),
@@ -2416,7 +2423,7 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2416
2423
  {
2417
2424
  className: "item",
2418
2425
  "data-testid": "yesterday-button",
2419
- onClick: () => f(tt(i)),
2426
+ onClick: () => f(it(i)),
2420
2427
  children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.yesterday", children: "Yesterday" }) })
2421
2428
  }
2422
2429
  ),
@@ -2426,7 +2433,7 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2426
2433
  {
2427
2434
  "data-testid": "last-7-days-button",
2428
2435
  className: "item-text",
2429
- onClick: () => f(de(7, i)),
2436
+ onClick: () => f(he(7, i)),
2430
2437
  children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.lastSevenDays", children: "Last 7 days" })
2431
2438
  }
2432
2439
  ),
@@ -2434,7 +2441,7 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2434
2441
  "div",
2435
2442
  {
2436
2443
  className: "subitem",
2437
- onClick: () => f(de(C, i)),
2444
+ onClick: () => f(he(C, i)),
2438
2445
  children: C
2439
2446
  },
2440
2447
  C
@@ -2445,7 +2452,7 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2445
2452
  {
2446
2453
  className: "item",
2447
2454
  "data-testid": "current-week-button",
2448
- onClick: () => f(nt(i)),
2455
+ onClick: () => f(st(i)),
2449
2456
  children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.currentWeek", children: "Curr. Week" }) })
2450
2457
  }
2451
2458
  ),
@@ -2454,7 +2461,7 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2454
2461
  {
2455
2462
  className: "item",
2456
2463
  "data-testid": "current-month-button",
2457
- onClick: () => f(it(i)),
2464
+ onClick: () => f(rt(i)),
2458
2465
  children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.currentMonth", children: "Curr. Month" }) })
2459
2466
  }
2460
2467
  ),
@@ -2472,31 +2479,31 @@ function Hn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i })
2472
2479
  }
2473
2480
  ) });
2474
2481
  }
2475
- function G(t, e) {
2482
+ function U(t, e) {
2476
2483
  return t.tsStart === e.tsStart && t.tsEnd === e.tsEnd;
2477
2484
  }
2478
- function Gn(t, e) {
2479
- const { t: n } = F();
2480
- if (G(t, et(e)))
2485
+ function Yn(t, e) {
2486
+ const { t: n } = B();
2487
+ if (U(t, nt(e)))
2481
2488
  return n("trend.calendarMenu.timePeriod.today", { defaultValue: "Today" });
2482
- if (G(t, tt(e)))
2489
+ if (U(t, it(e)))
2483
2490
  return n("trend.calendarMenu.timePeriod.yesterday", { defaultValue: "Yesterday" });
2484
- if (G(t, nt(e)))
2491
+ if (U(t, st(e)))
2485
2492
  return n("trend.calendarMenu.timePeriod.currentWeek", { defaultValue: "Curr. Week" });
2486
- if (G(t, it(e)))
2493
+ if (U(t, rt(e)))
2487
2494
  return n("trend.calendarMenu.timePeriod.currentMonth", { defaultValue: "Curr. Month" });
2488
- if (G(t, st((t.tsStart + t.tsEnd) / 2, e)))
2495
+ if (U(t, at((t.tsStart + t.tsEnd) / 2, e)))
2489
2496
  return n("trend.calendarMenu.timePeriod.day", { defaultValue: "Day" });
2490
- if (G(t, rt((t.tsStart + t.tsEnd) / 2, e)))
2497
+ if (U(t, ot((t.tsStart + t.tsEnd) / 2, e)))
2491
2498
  return n("trend.calendarMenu.timePeriod.month", { defaultValue: "Month" });
2492
- const i = jn(t);
2493
- if (G(t, de(i, e)))
2499
+ const i = Hn(t);
2500
+ if (U(t, he(i, e)))
2494
2501
  return n("trend.calendarMenu.timePeriod.lastDays", {
2495
2502
  defaultValue: `Last ${i} days`,
2496
2503
  days: i
2497
2504
  });
2498
2505
  }
2499
- function bs({
2506
+ function Ss({
2500
2507
  period: t,
2501
2508
  onChange: e,
2502
2509
  inputsHiddenByDefault: n,
@@ -2507,11 +2514,11 @@ function bs({
2507
2514
  timezone: l,
2508
2515
  ...c
2509
2516
  }) {
2510
- const [h, d] = N(!n), u = Gn(t, l) ?? o;
2517
+ const [h, d] = N(!n), u = Yn(t, l) ?? o;
2511
2518
  return /* @__PURE__ */ m("div", { className: "di period-picker", "data-testid": c["data-testid"], children: [
2512
2519
  (!n || h) && /* @__PURE__ */ a(Pn, { period: t, onChange: e, locale: r, readOnly: s, timezone: l }),
2513
2520
  i || s || /* @__PURE__ */ a(
2514
- Hn,
2521
+ Gn,
2515
2522
  {
2516
2523
  periodName: u,
2517
2524
  onShowCustomPeriod: n ? d : void 0,
@@ -2521,48 +2528,48 @@ function bs({
2521
2528
  )
2522
2529
  ] });
2523
2530
  }
2524
- const Yn = 500, Oe = (t) => Array.from(t.querySelectorAll("[id]")).map((e) => e.getAttribute("id")).reduce((e, n) => (n && (e[n] = e[n] + 1 || 1), e), {}), Zn = (t) => {
2525
- const e = Oe(document), n = Oe(t);
2531
+ const Zn = 500, Ee = (t) => Array.from(t.querySelectorAll("[id]")).map((e) => e.getAttribute("id")).reduce((e, n) => (n && (e[n] = e[n] + 1 || 1), e), {}), Un = (t) => {
2532
+ const e = Ee(document), n = Ee(t);
2526
2533
  return Object.keys(n).filter((i) => n[i] < e[i]);
2527
2534
  };
2528
- function Un(t, e) {
2535
+ function Wn(t, e) {
2529
2536
  const n = setTimeout(() => {
2530
- e && e(Zn(t));
2531
- }, Yn);
2537
+ e && e(Un(t));
2538
+ }, Zn);
2532
2539
  return () => clearTimeout(n);
2533
2540
  }
2534
- const at = "http://www.w3.org/2000/svg";
2535
- function Wn(t, { hoverColor: e, internalLink: n, link: i }, s, r) {
2536
- const o = zn(t);
2541
+ const lt = "http://www.w3.org/2000/svg";
2542
+ function zn(t, { hoverColor: e, internalLink: n, link: i }, s, r) {
2543
+ const o = Qn(t);
2537
2544
  if (!o) return;
2538
- const l = `a${jt(8)}`;
2545
+ const l = `a${Ht(8)}`;
2539
2546
  t.classList.add("anchor", l), e && s?.sheet && s.sheet.insertRule(
2540
2547
  `.di.svg-image .anchor.${l}:hover, .di.svg-image .anchor.${l}:hover * { stroke: ${e} !important; }`
2541
- ), o.setAttributeNS(at, "xlink:href", "#"), o.addEventListener(
2548
+ ), o.setAttributeNS(lt, "xlink:href", "#"), o.addEventListener(
2542
2549
  "click",
2543
2550
  () => n && r ? r(i) : window.open(i, "_newtab")
2544
2551
  );
2545
2552
  }
2546
- function zn(t) {
2553
+ function Qn(t) {
2547
2554
  const e = t.parentNode;
2548
2555
  if (!e)
2549
2556
  return null;
2550
2557
  const n = e.childNodes;
2551
2558
  if (!n)
2552
2559
  return null;
2553
- const i = Array.from(n).findIndex((o) => o === t), s = document.createElementNS(at, "a");
2560
+ const i = Array.from(n).findIndex((o) => o === t), s = document.createElementNS(lt, "a");
2554
2561
  s.appendChild(t);
2555
2562
  const r = n[i] || null;
2556
2563
  return r ? e.insertBefore(s, r) : e.appendChild(s), s;
2557
2564
  }
2558
- const Qn = (t) => t.replace(/<svg:svg/g, "<svg").replace(/<\/svg:svg/g, "</svg"), ve = (t) => {
2559
- const e = new DOMParser(), n = Qn(atob(t.replace("data:image/svg+xml;base64,", "")));
2565
+ const $n = (t) => t.replace(/<svg:svg/g, "<svg").replace(/<\/svg:svg/g, "</svg"), ye = (t) => {
2566
+ const e = new DOMParser(), n = $n(atob(t.replace("data:image/svg+xml;base64,", "")));
2560
2567
  return e.parseFromString(n, "image/svg+xml");
2561
2568
  };
2562
- function Ss(t, e) {
2563
- return ve(t).querySelectorAll(`[id^="${e}"]`);
2569
+ function ws(t, e) {
2570
+ return ye(t).querySelectorAll(`[id^="${e}"]`);
2564
2571
  }
2565
- const $n = (t) => {
2572
+ const Jn = (t) => {
2566
2573
  const e = t.filter(({ type: s }) => s === "positionX" || s === "positionY"), n = t.filter(({ type: s }) => s !== "positionX" && s !== "positionY"), i = e.reduce(
2567
2574
  (s, r) => r.type === "positionX" ? { ...s, x: r } : r.type === "positionY" ? { ...s, y: r } : s,
2568
2575
  {
@@ -2578,7 +2585,7 @@ const $n = (t) => {
2578
2585
  positionY: i.y.position
2579
2586
  }
2580
2587
  ]) : i.x ? n.concat([i.x]) : i.y ? n.concat([i.y]) : n;
2581
- }, Jn = (t) => {
2588
+ }, Kn = (t) => {
2582
2589
  const e = t.reduce(
2583
2590
  (n, i) => ({
2584
2591
  ...n,
@@ -2587,26 +2594,26 @@ const $n = (t) => {
2587
2594
  {}
2588
2595
  );
2589
2596
  return Object.keys(e).reduce(
2590
- (n, i) => n.concat($n(e[i])),
2597
+ (n, i) => n.concat(Jn(e[i])),
2591
2598
  []
2592
2599
  );
2593
- }, K = (t) => Math.max(0, Math.min(100, t));
2594
- function Kn(t, e, n) {
2595
- const i = We(n), s = t.getAttribute("id") || "", r = i.findOne(`#${s}`), o = i.findOne(`#${s}-boundaries`), l = o ? o.bbox() : i.viewbox();
2596
- e.type === "positionX" ? r.x(l.x + K(e.position) * l.width / 100) : e.type === "positionY" ? r.y(l.y + K(e.position) * l.height / 100) : (r.x(l.x + K(e.positionX) * l.width / 100), r.y(l.y + K(e.positionY) * l.height / 100));
2600
+ }, X = (t) => Math.max(0, Math.min(100, t));
2601
+ function Xn(t, e, n) {
2602
+ const i = Qe(n), s = t.getAttribute("id") || "", r = i.findOne(`#${s}`), o = i.findOne(`#${s}-boundaries`), l = o ? o.bbox() : i.viewbox();
2603
+ e.type === "positionX" ? r.x(l.x + X(e.position) * l.width / 100) : e.type === "positionY" ? r.y(l.y + X(e.position) * l.height / 100) : (r.x(l.x + X(e.positionX) * l.width / 100), r.y(l.y + X(e.positionY) * l.height / 100));
2597
2604
  }
2598
- function Xn(t, e, n, i, s) {
2599
- const o = ve(e).querySelector("svg");
2600
- return o ? (t.style.height = "100%", t.innerHTML = "", o.style.height = "100%", o.style.width = "100%", o.classList.add("di", "svg-image"), o.getAttribute("viewBox") || o.setAttribute("viewBox", ""), o.getAttribute("preserveAspectRatio") || o.setAttribute("preserveAspectRatio", "xMidYMid"), t.appendChild(o), qn(o, n, i, s), o) : null;
2605
+ function qn(t, e, n, i, s) {
2606
+ const o = ye(e).querySelector("svg");
2607
+ return o ? (t.style.height = "100%", t.innerHTML = "", o.style.height = "100%", o.style.width = "100%", o.classList.add("di", "svg-image"), o.getAttribute("viewBox") || o.setAttribute("viewBox", ""), o.getAttribute("preserveAspectRatio") || o.setAttribute("preserveAspectRatio", "xMidYMid"), t.appendChild(o), _n(o, n, i, s), o) : null;
2601
2608
  }
2602
- function qn(t, e, n, i) {
2609
+ function _n(t, e, n, i) {
2603
2610
  if (!(!e || !e.length))
2604
- for (const s of ei(Jn(e))) {
2611
+ for (const s of ti(Kn(e))) {
2605
2612
  const r = t.querySelector(`[id=${s.target}]`);
2606
- r && _n(r, s, t, n, i);
2613
+ r && ei(r, s, t, n, i);
2607
2614
  }
2608
2615
  }
2609
- function _n(t, e, n, i, s) {
2616
+ function ei(t, e, n, i, s) {
2610
2617
  switch (e.type) {
2611
2618
  case "visibility":
2612
2619
  t.setAttribute("visibility", e.visible ? "visible" : "hidden");
@@ -2624,7 +2631,7 @@ function _n(t, e, n, i, s) {
2624
2631
  break;
2625
2632
  }
2626
2633
  case "hyperlink":
2627
- Wn(t, e, i, s);
2634
+ zn(t, e, i, s);
2628
2635
  break;
2629
2636
  case "eventListener":
2630
2637
  t.addEventListener(e.eventType, e.listener, e.options);
@@ -2635,53 +2642,53 @@ function _n(t, e, n, i, s) {
2635
2642
  case "positionX":
2636
2643
  case "positionY":
2637
2644
  case "positionXY":
2638
- Kn(t, e, n);
2645
+ Xn(t, e, n);
2639
2646
  break;
2640
2647
  case "rotation": {
2641
- We(t).rotate(e.degrees);
2648
+ Qe(t).rotate(e.degrees);
2642
2649
  break;
2643
2650
  }
2644
2651
  default:
2645
2652
  throw new Error("Unknown modification");
2646
2653
  }
2647
2654
  }
2648
- function ei(t) {
2655
+ function ti(t) {
2649
2656
  return t.sort(({ type: e }, { type: n }) => e !== n && n === "rotation" ? -1 : 1);
2650
2657
  }
2651
- function ti() {
2652
- const t = O(null);
2653
- return k(() => {
2658
+ function ni() {
2659
+ const t = D(null);
2660
+ return R(() => {
2654
2661
  const e = document.createElement("style");
2655
2662
  return e.appendChild(document.createTextNode("")), document && document.head && document.head.appendChild(e), t.current = e, () => {
2656
2663
  document && document.head && e && document.head.removeChild(e);
2657
2664
  };
2658
2665
  }, []), t.current;
2659
2666
  }
2660
- function ws({ imageData: t, modifications: e, onConflict: n }) {
2661
- const i = O(null), s = ti(), { push: r } = pe();
2662
- return k(() => {
2667
+ function Cs({ imageData: t, modifications: e, onConflict: n }) {
2668
+ const i = D(null), s = ni(), { push: r } = fe();
2669
+ return R(() => {
2663
2670
  const { current: o } = i;
2664
2671
  if (o && t) {
2665
- const l = Xn(o, t, e, s, r);
2672
+ const l = qn(o, t, e, s, r);
2666
2673
  if (l && n)
2667
- return Un(l, n);
2674
+ return Wn(l, n);
2668
2675
  }
2669
2676
  }, [t, e, n, r, s]), /* @__PURE__ */ a("div", { ref: i });
2670
2677
  }
2671
- const ni = (t) => {
2678
+ const ii = (t) => {
2672
2679
  try {
2673
- return ve(t).querySelector("svg");
2680
+ return ye(t).querySelector("svg");
2674
2681
  } catch {
2675
2682
  return null;
2676
2683
  }
2677
- }, Cs = (t) => {
2678
- const e = ni(t);
2684
+ }, As = (t) => {
2685
+ const e = ii(t);
2679
2686
  return !!e && !!e.style;
2680
2687
  };
2681
- function he(t, e, n) {
2688
+ function ue(t, e, n) {
2682
2689
  return `<div>${t}</div><div>${e}: <strong>${n}</strong></div>`;
2683
2690
  }
2684
- const B = {
2691
+ const H = {
2685
2692
  global: {
2686
2693
  useUTC: !1
2687
2694
  },
@@ -2717,7 +2724,7 @@ const B = {
2717
2724
  tooltip: {
2718
2725
  useHTML: !0,
2719
2726
  formatter() {
2720
- return he("", this.point.name, this.point.y);
2727
+ return ue("", this.point.name, this.point.y);
2721
2728
  }
2722
2729
  },
2723
2730
  xAxis: {
@@ -2732,7 +2739,7 @@ const B = {
2732
2739
  options: {
2733
2740
  lgo: 123
2734
2741
  }
2735
- }, Ee = (t) => t ? {
2742
+ }, De = (t) => t ? {
2736
2743
  series: {
2737
2744
  cursor: "pointer",
2738
2745
  point: {
@@ -2744,7 +2751,7 @@ const B = {
2744
2751
  }
2745
2752
  }
2746
2753
  } : {};
2747
- class As extends L {
2754
+ class Ns extends V {
2748
2755
  constructor() {
2749
2756
  super(...arguments), this.state = {}, this.chart = null, this.ro = null, this.handleChart = (e) => {
2750
2757
  this.chart = e, this.ro = new ResizeObserver(() => {
@@ -2755,18 +2762,18 @@ class As extends L {
2755
2762
  componentDidMount() {
2756
2763
  const { type: e, title: n, items: i, tooltipTitle: s, valueFormatter: r, onClick: o } = this.props;
2757
2764
  this.setState({
2758
- ...B,
2759
- plotOptions: { ...B.plotOptions, ...Ee(o) },
2765
+ ...H,
2766
+ plotOptions: { ...H.plotOptions, ...De(o) },
2760
2767
  tooltip: {
2761
- ...B.tooltip,
2768
+ ...H.tooltip,
2762
2769
  formatter() {
2763
2770
  const l = r || ((c) => c);
2764
- return he(s || "", this.point.name, l(this.point.y));
2771
+ return ue(s || "", this.point.name, l(this.point.y));
2765
2772
  }
2766
2773
  },
2767
- legend: { ...B.legend, enabled: e === "pie" },
2774
+ legend: { ...H.legend, enabled: e === "pie" },
2768
2775
  yAxis: {
2769
- ...B.yAxis,
2776
+ ...H.yAxis,
2770
2777
  enabled: e === "column",
2771
2778
  title: {
2772
2779
  text: n || ""
@@ -2781,7 +2788,7 @@ class As extends L {
2781
2788
  ]
2782
2789
  }), setTimeout(() => {
2783
2790
  this.setState({
2784
- title: { ...B.title, text: e === "column" ? "" : n || "" }
2791
+ title: { ...H.title, text: e === "column" ? "" : n || "" }
2785
2792
  });
2786
2793
  }, 0);
2787
2794
  }
@@ -2814,7 +2821,7 @@ class As extends L {
2814
2821
  data: s.map(({ label: c, value: h }) => [c, h])
2815
2822
  }
2816
2823
  ]
2817
- }), Z(s, e.items) || this.setState({
2824
+ }), z(s, e.items) || this.setState({
2818
2825
  series: [
2819
2826
  {
2820
2827
  type: n,
@@ -2824,13 +2831,13 @@ class As extends L {
2824
2831
  ]
2825
2832
  }), (r !== e.tooltipTitle || o !== e.valueFormatter || l !== e.onClick) && this.setState({
2826
2833
  tooltip: {
2827
- ...B.tooltip,
2834
+ ...H.tooltip,
2828
2835
  formatter() {
2829
2836
  const c = o || ((h) => h);
2830
- return he(r || "", this.point.name, c(this.point.y));
2837
+ return ue(r || "", this.point.name, c(this.point.y));
2831
2838
  }
2832
2839
  },
2833
- plotOptions: { ...B.plotOptions, ...Ee(l) }
2840
+ plotOptions: { ...H.plotOptions, ...De(l) }
2834
2841
  });
2835
2842
  }
2836
2843
  componentWillUnmount() {
@@ -2839,9 +2846,9 @@ class As extends L {
2839
2846
  render() {
2840
2847
  const e = this.props.updateOptions ? this.props.updateOptions(this.state) : this.state;
2841
2848
  return /* @__PURE__ */ a(
2842
- Ft,
2849
+ Bt,
2843
2850
  {
2844
- highcharts: Vt,
2851
+ highcharts: Ft,
2845
2852
  options: e,
2846
2853
  containerProps: {
2847
2854
  className: this.props.className
@@ -2851,15 +2858,15 @@ class As extends L {
2851
2858
  );
2852
2859
  }
2853
2860
  }
2854
- function ii(t) {
2861
+ function si(t) {
2855
2862
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2856
2863
  }
2857
- var J = {}, De;
2858
- function si() {
2859
- if (De) return J;
2860
- De = 1, Object.defineProperty(J, "__esModule", {
2864
+ var K = {}, Le;
2865
+ function ri() {
2866
+ if (Le) return K;
2867
+ Le = 1, Object.defineProperty(K, "__esModule", {
2861
2868
  value: !0
2862
- }), J.default = void 0;
2869
+ }), K.default = void 0;
2863
2870
  let t = (o) => +setTimeout(o, 16), e = (o) => clearTimeout(o);
2864
2871
  typeof window < "u" && "requestAnimationFrame" in window && (t = (o) => window.requestAnimationFrame(o), e = (o) => window.cancelAnimationFrame(o));
2865
2872
  let n = 0;
@@ -2885,11 +2892,11 @@ function si() {
2885
2892
  return r.cancel = (o) => {
2886
2893
  const l = i.get(o);
2887
2894
  return s(o), e(l);
2888
- }, process.env.NODE_ENV !== "production" && (r.ids = () => i), J.default = r, J;
2895
+ }, process.env.NODE_ENV !== "production" && (r.ids = () => i), K.default = r, K;
2889
2896
  }
2890
- var ri = si();
2891
- const Pe = /* @__PURE__ */ ii(ri), ai = (t) => {
2892
- const { value: e, children: n, visible: i, tipFormatter: s = (d) => `${d}`, ...r } = t, o = O(null), l = O(null);
2897
+ var ai = ri();
2898
+ const Pe = /* @__PURE__ */ si(ai), oi = (t) => {
2899
+ const { value: e, children: n, visible: i, tipFormatter: s = (d) => `${d}`, ...r } = t, o = D(null), l = D(null);
2893
2900
  function c() {
2894
2901
  l.current && Pe.cancel(l.current);
2895
2902
  }
@@ -2898,8 +2905,8 @@ const Pe = /* @__PURE__ */ ii(ri), ai = (t) => {
2898
2905
  o.current?.forceAlign();
2899
2906
  });
2900
2907
  }
2901
- return k(() => (i ? h() : c(), c), [e, i]), /* @__PURE__ */ a(
2902
- Bt,
2908
+ return R(() => (i ? h() : c(), c), [e, i]), /* @__PURE__ */ a(
2909
+ jt,
2903
2910
  {
2904
2911
  placement: "top",
2905
2912
  overlay: s(e),
@@ -2910,8 +2917,8 @@ const Pe = /* @__PURE__ */ ii(ri), ai = (t) => {
2910
2917
  children: n
2911
2918
  }
2912
2919
  );
2913
- }, oi = ({ tipFormatter: t, tipProps: e, ...n }) => /* @__PURE__ */ a(ze, { ...n, handleRender: (s, r) => /* @__PURE__ */ a(
2914
- ai,
2920
+ }, li = ({ tipFormatter: t, tipProps: e, ...n }) => /* @__PURE__ */ a($e, { ...n, handleRender: (s, r) => /* @__PURE__ */ a(
2921
+ oi,
2915
2922
  {
2916
2923
  value: r.value,
2917
2924
  visible: r.dragging,
@@ -2920,9 +2927,9 @@ const Pe = /* @__PURE__ */ ii(ri), ai = (t) => {
2920
2927
  children: s
2921
2928
  }
2922
2929
  ) });
2923
- function li(t, e, n) {
2930
+ function ci(t, e, n) {
2924
2931
  const [i, s] = N(null);
2925
- k(() => {
2932
+ R(() => {
2926
2933
  if (i) {
2927
2934
  const o = i.querySelector(".rc-slider-rail");
2928
2935
  if (!o) throw new Error(".rc-slider-rail element missing");
@@ -2940,7 +2947,7 @@ function li(t, e, n) {
2940
2947
  }
2941
2948
  }
2942
2949
  }, [t, i, e, n]);
2943
- const r = X(() => {
2950
+ const r = q(() => {
2944
2951
  if (i && t != null) {
2945
2952
  const o = i.querySelector(".rc-slider-rail");
2946
2953
  if (!o) throw new Error(".rc-slider-rail element missing");
@@ -2951,12 +2958,12 @@ function li(t, e, n) {
2951
2958
  }
2952
2959
  }
2953
2960
  }, [t, n, e, i]);
2954
- return k(() => {
2961
+ return R(() => {
2955
2962
  i && new ResizeObserver(() => r()).observe(i);
2956
2963
  }, [i, r]), s;
2957
2964
  }
2958
- const Ns = ({ min: t, max: e, step: n, value: i, tooltip: s = !0, labels: r, format: o, onChange: l, onChangeComplete: c, limit: h }) => {
2959
- const d = li(h, t, e), p = {
2965
+ const xs = ({ min: t, max: e, step: n, value: i, tooltip: s = !0, labels: r, format: o, onChange: l, onChangeComplete: c, limit: h }) => {
2966
+ const d = ci(h, t, e), p = {
2960
2967
  min: t,
2961
2968
  max: e,
2962
2969
  step: n,
@@ -2971,50 +2978,50 @@ const Ns = ({ min: t, max: e, step: n, value: i, tooltip: s = !0, labels: r, for
2971
2978
  },
2972
2979
  marks: r
2973
2980
  };
2974
- return /* @__PURE__ */ a("div", { className: "di slider", ref: d, children: s ? /* @__PURE__ */ a(oi, { ...p, className: "di slider with-tooltip", tipFormatter: o }) : /* @__PURE__ */ a(ze, { ...p, className: "di slider" }) });
2981
+ return /* @__PURE__ */ a("div", { className: "di slider", ref: d, children: s ? /* @__PURE__ */ a(li, { ...p, className: "di slider with-tooltip", tipFormatter: o }) : /* @__PURE__ */ a($e, { ...p, className: "di slider" }) });
2975
2982
  };
2976
2983
  export {
2977
- As as Chart,
2978
- rs as ColorPicker,
2979
- ms as ContentHeader,
2980
- qe as DateInput,
2981
- Re as DateTimeInput,
2982
- ce as FileUpload,
2983
- as as GradientColorPicker,
2984
- rs as GridColorPicker,
2985
- gs as ImageUpload,
2986
- hs as InfoBox,
2987
- ts as MessageBoxContainer,
2988
- fn as MultiMenu,
2989
- ys as MultiMenuItem,
2990
- mn as Pagination,
2991
- bs as PeriodPicker,
2992
- On as Reactable,
2993
- fs as ReactableWithClientSidePagination,
2994
- ds as RouteLink,
2995
- us as RouteTabs,
2996
- Mn as SelectWithSearch,
2997
- vs as SelectWithSearchAsync,
2998
- Ns as Slider,
2999
- ws as SvgImage,
3000
- ps as TreeView,
3001
- os as UrnInput,
3002
- _ as ValidatedTextInput,
3003
- Ss as getMutableNodeList,
3004
- ni as getSvgElement,
3005
- ss as getTreeNodePathById,
3006
- is as initializeTranslation,
3007
- es as messageBoxDismissAll,
3008
- _i as messageBoxDismissGroup,
3009
- qi as messageBoxDismissSingle,
3010
- Xi as messageBoxError,
3011
- Ji as messageBoxInfo,
3012
- $i as messageBoxSuccess,
3013
- Ki as messageBoxWarn,
3014
- ns as nanoid10,
3015
- Qi as setGlobalErrorMessageBoxOptions,
3016
- jt as uuidV4,
3017
- Cs as validateSvg,
3018
- cs as withPrompt
2984
+ Ns as Chart,
2985
+ as as ColorPicker,
2986
+ vs as ContentHeader,
2987
+ et as DateInput,
2988
+ Te as DateTimeInput,
2989
+ de as FileUpload,
2990
+ os as GradientColorPicker,
2991
+ as as GridColorPicker,
2992
+ ms as ImageUpload,
2993
+ us as InfoBox,
2994
+ ns as MessageBoxContainer,
2995
+ gn as MultiMenu,
2996
+ bs as MultiMenuItem,
2997
+ vn as Pagination,
2998
+ Ss as PeriodPicker,
2999
+ En as Reactable,
3000
+ gs as ReactableWithClientSidePagination,
3001
+ hs as RouteLink,
3002
+ ps as RouteTabs,
3003
+ xn as SelectWithSearch,
3004
+ ys as SelectWithSearchAsync,
3005
+ xs as Slider,
3006
+ Cs as SvgImage,
3007
+ fs as TreeView,
3008
+ ls as UrnInput,
3009
+ ee as ValidatedTextInput,
3010
+ ws as getMutableNodeList,
3011
+ ii as getSvgElement,
3012
+ rs as getTreeNodePathById,
3013
+ ss as initializeTranslation,
3014
+ ts as messageBoxDismissAll,
3015
+ es as messageBoxDismissGroup,
3016
+ _i as messageBoxDismissSingle,
3017
+ qi as messageBoxError,
3018
+ Ki as messageBoxInfo,
3019
+ Ji as messageBoxSuccess,
3020
+ Xi as messageBoxWarn,
3021
+ is as nanoid10,
3022
+ $i as setGlobalErrorMessageBoxOptions,
3023
+ Ht as uuidV4,
3024
+ As as validateSvg,
3025
+ ds as withPrompt
3019
3026
  };
3020
3027
  //# sourceMappingURL=index.js.map