@archbase/admin 4.0.40 → 4.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { jsx as r, jsxs as E, Fragment as xe } from "react/jsx-runtime";
2
2
  import * as QA from "react";
3
- import Ce, { useState as fe, useRef as Ae, useEffect as re, useMemo as ie, useContext as be, useCallback as C, createContext as Pe, memo as KA, Fragment as FA, useLayoutEffect as mr, useImperativeHandle as yr, startTransition as AA, useReducer as vr, useSyncExternalStore as Cr } from "react";
3
+ import Ce, { useState as pe, useRef as _, useEffect as re, useMemo as se, useContext as be, useCallback as C, createContext as Pe, memo as KA, Fragment as FA, useLayoutEffect as mr, useImperativeHandle as yr, startTransition as AA, useReducer as vr, useSyncExternalStore as Cr } from "react";
4
4
  import { useArchbaseSecurityManager as wr } from "@archbase/security";
5
5
  import { useUncontrolled as oA, useMediaQuery as IA, useHotkeys as Sr, useDisclosure as kr, useFocusTrap as xr, useForceUpdate as Ir } from "@mantine/hooks";
6
- import { Flex as Ve, useMantineColorScheme as se, Menu as ne, ActionIcon as Re, Group as Ie, Tooltip as Te, Button as Tr, ScrollArea as De, Badge as dA, Center as Ue, Image as Er, useMantineTheme as ge, px as de, Burger as Rr, Box as B, Avatar as nA, Text as we, Stack as J, Skeleton as ue, Paper as Pr, NavLink as TA, Kbd as GA, UnstyledButton as sA, Collapse as Lr, TextInput as VA, Indicator as Mr, Transition as Dr, Divider as lA, AppShell as Ke, Drawer as BA } from "@mantine/core";
7
- import { IconSun as HA, IconMoonStars as UA, IconTerminal as Nr, IconSearch as Ye, IconAlertCircle as zr, IconDots as YA, IconChevronRight as uA, IconChevronDown as Or, IconX as qA, IconChevronLeft as $r, IconHome2 as Qr, IconDashboard as Kr, IconUsers as Fr, IconListSearch as jA, IconUserPlus as Gr, IconNews as Vr, IconFilePlus as Br, IconSettings as Hr } from "@tabler/icons-react";
6
+ import { Flex as Ve, useMantineColorScheme as le, Menu as ne, ActionIcon as Re, Group as Ie, Tooltip as Te, Button as Tr, ScrollArea as De, Badge as dA, Center as Ye, Image as Er, useMantineTheme as ge, px as de, Burger as Rr, Box as B, Avatar as nA, Text as we, Stack as J, Skeleton as ue, Paper as Pr, NavLink as TA, Kbd as GA, UnstyledButton as sA, Collapse as Lr, TextInput as VA, Indicator as Mr, Transition as Dr, Divider as lA, AppShell as Ke, Drawer as BA } from "@mantine/core";
7
+ import { IconSun as HA, IconMoonStars as UA, IconTerminal as Nr, IconSearch as qe, IconAlertCircle as zr, IconDots as YA, IconChevronRight as uA, IconChevronDown as Or, IconX as qA, IconChevronLeft as $r, IconHome2 as Qr, IconDashboard as Kr, IconUsers as Fr, IconListSearch as jA, IconUserPlus as Gr, IconNews as Vr, IconFilePlus as Br, IconSettings as Hr } from "@tabler/icons-react";
8
8
  import { useArchbaseAppContext as hA, getI18nextInstance as oe, useArchbaseTranslation as pA, archbaseI18next as ke, useArchbaseValidator as Ur, ARCHBASE_IOC_API_TYPE as Yr } from "@archbase/core";
9
9
  import { BRFlag as Ge, USFlag as XA, ESFlag as aA, VEFlag as qr, UYFlag as jr, SVFlag as Xr, PYFlag as Jr, PEFlag as _r, PAFlag as Wr, NIFlag as Zr, MXFlag as et, HNFlag as At, GTFlag as rt, ECFlag as tt, DOFlag as ot, CUFlag as nt, CRFlag as st, COFlag as lt, CLFlag as at, BOFlag as it, ARFlag as ct } from "mantine-flagpack";
10
10
  import { spotlight as dt, Spotlight as Fe } from "@mantine/spotlight";
11
11
  import { useNavigate as Be, useLocation as He, matchPath as EA } from "react-router";
