@hortiview/shared-components 0.0.9178 → 0.0.9195

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +62 -1
  2. package/dist/Iconify-B9ptjDuU.js +91 -0
  3. package/dist/_Map-2-rfNHMr.js +59 -0
  4. package/dist/{_baseToString-CW6fzR92.js → _baseToString-xTcv8tEN.js} +12 -12
  5. package/dist/{_equalByTag-D07t7TSb.js → _equalByTag-Bi6Uk01d.js} +13 -13
  6. package/dist/_overArg-BC4qXKbU.js +9 -0
  7. package/dist/components/BasicHeading/BasicHeading.js +1 -1
  8. package/dist/components/DeleteModal/DeleteModal.js +1 -1
  9. package/dist/components/Filter/Filter.js +37 -36
  10. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  11. package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
  12. package/dist/components/FormComponents/FormText/FormText.js +1 -1
  13. package/dist/components/GenericTable/GenericTable.js +16 -15
  14. package/dist/components/Iconify/Iconify.js +2 -2
  15. package/dist/components/Iconify/Iconify.test.js +1 -1
  16. package/dist/components/ListArea/ListArea.js +78 -77
  17. package/dist/components/ListArea/ListAreaService.js +1 -1
  18. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
  19. package/dist/{get-BLA_8TrC.js → get-DAwLfiRB.js} +2 -2
  20. package/dist/{iconify.module-BX040Mko.js → iconify.module-D_I3-4iU.js} +11 -11
  21. package/dist/isArray-thIeLpc5.js +35 -0
  22. package/dist/isPlainObject-BlCDf1Kc.js +18 -0
  23. package/dist/main.d.ts +1 -1
  24. package/dist/main.js +23 -22
  25. package/dist/services/UtilService.js +6 -5
  26. package/dist/services/services.test.js +6 -3
  27. package/package.json +1 -1
  28. package/dist/Iconify-DV7QhHmp.js +0 -96
  29. package/dist/_Map-CMkK6TmZ.js +0 -54
  30. package/dist/isArray-D_4rqWbH.js +0 -43
@@ -4,14 +4,14 @@ import { useState as y } from "react";
4
4
  import { s as c } from "../../genericTable.module-Dk3yy2S3.js";
5
5
  import { u as A } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
- import { I as H } from "../../Iconify-DV7QhHmp.js";
7
+ import { I as H } from "../../Iconify-B9ptjDuU.js";
8
8
  import "../../react-tooltip.min-BzHiZW8k.js";
9
9
  import "../../overflowTooltip.module-YyRN2MGc.js";
10
10
  import "../../basicHeading.module-BYb8xvuk.js";
11
- import "../../isArray-D_4rqWbH.js";
12
- import "../../_baseToString-CW6fzR92.js";
13
- import "../../_equalByTag-D07t7TSb.js";
14
- import "../../iconify.module-BX040Mko.js";
11
+ import "../../isArray-thIeLpc5.js";
12
+ import "../../_baseToString-xTcv8tEN.js";
13
+ import "../../_equalByTag-Bi6Uk01d.js";
14
+ import "../../iconify.module-D_I3-4iU.js";
15
15
  import { SearchBar as K } from "../SearchBar/SearchBar.js";
16
16
  import "../../listArea.module-BhO_OJ1S.js";
17
17
  import "../../verticalDivider.module-C3_GL-fH.js";
@@ -34,21 +34,22 @@ import "react-hook-form";
34
34
  import "../../formDatePicker.module-BV3ma_7y.js";
35
35
  import "../../formSelect.module-DMHh1bp8.js";
36
36
  import "../../formText.module-C0by6_DK.js";
