kelt-ui-kit-react 0.1.2 → 0.1.3

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 (77) hide show
  1. package/README.md +46 -46
  2. package/dist/App.d.ts +3 -0
  3. package/dist/App.menu.d.ts +9 -0
  4. package/dist/App.routes.d.ts +1 -0
  5. package/dist/button/button.d.ts +3 -0
  6. package/dist/button/button.interface.d.ts +8 -0
  7. package/dist/button/button.view.d.ts +1 -0
  8. package/dist/expands/expand/expand.d.ts +1 -0
  9. package/dist/form/form.d.ts +11 -0
  10. package/dist/form/form.view.d.ts +1 -0
  11. package/dist/header/header.d.ts +3 -0
  12. package/dist/header/header.interface.d.ts +6 -0
  13. package/dist/header/header.view.d.ts +1 -0
  14. package/dist/home/home.d.ts +1 -0
  15. package/dist/icon/icon.d.ts +3 -0
  16. package/dist/icon/icon.interface.d.ts +3 -0
  17. package/dist/icon/icons.view.d.ts +1 -0
  18. package/dist/index.d.ts +7 -0
  19. package/dist/index.html +43 -43
  20. package/dist/index.js +1410 -0
  21. package/dist/main.d.ts +0 -1
  22. package/dist/manifest.json +25 -25
  23. package/dist/menus/menu/menu.d.ts +8 -0
  24. package/dist/menus/menu/menu.interface.d.ts +6 -0
  25. package/dist/menus/menus.d.ts +7 -0
  26. package/dist/menus/menus.view.d.ts +1 -0
  27. package/dist/notFound/notFound.d.ts +1 -0
  28. package/dist/robots.txt +3 -3
  29. package/dist/sidebar/sidebar.d.ts +7 -0
  30. package/dist/sidebar/sidebar.view.d.ts +1 -0
  31. package/dist/style.css +5 -1
  32. package/dist/toaster/toaster.d.ts +7 -0
  33. package/dist/toaster/toaster.view.d.ts +1 -0
  34. package/index.html +18 -11
  35. package/package.json +52 -52
  36. package/public/index.html +43 -43
  37. package/public/manifest.json +25 -25
  38. package/public/robots.txt +3 -3
  39. package/src/App.css +9 -9
  40. package/src/App.menu.tsx +44 -0
  41. package/src/App.routes.tsx +16 -0
  42. package/src/App.tsx +25 -0
  43. package/src/button/button.css +30 -0
  44. package/src/button/button.interface.tsx +7 -0
  45. package/src/button/button.tsx +32 -0
  46. package/src/button/button.view.tsx +28 -0
  47. package/src/expands/expand/expand.tsx +5 -2
  48. package/src/expands/expands.css +43 -30
  49. package/src/form/form.css +0 -0
  50. package/src/form/form.tsx +59 -0
  51. package/src/form/form.view.tsx +17 -0
  52. package/src/header/header.css +12 -0
  53. package/src/header/header.interface.tsx +5 -0
  54. package/src/header/header.tsx +25 -0
  55. package/src/header/header.view.tsx +5 -0
  56. package/src/home/home.tsx +3 -0
  57. package/src/icon/icon.css +3 -0
  58. package/src/icon/icon.interface.tsx +3 -0
  59. package/src/icon/icon.tsx +5 -0
  60. package/src/icon/icons.view.tsx +29 -0
  61. package/src/index.css +286 -167
  62. package/src/index.ts +9 -0
  63. package/src/main.tsx +9 -1
  64. package/src/menus/menu/menu.interface.tsx +6 -0
  65. package/src/menus/menu/menu.tsx +17 -0
  66. package/src/menus/menus.css +24 -0
  67. package/src/menus/menus.tsx +34 -0
  68. package/src/menus/menus.view.tsx +28 -0
  69. package/src/notFound/notFound.tsx +3 -0
  70. package/src/sidebar/sidebar.css +46 -0
  71. package/src/sidebar/sidebar.tsx +40 -0
  72. package/src/sidebar/sidebar.view.tsx +17 -0
  73. package/src/toaster/toaster.css +12 -0
  74. package/src/toaster/toaster.tsx +43 -0
  75. package/src/toaster/toaster.view.tsx +11 -0
  76. package/vite.config.ts +6 -3
  77. package/dist/main.js +0 -2136