12
- import { useLocation as _e, useOutlet as ut, matchPath as ht, Route as $e, Routes as JA, useParams as _A, useSearchParams as WA, useNavigate as pt } from "react-router-dom";
13
- import { useMediaQuery as ft } from "usehooks-ts";
14
- import { useArchbaseNavigateParams as gt, useArchbaseVisible as bt, ArchbaseNotifications as mt, ArchbaseAvatarEdit as yt, ArchbaseEdit as rA } from "@archbase/components";
15
- import { SubMenu as vt, MenuItem as RA, menuClasses as ee, Sidebar as ZA, Menu as er, sidebarClasses as Ar } from "react-pro-sidebar";
16
- import { createPortal as Ct } from "react-dom";
17
- import wt from "@rehooks/component-size";
18
- import { ArchbaseAdvancedTabs as St } from "@archbase/layout";
19
- import { create as rr, useStore as kt } from "zustand";
20
- import { persist as xt } from "zustand/middleware";
21
- import { useArchbaseStore as It, useArchbaseRemoteServiceApi as Tt, useArchbaseRemoteDataSource as Et } from "@archbase/data";
22
- import { ArchbaseFormModalTemplate as Rt } from "@archbase/template";
23
- import { createStore as Pt } from "zustand/vanilla";
24
- const We = Ce.createContext({}), Lt = ({
12
+ import { useLocation as Ue, useOutlet as ut, matchPath as ht, Route as $e, Routes as JA, useParams as _A, useNavigationType as pt, UNSAFE_LocationContext as ft, useSearchParams as WA, useNavigate as gt } from "react-router-dom";
13
+ import { useMediaQuery as bt } from "usehooks-ts";
14
+ import { useArchbaseNavigateParams as mt, useArchbaseVisible as yt, ArchbaseNotifications as vt, ArchbaseAvatarEdit as Ct, ArchbaseEdit as rA } from "@archbase/components";
15
+ import { SubMenu as wt, MenuItem as RA, menuClasses as Ae, Sidebar as ZA, Menu as er, sidebarClasses as Ar } from "react-pro-sidebar";
16
+ import { createPortal as St } from "react-dom";
17
+ import kt from "@rehooks/component-size";
18
+ import { ArchbaseAdvancedTabs as xt } from "@archbase/layout";
19
+ import { create as rr, useStore as It } from "zustand";
20
+ import { persist as Tt } from "zustand/middleware";
21
+ import { useArchbaseStore as Et, useArchbaseRemoteServiceApi as Rt, useArchbaseRemoteDataSource as Pt } from "@archbase/data";
22
+ import { ArchbaseFormModalTemplate as Lt } from "@archbase/template";
23
+ import { createStore as Mt } from "zustand/vanilla";
24
+ const We = Ce.createContext({}), Dt = ({
25
25
  navigationData: e,
26
26
  user: t,
27
27
  owner: o,
@@ -33,7 +33,7 @@ const We = Ce.createContext({}), Lt = ({
33
33
  onNavigationDataChange: d,
34
34
  initialSidebarCollapsed: i
35
35
  }) => {
36
- const [u, c] = fe(i), [h, f] = fe(!1), [b, v] = fe(() => a === !0), [m, g] = fe(null), p = Ae(!1), [w, x] = oA({
36
+ const [u, c] = pe(i), [h, f] = pe(!1), [b, v] = pe(() => a === !0), [m, g] = pe(null), p = _(!1), [w, x] = oA({
37
37
  value: d !== void 0 ? e : void 0,
38
38
  defaultValue: a ? [] : e,
39
39
  finalValue: [],
@@ -120,8 +120,8 @@ const We = Ce.createContext({}), Lt = ({
120
120
  children: s
121
121
  }
122
122
  );
123
- }, vn = ({ children: e }) => /* @__PURE__ */ r(Ve, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), Mt = () => {
124
- const e = hA(), { colorScheme: t } = se(), o = t === "dark", [A, n] = fe(oe().language);
123
+ }, wn = ({ children: e }) => /* @__PURE__ */ r(Ve, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), Nt = () => {
124
+ const e = hA(), { colorScheme: t } = le(), o = t === "dark", [A, n] = pe(oe().language);
125
125
  re(() => {
126
126
  const d = (i) => {
127
127
  n(i);
@@ -200,8 +200,8 @@ const We = Ce.createContext({}), Lt = ({
200
200
  /* @__PURE__ */ r(ne.Target, { children: /* @__PURE__ */ r(Re, { variant: "transparent", color: o ? "white" : "blue", title: oe().t("toggleLanguage"), children: s(A) }) }),
201
201
  /* @__PURE__ */ r(ne.Dropdown, { children: a() })
202
202
  ] });
203
- }, Dt = () => {
204
- const e = hA(), { colorScheme: t } = se(), { t: o, i18n: A } = pA(), n = (l) => l === "en" ? /* @__PURE__ */ r(XA, { size: 24 }) : l === "pt-BR" ? /* @__PURE__ */ r(Ge, { size: 24 }) : l === "es" ? /* @__PURE__ */ r(aA, { size: 24 }) : /* @__PURE__ */ r(Ge, { size: 24 }), s = () => {
203
+ }, zt = () => {
204
+ const e = hA(), { colorScheme: t } = le(), { t: o, i18n: A } = pA(), n = (l) => l === "en" ? /* @__PURE__ */ r(XA, { size: 24 }) : l === "pt-BR" ? /* @__PURE__ */ r(Ge, { size: 24 }) : l === "es" ? /* @__PURE__ */ r(aA, { size: 24 }) : /* @__PURE__ */ r(Ge, { size: 24 }), s = () => {
205
205
  if (e.languages)
206
206
  return e.languages.filter((l) => l).map((l) => /* @__PURE__ */ r(
207
207
  ne.Item,
@@ -235,12 +235,12 @@ const We = Ce.createContext({}), Lt = ({
235
235
  ) }),
236
236
  /* @__PURE__ */ r(ne.Dropdown, { children: s() })
237
237
  ] });
238
- }, Nt = ({
238
+ }, Ot = ({
239
239
  toggleColorScheme: e,
240
240
  sunColor: t = "white",
241
241
  moonColor: o = "blue"
242
242
  }) => {
243
- const { t: A } = pA(), { colorScheme: n, toggleColorScheme: s } = se(), a = () => {
243
+ const { t: A } = pA(), { colorScheme: n, toggleColorScheme: s } = le(), a = () => {
244
244
  e ? e() : s();
245
245
  }, l = n === "dark";
246
246
  return /* @__PURE__ */ r(
@@ -253,22 +253,22 @@ const We = Ce.createContext({}), Lt = ({
253
253
  children: l ? /* @__PURE__ */ r(HA, { size: "1.5rem" }) : /* @__PURE__ */ r(UA, { size: "1.5rem" })
254
254
  }
255
255
  );
256
- }, zt = (e) => /* @__PURE__ */ r(Ie, { gap: "sm", children: e.children });
257
- function Ot({ category: e, label: t, color: o, description: A, image: n, onClick: s }) {
256
+ }, $t = (e) => /* @__PURE__ */ r(Ie, { gap: "sm", children: e.children });
257
+ function Qt({ category: e, label: t, color: o, description: A, image: n, onClick: s }) {
258
258
  return /* @__PURE__ */ r(
259
259
  Fe.Action,
260
260
  {
261
261
  onClick: s,
262
262
  label: `${oe().t(t || "")}`,
263
263
  description: A ? oe().t(A) : void 0,
264
- leftSection: n ? /* @__PURE__ */ r(Ue, { children: /* @__PURE__ */ r(Er, { src: n, alt: oe().t(t || ""), width: 24, height: 24 }) }) : void 0,
264
+ leftSection: n ? /* @__PURE__ */ r(Ye, { children: /* @__PURE__ */ r(Er, { src: n, alt: oe().t(t || ""), width: 24, height: 24 }) }) : void 0,
265
265
  rightSection: e ? /* @__PURE__ */ r(dA, { color: o, size: "sm", children: oe().t(e) }) : void 0
266
266
  },
267
267
  t
268
268
  );
269
269
  }
270
- const $t = ({ navigationData: e, color: t }) => {
271
- const [o, A] = fe(""), n = Be(), { t: s } = pA(), a = ie(() => {
270
+ const Kt = ({ navigationData: e, color: t }) => {
271
+ const [o, A] = pe(""), n = Be(), { t: s } = pA(), a = se(() => {
272
272
  const d = new Array();
273
273
  return e.forEach((i) => {
274
274
  i.links ? i.links.forEach((u) => {
@@ -296,7 +296,7 @@ const $t = ({ navigationData: e, color: t }) => {
296
296
  }, [e, n]), l = a.filter((d) => {
297
297
  const i = `${s(d.label || "")}`;
298
298
  return i && i.toLowerCase().includes(o.toLowerCase().trim());
299
- }).map((d) => /* @__PURE__ */ r(Ot, { ...d }, d.id));
299
+ }).map((d) => /* @__PURE__ */ r(Qt, { ...d }, d.id));
300
300
  return /* @__PURE__ */ r(xe, { children: a && a.length > 0 ? /* @__PURE__ */ E(xe, { children: [
301
301
  /* @__PURE__ */ r(Te, { withinPortal: !0, withArrow: !0, label: `${s("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ r(Tr, { color: t, leftSection: /* @__PURE__ */ r(Nr, { size: "24px" }), onClick: () => dt.open() }) }),
302
302
  /* @__PURE__ */ E(
@@ -306,13 +306,13 @@ const $t = ({ navigationData: e, color: t }) => {
306
306
  onQueryChange: (d) => A(d),
307
307
  query: o,
308
308
  children: [
309
- /* @__PURE__ */ r(Fe.Search, { placeholder: `${s("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ r(Ye, { size: "1.2rem" }) }),
309
+ /* @__PURE__ */ r(Fe.Search, { placeholder: `${s("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ r(qe, { size: "1.2rem" }) }),
310
310
  /* @__PURE__ */ r(De.Autosize, { mah: "calc(100vh - 200px)", type: "scroll", scrollbarSize: 8, children: /* @__PURE__ */ r(Fe.ActionsList, { children: l.length > 0 ? l : /* @__PURE__ */ r(Fe.Empty, { children: oe().t("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D+liRkh9zth4rxNTlt1CkR05ThJlTkwof8AmAQf0JIAqTTEWZJyTIb9SpEdOU4hzKtk2R/3xIqw9ddsPEeIc+qEivD0OW2IcZHy0O3+yLMAZJmd8Ekmp6rhzDLk2YwrqwqpqP8ATMZQj1dLk/FH+P8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwBhD//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AYQ//2Q==", Sn = ({
316
316
  userMenuItems: e,
317
317
  showUserMenuToggleColorScheme: t = !0,
318
318
  showUserMenuOptionsLabel: o = !0,
@@ -343,13 +343,13 @@ const $t = ({ navigationData: e, color: t }) => {
343
343
  moonColor: T,
344
344
  styles: D
345
345
  }) => {
346
- const z = ge(), { colorScheme: P, toggleColorScheme: I } = se(), L = be(We), j = IA(
346
+ const z = ge(), { colorScheme: P, toggleColorScheme: I } = le(), L = be(We), j = IA(
347
347
  `(max-width: ${w ? de(w) : z.breakpoints.md})`
348
348
  ), H = IA(
349
349
  `(max-width: ${c ? de(c) : z.breakpoints.md})`
350
350
  );
351
- let _ = !1, W = !1;
352
- return d && (i = !H, u = !H, t = H, o = H, a = H, h = H, p && (W = !H, _ = H)), /* @__PURE__ */ E(xe, { children: [
351
+ let W = !1, Z = !1;
352
+ return d && (i = !H, u = !H, t = H, o = H, a = H, h = H, p && (Z = !H, W = H)), /* @__PURE__ */ E(xe, { children: [
353
353
  /* @__PURE__ */ E(Ve, { style: { width: 300, height: 50 }, align: "center", children: [
354
354
  Y,
355
355
  /* @__PURE__ */ r(
@@ -376,12 +376,12 @@ const $t = ({ navigationData: e, color: t }) => {
376
376
  display: j ? "" : "none"
377
377
  }
378
378
  ),
379
- /* @__PURE__ */ r("div", { children: F && /* @__PURE__ */ r($t, { navigationData: b }) }),
379
+ /* @__PURE__ */ r("div", { children: F && /* @__PURE__ */ r(Kt, { navigationData: b }) }),
380
380
  /* @__PURE__ */ r(B, { style: { flex: 1 }, children: x }),
381
- /* @__PURE__ */ E(zt, { children: [
381
+ /* @__PURE__ */ E($t, { children: [
382
382
  i && m,
383
- u && /* @__PURE__ */ r(Nt, { toggleColorScheme: R, sunColor: S, moonColor: T }),
384
- W && /* @__PURE__ */ r(Mt, {}),
383
+ u && /* @__PURE__ */ r(Ot, { toggleColorScheme: R, sunColor: S, moonColor: T }),
384
+ Z && /* @__PURE__ */ r(Nt, {}),
385
385
  /* @__PURE__ */ E(ne, { shadow: "md", width: 200, position: "bottom-end", styles: D?.menu, children: [
386
386
  /* @__PURE__ */ r(ne.Target, { children: /* @__PURE__ */ E("div", { children: [
387
387
  /* @__PURE__ */ r(
@@ -390,7 +390,7 @@ const $t = ({ navigationData: e, color: t }) => {
390
390
  style: { cursor: "pointer" },
391
391
  radius: "xl",
392
392
  ml: 8,
393
- src: f ? f.photo : Qt,
393
+ src: f ? f.photo : Ft,
394
394
  alt: f ? f.displayName : ""
395
395
  }
396
396
  ),
@@ -427,7 +427,7 @@ const $t = ({ navigationData: e, color: t }) => {
427
427
  children: `${oe().t("archbase:toggleColorScheme")}`
428
428
  }
429
429
  ),
430
- _ && /* @__PURE__ */ r(Dt, {}),
430
+ W && /* @__PURE__ */ r(zt, {}),
431
431
  h && /* @__PURE__ */ r(ne.Divider, {}),
432
432
  n && s
433
433
  ] })
@@ -440,29 +440,29 @@ function PA(e, t, o, A, n, s, a, l, d, i) {
440
440
  if (A.links) {
441
441
  if (!(A.disabled && A.hideDisabledItem))
442
442
  return /* @__PURE__ */ r(Te, { disabled: !t, label: ke.t(A.label), children: /* @__PURE__ */ r(
443
- vt,
443
+ wt,
444
444
  {
445
445
  rootStyles: {
446
446
  fontSize: "16px",
447
- [`.${ee.button}`]: {
447
+ [`.${Ae.button}`]: {
448
448
  "&:hover": {
449
- [`.${ee.icon}`]: {
449
+ [`.${Ae.icon}`]: {
450
450
  color: "white"
451
451
  },
452
- [`.${ee.label}`]: {
452
+ [`.${Ae.label}`]: {
453
453
  color: "white"
454
454
  }
455
455
  }
456
456
  },
457
- [`.${ee.subMenuContent}`]: {
457
+ [`.${Ae.subMenuContent}`]: {
458
458
  width: t && i
459
459
  },
460
- [`.${ee.disabled}`]: {
460
+ [`.${Ae.disabled}`]: {
461
461
  opacity: f,
462
- [`.${ee.icon}`]: {
462
+ [`.${Ae.icon}`]: {
463
463
  color: h + " !important"
464
464
  },
465
- [`.${ee.label}`]: {
465
+ [`.${Ae.label}`]: {
466
466
  color: h + " !important"
467
467
  }
468
468
  }
@@ -477,31 +477,31 @@ function PA(e, t, o, A, n, s, a, l, d, i) {
477
477
  {
478
478
  onClick: () => o(b),
479
479
  rootStyles: {
480
- [`.${ee.icon}`]: {
480
+ [`.${Ae.icon}`]: {
481
481
  background: u,
482
482
  color: l && b.link === a ? "white" : c
483
483
  },
484
- [`.${ee.label}`]: {
484
+ [`.${Ae.label}`]: {
485
485
  color: l && b.link === a ? "white" : d
486
486
  },
487
- [`.${ee.button}`]: {
487
+ [`.${Ae.button}`]: {
488
488
  paddingLeft: "40px !important",
489
489
  "&:hover": {
490
- [`.${ee.icon}`]: {
490
+ [`.${Ae.icon}`]: {
491
491
  color: "white"
492
492
  },
493
- [`.${ee.label}`]: {
493
+ [`.${Ae.label}`]: {
494
494
  color: "white"
495
495
  }
496
496
  }
497
497
  },
498
- [`.${ee.disabled}`]: {
498
+ [`.${Ae.disabled}`]: {
499
499
  opacity: f,
500
- [`.${ee.icon}`]: {
500
+ [`.${Ae.icon}`]: {
501
501
  background: (u || "") + " !important",
502
502
  color: h + " !important"
503
503
  },
504
- [`.${ee.label}`]: {
504
+ [`.${Ae.label}`]: {
505
505
  color: h + " !important"
506
506
  }
507
507
  }
@@ -523,30 +523,30 @@ function PA(e, t, o, A, n, s, a, l, d, i) {
523
523
  {
524
524
  rootStyles: {
525
525
  fontSize: "16px",
526
- [`.${ee.button}`]: {
526
+ [`.${Ae.button}`]: {
527
527
  "&:hover": {
528
- [`.${ee.icon}`]: {
528
+ [`.${Ae.icon}`]: {
529
529
  color: "white"
530
530
  },
531
- [`.${ee.label}`]: {
531
+ [`.${Ae.label}`]: {
532
532
  color: "white"
533
533
  }
534
534
  }
535
535
  },
536
- [`.${ee.icon}`]: {
536
+ [`.${Ae.icon}`]: {
537
537
  background: u,
538
538
  color: l && A.link === a ? "white" : c
539
539
  },
540
- [`.${ee.label}`]: {
540
+ [`.${Ae.label}`]: {
541
541
  color: l && A.link === a ? "white" : d
542
542
  },
543
- [`.${ee.disabled}`]: {
543
+ [`.${Ae.disabled}`]: {
544
544
  opacity: f,
545
- [`.${ee.icon}`]: {
545
+ [`.${Ae.icon}`]: {
546
546
  background: (u || "") + " !important",
547
547
  color: h + " !important"
548
548
  },
549
- [`.${ee.label}`]: {
549
+ [`.${Ae.label}`]: {
550
550
  color: h + " !important"
551
551
  }
552
552
  }
@@ -562,7 +562,7 @@ function PA(e, t, o, A, n, s, a, l, d, i) {
562
562
  ) });
563
563
  return null;
564
564
  }
565
- const Kt = (e) => ({
565
+ const Gt = (e) => ({
566
566
  light: {
567
567
  sidebar: {
568
568
  backgroundColor: "#ffffff",
@@ -597,8 +597,8 @@ const Kt = (e) => ({
597
597
  }
598
598
  }
599
599
  }
600
- }), Ft = (e, t, o, A, n, s, a, l, d, i, u) => {
601
- const c = Kt(), h = s ? {} : { padding: o ? `0 ${(n - A) / 2}px` : "0 20px" }, f = s ? {} : { display: "none" }, b = a ? e === "dark" ? t.colors[t.primaryColor][8] : t.colors[t.primaryColor][0] : void 0;
600
+ }), Vt = (e, t, o, A, n, s, a, l, d, i, u) => {
601
+ const c = Gt(), h = s ? {} : { padding: o ? `0 ${(n - A) / 2}px` : "0 20px" }, f = s ? {} : { display: "none" }, b = a ? e === "dark" ? t.colors[t.primaryColor][8] : t.colors[t.primaryColor][0] : void 0;
602
602
  return {
603
603
  root: {
604
604
  fontSize: "14px",
@@ -609,7 +609,7 @@ const Kt = (e) => ({
609
609
  icon: {
610
610
  background: b,
611
611
  color: u,
612
- [`&.${ee.disabled}`]: {
612
+ [`&.${Ae.disabled}`]: {
613
613
  color: c[e].menu.disabled.color
614
614
  }
615
615
  },
@@ -621,14 +621,14 @@ const Kt = (e) => ({
621
621
  backgroundColor: e === "dark" ? t.colors.dark[8] : t.colors[t.primaryColor][0]
622
622
  }),
623
623
  button: {
624
- [`&.${ee.disabled}`]: {
624
+ [`&.${Ae.disabled}`]: {
625
625
  color: c[e].menu.disabled.color
626
626
  },
627
627
  "&:hover": {
628
628
  backgroundColor: t.colors[t.primaryColor][6],
629
629
  color: t.white
630
630
  },
631
- [`&.${ee.active}`]: {
631
+ [`&.${Ae.active}`]: {
632
632
  backgroundColor: t.colors[t.primaryColor][6]
633
633
  },
634
634
  height: l,
@@ -643,7 +643,7 @@ const Kt = (e) => ({
643
643
  })
644
644
  };
645
645
  };
646
- function Gt(e, t, o, A, n, s, a, l, d, i, u) {
646
+ function Bt(e, t, o, A, n, s, a, l, d, i, u) {
647
647
  return /* @__PURE__ */ E(
648
648
  ZA,
649
649
  {
@@ -675,7 +675,7 @@ function LA({
675
675
  collapsed: t = !1,
676
676
  backgroundColor: o
677
677
  }) {
678
- const A = ge(), { colorScheme: n } = se(), s = o ?? (n === "dark" ? A.colors.dark[7] : A.white);
678
+ const A = ge(), { colorScheme: n } = le(), s = o ?? (n === "dark" ? A.colors.dark[7] : A.white);
679
679
  return t ? /* @__PURE__ */ r(
680
680
  J,
681
681
  {
@@ -729,13 +729,13 @@ function LA({
729
729
  }
730
730
  );
731
731
  }
732
- function Vt({
732
+ function Ht({
733
733
  groupCount: e = 3,
734
734
  width: t = "80px",
735
735
  height: o = "100%",
736
736
  backgroundColor: A
737
737
  }) {
738
- const n = ge(), { colorScheme: s } = se(), a = A ?? (s === "dark" ? n.colors.dark[6] : n.colors.gray[2]);
738
+ const n = ge(), { colorScheme: s } = le(), a = A ?? (s === "dark" ? n.colors.dark[6] : n.colors.gray[2]);
739
739
  return /* @__PURE__ */ r(
740
740
  J,
741
741
  {
@@ -774,13 +774,13 @@ function MA({
774
774
  backgroundColor: t,
775
775
  children: o
776
776
  }) {
777
- const A = ge(), { colorScheme: n } = se(), s = t ?? (n === "dark" ? A.colors.dark[7] : A.white), a = n === "dark" ? A.colors.red[4] : A.colors.red[6];
778
- return o ? /* @__PURE__ */ r(xe, { children: o }) : /* @__PURE__ */ r(Ue, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ E(J, { align: "center", gap: "xs", children: [
777
+ const A = ge(), { colorScheme: n } = le(), s = t ?? (n === "dark" ? A.colors.dark[7] : A.white), a = n === "dark" ? A.colors.red[4] : A.colors.red[6];
778
+ return o ? /* @__PURE__ */ r(xe, { children: o }) : /* @__PURE__ */ r(Ye, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ E(J, { align: "center", gap: "xs", children: [
779
779
  /* @__PURE__ */ r(zr, { size: 32, color: a }),
780
780
  /* @__PURE__ */ r(we, { size: "sm", c: a, ta: "center", children: e })
781
781
  ] }) });
782
782
  }
783
- function Bt({
783
+ function Ut({
784
784
  navigationData: e,
785
785
  sidebarGroupWidth: t = "80px",
786
786
  sidebarWidth: o = "360px",
@@ -816,13 +816,13 @@ function Bt({
816
816
  collapsedSubmenuWidth: L,
817
817
  isLoading: j = !1,
818
818
  loadingError: H,
819
- loadingComponent: _,
820
- errorComponent: W,
819
+ loadingComponent: W,
820
+ errorComponent: Z,
821
821
  skeletonItemCount: he = 8,
822
822
  skeletonGroupCount: me = 3
823
823
  }) {
824
- const [le, q] = fe(""), V = hA(), k = He(), { colorScheme: y } = se(), $ = y === "dark" ? S ?? p.colors.dark[7] : T ?? p.white, M = s || (y === "dark" ? p.colors[p.primaryColor][8] : p.colors[p.primaryColor][0]), Q = y === "dark" ? D ?? "var(--mantine-color-text)" : z ?? "var(--mantine-color-text)", K = y === "dark" ? P ?? p.colors[p.primaryColor][0] : I ?? p.colors[p.primaryColor][7], N = ie(() => {
825
- const pe = /* @__PURE__ */ new Set();
824
+ const [ae, q] = pe(""), V = hA(), k = He(), { colorScheme: y } = le(), $ = y === "dark" ? S ?? p.colors.dark[7] : T ?? p.white, M = s || (y === "dark" ? p.colors[p.primaryColor][8] : p.colors[p.primaryColor][0]), Q = y === "dark" ? D ?? "var(--mantine-color-text)" : z ?? "var(--mantine-color-text)", K = y === "dark" ? P ?? p.colors[p.primaryColor][0] : I ?? p.colors[p.primaryColor][7], N = se(() => {
825
+ const fe = /* @__PURE__ */ new Set();
826
826
  return e.forEach((te) => {
827
827
  if (te.showInSidebar && (!te.disabled || !te.hideDisabledItem)) {
828
828
  let Me = !1;
@@ -832,9 +832,9 @@ function Bt({
832
832
  name: "Default",
833
833
  hint: "Default",
834
834
  indexOrder: 0
835
- }), pe.forEach((ve) => {
835
+ }), fe.forEach((ve) => {
836
836
  ve.name === te.group.name && (Me = !0);
837
- }), Me || pe.add({
837
+ }), Me || fe.add({
838
838
  name: te.group.name,
839
839
  indexOrder: te.group.indexOrder,
840
840
  component: /* @__PURE__ */ r(
@@ -858,8 +858,8 @@ function Bt({
858
858
  Re,
859
859
  {
860
860
  size: "48px",
861
- variant: te.group.name === le ? "filled" : l ? "subtle" : "light",
862
- color: te.group.name === le ? M : a,
861
+ variant: te.group.name === ae ? "filled" : l ? "subtle" : "light",
862
+ color: te.group.name === ae ? M : a,
863
863
  onClick: () => {
864
864
  q((ve) => (v && v(ve, te.group.name), te.group.name === ve && !d ? "" : te.group.name));
865
865
  },
@@ -882,11 +882,11 @@ function Bt({
882
882
  )
883
883
  });
884
884
  }
885
- }), pe.forEach((te) => {
885
+ }), fe.forEach((te) => {
886
886
  const Me = e.filter((ve) => ve.showInSidebar === !0 && (!ve.disabled || !ve.hideDisabledItem) && ve.group && ve.group.name === te.name);
887
- te.links = Me.map((ve, Z) => PA(p, f, b, ve, Z, O, k.pathname, F, Q, L));
888
- }), [...pe].sort((te, Me) => te.indexOrder - Me.indexOrder);
889
- }, [e, le, y, f, V.selectedCompany, F, k]), X = Ft(
887
+ te.links = Me.map((ve, ee) => PA(p, f, b, ve, ee, O, k.pathname, F, Q, L));
888
+ }), [...fe].sort((te, Me) => te.indexOrder - Me.indexOrder);
889
+ }, [e, ae, y, f, V.selectedCompany, F, k]), X = Vt(
890
890
  y,
891
891
  p,
892
892
  f,
@@ -898,28 +898,28 @@ function Bt({
898
898
  $,
899
899
  Q,
900
900
  K
901
- ), ye = f || le === "" ? "0px" : `calc(${o} - ${t})`, Se = l || (y === "dark" ? p.colors[p.primaryColor][6] : p.colors[p.primaryColor][7]), U = C(() => {
902
- R && N.map((pe) => pe.name).includes(R) ? q(R) : N.length > 1 && q("Default");
901
+ ), ye = f || ae === "" ? "0px" : `calc(${o} - ${t})`, Se = l || (y === "dark" ? p.colors[p.primaryColor][6] : p.colors[p.primaryColor][7]), U = C(() => {
902
+ R && N.map((fe) => fe.name).includes(R) ? q(R) : N.length > 1 && q("Default");
903
903
  }, []);
904
904
  re(() => {
905
905
  U();
906
906
  }, []), re(() => {
907
- f ? q("") : le === "" && U();
907
+ f ? q("") : ae === "" && U();
908
908
  }, [f]);
909
- const ae = () => H ? W || /* @__PURE__ */ r(
909
+ const ie = () => H ? Z || /* @__PURE__ */ r(
910
910
  MA,
911
911
  {
912
912
  message: H,
913
913
  backgroundColor: $
914
914
  }
915
- ) : j ? _ || /* @__PURE__ */ r(
915
+ ) : j ? W || /* @__PURE__ */ r(
916
916
  LA,
917
917
  {
918
918
  itemCount: he,
919
919
  collapsed: f,
920
920
  backgroundColor: $
921
921
  }
922
- ) : le !== "" ? /* @__PURE__ */ r(
922
+ ) : ae !== "" ? /* @__PURE__ */ r(
923
923
  ZA,
924
924
  {
925
925
  ref: w,
@@ -945,12 +945,12 @@ function Bt({
945
945
  height: "100%",
946
946
  width: ye
947
947
  },
948
- children: /* @__PURE__ */ r(er, { rootStyles: { background: $ }, menuItemStyles: X, closeOnClick: !0, children: N.find((pe) => pe.name === le)?.links || null })
948
+ children: /* @__PURE__ */ r(er, { rootStyles: { background: $ }, menuItemStyles: X, closeOnClick: !0, children: N.find((fe) => fe.name === ae)?.links || null })
949
949
  }
950
950
  )
951
951
  }
952
952
  ) : null, Ee = () => j && N.length === 0 ? /* @__PURE__ */ r(
953
- Vt,
953
+ Ht,
954
954
  {
955
955
  groupCount: me,
956
956
  width: t,
@@ -966,15 +966,15 @@ function Bt({
966
966
  padding: "4px",
967
967
  backgroundColor: Se
968
968
  },
969
- children: N.map((pe) => /* @__PURE__ */ r(Ce.Fragment, { children: pe.component }, pe.name))
969
+ children: N.map((fe) => /* @__PURE__ */ r(Ce.Fragment, { children: fe.component }, fe.name))
970
970
  }
971
- ) : null, Le = () => H ? W || /* @__PURE__ */ r(
971
+ ) : null, Le = () => H ? Z || /* @__PURE__ */ r(
972
972
  MA,
973
973
  {
974
974
  message: H,
975
975
  backgroundColor: $
976
976
  }
977
- ) : j ? _ || /* @__PURE__ */ r(
977
+ ) : j ? W || /* @__PURE__ */ r(
978
978
  LA,
979
979
  {
980
980
  itemCount: he,
@@ -982,9 +982,9 @@ function Bt({
982
982
  backgroundColor: $
983
983
  }
984
984
  ) : e.map(
985
- (pe, Oe) => PA(p, f, b, pe, Oe, O, k.pathname, F, Q, L)
985
+ (fe, Oe) => PA(p, f, b, fe, Oe, O, k.pathname, F, Q, L)
986
986
  );
987
- return /* @__PURE__ */ r(xe, { children: N.length == 1 ? Gt(
987
+ return /* @__PURE__ */ r(xe, { children: N.length == 1 ? Bt(
988
988
  w,
989
989
  f,
990
990
  o,
@@ -1000,7 +1000,7 @@ function Bt({
1000
1000
  /* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: Y }),
1001
1001
  /* @__PURE__ */ E(Pr, { withBorder: m, h: A, w: "100%", display: "flex", children: [
1002
1002
  Ee(),
1003
- ae()
1003
+ ie()
1004
1004
  ] }),
1005
1005
  /* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: u })
1006
1006
  ] }) });
@@ -1012,7 +1012,7 @@ function gA() {
1012
1012
  throw new Error("useSidebar must be used within a SidebarProvider");
1013
1013
  return e;
1014
1014
  }
1015
- function wn() {
1015
+ function kn() {
1016
1016
  return be(fA);
1017
1017
  }
1018
1018
  function bA({
@@ -1039,7 +1039,7 @@ function bA({
1039
1039
  defaultValue: a,
1040
1040
  finalValue: "",
1041
1041
  onChange: d
1042
- }), [p, w] = fe(""), [x, R] = fe(() => {
1042
+ }), [p, w] = pe(""), [x, R] = pe(() => {
1043
1043
  const P = /* @__PURE__ */ new Set();
1044
1044
  return t.forEach((I, L) => {
1045
1045
  I.initiallyOpened && I.links && I.links.length > 0 && P.add(`group-${L}`);
@@ -1061,16 +1061,16 @@ function bA({
1061
1061
  const L = new Set(I);
1062
1062
  return L.delete(P), L;
1063
1063
  });
1064
- }, []), T = ie(() => {
1064
+ }, []), T = se(() => {
1065
1065
  if (!p.trim())
1066
1066
  return t;
1067
1067
  const P = p.toLowerCase().trim(), I = (L) => L.reduce((j, H) => {
1068
- const _ = H.label.toLowerCase().includes(P), W = H.links ? I(H.links) : [];
1069
- return (_ || W.length > 0) && j.push({
1068
+ const W = H.label.toLowerCase().includes(P), Z = H.links ? I(H.links) : [];
1069
+ return (W || Z.length > 0) && j.push({
1070
1070
  ...H,
1071
- links: W.length > 0 ? W : H.links,
1071
+ links: Z.length > 0 ? Z : H.links,
1072
1072
  // Expandir automaticamente quando há match em subitens
1073
- initiallyOpened: W.length > 0 || _
1073
+ initiallyOpened: Z.length > 0 || W
1074
1074
  }), j;
1075
1075
  }, []);
1076
1076
  return I(t);
@@ -1079,7 +1079,7 @@ function bA({
1079
1079
  c && c(P), P.link && (P.routeParams ? f(P.link, { state: P.routeParams }) : f(P.link)), P.redirect && f(P.redirect);
1080
1080
  },
1081
1081
  [f, c]
1082
- ), z = ie(
1082
+ ), z = se(
1083
1083
  () => ({
1084
1084
  collapsed: b,
1085
1085
  setCollapsed: v,
@@ -1138,13 +1138,13 @@ function mA({
1138
1138
  return null;
1139
1139
  },
1140
1140
  [n]
1141
- ), a = ie(() => s(e), [s, e]), l = C(
1141
+ ), a = se(() => s(e), [s, e]), l = C(
1142
1142
  (c) => c.link === n,
1143
1143
  [n]
1144
1144
  ), d = C(
1145
1145
  (c) => c.link === n ? !0 : c.links ? c.links.some((h) => d(h)) : !1,
1146
1146
  [n]
1147
- ), i = ie(() => {
1147
+ ), i = se(() => {
1148
1148
  const c = [], h = (f, b) => {
1149
1149
  for (const v of f) {
1150
1150
  const m = [...b, v];
@@ -1171,14 +1171,14 @@ function mA({
1171
1171
  activeBreadcrumb: i
1172
1172
  };
1173
1173
  }
1174
- function Ht({
1174
+ function Yt({
1175
1175
  navigationData: e,
1176
1176
  onSearch: t
1177
1177
  }) {
1178
- const [o, A] = fe(""), n = C((i) => i.reduce((u, c) => {
1178
+ const [o, A] = pe(""), n = C((i) => i.reduce((u, c) => {
1179
1179
  let h = 1;
1180
1180
  return c.links && (h += n(c.links)), u + h;
1181
- }, 0), []), s = ie(() => {
1181
+ }, 0), []), s = se(() => {
1182
1182
  if (!o.trim())
1183
1183
  return e;
1184
1184
  const i = o.toLowerCase().trim(), u = (c) => c.reduce((h, f) => {
@@ -1193,7 +1193,7 @@ function Ht({
1193
1193
  }), h;
1194
1194
  }, []);
1195
1195
  return u(e);
1196
- }, [e, o]), a = ie(() => o.trim() ? n(s) : n(e), [o, e, s, n]), l = C(
1196
+ }, [e, o]), a = se(() => o.trim() ? n(s) : n(e), [o, e, s, n]), l = C(
1197
1197
  (i) => {
1198
1198
  if (A(i), t) {
1199
1199
  const u = i.toLowerCase().trim();
@@ -1228,7 +1228,7 @@ function Ht({
1228
1228
  totalResults: a
1229
1229
  };
1230
1230
  }
1231
- function Ut(e) {
1231
+ function qt(e) {
1232
1232
  return e.toLowerCase().replace("ctrl+", "mod+").replace("cmd+", "mod+").replace("control+", "mod+");
1233
1233
  }
1234
1234
  function yA({
@@ -1237,7 +1237,7 @@ function yA({
1237
1237
  onToggleSidebar: o,
1238
1238
  enabled: A = !0
1239
1239
  }) {
1240
- const n = ie(() => {
1240
+ const n = se(() => {
1241
1241
  const d = /* @__PURE__ */ new Map(), i = (u) => {
1242
1242
  u.forEach((c) => {
1243
1243
  const h = c;
@@ -1251,12 +1251,12 @@ function yA({
1251
1251
  ), a = C(
1252
1252
  (d) => d.shortcut,
1253
1253
  []
1254
- ), l = ie(() => {
1254
+ ), l = se(() => {
1255
1255
  if (!A)
1256
1256
  return [];
1257
1257
  const d = [];
1258
1258
  return o && d.push(["mod+b", o]), n.forEach((i, u) => {
1259
- const c = Ut(u);
1259
+ const c = qt(u);
1260
1260
  d.push([
1261
1261
  c,
1262
1262
  () => {
@@ -1282,7 +1282,7 @@ function ze({
1282
1282
  hoverColor: l,
1283
1283
  itemHeight: d = 40
1284
1284
  }) {
1285
- const i = ge(), { colorScheme: u } = se(), c = e, [h, f] = fe(!1), b = s || "var(--mantine-color-text)", v = a || i.colors[i.primaryColor][6], m = l || i.colors[i.primaryColor][6], g = l ? `color-mix(in srgb, ${l} 80%, black)` : i.colors[i.primaryColor][8], p = h ? A ? g : m : A ? m : "transparent", w = h || A ? i.white : b, x = h || A ? i.white : v, R = typeof e.disabled == "function" ? e.disabled() : e.disabled;
1285
+ const i = ge(), { colorScheme: u } = le(), c = e, [h, f] = pe(!1), b = s || "var(--mantine-color-text)", v = a || i.colors[i.primaryColor][6], m = l || i.colors[i.primaryColor][6], g = l ? `color-mix(in srgb, ${l} 80%, black)` : i.colors[i.primaryColor][8], p = h ? A ? g : m : A ? m : "transparent", w = h || A ? i.white : b, x = h || A ? i.white : v, R = typeof e.disabled == "function" ? e.disabled() : e.disabled;
1286
1286
  if (R && e.hideDisabledItem || !e.showInSidebar)
1287
1287
  return null;
1288
1288
  const Y = C(() => {
@@ -1303,7 +1303,7 @@ function ze({
1303
1303
  openDelay: 100,
1304
1304
  closeDelay: 200,
1305
1305
  children: [
1306
- /* @__PURE__ */ r(ne.Target, { children: /* @__PURE__ */ r(Ue, { style: { width: "100%", padding: "2px 0" }, children: /* @__PURE__ */ r(Te, { label: O, position: "right", withArrow: !0, children: /* @__PURE__ */ E(
1306
+ /* @__PURE__ */ r(ne.Target, { children: /* @__PURE__ */ r(Ye, { style: { width: "100%", padding: "2px 0" }, children: /* @__PURE__ */ r(Te, { label: O, position: "right", withArrow: !0, children: /* @__PURE__ */ E(
1307
1307
  J,
1308
1308
  {
1309
1309
  gap: 1,
@@ -1424,7 +1424,7 @@ function ze({
1424
1424
  position: "right",
1425
1425
  withArrow: !0,
1426
1426
  children: /* @__PURE__ */ r(
1427
- Ue,
1427
+ Ye,
1428
1428
  {
1429
1429
  style: {
1430
1430
  width: "100%",
@@ -1494,7 +1494,7 @@ function ze({
1494
1494
  }
1495
1495
  );
1496
1496
  }
1497
- function Yt({
1497
+ function jt({
1498
1498
  label: e,
1499
1499
  icon: t,
1500
1500
  children: o,
@@ -1503,7 +1503,7 @@ function Yt({
1503
1503
  onExpandedChange: s,
1504
1504
  groupId: a
1505
1505
  }) {
1506
- const l = ge(), { colorScheme: d } = se(), [i, u] = fe(A), c = n !== void 0, h = c ? n : i, f = C(() => {
1506
+ const l = ge(), { colorScheme: d } = le(), [i, u] = pe(A), c = n !== void 0, h = c ? n : i, f = C(() => {
1507
1507
  c ? s?.(!h) : u((p) => !p);
1508
1508
  }, [c, h, s]), b = d === "dark" ? l.colors.dark[6] : l.colors.gray[1], v = d === "dark" ? l.colors.dark[5] : l.colors.gray[2], m = d === "dark" ? l.colors.gray[4] : l.colors.gray[7], g = d === "dark" ? l.colors[l.primaryColor][4] : l.colors[l.primaryColor][6];
1509
1509
  return /* @__PURE__ */ E(B, { children: [
@@ -1547,11 +1547,11 @@ function Yt({
1547
1547
  /* @__PURE__ */ r(Lr, { expanded: h, children: /* @__PURE__ */ r(B, { mt: 4, children: o }) })
1548
1548
  ] });
1549
1549
  }
1550
- function Sn({
1550
+ function xn({
1551
1551
  label: e,
1552
1552
  children: t
1553
1553
  }) {
1554
- const o = ge(), { colorScheme: A } = se(), n = A === "dark" ? o.colors.gray[5] : o.colors.gray[6];
1554
+ const o = ge(), { colorScheme: A } = le(), n = A === "dark" ? o.colors.gray[5] : o.colors.gray[6];
1555
1555
  return /* @__PURE__ */ E(B, { children: [
1556
1556
  /* @__PURE__ */ r(
1557
1557
  we,
@@ -1569,7 +1569,7 @@ function Sn({
1569
1569
  t
1570
1570
  ] });
1571
1571
  }
1572
- function qt({
1572
+ function Xt({
1573
1573
  group: e,
1574
1574
  active: t = !1,
1575
1575
  onClick: o,
@@ -1577,7 +1577,7 @@ function qt({
1577
1577
  activeColor: n,
1578
1578
  inactiveColor: s
1579
1579
  }) {
1580
- const a = ge(), { colorScheme: l } = se(), d = l === "dark" ? a.colors[a.primaryColor][8] : a.colors[a.primaryColor][0], i = l === "dark" ? a.colors[a.primaryColor][6] : a.colors[a.primaryColor][7], u = a.colors[a.primaryColor][2], f = /* @__PURE__ */ E(
1580
+ const a = ge(), { colorScheme: l } = le(), d = l === "dark" ? a.colors[a.primaryColor][8] : a.colors[a.primaryColor][0], i = l === "dark" ? a.colors[a.primaryColor][6] : a.colors[a.primaryColor][7], u = a.colors[a.primaryColor][2], f = /* @__PURE__ */ E(
1581
1581
  J,
1582
1582
  {
1583
1583
  gap: 2,
@@ -1617,14 +1617,14 @@ function qt({
1617
1617
  );
1618
1618
  return A ? f : /* @__PURE__ */ r(Te, { label: e.hint || e.label, position: "right", withArrow: !0, children: f });
1619
1619
  }
1620
- function kn({
1620
+ function In({
1621
1621
  placeholder: e = "Buscar...",
1622
1622
  value: t,
1623
1623
  onChange: o,
1624
1624
  onClear: A,
1625
1625
  collapsed: n = !1
1626
1626
  }) {
1627
- const s = ge(), { colorScheme: a } = se(), l = C(
1627
+ const s = ge(), { colorScheme: a } = le(), l = C(
1628
1628
  (u) => {
1629
1629
  o?.(u.currentTarget.value);
1630
1630
  },
@@ -1638,13 +1638,13 @@ function kn({
1638
1638
  variant: "subtle",
1639
1639
  size: "lg",
1640
1640
  color: a === "dark" ? "gray" : "dark",
1641
- children: /* @__PURE__ */ r(Ye, { size: 18 })
1641
+ children: /* @__PURE__ */ r(qe, { size: 18 })
1642
1642
  }
1643
1643
  ) : /* @__PURE__ */ r(
1644
1644
  VA,
1645
1645
  {
1646
1646
  placeholder: e,
1647
- leftSection: /* @__PURE__ */ r(Ye, { size: 16 }),
1647
+ leftSection: /* @__PURE__ */ r(qe, { size: 16 }),
1648
1648
  rightSection: i ? /* @__PURE__ */ r(
1649
1649
  Re,
1650
1650
  {
@@ -1666,14 +1666,14 @@ function kn({
1666
1666
  }
1667
1667
  );
1668
1668
  }
1669
- function xn({
1669
+ function Tn({
1670
1670
  name: e,
1671
1671
  email: t,
1672
1672
  avatar: o,
1673
1673
  onClick: A,
1674
1674
  collapsed: n = !1
1675
1675
  }) {
1676
- const s = ge(), { colorScheme: a } = se(), l = a === "dark" ? s.colors.dark[5] : s.colors.gray[1], d = () => {
1676
+ const s = ge(), { colorScheme: a } = le(), l = a === "dark" ? s.colors.dark[5] : s.colors.gray[1], d = () => {
1677
1677
  if (typeof o == "string")
1678
1678
  return /* @__PURE__ */ r(nA, { src: o, radius: "xl", size: n ? "sm" : "md" });
1679
1679
  if (o)
@@ -1760,7 +1760,7 @@ function xn({
1760
1760
  }
1761
1761
  );
1762
1762
  }
1763
- function In({
1763
+ function En({
1764
1764
  value: e,
1765
1765
  color: t = "red",
1766
1766
  size: o = "xs"
@@ -1768,7 +1768,7 @@ function In({
1768
1768
  const A = typeof e == "number" && e > 99 ? "99+" : e;
1769
1769
  return /* @__PURE__ */ r(dA, { size: o, color: t, variant: "filled", children: A });
1770
1770
  }
1771
- function Tn({
1771
+ function Rn({
1772
1772
  children: e,
1773
1773
  show: t = !0,
1774
1774
  color: o = "red",
@@ -1794,7 +1794,7 @@ function vA({
1794
1794
  showGroups: n = !0,
1795
1795
  groupCount: s = 2
1796
1796
  }) {
1797
- const a = ge(), { colorScheme: l } = se(), d = o || (l === "dark" ? a.colors.dark[7] : a.white);
1797
+ const a = ge(), { colorScheme: l } = le(), d = o || (l === "dark" ? a.colors.dark[7] : a.white);
1798
1798
  if (t)
1799
1799
  return /* @__PURE__ */ r(J, { gap: "sm", p: "xs", style: { backgroundColor: d }, children: Array.from({ length: e }).map((c, h) => /* @__PURE__ */ r(ue, { circle: !0, height: 32, width: 32 }, h)) });
1800
1800
  const i = (c, h = !1) => Array.from({ length: c }).map((f, b) => {
@@ -1830,12 +1830,12 @@ function vA({
1830
1830
  ) })
1831
1831
  ] }, h)) });
1832
1832
  }
1833
- function jt({
1833
+ function Jt({
1834
1834
  groupCount: e = 4,
1835
1835
  width: t = 80,
1836
1836
  backgroundColor: o
1837
1837
  }) {
1838
- const A = ge(), { colorScheme: n } = se(), s = o || (n === "dark" ? A.colors[A.primaryColor][8] : A.colors[A.primaryColor][6]);
1838
+ const A = ge(), { colorScheme: n } = le(), s = o || (n === "dark" ? A.colors[A.primaryColor][8] : A.colors[A.primaryColor][6]);
1839
1839
  return /* @__PURE__ */ r(
1840
1840
  J,
1841
1841
  {
@@ -1854,7 +1854,7 @@ function jt({
1854
1854
  }
1855
1855
  );
1856
1856
  }
1857
- function En({
1857
+ function Pn({
1858
1858
  collapsed: e = !1
1859
1859
  }) {
1860
1860
  return e ? /* @__PURE__ */ r(B, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(ue, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ E(Ie, { gap: "sm", p: "md", children: [
@@ -1865,7 +1865,7 @@ function En({
1865
1865
  ] })
1866
1866
  ] });
1867
1867
  }
1868
- function Rn({
1868
+ function Ln({
1869
1869
  collapsed: e = !1
1870
1870
  }) {
1871
1871
  return e ? /* @__PURE__ */ r(B, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(ue, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ E(Ie, { gap: "sm", p: "sm", children: [
@@ -1880,7 +1880,7 @@ function CA({
1880
1880
  message: e,
1881
1881
  backgroundColor: t
1882
1882
  }) {
1883
- const o = ge(), { colorScheme: A } = se(), n = t || (A === "dark" ? o.colors.dark[7] : o.white), s = A === "dark" ? o.colors.red[4] : o.colors.red[6];
1883
+ const o = ge(), { colorScheme: A } = le(), n = t || (A === "dark" ? o.colors.dark[7] : o.white), s = A === "dark" ? o.colors.red[4] : o.colors.red[6];
1884
1884
  return /* @__PURE__ */ r(
1885
1885
  B,
1886
1886
  {
@@ -1909,7 +1909,7 @@ function CA({
1909
1909
  }
1910
1910
  );
1911
1911
  }
1912
- function Xt({
1912
+ function _t({
1913
1913
  navigationData: e,
1914
1914
  width: t = 280,
1915
1915
  collapsedWidth: o = 60,
@@ -1937,28 +1937,28 @@ function Xt({
1937
1937
  highlightActiveItem: G = !0,
1938
1938
  onMenuItemClick: F
1939
1939
  }) {
1940
- const S = ge(), { colorScheme: T } = se(), { collapsed: D, toggleCollapsed: z } = gA(), P = T === "dark" ? v ?? S.colors.dark[7] : m ?? S.white, I = T === "dark" ? g ?? S.colors.gray[3] : p ?? S.colors.gray[7], L = T === "dark" ? w ?? S.colors[S.primaryColor][4] : x ?? S.colors[S.primaryColor][6], j = R ? S.colors[R]?.[6] ?? S.colors[S.primaryColor][6] : S.colors[S.primaryColor][6], {
1940
+ const S = ge(), { colorScheme: T } = le(), { collapsed: D, toggleCollapsed: z } = gA(), P = T === "dark" ? v ?? S.colors.dark[7] : m ?? S.white, I = T === "dark" ? g ?? S.colors.gray[3] : p ?? S.colors.gray[7], L = T === "dark" ? w ?? S.colors[S.primaryColor][4] : x ?? S.colors[S.primaryColor][6], j = R ? S.colors[R]?.[6] ?? S.colors[S.primaryColor][6] : S.colors[S.primaryColor][6], {
1941
1941
  query: H,
1942
- setQuery: _,
1943
- filteredItems: W,
1942
+ setQuery: W,
1943
+ filteredItems: Z,
1944
1944
  isSearching: he,
1945
1945
  clearSearch: me
1946
- } = Ht({
1946
+ } = Yt({
1947
1947
  navigationData: e,
1948
1948
  onSearch: a
1949
- }), { navigateToItem: le, isItemActive: q, isItemOrChildActive: V } = mA({
1949
+ }), { navigateToItem: ae, isItemActive: q, isItemOrChildActive: V } = mA({
1950
1950
  navigationData: e,
1951
1951
  onMenuItemClick: F
1952
1952
  });
1953
1953
  yA({
1954
1954
  navigationData: e,
1955
- navigateToItem: le,
1955
+ navigateToItem: ae,
1956
1956
  onToggleSidebar: z,
1957
1957
  enabled: !0
1958
1958
  });
1959
- const k = D ? o : t, y = ie(() => {
1959
+ const k = D ? o : t, y = se(() => {
1960
1960
  const M = /* @__PURE__ */ new Map(), Q = [];
1961
- return W.forEach((K) => {
1961
+ return Z.forEach((K) => {
1962
1962
  if (!(!K.showInSidebar || (typeof K.disabled == "function" ? K.disabled() : K.disabled) && K.hideDisabledItem))
1963
1963
  if (K.category) {
1964
1964
  const X = M.get(K.category) || [];
@@ -1966,7 +1966,7 @@ function Xt({
1966
1966
  } else
1967
1967
  Q.push(K);
1968
1968
  }), { groups: M, ungrouped: Q };
1969
- }, [W]), $ = () => {
1969
+ }, [Z]), $ = () => {
1970
1970
  if (c)
1971
1971
  return f || /* @__PURE__ */ r(CA, { message: c, backgroundColor: P });
1972
1972
  if (u)
@@ -1985,14 +1985,14 @@ function Xt({
1985
1985
  item: K,
1986
1986
  collapsed: D,
1987
1987
  active: G && q(K),
1988
- onClick: le,
1988
+ onClick: ae,
1989
1989
  textColor: I,
1990
1990
  iconColor: L,
1991
1991
  hoverColor: j
1992
1992
  },
1993
1993
  `item-${N}`
1994
1994
  )), Q = () => Array.from(y.groups.entries()).map(([N, X], ye) => /* @__PURE__ */ r(
1995
- Yt,
1995
+ jt,
1996
1996
  {
1997
1997
  label: N,
1998
1998
  groupId: `group-${ye}`,
@@ -2003,7 +2003,7 @@ function Xt({
2003
2003
  item: Se,
2004
2004
  collapsed: D,
2005
2005
  active: G && q(Se),
2006
- onClick: le,
2006
+ onClick: ae,
2007
2007
  textColor: I,
2008
2008
  iconColor: L
2009
2009
  },
@@ -2019,7 +2019,7 @@ function Xt({
2019
2019
  item: K,
2020
2020
  collapsed: !0,
2021
2021
  active: G && q(K),
2022
- onClick: le,
2022
+ onClick: ae,
2023
2023
  textColor: I,
2024
2024
  iconColor: L
2025
2025
  },
@@ -2031,7 +2031,7 @@ function Xt({
2031
2031
  item: K,
2032
2032
  collapsed: !0,
2033
2033
  active: G && q(K),
2034
- onClick: le,
2034
+ onClick: ae,
2035
2035
  textColor: I,
2036
2036
  iconColor: L
2037
2037
  },
@@ -2072,7 +2072,7 @@ function Xt({
2072
2072
  VA,
2073
2073
  {
2074
2074
  placeholder: s,
2075
- leftSection: /* @__PURE__ */ r(Ye, { size: 16 }),
2075
+ leftSection: /* @__PURE__ */ r(qe, { size: 16 }),
2076
2076
  rightSection: he ? /* @__PURE__ */ r(
2077
2077
  qA,
2078
2078
  {
@@ -2082,7 +2082,7 @@ function Xt({
2082
2082
  }
2083
2083
  ) : null,
2084
2084
  value: H,
2085
- onChange: (Q) => _(Q.currentTarget.value),
2085
+ onChange: (Q) => W(Q.currentTarget.value),
2086
2086
  size: "sm"
2087
2087
  }
2088
2088
  ) }),
@@ -2114,7 +2114,7 @@ function Xt({
2114
2114
  }
2115
2115
  );
2116
2116
  }
2117
- function Jt(e) {
2117
+ function Wt(e) {
2118
2118
  const {
2119
2119
  navigationData: t,
2120
2120
  collapsed: o,
@@ -2135,11 +2135,11 @@ function Jt(e) {
2135
2135
  showKeyboardShortcuts: s,
2136
2136
  highlightActiveItem: a,
2137
2137
  onMenuItemClick: l,
2138
- children: /* @__PURE__ */ r(Xt, { ...e })
2138
+ children: /* @__PURE__ */ r(_t, { ...e })
2139
2139
  }
2140
2140
  );
2141
2141
  }
2142
- function _t({
2142
+ function Zt({
2143
2143
  item: e,
2144
2144
  active: t,
2145
2145
  onClick: o,
@@ -2147,7 +2147,7 @@ function _t({
2147
2147
  activeColor: n
2148
2148
  }) {
2149
2149
  ge();
2150
- const { colorScheme: s } = se(), a = typeof e.disabled == "function" ? e.disabled() : e.disabled;
2150
+ const { colorScheme: s } = le(), a = typeof e.disabled == "function" ? e.disabled() : e.disabled;
2151
2151
  if (a && e.hideDisabledItem || !e.showInSidebar)
2152
2152
  return null;
2153
2153
  const l = ke.t(e.label);
@@ -2250,7 +2250,7 @@ function _t({
2250
2250
  )
2251
2251
  ] }) });
2252
2252
  }
2253
- function Wt({
2253
+ function eo({
2254
2254
  navigationData: e,
2255
2255
  width: t = 60,
2256
2256
  height: o = "100%",
@@ -2272,7 +2272,7 @@ function Wt({
2272
2272
  highlightActiveItem: p = !0,
2273
2273
  onMenuItemClick: w
2274
2274
  }) {
2275
- const x = ge(), { colorScheme: R } = se(), { toggleCollapsed: Y } = gA(), O = R === "dark" ? c ?? x.colors.dark[7] : h ?? x.white, G = R === "dark" ? f ?? x.colors[x.primaryColor][4] : b ?? x.colors[x.primaryColor][6], F = v ?? x.primaryColor, { navigateToItem: S, isItemActive: T, isItemOrChildActive: D } = mA({
2275
+ const x = ge(), { colorScheme: R } = le(), { toggleCollapsed: Y } = gA(), O = R === "dark" ? c ?? x.colors.dark[7] : h ?? x.white, G = R === "dark" ? f ?? x.colors[x.primaryColor][4] : b ?? x.colors[x.primaryColor][6], F = v ?? x.primaryColor, { navigateToItem: S, isItemActive: T, isItemOrChildActive: D } = mA({
2276
2276
  navigationData: e,
2277
2277
  onMenuItemClick: w
2278
2278
  });
@@ -2290,7 +2290,7 @@ function Wt({
2290
2290
  backgroundColor: O
2291
2291
  }
2292
2292
  ) : /* @__PURE__ */ r(J, { gap: 8, align: "center", children: z.map((L, j) => /* @__PURE__ */ r(
2293
- _t,
2293
+ Zt,
2294
2294
  {
2295
2295
  item: L,
2296
2296
  active: p && (T(L) || D(L)),
@@ -2356,7 +2356,7 @@ function Wt({
2356
2356
  }
2357
2357
  );
2358
2358
  }
2359
- function Zt(e) {
2359
+ function Ao(e) {
2360
2360
  const {
2361
2361
  navigationData: t,
2362
2362
  collapsed: o,
@@ -2377,11 +2377,11 @@ function Zt(e) {
2377
2377
  showKeyboardShortcuts: s,
2378
2378
  highlightActiveItem: a,
2379
2379
  onMenuItemClick: l,
2380
- children: /* @__PURE__ */ r(Wt, { ...e })
2380
+ children: /* @__PURE__ */ r(eo, { ...e })
2381
2381
  }
2382
2382
  );
2383
2383
  }
2384
- function eo({
2384
+ function ro({
2385
2385
  navigationData: e,
2386
2386
  width: t = 360,
2387
2387
  collapsedWidth: o = 60,
@@ -2414,12 +2414,12 @@ function eo({
2414
2414
  highlightActiveItem: z = !0,
2415
2415
  onMenuItemClick: P
2416
2416
  }) {
2417
- const I = ge(), { colorScheme: L } = se(), {
2417
+ const I = ge(), { colorScheme: L } = le(), {
2418
2418
  collapsed: j,
2419
2419
  toggleCollapsed: H,
2420
- activeGroup: _,
2421
- setActiveGroup: W
2422
- } = gA(), he = L === "dark" ? m ?? I.colors.dark[7] : g ?? I.white, me = L === "dark" ? p ?? I.colors.gray[3] : w ?? I.colors.gray[7], le = L === "dark" ? x ?? I.colors[I.primaryColor][4] : R ?? I.colors[I.primaryColor][6], q = Y ? I.colors[Y]?.[6] ?? I.colors[I.primaryColor][6] : I.colors[I.primaryColor][6], V = O || (L === "dark" ? I.colors[I.primaryColor][6] : I.colors[I.primaryColor][7]), k = G || (L === "dark" ? I.colors[I.primaryColor][8] : I.colors[I.primaryColor][0]), { navigateToItem: y, isItemActive: $ } = mA({
2420
+ activeGroup: W,
2421
+ setActiveGroup: Z
2422
+ } = gA(), he = L === "dark" ? m ?? I.colors.dark[7] : g ?? I.white, me = L === "dark" ? p ?? I.colors.gray[3] : w ?? I.colors.gray[7], ae = L === "dark" ? x ?? I.colors[I.primaryColor][4] : R ?? I.colors[I.primaryColor][6], q = Y ? I.colors[Y]?.[6] ?? I.colors[I.primaryColor][6] : I.colors[I.primaryColor][6], V = O || (L === "dark" ? I.colors[I.primaryColor][6] : I.colors[I.primaryColor][7]), k = G || (L === "dark" ? I.colors[I.primaryColor][8] : I.colors[I.primaryColor][0]), { navigateToItem: y, isItemActive: $ } = mA({
2423
2423
  navigationData: e,
2424
2424
  onMenuItemClick: P
2425
2425
  });
@@ -2429,31 +2429,31 @@ function eo({
2429
2429
  onToggleSidebar: H,
2430
2430
  enabled: !0
2431
2431
  });
2432
- const M = ie(() => {
2432
+ const M = se(() => {
2433
2433
  const U = /* @__PURE__ */ new Map();
2434
- return e.forEach((ae) => {
2435
- if (!ae.showInSidebar || (typeof ae.disabled == "function" ? ae.disabled() : ae.disabled) && ae.hideDisabledItem)
2434
+ return e.forEach((ie) => {
2435
+ if (!ie.showInSidebar || (typeof ie.disabled == "function" ? ie.disabled() : ie.disabled) && ie.hideDisabledItem)
2436
2436
  return;
2437
- const Le = ae.group ?? {
2437
+ const Le = ie.group ?? {
2438
2438
  icon: s ?? /* @__PURE__ */ r(YA, { size: "2.2rem", stroke: 1 }),
2439
2439
  label: "Default",
2440
2440
  name: "Default",
2441
2441
  hint: "Default",
2442
2442
  indexOrder: 0
2443
- }, pe = U.get(Le.name);
2444
- pe ? pe.items.push(ae) : U.set(Le.name, {
2443
+ }, fe = U.get(Le.name);
2444
+ fe ? fe.items.push(ie) : U.set(Le.name, {
2445
2445
  group: Le,
2446
- items: [ae]
2446
+ items: [ie]
2447
2447
  });
2448
- }), Array.from(U.values()).sort((ae, Ee) => ae.group.indexOrder - Ee.group.indexOrder);
2448
+ }), Array.from(U.values()).sort((ie, Ee) => ie.group.indexOrder - Ee.group.indexOrder);
2449
2449
  }, [e, s]);
2450
2450
  re(() => {
2451
- !_ && M.length > 0 && W(M[0].group.name);
2452
- }, [_, M, W]);
2453
- const Q = ie(() => M.find((ae) => ae.group.name === _)?.items ?? [], [M, _]), K = C((U) => {
2454
- j ? (H(), W(U)) : _ === U ? H() : W(U);
2455
- }, [j, _, H, W]), N = j ? 0 : Number(de(t)) - Number(de(n)), X = () => u && M.length === 0 ? /* @__PURE__ */ r(
2456
- jt,
2451
+ !W && M.length > 0 && Z(M[0].group.name);
2452
+ }, [W, M, Z]);
2453
+ const Q = se(() => M.find((ie) => ie.group.name === W)?.items ?? [], [M, W]), K = C((U) => {
2454
+ j ? (H(), Z(U)) : W === U ? H() : Z(U);
2455
+ }, [j, W, H, Z]), N = j ? 0 : Number(de(t)) - Number(de(n)), X = () => u && M.length === 0 ? /* @__PURE__ */ r(
2456
+ Jt,
2457
2457
  {
2458
2458
  groupCount: v,
2459
2459
  width: n,
@@ -2472,10 +2472,10 @@ function eo({
2472
2472
  flexShrink: 0
2473
2473
  },
2474
2474
  children: M.map((U) => /* @__PURE__ */ r(
2475
- qt,
2475
+ Xt,
2476
2476
  {
2477
2477
  group: U.group,
2478
- active: U.group.name === _,
2478
+ active: U.group.name === W,
2479
2479
  onClick: () => K(U.group.name),
2480
2480
  showLabel: a,
2481
2481
  activeColor: k,
@@ -2492,7 +2492,7 @@ function eo({
2492
2492
  backgroundColor: he,
2493
2493
  showGroups: !1
2494
2494
  }
2495
- ) : /* @__PURE__ */ r(J, { gap: 2, children: Q.map((U, ae) => /* @__PURE__ */ r(
2495
+ ) : /* @__PURE__ */ r(J, { gap: 2, children: Q.map((U, ie) => /* @__PURE__ */ r(
2496
2496
  ze,
2497
2497
  {
2498
2498
  item: U,
@@ -2500,10 +2500,10 @@ function eo({
2500
2500
  active: z && $(U),
2501
2501
  onClick: y,
2502
2502
  textColor: me,
2503
- iconColor: le,
2503
+ iconColor: ae,
2504
2504
  hoverColor: q
2505
2505
  },
2506
- ae
2506
+ ie
2507
2507
  )) }), Se = L === "dark" ? I.colors.dark[5] : I.colors.gray[2];
2508
2508
  return M.length <= 1 ? /* @__PURE__ */ E(Ve, { direction: "column", w: j ? o : t, h: "100%", style: { backgroundColor: he }, children: [
2509
2509
  l && /* @__PURE__ */ r(B, { style: { width: "100%", flexShrink: 0 }, children: l }),
@@ -2519,7 +2519,7 @@ function eo({
2519
2519
  overflow: "hidden",
2520
2520
  borderRight: D ? `1px solid ${Se}` : void 0
2521
2521
  },
2522
- children: /* @__PURE__ */ r(De, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: j ? /* @__PURE__ */ r(J, { gap: 8, align: "center", children: e.filter((U) => U.showInSidebar ? !((typeof U.disabled == "function" ? U.disabled() : U.disabled) && U.hideDisabledItem) : !1).map((U, ae) => /* @__PURE__ */ r(
2522
+ children: /* @__PURE__ */ r(De, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: j ? /* @__PURE__ */ r(J, { gap: 8, align: "center", children: e.filter((U) => U.showInSidebar ? !((typeof U.disabled == "function" ? U.disabled() : U.disabled) && U.hideDisabledItem) : !1).map((U, ie) => /* @__PURE__ */ r(
2523
2523
  ze,
2524
2524
  {
2525
2525
  item: U,
@@ -2527,10 +2527,10 @@ function eo({
2527
2527
  active: z && $(U),
2528
2528
  onClick: y,
2529
2529
  textColor: me,
2530
- iconColor: le,
2530
+ iconColor: ae,
2531
2531
  hoverColor: q
2532
2532
  },
2533
- ae
2533
+ ie
2534
2534
  )) }) : ye() }) })
2535
2535
  }
2536
2536
  ),
@@ -2560,7 +2560,7 @@ function eo({
2560
2560
  transition: "width 200ms ease",
2561
2561
  borderLeft: M.length > 1 ? `1px solid ${L === "dark" ? I.colors.dark[5] : I.colors.gray[2]}` : void 0
2562
2562
  },
2563
- children: !j && _ && /* @__PURE__ */ r(De, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: ye() }) })
2563
+ children: !j && W && /* @__PURE__ */ r(De, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: ye() }) })
2564
2564
  }
2565
2565
  )
2566
2566
  ]
@@ -2569,7 +2569,7 @@ function eo({
2569
2569
  d && /* @__PURE__ */ r(B, { style: { width: "100%", backgroundColor: he, flexShrink: 0 }, children: d })
2570
2570
  ] });
2571
2571
  }
2572
- function Ao(e) {
2572
+ function to(e) {
2573
2573
  const {
2574
2574
  navigationData: t,
2575
2575
  collapsed: o,
@@ -2596,22 +2596,22 @@ function Ao(e) {
2596
2596
  showKeyboardShortcuts: d,
2597
2597
  highlightActiveItem: i,
2598
2598
  onMenuItemClick: u,
2599
- children: /* @__PURE__ */ r(eo, { ...e })
2599
+ children: /* @__PURE__ */ r(ro, { ...e })
2600
2600
  }
2601
2601
  );
2602
2602
  }
2603
- function ro({
2603
+ function oo({
2604
2604
  variant: e = "standard",
2605
2605
  ...t
2606
2606
  }) {
2607
2607
  switch (e) {
2608
2608
  case "minimal":
2609
- return /* @__PURE__ */ r(Zt, { ...t });
2610
- case "rail":
2611
2609
  return /* @__PURE__ */ r(Ao, { ...t });
2610
+ case "rail":
2611
+ return /* @__PURE__ */ r(to, { ...t });
2612
2612
  case "standard":
2613
2613
  default:
2614
- return /* @__PURE__ */ r(Jt, { ...t });
2614
+ return /* @__PURE__ */ r(Wt, { ...t });
2615
2615
  }
2616
2616
  }
2617
2617
  function wA(e) {
@@ -2623,7 +2623,7 @@ function tr(e) {
2623
2623
  function iA(e) {
2624
2624
  return Array.isArray(e);
2625
2625
  }
2626
- function qe(e) {
2626
+ function je(e) {
2627
2627
  return typeof e == "function";
2628
2628
  }
2629
2629
  function or(e) {
@@ -2644,10 +2644,10 @@ function tA(e) {
2644
2644
  setTimeout(e, 0);
2645
2645
  }
2646
2646
  var nr = Pe({ active: !1, refresh: () => {
2647
- }, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }), to = KA(function(e) {
2648
- let { children: t, active: o, refresh: A, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l } = e, d = ie(() => ({ active: o, refresh: A, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l }), [o, A, n, s, a, l]);
2647
+ }, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }), no = KA(function(e) {
2648
+ let { children: t, active: o, refresh: A, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l } = e, d = se(() => ({ active: o, refresh: A, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l }), [o, A, n, s, a, l]);
2649
2649
  return r(nr.Provider, { value: d, children: t });
2650
- }), oo = to, sr = QA.Activity, no = sr ?? QA.Fragment, so = !!sr, lr = "keepalive-cache-div";
2650
+ }), so = no, sr = QA.Activity, lo = sr ?? QA.Fragment, ao = !!sr, lr = "keepalive-cache-div";
2651
2651
  function ar(e) {
2652
2652
  return e ? Array.from(e.children) : [];
2653
2653
  }
@@ -2666,18 +2666,18 @@ function OA(e, t) {
2666
2666
  A.classList.remove("active"), A.classList.add("inactive");
2667
2667
  }), o;
2668
2668
  }
2669
- function lo(e, t, o) {
2669
+ function io(e, t, o) {
2670
2670
  return o ? NA(o, e) : t ? !NA(t, e) : !0;
2671
2671
  }
2672
- var ao = KA(function(e) {
2673
- let { errorElement: t = FA, cacheNodeClassName: o, children: A, cacheKey: n, exclude: s, include: a, enableActivity: l } = e, { active: d, renderCount: i, destroy: u, transition: c, viewTransition: h, duration: f, containerDivRef: b } = e, v = Ae(!1);
2672
+ var co = KA(function(e) {
2673
+ let { errorElement: t = FA, cacheNodeClassName: o, children: A, cacheKey: n, exclude: s, include: a, enableActivity: l } = e, { active: d, renderCount: i, destroy: u, transition: c, viewTransition: h, duration: f, containerDivRef: b } = e, v = _(!1);
2674
2674
  v.current = v.current || d;
2675
- let m = ie(() => {
2675
+ let m = se(() => {
2676
2676
  let g = document.createElement("div");
2677
2677
  return or(g).set("data-cache-key", n).set("style", "height: 100%").set("data-render-count", i.toString()), g.className = lr + (o ? ` ${o}` : ""), g;
2678
2678
  }, [i, o]);
2679
2679
  return re(() => {
2680
- let g = lo(n, s, a), p = b.current;
2680
+ let g = io(n, s, a), p = b.current;
2681
2681
  if (!p) {
2682
2682
  console.warn("keepalive: cache container not found");
2683
2683
  return;
@@ -2700,24 +2700,24 @@ var ao = KA(function(e) {
2700
2700
  h && document.startViewTransition ? document.startViewTransition(w) : w();
2701
2701
  } else
2702
2702
  g || u(n);
2703
- }, [d, b, n, s, a]), v.current ? Ct(r(t, { children: so && l ? E(no, { mode: d ? "visible" : "hidden", children: [" ", A] }) : A }), m, n) : null;
2704
- }, (e, t) => e.active === t.active && e.renderCount === t.renderCount && e.children === t.children && e.exclude === t.exclude && e.include === t.include), io = ao, co = (e) => {
2705
- typeof AA < "u" && qe(AA) ? AA(e) : e();
2706
- }, uo = co;
2703
+ }, [d, b, n, s, a]), v.current ? St(r(t, { children: ao && l ? E(lo, { mode: d ? "visible" : "hidden", children: [" ", A] }) : A }), m, n) : null;
2704
+ }, (e, t) => e.active === t.active && e.renderCount === t.renderCount && e.children === t.children && e.exclude === t.exclude && e.include === t.include), uo = co, ho = (e) => {
2705
+ typeof AA < "u" && je(AA) ? AA(e) : e();
2706
+ }, po = ho;
2707
2707
  function ir() {
2708
- return Ae(null);
2708
+ return _(null);
2709
2709
  }
2710
- function ho(e) {
2711
- let { activeCacheKey: t, max: o = 10, exclude: A, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: d = "keep-alive-render", errorElement: i, transition: u = !1, viewTransition: c = !1, duration: h = 200, children: f, aliveRef: b, maxAliveTime: v = 0, enableActivity: m = !1 } = e, g = a || Ae(null), [p, w] = fe([]);
2710
+ function fo(e) {
2711
+ let { activeCacheKey: t, max: o = 10, exclude: A, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: d = "keep-alive-render", errorElement: i, transition: u = !1, viewTransition: c = !1, duration: h = 200, children: f, aliveRef: b, maxAliveTime: v = 0, enableActivity: m = !1 } = e, g = a || _(null), [p, w] = pe([]);
2712
2712
  mr(() => {
2713
- wA(t) || uo(() => {
2713
+ wA(t) || po(() => {
2714
2714
  w((F) => {
2715
2715
  let S = Date.now();
2716
2716
  if (F.find((T) => T.cacheKey === t))
2717
2717
  return F.map((T) => {
2718
2718
  if (T.cacheKey === t) {
2719
2719
  let D = !1;
2720
- if (qe(s) && s(t), v) {
2720
+ if (je(s) && s(t), v) {
2721
2721
  let z = T.lastActiveTime;
2722
2722
  if (iA(v)) {
2723
2723
  let P = v.find((I) => tr(I.match) ? I.match.test(t) : I.match === t);
@@ -2729,7 +2729,7 @@ function ho(e) {
2729
2729
  }
2730
2730
  return T;
2731
2731
  });
2732
- if (qe(s) && s(t), F.length > o) {
2732
+ if (je(s) && s(t), F.length > o) {
2733
2733
  let T = F.reduce((D, z) => D.lastActiveTime < z.lastActiveTime ? D : z);
2734
2734
  F.splice(F.indexOf(T), 1);
2735
2735
  }
@@ -2763,12 +2763,12 @@ function ho(e) {
2763
2763
  }, [t, w]), G = C(() => p, [p]);
2764
2764
  return yr(b, () => ({ refresh: x, destroy: R, destroyAll: Y, destroyOther: O, getCacheNodes: G })), E(FA, { children: [r("div", { ref: g, className: d, style: { height: "100%" } }), p.map((F) => {
2765
2765
  let { cacheKey: S, ele: T, renderCount: D } = F;
2766
- return r(oo, { active: t === S, refresh: x, destroy: R, destroyAll: Y, destroyOther: O, getCacheNodes: G, children: r(io, { destroy: R, include: n, exclude: A, transition: u, viewTransition: c, duration: h, renderCount: D, containerDivRef: g, errorElement: i, active: t === S, cacheNodeClassName: l, cacheKey: S, enableActivity: m, children: T }) }, `${S}-${D}`);
2766
+ return r(so, { active: t === S, refresh: x, destroy: R, destroyAll: Y, destroyOther: O, getCacheNodes: G, children: r(uo, { destroy: R, include: n, exclude: A, transition: u, viewTransition: c, duration: h, renderCount: D, containerDivRef: g, errorElement: i, active: t === S, cacheNodeClassName: l, cacheKey: S, enableActivity: m, children: T }) }, `${S}-${D}`);
2767
2767
  })] });
2768
2768
  }
2769
- var po = ho, fo = () => be(nr), cr = fo;
2770
- function go(e, t, o = !1, A) {
2771
- let { active: n } = cr(), s = Ae(!1);
2769
+ var go = fo, bo = () => be(nr), cr = bo;
2770
+ function mo(e, t, o = !1, A) {
2771
+ let { active: n } = cr(), s = _(!1);
2772
2772
  A(() => {
2773
2773
  if (!n)
2774
2774
  return;
@@ -2778,25 +2778,27 @@ function go(e, t, o = !1, A) {
2778
2778
  }
2779
2779
  let a = e();
2780
2780
  return () => {
2781
- qe(a) && a();
2781
+ je(a) && a();
2782
2782
  };
2783
2783
  }, [n, ...t]);
2784
2784
  }
2785
- var bo = go, mo = (e, t, o = !1) => {
2786
- bo(e, t, o, re);
2787
- }, yo = mo;
2785
+ var yo = mo, vo = (e, t, o = !1) => {
2786
+ yo(e, t, o, re);
2787
+ }, Co = vo;
2788
2788
  const dr = Pe({
2789
- isVisible: !0
2790
- }), Pn = () => be(dr), SA = Pe({ params: {} }), Ln = () => be(SA).params, Mn = () => {
2789
+ isVisible: !0,
2790
+ wasRestored: !1,
2791
+ restoreCount: 0
2792
+ }), Mn = () => be(dr), SA = Pe({ params: {} }), Dn = () => be(SA).params, Nn = () => {
2791
2793
  const e = _A(), o = be(SA).params;
2792
- return ie(() => {
2794
+ return se(() => {
2793
2795
  if (!e)
2794
2796
  return !1;
2795
2797
  const n = Object.keys(e);
2796
2798
  return n.length === 0 ? !1 : n.some((s) => e[s] !== void 0);
2797
2799
  }, [e]) ? e : o;
2798
- }, je = Pe(null), vo = () => be(je), Co = ({ children: e }) => {
2799
- const t = ir(), o = ie(() => ({
2800
+ }, Xe = Pe(null), wo = () => be(Xe), So = ({ children: e }) => {
2801
+ const t = ir(), o = se(() => ({
2800
2802
  requestUnregister: (A) => {
2801
2803
  t.current?.destroy(A);
2802
2804
  },
@@ -2811,25 +2813,37 @@ const dr = Pe({
2811
2813
  },
2812
2814
  getCacheNodes: () => t.current?.getCacheNodes() || []
2813
2815
  }), [t]);
2814
- return /* @__PURE__ */ r(je.Provider, { value: o, children: /* @__PURE__ */ r(ur.Provider, { value: t, children: e }) });
2815
- }, ur = Pe(null), Xe = (e) => null, wo = (e) => e.includes(":"), So = (e, t) => wo(e) ? t : e, ko = ({ children: e }) => {
2816
- const { active: t } = cr(), o = _A(), A = Ae(o), [n, s] = fe(o);
2817
- return A.current = o, yo(() => {
2818
- s(A.current), requestAnimationFrame(() => {
2816
+ return /* @__PURE__ */ r(Xe.Provider, { value: o, children: /* @__PURE__ */ r(ur.Provider, { value: t, children: e }) });
2817
+ }, ur = Pe(null), Je = (e) => null, ko = (e) => e.includes(":"), xo = (e, t) => ko(e) ? t : e, Io = ({ children: e }) => {
2818
+ const { active: t } = cr(), o = _A(), A = Ue(), n = pt(), s = _(o), [a, l] = pe(o);
2819
+ s.current = o;
2820
+ const d = _({ location: A, navigationType: n });
2821
+ t && (d.current = { location: A, navigationType: n });
2822
+ const i = se(
2823
+ () => t ? { location: A, navigationType: n } : d.current,
2824
+ [t, A, n]
2825
+ ), [u, c] = pe(0), h = _(t);
2826
+ Co(() => {
2827
+ l(s.current), requestAnimationFrame(() => {
2819
2828
  window.dispatchEvent(new Event("resize"));
2820
2829
  });
2821
2830
  }, []), re(() => {
2822
- t && s(A.current);
2823
- }, [t]), /* @__PURE__ */ r(dr.Provider, { value: { isVisible: t }, children: /* @__PURE__ */ r(SA.Provider, { value: { params: n }, children: e }) });
2824
- }, xo = "__nokeep__:", hr = Ce.memo(({ keepAlivePaths: e, maxKeepAliveTabs: t, aliveRef: o }) => {
2825
- const A = _e(), n = ut(), s = ie(() => {
2831
+ t && (l(s.current), h.current || c((b) => b + 1)), h.current = t;
2832
+ }, [t]);
2833
+ const f = se(
2834
+ () => ({ isVisible: t, wasRestored: u > 0, restoreCount: u }),
2835
+ [t, u]
2836
+ );
2837
+ return /* @__PURE__ */ r(ft.Provider, { value: i, children: /* @__PURE__ */ r(dr.Provider, { value: f, children: /* @__PURE__ */ r(SA.Provider, { value: { params: a }, children: e }) }) });
2838
+ }, To = "__nokeep__:", hr = Ce.memo(({ keepAlivePaths: e, maxKeepAliveTabs: t, aliveRef: o }) => {
2839
+ const A = Ue(), n = ut(), s = se(() => {
2826
2840
  const l = e.find(
2827
2841
  (d) => ht({ path: d, end: !0 }, A.pathname)
2828
2842
  );
2829
- return l ? So(l, A.pathname) : xo + A.pathname;
2830
- }, [e, A.pathname]), a = ie(() => [/^__nokeep__:/], []);
2843
+ return l ? xo(l, A.pathname) : To + A.pathname;
2844
+ }, [e, A.pathname]), a = se(() => [/^__nokeep__:/], []);
2831
2845
  return /* @__PURE__ */ r(
2832
- po,
2846
+ go,
2833
2847
  {
2834
2848
  activeCacheKey: s,
2835
2849
  max: t,
@@ -2840,11 +2854,11 @@ const dr = Pe({
2840
2854
  );
2841
2855
  });
2842
2856
  hr.displayName = "KeepAliveLayout";
2843
- const Io = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2844
- const A = ir(), s = be(ur) || A, a = Ae(null), l = Ae(""), { keepAlivePaths: d, routeElements: i } = ie(() => {
2857
+ const Eo = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2858
+ const A = ir(), s = be(ur) || A, a = _(null), l = _(""), { keepAlivePaths: d, routeElements: i } = se(() => {
2845
2859
  const f = Ce.Children.toArray(e), b = f.map((p) => {
2846
2860
  if (Ce.isValidElement(p)) {
2847
- const w = p.props?.path || "", x = p.type === Xe;
2861
+ const w = p.props?.path || "", x = p.type === Je;
2848
2862
  return `${w}:${x}`;
2849
2863
  }
2850
2864
  return "";
@@ -2855,7 +2869,7 @@ const Io = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2855
2869
  const v = [], m = [];
2856
2870
  f.forEach((p) => {
2857
2871
  if (Ce.isValidElement(p))
2858
- if (p.type === Xe) {
2872
+ if (p.type === Je) {
2859
2873
  const w = p.props;
2860
2874
  w.path && v.push(w.path);
2861
2875
  const x = w.component, R = typeof x == "function" ? Ce.createElement(x) : x;
@@ -2864,7 +2878,7 @@ const Io = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2864
2878
  $e,
2865
2879
  {
2866
2880
  path: w.path,
2867
- element: /* @__PURE__ */ r(ko, { children: R })
2881
+ element: /* @__PURE__ */ r(Io, { children: R })
2868
2882
  },
2869
2883
  w.path || p.key
2870
2884
  )
@@ -2874,7 +2888,7 @@ const Io = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2874
2888
  });
2875
2889
  const g = { keepAlivePaths: v, routeElements: m };
2876
2890
  return a.current = g, g;
2877
- }, [e]), u = be(je), c = ie(() => ({
2891
+ }, [e]), u = be(Xe), c = se(() => ({
2878
2892
  requestUnregister: (f) => {
2879
2893
  s.current?.destroy(f);
2880
2894
  },
@@ -2896,19 +2910,19 @@ const Io = ({ children: e, maxKeepAliveTabs: t = 10, ...o }) => {
2896
2910
  aliveRef: s
2897
2911
  }
2898
2912
  ), children: i }) });
2899
- return u ? h : /* @__PURE__ */ r(je.Provider, { value: c, children: h });
2913
+ return u ? h : /* @__PURE__ */ r(Xe.Provider, { value: c, children: h });
2900
2914
  }, pr = Pe({
2901
2915
  start: () => {
2902
2916
  },
2903
2917
  done: () => {
2904
2918
  },
2905
2919
  isNavigating: !1
2906
- }), fr = () => be(pr), To = 150;
2907
- function Eo({ children: e }) {
2908
- const [t, o] = fe(!1), A = Ae(null), n = Ae(0), s = C(() => {
2920
+ }), fr = () => be(pr), Ro = 150;
2921
+ function Po({ children: e }) {
2922
+ const [t, o] = pe(!1), A = _(null), n = _(0), s = C(() => {
2909
2923
  A.current && clearTimeout(A.current), n.current = Date.now(), o(!0);
2910
2924
  }, []), a = C(() => {
2911
- const l = Date.now() - n.current, d = Math.max(0, To - l);
2925
+ const l = Date.now() - n.current, d = Math.max(0, Ro - l);
2912
2926
  A.current = setTimeout(() => {
2913
2927
  o(!1);
2914
2928
  }, d);
@@ -2918,7 +2932,7 @@ function Eo({ children: e }) {
2918
2932
  e
2919
2933
  ] });
2920
2934
  }
2921
- function Ro(e, t, o, A, n, s) {
2935
+ function Lo(e, t, o, A, n, s) {
2922
2936
  return /* @__PURE__ */ r(
2923
2937
  "div",
2924
2938
  {
@@ -2942,7 +2956,7 @@ function Ro(e, t, o, A, n, s) {
2942
2956
  }
2943
2957
  );
2944
2958
  }
2945
- function Po({
2959
+ function Mo({
2946
2960
  children: e,
2947
2961
  header: t,
2948
2962
  footer: o,
@@ -2978,52 +2992,52 @@ function Po({
2978
2992
  sideBarTextLightColor: L,
2979
2993
  sideBarIconDarkColor: j,
2980
2994
  sideBarIconLightColor: H,
2981
- sideBarCollapsedSubmenuWidth: _,
2982
- sidebarActiveColor: W,
2995
+ sideBarCollapsedSubmenuWidth: W,
2996
+ sidebarActiveColor: Z,
2983
2997
  maxKeepAliveTabs: he = 10,
2984
2998
  sidebarVariant: me = "legacy",
2985
- sidebarShowSearch: le = !1
2999
+ sidebarShowSearch: ae = !1
2986
3000
  }) {
2987
- const q = ge(), V = be(We), { colorScheme: k } = se(), y = gt(), [$, M] = bt(), Q = ft(
3001
+ const q = ge(), V = be(We), { colorScheme: k } = le(), y = mt(), [$, M] = yt(), Q = bt(
2988
3002
  `(max-width: ${s ? de(s) : q.breakpoints.md})`
2989
- ), K = (Z) => {
2990
- Z.link && (Z.routeParams ? y(Z.link, {}, Z.routeParams) : y(Z.link));
2991
- }, N = (Z, ce) => {
2992
- Z == ce && V.collapsed && V.setCollapsed(!1), V.setCollapsed(Z == ce);
3003
+ ), K = (ee) => {
3004
+ ee.link && (ee.routeParams ? y(ee.link, {}, ee.routeParams) : y(ee.link));
3005
+ }, N = (ee, ce) => {
3006
+ ee == ce && V.collapsed && V.setCollapsed(!1), V.setCollapsed(ee == ce);
2993
3007
  }, X = () => {
2994
- let Z = 0, ce = 0;
2995
- return h && (Z = Number(de(h))), a && (ce = Number(de(a))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${Z + ce}px)`;
3008
+ let ee = 0, ce = 0;
3009
+ return h && (ee = Number(de(h))), a && (ce = Number(de(a))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${ee + ce}px)`;
2996
3010
  }, ye = () => {
2997
- let Z = 0, ce = 0;
2998
- return h && (Z = Number(de(h))), a && (ce = Number(de(a))), `calc(100vh - 28px - ${Z + ce}px)`;
2999
- }, Se = ie(() => {
3000
- const Z = [];
3011
+ let ee = 0, ce = 0;
3012
+ return h && (ee = Number(de(h))), a && (ce = Number(de(a))), `calc(100vh - 28px - ${ee + ce}px)`;
3013
+ }, Se = se(() => {
3014
+ const ee = [];
3001
3015
  return V.navigationData.forEach((ce, Qe) => {
3002
3016
  ce.links ? ce.links.forEach((Ne, xA) => {
3003
- Ne.keepAlive === !1 ? Z.push(/* @__PURE__ */ r($e, { path: Ne.link, element: Ne.component }, `${Ne.link}_${xA}`)) : Z.push(
3004
- /* @__PURE__ */ r(Xe, { path: Ne.link, component: Ne.component }, `${Ne.link}_${xA}`)
3017
+ Ne.keepAlive === !1 ? ee.push(/* @__PURE__ */ r($e, { path: Ne.link, element: Ne.component }, `${Ne.link}_${xA}`)) : ee.push(
3018
+ /* @__PURE__ */ r(Je, { path: Ne.link, component: Ne.component }, `${Ne.link}_${xA}`)
3005
3019
  );
3006
- }) : ce.keepAlive === !1 ? Z.push(
3020
+ }) : ce.keepAlive === !1 ? ee.push(
3007
3021
  /* @__PURE__ */ r($e, { path: ce.link, element: ce.component }, `${ce.link}_${Qe}`)
3008
- ) : Z.push(
3009
- /* @__PURE__ */ r(Xe, { path: ce.link, component: ce.component }, `${ce.link}_${Qe}`)
3022
+ ) : ee.push(
3023
+ /* @__PURE__ */ r(Je, { path: ce.link, component: ce.component }, `${ce.link}_${Qe}`)
3010
3024
  );
3011
- }), Z;
3025
+ }), ee;
3012
3026
  }, [V.navigationData, V.collapsed]), U = C(() => {
3013
3027
  V.setCollapsed(!V.collapsed);
3014
- }, [V.setCollapsed, V.collapsed]), ae = C(() => {
3028
+ }, [V.setCollapsed, V.collapsed]), ie = C(() => {
3015
3029
  V.setHidden(!V.hidden);
3016
3030
  }, [V.setHidden, V.hidden]);
3017
3031
  re(() => {
3018
3032
  i && i(V.hidden);
3019
- }, [V.hidden, ae]), re(() => {
3033
+ }, [V.hidden, ie]), re(() => {
3020
3034
  d && d(V.collapsed);
3021
3035
  }, [V.collapsed, d]);
3022
- const Ee = me === "minimal" || V.collapsed ? n : A, Le = (Z, ce = !1) => T ? T({ width: A, height: Z, isHidden: Q }) : me === "legacy" ? /* @__PURE__ */ r(
3023
- Bt,
3036
+ const Ee = me === "minimal" || V.collapsed ? n : A, Le = (ee, ce = !1) => T ? T({ width: A, height: ee, isHidden: Q }) : me === "legacy" ? /* @__PURE__ */ r(
3037
+ Ut,
3024
3038
  {
3025
3039
  navigationData: V.navigationData,
3026
- sidebarHeight: Z,
3040
+ sidebarHeight: ee,
3027
3041
  sidebarGroupWidth: n,
3028
3042
  sidebarCollapsedWidth: n,
3029
3043
  selectedGroupColor: b,
@@ -3053,18 +3067,18 @@ function Po({
3053
3067
  textLightColor: L,
3054
3068
  iconDarkColor: j,
3055
3069
  iconLightColor: H,
3056
- collapsedSubmenuWidth: _,
3070
+ collapsedSubmenuWidth: W,
3057
3071
  isLoading: V.isLoadingPermissions,
3058
3072
  loadingError: V.permissionsError
3059
3073
  }
3060
3074
  ) : /* @__PURE__ */ r(
3061
- ro,
3075
+ oo,
3062
3076
  {
3063
3077
  navigationData: V.navigationData,
3064
3078
  variant: me,
3065
3079
  width: Ee,
3066
3080
  collapsedWidth: n,
3067
- height: Z,
3081
+ height: ee,
3068
3082
  groupColumnWidth: n,
3069
3083
  collapsed: ce ? !1 : V.collapsed,
3070
3084
  onCollapsedChange: (Qe) => V.setCollapsed(Qe),
@@ -3074,7 +3088,7 @@ function Po({
3074
3088
  defaultGroupIcon: c,
3075
3089
  showGroupLabels: !1,
3076
3090
  onMenuItemClick: K,
3077
- showSearch: le,
3091
+ showSearch: ae,
3078
3092
  header: f,
3079
3093
  footer: l,
3080
3094
  footerHeight: a,
@@ -3093,11 +3107,11 @@ function Po({
3093
3107
  groupColor: v,
3094
3108
  groupLabelDarkColor: g,
3095
3109
  groupLabelLightColor: p,
3096
- activeColor: W,
3110
+ activeColor: Z,
3097
3111
  withBorder: !1,
3098
3112
  sidebarRef: $
3099
3113
  }
3100
- ), pe = k === "dark" ? z ?? q.colors.dark[7] : P ?? q.white, Oe = me === "legacy", te = Oe ? void 0 : {
3114
+ ), fe = k === "dark" ? z ?? q.colors.dark[7] : P ?? q.white, Oe = me === "legacy", te = Oe ? void 0 : {
3101
3115
  width: { base: Ee },
3102
3116
  breakpoint: "sm",
3103
3117
  collapsed: { mobile: Q || !O, desktop: Q || !O }
@@ -3112,7 +3126,7 @@ function Po({
3112
3126
  overflow: "hidden"
3113
3127
  },
3114
3128
  navbar: {
3115
- background: pe,
3129
+ background: fe,
3116
3130
  border: "none"
3117
3131
  }
3118
3132
  }, ve = Oe ? {
@@ -3133,7 +3147,7 @@ function Po({
3133
3147
  borderRadius: "4px",
3134
3148
  overflow: "hidden"
3135
3149
  };
3136
- return /* @__PURE__ */ r(Eo, { children: /* @__PURE__ */ E(
3150
+ return /* @__PURE__ */ r(Po, { children: /* @__PURE__ */ E(
3137
3151
  Ke,
3138
3152
  {
3139
3153
  header: { height: "60px", collapsed: !G },
@@ -3158,7 +3172,7 @@ function Po({
3158
3172
  ),
3159
3173
  !Q && O && /* @__PURE__ */ r(Ke.Navbar, { children: Le(X(), !1) }),
3160
3174
  /* @__PURE__ */ E(Ke.Main, { bg: k === "dark" ? q.colors.dark[8] : q.colors.gray[0], children: [
3161
- !Q && D && Ro(
3175
+ !Q && D && Lo(
3162
3176
  k,
3163
3177
  q,
3164
3178
  V,
@@ -3166,15 +3180,15 @@ function Po({
3166
3180
  n,
3167
3181
  U
3168
3182
  ),
3169
- /* @__PURE__ */ r(Co, { children: /* @__PURE__ */ E("div", { style: ve, children: [
3183
+ /* @__PURE__ */ r(So, { children: /* @__PURE__ */ E("div", { style: ve, children: [
3170
3184
  e,
3171
- /* @__PURE__ */ r(Lo, { maxKeepAliveTabs: he, routes: Se })
3185
+ /* @__PURE__ */ r(Do, { maxKeepAliveTabs: he, routes: Se })
3172
3186
  ] }) }),
3173
3187
  O && /* @__PURE__ */ r(
3174
3188
  BA,
3175
3189
  {
3176
3190
  opened: V.hidden || !1,
3177
- onClose: ae,
3191
+ onClose: ie,
3178
3192
  size: A,
3179
3193
  padding: 0,
3180
3194
  styles: {
@@ -3189,18 +3203,18 @@ function Po({
3189
3203
  }
3190
3204
  ) });
3191
3205
  }
3192
- function Lo({ maxKeepAliveTabs: e, routes: t }) {
3206
+ function Do({ maxKeepAliveTabs: e, routes: t }) {
3193
3207
  const { isNavigating: o } = fr();
3194
3208
  return /* @__PURE__ */ r("div", { style: {
3195
3209
  width: "100%",
3196
3210
  height: "calc(100% - 48px)",
3197
3211
  opacity: o ? 0.6 : 1,
3198
3212
  transition: "opacity 0.15s ease-out"
3199
- }, children: /* @__PURE__ */ E(Io, { maxKeepAliveTabs: e, children: [
3213
+ }, children: /* @__PURE__ */ E(Eo, { maxKeepAliveTabs: e, children: [
3200
3214
  ...t
3201
3215
  ] }) });
3202
3216
  }
3203
- function Dn({
3217
+ function zn({
3204
3218
  navigationRootLink: e = "/",
3205
3219
  navigationData: t,
3206
3220
  user: o,
@@ -3236,11 +3250,11 @@ function Dn({
3236
3250
  enableSecurity: L = !1,
3237
3251
  securityOptions: j,
3238
3252
  customRenderSidebar: H,
3239
- onNavigationDataChange: _,
3240
- showCollapsedButton: W,
3253
+ onNavigationDataChange: W,
3254
+ showCollapsedButton: Z,
3241
3255
  initialSidebarCollapsed: he = !1,
3242
3256
  sideBarBackgroundDarkColor: me,
3243
- sideBarBackgroundLightColor: le,
3257
+ sideBarBackgroundLightColor: ae,
3244
3258
  sideBarTextDarkColor: q,
3245
3259
  sideBarTextLightColor: V,
3246
3260
  sideBarIconDarkColor: k,
@@ -3252,7 +3266,7 @@ function Dn({
3252
3266
  sidebarShowSearch: N = !1
3253
3267
  }) {
3254
3268
  return /* @__PURE__ */ r(
3255
- Lt,
3269
+ Dt,
3256
3270
  {
3257
3271
  navigationData: t,
3258
3272
  navigationRootLink: e,
@@ -3261,10 +3275,10 @@ function Dn({
3261
3275
  company: l,
3262
3276
  enableSecurity: L,
3263
3277
  securityOptions: j,
3264
- onNavigationDataChange: _,
3278
+ onNavigationDataChange: W,
3265
3279
  initialSidebarCollapsed: he,
3266
3280
  children: /* @__PURE__ */ r(
3267
- Po,
3281
+ Mo,
3268
3282
  {
3269
3283
  navigationRootLink: e,
3270
3284
  user: o,
@@ -3298,9 +3312,9 @@ function Dn({
3298
3312
  highlightActiveMenuItem: I,
3299
3313
  enableSecurity: L,
3300
3314
  customRenderSidebar: H,
3301
- showCollapsedButton: W,
3315
+ showCollapsedButton: Z,
3302
3316
  sideBarBackgroundDarkColor: me,
3303
- sideBarBackgroundLightColor: le,
3317
+ sideBarBackgroundLightColor: ae,
3304
3318
  sideBarTextDarkColor: q,
3305
3319
  sideBarTextLightColor: V,
3306
3320
  sideBarIconDarkColor: k,
@@ -3319,7 +3333,7 @@ function Dn({
3319
3333
  const gr = Pe({
3320
3334
  state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
3321
3335
  dispatch: (e) => null
3322
- }), Nn = ({ children: e }) => {
3336
+ }), On = ({ children: e }) => {
3323
3337
  const t = {
3324
3338
  userCloseLinkRequest: "",
3325
3339
  linkClosed: "",
@@ -3352,17 +3366,17 @@ const gr = Pe({
3352
3366
  if (!e)
3353
3367
  throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
3354
3368
  return e;
3355
- }, zn = (e, t) => {
3369
+ }, $n = (e, t) => {
3356
3370
  const o = br(), { state: A, dispatch: n } = o, s = C((d) => {
3357
3371
  n({ type: "CLOSE_ALLOWED", link: e, payload: d });
3358
- }, [n, e]), a = Ae(t);
3372
+ }, [n, e]), a = _(t);
3359
3373
  a.current = t, re(() => {
3360
3374
  A && A.userCloseLinkRequest && A.userCloseLinkRequest === e && a.current();
3361
3375
  }, [A, e]);
3362
3376
  const l = A.isClosing && A.userCloseLinkRequest === e;
3363
3377
  return { closeAllowed: s, isClosing: l };
3364
- }, Je = rr()(
3365
- xt(
3378
+ }, _e = rr()(
3379
+ Tt(
3366
3380
  (e, t) => ({
3367
3381
  openTabs: [],
3368
3382
  activeTabId: null,
@@ -3417,24 +3431,24 @@ const gr = Pe({
3417
3431
  }
3418
3432
  )
3419
3433
  );
3420
- function On({
3434
+ function Qn({
3421
3435
  navigationData: e,
3422
3436
  onChangeOpenedTabs: t,
3423
3437
  onChangeActiveTabId: o,
3424
3438
  activeTabId: A,
3425
3439
  openedTabs: n = []
3426
3440
  }) {
3427
- const [s, a] = Ce.useTransition(), l = Be(), { colorScheme: d } = se(), [i, u] = fe(n), [c, h] = fe(A), f = Ae(void 0), b = He(), v = Ae([]);
3428
- wt(v);
3429
- const m = br(), { state: g, dispatch: p } = m, w = be(We), x = vo(), { start: R, done: Y } = fr(), O = Je((k) => k.clearSnapshot), G = Je((k) => k.removeTab), F = Ae(t), S = Ae(o);
3441
+ const [s, a] = Ce.useTransition(), l = Be(), { colorScheme: d } = le(), [i, u] = pe(n), [c, h] = pe(A), f = _(void 0), b = He(), v = _([]);
3442
+ kt(v);
3443
+ const m = br(), { state: g, dispatch: p } = m, w = be(We), x = wo(), { start: R, done: Y } = fr(), O = _e((k) => k.clearSnapshot), G = _e((k) => k.removeTab), F = _(t), S = _(o);
3430
3444
  re(() => {
3431
3445
  F.current = t, S.current = o;
3432
3446
  });
3433
- const T = Ae(c);
3447
+ const T = _(c);
3434
3448
  re(() => {
3435
3449
  f.current = T.current, T.current = c;
3436
3450
  }, [c]);
3437
- const D = Ae(!1), z = C((k, y) => {
3451
+ const D = _(!1), z = C((k, y) => {
3438
3452
  R(), x ? x.destroy(k) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks."), O(k), G(k);
3439
3453
  const $ = i.findIndex((X) => X.path === k);
3440
3454
  let M = y?.redirectUrl;
@@ -3489,7 +3503,7 @@ function On({
3489
3503
  re(() => {
3490
3504
  u(n), D.current = !0;
3491
3505
  }, [JSON.stringify(n)]);
3492
- const I = Ae(i), L = Ae(c);
3506
+ const I = _(i), L = _(c);
3493
3507
  re(() => {
3494
3508
  if (D.current) {
3495
3509
  D.current = !1, I.current = i, L.current = c;
@@ -3503,7 +3517,7 @@ function On({
3503
3517
  return I.current = i, L.current = c, () => clearTimeout($);
3504
3518
  }
3505
3519
  }, [i, c]);
3506
- const j = Ae("");
3520
+ const j = _("");
3507
3521
  re(() => {
3508
3522
  if (j.current === b.pathname)
3509
3523
  return;
@@ -3538,13 +3552,13 @@ function On({
3538
3552
  y && y.length > 0 && b.pathname !== y[0].path && (R(), l(y[0].path)), a(() => {
3539
3553
  h(k), Y();
3540
3554
  });
3541
- }, _ = (k) => {
3555
+ }, W = (k) => {
3542
3556
  try {
3543
3557
  R(), p({ type: "USER_CLOSE_REQUEST", link: k });
3544
3558
  } catch (y) {
3545
3559
  console.error("[TabContainer] Dispatch failed:", y), Y();
3546
3560
  }
3547
- }, W = C(() => {
3561
+ }, Z = C(() => {
3548
3562
  if (x?.destroyAll(), i.forEach((k) => {
3549
3563
  O(k.id), G(k.id);
3550
3564
  }), u([]), h(void 0), !w.navigationRootLink) {
@@ -3584,7 +3598,7 @@ function On({
3584
3598
  const N = K.find((X) => X.id === Q);
3585
3599
  N && b.pathname !== N.path && l(N.path);
3586
3600
  }
3587
- }, [i, c, l, b.pathname, x, O, G]), le = C((k) => {
3601
+ }, [i, c, l, b.pathname, x, O, G]), ae = C((k) => {
3588
3602
  const y = i.find((M) => M.id === k);
3589
3603
  if (!y)
3590
3604
  return;
@@ -3595,16 +3609,16 @@ function On({
3595
3609
  u($), h(k), b.pathname !== y.path && l(y.path);
3596
3610
  }, [i, l, b.pathname, x, O, G]), q = g?.isClosing ? g?.userCloseLinkRequest : void 0;
3597
3611
  return /* @__PURE__ */ r("div", { ref: v, children: /* @__PURE__ */ r(
3598
- St,
3612
+ xt,
3599
3613
  {
3600
3614
  buttonCloseOnlyActiveTab: !0,
3601
3615
  onClick: (k) => H(k),
3602
- onTabClose: (k) => _(k),
3616
+ onTabClose: (k) => W(k),
3603
3617
  onTabChange: (k) => null,
3604
- onCloseAllTabs: W,
3618
+ onCloseAllTabs: Z,
3605
3619
  onCloseLeftTabs: he,
3606
3620
  onCloseRightTabs: me,
3607
- onCloseOtherTabs: le,
3621
+ onCloseOtherTabs: ae,
3608
3622
  currentTabs: ((k) => k.map((y) => ({
3609
3623
  key: y.id,
3610
3624
  favicon: y.iconClass,
@@ -3617,7 +3631,7 @@ function On({
3617
3631
  }
3618
3632
  ) });
3619
3633
  }
3620
- const Mo = () => Ce.createElement("div", null, "Home View"), Do = () => Ce.createElement("div", null, "Pedido Form"), No = () => Ce.createElement("div", null, "Pedido View"), zo = () => Ce.createElement("div", null, "Pessoa Form"), Oo = () => Ce.createElement("div", null, "Pessoa View"), $o = {
3634
+ const No = () => Ce.createElement("div", null, "Home View"), zo = () => Ce.createElement("div", null, "Pedido Form"), Oo = () => Ce.createElement("div", null, "Pedido View"), $o = () => Ce.createElement("div", null, "Pessoa Form"), Qo = () => Ce.createElement("div", null, "Pessoa View"), Ko = {
3621
3635
  label: "Dashboard",
3622
3636
  icon: /* @__PURE__ */ r(Kr, {}),
3623
3637
  link: "/dashboard",
@@ -3625,66 +3639,66 @@ const Mo = () => Ce.createElement("div", null, "Home View"), Do = () => Ce.creat
3625
3639
  color: "teal",
3626
3640
  component: /* @__PURE__ */ r("div", {}),
3627
3641
  showInSidebar: !0
3628
- }, Qo = {
3642
+ }, Fo = {
3629
3643
  label: "Home",
3630
3644
  icon: /* @__PURE__ */ r(Qr, {}),
3631
3645
  link: "/home",
3632
3646
  category: "HOME",
3633
3647
  color: "teal",
3634
- component: /* @__PURE__ */ r(Mo, {}),
3648
+ component: /* @__PURE__ */ r(No, {}),
3635
3649
  showInSidebar: !0,
3636
3650
  keepAlive: !0
3637
- }, Ko = {
3651
+ }, Go = {
3638
3652
  label: "Consulta lista pessoas",
3639
3653
  link: "/pessoa/consulta",
3640
3654
  icon: /* @__PURE__ */ r(jA, {}),
3641
3655
  category: "PESSOAS",
3642
3656
  color: "pink",
3643
- component: /* @__PURE__ */ r(Oo, {}),
3657
+ component: /* @__PURE__ */ r(Qo, {}),
3644
3658
  showInSidebar: !0,
3645
3659
  keepAlive: !0
3646
- }, Fo = {
3660
+ }, Vo = {
3647
3661
  label: "Nova pessoa",
3648
3662
  link: "/pessoa/nova",
3649
3663
  icon: /* @__PURE__ */ r(Gr, {}),
3650
3664
  category: "PESSOAS",
3651
3665
  color: "pink",
3652
- component: /* @__PURE__ */ r(zo, {}),
3666
+ component: /* @__PURE__ */ r($o, {}),
3653
3667
  showInSidebar: !0,
3654
3668
  keepAlive: !0
3655
- }, Go = {
3669
+ }, Bo = {
3656
3670
  label: "Pessoas",
3657
3671
  icon: /* @__PURE__ */ r(Fr, {}),
3658
- links: [Ko, Fo],
3672
+ links: [Go, Vo],
3659
3673
  category: "PESSOAS",
3660
3674
  color: "pink",
3661
3675
  showInSidebar: !0
3662
- }, Vo = {
3676
+ }, Ho = {
3663
3677
  label: "Consulta lista pedidos",
3664
3678
  link: "/pedido/consulta",
3665
3679
  icon: /* @__PURE__ */ r(jA, {}),
3666
3680
  category: "PEDIDOS",
3667
3681
  color: "yellow",
3668
- component: /* @__PURE__ */ r(No, {}),
3682
+ component: /* @__PURE__ */ r(Oo, {}),
3669
3683
  showInSidebar: !0,
3670
3684
  keepAlive: !0
3671
- }, Bo = {
3685
+ }, Uo = {
3672
3686
  label: "Novo pedido",
3673
3687
  link: "/pedido/novo",
3674
3688
  icon: /* @__PURE__ */ r(Br, {}),
3675
3689
  category: "PEDIDOS",
3676
3690
  color: "yellow",
3677
- component: /* @__PURE__ */ r(Do, {}),
3691
+ component: /* @__PURE__ */ r(zo, {}),
3678
3692
  showInSidebar: !0,
3679
3693
  keepAlive: !0
3680
- }, Ho = {
3694
+ }, Yo = {
3681
3695
  label: "Pedidos",
3682
3696
  icon: /* @__PURE__ */ r(Vr, {}),
3683
- links: [Vo, Bo],
3697
+ links: [Ho, Uo],
3684
3698
  category: "PEDIDOS",
3685
3699
  color: "yellow",
3686
3700
  showInSidebar: !0
3687
- }, Uo = {
3701
+ }, qo = {
3688
3702
  label: "Configurações",
3689
3703
  link: "/config",
3690
3704
  icon: /* @__PURE__ */ r(Hr, {}),
@@ -3692,15 +3706,15 @@ const Mo = () => Ce.createElement("div", null, "Home View"), Do = () => Ce.creat
3692
3706
  color: "lime",
3693
3707
  component: /* @__PURE__ */ r("div", {}),
3694
3708
  showInSidebar: !0
3695
- }, $n = [
3696
- Qo,
3697
- $o,
3698
- Go,
3699
- Ho,
3700
- Uo
3709
+ }, Kn = [
3710
+ Fo,
3711
+ Ko,
3712
+ Bo,
3713
+ Yo,
3714
+ qo
3701
3715
  ];
3702
- function Qn({ children: e, title: t = "", size: o = "440px", drawerKey: A, styles: n }) {
3703
- const [s, { open: a, close: l }] = kr(!1), [d] = WA(), i = pt(), u = _e();
3716
+ function Fn({ children: e, title: t = "", size: o = "440px", drawerKey: A, styles: n }) {
3717
+ const [s, { open: a, close: l }] = kr(!1), [d] = WA(), i = gt(), u = Ue();
3704
3718
  return re(() => {
3705
3719
  d.get("drawer") === A && a();
3706
3720
  }, [d]), /* @__PURE__ */ r(
@@ -3723,7 +3737,7 @@ function Qn({ children: e, title: t = "", size: o = "440px", drawerKey: A, style
3723
3737
  }
3724
3738
  );
3725
3739
  }
3726
- function Yo(e) {
3740
+ function jo(e) {
3727
3741
  const t = Be(), o = He(), [A] = WA();
3728
3742
  return { openDrawer: () => {
3729
3743
  const s = new URLSearchParams(A);
@@ -3733,13 +3747,13 @@ function Yo(e) {
3733
3747
  });
3734
3748
  } };
3735
3749
  }
3736
- function Kn({ drawerKey: e }) {
3737
- const { openDrawer: t } = Yo(e);
3750
+ function Gn({ drawerKey: e }) {
3751
+ const { openDrawer: t } = jo(e);
3738
3752
  return re(() => {
3739
3753
  t();
3740
3754
  }, []), null;
3741
3755
  }
3742
- const qo = {
3756
+ const Xo = {
3743
3757
  // Campos de identificação
3744
3758
  showNickname: !0,
3745
3759
  // Configurações de campos obrigatórios
@@ -3748,8 +3762,8 @@ const qo = {
3748
3762
  avatarImageQuality: 1,
3749
3763
  avatarMaxOutputSizePx: 512
3750
3764
  };
3751
- function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n }) {
3752
- const s = xr(), a = Ir(), l = Ur(), d = It(`myProfile${o}Store`), i = Tt(Yr.User), u = { ...qo, ...n ?? {} }, { dataSource: c, isLoading: h, error: f, isError: b, clearError: v } = Et({
3765
+ function Vn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n }) {
3766
+ const s = xr(), a = Ir(), l = Ur(), d = Et(`myProfile${o}Store`), i = Rt(Yr.User), u = { ...Xo, ...n ?? {} }, { dataSource: c, isLoading: h, error: f, isError: b, clearError: v } = Pt({
3753
3767
  name: `dsUser${o}`,
3754
3768
  label: `${oe().t("archbase:My Profile")}`,
3755
3769
  service: i,
@@ -3765,7 +3779,7 @@ function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n })
3765
3779
  },
3766
3780
  onError: (g, p) => {
3767
3781
  const w = g instanceof Error ? g.message : typeof g == "string" ? g : JSON.stringify(g);
3768
- mt.showError(oe().t("archbase:WARNING"), w, p);
3782
+ vt.showError(oe().t("archbase:WARNING"), w, p);
3769
3783
  }
3770
3784
  });
3771
3785
  re(() => {
@@ -3775,7 +3789,7 @@ function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n })
3775
3789
  g && (console.log(g), A(g.name, g.avatar));
3776
3790
  };
3777
3791
  return /* @__PURE__ */ r(
3778
- Rt,
3792
+ Lt,
3779
3793
  {
3780
3794
  title: oe().t("archbase:My Profile"),
3781
3795
  size: 800,
@@ -3787,7 +3801,7 @@ function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n })
3787
3801
  onAfterSave: m,
3788
3802
  children: /* @__PURE__ */ r(De, { style: { height: "440px" }, ref: s, children: /* @__PURE__ */ E(J, { children: [
3789
3803
  /* @__PURE__ */ r(J, { align: "center", children: /* @__PURE__ */ r(
3790
- yt,
3804
+ Ct,
3791
3805
  {
3792
3806
  dataSource: c,
3793
3807
  dataField: "avatar",
@@ -3832,7 +3846,7 @@ function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n })
3832
3846
  }
3833
3847
  );
3834
3848
  }
3835
- const Gn = rr((e) => ({
3849
+ const Bn = rr((e) => ({
3836
3850
  nameStore: "ADMIN_STORE",
3837
3851
  openedTabs: [],
3838
3852
  activeTabId: void 0,
@@ -3840,7 +3854,7 @@ const Gn = rr((e) => ({
3840
3854
  setOpenedTabs: (t) => e({ openedTabs: t }),
3841
3855
  setActiveTabId: (t) => e({ activeTabId: t }),
3842
3856
  setCollapsed: (t) => e({ collapsed: t })
3843
- })), jo = (e) => Pt((t, o) => ({
3857
+ })), Jo = (e) => Mt((t, o) => ({
3844
3858
  // Initial state values
3845
3859
  scrollY: e?.scrollY ?? 0,
3846
3860
  expandedPanels: e?.expandedPanels ?? [],
@@ -3930,14 +3944,14 @@ const Gn = rr((e) => ({
3930
3944
  filters: A.filters
3931
3945
  };
3932
3946
  }
3933
- })), Ze = Pe(null), Xo = ({
3947
+ })), Ze = Pe(null), _o = ({
3934
3948
  tabId: e,
3935
3949
  children: t
3936
3950
  }) => {
3937
- const { getSnapshot: o, saveSnapshot: A } = Je(), n = Ae(void 0);
3951
+ const { getSnapshot: o, saveSnapshot: A } = _e(), n = _(void 0);
3938
3952
  if (!n.current) {
3939
3953
  const s = o(e);
3940
- n.current = jo(s);
3954
+ n.current = Jo(s);
3941
3955
  }
3942
3956
  return re(() => () => {
3943
3957
  if (n.current) {
@@ -3946,13 +3960,13 @@ const Gn = rr((e) => ({
3946
3960
  }
3947
3961
  }, [e, A]), /* @__PURE__ */ r(Ze.Provider, { value: n.current ?? null, children: t });
3948
3962
  };
3949
- function Vn(e) {
3963
+ function Hn(e) {
3950
3964
  const t = be(Ze);
3951
3965
  if (!t)
3952
3966
  throw new Error("useTabStore must be used within TabStoreProvider");
3953
- return kt(t, e);
3967
+ return It(t, e);
3954
3968
  }
3955
- function Bn() {
3969
+ function Un() {
3956
3970
  const e = be(Ze);
3957
3971
  if (!e)
3958
3972
  throw new Error("useTabStoreApi must be used within TabStoreProvider");
@@ -3962,12 +3976,12 @@ function kA() {
3962
3976
  return be(Ze);
3963
3977
  }
3964
3978
  function eA(e, t) {
3965
- const o = kA(), A = Ae({ resolved: !1, value: void 0 });
3979
+ const o = kA(), A = _({ resolved: !1, value: void 0 });
3966
3980
  A.current.resolved || (A.current = {
3967
3981
  resolved: !0,
3968
3982
  value: typeof t == "function" ? t() : t
3969
3983
  });
3970
- const n = A.current.value, [s, a] = fe(n), l = Cr(
3984
+ const n = A.current.value, [s, a] = pe(n), l = Cr(
3971
3985
  // subscribe
3972
3986
  (u) => o ? o.subscribe(u) : () => {
3973
3987
  },
@@ -3989,10 +4003,10 @@ function eA(e, t) {
3989
4003
  }, [o, e, n]);
3990
4004
  return [d, i];
3991
4005
  }
3992
- function Hn(e, t) {
4006
+ function Yn(e, t) {
3993
4007
  return eA(e, t);
3994
4008
  }
3995
- const Jo = {
4009
+ const Wo = {
3996
4010
  page: 0,
3997
4011
  pageSize: 25,
3998
4012
  sortModel: [],
@@ -4004,8 +4018,8 @@ const Jo = {
4004
4018
  expandedRowIds: [],
4005
4019
  scrollPosition: { top: 0, left: 0 }
4006
4020
  };
4007
- function Un(e, t) {
4008
- const o = { ...Jo, ...t }, [A, n] = eA(
4021
+ function qn(e, t) {
4022
+ const o = { ...Wo, ...t }, [A, n] = eA(
4009
4023
  `grid_${e}`,
4010
4024
  o
4011
4025
  ), s = C((p) => {
@@ -4054,7 +4068,7 @@ const $A = {
4054
4068
  selectedNodeIds: [],
4055
4069
  focusedNodeId: null
4056
4070
  };
4057
- function Yn(e, t = []) {
4071
+ function jn(e, t = []) {
4058
4072
  const [o, A] = eA(
4059
4073
  `tree_${e}`,
4060
4074
  { ...$A, expandedNodeIds: t }
@@ -4113,7 +4127,7 @@ function Yn(e, t = []) {
4113
4127
  focusedNodeId: o.focusedNodeId
4114
4128
  };
4115
4129
  }
4116
- function qn(e, t = [], o = !0) {
4130
+ function Xn(e, t = [], o = !0) {
4117
4131
  const [A, n] = eA(
4118
4132
  `accordion_${e}`,
4119
4133
  t
@@ -4140,7 +4154,7 @@ function qn(e, t = [], o = !0) {
4140
4154
  isExpanded: i
4141
4155
  };
4142
4156
  }
4143
- function jn(e, t = {}) {
4157
+ function Jn(e, t = {}) {
4144
4158
  const { debounceMs: o = 100 } = t, A = kA();
4145
4159
  re(() => {
4146
4160
  if (!A || !e.current)
@@ -4164,8 +4178,8 @@ function jn(e, t = {}) {
4164
4178
  };
4165
4179
  }, [A, e, o]);
4166
4180
  }
4167
- function Xn(e) {
4168
- const t = _e(), o = Je((l) => l.activeTabId), A = t.pathname + t.search, n = o === A, s = Ae(n), a = Ae(!0);
4181
+ function _n(e) {
4182
+ const t = Ue(), o = _e((l) => l.activeTabId), A = t.pathname + t.search, n = o === A, s = _(n), a = _(!0);
4169
4183
  return re(() => {
4170
4184
  if (a.current) {
4171
4185
  a.current = !1, s.current = n;
@@ -4174,8 +4188,8 @@ function Xn(e) {
4174
4188
  n && !s.current && e && e(), s.current = n;
4175
4189
  }, [n, e]), n;
4176
4190
  }
4177
- function Jn(e) {
4178
- const t = kA(), o = `drawer_${e}_open`, A = `drawer_${e}_data`, n = Ae(!1), s = Ae(null), a = t ? t.getState().customState[o] ?? !1 : n.current, l = t ? t.getState().customState[A] ?? null : s.current, d = C((c) => {
4191
+ function Wn(e) {
4192
+ const t = kA(), o = `drawer_${e}_open`, A = `drawer_${e}_data`, n = _(!1), s = _(null), a = t ? t.getState().customState[o] ?? !1 : n.current, l = t ? t.getState().customState[A] ?? null : s.current, d = C((c) => {
4179
4193
  t ? (c !== void 0 && t.getState().setCustomState(A, c), t.getState().setCustomState(o, !0)) : (c !== void 0 && (s.current = c), n.current = !0);
4180
4194
  }, [t, o, A]), i = C(() => {
4181
4195
  t ? t.getState().setCustomState(o, !1) : n.current = !1;
@@ -4190,89 +4204,89 @@ function Jn(e) {
4190
4204
  closeAndClear: u
4191
4205
  };
4192
4206
  }
4193
- const _n = ({
4207
+ const Zn = ({
4194
4208
  routes: e,
4195
4209
  fallback: t,
4196
4210
  getTabId: o = (A, n) => A + n
4197
4211
  }) => {
4198
- const A = _e(), n = o(A.pathname, A.search);
4199
- return /* @__PURE__ */ r(Xo, { tabId: n, children: /* @__PURE__ */ E(JA, { children: [
4212
+ const A = Ue(), n = o(A.pathname, A.search);
4213
+ return /* @__PURE__ */ r(_o, { tabId: n, children: /* @__PURE__ */ E(JA, { children: [
4200
4214
  e.map(({ path: s, element: a }) => /* @__PURE__ */ r($e, { path: s, element: a }, s)),
4201
4215
  t && /* @__PURE__ */ r($e, { path: "*", element: /* @__PURE__ */ r(xe, { children: t }) })
4202
4216
  ] }) }, n);
4203
4217
  };
4204
4218
  export {
4205
4219
  We as ArchbaseAdminLayoutContext,
4206
- vn as ArchbaseAdminLayoutFooter,
4207
- Cn as ArchbaseAdminLayoutHeader,
4208
- Lt as ArchbaseAdminLayoutProvider,
4209
- Dn as ArchbaseAdminMainLayout,
4210
- On as ArchbaseAdminTabContainer,
4211
- Bt as ArchbaseAdvancedSidebar,
4212
- Io as ArchbaseAliveAbleRoutes,
4213
- Mt as ArchbaseChangeLanguageAction,
4214
- Nt as ArchbaseColorSchemeAction,
4215
- Qn as ArchbaseDrawerContent,
4216
- Kn as ArchbaseDrawerTrigger,
4217
- zt as ArchbaseHeaderNavAction,
4218
- Xe as ArchbaseKeepAliveRoute,
4219
- ro as ArchbaseMantineSidebar,
4220
- Fn as ArchbaseMyProfileModal,
4220
+ wn as ArchbaseAdminLayoutFooter,
4221
+ Sn as ArchbaseAdminLayoutHeader,
4222
+ Dt as ArchbaseAdminLayoutProvider,
4223
+ zn as ArchbaseAdminMainLayout,
4224
+ Qn as ArchbaseAdminTabContainer,
4225
+ Ut as ArchbaseAdvancedSidebar,
4226
+ Eo as ArchbaseAliveAbleRoutes,
4227
+ Nt as ArchbaseChangeLanguageAction,
4228
+ Ot as ArchbaseColorSchemeAction,
4229
+ Fn as ArchbaseDrawerContent,
4230
+ Gn as ArchbaseDrawerTrigger,
4231
+ $t as ArchbaseHeaderNavAction,
4232
+ Je as ArchbaseKeepAliveRoute,
4233
+ oo as ArchbaseMantineSidebar,
4234
+ Vn as ArchbaseMyProfileModal,
4221
4235
  gr as ArchbaseNavigationContext,
4222
- Nn as ArchbaseNavigationProvider,
4223
- _n as ArchbaseStatefulRoutes,
4224
- $t as CommandPaletteButton,
4225
- Co as KeepAliveCacheProvider,
4236
+ On as ArchbaseNavigationProvider,
4237
+ Zn as ArchbaseStatefulRoutes,
4238
+ Kt as CommandPaletteButton,
4239
+ So as KeepAliveCacheProvider,
4226
4240
  CA as MantineSidebarErrorMessage,
4227
- jt as MantineSidebarGroupsSkeleton,
4241
+ Jt as MantineSidebarGroupsSkeleton,
4228
4242
  vA as MantineSidebarMenuSkeleton,
4229
- Zt as MinimalSidebar,
4230
- Eo as NavigationProgressProvider,
4231
- Ao as RailSidebar,
4232
- In as SidebarBadge,
4243
+ Ao as MinimalSidebar,
4244
+ Po as NavigationProgressProvider,
4245
+ to as RailSidebar,
4246
+ En as SidebarBadge,
4233
4247
  MA as SidebarErrorMessage,
4234
- Yt as SidebarGroup,
4235
- qt as SidebarGroupIcon,
4236
- Vt as SidebarGroupsSkeleton,
4237
- En as SidebarHeaderSkeleton,
4238
- Tn as SidebarIndicator,
4248
+ jt as SidebarGroup,
4249
+ Xt as SidebarGroupIcon,
4250
+ Ht as SidebarGroupsSkeleton,
4251
+ Pn as SidebarHeaderSkeleton,
4252
+ Rn as SidebarIndicator,
4239
4253
  ze as SidebarItem,
4240
4254
  LA as SidebarMenuSkeleton,
4241
4255
  bA as SidebarProvider,
4242
- kn as SidebarSearch,
4243
- Sn as SidebarSection,
4244
- xn as SidebarUserProfile,
4245
- Rn as SidebarUserProfileSkeleton,
4246
- Jt as StandardSidebar,
4247
- Xo as TabStoreProvider,
4248
- jo as createTabStore,
4249
- Qt as defaultAvatar,
4250
- qo as defaultMyProfileModalOptions,
4251
- $n as navigationDataSample,
4252
- qn as useArchbaseAccordionState,
4253
- Gn as useArchbaseAdminStore,
4254
- Yo as useArchbaseDrawer,
4255
- Jn as useArchbaseDrawerState,
4256
- Un as useArchbaseGridState,
4256
+ In as SidebarSearch,
4257
+ xn as SidebarSection,
4258
+ Tn as SidebarUserProfile,
4259
+ Ln as SidebarUserProfileSkeleton,
4260
+ Wt as StandardSidebar,
4261
+ _o as TabStoreProvider,
4262
+ Jo as createTabStore,
4263
+ Ft as defaultAvatar,
4264
+ Xo as defaultMyProfileModalOptions,
4265
+ Kn as navigationDataSample,
4266
+ Xn as useArchbaseAccordionState,
4267
+ Bn as useArchbaseAdminStore,
4268
+ jo as useArchbaseDrawer,
4269
+ Wn as useArchbaseDrawerState,
4270
+ qn as useArchbaseGridState,
4257
4271
  br as useArchbaseNavigationContext,
4258
- zn as useArchbaseNavigationListener,
4259
- Ln as useArchbaseRouteParams,
4260
- jn as useArchbaseScrollRestore,
4272
+ $n as useArchbaseNavigationListener,
4273
+ Dn as useArchbaseRouteParams,
4274
+ Jn as useArchbaseScrollRestore,
4261
4275
  eA as useArchbaseState,
4262
- Hn as useArchbaseStateNamed,
4263
- Xn as useArchbaseTabActive,
4264
- Yn as useArchbaseTreeState,
4265
- vo as useKeepAliveCache,
4266
- Pn as useKeepAliveVisibility,
4276
+ Yn as useArchbaseStateNamed,
4277
+ _n as useArchbaseTabActive,
4278
+ jn as useArchbaseTreeState,
4279
+ wo as useKeepAliveCache,
4280
+ Mn as useKeepAliveVisibility,
4267
4281
  fr as useNavigationProgress,
4268
- Mn as useParams,
4282
+ Nn as useParams,
4269
4283
  gA as useSidebar,
4270
4284
  yA as useSidebarKeyboard,
4271
4285
  mA as useSidebarNavigation,
4272
- wn as useSidebarOptional,
4273
- Ht as useSidebarSearch,
4274
- Je as useTabRegistryStore,
4275
- Vn as useTabStore,
4276
- Bn as useTabStoreApi,
4286
+ kn as useSidebarOptional,
4287
+ Yt as useSidebarSearch,
4288
+ _e as useTabRegistryStore,
4289
+ Hn as useTabStore,
4290
+ Un as useTabStoreApi,
4277
4291
  kA as useTabStoreOptional
4278
4292
  };