@archbase/admin 4.0.45 → 4.0.46

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 R, Fragment as Pe } from "react/jsx-runtime";
2
- import * as GA from "react";
3
- import xe, { useState as ge, useRef as _, useEffect as oe, useMemo as ce, useContext as ve, useCallback as S, createContext as Ne, memo as BA, Fragment as UA, useLayoutEffect as kr, useImperativeHandle as xr, startTransition as nA, useReducer as Ir, useSyncExternalStore as Tr } from "react";
4
- import { useArchbaseSecurityManager as Er } from "@archbase/security";
5
- import { useUncontrolled as aA, useMediaQuery as PA, useHotkeys as Rr, useDisclosure as Pr, useFocusTrap as Lr, useForceUpdate as Mr } from "@mantine/hooks";
6
- import { Flex as Ye, useMantineColorScheme as de, Menu as ie, ActionIcon as De, Group as Le, Tooltip as Me, Button as Dr, ScrollArea as ze, Badge as pA, Center as Je, Image as Nr, useMantineTheme as me, px as fe, Burger as zr, Box as B, Avatar as iA, Text as Te, Stack as J, Skeleton as pe, Paper as Or, NavLink as LA, Kbd as HA, UnstyledButton as cA, Collapse as $r, TextInput as YA, Indicator as Qr, Transition as Kr, Divider as dA, AppShell as Be, Drawer as qA } from "@mantine/core";
7
- import { IconSun as jA, IconMoonStars as XA, IconTerminal as Fr, IconSearch as _e, IconAlertCircle as Vr, IconDots as JA, IconChevronRight as gA, IconChevronDown as Gr, IconX as _A, IconChevronLeft as Br, IconHome2 as Ur, IconDashboard as Hr, IconUsers as Yr, IconListSearch as WA, IconUserPlus as qr, IconNews as jr, IconFilePlus as Xr, IconSettings as Jr } from "@tabler/icons-react";
8
- import { useArchbaseAppContext as bA, getI18nextInstance as ne, useArchbaseTranslation as mA, archbaseI18next as Re, useArchbaseValidator as _r, ARCHBASE_IOC_API_TYPE as Wr } from "@archbase/core";
9
- import { BRFlag as He, USFlag as ZA, ESFlag as uA, VEFlag as Zr, UYFlag as et, SVFlag as At, PYFlag as rt, PEFlag as tt, PAFlag as ot, NIFlag as nt, MXFlag as st, HNFlag as lt, GTFlag as at, ECFlag as it, DOFlag as ct, CUFlag as dt, CRFlag as ut, COFlag as ht, CLFlag as ft, BOFlag as pt, ARFlag as gt } from "mantine-flagpack";
10
- import { spotlight as bt, Spotlight as Ue } from "@mantine/spotlight";
11
- import { useNavigate as qe, useLocation as je, matchPath as MA } from "react-router";
12
- import { useLocation as Xe, useOutlet as mt, matchPath as yt, Route as Ke, Routes as er, useParams as Ar, useNavigationType as vt, UNSAFE_LocationContext as Ct, useSearchParams as rr, useNavigate as wt } from "react-router-dom";
13
- import { useMediaQuery as St } from "usehooks-ts";
14
- import { useArchbaseNavigateParams as kt, useArchbaseVisible as xt, ArchbaseNotifications as It, ArchbaseAvatarEdit as Tt, ArchbaseEdit as sA } from "@archbase/components";
15
- import { SubMenu as Et, MenuItem as DA, menuClasses as te, Sidebar as tr, Menu as or, sidebarClasses as nr } from "react-pro-sidebar";
16
- import { createPortal as Rt } from "react-dom";
17
- import Pt from "@rehooks/component-size";
18
- import { ArchbaseAdvancedTabs as Lt } from "@archbase/layout";
19
- import { create as sr, useStore as Mt } from "zustand";
20
- import { persist as Dt } from "zustand/middleware";
21
- import { useArchbaseStore as Nt, useArchbaseRemoteServiceApi as zt, useArchbaseRemoteDataSource as Ot } from "@archbase/data";
22
- import { ArchbaseFormModalTemplate as $t } from "@archbase/template";
23
- import { createStore as Qt } from "zustand/vanilla";
24
- const rA = xe.createContext({}), Kt = ({
2
+ import * as HA from "react";
3
+ import xe, { useState as ge, useRef as Z, useEffect as oe, useMemo as ce, useContext as ye, useCallback as C, createContext as Ne, memo as YA, Fragment as qA, useLayoutEffect as Er, useImperativeHandle as Rr, startTransition as nA, useReducer as Pr, useSyncExternalStore as Lr } from "react";
4
+ import { useArchbaseSecurityManager as Mr } from "@archbase/security";
5
+ import { useUncontrolled as aA, useMediaQuery as DA, useHotkeys as Dr, useDisclosure as Nr, useFocusTrap as zr, useForceUpdate as Or } from "@mantine/hooks";
6
+ import { Flex as Ye, useMantineColorScheme as de, Menu as ie, ActionIcon as De, Group as Le, Tooltip as Me, Button as $r, ScrollArea as ze, Badge as pA, Center as Je, Image as Qr, useMantineTheme as me, px as fe, Burger as Kr, Box as H, Avatar as iA, Text as Te, Stack as _, Skeleton as pe, Paper as Fr, NavLink as NA, Kbd as jA, UnstyledButton as cA, Collapse as Vr, TextInput as XA, Indicator as Gr, Transition as Br, Divider as dA, AppShell as Be, Drawer as JA } from "@mantine/core";
7
+ import { IconSun as _A, IconMoonStars as WA, IconTerminal as Ur, IconSearch as _e, IconAlertCircle as Hr, IconDots as ZA, IconChevronRight as gA, IconChevronDown as Yr, IconX as er, IconChevronLeft as qr, IconHome2 as jr, IconDashboard as Xr, IconUsers as Jr, IconListSearch as Ar, IconUserPlus as _r, IconNews as Wr, IconFilePlus as Zr, IconSettings as et } from "@tabler/icons-react";
8
+ import { useArchbaseAppContext as bA, getI18nextInstance as ne, useArchbaseTranslation as mA, archbaseI18next as Re, useArchbaseValidator as At, ARCHBASE_IOC_API_TYPE as rt } from "@archbase/core";
9
+ import { BRFlag as He, USFlag as rr, ESFlag as uA, VEFlag as tt, UYFlag as ot, SVFlag as nt, PYFlag as st, PEFlag as lt, PAFlag as at, NIFlag as it, MXFlag as ct, HNFlag as dt, GTFlag as ut, ECFlag as ht, DOFlag as ft, CUFlag as pt, CRFlag as gt, COFlag as bt, CLFlag as mt, BOFlag as yt, ARFlag as vt } from "mantine-flagpack";
10
+ import { spotlight as Ct, Spotlight as Ue } from "@mantine/spotlight";
11
+ import { useNavigate as qe, useLocation as je, matchPath as zA } from "react-router";
12
+ import { useLocation as Xe, useOutlet as wt, matchPath as St, Route as Ke, Routes as tr, useParams as or, useNavigationType as kt, UNSAFE_LocationContext as xt, useSearchParams as nr, useNavigate as It } from "react-router-dom";
13
+ import { useMediaQuery as Tt } from "usehooks-ts";
14
+ import { useArchbaseNavigateParams as Et, useArchbaseVisible as Rt, ArchbaseNotifications as Pt, ArchbaseAvatarEdit as Lt, ArchbaseEdit as sA } from "@archbase/components";
15
+ import { SubMenu as Mt, MenuItem as OA, menuClasses as te, Sidebar as sr, Menu as lr, sidebarClasses as ar } from "react-pro-sidebar";
16
+ import { createPortal as Dt } from "react-dom";
17
+ import Nt from "@rehooks/component-size";
18
+ import { ArchbaseAdvancedTabs as zt } from "@archbase/layout";
19
+ import { create as ir, useStore as Ot } from "zustand";
20
+ import { persist as $t } from "zustand/middleware";
21
+ import { useArchbaseStore as Qt, useArchbaseRemoteServiceApi as Kt, useArchbaseRemoteDataSource as Ft } from "@archbase/data";
22
+ import { ArchbaseFormModalTemplate as Vt } from "@archbase/template";
23
+ import { createStore as Gt } from "zustand/vanilla";
24
+ const rA = xe.createContext({}), Bt = ({
25
25
  navigationData: A,
26
26
  user: t,
27
27
  owner: o,
@@ -33,15 +33,15 @@ const rA = xe.createContext({}), Kt = ({
33
33
  onNavigationDataChange: i,
34
34
  initialSidebarCollapsed: h
35
35
  }) => {
36
- const [c, d] = ge(h), [u, p] = ge(!1), [C, b] = ge(() => a === !0), [m, g] = ge(null), f = _(!1), [I, T] = aA({
36
+ const [c, d] = ge(h), [u, p] = ge(!1), [v, b] = ge(() => a === !0), [m, g] = ge(null), f = Z(!1), [x, I] = aA({
37
37
  value: i !== void 0 ? A : void 0,
38
38
  defaultValue: a ? [] : A,
39
39
  finalValue: [],
40
40
  onChange: i
41
41
  });
42
42
  oe(() => {
43
- }, [I, a]);
44
- const { securityManager: L } = Er({
43
+ }, [x, a]);
44
+ const { securityManager: L } = Mr({
45
45
  resourceName: l?.navigationResourceName ? l.navigationResourceName : "ArchbaseAdvancedSidebar",
46
46
  resourceDescription: l?.navigationResourceDescription ? l.navigationResourceDescription : "archbase:Navegação",
47
47
  enableSecurity: a
@@ -56,31 +56,31 @@ const rA = xe.createContext({}), Kt = ({
56
56
  if (f.current)
57
57
  return;
58
58
  A.filter((P) => P.showInSidebar).forEach((P) => {
59
- L.registerAction(P.label, P.label), P?.links?.forEach((v) => L.registerAction(`${P.label} -> ${v.label}`, `${P.label} -> ${v.label}`));
59
+ L.registerAction(P.label, P.label), P?.links?.forEach((y) => L.registerAction(`${P.label} -> ${y.label}`, `${P.label} -> ${y.label}`));
60
60
  });
61
- const F = () => {
61
+ const V = () => {
62
62
  f.current = !0;
63
- const P = A.map((v) => ({
64
- ...v,
65
- disabled: !L.hasPermission(v.label),
66
- links: v.links && v.links.map((K) => {
67
- const E = L.hasPermission(`${v.label} -> ${K.label}`);
63
+ const P = A.map((y) => ({
64
+ ...y,
65
+ disabled: !L.hasPermission(y.label),
66
+ links: y.links && y.links.map((F) => {
67
+ const T = L.hasPermission(`${y.label} -> ${F.label}`);
68
68
  return {
69
- ...K,
70
- disabled: !E
69
+ ...F,
70
+ disabled: !T
71
71
  };
72
72
  })
73
73
  }));
74
- T(P), b(!1), g(null);
75
- }, U = !L.isLoading() && !L.isError();
74
+ I(P), b(!1), g(null);
75
+ }, Y = !L.isLoading() && !L.isError();
76
76
  if (L.isError()) {
77
77
  f.current = !0;
78
78
  const P = L.getError() || "Erro ao carregar permissões de navegação";
79
- g(P), b(!1), T(A);
79
+ g(P), b(!1), I(A);
80
80
  return;
81
81
  }
82
- if (U) {
83
- F();
82
+ if (Y) {
83
+ V();
84
84
  return;
85
85
  }
86
86
  b(!0), g(null);
@@ -89,22 +89,22 @@ const rA = xe.createContext({}), Kt = ({
89
89
  if (!O && L.isError()) {
90
90
  clearInterval(D), f.current = !0;
91
91
  const P = L.getError() || "Erro ao carregar permissões de navegação";
92
- g(P), b(!1), T(A);
92
+ g(P), b(!1), I(A);
93
93
  }
94
- }, 100), Q = setTimeout(() => {
95
- O || (clearInterval(D), b((P) => P && (f.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), T(A), !1)));
94
+ }, 100), K = setTimeout(() => {
95
+ O || (clearInterval(D), b((P) => P && (f.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), I(A), !1)));
96
96
  }, 3e3);
97
97
  return L.apply(() => {
98
- O || (clearInterval(D), clearTimeout(Q), F());
98
+ O || (clearInterval(D), clearTimeout(K), V());
99
99
  }), () => {
100
- O = !0, clearInterval(D), clearTimeout(Q);
100
+ O = !0, clearInterval(D), clearTimeout(K);
101
101
  };
102
- }, [t?.id, a, A, L, T]), /* @__PURE__ */ r(
102
+ }, [t?.id, a, A, L, I]), /* @__PURE__ */ r(
103
103
  rA.Provider,
104
104
  {
105
105
  value: {
106
- navigationData: I,
107
- setNavigationData: T,
106
+ navigationData: x,
107
+ setNavigationData: I,
108
108
  user: t,
109
109
  owner: o,
110
110
  company: e,
@@ -114,13 +114,13 @@ const rA = xe.createContext({}), Kt = ({
114
114
  hidden: u,
115
115
  setHidden: p,
116
116
  onNavigationDataChange: i,
117
- isLoadingPermissions: C,
117
+ isLoadingPermissions: v,
118
118
  permissionsError: m
119
119
  },
120
120
  children: s
121
121
  }
122
122
  );
123
- }, Rn = ({ children: A }) => /* @__PURE__ */ r(Ye, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: A }), Ft = () => {
123
+ }, Dn = ({ children: A }) => /* @__PURE__ */ r(Ye, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: A }), Ut = () => {
124
124
  const A = bA(), { colorScheme: t } = de(), o = t === "dark", [e, n] = ge(ne().language);
125
125
  oe(() => {
126
126
  const i = (h) => {
@@ -134,7 +134,7 @@ const rA = xe.createContext({}), Kt = ({
134
134
  if (!i)
135
135
  return /* @__PURE__ */ r(He, { size: 24 });
136
136
  if (i === "en" || i === "en-US")
137
- return /* @__PURE__ */ r(ZA, { size: 24 });
137
+ return /* @__PURE__ */ r(rr, { size: 24 });
138
138
  if (i === "pt-BR")
139
139
  return /* @__PURE__ */ r(He, { size: 24 });
140
140
  if (i.includes("es"))
@@ -143,41 +143,41 @@ const rA = xe.createContext({}), Kt = ({
143
143
  case "es-ES":
144
144
  return /* @__PURE__ */ r(uA, { size: 24 });
145
145
  case "es-AR":
146
- return /* @__PURE__ */ r(gt, { size: 24 });
146
+ return /* @__PURE__ */ r(vt, { size: 24 });
147
147
  case "es-BO":
148
- return /* @__PURE__ */ r(pt, { size: 24 });
148
+ return /* @__PURE__ */ r(yt, { size: 24 });
149
149
  case "es-CL":
150
- return /* @__PURE__ */ r(ft, { size: 24 });
150
+ return /* @__PURE__ */ r(mt, { size: 24 });
151
151
  case "es-CO":
152
- return /* @__PURE__ */ r(ht, { size: 24 });
152
+ return /* @__PURE__ */ r(bt, { size: 24 });
153
153
  case "es-CR":
154
- return /* @__PURE__ */ r(ut, { size: 24 });
154
+ return /* @__PURE__ */ r(gt, { size: 24 });
155
155
  case "es-CU":
156
- return /* @__PURE__ */ r(dt, { size: 24 });
156
+ return /* @__PURE__ */ r(pt, { size: 24 });
157
157
  case "es-DO":
158
- return /* @__PURE__ */ r(ct, { size: 24 });
158
+ return /* @__PURE__ */ r(ft, { size: 24 });
159
159
  case "es-EC":
160
- return /* @__PURE__ */ r(it, { size: 24 });
160
+ return /* @__PURE__ */ r(ht, { size: 24 });
161
161
  case "es-GT":
162
- return /* @__PURE__ */ r(at, { size: 24 });
162
+ return /* @__PURE__ */ r(ut, { size: 24 });
163
163
  case "es-HN":
164
- return /* @__PURE__ */ r(lt, { size: 24 });
164
+ return /* @__PURE__ */ r(dt, { size: 24 });
165
165
  case "es-MX":
166
- return /* @__PURE__ */ r(st, { size: 24 });
166
+ return /* @__PURE__ */ r(ct, { size: 24 });
167
167
  case "es-NI":
168
- return /* @__PURE__ */ r(nt, { size: 24 });
168
+ return /* @__PURE__ */ r(it, { size: 24 });
169
169
  case "es-PA":
170
- return /* @__PURE__ */ r(ot, { size: 24 });
170
+ return /* @__PURE__ */ r(at, { size: 24 });
171
171
  case "es-PE":
172
- return /* @__PURE__ */ r(tt, { size: 24 });
172
+ return /* @__PURE__ */ r(lt, { size: 24 });
173
173
  case "es-PY":
174
- return /* @__PURE__ */ r(rt, { size: 24 });
174
+ return /* @__PURE__ */ r(st, { size: 24 });
175
175
  case "es-SV":
176
- return /* @__PURE__ */ r(At, { size: 24 });
176
+ return /* @__PURE__ */ r(nt, { size: 24 });
177
177
  case "es-UY":
178
- return /* @__PURE__ */ r(et, { size: 24 });
178
+ return /* @__PURE__ */ r(ot, { size: 24 });
179
179
  case "es-VE":
180
- return /* @__PURE__ */ r(Zr, { size: 24 });
180
+ return /* @__PURE__ */ r(tt, { size: 24 });
181
181
  default:
182
182
  return /* @__PURE__ */ r(uA, { size: 24 });
183
183
  }
@@ -200,8 +200,8 @@ const rA = xe.createContext({}), Kt = ({
200
200
  /* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(De, { variant: "transparent", color: o ? "white" : "blue", title: ne().t("toggleLanguage"), children: s(e) }) }),
201
201
  /* @__PURE__ */ r(ie.Dropdown, { children: a() })
202
202
  ] });
203
- }, Vt = () => {
204
- const A = bA(), { colorScheme: t } = de(), { t: o, i18n: e } = mA(), n = (l) => l === "en" ? /* @__PURE__ */ r(ZA, { size: 24 }) : l === "pt-BR" ? /* @__PURE__ */ r(He, { size: 24 }) : l === "es" ? /* @__PURE__ */ r(uA, { size: 24 }) : /* @__PURE__ */ r(He, { size: 24 }), s = () => {
203
+ }, Ht = () => {
204
+ const A = bA(), { colorScheme: t } = de(), { t: o, i18n: e } = mA(), n = (l) => l === "en" ? /* @__PURE__ */ r(rr, { size: 24 }) : l === "pt-BR" ? /* @__PURE__ */ r(He, { size: 24 }) : l === "es" ? /* @__PURE__ */ r(uA, { size: 24 }) : /* @__PURE__ */ r(He, { size: 24 }), s = () => {
205
205
  if (A.languages)
206
206
  return A.languages.filter((l) => l).map((l) => /* @__PURE__ */ r(
207
207
  ie.Item,
@@ -235,7 +235,7 @@ const rA = xe.createContext({}), Kt = ({
235
235
  ) }),
236
236
  /* @__PURE__ */ r(ie.Dropdown, { children: s() })
237
237
  ] });
238
- }, Gt = ({
238
+ }, Yt = ({
239
239
  toggleColorScheme: A,
240
240
  sunColor: t = "white",
241
241
  moonColor: o = "blue"
@@ -250,24 +250,24 @@ const rA = xe.createContext({}), Kt = ({
250
250
  color: l ? t : o,
251
251
  onClick: () => a(),
252
252
  title: ne().t("archbase:toggleColorScheme"),
253
- children: l ? /* @__PURE__ */ r(jA, { size: "1.5rem" }) : /* @__PURE__ */ r(XA, { size: "1.5rem" })
253
+ children: l ? /* @__PURE__ */ r(_A, { size: "1.5rem" }) : /* @__PURE__ */ r(WA, { size: "1.5rem" })
254
254
  }
255
255
  );
256
- }, Bt = (A) => /* @__PURE__ */ r(Le, { gap: "sm", children: A.children });
257
- function Ut({ category: A, label: t, color: o, description: e, image: n, onClick: s }) {
256
+ }, qt = (A) => /* @__PURE__ */ r(Le, { gap: "sm", children: A.children });
257
+ function jt({ category: A, label: t, color: o, description: e, image: n, onClick: s }) {
258
258
  return /* @__PURE__ */ r(
259
259
  Ue.Action,
260
260
  {
261
261
  onClick: s,
262
262
  label: `${ne().t(t || "")}`,
263
263
  description: e ? ne().t(e) : void 0,
264
- leftSection: n ? /* @__PURE__ */ r(Je, { children: /* @__PURE__ */ r(Nr, { src: n, alt: ne().t(t || ""), width: 24, height: 24 }) }) : void 0,
264
+ leftSection: n ? /* @__PURE__ */ r(Je, { children: /* @__PURE__ */ r(Qr, { src: n, alt: ne().t(t || ""), width: 24, height: 24 }) }) : void 0,
265
265
  rightSection: A ? /* @__PURE__ */ r(pA, { color: o, size: "sm", children: ne().t(A) }) : void 0
266
266
  },
267
267
  t
268
268
  );
269
269
  }
270
- const Ht = ({ navigationData: A, color: t }) => {
270
+ const Xt = ({ navigationData: A, color: t }) => {
271
271
  const [o, e] = ge(""), n = qe(), { t: s } = mA(), a = ce(() => {
272
272
  const i = new Array();
273
273
  return A.forEach((h) => {
@@ -296,9 +296,9 @@ const Ht = ({ navigationData: A, color: t }) => {
296
296
  }, [A, n]), l = a.filter((i) => {
297
297
  const h = `${s(i.label || "")}`;
298
298
  return h && h.toLowerCase().includes(o.toLowerCase().trim());
299
- }).map((i) => /* @__PURE__ */ r(Ut, { ...i }, i.id));
299
+ }).map((i) => /* @__PURE__ */ r(jt, { ...i }, i.id));
300
300
  return /* @__PURE__ */ r(Pe, { children: a && a.length > 0 ? /* @__PURE__ */ R(Pe, { children: [
301
- /* @__PURE__ */ r(Me, { withinPortal: !0, withArrow: !0, label: `${s("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ r(Dr, { color: t, leftSection: /* @__PURE__ */ r(Fr, { size: "24px" }), onClick: () => bt.open() }) }),
301
+ /* @__PURE__ */ r(Me, { withinPortal: !0, withArrow: !0, label: `${s("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ r($r, { color: t, leftSection: /* @__PURE__ */ r(Ur, { size: "24px" }), onClick: () => Ct.open() }) }),
302
302
  /* @__PURE__ */ R(
303
303
  Ue.Root,
304
304
  {
@@ -312,7 +312,7 @@ const Ht = ({ navigationData: A, color: t }) => {
312
312
  }
313
313
  )
314
314
  ] }) : null });
315
- }, Yt = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAsLCwsMCw0ODg0SExETEhoYFhYYGiccHhweHCc8JSslJSslPDVANDA0QDVfSkJCSl9tXFdcbYR2doSnnqfa2v8BCwsLCwwLDQ4ODRITERMSGhgWFhgaJxweHB4cJzwlKyUlKyU8NUA0MDRANV9KQkJKX21cV1xthHZ2hKeep9ra///CABEIA7IDsgMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAAAwQFAgEH/9oACAEBAAAAAPoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHMMUfPg9de9ddSd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2tMtEqpQ6jTo6ZiVIQemtpVirAjCOrqCOjI0YIKDmtcOI0Nqj3GEdXFR0SSAMRJn0T+8EkmptiuyGqnEKOr5HJuhq0w8yi5L8x/5h4jufmNwhzDpkcxhIqPofY9BMyqKkgYeaGiD3OGd35jdEmIi9x3wkxDbX5TfnjImpz2GHmXPKKYJJNSa3hXZeUkYWaYcwBwseG3rTzeXmETLU9sPHiP60Gwvyu68rEYWaccwBwsxDb1p5xW5vMIuQzOHjO+poNh0GrsnKxGFmmHMK4WNDfRvY2+JMIuQzOHiu+py26ISLETRsLND9y4V0fNSDanjonc9sPGd9TQbDowEjTCTMRdfmGEmIbetD3szx0Tudhh4zv60Gw6RSI6aHCTSnmFMAhhUGosLx0T1qe2Hju/rQbDpVWZTVSRhJr0ce4wrKwqpr+teYRdPmOHjRH1NBsOmQxU1BocQ5r0ce4wGDCoNR+piTKjJczh4jvzN06rshqpphJlTk+RwCD+liRkh9zth4rxNTlt1CkR05ThJlTkwof8AmAQf0JIAqTTEWZJyTIb9SpEdOU4hzKtk2R/3xIqw9ddsPEeIc+qEivD0OW2IcZHy0O3+yLMAZJmd8Ekmp6rhzDLk2YwrqwqpqP8ATMZQj1dLk/FH+P8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwBhD//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AYQ//2Q==", Nn = ({
316
316
  userMenuItems: A,
317
317
  showUserMenuToggleColorScheme: t = !0,
318
318
  showUserMenuOptionsLabel: o = !0,
@@ -327,31 +327,31 @@ const Ht = ({ navigationData: A, color: t }) => {
327
327
  hideAutoHeaderActionsOnUserMenuBreakPoint: d,
328
328
  withDividerAfterUserMenuToggleColorScheme: u = !0,
329
329
  user: p,
330
- navigationData: C = [],
330
+ navigationData: v = [],
331
331
  logo: b,
332
332
  headerActions: m,
333
333
  styleLogo: g,
334
334
  showLanguageSelector: f = !1,
335
- sideBarHiddenBreakPoint: I,
336
- headerLeftContent: T,
335
+ sideBarHiddenBreakPoint: x,
336
+ headerLeftContent: I,
337
337
  toggleColorScheme: L,
338
- logoLeftSection: X,
339
- logoRightSection: F,
340
- showBurger: U = !0,
338
+ logoLeftSection: J,
339
+ logoRightSection: V,
340
+ showBurger: Y = !0,
341
341
  showCommands: M = !0,
342
342
  sunColor: O,
343
343
  moonColor: D,
344
- styles: Q
344
+ styles: K
345
345
  }) => {
346
- const P = me(), { colorScheme: v, toggleColorScheme: K } = de(), E = ve(rA), W = PA(
347
- `(max-width: ${I ? fe(I) : P.breakpoints.md})`
348
- ), G = PA(
346
+ const P = me(), { colorScheme: y, toggleColorScheme: F } = de(), T = ye(rA), ee = DA(
347
+ `(max-width: ${x ? fe(x) : P.breakpoints.md})`
348
+ ), U = DA(
349
349
  `(max-width: ${d ? fe(d) : P.breakpoints.md})`
350
350
  );
351
- let x = !1, V = !1;
352
- return i && (h = !G, c = !G, t = G, o = G, a = G, u = G, f && (V = !G, x = G)), /* @__PURE__ */ R(Pe, { children: [
351
+ let k = !1, G = !1;
352
+ return i && (h = !U, c = !U, t = U, o = U, a = U, u = U, f && (G = !U, k = U)), /* @__PURE__ */ R(Pe, { children: [
353
353
  /* @__PURE__ */ R(Ye, { style: { width: 300, height: 50 }, align: "center", children: [
354
- X,
354
+ J,
355
355
  /* @__PURE__ */ r(
356
356
  "img",
357
357
  {
@@ -363,26 +363,26 @@ const Ht = ({ navigationData: A, color: t }) => {
363
363
  src: b
364
364
  }
365
365
  ),
366
- F
366
+ V
367
367
  ] }),
368
- U && /* @__PURE__ */ r(
369
- zr,
368
+ Y && /* @__PURE__ */ r(
369
+ Kr,
370
370
  {
371
- opened: E.hidden ? E.hidden : !1,
372
- onClick: () => E.setHidden(!E.hidden),
371
+ opened: T.hidden ? T.hidden : !1,
372
+ onClick: () => T.setHidden(!T.hidden),
373
373
  size: "sm",
374
374
  color: P.colors.gray[7],
375
375
  mx: { base: "xs", xs: "lg", sm: "xl" },
376
- display: W ? "" : "none"
376
+ display: ee ? "" : "none"
377
377
  }
378
378
  ),
379
- /* @__PURE__ */ r("div", { children: M && /* @__PURE__ */ r(Ht, { navigationData: C }) }),
380
- /* @__PURE__ */ r(B, { style: { flex: 1 }, children: T }),
381
- /* @__PURE__ */ R(Bt, { children: [
379
+ /* @__PURE__ */ r("div", { children: M && /* @__PURE__ */ r(Xt, { navigationData: v }) }),
380
+ /* @__PURE__ */ r(H, { style: { flex: 1 }, children: I }),
381
+ /* @__PURE__ */ R(qt, { children: [
382
382
  h && m,
383
- c && /* @__PURE__ */ r(Gt, { toggleColorScheme: L, sunColor: O, moonColor: D }),
384
- V && /* @__PURE__ */ r(Ft, {}),
385
- /* @__PURE__ */ R(ie, { shadow: "md", width: 200, position: "bottom-end", styles: Q?.menu, children: [
383
+ c && /* @__PURE__ */ r(Yt, { toggleColorScheme: L, sunColor: O, moonColor: D }),
384
+ G && /* @__PURE__ */ r(Ut, {}),
385
+ /* @__PURE__ */ R(ie, { shadow: "md", width: 200, position: "bottom-end", styles: K?.menu, children: [
386
386
  /* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ R("div", { children: [
387
387
  /* @__PURE__ */ r(
388
388
  iA,
@@ -390,7 +390,7 @@ const Ht = ({ navigationData: A, color: t }) => {
390
390
  style: { cursor: "pointer" },
391
391
  radius: "xl",
392
392
  ml: 8,
393
- src: p ? p.photo : Yt,
393
+ src: p ? p.photo : Jt,
394
394
  alt: p ? p.displayName : ""
395
395
  }
396
396
  ),
@@ -422,12 +422,12 @@ const Ht = ({ navigationData: A, color: t }) => {
422
422
  t && /* @__PURE__ */ r(
423
423
  ie.Item,
424
424
  {
425
- leftSection: v === "dark" ? /* @__PURE__ */ r(jA, { size: e }) : /* @__PURE__ */ r(XA, { size: e }),
426
- onClick: L || K,
425
+ leftSection: y === "dark" ? /* @__PURE__ */ r(_A, { size: e }) : /* @__PURE__ */ r(WA, { size: e }),
426
+ onClick: L || F,
427
427
  children: `${ne().t("archbase:toggleColorScheme")}`
428
428
  }
429
429
  ),
430
- x && /* @__PURE__ */ r(Vt, {}),
430
+ k && /* @__PURE__ */ r(Ht, {}),
431
431
  u && /* @__PURE__ */ r(ie.Divider, {}),
432
432
  n && s
433
433
  ] })
@@ -435,12 +435,12 @@ const Ht = ({ navigationData: A, color: t }) => {
435
435
  ] })
436
436
  ] });
437
437
  };
438
- function NA(A, t, o, e, n, s, a, l, i, h) {
438
+ function $A(A, t, o, e, n, s, a, l, i, h) {
439
439
  const c = s ? A.colorScheme === "dark" ? A.colors[A.primaryColor][8] : A.colors[A.primaryColor][7] : void 0, d = s ? (A.colorScheme === "dark", A.colors[A.primaryColor][0]) : void 0, u = A.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", p = "0.5";
440
440
  if (e.links) {
441
441
  if (!(e.disabled && e.hideDisabledItem))
442
442
  return /* @__PURE__ */ r(Me, { disabled: !t, label: Re.t(e.label), children: /* @__PURE__ */ r(
443
- Et,
443
+ Mt,
444
444
  {
445
445
  rootStyles: {
446
446
  fontSize: "16px",
@@ -472,17 +472,17 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
472
472
  defaultOpen: !e.disabled,
473
473
  label: t ? "" : Re.t(e.label),
474
474
  disabled: e.disabled,
475
- children: e.links && e.links.filter((C) => C.showInSidebar === !0 && (!C.disabled || !C.hideDisabledItem)).map((C, b) => /* @__PURE__ */ r(
476
- DA,
475
+ children: e.links && e.links.filter((v) => v.showInSidebar === !0 && (!v.disabled || !v.hideDisabledItem)).map((v, b) => /* @__PURE__ */ r(
476
+ OA,
477
477
  {
478
- onClick: () => o(C),
478
+ onClick: () => o(v),
479
479
  rootStyles: {
480
480
  [`.${te.icon}`]: {
481
481
  background: c,
482
- color: l && C.link === a ? "white" : d
482
+ color: l && v.link === a ? "white" : d
483
483
  },
484
484
  [`.${te.label}`]: {
485
- color: l && C.link === a ? "white" : i
485
+ color: l && v.link === a ? "white" : i
486
486
  },
487
487
  [`.${te.button}`]: {
488
488
  paddingLeft: "40px !important",
@@ -506,11 +506,11 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
506
506
  }
507
507
  }
508
508
  },
509
- id: C.label,
510
- icon: C.icon,
511
- disabled: typeof C.disabled == "function" ? C.disabled() : C.disabled,
512
- active: l && C.link === a,
513
- children: Re.t(C.label)
509
+ id: v.label,
510
+ icon: v.icon,
511
+ disabled: typeof v.disabled == "function" ? v.disabled() : v.disabled,
512
+ active: l && v.link === a,
513
+ children: Re.t(v.label)
514
514
  },
515
515
  b
516
516
  ))
@@ -519,7 +519,7 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
519
519
  ) });
520
520
  } else if (e.showInSidebar && (!e.disabled || !e.hideDisabledItem))
521
521
  return /* @__PURE__ */ r(Me, { disabled: !t, label: Re.t(e.label), children: /* @__PURE__ */ r(
522
- DA,
522
+ OA,
523
523
  {
524
524
  rootStyles: {
525
525
  fontSize: "16px",
@@ -562,7 +562,7 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
562
562
  ) });
563
563
  return null;
564
564
  }
565
- const qt = (A) => ({
565
+ const _t = (A) => ({
566
566
  light: {
567
567
  sidebar: {
568
568
  backgroundColor: "#ffffff",
@@ -597,8 +597,8 @@ const qt = (A) => ({
597
597
  }
598
598
  }
599
599
  }
600
- }), jt = (A, t, o, e, n, s, a, l, i, h, c) => {
601
- const d = qt(), u = s ? {} : { padding: o ? `0 ${(n - e) / 2}px` : "0 20px" }, p = s ? {} : { display: "none" }, C = a ? A === "dark" ? t.colors[t.primaryColor][8] : t.colors[t.primaryColor][0] : void 0;
600
+ }), Wt = (A, t, o, e, n, s, a, l, i, h, c) => {
601
+ const d = _t(), u = s ? {} : { padding: o ? `0 ${(n - e) / 2}px` : "0 20px" }, p = s ? {} : { display: "none" }, v = a ? A === "dark" ? t.colors[t.primaryColor][8] : t.colors[t.primaryColor][0] : void 0;
602
602
  return {
603
603
  root: {
604
604
  fontSize: "14px",
@@ -607,7 +607,7 @@ const qt = (A) => ({
607
607
  color: t.white
608
608
  },
609
609
  icon: {
610
- background: C,
610
+ background: v,
611
611
  color: c,
612
612
  [`&.${te.disabled}`]: {
613
613
  color: d[A].menu.disabled.color
@@ -643,13 +643,13 @@ const qt = (A) => ({
643
643
  })
644
644
  };
645
645
  };
646
- function Xt(A, t, o, e, n, s, a, l, i, h, c) {
646
+ function Zt(A, t, o, e, n, s, a, l, i, h, c) {
647
647
  return /* @__PURE__ */ R(
648
- tr,
648
+ sr,
649
649
  {
650
650
  ref: A,
651
651
  rootStyles: {
652
- [`.${nr.container}`]: {
652
+ [`.${ar.container}`]: {
653
653
  position: "absolute",
654
654
  background: c,
655
655
  overflowX: "hidden",
@@ -664,20 +664,20 @@ function Xt(A, t, o, e, n, s, a, l, i, h, c) {
664
664
  collapsedWidth: `${fe(e)}px`,
665
665
  children: [
666
666
  i && /* @__PURE__ */ r(Pe, { children: i }),
667
- /* @__PURE__ */ r(ze, { style: { overflowY: "auto", overflowX: "hidden", height: l }, children: /* @__PURE__ */ r(or, { rootStyles: { background: c }, menuItemStyles: n, closeOnClick: !0, children: s && /* @__PURE__ */ r(Pe, { children: s }) }) }),
667
+ /* @__PURE__ */ r(ze, { style: { overflowY: "auto", overflowX: "hidden", height: l }, children: /* @__PURE__ */ r(lr, { rootStyles: { background: c }, menuItemStyles: n, closeOnClick: !0, children: s && /* @__PURE__ */ r(Pe, { children: s }) }) }),
668
668
  h && /* @__PURE__ */ r(Pe, { children: h })
669
669
  ]
670
670
  }
671
671
  );
672
672
  }
673
- function zA({
673
+ function QA({
674
674
  itemCount: A = 8,
675
675
  collapsed: t = !1,
676
676
  backgroundColor: o
677
677
  }) {
678
678
  const e = me(), { colorScheme: n } = de(), s = o ?? (n === "dark" ? e.colors.dark[7] : e.white);
679
679
  return t ? /* @__PURE__ */ r(
680
- J,
680
+ _,
681
681
  {
682
682
  gap: "sm",
683
683
  p: "xs",
@@ -698,7 +698,7 @@ function zA({
698
698
  ))
699
699
  }
700
700
  ) : /* @__PURE__ */ r(
701
- J,
701
+ _,
702
702
  {
703
703
  gap: "xs",
704
704
  p: "md",
@@ -729,7 +729,7 @@ function zA({
729
729
  }
730
730
  );
731
731
  }
732
- function Jt({
732
+ function eo({
733
733
  groupCount: A = 3,
734
734
  width: t = "80px",
735
735
  height: o = "100%",
@@ -737,7 +737,7 @@ function Jt({
737
737
  }) {
738
738
  const n = me(), { colorScheme: s } = de(), a = e ?? (s === "dark" ? n.colors.dark[6] : n.colors.gray[2]);
739
739
  return /* @__PURE__ */ r(
740
- J,
740
+ _,
741
741
  {
742
742
  gap: "md",
743
743
  p: "xs",
@@ -747,7 +747,7 @@ function Jt({
747
747
  height: o,
748
748
  backgroundColor: a
749
749
  },
750
- children: Array.from({ length: A }).map((l, i) => /* @__PURE__ */ R(J, { gap: 4, align: "center", children: [
750
+ children: Array.from({ length: A }).map((l, i) => /* @__PURE__ */ R(_, { gap: 4, align: "center", children: [
751
751
  /* @__PURE__ */ r(
752
752
  pe,
753
753
  {
@@ -769,18 +769,18 @@ function Jt({
769
769
  }
770
770
  );
771
771
  }
772
- function OA({
772
+ function KA({
773
773
  message: A,
774
774
  backgroundColor: t,
775
775
  children: o
776
776
  }) {
777
777
  const e = me(), { colorScheme: n } = de(), s = t ?? (n === "dark" ? e.colors.dark[7] : e.white), a = n === "dark" ? e.colors.red[4] : e.colors.red[6];
778
- return o ? /* @__PURE__ */ r(Pe, { children: o }) : /* @__PURE__ */ r(Je, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ R(J, { align: "center", gap: "xs", children: [
779
- /* @__PURE__ */ r(Vr, { size: 32, color: a }),
778
+ return o ? /* @__PURE__ */ r(Pe, { children: o }) : /* @__PURE__ */ r(Je, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ R(_, { align: "center", gap: "xs", children: [
779
+ /* @__PURE__ */ r(Hr, { size: 32, color: a }),
780
780
  /* @__PURE__ */ r(Te, { size: "sm", c: a, ta: "center", children: A })
781
781
  ] }) });
782
782
  }
783
- function _t({
783
+ function Ao({
784
784
  navigationData: A,
785
785
  sidebarGroupWidth: t = "80px",
786
786
  sidebarWidth: o = "360px",
@@ -795,56 +795,56 @@ function _t({
795
795
  groupLabelDarkColor: d,
796
796
  groupLabelLightColor: u,
797
797
  collapsed: p,
798
- onMenuItemClick: C,
798
+ onMenuItemClick: v,
799
799
  onClickActionIcon: b,
800
800
  withBorder: m = !1,
801
801
  showGroupLabels: g = !0,
802
802
  theme: f,
803
- sidebarRef: I,
804
- defaultGroupIcon: T,
803
+ sidebarRef: x,
804
+ defaultGroupIcon: I,
805
805
  selectedGroupName: L,
806
- sideBarHeaderContent: X,
807
- iconsWithBackground: F = !1,
808
- menuItemHeight: U = 40,
806
+ sideBarHeaderContent: J,
807
+ iconsWithBackground: V = !1,
808
+ menuItemHeight: Y = 40,
809
809
  highlightActiveMenuItem: M = !0,
810
810
  backgroundDarkColor: O,
811
811
  backgroundLightColor: D,
812
- textDarkColor: Q,
812
+ textDarkColor: K,
813
813
  textLightColor: P,
814
- iconDarkColor: v,
815
- iconLightColor: K,
816
- collapsedSubmenuWidth: E,
817
- isLoading: W = !1,
818
- loadingError: G,
819
- loadingComponent: x,
820
- errorComponent: V,
821
- skeletonItemCount: se = 8,
814
+ iconDarkColor: y,
815
+ iconLightColor: F,
816
+ collapsedSubmenuWidth: T,
817
+ isLoading: ee = !1,
818
+ loadingError: U,
819
+ loadingComponent: k,
820
+ errorComponent: G,
821
+ skeletonItemCount: Ae = 8,
822
822
  skeletonGroupCount: Ce = 3
823
823
  }) {
824
- const [le, be] = ge(""), we = bA(), Se = je(), { colorScheme: w } = de(), k = w === "dark" ? O ?? f.colors.dark[7] : D ?? f.white, N = s || (w === "dark" ? f.colors[f.primaryColor][8] : f.colors[f.primaryColor][0]), y = w === "dark" ? Q ?? "var(--mantine-color-text)" : P ?? "var(--mantine-color-text)", H = w === "dark" ? v ?? f.colors[f.primaryColor][0] : K ?? f.colors[f.primaryColor][7], Y = ce(() => {
824
+ const [se, be] = ge(""), we = bA(), Se = je(), { colorScheme: w } = de(), S = w === "dark" ? O ?? f.colors.dark[7] : D ?? f.white, $ = s || (w === "dark" ? f.colors[f.primaryColor][8] : f.colors[f.primaryColor][0]), N = w === "dark" ? K ?? "var(--mantine-color-text)" : P ?? "var(--mantine-color-text)", B = w === "dark" ? y ?? f.colors[f.primaryColor][0] : F ?? f.colors[f.primaryColor][7], E = ce(() => {
825
825
  const re = /* @__PURE__ */ new Set();
826
- return A.forEach((q) => {
827
- if (q.showInSidebar && (!q.disabled || !q.hideDisabledItem)) {
828
- let ye = !1;
829
- q.group || (q.group = {
830
- icon: T || /* @__PURE__ */ r(JA, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
826
+ return A.forEach((X) => {
827
+ if (X.showInSidebar && (!X.disabled || !X.hideDisabledItem)) {
828
+ let ke = !1;
829
+ X.group || (X.group = {
830
+ icon: I || /* @__PURE__ */ r(ZA, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
831
831
  label: "Default",
832
832
  name: "Default",
833
833
  hint: "Default",
834
834
  indexOrder: 0
835
- }), re.forEach(($) => {
836
- $.name === q.group.name && (ye = !0);
837
- }), ye || re.add({
838
- name: q.group.name,
839
- indexOrder: q.group.indexOrder,
835
+ }), re.forEach((Q) => {
836
+ Q.name === X.group.name && (ke = !0);
837
+ }), ke || re.add({
838
+ name: X.group.name,
839
+ indexOrder: X.group.indexOrder,
840
840
  component: /* @__PURE__ */ r(
841
841
  Me,
842
842
  {
843
- content: q.group.hint,
844
- label: q.group.label,
843
+ content: X.group.hint,
844
+ label: X.group.label,
845
845
  disabled: g,
846
846
  children: /* @__PURE__ */ R(
847
- J,
847
+ _,
848
848
  {
849
849
  gap: "2px",
850
850
  style: {
@@ -858,12 +858,12 @@ function _t({
858
858
  De,
859
859
  {
860
860
  size: "48px",
861
- variant: q.group.name === le ? "filled" : l ? "subtle" : "light",
862
- color: q.group.name === le ? N : a,
861
+ variant: X.group.name === se ? "filled" : l ? "subtle" : "light",
862
+ color: X.group.name === se ? $ : a,
863
863
  onClick: () => {
864
- be(($) => (b && b($, q.group.name), q.group.name === $ && !i ? "" : q.group.name));
864
+ be((Q) => (b && b(Q, X.group.name), X.group.name === Q && !i ? "" : X.group.name));
865
865
  },
866
- children: q.group.icon
866
+ children: X.group.icon
867
867
  }
868
868
  ),
869
869
  g ? /* @__PURE__ */ r(
@@ -871,61 +871,61 @@ function _t({
871
871
  {
872
872
  size: "xs",
873
873
  c: w === "dark" ? d || f.colors[f.primaryColor][2] : u || f.colors[f.primaryColor][2],
874
- children: q.group.label
874
+ children: X.group.label
875
875
  }
876
876
  ) : !1
877
877
  ]
878
878
  }
879
879
  )
880
880
  },
881
- q.group.name
881
+ X.group.name
882
882
  )
883
883
  });
884
884
  }
885
- }), re.forEach((q) => {
886
- const ye = A.filter(($) => $.showInSidebar === !0 && (!$.disabled || !$.hideDisabledItem) && $.group && $.group.name === q.name);
887
- q.links = ye.map(($, ue) => NA(f, p, C, $, ue, F, Se.pathname, M, y, E));
888
- }), [...re].sort((q, ye) => q.indexOrder - ye.indexOrder);
889
- }, [A, le, w, p, we.selectedCompany, M, Se]), z = jt(
885
+ }), re.forEach((X) => {
886
+ const ke = A.filter((Q) => Q.showInSidebar === !0 && (!Q.disabled || !Q.hideDisabledItem) && Q.group && Q.group.name === X.name);
887
+ X.links = ke.map((Q, le) => $A(f, p, v, Q, le, V, Se.pathname, M, N, T));
888
+ }), [...re].sort((X, ke) => X.indexOrder - ke.indexOrder);
889
+ }, [A, se, w, p, we.selectedCompany, M, Se]), z = Wt(
890
890
  w,
891
891
  f,
892
892
  p,
893
893
  35,
894
894
  Number(fe(n)),
895
- Y.length > 1,
896
- F,
897
- U,
898
- k,
899
- y,
900
- H
901
- ), j = p || le === "" ? "0px" : `calc(${o} - ${t})`, Z = l || (w === "dark" ? f.colors[f.primaryColor][6] : f.colors[f.primaryColor][7]), ke = S(() => {
902
- L && Y.map((re) => re.name).includes(L) ? be(L) : Y.length > 1 && be("Default");
895
+ E.length > 1,
896
+ V,
897
+ Y,
898
+ S,
899
+ N,
900
+ B
901
+ ), j = p || se === "" ? "0px" : `calc(${o} - ${t})`, he = l || (w === "dark" ? f.colors[f.primaryColor][6] : f.colors[f.primaryColor][7]), Ie = C(() => {
902
+ L && E.map((re) => re.name).includes(L) ? be(L) : E.length > 1 && be("Default");
903
903
  }, []);
904
904
  oe(() => {
905
- ke();
905
+ Ie();
906
906
  }, []), oe(() => {
907
- p ? be("") : le === "" && ke();
907
+ p ? be("") : se === "" && Ie();
908
908
  }, [p]);
909
- const ee = () => G ? V || /* @__PURE__ */ r(
910
- OA,
909
+ const q = () => U ? G || /* @__PURE__ */ r(
910
+ KA,
911
911
  {
912
- message: G,
913
- backgroundColor: k
912
+ message: U,
913
+ backgroundColor: S
914
914
  }
915
- ) : W ? x || /* @__PURE__ */ r(
916
- zA,
915
+ ) : ee ? k || /* @__PURE__ */ r(
916
+ QA,
917
917
  {
918
- itemCount: se,
918
+ itemCount: Ae,
919
919
  collapsed: p,
920
- backgroundColor: k
920
+ backgroundColor: S
921
921
  }
922
- ) : le !== "" ? /* @__PURE__ */ r(
923
- tr,
922
+ ) : se !== "" ? /* @__PURE__ */ r(
923
+ sr,
924
924
  {
925
- ref: I,
925
+ ref: x,
926
926
  rootStyles: {
927
- [`.${nr.container}`]: {
928
- background: k,
927
+ [`.${ar.container}`]: {
928
+ background: S,
929
929
  overflowX: "hidden",
930
930
  overflowY: "hidden",
931
931
  left: 0,
@@ -945,75 +945,75 @@ function _t({
945
945
  height: "100%",
946
946
  width: j
947
947
  },
948
- children: /* @__PURE__ */ r(or, { rootStyles: { background: k }, menuItemStyles: z, closeOnClick: !0, children: Y.find((re) => re.name === le)?.links || null })
948
+ children: /* @__PURE__ */ r(lr, { rootStyles: { background: S }, menuItemStyles: z, closeOnClick: !0, children: E.find((re) => re.name === se)?.links || null })
949
949
  }
950
950
  )
951
951
  }
952
- ) : null, Ie = () => W && Y.length === 0 ? /* @__PURE__ */ r(
953
- Jt,
952
+ ) : null, ve = () => ee && E.length === 0 ? /* @__PURE__ */ r(
953
+ eo,
954
954
  {
955
955
  groupCount: Ce,
956
956
  width: t,
957
957
  height: e
958
958
  }
959
- ) : Y.length !== 0 ? /* @__PURE__ */ r(
960
- J,
959
+ ) : E.length !== 0 ? /* @__PURE__ */ r(
960
+ _,
961
961
  {
962
962
  gap: "4px",
963
963
  style: {
964
964
  height: e,
965
965
  width: t,
966
966
  padding: "4px",
967
- backgroundColor: Z
967
+ backgroundColor: he
968
968
  },
969
- children: Y.map((re) => /* @__PURE__ */ r(xe.Fragment, { children: re.component }, re.name))
969
+ children: E.map((re) => /* @__PURE__ */ r(xe.Fragment, { children: re.component }, re.name))
970
970
  }
971
- ) : null, Ae = () => G ? V || /* @__PURE__ */ r(
972
- OA,
971
+ ) : null, W = () => U ? G || /* @__PURE__ */ r(
972
+ KA,
973
973
  {
974
- message: G,
975
- backgroundColor: k
974
+ message: U,
975
+ backgroundColor: S
976
976
  }
977
- ) : W ? x || /* @__PURE__ */ r(
978
- zA,
977
+ ) : ee ? k || /* @__PURE__ */ r(
978
+ QA,
979
979
  {
980
- itemCount: se,
980
+ itemCount: Ae,
981
981
  collapsed: p,
982
- backgroundColor: k
982
+ backgroundColor: S
983
983
  }
984
984
  ) : A.map(
985
- (re, Ee) => NA(f, p, C, re, Ee, F, Se.pathname, M, y, E)
985
+ (re, Ee) => $A(f, p, v, re, Ee, V, Se.pathname, M, N, T)
986
986
  );
987
- return /* @__PURE__ */ r(Pe, { children: Y.length == 1 ? Xt(
988
- I,
987
+ return /* @__PURE__ */ r(Pe, { children: E.length == 1 ? Zt(
988
+ x,
989
989
  p,
990
990
  o,
991
991
  n,
992
992
  z,
993
- Ae(),
993
+ W(),
994
994
  i,
995
995
  e,
996
- X,
996
+ J,
997
997
  c,
998
- k
998
+ S
999
999
  ) : /* @__PURE__ */ R(Ye, { direction: "column", w: p ? n : o, children: [
1000
- /* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: X }),
1001
- /* @__PURE__ */ R(Or, { withBorder: m, h: e, w: "100%", display: "flex", children: [
1002
- Ie(),
1003
- ee()
1000
+ /* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: J }),
1001
+ /* @__PURE__ */ R(Fr, { withBorder: m, h: e, w: "100%", display: "flex", children: [
1002
+ ve(),
1003
+ q()
1004
1004
  ] }),
1005
1005
  /* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: c })
1006
1006
  ] }) });
1007
1007
  }
1008
1008
  const yA = Ne(null);
1009
1009
  function vA() {
1010
- const A = ve(yA);
1010
+ const A = ye(yA);
1011
1011
  if (!A)
1012
1012
  throw new Error("useSidebar must be used within a SidebarProvider");
1013
1013
  return A;
1014
1014
  }
1015
- function Ln() {
1016
- return ve(yA);
1015
+ function zn() {
1016
+ return ye(yA);
1017
1017
  }
1018
1018
  function CA({
1019
1019
  children: A,
@@ -1029,7 +1029,7 @@ function CA({
1029
1029
  highlightActiveItem: c = !0,
1030
1030
  onMenuItemClick: d
1031
1031
  }) {
1032
- const u = je(), p = qe(), [C, b] = aA({
1032
+ const u = je(), p = qe(), [v, b] = aA({
1033
1033
  value: n,
1034
1034
  defaultValue: e,
1035
1035
  finalValue: !1,
@@ -1039,60 +1039,60 @@ function CA({
1039
1039
  defaultValue: a,
1040
1040
  finalValue: "",
1041
1041
  onChange: i
1042
- }), [f, I] = ge(""), [T, L] = ge(() => {
1043
- const v = /* @__PURE__ */ new Set();
1044
- return t.forEach((K, E) => {
1045
- K.initiallyOpened && K.links && K.links.length > 0 && v.add(`group-${E}`);
1046
- }), v;
1047
- }), X = u.pathname, F = S(() => {
1048
- b(!C);
1049
- }, [C, b]), U = S((v) => {
1050
- L((K) => {
1051
- const E = new Set(K);
1052
- return E.has(v) ? E.delete(v) : E.add(v), E;
1042
+ }), [f, x] = ge(""), [I, L] = ge(() => {
1043
+ const y = /* @__PURE__ */ new Set();
1044
+ return t.forEach((F, T) => {
1045
+ F.initiallyOpened && F.links && F.links.length > 0 && y.add(`group-${T}`);
1046
+ }), y;
1047
+ }), J = u.pathname, V = C(() => {
1048
+ b(!v);
1049
+ }, [v, b]), Y = C((y) => {
1050
+ L((F) => {
1051
+ const T = new Set(F);
1052
+ return T.has(y) ? T.delete(y) : T.add(y), T;
1053
1053
  });
1054
- }, []), M = S((v) => {
1055
- L((K) => {
1056
- const E = new Set(K);
1057
- return E.add(v), E;
1054
+ }, []), M = C((y) => {
1055
+ L((F) => {
1056
+ const T = new Set(F);
1057
+ return T.add(y), T;
1058
1058
  });
1059
- }, []), O = S((v) => {
1060
- L((K) => {
1061
- const E = new Set(K);
1062
- return E.delete(v), E;
1059
+ }, []), O = C((y) => {
1060
+ L((F) => {
1061
+ const T = new Set(F);
1062
+ return T.delete(y), T;
1063
1063
  });
1064
1064
  }, []), D = ce(() => {
1065
1065
  if (!f.trim())
1066
1066
  return t;
1067
- const v = f.toLowerCase().trim(), K = (E) => E.reduce((W, G) => {
1068
- const x = G.label.toLowerCase().includes(v), V = G.links ? K(G.links) : [];
1069
- return (x || V.length > 0) && W.push({
1070
- ...G,
1071
- links: V.length > 0 ? V : G.links,
1067
+ const y = f.toLowerCase().trim(), F = (T) => T.reduce((ee, U) => {
1068
+ const k = U.label.toLowerCase().includes(y), G = U.links ? F(U.links) : [];
1069
+ return (k || G.length > 0) && ee.push({
1070
+ ...U,
1071
+ links: G.length > 0 ? G : U.links,
1072
1072
  // Expandir automaticamente quando há match em subitens
1073
- initiallyOpened: V.length > 0 || x
1074
- }), W;
1073
+ initiallyOpened: G.length > 0 || k
1074
+ }), ee;
1075
1075
  }, []);
1076
- return K(t);
1077
- }, [t, f]), Q = S(
1078
- (v) => {
1079
- d && d(v), v.link && (v.routeParams ? p(v.link, { state: v.routeParams }) : p(v.link)), v.redirect && p(v.redirect);
1076
+ return F(t);
1077
+ }, [t, f]), K = C(
1078
+ (y) => {
1079
+ d && d(y), y.link && (y.routeParams ? p(y.link, { state: y.routeParams }) : p(y.link)), y.redirect && p(y.redirect);
1080
1080
  },
1081
1081
  [p, d]
1082
1082
  ), P = ce(
1083
1083
  () => ({
1084
- collapsed: C,
1084
+ collapsed: v,
1085
1085
  setCollapsed: b,
1086
- toggleCollapsed: F,
1086
+ toggleCollapsed: V,
1087
1087
  activeGroup: m,
1088
1088
  setActiveGroup: g,
1089
- activeItemPath: X,
1090
- navigateToItem: Q,
1089
+ activeItemPath: J,
1090
+ navigateToItem: K,
1091
1091
  searchQuery: f,
1092
- setSearchQuery: I,
1092
+ setSearchQuery: x,
1093
1093
  filteredItems: D,
1094
- expandedGroups: T,
1095
- toggleGroup: U,
1094
+ expandedGroups: I,
1095
+ toggleGroup: Y,
1096
1096
  expandGroup: M,
1097
1097
  collapseGroup: O,
1098
1098
  variant: o,
@@ -1100,17 +1100,17 @@ function CA({
1100
1100
  highlightActiveItem: c
1101
1101
  }),
1102
1102
  [
1103
- C,
1103
+ v,
1104
1104
  b,
1105
- F,
1105
+ V,
1106
1106
  m,
1107
1107
  g,
1108
- X,
1109
- Q,
1108
+ J,
1109
+ K,
1110
1110
  f,
1111
1111
  D,
1112
- T,
1113
- U,
1112
+ I,
1113
+ Y,
1114
1114
  M,
1115
1115
  O,
1116
1116
  o,
@@ -1124,7 +1124,7 @@ function wA({
1124
1124
  navigationData: A,
1125
1125
  onMenuItemClick: t
1126
1126
  }) {
1127
- const o = je(), e = qe(), n = o.pathname, s = S(
1127
+ const o = je(), e = qe(), n = o.pathname, s = C(
1128
1128
  (d) => {
1129
1129
  for (const u of d) {
1130
1130
  if (u.link === n)
@@ -1138,16 +1138,16 @@ function wA({
1138
1138
  return null;
1139
1139
  },
1140
1140
  [n]
1141
- ), a = ce(() => s(A), [s, A]), l = S(
1141
+ ), a = ce(() => s(A), [s, A]), l = C(
1142
1142
  (d) => d.link === n,
1143
1143
  [n]
1144
- ), i = S(
1144
+ ), i = C(
1145
1145
  (d) => d.link === n ? !0 : d.links ? d.links.some((u) => i(u)) : !1,
1146
1146
  [n]
1147
1147
  ), h = ce(() => {
1148
- const d = [], u = (p, C) => {
1148
+ const d = [], u = (p, v) => {
1149
1149
  for (const b of p) {
1150
- const m = [...C, b];
1150
+ const m = [...v, b];
1151
1151
  if (b.link === n)
1152
1152
  return d.push(...m), !0;
1153
1153
  if (b.links && u(b.links, m))
@@ -1156,7 +1156,7 @@ function wA({
1156
1156
  return !1;
1157
1157
  };
1158
1158
  return u(A, []), d;
1159
- }, [A, n]), c = S(
1159
+ }, [A, n]), c = C(
1160
1160
  (d) => {
1161
1161
  (typeof d.disabled == "function" ? d.disabled() : d.disabled) || (t && t(d), d.link && (d.routeParams ? e(d.link, { state: d.routeParams }) : e(d.link)), d.redirect && e(d.redirect));
1162
1162
  },
@@ -1171,11 +1171,11 @@ function wA({
1171
1171
  activeBreadcrumb: h
1172
1172
  };
1173
1173
  }
1174
- function Wt({
1174
+ function ro({
1175
1175
  navigationData: A,
1176
1176
  onSearch: t
1177
1177
  }) {
1178
- const [o, e] = ge(""), n = S((h) => h.reduce((c, d) => {
1178
+ const [o, e] = ge(""), n = C((h) => h.reduce((c, d) => {
1179
1179
  let u = 1;
1180
1180
  return d.links && (u += n(d.links)), c + u;
1181
1181
  }, 0), []), s = ce(() => {
@@ -1184,8 +1184,8 @@ function Wt({
1184
1184
  const h = o.toLowerCase().trim(), c = (d) => d.reduce((u, p) => {
1185
1185
  if (!p.showInSidebar)
1186
1186
  return u;
1187
- const C = p.label.toLowerCase().includes(h), b = p.links ? c(p.links) : [];
1188
- return (C || b.length > 0) && u.push({
1187
+ const v = p.label.toLowerCase().includes(h), b = p.links ? c(p.links) : [];
1188
+ return (v || b.length > 0) && u.push({
1189
1189
  ...p,
1190
1190
  links: b.length > 0 ? b : p.links,
1191
1191
  // Expandir automaticamente grupos com match
@@ -1193,20 +1193,20 @@ function Wt({
1193
1193
  }), u;
1194
1194
  }, []);
1195
1195
  return c(A);
1196
- }, [A, o]), a = ce(() => o.trim() ? n(s) : n(A), [o, A, s, n]), l = S(
1196
+ }, [A, o]), a = ce(() => o.trim() ? n(s) : n(A), [o, A, s, n]), l = C(
1197
1197
  (h) => {
1198
1198
  if (e(h), t) {
1199
1199
  const c = h.toLowerCase().trim();
1200
1200
  if (!c)
1201
1201
  t(h, A);
1202
1202
  else {
1203
- const d = (u) => u.reduce((p, C) => {
1204
- if (!C.showInSidebar)
1203
+ const d = (u) => u.reduce((p, v) => {
1204
+ if (!v.showInSidebar)
1205
1205
  return p;
1206
- const b = C.label.toLowerCase().includes(c), m = C.links ? d(C.links) : [];
1206
+ const b = v.label.toLowerCase().includes(c), m = v.links ? d(v.links) : [];
1207
1207
  return (b || m.length > 0) && p.push({
1208
- ...C,
1209
- links: m.length > 0 ? m : C.links,
1208
+ ...v,
1209
+ links: m.length > 0 ? m : v.links,
1210
1210
  initiallyOpened: !0
1211
1211
  }), p;
1212
1212
  }, []);
@@ -1215,7 +1215,7 @@ function Wt({
1215
1215
  }
1216
1216
  },
1217
1217
  [A, t]
1218
- ), i = S(() => {
1218
+ ), i = C(() => {
1219
1219
  l("");
1220
1220
  }, [l]);
1221
1221
  return {
@@ -1228,7 +1228,7 @@ function Wt({
1228
1228
  totalResults: a
1229
1229
  };
1230
1230
  }
1231
- function Zt(A) {
1231
+ function to(A) {
1232
1232
  return A.toLowerCase().replace("ctrl+", "mod+").replace("cmd+", "mod+").replace("control+", "mod+");
1233
1233
  }
1234
1234
  function SA({
@@ -1245,10 +1245,10 @@ function SA({
1245
1245
  });
1246
1246
  };
1247
1247
  return h(A), i;
1248
- }, [A]), s = S(
1248
+ }, [A]), s = C(
1249
1249
  (i) => !!i.shortcut,
1250
1250
  []
1251
- ), a = S(
1251
+ ), a = C(
1252
1252
  (i) => i.shortcut,
1253
1253
  []
1254
1254
  ), l = ce(() => {
@@ -1256,7 +1256,7 @@ function SA({
1256
1256
  return [];
1257
1257
  const i = [];
1258
1258
  return o && i.push(["mod+b", o]), n.forEach((h, c) => {
1259
- const d = Zt(c);
1259
+ const d = to(c);
1260
1260
  i.push([
1261
1261
  d,
1262
1262
  () => {
@@ -1265,7 +1265,7 @@ function SA({
1265
1265
  ]);
1266
1266
  }), i;
1267
1267
  }, [e, n, t, o]);
1268
- return Rr(l), {
1268
+ return Dr(l), {
1269
1269
  shortcuts: n,
1270
1270
  hasShortcut: s,
1271
1271
  getShortcut: a
@@ -1286,20 +1286,20 @@ function $e({
1286
1286
  activeBackground: d,
1287
1287
  isActive: u
1288
1288
  }) {
1289
- const p = me(), { colorScheme: C } = de(), b = A, [m, g] = ge(!1), f = s || "var(--mantine-color-text)", I = a || p.colors[p.primaryColor][6], T = l || p.colors[p.primaryColor][6], L = l ? `color-mix(in srgb, ${l} 80%, black)` : p.colors[p.primaryColor][8], X = m ? e ? L : T : e ? T : "transparent", F = m || e ? p.white : f, U = m || e ? p.white : I, O = e && !m && !!d ? { background: d, backgroundColor: void 0 } : { background: void 0, backgroundColor: X }, D = typeof A.disabled == "function" ? A.disabled() : A.disabled;
1289
+ const p = me(), { colorScheme: v } = de(), b = A, [m, g] = ge(!1), f = s || "var(--mantine-color-text)", x = a || p.colors[p.primaryColor][6], I = l || p.colors[p.primaryColor][6], L = l ? `color-mix(in srgb, ${l} 80%, black)` : p.colors[p.primaryColor][8], J = m ? e ? L : I : e ? I : "transparent", V = m || e ? p.white : f, Y = m || e ? p.white : x, O = e && !m && !!d ? { background: d, backgroundColor: void 0 } : { background: void 0, backgroundColor: J }, D = typeof A.disabled == "function" ? A.disabled() : A.disabled;
1290
1290
  if (D && A.hideDisabledItem || !A.showInSidebar)
1291
1291
  return null;
1292
- const Q = S(() => {
1292
+ const K = C(() => {
1293
1293
  !D && n && n(A);
1294
- }, [D, n, A]), P = Re.t(A.label), v = () => b.badge ? /* @__PURE__ */ r(pA, { size: "xs", color: b.badgeColor || "blue", variant: "filled", children: b.badge }) : null, K = () => b.shortcut ? /* @__PURE__ */ r(HA, { size: "xs", style: { marginLeft: "auto" }, children: b.shortcut }) : null;
1294
+ }, [D, n, A]), P = Re.t(A.label), y = () => b.badge ? /* @__PURE__ */ r(pA, { size: "xs", color: b.badgeColor || "blue", variant: "filled", children: b.badge }) : null, F = () => b.shortcut ? /* @__PURE__ */ r(jA, { size: "xs", style: { marginLeft: "auto" }, children: b.shortcut }) : null;
1295
1295
  if (A.links && A.links.length > 0) {
1296
- const E = A.links.filter((x) => {
1297
- const V = typeof x.disabled == "function" ? x.disabled() : x.disabled;
1298
- return x.showInSidebar && (!V || !x.hideDisabledItem);
1296
+ const T = A.links.filter((k) => {
1297
+ const G = typeof k.disabled == "function" ? k.disabled() : k.disabled;
1298
+ return k.showInSidebar && (!G || !k.hideDisabledItem);
1299
1299
  });
1300
- if (E.length === 0 && D && A.hideDisabledItem)
1300
+ if (T.length === 0 && D && A.hideDisabledItem)
1301
1301
  return null;
1302
- const W = (x) => u ? u(x) : e, G = (x) => x.some((V) => W(V) || (V.links ? G(V.links) : !1));
1302
+ const ee = (k) => u ? u(k) : e, U = (k) => k.some((G) => ee(G) || (G.links ? U(G.links) : !1));
1303
1303
  return o ? /* @__PURE__ */ R(
1304
1304
  ie,
1305
1305
  {
@@ -1311,7 +1311,7 @@ function $e({
1311
1311
  closeDelay: 200,
1312
1312
  children: [
1313
1313
  /* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Je, { style: { width: "100%", padding: "2px 0" }, children: /* @__PURE__ */ r(Me, { label: P, position: "right", withArrow: !0, children: /* @__PURE__ */ R(
1314
- J,
1314
+ _,
1315
1315
  {
1316
1316
  gap: 1,
1317
1317
  align: "center",
@@ -1320,10 +1320,10 @@ function $e({
1320
1320
  },
1321
1321
  children: [
1322
1322
  /* @__PURE__ */ r(
1323
- B,
1323
+ H,
1324
1324
  {
1325
1325
  style: {
1326
- color: I,
1326
+ color: x,
1327
1327
  display: "flex",
1328
1328
  alignItems: "center",
1329
1329
  justifyContent: "center"
@@ -1337,7 +1337,7 @@ function $e({
1337
1337
  size: "8px",
1338
1338
  ta: "center",
1339
1339
  style: {
1340
- color: I,
1340
+ color: x,
1341
1341
  lineHeight: 1,
1342
1342
  maxWidth: 56,
1343
1343
  overflow: "hidden",
@@ -1352,29 +1352,29 @@ function $e({
1352
1352
  ) }) }) }),
1353
1353
  /* @__PURE__ */ R(ie.Dropdown, { children: [
1354
1354
  /* @__PURE__ */ r(ie.Label, { children: P }),
1355
- E.map((x, V) => {
1356
- const se = typeof x.disabled == "function" ? x.disabled() : x.disabled;
1355
+ T.map((k, G) => {
1356
+ const Ae = typeof k.disabled == "function" ? k.disabled() : k.disabled;
1357
1357
  return /* @__PURE__ */ r(
1358
1358
  ie.Item,
1359
1359
  {
1360
- leftSection: x.icon,
1361
- disabled: se,
1362
- onClick: () => n?.(x),
1363
- children: Re.t(x.label)
1360
+ leftSection: k.icon,
1361
+ disabled: Ae,
1362
+ onClick: () => n?.(k),
1363
+ children: Re.t(k.label)
1364
1364
  },
1365
- V
1365
+ G
1366
1366
  );
1367
1367
  })
1368
1368
  ] })
1369
1369
  ]
1370
1370
  }
1371
1371
  ) : /* @__PURE__ */ r(
1372
- LA,
1372
+ NA,
1373
1373
  {
1374
1374
  label: P,
1375
- leftSection: /* @__PURE__ */ r(B, { style: { color: U }, children: A.icon }),
1376
- rightSection: /* @__PURE__ */ R(B, { style: { display: "flex", alignItems: "center", gap: 4, color: F }, children: [
1377
- v(),
1375
+ leftSection: /* @__PURE__ */ r(H, { style: { color: Y }, children: A.icon }),
1376
+ rightSection: /* @__PURE__ */ R(H, { style: { display: "flex", alignItems: "center", gap: 4, color: V }, children: [
1377
+ y(),
1378
1378
  /* @__PURE__ */ r(
1379
1379
  gA,
1380
1380
  {
@@ -1386,7 +1386,7 @@ function $e({
1386
1386
  )
1387
1387
  ] }),
1388
1388
  childrenOffset: 28,
1389
- defaultOpened: A.initiallyOpened || e || G(E),
1389
+ defaultOpened: A.initiallyOpened || e || U(T),
1390
1390
  disabled: D,
1391
1391
  onMouseEnter: () => g(!0),
1392
1392
  onMouseLeave: () => g(!1),
@@ -1402,19 +1402,19 @@ function $e({
1402
1402
  borderRadius: h
1403
1403
  },
1404
1404
  label: {
1405
- color: F
1405
+ color: V
1406
1406
  },
1407
1407
  children: {
1408
1408
  paddingLeft: 0
1409
1409
  }
1410
1410
  },
1411
- children: E.map((x, V) => /* @__PURE__ */ r(
1411
+ children: T.map((k, G) => /* @__PURE__ */ r(
1412
1412
  $e,
1413
1413
  {
1414
- item: x,
1414
+ item: k,
1415
1415
  depth: t + 1,
1416
1416
  collapsed: o,
1417
- active: W(x),
1417
+ active: ee(k),
1418
1418
  onClick: n,
1419
1419
  textColor: s,
1420
1420
  iconColor: a,
@@ -1425,7 +1425,7 @@ function $e({
1425
1425
  activeBackground: d,
1426
1426
  isActive: u
1427
1427
  },
1428
- V
1428
+ G
1429
1429
  ))
1430
1430
  }
1431
1431
  );
@@ -1446,30 +1446,30 @@ function $e({
1446
1446
  cursor: D ? "not-allowed" : "pointer",
1447
1447
  opacity: D ? 0.5 : 1,
1448
1448
  // Gradiente (activeBackground) via shorthand; senão a cor sólida.
1449
- ...e && d ? { background: d } : { backgroundColor: e ? T : "transparent" },
1449
+ ...e && d ? { background: d } : { backgroundColor: e ? I : "transparent" },
1450
1450
  transition: "background 150ms ease, background-color 150ms ease",
1451
1451
  padding: "2px 0"
1452
1452
  },
1453
- onClick: Q,
1454
- onMouseEnter: (E) => {
1453
+ onClick: K,
1454
+ onMouseEnter: (T) => {
1455
1455
  if (!D) {
1456
1456
  if (e && d)
1457
1457
  return;
1458
- E.currentTarget.style.backgroundColor = e ? L : T;
1458
+ T.currentTarget.style.backgroundColor = e ? L : I;
1459
1459
  }
1460
1460
  },
1461
- onMouseLeave: (E) => {
1462
- e && d || (E.currentTarget.style.backgroundColor = e ? T : "transparent");
1461
+ onMouseLeave: (T) => {
1462
+ e && d || (T.currentTarget.style.backgroundColor = e ? I : "transparent");
1463
1463
  },
1464
- children: /* @__PURE__ */ R(J, { gap: 1, align: "center", children: [
1465
- /* @__PURE__ */ r(B, { style: { color: e ? p.white : I }, children: A.icon }),
1464
+ children: /* @__PURE__ */ R(_, { gap: 1, align: "center", children: [
1465
+ /* @__PURE__ */ r(H, { style: { color: e ? p.white : x }, children: A.icon }),
1466
1466
  /* @__PURE__ */ r(
1467
1467
  Te,
1468
1468
  {
1469
1469
  size: "8px",
1470
1470
  ta: "center",
1471
1471
  style: {
1472
- color: e ? p.white : I,
1472
+ color: e ? p.white : x,
1473
1473
  lineHeight: 1,
1474
1474
  maxWidth: 56,
1475
1475
  overflow: "hidden",
@@ -1484,17 +1484,17 @@ function $e({
1484
1484
  )
1485
1485
  }
1486
1486
  ) : /* @__PURE__ */ r(
1487
- LA,
1487
+ NA,
1488
1488
  {
1489
1489
  label: P,
1490
- leftSection: /* @__PURE__ */ r(B, { style: { color: U }, children: A.icon }),
1491
- rightSection: /* @__PURE__ */ R(B, { style: { display: "flex", alignItems: "center", gap: 4, color: F }, children: [
1492
- v(),
1493
- K()
1490
+ leftSection: /* @__PURE__ */ r(H, { style: { color: Y }, children: A.icon }),
1491
+ rightSection: /* @__PURE__ */ R(H, { style: { display: "flex", alignItems: "center", gap: 4, color: V }, children: [
1492
+ y(),
1493
+ F()
1494
1494
  ] }),
1495
1495
  active: e,
1496
1496
  disabled: D,
1497
- onClick: Q,
1497
+ onClick: K,
1498
1498
  onMouseEnter: () => g(!0),
1499
1499
  onMouseLeave: () => g(!1),
1500
1500
  style: {
@@ -1510,13 +1510,13 @@ function $e({
1510
1510
  borderRadius: h
1511
1511
  },
1512
1512
  label: {
1513
- color: F
1513
+ color: V
1514
1514
  }
1515
1515
  }
1516
1516
  }
1517
1517
  );
1518
1518
  }
1519
- function eo({
1519
+ function oo({
1520
1520
  label: A,
1521
1521
  icon: t,
1522
1522
  children: o,
@@ -1525,10 +1525,10 @@ function eo({
1525
1525
  onExpandedChange: s,
1526
1526
  groupId: a
1527
1527
  }) {
1528
- const l = me(), { colorScheme: i } = de(), [h, c] = ge(e), d = n !== void 0, u = d ? n : h, p = S(() => {
1528
+ const l = me(), { colorScheme: i } = de(), [h, c] = ge(e), d = n !== void 0, u = d ? n : h, p = C(() => {
1529
1529
  d ? s?.(!u) : c((f) => !f);
1530
- }, [d, u, s]), C = i === "dark" ? l.colors.dark[6] : l.colors.gray[1], b = i === "dark" ? l.colors.dark[5] : l.colors.gray[2], m = i === "dark" ? l.colors.gray[4] : l.colors.gray[7], g = i === "dark" ? l.colors[l.primaryColor][4] : l.colors[l.primaryColor][6];
1531
- return /* @__PURE__ */ R(B, { children: [
1530
+ }, [d, u, s]), v = i === "dark" ? l.colors.dark[6] : l.colors.gray[1], b = i === "dark" ? l.colors.dark[5] : l.colors.gray[2], m = i === "dark" ? l.colors.gray[4] : l.colors.gray[7], g = i === "dark" ? l.colors[l.primaryColor][4] : l.colors[l.primaryColor][6];
1531
+ return /* @__PURE__ */ R(H, { children: [
1532
1532
  /* @__PURE__ */ r(
1533
1533
  cA,
1534
1534
  {
@@ -1537,7 +1537,7 @@ function eo({
1537
1537
  p: "xs",
1538
1538
  style: {
1539
1539
  borderRadius: l.radius.sm,
1540
- backgroundColor: C,
1540
+ backgroundColor: v,
1541
1541
  transition: "background-color 150ms ease"
1542
1542
  },
1543
1543
  styles: {
@@ -1549,11 +1549,11 @@ function eo({
1549
1549
  },
1550
1550
  children: /* @__PURE__ */ R(Le, { justify: "space-between", wrap: "nowrap", children: [
1551
1551
  /* @__PURE__ */ R(Le, { gap: "xs", wrap: "nowrap", children: [
1552
- t && /* @__PURE__ */ r(B, { style: { color: g }, children: t }),
1552
+ t && /* @__PURE__ */ r(H, { style: { color: g }, children: t }),
1553
1553
  /* @__PURE__ */ r(Te, { size: "sm", fw: 600, c: m, children: Re.t(A) })
1554
1554
  ] }),
1555
1555
  /* @__PURE__ */ r(
1556
- Gr,
1556
+ Yr,
1557
1557
  {
1558
1558
  size: 16,
1559
1559
  color: m,
@@ -1566,15 +1566,15 @@ function eo({
1566
1566
  ] })
1567
1567
  }
1568
1568
  ),
1569
- /* @__PURE__ */ r($r, { expanded: u, children: /* @__PURE__ */ r(B, { mt: 4, children: o }) })
1569
+ /* @__PURE__ */ r(Vr, { expanded: u, children: /* @__PURE__ */ r(H, { mt: 4, children: o }) })
1570
1570
  ] });
1571
1571
  }
1572
- function Mn({
1572
+ function On({
1573
1573
  label: A,
1574
1574
  children: t
1575
1575
  }) {
1576
1576
  const o = me(), { colorScheme: e } = de(), n = e === "dark" ? o.colors.gray[5] : o.colors.gray[6];
1577
- return /* @__PURE__ */ R(B, { children: [
1577
+ return /* @__PURE__ */ R(H, { children: [
1578
1578
  /* @__PURE__ */ r(
1579
1579
  Te,
1580
1580
  {
@@ -1591,7 +1591,7 @@ function Mn({
1591
1591
  t
1592
1592
  ] });
1593
1593
  }
1594
- function Ao({
1594
+ function no({
1595
1595
  group: A,
1596
1596
  active: t = !1,
1597
1597
  onClick: o,
@@ -1600,7 +1600,7 @@ function Ao({
1600
1600
  inactiveColor: s
1601
1601
  }) {
1602
1602
  const a = me(), { colorScheme: l } = de(), i = l === "dark" ? a.colors[a.primaryColor][8] : a.colors[a.primaryColor][0], h = l === "dark" ? a.colors[a.primaryColor][6] : a.colors[a.primaryColor][7], c = a.colors[a.primaryColor][2], p = /* @__PURE__ */ R(
1603
- J,
1603
+ _,
1604
1604
  {
1605
1605
  gap: 2,
1606
1606
  align: "center",
@@ -1639,19 +1639,19 @@ function Ao({
1639
1639
  );
1640
1640
  return e ? p : /* @__PURE__ */ r(Me, { label: A.hint || A.label, position: "right", withArrow: !0, children: p });
1641
1641
  }
1642
- function Dn({
1642
+ function $n({
1643
1643
  placeholder: A = "Buscar...",
1644
1644
  value: t,
1645
1645
  onChange: o,
1646
1646
  onClear: e,
1647
1647
  collapsed: n = !1
1648
1648
  }) {
1649
- const s = me(), { colorScheme: a } = de(), l = S(
1649
+ const s = me(), { colorScheme: a } = de(), l = C(
1650
1650
  (c) => {
1651
1651
  o?.(c.currentTarget.value);
1652
1652
  },
1653
1653
  [o]
1654
- ), i = S(() => {
1654
+ ), i = C(() => {
1655
1655
  o?.(""), e?.();
1656
1656
  }, [o, e]), h = t && t.length > 0;
1657
1657
  return n ? /* @__PURE__ */ r(
@@ -1663,7 +1663,7 @@ function Dn({
1663
1663
  children: /* @__PURE__ */ r(_e, { size: 18 })
1664
1664
  }
1665
1665
  ) : /* @__PURE__ */ r(
1666
- YA,
1666
+ XA,
1667
1667
  {
1668
1668
  placeholder: A,
1669
1669
  leftSection: /* @__PURE__ */ r(_e, { size: 16 }),
@@ -1674,9 +1674,9 @@ function Dn({
1674
1674
  size: "sm",
1675
1675
  onClick: i,
1676
1676
  style: { cursor: "pointer" },
1677
- children: /* @__PURE__ */ r(_A, { size: 14 })
1677
+ children: /* @__PURE__ */ r(er, { size: 14 })
1678
1678
  }
1679
- ) : /* @__PURE__ */ r(HA, { size: "xs", style: { marginRight: 4 }, children: "/" }),
1679
+ ) : /* @__PURE__ */ r(jA, { size: "xs", style: { marginRight: 4 }, children: "/" }),
1680
1680
  value: t,
1681
1681
  onChange: l,
1682
1682
  size: "sm",
@@ -1688,7 +1688,7 @@ function Dn({
1688
1688
  }
1689
1689
  );
1690
1690
  }
1691
- function Nn({
1691
+ function Qn({
1692
1692
  name: A,
1693
1693
  email: t,
1694
1694
  avatar: o,
@@ -1743,7 +1743,7 @@ function Nn({
1743
1743
  },
1744
1744
  children: /* @__PURE__ */ R(Le, { wrap: "nowrap", children: [
1745
1745
  i(),
1746
- /* @__PURE__ */ R(B, { style: { flex: 1, overflow: "hidden" }, children: [
1746
+ /* @__PURE__ */ R(H, { style: { flex: 1, overflow: "hidden" }, children: [
1747
1747
  A && /* @__PURE__ */ r(
1748
1748
  Te,
1749
1749
  {
@@ -1782,7 +1782,7 @@ function Nn({
1782
1782
  }
1783
1783
  );
1784
1784
  }
1785
- function zn({
1785
+ function Kn({
1786
1786
  value: A,
1787
1787
  color: t = "red",
1788
1788
  size: o = "xs"
@@ -1790,14 +1790,14 @@ function zn({
1790
1790
  const e = typeof A == "number" && A > 99 ? "99+" : A;
1791
1791
  return /* @__PURE__ */ r(pA, { size: o, color: t, variant: "filled", children: e });
1792
1792
  }
1793
- function On({
1793
+ function Fn({
1794
1794
  children: A,
1795
1795
  show: t = !0,
1796
1796
  color: o = "red",
1797
1797
  processing: e = !1
1798
1798
  }) {
1799
1799
  return /* @__PURE__ */ r(
1800
- Qr,
1800
+ Gr,
1801
1801
  {
1802
1802
  disabled: !t,
1803
1803
  color: o,
@@ -1818,8 +1818,8 @@ function kA({
1818
1818
  }) {
1819
1819
  const a = me(), { colorScheme: l } = de(), i = o || (l === "dark" ? a.colors.dark[7] : a.white);
1820
1820
  if (t)
1821
- return /* @__PURE__ */ r(J, { gap: "sm", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: A }).map((d, u) => /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }, u)) });
1822
- const h = (d, u = !1) => Array.from({ length: d }).map((p, C) => {
1821
+ return /* @__PURE__ */ r(_, { gap: "sm", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: A }).map((d, u) => /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }, u)) });
1822
+ const h = (d, u = !1) => Array.from({ length: d }).map((p, v) => {
1823
1823
  const b = 60 + Math.random() * 30;
1824
1824
  return /* @__PURE__ */ R(
1825
1825
  Le,
@@ -1835,31 +1835,31 @@ function kA({
1835
1835
  /* @__PURE__ */ r(pe, { height: 14, width: `${b}%`, radius: "sm" })
1836
1836
  ]
1837
1837
  },
1838
- C
1838
+ v
1839
1839
  );
1840
1840
  });
1841
1841
  if (!n)
1842
- return /* @__PURE__ */ r(J, { gap: 2, p: "xs", style: { backgroundColor: i }, children: h(A) });
1842
+ return /* @__PURE__ */ r(_, { gap: 2, p: "xs", style: { backgroundColor: i }, children: h(A) });
1843
1843
  const c = Math.ceil(A / s);
1844
- return /* @__PURE__ */ r(J, { gap: "md", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: s }).map((d, u) => /* @__PURE__ */ R(B, { children: [
1844
+ return /* @__PURE__ */ r(_, { gap: "md", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: s }).map((d, u) => /* @__PURE__ */ R(H, { children: [
1845
1845
  /* @__PURE__ */ R(Le, { gap: "sm", p: "xs", children: [
1846
1846
  /* @__PURE__ */ r(pe, { circle: !0, height: 20, width: 20 }),
1847
1847
  /* @__PURE__ */ r(pe, { height: 12, width: 80 + Math.random() * 40, radius: "sm" })
1848
1848
  ] }),
1849
- /* @__PURE__ */ r(J, { gap: 2, mt: 4, children: h(
1849
+ /* @__PURE__ */ r(_, { gap: 2, mt: 4, children: h(
1850
1850
  u === s - 1 ? A - u * c : c,
1851
1851
  !0
1852
1852
  ) })
1853
1853
  ] }, u)) });
1854
1854
  }
1855
- function ro({
1855
+ function so({
1856
1856
  groupCount: A = 4,
1857
1857
  width: t = 80,
1858
1858
  backgroundColor: o
1859
1859
  }) {
1860
1860
  const e = me(), { colorScheme: n } = de(), s = o || (n === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][6]);
1861
1861
  return /* @__PURE__ */ r(
1862
- J,
1862
+ _,
1863
1863
  {
1864
1864
  gap: "sm",
1865
1865
  p: "xs",
@@ -1869,30 +1869,30 @@ function ro({
1869
1869
  backgroundColor: s,
1870
1870
  height: "100%"
1871
1871
  },
1872
- children: Array.from({ length: A }).map((a, l) => /* @__PURE__ */ R(J, { gap: 4, align: "center", children: [
1872
+ children: Array.from({ length: A }).map((a, l) => /* @__PURE__ */ R(_, { gap: 4, align: "center", children: [
1873
1873
  /* @__PURE__ */ r(pe, { circle: !0, height: 48, width: 48 }),
1874
1874
  /* @__PURE__ */ r(pe, { height: 10, width: 40, radius: "sm" })
1875
1875
  ] }, l))
1876
1876
  }
1877
1877
  );
1878
1878
  }
1879
- function $n({
1879
+ function Vn({
1880
1880
  collapsed: A = !1
1881
1881
  }) {
1882
- return A ? /* @__PURE__ */ r(B, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "md", children: [
1882
+ return A ? /* @__PURE__ */ r(H, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "md", children: [
1883
1883
  /* @__PURE__ */ r(pe, { circle: !0, height: 40, width: 40 }),
1884
- /* @__PURE__ */ R(J, { gap: 4, style: { flex: 1 }, children: [
1884
+ /* @__PURE__ */ R(_, { gap: 4, style: { flex: 1 }, children: [
1885
1885
  /* @__PURE__ */ r(pe, { height: 14, width: "70%", radius: "sm" }),
1886
1886
  /* @__PURE__ */ r(pe, { height: 10, width: "50%", radius: "sm" })
1887
1887
  ] })
1888
1888
  ] });
1889
1889
  }
1890
- function Qn({
1890
+ function Gn({
1891
1891
  collapsed: A = !1
1892
1892
  }) {
1893
- return A ? /* @__PURE__ */ r(B, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "sm", children: [
1893
+ return A ? /* @__PURE__ */ r(H, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "sm", children: [
1894
1894
  /* @__PURE__ */ r(pe, { circle: !0, height: 36, width: 36 }),
1895
- /* @__PURE__ */ R(J, { gap: 4, style: { flex: 1 }, children: [
1895
+ /* @__PURE__ */ R(_, { gap: 4, style: { flex: 1 }, children: [
1896
1896
  /* @__PURE__ */ r(pe, { height: 12, width: "60%", radius: "sm" }),
1897
1897
  /* @__PURE__ */ r(pe, { height: 10, width: "80%", radius: "sm" })
1898
1898
  ] })
@@ -1904,7 +1904,7 @@ function xA({
1904
1904
  }) {
1905
1905
  const o = me(), { colorScheme: e } = de(), n = t || (e === "dark" ? o.colors.dark[7] : o.white), s = e === "dark" ? o.colors.red[4] : o.colors.red[6];
1906
1906
  return /* @__PURE__ */ r(
1907
- B,
1907
+ H,
1908
1908
  {
1909
1909
  p: "md",
1910
1910
  style: {
@@ -1915,7 +1915,7 @@ function xA({
1915
1915
  height: "100%"
1916
1916
  },
1917
1917
  children: /* @__PURE__ */ r(
1918
- B,
1918
+ H,
1919
1919
  {
1920
1920
  p: "md",
1921
1921
  style: {
@@ -1931,7 +1931,7 @@ function xA({
1931
1931
  }
1932
1932
  );
1933
1933
  }
1934
- function to({
1934
+ function lo({
1935
1935
  navigationData: A,
1936
1936
  width: t = 280,
1937
1937
  collapsedWidth: o = 60,
@@ -1946,156 +1946,156 @@ function to({
1946
1946
  loadingError: d,
1947
1947
  loadingComponent: u,
1948
1948
  errorComponent: p,
1949
- skeletonItemCount: C = 8,
1949
+ skeletonItemCount: v = 8,
1950
1950
  backgroundDarkColor: b,
1951
1951
  backgroundLightColor: m,
1952
1952
  backgroundImage: g,
1953
1953
  textDarkColor: f,
1954
- textLightColor: I,
1955
- iconDarkColor: T,
1954
+ textLightColor: x,
1955
+ iconDarkColor: I,
1956
1956
  iconLightColor: L,
1957
- activeColor: X,
1958
- withBorder: F = !0,
1959
- withShadow: U = !1,
1957
+ activeColor: J,
1958
+ withBorder: V = !0,
1959
+ withShadow: Y = !1,
1960
1960
  highlightActiveItem: M = !0,
1961
1961
  onMenuItemClick: O,
1962
1962
  itemBorderRadius: D,
1963
- itemHorizontalGap: Q,
1963
+ itemHorizontalGap: K,
1964
1964
  itemActiveBackground: P
1965
1965
  }) {
1966
- const v = me(), { colorScheme: K } = de(), { collapsed: E, toggleCollapsed: W } = vA(), G = K === "dark" ? b ?? v.colors.dark[7] : m ?? v.white, x = K === "dark" ? f ?? v.colors.gray[3] : I ?? v.colors.gray[7], V = K === "dark" ? T ?? v.colors[v.primaryColor][4] : L ?? v.colors[v.primaryColor][6], se = X ? v.colors[X]?.[6] ?? v.colors[v.primaryColor][6] : v.colors[v.primaryColor][6], Ce = g ? { background: g } : { backgroundColor: G }, le = g ? "transparent" : G, {
1966
+ const y = me(), { colorScheme: F } = de(), { collapsed: T, toggleCollapsed: ee } = vA(), U = F === "dark" ? b ?? y.colors.dark[7] : m ?? y.white, k = F === "dark" ? f ?? y.colors.gray[3] : x ?? y.colors.gray[7], G = F === "dark" ? I ?? y.colors[y.primaryColor][4] : L ?? y.colors[y.primaryColor][6], Ae = J ? y.colors[J]?.[6] ?? y.colors[y.primaryColor][6] : y.colors[y.primaryColor][6], Ce = g ? { background: g } : { backgroundColor: U }, se = g ? "transparent" : U, {
1967
1967
  query: be,
1968
1968
  setQuery: we,
1969
1969
  filteredItems: Se,
1970
1970
  isSearching: w,
1971
- clearSearch: k
1972
- } = Wt({
1971
+ clearSearch: S
1972
+ } = ro({
1973
1973
  navigationData: A,
1974
1974
  onSearch: a
1975
- }), { navigateToItem: N, isItemActive: y, isItemOrChildActive: H } = wA({
1975
+ }), { navigateToItem: $, isItemActive: N, isItemOrChildActive: B } = wA({
1976
1976
  navigationData: A,
1977
1977
  onMenuItemClick: O
1978
- }), Y = S(
1979
- (ee) => !!M && y(ee),
1980
- [M, y]
1978
+ }), E = C(
1979
+ (q) => !!M && N(q),
1980
+ [M, N]
1981
1981
  ), z = {
1982
1982
  itemBorderRadius: D,
1983
- itemHorizontalGap: Q,
1983
+ itemHorizontalGap: K,
1984
1984
  activeBackground: P,
1985
- isActive: Y
1985
+ isActive: E
1986
1986
  };
1987
1987
  SA({
1988
1988
  navigationData: A,
1989
- navigateToItem: N,
1990
- onToggleSidebar: W,
1989
+ navigateToItem: $,
1990
+ onToggleSidebar: ee,
1991
1991
  enabled: !0
1992
1992
  });
1993
- const j = E ? o : t, Z = ce(() => {
1994
- const ee = /* @__PURE__ */ new Map(), Ie = [];
1995
- return Se.forEach((Ae) => {
1996
- if (!(!Ae.showInSidebar || (typeof Ae.disabled == "function" ? Ae.disabled() : Ae.disabled) && Ae.hideDisabledItem))
1997
- if (Ae.category) {
1998
- const Ee = ee.get(Ae.category) || [];
1999
- Ee.push(Ae), ee.set(Ae.category, Ee);
1993
+ const j = T ? o : t, he = ce(() => {
1994
+ const q = /* @__PURE__ */ new Map(), ve = [];
1995
+ return Se.forEach((W) => {
1996
+ if (!(!W.showInSidebar || (typeof W.disabled == "function" ? W.disabled() : W.disabled) && W.hideDisabledItem))
1997
+ if (W.category) {
1998
+ const Ee = q.get(W.category) || [];
1999
+ Ee.push(W), q.set(W.category, Ee);
2000
2000
  } else
2001
- Ie.push(Ae);
2002
- }), { groups: ee, ungrouped: Ie };
2003
- }, [Se]), ke = () => {
2001
+ ve.push(W);
2002
+ }), { groups: q, ungrouped: ve };
2003
+ }, [Se]), Ie = () => {
2004
2004
  if (d)
2005
- return p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: G });
2005
+ return p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: U });
2006
2006
  if (c)
2007
2007
  return u || /* @__PURE__ */ r(
2008
2008
  kA,
2009
2009
  {
2010
- itemCount: C,
2011
- collapsed: E,
2012
- backgroundColor: G,
2013
- showGroups: !E
2010
+ itemCount: v,
2011
+ collapsed: T,
2012
+ backgroundColor: U,
2013
+ showGroups: !T
2014
2014
  }
2015
2015
  );
2016
- const ee = () => Z.ungrouped.map((Ae, re) => /* @__PURE__ */ r(
2016
+ const q = () => he.ungrouped.map((W, re) => /* @__PURE__ */ r(
2017
2017
  $e,
2018
2018
  {
2019
- item: Ae,
2020
- collapsed: E,
2021
- active: M && y(Ae),
2022
- onClick: N,
2023
- textColor: x,
2024
- iconColor: V,
2025
- hoverColor: se,
2019
+ item: W,
2020
+ collapsed: T,
2021
+ active: M && N(W),
2022
+ onClick: $,
2023
+ textColor: k,
2024
+ iconColor: G,
2025
+ hoverColor: Ae,
2026
2026
  ...z
2027
2027
  },
2028
2028
  `item-${re}`
2029
- )), Ie = () => Array.from(Z.groups.entries()).map(([re, Ee], q) => /* @__PURE__ */ r(
2030
- eo,
2029
+ )), ve = () => Array.from(he.groups.entries()).map(([re, Ee], X) => /* @__PURE__ */ r(
2030
+ oo,
2031
2031
  {
2032
2032
  label: re,
2033
- groupId: `group-${q}`,
2033
+ groupId: `group-${X}`,
2034
2034
  defaultExpanded: !0,
2035
- children: Ee.map((ye, $) => /* @__PURE__ */ r(
2035
+ children: Ee.map((ke, Q) => /* @__PURE__ */ r(
2036
2036
  $e,
2037
2037
  {
2038
- item: ye,
2039
- collapsed: E,
2040
- active: M && y(ye),
2041
- onClick: N,
2042
- textColor: x,
2043
- iconColor: V,
2044
- hoverColor: se,
2038
+ item: ke,
2039
+ collapsed: T,
2040
+ active: M && N(ke),
2041
+ onClick: $,
2042
+ textColor: k,
2043
+ iconColor: G,
2044
+ hoverColor: Ae,
2045
2045
  ...z
2046
2046
  },
2047
- `group-${q}-item-${$}`
2047
+ `group-${X}-item-${Q}`
2048
2048
  ))
2049
2049
  },
2050
- `group-${q}`
2050
+ `group-${X}`
2051
2051
  ));
2052
- return E ? /* @__PURE__ */ R(J, { gap: 4, children: [
2053
- Z.ungrouped.map((Ae, re) => /* @__PURE__ */ r(
2052
+ return T ? /* @__PURE__ */ R(_, { gap: 4, children: [
2053
+ he.ungrouped.map((W, re) => /* @__PURE__ */ r(
2054
2054
  $e,
2055
2055
  {
2056
- item: Ae,
2056
+ item: W,
2057
2057
  collapsed: !0,
2058
- active: M && y(Ae),
2059
- onClick: N,
2060
- textColor: x,
2061
- iconColor: V,
2062
- hoverColor: se,
2058
+ active: M && N(W),
2059
+ onClick: $,
2060
+ textColor: k,
2061
+ iconColor: G,
2062
+ hoverColor: Ae,
2063
2063
  ...z
2064
2064
  },
2065
2065
  `item-${re}`
2066
2066
  )),
2067
- Array.from(Z.groups.values()).flat().map((Ae, re) => /* @__PURE__ */ r(
2067
+ Array.from(he.groups.values()).flat().map((W, re) => /* @__PURE__ */ r(
2068
2068
  $e,
2069
2069
  {
2070
- item: Ae,
2070
+ item: W,
2071
2071
  collapsed: !0,
2072
- active: M && y(Ae),
2073
- onClick: N,
2074
- textColor: x,
2075
- iconColor: V,
2076
- hoverColor: se,
2072
+ active: M && N(W),
2073
+ onClick: $,
2074
+ textColor: k,
2075
+ iconColor: G,
2076
+ hoverColor: Ae,
2077
2077
  ...z
2078
2078
  },
2079
2079
  `grouped-item-${re}`
2080
2080
  ))
2081
- ] }) : /* @__PURE__ */ R(J, { gap: "xs", children: [
2082
- Z.ungrouped.length > 0 && /* @__PURE__ */ r(J, { gap: 2, children: ee() }),
2083
- Z.groups.size > 0 && Z.ungrouped.length > 0 && /* @__PURE__ */ r(dA, { my: "xs" }),
2084
- Ie()
2081
+ ] }) : /* @__PURE__ */ R(_, { gap: "xs", children: [
2082
+ he.ungrouped.length > 0 && /* @__PURE__ */ r(_, { gap: 2, children: q() }),
2083
+ he.groups.size > 0 && he.ungrouped.length > 0 && /* @__PURE__ */ r(dA, { my: "xs" }),
2084
+ ve()
2085
2085
  ] });
2086
2086
  };
2087
2087
  return /* @__PURE__ */ r(
2088
- Kr,
2088
+ Br,
2089
2089
  {
2090
2090
  mounted: !0,
2091
2091
  transition: "slide-right",
2092
2092
  duration: 200,
2093
2093
  timingFunction: "ease",
2094
- children: (ee) => /* @__PURE__ */ R(
2095
- B,
2094
+ children: (q) => /* @__PURE__ */ R(
2095
+ H,
2096
2096
  {
2097
2097
  style: {
2098
- ...ee,
2098
+ ...q,
2099
2099
  width: fe(j),
2100
2100
  height: typeof e == "number" ? fe(e) : e,
2101
2101
  minHeight: typeof e == "number" ? fe(e) : e,
@@ -2104,26 +2104,26 @@ function to({
2104
2104
  flexDirection: "column",
2105
2105
  overflow: "hidden",
2106
2106
  transition: "width 200ms ease",
2107
- borderRight: F ? `1px solid ${K === "dark" ? v.colors.dark[5] : v.colors.gray[2]}` : void 0,
2108
- boxShadow: U ? v.shadows.sm : void 0
2107
+ borderRight: V ? `1px solid ${F === "dark" ? y.colors.dark[5] : y.colors.gray[2]}` : void 0,
2108
+ boxShadow: Y ? y.shadows.sm : void 0
2109
2109
  },
2110
2110
  children: [
2111
- l && /* @__PURE__ */ r(B, { style: { flexShrink: 0 }, children: l }),
2112
- n && !E && /* @__PURE__ */ r(B, { p: "sm", style: { flexShrink: 0 }, children: /* @__PURE__ */ r(
2113
- YA,
2111
+ l && /* @__PURE__ */ r(H, { style: { flexShrink: 0 }, children: l }),
2112
+ n && !T && /* @__PURE__ */ r(H, { p: "sm", style: { flexShrink: 0 }, children: /* @__PURE__ */ r(
2113
+ XA,
2114
2114
  {
2115
2115
  placeholder: s,
2116
2116
  leftSection: /* @__PURE__ */ r(_e, { size: 16 }),
2117
2117
  rightSection: w ? /* @__PURE__ */ r(
2118
- _A,
2118
+ er,
2119
2119
  {
2120
2120
  size: 16,
2121
2121
  style: { cursor: "pointer" },
2122
- onClick: k
2122
+ onClick: S
2123
2123
  }
2124
2124
  ) : null,
2125
2125
  value: be,
2126
- onChange: (Ie) => we(Ie.currentTarget.value),
2126
+ onChange: (ve) => we(ve.currentTarget.value),
2127
2127
  size: "sm"
2128
2128
  }
2129
2129
  ) }),
@@ -2134,17 +2134,17 @@ function to({
2134
2134
  scrollbarSize: 6,
2135
2135
  type: "hover",
2136
2136
  offsetScrollbars: !0,
2137
- children: /* @__PURE__ */ r(B, { p: "xs", children: ke() })
2137
+ children: /* @__PURE__ */ r(H, { p: "xs", children: Ie() })
2138
2138
  }
2139
2139
  ),
2140
2140
  i && /* @__PURE__ */ r(
2141
- B,
2141
+ H,
2142
2142
  {
2143
2143
  style: {
2144
2144
  flexShrink: 0,
2145
2145
  height: h,
2146
- backgroundColor: le,
2147
- borderTop: F ? `1px solid ${K === "dark" ? v.colors.dark[5] : v.colors.gray[2]}` : void 0
2146
+ backgroundColor: se,
2147
+ borderTop: V ? `1px solid ${F === "dark" ? y.colors.dark[5] : y.colors.gray[2]}` : void 0
2148
2148
  },
2149
2149
  children: i
2150
2150
  }
@@ -2155,7 +2155,7 @@ function to({
2155
2155
  }
2156
2156
  );
2157
2157
  }
2158
- function oo(A) {
2158
+ function ao(A) {
2159
2159
  const {
2160
2160
  navigationData: t,
2161
2161
  collapsed: o,
@@ -2176,11 +2176,11 @@ function oo(A) {
2176
2176
  showKeyboardShortcuts: s,
2177
2177
  highlightActiveItem: a,
2178
2178
  onMenuItemClick: l,
2179
- children: /* @__PURE__ */ r(to, { ...A })
2179
+ children: /* @__PURE__ */ r(lo, { ...A })
2180
2180
  }
2181
2181
  );
2182
2182
  }
2183
- function no({
2183
+ function io({
2184
2184
  item: A,
2185
2185
  active: t,
2186
2186
  onClick: o,
@@ -2207,7 +2207,7 @@ function no({
2207
2207
  openDelay: 100,
2208
2208
  closeDelay: 200,
2209
2209
  children: [
2210
- /* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(J, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2210
+ /* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(_, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2211
2211
  /* @__PURE__ */ r(
2212
2212
  De,
2213
2213
  {
@@ -2218,7 +2218,7 @@ function no({
2218
2218
  style: {
2219
2219
  opacity: a ? 0.5 : 1
2220
2220
  },
2221
- children: /* @__PURE__ */ r(B, { style: { color: t ? "white" : e }, children: A.icon })
2221
+ children: /* @__PURE__ */ r(H, { style: { color: t ? "white" : e }, children: A.icon })
2222
2222
  }
2223
2223
  ),
2224
2224
  /* @__PURE__ */ r(
@@ -2258,7 +2258,7 @@ function no({
2258
2258
  }
2259
2259
  );
2260
2260
  }
2261
- return /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(J, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2261
+ return /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(_, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2262
2262
  /* @__PURE__ */ r(
2263
2263
  De,
2264
2264
  {
@@ -2270,7 +2270,7 @@ function no({
2270
2270
  style: {
2271
2271
  opacity: a ? 0.5 : 1
2272
2272
  },
2273
- children: /* @__PURE__ */ r(B, { style: { color: t ? "white" : e }, children: A.icon })
2273
+ children: /* @__PURE__ */ r(H, { style: { color: t ? "white" : e }, children: A.icon })
2274
2274
  }
2275
2275
  ),
2276
2276
  /* @__PURE__ */ r(
@@ -2291,7 +2291,7 @@ function no({
2291
2291
  )
2292
2292
  ] }) });
2293
2293
  }
2294
- function so({
2294
+ function co({
2295
2295
  navigationData: A,
2296
2296
  width: t = 60,
2297
2297
  height: o = "100%",
@@ -2306,63 +2306,63 @@ function so({
2306
2306
  backgroundDarkColor: d,
2307
2307
  backgroundLightColor: u,
2308
2308
  iconDarkColor: p,
2309
- iconLightColor: C,
2309
+ iconLightColor: v,
2310
2310
  activeColor: b,
2311
2311
  withBorder: m = !0,
2312
2312
  withShadow: g = !1,
2313
2313
  highlightActiveItem: f = !0,
2314
- onMenuItemClick: I
2314
+ onMenuItemClick: x
2315
2315
  }) {
2316
- const T = me(), { colorScheme: L } = de(), { toggleCollapsed: X } = vA(), F = L === "dark" ? d ?? T.colors.dark[7] : u ?? T.white, U = L === "dark" ? p ?? T.colors[T.primaryColor][4] : C ?? T.colors[T.primaryColor][6], M = b ?? T.primaryColor, { navigateToItem: O, isItemActive: D, isItemOrChildActive: Q } = wA({
2316
+ const I = me(), { colorScheme: L } = de(), { toggleCollapsed: J } = vA(), V = L === "dark" ? d ?? I.colors.dark[7] : u ?? I.white, Y = L === "dark" ? p ?? I.colors[I.primaryColor][4] : v ?? I.colors[I.primaryColor][6], M = b ?? I.primaryColor, { navigateToItem: O, isItemActive: D, isItemOrChildActive: K } = wA({
2317
2317
  navigationData: A,
2318
- onMenuItemClick: I
2318
+ onMenuItemClick: x
2319
2319
  });
2320
2320
  SA({
2321
2321
  navigationData: A,
2322
2322
  navigateToItem: O,
2323
- onToggleSidebar: X,
2323
+ onToggleSidebar: J,
2324
2324
  enabled: !0
2325
2325
  });
2326
- const P = A.filter((E) => !(!E.showInSidebar || (typeof E.disabled == "function" ? E.disabled() : E.disabled) && E.hideDisabledItem)), v = () => l ? h || /* @__PURE__ */ r(xA, { message: l, backgroundColor: F }) : a ? i || /* @__PURE__ */ r(
2326
+ const P = A.filter((T) => !(!T.showInSidebar || (typeof T.disabled == "function" ? T.disabled() : T.disabled) && T.hideDisabledItem)), y = () => l ? h || /* @__PURE__ */ r(xA, { message: l, backgroundColor: V }) : a ? i || /* @__PURE__ */ r(
2327
2327
  kA,
2328
2328
  {
2329
2329
  itemCount: c,
2330
2330
  collapsed: !0,
2331
- backgroundColor: F
2331
+ backgroundColor: V
2332
2332
  }
2333
- ) : /* @__PURE__ */ r(J, { gap: 8, align: "center", children: P.map((E, W) => /* @__PURE__ */ r(
2334
- no,
2333
+ ) : /* @__PURE__ */ r(_, { gap: 8, align: "center", children: P.map((T, ee) => /* @__PURE__ */ r(
2334
+ io,
2335
2335
  {
2336
- item: E,
2337
- active: f && (D(E) || Q(E)),
2336
+ item: T,
2337
+ active: f && (D(T) || K(T)),
2338
2338
  onClick: O,
2339
- iconColor: U,
2339
+ iconColor: Y,
2340
2340
  activeColor: M
2341
2341
  },
2342
- W
2343
- )) }), K = L === "dark" ? T.colors.dark[5] : T.colors.gray[2];
2342
+ ee
2343
+ )) }), F = L === "dark" ? I.colors.dark[5] : I.colors.gray[2];
2344
2344
  return /* @__PURE__ */ R(
2345
- B,
2345
+ H,
2346
2346
  {
2347
2347
  style: {
2348
2348
  width: fe(t),
2349
2349
  height: fe(o),
2350
- backgroundColor: F,
2350
+ backgroundColor: V,
2351
2351
  display: "flex",
2352
2352
  flexDirection: "column",
2353
2353
  overflow: "hidden",
2354
- boxShadow: g ? T.shadows.sm : void 0,
2355
- borderRight: m ? `1px solid ${K}` : void 0
2354
+ boxShadow: g ? I.shadows.sm : void 0,
2355
+ borderRight: m ? `1px solid ${F}` : void 0
2356
2356
  },
2357
2357
  children: [
2358
2358
  e && /* @__PURE__ */ r(
2359
- B,
2359
+ H,
2360
2360
  {
2361
2361
  style: {
2362
2362
  flexShrink: 0,
2363
2363
  display: "flex",
2364
2364
  justifyContent: "center",
2365
- padding: T.spacing.xs
2365
+ padding: I.spacing.xs
2366
2366
  },
2367
2367
  children: e
2368
2368
  }
@@ -2374,20 +2374,20 @@ function so({
2374
2374
  style: { flex: 1 },
2375
2375
  scrollbarSize: 4,
2376
2376
  type: "hover",
2377
- children: /* @__PURE__ */ r(B, { p: "xs", children: v() })
2377
+ children: /* @__PURE__ */ r(H, { p: "xs", children: y() })
2378
2378
  }
2379
2379
  ),
2380
2380
  n && /* @__PURE__ */ R(Pe, { children: [
2381
2381
  /* @__PURE__ */ r(dA, {}),
2382
2382
  /* @__PURE__ */ r(
2383
- B,
2383
+ H,
2384
2384
  {
2385
2385
  style: {
2386
2386
  flexShrink: 0,
2387
2387
  height: s,
2388
2388
  display: "flex",
2389
2389
  justifyContent: "center",
2390
- padding: T.spacing.xs
2390
+ padding: I.spacing.xs
2391
2391
  },
2392
2392
  children: n
2393
2393
  }
@@ -2397,7 +2397,7 @@ function so({
2397
2397
  }
2398
2398
  );
2399
2399
  }
2400
- function lo(A) {
2400
+ function uo(A) {
2401
2401
  const {
2402
2402
  navigationData: t,
2403
2403
  collapsed: o,
@@ -2418,11 +2418,11 @@ function lo(A) {
2418
2418
  showKeyboardShortcuts: s,
2419
2419
  highlightActiveItem: a,
2420
2420
  onMenuItemClick: l,
2421
- children: /* @__PURE__ */ r(so, { ...A })
2421
+ children: /* @__PURE__ */ r(co, { ...A })
2422
2422
  }
2423
2423
  );
2424
2424
  }
2425
- function ao({
2425
+ function ho({
2426
2426
  navigationData: A,
2427
2427
  width: t = 360,
2428
2428
  collapsedWidth: o = 60,
@@ -2437,44 +2437,44 @@ function ao({
2437
2437
  loadingError: d,
2438
2438
  loadingComponent: u,
2439
2439
  errorComponent: p,
2440
- skeletonItemCount: C = 8,
2440
+ skeletonItemCount: v = 8,
2441
2441
  skeletonGroupCount: b = 3,
2442
2442
  backgroundDarkColor: m,
2443
2443
  backgroundLightColor: g,
2444
2444
  backgroundImage: f,
2445
- textDarkColor: I,
2446
- textLightColor: T,
2445
+ textDarkColor: x,
2446
+ textLightColor: I,
2447
2447
  iconDarkColor: L,
2448
- iconLightColor: X,
2449
- activeColor: F,
2450
- groupBackgroundColor: U,
2448
+ iconLightColor: J,
2449
+ activeColor: V,
2450
+ groupBackgroundColor: Y,
2451
2451
  selectedGroupColor: M,
2452
2452
  groupColor: O,
2453
2453
  groupLabelDarkColor: D,
2454
- groupLabelLightColor: Q,
2454
+ groupLabelLightColor: K,
2455
2455
  withBorder: P = !1,
2456
- highlightActiveItem: v = !0,
2457
- onMenuItemClick: K,
2458
- itemBorderRadius: E,
2459
- itemHorizontalGap: W,
2460
- itemActiveBackground: G
2456
+ highlightActiveItem: y = !0,
2457
+ onMenuItemClick: F,
2458
+ itemBorderRadius: T,
2459
+ itemHorizontalGap: ee,
2460
+ itemActiveBackground: U
2461
2461
  }) {
2462
- const x = me(), { colorScheme: V } = de(), {
2463
- collapsed: se,
2462
+ const k = me(), { colorScheme: G } = de(), {
2463
+ collapsed: Ae,
2464
2464
  toggleCollapsed: Ce,
2465
- activeGroup: le,
2465
+ activeGroup: se,
2466
2466
  setActiveGroup: be
2467
- } = vA(), we = V === "dark" ? m ?? x.colors.dark[7] : g ?? x.white, Se = f ? { background: f } : { backgroundColor: we }, w = f ? "transparent" : we, k = V === "dark" ? I ?? x.colors.gray[3] : T ?? x.colors.gray[7], N = V === "dark" ? L ?? x.colors[x.primaryColor][4] : X ?? x.colors[x.primaryColor][6], y = F ? x.colors[F]?.[6] ?? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][6], H = U || (V === "dark" ? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][7]), Y = M || (V === "dark" ? x.colors[x.primaryColor][8] : x.colors[x.primaryColor][0]), { navigateToItem: z, isItemActive: j } = wA({
2467
+ } = vA(), we = G === "dark" ? m ?? k.colors.dark[7] : g ?? k.white, Se = f ? { background: f } : { backgroundColor: we }, w = f ? "transparent" : we, S = G === "dark" ? x ?? k.colors.gray[3] : I ?? k.colors.gray[7], $ = G === "dark" ? L ?? k.colors[k.primaryColor][4] : J ?? k.colors[k.primaryColor][6], N = V ? k.colors[V]?.[6] ?? k.colors[k.primaryColor][6] : k.colors[k.primaryColor][6], B = Y || (G === "dark" ? k.colors[k.primaryColor][6] : k.colors[k.primaryColor][7]), E = M || (G === "dark" ? k.colors[k.primaryColor][8] : k.colors[k.primaryColor][0]), { navigateToItem: z, isItemActive: j } = wA({
2468
2468
  navigationData: A,
2469
- onMenuItemClick: K
2470
- }), Z = S(
2471
- ($) => !!v && j($),
2472
- [v, j]
2473
- ), ke = {
2474
- itemBorderRadius: E,
2475
- itemHorizontalGap: W,
2476
- activeBackground: G,
2477
- isActive: Z
2469
+ onMenuItemClick: F
2470
+ }), he = C(
2471
+ (Q) => !!y && j(Q),
2472
+ [y, j]
2473
+ ), Ie = {
2474
+ itemBorderRadius: T,
2475
+ itemHorizontalGap: ee,
2476
+ activeBackground: U,
2477
+ isActive: he
2478
2478
  };
2479
2479
  SA({
2480
2480
  navigationData: A,
@@ -2482,38 +2482,38 @@ function ao({
2482
2482
  onToggleSidebar: Ce,
2483
2483
  enabled: !0
2484
2484
  });
2485
- const ee = ce(() => {
2486
- const $ = /* @__PURE__ */ new Map();
2487
- return A.forEach((ue) => {
2488
- if (!ue.showInSidebar || (typeof ue.disabled == "function" ? ue.disabled() : ue.disabled) && ue.hideDisabledItem)
2485
+ const q = ce(() => {
2486
+ const Q = /* @__PURE__ */ new Map();
2487
+ return A.forEach((le) => {
2488
+ if (!le.showInSidebar || (typeof le.disabled == "function" ? le.disabled() : le.disabled) && le.hideDisabledItem)
2489
2489
  return;
2490
- const Fe = ue.group ?? {
2491
- icon: s ?? /* @__PURE__ */ r(JA, { size: "2.2rem", stroke: 1 }),
2490
+ const Ve = le.group ?? {
2491
+ icon: s ?? /* @__PURE__ */ r(ZA, { size: "2.2rem", stroke: 1 }),
2492
2492
  label: "Default",
2493
2493
  name: "Default",
2494
2494
  hint: "Default",
2495
2495
  indexOrder: 0
2496
- }, Ve = $.get(Fe.name);
2497
- Ve ? Ve.items.push(ue) : $.set(Fe.name, {
2498
- group: Fe,
2499
- items: [ue]
2496
+ }, Qe = Q.get(Ve.name);
2497
+ Qe ? Qe.items.push(le) : Q.set(Ve.name, {
2498
+ group: Ve,
2499
+ items: [le]
2500
2500
  });
2501
- }), Array.from($.values()).sort((ue, Qe) => ue.group.indexOrder - Qe.group.indexOrder);
2501
+ }), Array.from(Q.values()).sort((le, Fe) => le.group.indexOrder - Fe.group.indexOrder);
2502
2502
  }, [A, s]);
2503
2503
  oe(() => {
2504
- !le && ee.length > 0 && be(ee[0].group.name);
2505
- }, [le, ee, be]);
2506
- const Ie = ce(() => ee.find((ue) => ue.group.name === le)?.items ?? [], [ee, le]), Ae = S(($) => {
2507
- se ? (Ce(), be($)) : le === $ ? Ce() : be($);
2508
- }, [se, le, Ce, be]), re = se ? 0 : Number(fe(t)) - Number(fe(n)), Ee = () => c && ee.length === 0 ? /* @__PURE__ */ r(
2509
- ro,
2504
+ !se && q.length > 0 && be(q[0].group.name);
2505
+ }, [se, q, be]);
2506
+ const ve = ce(() => q.find((le) => le.group.name === se)?.items ?? [], [q, se]), W = C((Q) => {
2507
+ Ae ? (Ce(), be(Q)) : se === Q ? Ce() : be(Q);
2508
+ }, [Ae, se, Ce, be]), re = Ae ? 0 : Number(fe(t)) - Number(fe(n)), Ee = () => c && q.length === 0 ? /* @__PURE__ */ r(
2509
+ so,
2510
2510
  {
2511
2511
  groupCount: b,
2512
2512
  width: n,
2513
- backgroundColor: H
2513
+ backgroundColor: B
2514
2514
  }
2515
- ) : ee.length <= 1 ? null : /* @__PURE__ */ r(
2516
- J,
2515
+ ) : q.length <= 1 ? null : /* @__PURE__ */ r(
2516
+ _,
2517
2517
  {
2518
2518
  gap: 4,
2519
2519
  p: 4,
@@ -2521,48 +2521,48 @@ function ao({
2521
2521
  style: {
2522
2522
  width: n,
2523
2523
  height: "100%",
2524
- backgroundColor: H,
2524
+ backgroundColor: B,
2525
2525
  flexShrink: 0
2526
2526
  },
2527
- children: ee.map(($) => /* @__PURE__ */ r(
2528
- Ao,
2527
+ children: q.map((Q) => /* @__PURE__ */ r(
2528
+ no,
2529
2529
  {
2530
- group: $.group,
2531
- active: $.group.name === le,
2532
- onClick: () => Ae($.group.name),
2530
+ group: Q.group,
2531
+ active: Q.group.name === se,
2532
+ onClick: () => W(Q.group.name),
2533
2533
  showLabel: a,
2534
- activeColor: Y,
2534
+ activeColor: E,
2535
2535
  inactiveColor: O
2536
2536
  },
2537
- $.group.name
2537
+ Q.group.name
2538
2538
  ))
2539
2539
  }
2540
- ), q = () => d ? p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: we }) : c ? u || /* @__PURE__ */ r(
2540
+ ), X = () => d ? p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: we }) : c ? u || /* @__PURE__ */ r(
2541
2541
  kA,
2542
2542
  {
2543
- itemCount: C,
2543
+ itemCount: v,
2544
2544
  collapsed: !1,
2545
2545
  backgroundColor: we,
2546
2546
  showGroups: !1
2547
2547
  }
2548
- ) : /* @__PURE__ */ r(J, { gap: 2, children: Ie.map(($, ue) => /* @__PURE__ */ r(
2548
+ ) : /* @__PURE__ */ r(_, { gap: 2, children: ve.map((Q, le) => /* @__PURE__ */ r(
2549
2549
  $e,
2550
2550
  {
2551
- item: $,
2551
+ item: Q,
2552
2552
  collapsed: !1,
2553
- active: v && j($),
2553
+ active: y && j(Q),
2554
2554
  onClick: z,
2555
- textColor: k,
2556
- iconColor: N,
2557
- hoverColor: y,
2558
- ...ke
2555
+ textColor: S,
2556
+ iconColor: $,
2557
+ hoverColor: N,
2558
+ ...Ie
2559
2559
  },
2560
- ue
2561
- )) }), ye = V === "dark" ? x.colors.dark[5] : x.colors.gray[2];
2562
- return ee.length <= 1 ? /* @__PURE__ */ R(Ye, { direction: "column", w: se ? o : t, h: "100%", style: Se, children: [
2563
- l && /* @__PURE__ */ r(B, { style: { width: "100%", flexShrink: 0 }, children: l }),
2560
+ le
2561
+ )) }), ke = G === "dark" ? k.colors.dark[5] : k.colors.gray[2];
2562
+ return q.length <= 1 ? /* @__PURE__ */ R(Ye, { direction: "column", w: Ae ? o : t, h: "100%", style: Se, children: [
2563
+ l && /* @__PURE__ */ r(H, { style: { width: "100%", flexShrink: 0 }, children: l }),
2564
2564
  /* @__PURE__ */ r(
2565
- B,
2565
+ H,
2566
2566
  {
2567
2567
  style: {
2568
2568
  flex: 1,
@@ -2571,60 +2571,60 @@ function ao({
2571
2571
  display: "flex",
2572
2572
  flexDirection: "column",
2573
2573
  overflow: "hidden",
2574
- borderRight: P ? `1px solid ${ye}` : void 0
2574
+ borderRight: P ? `1px solid ${ke}` : void 0
2575
2575
  },
2576
- children: /* @__PURE__ */ r(ze, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: se ? /* @__PURE__ */ r(J, { gap: 8, align: "center", children: A.filter(($) => $.showInSidebar ? !((typeof $.disabled == "function" ? $.disabled() : $.disabled) && $.hideDisabledItem) : !1).map(($, ue) => /* @__PURE__ */ r(
2576
+ children: /* @__PURE__ */ r(ze, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(H, { p: "xs", children: Ae ? /* @__PURE__ */ r(_, { gap: 8, align: "center", children: A.filter((Q) => Q.showInSidebar ? !((typeof Q.disabled == "function" ? Q.disabled() : Q.disabled) && Q.hideDisabledItem) : !1).map((Q, le) => /* @__PURE__ */ r(
2577
2577
  $e,
2578
2578
  {
2579
- item: $,
2579
+ item: Q,
2580
2580
  collapsed: !0,
2581
- active: v && j($),
2581
+ active: y && j(Q),
2582
2582
  onClick: z,
2583
- textColor: k,
2584
- iconColor: N,
2585
- hoverColor: y,
2586
- ...ke
2583
+ textColor: S,
2584
+ iconColor: $,
2585
+ hoverColor: N,
2586
+ ...Ie
2587
2587
  },
2588
- ue
2589
- )) }) : q() }) })
2588
+ le
2589
+ )) }) : X() }) })
2590
2590
  }
2591
2591
  ),
2592
- i && /* @__PURE__ */ r(B, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
2593
- ] }) : /* @__PURE__ */ R(Ye, { direction: "column", w: se ? n : t, h: "100%", style: Se, children: [
2594
- l && /* @__PURE__ */ r(B, { style: { width: "100%", flexShrink: 0 }, children: l }),
2592
+ i && /* @__PURE__ */ r(H, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
2593
+ ] }) : /* @__PURE__ */ R(Ye, { direction: "column", w: Ae ? n : t, h: "100%", style: Se, children: [
2594
+ l && /* @__PURE__ */ r(H, { style: { width: "100%", flexShrink: 0 }, children: l }),
2595
2595
  /* @__PURE__ */ R(
2596
- B,
2596
+ H,
2597
2597
  {
2598
2598
  style: {
2599
2599
  flex: 1,
2600
2600
  width: "100%",
2601
2601
  display: "flex",
2602
2602
  overflow: "hidden",
2603
- borderRight: P ? `1px solid ${ye}` : void 0
2603
+ borderRight: P ? `1px solid ${ke}` : void 0
2604
2604
  },
2605
2605
  children: [
2606
2606
  Ee(),
2607
2607
  /* @__PURE__ */ r(
2608
- B,
2608
+ H,
2609
2609
  {
2610
2610
  style: {
2611
- width: se ? 0 : re,
2611
+ width: Ae ? 0 : re,
2612
2612
  height: "100%",
2613
2613
  backgroundColor: w,
2614
2614
  overflow: "hidden",
2615
2615
  transition: "width 200ms ease",
2616
- borderLeft: ee.length > 1 ? `1px solid ${V === "dark" ? x.colors.dark[5] : x.colors.gray[2]}` : void 0
2616
+ borderLeft: q.length > 1 ? `1px solid ${G === "dark" ? k.colors.dark[5] : k.colors.gray[2]}` : void 0
2617
2617
  },
2618
- children: !se && le && /* @__PURE__ */ r(ze, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(B, { p: "xs", children: q() }) })
2618
+ children: !Ae && se && /* @__PURE__ */ r(ze, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(H, { p: "xs", children: X() }) })
2619
2619
  }
2620
2620
  )
2621
2621
  ]
2622
2622
  }
2623
2623
  ),
2624
- i && /* @__PURE__ */ r(B, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
2624
+ i && /* @__PURE__ */ r(H, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
2625
2625
  ] });
2626
2626
  }
2627
- function io(A) {
2627
+ function fo(A) {
2628
2628
  const {
2629
2629
  navigationData: t,
2630
2630
  collapsed: o,
@@ -2651,28 +2651,28 @@ function io(A) {
2651
2651
  showKeyboardShortcuts: i,
2652
2652
  highlightActiveItem: h,
2653
2653
  onMenuItemClick: c,
2654
- children: /* @__PURE__ */ r(ao, { ...A })
2654
+ children: /* @__PURE__ */ r(ho, { ...A })
2655
2655
  }
2656
2656
  );
2657
2657
  }
2658
- function co({
2658
+ function po({
2659
2659
  variant: A = "standard",
2660
2660
  ...t
2661
2661
  }) {
2662
2662
  switch (A) {
2663
2663
  case "minimal":
2664
- return /* @__PURE__ */ r(lo, { ...t });
2664
+ return /* @__PURE__ */ r(uo, { ...t });
2665
2665
  case "rail":
2666
- return /* @__PURE__ */ r(io, { ...t });
2666
+ return /* @__PURE__ */ r(fo, { ...t });
2667
2667
  case "standard":
2668
2668
  default:
2669
- return /* @__PURE__ */ r(oo, { ...t });
2669
+ return /* @__PURE__ */ r(ao, { ...t });
2670
2670
  }
2671
2671
  }
2672
2672
  function IA(A) {
2673
2673
  return A == null;
2674
2674
  }
2675
- function lr(A) {
2675
+ function cr(A) {
2676
2676
  return Object.prototype.toString.call(A) === "[object RegExp]";
2677
2677
  }
2678
2678
  function hA(A) {
@@ -2681,10 +2681,10 @@ function hA(A) {
2681
2681
  function We(A) {
2682
2682
  return typeof A == "function";
2683
2683
  }
2684
- function ar(A) {
2685
- return { set: (t, o) => (A.setAttribute(t, o), ar(A)) };
2684
+ function dr(A) {
2685
+ return { set: (t, o) => (A.setAttribute(t, o), dr(A)) };
2686
2686
  }
2687
- function $A(A = 100) {
2687
+ function FA(A = 100) {
2688
2688
  let t;
2689
2689
  return new Promise((o, e) => {
2690
2690
  t = setTimeout(() => {
@@ -2692,47 +2692,47 @@ function $A(A = 100) {
2692
2692
  }, A);
2693
2693
  });
2694
2694
  }
2695
- function QA(A, t) {
2696
- return (hA(A) ? A : IA(A) ? [] : [A]).some((o) => lr(o) ? o.test(t) : t === o);
2695
+ function VA(A, t) {
2696
+ return (hA(A) ? A : IA(A) ? [] : [A]).some((o) => cr(o) ? o.test(t) : t === o);
2697
2697
  }
2698
2698
  function lA(A) {
2699
2699
  setTimeout(A, 0);
2700
2700
  }
2701
- var ir = Ne({ active: !1, refresh: () => {
2702
- }, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }), uo = BA(function(A) {
2701
+ var ur = Ne({ active: !1, refresh: () => {
2702
+ }, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }), go = YA(function(A) {
2703
2703
  let { children: t, active: o, refresh: e, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l } = A, i = ce(() => ({ active: o, refresh: e, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l }), [o, e, n, s, a, l]);
2704
- return r(ir.Provider, { value: i, children: t });
2705
- }), ho = uo, cr = GA.Activity, fo = cr ?? GA.Fragment, po = !!cr, dr = "keepalive-cache-div";
2706
- function ur(A) {
2704
+ return r(ur.Provider, { value: i, children: t });
2705
+ }), bo = go, hr = HA.Activity, mo = hr ?? HA.Fragment, yo = !!hr, fr = "keepalive-cache-div";
2706
+ function pr(A) {
2707
2707
  return A ? Array.from(A.children) : [];
2708
2708
  }
2709
2709
  function fA(A) {
2710
2710
  A.forEach((t) => {
2711
- t.classList.contains(dr) && t.remove();
2711
+ t.classList.contains(fr) && t.remove();
2712
2712
  });
2713
2713
  }
2714
- function KA(A, t) {
2715
- let o = ur(A);
2714
+ function GA(A, t) {
2715
+ let o = pr(A);
2716
2716
  fA(o), A.appendChild(t), t.classList.remove("inactive"), t.classList.add("active");
2717
2717
  }
2718
- function FA(A, t) {
2719
- let o = ur(A).filter((e) => e.classList.contains("active") && e.getAttribute("data-cache-key") !== t);
2718
+ function BA(A, t) {
2719
+ let o = pr(A).filter((e) => e.classList.contains("active") && e.getAttribute("data-cache-key") !== t);
2720
2720
  return o.forEach((e) => {
2721
2721
  e.classList.remove("active"), e.classList.add("inactive");
2722
2722
  }), o;
2723
2723
  }
2724
- function go(A, t, o) {
2725
- return o ? QA(o, A) : t ? !QA(t, A) : !0;
2724
+ function vo(A, t, o) {
2725
+ return o ? VA(o, A) : t ? !VA(t, A) : !0;
2726
2726
  }
2727
- var bo = BA(function(A) {
2728
- let { errorElement: t = UA, cacheNodeClassName: o, children: e, cacheKey: n, exclude: s, include: a, enableActivity: l } = A, { active: i, renderCount: h, destroy: c, transition: d, viewTransition: u, duration: p, containerDivRef: C } = A, b = _(!1);
2727
+ var Co = YA(function(A) {
2728
+ let { errorElement: t = qA, cacheNodeClassName: o, children: e, cacheKey: n, exclude: s, include: a, enableActivity: l } = A, { active: i, renderCount: h, destroy: c, transition: d, viewTransition: u, duration: p, containerDivRef: v } = A, b = Z(!1);
2729
2729
  b.current = b.current || i;
2730
2730
  let m = ce(() => {
2731
2731
  let g = document.createElement("div");
2732
- return ar(g).set("data-cache-key", n).set("style", "height: 100%").set("data-render-count", h.toString()), g.className = dr + (o ? ` ${o}` : ""), g;
2732
+ return dr(g).set("data-cache-key", n).set("style", "height: 100%").set("data-render-count", h.toString()), g.className = fr + (o ? ` ${o}` : ""), g;
2733
2733
  }, [h, o]);
2734
2734
  return oe(() => {
2735
- let g = go(n, s, a), f = C.current;
2735
+ let g = vo(n, s, a), f = v.current;
2736
2736
  if (!f) {
2737
2737
  console.warn("keepalive: cache container not found");
2738
2738
  return;
@@ -2740,90 +2740,90 @@ var bo = BA(function(A) {
2740
2740
  if (d)
2741
2741
  (async () => {
2742
2742
  if (i) {
2743
- let I = FA(f, n);
2744
- if (await $A(p - 40), fA(I), f.contains(m))
2743
+ let x = BA(f, n);
2744
+ if (await FA(p - 40), fA(x), f.contains(m))
2745
2745
  return;
2746
- KA(f, m);
2746
+ GA(f, m);
2747
2747
  } else
2748
- g || (await $A(p), c(n));
2748
+ g || (await FA(p), c(n));
2749
2749
  })();
2750
2750
  else if (i) {
2751
- let I = () => {
2752
- let T = FA(f, n);
2753
- fA(T), !f.contains(m) && KA(f, m);
2751
+ let x = () => {
2752
+ let I = BA(f, n);
2753
+ fA(I), !f.contains(m) && GA(f, m);
2754
2754
  };
2755
- u && document.startViewTransition ? document.startViewTransition(I) : I();
2755
+ u && document.startViewTransition ? document.startViewTransition(x) : x();
2756
2756
  } else
2757
2757
  g || c(n);
2758
- }, [i, C, n, s, a]), b.current ? Rt(r(t, { children: po && l ? R(fo, { mode: i ? "visible" : "hidden", children: [" ", e] }) : e }), m, n) : null;
2759
- }, (A, t) => A.active === t.active && A.renderCount === t.renderCount && A.children === t.children && A.exclude === t.exclude && A.include === t.include), mo = bo, yo = (A) => {
2758
+ }, [i, v, n, s, a]), b.current ? Dt(r(t, { children: yo && l ? R(mo, { mode: i ? "visible" : "hidden", children: [" ", e] }) : e }), m, n) : null;
2759
+ }, (A, t) => A.active === t.active && A.renderCount === t.renderCount && A.children === t.children && A.exclude === t.exclude && A.include === t.include), wo = Co, So = (A) => {
2760
2760
  typeof nA < "u" && We(nA) ? nA(A) : A();
2761
- }, vo = yo;
2762
- function hr() {
2763
- return _(null);
2761
+ }, ko = So;
2762
+ function gr() {
2763
+ return Z(null);
2764
2764
  }
2765
- function Co(A) {
2766
- let { activeCacheKey: t, max: o = 10, exclude: e, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: i = "keep-alive-render", errorElement: h, transition: c = !1, viewTransition: d = !1, duration: u = 200, children: p, aliveRef: C, maxAliveTime: b = 0, enableActivity: m = !1 } = A, g = a || _(null), [f, I] = ge([]);
2767
- kr(() => {
2768
- IA(t) || vo(() => {
2769
- I((M) => {
2765
+ function xo(A) {
2766
+ let { activeCacheKey: t, max: o = 10, exclude: e, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: i = "keep-alive-render", errorElement: h, transition: c = !1, viewTransition: d = !1, duration: u = 200, children: p, aliveRef: v, maxAliveTime: b = 0, enableActivity: m = !1 } = A, g = a || Z(null), [f, x] = ge([]);
2767
+ Er(() => {
2768
+ IA(t) || ko(() => {
2769
+ x((M) => {
2770
2770
  let O = Date.now();
2771
2771
  if (M.find((D) => D.cacheKey === t))
2772
2772
  return M.map((D) => {
2773
2773
  if (D.cacheKey === t) {
2774
- let Q = !1;
2774
+ let K = !1;
2775
2775
  if (We(s) && s(t), b) {
2776
2776
  let P = D.lastActiveTime;
2777
2777
  if (hA(b)) {
2778
- let v = b.find((K) => lr(K.match) ? K.match.test(t) : K.match === t);
2779
- v && (Q = v && P + v.expire * 1e3 < O);
2778
+ let y = b.find((F) => cr(F.match) ? F.match.test(t) : F.match === t);
2779
+ y && (K = y && P + y.expire * 1e3 < O);
2780
2780
  } else
2781
- Q = P + b * 1e3 < O;
2781
+ K = P + b * 1e3 < O;
2782
2782
  }
2783
- return { ...D, ele: p, lastActiveTime: O, renderCount: Q ? D.renderCount + 1 : D.renderCount };
2783
+ return { ...D, ele: p, lastActiveTime: O, renderCount: K ? D.renderCount + 1 : D.renderCount };
2784
2784
  }
2785
2785
  return D;
2786
2786
  });
2787
2787
  if (We(s) && s(t), M.length > o) {
2788
- let D = M.reduce((Q, P) => Q.lastActiveTime < P.lastActiveTime ? Q : P);
2788
+ let D = M.reduce((K, P) => K.lastActiveTime < P.lastActiveTime ? K : P);
2789
2789
  M.splice(M.indexOf(D), 1);
2790
2790
  }
2791
2791
  return [...M, { cacheKey: t, lastActiveTime: O, ele: p, renderCount: 0 }];
2792
2792
  });
2793
2793
  });
2794
2794
  }, [t, p]);
2795
- let T = S((M) => {
2796
- I((O) => {
2795
+ let I = C((M) => {
2796
+ x((O) => {
2797
2797
  let D = M || t;
2798
- return O.map((Q) => Q.cacheKey === D ? { ...Q, renderCount: Q.renderCount + 1 } : Q);
2798
+ return O.map((K) => K.cacheKey === D ? { ...K, renderCount: K.renderCount + 1 } : K);
2799
2799
  });
2800
- }, [I, t]), L = S((M) => {
2800
+ }, [x, t]), L = C((M) => {
2801
2801
  let O = M || t, D = hA(O) ? O : [O];
2802
- return new Promise((Q) => {
2802
+ return new Promise((K) => {
2803
2803
  lA(() => {
2804
- I((P) => [...P.filter((v) => !D.includes(v.cacheKey))]), Q();
2804
+ x((P) => [...P.filter((y) => !D.includes(y.cacheKey))]), K();
2805
2805
  });
2806
2806
  });
2807
- }, [I, t]), X = S(() => new Promise((M) => {
2807
+ }, [x, t]), J = C(() => new Promise((M) => {
2808
2808
  lA(() => {
2809
- I([]), M();
2809
+ x([]), M();
2810
2810
  });
2811
- }), [I]), F = S((M) => {
2811
+ }), [x]), V = C((M) => {
2812
2812
  let O = M || t;
2813
2813
  return new Promise((D) => {
2814
2814
  lA(() => {
2815
- I((Q) => [...Q.filter((P) => P.cacheKey === O)]), D();
2815
+ x((K) => [...K.filter((P) => P.cacheKey === O)]), D();
2816
2816
  });
2817
2817
  });
2818
- }, [t, I]), U = S(() => f, [f]);
2819
- return xr(C, () => ({ refresh: T, destroy: L, destroyAll: X, destroyOther: F, getCacheNodes: U })), R(UA, { children: [r("div", { ref: g, className: i, style: { height: "100%" } }), f.map((M) => {
2820
- let { cacheKey: O, ele: D, renderCount: Q } = M;
2821
- return r(ho, { active: t === O, refresh: T, destroy: L, destroyAll: X, destroyOther: F, getCacheNodes: U, children: r(mo, { destroy: L, include: n, exclude: e, transition: c, viewTransition: d, duration: u, renderCount: Q, containerDivRef: g, errorElement: h, active: t === O, cacheNodeClassName: l, cacheKey: O, enableActivity: m, children: D }) }, `${O}-${Q}`);
2818
+ }, [t, x]), Y = C(() => f, [f]);
2819
+ return Rr(v, () => ({ refresh: I, destroy: L, destroyAll: J, destroyOther: V, getCacheNodes: Y })), R(qA, { children: [r("div", { ref: g, className: i, style: { height: "100%" } }), f.map((M) => {
2820
+ let { cacheKey: O, ele: D, renderCount: K } = M;
2821
+ return r(bo, { active: t === O, refresh: I, destroy: L, destroyAll: J, destroyOther: V, getCacheNodes: Y, children: r(wo, { destroy: L, include: n, exclude: e, transition: c, viewTransition: d, duration: u, renderCount: K, containerDivRef: g, errorElement: h, active: t === O, cacheNodeClassName: l, cacheKey: O, enableActivity: m, children: D }) }, `${O}-${K}`);
2822
2822
  })] });
2823
2823
  }
2824
- var wo = Co, So = () => ve(ir), fr = So;
2825
- function ko(A, t, o = !1, e) {
2826
- let { active: n } = fr(), s = _(!1);
2824
+ var Io = xo, To = () => ye(ur), br = To;
2825
+ function Eo(A, t, o = !1, e) {
2826
+ let { active: n } = br(), s = Z(!1);
2827
2827
  e(() => {
2828
2828
  if (!n)
2829
2829
  return;
@@ -2837,23 +2837,23 @@ function ko(A, t, o = !1, e) {
2837
2837
  };
2838
2838
  }, [n, ...t]);
2839
2839
  }
2840
- var xo = ko, Io = (A, t, o = !1) => {
2841
- xo(A, t, o, oe);
2842
- }, To = Io;
2843
- const pr = Ne({
2840
+ var Ro = Eo, Po = (A, t, o = !1) => {
2841
+ Ro(A, t, o, oe);
2842
+ }, Lo = Po;
2843
+ const mr = Ne({
2844
2844
  isVisible: !0,
2845
2845
  wasRestored: !1,
2846
2846
  restoreCount: 0
2847
- }), Kn = () => ve(pr), TA = Ne({ params: {} }), Fn = () => ve(TA).params, Vn = () => {
2848
- const A = Ar(), o = ve(TA).params;
2847
+ }), Bn = () => ye(mr), TA = Ne({ params: {} }), Un = () => ye(TA).params, Hn = () => {
2848
+ const A = or(), o = ye(TA).params;
2849
2849
  return ce(() => {
2850
2850
  if (!A)
2851
2851
  return !1;
2852
2852
  const n = Object.keys(A);
2853
2853
  return n.length === 0 ? !1 : n.some((s) => A[s] !== void 0);
2854
2854
  }, [A]) ? A : o;
2855
- }, Ze = Ne(null), Eo = () => ve(Ze), Ro = ({ children: A }) => {
2856
- const t = hr(), o = ce(() => ({
2855
+ }, Ze = Ne(null), Mo = () => ye(Ze), Do = ({ children: A }) => {
2856
+ const t = gr(), o = ce(() => ({
2857
2857
  requestUnregister: (e) => {
2858
2858
  t.current?.destroy(e);
2859
2859
  },
@@ -2868,37 +2868,37 @@ const pr = Ne({
2868
2868
  },
2869
2869
  getCacheNodes: () => t.current?.getCacheNodes() || []
2870
2870
  }), [t]);
2871
- return /* @__PURE__ */ r(Ze.Provider, { value: o, children: /* @__PURE__ */ r(gr.Provider, { value: t, children: A }) });
2872
- }, gr = Ne(null), eA = (A) => null, Po = (A) => A.includes(":"), Lo = (A, t) => Po(A) ? t : A, Mo = ({ children: A }) => {
2873
- const { active: t } = fr(), o = Ar(), e = Xe(), n = vt(), s = _(o), [a, l] = ge(o);
2871
+ return /* @__PURE__ */ r(Ze.Provider, { value: o, children: /* @__PURE__ */ r(yr.Provider, { value: t, children: A }) });
2872
+ }, yr = Ne(null), eA = (A) => null, No = (A) => A.includes(":"), zo = (A, t) => No(A) ? t : A, Oo = ({ children: A }) => {
2873
+ const { active: t } = br(), o = or(), e = Xe(), n = kt(), s = Z(o), [a, l] = ge(o);
2874
2874
  s.current = o;
2875
- const i = _({ location: e, navigationType: n });
2875
+ const i = Z({ location: e, navigationType: n });
2876
2876
  t && (i.current = { location: e, navigationType: n });
2877
2877
  const h = ce(
2878
2878
  () => t ? { location: e, navigationType: n } : i.current,
2879
2879
  [t, e, n]
2880
- ), [c, d] = ge(0), u = _(t);
2881
- To(() => {
2880
+ ), [c, d] = ge(0), u = Z(t);
2881
+ Lo(() => {
2882
2882
  l(s.current), requestAnimationFrame(() => {
2883
2883
  window.dispatchEvent(new Event("resize"));
2884
2884
  });
2885
2885
  }, []), oe(() => {
2886
- t && (l(s.current), u.current || d((C) => C + 1)), u.current = t;
2886
+ t && (l(s.current), u.current || d((v) => v + 1)), u.current = t;
2887
2887
  }, [t]);
2888
2888
  const p = ce(
2889
2889
  () => ({ isVisible: t, wasRestored: c > 0, restoreCount: c }),
2890
2890
  [t, c]
2891
2891
  );
2892
- return /* @__PURE__ */ r(Ct.Provider, { value: h, children: /* @__PURE__ */ r(pr.Provider, { value: p, children: /* @__PURE__ */ r(TA.Provider, { value: { params: a }, children: A }) }) });
2893
- }, Do = "__nokeep__:", br = xe.memo(({ keepAlivePaths: A, maxKeepAliveTabs: t, aliveRef: o }) => {
2894
- const e = Xe(), n = mt(), s = ce(() => {
2892
+ return /* @__PURE__ */ r(xt.Provider, { value: h, children: /* @__PURE__ */ r(mr.Provider, { value: p, children: /* @__PURE__ */ r(TA.Provider, { value: { params: a }, children: A }) }) });
2893
+ }, $o = "__nokeep__:", vr = xe.memo(({ keepAlivePaths: A, maxKeepAliveTabs: t, aliveRef: o }) => {
2894
+ const e = Xe(), n = wt(), s = ce(() => {
2895
2895
  const l = A.find(
2896
- (i) => yt({ path: i, end: !0 }, e.pathname)
2896
+ (i) => St({ path: i, end: !0 }, e.pathname)
2897
2897
  );
2898
- return l ? Lo(l, e.pathname) : Do + e.pathname;
2898
+ return l ? zo(l, e.pathname) : $o + e.pathname;
2899
2899
  }, [A, e.pathname]), a = ce(() => [/^__nokeep__:/], []);
2900
2900
  return /* @__PURE__ */ r(
2901
- wo,
2901
+ Io,
2902
2902
  {
2903
2903
  activeCacheKey: s,
2904
2904
  max: t,
@@ -2908,34 +2908,34 @@ const pr = Ne({
2908
2908
  }
2909
2909
  );
2910
2910
  });
2911
- br.displayName = "KeepAliveLayout";
2912
- const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
2913
- const e = hr(), s = ve(gr) || e, a = _(null), l = _(""), { keepAlivePaths: i, routeElements: h } = ce(() => {
2914
- const p = xe.Children.toArray(A), C = p.map((f) => {
2911
+ vr.displayName = "KeepAliveLayout";
2912
+ const Qo = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
2913
+ const e = gr(), s = ye(yr) || e, a = Z(null), l = Z(""), { keepAlivePaths: i, routeElements: h } = ce(() => {
2914
+ const p = xe.Children.toArray(A), v = p.map((f) => {
2915
2915
  if (xe.isValidElement(f)) {
2916
- const I = f.props?.path || "", T = f.type === eA;
2917
- return `${I}:${T}`;
2916
+ const x = f.props?.path || "", I = f.type === eA;
2917
+ return `${x}:${I}`;
2918
2918
  }
2919
2919
  return "";
2920
2920
  }).join("|");
2921
- if (a.current && l.current === C)
2921
+ if (a.current && l.current === v)
2922
2922
  return a.current;
2923
- l.current = C;
2923
+ l.current = v;
2924
2924
  const b = [], m = [];
2925
2925
  p.forEach((f) => {
2926
2926
  if (xe.isValidElement(f))
2927
2927
  if (f.type === eA) {
2928
- const I = f.props;
2929
- I.path && b.push(I.path);
2930
- const T = I.component, L = typeof T == "function" ? xe.createElement(T) : T;
2928
+ const x = f.props;
2929
+ x.path && b.push(x.path);
2930
+ const I = x.component, L = typeof I == "function" ? xe.createElement(I) : I;
2931
2931
  m.push(
2932
2932
  /* @__PURE__ */ r(
2933
2933
  Ke,
2934
2934
  {
2935
- path: I.path,
2936
- element: /* @__PURE__ */ r(Mo, { children: L })
2935
+ path: x.path,
2936
+ element: /* @__PURE__ */ r(Oo, { children: L })
2937
2937
  },
2938
- I.path || f.key
2938
+ x.path || f.key
2939
2939
  )
2940
2940
  );
2941
2941
  } else
@@ -2943,7 +2943,7 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
2943
2943
  });
2944
2944
  const g = { keepAlivePaths: b, routeElements: m };
2945
2945
  return a.current = g, g;
2946
- }, [A]), c = ve(Ze), d = ce(() => ({
2946
+ }, [A]), c = ye(Ze), d = ce(() => ({
2947
2947
  requestUnregister: (p) => {
2948
2948
  s.current?.destroy(p);
2949
2949
  },
@@ -2957,8 +2957,8 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
2957
2957
  s.current?.destroyOther(p);
2958
2958
  },
2959
2959
  getCacheNodes: () => s.current?.getCacheNodes() || []
2960
- }), [s]), u = /* @__PURE__ */ r(er, { ...o, children: /* @__PURE__ */ r(Ke, { element: /* @__PURE__ */ r(
2961
- br,
2960
+ }), [s]), u = /* @__PURE__ */ r(tr, { ...o, children: /* @__PURE__ */ r(Ke, { element: /* @__PURE__ */ r(
2961
+ vr,
2962
2962
  {
2963
2963
  keepAlivePaths: i,
2964
2964
  maxKeepAliveTabs: t,
@@ -2966,28 +2966,28 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
2966
2966
  }
2967
2967
  ), children: h }) });
2968
2968
  return c ? u : /* @__PURE__ */ r(Ze.Provider, { value: d, children: u });
2969
- }, mr = Ne({
2969
+ }, Cr = Ne({
2970
2970
  start: () => {
2971
2971
  },
2972
2972
  done: () => {
2973
2973
  },
2974
2974
  isNavigating: !1
2975
- }), yr = () => ve(mr), zo = 150;
2976
- function Oo({ children: A }) {
2977
- const [t, o] = ge(!1), e = _(null), n = _(0), s = S(() => {
2975
+ }), wr = () => ye(Cr), Ko = 150;
2976
+ function Fo({ children: A }) {
2977
+ const [t, o] = ge(!1), e = Z(null), n = Z(0), s = C(() => {
2978
2978
  e.current && clearTimeout(e.current), n.current = Date.now(), o(!0);
2979
- }, []), a = S(() => {
2980
- const l = Date.now() - n.current, i = Math.max(0, zo - l);
2979
+ }, []), a = C(() => {
2980
+ const l = Date.now() - n.current, i = Math.max(0, Ko - l);
2981
2981
  e.current = setTimeout(() => {
2982
2982
  o(!1);
2983
2983
  }, i);
2984
2984
  }, []);
2985
- return /* @__PURE__ */ R(mr.Provider, { value: { start: s, done: a, isNavigating: t }, children: [
2985
+ return /* @__PURE__ */ R(Cr.Provider, { value: { start: s, done: a, isNavigating: t }, children: [
2986
2986
  /* @__PURE__ */ r("div", { className: "archbase-nav-progress", "data-active": t, children: /* @__PURE__ */ r("div", { className: "archbase-nav-progress-bar" }) }),
2987
2987
  A
2988
2988
  ] });
2989
2989
  }
2990
- function $o(A, t, o, e, n, s) {
2990
+ function Vo(A, t, o, e, n, s) {
2991
2991
  return /* @__PURE__ */ r(
2992
2992
  "div",
2993
2993
  {
@@ -3005,13 +3005,13 @@ function $o(A, t, o, e, n, s) {
3005
3005
  variant: "filled",
3006
3006
  radius: "xl",
3007
3007
  onClick: s,
3008
- children: o.collapsed ? /* @__PURE__ */ r(gA, {}) : /* @__PURE__ */ r(Br, {})
3008
+ children: o.collapsed ? /* @__PURE__ */ r(gA, {}) : /* @__PURE__ */ r(qr, {})
3009
3009
  }
3010
3010
  )
3011
3011
  }
3012
3012
  );
3013
3013
  }
3014
- function Qo({
3014
+ function Go({
3015
3015
  children: A,
3016
3016
  header: t,
3017
3017
  footer: o,
@@ -3026,180 +3026,182 @@ function Qo({
3026
3026
  sidebarDefaultGroupIcon: d,
3027
3027
  sideBarHeaderHeight: u,
3028
3028
  sideBarHeaderContent: p,
3029
- selectedGroupColor: C = "#132441",
3029
+ selectedGroupColor: v = "#132441",
3030
3030
  groupColor: b = "white",
3031
3031
  backgroundGroupColor: m = "#132441",
3032
3032
  groupLabelDarkColor: g = "white",
3033
3033
  groupLabelLightColor: f = "white",
3034
- headerColor: I,
3035
- footerHeight: T,
3034
+ headerColor: x,
3035
+ footerHeight: I,
3036
3036
  iconsWithBackground: L,
3037
- menuItemHeight: X,
3038
- showSideBar: F = !0,
3039
- showHeader: U = !0,
3037
+ menuItemHeight: J,
3038
+ showSideBar: V = !0,
3039
+ showHeader: Y = !0,
3040
3040
  headerStyle: M = {},
3041
3041
  highlightActiveMenuItem: O = !0,
3042
3042
  customRenderSidebar: D,
3043
- showCollapsedButton: Q = !0,
3043
+ showCollapsedButton: K = !0,
3044
3044
  sideBarBackgroundDarkColor: P,
3045
- sideBarBackgroundLightColor: v,
3046
- sideBarTextDarkColor: K,
3047
- sideBarTextLightColor: E,
3048
- sideBarIconDarkColor: W,
3049
- sideBarIconLightColor: G,
3050
- sideBarBackgroundImage: x,
3051
- mainBackground: V,
3045
+ sideBarBackgroundLightColor: y,
3046
+ sideBarTextDarkColor: F,
3047
+ sideBarTextLightColor: T,
3048
+ sideBarIconDarkColor: ee,
3049
+ sideBarIconLightColor: U,
3050
+ sideBarBackgroundImage: k,
3051
+ mainBackground: G,
3052
+ mainBorderRadius: Ae,
3053
+ mainBorderColor: Ce,
3052
3054
  sideBarItemBorderRadius: se,
3053
- sideBarItemHorizontalGap: Ce,
3054
- sideBarItemActiveBackground: le,
3055
- sideBarCollapsedSubmenuWidth: be,
3056
- sidebarActiveColor: we,
3057
- maxKeepAliveTabs: Se = 10,
3058
- sidebarVariant: w = "legacy",
3059
- sidebarShowSearch: k = !1
3055
+ sideBarItemHorizontalGap: be,
3056
+ sideBarItemActiveBackground: we,
3057
+ sideBarCollapsedSubmenuWidth: Se,
3058
+ sidebarActiveColor: w,
3059
+ maxKeepAliveTabs: S = 10,
3060
+ sidebarVariant: $ = "legacy",
3061
+ sidebarShowSearch: N = !1
3060
3062
  }) {
3061
- const N = me(), y = ve(rA), { colorScheme: H } = de(), Y = kt(), [z, j] = xt(), Z = St(
3062
- `(max-width: ${s ? fe(s) : N.breakpoints.md})`
3063
- ), ke = (ae) => {
3064
- ae.link && (ae.routeParams ? Y(ae.link, {}, ae.routeParams) : Y(ae.link));
3065
- }, ee = (ae, he) => {
3066
- ae == he && y.collapsed && y.setCollapsed(!1), y.setCollapsed(ae == he);
3067
- }, Ie = () => {
3068
- let ae = 0, he = 0;
3069
- return u && (ae = Number(fe(u))), a && (he = Number(fe(a))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${ae + he}px)`;
3070
- }, Ae = () => {
3071
- let ae = 0, he = 0;
3072
- return u && (ae = Number(fe(u))), a && (he = Number(fe(a))), `calc(100vh - 28px - ${ae + he}px)`;
3073
- }, re = ce(() => {
3063
+ const B = me(), E = ye(rA), { colorScheme: z } = de(), j = Et(), [he, Ie] = Rt(), q = Tt(
3064
+ `(max-width: ${s ? fe(s) : B.breakpoints.md})`
3065
+ ), ve = (ae) => {
3066
+ ae.link && (ae.routeParams ? j(ae.link, {}, ae.routeParams) : j(ae.link));
3067
+ }, W = (ae, ue) => {
3068
+ ae == ue && E.collapsed && E.setCollapsed(!1), E.setCollapsed(ae == ue);
3069
+ }, re = () => {
3070
+ let ae = 0, ue = 0;
3071
+ return u && (ae = Number(fe(u))), a && (ue = Number(fe(a))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${ae + ue}px)`;
3072
+ }, Ee = () => {
3073
+ let ae = 0, ue = 0;
3074
+ return u && (ae = Number(fe(u))), a && (ue = Number(fe(a))), `calc(100vh - 28px - ${ae + ue}px)`;
3075
+ }, X = ce(() => {
3074
3076
  const ae = [];
3075
- return y.navigationData.forEach((he, Ge) => {
3076
- he.links ? he.links.forEach((Oe, RA) => {
3077
- Oe.keepAlive === !1 ? ae.push(/* @__PURE__ */ r(Ke, { path: Oe.link, element: Oe.component }, `${Oe.link}_${RA}`)) : ae.push(
3078
- /* @__PURE__ */ r(eA, { path: Oe.link, component: Oe.component }, `${Oe.link}_${RA}`)
3077
+ return E.navigationData.forEach((ue, Ge) => {
3078
+ ue.links ? ue.links.forEach((Oe, MA) => {
3079
+ Oe.keepAlive === !1 ? ae.push(/* @__PURE__ */ r(Ke, { path: Oe.link, element: Oe.component }, `${Oe.link}_${MA}`)) : ae.push(
3080
+ /* @__PURE__ */ r(eA, { path: Oe.link, component: Oe.component }, `${Oe.link}_${MA}`)
3079
3081
  );
3080
- }) : he.keepAlive === !1 ? ae.push(
3081
- /* @__PURE__ */ r(Ke, { path: he.link, element: he.component }, `${he.link}_${Ge}`)
3082
+ }) : ue.keepAlive === !1 ? ae.push(
3083
+ /* @__PURE__ */ r(Ke, { path: ue.link, element: ue.component }, `${ue.link}_${Ge}`)
3082
3084
  ) : ae.push(
3083
- /* @__PURE__ */ r(eA, { path: he.link, component: he.component }, `${he.link}_${Ge}`)
3085
+ /* @__PURE__ */ r(eA, { path: ue.link, component: ue.component }, `${ue.link}_${Ge}`)
3084
3086
  );
3085
3087
  }), ae;
3086
- }, [y.navigationData, y.collapsed]), Ee = S(() => {
3087
- y.setCollapsed(!y.collapsed);
3088
- }, [y.setCollapsed, y.collapsed]), q = S(() => {
3089
- y.setHidden(!y.hidden);
3090
- }, [y.setHidden, y.hidden]);
3088
+ }, [E.navigationData, E.collapsed]), ke = C(() => {
3089
+ E.setCollapsed(!E.collapsed);
3090
+ }, [E.setCollapsed, E.collapsed]), Q = C(() => {
3091
+ E.setHidden(!E.hidden);
3092
+ }, [E.setHidden, E.hidden]);
3091
3093
  oe(() => {
3092
- h && h(y.hidden);
3093
- }, [y.hidden, q]), oe(() => {
3094
- i && i(y.collapsed);
3095
- }, [y.collapsed, i]);
3096
- const ye = w === "minimal" || y.collapsed ? n : e, $ = (ae, he = !1) => D ? D({ width: e, height: ae, isHidden: Z }) : w === "legacy" ? /* @__PURE__ */ r(
3097
- _t,
3094
+ h && h(E.hidden);
3095
+ }, [E.hidden, Q]), oe(() => {
3096
+ i && i(E.collapsed);
3097
+ }, [E.collapsed, i]);
3098
+ const le = $ === "minimal" || E.collapsed ? n : e, Fe = (ae, ue = !1) => D ? D({ width: e, height: ae, isHidden: q }) : $ === "legacy" ? /* @__PURE__ */ r(
3099
+ Ao,
3098
3100
  {
3099
- navigationData: y.navigationData,
3101
+ navigationData: E.navigationData,
3100
3102
  sidebarHeight: ae,
3101
3103
  sidebarGroupWidth: n,
3102
3104
  sidebarCollapsedWidth: n,
3103
- selectedGroupColor: C,
3105
+ selectedGroupColor: v,
3104
3106
  groupColor: b,
3105
3107
  backgroundGroupColor: m,
3106
3108
  groupLabelDarkColor: g,
3107
3109
  groupLabelLightColor: f,
3108
3110
  showGroupLabels: !1,
3109
- collapsed: he ? !1 : y.collapsed,
3111
+ collapsed: ue ? !1 : E.collapsed,
3110
3112
  sidebarWidth: e,
3111
- isHidden: Z,
3112
- onMenuItemClick: ke,
3113
- onClickActionIcon: ee,
3113
+ isHidden: q,
3114
+ onMenuItemClick: ve,
3115
+ onClickActionIcon: W,
3114
3116
  sideBarFooterHeight: a,
3115
3117
  sideBarFooterContent: l,
3116
3118
  sideBarHeaderContent: p,
3117
- theme: N,
3118
- sidebarRef: z,
3119
+ theme: B,
3120
+ sidebarRef: he,
3119
3121
  defaultGroupIcon: d,
3120
3122
  selectedGroupName: c,
3121
3123
  iconsWithBackground: L,
3122
- menuItemHeight: X,
3124
+ menuItemHeight: J,
3123
3125
  highlightActiveMenuItem: O,
3124
3126
  backgroundDarkColor: P,
3125
- backgroundLightColor: v,
3126
- textDarkColor: K,
3127
- textLightColor: E,
3128
- iconDarkColor: W,
3129
- iconLightColor: G,
3130
- collapsedSubmenuWidth: be,
3131
- isLoading: y.isLoadingPermissions,
3132
- loadingError: y.permissionsError
3127
+ backgroundLightColor: y,
3128
+ textDarkColor: F,
3129
+ textLightColor: T,
3130
+ iconDarkColor: ee,
3131
+ iconLightColor: U,
3132
+ collapsedSubmenuWidth: Se,
3133
+ isLoading: E.isLoadingPermissions,
3134
+ loadingError: E.permissionsError
3133
3135
  }
3134
3136
  ) : /* @__PURE__ */ r(
3135
- co,
3137
+ po,
3136
3138
  {
3137
- navigationData: y.navigationData,
3138
- variant: w,
3139
- width: ye,
3139
+ navigationData: E.navigationData,
3140
+ variant: $,
3141
+ width: le,
3140
3142
  collapsedWidth: n,
3141
3143
  height: ae,
3142
3144
  groupColumnWidth: n,
3143
- collapsed: he ? !1 : y.collapsed,
3144
- onCollapsedChange: (Ge) => y.setCollapsed(Ge),
3145
+ collapsed: ue ? !1 : E.collapsed,
3146
+ onCollapsedChange: (Ge) => E.setCollapsed(Ge),
3145
3147
  activeGroup: c,
3146
3148
  onActiveGroupChange: (Ge) => {
3147
3149
  },
3148
3150
  defaultGroupIcon: d,
3149
3151
  showGroupLabels: !1,
3150
- onMenuItemClick: ke,
3151
- showSearch: k,
3152
+ onMenuItemClick: ve,
3153
+ showSearch: N,
3152
3154
  header: p,
3153
3155
  footer: l,
3154
3156
  footerHeight: a,
3155
- isLoading: y.isLoadingPermissions,
3156
- loadingError: y.permissionsError,
3157
- theme: N,
3157
+ isLoading: E.isLoadingPermissions,
3158
+ loadingError: E.permissionsError,
3159
+ theme: B,
3158
3160
  highlightActiveItem: O,
3159
3161
  backgroundDarkColor: P,
3160
- backgroundLightColor: v,
3161
- backgroundImage: x,
3162
- textDarkColor: K,
3163
- textLightColor: E,
3164
- iconDarkColor: W,
3165
- iconLightColor: G,
3162
+ backgroundLightColor: y,
3163
+ backgroundImage: k,
3164
+ textDarkColor: F,
3165
+ textLightColor: T,
3166
+ iconDarkColor: ee,
3167
+ iconLightColor: U,
3166
3168
  groupBackgroundColor: m,
3167
- selectedGroupColor: C,
3169
+ selectedGroupColor: v,
3168
3170
  groupColor: b,
3169
3171
  groupLabelDarkColor: g,
3170
3172
  groupLabelLightColor: f,
3171
- activeColor: we,
3173
+ activeColor: w,
3172
3174
  itemBorderRadius: se,
3173
- itemHorizontalGap: Ce,
3174
- itemActiveBackground: le,
3175
+ itemHorizontalGap: be,
3176
+ itemActiveBackground: we,
3175
3177
  withBorder: !1,
3176
- sidebarRef: z
3178
+ sidebarRef: he
3177
3179
  }
3178
- ), ue = H === "dark" ? P ?? N.colors.dark[7] : v ?? N.white, Qe = w === "legacy", Fe = Qe ? void 0 : {
3179
- width: { base: ye },
3180
+ ), Ve = z === "dark" ? P ?? B.colors.dark[7] : y ?? B.white, Qe = $ === "legacy", xr = Qe ? void 0 : {
3181
+ width: { base: le },
3180
3182
  breakpoint: "sm",
3181
- collapsed: { mobile: Z || !F, desktop: Z || !F }
3182
- }, Ve = V ?? (H === "dark" ? N.colors.dark[8] : N.colors.gray[0]), wr = Qe ? {
3183
+ collapsed: { mobile: q || !V, desktop: q || !V }
3184
+ }, RA = G ?? (z === "dark" ? B.colors.dark[8] : B.colors.gray[0]), Ir = Qe ? {
3183
3185
  main: {
3184
- background: Ve,
3186
+ background: RA,
3185
3187
  overflow: "hidden"
3186
3188
  }
3187
3189
  } : {
3188
3190
  main: {
3189
- background: Ve,
3191
+ background: RA,
3190
3192
  overflow: "hidden"
3191
3193
  },
3192
3194
  navbar: {
3193
- background: x ?? ue,
3195
+ background: k ?? Ve,
3194
3196
  border: "none"
3195
3197
  }
3196
- }, Sr = Qe ? {
3198
+ }, PA = typeof Ae == "number" ? `${Ae}px` : Ae ?? "4px", LA = Ce ?? (z === "dark" ? B.colors.dark[4] : "#e4e9ef"), Tr = Qe ? {
3197
3199
  height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
3198
- width: `calc(100vw - var(--app-shell-padding) - calc(${Z ? "0px" : ye} + 1rem))`,
3200
+ width: `calc(100vw - var(--app-shell-padding) - calc(${q ? "0px" : le} + 1rem))`,
3199
3201
  marginTop: "0.5rem",
3200
- marginLeft: `calc(${Z ? "0px" : ye} + 0.5rem)`,
3201
- border: `1px solid ${H === "dark" ? N.colors.dark[4] : "#e4e9ef"}`,
3202
- borderRadius: "4px",
3202
+ marginLeft: `calc(${q ? "0px" : le} + 0.5rem)`,
3203
+ border: `1px solid ${LA}`,
3204
+ borderRadius: PA,
3203
3205
  overflow: "hidden"
3204
3206
  } : {
3205
3207
  height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - 1rem)",
@@ -3207,23 +3209,23 @@ function Qo({
3207
3209
  marginTop: "0.5rem",
3208
3210
  marginLeft: "0.5rem",
3209
3211
  marginRight: "0.5rem",
3210
- border: `1px solid ${H === "dark" ? N.colors.dark[4] : "#e4e9ef"}`,
3211
- borderRadius: "4px",
3212
+ border: `1px solid ${LA}`,
3213
+ borderRadius: PA,
3212
3214
  overflow: "hidden"
3213
3215
  };
3214
- return /* @__PURE__ */ r(Oo, { children: /* @__PURE__ */ R(
3216
+ return /* @__PURE__ */ r(Fo, { children: /* @__PURE__ */ R(
3215
3217
  Be,
3216
3218
  {
3217
- header: { height: "60px", collapsed: !U },
3218
- navbar: Fe,
3219
- footer: { height: T || "0px" },
3220
- styles: wr,
3219
+ header: { height: "60px", collapsed: !Y },
3220
+ navbar: xr,
3221
+ footer: { height: I || "0px" },
3222
+ styles: Ir,
3221
3223
  children: [
3222
3224
  /* @__PURE__ */ r(
3223
3225
  Be.Header,
3224
3226
  {
3225
3227
  p: "xs",
3226
- color: I,
3228
+ color: x,
3227
3229
  display: "flex",
3228
3230
  style: {
3229
3231
  backgroundColor: "var(--mantine-primary-color-8)",
@@ -3234,31 +3236,31 @@ function Qo({
3234
3236
  children: t
3235
3237
  }
3236
3238
  ),
3237
- !Z && F && /* @__PURE__ */ r(Be.Navbar, { children: $(Ie(), !1) }),
3239
+ !q && V && /* @__PURE__ */ r(Be.Navbar, { children: Fe(re(), !1) }),
3238
3240
  /* @__PURE__ */ R(Be.Main, { children: [
3239
- !Z && Q && $o(
3240
- H,
3241
- N,
3242
- y,
3241
+ !q && K && Vo(
3242
+ z,
3243
+ B,
3244
+ E,
3243
3245
  e,
3244
3246
  n,
3245
- Ee
3247
+ ke
3246
3248
  ),
3247
- /* @__PURE__ */ r(Ro, { children: /* @__PURE__ */ R("div", { style: Sr, children: [
3249
+ /* @__PURE__ */ r(Do, { children: /* @__PURE__ */ R("div", { style: Tr, children: [
3248
3250
  A,
3249
- /* @__PURE__ */ r(Ko, { maxKeepAliveTabs: Se, routes: re })
3251
+ /* @__PURE__ */ r(Bo, { maxKeepAliveTabs: S, routes: X })
3250
3252
  ] }) }),
3251
- F && /* @__PURE__ */ r(
3252
- qA,
3253
+ V && /* @__PURE__ */ r(
3254
+ JA,
3253
3255
  {
3254
- opened: y.hidden || !1,
3255
- onClose: q,
3256
+ opened: E.hidden || !1,
3257
+ onClose: Q,
3256
3258
  size: e,
3257
3259
  padding: 0,
3258
3260
  styles: {
3259
3261
  header: { minHeight: "10px" }
3260
3262
  },
3261
- children: $(Ae(), !0)
3263
+ children: Fe(Ee(), !0)
3262
3264
  }
3263
3265
  )
3264
3266
  ] }),
@@ -3267,18 +3269,18 @@ function Qo({
3267
3269
  }
3268
3270
  ) });
3269
3271
  }
3270
- function Ko({ maxKeepAliveTabs: A, routes: t }) {
3271
- const { isNavigating: o } = yr();
3272
+ function Bo({ maxKeepAliveTabs: A, routes: t }) {
3273
+ const { isNavigating: o } = wr();
3272
3274
  return /* @__PURE__ */ r("div", { style: {
3273
3275
  width: "100%",
3274
3276
  height: "calc(100% - 48px)",
3275
3277
  opacity: o ? 0.6 : 1,
3276
3278
  transition: "opacity 0.15s ease-out"
3277
- }, children: /* @__PURE__ */ R(No, { maxKeepAliveTabs: A, children: [
3279
+ }, children: /* @__PURE__ */ R(Qo, { maxKeepAliveTabs: A, children: [
3278
3280
  ...t
3279
3281
  ] }) });
3280
3282
  }
3281
- function Gn({
3283
+ function Yn({
3282
3284
  navigationRootLink: A = "/",
3283
3285
  navigationData: t,
3284
3286
  user: o,
@@ -3293,61 +3295,63 @@ function Gn({
3293
3295
  sideBarFooterHeight: d,
3294
3296
  sideBarFooterContent: u,
3295
3297
  onCollapsedSideBar: p,
3296
- onHiddenSidebar: C,
3298
+ onHiddenSidebar: v,
3297
3299
  sidebarDefaultGroupIcon: b,
3298
3300
  sidebarSelectedGroupName: m,
3299
3301
  sideBarHeaderHeight: g,
3300
3302
  sideBarHeaderContent: f,
3301
- selectedGroupColor: I = "#132441",
3302
- groupColor: T = "white",
3303
+ selectedGroupColor: x = "#132441",
3304
+ groupColor: I = "white",
3303
3305
  backgroundGroupColor: L = "#132441",
3304
- groupLabelDarkColor: X = "white",
3305
- groupLabelLightColor: F = "white",
3306
- headerColor: U,
3306
+ groupLabelDarkColor: J = "white",
3307
+ groupLabelLightColor: V = "white",
3308
+ headerColor: Y,
3307
3309
  footerHeight: M,
3308
3310
  iconsWithBackground: O,
3309
3311
  menuItemHeight: D,
3310
- showSideBar: Q,
3312
+ showSideBar: K,
3311
3313
  showHeader: P,
3312
- headerStyle: v,
3313
- highlightActiveMenuItem: K,
3314
- enableSecurity: E = !1,
3315
- securityOptions: W,
3316
- customRenderSidebar: G,
3317
- onNavigationDataChange: x,
3318
- showCollapsedButton: V,
3319
- initialSidebarCollapsed: se = !1,
3314
+ headerStyle: y,
3315
+ highlightActiveMenuItem: F,
3316
+ enableSecurity: T = !1,
3317
+ securityOptions: ee,
3318
+ customRenderSidebar: U,
3319
+ onNavigationDataChange: k,
3320
+ showCollapsedButton: G,
3321
+ initialSidebarCollapsed: Ae = !1,
3320
3322
  sideBarBackgroundDarkColor: Ce,
3321
- sideBarBackgroundLightColor: le,
3323
+ sideBarBackgroundLightColor: se,
3322
3324
  sideBarTextDarkColor: be,
3323
3325
  sideBarTextLightColor: we,
3324
3326
  sideBarIconDarkColor: Se,
3325
3327
  sideBarIconLightColor: w,
3326
- sideBarBackgroundImage: k,
3327
- mainBackground: N,
3328
- sideBarItemBorderRadius: y,
3329
- sideBarItemHorizontalGap: H,
3330
- sideBarItemActiveBackground: Y,
3331
- sideBarCollapsedSubmenuWidth: z,
3332
- sidebarActiveColor: j,
3333
- maxKeepAliveTabs: Z = 10,
3334
- sidebarVariant: ke = "legacy",
3335
- sidebarShowSearch: ee = !1
3328
+ sideBarBackgroundImage: S,
3329
+ mainBackground: $,
3330
+ mainBorderRadius: N,
3331
+ mainBorderColor: B,
3332
+ sideBarItemBorderRadius: E,
3333
+ sideBarItemHorizontalGap: z,
3334
+ sideBarItemActiveBackground: j,
3335
+ sideBarCollapsedSubmenuWidth: he,
3336
+ sidebarActiveColor: Ie,
3337
+ maxKeepAliveTabs: q = 10,
3338
+ sidebarVariant: ve = "legacy",
3339
+ sidebarShowSearch: W = !1
3336
3340
  }) {
3337
3341
  return /* @__PURE__ */ r(
3338
- Kt,
3342
+ Bt,
3339
3343
  {
3340
3344
  navigationData: t,
3341
3345
  navigationRootLink: A,
3342
3346
  user: o,
3343
3347
  owner: a,
3344
3348
  company: l,
3345
- enableSecurity: E,
3346
- securityOptions: W,
3347
- onNavigationDataChange: x,
3348
- initialSidebarCollapsed: se,
3349
+ enableSecurity: T,
3350
+ securityOptions: ee,
3351
+ onNavigationDataChange: k,
3352
+ initialSidebarCollapsed: Ae,
3349
3353
  children: /* @__PURE__ */ r(
3350
- Qo,
3354
+ Go,
3351
3355
  {
3352
3356
  navigationRootLink: A,
3353
3357
  user: o,
@@ -3362,52 +3366,54 @@ function Gn({
3362
3366
  sideBarHeaderContent: f,
3363
3367
  sideBarFooterHeight: d,
3364
3368
  sideBarFooterContent: u,
3365
- selectedGroupColor: I,
3366
- groupColor: T,
3369
+ selectedGroupColor: x,
3370
+ groupColor: I,
3367
3371
  backgroundGroupColor: L,
3368
- groupLabelDarkColor: X,
3369
- groupLabelLightColor: F,
3372
+ groupLabelDarkColor: J,
3373
+ groupLabelLightColor: V,
3370
3374
  onCollapsedSideBar: p,
3371
- onHiddenSidebar: C,
3375
+ onHiddenSidebar: v,
3372
3376
  sidebarDefaultGroupIcon: b,
3373
3377
  sidebarSelectedGroupName: m,
3374
- headerColor: U,
3378
+ headerColor: Y,
3375
3379
  footerHeight: M,
3376
3380
  iconsWithBackground: O,
3377
3381
  menuItemHeight: D,
3378
- showSideBar: Q,
3382
+ showSideBar: K,
3379
3383
  showHeader: P,
3380
- headerStyle: v,
3381
- highlightActiveMenuItem: K,
3382
- enableSecurity: E,
3383
- customRenderSidebar: G,
3384
- showCollapsedButton: V,
3384
+ headerStyle: y,
3385
+ highlightActiveMenuItem: F,
3386
+ enableSecurity: T,
3387
+ customRenderSidebar: U,
3388
+ showCollapsedButton: G,
3385
3389
  sideBarBackgroundDarkColor: Ce,
3386
- sideBarBackgroundLightColor: le,
3390
+ sideBarBackgroundLightColor: se,
3387
3391
  sideBarTextDarkColor: be,
3388
3392
  sideBarTextLightColor: we,
3389
3393
  sideBarIconDarkColor: Se,
3390
3394
  sideBarIconLightColor: w,
3391
- sideBarBackgroundImage: k,
3392
- mainBackground: N,
3393
- sideBarItemBorderRadius: y,
3394
- sideBarItemHorizontalGap: H,
3395
- sideBarItemActiveBackground: Y,
3396
- sideBarCollapsedSubmenuWidth: z,
3397
- sidebarActiveColor: j,
3398
- maxKeepAliveTabs: Z,
3399
- sidebarVariant: ke,
3400
- sidebarShowSearch: ee,
3395
+ sideBarBackgroundImage: S,
3396
+ mainBackground: $,
3397
+ mainBorderRadius: N,
3398
+ mainBorderColor: B,
3399
+ sideBarItemBorderRadius: E,
3400
+ sideBarItemHorizontalGap: z,
3401
+ sideBarItemActiveBackground: j,
3402
+ sideBarCollapsedSubmenuWidth: he,
3403
+ sidebarActiveColor: Ie,
3404
+ maxKeepAliveTabs: q,
3405
+ sidebarVariant: ve,
3406
+ sidebarShowSearch: W,
3401
3407
  children: e
3402
3408
  }
3403
3409
  )
3404
3410
  }
3405
3411
  );
3406
3412
  }
3407
- const vr = Ne({
3413
+ const Sr = Ne({
3408
3414
  state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
3409
3415
  dispatch: (A) => null
3410
- }), Bn = ({ children: A }) => {
3416
+ }), qn = ({ children: A }) => {
3411
3417
  const t = {
3412
3418
  userCloseLinkRequest: "",
3413
3419
  linkClosed: "",
@@ -3426,7 +3432,7 @@ const vr = Ne({
3426
3432
  default:
3427
3433
  return s;
3428
3434
  }
3429
- }, [e, n] = Ir(o, t);
3435
+ }, [e, n] = Pr(o, t);
3430
3436
  return xe.useEffect(() => {
3431
3437
  let s = null;
3432
3438
  return e.userCloseLinkRequest && !e.linkClosed && (s = setTimeout(() => {
@@ -3434,23 +3440,23 @@ const vr = Ne({
3434
3440
  }, 0)), () => {
3435
3441
  s && clearTimeout(s);
3436
3442
  };
3437
- }, [e.userCloseLinkRequest, e.linkClosed, n]), /* @__PURE__ */ r(vr.Provider, { value: { state: e, dispatch: n }, children: A });
3438
- }, Cr = () => {
3439
- const A = ve(vr);
3443
+ }, [e.userCloseLinkRequest, e.linkClosed, n]), /* @__PURE__ */ r(Sr.Provider, { value: { state: e, dispatch: n }, children: A });
3444
+ }, kr = () => {
3445
+ const A = ye(Sr);
3440
3446
  if (!A)
3441
3447
  throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
3442
3448
  return A;
3443
- }, Un = (A, t) => {
3444
- const o = Cr(), { state: e, dispatch: n } = o, s = S((i) => {
3449
+ }, jn = (A, t) => {
3450
+ const o = kr(), { state: e, dispatch: n } = o, s = C((i) => {
3445
3451
  n({ type: "CLOSE_ALLOWED", link: A, payload: i });
3446
- }, [n, A]), a = _(t);
3452
+ }, [n, A]), a = Z(t);
3447
3453
  a.current = t, oe(() => {
3448
3454
  e && e.userCloseLinkRequest && e.userCloseLinkRequest === A && a.current();
3449
3455
  }, [e, A]);
3450
3456
  const l = e.isClosing && e.userCloseLinkRequest === A;
3451
3457
  return { closeAllowed: s, isClosing: l };
3452
- }, AA = sr()(
3453
- Dt(
3458
+ }, AA = ir()(
3459
+ $t(
3454
3460
  (A, t) => ({
3455
3461
  openTabs: [],
3456
3462
  activeTabId: null,
@@ -3505,7 +3511,7 @@ const vr = Ne({
3505
3511
  }
3506
3512
  )
3507
3513
  );
3508
- function Hn({
3514
+ function Xn({
3509
3515
  navigationData: A,
3510
3516
  onChangeOpenedTabs: t,
3511
3517
  onChangeActiveTabId: o,
@@ -3513,101 +3519,101 @@ function Hn({
3513
3519
  openedTabs: n = [],
3514
3520
  colors: s
3515
3521
  }) {
3516
- const [a, l] = xe.useTransition(), i = qe(), { colorScheme: h } = de(), [c, d] = ge(n), [u, p] = ge(e), C = _(void 0), b = je(), m = _([]);
3517
- Pt(m);
3518
- const g = Cr(), { state: f, dispatch: I } = g, T = ve(rA), L = Eo(), { start: X, done: F } = yr(), U = AA((w) => w.clearSnapshot), M = AA((w) => w.removeTab), O = _(t), D = _(o);
3522
+ const [a, l] = xe.useTransition(), i = qe(), { colorScheme: h } = de(), [c, d] = ge(n), [u, p] = ge(e), v = Z(void 0), b = je(), m = Z([]);
3523
+ Nt(m);
3524
+ const g = kr(), { state: f, dispatch: x } = g, I = ye(rA), L = Mo(), { start: J, done: V } = wr(), Y = AA((w) => w.clearSnapshot), M = AA((w) => w.removeTab), O = Z(t), D = Z(o);
3519
3525
  oe(() => {
3520
3526
  O.current = t, D.current = o;
3521
3527
  });
3522
- const Q = _(u);
3528
+ const K = Z(u);
3523
3529
  oe(() => {
3524
- C.current = Q.current, Q.current = u;
3530
+ v.current = K.current, K.current = u;
3525
3531
  }, [u]);
3526
- const P = _(!1), v = S((w, k) => {
3527
- X(), L ? L.destroy(w) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks."), U(w), M(w);
3528
- const N = c.findIndex((j) => j.path === w);
3529
- let y = k?.redirectUrl;
3530
- !y && N >= 0 && (y = c[N].redirect);
3531
- const H = c.filter((j) => j.id !== w);
3532
- let Y = null;
3533
- if (C.current && C.current !== w) {
3534
- const j = H.find((Z) => Z.id === C.current);
3535
- j && (Y = j.id);
3532
+ const P = Z(!1), y = C((w, S) => {
3533
+ J(), L ? L.destroy(w) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks."), Y(w), M(w);
3534
+ const $ = c.findIndex((j) => j.path === w);
3535
+ let N = S?.redirectUrl;
3536
+ !N && $ >= 0 && (N = c[$].redirect);
3537
+ const B = c.filter((j) => j.id !== w);
3538
+ let E = null;
3539
+ if (v.current && v.current !== w) {
3540
+ const j = B.find((he) => he.id === v.current);
3541
+ j && (E = j.id);
3536
3542
  }
3537
- if (!Y) {
3543
+ if (!E) {
3538
3544
  let j = -1;
3539
- H.forEach((Z, ke) => Z.id === u && (j = ke)), H.length > 0 && H[j] ? Y = H[j].id : H.length > 0 && (Y = H[H.length - 1].id);
3545
+ B.forEach((he, Ie) => he.id === u && (j = Ie)), B.length > 0 && B[j] ? E = B[j].id : B.length > 0 && (E = B[B.length - 1].id);
3540
3546
  }
3541
- const z = H.map((j) => ({
3547
+ const z = B.map((j) => ({
3542
3548
  ...j,
3543
- active: Y === j.id
3549
+ active: E === j.id
3544
3550
  }));
3545
- if (d(z), Y && Y != null)
3546
- p(Y), i(y || Y);
3551
+ if (d(z), E && E != null)
3552
+ p(E), i(N || E);
3547
3553
  else {
3548
- if (p(void 0), !T.navigationRootLink) {
3554
+ if (p(void 0), !I.navigationRootLink) {
3549
3555
  console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
3550
3556
  return;
3551
3557
  }
3552
- i(T.navigationRootLink);
3558
+ i(I.navigationRootLink);
3553
3559
  }
3554
- I({ type: "DONE", link: "" }), F();
3555
- }, [c, u, i, T.navigationRootLink, I, L, X, F, U, M]);
3560
+ x({ type: "DONE", link: "" }), V();
3561
+ }, [c, u, i, I.navigationRootLink, x, L, J, V, Y, M]);
3556
3562
  oe(() => {
3557
- f?.linkClosed && v(f?.linkClosed, f?.payload);
3558
- }, [f?.linkClosed, f?.payload, v]);
3559
- const K = (w) => {
3560
- const k = {
3563
+ f?.linkClosed && y(f?.linkClosed, f?.payload);
3564
+ }, [f?.linkClosed, f?.payload, y]);
3565
+ const F = (w) => {
3566
+ const S = {
3561
3567
  item: void 0,
3562
3568
  title: void 0,
3563
3569
  link: w,
3564
3570
  redirect: void 0,
3565
3571
  customTitle: void 0
3566
3572
  };
3567
- return A.forEach((N) => {
3568
- if (N.links)
3569
- N.links.forEach((y) => {
3570
- MA({ path: y.link || "" }, location.pathname) && (k.item = y, k.title = `${ne().t(y.label)}`, k.redirect = y.redirect, k.customTitle = y.customTitle);
3573
+ return A.forEach(($) => {
3574
+ if ($.links)
3575
+ $.links.forEach((N) => {
3576
+ zA({ path: N.link || "" }, location.pathname) && (S.item = N, S.title = `${ne().t(N.label)}`, S.redirect = N.redirect, S.customTitle = N.customTitle);
3571
3577
  });
3572
- else if (N.link && !k.item) {
3573
- const y = MA({ path: N.link }, location.pathname);
3574
- y && (y.params && Object.keys(y.params).length > 0 ? k.title = `${y.params[Object.keys(y.params)[0]]}` : k.title = `${ne().t(N.label)}`, k.item = N, k.redirect = N.redirect, k.customTitle = N.customTitle);
3578
+ else if ($.link && !S.item) {
3579
+ const N = zA({ path: $.link }, location.pathname);
3580
+ N && (N.params && Object.keys(N.params).length > 0 ? S.title = `${N.params[Object.keys(N.params)[0]]}` : S.title = `${ne().t($.label)}`, S.item = $, S.redirect = $.redirect, S.customTitle = $.customTitle);
3575
3581
  }
3576
- }), k.customTitle && (k.customTitle = k.customTitle.replace("$title", k.title)), k;
3582
+ }), S.customTitle && (S.customTitle = S.customTitle.replace("$title", S.title)), S;
3577
3583
  };
3578
3584
  oe(() => {
3579
3585
  d(n), P.current = !0;
3580
3586
  }, [JSON.stringify(n)]);
3581
- const E = _(c), W = _(u);
3587
+ const T = Z(c), ee = Z(u);
3582
3588
  oe(() => {
3583
3589
  if (P.current) {
3584
- P.current = !1, E.current = c, W.current = u;
3590
+ P.current = !1, T.current = c, ee.current = u;
3585
3591
  return;
3586
3592
  }
3587
- const w = JSON.stringify(E.current) !== JSON.stringify(c), k = W.current !== u;
3588
- if (w || k) {
3589
- const N = setTimeout(() => {
3593
+ const w = JSON.stringify(T.current) !== JSON.stringify(c), S = ee.current !== u;
3594
+ if (w || S) {
3595
+ const $ = setTimeout(() => {
3590
3596
  O.current?.(c), D.current?.(u);
3591
3597
  }, 0);
3592
- return E.current = c, W.current = u, () => clearTimeout(N);
3598
+ return T.current = c, ee.current = u, () => clearTimeout($);
3593
3599
  }
3594
3600
  }, [c, u]);
3595
- const G = _("");
3601
+ const U = Z("");
3596
3602
  oe(() => {
3597
- if (G.current === b.pathname)
3603
+ if (U.current === b.pathname)
3598
3604
  return;
3599
- G.current = b.pathname;
3600
- const w = K(b.pathname);
3605
+ U.current = b.pathname;
3606
+ const w = F(b.pathname);
3601
3607
  if (w && w.item) {
3602
- const k = c.findIndex((N) => N.path === w.link);
3603
- if (k !== -1) {
3604
- if (c[k].title !== w.title) {
3605
- const N = [...c];
3606
- N[k] = { ...N[k], title: w.title }, d(N);
3608
+ const S = c.findIndex(($) => $.path === w.link);
3609
+ if (S !== -1) {
3610
+ if (c[S].title !== w.title) {
3611
+ const $ = [...c];
3612
+ $[S] = { ...$[S], title: w.title }, d($);
3607
3613
  }
3608
- p(c[k].id);
3614
+ p(c[S].id);
3609
3615
  } else {
3610
- const N = {
3616
+ const $ = {
3611
3617
  id: `${w.link}`,
3612
3618
  title: `${w.title}`,
3613
3619
  path: `${w.link}`,
@@ -3617,89 +3623,89 @@ function Hn({
3617
3623
  closeButton: !0,
3618
3624
  redirect: w.redirect,
3619
3625
  customTitle: w.customTitle
3620
- }, y = [...c.map((H) => ({ ...H, active: !1 })), N];
3621
- d(y), p(N.id);
3626
+ }, N = [...c.map((B) => ({ ...B, active: !1 })), $];
3627
+ d(N), p($.id);
3622
3628
  }
3623
3629
  }
3624
3630
  }, [b.pathname]);
3625
- const x = (w) => {
3626
- const k = c.filter((N) => N.id === w);
3627
- k && k.length > 0 && b.pathname !== k[0].path && (X(), i(k[0].path)), l(() => {
3628
- p(w), F();
3631
+ const k = (w) => {
3632
+ const S = c.filter(($) => $.id === w);
3633
+ S && S.length > 0 && b.pathname !== S[0].path && (J(), i(S[0].path)), l(() => {
3634
+ p(w), V();
3629
3635
  });
3630
- }, V = (w) => {
3636
+ }, G = (w) => {
3631
3637
  try {
3632
- X(), I({ type: "USER_CLOSE_REQUEST", link: w });
3633
- } catch (k) {
3634
- console.error("[TabContainer] Dispatch failed:", k), F();
3638
+ J(), x({ type: "USER_CLOSE_REQUEST", link: w });
3639
+ } catch (S) {
3640
+ console.error("[TabContainer] Dispatch failed:", S), V();
3635
3641
  }
3636
- }, se = S(() => {
3642
+ }, Ae = C(() => {
3637
3643
  if (L?.destroyAll(), c.forEach((w) => {
3638
- U(w.id), M(w.id);
3639
- }), d([]), p(void 0), !T.navigationRootLink) {
3644
+ Y(w.id), M(w.id);
3645
+ }), d([]), p(void 0), !I.navigationRootLink) {
3640
3646
  console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
3641
3647
  return;
3642
3648
  }
3643
- i(T.navigationRootLink);
3644
- }, [i, T.navigationRootLink, L, c, U, M]), Ce = S((w) => {
3645
- const k = c.findIndex((z) => z.id === w);
3646
- if (k <= 0)
3649
+ i(I.navigationRootLink);
3650
+ }, [i, I.navigationRootLink, L, c, Y, M]), Ce = C((w) => {
3651
+ const S = c.findIndex((z) => z.id === w);
3652
+ if (S <= 0)
3647
3653
  return;
3648
- c.slice(0, k).forEach((z) => {
3649
- L?.destroy(z.path), U(z.id), M(z.id);
3654
+ c.slice(0, S).forEach((z) => {
3655
+ L?.destroy(z.path), Y(z.id), M(z.id);
3650
3656
  });
3651
- const y = c.slice(k), H = y.find((z) => z.id === u)?.id || y[0]?.id, Y = y.map((z) => ({
3657
+ const N = c.slice(S), B = N.find((z) => z.id === u)?.id || N[0]?.id, E = N.map((z) => ({
3652
3658
  ...z,
3653
- active: z.id === H
3659
+ active: z.id === B
3654
3660
  }));
3655
- if (d(Y), H) {
3656
- p(H);
3657
- const z = Y.find((j) => j.id === H);
3661
+ if (d(E), B) {
3662
+ p(B);
3663
+ const z = E.find((j) => j.id === B);
3658
3664
  z && b.pathname !== z.path && i(z.path);
3659
3665
  }
3660
- }, [c, u, i, b.pathname, L, U, M]), le = S((w) => {
3661
- const k = c.findIndex((z) => z.id === w);
3662
- if (k === -1 || k >= c.length - 1)
3666
+ }, [c, u, i, b.pathname, L, Y, M]), se = C((w) => {
3667
+ const S = c.findIndex((z) => z.id === w);
3668
+ if (S === -1 || S >= c.length - 1)
3663
3669
  return;
3664
- c.slice(k + 1).forEach((z) => {
3665
- L?.destroy(z.path), U(z.id), M(z.id);
3670
+ c.slice(S + 1).forEach((z) => {
3671
+ L?.destroy(z.path), Y(z.id), M(z.id);
3666
3672
  });
3667
- const y = c.slice(0, k + 1), H = y.find((z) => z.id === u)?.id || y[y.length - 1]?.id, Y = y.map((z) => ({
3673
+ const N = c.slice(0, S + 1), B = N.find((z) => z.id === u)?.id || N[N.length - 1]?.id, E = N.map((z) => ({
3668
3674
  ...z,
3669
- active: z.id === H
3675
+ active: z.id === B
3670
3676
  }));
3671
- if (d(Y), H) {
3672
- p(H);
3673
- const z = Y.find((j) => j.id === H);
3677
+ if (d(E), B) {
3678
+ p(B);
3679
+ const z = E.find((j) => j.id === B);
3674
3680
  z && b.pathname !== z.path && i(z.path);
3675
3681
  }
3676
- }, [c, u, i, b.pathname, L, U, M]), be = S((w) => {
3677
- const k = c.find((y) => y.id === w);
3678
- if (!k)
3682
+ }, [c, u, i, b.pathname, L, Y, M]), be = C((w) => {
3683
+ const S = c.find((N) => N.id === w);
3684
+ if (!S)
3679
3685
  return;
3680
- L?.destroyOther(k.path), c.forEach((y) => {
3681
- y.id !== w && (U(y.id), M(y.id));
3686
+ L?.destroyOther(S.path), c.forEach((N) => {
3687
+ N.id !== w && (Y(N.id), M(N.id));
3682
3688
  });
3683
- const N = [{ ...k, active: !0 }];
3684
- d(N), p(w), b.pathname !== k.path && i(k.path);
3685
- }, [c, i, b.pathname, L, U, M]), we = f?.isClosing ? f?.userCloseLinkRequest : void 0;
3689
+ const $ = [{ ...S, active: !0 }];
3690
+ d($), p(w), b.pathname !== S.path && i(S.path);
3691
+ }, [c, i, b.pathname, L, Y, M]), we = f?.isClosing ? f?.userCloseLinkRequest : void 0;
3686
3692
  return /* @__PURE__ */ r("div", { ref: m, children: /* @__PURE__ */ r(
3687
- Lt,
3693
+ zt,
3688
3694
  {
3689
3695
  buttonCloseOnlyActiveTab: !0,
3690
- onClick: (w) => x(w),
3691
- onTabClose: (w) => V(w),
3696
+ onClick: (w) => k(w),
3697
+ onTabClose: (w) => G(w),
3692
3698
  onTabChange: (w) => null,
3693
- onCloseAllTabs: se,
3699
+ onCloseAllTabs: Ae,
3694
3700
  onCloseLeftTabs: Ce,
3695
- onCloseRightTabs: le,
3701
+ onCloseRightTabs: se,
3696
3702
  onCloseOtherTabs: be,
3697
- currentTabs: ((w) => w.map((k) => ({
3698
- key: k.id,
3699
- favicon: k.iconClass,
3700
- title: k.title,
3701
- customTitle: k.customTitle,
3702
- closing: we === k.id
3703
+ currentTabs: ((w) => w.map((S) => ({
3704
+ key: S.id,
3705
+ favicon: S.iconClass,
3706
+ title: S.title,
3707
+ customTitle: S.customTitle,
3708
+ closing: we === S.id
3703
3709
  })))(c),
3704
3710
  activeTab: u,
3705
3711
  colors: s,
@@ -3707,94 +3713,94 @@ function Hn({
3707
3713
  }
3708
3714
  ) });
3709
3715
  }
3710
- const Fo = () => xe.createElement("div", null, "Home View"), Vo = () => xe.createElement("div", null, "Pedido Form"), Go = () => xe.createElement("div", null, "Pedido View"), Bo = () => xe.createElement("div", null, "Pessoa Form"), Uo = () => xe.createElement("div", null, "Pessoa View"), Ho = {
3716
+ const Uo = () => xe.createElement("div", null, "Home View"), Ho = () => xe.createElement("div", null, "Pedido Form"), Yo = () => xe.createElement("div", null, "Pedido View"), qo = () => xe.createElement("div", null, "Pessoa Form"), jo = () => xe.createElement("div", null, "Pessoa View"), Xo = {
3711
3717
  label: "Dashboard",
3712
- icon: /* @__PURE__ */ r(Hr, {}),
3718
+ icon: /* @__PURE__ */ r(Xr, {}),
3713
3719
  link: "/dashboard",
3714
3720
  category: "DASHBOARD",
3715
3721
  color: "teal",
3716
3722
  component: /* @__PURE__ */ r("div", {}),
3717
3723
  showInSidebar: !0
3718
- }, Yo = {
3724
+ }, Jo = {
3719
3725
  label: "Home",
3720
- icon: /* @__PURE__ */ r(Ur, {}),
3726
+ icon: /* @__PURE__ */ r(jr, {}),
3721
3727
  link: "/home",
3722
3728
  category: "HOME",
3723
3729
  color: "teal",
3724
- component: /* @__PURE__ */ r(Fo, {}),
3730
+ component: /* @__PURE__ */ r(Uo, {}),
3725
3731
  showInSidebar: !0,
3726
3732
  keepAlive: !0
3727
- }, qo = {
3733
+ }, _o = {
3728
3734
  label: "Consulta lista pessoas",
3729
3735
  link: "/pessoa/consulta",
3730
- icon: /* @__PURE__ */ r(WA, {}),
3736
+ icon: /* @__PURE__ */ r(Ar, {}),
3731
3737
  category: "PESSOAS",
3732
3738
  color: "pink",
3733
- component: /* @__PURE__ */ r(Uo, {}),
3739
+ component: /* @__PURE__ */ r(jo, {}),
3734
3740
  showInSidebar: !0,
3735
3741
  keepAlive: !0
3736
- }, jo = {
3742
+ }, Wo = {
3737
3743
  label: "Nova pessoa",
3738
3744
  link: "/pessoa/nova",
3739
- icon: /* @__PURE__ */ r(qr, {}),
3745
+ icon: /* @__PURE__ */ r(_r, {}),
3740
3746
  category: "PESSOAS",
3741
3747
  color: "pink",
3742
- component: /* @__PURE__ */ r(Bo, {}),
3748
+ component: /* @__PURE__ */ r(qo, {}),
3743
3749
  showInSidebar: !0,
3744
3750
  keepAlive: !0
3745
- }, Xo = {
3751
+ }, Zo = {
3746
3752
  label: "Pessoas",
3747
- icon: /* @__PURE__ */ r(Yr, {}),
3748
- links: [qo, jo],
3753
+ icon: /* @__PURE__ */ r(Jr, {}),
3754
+ links: [_o, Wo],
3749
3755
  category: "PESSOAS",
3750
3756
  color: "pink",
3751
3757
  showInSidebar: !0
3752
- }, Jo = {
3758
+ }, en = {
3753
3759
  label: "Consulta lista pedidos",
3754
3760
  link: "/pedido/consulta",
3755
- icon: /* @__PURE__ */ r(WA, {}),
3761
+ icon: /* @__PURE__ */ r(Ar, {}),
3756
3762
  category: "PEDIDOS",
3757
3763
  color: "yellow",
3758
- component: /* @__PURE__ */ r(Go, {}),
3764
+ component: /* @__PURE__ */ r(Yo, {}),
3759
3765
  showInSidebar: !0,
3760
3766
  keepAlive: !0
3761
- }, _o = {
3767
+ }, An = {
3762
3768
  label: "Novo pedido",
3763
3769
  link: "/pedido/novo",
3764
- icon: /* @__PURE__ */ r(Xr, {}),
3770
+ icon: /* @__PURE__ */ r(Zr, {}),
3765
3771
  category: "PEDIDOS",
3766
3772
  color: "yellow",
3767
- component: /* @__PURE__ */ r(Vo, {}),
3773
+ component: /* @__PURE__ */ r(Ho, {}),
3768
3774
  showInSidebar: !0,
3769
3775
  keepAlive: !0
3770
- }, Wo = {
3776
+ }, rn = {
3771
3777
  label: "Pedidos",
3772
- icon: /* @__PURE__ */ r(jr, {}),
3773
- links: [Jo, _o],
3778
+ icon: /* @__PURE__ */ r(Wr, {}),
3779
+ links: [en, An],
3774
3780
  category: "PEDIDOS",
3775
3781
  color: "yellow",
3776
3782
  showInSidebar: !0
3777
- }, Zo = {
3783
+ }, tn = {
3778
3784
  label: "Configurações",
3779
3785
  link: "/config",
3780
- icon: /* @__PURE__ */ r(Jr, {}),
3786
+ icon: /* @__PURE__ */ r(et, {}),
3781
3787
  category: "CONFIGURAÇÕES",
3782
3788
  color: "lime",
3783
3789
  component: /* @__PURE__ */ r("div", {}),
3784
3790
  showInSidebar: !0
3785
- }, Yn = [
3786
- Yo,
3787
- Ho,
3791
+ }, Jn = [
3792
+ Jo,
3788
3793
  Xo,
3789
- Wo,
3790
- Zo
3794
+ Zo,
3795
+ rn,
3796
+ tn
3791
3797
  ];
3792
- function qn({ children: A, title: t = "", size: o = "440px", drawerKey: e, styles: n }) {
3793
- const [s, { open: a, close: l }] = Pr(!1), [i] = rr(), h = wt(), c = Xe();
3798
+ function _n({ children: A, title: t = "", size: o = "440px", drawerKey: e, styles: n }) {
3799
+ const [s, { open: a, close: l }] = Nr(!1), [i] = nr(), h = It(), c = Xe();
3794
3800
  return oe(() => {
3795
3801
  i.get("drawer") === e && a();
3796
3802
  }, [i]), /* @__PURE__ */ r(
3797
- qA,
3803
+ JA,
3798
3804
  {
3799
3805
  position: "right",
3800
3806
  opened: s,
@@ -3813,8 +3819,8 @@ function qn({ children: A, title: t = "", size: o = "440px", drawerKey: e, style
3813
3819
  }
3814
3820
  );
3815
3821
  }
3816
- function en(A) {
3817
- const t = qe(), o = je(), [e] = rr();
3822
+ function on(A) {
3823
+ const t = qe(), o = je(), [e] = nr();
3818
3824
  return { openDrawer: () => {
3819
3825
  const s = new URLSearchParams(e);
3820
3826
  s.set("drawer", A), t({
@@ -3823,13 +3829,13 @@ function en(A) {
3823
3829
  });
3824
3830
  } };
3825
3831
  }
3826
- function jn({ drawerKey: A }) {
3827
- const { openDrawer: t } = en(A);
3832
+ function Wn({ drawerKey: A }) {
3833
+ const { openDrawer: t } = on(A);
3828
3834
  return oe(() => {
3829
3835
  t();
3830
3836
  }, []), null;
3831
3837
  }
3832
- const An = {
3838
+ const nn = {
3833
3839
  // Campos de identificação
3834
3840
  showNickname: !0,
3835
3841
  // Configurações de campos obrigatórios
@@ -3838,8 +3844,8 @@ const An = {
3838
3844
  avatarImageQuality: 1,
3839
3845
  avatarMaxOutputSizePx: 512
3840
3846
  };
3841
- function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n }) {
3842
- const s = Lr(), a = Mr(), l = _r(), i = Nt(`myProfile${o}Store`), h = zt(Wr.User), c = { ...An, ...n ?? {} }, { dataSource: d, isLoading: u, error: p, isError: C, clearError: b } = Ot({
3847
+ function Zn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n }) {
3848
+ const s = zr(), a = Or(), l = At(), i = Qt(`myProfile${o}Store`), h = Kt(rt.User), c = { ...nn, ...n ?? {} }, { dataSource: d, isLoading: u, error: p, isError: v, clearError: b } = Ft({
3843
3849
  name: `dsUser${o}`,
3844
3850
  label: `${ne().t("archbase:My Profile")}`,
3845
3851
  service: h,
@@ -3854,8 +3860,8 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
3854
3860
  onDestroy: (g) => {
3855
3861
  },
3856
3862
  onError: (g, f) => {
3857
- const I = g instanceof Error ? g.message : typeof g == "string" ? g : JSON.stringify(g);
3858
- It.showError(ne().t("archbase:WARNING"), I, f);
3863
+ const x = g instanceof Error ? g.message : typeof g == "string" ? g : JSON.stringify(g);
3864
+ Pt.showError(ne().t("archbase:WARNING"), x, f);
3859
3865
  }
3860
3866
  });
3861
3867
  oe(() => {
@@ -3865,7 +3871,7 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
3865
3871
  g && (console.log(g), e(g.name, g.avatar));
3866
3872
  };
3867
3873
  return /* @__PURE__ */ r(
3868
- $t,
3874
+ Vt,
3869
3875
  {
3870
3876
  title: ne().t("archbase:My Profile"),
3871
3877
  size: 800,
@@ -3875,9 +3881,9 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
3875
3881
  onClickOk: t,
3876
3882
  onClickCancel: t,
3877
3883
  onAfterSave: m,
3878
- children: /* @__PURE__ */ r(ze, { style: { height: "440px" }, ref: s, children: /* @__PURE__ */ R(J, { children: [
3879
- /* @__PURE__ */ r(J, { align: "center", children: /* @__PURE__ */ r(
3880
- Tt,
3884
+ children: /* @__PURE__ */ r(ze, { style: { height: "440px" }, ref: s, children: /* @__PURE__ */ R(_, { children: [
3885
+ /* @__PURE__ */ r(_, { align: "center", children: /* @__PURE__ */ r(
3886
+ Lt,
3881
3887
  {
3882
3888
  dataSource: d,
3883
3889
  dataField: "avatar",
@@ -3922,7 +3928,7 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
3922
3928
  }
3923
3929
  );
3924
3930
  }
3925
- const Jn = sr((A) => ({
3931
+ const es = ir((A) => ({
3926
3932
  nameStore: "ADMIN_STORE",
3927
3933
  openedTabs: [],
3928
3934
  activeTabId: void 0,
@@ -3930,7 +3936,7 @@ const Jn = sr((A) => ({
3930
3936
  setOpenedTabs: (t) => A({ openedTabs: t }),
3931
3937
  setActiveTabId: (t) => A({ activeTabId: t }),
3932
3938
  setCollapsed: (t) => A({ collapsed: t })
3933
- })), rn = (A) => Qt((t, o) => ({
3939
+ })), sn = (A) => Gt((t, o) => ({
3934
3940
  // Initial state values
3935
3941
  scrollY: A?.scrollY ?? 0,
3936
3942
  expandedPanels: A?.expandedPanels ?? [],
@@ -4020,14 +4026,14 @@ const Jn = sr((A) => ({
4020
4026
  filters: e.filters
4021
4027
  };
4022
4028
  }
4023
- })), tA = Ne(null), tn = ({
4029
+ })), tA = Ne(null), ln = ({
4024
4030
  tabId: A,
4025
4031
  children: t
4026
4032
  }) => {
4027
- const { getSnapshot: o, saveSnapshot: e } = AA(), n = _(void 0);
4033
+ const { getSnapshot: o, saveSnapshot: e } = AA(), n = Z(void 0);
4028
4034
  if (!n.current) {
4029
4035
  const s = o(A);
4030
- n.current = rn(s);
4036
+ n.current = sn(s);
4031
4037
  }
4032
4038
  return oe(() => () => {
4033
4039
  if (n.current) {
@@ -4036,28 +4042,28 @@ const Jn = sr((A) => ({
4036
4042
  }
4037
4043
  }, [A, e]), /* @__PURE__ */ r(tA.Provider, { value: n.current ?? null, children: t });
4038
4044
  };
4039
- function _n(A) {
4040
- const t = ve(tA);
4045
+ function As(A) {
4046
+ const t = ye(tA);
4041
4047
  if (!t)
4042
4048
  throw new Error("useTabStore must be used within TabStoreProvider");
4043
- return Mt(t, A);
4049
+ return Ot(t, A);
4044
4050
  }
4045
- function Wn() {
4046
- const A = ve(tA);
4051
+ function rs() {
4052
+ const A = ye(tA);
4047
4053
  if (!A)
4048
4054
  throw new Error("useTabStoreApi must be used within TabStoreProvider");
4049
4055
  return A;
4050
4056
  }
4051
4057
  function EA() {
4052
- return ve(tA);
4058
+ return ye(tA);
4053
4059
  }
4054
4060
  function oA(A, t) {
4055
- const o = EA(), e = _({ resolved: !1, value: void 0 });
4061
+ const o = EA(), e = Z({ resolved: !1, value: void 0 });
4056
4062
  e.current.resolved || (e.current = {
4057
4063
  resolved: !0,
4058
4064
  value: typeof t == "function" ? t() : t
4059
4065
  });
4060
- const n = e.current.value, [s, a] = ge(n), l = Tr(
4066
+ const n = e.current.value, [s, a] = ge(n), l = Lr(
4061
4067
  // subscribe
4062
4068
  (c) => o ? o.subscribe(c) : () => {
4063
4069
  },
@@ -4069,7 +4075,7 @@ function oA(A, t) {
4069
4075
  // getServerSnapshot
4070
4076
  () => {
4071
4077
  }
4072
- ), i = o ? l !== void 0 ? l : n : s, h = S((c) => {
4078
+ ), i = o ? l !== void 0 ? l : n : s, h = C((c) => {
4073
4079
  if (!o) {
4074
4080
  a(c);
4075
4081
  return;
@@ -4079,10 +4085,10 @@ function oA(A, t) {
4079
4085
  }, [o, A, n]);
4080
4086
  return [i, h];
4081
4087
  }
4082
- function Zn(A, t) {
4088
+ function ts(A, t) {
4083
4089
  return oA(A, t);
4084
4090
  }
4085
- const on = {
4091
+ const an = {
4086
4092
  page: 0,
4087
4093
  pageSize: 25,
4088
4094
  sortModel: [],
@@ -4094,23 +4100,23 @@ const on = {
4094
4100
  expandedRowIds: [],
4095
4101
  scrollPosition: { top: 0, left: 0 }
4096
4102
  };
4097
- function es(A, t) {
4098
- const o = { ...on, ...t }, [e, n] = oA(
4103
+ function os(A, t) {
4104
+ const o = { ...an, ...t }, [e, n] = oA(
4099
4105
  `grid_${A}`,
4100
4106
  o
4101
- ), s = S((f) => {
4102
- n((I) => ({ ...I, ...f }));
4103
- }, [n]), a = S((f) => s({ page: f }), [s]), l = S((f) => s({ pageSize: f, page: 0 }), [s]), i = S((f) => s({ sortModel: f }), [s]), h = S((f) => s({ filterModel: f, page: 0 }), [s]), c = S((f) => s({ selectedRowIds: f }), [s]), d = S((f) => {
4104
- n((I) => ({
4105
- ...I,
4106
- selectedRowIds: I.selectedRowIds.includes(f) ? I.selectedRowIds.filter((T) => T !== f) : [...I.selectedRowIds, f]
4107
+ ), s = C((f) => {
4108
+ n((x) => ({ ...x, ...f }));
4109
+ }, [n]), a = C((f) => s({ page: f }), [s]), l = C((f) => s({ pageSize: f, page: 0 }), [s]), i = C((f) => s({ sortModel: f }), [s]), h = C((f) => s({ filterModel: f, page: 0 }), [s]), c = C((f) => s({ selectedRowIds: f }), [s]), d = C((f) => {
4110
+ n((x) => ({
4111
+ ...x,
4112
+ selectedRowIds: x.selectedRowIds.includes(f) ? x.selectedRowIds.filter((I) => I !== f) : [...x.selectedRowIds, f]
4107
4113
  }));
4108
- }, [n]), u = S((f) => s({ selectedRowIds: f }), [s]), p = S(() => s({ selectedRowIds: [] }), [s]), C = S((f) => {
4109
- n((I) => ({
4110
- ...I,
4111
- expandedRowIds: I.expandedRowIds.includes(f) ? I.expandedRowIds.filter((T) => T !== f) : [...I.expandedRowIds, f]
4114
+ }, [n]), u = C((f) => s({ selectedRowIds: f }), [s]), p = C(() => s({ selectedRowIds: [] }), [s]), v = C((f) => {
4115
+ n((x) => ({
4116
+ ...x,
4117
+ expandedRowIds: x.expandedRowIds.includes(f) ? x.expandedRowIds.filter((I) => I !== f) : [...x.expandedRowIds, f]
4112
4118
  }));
4113
- }, [n]), b = S(() => n(o), [n, o]), m = S((f) => e.selectedRowIds.includes(f), [e.selectedRowIds]), g = S((f) => e.expandedRowIds.includes(f), [e.expandedRowIds]);
4119
+ }, [n]), b = C(() => n(o), [n, o]), m = C((f) => e.selectedRowIds.includes(f), [e.selectedRowIds]), g = C((f) => e.expandedRowIds.includes(f), [e.expandedRowIds]);
4114
4120
  return {
4115
4121
  /** Estado completo do grid */
4116
4122
  state: e,
@@ -4135,51 +4141,51 @@ function es(A, t) {
4135
4141
  /** Se tem alguma linha selecionada */
4136
4142
  hasSelection: e.selectedRowIds.length > 0,
4137
4143
  // Expansao (master-detail)
4138
- toggleRowExpansion: C,
4144
+ toggleRowExpansion: v,
4139
4145
  isRowExpanded: g
4140
4146
  };
4141
4147
  }
4142
- const VA = {
4148
+ const UA = {
4143
4149
  expandedNodeIds: [],
4144
4150
  selectedNodeIds: [],
4145
4151
  focusedNodeId: null
4146
4152
  };
4147
- function As(A, t = []) {
4153
+ function ns(A, t = []) {
4148
4154
  const [o, e] = oA(
4149
4155
  `tree_${A}`,
4150
- { ...VA, expandedNodeIds: t }
4151
- ), n = S((m) => {
4156
+ { ...UA, expandedNodeIds: t }
4157
+ ), n = C((m) => {
4152
4158
  e((g) => ({
4153
4159
  ...g,
4154
4160
  expandedNodeIds: g.expandedNodeIds.includes(m) ? g.expandedNodeIds.filter((f) => f !== m) : [...g.expandedNodeIds, m]
4155
4161
  }));
4156
- }, [e]), s = S((m) => {
4162
+ }, [e]), s = C((m) => {
4157
4163
  e((g) => ({
4158
4164
  ...g,
4159
4165
  expandedNodeIds: g.expandedNodeIds.includes(m) ? g.expandedNodeIds : [...g.expandedNodeIds, m]
4160
4166
  }));
4161
- }, [e]), a = S((m) => {
4167
+ }, [e]), a = C((m) => {
4162
4168
  e((g) => ({
4163
4169
  ...g,
4164
4170
  expandedNodeIds: g.expandedNodeIds.filter((f) => f !== m)
4165
4171
  }));
4166
- }, [e]), l = S((m) => {
4172
+ }, [e]), l = C((m) => {
4167
4173
  e((g) => ({ ...g, expandedNodeIds: m }));
4168
- }, [e]), i = S(() => {
4174
+ }, [e]), i = C(() => {
4169
4175
  e((m) => ({ ...m, expandedNodeIds: [] }));
4170
- }, [e]), h = S((m) => {
4176
+ }, [e]), h = C((m) => {
4171
4177
  e((g) => ({ ...g, selectedNodeIds: m }));
4172
- }, [e]), c = S((m) => {
4178
+ }, [e]), c = C((m) => {
4173
4179
  e((g) => ({
4174
4180
  ...g,
4175
4181
  selectedNodeIds: g.selectedNodeIds.includes(m) ? g.selectedNodeIds.filter((f) => f !== m) : [...g.selectedNodeIds, m]
4176
4182
  }));
4177
- }, [e]), d = S(() => {
4183
+ }, [e]), d = C(() => {
4178
4184
  e((m) => ({ ...m, selectedNodeIds: [] }));
4179
- }, [e]), u = S((m) => {
4185
+ }, [e]), u = C((m) => {
4180
4186
  e((g) => ({ ...g, focusedNodeId: m }));
4181
- }, [e]), p = S((m) => o.expandedNodeIds.includes(m), [o.expandedNodeIds]), C = S((m) => o.selectedNodeIds.includes(m), [o.selectedNodeIds]), b = S(() => {
4182
- e({ ...VA, expandedNodeIds: t });
4187
+ }, [e]), p = C((m) => o.expandedNodeIds.includes(m), [o.expandedNodeIds]), v = C((m) => o.selectedNodeIds.includes(m), [o.selectedNodeIds]), b = C(() => {
4188
+ e({ ...UA, expandedNodeIds: t });
4183
4189
  }, [e, t]);
4184
4190
  return {
4185
4191
  state: o,
@@ -4195,7 +4201,7 @@ function As(A, t = []) {
4195
4201
  setSelected: h,
4196
4202
  toggleSelected: c,
4197
4203
  clearSelection: d,
4198
- isSelected: C,
4204
+ isSelected: v,
4199
4205
  selectedCount: o.selectedNodeIds.length,
4200
4206
  hasSelection: o.selectedNodeIds.length > 0,
4201
4207
  // Foco
@@ -4203,17 +4209,17 @@ function As(A, t = []) {
4203
4209
  focusedNodeId: o.focusedNodeId
4204
4210
  };
4205
4211
  }
4206
- function rs(A, t = [], o = !0) {
4212
+ function ss(A, t = [], o = !0) {
4207
4213
  const [e, n] = oA(
4208
4214
  `accordion_${A}`,
4209
4215
  t
4210
- ), s = S((d) => {
4216
+ ), s = C((d) => {
4211
4217
  n((u) => u.includes(d) ? u.filter((p) => p !== d) : o ? [...u, d] : [d]);
4212
- }, [n, o]), a = S((d) => {
4218
+ }, [n, o]), a = C((d) => {
4213
4219
  n((u) => u.includes(d) ? u : o ? [...u, d] : [d]);
4214
- }, [n, o]), l = S((d) => {
4220
+ }, [n, o]), l = C((d) => {
4215
4221
  n((u) => u.filter((p) => p !== d));
4216
- }, [n]), i = S(() => n([]), [n]), h = S((d) => e.includes(d), [e]), c = S((d) => {
4222
+ }, [n]), i = C(() => n([]), [n]), h = C((d) => e.includes(d), [e]), c = C((d) => {
4217
4223
  n(d === null ? [] : typeof d == "string" ? [d] : d);
4218
4224
  }, [n]);
4219
4225
  return {
@@ -4230,7 +4236,7 @@ function rs(A, t = [], o = !0) {
4230
4236
  isExpanded: h
4231
4237
  };
4232
4238
  }
4233
- function ts(A, t = {}) {
4239
+ function ls(A, t = {}) {
4234
4240
  const { debounceMs: o = 100 } = t, e = EA();
4235
4241
  oe(() => {
4236
4242
  if (!e || !A.current)
@@ -4254,8 +4260,8 @@ function ts(A, t = {}) {
4254
4260
  };
4255
4261
  }, [e, A, o]);
4256
4262
  }
4257
- function os(A) {
4258
- const t = Xe(), o = AA((l) => l.activeTabId), e = t.pathname + t.search, n = o === e, s = _(n), a = _(!0);
4263
+ function as(A) {
4264
+ const t = Xe(), o = AA((l) => l.activeTabId), e = t.pathname + t.search, n = o === e, s = Z(n), a = Z(!0);
4259
4265
  return oe(() => {
4260
4266
  if (a.current) {
4261
4267
  a.current = !1, s.current = n;
@@ -4264,12 +4270,12 @@ function os(A) {
4264
4270
  n && !s.current && A && A(), s.current = n;
4265
4271
  }, [n, A]), n;
4266
4272
  }
4267
- function ns(A) {
4268
- const t = EA(), o = `drawer_${A}_open`, e = `drawer_${A}_data`, n = _(!1), s = _(null), a = t ? t.getState().customState[o] ?? !1 : n.current, l = t ? t.getState().customState[e] ?? null : s.current, i = S((d) => {
4273
+ function is(A) {
4274
+ const t = EA(), o = `drawer_${A}_open`, e = `drawer_${A}_data`, n = Z(!1), s = Z(null), a = t ? t.getState().customState[o] ?? !1 : n.current, l = t ? t.getState().customState[e] ?? null : s.current, i = C((d) => {
4269
4275
  t ? (d !== void 0 && t.getState().setCustomState(e, d), t.getState().setCustomState(o, !0)) : (d !== void 0 && (s.current = d), n.current = !0);
4270
- }, [t, o, e]), h = S(() => {
4276
+ }, [t, o, e]), h = C(() => {
4271
4277
  t ? t.getState().setCustomState(o, !1) : n.current = !1;
4272
- }, [t, o]), c = S(() => {
4278
+ }, [t, o]), c = C(() => {
4273
4279
  t ? (t.getState().setCustomState(o, !1), t.getState().clearCustomState(e)) : (n.current = !1, s.current = null);
4274
4280
  }, [t, o, e]);
4275
4281
  return {
@@ -4280,89 +4286,89 @@ function ns(A) {
4280
4286
  closeAndClear: c
4281
4287
  };
4282
4288
  }
4283
- const ss = ({
4289
+ const cs = ({
4284
4290
  routes: A,
4285
4291
  fallback: t,
4286
4292
  getTabId: o = (e, n) => e + n
4287
4293
  }) => {
4288
4294
  const e = Xe(), n = o(e.pathname, e.search);
4289
- return /* @__PURE__ */ r(tn, { tabId: n, children: /* @__PURE__ */ R(er, { children: [
4295
+ return /* @__PURE__ */ r(ln, { tabId: n, children: /* @__PURE__ */ R(tr, { children: [
4290
4296
  A.map(({ path: s, element: a }) => /* @__PURE__ */ r(Ke, { path: s, element: a }, s)),
4291
4297
  t && /* @__PURE__ */ r(Ke, { path: "*", element: /* @__PURE__ */ r(Pe, { children: t }) })
4292
4298
  ] }) }, n);
4293
4299
  };
4294
4300
  export {
4295
4301
  rA as ArchbaseAdminLayoutContext,
4296
- Rn as ArchbaseAdminLayoutFooter,
4297
- Pn as ArchbaseAdminLayoutHeader,
4298
- Kt as ArchbaseAdminLayoutProvider,
4299
- Gn as ArchbaseAdminMainLayout,
4300
- Hn as ArchbaseAdminTabContainer,
4301
- _t as ArchbaseAdvancedSidebar,
4302
- No as ArchbaseAliveAbleRoutes,
4303
- Ft as ArchbaseChangeLanguageAction,
4304
- Gt as ArchbaseColorSchemeAction,
4305
- qn as ArchbaseDrawerContent,
4306
- jn as ArchbaseDrawerTrigger,
4307
- Bt as ArchbaseHeaderNavAction,
4302
+ Dn as ArchbaseAdminLayoutFooter,
4303
+ Nn as ArchbaseAdminLayoutHeader,
4304
+ Bt as ArchbaseAdminLayoutProvider,
4305
+ Yn as ArchbaseAdminMainLayout,
4306
+ Xn as ArchbaseAdminTabContainer,
4307
+ Ao as ArchbaseAdvancedSidebar,
4308
+ Qo as ArchbaseAliveAbleRoutes,
4309
+ Ut as ArchbaseChangeLanguageAction,
4310
+ Yt as ArchbaseColorSchemeAction,
4311
+ _n as ArchbaseDrawerContent,
4312
+ Wn as ArchbaseDrawerTrigger,
4313
+ qt as ArchbaseHeaderNavAction,
4308
4314
  eA as ArchbaseKeepAliveRoute,
4309
- co as ArchbaseMantineSidebar,
4310
- Xn as ArchbaseMyProfileModal,
4311
- vr as ArchbaseNavigationContext,
4312
- Bn as ArchbaseNavigationProvider,
4313
- ss as ArchbaseStatefulRoutes,
4314
- Ht as CommandPaletteButton,
4315
- Ro as KeepAliveCacheProvider,
4315
+ po as ArchbaseMantineSidebar,
4316
+ Zn as ArchbaseMyProfileModal,
4317
+ Sr as ArchbaseNavigationContext,
4318
+ qn as ArchbaseNavigationProvider,
4319
+ cs as ArchbaseStatefulRoutes,
4320
+ Xt as CommandPaletteButton,
4321
+ Do as KeepAliveCacheProvider,
4316
4322
  xA as MantineSidebarErrorMessage,
4317
- ro as MantineSidebarGroupsSkeleton,
4323
+ so as MantineSidebarGroupsSkeleton,
4318
4324
  kA as MantineSidebarMenuSkeleton,
4319
- lo as MinimalSidebar,
4320
- Oo as NavigationProgressProvider,
4321
- io as RailSidebar,
4322
- zn as SidebarBadge,
4323
- OA as SidebarErrorMessage,
4324
- eo as SidebarGroup,
4325
- Ao as SidebarGroupIcon,
4326
- Jt as SidebarGroupsSkeleton,
4327
- $n as SidebarHeaderSkeleton,
4328
- On as SidebarIndicator,
4325
+ uo as MinimalSidebar,
4326
+ Fo as NavigationProgressProvider,
4327
+ fo as RailSidebar,
4328
+ Kn as SidebarBadge,
4329
+ KA as SidebarErrorMessage,
4330
+ oo as SidebarGroup,
4331
+ no as SidebarGroupIcon,
4332
+ eo as SidebarGroupsSkeleton,
4333
+ Vn as SidebarHeaderSkeleton,
4334
+ Fn as SidebarIndicator,
4329
4335
  $e as SidebarItem,
4330
- zA as SidebarMenuSkeleton,
4336
+ QA as SidebarMenuSkeleton,
4331
4337
  CA as SidebarProvider,
4332
- Dn as SidebarSearch,
4333
- Mn as SidebarSection,
4334
- Nn as SidebarUserProfile,
4335
- Qn as SidebarUserProfileSkeleton,
4336
- oo as StandardSidebar,
4337
- tn as TabStoreProvider,
4338
- rn as createTabStore,
4339
- Yt as defaultAvatar,
4340
- An as defaultMyProfileModalOptions,
4341
- Yn as navigationDataSample,
4342
- rs as useArchbaseAccordionState,
4343
- Jn as useArchbaseAdminStore,
4344
- en as useArchbaseDrawer,
4345
- ns as useArchbaseDrawerState,
4346
- es as useArchbaseGridState,
4347
- Cr as useArchbaseNavigationContext,
4348
- Un as useArchbaseNavigationListener,
4349
- Fn as useArchbaseRouteParams,
4350
- ts as useArchbaseScrollRestore,
4338
+ $n as SidebarSearch,
4339
+ On as SidebarSection,
4340
+ Qn as SidebarUserProfile,
4341
+ Gn as SidebarUserProfileSkeleton,
4342
+ ao as StandardSidebar,
4343
+ ln as TabStoreProvider,
4344
+ sn as createTabStore,
4345
+ Jt as defaultAvatar,
4346
+ nn as defaultMyProfileModalOptions,
4347
+ Jn as navigationDataSample,
4348
+ ss as useArchbaseAccordionState,
4349
+ es as useArchbaseAdminStore,
4350
+ on as useArchbaseDrawer,
4351
+ is as useArchbaseDrawerState,
4352
+ os as useArchbaseGridState,
4353
+ kr as useArchbaseNavigationContext,
4354
+ jn as useArchbaseNavigationListener,
4355
+ Un as useArchbaseRouteParams,
4356
+ ls as useArchbaseScrollRestore,
4351
4357
  oA as useArchbaseState,
4352
- Zn as useArchbaseStateNamed,
4353
- os as useArchbaseTabActive,
4354
- As as useArchbaseTreeState,
4355
- Eo as useKeepAliveCache,
4356
- Kn as useKeepAliveVisibility,
4357
- yr as useNavigationProgress,
4358
- Vn as useParams,
4358
+ ts as useArchbaseStateNamed,
4359
+ as as useArchbaseTabActive,
4360
+ ns as useArchbaseTreeState,
4361
+ Mo as useKeepAliveCache,
4362
+ Bn as useKeepAliveVisibility,
4363
+ wr as useNavigationProgress,
4364
+ Hn as useParams,
4359
4365
  vA as useSidebar,
4360
4366
  SA as useSidebarKeyboard,
4361
4367
  wA as useSidebarNavigation,
4362
- Ln as useSidebarOptional,
4363
- Wt as useSidebarSearch,
4368
+ zn as useSidebarOptional,
4369
+ ro as useSidebarSearch,
4364
4370
  AA as useTabRegistryStore,
4365
- _n as useTabStore,
4366
- Wn as useTabStoreApi,
4371
+ As as useTabStore,
4372
+ rs as useTabStoreApi,
4367
4373
  EA as useTabStoreOptional
4368
4374
  };