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

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,4 +1,4 @@
1
- import We, { createContext as vt, useMemo as le, useContext as k, useState as gt, useRef as ht, useEffect as Z, Suspense as yt, useCallback as ce } from "react";
1
+ import Ne, { createContext as dt, useMemo as le, useContext as k, useState as vt, useRef as gt, useEffect as Z, Suspense as yt, useCallback as ce } from "react";
2
2
  var se = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
@@ -10,46 +10,46 @@ var se = { exports: {} }, B = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Fe;
13
- function mt() {
13
+ function ht() {
14
14
  return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
- var n = We, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), P = Symbol.iterator, x = "@@iterator";
15
+ var r = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
16
16
  function T(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
- var t = P && e[P] || e[x];
19
+ var t = j && e[j] || e[x];
20
20
  return typeof t == "function" ? t : null;
21
21
  }
22
- var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function w(e) {
22
+ var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ function _(e) {
24
24
  {
25
- for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
26
- o[s - 1] = arguments[s];
25
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
26
+ o[f - 1] = arguments[f];
27
27
  Y("error", e, o);
28
28
  }
29
29
  }
30
30
  function Y(e, t, o) {
31
31
  {
32
- var s = D.ReactDebugCurrentFrame, m = s.getStackAddendum();
32
+ var f = D.ReactDebugCurrentFrame, m = f.getStackAddendum();
33
33
  m !== "" && (t += "%s", o = o.concat([m]));
34
- var E = o.map(function(h) {
35
- return String(h);
34
+ var R = o.map(function(y) {
35
+ return String(y);
36
36
  });
37
- E.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, E);
37
+ R.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, R);
38
38
  }
39
39
  }
40
- var N = !1, W = !1, C = !1, fe = !1, de = !1, z;
41
- z = Symbol.for("react.module.reference");
42
- function Le(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === v || de || e === f || e === y || e === p || fe || e === u || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
40
+ var N = !1, W = !1, b = !1, fe = !1, de = !1, M;
41
+ M = Symbol.for("react.module.reference");
42
+ function We(e) {
43
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || de || e === l || e === h || e === E || fe || e === u || N || W || b || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === w || e.$$typeof === v || e.$$typeof === c || e.$$typeof === s || // This needs to include all possible module reference object
44
44
  // types supported by any Flight configuration anywhere since
45
45
  // we don't know which Flight build this will end up being used
46
46
  // with.
47
- e.$$typeof === z || e.getModuleId !== void 0));
47
+ e.$$typeof === M || e.getModuleId !== void 0));
48
48
  }
