@tracktor/shared-module 2.0.0-beta.7 → 2.0.0-beta.8

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
- ## v2.0.0-beta.7
3
+ ## v2.0.0-beta.8
4
4
  - **[fix]** : fix translateFunction type
package/dist/main.js CHANGED
@@ -12,11 +12,11 @@ var se = { exports: {} }, B = {};
12
12
  var Fe;
13
13
  function mt() {
14
14
  return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), P = Symbol.iterator, S = "@@iterator";
15
+ var n = We, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), P = Symbol.iterator, x = "@@iterator";
16
16
  function T(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
- var t = P && e[P] || e[S];
19
+ var t = P && e[P] || e[x];
20
20
  return typeof t == "function" ? t : null;
21
21
  }
22
22
  var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -40,7 +40,7 @@ function mt() {
40
40
  var N = !1, W = !1, C = !1, fe = !1, de = !1, z;
41
41
  z = Symbol.for("react.module.reference");
42
42
  function Le(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || de || e === f || e === y || e === p || fe || e === u || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
43
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === v || de || e === f || e === y || e === p || fe || e === u || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
44
44
  // types supported by any Flight configuration anywhere since
45
45
  // we don't know which Flight build this will end up being used
46
46
  // with.
@@ -64,9 +64,9 @@ function mt() {
64
64
  if (typeof e == "string")
65
65
  return e;
66
66
  switch (e) {
67
- case a:
68
- return "Fragment";
69
67
  case i:
68
+ return "Fragment";
69
+ case a:
70
70
  return "Portal";
71
71
  case v:
72
72
  return "Profiler";
@@ -231,14 +231,14 @@ function mt() {
231
231
  } catch ($) {
232
232
  if ($ && s && typeof $.stack == "string") {
233
233
  for (var g = $.stack.split(`
234
- `), x = s.stack.split(`
235
- `), b = g.length - 1, j = x.length - 1; b >= 1 && j >= 0 && g[b] !== x[j]; )
234
+ `), S = s.stack.split(`
235
+ `), b = g.length - 1, j = S.length - 1; b >= 1 && j >= 0 && g[b] !== S[j]; )
236
236
  j--;
237
237
  for (; b >= 1 && j >= 0; b--, j--)
238
- if (g[b] !== x[j]) {
238
+ if (g[b] !== S[j]) {
239
239
  if (b !== 1 || j !== 1)
240
240
  do
241
- if (b--, j--, j < 0 || g[b] !== x[j]) {
241
+ if (b--, j--, j < 0 || g[b] !== S[j]) {
242
242
  var O = `
243
243
  ` + g[b].replace(" at new ", " at ");
244
244
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
@@ -305,8 +305,8 @@ function mt() {
305
305
  var g = void 0;
306
306
  try {
307
307
  if (typeof e[h] != "function") {
308
- var x = Error((s || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
- throw x.name = "Invariant Violation", x;
308
+ var S = Error((s || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
+ throw S.name = "Invariant Violation", S;
310
310
  }
311
311
  g = e[h](t, h, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
312
  } catch (b) {
@@ -345,7 +345,7 @@ function mt() {
345
345
  ref: !0,
346
346
  __self: !0,
347
347
  __source: !0
348
- }, Te, xe, oe;
348
+ }, Te, Se, oe;
349
349
  oe = {};
350
350
  function Ke(e) {
351
351
  if (H.call(e, "ref")) {
@@ -383,7 +383,7 @@ function mt() {
383
383
  function rt(e, t) {
384
384
  {
385
385
  var o = function() {
386
- xe || (xe = !0, w("%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));
386
+ Se || (Se = !0, w("%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));
387
387
  };
388
388
  o.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: o,
@@ -422,8 +422,8 @@ function mt() {
422
422
  };
423
423
  function ot(e, t, o, s, m) {
424
424
  {
425
- var E, h = {}, g = null, x = null;
426
- o !== void 0 && (Pe(o), g = "" + o), Ze(t) && (Pe(t.key), g = "" + t.key), Ke(t) && (x = t.ref, et(t, m));
425
+ var E, h = {}, g = null, S = null;
426
+ o !== void 0 && (Pe(o), g = "" + o), Ze(t) && (Pe(t.key), g = "" + t.key), Ke(t) && (S = t.ref, et(t, m));
427
427
  for (E in t)
428
428
  H.call(t, E) && !He.hasOwnProperty(E) && (h[E] = t[E]);
429
429
  if (e && e.defaultProps) {
@@ -431,30 +431,30 @@ function mt() {
431
431
  for (E in b)
432
432
  h[E] === void 0 && (h[E] = b[E]);
433
433
  }
434
- if (g || x) {
434
+ if (g || S) {
435
435
  var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- g && tt(h, j), x && rt(h, j);
436
+ g && tt(h, j), S && rt(h, j);
437
437
  }
438
- return nt(e, g, x, m, s, q.current, h);
438
+ return nt(e, g, S, m, s, q.current, h);
439
439
  }
440
440
  }
441
- var ie = D.ReactCurrentOwner, Se = D.ReactDebugCurrentFrame;
441
+ var ae = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
442
442
  function V(e) {
443
443
  if (e) {
444
444
  var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
445
- Se.setExtraStackFrame(o);
445
+ xe.setExtraStackFrame(o);
446
446
  } else
447
- Se.setExtraStackFrame(null);
447
+ xe.setExtraStackFrame(null);
448
448
  }
449
- var ae;
450
- ae = !1;
449
+ var ie;
450
+ ie = !1;
451
451
  function ue(e) {
452
452
  return typeof e == "object" && e !== null && e.$$typeof === r;
453
453
  }
454
454
  function Oe() {
455
455
  {
456
- if (ie.current) {
457
- var e = I(ie.current.type);
456
+ if (ae.current) {
457
+ var e = I(ae.current.type);
458
458
  if (e)
459
459
  return `
460
460
 
@@ -463,7 +463,7 @@ Check the render method of \`` + e + "`.";
463
463
  return "";
464
464
  }
465
465
  }
466
- function it(e) {
466
+ function at(e) {
467
467
  {
468
468
  if (e !== void 0) {
469
469
  var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
@@ -475,7 +475,7 @@ Check your code at ` + t + ":" + o + ".";
475
475
  }
476
476
  }
477
477
  var Ae = {};
478
- function at(e) {
478
+ function it(e) {
479
479
  {
480
480
  var t = Oe();
481
481
  if (!t) {
@@ -492,12 +492,12 @@ Check the top-level render call using <` + o + ">.");
492
492
  if (!e._store || e._store.validated || e.key != null)
493
493
  return;
494
494
  e._store.validated = !0;
495
- var o = at(t);
495
+ var o = it(t);
496
496
  if (Ae[o])
497
497
  return;
498
498
  Ae[o] = !0;
499
499
  var s = "";
500
- e && e._owner && e._owner !== ie.current && (s = " It was passed a child from " + I(e._owner.type) + "."), V(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), V(null);
500
+ e && e._owner && e._owner !== ae.current && (s = " It was passed a child from " + I(e._owner.type) + "."), V(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), V(null);
501
501
  }
502
502
  }
503
503
  function ke(e, t) {
@@ -536,8 +536,8 @@ Check the top-level render call using <` + o + ">.");
536
536
  if (o) {
537
537
  var s = I(t);
538
538
  Ge(o, e.props, "prop", s, e);
539
- } else if (t.PropTypes !== void 0 && !ae) {
540
- ae = !0;
539
+ } else if (t.PropTypes !== void 0 && !ie) {
540
+ ie = !0;
541
541
  var m = I(t);
542
542
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
543
543
  }
@@ -562,8 +562,8 @@ Check the top-level render call using <` + o + ">.");
562
562
  if (!h) {
563
563
  var g = "";
564
564
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var x = it(m);
566
- x ? g += x : g += Oe();
565
+ var S = at(m);
566
+ S ? g += S : g += Oe();
567
567
  var b;
568
568
  e === null ? b = "null" : ne(e) ? b = "array" : e !== void 0 && e.$$typeof === r ? (b = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, g);
569
569
  }
@@ -583,7 +583,7 @@ Check the top-level render call using <` + o + ">.");
583
583
  else
584
584
  ke(O, e);
585
585
  }
586
- return e === a ? ct(j) : ut(j), j;
586
+ return e === i ? ct(j) : ut(j), j;
587
587
  }
588
588
  }
589
589
  function st(e, t, o) {
@@ -593,7 +593,7 @@ Check the top-level render call using <` + o + ">.");
593
593
  return Ie(e, t, o, !1);
594
594
  }
595
595
  var ft = lt, dt = st;
596
- B.Fragment = a, B.jsx = ft, B.jsxs = dt;
596
+ B.Fragment = i, B.jsx = ft, B.jsxs = dt;
597
597
  }()), B;
598
598
  }
