@m4l/core 2.0.1 → 2.0.2

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.
Files changed (40) hide show
  1. package/contexts/AuthContext/index.db46edbc.js +150 -0
  2. package/contexts/DomainContext/{index-D24R5afH.js → index.2ed56159.js} +5 -7
  3. package/contexts/DomainCountryContext/index.506456a3.js +57 -0
  4. package/contexts/FlagsContext/{index-DcIX8FKd.js → index.5b096265.js} +1 -1
  5. package/contexts/ModuleDictionaryContext/index.a64207d4.js +81 -0
  6. package/contexts/ModulePrivilegesContext/index.79c3cc04.js +62 -0
  7. package/contexts/ModuleSkeletonContext/index.f6150fb9.js +30 -0
  8. package/contexts/NetworkContext/{index-C8wX3ESG.js → index.ec7405cd.js} +2 -2
  9. package/hooks/useAuth/index.4154d394.js +21 -0
  10. package/hooks/useBase/index.4375dcef.js +11 -0
  11. package/hooks/useDomain/{index-Bct5KNcv.js → index.be2722d9.js} +4 -3
  12. package/hooks/useEnvironment/index.25f83176.js +11 -0
  13. package/hooks/useFlagsStore/{index-EagkUnqK.js → index.f7c613ac.js} +4 -3
  14. package/hooks/useHostTools/index.66d9a667.js +11 -0
  15. package/hooks/useModuleDictionary/{index-C1BKVxpe.js → index.9004a259.js} +1 -1
  16. package/hooks/useModulePrivileges/{index-D14YH0TD.js → index.6ebd7c42.js} +1 -1
  17. package/hooks/useModuleSkeleton/{index-CBPHGKDR.js → index.1cdf5081.js} +1 -1
  18. package/hooks/useNetwork/index.3d79002b.js +11 -0
  19. package/hooks/usePaginate/{index-CUbw1Kpb.js → index.1306b0de.js} +2 -3
  20. package/hooks/usePropageteMF/{index-DEVKsg4w.js → index.c440b829.js} +1 -1
  21. package/index.js +75 -66
  22. package/{node_modules-C59GSzS1.js → node_modules.04fac7e9.js} +60 -36
  23. package/package.json +1 -1
  24. package/utils/{axiosOperation-CEky_K0E.js → axiosOperation.ac6c8eef.js} +1 -1
  25. package/utils/{index-BNOjc4WT.js → index.2f5ce5aa.js} +14 -10
  26. package/contexts/AuthContext/index-cvUlEja1.js +0 -136
  27. package/contexts/DomainCountryContext/index-Gjy6Za6i.js +0 -46
  28. package/contexts/ModuleDictionaryContext/index-kBzBlTUI.js +0 -71
  29. package/contexts/ModulePrivilegesContext/index-DsoWo0kK.js +0 -53
  30. package/contexts/ModuleSkeletonContext/index-CkhzuYKp.js +0 -20
  31. package/hooks/useAuth/index-BmbX0ftD.js +0 -10
  32. package/hooks/useBase/index-gThCdRe-.js +0 -10
  33. package/hooks/useEnvironment/index-D1xRKaoe.js +0 -10
  34. package/hooks/useHostTools/index-CL3d7qFm.js +0 -10
  35. package/hooks/useNetwork/index--IzMsMJ2.js +0 -10
  36. /package/contexts/BaseContext/{index-BZehLjuv.js → index.f9cdc955.js} +0 -0
  37. /package/contexts/EnvironmentContext/{index-CQz-FvKh.js → index.b33784cd.js} +0 -0
  38. /package/contexts/HostToolsContext/{index-DikGcxz8.js → index.499db832.js} +0 -0
  39. /package/hooks/useLocalStorage/{index-CsLmjbAr.js → index.91bc0791.js} +0 -0
  40. /package/types/{index-TbOJOhBX.js → index.42c24946.js} +0 -0
