propro-common-components 0.0.80 → 0.0.82
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
var es = Object.defineProperty;
|
2
2
|
var ts = (e, t, n) => t in e ? es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var Nr = (e, t, n) => (ts(e, typeof t != "symbol" ? t + "" : t, n), n);
|
4
|
-
import { d as tn, s as Gn, m as Hn, c as P, g as ns, a as F, b as v, e as N, o as It, P as Po, S as K, i as E, f as U, h as L, j as Be, k as D, l as rs, n as At, p as ir, q as H, r as os, t as $n, F as zo, u as Bo, v as V, $ as ft, w as pn, x as jn, y as Re, z as Ce, A as Se, I as is, B as sr, C as O, D as nn, E as Ur, G as ss, H as kt, J as jt, K as Vr, L as Z, M as ls, N as as, O as Pn, Q as cs, R as us, T as ds, U as fs, V as zn, W as gs, X as hs } from "./main-
|
4
|
+
import { d as tn, s as Gn, m as Hn, c as P, g as ns, a as F, b as v, e as N, o as It, P as Po, S as K, i as E, f as U, h as L, j as Be, k as D, l as rs, n as At, p as ir, q as H, r as os, t as $n, F as zo, u as Bo, v as V, $ as ft, w as pn, x as jn, y as Re, z as Ce, A as Se, I as is, B as sr, C as O, D as nn, E as Ur, G as ss, H as kt, J as jt, K as Vr, L as Z, M as ls, N as as, O as Pn, Q as cs, R as us, T as ds, U as fs, V as zn, W as gs, X as hs } from "./main-cCaTSkNG.js";
|
5
5
|
var Ko = {
|
6
6
|
À: "A",
|
7
7
|
Á: "A",
|
@@ -51952,14 +51952,11 @@ async function sendEmail(m, g) {
|
|
51952
51952
|
g("failedSubmit");
|
51953
51953
|
}
|
51954
51954
|
}
|
51955
|
-
const initialState = { loading: !
|
51955
|
+
const initialState = { loading: !0 }, AppContext = createContext$1({
|
51956
51956
|
state: initialState,
|
51957
51957
|
dispatch: () => null
|
51958
51958
|
}), AppProvider = ({ children: m, baseURL: g }) => {
|
51959
|
-
axios.defaults.baseURL = g, axios.defaults.withCredentials = !0
|
51960
|
-
handleAuth();
|
51961
|
-
}, 30 * 60 * 1e3), () => {
|
51962
|
-
}), []);
|
51959
|
+
axios.defaults.baseURL = g, axios.defaults.withCredentials = !0;
|
51963
51960
|
const b = (x, $) => {
|
51964
51961
|
switch ($.type) {
|
51965
51962
|
case "SET_LOADING":
|
@@ -51968,12 +51965,15 @@ const initialState = { loading: !1 }, AppContext = createContext$1({
|
|
51968
51965
|
return x;
|
51969
51966
|
}
|
51970
51967
|
}, [_, S] = useReducer(b, initialState);
|
51971
|
-
return
|
51972
|
-
|
51968
|
+
return useEffect(() => (handleAuth(S), setInterval(() => {
|
51969
|
+
handleAuth(S);
|
51970
|
+
}, 30 * 60 * 1e3), () => {
|
51971
|
+
}), []), /* @__PURE__ */ jsx$2(AppContext.Provider, { value: { state: _, dispatch: S }, children: m });
|
51972
|
+
}, handleAuth = async (m) => {
|
51973
51973
|
try {
|
51974
|
-
await axios.post("/api/refreshToken");
|
51975
|
-
} catch (
|
51976
|
-
|
51974
|
+
m({ type: "SET_LOADING", payload: !0 }), await axios.post("/api/refreshToken"), m({ type: "SET_LOADING", payload: !1 });
|
51975
|
+
} catch (g) {
|
51976
|
+
g.response.status === 401 && g.response.data.redirectUrl && (window.location.href = g.response.data.redirectUrl), m({ type: "SET_LOADING", payload: !1 });
|
51977
51977
|
}
|
51978
51978
|
};
|
51979
51979
|
var sharedConfig = {
|
@@ -54062,7 +54062,7 @@ var displayValue = (m, g = !1) => {
|
|
54062
54062
|
const g = render(() => {
|
54063
54063
|
const b = this, [_] = je(this, _d), [S] = je(this, Sd), [x] = je(this, Ed), [$] = je(this, xd), [T] = je(this, bd);
|
54064
54064
|
let R;
|
54065
|
-
return je(this, Cd) ? R = je(this, Cd) : (R = lazy(() => import("./335X72D7
|
54065
|
+
return je(this, Cd) ? R = je(this, Cd) : (R = lazy(() => import("./335X72D7-ICRA_uPC.js")), $t(this, Cd, R)), setupStyleSheet(je(this, Xh)), createComponent(R, mergeProps({
|
54066
54066
|
get queryFlavor() {
|
54067
54067
|
return je(b, Zh);
|
54068
54068
|
},
|
@@ -68858,7 +68858,7 @@ const Loading = () => {
|
|
68858
68858
|
return useEffect(() => (document.body.prepend(g), () => {
|
68859
68859
|
document.body.removeChild(g);
|
68860
68860
|
}), [g]), m.loading ? /* @__PURE__ */ jsx$2(Fragment$2, { children: reactDomExports.createPortal(
|
68861
|
-
/* @__PURE__ */ jsx$2("div", { className: "fixed w-[100vw] h-[100vh] z-[1000] bg-[#00000099] grid place-items-center pointer-events-none", children: /* @__PURE__ */ jsx$2(
|
68861
|
+
m.loading ? /* @__PURE__ */ jsx$2("div", { className: "fixed w-[100vw] h-[100vh] z-[1000] bg-[#00000099] grid place-items-center pointer-events-none", children: /* @__PURE__ */ jsx$2(
|
68862
68862
|
_default,
|
68863
68863
|
{
|
68864
68864
|
options: b,
|
@@ -68867,7 +68867,7 @@ const Loading = () => {
|
|
68867
68867
|
isStopped: !1,
|
68868
68868
|
isPaused: !1
|
68869
68869
|
}
|
68870
|
-
) }),
|
68870
|
+
) }) : null,
|
68871
68871
|
g
|
68872
68872
|
) }) : null;
|
68873
68873
|
};
|