@tracktor/shared-module 2.0.0-beta.2 → 2.0.0-beta.4

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