@tracktor/shared-module 0.16.0 → 0.17.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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- import Le, { createContext as vr, useMemo as se, useContext as ue, useState as pr, useRef as gr, useLayoutEffect as mr, Suspense as hr, useEffect as Er, useCallback as X } from "react";
2
- var ie = { exports: {} }, W = {};
1
+ import Le, { createContext as vr, useMemo as ue, useContext as se, useState as pr, useRef as gr, useLayoutEffect as mr, Suspense as hr, useEffect as Er, useCallback as Y } from "react";
2
+ var ie = { exports: {} }, M = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -12,22 +12,22 @@ var ie = { exports: {} }, W = {};
12
12
  var $e;
13
13
  function yr() {
14
14
  if ($e)
15
- return W;
15
+ return M;
16
16
  $e = 1;
17
- var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function u(g, c, y) {
17
+ var a = Le, u = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function m(t, c, E) {
19
19
  var h, C = {}, O = null, T = null;
20
- y !== void 0 && (O = "" + y), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (T = c.ref);
20
+ E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (T = c.ref);
21
21
  for (h in c)
22
- l.call(c, h) && !v.hasOwnProperty(h) && (C[h] = c[h]);
23
- if (g && g.defaultProps)
24
- for (h in c = g.defaultProps, c)
22
+ s.call(c, h) && !v.hasOwnProperty(h) && (C[h] = c[h]);
23
+ if (t && t.defaultProps)
24
+ for (h in c = t.defaultProps, c)
25
25
  C[h] === void 0 && (C[h] = c[h]);
26
- return { $$typeof: o, type: g, key: O, ref: T, props: C, _owner: a.current };
26
+ return { $$typeof: u, type: t, key: O, ref: T, props: C, _owner: l.current };
27
27
  }
28
- return W.Fragment = s, W.jsx = u, W.jsxs = u, W;
28
+ return M.Fragment = o, M.jsx = m, M.jsxs = m, M;
29
29
  }
30
- var M = {};
30
+ var V = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -40,46 +40,46 @@ var M = {};
40
40
  var Ie;
41
41
  function Rr() {
42
42
  return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), A = Symbol.iterator, D = "@@iterator";
44
- function V(e) {
43
+ var a = Le, u = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), t = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), A = Symbol.iterator, D = "@@iterator";
44
+ function F(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
47
  var r = A && e[A] || e[D];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function b(e) {
50
+ var j = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function _(e) {
52
52
  {
53
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
54
- t[i - 1] = arguments[i];
55
- _("error", e, t);
53
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
54
+ n[i - 1] = arguments[i];
55
+ b("error", e, n);
56
56
  }
57
57
  }
58
- function _(e, r, t) {
58
+ function b(e, r, n) {
59
59
  {
60
60
  var i = j.ReactDebugCurrentFrame, p = i.getStackAddendum();
61
- p !== "" && (r += "%s", t = t.concat([p]));
62
- var m = t.map(function(d) {
61
+ p !== "" && (r += "%s", n = n.concat([p]));
62
+ var g = n.map(function(d) {
63
63
  return String(d);
64
64
  });
65
- m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
65
+ g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
66
66
  }
67
67
  }
68
- var le = !1, ce = !1, Y = !1, Ne = !1, We = !1, fe;
68
+ var le = !1, ce = !1, q = !1, Ne = !1, We = !1, fe;
69
69
  fe = Symbol.for("react.module.reference");
70
70
  function Me(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === v || We || e === a || e === y || e === h || Ne || e === T || le || ce || Y || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === u || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === v || We || e === l || e === E || e === h || Ne || e === T || le || ce || q || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === m || e.$$typeof === t || e.$$typeof === c || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
75
  e.$$typeof === fe || e.getModuleId !== void 0));
76
76
  }
77
- function Ve(e, r, t) {
77
+ function Ve(e, r, n) {
78
78
  var i = e.displayName;
79
79
  if (i)
80
80
  return i;
81
81
  var p = r.displayName || r.name || "";
82
- return p !== "" ? t + "(" + p + ")" : t;
82
+ return p !== "" ? n + "(" + p + ")" : n;
83
83
  }
84
84
  function de(e) {
85
85
  return e.displayName || "Context";
@@ -87,41 +87,41 @@ function Rr() {
87
87
  function P(e) {
88
88
  if (e == null)
89
89
  return null;
90
- 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")
90
+ if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
94
94
  switch (e) {
95
- case l:
96
- return "Fragment";
97
95
  case s:
96
+ return "Fragment";
97
+ case o:
98
98
  return "Portal";
99
99
  case v:
100
100
  return "Profiler";
101
- case a:
101
+ case l:
102
102
  return "StrictMode";
103
- case y:
103
+ case E:
104
104
  return "Suspense";
105
105
  case h:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case g:
110
+ case t:
111
111
  var r = e;
112
112
  return de(r) + ".Consumer";
113
- case u:
114
- var t = e;
115
- return de(t._context) + ".Provider";
113
+ case m:
114
+ var n = e;
115
+ return de(n._context) + ".Provider";
116
116
  case c:
117
117
  return Ve(e, e.render, "ForwardRef");
118
118
  case C:
119
119
  var i = e.displayName || null;
120
120
  return i !== null ? i : P(e.type) || "Memo";
121
121
  case O: {
122
- var p = e, m = p._payload, d = p._init;
122
+ var p = e, g = p._payload, d = p._init;
123
123
  try {
124
- return P(d(m));
124
+ return P(d(g));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,13 +129,13 @@ function Rr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var F = Object.assign, L = 0, ve, pe, ge, me, he, Ee, ye;
132
+ var $ = Object.assign, N = 0, ve, pe, ge, me, he, Ee, ye;
133
133
  function Re() {
134
134
  }
135
135
  Re.__reactDisabledLog = !0;
136
136
  function Ye() {
137
137
  {
138
- if (L === 0) {
138
+ if (N === 0) {
139
139
  ve = console.log, pe = console.info, ge = console.warn, me = console.error, he = console.group, Ee = console.groupCollapsed, ye = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,46 +153,46 @@ function Rr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- L++;
156
+ N++;
157
157
  }
158
158
  }
159
159
  function qe() {
160
160
  {
161
- if (L--, L === 0) {
161
+ if (N--, N === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: F({}, e, {
168
+ log: $({}, e, {
169
169
  value: ve
170
170
  }),
171
- info: F({}, e, {
171
+ info: $({}, e, {
172
172
  value: pe
173
173
  }),
174
- warn: F({}, e, {
174
+ warn: $({}, e, {
175
175
  value: ge
176
176
  }),
177
- error: F({}, e, {
177
+ error: $({}, e, {
178
178
  value: me
179
179
  }),
180
- group: F({}, e, {
180
+ group: $({}, e, {
181
181
  value: he
182
182
  }),
183
- groupCollapsed: F({}, e, {
183
+ groupCollapsed: $({}, e, {
184
184
  value: Ee
185
185
  }),
186
- groupEnd: F({}, e, {
186
+ groupEnd: $({}, e, {
187
187
  value: ye
188
188
  })
189
189
  });
190
190
  }
191
- L < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
194
  var K = j.ReactCurrentDispatcher, Z;
195
- function q(e, r, t) {
195
+ function z(e, r, n) {
196
196
  {
197
197
  if (Z === void 0)
198
198
  try {
@@ -205,25 +205,25 @@ function Rr() {
205
205
  ` + Z + e;
206
206
  }
207
207
  }
208
- var Q = !1, z;
208
+ var Q = !1, U;
209
209
  {
210
210
  var ze = typeof WeakMap == "function" ? WeakMap : Map;
211
- z = new ze();
211
+ U = new ze();
212
212
  }
213
- function be(e, r) {
213
+ function _e(e, r) {
214
214
  if (!e || Q)
215
215
  return "";
216
216
  {
217
- var t = z.get(e);
218
- if (t !== void 0)
219
- return t;
217
+ var n = U.get(e);
218
+ if (n !== void 0)
219
+ return n;
220
220
  }
221
221
  var i;
222
222
  Q = !0;
223
223
  var p = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var m;
226
- m = K.current, K.current = null, Ye();
225
+ var g;
226
+ g = K.current, K.current = null, Ye();
227
227
  try {
228
228
  if (r) {
229
229
  var d = function() {
@@ -260,87 +260,87 @@ function Rr() {
260
260
  if (x && i && typeof x.stack == "string") {
261
261
  for (var f = x.stack.split(`
262
262
  `), w = i.stack.split(`
263
- `), E = f.length - 1, R = w.length - 1; E >= 1 && R >= 0 && f[E] !== w[R]; )
263
+ `), y = f.length - 1, R = w.length - 1; y >= 1 && R >= 0 && f[y] !== w[R]; )
264
264
  R--;
265
- for (; E >= 1 && R >= 0; E--, R--)
266
- if (f[E] !== w[R]) {
267
- if (E !== 1 || R !== 1)
265
+ for (; y >= 1 && R >= 0; y--, R--)
266
+ if (f[y] !== w[R]) {
267
+ if (y !== 1 || R !== 1)
268
268
  do
269
- if (E--, R--, R < 0 || f[E] !== w[R]) {
269
+ if (y--, R--, R < 0 || f[y] !== w[R]) {
270
270
  var S = `
271
- ` + f[E].replace(" at new ", " at ");
272
- return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, S), S;
271
+ ` + f[y].replace(" at new ", " at ");
272
+ return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, S), S;
273
273
  }
274
- while (E >= 1 && R >= 0);
274
+ while (y >= 1 && R >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- Q = !1, K.current = m, qe(), Error.prepareStackTrace = p;
279
+ Q = !1, K.current = g, qe(), Error.prepareStackTrace = p;
280
280
  }
281
- var I = e ? e.displayName || e.name : "", Fe = I ? q(I) : "";
282
- return typeof e == "function" && z.set(e, Fe), Fe;
281
+ var L = e ? e.displayName || e.name : "", Fe = L ? z(L) : "";
282
+ return typeof e == "function" && U.set(e, Fe), Fe;
283
283
  }
284
- function Ue(e, r, t) {
285
- return be(e, !1);
284
+ function Ue(e, r, n) {
285
+ return _e(e, !1);
286
286
  }
287
287
  function Be(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
291
- function U(e, r, t) {
291
+ function B(e, r, n) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return be(e, Be(e));
295
+ return _e(e, Be(e));
296
296
  if (typeof e == "string")
297
- return q(e);
297
+ return z(e);
298
298
  switch (e) {
299
- case y:
300
- return q("Suspense");
299
+ case E:
300
+ return z("Suspense");
301
301
  case h:
302
- return q("SuspenseList");
302
+ return z("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case c:
307
307
  return Ue(e.render);
308
308
  case C:
309
- return U(e.type, r, t);
309
+ return B(e.type, r, n);
310
310
  case O: {
311
- var i = e, p = i._payload, m = i._init;
311
+ var i = e, p = i._payload, g = i._init;
312
312
  try {
313
- return U(m(p), r, t);
313
+ return B(g(p), r, n);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var B = Object.prototype.hasOwnProperty, _e = {}, we = j.ReactDebugCurrentFrame;
321
- function G(e) {
320
+ var G = Object.prototype.hasOwnProperty, be = {}, we = j.ReactDebugCurrentFrame;
321
+ function J(e) {
322
322
  if (e) {
323
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
324
- we.setExtraStackFrame(t);
323
+ var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
324
+ we.setExtraStackFrame(n);
325
325
  } else
326
326
  we.setExtraStackFrame(null);
327
327
  }
328
- function Ge(e, r, t, i, p) {
328
+ function Ge(e, r, n, i, p) {
329
329
  {
330
- var m = Function.call.bind(B);
330
+ var g = Function.call.bind(G);
331
331
  for (var d in e)
332
- if (m(e, d)) {
332
+ if (g(e, d)) {
333
333
  var f = void 0;
334
334
  try {
335
335
  if (typeof e[d] != "function") {
336
- var w = Error((i || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ var w = Error((i || "React class") + ": " + n + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw w.name = "Invariant Violation", w;
338
338
  }
339
- f = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (E) {
341
- f = E;
339
+ f = e[d](r, d, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (y) {
341
+ f = y;
342
342
  }
343
- f && !(f instanceof Error) && (G(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).", i || "React class", t, d, typeof f), G(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, G(p), b("Failed %s type: %s", t, f.message), G(null));
343
+ f && !(f instanceof Error) && (J(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).", i || "React class", n, d, typeof f), J(null)), f instanceof Error && !(f.message in be) && (be[f.message] = !0, J(p), _("Failed %s type: %s", n, f.message), J(null));
344
344
  }
345
345
  }
346
346
  }
@@ -350,8 +350,8 @@ function Rr() {
350
350
  }
351
351
  function Xe(e) {
352
352
  {
353
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
- return t;
353
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return n;
355
355
  }
356
356
  }
357
357
  function He(e) {
@@ -366,9 +366,9 @@ function Rr() {
366
366
  }
367
367
  function Te(e) {
368
368
  if (He(e))
369
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Ce(e);
369
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Ce(e);
370
370
  }
371
- var N = j.ReactCurrentOwner, Ke = {
371
+ var W = j.ReactCurrentOwner, Ke = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -376,7 +376,7 @@ function Rr() {
376
376
  }, Oe, Se, re;
377
377
  re = {};
378
378
  function Ze(e) {
379
- if (B.call(e, "ref")) {
379
+ if (G.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
382
382
  return !1;
@@ -384,7 +384,7 @@ function Rr() {
384
384
  return e.ref !== void 0;
385
385
  }
386
386
  function Qe(e) {
387
- if (B.call(e, "key")) {
387
+ if (G.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
390
390
  return !1;
@@ -392,44 +392,44 @@ function Rr() {
392
392
  return e.key !== void 0;
393
393
  }
394
394
  function er(e, r) {
395
- if (typeof e.ref == "string" && N.current && r && N.current.stateNode !== r) {
396
- var t = P(N.current.type);
397
- re[t] || (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', P(N.current.type), e.ref), re[t] = !0);
395
+ if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
396
+ var n = P(W.current.type);
397
+ re[n] || (_('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', P(W.current.type), e.ref), re[n] = !0);
398
398
  }
399
399
  }
400
400
  function rr(e, r) {
401
401
  {
402
- var t = function() {
403
- 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)", r));
402
+ var n = function() {
403
+ Oe || (Oe = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
404
404
  };
405
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
- get: t,
405
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
406
+ get: n,
407
407
  configurable: !0
408
408
  });
409
409
  }
410
410
  }
411
411
  function tr(e, r) {
412
412
  {
413
- var t = function() {
414
- Se || (Se = !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)", r));
413
+ var n = function() {
414
+ Se || (Se = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
415
415
  };
416
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
- get: t,
416
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
+ get: n,
418
418
  configurable: !0
419
419
  });
420
420
  }
421
421
  }
422
- var nr = function(e, r, t, i, p, m, d) {
422
+ var nr = function(e, r, n, i, p, g, d) {
423
423
  var f = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: o,
425
+ $$typeof: u,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
429
- ref: t,
429
+ ref: n,
430
430
  props: d,
431
431
  // Record the component responsible for creating this element.
432
- _owner: m
432
+ _owner: g
433
433
  };
434
434
  return f._store = {}, Object.defineProperty(f._store, "validated", {
435
435
  configurable: !1,
@@ -448,36 +448,36 @@ function Rr() {
448
448
  value: p
449
449
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
450
450
  };
451
- function ar(e, r, t, i, p) {
451
+ function ar(e, r, n, i, p) {
452
452
  {
453
- var m, d = {}, f = null, w = null;
454
- t !== void 0 && (Te(t), f = "" + t), Qe(r) && (Te(r.key), f = "" + r.key), Ze(r) && (w = r.ref, er(r, p));
455
- for (m in r)
456
- B.call(r, m) && !Ke.hasOwnProperty(m) && (d[m] = r[m]);
453
+ var g, d = {}, f = null, w = null;
454
+ n !== void 0 && (Te(n), f = "" + n), Qe(r) && (Te(r.key), f = "" + r.key), Ze(r) && (w = r.ref, er(r, p));
455
+ for (g in r)
456
+ G.call(r, g) && !Ke.hasOwnProperty(g) && (d[g] = r[g]);
457
457
  if (e && e.defaultProps) {
458
- var E = e.defaultProps;
459
- for (m in E)
460
- d[m] === void 0 && (d[m] = E[m]);
458
+ var y = e.defaultProps;
459
+ for (g in y)
460
+ d[g] === void 0 && (d[g] = y[g]);
461
461
  }
462
462
  if (f || w) {
463
463
  var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
464
  f && rr(d, R), w && tr(d, R);
465
465
  }
466
- return nr(e, f, w, p, i, N.current, d);
466
+ return nr(e, f, w, p, i, W.current, d);
467
467
  }
468
468
  }
469
469
  var te = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
470
- function $(e) {
470
+ function I(e) {
471
471
  if (e) {
472
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
473
- je.setExtraStackFrame(t);
472
+ var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
473
+ je.setExtraStackFrame(n);
474
474
  } else
475
475
  je.setExtraStackFrame(null);
476
476
  }
477
477
  var ne;
478
478
  ne = !1;
479
479
  function ae(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === o;
480
+ return typeof e == "object" && e !== null && e.$$typeof === u;
481
481
  }
482
482
  function Pe() {
483
483
  {
@@ -494,10 +494,10 @@ Check the render method of \`` + e + "`.";
494
494
  function or(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
497
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
498
498
  return `
499
499
 
500
- Check your code at ` + r + ":" + t + ".";
500
+ Check your code at ` + r + ":" + n + ".";
501
501
  }
502
502
  return "";
503
503
  }
@@ -507,10 +507,10 @@ Check your code at ` + r + ":" + t + ".";
507
507
  {
508
508
  var r = Pe();
509
509
  if (!r) {
510
- var t = typeof e == "string" ? e : e.displayName || e.name;
511
- t && (r = `
510
+ var n = typeof e == "string" ? e : e.displayName || e.name;
511
+ n && (r = `
512
512
 
513
- Check the top-level render call using <` + t + ">.");
513
+ Check the top-level render call using <` + n + ">.");
514
514
  }
515
515
  return r;
516
516
  }
@@ -520,12 +520,12 @@ 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 = ir(r);
524
- if (xe[t])
523
+ var n = ir(r);
524
+ if (xe[n])
525
525
  return;
526
- xe[t] = !0;
526
+ xe[n] = !0;
527
527
  var i = "";
528
- e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + P(e._owner.type) + "."), $(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.', t, i), $(null);
528
+ e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + P(e._owner.type) + "."), I(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), I(null);
529
529
  }
530
530
  }
531
531
  function Ae(e, r) {
@@ -533,58 +533,58 @@ Check the top-level render call using <` + t + ">.");
533
533
  if (typeof e != "object")
534
534
  return;
535
535
  if (ee(e))
536
- for (var t = 0; t < e.length; t++) {
537
- var i = e[t];
536
+ for (var n = 0; n < e.length; n++) {
537
+ var i = e[n];
538
538
  ae(i) && ke(i, r);
539
539
  }
540
540
  else if (ae(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var p = V(e);
543
+ var p = F(e);
544
544
  if (typeof p == "function" && p !== e.entries)
545
- for (var m = p.call(e), d; !(d = m.next()).done; )
545
+ for (var g = p.call(e), d; !(d = g.next()).done; )
546
546
  ae(d.value) && ke(d.value, r);
547
547
  }
548
548
  }
549
549
  }
550
- function sr(e) {
550
+ function ur(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
554
554
  return;
555
- var t;
555
+ var n;
556
556
  if (typeof r == "function")
557
- t = r.propTypes;
557
+ n = r.propTypes;
558
558
  else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
560
  r.$$typeof === C))
561
- t = r.propTypes;
561
+ n = r.propTypes;
562
562
  else
563
563
  return;
564
- if (t) {
564
+ if (n) {
565
565
  var i = P(r);
566
- Ge(t, e.props, "prop", i, e);
566
+ Ge(n, e.props, "prop", i, e);
567
567
  } else if (r.PropTypes !== void 0 && !ne) {
568
568
  ne = !0;
569
569
  var p = P(r);
570
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
570
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
571
571
  }
572
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function ur(e) {
575
+ function sr(e) {
576
576
  {
577
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
- var i = r[t];
577
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
578
+ var i = r[n];
579
579
  if (i !== "children" && i !== "key") {
580
- $(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
580
+ I(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), I(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && ($(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
584
+ e.ref !== null && (I(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
585
585
  }
586
586
  }
587
- function De(e, r, t, i, p, m) {
587
+ function De(e, r, n, i, p, g) {
588
588
  {
589
589
  var d = Me(e);
590
590
  if (!d) {
@@ -592,10 +592,10 @@ Check the top-level render call using <` + t + ">.");
592
592
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
593
  var w = or(p);
594
594
  w ? f += w : f += Pe();
595
- var E;
596
- e === null ? E = "null" : ee(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : E = 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", E, f);
595
+ var y;
596
+ e === null ? y = "null" : ee(e) ? y = "array" : e !== void 0 && e.$$typeof === u ? (y = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f);
597
597
  }
598
- var R = ar(e, r, t, p, m);
598
+ var R = ar(e, r, n, p, g);
599
599
  if (R == null)
600
600
  return R;
601
601
  if (d) {
@@ -603,26 +603,26 @@ Check the top-level render call using <` + t + ">.");
603
603
  if (S !== void 0)
604
604
  if (i)
605
605
  if (ee(S)) {
606
- for (var I = 0; I < S.length; I++)
607
- Ae(S[I], e);
606
+ for (var L = 0; L < S.length; L++)
607
+ Ae(S[L], e);
608
608
  Object.freeze && Object.freeze(S);
609
609
  } else
610
- 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.");
610
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
612
  Ae(S, e);
613
613
  }
614
- return e === l ? ur(R) : sr(R), R;
614
+ return e === s ? sr(R) : ur(R), R;
615
615
  }
616
616
  }
617
- function lr(e, r, t) {
618
- return De(e, r, t, !0);
617
+ function lr(e, r, n) {
618
+ return De(e, r, n, !0);
619
619
  }
620
- function cr(e, r, t) {
621
- return De(e, r, t, !1);
620
+ function cr(e, r, n) {
621
+ return De(e, r, n, !1);
622
622
  }
623
623
  var fr = cr, dr = lr;
624
- M.Fragment = l, M.jsx = fr, M.jsxs = dr;
625
- }()), M;
624
+ V.Fragment = s, V.jsx = fr, V.jsxs = dr;
625
+ }()), V;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? ie.exports = yr() : ie.exports = Rr();
628
628
  var k = ie.exports;
@@ -635,97 +635,97 @@ const H = vr({
635
635
  useAuth: void 0,
636
636
  useLocation: void 0
637
637
  }), Or = ({
638
- axios: n,
639
- children: o,
640
- translate: s,
641
- useAuth: l,
642
- Outlet: a,
638
+ axios: a,
639
+ children: u,
640
+ translate: o,
641
+ useAuth: s,
642
+ Outlet: l,
643
643
  Navigate: v,
644
- useLocation: u,
645
- useGoogleTagManager: g
644
+ useLocation: m,
645
+ useGoogleTagManager: t
646
646
  }) => {
647
- const c = se(
647
+ const c = ue(
648
648
  () => ({
649
- axios: n,
649
+ axios: a,
650
650
  Navigate: v,
651
- Outlet: a,
652
- translate: s,
653
- useAuth: l,
654
- useGoogleTagManager: g,
655
- useLocation: u
651
+ Outlet: l,
652
+ translate: o,
653
+ useAuth: s,
654
+ useGoogleTagManager: t,
655
+ useLocation: m
656
656
  }),
657
- [v, a, n, s, l, g, u]
657
+ [v, l, a, o, s, t, m]
658
658
  );
659
- return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: o });
660
- }, J = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({
661
- Fallback: n,
662
- loginPath: o = "/login",
663
- localStorageKey: s = "user",
664
- redirect401Path: l = "/login",
665
- ...a
659
+ return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: u });
660
+ }, X = (a) => `RequireAuth require « ${a} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({
661
+ Fallback: a,
662
+ loginPath: u = "/login",
663
+ localStorageKey: o = "user",
664
+ redirect401Path: s = "/login",
665
+ ...l
666
666
  }) => {
667
- var D, V, j, b;
667
+ var D, F, j, _;
668
668
  const {
669
- axios: v = a.axios,
670
- useLocation: u = a.useLocation,
671
- useAuth: g = a.useAuth,
672
- Outlet: c = a.Outlet,
673
- Navigate: y = a.Navigate
674
- } = ue(H);
675
- if (g === void 0)
676
- throw new Error(J("useAuth"));
677
- if (u === void 0)
678
- throw new Error(J("useLocation"));
669
+ axios: v = l.axios,
670
+ useLocation: m = l.useLocation,
671
+ useAuth: t = l.useAuth,
672
+ Outlet: c = l.Outlet,
673
+ Navigate: E = l.Navigate
674
+ } = se(H);
675
+ if (t === void 0)
676
+ throw new Error(X("useAuth"));
677
+ if (m === void 0)
678
+ throw new Error(X("useLocation"));
679
679
  if (c === void 0)
680
- throw new Error(J("Outlet"));
681
- if (y === void 0)
682
- throw new Error(J("Navigate"));
683
- const [h, C] = pr(null), { isLogged: O } = g(), T = u(), A = gr(!1);
680
+ throw new Error(X("Outlet"));
681
+ if (E === void 0)
682
+ throw new Error(X("Navigate"));
683
+ const [h, C] = pr(null), { isLogged: O } = t(), T = m(), A = gr(!1);
684
684
  return mr(() => {
685
685
  A.current || (A.current = !0, v == null || v.interceptors.response.use(
686
- (_) => _,
687
- async (_) => {
688
- var Y;
689
- return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((Y = _ == null ? void 0 : _.response) == null ? void 0 : Y.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(s), C(l)), Promise.reject(_);
686
+ (b) => b,
687
+ async (b) => {
688
+ var q;
689
+ return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((q = b == null ? void 0 : b.response) == null ? void 0 : q.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(o), C(s)), Promise.reject(b);
690
690
  }
691
691
  ));
692
- }, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, s, l]), O && !h ? /* @__PURE__ */ k.jsx(hr, { fallback: n, children: (V = (D = T.state) == null ? void 0 : D.from) != null && V.state && ((b = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : b.pathname) === o ? /* @__PURE__ */ k.jsx(y, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(y, { to: o, state: { from: T }, replace: !0 });
693
- }, oe = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...n }) => {
692
+ }, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, o, s]), O && !h ? /* @__PURE__ */ k.jsx(hr, { fallback: a, children: (F = (D = T.state) == null ? void 0 : D.from) != null && F.state && ((_ = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : _.pathname) === u ? /* @__PURE__ */ k.jsx(E, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(E, { to: u, state: { from: T }, replace: !0 });
693
+ }, oe = (a) => `GTMSendPageView require « ${a} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...a }) => {
694
694
  const {
695
- useLocation: o = n.useLocation,
696
- Outlet: s = n.Outlet,
697
- useGoogleTagManager: l = n.useGoogleTagManager
698
- } = ue(H);
699
- if (o === void 0)
695
+ useLocation: u = a.useLocation,
696
+ Outlet: o = a.Outlet,
697
+ useGoogleTagManager: s = a.useGoogleTagManager
698
+ } = se(H);
699
+ if (u === void 0)
700
700
  throw new Error(oe("useLocation"));
701
- if (s === void 0)
701
+ if (o === void 0)
702
702
  throw new Error(oe("Outlet"));
703
- if (l === void 0)
703
+ if (s === void 0)
704
704
  throw new Error(oe("useGoogleTagManager"));
705
- const { pathname: a } = o(), { sendEvent: v } = l();
705
+ const { pathname: l } = u(), { sendEvent: v } = s();
706
706
  return Er(() => {
707
- v({ event: "pageView", pathname: a });
708
- }, [a, v]), /* @__PURE__ */ k.jsx(s, {});
707
+ v({ event: "pageView", pathname: l });
708
+ }, [l, v]), /* @__PURE__ */ k.jsx(o, {});
709
709
  }, Pr = ({
710
- axios: n,
711
- baseURL: o,
712
- tokenTypeKey: s = "tokenType",
713
- userLocalStorageKey: l = "user",
714
- tokenKey: a = "accessToken",
710
+ axios: a,
711
+ baseURL: u,
712
+ tokenTypeKey: o = "tokenType",
713
+ userLocalStorageKey: s = "user",
714
+ tokenKey: l = "accessToken",
715
715
  postContentType: v = "application/json"
716
716
  }) => {
717
- if (!n.defaults)
717
+ if (!a.defaults)
718
718
  return null;
719
- const u = localStorage.getItem(l), g = u ? JSON.parse(u) : null, c = g != null && g[s] ? g[s] : null, y = g != null && g[a] ? g[a] : null, h = u ? `${c} ${y}` : null;
720
- return n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, h && (n.defaults.headers.common.Authorization = h), null;
719
+ const m = localStorage.getItem(s), t = m ? JSON.parse(m) : null, c = t != null && t[o] ? t[o] : null, E = t != null && t[l] ? t[l] : null, h = m ? `${c} ${E}` : null;
720
+ return a.defaults.baseURL = u, a.defaults.headers.post["Content-Type"] = v, h && (a.defaults.headers.common.Authorization = h), null;
721
721
  }, xr = ({
722
- i18n: n,
723
- debug: o,
724
- initReactI18next: s,
725
- resources: l,
726
- LanguageDetector: a
727
- }) => (n != null && n.isInitialized || (n.use(a).use(s).init({
728
- debug: o,
722
+ i18n: a,
723
+ debug: u,
724
+ initReactI18next: o,
725
+ resources: s,
726
+ LanguageDetector: l
727
+ }) => (a != null && a.isInitialized || (a.use(l).use(o).init({
728
+ debug: u,
729
729
  fallbackLng: "en",
730
730
  interpolation: {
731
731
  escapeValue: !1
@@ -735,150 +735,157 @@ const H = vr({
735
735
  bindI18n: !1,
736
736
  useSuspense: !0
737
737
  },
738
- resources: l,
738
+ resources: s,
739
739
  returnNull: !1
740
740
  }).then(() => {
741
- document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
742
- }), n.on("languageChanged", (v) => {
741
+ document.documentElement.lang !== a.resolvedLanguage && a.resolvedLanguage && document.documentElement.setAttribute("lang", a.resolvedLanguage);
742
+ }), a.on("languageChanged", (v) => {
743
743
  document.documentElement.setAttribute("lang", v);
744
744
  })), null), kr = ({
745
- dsn: n,
746
- sentry: o,
747
- integrations: s,
748
- tracesSampleRate: l,
749
- routingInstrumentationDependencies: a,
745
+ dsn: a,
746
+ sentry: u,
747
+ integrations: o,
748
+ tracesSampleRate: s,
749
+ routingInstrumentationDependencies: l,
750
750
  replaysSessionSampleRate: v,
751
- replaysOnErrorSampleRate: u,
752
- tracePropagationTargets: g,
751
+ replaysOnErrorSampleRate: m,
752
+ tracePropagationTargets: t,
753
753
  ignoreErrors: c,
754
- debug: y
755
- }) => (o.isInitialized() || (y || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && o.init({
756
- debug: y,
757
- dsn: n,
754
+ debug: E
755
+ }) => (u.isInitialized() || (E || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && u.init({
756
+ debug: E,
757
+ dsn: a,
758
758
  ignoreErrors: c || [/Failed to fetch dynamically imported module/],
759
759
  integrations: [
760
- new o.BrowserTracing({
761
- routingInstrumentation: o.reactRouterV6Instrumentation(
762
- a.useEffect,
763
- a.useLocation,
764
- a.useNavigationType,
765
- a.createRoutesFromChildren,
766
- a.matchRoutes
760
+ new u.BrowserTracing({
761
+ routingInstrumentation: u.reactRouterV6Instrumentation(
762
+ l.useEffect,
763
+ l.useLocation,
764
+ l.useNavigationType,
765
+ l.createRoutesFromChildren,
766
+ l.matchRoutes
767
767
  )
768
768
  }),
769
- o.replayIntegration(),
770
- ...s || []
769
+ u.replayIntegration(),
770
+ ...o || []
771
771
  ],
772
- replaysOnErrorSampleRate: u || 1,
772
+ replaysOnErrorSampleRate: m || 1,
773
773
  replaysSessionSampleRate: v || 0.1,
774
- tracePropagationTargets: g,
775
- tracesSampleRate: l || 1
776
- }), null), Ar = ({ IMaskMixin: n, ...o }) => {
777
- const s = se(
774
+ tracePropagationTargets: t,
775
+ tracesSampleRate: s || 1
776
+ }), null), Ar = ({ IMaskMixin: a, ...u }) => {
777
+ const o = ue(
778
778
  // eslint-disable-next-line react/jsx-props-no-spreading
779
- () => n(({ TextField: l, ...a }) => /* @__PURE__ */ k.jsx(l, { ...a })),
780
- [n]
779
+ () => a(({ TextField: s, ...l }) => /* @__PURE__ */ k.jsx(s, { ...l })),
780
+ [a]
781
781
  );
782
- return /* @__PURE__ */ k.jsx(s, { ...o });
783
- }, Dr = ({ mapbox: n, accessToken: o }) => (n && o && (n.accessToken = o), null), Fr = ({
784
- children: n,
785
- defaultOptions: o,
786
- QueryClient: s,
787
- QueryClientProvider: l
782
+ return /* @__PURE__ */ k.jsx(o, { ...u });
783
+ }, Dr = ({ mapbox: a, accessToken: u }) => (a && u && (a.accessToken = u), null), Fr = ({
784
+ children: a,
785
+ defaultOptions: u,
786
+ QueryClient: o,
787
+ QueryClientProvider: s
788
788
  }) => {
789
- const a = new s({
789
+ const l = new o({
790
790
  defaultOptions: {
791
791
  queries: {
792
792
  refetchOnWindowFocus: !1,
793
793
  retry: 3,
794
- ...o
794
+ ...u
795
795
  }
796
796
  }
797
797
  });
798
- return /* @__PURE__ */ k.jsx(l, { client: a, children: n });
799
- }, $r = (n) => {
800
- const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: s = n == null ? void 0 : n.translate } = ue(H);
801
- return { printError: X(
802
- (a) => {
803
- var g, c, y, h, C, O, T, A, D;
804
- const v = s ? s(o) : "Unknown error", { response: u } = a || {};
805
- return a != null && a.reason ? String(a.reason) : (g = u == null ? void 0 : u.data) != null && g.reason ? String(u.data.reason) : (c = u == null ? void 0 : u.data) != null && c.message ? String(u.data.message) : (h = (y = u == null ? void 0 : u.data) == null ? void 0 : y.detail) != null && h.length && Array.isArray((C = u == null ? void 0 : u.data) == null ? void 0 : C.detail) && ((T = (O = u == null ? void 0 : u.data) == null ? void 0 : O.detail[0]) != null && T.msg) && typeof ((D = (A = u == null ? void 0 : u.data) == null ? void 0 : A.detail[0]) == null ? void 0 : D.msg) == "string" ? String(u.data.detail[0].msg) : v;
798
+ return /* @__PURE__ */ k.jsx(s, { client: l, children: a });
799
+ }, $r = (a) => {
800
+ const { unknownErrorTranslationKey: u = "error.unknownError" } = a || {}, { translate: o = a == null ? void 0 : a.translate } = se(H), s = o ? o(u) : "Unknown error", l = Y(
801
+ (m) => {
802
+ var c, E, h, C, O, T, A, D, F;
803
+ const { response: t } = m || {};
804
+ return t != null && t.reason ? String(t.reason) : (c = t == null ? void 0 : t.data) != null && c.reason ? String(t.data.reason) : (E = t == null ? void 0 : t.data) != null && E.message ? String(t.data.message) : (C = (h = t == null ? void 0 : t.data) == null ? void 0 : h.detail) != null && C.length && Array.isArray((O = t == null ? void 0 : t.data) == null ? void 0 : O.detail) && ((A = (T = t == null ? void 0 : t.data) == null ? void 0 : T.detail[0]) != null && A.msg) && typeof ((F = (D = t == null ? void 0 : t.data) == null ? void 0 : D.detail[0]) == null ? void 0 : F.msg) == "string" ? String(t.data.detail[0].msg) : s;
805
+ },
806
+ [s]
807
+ ), v = Y(
808
+ (m) => {
809
+ var c, E, h;
810
+ const { response: t } = m || {};
811
+ return o && (t != null && t.error_code) ? o(t == null ? void 0 : t.error_code) : o && ((c = t == null ? void 0 : t.data) != null && c.error_code) ? o((E = t == null ? void 0 : t.data) == null ? void 0 : E.error_code) : t != null && t.error_code ? String(t == null ? void 0 : t.error_code) : (h = t == null ? void 0 : t.data) != null && h.error_code ? String(t.data.error_code) : s;
806
812
  },
807
813
  [s, o]
808
- ) };
814
+ );
815
+ return { printError: l, printErrorCode: v };
809
816
  }, Ir = ({
810
- data: n,
811
- fetchNextPage: o,
812
- isFetchingNextPage: s,
813
- isInitialLoading: l,
814
- isLoading: a,
817
+ data: a,
818
+ fetchNextPage: u,
819
+ isFetchingNextPage: o,
820
+ isInitialLoading: s,
821
+ isLoading: l,
815
822
  enabled: v = !0
816
823
  }) => {
817
- const u = X(
824
+ const m = Y(
818
825
  async (c) => {
819
- s || !v || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
826
+ o || !v || await u({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
820
827
  },
821
- [v, o, s]
822
- ), g = se(() => {
823
- if (n)
824
- return n.pages.reduce((c, y) => [...c, ...y], []);
825
- }, [n]);
828
+ [v, u, o]
829
+ ), t = ue(() => {
830
+ if (a)
831
+ return a.pages.reduce((c, E) => [...c, ...E], []);
832
+ }, [a]);
826
833
  return {
827
- fetchNextPageOnRowsScrollEnd: u,
828
- isLoading: s || a,
829
- loadingVariant: l ? "skeleton" : "linear",
830
- rows: g
834
+ fetchNextPageOnRowsScrollEnd: m,
835
+ isLoading: o || l,
836
+ loadingVariant: s ? "skeleton" : "linear",
837
+ rows: t
831
838
  };
832
- }, Lr = (n) => {
833
- const o = X(
834
- ({ tokenType: l, accessToken: a }) => {
835
- n.defaults.headers.common.Authorization = `${l} ${a}`;
839
+ }, Lr = (a) => {
840
+ const u = Y(
841
+ ({ tokenType: s, accessToken: l }) => {
842
+ a.defaults.headers.common.Authorization = `${s} ${l}`;
836
843
  },
837
- [n.defaults.headers.common]
844
+ [a.defaults.headers.common]
838
845
  );
839
846
  return {
840
- clearAuthenticationToken: X(() => {
841
- n.defaults.headers.common.Authorization = null;
842
- }, [n.defaults.headers.common]),
843
- setAuthenticationToken: o
847
+ clearAuthenticationToken: Y(() => {
848
+ a.defaults.headers.common.Authorization = null;
849
+ }, [a.defaults.headers.common]),
850
+ setAuthenticationToken: u
844
851
  };
845
- }, br = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), _r = (n) => {
846
- const l = n.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
847
- return l.charAt(0).toLowerCase() + l.slice(1);
848
- }, wr = (n, o, s) => {
849
- const l = _r(o), a = br(s);
850
- return `${l}${a}`;
851
- }, Cr = (n) => {
852
- if (n)
853
- return (n == null ? void 0 : n.reduce((o, s) => (o[s] = {
852
+ }, _r = (a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase(), br = (a) => {
853
+ const s = a.split("/").filter((l) => l.length > 0).map((l) => l.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
854
+ return s.charAt(0).toLowerCase() + s.slice(1);
855
+ }, wr = (a, u, o) => {
856
+ const s = br(u), l = _r(o);
857
+ return `${s}${l}`;
858
+ }, Cr = (a) => {
859
+ if (a)
860
+ return (a == null ? void 0 : a.reduce((u, o) => (u[o] = {
854
861
  query: {
855
862
  useInfinite: !0,
856
863
  useInfiniteQueryParam: "offset"
857
864
  }
858
- }, o), {})) || {};
859
- }, Nr = (n) => {
860
- const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: s = void 0 } = n || {};
865
+ }, u), {})) || {};
866
+ }, Nr = (a) => {
867
+ const { input: u = "./openapi.json", operationsToGenerateInfiniteQueryHook: o = void 0 } = a || {};
861
868
  return {
862
869
  api: {
863
870
  hooks: {
864
871
  afterAllFilesWrite: "prettier src/api/ --write"
865
872
  },
866
- input: o,
873
+ input: u,
867
874
  output: {
868
875
  client: "react-query",
869
876
  mode: "tags-split",
870
877
  override: {
871
- header: (l) => [
878
+ header: (s) => [
872
879
  "Generated by orval 🍺",
873
- ...l.title ? [l.title] : [],
874
- ...l.description ? [l.description] : []
880
+ ...s.title ? [s.title] : [],
881
+ ...s.description ? [s.description] : []
875
882
  ],
876
883
  mutator: {
877
884
  name: "axiosCustomInstance",
878
885
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
879
886
  },
880
887
  operationName: wr,
881
- ...(s == null ? void 0 : s.length) && { operations: Cr(s) },
888
+ ...(o == null ? void 0 : o.length) && { operations: Cr(o) },
882
889
  query: {
883
890
  useQuery: !0
884
891
  }