@owp/core 1.24.3 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/colors.d.ts +1 -0
  2. package/colors.js +1 -0
  3. package/context.d.ts +1 -0
  4. package/context.js +1 -0
  5. package/dist/OwpAppProvider-F48yHfyI.js +22 -0
  6. package/dist/OwpAppProvider-F48yHfyI.js.map +1 -0
  7. package/dist/OwpStoreProvider-CqHkIIUm.js +34 -0
  8. package/dist/OwpStoreProvider-CqHkIIUm.js.map +1 -0
  9. package/dist/{OwpUtils-DgBOzRu6.js → OwpUtils-DxEd-Pjo.js} +183 -193
  10. package/dist/OwpUtils-DxEd-Pjo.js.map +1 -0
  11. package/dist/{QuickPanel-GgHx7ox9.js → QuickPanel-DNAisp_R.js} +3 -3
  12. package/dist/{QuickPanel-GgHx7ox9.js.map → QuickPanel-DNAisp_R.js.map} +1 -1
  13. package/dist/colors.js +38 -0
  14. package/dist/colors.js.map +1 -0
  15. package/dist/constants.js +9 -8
  16. package/dist/constants.js.map +1 -1
  17. package/dist/context.js +28 -0
  18. package/dist/context.js.map +1 -0
  19. package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +1751 -0
  20. package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +1 -0
  21. package/dist/hooks.js +28 -27
  22. package/dist/hooks.js.map +1 -1
  23. package/dist/{index-DP0dZ8Y6.js → index-fDrAKBzK.js} +18170 -20980
  24. package/dist/index-fDrAKBzK.js.map +1 -0
  25. package/dist/index.js +127 -134
  26. package/dist/index.js.map +1 -1
  27. package/dist/isTypedArray-DPyC49cI.js +411 -0
  28. package/dist/isTypedArray-DPyC49cI.js.map +1 -0
  29. package/dist/lazyLoadedSlices-CsgnywgU.js +2815 -0
  30. package/dist/lazyLoadedSlices-CsgnywgU.js.map +1 -0
  31. package/dist/owp-app.css +1 -1
  32. package/dist/storageKeys-DRzte9LZ.js +15 -0
  33. package/dist/storageKeys-DRzte9LZ.js.map +1 -0
  34. package/dist/store.js +7 -0
  35. package/dist/store.js.map +1 -0
  36. package/dist/toUpper-BhzrnIm3.js +16 -0
  37. package/dist/toUpper-BhzrnIm3.js.map +1 -0
  38. package/dist/treeGrid-CjB04cBq.js +35 -0
  39. package/dist/treeGrid-CjB04cBq.js.map +1 -0
  40. package/dist/treeGridUtil-DaqTz5v3.js +771 -0
  41. package/dist/treeGridUtil-DaqTz5v3.js.map +1 -0
  42. package/dist/types/colors/index.d.ts +2 -0
  43. package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  44. package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +1 -0
  45. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +1 -0
  46. package/dist/types/components/OwpBarcodeInput/index.d.ts +1 -0
  47. package/dist/types/components/OwpButtonDelete/OwpButtonDelete.d.ts +12 -0
  48. package/dist/types/components/OwpButtonDelete/index.d.ts +1 -12
  49. package/dist/types/components/OwpButtonSave/OwpButtonSave.d.ts +12 -0
  50. package/dist/types/components/OwpButtonSave/index.d.ts +1 -12
  51. package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +26 -0
  52. package/dist/types/components/OwpCommonDialog/index.d.ts +1 -26
  53. package/dist/types/components/OwpExportExcelButton/index.d.ts +1 -0
  54. package/dist/types/components/OwpFileUploadButton/index.d.ts +1 -0
  55. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +9 -0
  56. package/dist/types/components/OwpMrtTable/index.d.ts +1 -9
  57. package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +12 -0
  58. package/dist/types/components/OwpNumberField/index.d.ts +1 -12
  59. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +22 -0
  60. package/dist/types/components/OwpOptionSelector/index.d.ts +1 -22
  61. package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +17 -0
  62. package/dist/types/components/OwpPageContent/index.d.ts +1 -17
  63. package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +11 -0
  64. package/dist/types/components/OwpPageLockLoading/index.d.ts +1 -11
  65. package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +15 -0
  66. package/dist/types/components/OwpPageTitle/index.d.ts +1 -15
  67. package/dist/types/components/OwpPicker/index.d.ts +5 -0
  68. package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +17 -0
  69. package/dist/types/components/OwpSearchFilter/index.d.ts +1 -17
  70. package/dist/types/components/OwpSection/OwpSection.d.ts +24 -0
  71. package/dist/types/components/OwpSection/index.d.ts +1 -24
  72. package/dist/types/components/OwpTable/index.d.ts +3 -0
  73. package/dist/types/components/OwpTextField/index.d.ts +1 -0
  74. package/dist/types/components/OwpTreeGridExcelButton/OwpTreeGridExcelButton.d.ts +12 -0
  75. package/dist/types/components/OwpTreeGridExcelButton/index.d.ts +1 -12
  76. package/dist/types/components/OwpTreeView/index.d.ts +1 -0
  77. package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +16 -0
  78. package/dist/types/components/OwpYesNoSelector/index.d.ts +1 -16
  79. package/dist/types/components/OwpZoomImageSlider/index.d.ts +1 -0
  80. package/dist/types/components/shared-components/tabs/OwpTab.d.ts +1 -1
  81. package/dist/types/components/shared-components/tabs/OwpTabs.d.ts +1 -1
  82. package/dist/types/context/OwpCoreProvider.d.ts +21 -0
  83. package/dist/types/context/index.d.ts +2 -0
  84. package/dist/types/index.d.ts +2 -6
  85. package/dist/types/store/OwpStoreProvider.d.ts +12 -0
  86. package/dist/types/store/index.d.ts +3 -0
  87. package/dist/useStorage-B4ZrPct1.js +65 -0
  88. package/dist/useStorage-B4ZrPct1.js.map +1 -0
  89. package/dist/useTreeGridExcelExport-BjyBdpz1.js +360 -0
  90. package/dist/useTreeGridExcelExport-BjyBdpz1.js.map +1 -0
  91. package/dist/utils.js +98 -96
  92. package/dist/utils.js.map +1 -1
  93. package/package.json +7 -1
  94. package/store.d.ts +1 -0
  95. package/store.js +1 -0
  96. package/dist/OwpUtils-DgBOzRu6.js.map +0 -1
  97. package/dist/index-DP0dZ8Y6.js.map +0 -1
  98. package/dist/treeGrid-4QKOKXZw.js +0 -46
  99. package/dist/treeGrid-4QKOKXZw.js.map +0 -1
  100. package/dist/treeGridUtil-CGze1rYA.js +0 -1176
  101. package/dist/treeGridUtil-CGze1rYA.js.map +0 -1
  102. package/dist/types/components/layouts/index.d.ts +0 -8
  103. package/dist/types/components/layouts/layout1/components/RightSideLayout1.d.ts +0 -6
  104. package/dist/types/components/layouts/shared-components/DemoLayoutFooterContent.d.ts +0 -5
  105. package/dist/types/components/layouts/shared-components/DocumentationButton.d.ts +0 -8
  106. package/dist/types/components/layouts/shared-components/PoweredByLinks.d.ts +0 -5
  107. package/dist/types/components/layouts/shared-components/PurchaseButton.d.ts +0 -8
  108. package/dist/types/components/layouts/shared-components/UserNavbarHeader.d.ts +0 -5
  109. package/dist/useTreeGridExcelExport-B_a3dFaL.js +0 -2160
  110. package/dist/useTreeGridExcelExport-B_a3dFaL.js.map +0 -1
