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