package/dist/index.js ADDED
@@ -0,0 +1,1410 @@
1
+ import * as v from "react";
2
+ import mt, { useState as ke, useCallback as Le, useEffect as ut } from "react";
3
+ import ar from "react-dom";
4
+ var Pe = { exports: {} }, H = {};
5
+ /**
6
+ * @license React
7
+ * react-jsx-runtime.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var ct;
15
+ function ir() {
16
+ if (ct) return H;
17
+ ct = 1;
18
+ var e = mt, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function u(f, c, d) {
20
+ var p, m = {}, b = null, k = null;
21
+ d !== void 0 && (b = "" + d), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (k = c.ref);
22
+ for (p in c) i.call(c, p) && !l.hasOwnProperty(p) && (m[p] = c[p]);
23
+ if (f && f.defaultProps) for (p in c = f.defaultProps, c) m[p] === void 0 && (m[p] = c[p]);
24
+ return { $$typeof: r, type: f, key: b, ref: k, props: m, _owner: a.current };
25
+ }
26
+ return H.Fragment = n, H.jsx = u, H.jsxs = u, H;
27
+ }
28
+ var ee = {};
29
+ /**
30
+ * @license React
31
+ * react-jsx-runtime.development.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */
38
+ var ft;
39
+ function or() {
40
+ return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
41
+ var e = mt, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
42
+ function V(t) {
43
+ if (t === null || typeof t != "object")
44
+ return null;
45
+ var o = P && t[P] || t[A];
46
+ return typeof o == "function" ? o : null;
47
+ }
48
+ var D = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function g(t) {
50
+ {
51
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), h = 1; h < o; h++)
52
+ s[h - 1] = arguments[h];
53
+ O("error", t, s);
54
+ }
55
+ }
56
+ function O(t, o, s) {
57
+ {
58
+ var h = D.ReactDebugCurrentFrame, x = h.getStackAddendum();
59
+ x !== "" && (o += "%s", s = s.concat([x]));
60
+ var C = s.map(function(E) {
61
+ return String(E);
62
+ });
63
+ C.unshift("Warning: " + o), Function.prototype.apply.call(console[t], console, C);
64
+ }
65
+ }
66
+ var N = !1, W = !1, q = !1, ie = !1, z = !1, oe;
67
+ oe = Symbol.for("react.module.reference");
68
+ function G(t) {
69
+ return !!(typeof t == "string" || typeof t == "function" || t === i || t === l || z || t === a || t === d || t === p || ie || t === k || N || W || q || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === m || t.$$typeof === u || t.$$typeof === f || t.$$typeof === c || // This needs to include all possible module reference object
70
+ // types supported by any Flight configuration anywhere since
71
+ // we don't know which Flight build this will end up being used
72
+ // with.
73
+ t.$$typeof === oe || t.getModuleId !== void 0));
74
+ }
75
+ function ge(t, o, s) {
76
+ var h = t.displayName;
77
+ if (h)
78
+ return h;
79
+ var x = o.displayName || o.name || "";
80
+ return x !== "" ? s + "(" + x + ")" : s;
81
+ }
82
+ function $e(t) {
83
+ return t.displayName || "Context";
84
+ }
85
+ function F(t) {
86
+ if (t == null)
87
+ return null;
88
+ if (typeof t.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
89
+ return t.displayName || t.name || null;
90
+ if (typeof t == "string")
91
+ return t;
92
+ switch (t) {
93
+ case i:
94
+ return "Fragment";
95
+ case n:
96
+ return "Portal";
97
+ case l:
98
+ return "Profiler";
99
+ case a:
100
+ return "StrictMode";
101
+ case d:
102
+ return "Suspense";
103
+ case p:
104
+ return "SuspenseList";
105
+ }
106
+ if (typeof t == "object")
107
+ switch (t.$$typeof) {
108
+ case f:
109
+ var o = t;
110
+ return $e(o) + ".Consumer";
111
+ case u:
112
+ var s = t;
113
+ return $e(s._context) + ".Provider";
114
+ case c:
115
+ return ge(t, t.render, "ForwardRef");
116
+ case m:
117
+ var h = t.displayName || null;
118
+ return h !== null ? h : F(t.type) || "Memo";
119
+ case b: {
120
+ var x = t, C = x._payload, E = x._init;
121
+ try {
122
+ return F(E(C));
123
+ } catch {
124
+ return null;
125
+ }
126
+ }
127
+ }
128
+ return null;
129
+ }
130
+ var U = Object.assign, X = 0, We, Me, Ye, Be, Je, Ke, qe;
131
+ function ze() {
132
+ }
133
+ ze.__reactDisabledLog = !0;
134
+ function jt() {
135
+ {
136
+ if (X === 0) {
137
+ We = console.log, Me = console.info, Ye = console.warn, Be = console.error, Je = console.group, Ke = console.groupCollapsed, qe = console.groupEnd;
138
+ var t = {
139
+ configurable: !0,
140
+ enumerable: !0,
141
+ value: ze,
142
+ writable: !0
143
+ };
144
+ Object.defineProperties(console, {
145
+ info: t,
146
+ log: t,
147
+ warn: t,
148
+ error: t,
149
+ group: t,
150
+ groupCollapsed: t,
151
+ groupEnd: t
152
+ });
153
+ }
154
+ X++;
155
+ }
156
+ }
157
+ function Dt() {
158
+ {
159
+ if (X--, X === 0) {
160
+ var t = {
161
+ configurable: !0,
162
+ enumerable: !0,
163
+ writable: !0
164
+ };
165
+ Object.defineProperties(console, {
166
+ log: U({}, t, {
167
+ value: We
168
+ }),
169
+ info: U({}, t, {
170
+ value: Me
171
+ }),
172
+ warn: U({}, t, {
173
+ value: Ye
174
+ }),
175
+ error: U({}, t, {
176
+ value: Be
177
+ }),
178
+ group: U({}, t, {
179
+ value: Je
180
+ }),
181
+ groupCollapsed: U({}, t, {
182
+ value: Ke
183
+ }),
184
+ groupEnd: U({}, t, {
185
+ value: qe
186
+ })
187
+ });
188
+ }
189
+ X < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
+ }
191
+ }
192
+ var ye = D.ReactCurrentDispatcher, Ee;
193
+ function se(t, o, s) {
194
+ {
195
+ if (Ee === void 0)
196
+ try {
197
+ throw Error();
198
+ } catch (x) {
199
+ var h = x.stack.trim().match(/\n( *(at )?)/);
200
+ Ee = h && h[1] || "";
201
+ }
202
+ return `
203
+ ` + Ee + t;
204
+ }
205
+ }
206
+ var be = !1, le;
207
+ {
208
+ var kt = typeof WeakMap == "function" ? WeakMap : Map;
209
+ le = new kt();
210
+ }
211
+ function Ge(t, o) {
212
+ if (!t || be)
213
+ return "";
214
+ {
215
+ var s = le.get(t);
216
+ if (s !== void 0)
217
+ return s;
218
+ }
219
+ var h;
220
+ be = !0;
221
+ var x = Error.prepareStackTrace;
222
+ Error.prepareStackTrace = void 0;
223
+ var C;
224
+ C = ye.current, ye.current = null, jt();
225
+ try {
226
+ if (o) {
227
+ var E = function() {
228
+ throw Error();
229
+ };
230
+ if (Object.defineProperty(E.prototype, "props", {
231
+ set: function() {
232
+ throw Error();
233
+ }
234
+ }), typeof Reflect == "object" && Reflect.construct) {
235
+ try {
236
+ Reflect.construct(E, []);
237
+ } catch (j) {
238
+ h = j;
239
+ }
240
+ Reflect.construct(t, [], E);
241
+ } else {
242
+ try {
243
+ E.call();
244
+ } catch (j) {
245
+ h = j;
246
+ }
247
+ t.call(E.prototype);
248
+ }
249
+ } else {
250
+ try {
251
+ throw Error();
252
+ } catch (j) {
253
+ h = j;
254
+ }
255
+ t();
256
+ }
257
+ } catch (j) {
258
+ if (j && h && typeof j.stack == "string") {
259
+ for (var y = j.stack.split(`
260
+ `), T = h.stack.split(`
261
+ `), w = y.length - 1, S = T.length - 1; w >= 1 && S >= 0 && y[w] !== T[S]; )
262
+ S--;
263
+ for (; w >= 1 && S >= 0; w--, S--)
264
+ if (y[w] !== T[S]) {
265
+ if (w !== 1 || S !== 1)
266
+ do
267
+ if (w--, S--, S < 0 || y[w] !== T[S]) {
268
+ var L = `
269
+ ` + y[w].replace(" at new ", " at ");
270
+ return t.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", t.displayName)), typeof t == "function" && le.set(t, L), L;
271
+ }
272
+ while (w >= 1 && S >= 0);
273
+ break;
274
+ }
275
+ }
276
+ } finally {
277
+ be = !1, ye.current = C, Dt(), Error.prepareStackTrace = x;
278
+ }
279
+ var Y = t ? t.displayName || t.name : "", $ = Y ? se(Y) : "";
280
+ return typeof t == "function" && le.set(t, $), $;
281
+ }
282
+ function Lt(t, o, s) {
283
+ return Ge(t, !1);
284
+ }
285
+ function At(t) {
286
+ var o = t.prototype;
287
+ return !!(o && o.isReactComponent);
288
+ }
289
+ function ue(t, o, s) {
290
+ if (t == null)
291
+ return "";
292
+ if (typeof t == "function")
293
+ return Ge(t, At(t));
294
+ if (typeof t == "string")
295
+ return se(t);
296
+ switch (t) {
297
+ case d:
298
+ return se("Suspense");
299
+ case p:
300
+ return se("SuspenseList");
301
+ }
302
+ if (typeof t == "object")
303
+ switch (t.$$typeof) {
304
+ case c:
305
+ return Lt(t.render);
306
+ case m:
307
+ return ue(t.type, o, s);
308
+ case b: {
309
+ var h = t, x = h._payload, C = h._init;
310
+ try {
311
+ return ue(C(x), o, s);
312
+ } catch {
313
+ }
314
+ }
315
+ }
316
+ return "";
317
+ }
318
+ var Z = Object.prototype.hasOwnProperty, Xe = {}, Ze = D.ReactDebugCurrentFrame;
319
+ function ce(t) {
320
+ if (t) {
321
+ var o = t._owner, s = ue(t.type, t._source, o ? o.type : null);
322
+ Ze.setExtraStackFrame(s);
323
+ } else
324
+ Ze.setExtraStackFrame(null);
325
+ }
326
+ function Ft(t, o, s, h, x) {
327
+ {
328
+ var C = Function.call.bind(Z);
329
+ for (var E in t)
330
+ if (C(t, E)) {
331
+ var y = void 0;
332
+ try {
333
+ if (typeof t[E] != "function") {
334
+ var T = Error((h || "React class") + ": " + s + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw T.name = "Invariant Violation", T;
336
+ }
337
+ y = t[E](o, E, h, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
+ } catch (w) {
339
+ y = w;
340
+ }
341
+ y && !(y instanceof Error) && (ce(x), g("%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).", h || "React class", s, E, typeof y), ce(null)), y instanceof Error && !(y.message in Xe) && (Xe[y.message] = !0, ce(x), g("Failed %s type: %s", s, y.message), ce(null));
342
+ }
343
+ }
344
+ }
345
+ var It = Array.isArray;
346
+ function xe(t) {
347
+ return It(t);
348
+ }
349
+ function Vt(t) {
350
+ {
351
+ var o = typeof Symbol == "function" && Symbol.toStringTag, s = o && t[Symbol.toStringTag] || t.constructor.name || "Object";
352
+ return s;
353
+ }
354
+ }
355
+ function Ut(t) {
356
+ try {
357
+ return Qe(t), !1;
358
+ } catch {
359
+ return !0;
360
+ }
361
+ }
362
+ function Qe(t) {
363
+ return "" + t;
364
+ }
365
+ function He(t) {
366
+ if (Ut(t))
367
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Vt(t)), Qe(t);
368
+ }
369
+ var Q = D.ReactCurrentOwner, $t = {
370
+ key: !0,
371
+ ref: !0,
372
+ __self: !0,
373
+ __source: !0
374
+ }, et, tt, Re;
375
+ Re = {};
376
+ function Wt(t) {
377
+ if (Z.call(t, "ref")) {
378
+ var o = Object.getOwnPropertyDescriptor(t, "ref").get;
379
+ if (o && o.isReactWarning)
380
+ return !1;
381
+ }
382
+ return t.ref !== void 0;
383
+ }
384
+ function Mt(t) {
385
+ if (Z.call(t, "key")) {
386
+ var o = Object.getOwnPropertyDescriptor(t, "key").get;
387
+ if (o && o.isReactWarning)
388
+ return !1;
389
+ }
390
+ return t.key !== void 0;
391
+ }
392
+ function Yt(t, o) {
393
+ if (typeof t.ref == "string" && Q.current && o && Q.current.stateNode !== o) {
394
+ var s = F(Q.current.type);
395
+ Re[s] || (g('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', F(Q.current.type), t.ref), Re[s] = !0);
396
+ }
397
+ }
398
+ function Bt(t, o) {
399
+ {
400
+ var s = function() {
401
+ et || (et = !0, g("%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)", o));
402
+ };
403
+ s.isReactWarning = !0, Object.defineProperty(t, "key", {
404
+ get: s,
405
+ configurable: !0
406
+ });
407
+ }
408
+ }
409
+ function Jt(t, o) {
410
+ {
411
+ var s = function() {
412
+ tt || (tt = !0, g("%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)", o));
413
+ };
414
+ s.isReactWarning = !0, Object.defineProperty(t, "ref", {
415
+ get: s,
416
+ configurable: !0
417
+ });
418
+ }
419
+ }
420
+ var Kt = function(t, o, s, h, x, C, E) {
421
+ var y = {
422
+ // This tag allows us to uniquely identify this as a React Element
423
+ $$typeof: r,
424
+ // Built-in properties that belong on the element
425
+ type: t,
426
+ key: o,
427
+ ref: s,
428
+ props: E,
429
+ // Record the component responsible for creating this element.
430
+ _owner: C
431
+ };
432
+ return y._store = {}, Object.defineProperty(y._store, "validated", {
433
+ configurable: !1,
434
+ enumerable: !1,
435
+ writable: !0,
436
+ value: !1
437
+ }), Object.defineProperty(y, "_self", {
438
+ configurable: !1,
439
+ enumerable: !1,
440
+ writable: !1,
441
+ value: h
442
+ }), Object.defineProperty(y, "_source", {
443
+ configurable: !1,
444
+ enumerable: !1,
445
+ writable: !1,
446
+ value: x
447
+ }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
448
+ };
449
+ function qt(t, o, s, h, x) {
450
+ {
451
+ var C, E = {}, y = null, T = null;
452
+ s !== void 0 && (He(s), y = "" + s), Mt(o) && (He(o.key), y = "" + o.key), Wt(o) && (T = o.ref, Yt(o, x));
453
+ for (C in o)
454
+ Z.call(o, C) && !$t.hasOwnProperty(C) && (E[C] = o[C]);
455
+ if (t && t.defaultProps) {
456
+ var w = t.defaultProps;
457
+ for (C in w)
458
+ E[C] === void 0 && (E[C] = w[C]);
459
+ }
460
+ if (y || T) {
461
+ var S = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
462
+ y && Bt(E, S), T && Jt(E, S);
463
+ }
464
+ return Kt(t, y, T, x, h, Q.current, E);
465
+ }
466
+ }
467
+ var Ce = D.ReactCurrentOwner, rt = D.ReactDebugCurrentFrame;
468
+ function M(t) {
469
+ if (t) {
470
+ var o = t._owner, s = ue(t.type, t._source, o ? o.type : null);
471
+ rt.setExtraStackFrame(s);
472
+ } else
473
+ rt.setExtraStackFrame(null);
474
+ }
475
+ var we;
476
+ we = !1;
477
+ function _e(t) {
478
+ return typeof t == "object" && t !== null && t.$$typeof === r;
479
+ }
480
+ function nt() {
481
+ {
482
+ if (Ce.current) {
483
+ var t = F(Ce.current.type);
484
+ if (t)
485
+ return `
486
+
487
+ Check the render method of \`` + t + "`.";
488
+ }
489
+ return "";
490
+ }
491
+ }
492
+ function zt(t) {
493
+ return "";
494
+ }
495
+ var at = {};
496
+ function Gt(t) {
497
+ {
498
+ var o = nt();
499
+ if (!o) {
500
+ var s = typeof t == "string" ? t : t.displayName || t.name;
501
+ s && (o = `
502
+
503
+ Check the top-level render call using <` + s + ">.");
504
+ }
505
+ return o;
506
+ }
507
+ }
508
+ function it(t, o) {
509
+ {
510
+ if (!t._store || t._store.validated || t.key != null)
511
+ return;
512
+ t._store.validated = !0;
513
+ var s = Gt(o);
514
+ if (at[s])
515
+ return;
516
+ at[s] = !0;
517
+ var h = "";
518
+ t && t._owner && t._owner !== Ce.current && (h = " It was passed a child from " + F(t._owner.type) + "."), M(t), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, h), M(null);
519
+ }
520
+ }
521
+ function ot(t, o) {
522
+ {
523
+ if (typeof t != "object")
524
+ return;
525
+ if (xe(t))
526
+ for (var s = 0; s < t.length; s++) {
527
+ var h = t[s];
528
+ _e(h) && it(h, o);
529
+ }
530
+ else if (_e(t))
531
+ t._store && (t._store.validated = !0);
532
+ else if (t) {
533
+ var x = V(t);
534
+ if (typeof x == "function" && x !== t.entries)
535
+ for (var C = x.call(t), E; !(E = C.next()).done; )
536
+ _e(E.value) && it(E.value, o);
537
+ }
538
+ }
539
+ }
540
+ function Xt(t) {
541
+ {
542
+ var o = t.type;
543
+ if (o == null || typeof o == "string")
544
+ return;
545
+ var s;
546
+ if (typeof o == "function")
547
+ s = o.propTypes;
548
+ else if (typeof o == "object" && (o.$$typeof === c || // Note: Memo only checks outer props here.
549
+ // Inner props are checked in the reconciler.
550
+ o.$$typeof === m))
551
+ s = o.propTypes;
552
+ else
553
+ return;
554
+ if (s) {
555
+ var h = F(o);
556
+ Ft(s, t.props, "prop", h, t);
557
+ } else if (o.PropTypes !== void 0 && !we) {
558
+ we = !0;
559
+ var x = F(o);
560
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
561
+ }
562
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
+ }
564
+ }
565
+ function Zt(t) {
566
+ {
567
+ for (var o = Object.keys(t.props), s = 0; s < o.length; s++) {
568
+ var h = o[s];
569
+ if (h !== "children" && h !== "key") {
570
+ M(t), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), M(null);
571
+ break;
572
+ }
573
+ }
574
+ t.ref !== null && (M(t), g("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
575
+ }
576
+ }
577
+ var st = {};
578
+ function lt(t, o, s, h, x, C) {
579
+ {
580
+ var E = G(t);
581
+ if (!E) {
582
+ var y = "";
583
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var T = zt();
585
+ T ? y += T : y += nt();
586
+ var w;
587
+ t === null ? w = "null" : xe(t) ? w = "array" : t !== void 0 && t.$$typeof === r ? (w = "<" + (F(t.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : w = typeof t, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, y);
588
+ }
589
+ var S = qt(t, o, s, x, C);
590
+ if (S == null)
591
+ return S;
592
+ if (E) {
593
+ var L = o.children;
594
+ if (L !== void 0)
595
+ if (h)
596
+ if (xe(L)) {
597
+ for (var Y = 0; Y < L.length; Y++)
598
+ ot(L[Y], t);
599
+ Object.freeze && Object.freeze(L);
600
+ } else
601
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
602
+ else
603
+ ot(L, t);
604
+ }
605
+ if (Z.call(o, "key")) {
606
+ var $ = F(t), j = Object.keys(o).filter(function(nr) {
607
+ return nr !== "key";
608
+ }), Ne = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
609
+ if (!st[$ + Ne]) {
610
+ var rr = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
611
+ g(`A props object containing a "key" prop is being spread into JSX:
612
+ let props = %s;
613
+ <%s {...props} />
614
+ React keys must be passed directly to JSX without using spread:
615
+ let props = %s;
616
+ <%s key={someKey} {...props} />`, Ne, $, rr, $), st[$ + Ne] = !0;
617
+ }
618
+ }
619
+ return t === i ? Zt(S) : Xt(S), S;
620
+ }
621
+ }
622
+ function Qt(t, o, s) {
623
+ return lt(t, o, s, !0);
624
+ }
625
+ function Ht(t, o, s) {
626
+ return lt(t, o, s, !1);
627
+ }
628
+ var er = Ht, tr = Qt;
629
+ ee.Fragment = i, ee.jsx = er, ee.jsxs = tr;
630
+ }()), ee;
631
+ }
632
+ process.env.NODE_ENV === "production" ? Pe.exports = ir() : Pe.exports = or();
633
+ var R = Pe.exports;
634
+ const te = ({ classIcon: e }) => /* @__PURE__ */ R.jsx("i", { className: `bi ${e}` }), Zr = ({
635
+ className: e,
636
+ onClick: r,
637
+ title: n,
638
+ classIcon: i,
639
+ positionicon: a
640
+ }) => {
641
+ const l = (u) => {
642
+ r && r(u);
643
+ };
644
+ return /* @__PURE__ */ R.jsxs("button", { type: "submit", onClick: (u) => l(u), className: e, children: [
645
+ i && a == 1 && /* @__PURE__ */ R.jsx("span", { className: "mr-2", children: /* @__PURE__ */ R.jsx(te, { classIcon: i }) }),
646
+ /* @__PURE__ */ R.jsx("span", { children: n }),
647
+ i && a == 2 && /* @__PURE__ */ R.jsx("span", { className: "ml-2", children: /* @__PURE__ */ R.jsx(te, { classIcon: i }) })
648
+ ] });
649
+ }, sr = (e) => {
650
+ const r = e.active ? "expand--active" : "";
651
+ return /* @__PURE__ */ R.jsxs(
652
+ "div",
653
+ {
654
+ onClick: () => e.onChange(e.item),
655
+ className: `expand ${r} ${e.className}`,
656
+ children: [
657
+ /* @__PURE__ */ R.jsxs("div", { className: "expand-header", children: [
658
+ /* @__PURE__ */ R.jsx("span", { className: "flex-1 expand-header-title-left", children: e.item.title }),
659
+ e.item.description && /* @__PURE__ */ R.jsx("span", { className: "expand-header-title-right", children: e.item.description })
660
+ ] }),
661
+ /* @__PURE__ */ R.jsx("div", { className: "expand-body", children: e.item.content })
662
+ ]
663
+ }
664
+ );
665
+ }, Qr = (e) => {
666
+ const [r, n] = ke(e.items[0]), i = Le(
667
+ (a) => {
668
+ n(a);
669
+ },
670
+ [n]
671
+ );
672
+ return /* @__PURE__ */ R.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((a) => /* @__PURE__ */ R.jsx(
673
+ sr,
674
+ {
675
+ item: a,
676
+ onChange: i,
677
+ active: r.id === a.id
678
+ },
679
+ a.id
680
+ )) });
681
+ }, Hr = ({
682
+ content: e,
683
+ onClickMenu: r,
684
+ onClickUser: n
685
+ }) => /* @__PURE__ */ R.jsxs("div", { className: "header", children: [
686
+ /* @__PURE__ */ R.jsx("div", { className: "flex-1", children: /* @__PURE__ */ R.jsx("span", { onClick: r, children: /* @__PURE__ */ R.jsx(te, { classIcon: "bi-list" }) }) }),
687
+ /* @__PURE__ */ R.jsxs("div", { className: "d-flex", children: [
688
+ e,
689
+ /* @__PURE__ */ R.jsx("span", { onClick: n, children: /* @__PURE__ */ R.jsx(te, { classIcon: "bi-person-circle" }) })
690
+ ] })
691
+ ] });
692
+ /**
693
+ * @remix-run/router v1.20.0
694
+ *
695
+ * Copyright (c) Remix Software Inc.
696
+ *
697
+ * This source code is licensed under the MIT license found in the
698
+ * LICENSE.md file in the root directory of this source tree.
699
+ *
700
+ * @license MIT
701
+ */
702
+ function Te() {
703
+ return Te = Object.assign ? Object.assign.bind() : function(e) {
704
+ for (var r = 1; r < arguments.length; r++) {
705
+ var n = arguments[r];
706
+ for (var i in n)
707
+ Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
708
+ }
709
+ return e;
710
+ }, Te.apply(this, arguments);
711
+ }
712
+ var dt;
713
+ (function(e) {
714
+ e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
715
+ })(dt || (dt = {}));
716
+ function _(e, r) {
717
+ if (e === !1 || e === null || typeof e > "u")
718
+ throw new Error(r);
719
+ }
720
+ function re(e, r) {
721
+ if (!e) {
722
+ typeof console < "u" && console.warn(r);
723
+ try {
724
+ throw new Error(r);
725
+ } catch {
726
+ }
727
+ }
728
+ }
729
+ function je(e) {
730
+ let {
731
+ pathname: r = "/",
732
+ search: n = "",
733
+ hash: i = ""
734
+ } = e;
735
+ return n && n !== "?" && (r += n.charAt(0) === "?" ? n : "?" + n), i && i !== "#" && (r += i.charAt(0) === "#" ? i : "#" + i), r;
736
+ }
737
+ function gt(e) {
738
+ let r = {};
739
+ if (e) {
740
+ let n = e.indexOf("#");
741
+ n >= 0 && (r.hash = e.substr(n), e = e.substr(0, n));
742
+ let i = e.indexOf("?");
743
+ i >= 0 && (r.search = e.substr(i), e = e.substr(0, i)), e && (r.pathname = e);
744
+ }
745
+ return r;
746
+ }
747
+ var ht;
748
+ (function(e) {
749
+ e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
750
+ })(ht || (ht = {}));
751
+ function vt(e, r) {
752
+ typeof e == "string" && (e = {
753
+ path: e,
754
+ caseSensitive: !1,
755
+ end: !0
756
+ });
757
+ let [n, i] = lr(e.path, e.caseSensitive, e.end), a = r.match(n);
758
+ if (!a) return null;
759
+ let l = a[0], u = l.replace(/(.)\/+$/, "$1"), f = a.slice(1);
760
+ return {
761
+ params: i.reduce((d, p, m) => {
762
+ let {
763
+ paramName: b,
764
+ isOptional: k
765
+ } = p;
766
+ if (b === "*") {
767
+ let A = f[m] || "";
768
+ u = l.slice(0, l.length - A.length).replace(/(.)\/+$/, "$1");
769
+ }
770
+ const P = f[m];
771
+ return k && !P ? d[b] = void 0 : d[b] = (P || "").replace(/%2F/g, "/"), d;
772
+ }, {}),
773
+ pathname: l,
774
+ pathnameBase: u,
775
+ pattern: e
776
+ };
777
+ }
778
+ function lr(e, r, n) {
779
+ r === void 0 && (r = !1), n === void 0 && (n = !0), re(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
780
+ let i = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (u, f, c) => (i.push({
781
+ paramName: f,
782
+ isOptional: c != null
783
+ }), c ? "/?([^\\/]+)?" : "/([^\\/]+)"));
784
+ return e.endsWith("*") ? (i.push({
785
+ paramName: "*"
786
+ }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), i];
787
+ }
788
+ function B(e, r) {
789
+ if (r === "/") return e;
790
+ if (!e.toLowerCase().startsWith(r.toLowerCase()))
791
+ return null;
792
+ let n = r.endsWith("/") ? r.length - 1 : r.length, i = e.charAt(n);
793
+ return i && i !== "/" ? null : e.slice(n) || "/";
794
+ }
795
+ function ur(e, r) {
796
+ r === void 0 && (r = "/");
797
+ let {
798
+ pathname: n,
799
+ search: i = "",
800
+ hash: a = ""
801
+ } = typeof e == "string" ? gt(e) : e;
802
+ return {
803
+ pathname: n ? n.startsWith("/") ? n : cr(n, r) : r,
804
+ search: dr(i),
805
+ hash: hr(a)
806
+ };
807
+ }
808
+ function cr(e, r) {
809
+ let n = r.replace(/\/+$/, "").split("/");
810
+ return e.split("/").forEach((a) => {
811
+ a === ".." ? n.length > 1 && n.pop() : a !== "." && n.push(a);
812
+ }), n.length > 1 ? n.join("/") : "/";
813
+ }
814
+ function Se(e, r, n, i) {
815
+ return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + r + "` field [" + JSON.stringify(i) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
816
+ }
817
+ function fr(e) {
818
+ return e.filter((r, n) => n === 0 || r.route.path && r.route.path.length > 0);
819
+ }
820
+ function yt(e, r) {
821
+ let n = fr(e);
822
+ return r ? n.map((i, a) => a === n.length - 1 ? i.pathname : i.pathnameBase) : n.map((i) => i.pathnameBase);
823
+ }
824
+ function Et(e, r, n, i) {
825
+ i === void 0 && (i = !1);
826
+ let a;
827
+ typeof e == "string" ? a = gt(e) : (a = Te({}, e), _(!a.pathname || !a.pathname.includes("?"), Se("?", "pathname", "search", a)), _(!a.pathname || !a.pathname.includes("#"), Se("#", "pathname", "hash", a)), _(!a.search || !a.search.includes("#"), Se("#", "search", "hash", a)));
828
+ let l = e === "" || a.pathname === "", u = l ? "/" : a.pathname, f;
829
+ if (u == null)
830
+ f = n;
831
+ else {
832
+ let m = r.length - 1;
833
+ if (!i && u.startsWith("..")) {
834
+ let b = u.split("/");
835
+ for (; b[0] === ".."; )
836
+ b.shift(), m -= 1;
837
+ a.pathname = b.join("/");
838
+ }
839
+ f = m >= 0 ? r[m] : "/";
840
+ }
841
+ let c = ur(a, f), d = u && u !== "/" && u.endsWith("/"), p = (l || u === ".") && n.endsWith("/");
842
+ return !c.pathname.endsWith("/") && (d || p) && (c.pathname += "/"), c;
843
+ }
844
+ const Ae = (e) => e.join("/").replace(/\/\/+/g, "/"), dr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, hr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, bt = ["post", "put", "patch", "delete"];
845
+ new Set(bt);
846
+ const vr = ["get", ...bt];
847
+ new Set(vr);
848
+ /**
849
+ * React Router v6.27.0
850
+ *
851
+ * Copyright (c) Remix Software Inc.
852
+ *
853
+ * This source code is licensed under the MIT license found in the
854
+ * LICENSE.md file in the root directory of this source tree.
855
+ *
856
+ * @license MIT
857
+ */
858
+ function De() {
859
+ return De = Object.assign ? Object.assign.bind() : function(e) {
860
+ for (var r = 1; r < arguments.length; r++) {
861
+ var n = arguments[r];
862
+ for (var i in n)
863
+ Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
864
+ }
865
+ return e;
866
+ }, De.apply(this, arguments);
867
+ }
868
+ const pe = /* @__PURE__ */ v.createContext(null);
869
+ process.env.NODE_ENV !== "production" && (pe.displayName = "DataRouter");
870
+ const xt = /* @__PURE__ */ v.createContext(null);
871
+ process.env.NODE_ENV !== "production" && (xt.displayName = "DataRouterState");
872
+ const pr = /* @__PURE__ */ v.createContext(null);
873
+ process.env.NODE_ENV !== "production" && (pr.displayName = "Await");
874
+ const I = /* @__PURE__ */ v.createContext(null);
875
+ process.env.NODE_ENV !== "production" && (I.displayName = "Navigation");
876
+ const Fe = /* @__PURE__ */ v.createContext(null);
877
+ process.env.NODE_ENV !== "production" && (Fe.displayName = "Location");
878
+ const K = /* @__PURE__ */ v.createContext({
879
+ outlet: null,
880
+ matches: [],
881
+ isDataRoute: !1
882
+ });
883
+ process.env.NODE_ENV !== "production" && (K.displayName = "Route");
884
+ const mr = /* @__PURE__ */ v.createContext(null);
885
+ process.env.NODE_ENV !== "production" && (mr.displayName = "RouteError");
886
+ function gr(e, r) {
887
+ let {
888
+ relative: n
889
+ } = r === void 0 ? {} : r;
890
+ Ie() || (process.env.NODE_ENV !== "production" ? _(
891
+ !1,
892
+ // TODO: This error is probably because they somehow have 2 versions of the
893
+ // router loaded. We can help them understand how to avoid that.
894
+ "useHref() may be used only in the context of a <Router> component."
895
+ ) : _(!1));
896
+ let {
897
+ basename: i,
898
+ navigator: a
899
+ } = v.useContext(I), {
900
+ hash: l,
901
+ pathname: u,
902
+ search: f
903
+ } = ae(e, {
904
+ relative: n
905
+ }), c = u;
906
+ return i !== "/" && (c = u === "/" ? i : Ae([i, u])), a.createHref({
907
+ pathname: c,
908
+ search: f,
909
+ hash: l
910
+ });
911
+ }
912
+ function Ie() {
913
+ return v.useContext(Fe) != null;
914
+ }
915
+ function ne() {
916
+ return Ie() || (process.env.NODE_ENV !== "production" ? _(
917
+ !1,
918
+ // TODO: This error is probably because they somehow have 2 versions of the
919
+ // router loaded. We can help them understand how to avoid that.
920
+ "useLocation() may be used only in the context of a <Router> component."
921
+ ) : _(!1)), v.useContext(Fe).location;
922
+ }
923
+ const Rt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
924
+ function Ct(e) {
925
+ v.useContext(I).static || v.useLayoutEffect(e);
926
+ }
927
+ function yr() {
928
+ let {
929
+ isDataRoute: e
930
+ } = v.useContext(K);
931
+ return e ? Cr() : Er();
932
+ }
933
+ function Er() {
934
+ Ie() || (process.env.NODE_ENV !== "production" ? _(
935
+ !1,
936
+ // TODO: This error is probably because they somehow have 2 versions of the
937
+ // router loaded. We can help them understand how to avoid that.
938
+ "useNavigate() may be used only in the context of a <Router> component."
939
+ ) : _(!1));
940
+ let e = v.useContext(pe), {
941
+ basename: r,
942
+ future: n,
943
+ navigator: i
944
+ } = v.useContext(I), {
945
+ matches: a
946
+ } = v.useContext(K), {
947
+ pathname: l
948
+ } = ne(), u = JSON.stringify(yt(a, n.v7_relativeSplatPath)), f = v.useRef(!1);
949
+ return Ct(() => {
950
+ f.current = !0;
951
+ }), v.useCallback(function(d, p) {
952
+ if (p === void 0 && (p = {}), process.env.NODE_ENV !== "production" && re(f.current, Rt), !f.current) return;
953
+ if (typeof d == "number") {
954
+ i.go(d);
955
+ return;
956
+ }
957
+ let m = Et(d, JSON.parse(u), l, p.relative === "path");
958
+ e == null && r !== "/" && (m.pathname = m.pathname === "/" ? r : Ae([r, m.pathname])), (p.replace ? i.replace : i.push)(m, p.state, p);
959
+ }, [r, i, u, l, e]);
960
+ }
961
+ function ae(e, r) {
962
+ let {
963
+ relative: n
964
+ } = r === void 0 ? {} : r, {
965
+ future: i
966
+ } = v.useContext(I), {
967
+ matches: a
968
+ } = v.useContext(K), {
969
+ pathname: l
970
+ } = ne(), u = JSON.stringify(yt(a, i.v7_relativeSplatPath));
971
+ return v.useMemo(() => Et(e, JSON.parse(u), l, n === "path"), [e, u, l, n]);
972
+ }
973
+ var wt = /* @__PURE__ */ function(e) {
974
+ return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
975
+ }(wt || {}), Ve = /* @__PURE__ */ function(e) {
976
+ return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
977
+ }(Ve || {});
978
+ function _t(e) {
979
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
980
+ }
981
+ function br(e) {
982
+ let r = v.useContext(pe);
983
+ return r || (process.env.NODE_ENV !== "production" ? _(!1, _t(e)) : _(!1)), r;
984
+ }
985
+ function xr(e) {
986
+ let r = v.useContext(K);
987
+ return r || (process.env.NODE_ENV !== "production" ? _(!1, _t(e)) : _(!1)), r;
988
+ }
989
+ function Nt(e) {
990
+ let r = xr(e), n = r.matches[r.matches.length - 1];
991
+ return n.route.id || (process.env.NODE_ENV !== "production" ? _(!1, e + ' can only be used on routes that contain a unique "id"') : _(!1)), n.route.id;
992
+ }
993
+ function Rr() {
994
+ return Nt(Ve.UseRouteId);
995
+ }
996
+ function Cr() {
997
+ let {
998
+ router: e
999
+ } = br(wt.UseNavigateStable), r = Nt(Ve.UseNavigateStable), n = v.useRef(!1);
1000
+ return Ct(() => {
1001
+ n.current = !0;
1002
+ }), v.useCallback(function(a, l) {
1003
+ l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && re(n.current, Rt), n.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, De({
1004
+ fromRouteId: r
1005
+ }, l)));
1006
+ }, [e, r]);
1007
+ }
1008
+ new Promise(() => {
1009
+ });
1010
+ /**
1011
+ * React Router DOM v6.27.0
1012
+ *
1013
+ * Copyright (c) Remix Software Inc.
1014
+ *
1015
+ * This source code is licensed under the MIT license found in the
1016
+ * LICENSE.md file in the root directory of this source tree.
1017
+ *
1018
+ * @license MIT
1019
+ */
1020
+ function J() {
1021
+ return J = Object.assign ? Object.assign.bind() : function(e) {
1022
+ for (var r = 1; r < arguments.length; r++) {
1023
+ var n = arguments[r];
1024
+ for (var i in n)
1025
+ Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1026
+ }
1027
+ return e;
1028
+ }, J.apply(this, arguments);
1029
+ }
1030
+ function Ue(e, r) {
1031
+ if (e == null) return {};
1032
+ var n = {}, i = Object.keys(e), a, l;
1033
+ for (l = 0; l < i.length; l++)
1034
+ a = i[l], !(r.indexOf(a) >= 0) && (n[a] = e[a]);
1035
+ return n;
1036
+ }
1037
+ const de = "get", he = "application/x-www-form-urlencoded";
1038
+ function me(e) {
1039
+ return e != null && typeof e.tagName == "string";
1040
+ }
1041
+ function wr(e) {
1042
+ return me(e) && e.tagName.toLowerCase() === "button";
1043
+ }
1044
+ function _r(e) {
1045
+ return me(e) && e.tagName.toLowerCase() === "form";
1046
+ }
1047
+ function Nr(e) {
1048
+ return me(e) && e.tagName.toLowerCase() === "input";
1049
+ }
1050
+ function Sr(e) {
1051
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1052
+ }
1053
+ function Or(e, r) {
1054
+ return e.button === 0 && // Ignore everything but left clicks
1055
+ (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1056
+ !Sr(e);
1057
+ }
1058
+ let fe = null;
1059
+ function Pr() {
1060
+ if (fe === null)
1061
+ try {
1062
+ new FormData(
1063
+ document.createElement("form"),
1064
+ // @ts-expect-error if FormData supports the submitter parameter, this will throw
1065
+ 0
1066
+ ), fe = !1;
1067
+ } catch {
1068
+ fe = !0;
1069
+ }
1070
+ return fe;
1071
+ }
1072
+ const Tr = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1073
+ function Oe(e) {
1074
+ return e != null && !Tr.has(e) ? (process.env.NODE_ENV !== "production" && re(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + he + '"')), null) : e;
1075
+ }
1076
+ function jr(e, r) {
1077
+ let n, i, a, l, u;
1078
+ if (_r(e)) {
1079
+ let f = e.getAttribute("action");
1080
+ i = f ? B(f, r) : null, n = e.getAttribute("method") || de, a = Oe(e.getAttribute("enctype")) || he, l = new FormData(e);
1081
+ } else if (wr(e) || Nr(e) && (e.type === "submit" || e.type === "image")) {
1082
+ let f = e.form;
1083
+ if (f == null)
1084
+ throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1085
+ let c = e.getAttribute("formaction") || f.getAttribute("action");
1086
+ if (i = c ? B(c, r) : null, n = e.getAttribute("formmethod") || f.getAttribute("method") || de, a = Oe(e.getAttribute("formenctype")) || Oe(f.getAttribute("enctype")) || he, l = new FormData(f, e), !Pr()) {
1087
+ let {
1088
+ name: d,
1089
+ type: p,
1090
+ value: m
1091
+ } = e;
1092
+ if (p === "image") {
1093
+ let b = d ? d + "." : "";
1094
+ l.append(b + "x", "0"), l.append(b + "y", "0");
1095
+ } else d && l.append(d, m);
1096
+ }
1097
+ } else {
1098
+ if (me(e))
1099
+ throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1100
+ n = de, i = null, a = he, u = e;
1101
+ }
1102
+ return l && a === "text/plain" && (u = l, l = void 0), {
1103
+ action: i,
1104
+ method: n.toLowerCase(),
1105
+ encType: a,
1106
+ formData: l,
1107
+ body: u
1108
+ };
1109
+ }
1110
+ const Dr = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], kr = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], Lr = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], Ar = "6";
1111
+ try {
1112
+ window.__reactRouterVersion = Ar;
1113
+ } catch {
1114
+ }
1115
+ const St = /* @__PURE__ */ v.createContext({
1116
+ isTransitioning: !1
1117
+ });
1118
+ process.env.NODE_ENV !== "production" && (St.displayName = "ViewTransition");
1119
+ const Fr = /* @__PURE__ */ v.createContext(/* @__PURE__ */ new Map());
1120
+ process.env.NODE_ENV !== "production" && (Fr.displayName = "Fetchers");
1121
+ process.env.NODE_ENV;
1122
+ const Ir = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Vr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ot = /* @__PURE__ */ v.forwardRef(function(r, n) {
1123
+ let {
1124
+ onClick: i,
1125
+ relative: a,
1126
+ reloadDocument: l,
1127
+ replace: u,
1128
+ state: f,
1129
+ target: c,
1130
+ to: d,
1131
+ preventScrollReset: p,
1132
+ viewTransition: m
1133
+ } = r, b = Ue(r, Dr), {
1134
+ basename: k
1135
+ } = v.useContext(I), P, A = !1;
1136
+ if (typeof d == "string" && Vr.test(d) && (P = d, Ir))
1137
+ try {
1138
+ let O = new URL(window.location.href), N = d.startsWith("//") ? new URL(O.protocol + d) : new URL(d), W = B(N.pathname, k);
1139
+ N.origin === O.origin && W != null ? d = W + N.search + N.hash : A = !0;
1140
+ } catch {
1141
+ process.env.NODE_ENV !== "production" && re(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1142
+ }
1143
+ let V = gr(d, {
1144
+ relative: a
1145
+ }), D = Wr(d, {
1146
+ replace: u,
1147
+ state: f,
1148
+ target: c,
1149
+ preventScrollReset: p,
1150
+ relative: a,
1151
+ viewTransition: m
1152
+ });
1153
+ function g(O) {
1154
+ i && i(O), O.defaultPrevented || D(O);
1155
+ }
1156
+ return (
1157
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
1158
+ /* @__PURE__ */ v.createElement("a", J({}, b, {
1159
+ href: P || V,
1160
+ onClick: A || l ? i : g,
1161
+ ref: n,
1162
+ target: c
1163
+ }))
1164
+ );
1165
+ });
1166
+ process.env.NODE_ENV !== "production" && (Ot.displayName = "Link");
1167
+ const Pt = /* @__PURE__ */ v.forwardRef(function(r, n) {
1168
+ let {
1169
+ "aria-current": i = "page",
1170
+ caseSensitive: a = !1,
1171
+ className: l = "",
1172
+ end: u = !1,
1173
+ style: f,
1174
+ to: c,
1175
+ viewTransition: d,
1176
+ children: p
1177
+ } = r, m = Ue(r, kr), b = ae(c, {
1178
+ relative: m.relative
1179
+ }), k = ne(), P = v.useContext(xt), {
1180
+ navigator: A,
1181
+ basename: V
1182
+ } = v.useContext(I), D = P != null && // Conditional usage is OK here because the usage of a data router is static
1183
+ // eslint-disable-next-line react-hooks/rules-of-hooks
1184
+ qr(b) && d === !0, g = A.encodeLocation ? A.encodeLocation(b).pathname : b.pathname, O = k.pathname, N = P && P.navigation && P.navigation.location ? P.navigation.location.pathname : null;
1185
+ a || (O = O.toLowerCase(), N = N ? N.toLowerCase() : null, g = g.toLowerCase()), N && V && (N = B(N, V) || N);
1186
+ const W = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length;
1187
+ let q = O === g || !u && O.startsWith(g) && O.charAt(W) === "/", ie = N != null && (N === g || !u && N.startsWith(g) && N.charAt(g.length) === "/"), z = {
1188
+ isActive: q,
1189
+ isPending: ie,
1190
+ isTransitioning: D
1191
+ }, oe = q ? i : void 0, G;
1192
+ typeof l == "function" ? G = l(z) : G = [l, q ? "active" : null, ie ? "pending" : null, D ? "transitioning" : null].filter(Boolean).join(" ");
1193
+ let ge = typeof f == "function" ? f(z) : f;
1194
+ return /* @__PURE__ */ v.createElement(Ot, J({}, m, {
1195
+ "aria-current": oe,
1196
+ className: G,
1197
+ ref: n,
1198
+ style: ge,
1199
+ to: c,
1200
+ viewTransition: d
1201
+ }), typeof p == "function" ? p(z) : p);
1202
+ });
1203
+ process.env.NODE_ENV !== "production" && (Pt.displayName = "NavLink");
1204
+ const Ur = /* @__PURE__ */ v.forwardRef((e, r) => {
1205
+ let {
1206
+ fetcherKey: n,
1207
+ navigate: i,
1208
+ reloadDocument: a,
1209
+ replace: l,
1210
+ state: u,
1211
+ method: f = de,
1212
+ action: c,
1213
+ onSubmit: d,
1214
+ relative: p,
1215
+ preventScrollReset: m,
1216
+ viewTransition: b
1217
+ } = e, k = Ue(e, Lr), P = Jr(), A = Kr(c, {
1218
+ relative: p
1219
+ }), V = f.toLowerCase() === "get" ? "get" : "post", D = (g) => {
1220
+ if (d && d(g), g.defaultPrevented) return;
1221
+ g.preventDefault();
1222
+ let O = g.nativeEvent.submitter, N = (O == null ? void 0 : O.getAttribute("formmethod")) || f;
1223
+ P(O || g.currentTarget, {
1224
+ fetcherKey: n,
1225
+ method: N,
1226
+ navigate: i,
1227
+ replace: l,
1228
+ state: u,
1229
+ relative: p,
1230
+ preventScrollReset: m,
1231
+ viewTransition: b
1232
+ });
1233
+ };
1234
+ return /* @__PURE__ */ v.createElement("form", J({
1235
+ ref: r,
1236
+ method: V,
1237
+ action: A,
1238
+ onSubmit: a ? d : D
1239
+ }, k));
1240
+ });
1241
+ process.env.NODE_ENV !== "production" && (Ur.displayName = "Form");
1242
+ process.env.NODE_ENV;
1243
+ var ve;
1244
+ (function(e) {
1245
+ e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
1246
+ })(ve || (ve = {}));
1247
+ var pt;
1248
+ (function(e) {
1249
+ e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1250
+ })(pt || (pt = {}));
1251
+ function $r(e) {
1252
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1253
+ }
1254
+ function Tt(e) {
1255
+ let r = v.useContext(pe);
1256
+ return r || (process.env.NODE_ENV !== "production" ? _(!1, $r(e)) : _(!1)), r;
1257
+ }
1258
+ function Wr(e, r) {
1259
+ let {
1260
+ target: n,
1261
+ replace: i,
1262
+ state: a,
1263
+ preventScrollReset: l,
1264
+ relative: u,
1265
+ viewTransition: f
1266
+ } = r === void 0 ? {} : r, c = yr(), d = ne(), p = ae(e, {
1267
+ relative: u
1268
+ });
1269
+ return v.useCallback((m) => {
1270
+ if (Or(m, n)) {
1271
+ m.preventDefault();
1272
+ let b = i !== void 0 ? i : je(d) === je(p);
1273
+ c(e, {
1274
+ replace: b,
1275
+ state: a,
1276
+ preventScrollReset: l,
1277
+ relative: u,
1278
+ viewTransition: f
1279
+ });
1280
+ }
1281
+ }, [d, c, p, i, a, n, e, l, u, f]);
1282
+ }
1283
+ function Mr() {
1284
+ if (typeof document > "u")
1285
+ throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1286
+ }
1287
+ let Yr = 0, Br = () => "__" + String(++Yr) + "__";
1288
+ function Jr() {
1289
+ let {
1290
+ router: e
1291
+ } = Tt(ve.UseSubmit), {
1292
+ basename: r
1293
+ } = v.useContext(I), n = Rr();
1294
+ return v.useCallback(function(i, a) {
1295
+ a === void 0 && (a = {}), Mr();
1296
+ let {
1297
+ action: l,
1298
+ method: u,
1299
+ encType: f,
1300
+ formData: c,
1301
+ body: d
1302
+ } = jr(i, r);
1303
+ if (a.navigate === !1) {
1304
+ let p = a.fetcherKey || Br();
1305
+ e.fetch(p, n, a.action || l, {
1306
+ preventScrollReset: a.preventScrollReset,
1307
+ formData: c,
1308
+ body: d,
1309
+ formMethod: a.method || u,
1310
+ formEncType: a.encType || f,
1311
+ flushSync: a.flushSync
1312
+ });
1313
+ } else
1314
+ e.navigate(a.action || l, {
1315
+ preventScrollReset: a.preventScrollReset,
1316
+ formData: c,
1317
+ body: d,
1318
+ formMethod: a.method || u,
1319
+ formEncType: a.encType || f,
1320
+ replace: a.replace,
1321
+ state: a.state,
1322
+ fromRouteId: n,
1323
+ flushSync: a.flushSync,
1324
+ viewTransition: a.viewTransition
1325
+ });
1326
+ }, [e, r, n]);
1327
+ }
1328
+ function Kr(e, r) {
1329
+ let {
1330
+ relative: n
1331
+ } = r === void 0 ? {} : r, {
1332
+ basename: i
1333
+ } = v.useContext(I), a = v.useContext(K);
1334
+ a || (process.env.NODE_ENV !== "production" ? _(!1, "useFormAction must be used inside a RouteContext") : _(!1));
1335
+ let [l] = a.matches.slice(-1), u = J({}, ae(e || ".", {
1336
+ relative: n
1337
+ })), f = ne();
1338
+ if (e == null) {
1339
+ u.search = f.search;
1340
+ let c = new URLSearchParams(u.search), d = c.getAll("index");
1341
+ if (d.some((m) => m === "")) {
1342
+ c.delete("index"), d.filter((b) => b).forEach((b) => c.append("index", b));
1343
+ let m = c.toString();
1344
+ u.search = m ? "?" + m : "";
1345
+ }
1346
+ }
1347
+ return (!e || e === ".") && l.route.index && (u.search = u.search ? u.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (u.pathname = u.pathname === "/" ? i : Ae([i, u.pathname])), je(u);
1348
+ }
1349
+ function qr(e, r) {
1350
+ r === void 0 && (r = {});
1351
+ let n = v.useContext(St);
1352
+ n == null && (process.env.NODE_ENV !== "production" ? _(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : _(!1));
1353
+ let {
1354
+ basename: i
1355
+ } = Tt(ve.useViewTransitionState), a = ae(e, {
1356
+ relative: r.relative
1357
+ });
1358
+ if (!n.isTransitioning)
1359
+ return !1;
1360
+ let l = B(n.currentLocation.pathname, i) || n.currentLocation.pathname, u = B(n.nextLocation.pathname, i) || n.nextLocation.pathname;
1361
+ return vt(a.pathname, u) != null || vt(a.pathname, l) != null;
1362
+ }
1363
+ const zr = (e) => /* @__PURE__ */ R.jsx(
1364
+ "div",
1365
+ {
1366
+ onClick: () => e.onChange(e.item),
1367
+ className: e.active ? "expand expand--active" : "expand",
1368
+ children: /* @__PURE__ */ R.jsx(Pt, { to: e.item.link, children: e.item.name })
1369
+ }
1370
+ ), en = (e) => {
1371
+ const [r, n] = ke(e.items[0]), i = Le(
1372
+ (a) => {
1373
+ n(a);
1374
+ },
1375
+ [n]
1376
+ );
1377
+ return /* @__PURE__ */ R.jsx("div", { className: `menu ${e.className || ""}`, children: /* @__PURE__ */ R.jsx("ul", { children: e.items.map((a) => /* @__PURE__ */ R.jsx("li", { children: /* @__PURE__ */ R.jsx(
1378
+ zr,
1379
+ {
1380
+ item: a,
1381
+ onChange: i,
1382
+ active: r.id === a.id
1383
+ }
1384
+ ) }, a.id)) }) });
1385
+ }, tn = ({ open: e, content: r }) => {
1386
+ const [n, i] = ke(e || !1), a = document.createElement("div");
1387
+ a.id = "sidebar-root", ut(() => (document.body.appendChild(a), () => {
1388
+ document.body.removeChild(a);
1389
+ }), [a]), ut(() => {
1390
+ i(e || !1);
1391
+ }, [e]);
1392
+ const l = Le(() => {
1393
+ i(!1);
1394
+ }, [i]);
1395
+ return ar.createPortal(
1396
+ /* @__PURE__ */ R.jsxs("div", { className: `sidebar ${n ? "open" : "closed"}`, children: [
1397
+ /* @__PURE__ */ R.jsx("button", { className: "toggle-btn", onClick: l, children: /* @__PURE__ */ R.jsx(te, { classIcon: "bi-x-lg" }) }),
1398
+ r
1399
+ ] }),
1400
+ a
1401
+ );
1402
+ };
1403
+ export {
1404
+ Zr as Button,
1405
+ Qr as Expands,
1406
+ Hr as Header,
1407
+ te as Icon,
1408
+ en as Menus,
1409
+ tn as Sidebar
1410
+ };