@tracktor/shared-module 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v2.0.4
4
- - **[fix]** - dependencies improvement
3
+ ## v2.1.0
4
+ - **[feat]** - orval - add possibility to provide array of input
@@ -1,9 +1,9 @@
1
1
  interface CustomOrvalConfig {
2
2
  /**
3
- * Path to the openapi file
3
+ * Path to the openapi file(s)
4
4
  * @default "./openapi.json"
5
5
  */
6
- input?: string;
6
+ input?: string | string[];
7
7
  /**
8
8
  * List of operations to use infinite query
9
9
  */
@@ -29,34 +29,5 @@ export declare const getOrvalOperationName: (_: any, route: string, method: stri
29
29
  /**
30
30
  * Get the orval config required for the generation
31
31
  */
32
- export declare const getOrvalConfig: (config?: CustomOrvalConfig) => {
33
- readonly api: {
34
- readonly hooks: {
35
- readonly afterAllFilesWrite: "prettier src/api/ --write";
36
- };
37
- readonly input: string;
38
- readonly output: {
39
- readonly client: "react-query";
40
- readonly mode: "tags-split";
41
- readonly override: {
42
- readonly query: {
43
- readonly useQuery: true;
44
- };
45
- readonly operations?: Record<string, {}> | undefined;
46
- readonly header: (info: {
47
- title: string;
48
- description?: string;
49
- version: string;
50
- }) => string[];
51
- readonly mutator: {
52
- readonly name: "axiosCustomInstance";
53
- readonly path: `${string}/config/orval/mutator/axiosCustomInstance.ts`;
54
- };
55
- readonly operationName: (_: any, route: string, method: string) => string;
56
- };
57
- readonly schemas: "src/api/model";
58
- readonly target: "src/api/services/api.ts";
59
- };
60
- };
61
- };
32
+ export declare const getOrvalConfig: (config?: CustomOrvalConfig) => Record<string, any>;
62
33
  export default getOrvalConfig;
package/dist/main.js CHANGED
@@ -12,45 +12,45 @@ var se = { exports: {} }, B = {};
12
12
  var Fe;
13
13
  function ht() {
14
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"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
15
+ var t = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
16
16
  function T(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
- var t = j && e[j] || e[x];
20
- return typeof t == "function" ? t : null;
19
+ var r = j && e[j] || e[x];
20
+ return typeof r == "function" ? r : null;
21
21
  }
22
- var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
22
+ var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
23
  function _(e) {
24
24
  {
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];
25
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
26
+ o[v - 1] = arguments[v];
27
27
  Y("error", e, o);
28
28
  }
29
29
  }
30
- function Y(e, t, o) {
30
+ function Y(e, r, o) {
31
31
  {
32
- var f = D.ReactDebugCurrentFrame, m = f.getStackAddendum();
33
- m !== "" && (t += "%s", o = o.concat([m]));
32
+ var v = D.ReactDebugCurrentFrame, m = v.getStackAddendum();
33
+ m !== "" && (r += "%s", o = o.concat([m]));
34
34
  var p = o.map(function(y) {
35
35
  return String(y);
36
36
  });
37
- p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
37
+ p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
38
38
  }
39
39
  }
40
40
  var N = !1, W = !1, b = !1, fe = !1, de = !1, M;
41
41
  M = Symbol.for("react.module.reference");
42
42
  function We(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || de || e === s || e === h || e === E || fe || e === u || N || W || b || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === v || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
43
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === d || de || e === s || e === h || e === E || fe || e === a || N || W || b || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === l || e.$$typeof === c || e.$$typeof === f || // 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
47
  e.$$typeof === M || e.getModuleId !== void 0));
48
48
  }
49
- function Le(e, t, o) {
50
- var f = e.displayName;
51
- if (f)
52
- return f;
53
- var m = t.displayName || t.name || "";
49
+ function Le(e, r, o) {
50
+ var v = e.displayName;
51
+ if (v)
52
+ return v;
53
+ var m = r.displayName || r.name || "";
54
54
  return m !== "" ? o + "(" + m + ")" : o;
55
55
  }
56
56
  function ve(e) {
@@ -64,7 +64,7 @@ function ht() {
64
64
  if (typeof e == "string")
65
65
  return e;
66
66
  switch (e) {
67
- case a:
67
+ case u:
68
68
  return "Fragment";
69
69
  case i:
70
70
  return "Portal";
@@ -80,16 +80,16 @@ function ht() {
80
80
  if (typeof e == "object")
81
81
  switch (e.$$typeof) {
82
82
  case c:
83
- var t = e;
84
- return ve(t) + ".Consumer";
85
- case v:
83
+ var r = e;
84
+ return ve(r) + ".Consumer";
85
+ case l:
86
86
  var o = e;
87
87
  return ve(o._context) + ".Provider";
88
- case l:
88
+ case f:
89
89
  return Le(e, e.render, "ForwardRef");
90
90
  case w:
91
- var f = e.displayName || null;
92
- return f !== null ? f : I(e.type) || "Memo";
91
+ var v = e.displayName || null;
92
+ return v !== null ? v : I(e.type) || "Memo";
93
93
  case R: {
94
94
  var m = e, p = m._payload, y = m._init;
95
95
  try {
@@ -105,7 +105,7 @@ function ht() {
105
105
  function we() {
106
106
  }
107
107
  we.__reactDisabledLog = !0;
108
- function Ve() {
108
+ function ze() {
109
109
  {
110
110
  if (U === 0) {
111
111
  ge = console.log, ye = console.info, he = console.warn, me = console.error, Ee = console.group, pe = console.groupCollapsed, Re = console.groupEnd;
@@ -128,7 +128,7 @@ function ht() {
128
128
  U++;
129
129
  }
130
130
  }
131
- function ze() {
131
+ function Ve() {
132
132
  {
133
133
  if (U--, U === 0) {
134
134
  var e = {
@@ -164,14 +164,14 @@ function ht() {
164
164
  }
165
165
  }
166
166
  var ee = D.ReactCurrentDispatcher, te;
167
- function Q(e, t, o) {
167
+ function Q(e, r, o) {
168
168
  {
169
169
  if (te === void 0)
170
170
  try {
171
171
  throw Error();
172
172
  } catch (m) {
173
- var f = m.stack.trim().match(/\n( *(at )?)/);
174
- te = f && f[1] || "";
173
+ var v = m.stack.trim().match(/\n( *(at )?)/);
174
+ te = v && v[1] || "";
175
175
  }
176
176
  return `
177
177
  ` + te + e;
@@ -182,7 +182,7 @@ function ht() {
182
182
  var Me = typeof WeakMap == "function" ? WeakMap : Map;
183
183
  J = new Me();
184
184
  }
185
- function _e(e, t) {
185
+ function _e(e, r) {
186
186
  if (!e || re)
187
187
  return "";
188
188
  {
@@ -190,14 +190,14 @@ function ht() {
190
190
  if (o !== void 0)
191
191
  return o;
192
192
  }
193
- var f;
193
+ var v;
194
194
  re = !0;
195
195
  var m = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
197
197
  var p;
198
- p = ee.current, ee.current = null, Ve();
198
+ p = ee.current, ee.current = null, ze();
199
199
  try {
200
- if (t) {
200
+ if (r) {
201
201
  var y = function() {
202
202
  throw Error();
203
203
  };
@@ -209,14 +209,14 @@ function ht() {
209
209
  try {
210
210
  Reflect.construct(y, []);
211
211
  } catch ($) {
212
- f = $;
212
+ v = $;
213
213
  }
214
214
  Reflect.construct(e, [], y);
215
215
  } else {
216
216
  try {
217
217
  y.call();
218
218
  } catch ($) {
219
- f = $;
219
+ v = $;
220
220
  }
221
221
  e.call(y.prototype);
222
222
  }
@@ -224,14 +224,14 @@ function ht() {
224
224
  try {
225
225
  throw Error();
226
226
  } catch ($) {
227
- f = $;
227
+ v = $;
228
228
  }
229
229
  e();
230
230
  }
231
231
  } catch ($) {
232
- if ($ && f && typeof $.stack == "string") {
232
+ if ($ && v && typeof $.stack == "string") {
233
233
  for (var g = $.stack.split(`
234
- `), S = f.stack.split(`
234
+ `), S = v.stack.split(`
235
235
  `), C = g.length - 1, P = S.length - 1; C >= 1 && P >= 0 && g[C] !== S[P]; )
236
236
  P--;
237
237
  for (; C >= 1 && P >= 0; C--, P--)
@@ -248,19 +248,19 @@ function ht() {
248
248
  }
249
249
  }
250
250
  } finally {
251
- re = !1, ee.current = p, ze(), Error.prepareStackTrace = m;
251
+ re = !1, ee.current = p, Ve(), Error.prepareStackTrace = m;
252
252
  }
253
- var z = e ? e.displayName || e.name : "", $e = z ? Q(z) : "";
253
+ var V = e ? e.displayName || e.name : "", $e = V ? Q(V) : "";
254
254
  return typeof e == "function" && J.set(e, $e), $e;
255
255
  }
256
- function Ue(e, t, o) {
256
+ function Ue(e, r, o) {
257
257
  return _e(e, !1);
258
258
  }
259
259
  function qe(e) {
260
- var t = e.prototype;
261
- return !!(t && t.isReactComponent);
260
+ var r = e.prototype;
261
+ return !!(r && r.isReactComponent);
262
262
  }
263
- function X(e, t, o) {
263
+ function X(e, r, o) {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
@@ -275,14 +275,14 @@ function ht() {
275
275
  }
276
276
  if (typeof e == "object")
277
277
  switch (e.$$typeof) {
278
- case l:
278
+ case f:
279
279
  return Ue(e.render);
280
280
  case w:
281
- return X(e.type, t, o);
281
+ return X(e.type, r, o);
282
282
  case R: {
283
- var f = e, m = f._payload, p = f._init;
283
+ var v = e, m = v._payload, p = v._init;
284
284
  try {
285
- return X(p(m), t, o);
285
+ return X(p(m), r, o);
286
286
  } catch {
287
287
  }
288
288
  }
@@ -292,12 +292,12 @@ function ht() {
292
292
  var H = Object.prototype.hasOwnProperty, Ce = {}, be = D.ReactDebugCurrentFrame;
293
293
  function K(e) {
294
294
  if (e) {
295
- var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
295
+ var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
296
296
  be.setExtraStackFrame(o);
297
297
  } else
298
298
  be.setExtraStackFrame(null);
299
299
  }
300
- function Be(e, t, o, f, m) {
300
+ function Be(e, r, o, v, m) {
301
301
  {
302
302
  var p = Function.call.bind(H);
303
303
  for (var y in e)
@@ -305,14 +305,14 @@ function ht() {
305
305
  var g = void 0;
306
306
  try {
307
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`.");
308
+ var S = Error((v || "React class") + ": " + o + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
309
  throw S.name = "Invariant Violation", S;
310
310
  }
311
- g = e[y](t, y, f, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
311
+ g = e[y](r, y, v, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
312
  } catch (C) {
313
313
  g = C;
314
314
  }
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));
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).", v || "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
  }
@@ -322,7 +322,7 @@ function ht() {
322
322
  }
323
323
  function Qe(e) {
324
324
  {
325
- var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
325
+ var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
326
  return o;
327
327
  }
328
328
  }
@@ -349,30 +349,30 @@ function ht() {
349
349
  oe = {};
350
350
  function He(e) {
351
351
  if (H.call(e, "ref")) {
352
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
353
- if (t && t.isReactWarning)
352
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
+ if (r && r.isReactWarning)
354
354
  return !1;
355
355
  }
356
356
  return e.ref !== void 0;
357
357
  }
358
358
  function Ke(e) {
359
359
  if (H.call(e, "key")) {
360
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
361
- if (t && t.isReactWarning)
360
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
+ if (r && r.isReactWarning)
362
362
  return !1;
363
363
  }
364
364
  return e.key !== void 0;
365
365
  }
366
- function Ze(e, t) {
367
- if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
366
+ function Ze(e, r) {
367
+ if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
368
368
  var o = I(q.current.type);
369
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 et(e, t) {
372
+ function et(e, r) {
373
373
  {
374
374
  var o = function() {
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));
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)", r));
376
376
  };
377
377
  o.isReactWarning = !0, Object.defineProperty(e, "key", {
378
378
  get: o,
@@ -380,10 +380,10 @@ function ht() {
380
380
  });
381
381
  }
382
382
  }
383
- function tt(e, t) {
383
+ function tt(e, r) {
384
384
  {
385
385
  var o = function() {
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));
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)", r));
387
387
  };
388
388
  o.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: o,
@@ -391,13 +391,13 @@ function ht() {
391
391
  });
392
392
  }
393
393
  }
394
- var rt = function(e, t, o, f, m, p, y) {
394
+ var rt = function(e, r, o, v, m, p, y) {
395
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: t,
400
+ key: r,
401
401
  ref: o,
402
402
  props: y,
403
403
  // Record the component responsible for creating this element.
@@ -412,7 +412,7 @@ function ht() {
412
412
  configurable: !1,
413
413
  enumerable: !1,
414
414
  writable: !1,
415
- value: f
415
+ value: v
416
416
  }), Object.defineProperty(g, "_source", {
417
417
  configurable: !1,
418
418
  enumerable: !1,
@@ -420,12 +420,12 @@ function ht() {
420
420
  value: m
421
421
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
422
422
  };
423
- function nt(e, t, o, f, m) {
423
+ function nt(e, r, o, v, m) {
424
424
  {
425
425
  var p, 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 (p in t)
428
- H.call(t, p) && !Xe.hasOwnProperty(p) && (y[p] = t[p]);
426
+ o !== void 0 && (je(o), g = "" + o), Ke(r) && (je(r.key), g = "" + r.key), He(r) && (S = r.ref, Ze(r, m));
427
+ for (p in r)
428
+ H.call(r, p) && !Xe.hasOwnProperty(p) && (y[p] = r[p]);
429
429
  if (e && e.defaultProps) {
430
430
  var C = e.defaultProps;
431
431
  for (p in C)
@@ -435,13 +435,13 @@ function ht() {
435
435
  var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
436
  g && et(y, P), S && tt(y, P);
437
437
  }
438
- return rt(e, g, S, m, f, q.current, y);
438
+ return rt(e, g, S, m, v, q.current, y);
439
439
  }
440
440
  }
441
441
  var ie = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
442
- function V(e) {
442
+ function z(e) {
443
443
  if (e) {
444
- var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
444
+ var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
445
445
  xe.setExtraStackFrame(o);
446
446
  } else
447
447
  xe.setExtraStackFrame(null);
@@ -466,10 +466,10 @@ Check the render method of \`` + e + "`.";
466
466
  function ot(e) {
467
467
  {
468
468
  if (e !== void 0) {
469
- var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
469
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
470
470
  return `
471
471
 
472
- Check your code at ` + t + ":" + o + ".";
472
+ Check your code at ` + r + ":" + o + ".";
473
473
  }
474
474
  return "";
475
475
  }
@@ -477,37 +477,37 @@ Check your code at ` + t + ":" + o + ".";
477
477
  var Ae = {};
478
478
  function it(e) {
479
479
  {
480
- var t = Oe();
481
- if (!t) {
480
+ var r = Oe();
481
+ if (!r) {
482
482
  var o = typeof e == "string" ? e : e.displayName || e.name;
483
- o && (t = `
483
+ o && (r = `
484
484
 
485
485
  Check the top-level render call using <` + o + ">.");
486
486
  }
487
- return t;
487
+ return r;
488
488
  }
489
489
  }
490
- function De(e, t) {
490
+ function De(e, r) {
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 = it(t);
495
+ var o = it(r);
496
496
  if (Ae[o])
497
497
  return;
498
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);
499
+ var v = "";
500
+ e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + I(e._owner.type) + "."), z(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, v), z(null);
501
501
  }
502
502
  }
503
- function ke(e, t) {
503
+ function ke(e, r) {
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 f = e[o];
510
- ue(f) && De(f, t);
509
+ var v = e[o];
510
+ ue(v) && De(v, r);
511
511
  }
512
512
  else if (ue(e))
513
513
  e._store && (e._store.validated = !0);
@@ -515,48 +515,48 @@ Check the top-level render call using <` + o + ">.");
515
515
  var m = T(e);
516
516
  if (typeof m == "function" && m !== e.entries)
517
517
  for (var p = m.call(e), y; !(y = p.next()).done; )
518
- ue(y.value) && De(y.value, t);
518
+ ue(y.value) && De(y.value, r);
519
519
  }
520
520
  }
521
521
  }
522
522
  function at(e) {
523
523
  {
524
- var t = e.type;
525
- if (t == null || typeof t == "string")
524
+ var r = e.type;
525
+ if (r == null || typeof r == "string")
526
526
  return;
527
527
  var o;
528
- if (typeof t == "function")
529
- o = t.propTypes;
530
- else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
528
+ if (typeof r == "function")
529
+ o = r.propTypes;
530
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
531
531
  // Inner props are checked in the reconciler.
532
- t.$$typeof === w))
533
- o = t.propTypes;
532
+ r.$$typeof === w))
533
+ o = r.propTypes;
534
534
  else
535
535
  return;
536
536
  if (o) {
537
- var f = I(t);
538
- Be(o, e.props, "prop", f, e);
539
- } else if (t.PropTypes !== void 0 && !ae) {
537
+ var v = I(r);
538
+ Be(o, e.props, "prop", v, e);
539
+ } else if (r.PropTypes !== void 0 && !ae) {
540
540
  ae = !0;
541
- var m = I(t);
541
+ var m = I(r);
542
542
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
543
543
  }
544
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
544
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
545
  }
546
546
  }
547
547
  function ut(e) {
548
548
  {
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);
549
+ for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
550
+ var v = r[o];
551
+ if (v !== "children" && v !== "key") {
552
+ z(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), z(null);
553
553
  break;
554
554
  }
555
555
  }
556
- e.ref !== null && (V(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
556
+ e.ref !== null && (z(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
557
557
  }
558
558
  }
559
- function Ie(e, t, o, f, m, p) {
559
+ function Ie(e, r, o, v, m, p) {
560
560
  {
561
561
  var y = We(e);
562
562
  if (!y) {
@@ -567,33 +567,33 @@ Check the top-level render call using <` + o + ">.");
567
567
  var C;
568
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 P = nt(e, t, o, m, p);
570
+ var P = nt(e, r, o, m, p);
571
571
  if (P == null)
572
572
  return P;
573
573
  if (y) {
574
- var O = t.children;
574
+ var O = r.children;
575
575
  if (O !== void 0)
576
- if (f)
576
+ if (v)
577
577
  if (ne(O)) {
578
- for (var z = 0; z < O.length; z++)
579
- ke(O[z], e);
578
+ for (var V = 0; V < O.length; V++)
579
+ ke(O[V], e);
580
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
584
  ke(O, e);
585
585
  }
586
- return e === a ? ut(P) : at(P), P;
586
+ return e === u ? ut(P) : at(P), P;
587
587
  }
588
588
  }
589
- function ct(e, t, o) {
590
- return Ie(e, t, o, !0);
589
+ function ct(e, r, o) {
590
+ return Ie(e, r, o, !0);
591
591
  }
592
- function st(e, t, o) {
593
- return Ie(e, t, o, !1);
592
+ function st(e, r, o) {
593
+ return Ie(e, r, o, !1);
594
594
  }
595
595
  var lt = st, ft = ct;
596
- B.Fragment = a, B.jsx = lt, B.jsxs = ft;
596
+ B.Fragment = u, B.jsx = lt, B.jsxs = ft;
597
597
  }()), B;
598
598
  }
599
599
  var G = {};
@@ -611,86 +611,86 @@ function mt() {
611
611
  if (Ye)
612
612
  return G;
613
613
  Ye = 1;
614
- var r = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = 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, l, h) {
616
- var E, w = {}, R = null, u = null;
617
- h !== void 0 && (R = "" + h), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (u = l.ref);
618
- for (E in l)
619
- a.call(l, E) && !d.hasOwnProperty(E) && (w[E] = l[E]);
614
+ var t = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
615
+ function l(c, f, h) {
616
+ var E, w = {}, R = null, a = null;
617
+ h !== void 0 && (R = "" + h), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (a = f.ref);
618
+ for (E in f)
619
+ u.call(f, E) && !d.hasOwnProperty(E) && (w[E] = f[E]);
620
620
  if (c && c.defaultProps)
621
- for (E in l = c.defaultProps, l)
622
- w[E] === void 0 && (w[E] = l[E]);
623
- return { $$typeof: n, type: c, key: R, ref: u, props: w, _owner: s.current };
621
+ for (E in f = c.defaultProps, f)
622
+ w[E] === void 0 && (w[E] = f[E]);
623
+ return { $$typeof: n, type: c, key: R, ref: a, props: w, _owner: s.current };
624
624
  }
625
- return G.Fragment = i, G.jsx = v, G.jsxs = v, G;
625
+ return G.Fragment = i, G.jsx = l, G.jsxs = l, G;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? se.exports = mt() : se.exports = ht();
628
628
  var F = se.exports;
629
- const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
630
- const a = le(
629
+ const A = dt({}), xt = ({ children: t, apiURL: n, libraries: i }) => {
630
+ const u = le(
631
631
  () => ({
632
632
  apiURL: n,
633
633
  libraries: i
634
634
  }),
635
635
  [n, i]
636
636
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: r });
637
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: u, children: t });
638
638
  }, Ot = ({
639
- Fallback: r,
639
+ Fallback: t,
640
640
  isLogged: n,
641
641
  loginPath: i = "/login",
642
- localStorageKey: a = "user",
642
+ localStorageKey: u = "user",
643
643
  redirect401Path: s = "/login",
644
644
  ...d
645
645
  }) => {
646
646
  var _, Y, N, W;
647
- const { libraries: v } = k(A), c = (d == null ? void 0 : d.axios) || (v == null ? void 0 : v.axios), l = (d == null ? void 0 : d.reactRouter) || (v == null ? void 0 : v.reactRouter);
648
- if (!l)
647
+ const { libraries: l } = k(A), c = (d == null ? void 0 : d.axios) || (l == null ? void 0 : l.axios), f = (d == null ? void 0 : d.reactRouter) || (l == null ? void 0 : l.reactRouter);
648
+ if (!f)
649
649
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
650
  if (!c)
651
651
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [h, E] = vt(null), { useLocation: w, Navigate: R, Outlet: u } = l, j = w(), x = gt(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
652
+ const [h, E] = vt(null), { useLocation: w, Navigate: R, Outlet: a } = f, j = w(), x = gt(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
653
653
  return Z(() => {
654
654
  x.current || (x.current = !0, c == null || c.interceptors.response.use(
655
655
  (b) => b,
656
656
  async (b) => {
657
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(s)), Promise.reject(b);
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(u), E(s)), Promise.reject(b);
659
659
  }
660
660
  ));
661
- }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, s]), 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(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, 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);
661
+ }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, u, s]), D && !h ? /* @__PURE__ */ F.jsx(yt, { fallback: t, children: (Y = (_ = j.state) == null ? void 0 : _.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(a, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: j }, replace: !0 });
662
+ }, At = ({ ...t }) => {
663
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), u = (t == null ? void 0 : t.gtm) || (n == null ? void 0 : n.gtm);
664
664
  if (!i)
665
665
  throw new Error(
666
666
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
667
667
  );
668
- if (!a)
668
+ if (!u)
669
669
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
670
- const { useGoogleTagManager: s } = a, { useLocation: d, Outlet: v } = i, { pathname: c } = d(), { sendEvent: l } = s();
670
+ const { useGoogleTagManager: s } = u, { useLocation: d, Outlet: l } = i, { pathname: c } = d(), { sendEvent: f } = s();
671
671
  return Z(() => {
672
- l({ event: "pageView", pathname: c });
673
- }, [c, l]), /* @__PURE__ */ F.jsx(v, {});
672
+ f({ event: "pageView", pathname: c });
673
+ }, [c, f]), /* @__PURE__ */ F.jsx(l, {});
674
674
  }, Dt = ({
675
- tokenTypeKey: r = "tokenType",
675
+ tokenTypeKey: t = "tokenType",
676
676
  userLocalStorageKey: n = "user",
677
677
  tokenKey: i = "accessToken",
678
- postContentType: a = "application/json",
678
+ postContentType: u = "application/json",
679
679
  ...s
680
680
  }) => {
681
- const { apiURL: d = s.apiURL, libraries: v } = k(A), c = (s == null ? void 0 : s.axios) || (v == null ? void 0 : v.axios);
681
+ const { apiURL: d = s.apiURL, libraries: l } = k(A), c = (s == null ? void 0 : s.axios) || (l == null ? void 0 : l.axios);
682
682
  if (!c)
683
683
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
684
684
  if (!(c != null && c.defaults))
685
685
  return null;
686
- const l = localStorage.getItem(n), h = l ? JSON.parse(l) : null, E = h != null && h[r] ? h[r] : null, w = h != null && h[i] ? h[i] : null, R = l ? `${E} ${w}` : null;
687
- return c.defaults.baseURL = d, c.defaults.headers.post["Content-Type"] = a, R && (c.defaults.headers.common.Authorization = R), null;
688
- }, kt = ({ debug: r, resources: n, ...i }) => {
689
- const { libraries: a } = k(A), s = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: d, initReactI18next: v, languageDetector: c } = s || {};
686
+ const f = localStorage.getItem(n), h = f ? JSON.parse(f) : null, E = h != null && h[t] ? h[t] : null, w = h != null && h[i] ? h[i] : null, R = f ? `${E} ${w}` : null;
687
+ return c.defaults.baseURL = d, c.defaults.headers.post["Content-Type"] = u, R && (c.defaults.headers.common.Authorization = R), null;
688
+ }, kt = ({ debug: t, resources: n, ...i }) => {
689
+ const { libraries: u } = k(A), s = (i == null ? void 0 : i.i18) || (u == null ? void 0 : u.i18), { i18next: d, initReactI18next: l, languageDetector: c } = s || {};
690
690
  if (!s)
691
691
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
692
- return d != null && d.isInitialized || (d.use(c).use(v).init({
693
- debug: r,
692
+ return d != null && d.isInitialized || (d.use(c).use(l).init({
693
+ debug: t,
694
694
  fallbackLng: "en",
695
695
  interpolation: {
696
696
  escapeValue: !1
@@ -704,19 +704,19 @@ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
704
704
  returnNull: !1
705
705
  }).then(() => {
706
706
  document.documentElement.lang !== d.resolvedLanguage && d.resolvedLanguage && document.documentElement.setAttribute("lang", d.resolvedLanguage);
707
- }), d.on("languageChanged", (l) => {
708
- document.documentElement.setAttribute("lang", l);
707
+ }), d.on("languageChanged", (f) => {
708
+ document.documentElement.setAttribute("lang", f);
709
709
  })), null;
710
710
  }, It = ({
711
- dsn: r,
711
+ dsn: t,
712
712
  integrations: n,
713
713
  tracesSampleRate: i,
714
- replaysSessionSampleRate: a,
714
+ replaysSessionSampleRate: u,
715
715
  replaysOnErrorSampleRate: s,
716
716
  tracePropagationTargets: d,
717
- ignoreErrors: v,
717
+ ignoreErrors: l,
718
718
  debug: c,
719
- environment: l,
719
+ environment: f,
720
720
  ...h
721
721
  }) => {
722
722
  const { libraries: E } = k(A), w = (h == null ? void 0 : h.sentry) || (E == null ? void 0 : E.sentry), R = (h == null ? void 0 : h.reactRouter) || (E == null ? void 0 : E.reactRouter);
@@ -726,15 +726,15 @@ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
726
726
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
727
727
  if (w.isInitialized())
728
728
  return null;
729
- const { createRoutesFromChildren: u, matchRoutes: j, useLocation: x, useNavigationType: T } = R;
729
+ const { createRoutesFromChildren: a, matchRoutes: j, useLocation: x, useNavigationType: T } = R;
730
730
  return (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
731
731
  debug: c,
732
- dsn: r,
733
- environment: l || "production",
734
- ignoreErrors: [...v || [], /dynamically imported module/],
732
+ dsn: t,
733
+ environment: f || "production",
734
+ ignoreErrors: [...l || [], /dynamically imported module/],
735
735
  integrations: [
736
736
  w.reactRouterV6BrowserTracingIntegration({
737
- createRoutesFromChildren: u,
737
+ createRoutesFromChildren: a,
738
738
  matchRoutes: j,
739
739
  useEffect: Z,
740
740
  useLocation: x,
@@ -743,53 +743,53 @@ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
743
743
  ...n || []
744
744
  ],
745
745
  replaysOnErrorSampleRate: s || 1,
746
- replaysSessionSampleRate: a || 0.1,
746
+ replaysSessionSampleRate: u || 0.1,
747
747
  tracePropagationTargets: d,
748
748
  tracesSampleRate: i || 1
749
749
  }), null;
750
- }, $t = ({ IMaskMixin: r, ...n }) => {
750
+ }, $t = ({ IMaskMixin: t, ...n }) => {
751
751
  const i = le(
752
752
  // eslint-disable-next-line react/jsx-props-no-spreading
753
- () => r(({ TextField: a, ...s }) => /* @__PURE__ */ F.jsx(a, { ...s })),
754
- [r]
753
+ () => t(({ TextField: u, ...s }) => /* @__PURE__ */ F.jsx(u, { ...s })),
754
+ [t]
755
755
  );
756
756
  return /* @__PURE__ */ F.jsx(i, { ...n });
757
- }, Ft = ({ accessToken: r, ...n }) => {
758
- const { libraries: i } = k(A), a = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
759
- if (!a)
757
+ }, Ft = ({ accessToken: t, ...n }) => {
758
+ const { libraries: i } = k(A), u = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
759
+ if (!u)
760
760
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
761
- return r && (a.accessToken = r), null;
762
- }, Yt = ({ language: r, ...n }) => {
763
- const { libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), s = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
764
- if (!a)
761
+ return t && (u.accessToken = t), null;
762
+ }, Yt = ({ language: t, ...n }) => {
763
+ const { libraries: i } = k(A), u = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), s = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
764
+ if (!u)
765
765
  throw new Error(
766
766
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
767
767
  );
768
768
  return Z(() => {
769
769
  (async () => {
770
770
  var c;
771
- const v = r || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
772
- if (s && s.forEach((l) => {
773
- l && a.extend(l);
774
- }), v === "fr") {
775
- const l = await import("dayjs/locale/fr");
776
- a.locale(l.default);
771
+ const l = t || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
772
+ if (s && s.forEach((f) => {
773
+ f && u.extend(f);
774
+ }), l === "fr") {
775
+ const f = await import("dayjs/locale/fr");
776
+ u.locale(f.default);
777
777
  }
778
778
  })().then();
779
- }, [a, s, r]), null;
780
- }, Et = (r) => r && typeof r == "function", pt = (r) => r && typeof r == "function", Nt = ({
781
- children: r,
779
+ }, [u, s, t]), null;
780
+ }, Et = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Nt = ({
781
+ children: t,
782
782
  defaultQueriesOptions: n,
783
783
  defaultMutationsOptions: i,
784
- ...a
784
+ ...u
785
785
  }) => {
786
- var l, h;
787
- const { libraries: s } = k(A), d = (a == null ? void 0 : a.QueryClient) || ((l = s == null ? void 0 : s.reactQuery) == null ? void 0 : l.QueryClient), v = (a == null ? void 0 : a.QueryClientProvider) || ((h = s == null ? void 0 : s.reactQuery) == null ? void 0 : h.QueryClientProvider);
786
+ var f, h;
787
+ const { libraries: s } = k(A), d = (u == null ? void 0 : u.QueryClient) || ((f = s == null ? void 0 : s.reactQuery) == null ? void 0 : f.QueryClient), l = (u == null ? void 0 : u.QueryClientProvider) || ((h = s == null ? void 0 : s.reactQuery) == null ? void 0 : h.QueryClientProvider);
788
788
  if (!d)
789
789
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
790
- if (!v)
790
+ if (!l)
791
791
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
792
- if (!Et(v))
792
+ if (!Et(l))
793
793
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
794
794
  if (!pt(d))
795
795
  throw new Error("Provided QueryClient dependencies are not valid.");
@@ -806,135 +806,141 @@ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
806
806
  }
807
807
  }
808
808
  });
809
- return /* @__PURE__ */ F.jsx(v, { client: c, children: r });
810
- }, Wt = (r) => {
809
+ return /* @__PURE__ */ F.jsx(l, { client: c, children: t });
810
+ }, Wt = (t) => {
811
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), s = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || a || ((R) => R), { unknownErrorTranslationKey: d = "error.unknownError" } = r || {}, v = s(d), c = ce(
812
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), u = ((h = t == null ? void 0 : t.i18) == null ? void 0 : h.translateFunction) || ((E = n == null ? void 0 : n.i18) == null ? void 0 : E.translateFunction), s = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || u || ((R) => R), { unknownErrorTranslationKey: d = "error.unknownError" } = t || {}, l = s(d), c = ce(
813
813
  (R) => {
814
814
  var j, x, T, D, _, Y, N, W, b;
815
- const { response: u } = R || {};
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;
815
+ const { response: a } = R || {};
816
+ return a != null && a.reason ? String(a.reason) : (j = a == null ? void 0 : a.data) != null && j.reason ? String(a.data.reason) : (x = a == null ? void 0 : a.data) != null && x.message ? String(a.data.message) : (D = (T = a == null ? void 0 : a.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((_ = a == null ? void 0 : a.data) == null ? void 0 : _.detail) && ((N = (Y = a == null ? void 0 : a.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((b = (W = a == null ? void 0 : a.data) == null ? void 0 : W.detail[0]) == null ? void 0 : b.msg) == "string" ? String(a.data.detail[0].msg) : l;
817
817
  },
818
- [v]
818
+ [l]
819
819
  );
820
820
  return { getErrorCode: ce((R) => {
821
821
  var j, x, T;
822
- const { response: u } = R || {};
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";
822
+ const { response: a } = R || {};
823
+ return a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (j = a == null ? void 0 : a.data) != null && j.error_code ? String((x = a == null ? void 0 : a.data) == null ? void 0 : x.error_code) : a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (T = a == null ? void 0 : a.data) != null && T.error_code ? String(a.data.error_code) : "unknown_error_code";
824
824
  }, []), printError: c };
825
825
  }, Lt = ({
826
- data: r,
826
+ data: t,
827
827
  fetchNextPage: n,
828
828
  isFetchingNextPage: i,
829
- isInitialLoading: a,
829
+ isInitialLoading: u,
830
830
  isLoading: s,
831
831
  enabled: d = !0
832
832
  }) => {
833
- const v = ce(
834
- async (l) => {
835
- i || !d || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
833
+ const l = ce(
834
+ async (f) => {
835
+ i || !d || await n({ pageParam: (f == null ? void 0 : f.pageParam) || f.visibleRowsCount });
836
836
  },
837
837
  [d, n, i]
838
838
  ), c = le(() => {
839
- if (r)
840
- return r.pages.reduce((l, h) => [...l, ...h], []);
841
- }, [r]);
839
+ if (t)
840
+ return t.pages.reduce((f, h) => [...f, ...h], []);
841
+ }, [t]);
842
842
  return {
843
- fetchNextPageOnRowsScrollEnd: v,
843
+ fetchNextPageOnRowsScrollEnd: l,
844
844
  isLoading: i || s,
845
- loadingVariant: a ? "skeleton" : "linear",
845
+ loadingVariant: u ? "skeleton" : "linear",
846
846
  rows: c
847
847
  };
848
- }, Vt = (r) => {
849
- const { libraries: n } = k(A), i = (r == null ? void 0 : r.axios) || (n == null ? void 0 : n.axios);
848
+ }, zt = (t) => {
849
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios);
850
850
  if (!i)
851
851
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
852
852
  return {
853
853
  clearAuthenticationToken: () => {
854
854
  i.defaults.headers.common.Authorization = null;
855
855
  },
856
- setAuthenticationToken: ({ tokenType: d, accessToken: v }) => {
857
- i.defaults.headers.common.Authorization = `${d} ${v}`;
856
+ setAuthenticationToken: ({ tokenType: d, accessToken: l }) => {
857
+ i.defaults.headers.common.Authorization = `${d} ${l}`;
858
858
  }
859
859
  };
860
- }, Rt = ({ library: r, date: n, format: i = "ll" }) => r(n).format(i), wt = (r, n = "km") => {
861
- const i = Number(r);
860
+ }, Rt = ({ library: t, date: n, format: i = "ll" }) => t(n).format(i), wt = (t, n = "km") => {
861
+ const i = Number(t);
862
862
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
863
- }, _t = (r) => r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}`, Ct = ({ path: r, size: n, apiURL: i }) => {
864
- const a = _t(r), s = `${i}${a}`, d = s.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
863
+ }, _t = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, Ct = ({ path: t, size: n, apiURL: i }) => {
864
+ if (!t)
865
+ return "";
866
+ const u = _t(t), s = `${i}${u}`, d = s.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
865
867
  return typeof n == "number" && d ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
866
- }, zt = (r) => {
867
- const { apiURL: n, libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
868
+ }, Vt = (t) => {
869
+ const { apiURL: n, libraries: i } = k(A), u = (t == null ? void 0 : t.dayjs) || (i == null ? void 0 : i.dayjs);
868
870
  return {
869
- dateAdapter: (v, c) => {
870
- if (!a)
871
+ dateAdapter: (l, c) => {
872
+ if (!u)
871
873
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
872
874
  return Rt({
873
- date: v,
875
+ date: l,
874
876
  format: c,
875
- library: a
877
+ library: u
876
878
  });
877
879
  },
878
880
  distanceAdapter: wt,
879
- filePathAdapter: (v, c) => {
881
+ filePathAdapter: (l, c) => {
880
882
  if (!n)
881
883
  throw new Error(
882
884
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
883
885
  );
884
886
  return Ct({
885
887
  apiURL: n,
886
- path: v,
888
+ path: l,
887
889
  size: c
888
890
  });
889
891
  }
890
892
  };
891
- }, bt = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), Pt = (r) => {
892
- const a = r.split("/").filter((s) => s.length > 0).map((s) => s.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
893
- return a.charAt(0).toLowerCase() + a.slice(1);
894
- }, jt = (r, n, i) => {
895
- const a = Pt(n), s = bt(i);
896
- return `${a}${s}`;
897
- }, Tt = (r) => {
898
- if (r)
899
- return (r == null ? void 0 : r.reduce((n, i) => (n[i] = {
893
+ }, bt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Pt = (t) => {
894
+ const u = t.split("/").filter((s) => s.length > 0).map((s) => s.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((f) => f.charAt(0).toUpperCase() + f.slice(1)).join("")).join("");
895
+ return u.charAt(0).toLowerCase() + u.slice(1);
896
+ }, jt = (t, n, i) => {
897
+ const u = Pt(n), s = bt(i);
898
+ return `${u}${s}`;
899
+ }, Tt = (t) => {
900
+ if (t)
901
+ return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
900
902
  query: {
901
903
  useInfinite: !0,
902
904
  useInfiniteQueryParam: "offset",
903
905
  useQuery: !0
904
906
  }
905
907
  }, n), {})) || {};
906
- }, Mt = (r) => {
907
- const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = r || {};
908
- return {
909
- api: {
910
- hooks: {
911
- afterAllFilesWrite: "prettier src/api/ --write"
912
- },
913
- input: n,
914
- output: {
915
- client: "react-query",
916
- mode: "tags-split",
917
- override: {
918
- header: (a) => [
919
- "Generated by orval 🍺",
920
- ...a.title ? [a.title] : [],
921
- ...a.description ? [a.description] : []
922
- ],
923
- mutator: {
924
- name: "axiosCustomInstance",
925
- path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
926
- },
927
- operationName: jt,
928
- ...(i == null ? void 0 : i.length) && { operations: Tt(i) },
929
- query: {
930
- useQuery: !0
931
- }
908
+ }, Mt = (t) => {
909
+ const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {}, u = Array.isArray(n) ? n : [n], s = (d) => ({
910
+ hooks: {
911
+ afterAllFilesWrite: "prettier src/api/ --write"
912
+ },
913
+ input: d,
914
+ output: {
915
+ client: "react-query",
916
+ mode: "tags-split",
917
+ override: {
918
+ header: (l) => [
919
+ "Generated by orval 🍺",
920
+ ...l.title ? [l.title] : [],
921
+ ...l.description ? [l.description] : []
922
+ ],
923
+ mutator: {
924
+ name: "axiosCustomInstance",
925
+ path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
932
926
  },
933
- schemas: "src/api/model",
934
- target: "src/api/services/api.ts"
935
- }
927
+ operationName: jt,
928
+ ...(i == null ? void 0 : i.length) && { operations: Tt(i) },
929
+ query: {
930
+ useQuery: !0
931
+ }
932
+ },
933
+ schemas: "src/api/model",
934
+ target: "src/api/services/api.ts"
936
935
  }
937
- };
936
+ });
937
+ return u.reduce(
938
+ (d, l) => {
939
+ const c = l.replace(/[^a-zA-Z0-9]/g, "");
940
+ return d[c] = s(l), d;
941
+ },
942
+ {}
943
+ );
938
944
  };
939
945
  export {
940
946
  At as GTMSendPageView,
@@ -951,8 +957,8 @@ export {
951
957
  Rt as dateAdapter,
952
958
  wt as distanceAdapter,
953
959
  Mt as getOrvalConfig,
954
- zt as useAdapter,
955
- Vt as useAuth,
960
+ Vt as useAdapter,
961
+ zt as useAuth,
956
962
  Lt as useInfiniteDataGrid,
957
963
  Wt as useResponseError
958
964
  };
package/dist/main.umd.cjs CHANGED
@@ -6,17 +6,17 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var r=m,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),S=Symbol.iterator,I="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[I];return typeof t=="function"?t:null}var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),f=1;f<t;f++)o[f-1]=arguments[f];N("error",e,o)}}function N(e,t,o){{var f=k.ReactDebugCurrentFrame,E=f.getStackAddendum();E!==""&&(t+="%s",o=o.concat([E]));var p=o.map(function(y){return String(y)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var L=!1,M=!1,j=!1,ve=!1,ge=!1,Q;Q=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===d||ge||e===s||e===h||e===R||ve||e===u||L||M||j||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===_||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===Q||e.getModuleId!==void 0))}function lt(e,t,o){var f=e.displayName;if(f)return f;var E=t.displayName||t.name||"";return E!==""?o+"("+E+")":o}function ye(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case i:return"Portal";case d:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ye(t)+".Consumer";case v:var o=e;return ye(o._context)+".Provider";case l:return lt(e,e.render,"ForwardRef");case _:var f=e.displayName||null;return f!==null?f:Y(e.type)||"Memo";case C:{var E=e,p=E._payload,y=E._init;try{return Y(y(p))}catch{return null}}}return null}var z=Object.assign,J=0,he,me,Ee,Re,pe,we,Ce;function _e(){}_e.__reactDisabledLog=!0;function ft(){{if(J===0){he=console.log,me=console.info,Ee=console.warn,Re=console.error,pe=console.group,we=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function dt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:he}),info:z({},e,{value:me}),warn:z({},e,{value:Ee}),error:z({},e,{value:Re}),group:z({},e,{value:pe}),groupCollapsed:z({},e,{value:we}),groupEnd:z({},e,{value:Ce})})}J<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=k.ReactCurrentDispatcher,re;function H(e,t,o){{if(re===void 0)try{throw Error()}catch(E){var f=E.stack.trim().match(/\n( *(at )?)/);re=f&&f[1]||""}return`
10
- `+re+e}}var ne=!1,K;{var vt=typeof WeakMap=="function"?WeakMap:Map;K=new vt}function be(e,t){if(!e||ne)return"";{var o=K.get(e);if(o!==void 0)return o}var f;ne=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=te.current,te.current=null,ft();try{if(t){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(W){f=W}Reflect.construct(e,[],y)}else{try{y.call()}catch(W){f=W}e.call(y.prototype)}}else{try{throw Error()}catch(W){f=W}e()}}catch(W){if(W&&f&&typeof W.stack=="string"){for(var g=W.stack.split(`
11
- `),x=f.stack.split(`
9
+ */var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var t=m,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),a=Symbol.for("react.offscreen"),S=Symbol.iterator,I="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var r=S&&e[S]||e[I];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),v=1;v<r;v++)o[v-1]=arguments[v];N("error",e,o)}}function N(e,r,o){{var v=k.ReactDebugCurrentFrame,E=v.getStackAddendum();E!==""&&(r+="%s",o=o.concat([E]));var p=o.map(function(y){return String(y)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var z=!1,L=!1,j=!1,ve=!1,ge=!1,Q;Q=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===d||ge||e===s||e===h||e===R||ve||e===a||z||L||j||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===_||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===Q||e.getModuleId!==void 0))}function lt(e,r,o){var v=e.displayName;if(v)return v;var E=r.displayName||r.name||"";return E!==""?o+"("+E+")":o}function ye(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case i:return"Portal";case d:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return ye(r)+".Consumer";case l:var o=e;return ye(o._context)+".Provider";case f:return lt(e,e.render,"ForwardRef");case _:var v=e.displayName||null;return v!==null?v:Y(e.type)||"Memo";case C:{var E=e,p=E._payload,y=E._init;try{return Y(y(p))}catch{return null}}}return null}var M=Object.assign,J=0,he,me,Ee,Re,pe,we,Ce;function _e(){}_e.__reactDisabledLog=!0;function ft(){{if(J===0){he=console.log,me=console.info,Ee=console.warn,Re=console.error,pe=console.group,we=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function dt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:he}),info:M({},e,{value:me}),warn:M({},e,{value:Ee}),error:M({},e,{value:Re}),group:M({},e,{value:pe}),groupCollapsed:M({},e,{value:we}),groupEnd:M({},e,{value:Ce})})}J<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=k.ReactCurrentDispatcher,re;function H(e,r,o){{if(re===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);re=v&&v[1]||""}return`
10
+ `+re+e}}var ne=!1,K;{var vt=typeof WeakMap=="function"?WeakMap:Map;K=new vt}function be(e,r){if(!e||ne)return"";{var o=K.get(e);if(o!==void 0)return o}var v;ne=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=te.current,te.current=null,ft();try{if(r){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(W){v=W}Reflect.construct(e,[],y)}else{try{y.call()}catch(W){v=W}e.call(y.prototype)}}else{try{throw Error()}catch(W){v=W}e()}}catch(W){if(W&&v&&typeof W.stack=="string"){for(var g=W.stack.split(`
11
+ `),x=v.stack.split(`
12
12
  `),P=g.length-1,T=x.length-1;P>=1&&T>=0&&g[P]!==x[T];)T--;for(;P>=1&&T>=0;P--,T--)if(g[P]!==x[T]){if(P!==1||T!==1)do if(P--,T--,T<0||g[P]!==x[T]){var D=`
13
- `+g[P].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,D),D}while(P>=1&&T>=0);break}}}finally{ne=!1,te.current=p,dt(),Error.prepareStackTrace=E}var U=e?e.displayName||e.name:"",We=U?H(U):"";return typeof e=="function"&&K.set(e,We),We}function gt(e,t,o){return be(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Z(e,t,o){if(e==null)return"";if(typeof e=="function")return be(e,yt(e));if(typeof e=="string")return H(e);switch(e){case h:return H("Suspense");case R:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return gt(e.render);case _:return Z(e.type,t,o);case C:{var f=e,E=f._payload,p=f._init;try{return Z(p(E),t,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,Pe={},je=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);je.setExtraStackFrame(o)}else je.setExtraStackFrame(null)}function ht(e,t,o,f,E){{var p=Function.call.bind($);for(var y in e)if(p(e,y)){var g=void 0;try{if(typeof e[y]!="function"){var x=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`.");throw x.name="Invariant Violation",x}g=e[y](t,y,f,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){g=P}g&&!(g instanceof Error)&&(q(E),b("%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),q(null)),g instanceof Error&&!(g.message in Pe)&&(Pe[g.message]=!0,q(E),b("Failed %s type: %s",o,g.message),q(null))}}}var mt=Array.isArray;function oe(e){return mt(e)}function Et(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Rt(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Se(e){if(Rt(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(e)),Te(e)}var X=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,xe,ie;ie={};function wt(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ct(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function _t(e,t){if(typeof e.ref=="string"&&X.current&&t&&X.current.stateNode!==t){var o=Y(X.current.type);ie[o]||(b('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',Y(X.current.type),e.ref),ie[o]=!0)}}function bt(e,t){{var o=function(){Oe||(Oe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Pt(e,t){{var o=function(){xe||(xe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var jt=function(e,t,o,f,E,p,y){var g={$$typeof:n,type:e,key:t,ref:o,props:y,_owner:p};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Tt(e,t,o,f,E){{var p,y={},g=null,x=null;o!==void 0&&(Se(o),g=""+o),Ct(t)&&(Se(t.key),g=""+t.key),wt(t)&&(x=t.ref,_t(t,E));for(p in t)$.call(t,p)&&!pt.hasOwnProperty(p)&&(y[p]=t[p]);if(e&&e.defaultProps){var P=e.defaultProps;for(p in P)y[p]===void 0&&(y[p]=P[p])}if(g||x){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&bt(y,T),x&&Pt(y,T)}return jt(e,g,x,E,f,X.current,y)}}var ae=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=Z(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(o)}else Ae.setExtraStackFrame(null)}var ue;ue=!1;function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(ae.current){var e=Y(ae.current.type);if(e)return`
13
+ `+g[P].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,D),D}while(P>=1&&T>=0);break}}}finally{ne=!1,te.current=p,dt(),Error.prepareStackTrace=E}var U=e?e.displayName||e.name:"",We=U?H(U):"";return typeof e=="function"&&K.set(e,We),We}function gt(e,r,o){return be(e,!1)}function yt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Z(e,r,o){if(e==null)return"";if(typeof e=="function")return be(e,yt(e));if(typeof e=="string")return H(e);switch(e){case h:return H("Suspense");case R:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return gt(e.render);case _:return Z(e.type,r,o);case C:{var v=e,E=v._payload,p=v._init;try{return Z(p(E),r,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,Pe={},je=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,o=Z(e.type,e._source,r?r.type:null);je.setExtraStackFrame(o)}else je.setExtraStackFrame(null)}function ht(e,r,o,v,E){{var p=Function.call.bind($);for(var y in e)if(p(e,y)){var g=void 0;try{if(typeof e[y]!="function"){var x=Error((v||"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`.");throw x.name="Invariant Violation",x}g=e[y](r,y,v,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){g=P}g&&!(g instanceof Error)&&(q(E),b("%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).",v||"React class",o,y,typeof g),q(null)),g instanceof Error&&!(g.message in Pe)&&(Pe[g.message]=!0,q(E),b("Failed %s type: %s",o,g.message),q(null))}}}var mt=Array.isArray;function oe(e){return mt(e)}function Et(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Rt(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Se(e){if(Rt(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(e)),Te(e)}var X=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,xe,ie;ie={};function wt(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ct(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function _t(e,r){if(typeof e.ref=="string"&&X.current&&r&&X.current.stateNode!==r){var o=Y(X.current.type);ie[o]||(b('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',Y(X.current.type),e.ref),ie[o]=!0)}}function bt(e,r){{var o=function(){Oe||(Oe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Pt(e,r){{var o=function(){xe||(xe=!0,b("%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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var jt=function(e,r,o,v,E,p,y){var g={$$typeof:n,type:e,key:r,ref:o,props:y,_owner:p};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Tt(e,r,o,v,E){{var p,y={},g=null,x=null;o!==void 0&&(Se(o),g=""+o),Ct(r)&&(Se(r.key),g=""+r.key),wt(r)&&(x=r.ref,_t(r,E));for(p in r)$.call(r,p)&&!pt.hasOwnProperty(p)&&(y[p]=r[p]);if(e&&e.defaultProps){var P=e.defaultProps;for(p in P)y[p]===void 0&&(y[p]=P[p])}if(g||x){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&bt(y,T),x&&Pt(y,T)}return jt(e,g,x,E,v,X.current,y)}}var ae=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,o=Z(e.type,e._source,r?r.type:null);Ae.setExtraStackFrame(o)}else Ae.setExtraStackFrame(null)}var ue;ue=!1;function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(ae.current){var e=Y(ae.current.type);if(e)return`
14
14
 
15
- Check the render method of \``+e+"`."}return""}}function St(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
15
+ Check the render method of \``+e+"`."}return""}}function St(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
16
16
 
17
- Check your code at `+t+":"+o+"."}return""}}var De={};function Ot(e){{var t=Ie();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
17
+ Check your code at `+r+":"+o+"."}return""}}var De={};function Ot(e){{var r=Ie();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
18
18
 
19
- Check the top-level render call using <`+o+">.")}return t}}function ke(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Ot(t);if(De[o])return;De[o]=!0;var f="";e&&e._owner&&e._owner!==ae.current&&(f=" It was passed a child from "+Y(e._owner.type)+"."),V(e),b('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)}}function Fe(e,t){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var f=e[o];ce(f)&&ke(f,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var E=O(e);if(typeof E=="function"&&E!==e.entries)for(var p=E.call(e),y;!(y=p.next()).done;)ce(y.value)&&ke(y.value,t)}}}function xt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===_))o=t.propTypes;else return;if(o){var f=Y(t);ht(o,e.props,"prop",f,e)}else if(t.PropTypes!==void 0&&!ue){ue=!0;var E=Y(t);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var f=t[o];if(f!=="children"&&f!=="key"){V(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),V(null);break}}e.ref!==null&&(V(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ye(e,t,o,f,E,p){{var y=st(e);if(!y){var g="";(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.");var x=St(E);x?g+=x:g+=Ie();var P;e===null?P="null":oe(e)?P="array":e!==void 0&&e.$$typeof===n?(P="<"+(Y(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,g)}var T=Tt(e,t,o,E,p);if(T==null)return T;if(y){var D=t.children;if(D!==void 0)if(f)if(oe(D)){for(var U=0;U<D.length;U++)Fe(D[U],e);Object.freeze&&Object.freeze(D)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fe(D,e)}return e===a?At(T):xt(T),T}}function It(e,t,o){return Ye(e,t,o,!0)}function Dt(e,t,o){return Ye(e,t,o,!1)}var kt=Dt,Ft=It;B.Fragment=a,B.jsx=kt,B.jsxs=Ft}()),B}var G={};/**
19
+ Check the top-level render call using <`+o+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Ot(r);if(De[o])return;De[o]=!0;var v="";e&&e._owner&&e._owner!==ae.current&&(v=" It was passed a child from "+Y(e._owner.type)+"."),V(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,v),V(null)}}function Fe(e,r){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var v=e[o];ce(v)&&ke(v,r)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var E=O(e);if(typeof E=="function"&&E!==e.entries)for(var p=E.call(e),y;!(y=p.next()).done;)ce(y.value)&&ke(y.value,r)}}}function xt(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===_))o=r.propTypes;else return;if(o){var v=Y(r);ht(o,e.props,"prop",v,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var E=Y(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var v=r[o];if(v!=="children"&&v!=="key"){V(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),V(null);break}}e.ref!==null&&(V(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ye(e,r,o,v,E,p){{var y=st(e);if(!y){var g="";(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.");var x=St(E);x?g+=x:g+=Ie();var P;e===null?P="null":oe(e)?P="array":e!==void 0&&e.$$typeof===n?(P="<"+(Y(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,g)}var T=Tt(e,r,o,E,p);if(T==null)return T;if(y){var D=r.children;if(D!==void 0)if(v)if(oe(D)){for(var U=0;U<D.length;U++)Fe(D[U],e);Object.freeze&&Object.freeze(D)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fe(D,e)}return e===u?At(T):xt(T),T}}function It(e,r,o){return Ye(e,r,o,!0)}function Dt(e,r,o){return Ye(e,r,o,!1)}var kt=Dt,Ft=It;B.Fragment=u,B.jsx=kt,B.jsxs=Ft}()),B}var G={};/**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
22
22
  *
@@ -24,4 +24,4 @@ Check the top-level render call using <`+o+">.")}return t}}function ke(e,t){{if(
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */var le;function Le(){if(le)return G;le=1;var r=m,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function v(c,l,h){var R,_={},C=null,u=null;h!==void 0&&(C=""+h),l.key!==void 0&&(C=""+l.key),l.ref!==void 0&&(u=l.ref);for(R in l)a.call(l,R)&&!d.hasOwnProperty(R)&&(_[R]=l[R]);if(c&&c.defaultProps)for(R in l=c.defaultProps,l)_[R]===void 0&&(_[R]=l[R]);return{$$typeof:n,type:c,key:C,ref:u,props:_,_owner:s.current}}return G.Fragment=i,G.jsx=v,G.jsxs=v,G}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=Ne();var F=ee.exports;const A=m.createContext({}),Me=({children:r,apiURL:n,libraries:i})=>{const a=m.useMemo(()=>({apiURL:n,libraries:i}),[n,i]);return F.jsx(A.Provider,{value:a,children:r})},ze=({Fallback:r,isLogged:n,loginPath:i="/login",localStorageKey:a="user",redirect401Path:s="/login",...d})=>{var b,N,L,M;const{libraries:v}=m.useContext(A),c=(d==null?void 0:d.axios)||(v==null?void 0:v.axios),l=(d==null?void 0:d.reactRouter)||(v==null?void 0:v.reactRouter);if(!l)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[h,R]=m.useState(null),{useLocation:_,Navigate:C,Outlet:u}=l,S=_(),I=m.useRef(!1),O=typeof n=="function"?n():!!n,k=typeof O=="boolean"?O:O==null?void 0:O.isLogged;return m.useEffect(()=>{I.current||(I.current=!0,c==null||c.interceptors.response.use(j=>j,async j=>{var Q;return typeof j=="object"&&j&&"response"in j&&j.response&&typeof j.response=="object"&&"status"in j.response&&j.response&&typeof j.response=="object"&&"status"in j.response&&((Q=j==null?void 0:j.response)==null?void 0:Q.status)===401&&(c.defaults.headers.common.Authorization=null,localStorage.removeItem(a),R(s)),Promise.reject(j)}))},[c==null?void 0:c.defaults.headers.common,c==null?void 0:c.interceptors.response,a,s]),k&&!h?F.jsx(m.Suspense,{fallback:r,children:(N=(b=S.state)==null?void 0:b.from)!=null&&N.state&&((M=(L=S.state)==null?void 0:L.from)==null?void 0:M.pathname)===i?F.jsx(C,{to:S.state.from.state.from.pathname+S.state.from.state.from.search,replace:!0}):F.jsx(u,{})}):F.jsx(C,{to:i,state:{from:S},replace:!0})},Ve=({...r})=>{const{libraries:n}=m.useContext(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);if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");if(!a)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const{useGoogleTagManager:s}=a,{useLocation:d,Outlet:v}=i,{pathname:c}=d(),{sendEvent:l}=s();return m.useEffect(()=>{l({event:"pageView",pathname:c})},[c,l]),F.jsx(v,{})},Ue=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:a="application/json",...s})=>{const{apiURL:d=s.apiURL,libraries:v}=m.useContext(A),c=(s==null?void 0:s.axios)||(v==null?void 0:v.axios);if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!(c!=null&&c.defaults))return null;const l=localStorage.getItem(n),h=l?JSON.parse(l):null,R=h!=null&&h[r]?h[r]:null,_=h!=null&&h[i]?h[i]:null,C=l?`${R} ${_}`:null;return c.defaults.baseURL=d,c.defaults.headers.post["Content-Type"]=a,C&&(c.defaults.headers.common.Authorization=C),null},Be=({debug:r,resources:n,...i})=>{const{libraries:a}=m.useContext(A),s=(i==null?void 0:i.i18)||(a==null?void 0:a.i18),{i18next:d,initReactI18next:v,languageDetector:c}=s||{};if(!s)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return d!=null&&d.isInitialized||(d.use(c).use(v).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:"languageChanged loaded",useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==d.resolvedLanguage&&d.resolvedLanguage&&document.documentElement.setAttribute("lang",d.resolvedLanguage)}),d.on("languageChanged",l=>{document.documentElement.setAttribute("lang",l)})),null},Ge=({dsn:r,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:a,replaysOnErrorSampleRate:s,tracePropagationTargets:d,ignoreErrors:v,debug:c,environment:l,...h})=>{const{libraries:R}=m.useContext(A),_=(h==null?void 0:h.sentry)||(R==null?void 0:R.sentry),C=(h==null?void 0:h.reactRouter)||(R==null?void 0:R.reactRouter);if(!_)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!C)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(_.isInitialized())return null;const{createRoutesFromChildren:u,matchRoutes:S,useLocation:I,useNavigationType:O}=C;return(c||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&_.init({debug:c,dsn:r,environment:l||"production",ignoreErrors:[...v||[],/dynamically imported module/],integrations:[_.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:u,matchRoutes:S,useEffect:m.useEffect,useLocation:I,useNavigationType:O}),...n||[]],replaysOnErrorSampleRate:s||1,replaysSessionSampleRate:a||.1,tracePropagationTargets:d,tracesSampleRate:i||1}),null},Qe=({IMaskMixin:r,...n})=>{const i=m.useMemo(()=>r(({TextField:a,...s})=>F.jsx(a,{...s})),[r]);return F.jsx(i,{...n})},Je=({accessToken:r,...n})=>{const{libraries:i}=m.useContext(A),a=(n==null?void 0:n.mapbox)||(i==null?void 0:i.mapbox);if(!a)throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return r&&(a.accessToken=r),null},Xe=({language:r,...n})=>{const{libraries:i}=m.useContext(A),a=(n==null?void 0:n.dayjs)||(i==null?void 0:i.dayjs),s=(n==null?void 0:n.plugin)||(i==null?void 0:i.dayjsPlugin);if(!a)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");return m.useEffect(()=>{(async()=>{var c;const v=r||((c=navigator.language)==null?void 0:c.slice(0,2))||"en";if(s&&s.forEach(l=>{l&&a.extend(l)}),v==="fr"){const l=await import("dayjs/locale/fr");a.locale(l.default)}})().then()},[a,s,r]),null},He=r=>r&&typeof r=="function",Ke=r=>r&&typeof r=="function",Ze=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i,...a})=>{var l,h;const{libraries:s}=m.useContext(A),d=(a==null?void 0:a.QueryClient)||((l=s==null?void 0:s.reactQuery)==null?void 0:l.QueryClient),v=(a==null?void 0:a.QueryClientProvider)||((h=s==null?void 0:s.reactQuery)==null?void 0:h.QueryClientProvider);if(!d)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!v)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!He(v))throw new Error("Provided QueryClientProvider dependencies are not valid.");if(!Ke(d))throw new Error("Provided QueryClient dependencies are not valid.");const c=new d({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(R,_,C)=>R.length+(C||0),refetchOnWindowFocus:!1,retry:3,...n}}});return F.jsx(v,{client:c,children:r})},$e=r=>{var h,R,_;const{libraries:n}=m.useContext(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)||((R=n==null?void 0:n.i18)==null?void 0:R.translateFunction),s=((_=i==null?void 0:i.i18next)==null?void 0:_.t)||a||(C=>C),{unknownErrorTranslationKey:d="error.unknownError"}=r||{},v=s(d),c=m.useCallback(C=>{var S,I,O,k,b,N,L,M,j;const{response:u}=C||{};return u!=null&&u.reason?String(u.reason):(S=u==null?void 0:u.data)!=null&&S.reason?String(u.data.reason):(I=u==null?void 0:u.data)!=null&&I.message?String(u.data.message):(k=(O=u==null?void 0:u.data)==null?void 0:O.detail)!=null&&k.length&&Array.isArray((b=u==null?void 0:u.data)==null?void 0:b.detail)&&((L=(N=u==null?void 0:u.data)==null?void 0:N.detail[0])!=null&&L.msg)&&typeof((j=(M=u==null?void 0:u.data)==null?void 0:M.detail[0])==null?void 0:j.msg)=="string"?String(u.data.detail[0].msg):v},[v]);return{getErrorCode:m.useCallback(C=>{var S,I,O;const{response:u}=C||{};return 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((I=u==null?void 0:u.data)==null?void 0:I.error_code):u!=null&&u.error_code?String(u==null?void 0:u.error_code):(O=u==null?void 0:u.data)!=null&&O.error_code?String(u.data.error_code):"unknown_error_code"},[]),printError:c}},qe=({data:r,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:a,isLoading:s,enabled:d=!0})=>{const v=m.useCallback(async l=>{i||!d||await n({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[d,n,i]),c=m.useMemo(()=>{if(r)return r.pages.reduce((l,h)=>[...l,...h],[])},[r]);return{fetchNextPageOnRowsScrollEnd:v,isLoading:i||s,loadingVariant:a?"skeleton":"linear",rows:c}},et=r=>{const{libraries:n}=m.useContext(A),i=(r==null?void 0:r.axios)||(n==null?void 0:n.axios);if(!i)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");return{clearAuthenticationToken:()=>{i.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:d,accessToken:v})=>{i.defaults.headers.common.Authorization=`${d} ${v}`}}},fe=({library:r,date:n,format:i="ll"})=>r(n).format(i),de=(r,n="km")=>{const i=Number(r);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},tt=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}`,rt=({path:r,size:n,apiURL:i})=>{const a=tt(r),s=`${i}${a}`,d=s.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/)!==null;return typeof n=="number"&&d?`${s.replace("/files",`/thumbs/${n}`)}`:s},nt=r=>{const{apiURL:n,libraries:i}=m.useContext(A),a=(r==null?void 0:r.dayjs)||(i==null?void 0:i.dayjs);return{dateAdapter:(v,c)=>{if(!a)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return fe({date:v,format:c,library:a})},distanceAdapter:de,filePathAdapter:(v,c)=>{if(!n)throw new Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");return rt({apiURL:n,path:v,size:c})}}},ot=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),it=r=>{const a=r.split("/").filter(s=>s.length>0).map(s=>s.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return a.charAt(0).toLowerCase()+a.slice(1)},at=(r,n,i)=>{const a=it(n),s=ot(i);return`${a}${s}`},ut=r=>{if(r)return(r==null?void 0:r.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},ct=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=r||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:n,output:{client:"react-query",mode:"tags-split",override:{header:a=>["Generated by orval 🍺",...a.title?[a.title]:[],...a.description?[a.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:at,...(i==null?void 0:i.length)&&{operations:ut(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};w.GTMSendPageView=Ve,w.InitializeAxiosConfig=Ue,w.InitializeDaysJSConfig=Xe,w.InitializeI18nConfig=Be,w.InitializeMapBoxConfig=Je,w.InitializeSentryConfig=Ge,w.InjectDependenciesContext=A,w.InjectDependenciesProvider=Me,w.MaskTextField=Qe,w.QueryClientProviderWithConfig=Ze,w.RequireAuth=ze,w.dateAdapter=fe,w.distanceAdapter=de,w.getOrvalConfig=ct,w.useAdapter=nt,w.useAuth=et,w.useInfiniteDataGrid=qe,w.useResponseError=$e,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
27
+ */var le;function ze(){if(le)return G;le=1;var t=m,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,h){var R,_={},C=null,a=null;h!==void 0&&(C=""+h),f.key!==void 0&&(C=""+f.key),f.ref!==void 0&&(a=f.ref);for(R in f)u.call(f,R)&&!d.hasOwnProperty(R)&&(_[R]=f[R]);if(c&&c.defaultProps)for(R in f=c.defaultProps,f)_[R]===void 0&&(_[R]=f[R]);return{$$typeof:n,type:c,key:C,ref:a,props:_,_owner:s.current}}return G.Fragment=i,G.jsx=l,G.jsxs=l,G}process.env.NODE_ENV==="production"?ee.exports=ze():ee.exports=Ne();var F=ee.exports;const A=m.createContext({}),Le=({children:t,apiURL:n,libraries:i})=>{const u=m.useMemo(()=>({apiURL:n,libraries:i}),[n,i]);return F.jsx(A.Provider,{value:u,children:t})},Me=({Fallback:t,isLogged:n,loginPath:i="/login",localStorageKey:u="user",redirect401Path:s="/login",...d})=>{var b,N,z,L;const{libraries:l}=m.useContext(A),c=(d==null?void 0:d.axios)||(l==null?void 0:l.axios),f=(d==null?void 0:d.reactRouter)||(l==null?void 0:l.reactRouter);if(!f)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[h,R]=m.useState(null),{useLocation:_,Navigate:C,Outlet:a}=f,S=_(),I=m.useRef(!1),O=typeof n=="function"?n():!!n,k=typeof O=="boolean"?O:O==null?void 0:O.isLogged;return m.useEffect(()=>{I.current||(I.current=!0,c==null||c.interceptors.response.use(j=>j,async j=>{var Q;return typeof j=="object"&&j&&"response"in j&&j.response&&typeof j.response=="object"&&"status"in j.response&&j.response&&typeof j.response=="object"&&"status"in j.response&&((Q=j==null?void 0:j.response)==null?void 0:Q.status)===401&&(c.defaults.headers.common.Authorization=null,localStorage.removeItem(u),R(s)),Promise.reject(j)}))},[c==null?void 0:c.defaults.headers.common,c==null?void 0:c.interceptors.response,u,s]),k&&!h?F.jsx(m.Suspense,{fallback:t,children:(N=(b=S.state)==null?void 0:b.from)!=null&&N.state&&((L=(z=S.state)==null?void 0:z.from)==null?void 0:L.pathname)===i?F.jsx(C,{to:S.state.from.state.from.pathname+S.state.from.state.from.search,replace:!0}):F.jsx(a,{})}):F.jsx(C,{to:i,state:{from:S},replace:!0})},Ve=({...t})=>{const{libraries:n}=m.useContext(A),i=(t==null?void 0:t.reactRouter)||(n==null?void 0:n.reactRouter),u=(t==null?void 0:t.gtm)||(n==null?void 0:n.gtm);if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");if(!u)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const{useGoogleTagManager:s}=u,{useLocation:d,Outlet:l}=i,{pathname:c}=d(),{sendEvent:f}=s();return m.useEffect(()=>{f({event:"pageView",pathname:c})},[c,f]),F.jsx(l,{})},Ue=({tokenTypeKey:t="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...s})=>{const{apiURL:d=s.apiURL,libraries:l}=m.useContext(A),c=(s==null?void 0:s.axios)||(l==null?void 0:l.axios);if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!(c!=null&&c.defaults))return null;const f=localStorage.getItem(n),h=f?JSON.parse(f):null,R=h!=null&&h[t]?h[t]:null,_=h!=null&&h[i]?h[i]:null,C=f?`${R} ${_}`:null;return c.defaults.baseURL=d,c.defaults.headers.post["Content-Type"]=u,C&&(c.defaults.headers.common.Authorization=C),null},Be=({debug:t,resources:n,...i})=>{const{libraries:u}=m.useContext(A),s=(i==null?void 0:i.i18)||(u==null?void 0:u.i18),{i18next:d,initReactI18next:l,languageDetector:c}=s||{};if(!s)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return d!=null&&d.isInitialized||(d.use(c).use(l).init({debug:t,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:"languageChanged loaded",useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==d.resolvedLanguage&&d.resolvedLanguage&&document.documentElement.setAttribute("lang",d.resolvedLanguage)}),d.on("languageChanged",f=>{document.documentElement.setAttribute("lang",f)})),null},Ge=({dsn:t,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:s,tracePropagationTargets:d,ignoreErrors:l,debug:c,environment:f,...h})=>{const{libraries:R}=m.useContext(A),_=(h==null?void 0:h.sentry)||(R==null?void 0:R.sentry),C=(h==null?void 0:h.reactRouter)||(R==null?void 0:R.reactRouter);if(!_)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!C)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(_.isInitialized())return null;const{createRoutesFromChildren:a,matchRoutes:S,useLocation:I,useNavigationType:O}=C;return(c||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&_.init({debug:c,dsn:t,environment:f||"production",ignoreErrors:[...l||[],/dynamically imported module/],integrations:[_.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:a,matchRoutes:S,useEffect:m.useEffect,useLocation:I,useNavigationType:O}),...n||[]],replaysOnErrorSampleRate:s||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:d,tracesSampleRate:i||1}),null},Qe=({IMaskMixin:t,...n})=>{const i=m.useMemo(()=>t(({TextField:u,...s})=>F.jsx(u,{...s})),[t]);return F.jsx(i,{...n})},Je=({accessToken:t,...n})=>{const{libraries:i}=m.useContext(A),u=(n==null?void 0:n.mapbox)||(i==null?void 0:i.mapbox);if(!u)throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return t&&(u.accessToken=t),null},Xe=({language:t,...n})=>{const{libraries:i}=m.useContext(A),u=(n==null?void 0:n.dayjs)||(i==null?void 0:i.dayjs),s=(n==null?void 0:n.plugin)||(i==null?void 0:i.dayjsPlugin);if(!u)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");return m.useEffect(()=>{(async()=>{var c;const l=t||((c=navigator.language)==null?void 0:c.slice(0,2))||"en";if(s&&s.forEach(f=>{f&&u.extend(f)}),l==="fr"){const f=await import("dayjs/locale/fr");u.locale(f.default)}})().then()},[u,s,t]),null},He=t=>t&&typeof t=="function",Ke=t=>t&&typeof t=="function",Ze=({children:t,defaultQueriesOptions:n,defaultMutationsOptions:i,...u})=>{var f,h;const{libraries:s}=m.useContext(A),d=(u==null?void 0:u.QueryClient)||((f=s==null?void 0:s.reactQuery)==null?void 0:f.QueryClient),l=(u==null?void 0:u.QueryClientProvider)||((h=s==null?void 0:s.reactQuery)==null?void 0:h.QueryClientProvider);if(!d)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!l)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!He(l))throw new Error("Provided QueryClientProvider dependencies are not valid.");if(!Ke(d))throw new Error("Provided QueryClient dependencies are not valid.");const c=new d({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(R,_,C)=>R.length+(C||0),refetchOnWindowFocus:!1,retry:3,...n}}});return F.jsx(l,{client:c,children:t})},$e=t=>{var h,R,_;const{libraries:n}=m.useContext(A),i=(t==null?void 0:t.i18)||(n==null?void 0:n.i18),u=((h=t==null?void 0:t.i18)==null?void 0:h.translateFunction)||((R=n==null?void 0:n.i18)==null?void 0:R.translateFunction),s=((_=i==null?void 0:i.i18next)==null?void 0:_.t)||u||(C=>C),{unknownErrorTranslationKey:d="error.unknownError"}=t||{},l=s(d),c=m.useCallback(C=>{var S,I,O,k,b,N,z,L,j;const{response:a}=C||{};return a!=null&&a.reason?String(a.reason):(S=a==null?void 0:a.data)!=null&&S.reason?String(a.data.reason):(I=a==null?void 0:a.data)!=null&&I.message?String(a.data.message):(k=(O=a==null?void 0:a.data)==null?void 0:O.detail)!=null&&k.length&&Array.isArray((b=a==null?void 0:a.data)==null?void 0:b.detail)&&((z=(N=a==null?void 0:a.data)==null?void 0:N.detail[0])!=null&&z.msg)&&typeof((j=(L=a==null?void 0:a.data)==null?void 0:L.detail[0])==null?void 0:j.msg)=="string"?String(a.data.detail[0].msg):l},[l]);return{getErrorCode:m.useCallback(C=>{var S,I,O;const{response:a}=C||{};return a!=null&&a.error_code?String(a==null?void 0:a.error_code):(S=a==null?void 0:a.data)!=null&&S.error_code?String((I=a==null?void 0:a.data)==null?void 0:I.error_code):a!=null&&a.error_code?String(a==null?void 0:a.error_code):(O=a==null?void 0:a.data)!=null&&O.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:c}},qe=({data:t,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:u,isLoading:s,enabled:d=!0})=>{const l=m.useCallback(async f=>{i||!d||await n({pageParam:(f==null?void 0:f.pageParam)||f.visibleRowsCount})},[d,n,i]),c=m.useMemo(()=>{if(t)return t.pages.reduce((f,h)=>[...f,...h],[])},[t]);return{fetchNextPageOnRowsScrollEnd:l,isLoading:i||s,loadingVariant:u?"skeleton":"linear",rows:c}},et=t=>{const{libraries:n}=m.useContext(A),i=(t==null?void 0:t.axios)||(n==null?void 0:n.axios);if(!i)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");return{clearAuthenticationToken:()=>{i.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:d,accessToken:l})=>{i.defaults.headers.common.Authorization=`${d} ${l}`}}},fe=({library:t,date:n,format:i="ll"})=>t(n).format(i),de=(t,n="km")=>{const i=Number(t);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},tt=t=>t!=null&&t.startsWith("/")?t!=null&&t.startsWith("/files")?t:`/files${t}`:t!=null&&t.startsWith("files")?`/${t}`:t!=null&&t.startsWith("files")?`/${t}`:`/files/${t}`,rt=({path:t,size:n,apiURL:i})=>{if(!t)return"";const u=tt(t),s=`${i}${u}`,d=s.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/)!==null;return typeof n=="number"&&d?`${s.replace("/files",`/thumbs/${n}`)}`:s},nt=t=>{const{apiURL:n,libraries:i}=m.useContext(A),u=(t==null?void 0:t.dayjs)||(i==null?void 0:i.dayjs);return{dateAdapter:(l,c)=>{if(!u)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return fe({date:l,format:c,library:u})},distanceAdapter:de,filePathAdapter:(l,c)=>{if(!n)throw new Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");return rt({apiURL:n,path:l,size:c})}}},ot=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),it=t=>{const u=t.split("/").filter(s=>s.length>0).map(s=>s.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(f=>f.charAt(0).toUpperCase()+f.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},at=(t,n,i)=>{const u=it(n),s=ot(i);return`${u}${s}`},ut=t=>{if(t)return(t==null?void 0:t.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},ct=t=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=t||{},u=Array.isArray(n)?n:[n],s=d=>({hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:d,output:{client:"react-query",mode:"tags-split",override:{header:l=>["Generated by orval 🍺",...l.title?[l.title]:[],...l.description?[l.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:at,...(i==null?void 0:i.length)&&{operations:ut(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}});return u.reduce((d,l)=>{const c=l.replace(/[^a-zA-Z0-9]/g,"");return d[c]=s(l),d},{})};w.GTMSendPageView=Ve,w.InitializeAxiosConfig=Ue,w.InitializeDaysJSConfig=Xe,w.InitializeI18nConfig=Be,w.InitializeMapBoxConfig=Je,w.InitializeSentryConfig=Ge,w.InjectDependenciesContext=A,w.InjectDependenciesProvider=Le,w.MaskTextField=Qe,w.QueryClientProviderWithConfig=Ze,w.RequireAuth=Me,w.dateAdapter=fe,w.distanceAdapter=de,w.getOrvalConfig=ct,w.useAdapter=nt,w.useAuth=et,w.useInfiniteDataGrid=qe,w.useResponseError=$e,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",