@@ -0,0 +1,150 @@
1
+ import { createContext as T, useReducer as y, useEffect as m } from "react";
2
+ import "../BaseContext/index.f9cdc955.js";
3
+ import { u as E } from "../../hooks/useEnvironment/index.25f83176.js";
4
+ import "../FlagsContext/index.5b096265.js";
5
+ import "zustand";
6
+ import { u as v } from "../../hooks/useHostTools/index.66d9a667.js";
7
+ import "../DomainContext/index.2ed56159.js";
8
+ import { u as D } from "../../hooks/useLocalStorage/index.91bc0791.js";
9
+ import "../ModuleDictionaryContext/index.a64207d4.js";
10
+ import "../ModulePrivilegesContext/index.79c3cc04.js";
11
+ import "../ModuleSkeletonContext/index.f6150fb9.js";
12
+ import { u as N } from "../../hooks/useNetwork/index.3d79002b.js";
13
+ import "../DomainCountryContext/index.506456a3.js";
14
+ import "../EnvironmentContext/index.b33784cd.js";
15
+ import "../HostToolsContext/index.499db832.js";
16
+ import "../NetworkContext/index.ec7405cd.js";
17
+ import { g as O, s as u } from "../../utils/index.2f5ce5aa.js";
18
+ import "axios";
19
+ import "qs";
20
+ import "camelcase-keys";
21
+ import "snakecase-keys";
22
+ import { E as S } from "../../types/index.42c24946.js";
23
+ import { jsx as U } from "react/jsx-runtime";
24
+ var o = /* @__PURE__ */ ((t) => (t.Initial = "INITIALIZE", t.Login = "LOGIN", t.Logout = "LOGOUT", t))(o || {});
25
+ const w = {
26
+ isAuthenticated: !1,
27
+ isInitialized: !1,
28
+ user: null
29
+ }, _ = (t, e) => {
30
+ switch (e.type) {
31
+ case "INITIALIZE":
32
+ return {
33
+ isAuthenticated: e.payload.isAuthenticated,
34
+ isInitialized: !0,
35
+ user: e.payload.user
36
+ };
37
+ case "LOGIN":
38
+ return {
39
+ ...t,
40
+ isAuthenticated: !0,
41
+ user: e.payload.user
42
+ };
43
+ case "LOGOUT":
44
+ return {
45
+ ...t,
46
+ isAuthenticated: !1,
47
+ user: null
48
+ };
49
+ default:
50
+ return t;
51
+ }
52
+ }, P = T(null);
53
+ function x(t) {
54
+ t({
55
+ type: o.Initial,
56
+ payload: {
57
+ isAuthenticated: !1,
58
+ user: null
59
+ }
60
+ });
61
+ }
62
+ function it(t) {
63
+ const {
64
+ children: e
65
+ } = t, [d, r] = y(_, w), {
66
+ events_add_listener: p
67
+ } = v(), {
68
+ networkOperation: n
69
+ } = N(), {
70
+ domain_token: h
71
+ } = E(), [f, l] = D(
72
+ "vSession",
73
+ new Date().getTime() + ""
74
+ );
75
+ m(() => {
76
+ (async () => {
77
+ n({
78
+ method: "GET",
79
+ endPoint: "auth/login",
80
+ parms: {
81
+ user_data: !0
82
+ },
83
+ checkUnAuthorized: !1
84
+ }).then((a) => {
85
+ r({
86
+ type: o.Initial,
87
+ payload: {
88
+ isAuthenticated: !0,
89
+ user: a.user
90
+ }
91
+ }), O("userData", {
92
+ email: a.user.email,
93
+ remember: !0
94
+ })?.email !== a.user.email && u("userData", {
95
+ email: a.user.email
96
+ }, !0);
97
+ }).catch(() => {
98
+ x(r);
99
+ });
100
+ })();
101
+ }, [f]);
102
+ const I = async (i, a, s) => {
103
+ await n({
104
+ endPoint: "auth/login",
105
+ method: "POST",
106
+ data: {
107
+ email: i,
108
+ password: a,
109
+ domain_token: h
110
+ }
111
+ }).then((L) => {
112
+ const A = L.data;
113
+ s ? u("userData", {
114
+ email: i,
115
+ remember: s
116
+ }) : u("userData", {
117
+ email: "",
118
+ remember: s
119
+ }), r({
120
+ type: o.Login,
121
+ payload: {
122
+ user: A
123
+ }
124
+ }), l(new Date().getTime() + "");
125
+ });
126
+ }, c = async (i) => {
127
+ i && await n({
128
+ endPoint: "auth/logout",
129
+ method: "POST"
130
+ }), r({
131
+ type: o.Logout
132
+ }), l(new Date().getTime() + "");
133
+ }, g = () => {
134
+ c(!1);
135
+ };
136
+ return m(function() {
137
+ p(S.EMMIT_EVENT_NET_SERVICE_UNAUTHORIZED, g);
138
+ }, []), /* @__PURE__ */ U(P.Provider, {
139
+ value: {
140
+ ...d,
141
+ login: I,
142
+ logout: c
143
+ },
144
+ children: e
145
+ });
146
+ }
147
+ export {
148
+ P as A,
149
+ it as a
150
+ };
@@ -1,9 +1,9 @@
1
1
  import { createContext as u, useState as g, useEffect as d } from "react";
