@m4l/core 0.1.57 → 1.0.1

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 (29) hide show
  1. package/contexts/DomainContext/index.2ed56159.js +56 -0
  2. package/contexts/DomainCountryContext/index.e7a82641.js +55 -0
  3. package/contexts/FlagsContext/index.5b096265.js +41 -0
  4. package/contexts/FlagsContext/index.d.ts +10 -2
  5. package/contexts/FlagsContext/store.d.ts +11 -0
  6. package/contexts/FlagsContext/types.d.ts +9 -0
  7. package/contexts/ModuleDictionaryContext/index.011db031.js +76 -0
  8. package/contexts/ModulePrivilegesContext/index.a45d4cf7.js +58 -0
  9. package/contexts/ModuleSkeletonContext/index.2cd78f14.js +28 -0
  10. package/hooks/index.d.ts +1 -1
  11. package/hooks/useDomain/{index.38a2a89e.js → index.b743be01.js} +2 -2
  12. package/hooks/useFlagsStore/index.d.ts +3 -0
  13. package/hooks/useFlagsStore/index.f7c613ac.js +18 -0
  14. package/hooks/useModuleDictionary/{index.3305a123.js → index.0a0998b6.js} +1 -1
  15. package/hooks/useModulePrivileges/{index.cbe0c72f.js → index.24c10523.js} +1 -1
  16. package/hooks/useModuleSkeleton/{index.739fd422.js → index.12ff3650.js} +1 -1
  17. package/index.js +52 -49
  18. package/node_modules.04fac7e9.js +401 -0
  19. package/package.json +4 -2
  20. package/utils/{index.c7370abf.js → index.6d56ba04.js} +14 -10
  21. package/vite-env.d.ts +4 -4
  22. package/contexts/DomainContext/index.b9fd4c7f.js +0 -57
  23. package/contexts/DomainCountryContext/index.3cdf9462.js +0 -46
  24. package/contexts/FlagsContext/index.5f795859.js +0 -24
  25. package/contexts/ModuleDictionaryContext/index.848a0393.js +0 -73
  26. package/contexts/ModulePrivilegesContext/index.f1988b13.js +0 -54
  27. package/contexts/ModuleSkeletonContext/index.45963775.js +0 -20
  28. package/hooks/useFlags/index.a986729d.js +0 -21
  29. package/hooks/useFlags/index.d.ts +0 -3
