@archbase/admin 3.0.14 → 3.0.15

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,20 +1,20 @@
1
- import { jsx as A, jsxs as L, Fragment as wA } from "react/jsx-runtime";
2
- import bA, { useState as fA, useRef as mA, useEffect as iA, useMemo as uA, useContext as SA, useCallback as F, createContext as FA, useLayoutEffect as GA, useReducer as Fe } from "react";
3
- import { useArchbaseSecurityManager as qe } from "@archbase/security";
4
- import { useUncontrolled as JA, useMediaQuery as ge, useHotkeys as He, useDisclosure as Ve, useFocusTrap as Ye, useForceUpdate as Ke } from "@mantine/hooks";
5
- import { Flex as BA, useMantineColorScheme as oA, Menu as AA, ActionIcon as RA, Group as vA, Tooltip as xA, Button as je, ScrollArea as TA, Badge as re, Center as VA, Image as Xe, useMantineTheme as pA, px as aA, Burger as Je, Box as G, Avatar as WA, Text as zA, Stack as _, Skeleton as cA, Paper as We, NavLink as be, Kbd as ve, UnstyledButton as ZA, Collapse as Ze, TextInput as xe, Indicator as _e, Transition as Ar, Divider as _A, AppShell as QA, Drawer as Se } from "@mantine/core";
1
+ import { jsx as A, jsxs as I, Fragment as vA } from "react/jsx-runtime";
2
+ import bA, { useState as pA, useRef as mA, useEffect as iA, useMemo as uA, useContext as IA, useCallback as H, createContext as HA, useLayoutEffect as GA, useReducer as He } from "react";
3
+ import { useArchbaseSecurityManager as Fe } from "@archbase/security";
4
+ import { useUncontrolled as JA, useMediaQuery as ge, useHotkeys as qe, useDisclosure as Ve, useFocusTrap as Ye, useForceUpdate as Ke } from "@mantine/hooks";
5
+ import { Flex as BA, useMantineColorScheme as oA, Menu as AA, ActionIcon as LA, Group as xA, Tooltip as SA, Button as je, ScrollArea as zA, Badge as re, Center as VA, Image as Xe, useMantineTheme as fA, px as aA, Burger as Je, Box as G, Avatar as WA, Text as CA, Stack as K, Skeleton as cA, Paper as We, NavLink as be, Kbd as ve, UnstyledButton as ZA, Collapse as Ze, TextInput as xe, Indicator as _e, Transition as Ar, Divider as _A, AppShell as QA, Drawer as Se } from "@mantine/core";
6
6
  import { IconSun as Ie, IconMoonStars as Ee, IconTerminal as er, IconSearch as YA, IconAlertCircle as rr, IconDots as Re, IconChevronRight as oe, IconChevronDown as or, IconX as Le, IconChevronLeft as nr, IconHome2 as tr, IconDashboard as sr, IconUsers as lr, IconListSearch as De, IconUserPlus as ir, IconNews as ar, IconFilePlus as cr, IconSettings as dr } from "@tabler/icons-react";
7
- import { useArchbaseAppContext as ne, getI18nextInstance as Z, useArchbaseTranslation as te, archbaseI18next as yA, useArchbaseValidator as ur, ARCHBASE_IOC_API_TYPE as hr } from "@archbase/core";
8
- import { BRFlag as UA, USFlag as Te, ESFlag as Ae, VEFlag as fr, UYFlag as pr, SVFlag as gr, PYFlag as br, PEFlag as mr, PAFlag as Cr, NIFlag as kr, MXFlag as yr, HNFlag as wr, GTFlag as vr, ECFlag as xr, DOFlag as Sr, CUFlag as Ir, CRFlag as Er, COFlag as Rr, CLFlag as Lr, BOFlag as Dr, ARFlag as Tr } from "mantine-flagpack";
7
+ import { useArchbaseAppContext as ne, getI18nextInstance as _, useArchbaseTranslation as te, archbaseI18next as wA, useArchbaseValidator as ur, ARCHBASE_IOC_API_TYPE as hr } from "@archbase/core";
8
+ import { BRFlag as UA, USFlag as Te, ESFlag as Ae, VEFlag as pr, UYFlag as fr, SVFlag as gr, PYFlag as br, PEFlag as mr, PAFlag as Cr, NIFlag as kr, MXFlag as yr, HNFlag as wr, GTFlag as vr, ECFlag as xr, DOFlag as Sr, CUFlag as Ir, CRFlag as Er, COFlag as Rr, CLFlag as Lr, BOFlag as Dr, ARFlag as Tr } from "mantine-flagpack";
9
9
  import { spotlight as zr, Spotlight as NA } from "@mantine/spotlight";
10
- import { useNavigate as qA, useLocation as HA, matchPath as me } from "react-router";
10
+ import { useNavigate as FA, useLocation as qA, matchPath as me } from "react-router";
11
11
  import { Routes as ze, useParams as Pr, useLocation as se, matchPath as Mr, Route as ee, useSearchParams as Pe, useNavigate as Or } from "react-router-dom";
12
12
  import { useMediaQuery as $r } from "usehooks-ts";
13
13
  import { useArchbaseNavigateParams as Qr, useArchbaseVisible as Nr, ArchbaseNotifications as Gr, ArchbaseAvatarEdit as Ur, ArchbaseEdit as XA } from "@archbase/components";
14
- import { SubMenu as Br, MenuItem as Ce, menuClasses as X, Sidebar as Me, Menu as Oe, sidebarClasses as $e } from "react-pro-sidebar";
15
- import Fr from "@rehooks/component-size";
16
- import { ArchbaseAdvancedTabs as qr } from "@archbase/layout";
17
- import { useArchbaseStore as Hr, useArchbaseRemoteServiceApi as Vr, useArchbaseRemoteDataSource as Yr } from "@archbase/data";
14
+ import { SubMenu as Br, MenuItem as Ce, menuClasses as J, Sidebar as Me, Menu as Oe, sidebarClasses as $e } from "react-pro-sidebar";
15
+ import Hr from "@rehooks/component-size";
16
+ import { ArchbaseAdvancedTabs as Fr } from "@archbase/layout";
17
+ import { useArchbaseStore as qr, useArchbaseRemoteServiceApi as Vr, useArchbaseRemoteDataSource as Yr } from "@archbase/data";
18
18
  import { ArchbaseFormModalTemplate as Kr } from "@archbase/template";
19
19
  import { create as jr } from "zustand";
