propro-common-components 0.1.10 → 0.1.12
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/propro-common-components.js +10 -14
- package/package.json +1 -1
@@ -50562,7 +50562,7 @@ async function sendEmail(m, g) {
|
|
50562
50562
|
}
|
50563
50563
|
const initialState = {
|
50564
50564
|
loading: !1,
|
50565
|
-
requestsEnabled: getCookie("
|
50565
|
+
requestsEnabled: getCookie("has_account_token") !== void 0
|
50566
50566
|
}, AppContext = createContext({
|
50567
50567
|
state: initialState,
|
50568
50568
|
dispatch: () => null
|
@@ -50579,12 +50579,12 @@ const initialState = {
|
|
50579
50579
|
}
|
50580
50580
|
}, [_, x] = useReducer(b, initialState), C = async () => {
|
50581
50581
|
try {
|
50582
|
-
|
50582
|
+
await axios.post("/api/refreshToken"), x({ type: "SET_REQUEST_ENABLED", payload: !0 });
|
50583
50583
|
} catch ($) {
|
50584
50584
|
console.log($);
|
50585
50585
|
}
|
50586
50586
|
};
|
50587
|
-
return useEffect(() => (
|
50587
|
+
return useEffect(() => (_.requestsEnabled || C(), () => {
|
50588
50588
|
}), []), /* @__PURE__ */ jsx$2(AppContext.Provider, { value: { state: _, dispatch: x }, children: m });
|
50589
50589
|
}, queryClient = new QueryClient(), AppHOC = ({ children: m }) => /* @__PURE__ */ jsxs(QueryClientProvider, { client: queryClient, children: [
|
50590
50590
|
/* @__PURE__ */ jsx$2(ReactQueryDevtools, { initialIsOpen: !1 }),
|
@@ -56860,15 +56860,11 @@ function require_domCreate() {
|
|
56860
56860
|
return b ? g.createElement(_) : {};
|
56861
56861
|
}, _domCreate;
|
56862
56862
|
}
|
56863
|
-
var _ie8DomDefine
|
56864
|
-
|
56865
|
-
|
56866
|
-
|
56867
|
-
|
56868
|
-
} }).a != 7;
|
56869
|
-
})), _ie8DomDefine;
|
56870
|
-
}
|
56871
|
-
var isObject$2 = _isObject, _toPrimitive = function(m, g) {
|
56863
|
+
var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
56864
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
56865
|
+
return 7;
|
56866
|
+
} }).a != 7;
|
56867
|
+
}), isObject$2 = _isObject, _toPrimitive = function(m, g) {
|
56872
56868
|
if (!isObject$2(m))
|
56873
56869
|
return m;
|
56874
56870
|
var b, _;
|
@@ -56880,7 +56876,7 @@ function require_objectDp() {
|
|
56880
56876
|
if (hasRequired_objectDp)
|
56881
56877
|
return _objectDp;
|
56882
56878
|
hasRequired_objectDp = 1;
|
56883
|
-
var m = _anObject, g =
|
56879
|
+
var m = _anObject, g = _ie8DomDefine, b = _toPrimitive, _ = Object.defineProperty;
|
56884
56880
|
return _objectDp.f = require_descriptors() ? Object.defineProperty : function(C, $, I) {
|
56885
56881
|
if (m(C), $ = b($, !0), m(I), g)
|
56886
56882
|
try {
|
@@ -57274,7 +57270,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
|
|
57274
57270
|
_objectGopnExt.f = function(g) {
|
57275
57271
|
return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
|
57276
57272
|
};
|
57277
|
-
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE =
|
57273
|
+
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
|
57278
57274
|
_objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
57279
57275
|
if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
|
57280
57276
|
try {
|