2
- import { u as f } from "../../hooks/useFlagsStore/index-EagkUnqK.js";
3
- import { u as p } from "../../hooks/useEnvironment/index-D1xRKaoe.js";
4
- import { u as D } from "../../hooks/useNetwork/index--IzMsMJ2.js";
5
- import { C as l } from "../../types/index-TbOJOhBX.js";
6
- import { s as v } from "../../node_modules-C59GSzS1.js";
2
+ import { u as f } from "../../hooks/useFlagsStore/index.f7c613ac.js";
3
+ import { u as p } from "../../hooks/useEnvironment/index.25f83176.js";
4
+ import { u as D } from "../../hooks/useNetwork/index.3d79002b.js";
5
+ import { C as l } from "../../types/index.42c24946.js";
6
+ import { s as v } from "../../node_modules.04fac7e9.js";
7
7
  import { jsx as y } from "react/jsx-runtime";
8
8
  const $ = u(null);
9
9
  function C(r) {
@@ -46,8 +46,6 @@ function C(r) {
46
46
  }, []), /* @__PURE__ */ y($.Provider, {
47
47
  value: {
48
48
  ..._
49
- // formStatus,
50
- // setFormStatus,
51
49
  },
52
50
  children: e
53
51
  });
@@ -0,0 +1,57 @@
1
+ import { createContext as E, useState as d, useCallback as y } from "react";
2
+ import "../BaseContext/index.f9cdc955.js";
3
+ import "../EnvironmentContext/index.b33784cd.js";
4
+ import "../FlagsContext/index.5b096265.js";
5
+ import "zustand";
6
+ import { u as T } from "../../hooks/useHostTools/index.66d9a667.js";
7
+ import "../DomainContext/index.2ed56159.js";
8
+ import "../ModuleDictionaryContext/index.a64207d4.js";
9
+ import "../ModulePrivilegesContext/index.79c3cc04.js";
10
+ import "../ModuleSkeletonContext/index.f6150fb9.js";
11
+ import "../NetworkContext/index.ec7405cd.js";
12
+ import { u as f } from "../../hooks/usePropageteMF/index.c440b829.js";
13
+ import "../HostToolsContext/index.499db832.js";
14
+ import "../AuthContext/index.db46edbc.js";
15
+ import { E as i } from "../../types/index.42c24946.js";
16
+ import { jsx as D } from "react/jsx-runtime";
17
+ const M = E(null);
18
+ function V(n) {
19
+ const {
20
+ children: m,
21
+ isMicroFrontEnd: t,
22
+ id: e,
23
+ currency: s,
24
+ currency_decimal_digits: a,
25
+ decimal_symbol: c,
26
+ thousands_symbol: p
27
+ } = n, {
28
+ events_emit: u
29
+ } = T(), [_, l] = d({
30
+ id: e,
31
+ currency: s,
32
+ currency_decimal_digits: a,
33
+ decimal_symbol: c,
34
+ thousands_symbol: p
35
+ }), r = (o) => {
36
+ l(o);
37
+ };
38
+ f({
39
+ isMicroFrontEnd: t,
40
+ event: i.EMMIT_EVENT_HOST_DOMAIN_COUNTRY_CHANGE,
41
+ setHandler: r
42
+ });
43
+ const C = y((o) => {
44
+ t || (r(o), u(i.EMMIT_EVENT_HOST_DOMAIN_COUNTRY_CHANGE, o));
45
+ }, []);
46
+ return /* @__PURE__ */ D(M.Provider, {
47
+ value: {
48
+ ..._,
49
+ changeDomainCountry: C
50
+ },
51
+ children: m
52
+ });
53
+ }
54
+ export {
55
+ M as D,
56
+ V as a
57
+ };
@@ -1,7 +1,7 @@
1
1
  import { createContext as l, useRef as n } from "react";
