@tracktor/shared-module 0.9.0 → 0.9.1

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.9.0
4
- - **[feat]** : Orval config operation name
3
+ ## v0.9.1
4
+ - **[fix]** : Orval config operation name
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import $e, { createContext as gr, useMemo as ie, useContext as se, useState as hr, useLayoutEffect as J, Suspense as mr, useEffect as Er, useCallback as Le } from "react";
1
+ import $e, { createContext as pr, useMemo as ie, useContext as se, useState as gr, useLayoutEffect as J, Suspense as hr, useEffect as mr, useCallback as Le } from "react";
2
2
  var oe = { exports: {} }, W = {};
3
3
  /**
4
4
  * @license React
@@ -10,19 +10,19 @@ var oe = { exports: {} }, W = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Fe;
13
- function yr() {
13
+ function Er() {
14
14
  if (Fe)
15
15
  return W;
16
16
  Fe = 1;
17
17
  var n = $e, o = Symbol.for("react.element"), d = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function u(m, c, R) {
18
+ function u(m, l, R) {
19
19
  var b, w = {}, C = null, T = null;
20
- R !== void 0 && (C = "" + R), c.key !== void 0 && (C = "" + c.key), c.ref !== void 0 && (T = c.ref);
21
- for (b in c)
22
- v.call(c, b) && !s.hasOwnProperty(b) && (w[b] = c[b]);
20
+ R !== void 0 && (C = "" + R), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (T = l.ref);
21
+ for (b in l)
22
+ v.call(l, b) && !s.hasOwnProperty(b) && (w[b] = l[b]);
23
23
  if (m && m.defaultProps)
24
- for (b in c = m.defaultProps, c)
25
- w[b] === void 0 && (w[b] = c[b]);
24
+ for (b in l = m.defaultProps, l)
25
+ w[b] === void 0 && (w[b] = l[b]);
26
26
  return { $$typeof: o, type: m, key: C, ref: T, props: w, _owner: i.current };
27
27
  }
28
28
  return W.Fragment = d, W.jsx = u, W.jsxs = u, W;
@@ -38,9 +38,9 @@ var M = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var Ie;
41
- function br() {
41
+ function yr() {
42
42
  return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = $e, o = Symbol.for("react.element"), d = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), m = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
43
+ var n = $e, o = Symbol.for("react.element"), d = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), m = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
44
44
  function Y(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
@@ -65,16 +65,16 @@ function br() {
65
65
  h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
66
66
  }
67
67
  }
68
- var le = !1, N = !1, Me = !1, Ye = !1, Ne = !1, ce;
68
+ var le = !1, N = !1, We = !1, Me = !1, Ye = !1, ce;
69
69
  ce = Symbol.for("react.module.reference");
70
- function Ve(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === v || e === s || Ne || e === i || e === R || e === b || Ye || e === T || le || N || Me || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === w || e.$$typeof === u || e.$$typeof === m || e.$$typeof === c || // This needs to include all possible module reference object
70
+ function Ne(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === v || e === s || Ye || e === i || e === R || e === b || Me || e === T || le || N || We || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === w || e.$$typeof === u || e.$$typeof === m || e.$$typeof === l || // 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.
75
75
  e.$$typeof === ce || e.getModuleId !== void 0));
76
76
  }
77
- function Ue(e, r, t) {
77
+ function Ve(e, r, t) {
78
78
  var a = e.displayName;
79
79
  if (a)
80
80
  return a;
@@ -113,8 +113,8 @@ function br() {
113
113
  case u:
114
114
  var t = e;
115
115
  return fe(t._context) + ".Provider";
116
- case c:
117
- return Ue(e, e.render, "ForwardRef");
116
+ case l:
117
+ return Ve(e, e.render, "ForwardRef");
118
118
  case w:
119
119
  var a = e.displayName || null;
120
120
  return a !== null ? a : j(e.type) || "Memo";
@@ -133,7 +133,7 @@ function br() {
133
133
  function ye() {
134
134
  }
135
135
  ye.__reactDisabledLog = !0;
136
- function qe() {
136
+ function Ue() {
137
137
  {
138
138
  if ($ === 0) {
139
139
  de = console.log, ve = console.info, pe = console.warn, ge = console.error, he = console.group, me = console.groupCollapsed, Ee = console.groupEnd;
@@ -156,7 +156,7 @@ function br() {
156
156
  $++;
157
157
  }
158
158
  }
159
- function Be() {
159
+ function qe() {
160
160
  {
161
161
  if ($--, $ === 0) {
162
162
  var e = {
@@ -207,8 +207,8 @@ function br() {
207
207
  }
208
208
  var Q = !1, U;
209
209
  {
210
- var ze = typeof WeakMap == "function" ? WeakMap : Map;
211
- U = new ze();
210
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
211
+ U = new Be();
212
212
  }
213
213
  function be(e, r) {
214
214
  if (!e || Q)
@@ -223,7 +223,7 @@ function br() {
223
223
  var g = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var h;
226
- h = K.current, K.current = null, qe();
226
+ h = K.current, K.current = null, Ue();
227
227
  try {
228
228
  if (r) {
229
229
  var f = function() {
@@ -258,17 +258,17 @@ function br() {
258
258
  }
259
259
  } catch (P) {
260
260
  if (P && a && typeof P.stack == "string") {
261
- for (var l = P.stack.split(`
261
+ for (var c = P.stack.split(`
262
262
  `), _ = a.stack.split(`
263
- `), E = l.length - 1, y = _.length - 1; E >= 1 && y >= 0 && l[E] !== _[y]; )
263
+ `), E = c.length - 1, y = _.length - 1; E >= 1 && y >= 0 && c[E] !== _[y]; )
264
264
  y--;
265
265
  for (; E >= 1 && y >= 0; E--, y--)
266
- if (l[E] !== _[y]) {
266
+ if (c[E] !== _[y]) {
267
267
  if (E !== 1 || y !== 1)
268
268
  do
269
- if (E--, y--, y < 0 || l[E] !== _[y]) {
269
+ if (E--, y--, y < 0 || c[E] !== _[y]) {
270
270
  var O = `
271
- ` + l[E].replace(" at new ", " at ");
271
+ ` + c[E].replace(" at new ", " at ");
272
272
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, O), O;
273
273
  }
274
274
  while (E >= 1 && y >= 0);
@@ -276,15 +276,15 @@ function br() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- Q = !1, K.current = h, Be(), Error.prepareStackTrace = g;
279
+ Q = !1, K.current = h, qe(), Error.prepareStackTrace = g;
280
280
  }
281
281
  var I = e ? e.displayName || e.name : "", De = I ? V(I) : "";
282
282
  return typeof e == "function" && U.set(e, De), De;
283
283
  }
284
- function Ge(e, r, t) {
284
+ function ze(e, r, t) {
285
285
  return be(e, !1);
286
286
  }
287
- function Je(e) {
287
+ function Ge(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
@@ -292,7 +292,7 @@ function br() {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return be(e, Je(e));
295
+ return be(e, Ge(e));
296
296
  if (typeof e == "string")
297
297
  return V(e);
298
298
  switch (e) {
@@ -303,8 +303,8 @@ function br() {
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case c:
307
- return Ge(e.render);
306
+ case l:
307
+ return ze(e.render);
308
308
  case w:
309
309
  return q(e.type, r, t);
310
310
  case C: {
@@ -325,36 +325,36 @@ function br() {
325
325
  } else
326
326
  _e.setExtraStackFrame(null);
327
327
  }
328
- function He(e, r, t, a, g) {
328
+ function Je(e, r, t, a, g) {
329
329
  {
330
330
  var h = Function.call.bind(B);
331
331
  for (var f in e)
332
332
  if (h(e, f)) {
333
- var l = void 0;
333
+ var c = void 0;
334
334
  try {
335
335
  if (typeof e[f] != "function") {
336
336
  var _ = Error((a || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw _.name = "Invariant Violation", _;
338
338
  }
339
- l = e[f](r, f, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ c = e[f](r, f, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (E) {
341
- l = E;
341
+ c = E;
342
342
  }
343
- l && !(l instanceof Error) && (z(g), p("%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).", a || "React class", t, f, typeof l), z(null)), l instanceof Error && !(l.message in Re) && (Re[l.message] = !0, z(g), p("Failed %s type: %s", t, l.message), z(null));
343
+ c && !(c instanceof Error) && (z(g), p("%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).", a || "React class", t, f, typeof c), z(null)), c instanceof Error && !(c.message in Re) && (Re[c.message] = !0, z(g), p("Failed %s type: %s", t, c.message), z(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Ke = Array.isArray;
347
+ var He = Array.isArray;
348
348
  function Z(e) {
349
- return Ke(e);
349
+ return He(e);
350
350
  }
351
- function Xe(e) {
351
+ function Ke(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return t;
355
355
  }
356
356
  }
357
- function Qe(e) {
357
+ function Xe(e) {
358
358
  try {
359
359
  return we(e), !1;
360
360
  } catch {
@@ -365,17 +365,17 @@ function br() {
365
365
  return "" + e;
366
366
  }
367
367
  function Te(e) {
368
- if (Qe(e))
369
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), we(e);
368
+ if (Xe(e))
369
+ return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), we(e);
370
370
  }
371
- var L = S.ReactCurrentOwner, Ze = {
371
+ var L = S.ReactCurrentOwner, Qe = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, Ce, Oe, ee;
377
377
  ee = {};
378
- function er(e) {
378
+ function Ze(e) {
379
379
  if (B.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
@@ -383,7 +383,7 @@ function br() {
383
383
  }
384
384
  return e.ref !== void 0;
385
385
  }
386
- function rr(e) {
386
+ function er(e) {
387
387
  if (B.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
@@ -391,13 +391,13 @@ function br() {
391
391
  }
392
392
  return e.key !== void 0;
393
393
  }
394
- function tr(e, r) {
394
+ function rr(e, r) {
395
395
  if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
396
396
  var t = j(L.current.type);
397
397
  ee[t] || (p('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(L.current.type), e.ref), ee[t] = !0);
398
398
  }
399
399
  }
400
- function nr(e, r) {
400
+ function tr(e, r) {
401
401
  {
402
402
  var t = function() {
403
403
  Ce || (Ce = !0, p("%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));
@@ -408,7 +408,7 @@ function br() {
408
408
  });
409
409
  }
410
410
  }
411
- function ar(e, r) {
411
+ function nr(e, r) {
412
412
  {
413
413
  var t = function() {
414
414
  Oe || (Oe = !0, p("%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));
@@ -419,8 +419,8 @@ function br() {
419
419
  });
420
420
  }
421
421
  }
422
- var or = function(e, r, t, a, g, h, f) {
423
- var l = {
422
+ var ar = function(e, r, t, a, g, h, f) {
423
+ var c = {
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,39 +431,39 @@ function br() {
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: h
433
433
  };
434
- return l._store = {}, Object.defineProperty(l._store, "validated", {
434
+ return c._store = {}, Object.defineProperty(c._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(l, "_self", {
439
+ }), Object.defineProperty(c, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
443
  value: a
444
- }), Object.defineProperty(l, "_source", {
444
+ }), Object.defineProperty(c, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
448
  value: g
449
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
449
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
450
450
  };
451
- function ir(e, r, t, a, g) {
451
+ function or(e, r, t, a, g) {
452
452
  {
453
- var h, f = {}, l = null, _ = null;
454
- t !== void 0 && (Te(t), l = "" + t), rr(r) && (Te(r.key), l = "" + r.key), er(r) && (_ = r.ref, tr(r, g));
453
+ var h, f = {}, c = null, _ = null;
454
+ t !== void 0 && (Te(t), c = "" + t), er(r) && (Te(r.key), c = "" + r.key), Ze(r) && (_ = r.ref, rr(r, g));
455
455
  for (h in r)
456
- B.call(r, h) && !Ze.hasOwnProperty(h) && (f[h] = r[h]);
456
+ B.call(r, h) && !Qe.hasOwnProperty(h) && (f[h] = r[h]);
457
457
  if (e && e.defaultProps) {
458
458
  var E = e.defaultProps;
459
459
  for (h in E)
460
460
  f[h] === void 0 && (f[h] = E[h]);
461
461
  }
462
- if (l || _) {
462
+ if (c || _) {
463
463
  var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && nr(f, y), _ && ar(f, y);
464
+ c && tr(f, y), _ && nr(f, y);
465
465
  }
466
- return or(e, l, _, g, a, L.current, f);
466
+ return ar(e, c, _, g, a, L.current, f);
467
467
  }
468
468
  }
469
469
  var re = S.ReactCurrentOwner, Se = S.ReactDebugCurrentFrame;
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function sr(e) {
494
+ function ir(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
497
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -503,7 +503,7 @@ Check your code at ` + r + ":" + t + ".";
503
503
  }
504
504
  }
505
505
  var Pe = {};
506
- function ur(e) {
506
+ function sr(e) {
507
507
  {
508
508
  var r = je();
509
509
  if (!r) {
@@ -520,7 +520,7 @@ Check the top-level render call using <` + t + ">.");
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var t = ur(r);
523
+ var t = sr(r);
524
524
  if (Pe[t])
525
525
  return;
526
526
  Pe[t] = !0;
@@ -547,7 +547,7 @@ Check the top-level render call using <` + t + ">.");
547
547
  }
548
548
  }
549
549
  }
550
- function lr(e) {
550
+ function ur(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
@@ -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 === c || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === l || // 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;
@@ -563,7 +563,7 @@ Check the top-level render call using <` + t + ">.");
563
563
  return;
564
564
  if (t) {
565
565
  var a = j(r);
566
- He(t, e.props, "prop", a, e);
566
+ Je(t, e.props, "prop", a, e);
567
567
  } else if (r.PropTypes !== void 0 && !te) {
568
568
  te = !0;
569
569
  var g = j(r);
@@ -572,7 +572,7 @@ Check the top-level render call using <` + t + ">.");
572
572
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function cr(e) {
575
+ function lr(e) {
576
576
  {
577
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
578
  var a = r[t];
@@ -586,16 +586,16 @@ Check the top-level render call using <` + t + ">.");
586
586
  }
587
587
  function Ae(e, r, t, a, g, h) {
588
588
  {
589
- var f = Ve(e);
589
+ var f = Ne(e);
590
590
  if (!f) {
591
- var l = "";
592
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " 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 _ = sr(g);
594
- _ ? l += _ : l += je();
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(g);
594
+ _ ? c += _ : c += je();
595
595
  var E;
596
- e === null ? E = "null" : Z(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (j(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
596
+ e === null ? E = "null" : Z(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (j(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, c);
597
597
  }
598
- var y = ir(e, r, t, g, h);
598
+ var y = or(e, r, t, g, h);
599
599
  if (y == null)
600
600
  return y;
601
601
  if (f) {
@@ -611,22 +611,22 @@ Check the top-level render call using <` + t + ">.");
611
611
  else
612
612
  xe(O, e);
613
613
  }
614
- return e === v ? cr(y) : lr(y), y;
614
+ return e === v ? lr(y) : ur(y), y;
615
615
  }
616
616
  }
617
- function fr(e, r, t) {
617
+ function cr(e, r, t) {
618
618
  return Ae(e, r, t, !0);
619
619
  }
620
- function dr(e, r, t) {
620
+ function fr(e, r, t) {
621
621
  return Ae(e, r, t, !1);
622
622
  }
623
- var vr = dr, pr = fr;
624
- M.Fragment = v, M.jsx = vr, M.jsxs = pr;
623
+ var dr = fr, vr = cr;
624
+ M.Fragment = v, M.jsx = dr, M.jsxs = vr;
625
625
  }()), M;
626
626
  }
627
- process.env.NODE_ENV === "production" ? oe.exports = yr() : oe.exports = br();
627
+ process.env.NODE_ENV === "production" ? oe.exports = Er() : oe.exports = yr();
628
628
  var k = oe.exports;
629
- const H = gr({
629
+ const H = pr({
630
630
  axios: void 0,
631
631
  children: void 0,
632
632
  Navigate: void 0,
@@ -644,7 +644,7 @@ const H = gr({
644
644
  useLocation: u,
645
645
  useGoogleTagManager: m
646
646
  }) => {
647
- const c = ie(
647
+ const l = ie(
648
648
  () => ({
649
649
  axios: n,
650
650
  Navigate: s,
@@ -656,7 +656,7 @@ const H = gr({
656
656
  }),
657
657
  [s, i, n, d, v, m, u]
658
658
  );
659
- return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: o });
659
+ return /* @__PURE__ */ k.jsx(H.Provider, { value: l, children: o });
660
660
  }, G = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Tr = ({
661
661
  Fallback: n,
662
662
  loginPath: o = "/login",
@@ -669,18 +669,18 @@ const H = gr({
669
669
  axios: s = i.axios,
670
670
  useLocation: u = i.useLocation,
671
671
  useAuth: m = i.useAuth,
672
- Outlet: c = i.Outlet,
672
+ Outlet: l = i.Outlet,
673
673
  Navigate: R = i.Navigate
674
674
  } = se(H);
675
675
  if (m === void 0)
676
676
  throw new Error(G("useAuth"));
677
677
  if (u === void 0)
678
678
  throw new Error(G("useLocation"));
679
- if (c === void 0)
679
+ if (l === void 0)
680
680
  throw new Error(G("Outlet"));
681
681
  if (R === void 0)
682
682
  throw new Error(G("Navigate"));
683
- const [b, w] = hr(null), { isLogged: C } = m(), T = u();
683
+ const [b, w] = gr(null), { isLogged: C } = m(), T = u();
684
684
  return J(() => {
685
685
  s == null || s.interceptors.response.use(
686
686
  (p) => p,
@@ -689,7 +689,7 @@ const H = gr({
689
689
  return typeof p == "object" && p && "response" in p && p.response && typeof p.response == "object" && "status" in p.response && p.response && typeof p.response == "object" && "status" in p.response && ((N = p == null ? void 0 : p.response) == null ? void 0 : N.status) === 401 && (s.defaults.headers.common.Authorization = null, localStorage.removeItem(d), w(v)), Promise.reject(p);
690
690
  }
691
691
  );
692
- }, [s == null ? void 0 : s.defaults, s == null ? void 0 : s.interceptors.response, d, v]), C && !b ? /* @__PURE__ */ k.jsx(mr, { fallback: n, children: (A = (x = T.state) == null ? void 0 : x.from) != null && A.state && ((S = (Y = T.state) == null ? void 0 : Y.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ k.jsx(R, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(R, { to: o, state: { from: T }, replace: !0 });
692
+ }, [s == null ? void 0 : s.defaults, s == null ? void 0 : s.interceptors.response, d, v]), C && !b ? /* @__PURE__ */ k.jsx(hr, { fallback: n, children: (A = (x = T.state) == null ? void 0 : x.from) != null && A.state && ((S = (Y = T.state) == null ? void 0 : Y.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ k.jsx(R, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(l, {}) }) : /* @__PURE__ */ k.jsx(R, { to: o, state: { from: T }, replace: !0 });
693
693
  }, ae = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Cr = ({ ...n }) => {
694
694
  const {
695
695
  useLocation: o = n.useLocation,
@@ -703,7 +703,7 @@ const H = gr({
703
703
  if (v === void 0)
704
704
  throw new Error(ae("useGoogleTagManager"));
705
705
  const { pathname: i } = o(), { sendEvent: s } = v();
706
- return Er(() => {
706
+ return mr(() => {
707
707
  s({ event: "pageView", pathname: i });
708
708
  }, [i, s]), /* @__PURE__ */ k.jsx(d, {});
709
709
  }, Or = ({
@@ -714,8 +714,8 @@ const H = gr({
714
714
  }) => (J(() => {
715
715
  if (!n.defaults)
716
716
  return;
717
- const i = localStorage.getItem(d), s = i ? JSON.parse(i) : null, u = s && typeof s == "object" && "tokenType" in s && s.tokenType ? s.tokenType : null, m = s && typeof s == "object" && "accessToken" in s && s.accessToken ? s.accessToken : null, c = i ? `${u} ${m}` : null;
718
- n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, c && (n.defaults.headers.common.Authorization = c);
717
+ const i = localStorage.getItem(d), s = i ? JSON.parse(i) : null, u = s && typeof s == "object" && "tokenType" in s && s.tokenType ? s.tokenType : null, m = s && typeof s == "object" && "accessToken" in s && s.accessToken ? s.accessToken : null, l = i ? `${u} ${m}` : null;
718
+ n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, l && (n.defaults.headers.common.Authorization = l);
719
719
  }, [
720
720
  n.defaults,
721
721
  n.defaults.baseURL,
@@ -780,9 +780,9 @@ const H = gr({
780
780
  const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: d = n == null ? void 0 : n.translate } = se(H);
781
781
  return { printError: Le(
782
782
  (i) => {
783
- var m, c, R, b, w, C, T, x, A;
783
+ var m, l, R, b, w, C, T, x, A;
784
784
  const s = d ? d(o) : "Unknown error", { response: u } = i || {};
785
- return i != null && i.reason ? String(i.reason) : (m = u == null ? void 0 : u.data) != null && m.reason ? String(u.data.reason) : (c = u == null ? void 0 : u.data) != null && c.message ? String(u.data.message) : (b = (R = u == null ? void 0 : u.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((T = (C = u == null ? void 0 : u.data) == null ? void 0 : C.detail[0]) != null && T.msg) && typeof ((A = (x = u == null ? void 0 : u.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(u.data.detail[0].msg) : s;
785
+ return i != null && i.reason ? String(i.reason) : (m = u == null ? void 0 : u.data) != null && m.reason ? String(u.data.reason) : (l = u == null ? void 0 : u.data) != null && l.message ? String(u.data.message) : (b = (R = u == null ? void 0 : u.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((T = (C = u == null ? void 0 : u.data) == null ? void 0 : C.detail[0]) != null && T.msg) && typeof ((A = (x = u == null ? void 0 : u.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(u.data.detail[0].msg) : s;
786
786
  },
787
787
  [d, o]
788
788
  ) };
@@ -795,13 +795,13 @@ const H = gr({
795
795
  enabled: s = !0
796
796
  }) => {
797
797
  const u = Le(
798
- async (c) => {
799
- d || !s || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
798
+ async (l) => {
799
+ d || !s || await o({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
800
800
  },
801
801
  [s, o, d]
802
802
  ), m = ie(() => {
803
803
  if (n)
804
- return n.pages.reduce((c, R) => [...c, ...R], []);
804
+ return n.pages.reduce((l, R) => [...l, ...R], []);
805
805
  }, [n]);
806
806
  return {
807
807
  fetchNextPageOnRowsScrollEnd: u,
@@ -809,11 +809,11 @@ const H = gr({
809
809
  loadingVariant: v ? "skeleton" : "linear",
810
810
  rows: m
811
811
  };
812
- }, We = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Rr = (n) => {
813
- const v = n.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => We(c)).join("")).join("");
812
+ }, br = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Rr = (n) => {
813
+ const v = n.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
814
814
  return v.charAt(0).toLowerCase() + v.slice(1);
815
815
  }, Fr = (n, o, d) => {
816
- const v = Rr(o), i = We(d);
816
+ const v = Rr(o), i = br(d);
817
817
  return `${v}${i}`;
818
818
  };
819
819
  export {
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 se;function Le(){if(se)return W;se=1;var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(E,l,w){var _,C={},S=null,O=null;w!==void 0&&(S=""+w),l.key!==void 0&&(S=""+l.key),l.ref!==void 0&&(O=l.ref);for(_ in l)v.call(l,_)&&!s.hasOwnProperty(_)&&(C[_]=l[_]);if(E&&E.defaultProps)for(_ in l=E.defaultProps,l)C[_]===void 0&&(C[_]=l[_]);return{$$typeof:o,type:E,key:S,ref:O,props:C,_owner:i.current}}return W.Fragment=d,W.jsx=u,W.jsxs=u,W}var N={};/**
9
+ */var se;function Ie(){if(se)return W;se=1;var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(E,c,T){var _,C={},S=null,O=null;T!==void 0&&(S=""+T),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(O=c.ref);for(_ in c)v.call(c,_)&&!s.hasOwnProperty(_)&&(C[_]=c[_]);if(E&&E.defaultProps)for(_ in c=E.defaultProps,c)C[_]===void 0&&(C[_]=c[_]);return{$$typeof:o,type:E,key:S,ref:O,props:C,_owner:i.current}}return W.Fragment=d,W.jsx=u,W.jsxs=u,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 ue;function Me(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function G(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];le("error",e,t)}}function le(e,r,t){{var a=k.ReactDebugCurrentFrame,g=a.getStackAddendum();g!==""&&(r+="%s",t=t.concat([g]));var h=t.map(function(f){return String(f)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var fe=!1,z=!1,Ze=!1,qe=!1,$e=!1,de;de=Symbol.for("react.module.reference");function er(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===s||$e||e===i||e===w||e===_||qe||e===O||fe||z||Ze||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===C||e.$$typeof===u||e.$$typeof===E||e.$$typeof===l||e.$$typeof===de||e.getModuleId!==void 0))}function rr(e,r,t){var a=e.displayName;if(a)return a;var g=r.displayName||r.name||"";return g!==""?t+"("+g+")":t}function ve(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 v:return"Fragment";case d:return"Portal";case s:return"Profiler";case i:return"StrictMode";case w:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ve(r)+".Consumer";case u:var t=e;return ve(t._context)+".Provider";case l:return rr(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:x(e.type)||"Memo";case S:{var g=e,h=g._payload,f=g._init;try{return x(f(h))}catch{return null}}}return null}var I=Object.assign,V=0,pe,ge,he,me,Ee,ye,be;function Re(){}Re.__reactDisabledLog=!0;function tr(){{if(V===0){pe=console.log,ge=console.info,he=console.warn,me=console.error,Ee=console.group,ye=console.groupCollapsed,be=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})}V++}}function nr(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:pe}),info:I({},e,{value:ge}),warn:I({},e,{value:he}),error:I({},e,{value:me}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:ye}),groupEnd:I({},e,{value:be})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(g){var a=g.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
- `+ee+e}}var re=!1,H;{var ar=typeof WeakMap=="function"?WeakMap:Map;H=new ar}function _e(e,r){if(!e||re)return"";{var t=H.get(e);if(t!==void 0)return t}var a;re=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=$.current,$.current=null,tr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(A){a=A}Reflect.construct(e,[],f)}else{try{f.call()}catch(A){a=A}e.call(f.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var c=A.stack.split(`
19
- `),T=a.stack.split(`
20
- `),y=c.length-1,b=T.length-1;y>=1&&b>=0&&c[y]!==T[b];)b--;for(;y>=1&&b>=0;y--,b--)if(c[y]!==T[b]){if(y!==1||b!==1)do if(y--,b--,b<0||c[y]!==T[b]){var j=`
21
- `+c[y].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,j),j}while(y>=1&&b>=0);break}}}finally{re=!1,$.current=h,nr(),Error.prepareStackTrace=g}var M=e?e.displayName||e.name:"",Ie=M?J(M):"";return typeof e=="function"&&H.set(e,Ie),Ie}function or(e,r,t){return _e(e,!1)}function ir(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,ir(e));if(typeof e=="string")return J(e);switch(e){case w:return J("Suspense");case _:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return or(e.render);case C:return K(e.type,r,t);case S:{var a=e,g=a._payload,h=a._init;try{return K(h(g),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,we={},Te=k.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function sr(e,r,t,a,g){{var h=Function.call.bind(X);for(var f in e)if(h(e,f)){var c=void 0;try{if(typeof e[f]!="function"){var T=Error((a||"React class")+": "+t+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}c=e[f](r,f,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){c=y}c&&!(c instanceof Error)&&(Q(g),p("%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).",a||"React class",t,f,typeof c),Q(null)),c instanceof Error&&!(c.message in we)&&(we[c.message]=!0,Q(g),p("Failed %s type: %s",t,c.message),Q(null))}}}var ur=Array.isArray;function te(e){return ur(e)}function cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Oe(e){if(lr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(e)),Ce(e)}var U=k.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},Se,je,ne;ne={};function dr(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function vr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=x(U.current.type);ne[t]||(p('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',x(U.current.type),e.ref),ne[t]=!0)}}function gr(e,r){{var t=function(){Se||(Se=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){je||(je=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var mr=function(e,r,t,a,g,h,f){var c={$$typeof:o,type:e,key:r,ref:t,props:f,_owner:h};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:a}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Er(e,r,t,a,g){{var h,f={},c=null,T=null;t!==void 0&&(Oe(t),c=""+t),vr(r)&&(Oe(r.key),c=""+r.key),dr(r)&&(T=r.ref,pr(r,g));for(h in r)X.call(r,h)&&!fr.hasOwnProperty(h)&&(f[h]=r[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)f[h]===void 0&&(f[h]=y[h])}if(c||T){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&gr(f,b),T&&hr(f,b)}return mr(e,c,T,g,a,U.current,f)}}var ae=k.ReactCurrentOwner,Pe=k.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ke(){{if(ae.current){var e=x(ae.current.type);if(e)return`
17
+ */var ue;function Le(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),E=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function G(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];ce("error",e,t)}}function ce(e,r,t){{var a=k.ReactDebugCurrentFrame,g=a.getStackAddendum();g!==""&&(r+="%s",t=t.concat([g]));var h=t.map(function(f){return String(f)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var le=!1,z=!1,Ze=!1,qe=!1,$e=!1,fe;fe=Symbol.for("react.module.reference");function er(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===s||$e||e===i||e===T||e===_||qe||e===O||le||z||Ze||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===C||e.$$typeof===u||e.$$typeof===E||e.$$typeof===c||e.$$typeof===fe||e.getModuleId!==void 0))}function rr(e,r,t){var a=e.displayName;if(a)return a;var g=r.displayName||r.name||"";return g!==""?t+"("+g+")":t}function de(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 v:return"Fragment";case d:return"Portal";case s:return"Profiler";case i:return"StrictMode";case T:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return de(r)+".Consumer";case u:var t=e;return de(t._context)+".Provider";case c:return rr(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:A(e.type)||"Memo";case S:{var g=e,h=g._payload,f=g._init;try{return A(f(h))}catch{return null}}}return null}var I=Object.assign,V=0,ve,pe,ge,he,me,Ee,ye;function be(){}be.__reactDisabledLog=!0;function tr(){{if(V===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:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function nr(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),info:I({},e,{value:pe}),warn:I({},e,{value:ge}),error:I({},e,{value:he}),group:I({},e,{value:me}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:ye})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(g){var a=g.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
+ `+ee+e}}var re=!1,H;{var ar=typeof WeakMap=="function"?WeakMap:Map;H=new ar}function Re(e,r){if(!e||re)return"";{var t=H.get(e);if(t!==void 0)return t}var a;re=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=$.current,$.current=null,tr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(x){a=x}Reflect.construct(e,[],f)}else{try{f.call()}catch(x){a=x}e.call(f.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var l=x.stack.split(`
19
+ `),w=a.stack.split(`
20
+ `),y=l.length-1,b=w.length-1;y>=1&&b>=0&&l[y]!==w[b];)b--;for(;y>=1&&b>=0;y--,b--)if(l[y]!==w[b]){if(y!==1||b!==1)do if(y--,b--,b<0||l[y]!==w[b]){var j=`
21
+ `+l[y].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,j),j}while(y>=1&&b>=0);break}}}finally{re=!1,$.current=h,nr(),Error.prepareStackTrace=g}var M=e?e.displayName||e.name:"",Fe=M?J(M):"";return typeof e=="function"&&H.set(e,Fe),Fe}function or(e,r,t){return Re(e,!1)}function ir(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,ir(e));if(typeof e=="string")return J(e);switch(e){case T:return J("Suspense");case _:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return or(e.render);case C:return K(e.type,r,t);case S:{var a=e,g=a._payload,h=a._init;try{return K(h(g),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,_e={},Te=k.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function sr(e,r,t,a,g){{var h=Function.call.bind(X);for(var f in e)if(h(e,f)){var l=void 0;try{if(typeof e[f]!="function"){var w=Error((a||"React class")+": "+t+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}l=e[f](r,f,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(Q(g),p("%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).",a||"React class",t,f,typeof l),Q(null)),l instanceof Error&&!(l.message in _e)&&(_e[l.message]=!0,Q(g),p("Failed %s type: %s",t,l.message),Q(null))}}}var ur=Array.isArray;function te(e){return ur(e)}function cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(lr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(e)),we(e)}var U=k.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,ne;ne={};function dr(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function vr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=A(U.current.type);ne[t]||(p('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(U.current.type),e.ref),ne[t]=!0)}}function gr(e,r){{var t=function(){Oe||(Oe=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){Se||(Se=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var mr=function(e,r,t,a,g,h,f){var l={$$typeof:o,type:e,key:r,ref:t,props:f,_owner:h};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Er(e,r,t,a,g){{var h,f={},l=null,w=null;t!==void 0&&(Ce(t),l=""+t),vr(r)&&(Ce(r.key),l=""+r.key),dr(r)&&(w=r.ref,pr(r,g));for(h in r)X.call(r,h)&&!fr.hasOwnProperty(h)&&(f[h]=r[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)f[h]===void 0&&(f[h]=y[h])}if(l||w){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&gr(f,b),w&&hr(f,b)}return mr(e,l,w,g,a,U.current,f)}}var ae=k.ReactCurrentOwner,je=k.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}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 yr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var xe={};function br(e){{var r=ke();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var ke={};function br(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Ae(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=br(r);if(xe[t])return;xe[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+x(e._owner.type)+"."),L(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),L(null)}}function De(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&Ae(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var g=G(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),f;!(f=h.next()).done;)ie(f.value)&&Ae(f.value,r)}}}function Rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=x(r);sr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var g=x(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){L(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function Fe(e,r,t,a,g,h){{var f=er(e);if(!f){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 T=yr(g);T?c+=T:c+=ke();var y;e===null?y="null":te(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(x(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,c)}var b=Er(e,r,t,g,h);if(b==null)return b;if(f){var j=r.children;if(j!==void 0)if(a)if(te(j)){for(var M=0;M<j.length;M++)De(j[M],e);Object.freeze&&Object.freeze(j)}else p("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 De(j,e)}return e===v?_r(b):Rr(b),b}}function wr(e,r,t){return Fe(e,r,t,!0)}function Tr(e,r,t){return Fe(e,r,t,!1)}var Cr=Tr,Or=wr;N.Fragment=v,N.jsx=Cr,N.jsxs=Or}()),N}process.env.NODE_ENV==="production"?Z.exports=Le():Z.exports=Me();var P=Z.exports;const Y=m.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),We=({axios:n,children:o,translate:d,useAuth:v,Outlet:i,Navigate:s,useLocation:u,useGoogleTagManager:E})=>{const l=m.useMemo(()=>({axios:n,Navigate:s,Outlet:i,translate:d,useAuth:v,useGoogleTagManager:E,useLocation:u}),[s,i,n,d,v,E,u]);return P.jsx(Y.Provider,{value:l,children:o})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({Fallback:n,loginPath:o="/login",localStorageKey:d="user",redirect401Path:v="/login",...i})=>{var D,F,G,k;const{axios:s=i.axios,useLocation:u=i.useLocation,useAuth:E=i.useAuth,Outlet:l=i.Outlet,Navigate:w=i.Navigate}=m.useContext(Y);if(E===void 0)throw new Error(B("useAuth"));if(u===void 0)throw new Error(B("useLocation"));if(l===void 0)throw new Error(B("Outlet"));if(w===void 0)throw new Error(B("Navigate"));const[_,C]=m.useState(null),{isLogged:S}=E(),O=u();return m.useLayoutEffect(()=>{s==null||s.interceptors.response.use(p=>p,async p=>{var z;return typeof p=="object"&&p&&"response"in p&&p.response&&typeof p.response=="object"&&"status"in p.response&&p.response&&typeof p.response=="object"&&"status"in p.response&&((z=p==null?void 0:p.response)==null?void 0:z.status)===401&&(s.defaults.headers.common.Authorization=null,localStorage.removeItem(d),C(v)),Promise.reject(p)})},[s==null?void 0:s.defaults,s==null?void 0:s.interceptors.response,d,v]),S&&!_?P.jsx(m.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(G=O.state)==null?void 0:G.from)==null?void 0:k.pathname)===o?P.jsx(w,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(l,{})}):P.jsx(w,{to:o,state:{from:O},replace:!0})},q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ye=({...n})=>{const{useLocation:o=n.useLocation,Outlet:d=n.Outlet,useGoogleTagManager:v=n.useGoogleTagManager}=m.useContext(Y);if(o===void 0)throw new Error(q("useLocation"));if(d===void 0)throw new Error(q("Outlet"));if(v===void 0)throw new Error(q("useGoogleTagManager"));const{pathname:i}=o(),{sendEvent:s}=v();return m.useEffect(()=>{s({event:"pageView",pathname:i})},[i,s]),P.jsx(d,{})},Ve=({axios:n,baseURL:o,userLocalStorageKey:d="user",postContentType:v="application/json"})=>(m.useLayoutEffect(()=>{if(!n.defaults)return;const i=localStorage.getItem(d),s=i?JSON.parse(i):null,u=s&&typeof s=="object"&&"tokenType"in s&&s.tokenType?s.tokenType:null,E=s&&typeof s=="object"&&"accessToken"in s&&s.accessToken?s.accessToken:null,l=i?`${u} ${E}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,l&&(n.defaults.headers.common.Authorization=l)},[n.defaults,n.defaults.baseURL,n.defaults.headers.common,n.defaults.headers.post,o,v,d]),null),Ue=({i18n:n,initReactI18next:o,resources:d,LanguageDetector:v})=>(n.use(v).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:d,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}),null),Be=({dsn:n,sentry:o})=>(m.useLayoutEffect(()=>{o&&process.env.NODE_ENV!=="development"&&o.init({dsn:n,integrations:[new o.BrowserTracing],tracesSampleRate:1})},[n,o]),null),Ge=({IMaskMixin:n,...o})=>{const d=m.useMemo(()=>n(({TextField:v,...i})=>P.jsx(v,{...i})),[n]);return P.jsx(d,{...o})},ze=({mapbox:n,accessToken:o})=>(m.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Je=({children:n,defaultOptions:o,QueryClient:d,QueryClientProvider:v})=>{const i=new d({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(v,{client:i,children:n})},He=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:d=n==null?void 0:n.translate}=m.useContext(Y);return{printError:m.useCallback(i=>{var E,l,w,_,C,S,O,D,F;const s=d?d(o):"Unknown error",{response:u}=i||{};return i!=null&&i.reason?String(i.reason):(E=u==null?void 0:u.data)!=null&&E.reason?String(u.data.reason):(l=u==null?void 0:u.data)!=null&&l.message?String(u.data.message):(_=(w=u==null?void 0:u.data)==null?void 0:w.detail)!=null&&_.length&&Array.isArray((C=u==null?void 0:u.data)==null?void 0:C.detail)&&((O=(S=u==null?void 0:u.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((F=(D=u==null?void 0:u.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(u.data.detail[0].msg):s},[d,o])}},Ke=({data:n,fetchNextPage:o,isFetchingNextPage:d,isInitialLoading:v,isLoading:i,enabled:s=!0})=>{const u=m.useCallback(async l=>{d||!s||await o({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[s,o,d]),E=m.useMemo(()=>{if(n)return n.pages.reduce((l,w)=>[...l,...w],[])},[n]);return{fetchNextPageOnRowsScrollEnd:u,isLoading:d||i,loadingVariant:v?"skeleton":"linear",rows:E}},ce=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),Xe=n=>{const v=n.split("/").filter(i=>i.length>0).map(i=>i.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>ce(l)).join("")).join("");return v.charAt(0).toLowerCase()+v.slice(1)},Qe=(n,o,d)=>{const v=Xe(o),i=ce(d);return`${v}${i}`};R.AxiosConfig=Ve,R.GTMSendPageView=Ye,R.I18nConfig=Ue,R.InjectDependenciesContext=Y,R.InjectDependenciesProvider=We,R.MapBoxConfig=ze,R.MaskTextField=Ge,R.QueryClientConfigProvider=Je,R.RequireAuth=Ne,R.SentryConfig=Be,R.getOrvalOperationName=Qe,R.useInfiniteDataGrid=Ke,R.useResponseError=He,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+t+">.")}return r}}function Ae(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=br(r);if(ke[t])return;ke[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+A(e._owner.type)+"."),L(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),L(null)}}function xe(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&Ae(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var g=G(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),f;!(f=h.next()).done;)ie(f.value)&&Ae(f.value,r)}}}function Rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=A(r);sr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var g=A(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){L(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function De(e,r,t,a,g,h){{var f=er(e);if(!f){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=yr(g);w?l+=w:l+=Pe();var y;e===null?y="null":te(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(A(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var b=Er(e,r,t,g,h);if(b==null)return b;if(f){var j=r.children;if(j!==void 0)if(a)if(te(j)){for(var M=0;M<j.length;M++)xe(j[M],e);Object.freeze&&Object.freeze(j)}else p("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===v?_r(b):Rr(b),b}}function Tr(e,r,t){return De(e,r,t,!0)}function wr(e,r,t){return De(e,r,t,!1)}var Cr=wr,Or=Tr;N.Fragment=v,N.jsx=Cr,N.jsxs=Or}()),N}process.env.NODE_ENV==="production"?Z.exports=Ie():Z.exports=Le();var P=Z.exports;const Y=m.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Me=({axios:n,children:o,translate:d,useAuth:v,Outlet:i,Navigate:s,useLocation:u,useGoogleTagManager:E})=>{const c=m.useMemo(()=>({axios:n,Navigate:s,Outlet:i,translate:d,useAuth:v,useGoogleTagManager:E,useLocation:u}),[s,i,n,d,v,E,u]);return P.jsx(Y.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:d="user",redirect401Path:v="/login",...i})=>{var D,F,G,k;const{axios:s=i.axios,useLocation:u=i.useLocation,useAuth:E=i.useAuth,Outlet:c=i.Outlet,Navigate:T=i.Navigate}=m.useContext(Y);if(E===void 0)throw new Error(B("useAuth"));if(u===void 0)throw new Error(B("useLocation"));if(c===void 0)throw new Error(B("Outlet"));if(T===void 0)throw new Error(B("Navigate"));const[_,C]=m.useState(null),{isLogged:S}=E(),O=u();return m.useLayoutEffect(()=>{s==null||s.interceptors.response.use(p=>p,async p=>{var z;return typeof p=="object"&&p&&"response"in p&&p.response&&typeof p.response=="object"&&"status"in p.response&&p.response&&typeof p.response=="object"&&"status"in p.response&&((z=p==null?void 0:p.response)==null?void 0:z.status)===401&&(s.defaults.headers.common.Authorization=null,localStorage.removeItem(d),C(v)),Promise.reject(p)})},[s==null?void 0:s.defaults,s==null?void 0:s.interceptors.response,d,v]),S&&!_?P.jsx(m.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(G=O.state)==null?void 0:G.from)==null?void 0:k.pathname)===o?P.jsx(T,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(c,{})}):P.jsx(T,{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:d=n.Outlet,useGoogleTagManager:v=n.useGoogleTagManager}=m.useContext(Y);if(o===void 0)throw new Error(q("useLocation"));if(d===void 0)throw new Error(q("Outlet"));if(v===void 0)throw new Error(q("useGoogleTagManager"));const{pathname:i}=o(),{sendEvent:s}=v();return m.useEffect(()=>{s({event:"pageView",pathname:i})},[i,s]),P.jsx(d,{})},Ye=({axios:n,baseURL:o,userLocalStorageKey:d="user",postContentType:v="application/json"})=>(m.useLayoutEffect(()=>{if(!n.defaults)return;const i=localStorage.getItem(d),s=i?JSON.parse(i):null,u=s&&typeof s=="object"&&"tokenType"in s&&s.tokenType?s.tokenType:null,E=s&&typeof s=="object"&&"accessToken"in s&&s.accessToken?s.accessToken:null,c=i?`${u} ${E}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,c&&(n.defaults.headers.common.Authorization=c)},[n.defaults,n.defaults.baseURL,n.defaults.headers.common,n.defaults.headers.post,o,v,d]),null),Ve=({i18n:n,initReactI18next:o,resources:d,LanguageDetector:v})=>(n.use(v).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:d,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}),null),Ue=({dsn:n,sentry:o})=>(m.useLayoutEffect(()=>{o&&process.env.NODE_ENV!=="development"&&o.init({dsn:n,integrations:[new o.BrowserTracing],tracesSampleRate:1})},[n,o]),null),Be=({IMaskMixin:n,...o})=>{const d=m.useMemo(()=>n(({TextField:v,...i})=>P.jsx(v,{...i})),[n]);return P.jsx(d,{...o})},Ge=({mapbox:n,accessToken:o})=>(m.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),ze=({children:n,defaultOptions:o,QueryClient:d,QueryClientProvider:v})=>{const i=new d({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(v,{client:i,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:d=n==null?void 0:n.translate}=m.useContext(Y);return{printError:m.useCallback(i=>{var E,c,T,_,C,S,O,D,F;const s=d?d(o):"Unknown error",{response:u}=i||{};return i!=null&&i.reason?String(i.reason):(E=u==null?void 0:u.data)!=null&&E.reason?String(u.data.reason):(c=u==null?void 0:u.data)!=null&&c.message?String(u.data.message):(_=(T=u==null?void 0:u.data)==null?void 0:T.detail)!=null&&_.length&&Array.isArray((C=u==null?void 0:u.data)==null?void 0:C.detail)&&((O=(S=u==null?void 0:u.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((F=(D=u==null?void 0:u.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(u.data.detail[0].msg):s},[d,o])}},He=({data:n,fetchNextPage:o,isFetchingNextPage:d,isInitialLoading:v,isLoading:i,enabled:s=!0})=>{const u=m.useCallback(async c=>{d||!s||await o({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[s,o,d]),E=m.useMemo(()=>{if(n)return n.pages.reduce((c,T)=>[...c,...T],[])},[n]);return{fetchNextPageOnRowsScrollEnd:u,isLoading:d||i,loadingVariant:v?"skeleton":"linear",rows:E}},Ke=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),Xe=n=>{const v=n.split("/").filter(i=>i.length>0).map(i=>i.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return v.charAt(0).toLowerCase()+v.slice(1)},Qe=(n,o,d)=>{const v=Xe(o),i=Ke(d);return`${v}${i}`};R.AxiosConfig=Ye,R.GTMSendPageView=Ne,R.I18nConfig=Ve,R.InjectDependenciesContext=Y,R.InjectDependenciesProvider=Me,R.MapBoxConfig=Ge,R.MaskTextField=Be,R.QueryClientConfigProvider=ze,R.RequireAuth=We,R.SentryConfig=Ue,R.getOrvalOperationName=Qe,R.useInfiniteDataGrid=He,R.useResponseError=Je,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",