@tracktor/shared-module 2.2.2 → 2.3.1

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