propro-common-components 0.0.92 → 0.0.93

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-CiM1zLEP.js";
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--AIqSHg2.js";
5
5
  var Ko = {
6
6
  À: "A",
7
7
  Á: "A",
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare function PrivateRoute({ children, }: {
2
+ export default function PrivateRoute({ children, }: {
3
3
  children: React.ReactNode;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -36786,7 +36786,7 @@ function _typeof$2(m) {
36786
36786
  return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
36787
36787
  }, _typeof$2(m);
36788
36788
  }
36789
- function toPrimitive$3(m, g) {
36789
+ function toPrimitive$2(m, g) {
36790
36790
  if (_typeof$2(m) != "object" || !m)
36791
36791
  return m;
36792
36792
  var b = m[Symbol.toPrimitive];
@@ -36799,7 +36799,7 @@ function toPrimitive$3(m, g) {
36799
36799
  return (g === "string" ? String : Number)(m);
36800
36800
  }
36801
36801
  function toPropertyKey(m) {
36802
- var g = toPrimitive$3(m, "string");
36802
+ var g = toPrimitive$2(m, "string");
36803
36803
  return _typeof$2(g) == "symbol" ? g : String(g);
36804
36804
  }
36805
36805
  function _defineProperty$1(m, g, b) {
@@ -38468,7 +38468,7 @@ var parseStyle = function m(g) {
38468
38468
  function uniqueHash(m, g) {
38469
38469
  return murmur2$1("".concat(m.join("%")).concat(g));
38470
38470
  }
38471
- function Empty() {
38471
+ function Empty$1() {
38472
38472
  return null;
38473
38473
  }
38474
38474
  var STYLE_PREFIX = "style";
@@ -38528,7 +38528,7 @@ function useStyleRegister(m, g) {
38528
38528
  return function(ye) {
38529
38529
  var ve;
38530
38530
  if (!Q || re || !B)
38531
- ve = /* @__PURE__ */ React.createElement(Empty, null);
38531
+ ve = /* @__PURE__ */ React.createElement(Empty$1, null);
38532
38532
  else {
38533
38533
  var Se;
38534
38534
  ve = /* @__PURE__ */ React.createElement("style", _extends$5({}, (Se = {}, _defineProperty$1(Se, ATTR_TOKEN, me), _defineProperty$1(Se, ATTR_MARK, be), Se), {
@@ -54053,7 +54053,7 @@ var displayValue = (m, g = !1) => {
54053
54053
  const g = render(() => {
54054
54054
  const b = this, [_] = je(this, _d), [S] = je(this, Sd), [x] = je(this, Ed), [$] = je(this, xd), [T] = je(this, bd);
54055
54055
  let R;
54056
- return je(this, Cd) ? R = je(this, Cd) : (R = lazy(() => import("./335X72D7-HSBU462y.js")), $t(this, Cd, R)), setupStyleSheet(je(this, Xh)), createComponent(R, mergeProps({
54056
+ return je(this, Cd) ? R = je(this, Cd) : (R = lazy(() => import("./335X72D7-y-H9h-jR.js")), $t(this, Cd, R)), setupStyleSheet(je(this, Xh)), createComponent(R, mergeProps({
54057
54057
  get queryFlavor() {
54058
54058
  return je(b, Zh);
54059
54059
  },
@@ -60377,11 +60377,15 @@ function require_fails() {
60377
60377
  }
60378
60378
  }), _fails;
60379
60379
  }
60380
- var _descriptors = !require_fails()(function() {
60381
- return Object.defineProperty({}, "a", { get: function() {
60382
- return 7;
60383
- } }).a != 7;
60384
- }), _domCreate, hasRequired_domCreate;
60380
+ var _descriptors, hasRequired_descriptors;
60381
+ function require_descriptors() {
60382
+ return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !require_fails()(function() {
60383
+ return Object.defineProperty({}, "a", { get: function() {
60384
+ return 7;
60385
+ } }).a != 7;
60386
+ })), _descriptors;
60387
+ }
60388
+ var _domCreate, hasRequired_domCreate;
60385
60389
  function require_domCreate() {
60386
60390
  if (hasRequired_domCreate)
60387
60391
  return _domCreate;
@@ -60391,28 +60395,38 @@ function require_domCreate() {
60391
60395
  return b ? g.createElement(_) : {};
60392
60396
  }, _domCreate;
60393
60397
  }
60394
- var _ie8DomDefine = !_descriptors && !require_fails()(function() {
60395
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
60396
- return 7;
60397
- } }).a != 7;
60398
- }), isObject$2 = _isObject, _toPrimitive = function(m, g) {
60398
+ var _ie8DomDefine, hasRequired_ie8DomDefine;
60399
+ function require_ie8DomDefine() {
60400
+ return hasRequired_ie8DomDefine || (hasRequired_ie8DomDefine = 1, _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
60401
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
60402
+ return 7;
60403
+ } }).a != 7;
60404
+ })), _ie8DomDefine;
60405
+ }
60406
+ var isObject$2 = _isObject, _toPrimitive = function(m, g) {
60399
60407
  if (!isObject$2(m))
60400
60408
  return m;
60401
60409
  var b, _;
60402
60410
  if (g && typeof (b = m.toString) == "function" && !isObject$2(_ = b.call(m)) || typeof (b = m.valueOf) == "function" && !isObject$2(_ = b.call(m)) || !g && typeof (b = m.toString) == "function" && !isObject$2(_ = b.call(m)))
60403
60411
  return _;
60404
60412
  throw TypeError("Can't convert object to primitive value");
60405
- }, anObject$1 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$2 = _toPrimitive, dP$2 = Object.defineProperty;
60406
- _objectDp.f = _descriptors ? Object.defineProperty : function(g, b, _) {
60407
- if (anObject$1(g), b = toPrimitive$2(b, !0), anObject$1(_), IE8_DOM_DEFINE$1)
60408
- try {
60409
- return dP$2(g, b, _);
60410
- } catch {
60411
- }
60412
- if ("get" in _ || "set" in _)
60413
- throw TypeError("Accessors not supported!");
60414
- return "value" in _ && (g[b] = _.value), g;
60415
- };
60413
+ }, hasRequired_objectDp;
60414
+ function require_objectDp() {
60415
+ if (hasRequired_objectDp)
60416
+ return _objectDp;
60417
+ hasRequired_objectDp = 1;
60418
+ var m = _anObject, g = require_ie8DomDefine(), b = _toPrimitive, _ = Object.defineProperty;
60419
+ return _objectDp.f = require_descriptors() ? Object.defineProperty : function(x, $, T) {
60420
+ if (m(x), $ = b($, !0), m(T), g)
60421
+ try {
60422
+ return _(x, $, T);
60423
+ } catch {
60424
+ }
60425
+ if ("get" in T || "set" in T)
60426
+ throw TypeError("Accessors not supported!");
60427
+ return "value" in T && (x[$] = T.value), x;
60428
+ }, _objectDp;
60429
+ }
60416
60430
  var _propertyDesc = function(m, g) {
60417
60431
  return {
60418
60432
  enumerable: !(m & 1),
@@ -60420,14 +60434,14 @@ var _propertyDesc = function(m, g) {
60420
60434
  writable: !(m & 4),
60421
60435
  value: g
60422
60436
  };
60423
- }, dP$1 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(m, g, b) {
60424
- return dP$1.f(m, g, createDesc$2(1, b));
60437
+ }, dP$2 = require_objectDp(), createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(m, g, b) {
60438
+ return dP$2.f(m, g, createDesc$2(1, b));
60425
60439
  } : function(m, g, b) {
60426
60440
  return m[g] = b, m;
60427
60441
  }, hasOwnProperty = {}.hasOwnProperty, _has = function(m, g) {
60428
60442
  return hasOwnProperty.call(m, g);
60429
- }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$1 = "prototype", $export$5 = function(m, g, b) {
60430
- var _ = m & $export$5.F, S = m & $export$5.G, x = m & $export$5.S, $ = m & $export$5.P, T = m & $export$5.B, R = m & $export$5.W, P = S ? core$2 : core$2[g] || (core$2[g] = {}), O = P[PROTOTYPE$1], F = S ? global$4 : x ? global$4[g] : (global$4[g] || {})[PROTOTYPE$1], L, B, W;
60443
+ }, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(m, g, b) {
60444
+ var _ = m & $export$5.F, S = m & $export$5.G, x = m & $export$5.S, $ = m & $export$5.P, T = m & $export$5.B, R = m & $export$5.W, P = S ? core$2 : core$2[g] || (core$2[g] = {}), O = P[PROTOTYPE$2], F = S ? global$4 : x ? global$4[g] : (global$4[g] || {})[PROTOTYPE$2], L, B, W;
60431
60445
  S && (b = g);
60432
60446
  for (L in b)
60433
60447
  B = !_ && F && F[L] !== void 0, !(B && has$6(P, L)) && (W = B ? F[L] : b[L], P[L] = S && typeof F[L] != "function" ? b[L] : T && B ? ctx(W, global$4) : R && F[L] == W ? function(V) {
@@ -60445,7 +60459,7 @@ var _propertyDesc = function(m, g) {
60445
60459
  }
60446
60460
  return V.apply(this, arguments);
60447
60461
  };
60448
- return Q[PROTOTYPE$1] = V[PROTOTYPE$1], Q;
60462
+ return Q[PROTOTYPE$2] = V[PROTOTYPE$2], Q;
60449
60463
  }(W) : $ && typeof W == "function" ? ctx(Function.call, W) : W, $ && ((P.virtual || (P.virtual = {}))[L] = W, m & $export$5.R && O && !O[L] && hide$1(O, L, W)));
60450
60464
  };
60451
60465
  $export$5.F = 1;
@@ -60505,15 +60519,15 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
60505
60519
  return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$1 + px).toString(36));
60506
60520
  }, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
60507
60521
  return shared$1[m] || (shared$1[m] = uid$2(m));
60508
- }, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
60522
+ }, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$2 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
60509
60523
  var b = toIObject$4(m), _ = 0, S = [], x;
60510
60524
  for (x in b)
60511
- x != IE_PROTO$1 && has$5(b, x) && S.push(x);
60525
+ x != IE_PROTO$2 && has$5(b, x) && S.push(x);
60512
60526
  for (; g.length > _; )
60513
60527
  has$5(b, x = g[_++]) && (~arrayIndexOf(S, x) || S.push(x));
60514
60528
  return S;
60515
- }, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
60516
- return $keys$2(g, enumBugKeys);
60529
+ }, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys$1 = _enumBugKeys, _objectKeys = Object.keys || function(g) {
60530
+ return $keys$2(g, enumBugKeys$1);
60517
60531
  }, _objectGops = {};
60518
60532
  _objectGops.f = Object.getOwnPropertySymbols;
60519
60533
  var _objectPie = {}, hasRequired_objectPie;
@@ -60527,7 +60541,7 @@ function require_objectAssign() {
60527
60541
  if (hasRequired_objectAssign)
60528
60542
  return _objectAssign;
60529
60543
  hasRequired_objectAssign = 1;
60530
- var m = _descriptors, g = _objectKeys, b = _objectGops, _ = require_objectPie(), S = _toObject, x = require_iobject(), $ = Object.assign;
60544
+ var m = require_descriptors(), g = _objectKeys, b = _objectGops, _ = require_objectPie(), S = _toObject, x = require_iobject(), $ = Object.assign;
60531
60545
  return _objectAssign = !$ || require_fails()(function() {
60532
60546
  var T = {}, R = {}, P = Symbol(), O = "abcdefghijklmnopqrst";
60533
60547
  return T[P] = 7, O.split("").forEach(function(F) {
@@ -60556,8 +60570,8 @@ _extends.default = _assign2.default || function(m) {
60556
60570
  }
60557
60571
  return m;
60558
60572
  };
60559
- var has$4 = _has, toObject$2 = _toObject, IE_PROTO = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
60560
- return m = toObject$2(m), has$4(m, IE_PROTO) ? m[IE_PROTO] : typeof m.constructor == "function" && m instanceof m.constructor ? m.constructor.prototype : m instanceof Object ? ObjectProto$1 : null;
60573
+ var has$4 = _has, toObject$2 = _toObject, IE_PROTO$1 = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
60574
+ return m = toObject$2(m), has$4(m, IE_PROTO$1) ? m[IE_PROTO$1] : typeof m.constructor == "function" && m instanceof m.constructor ? m.constructor.prototype : m instanceof Object ? ObjectProto$1 : null;
60561
60575
  }, _objectSap, hasRequired_objectSap;
60562
60576
  function require_objectSap() {
60563
60577
  if (hasRequired_objectSap)
@@ -60584,7 +60598,7 @@ classCallCheck.default = function(m, g) {
60584
60598
  throw new TypeError("Cannot call a class as a function");
60585
60599
  };
60586
60600
  var createClass = {}, $export$3 = _export;
60587
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
60601
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
60588
60602
  var $Object$1 = _coreExports.Object, defineProperty$2 = function(g, b, _) {
60589
60603
  return $Object$1.defineProperty(g, b, _);
60590
60604
  }, defineProperty$1 = { default: defineProperty$2, __esModule: !0 };
@@ -60609,20 +60623,12 @@ var possibleConstructorReturn = {}, _typeof$1 = {}, toInteger = _toInteger, defi
60609
60623
  var _ = String(defined(g)), S = toInteger(b), x = _.length, $, T;
60610
60624
  return S < 0 || S >= x ? m ? "" : void 0 : ($ = _.charCodeAt(S), $ < 55296 || $ > 56319 || S + 1 === x || (T = _.charCodeAt(S + 1)) < 56320 || T > 57343 ? m ? _.charAt(S) : $ : m ? _.slice(S, S + 2) : ($ - 55296 << 10) + (T - 56320) + 65536);
60611
60625
  };
60612
- }, _redefine = _hide, _iterators = {}, _objectDps, hasRequired_objectDps;
60613
- function require_objectDps() {
60614
- if (hasRequired_objectDps)
60615
- return _objectDps;
60616
- hasRequired_objectDps = 1;
60617
- var m = _objectDp, g = _anObject, b = _objectKeys;
60618
- return _objectDps = _descriptors ? Object.defineProperties : function(S, x) {
60619
- g(S);
60620
- for (var $ = b(x), T = $.length, R = 0, P; T > R; )
60621
- m.f(S, P = $[R++], x[P]);
60622
- return S;
60623
- }, _objectDps;
60624
- }
60625
- var _html, hasRequired_html;
60626
+ }, _redefine = _hide, _iterators = {}, dP$1 = require_objectDp(), anObject$2 = _anObject, getKeys$1 = _objectKeys, _objectDps = require_descriptors() ? Object.defineProperties : function(g, b) {
60627
+ anObject$2(g);
60628
+ for (var _ = getKeys$1(b), S = _.length, x = 0, $; S > x; )
60629
+ dP$1.f(g, $ = _[x++], b[$]);
60630
+ return g;
60631
+ }, _html, hasRequired_html;
60626
60632
  function require_html() {
60627
60633
  if (hasRequired_html)
60628
60634
  return _html;
@@ -60630,35 +60636,27 @@ function require_html() {
60630
60636
  var m = _globalExports.document;
60631
60637
  return _html = m && m.documentElement, _html;
60632
60638
  }
60633
- var _objectCreate, hasRequired_objectCreate;
60634
- function require_objectCreate() {
60635
- if (hasRequired_objectCreate)
60636
- return _objectCreate;
60637
- hasRequired_objectCreate = 1;
60638
- var m = _anObject, g = require_objectDps(), b = _enumBugKeys, _ = _sharedKey("IE_PROTO"), S = function() {
60639
- }, x = "prototype", $ = function() {
60640
- var T = require_domCreate()("iframe"), R = b.length, P = "<", O = ">", F;
60641
- for (T.style.display = "none", require_html().appendChild(T), T.src = "javascript:", F = T.contentWindow.document, F.open(), F.write(P + "script" + O + "document.F=Object" + P + "/script" + O), F.close(), $ = F.F; R--; )
60642
- delete $[x][b[R]];
60643
- return $();
60644
- };
60645
- return _objectCreate = Object.create || function(R, P) {
60646
- var O;
60647
- return R !== null ? (S[x] = m(R), O = new S(), S[x] = null, O[_] = R) : O = $(), P === void 0 ? O : g(O, P);
60648
- }, _objectCreate;
60649
- }
60650
- var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
60639
+ var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO = _sharedKey("IE_PROTO"), Empty = function() {
60640
+ }, PROTOTYPE$1 = "prototype", createDict = function() {
60641
+ var m = require_domCreate()("iframe"), g = enumBugKeys.length, b = "<", _ = ">", S;
60642
+ for (m.style.display = "none", require_html().appendChild(m), m.src = "javascript:", S = m.contentWindow.document, S.open(), S.write(b + "script" + _ + "document.F=Object" + b + "/script" + _), S.close(), createDict = S.F; g--; )
60643
+ delete createDict[PROTOTYPE$1][enumBugKeys[g]];
60644
+ return createDict();
60645
+ }, _objectCreate = Object.create || function(g, b) {
60646
+ var _;
60647
+ return g !== null ? (Empty[PROTOTYPE$1] = anObject$1(g), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO] = g) : _ = createDict(), b === void 0 ? _ : dPs(_, b);
60648
+ }, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
60651
60649
  return store[m] || (store[m] = USE_SYMBOL && Symbol$1[m] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + m));
60652
60650
  };
60653
60651
  $exports.store = store;
60654
- var _wksExports = _wks.exports, def = _objectDp.f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(m, g, b) {
60652
+ var _wksExports = _wks.exports, def = require_objectDp().f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(m, g, b) {
60655
60653
  m && !has$3(m = b ? m : m.prototype, TAG) && def(m, TAG, { configurable: !0, value: g });
60656
60654
  }, _iterCreate, hasRequired_iterCreate;
60657
60655
  function require_iterCreate() {
60658
60656
  if (hasRequired_iterCreate)
60659
60657
  return _iterCreate;
60660
60658
  hasRequired_iterCreate = 1;
60661
- var m = require_objectCreate(), g = _propertyDesc, b = _setToStringTag, _ = {};
60659
+ var m = _objectCreate, g = _propertyDesc, b = _setToStringTag, _ = {};
60662
60660
  return _hide(_, _wksExports("iterator"), function() {
60663
60661
  return this;
60664
60662
  }), _iterCreate = function(S, x, $) {
@@ -60731,7 +60729,7 @@ for (var i = 0; i < DOMIterables.length; i++) {
60731
60729
  }
60732
60730
  var _wksExt = {};
60733
60731
  _wksExt.f = _wksExports;
60734
- 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 = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
60732
+ 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() {
60735
60733
  return !0;
60736
60734
  }, FREEZE = !require_fails()(function() {
60737
60735
  return isExtensible(Object.preventExtensions({}));
@@ -60770,7 +60768,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
60770
60768
  fastKey,
60771
60769
  getWeak,
60772
60770
  onFreeze
60773
- }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = _objectDp.f, _wksDefine = function(m) {
60771
+ }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = require_objectDp().f, _wksDefine = function(m) {
60774
60772
  var g = core.Symbol || (core.Symbol = {});
60775
60773
  m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
60776
60774
  }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(m) {
@@ -60795,8 +60793,8 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
60795
60793
  _objectGopnExt.f = function(g) {
60796
60794
  return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
60797
60795
  };
60798
- 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;
60799
- _objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
60796
+ 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;
60797
+ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
60800
60798
  if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
60801
60799
  try {
60802
60800
  return gOPD$1(g, b);
@@ -60805,7 +60803,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
60805
60803
  if (has$1(g, b))
60806
60804
  return createDesc$1(!pIE.f.call(g, b), g[b]);
60807
60805
  };
60808
- var global$1 = _globalExports, has = _has, DESCRIPTORS = _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 = _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() {
60806
+ 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 = _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() {
60809
60807
  return _create$1(dP({}, "a", {
60810
60808
  get: function() {
60811
60809
  return dP(this, "a", { value: 7 }).a;
@@ -60983,7 +60981,7 @@ function require_setProto() {
60983
60981
  var $export$1 = _export;
60984
60982
  $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
60985
60983
  var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
60986
- $export($export.S, "Object", { create: require_objectCreate() });
60984
+ $export($export.S, "Object", { create: _objectCreate });
60987
60985
  var $Object = _coreExports.Object, create$1 = function(g, b) {
60988
60986
  return $Object.create(g, b);
60989
60987
  }, create = { default: create$1, __esModule: !0 };
@@ -68864,6 +68862,22 @@ const Loading = ({ loading: m }) => {
68864
68862
  g
68865
68863
  ) }) : null;
68866
68864
  };
68865
+ function PrivateRoute({
68866
+ // permission,
68867
+ children: m
68868
+ }) {
68869
+ const { dispatch: g } = useContext$1(AppContext), b = async () => {
68870
+ try {
68871
+ g({ type: "SET_LOADING", payload: !0 }), await axios.post("/api/refreshToken"), g({ type: "SET_LOADING", payload: !1 });
68872
+ } catch (_) {
68873
+ _.response.status === 401 && _.response.data.redirectUrl && (window.location.href = _.response.data.redirectUrl), g({ type: "SET_LOADING", payload: !1 }), console.log("refreshed");
68874
+ }
68875
+ };
68876
+ return useEffect(() => (b(), setInterval(() => {
68877
+ b();
68878
+ }, 30 * 60 * 1e3), () => {
68879
+ }), []), /* @__PURE__ */ jsx$2(Fragment$2, { children: m });
68880
+ }
68867
68881
  export {
68868
68882
  $PROXY as $,
68869
68883
  useContext as A,
@@ -68898,6 +68912,7 @@ export {
68898
68912
  AppProvider as a1,
68899
68913
  Loading as a2,
68900
68914
  getCookie as a3,
68915
+ PrivateRoute as a4,
68901
68916
  createComponent as b,
68902
68917
  createSignal as c,
68903
68918
  delegateEvents as d,
package/dist/main.d.ts CHANGED
@@ -4,4 +4,5 @@ import AppHOC from "./components/AppHOC";
4
4
  import { AppContext, AppProvider } from "./context/AppContext";
5
5
  import Loading from "./components/ui/Loading";
6
6
  import getCookie from "./Utils/getCookie";
7
- export { AvatarMenu, Footer, AppHOC, AppContext, AppProvider, Loading, getCookie, };
7
+ import PrivateRoute from "./hoc/PrivateRoute";
8
+ export { AvatarMenu, Footer, AppHOC, AppContext, AppProvider, Loading, getCookie, PrivateRoute, };
@@ -1,10 +1,11 @@
1
- import { a0 as e, _ as p, a1 as s, Y as r, Z as t, a2 as A, a3 as i } from "./main-CiM1zLEP.js";
1
+ import { a0 as e, _ as s, a1 as t, Y as p, Z as r, a2 as i, a4 as A, a3 as n } from "./main--AIqSHg2.js";
2
2
  export {
3
3
  e as AppContext,
4
- p as AppHOC,
5
- s as AppProvider,
6
- r as AvatarMenu,
7
- t as Footer,
8
- A as Loading,
9
- i as getCookie
4
+ s as AppHOC,
5
+ t as AppProvider,
6
+ p as AvatarMenu,
7
+ r as Footer,
8
+ i as Loading,
9
+ A as PrivateRoute,
10
+ n as getCookie
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-common-components",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "type": "module",
5
5
  "main": "dist/propro-common-components.js",
6
6
  "types": "dist/main.d.ts",