levannta-ui 1.0.16 → 1.0.18

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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import ge, { forwardRef as pr, useState as Y, useEffect as be, useRef as me } from "react";
2
- var he = { exports: {} }, J = {};
1
+ import ge, { forwardRef as yr, useState as V, useEffect as ne, useRef as re } from "react";
2
+ var he = { exports: {} }, X = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var he = { exports: {} }, J = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Le;
13
- function yr() {
14
- if (Le)
15
- return J;
16
- Le = 1;
17
- var o = ge, d = Symbol.for("react.element"), a = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, p = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function C(h, c, g) {
19
- var s, y = {}, v = null, x = null;
20
- g !== void 0 && (v = "" + g), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (x = c.ref);
21
- for (s in c)
22
- u.call(c, s) && !N.hasOwnProperty(s) && (y[s] = c[s]);
23
- if (h && h.defaultProps)
24
- for (s in c = h.defaultProps, c)
25
- y[s] === void 0 && (y[s] = c[s]);
26
- return { $$typeof: d, type: h, key: v, ref: x, props: y, _owner: p.current };
12
+ var Me;
13
+ function xr() {
14
+ if (Me)
15
+ return X;
16
+ Me = 1;
17
+ var i = ge, f = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, g = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function C(d, u, p) {
19
+ var l, y = {}, m = null, x = null;
20
+ p !== void 0 && (m = "" + p), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (x = u.ref);
21
+ for (l in u)
22
+ s.call(u, l) && !_.hasOwnProperty(l) && (y[l] = u[l]);
23
+ if (d && d.defaultProps)
24
+ for (l in u = d.defaultProps, u)
25
+ y[l] === void 0 && (y[l] = u[l]);
26
+ return { $$typeof: f, type: d, key: m, ref: x, props: y, _owner: g.current };
27
27
  }
28
- return J.Fragment = a, J.jsx = C, J.jsxs = C, J;
28
+ return X.Fragment = a, X.jsx = C, X.jsxs = C, X;
29
29
  }
30
- var K = {};
30
+ var J = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -38,48 +38,48 @@ var K = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var We;
41
- function xr() {
41
+ function jr() {
42
42
  return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
43
- var o = ge, d = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.iterator, D = "@@iterator";
44
- function m(e) {
43
+ var i = ge, f = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.iterator, A = "@@iterator";
44
+ function b(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = S && e[S] || e[D];
47
+ var r = S && e[S] || e[A];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var I = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var I = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function E(e) {
52
52
  {
53
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
54
- n[i - 1] = arguments[i];
55
- L("error", e, n);
53
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
54
+ n[o - 1] = arguments[o];
55
+ M("error", e, n);
56
56
  }
57
57
  }
58
- function L(e, r, n) {
58
+ function M(e, r, n) {
59
59
  {
60
- var i = I.ReactDebugCurrentFrame, b = i.getStackAddendum();
61
- b !== "" && (r += "%s", n = n.concat([b]));
62
- var w = n.map(function(f) {
63
- return String(f);
60
+ var o = I.ReactDebugCurrentFrame, h = o.getStackAddendum();
61
+ h !== "" && (r += "%s", n = n.concat([h]));
62
+ var w = n.map(function(v) {
63
+ return String(v);
64
64
  });
65
65
  w.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, w);
66
66
  }
67
67
  }
68
- var P = !1, re = !1, ne = !1, te = !1, ae = !1, q;
68
+ var P = !1, te = !1, ae = !1, ie = !1, oe = !1, q;
69
69
  q = Symbol.for("react.module.reference");
70
- function V(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === N || ae || e === p || e === g || e === s || te || e === x || P || re || ne || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === y || e.$$typeof === C || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
70
+ function Y(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === _ || oe || e === g || e === p || e === l || ie || e === x || P || te || ae || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === y || e.$$typeof === C || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
75
  e.$$typeof === q || e.getModuleId !== void 0));
76
76
  }
77
77
  function j(e, r, n) {
78
- var i = e.displayName;
79
- if (i)
80
- return i;
81
- var b = r.displayName || r.name || "";
82
- return b !== "" ? n + "(" + b + ")" : n;
78
+ var o = e.displayName;
79
+ if (o)
80
+ return o;
81
+ var h = r.displayName || r.name || "";
82
+ return h !== "" ? n + "(" + h + ")" : n;
83
83
  }
84
84
  function k(e) {
85
85
  return e.displayName || "Context";
@@ -92,36 +92,36 @@ function xr() {
92
92
  if (typeof e == "string")
93
93
  return e;
94
94
  switch (e) {
95
- case u:
95
+ case s:
96
96
  return "Fragment";
97
97
  case a:
98
98
  return "Portal";
99
- case N:
99
+ case _:
100
100
  return "Profiler";
101
- case p:
102
- return "StrictMode";
103
101
  case g:
102
+ return "StrictMode";
103
+ case p:
104
104
  return "Suspense";
105
- case s:
105
+ case l:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case h:
110
+ case d:
111
111
  var r = e;
112
112
  return k(r) + ".Consumer";
113
113
  case C:
114
114
  var n = e;
115
115
  return k(n._context) + ".Provider";
116
- case c:
116
+ case u:
117
117
  return j(e, e.render, "ForwardRef");
118
118
  case y:
119
- var i = e.displayName || null;
120
- return i !== null ? i : R(e.type) || "Memo";
121
- case v: {
122
- var b = e, w = b._payload, f = b._init;
119
+ var o = e.displayName || null;
120
+ return o !== null ? o : R(e.type) || "Memo";
121
+ case m: {
122
+ var h = e, w = h._payload, v = h._init;
123
123
  try {
124
- return R(f(w));
124
+ return R(v(w));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,13 +129,13 @@ function xr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var O = Object.assign, F = 0, G, pe, ye, xe, je, we, Ee;
132
+ var O = Object.assign, D = 0, G, pe, ye, xe, je, we, Ee;
133
133
  function Re() {
134
134
  }
135
135
  Re.__reactDisabledLog = !0;
136
- function ze() {
136
+ function Ke() {
137
137
  {
138
- if (F === 0) {
138
+ if (D === 0) {
139
139
  G = console.log, pe = console.info, ye = console.warn, xe = console.error, je = console.group, we = console.groupCollapsed, Ee = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,12 +153,12 @@ function xr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- F++;
156
+ D++;
157
157
  }
158
158
  }
159
159
  function Xe() {
160
160
  {
161
- if (F--, F === 0) {
161
+ if (D--, D === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -188,103 +188,103 @@ function xr() {
188
188
  })
189
189
  });
190
190
  }
191
- F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var ie = I.ReactCurrentDispatcher, oe;
194
+ var se = I.ReactCurrentDispatcher, le;
195
195
  function H(e, r, n) {
196
196
  {
197
- if (oe === void 0)
197
+ if (le === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (b) {
201
- var i = b.stack.trim().match(/\n( *(at )?)/);
202
- oe = i && i[1] || "";
200
+ } catch (h) {
201
+ var o = h.stack.trim().match(/\n( *(at )?)/);
202
+ le = o && o[1] || "";
203
203
  }
204
204
  return `
205
- ` + oe + e;
205
+ ` + le + e;
206
206
  }
207
207
  }
208
- var se = !1, Z;
208
+ var ue = !1, Z;
209
209
  {
210
210
  var Je = typeof WeakMap == "function" ? WeakMap : Map;
211
211
  Z = new Je();
212
212
  }
213
213
  function _e(e, r) {
214
- if (!e || se)
214
+ if (!e || ue)
215
215
  return "";
216
216
  {
217
217
  var n = Z.get(e);
218
218
  if (n !== void 0)
219
219
  return n;
220
220
  }
221
- var i;
222
- se = !0;
223
- var b = Error.prepareStackTrace;
221
+ var o;
222
+ ue = !0;
223
+ var h = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var w;
226
- w = ie.current, ie.current = null, ze();
226
+ w = se.current, se.current = null, Ke();
227
227
  try {
228
228
  if (r) {
229
- var f = function() {
229
+ var v = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(f.prototype, "props", {
232
+ if (Object.defineProperty(v.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(f, []);
239
- } catch (A) {
240
- i = A;
238
+ Reflect.construct(v, []);
239
+ } catch (F) {
240
+ o = F;
241
241
  }
242
- Reflect.construct(e, [], f);
242
+ Reflect.construct(e, [], v);
243
243
  } else {
244
244
  try {
245
- f.call();
246
- } catch (A) {
247
- i = A;
245
+ v.call();
246
+ } catch (F) {
247
+ o = F;
248
248
  }
249
- e.call(f.prototype);
249
+ e.call(v.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (A) {
255
- i = A;
254
+ } catch (F) {
255
+ o = F;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (A) {
260
- if (A && i && typeof A.stack == "string") {
261
- for (var l = A.stack.split(`
262
- `), $ = i.stack.split(`
263
- `), _ = l.length - 1, T = $.length - 1; _ >= 1 && T >= 0 && l[_] !== $[T]; )
264
- T--;
265
- for (; _ >= 1 && T >= 0; _--, T--)
266
- if (l[_] !== $[T]) {
267
- if (_ !== 1 || T !== 1)
259
+ } catch (F) {
260
+ if (F && o && typeof F.stack == "string") {
261
+ for (var c = F.stack.split(`
262
+ `), $ = o.stack.split(`
263
+ `), T = c.length - 1, N = $.length - 1; T >= 1 && N >= 0 && c[T] !== $[N]; )
264
+ N--;
265
+ for (; T >= 1 && N >= 0; T--, N--)
266
+ if (c[T] !== $[N]) {
267
+ if (T !== 1 || N !== 1)
268
268
  do
269
- if (_--, T--, T < 0 || l[_] !== $[T]) {
270
- var M = `
271
- ` + l[_].replace(" at new ", " at ");
272
- return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, M), M;
269
+ if (T--, N--, N < 0 || c[T] !== $[N]) {
270
+ var L = `
271
+ ` + c[T].replace(" at new ", " at ");
272
+ return e.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, L), L;
273
273
  }
274
- while (_ >= 1 && T >= 0);
274
+ while (T >= 1 && N >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- se = !1, ie.current = w, Xe(), Error.prepareStackTrace = b;
279
+ ue = !1, se.current = w, Xe(), Error.prepareStackTrace = h;
280
280
  }
281
281
  var B = e ? e.displayName || e.name : "", W = B ? H(B) : "";
282
282
  return typeof e == "function" && Z.set(e, W), W;
283
283
  }
284
- function Ke(e, r, n) {
284
+ function qe(e, r, n) {
285
285
  return _e(e, !1);
286
286
  }
287
- function qe(e) {
287
+ function Ge(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
@@ -292,32 +292,32 @@ function xr() {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return _e(e, qe(e));
295
+ return _e(e, Ge(e));
296
296
  if (typeof e == "string")
297
297
  return H(e);
298
298
  switch (e) {
299
- case g:
299
+ case p:
300
300
  return H("Suspense");
301
- case s:
301
+ case l:
302
302
  return H("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case c:
307
- return Ke(e.render);
306
+ case u:
307
+ return qe(e.render);
308
308
  case y:
309
309
  return Q(e.type, r, n);
310
- case v: {
311
- var i = e, b = i._payload, w = i._init;
310
+ case m: {
311
+ var o = e, h = o._payload, w = o._init;
312
312
  try {
313
- return Q(w(b), r, n);
313
+ return Q(w(h), r, n);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var z = Object.prototype.hasOwnProperty, Ce = {}, Te = I.ReactDebugCurrentFrame;
320
+ var U = Object.prototype.hasOwnProperty, Ce = {}, Te = I.ReactDebugCurrentFrame;
321
321
  function ee(e) {
322
322
  if (e) {
323
323
  var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
@@ -325,79 +325,79 @@ function xr() {
325
325
  } else
326
326
  Te.setExtraStackFrame(null);
327
327
  }
328
- function Ge(e, r, n, i, b) {
328
+ function He(e, r, n, o, h) {
329
329
  {
330
- var w = Function.call.bind(z);
331
- for (var f in e)
332
- if (w(e, f)) {
333
- var l = void 0;
330
+ var w = Function.call.bind(U);
331
+ for (var v in e)
332
+ if (w(e, v)) {
333
+ var c = void 0;
334
334
  try {
335
- if (typeof e[f] != "function") {
336
- var $ = Error((i || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ if (typeof e[v] != "function") {
336
+ var $ = Error((o || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw $.name = "Invariant Violation", $;
338
338
  }
339
- l = e[f](r, f, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (_) {
341
- l = _;
339
+ c = e[v](r, v, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (T) {
341
+ c = T;
342
342
  }
343
- l && !(l instanceof Error) && (ee(b), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, f, typeof l), ee(null)), l instanceof Error && !(l.message in Ce) && (Ce[l.message] = !0, ee(b), E("Failed %s type: %s", n, l.message), ee(null));
343
+ c && !(c instanceof Error) && (ee(h), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, v, typeof c), ee(null)), c instanceof Error && !(c.message in Ce) && (Ce[c.message] = !0, ee(h), E("Failed %s type: %s", n, c.message), ee(null));
344
344
  }
345
345
  }
346
346
  }
347
- var He = Array.isArray;
348
- function le(e) {
349
- return He(e);
347
+ var Ze = Array.isArray;
348
+ function ce(e) {
349
+ return Ze(e);
350
350
  }
351
- function Ze(e) {
351
+ function Qe(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return n;
355
355
  }
356
356
  }
357
- function Qe(e) {
357
+ function er(e) {
358
358
  try {
359
- return Se(e), !1;
359
+ return Ne(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function Se(e) {
364
+ function Ne(e) {
365
365
  return "" + e;
366
366
  }
367
- function Ne(e) {
368
- if (Qe(e))
369
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), Se(e);
367
+ function Se(e) {
368
+ if (er(e))
369
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Ne(e);
370
370
  }
371
- var X = I.ReactCurrentOwner, er = {
371
+ var K = I.ReactCurrentOwner, rr = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, ke, Oe, ue;
377
- ue = {};
378
- function rr(e) {
379
- if (z.call(e, "ref")) {
376
+ }, ke, Oe, fe;
377
+ fe = {};
378
+ function nr(e) {
379
+ if (U.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
382
382
  return !1;
383
383
  }
384
384
  return e.ref !== void 0;
385
385
  }
386
- function nr(e) {
387
- if (z.call(e, "key")) {
386
+ function tr(e) {
387
+ if (U.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
390
390
  return !1;
391
391
  }
392
392
  return e.key !== void 0;
393
393
  }
394
- function tr(e, r) {
395
- if (typeof e.ref == "string" && X.current && r && X.current.stateNode !== r) {
396
- var n = R(X.current.type);
397
- ue[n] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(X.current.type), e.ref), ue[n] = !0);
394
+ function ar(e, r) {
395
+ if (typeof e.ref == "string" && K.current && r && K.current.stateNode !== r) {
396
+ var n = R(K.current.type);
397
+ fe[n] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(K.current.type), e.ref), fe[n] = !0);
398
398
  }
399
399
  }
400
- function ar(e, r) {
400
+ function ir(e, r) {
401
401
  {
402
402
  var n = function() {
403
403
  ke || (ke = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
@@ -408,7 +408,7 @@ function xr() {
408
408
  });
409
409
  }
410
410
  }
411
- function ir(e, r) {
411
+ function or(e, r) {
412
412
  {
413
413
  var n = function() {
414
414
  Oe || (Oe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
@@ -419,70 +419,70 @@ function xr() {
419
419
  });
420
420
  }
421
421
  }
422
- var or = function(e, r, n, i, b, w, f) {
423
- var l = {
422
+ var sr = function(e, r, n, o, h, w, v) {
423
+ var c = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: d,
425
+ $$typeof: f,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
429
429
  ref: n,
430
- props: f,
430
+ props: v,
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: w
433
433
  };
434
- return l._store = {}, Object.defineProperty(l._store, "validated", {
434
+ return c._store = {}, Object.defineProperty(c._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(l, "_self", {
439
+ }), Object.defineProperty(c, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: i
444
- }), Object.defineProperty(l, "_source", {
443
+ value: o
444
+ }), Object.defineProperty(c, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: b
449
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
448
+ value: h
449
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
450
450
  };
451
- function sr(e, r, n, i, b) {
451
+ function lr(e, r, n, o, h) {
452
452
  {
453
- var w, f = {}, l = null, $ = null;
454
- n !== void 0 && (Ne(n), l = "" + n), nr(r) && (Ne(r.key), l = "" + r.key), rr(r) && ($ = r.ref, tr(r, b));
453
+ var w, v = {}, c = null, $ = null;
454
+ n !== void 0 && (Se(n), c = "" + n), tr(r) && (Se(r.key), c = "" + r.key), nr(r) && ($ = r.ref, ar(r, h));
455
455
  for (w in r)
456
- z.call(r, w) && !er.hasOwnProperty(w) && (f[w] = r[w]);
456
+ U.call(r, w) && !rr.hasOwnProperty(w) && (v[w] = r[w]);
457
457
  if (e && e.defaultProps) {
458
- var _ = e.defaultProps;
459
- for (w in _)
460
- f[w] === void 0 && (f[w] = _[w]);
458
+ var T = e.defaultProps;
459
+ for (w in T)
460
+ v[w] === void 0 && (v[w] = T[w]);
461
461
  }
462
- if (l || $) {
463
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && ar(f, T), $ && ir(f, T);
462
+ if (c || $) {
463
+ var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ c && ir(v, N), $ && or(v, N);
465
465
  }
466
- return or(e, l, $, b, i, X.current, f);
466
+ return sr(e, c, $, h, o, K.current, v);
467
467
  }
468
468
  }
469
- var ce = I.ReactCurrentOwner, Pe = I.ReactDebugCurrentFrame;
470
- function U(e) {
469
+ var de = I.ReactCurrentOwner, Pe = I.ReactDebugCurrentFrame;
470
+ function z(e) {
471
471
  if (e) {
472
472
  var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
473
473
  Pe.setExtraStackFrame(n);
474
474
  } else
475
475
  Pe.setExtraStackFrame(null);
476
476
  }
477
- var fe;
478
- fe = !1;
479
- function de(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === d;
477
+ var ve;
478
+ ve = !1;
479
+ function me(e) {
480
+ return typeof e == "object" && e !== null && e.$$typeof === f;
481
481
  }
482
482
  function Ie() {
483
483
  {
484
- if (ce.current) {
485
- var e = R(ce.current.type);
484
+ if (de.current) {
485
+ var e = R(de.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function lr(e) {
494
+ function ur(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
497
  var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
@@ -503,7 +503,7 @@ Check your code at ` + r + ":" + n + ".";
503
503
  }
504
504
  }
505
505
  var $e = {};
506
- function ur(e) {
506
+ function cr(e) {
507
507
  {
508
508
  var r = Ie();
509
509
  if (!r) {
@@ -515,39 +515,39 @@ Check the top-level render call using <` + n + ">.");
515
515
  return r;
516
516
  }
517
517
  }
518
- function Fe(e, r) {
518
+ function De(e, r) {
519
519
  {
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var n = ur(r);
523
+ var n = cr(r);
524
524
  if ($e[n])
525
525
  return;
526
526
  $e[n] = !0;
527
- var i = "";
528
- e && e._owner && e._owner !== ce.current && (i = " It was passed a child from " + R(e._owner.type) + "."), U(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), U(null);
527
+ var o = "";
528
+ e && e._owner && e._owner !== de.current && (o = " It was passed a child from " + R(e._owner.type) + "."), z(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), z(null);
529
529
  }
530
530
  }
531
- function Ae(e, r) {
531
+ function Fe(e, r) {
532
532
  {
533
533
  if (typeof e != "object")
534
534
  return;
535
- if (le(e))
535
+ if (ce(e))
536
536
  for (var n = 0; n < e.length; n++) {
537
- var i = e[n];
538
- de(i) && Fe(i, r);
537
+ var o = e[n];
538
+ me(o) && De(o, r);
539
539
  }
540
- else if (de(e))
540
+ else if (me(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var b = m(e);
544
- if (typeof b == "function" && b !== e.entries)
545
- for (var w = b.call(e), f; !(f = w.next()).done; )
546
- de(f.value) && Fe(f.value, r);
543
+ var h = b(e);
544
+ if (typeof h == "function" && h !== e.entries)
545
+ for (var w = h.call(e), v; !(v = w.next()).done; )
546
+ me(v.value) && De(v.value, r);
547
547
  }
548
548
  }
549
549
  }
550
- function cr(e) {
550
+ function fr(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
@@ -555,144 +555,144 @@ Check the top-level render call using <` + n + ">.");
555
555
  var n;
556
556
  if (typeof r == "function")
557
557
  n = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
560
  r.$$typeof === y))
561
561
  n = r.propTypes;
562
562
  else
563
563
  return;
564
564
  if (n) {
565
- var i = R(r);
566
- Ge(n, e.props, "prop", i, e);
567
- } else if (r.PropTypes !== void 0 && !fe) {
568
- fe = !0;
569
- var b = R(r);
570
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
565
+ var o = R(r);
566
+ He(n, e.props, "prop", o, e);
567
+ } else if (r.PropTypes !== void 0 && !ve) {
568
+ ve = !0;
569
+ var h = R(r);
570
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
571
571
  }
572
572
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function fr(e) {
575
+ function dr(e) {
576
576
  {
577
577
  for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
578
- var i = r[n];
579
- if (i !== "children" && i !== "key") {
580
- U(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), U(null);
578
+ var o = r[n];
579
+ if (o !== "children" && o !== "key") {
580
+ z(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), z(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (U(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
584
+ e.ref !== null && (z(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
585
585
  }
586
586
  }
587
- var De = {};
588
- function Me(e, r, n, i, b, w) {
587
+ var Ae = {};
588
+ function Le(e, r, n, o, h, w) {
589
589
  {
590
- var f = V(e);
591
- if (!f) {
592
- var l = "";
593
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var $ = lr(b);
595
- $ ? l += $ : l += Ie();
596
- var _;
597
- e === null ? _ = "null" : le(e) ? _ = "array" : e !== void 0 && e.$$typeof === d ? (_ = "<" + (R(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, l);
590
+ var v = Y(e);
591
+ if (!v) {
592
+ var c = "";
593
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var $ = ur(h);
595
+ $ ? c += $ : c += Ie();
596
+ var T;
597
+ e === null ? T = "null" : ce(e) ? T = "array" : e !== void 0 && e.$$typeof === f ? (T = "<" + (R(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, c);
598
598
  }
599
- var T = sr(e, r, n, b, w);
600
- if (T == null)
601
- return T;
602
- if (f) {
603
- var M = r.children;
604
- if (M !== void 0)
605
- if (i)
606
- if (le(M)) {
607
- for (var B = 0; B < M.length; B++)
608
- Ae(M[B], e);
609
- Object.freeze && Object.freeze(M);
599
+ var N = lr(e, r, n, h, w);
600
+ if (N == null)
601
+ return N;
602
+ if (v) {
603
+ var L = r.children;
604
+ if (L !== void 0)
605
+ if (o)
606
+ if (ce(L)) {
607
+ for (var B = 0; B < L.length; B++)
608
+ Fe(L[B], e);
609
+ Object.freeze && Object.freeze(L);
610
610
  } else
611
611
  E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
612
  else
613
- Ae(M, e);
613
+ Fe(L, e);
614
614
  }
615
- if (z.call(r, "key")) {
616
- var W = R(e), A = Object.keys(r).filter(function(gr) {
617
- return gr !== "key";
618
- }), ve = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!De[W + ve]) {
620
- var hr = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
615
+ if (U.call(r, "key")) {
616
+ var W = R(e), F = Object.keys(r).filter(function(pr) {
617
+ return pr !== "key";
618
+ }), be = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!Ae[W + be]) {
620
+ var gr = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
621
621
  E(`A props object containing a "key" prop is being spread into JSX:
622
622
  let props = %s;
623
623
  <%s {...props} />
624
624
  React keys must be passed directly to JSX without using spread:
625
625
  let props = %s;
626
- <%s key={someKey} {...props} />`, ve, W, hr, W), De[W + ve] = !0;
626
+ <%s key={someKey} {...props} />`, be, W, gr, W), Ae[W + be] = !0;
627
627
  }
628
628
  }
629
- return e === u ? fr(T) : cr(T), T;
629
+ return e === s ? dr(N) : fr(N), N;
630
630
  }
631
631
  }
632
- function dr(e, r, n) {
633
- return Me(e, r, n, !0);
634
- }
635
632
  function vr(e, r, n) {
636
- return Me(e, r, n, !1);
633
+ return Le(e, r, n, !0);
637
634
  }
638
- var mr = vr, br = dr;
639
- K.Fragment = u, K.jsx = mr, K.jsxs = br;
640
- }()), K;
635
+ function mr(e, r, n) {
636
+ return Le(e, r, n, !1);
637
+ }
638
+ var br = mr, hr = vr;
639
+ J.Fragment = s, J.jsx = br, J.jsxs = hr;
640
+ }()), J;
641
641
  }
642
- process.env.NODE_ENV === "production" ? he.exports = yr() : he.exports = xr();
642
+ process.env.NODE_ENV === "production" ? he.exports = xr() : he.exports = jr();
643
643
  var t = he.exports;
644
- function Be(o) {
645
- var d, a, u = "";
646
- if (typeof o == "string" || typeof o == "number")
647
- u += o;
648
- else if (typeof o == "object")
649
- if (Array.isArray(o)) {
650
- var p = o.length;
651
- for (d = 0; d < p; d++)
652
- o[d] && (a = Be(o[d])) && (u && (u += " "), u += a);
644
+ function Be(i) {
645
+ var f, a, s = "";
646
+ if (typeof i == "string" || typeof i == "number")
647
+ s += i;
648
+ else if (typeof i == "object")
649
+ if (Array.isArray(i)) {
650
+ var g = i.length;
651
+ for (f = 0; f < g; f++)
652
+ i[f] && (a = Be(i[f])) && (s && (s += " "), s += a);
653
653
  } else
654
- for (a in o)
655
- o[a] && (u && (u += " "), u += a);
656
- return u;
654
+ for (a in i)
655
+ i[a] && (s && (s += " "), s += a);
656
+ return s;
657
657
  }
658
- function jr() {
659
- for (var o, d, a = 0, u = "", p = arguments.length; a < p; a++)
660
- (o = arguments[a]) && (d = Be(o)) && (u && (u += " "), u += d);
661
- return u;
658
+ function wr() {
659
+ for (var i, f, a = 0, s = "", g = arguments.length; a < g; a++)
660
+ (i = arguments[a]) && (f = Be(i)) && (s && (s += " "), s += f);
661
+ return s;
662
662
  }
663
- const Ye = (o) => typeof o == "boolean" ? `${o}` : o === 0 ? "0" : o, Ve = jr, wr = (o, d) => (a) => {
664
- var u;
665
- if ((d == null ? void 0 : d.variants) == null)
666
- return Ve(o, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
667
- const { variants: p, defaultVariants: N } = d, C = Object.keys(p).map((g) => {
668
- const s = a == null ? void 0 : a[g], y = N == null ? void 0 : N[g];
669
- if (s === null)
663
+ const Ve = (i) => typeof i == "boolean" ? `${i}` : i === 0 ? "0" : i, Ye = wr, Ue = (i, f) => (a) => {
664
+ var s;
665
+ if ((f == null ? void 0 : f.variants) == null)
666
+ return Ye(i, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
667
+ const { variants: g, defaultVariants: _ } = f, C = Object.keys(g).map((p) => {
668
+ const l = a == null ? void 0 : a[p], y = _ == null ? void 0 : _[p];
669
+ if (l === null)
670
670
  return null;
671
- const v = Ye(s) || Ye(y);
672
- return p[g][v];
673
- }), h = a && Object.entries(a).reduce((g, s) => {
674
- let [y, v] = s;
675
- return v === void 0 || (g[y] = v), g;
676
- }, {}), c = d == null || (u = d.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((g, s) => {
677
- let { class: y, className: v, ...x } = s;
671
+ const m = Ve(l) || Ve(y);
672
+ return g[p][m];
673
+ }), d = a && Object.entries(a).reduce((p, l) => {
674
+ let [y, m] = l;
675
+ return m === void 0 || (p[y] = m), p;
676
+ }, {}), u = f == null || (s = f.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((p, l) => {
677
+ let { class: y, className: m, ...x } = l;
678
678
  return Object.entries(x).every((S) => {
679
- let [D, m] = S;
680
- return Array.isArray(m) ? m.includes({
681
- ...N,
682
- ...h
683
- }[D]) : {
684
- ...N,
685
- ...h
686
- }[D] === m;
679
+ let [A, b] = S;
680
+ return Array.isArray(b) ? b.includes({
681
+ ..._,
682
+ ...d
683
+ }[A]) : {
684
+ ..._,
685
+ ...d
686
+ }[A] === b;
687
687
  }) ? [
688
- ...g,
688
+ ...p,
689
689
  y,
690
- v
691
- ] : g;
690
+ m
691
+ ] : p;
692
692
  }, []);
693
- return Ve(o, C, c, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
693
+ return Ye(i, C, u, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
694
694
  };
695
- const Er = wr("button", {
695
+ const Er = Ue("button", {
696
696
  variants: {
697
697
  variant: {
698
698
  outlined: "button-outlined",
@@ -753,25 +753,25 @@ const Er = wr("button", {
753
753
  { variant: "icon", color: "error", className: "button-icon-error" },
754
754
  { variant: "icon", color: "clear", className: "button-icon-clear" }
755
755
  ]
756
- }), Rr = pr(
756
+ }), Rr = yr(
757
757
  ({
758
- className: o,
759
- variant: d,
758
+ className: i,
759
+ variant: f,
760
760
  color: a,
761
- size: u,
762
- pill: p,
763
- active: N,
761
+ size: s,
762
+ pill: g,
763
+ active: _,
764
764
  iconLeft: C,
765
- iconRight: h,
766
- iconLeftJustified: c,
767
- iconRightJustified: g,
768
- iconOnly: s,
765
+ iconRight: d,
766
+ iconLeftJustified: u,
767
+ iconRightJustified: p,
768
+ iconOnly: l,
769
769
  width: y,
770
- children: v,
770
+ children: m,
771
771
  style: x,
772
772
  ...S
773
- }, D) => {
774
- const m = {
773
+ }, A) => {
774
+ const b = {
775
775
  ...x || {},
776
776
  ...y ? { width: y } : {}
777
777
  };
@@ -779,90 +779,90 @@ const Er = wr("button", {
779
779
  "button",
780
780
  {
781
781
  className: Er({
782
- variant: d,
782
+ variant: f,
783
783
  color: a,
784
- size: u,
785
- pill: p,
786
- active: N,
784
+ size: s,
785
+ pill: g,
786
+ active: _,
787
787
  iconLeft: !!C,
788
- iconRight: !!h,
789
- iconLeftJustified: !!c,
790
- iconRightJustified: !!g,
791
- iconOnly: !!s,
792
- className: o
788
+ iconRight: !!d,
789
+ iconLeftJustified: !!u,
790
+ iconRightJustified: !!p,
791
+ iconOnly: !!l,
792
+ className: i
793
793
  }),
794
- style: m,
795
- ref: D,
794
+ style: b,
795
+ ref: A,
796
796
  ...S,
797
797
  children: [
798
798
  C && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: C }),
799
- c && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: c }),
800
- s ? /* @__PURE__ */ t.jsx("span", { children: s }) : v,
801
- h && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: h }),
802
- g && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: g })
799
+ u && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: u }),
800
+ l ? /* @__PURE__ */ t.jsx("span", { children: l }) : m,
801
+ d && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: d }),
802
+ p && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: p })
803
803
  ]
804
804
  }
805
805
  );
806
806
  }
807
807
  );
808
808
  Rr.displayName = "Button";
809
- const _r = ({ className: o }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t.jsx("path", { d: "M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z", fill: "#F9FAFB" }) }), Cr = ({
810
- icon: o,
811
- url: d,
809
+ const _r = ({ className: i }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: i, children: /* @__PURE__ */ t.jsx("path", { d: "M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z", fill: "#F9FAFB" }) }), Cr = ({
810
+ icon: i,
811
+ url: f,
812
812
  label: a,
813
- submenu: u,
814
- collapsed: p,
815
- active: N,
813
+ submenu: s,
814
+ collapsed: g,
815
+ active: _,
816
816
  activePath: C,
817
- isOpen: h,
818
- onToggle: c,
819
- onExpand: g,
820
- onSetActive: s,
817
+ isOpen: d,
818
+ onToggle: u,
819
+ onExpand: p,
820
+ onSetActive: l,
821
821
  isMobile: y = !1
822
822
  }) => {
823
- const v = u && u.length > 0, x = v && u.some((m) => m.url === C), S = N || h && v || x || d === C, D = (m) => {
824
- if (m.preventDefault(), y && v) {
825
- c();
823
+ const m = s && s.length > 0, x = m && s.some((b) => b.url === C), S = _ || d && m || x || f === C, A = (b) => {
824
+ if (b.preventDefault(), y && m) {
825
+ u();
826
826
  return;
827
827
  }
828
- if (s && s(d), p && g) {
829
- g();
828
+ if (l && l(f), g && p) {
829
+ p();
830
830
  return;
831
831
  }
832
- v && !p && c();
832
+ m && !g && u();
833
833
  };
834
- return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${h ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${S && !p ? "active" : ""}`, children: [
834
+ return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${d ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${S && !g ? "active" : ""}`, children: [
835
835
  /* @__PURE__ */ t.jsxs(
836
836
  "a",
837
837
  {
838
- href: d,
838
+ href: f,
839
839
  className: `sidebar-link sidebar-collapsed ${S ? "active-text" : ""}`,
840
- onClick: D,
840
+ onClick: A,
841
841
  children: [
842
- /* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${S ? "active-text" : ""}`, children: o }),
843
- (!p || y) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
842
+ /* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${S ? "active-text" : ""}`, children: i }),
843
+ (!g || y) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
844
844
  /* @__PURE__ */ t.jsx("span", { className: "sidebar-label", children: a }),
845
- v && /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ t.jsx(_r, { className: `${S ? "active-text" : ""}` }) })
845
+ m && /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ t.jsx(_r, { className: `${S ? "active-text" : ""}` }) })
846
846
  ] })
847
847
  ]
848
848
  }
849
849
  ),
850
- v && (!p || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: u.map((m, I) => {
851
- const E = m.url === C;
850
+ m && (!g || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: s.map((b, I) => {
851
+ const E = b.url === C;
852
852
  return /* @__PURE__ */ t.jsx(
853
853
  "a",
854
854
  {
855
- href: m.url,
855
+ href: b.url,
856
856
  className: `submenu-item ${E ? "active-text" : ""}`,
857
- onClick: () => s && s(m.url),
858
- children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: m.label })
857
+ onClick: () => l && l(b.url),
858
+ children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: b.label })
859
859
  },
860
860
  I
861
861
  );
862
862
  }) })
863
863
  ] }) });
864
864
  };
865
- const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
865
+ const Tr = ({ className: i }) => /* @__PURE__ */ t.jsxs(
866
866
  "svg",
867
867
  {
868
868
  width: "28",
@@ -870,13 +870,13 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
870
870
  viewBox: "0 0 28 28",
871
871
  fill: "none",
872
872
  xmlns: "http://www.w3.org/2000/svg",
873
- className: o,
873
+ className: i,
874
874
  children: [
875
875
  /* @__PURE__ */ t.jsx("circle", { cx: "14", cy: "14", r: "14", fill: "#00F7AA" }),
876
876
  /* @__PURE__ */ t.jsx("path", { d: "M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z", fill: "#002244" })
877
877
  ]
878
878
  }
879
- ), Ue = () => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsxs("g", { className: "hamburger-icon", children: [
879
+ ), ze = () => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsxs("g", { className: "hamburger-icon", children: [
880
880
  /* @__PURE__ */ t.jsx(
881
881
  "line",
882
882
  {
@@ -916,62 +916,62 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
916
916
  className: "hamburger-line bottom-line"
917
917
  }
918
918
  )
919
- ] }) }), Nr = ({
920
- logo: o,
921
- logoCollapsed: d,
919
+ ] }) }), kr = ({
920
+ logo: i,
921
+ logoCollapsed: f,
922
922
  items: a,
923
- logoutIcon: u,
924
- onLogout: p,
925
- logoutLabel: N = "Cerrar sesión",
923
+ logoutIcon: s,
924
+ onLogout: g,
925
+ logoutLabel: _ = "Cerrar sesión",
926
926
  collapsed: C = !1,
927
- onToggle: h,
928
- activePath: c,
929
- onActiveChange: g
927
+ onToggle: d,
928
+ activePath: u,
929
+ onActiveChange: p
930
930
  }) => {
931
- const [s, y] = Y(C), [v, x] = Y(null), [S, D] = Y(c), [m, I] = Y(!1), [E, L] = Y(!1), [P, re] = Y(!1);
932
- be(() => {
931
+ const [l, y] = V(C), [m, x] = V(null), [S, A] = V(u), [b, I] = V(!1), [E, M] = V(!1), [P, te] = V(!1);
932
+ ne(() => {
933
933
  const j = () => {
934
- re(window.innerWidth <= 768);
934
+ te(window.innerWidth <= 768);
935
935
  };
936
936
  return j(), window.addEventListener("resize", j), () => {
937
937
  window.removeEventListener("resize", j);
938
938
  };
939
939
  }, []), ge.useEffect(() => {
940
940
  var j;
941
- if (c) {
942
- D(c);
941
+ if (u) {
942
+ A(u);
943
943
  const k = a.findIndex(
944
944
  (R) => {
945
945
  var O;
946
- return R.url === c || ((O = R.submenu) == null ? void 0 : O.some((F) => F.url === c));
946
+ return R.url === u || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === u));
947
947
  }
948
948
  );
949
949
  k !== -1 && ((j = a[k].submenu) != null && j.length ? x(k) : x(null));
950
950
  }
951
- }, [c, a]);
952
- const ne = () => {
953
- y(!s), h && h();
954
- }, te = () => {
951
+ }, [u, a]);
952
+ const ae = () => {
953
+ y(!l), d && d();
954
+ }, ie = () => {
955
955
  var j;
956
- if (s)
957
- if (y(!1), h && h(), S) {
956
+ if (l)
957
+ if (y(!1), d && d(), S) {
958
958
  const k = a.findIndex(
959
959
  (R) => {
960
960
  var O;
961
- return R.url === S || ((O = R.submenu) == null ? void 0 : O.some((F) => F.url === S));
961
+ return R.url === S || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === S));
962
962
  }
963
963
  );
964
964
  k !== -1 && ((j = a[k].submenu) != null && j.length) ? x(k) : x(null);
965
965
  } else
966
966
  x(null);
967
- }, ae = (j) => {
968
- x(v === j ? null : j), P && I(!0);
967
+ }, oe = (j) => {
968
+ x(m === j ? null : j), P && I(!0);
969
969
  }, q = (j) => {
970
- D(j);
970
+ A(j);
971
971
  const k = a.findIndex(
972
972
  (R) => {
973
973
  var O;
974
- return R.url === j || ((O = R.submenu) == null ? void 0 : O.some((F) => F.url === j));
974
+ return R.url === j || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === j));
975
975
  }
976
976
  );
977
977
  if (k !== -1) {
@@ -979,59 +979,59 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
979
979
  R.submenu && R.submenu.length > 0 ? x(k) : x(null);
980
980
  } else
981
981
  x(null);
982
- g && g(j), P && (a.some(
982
+ p && p(j), P && (a.some(
983
983
  (O) => {
984
- var F;
985
- return (F = O.submenu) == null ? void 0 : F.some((G) => G.url === j);
984
+ var D;
985
+ return (D = O.submenu) == null ? void 0 : D.some((G) => G.url === j);
986
986
  }
987
- ) || (L(!0), setTimeout(() => {
988
- I(!1), L(!1);
987
+ ) || (M(!0), setTimeout(() => {
988
+ I(!1), M(!1);
989
989
  }, 500)));
990
- }, V = () => {
991
- m ? (L(!0), setTimeout(() => {
992
- I(!1), L(!1);
990
+ }, Y = () => {
991
+ b ? (M(!0), setTimeout(() => {
992
+ I(!1), M(!1);
993
993
  }, 500)) : I(!0);
994
994
  };
995
995
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
996
996
  P && /* @__PURE__ */ t.jsxs("div", { className: "mobile-navbar", children: [
997
- /* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: o }),
997
+ /* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: i }),
998
998
  /* @__PURE__ */ t.jsx(
999
999
  "button",
1000
1000
  {
1001
- className: `mobile-menu-button ${m ? "open" : ""}`,
1002
- onClick: V,
1001
+ className: `mobile-menu-button ${b ? "open" : ""}`,
1002
+ onClick: Y,
1003
1003
  "aria-label": "Toggle mobile menu",
1004
- children: /* @__PURE__ */ t.jsx(Ue, {})
1004
+ children: /* @__PURE__ */ t.jsx(ze, {})
1005
1005
  }
1006
1006
  )
1007
1007
  ] }),
1008
1008
  !P && /* @__PURE__ */ t.jsx(
1009
1009
  "button",
1010
1010
  {
1011
- className: `mobile-menu-button ${m ? "open" : ""}`,
1012
- onClick: V,
1011
+ className: `mobile-menu-button ${b ? "open" : ""}`,
1012
+ onClick: Y,
1013
1013
  "aria-label": "Toggle mobile menu",
1014
1014
  style: { display: "none" },
1015
- children: /* @__PURE__ */ t.jsx(Ue, {})
1015
+ children: /* @__PURE__ */ t.jsx(ze, {})
1016
1016
  }
1017
1017
  ),
1018
- P && (m || E) && /* @__PURE__ */ t.jsx(
1018
+ P && (b || E) && /* @__PURE__ */ t.jsx(
1019
1019
  "div",
1020
1020
  {
1021
- className: `sidebar-overlay ${m ? "visible" : ""}`,
1022
- onClick: V
1021
+ className: `sidebar-overlay ${b ? "visible" : ""}`,
1022
+ onClick: Y
1023
1023
  }
1024
1024
  ),
1025
- /* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${m ? "mobile-open" : ""} ${E ? "mobile-closing" : ""}`, children: [
1026
- /* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!P && s ? "sidebar-collapsed" : ""} ${P ? "sidebar-mobile" : ""}`, children: [
1027
- !P && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: s ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: d }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: o }) }) }),
1028
- P && (m || E) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
1029
- /* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: o }),
1025
+ /* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${b ? "mobile-open" : ""} ${E ? "mobile-closing" : ""}`, children: [
1026
+ /* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!P && l ? "sidebar-collapsed" : ""} ${P ? "sidebar-mobile" : ""}`, children: [
1027
+ !P && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: l ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: f }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: i }) }) }),
1028
+ P && (b || E) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
1029
+ /* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: i }),
1030
1030
  /* @__PURE__ */ t.jsx(
1031
1031
  "button",
1032
1032
  {
1033
1033
  className: "mobile-close-button",
1034
- onClick: V,
1034
+ onClick: Y,
1035
1035
  "aria-label": "Close menu",
1036
1036
  children: "×"
1037
1037
  }
@@ -1044,27 +1044,27 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
1044
1044
  url: j.url,
1045
1045
  label: j.label,
1046
1046
  submenu: j.submenu,
1047
- collapsed: s,
1047
+ collapsed: l,
1048
1048
  active: j.active || j.url === S,
1049
1049
  activePath: S,
1050
- isOpen: v === k,
1051
- onToggle: () => ae(k),
1052
- onExpand: te,
1050
+ isOpen: m === k,
1051
+ onToggle: () => oe(k),
1052
+ onExpand: ie,
1053
1053
  onSetActive: q,
1054
1054
  isMobile: P
1055
1055
  },
1056
1056
  k
1057
1057
  )) }),
1058
- p && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: p, children: [
1059
- u,
1060
- !s && /* @__PURE__ */ t.jsx("span", { children: N })
1058
+ g && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: g, children: [
1059
+ s,
1060
+ !l && /* @__PURE__ */ t.jsx("span", { children: _ })
1061
1061
  ] }) })
1062
1062
  ] }),
1063
1063
  !P && /* @__PURE__ */ t.jsx(
1064
1064
  "button",
1065
1065
  {
1066
- className: `sidebar-toggle-icon${s ? " collapsed" : ""}`,
1067
- onClick: ne,
1066
+ className: `sidebar-toggle-icon${l ? " collapsed" : ""}`,
1067
+ onClick: ae,
1068
1068
  "aria-label": "Toggle sidebar",
1069
1069
  children: /* @__PURE__ */ t.jsx(Tr, {})
1070
1070
  }
@@ -1072,46 +1072,46 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
1072
1072
  ] })
1073
1073
  ] });
1074
1074
  };
1075
- const kr = ({
1076
- isOpen: o,
1077
- onClose: d,
1075
+ const Or = ({
1076
+ isOpen: i,
1077
+ onClose: f,
1078
1078
  title: a = "",
1079
- children: u,
1080
- position: p = "right",
1081
- size: N = "medium",
1079
+ children: s,
1080
+ position: g = "right",
1081
+ size: _ = "medium",
1082
1082
  enableSwipeToClose: C = !0
1083
1083
  }) => {
1084
- const [h, c] = Y(!1), g = me(null), s = me(0), y = me(0), v = 50, x = () => {
1085
- !h && o && (c(!0), setTimeout(() => {
1086
- c(!1), d();
1084
+ const [d, u] = V(!1), p = re(null), l = re(0), y = re(0), m = 50, x = () => {
1085
+ !d && i && (u(!0), setTimeout(() => {
1086
+ u(!1), f();
1087
1087
  }, 500));
1088
- }, S = (m) => {
1089
- C && (s.current = m.touches[0].clientX, y.current = m.touches[0].clientY);
1090
- }, D = (m) => {
1091
- if (!C || !m.changedTouches[0])
1088
+ }, S = (b) => {
1089
+ C && (l.current = b.touches[0].clientX, y.current = b.touches[0].clientY);
1090
+ }, A = (b) => {
1091
+ if (!C || !b.changedTouches[0])
1092
1092
  return;
1093
- const I = m.changedTouches[0].clientX, E = m.changedTouches[0].clientY, L = I - s.current, P = E - y.current;
1094
- (p === "right" && L > v || p === "left" && L < -v || p === "top" && P < -v || p === "bottom" && P > v) && x();
1093
+ const I = b.changedTouches[0].clientX, E = b.changedTouches[0].clientY, M = I - l.current, P = E - y.current;
1094
+ (g === "right" && M > m || g === "left" && M < -m || g === "top" && P < -m || g === "bottom" && P > m) && x();
1095
1095
  };
1096
- return be(() => {
1097
- o && c(!1);
1098
- }, [o]), be(() => (o && !h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
1096
+ return ne(() => {
1097
+ i && u(!1);
1098
+ }, [i]), ne(() => (i && !d ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
1099
1099
  document.body.style.overflow = "";
1100
- }), [o, h]), !o && !h ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1100
+ }), [i, d]), !i && !d ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1101
1101
  /* @__PURE__ */ t.jsx(
1102
1102
  "div",
1103
1103
  {
1104
- className: `drawer-overlay ${h ? "fade-out" : "fade-in"}`,
1104
+ className: `drawer-overlay ${d ? "fade-out" : "fade-in"}`,
1105
1105
  onClick: x
1106
1106
  }
1107
1107
  ),
1108
1108
  /* @__PURE__ */ t.jsxs(
1109
1109
  "div",
1110
1110
  {
1111
- ref: g,
1112
- className: `drawer drawer-${p} drawer-${N} ${h ? "drawer-closing" : "drawer-open"}`,
1111
+ ref: p,
1112
+ className: `drawer drawer-${g} drawer-${_} ${d ? "drawer-closing" : "drawer-open"}`,
1113
1113
  onTouchStart: S,
1114
- onTouchEnd: D,
1114
+ onTouchEnd: A,
1115
1115
  children: [
1116
1116
  /* @__PURE__ */ t.jsxs("div", { className: `drawer-header ${a ? "has-title" : "no-title"}`, children: [
1117
1117
  a && /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: a }),
@@ -1125,16 +1125,56 @@ const kr = ({
1125
1125
  }
1126
1126
  )
1127
1127
  ] }),
1128
- /* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: u })
1128
+ /* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: s })
1129
1129
  ]
1130
1130
  }
1131
1131
  )
1132
1132
  ] });
1133
1133
  };
1134
+ const Nr = Ue("modal-container", {
1135
+ variants: {
1136
+ size: {
1137
+ s: "modal-size-s",
1138
+ m: "modal-size-m",
1139
+ l: "modal-size-l"
1140
+ }
1141
+ },
1142
+ defaultVariants: {
1143
+ size: "m"
1144
+ }
1145
+ }), Pr = ({
1146
+ title: i,
1147
+ children: f,
1148
+ active: a,
1149
+ onClose: s,
1150
+ size: g
1151
+ }) => {
1152
+ const _ = re(null);
1153
+ ne(() => {
1154
+ const d = (u) => {
1155
+ u.key === "Escape" && s();
1156
+ };
1157
+ return a && document.addEventListener("keydown", d), () => {
1158
+ document.removeEventListener("keydown", d);
1159
+ };
1160
+ }, [a, s]);
1161
+ const C = (d) => {
1162
+ _.current && d.target === _.current && s();
1163
+ };
1164
+ return a ? /* @__PURE__ */ t.jsx("div", { className: "modal-backdrop", ref: _, onClick: C, children: /* @__PURE__ */ t.jsxs("div", { className: Nr({ size: g }), children: [
1165
+ /* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
1166
+ /* @__PURE__ */ t.jsx("h2", { children: i }),
1167
+ /* @__PURE__ */ t.jsx("button", { className: "modal-close", onClick: s, "aria-label": "Cerrar", children: "×" })
1168
+ ] }),
1169
+ /* @__PURE__ */ t.jsx("hr", { className: "modal-divider" }),
1170
+ /* @__PURE__ */ t.jsx("div", { className: "modal-content", children: f })
1171
+ ] }) }) : null;
1172
+ };
1134
1173
  export {
1135
1174
  Rr as Button,
1136
- kr as Drawer,
1137
- Nr as Sidebar,
1175
+ Or as Drawer,
1176
+ Pr as Modal,
1177
+ kr as Sidebar,
1138
1178
  Er as buttonVariants
1139
1179
  };
1140
1180
  //# sourceMappingURL=index.esm.js.map