599
599
  var G = {};
@@ -611,81 +611,81 @@ function pt() {
611
611
  if (Ye)
612
612
  return G;
613
613
  Ye = 1;
614
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
614
+ var n = We, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
615
  function d(c, l, y) {
616
616
  var p, _ = {}, R = null, u = null;
617
617
  y !== void 0 && (R = "" + y), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (u = l.ref);
618
618
  for (p in l)
619
- a.call(l, p) && !v.hasOwnProperty(p) && (_[p] = l[p]);
619
+ i.call(l, p) && !v.hasOwnProperty(p) && (_[p] = l[p]);
620
620
  if (c && c.defaultProps)
621
621
  for (p in l = c.defaultProps, l)
622
622
  _[p] === void 0 && (_[p] = l[p]);
623
623
  return { $$typeof: r, type: c, key: R, ref: u, props: _, _owner: f.current };
624
624
  }
625
- return G.Fragment = i, G.jsx = d, G.jsxs = d, G;
625
+ return G.Fragment = a, G.jsx = d, G.jsxs = d, G;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? se.exports = pt() : se.exports = mt();
628
628
  var F = se.exports;
629
- const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
630
- const a = le(
629
+ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: a }) => {
630
+ const i = le(
631
631
  () => ({
632
632
  apiURL: r,
633
- libraries: i
633
+ libraries: a
634
634
  }),
635
- [r, i]
635
+ [r, a]
636
636
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: n });
637
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: i, children: n });
638
638
  }, Tt = ({
639
639
  Fallback: n,
640
640
  isLogged: r,
641
- loginPath: i = "/login",
642
- localStorageKey: a = "user",
641
+ loginPath: a = "/login",
642
+ localStorageKey: i = "user",
643
643
  redirect401Path: f = "/login",
644
644
  ...v
645
645
  }) => {
646
646
  var w, Y, N, W;
647
647
  const { libraries: d } = k(A), c = (v == null ? void 0 : v.axios) || (d == null ? void 0 : d.axios), l = (v == null ? void 0 : v.reactRouter) || (d == null ? void 0 : d.reactRouter);
648
- if (l === void 0)
648
+ if (!l)
649
649
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
- if (c === void 0)
650
+ if (!c)
651
651
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [y, p] = gt(null), { useLocation: _, Navigate: R, Outlet: u } = l, P = _(), S = ht(!1), T = typeof r == "function" ? r() : !!r, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
652
+ const [y, p] = gt(null), { useLocation: _, Navigate: R, Outlet: u } = l, P = _(), x = ht(!1), T = typeof r == "function" ? r() : !!r, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
653
653
  return Z(() => {
654
- S.current || (S.current = !0, c == null || c.interceptors.response.use(
654
+ x.current || (x.current = !0, c == null || c.interceptors.response.use(
655
655
  (C) => C,
656
656
  async (C) => {
657
657
  var z;
658
- return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((z = C == null ? void 0 : C.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), p(f)), Promise.reject(C);
658
+ return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((z = C == null ? void 0 : C.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(i), p(f)), Promise.reject(C);
659
659
  }
660
660
  ));
661
- }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, f]), D && !y ? /* @__PURE__ */ F.jsx(yt, { fallback: n, children: (Y = (w = P.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = P.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: P.state.from.state.from.pathname + P.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: P }, replace: !0 });
662
- }, xt = ({ ...n }) => {
663
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.reactRouter) || (r == null ? void 0 : r.reactRouter), a = (n == null ? void 0 : n.gtm) || (r == null ? void 0 : r.gtm);
664
- if (i === void 0)
665
- throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
661
+ }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, i, f]), D && !y ? /* @__PURE__ */ F.jsx(yt, { fallback: n, children: (Y = (w = P.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = P.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === a ? /* @__PURE__ */ F.jsx(R, { to: P.state.from.state.from.pathname + P.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: a, state: { from: P }, replace: !0 });
662
+ }, St = ({ ...n }) => {
663
+ const { libraries: r } = k(A), a = (n == null ? void 0 : n.reactRouter) || (r == null ? void 0 : r.reactRouter), i = (n == null ? void 0 : n.gtm) || (r == null ? void 0 : r.gtm);
666
664
  if (a === void 0)
665
+ throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
666
+ if (!i)
667
667
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
668
- const { useGoogleTagManager: f } = a, { useLocation: v, Outlet: d } = i, { pathname: c } = v(), { sendEvent: l } = f();
668
+ const { useGoogleTagManager: f } = i, { useLocation: v, Outlet: d } = a, { pathname: c } = v(), { sendEvent: l } = f();
669
669
  return Z(() => {
670
670
  l({ event: "pageView", pathname: c });
671
671
  }, [c, l]), /* @__PURE__ */ F.jsx(d, {});
672
- }, St = ({
672
+ }, xt = ({
673
673
  tokenTypeKey: n = "tokenType",
674
674
  userLocalStorageKey: r = "user",
675
- tokenKey: i = "accessToken",
676
- postContentType: a = "application/json",
675
+ tokenKey: a = "accessToken",
676
+ postContentType: i = "application/json",
677
677
  ...f
678
678
  }) => {
679
679
  const { apiURL: v = f.apiURL, libraries: d } = k(A), c = (f == null ? void 0 : f.axios) || (d == null ? void 0 : d.axios);
680
- if (c === void 0)
680
+ if (!c)
681
681
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
682
- if (!c.defaults)
682
+ if (!(c != null && c.defaults))
683
683
  return null;
684
- const l = localStorage.getItem(r), y = l ? JSON.parse(l) : null, p = y != null && y[n] ? y[n] : null, _ = y != null && y[i] ? y[i] : null, R = l ? `${p} ${_}` : null;
685
- return c.defaults.baseURL = v, c.defaults.headers.post["Content-Type"] = a, R && (c.defaults.headers.common.Authorization = R), null;
686
- }, Ot = ({ debug: n, resources: r, ...i }) => {
687
- const { libraries: a } = k(A), f = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: v, initReactI18next: d, languageDetector: c } = f || {};
688
- if (f === void 0)
684
+ const l = localStorage.getItem(r), y = l ? JSON.parse(l) : null, p = y != null && y[n] ? y[n] : null, _ = y != null && y[a] ? y[a] : null, R = l ? `${p} ${_}` : null;
685
+ return c.defaults.baseURL = v, c.defaults.headers.post["Content-Type"] = i, R && (c.defaults.headers.common.Authorization = R), null;
686
+ }, Ot = ({ debug: n, resources: r, ...a }) => {
687
+ const { libraries: i } = k(A), f = (a == null ? void 0 : a.i18) || (i == null ? void 0 : i.i18), { i18next: v, initReactI18next: d, languageDetector: c } = f || {};
688
+ if (!f)
689
689
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
690
690
  return v != null && v.isInitialized || (v.use(c).use(d).init({
691
691
  debug: n,
@@ -708,8 +708,8 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
708
708
  }, At = ({
709
709
  dsn: n,
710
710
  integrations: r,
711
- tracesSampleRate: i,
712
- replaysSessionSampleRate: a,
711
+ tracesSampleRate: a,
712
+ replaysSessionSampleRate: i,
713
713
  replaysOnErrorSampleRate: f,
714
714
  tracePropagationTargets: v,
715
715
  ignoreErrors: d,
@@ -717,10 +717,10 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
717
717
  environment: l,
718
718
  ...y
719
719
  }) => {
720
- const { libraries: p } = k(A), _ = (y == null ? void 0 : y.sentry) || (p == null ? void 0 : p.sentry), R = (y == null ? void 0 : y.reactRouter) || (p == null ? void 0 : p.reactRouter), { createRoutesFromChildren: u, matchRoutes: P, useLocation: S, useNavigationType: T } = R;
721
- if (_ === void 0)
720
+ const { libraries: p } = k(A), _ = (y == null ? void 0 : y.sentry) || (p == null ? void 0 : p.sentry), R = (y == null ? void 0 : y.reactRouter) || (p == null ? void 0 : p.reactRouter), { createRoutesFromChildren: u, matchRoutes: P, useLocation: x, useNavigationType: T } = R;
721
+ if (!_)
722
722
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
723
- if (R === void 0)
723
+ if (!R)
724
724
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
725
  return _.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && _.init({
726
726
  debug: c,
@@ -732,49 +732,49 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
732
732
  createRoutesFromChildren: u,
733
733
  matchRoutes: P,
734
734
  useEffect: Z,
735
- useLocation: S,
735
+ useLocation: x,
736
736
  useNavigationType: T
737
737
  }),
738
738
  ...r || []
739
739
  ],
740
740
  replaysOnErrorSampleRate: f || 1,
741
- replaysSessionSampleRate: a || 0.1,
741
+ replaysSessionSampleRate: i || 0.1,
742
742
  tracePropagationTargets: v,
743
- tracesSampleRate: i || 1
743
+ tracesSampleRate: a || 1
744
744
  }), null;
745
745
  }, Dt = ({ IMaskMixin: n, ...r }) => {
746
- const i = le(
746
+ const a = le(
747
747
  // eslint-disable-next-line react/jsx-props-no-spreading
748
- () => n(({ TextField: a, ...f }) => /* @__PURE__ */ F.jsx(a, { ...f })),
748
+ () => n(({ TextField: i, ...f }) => /* @__PURE__ */ F.jsx(i, { ...f })),
749
749
  [n]
750
750
  );
751
- return /* @__PURE__ */ F.jsx(i, { ...r });
751
+ return /* @__PURE__ */ F.jsx(a, { ...r });
752
752
  }, kt = ({ accessToken: n, ...r }) => {
753
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.mapbox) || (i == null ? void 0 : i.mapbox);
754
- if (a === void 0)
753
+ const { libraries: a } = k(A), i = (r == null ? void 0 : r.mapbox) || (a == null ? void 0 : a.mapbox);
754
+ if (!i)
755
755
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
756
- return n && (a.accessToken = n), null;
756
+ return n && (i.accessToken = n), null;
757
757
  }, It = ({ language: n, ...r }) => {
758
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs), f = (r == null ? void 0 : r.dayjsPlugin) || (i == null ? void 0 : i.dayjsPlugin);
759
- if (a === void 0)
758
+ const { libraries: a } = k(A), i = (r == null ? void 0 : r.dayjs) || (a == null ? void 0 : a.dayjs), f = (r == null ? void 0 : r.dayjsPlugin) || (a == null ? void 0 : a.dayjsPlugin);
759
+ if (!i)
760
760
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
761
761
  return Z(() => {
762
762
  (async () => {
763
763
  var c;
764
764
  const d = n || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
765
765
  f && f.forEach((l) => {
766
- a.extend(l.default);
767
- }), a.locale(d);
766
+ i.extend(l.default);
767
+ }), i.locale(d);
768
768
  })().then();
769
- }, [a, f, n]), null;
769
+ }, [i, f, n]), null;
770
770
  }, $t = ({
771
771
  children: n,
772
772
  defaultQueriesOptions: r,
773
- defaultMutationsOptions: i,
774
- ...a
773
+ defaultMutationsOptions: a,
774
+ ...i
775
775
  }) => {
776
776
  var l, y;
777
- const { libraries: f } = k(A), v = (a == null ? void 0 : a.QueryClient) || ((l = f == null ? void 0 : f.reactQuery) == null ? void 0 : l.QueryClient), d = (a == null ? void 0 : a.QueryClientProvider) || ((y = f == null ? void 0 : f.reactQuery) == null ? void 0 : y.QueryClientProvider);
777
+ const { libraries: f } = k(A), v = (i == null ? void 0 : i.QueryClient) || ((l = f == null ? void 0 : f.reactQuery) == null ? void 0 : l.QueryClient), d = (i == null ? void 0 : i.QueryClientProvider) || ((y = f == null ? void 0 : f.reactQuery) == null ? void 0 : y.QueryClientProvider);
778
778
  if (v === void 0)
779
779
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
780
780
  if (d === void 0)
@@ -782,7 +782,7 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
782
782
  const c = new v({
783
783
  defaultOptions: {
784
784
  mutations: {
785
- ...i
785
+ ...a
786
786
  },
787
787
  queries: {
788
788
  getNextPageParam: (p, _, R) => p.length + (R || 0),
@@ -795,72 +795,72 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
795
795
  return /* @__PURE__ */ F.jsx(d, { client: c, children: n });
796
796
  }, Ft = (n) => {
797
797
  var y, p, _;
798
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.i18) || (r == null ? void 0 : r.i18), a = ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction) || ((p = r == null ? void 0 : r.i18) == null ? void 0 : p.translateFunction), f = ((_ = i == null ? void 0 : i.i18next) == null ? void 0 : _.t) || a || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = n || {}, d = f(v), c = ce(
798
+ const { libraries: r } = k(A), a = (n == null ? void 0 : n.i18) || (r == null ? void 0 : r.i18), i = ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction) || ((p = r == null ? void 0 : r.i18) == null ? void 0 : p.translateFunction), f = ((_ = a == null ? void 0 : a.i18next) == null ? void 0 : _.t) || i || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = n || {}, d = f(v), c = ce(
799
799
  (R) => {
800
- var P, S, T, D, w, Y, N, W, C;
800
+ var P, x, T, D, w, Y, N, W, C;
801
801
  const { response: u } = R || {};
802
- return u != null && u.reason ? String(u.reason) : (P = u == null ? void 0 : u.data) != null && P.reason ? String(u.data.reason) : (S = u == null ? void 0 : u.data) != null && S.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(u.data.detail[0].msg) : d;
802
+ return u != null && u.reason ? String(u.reason) : (P = u == null ? void 0 : u.data) != null && P.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(u.data.detail[0].msg) : d;
803
803
  },
804
804
  [d]
805
805
  );
806
806
  return { getErrorCode: ce((R) => {
807
- var P, S, T;
807
+ var P, x, T;
808
808
  const { response: u } = R || {};
809
- return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (P = u == null ? void 0 : u.data) != null && P.error_code ? String((S = u == null ? void 0 : u.data) == null ? void 0 : S.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
809
+ return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (P = u == null ? void 0 : u.data) != null && P.error_code ? String((x = u == null ? void 0 : u.data) == null ? void 0 : x.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
810
810
  }, []), printError: c };
811
811
  }, Yt = ({
812
812
  data: n,
813
813
  fetchNextPage: r,
814
- isFetchingNextPage: i,
815
- isInitialLoading: a,
814
+ isFetchingNextPage: a,
815
+ isInitialLoading: i,
816
816
  isLoading: f,
817
817
  enabled: v = !0
818
818
  }) => {
819
819
  const d = ce(
820
820
  async (l) => {
821
- i || !v || await r({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
821
+ a || !v || await r({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
822
822
  },
823
- [v, r, i]
823
+ [v, r, a]
824
824
  ), c = le(() => {
825
825
  if (n)
826
826
  return n.pages.reduce((l, y) => [...l, ...y], []);
827
827
  }, [n]);
828
828
  return {
829
829
  fetchNextPageOnRowsScrollEnd: d,
830
- isLoading: i || f,
831
- loadingVariant: a ? "skeleton" : "linear",
830
+ isLoading: a || f,
831
+ loadingVariant: i ? "skeleton" : "linear",
832
832
  rows: c
833
833
  };
834
834
  }, Nt = (n) => {
835
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.axios) || (r == null ? void 0 : r.axios);
836
- if (i === void 0)
835
+ const { libraries: r } = k(A), a = (n == null ? void 0 : n.axios) || (r == null ? void 0 : r.axios);
836
+ if (a === void 0)
837
837
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
838
838
  return {
839
839
  clearAuthenticationToken: () => {
840
- i.defaults.headers.common.Authorization = null;
840
+ a.defaults.headers.common.Authorization = null;
841
841
  },
842
842
  setAuthenticationToken: ({ tokenType: v, accessToken: d }) => {
843
- i.defaults.headers.common.Authorization = `${v} ${d}`;
843
+ a.defaults.headers.common.Authorization = `${v} ${d}`;
844
844
  }
845
845
  };
846
846
  }, Et = (n, r = "km") => {
847
- const i = Number(n);
848
- return Number.isNaN(i) ? `0 ${r}` : `${i.toFixed(2)} ${r}`;
847
+ const a = Number(n);
848
+ return Number.isNaN(a) ? `0 ${r}` : `${a.toFixed(2)} ${r}`;
849
849
  }, Rt = (n) => {
850
850
  const r = n && typeof n == "object" && "pathname" in n && n.pathname ? n.pathname : n;
851
851
  return typeof r == "string" ? r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}` : r;
852
852
  }, Ne = (n, r) => {
853
853
  if (!n)
854
854
  return "";
855
- const i = Rt(n), a = typeof n == "object" && "pathname" in n ? `${n.origin}${i}` : n;
856
- return typeof r == "number" ? `${a.replace("/files", `/thumbs/${r}`)}` : a;
855
+ const a = Rt(n), i = typeof n == "object" && "pathname" in n ? `${n.origin}${a}` : n;
856
+ return typeof r == "number" ? `${i.replace("/files", `/thumbs/${r}`)}` : i;
857
857
  }, Wt = (n) => {
858
- const { apiURL: r, libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs);
858
+ const { apiURL: r, libraries: a } = k(A), i = (n == null ? void 0 : n.dayjs) || (a == null ? void 0 : a.dayjs);
859
859
  return {
860
860
  dateAdapter: (d, c = "ll") => {
861
- if (a === void 0)
861
+ if (i === void 0)
862
862
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
863
- return a(d).format(c);
863
+ return i(d).format(c);
864
864
  },
865
865
  distanceAdapter: Et,
866
866
  filePathAdapter: (d, c) => Ne(
@@ -872,14 +872,14 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
872
872
  )
873
873
  };
874
874
  }, _t = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), wt = (n) => {
875
- const a = n.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
876
- return a.charAt(0).toLowerCase() + a.slice(1);
877
- }, bt = (n, r, i) => {
878
- const a = wt(r), f = _t(i);
879
- return `${a}${f}`;
875
+ const i = n.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
876
+ return i.charAt(0).toLowerCase() + i.slice(1);
877
+ }, bt = (n, r, a) => {
878
+ const i = wt(r), f = _t(a);
879
+ return `${i}${f}`;
880
880
  }, Ct = (n) => {
881
881
  if (n)
882
- return (n == null ? void 0 : n.reduce((r, i) => (r[i] = {
882
+ return (n == null ? void 0 : n.reduce((r, a) => (r[a] = {
883
883
  query: {
884
884
  useInfinite: !0,
885
885
  useInfiniteQueryParam: "offset",
@@ -887,7 +887,7 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
887
887
  }
888
888
  }, r), {})) || {};
889
889
  }, Lt = (n) => {
890
- const { input: r = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = n || {};
890
+ const { input: r = "./openapi.json", operationsToGenerateInfiniteQueryHook: a = void 0 } = n || {};
891
891
  return {
892
892
  api: {
893
893
  hooks: {
@@ -898,17 +898,17 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
898
898
  client: "react-query",
899
899
  mode: "tags-split",
900
900
  override: {
901
- header: (a) => [
901
+ header: (i) => [
902
902
  "Generated by orval 🍺",
903
- ...a.title ? [a.title] : [],
904
- ...a.description ? [a.description] : []
903
+ ...i.title ? [i.title] : [],
904
+ ...i.description ? [i.description] : []
905
905
  ],
906
906
  mutator: {
907
907
  name: "axiosCustomInstance",
908
908
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
909
909
  },
910
910
  operationName: bt,
911
- ...(i == null ? void 0 : i.length) && { operations: Ct(i) },
911
+ ...(a == null ? void 0 : a.length) && { operations: Ct(a) },
912
912
  query: {
913
913
  useQuery: !0
914
914
  }
@@ -918,10 +918,10 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
918
918
  }
919
919
  }
920
920
  };
921
- }, Vt = (n, r, i = "ll") => String(n(r).format(i));
921
+ }, Vt = (n, r, a = "ll") => String(n(r).format(a));
922
922
  export {
923
- xt as GTMSendPageView,
924
- St as InitializeAxiosConfig,
923
+ St as GTMSendPageView,
924
+ xt as InitializeAxiosConfig,
925
925
  It as InitializeDaysJSConfig,
926
926
  Ot as InitializeI18nConfig,
927
927
  kt as InitializeMapBoxConfig,
package/dist/main.umd.cjs CHANGED
@@ -6,17 +6,17 @@
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 Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=m,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),S=Symbol.iterator,D="@@iterator";function x(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[D];return typeof t=="function"?t:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];N("error",e,o)}}function N(e,t,o){{var s=k.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",o=o.concat([p]));var R=o.map(function(h){return String(h)});R.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,R)}}var L=!1,M=!1,P=!1,ve=!1,ge=!1,J;J=Symbol.for("react.module.reference");function ut(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===v||ge||e===f||e===y||e===E||ve||e===u||L||M||P||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===C||e.$$typeof===d||e.$$typeof===c||e.$$typeof===l||e.$$typeof===J||e.getModuleId!==void 0))}function ct(e,t,o){var s=e.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?o+"("+p+")":o}function he(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("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 a:return"Fragment";case i:return"Portal";case v:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return he(t)+".Consumer";case d:var o=e;return he(o._context)+".Provider";case l:return ct(e,e.render,"ForwardRef");case C:var s=e.displayName||null;return s!==null?s:Y(e.type)||"Memo";case w:{var p=e,R=p._payload,h=p._init;try{return Y(h(R))}catch{return null}}}return null}var z=Object.assign,Q=0,ye,me,pe,Ee,Re,_e,we;function Ce(){}Ce.__reactDisabledLog=!0;function st(){{if(Q===0){ye=console.log,me=console.info,pe=console.warn,Ee=console.error,Re=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function lt(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:ye}),info:z({},e,{value:me}),warn:z({},e,{value:pe}),error:z({},e,{value:Ee}),group:z({},e,{value:Re}),groupCollapsed:z({},e,{value:_e}),groupEnd:z({},e,{value:we})})}Q<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=k.ReactCurrentDispatcher,re;function H(e,t,o){{if(re===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);re=s&&s[1]||""}return`
9
+ */var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),S=Symbol.iterator,D="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[D];return typeof t=="function"?t:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];N("error",e,o)}}function N(e,t,o){{var s=k.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",o=o.concat([p]));var R=o.map(function(h){return String(h)});R.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,R)}}var L=!1,M=!1,P=!1,ve=!1,ge=!1,J;J=Symbol.for("react.module.reference");function ut(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===v||ge||e===f||e===y||e===E||ve||e===u||L||M||P||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===C||e.$$typeof===d||e.$$typeof===c||e.$$typeof===l||e.$$typeof===J||e.getModuleId!==void 0))}function ct(e,t,o){var s=e.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?o+"("+p+")":o}function he(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("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 i:return"Fragment";case a:return"Portal";case v:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return he(t)+".Consumer";case d:var o=e;return he(o._context)+".Provider";case l:return ct(e,e.render,"ForwardRef");case C:var s=e.displayName||null;return s!==null?s:Y(e.type)||"Memo";case w:{var p=e,R=p._payload,h=p._init;try{return Y(h(R))}catch{return null}}}return null}var z=Object.assign,Q=0,ye,me,pe,Ee,Re,_e,we;function Ce(){}Ce.__reactDisabledLog=!0;function st(){{if(Q===0){ye=console.log,me=console.info,pe=console.warn,Ee=console.error,Re=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function lt(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:ye}),info:z({},e,{value:me}),warn:z({},e,{value:pe}),error:z({},e,{value:Ee}),group:z({},e,{value:Re}),groupCollapsed:z({},e,{value:_e}),groupEnd:z({},e,{value:we})})}Q<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=k.ReactCurrentDispatcher,re;function H(e,t,o){{if(re===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);re=s&&s[1]||""}return`
10
10
  `+re+e}}var ne=!1,K;{var ft=typeof WeakMap=="function"?WeakMap:Map;K=new ft}function be(e,t){if(!e||ne)return"";{var o=K.get(e);if(o!==void 0)return o}var s;ne=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=te.current,te.current=null,st();try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(W){s=W}Reflect.construct(e,[],h)}else{try{h.call()}catch(W){s=W}e.call(h.prototype)}}else{try{throw Error()}catch(W){s=W}e()}}catch(W){if(W&&s&&typeof W.stack=="string"){for(var g=W.stack.split(`
11
- `),O=s.stack.split(`
12
- `),j=g.length-1,T=O.length-1;j>=1&&T>=0&&g[j]!==O[T];)T--;for(;j>=1&&T>=0;j--,T--)if(g[j]!==O[T]){if(j!==1||T!==1)do if(j--,T--,T<0||g[j]!==O[T]){var I=`
13
- `+g[j].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,I),I}while(j>=1&&T>=0);break}}}finally{ne=!1,te.current=R,lt(),Error.prepareStackTrace=p}var U=e?e.displayName||e.name:"",We=U?H(U):"";return typeof e=="function"&&K.set(e,We),We}function dt(e,t,o){return be(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Z(e,t,o){if(e==null)return"";if(typeof e=="function")return be(e,vt(e));if(typeof e=="string")return H(e);switch(e){case y:return H("Suspense");case E:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return dt(e.render);case C:return Z(e.type,t,o);case w:{var s=e,p=s._payload,R=s._init;try{return Z(R(p),t,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,je={},Pe=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);Pe.setExtraStackFrame(o)}else Pe.setExtraStackFrame(null)}function gt(e,t,o,s,p){{var R=Function.call.bind($);for(var h in e)if(R(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((s||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](t,h,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){g=j}g&&!(g instanceof Error)&&(q(p),b("%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).",s||"React class",o,h,typeof g),q(null)),g instanceof Error&&!(g.message in je)&&(je[g.message]=!0,q(p),b("Failed %s type: %s",o,g.message),q(null))}}}var ht=Array.isArray;function oe(e){return ht(e)}function yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function mt(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Se(e){if(mt(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Te(e)}var X=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},xe,Oe,ie;ie={};function Et(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function _t(e,t){if(typeof e.ref=="string"&&X.current&&t&&X.current.stateNode!==t){var o=Y(X.current.type);ie[o]||(b('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',Y(X.current.type),e.ref),ie[o]=!0)}}function wt(e,t){{var o=function(){xe||(xe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ct(e,t){{var o=function(){Oe||(Oe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var bt=function(e,t,o,s,p,R,h){var g={$$typeof:r,type:e,key:t,ref:o,props:h,_owner:R};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function jt(e,t,o,s,p){{var R,h={},g=null,O=null;o!==void 0&&(Se(o),g=""+o),Rt(t)&&(Se(t.key),g=""+t.key),Et(t)&&(O=t.ref,_t(t,p));for(R in t)$.call(t,R)&&!pt.hasOwnProperty(R)&&(h[R]=t[R]);if(e&&e.defaultProps){var j=e.defaultProps;for(R in j)h[R]===void 0&&(h[R]=j[R])}if(g||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&wt(h,T),O&&Ct(h,T)}return bt(e,g,O,p,s,X.current,h)}}var ae=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(o)}else Ae.setExtraStackFrame(null)}var ue;ue=!1;function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function De(){{if(ae.current){var e=Y(ae.current.type);if(e)return`
11
+ `),x=s.stack.split(`
12
+ `),j=g.length-1,T=x.length-1;j>=1&&T>=0&&g[j]!==x[T];)T--;for(;j>=1&&T>=0;j--,T--)if(g[j]!==x[T]){if(j!==1||T!==1)do if(j--,T--,T<0||g[j]!==x[T]){var I=`
13
+ `+g[j].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,I),I}while(j>=1&&T>=0);break}}}finally{ne=!1,te.current=R,lt(),Error.prepareStackTrace=p}var U=e?e.displayName||e.name:"",We=U?H(U):"";return typeof e=="function"&&K.set(e,We),We}function dt(e,t,o){return be(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Z(e,t,o){if(e==null)return"";if(typeof e=="function")return be(e,vt(e));if(typeof e=="string")return H(e);switch(e){case y:return H("Suspense");case E:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return dt(e.render);case C:return Z(e.type,t,o);case w:{var s=e,p=s._payload,R=s._init;try{return Z(R(p),t,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,je={},Pe=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);Pe.setExtraStackFrame(o)}else Pe.setExtraStackFrame(null)}function gt(e,t,o,s,p){{var R=Function.call.bind($);for(var h in e)if(R(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var x=Error((s||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}g=e[h](t,h,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){g=j}g&&!(g instanceof Error)&&(q(p),b("%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).",s||"React class",o,h,typeof g),q(null)),g instanceof Error&&!(g.message in je)&&(je[g.message]=!0,q(p),b("Failed %s type: %s",o,g.message),q(null))}}}var ht=Array.isArray;function oe(e){return ht(e)}function yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function mt(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Se(e){if(mt(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Te(e)}var X=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,xe,ae;ae={};function Et(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function _t(e,t){if(typeof e.ref=="string"&&X.current&&t&&X.current.stateNode!==t){var o=Y(X.current.type);ae[o]||(b('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',Y(X.current.type),e.ref),ae[o]=!0)}}function wt(e,t){{var o=function(){Oe||(Oe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ct(e,t){{var o=function(){xe||(xe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var bt=function(e,t,o,s,p,R,h){var g={$$typeof:r,type:e,key:t,ref:o,props:h,_owner:R};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function jt(e,t,o,s,p){{var R,h={},g=null,x=null;o!==void 0&&(Se(o),g=""+o),Rt(t)&&(Se(t.key),g=""+t.key),Et(t)&&(x=t.ref,_t(t,p));for(R in t)$.call(t,R)&&!pt.hasOwnProperty(R)&&(h[R]=t[R]);if(e&&e.defaultProps){var j=e.defaultProps;for(R in j)h[R]===void 0&&(h[R]=j[R])}if(g||x){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&wt(h,T),x&&Ct(h,T)}return bt(e,g,x,p,s,X.current,h)}}var ie=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(o)}else Ae.setExtraStackFrame(null)}var ue;ue=!1;function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function De(){{if(ie.current){var e=Y(ie.current.type);if(e)return`
14
14
 
15
15
  Check the render method of \``+e+"`."}return""}}function Pt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
