@m4l/core 0.1.43 → 0.1.44

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.
@@ -0,0 +1,69 @@
1
+ import { useState as s, useRef as x, useCallback as G, useEffect as p } from "react";
2
+ import { u as H } from "../useHostTools/index.66d9a667.js";
3
+ import { u as L } from "../useNetwork/index.acbf28d5.js";
4
+ const a = {
5
+ page: 0,
6
+ rowsPerPage: 25,
7
+ totalRecords: 0
8
+ }, B = (l) => {
9
+ const {
10
+ endPoint: m,
11
+ timeout: h = 5e3,
12
+ queryParams: P,
13
+ fireOnChangeParms: u,
14
+ fireOnFirstLoad: w = !0,
15
+ rowsPerPage: c = a.rowsPerPage,
16
+ startProgress: R,
17
+ stopProgress: C,
18
+ isRemote: d = !0,
19
+ bodyToSnakeCase: S = !1,
20
+ responseToCamelCase: k = !1
21
+ } = l, [i, o] = s(u ? 1 : 0), [y, n] = s([]), [T, g] = s({ ...a, rowsPerPage: c }), t = x({ ...a, rowsPerPage: c }), [O, b] = s(w), { startProgress: E, stopProgress: F } = H(), { networkOperation: Q } = L(), f = G(() => {
22
+ o((r) => r + 1);
23
+ }, []);
24
+ return p(() => {
25
+ if (O) {
26
+ b(!1);
27
+ return;
28
+ }
29
+ u && f();
30
+ }, [P]), p(() => {
31
+ let r = !0;
32
+ if (i !== 0)
33
+ return Q({
34
+ method: "GET",
35
+ endPoint: m,
36
+ timeout: h,
37
+ parms: {
38
+ ...P,
39
+ page: t.current.page,
40
+ limit: t.current.rowsPerPage
41
+ },
42
+ bodyToSnakeCase: S,
43
+ responseToCamelCase: k,
44
+ options: {
45
+ startProgress: R || E,
46
+ stopProgress: C || F
47
+ },
48
+ isRemote: d
49
+ }).then((e) => {
50
+ r && (n(e.data), t.current.page = e.pager.page, g((q) => ({
51
+ ...q,
52
+ page: e.pager.page,
53
+ totalRecords: e.pager.total
54
+ })));
55
+ }), function() {
56
+ r = !1;
57
+ };
58
+ }, [i]), { onPageChange: (r) => {
59
+ t.current.page = r, o((e) => e + 1);
60
+ }, onRowsPerPageChange: (r) => {
61
+ t.current.rowsPerPage = r, g((e) => ({ ...e, rowsPerPage: r })), o((e) => e + 1);
62
+ }, pagerState: T, rows: y, clearRows: () => {
63
+ n([]), g(a);
64
+ }, Refresh: f, setRows: n };
65
+ };
66
+ export {
67
+ a as i,
68
+ B as u
69
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UsePaginateProps } from './types';
2
3
  import type { PagerState } from './types';