37
- const Ft = ({
37
+ import "../../isPlainObject-BlCDf1Kc.js";
38
+ const kt = ({
38
39
  clearFilterText: f,
39
- closeCallback: s,
40
- currentFilter: e,
41
- filterButtonAsIcon: m = !1,
40
+ closeCallback: m,
41
+ currentFilter: i,
42
+ filterButtonAsIcon: s = !1,
42
43
  filterButtonText: n,
43
- filterModalTitle: i,
44
+ filterModalTitle: e,
44
45
  filters: p,
45
46
  modalCancelButtonText: g,
46
47
  modalConfirmButtonText: u,
47
48
  useModal: l = !0,
48
49
  selectAllLabel: r
49
50
  }) => {
50
- const { isDesktop: w } = A(), [O, v] = y(!1), [d, x] = y(e), [_, S] = y(0), F = () => {
51
- v(!1), s(d), S(
51
+ const { isDesktop: w } = A(), [O, v] = y(!1), [d, x] = y(i), [_, S] = y(0), F = () => {
52
+ v(!1), m(d), S(
52
53
  d.reduce((a, { filterValue: o }) => o === void 0 ? a : typeof o == "boolean" ? o ? a + 1 : a : Array.isArray(o) ? a + o.length : typeof o == "string" && o.length ? a + 1 : a, 0)
53
54
  );
54
55
  }, D = () => {
@@ -58,14 +59,14 @@ const Ft = ({
58
59
  ...d.filter((I) => I.id !== a.id),
59
60
  a
60
61
  ];
61
- x(o), l || s(o);
62
+ x(o), l || m(o);
62
63
  };
63
64
  return l ? /* @__PURE__ */ C(T, { children: [
64
65
  /* @__PURE__ */ t(
65
66
  P,
66
67
  {
67
68
  filterButtonText: n,
68
- filterButtonAsIcon: m,
69
+ filterButtonAsIcon: s,
69
70
  count: _,
70
71
  onClick: () => v(!0)
71
72
  }
@@ -75,7 +76,7 @@ const Ft = ({
75
76
  {
76
77
  open: O,
77
78
  onClose: F,
78
- title: i,
79
+ title: e,
79
80
  modalSize: w ? "small" : "fullscreen",
80
81
  headerActions: /* @__PURE__ */ t(h, { variant: "text", onClick: D, children: f }),
81
82
  dismissiveButton: /* @__PURE__ */ t(h, { variant: "outlined", onClick: () => v(!1), children: g }),
@@ -84,12 +85,12 @@ const Ft = ({
84
85
  }
85
86
  )
86
87
  ] }) : /* @__PURE__ */ t(B, { secondaryAlign: "center", fullWidth: !0, children: b(p, d, k, r, !1) });
87
- }, b = (f, s, e, m, n = !0) => f.map(({ id: i, title: p, availableOptions: g, icon: u, type: l }) => /* @__PURE__ */ C(B, { fullWidth: !0, secondaryAlign: "center", children: [
88
+ }, b = (f, m, i, s, n = !0) => f.map(({ id: e, title: p, availableOptions: g, icon: u, type: l }) => /* @__PURE__ */ C(B, { fullWidth: !0, secondaryAlign: "center", children: [
88
89
  u ? /* @__PURE__ */ t(H, { icon: u, iconSize: "medium" }) : null,
89
90
  l === "select" && /* @__PURE__ */ t(
90
91
  W,
91
92
  {
92
- selectAllLabel: m,
93
+ selectAllLabel: s,
93
94
  className: n ? void 0 : c.dense,
94
95
  variant: "outlined",
95
96
  options: g,
@@ -97,11 +98,11 @@ const Ft = ({
97
98
  multiSelect: !0,
98
99
  textKey: "text",
99
100
  valueKey: "id",
100
- value: s.find((r) => r.id === i)?.filterValue ?? [],
101
- onChange: (r) => e({ id: i, type: l, filterValue: r }),
101
+ value: m.find((r) => r.id === e)?.filterValue ?? [],
102
+ onChange: (r) => i({ id: e, type: l, filterValue: r }),
102
103
  hoisted: !0,
103
104
  menuMaxHeight: "300px",
104
- disabled: i === "location",
105
+ disabled: e === "location",
105
106
  showOptionFilter: !1,
106
107
  dense: !n,
107
108
  fixedHeightInput: !n,
@@ -112,34 +113,34 @@ const Ft = ({
112
113
  j,
113
114
  {
114
115
  label: p,
115
- onChange: (r) => e({ id: i, type: l, filterValue: r }),
116
- checked: !!s.find((r) => r.id === i)?.filterValue
116
+ onChange: (r) => i({ id: e, type: l, filterValue: r }),
117
+ checked: !!m.find((r) => r.id === e)?.filterValue
117
118
  }
118
119
  ),
119
120
  l === "search" && /* @__PURE__ */ t(
120
121
  K,
121
122
  {
122
123
  placeholder: p,
123
- searchTerm: s.find((r) => r.id === i)?.filterValue,
124
- setSearchTerm: (r) => e({ id: i, type: l, filterValue: r })
124
+ searchTerm: m.find((r) => r.id === e)?.filterValue,
125
+ setSearchTerm: (r) => i({ id: e, type: l, filterValue: r })
125
126
  }
126
127
  )
127
- ] }, i)), P = ({
128
+ ] }, e)), P = ({
128
129
  filterButtonText: f,
129
- filterButtonAsIcon: s,
130
- count: e,
131
- onClick: m
130
+ filterButtonAsIcon: m,
131
+ count: i,
132
+ onClick: s
132
133
  }) => {
133
134
  const { isDesktop: n } = A();
134
- return s ? /* @__PURE__ */ t(
135
+ return m ? /* @__PURE__ */ t(
135
136
  z,
136
137
  {
137
138
  icon: "filter_list_alt",
138
- onClick: m,
139
- badge: e !== 0 && /* @__PURE__ */ t(
139
+ onClick: s,
140
+ badge: i !== 0 && /* @__PURE__ */ t(
140
141
  N,
141
142
  {
142
- counter: e,
143
+ counter: i,
143
144
  className: c.filterBadge,
144
145
  themeColor: "secondary",
145
146
  "data-testid": "filter-badge"
@@ -158,16 +159,16 @@ const Ft = ({
158
159
  variant: "outlined",
159
160
  themeColor: "primary",
160
161
  leadingIcon: "filter_list_alt",
161
- onClick: m,
162
+ onClick: s,
162
163
  className: c.filterButton,
163
164
  fullWidth: !n,
164
165
  children: f
165
166
  }
166
167
  ),
167
- e !== 0 && /* @__PURE__ */ t(
168
+ i !== 0 && /* @__PURE__ */ t(
168
169
  N,
169
170
  {
170
- counter: e,
171
+ counter: i,
171
172
  className: c.filterBadge,
172
173
  themeColor: "secondary",
173
174
  "data-testid": "filter-badge"
@@ -178,5 +179,5 @@ const Ft = ({
178
179
  );
179
180
  };
180
181
  export {
181
- Ft as Filter
182
+ kt as Filter
182
183
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as X, jsxs as va } from "react/jsx-runtime";
2
2
  import { Datepicker as fa, Divider as ga, Padding as pa, Button as ba } from "@element/react-components";
3
- import { g as wa } from "../../../get-BLA_8TrC.js";
3
+ import { g as wa } from "../../../get-DAwLfiRB.js";
4
4
  import { useMemo as S, useState as ya } from "react";
5
5
  import { useFormContext as Pa, Controller as $a } from "react-hook-form";
6
6
  import { s as L } from "../../../formDatePicker.module-BV3ma_7y.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, Fragment as $, jsxs as b } from "react/jsx-runtime";
2
2
  import { Select as k } from "@element/react-components";
3
- import { g as h } from "../../../get-BLA_8TrC.js";
4
- import { i as z } from "../../../isArray-D_4rqWbH.js";
3
+ import { g as h } from "../../../get-DAwLfiRB.js";
4
+ import { i as z } from "../../../isArray-thIeLpc5.js";
5
5
  import { useMemo as S } from "react";
6
6
  import { useFormContext as B, Controller as C } from "react-hook-form";
7
7
  import { H as G } from "../../../react-tooltip.min-BzHiZW8k.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as S, jsxs as J } from "react/jsx-runtime";
2
2
  import { Textfield as K, TypoCaption as O } from "@element/react-components";
3
- import { g as B } from "../../../get-BLA_8TrC.js";
3
+ import { g as B } from "../../../get-DAwLfiRB.js";
4
4
  import { useState as A, useCallback as Q, useMemo as c, useEffect as U } from "react";
5
5
  import { useFormContext as X, Controller as j } from "react-hook-form";
6
6
  import { s as i } from "../../../formText.module-C0by6_DK.js";
@@ -4,13 +4,13 @@ import { Fragment as C } from "react";
4
4
  import { a as t } from "../../genericTable.module-Dk3yy2S3.js";
5
5
  import { u as j } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
- import "../../iconify.module-BX040Mko.js";
8
- import "../../isArray-D_4rqWbH.js";
7
+ import "../../iconify.module-D_I3-4iU.js";
8
+ import "../../isArray-thIeLpc5.js";
9
9
  import "../../react-tooltip.min-BzHiZW8k.js";
10
10
  import "../../overflowTooltip.module-YyRN2MGc.js";
11
11
  import "../../basicHeading.module-BYb8xvuk.js";
12
- import "../../_baseToString-CW6fzR92.js";
13
- import "../../_equalByTag-D07t7TSb.js";
12
+ import "../../_baseToString-xTcv8tEN.js";
13
+ import "../../_equalByTag-Bi6Uk01d.js";
14
14
  import "../../searchBar.module-9gKyrZRT.js";
15
15
  import "../../listArea.module-BhO_OJ1S.js";
16
16
  import "../../verticalDivider.module-C3_GL-fH.js";
@@ -32,15 +32,16 @@ import "react-hook-form";
32
32
  import "../../formDatePicker.module-BV3ma_7y.js";
33
33
  import "../../formSelect.module-DMHh1bp8.js";
34
34
  import "../../formText.module-C0by6_DK.js";
35
+ import "../../isPlainObject-BlCDf1Kc.js";
35
36
  import { useGenerateColumns as x, useGenerateTableData as _ } from "./GenericTableService.js";
36
37
  import { GenericCardList as A } from "./Mobile/GenericCardList.js";
37
- const gr = ({
38
- data: l = [],
39
- hiddenColumns: n = [],
38
+ const hr = ({
39
+ data: p = [],
40
+ hiddenColumns: l = [],
40
41
  order: f = [],
41
42
  cellTemplates: g = void 0,
42
43
  tableActions: i = [],
43
- noContentText: p = "No data available",
44
+ noContentText: n = "No data available",
44
45
  headerTranslation: h = (a) => a,
45
46
  pagination: y = !1,
46
47
  getRowActions: s = void 0,
@@ -50,7 +51,7 @@ const gr = ({
50
51
  cardSubTitleColumn: T
51
52
  }) => {
52
53
  const { isDesktop: a } = j(), o = x({
53
- data: l,
54
+ data: p,
54
55
  order: f,
55
56
  cellTemplates: g,
56
57
  headerTranslation: h,
@@ -59,7 +60,7 @@ const gr = ({
59
60
  cardTitleColumn: v,
60
61
  cardSubTitleColumn: T
61
62
  }), d = _({
62
- data: l,
63
+ data: p,
63
64
  getRowActions: s
64
65
  });
65
66
  return a ? /* @__PURE__ */ r(D, { elevation: 1, className: t.elevation, "data-testid": "generic-table-elevation", children: /* @__PURE__ */ r(
@@ -70,7 +71,7 @@ const gr = ({
70
71
  fullWidth: !0,
71
72
  alwaysUseDivTags: !0,
72
73
  layout: "standard",
73
- hiddenColumns: n,
74
+ hiddenColumns: l,
74
75
  data: d,
75
76
  columns: o,
76
77
  leadingContent: e && i?.length === 0 ? /* @__PURE__ */ r(u, { title: e }) : i?.length > 0 && /* @__PURE__ */ r(
@@ -102,7 +103,7 @@ const gr = ({
102
103
  primaryAlign: "center",
103
104
  secondaryAlign: "center",
104
105
  className: t.emptyTable,
105
- children: /* @__PURE__ */ r(k, { children: p })
106
+ children: /* @__PURE__ */ r(k, { children: n })
106
107
  }
107
108
  )
108
109
  }
@@ -111,11 +112,11 @@ const gr = ({
111
112
  {
112
113
  data: d,
113
114
  columns: o,
114
- hiddenColumns: n,
115
- noContentText: p
115
+ hiddenColumns: l,
116
+ noContentText: n
116
117
  }
117
118
  ) });
118
119
  };
119
120
  export {
120
- gr as GenericTable
121
+ hr as GenericTable
121
122
  };
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@element/react-components";
3
- import { I as f } from "../../Iconify-DV7QhHmp.js";
3
+ import { I as f } from "../../Iconify-B9ptjDuU.js";
4
4
  import "../../enums/AvailableCustomIcons.js";
5
- import "../../iconify.module-BX040Mko.js";
5
+ import "../../iconify.module-D_I3-4iU.js";
6
6
  export {
7
7
  f as Iconify
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { I as c } from "../../Iconify-DV7QhHmp.js";
2
+ import { I as c } from "../../Iconify-B9ptjDuU.js";
3
3
  import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
4
4
  import { a as r, w as s, s as i } from "../../react.esm-Dy4VzU4L.js";
5
5
  import { d as f, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
@@ -1,12 +1,13 @@
1
1
  import { jsx as b, jsxs as S, Fragment as tr } from "react/jsx-runtime";
2
2
  import { Elevation as ir, Divider as x, List as sr } from "@element/react-components";
3
- import { g as ur } from "../../_commonjsHelpers-CT_km90n.js";
4
- import { i as fr, d as lr } from "../../_baseToString-CW6fzR92.js";
5
- import { _ as vr, a as E, b as yr, c as Q, d as Y } from "../../get-BLA_8TrC.js";
6
- import { _ as Z, a as pr, b as _r } from "../../_equalByTag-D07t7TSb.js";
7
- import { a as c, b as or, d as $r } from "../../isArray-D_4rqWbH.js";
8
- import { i as W, a as z, b as V, _ as gr, c as cr, d as Ar } from "../../iconify.module-BX040Mko.js";
9
- import { _ as br, i as M } from "../../Iconify-DV7QhHmp.js";
3
+ import { g as fr } from "../../_commonjsHelpers-CT_km90n.js";
4
+ import { i as ur, d as lr } from "../../_baseToString-xTcv8tEN.js";
5
+ import { _ as vr, a as E, b as pr, c as Q, d as Y } from "../../get-DAwLfiRB.js";
6
+ import { _ as Z, a as yr, b as _r } from "../../_equalByTag-Bi6Uk01d.js";
7
+ import { a as c, b as or } from "../../isArray-thIeLpc5.js";
8
+ import { a as W, b as z, c as V, _ as $r, i as gr, d as cr } from "../../iconify.module-D_I3-4iU.js";
9
+ import { _ as Ar, i as M } from "../../Iconify-B9ptjDuU.js";
10
+ import { c as br } from "../../_Map-2-rfNHMr.js";
10
11
  import { useState as dr, useMemo as F } from "react";
11
12
  import { SearchBar as hr } from "../SearchBar/SearchBar.js";
12
13
  import { getGroupedItems as mr, getListedItems as Or } from "./ListAreaService.js";
@@ -50,30 +51,30 @@ function Xr(r, n) {
50
51
  }
51
52
  var k = Xr, Jr = Ur, Qr = W, Yr = c, Zr = z, Wr = k, zr = V, Vr = Object.prototype, kr = Vr.hasOwnProperty;
52
53
  function jr(r, n) {
53
- var a = Yr(r), e = !a && Qr(r), i = !a && !e && Zr(r), t = !a && !e && !i && zr(r), s = a || e || i || t, u = s ? Jr(r.length, String) : [], f = u.length;
54
+ var a = Yr(r), e = !a && Qr(r), i = !a && !e && Zr(r), t = !a && !e && !i && zr(r), s = a || e || i || t, f = s ? Jr(r.length, String) : [], u = f.length;
54
55
  for (var l in r)
55
56
  (n || kr.call(r, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
56
57
  (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
57
58
  i && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
58
59
  t && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
59
- Wr(l, f))) && u.push(l);
60
- return u;
60
+ Wr(l, u))) && f.push(l);
61
+ return f;
61
62
  }
62
- var rn = jr, nn = rn, an = br, en = M;
63
+ var rn = jr, nn = rn, an = Ar, en = M;
63
64
  function tn(r) {
64
65
  return en(r) ? nn(r) : an(r);
65
66
  }
66
- var T = tn, sn = Tr, un = Dr, fn = T;
67
+ var T = tn, sn = Tr, fn = Dr, un = T;
67
68
  function ln(r) {
68
- return sn(r, fn, un);
69
+ return sn(r, un, fn);
69
70
  }
70
- var vn = ln, C = vn, yn = 1, pn = Object.prototype, _n = pn.hasOwnProperty;
71
+ var vn = ln, C = vn, pn = 1, yn = Object.prototype, _n = yn.hasOwnProperty;
71
72
  function on(r, n, a, e, i, t) {
72
- var s = a & yn, u = C(r), f = u.length, l = C(n), p = l.length;
73
- if (f != p && !s)
73
+ var s = a & pn, f = C(r), u = f.length, l = C(n), y = l.length;
74
+ if (u != y && !s)
74
75
  return !1;
75
- for (var y = f; y--; ) {
76
- var v = u[y];
76
+ for (var p = u; p--; ) {
77
+ var v = f[p];
77
78
  if (!(s ? v in n : _n.call(n, v)))
78
79
  return !1;
79
80
  }
@@ -82,8 +83,8 @@ function on(r, n, a, e, i, t) {
82
83
  return _ == n && g == r;
83
84
  var o = !0;
84
85
  t.set(r, n), t.set(n, r);
85
- for (var $ = s; ++y < f; ) {
86
- v = u[y];
86
+ for (var $ = s; ++p < u; ) {
87
+ v = f[p];
87
88
  var d = r[v], h = n[v];
88
89
  if (e)
89
90
  var B = s ? e(h, d, v, n, r, t) : e(d, h, v, r, n, t);
@@ -99,20 +100,20 @@ function on(r, n, a, e, i, t) {
99
100
  }
100
101
  return t.delete(r), t.delete(n), o;
101
102
  }
102
- var $n = on, w = Z, gn = pr, cn = _r, An = $n, I = gr, G = c, q = z, bn = V, dn = 1, D = "[object Arguments]", R = "[object Array]", P = "[object Object]", hn = Object.prototype, U = hn.hasOwnProperty;
103
+ var $n = on, w = Z, gn = yr, cn = _r, An = $n, I = $r, G = c, q = z, bn = V, dn = 1, D = "[object Arguments]", R = "[object Array]", P = "[object Object]", hn = Object.prototype, U = hn.hasOwnProperty;
103
104
  function mn(r, n, a, e, i, t) {
104
- var s = G(r), u = G(n), f = s ? R : I(r), l = u ? R : I(n);
105
- f = f == D ? P : f, l = l == D ? P : l;
106
- var p = f == P, y = l == P, v = f == l;
105
+ var s = G(r), f = G(n), u = s ? R : I(r), l = f ? R : I(n);
106
+ u = u == D ? P : u, l = l == D ? P : l;
107
+ var y = u == P, p = l == P, v = u == l;
107
108
  if (v && q(r)) {
108
109
  if (!q(n))
109
110
  return !1;
110
- s = !0, p = !1;
111
+ s = !0, y = !1;
111
112
  }
112
- if (v && !p)
113
- return t || (t = new w()), s || bn(r) ? gn(r, n, a, e, i, t) : cn(r, n, f, a, e, i, t);
113
+ if (v && !y)
114
+ return t || (t = new w()), s || bn(r) ? gn(r, n, a, e, i, t) : cn(r, n, u, a, e, i, t);
114
115
  if (!(a & dn)) {
115
- var _ = p && U.call(r, "__wrapped__"), g = y && U.call(n, "__wrapped__");
116
+ var _ = y && U.call(r, "__wrapped__"), g = p && U.call(n, "__wrapped__");
116
117
  if (_ || g) {
117
118
  var o = _ ? r.value() : r, $ = g ? n.value() : n;
118
119
  return t || (t = new w()), i(o, $, a, e, t);
@@ -130,27 +131,27 @@ function Tn(r, n, a, e) {
130
131
  if (r == null)
131
132
  return !t;
132
133
  for (r = Object(r); i--; ) {
133
- var u = a[i];
134
- if (s && u[2] ? u[1] !== r[u[0]] : !(u[0] in r))
134
+ var f = a[i];
135
+ if (s && f[2] ? f[1] !== r[f[0]] : !(f[0] in r))
135
136
  return !1;
136
137
  }
137
138
  for (; ++i < t; ) {
138
- u = a[i];
139
- var f = u[0], l = r[f], p = u[1];
140
- if (s && u[2]) {
141
- if (l === void 0 && !(f in r))
139
+ f = a[i];
140
+ var u = f[0], l = r[u], y = f[1];
141
+ if (s && f[2]) {
142
+ if (l === void 0 && !(u in r))
142
143
  return !1;
143
144
  } else {
144
- var y = new wn();
145
+ var p = new wn();
145
146
  if (e)
146
- var v = e(l, p, f, r, n, y);
147
- if (!(v === void 0 ? Ln(p, l, En | Mn, e, y) : v))
147
+ var v = e(l, y, u, r, n, p);
148
+ if (!(v === void 0 ? Ln(y, l, En | Mn, e, p) : v))
148
149
  return !1;
149
150
  }
150
151
  }
151
152
  return !0;
152
153
  }
153
- var Bn = Tn, Sn = $r;
154
+ var Bn = Tn, Sn = br;
154
155
  function xn(r) {
155
156
  return r === r && !Sn(r);
156
157
  }
@@ -179,7 +180,7 @@ var Hn = Un;
179
180
  function Nn(r, n) {
180
181
  return r != null && n in Object(r);
181
182
  }
182
- var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = k, Wn = cr, zn = E;
183
+ var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = k, Wn = gr, zn = E;
183
184
  function Vn(r, n, a) {
184
185
  n = Jn(n, r);
185
186
  for (var e = -1, i = n.length, t = !1; ++e < i; ) {
@@ -194,14 +195,14 @@ var kn = Vn, jn = Xn, ra = kn;
194
195
  function na(r, n) {
195
196
  return r != null && ra(r, n, jn);
196
197
  }
197
- var aa = na, ea = rr, ta = yr, ia = aa, sa = Q, ua = nr, fa = ar, la = E, va = 1, ya = 2;
198
- function pa(r, n) {
199
- return sa(r) && ua(n) ? fa(la(r), n) : function(a) {
198
+ var aa = na, ea = rr, ta = pr, ia = aa, sa = Q, fa = nr, ua = ar, la = E, va = 1, pa = 2;
199
+ function ya(r, n) {
200
+ return sa(r) && fa(n) ? ua(la(r), n) : function(a) {
200
201
  var e = ta(a, r);
201
- return e === void 0 && e === n ? ia(a, r) : ea(n, e, va | ya);
202
+ return e === void 0 && e === n ? ia(a, r) : ea(n, e, va | pa);
202
203
  };
203
204
  }
204
- var _a = pa;
205
+ var _a = ya;
205
206
  function oa(r) {
206
207
  return r;
207
208
  }
@@ -228,9 +229,9 @@ function Sa(r) {
228
229
  var xa = Sa;
229
230
  function Fa(r) {
230
231
  return function(n, a, e) {
231
- for (var i = -1, t = Object(n), s = e(n), u = s.length; u--; ) {
232
- var f = s[r ? u : ++i];
233
- if (a(t[f], f, t) === !1)
232
+ for (var i = -1, t = Object(n), s = e(n), f = s.length; f--; ) {
233
+ var u = s[r ? f : ++i];
234
+ if (a(t[u], u, t) === !1)
234
235
  break;
235
236
  }
236
237
  return n;
@@ -266,47 +267,47 @@ function ja(r, n) {
266
267
  r[a] = r[a].value;
267
268
  return r;
268
269
  }
269
- var re = ja, N = fr;
270
+ var re = ja, N = ur;
270
271
  function ne(r, n) {
271
272
  if (r !== n) {
272
- var a = r !== void 0, e = r === null, i = r === r, t = N(r), s = n !== void 0, u = n === null, f = n === n, l = N(n);
273
- if (!u && !l && !t && r > n || t && s && f && !u && !l || e && s && f || !a && f || !i)
273
+ var a = r !== void 0, e = r === null, i = r === r, t = N(r), s = n !== void 0, f = n === null, u = n === n, l = N(n);
274
+ if (!f && !l && !t && r > n || t && s && u && !f && !l || e && s && u || !a && u || !i)
274
275
  return 1;
275
- if (!e && !t && !l && r < n || l && a && i && !e && !t || u && a && i || !s && i || !f)
276
+ if (!e && !t && !l && r < n || l && a && i && !e && !t || f && a && i || !s && i || !u)
276
277
  return -1;
277
278
  }
278
279
  return 0;
279
280
  }
280
281
  var ae = ne, ee = ae;
281
282
  function te(r, n, a) {
282
- for (var e = -1, i = r.criteria, t = n.criteria, s = i.length, u = a.length; ++e < s; ) {
283
- var f = ee(i[e], t[e]);
284
- if (f) {
285
- if (e >= u)
286
- return f;
283
+ for (var e = -1, i = r.criteria, t = n.criteria, s = i.length, f = a.length; ++e < s; ) {
284
+ var u = ee(i[e], t[e]);
285
+ if (u) {
286
+ if (e >= f)
287
+ return u;
287
288
  var l = a[e];
288
- return f * (l == "desc" ? -1 : 1);
289
+ return u * (l == "desc" ? -1 : 1);
289
290
  }
290
291
  }
291
292
  return r.index - n.index;
292
293
  }
293
- var ie = te, L = lr, se = Y, ue = xa, fe = ka, le = re, ve = Ar, ye = ie, pe = er, _e = c;
294
+ var ie = te, L = lr, se = Y, fe = xa, ue = ka, le = re, ve = cr, pe = ie, ye = er, _e = c;
294
295
  function oe(r, n, a) {
295
296
  n.length ? n = L(n, function(t) {
296
297
  return _e(t) ? function(s) {
297
298
  return se(s, t.length === 1 ? t[0] : t);
298
299
  } : t;
299
- }) : n = [pe];
300
+ }) : n = [ye];
300
301
  var e = -1;
301
- n = L(n, ve(ue));
302
- var i = fe(r, function(t, s, u) {
303
- var f = L(n, function(l) {
302
+ n = L(n, ve(fe));
303
+ var i = ue(r, function(t, s, f) {
304
+ var u = L(n, function(l) {
304
305
  return l(t);
305
306
  });
306
- return { criteria: f, index: ++e, value: t };
307
+ return { criteria: u, index: ++e, value: t };
307
308
  });
308
309
  return le(i, function(t, s) {
309
- return ye(t, s, a);
310
+ return pe(t, s, a);
310
311
  });
311
312
  }
312
313
  var $e = oe, ge = $e, X = c;
@@ -314,7 +315,7 @@ function ce(r, n, a, e) {
314
315
  return r == null ? [] : (X(n) || (n = n == null ? [] : [n]), a = e ? void 0 : a, X(a) || (a = a == null ? [] : [a]), ge(r, n, a));
315
316
  }
316
317
  var Ae = ce;
317
- const J = /* @__PURE__ */ ur(Ae), xe = ({
318
+ const J = /* @__PURE__ */ fr(Ae), Fe = ({
318
319
  elements: r,
319
320
  pathname: n,
320
321
  isGrouped: a = !1,
@@ -322,19 +323,19 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
322
323
  searchPlaceholder: i = "",
323
324
  isIntegrated: t = !1,
324
325
  isSorted: s = !0,
325
- itemClassName: u = "",
326
- maxHeight: f = "100%",
326
+ itemClassName: f = "",
327
+ maxHeight: u = "100%",
327
328
  noElementsView: l,
328
- routerLinkElement: p
329
+ routerLinkElement: y
329
330
  }) => {
330
- const [y, v] = dr(""), _ = F(() => {
331
- if (!y)
331
+ const [p, v] = dr(""), _ = F(() => {
332
+ if (!p)
332
333
  return s ? J(r, "title") : r;
333
- const o = r.filter(($) => $.title.toLowerCase().includes(y.toLowerCase()) || $.subTitle?.toLowerCase().includes(y.toLowerCase()) || $.overlineTitle?.toLowerCase().includes(y.toLowerCase()));
334
+ const o = r.filter(($) => $.title.toLowerCase().includes(p.toLowerCase()) || $.subTitle?.toLowerCase().includes(p.toLowerCase()) || $.overlineTitle?.toLowerCase().includes(p.toLowerCase()));
334
335
  return s ? J(o, "title") : o;
335
- }, [y, r, s]), g = F(
336
- () => a ? mr(_, n, u, p) : Or(_, n, u, p),
337
- [_, n, u, a, p]
336
+ }, [p, r, s]), g = F(
337
+ () => a ? mr(_, n, f, y) : Or(_, n, f, y),
338
+ [_, n, f, a, y]
338
339
  );
339
340
  return /* @__PURE__ */ b(ir, { elevation: t ? 0 : 1, className: `${A.mainElevation}`, children: /* @__PURE__ */ S("div", { className: A.fullWidth, children: [
340
341
  e && r.length > 0 && /* @__PURE__ */ S(tr, { children: [
@@ -342,7 +343,7 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
342
343
  /* @__PURE__ */ b(
343
344
  hr,
344
345
  {
345
- searchTerm: y,
346
+ searchTerm: p,
346
347
  setSearchTerm: v,
347
348
  className: A.searchbar,
348
349
  placeholder: i
@@ -356,12 +357,12 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
356
357
  {
357
358
  items: g,
358
359
  className: `${A.list} ${A.primaryText} ${a ? "" : A.roundedBottom}`,
359
- style: { maxHeight: f },
360
+ style: { maxHeight: u },
360
361
  showDivider: !1
361
362
  }
362
363
  )
363
364
  ] }) });
364
365
  };
365
366
  export {
366
- xe as ListArea
367
+ Fe as ListArea
367
368
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as B } from "react/jsx-runtime";
2
2
  import { TypoButton as C, Group as b, TypoSubtitle as j, TypoBody as O, Icon as G } from "@element/react-components";
3
- import { I as L } from "../../Iconify-DV7QhHmp.js";
3
+ import { I as L } from "../../Iconify-B9ptjDuU.js";
4
4
  import { AvailableCustomIcons as S } from "../../enums/AvailableCustomIcons.js";
5
5
  import { s as n } from "../../listArea.module-BhO_OJ1S.js";
6
6
  const D = (t, a, c, l) => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
2
  import { TypoBody as e } from "@element/react-components";
3
3
  import { s as r } from "../../../bigLoadingSpinner.module-GgbFol8k.js";
4
- import { I as n } from "../../../Iconify-DV7QhHmp.js";
4
+ import { I as n } from "../../../Iconify-B9ptjDuU.js";
5
5
  const s = ({ text: o }) => /* @__PURE__ */ a("div", { className: r.bigLoadSpinnerCard, role: "progressbar", "data-testid": "loading-spinner", children: [
6
6
  /* @__PURE__ */ i(n, { icon: "hortiview", className: r.logo, "data-testid": "logo-icon" }),
7
7
  /* @__PURE__ */ i(e, { tag: "p", bold: !0, level: 1, className: r.bigLoadSpinnerCardText, children: o })
@@ -1,6 +1,6 @@
1
1
  import { g as a } from "./_commonjsHelpers-CT_km90n.js";
2
- import { a as i } from "./isArray-D_4rqWbH.js";
3
- import { i as e, _ as o, a as f } from "./_baseToString-CW6fzR92.js";
2
+ import { a as i } from "./isArray-thIeLpc5.js";
3
+ import { i as e, _ as o, a as f } from "./_baseToString-xTcv8tEN.js";
4
4
  var g = i, y = e, u = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/;
5
5
  function _(r, t) {
6
6
  if (g(r))