@archbase/admin 3.0.10 → 3.0.11

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