@tracktor/shared-module 0.15.9 → 0.15.11

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