@tracktor/shared-module 0.17.2 → 0.18.0

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