2
2
  import { createStore as f } from "zustand";
3
3
  import { devtools as i } from "zustand/middleware";
4
- import { i as c } from "../../node_modules-C59GSzS1.js";
4
+ import { i as c } from "../../node_modules.04fac7e9.js";
5
5
  import { jsx as m } from "react/jsx-runtime";
6
6
  const g = (e) => f(
7
7
  i(
@@ -0,0 +1,81 @@
1
+ import { createContext as F, useState as y, useEffect as A, useCallback as m } from "react";
2
+ import "../BaseContext/index.f9cdc955.js";
3
+ import { u as L } from "../../hooks/useEnvironment/index.25f83176.js";
4
+ import { u as M } from "../../hooks/useFlagsStore/index.f7c613ac.js";
5
+ import { u as N } from "../../hooks/useHostTools/index.66d9a667.js";
6
+ import "../DomainContext/index.2ed56159.js";
7
+ import "../ModulePrivilegesContext/index.79c3cc04.js";
8
+ import "../ModuleSkeletonContext/index.f6150fb9.js";
9
+ import { u as P } from "../../hooks/useNetwork/index.3d79002b.js";
10
+ import "../DomainCountryContext/index.506456a3.js";
11
+ import "../EnvironmentContext/index.b33784cd.js";
12
+ import "../HostToolsContext/index.499db832.js";
13
+ import "../NetworkContext/index.ec7405cd.js";
14
+ import "../AuthContext/index.db46edbc.js";
15
+ import "../FlagsContext/index.5b096265.js";
16
+ import { C as _ } from "../../types/index.42c24946.js";
17
+ import { jsx as x } from "react/jsx-runtime";
18
+ const E = F(null);
19
+ function K(u) {
20
+ const {
21
+ children: l,
22
+ componentsDictionary: c,
23
+ moduleId: n,
24
+ moduleNameField: s = "module_name",
25
+ currentLang: d = "en",
26
+ isAuth: a = !0
27
+ } = u, p = M((t) => t.flagsActions.addFlag), [r, f] = y(void 0), {
28
+ domain_token: g
29
+ } = L(), {
30
+ startProgress: D,
31
+ stopProgress: h
32
+ } = N(), {
33
+ networkOperation: v
34
+ } = P();
35
+ A(() => {
36
+ let t = !0;
37
+ return D(), v({
38
+ method: "GET",
39
+ endPoint: a ? `dictionaries/${n}` : `na/dictionaries/${n}`,
40
+ parms: {
41
+ comps: c,
42
+ ...a ? {} : {
43
+ domain_token: g
44
+ }
45
+ }
46
+ }).then((o) => {
47
+ t && (f({
48
+ ...o
49
+ }), p(_.FLAG_DICTIONARY_LOADED));
50
+ }).finally(() => {
51
+ h();
52
+ }), function() {
53
+ t = !1;
54
+ };
55
+ }, [d]);
56
+ const i = m((t) => {
57
+ if (r === void 0)
58
+ return "";
59
+ if (t === "")
60
+ return "No key";
61
+ let o;
62
+ const e = t.split(".");
63
+ try {
64
+ e.length === 1 && (o = r.data[t]), e.length === 2 && (o = r[e[0]][e[1]]);
65
+ } catch {
66
+ }
67
+ return o || `N_D:[${t}]`;
68
+ }, [r]), C = m(() => i(s), [s, i]);
69
+ return /* @__PURE__ */ x(E.Provider, {
70
+ value: {
71
+ moduleDictionary: r,
72
+ getLabel: i,
73
+ getModuleLabel: C
74
+ },
75
+ children: l
76
+ });
77
+ }
78
+ export {
79
+ E as M,
80
+ K as a
81
+ };
@@ -0,0 +1,62 @@
1
+ import { createContext as c, useState as f, useEffect as d, useCallback as P } from "react";
2
+ import "../BaseContext/index.f9cdc955.js";
3
+ import "../EnvironmentContext/index.b33784cd.js";
4
+ import { u as v } from "../../hooks/useFlagsStore/index.f7c613ac.js";
5
+ import { u as E } from "../../hooks/useHostTools/index.66d9a667.js";
6
+ import "../DomainContext/index.2ed56159.js";
7
+ import "../ModuleDictionaryContext/index.a64207d4.js";
8
+ import "../ModuleSkeletonContext/index.f6150fb9.js";
9
+ import { u as h } from "../../hooks/useNetwork/index.3d79002b.js";
10
+ import "../DomainCountryContext/index.506456a3.js";
11
+ import "../HostToolsContext/index.499db832.js";
12
+ import "../NetworkContext/index.ec7405cd.js";
13
+ import "../AuthContext/index.db46edbc.js";
14
+ import "../FlagsContext/index.5b096265.js";
15
+ import { C as s } from "../../types/index.42c24946.js";
16
+ import { jsx as F } from "react/jsx-runtime";
17
+ const L = c(null);
18
+ function b(n) {
19
+ const {
20
+ children: a,
21
+ queryPrivileges: o
22
+ } = n, e = v((t) => t.flagsActions.addFlag), [r, l] = f({}), {
23
+ startProgress: m,
24
+ stopProgress: p
25
+ } = E(), {
26
+ networkOperation: u
27
+ } = h();
28
+ d(() => {
29
+ let t = !0;
30
+ if (o.length === 0) {
31
+ e(s.FLAG_PRIVILEGES_LOADED);
32
+ return;
33
+ }
34
+ return m(), u({
35
+ method: "GET",
36
+ endPoint: "auth/login",
37
+ parms: {
38
+ privileges: o
39
+ }
40
+ }).then((i) => {
41
+ t && (l({
42
+ ...i.data
43
+ }), e(s.FLAG_PRIVILEGES_LOADED));
44
+ }).finally(() => {
45
+ p();
46
+ }), function() {
47
+ t = !1;
48
+ };
49
+ }, []);
50
+ const g = P((t) => t in r, [r]);
51
+ return /* @__PURE__ */ F(L.Provider, {
52
+ value: {
53
+ hasPrivilege: g,
54
+ privileges: r
55
+ },
56
+ children: a
57
+ });
58
+ }
59
+ export {
60
+ L as M,
61
+ b as a
62
+ };
@@ -0,0 +1,30 @@
1
+ import { createContext as i } from "react";
2
+ import "../BaseContext/index.f9cdc955.js";
3
+ import "../EnvironmentContext/index.b33784cd.js";
4
+ import { a as m } from "../../hooks/useFlagsStore/index.f7c613ac.js";
5
+ import "../HostToolsContext/index.499db832.js";
6
+ import "../DomainContext/index.2ed56159.js";
7
+ import "../ModuleDictionaryContext/index.a64207d4.js";
8
+ import "../ModulePrivilegesContext/index.79c3cc04.js";
9
+ import "../NetworkContext/index.ec7405cd.js";
10
+ import "../DomainCountryContext/index.506456a3.js";
11
+ import "../AuthContext/index.db46edbc.js";
12
+ import "../FlagsContext/index.5b096265.js";
13
+ import { jsx as n } from "react/jsx-runtime";
14
+ const p = i(null);
15
+ function g(o) {
16
+ const {
17
+ children: t,
18
+ flags: r
19
+ } = o, e = !m(r);
20
+ return /* @__PURE__ */ n(p.Provider, {
21
+ value: {
22
+ isSkeleton: e
23
+ },
24
+ children: t
25
+ });
26
+ }
27
+ export {
28
+ p as M,
29
+ g as a
30
+ };
@@ -1,6 +1,6 @@
1
1
  import { createContext as i, useCallback as c } from "react";
2
- import { u as m } from "../../hooks/useEnvironment/index-D1xRKaoe.js";
3
- import { u } from "../../hooks/useHostTools/index-CL3d7qFm.js";
2
+ import { u as m } from "../../hooks/useEnvironment/index.25f83176.js";
3
+ import { u } from "../../hooks/useHostTools/index.66d9a667.js";
4
4
  import { jsx as l } from "react/jsx-runtime";
5
5
  const p = i(null);
6
6
  function d(t) {
@@ -0,0 +1,21 @@
1
+ import { useContext as o } from "react";
2
+ import "../../contexts/BaseContext/index.f9cdc955.js";
3
+ import "../../contexts/EnvironmentContext/index.b33784cd.js";
4
+ import "../../contexts/HostToolsContext/index.499db832.js";
5
+ import "../../contexts/NetworkContext/index.ec7405cd.js";
6
+ import { A as r } from "../../contexts/AuthContext/index.db46edbc.js";
7
+ import "../../contexts/FlagsContext/index.5b096265.js";
8
+ import "../../contexts/DomainContext/index.2ed56159.js";
9
+ import "../../contexts/ModuleDictionaryContext/index.a64207d4.js";
10
+ import "../../contexts/ModulePrivilegesContext/index.79c3cc04.js";
11
+ import "../../contexts/ModuleSkeletonContext/index.f6150fb9.js";
12
+ import "../../contexts/DomainCountryContext/index.506456a3.js";
13
+ const a = () => {
14
+ const t = o(r);
15
+ if (!t)
16
+ throw new Error("Auth context must be use inside AuthProvider");
17
+ return t;
18
+ };
19
+ export {
20
+ a as u
21
+ };
@@ -0,0 +1,11 @@
1
+ import { useContext as t } from "react";
2
+ import { B as o } from "../../contexts/BaseContext/index.f9cdc955.js";
3
+ function r() {
4
+ const e = t(o);
5
+ if (!e)
6
+ throw new Error("useBase context must be use inside BaseContext");
7
+ return e;
8
+ }
9
+ export {
10
+ r as u
11
+ };
@@ -1,9 +1,10 @@
1
1
  import { useContext as t } from "react";
2
- import { D as n } from "../../contexts/DomainContext/index-D24R5afH.js";
3
- import { D as e } from "../../contexts/DomainCountryContext/index-Gjy6Za6i.js";
2
+ import { D as n } from "../../contexts/DomainContext/index.2ed56159.js";
3
+ import { D as e } from "../../contexts/DomainCountryContext/index.506456a3.js";
4
4
  const m = () => {
5
5
  const o = t(n);
6
- if (!o) throw new Error("useDomain context must be use inside DomainContext");
6
+ if (!o)
7
+ throw new Error("useDomain context must be use inside DomainContext");
7
8
  return o;
8
9
  }, u = () => {
9
10
  const o = t(e);
@@ -0,0 +1,11 @@
1
+ import { useContext as t } from "react";
2
+ import { E as e } from "../../contexts/EnvironmentContext/index.b33784cd.js";
3
+ const s = () => {
4
+ const n = t(e);
5
+ if (!n)
6
+ throw new Error("useEnvironment context must be use inside EnvironmentContext");
7
+ return n;
8
+ };
9
+ export {
10
+ s as u
11
+ };
@@ -1,10 +1,11 @@
1
1
  import { useContext as o } from "react";
2
- import { F as i } from "../../contexts/FlagsContext/index-DcIX8FKd.js";
2
+ import { F as i } from "../../contexts/FlagsContext/index.5b096265.js";
3
3
  import { useStore as l } from "zustand";
4
- import { s as a } from "../../node_modules-C59GSzS1.js";
4
+ import { s as a } from "../../node_modules.04fac7e9.js";
5
5
  function u(t, s) {
6
6
  const e = o(i);
7
- if (!e) throw new Error("useFlagsStore context must be use inside FlagsProvider");
7
+ if (!e)
8
+ throw new Error("useFlagsStore context must be use inside FlagsProvider");
8
9
  return l(e, t, s);
9
10
  }
10
11
  function f(t, s) {
@@ -0,0 +1,11 @@
1
+ import { useContext as t } from "react";
2
+ import { H as s } from "../../contexts/HostToolsContext/index.499db832.js";
3
+ const n = () => {
4
+ const o = t(s);
5
+ if (!o)
6
+ throw new Error("useHostTools context must be use inside HostToolsContext");
7
+ return o;
8
+ };
9
+ export {
10
+ n as u
11
+ };
@@ -1,5 +1,5 @@
1
1
  import { useContext as t } from "react";
2
- import { M as e } from "../../contexts/ModuleDictionaryContext/index-kBzBlTUI.js";
2
+ import { M as e } from "../../contexts/ModuleDictionaryContext/index.a64207d4.js";
3
3
  const n = () => {
4
4
  const o = t(e);
5
5
  if (!o)
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../contexts/ModulePrivilegesContext/index-DsoWo0kK.js";
2
+ import { M as t } from "../../contexts/ModulePrivilegesContext/index.79c3cc04.js";
3
3
  const i = () => {
4
4
  const e = o(t);
5
5
  if (!e)
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useContext as s, useEffect as u } from "react";
2
- import { M as r } from "../../contexts/ModuleSkeletonContext/index-CkhzuYKp.js";
2
+ import { M as r } from "../../contexts/ModuleSkeletonContext/index.f6150fb9.js";
3
3
  const S = () => {
4
4
  const [t, o] = n(!0), e = s(r);
5
5
  if (!e)
@@ -0,0 +1,11 @@
1
+ import { useContext as e } from "react";
2
+ import { N as o } from "../../contexts/NetworkContext/index.ec7405cd.js";
3
+ const s = () => {
4
+ const t = e(o);
5
+ if (!t)
6
+ throw new Error("useNetwork context must be use inside NetworkContext");
7
+ return t;
8
+ };
9
+ export {
10
+ s as u
11
+ };
@@ -1,6 +1,6 @@
1
1
  import { useState as s, useRef as G, useCallback as H, useEffect as p } from "react";
2
- import { u as L } from "../useHostTools/index-CL3d7qFm.js";
3
- import { u as N } from "../useNetwork/index--IzMsMJ2.js";
2
+ import { u as L } from "../useHostTools/index.66d9a667.js";
3
+ import { u as N } from "../useNetwork/index.3d79002b.js";
4
4
  const a = {
5
5
  page: 0,
6
6
  rowsPerPage: 25,
@@ -51,7 +51,6 @@ const a = {
51
51
  r && (n(e.data), t.current.page = e.pager.page, g((x) => ({
52
52
  ...x,
53
53
  page: e.pager.page,
54
- // rowsPerPage: response.pager.limit,
55
54
  totalRecords: e.pager.total
56
55
  })));
57
56
  }), function() {
@@ -1,5 +1,5 @@
1
1
  import { useEffect as i } from "react";
2
- import { u as f } from "../useHostTools/index-CL3d7qFm.js";
2
+ import { u as f } from "../useHostTools/index.66d9a667.js";
3
3
  function c(s) {
4
4
  const { isMicroFrontEnd: e, event: t, setHandler: o } = s, { events_add_listener: r, events_remove_listener: n } = f();
5
5
  i(() => (e && r(t, o), () => {