16
16
 
17
17
  Check your code at `+t+":"+o+"."}return""}}var Ie={};function Tt(e){{var t=De();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
18
18
 
19
- Check the top-level render call using <`+o+">.")}return t}}function ke(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ie[o])return;Ie[o]=!0;var s="";e&&e._owner&&e._owner!==ae.current&&(s=" It was passed a child from "+Y(e._owner.type)+"."),V(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,s),V(null)}}function Fe(e,t){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var s=e[o];ce(s)&&ke(s,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var p=x(e);if(typeof p=="function"&&p!==e.entries)for(var R=p.call(e),h;!(h=R.next()).done;)ce(h.value)&&ke(h.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===C))o=t.propTypes;else return;if(o){var s=Y(t);gt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ue){ue=!0;var p=Y(t);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var s=t[o];if(s!=="children"&&s!=="key"){V(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ye(e,t,o,s,p,R){{var h=ut(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" 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 O=Pt(p);O?g+=O:g+=De();var j;e===null?j="null":oe(e)?j="array":e!==void 0&&e.$$typeof===r?(j="<"+(Y(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,g)}var T=jt(e,t,o,p,R);if(T==null)return T;if(h){var I=t.children;if(I!==void 0)if(s)if(oe(I)){for(var U=0;U<I.length;U++)Fe(I[U],e);Object.freeze&&Object.freeze(I)}else b("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 Fe(I,e)}return e===a?xt(T):St(T),T}}function Ot(e,t,o){return Ye(e,t,o,!0)}function At(e,t,o){return Ye(e,t,o,!1)}var Dt=At,It=Ot;B.Fragment=a,B.jsx=Dt,B.jsxs=It}()),B}var G={};/**
19
+ Check the top-level render call using <`+o+">.")}return t}}function ke(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ie[o])return;Ie[o]=!0;var s="";e&&e._owner&&e._owner!==ie.current&&(s=" It was passed a child from "+Y(e._owner.type)+"."),V(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,s),V(null)}}function Fe(e,t){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var s=e[o];ce(s)&&ke(s,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var p=O(e);if(typeof p=="function"&&p!==e.entries)for(var R=p.call(e),h;!(h=R.next()).done;)ce(h.value)&&ke(h.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===C))o=t.propTypes;else return;if(o){var s=Y(t);gt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ue){ue=!0;var p=Y(t);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var s=t[o];if(s!=="children"&&s!=="key"){V(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ye(e,t,o,s,p,R){{var h=ut(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" 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 x=Pt(p);x?g+=x:g+=De();var j;e===null?j="null":oe(e)?j="array":e!==void 0&&e.$$typeof===r?(j="<"+(Y(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,g)}var T=jt(e,t,o,p,R);if(T==null)return T;if(h){var I=t.children;if(I!==void 0)if(s)if(oe(I)){for(var U=0;U<I.length;U++)Fe(I[U],e);Object.freeze&&Object.freeze(I)}else b("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 Fe(I,e)}return e===i?Ot(T):St(T),T}}function xt(e,t,o){return Ye(e,t,o,!0)}function At(e,t,o){return Ye(e,t,o,!1)}var Dt=At,It=xt;B.Fragment=i,B.jsx=Dt,B.jsxs=It}()),B}var G={};/**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
22
22
  *
@@ -24,4 +24,4 @@ Check the top-level render call using <`+o+">.")}return t}}function ke(e,t){{if(
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */var le;function Le(){if(le)return G;le=1;var n=m,r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function d(c,l,y){var E,C={},w=null,u=null;y!==void 0&&(w=""+y),l.key!==void 0&&(w=""+l.key),l.ref!==void 0&&(u=l.ref);for(E in l)a.call(l,E)&&!v.hasOwnProperty(E)&&(C[E]=l[E]);if(c&&c.defaultProps)for(E in l=c.defaultProps,l)C[E]===void 0&&(C[E]=l[E]);return{$$typeof:r,type:c,key:w,ref:u,props:C,_owner:f.current}}return G.Fragment=i,G.jsx=d,G.jsxs=d,G}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=Ne();var F=ee.exports;const A=m.createContext({}),Me=({children:n,apiURL:r,libraries:i})=>{const a=m.useMemo(()=>({apiURL:r,libraries:i}),[r,i]);return F.jsx(A.Provider,{value:a,children:n})},ze=({Fallback:n,isLogged:r,loginPath:i="/login",localStorageKey:a="user",redirect401Path:f="/login",...v})=>{var b,N,L,M;const{libraries:d}=m.useContext(A),c=(v==null?void 0:v.axios)||(d==null?void 0:d.axios),l=(v==null?void 0:v.reactRouter)||(d==null?void 0:d.reactRouter);if(l===void 0)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(c===void 0)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[y,E]=m.useState(null),{useLocation:C,Navigate:w,Outlet:u}=l,S=C(),D=m.useRef(!1),x=typeof r=="function"?r():!!r,k=typeof x=="boolean"?x:x==null?void 0:x.isLogged;return m.useEffect(()=>{D.current||(D.current=!0,c==null||c.interceptors.response.use(P=>P,async P=>{var J;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&&((J=P==null?void 0:P.response)==null?void 0:J.status)===401&&(c.defaults.headers.common.Authorization=null,localStorage.removeItem(a),E(f)),Promise.reject(P)}))},[c==null?void 0:c.defaults.headers.common,c==null?void 0:c.interceptors.response,a,f]),k&&!y?F.jsx(m.Suspense,{fallback:n,children:(N=(b=S.state)==null?void 0:b.from)!=null&&N.state&&((M=(L=S.state)==null?void 0:L.from)==null?void 0:M.pathname)===i?F.jsx(w,{to:S.state.from.state.from.pathname+S.state.from.state.from.search,replace:!0}):F.jsx(u,{})}):F.jsx(w,{to:i,state:{from:S},replace:!0})},Ve=({...n})=>{const{libraries:r}=m.useContext(A),i=(n==null?void 0:n.reactRouter)||(r==null?void 0:r.reactRouter),a=(n==null?void 0:n.gtm)||(r==null?void 0:r.gtm);if(i===void 0)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(a===void 0)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const{useGoogleTagManager:f}=a,{useLocation:v,Outlet:d}=i,{pathname:c}=v(),{sendEvent:l}=f();return m.useEffect(()=>{l({event:"pageView",pathname:c})},[c,l]),F.jsx(d,{})},Ue=({tokenTypeKey:n="tokenType",userLocalStorageKey:r="user",tokenKey:i="accessToken",postContentType:a="application/json",...f})=>{const{apiURL:v=f.apiURL,libraries:d}=m.useContext(A),c=(f==null?void 0:f.axios)||(d==null?void 0:d.axios);if(c===void 0)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!c.defaults)return null;const l=localStorage.getItem(r),y=l?JSON.parse(l):null,E=y!=null&&y[n]?y[n]:null,C=y!=null&&y[i]?y[i]:null,w=l?`${E} ${C}`:null;return c.defaults.baseURL=v,c.defaults.headers.post["Content-Type"]=a,w&&(c.defaults.headers.common.Authorization=w),null},Be=({debug:n,resources:r,...i})=>{const{libraries:a}=m.useContext(A),f=(i==null?void 0:i.i18)||(a==null?void 0:a.i18),{i18next:v,initReactI18next:d,languageDetector:c}=f||{};if(f===void 0)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return v!=null&&v.isInitialized||(v.use(c).use(d).init({debug:n,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:r,returnNull:!1}).then(()=>{document.documentElement.lang!==v.resolvedLanguage&&v.resolvedLanguage&&document.documentElement.setAttribute("lang",v.resolvedLanguage)}),v.on("languageChanged",l=>{document.documentElement.setAttribute("lang",l)})),null},Ge=({dsn:n,integrations:r,tracesSampleRate:i,replaysSessionSampleRate:a,replaysOnErrorSampleRate:f,tracePropagationTargets:v,ignoreErrors:d,debug:c,environment:l,...y})=>{const{libraries:E}=m.useContext(A),C=(y==null?void 0:y.sentry)||(E==null?void 0:E.sentry),w=(y==null?void 0:y.reactRouter)||(E==null?void 0:E.reactRouter),{createRoutesFromChildren:u,matchRoutes:S,useLocation:D,useNavigationType:x}=w;if(C===void 0)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(w===void 0)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return C.isInitialized()||(c||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&C.init({debug:c,dsn:n,environment:l||"production",ignoreErrors:[...d||[],/dynamically imported module/],integrations:[C.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:u,matchRoutes:S,useEffect:m.useEffect,useLocation:D,useNavigationType:x}),...r||[]],replaysOnErrorSampleRate:f||1,replaysSessionSampleRate:a||.1,tracePropagationTargets:v,tracesSampleRate:i||1}),null},Je=({IMaskMixin:n,...r})=>{const i=m.useMemo(()=>n(({TextField:a,...f})=>F.jsx(a,{...f})),[n]);return F.jsx(i,{...r})},Qe=({accessToken:n,...r})=>{const{libraries:i}=m.useContext(A),a=(r==null?void 0:r.mapbox)||(i==null?void 0:i.mapbox);if(a===void 0)throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return n&&(a.accessToken=n),null},Xe=({language:n,...r})=>{const{libraries:i}=m.useContext(A),a=(r==null?void 0:r.dayjs)||(i==null?void 0:i.dayjs),f=(r==null?void 0:r.dayjsPlugin)||(i==null?void 0:i.dayjsPlugin);if(a===void 0)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return m.useEffect(()=>{(async()=>{var c;const d=n||((c=navigator.language)==null?void 0:c.slice(0,2))||"en";f&&f.forEach(l=>{a.extend(l.default)}),a.locale(d)})().then()},[a,f,n]),null},He=({children:n,defaultQueriesOptions:r,defaultMutationsOptions:i,...a})=>{var l,y;const{libraries:f}=m.useContext(A),v=(a==null?void 0:a.QueryClient)||((l=f==null?void 0:f.reactQuery)==null?void 0:l.QueryClient),d=(a==null?void 0:a.QueryClientProvider)||((y=f==null?void 0:f.reactQuery)==null?void 0:y.QueryClientProvider);if(v===void 0)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(d===void 0)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const c=new v({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(E,C,w)=>E.length+(w||0),refetchOnWindowFocus:!1,retry:3,...r}}});return F.jsx(d,{client:c,children:n})},Ke=n=>{var y,E,C;const{libraries:r}=m.useContext(A),i=(n==null?void 0:n.i18)||(r==null?void 0:r.i18),a=((y=n==null?void 0:n.i18)==null?void 0:y.translateFunction)||((E=r==null?void 0:r.i18)==null?void 0:E.translateFunction),f=((C=i==null?void 0:i.i18next)==null?void 0:C.t)||a||(w=>w),{unknownErrorTranslationKey:v="error.unknownError"}=n||{},d=f(v),c=m.useCallback(w=>{var S,D,x,k,b,N,L,M,P;const{response:u}=w||{};return u!=null&&u.reason?String(u.reason):(S=u==null?void 0:u.data)!=null&&S.reason?String(u.data.reason):(D=u==null?void 0:u.data)!=null&&D.message?String(u.data.message):(k=(x=u==null?void 0:u.data)==null?void 0:x.detail)!=null&&k.length&&Array.isArray((b=u==null?void 0:u.data)==null?void 0:b.detail)&&((L=(N=u==null?void 0:u.data)==null?void 0:N.detail[0])!=null&&L.msg)&&typeof((P=(M=u==null?void 0:u.data)==null?void 0:M.detail[0])==null?void 0:P.msg)=="string"?String(u.data.detail[0].msg):d},[d]);return{getErrorCode:m.useCallback(w=>{var S,D,x;const{response:u}=w||{};return u!=null&&u.error_code?String(u==null?void 0:u.error_code):(S=u==null?void 0:u.data)!=null&&S.error_code?String((D=u==null?void 0:u.data)==null?void 0:D.error_code):u!=null&&u.error_code?String(u==null?void 0:u.error_code):(x=u==null?void 0:u.data)!=null&&x.error_code?String(u.data.error_code):"unknown_error_code"},[]),printError:c}},Ze=({data:n,fetchNextPage:r,isFetchingNextPage:i,isInitialLoading:a,isLoading:f,enabled:v=!0})=>{const d=m.useCallback(async l=>{i||!v||await r({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[v,r,i]),c=m.useMemo(()=>{if(n)return n.pages.reduce((l,y)=>[...l,...y],[])},[n]);return{fetchNextPageOnRowsScrollEnd:d,isLoading:i||f,loadingVariant:a?"skeleton":"linear",rows:c}},$e=n=>{const{libraries:r}=m.useContext(A),i=(n==null?void 0:n.axios)||(r==null?void 0:r.axios);if(i===void 0)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");return{clearAuthenticationToken:()=>{i.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:v,accessToken:d})=>{i.defaults.headers.common.Authorization=`${v} ${d}`}}},fe=(n,r="km")=>{const i=Number(n);return Number.isNaN(i)?`0 ${r}`:`${i.toFixed(2)} ${r}`},qe=n=>{const r=n&&typeof n=="object"&&"pathname"in n&&n.pathname?n.pathname:n;return typeof r=="string"?r!=null&&r.startsWith("/")?r!=null&&r.startsWith("/files")?r:`/files${r}`:r!=null&&r.startsWith("files")?`/${r}`:r!=null&&r.startsWith("files")?`/${r}`:`/files/${r}`:r},de=(n,r)=>{if(!n)return"";const i=qe(n),a=typeof n=="object"&&"pathname"in n?`${n.origin}${i}`:n;return typeof r=="number"?`${a.replace("/files",`/thumbs/${r}`)}`:a},et=n=>{const{apiURL:r,libraries:i}=m.useContext(A),a=(n==null?void 0:n.dayjs)||(i==null?void 0:i.dayjs);return{dateAdapter:(d,c="ll")=>{if(a===void 0)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return a(d).format(c)},distanceAdapter:fe,filePathAdapter:(d,c)=>de(r&&typeof d=="string"?{origin:r,pathname:d}:d,c)}},tt=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),rt=n=>{const a=n.split("/").filter(f=>f.length>0).map(f=>f.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return a.charAt(0).toLowerCase()+a.slice(1)},nt=(n,r,i)=>{const a=rt(r),f=tt(i);return`${a}${f}`},ot=n=>{if(n)return(n==null?void 0:n.reduce((r,i)=>(r[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},r),{}))||{}},it=n=>{const{input:r="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=n||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:r,output:{client:"react-query",mode:"tags-split",override:{header:a=>["Generated by orval 🍺",...a.title?[a.title]:[],...a.description?[a.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:nt,...(i==null?void 0:i.length)&&{operations:ot(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}},at=(n,r,i="ll")=>String(n(r).format(i));_.GTMSendPageView=Ve,_.InitializeAxiosConfig=Ue,_.InitializeDaysJSConfig=Xe,_.InitializeI18nConfig=Be,_.InitializeMapBoxConfig=Qe,_.InitializeSentryConfig=Ge,_.InjectDependenciesContext=A,_.InjectDependenciesProvider=Me,_.MaskTextField=Je,_.QueryClientProviderWithConfig=He,_.RequireAuth=ze,_.dateAdapter=at,_.distanceAdapter=fe,_.getOrvalConfig=it,_.useAdapter=et,_.useAuth=$e,_.useInfiniteDataGrid=Ze,_.useResponseError=Ke,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
27
+ */var le;function Le(){if(le)return G;le=1;var n=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function d(c,l,y){var E,C={},w=null,u=null;y!==void 0&&(w=""+y),l.key!==void 0&&(w=""+l.key),l.ref!==void 0&&(u=l.ref);for(E in l)i.call(l,E)&&!v.hasOwnProperty(E)&&(C[E]=l[E]);if(c&&c.defaultProps)for(E in l=c.defaultProps,l)C[E]===void 0&&(C[E]=l[E]);return{$$typeof:r,type:c,key:w,ref:u,props:C,_owner:f.current}}return G.Fragment=a,G.jsx=d,G.jsxs=d,G}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=Ne();var F=ee.exports;const A=m.createContext({}),Me=({children:n,apiURL:r,libraries:a})=>{const i=m.useMemo(()=>({apiURL:r,libraries:a}),[r,a]);return F.jsx(A.Provider,{value:i,children:n})},ze=({Fallback:n,isLogged:r,loginPath:a="/login",localStorageKey:i="user",redirect401Path:f="/login",...v})=>{var b,N,L,M;const{libraries:d}=m.useContext(A),c=(v==null?void 0:v.axios)||(d==null?void 0:d.axios),l=(v==null?void 0:v.reactRouter)||(d==null?void 0:d.reactRouter);if(!l)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[y,E]=m.useState(null),{useLocation:C,Navigate:w,Outlet:u}=l,S=C(),D=m.useRef(!1),O=typeof r=="function"?r():!!r,k=typeof O=="boolean"?O:O==null?void 0:O.isLogged;return m.useEffect(()=>{D.current||(D.current=!0,c==null||c.interceptors.response.use(P=>P,async P=>{var J;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&&((J=P==null?void 0:P.response)==null?void 0:J.status)===401&&(c.defaults.headers.common.Authorization=null,localStorage.removeItem(i),E(f)),Promise.reject(P)}))},[c==null?void 0:c.defaults.headers.common,c==null?void 0:c.interceptors.response,i,f]),k&&!y?F.jsx(m.Suspense,{fallback:n,children:(N=(b=S.state)==null?void 0:b.from)!=null&&N.state&&((M=(L=S.state)==null?void 0:L.from)==null?void 0:M.pathname)===a?F.jsx(w,{to:S.state.from.state.from.pathname+S.state.from.state.from.search,replace:!0}):F.jsx(u,{})}):F.jsx(w,{to:a,state:{from:S},replace:!0})},Ve=({...n})=>{const{libraries:r}=m.useContext(A),a=(n==null?void 0:n.reactRouter)||(r==null?void 0:r.reactRouter),i=(n==null?void 0:n.gtm)||(r==null?void 0:r.gtm);if(a===void 0)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!i)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const{useGoogleTagManager:f}=i,{useLocation:v,Outlet:d}=a,{pathname:c}=v(),{sendEvent:l}=f();return m.useEffect(()=>{l({event:"pageView",pathname:c})},[c,l]),F.jsx(d,{})},Ue=({tokenTypeKey:n="tokenType",userLocalStorageKey:r="user",tokenKey:a="accessToken",postContentType:i="application/json",...f})=>{const{apiURL:v=f.apiURL,libraries:d}=m.useContext(A),c=(f==null?void 0:f.axios)||(d==null?void 0:d.axios);if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!(c!=null&&c.defaults))return null;const l=localStorage.getItem(r),y=l?JSON.parse(l):null,E=y!=null&&y[n]?y[n]:null,C=y!=null&&y[a]?y[a]:null,w=l?`${E} ${C}`:null;return c.defaults.baseURL=v,c.defaults.headers.post["Content-Type"]=i,w&&(c.defaults.headers.common.Authorization=w),null},Be=({debug:n,resources:r,...a})=>{const{libraries:i}=m.useContext(A),f=(a==null?void 0:a.i18)||(i==null?void 0:i.i18),{i18next:v,initReactI18next:d,languageDetector:c}=f||{};if(!f)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return v!=null&&v.isInitialized||(v.use(c).use(d).init({debug:n,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:r,returnNull:!1}).then(()=>{document.documentElement.lang!==v.resolvedLanguage&&v.resolvedLanguage&&document.documentElement.setAttribute("lang",v.resolvedLanguage)}),v.on("languageChanged",l=>{document.documentElement.setAttribute("lang",l)})),null},Ge=({dsn:n,integrations:r,tracesSampleRate:a,replaysSessionSampleRate:i,replaysOnErrorSampleRate:f,tracePropagationTargets:v,ignoreErrors:d,debug:c,environment:l,...y})=>{const{libraries:E}=m.useContext(A),C=(y==null?void 0:y.sentry)||(E==null?void 0:E.sentry),w=(y==null?void 0:y.reactRouter)||(E==null?void 0:E.reactRouter),{createRoutesFromChildren:u,matchRoutes:S,useLocation:D,useNavigationType:O}=w;if(!C)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!w)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return C.isInitialized()||(c||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&C.init({debug:c,dsn:n,environment:l||"production",ignoreErrors:[...d||[],/dynamically imported module/],integrations:[C.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:u,matchRoutes:S,useEffect:m.useEffect,useLocation:D,useNavigationType:O}),...r||[]],replaysOnErrorSampleRate:f||1,replaysSessionSampleRate:i||.1,tracePropagationTargets:v,tracesSampleRate:a||1}),null},Je=({IMaskMixin:n,...r})=>{const a=m.useMemo(()=>n(({TextField:i,...f})=>F.jsx(i,{...f})),[n]);return F.jsx(a,{...r})},Qe=({accessToken:n,...r})=>{const{libraries:a}=m.useContext(A),i=(r==null?void 0:r.mapbox)||(a==null?void 0:a.mapbox);if(!i)throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return n&&(i.accessToken=n),null},Xe=({language:n,...r})=>{const{libraries:a}=m.useContext(A),i=(r==null?void 0:r.dayjs)||(a==null?void 0:a.dayjs),f=(r==null?void 0:r.dayjsPlugin)||(a==null?void 0:a.dayjsPlugin);if(!i)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return m.useEffect(()=>{(async()=>{var c;const d=n||((c=navigator.language)==null?void 0:c.slice(0,2))||"en";f&&f.forEach(l=>{i.extend(l.default)}),i.locale(d)})().then()},[i,f,n]),null},He=({children:n,defaultQueriesOptions:r,defaultMutationsOptions:a,...i})=>{var l,y;const{libraries:f}=m.useContext(A),v=(i==null?void 0:i.QueryClient)||((l=f==null?void 0:f.reactQuery)==null?void 0:l.QueryClient),d=(i==null?void 0:i.QueryClientProvider)||((y=f==null?void 0:f.reactQuery)==null?void 0:y.QueryClientProvider);if(v===void 0)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(d===void 0)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const c=new v({defaultOptions:{mutations:{...a},queries:{getNextPageParam:(E,C,w)=>E.length+(w||0),refetchOnWindowFocus:!1,retry:3,...r}}});return F.jsx(d,{client:c,children:n})},Ke=n=>{var y,E,C;const{libraries:r}=m.useContext(A),a=(n==null?void 0:n.i18)||(r==null?void 0:r.i18),i=((y=n==null?void 0:n.i18)==null?void 0:y.translateFunction)||((E=r==null?void 0:r.i18)==null?void 0:E.translateFunction),f=((C=a==null?void 0:a.i18next)==null?void 0:C.t)||i||(w=>w),{unknownErrorTranslationKey:v="error.unknownError"}=n||{},d=f(v),c=m.useCallback(w=>{var S,D,O,k,b,N,L,M,P;const{response:u}=w||{};return u!=null&&u.reason?String(u.reason):(S=u==null?void 0:u.data)!=null&&S.reason?String(u.data.reason):(D=u==null?void 0:u.data)!=null&&D.message?String(u.data.message):(k=(O=u==null?void 0:u.data)==null?void 0:O.detail)!=null&&k.length&&Array.isArray((b=u==null?void 0:u.data)==null?void 0:b.detail)&&((L=(N=u==null?void 0:u.data)==null?void 0:N.detail[0])!=null&&L.msg)&&typeof((P=(M=u==null?void 0:u.data)==null?void 0:M.detail[0])==null?void 0:P.msg)=="string"?String(u.data.detail[0].msg):d},[d]);return{getErrorCode:m.useCallback(w=>{var S,D,O;const{response:u}=w||{};return u!=null&&u.error_code?String(u==null?void 0:u.error_code):(S=u==null?void 0:u.data)!=null&&S.error_code?String((D=u==null?void 0:u.data)==null?void 0:D.error_code):u!=null&&u.error_code?String(u==null?void 0:u.error_code):(O=u==null?void 0:u.data)!=null&&O.error_code?String(u.data.error_code):"unknown_error_code"},[]),printError:c}},Ze=({data:n,fetchNextPage:r,isFetchingNextPage:a,isInitialLoading:i,isLoading:f,enabled:v=!0})=>{const d=m.useCallback(async l=>{a||!v||await r({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[v,r,a]),c=m.useMemo(()=>{if(n)return n.pages.reduce((l,y)=>[...l,...y],[])},[n]);return{fetchNextPageOnRowsScrollEnd:d,isLoading:a||f,loadingVariant:i?"skeleton":"linear",rows:c}},$e=n=>{const{libraries:r}=m.useContext(A),a=(n==null?void 0:n.axios)||(r==null?void 0:r.axios);if(a===void 0)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");return{clearAuthenticationToken:()=>{a.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:v,accessToken:d})=>{a.defaults.headers.common.Authorization=`${v} ${d}`}}},fe=(n,r="km")=>{const a=Number(n);return Number.isNaN(a)?`0 ${r}`:`${a.toFixed(2)} ${r}`},qe=n=>{const r=n&&typeof n=="object"&&"pathname"in n&&n.pathname?n.pathname:n;return typeof r=="string"?r!=null&&r.startsWith("/")?r!=null&&r.startsWith("/files")?r:`/files${r}`:r!=null&&r.startsWith("files")?`/${r}`:r!=null&&r.startsWith("files")?`/${r}`:`/files/${r}`:r},de=(n,r)=>{if(!n)return"";const a=qe(n),i=typeof n=="object"&&"pathname"in n?`${n.origin}${a}`:n;return typeof r=="number"?`${i.replace("/files",`/thumbs/${r}`)}`:i},et=n=>{const{apiURL:r,libraries:a}=m.useContext(A),i=(n==null?void 0:n.dayjs)||(a==null?void 0:a.dayjs);return{dateAdapter:(d,c="ll")=>{if(i===void 0)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return i(d).format(c)},distanceAdapter:fe,filePathAdapter:(d,c)=>de(r&&typeof d=="string"?{origin:r,pathname:d}:d,c)}},tt=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),rt=n=>{const i=n.split("/").filter(f=>f.length>0).map(f=>f.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return i.charAt(0).toLowerCase()+i.slice(1)},nt=(n,r,a)=>{const i=rt(r),f=tt(a);return`${i}${f}`},ot=n=>{if(n)return(n==null?void 0:n.reduce((r,a)=>(r[a]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},r),{}))||{}},at=n=>{const{input:r="./openapi.json",operationsToGenerateInfiniteQueryHook:a=void 0}=n||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:r,output:{client:"react-query",mode:"tags-split",override:{header:i=>["Generated by orval 🍺",...i.title?[i.title]:[],...i.description?[i.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:nt,...(a==null?void 0:a.length)&&{operations:ot(a)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}},it=(n,r,a="ll")=>String(n(r).format(a));_.GTMSendPageView=Ve,_.InitializeAxiosConfig=Ue,_.InitializeDaysJSConfig=Xe,_.InitializeI18nConfig=Be,_.InitializeMapBoxConfig=Qe,_.InitializeSentryConfig=Ge,_.InjectDependenciesContext=A,_.InjectDependenciesProvider=Me,_.MaskTextField=Je,_.QueryClientProviderWithConfig=He,_.RequireAuth=ze,_.dateAdapter=it,_.distanceAdapter=fe,_.getOrvalConfig=at,_.useAdapter=et,_.useAuth=$e,_.useInfiniteDataGrid=Ze,_.useResponseError=Ke,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.8",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",