3
4
  export declare const usePaginate: <TRow>(props: UsePaginateProps) => {
@@ -7,4 +8,5 @@ export declare const usePaginate: <TRow>(props: UsePaginateProps) => {
7
8
  rows: TRow[];
8
9
  clearRows: () => void;
9
10
  Refresh: () => void;
11
+ setRows: import("react").Dispatch<import("react").SetStateAction<TRow[]>>;
10
12
  };
@@ -1,3 +1,4 @@
1
+ import { NetworkProps } from '../../types';
1
2
  import { AxiosOptions } from '../../utils/axiosOperation/types';
2
3
  export declare interface PagerState {
3
4
  page: number;
@@ -5,10 +6,9 @@ export declare interface PagerState {
5
6
  totalRecords: number;
6
7
  }
7
8
  export declare const initialPagerState: PagerState;
8
- export interface UsePaginateProps extends AxiosOptions {
9
- endPoint: string;
10
- timeout?: number;
9
+ export interface UsePaginateProps extends Pick<NetworkProps, 'endPoint' | 'timeout' | 'isRemote' | 'bodyToSnakeCase' | 'responseToCamelCase'>, AxiosOptions {
11
10
  fireOnChangeParms?: boolean;
11
+ fireOnFirstLoad?: boolean;
12
12
  queryParams: Record<string, unknown>;
13
13
  rowsPerPage?: number;
14
14
  }
package/index.js CHANGED
@@ -1,75 +1,77 @@
1
1
  import "react";
2
- import { B as i, a as n } from "./contexts/BaseContext/index.f9cdc955.js";
3
- import { E as u, a as x } from "./contexts/EnvironmentContext/index.7045c64f.js";
4
- import { F as l, a as f } from "./contexts/FlagsContext/index.5f795859.js";
5
- import { H as v, a as g } from "./contexts/HostToolsContext/index.499db832.js";
6
- import { D as C, a as M } from "./contexts/DomainContext/index.8d81b39c.js";
7
- import { M as S, a as c } from "./contexts/ModuleDictionaryContext/index.9ddf623f.js";
8
- import { M as F, a as E } from "./contexts/ModulePrivilegesContext/index.00d6c33d.js";
9
- import { M as B, a as L } from "./contexts/ModuleSkeletonContext/index.7504b2e4.js";
10
- import { N, a as w } from "./contexts/NetworkContext/index.d1dfbc3a.js";
11
- import { D as h, a as W } from "./contexts/DomainCountryContext/index.5bc030dc.js";
12
- import { u as b } from "./hooks/useBase/index.4375dcef.js";
13
- import { u as q } from "./hooks/useEnvironment/index.04dca988.js";
14
- import { u as A, a as G } from "./hooks/useFlags/index.a986729d.js";
15
- import { u as J } from "./hooks/useHostTools/index.66d9a667.js";
16
- import { u as Q, a as R } from "./hooks/useDomain/index.61164dd5.js";
17
- import { u as V, a as X } from "./hooks/useLocalStorage/index.48b47dca.js";
18
- import { u as Z } from "./hooks/useModuleDictionary/index.c4454f46.js";
19
- import { u as $ } from "./hooks/useModulePrivileges/index.7a9da551.js";
20
- import { u as eo } from "./hooks/useModuleSkeleton/index.07843a4f.js";
21
- import { u as ao } from "./hooks/useNetwork/index.acbf28d5.js";
22
- import { i as so, u as io } from "./hooks/usePaginate/index.d4437ef6.js";
23
- import { u as mo } from "./hooks/usePropageteMF/index.c440b829.js";
24
- import { C as xo, E as po } from "./types/index.42c24946.js";
25
- import { e as fo, a as vo, g as go, s as Po, v as Co } from "./utils/index.ee07ca4a.js";
26
- import { a as Do } from "./utils/axiosOperation.e428c3b5.js";
2
+ import { B as m, a as u } from "./contexts/BaseContext/index.f9cdc955.js";
3
+ import { E as p, a as l } from "./contexts/EnvironmentContext/index.7045c64f.js";
4
+ import { F as d, a as v } from "./contexts/FlagsContext/index.5f795859.js";
5
+ import { H as P, a as C } from "./contexts/HostToolsContext/index.499db832.js";
6
+ import { D, a as S } from "./contexts/DomainContext/index.8d81b39c.js";
7
+ import { M as y, a as F } from "./contexts/ModuleDictionaryContext/index.9ddf623f.js";
8
+ import { M as k, a as B } from "./contexts/ModulePrivilegesContext/index.00d6c33d.js";
9
+ import { M as H, a as N } from "./contexts/ModuleSkeletonContext/index.7504b2e4.js";
10
+ import { N as T, a as h } from "./contexts/NetworkContext/index.d1dfbc3a.js";
11
+ import { D as O, a as b } from "./contexts/DomainCountryContext/index.5bc030dc.js";
12
+ import { u as q } from "./hooks/useBase/index.4375dcef.js";
13
+ import { u as A } from "./hooks/useEnvironment/index.04dca988.js";
14
+ import { u as I, a as J } from "./hooks/useFlags/index.a986729d.js";
15
+ import { u as Q } from "./hooks/useHostTools/index.66d9a667.js";
16
+ import { u as U, a as V } from "./hooks/useDomain/index.61164dd5.js";
17
+ import { u as Y, a as Z } from "./hooks/useLocalStorage/index.48b47dca.js";
18
+ import { u as $ } from "./hooks/useModuleDictionary/index.c4454f46.js";
19
+ import { u as eo } from "./hooks/useModulePrivileges/index.7a9da551.js";
20
+ import { u as ao } from "./hooks/useModuleSkeleton/index.07843a4f.js";
21
+ import { u as so } from "./hooks/useNetwork/index.acbf28d5.js";
22
+ import { i as no, u as mo } from "./hooks/usePaginate/index.9ed61e68.js";
23
+ import { u as xo } from "./hooks/usePropageteMF/index.c440b829.js";
24
+ import { C as lo, E as fo } from "./types/index.42c24946.js";
25
+ import { e as go, a as Po, g as Co, s as Mo, v as Do } from "./utils/index.6d56ba04.js";
26
+ import { a as co } from "./utils/axiosOperation.d83903ee.js";
27
27
  import "react/jsx-runtime";
28
28
  import "axios";
29
29
  import "qs";
30
+ import "camelcase-keys";
31
+ import "snakecase-keys";
30
32
  export {
31
- i as BaseContext,
32
- n as BaseProvider,
33
- xo as CommonFlags,
34
- C as DomainContext,
35
- h as DomainCountryContext,
36
- W as DomainCountryProvider,
37
- M as DomainProvider,
38
- po as EmitEvents,
39
- u as EnvironmentContext,
40
- x as EnvironmentProvider,
41
- l as FlagsContext,
42
- f as FlagsProvider,
43
- v as HostToolsContext,
44
- g as HostToolsProvider,
45
- S as ModuleDictionaryContext,
46
- c as ModuleDictionaryProvider,
47
- F as ModulePrivilegesContext,
48
- E as ModulePrivilegesProvider,
49
- B as ModuleSkeletonContext,
50
- L as ModuleSkeletonProvider,
51
- N as NetworkContext,
52
- w as NetworkProvider,
53
- Do as axiosOperation,
54
- fo as evaluateWithContext,
55
- vo as getLocalStorage,
56
- go as getPropertyByString,
57
- so as initialPagerState,
58
- Po as setLocalStorage,
59
- b as useBase,
60
- Q as useDomain,
61
- R as useDomainCountry,
62
- q as useEnvironment,
63
- A as useFlags,
64
- G as useFlagsPresent,
65
- J as useHostTools,
66
- V as useLocalStorage,
67
- X as useLocalStorageWithListener,
68
- Z as useModuleDictionary,
69
- $ as useModulePrivileges,
70
- eo as useModuleSkeleton,
71
- ao as useNetwork,
72
- io as usePaginate,
73
- mo as usePropageteMF,
74
- Co as voidFunction
33
+ m as BaseContext,
34
+ u as BaseProvider,
35
+ lo as CommonFlags,
36
+ D as DomainContext,
37
+ O as DomainCountryContext,
38
+ b as DomainCountryProvider,
39
+ S as DomainProvider,
40
+ fo as EmitEvents,
41
+ p as EnvironmentContext,
42
+ l as EnvironmentProvider,
43
+ d as FlagsContext,
44
+ v as FlagsProvider,
45
+ P as HostToolsContext,
46
+ C as HostToolsProvider,
47
+ y as ModuleDictionaryContext,
48
+ F as ModuleDictionaryProvider,
49
+ k as ModulePrivilegesContext,
50
+ B as ModulePrivilegesProvider,
51
+ H as ModuleSkeletonContext,
52
+ N as ModuleSkeletonProvider,
53
+ T as NetworkContext,
54
+ h as NetworkProvider,
55
+ co as axiosOperation,
56
+ go as evaluateWithContext,
57
+ Po as getLocalStorage,
58
+ Co as getPropertyByString,
59
+ no as initialPagerState,
60
+ Mo as setLocalStorage,
61
+ q as useBase,
62
+ U as useDomain,
63
+ V as useDomainCountry,
64
+ A as useEnvironment,
65
+ I as useFlags,
66
+ J as useFlagsPresent,
67
+ Q as useHostTools,
68
+ Y as useLocalStorage,
69
+ Z as useLocalStorageWithListener,
70
+ $ as useModuleDictionary,
71
+ eo as useModulePrivileges,
72
+ ao as useModuleSkeleton,
73
+ so as useNetwork,
74
+ mo as usePaginate,
75
+ xo as usePropageteMF,
76
+ Do as voidFunction
75
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/core",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "private": false,
@@ -28,5 +28,9 @@
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=12.0.0"
31
+ },
32
+ "dependencies": {
33
+ "camelcase-keys": "^7.0.1",
34
+ "snakecase-keys": "5.1.2"
31
35
  }
32
36
  }
package/types/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare type NetworkProps = {
18
18
  endPoint: string;
19
19
  timeout?: number;
20
20
  parms?: object;
21
- data?: object;
21
+ data?: Record<string, any>;
22
22
  headers?: Record<string, string | number | boolean>;
23
23
  checkUnAuthorized?: boolean;
24
24
  isRemote?: boolean;
@@ -29,6 +29,8 @@ export declare type NetworkProps = {
29
29
  responseType?: ResponseType;
30
30
  signal?: AbortSignal;
31
31
  options?: AxiosOptions;
32
+ bodyToSnakeCase?: boolean;
33
+ responseToCamelCase?: boolean;
32
34
  };
33
35
  export declare type ToastFunction = (content: ToastContent, options?: ToastOptions) => Id;
34
36
  export declare enum EmmitEvents {
@@ -0,0 +1,73 @@
1
+ import C from "axios";
2
+ import R from "qs";
3
+ import j from "camelcase-keys";
4
+ import v from "snakecase-keys";
5
+ import { E as b } from "../types/index.42c24946.js";
6
+ function h(e, t, a, i, o, s) {
7
+ const { toast: d } = a;
8
+ return i === "json" ? t && t.data && typeof t.data == "object" ? t.data.error && t.data.error?.code && t.data.error?.msg !== void 0 ? Promise.reject({ ...t.data.error, status: t.status }) : (t.data.messagen && o && d(t.data.message, { type: "success", autoClose: 1e4 }), s ? j(t.data, { deep: !0 }) : t.data) : Promise.reject({
9
+ code: 1,
10
+ msg: `Incorrect endpoint: ${e}`,
11
+ status: t.status
12
+ }) : t.data;
13
+ }
14
+ function x(e, t, a = !0, i = !0) {
15
+ const { toast: o } = t;
16
+ let s = {
17
+ message: "",
18
+ status: 1,
19
+ code: 0
20
+ };
21
+ return e?.code !== void 0 && s.status !== void 0 && e.message !== void 0 && (s = { ...s, ...e }), e?.response ? e.response.data && typeof e.response.data == "object" && e.response.data.error && e.response.data.error?.code && e.response.data.error?.message !== void 0 ? s = { ...e.response.data.error, status: e.response.status } : (s.message = e.message, s.status = e.response.status, s.code = 0) : e?.request ? (s.message = `${e?.code} ${e.message}`, s.code = -1) : (s.message = `${e?.code} ${e.message}`, s.status = 0, s.code = -2), a && e?.response?.status === 401 && t.events_emit(b.EMMIT_EVENT_NET_SERVICE_UNAUTHORIZED, {}), e?.response?.data?.error?.message && (s.message = e?.response?.data?.error.message), a && (s.message.indexOf("ERR_CANCELED") > -1 || i && o(`${s.message} - status: ${s.status} - code: ${s.code}`, {
22
+ type: "error"
23
+ })), s;
24
+ }
25
+ const D = async (e, t, a) => {
26
+ const {
27
+ method: i,
28
+ endPoint: o,
29
+ timeout: s = 6e4,
30
+ parms: d = {},
31
+ data: m = {},
32
+ isRemote: u = !0,
33
+ checkUnAuthorized: g = !0,
34
+ headers: l,
35
+ onDownloadProgress: p,
36
+ isExternalUrl: c,
37
+ responseType: f = "json",
38
+ signal: E,
39
+ toastSuccess: y = !0,
40
+ toastError: _ = !0,
41
+ bodyToSnakeCase: P = !1,
42
+ responseToCamelCase: $ = !1
43
+ } = e;
44
+ let r;
45
+ return u ? r = t.host_api_remote : r = t.host_api_local, e?.options?.startProgress && e?.options?.startProgress(), C({
46
+ baseURL: c ? void 0 : r,
47
+ withCredentials: u,
48
+ method: i,
49
+ url: c ? o : `/${o}`,
50
+ data: P ? v(m, { deep: !0 }) : m,
51
+ params: {},
52
+ paramsSerializer: () => R.stringify(d, { encode: !0 }),
53
+ headers: l,
54
+ timeout: s,
55
+ onDownloadProgress: p,
56
+ responseType: f,
57
+ signal: E
58
+ }).then((n) => h(
59
+ o,
60
+ n,
61
+ a,
62
+ f,
63
+ y,
64
+ $
65
+ )).catch(
66
+ (n) => Promise.reject(x(n, a, g, _))
67
+ ).finally(() => {
68
+ e?.options?.stopProgress && e?.options?.stopProgress();
69
+ });
70
+ };
71
+ export {
72
+ D as a
73
+ };
@@ -1,8 +1,10 @@
1
1
  import "axios";
2
2
  import "qs";
3
- function g() {
3
+ import "camelcase-keys";
4
+ import "snakecase-keys";
5
+ function y() {
4
6
  }
5
- function f(n, e) {
7
+ function p(n, e) {
6
8
  const r = e.split(".");
7
9
  let t = n;
8
10
  for (const o of r) {
@@ -25,7 +27,7 @@ function f(n, e) {
25
27
  }
26
28
  return t;
27
29
  }
28
- function y(n, e) {
30
+ function d(n, e) {
29
31
  try {
30
32
  const t = new Function(...Object.keys(n), `return \`${e}\``)(...Object.values(n));
31
33
  return String(t).replace(/`/g, "");
@@ -33,7 +35,7 @@ function y(n, e) {
33
35
  return console.error(`Error evaluating expression: ${r}`), "";
34
36
  }
35
37
  }
36
- function d(n, e) {
38
+ function m(n, e) {
37
39
  try {
38
40
  const r = window.localStorage.getItem(n);
39
41
  return r !== null ? typeof e == "string" ? r : JSON.parse(r) : e;
@@ -41,7 +43,7 @@ function d(n, e) {
41
43
  return e;
42
44
  }
43
45
  }
44
- function p(n, e, r = !1) {
46
+ function v(n, e, r = !1) {
45
47
  try {
46
48
  let t = null;
47
49
  if (typeof e == "string") {
@@ -55,9 +57,9 @@ function p(n, e, r = !1) {
55
57
  }
56
58
  }
57
59
  export {
58
- d as a,
59
- y as e,
60
- f as g,
61
- p as s,
62
- g as v
60
+ m as a,
61
+ d as e,
62
+ p as g,
63
+ v as s,
64
+ y as v
63
65
  };
@@ -1,62 +0,0 @@
1
- import { useState as s, useRef as T, useCallback as b, useEffect as f } from "react";
2
- import { u as q } from "../useHostTools/index.66d9a667.js";
3
- import { u as x } from "../useNetwork/index.acbf28d5.js";
4
- const a = {
5
- page: 0,
6
- rowsPerPage: 25,
7
- totalRecords: 0
8
- }, v = (m) => {
9
- const {
10
- endPoint: l,
11
- timeout: h = 5e3,
12
- queryParams: g,
13
- fireOnChangeParms: P,
14
- rowsPerPage: c = a.rowsPerPage,
15
- startProgress: w,
16
- stopProgress: R
17
- } = m, [u, o] = s(P ? 1 : 0), [S, i] = s([]), [d, n] = s({ ...a, rowsPerPage: c }), t = T({ ...a, rowsPerPage: c }), [C, k] = s(!0), { startProgress: y, stopProgress: E } = q(), { networkOperation: O } = x(), p = b(() => {
18
- o((r) => r + 1);
19
- }, []);
20
- return f(() => {
21
- if (C) {
22
- k(!1);
23
- return;
24
- }
25
- P && p();
26
- }, [g]), f(() => {
27
- let r = !0;
28
- if (u !== 0)
29
- return O({
30
- method: "GET",
31
- endPoint: l,
32
- timeout: h,
33
- parms: {
34
- ...g,
35
- page: t.current.page,
36
- limit: t.current.rowsPerPage
37
- },
38
- options: {
39
- startProgress: w || y,
40
- stopProgress: R || E
41
- }
42
- }).then((e) => {
43
- r && (i(e.data), t.current.page = e.pager.page, n((Q) => ({
44
- ...Q,
45
- page: e.pager.page,
46
- totalRecords: e.pager.total
47
- })));
48
- }), function() {
49
- r = !1;
50
- };
51
- }, [u]), { onPageChange: (r) => {
52
- t.current.page = r, o((e) => e + 1);
53
- }, onRowsPerPageChange: (r) => {
54
- t.current.rowsPerPage = r, n((e) => ({ ...e, rowsPerPage: r })), o((e) => e + 1);
55
- }, pagerState: d, rows: S, clearRows: () => {
56
- i([]), n(a);
57
- }, Refresh: p };
58
- };
59
- export {
60
- a as i,
61
- v as u
62
- };
@@ -1,62 +0,0 @@
1
- import $ from "axios";
2
- import y from "qs";
3
- import { E as R } from "../types/index.42c24946.js";
4
- function j(e, s, a, i, o) {
5
- const { toast: t } = a;
6
- return i === "json" ? s && s.data && typeof s.data == "object" ? s.data.error && s.data.error?.code && s.data.error?.msg !== void 0 ? Promise.reject({ ...s.data.error, status: s.status }) : (s.data.messagen && o && t(s.data.message, { type: "success", autoClose: 1e4 }), s.data) : Promise.reject({
7
- code: 1,
8
- msg: `Incorrect endpoint: ${e}`,
9
- status: s.status
10
- }) : s.data;
11
- }
12
- function v(e, s, a = !0, i = !0) {
13
- const { toast: o } = s;
14
- let t = {
15
- message: "",
16
- status: 1,
17
- code: 0
18
- };
19
- return e?.code !== void 0 && t.status !== void 0 && e.message !== void 0 && (t = { ...t, ...e }), e?.response ? e.response.data && typeof e.response.data == "object" && e.response.data.error && e.response.data.error?.code && e.response.data.error?.message !== void 0 ? t = { ...e.response.data.error, status: e.response.status } : (t.message = e.message, t.status = e.response.status, t.code = 0) : e?.request ? (t.message = `${e?.code} ${e.message}`, t.code = -1) : (t.message = `${e?.code} ${e.message}`, t.status = 0, t.code = -2), a && e?.response?.status === 401 && s.events_emit(R.EMMIT_EVENT_NET_SERVICE_UNAUTHORIZED, {}), e?.response?.data?.error?.message && (t.message = e?.response?.data?.error.message), a && (t.message.indexOf("ERR_CANCELED") > -1 || i && o(`${t.message} - status: ${t.status} - code: ${t.code}`, {
20
- type: "error"
21
- })), t;
22
- }
23
- const U = async (e, s, a) => {
24
- const {
25
- method: i,
26
- endPoint: o,
27
- timeout: t = 6e4,
28
- parms: c = {},
29
- data: g = {},
30
- isRemote: r = !0,
31
- checkUnAuthorized: f = !0,
32
- headers: l,
33
- onDownloadProgress: p,
34
- isExternalUrl: u,
35
- responseType: m = "json",
36
- signal: E,
37
- toastSuccess: _ = !0,
38
- toastError: P = !0
39
- } = e;
40
- let d;
41
- return r ? d = s.host_api_remote : d = s.host_api_local, e?.options?.startProgress && e?.options?.startProgress(), $({
42
- baseURL: u ? void 0 : d,
43
- withCredentials: r,
44
- method: i,
45
- url: u ? o : `/${o}`,
46
- data: g,
47
- params: {},
48
- paramsSerializer: () => y.stringify(c, { encode: !0 }),
49
- headers: l,
50
- timeout: t,
51
- onDownloadProgress: p,
52
- responseType: m,
53
- signal: E
54
- }).then((n) => j(o, n, a, m, _)).catch(
55
- (n) => Promise.reject(v(n, a, f, P))
56
- ).finally(() => {
57
- e?.options?.stopProgress && e?.options?.stopProgress();
58
- });
59
- };
60
- export {
61
- U as a
62
- };