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