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