thecore-auth 0.0.113 → 0.0.115
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/thecore-auth.cjs.js +13 -13
- package/dist/thecore-auth.css +1 -1
- package/dist/thecore-auth.esm.js +640 -520
- package/package.json +1 -1
package/dist/thecore-auth.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useNavigate as Le, useLocation as
|
|
5
|
-
import { BrowserRouter as
|
|
6
|
-
import
|
|
7
|
-
import { default as
|
|
8
|
-
import
|
|
9
|
-
|
|
2
|
+
import $, { createContext as ee, useState as w, useContext as te, useEffect as I, useRef as ct } from "react";
|
|
3
|
+
import ut from "jwt-decode";
|
|
4
|
+
import { useNavigate as Le, useLocation as Ne, matchPath as De, Outlet as Q, Navigate as Je, Routes as dt, Route as K, useMatch as ft } from "react-router-dom";
|
|
5
|
+
import { BrowserRouter as p0, Link as h0, NavLink as g0, Outlet as x0, Route as v0, Routes as b0, useLocation as y0, useMatch as E0, useNavigate as w0, useParams as C0 } from "react-router-dom";
|
|
6
|
+
import mt from "axios";
|
|
7
|
+
import { default as S0 } from "axios";
|
|
8
|
+
import pt from "react-dom";
|
|
9
|
+
import { default as O0 } from "react-dom";
|
|
10
|
+
var xe = { exports: {} }, fe = {};
|
|
10
11
|
/**
|
|
11
12
|
* @license React
|
|
12
13
|
* react-jsx-runtime.production.js
|
|
@@ -17,13 +18,13 @@ var xe = { exports: {} }, de = {};
|
|
|
17
18
|
* LICENSE file in the root directory of this source tree.
|
|
18
19
|
*/
|
|
19
20
|
var We;
|
|
20
|
-
function
|
|
21
|
-
if (We) return
|
|
21
|
+
function ht() {
|
|
22
|
+
if (We) return fe;
|
|
22
23
|
We = 1;
|
|
23
24
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
24
25
|
function n(i, a, l) {
|
|
25
|
-
var
|
|
26
|
-
if (l !== void 0 && (
|
|
26
|
+
var c = null;
|
|
27
|
+
if (l !== void 0 && (c = "" + l), a.key !== void 0 && (c = "" + a.key), "key" in a) {
|
|
27
28
|
l = {};
|
|
28
29
|
for (var m in a)
|
|
29
30
|
m !== "key" && (l[m] = a[m]);
|
|
@@ -31,12 +32,12 @@ function dt() {
|
|
|
31
32
|
return a = l.ref, {
|
|
32
33
|
$$typeof: r,
|
|
33
34
|
type: i,
|
|
34
|
-
key:
|
|
35
|
+
key: c,
|
|
35
36
|
ref: a !== void 0 ? a : null,
|
|
36
37
|
props: l
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
return
|
|
40
|
+
return fe.Fragment = s, fe.jsx = n, fe.jsxs = n, fe;
|
|
40
41
|
}
|
|
41
42
|
var me = {};
|
|
42
43
|
/**
|
|
@@ -49,7 +50,7 @@ var me = {};
|
|
|
49
50
|
* LICENSE file in the root directory of this source tree.
|
|
50
51
|
*/
|
|
51
52
|
var He;
|
|
52
|
-
function
|
|
53
|
+
function gt() {
|
|
53
54
|
return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
|
|
54
55
|
function r(e) {
|
|
55
56
|
if (e == null) return null;
|
|
@@ -57,36 +58,36 @@ function mt() {
|
|
|
57
58
|
return e.$$typeof === A ? null : e.displayName || e.name || null;
|
|
58
59
|
if (typeof e == "string") return e;
|
|
59
60
|
switch (e) {
|
|
60
|
-
case
|
|
61
|
+
case z:
|
|
61
62
|
return "Fragment";
|
|
62
|
-
case
|
|
63
|
+
case R:
|
|
63
64
|
return "Portal";
|
|
64
|
-
case
|
|
65
|
+
case se:
|
|
65
66
|
return "Profiler";
|
|
66
|
-
case
|
|
67
|
+
case ne:
|
|
67
68
|
return "StrictMode";
|
|
68
69
|
case Y:
|
|
69
70
|
return "Suspense";
|
|
70
|
-
case
|
|
71
|
+
case ie:
|
|
71
72
|
return "SuspenseList";
|
|
72
73
|
}
|
|
73
74
|
if (typeof e == "object")
|
|
74
75
|
switch (typeof e.tag == "number" && console.error(
|
|
75
76
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
76
77
|
), e.$$typeof) {
|
|
77
|
-
case
|
|
78
|
+
case D:
|
|
78
79
|
return (e.displayName || "Context") + ".Provider";
|
|
79
80
|
case q:
|
|
80
81
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
81
82
|
case V:
|
|
82
|
-
var
|
|
83
|
-
return e = e.displayName, e || (e =
|
|
83
|
+
var d = e.render;
|
|
84
|
+
return e = e.displayName, e || (e = d.displayName || d.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
84
85
|
case J:
|
|
85
|
-
return
|
|
86
|
+
return d = e.displayName || null, d !== null ? d : r(e.type) || "Memo";
|
|
86
87
|
case F:
|
|
87
|
-
|
|
88
|
+
d = e._payload, e = e._init;
|
|
88
89
|
try {
|
|
89
|
-
return r(e(
|
|
90
|
+
return r(e(d));
|
|
90
91
|
} catch {
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -98,25 +99,25 @@ function mt() {
|
|
|
98
99
|
function n(e) {
|
|
99
100
|
try {
|
|
100
101
|
s(e);
|
|
101
|
-
var
|
|
102
|
+
var d = !1;
|
|
102
103
|
} catch {
|
|
103
|
-
|
|
104
|
+
d = !0;
|
|
104
105
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var f =
|
|
106
|
+
if (d) {
|
|
107
|
+
d = console;
|
|
108
|
+
var f = d.error, S = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
108
109
|
return f.call(
|
|
109
|
-
|
|
110
|
+
d,
|
|
110
111
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
112
|
+
S
|
|
112
113
|
), s(e);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
function i() {
|
|
116
117
|
}
|
|
117
118
|
function a() {
|
|
118
|
-
if (
|
|
119
|
-
Pe = console.log,
|
|
119
|
+
if (ue === 0) {
|
|
120
|
+
Pe = console.log, Re = console.info, Ge = console.warn, Te = console.error, Me = console.group, _e = console.groupCollapsed, Ie = console.groupEnd;
|
|
120
121
|
var e = {
|
|
121
122
|
configurable: !0,
|
|
122
123
|
enumerable: !0,
|
|
@@ -133,49 +134,49 @@ function mt() {
|
|
|
133
134
|
groupEnd: e
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
+
ue++;
|
|
137
138
|
}
|
|
138
139
|
function l() {
|
|
139
|
-
if (
|
|
140
|
+
if (ue--, ue === 0) {
|
|
140
141
|
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
141
142
|
Object.defineProperties(console, {
|
|
142
|
-
log:
|
|
143
|
-
info:
|
|
144
|
-
warn:
|
|
145
|
-
error:
|
|
146
|
-
group:
|
|
147
|
-
groupCollapsed:
|
|
148
|
-
groupEnd:
|
|
143
|
+
log: B({}, e, { value: Pe }),
|
|
144
|
+
info: B({}, e, { value: Re }),
|
|
145
|
+
warn: B({}, e, { value: Ge }),
|
|
146
|
+
error: B({}, e, { value: Te }),
|
|
147
|
+
group: B({}, e, { value: Me }),
|
|
148
|
+
groupCollapsed: B({}, e, { value: _e }),
|
|
149
|
+
groupEnd: B({}, e, { value: Ie })
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
|
-
0 >
|
|
152
|
+
0 > ue && console.error(
|
|
152
153
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
153
154
|
);
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
-
if (
|
|
156
|
+
function c(e) {
|
|
157
|
+
if (Ce === void 0)
|
|
157
158
|
try {
|
|
158
159
|
throw Error();
|
|
159
160
|
} catch (f) {
|
|
160
|
-
var
|
|
161
|
-
|
|
161
|
+
var d = f.stack.trim().match(/\n( *(at )?)/);
|
|
162
|
+
Ce = d && d[1] || "", Ae = -1 < f.stack.indexOf(`
|
|
162
163
|
at`) ? " (<anonymous>)" : -1 < f.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
163
164
|
}
|
|
164
165
|
return `
|
|
165
|
-
` +
|
|
166
|
+
` + Ce + e + Ae;
|
|
166
167
|
}
|
|
167
|
-
function m(e,
|
|
168
|
+
function m(e, d) {
|
|
168
169
|
if (!e || je) return "";
|
|
169
170
|
var f = Se.get(e);
|
|
170
171
|
if (f !== void 0) return f;
|
|
171
172
|
je = !0, f = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
172
|
-
var
|
|
173
|
-
|
|
173
|
+
var S = null;
|
|
174
|
+
S = _.H, _.H = null, a();
|
|
174
175
|
try {
|
|
175
|
-
var
|
|
176
|
+
var T = {
|
|
176
177
|
DetermineComponentFrameRoot: function() {
|
|
177
178
|
try {
|
|
178
|
-
if (
|
|
179
|
+
if (d) {
|
|
179
180
|
var Z = function() {
|
|
180
181
|
throw Error();
|
|
181
182
|
};
|
|
@@ -186,96 +187,96 @@ function mt() {
|
|
|
186
187
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
187
188
|
try {
|
|
188
189
|
Reflect.construct(Z, []);
|
|
189
|
-
} catch (
|
|
190
|
-
var ge =
|
|
190
|
+
} catch (H) {
|
|
191
|
+
var ge = H;
|
|
191
192
|
}
|
|
192
193
|
Reflect.construct(e, [], Z);
|
|
193
194
|
} else {
|
|
194
195
|
try {
|
|
195
196
|
Z.call();
|
|
196
|
-
} catch (
|
|
197
|
-
ge =
|
|
197
|
+
} catch (H) {
|
|
198
|
+
ge = H;
|
|
198
199
|
}
|
|
199
200
|
e.call(Z.prototype);
|
|
200
201
|
}
|
|
201
202
|
} else {
|
|
202
203
|
try {
|
|
203
204
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
ge =
|
|
205
|
+
} catch (H) {
|
|
206
|
+
ge = H;
|
|
206
207
|
}
|
|
207
208
|
(Z = e()) && typeof Z.catch == "function" && Z.catch(function() {
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
|
-
} catch (
|
|
211
|
-
if (
|
|
212
|
-
return [
|
|
211
|
+
} catch (H) {
|
|
212
|
+
if (H && ge && typeof H.stack == "string")
|
|
213
|
+
return [H.stack, ge.stack];
|
|
213
214
|
}
|
|
214
215
|
return [null, null];
|
|
215
216
|
}
|
|
216
217
|
};
|
|
217
|
-
|
|
218
|
-
var
|
|
219
|
-
|
|
218
|
+
T.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
219
|
+
var N = Object.getOwnPropertyDescriptor(
|
|
220
|
+
T.DetermineComponentFrameRoot,
|
|
220
221
|
"name"
|
|
221
222
|
);
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
N && N.configurable && Object.defineProperty(
|
|
224
|
+
T.DetermineComponentFrameRoot,
|
|
224
225
|
"name",
|
|
225
226
|
{ value: "DetermineComponentFrameRoot" }
|
|
226
227
|
);
|
|
227
|
-
var
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
230
|
-
`), X =
|
|
228
|
+
var x = T.DetermineComponentFrameRoot(), W = x[0], ae = x[1];
|
|
229
|
+
if (W && ae) {
|
|
230
|
+
var M = W.split(`
|
|
231
|
+
`), X = ae.split(`
|
|
231
232
|
`);
|
|
232
|
-
for (
|
|
233
|
+
for (x = N = 0; N < M.length && !M[N].includes(
|
|
233
234
|
"DetermineComponentFrameRoot"
|
|
234
235
|
); )
|
|
235
|
-
|
|
236
|
-
for (;
|
|
236
|
+
N++;
|
|
237
|
+
for (; x < X.length && !X[x].includes(
|
|
237
238
|
"DetermineComponentFrameRoot"
|
|
238
239
|
); )
|
|
239
|
-
|
|
240
|
-
if (
|
|
241
|
-
for (
|
|
242
|
-
|
|
243
|
-
for (; 1 <=
|
|
244
|
-
if (
|
|
245
|
-
if (
|
|
240
|
+
x++;
|
|
241
|
+
if (N === M.length || x === X.length)
|
|
242
|
+
for (N = M.length - 1, x = X.length - 1; 1 <= N && 0 <= x && M[N] !== X[x]; )
|
|
243
|
+
x--;
|
|
244
|
+
for (; 1 <= N && 0 <= x; N--, x--)
|
|
245
|
+
if (M[N] !== X[x]) {
|
|
246
|
+
if (N !== 1 || x !== 1)
|
|
246
247
|
do
|
|
247
|
-
if (
|
|
248
|
-
var
|
|
249
|
-
` +
|
|
248
|
+
if (N--, x--, 0 > x || M[N] !== X[x]) {
|
|
249
|
+
var de = `
|
|
250
|
+
` + M[N].replace(
|
|
250
251
|
" at new ",
|
|
251
252
|
" at "
|
|
252
253
|
);
|
|
253
|
-
return e.displayName &&
|
|
254
|
+
return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" && Se.set(e, de), de;
|
|
254
255
|
}
|
|
255
|
-
while (1 <=
|
|
256
|
+
while (1 <= N && 0 <= x);
|
|
256
257
|
break;
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
260
|
} finally {
|
|
260
|
-
je = !1, _.H =
|
|
261
|
+
je = !1, _.H = S, l(), Error.prepareStackTrace = f;
|
|
261
262
|
}
|
|
262
|
-
return
|
|
263
|
+
return M = (M = e ? e.displayName || e.name : "") ? c(M) : "", typeof e == "function" && Se.set(e, M), M;
|
|
263
264
|
}
|
|
264
265
|
function p(e) {
|
|
265
266
|
if (e == null) return "";
|
|
266
267
|
if (typeof e == "function") {
|
|
267
|
-
var
|
|
268
|
+
var d = e.prototype;
|
|
268
269
|
return m(
|
|
269
270
|
e,
|
|
270
|
-
!(!
|
|
271
|
+
!(!d || !d.isReactComponent)
|
|
271
272
|
);
|
|
272
273
|
}
|
|
273
|
-
if (typeof e == "string") return
|
|
274
|
+
if (typeof e == "string") return c(e);
|
|
274
275
|
switch (e) {
|
|
275
276
|
case Y:
|
|
276
|
-
return
|
|
277
|
-
case
|
|
278
|
-
return
|
|
277
|
+
return c("Suspense");
|
|
278
|
+
case ie:
|
|
279
|
+
return c("SuspenseList");
|
|
279
280
|
}
|
|
280
281
|
if (typeof e == "object")
|
|
281
282
|
switch (e.$$typeof) {
|
|
@@ -284,9 +285,9 @@ function mt() {
|
|
|
284
285
|
case J:
|
|
285
286
|
return p(e.type);
|
|
286
287
|
case F:
|
|
287
|
-
|
|
288
|
+
d = e._payload, e = e._init;
|
|
288
289
|
try {
|
|
289
|
-
return p(e(
|
|
290
|
+
return p(e(d));
|
|
290
291
|
} catch {
|
|
291
292
|
}
|
|
292
293
|
}
|
|
@@ -296,18 +297,18 @@ function mt() {
|
|
|
296
297
|
var e = _.A;
|
|
297
298
|
return e === null ? null : e.getOwner();
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
300
|
+
function h(e) {
|
|
301
|
+
if (G.call(e, "key")) {
|
|
302
|
+
var d = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
303
|
+
if (d && d.isReactWarning) return !1;
|
|
303
304
|
}
|
|
304
305
|
return e.key !== void 0;
|
|
305
306
|
}
|
|
306
|
-
function L(e,
|
|
307
|
+
function L(e, d) {
|
|
307
308
|
function f() {
|
|
308
309
|
ze || (ze = !0, console.error(
|
|
309
310
|
"%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://react.dev/link/special-props)",
|
|
310
|
-
|
|
311
|
+
d
|
|
311
312
|
));
|
|
312
313
|
}
|
|
313
314
|
f.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
@@ -315,22 +316,22 @@ function mt() {
|
|
|
315
316
|
configurable: !0
|
|
316
317
|
});
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function b() {
|
|
319
320
|
var e = r(this.type);
|
|
320
321
|
return Be[e] || (Be[e] = !0, console.error(
|
|
321
322
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
322
323
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
return f =
|
|
326
|
-
$$typeof:
|
|
325
|
+
function u(e, d, f, S, T, N) {
|
|
326
|
+
return f = N.ref, e = {
|
|
327
|
+
$$typeof: k,
|
|
327
328
|
type: e,
|
|
328
|
-
key:
|
|
329
|
-
props:
|
|
330
|
-
_owner:
|
|
329
|
+
key: d,
|
|
330
|
+
props: N,
|
|
331
|
+
_owner: T
|
|
331
332
|
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
332
333
|
enumerable: !1,
|
|
333
|
-
get:
|
|
334
|
+
get: b
|
|
334
335
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
335
336
|
configurable: !1,
|
|
336
337
|
enumerable: !1,
|
|
@@ -343,122 +344,122 @@ function mt() {
|
|
|
343
344
|
value: null
|
|
344
345
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
-
if (typeof e == "string" || typeof e == "function" || e ===
|
|
348
|
-
var
|
|
349
|
-
if (
|
|
350
|
-
if (
|
|
351
|
-
if (
|
|
352
|
-
for (
|
|
353
|
-
|
|
354
|
-
Object.freeze && Object.freeze(
|
|
347
|
+
function y(e, d, f, S, T, N) {
|
|
348
|
+
if (typeof e == "string" || typeof e == "function" || e === z || e === se || e === ne || e === Y || e === ie || e === ce || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === J || e.$$typeof === D || e.$$typeof === q || e.$$typeof === V || e.$$typeof === he || e.getModuleId !== void 0)) {
|
|
349
|
+
var x = d.children;
|
|
350
|
+
if (x !== void 0)
|
|
351
|
+
if (S)
|
|
352
|
+
if (we(x)) {
|
|
353
|
+
for (S = 0; S < x.length; S++)
|
|
354
|
+
g(x[S], e);
|
|
355
|
+
Object.freeze && Object.freeze(x);
|
|
355
356
|
} else
|
|
356
357
|
console.error(
|
|
357
358
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
358
359
|
);
|
|
359
|
-
else
|
|
360
|
+
else g(x, e);
|
|
360
361
|
} else
|
|
361
|
-
|
|
362
|
+
x = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? S = "null" : we(e) ? S = "array" : e !== void 0 && e.$$typeof === k ? (S = "<" + (r(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, console.error(
|
|
362
363
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
S,
|
|
365
|
+
x
|
|
365
366
|
);
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
var
|
|
369
|
-
return
|
|
367
|
+
if (G.call(d, "key")) {
|
|
368
|
+
x = r(e);
|
|
369
|
+
var W = Object.keys(d).filter(function(M) {
|
|
370
|
+
return M !== "key";
|
|
370
371
|
});
|
|
371
|
-
|
|
372
|
+
S = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", $e[x + S] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
372
373
|
`A props object containing a "key" prop is being spread into JSX:
|
|
373
374
|
let props = %s;
|
|
374
375
|
<%s {...props} />
|
|
375
376
|
React keys must be passed directly to JSX without using spread:
|
|
376
377
|
let props = %s;
|
|
377
378
|
<%s key={someKey} {...props} />`,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
),
|
|
379
|
+
S,
|
|
380
|
+
x,
|
|
381
|
+
W,
|
|
382
|
+
x
|
|
383
|
+
), $e[x + S] = !0);
|
|
383
384
|
}
|
|
384
|
-
if (
|
|
385
|
+
if (x = null, f !== void 0 && (n(f), x = "" + f), h(d) && (n(d.key), x = "" + d.key), "key" in d) {
|
|
385
386
|
f = {};
|
|
386
|
-
for (var
|
|
387
|
-
|
|
388
|
-
} else f =
|
|
389
|
-
return
|
|
387
|
+
for (var ae in d)
|
|
388
|
+
ae !== "key" && (f[ae] = d[ae]);
|
|
389
|
+
} else f = d;
|
|
390
|
+
return x && L(
|
|
390
391
|
f,
|
|
391
392
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
392
|
-
),
|
|
393
|
+
), u(e, x, N, T, v(), f);
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e == "object" && e && e.$$typeof !==
|
|
396
|
-
if (
|
|
395
|
+
function g(e, d) {
|
|
396
|
+
if (typeof e == "object" && e && e.$$typeof !== lt) {
|
|
397
|
+
if (we(e))
|
|
397
398
|
for (var f = 0; f < e.length; f++) {
|
|
398
|
-
var
|
|
399
|
-
|
|
399
|
+
var S = e[f];
|
|
400
|
+
E(S) && C(S, d);
|
|
400
401
|
}
|
|
401
|
-
else if (
|
|
402
|
+
else if (E(e))
|
|
402
403
|
e._store && (e._store.validated = 1);
|
|
403
|
-
else if (e === null || typeof e != "object" ? f = null : (f =
|
|
404
|
+
else if (e === null || typeof e != "object" ? f = null : (f = P && e[P] || e["@@iterator"], f = typeof f == "function" ? f : null), typeof f == "function" && f !== e.entries && (f = f.call(e), f !== e))
|
|
404
405
|
for (; !(e = f.next()).done; )
|
|
405
|
-
|
|
406
|
+
E(e.value) && C(e.value, d);
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
409
|
+
function E(e) {
|
|
410
|
+
return typeof e == "object" && e !== null && e.$$typeof === k;
|
|
410
411
|
}
|
|
411
|
-
function C(e,
|
|
412
|
-
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1,
|
|
413
|
-
|
|
412
|
+
function C(e, d) {
|
|
413
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, d = j(d), !Fe[d])) {
|
|
414
|
+
Fe[d] = !0;
|
|
414
415
|
var f = "";
|
|
415
416
|
e && e._owner != null && e._owner !== v() && (f = null, typeof e._owner.tag == "number" ? f = r(e._owner.type) : typeof e._owner.name == "string" && (f = e._owner.name), f = " It was passed a child from " + f + ".");
|
|
416
|
-
var
|
|
417
|
+
var S = _.getCurrentStack;
|
|
417
418
|
_.getCurrentStack = function() {
|
|
418
|
-
var
|
|
419
|
-
return
|
|
419
|
+
var T = p(e.type);
|
|
420
|
+
return S && (T += S() || ""), T;
|
|
420
421
|
}, console.error(
|
|
421
422
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
422
|
-
|
|
423
|
+
d,
|
|
423
424
|
f
|
|
424
|
-
), _.getCurrentStack =
|
|
425
|
+
), _.getCurrentStack = S;
|
|
425
426
|
}
|
|
426
427
|
}
|
|
427
|
-
function
|
|
428
|
-
var
|
|
429
|
-
return f && (f = r(f.type)) && (
|
|
428
|
+
function j(e) {
|
|
429
|
+
var d = "", f = v();
|
|
430
|
+
return f && (f = r(f.type)) && (d = `
|
|
430
431
|
|
|
431
|
-
Check the render method of \`` + f + "`."),
|
|
432
|
+
Check the render method of \`` + f + "`."), d || (e = r(e)) && (d = `
|
|
432
433
|
|
|
433
|
-
Check the top-level render call using <` + e + ">."),
|
|
434
|
+
Check the top-level render call using <` + e + ">."), d;
|
|
434
435
|
}
|
|
435
|
-
var
|
|
436
|
+
var O = $, k = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), z = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), D = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), ce = Symbol.for("react.offscreen"), P = Symbol.iterator, A = Symbol.for("react.client.reference"), _ = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, B = Object.assign, he = Symbol.for("react.client.reference"), we = Array.isArray, ue = 0, Pe, Re, Ge, Te, Me, _e, Ie;
|
|
436
437
|
i.__reactDisabledLog = !0;
|
|
437
|
-
var
|
|
438
|
-
me.Fragment =
|
|
439
|
-
return
|
|
440
|
-
}, me.jsxs = function(e,
|
|
441
|
-
return
|
|
438
|
+
var Ce, Ae, je = !1, Se = new (typeof WeakMap == "function" ? WeakMap : Map)(), lt = Symbol.for("react.client.reference"), ze, Be = {}, $e = {}, Fe = {};
|
|
439
|
+
me.Fragment = z, me.jsx = function(e, d, f, S, T) {
|
|
440
|
+
return y(e, d, f, !1, S, T);
|
|
441
|
+
}, me.jsxs = function(e, d, f, S, T) {
|
|
442
|
+
return y(e, d, f, !0, S, T);
|
|
442
443
|
};
|
|
443
444
|
}()), me;
|
|
444
445
|
}
|
|
445
446
|
var Ye;
|
|
446
|
-
function
|
|
447
|
-
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? xe.exports =
|
|
447
|
+
function xt() {
|
|
448
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? xe.exports = ht() : xe.exports = gt()), xe.exports;
|
|
448
449
|
}
|
|
449
|
-
var o =
|
|
450
|
-
const Xe =
|
|
451
|
-
const [s, n] =
|
|
452
|
-
return /* @__PURE__ */ o.jsx(Xe.Provider, { value: { isLoading: s, setIsLoading: n, isLoadingComponent: i, setIsLoadingComponent: a, loadingProps: l, setLoadingProps:
|
|
450
|
+
var o = xt();
|
|
451
|
+
const Xe = ee(), Kt = ({ children: r }) => {
|
|
452
|
+
const [s, n] = w(!1), [i, a] = w(!1), [l, c] = w({});
|
|
453
|
+
return /* @__PURE__ */ o.jsx(Xe.Provider, { value: { isLoading: s, setIsLoading: n, isLoadingComponent: i, setIsLoadingComponent: a, loadingProps: l, setLoadingProps: c }, children: r });
|
|
453
454
|
}, pe = () => {
|
|
454
|
-
const r =
|
|
455
|
+
const r = te(Xe);
|
|
455
456
|
if (r === void 0) throw new Error("Non puoi settare il loading");
|
|
456
457
|
return r;
|
|
457
|
-
},
|
|
458
|
+
}, vt = ({ errorMessage: r, errorShow: s }) => /* @__PURE__ */ o.jsx("section", { className: s ? "" : "hidden", children: /* @__PURE__ */ o.jsxs("div", { className: "container mx-auto", children: [
|
|
458
459
|
/* @__PURE__ */ o.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
|
|
459
460
|
/* @__PURE__ */ o.jsx("pre", { className: "text-xl", children: r })
|
|
460
|
-
] }) }),
|
|
461
|
-
const [s, n] =
|
|
461
|
+
] }) }), bt = "0.0.115", Ke = ee(), Qt = ({ children: r }) => {
|
|
462
|
+
const [s, n] = w({}), [i, a] = w(!1), l = `Creare un file config.json in public per il corretto funzionamento
|
|
462
463
|
Esempio di config.json:
|
|
463
464
|
|
|
464
465
|
{
|
|
@@ -485,81 +486,81 @@ Esempio di config.json:
|
|
|
485
486
|
"backendToken": "",
|
|
486
487
|
"isDebug": "",
|
|
487
488
|
"showHeaderButton": ""
|
|
488
|
-
}`,
|
|
489
|
-
const
|
|
490
|
-
return `${
|
|
491
|
-
}, m = (
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
}), p = async (
|
|
498
|
-
let
|
|
499
|
-
return new Promise((
|
|
500
|
-
if (!
|
|
489
|
+
}`, c = () => {
|
|
490
|
+
const u = /* @__PURE__ */ new Date(), y = String(u.getDate()).padStart(2, "0"), g = String(u.getMonth() + 1).padStart(2, "0"), E = u.getFullYear(), C = String(u.getHours()).padStart(2, "0"), j = String(u.getMinutes()).padStart(2, "0"), O = String(u.getSeconds()).padStart(2, "0");
|
|
491
|
+
return `${y}/${g}/${E} ${C}:${j}:${O}`;
|
|
492
|
+
}, m = (u) => new Promise((y, g) => {
|
|
493
|
+
const E = indexedDB.open("configDatabase", 1);
|
|
494
|
+
E.onupgradeneeded = (C) => {
|
|
495
|
+
const j = C.target.result;
|
|
496
|
+
j.objectStoreNames.contains(u) || j.createObjectStore(u, { keyPath: "id" });
|
|
497
|
+
}, E.onsuccess = (C) => y(C.target.result), E.onerror = (C) => g(C.target.error);
|
|
498
|
+
}), p = async (u, y) => {
|
|
499
|
+
let g = await m(u);
|
|
500
|
+
return new Promise((E, C) => {
|
|
501
|
+
if (!g) {
|
|
501
502
|
C("Errore: DB non disponibile");
|
|
502
503
|
return;
|
|
503
504
|
}
|
|
504
|
-
const
|
|
505
|
-
|
|
505
|
+
const j = g == null ? void 0 : g.transaction(u, "readonly"), O = j == null ? void 0 : j.objectStore(u), k = O == null ? void 0 : O.get(y);
|
|
506
|
+
k.onsuccess = () => E(k.result), k.onerror = (R) => C(R.target.error);
|
|
506
507
|
});
|
|
507
|
-
}, v = async (
|
|
508
|
-
let
|
|
509
|
-
return new Promise((
|
|
510
|
-
if (!
|
|
508
|
+
}, v = async (u, y) => {
|
|
509
|
+
let g = await m(u);
|
|
510
|
+
return new Promise((E, C) => {
|
|
511
|
+
if (!g) {
|
|
511
512
|
C("Errore: DB non disponibile");
|
|
512
513
|
return;
|
|
513
514
|
}
|
|
514
|
-
const
|
|
515
|
-
|
|
515
|
+
const j = g == null ? void 0 : g.transaction(u, "readwrite"), O = j == null ? void 0 : j.objectStore(u), k = O == null ? void 0 : O.put(y);
|
|
516
|
+
k.onsuccess = () => E(k.result), k.onerror = (R) => C(R.target.error);
|
|
516
517
|
});
|
|
517
|
-
},
|
|
518
|
-
let
|
|
518
|
+
}, h = async (u) => {
|
|
519
|
+
let y = Date.now(), g;
|
|
519
520
|
do
|
|
520
|
-
|
|
521
|
-
while (
|
|
522
|
-
return
|
|
523
|
-
}, L = async (
|
|
524
|
-
|
|
525
|
-
},
|
|
521
|
+
g = await p(u, y), g && y++;
|
|
522
|
+
while (g);
|
|
523
|
+
return y;
|
|
524
|
+
}, L = async (u, y) => {
|
|
525
|
+
y.id || (y.id = await h(u)), await v(u, y);
|
|
526
|
+
}, b = async () => {
|
|
526
527
|
try {
|
|
527
|
-
const
|
|
528
|
-
let
|
|
529
|
-
|
|
530
|
-
const
|
|
531
|
-
...
|
|
532
|
-
version:
|
|
528
|
+
const y = await (await fetch("/config.json")).json();
|
|
529
|
+
let g;
|
|
530
|
+
y.isDevelopment ? g = bt : g = (await (await fetch("/package.json")).json()).version;
|
|
531
|
+
const E = {
|
|
532
|
+
...y,
|
|
533
|
+
version: g,
|
|
533
534
|
openIndexedDB: m,
|
|
534
535
|
getDataIndexedDB: p,
|
|
535
536
|
setDataIndexedDB: v,
|
|
536
|
-
generateUniqueId:
|
|
537
|
+
generateUniqueId: h,
|
|
537
538
|
setDataWithAutoId: L,
|
|
538
|
-
setCurrentDate:
|
|
539
|
+
setCurrentDate: c
|
|
539
540
|
};
|
|
540
|
-
n(
|
|
541
|
-
} catch (
|
|
542
|
-
console.error(
|
|
541
|
+
n(E);
|
|
542
|
+
} catch (u) {
|
|
543
|
+
console.error(u), a(!0);
|
|
543
544
|
}
|
|
544
545
|
};
|
|
545
|
-
return
|
|
546
|
-
|
|
547
|
-
}, []), Object.keys(s).length === 0 ? /* @__PURE__ */ o.jsx(
|
|
546
|
+
return I(() => {
|
|
547
|
+
b();
|
|
548
|
+
}, []), Object.keys(s).length === 0 ? /* @__PURE__ */ o.jsx(vt, { errorShow: i, errorMessage: l }) : /* @__PURE__ */ o.jsx(Ke.Provider, { value: s, children: r });
|
|
548
549
|
}, U = () => {
|
|
549
|
-
const r =
|
|
550
|
+
const r = te(Ke);
|
|
550
551
|
if (r === void 0) throw new Error("Non puoi leggere i config");
|
|
551
552
|
return r;
|
|
552
|
-
}, xt = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ t.createElement("path", { d: "M 265.136719 0 L 375 109.863281 L 375 265.136719 L 265.136719 375 L 109.863281 375 L 0 265.136719 L 0 109.863281 L 109.863281 0 Z M 265.136719 0 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ t.createElement("path", { d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ t.createElement("path", { d: "M 259.804688 12.878906 L 362.121094 115.195312 L 362.121094 259.804688 L 259.804688 362.121094 L 115.195312 362.121094 L 12.878906 259.804688 L 12.878906 115.195312 L 115.195312 12.878906 Z M 259.804688 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ t.createElement("path", { d: "M 12.878906 12.878906 L 362.109375 12.878906 L 362.109375 362.109375 L 12.878906 362.109375 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ t.createElement("path", { d: "M 259.796875 12.878906 L 362.109375 115.191406 L 362.109375 259.796875 L 259.796875 362.109375 L 115.191406 362.109375 L 12.878906 259.796875 L 12.878906 115.191406 L 115.191406 12.878906 Z M 259.796875 12.878906 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ t.createElement("rect", { x: -37.5, width: 450, fill: "#b91c1c", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ t.createElement("path", { fill: "#b91c1c", d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ t.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 12.879396, 12.879392)", fill: "none", strokeLinejoin: "miter", d: "M 329.223327 -0.000647072 L 465.640003 136.416029 L 465.640003 329.223333 L 329.223327 465.640009 L 136.416023 465.640009 L -0.000653072 329.223333 L -0.000653072 136.416029 L 136.416023 -0.000647072 Z M 329.223327 -0.000647072 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(111.648432, 267.442446)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 2.828125 0 L 56.25 -79.859375 L 3.046875 -159.609375 L 37.28125 -159.609375 L 75.90625 -98.046875 L 114.53125 -159.609375 L 148.765625 -159.609375 L 95.5625 -79.859375 L 148.984375 0 L 114.765625 0 L 75.671875 -60.65625 L 37.046875 0 Z M 2.828125 0 " }))))), vt = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.5 0 C 83.945312 0 0 83.945312 0 187.5 C 0 291.054688 83.945312 375 187.5 375 C 291.054688 375 375 291.054688 375 187.5 C 375 83.945312 291.054688 0 187.5 0 Z M 187.5 0 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ t.createElement("path", { d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.5 18.570312 C 94.203125 18.570312 18.570312 94.203125 18.570312 187.5 C 18.570312 280.796875 94.203125 356.429688 187.5 356.429688 C 280.796875 356.429688 356.429688 280.796875 356.429688 187.5 C 356.429688 94.203125 280.796875 18.570312 187.5 18.570312 Z M 187.5 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ t.createElement("path", { d: "M 18.570312 18.570312 L 356.070312 18.570312 L 356.070312 356.070312 L 18.570312 356.070312 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.496094 18.570312 C 94.199219 18.570312 18.570312 94.199219 18.570312 187.496094 C 18.570312 280.792969 94.199219 356.421875 187.496094 356.421875 C 280.792969 356.421875 356.421875 280.792969 356.421875 187.496094 C 356.421875 94.199219 280.792969 18.570312 187.496094 18.570312 Z M 187.496094 18.570312 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ t.createElement("rect", { x: -37.5, width: 450, fill: "#1d4ed8", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ t.createElement("path", { fill: "#1d4ed8", d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ t.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 18.570291, 18.570286)", fill: "none", strokeLinejoin: "miter", d: "M 225.234419 0.0000349326 C 100.838577 0.0000349326 0.0000289326 100.838583 0.0000289326 225.234425 C 0.0000289326 349.630266 100.838577 450.468815 225.234419 450.468815 C 349.63026 450.468815 450.468809 349.630266 450.468809 225.234425 C 450.468809 100.838583 349.63026 0.0000349326 225.234419 0.0000349326 Z M 225.234419 0.0000349326 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(136.121787, 300.837436)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 60 -193.78125 C 54.707031 -193.78125 50.109375 -195.734375 46.203125 -199.640625 C 42.296875 -203.554688 40.34375 -208.15625 40.34375 -213.4375 C 40.34375 -218.726562 42.296875 -223.328125 46.203125 -227.234375 C 50.109375 -231.140625 54.707031 -233.09375 60 -233.09375 C 65.28125 -233.09375 69.875 -231.140625 73.78125 -227.234375 C 77.695312 -223.328125 79.65625 -218.726562 79.65625 -213.4375 C 79.65625 -208.15625 77.695312 -203.554688 73.78125 -199.640625 C 69.875 -195.734375 65.28125 -193.78125 60 -193.78125 Z M 45.171875 4.828125 C 39.191406 4.828125 35.28125 2.414062 33.4375 -2.40625 C 31.601562 -7.238281 30.6875 -13.675781 30.6875 -21.71875 C 30.6875 -34.59375 31.773438 -47.234375 33.953125 -59.640625 C 36.140625 -72.054688 38.328125 -83.894531 40.515625 -95.15625 C 42.703125 -106.425781 43.796875 -116.890625 43.796875 -126.546875 C 43.796875 -129.078125 43.675781 -131.832031 43.4375 -134.8125 C 43.207031 -137.800781 42.632812 -140.101562 41.71875 -141.71875 C 38.039062 -139.414062 33.269531 -135.617188 27.40625 -130.328125 C 21.550781 -125.046875 16.898438 -119.1875 13.453125 -112.75 C 11.835938 -114.363281 11.03125 -116.550781 11.03125 -119.3125 C 11.03125 -123.21875 12.582031 -127.46875 15.6875 -132.0625 C 18.789062 -136.65625 22.925781 -141.078125 28.09375 -145.328125 C 33.269531 -149.585938 38.847656 -153.097656 44.828125 -155.859375 C 50.804688 -158.617188 56.664062 -160 62.40625 -160 C 67.695312 -160 71.085938 -158.734375 72.578125 -156.203125 C 74.078125 -153.671875 74.828125 -150.453125 74.828125 -146.546875 C 74.828125 -140.796875 74.078125 -133.378906 72.578125 -124.296875 C 71.085938 -115.222656 69.363281 -105.515625 67.40625 -95.171875 C 65.457031 -84.828125 63.734375 -74.484375 62.234375 -64.140625 C 60.742188 -53.796875 60 -44.367188 60 -35.859375 C 60 -31.492188 60.226562 -27.414062 60.6875 -23.625 C 61.144531 -19.832031 61.71875 -16.671875 62.40625 -14.140625 C 68.15625 -16.671875 73.613281 -20.40625 78.78125 -25.34375 C 83.957031 -30.28125 87.8125 -34.9375 90.34375 -39.3125 C 91.71875 -37.238281 92.40625 -35.050781 92.40625 -32.75 C 92.40625 -29.070312 90.796875 -25.050781 87.578125 -20.6875 C 84.359375 -16.320312 80.332031 -12.179688 75.5 -8.265625 C 70.675781 -4.359375 65.5625 -1.203125 60.15625 1.203125 C 54.757812 3.617188 49.765625 4.828125 45.171875 4.828125 Z M 45.171875 4.828125 " }))))), bt = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ t.createElement("path", { d: "M 17.179688 32.695312 L 360 32.695312 L 360 337.5 L 17.179688 337.5 Z M 17.179688 32.695312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ t.createElement("path", { d: "M 207.042969 43.574219 L 356.394531 304.941406 C 360.242188 311.675781 360.214844 319.953125 356.324219 326.660156 C 352.429688 333.371094 345.257812 337.5 337.5 337.5 L 39.375 337.5 C 31.617188 337.5 24.445312 333.371094 20.554688 326.660156 C 16.660156 319.953125 16.632812 311.675781 20.480469 304.941406 L 169.832031 43.574219 C 173.648438 36.898438 180.746094 32.777344 188.4375 32.777344 C 196.128906 32.777344 203.226562 36.898438 207.042969 43.574219 Z M 207.042969 43.574219 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ t.createElement("path", { fill: "#d97706", d: "M 1.875 11.015625 L 375.546875 11.015625 L 375.546875 337.5 L 1.875 337.5 Z M 1.875 11.015625 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(158.410439, 295.655517)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 46.890625 -63.21875 C 46.890625 -63.21875 46.890625 -64.445312 46.890625 -66.90625 L 46.890625 -176.46875 C 46.890625 -178.925781 46.1875 -180.859375 44.78125 -182.265625 C 43.375 -183.671875 41.441406 -184.375 38.984375 -184.375 L 21.078125 -184.375 C 18.617188 -184.375 16.6875 -183.671875 15.28125 -182.265625 C 13.875 -180.859375 13.171875 -178.925781 13.171875 -176.46875 L 13.171875 -66.90625 C 13.171875 -64.445312 13.875 -62.515625 15.28125 -61.109375 C 16.6875 -59.703125 18.617188 -59 21.078125 -59 L 38.984375 -59 C 41.441406 -59 43.375 -59.703125 44.78125 -61.109375 C 46.1875 -62.515625 46.890625 -63.21875 46.890625 -63.21875 Z M 46.890625 -4.21875 C 46.890625 -4.21875 46.890625 -5.445312 46.890625 -7.90625 L 46.890625 -25.546875 C 46.890625 -28.003906 46.1875 -29.9375 44.78125 -31.34375 C 43.375 -32.75 41.441406 -33.453125 38.984375 -33.453125 L 21.078125 -33.453125 C 18.617188 -33.453125 16.6875 -32.75 15.28125 -31.34375 C 13.875 -29.9375 13.171875 -28.003906 13.171875 -25.546875 L 13.171875 -7.90625 C 13.171875 -5.445312 13.875 -3.515625 15.28125 -2.109375 C 16.6875 -0.703125 18.617188 0 21.078125 0 L 38.984375 0 C 41.441406 0 43.375 -0.703125 44.78125 -2.109375 C 46.1875 -3.515625 46.890625 -4.21875 46.890625 -4.21875 Z M 46.890625 -4.21875 " })))));
|
|
553
|
+
}, yt = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ t.createElement("path", { d: "M 265.136719 0 L 375 109.863281 L 375 265.136719 L 265.136719 375 L 109.863281 375 L 0 265.136719 L 0 109.863281 L 109.863281 0 Z M 265.136719 0 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ t.createElement("path", { d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ t.createElement("path", { d: "M 259.804688 12.878906 L 362.121094 115.195312 L 362.121094 259.804688 L 259.804688 362.121094 L 115.195312 362.121094 L 12.878906 259.804688 L 12.878906 115.195312 L 115.195312 12.878906 Z M 259.804688 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ t.createElement("path", { d: "M 12.878906 12.878906 L 362.109375 12.878906 L 362.109375 362.109375 L 12.878906 362.109375 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ t.createElement("path", { d: "M 259.796875 12.878906 L 362.109375 115.191406 L 362.109375 259.796875 L 259.796875 362.109375 L 115.191406 362.109375 L 12.878906 259.796875 L 12.878906 115.191406 L 115.191406 12.878906 Z M 259.796875 12.878906 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ t.createElement("rect", { x: -37.5, width: 450, fill: "#b91c1c", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ t.createElement("path", { fill: "#b91c1c", d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ t.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 12.879396, 12.879392)", fill: "none", strokeLinejoin: "miter", d: "M 329.223327 -0.000647072 L 465.640003 136.416029 L 465.640003 329.223333 L 329.223327 465.640009 L 136.416023 465.640009 L -0.000653072 329.223333 L -0.000653072 136.416029 L 136.416023 -0.000647072 Z M 329.223327 -0.000647072 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(111.648432, 267.442446)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 2.828125 0 L 56.25 -79.859375 L 3.046875 -159.609375 L 37.28125 -159.609375 L 75.90625 -98.046875 L 114.53125 -159.609375 L 148.765625 -159.609375 L 95.5625 -79.859375 L 148.984375 0 L 114.765625 0 L 75.671875 -60.65625 L 37.046875 0 Z M 2.828125 0 " }))))), Et = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.5 0 C 83.945312 0 0 83.945312 0 187.5 C 0 291.054688 83.945312 375 187.5 375 C 291.054688 375 375 291.054688 375 187.5 C 375 83.945312 291.054688 0 187.5 0 Z M 187.5 0 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ t.createElement("path", { d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.5 18.570312 C 94.203125 18.570312 18.570312 94.203125 18.570312 187.5 C 18.570312 280.796875 94.203125 356.429688 187.5 356.429688 C 280.796875 356.429688 356.429688 280.796875 356.429688 187.5 C 356.429688 94.203125 280.796875 18.570312 187.5 18.570312 Z M 187.5 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ t.createElement("path", { d: "M 18.570312 18.570312 L 356.070312 18.570312 L 356.070312 356.070312 L 18.570312 356.070312 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ t.createElement("path", { d: "M 187.496094 18.570312 C 94.199219 18.570312 18.570312 94.199219 18.570312 187.496094 C 18.570312 280.792969 94.199219 356.421875 187.496094 356.421875 C 280.792969 356.421875 356.421875 280.792969 356.421875 187.496094 C 356.421875 94.199219 280.792969 18.570312 187.496094 18.570312 Z M 187.496094 18.570312 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ t.createElement("rect", { x: -37.5, width: 450, fill: "#1d4ed8", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ t.createElement("path", { fill: "#1d4ed8", d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ t.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 18.570291, 18.570286)", fill: "none", strokeLinejoin: "miter", d: "M 225.234419 0.0000349326 C 100.838577 0.0000349326 0.0000289326 100.838583 0.0000289326 225.234425 C 0.0000289326 349.630266 100.838577 450.468815 225.234419 450.468815 C 349.63026 450.468815 450.468809 349.630266 450.468809 225.234425 C 450.468809 100.838583 349.63026 0.0000349326 225.234419 0.0000349326 Z M 225.234419 0.0000349326 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(136.121787, 300.837436)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 60 -193.78125 C 54.707031 -193.78125 50.109375 -195.734375 46.203125 -199.640625 C 42.296875 -203.554688 40.34375 -208.15625 40.34375 -213.4375 C 40.34375 -218.726562 42.296875 -223.328125 46.203125 -227.234375 C 50.109375 -231.140625 54.707031 -233.09375 60 -233.09375 C 65.28125 -233.09375 69.875 -231.140625 73.78125 -227.234375 C 77.695312 -223.328125 79.65625 -218.726562 79.65625 -213.4375 C 79.65625 -208.15625 77.695312 -203.554688 73.78125 -199.640625 C 69.875 -195.734375 65.28125 -193.78125 60 -193.78125 Z M 45.171875 4.828125 C 39.191406 4.828125 35.28125 2.414062 33.4375 -2.40625 C 31.601562 -7.238281 30.6875 -13.675781 30.6875 -21.71875 C 30.6875 -34.59375 31.773438 -47.234375 33.953125 -59.640625 C 36.140625 -72.054688 38.328125 -83.894531 40.515625 -95.15625 C 42.703125 -106.425781 43.796875 -116.890625 43.796875 -126.546875 C 43.796875 -129.078125 43.675781 -131.832031 43.4375 -134.8125 C 43.207031 -137.800781 42.632812 -140.101562 41.71875 -141.71875 C 38.039062 -139.414062 33.269531 -135.617188 27.40625 -130.328125 C 21.550781 -125.046875 16.898438 -119.1875 13.453125 -112.75 C 11.835938 -114.363281 11.03125 -116.550781 11.03125 -119.3125 C 11.03125 -123.21875 12.582031 -127.46875 15.6875 -132.0625 C 18.789062 -136.65625 22.925781 -141.078125 28.09375 -145.328125 C 33.269531 -149.585938 38.847656 -153.097656 44.828125 -155.859375 C 50.804688 -158.617188 56.664062 -160 62.40625 -160 C 67.695312 -160 71.085938 -158.734375 72.578125 -156.203125 C 74.078125 -153.671875 74.828125 -150.453125 74.828125 -146.546875 C 74.828125 -140.796875 74.078125 -133.378906 72.578125 -124.296875 C 71.085938 -115.222656 69.363281 -105.515625 67.40625 -95.171875 C 65.457031 -84.828125 63.734375 -74.484375 62.234375 -64.140625 C 60.742188 -53.796875 60 -44.367188 60 -35.859375 C 60 -31.492188 60.226562 -27.414062 60.6875 -23.625 C 61.144531 -19.832031 61.71875 -16.671875 62.40625 -14.140625 C 68.15625 -16.671875 73.613281 -20.40625 78.78125 -25.34375 C 83.957031 -30.28125 87.8125 -34.9375 90.34375 -39.3125 C 91.71875 -37.238281 92.40625 -35.050781 92.40625 -32.75 C 92.40625 -29.070312 90.796875 -25.050781 87.578125 -20.6875 C 84.359375 -16.320312 80.332031 -12.179688 75.5 -8.265625 C 70.675781 -4.359375 65.5625 -1.203125 60.15625 1.203125 C 54.757812 3.617188 49.765625 4.828125 45.171875 4.828125 Z M 45.171875 4.828125 " }))))), wt = (r) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...r }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("g", null), /* @__PURE__ */ t.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ t.createElement("path", { d: "M 17.179688 32.695312 L 360 32.695312 L 360 337.5 L 17.179688 337.5 Z M 17.179688 32.695312 ", clipRule: "nonzero" })), /* @__PURE__ */ t.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ t.createElement("path", { d: "M 207.042969 43.574219 L 356.394531 304.941406 C 360.242188 311.675781 360.214844 319.953125 356.324219 326.660156 C 352.429688 333.371094 345.257812 337.5 337.5 337.5 L 39.375 337.5 C 31.617188 337.5 24.445312 333.371094 20.554688 326.660156 C 16.660156 319.953125 16.632812 311.675781 20.480469 304.941406 L 169.832031 43.574219 C 173.648438 36.898438 180.746094 32.777344 188.4375 32.777344 C 196.128906 32.777344 203.226562 36.898438 207.042969 43.574219 Z M 207.042969 43.574219 ", clipRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ t.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ t.createElement("path", { fill: "#d97706", d: "M 1.875 11.015625 L 375.546875 11.015625 L 375.546875 337.5 L 1.875 337.5 Z M 1.875 11.015625 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ t.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ t.createElement("g", { transform: "translate(158.410439, 295.655517)" }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M 46.890625 -63.21875 C 46.890625 -63.21875 46.890625 -64.445312 46.890625 -66.90625 L 46.890625 -176.46875 C 46.890625 -178.925781 46.1875 -180.859375 44.78125 -182.265625 C 43.375 -183.671875 41.441406 -184.375 38.984375 -184.375 L 21.078125 -184.375 C 18.617188 -184.375 16.6875 -183.671875 15.28125 -182.265625 C 13.875 -180.859375 13.171875 -178.925781 13.171875 -176.46875 L 13.171875 -66.90625 C 13.171875 -64.445312 13.875 -62.515625 15.28125 -61.109375 C 16.6875 -59.703125 18.617188 -59 21.078125 -59 L 38.984375 -59 C 41.441406 -59 43.375 -59.703125 44.78125 -61.109375 C 46.1875 -62.515625 46.890625 -63.21875 46.890625 -63.21875 Z M 46.890625 -4.21875 C 46.890625 -4.21875 46.890625 -5.445312 46.890625 -7.90625 L 46.890625 -25.546875 C 46.890625 -28.003906 46.1875 -29.9375 44.78125 -31.34375 C 43.375 -32.75 41.441406 -33.453125 38.984375 -33.453125 L 21.078125 -33.453125 C 18.617188 -33.453125 16.6875 -32.75 15.28125 -31.34375 C 13.875 -29.9375 13.171875 -28.003906 13.171875 -25.546875 L 13.171875 -7.90625 C 13.171875 -5.445312 13.875 -3.515625 15.28125 -2.109375 C 16.6875 -0.703125 18.617188 0 21.078125 0 L 38.984375 0 C 41.441406 0 43.375 -0.703125 44.78125 -2.109375 C 46.1875 -3.515625 46.890625 -4.21875 46.890625 -4.21875 Z M 46.890625 -4.21875 " })))));
|
|
553
554
|
var Qe = {
|
|
554
555
|
color: void 0,
|
|
555
556
|
size: void 0,
|
|
556
557
|
className: void 0,
|
|
557
558
|
style: void 0,
|
|
558
559
|
attr: void 0
|
|
559
|
-
}, Ze =
|
|
560
|
-
function
|
|
560
|
+
}, Ze = $.createContext && /* @__PURE__ */ $.createContext(Qe), Ct = ["attr", "size", "title"];
|
|
561
|
+
function jt(r, s) {
|
|
561
562
|
if (r == null) return {};
|
|
562
|
-
var n =
|
|
563
|
+
var n = St(r, s), i, a;
|
|
563
564
|
if (Object.getOwnPropertySymbols) {
|
|
564
565
|
var l = Object.getOwnPropertySymbols(r);
|
|
565
566
|
for (a = 0; a < l.length; a++)
|
|
@@ -567,7 +568,7 @@ function Et(r, s) {
|
|
|
567
568
|
}
|
|
568
569
|
return n;
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
+
function St(r, s) {
|
|
571
572
|
if (r == null) return {};
|
|
572
573
|
var n = {};
|
|
573
574
|
for (var i in r)
|
|
@@ -601,21 +602,21 @@ function ye(r) {
|
|
|
601
602
|
for (var s = 1; s < arguments.length; s++) {
|
|
602
603
|
var n = arguments[s] != null ? arguments[s] : {};
|
|
603
604
|
s % 2 ? Ue(Object(n), !0).forEach(function(i) {
|
|
604
|
-
|
|
605
|
+
kt(r, i, n[i]);
|
|
605
606
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(i) {
|
|
606
607
|
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
607
608
|
});
|
|
608
609
|
}
|
|
609
610
|
return r;
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
-
return s =
|
|
612
|
+
function kt(r, s, n) {
|
|
613
|
+
return s = Ot(s), s in r ? Object.defineProperty(r, s, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[s] = n, r;
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
-
var s =
|
|
615
|
+
function Ot(r) {
|
|
616
|
+
var s = Lt(r, "string");
|
|
616
617
|
return typeof s == "symbol" ? s : s + "";
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
+
function Lt(r, s) {
|
|
619
620
|
if (typeof r != "object" || !r) return r;
|
|
620
621
|
var n = r[Symbol.toPrimitive];
|
|
621
622
|
if (n !== void 0) {
|
|
@@ -626,27 +627,27 @@ function St(r, s) {
|
|
|
626
627
|
return (s === "string" ? String : Number)(r);
|
|
627
628
|
}
|
|
628
629
|
function et(r) {
|
|
629
|
-
return r && r.map((s, n) => /* @__PURE__ */
|
|
630
|
+
return r && r.map((s, n) => /* @__PURE__ */ $.createElement(s.tag, ye({
|
|
630
631
|
key: n
|
|
631
632
|
}, s.attr), et(s.child)));
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
-
return (s) => /* @__PURE__ */
|
|
634
|
+
function re(r) {
|
|
635
|
+
return (s) => /* @__PURE__ */ $.createElement(Nt, be({
|
|
635
636
|
attr: ye({}, r.attr)
|
|
636
637
|
}, s), et(r.child));
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
+
function Nt(r) {
|
|
639
640
|
var s = (n) => {
|
|
640
641
|
var {
|
|
641
642
|
attr: i,
|
|
642
643
|
size: a,
|
|
643
644
|
title: l
|
|
644
|
-
} = r,
|
|
645
|
-
return n.className && (p = n.className), r.className && (p = (p ? p + " " : "") + r.className), /* @__PURE__ */
|
|
645
|
+
} = r, c = jt(r, Ct), m = a || n.size || "1em", p;
|
|
646
|
+
return n.className && (p = n.className), r.className && (p = (p ? p + " " : "") + r.className), /* @__PURE__ */ $.createElement("svg", be({
|
|
646
647
|
stroke: "currentColor",
|
|
647
648
|
fill: "currentColor",
|
|
648
649
|
strokeWidth: "0"
|
|
649
|
-
}, n.attr, i,
|
|
650
|
+
}, n.attr, i, c, {
|
|
650
651
|
className: p,
|
|
651
652
|
style: ye(ye({
|
|
652
653
|
color: r.color || n.color
|
|
@@ -654,21 +655,21 @@ function Ot(r) {
|
|
|
654
655
|
height: m,
|
|
655
656
|
width: m,
|
|
656
657
|
xmlns: "http://www.w3.org/2000/svg"
|
|
657
|
-
}), l && /* @__PURE__ */
|
|
658
|
+
}), l && /* @__PURE__ */ $.createElement("title", null, l), r.children);
|
|
658
659
|
};
|
|
659
|
-
return Ze !== void 0 ? /* @__PURE__ */
|
|
660
|
+
return Ze !== void 0 ? /* @__PURE__ */ $.createElement(Ze.Consumer, null, (n) => s(n)) : s(Qe);
|
|
660
661
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
662
|
+
function Pt(r) {
|
|
663
|
+
return re({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M17.47 250.9C88.82 328.1 158 397.6 224.5 485.5c72.3-143.8 146.3-288.1 268.4-444.37L460 26.06C356.9 135.4 276.8 238.9 207.2 361.9c-48.4-43.6-126.62-105.3-174.38-137z" }, child: [] }] })(r);
|
|
663
664
|
}
|
|
664
|
-
const tt =
|
|
665
|
-
const [s, n] =
|
|
665
|
+
const tt = ee(), e0 = ({ children: r }) => {
|
|
666
|
+
const [s, n] = w(!1), [i, a] = w(), [l, c] = w(), L = {
|
|
666
667
|
showAlert: s,
|
|
667
668
|
setShowAlert: n,
|
|
668
669
|
typeAlert: i,
|
|
669
670
|
setTypeAlert: a,
|
|
670
671
|
messageAlert: l,
|
|
671
|
-
setMessageAlert:
|
|
672
|
+
setMessageAlert: c,
|
|
672
673
|
alertConfig: {
|
|
673
674
|
danger: {
|
|
674
675
|
bgColor: "bg-danger",
|
|
@@ -703,153 +704,153 @@ const tt = ie(), Ut = ({ children: r }) => {
|
|
|
703
704
|
progressColor: "bg-warning-progress"
|
|
704
705
|
}
|
|
705
706
|
},
|
|
706
|
-
getIcon: (
|
|
707
|
-
switch (
|
|
707
|
+
getIcon: (b) => {
|
|
708
|
+
switch (b) {
|
|
708
709
|
case "danger":
|
|
709
|
-
return /* @__PURE__ */ o.jsx(
|
|
710
|
+
return /* @__PURE__ */ o.jsx(yt, { className: "w-[20px] h-[20px]" });
|
|
710
711
|
case "info":
|
|
711
|
-
return /* @__PURE__ */ o.jsx(
|
|
712
|
+
return /* @__PURE__ */ o.jsx(Et, { className: "w-[20px] h-[20px]" });
|
|
712
713
|
case "success":
|
|
713
|
-
return /* @__PURE__ */ o.jsx(
|
|
714
|
+
return /* @__PURE__ */ o.jsx(Pt, { className: "text-xl" });
|
|
714
715
|
case "warning":
|
|
715
|
-
return /* @__PURE__ */ o.jsx(
|
|
716
|
+
return /* @__PURE__ */ o.jsx(wt, { className: "w-[20px] h-[20px]" });
|
|
716
717
|
}
|
|
717
718
|
},
|
|
718
719
|
closeAlert: () => {
|
|
719
720
|
n(!s);
|
|
720
721
|
},
|
|
721
|
-
activeAlert: (
|
|
722
|
+
activeAlert: (b, u) => {
|
|
722
723
|
n(!1), setTimeout(() => {
|
|
723
|
-
a(
|
|
724
|
+
a(b), c(u), n(!0);
|
|
724
725
|
}, 50);
|
|
725
726
|
}
|
|
726
727
|
};
|
|
727
728
|
return /* @__PURE__ */ o.jsx(tt.Provider, { value: L, children: r });
|
|
728
|
-
},
|
|
729
|
-
const r =
|
|
729
|
+
}, oe = () => {
|
|
730
|
+
const r = te(tt);
|
|
730
731
|
if (r === void 0) throw new Error("Non puoi modificare l'alert");
|
|
731
732
|
return r;
|
|
732
733
|
};
|
|
733
|
-
let
|
|
734
|
-
const
|
|
735
|
-
if (
|
|
734
|
+
let le;
|
|
735
|
+
const Rt = async (r, s, n) => {
|
|
736
|
+
if (le) return le;
|
|
736
737
|
try {
|
|
737
|
-
const a = await (await fetch("/config.json")).json(), l = a.baseUri, { unauthorized:
|
|
738
|
-
return
|
|
738
|
+
const a = await (await fetch("/config.json")).json(), l = a.baseUri, { unauthorized: c, notFound: m, defaultMessage: p } = a.axiosErrors, v = a.axiosTimeout;
|
|
739
|
+
return le = mt.create({
|
|
739
740
|
baseURL: l,
|
|
740
741
|
timeout: v
|
|
741
|
-
}),
|
|
742
|
-
(
|
|
743
|
-
),
|
|
744
|
-
(
|
|
745
|
-
(
|
|
746
|
-
if (
|
|
747
|
-
switch (r(!0), s("danger"),
|
|
742
|
+
}), le.interceptors.request.use(
|
|
743
|
+
(h) => h
|
|
744
|
+
), le.interceptors.response.use(
|
|
745
|
+
(h) => h,
|
|
746
|
+
(h) => {
|
|
747
|
+
if (h.response)
|
|
748
|
+
switch (r(!0), s("danger"), h.response.status) {
|
|
748
749
|
case 401:
|
|
749
|
-
localStorage.removeItem("accessToken"), n(
|
|
750
|
+
localStorage.removeItem("accessToken"), n(c);
|
|
750
751
|
break;
|
|
751
752
|
case 404:
|
|
752
753
|
n(m);
|
|
753
754
|
break;
|
|
754
755
|
default:
|
|
755
|
-
n(`${p} ${
|
|
756
|
+
n(`${p} ${h.response.status || ""} ${h.response.data.error || ""}`);
|
|
756
757
|
}
|
|
757
|
-
return Promise.reject(
|
|
758
|
+
return Promise.reject(h);
|
|
758
759
|
}
|
|
759
|
-
),
|
|
760
|
+
), le;
|
|
760
761
|
} catch (i) {
|
|
761
762
|
console.error(i);
|
|
762
763
|
}
|
|
763
|
-
}, rt =
|
|
764
|
-
const { heartbeatEndpoint: s, firstPrivatePath: n, infiniteSession: i, timeDeducted: a, authenticatedEndpoint: l, autoLogin:
|
|
765
|
-
|
|
764
|
+
}, rt = ee(), t0 = ({ children: r }) => {
|
|
765
|
+
const { heartbeatEndpoint: s, firstPrivatePath: n, infiniteSession: i, timeDeducted: a, authenticatedEndpoint: l, autoLogin: c, setCurrentDate: m, isDebug: p, backendToken: v } = U(), { setIsLoading: h } = pe(), { setShowAlert: L, setMessageAlert: b, setTypeAlert: u, activeAlert: y } = oe(), g = Le(), [E, C] = w(null), [j, O] = w(), [k, R] = w(), [z, ne] = w(), [se, q] = w(!1), D = async () => await Rt(L, u, b), V = async (P = null, A) => {
|
|
766
|
+
P && P.preventDefault(), q(!0);
|
|
766
767
|
try {
|
|
767
|
-
|
|
768
|
-
const
|
|
768
|
+
h(!0), L(!1);
|
|
769
|
+
const G = await (await D()).post(l, {
|
|
769
770
|
auth: A
|
|
770
|
-
}),
|
|
771
|
-
|
|
771
|
+
}), B = G.headers.token, he = G.data;
|
|
772
|
+
B && (localStorage.setItem("accessToken", B), localStorage.setItem("user", JSON.stringify(he)), C(!0), O(B), g(`${n}${he.id}`));
|
|
772
773
|
} catch (_) {
|
|
773
774
|
console.error(_);
|
|
774
775
|
} finally {
|
|
775
|
-
q(!1),
|
|
776
|
+
q(!1), h(!1);
|
|
776
777
|
}
|
|
777
778
|
}, Y = () => {
|
|
778
|
-
localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"), C(!1),
|
|
779
|
-
},
|
|
779
|
+
localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"), C(!1), O(null);
|
|
780
|
+
}, ie = async () => {
|
|
780
781
|
try {
|
|
781
|
-
const
|
|
782
|
+
const P = localStorage.getItem("accessToken"), G = (await (await D()).get(
|
|
782
783
|
`${s}`,
|
|
783
784
|
{
|
|
784
785
|
headers: {
|
|
785
|
-
Authorization:
|
|
786
|
+
Authorization: P
|
|
786
787
|
}
|
|
787
788
|
}
|
|
788
789
|
)).headers.token;
|
|
789
|
-
localStorage.setItem("accessToken",
|
|
790
|
-
} catch (
|
|
791
|
-
console.error(
|
|
790
|
+
localStorage.setItem("accessToken", G), O(G), p && console.log("nuovo token: ", G, "Data:", m());
|
|
791
|
+
} catch (P) {
|
|
792
|
+
console.error(P), Y();
|
|
792
793
|
}
|
|
793
794
|
}, J = () => {
|
|
794
|
-
if (!
|
|
795
|
+
if (!j)
|
|
795
796
|
return;
|
|
796
|
-
const A =
|
|
797
|
-
|
|
798
|
-
}, F = async (
|
|
797
|
+
const A = ut(j).exp, _ = Math.floor(Date.now() / 1e3), G = (A - _) * 1e3;
|
|
798
|
+
ne(G), R(G - a);
|
|
799
|
+
}, F = async (P) => {
|
|
799
800
|
try {
|
|
800
|
-
const
|
|
801
|
+
const G = (await (await D()).get(
|
|
801
802
|
s,
|
|
802
803
|
{
|
|
803
804
|
headers: {
|
|
804
|
-
Authorization:
|
|
805
|
+
Authorization: P
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
808
|
)).data;
|
|
808
|
-
|
|
809
|
+
G && (localStorage.setItem("user", JSON.stringify(G)), localStorage.setItem("accessToken", P), C(!0), g(`${n}${G.id}`));
|
|
809
810
|
} catch (A) {
|
|
810
811
|
console.error(A);
|
|
811
812
|
}
|
|
812
813
|
};
|
|
813
|
-
|
|
814
|
+
I(() => {
|
|
814
815
|
if (localStorage.getItem("accessToken"))
|
|
815
816
|
C(!0);
|
|
816
817
|
else {
|
|
817
818
|
C(!1);
|
|
818
819
|
return;
|
|
819
820
|
}
|
|
820
|
-
}, []),
|
|
821
|
-
|
|
822
|
-
}, [
|
|
823
|
-
|
|
824
|
-
}, [
|
|
825
|
-
if (
|
|
821
|
+
}, []), I(() => {
|
|
822
|
+
c && F(v);
|
|
823
|
+
}, [c]), I(() => {
|
|
824
|
+
E || c && !se && F(v);
|
|
825
|
+
}, [E]), I(() => {
|
|
826
|
+
if (c) return;
|
|
826
827
|
J();
|
|
827
|
-
let
|
|
828
|
-
i &&
|
|
829
|
-
|
|
830
|
-
},
|
|
828
|
+
let P;
|
|
829
|
+
i && j && k && (P = setInterval(() => {
|
|
830
|
+
ie();
|
|
831
|
+
}, k));
|
|
831
832
|
let A;
|
|
832
|
-
return !i &&
|
|
833
|
-
Y(),
|
|
834
|
-
},
|
|
835
|
-
|
|
833
|
+
return !i && j && z && (A = setTimeout(() => {
|
|
834
|
+
Y(), y("danger", "Sessione scaduta");
|
|
835
|
+
}, z)), () => {
|
|
836
|
+
P && clearInterval(P), A && clearTimeout(A);
|
|
836
837
|
};
|
|
837
|
-
}, [
|
|
838
|
+
}, [j, k]);
|
|
838
839
|
const ce = {
|
|
839
|
-
isAuthenticated:
|
|
840
|
+
isAuthenticated: E,
|
|
840
841
|
setIsAuthenticated: C,
|
|
841
842
|
login: V,
|
|
842
843
|
logout: Y,
|
|
843
|
-
setCurrentToken:
|
|
844
|
-
createAxiosInstances:
|
|
844
|
+
setCurrentToken: O,
|
|
845
|
+
createAxiosInstances: D
|
|
845
846
|
};
|
|
846
847
|
return /* @__PURE__ */ o.jsx(rt.Provider, { value: ce, children: r });
|
|
847
848
|
}, Ee = () => {
|
|
848
|
-
const r =
|
|
849
|
+
const r = te(rt);
|
|
849
850
|
if (r === void 0) throw new Error("Non sei dentro al Auth Provider");
|
|
850
851
|
return r;
|
|
851
|
-
}, ot =
|
|
852
|
-
const r =
|
|
852
|
+
}, ot = ee(), r0 = ({ children: r, publicRoutes: s = [], privateRoutes: n = [] }) => /* @__PURE__ */ o.jsx(ot.Provider, { value: { publicRoutes: s, privateRoutes: n }, children: r }), Gt = () => {
|
|
853
|
+
const r = te(ot);
|
|
853
854
|
if (r === void 0)
|
|
854
855
|
throw new Error(
|
|
855
856
|
`Errore: Le rotte non sono state inizializzate correttamente.
|
|
@@ -863,235 +864,352 @@ Esempio:
|
|
|
863
864
|
</RouteProvider>`
|
|
864
865
|
);
|
|
865
866
|
return r;
|
|
866
|
-
}, nt =
|
|
867
|
+
}, nt = ee(), o0 = ({ children: r }) => {
|
|
867
868
|
const { login: s } = Ee(), { clearLoginFormOnError: n } = U(), i = {
|
|
868
869
|
email: "",
|
|
869
870
|
password: ""
|
|
870
|
-
}, [a, l] =
|
|
871
|
-
overrideStyle:
|
|
871
|
+
}, [a, l] = w("Accedi"), [c, m] = w("Email"), [p, v] = w("email"), [h, L] = w("example@example.it"), [b, u] = w("Accedi"), [y, g] = w(i), [E, C] = w(), [j, O] = w(), [k, R] = w(), [z, ne] = w(), [se, q] = w({}), [D, V] = w(null), J = {
|
|
872
|
+
overrideStyle: se,
|
|
872
873
|
setOverrideStyle: q,
|
|
873
874
|
title: a,
|
|
874
875
|
setTitle: l,
|
|
875
|
-
label:
|
|
876
|
+
label: c,
|
|
876
877
|
setLabel: m,
|
|
877
878
|
type: p,
|
|
878
879
|
setType: v,
|
|
879
|
-
placeholder:
|
|
880
|
+
placeholder: h,
|
|
880
881
|
setPlaceholder: L,
|
|
881
|
-
buttonText:
|
|
882
|
-
setButtonText:
|
|
883
|
-
formData:
|
|
884
|
-
setFormData:
|
|
885
|
-
LogoImg:
|
|
882
|
+
buttonText: b,
|
|
883
|
+
setButtonText: u,
|
|
884
|
+
formData: y,
|
|
885
|
+
setFormData: g,
|
|
886
|
+
LogoImg: E,
|
|
886
887
|
setLogoImg: C,
|
|
887
|
-
styleCardForm:
|
|
888
|
-
setStyleCardForm:
|
|
889
|
-
styleContainerLogo:
|
|
890
|
-
setStyleContainerLogo:
|
|
891
|
-
styleLogo:
|
|
892
|
-
setStyleLogo:
|
|
888
|
+
styleCardForm: j,
|
|
889
|
+
setStyleCardForm: O,
|
|
890
|
+
styleContainerLogo: k,
|
|
891
|
+
setStyleContainerLogo: R,
|
|
892
|
+
styleLogo: z,
|
|
893
|
+
setStyleLogo: ne,
|
|
893
894
|
changeData: (F, ce) => {
|
|
894
|
-
|
|
895
|
+
g((P) => ({ ...P, [F]: ce }));
|
|
895
896
|
},
|
|
896
897
|
handleLogin: (F) => {
|
|
897
|
-
s(F,
|
|
898
|
+
s(F, y), n && g(i);
|
|
898
899
|
},
|
|
899
|
-
customVersion:
|
|
900
|
+
customVersion: D,
|
|
900
901
|
setCustomVersion: V
|
|
901
902
|
};
|
|
902
903
|
return /* @__PURE__ */ o.jsx(nt.Provider, { value: J, children: r });
|
|
903
904
|
}, st = () => {
|
|
904
|
-
const r =
|
|
905
|
+
const r = te(nt);
|
|
905
906
|
if (r === void 0) throw new Error("Non puoi modificare La login");
|
|
906
907
|
return r;
|
|
908
|
+
}, it = ee(), n0 = ({ children: r }) => {
|
|
909
|
+
const [s, n] = w(!1), [i, a] = w(null), [l, c] = w(""), [m, p] = w(null), [v, h] = w(null), [L, b] = w("default"), g = { isOpen: s, openModal: ({ content: E, title: C = "", onConfirm: j = null, type: O = "default", item: k = null }) => {
|
|
910
|
+
a(E), c(C), p(() => j), b(O), h(k), n(!0);
|
|
911
|
+
}, closeModal: () => {
|
|
912
|
+
n(!1), a(null), c(""), p(null), h(null), b("default");
|
|
913
|
+
}, content: i, title: l, onConfirm: m, type: L, item: v };
|
|
914
|
+
return /* @__PURE__ */ o.jsx(it.Provider, { value: g, children: r });
|
|
915
|
+
}, Tt = () => {
|
|
916
|
+
const r = te(it);
|
|
917
|
+
if (r === void 0) throw new Error("Non sei all'interno del ModalProvider");
|
|
918
|
+
return r;
|
|
907
919
|
};
|
|
908
|
-
function
|
|
909
|
-
return
|
|
920
|
+
function at(r) {
|
|
921
|
+
return re({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 0c-4.355 0-7.898 3.481-7.998 7.812 0.092-3.779 2.966-6.812 6.498-6.812 3.59 0 6.5 3.134 6.5 7 0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-4.418-3.582-8-8-8zM8 16c4.355 0 7.898-3.481 7.998-7.812-0.092 3.779-2.966 6.812-6.498 6.812-3.59 0-6.5-3.134-6.5-7 0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5c0 4.418 3.582 8 8 8z" }, child: [] }] })(r);
|
|
910
922
|
}
|
|
911
|
-
const
|
|
912
|
-
const { loadingProps: r } = pe(), { spinner: s = !0, spinnerStyle: n, text: i, textStyle: a, children: l, containerStyle:
|
|
913
|
-
return /* @__PURE__ */ o.jsxs("div", { className: m.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${
|
|
914
|
-
s && /* @__PURE__ */ o.jsx(
|
|
923
|
+
const Mt = () => {
|
|
924
|
+
const { loadingProps: r } = pe(), { spinner: s = !0, spinnerStyle: n, text: i, textStyle: a, children: l, containerStyle: c, overrideStyle: m = {} } = r;
|
|
925
|
+
return /* @__PURE__ */ o.jsxs("div", { className: m.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${c}`, children: [
|
|
926
|
+
s && /* @__PURE__ */ o.jsx(at, { className: m.spinner || `text-[20rem] relative animate-spin text-spinner ${n}` }),
|
|
915
927
|
l || /* @__PURE__ */ o.jsx("p", { className: m.text || `text-white text-2xl select-none absolute ${a}`, children: i || "Loading..." })
|
|
916
928
|
] });
|
|
917
929
|
};
|
|
918
|
-
function
|
|
919
|
-
return
|
|
930
|
+
function _t(r) {
|
|
931
|
+
return re({ tag: "svg", attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z", fill: "currentColor" }, child: [] }] })(r);
|
|
920
932
|
}
|
|
921
933
|
const qe = () => {
|
|
922
|
-
const { messageAlert: r, typeAlert: s, alertConfig: n, getIcon: i, closeAlert: a } =
|
|
923
|
-
return
|
|
924
|
-
let
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
m((
|
|
934
|
+
const { messageAlert: r, typeAlert: s, alertConfig: n, getIcon: i, closeAlert: a } = oe(), { alertTimeout: l } = U(), [c, m] = w(0), { bgColor: p, textColor: v, buttonBg: h, hoverBg: L, focusRing: b, progressColor: u } = n[s];
|
|
935
|
+
return I(() => {
|
|
936
|
+
let y;
|
|
937
|
+
const E = 100 / (l / 100);
|
|
938
|
+
y = setInterval(() => {
|
|
939
|
+
m((j) => j >= 100 ? (clearInterval(y), 100) : j + E);
|
|
928
940
|
}, 100);
|
|
929
941
|
const C = setTimeout(() => {
|
|
930
942
|
a();
|
|
931
943
|
}, l);
|
|
932
944
|
return () => {
|
|
933
|
-
clearTimeout(C), clearInterval(
|
|
945
|
+
clearTimeout(C), clearInterval(y);
|
|
934
946
|
};
|
|
935
947
|
}, []), /* @__PURE__ */ o.jsxs("div", { className: `flex items-center p-4 pt-6 ${v} rounded-lg ${p} mx-auto max-sm:min-w-[280px] sm:max-w-1/3 fixed top-[calc(100vh-100px)] sm:right-10 right-1/2 translate-x-1/2 sm:translate-0 z-100`, role: "alert", children: [
|
|
936
|
-
/* @__PURE__ */ o.jsx("div", { className: "w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 absolute top-0 left-0 right-0", children: /* @__PURE__ */ o.jsx("div", { className: `${
|
|
948
|
+
/* @__PURE__ */ o.jsx("div", { className: "w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 absolute top-0 left-0 right-0", children: /* @__PURE__ */ o.jsx("div", { className: `${u} h-2.5 rounded-t-lg`, style: { width: `${c}%` } }) }),
|
|
937
949
|
i(s),
|
|
938
950
|
/* @__PURE__ */ o.jsx("div", { className: "px-4 text-sm font-medium", children: r }),
|
|
939
951
|
/* @__PURE__ */ o.jsx(
|
|
940
952
|
"button",
|
|
941
953
|
{
|
|
942
954
|
type: "button",
|
|
943
|
-
className: `ms-auto ${
|
|
955
|
+
className: `ms-auto ${h} rounded-lg focus:ring-2 ${b} p-1.5 ${L} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
|
|
944
956
|
title: "Close",
|
|
945
957
|
onClick: a,
|
|
946
|
-
children: /* @__PURE__ */ o.jsx(
|
|
958
|
+
children: /* @__PURE__ */ o.jsx(_t, { className: "text-xl" })
|
|
947
959
|
}
|
|
948
960
|
)
|
|
949
961
|
] });
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
962
|
+
};
|
|
963
|
+
function It(r) {
|
|
964
|
+
return re({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "18", y1: "6", x2: "6", y2: "18" }, child: [] }, { tag: "line", attr: { x1: "6", y1: "6", x2: "18", y2: "18" }, child: [] }] })(r);
|
|
965
|
+
}
|
|
966
|
+
const At = ({ isOpen: r, onClose: s, title: n, formId: i, children: a, item: l, onConfirm: c, type: m = "default" }) => {
|
|
967
|
+
const p = ct(null), [v, h] = w(r), L = () => {
|
|
968
|
+
r || h(!1);
|
|
969
|
+
};
|
|
970
|
+
return I(() => {
|
|
971
|
+
r && h(!0);
|
|
972
|
+
}, [r]), I(() => {
|
|
973
|
+
const b = (u) => {
|
|
974
|
+
u.key === "Escape" && s();
|
|
975
|
+
};
|
|
976
|
+
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
977
|
+
}, [s]), I(() => {
|
|
978
|
+
var b;
|
|
979
|
+
if (r) {
|
|
980
|
+
const u = document.activeElement;
|
|
981
|
+
return (b = p.current) == null || b.focus(), () => u == null ? void 0 : u.focus();
|
|
982
|
+
}
|
|
983
|
+
}, [r]), v ? pt.createPortal(
|
|
984
|
+
/* @__PURE__ */ o.jsx(
|
|
985
|
+
"div",
|
|
986
|
+
{
|
|
987
|
+
className: `fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-200 ${r ? "bg-black/50 opacity-100" : "opacity-0"}`,
|
|
988
|
+
onClick: s,
|
|
989
|
+
onTransitionEnd: L,
|
|
990
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
991
|
+
"div",
|
|
992
|
+
{
|
|
993
|
+
ref: p,
|
|
994
|
+
className: `relative bg-white rounded-lg p-6 shadow-xl min-w-[300px] max-w-[90%] ${m === "delete" ? "w-[400px]" : "w-1/2"} transform transition-transform duration-200 ${r ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
|
|
995
|
+
onClick: (b) => b.stopPropagation(),
|
|
996
|
+
role: "dialog",
|
|
997
|
+
"aria-modal": "true",
|
|
998
|
+
tabIndex: -1,
|
|
999
|
+
children: [
|
|
1000
|
+
/* @__PURE__ */ o.jsxs("header", { className: `flex items-center justify-between mb-4 ${m === "delete" ? "gap-8" : ""}`, children: [
|
|
1001
|
+
m === "delete" ? /* @__PURE__ */ o.jsxs("h2", { className: "text-2xl", children: [
|
|
1002
|
+
"Sei sicuro di volere eliminare: ",
|
|
1003
|
+
/* @__PURE__ */ o.jsx("strong", { children: l.name }),
|
|
1004
|
+
"?"
|
|
1005
|
+
] }) : /* @__PURE__ */ o.jsx("h2", { className: "text-2xl", children: n || "Conferma operazione" }),
|
|
1006
|
+
/* @__PURE__ */ o.jsx(
|
|
1007
|
+
"button",
|
|
1008
|
+
{
|
|
1009
|
+
onClick: s,
|
|
1010
|
+
className: "text-gray-500 hover:text-gray-700 cursor-pointer transition-transform duration-150 ease-in-out hover:scale-110 hover:opacity-80 active:scale-95 active:opacity-60",
|
|
1011
|
+
"aria-label": "Chiudi modale",
|
|
1012
|
+
children: /* @__PURE__ */ o.jsx(It, { className: "text-2xl" })
|
|
1013
|
+
}
|
|
1014
|
+
)
|
|
1015
|
+
] }),
|
|
1016
|
+
m !== "delete" && /* @__PURE__ */ o.jsx("main", { className: "my-8", children: a }),
|
|
1017
|
+
/* @__PURE__ */ o.jsxs("footer", { className: "flex items-center justify-between mt-4", children: [
|
|
1018
|
+
/* @__PURE__ */ o.jsx(
|
|
1019
|
+
"button",
|
|
1020
|
+
{
|
|
1021
|
+
onClick: s,
|
|
1022
|
+
className: "px-4 py-2 cursor-pointer text-sm font-medium text-gray-800 bg-gray-300 rounded-lg shadow-md hover:bg-gray-400 hover:shadow-lg active:bg-gray-500 active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70",
|
|
1023
|
+
children: "Annulla"
|
|
1024
|
+
}
|
|
1025
|
+
),
|
|
1026
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
1027
|
+
m !== "delete" && /* @__PURE__ */ o.jsx(
|
|
1028
|
+
"button",
|
|
1029
|
+
{
|
|
1030
|
+
type: "reset",
|
|
1031
|
+
form: i,
|
|
1032
|
+
className: "px-4 py-2 cursor-pointer text-sm font-medium text-white bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700 active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70",
|
|
1033
|
+
children: "Reset"
|
|
1034
|
+
}
|
|
1035
|
+
),
|
|
1036
|
+
/* @__PURE__ */ o.jsx(
|
|
1037
|
+
"button",
|
|
1038
|
+
{
|
|
1039
|
+
form: i,
|
|
1040
|
+
onClick: () => {
|
|
1041
|
+
c(), s();
|
|
1042
|
+
},
|
|
1043
|
+
className: `${m === "delete" ? "bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700" : "bg-indigo-600 rounded-lg shadow-md hover:bg-indigo-700 hover:shadow-lg active:bg-indigo-800"} px-4 py-2 cursor-pointer text-sm font-medium text-white active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
|
|
1044
|
+
children: m === "delete" ? "Elimina" : "Salva"
|
|
1045
|
+
}
|
|
1046
|
+
)
|
|
1047
|
+
] })
|
|
1048
|
+
] })
|
|
1049
|
+
]
|
|
1050
|
+
}
|
|
1051
|
+
)
|
|
1052
|
+
}
|
|
1053
|
+
),
|
|
1054
|
+
document.body
|
|
1055
|
+
) : null;
|
|
1056
|
+
}, zt = (r) => {
|
|
1057
|
+
const { isLoading: s } = pe(), { showAlert: n } = oe(), { isOpen: i, closeModal: a, content: l, title: c, onConfirm: m, item: p, type: v } = Tt(), h = Ne(), {
|
|
1058
|
+
isMain: L = !0,
|
|
1059
|
+
headerComponent: b = null,
|
|
954
1060
|
showHeaderOnLogin: u = !1,
|
|
955
|
-
headerExcludedRoutes:
|
|
956
|
-
footerComponent:
|
|
957
|
-
showFooterOnLogin:
|
|
958
|
-
footerExcludedRoutes:
|
|
959
|
-
} = r,
|
|
960
|
-
let
|
|
961
|
-
|
|
962
|
-
const
|
|
963
|
-
let
|
|
964
|
-
return
|
|
965
|
-
s && /* @__PURE__ */ o.jsx(
|
|
1061
|
+
headerExcludedRoutes: y = [],
|
|
1062
|
+
footerComponent: g = null,
|
|
1063
|
+
showFooterOnLogin: E = !1,
|
|
1064
|
+
footerExcludedRoutes: C = []
|
|
1065
|
+
} = r, j = y.some((z) => De(z, h.pathname));
|
|
1066
|
+
let O;
|
|
1067
|
+
h.pathname === "/" ? O = b && u : O = b && !j;
|
|
1068
|
+
const k = C.some((z) => De(z, h.pathname));
|
|
1069
|
+
let R;
|
|
1070
|
+
return h.pathname === "/" ? R = g && E : R = g && !k, /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1071
|
+
s && /* @__PURE__ */ o.jsx(Mt, {}),
|
|
966
1072
|
n && /* @__PURE__ */ o.jsx(qe, {}),
|
|
967
|
-
|
|
968
|
-
|
|
1073
|
+
/* @__PURE__ */ o.jsx(
|
|
1074
|
+
At,
|
|
1075
|
+
{
|
|
1076
|
+
isOpen: i,
|
|
1077
|
+
onClose: a,
|
|
1078
|
+
title: c,
|
|
1079
|
+
onConfirm: m,
|
|
1080
|
+
type: v,
|
|
1081
|
+
item: p,
|
|
1082
|
+
children: l
|
|
1083
|
+
}
|
|
1084
|
+
),
|
|
1085
|
+
O && b,
|
|
1086
|
+
L ? /* @__PURE__ */ o.jsxs("main", { className: s ? "hidden" : "", children: [
|
|
969
1087
|
n && /* @__PURE__ */ o.jsx(qe, {}),
|
|
970
1088
|
/* @__PURE__ */ o.jsx(Q, {})
|
|
971
1089
|
] }) : /* @__PURE__ */ o.jsx(Q, {}),
|
|
972
|
-
|
|
1090
|
+
R && g
|
|
973
1091
|
] });
|
|
974
|
-
},
|
|
1092
|
+
}, ke = (r) => {
|
|
975
1093
|
const {
|
|
976
1094
|
inputType: s,
|
|
977
1095
|
inputId: n,
|
|
978
1096
|
inputPlaceholder: i,
|
|
979
1097
|
inputRequired: a,
|
|
980
1098
|
inputValue: l,
|
|
981
|
-
inputChange:
|
|
1099
|
+
inputChange: c,
|
|
982
1100
|
autoFocus: m,
|
|
983
1101
|
inputStyle: p,
|
|
984
1102
|
overrideStyle: v,
|
|
985
|
-
disabled:
|
|
986
|
-
} = r,
|
|
1103
|
+
disabled: h
|
|
1104
|
+
} = r, b = ["text", "email", "password", "search", "tel", "url"].includes(s) ? s : "text";
|
|
987
1105
|
return /* @__PURE__ */ o.jsx(
|
|
988
1106
|
"input",
|
|
989
1107
|
{
|
|
990
|
-
type:
|
|
1108
|
+
type: b,
|
|
991
1109
|
autoFocus: m,
|
|
992
1110
|
id: n,
|
|
993
1111
|
className: v || `bg-input-bg border border-input-border text-input-text text-input-placeholder input-rounded focus:ring focus:ring-primary focus:border-primary focus:outline-none focus:shadow-(--shadow-primary-input) block w-full p-input ${p}`,
|
|
994
1112
|
placeholder: i,
|
|
995
1113
|
required: a ?? !0,
|
|
996
1114
|
value: l,
|
|
997
|
-
onChange:
|
|
998
|
-
disabled:
|
|
1115
|
+
onChange: c,
|
|
1116
|
+
disabled: h
|
|
999
1117
|
}
|
|
1000
1118
|
);
|
|
1001
|
-
},
|
|
1002
|
-
const { title: r, label: s, type: n, placeholder: i, buttonText: a, formData: l, changeData:
|
|
1119
|
+
}, Oe = ({ label: r, labelId: s, labelStyle: n, overrideStyle: i }) => /* @__PURE__ */ o.jsx("label", { htmlFor: s, className: i || `show-label mb-1 sm:mb-2 text-input-label font-medium text-color-label ${n}`, children: r }), Bt = () => {
|
|
1120
|
+
const { title: r, label: s, type: n, placeholder: i, buttonText: a, formData: l, changeData: c, handleLogin: m, overrideStyle: p } = st();
|
|
1003
1121
|
return /* @__PURE__ */ o.jsxs("form", { onSubmit: m, className: p.form || "form-size", children: [
|
|
1004
1122
|
/* @__PURE__ */ o.jsx("h1", { className: p.title || "text-form-title-size show-title title-position m-form-title", children: r }),
|
|
1005
1123
|
/* @__PURE__ */ o.jsxs("div", { className: p.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
|
|
1006
|
-
/* @__PURE__ */ o.jsx(
|
|
1124
|
+
/* @__PURE__ */ o.jsx(Oe, { labelId: "user-email", label: s }),
|
|
1007
1125
|
/* @__PURE__ */ o.jsx(
|
|
1008
|
-
|
|
1126
|
+
ke,
|
|
1009
1127
|
{
|
|
1010
1128
|
inputType: n,
|
|
1011
1129
|
inputId: "user-email",
|
|
1012
1130
|
inputPlaceholder: i,
|
|
1013
1131
|
inputValue: l.email,
|
|
1014
1132
|
inputChange: (v) => {
|
|
1015
|
-
|
|
1133
|
+
c("email", v.target.value);
|
|
1016
1134
|
},
|
|
1017
1135
|
autoFocus: !0
|
|
1018
1136
|
}
|
|
1019
1137
|
)
|
|
1020
1138
|
] }),
|
|
1021
1139
|
/* @__PURE__ */ o.jsxs("div", { className: p.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
|
|
1022
|
-
/* @__PURE__ */ o.jsx(
|
|
1140
|
+
/* @__PURE__ */ o.jsx(Oe, { labelId: "password", label: "Password" }),
|
|
1023
1141
|
/* @__PURE__ */ o.jsx(
|
|
1024
|
-
|
|
1142
|
+
ke,
|
|
1025
1143
|
{
|
|
1026
1144
|
inputType: "password",
|
|
1027
1145
|
inputId: "password",
|
|
1028
1146
|
inputPlaceholder: "Password",
|
|
1029
1147
|
inputValue: l.password,
|
|
1030
1148
|
inputChange: (v) => {
|
|
1031
|
-
|
|
1149
|
+
c("password", v.target.value);
|
|
1032
1150
|
}
|
|
1033
1151
|
}
|
|
1034
1152
|
)
|
|
1035
1153
|
] }),
|
|
1036
1154
|
/* @__PURE__ */ o.jsx("div", { className: p.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ o.jsx("button", { className: p.button || "font-bold cursor-pointer shadow-(--shadow-primary) transition-all duration-200 hover:shadow-(--shadow-primary-hover) active:shadow-(--shadow-primary-active) active:translate-y-[2px] p-primary-button rounded-primary-button bg-primary hover:bg-primary-hover text-primary-text", children: a }) })
|
|
1037
1155
|
] });
|
|
1038
|
-
},
|
|
1039
|
-
const { styleCardForm: s, styleContainerLogo: n, styleLogo: i, overrideStyle: a, customVersion: l } = st(), { firstPrivatePath:
|
|
1040
|
-
return
|
|
1156
|
+
}, $t = ({ Logo: r }) => {
|
|
1157
|
+
const { styleCardForm: s, styleContainerLogo: n, styleLogo: i, overrideStyle: a, customVersion: l } = st(), { firstPrivatePath: c, version: m } = U(), p = Le();
|
|
1158
|
+
return I(() => {
|
|
1041
1159
|
const v = JSON.parse(localStorage.getItem("user"));
|
|
1042
|
-
localStorage.getItem("accessToken") && v.id && p(`${
|
|
1160
|
+
localStorage.getItem("accessToken") && v.id && p(`${c}${v.id}`);
|
|
1043
1161
|
}, []), /* @__PURE__ */ o.jsxs("section", { id: "login-page", children: [
|
|
1044
1162
|
(m || l) && /* @__PURE__ */ o.jsx("div", { className: "text-md text-primary absolute top-4 left-4", children: l || m }),
|
|
1045
1163
|
/* @__PURE__ */ o.jsx("div", { className: a.container || "container mx-auto flex items-center justify-center h-screen", children: /* @__PURE__ */ o.jsxs("div", { className: a.cardForm || `bg-form card-style card-size flex flex-col sm:flex-row sm:items-center justify-center ${s}`, children: [
|
|
1046
1164
|
/* @__PURE__ */ o.jsx("div", { className: a.containerLogo || `basis-1/2 flex items-center justify-center ${n}`, children: r && /* @__PURE__ */ o.jsx(r, { className: a.logo || `login-logo h-full sm:h-auto ${i}` }) }),
|
|
1047
|
-
/* @__PURE__ */ o.jsx(
|
|
1165
|
+
/* @__PURE__ */ o.jsx(Bt, {})
|
|
1048
1166
|
] }) })
|
|
1049
1167
|
] });
|
|
1050
1168
|
}, ve = () => {
|
|
1051
|
-
const { isAuthenticated: r } = Ee(), { activeAlert: s } =
|
|
1052
|
-
return
|
|
1169
|
+
const { isAuthenticated: r } = Ee(), { activeAlert: s } = oe(), { autoLogin: n } = U();
|
|
1170
|
+
return I(() => {
|
|
1053
1171
|
const i = localStorage.getItem("accessToken");
|
|
1054
1172
|
!r && !i && !n && s("danger", "Non sei autorizzato");
|
|
1055
1173
|
}, []), r === null ? null : r ? /* @__PURE__ */ o.jsx(Q, {}) : /* @__PURE__ */ o.jsx(Je, { to: "/", replace: !0 });
|
|
1056
|
-
},
|
|
1057
|
-
const { logout: r, setCurrentToken: s, createAxiosInstances: n } = Ee(), { usersEndpoint: i } = U(), { setIsLoading: a } = pe(), { activeAlert: l } =
|
|
1174
|
+
}, Ft = () => {
|
|
1175
|
+
const { logout: r, setCurrentToken: s, createAxiosInstances: n } = Ee(), { usersEndpoint: i } = U(), { setIsLoading: a } = pe(), { activeAlert: l } = oe(), [c, m] = w(null), [p, v] = w(!1), h = JSON.parse(localStorage.getItem("user")), L = async () => {
|
|
1058
1176
|
try {
|
|
1059
1177
|
v(!0);
|
|
1060
|
-
const
|
|
1061
|
-
if (!
|
|
1178
|
+
const u = localStorage.getItem("accessToken");
|
|
1179
|
+
if (!u) {
|
|
1062
1180
|
r(), l("danger", "Sessione Scaduta");
|
|
1063
1181
|
return;
|
|
1064
1182
|
}
|
|
1065
|
-
const
|
|
1183
|
+
const E = (await (await n()).get(
|
|
1066
1184
|
`${i}`,
|
|
1067
1185
|
{
|
|
1068
1186
|
headers: {
|
|
1069
|
-
Authorization: `Bearer ${
|
|
1187
|
+
Authorization: `Bearer ${u}`
|
|
1070
1188
|
}
|
|
1071
1189
|
}
|
|
1072
1190
|
)).data;
|
|
1073
|
-
m(
|
|
1074
|
-
} catch (
|
|
1075
|
-
console.error(
|
|
1191
|
+
m(E);
|
|
1192
|
+
} catch (u) {
|
|
1193
|
+
console.error(u), a(!1);
|
|
1076
1194
|
} finally {
|
|
1077
1195
|
v(!1);
|
|
1078
1196
|
}
|
|
1079
|
-
},
|
|
1197
|
+
}, b = () => {
|
|
1080
1198
|
r(), l("info", "Hai effettuato il logout");
|
|
1081
1199
|
};
|
|
1082
|
-
return
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1200
|
+
return I(() => {
|
|
1201
|
+
const u = localStorage.getItem("accessToken");
|
|
1202
|
+
u && s(u);
|
|
1085
1203
|
}, []), /* @__PURE__ */ o.jsx("section", { children: /* @__PURE__ */ o.jsxs("div", { className: "container mx-auto py-8", children: [
|
|
1086
1204
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-center gap-8 h-20", children: [
|
|
1087
1205
|
/* @__PURE__ */ o.jsxs("h1", { className: "text-4xl text-center text-slate-800", children: [
|
|
1088
1206
|
"Email: ",
|
|
1089
|
-
|
|
1207
|
+
h.email
|
|
1090
1208
|
] }),
|
|
1091
1209
|
/* @__PURE__ */ o.jsx(
|
|
1092
1210
|
"button",
|
|
1093
1211
|
{
|
|
1094
|
-
onClick:
|
|
1212
|
+
onClick: b,
|
|
1095
1213
|
className: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full cursor-pointer shadow-[0_4px_10px_rgba(239,68,68,0.3),0_2px_4px_rgba(239,68,68,0.2)] hover:shadow-[0_6px_14px_rgba(185,28,28,0.4),0_3px_6px_rgba(185,28,28,0.3)] active:shadow-[0_2px_5px_rgba(239,68,68,0.3)] transition-all duration-200 active:translate-y-[2px]",
|
|
1096
1214
|
children: "Logout"
|
|
1097
1215
|
}
|
|
@@ -1106,13 +1224,13 @@ const qe = () => {
|
|
|
1106
1224
|
children: "Lista degli utenti"
|
|
1107
1225
|
}
|
|
1108
1226
|
) }),
|
|
1109
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex justify-center items-center", children:
|
|
1110
|
-
|
|
1227
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex justify-center items-center", children: c && /* @__PURE__ */ o.jsx("ul", { children: c.map((u) => /* @__PURE__ */ o.jsxs("li", { className: "text-xl my-4", children: [
|
|
1228
|
+
u.id,
|
|
1111
1229
|
" - ",
|
|
1112
|
-
|
|
1113
|
-
] }, `user-${
|
|
1230
|
+
u.email
|
|
1231
|
+
] }, `user-${u.id}`)) }) })
|
|
1114
1232
|
] }) });
|
|
1115
|
-
},
|
|
1233
|
+
}, Dt = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm", height: "108.41262mm", viewBox: "0 0 108.41262 108.41262", id: "svg1", xmlSpace: "preserve", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", "xmlns:svg": "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ t.createElement("defs", { id: "defs1" }, /* @__PURE__ */ t.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ t.createElement("stop", { style: {
|
|
1116
1234
|
stopColor: "#ff0000",
|
|
1117
1235
|
stopOpacity: 1
|
|
1118
1236
|
}, offset: 0, id: "stop27" }), /* @__PURE__ */ t.createElement("stop", { style: {
|
|
@@ -1158,73 +1276,73 @@ const qe = () => {
|
|
|
1158
1276
|
strokeWidth: 0,
|
|
1159
1277
|
strokeOpacity: 1,
|
|
1160
1278
|
paintOrder: "stroke markers fill"
|
|
1161
|
-
}, d: "", id: "path40", transform: "scale(0.26458333)" }))),
|
|
1162
|
-
const { publicRoutes: s, privateRoutes: n } =
|
|
1163
|
-
logoImg: a =
|
|
1279
|
+
}, d: "", id: "path40", transform: "scale(0.26458333)" }))), s0 = (r) => {
|
|
1280
|
+
const { publicRoutes: s, privateRoutes: n } = Gt(), { firstPrivatePath: i } = U(), {
|
|
1281
|
+
logoImg: a = Dt,
|
|
1164
1282
|
pathImg: l = "./src/assets/MyWarehouse.svg",
|
|
1165
|
-
firstPrivateElement:
|
|
1283
|
+
firstPrivateElement: c = /* @__PURE__ */ o.jsx(Ft, {}),
|
|
1166
1284
|
globalLayout: m,
|
|
1167
1285
|
isMain: p,
|
|
1168
1286
|
headerComponent: v,
|
|
1169
|
-
showHeaderOnLogin:
|
|
1287
|
+
showHeaderOnLogin: h,
|
|
1170
1288
|
headerExcludedRoutes: L,
|
|
1171
|
-
footerComponent:
|
|
1172
|
-
showFooterOnLogin:
|
|
1173
|
-
footerExcludedRoutes:
|
|
1174
|
-
privateProvider:
|
|
1175
|
-
customProvider:
|
|
1289
|
+
footerComponent: b,
|
|
1290
|
+
showFooterOnLogin: u,
|
|
1291
|
+
footerExcludedRoutes: y,
|
|
1292
|
+
privateProvider: g,
|
|
1293
|
+
customProvider: E
|
|
1176
1294
|
} = r, C = m || /* @__PURE__ */ o.jsx(
|
|
1177
|
-
|
|
1295
|
+
zt,
|
|
1178
1296
|
{
|
|
1179
1297
|
isMain: p,
|
|
1180
1298
|
headerComponent: v,
|
|
1181
|
-
showHeaderOnLogin:
|
|
1299
|
+
showHeaderOnLogin: h,
|
|
1182
1300
|
headerExcludedRoutes: L,
|
|
1183
|
-
footerComponent:
|
|
1184
|
-
showFooterOnLogin:
|
|
1185
|
-
footerExcludedRoutes:
|
|
1301
|
+
footerComponent: b,
|
|
1302
|
+
showFooterOnLogin: u,
|
|
1303
|
+
footerExcludedRoutes: y
|
|
1186
1304
|
}
|
|
1187
|
-
),
|
|
1188
|
-
|
|
1305
|
+
), j = g ? $.cloneElement(
|
|
1306
|
+
g,
|
|
1189
1307
|
{},
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1308
|
+
E ? $.createElement(
|
|
1309
|
+
E.type,
|
|
1310
|
+
E.props,
|
|
1193
1311
|
/* @__PURE__ */ o.jsx(ve, { children: /* @__PURE__ */ o.jsx(Q, {}) })
|
|
1194
1312
|
) : /* @__PURE__ */ o.jsx(ve, { children: /* @__PURE__ */ o.jsx(Q, {}) })
|
|
1195
|
-
) :
|
|
1196
|
-
|
|
1197
|
-
|
|
1313
|
+
) : E ? $.createElement(
|
|
1314
|
+
E.type,
|
|
1315
|
+
E.props,
|
|
1198
1316
|
/* @__PURE__ */ o.jsx(ve, { children: /* @__PURE__ */ o.jsx(Q, {}) })
|
|
1199
|
-
) : /* @__PURE__ */ o.jsx(ve, { children: /* @__PURE__ */ o.jsx(Q, {}) }),
|
|
1200
|
-
const
|
|
1201
|
-
l && (
|
|
1317
|
+
) : /* @__PURE__ */ o.jsx(ve, { children: /* @__PURE__ */ o.jsx(Q, {}) }), O = () => {
|
|
1318
|
+
const k = document.querySelector("link[rel='icon']");
|
|
1319
|
+
l && (k.href = l);
|
|
1202
1320
|
};
|
|
1203
|
-
return
|
|
1204
|
-
|
|
1205
|
-
}, []), /* @__PURE__ */ o.jsx(
|
|
1321
|
+
return I(() => {
|
|
1322
|
+
O();
|
|
1323
|
+
}, []), /* @__PURE__ */ o.jsx(dt, { children: /* @__PURE__ */ o.jsxs(K, { element: m === "none" ? null : C, children: [
|
|
1206
1324
|
/* @__PURE__ */ o.jsxs(K, { path: "/", children: [
|
|
1207
|
-
/* @__PURE__ */ o.jsx(K, { index: !0, element: /* @__PURE__ */ o.jsx(
|
|
1208
|
-
s.map((
|
|
1325
|
+
/* @__PURE__ */ o.jsx(K, { index: !0, element: /* @__PURE__ */ o.jsx($t, { Logo: a }) }),
|
|
1326
|
+
s.map((k, R) => /* @__PURE__ */ o.jsx(K, { path: k.path, element: k.element }, `public-${R}`))
|
|
1209
1327
|
] }),
|
|
1210
|
-
/* @__PURE__ */ o.jsxs(K, { element:
|
|
1211
|
-
/* @__PURE__ */ o.jsx(K, { path: `${i ?? "/dashboard/"}:id`, element:
|
|
1212
|
-
n.map((
|
|
1328
|
+
/* @__PURE__ */ o.jsxs(K, { element: j, children: [
|
|
1329
|
+
/* @__PURE__ */ o.jsx(K, { path: `${i ?? "/dashboard/"}:id`, element: c }),
|
|
1330
|
+
n.map((k, R) => /* @__PURE__ */ o.jsx(K, { path: k.path, element: k.element }, `private-${R}`))
|
|
1213
1331
|
] })
|
|
1214
1332
|
] }) });
|
|
1215
|
-
},
|
|
1333
|
+
}, i0 = ({ children: r }) => {
|
|
1216
1334
|
var a;
|
|
1217
|
-
const s =
|
|
1218
|
-
return
|
|
1335
|
+
const s = Ne(), { activeAlert: n } = oe(), i = JSON.parse(localStorage.getItem("user"));
|
|
1336
|
+
return I(() => {
|
|
1219
1337
|
(!i || !i.admin) && n("warning", "Non puoi accedere a questa pagina");
|
|
1220
1338
|
}, [i]), !i || !i.admin ? /* @__PURE__ */ o.jsx(Je, { to: ((a = s.state) == null ? void 0 : a.from) || "/", replace: !0 }) : r;
|
|
1221
|
-
},
|
|
1222
|
-
r && /* @__PURE__ */ o.jsx(
|
|
1223
|
-
a || /* @__PURE__ */ o.jsx("p", { className:
|
|
1224
|
-
] }), Ve = ({ isTag: r = !1, value: s, label: n, placeholder: i, id: a, onChange: l, error:
|
|
1225
|
-
/* @__PURE__ */ o.jsx(
|
|
1339
|
+
}, a0 = ({ spinner: r = !0, spinnerStyle: s, text: n, textStyle: i, children: a, containerStyle: l, overrideStyle: c = {} }) => /* @__PURE__ */ o.jsxs("div", { className: c.container || `w-full h-full relative flex items-center justify-center ${l}`, children: [
|
|
1340
|
+
r && /* @__PURE__ */ o.jsx(at, { className: c.spinner || `text-[20rem] animate-spin text-black ${s}` }),
|
|
1341
|
+
a || /* @__PURE__ */ o.jsx("p", { className: c.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${i}`, children: n || "Loading..." })
|
|
1342
|
+
] }), Ve = ({ isTag: r = !1, value: s, label: n, placeholder: i, id: a, onChange: l, error: c = null }) => /* @__PURE__ */ o.jsxs("div", { className: `flex items-center justify-center relative ${r ? "gap-4 mb-2" : "gap-1 m-4"}`, children: [
|
|
1343
|
+
/* @__PURE__ */ o.jsx(Oe, { labelId: a, label: n, overrideStyle: `text-xl font-bold text-color-label ${r ? "" : "basis-1/3"}` }),
|
|
1226
1344
|
/* @__PURE__ */ o.jsx(
|
|
1227
|
-
|
|
1345
|
+
ke,
|
|
1228
1346
|
{
|
|
1229
1347
|
type: "text",
|
|
1230
1348
|
inputId: a,
|
|
@@ -1232,11 +1350,11 @@ const qe = () => {
|
|
|
1232
1350
|
inputValue: s || "",
|
|
1233
1351
|
disabled: r,
|
|
1234
1352
|
inputChange: l,
|
|
1235
|
-
overrideStyle: `${r ? "w-full" : "basis-2/3"} ${
|
|
1353
|
+
overrideStyle: `${r ? "w-full" : "basis-2/3"} ${c ? "border-red-600 focus:ring focus:ring-red-600 focus:border-red-600 focus:shadow-[0_0_0_4px_rgba(255,0,0,0.5)]" : ""} bg-input-bg border border-input-border text-input-text text-input-placeholder input-rounded focus:ring focus:ring-focus-ring focus:border-spot-rfid-input-border focus:outline-none focus:shadow-spot-rfid-input block w-full p-input`
|
|
1236
1354
|
}
|
|
1237
1355
|
),
|
|
1238
|
-
|
|
1239
|
-
] }),
|
|
1356
|
+
c && /* @__PURE__ */ o.jsx("p", { className: "text-red-600 text-[13px] absolute bottom-0 left-26 translate-y-[20px]", children: c })
|
|
1357
|
+
] }), l0 = ({ title: r, showTag: s, value: n, tag: i, showButton: a, handleClick: l }) => /* @__PURE__ */ o.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${r === "TAG B" ? "delay-200" : "mb-4"} ${s ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
1240
1358
|
/* @__PURE__ */ o.jsx("h2", { className: "text-center mb-2 text-2xl", children: r }),
|
|
1241
1359
|
/* @__PURE__ */ o.jsx(
|
|
1242
1360
|
Ve,
|
|
@@ -1268,10 +1386,10 @@ const qe = () => {
|
|
|
1268
1386
|
}
|
|
1269
1387
|
) })
|
|
1270
1388
|
] });
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1389
|
+
function Wt(r) {
|
|
1390
|
+
return re({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.04 1.33L12.71 3l.29.71v.33h-.5l-.5.5v-.83l-1.67-1.67H10v4H4v-4H2v10h3l-.5 1H2l-1-1v-10l1-1h8.33l.71.29zM7 5h2V2H7v3zm6.5 0L15 6.5l-.02.69-5.5 5.5-.13.12-.37.37-.1.09-3 1.5-.67-.67 1.5-3 .09-.1.37-.37.12-.13 5.5-5.5h.71zm-6.22 7.24l-.52 1 1.04-.48-.52-.52zm.69-1.03l.79.79 5.15-5.15-.79-.79-5.15 5.15z" }, child: [] }] })(r);
|
|
1273
1391
|
}
|
|
1274
|
-
const
|
|
1392
|
+
const c0 = ({ minReadingPower: r, maxReadingPower: s, stepRangePower: n, rangeValue: i, setRangeValue: a, show: l, handleClick: c }) => {
|
|
1275
1393
|
const m = (i - r) / (s - r) * 100;
|
|
1276
1394
|
return /* @__PURE__ */ o.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${l ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
1277
1395
|
/* @__PURE__ */ o.jsx("h2", { className: "text-center my-4 text-2xl", children: "Configurazione Potenza" }),
|
|
@@ -1301,16 +1419,16 @@ const t0 = ({ minReadingPower: r, maxReadingPower: s, stepRangePower: n, rangeVa
|
|
|
1301
1419
|
/* @__PURE__ */ o.jsx("div", { className: "flex items-center justify-center my-4", children: /* @__PURE__ */ o.jsxs(
|
|
1302
1420
|
"button",
|
|
1303
1421
|
{
|
|
1304
|
-
onClick: () =>
|
|
1422
|
+
onClick: () => c(i),
|
|
1305
1423
|
className: "py-2 px-4 flex items-center justify-center gap-1 bg-save-button text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1306
1424
|
children: [
|
|
1307
1425
|
"Salva",
|
|
1308
|
-
/* @__PURE__ */ o.jsx(
|
|
1426
|
+
/* @__PURE__ */ o.jsx(Wt, {})
|
|
1309
1427
|
]
|
|
1310
1428
|
}
|
|
1311
1429
|
) })
|
|
1312
1430
|
] });
|
|
1313
|
-
},
|
|
1431
|
+
}, u0 = ({ show: r, isConfigPage: s, handleSelectFile: n }) => /* @__PURE__ */ o.jsxs("div", { className: `${s ? `${r ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
|
|
1314
1432
|
/* @__PURE__ */ o.jsxs("h2", { className: "text-xl my-4", children: [
|
|
1315
1433
|
"Seleziona il file ",
|
|
1316
1434
|
/* @__PURE__ */ o.jsx("strong", { children: "config.json" }),
|
|
@@ -1318,13 +1436,13 @@ const t0 = ({ minReadingPower: r, maxReadingPower: s, stepRangePower: n, rangeVa
|
|
|
1318
1436
|
] }),
|
|
1319
1437
|
/* @__PURE__ */ o.jsx("button", { onClick: n, className: "my-4 bg-blue-500 text-white px-4 py-2 rounded-lg", children: "Seleziona file" })
|
|
1320
1438
|
] });
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1439
|
+
function Ht(r) {
|
|
1440
|
+
return re({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M312 372c-7.7 0-14 6.3-14 14 0 9.9-8.1 18-18 18H94c-9.9 0-18-8.1-18-18V126c0-9.9 8.1-18 18-18h186c9.9 0 18 8.1 18 18 0 7.7 6.3 14 14 14s14-6.3 14-14c0-25.4-20.6-46-46-46H94c-25.4 0-46 20.6-46 46v260c0 25.4 20.6 46 46 46h186c25.4 0 46-20.6 46-46 0-7.7-6.3-14-14-14z" }, child: [] }, { tag: "path", attr: { d: "M372.9 158.1c-2.6-2.6-6.1-4.1-9.9-4.1-3.7 0-7.3 1.4-9.9 4.1-5.5 5.5-5.5 14.3 0 19.8l65.2 64.2H162c-7.7 0-14 6.3-14 14s6.3 14 14 14h256.6L355 334.2c-5.4 5.4-5.4 14.3 0 19.8l.1.1c2.7 2.5 6.2 3.9 9.8 3.9 3.8 0 7.3-1.4 9.9-4.1l82.6-82.4c4.3-4.3 6.5-9.3 6.5-14.7 0-5.3-2.3-10.3-6.5-14.5l-84.5-84.2z" }, child: [] }] })(r);
|
|
1323
1441
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1442
|
+
function Yt(r) {
|
|
1443
|
+
return re({ tag: "svg", attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 9.059v-2.559c0-.256-.098-.512-.293-.708-.195-.195-.451-.292-.707-.292s-.512.097-.707.292l-6.293 6.208 6.293 6.207c.195.195.451.293.707.293s.512-.098.707-.293.293-.452.293-.707v-2.489c2.75.068 5.755.566 8 3.989v-1c0-4.633-3.5-8.443-8-8.941z" }, child: [] }] })(r);
|
|
1326
1444
|
}
|
|
1327
|
-
const
|
|
1445
|
+
const Zt = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm", height: "108.41262mm", viewBox: "0 0 108.41262 108.41262", id: "svg1", xmlSpace: "preserve", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", "xmlns:svg": "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ t.createElement("defs", { id: "defs1" }, /* @__PURE__ */ t.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ t.createElement("stop", { style: {
|
|
1328
1446
|
stopColor: "#ff0000",
|
|
1329
1447
|
stopOpacity: 1
|
|
1330
1448
|
}, offset: 0, id: "stop27" }), /* @__PURE__ */ t.createElement("stop", { style: {
|
|
@@ -1389,30 +1507,30 @@ const Ft = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm",
|
|
|
1389
1507
|
strokeWidth: 0,
|
|
1390
1508
|
strokeOpacity: 1,
|
|
1391
1509
|
paintOrder: "stroke markers fill"
|
|
1392
|
-
}, d: "", id: "path40", transform: "scale(0.26458333)" }))),
|
|
1393
|
-
const { logout: n } = Ee(), { activeAlert: i } =
|
|
1510
|
+
}, d: "", id: "path40", transform: "scale(0.26458333)" }))), d0 = ({ Logo: r, logo: s }) => {
|
|
1511
|
+
const { logout: n } = Ee(), { activeAlert: i } = oe(), { autoLogin: a, configRoutes: l, firstPrivateTitle: c, showHeaderButton: m } = U(), { isLoading: p } = pe(), v = Ne(), h = Le(), L = () => {
|
|
1394
1512
|
n(), i("info", "Hai effettuato il logout");
|
|
1395
|
-
},
|
|
1513
|
+
}, b = l.find((y) => y.path === v.pathname), u = ft("home/:id");
|
|
1396
1514
|
return /* @__PURE__ */ o.jsx("header", { className: p ? "hidden" : "", children: /* @__PURE__ */ o.jsxs("nav", { className: "header-size flex items-center justify-between px-2 shadow-lg border-b gap-2 border-b-gray-300", children: [
|
|
1397
|
-
/* @__PURE__ */ o.jsx("figure", { children: r && typeof r == "function" ? /* @__PURE__ */ o.jsx(r, { className: "header-logo-size" }) : s ? /* @__PURE__ */ o.jsx("img", { src: s, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ o.jsx(
|
|
1398
|
-
/* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("p", { children: (
|
|
1515
|
+
/* @__PURE__ */ o.jsx("figure", { children: r && typeof r == "function" ? /* @__PURE__ */ o.jsx(r, { className: "header-logo-size" }) : s ? /* @__PURE__ */ o.jsx("img", { src: s, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ o.jsx(Zt, { className: "header-logo-size" }) }),
|
|
1516
|
+
/* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("p", { children: (b == null ? void 0 : b.title) || c }) }),
|
|
1399
1517
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
1400
|
-
!a &&
|
|
1518
|
+
!a && u && /* @__PURE__ */ o.jsx(
|
|
1401
1519
|
"button",
|
|
1402
1520
|
{
|
|
1403
1521
|
className: "h-[48px] w-[48px] flex items-center justify-center bg-red-600 text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1404
1522
|
type: "button",
|
|
1405
1523
|
onClick: L,
|
|
1406
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1524
|
+
children: /* @__PURE__ */ o.jsx(Ht, { className: "text-4xl w-full" })
|
|
1407
1525
|
}
|
|
1408
1526
|
),
|
|
1409
|
-
!
|
|
1527
|
+
!u && m && /* @__PURE__ */ o.jsx(
|
|
1410
1528
|
"button",
|
|
1411
1529
|
{
|
|
1412
1530
|
className: "h-[48px] w-[48px] flex items-center justify-center bg-sky-600 text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1413
1531
|
type: "button",
|
|
1414
|
-
onClick: () =>
|
|
1415
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1532
|
+
onClick: () => h(-1),
|
|
1533
|
+
children: /* @__PURE__ */ o.jsx(Yt, { className: "text-4xl w-full" })
|
|
1416
1534
|
}
|
|
1417
1535
|
)
|
|
1418
1536
|
] })
|
|
@@ -1420,46 +1538,48 @@ const Ft = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm",
|
|
|
1420
1538
|
};
|
|
1421
1539
|
export {
|
|
1422
1540
|
qe as Alert,
|
|
1423
|
-
|
|
1424
|
-
|
|
1541
|
+
e0 as AlertProvider,
|
|
1542
|
+
i0 as AuthAdmin,
|
|
1425
1543
|
ve as AuthPage,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1544
|
+
t0 as AuthProvider,
|
|
1545
|
+
p0 as BrowserRouter,
|
|
1546
|
+
c0 as CardInputRange,
|
|
1547
|
+
l0 as CardInputTag,
|
|
1548
|
+
u0 as ConfigFileReader,
|
|
1549
|
+
Qt as ConfigProvider,
|
|
1550
|
+
Ft as Dashboard,
|
|
1551
|
+
zt as DefaultLayout,
|
|
1552
|
+
vt as ErrorPage,
|
|
1553
|
+
d0 as Header,
|
|
1554
|
+
ke as Input,
|
|
1437
1555
|
Ve as InputGroup,
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1556
|
+
Oe as InputLabel,
|
|
1557
|
+
h0 as Link,
|
|
1558
|
+
Mt as Loading,
|
|
1559
|
+
a0 as LoadingComponent,
|
|
1560
|
+
Kt as LoadingProvider,
|
|
1561
|
+
$t as Login,
|
|
1562
|
+
Bt as LoginForm,
|
|
1563
|
+
o0 as LoginFormProvider,
|
|
1564
|
+
n0 as ModalProvider,
|
|
1565
|
+
g0 as NavLink,
|
|
1566
|
+
x0 as Outlet,
|
|
1567
|
+
s0 as PackageRoutes,
|
|
1568
|
+
O0 as ReactDOM,
|
|
1569
|
+
v0 as Route,
|
|
1570
|
+
r0 as RouteProvider,
|
|
1571
|
+
b0 as Routes,
|
|
1572
|
+
S0 as axios,
|
|
1573
|
+
Rt as fetchAxiosConfig,
|
|
1574
|
+
oe as useAlert,
|
|
1456
1575
|
Ee as useAuth,
|
|
1457
1576
|
U as useConfig,
|
|
1458
1577
|
pe as useLoading,
|
|
1459
|
-
|
|
1578
|
+
y0 as useLocation,
|
|
1460
1579
|
st as useLoginForm,
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1580
|
+
E0 as useMatch,
|
|
1581
|
+
Tt as useModal,
|
|
1582
|
+
w0 as useNavigate,
|
|
1583
|
+
C0 as useParams,
|
|
1584
|
+
Gt as useRoutesInjection
|
|
1465
1585
|
};
|