@archbase/admin 3.0.3 → 3.0.5

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,181 +1,219 @@
1
- import { jsx as A, jsxs as I, Fragment as sA } from "react/jsx-runtime";
2
- import j, { useState as eA, useEffect as U, useMemo as RA, useContext as gA, useCallback as aA, createContext as qA, useRef as AA, useLayoutEffect as xA, useReducer as te } from "react";
3
- import { useArchbaseSecurityManager as ae } from "@archbase/security";
4
- import { useUncontrolled as se, useMediaQuery as zA, useDisclosure as le, useFocusTrap as ie, useForceUpdate as ce } from "@mantine/hooks";
5
- import { Flex as LA, useMantineColorScheme as iA, Menu as H, ActionIcon as mA, Group as BA, Tooltip as CA, Button as de, Badge as ue, Center as he, Image as pe, useMantineTheme as HA, px as X, Burger as ge, Box as fe, Avatar as be, Text as KA, ScrollArea as TA, Stack as vA, Paper as Ce, AppShell as dA, Drawer as GA } from "@mantine/core";
6
- import { IconSun as VA, IconMoonStars as YA, IconTerminal as ve, IconSearch as ke, IconDots as me, IconChevronRight as we, IconChevronLeft as ye, IconHome2 as xe, IconDashboard as Se, IconUsers as Ee, IconListSearch as XA, IconUserPlus as Re, IconNews as Le, IconFilePlus as Te, IconSettings as De } from "@tabler/icons-react";
7
- import { useArchbaseAppContext as DA, getI18nextInstance as L, useArchbaseTranslation as IA, archbaseI18next as uA, useArchbaseValidator as Ie, ARCHBASE_IOC_API_TYPE as Qe } from "@archbase/core";
8
- import { BRFlag as pA, USFlag as jA, ESFlag as SA, VEFlag as Oe, UYFlag as Ne, SVFlag as Pe, PYFlag as ze, PEFlag as $e, PAFlag as Me, NIFlag as Ue, MXFlag as Fe, HNFlag as qe, GTFlag as Be, ECFlag as He, DOFlag as Ke, CUFlag as Ge, CRFlag as Ve, COFlag as Ye, CLFlag as Xe, BOFlag as je, ARFlag as Je } from "mantine-flagpack";
9
- import { spotlight as We, Spotlight as hA } from "@mantine/spotlight";
10
- import { useNavigate as QA, useLocation as OA, matchPath as $A } from "react-router";
11
- import { Routes as JA, Route as EA, useSearchParams as WA, useNavigate as Ze, useLocation as _e } from "react-router-dom";
12
- import { useMediaQuery as Ao } from "usehooks-ts";
13
- import { useArchbaseNavigateParams as eo, useArchbaseVisible as oo, ArchbaseNotifications as no, ArchbaseAvatarEdit as ro, ArchbaseEdit as yA } from "@archbase/components";
14
- import { SubMenu as to, MenuItem as MA, menuClasses as E, Sidebar as ZA, Menu as _A, sidebarClasses as Ae } from "react-pro-sidebar";
15
- import ao from "@rehooks/component-size";
16
- import { ArchbaseAdvancedTabs as so } from "@archbase/layout";
17
- import { useArchbaseStore as lo, useArchbaseRemoteServiceApi as io, useArchbaseRemoteDataSource as co } from "@archbase/data";
18
- import { ArchbaseFormModalTemplate as uo } from "@archbase/template";
19
- import { create as ho } from "zustand";
20
- const wA = j.createContext({}), po = ({
1
+ import { jsx as A, jsxs as P, Fragment as iA } from "react/jsx-runtime";
2
+ import AA, { useState as _, useRef as rA, useEffect as U, useMemo as dA, useContext as cA, useCallback as sA, createContext as yA, useLayoutEffect as bA, useReducer as ce } from "react";
3
+ import { useArchbaseSecurityManager as de } from "@archbase/security";
4
+ import { useUncontrolled as ue, useMediaQuery as VA, useDisclosure as he, useFocusTrap as pe, useForceUpdate as ge } from "@mantine/hooks";
5
+ import { Flex as DA, useMantineColorScheme as nA, Menu as j, ActionIcon as EA, Group as OA, Tooltip as wA, Button as fe, Badge as be, Center as XA, Image as me, useMantineTheme as vA, px as Z, Burger as Ce, Box as ve, Avatar as ke, Text as QA, ScrollArea as zA, Stack as lA, Paper as we, AppShell as pA, Drawer as JA, Skeleton as mA } from "@mantine/core";
6
+ import { IconSun as jA, IconMoonStars as WA, IconTerminal as xe, IconSearch as ye, IconDots as Ee, IconChevronRight as Se, IconChevronLeft as Re, IconHome2 as Le, IconDashboard as Te, IconUsers as Ie, IconListSearch as ZA, IconUserPlus as Pe, IconNews as De, IconFilePlus as Oe, IconSettings as Qe, IconAlertCircle as ze } from "@tabler/icons-react";
7
+ import { useArchbaseAppContext as MA, getI18nextInstance as I, useArchbaseTranslation as NA, archbaseI18next as gA, useArchbaseValidator as Me, ARCHBASE_IOC_API_TYPE as Ne } from "@archbase/core";
8
+ import { BRFlag as CA, USFlag as _A, ESFlag as IA, VEFlag as $e, UYFlag as Ue, SVFlag as Fe, PYFlag as qe, PEFlag as Be, PAFlag as Ve, NIFlag as He, MXFlag as Ge, HNFlag as Ke, GTFlag as Ye, ECFlag as Xe, DOFlag as Je, CUFlag as je, CRFlag as We, COFlag as Ze, CLFlag as _e, BOFlag as Ar, ARFlag as er } from "mantine-flagpack";
9
+ import { spotlight as rr, Spotlight as fA } from "@mantine/spotlight";
10
+ import { useNavigate as $A, useLocation as UA, matchPath as HA } from "react-router";
11
+ import { Routes as Ae, useParams as or, useLocation as FA, matchPath as nr, Route as PA, useSearchParams as ee, useNavigate as tr } from "react-router-dom";
12
+ import { useMediaQuery as ar } from "usehooks-ts";
13
+ import { useArchbaseNavigateParams as sr, useArchbaseVisible as ir, ArchbaseNotifications as lr, ArchbaseAvatarEdit as cr, ArchbaseEdit as TA } from "@archbase/components";
14
+ import { SubMenu as dr, MenuItem as GA, menuClasses as L, Sidebar as re, Menu as oe, sidebarClasses as ne } from "react-pro-sidebar";
15
+ import ur from "@rehooks/component-size";
16
+ import { ArchbaseAdvancedTabs as hr } from "@archbase/layout";
17
+ import { useArchbaseStore as pr, useArchbaseRemoteServiceApi as gr, useArchbaseRemoteDataSource as fr } from "@archbase/data";
18
+ import { ArchbaseFormModalTemplate as br } from "@archbase/template";
19
+ import { create as mr } from "zustand";
20
+ const SA = AA.createContext({}), Cr = ({
21
21
  navigationData: e,
22
- user: n,
23
- owner: d,
24
- company: o,
25
- navigationRootLink: h,
26
- children: u,
27
- enableSecurity: c,
28
- securityOptions: r,
29
- onNavigationDataChange: l,
30
- initialSidebarCollapsed: a
22
+ user: o,
23
+ owner: c,
24
+ company: r,
25
+ navigationRootLink: s,
26
+ children: l,
27
+ enableSecurity: i,
28
+ securityOptions: t,
29
+ onNavigationDataChange: d,
30
+ initialSidebarCollapsed: n
31
31
  }) => {
32
- const [p, f] = eA(a), [v, s] = eA(!1), [C, w] = se({
33
- value: l !== void 0 ? e : void 0,
34
- defaultValue: c ? [] : e,
32
+ const [p, C] = _(n), [w, m] = _(!1), [h, f] = _(i === !0), [k, x] = _(null), g = rA(!1), [Q, O] = ue({
33
+ value: d !== void 0 ? e : void 0,
34
+ defaultValue: i ? [] : e,
35
35
  finalValue: [],
36
- onChange: l
36
+ onChange: d
37
37
  });
38
38
  U(() => {
39
- }, [C, c]);
40
- const { securityManager: x } = ae({
41
- resourceName: r?.navigationResourceName ? r.navigationResourceName : "ArchbaseAdvancedSidebar",
42
- resourceDescription: r?.navigationResourceDescription ? r.navigationResourceDescription : "archbase:Navegação",
43
- enableSecurity: c
39
+ }, [Q, i]);
40
+ const { securityManager: S } = de({
41
+ resourceName: t?.navigationResourceName ? t.navigationResourceName : "ArchbaseAdvancedSidebar",
42
+ resourceDescription: t?.navigationResourceDescription ? t.navigationResourceDescription : "archbase:Navegação",
43
+ enableSecurity: i
44
44
  });
45
45
  return U(() => {
46
- c && (e.filter((b) => b.showInSidebar).forEach((b) => {
47
- x.registerAction(b.label, b.label), b?.links?.forEach((D) => x.registerAction(`${b.label} -> ${D.label}`, `${b.label} -> ${D.label}`));
48
- }), x.apply(() => {
49
- const b = e.map((D) => ({
50
- ...D,
51
- disabled: !x.hasPermission(D.label),
52
- links: D.links && D.links.map((F) => {
53
- const P = x.hasPermission(`${D.label} -> ${F.label}`);
46
+ g.current = !1;
47
+ }, [o?.id]), U(() => {
48
+ if (!i) {
49
+ f(!1);
50
+ return;
51
+ }
52
+ if (g.current)
53
+ return;
54
+ e.filter((R) => R.showInSidebar).forEach((R) => {
55
+ S.registerAction(R.label, R.label), R?.links?.forEach((M) => S.registerAction(`${R.label} -> ${M.label}`, `${R.label} -> ${M.label}`));
56
+ });
57
+ const H = () => {
58
+ g.current = !0;
59
+ const R = e.map((M) => ({
60
+ ...M,
61
+ disabled: !S.hasPermission(M.label),
62
+ links: M.links && M.links.map((W) => {
63
+ const q = S.hasPermission(`${M.label} -> ${W.label}`);
54
64
  return {
55
- ...F,
56
- disabled: !P
65
+ ...W,
66
+ disabled: !q
57
67
  };
58
68
  })
59
69
  }));
60
- w(b);
61
- }));
62
- }, [n?.id, c, e, x, w]), /* @__PURE__ */ A(
63
- wA.Provider,
70
+ O(R), f(!1), x(null);
71
+ }, oA = !S.isLoading() && !S.isError();
72
+ if (S.isError()) {
73
+ g.current = !0;
74
+ const R = S.getError() || "Erro ao carregar permissões de navegação";
75
+ x(R), f(!1), O(e);
76
+ return;
77
+ }
78
+ if (oA) {
79
+ H();
80
+ return;
81
+ }
82
+ f(!0), x(null);
83
+ let F = !1;
84
+ const $ = setInterval(() => {
85
+ if (!F && S.isError()) {
86
+ clearInterval($), g.current = !0;
87
+ const R = S.getError() || "Erro ao carregar permissões de navegação";
88
+ x(R), f(!1), O(e);
89
+ }
90
+ }, 100), eA = setTimeout(() => {
91
+ F || (clearInterval($), f((R) => R && (g.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), O(e), !1)));
92
+ }, 3e3);
93
+ return S.apply(() => {
94
+ F || (clearInterval($), clearTimeout(eA), H());
95
+ }), () => {
96
+ F = !0, clearInterval($), clearTimeout(eA);
97
+ };
98
+ }, [o?.id, i, e, S, O]), /* @__PURE__ */ A(
99
+ SA.Provider,
64
100
  {
65
101
  value: {
66
- navigationData: C,
67
- setNavigationData: w,
68
- user: n,
69
- owner: d,
70
- company: o,
71
- navigationRootLink: h,
102
+ navigationData: Q,
103
+ setNavigationData: O,
104
+ user: o,
105
+ owner: c,
106
+ company: r,
107
+ navigationRootLink: s,
72
108
  collapsed: p,
73
- setCollapsed: f,
74
- hidden: v,
75
- setHidden: s,
76
- onNavigationDataChange: l
109
+ setCollapsed: C,
110
+ hidden: w,
111
+ setHidden: m,
112
+ onNavigationDataChange: d,
113
+ isLoadingPermissions: h,
114
+ permissionsError: k
77
115
  },
78
- children: u
116
+ children: l
79
117
  }
80
118
  );
81
- }, un = ({ children: e }) => /* @__PURE__ */ A(LA, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), go = () => {
82
- const e = DA(), { colorScheme: n } = iA(), d = n === "dark", [o, h] = eA(L().language);
119
+ }, Co = ({ children: e }) => /* @__PURE__ */ A(DA, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), vr = () => {
120
+ const e = MA(), { colorScheme: o } = nA(), c = o === "dark", [r, s] = _(I().language);
83
121
  U(() => {
84
- const l = (a) => {
85
- h(a);
122
+ const d = (n) => {
123
+ s(n);
86
124
  };
87
- return L().on("languageChanged", l), () => {
88
- L().off("languageChanged", l);
125
+ return I().on("languageChanged", d), () => {
126
+ I().off("languageChanged", d);
89
127
  };
90
128
  }, []);
91
- const u = (l) => {
92
- if (!l)
93
- return /* @__PURE__ */ A(pA, { size: 24 });
94
- if (l === "en" || l === "en-US")
95
- return /* @__PURE__ */ A(jA, { size: 24 });
96
- if (l === "pt-BR")
97
- return /* @__PURE__ */ A(pA, { size: 24 });
98
- if (l.includes("es"))
129
+ const l = (d) => {
130
+ if (!d)
131
+ return /* @__PURE__ */ A(CA, { size: 24 });
132
+ if (d === "en" || d === "en-US")
133
+ return /* @__PURE__ */ A(_A, { size: 24 });
134
+ if (d === "pt-BR")
135
+ return /* @__PURE__ */ A(CA, { size: 24 });
136
+ if (d.includes("es"))
99
137
  switch (navigator.language || navigator.languages[0]) {
100
138
  case "es":
101
139
  case "es-ES":
102
- return /* @__PURE__ */ A(SA, { size: 24 });
140
+ return /* @__PURE__ */ A(IA, { size: 24 });
103
141
  case "es-AR":
104
- return /* @__PURE__ */ A(Je, { size: 24 });
142
+ return /* @__PURE__ */ A(er, { size: 24 });
105
143
  case "es-BO":
106
- return /* @__PURE__ */ A(je, { size: 24 });
144
+ return /* @__PURE__ */ A(Ar, { size: 24 });
107
145
  case "es-CL":
108
- return /* @__PURE__ */ A(Xe, { size: 24 });
146
+ return /* @__PURE__ */ A(_e, { size: 24 });
109
147
  case "es-CO":
110
- return /* @__PURE__ */ A(Ye, { size: 24 });
148
+ return /* @__PURE__ */ A(Ze, { size: 24 });
111
149
  case "es-CR":
112
- return /* @__PURE__ */ A(Ve, { size: 24 });
150
+ return /* @__PURE__ */ A(We, { size: 24 });
113
151
  case "es-CU":
114
- return /* @__PURE__ */ A(Ge, { size: 24 });
152
+ return /* @__PURE__ */ A(je, { size: 24 });
115
153
  case "es-DO":
116
- return /* @__PURE__ */ A(Ke, { size: 24 });
154
+ return /* @__PURE__ */ A(Je, { size: 24 });
117
155
  case "es-EC":
118
- return /* @__PURE__ */ A(He, { size: 24 });
156
+ return /* @__PURE__ */ A(Xe, { size: 24 });
119
157
  case "es-GT":
120
- return /* @__PURE__ */ A(Be, { size: 24 });
158
+ return /* @__PURE__ */ A(Ye, { size: 24 });
121
159
  case "es-HN":
122
- return /* @__PURE__ */ A(qe, { size: 24 });
160
+ return /* @__PURE__ */ A(Ke, { size: 24 });
123
161
  case "es-MX":
124
- return /* @__PURE__ */ A(Fe, { size: 24 });
162
+ return /* @__PURE__ */ A(Ge, { size: 24 });
125
163
  case "es-NI":
126
- return /* @__PURE__ */ A(Ue, { size: 24 });
164
+ return /* @__PURE__ */ A(He, { size: 24 });
127
165
  case "es-PA":
128
- return /* @__PURE__ */ A(Me, { size: 24 });
166
+ return /* @__PURE__ */ A(Ve, { size: 24 });
129
167
  case "es-PE":
130
- return /* @__PURE__ */ A($e, { size: 24 });
168
+ return /* @__PURE__ */ A(Be, { size: 24 });
131
169
  case "es-PY":
132
- return /* @__PURE__ */ A(ze, { size: 24 });
170
+ return /* @__PURE__ */ A(qe, { size: 24 });
133
171
  case "es-SV":
134
- return /* @__PURE__ */ A(Pe, { size: 24 });
172
+ return /* @__PURE__ */ A(Fe, { size: 24 });
135
173
  case "es-UY":
136
- return /* @__PURE__ */ A(Ne, { size: 24 });
174
+ return /* @__PURE__ */ A(Ue, { size: 24 });
137
175
  case "es-VE":
138
- return /* @__PURE__ */ A(Oe, { size: 24 });
176
+ return /* @__PURE__ */ A($e, { size: 24 });
139
177
  default:
140
- return /* @__PURE__ */ A(SA, { size: 24 });
178
+ return /* @__PURE__ */ A(IA, { size: 24 });
141
179
  }
142
- return /* @__PURE__ */ A(pA, { size: 24 });
143
- }, c = () => {
180
+ return /* @__PURE__ */ A(CA, { size: 24 });
181
+ }, i = () => {
144
182
  if (e.languages)
145
- return e.languages.filter((l) => l).map((l) => /* @__PURE__ */ A(
146
- H.Item,
183
+ return e.languages.filter((d) => d).map((d) => /* @__PURE__ */ A(
184
+ j.Item,
147
185
  {
148
- onClick: () => r(l.lang),
149
- leftSection: u(l.lang),
150
- children: l.name
186
+ onClick: () => t(d.lang),
187
+ leftSection: l(d.lang),
188
+ children: d.name
151
189
  },
152
- l.name
190
+ d.name
153
191
  ));
154
- }, r = (l) => {
155
- L().changeLanguage(l);
192
+ }, t = (d) => {
193
+ I().changeLanguage(d);
156
194
  };
157
- return /* @__PURE__ */ I(H, { shadow: "md", width: 200, position: "bottom-end", children: [
158
- /* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ A(mA, { variant: "transparent", color: d ? "white" : "blue", title: L().t("toggleLanguage"), children: u(o) }) }),
159
- /* @__PURE__ */ A(H.Dropdown, { children: c() })
195
+ return /* @__PURE__ */ P(j, { shadow: "md", width: 200, position: "bottom-end", children: [
196
+ /* @__PURE__ */ A(j.Target, { children: /* @__PURE__ */ A(EA, { variant: "transparent", color: c ? "white" : "blue", title: I().t("toggleLanguage"), children: l(r) }) }),
197
+ /* @__PURE__ */ A(j.Dropdown, { children: i() })
160
198
  ] });
161
- }, fo = () => {
162
- const e = DA(), { colorScheme: n } = iA(), { t: d, i18n: o } = IA(), h = (r) => r === "en" ? /* @__PURE__ */ A(jA, { size: 24 }) : r === "pt-BR" ? /* @__PURE__ */ A(pA, { size: 24 }) : r === "es" ? /* @__PURE__ */ A(SA, { size: 24 }) : /* @__PURE__ */ A(pA, { size: 24 }), u = () => {
199
+ }, kr = () => {
200
+ const e = MA(), { colorScheme: o } = nA(), { t: c, i18n: r } = NA(), s = (t) => t === "en" ? /* @__PURE__ */ A(_A, { size: 24 }) : t === "pt-BR" ? /* @__PURE__ */ A(CA, { size: 24 }) : t === "es" ? /* @__PURE__ */ A(IA, { size: 24 }) : /* @__PURE__ */ A(CA, { size: 24 }), l = () => {
163
201
  if (e.languages)
164
- return e.languages.filter((r) => r).map((r) => /* @__PURE__ */ A(
165
- H.Item,
202
+ return e.languages.filter((t) => t).map((t) => /* @__PURE__ */ A(
203
+ j.Item,
166
204
  {
167
- onClick: () => c(r.lang),
168
- leftSection: h(r.lang),
169
- children: r.name
205
+ onClick: () => i(t.lang),
206
+ leftSection: s(t.lang),
207
+ children: t.name
170
208
  },
171
- r.name
209
+ t.name
172
210
  ));
173
- }, c = (r) => {
174
- o.changeLanguage(r);
211
+ }, i = (t) => {
212
+ r.changeLanguage(t);
175
213
  };
176
- return /* @__PURE__ */ I(H, { children: [
177
- /* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ I(
178
- BA,
214
+ return /* @__PURE__ */ P(j, { children: [
215
+ /* @__PURE__ */ A(j.Target, { children: /* @__PURE__ */ P(
216
+ OA,
179
217
  {
180
218
  w: "100%",
181
219
  justify: "flex-start",
@@ -184,175 +222,175 @@ const wA = j.createContext({}), po = ({
184
222
  variant: "transparent",
185
223
  fw: 400,
186
224
  gap: 4,
187
- title: L().t("archbase:toggleLanguage"),
225
+ title: I().t("archbase:toggleLanguage"),
188
226
  children: [
189
- h(o.language),
190
- `${e.languages.find((r) => r.lang === o.language)?.name ?? "Português"}`
227
+ s(r.language),
228
+ `${e.languages.find((t) => t.lang === r.language)?.name ?? "Português"}`
191
229
  ]
192
230
  }
193
231
  ) }),
194
- /* @__PURE__ */ A(H.Dropdown, { children: u() })
232
+ /* @__PURE__ */ A(j.Dropdown, { children: l() })
195
233
  ] });
196
- }, bo = ({
234
+ }, wr = ({
197
235
  toggleColorScheme: e,
198
- sunColor: n = "white",
199
- moonColor: d = "blue"
236
+ sunColor: o = "white",
237
+ moonColor: c = "blue"
200
238
  }) => {
201
- const { t: o } = IA(), { colorScheme: h, toggleColorScheme: u } = iA(), c = () => {
202
- e ? e() : u();
203
- }, r = h === "dark";
239
+ const { t: r } = NA(), { colorScheme: s, toggleColorScheme: l } = nA(), i = () => {
240
+ e ? e() : l();
241
+ }, t = s === "dark";
204
242
  return /* @__PURE__ */ A(
205
- mA,
243
+ EA,
206
244
  {
207
245
  variant: "transparent",
208
- color: r ? n : d,
209
- onClick: () => c(),
210
- title: L().t("archbase:toggleColorScheme"),
211
- children: r ? /* @__PURE__ */ A(VA, { size: "1.5rem" }) : /* @__PURE__ */ A(YA, { size: "1.5rem" })
246
+ color: t ? o : c,
247
+ onClick: () => i(),
248
+ title: I().t("archbase:toggleColorScheme"),
249
+ children: t ? /* @__PURE__ */ A(jA, { size: "1.5rem" }) : /* @__PURE__ */ A(WA, { size: "1.5rem" })
212
250
  }
213
251
  );
214
- }, Co = (e) => /* @__PURE__ */ A(BA, { gap: "sm", children: e.children });
215
- function vo({ category: e, label: n, color: d, description: o, image: h, onClick: u }) {
252
+ }, xr = (e) => /* @__PURE__ */ A(OA, { gap: "sm", children: e.children });
253
+ function yr({ category: e, label: o, color: c, description: r, image: s, onClick: l }) {
216
254
  return /* @__PURE__ */ A(
217
- hA.Action,
255
+ fA.Action,
218
256
  {
219
- onClick: u,
220
- label: `${L().t(n || "")}`,
221
- description: o ? L().t(o) : void 0,
222
- leftSection: h ? /* @__PURE__ */ A(he, { children: /* @__PURE__ */ A(pe, { src: h, alt: L().t(n || ""), width: 24, height: 24 }) }) : void 0,
223
- rightSection: e ? /* @__PURE__ */ A(ue, { color: d, size: "sm", children: L().t(e) }) : void 0
257
+ onClick: l,
258
+ label: `${I().t(o || "")}`,
259
+ description: r ? I().t(r) : void 0,
260
+ leftSection: s ? /* @__PURE__ */ A(XA, { children: /* @__PURE__ */ A(me, { src: s, alt: I().t(o || ""), width: 24, height: 24 }) }) : void 0,
261
+ rightSection: e ? /* @__PURE__ */ A(be, { color: c, size: "sm", children: I().t(e) }) : void 0
224
262
  },
225
- n
263
+ o
226
264
  );
227
265
  }
228
- const ko = ({ navigationData: e, color: n }) => {
229
- const [d, o] = eA(""), h = QA(), { t: u } = IA(), c = RA(() => {
230
- const l = new Array();
231
- return e.forEach((a) => {
232
- a.links ? a.links.forEach((p) => {
233
- !p.disabled && p.showInSidebar && l.push({
266
+ const Er = ({ navigationData: e, color: o }) => {
267
+ const [c, r] = _(""), s = $A(), { t: l } = NA(), i = dA(() => {
268
+ const d = new Array();
269
+ return e.forEach((n) => {
270
+ n.links ? n.links.forEach((p) => {
271
+ !p.disabled && p.showInSidebar && d.push({
234
272
  id: p.label,
235
273
  category: p.category ? p.category.toUpperCase() : "",
236
274
  color: p.color,
237
275
  label: p.label,
238
276
  link: p.link,
239
277
  onClick: () => {
240
- p.link && h(p.link);
278
+ p.link && s(p.link);
241
279
  }
242
280
  });
243
- }) : !a.disabled && a.showInSidebar && l.push({
244
- id: a.label,
281
+ }) : !n.disabled && n.showInSidebar && d.push({
282
+ id: n.label,
245
283
  onClick: () => {
246
- a.link && h(a.link);
284
+ n.link && s(n.link);
247
285
  },
248
- category: a.category ? a.category.toUpperCase() : "",
249
- color: a.color,
250
- label: a.label,
251
- link: a.link
286
+ category: n.category ? n.category.toUpperCase() : "",
287
+ color: n.color,
288
+ label: n.label,
289
+ link: n.link
252
290
  });
253
- }), l;
254
- }, [e, h]), r = c.filter((l) => {
255
- const a = `${u(l.label || "")}`;
256
- return a && a.toLowerCase().includes(d.toLowerCase().trim());
257
- }).map((l) => /* @__PURE__ */ A(vo, { ...l }, l.id));
258
- return /* @__PURE__ */ A(sA, { children: c && c.length > 0 ? /* @__PURE__ */ I(sA, { children: [
259
- /* @__PURE__ */ A(CA, { withinPortal: !0, withArrow: !0, label: `${u("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(de, { color: n, leftSection: /* @__PURE__ */ A(ve, { size: "24px" }), onClick: () => We.open() }) }),
260
- /* @__PURE__ */ I(
261
- hA.Root,
291
+ }), d;
292
+ }, [e, s]), t = i.filter((d) => {
293
+ const n = `${l(d.label || "")}`;
294
+ return n && n.toLowerCase().includes(c.toLowerCase().trim());
295
+ }).map((d) => /* @__PURE__ */ A(yr, { ...d }, d.id));
296
+ return /* @__PURE__ */ A(iA, { children: i && i.length > 0 ? /* @__PURE__ */ P(iA, { children: [
297
+ /* @__PURE__ */ A(wA, { withinPortal: !0, withArrow: !0, label: `${l("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(fe, { color: o, leftSection: /* @__PURE__ */ A(xe, { size: "24px" }), onClick: () => rr.open() }) }),
298
+ /* @__PURE__ */ P(
299
+ fA.Root,
262
300
  {
263
301
  shortcut: ["mod + M", "/"],
264
- onQueryChange: (l) => o(l),
265
- query: d,
302
+ onQueryChange: (d) => r(d),
303
+ query: c,
266
304
  children: [
267
- /* @__PURE__ */ A(hA.Search, { placeholder: `${u("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ A(ke, { size: "1.2rem" }) }),
268
- /* @__PURE__ */ A(hA.ActionsList, { children: r.length > 0 ? r : /* @__PURE__ */ A(hA.Empty, { children: L().t("archbase:Nenhum resultado...") }) })
305
+ /* @__PURE__ */ A(fA.Search, { placeholder: `${l("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ A(ye, { size: "1.2rem" }) }),
306
+ /* @__PURE__ */ A(fA.ActionsList, { children: t.length > 0 ? t : /* @__PURE__ */ A(fA.Empty, { children: I().t("archbase:Nenhum resultado...") }) })
269
307
  ]
270
308
  }
271
309
  )
272
310
  ] }) : null });
273
- }, mo = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAsLCwsMCw0ODg0SExETEhoYFhYYGiccHhweHCc8JSslJSslPDVAN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H+P8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwBhD//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AYQ//2Q==", vo = ({
274
312
  userMenuItems: e,
275
- showUserMenuToggleColorScheme: n = !0,
276
- showUserMenuOptionsLabel: d = !0,
277
- userMenuToggleColorSchemeIconSize: o = 14,
278
- showMenuItemsAfterToggleColorScheme: h = !0,
279
- userMenuItemsAfterToggleColorScheme: u,
280
- showMenuItemsBeforeToggleColorScheme: c = !0,
281
- userMenuItemsBeforeToggleColorScheme: r,
282
- hideAutoHeaderActionsOnUserMenu: l = !0,
283
- showHeaderActions: a = !0,
313
+ showUserMenuToggleColorScheme: o = !0,
314
+ showUserMenuOptionsLabel: c = !0,
315
+ userMenuToggleColorSchemeIconSize: r = 14,
316
+ showMenuItemsAfterToggleColorScheme: s = !0,
317
+ userMenuItemsAfterToggleColorScheme: l,
318
+ showMenuItemsBeforeToggleColorScheme: i = !0,
319
+ userMenuItemsBeforeToggleColorScheme: t,
320
+ hideAutoHeaderActionsOnUserMenu: d = !0,
321
+ showHeaderActions: n = !0,
284
322
  showHeaderToggleColorScheme: p = !0,
285
- hideAutoHeaderActionsOnUserMenuBreakPoint: f,
286
- withDividerAfterUserMenuToggleColorScheme: v = !0,
287
- user: s,
288
- navigationData: C = [],
289
- logo: w,
290
- headerActions: x,
291
- styleLogo: R,
292
- showLanguageSelector: b = !1,
293
- sideBarHiddenBreakPoint: D,
294
- headerLeftContent: F,
295
- toggleColorScheme: P,
296
- logoLeftSection: K,
297
- logoRightSection: G,
323
+ hideAutoHeaderActionsOnUserMenuBreakPoint: C,
324
+ withDividerAfterUserMenuToggleColorScheme: w = !0,
325
+ user: m,
326
+ navigationData: h = [],
327
+ logo: f,
328
+ headerActions: k,
329
+ styleLogo: x,
330
+ showLanguageSelector: g = !1,
331
+ sideBarHiddenBreakPoint: Q,
332
+ headerLeftContent: O,
333
+ toggleColorScheme: S,
334
+ logoLeftSection: V,
335
+ logoRightSection: H,
298
336
  showBurger: oA = !0,
299
- showCommands: V = !0,
300
- sunColor: J,
301
- moonColor: Y,
302
- styles: nA
337
+ showCommands: J = !0,
338
+ sunColor: F,
339
+ moonColor: $,
340
+ styles: eA
303
341
  }) => {
304
- const W = HA(), { colorScheme: Z, toggleColorScheme: _ } = iA(), q = gA(wA), $ = zA(
305
- `(max-width: ${D ? X(D) : W.breakpoints.md})`
306
- ), N = zA(
307
- `(max-width: ${f ? X(f) : W.breakpoints.md})`
342
+ const R = vA(), { colorScheme: M, toggleColorScheme: W } = nA(), q = cA(SA), G = VA(
343
+ `(max-width: ${Q ? Z(Q) : R.breakpoints.md})`
344
+ ), N = VA(
345
+ `(max-width: ${C ? Z(C) : R.breakpoints.md})`
308
346
  );
309
- let g = !1, i = !1;
310
- return l && (a = !N, p = !N, n = N, d = N, c = N, v = N, b && (i = !N, g = N)), /* @__PURE__ */ I(sA, { children: [
311
- /* @__PURE__ */ I(LA, { style: { width: 300, height: 50 }, align: "center", children: [
312
- K,
347
+ let b = !1, u = !1;
348
+ return d && (n = !N, p = !N, o = N, c = N, i = N, w = N, g && (u = !N, b = N)), /* @__PURE__ */ P(iA, { children: [
349
+ /* @__PURE__ */ P(DA, { style: { width: 300, height: 50 }, align: "center", children: [
350
+ V,
313
351
  /* @__PURE__ */ A(
314
352
  "img",
315
353
  {
316
354
  style: {
317
355
  height: 50,
318
- ...R
356
+ ...x
319
357
  },
320
358
  alt: "logo",
321
- src: w
359
+ src: f
322
360
  }
323
361
  ),
324
- G
362
+ H
325
363
  ] }),
326
364
  oA && /* @__PURE__ */ A(
327
- ge,
365
+ Ce,
328
366
  {
329
367
  opened: q.hidden ? q.hidden : !1,
330
368
  onClick: () => q.setHidden(!q.hidden),
331
369
  size: "sm",
332
- color: W.colors.gray[7],
370
+ color: R.colors.gray[7],
333
371
  mx: { base: "xs", xs: "lg", sm: "xl" },
334
- display: $ ? "" : "none"
372
+ display: G ? "" : "none"
335
373
  }
336
374
  ),
337
- /* @__PURE__ */ A("div", { children: V && /* @__PURE__ */ A(ko, { navigationData: C }) }),
338
- /* @__PURE__ */ A(fe, { style: { flex: 1 }, children: F }),
339
- /* @__PURE__ */ I(Co, { children: [
340
- a && x,
341
- p && /* @__PURE__ */ A(bo, { toggleColorScheme: P, sunColor: J, moonColor: Y }),
342
- i && /* @__PURE__ */ A(go, {}),
343
- /* @__PURE__ */ I(H, { shadow: "md", width: 200, position: "bottom-end", styles: nA?.menu, children: [
344
- /* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ I("div", { children: [
375
+ /* @__PURE__ */ A("div", { children: J && /* @__PURE__ */ A(Er, { navigationData: h }) }),
376
+ /* @__PURE__ */ A(ve, { style: { flex: 1 }, children: O }),
377
+ /* @__PURE__ */ P(xr, { children: [
378
+ n && k,
379
+ p && /* @__PURE__ */ A(wr, { toggleColorScheme: S, sunColor: F, moonColor: $ }),
380
+ u && /* @__PURE__ */ A(vr, {}),
381
+ /* @__PURE__ */ P(j, { shadow: "md", width: 200, position: "bottom-end", styles: eA?.menu, children: [
382
+ /* @__PURE__ */ A(j.Target, { children: /* @__PURE__ */ P("div", { children: [
345
383
  /* @__PURE__ */ A(
346
- be,
384
+ ke,
347
385
  {
348
386
  style: { cursor: "pointer" },
349
387
  radius: "xl",
350
388
  ml: 8,
351
- src: s ? s.photo : mo,
352
- alt: s ? s.displayName : ""
389
+ src: m ? m.photo : Sr,
390
+ alt: m ? m.displayName : ""
353
391
  }
354
392
  ),
355
- s && s.isAdmin ? /* @__PURE__ */ A(
393
+ m && m.isAdmin ? /* @__PURE__ */ A(
356
394
  "div",
357
395
  {
358
396
  style: {
@@ -369,158 +407,158 @@ const ko = ({ navigationData: e, color: n }) => {
369
407
  borderRadius: 50,
370
408
  backgroundColor: "green"
371
409
  },
372
- children: /* @__PURE__ */ A(KA, { size: "xs", c: "white", children: "A" })
410
+ children: /* @__PURE__ */ A(QA, { size: "xs", c: "white", children: "A" })
373
411
  }
374
412
  ) : null
375
413
  ] }) }),
376
- /* @__PURE__ */ I(H.Dropdown, { children: [
414
+ /* @__PURE__ */ P(j.Dropdown, { children: [
377
415
  e,
378
- d && /* @__PURE__ */ A(H.Label, { children: `${L().t("archbase:Opções")}` }),
379
- c && r,
380
- n && /* @__PURE__ */ A(
381
- H.Item,
416
+ c && /* @__PURE__ */ A(j.Label, { children: `${I().t("archbase:Opções")}` }),
417
+ i && t,
418
+ o && /* @__PURE__ */ A(
419
+ j.Item,
382
420
  {
383
- leftSection: Z === "dark" ? /* @__PURE__ */ A(VA, { size: o }) : /* @__PURE__ */ A(YA, { size: o }),
384
- onClick: P || _,
385
- children: `${L().t("archbase:toggleColorScheme")}`
421
+ leftSection: M === "dark" ? /* @__PURE__ */ A(jA, { size: r }) : /* @__PURE__ */ A(WA, { size: r }),
422
+ onClick: S || W,
423
+ children: `${I().t("archbase:toggleColorScheme")}`
386
424
  }
387
425
  ),
388
- g && /* @__PURE__ */ A(fo, {}),
389
- v && /* @__PURE__ */ A(H.Divider, {}),
390
- h && u
426
+ b && /* @__PURE__ */ A(kr, {}),
427
+ w && /* @__PURE__ */ A(j.Divider, {}),
428
+ s && l
391
429
  ] })
392
430
  ] })
393
431
  ] })
394
432
  ] });
395
433
  };
396
- function UA(e, n, d, o, h, u, c, r, l, a) {
397
- const p = u ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, f = u ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, v = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", s = "0.5";
398
- if (o.links) {
399
- if (!(o.disabled && o.hideDisabledItem))
400
- return /* @__PURE__ */ A(CA, { disabled: !n, label: uA.t(o.label), children: /* @__PURE__ */ A(
401
- to,
434
+ function KA(e, o, c, r, s, l, i, t, d, n) {
435
+ const p = l ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, C = l ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, w = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", m = "0.5";
436
+ if (r.links) {
437
+ if (!(r.disabled && r.hideDisabledItem))
438
+ return /* @__PURE__ */ A(wA, { disabled: !o, label: gA.t(r.label), children: /* @__PURE__ */ A(
439
+ dr,
402
440
  {
403
441
  rootStyles: {
404
442
  fontSize: "16px",
405
- [`.${E.button}`]: {
443
+ [`.${L.button}`]: {
406
444
  "&:hover": {
407
- [`.${E.icon}`]: {
445
+ [`.${L.icon}`]: {
408
446
  color: "white"
409
447
  },
410
- [`.${E.label}`]: {
448
+ [`.${L.label}`]: {
411
449
  color: "white"
412
450
  }
413
451
  }
414
452
  },
415
- [`.${E.subMenuContent}`]: {
416
- width: n && a
453
+ [`.${L.subMenuContent}`]: {
454
+ width: o && n
417
455
  },
418
- [`.${E.disabled}`]: {
419
- opacity: s,
420
- [`.${E.icon}`]: {
421
- color: v + " !important"
456
+ [`.${L.disabled}`]: {
457
+ opacity: m,
458
+ [`.${L.icon}`]: {
459
+ color: w + " !important"
422
460
  },
423
- [`.${E.label}`]: {
424
- color: v + " !important"
461
+ [`.${L.label}`]: {
462
+ color: w + " !important"
425
463
  }
426
464
  }
427
465
  },
428
- id: o.label,
429
- icon: o.icon,
430
- defaultOpen: !o.disabled,
431
- label: n ? "" : uA.t(o.label),
432
- disabled: o.disabled,
433
- children: o.links && o.links.filter((C) => C.showInSidebar === !0 && (!C.disabled || !C.hideDisabledItem)).map((C, w) => /* @__PURE__ */ A(
434
- MA,
466
+ id: r.label,
467
+ icon: r.icon,
468
+ defaultOpen: !r.disabled,
469
+ label: o ? "" : gA.t(r.label),
470
+ disabled: r.disabled,
471
+ children: r.links && r.links.filter((h) => h.showInSidebar === !0 && (!h.disabled || !h.hideDisabledItem)).map((h, f) => /* @__PURE__ */ A(
472
+ GA,
435
473
  {
436
- onClick: () => d(C),
474
+ onClick: () => c(h),
437
475
  rootStyles: {
438
- [`.${E.icon}`]: {
476
+ [`.${L.icon}`]: {
439
477
  background: p,
440
- color: r && C.link === c ? "white" : f
478
+ color: t && h.link === i ? "white" : C
441
479
  },
442
- [`.${E.label}`]: {
443
- color: r && C.link === c ? "white" : l
480
+ [`.${L.label}`]: {
481
+ color: t && h.link === i ? "white" : d
444
482
  },
445
- [`.${E.button}`]: {
483
+ [`.${L.button}`]: {
446
484
  paddingLeft: "40px !important",
447
485
  "&:hover": {
448
- [`.${E.icon}`]: {
486
+ [`.${L.icon}`]: {
449
487
  color: "white"
450
488
  },
451
- [`.${E.label}`]: {
489
+ [`.${L.label}`]: {
452
490
  color: "white"
453
491
  }
454
492
  }
455
493
  },
456
- [`.${E.disabled}`]: {
457
- opacity: s,
458
- [`.${E.icon}`]: {
494
+ [`.${L.disabled}`]: {
495
+ opacity: m,
496
+ [`.${L.icon}`]: {
459
497
  background: (p || "") + " !important",
460
- color: v + " !important"
498
+ color: w + " !important"
461
499
  },
462
- [`.${E.label}`]: {
463
- color: v + " !important"
500
+ [`.${L.label}`]: {
501
+ color: w + " !important"
464
502
  }
465
503
  }
466
504
  },
467
- id: C.label,
468
- icon: C.icon,
469
- disabled: typeof C.disabled == "function" ? C.disabled() : C.disabled,
470
- active: r && C.link === c,
471
- children: uA.t(C.label)
505
+ id: h.label,
506
+ icon: h.icon,
507
+ disabled: typeof h.disabled == "function" ? h.disabled() : h.disabled,
508
+ active: t && h.link === i,
509
+ children: gA.t(h.label)
472
510
  },
473
- w
511
+ f
474
512
  ))
475
513
  },
476
- h
514
+ s
477
515
  ) });
478
- } else if (o.showInSidebar && (!o.disabled || !o.hideDisabledItem))
479
- return /* @__PURE__ */ A(CA, { disabled: !n, label: uA.t(o.label), children: /* @__PURE__ */ A(
480
- MA,
516
+ } else if (r.showInSidebar && (!r.disabled || !r.hideDisabledItem))
517
+ return /* @__PURE__ */ A(wA, { disabled: !o, label: gA.t(r.label), children: /* @__PURE__ */ A(
518
+ GA,
481
519
  {
482
520
  rootStyles: {
483
521
  fontSize: "16px",
484
- [`.${E.button}`]: {
522
+ [`.${L.button}`]: {
485
523
  "&:hover": {
486
- [`.${E.icon}`]: {
524
+ [`.${L.icon}`]: {
487
525
  color: "white"
488
526
  },
489
- [`.${E.label}`]: {
527
+ [`.${L.label}`]: {
490
528
  color: "white"
491
529
  }
492
530
  }
493
531
  },
494
- [`.${E.icon}`]: {
532
+ [`.${L.icon}`]: {
495
533
  background: p,
496
- color: r && o.link === c ? "white" : f
534
+ color: t && r.link === i ? "white" : C
497
535
  },
498
- [`.${E.label}`]: {
499
- color: r && o.link === c ? "white" : l
536
+ [`.${L.label}`]: {
537
+ color: t && r.link === i ? "white" : d
500
538
  },
501
- [`.${E.disabled}`]: {
502
- opacity: s,
503
- [`.${E.icon}`]: {
539
+ [`.${L.disabled}`]: {
540
+ opacity: m,
541
+ [`.${L.icon}`]: {
504
542
  background: (p || "") + " !important",
505
- color: v + " !important"
543
+ color: w + " !important"
506
544
  },
507
- [`.${E.label}`]: {
508
- color: v + " !important"
545
+ [`.${L.label}`]: {
546
+ color: w + " !important"
509
547
  }
510
548
  }
511
549
  },
512
- id: o.label,
513
- disabled: typeof o.disabled == "function" ? o.disabled() : o.disabled,
514
- onClick: () => d(o),
515
- icon: o.icon,
516
- active: r && o.link === c,
517
- children: n ? "" : uA.t(o.label)
550
+ id: r.label,
551
+ disabled: typeof r.disabled == "function" ? r.disabled() : r.disabled,
552
+ onClick: () => c(r),
553
+ icon: r.icon,
554
+ active: t && r.link === i,
555
+ children: o ? "" : gA.t(r.label)
518
556
  },
519
- h
557
+ s
520
558
  ) });
521
559
  return null;
522
560
  }
523
- const wo = (e) => ({
561
+ const Rr = (e) => ({
524
562
  light: {
525
563
  sidebar: {
526
564
  backgroundColor: "#ffffff",
@@ -555,138 +593,140 @@ const wo = (e) => ({
555
593
  }
556
594
  }
557
595
  }
558
- }), yo = (e, n, d, o, h, u, c, r, l, a, p) => {
559
- const f = wo(), v = u ? {} : { padding: d ? `0 ${(h - o) / 2}px` : "0 20px" }, s = u ? {} : { display: "none" }, C = c ? e === "dark" ? n.colors[n.primaryColor][8] : n.colors[n.primaryColor][0] : void 0;
596
+ }), Lr = (e, o, c, r, s, l, i, t, d, n, p) => {
597
+ const C = Rr(), w = l ? {} : { padding: c ? `0 ${(s - r) / 2}px` : "0 20px" }, m = l ? {} : { display: "none" }, h = i ? e === "dark" ? o.colors[o.primaryColor][8] : o.colors[o.primaryColor][0] : void 0;
560
598
  return {
561
599
  root: {
562
600
  fontSize: "14px",
563
601
  fontWeight: 400,
564
- backgroundColor: l,
565
- color: n.white
602
+ backgroundColor: d,
603
+ color: o.white
566
604
  },
567
605
  icon: {
568
- background: C,
606
+ background: h,
569
607
  color: p,
570
- [`&.${E.disabled}`]: {
571
- color: f[e].menu.disabled.color
608
+ [`&.${L.disabled}`]: {
609
+ color: C[e].menu.disabled.color
572
610
  }
573
611
  },
574
612
  SubMenuExpandIcon: {
575
613
  color: "#b6b7b9",
576
- ...s
614
+ ...m
577
615
  },
578
616
  subMenuContent: () => ({
579
- backgroundColor: e === "dark" ? n.colors.dark[8] : n.colors[n.primaryColor][0]
617
+ backgroundColor: e === "dark" ? o.colors.dark[8] : o.colors[o.primaryColor][0]
580
618
  }),
581
619
  button: {
582
- [`&.${E.disabled}`]: {
583
- color: f[e].menu.disabled.color
620
+ [`&.${L.disabled}`]: {
621
+ color: C[e].menu.disabled.color
584
622
  },
585
623
  "&:hover": {
586
- backgroundColor: n.colors[n.primaryColor][6],
587
- color: n.white
624
+ backgroundColor: o.colors[o.primaryColor][6],
625
+ color: o.white
588
626
  },
589
- [`&.${E.active}`]: {
590
- backgroundColor: n.colors[n.primaryColor][6]
627
+ [`&.${L.active}`]: {
628
+ backgroundColor: o.colors[o.primaryColor][6]
591
629
  },
592
- height: r,
593
- ...v
630
+ height: t,
631
+ ...w
594
632
  },
595
- label: ({ open: w }) => ({
596
- fontWeight: w ? 600 : void 0,
597
- color: a,
633
+ label: ({ open: f }) => ({
634
+ fontWeight: f ? 600 : void 0,
635
+ color: n,
598
636
  "&:hover": {
599
- color: n.white
637
+ color: o.white
600
638
  }
601
639
  })
602
640
  };
603
641
  };
604
- function xo(e, n, d, o, h, u, c, r, l, a, p) {
605
- return /* @__PURE__ */ I(
606
- ZA,
642
+ function Tr(e, o, c, r, s, l, i, t, d, n, p) {
643
+ return /* @__PURE__ */ P(
644
+ re,
607
645
  {
608
646
  ref: e,
609
647
  rootStyles: {
610
- [`.${Ae.container}`]: {
648
+ [`.${ne.container}`]: {
611
649
  position: "absolute",
612
650
  background: p,
613
651
  overflowX: "hidden",
614
652
  overflowY: "hidden",
615
653
  left: 0,
616
654
  right: 0,
617
- height: c ? "calc(100vh - 28px)" : `${X(r)}px`
655
+ height: i ? "calc(100vh - 28px)" : `${Z(t)}px`
618
656
  }
619
657
  },
620
- collapsed: n,
621
- width: `${X(d)}px`,
622
- collapsedWidth: `${X(o)}px`,
658
+ collapsed: o,
659
+ width: `${Z(c)}px`,
660
+ collapsedWidth: `${Z(r)}px`,
623
661
  children: [
624
- l && /* @__PURE__ */ A(sA, { children: l }),
625
- /* @__PURE__ */ A(TA, { style: { overflowY: "auto", overflowX: "hidden", height: r }, children: /* @__PURE__ */ A(_A, { rootStyles: { background: p }, menuItemStyles: h, closeOnClick: !0, children: u && /* @__PURE__ */ A(sA, { children: u }) }) }),
626
- a && /* @__PURE__ */ A(sA, { children: a })
662
+ d && /* @__PURE__ */ A(iA, { children: d }),
663
+ /* @__PURE__ */ A(zA, { style: { overflowY: "auto", overflowX: "hidden", height: t }, children: /* @__PURE__ */ A(oe, { rootStyles: { background: p }, menuItemStyles: s, closeOnClick: !0, children: l && /* @__PURE__ */ A(iA, { children: l }) }) }),
664
+ n && /* @__PURE__ */ A(iA, { children: n })
627
665
  ]
628
666
  }
629
667
  );
630
668
  }
631
- function FA({
669
+ function YA({
632
670
  navigationData: e,
633
- sidebarGroupWidth: n = "80px",
634
- sidebarWidth: d = "360px",
635
- sidebarHeight: o = "calc(100vh - var(--app-shell-header-offset, 0px))",
636
- sidebarCollapsedWidth: h = "60px",
637
- selectedGroupColor: u,
638
- groupColor: c,
639
- backgroundGroupColor: r,
640
- isHidden: l = !1,
641
- sideBarFooterHeight: a,
671
+ sidebarGroupWidth: o = "80px",
672
+ sidebarWidth: c = "360px",
673
+ sidebarHeight: r = "calc(100vh - var(--app-shell-header-offset, 0px))",
674
+ sidebarCollapsedWidth: s = "60px",
675
+ selectedGroupColor: l,
676
+ groupColor: i,
677
+ backgroundGroupColor: t,
678
+ isHidden: d = !1,
679
+ sideBarFooterHeight: n,
642
680
  sideBarFooterContent: p,
643
- groupLabelDarkColor: f,
644
- groupLabelLightColor: v,
645
- collapsed: s,
646
- onMenuItemClick: C,
647
- onClickActionIcon: w,
648
- withBorder: x = !1,
649
- showGroupLabels: R = !0,
650
- theme: b,
651
- sidebarRef: D,
652
- defaultGroupIcon: F,
653
- selectedGroupName: P,
654
- sideBarHeaderContent: K,
655
- iconsWithBackground: G = !1,
681
+ groupLabelDarkColor: C,
682
+ groupLabelLightColor: w,
683
+ collapsed: m,
684
+ onMenuItemClick: h,
685
+ onClickActionIcon: f,
686
+ withBorder: k = !1,
687
+ showGroupLabels: x = !0,
688
+ theme: g,
689
+ sidebarRef: Q,
690
+ defaultGroupIcon: O,
691
+ selectedGroupName: S,
692
+ sideBarHeaderContent: V,
693
+ iconsWithBackground: H = !1,
656
694
  menuItemHeight: oA = 40,
657
- highlightActiveMenuItem: V = !0,
658
- backgroundDarkColor: J,
659
- backgroundLightColor: Y,
660
- textDarkColor: nA,
661
- textLightColor: W,
662
- iconDarkColor: Z,
663
- iconLightColor: _,
695
+ highlightActiveMenuItem: J = !0,
696
+ backgroundDarkColor: F,
697
+ backgroundLightColor: $,
698
+ textDarkColor: eA,
699
+ textLightColor: R,
700
+ iconDarkColor: M,
701
+ iconLightColor: W,
664
702
  collapsedSubmenuWidth: q
703
+ // Props de skeleton desativadas temporariamente - funcionalidade não está funcionando corretamente
704
+ // isLoading, loadingError, loadingComponent, errorComponent, skeletonItemCount, skeletonGroupCount
665
705
  }) {
666
- const [$, N] = eA(""), g = DA(), i = OA(), { colorScheme: t } = iA(), k = t === "dark" ? J ?? b.colors.dark[7] : Y ?? b.white, T = u || (t === "dark" ? b.colors[b.primaryColor][8] : b.colors[b.primaryColor][0]), m = t === "dark" ? nA ?? "var(--mantine-color-text)" : W ?? "var(--mantine-color-text)", z = t === "dark" ? Z ?? b.colors[b.primaryColor][0] : _ ?? b.colors[b.primaryColor][7], Q = RA(() => {
667
- const B = /* @__PURE__ */ new Set();
668
- return e.forEach((S) => {
669
- if (S.showInSidebar && (!S.disabled || !S.hideDisabledItem)) {
670
- let tA = !1;
671
- S.group || (S.group = {
672
- icon: F || /* @__PURE__ */ A(me, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
706
+ const [G, N] = _(""), b = MA(), u = UA(), { colorScheme: a } = nA(), y = a === "dark" ? F ?? g.colors.dark[7] : $ ?? g.white, D = l || (a === "dark" ? g.colors[g.primaryColor][8] : g.colors[g.primaryColor][0]), E = a === "dark" ? eA ?? "var(--mantine-color-text)" : R ?? "var(--mantine-color-text)", B = a === "dark" ? M ?? g.colors[g.primaryColor][0] : W ?? g.colors[g.primaryColor][7], z = dA(() => {
707
+ const Y = /* @__PURE__ */ new Set();
708
+ return e.forEach((v) => {
709
+ if (v.showInSidebar && (!v.disabled || !v.hideDisabledItem)) {
710
+ let T = !1;
711
+ v.group || (v.group = {
712
+ icon: O || /* @__PURE__ */ A(Ee, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
673
713
  label: "Default",
674
714
  name: "Default",
675
715
  hint: "Default",
676
716
  indexOrder: 0
677
- }), B.forEach((y) => {
678
- y.name === S.group.name && (tA = !0);
679
- }), tA || B.add({
680
- name: S.group.name,
681
- indexOrder: S.group.indexOrder,
717
+ }), Y.forEach((X) => {
718
+ X.name === v.group.name && (T = !0);
719
+ }), T || Y.add({
720
+ name: v.group.name,
721
+ indexOrder: v.group.indexOrder,
682
722
  component: /* @__PURE__ */ A(
683
- CA,
723
+ wA,
684
724
  {
685
- content: S.group.hint,
686
- label: S.group.label,
687
- disabled: R,
688
- children: /* @__PURE__ */ I(
689
- vA,
725
+ content: v.group.hint,
726
+ label: v.group.label,
727
+ disabled: x,
728
+ children: /* @__PURE__ */ P(
729
+ lA,
690
730
  {
691
731
  gap: "2px",
692
732
  style: {
@@ -697,898 +737,1069 @@ function FA({
697
737
  },
698
738
  children: [
699
739
  /* @__PURE__ */ A(
700
- mA,
740
+ EA,
701
741
  {
702
742
  size: "48px",
703
- variant: S.group.name === $ ? "filled" : r ? "subtle" : "light",
704
- color: S.group.name === $ ? T : c,
743
+ variant: v.group.name === G ? "filled" : t ? "subtle" : "light",
744
+ color: v.group.name === G ? D : i,
705
745
  onClick: () => {
706
- N((y) => (w && w(y, S.group.name), S.group.name === y && !l ? "" : S.group.name));
746
+ N((X) => (f && f(X, v.group.name), v.group.name === X && !d ? "" : v.group.name));
707
747
  },
708
- children: S.group.icon
748
+ children: v.group.icon
709
749
  }
710
750
  ),
711
- R ? /* @__PURE__ */ A(
712
- KA,
751
+ x ? /* @__PURE__ */ A(
752
+ QA,
713
753
  {
714
754
  size: "xs",
715
- c: t === "dark" ? f || b.colors[b.primaryColor][2] : v || b.colors[b.primaryColor][2],
716
- children: S.group.label
755
+ c: a === "dark" ? C || g.colors[g.primaryColor][2] : w || g.colors[g.primaryColor][2],
756
+ children: v.group.label
717
757
  }
718
758
  ) : !1
719
759
  ]
720
760
  }
721
761
  )
722
762
  },
723
- S.group.name
763
+ v.group.name
724
764
  )
725
765
  });
726
766
  }
727
- }), B.forEach((S) => {
728
- const tA = e.filter((y) => y.showInSidebar === !0 && (!y.disabled || !y.hideDisabledItem) && y.group && y.group.name === S.name);
729
- S.links = tA.map((y, O) => UA(b, s, C, y, O, G, i.pathname, V, m, q));
730
- }), [...B].sort((S, tA) => S.indexOrder - tA.indexOrder);
731
- }, [e, $, t, s, g.selectedCompany, V, i]), M = yo(
732
- t,
733
- b,
734
- s,
767
+ }), Y.forEach((v) => {
768
+ const T = e.filter((X) => X.showInSidebar === !0 && (!X.disabled || !X.hideDisabledItem) && X.group && X.group.name === v.name);
769
+ v.links = T.map((X, aA) => KA(g, m, h, X, aA, H, u.pathname, J, E, q));
770
+ }), [...Y].sort((v, T) => v.indexOrder - T.indexOrder);
771
+ }, [e, G, a, m, b.selectedCompany, J, u]), K = Lr(
772
+ a,
773
+ g,
774
+ m,
735
775
  35,
736
- Number(X(h)),
737
- Q.length > 1,
738
- G,
776
+ Number(Z(s)),
777
+ z.length > 1,
778
+ H,
739
779
  oA,
740
- k,
741
- m,
742
- z
743
- ), rA = s || $ === "" ? "0px" : `calc(${d} - ${n})`, fA = r || (t === "dark" ? b.colors[b.primaryColor][6] : b.colors[b.primaryColor][7]), cA = aA(() => {
744
- P && Q.map((B) => B.name).includes(P) ? N(P) : Q.length > 1 && N("Default");
780
+ y,
781
+ E,
782
+ B
783
+ ), tA = m || G === "" ? "0px" : `calc(${c} - ${o})`, kA = t || (a === "dark" ? g.colors[g.primaryColor][6] : g.colors[g.primaryColor][7]), uA = sA(() => {
784
+ S && z.map((Y) => Y.name).includes(S) ? N(S) : z.length > 1 && N("Default");
745
785
  }, []);
746
- return U(() => {
747
- cA();
786
+ U(() => {
787
+ uA();
748
788
  }, []), U(() => {
749
- s ? N("") : $ === "" && cA();
750
- }, [s]), /* @__PURE__ */ A(sA, { children: Q.length == 1 ? xo(
751
- D,
752
- s,
753
- d,
754
- h,
755
- M,
756
- e.map((B, bA) => UA(b, s, C, B, bA, G, i.pathname, V, m, q)),
757
- l,
758
- o,
759
- K,
760
- p,
761
- k
762
- ) : /* @__PURE__ */ I(LA, { direction: "column", w: s ? h : d, children: [
763
- /* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: K }),
764
- /* @__PURE__ */ I(Ce, { withBorder: x, h: o, w: "100%", display: "flex", children: [
765
- Q.length !== 0 && /* @__PURE__ */ A(
766
- vA,
767
- {
768
- gap: "4px",
769
- style: {
770
- height: o,
771
- width: n,
772
- padding: "4px",
773
- backgroundColor: fA
774
- },
775
- children: Q.map((B) => /* @__PURE__ */ A(j.Fragment, { children: B.component }, B.name))
789
+ m ? N("") : G === "" && uA();
790
+ }, [m]);
791
+ const RA = () => G !== "" ? /* @__PURE__ */ A(
792
+ re,
793
+ {
794
+ ref: Q,
795
+ rootStyles: {
796
+ [`.${ne.container}`]: {
797
+ background: y,
798
+ overflowX: "hidden",
799
+ overflowY: "hidden",
800
+ left: 0,
801
+ height: `${Z(r)}px`
776
802
  }
777
- ),
778
- $ !== "" && /* @__PURE__ */ A(
779
- ZA,
803
+ },
804
+ style: { borderColor: a === "dark" ? "#000" : "#efefef" },
805
+ collapsed: m,
806
+ width: `${Z(tA)}`,
807
+ collapsedWidth: "0px",
808
+ children: /* @__PURE__ */ A(
809
+ zA,
780
810
  {
781
- ref: D,
782
- rootStyles: {
783
- [`.${Ae.container}`]: {
784
- background: k,
785
- overflowX: "hidden",
786
- overflowY: "hidden",
787
- left: 0,
788
- height: `${X(o)}px`
789
- }
811
+ style: {
812
+ overflowY: "auto",
813
+ overflowX: "hidden",
814
+ height: "100%",
815
+ width: tA
790
816
  },
791
- style: { borderColor: t === "dark" ? "#000" : "#efefef" },
792
- collapsed: s,
793
- width: `${X(rA)}`,
794
- collapsedWidth: "0px",
795
- children: /* @__PURE__ */ A(
796
- TA,
797
- {
798
- style: {
799
- overflowY: "auto",
800
- overflowX: "hidden",
801
- height: "100%",
802
- width: rA
803
- },
804
- children: /* @__PURE__ */ A(_A, { rootStyles: { background: k }, menuItemStyles: M, closeOnClick: !0, children: Q.find((B) => B.name === $)?.links || null })
805
- }
806
- )
817
+ children: /* @__PURE__ */ A(oe, { rootStyles: { background: y }, menuItemStyles: K, closeOnClick: !0, children: z.find((Y) => Y.name === G)?.links || null })
807
818
  }
808
819
  )
820
+ }
821
+ ) : null, LA = () => z.length !== 0 ? /* @__PURE__ */ A(
822
+ lA,
823
+ {
824
+ gap: "4px",
825
+ style: {
826
+ height: r,
827
+ width: o,
828
+ padding: "4px",
829
+ backgroundColor: kA
830
+ },
831
+ children: z.map((Y) => /* @__PURE__ */ A(AA.Fragment, { children: Y.component }, Y.name))
832
+ }
833
+ ) : null;
834
+ return /* @__PURE__ */ A(iA, { children: z.length == 1 ? Tr(
835
+ Q,
836
+ m,
837
+ c,
838
+ s,
839
+ K,
840
+ e.map((Y, hA) => KA(g, m, h, Y, hA, H, u.pathname, J, E, q)),
841
+ d,
842
+ r,
843
+ V,
844
+ p,
845
+ y
846
+ ) : /* @__PURE__ */ P(DA, { direction: "column", w: m ? s : c, children: [
847
+ /* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: V }),
848
+ /* @__PURE__ */ P(we, { withBorder: k, h: r, w: "100%", display: "flex", children: [
849
+ LA(),
850
+ RA()
809
851
  ] }),
810
852
  /* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: p })
811
853
  ] }) });
812
854
  }
813
- const ee = qA(null), oe = () => gA(ee), kA = (e) => null, So = ({ children: e, ...n }) => {
814
- const [d, o] = eA(/* @__PURE__ */ new Map()), [h, u] = eA(/* @__PURE__ */ new Set()), c = (s, C) => {
815
- if (!s || typeof s != "string") {
816
- console.error("[ArchbaseAliveAbleRoutes] Invalid path for component registration:", s);
855
+ const te = yA({
856
+ isVisible: !0
857
+ }), ko = () => cA(te), qA = yA({ params: {} }), wo = () => cA(qA).params, xo = () => {
858
+ const e = or(), c = cA(qA).params;
859
+ return dA(() => {
860
+ if (!e)
861
+ return !1;
862
+ const s = Object.keys(e);
863
+ return s.length === 0 ? !1 : s.some((l) => e[l] !== void 0);
864
+ }, [e]) ? e : c;
865
+ }, ae = yA(null), se = () => cA(ae), xA = (e) => null, Ir = (e) => e.includes(":"), Pr = (e, o) => Ir(e) ? o : e, Dr = ({ children: e, ...o }) => {
866
+ const [c, r] = _(/* @__PURE__ */ new Map()), [s, l] = _(/* @__PURE__ */ new Set()), i = (h, f, k) => {
867
+ if (!h || typeof h != "string") {
868
+ console.error("[ArchbaseAliveAbleRoutes] Invalid cacheKey for component registration:", h);
817
869
  return;
818
870
  }
819
- if (C === void 0) {
820
- console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for path:", s);
871
+ if (f === void 0) {
872
+ console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for cacheKey:", h);
821
873
  return;
822
874
  }
823
- o((w) => {
824
- if (w.has(s))
825
- return w;
826
- const x = new Map(w);
827
- return x.set(s, C), x;
875
+ r((x) => {
876
+ if (x.has(h))
877
+ return x;
878
+ const g = new Map(x);
879
+ return g.set(h, { element: f, params: k }), g;
880
+ });
881
+ }, t = (h, f) => {
882
+ r((k) => {
883
+ const x = k.get(h);
884
+ if (!x || !(JSON.stringify(x.params) !== JSON.stringify(f)))
885
+ return k;
886
+ const Q = new Map(k);
887
+ return Q.set(h, { ...x, params: f }), Q;
828
888
  });
829
- }, r = (s) => {
830
- if (!s) {
831
- console.error("[ArchbaseAliveAbleRoutes] Cannot unregister: invalid path");
889
+ }, d = (h) => {
890
+ if (!h) {
891
+ console.error("[ArchbaseAliveAbleRoutes] Cannot unregister: invalid cacheKey");
832
892
  return;
833
893
  }
834
- o((C) => {
835
- C.has(s) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent path:", s);
836
- const w = new Map(C);
837
- return w.delete(s), w;
838
- }), u((C) => {
839
- const w = new Set(C);
840
- return w.delete(s), w;
894
+ r((f) => {
895
+ f.has(h) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent cacheKey:", h);
896
+ const k = new Map(f);
897
+ return k.delete(h), k;
898
+ }), l((f) => {
899
+ const k = new Set(f);
900
+ return k.delete(h), k;
841
901
  });
842
- }, l = (s) => {
843
- u((C) => {
844
- const w = new Set(C);
845
- return w.add(s), w;
902
+ }, n = (h) => {
903
+ l((f) => {
904
+ const k = new Set(f);
905
+ return k.add(h), k;
846
906
  });
847
- }, a = j.Children.toArray(e), p = a.filter((s) => j.isValidElement(s) ? s.type === kA : !1), f = a.filter((s) => j.isValidElement(s) ? s.type !== kA : !1), v = {
848
- cache: d,
849
- requestedUnregister: h,
850
- register: c,
851
- unregister: r,
852
- requestUnregister: l
907
+ }, p = AA.Children.toArray(e), C = p.filter((h) => AA.isValidElement(h) ? h.type === xA : !1), w = p.filter((h) => AA.isValidElement(h) ? h.type !== xA : !1), m = {
908
+ cache: c,
909
+ requestedUnregister: s,
910
+ register: i,
911
+ unregister: d,
912
+ updateParams: t,
913
+ requestUnregister: n
853
914
  };
854
- return /* @__PURE__ */ I(ee.Provider, { value: v, children: [
855
- p.map((s) => /* @__PURE__ */ A(Eo, { ...s.props, routesProps: n }, s.key)),
856
- /* @__PURE__ */ A(JA, { ...n, children: f })
915
+ return /* @__PURE__ */ P(ae.Provider, { value: m, children: [
916
+ C.map((h) => /* @__PURE__ */ A(Or, { ...h.props, routesProps: o }, h.key)),
917
+ /* @__PURE__ */ A(Ae, { ...o, children: w })
857
918
  ] });
858
- }, Eo = ({ component: e, routesProps: n, ...d }) => {
859
- const o = oe();
860
- if (!o)
919
+ }, Or = ({ component: e, routesProps: o, ...c }) => {
920
+ const r = se();
921
+ if (!r)
861
922
  throw new Error("DisplayRoute must be used within ArchbaseAliveAbleRoutes provider");
862
- const { cache: h, requestedUnregister: u, register: c, unregister: r } = o, [l, a] = eA(!1), p = AA(null), f = AA(!1);
863
- xA(() => {
864
- if (l && e && d.path && !f.current) {
865
- const s = typeof e == "function" ? j.createElement(e) : e;
866
- c(d.path, s), f.current = !0;
923
+ const { cache: s, requestedUnregister: l, register: i, unregister: t, updateParams: d } = r, [n, p] = _(!1), [C, w] = _({}), m = rA(null), h = FA(), f = dA(() => c.path ? Pr(c.path, h.pathname) : null, [c.path, h.pathname]), k = dA(() => c.path ? nr({ path: c.path, end: !0 }, h.pathname)?.params || {} : {}, [c.path, h.pathname]), x = rA(/* @__PURE__ */ new Set());
924
+ bA(() => {
925
+ if (n && e && f && !x.current.has(f)) {
926
+ const S = typeof e == "function" ? AA.createElement(e) : e;
927
+ i(f, S, k), x.current.add(f);
867
928
  }
868
- }, [l, e, d.path, c]), xA(() => {
869
- d.path && u.has(d.path) && (r(d.path), f.current = !1);
870
- }, [d.path, u, r]);
871
- const v = d.path ? h.get(d.path) : null;
872
- return /* @__PURE__ */ I(sA, { children: [
873
- v && /* @__PURE__ */ A(
929
+ }, [n, e, f, i, k]), bA(() => {
930
+ n && f && x.current.has(f) && (d(f, k), w(k));
931
+ }, [n, f, k, d]), bA(() => {
932
+ f && l.has(f) && (t(f), x.current.delete(f));
933
+ }, [f, l, t]);
934
+ const g = f ? s.get(f) : null, Q = dA(() => n ? k : g ? g.params : C, [n, k, g, C]), O = rA(n);
935
+ return U(() => {
936
+ const S = O.current;
937
+ if (O.current = n, n && !S && m.current) {
938
+ const V = setTimeout(() => {
939
+ window.dispatchEvent(new Event("resize")), m.current?.dispatchEvent(
940
+ new CustomEvent("keepalive:visible", { bubbles: !0 })
941
+ );
942
+ }, 50);
943
+ return () => clearTimeout(V);
944
+ }
945
+ }, [n]), /* @__PURE__ */ P(iA, { children: [
946
+ g && /* @__PURE__ */ A(te.Provider, { value: { isVisible: n }, children: /* @__PURE__ */ A(qA.Provider, { value: { params: Q }, children: /* @__PURE__ */ A(
874
947
  "div",
875
948
  {
876
- ref: p,
949
+ ref: m,
877
950
  style: {
878
- display: l ? "block" : "none",
879
- height: l ? "100%" : "0",
880
- overflow: l ? "auto" : "hidden"
951
+ // Usa visibility + position ao invés de display:none
952
+ // para manter dimensões e permitir que ResizeObserver funcione
953
+ position: n ? "relative" : "absolute",
954
+ visibility: n ? "visible" : "hidden",
955
+ pointerEvents: n ? "auto" : "none",
956
+ width: "100%",
957
+ height: "100%",
958
+ top: n ? void 0 : 0,
959
+ left: n ? void 0 : 0,
960
+ zIndex: n ? 1 : -1,
961
+ overflow: n ? "auto" : "hidden"
881
962
  },
882
- children: v
963
+ children: g.element
883
964
  }
884
- ),
885
- /* @__PURE__ */ A(JA, { ...n, children: /* @__PURE__ */ A(EA, { ...d, element: /* @__PURE__ */ A(Ro, { onRouteMatchChange: a }) }) })
965
+ ) }) }),
966
+ /* @__PURE__ */ A(Ae, { ...o, children: /* @__PURE__ */ A(
967
+ PA,
968
+ {
969
+ ...c,
970
+ element: /* @__PURE__ */ A(
971
+ Qr,
972
+ {
973
+ onRouteMatchChange: p,
974
+ onParamsChange: w
975
+ }
976
+ )
977
+ }
978
+ ) })
886
979
  ] });
887
- }, Ro = ({ onRouteMatchChange: e }) => (xA(() => (e(!0), () => {
888
- e(!1);
889
- }), [e]), null);
890
- function Lo(e, n, d, o, h, u) {
980
+ }, Qr = ({ onRouteMatchChange: e, onParamsChange: o }) => {
981
+ const c = FA();
982
+ return bA(() => (e(!0), () => {
983
+ e(!1);
984
+ }), [e]), bA(() => {
985
+ }, [c.pathname, o]), null;
986
+ };
987
+ function zr(e, o, c, r, s, l) {
891
988
  return /* @__PURE__ */ A(
892
989
  "div",
893
990
  {
894
991
  style: {
895
992
  position: "absolute",
896
- left: d.collapsed ? `calc(${h} - 14px)` : `calc(${o} - 14px)`,
993
+ left: c.collapsed ? `calc(${s} - 14px)` : `calc(${r} - 14px)`,
897
994
  top: "calc(100vh / 2)",
898
995
  zIndex: "101"
899
996
  },
900
997
  children: /* @__PURE__ */ A(
901
- mA,
998
+ EA,
902
999
  {
903
- bg: n.colors[n.primaryColor][4],
904
- color: n.colors[n.primaryColor][6],
1000
+ bg: o.colors[o.primaryColor][4],
1001
+ color: o.colors[o.primaryColor][6],
905
1002
  variant: "filled",
906
1003
  radius: "xl",
907
- onClick: u,
908
- children: d.collapsed ? /* @__PURE__ */ A(we, {}) : /* @__PURE__ */ A(ye, {})
1004
+ onClick: l,
1005
+ children: c.collapsed ? /* @__PURE__ */ A(Se, {}) : /* @__PURE__ */ A(Re, {})
909
1006
  }
910
1007
  )
911
1008
  }
912
1009
  );
913
1010
  }
914
- function To({
1011
+ function Mr({
915
1012
  children: e,
916
- header: n,
917
- footer: d,
918
- sideBarWidth: o = "360px",
919
- sideBarCollapsedWidth: h = "74px",
920
- sideBarHiddenBreakPoint: u,
921
- sideBarFooterHeight: c,
922
- sideBarFooterContent: r,
923
- onCollapsedSideBar: l,
924
- onHiddenSidebar: a,
1013
+ header: o,
1014
+ footer: c,
1015
+ sideBarWidth: r = "360px",
1016
+ sideBarCollapsedWidth: s = "74px",
1017
+ sideBarHiddenBreakPoint: l,
1018
+ sideBarFooterHeight: i,
1019
+ sideBarFooterContent: t,
1020
+ onCollapsedSideBar: d,
1021
+ onHiddenSidebar: n,
925
1022
  sidebarSelectedGroupName: p,
926
- sidebarDefaultGroupIcon: f,
927
- sideBarHeaderHeight: v,
928
- sideBarHeaderContent: s,
929
- selectedGroupColor: C = "#132441",
930
- groupColor: w = "white",
931
- backgroundGroupColor: x = "#132441",
932
- groupLabelDarkColor: R = "white",
933
- groupLabelLightColor: b = "white",
934
- headerColor: D,
935
- footerHeight: F,
936
- iconsWithBackground: P,
937
- menuItemHeight: K,
938
- showSideBar: G = !0,
1023
+ sidebarDefaultGroupIcon: C,
1024
+ sideBarHeaderHeight: w,
1025
+ sideBarHeaderContent: m,
1026
+ selectedGroupColor: h = "#132441",
1027
+ groupColor: f = "white",
1028
+ backgroundGroupColor: k = "#132441",
1029
+ groupLabelDarkColor: x = "white",
1030
+ groupLabelLightColor: g = "white",
1031
+ headerColor: Q,
1032
+ footerHeight: O,
1033
+ iconsWithBackground: S,
1034
+ menuItemHeight: V,
1035
+ showSideBar: H = !0,
939
1036
  showHeader: oA = !0,
940
- headerStyle: V = {},
941
- highlightActiveMenuItem: J = !0,
942
- customRenderSidebar: Y,
943
- showCollapsedButton: nA = !0,
944
- sideBarBackgroundDarkColor: W,
945
- sideBarBackgroundLightColor: Z,
946
- sideBarTextDarkColor: _,
1037
+ headerStyle: J = {},
1038
+ highlightActiveMenuItem: F = !0,
1039
+ customRenderSidebar: $,
1040
+ showCollapsedButton: eA = !0,
1041
+ sideBarBackgroundDarkColor: R,
1042
+ sideBarBackgroundLightColor: M,
1043
+ sideBarTextDarkColor: W,
947
1044
  sideBarTextLightColor: q,
948
- sideBarIconDarkColor: $,
1045
+ sideBarIconDarkColor: G,
949
1046
  sideBarIconLightColor: N,
950
- sideBarCollapsedSubmenuWidth: g
1047
+ sideBarCollapsedSubmenuWidth: b
951
1048
  }) {
952
- const i = HA(), t = gA(wA), { colorScheme: k } = iA(), T = eo(), [m, z] = oo(), Q = Ao(
953
- `(max-width: ${u ? X(u) : i.breakpoints.md})`
954
- ), M = (y) => {
955
- y.link && (y.routeParams ? T(y.link, {}, y.routeParams) : T(y.link));
956
- }, rA = (y, O) => {
957
- y == O && t.collapsed && t.setCollapsed(!1), t.setCollapsed(y == O);
958
- }, fA = () => {
959
- let y = 0, O = 0;
960
- return v && (y = Number(X(v))), c && (O = Number(X(c))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${y + O}px)`;
961
- }, cA = () => {
962
- let y = 0, O = 0;
963
- return v && (y = Number(X(v))), c && (O = Number(X(c))), `calc(100vh - 28px - ${y + O}px)`;
964
- }, B = RA(() => {
965
- const y = [];
966
- return t.navigationData.forEach((O, NA) => {
967
- O.links ? O.links.forEach((lA, PA) => {
968
- lA.keepAlive ? y.push(
969
- /* @__PURE__ */ A(kA, { path: lA.link, component: lA.component }, `${lA.link}_${PA}`)
970
- ) : y.push(/* @__PURE__ */ A(EA, { path: lA.link, element: lA.component }, `${lA.link}_${PA}`));
971
- }) : O.keepAlive ? y.push(
972
- /* @__PURE__ */ A(kA, { path: O.link, component: O.component }, `${O.link}_${NA}`)
973
- ) : y.push(
974
- /* @__PURE__ */ A(EA, { path: O.link, element: O.component }, `${O.link}_${NA}`)
1049
+ const u = vA(), a = cA(SA), { colorScheme: y } = nA(), D = sr(), [E, B] = ir(), z = ar(
1050
+ `(max-width: ${l ? Z(l) : u.breakpoints.md})`
1051
+ ), K = (v) => {
1052
+ v.link && (v.routeParams ? D(v.link, {}, v.routeParams) : D(v.link));
1053
+ }, tA = (v, T) => {
1054
+ v == T && a.collapsed && a.setCollapsed(!1), a.setCollapsed(v == T);
1055
+ }, kA = () => {
1056
+ let v = 0, T = 0;
1057
+ return w && (v = Number(Z(w))), i && (T = Number(Z(i))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${v + T}px)`;
1058
+ }, uA = () => {
1059
+ let v = 0, T = 0;
1060
+ return w && (v = Number(Z(w))), i && (T = Number(Z(i))), `calc(100vh - 28px - ${v + T}px)`;
1061
+ }, RA = dA(() => {
1062
+ const v = [];
1063
+ return a.navigationData.forEach((T, X) => {
1064
+ T.links ? T.links.forEach((aA, BA) => {
1065
+ aA.keepAlive ? v.push(
1066
+ /* @__PURE__ */ A(xA, { path: aA.link, component: aA.component }, `${aA.link}_${BA}`)
1067
+ ) : v.push(/* @__PURE__ */ A(PA, { path: aA.link, element: aA.component }, `${aA.link}_${BA}`));
1068
+ }) : T.keepAlive ? v.push(
1069
+ /* @__PURE__ */ A(xA, { path: T.link, component: T.component }, `${T.link}_${X}`)
1070
+ ) : v.push(
1071
+ /* @__PURE__ */ A(PA, { path: T.link, element: T.component }, `${T.link}_${X}`)
975
1072
  );
976
- }), y;
977
- }, [t.navigationData, t.collapsed]), bA = aA(() => {
978
- t.setCollapsed(!t.collapsed);
979
- }, [t.setCollapsed, t.collapsed]), S = aA(() => {
980
- t.setHidden(!t.hidden);
981
- }, [t.setHidden, t.hidden]);
1073
+ }), v;
1074
+ }, [a.navigationData, a.collapsed]), LA = sA(() => {
1075
+ a.setCollapsed(!a.collapsed);
1076
+ }, [a.setCollapsed, a.collapsed]), Y = sA(() => {
1077
+ a.setHidden(!a.hidden);
1078
+ }, [a.setHidden, a.hidden]);
982
1079
  U(() => {
983
- a && a(t.hidden);
984
- }, [t.hidden, S]), U(() => {
985
- l && l(t.collapsed);
986
- }, [t.collapsed, l]);
987
- const tA = t.collapsed ? h : o;
988
- return /* @__PURE__ */ I(
989
- dA,
1080
+ n && n(a.hidden);
1081
+ }, [a.hidden, Y]), U(() => {
1082
+ d && d(a.collapsed);
1083
+ }, [a.collapsed, d]);
1084
+ const hA = a.collapsed ? s : r;
1085
+ return /* @__PURE__ */ P(
1086
+ pA,
990
1087
  {
991
1088
  header: { height: "60px", collapsed: !oA },
992
- footer: { height: F || "0px" },
1089
+ footer: { height: O || "0px" },
993
1090
  styles: {
994
1091
  main: {
995
- background: k === "dark" ? i.colors.dark[8] : i.colors.gray[0],
1092
+ background: y === "dark" ? u.colors.dark[8] : u.colors.gray[0],
996
1093
  overflow: "hidden"
997
1094
  }
998
1095
  },
999
1096
  children: [
1000
1097
  /* @__PURE__ */ A(
1001
- dA.Header,
1098
+ pA.Header,
1002
1099
  {
1003
1100
  p: "xs",
1004
- color: D,
1101
+ color: Q,
1005
1102
  display: "flex",
1006
1103
  style: {
1007
1104
  backgroundColor: "var(--mantine-primary-color-8)",
1008
1105
  alignItems: "center",
1009
1106
  borderBottom: "none",
1010
- ...V
1107
+ ...J
1011
1108
  },
1012
- children: n
1109
+ children: o
1013
1110
  }
1014
1111
  ),
1015
- /* @__PURE__ */ A(dA.Navbar, { children: !Q && G ? Y ? Y({ width: o, height: fA(), isHidden: Q }) : /* @__PURE__ */ A(
1016
- FA,
1112
+ /* @__PURE__ */ A(pA.Navbar, { children: !z && H ? $ ? $({ width: r, height: kA(), isHidden: z }) : /* @__PURE__ */ A(
1113
+ YA,
1017
1114
  {
1018
- navigationData: t.navigationData,
1019
- sidebarHeight: fA(),
1020
- sidebarGroupWidth: h,
1021
- sidebarCollapsedWidth: h,
1022
- selectedGroupColor: C,
1023
- groupColor: w,
1024
- backgroundGroupColor: x,
1025
- groupLabelDarkColor: R,
1026
- groupLabelLightColor: b,
1115
+ navigationData: a.navigationData,
1116
+ sidebarHeight: kA(),
1117
+ sidebarGroupWidth: s,
1118
+ sidebarCollapsedWidth: s,
1119
+ selectedGroupColor: h,
1120
+ groupColor: f,
1121
+ backgroundGroupColor: k,
1122
+ groupLabelDarkColor: x,
1123
+ groupLabelLightColor: g,
1027
1124
  showGroupLabels: !1,
1028
- collapsed: t.collapsed,
1029
- sidebarWidth: o,
1030
- isHidden: Q,
1031
- onMenuItemClick: M,
1032
- onClickActionIcon: rA,
1033
- sideBarFooterHeight: c,
1034
- sideBarFooterContent: r,
1035
- sideBarHeaderContent: s,
1036
- theme: i,
1037
- sidebarRef: m,
1038
- defaultGroupIcon: f,
1125
+ collapsed: a.collapsed,
1126
+ sidebarWidth: r,
1127
+ isHidden: z,
1128
+ onMenuItemClick: K,
1129
+ onClickActionIcon: tA,
1130
+ sideBarFooterHeight: i,
1131
+ sideBarFooterContent: t,
1132
+ sideBarHeaderContent: m,
1133
+ theme: u,
1134
+ sidebarRef: E,
1135
+ defaultGroupIcon: C,
1039
1136
  selectedGroupName: p,
1040
- iconsWithBackground: P,
1041
- menuItemHeight: K,
1042
- highlightActiveMenuItem: J,
1043
- backgroundDarkColor: W,
1044
- backgroundLightColor: Z,
1045
- textDarkColor: _,
1137
+ iconsWithBackground: S,
1138
+ menuItemHeight: V,
1139
+ highlightActiveMenuItem: F,
1140
+ backgroundDarkColor: R,
1141
+ backgroundLightColor: M,
1142
+ textDarkColor: W,
1046
1143
  textLightColor: q,
1047
- iconDarkColor: $,
1144
+ iconDarkColor: G,
1048
1145
  iconLightColor: N,
1049
- collapsedSubmenuWidth: g
1146
+ collapsedSubmenuWidth: b,
1147
+ isLoading: a.isLoadingPermissions,
1148
+ loadingError: a.permissionsError
1050
1149
  }
1051
1150
  ) : void 0 }),
1052
- /* @__PURE__ */ I(dA.Main, { bg: k === "dark" ? i.colors.dark[8] : i.colors.gray[0], children: [
1053
- !Q && nA && Lo(
1054
- k,
1055
- i,
1056
- t,
1057
- o,
1058
- h,
1059
- bA
1151
+ /* @__PURE__ */ P(pA.Main, { bg: y === "dark" ? u.colors.dark[8] : u.colors.gray[0], children: [
1152
+ !z && eA && zr(
1153
+ y,
1154
+ u,
1155
+ a,
1156
+ r,
1157
+ s,
1158
+ LA
1060
1159
  ),
1061
- /* @__PURE__ */ I(
1160
+ /* @__PURE__ */ P(
1062
1161
  "div",
1063
1162
  {
1064
1163
  style: {
1065
1164
  height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
1066
- width: `calc(100vw - var(--app-shell-padding) - calc(${Q ? "0px" : tA} + 1rem))`,
1165
+ width: `calc(100vw - var(--app-shell-padding) - calc(${z ? "0px" : hA} + 1rem))`,
1067
1166
  marginTop: "0.5rem",
1068
- marginLeft: `calc(${Q ? "0px" : tA} + 0.5rem)`,
1069
- border: `1px solid ${k === "dark" ? i.colors.dark[4] : "#e4e9ef"}`,
1167
+ marginLeft: `calc(${z ? "0px" : hA} + 0.5rem)`,
1168
+ border: `1px solid ${y === "dark" ? u.colors.dark[4] : "#e4e9ef"}`,
1070
1169
  borderRadius: "4px",
1071
1170
  overflow: "none"
1072
1171
  },
1073
1172
  children: [
1074
1173
  e,
1075
- /* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ I(So, { children: [
1076
- ...B
1174
+ /* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ P(Dr, { children: [
1175
+ ...RA
1077
1176
  ] }) })
1078
1177
  ]
1079
1178
  }
1080
1179
  ),
1081
- G && /* @__PURE__ */ A(
1082
- GA,
1180
+ H && /* @__PURE__ */ A(
1181
+ JA,
1083
1182
  {
1084
- opened: t.hidden || !1,
1085
- onClose: S,
1086
- size: o,
1183
+ opened: a.hidden || !1,
1184
+ onClose: Y,
1185
+ size: r,
1087
1186
  padding: 0,
1088
1187
  styles: {
1089
1188
  header: { minHeight: "10px" }
1090
1189
  },
1091
- children: Y ? Y({ width: o, height: cA(), isHidden: Q }) : /* @__PURE__ */ A(
1092
- FA,
1190
+ children: $ ? $({ width: r, height: uA(), isHidden: z }) : /* @__PURE__ */ A(
1191
+ YA,
1093
1192
  {
1094
- navigationData: t.navigationData,
1095
- sidebarWidth: o,
1096
- sidebarHeight: cA(),
1097
- sidebarCollapsedWidth: h,
1098
- sidebarGroupWidth: h,
1099
- selectedGroupColor: C,
1100
- groupColor: w,
1101
- backgroundGroupColor: x,
1102
- groupLabelDarkColor: R,
1103
- groupLabelLightColor: b,
1193
+ navigationData: a.navigationData,
1194
+ sidebarWidth: r,
1195
+ sidebarHeight: uA(),
1196
+ sidebarCollapsedWidth: s,
1197
+ sidebarGroupWidth: s,
1198
+ selectedGroupColor: h,
1199
+ groupColor: f,
1200
+ backgroundGroupColor: k,
1201
+ groupLabelDarkColor: x,
1202
+ groupLabelLightColor: g,
1104
1203
  showGroupLabels: !1,
1105
- isHidden: Q,
1106
- onMenuItemClick: M,
1107
- onClickActionIcon: rA,
1108
- theme: i,
1109
- sidebarRef: m,
1110
- defaultGroupIcon: f,
1204
+ isHidden: z,
1205
+ onMenuItemClick: K,
1206
+ onClickActionIcon: tA,
1207
+ theme: u,
1208
+ sidebarRef: E,
1209
+ defaultGroupIcon: C,
1111
1210
  selectedGroupName: p,
1112
- iconsWithBackground: P,
1113
- menuItemHeight: K,
1114
- sideBarHeaderContent: s,
1115
- sideBarFooterContent: r,
1116
- sideBarFooterHeight: c,
1117
- highlightActiveMenuItem: J,
1118
- backgroundDarkColor: W,
1119
- backgroundLightColor: Z,
1120
- textDarkColor: _,
1211
+ iconsWithBackground: S,
1212
+ menuItemHeight: V,
1213
+ sideBarHeaderContent: m,
1214
+ sideBarFooterContent: t,
1215
+ sideBarFooterHeight: i,
1216
+ highlightActiveMenuItem: F,
1217
+ backgroundDarkColor: R,
1218
+ backgroundLightColor: M,
1219
+ textDarkColor: W,
1121
1220
  textLightColor: q,
1122
- iconDarkColor: $,
1221
+ iconDarkColor: G,
1123
1222
  iconLightColor: N,
1124
- collapsedSubmenuWidth: g
1223
+ collapsedSubmenuWidth: b,
1224
+ isLoading: a.isLoadingPermissions,
1225
+ loadingError: a.permissionsError
1125
1226
  }
1126
1227
  )
1127
1228
  }
1128
1229
  )
1129
1230
  ] }),
1130
- /* @__PURE__ */ A(dA.Footer, { children: d })
1231
+ /* @__PURE__ */ A(pA.Footer, { children: c })
1131
1232
  ]
1132
1233
  }
1133
1234
  );
1134
1235
  }
1135
- function pn({
1236
+ function yo({
1136
1237
  navigationRootLink: e = "/",
1137
- navigationData: n,
1138
- user: d,
1139
- children: o,
1140
- header: h,
1141
- footer: u,
1142
- owner: c,
1143
- company: r,
1144
- sideBarWidth: l,
1145
- sideBarCollapsedWidth: a,
1238
+ navigationData: o,
1239
+ user: c,
1240
+ children: r,
1241
+ header: s,
1242
+ footer: l,
1243
+ owner: i,
1244
+ company: t,
1245
+ sideBarWidth: d,
1246
+ sideBarCollapsedWidth: n,
1146
1247
  sideBarHiddenBreakPoint: p,
1147
- sideBarFooterHeight: f,
1148
- sideBarFooterContent: v,
1149
- onCollapsedSideBar: s,
1150
- onHiddenSidebar: C,
1151
- sidebarDefaultGroupIcon: w,
1152
- sidebarSelectedGroupName: x,
1153
- sideBarHeaderHeight: R,
1154
- sideBarHeaderContent: b,
1155
- selectedGroupColor: D = "#132441",
1156
- groupColor: F = "white",
1157
- backgroundGroupColor: P = "#132441",
1158
- groupLabelDarkColor: K = "white",
1159
- groupLabelLightColor: G = "white",
1248
+ sideBarFooterHeight: C,
1249
+ sideBarFooterContent: w,
1250
+ onCollapsedSideBar: m,
1251
+ onHiddenSidebar: h,
1252
+ sidebarDefaultGroupIcon: f,
1253
+ sidebarSelectedGroupName: k,
1254
+ sideBarHeaderHeight: x,
1255
+ sideBarHeaderContent: g,
1256
+ selectedGroupColor: Q = "#132441",
1257
+ groupColor: O = "white",
1258
+ backgroundGroupColor: S = "#132441",
1259
+ groupLabelDarkColor: V = "white",
1260
+ groupLabelLightColor: H = "white",
1160
1261
  headerColor: oA,
1161
- footerHeight: V,
1162
- iconsWithBackground: J,
1163
- menuItemHeight: Y,
1164
- showSideBar: nA,
1165
- showHeader: W,
1166
- headerStyle: Z,
1167
- highlightActiveMenuItem: _,
1262
+ footerHeight: J,
1263
+ iconsWithBackground: F,
1264
+ menuItemHeight: $,
1265
+ showSideBar: eA,
1266
+ showHeader: R,
1267
+ headerStyle: M,
1268
+ highlightActiveMenuItem: W,
1168
1269
  enableSecurity: q = !1,
1169
- securityOptions: $,
1270
+ securityOptions: G,
1170
1271
  customRenderSidebar: N,
1171
- onNavigationDataChange: g,
1172
- showCollapsedButton: i,
1173
- initialSidebarCollapsed: t = !1,
1174
- sideBarBackgroundDarkColor: k,
1175
- sideBarBackgroundLightColor: T,
1176
- sideBarTextDarkColor: m,
1177
- sideBarTextLightColor: z,
1178
- sideBarIconDarkColor: Q,
1179
- sideBarIconLightColor: M,
1180
- sideBarCollapsedSubmenuWidth: rA
1272
+ onNavigationDataChange: b,
1273
+ showCollapsedButton: u,
1274
+ initialSidebarCollapsed: a = !1,
1275
+ sideBarBackgroundDarkColor: y,
1276
+ sideBarBackgroundLightColor: D,
1277
+ sideBarTextDarkColor: E,
1278
+ sideBarTextLightColor: B,
1279
+ sideBarIconDarkColor: z,
1280
+ sideBarIconLightColor: K,
1281
+ sideBarCollapsedSubmenuWidth: tA
1181
1282
  }) {
1182
1283
  return /* @__PURE__ */ A(
1183
- po,
1284
+ Cr,
1184
1285
  {
1185
- navigationData: n,
1286
+ navigationData: o,
1186
1287
  navigationRootLink: e,
1187
- user: d,
1188
- owner: c,
1189
- company: r,
1288
+ user: c,
1289
+ owner: i,
1290
+ company: t,
1190
1291
  enableSecurity: q,
1191
- securityOptions: $,
1192
- onNavigationDataChange: g,
1193
- initialSidebarCollapsed: t,
1292
+ securityOptions: G,
1293
+ onNavigationDataChange: b,
1294
+ initialSidebarCollapsed: a,
1194
1295
  children: /* @__PURE__ */ A(
1195
- To,
1296
+ Mr,
1196
1297
  {
1197
1298
  navigationRootLink: e,
1198
- user: d,
1199
- header: h,
1200
- footer: u,
1201
- owner: c,
1202
- company: r,
1203
- sideBarWidth: l,
1204
- sideBarCollapsedWidth: a,
1299
+ user: c,
1300
+ header: s,
1301
+ footer: l,
1302
+ owner: i,
1303
+ company: t,
1304
+ sideBarWidth: d,
1305
+ sideBarCollapsedWidth: n,
1205
1306
  sideBarHiddenBreakPoint: p,
1206
- sideBarHeaderHeight: R,
1207
- sideBarHeaderContent: b,
1208
- sideBarFooterHeight: f,
1209
- sideBarFooterContent: v,
1210
- selectedGroupColor: D,
1211
- groupColor: F,
1212
- backgroundGroupColor: P,
1213
- groupLabelDarkColor: K,
1214
- groupLabelLightColor: G,
1215
- onCollapsedSideBar: s,
1216
- onHiddenSidebar: C,
1217
- sidebarDefaultGroupIcon: w,
1218
- sidebarSelectedGroupName: x,
1307
+ sideBarHeaderHeight: x,
1308
+ sideBarHeaderContent: g,
1309
+ sideBarFooterHeight: C,
1310
+ sideBarFooterContent: w,
1311
+ selectedGroupColor: Q,
1312
+ groupColor: O,
1313
+ backgroundGroupColor: S,
1314
+ groupLabelDarkColor: V,
1315
+ groupLabelLightColor: H,
1316
+ onCollapsedSideBar: m,
1317
+ onHiddenSidebar: h,
1318
+ sidebarDefaultGroupIcon: f,
1319
+ sidebarSelectedGroupName: k,
1219
1320
  headerColor: oA,
1220
- footerHeight: V,
1221
- iconsWithBackground: J,
1222
- menuItemHeight: Y,
1223
- showSideBar: nA,
1224
- showHeader: W,
1225
- headerStyle: Z,
1226
- highlightActiveMenuItem: _,
1321
+ footerHeight: J,
1322
+ iconsWithBackground: F,
1323
+ menuItemHeight: $,
1324
+ showSideBar: eA,
1325
+ showHeader: R,
1326
+ headerStyle: M,
1327
+ highlightActiveMenuItem: W,
1227
1328
  enableSecurity: q,
1228
1329
  customRenderSidebar: N,
1229
- showCollapsedButton: i,
1230
- sideBarBackgroundDarkColor: k,
1231
- sideBarBackgroundLightColor: T,
1232
- sideBarTextDarkColor: m,
1233
- sideBarTextLightColor: z,
1234
- sideBarIconDarkColor: Q,
1235
- sideBarIconLightColor: M,
1236
- sideBarCollapsedSubmenuWidth: rA,
1237
- children: o
1330
+ showCollapsedButton: u,
1331
+ sideBarBackgroundDarkColor: y,
1332
+ sideBarBackgroundLightColor: D,
1333
+ sideBarTextDarkColor: E,
1334
+ sideBarTextLightColor: B,
1335
+ sideBarIconDarkColor: z,
1336
+ sideBarIconLightColor: K,
1337
+ sideBarCollapsedSubmenuWidth: tA,
1338
+ children: r
1238
1339
  }
1239
1340
  )
1240
1341
  }
1241
1342
  );
1242
1343
  }
1243
- const ne = qA({
1344
+ const ie = yA({
1244
1345
  state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
1245
1346
  dispatch: (e) => null
1246
- }), gn = ({ children: e }) => {
1247
- const n = {
1347
+ }), Eo = ({ children: e }) => {
1348
+ const o = {
1248
1349
  userCloseLinkRequest: "",
1249
1350
  linkClosed: "",
1250
1351
  isClosing: !1
1251
- }, d = (u, c) => {
1252
- switch (c.type) {
1352
+ }, c = (l, i) => {
1353
+ switch (i.type) {
1253
1354
  case "USER_CLOSE_REQUEST":
1254
- return console.log(`[Navigation Reducer] USER_CLOSE_REQUEST link: ${c.link}`), { ...u, userCloseLinkRequest: c.link, isClosing: !0 };
1355
+ return console.log(`[Navigation Reducer] USER_CLOSE_REQUEST link: ${i.link}`), { ...l, userCloseLinkRequest: i.link, isClosing: !0 };
1255
1356
  case "CLOSE_ALLOWED":
1256
- return console.log(`[Navigation Reducer] CLOSE_ALLOWED link: ${c.link}`), { ...u, linkClosed: c.link, userCloseLinkRequest: "", isClosing: !1, payload: c.payload };
1357
+ return console.log(`[Navigation Reducer] CLOSE_ALLOWED link: ${i.link}`), { ...l, linkClosed: i.link, userCloseLinkRequest: "", isClosing: !1, payload: i.payload };
1257
1358
  case "DONE":
1258
- return console.log(`[Navigation Reducer] DONE link: ${c.link}`), { ...u, linkClosed: c.link, isClosing: !1 };
1359
+ return console.log(`[Navigation Reducer] DONE link: ${i.link}`), { ...l, linkClosed: i.link, isClosing: !1 };
1259
1360
  case "CLEAR_PAYLOAD":
1260
- const r = { ...u };
1261
- return delete r.payload, r;
1361
+ const t = { ...l };
1362
+ return delete t.payload, t;
1262
1363
  default:
1263
- return u;
1364
+ return l;
1264
1365
  }
1265
- }, [o, h] = te(d, n);
1266
- return j.useEffect(() => {
1267
- let u = null;
1268
- return o.userCloseLinkRequest && !o.linkClosed && (console.log(`[NavigationProvider] Waiting for close response for: ${o.userCloseLinkRequest}`), u = setTimeout(() => {
1269
- console.log(`[NavigationProvider] No response received, auto-closing: ${o.userCloseLinkRequest}`), h({ type: "CLOSE_ALLOWED", link: o.userCloseLinkRequest });
1366
+ }, [r, s] = ce(c, o);
1367
+ return AA.useEffect(() => {
1368
+ let l = null;
1369
+ return r.userCloseLinkRequest && !r.linkClosed && (console.log(`[NavigationProvider] Waiting for close response for: ${r.userCloseLinkRequest}`), l = setTimeout(() => {
1370
+ console.log(`[NavigationProvider] No response received, auto-closing: ${r.userCloseLinkRequest}`), s({ type: "CLOSE_ALLOWED", link: r.userCloseLinkRequest });
1270
1371
  }, 100)), () => {
1271
- u && clearTimeout(u);
1372
+ l && clearTimeout(l);
1272
1373
  };
1273
- }, [o.userCloseLinkRequest, o.linkClosed, h]), /* @__PURE__ */ A(ne.Provider, { value: { state: o, dispatch: h }, children: e });
1274
- }, re = () => {
1275
- const e = gA(ne);
1374
+ }, [r.userCloseLinkRequest, r.linkClosed, s]), /* @__PURE__ */ A(ie.Provider, { value: { state: r, dispatch: s }, children: e });
1375
+ }, le = () => {
1376
+ const e = cA(ie);
1276
1377
  if (!e)
1277
1378
  throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
1278
1379
  return e;
1279
- }, fn = (e, n) => {
1280
- const d = re(), { state: o, dispatch: h } = d, u = aA((l) => {
1281
- console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`), h({ type: "CLOSE_ALLOWED", link: e, payload: l });
1282
- }, [h, e]), c = AA(n);
1283
- c.current = n, U(() => {
1284
- console.log(`[useArchbaseNavigationListener] Effect check - userCloseLinkRequest: ${o?.userCloseLinkRequest}, id: ${e}`), o && o.userCloseLinkRequest && o.userCloseLinkRequest === e && (console.log(`[useArchbaseNavigationListener] Calling onUserCloseRequest for: ${e}`), c.current());
1285
- }, [o, e]);
1286
- const r = o.isClosing && o.userCloseLinkRequest === e;
1287
- return { closeAllowed: u, isClosing: r };
1380
+ }, So = (e, o) => {
1381
+ const c = le(), { state: r, dispatch: s } = c, l = sA((d) => {
1382
+ console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`), s({ type: "CLOSE_ALLOWED", link: e, payload: d });
1383
+ }, [s, e]), i = rA(o);
1384
+ i.current = o, U(() => {
1385
+ 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());
1386
+ }, [r, e]);
1387
+ const t = r.isClosing && r.userCloseLinkRequest === e;
1388
+ return { closeAllowed: l, isClosing: t };
1288
1389
  };
1289
- function bn({
1390
+ function Ro({
1290
1391
  navigationData: e,
1291
- onChangeOpenedTabs: n,
1292
- onChangeActiveTabId: d,
1293
- activeTabId: o,
1294
- openedTabs: h = []
1392
+ onChangeOpenedTabs: o,
1393
+ onChangeActiveTabId: c,
1394
+ activeTabId: r,
1395
+ openedTabs: s = []
1295
1396
  }) {
1296
- const [u, c] = j.useTransition(), r = QA(), { colorScheme: l } = iA(), [a, p] = eA(h), [f, v] = eA(o), s = OA(), C = AA([]);
1297
- ao(C);
1298
- const w = re(), { state: x, dispatch: R } = w, b = gA(wA), D = oe(), F = AA(n), P = AA(d);
1397
+ const [l, i] = AA.useTransition(), t = $A(), { colorScheme: d } = nA(), [n, p] = _(s), [C, w] = _(r), m = UA(), h = rA([]);
1398
+ ur(h);
1399
+ const f = le(), { state: k, dispatch: x } = f, g = cA(SA), Q = se(), O = rA(o), S = rA(c);
1299
1400
  U(() => {
1300
- F.current = n, P.current = d;
1401
+ O.current = o, S.current = c;
1301
1402
  });
1302
- const K = AA(!1), G = aA((g, i) => {
1303
- console.log(`[TabContainer] handleOnClose called for: ${g}`), D ? D.requestUnregister(g) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks.");
1304
- const t = a.findIndex((M) => M.path === g);
1305
- let k = i?.redirectUrl;
1306
- !k && t >= 0 && (k = a[t].redirect);
1307
- const T = a.filter((M) => M.id !== g);
1308
- let m = -1;
1309
- T.forEach((M, rA) => M.id === f && (m = rA));
1310
- let z = null;
1311
- T.length > 0 && T[m] ? z = T[m].id : T.length > 0 ? z = T[T.length - 1].id : z = null;
1312
- const Q = T.map((M) => ({
1313
- ...M,
1314
- active: z === M.id
1403
+ const V = rA(!1), H = sA((b, u) => {
1404
+ console.log(`[TabContainer] handleOnClose called for: ${b}`), Q ? Q.requestUnregister(b) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks.");
1405
+ const a = n.findIndex((K) => K.path === b);
1406
+ let y = u?.redirectUrl;
1407
+ !y && a >= 0 && (y = n[a].redirect);
1408
+ const D = n.filter((K) => K.id !== b);
1409
+ let E = -1;
1410
+ D.forEach((K, tA) => K.id === C && (E = tA));
1411
+ let B = null;
1412
+ D.length > 0 && D[E] ? B = D[E].id : D.length > 0 ? B = D[D.length - 1].id : B = null;
1413
+ const z = D.map((K) => ({
1414
+ ...K,
1415
+ active: B === K.id
1315
1416
  }));
1316
- if (p(Q), z && z != null)
1317
- v(z), r(k || z);
1417
+ if (p(z), B && B != null)
1418
+ w(B), t(y || B);
1318
1419
  else {
1319
- if (v(void 0), !b.navigationRootLink) {
1420
+ if (w(void 0), !g.navigationRootLink) {
1320
1421
  console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
1321
1422
  return;
1322
1423
  }
1323
- r(b.navigationRootLink);
1424
+ t(g.navigationRootLink);
1324
1425
  }
1325
- R({ type: "DONE", link: "" });
1326
- }, [a, f, r, b.navigationRootLink, R, D]);
1426
+ x({ type: "DONE", link: "" });
1427
+ }, [n, C, t, g.navigationRootLink, x, Q]);
1327
1428
  U(() => {
1328
- x?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${x?.linkClosed}`), G(x?.linkClosed, x?.payload));
1329
- }, [x?.linkClosed, x?.payload, G]);
1330
- const oA = (g) => {
1331
- const i = {
1429
+ k?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${k?.linkClosed}`), H(k?.linkClosed, k?.payload));
1430
+ }, [k?.linkClosed, k?.payload, H]);
1431
+ const oA = (b) => {
1432
+ const u = {
1332
1433
  item: void 0,
1333
1434
  title: void 0,
1334
- link: g,
1435
+ link: b,
1335
1436
  redirect: void 0,
1336
1437
  customTitle: void 0
1337
1438
  };
1338
- return e.forEach((t) => {
1339
- if (t.links)
1340
- t.links.forEach((k) => {
1341
- $A({ path: k.link || "" }, location.pathname) && (i.item = k, i.title = `${L().t(k.label)}`, i.redirect = k.redirect, i.customTitle = k.customTitle);
1439
+ return e.forEach((a) => {
1440
+ if (a.links)
1441
+ a.links.forEach((y) => {
1442
+ HA({ path: y.link || "" }, location.pathname) && (u.item = y, u.title = `${I().t(y.label)}`, u.redirect = y.redirect, u.customTitle = y.customTitle);
1342
1443
  });
1343
- else if (t.link && !i.item) {
1344
- const k = $A({ path: t.link }, location.pathname);
1345
- k && (k.params && Object.keys(k.params).length > 0 ? i.title = `${k.params[Object.keys(k.params)[0]]}` : i.title = `${L().t(t.label)}`, i.item = t, i.redirect = t.redirect, i.customTitle = t.customTitle);
1444
+ else if (a.link && !u.item) {
1445
+ const y = HA({ path: a.link }, location.pathname);
1446
+ y && (y.params && Object.keys(y.params).length > 0 ? u.title = `${y.params[Object.keys(y.params)[0]]}` : u.title = `${I().t(a.label)}`, u.item = a, u.redirect = a.redirect, u.customTitle = a.customTitle);
1346
1447
  }
1347
- }), i.customTitle && (i.customTitle = i.customTitle.replace("$title", i.title)), i;
1448
+ }), u.customTitle && (u.customTitle = u.customTitle.replace("$title", u.title)), u;
1348
1449
  };
1349
1450
  U(() => {
1350
- p(h), K.current = !0;
1351
- }, [JSON.stringify(h)]);
1352
- const V = AA(a), J = AA(f);
1451
+ p(s), V.current = !0;
1452
+ }, [JSON.stringify(s)]);
1453
+ const J = rA(n), F = rA(C);
1353
1454
  U(() => {
1354
- if (K.current) {
1355
- K.current = !1, V.current = a, J.current = f;
1455
+ if (V.current) {
1456
+ V.current = !1, J.current = n, F.current = C;
1356
1457
  return;
1357
1458
  }
1358
- const g = JSON.stringify(V.current) !== JSON.stringify(a), i = J.current !== f;
1359
- if (g || i) {
1360
- const t = setTimeout(() => {
1361
- F.current?.(a), P.current?.(f);
1459
+ const b = JSON.stringify(J.current) !== JSON.stringify(n), u = F.current !== C;
1460
+ if (b || u) {
1461
+ const a = setTimeout(() => {
1462
+ O.current?.(n), S.current?.(C);
1362
1463
  }, 0);
1363
- return V.current = a, J.current = f, () => clearTimeout(t);
1464
+ return J.current = n, F.current = C, () => clearTimeout(a);
1364
1465
  }
1365
- }, [a, f]);
1366
- const Y = AA(s.pathname);
1466
+ }, [n, C]);
1467
+ const $ = rA(m.pathname);
1367
1468
  U(() => {
1368
- if (Y.current === s.pathname)
1469
+ if ($.current === m.pathname)
1369
1470
  return;
1370
- Y.current = s.pathname;
1371
- const g = oA(s.pathname);
1372
- if (g && g.item) {
1373
- const i = a.findIndex((t) => t.path === g.link);
1374
- if (i !== -1) {
1375
- if (a[i].title !== g.title) {
1376
- const t = [...a];
1377
- t[i] = { ...t[i], title: g.title }, p(t);
1471
+ $.current = m.pathname;
1472
+ const b = oA(m.pathname);
1473
+ if (b && b.item) {
1474
+ const u = n.findIndex((a) => a.path === b.link);
1475
+ if (u !== -1) {
1476
+ if (n[u].title !== b.title) {
1477
+ const a = [...n];
1478
+ a[u] = { ...a[u], title: b.title }, p(a);
1378
1479
  }
1379
- v(a[i].id);
1480
+ w(n[u].id);
1380
1481
  } else {
1381
- const t = {
1382
- id: `${g.link}`,
1383
- title: `${g.title}`,
1384
- path: `${g.link}`,
1482
+ const a = {
1483
+ id: `${b.link}`,
1484
+ title: `${b.title}`,
1485
+ path: `${b.link}`,
1385
1486
  active: !0,
1386
- content: g.item.component,
1387
- iconClass: g.item.icon,
1487
+ content: b.item.component,
1488
+ iconClass: b.item.icon,
1388
1489
  closeButton: !0,
1389
- redirect: g.redirect,
1390
- customTitle: g.customTitle
1391
- }, k = [...a.map((T) => ({ ...T, active: !1 })), t];
1392
- p(k), v(t.id);
1490
+ redirect: b.redirect,
1491
+ customTitle: b.customTitle
1492
+ }, y = [...n.map((D) => ({ ...D, active: !1 })), a];
1493
+ p(y), w(a.id);
1393
1494
  }
1394
1495
  }
1395
- }, [s.pathname]);
1396
- const nA = (g) => {
1397
- const i = a.filter((t) => t.id === g);
1398
- i && i.length > 0 && s.pathname !== i[0].path && r(i[0].path), c(() => {
1399
- v(g);
1496
+ }, [m.pathname]);
1497
+ const eA = (b) => {
1498
+ const u = n.filter((a) => a.id === b);
1499
+ u && u.length > 0 && m.pathname !== u[0].path && t(u[0].path), i(() => {
1500
+ w(b);
1400
1501
  });
1401
- }, W = (g) => {
1402
- console.log(`[TabContainer] handleOnCloseRequest - User clicked close on tab: ${g}`);
1502
+ }, R = (b) => {
1503
+ console.log(`[TabContainer] handleOnCloseRequest - User clicked close on tab: ${b}`);
1403
1504
  try {
1404
- R({ type: "USER_CLOSE_REQUEST", link: g });
1405
- } catch (i) {
1406
- console.error("[TabContainer] Dispatch failed:", i);
1505
+ x({ type: "USER_CLOSE_REQUEST", link: b });
1506
+ } catch (u) {
1507
+ console.error("[TabContainer] Dispatch failed:", u);
1407
1508
  }
1408
- }, Z = aA(() => {
1409
- if (p([]), v(void 0), !b.navigationRootLink) {
1509
+ }, M = sA(() => {
1510
+ if (p([]), w(void 0), !g.navigationRootLink) {
1410
1511
  console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
1411
1512
  return;
1412
1513
  }
1413
- r(b.navigationRootLink);
1414
- }, [r, b.navigationRootLink]), _ = aA((g) => {
1415
- const i = a.findIndex((m) => m.id === g);
1416
- if (i <= 0)
1514
+ t(g.navigationRootLink);
1515
+ }, [t, g.navigationRootLink]), W = sA((b) => {
1516
+ const u = n.findIndex((E) => E.id === b);
1517
+ if (u <= 0)
1417
1518
  return;
1418
- const t = a.slice(i), k = t.find((m) => m.id === f)?.id || t[0]?.id, T = t.map((m) => ({
1419
- ...m,
1420
- active: m.id === k
1519
+ const a = n.slice(u), y = a.find((E) => E.id === C)?.id || a[0]?.id, D = a.map((E) => ({
1520
+ ...E,
1521
+ active: E.id === y
1421
1522
  }));
1422
- if (p(T), k) {
1423
- v(k);
1424
- const m = T.find((z) => z.id === k);
1425
- m && s.pathname !== m.path && r(m.path);
1523
+ if (p(D), y) {
1524
+ w(y);
1525
+ const E = D.find((B) => B.id === y);
1526
+ E && m.pathname !== E.path && t(E.path);
1426
1527
  }
1427
- }, [a, f, r, s.pathname]), q = aA((g) => {
1428
- const i = a.findIndex((m) => m.id === g);
1429
- if (i === -1 || i >= a.length - 1)
1528
+ }, [n, C, t, m.pathname]), q = sA((b) => {
1529
+ const u = n.findIndex((E) => E.id === b);
1530
+ if (u === -1 || u >= n.length - 1)
1430
1531
  return;
1431
- const t = a.slice(0, i + 1), k = t.find((m) => m.id === f)?.id || t[t.length - 1]?.id, T = t.map((m) => ({
1432
- ...m,
1433
- active: m.id === k
1532
+ const a = n.slice(0, u + 1), y = a.find((E) => E.id === C)?.id || a[a.length - 1]?.id, D = a.map((E) => ({
1533
+ ...E,
1534
+ active: E.id === y
1434
1535
  }));
1435
- if (p(T), k) {
1436
- v(k);
1437
- const m = T.find((z) => z.id === k);
1438
- m && s.pathname !== m.path && r(m.path);
1536
+ if (p(D), y) {
1537
+ w(y);
1538
+ const E = D.find((B) => B.id === y);
1539
+ E && m.pathname !== E.path && t(E.path);
1439
1540
  }
1440
- }, [a, f, r, s.pathname]), $ = aA((g) => {
1441
- const i = a.find((k) => k.id === g);
1442
- if (!i)
1541
+ }, [n, C, t, m.pathname]), G = sA((b) => {
1542
+ const u = n.find((y) => y.id === b);
1543
+ if (!u)
1443
1544
  return;
1444
- const t = [{ ...i, active: !0 }];
1445
- p(t), v(g), s.pathname !== i.path && r(i.path);
1446
- }, [a, r, s.pathname]);
1447
- return /* @__PURE__ */ A("div", { ref: C, children: /* @__PURE__ */ A(
1448
- so,
1545
+ const a = [{ ...u, active: !0 }];
1546
+ p(a), w(b), m.pathname !== u.path && t(u.path);
1547
+ }, [n, t, m.pathname]);
1548
+ return /* @__PURE__ */ A("div", { ref: h, children: /* @__PURE__ */ A(
1549
+ hr,
1449
1550
  {
1450
1551
  buttonCloseOnlyActiveTab: !0,
1451
- onClick: (g) => nA(g),
1452
- onTabClose: (g) => W(g),
1453
- onTabChange: (g) => null,
1454
- onCloseAllTabs: Z,
1455
- onCloseLeftTabs: _,
1552
+ onClick: (b) => eA(b),
1553
+ onTabClose: (b) => R(b),
1554
+ onTabChange: (b) => null,
1555
+ onCloseAllTabs: M,
1556
+ onCloseLeftTabs: W,
1456
1557
  onCloseRightTabs: q,
1457
- onCloseOtherTabs: $,
1458
- currentTabs: ((g) => g.map((i) => ({
1459
- key: i.id,
1460
- favicon: i.iconClass,
1461
- title: i.title,
1462
- customTitle: i.customTitle
1463
- })))(a),
1464
- activeTab: f,
1465
- dark: l === "dark"
1558
+ onCloseOtherTabs: G,
1559
+ currentTabs: ((b) => b.map((u) => ({
1560
+ key: u.id,
1561
+ favicon: u.iconClass,
1562
+ title: u.title,
1563
+ customTitle: u.customTitle
1564
+ })))(n),
1565
+ activeTab: C,
1566
+ dark: d === "dark"
1466
1567
  }
1467
1568
  ) });
1468
1569
  }
1469
- const Do = () => j.createElement("div", null, "Home View"), Io = () => j.createElement("div", null, "Pedido Form"), Qo = () => j.createElement("div", null, "Pedido View"), Oo = () => j.createElement("div", null, "Pessoa Form"), No = () => j.createElement("div", null, "Pessoa View"), Po = {
1570
+ const Nr = () => AA.createElement("div", null, "Home View"), $r = () => AA.createElement("div", null, "Pedido Form"), Ur = () => AA.createElement("div", null, "Pedido View"), Fr = () => AA.createElement("div", null, "Pessoa Form"), qr = () => AA.createElement("div", null, "Pessoa View"), Br = {
1470
1571
  label: "Dashboard",
1471
- icon: /* @__PURE__ */ A(Se, {}),
1572
+ icon: /* @__PURE__ */ A(Te, {}),
1472
1573
  link: "/dashboard",
1473
1574
  category: "DASHBOARD",
1474
1575
  color: "teal",
1475
1576
  component: /* @__PURE__ */ A("div", {}),
1476
1577
  showInSidebar: !0
1477
- }, zo = {
1578
+ }, Vr = {
1478
1579
  label: "Home",
1479
- icon: /* @__PURE__ */ A(xe, {}),
1580
+ icon: /* @__PURE__ */ A(Le, {}),
1480
1581
  link: "/home",
1481
1582
  category: "HOME",
1482
1583
  color: "teal",
1483
- component: /* @__PURE__ */ A(Do, {}),
1584
+ component: /* @__PURE__ */ A(Nr, {}),
1484
1585
  showInSidebar: !0,
1485
1586
  keepAlive: !0
1486
- }, $o = {
1587
+ }, Hr = {
1487
1588
  label: "Consulta lista pessoas",
1488
1589
  link: "/pessoa/consulta",
1489
- icon: /* @__PURE__ */ A(XA, {}),
1590
+ icon: /* @__PURE__ */ A(ZA, {}),
1490
1591
  category: "PESSOAS",
1491
1592
  color: "pink",
1492
- component: /* @__PURE__ */ A(No, {}),
1593
+ component: /* @__PURE__ */ A(qr, {}),
1493
1594
  showInSidebar: !0,
1494
1595
  keepAlive: !0
1495
- }, Mo = {
1596
+ }, Gr = {
1496
1597
  label: "Nova pessoa",
1497
1598
  link: "/pessoa/nova",
1498
- icon: /* @__PURE__ */ A(Re, {}),
1599
+ icon: /* @__PURE__ */ A(Pe, {}),
1499
1600
  category: "PESSOAS",
1500
1601
  color: "pink",
1501
- component: /* @__PURE__ */ A(Oo, {}),
1602
+ component: /* @__PURE__ */ A(Fr, {}),
1502
1603
  showInSidebar: !0,
1503
1604
  keepAlive: !0
1504
- }, Uo = {
1605
+ }, Kr = {
1505
1606
  label: "Pessoas",
1506
- icon: /* @__PURE__ */ A(Ee, {}),
1507
- links: [$o, Mo],
1607
+ icon: /* @__PURE__ */ A(Ie, {}),
1608
+ links: [Hr, Gr],
1508
1609
  category: "PESSOAS",
1509
1610
  color: "pink",
1510
1611
  showInSidebar: !0
1511
- }, Fo = {
1612
+ }, Yr = {
1512
1613
  label: "Consulta lista pedidos",
1513
1614
  link: "/pedido/consulta",
1514
- icon: /* @__PURE__ */ A(XA, {}),
1615
+ icon: /* @__PURE__ */ A(ZA, {}),
1515
1616
  category: "PEDIDOS",
1516
1617
  color: "yellow",
1517
- component: /* @__PURE__ */ A(Qo, {}),
1618
+ component: /* @__PURE__ */ A(Ur, {}),
1518
1619
  showInSidebar: !0,
1519
1620
  keepAlive: !0
1520
- }, qo = {
1621
+ }, Xr = {
1521
1622
  label: "Novo pedido",
1522
1623
  link: "/pedido/novo",
1523
- icon: /* @__PURE__ */ A(Te, {}),
1624
+ icon: /* @__PURE__ */ A(Oe, {}),
1524
1625
  category: "PEDIDOS",
1525
1626
  color: "yellow",
1526
- component: /* @__PURE__ */ A(Io, {}),
1627
+ component: /* @__PURE__ */ A($r, {}),
1527
1628
  showInSidebar: !0,
1528
1629
  keepAlive: !0
1529
- }, Bo = {
1630
+ }, Jr = {
1530
1631
  label: "Pedidos",
1531
- icon: /* @__PURE__ */ A(Le, {}),
1532
- links: [Fo, qo],
1632
+ icon: /* @__PURE__ */ A(De, {}),
1633
+ links: [Yr, Xr],
1533
1634
  category: "PEDIDOS",
1534
1635
  color: "yellow",
1535
1636
  showInSidebar: !0
1536
- }, Ho = {
1637
+ }, jr = {
1537
1638
  label: "Configurações",
1538
1639
  link: "/config",
1539
- icon: /* @__PURE__ */ A(De, {}),
1640
+ icon: /* @__PURE__ */ A(Qe, {}),
1540
1641
  category: "CONFIGURAÇÕES",
1541
1642
  color: "lime",
1542
1643
  component: /* @__PURE__ */ A("div", {}),
1543
1644
  showInSidebar: !0
1544
- }, Cn = [
1545
- zo,
1546
- Po,
1547
- Uo,
1548
- Bo,
1549
- Ho
1645
+ }, Lo = [
1646
+ Vr,
1647
+ Br,
1648
+ Kr,
1649
+ Jr,
1650
+ jr
1550
1651
  ];
1551
- function vn({ children: e, title: n = "", size: d = "440px", drawerKey: o, styles: h }) {
1552
- const [u, { open: c, close: r }] = le(!1), [l] = WA(), a = Ze(), p = _e();
1652
+ function To({
1653
+ itemCount: e = 8,
1654
+ collapsed: o = !1,
1655
+ backgroundColor: c
1656
+ }) {
1657
+ const r = vA(), { colorScheme: s } = nA(), l = c ?? (s === "dark" ? r.colors.dark[7] : r.white);
1658
+ return o ? /* @__PURE__ */ A(
1659
+ lA,
1660
+ {
1661
+ gap: "sm",
1662
+ p: "xs",
1663
+ align: "center",
1664
+ style: {
1665
+ backgroundColor: l,
1666
+ width: "100%",
1667
+ height: "100%"
1668
+ },
1669
+ children: Array.from({ length: e }).map((i, t) => /* @__PURE__ */ A(
1670
+ mA,
1671
+ {
1672
+ height: 32,
1673
+ width: 32,
1674
+ radius: "sm"
1675
+ },
1676
+ t
1677
+ ))
1678
+ }
1679
+ ) : /* @__PURE__ */ A(
1680
+ lA,
1681
+ {
1682
+ gap: "xs",
1683
+ p: "md",
1684
+ style: {
1685
+ backgroundColor: l,
1686
+ flex: 1,
1687
+ width: "100%",
1688
+ height: "100%"
1689
+ },
1690
+ children: Array.from({ length: e }).map((i, t) => /* @__PURE__ */ P(OA, { gap: "sm", wrap: "nowrap", children: [
1691
+ /* @__PURE__ */ A(
1692
+ mA,
1693
+ {
1694
+ height: 24,
1695
+ width: 24,
1696
+ radius: "sm"
1697
+ }
1698
+ ),
1699
+ /* @__PURE__ */ A(
1700
+ mA,
1701
+ {
1702
+ height: 18,
1703
+ radius: "xl",
1704
+ style: { flex: 1 }
1705
+ }
1706
+ )
1707
+ ] }, t))
1708
+ }
1709
+ );
1710
+ }
1711
+ function Io({
1712
+ groupCount: e = 3,
1713
+ width: o = "80px",
1714
+ height: c = "100%",
1715
+ backgroundColor: r
1716
+ }) {
1717
+ const s = vA(), { colorScheme: l } = nA(), i = r ?? (l === "dark" ? s.colors[s.primaryColor][6] : s.colors[s.primaryColor][7]);
1718
+ return /* @__PURE__ */ A(
1719
+ lA,
1720
+ {
1721
+ gap: "md",
1722
+ p: "xs",
1723
+ align: "center",
1724
+ style: {
1725
+ width: o,
1726
+ height: c,
1727
+ backgroundColor: i
1728
+ },
1729
+ children: Array.from({ length: e }).map((t, d) => /* @__PURE__ */ P(lA, { gap: 4, align: "center", children: [
1730
+ /* @__PURE__ */ A(
1731
+ mA,
1732
+ {
1733
+ height: 48,
1734
+ width: 48,
1735
+ radius: "md",
1736
+ circle: !1
1737
+ }
1738
+ ),
1739
+ /* @__PURE__ */ A(
1740
+ mA,
1741
+ {
1742
+ height: 10,
1743
+ width: 40,
1744
+ radius: "xl"
1745
+ }
1746
+ )
1747
+ ] }, d))
1748
+ }
1749
+ );
1750
+ }
1751
+ function Po({
1752
+ message: e,
1753
+ backgroundColor: o,
1754
+ children: c
1755
+ }) {
1756
+ const r = vA(), { colorScheme: s } = nA(), l = o ?? (s === "dark" ? r.colors.dark[7] : r.white), i = s === "dark" ? r.colors.red[4] : r.colors.red[6];
1757
+ return c ? /* @__PURE__ */ A(iA, { children: c }) : /* @__PURE__ */ A(XA, { p: "md", style: { backgroundColor: l, flex: 1, height: "100%" }, children: /* @__PURE__ */ P(lA, { align: "center", gap: "xs", children: [
1758
+ /* @__PURE__ */ A(ze, { size: 32, color: i }),
1759
+ /* @__PURE__ */ A(QA, { size: "sm", c: i, ta: "center", children: e })
1760
+ ] }) });
1761
+ }
1762
+ function Do({ children: e, title: o = "", size: c = "440px", drawerKey: r, styles: s }) {
1763
+ const [l, { open: i, close: t }] = he(!1), [d] = ee(), n = tr(), p = FA();
1553
1764
  return U(() => {
1554
- l.get("drawer") === o && c();
1555
- }, [l]), /* @__PURE__ */ A(
1556
- GA,
1765
+ d.get("drawer") === r && i();
1766
+ }, [d]), /* @__PURE__ */ A(
1767
+ JA,
1557
1768
  {
1558
1769
  position: "right",
1559
- opened: u,
1770
+ opened: l,
1560
1771
  onClose: () => {
1561
- r();
1562
- const v = new URLSearchParams(l);
1563
- v.delete("drawer"), a({
1772
+ t();
1773
+ const w = new URLSearchParams(d);
1774
+ w.delete("drawer"), n({
1564
1775
  pathname: p.pathname,
1565
- search: v.toString()
1776
+ search: w.toString()
1566
1777
  });
1567
1778
  },
1568
- title: n,
1569
- size: d,
1570
- styles: h,
1779
+ title: o,
1780
+ size: c,
1781
+ styles: s,
1571
1782
  children: e
1572
1783
  }
1573
1784
  );
1574
1785
  }
1575
- function Ko(e) {
1576
- const n = QA(), d = OA(), [o] = WA();
1786
+ function Wr(e) {
1787
+ const o = $A(), c = UA(), [r] = ee();
1577
1788
  return { openDrawer: () => {
1578
- const u = new URLSearchParams(o);
1579
- u.set("drawer", e), n({
1580
- pathname: d.pathname,
1581
- search: u.toString()
1789
+ const l = new URLSearchParams(r);
1790
+ l.set("drawer", e), o({
1791
+ pathname: c.pathname,
1792
+ search: l.toString()
1582
1793
  });
1583
1794
  } };
1584
1795
  }
1585
- function kn({ drawerKey: e }) {
1586
- const { openDrawer: n } = Ko(e);
1796
+ function Oo({ drawerKey: e }) {
1797
+ const { openDrawer: o } = Wr(e);
1587
1798
  return U(() => {
1588
- n();
1799
+ o();
1589
1800
  }, []), null;
1590
1801
  }
1591
- const Go = {
1802
+ const Zr = {
1592
1803
  // Campos de identificação
1593
1804
  showNickname: !0,
1594
1805
  // Configurações de campos obrigatórios
@@ -1596,47 +1807,47 @@ const Go = {
1596
1807
  avatarMaxSizeKB: 2e3,
1597
1808
  avatarImageQuality: 1
1598
1809
  };
1599
- function mn({ opened: e, handleClose: n, userId: d, updateUser: o, options: h }) {
1600
- const u = ie(), c = ce(), r = Ie(), l = lo(`myProfile${d}Store`), a = io(Qe.User), p = { ...Go, ...h ?? {} }, { dataSource: f, isLoading: v, error: s, isError: C, clearError: w } = co({
1601
- name: `dsUser${d}`,
1602
- label: `${L().t("archbase:My Profile")}`,
1603
- service: a,
1604
- store: l,
1810
+ function Qo({ opened: e, handleClose: o, userId: c, updateUser: r, options: s }) {
1811
+ const l = pe(), i = ge(), t = Me(), d = pr(`myProfile${c}Store`), n = gr(Ne.User), p = { ...Zr, ...s ?? {} }, { dataSource: C, isLoading: w, error: m, isError: h, clearError: f } = fr({
1812
+ name: `dsUser${c}`,
1813
+ label: `${I().t("archbase:My Profile")}`,
1814
+ service: n,
1815
+ store: d,
1605
1816
  pageSize: 50,
1606
1817
  loadOnStart: !0,
1607
- validator: r,
1608
- id: d,
1609
- onLoadComplete: (R) => {
1610
- R.isBrowsing() && R.edit(), c();
1818
+ validator: t,
1819
+ id: c,
1820
+ onLoadComplete: (x) => {
1821
+ x.isBrowsing() && x.edit(), i();
1611
1822
  },
1612
- onDestroy: (R) => {
1823
+ onDestroy: (x) => {
1613
1824
  },
1614
- onError: (R, b) => {
1615
- no.showError(L().t("archbase:WARNING"), R, b);
1825
+ onError: (x, g) => {
1826
+ lr.showError(I().t("archbase:WARNING"), x, g);
1616
1827
  }
1617
1828
  });
1618
1829
  U(() => {
1619
- e && f && f.isBrowsing() && f.edit();
1620
- }, [f, e]);
1621
- const x = (R) => {
1622
- R && (console.log(R), o(R.name, R.avatar));
1830
+ e && C && C.isBrowsing() && C.edit();
1831
+ }, [C, e]);
1832
+ const k = (x) => {
1833
+ x && (console.log(x), r(x.name, x.avatar));
1623
1834
  };
1624
1835
  return /* @__PURE__ */ A(
1625
- uo,
1836
+ br,
1626
1837
  {
1627
- title: L().t("archbase:My Profile"),
1838
+ title: I().t("archbase:My Profile"),
1628
1839
  size: 800,
1629
1840
  height: "500px",
1630
1841
  opened: e,
1631
- dataSource: f,
1632
- onClickOk: n,
1633
- onClickCancel: n,
1634
- onAfterSave: x,
1635
- children: /* @__PURE__ */ A(TA, { style: { height: "440px" }, ref: u, children: /* @__PURE__ */ I(vA, { children: [
1636
- /* @__PURE__ */ A(vA, { align: "center", children: /* @__PURE__ */ A(
1637
- ro,
1842
+ dataSource: C,
1843
+ onClickOk: o,
1844
+ onClickCancel: o,
1845
+ onAfterSave: k,
1846
+ children: /* @__PURE__ */ A(zA, { style: { height: "440px" }, ref: l, children: /* @__PURE__ */ P(lA, { children: [
1847
+ /* @__PURE__ */ A(lA, { align: "center", children: /* @__PURE__ */ A(
1848
+ cr,
1638
1849
  {
1639
- dataSource: f,
1850
+ dataSource: C,
1640
1851
  dataField: "avatar",
1641
1852
  width: 200,
1642
1853
  height: 200,
@@ -1645,31 +1856,31 @@ function mn({ opened: e, handleClose: n, userId: d, updateUser: o, options: h })
1645
1856
  }
1646
1857
  ) }),
1647
1858
  /* @__PURE__ */ A(
1648
- yA,
1859
+ TA,
1649
1860
  {
1650
- label: `${L().t("archbase:Nome completo")}`,
1651
- placeholder: `${L().t("archbase:Informe o nome completo do usuário")}`,
1652
- dataSource: f,
1861
+ label: `${I().t("archbase:Nome completo")}`,
1862
+ placeholder: `${I().t("archbase:Informe o nome completo do usuário")}`,
1863
+ dataSource: C,
1653
1864
  dataField: "name",
1654
1865
  required: !0
1655
1866
  }
1656
1867
  ),
1657
1868
  p.showNickname && /* @__PURE__ */ A(
1658
- yA,
1869
+ TA,
1659
1870
  {
1660
- label: `${L().t("archbase:Apelido")}`,
1661
- placeholder: `${L().t("archbase:Apelido")}`,
1662
- dataSource: f,
1871
+ label: `${I().t("archbase:Apelido")}`,
1872
+ placeholder: `${I().t("archbase:Apelido")}`,
1873
+ dataSource: C,
1663
1874
  dataField: "nickname",
1664
1875
  required: p.requiredNickname
1665
1876
  }
1666
1877
  ),
1667
1878
  /* @__PURE__ */ A(
1668
- yA,
1879
+ TA,
1669
1880
  {
1670
- label: `${L().t("archbase:Descrição do usuário")}`,
1671
- placeholder: `${L().t("archbase:Informe a descrição do usuário")}`,
1672
- dataSource: f,
1881
+ label: `${I().t("archbase:Descrição do usuário")}`,
1882
+ placeholder: `${I().t("archbase:Informe a descrição do usuário")}`,
1883
+ dataSource: C,
1673
1884
  dataField: "description",
1674
1885
  required: !0
1675
1886
  }
@@ -1678,39 +1889,46 @@ function mn({ opened: e, handleClose: n, userId: d, updateUser: o, options: h })
1678
1889
  }
1679
1890
  );
1680
1891
  }
1681
- const wn = ho((e) => ({
1892
+ const zo = mr((e) => ({
1682
1893
  nameStore: "ADMIN_STORE",
1683
1894
  openedTabs: [],
1684
1895
  activeTabId: void 0,
1685
1896
  collapsed: !1,
1686
- setOpenedTabs: (n) => e({ openedTabs: n }),
1687
- setActiveTabId: (n) => e({ activeTabId: n }),
1688
- setCollapsed: (n) => e({ collapsed: n })
1897
+ setOpenedTabs: (o) => e({ openedTabs: o }),
1898
+ setActiveTabId: (o) => e({ activeTabId: o }),
1899
+ setCollapsed: (o) => e({ collapsed: o })
1689
1900
  }));
1690
1901
  export {
1691
- wA as ArchbaseAdminLayoutContext,
1692
- un as ArchbaseAdminLayoutFooter,
1693
- hn as ArchbaseAdminLayoutHeader,
1694
- po as ArchbaseAdminLayoutProvider,
1695
- pn as ArchbaseAdminMainLayout,
1696
- bn as ArchbaseAdminTabContainer,
1697
- FA as ArchbaseAdvancedSidebar,
1698
- So as ArchbaseAliveAbleRoutes,
1699
- go as ArchbaseChangeLanguageAction,
1700
- bo as ArchbaseColorSchemeAction,
1701
- vn as ArchbaseDrawerContent,
1702
- kn as ArchbaseDrawerTrigger,
1703
- Co as ArchbaseHeaderNavAction,
1704
- kA as ArchbaseKeepAliveRoute,
1705
- mn as ArchbaseMyProfileModal,
1706
- ne as ArchbaseNavigationContext,
1707
- gn as ArchbaseNavigationProvider,
1708
- ko as CommandPaletteButton,
1709
- mo as defaultAvatar,
1710
- Go as defaultMyProfileModalOptions,
1711
- Cn as navigationDataSample,
1712
- wn as useArchbaseAdminStore,
1713
- Ko as useArchbaseDrawer,
1714
- re as useArchbaseNavigationContext,
1715
- fn as useArchbaseNavigationListener
1902
+ SA as ArchbaseAdminLayoutContext,
1903
+ Co as ArchbaseAdminLayoutFooter,
1904
+ vo as ArchbaseAdminLayoutHeader,
1905
+ Cr as ArchbaseAdminLayoutProvider,
1906
+ yo as ArchbaseAdminMainLayout,
1907
+ Ro as ArchbaseAdminTabContainer,
1908
+ YA as ArchbaseAdvancedSidebar,
1909
+ Dr as ArchbaseAliveAbleRoutes,
1910
+ vr as ArchbaseChangeLanguageAction,
1911
+ wr as ArchbaseColorSchemeAction,
1912
+ Do as ArchbaseDrawerContent,
1913
+ Oo as ArchbaseDrawerTrigger,
1914
+ xr as ArchbaseHeaderNavAction,
1915
+ xA as ArchbaseKeepAliveRoute,
1916
+ Qo as ArchbaseMyProfileModal,
1917
+ ie as ArchbaseNavigationContext,
1918
+ Eo as ArchbaseNavigationProvider,
1919
+ Er as CommandPaletteButton,
1920
+ Po as SidebarErrorMessage,
1921
+ Io as SidebarGroupsSkeleton,
1922
+ To as SidebarMenuSkeleton,
1923
+ Sr as defaultAvatar,
1924
+ Zr as defaultMyProfileModalOptions,
1925
+ Lo as navigationDataSample,
1926
+ zo as useArchbaseAdminStore,
1927
+ Wr as useArchbaseDrawer,
1928
+ le as useArchbaseNavigationContext,
1929
+ So as useArchbaseNavigationListener,
1930
+ wo as useArchbaseRouteParams,
1931
+ se as useKeepAliveCache,
1932
+ ko as useKeepAliveVisibility,
1933
+ xo as useParams
1716
1934
  };