@@ -1,38 +1,65 @@
1
1
  var P = Object.defineProperty;
2
- var v = (e, n, t) => n in e ? P(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
2
+ var W = (e, n, t) => n in e ? P(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var u = (e, n) => P(e, "name", { value: n, configurable: !0 });
4
- var g = (e, n, t) => v(e, typeof n != "symbol" ? n + "" : n, t);
5
- import { q as F, e as D, Y as E, Z as G, _, $, a0 as C, a1 as z, a2 as k, a3 as V, a4 as U, t as X, a5 as m, b as Y, a6 as Z, a7 as H, c as J, a8 as L, u as Q, a9 as j, aa as T, d as x, g as ee } from "./treeGridUtil-CGze1rYA.js";
6
- import * as ne from "@mui/material/colors";
7
- var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
- function Oe(e) {
4
+ var p = (e, n, t) => W(e, typeof n != "symbol" ? n + "" : n, t);
5
+ import * as G from "@mui/material/colors";
6
+ import { m as E, n as _, h as F, o as D, j as $, p as k, q as z, r as L, s as V, u as X, v as H, e as J, t as Q, l as m, g as U, w as Y, f as Z, c as q, b as j, k as T, x, a as ee } from "./isTypedArray-DPyC49cI.js";
7
+ var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
+ function Ae(e) {
9
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
10
  }
11
- u(Oe, "getDefaultExportFromCjs");
12
- function we(e) {
11
+ u(Ae, "getDefaultExportFromCjs");
12
+ function Oe(e) {
13
13
  if (e.__esModule) return e;
14
14
  var n = e.default;
15
15
  if (typeof n == "function") {
16
- var t = /* @__PURE__ */ u(function r() {
17
- return this instanceof r ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
16
+ var t = /* @__PURE__ */ u(function i() {
17
+ return this instanceof i ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
18
18
  }, "a");
19
19
  t.prototype = n.prototype;
20
20
  } else t = {};
21
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
22
- var f = Object.getOwnPropertyDescriptor(e, r);
23
- Object.defineProperty(t, r, f.get ? f : {
21
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(i) {
22
+ var f = Object.getOwnPropertyDescriptor(e, i);
23
+ Object.defineProperty(t, i, f.get ? f : {
24
24
  enumerable: !0,
25
25
  get: /* @__PURE__ */ u(function() {
26
- return e[r];
26
+ return e[i];
27
27
  }, "get")
28
28
  });
29
29
  }), t;
30
30
  }
31
- u(we, "getAugmentedNamespace");
31
+ u(Oe, "getAugmentedNamespace");
32
32
  function S(e) {
33
33
  return e;
34
34
  }
35
35
  u(S, "identity");
36
+ function ne(e) {
37
+ if (E(e))
38
+ return e;
39
+ if (Array.isArray(e) || _(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer)
40
+ return e.slice(0);
41
+ const n = Object.getPrototypeOf(e), t = n.constructor;
42
+ if (e instanceof Date || e instanceof Map || e instanceof Set)
43
+ return new t(e);
44
+ if (e instanceof RegExp) {
45
+ const i = new t(e);
46
+ return i.lastIndex = e.lastIndex, i;
47
+ }
48
+ if (e instanceof DataView)
49
+ return new t(e.buffer.slice(0));
50
+ if (e instanceof Error) {
51
+ const i = new t(e.message);
52
+ return i.stack = e.stack, i.name = e.name, i.cause = e.cause, i;
53
+ }
54
+ if (typeof File < "u" && e instanceof File)
55
+ return new t([e], e.name, { type: e.type, lastModified: e.lastModified });
56
+ if (typeof e == "object") {
57
+ const i = Object.create(n);
58
+ return Object.assign(i, e);
59
+ }
60
+ return e;
61
+ }
62
+ u(ne, "clone");
36
63
  function N(e) {
37
64
  return function(n) {
38
65
  return F(n, e);
@@ -44,82 +71,82 @@ function A(e) {
44
71
  }
45
72
  u(A, "isObject");
46
73
  function te(e, n, t) {
47
- return typeof t != "function" ? I(e, n) : O(e, n, /* @__PURE__ */ u(function r(f, i, s, l, a, o) {
48
- const c = t(f, i, s, l, a, o);
49
- return c !== void 0 ? !!c : O(f, i, r, o);
74
+ return typeof t != "function" ? I(e, n) : O(e, n, /* @__PURE__ */ u(function i(f, r, s, l, a, o) {
75
+ const c = t(f, r, s, l, a, o);
76
+ return c !== void 0 ? !!c : O(f, r, i, o);
50
77
  }, "doesMatch"), /* @__PURE__ */ new Map());
51
78
  }
52
79
  u(te, "isMatchWith");
53
- function O(e, n, t, r) {
80
+ function O(e, n, t, i) {
54
81
  if (n === e)
55
82
  return !0;
56
83
  switch (typeof n) {
57
84
  case "object":
58
- return re(e, n, t, r);
85
+ return ie(e, n, t, i);
59
86
  case "function":
60
- return Object.keys(n).length > 0 ? O(e, { ...n }, t, r) : D(e, n);
87
+ return Object.keys(n).length > 0 ? O(e, { ...n }, t, i) : D(e, n);
61
88
  default:
62
89
  return A(e) ? typeof n == "string" ? n === "" : !0 : D(e, n);
63
90
  }
64
91
  }
65
92
  u(O, "isMatchWithInternal");
66
- function re(e, n, t, r) {
93
+ function ie(e, n, t, i) {
67
94
  if (n == null)
68
95
  return !0;
69
96
  if (Array.isArray(n))
70
- return K(e, n, t, r);
97
+ return K(e, n, t, i);
71
98
  if (n instanceof Map)
72
- return ie(e, n, t, r);
99
+ return re(e, n, t, i);
73
100
  if (n instanceof Set)
74
- return fe(e, n, t, r);
101
+ return fe(e, n, t, i);
75
102
  const f = Object.keys(n);
76
103
  if (e == null)
77
104
  return f.length === 0;
78
105
  if (f.length === 0)
79
106
  return !0;
80
- if (r && r.has(n))
81
- return r.get(n) === e;
82
- r && r.set(n, e);
107
+ if (i && i.has(n))
108
+ return i.get(n) === e;
109
+ i && i.set(n, e);
83
110
  try {
84
- for (let i = 0; i < f.length; i++) {
85
- const s = f[i];
86
- if (!E(e) && !(s in e) || n[s] === void 0 && e[s] !== void 0 || n[s] === null && e[s] !== null || !t(e[s], n[s], s, e, n, r))
111
+ for (let r = 0; r < f.length; r++) {
112
+ const s = f[r];
113
+ if (!E(e) && !(s in e) || n[s] === void 0 && e[s] !== void 0 || n[s] === null && e[s] !== null || !t(e[s], n[s], s, e, n, i))
87
114
  return !1;
88
115
  }
89
116
  return !0;
90
117
  } finally {
91
- r && r.delete(n);
118
+ i && i.delete(n);
92
119
  }
93
120
  }
94
- u(re, "isObjectMatch");
95
- function ie(e, n, t, r) {
121
+ u(ie, "isObjectMatch");
122
+ function re(e, n, t, i) {
96
123
  if (n.size === 0)
97
124
  return !0;
98
125
  if (!(e instanceof Map))
99
126
  return !1;
100
- for (const [f, i] of n.entries()) {
127
+ for (const [f, r] of n.entries()) {
101
128
  const s = e.get(f);
102
- if (t(s, i, f, e, n, r) === !1)
129
+ if (t(s, r, f, e, n, i) === !1)
103
130
  return !1;
104
131
  }
105
132
  return !0;
106
133
  }
107
- u(ie, "isMapMatch");
108
- function K(e, n, t, r) {
134
+ u(re, "isMapMatch");
135
+ function K(e, n, t, i) {
109
136
  if (n.length === 0)
110
137
  return !0;
111
138
  if (!Array.isArray(e))
112
139
  return !1;
113
140
  const f = /* @__PURE__ */ new Set();
114
- for (let i = 0; i < n.length; i++) {
115
- const s = n[i];
141
+ for (let r = 0; r < n.length; r++) {
142
+ const s = n[r];
116
143
  let l = !1;
117
144
  for (let a = 0; a < e.length; a++) {
118
145
  if (f.has(a))
119
146
  continue;
120
147
  const o = e[a];
121
148
  let c = !1;
122
- if (t(o, s, i, e, n, r) && (c = !0), c) {
149
+ if (t(o, s, r, e, n, i) && (c = !0), c) {
123
150
  f.add(a), l = !0;
124
151
  break;
125
152
  }
@@ -130,8 +157,8 @@ function K(e, n, t, r) {
130
157
  return !0;
131
158
  }
132
159
  u(K, "isArrayMatch");
133
- function fe(e, n, t, r) {
134
- return n.size === 0 ? !0 : e instanceof Set ? K([...e], [...n], t, r) : !1;
160
+ function fe(e, n, t, i) {
161
+ return n.size === 0 ? !0 : e instanceof Set ? K([...e], [...n], t, i) : !1;
135
162
  }
136
163
  u(fe, "isSetMatch");
137
164
  function I(e, n) {
@@ -140,22 +167,22 @@ function I(e, n) {
140
167
  }
141
168
  u(I, "isMatch");
142
169
  function R(e) {
143
- return e = G(e), (n) => I(n, e);
170
+ return e = $(e), (n) => I(n, e);
144
171
  }
145
172
  u(R, "matches");
146
173
  function se(e, n) {
147
- return _(e, (t, r, f, i) => {
174
+ return k(e, (t, i, f, r) => {
148
175
  if (typeof e == "object")
149
176
  switch (Object.prototype.toString.call(e)) {
150
- case V:
151
- case k:
152
- case z: {
177
+ case H:
178
+ case X:
179
+ case V: {
153
180
  const s = new e.constructor(e == null ? void 0 : e.valueOf());
154
- return C(s, e), s;
181
+ return L(s, e), s;
155
182
  }
156
- case $: {
183
+ case z: {
157
184
  const s = {};
158
- return C(s, e), s.length = e.length, s[Symbol.iterator] = e[Symbol.iterator], s;
185
+ return L(s, e), s.length = e.length, s[Symbol.iterator] = e[Symbol.iterator], s;
159
186
  }
160
187
  default:
161
188
  return;
@@ -181,35 +208,35 @@ function ue(e, n = Number.MAX_SAFE_INTEGER) {
181
208
  u(ue, "isIndex");
182
209
  function ae(e, n) {
183
210
  let t;
184
- if (Array.isArray(n) ? t = n : typeof n == "string" && U(n) && (e == null ? void 0 : e[n]) == null ? t = X(n) : t = [n], t.length === 0)
211
+ if (Array.isArray(n) ? t = n : typeof n == "string" && J(n) && (e == null ? void 0 : e[n]) == null ? t = Q(n) : t = [n], t.length === 0)
185
212
  return !1;
186
- let r = e;
213
+ let i = e;
187
214
  for (let f = 0; f < t.length; f++) {
188
- const i = t[f];
189
- if ((r == null || !Object.hasOwn(r, i)) && !((Array.isArray(r) || m(r)) && ue(i) && i < r.length))
215
+ const r = t[f];
216
+ if ((i == null || !Object.hasOwn(i, r)) && !((Array.isArray(i) || m(i)) && ue(r) && r < i.length))
190
217
  return !1;
191
- r = r[i];
218
+ i = i[r];
192
219
  }
193
220
  return !0;
194
221
  }
195
222
  u(ae, "has");
196
- function W(e, n) {
223
+ function v(e, n) {
197
224
  switch (typeof e) {
198
225
  case "object": {
199
226
  Object.is(e == null ? void 0 : e.valueOf(), -0) && (e = "-0");
200
227
  break;
201
228
  }
202
229
  case "number": {
203
- e = Y(e);
230
+ e = U(e);
204
231
  break;
205
232
  }
206
233
  }
207
234
  return n = w(n), function(t) {
208
- const r = F(t, e);
209
- return r === void 0 ? ae(t, e) : n === void 0 ? r === void 0 : I(r, n);
235
+ const i = F(t, e);
236
+ return i === void 0 ? ae(t, e) : n === void 0 ? i === void 0 : I(i, n);
210
237
  };
211
238
  }
212
- u(W, "matchesProperty");
239
+ u(v, "matchesProperty");
213
240
  function oe(e) {
214
241
  if (e == null)
215
242
  return S;
@@ -217,7 +244,7 @@ function oe(e) {
217
244
  case "function":
218
245
  return e;
219
246
  case "object":
220
- return Array.isArray(e) && e.length === 2 ? W(e[0], e[1]) : R(e);
247
+ return Array.isArray(e) && e.length === 2 ? v(e[0], e[1]) : R(e);
221
248
  case "string":
222
249
  case "symbol":
223
250
  case "number":
@@ -229,30 +256,30 @@ function ce(e, n = S, t = 0) {
229
256
  if (!e)
230
257
  return;
231
258
  t < 0 && (t = Math.max(e.length + t, 0));
232
- const r = oe(n);
233
- if (typeof r == "function" && !Array.isArray(e)) {
234
- const i = Object.keys(e);
235
- for (let s = t; s < i.length; s++) {
236
- const l = i[s], a = e[l];
237
- if (r(a, l, e))
259
+ const i = oe(n);
260
+ if (typeof i == "function" && !Array.isArray(e)) {
261
+ const r = Object.keys(e);
262
+ for (let s = t; s < r.length; s++) {
263
+ const l = r[s], a = e[l];
264
+ if (i(a, l, e))
238
265
  return a;
239
266
  }
240
267
  return;
241
268
  }
242
- return (Array.isArray(e) ? e.slice(t) : Object.values(e).slice(t)).find(r);
269
+ return (Array.isArray(e) ? e.slice(t) : Object.values(e).slice(t)).find(i);
243
270
  }
244
271
  u(ce, "find");
245
272
  function ye(e, n, t) {
246
273
  if (!e)
247
274
  return !1;
248
275
  n || (n = S);
249
- const r = Array.isArray(e) ? e : Object.values(e);
276
+ const i = Array.isArray(e) ? e : Object.values(e);
250
277
  switch (typeof n) {
251
278
  case "function": {
252
279
  if (!Array.isArray(e)) {
253
280
  const f = Object.keys(e);
254
- for (let i = 0; i < f.length; i++) {
255
- const s = f[i], l = e[s];
281
+ for (let r = 0; r < f.length; r++) {
282
+ const s = f[r], l = e[s];
256
283
  if (n(l, s, e))
257
284
  return !0;
258
285
  }
@@ -265,123 +292,88 @@ function ye(e, n, t) {
265
292
  }
266
293
  case "object":
267
294
  if (Array.isArray(n) && n.length === 2) {
268
- const f = n[0], i = n[1], s = W(f, i);
295
+ const f = n[0], r = n[1], s = v(f, r);
269
296
  if (Array.isArray(e)) {
270
297
  for (let l = 0; l < e.length; l++)
271
298
  if (s(e[l]))
272
299
  return !0;
273
300
  return !1;
274
301
  }
275
- return r.some(s);
302
+ return i.some(s);
276
303
  } else {
277
304
  const f = R(n);
278
305
  if (Array.isArray(e)) {
279
- for (let i = 0; i < e.length; i++)
280
- if (f(e[i]))
306
+ for (let r = 0; r < e.length; r++)
307
+ if (f(e[r]))
281
308
  return !0;
282
309
  return !1;
283
310
  }
284
- return r.some(f);
311
+ return i.some(f);
285
312
  }
286
313
  case "number":
287
314
  case "symbol":
288
315
  case "string": {
289
316
  const f = N(n);
290
317
  if (Array.isArray(e)) {
291
- for (let i = 0; i < e.length; i++)
292
- if (f(e[i]))
318
+ for (let r = 0; r < e.length; r++)
319
+ if (f(e[r]))
293
320
  return !0;
294
321
  return !1;
295
322
  }
296
- return r.some(f);
323
+ return i.some(f);
297
324
  }
298
325
  }
299
326
  }
300
327
  u(ye, "some");
301
- function de(e) {
302
- if (E(e))
303
- return e;
304
- if (Array.isArray(e) || Z(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer)
305
- return e.slice(0);
306
- const n = Object.getPrototypeOf(e), t = n.constructor;
307
- if (e instanceof Date || e instanceof Map || e instanceof Set)
308
- return new t(e);
309
- if (e instanceof RegExp) {
310
- const r = new t(e);
311
- return r.lastIndex = e.lastIndex, r;
312
- }
313
- if (e instanceof DataView)
314
- return new t(e.buffer.slice(0));
315
- if (e instanceof Error) {
316
- const r = new t(e.message);
317
- return r.stack = e.stack, r.name = e.name, r.cause = e.cause, r;
318
- }
319
- if (typeof File < "u" && e instanceof File)
320
- return new t([e], e.name, { type: e.type, lastModified: e.lastModified });
321
- if (typeof e == "object") {
322
- const r = Object.create(n);
323
- return Object.assign(r, e);
324
- }
325
- return e;
326
- }
327
- u(de, "clone");
328
- function he(e, ...n) {
329
- const t = n.slice(0, -1), r = n[n.length - 1];
328
+ function de(e, ...n) {
329
+ const t = n.slice(0, -1), i = n[n.length - 1];
330
330
  let f = e;
331
- for (let i = 0; i < t.length; i++) {
332
- const s = t[i];
333
- f = y(f, s, r, /* @__PURE__ */ new Map());
331
+ for (let r = 0; r < t.length; r++) {
332
+ const s = t[r];
333
+ f = y(f, s, i, /* @__PURE__ */ new Map());
334
334
  }
335
335
  return f;
336
336
  }
337
- u(he, "mergeWith");
338
- function y(e, n, t, r) {
337
+ u(de, "mergeWith");
338
+ function y(e, n, t, i) {
339
339
  if (E(e) && (e = Object(e)), n == null || typeof n != "object")
340
340
  return e;
341
- if (r.has(n))
342
- return de(r.get(n));
343
- if (r.set(n, e), Array.isArray(n)) {
341
+ if (i.has(n))
342
+ return ne(i.get(n));
343
+ if (i.set(n, e), Array.isArray(n)) {
344
344
  n = n.slice();
345
- for (let i = 0; i < n.length; i++)
346
- n[i] = n[i] ?? void 0;
345
+ for (let r = 0; r < n.length; r++)
346
+ n[r] = n[r] ?? void 0;
347
347
  }
348
- const f = [...Object.keys(n), ...H(n)];
349
- for (let i = 0; i < f.length; i++) {
350
- const s = f[i];
351
- if (J(s))
348
+ const f = [...Object.keys(n), ...Y(n)];
349
+ for (let r = 0; r < f.length; r++) {
350
+ const s = f[r];
351
+ if (Z(s))
352
352
  continue;
353
353
  let l = n[s], a = e[s];
354
354
  if (m(l) && (l = { ...l }), m(a) && (a = { ...a }), typeof Buffer < "u" && Buffer.isBuffer(l) && (l = w(l)), Array.isArray(l))
355
355
  if (typeof a == "object" && a != null) {
356
356
  const c = [], h = Reflect.ownKeys(a);
357
- for (let p = 0; p < h.length; p++) {
358
- const B = h[p];
357
+ for (let g = 0; g < h.length; g++) {
358
+ const B = h[g];
359
359
  c[B] = a[B];
360
360
  }
361
361
  a = c;
362
362
  } else
363
363
  a = [];
364
- const o = t(a, l, s, e, n, r);
365
- o !== void 0 ? e[s] = o : Array.isArray(l) || L(a) && L(l) ? e[s] = y(a, l, t, r) : a == null && Q(l) ? e[s] = y({}, l, t, r) : a == null && j(l) ? e[s] = w(l) : (a === void 0 || l !== void 0) && (e[s] = l);
364
+ const o = t(a, l, s, e, n, i);
365
+ o !== void 0 ? e[s] = o : Array.isArray(l) || q(a) && q(l) ? e[s] = y(a, l, t, i) : a == null && j(l) ? e[s] = y({}, l, t, i) : a == null && T(l) ? e[s] = w(l) : (a === void 0 || l !== void 0) && (e[s] = l);
366
366
  }
367
367
  return e;
368
368
  }
369
369
  u(y, "mergeWithDeep");
370
- function pe(e, ...n) {
371
- return he(e, ...n, T);
372
- }
373
- u(pe, "merge");
374
- function Me(e) {
375
- return e === null;
376
- }
377
- u(Me, "isNull");
378
- function Ee(e) {
379
- return x(e).toUpperCase();
370
+ function he(e, ...n) {
371
+ return de(e, ...n, x);
380
372
  }
381
- u(Ee, "toUpper");
373
+ u(he, "merge");
382
374
  const b = class b {
383
375
  constructor() {
384
- g(this, "events");
376
+ p(this, "events");
385
377
  this.events = {};
386
378
  }
387
379
  /**
@@ -404,18 +396,18 @@ const b = class b {
404
396
  *
405
397
  */
406
398
  once(n, t) {
407
- const r = /* @__PURE__ */ u((...f) => {
408
- this.removeListener(n, r), t.apply(this, f);
399
+ const i = /* @__PURE__ */ u((...f) => {
400
+ this.removeListener(n, i), t.apply(this, f);
409
401
  }, "onceFn");
410
- this.on(n, r);
402
+ this.on(n, i);
411
403
  }
412
404
  /**
413
405
  * The emit method triggers all registered callback functions for a given event name.
414
406
  *
415
407
  */
416
408
  emit(n, ...t) {
417
- this._getEventListByName(n).forEach((r) => {
418
- r.apply(this, t);
409
+ this._getEventListByName(n).forEach((i) => {
410
+ i.apply(this, t);
419
411
  });
420
412
  }
421
413
  /**
@@ -438,11 +430,11 @@ const d = class d {
438
430
  if (!t || (t == null ? void 0 : t.length) === 0 || !t)
439
431
  return n;
440
432
  t = t == null ? void 0 : t.toLowerCase();
441
- const r = n.filter((f) => this.searchInObj(f, t));
442
- return r.length === n.length ? n : r;
433
+ const i = n.filter((f) => this.searchInObj(f, t));
434
+ return i.length === n.length ? n : i;
443
435
  }
444
436
  static filterArrayByString2(n, t) {
445
- return typeof t != "string" || t === "" ? n : (t = t == null ? void 0 : t.toLowerCase(), n.filter((r) => this.searchInObj(r, t)));
437
+ return typeof t != "string" || t === "" ? n : (t = t == null ? void 0 : t.toLowerCase(), n.filter((i) => this.searchInObj(i, t)));
446
438
  }
447
439
  /**
448
440
  * The searchInObj function searches an object for a given search string.
@@ -452,13 +444,13 @@ const d = class d {
452
444
  static searchInObj(n, t) {
453
445
  if (!f(n))
454
446
  return !1;
455
- const r = Object.keys(n);
456
- function f(i) {
457
- return !!(i && typeof i == "object" && !Array.isArray(i) && typeof i != "function");
447
+ const i = Object.keys(n);
448
+ function f(r) {
449
+ return !!(r && typeof r == "object" && !Array.isArray(r) && typeof r != "function");
458
450
  }
459
451
  u(f, "isRecord");
460
- for (let i = 0; i < r.length; i += 1) {
461
- const s = r[i], l = n[s];
452
+ for (let r = 0; r < i.length; r += 1) {
453
+ const s = i[r], l = n[s];
462
454
  if (typeof l == "string") {
463
455
  if (this.searchInString(l, t))
464
456
  return !0;
@@ -475,7 +467,7 @@ const d = class d {
475
467
  *
476
468
  */
477
469
  static searchInArray(n, t) {
478
- return n.forEach((r) => !!(typeof r == "string" && this.searchInString(r, t) || r && typeof r == "object" && this.searchInObj(r, t))), !1;
470
+ return n.forEach((i) => !!(typeof i == "string" && this.searchInString(i, t) || i && typeof i == "object" && this.searchInObj(i, t))), !1;
479
471
  }
480
472
  /**
481
473
  * The searchInString function searches a string for a given search string.
@@ -512,20 +504,20 @@ const d = class d {
512
504
  * The setRoutes function sets the routes for the Owp project.
513
505
  */
514
506
  static setRoutes(n, t = void 0) {
515
- let r = [];
516
- n != null && n.routes && (r = [...n.routes]);
517
- const f = /* @__PURE__ */ u((i, s) => {
518
- const l = i.auth || i.auth === null ? i.auth : s, a = pe({}, n.settings, i.settings), o = {
519
- ...i,
507
+ let i = [];
508
+ n != null && n.routes && (i = [...n.routes]);
509
+ const f = /* @__PURE__ */ u((r, s) => {
510
+ const l = r.auth || r.auth === null ? r.auth : s, a = he({}, n.settings, r.settings), o = {
511
+ ...r,
520
512
  settings: a,
521
513
  auth: l
522
514
  };
523
- return i.children && (o.children = i.children.map((c) => f(c, l))), o;
515
+ return r.children && (o.children = r.children.map((c) => f(c, l))), o;
524
516
  }, "applyAuth");
525
- return r = r.map((i) => {
517
+ return i = i.map((r) => {
526
518
  const s = n.auth || n.auth === null ? n.auth : t || null;
527
- return f(i, s);
528
- }), [...r];
519
+ return f(r, s);
520
+ }), [...i];
529
521
  }
530
522
  /**
531
523
  * The generateRoutesFromConfigs function generates routes from a set of route configurations.
@@ -533,20 +525,20 @@ const d = class d {
533
525
  *
534
526
  */
535
527
  static generateRoutesFromConfigs(n, t) {
536
- let r = [];
528
+ let i = [];
537
529
  return n.forEach((f) => {
538
- r = [...r, ...this.setRoutes(f, t)];
539
- }), r;
530
+ i = [...i, ...this.setRoutes(f, t)];
531
+ }), i;
540
532
  }
541
533
  /**
542
534
  * The findById function finds an object by its id.
543
535
  */
544
536
  static findById(n, t) {
545
- const r = ce(n, { id: t });
546
- if (r)
547
- return r;
537
+ const i = ce(n, { id: t });
538
+ if (i)
539
+ return i;
548
540
  let f;
549
- return ye(n, (i) => i.children ? (f = this.findById(i.children, t), f) : !1), f;
541
+ return ye(n, (r) => r.children ? (f = this.findById(r.children, t), f) : !1), f;
550
542
  }
551
543
  /**
552
544
  * The randomMatColor function generates a random material color.
@@ -570,37 +562,37 @@ const d = class d {
570
562
  "amber",
571
563
  "orange",
572
564
  "deepOrange"
573
- ], r = t[Math.floor(Math.random() * t.length)];
574
- return (f = ne[r]) == null ? void 0 : f[n];
565
+ ], i = t[Math.floor(Math.random() * t.length)];
566
+ return (f = G[i]) == null ? void 0 : f[n];
575
567
  }
576
568
  /**
577
569
  * The findNavItemById function finds a navigation item by its id.
578
570
  */
579
571
  static difference(n, t) {
580
- function r(f, i) {
581
- return f == null ? void 0 : f.reduce((s, l, a) => (ee(l, i[a]) || (s[a] = A(l) && A(i[a]) ? r(l, i[a]) : l), s), {});
572
+ function i(f, r) {
573
+ return f == null ? void 0 : f.reduce((s, l, a) => (ee(l, r[a]) || (s[a] = A(l) && A(r[a]) ? i(l, r[a]) : l), s), {});
582
574
  }
583
- return u(r, "changes"), r(n, t);
575
+ return u(i, "changes"), i(n, t);
584
576
  }
585
577
  /**
586
578
  * The hasPermission function checks if a user has permission to access a resource.
587
579
  */
588
580
  // @ts-expect-error
589
581
  static hasPermission(n, t) {
590
- var r;
591
- return n == null ? !0 : Array.isArray(n) && (n == null ? void 0 : n.length) === 0 ? !t || t.length === 0 : t && Array.isArray(n) && Array.isArray(t) ? n.some((f) => t.indexOf(f) >= 0) : typeof t == "string" && Array.isArray(n) ? (r = n == null ? void 0 : n.includes) == null ? void 0 : r.call(n, t) : !1;
582
+ var i;
583
+ return n == null ? !0 : Array.isArray(n) && (n == null ? void 0 : n.length) === 0 ? !t || t.length === 0 : t && Array.isArray(n) && Array.isArray(t) ? n.some((f) => t.indexOf(f) >= 0) : typeof t == "string" && Array.isArray(n) ? (i = n == null ? void 0 : n.includes) == null ? void 0 : i.call(n, t) : !1;
592
584
  }
593
585
  /**
594
586
  * The filterArrayByString function filters an array of objects by a search string.
595
587
  */
596
588
  static filterRecursive(n, t) {
597
- return n ? n.reduce((r, f) => {
598
- let i = null;
599
- if (t(f) && (i = { ...f }), f.children != null) {
589
+ return n ? n.reduce((i, f) => {
590
+ let r = null;
591
+ if (t(f) && (r = { ...f }), f.children != null) {
600
592
  const s = this.filterRecursive(f.children, t);
601
- s && (s == null ? void 0 : s.length) > 0 && (i = { ...f, children: s });
593
+ s && (s == null ? void 0 : s.length) > 0 && (r = { ...f, children: s });
602
594
  }
603
- return i && r.push(i), r;
595
+ return r && i.push(r), i;
604
596
  }, []) : null;
605
597
  }
606
598
  };
@@ -608,21 +600,19 @@ u(d, "OwpUtils"), /**
608
600
  * The EventEmitter class is a custom implementation of an event emitter.
609
601
  * It provides methods for registering and emitting events.
610
602
  */
611
- g(d, "EventEmitter", M);
612
- let q = d;
603
+ p(d, "EventEmitter", M);
604
+ let C = d;
613
605
  export {
614
606
  M as E,
615
- q as O,
607
+ C as O,
616
608
  ue as a,
617
- Oe as b,
618
- Ae as c,
619
- Me as d,
620
- oe as e,
609
+ Ae as b,
610
+ me as c,
611
+ oe as d,
612
+ S as e,
621
613
  ce as f,
622
- we as g,
623
- S as h,
614
+ Oe as g,
624
615
  A as i,
625
- pe as m,
626
- Ee as t
616
+ he as m
627
617
  };
628
- //# sourceMappingURL=OwpUtils-DgBOzRu6.js.map
618
+ //# sourceMappingURL=OwpUtils-DxEd-Pjo.js.map