20
20
  const jA = bA.createContext({}), Xr = ({
@@ -29,7 +29,7 @@ const jA = bA.createContext({}), Xr = ({
29
29
  onNavigationDataChange: c,
30
30
  initialSidebarCollapsed: l
31
31
  }) => {
32
- const [u, d] = fA(l), [h, f] = fA(!1), [y, w] = fA(() => i === !0), [m, p] = fA(null), g = mA(!1), [S, v] = JA({
32
+ const [u, d] = pA(l), [h, p] = pA(!1), [y, w] = pA(() => i === !0), [m, f] = pA(null), g = mA(!1), [S, v] = JA({
33
33
  value: c !== void 0 ? e : void 0,
34
34
  defaultValue: i ? [] : e,
35
35
  finalValue: [],
@@ -37,7 +37,7 @@ const jA = bA.createContext({}), Xr = ({
37
37
  });
38
38
  iA(() => {
39
39
  }, [S, i]);
40
- const { securityManager: C } = qe({
40
+ const { securityManager: C } = Fe({
41
41
  resourceName: n?.navigationResourceName ? n.navigationResourceName : "ArchbaseAdvancedSidebar",
42
42
  resourceDescription: n?.navigationResourceDescription ? n.navigationResourceDescription : "archbase:Navegação",
43
43
  enableSecurity: i
@@ -51,47 +51,47 @@ const jA = bA.createContext({}), Xr = ({
51
51
  }
52
52
  if (g.current)
53
53
  return;
54
- e.filter(($) => $.showInSidebar).forEach(($) => {
55
- C.registerAction($.label, $.label), $?.links?.forEach((T) => C.registerAction(`${$.label} -> ${T.label}`, `${$.label} -> ${T.label}`));
54
+ e.filter((Q) => Q.showInSidebar).forEach((Q) => {
55
+ C.registerAction(Q.label, Q.label), Q?.links?.forEach((T) => C.registerAction(`${Q.label} -> ${T.label}`, `${Q.label} -> ${T.label}`));
56
56
  });
57
- const Q = () => {
57
+ const $ = () => {
58
58
  g.current = !0;
59
- const $ = e.map((T) => ({
59
+ const Q = e.map((T) => ({
60
60
  ...T,
61
61
  disabled: !C.hasPermission(T.label),
62
62
  links: T.links && T.links.map((x) => {
63
- const I = C.hasPermission(`${T.label} -> ${x.label}`);
63
+ const E = C.hasPermission(`${T.label} -> ${x.label}`);
64
64
  return {
65
65
  ...x,
66
- disabled: !I
66
+ disabled: !E
67
67
  };
68
68
  })
69
69
  }));
70
- v($), w(!1), p(null);
71
- }, K = !C.isLoading() && !C.isError();
70
+ v(Q), w(!1), f(null);
71
+ }, j = !C.isLoading() && !C.isError();
72
72
  if (C.isError()) {
73
73
  g.current = !0;
74
- const $ = C.getError() || "Erro ao carregar permissões de navegação";
75
- p($), w(!1), v(e);
74
+ const Q = C.getError() || "Erro ao carregar permissões de navegação";
75
+ f(Q), w(!1), v(e);
76
76
  return;
77
77
  }
78
- if (K) {
79
- Q();
78
+ if (j) {
79
+ $();
80
80
  return;
81
81
  }
82
- w(!0), p(null);
82
+ w(!0), f(null);
83
83
  let D = !1;
84
84
  const O = setInterval(() => {
85
85
  if (!D && C.isError()) {
86
86
  clearInterval(O), g.current = !0;
87
- const $ = C.getError() || "Erro ao carregar permissões de navegação";
88
- p($), w(!1), v(e);
87
+ const Q = C.getError() || "Erro ao carregar permissões de navegação";
88
+ f(Q), w(!1), v(e);
89
89
  }
90
90
  }, 100), B = setTimeout(() => {
91
- D || (clearInterval(O), w(($) => $ && (g.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), v(e), !1)));
91
+ D || (clearInterval(O), w((Q) => Q && (g.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), v(e), !1)));
92
92
  }, 3e3);
93
93
  return C.apply(() => {
94
- D || (clearInterval(O), clearTimeout(B), Q());
94
+ D || (clearInterval(O), clearTimeout(B), $());
95
95
  }), () => {
96
96
  D = !0, clearInterval(O), clearTimeout(B);
97
97
  };
@@ -108,7 +108,7 @@ const jA = bA.createContext({}), Xr = ({
108
108
  collapsed: u,
109
109
  setCollapsed: d,
110
110
  hidden: h,
111
- setHidden: f,
111
+ setHidden: p,
112
112
  onNavigationDataChange: c,
113
113
  isLoadingPermissions: y,
114
114
  permissionsError: m
@@ -117,13 +117,13 @@ const jA = bA.createContext({}), Xr = ({
117
117
  }
118
118
  );
119
119
  }, dn = ({ children: e }) => /* @__PURE__ */ A(BA, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), Jr = () => {
120
- const e = ne(), { colorScheme: o } = oA(), s = o === "dark", [r, t] = fA(Z().language);
120
+ const e = ne(), { colorScheme: o } = oA(), s = o === "dark", [r, t] = pA(_().language);
121
121
  iA(() => {
122
122
  const c = (l) => {
123
123
  t(l);
124
124
  };
125
- return Z().on("languageChanged", c), () => {
126
- Z().off("languageChanged", c);
125
+ return _().on("languageChanged", c), () => {
126
+ _().off("languageChanged", c);
127
127
  };
128
128
  }, []);
129
129
  const a = (c) => {
@@ -171,9 +171,9 @@ const jA = bA.createContext({}), Xr = ({
171
171
  case "es-SV":
172
172
  return /* @__PURE__ */ A(gr, { size: 24 });
173
173
  case "es-UY":
174
- return /* @__PURE__ */ A(pr, { size: 24 });
175
- case "es-VE":
176
174
  return /* @__PURE__ */ A(fr, { size: 24 });
175
+ case "es-VE":
176
+ return /* @__PURE__ */ A(pr, { size: 24 });
177
177
  default:
178
178
  return /* @__PURE__ */ A(Ae, { size: 24 });
179
179
  }
@@ -190,10 +190,10 @@ const jA = bA.createContext({}), Xr = ({
190
190
  c.name
191
191
  ));
192
192
  }, n = (c) => {
193
- Z().changeLanguage(c);
193
+ _().changeLanguage(c);
194
194
  };
195
- return /* @__PURE__ */ L(AA, { shadow: "md", width: 200, position: "bottom-end", children: [
196
- /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(RA, { variant: "transparent", color: s ? "white" : "blue", title: Z().t("toggleLanguage"), children: a(r) }) }),
195
+ return /* @__PURE__ */ I(AA, { shadow: "md", width: 200, position: "bottom-end", children: [
196
+ /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(LA, { variant: "transparent", color: s ? "white" : "blue", title: _().t("toggleLanguage"), children: a(r) }) }),
197
197
  /* @__PURE__ */ A(AA.Dropdown, { children: i() })
198
198
  ] });
199
199
  }, Wr = () => {
@@ -211,9 +211,9 @@ const jA = bA.createContext({}), Xr = ({
211
211
  }, i = (n) => {
212
212
  r.changeLanguage(n);
213
213
  };
214
- return /* @__PURE__ */ L(AA, { children: [
215
- /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ L(
216
- vA,
214
+ return /* @__PURE__ */ I(AA, { children: [
215
+ /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ I(
216
+ xA,
217
217
  {
218
218
  w: "100%",
219
219
  justify: "flex-start",
@@ -222,7 +222,7 @@ const jA = bA.createContext({}), Xr = ({
222
222
  variant: "transparent",
223
223
  fw: 400,
224
224
  gap: 4,
225
- title: Z().t("archbase:toggleLanguage"),
225
+ title: _().t("archbase:toggleLanguage"),
226
226
  children: [
227
227
  t(r.language),
228
228
  `${e.languages.find((n) => n.lang === r.language)?.name ?? "Português"}`
@@ -240,31 +240,31 @@ const jA = bA.createContext({}), Xr = ({
240
240
  e ? e() : a();
241
241
  }, n = t === "dark";
242
242
  return /* @__PURE__ */ A(
243
- RA,
243
+ LA,
244
244
  {
245
245
  variant: "transparent",
246
246
  color: n ? o : s,
247
247
  onClick: () => i(),
248
- title: Z().t("archbase:toggleColorScheme"),
248
+ title: _().t("archbase:toggleColorScheme"),
249
249
  children: n ? /* @__PURE__ */ A(Ie, { size: "1.5rem" }) : /* @__PURE__ */ A(Ee, { size: "1.5rem" })
250
250
  }
251
251
  );
252
- }, _r = (e) => /* @__PURE__ */ A(vA, { gap: "sm", children: e.children });
252
+ }, _r = (e) => /* @__PURE__ */ A(xA, { gap: "sm", children: e.children });
253
253
  function Ao({ category: e, label: o, color: s, description: r, image: t, onClick: a }) {
254
254
  return /* @__PURE__ */ A(
255
255
  NA.Action,
256
256
  {
257
257
  onClick: a,
258
- label: `${Z().t(o || "")}`,
259
- description: r ? Z().t(r) : void 0,
260
- leftSection: t ? /* @__PURE__ */ A(VA, { children: /* @__PURE__ */ A(Xe, { src: t, alt: Z().t(o || ""), width: 24, height: 24 }) }) : void 0,
261
- rightSection: e ? /* @__PURE__ */ A(re, { color: s, size: "sm", children: Z().t(e) }) : void 0
258
+ label: `${_().t(o || "")}`,
259
+ description: r ? _().t(r) : void 0,
260
+ leftSection: t ? /* @__PURE__ */ A(VA, { children: /* @__PURE__ */ A(Xe, { src: t, alt: _().t(o || ""), width: 24, height: 24 }) }) : void 0,
261
+ rightSection: e ? /* @__PURE__ */ A(re, { color: s, size: "sm", children: _().t(e) }) : void 0
262
262
  },
263
263
  o
264
264
  );
265
265
  }
266
266
  const eo = ({ navigationData: e, color: o }) => {
267
- const [s, r] = fA(""), t = qA(), { t: a } = te(), i = uA(() => {
267
+ const [s, r] = pA(""), t = FA(), { t: a } = te(), i = uA(() => {
268
268
  const c = new Array();
269
269
  return e.forEach((l) => {
270
270
  l.links ? l.links.forEach((u) => {
@@ -293,9 +293,9 @@ const eo = ({ navigationData: e, color: o }) => {
293
293
  const l = `${a(c.label || "")}`;
294
294
  return l && l.toLowerCase().includes(s.toLowerCase().trim());
295
295
  }).map((c) => /* @__PURE__ */ A(Ao, { ...c }, c.id));
296
- return /* @__PURE__ */ A(wA, { children: i && i.length > 0 ? /* @__PURE__ */ L(wA, { children: [
297
- /* @__PURE__ */ A(xA, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(je, { color: o, leftSection: /* @__PURE__ */ A(er, { size: "24px" }), onClick: () => zr.open() }) }),
298
- /* @__PURE__ */ L(
296
+ return /* @__PURE__ */ A(vA, { children: i && i.length > 0 ? /* @__PURE__ */ I(vA, { children: [
297
+ /* @__PURE__ */ A(SA, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(je, { color: o, leftSection: /* @__PURE__ */ A(er, { size: "24px" }), onClick: () => zr.open() }) }),
298
+ /* @__PURE__ */ I(
299
299
  NA.Root,
300
300
  {
301
301
  shortcut: ["mod + M", "/"],
@@ -303,7 +303,7 @@ const eo = ({ navigationData: e, color: o }) => {
303
303
  query: s,
304
304
  children: [
305
305
  /* @__PURE__ */ A(NA.Search, { placeholder: `${a("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ A(YA, { size: "1.2rem" }) }),
306
- /* @__PURE__ */ A(TA.Autosize, { mah: "calc(100vh - 200px)", type: "scroll", scrollbarSize: 8, children: /* @__PURE__ */ A(NA.ActionsList, { children: n.length > 0 ? n : /* @__PURE__ */ A(NA.Empty, { children: Z().t("archbase:Nenhum resultado...") }) }) })
306
+ /* @__PURE__ */ A(zA.Autosize, { mah: "calc(100vh - 200px)", type: "scroll", scrollbarSize: 8, children: /* @__PURE__ */ A(NA.ActionsList, { children: n.length > 0 ? n : /* @__PURE__ */ A(NA.Empty, { children: _().t("archbase:Nenhum resultado...") }) }) })
307
307
  ]
308
308
  }
309
309
  )
@@ -322,75 +322,75 @@ const eo = ({ navigationData: e, color: o }) => {
322
322
  showHeaderToggleColorScheme: u = !0,
323
323
  hideAutoHeaderActionsOnUserMenuBreakPoint: d,
324
324
  withDividerAfterUserMenuToggleColorScheme: h = !0,
325
- user: f,
325
+ user: p,
326
326
  navigationData: y = [],
327
327
  logo: w,
328
328
  headerActions: m,
329
- styleLogo: p,
329
+ styleLogo: f,
330
330
  showLanguageSelector: g = !1,
331
331
  sideBarHiddenBreakPoint: S,
332
332
  headerLeftContent: v,
333
333
  toggleColorScheme: C,
334
334
  logoLeftSection: P,
335
- logoRightSection: Q,
336
- showBurger: K = !0,
337
- showCommands: J = !0,
335
+ logoRightSection: $,
336
+ showBurger: j = !0,
337
+ showCommands: W = !0,
338
338
  sunColor: D,
339
339
  moonColor: O,
340
340
  styles: B
341
341
  }) => {
342
- const $ = pA(), { colorScheme: T, toggleColorScheme: x } = oA(), I = SA(jA), V = ge(
343
- `(max-width: ${S ? aA(S) : $.breakpoints.md})`
344
- ), q = ge(
345
- `(max-width: ${d ? aA(d) : $.breakpoints.md})`
342
+ const Q = fA(), { colorScheme: T, toggleColorScheme: x } = oA(), E = IA(jA), V = ge(
343
+ `(max-width: ${S ? aA(S) : Q.breakpoints.md})`
344
+ ), F = ge(
345
+ `(max-width: ${d ? aA(d) : Q.breakpoints.md})`
346
346
  );
347
347
  let k = !1, b = !1;
348
- return c && (l = !q, u = !q, o = q, s = q, i = q, h = q, g && (b = !q, k = q)), /* @__PURE__ */ L(wA, { children: [
349
- /* @__PURE__ */ L(BA, { style: { width: 300, height: 50 }, align: "center", children: [
348
+ return c && (l = !F, u = !F, o = F, s = F, i = F, h = F, g && (b = !F, k = F)), /* @__PURE__ */ I(vA, { children: [
349
+ /* @__PURE__ */ I(BA, { style: { width: 300, height: 50 }, align: "center", children: [
350
350
  P,
351
351
  /* @__PURE__ */ A(
352
352
  "img",
353
353
  {
354
354
  style: {
355
355
  height: 50,
356
- ...p
356
+ ...f
357
357
  },
358
358
  alt: "logo",
359
359
  src: w
360
360
  }
361
361
  ),
362
- Q
362
+ $
363
363
  ] }),
364
- K && /* @__PURE__ */ A(
364
+ j && /* @__PURE__ */ A(
365
365
  Je,
366
366
  {
367
- opened: I.hidden ? I.hidden : !1,
368
- onClick: () => I.setHidden(!I.hidden),
367
+ opened: E.hidden ? E.hidden : !1,
368
+ onClick: () => E.setHidden(!E.hidden),
369
369
  size: "sm",
370
- color: $.colors.gray[7],
370
+ color: Q.colors.gray[7],
371
371
  mx: { base: "xs", xs: "lg", sm: "xl" },
372
372
  display: V ? "" : "none"
373
373
  }
374
374
  ),
375
- /* @__PURE__ */ A("div", { children: J && /* @__PURE__ */ A(eo, { navigationData: y }) }),
375
+ /* @__PURE__ */ A("div", { children: W && /* @__PURE__ */ A(eo, { navigationData: y }) }),
376
376
  /* @__PURE__ */ A(G, { style: { flex: 1 }, children: v }),
377
- /* @__PURE__ */ L(_r, { children: [
377
+ /* @__PURE__ */ I(_r, { children: [
378
378
  l && m,
379
379
  u && /* @__PURE__ */ A(Zr, { toggleColorScheme: C, sunColor: D, moonColor: O }),
380
380
  b && /* @__PURE__ */ A(Jr, {}),
381
- /* @__PURE__ */ L(AA, { shadow: "md", width: 200, position: "bottom-end", styles: B?.menu, children: [
382
- /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ L("div", { children: [
381
+ /* @__PURE__ */ I(AA, { shadow: "md", width: 200, position: "bottom-end", styles: B?.menu, children: [
382
+ /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ I("div", { children: [
383
383
  /* @__PURE__ */ A(
384
384
  WA,
385
385
  {
386
386
  style: { cursor: "pointer" },
387
387
  radius: "xl",
388
388
  ml: 8,
389
- src: f ? f.photo : ro,
390
- alt: f ? f.displayName : ""
389
+ src: p ? p.photo : ro,
390
+ alt: p ? p.displayName : ""
391
391
  }
392
392
  ),
393
- f && f.isAdmin ? /* @__PURE__ */ A(
393
+ p && p.isAdmin ? /* @__PURE__ */ A(
394
394
  "div",
395
395
  {
396
396
  style: {
@@ -407,20 +407,20 @@ const eo = ({ navigationData: e, color: o }) => {
407
407
  borderRadius: 50,
408
408
  backgroundColor: "green"
409
409
  },
410
- children: /* @__PURE__ */ A(zA, { size: "xs", c: "white", children: "A" })
410
+ children: /* @__PURE__ */ A(CA, { size: "xs", c: "white", children: "A" })
411
411
  }
412
412
  ) : null
413
413
  ] }) }),
414
- /* @__PURE__ */ L(AA.Dropdown, { children: [
414
+ /* @__PURE__ */ I(AA.Dropdown, { children: [
415
415
  e,
416
- s && /* @__PURE__ */ A(AA.Label, { children: `${Z().t("archbase:Opções")}` }),
416
+ s && /* @__PURE__ */ A(AA.Label, { children: `${_().t("archbase:Opções")}` }),
417
417
  i && n,
418
418
  o && /* @__PURE__ */ A(
419
419
  AA.Item,
420
420
  {
421
421
  leftSection: T === "dark" ? /* @__PURE__ */ A(Ie, { size: r }) : /* @__PURE__ */ A(Ee, { size: r }),
422
422
  onClick: C || x,
423
- children: `${Z().t("archbase:toggleColorScheme")}`
423
+ children: `${_().t("archbase:toggleColorScheme")}`
424
424
  }
425
425
  ),
426
426
  k && /* @__PURE__ */ A(Wr, {}),
@@ -432,33 +432,33 @@ const eo = ({ navigationData: e, color: o }) => {
432
432
  ] });
433
433
  };
434
434
  function ke(e, o, s, r, t, a, i, n, c, l) {
435
- const u = a ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, d = a ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, h = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", f = "0.5";
435
+ const u = a ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, d = a ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, h = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", p = "0.5";
436
436
  if (r.links) {
437
437
  if (!(r.disabled && r.hideDisabledItem))
438
- return /* @__PURE__ */ A(xA, { disabled: !o, label: yA.t(r.label), children: /* @__PURE__ */ A(
438
+ return /* @__PURE__ */ A(SA, { disabled: !o, label: wA.t(r.label), children: /* @__PURE__ */ A(
439
439
  Br,
440
440
  {
441
441
  rootStyles: {
442
442
  fontSize: "16px",
443
- [`.${X.button}`]: {
443
+ [`.${J.button}`]: {
444
444
  "&:hover": {
445
- [`.${X.icon}`]: {
445
+ [`.${J.icon}`]: {
446
446
  color: "white"
447
447
  },
448
- [`.${X.label}`]: {
448
+ [`.${J.label}`]: {
449
449
  color: "white"
450
450
  }
451
451
  }
452
452
  },
453
- [`.${X.subMenuContent}`]: {
453
+ [`.${J.subMenuContent}`]: {
454
454
  width: o && l
455
455
  },
456
- [`.${X.disabled}`]: {
457
- opacity: f,
458
- [`.${X.icon}`]: {
456
+ [`.${J.disabled}`]: {
457
+ opacity: p,
458
+ [`.${J.icon}`]: {
459
459
  color: h + " !important"
460
460
  },
461
- [`.${X.label}`]: {
461
+ [`.${J.label}`]: {
462
462
  color: h + " !important"
463
463
  }
464
464
  }
@@ -466,38 +466,38 @@ function ke(e, o, s, r, t, a, i, n, c, l) {
466
466
  id: r.label,
467
467
  icon: r.icon,
468
468
  defaultOpen: !r.disabled,
469
- label: o ? "" : yA.t(r.label),
469
+ label: o ? "" : wA.t(r.label),
470
470
  disabled: r.disabled,
471
471
  children: r.links && r.links.filter((y) => y.showInSidebar === !0 && (!y.disabled || !y.hideDisabledItem)).map((y, w) => /* @__PURE__ */ A(
472
472
  Ce,
473
473
  {
474
474
  onClick: () => s(y),
475
475
  rootStyles: {
476
- [`.${X.icon}`]: {
476
+ [`.${J.icon}`]: {
477
477
  background: u,
478
478
  color: n && y.link === i ? "white" : d
479
479
  },
480
- [`.${X.label}`]: {
480
+ [`.${J.label}`]: {
481
481
  color: n && y.link === i ? "white" : c
482
482
  },
483
- [`.${X.button}`]: {
483
+ [`.${J.button}`]: {
484
484
  paddingLeft: "40px !important",
485
485
  "&:hover": {
486
- [`.${X.icon}`]: {
486
+ [`.${J.icon}`]: {
487
487
  color: "white"
488
488
  },
489
- [`.${X.label}`]: {
489
+ [`.${J.label}`]: {
490
490
  color: "white"
491
491
  }
492
492
  }
493
493
  },
494
- [`.${X.disabled}`]: {
495
- opacity: f,
496
- [`.${X.icon}`]: {
494
+ [`.${J.disabled}`]: {
495
+ opacity: p,
496
+ [`.${J.icon}`]: {
497
497
  background: (u || "") + " !important",
498
498
  color: h + " !important"
499
499
  },
500
- [`.${X.label}`]: {
500
+ [`.${J.label}`]: {
501
501
  color: h + " !important"
502
502
  }
503
503
  }
@@ -506,7 +506,7 @@ function ke(e, o, s, r, t, a, i, n, c, l) {
506
506
  icon: y.icon,
507
507
  disabled: typeof y.disabled == "function" ? y.disabled() : y.disabled,
508
508
  active: n && y.link === i,
509
- children: yA.t(y.label)
509
+ children: wA.t(y.label)
510
510
  },
511
511
  w
512
512
  ))
@@ -514,35 +514,35 @@ function ke(e, o, s, r, t, a, i, n, c, l) {
514
514
  t
515
515
  ) });
516
516
  } else if (r.showInSidebar && (!r.disabled || !r.hideDisabledItem))
517
- return /* @__PURE__ */ A(xA, { disabled: !o, label: yA.t(r.label), children: /* @__PURE__ */ A(
517
+ return /* @__PURE__ */ A(SA, { disabled: !o, label: wA.t(r.label), children: /* @__PURE__ */ A(
518
518
  Ce,
519
519
  {
520
520
  rootStyles: {
521
521
  fontSize: "16px",
522
- [`.${X.button}`]: {
522
+ [`.${J.button}`]: {
523
523
  "&:hover": {
524
- [`.${X.icon}`]: {
524
+ [`.${J.icon}`]: {
525
525
  color: "white"
526
526
  },
527
- [`.${X.label}`]: {
527
+ [`.${J.label}`]: {
528
528
  color: "white"
529
529
  }
530
530
  }
531
531
  },
532
- [`.${X.icon}`]: {
532
+ [`.${J.icon}`]: {
533
533
  background: u,
534
534
  color: n && r.link === i ? "white" : d
535
535
  },
536
- [`.${X.label}`]: {
536
+ [`.${J.label}`]: {
537
537
  color: n && r.link === i ? "white" : c
538
538
  },
539
- [`.${X.disabled}`]: {
540
- opacity: f,
541
- [`.${X.icon}`]: {
539
+ [`.${J.disabled}`]: {
540
+ opacity: p,
541
+ [`.${J.icon}`]: {
542
542
  background: (u || "") + " !important",
543
543
  color: h + " !important"
544
544
  },
545
- [`.${X.label}`]: {
545
+ [`.${J.label}`]: {
546
546
  color: h + " !important"
547
547
  }
548
548
  }
@@ -552,7 +552,7 @@ function ke(e, o, s, r, t, a, i, n, c, l) {
552
552
  onClick: () => s(r),
553
553
  icon: r.icon,
554
554
  active: n && r.link === i,
555
- children: o ? "" : yA.t(r.label)
555
+ children: o ? "" : wA.t(r.label)
556
556
  },
557
557
  t
558
558
  ) });
@@ -594,7 +594,7 @@ const oo = (e) => ({
594
594
  }
595
595
  }
596
596
  }), no = (e, o, s, r, t, a, i, n, c, l, u) => {
597
- const d = oo(), h = a ? {} : { padding: s ? `0 ${(t - r) / 2}px` : "0 20px" }, f = a ? {} : { display: "none" }, y = i ? e === "dark" ? o.colors[o.primaryColor][8] : o.colors[o.primaryColor][0] : void 0;
597
+ const d = oo(), h = a ? {} : { padding: s ? `0 ${(t - r) / 2}px` : "0 20px" }, p = a ? {} : { display: "none" }, y = i ? e === "dark" ? o.colors[o.primaryColor][8] : o.colors[o.primaryColor][0] : void 0;
598
598
  return {
599
599
  root: {
600
600
  fontSize: "14px",
@@ -605,26 +605,26 @@ const oo = (e) => ({
605
605
  icon: {
606
606
  background: y,
607
607
  color: u,
608
- [`&.${X.disabled}`]: {
608
+ [`&.${J.disabled}`]: {
609
609
  color: d[e].menu.disabled.color
610
610
  }
611
611
  },
612
612
  SubMenuExpandIcon: {
613
613
  color: "#b6b7b9",
614
- ...f
614
+ ...p
615
615
  },
616
616
  subMenuContent: () => ({
617
617
  backgroundColor: e === "dark" ? o.colors.dark[8] : o.colors[o.primaryColor][0]
618
618
  }),
619
619
  button: {
620
- [`&.${X.disabled}`]: {
620
+ [`&.${J.disabled}`]: {
621
621
  color: d[e].menu.disabled.color
622
622
  },
623
623
  "&:hover": {
624
624
  backgroundColor: o.colors[o.primaryColor][6],
625
625
  color: o.white
626
626
  },
627
- [`&.${X.active}`]: {
627
+ [`&.${J.active}`]: {
628
628
  backgroundColor: o.colors[o.primaryColor][6]
629
629
  },
630
630
  height: n,
@@ -640,7 +640,7 @@ const oo = (e) => ({
640
640
  };
641
641
  };
642
642
  function to(e, o, s, r, t, a, i, n, c, l, u) {
643
- return /* @__PURE__ */ L(
643
+ return /* @__PURE__ */ I(
644
644
  Me,
645
645
  {
646
646
  ref: e,
@@ -659,9 +659,9 @@ function to(e, o, s, r, t, a, i, n, c, l, u) {
659
659
  width: `${aA(s)}px`,
660
660
  collapsedWidth: `${aA(r)}px`,
661
661
  children: [
662
- c && /* @__PURE__ */ A(wA, { children: c }),
663
- /* @__PURE__ */ A(TA, { style: { overflowY: "auto", overflowX: "hidden", height: n }, children: /* @__PURE__ */ A(Oe, { rootStyles: { background: u }, menuItemStyles: t, closeOnClick: !0, children: a && /* @__PURE__ */ A(wA, { children: a }) }) }),
664
- l && /* @__PURE__ */ A(wA, { children: l })
662
+ c && /* @__PURE__ */ A(vA, { children: c }),
663
+ /* @__PURE__ */ A(zA, { style: { overflowY: "auto", overflowX: "hidden", height: n }, children: /* @__PURE__ */ A(Oe, { rootStyles: { background: u }, menuItemStyles: t, closeOnClick: !0, children: a && /* @__PURE__ */ A(vA, { children: a }) }) }),
664
+ l && /* @__PURE__ */ A(vA, { children: l })
665
665
  ]
666
666
  }
667
667
  );
@@ -671,9 +671,9 @@ function ye({
671
671
  collapsed: o = !1,
672
672
  backgroundColor: s
673
673
  }) {
674
- const r = pA(), { colorScheme: t } = oA(), a = s ?? (t === "dark" ? r.colors.dark[7] : r.white);
674
+ const r = fA(), { colorScheme: t } = oA(), a = s ?? (t === "dark" ? r.colors.dark[7] : r.white);
675
675
  return o ? /* @__PURE__ */ A(
676
- _,
676
+ K,
677
677
  {
678
678
  gap: "sm",
679
679
  p: "xs",
@@ -694,7 +694,7 @@ function ye({
694
694
  ))
695
695
  }
696
696
  ) : /* @__PURE__ */ A(
697
- _,
697
+ K,
698
698
  {
699
699
  gap: "xs",
700
700
  p: "md",
@@ -704,7 +704,7 @@ function ye({
704
704
  width: "100%",
705
705
  height: "100%"
706
706
  },
707
- children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ L(vA, { gap: "sm", wrap: "nowrap", children: [
707
+ children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ I(xA, { gap: "sm", wrap: "nowrap", children: [
708
708
  /* @__PURE__ */ A(
709
709
  cA,
710
710
  {
@@ -731,9 +731,9 @@ function so({
731
731
  height: s = "100%",
732
732
  backgroundColor: r
733
733
  }) {
734
- const t = pA(), { colorScheme: a } = oA(), i = r ?? (a === "dark" ? t.colors.dark[6] : t.colors.gray[2]);
734
+ const t = fA(), { colorScheme: a } = oA(), i = r ?? (a === "dark" ? t.colors.dark[6] : t.colors.gray[2]);
735
735
  return /* @__PURE__ */ A(
736
- _,
736
+ K,
737
737
  {
738
738
  gap: "md",
739
739
  p: "xs",
@@ -743,7 +743,7 @@ function so({
743
743
  height: s,
744
744
  backgroundColor: i
745
745
  },
746
- children: Array.from({ length: e }).map((n, c) => /* @__PURE__ */ L(_, { gap: 4, align: "center", children: [
746
+ children: Array.from({ length: e }).map((n, c) => /* @__PURE__ */ I(K, { gap: 4, align: "center", children: [
747
747
  /* @__PURE__ */ A(
748
748
  cA,
749
749
  {
@@ -770,10 +770,10 @@ function we({
770
770
  backgroundColor: o,
771
771
  children: s
772
772
  }) {
773
- const r = pA(), { colorScheme: t } = oA(), a = o ?? (t === "dark" ? r.colors.dark[7] : r.white), i = t === "dark" ? r.colors.red[4] : r.colors.red[6];
774
- return s ? /* @__PURE__ */ A(wA, { children: s }) : /* @__PURE__ */ A(VA, { p: "md", style: { backgroundColor: a, flex: 1, height: "100%" }, children: /* @__PURE__ */ L(_, { align: "center", gap: "xs", children: [
773
+ const r = fA(), { colorScheme: t } = oA(), a = o ?? (t === "dark" ? r.colors.dark[7] : r.white), i = t === "dark" ? r.colors.red[4] : r.colors.red[6];
774
+ return s ? /* @__PURE__ */ A(vA, { children: s }) : /* @__PURE__ */ A(VA, { p: "md", style: { backgroundColor: a, flex: 1, height: "100%" }, children: /* @__PURE__ */ I(K, { align: "center", gap: "xs", children: [
775
775
  /* @__PURE__ */ A(rr, { size: 32, color: i }),
776
- /* @__PURE__ */ A(zA, { size: "sm", c: i, ta: "center", children: e })
776
+ /* @__PURE__ */ A(CA, { size: "sm", c: i, ta: "center", children: e })
777
777
  ] }) });
778
778
  }
779
779
  function lo({
@@ -790,57 +790,57 @@ function lo({
790
790
  sideBarFooterContent: u,
791
791
  groupLabelDarkColor: d,
792
792
  groupLabelLightColor: h,
793
- collapsed: f,
793
+ collapsed: p,
794
794
  onMenuItemClick: y,
795
795
  onClickActionIcon: w,
796
796
  withBorder: m = !1,
797
- showGroupLabels: p = !0,
797
+ showGroupLabels: f = !0,
798
798
  theme: g,
799
799
  sidebarRef: S,
800
800
  defaultGroupIcon: v,
801
801
  selectedGroupName: C,
802
802
  sideBarHeaderContent: P,
803
- iconsWithBackground: Q = !1,
804
- menuItemHeight: K = 40,
805
- highlightActiveMenuItem: J = !0,
803
+ iconsWithBackground: $ = !1,
804
+ menuItemHeight: j = 40,
805
+ highlightActiveMenuItem: W = !0,
806
806
  backgroundDarkColor: D,
807
807
  backgroundLightColor: O,
808
808
  textDarkColor: B,
809
- textLightColor: $,
809
+ textLightColor: Q,
810
810
  iconDarkColor: T,
811
811
  iconLightColor: x,
812
- collapsedSubmenuWidth: I,
812
+ collapsedSubmenuWidth: E,
813
813
  isLoading: V = !1,
814
- loadingError: q,
814
+ loadingError: F,
815
815
  loadingComponent: k,
816
816
  errorComponent: b,
817
- skeletonItemCount: R = 8,
817
+ skeletonItemCount: L = 8,
818
818
  skeletonGroupCount: M = 3
819
819
  }) {
820
- const [N, E] = fA(""), z = ne(), dA = HA(), { colorScheme: U } = oA(), lA = U === "dark" ? D ?? g.colors.dark[7] : O ?? g.white, eA = a || (U === "dark" ? g.colors[g.primaryColor][8] : g.colors[g.primaryColor][0]), nA = U === "dark" ? B ?? "var(--mantine-color-text)" : $ ?? "var(--mantine-color-text)", Y = U === "dark" ? T ?? g.colors[g.primaryColor][0] : x ?? g.colors[g.primaryColor][7], rA = uA(() => {
820
+ const [N, R] = pA(""), z = ne(), dA = qA(), { colorScheme: U } = oA(), lA = U === "dark" ? D ?? g.colors.dark[7] : O ?? g.white, eA = a || (U === "dark" ? g.colors[g.primaryColor][8] : g.colors[g.primaryColor][0]), nA = U === "dark" ? B ?? "var(--mantine-color-text)" : Q ?? "var(--mantine-color-text)", Y = U === "dark" ? T ?? g.colors[g.primaryColor][0] : x ?? g.colors[g.primaryColor][7], rA = uA(() => {
821
821
  const hA = /* @__PURE__ */ new Set();
822
- return e.forEach((W) => {
823
- if (W.showInSidebar && (!W.disabled || !W.hideDisabledItem)) {
824
- let DA = !1;
825
- W.group || (W.group = {
822
+ return e.forEach((Z) => {
823
+ if (Z.showInSidebar && (!Z.disabled || !Z.hideDisabledItem)) {
824
+ let TA = !1;
825
+ Z.group || (Z.group = {
826
826
  icon: v || /* @__PURE__ */ A(Re, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
827
827
  label: "Default",
828
828
  name: "Default",
829
829
  hint: "Default",
830
830
  indexOrder: 0
831
831
  }), hA.forEach((gA) => {
832
- gA.name === W.group.name && (DA = !0);
833
- }), DA || hA.add({
834
- name: W.group.name,
835
- indexOrder: W.group.indexOrder,
832
+ gA.name === Z.group.name && (TA = !0);
833
+ }), TA || hA.add({
834
+ name: Z.group.name,
835
+ indexOrder: Z.group.indexOrder,
836
836
  component: /* @__PURE__ */ A(
837
- xA,
837
+ SA,
838
838
  {
839
- content: W.group.hint,
840
- label: W.group.label,
841
- disabled: p,
842
- children: /* @__PURE__ */ L(
843
- _,
839
+ content: Z.group.hint,
840
+ label: Z.group.label,
841
+ disabled: f,
842
+ children: /* @__PURE__ */ I(
843
+ K,
844
844
  {
845
845
  gap: "2px",
846
846
  style: {
@@ -851,68 +851,68 @@ function lo({
851
851
  },
852
852
  children: [
853
853
  /* @__PURE__ */ A(
854
- RA,
854
+ LA,
855
855
  {
856
856
  size: "48px",
857
- variant: W.group.name === N ? "filled" : n ? "subtle" : "light",
858
- color: W.group.name === N ? eA : i,
857
+ variant: Z.group.name === N ? "filled" : n ? "subtle" : "light",
858
+ color: Z.group.name === N ? eA : i,
859
859
  onClick: () => {
860
- E((gA) => (w && w(gA, W.group.name), W.group.name === gA && !c ? "" : W.group.name));
860
+ R((gA) => (w && w(gA, Z.group.name), Z.group.name === gA && !c ? "" : Z.group.name));
861
861
  },
862
- children: W.group.icon
862
+ children: Z.group.icon
863
863
  }
864
864
  ),
865
- p ? /* @__PURE__ */ A(
866
- zA,
865
+ f ? /* @__PURE__ */ A(
866
+ CA,
867
867
  {
868
868
  size: "xs",
869
869
  c: U === "dark" ? d || g.colors[g.primaryColor][2] : h || g.colors[g.primaryColor][2],
870
- children: W.group.label
870
+ children: Z.group.label
871
871
  }
872
872
  ) : !1
873
873
  ]
874
874
  }
875
875
  )
876
876
  },
877
- W.group.name
877
+ Z.group.name
878
878
  )
879
879
  });
880
880
  }
881
- }), hA.forEach((W) => {
882
- const DA = e.filter((gA) => gA.showInSidebar === !0 && (!gA.disabled || !gA.hideDisabledItem) && gA.group && gA.group.name === W.name);
883
- W.links = DA.map((gA, j) => ke(g, f, y, gA, j, Q, dA.pathname, J, nA, I));
884
- }), [...hA].sort((W, DA) => W.indexOrder - DA.indexOrder);
885
- }, [e, N, U, f, z.selectedCompany, J, dA]), CA = no(
881
+ }), hA.forEach((Z) => {
882
+ const TA = e.filter((gA) => gA.showInSidebar === !0 && (!gA.disabled || !gA.hideDisabledItem) && gA.group && gA.group.name === Z.name);
883
+ Z.links = TA.map((gA, X) => ke(g, p, y, gA, X, $, dA.pathname, W, nA, E));
884
+ }), [...hA].sort((Z, TA) => Z.indexOrder - TA.indexOrder);
885
+ }, [e, N, U, p, z.selectedCompany, W, dA]), kA = no(
886
886
  U,
887
887
  g,
888
- f,
888
+ p,
889
889
  35,
890
890
  Number(aA(t)),
891
891
  rA.length > 1,
892
- Q,
893
- K,
892
+ $,
893
+ j,
894
894
  lA,
895
895
  nA,
896
896
  Y
897
- ), kA = f || N === "" ? "0px" : `calc(${s} - ${o})`, IA = n || (U === "dark" ? g.colors[g.primaryColor][6] : g.colors[g.primaryColor][7]), H = F(() => {
898
- C && rA.map((hA) => hA.name).includes(C) ? E(C) : rA.length > 1 && E("Default");
897
+ ), yA = p || N === "" ? "0px" : `calc(${s} - ${o})`, EA = n || (U === "dark" ? g.colors[g.primaryColor][6] : g.colors[g.primaryColor][7]), q = H(() => {
898
+ C && rA.map((hA) => hA.name).includes(C) ? R(C) : rA.length > 1 && R("Default");
899
899
  }, []);
900
900
  iA(() => {
901
- H();
901
+ q();
902
902
  }, []), iA(() => {
903
- f ? E("") : N === "" && H();
904
- }, [f]);
905
- const tA = () => q ? b || /* @__PURE__ */ A(
903
+ p ? R("") : N === "" && q();
904
+ }, [p]);
905
+ const tA = () => F ? b || /* @__PURE__ */ A(
906
906
  we,
907
907
  {
908
- message: q,
908
+ message: F,
909
909
  backgroundColor: lA
910
910
  }
911
911
  ) : V ? k || /* @__PURE__ */ A(
912
912
  ye,
913
913
  {
914
- itemCount: R,
915
- collapsed: f,
914
+ itemCount: L,
915
+ collapsed: p,
916
916
  backgroundColor: lA
917
917
  }
918
918
  ) : N !== "" ? /* @__PURE__ */ A(
@@ -929,23 +929,23 @@ function lo({
929
929
  }
930
930
  },
931
931
  style: { borderColor: U === "dark" ? "#000" : "#efefef" },
932
- collapsed: f,
933
- width: `${aA(kA)}`,
932
+ collapsed: p,
933
+ width: `${aA(yA)}`,
934
934
  collapsedWidth: "0px",
935
935
  children: /* @__PURE__ */ A(
936
- TA,
936
+ zA,
937
937
  {
938
938
  style: {
939
939
  overflowY: "auto",
940
940
  overflowX: "hidden",
941
941
  height: "100%",
942
- width: kA
942
+ width: yA
943
943
  },
944
- children: /* @__PURE__ */ A(Oe, { rootStyles: { background: lA }, menuItemStyles: CA, closeOnClick: !0, children: rA.find((hA) => hA.name === N)?.links || null })
944
+ children: /* @__PURE__ */ A(Oe, { rootStyles: { background: lA }, menuItemStyles: kA, closeOnClick: !0, children: rA.find((hA) => hA.name === N)?.links || null })
945
945
  }
946
946
  )
947
947
  }
948
- ) : null, EA = () => V && rA.length === 0 ? /* @__PURE__ */ A(
948
+ ) : null, RA = () => V && rA.length === 0 ? /* @__PURE__ */ A(
949
949
  so,
950
950
  {
951
951
  groupCount: M,
@@ -953,63 +953,63 @@ function lo({
953
953
  height: r
954
954
  }
955
955
  ) : rA.length !== 0 ? /* @__PURE__ */ A(
956
- _,
956
+ K,
957
957
  {
958
958
  gap: "4px",
959
959
  style: {
960
960
  height: r,
961
961
  width: o,
962
962
  padding: "4px",
963
- backgroundColor: IA
963
+ backgroundColor: EA
964
964
  },
965
965
  children: rA.map((hA) => /* @__PURE__ */ A(bA.Fragment, { children: hA.component }, hA.name))
966
966
  }
967
- ) : null, LA = () => q ? b || /* @__PURE__ */ A(
967
+ ) : null, DA = () => F ? b || /* @__PURE__ */ A(
968
968
  we,
969
969
  {
970
- message: q,
970
+ message: F,
971
971
  backgroundColor: lA
972
972
  }
973
973
  ) : V ? k || /* @__PURE__ */ A(
974
974
  ye,
975
975
  {
976
- itemCount: R,
977
- collapsed: f,
976
+ itemCount: L,
977
+ collapsed: p,
978
978
  backgroundColor: lA
979
979
  }
980
980
  ) : e.map(
981
- (hA, OA) => ke(g, f, y, hA, OA, Q, dA.pathname, J, nA, I)
981
+ (hA, OA) => ke(g, p, y, hA, OA, $, dA.pathname, W, nA, E)
982
982
  );
983
- return /* @__PURE__ */ A(wA, { children: rA.length == 1 ? to(
983
+ return /* @__PURE__ */ A(vA, { children: rA.length == 1 ? to(
984
984
  S,
985
- f,
985
+ p,
986
986
  s,
987
987
  t,
988
- CA,
989
- LA(),
988
+ kA,
989
+ DA(),
990
990
  c,
991
991
  r,
992
992
  P,
993
993
  u,
994
994
  lA
995
- ) : /* @__PURE__ */ L(BA, { direction: "column", w: f ? t : s, children: [
995
+ ) : /* @__PURE__ */ I(BA, { direction: "column", w: p ? t : s, children: [
996
996
  /* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: P }),
997
- /* @__PURE__ */ L(We, { withBorder: m, h: r, w: "100%", display: "flex", children: [
998
- EA(),
997
+ /* @__PURE__ */ I(We, { withBorder: m, h: r, w: "100%", display: "flex", children: [
998
+ RA(),
999
999
  tA()
1000
1000
  ] }),
1001
1001
  /* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: u })
1002
1002
  ] }) });
1003
1003
  }
1004
- const le = FA(null);
1004
+ const le = HA(null);
1005
1005
  function ie() {
1006
- const e = SA(le);
1006
+ const e = IA(le);
1007
1007
  if (!e)
1008
1008
  throw new Error("useSidebar must be used within a SidebarProvider");
1009
1009
  return e;
1010
1010
  }
1011
1011
  function hn() {
1012
- return SA(le);
1012
+ return IA(le);
1013
1013
  }
1014
1014
  function ae({
1015
1015
  children: e,
@@ -1025,71 +1025,71 @@ function ae({
1025
1025
  highlightActiveItem: u = !0,
1026
1026
  onMenuItemClick: d
1027
1027
  }) {
1028
- const h = HA(), f = qA(), [y, w] = JA({
1028
+ const h = qA(), p = FA(), [y, w] = JA({
1029
1029
  value: t,
1030
1030
  defaultValue: r,
1031
1031
  finalValue: !1,
1032
1032
  onChange: a
1033
- }), [m, p] = JA({
1033
+ }), [m, f] = JA({
1034
1034
  value: n,
1035
1035
  defaultValue: i,
1036
1036
  finalValue: "",
1037
1037
  onChange: c
1038
- }), [g, S] = fA(""), [v, C] = fA(() => {
1038
+ }), [g, S] = pA(""), [v, C] = pA(() => {
1039
1039
  const T = /* @__PURE__ */ new Set();
1040
- return o.forEach((x, I) => {
1041
- x.initiallyOpened && x.links && x.links.length > 0 && T.add(`group-${I}`);
1040
+ return o.forEach((x, E) => {
1041
+ x.initiallyOpened && x.links && x.links.length > 0 && T.add(`group-${E}`);
1042
1042
  }), T;
1043
- }), P = h.pathname, Q = F(() => {
1043
+ }), P = h.pathname, $ = H(() => {
1044
1044
  w(!y);
1045
- }, [y, w]), K = F((T) => {
1045
+ }, [y, w]), j = H((T) => {
1046
1046
  C((x) => {
1047
- const I = new Set(x);
1048
- return I.has(T) ? I.delete(T) : I.add(T), I;
1047
+ const E = new Set(x);
1048
+ return E.has(T) ? E.delete(T) : E.add(T), E;
1049
1049
  });
1050
- }, []), J = F((T) => {
1050
+ }, []), W = H((T) => {
1051
1051
  C((x) => {
1052
- const I = new Set(x);
1053
- return I.add(T), I;
1052
+ const E = new Set(x);
1053
+ return E.add(T), E;
1054
1054
  });
1055
- }, []), D = F((T) => {
1055
+ }, []), D = H((T) => {
1056
1056
  C((x) => {
1057
- const I = new Set(x);
1058
- return I.delete(T), I;
1057
+ const E = new Set(x);
1058
+ return E.delete(T), E;
1059
1059
  });
1060
1060
  }, []), O = uA(() => {
1061
1061
  if (!g.trim())
1062
1062
  return o;
1063
- const T = g.toLowerCase().trim(), x = (I) => I.reduce((V, q) => {
1064
- const k = q.label.toLowerCase().includes(T), b = q.links ? x(q.links) : [];
1063
+ const T = g.toLowerCase().trim(), x = (E) => E.reduce((V, F) => {
1064
+ const k = F.label.toLowerCase().includes(T), b = F.links ? x(F.links) : [];
1065
1065
  return (k || b.length > 0) && V.push({
1066
- ...q,
1067
- links: b.length > 0 ? b : q.links,
1066
+ ...F,
1067
+ links: b.length > 0 ? b : F.links,
1068
1068
  // Expandir automaticamente quando há match em subitens
1069
1069
  initiallyOpened: b.length > 0 || k
1070
1070
  }), V;
1071
1071
  }, []);
1072
1072
  return x(o);
1073
- }, [o, g]), B = F(
1073
+ }, [o, g]), B = H(
1074
1074
  (T) => {
1075
- d && d(T), T.link && (T.routeParams ? f(T.link, { state: T.routeParams }) : f(T.link)), T.redirect && f(T.redirect);
1075
+ d && d(T), T.link && (T.routeParams ? p(T.link, { state: T.routeParams }) : p(T.link)), T.redirect && p(T.redirect);
1076
1076
  },
1077
- [f, d]
1078
- ), $ = uA(
1077
+ [p, d]
1078
+ ), Q = uA(
1079
1079
  () => ({
1080
1080
  collapsed: y,
1081
1081
  setCollapsed: w,
1082
- toggleCollapsed: Q,
1082
+ toggleCollapsed: $,
1083
1083
  activeGroup: m,
1084
- setActiveGroup: p,
1084
+ setActiveGroup: f,
1085
1085
  activeItemPath: P,
1086
1086
  navigateToItem: B,
1087
1087
  searchQuery: g,
1088
1088
  setSearchQuery: S,
1089
1089
  filteredItems: O,
1090
1090
  expandedGroups: v,
1091
- toggleGroup: K,
1092
- expandGroup: J,
1091
+ toggleGroup: j,
1092
+ expandGroup: W,
1093
1093
  collapseGroup: D,
1094
1094
  variant: s,
1095
1095
  showKeyboardShortcuts: l,
@@ -1098,51 +1098,51 @@ function ae({
1098
1098
  [
1099
1099
  y,
1100
1100
  w,
1101
- Q,
1101
+ $,
1102
1102
  m,
1103
- p,
1103
+ f,
1104
1104
  P,
1105
1105
  B,
1106
1106
  g,
1107
1107
  O,
1108
1108
  v,
1109
- K,
1110
- J,
1109
+ j,
1110
+ W,
1111
1111
  D,
1112
1112
  s,
1113
1113
  l,
1114
1114
  u
1115
1115
  ]
1116
1116
  );
1117
- return /* @__PURE__ */ A(le.Provider, { value: $, children: e });
1117
+ return /* @__PURE__ */ A(le.Provider, { value: Q, children: e });
1118
1118
  }
1119
1119
  function ce({
1120
1120
  navigationData: e,
1121
1121
  onMenuItemClick: o
1122
1122
  }) {
1123
- const s = HA(), r = qA(), t = s.pathname, a = F(
1123
+ const s = qA(), r = FA(), t = s.pathname, a = H(
1124
1124
  (d) => {
1125
1125
  for (const h of d) {
1126
1126
  if (h.link === t)
1127
1127
  return h;
1128
1128
  if (h.links) {
1129
- const f = a(h.links);
1130
- if (f)
1131
- return f;
1129
+ const p = a(h.links);
1130
+ if (p)
1131
+ return p;
1132
1132
  }
1133
1133
  }
1134
1134
  return null;
1135
1135
  },
1136
1136
  [t]
1137
- ), i = uA(() => a(e), [a, e]), n = F(
1137
+ ), i = uA(() => a(e), [a, e]), n = H(
1138
1138
  (d) => d.link === t,
1139
1139
  [t]
1140
- ), c = F(
1140
+ ), c = H(
1141
1141
  (d) => d.link === t ? !0 : d.links ? d.links.some((h) => c(h)) : !1,
1142
1142
  [t]
1143
1143
  ), l = uA(() => {
1144
- const d = [], h = (f, y) => {
1145
- for (const w of f) {
1144
+ const d = [], h = (p, y) => {
1145
+ for (const w of p) {
1146
1146
  const m = [...y, w];
1147
1147
  if (w.link === t)
1148
1148
  return d.push(...m), !0;
@@ -1152,7 +1152,7 @@ function ce({
1152
1152
  return !1;
1153
1153
  };
1154
1154
  return h(e, []), d;
1155
- }, [e, t]), u = F(
1155
+ }, [e, t]), u = H(
1156
1156
  (d) => {
1157
1157
  (typeof d.disabled == "function" ? d.disabled() : d.disabled) || (o && o(d), d.link && (d.routeParams ? r(d.link, { state: d.routeParams }) : r(d.link)), d.redirect && r(d.redirect));
1158
1158
  },
@@ -1171,47 +1171,47 @@ function io({
1171
1171
  navigationData: e,
1172
1172
  onSearch: o
1173
1173
  }) {
1174
- const [s, r] = fA(""), t = F((l) => l.reduce((u, d) => {
1174
+ const [s, r] = pA(""), t = H((l) => l.reduce((u, d) => {
1175
1175
  let h = 1;
1176
1176
  return d.links && (h += t(d.links)), u + h;
1177
1177
  }, 0), []), a = uA(() => {
1178
1178
  if (!s.trim())
1179
1179
  return e;
1180
- const l = s.toLowerCase().trim(), u = (d) => d.reduce((h, f) => {
1181
- if (!f.showInSidebar)
1180
+ const l = s.toLowerCase().trim(), u = (d) => d.reduce((h, p) => {
1181
+ if (!p.showInSidebar)
1182
1182
  return h;
1183
- const y = f.label.toLowerCase().includes(l), w = f.links ? u(f.links) : [];
1183
+ const y = p.label.toLowerCase().includes(l), w = p.links ? u(p.links) : [];
1184
1184
  return (y || w.length > 0) && h.push({
1185
- ...f,
1186
- links: w.length > 0 ? w : f.links,
1185
+ ...p,
1186
+ links: w.length > 0 ? w : p.links,
1187
1187
  // Expandir automaticamente grupos com match
1188
1188
  initiallyOpened: !0
1189
1189
  }), h;
1190
1190
  }, []);
1191
1191
  return u(e);
1192
- }, [e, s]), i = uA(() => s.trim() ? t(a) : t(e), [s, e, a, t]), n = F(
1192
+ }, [e, s]), i = uA(() => s.trim() ? t(a) : t(e), [s, e, a, t]), n = H(
1193
1193
  (l) => {
1194
1194
  if (r(l), o) {
1195
1195
  const u = l.toLowerCase().trim();
1196
1196
  if (!u)
1197
1197
  o(l, e);
1198
1198
  else {
1199
- const d = (h) => h.reduce((f, y) => {
1199
+ const d = (h) => h.reduce((p, y) => {
1200
1200
  if (!y.showInSidebar)
1201
- return f;
1201
+ return p;
1202
1202
  const w = y.label.toLowerCase().includes(u), m = y.links ? d(y.links) : [];
1203
- return (w || m.length > 0) && f.push({
1203
+ return (w || m.length > 0) && p.push({
1204
1204
  ...y,
1205
1205
  links: m.length > 0 ? m : y.links,
1206
1206
  initiallyOpened: !0
1207
- }), f;
1207
+ }), p;
1208
1208
  }, []);
1209
1209
  o(l, d(e));
1210
1210
  }
1211
1211
  }
1212
1212
  },
1213
1213
  [e, o]
1214
- ), c = F(() => {
1214
+ ), c = H(() => {
1215
1215
  n("");
1216
1216
  }, [n]);
1217
1217
  return {
@@ -1241,10 +1241,10 @@ function de({
1241
1241
  });
1242
1242
  };
1243
1243
  return l(e), c;
1244
- }, [e]), a = F(
1244
+ }, [e]), a = H(
1245
1245
  (c) => !!c.shortcut,
1246
1246
  []
1247
- ), i = F(
1247
+ ), i = H(
1248
1248
  (c) => c.shortcut,
1249
1249
  []
1250
1250
  ), n = uA(() => {
@@ -1261,7 +1261,7 @@ function de({
1261
1261
  ]);
1262
1262
  }), c;
1263
1263
  }, [r, t, o, s]);
1264
- return He(n), {
1264
+ return qe(n), {
1265
1265
  shortcuts: t,
1266
1266
  hasShortcut: a,
1267
1267
  getShortcut: i
@@ -1278,18 +1278,18 @@ function MA({
1278
1278
  hoverColor: n,
1279
1279
  itemHeight: c = 40
1280
1280
  }) {
1281
- const l = pA(), { colorScheme: u } = oA(), d = e, [h, f] = fA(!1), y = a || "var(--mantine-color-text)", w = i || l.colors[l.primaryColor][6], m = n || l.colors[l.primaryColor][6], p = n ? `color-mix(in srgb, ${n} 80%, black)` : l.colors[l.primaryColor][8], g = h ? r ? p : m : r ? m : "transparent", S = h || r ? l.white : y, v = h || r ? l.white : w, C = typeof e.disabled == "function" ? e.disabled() : e.disabled;
1281
+ const l = fA(), { colorScheme: u } = oA(), d = e, [h, p] = pA(!1), y = a || "var(--mantine-color-text)", w = i || l.colors[l.primaryColor][6], m = n || l.colors[l.primaryColor][6], f = n ? `color-mix(in srgb, ${n} 80%, black)` : l.colors[l.primaryColor][8], g = h ? r ? f : m : r ? m : "transparent", S = h || r ? l.white : y, v = h || r ? l.white : w, C = typeof e.disabled == "function" ? e.disabled() : e.disabled;
1282
1282
  if (C && e.hideDisabledItem || !e.showInSidebar)
1283
1283
  return null;
1284
- const P = F(() => {
1284
+ const P = H(() => {
1285
1285
  !C && t && t(e);
1286
- }, [C, t, e]), Q = yA.t(e.label), K = () => d.badge ? /* @__PURE__ */ A(re, { size: "xs", color: d.badgeColor || "blue", variant: "filled", children: d.badge }) : null, J = () => d.shortcut ? /* @__PURE__ */ A(ve, { size: "xs", style: { marginLeft: "auto" }, children: d.shortcut }) : null;
1286
+ }, [C, t, e]), $ = wA.t(e.label), j = () => d.badge ? /* @__PURE__ */ A(re, { size: "xs", color: d.badgeColor || "blue", variant: "filled", children: d.badge }) : null, W = () => d.shortcut ? /* @__PURE__ */ A(ve, { size: "xs", style: { marginLeft: "auto" }, children: d.shortcut }) : null;
1287
1287
  if (e.links && e.links.length > 0) {
1288
1288
  const D = e.links.filter((O) => {
1289
1289
  const B = typeof O.disabled == "function" ? O.disabled() : O.disabled;
1290
1290
  return O.showInSidebar && (!B || !O.hideDisabledItem);
1291
1291
  });
1292
- return D.length === 0 && C && e.hideDisabledItem ? null : s ? /* @__PURE__ */ L(
1292
+ return D.length === 0 && C && e.hideDisabledItem ? null : s ? /* @__PURE__ */ I(
1293
1293
  AA,
1294
1294
  {
1295
1295
  position: "right-start",
@@ -1299,30 +1299,57 @@ function MA({
1299
1299
  openDelay: 100,
1300
1300
  closeDelay: 200,
1301
1301
  children: [
1302
- /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(VA, { style: { width: "100%", padding: "8px 0" }, children: /* @__PURE__ */ A(xA, { label: Q, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
1303
- G,
1302
+ /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(VA, { style: { width: "100%", padding: "2px 0" }, children: /* @__PURE__ */ A(SA, { label: $, position: "right", withArrow: !0, children: /* @__PURE__ */ I(
1303
+ K,
1304
1304
  {
1305
+ gap: 1,
1306
+ align: "center",
1305
1307
  style: {
1306
- color: w,
1307
- cursor: "pointer",
1308
- display: "flex",
1309
- alignItems: "center",
1310
- justifyContent: "center"
1308
+ cursor: "pointer"
1311
1309
  },
1312
- children: e.icon
1310
+ children: [
1311
+ /* @__PURE__ */ A(
1312
+ G,
1313
+ {
1314
+ style: {
1315
+ color: w,
1316
+ display: "flex",
1317
+ alignItems: "center",
1318
+ justifyContent: "center"
1319
+ },
1320
+ children: e.icon
1321
+ }
1322
+ ),
1323
+ /* @__PURE__ */ A(
1324
+ CA,
1325
+ {
1326
+ size: "8px",
1327
+ ta: "center",
1328
+ style: {
1329
+ color: w,
1330
+ lineHeight: 1,
1331
+ maxWidth: 56,
1332
+ overflow: "hidden",
1333
+ textOverflow: "ellipsis",
1334
+ whiteSpace: "nowrap"
1335
+ },
1336
+ children: $
1337
+ }
1338
+ )
1339
+ ]
1313
1340
  }
1314
1341
  ) }) }) }),
1315
- /* @__PURE__ */ L(AA.Dropdown, { children: [
1316
- /* @__PURE__ */ A(AA.Label, { children: Q }),
1342
+ /* @__PURE__ */ I(AA.Dropdown, { children: [
1343
+ /* @__PURE__ */ A(AA.Label, { children: $ }),
1317
1344
  D.map((O, B) => {
1318
- const $ = typeof O.disabled == "function" ? O.disabled() : O.disabled;
1345
+ const Q = typeof O.disabled == "function" ? O.disabled() : O.disabled;
1319
1346
  return /* @__PURE__ */ A(
1320
1347
  AA.Item,
1321
1348
  {
1322
1349
  leftSection: O.icon,
1323
- disabled: $,
1350
+ disabled: Q,
1324
1351
  onClick: () => t?.(O),
1325
- children: yA.t(O.label)
1352
+ children: wA.t(O.label)
1326
1353
  },
1327
1354
  B
1328
1355
  );
@@ -1333,10 +1360,10 @@ function MA({
1333
1360
  ) : /* @__PURE__ */ A(
1334
1361
  be,
1335
1362
  {
1336
- label: Q,
1363
+ label: $,
1337
1364
  leftSection: /* @__PURE__ */ A(G, { style: { color: v }, children: e.icon }),
1338
- rightSection: /* @__PURE__ */ L(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
1339
- K(),
1365
+ rightSection: /* @__PURE__ */ I(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
1366
+ j(),
1340
1367
  /* @__PURE__ */ A(
1341
1368
  oe,
1342
1369
  {
@@ -1350,8 +1377,8 @@ function MA({
1350
1377
  childrenOffset: 28,
1351
1378
  defaultOpened: e.initiallyOpened || r,
1352
1379
  disabled: C,
1353
- onMouseEnter: () => f(!0),
1354
- onMouseLeave: () => f(!1),
1380
+ onMouseEnter: () => p(!0),
1381
+ onMouseLeave: () => p(!1),
1355
1382
  style: {
1356
1383
  height: c,
1357
1384
  backgroundColor: g,
@@ -1387,9 +1414,9 @@ function MA({
1387
1414
  );
1388
1415
  }
1389
1416
  return s ? /* @__PURE__ */ A(
1390
- xA,
1417
+ SA,
1391
1418
  {
1392
- label: d.tooltip || Q,
1419
+ label: d.tooltip || $,
1393
1420
  position: "right",
1394
1421
  withArrow: !0,
1395
1422
  children: /* @__PURE__ */ A(
@@ -1397,37 +1424,55 @@ function MA({
1397
1424
  {
1398
1425
  style: {
1399
1426
  width: "100%",
1400
- height: c,
1401
1427
  cursor: C ? "not-allowed" : "pointer",
1402
1428
  opacity: C ? 0.5 : 1,
1403
1429
  backgroundColor: r ? m : "transparent",
1404
- transition: "background-color 150ms ease"
1430
+ transition: "background-color 150ms ease",
1431
+ padding: "2px 0"
1405
1432
  },
1406
1433
  onClick: P,
1407
1434
  onMouseEnter: (D) => {
1408
- C || (D.currentTarget.style.backgroundColor = r ? p : m);
1435
+ C || (D.currentTarget.style.backgroundColor = r ? f : m);
1409
1436
  },
1410
1437
  onMouseLeave: (D) => {
1411
1438
  D.currentTarget.style.backgroundColor = r ? m : "transparent";
1412
1439
  },
1413
- children: /* @__PURE__ */ A(G, { style: { color: r ? l.white : w }, children: e.icon })
1440
+ children: /* @__PURE__ */ I(K, { gap: 1, align: "center", children: [
1441
+ /* @__PURE__ */ A(G, { style: { color: r ? l.white : w }, children: e.icon }),
1442
+ /* @__PURE__ */ A(
1443
+ CA,
1444
+ {
1445
+ size: "8px",
1446
+ ta: "center",
1447
+ style: {
1448
+ color: r ? l.white : w,
1449
+ lineHeight: 1,
1450
+ maxWidth: 56,
1451
+ overflow: "hidden",
1452
+ textOverflow: "ellipsis",
1453
+ whiteSpace: "nowrap"
1454
+ },
1455
+ children: $
1456
+ }
1457
+ )
1458
+ ] })
1414
1459
  }
1415
1460
  )
1416
1461
  }
1417
1462
  ) : /* @__PURE__ */ A(
1418
1463
  be,
1419
1464
  {
1420
- label: Q,
1465
+ label: $,
1421
1466
  leftSection: /* @__PURE__ */ A(G, { style: { color: v }, children: e.icon }),
1422
- rightSection: /* @__PURE__ */ L(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
1423
- K(),
1424
- J()
1467
+ rightSection: /* @__PURE__ */ I(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
1468
+ j(),
1469
+ W()
1425
1470
  ] }),
1426
1471
  active: r,
1427
1472
  disabled: C,
1428
1473
  onClick: P,
1429
- onMouseEnter: () => f(!0),
1430
- onMouseLeave: () => f(!1),
1474
+ onMouseEnter: () => p(!0),
1475
+ onMouseLeave: () => p(!1),
1431
1476
  style: {
1432
1477
  height: c,
1433
1478
  paddingLeft: o > 0 ? o * 16 + 12 : void 0,
@@ -1454,14 +1499,14 @@ function co({
1454
1499
  onExpandedChange: a,
1455
1500
  groupId: i
1456
1501
  }) {
1457
- const n = pA(), { colorScheme: c } = oA(), [l, u] = fA(r), d = t !== void 0, h = d ? t : l, f = F(() => {
1502
+ const n = fA(), { colorScheme: c } = oA(), [l, u] = pA(r), d = t !== void 0, h = d ? t : l, p = H(() => {
1458
1503
  d ? a?.(!h) : u((g) => !g);
1459
- }, [d, h, a]), y = c === "dark" ? n.colors.dark[6] : n.colors.gray[1], w = c === "dark" ? n.colors.dark[5] : n.colors.gray[2], m = c === "dark" ? n.colors.gray[4] : n.colors.gray[7], p = c === "dark" ? n.colors[n.primaryColor][4] : n.colors[n.primaryColor][6];
1460
- return /* @__PURE__ */ L(G, { children: [
1504
+ }, [d, h, a]), y = c === "dark" ? n.colors.dark[6] : n.colors.gray[1], w = c === "dark" ? n.colors.dark[5] : n.colors.gray[2], m = c === "dark" ? n.colors.gray[4] : n.colors.gray[7], f = c === "dark" ? n.colors[n.primaryColor][4] : n.colors[n.primaryColor][6];
1505
+ return /* @__PURE__ */ I(G, { children: [
1461
1506
  /* @__PURE__ */ A(
1462
1507
  ZA,
1463
1508
  {
1464
- onClick: f,
1509
+ onClick: p,
1465
1510
  w: "100%",
1466
1511
  p: "xs",
1467
1512
  style: {
@@ -1476,10 +1521,10 @@ function co({
1476
1521
  }
1477
1522
  }
1478
1523
  },
1479
- children: /* @__PURE__ */ L(vA, { justify: "space-between", wrap: "nowrap", children: [
1480
- /* @__PURE__ */ L(vA, { gap: "xs", wrap: "nowrap", children: [
1481
- o && /* @__PURE__ */ A(G, { style: { color: p }, children: o }),
1482
- /* @__PURE__ */ A(zA, { size: "sm", fw: 600, c: m, children: yA.t(e) })
1524
+ children: /* @__PURE__ */ I(xA, { justify: "space-between", wrap: "nowrap", children: [
1525
+ /* @__PURE__ */ I(xA, { gap: "xs", wrap: "nowrap", children: [
1526
+ o && /* @__PURE__ */ A(G, { style: { color: f }, children: o }),
1527
+ /* @__PURE__ */ A(CA, { size: "sm", fw: 600, c: m, children: wA.t(e) })
1483
1528
  ] }),
1484
1529
  /* @__PURE__ */ A(
1485
1530
  or,
@@ -1498,14 +1543,14 @@ function co({
1498
1543
  /* @__PURE__ */ A(Ze, { in: h, children: /* @__PURE__ */ A(G, { mt: 4, children: s }) })
1499
1544
  ] });
1500
1545
  }
1501
- function fn({
1546
+ function pn({
1502
1547
  label: e,
1503
1548
  children: o
1504
1549
  }) {
1505
- const s = pA(), { colorScheme: r } = oA(), t = r === "dark" ? s.colors.gray[5] : s.colors.gray[6];
1506
- return /* @__PURE__ */ L(G, { children: [
1550
+ const s = fA(), { colorScheme: r } = oA(), t = r === "dark" ? s.colors.gray[5] : s.colors.gray[6];
1551
+ return /* @__PURE__ */ I(G, { children: [
1507
1552
  /* @__PURE__ */ A(
1508
- zA,
1553
+ CA,
1509
1554
  {
1510
1555
  size: "xs",
1511
1556
  fw: 700,
@@ -1514,7 +1559,7 @@ function fn({
1514
1559
  px: "sm",
1515
1560
  py: "xs",
1516
1561
  style: { letterSpacing: "0.5px" },
1517
- children: yA.t(e)
1562
+ children: wA.t(e)
1518
1563
  }
1519
1564
  ),
1520
1565
  o
@@ -1528,8 +1573,8 @@ function uo({
1528
1573
  activeColor: t,
1529
1574
  inactiveColor: a
1530
1575
  }) {
1531
- const i = pA(), { colorScheme: n } = oA(), c = n === "dark" ? i.colors[i.primaryColor][8] : i.colors[i.primaryColor][0], l = n === "dark" ? i.colors[i.primaryColor][6] : i.colors[i.primaryColor][7], u = i.colors[i.primaryColor][2], f = /* @__PURE__ */ L(
1532
- _,
1576
+ const i = fA(), { colorScheme: n } = oA(), c = n === "dark" ? i.colors[i.primaryColor][8] : i.colors[i.primaryColor][0], l = n === "dark" ? i.colors[i.primaryColor][6] : i.colors[i.primaryColor][7], u = i.colors[i.primaryColor][2], p = /* @__PURE__ */ I(
1577
+ K,
1533
1578
  {
1534
1579
  gap: 2,
1535
1580
  align: "center",
@@ -1537,7 +1582,7 @@ function uo({
1537
1582
  style: { textAlign: "center" },
1538
1583
  children: [
1539
1584
  /* @__PURE__ */ A(
1540
- RA,
1585
+ LA,
1541
1586
  {
1542
1587
  size: 48,
1543
1588
  variant: o ? "filled" : "subtle",
@@ -1550,7 +1595,7 @@ function uo({
1550
1595
  }
1551
1596
  ),
1552
1597
  r && /* @__PURE__ */ A(
1553
- zA,
1598
+ CA,
1554
1599
  {
1555
1600
  size: "xs",
1556
1601
  c: u,
@@ -1566,25 +1611,25 @@ function uo({
1566
1611
  ]
1567
1612
  }
1568
1613
  );
1569
- return r ? f : /* @__PURE__ */ A(xA, { label: e.hint || e.label, position: "right", withArrow: !0, children: f });
1614
+ return r ? p : /* @__PURE__ */ A(SA, { label: e.hint || e.label, position: "right", withArrow: !0, children: p });
1570
1615
  }
1571
- function pn({
1616
+ function fn({
1572
1617
  placeholder: e = "Buscar...",
1573
1618
  value: o,
1574
1619
  onChange: s,
1575
1620
  onClear: r,
1576
1621
  collapsed: t = !1
1577
1622
  }) {
1578
- const a = pA(), { colorScheme: i } = oA(), n = F(
1623
+ const a = fA(), { colorScheme: i } = oA(), n = H(
1579
1624
  (u) => {
1580
1625
  s?.(u.currentTarget.value);
1581
1626
  },
1582
1627
  [s]
1583
- ), c = F(() => {
1628
+ ), c = H(() => {
1584
1629
  s?.(""), r?.();
1585
1630
  }, [s, r]), l = o && o.length > 0;
1586
1631
  return t ? /* @__PURE__ */ A(
1587
- RA,
1632
+ LA,
1588
1633
  {
1589
1634
  variant: "subtle",
1590
1635
  size: "lg",
@@ -1597,7 +1642,7 @@ function pn({
1597
1642
  placeholder: e,
1598
1643
  leftSection: /* @__PURE__ */ A(YA, { size: 16 }),
1599
1644
  rightSection: l ? /* @__PURE__ */ A(
1600
- RA,
1645
+ LA,
1601
1646
  {
1602
1647
  variant: "subtle",
1603
1648
  size: "sm",
@@ -1624,7 +1669,7 @@ function gn({
1624
1669
  onClick: r,
1625
1670
  collapsed: t = !1
1626
1671
  }) {
1627
- const a = pA(), { colorScheme: i } = oA(), n = i === "dark" ? a.colors.dark[5] : a.colors.gray[1], c = () => {
1672
+ const a = fA(), { colorScheme: i } = oA(), n = i === "dark" ? a.colors.dark[5] : a.colors.gray[1], c = () => {
1628
1673
  if (typeof s == "string")
1629
1674
  return /* @__PURE__ */ A(WA, { src: s, radius: "xl", size: t ? "sm" : "md" });
1630
1675
  if (s)
@@ -1632,7 +1677,7 @@ function gn({
1632
1677
  const l = e ? e.split(" ").map((u) => u[0]).slice(0, 2).join("").toUpperCase() : "?";
1633
1678
  return /* @__PURE__ */ A(WA, { radius: "xl", size: t ? "sm" : "md", color: a.primaryColor, children: l });
1634
1679
  };
1635
- return t ? /* @__PURE__ */ A(xA, { label: e || "Perfil", position: "right", withArrow: !0, children: /* @__PURE__ */ A(
1680
+ return t ? /* @__PURE__ */ A(SA, { label: e || "Perfil", position: "right", withArrow: !0, children: /* @__PURE__ */ A(
1636
1681
  ZA,
1637
1682
  {
1638
1683
  onClick: r,
@@ -1670,11 +1715,11 @@ function gn({
1670
1715
  }
1671
1716
  }
1672
1717
  },
1673
- children: /* @__PURE__ */ L(vA, { wrap: "nowrap", children: [
1718
+ children: /* @__PURE__ */ I(xA, { wrap: "nowrap", children: [
1674
1719
  c(),
1675
- /* @__PURE__ */ L(G, { style: { flex: 1, overflow: "hidden" }, children: [
1720
+ /* @__PURE__ */ I(G, { style: { flex: 1, overflow: "hidden" }, children: [
1676
1721
  e && /* @__PURE__ */ A(
1677
- zA,
1722
+ CA,
1678
1723
  {
1679
1724
  size: "sm",
1680
1725
  fw: 500,
@@ -1687,7 +1732,7 @@ function gn({
1687
1732
  }
1688
1733
  ),
1689
1734
  o && /* @__PURE__ */ A(
1690
- zA,
1735
+ CA,
1691
1736
  {
1692
1737
  size: "xs",
1693
1738
  c: "dimmed",
@@ -1745,13 +1790,13 @@ function ue({
1745
1790
  showGroups: t = !0,
1746
1791
  groupCount: a = 2
1747
1792
  }) {
1748
- const i = pA(), { colorScheme: n } = oA(), c = s || (n === "dark" ? i.colors.dark[7] : i.white);
1793
+ const i = fA(), { colorScheme: n } = oA(), c = s || (n === "dark" ? i.colors.dark[7] : i.white);
1749
1794
  if (o)
1750
- return /* @__PURE__ */ A(_, { gap: "sm", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: e }).map((d, h) => /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }, h)) });
1751
- const l = (d, h = !1) => Array.from({ length: d }).map((f, y) => {
1795
+ return /* @__PURE__ */ A(K, { gap: "sm", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: e }).map((d, h) => /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }, h)) });
1796
+ const l = (d, h = !1) => Array.from({ length: d }).map((p, y) => {
1752
1797
  const w = 60 + Math.random() * 30;
1753
- return /* @__PURE__ */ L(
1754
- vA,
1798
+ return /* @__PURE__ */ I(
1799
+ xA,
1755
1800
  {
1756
1801
  gap: "sm",
1757
1802
  p: "xs",
@@ -1768,14 +1813,14 @@ function ue({
1768
1813
  );
1769
1814
  });
1770
1815
  if (!t)
1771
- return /* @__PURE__ */ A(_, { gap: 2, p: "xs", style: { backgroundColor: c }, children: l(e) });
1816
+ return /* @__PURE__ */ A(K, { gap: 2, p: "xs", style: { backgroundColor: c }, children: l(e) });
1772
1817
  const u = Math.ceil(e / a);
1773
- return /* @__PURE__ */ A(_, { gap: "md", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: a }).map((d, h) => /* @__PURE__ */ L(G, { children: [
1774
- /* @__PURE__ */ L(vA, { gap: "sm", p: "xs", children: [
1818
+ return /* @__PURE__ */ A(K, { gap: "md", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: a }).map((d, h) => /* @__PURE__ */ I(G, { children: [
1819
+ /* @__PURE__ */ I(xA, { gap: "sm", p: "xs", children: [
1775
1820
  /* @__PURE__ */ A(cA, { circle: !0, height: 20, width: 20 }),
1776
1821
  /* @__PURE__ */ A(cA, { height: 12, width: 80 + Math.random() * 40, radius: "sm" })
1777
1822
  ] }),
1778
- /* @__PURE__ */ A(_, { gap: 2, mt: 4, children: l(
1823
+ /* @__PURE__ */ A(K, { gap: 2, mt: 4, children: l(
1779
1824
  h === a - 1 ? e - h * u : u,
1780
1825
  !0
1781
1826
  ) })
@@ -1786,9 +1831,9 @@ function ho({
1786
1831
  width: o = 80,
1787
1832
  backgroundColor: s
1788
1833
  }) {
1789
- const r = pA(), { colorScheme: t } = oA(), a = s || (t === "dark" ? r.colors[r.primaryColor][8] : r.colors[r.primaryColor][6]);
1834
+ const r = fA(), { colorScheme: t } = oA(), a = s || (t === "dark" ? r.colors[r.primaryColor][8] : r.colors[r.primaryColor][6]);
1790
1835
  return /* @__PURE__ */ A(
1791
- _,
1836
+ K,
1792
1837
  {
1793
1838
  gap: "sm",
1794
1839
  p: "xs",
@@ -1798,7 +1843,7 @@ function ho({
1798
1843
  backgroundColor: a,
1799
1844
  height: "100%"
1800
1845
  },
1801
- children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ L(_, { gap: 4, align: "center", children: [
1846
+ children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ I(K, { gap: 4, align: "center", children: [
1802
1847
  /* @__PURE__ */ A(cA, { circle: !0, height: 48, width: 48 }),
1803
1848
  /* @__PURE__ */ A(cA, { height: 10, width: 40, radius: "sm" })
1804
1849
  ] }, n))
@@ -1808,9 +1853,9 @@ function ho({
1808
1853
  function Cn({
1809
1854
  collapsed: e = !1
1810
1855
  }) {
1811
- return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ L(vA, { gap: "sm", p: "md", children: [
1856
+ return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ I(xA, { gap: "sm", p: "md", children: [
1812
1857
  /* @__PURE__ */ A(cA, { circle: !0, height: 40, width: 40 }),
1813
- /* @__PURE__ */ L(_, { gap: 4, style: { flex: 1 }, children: [
1858
+ /* @__PURE__ */ I(K, { gap: 4, style: { flex: 1 }, children: [
1814
1859
  /* @__PURE__ */ A(cA, { height: 14, width: "70%", radius: "sm" }),
1815
1860
  /* @__PURE__ */ A(cA, { height: 10, width: "50%", radius: "sm" })
1816
1861
  ] })
@@ -1819,9 +1864,9 @@ function Cn({
1819
1864
  function kn({
1820
1865
  collapsed: e = !1
1821
1866
  }) {
1822
- return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ L(vA, { gap: "sm", p: "sm", children: [
1867
+ return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ I(xA, { gap: "sm", p: "sm", children: [
1823
1868
  /* @__PURE__ */ A(cA, { circle: !0, height: 36, width: 36 }),
1824
- /* @__PURE__ */ L(_, { gap: 4, style: { flex: 1 }, children: [
1869
+ /* @__PURE__ */ I(K, { gap: 4, style: { flex: 1 }, children: [
1825
1870
  /* @__PURE__ */ A(cA, { height: 12, width: "60%", radius: "sm" }),
1826
1871
  /* @__PURE__ */ A(cA, { height: 10, width: "80%", radius: "sm" })
1827
1872
  ] })
@@ -1831,7 +1876,7 @@ function he({
1831
1876
  message: e,
1832
1877
  backgroundColor: o
1833
1878
  }) {
1834
- const s = pA(), { colorScheme: r } = oA(), t = o || (r === "dark" ? s.colors.dark[7] : s.white), a = r === "dark" ? s.colors.red[4] : s.colors.red[6];
1879
+ const s = fA(), { colorScheme: r } = oA(), t = o || (r === "dark" ? s.colors.dark[7] : s.white), a = r === "dark" ? s.colors.red[4] : s.colors.red[6];
1835
1880
  return /* @__PURE__ */ A(
1836
1881
  G,
1837
1882
  {
@@ -1860,7 +1905,7 @@ function he({
1860
1905
  }
1861
1906
  );
1862
1907
  }
1863
- function fo({
1908
+ function po({
1864
1909
  navigationData: e,
1865
1910
  width: o = 280,
1866
1911
  collapsedWidth: s = 60,
@@ -1874,37 +1919,37 @@ function fo({
1874
1919
  isLoading: u = !1,
1875
1920
  loadingError: d,
1876
1921
  loadingComponent: h,
1877
- errorComponent: f,
1922
+ errorComponent: p,
1878
1923
  skeletonItemCount: y = 8,
1879
1924
  backgroundDarkColor: w,
1880
1925
  backgroundLightColor: m,
1881
- textDarkColor: p,
1926
+ textDarkColor: f,
1882
1927
  textLightColor: g,
1883
1928
  iconDarkColor: S,
1884
1929
  iconLightColor: v,
1885
1930
  activeColor: C,
1886
1931
  withBorder: P = !0,
1887
- withShadow: Q = !1,
1888
- highlightActiveItem: K = !0,
1889
- onMenuItemClick: J
1932
+ withShadow: $ = !1,
1933
+ highlightActiveItem: j = !0,
1934
+ onMenuItemClick: W
1890
1935
  }) {
1891
- const D = pA(), { colorScheme: O } = oA(), { collapsed: B, toggleCollapsed: $ } = ie(), T = O === "dark" ? w ?? D.colors.dark[7] : m ?? D.white, x = O === "dark" ? p ?? D.colors.gray[3] : g ?? D.colors.gray[7], I = O === "dark" ? S ?? D.colors[D.primaryColor][4] : v ?? D.colors[D.primaryColor][6], V = C ? D.colors[C]?.[6] ?? D.colors[D.primaryColor][6] : D.colors[D.primaryColor][6], {
1892
- query: q,
1936
+ const D = fA(), { colorScheme: O } = oA(), { collapsed: B, toggleCollapsed: Q } = ie(), T = O === "dark" ? w ?? D.colors.dark[7] : m ?? D.white, x = O === "dark" ? f ?? D.colors.gray[3] : g ?? D.colors.gray[7], E = O === "dark" ? S ?? D.colors[D.primaryColor][4] : v ?? D.colors[D.primaryColor][6], V = C ? D.colors[C]?.[6] ?? D.colors[D.primaryColor][6] : D.colors[D.primaryColor][6], {
1937
+ query: F,
1893
1938
  setQuery: k,
1894
1939
  filteredItems: b,
1895
- isSearching: R,
1940
+ isSearching: L,
1896
1941
  clearSearch: M
1897
1942
  } = io({
1898
1943
  navigationData: e,
1899
1944
  onSearch: i
1900
- }), { navigateToItem: N, isItemActive: E, isItemOrChildActive: z } = ce({
1945
+ }), { navigateToItem: N, isItemActive: R, isItemOrChildActive: z } = ce({
1901
1946
  navigationData: e,
1902
- onMenuItemClick: J
1947
+ onMenuItemClick: W
1903
1948
  });
1904
1949
  de({
1905
1950
  navigationData: e,
1906
1951
  navigateToItem: N,
1907
- onToggleSidebar: $,
1952
+ onToggleSidebar: Q,
1908
1953
  enabled: !0
1909
1954
  });
1910
1955
  const dA = B ? s : o, U = uA(() => {
@@ -1912,14 +1957,14 @@ function fo({
1912
1957
  return b.forEach((Y) => {
1913
1958
  if (!(!Y.showInSidebar || (typeof Y.disabled == "function" ? Y.disabled() : Y.disabled) && Y.hideDisabledItem))
1914
1959
  if (Y.category) {
1915
- const CA = eA.get(Y.category) || [];
1916
- CA.push(Y), eA.set(Y.category, CA);
1960
+ const kA = eA.get(Y.category) || [];
1961
+ kA.push(Y), eA.set(Y.category, kA);
1917
1962
  } else
1918
1963
  nA.push(Y);
1919
1964
  }), { groups: eA, ungrouped: nA };
1920
1965
  }, [b]), lA = () => {
1921
1966
  if (d)
1922
- return f || /* @__PURE__ */ A(he, { message: d, backgroundColor: T });
1967
+ return p || /* @__PURE__ */ A(he, { message: d, backgroundColor: T });
1923
1968
  if (u)
1924
1969
  return h || /* @__PURE__ */ A(
1925
1970
  ue,
@@ -1935,44 +1980,44 @@ function fo({
1935
1980
  {
1936
1981
  item: Y,
1937
1982
  collapsed: B,
1938
- active: K && E(Y),
1983
+ active: j && R(Y),
1939
1984
  onClick: N,
1940
1985
  textColor: x,
1941
- iconColor: I,
1986
+ iconColor: E,
1942
1987
  hoverColor: V
1943
1988
  },
1944
1989
  `item-${rA}`
1945
- )), nA = () => Array.from(U.groups.entries()).map(([rA, CA], kA) => /* @__PURE__ */ A(
1990
+ )), nA = () => Array.from(U.groups.entries()).map(([rA, kA], yA) => /* @__PURE__ */ A(
1946
1991
  co,
1947
1992
  {
1948
1993
  label: rA,
1949
- groupId: `group-${kA}`,
1994
+ groupId: `group-${yA}`,
1950
1995
  defaultExpanded: !0,
1951
- children: CA.map((IA, H) => /* @__PURE__ */ A(
1996
+ children: kA.map((EA, q) => /* @__PURE__ */ A(
1952
1997
  MA,
1953
1998
  {
1954
- item: IA,
1999
+ item: EA,
1955
2000
  collapsed: B,
1956
- active: K && E(IA),
2001
+ active: j && R(EA),
1957
2002
  onClick: N,
1958
2003
  textColor: x,
1959
- iconColor: I
2004
+ iconColor: E
1960
2005
  },
1961
- `group-${kA}-item-${H}`
2006
+ `group-${yA}-item-${q}`
1962
2007
  ))
1963
2008
  },
1964
- `group-${kA}`
2009
+ `group-${yA}`
1965
2010
  ));
1966
- return B ? /* @__PURE__ */ L(_, { gap: 2, children: [
2011
+ return B ? /* @__PURE__ */ I(K, { gap: 4, children: [
1967
2012
  U.ungrouped.map((Y, rA) => /* @__PURE__ */ A(
1968
2013
  MA,
1969
2014
  {
1970
2015
  item: Y,
1971
2016
  collapsed: !0,
1972
- active: K && E(Y),
2017
+ active: j && R(Y),
1973
2018
  onClick: N,
1974
2019
  textColor: x,
1975
- iconColor: I
2020
+ iconColor: E
1976
2021
  },
1977
2022
  `item-${rA}`
1978
2023
  )),
@@ -1981,15 +2026,15 @@ function fo({
1981
2026
  {
1982
2027
  item: Y,
1983
2028
  collapsed: !0,
1984
- active: K && E(Y),
2029
+ active: j && R(Y),
1985
2030
  onClick: N,
1986
2031
  textColor: x,
1987
- iconColor: I
2032
+ iconColor: E
1988
2033
  },
1989
2034
  `grouped-item-${rA}`
1990
2035
  ))
1991
- ] }) : /* @__PURE__ */ L(_, { gap: "xs", children: [
1992
- U.ungrouped.length > 0 && /* @__PURE__ */ A(_, { gap: 2, children: eA() }),
2036
+ ] }) : /* @__PURE__ */ I(K, { gap: "xs", children: [
2037
+ U.ungrouped.length > 0 && /* @__PURE__ */ A(K, { gap: 2, children: eA() }),
1993
2038
  U.groups.size > 0 && U.ungrouped.length > 0 && /* @__PURE__ */ A(_A, { my: "xs" }),
1994
2039
  nA()
1995
2040
  ] });
@@ -2001,7 +2046,7 @@ function fo({
2001
2046
  transition: "slide-right",
2002
2047
  duration: 200,
2003
2048
  timingFunction: "ease",
2004
- children: (eA) => /* @__PURE__ */ L(
2049
+ children: (eA) => /* @__PURE__ */ I(
2005
2050
  G,
2006
2051
  {
2007
2052
  style: {
@@ -2015,7 +2060,7 @@ function fo({
2015
2060
  overflow: "hidden",
2016
2061
  transition: "width 200ms ease",
2017
2062
  borderRight: P ? `1px solid ${O === "dark" ? D.colors.dark[5] : D.colors.gray[2]}` : void 0,
2018
- boxShadow: Q ? D.shadows.sm : void 0
2063
+ boxShadow: $ ? D.shadows.sm : void 0
2019
2064
  },
2020
2065
  children: [
2021
2066
  n && /* @__PURE__ */ A(G, { style: { flexShrink: 0 }, children: n }),
@@ -2024,7 +2069,7 @@ function fo({
2024
2069
  {
2025
2070
  placeholder: a,
2026
2071
  leftSection: /* @__PURE__ */ A(YA, { size: 16 }),
2027
- rightSection: R ? /* @__PURE__ */ A(
2072
+ rightSection: L ? /* @__PURE__ */ A(
2028
2073
  Le,
2029
2074
  {
2030
2075
  size: 16,
@@ -2032,13 +2077,13 @@ function fo({
2032
2077
  onClick: M
2033
2078
  }
2034
2079
  ) : null,
2035
- value: q,
2080
+ value: F,
2036
2081
  onChange: (nA) => k(nA.currentTarget.value),
2037
2082
  size: "sm"
2038
2083
  }
2039
2084
  ) }),
2040
2085
  /* @__PURE__ */ A(
2041
- TA,
2086
+ zA,
2042
2087
  {
2043
2088
  style: { flex: 1 },
2044
2089
  scrollbarSize: 6,
@@ -2065,7 +2110,7 @@ function fo({
2065
2110
  }
2066
2111
  );
2067
2112
  }
2068
- function po(e) {
2113
+ function fo(e) {
2069
2114
  const {
2070
2115
  navigationData: o,
2071
2116
  collapsed: s,
@@ -2086,7 +2131,7 @@ function po(e) {
2086
2131
  showKeyboardShortcuts: a,
2087
2132
  highlightActiveItem: i,
2088
2133
  onMenuItemClick: n,
2089
- children: /* @__PURE__ */ A(fo, { ...e })
2134
+ children: /* @__PURE__ */ A(po, { ...e })
2090
2135
  }
2091
2136
  );
2092
2137
  }
@@ -2097,17 +2142,17 @@ function go({
2097
2142
  iconColor: r,
2098
2143
  activeColor: t
2099
2144
  }) {
2100
- pA();
2145
+ fA();
2101
2146
  const { colorScheme: a } = oA(), i = typeof e.disabled == "function" ? e.disabled() : e.disabled;
2102
2147
  if (i && e.hideDisabledItem || !e.showInSidebar)
2103
2148
  return null;
2104
- const n = yA.t(e.label);
2149
+ const n = wA.t(e.label);
2105
2150
  if (e.links && e.links.length > 0) {
2106
2151
  const c = e.links.filter((l) => {
2107
2152
  const u = typeof l.disabled == "function" ? l.disabled() : l.disabled;
2108
2153
  return l.showInSidebar && (!u || !l.hideDisabledItem);
2109
2154
  });
2110
- return c.length === 0 ? null : /* @__PURE__ */ L(
2155
+ return c.length === 0 ? null : /* @__PURE__ */ I(
2111
2156
  AA,
2112
2157
  {
2113
2158
  position: "right-start",
@@ -2117,20 +2162,38 @@ function go({
2117
2162
  openDelay: 100,
2118
2163
  closeDelay: 200,
2119
2164
  children: [
2120
- /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(xA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
2121
- RA,
2122
- {
2123
- size: "xl",
2124
- variant: o ? "filled" : "subtle",
2125
- color: o ? t : void 0,
2126
- disabled: i,
2127
- style: {
2128
- opacity: i ? 0.5 : 1
2129
- },
2130
- children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
2131
- }
2132
- ) }) }),
2133
- /* @__PURE__ */ L(AA.Dropdown, { children: [
2165
+ /* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(SA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ I(K, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2166
+ /* @__PURE__ */ A(
2167
+ LA,
2168
+ {
2169
+ size: "xl",
2170
+ variant: o ? "filled" : "subtle",
2171
+ color: o ? t : void 0,
2172
+ disabled: i,
2173
+ style: {
2174
+ opacity: i ? 0.5 : 1
2175
+ },
2176
+ children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
2177
+ }
2178
+ ),
2179
+ /* @__PURE__ */ A(
2180
+ CA,
2181
+ {
2182
+ size: "8px",
2183
+ ta: "center",
2184
+ style: {
2185
+ color: o ? t : r,
2186
+ lineHeight: 1,
2187
+ maxWidth: 56,
2188
+ overflow: "hidden",
2189
+ textOverflow: "ellipsis",
2190
+ whiteSpace: "nowrap"
2191
+ },
2192
+ children: n
2193
+ }
2194
+ )
2195
+ ] }) }) }),
2196
+ /* @__PURE__ */ I(AA.Dropdown, { children: [
2134
2197
  /* @__PURE__ */ A(AA.Label, { children: n }),
2135
2198
  c.map((l, u) => {
2136
2199
  const d = typeof l.disabled == "function" ? l.disabled() : l.disabled;
@@ -2140,7 +2203,7 @@ function go({
2140
2203
  leftSection: l.icon,
2141
2204
  disabled: d,
2142
2205
  onClick: () => s(l),
2143
- children: yA.t(l.label)
2206
+ children: wA.t(l.label)
2144
2207
  },
2145
2208
  u
2146
2209
  );
@@ -2150,20 +2213,38 @@ function go({
2150
2213
  }
2151
2214
  );
2152
2215
  }
2153
- return /* @__PURE__ */ A(xA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
2154
- RA,
2155
- {
2156
- size: "xl",
2157
- variant: o ? "filled" : "subtle",
2158
- color: o ? t : void 0,
2159
- disabled: i,
2160
- onClick: () => s(e),
2161
- style: {
2162
- opacity: i ? 0.5 : 1
2163
- },
2164
- children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
2165
- }
2166
- ) });
2216
+ return /* @__PURE__ */ A(SA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ I(K, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
2217
+ /* @__PURE__ */ A(
2218
+ LA,
2219
+ {
2220
+ size: "xl",
2221
+ variant: o ? "filled" : "subtle",
2222
+ color: o ? t : void 0,
2223
+ disabled: i,
2224
+ onClick: () => s(e),
2225
+ style: {
2226
+ opacity: i ? 0.5 : 1
2227
+ },
2228
+ children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
2229
+ }
2230
+ ),
2231
+ /* @__PURE__ */ A(
2232
+ CA,
2233
+ {
2234
+ size: "8px",
2235
+ ta: "center",
2236
+ style: {
2237
+ color: o ? t : r,
2238
+ lineHeight: 1,
2239
+ maxWidth: 56,
2240
+ overflow: "hidden",
2241
+ textOverflow: "ellipsis",
2242
+ whiteSpace: "nowrap"
2243
+ },
2244
+ children: n
2245
+ }
2246
+ )
2247
+ ] }) });
2167
2248
  }
2168
2249
  function bo({
2169
2250
  navigationData: e,
@@ -2179,15 +2260,15 @@ function bo({
2179
2260
  skeletonItemCount: u = 8,
2180
2261
  backgroundDarkColor: d,
2181
2262
  backgroundLightColor: h,
2182
- iconDarkColor: f,
2263
+ iconDarkColor: p,
2183
2264
  iconLightColor: y,
2184
2265
  activeColor: w,
2185
2266
  withBorder: m = !0,
2186
- withShadow: p = !1,
2267
+ withShadow: f = !1,
2187
2268
  highlightActiveItem: g = !0,
2188
2269
  onMenuItemClick: S
2189
2270
  }) {
2190
- const v = pA(), { colorScheme: C } = oA(), { toggleCollapsed: P } = ie(), Q = C === "dark" ? d ?? v.colors.dark[7] : h ?? v.white, K = C === "dark" ? f ?? v.colors[v.primaryColor][4] : y ?? v.colors[v.primaryColor][6], J = w ?? v.primaryColor, { navigateToItem: D, isItemActive: O, isItemOrChildActive: B } = ce({
2271
+ const v = fA(), { colorScheme: C } = oA(), { toggleCollapsed: P } = ie(), $ = C === "dark" ? d ?? v.colors.dark[7] : h ?? v.white, j = C === "dark" ? p ?? v.colors[v.primaryColor][4] : y ?? v.colors[v.primaryColor][6], W = w ?? v.primaryColor, { navigateToItem: D, isItemActive: O, isItemOrChildActive: B } = ce({
2191
2272
  navigationData: e,
2192
2273
  onMenuItemClick: S
2193
2274
  });
@@ -2197,35 +2278,35 @@ function bo({
2197
2278
  onToggleSidebar: P,
2198
2279
  enabled: !0
2199
2280
  });
2200
- const $ = e.filter((I) => !(!I.showInSidebar || (typeof I.disabled == "function" ? I.disabled() : I.disabled) && I.hideDisabledItem)), T = () => n ? l || /* @__PURE__ */ A(he, { message: n, backgroundColor: Q }) : i ? c || /* @__PURE__ */ A(
2281
+ const Q = e.filter((E) => !(!E.showInSidebar || (typeof E.disabled == "function" ? E.disabled() : E.disabled) && E.hideDisabledItem)), T = () => n ? l || /* @__PURE__ */ A(he, { message: n, backgroundColor: $ }) : i ? c || /* @__PURE__ */ A(
2201
2282
  ue,
2202
2283
  {
2203
2284
  itemCount: u,
2204
2285
  collapsed: !0,
2205
- backgroundColor: Q
2286
+ backgroundColor: $
2206
2287
  }
2207
- ) : /* @__PURE__ */ A(_, { gap: "xs", align: "center", children: $.map((I, V) => /* @__PURE__ */ A(
2288
+ ) : /* @__PURE__ */ A(K, { gap: 8, align: "center", children: Q.map((E, V) => /* @__PURE__ */ A(
2208
2289
  go,
2209
2290
  {
2210
- item: I,
2211
- active: g && (O(I) || B(I)),
2291
+ item: E,
2292
+ active: g && (O(E) || B(E)),
2212
2293
  onClick: D,
2213
- iconColor: K,
2214
- activeColor: J
2294
+ iconColor: j,
2295
+ activeColor: W
2215
2296
  },
2216
2297
  V
2217
2298
  )) }), x = C === "dark" ? v.colors.dark[5] : v.colors.gray[2];
2218
- return /* @__PURE__ */ L(
2299
+ return /* @__PURE__ */ I(
2219
2300
  G,
2220
2301
  {
2221
2302
  style: {
2222
2303
  width: aA(o),
2223
2304
  height: aA(s),
2224
- backgroundColor: Q,
2305
+ backgroundColor: $,
2225
2306
  display: "flex",
2226
2307
  flexDirection: "column",
2227
2308
  overflow: "hidden",
2228
- boxShadow: p ? v.shadows.sm : void 0,
2309
+ boxShadow: f ? v.shadows.sm : void 0,
2229
2310
  borderRight: m ? `1px solid ${x}` : void 0
2230
2311
  },
2231
2312
  children: [
@@ -2243,7 +2324,7 @@ function bo({
2243
2324
  ),
2244
2325
  r && /* @__PURE__ */ A(_A, {}),
2245
2326
  /* @__PURE__ */ A(
2246
- TA,
2327
+ zA,
2247
2328
  {
2248
2329
  style: { flex: 1 },
2249
2330
  scrollbarSize: 4,
@@ -2251,7 +2332,7 @@ function bo({
2251
2332
  children: /* @__PURE__ */ A(G, { p: "xs", children: T() })
2252
2333
  }
2253
2334
  ),
2254
- t && /* @__PURE__ */ L(wA, { children: [
2335
+ t && /* @__PURE__ */ I(vA, { children: [
2255
2336
  /* @__PURE__ */ A(_A, {}),
2256
2337
  /* @__PURE__ */ A(
2257
2338
  G,
@@ -2310,64 +2391,64 @@ function Co({
2310
2391
  isLoading: u = !1,
2311
2392
  loadingError: d,
2312
2393
  loadingComponent: h,
2313
- errorComponent: f,
2394
+ errorComponent: p,
2314
2395
  skeletonItemCount: y = 8,
2315
2396
  skeletonGroupCount: w = 3,
2316
2397
  backgroundDarkColor: m,
2317
- backgroundLightColor: p,
2398
+ backgroundLightColor: f,
2318
2399
  textDarkColor: g,
2319
2400
  textLightColor: S,
2320
2401
  iconDarkColor: v,
2321
2402
  iconLightColor: C,
2322
2403
  activeColor: P,
2323
- groupBackgroundColor: Q,
2324
- selectedGroupColor: K,
2325
- groupColor: J,
2404
+ groupBackgroundColor: $,
2405
+ selectedGroupColor: j,
2406
+ groupColor: W,
2326
2407
  groupLabelDarkColor: D,
2327
2408
  groupLabelLightColor: O,
2328
2409
  withBorder: B = !1,
2329
- highlightActiveItem: $ = !0,
2410
+ highlightActiveItem: Q = !0,
2330
2411
  onMenuItemClick: T
2331
2412
  }) {
2332
- const x = pA(), { colorScheme: I } = oA(), {
2413
+ const x = fA(), { colorScheme: E } = oA(), {
2333
2414
  collapsed: V,
2334
- toggleCollapsed: q,
2415
+ toggleCollapsed: F,
2335
2416
  activeGroup: k,
2336
2417
  setActiveGroup: b
2337
- } = ie(), R = I === "dark" ? m ?? x.colors.dark[7] : p ?? x.white, M = I === "dark" ? g ?? x.colors.gray[3] : S ?? x.colors.gray[7], N = I === "dark" ? v ?? x.colors[x.primaryColor][4] : C ?? x.colors[x.primaryColor][6], E = P ? x.colors[P]?.[6] ?? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][6], z = Q || (I === "dark" ? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][7]), dA = K || (I === "dark" ? x.colors[x.primaryColor][8] : x.colors[x.primaryColor][0]), { navigateToItem: U, isItemActive: lA } = ce({
2418
+ } = ie(), L = E === "dark" ? m ?? x.colors.dark[7] : f ?? x.white, M = E === "dark" ? g ?? x.colors.gray[3] : S ?? x.colors.gray[7], N = E === "dark" ? v ?? x.colors[x.primaryColor][4] : C ?? x.colors[x.primaryColor][6], R = P ? x.colors[P]?.[6] ?? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][6], z = $ || (E === "dark" ? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][7]), dA = j || (E === "dark" ? x.colors[x.primaryColor][8] : x.colors[x.primaryColor][0]), { navigateToItem: U, isItemActive: lA } = ce({
2338
2419
  navigationData: e,
2339
2420
  onMenuItemClick: T
2340
2421
  });
2341
2422
  de({
2342
2423
  navigationData: e,
2343
2424
  navigateToItem: U,
2344
- onToggleSidebar: q,
2425
+ onToggleSidebar: F,
2345
2426
  enabled: !0
2346
2427
  });
2347
2428
  const eA = uA(() => {
2348
- const H = /* @__PURE__ */ new Map();
2429
+ const q = /* @__PURE__ */ new Map();
2349
2430
  return e.forEach((tA) => {
2350
2431
  if (!tA.showInSidebar || (typeof tA.disabled == "function" ? tA.disabled() : tA.disabled) && tA.hideDisabledItem)
2351
2432
  return;
2352
- const LA = tA.group ?? {
2433
+ const DA = tA.group ?? {
2353
2434
  icon: a ?? /* @__PURE__ */ A(Re, { size: "2.2rem", stroke: 1 }),
2354
2435
  label: "Default",
2355
2436
  name: "Default",
2356
2437
  hint: "Default",
2357
2438
  indexOrder: 0
2358
- }, hA = H.get(LA.name);
2359
- hA ? hA.items.push(tA) : H.set(LA.name, {
2360
- group: LA,
2439
+ }, hA = q.get(DA.name);
2440
+ hA ? hA.items.push(tA) : q.set(DA.name, {
2441
+ group: DA,
2361
2442
  items: [tA]
2362
2443
  });
2363
- }), Array.from(H.values()).sort((tA, EA) => tA.group.indexOrder - EA.group.indexOrder);
2444
+ }), Array.from(q.values()).sort((tA, RA) => tA.group.indexOrder - RA.group.indexOrder);
2364
2445
  }, [e, a]);
2365
2446
  iA(() => {
2366
2447
  !k && eA.length > 0 && b(eA[0].group.name);
2367
2448
  }, [k, eA, b]);
2368
- const nA = uA(() => eA.find((tA) => tA.group.name === k)?.items ?? [], [eA, k]), Y = F((H) => {
2369
- V ? (q(), b(H)) : k === H ? q() : b(H);
2370
- }, [V, k, q, b]), rA = V ? 0 : Number(aA(o)) - Number(aA(t)), CA = () => u && eA.length === 0 ? /* @__PURE__ */ A(
2449
+ const nA = uA(() => eA.find((tA) => tA.group.name === k)?.items ?? [], [eA, k]), Y = H((q) => {
2450
+ V ? (F(), b(q)) : k === q ? F() : b(q);
2451
+ }, [V, k, F, b]), rA = V ? 0 : Number(aA(o)) - Number(aA(t)), kA = () => u && eA.length === 0 ? /* @__PURE__ */ A(
2371
2452
  ho,
2372
2453
  {
2373
2454
  groupCount: w,
@@ -2375,7 +2456,7 @@ function Co({
2375
2456
  backgroundColor: z
2376
2457
  }
2377
2458
  ) : eA.length <= 1 ? null : /* @__PURE__ */ A(
2378
- _,
2459
+ K,
2379
2460
  {
2380
2461
  gap: 4,
2381
2462
  p: 4,
@@ -2386,41 +2467,41 @@ function Co({
2386
2467
  backgroundColor: z,
2387
2468
  flexShrink: 0
2388
2469
  },
2389
- children: eA.map((H) => /* @__PURE__ */ A(
2470
+ children: eA.map((q) => /* @__PURE__ */ A(
2390
2471
  uo,
2391
2472
  {
2392
- group: H.group,
2393
- active: H.group.name === k,
2394
- onClick: () => Y(H.group.name),
2473
+ group: q.group,
2474
+ active: q.group.name === k,
2475
+ onClick: () => Y(q.group.name),
2395
2476
  showLabel: i,
2396
2477
  activeColor: dA,
2397
- inactiveColor: J
2478
+ inactiveColor: W
2398
2479
  },
2399
- H.group.name
2480
+ q.group.name
2400
2481
  ))
2401
2482
  }
2402
- ), kA = () => d ? f || /* @__PURE__ */ A(he, { message: d, backgroundColor: R }) : u ? h || /* @__PURE__ */ A(
2483
+ ), yA = () => d ? p || /* @__PURE__ */ A(he, { message: d, backgroundColor: L }) : u ? h || /* @__PURE__ */ A(
2403
2484
  ue,
2404
2485
  {
2405
2486
  itemCount: y,
2406
2487
  collapsed: !1,
2407
- backgroundColor: R,
2488
+ backgroundColor: L,
2408
2489
  showGroups: !1
2409
2490
  }
2410
- ) : /* @__PURE__ */ A(_, { gap: 2, children: nA.map((H, tA) => /* @__PURE__ */ A(
2491
+ ) : /* @__PURE__ */ A(K, { gap: 2, children: nA.map((q, tA) => /* @__PURE__ */ A(
2411
2492
  MA,
2412
2493
  {
2413
- item: H,
2494
+ item: q,
2414
2495
  collapsed: !1,
2415
- active: $ && lA(H),
2496
+ active: Q && lA(q),
2416
2497
  onClick: U,
2417
2498
  textColor: M,
2418
2499
  iconColor: N,
2419
- hoverColor: E
2500
+ hoverColor: R
2420
2501
  },
2421
2502
  tA
2422
- )) }), IA = I === "dark" ? x.colors.dark[5] : x.colors.gray[2];
2423
- return eA.length <= 1 ? /* @__PURE__ */ L(BA, { direction: "column", w: V ? s : o, h: "100%", style: { backgroundColor: R }, children: [
2503
+ )) }), EA = E === "dark" ? x.colors.dark[5] : x.colors.gray[2];
2504
+ return eA.length <= 1 ? /* @__PURE__ */ I(BA, { direction: "column", w: V ? s : o, h: "100%", style: { backgroundColor: L }, children: [
2424
2505
  n && /* @__PURE__ */ A(G, { style: { width: "100%", flexShrink: 0 }, children: n }),
2425
2506
  /* @__PURE__ */ A(
2426
2507
  G,
@@ -2428,31 +2509,31 @@ function Co({
2428
2509
  style: {
2429
2510
  flex: 1,
2430
2511
  width: "100%",
2431
- backgroundColor: R,
2512
+ backgroundColor: L,
2432
2513
  display: "flex",
2433
2514
  flexDirection: "column",
2434
2515
  overflow: "hidden",
2435
- borderRight: B ? `1px solid ${IA}` : void 0
2516
+ borderRight: B ? `1px solid ${EA}` : void 0
2436
2517
  },
2437
- children: /* @__PURE__ */ A(TA, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: V ? /* @__PURE__ */ A(_, { gap: "xs", align: "center", children: e.filter((H) => H.showInSidebar ? !((typeof H.disabled == "function" ? H.disabled() : H.disabled) && H.hideDisabledItem) : !1).map((H, tA) => /* @__PURE__ */ A(
2518
+ children: /* @__PURE__ */ A(zA, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: V ? /* @__PURE__ */ A(K, { gap: 8, align: "center", children: e.filter((q) => q.showInSidebar ? !((typeof q.disabled == "function" ? q.disabled() : q.disabled) && q.hideDisabledItem) : !1).map((q, tA) => /* @__PURE__ */ A(
2438
2519
  MA,
2439
2520
  {
2440
- item: H,
2521
+ item: q,
2441
2522
  collapsed: !0,
2442
- active: $ && lA(H),
2523
+ active: Q && lA(q),
2443
2524
  onClick: U,
2444
2525
  textColor: M,
2445
2526
  iconColor: N,
2446
- hoverColor: E
2527
+ hoverColor: R
2447
2528
  },
2448
2529
  tA
2449
- )) }) : kA() }) })
2530
+ )) }) : yA() }) })
2450
2531
  }
2451
2532
  ),
2452
- c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: R, flexShrink: 0 }, children: c })
2453
- ] }) : /* @__PURE__ */ L(BA, { direction: "column", w: V ? t : o, h: "100%", style: { backgroundColor: R }, children: [
2533
+ c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: L, flexShrink: 0 }, children: c })
2534
+ ] }) : /* @__PURE__ */ I(BA, { direction: "column", w: V ? t : o, h: "100%", style: { backgroundColor: L }, children: [
2454
2535
  n && /* @__PURE__ */ A(G, { style: { width: "100%", flexShrink: 0 }, children: n }),
2455
- /* @__PURE__ */ L(
2536
+ /* @__PURE__ */ I(
2456
2537
  G,
2457
2538
  {
2458
2539
  style: {
@@ -2460,28 +2541,28 @@ function Co({
2460
2541
  width: "100%",
2461
2542
  display: "flex",
2462
2543
  overflow: "hidden",
2463
- borderRight: B ? `1px solid ${IA}` : void 0
2544
+ borderRight: B ? `1px solid ${EA}` : void 0
2464
2545
  },
2465
2546
  children: [
2466
- CA(),
2547
+ kA(),
2467
2548
  /* @__PURE__ */ A(
2468
2549
  G,
2469
2550
  {
2470
2551
  style: {
2471
2552
  width: V ? 0 : rA,
2472
2553
  height: "100%",
2473
- backgroundColor: R,
2554
+ backgroundColor: L,
2474
2555
  overflow: "hidden",
2475
2556
  transition: "width 200ms ease",
2476
- borderLeft: eA.length > 1 ? `1px solid ${I === "dark" ? x.colors.dark[5] : x.colors.gray[2]}` : void 0
2557
+ borderLeft: eA.length > 1 ? `1px solid ${E === "dark" ? x.colors.dark[5] : x.colors.gray[2]}` : void 0
2477
2558
  },
2478
- children: !V && k && /* @__PURE__ */ A(TA, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: kA() }) })
2559
+ children: !V && k && /* @__PURE__ */ A(zA, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: yA() }) })
2479
2560
  }
2480
2561
  )
2481
2562
  ]
2482
2563
  }
2483
2564
  ),
2484
- c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: R, flexShrink: 0 }, children: c })
2565
+ c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: L, flexShrink: 0 }, children: c })
2485
2566
  ] });
2486
2567
  }
2487
2568
  function ko(e) {
@@ -2526,88 +2607,88 @@ function yo({
2526
2607
  return /* @__PURE__ */ A(ko, { ...o });
2527
2608
  case "standard":
2528
2609
  default:
2529
- return /* @__PURE__ */ A(po, { ...o });
2610
+ return /* @__PURE__ */ A(fo, { ...o });
2530
2611
  }
2531
2612
  }
2532
- const Qe = FA({
2613
+ const Qe = HA({
2533
2614
  isVisible: !0
2534
- }), yn = () => SA(Qe), fe = FA({ params: {} }), wn = () => SA(fe).params, vn = () => {
2535
- const e = Pr(), s = SA(fe).params;
2615
+ }), yn = () => IA(Qe), pe = HA({ params: {} }), wn = () => IA(pe).params, vn = () => {
2616
+ const e = Pr(), s = IA(pe).params;
2536
2617
  return uA(() => {
2537
2618
  if (!e)
2538
2619
  return !1;
2539
2620
  const t = Object.keys(e);
2540
2621
  return t.length === 0 ? !1 : t.some((a) => e[a] !== void 0);
2541
2622
  }, [e]) ? e : s;
2542
- }, Ne = FA(null), Ge = () => SA(Ne), KA = (e) => null, wo = (e) => e.includes(":"), vo = (e, o) => wo(e) ? o : e, xo = ({ children: e, maxKeepAliveTabs: o = 10, ...s }) => {
2543
- const [r, t] = fA(/* @__PURE__ */ new Map()), [a, i] = fA(/* @__PURE__ */ new Set()), n = F((p, g) => {
2623
+ }, Ne = HA(null), Ge = () => IA(Ne), KA = (e) => null, wo = (e) => e.includes(":"), vo = (e, o) => wo(e) ? o : e, xo = ({ children: e, maxKeepAliveTabs: o = 10, ...s }) => {
2624
+ const [r, t] = pA(/* @__PURE__ */ new Map()), [a, i] = pA(/* @__PURE__ */ new Set()), n = H((f, g) => {
2544
2625
  let S = null, v = 1 / 0;
2545
- return p.forEach((C, P) => {
2626
+ return f.forEach((C, P) => {
2546
2627
  P !== g && C.lastAccessedAt < v && (v = C.lastAccessedAt, S = P);
2547
2628
  }), S;
2548
- }, []), c = F((p, g, S) => {
2549
- if (!p || typeof p != "string") {
2550
- console.error("[ArchbaseAliveAbleRoutes] Invalid cacheKey for component registration:", p);
2629
+ }, []), c = H((f, g, S) => {
2630
+ if (!f || typeof f != "string") {
2631
+ console.error("[ArchbaseAliveAbleRoutes] Invalid cacheKey for component registration:", f);
2551
2632
  return;
2552
2633
  }
2553
2634
  if (g === void 0) {
2554
- console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for cacheKey:", p);
2635
+ console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for cacheKey:", f);
2555
2636
  return;
2556
2637
  }
2557
2638
  t((v) => {
2558
- if (v.has(p)) {
2559
- const P = new Map(v), Q = v.get(p);
2560
- return P.set(p, { ...Q, lastAccessedAt: Date.now() }), P;
2639
+ if (v.has(f)) {
2640
+ const P = new Map(v), $ = v.get(f);
2641
+ return P.set(f, { ...$, lastAccessedAt: Date.now() }), P;
2561
2642
  }
2562
2643
  const C = new Map(v);
2563
2644
  if (C.size >= o) {
2564
- const P = n(C, p);
2645
+ const P = n(C, f);
2565
2646
  P && (C.delete(P), console.log(`[ArchbaseAliveAbleRoutes] LRU eviction: removed "${P}" (cache size: ${C.size}/${o})`));
2566
2647
  }
2567
- return C.set(p, {
2648
+ return C.set(f, {
2568
2649
  element: g,
2569
2650
  params: S,
2570
2651
  lastAccessedAt: Date.now()
2571
2652
  }), C;
2572
2653
  });
2573
- }, [o, n]), l = F((p) => {
2654
+ }, [o, n]), l = H((f) => {
2574
2655
  t((g) => {
2575
- const S = g.get(p);
2656
+ const S = g.get(f);
2576
2657
  if (!S)
2577
2658
  return g;
2578
2659
  const v = Date.now();
2579
2660
  if (v - S.lastAccessedAt < 1e3)
2580
2661
  return g;
2581
2662
  const C = new Map(g);
2582
- return C.set(p, { ...S, lastAccessedAt: v }), C;
2663
+ return C.set(f, { ...S, lastAccessedAt: v }), C;
2583
2664
  });
2584
- }, []), u = F((p, g) => {
2665
+ }, []), u = H((f, g) => {
2585
2666
  t((S) => {
2586
- const v = S.get(p);
2667
+ const v = S.get(f);
2587
2668
  if (!v || !(JSON.stringify(v.params) !== JSON.stringify(g)))
2588
2669
  return S;
2589
2670
  const P = new Map(S);
2590
- return P.set(p, { ...v, params: g, lastAccessedAt: Date.now() }), P;
2671
+ return P.set(f, { ...v, params: g, lastAccessedAt: Date.now() }), P;
2591
2672
  });
2592
- }, []), d = F((p) => {
2593
- if (!p) {
2673
+ }, []), d = H((f) => {
2674
+ if (!f) {
2594
2675
  console.error("[ArchbaseAliveAbleRoutes] Cannot unregister: invalid cacheKey");
2595
2676
  return;
2596
2677
  }
2597
2678
  t((g) => {
2598
- g.has(p) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent cacheKey:", p);
2679
+ g.has(f) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent cacheKey:", f);
2599
2680
  const S = new Map(g);
2600
- return S.delete(p), S;
2681
+ return S.delete(f), S;
2601
2682
  }), i((g) => {
2602
2683
  const S = new Set(g);
2603
- return S.delete(p), S;
2684
+ return S.delete(f), S;
2604
2685
  });
2605
- }, []), h = F((p) => {
2686
+ }, []), h = H((f) => {
2606
2687
  i((g) => {
2607
2688
  const S = new Set(g);
2608
- return S.add(p), S;
2689
+ return S.add(f), S;
2609
2690
  });
2610
- }, []), f = bA.Children.toArray(e), y = f.filter((p) => bA.isValidElement(p) ? p.type === KA : !1), w = f.filter((p) => bA.isValidElement(p) ? p.type !== KA : !1), m = uA(() => ({
2691
+ }, []), p = bA.Children.toArray(e), y = p.filter((f) => bA.isValidElement(f) ? f.type === KA : !1), w = p.filter((f) => bA.isValidElement(f) ? f.type !== KA : !1), m = uA(() => ({
2611
2692
  cache: r,
2612
2693
  requestedUnregister: a,
2613
2694
  register: c,
@@ -2617,40 +2698,40 @@ const Qe = FA({
2617
2698
  touchAccess: l,
2618
2699
  maxKeepAliveTabs: o
2619
2700
  }), [r, a, c, d, u, h, l, o]);
2620
- return /* @__PURE__ */ L(Ne.Provider, { value: m, children: [
2621
- y.map((p) => /* @__PURE__ */ A(So, { ...p.props, routesProps: s }, p.key)),
2701
+ return /* @__PURE__ */ I(Ne.Provider, { value: m, children: [
2702
+ y.map((f) => /* @__PURE__ */ A(So, { ...f.props, routesProps: s }, f.key)),
2622
2703
  /* @__PURE__ */ A(ze, { ...s, children: w })
2623
2704
  ] });
2624
2705
  }, So = ({ component: e, routesProps: o, ...s }) => {
2625
2706
  const r = Ge();
2626
2707
  if (!r)
2627
2708
  throw new Error("DisplayRoute must be used within ArchbaseAliveAbleRoutes provider");
2628
- const { cache: t, requestedUnregister: a, register: i, unregister: n, updateParams: c, touchAccess: l } = r, [u, d] = fA(!1), [h, f] = fA({}), y = mA(null), w = se(), m = uA(() => s.path ? vo(s.path, w.pathname) : null, [s.path, w.pathname]), p = uA(() => s.path ? Mr({ path: s.path, end: !0 }, w.pathname)?.params || {} : {}, [s.path, w.pathname]), g = mA(/* @__PURE__ */ new Set());
2709
+ const { cache: t, requestedUnregister: a, register: i, unregister: n, updateParams: c, touchAccess: l } = r, [u, d] = pA(!1), [h, p] = pA({}), y = mA(null), w = se(), m = uA(() => s.path ? vo(s.path, w.pathname) : null, [s.path, w.pathname]), f = uA(() => s.path ? Mr({ path: s.path, end: !0 }, w.pathname)?.params || {} : {}, [s.path, w.pathname]), g = mA(/* @__PURE__ */ new Set());
2629
2710
  GA(() => {
2630
2711
  if (u && e && m && !g.current.has(m)) {
2631
2712
  const P = typeof e == "function" ? bA.createElement(e) : e;
2632
- i(m, P, p), g.current.add(m);
2713
+ i(m, P, f), g.current.add(m);
2633
2714
  }
2634
- }, [u, e, m, i, p]), GA(() => {
2635
- u && m && g.current.has(m) && (c(m, p), f(p));
2636
- }, [u, m, p, c]), iA(() => {
2715
+ }, [u, e, m, i, f]), GA(() => {
2716
+ u && m && g.current.has(m) && (c(m, f), p(f));
2717
+ }, [u, m, f, c]), iA(() => {
2637
2718
  u && m && t.has(m) && l(m);
2638
2719
  }, [u, m, l, t]), GA(() => {
2639
2720
  m && a.has(m) && (n(m), g.current.delete(m));
2640
2721
  }, [m, a, n]);
2641
- const S = m ? t.get(m) : null, v = uA(() => u ? p : S ? S.params : h, [u, p, S, h]), C = mA(u);
2722
+ const S = m ? t.get(m) : null, v = uA(() => u ? f : S ? S.params : h, [u, f, S, h]), C = mA(u);
2642
2723
  return iA(() => {
2643
2724
  const P = C.current;
2644
2725
  if (C.current = u, u && !P && y.current) {
2645
- const Q = setTimeout(() => {
2726
+ const $ = setTimeout(() => {
2646
2727
  window.dispatchEvent(new Event("resize")), y.current?.dispatchEvent(
2647
2728
  new CustomEvent("keepalive:visible", { bubbles: !0 })
2648
2729
  );
2649
2730
  }, 50);
2650
- return () => clearTimeout(Q);
2731
+ return () => clearTimeout($);
2651
2732
  }
2652
- }, [u]), /* @__PURE__ */ L(wA, { children: [
2653
- S && /* @__PURE__ */ A(Qe.Provider, { value: { isVisible: u }, children: /* @__PURE__ */ A(fe.Provider, { value: { params: v }, children: /* @__PURE__ */ A(
2733
+ }, [u]), /* @__PURE__ */ I(vA, { children: [
2734
+ S && /* @__PURE__ */ A(Qe.Provider, { value: { isVisible: u }, children: /* @__PURE__ */ A(pe.Provider, { value: { params: v }, children: /* @__PURE__ */ A(
2654
2735
  "div",
2655
2736
  {
2656
2737
  ref: y,
@@ -2678,7 +2759,7 @@ const Qe = FA({
2678
2759
  Io,
2679
2760
  {
2680
2761
  onRouteMatchChange: d,
2681
- onParamsChange: f
2762
+ onParamsChange: p
2682
2763
  }
2683
2764
  )
2684
2765
  }
@@ -2702,7 +2783,7 @@ function Eo(e, o, s, r, t, a) {
2702
2783
  zIndex: "101"
2703
2784
  },
2704
2785
  children: /* @__PURE__ */ A(
2705
- RA,
2786
+ LA,
2706
2787
  {
2707
2788
  bg: o.colors[o.primaryColor][4],
2708
2789
  color: o.colors[o.primaryColor][6],
@@ -2729,62 +2810,62 @@ function Ro({
2729
2810
  sidebarSelectedGroupName: u,
2730
2811
  sidebarDefaultGroupIcon: d,
2731
2812
  sideBarHeaderHeight: h,
2732
- sideBarHeaderContent: f,
2813
+ sideBarHeaderContent: p,
2733
2814
  selectedGroupColor: y = "#132441",
2734
2815
  groupColor: w = "white",
2735
2816
  backgroundGroupColor: m = "#132441",
2736
- groupLabelDarkColor: p = "white",
2817
+ groupLabelDarkColor: f = "white",
2737
2818
  groupLabelLightColor: g = "white",
2738
2819
  headerColor: S,
2739
2820
  footerHeight: v,
2740
2821
  iconsWithBackground: C,
2741
2822
  menuItemHeight: P,
2742
- showSideBar: Q = !0,
2743
- showHeader: K = !0,
2744
- headerStyle: J = {},
2823
+ showSideBar: $ = !0,
2824
+ showHeader: j = !0,
2825
+ headerStyle: W = {},
2745
2826
  highlightActiveMenuItem: D = !0,
2746
2827
  customRenderSidebar: O,
2747
2828
  showCollapsedButton: B = !0,
2748
- sideBarBackgroundDarkColor: $,
2829
+ sideBarBackgroundDarkColor: Q,
2749
2830
  sideBarBackgroundLightColor: T,
2750
2831
  sideBarTextDarkColor: x,
2751
- sideBarTextLightColor: I,
2832
+ sideBarTextLightColor: E,
2752
2833
  sideBarIconDarkColor: V,
2753
- sideBarIconLightColor: q,
2834
+ sideBarIconLightColor: F,
2754
2835
  sideBarCollapsedSubmenuWidth: k,
2755
2836
  sidebarActiveColor: b,
2756
- maxKeepAliveTabs: R = 10,
2837
+ maxKeepAliveTabs: L = 10,
2757
2838
  sidebarVariant: M = "legacy",
2758
2839
  sidebarShowSearch: N = !1
2759
2840
  }) {
2760
- const E = pA(), z = SA(jA), { colorScheme: dA } = oA(), U = Qr(), [lA, eA] = Nr(), nA = $r(
2761
- `(max-width: ${a ? aA(a) : E.breakpoints.md})`
2762
- ), Y = (j) => {
2763
- j.link && (j.routeParams ? U(j.link, {}, j.routeParams) : U(j.link));
2764
- }, rA = (j, sA) => {
2765
- j == sA && z.collapsed && z.setCollapsed(!1), z.setCollapsed(j == sA);
2766
- }, CA = () => {
2767
- let j = 0, sA = 0;
2768
- return h && (j = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${j + sA}px)`;
2841
+ const R = fA(), z = IA(jA), { colorScheme: dA } = oA(), U = Qr(), [lA, eA] = Nr(), nA = $r(
2842
+ `(max-width: ${a ? aA(a) : R.breakpoints.md})`
2843
+ ), Y = (X) => {
2844
+ X.link && (X.routeParams ? U(X.link, {}, X.routeParams) : U(X.link));
2845
+ }, rA = (X, sA) => {
2846
+ X == sA && z.collapsed && z.setCollapsed(!1), z.setCollapsed(X == sA);
2769
2847
  }, kA = () => {
2770
- let j = 0, sA = 0;
2771
- return h && (j = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - 28px - ${j + sA}px)`;
2772
- }, IA = uA(() => {
2773
- const j = [];
2848
+ let X = 0, sA = 0;
2849
+ return h && (X = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${X + sA}px)`;
2850
+ }, yA = () => {
2851
+ let X = 0, sA = 0;
2852
+ return h && (X = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - 28px - ${X + sA}px)`;
2853
+ }, EA = uA(() => {
2854
+ const X = [];
2774
2855
  return z.navigationData.forEach((sA, $A) => {
2775
- sA.links ? sA.links.forEach((PA, pe) => {
2776
- PA.keepAlive ? j.push(
2777
- /* @__PURE__ */ A(KA, { path: PA.link, component: PA.component }, `${PA.link}_${pe}`)
2778
- ) : j.push(/* @__PURE__ */ A(ee, { path: PA.link, element: PA.component }, `${PA.link}_${pe}`));
2779
- }) : sA.keepAlive ? j.push(
2856
+ sA.links ? sA.links.forEach((PA, fe) => {
2857
+ PA.keepAlive ? X.push(
2858
+ /* @__PURE__ */ A(KA, { path: PA.link, component: PA.component }, `${PA.link}_${fe}`)
2859
+ ) : X.push(/* @__PURE__ */ A(ee, { path: PA.link, element: PA.component }, `${PA.link}_${fe}`));
2860
+ }) : sA.keepAlive ? X.push(
2780
2861
  /* @__PURE__ */ A(KA, { path: sA.link, component: sA.component }, `${sA.link}_${$A}`)
2781
- ) : j.push(
2862
+ ) : X.push(
2782
2863
  /* @__PURE__ */ A(ee, { path: sA.link, element: sA.component }, `${sA.link}_${$A}`)
2783
2864
  );
2784
- }), j;
2785
- }, [z.navigationData, z.collapsed]), H = F(() => {
2865
+ }), X;
2866
+ }, [z.navigationData, z.collapsed]), q = H(() => {
2786
2867
  z.setCollapsed(!z.collapsed);
2787
- }, [z.setCollapsed, z.collapsed]), tA = F(() => {
2868
+ }, [z.setCollapsed, z.collapsed]), tA = H(() => {
2788
2869
  z.setHidden(!z.hidden);
2789
2870
  }, [z.setHidden, z.hidden]);
2790
2871
  iA(() => {
@@ -2792,17 +2873,17 @@ function Ro({
2792
2873
  }, [z.hidden, tA]), iA(() => {
2793
2874
  c && c(z.collapsed);
2794
2875
  }, [z.collapsed, c]);
2795
- const EA = M === "minimal" || z.collapsed ? t : r, LA = (j, sA = !1) => O ? O({ width: r, height: j, isHidden: nA }) : M === "legacy" ? /* @__PURE__ */ A(
2876
+ const RA = M === "minimal" || z.collapsed ? t : r, DA = (X, sA = !1) => O ? O({ width: r, height: X, isHidden: nA }) : M === "legacy" ? /* @__PURE__ */ A(
2796
2877
  lo,
2797
2878
  {
2798
2879
  navigationData: z.navigationData,
2799
- sidebarHeight: j,
2880
+ sidebarHeight: X,
2800
2881
  sidebarGroupWidth: t,
2801
2882
  sidebarCollapsedWidth: t,
2802
2883
  selectedGroupColor: y,
2803
2884
  groupColor: w,
2804
2885
  backgroundGroupColor: m,
2805
- groupLabelDarkColor: p,
2886
+ groupLabelDarkColor: f,
2806
2887
  groupLabelLightColor: g,
2807
2888
  showGroupLabels: !1,
2808
2889
  collapsed: sA ? !1 : z.collapsed,
@@ -2812,20 +2893,20 @@ function Ro({
2812
2893
  onClickActionIcon: rA,
2813
2894
  sideBarFooterHeight: i,
2814
2895
  sideBarFooterContent: n,
2815
- sideBarHeaderContent: f,
2816
- theme: E,
2896
+ sideBarHeaderContent: p,
2897
+ theme: R,
2817
2898
  sidebarRef: lA,
2818
2899
  defaultGroupIcon: d,
2819
2900
  selectedGroupName: u,
2820
2901
  iconsWithBackground: C,
2821
2902
  menuItemHeight: P,
2822
2903
  highlightActiveMenuItem: D,
2823
- backgroundDarkColor: $,
2904
+ backgroundDarkColor: Q,
2824
2905
  backgroundLightColor: T,
2825
2906
  textDarkColor: x,
2826
- textLightColor: I,
2907
+ textLightColor: E,
2827
2908
  iconDarkColor: V,
2828
- iconLightColor: q,
2909
+ iconLightColor: F,
2829
2910
  collapsedSubmenuWidth: k,
2830
2911
  isLoading: z.isLoadingPermissions,
2831
2912
  loadingError: z.permissionsError
@@ -2835,9 +2916,9 @@ function Ro({
2835
2916
  {
2836
2917
  navigationData: z.navigationData,
2837
2918
  variant: M,
2838
- width: EA,
2919
+ width: RA,
2839
2920
  collapsedWidth: t,
2840
- height: j,
2921
+ height: X,
2841
2922
  groupColumnWidth: t,
2842
2923
  collapsed: sA ? !1 : z.collapsed,
2843
2924
  onCollapsedChange: ($A) => z.setCollapsed($A),
@@ -2848,40 +2929,40 @@ function Ro({
2848
2929
  showGroupLabels: !1,
2849
2930
  onMenuItemClick: Y,
2850
2931
  showSearch: N,
2851
- header: f,
2932
+ header: p,
2852
2933
  footer: n,
2853
2934
  footerHeight: i,
2854
2935
  isLoading: z.isLoadingPermissions,
2855
2936
  loadingError: z.permissionsError,
2856
- theme: E,
2937
+ theme: R,
2857
2938
  highlightActiveItem: D,
2858
- backgroundDarkColor: $,
2939
+ backgroundDarkColor: Q,
2859
2940
  backgroundLightColor: T,
2860
2941
  textDarkColor: x,
2861
- textLightColor: I,
2942
+ textLightColor: E,
2862
2943
  iconDarkColor: V,
2863
- iconLightColor: q,
2944
+ iconLightColor: F,
2864
2945
  groupBackgroundColor: m,
2865
2946
  selectedGroupColor: y,
2866
2947
  groupColor: w,
2867
- groupLabelDarkColor: p,
2948
+ groupLabelDarkColor: f,
2868
2949
  groupLabelLightColor: g,
2869
2950
  activeColor: b,
2870
2951
  withBorder: !1,
2871
2952
  sidebarRef: lA
2872
2953
  }
2873
- ), hA = dA === "dark" ? $ ?? E.colors.dark[7] : T ?? E.white, OA = M === "legacy", W = OA ? void 0 : {
2874
- width: { base: EA },
2954
+ ), hA = dA === "dark" ? Q ?? R.colors.dark[7] : T ?? R.white, OA = M === "legacy", Z = OA ? void 0 : {
2955
+ width: { base: RA },
2875
2956
  breakpoint: "sm",
2876
- collapsed: { mobile: nA || !Q, desktop: !Q }
2877
- }, DA = OA ? {
2957
+ collapsed: { mobile: nA || !$, desktop: !$ }
2958
+ }, TA = OA ? {
2878
2959
  main: {
2879
- background: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0],
2960
+ background: dA === "dark" ? R.colors.dark[8] : R.colors.gray[0],
2880
2961
  overflow: "hidden"
2881
2962
  }
2882
2963
  } : {
2883
2964
  main: {
2884
- background: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0],
2965
+ background: dA === "dark" ? R.colors.dark[8] : R.colors.gray[0],
2885
2966
  overflow: "hidden"
2886
2967
  },
2887
2968
  navbar: {
@@ -2890,10 +2971,10 @@ function Ro({
2890
2971
  }
2891
2972
  }, gA = OA ? {
2892
2973
  height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
2893
- width: `calc(100vw - var(--app-shell-padding) - calc(${nA ? "0px" : EA} + 1rem))`,
2974
+ width: `calc(100vw - var(--app-shell-padding) - calc(${nA ? "0px" : RA} + 1rem))`,
2894
2975
  marginTop: "0.5rem",
2895
- marginLeft: `calc(${nA ? "0px" : EA} + 0.5rem)`,
2896
- border: `1px solid ${dA === "dark" ? E.colors.dark[4] : "#e4e9ef"}`,
2976
+ marginLeft: `calc(${nA ? "0px" : RA} + 0.5rem)`,
2977
+ border: `1px solid ${dA === "dark" ? R.colors.dark[4] : "#e4e9ef"}`,
2897
2978
  borderRadius: "4px",
2898
2979
  overflow: "hidden"
2899
2980
  } : {
@@ -2902,17 +2983,17 @@ function Ro({
2902
2983
  marginTop: "0.5rem",
2903
2984
  marginLeft: "0.5rem",
2904
2985
  marginRight: "0.5rem",
2905
- border: `1px solid ${dA === "dark" ? E.colors.dark[4] : "#e4e9ef"}`,
2986
+ border: `1px solid ${dA === "dark" ? R.colors.dark[4] : "#e4e9ef"}`,
2906
2987
  borderRadius: "4px",
2907
2988
  overflow: "hidden"
2908
2989
  };
2909
- return /* @__PURE__ */ L(
2990
+ return /* @__PURE__ */ I(
2910
2991
  QA,
2911
2992
  {
2912
- header: { height: "60px", collapsed: !K },
2913
- navbar: W,
2993
+ header: { height: "60px", collapsed: !j },
2994
+ navbar: Z,
2914
2995
  footer: { height: v || "0px" },
2915
- styles: DA,
2996
+ styles: TA,
2916
2997
  children: [
2917
2998
  /* @__PURE__ */ A(
2918
2999
  QA.Header,
@@ -2924,28 +3005,28 @@ function Ro({
2924
3005
  backgroundColor: "var(--mantine-primary-color-8)",
2925
3006
  alignItems: "center",
2926
3007
  borderBottom: "none",
2927
- ...J
3008
+ ...W
2928
3009
  },
2929
3010
  children: o
2930
3011
  }
2931
3012
  ),
2932
- /* @__PURE__ */ A(QA.Navbar, { children: !nA && Q ? LA(CA(), !1) : void 0 }),
2933
- /* @__PURE__ */ L(QA.Main, { bg: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0], children: [
3013
+ /* @__PURE__ */ A(QA.Navbar, { children: !nA && $ ? DA(kA(), !1) : void 0 }),
3014
+ /* @__PURE__ */ I(QA.Main, { bg: dA === "dark" ? R.colors.dark[8] : R.colors.gray[0], children: [
2934
3015
  !nA && B && Eo(
2935
3016
  dA,
2936
- E,
3017
+ R,
2937
3018
  z,
2938
3019
  r,
2939
3020
  t,
2940
- H
3021
+ q
2941
3022
  ),
2942
- /* @__PURE__ */ L("div", { style: gA, children: [
3023
+ /* @__PURE__ */ I("div", { style: gA, children: [
2943
3024
  e,
2944
- /* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ L(xo, { maxKeepAliveTabs: R, children: [
2945
- ...IA
3025
+ /* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ I(xo, { maxKeepAliveTabs: L, children: [
3026
+ ...EA
2946
3027
  ] }) })
2947
3028
  ] }),
2948
- Q && /* @__PURE__ */ A(
3029
+ $ && /* @__PURE__ */ A(
2949
3030
  Se,
2950
3031
  {
2951
3032
  opened: z.hidden || !1,
@@ -2955,7 +3036,7 @@ function Ro({
2955
3036
  styles: {
2956
3037
  header: { minHeight: "10px" }
2957
3038
  },
2958
- children: LA(kA(), !0)
3039
+ children: DA(yA(), !0)
2959
3040
  }
2960
3041
  )
2961
3042
  ] }),
@@ -2978,34 +3059,34 @@ function xn({
2978
3059
  sideBarHiddenBreakPoint: u,
2979
3060
  sideBarFooterHeight: d,
2980
3061
  sideBarFooterContent: h,
2981
- onCollapsedSideBar: f,
3062
+ onCollapsedSideBar: p,
2982
3063
  onHiddenSidebar: y,
2983
3064
  sidebarDefaultGroupIcon: w,
2984
3065
  sidebarSelectedGroupName: m,
2985
- sideBarHeaderHeight: p,
3066
+ sideBarHeaderHeight: f,
2986
3067
  sideBarHeaderContent: g,
2987
3068
  selectedGroupColor: S = "#132441",
2988
3069
  groupColor: v = "white",
2989
3070
  backgroundGroupColor: C = "#132441",
2990
3071
  groupLabelDarkColor: P = "white",
2991
- groupLabelLightColor: Q = "white",
2992
- headerColor: K,
2993
- footerHeight: J,
3072
+ groupLabelLightColor: $ = "white",
3073
+ headerColor: j,
3074
+ footerHeight: W,
2994
3075
  iconsWithBackground: D,
2995
3076
  menuItemHeight: O,
2996
3077
  showSideBar: B,
2997
- showHeader: $,
3078
+ showHeader: Q,
2998
3079
  headerStyle: T,
2999
3080
  highlightActiveMenuItem: x,
3000
- enableSecurity: I = !1,
3081
+ enableSecurity: E = !1,
3001
3082
  securityOptions: V,
3002
- customRenderSidebar: q,
3083
+ customRenderSidebar: F,
3003
3084
  onNavigationDataChange: k,
3004
3085
  showCollapsedButton: b,
3005
- initialSidebarCollapsed: R = !1,
3086
+ initialSidebarCollapsed: L = !1,
3006
3087
  sideBarBackgroundDarkColor: M,
3007
3088
  sideBarBackgroundLightColor: N,
3008
- sideBarTextDarkColor: E,
3089
+ sideBarTextDarkColor: R,
3009
3090
  sideBarTextLightColor: z,
3010
3091
  sideBarIconDarkColor: dA,
3011
3092
  sideBarIconLightColor: U,
@@ -3023,10 +3104,10 @@ function xn({
3023
3104
  user: s,
3024
3105
  owner: i,
3025
3106
  company: n,
3026
- enableSecurity: I,
3107
+ enableSecurity: E,
3027
3108
  securityOptions: V,
3028
3109
  onNavigationDataChange: k,
3029
- initialSidebarCollapsed: R,
3110
+ initialSidebarCollapsed: L,
3030
3111
  children: /* @__PURE__ */ A(
3031
3112
  Ro,
3032
3113
  {
@@ -3039,7 +3120,7 @@ function xn({
3039
3120
  sideBarWidth: c,
3040
3121
  sideBarCollapsedWidth: l,
3041
3122
  sideBarHiddenBreakPoint: u,
3042
- sideBarHeaderHeight: p,
3123
+ sideBarHeaderHeight: f,
3043
3124
  sideBarHeaderContent: g,
3044
3125
  sideBarFooterHeight: d,
3045
3126
  sideBarFooterContent: h,
@@ -3047,25 +3128,25 @@ function xn({
3047
3128
  groupColor: v,
3048
3129
  backgroundGroupColor: C,
3049
3130
  groupLabelDarkColor: P,
3050
- groupLabelLightColor: Q,
3051
- onCollapsedSideBar: f,
3131
+ groupLabelLightColor: $,
3132
+ onCollapsedSideBar: p,
3052
3133
  onHiddenSidebar: y,
3053
3134
  sidebarDefaultGroupIcon: w,
3054
3135
  sidebarSelectedGroupName: m,
3055
- headerColor: K,
3056
- footerHeight: J,
3136
+ headerColor: j,
3137
+ footerHeight: W,
3057
3138
  iconsWithBackground: D,
3058
3139
  menuItemHeight: O,
3059
3140
  showSideBar: B,
3060
- showHeader: $,
3141
+ showHeader: Q,
3061
3142
  headerStyle: T,
3062
3143
  highlightActiveMenuItem: x,
3063
- enableSecurity: I,
3064
- customRenderSidebar: q,
3144
+ enableSecurity: E,
3145
+ customRenderSidebar: F,
3065
3146
  showCollapsedButton: b,
3066
3147
  sideBarBackgroundDarkColor: M,
3067
3148
  sideBarBackgroundLightColor: N,
3068
- sideBarTextDarkColor: E,
3149
+ sideBarTextDarkColor: R,
3069
3150
  sideBarTextLightColor: z,
3070
3151
  sideBarIconDarkColor: dA,
3071
3152
  sideBarIconLightColor: U,
@@ -3080,7 +3161,7 @@ function xn({
3080
3161
  }
3081
3162
  );
3082
3163
  }
3083
- const Ue = FA({
3164
+ const Ue = HA({
3084
3165
  state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
3085
3166
  dispatch: (e) => null
3086
3167
  }), Sn = ({ children: e }) => {
@@ -3102,7 +3183,7 @@ const Ue = FA({
3102
3183
  default:
3103
3184
  return a;
3104
3185
  }
3105
- }, [r, t] = Fe(s, o);
3186
+ }, [r, t] = He(s, o);
3106
3187
  return bA.useEffect(() => {
3107
3188
  let a = null;
3108
3189
  return r.userCloseLinkRequest && !r.linkClosed && (console.log(`[NavigationProvider] Waiting for close response for: ${r.userCloseLinkRequest}`), a = setTimeout(() => {
@@ -3112,12 +3193,12 @@ const Ue = FA({
3112
3193
  };
3113
3194
  }, [r.userCloseLinkRequest, r.linkClosed, t]), /* @__PURE__ */ A(Ue.Provider, { value: { state: r, dispatch: t }, children: e });
3114
3195
  }, Be = () => {
3115
- const e = SA(Ue);
3196
+ const e = IA(Ue);
3116
3197
  if (!e)
3117
3198
  throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
3118
3199
  return e;
3119
3200
  }, In = (e, o) => {
3120
- const s = Be(), { state: r, dispatch: t } = s, a = F((c) => {
3201
+ const s = Be(), { state: r, dispatch: t } = s, a = H((c) => {
3121
3202
  console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`), t({ type: "CLOSE_ALLOWED", link: e, payload: c });
3122
3203
  }, [t, e]), i = mA(o);
3123
3204
  i.current = o, iA(() => {
@@ -3133,22 +3214,22 @@ function En({
3133
3214
  activeTabId: r,
3134
3215
  openedTabs: t = []
3135
3216
  }) {
3136
- const [a, i] = bA.useTransition(), n = qA(), { colorScheme: c } = oA(), [l, u] = fA(t), [d, h] = fA(r), f = HA(), y = mA([]);
3137
- Fr(y);
3138
- const w = Be(), { state: m, dispatch: p } = w, g = SA(jA), S = Ge(), v = mA(o), C = mA(s);
3217
+ const [a, i] = bA.useTransition(), n = FA(), { colorScheme: c } = oA(), [l, u] = pA(t), [d, h] = pA(r), p = qA(), y = mA([]);
3218
+ Hr(y);
3219
+ const w = Be(), { state: m, dispatch: f } = w, g = IA(jA), S = Ge(), v = mA(o), C = mA(s);
3139
3220
  iA(() => {
3140
3221
  v.current = o, C.current = s;
3141
3222
  });
3142
- const P = mA(!1), Q = F((k, b) => {
3223
+ const P = mA(!1), $ = H((k, b) => {
3143
3224
  console.log(`[TabContainer] handleOnClose called for: ${k}`), S ? S.requestUnregister(k) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks.");
3144
- const R = l.findIndex((U) => U.path === k);
3225
+ const L = l.findIndex((U) => U.path === k);
3145
3226
  let M = b?.redirectUrl;
3146
- !M && R >= 0 && (M = l[R].redirect);
3227
+ !M && L >= 0 && (M = l[L].redirect);
3147
3228
  const N = l.filter((U) => U.id !== k);
3148
- let E = -1;
3149
- N.forEach((U, lA) => U.id === d && (E = lA));
3229
+ let R = -1;
3230
+ N.forEach((U, lA) => U.id === d && (R = lA));
3150
3231
  let z = null;
3151
- N.length > 0 && N[E] ? z = N[E].id : N.length > 0 ? z = N[N.length - 1].id : z = null;
3232
+ N.length > 0 && N[R] ? z = N[R].id : N.length > 0 ? z = N[N.length - 1].id : z = null;
3152
3233
  const dA = N.map((U) => ({
3153
3234
  ...U,
3154
3235
  active: z === U.id
@@ -3162,12 +3243,12 @@ function En({
3162
3243
  }
3163
3244
  n(g.navigationRootLink);
3164
3245
  }
3165
- p({ type: "DONE", link: "" });
3166
- }, [l, d, n, g.navigationRootLink, p, S]);
3246
+ f({ type: "DONE", link: "" });
3247
+ }, [l, d, n, g.navigationRootLink, f, S]);
3167
3248
  iA(() => {
3168
- m?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${m?.linkClosed}`), Q(m?.linkClosed, m?.payload));
3169
- }, [m?.linkClosed, m?.payload, Q]);
3170
- const K = (k) => {
3249
+ m?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${m?.linkClosed}`), $(m?.linkClosed, m?.payload));
3250
+ }, [m?.linkClosed, m?.payload, $]);
3251
+ const j = (k) => {
3171
3252
  const b = {
3172
3253
  item: void 0,
3173
3254
  title: void 0,
@@ -3175,50 +3256,50 @@ function En({
3175
3256
  redirect: void 0,
3176
3257
  customTitle: void 0
3177
3258
  };
3178
- return e.forEach((R) => {
3179
- if (R.links)
3180
- R.links.forEach((M) => {
3181
- me({ path: M.link || "" }, location.pathname) && (b.item = M, b.title = `${Z().t(M.label)}`, b.redirect = M.redirect, b.customTitle = M.customTitle);
3259
+ return e.forEach((L) => {
3260
+ if (L.links)
3261
+ L.links.forEach((M) => {
3262
+ me({ path: M.link || "" }, location.pathname) && (b.item = M, b.title = `${_().t(M.label)}`, b.redirect = M.redirect, b.customTitle = M.customTitle);
3182
3263
  });
3183
- else if (R.link && !b.item) {
3184
- const M = me({ path: R.link }, location.pathname);
3185
- M && (M.params && Object.keys(M.params).length > 0 ? b.title = `${M.params[Object.keys(M.params)[0]]}` : b.title = `${Z().t(R.label)}`, b.item = R, b.redirect = R.redirect, b.customTitle = R.customTitle);
3264
+ else if (L.link && !b.item) {
3265
+ const M = me({ path: L.link }, location.pathname);
3266
+ M && (M.params && Object.keys(M.params).length > 0 ? b.title = `${M.params[Object.keys(M.params)[0]]}` : b.title = `${_().t(L.label)}`, b.item = L, b.redirect = L.redirect, b.customTitle = L.customTitle);
3186
3267
  }
3187
3268
  }), b.customTitle && (b.customTitle = b.customTitle.replace("$title", b.title)), b;
3188
3269
  };
3189
3270
  iA(() => {
3190
3271
  u(t), P.current = !0;
3191
3272
  }, [JSON.stringify(t)]);
3192
- const J = mA(l), D = mA(d);
3273
+ const W = mA(l), D = mA(d);
3193
3274
  iA(() => {
3194
3275
  if (P.current) {
3195
- P.current = !1, J.current = l, D.current = d;
3276
+ P.current = !1, W.current = l, D.current = d;
3196
3277
  return;
3197
3278
  }
3198
- const k = JSON.stringify(J.current) !== JSON.stringify(l), b = D.current !== d;
3279
+ const k = JSON.stringify(W.current) !== JSON.stringify(l), b = D.current !== d;
3199
3280
  if (k || b) {
3200
- const R = setTimeout(() => {
3281
+ const L = setTimeout(() => {
3201
3282
  v.current?.(l), C.current?.(d);
3202
3283
  }, 0);
3203
- return J.current = l, D.current = d, () => clearTimeout(R);
3284
+ return W.current = l, D.current = d, () => clearTimeout(L);
3204
3285
  }
3205
3286
  }, [l, d]);
3206
3287
  const O = mA("");
3207
3288
  iA(() => {
3208
- if (O.current === f.pathname)
3289
+ if (O.current === p.pathname)
3209
3290
  return;
3210
- O.current = f.pathname;
3211
- const k = K(f.pathname);
3291
+ O.current = p.pathname;
3292
+ const k = j(p.pathname);
3212
3293
  if (k && k.item) {
3213
- const b = l.findIndex((R) => R.path === k.link);
3294
+ const b = l.findIndex((L) => L.path === k.link);
3214
3295
  if (b !== -1) {
3215
3296
  if (l[b].title !== k.title) {
3216
- const R = [...l];
3217
- R[b] = { ...R[b], title: k.title }, u(R);
3297
+ const L = [...l];
3298
+ L[b] = { ...L[b], title: k.title }, u(L);
3218
3299
  }
3219
3300
  h(l[b].id);
3220
3301
  } else {
3221
- const R = {
3302
+ const L = {
3222
3303
  id: `${k.link}`,
3223
3304
  title: `${k.title}`,
3224
3305
  path: `${k.link}`,
@@ -3228,72 +3309,72 @@ function En({
3228
3309
  closeButton: !0,
3229
3310
  redirect: k.redirect,
3230
3311
  customTitle: k.customTitle
3231
- }, M = [...l.map((N) => ({ ...N, active: !1 })), R];
3232
- u(M), h(R.id);
3312
+ }, M = [...l.map((N) => ({ ...N, active: !1 })), L];
3313
+ u(M), h(L.id);
3233
3314
  }
3234
3315
  }
3235
- }, [f.pathname]);
3316
+ }, [p.pathname]);
3236
3317
  const B = (k) => {
3237
- const b = l.filter((R) => R.id === k);
3238
- b && b.length > 0 && f.pathname !== b[0].path && n(b[0].path), i(() => {
3318
+ const b = l.filter((L) => L.id === k);
3319
+ b && b.length > 0 && p.pathname !== b[0].path && n(b[0].path), i(() => {
3239
3320
  h(k);
3240
3321
  });
3241
- }, $ = (k) => {
3322
+ }, Q = (k) => {
3242
3323
  console.log(`[TabContainer] handleOnCloseRequest - User clicked close on tab: ${k}`);
3243
3324
  try {
3244
- p({ type: "USER_CLOSE_REQUEST", link: k });
3325
+ f({ type: "USER_CLOSE_REQUEST", link: k });
3245
3326
  } catch (b) {
3246
3327
  console.error("[TabContainer] Dispatch failed:", b);
3247
3328
  }
3248
- }, T = F(() => {
3329
+ }, T = H(() => {
3249
3330
  if (u([]), h(void 0), !g.navigationRootLink) {
3250
3331
  console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
3251
3332
  return;
3252
3333
  }
3253
3334
  n(g.navigationRootLink);
3254
- }, [n, g.navigationRootLink]), x = F((k) => {
3255
- const b = l.findIndex((E) => E.id === k);
3335
+ }, [n, g.navigationRootLink]), x = H((k) => {
3336
+ const b = l.findIndex((R) => R.id === k);
3256
3337
  if (b <= 0)
3257
3338
  return;
3258
- const R = l.slice(b), M = R.find((E) => E.id === d)?.id || R[0]?.id, N = R.map((E) => ({
3259
- ...E,
3260
- active: E.id === M
3339
+ const L = l.slice(b), M = L.find((R) => R.id === d)?.id || L[0]?.id, N = L.map((R) => ({
3340
+ ...R,
3341
+ active: R.id === M
3261
3342
  }));
3262
3343
  if (u(N), M) {
3263
3344
  h(M);
3264
- const E = N.find((z) => z.id === M);
3265
- E && f.pathname !== E.path && n(E.path);
3345
+ const R = N.find((z) => z.id === M);
3346
+ R && p.pathname !== R.path && n(R.path);
3266
3347
  }
3267
- }, [l, d, n, f.pathname]), I = F((k) => {
3268
- const b = l.findIndex((E) => E.id === k);
3348
+ }, [l, d, n, p.pathname]), E = H((k) => {
3349
+ const b = l.findIndex((R) => R.id === k);
3269
3350
  if (b === -1 || b >= l.length - 1)
3270
3351
  return;
3271
- const R = l.slice(0, b + 1), M = R.find((E) => E.id === d)?.id || R[R.length - 1]?.id, N = R.map((E) => ({
3272
- ...E,
3273
- active: E.id === M
3352
+ const L = l.slice(0, b + 1), M = L.find((R) => R.id === d)?.id || L[L.length - 1]?.id, N = L.map((R) => ({
3353
+ ...R,
3354
+ active: R.id === M
3274
3355
  }));
3275
3356
  if (u(N), M) {
3276
3357
  h(M);
3277
- const E = N.find((z) => z.id === M);
3278
- E && f.pathname !== E.path && n(E.path);
3358
+ const R = N.find((z) => z.id === M);
3359
+ R && p.pathname !== R.path && n(R.path);
3279
3360
  }
3280
- }, [l, d, n, f.pathname]), V = F((k) => {
3361
+ }, [l, d, n, p.pathname]), V = H((k) => {
3281
3362
  const b = l.find((M) => M.id === k);
3282
3363
  if (!b)
3283
3364
  return;
3284
- const R = [{ ...b, active: !0 }];
3285
- u(R), h(k), f.pathname !== b.path && n(b.path);
3286
- }, [l, n, f.pathname]);
3365
+ const L = [{ ...b, active: !0 }];
3366
+ u(L), h(k), p.pathname !== b.path && n(b.path);
3367
+ }, [l, n, p.pathname]);
3287
3368
  return /* @__PURE__ */ A("div", { ref: y, children: /* @__PURE__ */ A(
3288
- qr,
3369
+ Fr,
3289
3370
  {
3290
3371
  buttonCloseOnlyActiveTab: !0,
3291
3372
  onClick: (k) => B(k),
3292
- onTabClose: (k) => $(k),
3373
+ onTabClose: (k) => Q(k),
3293
3374
  onTabChange: (k) => null,
3294
3375
  onCloseAllTabs: T,
3295
3376
  onCloseLeftTabs: x,
3296
- onCloseRightTabs: I,
3377
+ onCloseRightTabs: E,
3297
3378
  onCloseOtherTabs: V,
3298
3379
  currentTabs: ((k) => k.map((b) => ({
3299
3380
  key: b.id,
@@ -3373,7 +3454,7 @@ const Lo = () => bA.createElement("div", null, "Home View"), Do = () => bA.creat
3373
3454
  category: "PEDIDOS",
3374
3455
  color: "yellow",
3375
3456
  showInSidebar: !0
3376
- }, Fo = {
3457
+ }, Ho = {
3377
3458
  label: "Configurações",
3378
3459
  link: "/config",
3379
3460
  icon: /* @__PURE__ */ A(dr, {}),
@@ -3386,7 +3467,7 @@ const Lo = () => bA.createElement("div", null, "Home View"), Do = () => bA.creat
3386
3467
  Mo,
3387
3468
  No,
3388
3469
  Bo,
3389
- Fo
3470
+ Ho
3390
3471
  ];
3391
3472
  function Ln({ children: e, title: o = "", size: s = "440px", drawerKey: r, styles: t }) {
3392
3473
  const [a, { open: i, close: n }] = Ve(!1), [c] = Pe(), l = Or(), u = se();
@@ -3412,8 +3493,8 @@ function Ln({ children: e, title: o = "", size: s = "440px", drawerKey: r, style
3412
3493
  }
3413
3494
  );
3414
3495
  }
3415
- function qo(e) {
3416
- const o = qA(), s = HA(), [r] = Pe();
3496
+ function Fo(e) {
3497
+ const o = FA(), s = qA(), [r] = Pe();
3417
3498
  return { openDrawer: () => {
3418
3499
  const a = new URLSearchParams(r);
3419
3500
  a.set("drawer", e), o({
@@ -3423,12 +3504,12 @@ function qo(e) {
3423
3504
  } };
3424
3505
  }
3425
3506
  function Dn({ drawerKey: e }) {
3426
- const { openDrawer: o } = qo(e);
3507
+ const { openDrawer: o } = Fo(e);
3427
3508
  return iA(() => {
3428
3509
  o();
3429
3510
  }, []), null;
3430
3511
  }
3431
- const Ho = {
3512
+ const qo = {
3432
3513
  // Campos de identificação
3433
3514
  showNickname: !0,
3434
3515
  // Configurações de campos obrigatórios
@@ -3437,34 +3518,34 @@ const Ho = {
3437
3518
  avatarImageQuality: 1
3438
3519
  };
3439
3520
  function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t }) {
3440
- const a = Ye(), i = Ke(), n = ur(), c = Hr(`myProfile${s}Store`), l = Vr(hr.User), u = { ...Ho, ...t ?? {} }, { dataSource: d, isLoading: h, error: f, isError: y, clearError: w } = Yr({
3521
+ const a = Ye(), i = Ke(), n = ur(), c = qr(`myProfile${s}Store`), l = Vr(hr.User), u = { ...qo, ...t ?? {} }, { dataSource: d, isLoading: h, error: p, isError: y, clearError: w } = Yr({
3441
3522
  name: `dsUser${s}`,
3442
- label: `${Z().t("archbase:My Profile")}`,
3523
+ label: `${_().t("archbase:My Profile")}`,
3443
3524
  service: l,
3444
3525
  store: c,
3445
3526
  pageSize: 50,
3446
3527
  loadOnStart: !0,
3447
3528
  validator: n,
3448
3529
  id: s,
3449
- onLoadComplete: (p) => {
3450
- p.isBrowsing() && p.edit(), i();
3530
+ onLoadComplete: (f) => {
3531
+ f.isBrowsing() && f.edit(), i();
3451
3532
  },
3452
- onDestroy: (p) => {
3533
+ onDestroy: (f) => {
3453
3534
  },
3454
- onError: (p, g) => {
3455
- Gr.showError(Z().t("archbase:WARNING"), p, g);
3535
+ onError: (f, g) => {
3536
+ Gr.showError(_().t("archbase:WARNING"), f, g);
3456
3537
  }
3457
3538
  });
3458
3539
  iA(() => {
3459
3540
  e && d && d.isBrowsing() && d.edit();
3460
3541
  }, [d, e]);
3461
- const m = (p) => {
3462
- p && (console.log(p), r(p.name, p.avatar));
3542
+ const m = (f) => {
3543
+ f && (console.log(f), r(f.name, f.avatar));
3463
3544
  };
3464
3545
  return /* @__PURE__ */ A(
3465
3546
  Kr,
3466
3547
  {
3467
- title: Z().t("archbase:My Profile"),
3548
+ title: _().t("archbase:My Profile"),
3468
3549
  size: 800,
3469
3550
  height: "500px",
3470
3551
  opened: e,
@@ -3472,8 +3553,8 @@ function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t })
3472
3553
  onClickOk: o,
3473
3554
  onClickCancel: o,
3474
3555
  onAfterSave: m,
3475
- children: /* @__PURE__ */ A(TA, { style: { height: "440px" }, ref: a, children: /* @__PURE__ */ L(_, { children: [
3476
- /* @__PURE__ */ A(_, { align: "center", children: /* @__PURE__ */ A(
3556
+ children: /* @__PURE__ */ A(zA, { style: { height: "440px" }, ref: a, children: /* @__PURE__ */ I(K, { children: [
3557
+ /* @__PURE__ */ A(K, { align: "center", children: /* @__PURE__ */ A(
3477
3558
  Ur,
3478
3559
  {
3479
3560
  dataSource: d,
@@ -3487,8 +3568,8 @@ function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t })
3487
3568
  /* @__PURE__ */ A(
3488
3569
  XA,
3489
3570
  {
3490
- label: `${Z().t("archbase:Nome completo")}`,
3491
- placeholder: `${Z().t("archbase:Informe o nome completo do usuário")}`,
3571
+ label: `${_().t("archbase:Nome completo")}`,
3572
+ placeholder: `${_().t("archbase:Informe o nome completo do usuário")}`,
3492
3573
  dataSource: d,
3493
3574
  dataField: "name",
3494
3575
  required: !0
@@ -3497,8 +3578,8 @@ function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t })
3497
3578
  u.showNickname && /* @__PURE__ */ A(
3498
3579
  XA,
3499
3580
  {
3500
- label: `${Z().t("archbase:Apelido")}`,
3501
- placeholder: `${Z().t("archbase:Apelido")}`,
3581
+ label: `${_().t("archbase:Apelido")}`,
3582
+ placeholder: `${_().t("archbase:Apelido")}`,
3502
3583
  dataSource: d,
3503
3584
  dataField: "nickname",
3504
3585
  required: u.requiredNickname
@@ -3507,8 +3588,8 @@ function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t })
3507
3588
  /* @__PURE__ */ A(
3508
3589
  XA,
3509
3590
  {
3510
- label: `${Z().t("archbase:Descrição do usuário")}`,
3511
- placeholder: `${Z().t("archbase:Informe a descrição do usuário")}`,
3591
+ label: `${_().t("archbase:Descrição do usuário")}`,
3592
+ placeholder: `${_().t("archbase:Informe a descrição do usuário")}`,
3512
3593
  dataSource: d,
3513
3594
  dataField: "description",
3514
3595
  required: !0
@@ -3562,16 +3643,16 @@ export {
3562
3643
  MA as SidebarItem,
3563
3644
  ye as SidebarMenuSkeleton,
3564
3645
  ae as SidebarProvider,
3565
- pn as SidebarSearch,
3566
- fn as SidebarSection,
3646
+ fn as SidebarSearch,
3647
+ pn as SidebarSection,
3567
3648
  gn as SidebarUserProfile,
3568
3649
  kn as SidebarUserProfileSkeleton,
3569
- po as StandardSidebar,
3650
+ fo as StandardSidebar,
3570
3651
  ro as defaultAvatar,
3571
- Ho as defaultMyProfileModalOptions,
3652
+ qo as defaultMyProfileModalOptions,
3572
3653
  Rn as navigationDataSample,
3573
3654
  zn as useArchbaseAdminStore,
3574
- qo as useArchbaseDrawer,
3655
+ Fo as useArchbaseDrawer,
3575
3656
  Be as useArchbaseNavigationContext,
3576
3657
  In as useArchbaseNavigationListener,
3577
3658
  wn as useArchbaseRouteParams,