@@ -0,0 +1,56 @@
1
+ import { createContext as u, useState as g, useEffect as d } from "react";
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
+ import { jsx as y } from "react/jsx-runtime";
8
+ const $ = u(null);
9
+ function C(r) {
10
+ const {
11
+ children: e
12
+ } = r, {
13
+ domain_token: i,
14
+ host_static_assets: o,
15
+ environment_assets: n
16
+ } = p(), t = f((s) => s.flagsActions.addFlag, v), [_, m] = g({
17
+ company_logo_small_url: "",
18
+ company_logo_normal_url: "",
19
+ name: "",
20
+ slogan: ""
21
+ }), {
22
+ networkOperation: c
23
+ } = D();
24
+ return d(() => {
25
+ let s = !0;
26
+ return c({
27
+ method: "GET",
28
+ endPoint: `na/info/${i}`
29
+ }).then((a) => {
30
+ s && (m({
31
+ ...a.data,
32
+ company_logo_normal_url: a.data.company_logo_normal_url ?? `${o}/${n}/frontend/commons/assets/icons/isologo.svg`,
33
+ company_logo_small_url: a.data.company_logo_small_url ?? `${o}/${n}/frontend/commons/assets/icons/isotipo_m4l.svg`
34
+ }), t(l.FLAG_DOMAIN_LOADED));
35
+ }).catch(() => {
36
+ m({
37
+ company_logo_normal_url: `${o}/${n}/frontend/commons/assets/icons/isologo.svg`,
38
+ company_logo_small_url: `${o}/${n}/frontend/commons/assets/icons/isotipo_m4l.svg`,
39
+ name: "Pending",
40
+ slogan: "Pending"
41
+ }), t(l.FLAG_DOMAIN_LOADED);
42
+ }).finally(() => {
43
+ }), function() {
44
+ s = !1;
45
+ };
46
+ }, []), /* @__PURE__ */ y($.Provider, {
47
+ value: {
48
+ ..._
49
+ },
50
+ children: e
51
+ });
52
+ }
53
+ export {
54
+ $ as D,
55
+ C as a
56
+ };
@@ -0,0 +1,55 @@
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.011db031.js";
9
+ import "../ModulePrivilegesContext/index.a45d4cf7.js";
10
+ import "../ModuleSkeletonContext/index.2cd78f14.js";
11
+ import "../NetworkContext/index.ec7405cd.js";
12
+ import { u as f } from "../../hooks/usePropageteMF/index.c440b829.js";
13
+ import { E as i } from "../../types/index.42c24946.js";
14
+ import { jsx as D } from "react/jsx-runtime";
15
+ const M = E(null);
16
+ function R(n) {
17
+ const {
18
+ children: e,
19
+ isMicroFrontEnd: t,
20
+ id: m,
21
+ currency: s,
22
+ currency_decimal_digits: a,
23
+ decimal_symbol: c,
24
+ thousands_symbol: u
25
+ } = n, {
26
+ events_emit: p
27
+ } = T(), [_, l] = d({
28
+ id: m,
29
+ currency: s,
30
+ currency_decimal_digits: a,
31
+ decimal_symbol: c,
32
+ thousands_symbol: u
33
+ }), r = (o) => {
34
+ l(o);
35
+ };
36
+ f({
37
+ isMicroFrontEnd: t,
38
+ event: i.EMMIT_EVENT_HOST_DOMAIN_COUNTRY_CHANGE,
39
+ setHandler: r
40
+ });
41
+ const C = y((o) => {
42
+ t || (r(o), p(i.EMMIT_EVENT_HOST_DOMAIN_COUNTRY_CHANGE, o));
43
+ }, []);
44
+ return /* @__PURE__ */ D(M.Provider, {
45
+ value: {
46
+ ..._,
47
+ changeDomainCountry: C
48
+ },
49
+ children: e
50
+ });
51
+ }
52
+ export {
53
+ M as D,
54
+ R as a
55
+ };
@@ -0,0 +1,41 @@
1
+ import { createContext as l, useRef as n } from "react";
2
+ import { createStore as f } from "zustand";
3
+ import { devtools as i } from "zustand/middleware";
4
+ import { i as c } from "../../node_modules.04fac7e9.js";
5
+ import { jsx as m } from "react/jsx-runtime";
6
+ const g = (e) => f(
7
+ i(
8
+ c((r) => ({
9
+ ...e,
10
+ flagsActions: {
11
+ clearFlags: () => {
12
+ r((o) => {
13
+ o.flags = [];
14
+ });
15
+ },
16
+ addFlag: (o) => {
17
+ r((t) => {
18
+ const a = t.flags;
19
+ a.findIndex((s) => s === o) < 0 && (t.flags = [...a, o]);
20
+ });
21
+ }
22
+ }
23
+ })),
24
+ { name: "FlagsStore" }
25
+ )
26
+ ), u = l(null);
27
+ function S({
28
+ children: e
29
+ }) {
30
+ const r = n();
31
+ return r.current || (r.current = g({
32
+ flags: []
33
+ })), /* @__PURE__ */ m(u.Provider, {
34
+ value: r.current,
35
+ children: e
36
+ });
37
+ }
38
+ export {
39
+ u as F,
40
+ S as a
41
+ };
@@ -1,5 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { FlagsContextProps, FlagsProviderProps } from './types';
3
- declare const FlagsContext: import("react").Context<FlagsContextProps | null>;
2
+ import { FlagsProviderProps } from './types';
3
+ declare const FlagsContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").FlagsStateWithActions>, "setState"> & {
4
+ setState<A extends string | {
5
+ type: unknown;
6
+ }>(partial: import("./types").FlagsStateWithActions | Partial<import("./types").FlagsStateWithActions> | ((state: import("./types").FlagsStateWithActions) => import("./types").FlagsStateWithActions | Partial<import("./types").FlagsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
+ }, "setState"> & {
8
+ setState(nextStateOrUpdater: import("./types").FlagsStateWithActions | Partial<import("./types").FlagsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").FlagsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
9
+ type: unknown;
10
+ } | undefined): void;
11
+ }) | null>;
4
12
  declare function FlagsProvider({ children }: FlagsProviderProps): import("react").JSX.Element;
