@tracktor/shared-module 0.4.0 → 0.5.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 +5 -2
- package/README.md +14 -0
- package/dist/components/utils/AxiosConfig.d.ts +40 -0
- package/dist/components/{GTMSendPageView → utils}/GTMSendPageView.d.ts +5 -0
- package/dist/components/utils/I18nConfig.d.ts +26 -0
- package/dist/components/utils/SentryConfig.d.ts +22 -0
- package/dist/context/InjectDependenciesProvider.d.ts +12 -0
- package/dist/context/QueryClientProvider.d.ts +36 -0
- package/dist/main.d.ts +12 -4
- package/dist/main.js +380 -315
- package/dist/main.umd.cjs +10 -10
- package/package.json +1 -1
- package/dist/components/GTMSendPageView/index.d.ts +0 -3
- package/dist/components/RequireAuth/index.d.ts +0 -3
- /package/dist/components/{RequireAuth → utils}/RequireAuth.d.ts +0 -0
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
var ae = {},
|
|
1
|
+
import Ie, { createContext as dr, useMemo as vr, useContext as oe, useState as pr, useLayoutEffect as ie, Suspense as gr, useEffect as hr, useCallback as mr } from "react";
|
|
2
|
+
var ae = {}, Er = {
|
|
3
3
|
get exports() {
|
|
4
4
|
return ae;
|
|
5
5
|
},
|
|
6
|
-
set exports(
|
|
7
|
-
ae =
|
|
6
|
+
set exports(n) {
|
|
7
|
+
ae = n;
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, N = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,23 +16,23 @@ var ae = {}, mr = {
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
var
|
|
19
|
+
var De;
|
|
20
20
|
function yr() {
|
|
21
|
-
if (
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function i(
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
for (
|
|
29
|
-
|
|
30
|
-
if (
|
|
31
|
-
for (
|
|
32
|
-
_[
|
|
33
|
-
return { $$typeof:
|
|
21
|
+
if (De)
|
|
22
|
+
return N;
|
|
23
|
+
De = 1;
|
|
24
|
+
var n = Ie, d = Symbol.for("react.element"), g = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function i(y, p, T) {
|
|
26
|
+
var b, _ = {}, O = null, w = null;
|
|
27
|
+
T !== void 0 && (O = "" + T), p.key !== void 0 && (O = "" + p.key), p.ref !== void 0 && (w = p.ref);
|
|
28
|
+
for (b in p)
|
|
29
|
+
h.call(p, b) && !u.hasOwnProperty(b) && (_[b] = p[b]);
|
|
30
|
+
if (y && y.defaultProps)
|
|
31
|
+
for (b in p = y.defaultProps, p)
|
|
32
|
+
_[b] === void 0 && (_[b] = p[b]);
|
|
33
|
+
return { $$typeof: d, type: y, key: O, ref: w, props: _, _owner: f.current };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return N.Fragment = g, N.jsx = i, N.jsxs = i, N;
|
|
36
36
|
}
|
|
37
37
|
var W = {};
|
|
38
38
|
/**
|
|
@@ -44,49 +44,49 @@ var W = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var Fe;
|
|
48
48
|
function br() {
|
|
49
|
-
return
|
|
50
|
-
var
|
|
51
|
-
function
|
|
49
|
+
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
+
var n = Ie, d = Symbol.for("react.element"), g = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), y = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), k = Symbol.iterator, x = "@@iterator";
|
|
51
|
+
function Y(e) {
|
|
52
52
|
if (e === null || typeof e != "object")
|
|
53
53
|
return null;
|
|
54
|
-
var r =
|
|
54
|
+
var r = k && e[k] || e[x];
|
|
55
55
|
return typeof r == "function" ? r : null;
|
|
56
56
|
}
|
|
57
|
-
var
|
|
58
|
-
function
|
|
57
|
+
var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
|
+
function l(e) {
|
|
59
59
|
{
|
|
60
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
61
|
-
t[
|
|
62
|
-
|
|
60
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
61
|
+
t[a - 1] = arguments[a];
|
|
62
|
+
ue("error", e, t);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ue(e, r, t) {
|
|
66
66
|
{
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
return String(
|
|
67
|
+
var a = S.ReactDebugCurrentFrame, c = a.getStackAddendum();
|
|
68
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
|
69
|
+
var v = t.map(function(s) {
|
|
70
|
+
return String(s);
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
75
|
+
var se = !1, M = !1, Le = !1, $e = !1, Ne = !1, le;
|
|
76
|
+
le = Symbol.for("react.module.reference");
|
|
77
|
+
function We(e) {
|
|
78
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === u || Ne || e === f || e === T || e === b || $e || e === w || se || M || Le || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === _ || e.$$typeof === i || e.$$typeof === y || e.$$typeof === p || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
82
|
-
e.$$typeof ===
|
|
82
|
+
e.$$typeof === le || e.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
var
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
88
|
-
var
|
|
89
|
-
return
|
|
84
|
+
function Ye(e, r, t) {
|
|
85
|
+
var a = e.displayName;
|
|
86
|
+
if (a)
|
|
87
|
+
return a;
|
|
88
|
+
var c = r.displayName || r.name || "";
|
|
89
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
|
90
90
|
}
|
|
91
91
|
function ce(e) {
|
|
92
92
|
return e.displayName || "Context";
|
|
@@ -94,41 +94,41 @@ function br() {
|
|
|
94
94
|
function P(e) {
|
|
95
95
|
if (e == null)
|
|
96
96
|
return null;
|
|
97
|
-
if (typeof e.tag == "number" &&
|
|
97
|
+
if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
98
98
|
return e.displayName || e.name || null;
|
|
99
99
|
if (typeof e == "string")
|
|
100
100
|
return e;
|
|
101
101
|
switch (e) {
|
|
102
|
-
case
|
|
102
|
+
case h:
|
|
103
103
|
return "Fragment";
|
|
104
|
-
case
|
|
104
|
+
case g:
|
|
105
105
|
return "Portal";
|
|
106
|
-
case
|
|
106
|
+
case u:
|
|
107
107
|
return "Profiler";
|
|
108
|
-
case
|
|
108
|
+
case f:
|
|
109
109
|
return "StrictMode";
|
|
110
|
-
case
|
|
110
|
+
case T:
|
|
111
111
|
return "Suspense";
|
|
112
|
-
case
|
|
112
|
+
case b:
|
|
113
113
|
return "SuspenseList";
|
|
114
114
|
}
|
|
115
115
|
if (typeof e == "object")
|
|
116
116
|
switch (e.$$typeof) {
|
|
117
|
-
case
|
|
117
|
+
case y:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ce(r) + ".Consumer";
|
|
120
120
|
case i:
|
|
121
121
|
var t = e;
|
|
122
122
|
return ce(t._context) + ".Provider";
|
|
123
|
-
case
|
|
124
|
-
return
|
|
123
|
+
case p:
|
|
124
|
+
return Ye(e, e.render, "ForwardRef");
|
|
125
125
|
case _:
|
|
126
|
-
var
|
|
127
|
-
return
|
|
126
|
+
var a = e.displayName || null;
|
|
127
|
+
return a !== null ? a : P(e.type) || "Memo";
|
|
128
128
|
case O: {
|
|
129
|
-
var
|
|
129
|
+
var c = e, v = c._payload, s = c._init;
|
|
130
130
|
try {
|
|
131
|
-
return P(
|
|
131
|
+
return P(s(v));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,14 +136,14 @@ function br() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var A = Object.assign,
|
|
139
|
+
var A = Object.assign, L = 0, fe, de, ve, pe, ge, he, me;
|
|
140
140
|
function Ee() {
|
|
141
141
|
}
|
|
142
142
|
Ee.__reactDisabledLog = !0;
|
|
143
143
|
function Me() {
|
|
144
144
|
{
|
|
145
|
-
if (
|
|
146
|
-
fe = console.log,
|
|
145
|
+
if (L === 0) {
|
|
146
|
+
fe = console.log, de = console.info, ve = console.warn, pe = console.error, ge = console.group, he = console.groupCollapsed, me = console.groupEnd;
|
|
147
147
|
var e = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -160,12 +160,12 @@ function br() {
|
|
|
160
160
|
groupEnd: e
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
L++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Ve() {
|
|
167
167
|
{
|
|
168
|
-
if (
|
|
168
|
+
if (L--, L === 0) {
|
|
169
169
|
var e = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
@@ -176,48 +176,48 @@ function br() {
|
|
|
176
176
|
value: fe
|
|
177
177
|
}),
|
|
178
178
|
info: A({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: de
|
|
180
180
|
}),
|
|
181
181
|
warn: A({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: ve
|
|
183
183
|
}),
|
|
184
184
|
error: A({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: pe
|
|
186
186
|
}),
|
|
187
187
|
group: A({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: ge
|
|
189
189
|
}),
|
|
190
190
|
groupCollapsed: A({}, e, {
|
|
191
|
-
value:
|
|
191
|
+
value: he
|
|
192
192
|
}),
|
|
193
193
|
groupEnd: A({}, e, {
|
|
194
|
-
value:
|
|
194
|
+
value: me
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
L < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var H = S.ReactCurrentDispatcher, K;
|
|
202
202
|
function V(e, r, t) {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
204
|
+
if (K === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
|
-
} catch (
|
|
208
|
-
var
|
|
209
|
-
|
|
207
|
+
} catch (c) {
|
|
208
|
+
var a = c.stack.trim().match(/\n( *(at )?)/);
|
|
209
|
+
K = a && a[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
212
|
-
` +
|
|
212
|
+
` + K + e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var X = !1, U;
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
U = new
|
|
217
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
|
+
U = new Ue();
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ye(e, r) {
|
|
221
221
|
if (!e || X)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
@@ -225,73 +225,73 @@ function br() {
|
|
|
225
225
|
if (t !== void 0)
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var a;
|
|
229
229
|
X = !0;
|
|
230
|
-
var
|
|
230
|
+
var c = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var v;
|
|
233
|
+
v = H.current, H.current = null, Me();
|
|
234
234
|
try {
|
|
235
235
|
if (r) {
|
|
236
|
-
var
|
|
236
|
+
var s = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
239
|
-
if (Object.defineProperty(
|
|
239
|
+
if (Object.defineProperty(s.prototype, "props", {
|
|
240
240
|
set: function() {
|
|
241
241
|
throw Error();
|
|
242
242
|
}
|
|
243
243
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
244
244
|
try {
|
|
245
|
-
Reflect.construct(
|
|
245
|
+
Reflect.construct(s, []);
|
|
246
246
|
} catch (j) {
|
|
247
|
-
|
|
247
|
+
a = j;
|
|
248
248
|
}
|
|
249
|
-
Reflect.construct(e, [],
|
|
249
|
+
Reflect.construct(e, [], s);
|
|
250
250
|
} else {
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
s.call();
|
|
253
253
|
} catch (j) {
|
|
254
|
-
|
|
254
|
+
a = j;
|
|
255
255
|
}
|
|
256
|
-
e.call(
|
|
256
|
+
e.call(s.prototype);
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
259
|
try {
|
|
260
260
|
throw Error();
|
|
261
261
|
} catch (j) {
|
|
262
|
-
|
|
262
|
+
a = j;
|
|
263
263
|
}
|
|
264
264
|
e();
|
|
265
265
|
}
|
|
266
266
|
} catch (j) {
|
|
267
|
-
if (j &&
|
|
268
|
-
for (var
|
|
269
|
-
`), R =
|
|
270
|
-
`),
|
|
271
|
-
|
|
272
|
-
for (;
|
|
273
|
-
if (
|
|
274
|
-
if (
|
|
267
|
+
if (j && a && typeof j.stack == "string") {
|
|
268
|
+
for (var o = j.stack.split(`
|
|
269
|
+
`), R = a.stack.split(`
|
|
270
|
+
`), m = o.length - 1, E = R.length - 1; m >= 1 && E >= 0 && o[m] !== R[E]; )
|
|
271
|
+
E--;
|
|
272
|
+
for (; m >= 1 && E >= 0; m--, E--)
|
|
273
|
+
if (o[m] !== R[E]) {
|
|
274
|
+
if (m !== 1 || E !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (
|
|
277
|
-
var
|
|
278
|
-
` +
|
|
279
|
-
return e.displayName &&
|
|
276
|
+
if (m--, E--, E < 0 || o[m] !== R[E]) {
|
|
277
|
+
var C = `
|
|
278
|
+
` + o[m].replace(" at new ", " at ");
|
|
279
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, C), C;
|
|
280
280
|
}
|
|
281
|
-
while (
|
|
281
|
+
while (m >= 1 && E >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
X = !1,
|
|
286
|
+
X = !1, H.current = v, Ve(), Error.prepareStackTrace = c;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
return typeof e == "function" && U.set(e,
|
|
288
|
+
var I = e ? e.displayName || e.name : "", Ae = I ? V(I) : "";
|
|
289
|
+
return typeof e == "function" && U.set(e, Ae), Ae;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function qe(e, r, t) {
|
|
292
|
+
return ye(e, !1);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Be(e) {
|
|
295
295
|
var r = e.prototype;
|
|
296
296
|
return !!(r && r.isReactComponent);
|
|
297
297
|
}
|
|
@@ -299,61 +299,61 @@ function br() {
|
|
|
299
299
|
if (e == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof e == "function")
|
|
302
|
-
return
|
|
302
|
+
return ye(e, Be(e));
|
|
303
303
|
if (typeof e == "string")
|
|
304
304
|
return V(e);
|
|
305
305
|
switch (e) {
|
|
306
|
-
case
|
|
306
|
+
case T:
|
|
307
307
|
return V("Suspense");
|
|
308
|
-
case
|
|
308
|
+
case b:
|
|
309
309
|
return V("SuspenseList");
|
|
310
310
|
}
|
|
311
311
|
if (typeof e == "object")
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
|
-
case
|
|
314
|
-
return
|
|
313
|
+
case p:
|
|
314
|
+
return qe(e.render);
|
|
315
315
|
case _:
|
|
316
316
|
return q(e.type, r, t);
|
|
317
317
|
case O: {
|
|
318
|
-
var
|
|
318
|
+
var a = e, c = a._payload, v = a._init;
|
|
319
319
|
try {
|
|
320
|
-
return q(c
|
|
320
|
+
return q(v(c), r, t);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
function
|
|
327
|
+
var B = Object.prototype.hasOwnProperty, be = {}, Re = S.ReactDebugCurrentFrame;
|
|
328
|
+
function G(e) {
|
|
329
329
|
if (e) {
|
|
330
330
|
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
331
|
-
|
|
331
|
+
Re.setExtraStackFrame(t);
|
|
332
332
|
} else
|
|
333
|
-
|
|
333
|
+
Re.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function Ge(e, r, t,
|
|
335
|
+
function Ge(e, r, t, a, c) {
|
|
336
336
|
{
|
|
337
|
-
var
|
|
338
|
-
for (var
|
|
339
|
-
if (
|
|
340
|
-
var
|
|
337
|
+
var v = Function.call.bind(B);
|
|
338
|
+
for (var s in e)
|
|
339
|
+
if (v(e, s)) {
|
|
340
|
+
var o = void 0;
|
|
341
341
|
try {
|
|
342
|
-
if (typeof e[
|
|
343
|
-
var R = Error((
|
|
342
|
+
if (typeof e[s] != "function") {
|
|
343
|
+
var R = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
344
|
throw R.name = "Invariant Violation", R;
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
} catch (
|
|
348
|
-
|
|
346
|
+
o = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
|
+
} catch (m) {
|
|
348
|
+
o = m;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
o && !(o instanceof Error) && (G(c), l("%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).", a || "React class", t, s, typeof o), G(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, G(c), l("Failed %s type: %s", t, o.message), G(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
var
|
|
355
|
-
function
|
|
356
|
-
return
|
|
354
|
+
var ze = Array.isArray;
|
|
355
|
+
function Q(e) {
|
|
356
|
+
return ze(e);
|
|
357
357
|
}
|
|
358
358
|
function Je(e) {
|
|
359
359
|
{
|
|
@@ -361,37 +361,37 @@ function br() {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function He(e) {
|
|
365
365
|
try {
|
|
366
|
-
return
|
|
366
|
+
return _e(e), !1;
|
|
367
367
|
} catch {
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function _e(e) {
|
|
372
372
|
return "" + e;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
374
|
+
function Te(e) {
|
|
375
|
+
if (He(e))
|
|
376
|
+
return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), _e(e);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var $ = S.ReactCurrentOwner, Ke = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
382
382
|
__source: !0
|
|
383
|
-
}, we,
|
|
384
|
-
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
383
|
+
}, we, Oe, Z;
|
|
384
|
+
Z = {};
|
|
385
|
+
function Xe(e) {
|
|
386
|
+
if (B.call(e, "ref")) {
|
|
387
387
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
388
388
|
if (r && r.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return e.ref !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
393
|
+
function Qe(e) {
|
|
394
|
+
if (B.call(e, "key")) {
|
|
395
395
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
396
396
|
if (r && r.isReactWarning)
|
|
397
397
|
return !1;
|
|
@@ -399,15 +399,15 @@ function br() {
|
|
|
399
399
|
return e.key !== void 0;
|
|
400
400
|
}
|
|
401
401
|
function Ze(e, r) {
|
|
402
|
-
if (typeof e.ref == "string" &&
|
|
403
|
-
var t = P(
|
|
404
|
-
|
|
402
|
+
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
403
|
+
var t = P($.current.type);
|
|
404
|
+
Z[t] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P($.current.type), e.ref), Z[t] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function er(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
we || (we = !0,
|
|
410
|
+
we || (we = !0, l("%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));
|
|
411
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
413
413
|
get: t,
|
|
@@ -415,10 +415,10 @@ function br() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function rr(e, r) {
|
|
419
419
|
{
|
|
420
420
|
var t = function() {
|
|
421
|
-
|
|
421
|
+
Oe || (Oe = !0, l("%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));
|
|
422
422
|
};
|
|
423
423
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
424
424
|
get: t,
|
|
@@ -426,65 +426,65 @@ function br() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
var
|
|
429
|
+
var tr = function(e, r, t, a, c, v, s) {
|
|
430
|
+
var o = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
|
-
$$typeof:
|
|
432
|
+
$$typeof: d,
|
|
433
433
|
// Built-in properties that belong on the element
|
|
434
434
|
type: e,
|
|
435
435
|
key: r,
|
|
436
436
|
ref: t,
|
|
437
|
-
props:
|
|
437
|
+
props: s,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
|
-
_owner:
|
|
439
|
+
_owner: v
|
|
440
440
|
};
|
|
441
|
-
return
|
|
441
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !0,
|
|
445
445
|
value: !1
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(o, "_self", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
|
-
value:
|
|
451
|
-
}), Object.defineProperty(
|
|
450
|
+
value: a
|
|
451
|
+
}), Object.defineProperty(o, "_source", {
|
|
452
452
|
configurable: !1,
|
|
453
453
|
enumerable: !1,
|
|
454
454
|
writable: !1,
|
|
455
|
-
value:
|
|
456
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
value: c
|
|
456
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function nr(e, r, t, a, c) {
|
|
459
459
|
{
|
|
460
|
-
var
|
|
461
|
-
t !== void 0 && (
|
|
462
|
-
for (
|
|
463
|
-
|
|
460
|
+
var v, s = {}, o = null, R = null;
|
|
461
|
+
t !== void 0 && (Te(t), o = "" + t), Qe(r) && (Te(r.key), o = "" + r.key), Xe(r) && (R = r.ref, Ze(r, c));
|
|
462
|
+
for (v in r)
|
|
463
|
+
B.call(r, v) && !Ke.hasOwnProperty(v) && (s[v] = r[v]);
|
|
464
464
|
if (e && e.defaultProps) {
|
|
465
|
-
var
|
|
466
|
-
for (
|
|
467
|
-
|
|
465
|
+
var m = e.defaultProps;
|
|
466
|
+
for (v in m)
|
|
467
|
+
s[v] === void 0 && (s[v] = m[v]);
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
470
|
-
var
|
|
471
|
-
|
|
469
|
+
if (o || R) {
|
|
470
|
+
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
471
|
+
o && er(s, E), R && rr(s, E);
|
|
472
472
|
}
|
|
473
|
-
return
|
|
473
|
+
return tr(e, o, R, c, a, $.current, s);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var ee =
|
|
477
|
-
function
|
|
476
|
+
var ee = S.ReactCurrentOwner, Ce = S.ReactDebugCurrentFrame;
|
|
477
|
+
function F(e) {
|
|
478
478
|
if (e) {
|
|
479
479
|
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
480
|
-
|
|
480
|
+
Ce.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
|
-
|
|
482
|
+
Ce.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
484
484
|
var re;
|
|
485
485
|
re = !1;
|
|
486
486
|
function te(e) {
|
|
487
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
487
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
488
488
|
}
|
|
489
489
|
function Se() {
|
|
490
490
|
{
|
|
@@ -498,7 +498,7 @@ Check the render method of \`` + e + "`.";
|
|
|
498
498
|
return "";
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ar(e) {
|
|
502
502
|
{
|
|
503
503
|
if (e !== void 0) {
|
|
504
504
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -509,8 +509,8 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
512
|
+
var Pe = {};
|
|
513
|
+
function or(e) {
|
|
514
514
|
{
|
|
515
515
|
var r = Se();
|
|
516
516
|
if (!r) {
|
|
@@ -522,39 +522,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
522
522
|
return r;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function je(e, r) {
|
|
526
526
|
{
|
|
527
527
|
if (!e._store || e._store.validated || e.key != null)
|
|
528
528
|
return;
|
|
529
529
|
e._store.validated = !0;
|
|
530
|
-
var t =
|
|
531
|
-
if (
|
|
530
|
+
var t = or(r);
|
|
531
|
+
if (Pe[t])
|
|
532
532
|
return;
|
|
533
|
-
|
|
534
|
-
var
|
|
535
|
-
e && e._owner && e._owner !== ee.current && (
|
|
533
|
+
Pe[t] = !0;
|
|
534
|
+
var a = "";
|
|
535
|
+
e && e._owner && e._owner !== ee.current && (a = " It was passed a child from " + P(e._owner.type) + "."), F(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function ke(e, r) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof e != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (Q(e))
|
|
543
543
|
for (var t = 0; t < e.length; t++) {
|
|
544
|
-
var
|
|
545
|
-
te(
|
|
544
|
+
var a = e[t];
|
|
545
|
+
te(a) && je(a, r);
|
|
546
546
|
}
|
|
547
547
|
else if (te(e))
|
|
548
548
|
e._store && (e._store.validated = !0);
|
|
549
549
|
else if (e) {
|
|
550
|
-
var
|
|
551
|
-
if (typeof
|
|
552
|
-
for (var
|
|
553
|
-
te(
|
|
550
|
+
var c = Y(e);
|
|
551
|
+
if (typeof c == "function" && c !== e.entries)
|
|
552
|
+
for (var v = c.call(e), s; !(s = v.next()).done; )
|
|
553
|
+
te(s.value) && je(s.value, r);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ir(e) {
|
|
558
558
|
{
|
|
559
559
|
var r = e.type;
|
|
560
560
|
if (r == null || typeof r == "string")
|
|
@@ -562,79 +562,79 @@ Check the top-level render call using <` + t + ">.");
|
|
|
562
562
|
var t;
|
|
563
563
|
if (typeof r == "function")
|
|
564
564
|
t = r.propTypes;
|
|
565
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
565
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
567
|
r.$$typeof === _))
|
|
568
568
|
t = r.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (t) {
|
|
572
|
-
var
|
|
573
|
-
Ge(t, e.props, "prop",
|
|
572
|
+
var a = P(r);
|
|
573
|
+
Ge(t, e.props, "prop", a, e);
|
|
574
574
|
} else if (r.PropTypes !== void 0 && !re) {
|
|
575
575
|
re = !0;
|
|
576
|
-
var
|
|
577
|
-
|
|
576
|
+
var c = P(r);
|
|
577
|
+
l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function ur(e) {
|
|
583
583
|
{
|
|
584
584
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
|
|
585
|
+
var a = r[t];
|
|
586
|
+
if (a !== "children" && a !== "key") {
|
|
587
|
+
F(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.ref !== null && (
|
|
591
|
+
e.ref !== null && (F(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function xe(e, r, t,
|
|
594
|
+
function xe(e, r, t, a, c, v) {
|
|
595
595
|
{
|
|
596
|
-
var
|
|
597
|
-
if (!
|
|
598
|
-
var
|
|
599
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
600
|
-
var R =
|
|
601
|
-
R ?
|
|
602
|
-
var
|
|
603
|
-
e === null ?
|
|
596
|
+
var s = We(e);
|
|
597
|
+
if (!s) {
|
|
598
|
+
var o = "";
|
|
599
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
+
var R = ar(c);
|
|
601
|
+
R ? o += R : o += Se();
|
|
602
|
+
var m;
|
|
603
|
+
e === null ? m = "null" : Q(e) ? m = "array" : e !== void 0 && e.$$typeof === d ? (m = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, o);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
return
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
if (
|
|
612
|
-
if (
|
|
613
|
-
for (var
|
|
614
|
-
|
|
615
|
-
Object.freeze && Object.freeze(
|
|
605
|
+
var E = nr(e, r, t, c, v);
|
|
606
|
+
if (E == null)
|
|
607
|
+
return E;
|
|
608
|
+
if (s) {
|
|
609
|
+
var C = r.children;
|
|
610
|
+
if (C !== void 0)
|
|
611
|
+
if (a)
|
|
612
|
+
if (Q(C)) {
|
|
613
|
+
for (var I = 0; I < C.length; I++)
|
|
614
|
+
ke(C[I], e);
|
|
615
|
+
Object.freeze && Object.freeze(C);
|
|
616
616
|
} else
|
|
617
|
-
|
|
617
|
+
l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
|
-
|
|
619
|
+
ke(C, e);
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === h ? ur(E) : ir(E), E;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function sr(e, r, t) {
|
|
625
625
|
return xe(e, r, t, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function lr(e, r, t) {
|
|
628
628
|
return xe(e, r, t, !1);
|
|
629
629
|
}
|
|
630
|
-
var cr =
|
|
631
|
-
W.Fragment =
|
|
630
|
+
var cr = lr, fr = sr;
|
|
631
|
+
W.Fragment = h, W.jsx = cr, W.jsxs = fr;
|
|
632
632
|
}()), W;
|
|
633
633
|
}
|
|
634
|
-
(function(
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
})(
|
|
637
|
-
const
|
|
634
|
+
(function(n) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? n.exports = yr() : n.exports = br();
|
|
636
|
+
})(Er);
|
|
637
|
+
const D = ae.jsx, J = dr({
|
|
638
638
|
axios: void 0,
|
|
639
639
|
children: void 0,
|
|
640
640
|
Navigate: void 0,
|
|
@@ -643,92 +643,157 @@ const I = ae.jsx, z = lr({
|
|
|
643
643
|
useAuth: void 0,
|
|
644
644
|
useLocation: void 0
|
|
645
645
|
}), _r = ({
|
|
646
|
-
axios:
|
|
647
|
-
children:
|
|
648
|
-
translate:
|
|
649
|
-
useAuth:
|
|
650
|
-
Outlet:
|
|
651
|
-
Navigate:
|
|
646
|
+
axios: n,
|
|
647
|
+
children: d,
|
|
648
|
+
translate: g,
|
|
649
|
+
useAuth: h,
|
|
650
|
+
Outlet: f,
|
|
651
|
+
Navigate: u,
|
|
652
652
|
useLocation: i,
|
|
653
|
-
useGoogleTagManager:
|
|
653
|
+
useGoogleTagManager: y
|
|
654
654
|
}) => {
|
|
655
|
-
const
|
|
655
|
+
const p = vr(
|
|
656
656
|
() => ({
|
|
657
|
-
axios:
|
|
658
|
-
Navigate:
|
|
659
|
-
Outlet:
|
|
660
|
-
translate:
|
|
661
|
-
useAuth:
|
|
662
|
-
useGoogleTagManager:
|
|
657
|
+
axios: n,
|
|
658
|
+
Navigate: u,
|
|
659
|
+
Outlet: f,
|
|
660
|
+
translate: g,
|
|
661
|
+
useAuth: h,
|
|
662
|
+
useGoogleTagManager: y,
|
|
663
663
|
useLocation: i
|
|
664
664
|
}),
|
|
665
|
-
[
|
|
665
|
+
[u, f, n, g, h, y, i]
|
|
666
666
|
);
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
},
|
|
669
|
-
Fallback:
|
|
670
|
-
loginPath:
|
|
671
|
-
localStorageKey:
|
|
672
|
-
redirect401Path:
|
|
673
|
-
...
|
|
667
|
+
return /* @__PURE__ */ D(J.Provider, { value: p, children: d });
|
|
668
|
+
}, z = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Tr = ({
|
|
669
|
+
Fallback: n,
|
|
670
|
+
loginPath: d = "/login",
|
|
671
|
+
localStorageKey: g = "user",
|
|
672
|
+
redirect401Path: h = "/login",
|
|
673
|
+
...f
|
|
674
674
|
}) => {
|
|
675
|
-
var
|
|
675
|
+
var k, x, Y, S;
|
|
676
676
|
const {
|
|
677
|
-
axios:
|
|
678
|
-
useLocation: i =
|
|
679
|
-
useAuth:
|
|
680
|
-
Outlet:
|
|
681
|
-
Navigate:
|
|
682
|
-
} = oe(
|
|
683
|
-
if (
|
|
684
|
-
throw new Error(
|
|
677
|
+
axios: u = f.axios,
|
|
678
|
+
useLocation: i = f.useLocation,
|
|
679
|
+
useAuth: y = f.useAuth,
|
|
680
|
+
Outlet: p = f.Outlet,
|
|
681
|
+
Navigate: T = f.Navigate
|
|
682
|
+
} = oe(J);
|
|
683
|
+
if (y === void 0)
|
|
684
|
+
throw new Error(z("useAuth"));
|
|
685
685
|
if (i === void 0)
|
|
686
|
-
throw new Error(
|
|
687
|
-
if (
|
|
688
|
-
throw new Error(
|
|
689
|
-
if (
|
|
690
|
-
throw new Error(
|
|
691
|
-
const [
|
|
692
|
-
return
|
|
693
|
-
|
|
694
|
-
(
|
|
695
|
-
async (
|
|
696
|
-
var
|
|
697
|
-
return typeof
|
|
686
|
+
throw new Error(z("useLocation"));
|
|
687
|
+
if (p === void 0)
|
|
688
|
+
throw new Error(z("Outlet"));
|
|
689
|
+
if (T === void 0)
|
|
690
|
+
throw new Error(z("Navigate"));
|
|
691
|
+
const [b, _] = pr(null), { isLogged: O } = y(), w = i();
|
|
692
|
+
return ie(() => {
|
|
693
|
+
u == null || u.interceptors.response.use(
|
|
694
|
+
(l) => l,
|
|
695
|
+
async (l) => {
|
|
696
|
+
var M;
|
|
697
|
+
return typeof l == "object" && l && "response" in l && l.response && typeof l.response == "object" && "status" in l.response && l.response && typeof l.response == "object" && "status" in l.response && ((M = l == null ? void 0 : l.response) == null ? void 0 : M.status) === 401 && (u.defaults.headers.common.Authorization = null, localStorage.removeItem(g), _(h)), Promise.reject(l);
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
|
-
}, [
|
|
701
|
-
}, ne = (
|
|
700
|
+
}, [u == null ? void 0 : u.defaults, u == null ? void 0 : u.interceptors.response, g, h]), O && !b ? /* @__PURE__ */ D(gr, { fallback: n, children: (x = (k = w.state) == null ? void 0 : k.from) != null && x.state && ((S = (Y = w.state) == null ? void 0 : Y.from) == null ? void 0 : S.pathname) === d ? /* @__PURE__ */ D(T, { to: w.state.from.state.from.pathname + w.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ D(p, {}) }) : /* @__PURE__ */ D(T, { to: d, state: { from: w }, replace: !0 });
|
|
701
|
+
}, ne = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, wr = ({ ...n }) => {
|
|
702
702
|
const {
|
|
703
|
-
useLocation:
|
|
704
|
-
Outlet:
|
|
705
|
-
useGoogleTagManager:
|
|
706
|
-
} = oe(
|
|
707
|
-
if (
|
|
703
|
+
useLocation: d = n.useLocation,
|
|
704
|
+
Outlet: g = n.Outlet,
|
|
705
|
+
useGoogleTagManager: h = n.useGoogleTagManager
|
|
706
|
+
} = oe(J);
|
|
707
|
+
if (d === void 0)
|
|
708
708
|
throw new Error(ne("useLocation"));
|
|
709
|
-
if (
|
|
709
|
+
if (g === void 0)
|
|
710
710
|
throw new Error(ne("Outlet"));
|
|
711
|
-
if (
|
|
711
|
+
if (h === void 0)
|
|
712
712
|
throw new Error(ne("useGoogleTagManager"));
|
|
713
|
-
const { pathname:
|
|
713
|
+
const { pathname: f } = d(), { sendEvent: u } = h();
|
|
714
714
|
return hr(() => {
|
|
715
|
-
|
|
716
|
-
}, [
|
|
717
|
-
}, Or = (
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
715
|
+
u({ event: "pageView", pathname: f });
|
|
716
|
+
}, [f, u]), /* @__PURE__ */ D(g, {});
|
|
717
|
+
}, Or = ({
|
|
718
|
+
axios: n,
|
|
719
|
+
baseURL: d,
|
|
720
|
+
userLocalStorageKey: g = "user",
|
|
721
|
+
postContentType: h = "application/json"
|
|
722
|
+
}) => (ie(() => {
|
|
723
|
+
if (!n.defaults)
|
|
724
|
+
return;
|
|
725
|
+
const f = localStorage.getItem(g), u = f ? JSON.parse(f) : null, i = u && typeof u == "object" && "tokenType" in u && u.tokenType ? u.tokenType : null, y = u && typeof u == "object" && "accessToken" in u && u.accessToken ? u.accessToken : null, p = f ? `${i} ${y}` : null;
|
|
726
|
+
n.defaults.baseURL = d, n.defaults.headers.post["Content-Type"] = h, p && (n.defaults.headers.common.Authorization = p);
|
|
727
|
+
}, [
|
|
728
|
+
n.defaults,
|
|
729
|
+
n.defaults.baseURL,
|
|
730
|
+
n.defaults.headers.common,
|
|
731
|
+
n.defaults.headers.post,
|
|
732
|
+
d,
|
|
733
|
+
h,
|
|
734
|
+
g
|
|
735
|
+
]), null), Cr = ({
|
|
736
|
+
i18n: n,
|
|
737
|
+
initReactI18next: d,
|
|
738
|
+
resources: g,
|
|
739
|
+
LanguageDetector: h
|
|
740
|
+
}) => (n.use(h).use(d).init({
|
|
741
|
+
debug: !1,
|
|
742
|
+
fallbackLng: "en",
|
|
743
|
+
interpolation: {
|
|
744
|
+
escapeValue: !1
|
|
745
|
+
},
|
|
746
|
+
load: "languageOnly",
|
|
747
|
+
react: {
|
|
748
|
+
useSuspense: !0
|
|
749
|
+
},
|
|
750
|
+
resources: g,
|
|
751
|
+
returnNull: !1
|
|
752
|
+
}).then(() => {
|
|
753
|
+
document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
|
|
754
|
+
}), n.on("languageChanged", (f) => {
|
|
755
|
+
document.documentElement.setAttribute("lang", f);
|
|
756
|
+
}), null), Sr = ({ dsn: n, sentry: d }) => (ie(() => {
|
|
757
|
+
d && process.env.NODE_ENV !== "development" && d.init({
|
|
758
|
+
dsn: n,
|
|
759
|
+
integrations: [new d.BrowserTracing()],
|
|
760
|
+
tracesSampleRate: 1
|
|
761
|
+
});
|
|
762
|
+
}, [n, d]), null), Pr = ({
|
|
763
|
+
children: n,
|
|
764
|
+
defaultOptions: d,
|
|
765
|
+
QueryClient: g,
|
|
766
|
+
QueryClientProvider: h
|
|
767
|
+
}) => {
|
|
768
|
+
const f = new g({
|
|
769
|
+
defaultOptions: {
|
|
770
|
+
queries: {
|
|
771
|
+
refetchOnWindowFocus: !1,
|
|
772
|
+
retry: 3,
|
|
773
|
+
...d
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
return /* @__PURE__ */ D(h, { client: f, children: n });
|
|
778
|
+
}, jr = (n) => {
|
|
779
|
+
const { unknownErrorTranslationKey: d = "error.unknownError" } = n || {}, { translate: g = n == null ? void 0 : n.translate } = oe(J);
|
|
780
|
+
return { printError: mr(
|
|
781
|
+
(f) => {
|
|
782
|
+
var y, p, T, b, _, O, w, k, x;
|
|
783
|
+
const u = g ? g(d) : "Unknown error", { response: i } = f || {};
|
|
784
|
+
return f != null && f.reason ? String(f.reason) : (y = i == null ? void 0 : i.data) != null && y.reason ? String(i.data.reason) : (p = i == null ? void 0 : i.data) != null && p.message ? String(i.data.message) : (b = (T = i == null ? void 0 : i.data) == null ? void 0 : T.detail) != null && b.length && Array.isArray((_ = i == null ? void 0 : i.data) == null ? void 0 : _.detail) && ((w = (O = i == null ? void 0 : i.data) == null ? void 0 : O.detail[0]) != null && w.msg) && typeof ((x = (k = i == null ? void 0 : i.data) == null ? void 0 : k.detail[0]) == null ? void 0 : x.msg) == "string" ? String(i.data.detail[0].msg) : u;
|
|
724
785
|
},
|
|
725
|
-
[
|
|
786
|
+
[g, d]
|
|
726
787
|
) };
|
|
727
788
|
};
|
|
728
789
|
export {
|
|
729
|
-
|
|
730
|
-
|
|
790
|
+
Or as AxiosConfig,
|
|
791
|
+
wr as GTMSendPageView,
|
|
792
|
+
Cr as I18nConfig,
|
|
793
|
+
J as InjectDependenciesContext,
|
|
731
794
|
_r as InjectDependenciesProvider,
|
|
732
|
-
|
|
733
|
-
|
|
795
|
+
Pr as QueryClientProvider,
|
|
796
|
+
Tr as RequireAuth,
|
|
797
|
+
Sr as SentryConfig,
|
|
798
|
+
jr as useResponseError
|
|
734
799
|
};
|