thecore-auth 0.0.212 → 0.0.214
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 +17 -17
- package/dist/thecore-auth.esm.js +406 -367
- package/package.json +1 -1
package/dist/thecore-auth.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as P from "react";
|
|
2
|
-
import L1, { createContext as q1, useState as I, useContext as j0, useEffect as O0, useMemo as o1, useRef as
|
|
2
|
+
import L1, { createContext as q1, useState as I, useContext as j0, useEffect as O0, useMemo as o1, useRef as s0, useLayoutEffect as ra, useId as $r, useCallback as W0, Fragment as Xs, createElement as Zr, useInsertionEffect as ks, forwardRef as Qr, Component as ec, memo as Cs } from "react";
|
|
3
3
|
import uM from "jwt-decode";
|
|
4
4
|
import { useNavigate as Go, useLocation as Na, matchPath as to, Outlet as K2, Navigate as Ps, Routes as ac, Route as E2, useMatch as nc } from "react-router-dom";
|
|
5
|
-
import { BrowserRouter as
|
|
5
|
+
import { BrowserRouter as wf, Link as Tf, NavLink as Sf, Outlet as xf, Route as Xf, Routes as kf, useLocation as Cf, useMatch as Pf, useNavigate as Ef, useParams as jf } from "react-router-dom";
|
|
6
6
|
import tc from "axios";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as Ff } from "axios";
|
|
8
8
|
import oc from "react-dom";
|
|
9
|
-
import { default as
|
|
9
|
+
import { default as Vf } from "react-dom";
|
|
10
10
|
function Uo(e) {
|
|
11
11
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12
12
|
}
|
|
@@ -90,7 +90,7 @@ function sc() {
|
|
|
90
90
|
return "StrictMode";
|
|
91
91
|
case S0:
|
|
92
92
|
return "Suspense";
|
|
93
|
-
case
|
|
93
|
+
case Z0:
|
|
94
94
|
return "SuspenseList";
|
|
95
95
|
}
|
|
96
96
|
if (typeof q == "object")
|
|
@@ -101,7 +101,7 @@ function sc() {
|
|
|
101
101
|
return (q.displayName || "Context") + ".Provider";
|
|
102
102
|
case j:
|
|
103
103
|
return (q._context.displayName || "Context") + ".Consumer";
|
|
104
|
-
case
|
|
104
|
+
case i0:
|
|
105
105
|
var F = q.render;
|
|
106
106
|
return q = q.displayName, q || (q = F.displayName || F.name || "", q = q !== "" ? "ForwardRef(" + q + ")" : "ForwardRef"), q;
|
|
107
107
|
case A0:
|
|
@@ -297,12 +297,12 @@ function sc() {
|
|
|
297
297
|
switch (q) {
|
|
298
298
|
case S0:
|
|
299
299
|
return b("Suspense");
|
|
300
|
-
case
|
|
300
|
+
case Z0:
|
|
301
301
|
return b("SuspenseList");
|
|
302
302
|
}
|
|
303
303
|
if (typeof q == "object")
|
|
304
304
|
switch (q.$$typeof) {
|
|
305
|
-
case
|
|
305
|
+
case i0:
|
|
306
306
|
return q = s(q.render, !1), q;
|
|
307
307
|
case A0:
|
|
308
308
|
return i(q.type);
|
|
@@ -367,7 +367,7 @@ function sc() {
|
|
|
367
367
|
}), Object.freeze && (Object.freeze(q.props), Object.freeze(q)), q;
|
|
368
368
|
}
|
|
369
369
|
function A(q, F, C, c0, H0, R0) {
|
|
370
|
-
if (typeof q == "string" || typeof q == "function" || q === L || q === x || q === v || q === S0 || q ===
|
|
370
|
+
if (typeof q == "string" || typeof q == "function" || q === L || q === x || q === v || q === S0 || q === Z0 || q === u0 || typeof q == "object" && q !== null && (q.$$typeof === a0 || q.$$typeof === A0 || q.$$typeof === G || q.$$typeof === j || q.$$typeof === i0 || q.$$typeof === y2 || q.getModuleId !== void 0)) {
|
|
371
371
|
var Q = F.children;
|
|
372
372
|
if (Q !== void 0)
|
|
373
373
|
if (c0)
|
|
@@ -423,7 +423,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
423
423
|
}
|
|
424
424
|
else if (m(q))
|
|
425
425
|
q._store && (q._store.validated = 1);
|
|
426
|
-
else if (q === null || typeof q != "object" ? C = null : (C =
|
|
426
|
+
else if (q === null || typeof q != "object" ? C = null : (C = z0 && q[z0] || q["@@iterator"], C = typeof C == "function" ? C : null), typeof C == "function" && C !== q.entries && (C = C.call(q), C !== q))
|
|
427
427
|
for (; !(q = C.next()).done; )
|
|
428
428
|
m(q.value) && O(q.value, F);
|
|
429
429
|
}
|
|
@@ -455,7 +455,7 @@ Check the render method of \`` + C + "`."), F || (q = e(q)) && (F = `
|
|
|
455
455
|
|
|
456
456
|
Check the top-level render call using <` + q + ">."), F;
|
|
457
457
|
}
|
|
458
|
-
var h = L1, R = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), G = Symbol.for("react.context"),
|
|
458
|
+
var h = L1, R = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), G = Symbol.for("react.context"), i0 = Symbol.for("react.forward_ref"), S0 = Symbol.for("react.suspense"), Z0 = Symbol.for("react.suspense_list"), A0 = Symbol.for("react.memo"), a0 = Symbol.for("react.lazy"), u0 = Symbol.for("react.offscreen"), z0 = Symbol.iterator, l0 = Symbol.for("react.client.reference"), B0 = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D0 = Object.prototype.hasOwnProperty, P0 = Object.assign, y2 = Symbol.for("react.client.reference"), h1 = Array.isArray, r1 = 0, N0, m0, U, r0, h0, Q0, y1;
|
|
459
459
|
t.__reactDisabledLog = !0;
|
|
460
460
|
var t1, y, _ = !1, w = new (typeof WeakMap == "function" ? WeakMap : Map)(), k = Symbol.for("react.client.reference"), Y, o0 = {}, y0 = {}, M0 = {};
|
|
461
461
|
Ke.Fragment = L, Ke.jsx = function(q, F, C, c0, H0) {
|
|
@@ -470,7 +470,7 @@ function ic() {
|
|
|
470
470
|
return qM || (qM = 1, process.env.NODE_ENV === "production" ? Ya.exports = bc() : Ya.exports = sc()), Ya.exports;
|
|
471
471
|
}
|
|
472
472
|
var d = ic();
|
|
473
|
-
const Es = q1(),
|
|
473
|
+
const Es = q1(), $q = ({ children: e, defaultComponent: a }) => {
|
|
474
474
|
const [n, t] = I(!1), [o, M] = I({}), [b, s] = I(a), z = { isLoading: n, setIsLoading: t, loadingProps: o, setLoadingProps: M, loadingComponent: b, setLoadingComponent: s, showLoadingFor: (p = 2e3, c = {}) => {
|
|
475
475
|
M(c), t(!0), setTimeout(() => {
|
|
476
476
|
t(!1);
|
|
@@ -481,7 +481,7 @@ const Es = q1(), Kq = ({ children: e, defaultComponent: a }) => {
|
|
|
481
481
|
const e = j0(Es);
|
|
482
482
|
if (e === void 0) throw new Error("Non puoi settare il loading");
|
|
483
483
|
return e;
|
|
484
|
-
}, zc = "0.0.
|
|
484
|
+
}, zc = "0.0.214", pc = ({ errorMessage: e, errorShow: a }) => /* @__PURE__ */ d.jsx("section", { className: a ? "" : "hidden", children: /* @__PURE__ */ d.jsxs("div", { className: "container mx-auto", children: [
|
|
485
485
|
/* @__PURE__ */ d.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
|
|
486
486
|
/* @__PURE__ */ d.jsx("pre", { className: "text-xl", children: e })
|
|
487
487
|
] }) });
|
|
@@ -508,7 +508,7 @@ function rc() {
|
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
510
|
const js = q1(), Zq = ({ children: e }) => {
|
|
511
|
-
const a = rc(), [n, t] = I({}), [o, M] = I(!1), b =
|
|
511
|
+
const a = rc(), [n, t] = I({}), [o, M] = I(!1), b = s0(!1), s = `Creare un file config.json in public per il corretto funzionamento
|
|
512
512
|
Esempio di config.json:
|
|
513
513
|
|
|
514
514
|
{
|
|
@@ -721,7 +721,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
721
721
|
OBJECT: "object",
|
|
722
722
|
STRING: "string",
|
|
723
723
|
UNDEFINED: "undefined"
|
|
724
|
-
}, A1 = "browser", p2 = "cpu",
|
|
724
|
+
}, A1 = "browser", p2 = "cpu", Z1 = "device", P1 = "engine", m1 = "os", we = "result", D = "name", N = "type", S = "vendor", T = "version", i1 = "architecture", ua = "major", B = "model", cn = "console", n0 = "mobile", L0 = "tablet", G0 = "smarttv", Y1 = "wearable", Ja = "xr", za = "embedded", gc = "fetcher", ie = "inapp", Yo = "brands", Y2 = "formFactors", Jo = "fullVersionList", Te = "platform", Ko = "platformVersion", Gn = "bitness", X2 = "sec-ch-ua", Lc = X2 + "-full-version-list", vc = X2 + "-arch", Nc = X2 + "-" + Gn, _c = X2 + "-form-factors", Bc = X2 + "-" + n0, Dc = X2 + "-" + B, Hs = X2 + "-" + Te, wc = Hs + "-version", Vs = [Yo, Jo, n0, B, Te, Ko, i1, Y2, Gn], Ka = "Amazon", ze = "Apple", RM = "ASUS", gM = "BlackBerry", j2 = "Google", LM = "Huawei", lt = "Lenovo", vM = "Honor", $a = "LG", mt = "Microsoft", qt = "Motorola", NM = "Nvidia", _M = "OnePlus", ft = "OPPO", $e = "Samsung", BM = "Sharp", Ze = "Sony", ht = "Xiaomi", yt = "Zebra", DM = "Chrome", wM = "Chromium", R2 = "Chromecast", On = "Edge", Qe = "Firefox", pe = "Opera", Wt = "Facebook", TM = "Sogou", re = "Mobile ", ce = " Browser", oo = "Windows", Tc = typeof window !== I0.UNDEFINED, d1 = Tc && window.navigator ? window.navigator : void 0, J2 = d1 && d1.userAgentData ? d1.userAgentData : void 0, Sc = function(e, a) {
|
|
725
725
|
var n = {}, t = a;
|
|
726
726
|
if (!Ln(a)) {
|
|
727
727
|
t = {};
|
|
@@ -1013,7 +1013,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1013
1013
|
/samsungbrowser\/([\w\.]+)/i
|
|
1014
1014
|
// Samsung Internet
|
|
1015
1015
|
],
|
|
1016
|
-
[T, [D,
|
|
1016
|
+
[T, [D, $e + " Internet"]],
|
|
1017
1017
|
[
|
|
1018
1018
|
/metasr[\/ ]?([\d\.]+)/i
|
|
1019
1019
|
// Sogou Explorer
|
|
@@ -1259,13 +1259,13 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1259
1259
|
// Samsung
|
|
1260
1260
|
/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
|
|
1261
1261
|
],
|
|
1262
|
-
[B, [S,
|
|
1262
|
+
[B, [S, $e], [N, L0]],
|
|
1263
1263
|
[
|
|
1264
1264
|
/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
1265
1265
|
/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,
|
|
1266
1266
|
/sec-(sgh\w+)/i
|
|
1267
1267
|
],
|
|
1268
|
-
[B, [S,
|
|
1268
|
+
[B, [S, $e], [N, n0]],
|
|
1269
1269
|
[
|
|
1270
1270
|
// Apple
|
|
1271
1271
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i
|
|
@@ -1383,13 +1383,13 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1383
1383
|
// LG
|
|
1384
1384
|
/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
1385
1385
|
],
|
|
1386
|
-
[B, [S,
|
|
1386
|
+
[B, [S, $a], [N, L0]],
|
|
1387
1387
|
[
|
|
1388
1388
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
1389
1389
|
/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,
|
|
1390
1390
|
/\blg-?([\d\w]+) bui/i
|
|
1391
1391
|
],
|
|
1392
|
-
[B, [S,
|
|
1392
|
+
[B, [S, $a], [N, n0]],
|
|
1393
1393
|
[
|
|
1394
1394
|
// Nokia
|
|
1395
1395
|
/(nokia) (t[12][01])/i
|
|
@@ -1419,12 +1419,12 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1419
1419
|
// Sony
|
|
1420
1420
|
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
1421
1421
|
],
|
|
1422
|
-
[B, [S,
|
|
1422
|
+
[B, [S, Ze], [N, n0]],
|
|
1423
1423
|
[
|
|
1424
1424
|
/sony tablet [ps]/i,
|
|
1425
1425
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
1426
1426
|
],
|
|
1427
|
-
[[B, "Xperia Tablet"], [S,
|
|
1427
|
+
[[B, "Xperia Tablet"], [S, Ze], [N, L0]],
|
|
1428
1428
|
[
|
|
1429
1429
|
// Amazon
|
|
1430
1430
|
/(alexa)webm/i,
|
|
@@ -1624,7 +1624,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1624
1624
|
[
|
|
1625
1625
|
/hbbtv.+maple;(\d+)/i
|
|
1626
1626
|
],
|
|
1627
|
-
[[B, /^/, "SmartTV"], [S,
|
|
1627
|
+
[[B, /^/, "SmartTV"], [S, $e], [N, G0]],
|
|
1628
1628
|
[
|
|
1629
1629
|
/(vizio)(?: |.+model\/)(\w+-\w+)/i,
|
|
1630
1630
|
// Vizio
|
|
@@ -1635,7 +1635,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1635
1635
|
[
|
|
1636
1636
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
1637
1637
|
],
|
|
1638
|
-
[[S,
|
|
1638
|
+
[[S, $a], [N, G0]],
|
|
1639
1639
|
[
|
|
1640
1640
|
/(apple) ?tv/i
|
|
1641
1641
|
// Apple TV
|
|
@@ -1686,7 +1686,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1686
1686
|
/(bravia[\w ]+)( bui|\))/i
|
|
1687
1687
|
// Sony
|
|
1688
1688
|
],
|
|
1689
|
-
[B, [S,
|
|
1689
|
+
[B, [S, Ze], [N, G0]],
|
|
1690
1690
|
[
|
|
1691
1691
|
/(mi(tv|box)-?\w+) bui/i
|
|
1692
1692
|
// Xiaomi
|
|
@@ -1711,7 +1711,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1711
1711
|
/(playstation \w+)/i
|
|
1712
1712
|
// Playstation
|
|
1713
1713
|
],
|
|
1714
|
-
[B, [S,
|
|
1714
|
+
[B, [S, Ze], [N, cn]],
|
|
1715
1715
|
[
|
|
1716
1716
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
1717
1717
|
// Microsoft Xbox
|
|
@@ -1736,7 +1736,7 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1736
1736
|
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
1737
1737
|
// Samsung Galaxy Watch
|
|
1738
1738
|
],
|
|
1739
|
-
[B, [S,
|
|
1739
|
+
[B, [S, $e], [N, Y1]],
|
|
1740
1740
|
[
|
|
1741
1741
|
/((pebble))app/i,
|
|
1742
1742
|
// Pebble
|
|
@@ -1768,12 +1768,12 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
1768
1768
|
/(smartwatch 3)/i
|
|
1769
1769
|
// Sony SmartWatch
|
|
1770
1770
|
],
|
|
1771
|
-
[B, [S,
|
|
1771
|
+
[B, [S, Ze], [N, Y1]],
|
|
1772
1772
|
[
|
|
1773
1773
|
/(g watch r)/i
|
|
1774
1774
|
// LG G Watch R
|
|
1775
1775
|
],
|
|
1776
|
-
[B, [S,
|
|
1776
|
+
[B, [S, $a], [N, Y1]],
|
|
1777
1777
|
[
|
|
1778
1778
|
/droid.+; (wt63?0{2,3})\)/i
|
|
1779
1779
|
],
|
|
@@ -2071,12 +2071,12 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
2071
2071
|
],
|
|
2072
2072
|
[D, T]
|
|
2073
2073
|
]
|
|
2074
|
-
},
|
|
2074
|
+
}, Za = function() {
|
|
2075
2075
|
var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
2076
2076
|
return b2.call(e.init, [
|
|
2077
2077
|
[A1, [D, T, ua, N]],
|
|
2078
2078
|
[p2, [i1]],
|
|
2079
|
-
[
|
|
2079
|
+
[Z1, [N, B, S]],
|
|
2080
2080
|
[P1, [D, T]],
|
|
2081
2081
|
[m1, [D, T]]
|
|
2082
2082
|
]), b2.call(e.isIgnore, [
|
|
@@ -2089,12 +2089,12 @@ var Wc = "2.0.9", Rc = 500, yM = "user-agent", De = "", WM = "?", I0 = {
|
|
|
2089
2089
|
]), b2.call(e.toString, [
|
|
2090
2090
|
[A1, [D, T]],
|
|
2091
2091
|
[p2, [i1]],
|
|
2092
|
-
[
|
|
2092
|
+
[Z1, [S, B]],
|
|
2093
2093
|
[P1, [D, T]],
|
|
2094
2094
|
[m1, [D, T]]
|
|
2095
2095
|
]), e;
|
|
2096
2096
|
}(), Xc = function(e, a) {
|
|
2097
|
-
var n =
|
|
2097
|
+
var n = Za.init[a], t = Za.isIgnore[a] || 0, o = Za.isIgnoreRgx[a] || 0, M = Za.toString[a] || 0;
|
|
2098
2098
|
function b() {
|
|
2099
2099
|
b2.call(this, n);
|
|
2100
2100
|
}
|
|
@@ -2177,7 +2177,7 @@ T2.prototype.detectFeature = function() {
|
|
|
2177
2177
|
case A1:
|
|
2178
2178
|
d1.brave && typeof d1.brave.isBrave == I0.FUNCTION && this.set(D, "Brave");
|
|
2179
2179
|
break;
|
|
2180
|
-
case
|
|
2180
|
+
case Z1:
|
|
2181
2181
|
!this.get(N) && J2 && J2[n0] && this.set(N, n0), this.get(B) == "Macintosh" && d1 && typeof d1.standalone !== I0.UNDEFINED && d1.maxTouchPoints && d1.maxTouchPoints > 2 && this.set(B, "iPad").set(N, L0);
|
|
2182
2182
|
break;
|
|
2183
2183
|
case m1:
|
|
@@ -2187,7 +2187,7 @@ T2.prototype.detectFeature = function() {
|
|
|
2187
2187
|
var e = this.data, a = function(n) {
|
|
2188
2188
|
return e[n].getItem().detectFeature().get();
|
|
2189
2189
|
};
|
|
2190
|
-
this.set(A1, a(A1)).set(p2, a(p2)).set(
|
|
2190
|
+
this.set(A1, a(A1)).set(p2, a(p2)).set(Z1, a(Z1)).set(P1, a(P1)).set(m1, a(m1));
|
|
2191
2191
|
}
|
|
2192
2192
|
return this;
|
|
2193
2193
|
};
|
|
@@ -2221,7 +2221,7 @@ T2.prototype.parseCH = function() {
|
|
|
2221
2221
|
var s = e[i1];
|
|
2222
2222
|
s && (s && e[Gn] == "64" && (s += "64"), so.call(this.data, s + ";", a));
|
|
2223
2223
|
break;
|
|
2224
|
-
case
|
|
2224
|
+
case Z1:
|
|
2225
2225
|
if (e[n0] && this.set(N, n0), e[B] && (this.set(B, e[B]), !this.get(N) || !this.get(S))) {
|
|
2226
2226
|
var i = {};
|
|
2227
2227
|
so.call(i, "droid 9; " + e[B] + ")", a), !this.get(N) && i.type && this.set(N, i.type), !this.get(S) && i.vendor && this.set(S, i.vendor);
|
|
@@ -2248,7 +2248,7 @@ T2.prototype.parseCH = function() {
|
|
|
2248
2248
|
var u = this.data, A = function(W) {
|
|
2249
2249
|
return u[W].getItem().setCH(e).parseCH().get();
|
|
2250
2250
|
};
|
|
2251
|
-
this.set(A1, A(A1)).set(p2, A(p2)).set(
|
|
2251
|
+
this.set(A1, A(A1)).set(p2, A(p2)).set(Z1, A(Z1)).set(P1, A(P1)).set(m1, A(m1));
|
|
2252
2252
|
}
|
|
2253
2253
|
return this;
|
|
2254
2254
|
};
|
|
@@ -2278,7 +2278,7 @@ function O2(e, a, n) {
|
|
|
2278
2278
|
)
|
|
2279
2279
|
), s = new Gs(n, !0), i = a ? Sc(XM, a) : XM, z = function(p) {
|
|
2280
2280
|
return p == we ? function() {
|
|
2281
|
-
return new T2(p, b, i, s).set("ua", b).set(A1, this.getBrowser()).set(p2, this.getCPU()).set(
|
|
2281
|
+
return new T2(p, b, i, s).set("ua", b).set(A1, this.getBrowser()).set(p2, this.getCPU()).set(Z1, this.getDevice()).set(P1, this.getEngine()).set(m1, this.getOS()).get();
|
|
2282
2282
|
} : function() {
|
|
2283
2283
|
return new T2(p, b, i[p], s).parseUA().get();
|
|
2284
2284
|
};
|
|
@@ -2286,7 +2286,7 @@ function O2(e, a, n) {
|
|
|
2286
2286
|
return b2.call(this, [
|
|
2287
2287
|
["getBrowser", z(A1)],
|
|
2288
2288
|
["getCPU", z(p2)],
|
|
2289
|
-
["getDevice", z(
|
|
2289
|
+
["getDevice", z(Z1)],
|
|
2290
2290
|
["getEngine", z(P1)],
|
|
2291
2291
|
["getOS", z(m1)],
|
|
2292
2292
|
["getResult", z(we)],
|
|
@@ -2339,11 +2339,11 @@ function Pc(e, a) {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
const Us = q1({});
|
|
2341
2341
|
function Ec(e) {
|
|
2342
|
-
const a =
|
|
2342
|
+
const a = s0(null);
|
|
2343
2343
|
return a.current === null && (a.current = e()), a.current;
|
|
2344
2344
|
}
|
|
2345
|
-
const Ys = typeof window < "u", jc = Ys ? ra : O0,
|
|
2346
|
-
function
|
|
2345
|
+
const Ys = typeof window < "u", jc = Ys ? ra : O0, $o = /* @__PURE__ */ q1(null);
|
|
2346
|
+
function Zo(e, a) {
|
|
2347
2347
|
e.indexOf(a) === -1 && e.push(a);
|
|
2348
2348
|
}
|
|
2349
2349
|
function Nn(e, a) {
|
|
@@ -2368,9 +2368,9 @@ const A2 = {}, Js = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
|
|
|
2368
2368
|
function Ks(e) {
|
|
2369
2369
|
return typeof e == "object" && e !== null;
|
|
2370
2370
|
}
|
|
2371
|
-
const
|
|
2371
|
+
const $s = (e) => /^0[^.\s]+$/u.test(e);
|
|
2372
2372
|
// @__NO_SIDE_EFFECTS__
|
|
2373
|
-
function
|
|
2373
|
+
function Zs(e) {
|
|
2374
2374
|
let a;
|
|
2375
2375
|
return () => (a === void 0 && (a = e()), a);
|
|
2376
2376
|
}
|
|
@@ -2383,7 +2383,7 @@ class Qo {
|
|
|
2383
2383
|
this.subscriptions = [];
|
|
2384
2384
|
}
|
|
2385
2385
|
add(a) {
|
|
2386
|
-
return
|
|
2386
|
+
return Zo(this.subscriptions, a), () => Nn(this.subscriptions, a);
|
|
2387
2387
|
}
|
|
2388
2388
|
notify(a, n, t) {
|
|
2389
2389
|
const o = this.subscriptions.length;
|
|
@@ -2501,7 +2501,7 @@ function Kc(e, a) {
|
|
|
2501
2501
|
};
|
|
2502
2502
|
return z;
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2504
|
+
const $c = 40;
|
|
2505
2505
|
function pi(e, a) {
|
|
2506
2506
|
let n = !1, t = !0;
|
|
2507
2507
|
const o = {
|
|
@@ -2510,7 +2510,7 @@ function pi(e, a) {
|
|
|
2510
2510
|
isProcessing: !1
|
|
2511
2511
|
}, M = () => n = !0, b = en.reduce((h, R) => (h[R] = Kc(M), h), {}), { setup: s, read: i, resolveKeyframes: z, preUpdate: p, update: c, preRender: r, render: u, postRender: A } = b, W = () => {
|
|
2512
2512
|
const h = A2.useManualTiming ? o.timestamp : performance.now();
|
|
2513
|
-
n = !1, A2.useManualTiming || (o.delta = t ? 1e3 / 60 : Math.max(Math.min(h - o.timestamp,
|
|
2513
|
+
n = !1, A2.useManualTiming || (o.delta = t ? 1e3 / 60 : Math.max(Math.min(h - o.timestamp, $c), 1)), o.timestamp = h, o.isProcessing = !0, s.process(o), i.process(o), z.process(o), p.process(o), c.process(o), r.process(o), u.process(o), A.process(o), o.isProcessing = !1, n && a && (t = !1, e(W));
|
|
2514
2514
|
}, m = () => {
|
|
2515
2515
|
n = !0, t = !0, o.isProcessing || e(W);
|
|
2516
2516
|
};
|
|
@@ -2524,13 +2524,13 @@ function pi(e, a) {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
const { schedule: _0, cancel: S2, state: a1, steps: gt } = /* @__PURE__ */ pi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N1, !0);
|
|
2526
2526
|
let dn;
|
|
2527
|
-
function
|
|
2527
|
+
function Zc() {
|
|
2528
2528
|
dn = void 0;
|
|
2529
2529
|
}
|
|
2530
2530
|
const z1 = {
|
|
2531
2531
|
now: () => (dn === void 0 && z1.set(a1.isProcessing || A2.useManualTiming ? a1.timestamp : performance.now()), dn),
|
|
2532
2532
|
set: (e) => {
|
|
2533
|
-
dn = e, queueMicrotask(
|
|
2533
|
+
dn = e, queueMicrotask(Zc);
|
|
2534
2534
|
}
|
|
2535
2535
|
}, ri = (e) => (a) => typeof a == "string" && a.startsWith(e), ci = /* @__PURE__ */ ri("--"), Qc = /* @__PURE__ */ ri("var(--"), t3 = (e) => Qc(e) ? e4.test(e.split("/*")[0].trim()) : !1, e4 = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2536
2536
|
function EM(e) {
|
|
@@ -2563,7 +2563,7 @@ const n4 = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2563
2563
|
}, t4 = (e) => e2(0, 255, e), Lt = {
|
|
2564
2564
|
...je,
|
|
2565
2565
|
transform: (e) => Math.round(t4(e))
|
|
2566
|
-
},
|
|
2566
|
+
}, $2 = {
|
|
2567
2567
|
test: /* @__PURE__ */ M3("rgb", "red"),
|
|
2568
2568
|
parse: /* @__PURE__ */ Oi("red", "green", "blue"),
|
|
2569
2569
|
transform: ({ red: e, green: a, blue: n, alpha: t = 1 }) => "rgba(" + Lt.transform(e) + ", " + Lt.transform(a) + ", " + Lt.transform(n) + ", " + ca(ma.transform(t)) + ")"
|
|
@@ -2580,7 +2580,7 @@ function o4(e) {
|
|
|
2580
2580
|
const zo = {
|
|
2581
2581
|
test: /* @__PURE__ */ M3("#"),
|
|
2582
2582
|
parse: o4,
|
|
2583
|
-
transform:
|
|
2583
|
+
transform: $2.transform
|
|
2584
2584
|
}, wa = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
2585
2585
|
test: (a) => typeof a == "string" && a.endsWith(e) && a.split(" ").length === 1,
|
|
2586
2586
|
parse: parseFloat,
|
|
@@ -2594,9 +2594,9 @@ const zo = {
|
|
|
2594
2594
|
parse: /* @__PURE__ */ Oi("hue", "saturation", "lightness"),
|
|
2595
2595
|
transform: ({ hue: e, saturation: a, lightness: n, alpha: t = 1 }) => "hsla(" + Math.round(e) + ", " + Q1.transform(ca(a)) + ", " + Q1.transform(ca(n)) + ", " + ca(ma.transform(t)) + ")"
|
|
2596
2596
|
}, U0 = {
|
|
2597
|
-
test: (e) =>
|
|
2598
|
-
parse: (e) =>
|
|
2599
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
2597
|
+
test: (e) => $2.test(e) || zo.test(e) || fe.test(e),
|
|
2598
|
+
parse: (e) => $2.test(e) ? $2.parse(e) : fe.test(e) ? fe.parse(e) : zo.parse(e),
|
|
2599
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? $2.transform(e) : fe.transform(e),
|
|
2600
2600
|
getAnimatableNone: (e) => {
|
|
2601
2601
|
const a = U0.parse(e);
|
|
2602
2602
|
return a.alpha = 0, U0.transform(a);
|
|
@@ -2668,7 +2668,7 @@ function _n(e, a) {
|
|
|
2668
2668
|
const C0 = (e, a, n) => e + (a - e) * n, Nt = (e, a, n) => {
|
|
2669
2669
|
const t = e * e, o = n * (a * a - t) + t;
|
|
2670
2670
|
return o < 0 ? 0 : Math.sqrt(o);
|
|
2671
|
-
}, A4 = [zo,
|
|
2671
|
+
}, A4 = [zo, $2, fe], u4 = (e) => A4.find((a) => a.test(e));
|
|
2672
2672
|
function FM(e) {
|
|
2673
2673
|
const a = u4(e);
|
|
2674
2674
|
if (Ee(!!a, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !a)
|
|
@@ -2681,7 +2681,7 @@ const HM = (e, a) => {
|
|
|
2681
2681
|
if (!n || !t)
|
|
2682
2682
|
return _n(e, a);
|
|
2683
2683
|
const o = { ...n };
|
|
2684
|
-
return (M) => (o.red = Nt(n.red, t.red, M), o.green = Nt(n.green, t.green, M), o.blue = Nt(n.blue, t.blue, M), o.alpha = C0(n.alpha, t.alpha, M),
|
|
2684
|
+
return (M) => (o.red = Nt(n.red, t.red, M), o.green = Nt(n.green, t.green, M), o.blue = Nt(n.blue, t.blue, M), o.alpha = C0(n.alpha, t.alpha, M), $2.transform(o));
|
|
2685
2685
|
}, po = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2686
2686
|
function l4(e, a) {
|
|
2687
2687
|
return po.has(e) ? (n) => n <= 0 ? e : a : (n) => n >= 1 ? a : e;
|
|
@@ -3181,8 +3181,8 @@ function E4(e) {
|
|
|
3181
3181
|
for (let a = 1; a < e.length; a++)
|
|
3182
3182
|
e[a] ?? (e[a] = e[a - 1]);
|
|
3183
3183
|
}
|
|
3184
|
-
const
|
|
3185
|
-
const a =
|
|
3184
|
+
const Z2 = (e) => e * 180 / Math.PI, Oo = (e) => {
|
|
3185
|
+
const a = Z2(Math.atan2(e[1], e[0]));
|
|
3186
3186
|
return Ao(a);
|
|
3187
3187
|
}, j4 = {
|
|
3188
3188
|
x: 4,
|
|
@@ -3194,8 +3194,8 @@ const $2 = (e) => e * 180 / Math.PI, Oo = (e) => {
|
|
|
3194
3194
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
3195
3195
|
rotate: Oo,
|
|
3196
3196
|
rotateZ: Oo,
|
|
3197
|
-
skewX: (e) =>
|
|
3198
|
-
skewY: (e) =>
|
|
3197
|
+
skewX: (e) => Z2(Math.atan(e[1])),
|
|
3198
|
+
skewY: (e) => Z2(Math.atan(e[2])),
|
|
3199
3199
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
3200
3200
|
}, Ao = (e) => (e = e % 360, e < 0 && (e += 360), e), UM = Oo, YM = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), JM = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), I4 = {
|
|
3201
3201
|
x: 12,
|
|
@@ -3207,12 +3207,12 @@ const $2 = (e) => e * 180 / Math.PI, Oo = (e) => {
|
|
|
3207
3207
|
scaleX: YM,
|
|
3208
3208
|
scaleY: JM,
|
|
3209
3209
|
scale: (e) => (YM(e) + JM(e)) / 2,
|
|
3210
|
-
rotateX: (e) => Ao(
|
|
3211
|
-
rotateY: (e) => Ao(
|
|
3210
|
+
rotateX: (e) => Ao(Z2(Math.atan2(e[6], e[5]))),
|
|
3211
|
+
rotateY: (e) => Ao(Z2(Math.atan2(-e[2], e[0]))),
|
|
3212
3212
|
rotateZ: UM,
|
|
3213
3213
|
rotate: UM,
|
|
3214
|
-
skewX: (e) =>
|
|
3215
|
-
skewY: (e) =>
|
|
3214
|
+
skewX: (e) => Z2(Math.atan(e[4])),
|
|
3215
|
+
skewY: (e) => Z2(Math.atan(e[1])),
|
|
3216
3216
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
3217
3217
|
};
|
|
3218
3218
|
function uo(e) {
|
|
@@ -3353,19 +3353,19 @@ const J4 = (e) => e.startsWith("--");
|
|
|
3353
3353
|
function K4(e, a, n) {
|
|
3354
3354
|
J4(a) ? e.style.setProperty(a, n) : e.style[a] = n;
|
|
3355
3355
|
}
|
|
3356
|
-
const
|
|
3356
|
+
const $4 = {};
|
|
3357
3357
|
function gi(e, a) {
|
|
3358
|
-
const n = /* @__PURE__ */
|
|
3359
|
-
return () =>
|
|
3358
|
+
const n = /* @__PURE__ */ Zs(e);
|
|
3359
|
+
return () => $4[a] ?? n();
|
|
3360
3360
|
}
|
|
3361
|
-
const
|
|
3361
|
+
const Z4 = /* @__PURE__ */ gi(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Li = /* @__PURE__ */ gi(() => {
|
|
3362
3362
|
try {
|
|
3363
3363
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
3364
3364
|
} catch {
|
|
3365
3365
|
return !1;
|
|
3366
3366
|
}
|
|
3367
3367
|
return !0;
|
|
3368
|
-
}, "linearEasing"), pa = ([e, a, n, t]) => `cubic-bezier(${e}, ${a}, ${n}, ${t})`,
|
|
3368
|
+
}, "linearEasing"), pa = ([e, a, n, t]) => `cubic-bezier(${e}, ${a}, ${n}, ${t})`, $M = {
|
|
3369
3369
|
linear: "linear",
|
|
3370
3370
|
ease: "ease",
|
|
3371
3371
|
easeIn: "ease-in",
|
|
@@ -3378,7 +3378,7 @@ const $4 = /* @__PURE__ */ gi(() => window.ScrollTimeline !== void 0, "scrollTim
|
|
|
3378
3378
|
};
|
|
3379
3379
|
function vi(e, a) {
|
|
3380
3380
|
if (e)
|
|
3381
|
-
return typeof e == "function" ? Li() ? fi(e, a) : "ease-out" : zi(e) ? pa(e) : Array.isArray(e) ? e.map((n) => vi(n, a) ||
|
|
3381
|
+
return typeof e == "function" ? Li() ? fi(e, a) : "ease-out" : zi(e) ? pa(e) : Array.isArray(e) ? e.map((n) => vi(n, a) || $M.easeOut) : $M[e];
|
|
3382
3382
|
}
|
|
3383
3383
|
function Q4(e, a, n, { delay: t = 0, duration: o = 300, repeat: M = 0, repeatType: b = "loop", ease: s = "easeOut", times: i } = {}, z = void 0) {
|
|
3384
3384
|
const p = {
|
|
@@ -3497,7 +3497,7 @@ class _i extends z3 {
|
|
|
3497
3497
|
*/
|
|
3498
3498
|
attachTimeline({ timeline: a, observe: n }) {
|
|
3499
3499
|
var t;
|
|
3500
|
-
return this.allowFlatten && ((t = this.animation.effect) == null || t.updateTiming({ easing: "linear" })), this.animation.onfinish = null, a &&
|
|
3500
|
+
return this.allowFlatten && ((t = this.animation.effect) == null || t.updateTiming({ easing: "linear" })), this.animation.onfinish = null, a && Z4() ? (this.animation.timeline = a, N1) : n(this);
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
const Bi = {
|
|
@@ -3539,7 +3539,7 @@ class t5 extends _i {
|
|
|
3539
3539
|
n.setWithVelocity(s.sample(Math.max(0, i - z)).value, s.sample(i).value, z), s.stop();
|
|
3540
3540
|
}
|
|
3541
3541
|
}
|
|
3542
|
-
const
|
|
3542
|
+
const ZM = (e, a) => a === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
3543
3543
|
(j1.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
3544
3544
|
!e.startsWith("url("));
|
|
3545
3545
|
function o5(e) {
|
|
@@ -3556,7 +3556,7 @@ function M5(e, a, n, t) {
|
|
|
3556
3556
|
return !1;
|
|
3557
3557
|
if (a === "display" || a === "visibility")
|
|
3558
3558
|
return !0;
|
|
3559
|
-
const M = e[e.length - 1], b =
|
|
3559
|
+
const M = e[e.length - 1], b = ZM(o, a), s = ZM(M, a);
|
|
3560
3560
|
return Ee(b === s, `You are trying to animate ${a} from "${o}" to "${M}". "${b ? M : o}" is not an animatable value.`, "value-not-animatable"), !b || !s ? !1 : o5(e) || (n === "spring" || Ni(n)) && t;
|
|
3561
3561
|
}
|
|
3562
3562
|
function ho(e) {
|
|
@@ -3569,7 +3569,7 @@ const b5 = /* @__PURE__ */ new Set([
|
|
|
3569
3569
|
"transform"
|
|
3570
3570
|
// TODO: Could be re-enabled now we have support for linear() easing
|
|
3571
3571
|
// "background-color"
|
|
3572
|
-
]), s5 = /* @__PURE__ */
|
|
3572
|
+
]), s5 = /* @__PURE__ */ Zs(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
3573
3573
|
function i5(e) {
|
|
3574
3574
|
var p;
|
|
3575
3575
|
const { motionValue: a, name: n, repeatDelay: t, repeatType: o, damping: M, type: b } = e;
|
|
@@ -4130,7 +4130,7 @@ const w5 = {
|
|
|
4130
4130
|
parse: (e) => e
|
|
4131
4131
|
}, Ci = (e) => (a) => a.test(e), Pi = [je, V, Q1, g2, b4, M4, w5], ab = (e) => Pi.find(Ci(e));
|
|
4132
4132
|
function T5(e) {
|
|
4133
|
-
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" ||
|
|
4133
|
+
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || $s(e) : !0;
|
|
4134
4134
|
}
|
|
4135
4135
|
const S5 = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
4136
4136
|
function x5(e) {
|
|
@@ -4362,7 +4362,7 @@ const Fi = (e, a) => a && typeof e == "number" ? a.transform(e) : e;
|
|
|
4362
4362
|
function H5(e) {
|
|
4363
4363
|
return Ks(e) && "offsetHeight" in e;
|
|
4364
4364
|
}
|
|
4365
|
-
const { schedule: l3, cancel:
|
|
4365
|
+
const { schedule: l3, cancel: Qq } = /* @__PURE__ */ pi(queueMicrotask, !1), x1 = {
|
|
4366
4366
|
x: !1,
|
|
4367
4367
|
y: !1
|
|
4368
4368
|
};
|
|
@@ -4428,7 +4428,7 @@ function J5(e) {
|
|
|
4428
4428
|
return Y5.has(e.tagName) || e.isContentEditable === !0;
|
|
4429
4429
|
}
|
|
4430
4430
|
const K5 = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
|
|
4431
|
-
function
|
|
4431
|
+
function $5(e) {
|
|
4432
4432
|
return K5.has(e.tagName) || e.isContentEditable === !0;
|
|
4433
4433
|
}
|
|
4434
4434
|
const An = /* @__PURE__ */ new WeakSet();
|
|
@@ -4440,7 +4440,7 @@ function tb(e) {
|
|
|
4440
4440
|
function Bt(e, a) {
|
|
4441
4441
|
e.dispatchEvent(new PointerEvent("pointer" + a, { isPrimary: !0, bubbles: !0 }));
|
|
4442
4442
|
}
|
|
4443
|
-
const
|
|
4443
|
+
const Z5 = (e, a) => {
|
|
4444
4444
|
const n = e.currentTarget;
|
|
4445
4445
|
if (!n)
|
|
4446
4446
|
return;
|
|
@@ -4475,7 +4475,7 @@ function Q5(e, a, n = {}) {
|
|
|
4475
4475
|
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", r, o);
|
|
4476
4476
|
};
|
|
4477
4477
|
return t.forEach((s) => {
|
|
4478
|
-
(n.useGlobalTarget ? window : s).addEventListener("pointerdown", b, o), H5(s) && (s.addEventListener("focus", (z) =>
|
|
4478
|
+
(n.useGlobalTarget ? window : s).addEventListener("pointerdown", b, o), H5(s) && (s.addEventListener("focus", (z) => Z5(z, o)), !J5(s) && !s.hasAttribute("tabindex") && (s.tabIndex = 0));
|
|
4479
4479
|
}), M;
|
|
4480
4480
|
}
|
|
4481
4481
|
function q3(e) {
|
|
@@ -4805,7 +4805,7 @@ class uO {
|
|
|
4805
4805
|
*/
|
|
4806
4806
|
readValue(a, n) {
|
|
4807
4807
|
let t = this.latestValues[a] !== void 0 || !this.current ? this.latestValues[a] : this.getBaseTargetFromProps(this.props, a) ?? this.readValueFromInstance(this.current, a, this.options);
|
|
4808
|
-
return t != null && (typeof t == "string" && (Js(t) ||
|
|
4808
|
+
return t != null && (typeof t == "string" && (Js(t) || $s(t)) ? t = parseFloat(t) : !pO(t) && j1.test(n) && (t = ji(a, n)), this.setBaseTarget(a, M1(t) ? t.get() : t)), M1(t) ? t.get() : t;
|
|
4809
4809
|
}
|
|
4810
4810
|
/**
|
|
4811
4811
|
* Set the base target to later animate back to. This is currently
|
|
@@ -4841,7 +4841,7 @@ class uO {
|
|
|
4841
4841
|
l3.render(this.render);
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
|
-
class
|
|
4844
|
+
class $i extends uO {
|
|
4845
4845
|
constructor() {
|
|
4846
4846
|
super(...arguments), this.KeyframeResolver = I5;
|
|
4847
4847
|
}
|
|
@@ -4870,7 +4870,7 @@ class k2 {
|
|
|
4870
4870
|
update() {
|
|
4871
4871
|
}
|
|
4872
4872
|
}
|
|
4873
|
-
function
|
|
4873
|
+
function Zi({ top: e, left: a, right: n, bottom: t }) {
|
|
4874
4874
|
return {
|
|
4875
4875
|
x: { min: a, max: n },
|
|
4876
4876
|
y: { min: e, max: t }
|
|
@@ -4946,7 +4946,7 @@ function ge(e, a) {
|
|
|
4946
4946
|
db(e.x, a.x, a.scaleX, a.scale, a.originX), db(e.y, a.y, a.scaleY, a.scale, a.originY);
|
|
4947
4947
|
}
|
|
4948
4948
|
function az(e, a) {
|
|
4949
|
-
return
|
|
4949
|
+
return Zi(mO(e.getBoundingClientRect(), a));
|
|
4950
4950
|
}
|
|
4951
4951
|
function fO(e, a, n) {
|
|
4952
4952
|
const t = az(e, n), { scroll: o } = a;
|
|
@@ -5069,7 +5069,7 @@ function W3(e, a, n) {
|
|
|
5069
5069
|
function gO(e) {
|
|
5070
5070
|
return window.getComputedStyle(e);
|
|
5071
5071
|
}
|
|
5072
|
-
class LO extends
|
|
5072
|
+
class LO extends $i {
|
|
5073
5073
|
constructor() {
|
|
5074
5074
|
super(...arguments), this.type = "html", this.renderInstance = nz;
|
|
5075
5075
|
}
|
|
@@ -5170,7 +5170,7 @@ function sz(e, a, n) {
|
|
|
5170
5170
|
}
|
|
5171
5171
|
return t;
|
|
5172
5172
|
}
|
|
5173
|
-
class wO extends
|
|
5173
|
+
class wO extends $i {
|
|
5174
5174
|
constructor() {
|
|
5175
5175
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = K0;
|
|
5176
5176
|
}
|
|
@@ -5265,36 +5265,36 @@ function kO(e) {
|
|
|
5265
5265
|
O === i && l.isActive && !L && R || // If we removed a higher-priority variant (i is in reverse order)
|
|
5266
5266
|
m > A && R, j = !1;
|
|
5267
5267
|
const G = Array.isArray(h) ? h : [h];
|
|
5268
|
-
let
|
|
5269
|
-
f === !1 && (
|
|
5270
|
-
const { prevResolvedValues: S0 = {} } = l,
|
|
5268
|
+
let i0 = G.reduce(o(O), {});
|
|
5269
|
+
f === !1 && (i0 = {});
|
|
5270
|
+
const { prevResolvedValues: S0 = {} } = l, Z0 = {
|
|
5271
5271
|
...S0,
|
|
5272
|
-
...
|
|
5273
|
-
}, A0 = (
|
|
5274
|
-
x = !0, r.has(
|
|
5275
|
-
const l0 = e.getValue(
|
|
5272
|
+
...i0
|
|
5273
|
+
}, A0 = (z0) => {
|
|
5274
|
+
x = !0, r.has(z0) && (j = !0, r.delete(z0)), l.needsAnimating[z0] = !0;
|
|
5275
|
+
const l0 = e.getValue(z0);
|
|
5276
5276
|
l0 && (l0.liveStyle = !1);
|
|
5277
5277
|
};
|
|
5278
|
-
for (const
|
|
5279
|
-
const l0 =
|
|
5280
|
-
if (u.hasOwnProperty(
|
|
5278
|
+
for (const z0 in Z0) {
|
|
5279
|
+
const l0 = i0[z0], B0 = S0[z0];
|
|
5280
|
+
if (u.hasOwnProperty(z0))
|
|
5281
5281
|
continue;
|
|
5282
5282
|
let D0 = !1;
|
|
5283
|
-
yo(l0) && yo(B0) ? D0 = !zz(l0, B0) : D0 = l0 !== B0, D0 ? l0 != null ? A0(
|
|
5283
|
+
yo(l0) && yo(B0) ? D0 = !zz(l0, B0) : D0 = l0 !== B0, D0 ? l0 != null ? A0(z0) : r.add(z0) : l0 !== void 0 && r.has(z0) ? A0(z0) : l.protectedKeys[z0] = !0;
|
|
5284
5284
|
}
|
|
5285
|
-
l.prevProp = h, l.prevResolvedValues =
|
|
5285
|
+
l.prevProp = h, l.prevResolvedValues = i0, l.isActive && (u = { ...u, ...i0 }), t && e.blockInitialAnimation && (x = !1);
|
|
5286
5286
|
const a0 = L && v;
|
|
5287
|
-
x && (!a0 || j) && c.push(...G.map((
|
|
5287
|
+
x && (!a0 || j) && c.push(...G.map((z0) => {
|
|
5288
5288
|
const l0 = { type: O };
|
|
5289
|
-
if (typeof
|
|
5290
|
-
const { parent: B0 } = e, D0 = ve(B0,
|
|
5289
|
+
if (typeof z0 == "string" && t && !a0 && e.manuallyAnimateOnMount && e.parent) {
|
|
5290
|
+
const { parent: B0 } = e, D0 = ve(B0, z0);
|
|
5291
5291
|
if (B0.enteringChildren && D0) {
|
|
5292
5292
|
const { delayChildren: P0 } = D0.transition || {};
|
|
5293
5293
|
l0.delay = Di(B0.enteringChildren, e, P0);
|
|
5294
5294
|
}
|
|
5295
5295
|
}
|
|
5296
5296
|
return {
|
|
5297
|
-
animation:
|
|
5297
|
+
animation: z0,
|
|
5298
5298
|
options: l0
|
|
5299
5299
|
};
|
|
5300
5300
|
}));
|
|
@@ -5446,8 +5446,8 @@ function JO(e, a, n) {
|
|
|
5446
5446
|
return (s !== 1 || i !== 1) && (t += `scale(${s}, ${i})`), t || "none";
|
|
5447
5447
|
}
|
|
5448
5448
|
const dz = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], KO = dz.length, Bb = (e) => typeof e == "string" ? parseFloat(e) : e, Db = (e) => typeof e == "number" || V.test(e);
|
|
5449
|
-
function
|
|
5450
|
-
o ? (e.opacity = C0(0, n.opacity ?? 1,
|
|
5449
|
+
function $O(e, a, n, t, o, M) {
|
|
5450
|
+
o ? (e.opacity = C0(0, n.opacity ?? 1, ZO(t)), e.opacityExit = C0(a.opacity ?? 1, 0, QO(t))) : M && (e.opacity = C0(a.opacity ?? 1, n.opacity ?? 1, t));
|
|
5451
5451
|
for (let b = 0; b < KO; b++) {
|
|
5452
5452
|
const s = `border${dz[b]}Radius`;
|
|
5453
5453
|
let i = wb(a, s), z = wb(n, s);
|
|
@@ -5460,7 +5460,7 @@ function ZO(e, a, n, t, o, M) {
|
|
|
5460
5460
|
function wb(e, a) {
|
|
5461
5461
|
return e[a] !== void 0 ? e[a] : e.borderRadius;
|
|
5462
5462
|
}
|
|
5463
|
-
const
|
|
5463
|
+
const ZO = /* @__PURE__ */ Az(0, 0.5, bi), QO = /* @__PURE__ */ Az(0.5, 0.95, N1);
|
|
5464
5464
|
function Az(e, a, n) {
|
|
5465
5465
|
return (t) => t < e ? 0 : t > a ? 1 : n(/* @__PURE__ */ la(e, a, t));
|
|
5466
5466
|
}
|
|
@@ -5477,7 +5477,7 @@ class n6 {
|
|
|
5477
5477
|
this.children = [], this.isDirty = !1;
|
|
5478
5478
|
}
|
|
5479
5479
|
add(a) {
|
|
5480
|
-
|
|
5480
|
+
Zo(this.children, a), this.isDirty = !0;
|
|
5481
5481
|
}
|
|
5482
5482
|
remove(a) {
|
|
5483
5483
|
Nn(this.children, a), this.isDirty = !0;
|
|
@@ -5501,7 +5501,7 @@ class o6 {
|
|
|
5501
5501
|
this.members = [];
|
|
5502
5502
|
}
|
|
5503
5503
|
add(a) {
|
|
5504
|
-
|
|
5504
|
+
Zo(this.members, a);
|
|
5505
5505
|
for (let n = this.members.length - 1; n >= 0; n--) {
|
|
5506
5506
|
const t = this.members[n];
|
|
5507
5507
|
if (t === a || t === this.lead || t === this.prevLead)
|
|
@@ -5906,7 +5906,7 @@ function lz({ attachResizeListener: e, defaultParent: a, measureScroll: n, check
|
|
|
5906
5906
|
let h;
|
|
5907
5907
|
this.mixTargetDelta = (R) => {
|
|
5908
5908
|
const f = R / 1e3;
|
|
5909
|
-
Xb(c.x, b.x, f), Xb(c.y, b.y, f), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Sn(r, this.layout.layoutBox, this.relativeParent.layout.layoutBox), l6(this.relativeTarget, this.relativeTargetOrigin, r, f), h && YO(this.relativeTarget, h) && (this.isProjectionDirty = !1), h || (h = K0()), S1(h, this.relativeTarget)), W && (this.animationValues = p,
|
|
5909
|
+
Xb(c.x, b.x, f), Xb(c.y, b.y, f), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Sn(r, this.layout.layoutBox, this.relativeParent.layout.layoutBox), l6(this.relativeTarget, this.relativeTargetOrigin, r, f), h && YO(this.relativeTarget, h) && (this.isProjectionDirty = !1), h || (h = K0()), S1(h, this.relativeTarget)), W && (this.animationValues = p, $O(p, z, this.latestValues, f, l, O)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = f;
|
|
5910
5910
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5911
5911
|
}
|
|
5912
5912
|
startAnimation(b) {
|
|
@@ -6194,10 +6194,10 @@ const y6 = lz({
|
|
|
6194
6194
|
reducedMotion: "never"
|
|
6195
6195
|
});
|
|
6196
6196
|
function W6(e = !0) {
|
|
6197
|
-
const a = j0(
|
|
6197
|
+
const a = j0($o);
|
|
6198
6198
|
if (a === null)
|
|
6199
6199
|
return [!0, null];
|
|
6200
|
-
const { isPresent: n, onExitComplete: t, register: o } = a, M =
|
|
6200
|
+
const { isPresent: n, onExitComplete: t, register: o } = a, M = $r();
|
|
6201
6201
|
O0(() => {
|
|
6202
6202
|
if (e)
|
|
6203
6203
|
return o(M);
|
|
@@ -6408,7 +6408,7 @@ function g3(e) {
|
|
|
6408
6408
|
}
|
|
6409
6409
|
function X6(e, a, n, { latestValues: t }, o, M = !1, b) {
|
|
6410
6410
|
const i = (b ?? g3(e) ? S6 : T6)(a, t, o, e), z = N6(a, typeof e == "string", M), p = e !== Xs ? { ...z, ...i, ref: n } : {}, { children: c } = a, r = o1(() => M1(c) ? c.get() : c, [c]);
|
|
6411
|
-
return
|
|
6411
|
+
return Zr(e, {
|
|
6412
6412
|
...p,
|
|
6413
6413
|
children: r
|
|
6414
6414
|
});
|
|
@@ -6451,7 +6451,7 @@ function C6(e, a, n, t) {
|
|
|
6451
6451
|
return o;
|
|
6452
6452
|
}
|
|
6453
6453
|
const Lz = (e) => (a, n) => {
|
|
6454
|
-
const t = j0(Kn), o = j0(
|
|
6454
|
+
const t = j0(Kn), o = j0($o), M = () => k6(e, a, t, o);
|
|
6455
6455
|
return n ? M() : Ec(M);
|
|
6456
6456
|
}, P6 = /* @__PURE__ */ Lz({
|
|
6457
6457
|
scrapeMotionValuesFromProps: W3,
|
|
@@ -6461,11 +6461,11 @@ const Lz = (e) => (a, n) => {
|
|
|
6461
6461
|
createRenderState: gz
|
|
6462
6462
|
}), j6 = Symbol.for("motionComponentSymbol");
|
|
6463
6463
|
function I6(e, a, n) {
|
|
6464
|
-
const t =
|
|
6464
|
+
const t = s0(n);
|
|
6465
6465
|
ks(() => {
|
|
6466
6466
|
t.current = n;
|
|
6467
6467
|
});
|
|
6468
|
-
const o =
|
|
6468
|
+
const o = s0(null);
|
|
6469
6469
|
return W0((M) => {
|
|
6470
6470
|
var s;
|
|
6471
6471
|
M && ((s = e.onMount) == null || s.call(e, M)), a && (M ? a.mount(M) : a.unmount());
|
|
@@ -6484,7 +6484,7 @@ function le(e) {
|
|
|
6484
6484
|
}
|
|
6485
6485
|
function F6(e, a, n, t, o, M) {
|
|
6486
6486
|
var h, R;
|
|
6487
|
-
const { visualElement: b } = j0(Kn), s = j0(hz), i = j0(
|
|
6487
|
+
const { visualElement: b } = j0(Kn), s = j0(hz), i = j0($o), z = j0(fz), p = z.reducedMotion, c = z.skipAnimations, r = s0(null), u = s0(!1);
|
|
6488
6488
|
t = t || s.renderer, !r.current && t && (r.current = t(e, {
|
|
6489
6489
|
visualState: a,
|
|
6490
6490
|
parent: b,
|
|
@@ -6497,11 +6497,11 @@ function F6(e, a, n, t, o, M) {
|
|
|
6497
6497
|
}), u.current && r.current && (r.current.manuallyAnimateOnMount = !0));
|
|
6498
6498
|
const A = r.current, W = j0(vz);
|
|
6499
6499
|
A && !A.projection && o && (A.type === "html" || A.type === "svg") && H6(r.current, n, o, W);
|
|
6500
|
-
const m =
|
|
6500
|
+
const m = s0(!1);
|
|
6501
6501
|
ks(() => {
|
|
6502
6502
|
A && m.current && A.update(n, i);
|
|
6503
6503
|
});
|
|
6504
|
-
const O = n[xi], l =
|
|
6504
|
+
const O = n[xi], l = s0(!!O && !((h = window.MotionHandoffIsComplete) != null && h.call(window, O)) && ((R = window.MotionHasOptimisedAnimation) == null ? void 0 : R.call(window, O)));
|
|
6505
6505
|
return jc(() => {
|
|
6506
6506
|
u.current = !0, A && (m.current = !0, window.MotionIsMounted = !0, A.updateFeatures(), A.scheduleRenderMicrotask(), l.current && A.animationState && A.animationState.animateChanges());
|
|
6507
6507
|
}), O0(() => {
|
|
@@ -6622,10 +6622,10 @@ class K6 extends k2 {
|
|
|
6622
6622
|
this.node.animationState.reset(), (a = this.unmountControls) == null || a.call(this);
|
|
6623
6623
|
}
|
|
6624
6624
|
}
|
|
6625
|
-
let
|
|
6626
|
-
class
|
|
6625
|
+
let $6 = 0;
|
|
6626
|
+
class Z6 extends k2 {
|
|
6627
6627
|
constructor() {
|
|
6628
|
-
super(...arguments), this.id =
|
|
6628
|
+
super(...arguments), this.id = $6++;
|
|
6629
6629
|
}
|
|
6630
6630
|
update() {
|
|
6631
6631
|
if (!this.node.presenceContext)
|
|
@@ -6650,7 +6650,7 @@ const Q6 = {
|
|
|
6650
6650
|
Feature: K6
|
|
6651
6651
|
},
|
|
6652
6652
|
exit: {
|
|
6653
|
-
Feature:
|
|
6653
|
+
Feature: Z6
|
|
6654
6654
|
}
|
|
6655
6655
|
};
|
|
6656
6656
|
function Ta(e) {
|
|
@@ -6960,7 +6960,7 @@ class rd {
|
|
|
6960
6960
|
let b = bd(o.layout.layoutBox, M);
|
|
6961
6961
|
if (n) {
|
|
6962
6962
|
const s = n(lO(b));
|
|
6963
|
-
this.hasMutatedConstraints = !!s, s && (b =
|
|
6963
|
+
this.hasMutatedConstraints = !!s, s && (b = Zi(s));
|
|
6964
6964
|
}
|
|
6965
6965
|
return b;
|
|
6966
6966
|
}
|
|
@@ -7047,7 +7047,7 @@ class rd {
|
|
|
7047
7047
|
return;
|
|
7048
7048
|
pd.set(this.visualElement, this);
|
|
7049
7049
|
const a = this.visualElement.current, n = da(a, "pointerdown", (z) => {
|
|
7050
|
-
const { drag: p, dragListener: c = !0 } = this.getProps(), r = z.target, u = r !== a &&
|
|
7050
|
+
const { drag: p, dragListener: c = !0 } = this.getProps(), r = z.target, u = r !== a && $5(r);
|
|
7051
7051
|
p && c && !u && this.start(z);
|
|
7052
7052
|
});
|
|
7053
7053
|
let t;
|
|
@@ -7079,7 +7079,7 @@ class rd {
|
|
|
7079
7079
|
};
|
|
7080
7080
|
}
|
|
7081
7081
|
}
|
|
7082
|
-
function
|
|
7082
|
+
function $b(e) {
|
|
7083
7083
|
let a = !0;
|
|
7084
7084
|
return () => {
|
|
7085
7085
|
if (a) {
|
|
@@ -7090,7 +7090,7 @@ function Zb(e) {
|
|
|
7090
7090
|
};
|
|
7091
7091
|
}
|
|
7092
7092
|
function cd(e, a, n) {
|
|
7093
|
-
const t = bb(e,
|
|
7093
|
+
const t = bb(e, $b(n)), o = bb(a, $b(n));
|
|
7094
7094
|
return () => {
|
|
7095
7095
|
t(), o();
|
|
7096
7096
|
};
|
|
@@ -7211,7 +7211,7 @@ const ld = {
|
|
|
7211
7211
|
MeasureLayout: wz
|
|
7212
7212
|
}
|
|
7213
7213
|
};
|
|
7214
|
-
function
|
|
7214
|
+
function Zb(e, a, n) {
|
|
7215
7215
|
const { props: t } = e;
|
|
7216
7216
|
e.animationState && t.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
7217
7217
|
const o = "onHover" + n, M = t[o];
|
|
@@ -7220,7 +7220,7 @@ function $b(e, a, n) {
|
|
|
7220
7220
|
class md extends k2 {
|
|
7221
7221
|
mount() {
|
|
7222
7222
|
const { current: a } = this.node;
|
|
7223
|
-
a && (this.unmount = U5(a, (n, t) => (
|
|
7223
|
+
a && (this.unmount = U5(a, (n, t) => (Zb(this.node, t, "Start"), (o) => Zb(this.node, o, "End"))));
|
|
7224
7224
|
}
|
|
7225
7225
|
unmount() {
|
|
7226
7226
|
}
|
|
@@ -7544,7 +7544,7 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7544
7544
|
})
|
|
7545
7545
|
});
|
|
7546
7546
|
}), Yd = /* @__PURE__ */ Cs(function({ id: a, fill: n = "#FFFFFF", state: t = "success", title: o = t, description: M, position: b = "left", expand: s = "bottom", className: i, icon: z, styles: p, button: c, roundness: r, exiting: u = !1, autoExpandDelayMs: A, autoCollapseDelayMs: W, canExpand: m, interruptKey: O, refreshKey: l, onMouseEnter: h, onMouseLeave: R, onDismiss: f }) {
|
|
7547
|
-
var L, v, x, j, G,
|
|
7547
|
+
var L, v, x, j, G, i0, S0, Z0;
|
|
7548
7548
|
const A0 = o1(() => ({
|
|
7549
7549
|
title: o,
|
|
7550
7550
|
description: M,
|
|
@@ -7561,23 +7561,23 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7561
7561
|
p,
|
|
7562
7562
|
c,
|
|
7563
7563
|
n
|
|
7564
|
-
]), [a0, u0] = I(A0), [
|
|
7564
|
+
]), [a0, u0] = I(A0), [z0, l0] = I(l), [B0, D0] = I(!1), [P0, y2] = I(!1), [h1, r1] = I(0), [N0, m0] = I(0), U = !!a0.description || !!a0.button, r0 = a0.state === "loading", h0 = U && B0 && !r0, Q0 = r0 ? !1 : m ?? (!O || O === a), y1 = `${a0.state}-${a0.title}`, t1 = `sileo-gooey-${a}`, y = Math.max(0, r ?? wd), _ = y * kd, w = s0(null), k = s0(null), Y = s0(null), o0 = s0(null), y0 = s0(null), M0 = s0(null), q = s0(l), F = s0(null), [C, c0] = I({
|
|
7565
7565
|
current: {
|
|
7566
7566
|
key: y1,
|
|
7567
7567
|
view: a0
|
|
7568
7568
|
},
|
|
7569
7569
|
prev: null
|
|
7570
|
-
}), H0 =
|
|
7570
|
+
}), H0 = s0(null), R0 = s0(null), Q = s0(null), u1 = s0(0), w1 = s0(null);
|
|
7571
7571
|
ra(() => {
|
|
7572
|
-
const
|
|
7573
|
-
if (
|
|
7572
|
+
const Z = H0.current, V0 = w.current;
|
|
7573
|
+
if (!Z || !V0) return;
|
|
7574
7574
|
if (R0.current === null) {
|
|
7575
7575
|
const c1 = getComputedStyle(V0);
|
|
7576
7576
|
R0.current = parseFloat(c1.paddingLeft) + parseFloat(c1.paddingRight);
|
|
7577
7577
|
}
|
|
7578
7578
|
const e1 = R0.current;
|
|
7579
7579
|
(() => {
|
|
7580
|
-
const c1 =
|
|
7580
|
+
const c1 = Z.scrollWidth + e1 + tn;
|
|
7581
7581
|
c1 > tn && r1((G1) => G1 === c1 ? G1 : c1);
|
|
7582
7582
|
})(), Q.current || (Q.current = new ResizeObserver(() => {
|
|
7583
7583
|
cancelAnimationFrame(u1.current), u1.current = requestAnimationFrame(() => {
|
|
@@ -7587,21 +7587,21 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7587
7587
|
const ut = G1.scrollWidth + Kr + tn;
|
|
7588
7588
|
ut > tn && r1((AM) => AM === ut ? AM : ut);
|
|
7589
7589
|
});
|
|
7590
|
-
})), w1.current !==
|
|
7590
|
+
})), w1.current !== Z && (w1.current && Q.current.unobserve(w1.current), Q.current.observe(Z), w1.current = Z);
|
|
7591
7591
|
}, [
|
|
7592
7592
|
C.current.key
|
|
7593
7593
|
]), O0(() => () => {
|
|
7594
|
-
var
|
|
7595
|
-
cancelAnimationFrame(u1.current), (
|
|
7594
|
+
var Z;
|
|
7595
|
+
cancelAnimationFrame(u1.current), (Z = Q.current) == null || Z.disconnect();
|
|
7596
7596
|
}, []), ra(() => {
|
|
7597
7597
|
if (!U) {
|
|
7598
7598
|
m0(0);
|
|
7599
7599
|
return;
|
|
7600
7600
|
}
|
|
7601
|
-
const
|
|
7602
|
-
if (
|
|
7601
|
+
const Z = k.current;
|
|
7602
|
+
if (!Z) return;
|
|
7603
7603
|
const V0 = () => {
|
|
7604
|
-
const c1 =
|
|
7604
|
+
const c1 = Z.scrollHeight;
|
|
7605
7605
|
m0((G1) => G1 === c1 ? G1 : c1);
|
|
7606
7606
|
};
|
|
7607
7607
|
V0();
|
|
@@ -7609,22 +7609,22 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7609
7609
|
const R1 = new ResizeObserver(() => {
|
|
7610
7610
|
cancelAnimationFrame(e1), e1 = requestAnimationFrame(V0);
|
|
7611
7611
|
});
|
|
7612
|
-
return R1.observe(
|
|
7612
|
+
return R1.observe(Z), () => {
|
|
7613
7613
|
cancelAnimationFrame(e1), R1.disconnect();
|
|
7614
7614
|
};
|
|
7615
7615
|
}, [
|
|
7616
7616
|
U
|
|
7617
7617
|
]), O0(() => {
|
|
7618
|
-
const
|
|
7619
|
-
return () => cancelAnimationFrame(
|
|
7618
|
+
const Z = requestAnimationFrame(() => y2(!0));
|
|
7619
|
+
return () => cancelAnimationFrame(Z);
|
|
7620
7620
|
}, []), ra(() => {
|
|
7621
|
-
c0((
|
|
7621
|
+
c0((Z) => Z.current.key === y1 ? Z.current.view === a0 ? Z : Y0({}, Z, {
|
|
7622
7622
|
current: {
|
|
7623
7623
|
key: y1,
|
|
7624
7624
|
view: a0
|
|
7625
7625
|
}
|
|
7626
7626
|
}) : {
|
|
7627
|
-
prev:
|
|
7627
|
+
prev: Z.current,
|
|
7628
7628
|
current: {
|
|
7629
7629
|
key: y1,
|
|
7630
7630
|
view: a0
|
|
@@ -7636,7 +7636,7 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7636
7636
|
]), O0(() => {
|
|
7637
7637
|
if (C.prev)
|
|
7638
7638
|
return Y.current && clearTimeout(Y.current), Y.current = window.setTimeout(() => {
|
|
7639
|
-
Y.current = null, c0((
|
|
7639
|
+
Y.current = null, c0((Z) => Y0({}, Z, {
|
|
7640
7640
|
prev: null
|
|
7641
7641
|
}));
|
|
7642
7642
|
}, Ed), () => {
|
|
@@ -7654,8 +7654,8 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7654
7654
|
payload: A0
|
|
7655
7655
|
}, D0(!1), M0.current = window.setTimeout(() => {
|
|
7656
7656
|
M0.current = null;
|
|
7657
|
-
const
|
|
7658
|
-
|
|
7657
|
+
const Z = F.current;
|
|
7658
|
+
Z && (u0(Z.payload), l0(Z.key), F.current = null);
|
|
7659
7659
|
}, Pd)) : (F.current = null, u0(A0), l0(l)));
|
|
7660
7660
|
}, [
|
|
7661
7661
|
h0,
|
|
@@ -7668,8 +7668,8 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7668
7668
|
return;
|
|
7669
7669
|
}
|
|
7670
7670
|
if (A == null && W == null) return;
|
|
7671
|
-
const
|
|
7672
|
-
return
|
|
7671
|
+
const Z = A ?? 0, V0 = W ?? 0;
|
|
7672
|
+
return Z > 0 ? o0.current = window.setTimeout(() => D0(!0), Z) : D0(!0), V0 > 0 && (y0.current = window.setTimeout(() => D0(!1), V0)), () => {
|
|
7673
7673
|
o0.current && clearTimeout(o0.current), y0.current && clearTimeout(y0.current);
|
|
7674
7674
|
};
|
|
7675
7675
|
}, [
|
|
@@ -7678,9 +7678,9 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7678
7678
|
U,
|
|
7679
7679
|
Q0,
|
|
7680
7680
|
u,
|
|
7681
|
-
|
|
7681
|
+
z0
|
|
7682
7682
|
]);
|
|
7683
|
-
const J0 = U1 * Cd, T1 = U ? Math.max(J0, U1 + N0) : J0, W2 =
|
|
7683
|
+
const J0 = U1 * Cd, T1 = U ? Math.max(J0, U1 + N0) : J0, W2 = s0(T1);
|
|
7684
7684
|
h0 && (W2.current = T1);
|
|
7685
7685
|
const l1 = h0 ? T1 : W2.current, P2 = U ? Math.max(l1, J0) : U1, W1 = Math.max(0, l1 - U1), be = Math.max(h1 || U1, U1), dM = U1 + _ * 3, Va = b === "right" ? na - be : b === "center" ? (na - be) / 2 : 0, Xr = o1(() => ({
|
|
7686
7686
|
x: Va,
|
|
@@ -7721,26 +7721,26 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7721
7721
|
be,
|
|
7722
7722
|
Va,
|
|
7723
7723
|
s
|
|
7724
|
-
]), Fr = W0((
|
|
7725
|
-
h == null || h(
|
|
7724
|
+
]), Fr = W0((Z) => {
|
|
7725
|
+
h == null || h(Z), U && D0(!0);
|
|
7726
7726
|
}, [
|
|
7727
7727
|
U,
|
|
7728
7728
|
h
|
|
7729
|
-
]), Hr = W0((
|
|
7730
|
-
R == null || R(
|
|
7729
|
+
]), Hr = W0((Z) => {
|
|
7730
|
+
R == null || R(Z), D0(!1);
|
|
7731
7731
|
}, [
|
|
7732
7732
|
R
|
|
7733
|
-
]), Vr = W0((
|
|
7734
|
-
if (
|
|
7733
|
+
]), Vr = W0((Z) => {
|
|
7734
|
+
if (Z.propertyName !== "height" && Z.propertyName !== "transform" || h0) return;
|
|
7735
7735
|
const V0 = F.current;
|
|
7736
7736
|
V0 && (M0.current && (clearTimeout(M0.current), M0.current = null), u0(V0.payload), l0(V0.key), F.current = null);
|
|
7737
7737
|
}, [
|
|
7738
7738
|
h0
|
|
7739
|
-
]), Gr = 30, Ur = 20, Ga =
|
|
7739
|
+
]), Gr = 30, Ur = 20, Ga = s0(null), se = s0(null), Ua = s0(f);
|
|
7740
7740
|
Ua.current = f;
|
|
7741
|
-
const At =
|
|
7741
|
+
const At = s0(null);
|
|
7742
7742
|
if (!At.current) {
|
|
7743
|
-
const
|
|
7743
|
+
const Z = {
|
|
7744
7744
|
onMove: (V0) => {
|
|
7745
7745
|
const e1 = Ga.current;
|
|
7746
7746
|
if (se.current === null || !e1) return;
|
|
@@ -7751,19 +7751,19 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7751
7751
|
const e1 = Ga.current;
|
|
7752
7752
|
if (se.current === null || !e1) return;
|
|
7753
7753
|
const R1 = V0.clientY - se.current;
|
|
7754
|
-
se.current = null, e1.style.transform = "", e1.removeEventListener("pointermove",
|
|
7754
|
+
se.current = null, e1.style.transform = "", e1.removeEventListener("pointermove", Z.onMove), e1.removeEventListener("pointerup", Z.onUp), Math.abs(R1) > Gr && (Ua.current == null || Ua.current.call(Ua));
|
|
7755
7755
|
}
|
|
7756
7756
|
};
|
|
7757
|
-
At.current =
|
|
7757
|
+
At.current = Z;
|
|
7758
7758
|
}
|
|
7759
|
-
const Yr = W0((
|
|
7759
|
+
const Yr = W0((Z) => {
|
|
7760
7760
|
var V0;
|
|
7761
|
-
|
|
7761
|
+
Z.preventDefault(), Z.stopPropagation(), (V0 = a0.button) == null || V0.onClick();
|
|
7762
7762
|
}, [
|
|
7763
7763
|
a0.button
|
|
7764
|
-
]), Jr = W0((
|
|
7765
|
-
if (u || !f ||
|
|
7766
|
-
se.current =
|
|
7764
|
+
]), Jr = W0((Z) => {
|
|
7765
|
+
if (u || !f || Z.target.closest("[data-sileo-button]")) return;
|
|
7766
|
+
se.current = Z.clientY, Z.currentTarget.setPointerCapture(Z.pointerId);
|
|
7767
7767
|
const e1 = Ga.current, R1 = At.current;
|
|
7768
7768
|
e1 && R1 && (e1.addEventListener("pointermove", R1.onMove, {
|
|
7769
7769
|
passive: !0
|
|
@@ -7871,7 +7871,7 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7871
7871
|
/* @__PURE__ */ d.jsx("span", {
|
|
7872
7872
|
"data-sileo-title": !0,
|
|
7873
7873
|
"data-state": C.prev.view.state,
|
|
7874
|
-
className: (
|
|
7874
|
+
className: (i0 = C.prev.view.styles) == null ? void 0 : i0.title,
|
|
7875
7875
|
children: C.prev.view.title
|
|
7876
7876
|
})
|
|
7877
7877
|
]
|
|
@@ -7895,7 +7895,7 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7895
7895
|
type: "button",
|
|
7896
7896
|
"data-sileo-button": !0,
|
|
7897
7897
|
"data-state": a0.state,
|
|
7898
|
-
className: (
|
|
7898
|
+
className: (Z0 = a0.styles) == null ? void 0 : Z0.button,
|
|
7899
7899
|
onClick: Yr,
|
|
7900
7900
|
children: a0.button.title
|
|
7901
7901
|
})
|
|
@@ -7916,8 +7916,8 @@ const U1 = 40, na = 350, wd = 16, Tz = 600, Td = Tz / 1e3, He = 6e3, Sd = He * 0
|
|
|
7916
7916
|
this.toasts = e(this.toasts), this.emit();
|
|
7917
7917
|
}
|
|
7918
7918
|
};
|
|
7919
|
-
let
|
|
7920
|
-
const
|
|
7919
|
+
let $d = 0;
|
|
7920
|
+
const Zd = () => `${++$d}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`, ns = (e) => `${e.id}:${e.instanceId}`, To = (e) => {
|
|
7921
7921
|
const a = n1.toasts.find((n) => n.id === e);
|
|
7922
7922
|
!a || a.exiting || (n1.update((n) => n.map((t) => t.id === e ? Y0({}, t, {
|
|
7923
7923
|
exiting: !0
|
|
@@ -7940,7 +7940,7 @@ const $d = () => `${++Zd}-${Date.now().toString(36)}-${Math.random().toString(36
|
|
|
7940
7940
|
const b = (t = e.duration) != null ? t : He, s = Qd(e, b);
|
|
7941
7941
|
return Y0({}, e, {
|
|
7942
7942
|
id: a,
|
|
7943
|
-
instanceId:
|
|
7943
|
+
instanceId: Zd(),
|
|
7944
7944
|
position: (o = (M = e.position) != null ? M : n) != null ? o : n1.position,
|
|
7945
7945
|
autoExpandDelayMs: s.expandDelayMs,
|
|
7946
7946
|
autoCollapseDelayMs: s.collapseDelayMs
|
|
@@ -8009,7 +8009,7 @@ const $d = () => `${++Zd}-${Date.now().toString(36)}-${Math.random().toString(36
|
|
|
8009
8009
|
clear: (e) => n1.update((a) => e ? a.filter((n) => n.position !== e) : [])
|
|
8010
8010
|
};
|
|
8011
8011
|
function eA({ children: e, position: a = "top-right", offset: n, options: t }) {
|
|
8012
|
-
const [o, M] = I(n1.toasts), [b, s] = I(), i =
|
|
8012
|
+
const [o, M] = I(n1.toasts), [b, s] = I(), i = s0(!1), z = s0(/* @__PURE__ */ new Map()), p = s0(o), c = s0(void 0), r = s0(/* @__PURE__ */ new Map());
|
|
8013
8013
|
O0(() => {
|
|
8014
8014
|
n1.position = a, n1.options = t;
|
|
8015
8015
|
}, [
|
|
@@ -8049,7 +8049,7 @@ function eA({ children: e, position: a = "top-right", offset: n, options: t }) {
|
|
|
8049
8049
|
o,
|
|
8050
8050
|
A
|
|
8051
8051
|
]);
|
|
8052
|
-
const W =
|
|
8052
|
+
const W = s0(null), m = s0(null);
|
|
8053
8053
|
W.current = W0(() => {
|
|
8054
8054
|
i.current || (i.current = !0, u());
|
|
8055
8055
|
}, [
|
|
@@ -8151,7 +8151,7 @@ const Xz = () => ({
|
|
|
8151
8151
|
info: (M, b) => ta.info({ title: M, description: b }),
|
|
8152
8152
|
warning: (M, b) => ta.warning({ title: M, description: b }),
|
|
8153
8153
|
promise: (M, b) => ta.promise(M, b)
|
|
8154
|
-
}), kz = q1(),
|
|
8154
|
+
}), kz = q1(), af = ({ children: e }) => {
|
|
8155
8155
|
const { sileoToastEnabled: a, customDeviceType: n } = H1(), { success: t, error: o, info: M, warning: b } = Xz(), s = Cc(), [i, z] = I(!1), [p, c] = I(), [r, u] = I(), A = n || s.type, h = {
|
|
8156
8156
|
showAlert: i,
|
|
8157
8157
|
setShowAlert: z,
|
|
@@ -8293,8 +8293,8 @@ const aA = async (e, a, n, t) => {
|
|
|
8293
8293
|
return { token: e, user: t, setToken: a, setUser: o, storageLogout: () => {
|
|
8294
8294
|
n(), M();
|
|
8295
8295
|
} };
|
|
8296
|
-
}, Cz = q1(),
|
|
8297
|
-
const { heartbeatEndpoint: a, firstPrivatePath: n, infiniteSession: t, timeDeducted: o, authenticatedEndpoint: M, autoLogin: b, setCurrentDate: s, isDebug: i, backendToken: z, useCustomLoginTimeout: p, stopLoaderOnFinish: c, customLoginTimeout: r, tokenLog: u, timerInfiniteSession: A } = H1(), { setIsLoading: W, showLoadingFor: m } = Pe(), { setShowAlert: O, activeAlert: l } = te(), { token: h, setToken: R, setUser: f, storageLogout: L } = Sa(), v = Go(), [x, j] = I(null), [G,
|
|
8296
|
+
}, Cz = q1(), nf = ({ children: e }) => {
|
|
8297
|
+
const { heartbeatEndpoint: a, firstPrivatePath: n, infiniteSession: t, timeDeducted: o, authenticatedEndpoint: M, autoLogin: b, setCurrentDate: s, isDebug: i, backendToken: z, useCustomLoginTimeout: p, stopLoaderOnFinish: c, customLoginTimeout: r, tokenLog: u, timerInfiniteSession: A } = H1(), { setIsLoading: W, showLoadingFor: m } = Pe(), { setShowAlert: O, activeAlert: l } = te(), { token: h, setToken: R, setUser: f, storageLogout: L } = Sa(), v = Go(), [x, j] = I(null), [G, i0] = I(), [S0, Z0] = I(), [A0, a0] = I(!1), u0 = async (N0 = l0, m0, U) => await aA(l, N0, m0, U), z0 = async (N0 = null, m0) => {
|
|
8298
8298
|
N0 && N0.preventDefault(), a0(!0);
|
|
8299
8299
|
try {
|
|
8300
8300
|
p ? m(r) : W(!0), O(!1);
|
|
@@ -8331,7 +8331,7 @@ const aA = async (e, a, n, t) => {
|
|
|
8331
8331
|
u && console.warn("[Auth]: Token scaduto, eseguo logout."), l0(), l("danger", U);
|
|
8332
8332
|
return;
|
|
8333
8333
|
}
|
|
8334
|
-
|
|
8334
|
+
Z0(Q0), i0(Q0 - o);
|
|
8335
8335
|
const y1 = Q0 - o;
|
|
8336
8336
|
if (u) {
|
|
8337
8337
|
const t1 = Math.floor(Q0 / 1e3), y = Math.floor(t1 / 60), _ = t1 % 60;
|
|
@@ -8392,7 +8392,7 @@ const aA = async (e, a, n, t) => {
|
|
|
8392
8392
|
const r1 = {
|
|
8393
8393
|
isAuthenticated: x,
|
|
8394
8394
|
setIsAuthenticated: j,
|
|
8395
|
-
login:
|
|
8395
|
+
login: z0,
|
|
8396
8396
|
logout: l0,
|
|
8397
8397
|
createAxiosInstances: u0,
|
|
8398
8398
|
fetchHeartbeat: B0,
|
|
@@ -8402,11 +8402,11 @@ const aA = async (e, a, n, t) => {
|
|
|
8402
8402
|
handleLoad: h1
|
|
8403
8403
|
};
|
|
8404
8404
|
return /* @__PURE__ */ d.jsx(Cz.Provider, { value: r1, children: e });
|
|
8405
|
-
},
|
|
8405
|
+
}, $n = () => {
|
|
8406
8406
|
const e = j0(Cz);
|
|
8407
8407
|
if (e === void 0) throw new Error("Non sei dentro al Auth Provider");
|
|
8408
8408
|
return e;
|
|
8409
|
-
}, Pz = q1(),
|
|
8409
|
+
}, Pz = q1(), tf = ({ children: e, publicRoutes: a = [], privateRoutes: n = [] }) => /* @__PURE__ */ d.jsx(Pz.Provider, { value: { publicRoutes: a, privateRoutes: n }, children: e }), nA = () => {
|
|
8410
8410
|
const e = j0(Pz);
|
|
8411
8411
|
if (e === void 0)
|
|
8412
8412
|
throw new Error(
|
|
@@ -8421,11 +8421,11 @@ Esempio:
|
|
|
8421
8421
|
</RouteProvider>`
|
|
8422
8422
|
);
|
|
8423
8423
|
return e;
|
|
8424
|
-
}, Ez = q1(),
|
|
8425
|
-
const { login: a } =
|
|
8424
|
+
}, Ez = q1(), of = ({ children: e }) => {
|
|
8425
|
+
const { login: a } = $n(), { clearLoginFormOnError: n } = H1(), t = {
|
|
8426
8426
|
email: "",
|
|
8427
8427
|
password: ""
|
|
8428
|
-
}, [o, M] = I("Accedi"), [b, s] = I("Email"), [i, z] = I("email"), [p, c] = I("example@example.it"), [r, u] = I("Accedi"), [A, W] = I(t), [m, O] = I(), [l, h] = I(), [R, f] = I(), [L, v] = I(), [x, j] = I({}), [G,
|
|
8428
|
+
}, [o, M] = I("Accedi"), [b, s] = I("Email"), [i, z] = I("email"), [p, c] = I("example@example.it"), [r, u] = I("Accedi"), [A, W] = I(t), [m, O] = I(), [l, h] = I(), [R, f] = I(), [L, v] = I(), [x, j] = I({}), [G, i0] = I(null), A0 = {
|
|
8429
8429
|
overrideStyle: x,
|
|
8430
8430
|
setOverrideStyle: j,
|
|
8431
8431
|
title: o,
|
|
@@ -8449,25 +8449,25 @@ Esempio:
|
|
|
8449
8449
|
styleLogo: L,
|
|
8450
8450
|
setStyleLogo: v,
|
|
8451
8451
|
changeData: (a0, u0) => {
|
|
8452
|
-
W((
|
|
8452
|
+
W((z0) => ({ ...z0, [a0]: u0 }));
|
|
8453
8453
|
},
|
|
8454
8454
|
handleLogin: (a0) => {
|
|
8455
8455
|
a(a0, A), n && W(t);
|
|
8456
8456
|
},
|
|
8457
8457
|
customVersion: G,
|
|
8458
|
-
setCustomVersion:
|
|
8458
|
+
setCustomVersion: i0
|
|
8459
8459
|
};
|
|
8460
8460
|
return /* @__PURE__ */ d.jsx(Ez.Provider, { value: A0, children: e });
|
|
8461
8461
|
}, jz = () => {
|
|
8462
8462
|
const e = j0(Ez);
|
|
8463
8463
|
if (e === void 0) throw new Error("Non puoi modificare La login");
|
|
8464
8464
|
return e;
|
|
8465
|
-
}, Iz = q1(),
|
|
8466
|
-
const [a, n] = I(!1), [t, o] = I(null), [M, b] = I(""), [s, i] = I(null), [z, p] = I(null), [c, r] = I(null), [u, A] = I("modal-form"), [W, m] = I("submit"), [O, l] = I({}), [h, R] = I(null), [f, L] = I(null), [v, x] = I(null), j = ({ modalData: A0 = {}, component: a0 = null, title: u0 = "", onConfirm:
|
|
8467
|
-
R(A0), o(() => a0), b(u0), i(() =>
|
|
8465
|
+
}, Iz = q1(), Mf = ({ children: e }) => {
|
|
8466
|
+
const [a, n] = I(!1), [t, o] = I(null), [M, b] = I(""), [s, i] = I(null), [z, p] = I(null), [c, r] = I(null), [u, A] = I("modal-form"), [W, m] = I("submit"), [O, l] = I({}), [h, R] = I(null), [f, L] = I(null), [v, x] = I(null), j = ({ modalData: A0 = {}, component: a0 = null, title: u0 = "", onConfirm: z0 = null, type: l0 = "submit", formId: B0 = "modal-form", item: D0 = null, style: P0 = {} } = {}) => {
|
|
8467
|
+
R(A0), o(() => a0), b(u0), i(() => z0), m(l0), A(B0), r(D0), l(P0), n(!0);
|
|
8468
8468
|
}, G = () => {
|
|
8469
8469
|
o(null), b(""), i(null), m("submit"), A("modal-form"), r(null), l({}), n(!1), R(null);
|
|
8470
|
-
},
|
|
8470
|
+
}, Z0 = {
|
|
8471
8471
|
isOpen: a,
|
|
8472
8472
|
openModal: j,
|
|
8473
8473
|
closeModal: G,
|
|
@@ -8482,8 +8482,8 @@ Esempio:
|
|
|
8482
8482
|
setModalData: R,
|
|
8483
8483
|
handleChange: (A0) => {
|
|
8484
8484
|
const { name: a0, value: u0 } = A0.target;
|
|
8485
|
-
R((
|
|
8486
|
-
...
|
|
8485
|
+
R((z0) => ({
|
|
8486
|
+
...z0,
|
|
8487
8487
|
[a0]: u0
|
|
8488
8488
|
}));
|
|
8489
8489
|
},
|
|
@@ -8497,7 +8497,7 @@ Esempio:
|
|
|
8497
8497
|
onCancel: z,
|
|
8498
8498
|
setOnCancel: p
|
|
8499
8499
|
};
|
|
8500
|
-
return /* @__PURE__ */ d.jsx(Iz.Provider, { value:
|
|
8500
|
+
return /* @__PURE__ */ d.jsx(Iz.Provider, { value: Z0, children: e });
|
|
8501
8501
|
}, tA = () => {
|
|
8502
8502
|
const e = j0(Iz);
|
|
8503
8503
|
if (e === void 0) throw new Error("Non sei all'interno del ModalProvider");
|
|
@@ -8513,8 +8513,8 @@ Esempio:
|
|
|
8513
8513
|
}
|
|
8514
8514
|
document.title = t;
|
|
8515
8515
|
}, [n, e, a]);
|
|
8516
|
-
},
|
|
8517
|
-
const t =
|
|
8516
|
+
}, bf = (e, a, n = 1) => {
|
|
8517
|
+
const t = s0(null), [o, M] = I(!1), b = W0((u) => new Promise((A, W) => {
|
|
8518
8518
|
if (!t.current) {
|
|
8519
8519
|
W("DB non pronto");
|
|
8520
8520
|
return;
|
|
@@ -8574,7 +8574,7 @@ Esempio:
|
|
|
8574
8574
|
clear: r,
|
|
8575
8575
|
isReady: o
|
|
8576
8576
|
};
|
|
8577
|
-
},
|
|
8577
|
+
}, sf = () => {
|
|
8578
8578
|
const [e, a] = I(
|
|
8579
8579
|
window.innerWidth > window.innerHeight ? "landscape" : "portrait"
|
|
8580
8580
|
);
|
|
@@ -8595,12 +8595,12 @@ Esempio:
|
|
|
8595
8595
|
height: n,
|
|
8596
8596
|
vh: n * 0.01
|
|
8597
8597
|
} : null;
|
|
8598
|
-
},
|
|
8598
|
+
}, zf = (e = ["/"]) => {
|
|
8599
8599
|
const a = Na();
|
|
8600
8600
|
O0(() => (e.includes(a.pathname) ? document.body.classList.remove("with-safe-area") : document.body.classList.add("with-safe-area"), () => {
|
|
8601
8601
|
document.body.classList.remove("with-safe-area");
|
|
8602
8602
|
}), [a.pathname, e]);
|
|
8603
|
-
},
|
|
8603
|
+
}, pf = (e = {}) => {
|
|
8604
8604
|
const [a, n] = I(e), [t, o] = I({}), [M, b] = I({});
|
|
8605
8605
|
return {
|
|
8606
8606
|
values: a,
|
|
@@ -8746,7 +8746,7 @@ function v3(e) {
|
|
|
8746
8746
|
return t;
|
|
8747
8747
|
return e._isValid;
|
|
8748
8748
|
}
|
|
8749
|
-
function
|
|
8749
|
+
function Zn(e) {
|
|
8750
8750
|
var a = n2(NaN);
|
|
8751
8751
|
return e != null ? B2(b0(a), e) : b0(a).userInvalidated = !0, a;
|
|
8752
8752
|
}
|
|
@@ -9019,7 +9019,7 @@ function RA(e) {
|
|
|
9019
9019
|
return t.priority - o.priority;
|
|
9020
9020
|
}), a;
|
|
9021
9021
|
}
|
|
9022
|
-
var Yz = /\d/, f1 = /\d\d/, Jz = /\d{3}/, w3 = /\d{4}/, Qn = /[+-]?\d{6}/, T0 = /\d\d?/, Kz = /\d\d\d\d?/,
|
|
9022
|
+
var Yz = /\d/, f1 = /\d\d/, Jz = /\d{3}/, w3 = /\d{4}/, Qn = /[+-]?\d{6}/, T0 = /\d\d?/, Kz = /\d\d\d\d?/, $z = /\d\d\d\d\d\d?/, et = /\d{1,3}/, T3 = /\d{1,4}/, at = /[+-]?\d{1,6}/, Ge = /\d+/, nt = /[+-]?\d+/, gA = /Z|[+-]\d\d:?\d\d/gi, tt = /Z|[+-]\d\d(?::?\d\d)?/gi, LA = /[+-]?\d+(\.\d{1,3})?/, ka = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Ue = /^[1-9]\d?/, S3 = /^([1-9]\d|\d)/, Xn;
|
|
9023
9023
|
Xn = {};
|
|
9024
9024
|
function H(e, a, n) {
|
|
9025
9025
|
Xn[e] = t2(a) ? a : function(t, o) {
|
|
@@ -9068,7 +9068,7 @@ function _A(e, a, n) {
|
|
|
9068
9068
|
function ot(e) {
|
|
9069
9069
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
9070
9070
|
}
|
|
9071
|
-
var b1 = 0, s2 = 1, K1 = 2,
|
|
9071
|
+
var b1 = 0, s2 = 1, K1 = 2, $0 = 3, E1 = 4, i2 = 5, Q2 = 6, BA = 7, DA = 8;
|
|
9072
9072
|
J("Y", 0, 0, function() {
|
|
9073
9073
|
var e = this.year();
|
|
9074
9074
|
return e <= 9999 ? a2(e, 4) : "+" + e;
|
|
@@ -9100,7 +9100,7 @@ function Aa(e) {
|
|
|
9100
9100
|
E.parseTwoDigitYear = function(e) {
|
|
9101
9101
|
return p0(e) + (p0(e) > 68 ? 1900 : 2e3);
|
|
9102
9102
|
};
|
|
9103
|
-
var
|
|
9103
|
+
var Zz = Ye("FullYear", !0);
|
|
9104
9104
|
function wA() {
|
|
9105
9105
|
return ot(this.year());
|
|
9106
9106
|
}
|
|
@@ -9349,11 +9349,11 @@ function JA() {
|
|
|
9349
9349
|
function KA() {
|
|
9350
9350
|
return this._week.doy;
|
|
9351
9351
|
}
|
|
9352
|
-
function
|
|
9352
|
+
function $A(e) {
|
|
9353
9353
|
var a = this.localeData().week(this);
|
|
9354
9354
|
return e == null ? a : this.add((e - a) * 7, "d");
|
|
9355
9355
|
}
|
|
9356
|
-
function
|
|
9356
|
+
function ZA(e) {
|
|
9357
9357
|
var a = Ra(this, 1, 4).week;
|
|
9358
9358
|
return e == null ? a : this.add((e - a) * 7, "d");
|
|
9359
9359
|
}
|
|
@@ -9537,35 +9537,35 @@ H("HH", T0, f1);
|
|
|
9537
9537
|
H("hh", T0, f1);
|
|
9538
9538
|
H("kk", T0, f1);
|
|
9539
9539
|
H("hmm", Kz);
|
|
9540
|
-
H("hmmss",
|
|
9540
|
+
H("hmmss", $z);
|
|
9541
9541
|
H("Hmm", Kz);
|
|
9542
|
-
H("Hmmss",
|
|
9543
|
-
v0(["H", "HH"],
|
|
9542
|
+
H("Hmmss", $z);
|
|
9543
|
+
v0(["H", "HH"], $0);
|
|
9544
9544
|
v0(["k", "kk"], function(e, a, n) {
|
|
9545
9545
|
var t = p0(e);
|
|
9546
|
-
a[
|
|
9546
|
+
a[$0] = t === 24 ? 0 : t;
|
|
9547
9547
|
});
|
|
9548
9548
|
v0(["a", "A"], function(e, a, n) {
|
|
9549
9549
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
9550
9550
|
});
|
|
9551
9551
|
v0(["h", "hh"], function(e, a, n) {
|
|
9552
|
-
a[
|
|
9552
|
+
a[$0] = p0(e), b0(n).bigHour = !0;
|
|
9553
9553
|
});
|
|
9554
9554
|
v0("hmm", function(e, a, n) {
|
|
9555
9555
|
var t = e.length - 2;
|
|
9556
|
-
a[
|
|
9556
|
+
a[$0] = p0(e.substr(0, t)), a[E1] = p0(e.substr(t)), b0(n).bigHour = !0;
|
|
9557
9557
|
});
|
|
9558
9558
|
v0("hmmss", function(e, a, n) {
|
|
9559
9559
|
var t = e.length - 4, o = e.length - 2;
|
|
9560
|
-
a[
|
|
9560
|
+
a[$0] = p0(e.substr(0, t)), a[E1] = p0(e.substr(t, 2)), a[i2] = p0(e.substr(o)), b0(n).bigHour = !0;
|
|
9561
9561
|
});
|
|
9562
9562
|
v0("Hmm", function(e, a, n) {
|
|
9563
9563
|
var t = e.length - 2;
|
|
9564
|
-
a[
|
|
9564
|
+
a[$0] = p0(e.substr(0, t)), a[E1] = p0(e.substr(t));
|
|
9565
9565
|
});
|
|
9566
9566
|
v0("Hmmss", function(e, a, n) {
|
|
9567
9567
|
var t = e.length - 4, o = e.length - 2;
|
|
9568
|
-
a[
|
|
9568
|
+
a[$0] = p0(e.substr(0, t)), a[E1] = p0(e.substr(t, 2)), a[i2] = p0(e.substr(o));
|
|
9569
9569
|
});
|
|
9570
9570
|
function mu(e) {
|
|
9571
9571
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -9679,7 +9679,7 @@ function Lu() {
|
|
|
9679
9679
|
}
|
|
9680
9680
|
function E3(e) {
|
|
9681
9681
|
var a, n = e._a;
|
|
9682
|
-
return n && b0(e).overflow === -2 && (a = n[s2] < 0 || n[s2] > 11 ? s2 : n[K1] < 1 || n[K1] > x3(n[b1], n[s2]) ? K1 : n[
|
|
9682
|
+
return n && b0(e).overflow === -2 && (a = n[s2] < 0 || n[s2] > 11 ? s2 : n[K1] < 1 || n[K1] > x3(n[b1], n[s2]) ? K1 : n[$0] < 0 || n[$0] > 24 || n[$0] === 24 && (n[E1] !== 0 || n[i2] !== 0 || n[Q2] !== 0) ? $0 : n[E1] < 0 || n[E1] > 59 ? E1 : n[i2] < 0 || n[i2] > 59 ? i2 : n[Q2] < 0 || n[Q2] > 999 ? Q2 : -1, b0(e)._overflowDayOfYear && (a < b1 || a > K1) && (a = K1), b0(e)._overflowWeeks && a === -1 && (a = BA), b0(e)._overflowWeekday && a === -1 && (a = DA), b0(e).overflow = a), e;
|
|
9683
9683
|
}
|
|
9684
9684
|
var vu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Nu = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, _u = /Z|[+-]\d\d(?::?\d\d)?/, Mn = [
|
|
9685
9685
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -9848,10 +9848,10 @@ function j3(e) {
|
|
|
9848
9848
|
e._a[a] = t[a] = o[a];
|
|
9849
9849
|
for (; a < 7; a++)
|
|
9850
9850
|
e._a[a] = t[a] = e._a[a] == null ? a === 2 ? 1 : 0 : e._a[a];
|
|
9851
|
-
e._a[
|
|
9851
|
+
e._a[$0] === 24 && e._a[E1] === 0 && e._a[i2] === 0 && e._a[Q2] === 0 && (e._nextDay = !0, e._a[$0] = 0), e._d = (e._useUTC ? Wa : GA).apply(
|
|
9852
9852
|
null,
|
|
9853
9853
|
t
|
|
9854
|
-
), M = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[
|
|
9854
|
+
), M = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[$0] = 24), e._w && typeof e._w.d < "u" && e._w.d !== M && (b0(e).weekdayMismatch = !0);
|
|
9855
9855
|
}
|
|
9856
9856
|
}
|
|
9857
9857
|
function Eu(e) {
|
|
@@ -9881,9 +9881,9 @@ function I3(e) {
|
|
|
9881
9881
|
M = o[n], t = (a.match(vA(M, e)) || [])[0], t && (b = a.substr(0, a.indexOf(t)), b.length > 0 && b0(e).unusedInput.push(b), a = a.slice(
|
|
9882
9882
|
a.indexOf(t) + t.length
|
|
9883
9883
|
), i += t.length), Ne[M] ? (t ? b0(e).empty = !1 : b0(e).unusedTokens.push(M), _A(M, t, e)) : e._strict && !t && b0(e).unusedTokens.push(M);
|
|
9884
|
-
b0(e).charsLeftOver = s - i, a.length > 0 && b0(e).unusedInput.push(a), e._a[
|
|
9884
|
+
b0(e).charsLeftOver = s - i, a.length > 0 && b0(e).unusedInput.push(a), e._a[$0] <= 12 && b0(e).bigHour === !0 && e._a[$0] > 0 && (b0(e).bigHour = void 0), b0(e).parsedDateParts = e._a.slice(0), b0(e).meridiem = e._meridiem, e._a[$0] = ju(
|
|
9885
9885
|
e._locale,
|
|
9886
|
-
e._a[
|
|
9886
|
+
e._a[$0],
|
|
9887
9887
|
e._meridiem
|
|
9888
9888
|
), z = b0(e).era, z !== null && (e._a[b1] = e._locale.erasConvertYear(z, e._a[b1])), j3(e), E3(e);
|
|
9889
9889
|
}
|
|
@@ -9918,7 +9918,7 @@ function Hu(e) {
|
|
|
9918
9918
|
}
|
|
9919
9919
|
function cp(e) {
|
|
9920
9920
|
var a = e._i, n = e._f;
|
|
9921
|
-
return e._locale = e._locale || m2(e._l), a === null || n === void 0 && a === "" ?
|
|
9921
|
+
return e._locale = e._locale || m2(e._l), a === null || n === void 0 && a === "" ? Zn({ nullInput: !0 }) : (typeof a == "string" && (e._i = a = e._locale.preparse(a)), F1(a) ? new Xa(E3(a)) : (xa(a) ? e._d = a : I1(n) ? Iu(e) : n ? I3(e) : Vu(e), v3(e) || (e._d = null), e));
|
|
9922
9922
|
}
|
|
9923
9923
|
function Vu(e) {
|
|
9924
9924
|
var a = e._i;
|
|
@@ -9937,13 +9937,13 @@ var Gu = B1(
|
|
|
9937
9937
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
9938
9938
|
function() {
|
|
9939
9939
|
var e = w0.apply(null, arguments);
|
|
9940
|
-
return this.isValid() && e.isValid() ? e < this ? this : e :
|
|
9940
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : Zn();
|
|
9941
9941
|
}
|
|
9942
9942
|
), Uu = B1(
|
|
9943
9943
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
9944
9944
|
function() {
|
|
9945
9945
|
var e = w0.apply(null, arguments);
|
|
9946
|
-
return this.isValid() && e.isValid() ? e > this ? this : e :
|
|
9946
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : Zn();
|
|
9947
9947
|
}
|
|
9948
9948
|
);
|
|
9949
9949
|
function dp(e, a) {
|
|
@@ -9975,7 +9975,7 @@ var Ku = function() {
|
|
|
9975
9975
|
"second",
|
|
9976
9976
|
"millisecond"
|
|
9977
9977
|
];
|
|
9978
|
-
function
|
|
9978
|
+
function $u(e) {
|
|
9979
9979
|
var a, n = !1, t, o = Ma.length;
|
|
9980
9980
|
for (a in e)
|
|
9981
9981
|
if (q0(e, a) && !(E0.call(Ma, a) !== -1 && (e[a] == null || !isNaN(e[a]))))
|
|
@@ -9988,7 +9988,7 @@ function Zu(e) {
|
|
|
9988
9988
|
}
|
|
9989
9989
|
return !0;
|
|
9990
9990
|
}
|
|
9991
|
-
function
|
|
9991
|
+
function Zu() {
|
|
9992
9992
|
return this._isValid;
|
|
9993
9993
|
}
|
|
9994
9994
|
function Qu() {
|
|
@@ -9996,7 +9996,7 @@ function Qu() {
|
|
|
9996
9996
|
}
|
|
9997
9997
|
function bt(e) {
|
|
9998
9998
|
var a = D3(e), n = a.year || 0, t = a.quarter || 0, o = a.month || 0, M = a.week || a.isoWeek || 0, b = a.day || 0, s = a.hour || 0, i = a.minute || 0, z = a.second || 0, p = a.millisecond || 0;
|
|
9999
|
-
this._isValid =
|
|
9999
|
+
this._isValid = $u(a), this._milliseconds = +p + z * 1e3 + // 1000
|
|
10000
10000
|
i * 6e4 + // 1000 * 60
|
|
10001
10001
|
s * 1e3 * 60 * 60, this._days = +b + M * 7, this._months = +o + t * 3 + n * 12, this._data = {}, this._locale = m2(), this._bubble();
|
|
10002
10002
|
}
|
|
@@ -10106,7 +10106,7 @@ function V1(e, a) {
|
|
|
10106
10106
|
} : u2(e) || !isNaN(+e) ? (n = {}, a ? n[a] = +e : n.milliseconds = +e) : (t = c8.exec(e)) ? (o = t[1] === "-" ? -1 : 1, n = {
|
|
10107
10107
|
y: 0,
|
|
10108
10108
|
d: p0(t[K1]) * o,
|
|
10109
|
-
h: p0(t[
|
|
10109
|
+
h: p0(t[$0]) * o,
|
|
10110
10110
|
m: p0(t[E1]) * o,
|
|
10111
10111
|
s: p0(t[i2]) * o,
|
|
10112
10112
|
ms: p0(Co(t[Q2] * 1e3)) * o
|
|
@@ -10541,7 +10541,7 @@ v0(["yo"], function(e, a, n, t) {
|
|
|
10541
10541
|
var o;
|
|
10542
10542
|
n._locale._eraYearOrdinalRegex && (o = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? a[b1] = n._locale.eraYearOrdinalParse(e, o) : a[b1] = parseInt(e, 10);
|
|
10543
10543
|
});
|
|
10544
|
-
function
|
|
10544
|
+
function $8(e, a) {
|
|
10545
10545
|
var n, t, o, M = this._eras || m2("en")._eras;
|
|
10546
10546
|
for (n = 0, t = M.length; n < t; ++n) {
|
|
10547
10547
|
switch (typeof M[n].since) {
|
|
@@ -10560,7 +10560,7 @@ function Z8(e, a) {
|
|
|
10560
10560
|
}
|
|
10561
10561
|
return M;
|
|
10562
10562
|
}
|
|
10563
|
-
function
|
|
10563
|
+
function Z8(e, a, n) {
|
|
10564
10564
|
var t, o, M = this.eras(), b, s, i;
|
|
10565
10565
|
for (e = e.toUpperCase(), t = 0, o = M.length; t < o; ++t)
|
|
10566
10566
|
if (b = M[t].name.toUpperCase(), s = M[t].abbr.toUpperCase(), i = M[t].narrow.toUpperCase(), n)
|
|
@@ -10849,15 +10849,15 @@ X.eraName = el;
|
|
|
10849
10849
|
X.eraNarrow = al;
|
|
10850
10850
|
X.eraAbbr = nl;
|
|
10851
10851
|
X.eraYear = tl;
|
|
10852
|
-
X.year =
|
|
10852
|
+
X.year = Zz;
|
|
10853
10853
|
X.isLeapYear = wA;
|
|
10854
10854
|
X.weekYear = pl;
|
|
10855
10855
|
X.isoWeekYear = rl;
|
|
10856
10856
|
X.quarter = X.quarters = ll;
|
|
10857
10857
|
X.month = tp;
|
|
10858
10858
|
X.daysInMonth = FA;
|
|
10859
|
-
X.week = X.weeks =
|
|
10860
|
-
X.isoWeek = X.isoWeeks =
|
|
10859
|
+
X.week = X.weeks = $A;
|
|
10860
|
+
X.isoWeek = X.isoWeeks = ZA;
|
|
10861
10861
|
X.weeksInYear = dl;
|
|
10862
10862
|
X.weeksInWeekYear = Al;
|
|
10863
10863
|
X.isoWeeksInYear = cl;
|
|
@@ -10893,7 +10893,7 @@ X.months = B1(
|
|
|
10893
10893
|
);
|
|
10894
10894
|
X.years = B1(
|
|
10895
10895
|
"years accessor is deprecated. Use year instead",
|
|
10896
|
-
|
|
10896
|
+
Zz
|
|
10897
10897
|
);
|
|
10898
10898
|
X.zone = B1(
|
|
10899
10899
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
@@ -10922,8 +10922,8 @@ f0.postformat = _p;
|
|
|
10922
10922
|
f0.relativeTime = hA;
|
|
10923
10923
|
f0.pastFuture = yA;
|
|
10924
10924
|
f0.set = iA;
|
|
10925
|
-
f0.eras =
|
|
10926
|
-
f0.erasParse =
|
|
10925
|
+
f0.eras = $8;
|
|
10926
|
+
f0.erasParse = Z8;
|
|
10927
10927
|
f0.erasConvertYear = Q8;
|
|
10928
10928
|
f0.erasAbbrRegex = Ml;
|
|
10929
10929
|
f0.erasNameRegex = ol;
|
|
@@ -11091,7 +11091,7 @@ function oe(e) {
|
|
|
11091
11091
|
return this.isValid() ? this._data[e] : NaN;
|
|
11092
11092
|
};
|
|
11093
11093
|
}
|
|
11094
|
-
var Ul = oe("milliseconds"), Yl = oe("seconds"), Jl = oe("minutes"), Kl = oe("hours"),
|
|
11094
|
+
var Ul = oe("milliseconds"), Yl = oe("seconds"), Jl = oe("minutes"), Kl = oe("hours"), $l = oe("days"), Zl = oe("months"), Ql = oe("years");
|
|
11095
11095
|
function e9() {
|
|
11096
11096
|
return g1(this.days() / 7);
|
|
11097
11097
|
}
|
|
@@ -11141,7 +11141,7 @@ function it() {
|
|
|
11141
11141
|
return s ? (t = g1(e / 60), o = g1(t / 60), e %= 60, t %= 60, M = g1(n / 12), n %= 12, b = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", i = s < 0 ? "-" : "", z = de(this._months) !== de(s) ? "-" : "", p = de(this._days) !== de(s) ? "-" : "", c = de(this._milliseconds) !== de(s) ? "-" : "", i + "P" + (M ? z + M + "Y" : "") + (n ? z + n + "M" : "") + (a ? p + a + "D" : "") + (o || t || e ? "T" : "") + (o ? c + o + "H" : "") + (t ? c + t + "M" : "") + (e ? c + b + "S" : "")) : "P0D";
|
|
11142
11142
|
}
|
|
11143
11143
|
var d0 = bt.prototype;
|
|
11144
|
-
d0.isValid =
|
|
11144
|
+
d0.isValid = Zu;
|
|
11145
11145
|
d0.abs = Dl;
|
|
11146
11146
|
d0.add = wl;
|
|
11147
11147
|
d0.subtract = Tl;
|
|
@@ -11163,9 +11163,9 @@ d0.milliseconds = Ul;
|
|
|
11163
11163
|
d0.seconds = Yl;
|
|
11164
11164
|
d0.minutes = Jl;
|
|
11165
11165
|
d0.hours = Kl;
|
|
11166
|
-
d0.days =
|
|
11166
|
+
d0.days = $l;
|
|
11167
11167
|
d0.weeks = e9;
|
|
11168
|
-
d0.months =
|
|
11168
|
+
d0.months = Zl;
|
|
11169
11169
|
d0.years = Ql;
|
|
11170
11170
|
d0.humanize = M9;
|
|
11171
11171
|
d0.toISOString = it;
|
|
@@ -11200,7 +11200,7 @@ E.unix = Rl;
|
|
|
11200
11200
|
E.months = Ll;
|
|
11201
11201
|
E.isDate = xa;
|
|
11202
11202
|
E.locale = w2;
|
|
11203
|
-
E.invalid =
|
|
11203
|
+
E.invalid = Zn;
|
|
11204
11204
|
E.duration = V1;
|
|
11205
11205
|
E.isMoment = F1;
|
|
11206
11206
|
E.weekdays = Nl;
|
|
@@ -11375,7 +11375,7 @@ function z9() {
|
|
|
11375
11375
|
for (A(_), w = 0; w < _.length; w++)
|
|
11376
11376
|
k = _[w], s[k] = s[k] || {}, s[k][y] = !0;
|
|
11377
11377
|
}
|
|
11378
|
-
function
|
|
11378
|
+
function i0(y) {
|
|
11379
11379
|
var _ = y.length, w = {}, k = [], Y = {}, o0, y0, M0, q;
|
|
11380
11380
|
for (o0 = 0; o0 < _; o0++)
|
|
11381
11381
|
if (M0 = y[o0].offset, !Y.hasOwnProperty(M0)) {
|
|
@@ -11399,7 +11399,7 @@ function z9() {
|
|
|
11399
11399
|
}
|
|
11400
11400
|
} catch {
|
|
11401
11401
|
}
|
|
11402
|
-
var w = x(), k = w.length, Y =
|
|
11402
|
+
var w = x(), k = w.length, Y = i0(w), o0 = [], y0, M0, q;
|
|
11403
11403
|
for (M0 = 0; M0 < Y.length; M0++) {
|
|
11404
11404
|
for (y0 = new L(u0(Y[M0])), q = 0; q < k; q++)
|
|
11405
11405
|
y0.scoreOffsetAt(w[q]);
|
|
@@ -11407,7 +11407,7 @@ function z9() {
|
|
|
11407
11407
|
}
|
|
11408
11408
|
return o0.sort(j), o0.length > 0 ? o0[0].zone.name : void 0;
|
|
11409
11409
|
}
|
|
11410
|
-
function
|
|
11410
|
+
function Z0(y) {
|
|
11411
11411
|
return (!i || y) && (i = S0()), i;
|
|
11412
11412
|
}
|
|
11413
11413
|
function A0(y) {
|
|
@@ -11423,7 +11423,7 @@ function z9() {
|
|
|
11423
11423
|
var w = t[y], k;
|
|
11424
11424
|
return w instanceof l ? w : typeof w == "string" ? (w = new l(w), t[y] = w, w) : o[y] && _ !== u0 && (k = u0(o[y], u0)) ? (w = t[y] = new l(), w._set(k), w.name = b[y], w) : null;
|
|
11425
11425
|
}
|
|
11426
|
-
function
|
|
11426
|
+
function z0() {
|
|
11427
11427
|
var y, _ = [];
|
|
11428
11428
|
for (y in b)
|
|
11429
11429
|
b.hasOwnProperty(y) && (t[y] || t[o[y]]) && b[y] && _.push(b[y]);
|
|
@@ -11477,7 +11477,7 @@ function z9() {
|
|
|
11477
11477
|
var _ = Array.prototype.slice.call(arguments, 0, -1), w = arguments[arguments.length - 1], k = a.utc.apply(null, _), Y;
|
|
11478
11478
|
return !a.isMoment(y) && N0(k) && (Y = u0(w)) && k.add(Y.parse(k), "minutes"), k.tz(w), k;
|
|
11479
11479
|
}
|
|
11480
|
-
U.version = n, U.dataVersion = "", U._zones = t, U._links = o, U._names = b, U._countries = M, U.add = a0, U.link = B0, U.load = h1, U.zone = u0, U.zoneExists = r1, U.guess =
|
|
11480
|
+
U.version = n, U.dataVersion = "", U._zones = t, U._links = o, U._names = b, U._countries = M, U.add = a0, U.link = B0, U.load = h1, U.zone = u0, U.zoneExists = r1, U.guess = Z0, U.names = z0, U.Zone = l, U.unpack = O, U.unpackBase60 = u, U.needsOffset = N0, U.moveInvalidForward = !0, U.moveAmbiguousForward = !1, U.countries = l0, U.zonesForCountry = y2;
|
|
11481
11481
|
var r0 = a.fn;
|
|
11482
11482
|
a.tz = U, a.defaultZone = null, a.updateOffset = function(y, _) {
|
|
11483
11483
|
var w = a.defaultZone, k;
|
|
@@ -12855,18 +12855,18 @@ const F9 = 0.01720209895, H9 = 149597870, V9 = 0.397777156, G9 = 0.917482062;
|
|
|
12855
12855
|
function U9(e) {
|
|
12856
12856
|
return 0.0057755183 * e;
|
|
12857
12857
|
}
|
|
12858
|
-
const Y9 = 24000005e-1, zt = 2451545, J9 = 2415020, K3 = 24150203135e-4, K9 = 24332824235e-4,
|
|
12859
|
-
function
|
|
12860
|
-
return zt +
|
|
12858
|
+
const Y9 = 24000005e-1, zt = 2451545, J9 = 2415020, K3 = 24150203135e-4, K9 = 24332824235e-4, $3 = 365.25, Pp = 36525, Z3 = 365.2421988, $9 = 365.25636;
|
|
12859
|
+
function Z9(e) {
|
|
12860
|
+
return zt + $3 * (e - 2e3);
|
|
12861
12861
|
}
|
|
12862
12862
|
function Q9(e) {
|
|
12863
|
-
return 2e3 + (e - zt) /
|
|
12863
|
+
return 2e3 + (e - zt) / $3;
|
|
12864
12864
|
}
|
|
12865
12865
|
function e7(e) {
|
|
12866
|
-
return K3 +
|
|
12866
|
+
return K3 + Z3 * (e - 1900);
|
|
12867
12867
|
}
|
|
12868
12868
|
function a7(e) {
|
|
12869
|
-
return 1900 + (e - K3) /
|
|
12869
|
+
return 1900 + (e - K3) / Z3;
|
|
12870
12870
|
}
|
|
12871
12871
|
function n7(e) {
|
|
12872
12872
|
return (e - zt) / Pp;
|
|
@@ -12983,11 +12983,11 @@ const g = {
|
|
|
12983
12983
|
J1900: J9,
|
|
12984
12984
|
B1900: K3,
|
|
12985
12985
|
B1950: K9,
|
|
12986
|
-
JulianYear:
|
|
12986
|
+
JulianYear: $3,
|
|
12987
12987
|
JulianCentury: Pp,
|
|
12988
|
-
BesselianYear:
|
|
12989
|
-
meanSiderealYear:
|
|
12990
|
-
JulianYearToJDE:
|
|
12988
|
+
BesselianYear: Z3,
|
|
12989
|
+
meanSiderealYear: $9,
|
|
12990
|
+
JulianYearToJDE: Z9,
|
|
12991
12991
|
JDEToJulianYear: Q9,
|
|
12992
12992
|
BesselianYearToJDE: e7,
|
|
12993
12993
|
JDEToBesselianYear: a7,
|
|
@@ -13694,17 +13694,17 @@ class Kp {
|
|
|
13694
13694
|
return new h2(i, z);
|
|
13695
13695
|
}
|
|
13696
13696
|
}
|
|
13697
|
-
const
|
|
13697
|
+
const $p = new h2(
|
|
13698
13698
|
new k0.RA(12, 49, 0).rad(),
|
|
13699
13699
|
27.4 * Math.PI / 180
|
|
13700
|
-
), La =
|
|
13700
|
+
), La = $p, Zp = 33 * Math.PI / 180, tM = Zp, Io = {
|
|
13701
13701
|
Ecliptic: rt,
|
|
13702
13702
|
Equatorial: h2,
|
|
13703
13703
|
Horizontal: Jp,
|
|
13704
13704
|
Galactic: Kp,
|
|
13705
|
-
galacticNorth:
|
|
13705
|
+
galacticNorth: $p,
|
|
13706
13706
|
galacticNorth1950: La,
|
|
13707
|
-
galacticLon0:
|
|
13707
|
+
galacticLon0: Zp,
|
|
13708
13708
|
galactic0Lon1950: tM
|
|
13709
13709
|
};
|
|
13710
13710
|
/**
|
|
@@ -14045,7 +14045,7 @@ function ue(e, a) {
|
|
|
14045
14045
|
}
|
|
14046
14046
|
}), g.horner(e, ...n);
|
|
14047
14047
|
}
|
|
14048
|
-
class
|
|
14048
|
+
class $7 {
|
|
14049
14049
|
/**
|
|
14050
14050
|
* VSOP87 representation of a Planet
|
|
14051
14051
|
* @constructs Planet
|
|
@@ -14103,13 +14103,13 @@ class Z7 {
|
|
|
14103
14103
|
}
|
|
14104
14104
|
}
|
|
14105
14105
|
}
|
|
14106
|
-
function
|
|
14106
|
+
function Z7(e, a, n) {
|
|
14107
14107
|
const t = g.J2000Century(n), o = e - k0.angleFromDeg((1.397 + 31e-5 * t) * t), [M, b] = g.sincos(o), s = e + k0.angleFromSec(-0.09033 + 0.03916 * (b + M) * Math.tan(a)), i = a + k0.angleFromSec(0.03916 * (b - M));
|
|
14108
14108
|
return new g.Coord(s, i);
|
|
14109
14109
|
}
|
|
14110
14110
|
const br = {
|
|
14111
|
-
Planet:
|
|
14112
|
-
toFK5:
|
|
14111
|
+
Planet: $7,
|
|
14112
|
+
toFK5: Z7
|
|
14113
14113
|
};
|
|
14114
14114
|
/**
|
|
14115
14115
|
* @copyright 2013 Sonia Keys
|
|
@@ -14322,12 +14322,12 @@ const Kt = {
|
|
|
14322
14322
|
* @license MIT
|
|
14323
14323
|
* @module moonphase
|
|
14324
14324
|
*/
|
|
14325
|
-
const { sin:
|
|
14325
|
+
const { sin: $, cos: sa } = Math, $1 = 1 / 1236.85, e0 = Math.PI / 180, im = 29.530588861;
|
|
14326
14326
|
function C2(e) {
|
|
14327
14327
|
return g.horner(
|
|
14328
14328
|
e,
|
|
14329
14329
|
245155009766e-5,
|
|
14330
|
-
29.530588861 /
|
|
14330
|
+
29.530588861 / $1,
|
|
14331
14331
|
15437e-8,
|
|
14332
14332
|
-15e-8,
|
|
14333
14333
|
73e-11
|
|
@@ -14338,16 +14338,16 @@ function Ea(e, a) {
|
|
|
14338
14338
|
return Math.floor(n - a + 0.5) + a;
|
|
14339
14339
|
}
|
|
14340
14340
|
function zm(e) {
|
|
14341
|
-
return C2(Ea(e, 0) *
|
|
14341
|
+
return C2(Ea(e, 0) * $1);
|
|
14342
14342
|
}
|
|
14343
14343
|
function pm(e) {
|
|
14344
|
-
return C2(Ea(e, 0.25) *
|
|
14344
|
+
return C2(Ea(e, 0.25) * $1);
|
|
14345
14345
|
}
|
|
14346
14346
|
function rm(e) {
|
|
14347
|
-
return C2(Ea(e, 0.5) *
|
|
14347
|
+
return C2(Ea(e, 0.5) * $1);
|
|
14348
14348
|
}
|
|
14349
14349
|
function cm(e) {
|
|
14350
|
-
return C2(Ea(e, 0.75) *
|
|
14350
|
+
return C2(Ea(e, 0.75) * $1);
|
|
14351
14351
|
}
|
|
14352
14352
|
function hs(e) {
|
|
14353
14353
|
const a = new ct(e, 0);
|
|
@@ -14368,31 +14368,31 @@ function Am(e) {
|
|
|
14368
14368
|
class ct {
|
|
14369
14369
|
constructor(a, n) {
|
|
14370
14370
|
this.A = new Array(14);
|
|
14371
|
-
const t = this.k = Ea(a, n), o = this.T = this.k *
|
|
14371
|
+
const t = this.k = Ea(a, n), o = this.T = this.k * $1;
|
|
14372
14372
|
this.E = g.horner(o, 1, -2516e-6, -74e-7), this.M = g.horner(
|
|
14373
14373
|
o,
|
|
14374
14374
|
2.5534 * e0,
|
|
14375
|
-
29.1053567 * e0 /
|
|
14375
|
+
29.1053567 * e0 / $1,
|
|
14376
14376
|
-14e-7 * e0,
|
|
14377
14377
|
-11e-8 * e0
|
|
14378
14378
|
), this.M_ = g.horner(
|
|
14379
14379
|
o,
|
|
14380
14380
|
201.5643 * e0,
|
|
14381
|
-
385.81693528 * e0 /
|
|
14381
|
+
385.81693528 * e0 / $1,
|
|
14382
14382
|
0.0107582 * e0,
|
|
14383
14383
|
1238e-8 * e0,
|
|
14384
14384
|
-58e-9 * e0
|
|
14385
14385
|
), this.F = g.horner(
|
|
14386
14386
|
o,
|
|
14387
14387
|
160.7108 * e0,
|
|
14388
|
-
390.67050284 * e0 /
|
|
14388
|
+
390.67050284 * e0 / $1,
|
|
14389
14389
|
-16118e-7 * e0,
|
|
14390
14390
|
-227e-8 * e0,
|
|
14391
14391
|
11e-9 * e0
|
|
14392
14392
|
), this.Ω = g.horner(
|
|
14393
14393
|
o,
|
|
14394
14394
|
124.7746 * e0,
|
|
14395
|
-
-1.56375588 * e0 /
|
|
14395
|
+
-1.56375588 * e0 / $1,
|
|
14396
14396
|
20672e-7 * e0,
|
|
14397
14397
|
215e-8 * e0
|
|
14398
14398
|
), this.A[0] = 299.7 * e0 + 0.107408 * e0 * t - 9173e-6 * o * o, this.A[1] = 251.88 * e0 + 0.016321 * e0 * t, this.A[2] = 251.83 * e0 + 26.651886 * e0 * t, this.A[3] = 349.42 * e0 + 36.412478 * e0 * t, this.A[4] = 84.66 * e0 + 18.206239 * e0 * t, this.A[5] = 141.74 * e0 + 53.303771 * e0 * t, this.A[6] = 207.17 * e0 + 2.453732 * e0 * t, this.A[7] = 154.84 * e0 + 7.30686 * e0 * t, this.A[8] = 34.52 * e0 + 27.261239 * e0 * t, this.A[9] = 207.19 * e0 + 0.121824 * e0 * t, this.A[10] = 291.34 * e0 + 1.844379 * e0 * t, this.A[11] = 161.72 * e0 + 24.198154 * e0 * t, this.A[12] = 239.56 * e0 + 25.513099 * e0 * t, this.A[13] = 331.55 * e0 + 3.592518 * e0 * t;
|
|
@@ -14400,12 +14400,12 @@ class ct {
|
|
|
14400
14400
|
// new or full corrections
|
|
14401
14401
|
nfc(a) {
|
|
14402
14402
|
const { M: n, M_: t, E: o, F: M, Ω: b } = this;
|
|
14403
|
-
return a[0] *
|
|
14403
|
+
return a[0] * $(t) + a[1] * $(n) * o + a[2] * $(2 * t) + a[3] * $(2 * M) + a[4] * $(t - n) * o + a[5] * $(t + n) * o + a[6] * $(2 * n) * o * o + a[7] * $(t - 2 * M) + a[8] * $(t + 2 * M) + a[9] * $(2 * t + n) * o + a[10] * $(3 * t) + a[11] * $(n + 2 * M) * o + a[12] * $(n - 2 * M) * o + a[13] * $(2 * t - n) * o + a[14] * $(b) + a[15] * $(t + 2 * n) + a[16] * $(2 * (t - M)) + a[17] * $(3 * n) + a[18] * $(t + n - 2 * M) + a[19] * $(2 * (t + M)) + a[20] * $(t + n + 2 * M) + a[21] * $(t - n + 2 * M) + a[22] * $(t - n - 2 * M) + a[23] * $(3 * t + n) + a[24] * $(4 * t);
|
|
14404
14404
|
}
|
|
14405
14405
|
// first or last corrections
|
|
14406
14406
|
flc() {
|
|
14407
14407
|
const { M: a, M_: n, E: t, F: o, Ω: M } = this;
|
|
14408
|
-
return -0.62801 *
|
|
14408
|
+
return -0.62801 * $(n) + 0.17172 * $(a) * t + -0.01183 * $(n + a) * t + 862e-5 * $(2 * n) + 804e-5 * $(2 * o) + 454e-5 * $(n - a) * t + 204e-5 * $(2 * a) * t * t + -18e-4 * $(n - 2 * o) + -7e-4 * $(n + 2 * o) + -4e-4 * $(3 * n) + -34e-5 * $(2 * n - a) * t + 32e-5 * $(a + 2 * o) * t + 32e-5 * $(a - 2 * o) * t + -28e-5 * $(n + 2 * a) * t * t + 27e-5 * $(2 * n + a) * t + -17e-5 * $(M) + -5e-5 * $(n - a - 2 * o) + 4e-5 * $(2 * n + 2 * o) + -4e-5 * $(n + a + 2 * o) + 4e-5 * $(n - 2 * a) + 3e-5 * $(n + a - 2 * o) + 3e-5 * $(3 * a) + 2e-5 * $(2 * n - 2 * o) + 2e-5 * $(n - a + 2 * o) + -2e-5 * $(3 * n + a);
|
|
14409
14409
|
}
|
|
14410
14410
|
w() {
|
|
14411
14411
|
const { M: a, M_: n, E: t, F: o } = this;
|
|
@@ -14415,7 +14415,7 @@ class ct {
|
|
|
14415
14415
|
a() {
|
|
14416
14416
|
let a = 0;
|
|
14417
14417
|
return mm.forEach((n, t) => {
|
|
14418
|
-
a += n *
|
|
14418
|
+
a += n * $(this.A[t]);
|
|
14419
14419
|
}), a;
|
|
14420
14420
|
}
|
|
14421
14421
|
}
|
|
@@ -14981,7 +14981,7 @@ const Nm = new k0.Angle(!1, 0, 34, 0).rad();
|
|
|
14981
14981
|
* @license MIT
|
|
14982
14982
|
* @module solstice
|
|
14983
14983
|
*/
|
|
14984
|
-
const { abs: _m, cos:
|
|
14984
|
+
const { abs: _m, cos: $t, sin: Bm } = Math, Zt = Math.PI / 180, fr = [172113929189e-5, 365242.1374, 0.06134, 111e-5, -71e-5], hr = [172123325401e-5, 365241.72562, -0.05323, 907e-5, 25e-5], yr = [172132570455e-5, 365242.49558, -0.11677, -297e-5, 74e-5], Wr = [172141439987e-5, 365242.88257, -769e-5, -933e-5, -6e-5], Rr = [245162380984e-5, 365242.37404, 0.05169, -411e-5, -57e-5], gr = [245171656767e-5, 365241.62603, 325e-5, 888e-5, -3e-4], Lr = [245181021715e-5, 365242.01767, -0.11575, 337e-5, 78e-5], vr = [245190005952e-5, 365242.74049, -0.06223, -823e-5, 32e-5], ys = function() {
|
|
14985
14985
|
return [
|
|
14986
14986
|
[485, 324.96, 1934.136],
|
|
14987
14987
|
[203, 337.23, 32964.467],
|
|
@@ -15026,11 +15026,11 @@ function Sm(e) {
|
|
|
15026
15026
|
return e < 1e3 ? x2(e, Wr) : x2(e - 2e3, vr);
|
|
15027
15027
|
}
|
|
15028
15028
|
function x2(e, a) {
|
|
15029
|
-
const n = g.horner(e * 1e-3, a), t = g.J2000Century(n), o = 35999.373 *
|
|
15029
|
+
const n = g.horner(e * 1e-3, a), t = g.J2000Century(n), o = 35999.373 * Zt * t - 2.47 * Zt, M = 1 + 0.0334 * $t(o) + 7e-4 * $t(2 * o);
|
|
15030
15030
|
let b = 0;
|
|
15031
15031
|
for (let s = ys.length - 1; s >= 0; s--) {
|
|
15032
15032
|
const i = ys[s];
|
|
15033
|
-
b += i.a *
|
|
15033
|
+
b += i.a * $t((i.b + i.c * t) * Zt);
|
|
15034
15034
|
}
|
|
15035
15035
|
return n + 1e-5 * b / M;
|
|
15036
15036
|
}
|
|
@@ -15206,12 +15206,12 @@ function Vm() {
|
|
|
15206
15206
|
return L = m - l, R - L < 6 && (L = L - R + A(R + 4, 33) * 33), f = W(W(L + 1, 33) - 1, 4), f === -1 && (f = 4), f;
|
|
15207
15207
|
}
|
|
15208
15208
|
function s(m, O) {
|
|
15209
|
-
var l = e.length, h = m + 621, R = -14, f = e[0], L, v, x, j, G,
|
|
15209
|
+
var l = e.length, h = m + 621, R = -14, f = e[0], L, v, x, j, G, i0, S0;
|
|
15210
15210
|
if (m < f || m >= e[l - 1])
|
|
15211
15211
|
throw new Error("Invalid Jalaali year " + m);
|
|
15212
15212
|
for (S0 = 1; S0 < l && (L = e[S0], v = L - f, !(m < L)); S0 += 1)
|
|
15213
15213
|
R = R + A(v, 33) * 8 + A(W(v, 33), 4), f = L;
|
|
15214
|
-
return
|
|
15214
|
+
return i0 = m - f, R = R + A(i0, 33) * 8 + A(W(i0, 33) + 3, 4), W(v, 33) === 4 && v - i0 === 4 && (R += 1), j = A(h, 4) - A((A(h, 100) + 1) * 3, 4) - 150, G = 20 + R - j, O ? { gy: h, march: G } : (v - i0 < 6 && (i0 = i0 - v + A(v + 4, 33) * 33), x = W(W(i0 + 1, 33) - 1, 4), x === -1 && (x = 4), {
|
|
15215
15215
|
leap: x,
|
|
15216
15216
|
gy: h,
|
|
15217
15217
|
march: G
|
|
@@ -17902,8 +17902,8 @@ const _r = {
|
|
|
17902
17902
|
},
|
|
17903
17903
|
name: "earth",
|
|
17904
17904
|
type: "B"
|
|
17905
|
-
},
|
|
17906
|
-
class
|
|
17905
|
+
}, $m = _r, bn = new br.Planet($m);
|
|
17906
|
+
class Zm extends f2 {
|
|
17907
17907
|
/**
|
|
17908
17908
|
* @param {object} [opts]
|
|
17909
17909
|
* @param {string} opts.season - type of season (spring|summer|autumn|winter)
|
|
@@ -18445,7 +18445,7 @@ class Oq {
|
|
|
18445
18445
|
// #endif
|
|
18446
18446
|
// #ifndef noequinox
|
|
18447
18447
|
case "equinox":
|
|
18448
|
-
return new
|
|
18448
|
+
return new Zm(a);
|
|
18449
18449
|
// #endif
|
|
18450
18450
|
// #ifndef nochinese
|
|
18451
18451
|
case "chinese":
|
|
@@ -47762,7 +47762,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
47762
47762
|
}
|
|
47763
47763
|
)
|
|
47764
47764
|
] }), vq = ({ type: e, children: a, item: n, overrideStyle: t }) => /* @__PURE__ */ d.jsx(d.Fragment, { children: e !== "delete" && /* @__PURE__ */ d.jsx("main", { className: t || "my-8 max-h-[600px] overflow-y-auto overflow-x-hidden", children: e === "delete" && !n ? /* @__PURE__ */ d.jsx("div", { className: "text-red-600 font-semibold", children: "Errore: nessun item selezionato per l'operazione." }) : a }) }), Nq = ({ isOpen: e, onClose: a, onCancel: n, title: t, formId: o, children: M, item: b, onConfirm: s, type: i = "submit", style: z = {}, headerContent: p, footerContent: c }) => {
|
|
47765
|
-
const r =
|
|
47765
|
+
const r = s0(null), [u, A] = I(e), W = () => {
|
|
47766
47766
|
e || A(!1);
|
|
47767
47767
|
}, m = z.width ?? (i === "delete" ? "max-w-md w-auto" : "w-full max-w-4xl"), O = z.bgModal ?? "bg-white", l = z.bgOverlay ?? "bg-black/50", h = z.zIndex ?? "z-50";
|
|
47768
47768
|
return O0(() => {
|
|
@@ -47860,10 +47860,10 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
47860
47860
|
description: "text-white/75",
|
|
47861
47861
|
badge: "bg-white/20"
|
|
47862
47862
|
}
|
|
47863
|
-
},
|
|
47863
|
+
}, i0 = t == null ? void 0 : t.position, S0 = (t == null ? void 0 : t.options) || G, Z0 = f.some((z0) => to(z0, O.pathname));
|
|
47864
47864
|
let A0;
|
|
47865
|
-
O.pathname === "/" ? A0 = h && R : A0 = h &&
|
|
47866
|
-
const a0 = x.some((
|
|
47865
|
+
O.pathname === "/" ? A0 = h && R : A0 = h && !Z0;
|
|
47866
|
+
const a0 = x.some((z0) => to(z0, O.pathname));
|
|
47867
47867
|
let u0;
|
|
47868
47868
|
return O.pathname === "/" ? u0 = L && v : u0 = L && !a0, /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
47869
47869
|
o && o.customPrompt && j,
|
|
@@ -47872,7 +47872,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
47872
47872
|
/* @__PURE__ */ d.jsx(
|
|
47873
47873
|
eA,
|
|
47874
47874
|
{
|
|
47875
|
-
position:
|
|
47875
|
+
position: i0 || "bottom-right",
|
|
47876
47876
|
options: S0
|
|
47877
47877
|
}
|
|
47878
47878
|
),
|
|
@@ -47997,7 +47997,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
47997
47997
|
] }) })
|
|
47998
47998
|
] });
|
|
47999
47999
|
}, rn = () => {
|
|
48000
|
-
const { isAuthenticated: e } =
|
|
48000
|
+
const { isAuthenticated: e } = $n(), { activeAlert: a } = te(), { autoLogin: n } = H1(), { token: t } = Sa();
|
|
48001
48001
|
return O0(() => {
|
|
48002
48002
|
!e && !t && !n && a("danger", "Non sei autorizzato");
|
|
48003
48003
|
}, []), e === null ? null : e ? /* @__PURE__ */ d.jsx(K2, {}) : /* @__PURE__ */ d.jsx(Ps, { to: "/", replace: !0 });
|
|
@@ -48083,10 +48083,10 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
48083
48083
|
] })
|
|
48084
48084
|
] });
|
|
48085
48085
|
}, Sq = () => {
|
|
48086
|
-
const { logout: e, createAxiosInstances: a } =
|
|
48087
|
-
loading: { title:
|
|
48088
|
-
success: { title:
|
|
48089
|
-
error: { title:
|
|
48086
|
+
const { logout: e, createAxiosInstances: a } = $n(), { usersEndpoint: n } = H1(), { setIsLoading: t } = Pe(), { activeAlert: o } = te(), { token: M, user: b } = Sa(), { success: s, error: i, info: z, warning: p, promise: c } = Xz(), [r, u] = I(null), [A, W] = I(!1), [m, O] = I(!1), l = (G, i0) => c(G, {
|
|
48087
|
+
loading: { title: i0.loading || "Caricamento..." },
|
|
48088
|
+
success: { title: i0.success || "Fatto!" },
|
|
48089
|
+
error: { title: i0.error || "Errore!" }
|
|
48090
48090
|
}), h = async () => {
|
|
48091
48091
|
try {
|
|
48092
48092
|
if (W(!0), !M) {
|
|
@@ -48212,7 +48212,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
48212
48212
|
} }), /* @__PURE__ */ P.createElement("path", { id: "path268", d: "M103.624 103.562c-.27.002-.79.209-1.004.4a2.5 2.5 0 0 0-.313.395l-.181.277-.018 18.064-.018 18.064h-3.047v-9.75c0-10.412-.004-10.52-.345-11.948-1.398-5.861-6.243-10.129-12.213-10.755-1.515-.16-19.836-.16-20.462-.003l-.002-.004-19.984 3.575 18.852 2.16v6.078l-17.36 3.103 17.36 1.99v6.523l-17.36 3.103 14.275 1.635-.016 4.906-.019 5.726-.63.125c-1.587.316-3.197 1.069-4.528 2.118-2.206 1.737-3.742 4.445-4.053 7.144-.37 3.213.552 6.199 2.657 8.602 1.688 1.926 4.174 3.26 6.696 3.592.824.108 2.933.031 3.671-.134.932-.21 1.79-.515 2.637-.939 2.066-1.033 3.824-2.775 4.827-4.784.504-1.01.91-2.207 1.027-3.029l.046-.33h18.828v.215c0 .117.064.468.142.779a10.96 10.96 0 0 0 6.975 7.687c1.343.475 1.946.568 3.655.564 1.32-.003 1.613-.025 2.182-.158 3.368-.785 6.027-2.86 7.515-5.865.44-.89.882-2.204.972-2.892l.043-.33 7.183-.001c7.08-.002 7.188-.003 7.495-.143.647-.293.9-.703.9-1.457 0-.569-.168-.945-.55-1.225-.505-.373-.225-.36-7.899-.36h-7.116l-.117-.597c-.261-1.329-.848-2.71-1.682-3.958-.57-.853-2.02-2.295-2.864-2.85-1.214-.799-2.805-1.465-4-1.674l-.502-.088-.018-21.17-.018-21.17-.154-.312c-.258-.521-.88-.903-1.465-.9zm9.34.76c-1.961 0-3.686 1.068-4.532 2.806-.536 1.103-.53 1.026-.507 6.443l.02 4.78.189.556c.62 1.83 2.225 3.176 4.083 3.424.241.032 2.715.053 5.496.046 5.705-.015 5.343.017 6.547-.574.548-.269.757-.422 1.25-.918.49-.49.65-.709.917-1.252.539-1.096.535-1.045.535-6.262 0-4.846-.012-5.061-.328-5.862-.764-1.94-2.613-3.187-4.727-3.187h-.557l-.003 4.14-.003 4.139-1.878 1.49a116 116 0 0 1-1.964 1.54c-.056.033-.792-.513-2.034-1.507l-1.947-1.56v-8.242zm2.29.553v6.927l1.084.87c.597.478 1.106.86 1.132.85s.535-.41 1.132-.886l1.085-.866-.017-3.43-.017-3.429-2.2-.018zm-47.247 6.508 9.197.025c9.138.025 9.2.026 9.889.175 2.276.495 4.009 1.425 5.576 2.993 1.563 1.563 2.494 3.26 3.002 5.472.15.658.15.664.17 10.686l.018 10.028h-2.393l-2.91-2.91c-2.148-2.147-2.999-2.954-3.252-3.082l-.342-.174H68.007V122.99zm44.87 16.355c-.846 0-1.356.1-1.976.386-1.352.623-2.297 1.666-2.772 3.059l-.184.539-.02 4.745c-.023 5.4-.023 5.392.503 6.477.507 1.044 1.244 1.78 2.297 2.295.347.17.83.351 1.073.404.354.077 1.48.097 5.603.1 5.817.005 5.683.015 6.749-.507 1.377-.674 2.299-1.8 2.674-3.27.13-.505.137-.783.137-5.222 0-4.448-.007-4.717-.137-5.237-.233-.926-.636-1.636-1.32-2.324-.515-.519-.69-.645-1.318-.948-.817-.396-1.263-.497-2.19-.497h-.646v8.223l-1.91 1.518c-1.049.834-1.938 1.527-1.974 1.54s-.938-.673-2.004-1.524l-1.939-1.548v-8.209zm2.377.554.004 3.447.004 3.446 1.052.844c.58.465 1.08.846 1.112.849s.555-.39 1.16-.874l1.101-.878v-6.834h-2.217zm-50.295 9.491H85.98l3.015 3.002c2.568 2.557 3.058 3.014 3.3 3.083.206.058 1.624.08 5.04.08h4.755v3.16l-.537.094c-1.12.195-2.648.809-3.729 1.498-1.69 1.076-3.118 2.7-3.994 4.536-.443.931-.884 2.341-.884 2.83v.214H74.119l-.046-.329c-.174-1.222-.844-2.861-1.707-4.174-.532-.809-1.996-2.292-2.8-2.836-1.322-.897-2.958-1.574-4.282-1.773l-.325-.048v-4.669z", style: {
|
|
48213
48213
|
fill: "#fff",
|
|
48214
48214
|
strokeWidth: 1.10252
|
|
48215
|
-
} })))),
|
|
48215
|
+
} })))), cf = (e) => {
|
|
48216
48216
|
const { publicRoutes: a, privateRoutes: n } = nA(), { firstPrivatePath: t, routes: o, defaultTitle: M } = H1();
|
|
48217
48217
|
oA(o, M);
|
|
48218
48218
|
const {
|
|
@@ -48265,13 +48265,13 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
48265
48265
|
n.map((v, x) => /* @__PURE__ */ d.jsx(E2, { path: v.path, element: v.element }, `private-${x}`))
|
|
48266
48266
|
] })
|
|
48267
48267
|
] }) });
|
|
48268
|
-
},
|
|
48268
|
+
}, Of = ({ children: e }) => {
|
|
48269
48269
|
var o;
|
|
48270
48270
|
const { user: a } = Sa(), n = Na(), { activeAlert: t } = te();
|
|
48271
48271
|
return O0(() => {
|
|
48272
48272
|
(!a || !a.admin) && t("warning", "Non puoi accedere a questa pagina");
|
|
48273
48273
|
}, [a]), !a || !a.admin ? /* @__PURE__ */ d.jsx(Ps, { to: ((o = n.state) == null ? void 0 : o.from) || "/", replace: !0 }) : e;
|
|
48274
|
-
},
|
|
48274
|
+
}, df = ({ spinner: e = !0, spinnerStyle: a, text: n, textStyle: t, children: o, containerStyle: M, overrideStyle: b = {} }) => /* @__PURE__ */ d.jsxs("div", { className: b.container || `w-full h-full relative flex items-center justify-center ${M}`, children: [
|
|
48275
48275
|
e && /* @__PURE__ */ d.jsx(xr, { className: b.spinner || `text-[20rem] animate-spin text-black ${a}` }),
|
|
48276
48276
|
o || /* @__PURE__ */ d.jsx("p", { className: b.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${t}`, children: n || "Loading..." })
|
|
48277
48277
|
] }), Ts = ({ isTag: e = !1, value: a, label: n, placeholder: t, id: o, onChange: M, error: b = null }) => /* @__PURE__ */ d.jsxs("div", { className: `flex items-center justify-center relative ${e ? "gap-4 mb-2" : "gap-1 m-4"}`, children: [
|
|
@@ -48289,7 +48289,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
48289
48289
|
}
|
|
48290
48290
|
),
|
|
48291
48291
|
b && /* @__PURE__ */ d.jsx("p", { className: "text-red-600 text-[13px] absolute bottom-0 left-26 translate-y-[20px]", children: b })
|
|
48292
|
-
] }),
|
|
48292
|
+
] }), Af = ({ title: e, showTag: a, value: n, tag: t, showButton: o, handleClick: M }) => /* @__PURE__ */ d.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${e === "TAG B" ? "delay-200" : "mb-4"} ${a ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
48293
48293
|
/* @__PURE__ */ d.jsx("h2", { className: "text-center mb-2 text-2xl", children: e }),
|
|
48294
48294
|
/* @__PURE__ */ d.jsx(
|
|
48295
48295
|
Ts,
|
|
@@ -48324,7 +48324,7 @@ const Lq = ({ onClose: e, type: a, title: n, name: t, onCancel: o }) => /* @__PU
|
|
|
48324
48324
|
function Xq(e) {
|
|
48325
48325
|
return l2({ 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: [] }] })(e);
|
|
48326
48326
|
}
|
|
48327
|
-
const
|
|
48327
|
+
const uf = ({ minReadingPower: e, maxReadingPower: a, stepRangePower: n, rangeValue: t, setRangeValue: o, show: M, handleClick: b }) => {
|
|
48328
48328
|
const s = (t - e) / (a - e) * 100;
|
|
48329
48329
|
return /* @__PURE__ */ d.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${M ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
48330
48330
|
/* @__PURE__ */ d.jsx("h2", { className: "text-center my-4 text-2xl", children: "Configurazione Potenza" }),
|
|
@@ -48363,21 +48363,59 @@ const Af = ({ minReadingPower: e, maxReadingPower: a, stepRangePower: n, rangeVa
|
|
|
48363
48363
|
}
|
|
48364
48364
|
) })
|
|
48365
48365
|
] });
|
|
48366
|
-
},
|
|
48366
|
+
}, lf = ({ show: e, isConfigPage: a, handleSelectFile: n }) => /* @__PURE__ */ d.jsxs("div", { className: `${a ? `${e ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
|
|
48367
48367
|
/* @__PURE__ */ d.jsxs("h2", { className: "text-xl my-4", children: [
|
|
48368
48368
|
"Seleziona il file ",
|
|
48369
48369
|
/* @__PURE__ */ d.jsx("strong", { children: "config.json" }),
|
|
48370
48370
|
" per recuperare le chiavi univoche del dispositivo"
|
|
48371
48371
|
] }),
|
|
48372
48372
|
/* @__PURE__ */ d.jsx("button", { onClick: n, className: "my-4 bg-blue-500 text-white px-4 py-2 rounded-lg", children: "Seleziona file" })
|
|
48373
|
-
] })
|
|
48374
|
-
|
|
48373
|
+
] }), kq = /iPad|iPhone|iPod/.test(navigator.userAgent), mf = ({ show: e, isConfigPage: a, handleFileChange: n }) => {
|
|
48374
|
+
const t = s0(null), o = () => {
|
|
48375
|
+
t.current.click();
|
|
48376
|
+
};
|
|
48377
|
+
return /* @__PURE__ */ d.jsxs("div", { className: `${a ? `${e ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
|
|
48378
|
+
/* @__PURE__ */ d.jsxs("h2", { className: "text-xl my-4", children: [
|
|
48379
|
+
"Seleziona il file ",
|
|
48380
|
+
/* @__PURE__ */ d.jsx("strong", { children: "config.json" }),
|
|
48381
|
+
" per recuperare le chiavi univoche del dispositivo"
|
|
48382
|
+
] }),
|
|
48383
|
+
kq && /* @__PURE__ */ d.jsxs("p", { className: "text-sm text-gray-500 mb-2", children: [
|
|
48384
|
+
"Su iPhone/iPad: ricevi il file ",
|
|
48385
|
+
/* @__PURE__ */ d.jsx("strong", { children: "config.json" }),
|
|
48386
|
+
" e salvalo nell'app ",
|
|
48387
|
+
/* @__PURE__ */ d.jsx("strong", { children: "File" }),
|
|
48388
|
+
" prima di selezionarlo."
|
|
48389
|
+
] }),
|
|
48390
|
+
/* @__PURE__ */ d.jsxs("div", { children: [
|
|
48391
|
+
/* @__PURE__ */ d.jsx(
|
|
48392
|
+
"input",
|
|
48393
|
+
{
|
|
48394
|
+
type: "file",
|
|
48395
|
+
accept: ".json",
|
|
48396
|
+
ref: t,
|
|
48397
|
+
style: { display: "none" },
|
|
48398
|
+
onChange: n
|
|
48399
|
+
}
|
|
48400
|
+
),
|
|
48401
|
+
/* @__PURE__ */ d.jsx(
|
|
48402
|
+
"button",
|
|
48403
|
+
{
|
|
48404
|
+
onClick: o,
|
|
48405
|
+
className: "my-4 bg-blue-500 text-white px-4 py-2 rounded-lg shadow hover:bg-blue-600 transition-colors",
|
|
48406
|
+
children: "Seleziona file"
|
|
48407
|
+
}
|
|
48408
|
+
)
|
|
48409
|
+
] })
|
|
48410
|
+
] });
|
|
48411
|
+
};
|
|
48412
|
+
function Cq(e) {
|
|
48375
48413
|
return l2({ 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: [] }] })(e);
|
|
48376
48414
|
}
|
|
48377
|
-
function
|
|
48415
|
+
function Pq(e) {
|
|
48378
48416
|
return l2({ 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: [] }] })(e);
|
|
48379
48417
|
}
|
|
48380
|
-
const
|
|
48418
|
+
const Eq = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", id: "svg1", width: 409.748, height: 409.748, viewBox: "0 0 108.413 108.413", ...e }, /* @__PURE__ */ P.createElement("defs", { id: "defs1" }, /* @__PURE__ */ P.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ P.createElement("stop", { id: "stop27", offset: 0, style: {
|
|
48381
48419
|
stopColor: "red",
|
|
48382
48420
|
stopOpacity: 1
|
|
48383
48421
|
} }), /* @__PURE__ */ P.createElement("stop", { id: "stop28", offset: 1, style: {
|
|
@@ -48418,12 +48456,12 @@ const Pq = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3
|
|
|
48418
48456
|
strokeWidth: 0,
|
|
48419
48457
|
strokeDasharray: "none",
|
|
48420
48458
|
paintOrder: "stroke markers fill"
|
|
48421
|
-
}, transform: "rotate(8.335)scale(.9449 1)skewY(-18.126)" })))),
|
|
48422
|
-
const { logout: n } =
|
|
48459
|
+
}, transform: "rotate(8.335)scale(.9449 1)skewY(-18.126)" })))), qf = ({ Logo: e, logo: a }) => {
|
|
48460
|
+
const { logout: n } = $n(), { activeAlert: t } = te(), { autoLogin: o, configRoutes: M, firstPrivateTitle: b, showHeaderButton: s } = H1(), { isLoading: i } = Pe(), z = Na(), p = Go(), c = () => {
|
|
48423
48461
|
n(), t("info", "Hai effettuato il logout");
|
|
48424
48462
|
}, r = M.find((A) => A.path === z.pathname), u = nc("home/:id");
|
|
48425
48463
|
return /* @__PURE__ */ d.jsx("header", { className: i ? "hidden" : "", children: /* @__PURE__ */ d.jsxs("nav", { className: "header-size flex items-center justify-between px-2 shadow-lg border-b gap-2 border-b-gray-300", children: [
|
|
48426
|
-
/* @__PURE__ */ d.jsx("figure", { children: e && typeof e == "function" ? /* @__PURE__ */ d.jsx(e, { className: "header-logo-size" }) : a ? /* @__PURE__ */ d.jsx("img", { src: a, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ d.jsx(
|
|
48464
|
+
/* @__PURE__ */ d.jsx("figure", { children: e && typeof e == "function" ? /* @__PURE__ */ d.jsx(e, { className: "header-logo-size" }) : a ? /* @__PURE__ */ d.jsx("img", { src: a, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ d.jsx(Eq, { className: "header-logo-size" }) }),
|
|
48427
48465
|
/* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsx("p", { children: (r == null ? void 0 : r.title) || b }) }),
|
|
48428
48466
|
/* @__PURE__ */ d.jsxs("div", { children: [
|
|
48429
48467
|
!o && u && /* @__PURE__ */ d.jsx(
|
|
@@ -48432,7 +48470,7 @@ const Pq = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3
|
|
|
48432
48470
|
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",
|
|
48433
48471
|
type: "button",
|
|
48434
48472
|
onClick: c,
|
|
48435
|
-
children: /* @__PURE__ */ d.jsx(
|
|
48473
|
+
children: /* @__PURE__ */ d.jsx(Cq, { className: "text-4xl w-full" })
|
|
48436
48474
|
}
|
|
48437
48475
|
),
|
|
48438
48476
|
!u && s && /* @__PURE__ */ d.jsx(
|
|
@@ -48441,16 +48479,16 @@ const Pq = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3
|
|
|
48441
48479
|
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",
|
|
48442
48480
|
type: "button",
|
|
48443
48481
|
onClick: () => p(-1),
|
|
48444
|
-
children: /* @__PURE__ */ d.jsx(
|
|
48482
|
+
children: /* @__PURE__ */ d.jsx(Pq, { className: "text-4xl w-full" })
|
|
48445
48483
|
}
|
|
48446
48484
|
)
|
|
48447
48485
|
] })
|
|
48448
48486
|
] }) });
|
|
48449
48487
|
};
|
|
48450
|
-
function
|
|
48488
|
+
function jq(e) {
|
|
48451
48489
|
return l2({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M763.024 259.968C718.4 141.536 622.465 66.527 477.553 66.527c-184.384 0-313.392 136.912-324.479 315.536C64.177 410.495.002 501.183.002 603.903c0 125.744 98.848 231.968 215.823 231.968h92.448c17.664 0 32-14.336 32-32 0-17.68-14.336-32-32-32h-92.448c-82.304 0-152.832-76.912-152.832-167.968 0-80.464 56.416-153.056 127.184-165.216l29.04-5.008-2.576-29.328-.24-.368c0-155.872 102.576-273.44 261.152-273.44 127.104 0 198.513 62.624 231.537 169.44l6.847 22.032 23.056.496c118.88 2.496 223.104 98.945 223.104 218.77 0 109.055-72.273 230.591-181.696 230.591h-73.12c-17.664 0-32 14.336-32 32 0 17.68 14.336 32 32 32l72.88-.095c160-4.224 243.344-157.071 243.344-294.495 0-147.712-115.76-265.744-260.48-281.312zM535.985 514.941c-.176-.192-.241-.352-.354-.512l-8.095-8.464c-4.432-4.688-10.336-7.008-16.24-6.976-5.905-.048-11.777 2.288-16.289 6.975l-8.095 8.464c-.16.16-.193.353-.336.513L371.072 642.685c-8.944 9.344-8.944 24.464 0 33.84l8.064 5.471c8.945 9.344 23.44 6.32 32.368-3.024l68.113-75.935v322.432c0 17.664 14.336 32 32 32s32-14.336 32-32V603.34l70.368 77.631c8.944 9.344 23.408 12.369 32.336 3.025l8.064-5.472c8.945-9.376 8.945-24.496 0-33.84z" }, child: [] }] })(e);
|
|
48452
48490
|
}
|
|
48453
|
-
const
|
|
48491
|
+
const ff = (e) => {
|
|
48454
48492
|
const [a, n] = I(!1), {
|
|
48455
48493
|
onFilesSelect: t,
|
|
48456
48494
|
id: o = "dropzone-file",
|
|
@@ -48478,7 +48516,7 @@ const mf = (e) => {
|
|
|
48478
48516
|
className: s,
|
|
48479
48517
|
children: [
|
|
48480
48518
|
/* @__PURE__ */ d.jsxs("div", { className: b, children: [
|
|
48481
|
-
/* @__PURE__ */ d.jsx(
|
|
48519
|
+
/* @__PURE__ */ d.jsx(jq, { className: "text-8xl" }),
|
|
48482
48520
|
/* @__PURE__ */ d.jsxs("p", { className: "mb-2", children: [
|
|
48483
48521
|
/* @__PURE__ */ d.jsx("span", { className: "font-semibold", children: "Clicca per caricare" }),
|
|
48484
48522
|
" o trascina qui i file"
|
|
@@ -48549,7 +48587,7 @@ const mf = (e) => {
|
|
|
48549
48587
|
),
|
|
48550
48588
|
c
|
|
48551
48589
|
] });
|
|
48552
|
-
},
|
|
48590
|
+
}, hf = (e) => {
|
|
48553
48591
|
const {
|
|
48554
48592
|
startId: a,
|
|
48555
48593
|
endId: n,
|
|
@@ -48606,7 +48644,7 @@ const mf = (e) => {
|
|
|
48606
48644
|
),
|
|
48607
48645
|
R
|
|
48608
48646
|
] });
|
|
48609
|
-
},
|
|
48647
|
+
}, Iq = ({ sizeContainer: e, Logo: a, spinnerColor: n }) => /* @__PURE__ */ d.jsxs("div", { className: `relative ${e || "h-60 w-60"}`, children: [
|
|
48610
48648
|
/* @__PURE__ */ d.jsx("svg", { className: "absolute inset-0 w-full h-full animate-spin-slow z-10", viewBox: "0 0 100 100", children: /* @__PURE__ */ d.jsx(
|
|
48611
48649
|
"circle",
|
|
48612
48650
|
{
|
|
@@ -48622,7 +48660,7 @@ const mf = (e) => {
|
|
|
48622
48660
|
}
|
|
48623
48661
|
) }),
|
|
48624
48662
|
/* @__PURE__ */ d.jsx("figure", { className: "h-full w-full rounded-full overflow-hidden relative", children: /* @__PURE__ */ d.jsx(a, { className: "h-full w-full" }) })
|
|
48625
|
-
] }),
|
|
48663
|
+
] }), yf = ({ gradients: e, moreGradients: a, containerSize: n, overlayStyle: t, NewLogoLoader: o, Logo: M, spinnerColor: b }) => {
|
|
48626
48664
|
const { customLoginTimeout: s } = H1(), { isLoading: i } = Pe(), [z, p] = I(i), [c, r] = I(!1), u = [
|
|
48627
48665
|
"bg-gradient-to-br from-blue-500 via-blue-400 to-blue-200",
|
|
48628
48666
|
"bg-gradient-to-br from-blue-200 via-blue-400 to-purple-300",
|
|
@@ -48644,8 +48682,8 @@ const mf = (e) => {
|
|
|
48644
48682
|
const O = setTimeout(() => p(!1), 300);
|
|
48645
48683
|
return () => clearTimeout(O);
|
|
48646
48684
|
}
|
|
48647
|
-
}, [i, s]), /* @__PURE__ */ d.jsx("div", { className: `${t || "fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center z-999 transition-opacity duration-300"} ${W} ${c ? "opacity-100" : "opacity-0"}`, children: o ? /* @__PURE__ */ d.jsx(o, {}) : /* @__PURE__ */ d.jsx(
|
|
48648
|
-
},
|
|
48685
|
+
}, [i, s]), /* @__PURE__ */ d.jsx("div", { className: `${t || "fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center z-999 transition-opacity duration-300"} ${W} ${c ? "opacity-100" : "opacity-0"}`, children: o ? /* @__PURE__ */ d.jsx(o, {}) : /* @__PURE__ */ d.jsx(Iq, { sizeContainer: m, Logo: M, spinnerColor: b }) });
|
|
48686
|
+
}, Wf = ({ options: e = [], value: a, onChange: n }) => /* @__PURE__ */ d.jsx("div", { className: "grid grid-cols-1 gap-2", children: e.map((t) => {
|
|
48649
48687
|
const o = a === t;
|
|
48650
48688
|
return /* @__PURE__ */ d.jsx(
|
|
48651
48689
|
"button",
|
|
@@ -48659,10 +48697,10 @@ const mf = (e) => {
|
|
|
48659
48697
|
t
|
|
48660
48698
|
);
|
|
48661
48699
|
}) });
|
|
48662
|
-
function
|
|
48700
|
+
function Fq(e) {
|
|
48663
48701
|
return l2({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }, child: [] }] })(e);
|
|
48664
48702
|
}
|
|
48665
|
-
const
|
|
48703
|
+
const Hq = [], Vq = {
|
|
48666
48704
|
container: "relative w-full mb-4",
|
|
48667
48705
|
label: "mb-2 text-input-label font-medium text-color-label",
|
|
48668
48706
|
trigger: "border border-gray-300 rounded-lg p-2 flex flex-wrap gap-1 cursor-pointer h-[43px] bg-white overflow-x-auto scrollbar-none",
|
|
@@ -48676,11 +48714,11 @@ const Fq = [], Hq = {
|
|
|
48676
48714
|
listItem: "px-3 py-2 cursor-pointer hover:bg-blue-50",
|
|
48677
48715
|
listItemSelected: "bg-blue-100",
|
|
48678
48716
|
noResults: "px-3 py-2 text-gray-500 text-sm"
|
|
48679
|
-
},
|
|
48717
|
+
}, Rf = ({
|
|
48680
48718
|
// Data
|
|
48681
48719
|
label: e,
|
|
48682
48720
|
items: a,
|
|
48683
|
-
value: n =
|
|
48721
|
+
value: n = Hq,
|
|
48684
48722
|
placeholder: t,
|
|
48685
48723
|
displayKey: o,
|
|
48686
48724
|
valueKey: M,
|
|
@@ -48694,7 +48732,7 @@ const Fq = [], Hq = {
|
|
|
48694
48732
|
// Style overrides (merged with defaults)
|
|
48695
48733
|
classNames: c = {}
|
|
48696
48734
|
}) => {
|
|
48697
|
-
const [r, u] = I(!1), [A, W] = I(""), m =
|
|
48735
|
+
const [r, u] = I(!1), [A, W] = I(""), m = s0(null), O = { ...Vq, ...c };
|
|
48698
48736
|
hq(m, () => u(!1));
|
|
48699
48737
|
const l = (f) => {
|
|
48700
48738
|
if (s)
|
|
@@ -48729,7 +48767,7 @@ const Fq = [], Hq = {
|
|
|
48729
48767
|
}
|
|
48730
48768
|
)
|
|
48731
48769
|
] }, f[b])) : /* @__PURE__ */ d.jsx("span", { className: O.placeholder, children: t }),
|
|
48732
|
-
/* @__PURE__ */ d.jsx(
|
|
48770
|
+
/* @__PURE__ */ d.jsx(Fq, { className: `${O.chevron} ${r ? "rotate-180" : "rotate-0"}` })
|
|
48733
48771
|
] }),
|
|
48734
48772
|
r && /* @__PURE__ */ d.jsxs("div", { className: O.dropdown, children: [
|
|
48735
48773
|
/* @__PURE__ */ d.jsx(
|
|
@@ -48754,94 +48792,95 @@ const Fq = [], Hq = {
|
|
|
48754
48792
|
)) : /* @__PURE__ */ d.jsx("li", { className: O.noResults, children: p }) })
|
|
48755
48793
|
] })
|
|
48756
48794
|
] });
|
|
48757
|
-
},
|
|
48795
|
+
}, gf = (e) => {
|
|
48758
48796
|
if (!(e instanceof Date)) return "";
|
|
48759
48797
|
const a = (s) => String(s).padStart(2, "0"), n = e.getFullYear(), t = a(e.getMonth() + 1), o = a(e.getDate()), M = a(e.getHours()), b = a(e.getMinutes());
|
|
48760
48798
|
return `${n}-${t}-${o}T${M}:${b}`;
|
|
48761
|
-
},
|
|
48799
|
+
}, Lf = (e, a, n = 0, t = 0) => {
|
|
48762
48800
|
if (!(e instanceof Date)) return null;
|
|
48763
48801
|
const o = new Date(e);
|
|
48764
48802
|
return o.setHours(a, n, t, 0), o;
|
|
48765
|
-
},
|
|
48803
|
+
}, vf = (e, a) => {
|
|
48766
48804
|
if (!(e instanceof Date)) return null;
|
|
48767
48805
|
const n = new Date(e);
|
|
48768
48806
|
return n.setDate(n.getDate() - a), n;
|
|
48769
|
-
},
|
|
48807
|
+
}, Nf = (e) => {
|
|
48770
48808
|
const a = new Date(e);
|
|
48771
48809
|
return new Date(a.getTime() + a.getTimezoneOffset() * 6e4);
|
|
48772
|
-
},
|
|
48810
|
+
}, _f = (e) => {
|
|
48773
48811
|
if (!(e instanceof Date)) return "";
|
|
48774
48812
|
const a = (M) => String(M).padStart(2, "0"), n = e.getUTCFullYear(), t = a(e.getUTCMonth() + 1), o = a(e.getUTCDate());
|
|
48775
48813
|
return `${n}-${t}-${o}`;
|
|
48776
48814
|
};
|
|
48777
48815
|
export {
|
|
48778
48816
|
ws as Alert,
|
|
48779
|
-
|
|
48780
|
-
|
|
48817
|
+
af as AlertProvider,
|
|
48818
|
+
Of as AuthAdmin,
|
|
48781
48819
|
rn as AuthPage,
|
|
48782
|
-
|
|
48783
|
-
|
|
48784
|
-
|
|
48785
|
-
|
|
48786
|
-
|
|
48820
|
+
nf as AuthProvider,
|
|
48821
|
+
wf as BrowserRouter,
|
|
48822
|
+
uf as CardInputRange,
|
|
48823
|
+
Af as CardInputTag,
|
|
48824
|
+
lf as ConfigFileReader,
|
|
48825
|
+
mf as ConfigFileReaderAllBrowser,
|
|
48787
48826
|
Zq as ConfigProvider,
|
|
48788
48827
|
Sq as Dashboard,
|
|
48789
48828
|
_q as DefaultLayout,
|
|
48790
48829
|
pc as ErrorPage,
|
|
48791
|
-
|
|
48792
|
-
|
|
48830
|
+
ff as FileDropzone,
|
|
48831
|
+
qf as Header,
|
|
48793
48832
|
Ho as Input,
|
|
48794
48833
|
Ss as InputDate,
|
|
48795
48834
|
Ts as InputGroup,
|
|
48796
48835
|
Vo as InputLabel,
|
|
48797
|
-
|
|
48798
|
-
|
|
48799
|
-
|
|
48836
|
+
hf as InputStartEndDate,
|
|
48837
|
+
Tf as Link,
|
|
48838
|
+
yf as Loader,
|
|
48800
48839
|
yq as Loading,
|
|
48801
|
-
|
|
48802
|
-
|
|
48840
|
+
df as LoadingComponent,
|
|
48841
|
+
$q as LoadingProvider,
|
|
48803
48842
|
Dq as Login,
|
|
48804
48843
|
Bq as LoginForm,
|
|
48805
|
-
|
|
48806
|
-
|
|
48807
|
-
|
|
48808
|
-
|
|
48809
|
-
|
|
48810
|
-
|
|
48811
|
-
|
|
48812
|
-
|
|
48813
|
-
|
|
48814
|
-
|
|
48815
|
-
|
|
48816
|
-
|
|
48844
|
+
of as LoginFormProvider,
|
|
48845
|
+
Iq as LogoLoader,
|
|
48846
|
+
Mf as ModalProvider,
|
|
48847
|
+
Rf as MultiSelect,
|
|
48848
|
+
Sf as NavLink,
|
|
48849
|
+
xf as Outlet,
|
|
48850
|
+
cf as PackageRoutes,
|
|
48851
|
+
Vf as ReactDOM,
|
|
48852
|
+
Xf as Route,
|
|
48853
|
+
tf as RouteProvider,
|
|
48854
|
+
kf as Routes,
|
|
48855
|
+
Wf as SingleSelect,
|
|
48817
48856
|
wq as SwitchRadio,
|
|
48818
48857
|
oA as UsePageTitle,
|
|
48819
|
-
|
|
48858
|
+
Ff as axios,
|
|
48820
48859
|
aA as fetchAxiosConfig,
|
|
48821
|
-
|
|
48822
|
-
|
|
48823
|
-
|
|
48824
|
-
|
|
48825
|
-
|
|
48860
|
+
Nf as parseUtcToLocal,
|
|
48861
|
+
Lf as setTime,
|
|
48862
|
+
vf as subtractDays,
|
|
48863
|
+
_f as toDateValue,
|
|
48864
|
+
gf as toDatetimeLocalValue,
|
|
48826
48865
|
te as useAlert,
|
|
48827
|
-
|
|
48866
|
+
$n as useAuth,
|
|
48828
48867
|
Sa as useAuthStorage,
|
|
48829
48868
|
fq as useCalendar,
|
|
48830
48869
|
hq as useClickOutside,
|
|
48831
48870
|
H1 as useConfig,
|
|
48832
48871
|
Cc as useDevice,
|
|
48833
|
-
|
|
48834
|
-
|
|
48872
|
+
pf as useForm,
|
|
48873
|
+
bf as useIndexedDB,
|
|
48835
48874
|
Pe as useLoading,
|
|
48836
|
-
|
|
48875
|
+
Cf as useLocation,
|
|
48837
48876
|
jz as useLoginForm,
|
|
48838
|
-
|
|
48877
|
+
Pf as useMatch,
|
|
48839
48878
|
tA as useModal,
|
|
48840
|
-
|
|
48841
|
-
|
|
48842
|
-
|
|
48879
|
+
Ef as useNavigate,
|
|
48880
|
+
sf as useOrientation,
|
|
48881
|
+
jf as useParams,
|
|
48843
48882
|
nA as useRoutesInjection,
|
|
48844
|
-
|
|
48883
|
+
zf as useSafeArea,
|
|
48845
48884
|
ts as useStorage,
|
|
48846
48885
|
Xz as useToast,
|
|
48847
48886
|
MA as useViewportHeight
|