5
13
  export { FlagsProvider, FlagsContext };
@@ -0,0 +1,11 @@
1
+ import { FlagsStateWithActions, FlagsStoreState } from './types';
2
+ export declare const createFlagsStore: (initialState: FlagsStoreState) => Omit<Omit<import("zustand").StoreApi<FlagsStateWithActions>, "setState"> & {
3
+ setState<A extends string | {
4
+ type: unknown;
5
+ }>(partial: FlagsStateWithActions | Partial<FlagsStateWithActions> | ((state: FlagsStateWithActions) => FlagsStateWithActions | Partial<FlagsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
6
+ }, "setState"> & {
7
+ setState(nextStateOrUpdater: FlagsStateWithActions | Partial<FlagsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<FlagsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
8
+ type: unknown;
9
+ } | undefined): void;
10
+ };
11
+ export declare type FlagsStore = ReturnType<typeof createFlagsStore>;
@@ -8,3 +8,12 @@ export interface FlagsContextProps {
8
8
  clearFlags: () => void;
9
9
  addFlag: (flag: Flag) => void;
10
10
  }
11
+ export interface FlagsStoreState {
12
+ flags: Array<Flag>;
13
+ }
14
+ export interface FlagsStateWithActions extends FlagsStoreState {
15
+ flagsActions: {
16
+ clearFlags: () => void;
17
+ addFlag: (flag: Flag) => void;
18
+ };
19
+ }
@@ -0,0 +1,76 @@
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.a45d4cf7.js";
8
+ import "../ModuleSkeletonContext/index.2cd78f14.js";
9
+ import { u as P } from "../../hooks/useNetwork/index.3d79002b.js";
10
+ import "../DomainCountryContext/index.e7a82641.js";
11
+ import { C as _ } from "../../types/index.42c24946.js";
12
+ import { jsx as x } from "react/jsx-runtime";
13
+ const E = F(null);
14
+ function Y(u) {
15
+ const {
16
+ children: l,
17
+ componentsDictionary: c,
18
+ moduleId: i,
19
+ moduleNameField: s = "module_name",
20
+ currentLang: d = "en",
21
+ isAuth: a = !0
22
+ } = u, p = M((t) => t.flagsActions.addFlag), [r, f] = y(void 0), {
23
+ domain_token: g
24
+ } = L(), {
25
+ startProgress: D,
26
+ stopProgress: h
27
+ } = N(), {
28
+ networkOperation: v
29
+ } = P();
30
+ A(() => {
31
+ let t = !0;
32
+ return D(), v({
33
+ method: "GET",
34
+ endPoint: a ? `dictionaries/${i}` : `na/dictionaries/${i}`,
35
+ parms: {
36
+ comps: c,
37
+ ...a ? {} : {
38
+ domain_token: g
39
+ }
40
+ }
41
+ }).then((o) => {
42
+ t && (f({
43
+ ...o
44
+ }), p(_.FLAG_DICTIONARY_LOADED));
45
+ }).finally(() => {
46
+ h();
47
+ }), function() {
48
+ t = !1;
49
+ };
50
+ }, [d]);
51
+ const n = m((t) => {
52
+ if (r === void 0)
53
+ return "";
54
+ if (t === "")
55
+ return "No key";
56
+ let o;
57
+ const e = t.split(".");
58
+ try {
59
+ e.length === 1 && (o = r.data[t]), e.length === 2 && (o = r[e[0]][e[1]]);
60
+ } catch {
61
+ }
62
+ return o || `N_D:[${t}]`;
63
+ }, [r]), C = m(() => n(s), [s, n]);
64
+ return /* @__PURE__ */ x(E.Provider, {
65
+ value: {
66
+ moduleDictionary: r,
67
+ getLabel: n,
68
+ getModuleLabel: C
69
+ },
70
+ children: l
71
+ });
72
+ }
73
+ export {
74
+ E as M,
75
+ Y as a
76
+ };
@@ -0,0 +1,58 @@
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.011db031.js";
8
+ import "../ModuleSkeletonContext/index.2cd78f14.js";
9
+ import { u as h } from "../../hooks/useNetwork/index.3d79002b.js";
10
+ import "../DomainCountryContext/index.e7a82641.js";
11
+ import { C as i } from "../../types/index.42c24946.js";
12
+ import { jsx as F } from "react/jsx-runtime";
13
+ const L = c(null);
14
+ function y(n) {
15
+ const {
16
+ children: a,
17
+ queryPrivileges: r
18
+ } = n, o = v((e) => e.flagsActions.addFlag), [t, l] = f({}), {
19
+ startProgress: m,
20
+ stopProgress: u
21
+ } = E(), {
22
+ networkOperation: p
23
+ } = h();
24
+ d(() => {
25
+ let e = !0;
26
+ if (r.length === 0) {
27
+ o(i.FLAG_PRIVILEGES_LOADED);
28
+ return;
29
+ }
30
+ return m(), p({
31
+ method: "GET",
32
+ endPoint: "auth/login",
33
+ parms: {
34
+ privileges: r
35
+ }
36
+ }).then((s) => {
37
+ e && (l({
38
+ ...s.data
39
+ }), o(i.FLAG_PRIVILEGES_LOADED));
40
+ }).finally(() => {
41
+ u();
42
+ }), function() {
43
+ e = !1;
44
+ };
45
+ }, []);
46
+ const g = P((e) => e in t, [t]);
47
+ return /* @__PURE__ */ F(L.Provider, {
48
+ value: {
49
+ hasPrivilege: g,
50
+ privileges: t
51
+ },
52
+ children: a
53
+ });
54
+ }
55
+ export {
56
+ L as M,
57
+ y as a
58
+ };
@@ -0,0 +1,28 @@
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.011db031.js";
8
+ import "../ModulePrivilegesContext/index.a45d4cf7.js";
9
+ import "../NetworkContext/index.ec7405cd.js";
10
+ import "../DomainCountryContext/index.e7a82641.js";
11
+ import { jsx as n } from "react/jsx-runtime";
12
+ const p = i(null);
13
+ function P(o) {
14
+ const {
15
+ children: t,
16
+ flags: r
17
+ } = o, e = !m(r);
18
+ return /* @__PURE__ */ n(p.Provider, {
19
+ value: {
20
+ isSkeleton: e
21
+ },
22
+ children: t
23
+ });
24
+ }
25
+ export {
26
+ p as M,
27
+ P as a
28
+ };
package/hooks/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { useBase } from './useBase';
2
2
  export { useEnvironment } from './useEnvironment';
3
- export { useFlags, useFlagsPresent } from './useFlags';
3
+ export { useFlagsStore, useFlagsPresent } from './useFlagsStore';
4
4
  export { useHostTools } from './useHostTools';
5
5
  export { useDomain } from './useDomain';
6
6
  export { useLocalStorage } from './useLocalStorage';
@@ -1,6 +1,6 @@
1
1
  import { useContext as t } from "react";
2
- import { D as n } from "../../contexts/DomainContext/index.b9fd4c7f.js";
3
- import { D as e } from "../../contexts/DomainCountryContext/index.3cdf9462.js";
2
+ import { D as n } from "../../contexts/DomainContext/index.2ed56159.js";
3
+ import { D as e } from "../../contexts/DomainCountryContext/index.e7a82641.js";
4
4
  const m = () => {
5
5
  const o = t(n);
6
6
  if (!o)
@@ -0,0 +1,3 @@
1
+ import type { Flag, FlagsStateWithActions } from '../../contexts/FlagsContext/types';
2
+ export declare function useFlagsStore<T>(selector: (state: FlagsStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
3
+ export declare const useFlagsPresent: (compareFlags: Array<Flag>) => boolean;
@@ -0,0 +1,18 @@
1
+ import { useContext as o } from "react";
2
+ import { F as i } from "../../contexts/FlagsContext/index.5b096265.js";
3
+ import { useStore as l } from "zustand";
4
+ import { s as a } from "../../node_modules.04fac7e9.js";
5
+ function u(t, s) {
6
+ const e = o(i);
7
+ if (!e)
8
+ throw new Error("useFlagsStore context must be use inside FlagsProvider");
9
+ return l(e, t, s);
10
+ }
11
+ function f(t, s) {
12
+ return t.filter((r) => s.findIndex((n) => n === r) !== -1).length === t.length;
13
+ }
14
+ const x = (t) => u((e) => f(t, e.flags), a);
15
+ export {
16
+ x as a,
17
+ u
18
+ };
@@ -1,5 +1,5 @@
1
1
  import { useContext as t } from "react";
2
- import { M as e } from "../../contexts/ModuleDictionaryContext/index.848a0393.js";
2
+ import { M as e } from "../../contexts/ModuleDictionaryContext/index.011db031.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.f1988b13.js";
2
+ import { M as t } from "../../contexts/ModulePrivilegesContext/index.a45d4cf7.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.45963775.js";
2
+ import { M as r } from "../../contexts/ModuleSkeletonContext/index.2cd78f14.js";
3
3
  const S = () => {
4
4
  const [t, o] = n(!0), e = s(r);
5
5
  if (!e)
package/index.js CHANGED
@@ -1,77 +1,80 @@
1
- import { C as m, E as u } from "./types/index.42c24946.js";
2
- import { B as p, a as l } from "./contexts/BaseContext/index.f9cdc955.js";
1
+ import "react";
2
+ import { B as x, a as l } from "./contexts/BaseContext/index.f9cdc955.js";
3
3
  import { E as d, a as v } from "./contexts/EnvironmentContext/index.b33784cd.js";
4
- import { H as P, a as C } from "./contexts/HostToolsContext/index.499db832.js";
5
- import { N as D, a as S } from "./contexts/NetworkContext/index.ec7405cd.js";
6
- import { F as y, a as F } from "./contexts/FlagsContext/index.5f795859.js";
7
- import { D as k, a as B } from "./contexts/DomainContext/index.b9fd4c7f.js";
8
- import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.848a0393.js";
9
- import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.f1988b13.js";
10
- import { M as O, a as b } from "./contexts/ModuleSkeletonContext/index.45963775.js";
11
- import { D as q, a as z } from "./contexts/DomainCountryContext/index.3cdf9462.js";
4
+ import { F as P, a as C } from "./contexts/FlagsContext/index.5b096265.js";
5
+ import "zustand";
6
+ import { H as D, a as S } from "./contexts/HostToolsContext/index.499db832.js";
7
+ import { D as y, a as F } from "./contexts/DomainContext/index.2ed56159.js";
8
+ import { M as k, a as B } from "./contexts/ModuleDictionaryContext/index.011db031.js";
9
+ import { M as H, a as N } from "./contexts/ModulePrivilegesContext/index.a45d4cf7.js";
10
+ import { M as T, a as h } from "./contexts/ModuleSkeletonContext/index.2cd78f14.js";
11
+ import { N as O, a as b } from "./contexts/NetworkContext/index.ec7405cd.js";
12
+ import { D as q, a as z } from "./contexts/DomainCountryContext/index.e7a82641.js";
12
13
  import { u as G } from "./hooks/useBase/index.4375dcef.js";
13
14
  import { u as J } from "./hooks/useEnvironment/index.25f83176.js";
14
- import { u as Q, a as R } from "./hooks/useFlags/index.a986729d.js";
15
+ import { a as Q, u as R } from "./hooks/useFlagsStore/index.f7c613ac.js";
15
16
  import { u as V } from "./hooks/useHostTools/index.66d9a667.js";
16
- import { u as Y, a as Z } from "./hooks/useDomain/index.38a2a89e.js";
17
+ import { u as Y, a as Z } from "./hooks/useDomain/index.b743be01.js";
17
18
  import { u as $, a as oo } from "./hooks/useLocalStorage/index.48b47dca.js";
18
- import { u as ro } from "./hooks/useModuleDictionary/index.3305a123.js";
19
- import { u as to } from "./hooks/useModulePrivileges/index.cbe0c72f.js";
20
- import { u as io } from "./hooks/useModuleSkeleton/index.739fd422.js";
21
- import { u as mo } from "./hooks/useNetwork/index.3d79002b.js";
22
- import { i as xo, u as po } from "./hooks/usePaginate/index.1306b0de.js";
19
+ import { u as ro } from "./hooks/useModuleDictionary/index.0a0998b6.js";
20
+ import { u as ao } from "./hooks/useModulePrivileges/index.24c10523.js";
21
+ import { u as io } from "./hooks/useModuleSkeleton/index.12ff3650.js";
22
+ import { u as no } from "./hooks/useNetwork/index.3d79002b.js";
23
+ import { i as po, u as xo } from "./hooks/usePaginate/index.1306b0de.js";
23
24
  import { u as fo } from "./hooks/usePropageteMF/index.c440b829.js";
24
- import { e as go, a as Po, g as Co, s as Mo, v as Do } from "./utils/index.c7370abf.js";
25
- import { a as co } from "./utils/axiosOperation.ce4250d4.js";
26
- import "react";
25
+ import { C as go, E as Po } from "./types/index.42c24946.js";
26
+ import { e as Mo, a as Do, g as So, s as co, v as yo } from "./utils/index.6d56ba04.js";
27
+ import { a as Eo } from "./utils/axiosOperation.ce4250d4.js";
27
28
  import "react/jsx-runtime";
29
+ import "zustand/middleware";
30
+ import "./node_modules.04fac7e9.js";
28
31
  import "axios";
29
32
  import "qs";
30
33
  import "camelcase-keys";
31
34
  import "snakecase-keys";
32
35
  export {
33
- p as BaseContext,
36
+ x as BaseContext,
34
37
  l as BaseProvider,
35
- m as CommonFlags,
36
- k as DomainContext,
38
+ go as CommonFlags,
39
+ y as DomainContext,
37
40
  q as DomainCountryContext,
38
41
  z as DomainCountryProvider,
39
- B as DomainProvider,
40
- u as EmitEvents,
42
+ F as DomainProvider,
43
+ Po as EmitEvents,
41
44
  d as EnvironmentContext,
42
45
  v as EnvironmentProvider,
43
- y as FlagsContext,
44
- F as FlagsProvider,
45
- P as HostToolsContext,
46
- C as HostToolsProvider,
47
- H as ModuleDictionaryContext,
48
- N as ModuleDictionaryProvider,
49
- T as ModulePrivilegesContext,
50
- h as ModulePrivilegesProvider,
51
- O as ModuleSkeletonContext,
52
- b as ModuleSkeletonProvider,
53
- D as NetworkContext,
54
- S as NetworkProvider,
55
- co as axiosOperation,
56
- go as evaluateWithContext,
57
- Po as getLocalStorage,
58
- Co as getPropertyByString,
59
- xo as initialPagerState,
60
- Mo as setLocalStorage,
46
+ P as FlagsContext,
47
+ C as FlagsProvider,
48
+ D as HostToolsContext,
49
+ S as HostToolsProvider,
50
+ k as ModuleDictionaryContext,
51
+ B as ModuleDictionaryProvider,
52
+ H as ModulePrivilegesContext,
53
+ N as ModulePrivilegesProvider,
54
+ T as ModuleSkeletonContext,
55
+ h as ModuleSkeletonProvider,
56
+ O as NetworkContext,
57
+ b as NetworkProvider,
58
+ Eo as axiosOperation,
59
+ Mo as evaluateWithContext,
60
+ Do as getLocalStorage,
61
+ So as getPropertyByString,
62
+ po as initialPagerState,
63
+ co as setLocalStorage,
61
64
  G as useBase,
62
65
  Y as useDomain,
63
66
  Z as useDomainCountry,
64
67
  J as useEnvironment,
65
- Q as useFlags,
66
- R as useFlagsPresent,
68
+ Q as useFlagsPresent,
69
+ R as useFlagsStore,
67
70
  V as useHostTools,
68
71
  $ as useLocalStorage,
69
72
  oo as useLocalStorageWithListener,
70
73
  ro as useModuleDictionary,
71
- to as useModulePrivileges,
74
+ ao as useModulePrivileges,
72
75
  io as useModuleSkeleton,
73
- mo as useNetwork,
74
- po as usePaginate,
76
+ no as useNetwork,
77
+ xo as usePaginate,
75
78
  fo as usePropageteMF,
76
- Do as voidFunction
79
+ yo as voidFunction
77
80
  };