propro-common-components 0.1.34 → 0.1.36
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 +73 -57
- package/package.json +1 -1
@@ -56937,15 +56937,19 @@ var _coreExports = _core.exports, _aFunction = function(m) {
|
|
56937
56937
|
if (!isObject$3(m))
|
56938
56938
|
throw TypeError(m + " is not an object!");
|
56939
56939
|
return m;
|
56940
|
-
}, _fails
|
56941
|
-
|
56942
|
-
|
56943
|
-
|
56944
|
-
|
56945
|
-
|
56946
|
-
|
56940
|
+
}, _fails, hasRequired_fails;
|
56941
|
+
function require_fails() {
|
56942
|
+
return hasRequired_fails || (hasRequired_fails = 1, _fails = function(m) {
|
56943
|
+
try {
|
56944
|
+
return !!m();
|
56945
|
+
} catch {
|
56946
|
+
return !0;
|
56947
|
+
}
|
56948
|
+
}), _fails;
|
56949
|
+
}
|
56950
|
+
var _descriptors, hasRequired_descriptors;
|
56947
56951
|
function require_descriptors() {
|
56948
|
-
return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !
|
56952
|
+
return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !require_fails()(function() {
|
56949
56953
|
return Object.defineProperty({}, "a", { get: function() {
|
56950
56954
|
return 7;
|
56951
56955
|
} }).a != 7;
|
@@ -56961,11 +56965,15 @@ function require_domCreate() {
|
|
56961
56965
|
return b ? g.createElement(_) : {};
|
56962
56966
|
}, _domCreate;
|
56963
56967
|
}
|
56964
|
-
var _ie8DomDefine
|
56965
|
-
|
56966
|
-
|
56967
|
-
|
56968
|
-
|
56968
|
+
var _ie8DomDefine, hasRequired_ie8DomDefine;
|
56969
|
+
function require_ie8DomDefine() {
|
56970
|
+
return hasRequired_ie8DomDefine || (hasRequired_ie8DomDefine = 1, _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
56971
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
56972
|
+
return 7;
|
56973
|
+
} }).a != 7;
|
56974
|
+
})), _ie8DomDefine;
|
56975
|
+
}
|
56976
|
+
var isObject$2 = _isObject, _toPrimitive = function(m, g) {
|
56969
56977
|
if (!isObject$2(m))
|
56970
56978
|
return m;
|
56971
56979
|
var b, _;
|
@@ -56977,7 +56985,7 @@ function require_objectDp() {
|
|
56977
56985
|
if (hasRequired_objectDp)
|
56978
56986
|
return _objectDp;
|
56979
56987
|
hasRequired_objectDp = 1;
|
56980
|
-
var m = _anObject, g =
|
56988
|
+
var m = _anObject, g = require_ie8DomDefine(), b = _toPrimitive, _ = Object.defineProperty;
|
56981
56989
|
return _objectDp.f = require_descriptors() ? Object.defineProperty : function(C, $, I) {
|
56982
56990
|
if (m(C), $ = b($, !0), m(I), g)
|
56983
56991
|
try {
|
@@ -57034,13 +57042,21 @@ $export$5.U = 64;
|
|
57034
57042
|
$export$5.R = 128;
|
57035
57043
|
var _export = $export$5, toString$1 = {}.toString, _cof = function(m) {
|
57036
57044
|
return toString$1.call(m).slice(8, -1);
|
57037
|
-
},
|
57038
|
-
|
57039
|
-
|
57045
|
+
}, _iobject, hasRequired_iobject;
|
57046
|
+
function require_iobject() {
|
57047
|
+
if (hasRequired_iobject)
|
57048
|
+
return _iobject;
|
57049
|
+
hasRequired_iobject = 1;
|
57050
|
+
var m = _cof;
|
57051
|
+
return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(g) {
|
57052
|
+
return m(g) == "String" ? g.split("") : Object(g);
|
57053
|
+
}, _iobject;
|
57054
|
+
}
|
57055
|
+
var _defined = function(m) {
|
57040
57056
|
if (m == null)
|
57041
57057
|
throw TypeError("Can't call method on " + m);
|
57042
57058
|
return m;
|
57043
|
-
}, IObject =
|
57059
|
+
}, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(m) {
|
57044
57060
|
return IObject(defined$2(m));
|
57045
57061
|
}, ceil = Math.ceil, floor = Math.floor, _toInteger = function(m) {
|
57046
57062
|
return isNaN(m = +m) ? 0 : (m > 0 ? floor : ceil)(m);
|
@@ -57069,8 +57085,8 @@ var _export = $export$5, toString$1 = {}.toString, _cof = function(m) {
|
|
57069
57085
|
mode: "pure",
|
57070
57086
|
copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
|
57071
57087
|
});
|
57072
|
-
var _sharedExports = _shared.exports, id$
|
57073
|
-
return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$
|
57088
|
+
var _sharedExports = _shared.exports, id$2 = 0, px = Math.random(), _uid = function(m) {
|
57089
|
+
return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$2 + px).toString(36));
|
57074
57090
|
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
|
57075
57091
|
return shared$1[m] || (shared$1[m] = uid$2(m));
|
57076
57092
|
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
|
@@ -57080,16 +57096,14 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
57080
57096
|
for (; g.length > _; )
|
57081
57097
|
has$5(b, C = g[_++]) && (~arrayIndexOf(x, C) || x.push(C));
|
57082
57098
|
return x;
|
57083
|
-
}, _enumBugKeys,
|
57084
|
-
function require_enumBugKeys() {
|
57085
|
-
return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
|
57086
|
-
}
|
57087
|
-
var $keys$2 = _objectKeysInternal, enumBugKeys = require_enumBugKeys(), _objectKeys = Object.keys || function(g) {
|
57099
|
+
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
|
57088
57100
|
return $keys$2(g, enumBugKeys);
|
57089
57101
|
}, _objectGops = {};
|
57090
57102
|
_objectGops.f = Object.getOwnPropertySymbols;
|
57091
|
-
var _objectPie = {};
|
57092
|
-
|
57103
|
+
var _objectPie = {}, hasRequired_objectPie;
|
57104
|
+
function require_objectPie() {
|
57105
|
+
return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
|
57106
|
+
}
|
57093
57107
|
var defined$1 = _defined, _toObject = function(m) {
|
57094
57108
|
return Object(defined$1(m));
|
57095
57109
|
}, _objectAssign, hasRequired_objectAssign;
|
@@ -57097,8 +57111,8 @@ function require_objectAssign() {
|
|
57097
57111
|
if (hasRequired_objectAssign)
|
57098
57112
|
return _objectAssign;
|
57099
57113
|
hasRequired_objectAssign = 1;
|
57100
|
-
var m = require_descriptors(), g = _objectKeys, b = _objectGops, _ =
|
57101
|
-
return _objectAssign = !$ ||
|
57114
|
+
var m = require_descriptors(), g = _objectKeys, b = _objectGops, _ = require_objectPie(), x = _toObject, C = require_iobject(), $ = Object.assign;
|
57115
|
+
return _objectAssign = !$ || require_fails()(function() {
|
57102
57116
|
var I = {}, R = {}, P = Symbol(), N = "abcdefghijklmnopqrst";
|
57103
57117
|
return I[P] = 7, N.split("").forEach(function(z) {
|
57104
57118
|
R[z] = z;
|
@@ -57133,7 +57147,7 @@ function require_objectSap() {
|
|
57133
57147
|
if (hasRequired_objectSap)
|
57134
57148
|
return _objectSap;
|
57135
57149
|
hasRequired_objectSap = 1;
|
57136
|
-
var m = _export, g = _coreExports, b =
|
57150
|
+
var m = _export, g = _coreExports, b = require_fails();
|
57137
57151
|
return _objectSap = function(_, x) {
|
57138
57152
|
var C = (g.Object || {})[_] || Object[_], $ = {};
|
57139
57153
|
$[_] = x(C), m(m.S + m.F * b(function() {
|
@@ -57205,7 +57219,7 @@ function require_objectCreate() {
|
|
57205
57219
|
if (hasRequired_objectCreate)
|
57206
57220
|
return _objectCreate;
|
57207
57221
|
hasRequired_objectCreate = 1;
|
57208
|
-
var m = _anObject, g = require_objectDps(), b =
|
57222
|
+
var m = _anObject, g = require_objectDps(), b = _enumBugKeys, _ = _sharedKey("IE_PROTO"), x = function() {
|
57209
57223
|
}, C = "prototype", $ = function() {
|
57210
57224
|
var I = require_domCreate()("iframe"), R = b.length, P = "<", N = ">", z;
|
57211
57225
|
for (I.style.display = "none", require_html().appendChild(I), I.src = "javascript:", z = I.contentWindow.document, z.open(), z.write(P + "script" + N + "document.F=Object" + P + "/script" + N), z.close(), $ = z.F; R--; )
|
@@ -57301,13 +57315,13 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
57301
57315
|
}
|
57302
57316
|
var _wksExt = {};
|
57303
57317
|
_wksExt.f = _wksExports;
|
57304
|
-
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$1 = _isObject, has$2 = _has, setDesc = require_objectDp().f, id = 0, isExtensible = Object.isExtensible || function() {
|
57318
|
+
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$1 = _isObject, has$2 = _has, setDesc = require_objectDp().f, id$1 = 0, isExtensible = Object.isExtensible || function() {
|
57305
57319
|
return !0;
|
57306
|
-
}, FREEZE = !
|
57320
|
+
}, FREEZE = !require_fails()(function() {
|
57307
57321
|
return isExtensible(Object.preventExtensions({}));
|
57308
57322
|
}), setMeta = function(m) {
|
57309
57323
|
setDesc(m, META$1, { value: {
|
57310
|
-
i: "O" + ++id,
|
57324
|
+
i: "O" + ++id$1,
|
57311
57325
|
// object ID
|
57312
57326
|
w: {}
|
57313
57327
|
// weak collections IDs
|
@@ -57343,7 +57357,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
57343
57357
|
}, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = require_objectDp().f, _wksDefine = function(m) {
|
57344
57358
|
var g = core.Symbol || (core.Symbol = {});
|
57345
57359
|
m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
|
57346
|
-
}, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 =
|
57360
|
+
}, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(m) {
|
57347
57361
|
var g = getKeys(m), b = gOPS.f;
|
57348
57362
|
if (b)
|
57349
57363
|
for (var _ = b(m), x = pIE$1.f, C = 0, $; _.length > C; )
|
@@ -57351,7 +57365,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
57351
57365
|
return g;
|
57352
57366
|
}, cof = _cof, _isArray = Array.isArray || function(g) {
|
57353
57367
|
return cof(g) == "Array";
|
57354
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys =
|
57368
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
57355
57369
|
_objectGopn.f = Object.getOwnPropertyNames || function(g) {
|
57356
57370
|
return $keys$1(g, hiddenKeys);
|
57357
57371
|
};
|
@@ -57365,7 +57379,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
|
|
57365
57379
|
_objectGopnExt.f = function(g) {
|
57366
57380
|
return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
|
57367
57381
|
};
|
57368
|
-
var _objectGopd = {}, pIE =
|
57382
|
+
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = require_ie8DomDefine(), gOPD$1 = Object.getOwnPropertyDescriptor;
|
57369
57383
|
_objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
57370
57384
|
if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
|
57371
57385
|
try {
|
@@ -57375,7 +57389,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
|
57375
57389
|
if (has$1(g, b))
|
57376
57390
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
57377
57391
|
};
|
57378
|
-
var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails =
|
57392
|
+
var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray = _isArray, anObject = _anObject, isObject = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive = _toPrimitive, createDesc = _propertyDesc, _create$1 = require_objectCreate(), gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = require_objectDp(), $keys = _objectKeys, gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
57379
57393
|
return _create$1(dP({}, "a", {
|
57380
57394
|
get: function() {
|
57381
57395
|
return dP(this, "a", { value: 7 }).a;
|
@@ -57426,7 +57440,7 @@ USE_NATIVE || ($Symbol = function() {
|
|
57426
57440
|
return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, g, { configurable: !0, set: b }), wrap(g);
|
57427
57441
|
}, redefine($Symbol[PROTOTYPE], "toString", function() {
|
57428
57442
|
return this._k;
|
57429
|
-
}), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames,
|
57443
|
+
}), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, require_objectPie().f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, DESCRIPTORS && !_library && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable), wksExt.f = function(m) {
|
57430
57444
|
return wrap(wks(m));
|
57431
57445
|
});
|
57432
57446
|
$export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Symbol: $Symbol });
|
@@ -65464,7 +65478,9 @@ const checkAccessToken = async () => {
|
|
65464
65478
|
queryFn: async () => (await checkAccessToken(), await axios.get(g).then((_) => _.data.data)),
|
65465
65479
|
refetchOnWindowFocus: !1,
|
65466
65480
|
...b
|
65467
|
-
})
|
65481
|
+
});
|
65482
|
+
let id = 0;
|
65483
|
+
const useMutate = ({
|
65468
65484
|
url: m,
|
65469
65485
|
method: g,
|
65470
65486
|
updateKey: b,
|
@@ -65478,24 +65494,24 @@ const checkAccessToken = async () => {
|
|
65478
65494
|
}, R) => {
|
65479
65495
|
const P = useQueryClient();
|
65480
65496
|
return useMutation({
|
65481
|
-
mutationFn: async (N) => {
|
65482
|
-
|
65483
|
-
|
65484
|
-
|
65485
|
-
|
65486
|
-
|
65487
|
-
|
65488
|
-
|
65489
|
-
|
65490
|
-
|
65491
|
-
|
65492
|
-
|
65493
|
-
return console.log(z), checkAccessToken(), axios(m, { method: g, data: N, headers: _ }).then(
|
65494
|
-
(D) => D.data
|
65495
|
-
);
|
65496
|
-
},
|
65497
|
+
mutationFn: async (N) => (I && console.log(I, m), id = toast("🦄 Wow so easy!", {
|
65498
|
+
position: "top-right",
|
65499
|
+
autoClose: 5e3,
|
65500
|
+
hideProgressBar: !1,
|
65501
|
+
closeOnClick: !0,
|
65502
|
+
pauseOnHover: !0,
|
65503
|
+
draggable: !0,
|
65504
|
+
progress: void 0,
|
65505
|
+
theme: "light"
|
65506
|
+
}), console.log(id), checkAccessToken(), axios(m, { method: g, data: N, headers: _ }).then(
|
65507
|
+
(z) => z.data
|
65508
|
+
)),
|
65497
65509
|
onSuccess: (N) => {
|
65498
|
-
|
65510
|
+
toast.update(id, {
|
65511
|
+
render: "All is good",
|
65512
|
+
type: "info",
|
65513
|
+
isLoading: !1
|
65514
|
+
}), b && P.setQueryData(b, N.data), x && P.invalidateQueries(), C && console.log(C, { res: N });
|
65499
65515
|
},
|
65500
65516
|
onError: (N) => {
|
65501
65517
|
$ && console.log($, { err: N });
|