@tracktor/shared-module 0.15.1 → 0.15.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v0.15.0
4
- - **[fix]** : `SentryConfig` component dependencies
3
+ ## v0.15.2
4
+ - **[feat]** : Add more props to config`SentryConfig` component.
@@ -4,6 +4,10 @@ interface SentryConfigProps<T> {
4
4
  */
5
5
  sentry: T & {
6
6
  init: (config: {
7
+ /**
8
+ * Enable debug mode.
9
+ */
10
+ debug?: boolean;
7
11
  /**
8
12
  * The Dsn used to connect to Sentry and identify the project. If omitted, the SDK will not send any data to Sentry.
9
13
  */
@@ -30,6 +34,10 @@ interface SentryConfigProps<T> {
30
34
  * Sample rate to determine session sampling.
31
35
  */
32
36
  replaysSessionSampleRate: number;
37
+ /**
38
+ * List of strings/regex controlling to which outgoing requests the SDK will attach tracing headers.
39
+ */
40
+ tracePropagationTargets?: (string | RegExp)[];
33
41
  }) => void;
34
42
  BrowserTracing: any;
35
43
  /**
@@ -55,13 +63,52 @@ interface SentryConfigProps<T> {
55
63
  createRoutesFromChildren: any;
56
64
  matchRoutes: any;
57
65
  };
66
+ /**
67
+ * List of integrations that should be installed after SDK was initialized.
68
+ */
69
+ integrations: any[];
70
+ /**
71
+ * Tracing is enabled if either this or tracesSampler is defined.
72
+ * If both are defined, tracesSampleRate is ignored.
73
+ */
74
+ tracesSampleRate?: number;
75
+ /**
76
+ * The sample rate for session-long replays.
77
+ * 1.0 will record all sessions and 0 will record none.
78
+ */
79
+ replaysSessionSampleRate?: number;
80
+ /**
81
+ * The sample rate for sessions that has had an error occur.
82
+ * This is independent of sessionSampleRate. 1.0 will record all sessions and 0 will record none.
83
+ */
84
+ replaysOnErrorSampleRate?: number;
85
+ /**
86
+ * List of strings/regex controlling to which outgoing requests the SDK will attach tracing headers.
87
+ * By default the SDK will attach those headers to all requests to localhost and same origin. If this option is provided, the SDK will match the request URL of outgoing requests against the items in this array, and only attach tracing headers if a match was found.
88
+ * Example:
89
+ * Sentry.init({
90
+ * tracePropagationTargets: ['api.site.com'],
91
+ * });
92
+ * Default: ['localhost', /^//]
93
+ */
94
+ tracePropagationTargets?: (string | RegExp)[];
95
+ /**
96
+ * Enable debug mode.
97
+ */
98
+ debug?: boolean;
58
99
  }
59
100
  /**
60
101
  * This component is used to initialize Sentry
61
102
  * @param dsn
62
103
  * @param sentry
63
104
  * @param integrations
105
+ * @param tracesSampleRate
106
+ * @param routingInstrumentationDependencies
107
+ * @param replaysSessionSampleRate
108
+ * @param replaysOnErrorSampleRate
109
+ * @param tracePropagationTargets
110
+ * @param debug
64
111
  * @constructor
65
112
  */
66
- declare const SentryConfig: <T extends unknown>({ dsn, sentry, routingInstrumentationDependencies }: SentryConfigProps<T>) => null;
113
+ declare const SentryConfig: <T extends unknown>({ dsn, sentry, integrations, tracesSampleRate, routingInstrumentationDependencies, replaysSessionSampleRate, replaysOnErrorSampleRate, tracePropagationTargets, debug, }: SentryConfigProps<T>) => null;
67
114
  export default SentryConfig;
package/dist/main.js CHANGED
@@ -14,18 +14,18 @@ function Er() {
14
14
  if (De)
15
15
  return N;
16
16
  De = 1;
17
- var n = We, o = Symbol.for("react.element"), a = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function s(h, f, b) {
17
+ var n = We, o = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function s(p, c, b) {
19
19
  var E, w = {}, T = null, C = null;
20
- b !== void 0 && (T = "" + b), f.key !== void 0 && (T = "" + f.key), f.ref !== void 0 && (C = f.ref);
21
- for (E in f)
22
- l.call(f, E) && !g.hasOwnProperty(E) && (w[E] = f[E]);
23
- if (h && h.defaultProps)
24
- for (E in f = h.defaultProps, f)
25
- w[E] === void 0 && (w[E] = f[E]);
26
- return { $$typeof: o, type: h, key: T, ref: C, props: w, _owner: u.current };
20
+ b !== void 0 && (T = "" + b), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (C = c.ref);
21
+ for (E in c)
22
+ l.call(c, E) && !v.hasOwnProperty(E) && (w[E] = c[E]);
23
+ if (p && p.defaultProps)
24
+ for (E in c = p.defaultProps, c)
25
+ w[E] === void 0 && (w[E] = c[E]);
26
+ return { $$typeof: o, type: p, key: T, ref: C, props: w, _owner: a.current };
27
27
  }
28
- return N.Fragment = a, N.jsx = s, N.jsxs = s, N;
28
+ return N.Fragment = u, N.jsx = s, N.jsxs = s, N;
29
29
  }
30
30
  var I = {};
31
31
  /**
@@ -40,7 +40,7 @@ var I = {};
40
40
  var Le;
41
41
  function Rr() {
42
42
  return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = We, o = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), A = Symbol.iterator, k = "@@iterator";
43
+ var n = We, o = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), A = Symbol.iterator, k = "@@iterator";
44
44
  function M(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
@@ -48,7 +48,7 @@ function Rr() {
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
50
  var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function v(e) {
51
+ function g(e) {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
54
54
  t[i - 1] = arguments[i];
@@ -57,8 +57,8 @@ function Rr() {
57
57
  }
58
58
  function le(e, r, t) {
59
59
  {
60
- var i = S.ReactDebugCurrentFrame, p = i.getStackAddendum();
61
- p !== "" && (r += "%s", t = t.concat([p]));
60
+ var i = S.ReactDebugCurrentFrame, h = i.getStackAddendum();
61
+ h !== "" && (r += "%s", t = t.concat([h]));
62
62
  var m = t.map(function(d) {
63
63
  return String(d);
64
64
  });
@@ -68,7 +68,7 @@ function Rr() {
68
68
  var ce = !1, Y = !1, Ne = !1, Ie = !1, Me = !1, fe;
69
69
  fe = Symbol.for("react.module.reference");
70
70
  function Ye(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === g || Me || e === u || e === b || e === E || Ie || e === C || ce || Y || Ne || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === s || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === l || e === v || Me || e === a || e === b || e === E || Ie || e === C || ce || Y || Ne || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === s || e.$$typeof === p || e.$$typeof === c || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -78,8 +78,8 @@ function Rr() {
78
78
  var i = e.displayName;
79
79
  if (i)
80
80
  return i;
81
- var p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : t;
81
+ var h = r.displayName || r.name || "";
82
+ return h !== "" ? t + "(" + h + ")" : t;
83
83
  }
84
84
  function de(e) {
85
85
  return e.displayName || "Context";
@@ -87,18 +87,18 @@ function Rr() {
87
87
  function j(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
94
94
  switch (e) {
95
95
  case l:
96
96
  return "Fragment";
97
- case a:
97
+ case u:
98
98
  return "Portal";
99
- case g:
99
+ case v:
100
100
  return "Profiler";
101
- case u:
101
+ case a:
102
102
  return "StrictMode";
103
103
  case b:
104
104
  return "Suspense";
@@ -107,19 +107,19 @@ function Rr() {
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case h:
110
+ case p:
111
111
  var r = e;
112
112
  return de(r) + ".Consumer";
113
113
  case s:
114
114
  var t = e;
115
115
  return de(t._context) + ".Provider";
116
- case f:
116
+ case c:
117
117
  return Ve(e, e.render, "ForwardRef");
118
118
  case w:
119
119
  var i = e.displayName || null;
120
120
  return i !== null ? i : j(e.type) || "Memo";
121
121
  case T: {
122
- var p = e, m = p._payload, d = p._init;
122
+ var h = e, m = h._payload, d = h._init;
123
123
  try {
124
124
  return j(d(m));
125
125
  } catch {
@@ -188,7 +188,7 @@ function Rr() {
188
188
  })
189
189
  });
190
190
  }
191
- L < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ L < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
194
  var Z = S.ReactCurrentDispatcher, K;
@@ -197,8 +197,8 @@ function Rr() {
197
197
  if (K === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (p) {
201
- var i = p.stack.trim().match(/\n( *(at )?)/);
200
+ } catch (h) {
201
+ var i = h.stack.trim().match(/\n( *(at )?)/);
202
202
  K = i && i[1] || "";
203
203
  }
204
204
  return `
@@ -220,7 +220,7 @@ function Rr() {
220
220
  }
221
221
  var i;
222
222
  Q = !0;
223
- var p = Error.prepareStackTrace;
223
+ var h = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var m;
226
226
  m = Z.current, Z.current = null, qe();
@@ -258,17 +258,17 @@ function Rr() {
258
258
  }
259
259
  } catch (P) {
260
260
  if (P && i && typeof P.stack == "string") {
261
- for (var c = P.stack.split(`
261
+ for (var f = P.stack.split(`
262
262
  `), _ = i.stack.split(`
263
- `), R = c.length - 1, y = _.length - 1; R >= 1 && y >= 0 && c[R] !== _[y]; )
263
+ `), R = f.length - 1, y = _.length - 1; R >= 1 && y >= 0 && f[R] !== _[y]; )
264
264
  y--;
265
265
  for (; R >= 1 && y >= 0; R--, y--)
266
- if (c[R] !== _[y]) {
266
+ if (f[R] !== _[y]) {
267
267
  if (R !== 1 || y !== 1)
268
268
  do
269
- if (R--, y--, y < 0 || c[R] !== _[y]) {
269
+ if (R--, y--, y < 0 || f[R] !== _[y]) {
270
270
  var O = `
271
- ` + c[R].replace(" at new ", " at ");
271
+ ` + f[R].replace(" at new ", " at ");
272
272
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
273
273
  }
274
274
  while (R >= 1 && y >= 0);
@@ -276,7 +276,7 @@ function Rr() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- Q = !1, Z.current = m, ze(), Error.prepareStackTrace = p;
279
+ Q = !1, Z.current = m, ze(), Error.prepareStackTrace = h;
280
280
  }
281
281
  var D = e ? e.displayName || e.name : "", $e = D ? V(D) : "";
282
282
  return typeof e == "function" && q.set(e, $e), $e;
@@ -303,14 +303,14 @@ function Rr() {
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case f:
306
+ case c:
307
307
  return Be(e.render);
308
308
  case w:
309
309
  return z(e.type, r, t);
310
310
  case T: {
311
- var i = e, p = i._payload, m = i._init;
311
+ var i = e, h = i._payload, m = i._init;
312
312
  try {
313
- return z(m(p), r, t);
313
+ return z(m(h), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
@@ -325,22 +325,22 @@ function Rr() {
325
325
  } else
326
326
  we.setExtraStackFrame(null);
327
327
  }
328
- function Je(e, r, t, i, p) {
328
+ function Je(e, r, t, i, h) {
329
329
  {
330
330
  var m = Function.call.bind(U);
331
331
  for (var d in e)
332
332
  if (m(e, d)) {
333
- var c = void 0;
333
+ var f = void 0;
334
334
  try {
335
335
  if (typeof e[d] != "function") {
336
336
  var _ = Error((i || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw _.name = "Invariant Violation", _;
338
338
  }
339
- c = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ f = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (R) {
341
- c = R;
341
+ f = R;
342
342
  }
343
- c && !(c instanceof Error) && (B(p), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, d, typeof c), B(null)), c instanceof Error && !(c.message in _e) && (_e[c.message] = !0, B(p), v("Failed %s type: %s", t, c.message), B(null));
343
+ f && !(f instanceof Error) && (B(h), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, d, typeof f), B(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, B(h), g("Failed %s type: %s", t, f.message), B(null));
344
344
  }
345
345
  }
346
346
  }
@@ -366,7 +366,7 @@ function Rr() {
366
366
  }
367
367
  function Te(e) {
368
368
  if (Ze(e))
369
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
369
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
370
370
  }
371
371
  var W = S.ReactCurrentOwner, Ke = {
372
372
  key: !0,
@@ -394,13 +394,13 @@ function Rr() {
394
394
  function rr(e, r) {
395
395
  if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
396
396
  var t = j(W.current.type);
397
- re[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(W.current.type), e.ref), re[t] = !0);
397
+ re[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(W.current.type), e.ref), re[t] = !0);
398
398
  }
399
399
  }
400
400
  function tr(e, r) {
401
401
  {
402
402
  var t = function() {
403
- Oe || (Oe = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
403
+ Oe || (Oe = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
404
404
  };
405
405
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: t,
@@ -411,7 +411,7 @@ function Rr() {
411
411
  function nr(e, r) {
412
412
  {
413
413
  var t = function() {
414
- Se || (Se = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
414
+ Se || (Se = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
415
415
  };
416
416
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
417
  get: t,
@@ -419,8 +419,8 @@ function Rr() {
419
419
  });
420
420
  }
421
421
  }
422
- var ar = function(e, r, t, i, p, m, d) {
423
- var c = {
422
+ var ar = function(e, r, t, i, h, m, d) {
423
+ var f = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: o,
426
426
  // Built-in properties that belong on the element
@@ -431,27 +431,27 @@ function Rr() {
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: m
433
433
  };
434
- return c._store = {}, Object.defineProperty(c._store, "validated", {
434
+ return f._store = {}, Object.defineProperty(f._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(c, "_self", {
439
+ }), Object.defineProperty(f, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
443
  value: i
444
- }), Object.defineProperty(c, "_source", {
444
+ }), Object.defineProperty(f, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: p
449
- }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
448
+ value: h
449
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
450
450
  };
451
- function or(e, r, t, i, p) {
451
+ function or(e, r, t, i, h) {
452
452
  {
453
- var m, d = {}, c = null, _ = null;
454
- t !== void 0 && (Te(t), c = "" + t), er(r) && (Te(r.key), c = "" + r.key), Qe(r) && (_ = r.ref, rr(r, p));
453
+ var m, d = {}, f = null, _ = null;
454
+ t !== void 0 && (Te(t), f = "" + t), er(r) && (Te(r.key), f = "" + r.key), Qe(r) && (_ = r.ref, rr(r, h));
455
455
  for (m in r)
456
456
  U.call(r, m) && !Ke.hasOwnProperty(m) && (d[m] = r[m]);
457
457
  if (e && e.defaultProps) {
@@ -459,11 +459,11 @@ function Rr() {
459
459
  for (m in R)
460
460
  d[m] === void 0 && (d[m] = R[m]);
461
461
  }
462
- if (c || _) {
462
+ if (f || _) {
463
463
  var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- c && tr(d, y), _ && nr(d, y);
464
+ f && tr(d, y), _ && nr(d, y);
465
465
  }
466
- return ar(e, c, _, p, i, W.current, d);
466
+ return ar(e, f, _, h, i, W.current, d);
467
467
  }
468
468
  }
469
469
  var te = S.ReactCurrentOwner, je = S.ReactDebugCurrentFrame;
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
525
525
  return;
526
526
  xe[t] = !0;
527
527
  var i = "";
528
- e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + j(e._owner.type) + "."), $(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), $(null);
528
+ e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + j(e._owner.type) + "."), $(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), $(null);
529
529
  }
530
530
  }
531
531
  function ke(e, r) {
@@ -540,9 +540,9 @@ Check the top-level render call using <` + t + ">.");
540
540
  else if (ae(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var p = M(e);
544
- if (typeof p == "function" && p !== e.entries)
545
- for (var m = p.call(e), d; !(d = m.next()).done; )
543
+ var h = M(e);
544
+ if (typeof h == "function" && h !== e.entries)
545
+ for (var m = h.call(e), d; !(d = m.next()).done; )
546
546
  ae(d.value) && Ae(d.value, r);
547
547
  }
548
548
  }
@@ -555,7 +555,7 @@ Check the top-level render call using <` + t + ">.");
555
555
  var t;
556
556
  if (typeof r == "function")
557
557
  t = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
560
  r.$$typeof === w))
561
561
  t = r.propTypes;
@@ -566,10 +566,10 @@ Check the top-level render call using <` + t + ">.");
566
566
  Je(t, e.props, "prop", i, e);
567
567
  } else if (r.PropTypes !== void 0 && !ne) {
568
568
  ne = !0;
569
- var p = j(r);
570
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
569
+ var h = j(r);
570
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
571
571
  }
572
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
575
  function lr(e) {
@@ -577,25 +577,25 @@ Check the top-level render call using <` + t + ">.");
577
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
578
  var i = r[t];
579
579
  if (i !== "children" && i !== "key") {
580
- $(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
580
+ $(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && ($(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
584
+ e.ref !== null && ($(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
585
585
  }
586
586
  }
587
- function Fe(e, r, t, i, p, m) {
587
+ function Fe(e, r, t, i, h, m) {
588
588
  {
589
589
  var d = Ye(e);
590
590
  if (!d) {
591
- var c = "";
592
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
- var _ = ir(p);
594
- _ ? c += _ : c += Pe();
591
+ var f = "";
592
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
+ var _ = ir(h);
594
+ _ ? f += _ : f += Pe();
595
595
  var R;
596
- e === null ? R = "null" : ee(e) ? R = "array" : e !== void 0 && e.$$typeof === o ? (R = "<" + (j(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, c);
596
+ e === null ? R = "null" : ee(e) ? R = "array" : e !== void 0 && e.$$typeof === o ? (R = "<" + (j(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
597
597
  }
598
- var y = or(e, r, t, p, m);
598
+ var y = or(e, r, t, h, m);
599
599
  if (y == null)
600
600
  return y;
601
601
  if (d) {
@@ -607,7 +607,7 @@ Check the top-level render call using <` + t + ">.");
607
607
  ke(O[D], e);
608
608
  Object.freeze && Object.freeze(O);
609
609
  } else
610
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
612
  ke(O, e);
613
613
  }
@@ -637,91 +637,91 @@ const H = pr({
637
637
  }), Tr = ({
638
638
  axios: n,
639
639
  children: o,
640
- translate: a,
640
+ translate: u,
641
641
  useAuth: l,
642
- Outlet: u,
643
- Navigate: g,
642
+ Outlet: a,
643
+ Navigate: v,
644
644
  useLocation: s,
645
- useGoogleTagManager: h
645
+ useGoogleTagManager: p
646
646
  }) => {
647
- const f = ue(
647
+ const c = ue(
648
648
  () => ({
649
649
  axios: n,
650
- Navigate: g,
651
- Outlet: u,
652
- translate: a,
650
+ Navigate: v,
651
+ Outlet: a,
652
+ translate: u,
653
653
  useAuth: l,
654
- useGoogleTagManager: h,
654
+ useGoogleTagManager: p,
655
655
  useLocation: s
656
656
  }),
657
- [g, u, n, a, l, h, s]
657
+ [v, a, n, u, l, p, s]
658
658
  );
659
- return /* @__PURE__ */ x.jsx(H.Provider, { value: f, children: o });
659
+ return /* @__PURE__ */ x.jsx(H.Provider, { value: c, children: o });
660
660
  }, G = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Or = ({
661
661
  Fallback: n,
662
662
  loginPath: o = "/login",
663
- localStorageKey: a = "user",
663
+ localStorageKey: u = "user",
664
664
  redirect401Path: l = "/login",
665
- ...u
665
+ ...a
666
666
  }) => {
667
667
  var A, k, M, S;
668
668
  const {
669
- axios: g = u.axios,
670
- useLocation: s = u.useLocation,
671
- useAuth: h = u.useAuth,
672
- Outlet: f = u.Outlet,
673
- Navigate: b = u.Navigate
669
+ axios: v = a.axios,
670
+ useLocation: s = a.useLocation,
671
+ useAuth: p = a.useAuth,
672
+ Outlet: c = a.Outlet,
673
+ Navigate: b = a.Navigate
674
674
  } = se(H);
675
- if (h === void 0)
675
+ if (p === void 0)
676
676
  throw new Error(G("useAuth"));
677
677
  if (s === void 0)
678
678
  throw new Error(G("useLocation"));
679
- if (f === void 0)
679
+ if (c === void 0)
680
680
  throw new Error(G("Outlet"));
681
681
  if (b === void 0)
682
682
  throw new Error(G("Navigate"));
683
- const [E, w] = gr(null), { isLogged: T } = h(), C = s();
683
+ const [E, w] = gr(null), { isLogged: T } = p(), C = s();
684
684
  return X(() => {
685
- g == null || g.interceptors.response.use(
686
- (v) => v,
687
- async (v) => {
685
+ v == null || v.interceptors.response.use(
686
+ (g) => g,
687
+ async (g) => {
688
688
  var Y;
689
- return typeof v == "object" && v && "response" in v && v.response && typeof v.response == "object" && "status" in v.response && v.response && typeof v.response == "object" && "status" in v.response && ((Y = v == null ? void 0 : v.response) == null ? void 0 : Y.status) === 401 && (g.defaults.headers.common.Authorization = null, localStorage.removeItem(a), w(l)), Promise.reject(v);
689
+ return typeof g == "object" && g && "response" in g && g.response && typeof g.response == "object" && "status" in g.response && g.response && typeof g.response == "object" && "status" in g.response && ((Y = g == null ? void 0 : g.response) == null ? void 0 : Y.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(u), w(l)), Promise.reject(g);
690
690
  }
691
691
  );
692
- }, [g == null ? void 0 : g.defaults, g == null ? void 0 : g.interceptors.response, a, l]), T && !E ? /* @__PURE__ */ x.jsx(hr, { fallback: n, children: (k = (A = C.state) == null ? void 0 : A.from) != null && k.state && ((S = (M = C.state) == null ? void 0 : M.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ x.jsx(b, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(f, {}) }) : /* @__PURE__ */ x.jsx(b, { to: o, state: { from: C }, replace: !0 });
692
+ }, [v == null ? void 0 : v.defaults, v == null ? void 0 : v.interceptors.response, u, l]), T && !E ? /* @__PURE__ */ x.jsx(hr, { fallback: n, children: (k = (A = C.state) == null ? void 0 : A.from) != null && k.state && ((S = (M = C.state) == null ? void 0 : M.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ x.jsx(b, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(c, {}) }) : /* @__PURE__ */ x.jsx(b, { to: o, state: { from: C }, replace: !0 });
693
693
  }, oe = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({ ...n }) => {
694
694
  const {
695
695
  useLocation: o = n.useLocation,
696
- Outlet: a = n.Outlet,
696
+ Outlet: u = n.Outlet,
697
697
  useGoogleTagManager: l = n.useGoogleTagManager
698
698
  } = se(H);
699
699
  if (o === void 0)
700
700
  throw new Error(oe("useLocation"));
701
- if (a === void 0)
701
+ if (u === void 0)
702
702
  throw new Error(oe("Outlet"));
703
703
  if (l === void 0)
704
704
  throw new Error(oe("useGoogleTagManager"));
705
- const { pathname: u } = o(), { sendEvent: g } = l();
705
+ const { pathname: a } = o(), { sendEvent: v } = l();
706
706
  return mr(() => {
707
- g({ event: "pageView", pathname: u });
708
- }, [u, g]), /* @__PURE__ */ x.jsx(a, {});
707
+ v({ event: "pageView", pathname: a });
708
+ }, [a, v]), /* @__PURE__ */ x.jsx(u, {});
709
709
  }, jr = ({
710
710
  axios: n,
711
711
  baseURL: o,
712
- tokenTypeKey: a = "tokenType",
712
+ tokenTypeKey: u = "tokenType",
713
713
  userLocalStorageKey: l = "user",
714
- tokenKey: u = "accessToken",
715
- postContentType: g = "application/json"
714
+ tokenKey: a = "accessToken",
715
+ postContentType: v = "application/json"
716
716
  }) => (X(() => {
717
717
  if (!n.defaults)
718
718
  return;
719
- const s = localStorage.getItem(l), h = s ? JSON.parse(s) : null, f = h != null && h[a] ? h[a] : null, b = h != null && h[u] ? h[u] : null, E = s ? `${f} ${b}` : null;
720
- n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = g, E && (n.defaults.headers.common.Authorization = E);
721
- }, [n.defaults, o, g, u, a, l]), null), Pr = ({
719
+ const s = localStorage.getItem(l), p = s ? JSON.parse(s) : null, c = p != null && p[u] ? p[u] : null, b = p != null && p[a] ? p[a] : null, E = s ? `${c} ${b}` : null;
720
+ n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, E && (n.defaults.headers.common.Authorization = E);
721
+ }, [n.defaults, o, v, a, u, l]), null), Pr = ({
722
722
  i18n: n,
723
723
  initReactI18next: o,
724
- resources: a,
724
+ resources: u,
725
725
  LanguageDetector: l
726
726
  }) => (n.use(l).use(o).init({
727
727
  debug: !1,
@@ -733,14 +733,25 @@ const H = pr({
733
733
  react: {
734
734
  useSuspense: !0
735
735
  },
736
- resources: a,
736
+ resources: u,
737
737
  returnNull: !1
738
738
  }).then(() => {
739
739
  document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
740
- }), n.on("languageChanged", (u) => {
741
- document.documentElement.setAttribute("lang", u);
742
- }), null), xr = ({ dsn: n, sentry: o, routingInstrumentationDependencies: a }) => (X(() => {
740
+ }), n.on("languageChanged", (a) => {
741
+ document.documentElement.setAttribute("lang", a);
742
+ }), null), xr = ({
743
+ dsn: n,
744
+ sentry: o,
745
+ integrations: u,
746
+ tracesSampleRate: l,
747
+ routingInstrumentationDependencies: a,
748
+ replaysSessionSampleRate: v,
749
+ replaysOnErrorSampleRate: s,
750
+ tracePropagationTargets: p,
751
+ debug: c
752
+ }) => (X(() => {
743
753
  process.env.NODE_ENV === "production" && o.init({
754
+ debug: c,
744
755
  dsn: n,
745
756
  integrations: [
746
757
  new o.BrowserTracing({
@@ -752,36 +763,44 @@ const H = pr({
752
763
  a.matchRoutes
753
764
  )
754
765
  }),
755
- new o.Replay()
766
+ new o.Replay(),
767
+ ...u
756
768
  ],
757
- replaysOnErrorSampleRate: 1,
758
- replaysSessionSampleRate: 0.1,
759
- tracesSampleRate: 1
769
+ replaysOnErrorSampleRate: s || 1,
770
+ replaysSessionSampleRate: v || 0.1,
771
+ tracePropagationTargets: p,
772
+ tracesSampleRate: l || 1
760
773
  });
761
774
  }, [
775
+ c,
762
776
  n,
777
+ u,
778
+ s,
779
+ v,
763
780
  a.createRoutesFromChildren,
764
781
  a.matchRoutes,
765
782
  a.useEffect,
766
783
  a.useLocation,
767
784
  a.useNavigationType,
768
- o
785
+ o,
786
+ p,
787
+ l
769
788
  ]), null), Ar = ({ IMaskMixin: n, ...o }) => {
770
- const a = ue(
789
+ const u = ue(
771
790
  // eslint-disable-next-line react/jsx-props-no-spreading
772
- () => n(({ TextField: l, ...u }) => /* @__PURE__ */ x.jsx(l, { ...u })),
791
+ () => n(({ TextField: l, ...a }) => /* @__PURE__ */ x.jsx(l, { ...a })),
773
792
  [n]
774
793
  );
775
- return /* @__PURE__ */ x.jsx(a, { ...o });
794
+ return /* @__PURE__ */ x.jsx(u, { ...o });
776
795
  }, kr = ({ mapbox: n, accessToken: o }) => (X(() => {
777
796
  n && o && (n.accessToken = o);
778
797
  }, [o, n]), null), Fr = ({
779
798
  children: n,
780
799
  defaultOptions: o,
781
- QueryClient: a,
800
+ QueryClient: u,
782
801
  QueryClientProvider: l
783
802
  }) => {
784
- const u = new a({
803
+ const a = new u({
785
804
  defaultOptions: {
786
805
  queries: {
787
806
  refetchOnWindowFocus: !1,
@@ -790,44 +809,44 @@ const H = pr({
790
809
  }
791
810
  }
792
811
  });
793
- return /* @__PURE__ */ x.jsx(l, { client: u, children: n });
812
+ return /* @__PURE__ */ x.jsx(l, { client: a, children: n });
794
813
  }, $r = (n) => {
795
- const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: a = n == null ? void 0 : n.translate } = se(H);
814
+ const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: u = n == null ? void 0 : n.translate } = se(H);
796
815
  return { printError: J(
797
- (u) => {
798
- var h, f, b, E, w, T, C, A, k;
799
- const g = a ? a(o) : "Unknown error", { response: s } = u || {};
800
- return u != null && u.reason ? String(u.reason) : (h = s == null ? void 0 : s.data) != null && h.reason ? String(s.data.reason) : (f = s == null ? void 0 : s.data) != null && f.message ? String(s.data.message) : (E = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && E.length && Array.isArray((w = s == null ? void 0 : s.data) == null ? void 0 : w.detail) && ((C = (T = s == null ? void 0 : s.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((k = (A = s == null ? void 0 : s.data) == null ? void 0 : A.detail[0]) == null ? void 0 : k.msg) == "string" ? String(s.data.detail[0].msg) : g;
816
+ (a) => {
817
+ var p, c, b, E, w, T, C, A, k;
818
+ const v = u ? u(o) : "Unknown error", { response: s } = a || {};
819
+ return a != null && a.reason ? String(a.reason) : (p = s == null ? void 0 : s.data) != null && p.reason ? String(s.data.reason) : (c = s == null ? void 0 : s.data) != null && c.message ? String(s.data.message) : (E = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && E.length && Array.isArray((w = s == null ? void 0 : s.data) == null ? void 0 : w.detail) && ((C = (T = s == null ? void 0 : s.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((k = (A = s == null ? void 0 : s.data) == null ? void 0 : A.detail[0]) == null ? void 0 : k.msg) == "string" ? String(s.data.detail[0].msg) : v;
801
820
  },
802
- [a, o]
821
+ [u, o]
803
822
  ) };
804
823
  }, Dr = ({
805
824
  data: n,
806
825
  fetchNextPage: o,
807
- isFetchingNextPage: a,
826
+ isFetchingNextPage: u,
808
827
  isInitialLoading: l,
809
- isLoading: u,
810
- enabled: g = !0
828
+ isLoading: a,
829
+ enabled: v = !0
811
830
  }) => {
812
831
  const s = J(
813
- async (f) => {
814
- a || !g || await o({ pageParam: (f == null ? void 0 : f.pageParam) || f.visibleRowsCount });
832
+ async (c) => {
833
+ u || !v || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
815
834
  },
816
- [g, o, a]
817
- ), h = ue(() => {
835
+ [v, o, u]
836
+ ), p = ue(() => {
818
837
  if (n)
819
- return n.pages.reduce((f, b) => [...f, ...b], []);
838
+ return n.pages.reduce((c, b) => [...c, ...b], []);
820
839
  }, [n]);
821
840
  return {
822
841
  fetchNextPageOnRowsScrollEnd: s,
823
- isLoading: a || u,
842
+ isLoading: u || a,
824
843
  loadingVariant: l ? "skeleton" : "linear",
825
- rows: h
844
+ rows: p
826
845
  };
827
846
  }, Lr = (n) => {
828
847
  const o = J(
829
- ({ tokenType: l, accessToken: u }) => {
830
- n.defaults.headers.common.Authorization = `${l} ${u}`;
848
+ ({ tokenType: l, accessToken: a }) => {
849
+ n.defaults.headers.common.Authorization = `${l} ${a}`;
831
850
  },
832
851
  [n.defaults.headers.common]
833
852
  );
@@ -838,21 +857,21 @@ const H = pr({
838
857
  setAuthenticationToken: o
839
858
  };
840
859
  }, yr = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), br = (n) => {
841
- const l = n.split("/").filter((u) => u.length > 0).map((u) => u.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((f) => f.charAt(0).toUpperCase() + f.slice(1)).join("")).join("");
860
+ const l = n.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
842
861
  return l.charAt(0).toLowerCase() + l.slice(1);
843
- }, _r = (n, o, a) => {
844
- const l = br(o), u = yr(a);
845
- return `${l}${u}`;
862
+ }, _r = (n, o, u) => {
863
+ const l = br(o), a = yr(u);
864
+ return `${l}${a}`;
846
865
  }, wr = (n) => {
847
866
  if (n)
848
- return (n == null ? void 0 : n.reduce((o, a) => (o[a] = {
867
+ return (n == null ? void 0 : n.reduce((o, u) => (o[u] = {
849
868
  query: {
850
869
  useInfinite: !0,
851
870
  useInfiniteQueryParam: "offset"
852
871
  }
853
872
  }, o), {})) || {};
854
873
  }, Wr = (n) => {
855
- const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: a = void 0 } = n || {};
874
+ const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: u = void 0 } = n || {};
856
875
  return {
857
876
  api: {
858
877
  hooks: {
@@ -873,7 +892,7 @@ const H = pr({
873
892
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
874
893
  },
875
894
  operationName: _r,
876
- ...(a == null ? void 0 : a.length) && { operations: wr(a) },
895
+ ...(u == null ? void 0 : u.length) && { operations: wr(u) },
877
896
  query: {
878
897
  useQuery: !0
879
898
  }
package/dist/main.umd.cjs CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ue;function Le(){if(ue)return W;ue=1;var n=E,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function s(h,f,C){var y,T={},S=null,O=null;C!==void 0&&(S=""+C),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(O=f.ref);for(y in f)l.call(f,y)&&!g.hasOwnProperty(y)&&(T[y]=f[y]);if(h&&h.defaultProps)for(y in f=h.defaultProps,f)T[y]===void 0&&(T[y]=f[y]);return{$$typeof:o,type:h,key:S,ref:O,props:T,_owner:u.current}}return W.Fragment=a,W.jsx=s,W.jsxs=s,W}var N={};/**
9
+ */var ue;function Le(){if(ue)return W;ue=1;var n=E,o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function s(p,c,C){var y,T={},S=null,O=null;C!==void 0&&(S=""+C),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(O=c.ref);for(y in c)l.call(c,y)&&!v.hasOwnProperty(y)&&(T[y]=c[y]);if(p&&p.defaultProps)for(y in c=p.defaultProps,c)T[y]===void 0&&(T[y]=c[y]);return{$$typeof:o,type:p,key:S,ref:O,props:T,_owner:a.current}}return W.Fragment=u,W.jsx=s,W.jsxs=s,W}var N={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var se;function Me(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=E,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,D="@@iterator";function U(e){if(e===null||typeof e!="object")return null;var t=F&&e[F]||e[D];return typeof t=="function"?t:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];le("error",e,r)}}function le(e,t,r){{var i=k.ReactDebugCurrentFrame,p=i.getStackAddendum();p!==""&&(t+="%s",r=r.concat([p]));var m=r.map(function(d){return String(d)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var ce=!1,G=!1,et=!1,tt=!1,rt=!1,fe;fe=Symbol.for("react.module.reference");function nt(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===g||rt||e===u||e===C||e===y||tt||e===O||ce||G||et||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===s||e.$$typeof===h||e.$$typeof===f||e.$$typeof===fe||e.getModuleId!==void 0))}function at(e,t,r){var i=e.displayName;if(i)return i;var p=t.displayName||t.name||"";return p!==""?r+"("+p+")":r}function de(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case a:return"Portal";case g:return"Profiler";case u:return"StrictMode";case C:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return de(t)+".Consumer";case s:var r=e;return de(r._context)+".Provider";case f:return at(e,e.render,"ForwardRef");case T:var i=e.displayName||null;return i!==null?i:A(e.type)||"Memo";case S:{var p=e,m=p._payload,d=p._init;try{return A(d(m))}catch{return null}}}return null}var L=Object.assign,Y=0,ve,pe,ge,he,me,Ee,ye;function Re(){}Re.__reactDisabledLog=!0;function ot(){{if(Y===0){ve=console.log,pe=console.info,ge=console.warn,he=console.error,me=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function it(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:ve}),info:L({},e,{value:pe}),warn:L({},e,{value:ge}),error:L({},e,{value:he}),group:L({},e,{value:me}),groupCollapsed:L({},e,{value:Ee}),groupEnd:L({},e,{value:ye})})}Y<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,t,r){{if(ee===void 0)try{throw Error()}catch(p){var i=p.stack.trim().match(/\n( *(at )?)/);ee=i&&i[1]||""}return`
18
- `+ee+e}}var te=!1,X;{var ut=typeof WeakMap=="function"?WeakMap:Map;X=new ut}function be(e,t){if(!e||te)return"";{var r=X.get(e);if(r!==void 0)return r}var i;te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=$.current,$.current=null,ot();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(x){i=x}Reflect.construct(e,[],d)}else{try{d.call()}catch(x){i=x}e.call(d.prototype)}}else{try{throw Error()}catch(x){i=x}e()}}catch(x){if(x&&i&&typeof x.stack=="string"){for(var c=x.stack.split(`
17
+ */var se;function Me(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=E,o=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),p=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,D="@@iterator";function U(e){if(e===null||typeof e!="object")return null;var t=F&&e[F]||e[D];return typeof t=="function"?t:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];le("error",e,r)}}function le(e,t,r){{var i=k.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",r=r.concat([h]));var m=r.map(function(d){return String(d)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var ce=!1,G=!1,et=!1,tt=!1,rt=!1,fe;fe=Symbol.for("react.module.reference");function nt(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===v||rt||e===a||e===C||e===y||tt||e===O||ce||G||et||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===s||e.$$typeof===p||e.$$typeof===c||e.$$typeof===fe||e.getModuleId!==void 0))}function at(e,t,r){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?r+"("+h+")":r}function de(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case u:return"Portal";case v:return"Profiler";case a:return"StrictMode";case C:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return de(t)+".Consumer";case s:var r=e;return de(r._context)+".Provider";case c:return at(e,e.render,"ForwardRef");case T:var i=e.displayName||null;return i!==null?i:A(e.type)||"Memo";case S:{var h=e,m=h._payload,d=h._init;try{return A(d(m))}catch{return null}}}return null}var L=Object.assign,Y=0,ve,pe,ge,he,me,Ee,ye;function Re(){}Re.__reactDisabledLog=!0;function ot(){{if(Y===0){ve=console.log,pe=console.info,ge=console.warn,he=console.error,me=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function it(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:ve}),info:L({},e,{value:pe}),warn:L({},e,{value:ge}),error:L({},e,{value:he}),group:L({},e,{value:me}),groupCollapsed:L({},e,{value:Ee}),groupEnd:L({},e,{value:ye})})}Y<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,t,r){{if(ee===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ee=i&&i[1]||""}return`
18
+ `+ee+e}}var te=!1,X;{var ut=typeof WeakMap=="function"?WeakMap:Map;X=new ut}function be(e,t){if(!e||te)return"";{var r=X.get(e);if(r!==void 0)return r}var i;te=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=$.current,$.current=null,ot();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(x){i=x}Reflect.construct(e,[],d)}else{try{d.call()}catch(x){i=x}e.call(d.prototype)}}else{try{throw Error()}catch(x){i=x}e()}}catch(x){if(x&&i&&typeof x.stack=="string"){for(var f=x.stack.split(`
19
19
  `),w=i.stack.split(`
20
- `),R=c.length-1,_=w.length-1;R>=1&&_>=0&&c[R]!==w[_];)_--;for(;R>=1&&_>=0;R--,_--)if(c[R]!==w[_]){if(R!==1||_!==1)do if(R--,_--,_<0||c[R]!==w[_]){var j=`
21
- `+c[R].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,j),j}while(R>=1&&_>=0);break}}}finally{te=!1,$.current=m,it(),Error.prepareStackTrace=p}var I=e?e.displayName||e.name:"",De=I?J(I):"";return typeof e=="function"&&X.set(e,De),De}function st(e,t,r){return be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function H(e,t,r){if(e==null)return"";if(typeof e=="function")return be(e,lt(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case y:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return st(e.render);case T:return H(e.type,t,r);case S:{var i=e,p=i._payload,m=i._init;try{return H(m(p),t,r)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,_e={},Ce=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);Ce.setExtraStackFrame(r)}else Ce.setExtraStackFrame(null)}function ct(e,t,r,i,p){{var m=Function.call.bind(Z);for(var d in e)if(m(e,d)){var c=void 0;try{if(typeof e[d]!="function"){var w=Error((i||"React class")+": "+r+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}c=e[d](t,d,i,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){c=R}c&&!(c instanceof Error)&&(q(p),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",r,d,typeof c),q(null)),c instanceof Error&&!(c.message in _e)&&(_e[c.message]=!0,q(p),v("Failed %s type: %s",r,c.message),q(null))}}}var ft=Array.isArray;function re(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function vt(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Te(e){if(vt(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),we(e)}var z=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,ne;ne={};function gt(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){if(typeof e.ref=="string"&&z.current&&t&&z.current.stateNode!==t){var r=A(z.current.type);ne[r]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(z.current.type),e.ref),ne[r]=!0)}}function Et(e,t){{var r=function(){Oe||(Oe=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function yt(e,t){{var r=function(){Se||(Se=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var Rt=function(e,t,r,i,p,m,d){var c={$$typeof:o,type:e,key:t,ref:r,props:d,_owner:m};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function bt(e,t,r,i,p){{var m,d={},c=null,w=null;r!==void 0&&(Te(r),c=""+r),ht(t)&&(Te(t.key),c=""+t.key),gt(t)&&(w=t.ref,mt(t,p));for(m in t)Z.call(t,m)&&!pt.hasOwnProperty(m)&&(d[m]=t[m]);if(e&&e.defaultProps){var R=e.defaultProps;for(m in R)d[m]===void 0&&(d[m]=R[m])}if(c||w){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&Et(d,_),w&&yt(d,_)}return Rt(e,c,w,p,i,z.current,d)}}var ae=k.ReactCurrentOwner,je=k.ReactDebugCurrentFrame;function M(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Pe(){{if(ae.current){var e=A(ae.current.type);if(e)return`
20
+ `),R=f.length-1,_=w.length-1;R>=1&&_>=0&&f[R]!==w[_];)_--;for(;R>=1&&_>=0;R--,_--)if(f[R]!==w[_]){if(R!==1||_!==1)do if(R--,_--,_<0||f[R]!==w[_]){var j=`
21
+ `+f[R].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,j),j}while(R>=1&&_>=0);break}}}finally{te=!1,$.current=m,it(),Error.prepareStackTrace=h}var I=e?e.displayName||e.name:"",De=I?J(I):"";return typeof e=="function"&&X.set(e,De),De}function st(e,t,r){return be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function H(e,t,r){if(e==null)return"";if(typeof e=="function")return be(e,lt(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case y:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return st(e.render);case T:return H(e.type,t,r);case S:{var i=e,h=i._payload,m=i._init;try{return H(m(h),t,r)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,_e={},Ce=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);Ce.setExtraStackFrame(r)}else Ce.setExtraStackFrame(null)}function ct(e,t,r,i,h){{var m=Function.call.bind(Z);for(var d in e)if(m(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((i||"React class")+": "+r+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}f=e[d](t,d,i,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(q(h),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",r,d,typeof f),q(null)),f instanceof Error&&!(f.message in _e)&&(_e[f.message]=!0,q(h),g("Failed %s type: %s",r,f.message),q(null))}}}var ft=Array.isArray;function re(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function vt(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Te(e){if(vt(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),we(e)}var z=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,ne;ne={};function gt(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){if(typeof e.ref=="string"&&z.current&&t&&z.current.stateNode!==t){var r=A(z.current.type);ne[r]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(z.current.type),e.ref),ne[r]=!0)}}function Et(e,t){{var r=function(){Oe||(Oe=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function yt(e,t){{var r=function(){Se||(Se=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var Rt=function(e,t,r,i,h,m,d){var f={$$typeof:o,type:e,key:t,ref:r,props:d,_owner:m};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function bt(e,t,r,i,h){{var m,d={},f=null,w=null;r!==void 0&&(Te(r),f=""+r),ht(t)&&(Te(t.key),f=""+t.key),gt(t)&&(w=t.ref,mt(t,h));for(m in t)Z.call(t,m)&&!pt.hasOwnProperty(m)&&(d[m]=t[m]);if(e&&e.defaultProps){var R=e.defaultProps;for(m in R)d[m]===void 0&&(d[m]=R[m])}if(f||w){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Et(d,_),w&&yt(d,_)}return Rt(e,f,w,h,i,z.current,d)}}var ae=k.ReactCurrentOwner,je=k.ReactDebugCurrentFrame;function M(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Pe(){{if(ae.current){var e=A(ae.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function _t(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),r=e.lineNumber;return`
24
24
 
25
25
  Check your code at `+t+":"+r+"."}return""}}var ke={};function Ct(e){{var t=Pe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
26
26
 
27
- Check the top-level render call using <`+r+">.")}return t}}function Ae(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Ct(t);if(ke[r])return;ke[r]=!0;var i="";e&&e._owner&&e._owner!==ae.current&&(i=" It was passed a child from "+A(e._owner.type)+"."),M(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,i),M(null)}}function xe(e,t){{if(typeof e!="object")return;if(re(e))for(var r=0;r<e.length;r++){var i=e[r];ie(i)&&Ae(i,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var p=U(e);if(typeof p=="function"&&p!==e.entries)for(var m=p.call(e),d;!(d=m.next()).done;)ie(d.value)&&Ae(d.value,t)}}}function wt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===T))r=t.propTypes;else return;if(r){var i=A(t);ct(r,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!oe){oe=!0;var p=A(t);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var i=t[r];if(i!=="children"&&i!=="key"){M(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),M(null);break}}e.ref!==null&&(M(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function Fe(e,t,r,i,p,m){{var d=nt(e);if(!d){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=_t(p);w?c+=w:c+=Pe();var R;e===null?R="null":re(e)?R="array":e!==void 0&&e.$$typeof===o?(R="<"+(A(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,c)}var _=bt(e,t,r,p,m);if(_==null)return _;if(d){var j=t.children;if(j!==void 0)if(i)if(re(j)){for(var I=0;I<j.length;I++)xe(j[I],e);Object.freeze&&Object.freeze(j)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(j,e)}return e===l?Tt(_):wt(_),_}}function Ot(e,t,r){return Fe(e,t,r,!0)}function St(e,t,r){return Fe(e,t,r,!1)}var jt=St,Pt=Ot;N.Fragment=l,N.jsx=jt,N.jsxs=Pt}()),N}process.env.NODE_ENV==="production"?K.exports=Le():K.exports=Me();var P=K.exports;const V=E.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Ie=({axios:n,children:o,translate:a,useAuth:l,Outlet:u,Navigate:g,useLocation:s,useGoogleTagManager:h})=>{const f=E.useMemo(()=>({axios:n,Navigate:g,Outlet:u,translate:a,useAuth:l,useGoogleTagManager:h,useLocation:s}),[g,u,n,a,l,h,s]);return P.jsx(V.Provider,{value:f,children:o})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:o="/login",localStorageKey:a="user",redirect401Path:l="/login",...u})=>{var F,D,U,k;const{axios:g=u.axios,useLocation:s=u.useLocation,useAuth:h=u.useAuth,Outlet:f=u.Outlet,Navigate:C=u.Navigate}=E.useContext(V);if(h===void 0)throw new Error(B("useAuth"));if(s===void 0)throw new Error(B("useLocation"));if(f===void 0)throw new Error(B("Outlet"));if(C===void 0)throw new Error(B("Navigate"));const[y,T]=E.useState(null),{isLogged:S}=h(),O=s();return E.useLayoutEffect(()=>{g==null||g.interceptors.response.use(v=>v,async v=>{var G;return typeof v=="object"&&v&&"response"in v&&v.response&&typeof v.response=="object"&&"status"in v.response&&v.response&&typeof v.response=="object"&&"status"in v.response&&((G=v==null?void 0:v.response)==null?void 0:G.status)===401&&(g.defaults.headers.common.Authorization=null,localStorage.removeItem(a),T(l)),Promise.reject(v)})},[g==null?void 0:g.defaults,g==null?void 0:g.interceptors.response,a,l]),S&&!y?P.jsx(E.Suspense,{fallback:n,children:(D=(F=O.state)==null?void 0:F.from)!=null&&D.state&&((k=(U=O.state)==null?void 0:U.from)==null?void 0:k.pathname)===o?P.jsx(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(f,{})}):P.jsx(C,{to:o,state:{from:O},replace:!0})},Q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({...n})=>{const{useLocation:o=n.useLocation,Outlet:a=n.Outlet,useGoogleTagManager:l=n.useGoogleTagManager}=E.useContext(V);if(o===void 0)throw new Error(Q("useLocation"));if(a===void 0)throw new Error(Q("Outlet"));if(l===void 0)throw new Error(Q("useGoogleTagManager"));const{pathname:u}=o(),{sendEvent:g}=l();return E.useEffect(()=>{g({event:"pageView",pathname:u})},[u,g]),P.jsx(a,{})},Ve=({axios:n,baseURL:o,tokenTypeKey:a="tokenType",userLocalStorageKey:l="user",tokenKey:u="accessToken",postContentType:g="application/json"})=>(E.useLayoutEffect(()=>{if(!n.defaults)return;const s=localStorage.getItem(l),h=s?JSON.parse(s):null,f=h!=null&&h[a]?h[a]:null,C=h!=null&&h[u]?h[u]:null,y=s?`${f} ${C}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=g,y&&(n.defaults.headers.common.Authorization=y)},[n.defaults,o,g,u,a,l]),null),Ye=({i18n:n,initReactI18next:o,resources:a,LanguageDetector:l})=>(n.use(l).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:a,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",u=>{document.documentElement.setAttribute("lang",u)}),null),ze=({dsn:n,sentry:o,routingInstrumentationDependencies:a})=>(E.useLayoutEffect(()=>{process.env.NODE_ENV==="production"&&o.init({dsn:n,integrations:[new o.BrowserTracing({routingInstrumentation:o.reactRouterV6Instrumentation(a.useEffect,a.useLocation,a.useNavigationType,a.createRoutesFromChildren,a.matchRoutes)}),new o.Replay],replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,tracesSampleRate:1})},[n,a.createRoutesFromChildren,a.matchRoutes,a.useEffect,a.useLocation,a.useNavigationType,o]),null),Be=({IMaskMixin:n,...o})=>{const a=E.useMemo(()=>n(({TextField:l,...u})=>P.jsx(l,{...u})),[n]);return P.jsx(a,{...o})},Ue=({mapbox:n,accessToken:o})=>(E.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Ge=({children:n,defaultOptions:o,QueryClient:a,QueryClientProvider:l})=>{const u=new a({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(l,{client:u,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:a=n==null?void 0:n.translate}=E.useContext(V);return{printError:E.useCallback(u=>{var h,f,C,y,T,S,O,F,D;const g=a?a(o):"Unknown error",{response:s}=u||{};return u!=null&&u.reason?String(u.reason):(h=s==null?void 0:s.data)!=null&&h.reason?String(s.data.reason):(f=s==null?void 0:s.data)!=null&&f.message?String(s.data.message):(y=(C=s==null?void 0:s.data)==null?void 0:C.detail)!=null&&y.length&&Array.isArray((T=s==null?void 0:s.data)==null?void 0:T.detail)&&((O=(S=s==null?void 0:s.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((D=(F=s==null?void 0:s.data)==null?void 0:F.detail[0])==null?void 0:D.msg)=="string"?String(s.data.detail[0].msg):g},[a,o])}},Xe=({data:n,fetchNextPage:o,isFetchingNextPage:a,isInitialLoading:l,isLoading:u,enabled:g=!0})=>{const s=E.useCallback(async f=>{a||!g||await o({pageParam:(f==null?void 0:f.pageParam)||f.visibleRowsCount})},[g,o,a]),h=E.useMemo(()=>{if(n)return n.pages.reduce((f,C)=>[...f,...C],[])},[n]);return{fetchNextPageOnRowsScrollEnd:s,isLoading:a||u,loadingVariant:l?"skeleton":"linear",rows:h}},He=n=>{const o=E.useCallback(({tokenType:l,accessToken:u})=>{n.defaults.headers.common.Authorization=`${l} ${u}`},[n.defaults.headers.common]);return{clearAuthenticationToken:E.useCallback(()=>{n.defaults.headers.common.Authorization=null},[n.defaults.headers.common]),setAuthenticationToken:o}},Ze=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),qe=n=>{const l=n.split("/").filter(u=>u.length>0).map(u=>u.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(f=>f.charAt(0).toUpperCase()+f.slice(1)).join("")).join("");return l.charAt(0).toLowerCase()+l.slice(1)},Ke=(n,o,a)=>{const l=qe(o),u=Ze(a);return`${l}${u}`},Qe=n=>{if(n)return(n==null?void 0:n.reduce((o,a)=>(o[a]={query:{useInfinite:!0,useInfiniteQueryParam:"offset"}},o),{}))||{}},$e=n=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:a=void 0}=n||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:o,output:{client:"react-query",mode:"tags-split",override:{header:l=>["Generated by orval 🍺",...l.title?[l.title]:[],...l.description?[l.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:Ke,...(a==null?void 0:a.length)&&{operations:Qe(a)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};b.AxiosConfig=Ve,b.GTMSendPageView=Ne,b.I18nConfig=Ye,b.InjectDependenciesContext=V,b.InjectDependenciesProvider=Ie,b.MapBoxConfig=Ue,b.MaskTextField=Be,b.QueryClientConfigProvider=Ge,b.RequireAuth=We,b.SentryConfig=ze,b.getOrvalConfig=$e,b.useAuth=He,b.useInfiniteDataGrid=Xe,b.useResponseError=Je,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+r+">.")}return t}}function Ae(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Ct(t);if(ke[r])return;ke[r]=!0;var i="";e&&e._owner&&e._owner!==ae.current&&(i=" It was passed a child from "+A(e._owner.type)+"."),M(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,i),M(null)}}function xe(e,t){{if(typeof e!="object")return;if(re(e))for(var r=0;r<e.length;r++){var i=e[r];ie(i)&&Ae(i,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var h=U(e);if(typeof h=="function"&&h!==e.entries)for(var m=h.call(e),d;!(d=m.next()).done;)ie(d.value)&&Ae(d.value,t)}}}function wt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===T))r=t.propTypes;else return;if(r){var i=A(t);ct(r,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!oe){oe=!0;var h=A(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var i=t[r];if(i!=="children"&&i!=="key"){M(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),M(null);break}}e.ref!==null&&(M(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function Fe(e,t,r,i,h,m){{var d=nt(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=_t(h);w?f+=w:f+=Pe();var R;e===null?R="null":re(e)?R="array":e!==void 0&&e.$$typeof===o?(R="<"+(A(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,f)}var _=bt(e,t,r,h,m);if(_==null)return _;if(d){var j=t.children;if(j!==void 0)if(i)if(re(j)){for(var I=0;I<j.length;I++)xe(j[I],e);Object.freeze&&Object.freeze(j)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(j,e)}return e===l?Tt(_):wt(_),_}}function Ot(e,t,r){return Fe(e,t,r,!0)}function St(e,t,r){return Fe(e,t,r,!1)}var jt=St,Pt=Ot;N.Fragment=l,N.jsx=jt,N.jsxs=Pt}()),N}process.env.NODE_ENV==="production"?K.exports=Le():K.exports=Me();var P=K.exports;const V=E.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Ie=({axios:n,children:o,translate:u,useAuth:l,Outlet:a,Navigate:v,useLocation:s,useGoogleTagManager:p})=>{const c=E.useMemo(()=>({axios:n,Navigate:v,Outlet:a,translate:u,useAuth:l,useGoogleTagManager:p,useLocation:s}),[v,a,n,u,l,p,s]);return P.jsx(V.Provider,{value:c,children:o})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:o="/login",localStorageKey:u="user",redirect401Path:l="/login",...a})=>{var F,D,U,k;const{axios:v=a.axios,useLocation:s=a.useLocation,useAuth:p=a.useAuth,Outlet:c=a.Outlet,Navigate:C=a.Navigate}=E.useContext(V);if(p===void 0)throw new Error(B("useAuth"));if(s===void 0)throw new Error(B("useLocation"));if(c===void 0)throw new Error(B("Outlet"));if(C===void 0)throw new Error(B("Navigate"));const[y,T]=E.useState(null),{isLogged:S}=p(),O=s();return E.useLayoutEffect(()=>{v==null||v.interceptors.response.use(g=>g,async g=>{var G;return typeof g=="object"&&g&&"response"in g&&g.response&&typeof g.response=="object"&&"status"in g.response&&g.response&&typeof g.response=="object"&&"status"in g.response&&((G=g==null?void 0:g.response)==null?void 0:G.status)===401&&(v.defaults.headers.common.Authorization=null,localStorage.removeItem(u),T(l)),Promise.reject(g)})},[v==null?void 0:v.defaults,v==null?void 0:v.interceptors.response,u,l]),S&&!y?P.jsx(E.Suspense,{fallback:n,children:(D=(F=O.state)==null?void 0:F.from)!=null&&D.state&&((k=(U=O.state)==null?void 0:U.from)==null?void 0:k.pathname)===o?P.jsx(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(c,{})}):P.jsx(C,{to:o,state:{from:O},replace:!0})},Q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({...n})=>{const{useLocation:o=n.useLocation,Outlet:u=n.Outlet,useGoogleTagManager:l=n.useGoogleTagManager}=E.useContext(V);if(o===void 0)throw new Error(Q("useLocation"));if(u===void 0)throw new Error(Q("Outlet"));if(l===void 0)throw new Error(Q("useGoogleTagManager"));const{pathname:a}=o(),{sendEvent:v}=l();return E.useEffect(()=>{v({event:"pageView",pathname:a})},[a,v]),P.jsx(u,{})},Ve=({axios:n,baseURL:o,tokenTypeKey:u="tokenType",userLocalStorageKey:l="user",tokenKey:a="accessToken",postContentType:v="application/json"})=>(E.useLayoutEffect(()=>{if(!n.defaults)return;const s=localStorage.getItem(l),p=s?JSON.parse(s):null,c=p!=null&&p[u]?p[u]:null,C=p!=null&&p[a]?p[a]:null,y=s?`${c} ${C}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,y&&(n.defaults.headers.common.Authorization=y)},[n.defaults,o,v,a,u,l]),null),Ye=({i18n:n,initReactI18next:o,resources:u,LanguageDetector:l})=>(n.use(l).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:u,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",a=>{document.documentElement.setAttribute("lang",a)}),null),ze=({dsn:n,sentry:o,integrations:u,tracesSampleRate:l,routingInstrumentationDependencies:a,replaysSessionSampleRate:v,replaysOnErrorSampleRate:s,tracePropagationTargets:p,debug:c})=>(E.useLayoutEffect(()=>{process.env.NODE_ENV==="production"&&o.init({debug:c,dsn:n,integrations:[new o.BrowserTracing({routingInstrumentation:o.reactRouterV6Instrumentation(a.useEffect,a.useLocation,a.useNavigationType,a.createRoutesFromChildren,a.matchRoutes)}),new o.Replay,...u],replaysOnErrorSampleRate:s||1,replaysSessionSampleRate:v||.1,tracePropagationTargets:p,tracesSampleRate:l||1})},[c,n,u,s,v,a.createRoutesFromChildren,a.matchRoutes,a.useEffect,a.useLocation,a.useNavigationType,o,p,l]),null),Be=({IMaskMixin:n,...o})=>{const u=E.useMemo(()=>n(({TextField:l,...a})=>P.jsx(l,{...a})),[n]);return P.jsx(u,{...o})},Ue=({mapbox:n,accessToken:o})=>(E.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Ge=({children:n,defaultOptions:o,QueryClient:u,QueryClientProvider:l})=>{const a=new u({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(l,{client:a,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:u=n==null?void 0:n.translate}=E.useContext(V);return{printError:E.useCallback(a=>{var p,c,C,y,T,S,O,F,D;const v=u?u(o):"Unknown error",{response:s}=a||{};return a!=null&&a.reason?String(a.reason):(p=s==null?void 0:s.data)!=null&&p.reason?String(s.data.reason):(c=s==null?void 0:s.data)!=null&&c.message?String(s.data.message):(y=(C=s==null?void 0:s.data)==null?void 0:C.detail)!=null&&y.length&&Array.isArray((T=s==null?void 0:s.data)==null?void 0:T.detail)&&((O=(S=s==null?void 0:s.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((D=(F=s==null?void 0:s.data)==null?void 0:F.detail[0])==null?void 0:D.msg)=="string"?String(s.data.detail[0].msg):v},[u,o])}},Xe=({data:n,fetchNextPage:o,isFetchingNextPage:u,isInitialLoading:l,isLoading:a,enabled:v=!0})=>{const s=E.useCallback(async c=>{u||!v||await o({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[v,o,u]),p=E.useMemo(()=>{if(n)return n.pages.reduce((c,C)=>[...c,...C],[])},[n]);return{fetchNextPageOnRowsScrollEnd:s,isLoading:u||a,loadingVariant:l?"skeleton":"linear",rows:p}},He=n=>{const o=E.useCallback(({tokenType:l,accessToken:a})=>{n.defaults.headers.common.Authorization=`${l} ${a}`},[n.defaults.headers.common]);return{clearAuthenticationToken:E.useCallback(()=>{n.defaults.headers.common.Authorization=null},[n.defaults.headers.common]),setAuthenticationToken:o}},Ze=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),qe=n=>{const l=n.split("/").filter(a=>a.length>0).map(a=>a.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return l.charAt(0).toLowerCase()+l.slice(1)},Ke=(n,o,u)=>{const l=qe(o),a=Ze(u);return`${l}${a}`},Qe=n=>{if(n)return(n==null?void 0:n.reduce((o,u)=>(o[u]={query:{useInfinite:!0,useInfiniteQueryParam:"offset"}},o),{}))||{}},$e=n=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:u=void 0}=n||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:o,output:{client:"react-query",mode:"tags-split",override:{header:l=>["Generated by orval 🍺",...l.title?[l.title]:[],...l.description?[l.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:Ke,...(u==null?void 0:u.length)&&{operations:Qe(u)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};b.AxiosConfig=Ve,b.GTMSendPageView=Ne,b.I18nConfig=Ye,b.InjectDependenciesContext=V,b.InjectDependenciesProvider=Ie,b.MapBoxConfig=Ue,b.MaskTextField=Be,b.QueryClientConfigProvider=Ge,b.RequireAuth=We,b.SentryConfig=ze,b.getOrvalConfig=$e,b.useAuth=He,b.useInfiniteDataGrid=Xe,b.useResponseError=Je,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",