49
- function Ve(e, t, o) {
50
- var s = e.displayName;
51
- if (s)
52
- return s;
49
+ function Le(e, t, o) {
50
+ var f = e.displayName;
51
+ if (f)
52
+ return f;
53
53
  var m = t.displayName || t.name || "";
54
54
  return m !== "" ? o + "(" + m + ")" : o;
55
55
  }
@@ -59,22 +59,22 @@ function mt() {
59
59
  function I(e) {
60
60
  if (e == null)
61
61
  return null;
62
- if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
62
+ 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")
63
63
  return e.displayName || e.name || null;
64
64
  if (typeof e == "string")
65
65
  return e;
66
66
  switch (e) {
67
- case i:
68
- return "Fragment";
69
67
  case a:
68
+ return "Fragment";
69
+ case i:
70
70
  return "Portal";
71
- case v:
71
+ case d:
72
72
  return "Profiler";
73
- case f:
73
+ case l:
74
74
  return "StrictMode";
75
- case y:
75
+ case h:
76
76
  return "Suspense";
77
- case p:
77
+ case E:
78
78
  return "SuspenseList";
79
79
  }
80
80
  if (typeof e == "object")
@@ -82,18 +82,18 @@ function mt() {
82
82
  case c:
83
83
  var t = e;
84
84
  return ve(t) + ".Consumer";
85
- case d:
85
+ case v:
86
86
  var o = e;
87
87
  return ve(o._context) + ".Provider";
88
- case l:
89
- return Ve(e, e.render, "ForwardRef");
90
- case _:
91
- var s = e.displayName || null;
92
- return s !== null ? s : I(e.type) || "Memo";
93
- case R: {
94
- var m = e, E = m._payload, h = m._init;
88
+ case s:
89
+ return Le(e, e.render, "ForwardRef");
90
+ case w:
91
+ var f = e.displayName || null;
92
+ return f !== null ? f : I(e.type) || "Memo";
93
+ case p: {
94
+ var m = e, R = m._payload, y = m._init;
95
95
  try {
96
- return I(h(E));
96
+ return I(y(R));
97
97
  } catch {
98
98
  return null;
99
99
  }
@@ -101,18 +101,18 @@ function mt() {
101
101
  }
102
102
  return null;
103
103
  }
104
- var L = Object.assign, U = 0, ge, he, ye, me, pe, Ee, Re;
105
- function _e() {
104
+ var L = Object.assign, U = 0, ge, ye, he, me, Ee, Re, pe;
105
+ function we() {
106
106
  }
107
- _e.__reactDisabledLog = !0;
108
- function Me() {
107
+ we.__reactDisabledLog = !0;
108
+ function Ve() {
109
109
  {
110
110
  if (U === 0) {
111
- ge = console.log, he = console.info, ye = console.warn, me = console.error, pe = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
111
+ ge = console.log, ye = console.info, he = console.warn, me = console.error, Ee = console.group, Re = console.groupCollapsed, pe = console.groupEnd;
112
112
  var e = {
113
113
  configurable: !0,
114
114
  enumerable: !0,
115
- value: _e,
115
+ value: we,
116
116
  writable: !0
117
117
  };
118
118
  Object.defineProperties(console, {
@@ -141,122 +141,122 @@ function mt() {
141
141
  value: ge
142
142
  }),
143
143
  info: L({}, e, {
144
- value: he
144
+ value: ye
145
145
  }),
146
146
  warn: L({}, e, {
147
- value: ye
147
+ value: he
148
148
  }),
149
149
  error: L({}, e, {
150
150
  value: me
151
151
  }),
152
152
  group: L({}, e, {
153
- value: pe
153
+ value: Ee
154
154
  }),
155
155
  groupCollapsed: L({}, e, {
156
- value: Ee
156
+ value: Re
157
157
  }),
158
158
  groupEnd: L({}, e, {
159
- value: Re
159
+ value: pe
160
160
  })
161
161
  });
162
162
  }
163
- U < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
163
+ U < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
164
  }
165
165
  }
166
166
  var ee = D.ReactCurrentDispatcher, te;
167
- function J(e, t, o) {
167
+ function Q(e, t, o) {
168
168
  {
169
169
  if (te === void 0)
170
170
  try {
171
171
  throw Error();
172
172
  } catch (m) {
173
- var s = m.stack.trim().match(/\n( *(at )?)/);
174
- te = s && s[1] || "";
173
+ var f = m.stack.trim().match(/\n( *(at )?)/);
174
+ te = f && f[1] || "";
175
175
  }
176
176
  return `
177
177
  ` + te + e;
178
178
  }
179
179
  }
180
- var re = !1, Q;
180
+ var re = !1, J;
181
181
  {
182
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
183
- Q = new Ue();
182
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
183
+ J = new Me();
184
184
  }
185
- function we(e, t) {
185
+ function _e(e, t) {
186
186
  if (!e || re)
187
187
  return "";
188
188
  {
189
- var o = Q.get(e);
189
+ var o = J.get(e);
190
190
  if (o !== void 0)
191
191
  return o;
192
192
  }
193
- var s;
193
+ var f;
194
194
  re = !0;
195
195
  var m = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
197
- var E;
198
- E = ee.current, ee.current = null, Me();
197
+ var R;
198
+ R = ee.current, ee.current = null, Ve();
199
199
  try {
200
200
  if (t) {
201
- var h = function() {
201
+ var y = function() {
202
202
  throw Error();
203
203
  };
204
- if (Object.defineProperty(h.prototype, "props", {
204
+ if (Object.defineProperty(y.prototype, "props", {
205
205
  set: function() {
206
206
  throw Error();
207
207
  }
208
208
  }), typeof Reflect == "object" && Reflect.construct) {
209
209
  try {
210
- Reflect.construct(h, []);
210
+ Reflect.construct(y, []);
211
211
  } catch ($) {
212
- s = $;
212
+ f = $;
213
213
  }
214
- Reflect.construct(e, [], h);
214
+ Reflect.construct(e, [], y);
215
215
  } else {
216
216
  try {
217
- h.call();
217
+ y.call();
218
218
  } catch ($) {
219
- s = $;
219
+ f = $;
220
220
  }
221
- e.call(h.prototype);
221
+ e.call(y.prototype);
222
222
  }
223
223
  } else {
224
224
  try {
225
225
  throw Error();
226
226
  } catch ($) {
227
- s = $;
227
+ f = $;
228
228
  }
229
229
  e();
230
230
  }
231
231
  } catch ($) {
232
- if ($ && s && typeof $.stack == "string") {
232
+ if ($ && f && typeof $.stack == "string") {
233
233
  for (var g = $.stack.split(`
234
- `), S = s.stack.split(`
235
- `), b = g.length - 1, j = S.length - 1; b >= 1 && j >= 0 && g[b] !== S[j]; )
236
- j--;
237
- for (; b >= 1 && j >= 0; b--, j--)
238
- if (g[b] !== S[j]) {
239
- if (b !== 1 || j !== 1)
234
+ `), S = f.stack.split(`
235
+ `), C = g.length - 1, P = S.length - 1; C >= 1 && P >= 0 && g[C] !== S[P]; )
236
+ P--;
237
+ for (; C >= 1 && P >= 0; C--, P--)
238
+ if (g[C] !== S[P]) {
239
+ if (C !== 1 || P !== 1)
240
240
  do
241
- if (b--, j--, j < 0 || g[b] !== S[j]) {
241
+ if (C--, P--, P < 0 || g[C] !== S[P]) {
242
242
  var O = `
243
- ` + g[b].replace(" at new ", " at ");
244
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
243
+ ` + g[C].replace(" at new ", " at ");
244
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, O), O;
245
245
  }
246
- while (b >= 1 && j >= 0);
246
+ while (C >= 1 && P >= 0);
247
247
  break;
248
248
  }
249
249
  }
250
250
  } finally {
251
- re = !1, ee.current = E, ze(), Error.prepareStackTrace = m;
251
+ re = !1, ee.current = R, ze(), Error.prepareStackTrace = m;
252
252
  }
253
- var M = e ? e.displayName || e.name : "", $e = M ? J(M) : "";
254
- return typeof e == "function" && Q.set(e, $e), $e;
253
+ var z = e ? e.displayName || e.name : "", $e = z ? Q(z) : "";
254
+ return typeof e == "function" && J.set(e, $e), $e;
255
255
  }
256
- function qe(e, t, o) {
257
- return we(e, !1);
256
+ function Ue(e, t, o) {
257
+ return _e(e, !1);
258
258
  }
259
- function Be(e) {
259
+ function qe(e) {
260
260
  var t = e.prototype;
261
261
  return !!(t && t.isReactComponent);
262
262
  }
@@ -264,61 +264,61 @@ function mt() {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
267
- return we(e, Be(e));
267
+ return _e(e, qe(e));
268
268
  if (typeof e == "string")
269
- return J(e);
269
+ return Q(e);
270
270
  switch (e) {
271
- case y:
272
- return J("Suspense");
273
- case p:
274
- return J("SuspenseList");
271
+ case h:
272
+ return Q("Suspense");
273
+ case E:
274
+ return Q("SuspenseList");
275
275
  }
276
276
  if (typeof e == "object")
277
277
  switch (e.$$typeof) {
278
- case l:
279
- return qe(e.render);
280
- case _:
278
+ case s:
279
+ return Ue(e.render);
280
+ case w:
281
281
  return X(e.type, t, o);
282
- case R: {
283
- var s = e, m = s._payload, E = s._init;
282
+ case p: {
283
+ var f = e, m = f._payload, R = f._init;
284
284
  try {
285
- return X(E(m), t, o);
285
+ return X(R(m), t, o);
286
286
  } catch {
287
287
  }
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
- var H = Object.prototype.hasOwnProperty, be = {}, Ce = D.ReactDebugCurrentFrame;
292
+ var H = Object.prototype.hasOwnProperty, Ce = {}, be = D.ReactDebugCurrentFrame;
293
293
  function K(e) {
294
294
  if (e) {
295
295
  var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
296
- Ce.setExtraStackFrame(o);
296
+ be.setExtraStackFrame(o);
297
297
  } else
298
- Ce.setExtraStackFrame(null);
298
+ be.setExtraStackFrame(null);
299
299
  }
300
- function Ge(e, t, o, s, m) {
300
+ function Be(e, t, o, f, m) {
301
301
  {
302
- var E = Function.call.bind(H);
303
- for (var h in e)
304
- if (E(e, h)) {
302
+ var R = Function.call.bind(H);
303
+ for (var y in e)
304
+ if (R(e, y)) {
305
305
  var g = void 0;
306
306
  try {
307
- if (typeof e[h] != "function") {
308
- var S = Error((s || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
307
+ if (typeof e[y] != "function") {
308
+ var S = Error((f || "React class") + ": " + o + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
309
  throw S.name = "Invariant Violation", S;
310
310
  }
311
- g = e[h](t, h, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (b) {
313
- g = b;
311
+ g = e[y](t, y, f, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
+ } catch (C) {
313
+ g = C;
314
314
  }
315
- g && !(g instanceof Error) && (K(m), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", o, h, typeof g), K(null)), g instanceof Error && !(g.message in be) && (be[g.message] = !0, K(m), w("Failed %s type: %s", o, g.message), K(null));
315
+ g && !(g instanceof Error) && (K(m), _("%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).", f || "React class", o, y, typeof g), K(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, K(m), _("Failed %s type: %s", o, g.message), K(null));
316
316
  }
317
317
  }
318
318
  }
319
- var Je = Array.isArray;
319
+ var Ge = Array.isArray;
320
320
  function ne(e) {
321
- return Je(e);
321
+ return Ge(e);
322
322
  }
323
323
  function Qe(e) {
324
324
  {
@@ -326,28 +326,28 @@ function mt() {
326
326
  return o;
327
327
  }
328
328
  }
329
- function Xe(e) {
329
+ function Je(e) {
330
330
  try {
331
- return je(e), !1;
331
+ return Pe(e), !1;
332
332
  } catch {
333
333
  return !0;
334
334
  }
335
335
  }
336
- function je(e) {
336
+ function Pe(e) {
337
337
  return "" + e;
338
338
  }
339
- function Pe(e) {
340
- if (Xe(e))
341
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), je(e);
339
+ function je(e) {
340
+ if (Je(e))
341
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
342
342
  }
343
- var q = D.ReactCurrentOwner, He = {
343
+ var q = D.ReactCurrentOwner, Xe = {
344
344
  key: !0,
345
345
  ref: !0,
346
346
  __self: !0,
347
347
  __source: !0
348
348
  }, Te, Se, oe;
349
349
  oe = {};
350
- function Ke(e) {
350
+ function He(e) {
351
351
  if (H.call(e, "ref")) {
352
352
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
353
353
  if (t && t.isReactWarning)
@@ -355,7 +355,7 @@ function mt() {
355
355
  }
356
356
  return e.ref !== void 0;
357
357
  }
358
- function Ze(e) {
358
+ function Ke(e) {
359
359
  if (H.call(e, "key")) {
360
360
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
361
361
  if (t && t.isReactWarning)
@@ -363,16 +363,16 @@ function mt() {
363
363
  }
364
364
  return e.key !== void 0;
365
365
  }
366
- function et(e, t) {
366
+ function Ze(e, t) {
367
367
  if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
368
368
  var o = I(q.current.type);
369
- oe[o] || (w('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', I(q.current.type), e.ref), oe[o] = !0);
369
+ oe[o] || (_('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', I(q.current.type), e.ref), oe[o] = !0);
370
370
  }
371
371
  }
372
- function tt(e, t) {
372
+ function et(e, t) {
373
373
  {
374
374
  var o = function() {
375
- Te || (Te = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
375
+ Te || (Te = !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)", t));
376
376
  };
377
377
  o.isReactWarning = !0, Object.defineProperty(e, "key", {
378
378
  get: o,
@@ -380,10 +380,10 @@ function mt() {
380
380
  });
381
381
  }
382
382
  }
383
- function rt(e, t) {
383
+ function tt(e, t) {
384
384
  {
385
385
  var o = function() {
386
- Se || (Se = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
386
+ 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)", t));
387
387
  };
388
388
  o.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: o,
@@ -391,17 +391,17 @@ function mt() {
391
391
  });
392
392
  }
393
393
  }
394
- var nt = function(e, t, o, s, m, E, h) {
394
+ var rt = function(e, t, o, f, m, R, y) {
395
395
  var g = {
396
396
  // This tag allows us to uniquely identify this as a React Element
397
- $$typeof: r,
397
+ $$typeof: n,
398
398
  // Built-in properties that belong on the element
399
399
  type: e,
400
400
  key: t,
401
401
  ref: o,
402
- props: h,
402
+ props: y,
403
403
  // Record the component responsible for creating this element.
404
- _owner: E
404
+ _owner: R
405
405
  };
406
406
  return g._store = {}, Object.defineProperty(g._store, "validated", {
407
407
  configurable: !1,
@@ -412,7 +412,7 @@ function mt() {
412
412
  configurable: !1,
413
413
  enumerable: !1,
414
414
  writable: !1,
415
- value: s
415
+ value: f
416
416
  }), Object.defineProperty(g, "_source", {
417
417
  configurable: !1,
418
418
  enumerable: !1,
@@ -420,25 +420,25 @@ function mt() {
420
420
  value: m
421
421
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
422
422
  };
423
- function ot(e, t, o, s, m) {
423
+ function nt(e, t, o, f, m) {
424
424
  {
425
- var E, h = {}, g = null, S = null;
426
- o !== void 0 && (Pe(o), g = "" + o), Ze(t) && (Pe(t.key), g = "" + t.key), Ke(t) && (S = t.ref, et(t, m));
427
- for (E in t)
428
- H.call(t, E) && !He.hasOwnProperty(E) && (h[E] = t[E]);
425
+ var R, y = {}, g = null, S = null;
426
+ o !== void 0 && (je(o), g = "" + o), Ke(t) && (je(t.key), g = "" + t.key), He(t) && (S = t.ref, Ze(t, m));
427
+ for (R in t)
428
+ H.call(t, R) && !Xe.hasOwnProperty(R) && (y[R] = t[R]);
429
429
  if (e && e.defaultProps) {
430
- var b = e.defaultProps;
431
- for (E in b)
432
- h[E] === void 0 && (h[E] = b[E]);
430
+ var C = e.defaultProps;
431
+ for (R in C)
432
+ y[R] === void 0 && (y[R] = C[R]);
433
433
  }
434
434
  if (g || S) {
435
- var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- g && tt(h, j), S && rt(h, j);
435
+ var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
+ g && et(y, P), S && tt(y, P);
437
437
  }
438
- return nt(e, g, S, m, s, q.current, h);
438
+ return rt(e, g, S, m, f, q.current, y);
439
439
  }
440
440
  }
441
- var ae = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
441
+ var ie = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
442
442
  function V(e) {
443
443
  if (e) {
444
444
  var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
@@ -446,15 +446,15 @@ function mt() {
446
446
  } else
447
447
  xe.setExtraStackFrame(null);
448
448
  }
449
- var ie;
450
- ie = !1;
449
+ var ae;
450
+ ae = !1;
451
451
  function ue(e) {
452
- return typeof e == "object" && e !== null && e.$$typeof === r;
452
+ return typeof e == "object" && e !== null && e.$$typeof === n;
453
453
  }
454
454
  function Oe() {
455
455
  {
456
- if (ae.current) {
457
- var e = I(ae.current.type);
456
+ if (ie.current) {
457
+ var e = I(ie.current.type);
458
458
  if (e)
459
459
  return `
460
460
 
@@ -463,7 +463,7 @@ Check the render method of \`` + e + "`.";
463
463
  return "";
464
464
  }
465
465
  }
466
- function at(e) {
466
+ function ot(e) {
467
467
  {
468
468
  if (e !== void 0) {
469
469
  var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
@@ -496,8 +496,8 @@ Check the top-level render call using <` + o + ">.");
496
496
  if (Ae[o])
497
497
  return;
498
498
  Ae[o] = !0;
499
- var s = "";
500
- e && e._owner && e._owner !== ae.current && (s = " It was passed a child from " + I(e._owner.type) + "."), V(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), V(null);
499
+ var f = "";
500
+ e && e._owner && e._owner !== ie.current && (f = " It was passed a child from " + I(e._owner.type) + "."), V(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, f), V(null);
501
501
  }
502
502
  }
503
503
  function ke(e, t) {
@@ -506,20 +506,20 @@ Check the top-level render call using <` + o + ">.");
506
506
  return;
507
507
  if (ne(e))
508
508
  for (var o = 0; o < e.length; o++) {
509
- var s = e[o];
510
- ue(s) && De(s, t);
509
+ var f = e[o];
510
+ ue(f) && De(f, t);
511
511
  }
512
512
  else if (ue(e))
513
513
  e._store && (e._store.validated = !0);
514
514
  else if (e) {
515
515
  var m = T(e);
516
516
  if (typeof m == "function" && m !== e.entries)
517
- for (var E = m.call(e), h; !(h = E.next()).done; )
518
- ue(h.value) && De(h.value, t);
517
+ for (var R = m.call(e), y; !(y = R.next()).done; )
518
+ ue(y.value) && De(y.value, t);
519
519
  }
520
520
  }
521
521
  }
522
- function ut(e) {
522
+ function at(e) {
523
523
  {
524
524
  var t = e.type;
525
525
  if (t == null || typeof t == "string")
@@ -527,73 +527,73 @@ Check the top-level render call using <` + o + ">.");
527
527
  var o;
528
528
  if (typeof t == "function")
529
529
  o = t.propTypes;
530
- else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
530
+ else if (typeof t == "object" && (t.$$typeof === s || // Note: Memo only checks outer props here.
531
531
  // Inner props are checked in the reconciler.
532
- t.$$typeof === _))
532
+ t.$$typeof === w))
533
533
  o = t.propTypes;
534
534
  else
535
535
  return;
536
536
  if (o) {
537
- var s = I(t);
538
- Ge(o, e.props, "prop", s, e);
539
- } else if (t.PropTypes !== void 0 && !ie) {
540
- ie = !0;
537
+ var f = I(t);
538
+ Be(o, e.props, "prop", f, e);
539
+ } else if (t.PropTypes !== void 0 && !ae) {
540
+ ae = !0;
541
541
  var m = I(t);
542
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
542
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
543
543
  }
544
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
544
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
545
  }
546
546
  }
547
- function ct(e) {
547
+ function ut(e) {
548
548
  {
549
549
  for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
550
- var s = t[o];
551
- if (s !== "children" && s !== "key") {
552
- V(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), V(null);
550
+ var f = t[o];
551
+ if (f !== "children" && f !== "key") {
552
+ V(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), V(null);
553
553
  break;
554
554
  }
555
555
  }
556
- e.ref !== null && (V(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
556
+ e.ref !== null && (V(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
557
557
  }
558
558
  }
559
- function Ie(e, t, o, s, m, E) {
559
+ function Ie(e, t, o, f, m, R) {
560
560
  {
561
- var h = Le(e);
562
- if (!h) {
561
+ var y = We(e);
562
+ if (!y) {
563
563
  var g = "";
564
564
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var S = at(m);
565
+ var S = ot(m);
566
566
  S ? g += S : g += Oe();
567
- var b;
568
- e === null ? b = "null" : ne(e) ? b = "array" : e !== void 0 && e.$$typeof === r ? (b = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, g);
567
+ var C;
568
+ e === null ? C = "null" : ne(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : C = 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", C, g);
569
569
  }
570
- var j = ot(e, t, o, m, E);
571
- if (j == null)
572
- return j;
573
- if (h) {
570
+ var P = nt(e, t, o, m, R);
571
+ if (P == null)
572
+ return P;
573
+ if (y) {
574
574
  var O = t.children;
575
575
  if (O !== void 0)
576
- if (s)
576
+ if (f)
577
577
  if (ne(O)) {
578
- for (var M = 0; M < O.length; M++)
579
- ke(O[M], e);
578
+ for (var z = 0; z < O.length; z++)
579
+ ke(O[z], e);
580
580
  Object.freeze && Object.freeze(O);
581
581
  } else
582
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
582
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
583
  else
584
584
  ke(O, e);
585
585
  }
586
- return e === i ? ct(j) : ut(j), j;
586
+ return e === a ? ut(P) : at(P), P;
587
587
  }
588
588
  }
589
- function st(e, t, o) {
589
+ function ct(e, t, o) {
590
590
  return Ie(e, t, o, !0);
591
591
  }
592
- function lt(e, t, o) {
592
+ function st(e, t, o) {
593
593
  return Ie(e, t, o, !1);
594
594
  }
595
- var ft = lt, dt = st;
596
- B.Fragment = i, B.jsx = ft, B.jsxs = dt;
595
+ var lt = st, ft = ct;
596
+ B.Fragment = a, B.jsx = lt, B.jsxs = ft;
597
597
  }()), B;
598
598
  }
599
599
  var G = {};
@@ -607,88 +607,90 @@ var G = {};
607
607
  * LICENSE file in the root directory of this source tree.
608
608
  */
609
609
  var Ye;
610
- function pt() {
610
+ function mt() {
611
611
  if (Ye)
612
612
  return G;
613
613
  Ye = 1;
614
- var n = We, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
- function d(c, l, y) {
616
- var p, _ = {}, R = null, u = null;
617
- y !== void 0 && (R = "" + y), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (u = l.ref);
618
- for (p in l)
619
- i.call(l, p) && !v.hasOwnProperty(p) && (_[p] = l[p]);
614
+ var r = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
615
+ function v(c, s, h) {
616
+ var E, w = {}, p = null, u = null;
617
+ h !== void 0 && (p = "" + h), s.key !== void 0 && (p = "" + s.key), s.ref !== void 0 && (u = s.ref);
618
+ for (E in s)
619
+ a.call(s, E) && !d.hasOwnProperty(E) && (w[E] = s[E]);
620
620
  if (c && c.defaultProps)
621
- for (p in l = c.defaultProps, l)
622
- _[p] === void 0 && (_[p] = l[p]);
623
- return { $$typeof: r, type: c, key: R, ref: u, props: _, _owner: f.current };
621
+ for (E in s = c.defaultProps, s)
622
+ w[E] === void 0 && (w[E] = s[E]);
623
+ return { $$typeof: n, type: c, key: p, ref: u, props: w, _owner: l.current };
624
624
  }
625
- return G.Fragment = a, G.jsx = d, G.jsxs = d, G;
625
+ return G.Fragment = i, G.jsx = v, G.jsxs = v, G;
626
626
  }
627
- process.env.NODE_ENV === "production" ? se.exports = pt() : se.exports = mt();
627
+ process.env.NODE_ENV === "production" ? se.exports = mt() : se.exports = ht();
628
628
  var F = se.exports;
629
- const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: a }) => {
630
- const i = le(
629
+ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
630
+ const a = le(
631
631
  () => ({
632
- apiURL: r,
633
- libraries: a
632
+ apiURL: n,
633
+ libraries: i
634
634
  }),
635
- [r, a]
635
+ [n, i]
636
636
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: i, children: n });
638
- }, Tt = ({
639
- Fallback: n,
640
- isLogged: r,
641
- loginPath: a = "/login",
642
- localStorageKey: i = "user",
643
- redirect401Path: f = "/login",
644
- ...v
637
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: r });
638
+ }, Ot = ({
639
+ Fallback: r,
640
+ isLogged: n,
641
+ loginPath: i = "/login",
642
+ localStorageKey: a = "user",
643
+ redirect401Path: l = "/login",
644
+ ...d
645
645
  }) => {
646
- var w, Y, N, W;
647
- const { libraries: d } = k(A), c = (v == null ? void 0 : v.axios) || (d == null ? void 0 : d.axios), l = (v == null ? void 0 : v.reactRouter) || (d == null ? void 0 : d.reactRouter);
648
- if (!l)
646
+ var _, Y, N, W;
647
+ const { libraries: v } = k(A), c = (d == null ? void 0 : d.axios) || (v == null ? void 0 : v.axios), s = (d == null ? void 0 : d.reactRouter) || (v == null ? void 0 : v.reactRouter);
648
+ if (!s)
649
649
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
650
  if (!c)
651
651
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [y, p] = gt(null), { useLocation: _, Navigate: R, Outlet: u } = l, P = _(), x = ht(!1), T = typeof r == "function" ? r() : !!r, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
652
+ const [h, E] = vt(null), { useLocation: w, Navigate: p, Outlet: u } = s, j = w(), x = gt(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
653
653
  return Z(() => {
654
654
  x.current || (x.current = !0, c == null || c.interceptors.response.use(
655
- (C) => C,
656
- async (C) => {
657
- var z;
658
- return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((z = C == null ? void 0 : C.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(i), p(f)), Promise.reject(C);
655
+ (b) => b,
656
+ async (b) => {
657
+ var M;
658
+ 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 && ((M = b == null ? void 0 : b.response) == null ? void 0 : M.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), E(l)), Promise.reject(b);
659
659
  }
660
660
  ));
661
- }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, i, f]), D && !y ? /* @__PURE__ */ F.jsx(yt, { fallback: n, children: (Y = (w = P.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = P.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === a ? /* @__PURE__ */ F.jsx(R, { to: P.state.from.state.from.pathname + P.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: a, state: { from: P }, replace: !0 });
662
- }, St = ({ ...n }) => {
663
- const { libraries: r } = k(A), a = (n == null ? void 0 : n.reactRouter) || (r == null ? void 0 : r.reactRouter), i = (n == null ? void 0 : n.gtm) || (r == null ? void 0 : r.gtm);
664
- if (a === void 0)
665
- throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
661
+ }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, l]), D && !h ? /* @__PURE__ */ F.jsx(yt, { fallback: r, children: (Y = (_ = j.state) == null ? void 0 : _.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(p, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(p, { to: i, state: { from: j }, replace: !0 });
662
+ }, At = ({ ...r }) => {
663
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.reactRouter) || (n == null ? void 0 : n.reactRouter), a = (r == null ? void 0 : r.gtm) || (n == null ? void 0 : n.gtm);
666
664
  if (!i)
667
- throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
668
- const { useGoogleTagManager: f } = i, { useLocation: v, Outlet: d } = a, { pathname: c } = v(), { sendEvent: l } = f();
665
+ throw new Error(
666
+ "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
667
+ );
668
+ if (!a)
669
+ throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
670
+ const { useGoogleTagManager: l } = a, { useLocation: d, Outlet: v } = i, { pathname: c } = d(), { sendEvent: s } = l();
669
671
  return Z(() => {
670
- l({ event: "pageView", pathname: c });
671
- }, [c, l]), /* @__PURE__ */ F.jsx(d, {});
672
- }, xt = ({
673
- tokenTypeKey: n = "tokenType",
674
- userLocalStorageKey: r = "user",
675
- tokenKey: a = "accessToken",
676
- postContentType: i = "application/json",
677
- ...f
672
+ s({ event: "pageView", pathname: c });
673
+ }, [c, s]), /* @__PURE__ */ F.jsx(v, {});
674
+ }, Dt = ({
675
+ tokenTypeKey: r = "tokenType",
676
+ userLocalStorageKey: n = "user",
677
+ tokenKey: i = "accessToken",
678
+ postContentType: a = "application/json",
679
+ ...l
678
680
  }) => {
679
- const { apiURL: v = f.apiURL, libraries: d } = k(A), c = (f == null ? void 0 : f.axios) || (d == null ? void 0 : d.axios);
681
+ const { apiURL: d = l.apiURL, libraries: v } = k(A), c = (l == null ? void 0 : l.axios) || (v == null ? void 0 : v.axios);
680
682
  if (!c)
681
683
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
682
684
  if (!(c != null && c.defaults))
683
685
  return null;
684
- const l = localStorage.getItem(r), y = l ? JSON.parse(l) : null, p = y != null && y[n] ? y[n] : null, _ = y != null && y[a] ? y[a] : null, R = l ? `${p} ${_}` : null;
685
- return c.defaults.baseURL = v, c.defaults.headers.post["Content-Type"] = i, R && (c.defaults.headers.common.Authorization = R), null;
686
- }, Ot = ({ debug: n, resources: r, ...a }) => {
687
- const { libraries: i } = k(A), f = (a == null ? void 0 : a.i18) || (i == null ? void 0 : i.i18), { i18next: v, initReactI18next: d, languageDetector: c } = f || {};
688
- if (!f)
686
+ const s = localStorage.getItem(n), h = s ? JSON.parse(s) : null, E = h != null && h[r] ? h[r] : null, w = h != null && h[i] ? h[i] : null, p = s ? `${E} ${w}` : null;
687
+ return c.defaults.baseURL = d, c.defaults.headers.post["Content-Type"] = a, p && (c.defaults.headers.common.Authorization = p), null;
688
+ }, kt = ({ debug: r, resources: n, ...i }) => {
689
+ const { libraries: a } = k(A), l = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: d, initReactI18next: v, languageDetector: c } = l || {};
690
+ if (!l)
689
691
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
690
- return v != null && v.isInitialized || (v.use(c).use(d).init({
691
- debug: n,
692
+ return d != null && d.isInitialized || (d.use(c).use(v).init({
693
+ debug: r,
692
694
  fallbackLng: "en",
693
695
  interpolation: {
694
696
  escapeValue: !1
@@ -698,217 +700,232 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: a }) => {
698
700
  bindI18n: !1,
699
701
  useSuspense: !0
700
702
  },
701
- resources: r,
703
+ resources: n,
702
704
  returnNull: !1
703
705
  }).then(() => {
704
- document.documentElement.lang !== v.resolvedLanguage && v.resolvedLanguage && document.documentElement.setAttribute("lang", v.resolvedLanguage);
705
- }), v.on("languageChanged", (l) => {
706
- document.documentElement.setAttribute("lang", l);
706
+ document.documentElement.lang !== d.resolvedLanguage && d.resolvedLanguage && document.documentElement.setAttribute("lang", d.resolvedLanguage);
707
+ }), d.on("languageChanged", (s) => {
708
+ document.documentElement.setAttribute("lang", s);
707
709
  })), null;
708
- }, At = ({
709
- dsn: n,
710
- integrations: r,
711
- tracesSampleRate: a,
712
- replaysSessionSampleRate: i,
713
- replaysOnErrorSampleRate: f,
714
- tracePropagationTargets: v,
715
- ignoreErrors: d,
710
+ }, It = ({
711
+ dsn: r,
712
+ integrations: n,
713
+ tracesSampleRate: i,
714
+ replaysSessionSampleRate: a,
715
+ replaysOnErrorSampleRate: l,
716
+ tracePropagationTargets: d,
717
+ ignoreErrors: v,
716
718
  debug: c,
717
- environment: l,
718
- ...y
719
+ environment: s,
720
+ ...h
719
721
  }) => {
720
- const { libraries: p } = k(A), _ = (y == null ? void 0 : y.sentry) || (p == null ? void 0 : p.sentry), R = (y == null ? void 0 : y.reactRouter) || (p == null ? void 0 : p.reactRouter), { createRoutesFromChildren: u, matchRoutes: P, useLocation: x, useNavigationType: T } = R;
721
- if (!_)
722
+ const { libraries: E } = k(A), w = (h == null ? void 0 : h.sentry) || (E == null ? void 0 : E.sentry), p = (h == null ? void 0 : h.reactRouter) || (E == null ? void 0 : E.reactRouter);
723
+ if (!w)
722
724
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
723
- if (!R)
725
+ if (!p)
724
726
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
- return _.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && _.init({
727
+ if (w.isInitialized())
728
+ return null;
729
+ const { createRoutesFromChildren: u, matchRoutes: j, useLocation: x, useNavigationType: T } = p;
730
+ return (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
726
731
  debug: c,
727
- dsn: n,
728
- environment: l || "production",
729
- ignoreErrors: [...d || [], /dynamically imported module/],
732
+ dsn: r,
733
+ environment: s || "production",
734
+ ignoreErrors: [...v || [], /dynamically imported module/],
730
735
  integrations: [
731
- _.reactRouterV6BrowserTracingIntegration({
736
+ w.reactRouterV6BrowserTracingIntegration({
732
737
  createRoutesFromChildren: u,
733
- matchRoutes: P,
738
+ matchRoutes: j,
734
739
  useEffect: Z,
735
740
  useLocation: x,
736
741
  useNavigationType: T
737
742
  }),
738
- ...r || []
743
+ ...n || []
739
744
  ],
740
- replaysOnErrorSampleRate: f || 1,
741
- replaysSessionSampleRate: i || 0.1,
742
- tracePropagationTargets: v,
743
- tracesSampleRate: a || 1
745
+ replaysOnErrorSampleRate: l || 1,
746
+ replaysSessionSampleRate: a || 0.1,
747
+ tracePropagationTargets: d,
748
+ tracesSampleRate: i || 1
744
749
  }), null;
745
- }, Dt = ({ IMaskMixin: n, ...r }) => {
746
- const a = le(
750
+ }, $t = ({ IMaskMixin: r, ...n }) => {
751
+ const i = le(
747
752
  // eslint-disable-next-line react/jsx-props-no-spreading
748
- () => n(({ TextField: i, ...f }) => /* @__PURE__ */ F.jsx(i, { ...f })),
749
- [n]
753
+ () => r(({ TextField: a, ...l }) => /* @__PURE__ */ F.jsx(a, { ...l })),
754
+ [r]
750
755
  );
751
- return /* @__PURE__ */ F.jsx(a, { ...r });
752
- }, kt = ({ accessToken: n, ...r }) => {
753
- const { libraries: a } = k(A), i = (r == null ? void 0 : r.mapbox) || (a == null ? void 0 : a.mapbox);
754
- if (!i)
756
+ return /* @__PURE__ */ F.jsx(i, { ...n });
757
+ }, Ft = ({ accessToken: r, ...n }) => {
758
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
759
+ if (!a)
755
760
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
756
- return n && (i.accessToken = n), null;
757
- }, It = ({ language: n, ...r }) => {
758
- const { libraries: a } = k(A), i = (r == null ? void 0 : r.dayjs) || (a == null ? void 0 : a.dayjs), f = (r == null ? void 0 : r.dayjsPlugin) || (a == null ? void 0 : a.dayjsPlugin);
759
- if (!i)
760
- throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
761
+ return r && (a.accessToken = r), null;
762
+ }, Yt = ({ language: r, ...n }) => {
763
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), l = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
764
+ if (!a)
765
+ throw new Error(
766
+ "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
767
+ );
761
768
  return Z(() => {
762
769
  (async () => {
763
770
  var c;
764
- const d = n || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
765
- f && f.forEach((l) => {
766
- i.extend(l.default);
767
- }), i.locale(d);
771
+ const v = r || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
772
+ if (l && l.forEach((s) => {
773
+ s && a.extend(s);
774
+ }), v === "fr") {
775
+ const s = await import("dayjs/locale/fr");
776
+ a.locale(s.default);
777
+ }
768
778
  })().then();
769
- }, [i, f, n]), null;
770
- }, $t = ({
771
- children: n,
772
- defaultQueriesOptions: r,
773
- defaultMutationsOptions: a,
774
- ...i
779
+ }, [a, l, r]), null;
780
+ }, Et = (r) => r && typeof r == "function", Rt = (r) => r && typeof r == "function", Nt = ({
781
+ children: r,
782
+ defaultQueriesOptions: n,
783
+ defaultMutationsOptions: i,
784
+ ...a
775
785
  }) => {
776
- var l, y;
777
- const { libraries: f } = k(A), v = (i == null ? void 0 : i.QueryClient) || ((l = f == null ? void 0 : f.reactQuery) == null ? void 0 : l.QueryClient), d = (i == null ? void 0 : i.QueryClientProvider) || ((y = f == null ? void 0 : f.reactQuery) == null ? void 0 : y.QueryClientProvider);
778
- if (v === void 0)
786
+ var s, h;
787
+ const { libraries: l } = k(A), d = (a == null ? void 0 : a.QueryClient) || ((s = l == null ? void 0 : l.reactQuery) == null ? void 0 : s.QueryClient), v = (a == null ? void 0 : a.QueryClientProvider) || ((h = l == null ? void 0 : l.reactQuery) == null ? void 0 : h.QueryClientProvider);
788
+ if (!d)
779
789
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
780
- if (d === void 0)
790
+ if (!v)
781
791
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
782
- const c = new v({
792
+ if (!Et(v))
793
+ throw new Error("Provided QueryClientProvider dependencies are not valid.");
794
+ if (!Rt(d))
795
+ throw new Error("Provided QueryClient dependencies are not valid.");
796
+ const c = new d({
783
797
  defaultOptions: {
784
798
  mutations: {
785
- ...a
799
+ ...i
786
800
  },
787
801
  queries: {
788
- getNextPageParam: (p, _, R) => p.length + (R || 0),
802
+ getNextPageParam: (E, w, p) => E.length + (p || 0),
789
803
  refetchOnWindowFocus: !1,
790
804
  retry: 3,
791
- ...r
805
+ ...n
792
806
  }
793
807
  }
794
808
  });
795
- return /* @__PURE__ */ F.jsx(d, { client: c, children: n });
796
- }, Ft = (n) => {
797
- var y, p, _;
798
- const { libraries: r } = k(A), a = (n == null ? void 0 : n.i18) || (r == null ? void 0 : r.i18), i = ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction) || ((p = r == null ? void 0 : r.i18) == null ? void 0 : p.translateFunction), f = ((_ = a == null ? void 0 : a.i18next) == null ? void 0 : _.t) || i || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = n || {}, d = f(v), c = ce(
799
- (R) => {
800
- var P, x, T, D, w, Y, N, W, C;
801
- const { response: u } = R || {};
802
- return u != null && u.reason ? String(u.reason) : (P = u == null ? void 0 : u.data) != null && P.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(u.data.detail[0].msg) : d;
809
+ return /* @__PURE__ */ F.jsx(v, { client: c, children: r });
810
+ }, Wt = (r) => {
811
+ var h, E, w;
812
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.i18) || (n == null ? void 0 : n.i18), a = ((h = r == null ? void 0 : r.i18) == null ? void 0 : h.translateFunction) || ((E = n == null ? void 0 : n.i18) == null ? void 0 : E.translateFunction), l = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || a || ((p) => p), { unknownErrorTranslationKey: d = "error.unknownError" } = r || {}, v = l(d), c = ce(
813
+ (p) => {
814
+ var j, x, T, D, _, Y, N, W, b;
815
+ const { response: u } = p || {};
816
+ return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((b = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : v;
803
817
  },
804
- [d]
818
+ [v]
805
819
  );
806
- return { getErrorCode: ce((R) => {
807
- var P, x, T;
808
- const { response: u } = R || {};
809
- return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (P = u == null ? void 0 : u.data) != null && P.error_code ? String((x = u == null ? void 0 : u.data) == null ? void 0 : x.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
820
+ return { getErrorCode: ce((p) => {
821
+ var j, x, T;
822
+ const { response: u } = p || {};
823
+ return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String((x = u == null ? void 0 : u.data) == null ? void 0 : x.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
810
824
  }, []), printError: c };
811
- }, Yt = ({
812
- data: n,
813
- fetchNextPage: r,
814
- isFetchingNextPage: a,
815
- isInitialLoading: i,
816
- isLoading: f,
817
- enabled: v = !0
825
+ }, Lt = ({
826
+ data: r,
827
+ fetchNextPage: n,
828
+ isFetchingNextPage: i,
829
+ isInitialLoading: a,
830
+ isLoading: l,
831
+ enabled: d = !0
818
832
  }) => {
819
- const d = ce(
820
- async (l) => {
821
- a || !v || await r({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
833
+ const v = ce(
834
+ async (s) => {
835
+ i || !d || await n({ pageParam: (s == null ? void 0 : s.pageParam) || s.visibleRowsCount });
822
836
  },
823
- [v, r, a]
837
+ [d, n, i]
824
838
  ), c = le(() => {
825
- if (n)
826
- return n.pages.reduce((l, y) => [...l, ...y], []);
827
- }, [n]);
839
+ if (r)
840
+ return r.pages.reduce((s, h) => [...s, ...h], []);
841
+ }, [r]);
828
842
  return {
829
- fetchNextPageOnRowsScrollEnd: d,
830
- isLoading: a || f,
831
- loadingVariant: i ? "skeleton" : "linear",
843
+ fetchNextPageOnRowsScrollEnd: v,
844
+ isLoading: i || l,
845
+ loadingVariant: a ? "skeleton" : "linear",
832
846
  rows: c
833
847
  };
834
- }, Nt = (n) => {
835
- const { libraries: r } = k(A), a = (n == null ? void 0 : n.axios) || (r == null ? void 0 : r.axios);
836
- if (a === void 0)
848
+ }, Vt = (r) => {
849
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.axios) || (n == null ? void 0 : n.axios);
850
+ if (!i)
837
851
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
838
852
  return {
839
853
  clearAuthenticationToken: () => {
840
- a.defaults.headers.common.Authorization = null;
854
+ i.defaults.headers.common.Authorization = null;
841
855
  },
842
- setAuthenticationToken: ({ tokenType: v, accessToken: d }) => {
843
- a.defaults.headers.common.Authorization = `${v} ${d}`;
856
+ setAuthenticationToken: ({ tokenType: d, accessToken: v }) => {
857
+ i.defaults.headers.common.Authorization = `${d} ${v}`;
844
858
  }
845
859
  };
846
- }, Et = (n, r = "km") => {
847
- const a = Number(n);
848
- return Number.isNaN(a) ? `0 ${r}` : `${a.toFixed(2)} ${r}`;
849
- }, Rt = (n) => {
850
- const r = n && typeof n == "object" && "pathname" in n && n.pathname ? n.pathname : n;
851
- return typeof r == "string" ? r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}` : r;
852
- }, Ne = (n, r) => {
853
- if (!n)
854
- return "";
855
- const a = Rt(n), i = typeof n == "object" && "pathname" in n ? `${n.origin}${a}` : n;
856
- return typeof r == "number" ? `${i.replace("/files", `/thumbs/${r}`)}` : i;
857
- }, Wt = (n) => {
858
- const { apiURL: r, libraries: a } = k(A), i = (n == null ? void 0 : n.dayjs) || (a == null ? void 0 : a.dayjs);
860
+ }, pt = ({ library: r, date: n, format: i = "ll" }) => r(n).format(i), wt = (r, n = "km") => {
861
+ const i = Number(r);
862
+ return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
863
+ }, _t = (r) => r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}`, Ct = ({ path: r, size: n, apiURL: i }) => {
864
+ const a = _t(r), l = `${i}${a}`;
865
+ return typeof n == "number" ? `${l.replace("/files", `/thumbs/${n}`)}` : l;
866
+ }, zt = (r) => {
867
+ const { apiURL: n, libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
859
868
  return {
860
- dateAdapter: (d, c = "ll") => {
861
- if (i === void 0)
869
+ dateAdapter: (v, c) => {
870
+ if (!a)
862
871
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
863
- return i(d).format(c);
872
+ return pt({
873
+ date: v,
874
+ format: c,
875
+ library: a
876
+ });
864
877
  },
865
- distanceAdapter: Et,
866
- filePathAdapter: (d, c) => Ne(
867
- r && typeof d == "string" ? {
868
- origin: r,
869
- pathname: d
870
- } : d,
871
- c
872
- )
878
+ distanceAdapter: wt,
879
+ filePathAdapter: (v, c) => {
880
+ if (!n)
881
+ throw new Error(
882
+ "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
883
+ );
884
+ return Ct({
885
+ apiURL: n,
886
+ path: v,
887
+ size: c
888
+ });
889
+ }
873
890
  };
874
- }, _t = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), wt = (n) => {
875
- const i = n.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
876
- return i.charAt(0).toLowerCase() + i.slice(1);
877
- }, bt = (n, r, a) => {
878
- const i = wt(r), f = _t(a);
879
- return `${i}${f}`;
880
- }, Ct = (n) => {
881
- if (n)
882
- return (n == null ? void 0 : n.reduce((r, a) => (r[a] = {
891
+ }, bt = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), Pt = (r) => {
892
+ const a = r.split("/").filter((l) => l.length > 0).map((l) => l.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("")).join("");
893
+ return a.charAt(0).toLowerCase() + a.slice(1);
894
+ }, jt = (r, n, i) => {
895
+ const a = Pt(n), l = bt(i);
896
+ return `${a}${l}`;
897
+ }, Tt = (r) => {
898
+ if (r)
899
+ return (r == null ? void 0 : r.reduce((n, i) => (n[i] = {
883
900
  query: {
884
901
  useInfinite: !0,
885
902
  useInfiniteQueryParam: "offset",
886
903
  useQuery: !0
887
904
  }
888
- }, r), {})) || {};
889
- }, Lt = (n) => {
890
- const { input: r = "./openapi.json", operationsToGenerateInfiniteQueryHook: a = void 0 } = n || {};
905
+ }, n), {})) || {};
906
+ }, Mt = (r) => {
907
+ const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = r || {};
891
908
  return {
892
909
  api: {
893
910
  hooks: {
894
911
  afterAllFilesWrite: "prettier src/api/ --write"
895
912
  },
896
- input: r,
913
+ input: n,
897
914
  output: {
898
915
  client: "react-query",
899
916
  mode: "tags-split",
900
917
  override: {
901
- header: (i) => [
918
+ header: (a) => [
902
919
  "Generated by orval 🍺",
903
- ...i.title ? [i.title] : [],
904
- ...i.description ? [i.description] : []
920
+ ...a.title ? [a.title] : [],
921
+ ...a.description ? [a.description] : []
905
922
  ],
906
923
  mutator: {
907
924
  name: "axiosCustomInstance",
908
925
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
909
926
  },
910
- operationName: bt,
911
- ...(a == null ? void 0 : a.length) && { operations: Ct(a) },
927
+ operationName: jt,
928
+ ...(i == null ? void 0 : i.length) && { operations: Tt(i) },
912
929
  query: {
913
930
  useQuery: !0
914
931
  }
@@ -918,24 +935,24 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: a }) => {
918
935
  }
919
936
  }
920
937
  };
921
- }, Vt = (n, r, a = "ll") => String(n(r).format(a));
938
+ };
922
939
  export {
923
- St as GTMSendPageView,
924
- xt as InitializeAxiosConfig,
925
- It as InitializeDaysJSConfig,
926
- Ot as InitializeI18nConfig,
927
- kt as InitializeMapBoxConfig,
928
- At as InitializeSentryConfig,
940
+ At as GTMSendPageView,
941
+ Dt as InitializeAxiosConfig,
942
+ Yt as InitializeDaysJSConfig,
943
+ kt as InitializeI18nConfig,
944
+ Ft as InitializeMapBoxConfig,
945
+ It as InitializeSentryConfig,
929
946
  A as InjectDependenciesContext,
930
- Pt as InjectDependenciesProvider,
931
- Dt as MaskTextField,
932
- $t as QueryClientProviderWithConfig,
933
- Tt as RequireAuth,
934
- Vt as dateAdapter,
935
- Et as distanceAdapter,
936
- Lt as getOrvalConfig,
937
- Wt as useAdapter,
938
- Nt as useAuth,
939
- Yt as useInfiniteDataGrid,
940
- Ft as useResponseError
947
+ xt as InjectDependenciesProvider,
948
+ $t as MaskTextField,
949
+ Nt as QueryClientProviderWithConfig,
950
+ Ot as RequireAuth,
951
+ pt as dateAdapter,
952
+ wt as distanceAdapter,
953
+ Mt as getOrvalConfig,
954
+ zt as useAdapter,
955
+ Vt as useAuth,
956
+ Lt as useInfiniteDataGrid,
957
+ Wt as useResponseError
941
958
  };