propro-common-components 0.1.0 → 0.1.2

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.
@@ -56850,15 +56850,19 @@ var _coreExports = _core.exports, _aFunction = function(m) {
56850
56850
  if (!isObject$3(m))
56851
56851
  throw TypeError(m + " is not an object!");
56852
56852
  return m;
56853
- }, _fails = function(m) {
56854
- try {
56855
- return !!m();
56856
- } catch {
56857
- return !0;
56858
- }
56859
- }, _descriptors, hasRequired_descriptors;
56853
+ }, _fails, hasRequired_fails;
56854
+ function require_fails() {
56855
+ return hasRequired_fails || (hasRequired_fails = 1, _fails = function(m) {
56856
+ try {
56857
+ return !!m();
56858
+ } catch {
56859
+ return !0;
56860
+ }
56861
+ }), _fails;
56862
+ }
56863
+ var _descriptors, hasRequired_descriptors;
56860
56864
  function require_descriptors() {
56861
- return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !_fails(function() {
56865
+ return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !require_fails()(function() {
56862
56866
  return Object.defineProperty({}, "a", { get: function() {
56863
56867
  return 7;
56864
56868
  } }).a != 7;
@@ -56874,15 +56878,11 @@ function require_domCreate() {
56874
56878
  return b ? g.createElement(_) : {};
56875
56879
  }, _domCreate;
56876
56880
  }
56877
- var _ie8DomDefine, hasRequired_ie8DomDefine;
56878
- function require_ie8DomDefine() {
56879
- return hasRequired_ie8DomDefine || (hasRequired_ie8DomDefine = 1, _ie8DomDefine = !require_descriptors() && !_fails(function() {
56880
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
56881
- return 7;
56882
- } }).a != 7;
56883
- })), _ie8DomDefine;
56884
- }
56885
- var isObject$2 = _isObject, _toPrimitive = function(m, g) {
56881
+ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
56882
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
56883
+ return 7;
56884
+ } }).a != 7;
56885
+ }), isObject$2 = _isObject, _toPrimitive = function(m, g) {
56886
56886
  if (!isObject$2(m))
56887
56887
  return m;
56888
56888
  var b, _;
@@ -56894,7 +56894,7 @@ function require_objectDp() {
56894
56894
  if (hasRequired_objectDp)
56895
56895
  return _objectDp;
56896
56896
  hasRequired_objectDp = 1;
56897
- var m = _anObject, g = require_ie8DomDefine(), b = _toPrimitive, _ = Object.defineProperty;
56897
+ var m = _anObject, g = _ie8DomDefine, b = _toPrimitive, _ = Object.defineProperty;
56898
56898
  return _objectDp.f = require_descriptors() ? Object.defineProperty : function(C, $, I) {
56899
56899
  if (m(C), $ = b($, !0), m(I), g)
56900
56900
  try {
@@ -56951,13 +56951,21 @@ $export$5.U = 64;
56951
56951
  $export$5.R = 128;
56952
56952
  var _export = $export$5, toString$1 = {}.toString, _cof = function(m) {
56953
56953
  return toString$1.call(m).slice(8, -1);
56954
- }, cof$1 = _cof, _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(m) {
56955
- return cof$1(m) == "String" ? m.split("") : Object(m);
56956
- }, _defined = function(m) {
56954
+ }, _iobject, hasRequired_iobject;
56955
+ function require_iobject() {
56956
+ if (hasRequired_iobject)
56957
+ return _iobject;
56958
+ hasRequired_iobject = 1;
56959
+ var m = _cof;
56960
+ return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(g) {
56961
+ return m(g) == "String" ? g.split("") : Object(g);
56962
+ }, _iobject;
56963
+ }
56964
+ var _defined = function(m) {
56957
56965
  if (m == null)
56958
56966
  throw TypeError("Can't call method on " + m);
56959
56967
  return m;
56960
- }, IObject = _iobject, defined$2 = _defined, _toIobject = function(m) {
56968
+ }, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(m) {
56961
56969
  return IObject(defined$2(m));
56962
56970
  }, ceil = Math.ceil, floor = Math.floor, _toInteger = function(m) {
56963
56971
  return isNaN(m = +m) ? 0 : (m > 0 ? floor : ceil)(m);
@@ -56997,16 +57005,14 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
56997
57005
  for (; g.length > _; )
56998
57006
  has$5(b, C = g[_++]) && (~arrayIndexOf(x, C) || x.push(C));
56999
57007
  return x;
57000
- }, _enumBugKeys, hasRequired_enumBugKeys;
57001
- function require_enumBugKeys() {
57002
- return hasRequired_enumBugKeys || (hasRequired_enumBugKeys = 1, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")), _enumBugKeys;
57003
- }
57004
- var $keys$2 = _objectKeysInternal, enumBugKeys = require_enumBugKeys(), _objectKeys = Object.keys || function(g) {
57008
+ }, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
57005
57009
  return $keys$2(g, enumBugKeys);
57006
57010
  }, _objectGops = {};
57007
57011
  _objectGops.f = Object.getOwnPropertySymbols;
57008
- var _objectPie = {};
57009
- _objectPie.f = {}.propertyIsEnumerable;
57012
+ var _objectPie = {}, hasRequired_objectPie;
57013
+ function require_objectPie() {
57014
+ return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
57015
+ }
57010
57016
  var defined$1 = _defined, _toObject = function(m) {
57011
57017
  return Object(defined$1(m));
57012
57018
  }, _objectAssign, hasRequired_objectAssign;
@@ -57014,8 +57020,8 @@ function require_objectAssign() {
57014
57020
  if (hasRequired_objectAssign)
57015
57021
  return _objectAssign;
57016
57022
  hasRequired_objectAssign = 1;
57017
- var m = require_descriptors(), g = _objectKeys, b = _objectGops, _ = _objectPie, x = _toObject, C = _iobject, $ = Object.assign;
57018
- return _objectAssign = !$ || _fails(function() {
57023
+ var m = require_descriptors(), g = _objectKeys, b = _objectGops, _ = require_objectPie(), x = _toObject, C = require_iobject(), $ = Object.assign;
57024
+ return _objectAssign = !$ || require_fails()(function() {
57019
57025
  var I = {}, R = {}, P = Symbol(), N = "abcdefghijklmnopqrst";
57020
57026
  return I[P] = 7, N.split("").forEach(function(z) {
57021
57027
  R[z] = z;
@@ -57050,7 +57056,7 @@ function require_objectSap() {
57050
57056
  if (hasRequired_objectSap)
57051
57057
  return _objectSap;
57052
57058
  hasRequired_objectSap = 1;
57053
- var m = _export, g = _coreExports, b = _fails;
57059
+ var m = _export, g = _coreExports, b = require_fails();
57054
57060
  return _objectSap = function(_, x) {
57055
57061
  var C = (g.Object || {})[_] || Object[_], $ = {};
57056
57062
  $[_] = x(C), m(m.S + m.F * b(function() {
@@ -57122,7 +57128,7 @@ function require_objectCreate() {
57122
57128
  if (hasRequired_objectCreate)
57123
57129
  return _objectCreate;
57124
57130
  hasRequired_objectCreate = 1;
57125
- var m = _anObject, g = require_objectDps(), b = require_enumBugKeys(), _ = _sharedKey("IE_PROTO"), x = function() {
57131
+ var m = _anObject, g = require_objectDps(), b = _enumBugKeys, _ = _sharedKey("IE_PROTO"), x = function() {
57126
57132
  }, C = "prototype", $ = function() {
57127
57133
  var I = require_domCreate()("iframe"), R = b.length, P = "<", N = ">", z;
57128
57134
  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--; )
@@ -57220,7 +57226,7 @@ var _wksExt = {};
57220
57226
  _wksExt.f = _wksExports;
57221
57227
  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() {
57222
57228
  return !0;
57223
- }, FREEZE = !_fails(function() {
57229
+ }, FREEZE = !require_fails()(function() {
57224
57230
  return isExtensible(Object.preventExtensions({}));
57225
57231
  }), setMeta = function(m) {
57226
57232
  setDesc(m, META$1, { value: {
@@ -57260,7 +57266,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
57260
57266
  }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = require_objectDp().f, _wksDefine = function(m) {
57261
57267
  var g = core.Symbol || (core.Symbol = {});
57262
57268
  m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
57263
- }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = _objectPie, _enumKeys = function(m) {
57269
+ }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(m) {
57264
57270
  var g = getKeys(m), b = gOPS.f;
57265
57271
  if (b)
57266
57272
  for (var _ = b(m), x = pIE$1.f, C = 0, $; _.length > C; )
@@ -57268,7 +57274,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
57268
57274
  return g;
57269
57275
  }, cof = _cof, _isArray = Array.isArray || function(g) {
57270
57276
  return cof(g) == "Array";
57271
- }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys = require_enumBugKeys().concat("length", "prototype");
57277
+ }, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys = _enumBugKeys.concat("length", "prototype");
57272
57278
  _objectGopn.f = Object.getOwnPropertyNames || function(g) {
57273
57279
  return $keys$1(g, hiddenKeys);
57274
57280
  };
@@ -57282,7 +57288,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
57282
57288
  _objectGopnExt.f = function(g) {
57283
57289
  return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
57284
57290
  };
57285
- var _objectGopd = {}, pIE = _objectPie, createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = require_ie8DomDefine(), gOPD$1 = Object.getOwnPropertyDescriptor;
57291
+ 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;
57286
57292
  _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
57287
57293
  if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
57288
57294
  try {
@@ -57292,7 +57298,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
57292
57298
  if (has$1(g, b))
57293
57299
  return createDesc$1(!pIE.f.call(g, b), g[b]);
57294
57300
  };
57295
- var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = _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() {
57301
+ 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() {
57296
57302
  return _create$1(dP({}, "a", {
57297
57303
  get: function() {
57298
57304
  return dP(this, "a", { value: 7 }).a;
@@ -57343,7 +57349,7 @@ USE_NATIVE || ($Symbol = function() {
57343
57349
  return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, g, { configurable: !0, set: b }), wrap(g);
57344
57350
  }, redefine($Symbol[PROTOTYPE], "toString", function() {
57345
57351
  return this._k;
57346
- }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, _objectPie.f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, DESCRIPTORS && !_library && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable), wksExt.f = function(m) {
57352
+ }), $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) {
57347
57353
  return wrap(wks(m));
57348
57354
  });
57349
57355
  $export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Symbol: $Symbol });
@@ -65355,8 +65361,17 @@ function PrivateRoute({
65355
65361
  // permission,
65356
65362
  children: m
65357
65363
  }) {
65358
- const g = getCookie("account"), b = useNavigate();
65359
- return console.log(g, "account"), g === void 0 && b("/testAuth"), /* @__PURE__ */ jsx$2(Fragment$2, { children: m });
65364
+ const g = getCookie("account"), b = useNavigate(), _ = async () => {
65365
+ try {
65366
+ await axios.post("/api/refreshToken");
65367
+ } catch (x) {
65368
+ console.log(x);
65369
+ }
65370
+ };
65371
+ return useEffect(() => (g === void 0 && b("/testAuth"), setInterval(() => {
65372
+ _();
65373
+ }, 28 * 60 * 1e3), () => {
65374
+ }), []), /* @__PURE__ */ jsx$2(Fragment$2, { children: m });
65360
65375
  }
65361
65376
  export {
65362
65377
  AppContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-common-components",
3
- "version": "0.1.00",
3
+ "version": "0.1.02",
4
4
  "type": "module",
5
5
  "main": "dist/propro-common-components.js",
6
6
  "types": "dist/main.d.ts",