@ukpc-lib/react 0.1.8 → 0.1.10
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/components/GlobalMenu/components/MenuItem.d.ts +5 -1
- package/dist/components/GlobalMenu/index.d.ts +3 -3
- package/dist/components/index.cjs +5 -5
- package/dist/components/index.js +310 -308
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +6 -6
- package/web-components-bundle/global-menu/index.js +364 -360
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as x, R as Ia, g as Wa, e as ws,
|
|
1
|
+
import { r as x, R as Ia, g as Wa, e as ws, p as U, j as O, a as Ua, S as za, L as Ha, s as $a } from "../index-6ba7e1d4.js";
|
|
2
2
|
/**
|
|
3
3
|
* @remix-run/router v1.14.2
|
|
4
4
|
*
|
|
@@ -246,9 +246,9 @@ function Ts(e, t, n, r) {
|
|
|
246
246
|
let l = Ka(i, a), c = s && s !== "/" && s.endsWith("/"), f = (o || s === ".") && n.endsWith("/");
|
|
247
247
|
return !l.pathname.endsWith("/") && (c || f) && (l.pathname += "/"), l;
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
new Set(
|
|
251
|
-
const el = ["get", ...
|
|
249
|
+
const Ps = (e) => e.join("/").replace(/\/\/+/g, "/"), Za = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Qa = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, As = ["post", "put", "patch", "delete"];
|
|
250
|
+
new Set(As);
|
|
251
|
+
const el = ["get", ...As];
|
|
252
252
|
new Set(el);
|
|
253
253
|
/**
|
|
254
254
|
* React Router v6.21.3
|
|
@@ -290,7 +290,7 @@ function tl(e, t) {
|
|
|
290
290
|
} = Os(e, {
|
|
291
291
|
relative: n
|
|
292
292
|
}), l = s;
|
|
293
|
-
return r !== "/" && (l = s === "/" ? r :
|
|
293
|
+
return r !== "/" && (l = s === "/" ? r : Ps([r, s])), i.createHref({
|
|
294
294
|
pathname: l,
|
|
295
295
|
search: a,
|
|
296
296
|
hash: o
|
|
@@ -332,7 +332,7 @@ function rl() {
|
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
334
|
let u = Ts(c, JSON.parse(s), o, f.relative === "path");
|
|
335
|
-
e == null && t !== "/" && (u.pathname = u.pathname === "/" ? t :
|
|
335
|
+
e == null && t !== "/" && (u.pathname = u.pathname === "/" ? t : Ps([t, u.pathname])), (f.replace ? r.replace : r.push)(u, f.state, f);
|
|
336
336
|
}, [t, r, s, o, e]);
|
|
337
337
|
}
|
|
338
338
|
function Os(e, t) {
|
|
@@ -571,15 +571,15 @@ var wl = typeof self == "object" && self && self.Object === Object && self, Sl =
|
|
|
571
571
|
const Ms = Sl;
|
|
572
572
|
var El = Ms.Symbol;
|
|
573
573
|
const It = El;
|
|
574
|
-
var Ls = Object.prototype, Tl = Ls.hasOwnProperty,
|
|
575
|
-
function
|
|
574
|
+
var Ls = Object.prototype, Tl = Ls.hasOwnProperty, Pl = Ls.toString, nt = It ? It.toStringTag : void 0;
|
|
575
|
+
function Al(e) {
|
|
576
576
|
var t = Tl.call(e, nt), n = e[nt];
|
|
577
577
|
try {
|
|
578
578
|
e[nt] = void 0;
|
|
579
579
|
var r = !0;
|
|
580
580
|
} catch {
|
|
581
581
|
}
|
|
582
|
-
var i =
|
|
582
|
+
var i = Pl.call(e);
|
|
583
583
|
return r && (t ? e[nt] = n : delete e[nt]), i;
|
|
584
584
|
}
|
|
585
585
|
var Cl = Object.prototype, Rl = Cl.toString;
|
|
@@ -588,7 +588,7 @@ function Ol(e) {
|
|
|
588
588
|
}
|
|
589
589
|
var Vl = "[object Null]", kl = "[object Undefined]", $r = It ? It.toStringTag : void 0;
|
|
590
590
|
function Ml(e) {
|
|
591
|
-
return e == null ? e === void 0 ? kl : Vl : $r && $r in Object(e) ?
|
|
591
|
+
return e == null ? e === void 0 ? kl : Vl : $r && $r in Object(e) ? Al(e) : Ol(e);
|
|
592
592
|
}
|
|
593
593
|
function Ll(e) {
|
|
594
594
|
return e != null && typeof e == "object";
|
|
@@ -638,19 +638,19 @@ function Mt(e, t, n) {
|
|
|
638
638
|
throw new TypeError($l);
|
|
639
639
|
t = Gr(t) || 0, Wt(n) && (f = !!n.leading, u = "maxWait" in n, o = u ? ql(Gr(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
|
|
640
640
|
function d(T) {
|
|
641
|
-
var
|
|
642
|
-
return r = i = void 0, c = T, s = e.apply(
|
|
641
|
+
var P = r, A = i;
|
|
642
|
+
return r = i = void 0, c = T, s = e.apply(A, P), s;
|
|
643
643
|
}
|
|
644
644
|
function p(T) {
|
|
645
645
|
return c = T, a = setTimeout(v, t), f ? d(T) : s;
|
|
646
646
|
}
|
|
647
647
|
function m(T) {
|
|
648
|
-
var
|
|
649
|
-
return u ? Gl(
|
|
648
|
+
var P = T - l, A = T - c, R = t - P;
|
|
649
|
+
return u ? Gl(R, o - A) : R;
|
|
650
650
|
}
|
|
651
651
|
function g(T) {
|
|
652
|
-
var
|
|
653
|
-
return l === void 0 ||
|
|
652
|
+
var P = T - l, A = T - c;
|
|
653
|
+
return l === void 0 || P >= t || P < 0 || u && A >= o;
|
|
654
654
|
}
|
|
655
655
|
function v() {
|
|
656
656
|
var T = bn();
|
|
@@ -668,8 +668,8 @@ function Mt(e, t, n) {
|
|
|
668
668
|
return a === void 0 ? s : w(bn());
|
|
669
669
|
}
|
|
670
670
|
function E() {
|
|
671
|
-
var T = bn(),
|
|
672
|
-
if (r = arguments, i = this, l = T,
|
|
671
|
+
var T = bn(), P = g(T);
|
|
672
|
+
if (r = arguments, i = this, l = T, P) {
|
|
673
673
|
if (a === void 0)
|
|
674
674
|
return p(l);
|
|
675
675
|
if (u)
|
|
@@ -767,7 +767,7 @@ var Zl = /* @__PURE__ */ Object.freeze({
|
|
|
767
767
|
addClasses: Ns,
|
|
768
768
|
removeClasses: Bs,
|
|
769
769
|
classNamesToQuery: Is
|
|
770
|
-
}), ye = js, xn = _s, Ql = Fs, ve = Ns, be = Bs, X = Is,
|
|
770
|
+
}), ye = js, xn = _s, Ql = Fs, ve = Ns, be = Bs, X = Is, Pt = (
|
|
771
771
|
/** @class */
|
|
772
772
|
function() {
|
|
773
773
|
function e(t, n) {
|
|
@@ -808,8 +808,8 @@ var Zl = /* @__PURE__ */ Object.freeze({
|
|
|
808
808
|
i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
|
|
809
809
|
var T = g - ((h = (u = v.rect) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
|
|
810
810
|
T = r.draggedAxis === "x" && r.isRtl ? ((p = (d = v.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - T : T;
|
|
811
|
-
var
|
|
812
|
-
r.draggedAxis === "x" && r.isRtl && (
|
|
811
|
+
var P = T / (w - y.size), A = P * (S - E);
|
|
812
|
+
r.draggedAxis === "x" && r.isRtl && (A = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -A : A), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = A;
|
|
813
813
|
}
|
|
814
814
|
}, this.onEndDrag = function(i) {
|
|
815
815
|
var o = xn(r.el), s = ye(r.el);
|
|
@@ -1039,12 +1039,12 @@ function ec(e, t) {
|
|
|
1039
1039
|
var Ws = x.forwardRef(function(e, t) {
|
|
1040
1040
|
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, o = ec(e, ["children", "scrollableNodeProps"]), s = x.useRef(), a = x.useRef(), l = x.useRef(), c = {}, f = {};
|
|
1041
1041
|
Object.keys(o).forEach(function(d) {
|
|
1042
|
-
Object.prototype.hasOwnProperty.call(
|
|
1042
|
+
Object.prototype.hasOwnProperty.call(Pt.defaultOptions, d) ? c[d] = o[d] : f[d] = o[d];
|
|
1043
1043
|
});
|
|
1044
|
-
var u = Y(Y({},
|
|
1044
|
+
var u = Y(Y({}, Pt.defaultOptions.classNames), c.classNames), h = Y(Y({}, i), { className: "".concat(u.contentWrapper).concat(i.className ? " ".concat(i.className) : ""), tabIndex: 0, role: "region", "aria-label": c.ariaLabel || Pt.defaultOptions.ariaLabel });
|
|
1045
1045
|
return x.useEffect(function() {
|
|
1046
1046
|
var d;
|
|
1047
|
-
return a.current = h.ref ? h.ref.current : a.current, s.current && (d = new
|
|
1047
|
+
return a.current = h.ref ? h.ref.current : a.current, s.current && (d = new Pt(s.current, Y(Y(Y({}, c), a.current && {
|
|
1048
1048
|
scrollableNode: a.current
|
|
1049
1049
|
}), l.current && {
|
|
1050
1050
|
contentNode: l.current
|
|
@@ -1346,14 +1346,14 @@ function gc(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0
|
|
|
1346
1346
|
}
|
|
1347
1347
|
return t && !e.z && (o += "translateZ(0)"), o = o.trim(), i ? o = i(e, r ? "" : o) : n && r && (o = "none"), o;
|
|
1348
1348
|
}
|
|
1349
|
-
const Ks = (e) => (t) => typeof t == "string" && t.startsWith(e), Ys = Ks("--"), Wn = Ks("var(--"), yc = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, vc = (e, t) => t && typeof e == "number" ? t.transform(e) : e,
|
|
1349
|
+
const Ks = (e) => (t) => typeof t == "string" && t.startsWith(e), Ys = Ks("--"), Wn = Ks("var(--"), yc = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, vc = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Ae = (e, t, n) => Math.min(Math.max(n, e), t), Fe = {
|
|
1350
1350
|
test: (e) => typeof e == "number",
|
|
1351
1351
|
parse: parseFloat,
|
|
1352
1352
|
transform: (e) => e
|
|
1353
1353
|
}, at = {
|
|
1354
1354
|
...Fe,
|
|
1355
|
-
transform: (e) =>
|
|
1356
|
-
},
|
|
1355
|
+
transform: (e) => Ae(0, 1, e)
|
|
1356
|
+
}, At = {
|
|
1357
1357
|
...Fe,
|
|
1358
1358
|
default: 1
|
|
1359
1359
|
}, lt = (e) => Math.round(e * 1e5) / 1e5, ln = /(-)?([\d]*\.?[\d])+/g, Js = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, bc = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
@@ -1410,10 +1410,10 @@ const xt = (e) => ({
|
|
|
1410
1410
|
rotateX: we,
|
|
1411
1411
|
rotateY: we,
|
|
1412
1412
|
rotateZ: we,
|
|
1413
|
-
scale:
|
|
1414
|
-
scaleX:
|
|
1415
|
-
scaleY:
|
|
1416
|
-
scaleZ:
|
|
1413
|
+
scale: At,
|
|
1414
|
+
scaleX: At,
|
|
1415
|
+
scaleY: At,
|
|
1416
|
+
scaleZ: At,
|
|
1417
1417
|
skew: we,
|
|
1418
1418
|
skewX: we,
|
|
1419
1419
|
skewY: we,
|
|
@@ -1483,7 +1483,7 @@ function Tc(e, t, n) {
|
|
|
1483
1483
|
const r = {}, i = Ec(e, t, n);
|
|
1484
1484
|
return e.drag && e.dragListener !== !1 && (r.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (r.tabIndex = 0), r.style = i, r;
|
|
1485
1485
|
}
|
|
1486
|
-
const
|
|
1486
|
+
const Pc = /* @__PURE__ */ new Set([
|
|
1487
1487
|
"animate",
|
|
1488
1488
|
"exit",
|
|
1489
1489
|
"variants",
|
|
@@ -1517,14 +1517,14 @@ const Ac = /* @__PURE__ */ new Set([
|
|
|
1517
1517
|
"viewport"
|
|
1518
1518
|
]);
|
|
1519
1519
|
function zt(e) {
|
|
1520
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
1520
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Pc.has(e);
|
|
1521
1521
|
}
|
|
1522
1522
|
let eo = (e) => !zt(e);
|
|
1523
|
-
function
|
|
1523
|
+
function Ac(e) {
|
|
1524
1524
|
e && (eo = (t) => t.startsWith("on") ? !zt(t) : e(t));
|
|
1525
1525
|
}
|
|
1526
1526
|
try {
|
|
1527
|
-
|
|
1527
|
+
Ac(require("@emotion/is-prop-valid").default);
|
|
1528
1528
|
} catch {
|
|
1529
1529
|
}
|
|
1530
1530
|
function Cc(e, t, n) {
|
|
@@ -1706,7 +1706,7 @@ function Nc(e, t, n, r) {
|
|
|
1706
1706
|
i[w] = m[w];
|
|
1707
1707
|
}), i;
|
|
1708
1708
|
}
|
|
1709
|
-
const
|
|
1709
|
+
const _ = (e) => e;
|
|
1710
1710
|
class ti {
|
|
1711
1711
|
constructor() {
|
|
1712
1712
|
this.order = [], this.scheduled = /* @__PURE__ */ new Set();
|
|
@@ -1782,7 +1782,7 @@ function Wc(e, t) {
|
|
|
1782
1782
|
return u[h] = (p, m = !1, g = !1) => (n || l(), d.schedule(p, m, g)), u;
|
|
1783
1783
|
}, {}), cancel: (u) => Ct.forEach((h) => o[h].cancel(u)), state: i, steps: o };
|
|
1784
1784
|
}
|
|
1785
|
-
const { schedule: M, cancel: me, state:
|
|
1785
|
+
const { schedule: M, cancel: me, state: $, steps: wn } = Wc(typeof requestAnimationFrame < "u" ? requestAnimationFrame : _, !0), Uc = {
|
|
1786
1786
|
useVisualState: oo({
|
|
1787
1787
|
scrapeMotionValuesFromProps: so,
|
|
1788
1788
|
createRenderState: to,
|
|
@@ -1919,7 +1919,7 @@ function Sn(e, t) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
class Kc extends Re {
|
|
1921
1921
|
constructor() {
|
|
1922
|
-
super(...arguments), this.removeStartListeners =
|
|
1922
|
+
super(...arguments), this.removeStartListeners = _, this.removeEndListeners = _, this.removeAccessibleListeners = _, this.startPointerPress = (t, n) => {
|
|
1923
1923
|
if (this.isPressing)
|
|
1924
1924
|
return;
|
|
1925
1925
|
this.removeEndListeners();
|
|
@@ -2067,8 +2067,8 @@ function un(e, t, n) {
|
|
|
2067
2067
|
const r = e.getProps();
|
|
2068
2068
|
return vr(r, t, n !== void 0 ? n : r.custom, iu(e), su(e));
|
|
2069
2069
|
}
|
|
2070
|
-
let ou =
|
|
2071
|
-
const
|
|
2070
|
+
let ou = _, br = _;
|
|
2071
|
+
const Pe = (e) => e * 1e3, de = (e) => e / 1e3, au = {
|
|
2072
2072
|
current: !1
|
|
2073
2073
|
}, po = (e) => Array.isArray(e) && typeof e[0] == "number";
|
|
2074
2074
|
function mo(e) {
|
|
@@ -2116,12 +2116,12 @@ function hu(e, t, n, r, i) {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
function wt(e, t, n, r) {
|
|
2118
2118
|
if (e === t && n === r)
|
|
2119
|
-
return
|
|
2119
|
+
return _;
|
|
2120
2120
|
const i = (o) => hu(o, 0, 1, e, n);
|
|
2121
2121
|
return (o) => o === 0 || o === 1 ? o : vo(i(o), t, r);
|
|
2122
2122
|
}
|
|
2123
2123
|
const du = wt(0.42, 0, 1, 1), pu = wt(0, 0, 0.58, 1), bo = wt(0.42, 0, 0.58, 1), mu = (e) => Array.isArray(e) && typeof e[0] != "number", xo = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, wo = (e) => (t) => 1 - e(1 - t), xr = (e) => 1 - Math.sin(Math.acos(e)), So = wo(xr), gu = xo(xr), Eo = wt(0.33, 1.53, 0.69, 0.99), wr = wo(Eo), yu = xo(wr), vu = (e) => (e *= 2) < 1 ? 0.5 * wr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), bu = {
|
|
2124
|
-
linear:
|
|
2124
|
+
linear: _,
|
|
2125
2125
|
easeIn: du,
|
|
2126
2126
|
easeInOut: bo,
|
|
2127
2127
|
easeOut: pu,
|
|
@@ -2150,7 +2150,7 @@ const du = wt(0.42, 0, 1, 1), pu = wt(0, 0, 0.58, 1), bo = wt(0.42, 0, 0.58, 1),
|
|
|
2150
2150
|
[n]: parseFloat(s),
|
|
2151
2151
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
2152
2152
|
};
|
|
2153
|
-
}, xu = (e) =>
|
|
2153
|
+
}, xu = (e) => Ae(0, 255, e), Tn = {
|
|
2154
2154
|
...Fe,
|
|
2155
2155
|
transform: (e) => Math.round(xu(e))
|
|
2156
2156
|
}, je = {
|
|
@@ -2180,7 +2180,7 @@ const zn = {
|
|
|
2180
2180
|
parse: (e) => je.test(e) ? je.parse(e) : Ge.test(e) ? Ge.parse(e) : zn.parse(e),
|
|
2181
2181
|
transform: (e) => bt(e) ? e : e.hasOwnProperty("red") ? je.transform(e) : Ge.transform(e)
|
|
2182
2182
|
}, D = (e, t, n) => -n * e + n * t + e;
|
|
2183
|
-
function
|
|
2183
|
+
function Pn(e, t, n) {
|
|
2184
2184
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
2185
2185
|
}
|
|
2186
2186
|
function Su({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
@@ -2190,7 +2190,7 @@ function Su({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
2190
2190
|
i = o = s = n;
|
|
2191
2191
|
else {
|
|
2192
2192
|
const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
|
|
2193
|
-
i =
|
|
2193
|
+
i = Pn(l, a, e + 1 / 3), o = Pn(l, a, e), s = Pn(l, a, e - 1 / 3);
|
|
2194
2194
|
}
|
|
2195
2195
|
return {
|
|
2196
2196
|
red: Math.round(i * 255),
|
|
@@ -2199,7 +2199,7 @@ function Su({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
2199
2199
|
alpha: r
|
|
2200
2200
|
};
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const An = (e, t, n) => {
|
|
2203
2203
|
const r = e * e;
|
|
2204
2204
|
return Math.sqrt(Math.max(0, n * (t * t - r) + r));
|
|
2205
2205
|
}, Eu = [zn, je, Ge], Tu = (e) => Eu.find((t) => t.test(e));
|
|
@@ -2208,19 +2208,19 @@ function oi(e) {
|
|
|
2208
2208
|
let n = t.parse(e);
|
|
2209
2209
|
return t === Ge && (n = Su(n)), n;
|
|
2210
2210
|
}
|
|
2211
|
-
const
|
|
2211
|
+
const Po = (e, t) => {
|
|
2212
2212
|
const n = oi(e), r = oi(t), i = { ...n };
|
|
2213
|
-
return (o) => (i.red =
|
|
2213
|
+
return (o) => (i.red = An(n.red, r.red, o), i.green = An(n.green, r.green, o), i.blue = An(n.blue, r.blue, o), i.alpha = D(n.alpha, r.alpha, o), je.transform(i));
|
|
2214
2214
|
};
|
|
2215
|
-
function
|
|
2215
|
+
function Pu(e) {
|
|
2216
2216
|
var t, n;
|
|
2217
2217
|
return isNaN(e) && bt(e) && (((t = e.match(ln)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Js)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2218
2218
|
}
|
|
2219
|
-
const
|
|
2219
|
+
const Ao = {
|
|
2220
2220
|
regex: yc,
|
|
2221
2221
|
countKey: "Vars",
|
|
2222
2222
|
token: "${v}",
|
|
2223
|
-
parse:
|
|
2223
|
+
parse: _
|
|
2224
2224
|
}, Co = {
|
|
2225
2225
|
regex: Js,
|
|
2226
2226
|
countKey: "Colors",
|
|
@@ -2245,7 +2245,7 @@ function $t(e) {
|
|
|
2245
2245
|
numColors: 0,
|
|
2246
2246
|
numNumbers: 0
|
|
2247
2247
|
};
|
|
2248
|
-
return n.value.includes("var(--") && Cn(n,
|
|
2248
|
+
return n.value.includes("var(--") && Cn(n, Ao), Cn(n, Co), Cn(n, Ro), n;
|
|
2249
2249
|
}
|
|
2250
2250
|
function Oo(e) {
|
|
2251
2251
|
return $t(e).values;
|
|
@@ -2255,23 +2255,23 @@ function Vo(e) {
|
|
|
2255
2255
|
return (s) => {
|
|
2256
2256
|
let a = i;
|
|
2257
2257
|
for (let l = 0; l < o; l++)
|
|
2258
|
-
l < r ? a = a.replace(
|
|
2258
|
+
l < r ? a = a.replace(Ao.token, s[l]) : l < r + n ? a = a.replace(Co.token, G.transform(s[l])) : a = a.replace(Ro.token, lt(s[l]));
|
|
2259
2259
|
return a;
|
|
2260
2260
|
};
|
|
2261
2261
|
}
|
|
2262
|
-
const
|
|
2262
|
+
const Au = (e) => typeof e == "number" ? 0 : e;
|
|
2263
2263
|
function Cu(e) {
|
|
2264
2264
|
const t = Oo(e);
|
|
2265
|
-
return Vo(e)(t.map(
|
|
2265
|
+
return Vo(e)(t.map(Au));
|
|
2266
2266
|
}
|
|
2267
2267
|
const Ce = {
|
|
2268
|
-
test:
|
|
2268
|
+
test: Pu,
|
|
2269
2269
|
parse: Oo,
|
|
2270
2270
|
createTransformer: Vo,
|
|
2271
2271
|
getAnimatableNone: Cu
|
|
2272
2272
|
}, ko = (e, t) => (n) => `${n > 0 ? t : e}`;
|
|
2273
2273
|
function Mo(e, t) {
|
|
2274
|
-
return typeof e == "number" ? (n) => D(e, t, n) : G.test(e) ?
|
|
2274
|
+
return typeof e == "number" ? (n) => D(e, t, n) : G.test(e) ? Po(e, t) : e.startsWith("var(") ? ko(e, t) : Do(e, t);
|
|
2275
2275
|
}
|
|
2276
2276
|
const Lo = (e, t) => {
|
|
2277
2277
|
const n = [...e], r = n.length, i = e.map((o, s) => Mo(o, t[s]));
|
|
@@ -2297,14 +2297,14 @@ const Lo = (e, t) => {
|
|
|
2297
2297
|
return r === 0 ? 1 : (n - e) / r;
|
|
2298
2298
|
}, ai = (e, t) => (n) => D(e, t, n);
|
|
2299
2299
|
function Ou(e) {
|
|
2300
|
-
return typeof e == "number" ? ai : typeof e == "string" ? G.test(e) ?
|
|
2300
|
+
return typeof e == "number" ? ai : typeof e == "string" ? G.test(e) ? Po : Do : Array.isArray(e) ? Lo : typeof e == "object" ? Ru : ai;
|
|
2301
2301
|
}
|
|
2302
2302
|
function Vu(e, t, n) {
|
|
2303
2303
|
const r = [], i = n || Ou(e[0]), o = e.length - 1;
|
|
2304
2304
|
for (let s = 0; s < o; s++) {
|
|
2305
2305
|
let a = i(e[s], e[s + 1]);
|
|
2306
2306
|
if (t) {
|
|
2307
|
-
const l = Array.isArray(t) ? t[s] ||
|
|
2307
|
+
const l = Array.isArray(t) ? t[s] || _ : t;
|
|
2308
2308
|
a = Te(l, a);
|
|
2309
2309
|
}
|
|
2310
2310
|
r.push(a);
|
|
@@ -2324,7 +2324,7 @@ function jo(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2324
2324
|
const u = gt(e[f], e[f + 1], c);
|
|
2325
2325
|
return s[f](u);
|
|
2326
2326
|
};
|
|
2327
|
-
return n ? (c) => l(
|
|
2327
|
+
return n ? (c) => l(Ae(e[0], e[o - 1], c)) : l;
|
|
2328
2328
|
}
|
|
2329
2329
|
function ku(e, t) {
|
|
2330
2330
|
const n = e[e.length - 1];
|
|
@@ -2371,9 +2371,9 @@ function Fo(e, t, n) {
|
|
|
2371
2371
|
const Rn = 1e-3, _u = 0.01, li = 10, Fu = 0.05, Nu = 1;
|
|
2372
2372
|
function Bu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
2373
2373
|
let i, o;
|
|
2374
|
-
ou(e <=
|
|
2374
|
+
ou(e <= Pe(li));
|
|
2375
2375
|
let s = 1 - t;
|
|
2376
|
-
s =
|
|
2376
|
+
s = Ae(Fu, Nu, s), e = Ae(_u, li, de(e)), s < 1 ? (i = (c) => {
|
|
2377
2377
|
const f = c * s, u = f * e, h = f - n, d = Hn(c, s), p = Math.exp(-u);
|
|
2378
2378
|
return Rn - h / d * p;
|
|
2379
2379
|
}, o = (c) => {
|
|
@@ -2387,7 +2387,7 @@ function Bu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
|
|
|
2387
2387
|
return f * u;
|
|
2388
2388
|
});
|
|
2389
2389
|
const a = 5 / e, l = Wu(i, o, a);
|
|
2390
|
-
if (e =
|
|
2390
|
+
if (e = Pe(e), isNaN(l))
|
|
2391
2391
|
return {
|
|
2392
2392
|
stiffness: 100,
|
|
2393
2393
|
damping: 10,
|
|
@@ -2466,8 +2466,8 @@ function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2466
2466
|
else {
|
|
2467
2467
|
let E = d;
|
|
2468
2468
|
y !== 0 && (p < 1 ? E = Fo(w, y, S) : E = 0);
|
|
2469
|
-
const T = Math.abs(E) <= n,
|
|
2470
|
-
s.done = T &&
|
|
2469
|
+
const T = Math.abs(E) <= n, P = Math.abs(o - S) <= t;
|
|
2470
|
+
s.done = T && P;
|
|
2471
2471
|
}
|
|
2472
2472
|
return s.value = s.done ? o : S, s;
|
|
2473
2473
|
}
|
|
@@ -2477,30 +2477,30 @@ function ui({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2477
2477
|
const u = e[0], h = {
|
|
2478
2478
|
done: !1,
|
|
2479
2479
|
value: u
|
|
2480
|
-
}, d = (
|
|
2480
|
+
}, d = (A) => a !== void 0 && A < a || l !== void 0 && A > l, p = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
|
|
2481
2481
|
let m = n * t;
|
|
2482
2482
|
const g = u + m, v = s === void 0 ? g : s(g);
|
|
2483
2483
|
v !== g && (m = v - u);
|
|
2484
|
-
const w = (
|
|
2485
|
-
const
|
|
2486
|
-
h.done = Math.abs(
|
|
2484
|
+
const w = (A) => -m * Math.exp(-A / r), y = (A) => v + w(A), S = (A) => {
|
|
2485
|
+
const R = w(A), B = y(A);
|
|
2486
|
+
h.done = Math.abs(R) <= c, h.value = h.done ? v : B;
|
|
2487
2487
|
};
|
|
2488
2488
|
let E, T;
|
|
2489
|
-
const
|
|
2490
|
-
d(h.value) && (E =
|
|
2489
|
+
const P = (A) => {
|
|
2490
|
+
d(h.value) && (E = A, T = No({
|
|
2491
2491
|
keyframes: [h.value, p(h.value)],
|
|
2492
|
-
velocity: Fo(y,
|
|
2492
|
+
velocity: Fo(y, A, h.value),
|
|
2493
2493
|
damping: i,
|
|
2494
2494
|
stiffness: o,
|
|
2495
2495
|
restDelta: c,
|
|
2496
2496
|
restSpeed: f
|
|
2497
2497
|
}));
|
|
2498
2498
|
};
|
|
2499
|
-
return
|
|
2499
|
+
return P(0), {
|
|
2500
2500
|
calculatedDuration: null,
|
|
2501
|
-
next: (
|
|
2502
|
-
let
|
|
2503
|
-
return !T && E === void 0 && (
|
|
2501
|
+
next: (A) => {
|
|
2502
|
+
let R = !1;
|
|
2503
|
+
return !T && E === void 0 && (R = !0, S(A), P(A)), E !== void 0 && A > E ? T.next(A - E) : (!R && S(A), h);
|
|
2504
2504
|
}
|
|
2505
2505
|
};
|
|
2506
2506
|
}
|
|
@@ -2513,7 +2513,7 @@ const $u = (e) => {
|
|
|
2513
2513
|
* If we're processing this frame we can use the
|
|
2514
2514
|
* framelocked timestamp to keep things in sync.
|
|
2515
2515
|
*/
|
|
2516
|
-
now: () =>
|
|
2516
|
+
now: () => $.isProcessing ? $.timestamp : performance.now()
|
|
2517
2517
|
};
|
|
2518
2518
|
}, fi = 2e4;
|
|
2519
2519
|
function hi(e) {
|
|
@@ -2552,42 +2552,42 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
|
|
|
2552
2552
|
keyframes: [...r].reverse(),
|
|
2553
2553
|
velocity: -(h.velocity || 0)
|
|
2554
2554
|
}));
|
|
2555
|
-
let
|
|
2555
|
+
let P = "idle", A = null, R = null, B = null;
|
|
2556
2556
|
E.calculatedDuration === null && o && (E.calculatedDuration = hi(E));
|
|
2557
|
-
const { calculatedDuration:
|
|
2558
|
-
let
|
|
2559
|
-
|
|
2560
|
-
let
|
|
2557
|
+
const { calculatedDuration: q } = E;
|
|
2558
|
+
let j = 1 / 0, I = 1 / 0;
|
|
2559
|
+
q !== null && (j = q + s, I = j * (o + 1) - s);
|
|
2560
|
+
let z = 0;
|
|
2561
2561
|
const re = (k) => {
|
|
2562
|
-
if (
|
|
2562
|
+
if (R === null)
|
|
2563
2563
|
return;
|
|
2564
|
-
d > 0 && (
|
|
2565
|
-
const Be =
|
|
2566
|
-
|
|
2567
|
-
let gn =
|
|
2564
|
+
d > 0 && (R = Math.min(R, k)), d < 0 && (R = Math.min(k - I / d, R)), A !== null ? z = A : z = Math.round(k - R) * d;
|
|
2565
|
+
const Be = z - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > I;
|
|
2566
|
+
z = Math.max(Be, 0), P === "finished" && A === null && (z = I);
|
|
2567
|
+
let gn = z, Oe = E;
|
|
2568
2568
|
if (o) {
|
|
2569
|
-
const tt = Math.min(
|
|
2569
|
+
const tt = Math.min(z, I) / j;
|
|
2570
2570
|
let Ve = Math.floor(tt), te = tt % 1;
|
|
2571
|
-
!te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s /
|
|
2571
|
+
!te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s / j)) : a === "mirror" && (Oe = T)), gn = Ae(0, 1, te) * j;
|
|
2572
2572
|
}
|
|
2573
2573
|
const ue = Ie ? { done: !1, value: r[0] } : Oe.next(gn);
|
|
2574
2574
|
S && (ue.value = S(ue.value));
|
|
2575
2575
|
let { done: We } = ue;
|
|
2576
|
-
!Ie &&
|
|
2577
|
-
const Ue =
|
|
2578
|
-
return u && u(ue.value), Ue &&
|
|
2579
|
-
},
|
|
2576
|
+
!Ie && q !== null && (We = d >= 0 ? z >= I : z <= 0);
|
|
2577
|
+
const Ue = A === null && (P === "finished" || P === "running" && We);
|
|
2578
|
+
return u && u(ue.value), Ue && H(), ue;
|
|
2579
|
+
}, W = () => {
|
|
2580
2580
|
w && w.stop(), w = void 0;
|
|
2581
2581
|
}, ie = () => {
|
|
2582
|
-
|
|
2583
|
-
},
|
|
2584
|
-
|
|
2582
|
+
P = "idle", W(), m(), v(), R = B = null;
|
|
2583
|
+
}, H = () => {
|
|
2584
|
+
P = "finished", f && f(), W(), m();
|
|
2585
2585
|
}, ge = () => {
|
|
2586
2586
|
if (p)
|
|
2587
2587
|
return;
|
|
2588
2588
|
w || (w = n(re));
|
|
2589
2589
|
const k = w.now();
|
|
2590
|
-
l && l(),
|
|
2590
|
+
l && l(), A !== null ? R = k - A : (!R || P === "finished") && (R = k), P === "finished" && v(), B = R, A = null, P = "running", w.start();
|
|
2591
2591
|
};
|
|
2592
2592
|
e && ge();
|
|
2593
2593
|
const Ne = {
|
|
@@ -2595,10 +2595,10 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
|
|
|
2595
2595
|
return g.then(k, Be);
|
|
2596
2596
|
},
|
|
2597
2597
|
get time() {
|
|
2598
|
-
return de(
|
|
2598
|
+
return de(z);
|
|
2599
2599
|
},
|
|
2600
2600
|
set time(k) {
|
|
2601
|
-
k =
|
|
2601
|
+
k = Pe(k), z = k, A !== null || !w || d === 0 ? A = k : R = w.now() - k / d;
|
|
2602
2602
|
},
|
|
2603
2603
|
get duration() {
|
|
2604
2604
|
const k = E.calculatedDuration === null ? hi(E) : E.calculatedDuration;
|
|
@@ -2608,25 +2608,25 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
|
|
|
2608
2608
|
return d;
|
|
2609
2609
|
},
|
|
2610
2610
|
set speed(k) {
|
|
2611
|
-
k === d || !w || (d = k, Ne.time = de(
|
|
2611
|
+
k === d || !w || (d = k, Ne.time = de(z));
|
|
2612
2612
|
},
|
|
2613
2613
|
get state() {
|
|
2614
|
-
return
|
|
2614
|
+
return P;
|
|
2615
2615
|
},
|
|
2616
2616
|
play: ge,
|
|
2617
2617
|
pause: () => {
|
|
2618
|
-
|
|
2618
|
+
P = "paused", A = z;
|
|
2619
2619
|
},
|
|
2620
2620
|
stop: () => {
|
|
2621
|
-
p = !0,
|
|
2621
|
+
p = !0, P !== "idle" && (P = "idle", c && c(), ie());
|
|
2622
2622
|
},
|
|
2623
2623
|
cancel: () => {
|
|
2624
|
-
|
|
2624
|
+
B !== null && re(B), ie();
|
|
2625
2625
|
},
|
|
2626
2626
|
complete: () => {
|
|
2627
|
-
|
|
2627
|
+
P = "finished";
|
|
2628
2628
|
},
|
|
2629
|
-
sample: (k) => (
|
|
2629
|
+
sample: (k) => (R = 0, re(k))
|
|
2630
2630
|
};
|
|
2631
2631
|
return Ne;
|
|
2632
2632
|
}
|
|
@@ -2690,13 +2690,13 @@ function Zu(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2690
2690
|
return l.then(y, S);
|
|
2691
2691
|
},
|
|
2692
2692
|
attachTimeline(y) {
|
|
2693
|
-
return m.timeline = y, m.onfinish = null,
|
|
2693
|
+
return m.timeline = y, m.onfinish = null, _;
|
|
2694
2694
|
},
|
|
2695
2695
|
get time() {
|
|
2696
2696
|
return de(m.currentTime || 0);
|
|
2697
2697
|
},
|
|
2698
2698
|
set time(y) {
|
|
2699
|
-
m.currentTime =
|
|
2699
|
+
m.currentTime = Pe(y);
|
|
2700
2700
|
},
|
|
2701
2701
|
get speed() {
|
|
2702
2702
|
return m.playbackRate;
|
|
@@ -2735,12 +2735,12 @@ function Qu({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
|
|
|
2735
2735
|
time: 0,
|
|
2736
2736
|
speed: 1,
|
|
2737
2737
|
duration: 0,
|
|
2738
|
-
play:
|
|
2739
|
-
pause:
|
|
2740
|
-
stop:
|
|
2738
|
+
play: _,
|
|
2739
|
+
pause: _,
|
|
2740
|
+
stop: _,
|
|
2741
2741
|
then: (o) => (o(), Promise.resolve()),
|
|
2742
|
-
cancel:
|
|
2743
|
-
complete:
|
|
2742
|
+
cancel: _,
|
|
2743
|
+
complete: _
|
|
2744
2744
|
});
|
|
2745
2745
|
return t ? Gt({
|
|
2746
2746
|
keyframes: [0, 1],
|
|
@@ -2838,10 +2838,10 @@ function Tr(e, t) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
const df = {
|
|
2840
2840
|
skipAnimations: !1
|
|
2841
|
-
},
|
|
2841
|
+
}, Pr = (e, t, n, r = {}) => (i) => {
|
|
2842
2842
|
const o = Tr(r, e) || {}, s = o.delay || r.delay || 0;
|
|
2843
2843
|
let { elapsed: a = 0 } = r;
|
|
2844
|
-
a = a -
|
|
2844
|
+
a = a - Pe(s);
|
|
2845
2845
|
const l = ff(t, e, n, o), c = l[0], f = l[l.length - 1], u = $n(e, c), h = $n(e, f);
|
|
2846
2846
|
let d = {
|
|
2847
2847
|
keyframes: l,
|
|
@@ -2859,7 +2859,7 @@ const df = {
|
|
|
2859
2859
|
if (hf(o) || (d = {
|
|
2860
2860
|
...d,
|
|
2861
2861
|
...sf(e, d)
|
|
2862
|
-
}), d.duration && (d.duration =
|
|
2862
|
+
}), d.duration && (d.duration = Pe(d.duration)), d.repeatDelay && (d.repeatDelay = Pe(d.repeatDelay)), !u || !h || au.current || o.type === !1 || df.skipAnimations)
|
|
2863
2863
|
return Qu(d);
|
|
2864
2864
|
if (
|
|
2865
2865
|
/**
|
|
@@ -2883,7 +2883,7 @@ function Xt(e) {
|
|
|
2883
2883
|
return !!(K(e) && e.add);
|
|
2884
2884
|
}
|
|
2885
2885
|
const Wo = (e) => /^\-?\d*\.?\d+$/.test(e);
|
|
2886
|
-
function
|
|
2886
|
+
function Ar(e, t) {
|
|
2887
2887
|
e.indexOf(t) === -1 && e.push(t);
|
|
2888
2888
|
}
|
|
2889
2889
|
function Cr(e, t) {
|
|
@@ -2895,7 +2895,7 @@ class Rr {
|
|
|
2895
2895
|
this.subscriptions = [];
|
|
2896
2896
|
}
|
|
2897
2897
|
add(t) {
|
|
2898
|
-
return
|
|
2898
|
+
return Ar(this.subscriptions, t), () => Cr(this.subscriptions, t);
|
|
2899
2899
|
}
|
|
2900
2900
|
notify(t, n, r) {
|
|
2901
2901
|
const i = this.subscriptions.length;
|
|
@@ -2928,7 +2928,7 @@ class mf {
|
|
|
2928
2928
|
constructor(t, n = {}) {
|
|
2929
2929
|
this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
|
2930
2930
|
this.prev = this.current, this.current = r;
|
|
2931
|
-
const { delta: o, timestamp: s } =
|
|
2931
|
+
const { delta: o, timestamp: s } = $;
|
|
2932
2932
|
this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, M.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
2933
2933
|
}, this.scheduleVelocityCheck = () => M.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
|
|
2934
2934
|
r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
@@ -3155,7 +3155,7 @@ function Tf({ protectedKeys: e, needsAnimating: t }, n) {
|
|
|
3155
3155
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
3156
3156
|
return t[n] = !1, r;
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function Pf(e, t) {
|
|
3159
3159
|
const n = e.get();
|
|
3160
3160
|
if (Array.isArray(t)) {
|
|
3161
3161
|
for (let r = 0; r < t.length; r++)
|
|
@@ -3185,10 +3185,10 @@ function Ho(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3185
3185
|
w !== null && (p.elapsed = w, p.isHandoff = !0);
|
|
3186
3186
|
}
|
|
3187
3187
|
}
|
|
3188
|
-
let m = !p.isHandoff && !
|
|
3188
|
+
let m = !p.isHandoff && !Pf(h, d);
|
|
3189
3189
|
if (p.type === "spring" && (h.getVelocity() || p.velocity) && (m = !1), h.animation && (m = !1), m)
|
|
3190
3190
|
continue;
|
|
3191
|
-
h.start(
|
|
3191
|
+
h.start(Pr(u, h, d, e.shouldReduceMotion && _e.has(u) ? { type: !1 } : p));
|
|
3192
3192
|
const g = h.animation;
|
|
3193
3193
|
Xt(l) && (l.add(u), g.then(() => l.remove(u))), c.push(g);
|
|
3194
3194
|
}
|
|
@@ -3202,7 +3202,7 @@ function Gn(e, t, n = {}) {
|
|
|
3202
3202
|
n.transitionOverride && (i = n.transitionOverride);
|
|
3203
3203
|
const o = r ? () => Promise.all(Ho(e, r, n)) : () => Promise.resolve(), s = e.variantChildren && e.variantChildren.size ? (l = 0) => {
|
|
3204
3204
|
const { delayChildren: c = 0, staggerChildren: f, staggerDirection: u } = i;
|
|
3205
|
-
return
|
|
3205
|
+
return Af(e, t, c + l, f, u, n);
|
|
3206
3206
|
} : () => Promise.resolve(), { when: a } = i;
|
|
3207
3207
|
if (a) {
|
|
3208
3208
|
const [l, c] = a === "beforeChildren" ? [o, s] : [s, o];
|
|
@@ -3210,7 +3210,7 @@ function Gn(e, t, n = {}) {
|
|
|
3210
3210
|
} else
|
|
3211
3211
|
return Promise.all([o(), s(n.delay)]);
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function Af(e, t, n = 0, r = 0, i = 1, o) {
|
|
3214
3214
|
const s = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
|
3215
3215
|
return Array.from(e.variantChildren).sort(Cf).forEach((c, f) => {
|
|
3216
3216
|
c.notify("AnimationStart", t), s.push(Gn(c, t, {
|
|
@@ -3261,33 +3261,33 @@ function Mf(e) {
|
|
|
3261
3261
|
for (let v = 0; v < Vf; v++) {
|
|
3262
3262
|
const w = Of[v], y = n[w], S = f[w] !== void 0 ? f[w] : u[w], E = pt(S), T = w === c ? y.isActive : null;
|
|
3263
3263
|
T === !1 && (m = v);
|
|
3264
|
-
let
|
|
3265
|
-
if (
|
|
3264
|
+
let P = S === u[w] && S !== f[w] && E;
|
|
3265
|
+
if (P && r && e.manuallyAnimateOnMount && (P = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
3266
3266
|
!y.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
|
|
3267
3267
|
!S && !y.prevProp || // Or if the prop doesn't define an animation
|
|
3268
3268
|
on(S) || typeof S == "boolean")
|
|
3269
3269
|
continue;
|
|
3270
|
-
let
|
|
3271
|
-
w === c && y.isActive && !
|
|
3272
|
-
v > m && E,
|
|
3273
|
-
const
|
|
3274
|
-
let
|
|
3275
|
-
T === !1 && (
|
|
3276
|
-
const { prevResolvedValues:
|
|
3277
|
-
|
|
3278
|
-
...
|
|
3279
|
-
}, re = (
|
|
3280
|
-
|
|
3270
|
+
let R = Lf(y.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
3271
|
+
w === c && y.isActive && !P && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
3272
|
+
v > m && E, B = !1;
|
|
3273
|
+
const q = Array.isArray(S) ? S : [S];
|
|
3274
|
+
let j = q.reduce(i, {});
|
|
3275
|
+
T === !1 && (j = {});
|
|
3276
|
+
const { prevResolvedValues: I = {} } = y, z = {
|
|
3277
|
+
...I,
|
|
3278
|
+
...j
|
|
3279
|
+
}, re = (W) => {
|
|
3280
|
+
R = !0, d.has(W) && (B = !0, d.delete(W)), y.needsAnimating[W] = !0;
|
|
3281
3281
|
};
|
|
3282
|
-
for (const
|
|
3283
|
-
const ie =
|
|
3284
|
-
if (p.hasOwnProperty(
|
|
3282
|
+
for (const W in z) {
|
|
3283
|
+
const ie = j[W], H = I[W];
|
|
3284
|
+
if (p.hasOwnProperty(W))
|
|
3285
3285
|
continue;
|
|
3286
3286
|
let ge = !1;
|
|
3287
|
-
Ht(ie) && Ht(
|
|
3287
|
+
Ht(ie) && Ht(H) ? ge = !ho(ie, H) : ge = ie !== H, ge ? ie !== void 0 ? re(W) : d.add(W) : ie !== void 0 && d.has(W) ? re(W) : y.protectedKeys[W] = !0;
|
|
3288
3288
|
}
|
|
3289
|
-
y.prevProp = S, y.prevResolvedValues =
|
|
3290
|
-
animation:
|
|
3289
|
+
y.prevProp = S, y.prevResolvedValues = j, y.isActive && (p = { ...p, ...j }), r && e.blockInitialAnimation && (R = !1), R && (!P || B) && h.push(...q.map((W) => ({
|
|
3290
|
+
animation: W,
|
|
3291
3291
|
options: { type: w, ...l }
|
|
3292
3292
|
})));
|
|
3293
3293
|
}
|
|
@@ -3410,7 +3410,7 @@ class $o {
|
|
|
3410
3410
|
const u = Vn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Bf(u.offset, { x: 0, y: 0 }) >= 3;
|
|
3411
3411
|
if (!h && !d)
|
|
3412
3412
|
return;
|
|
3413
|
-
const { point: p } = u, { timestamp: m } =
|
|
3413
|
+
const { point: p } = u, { timestamp: m } = $;
|
|
3414
3414
|
this.history.push({ ...p, timestamp: m });
|
|
3415
3415
|
const { onStart: g, onMove: v } = this.handlers;
|
|
3416
3416
|
h || (g && g(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), v && v(this.lastMoveEvent, u);
|
|
@@ -3426,7 +3426,7 @@ class $o {
|
|
|
3426
3426
|
}, !ao(t))
|
|
3427
3427
|
return;
|
|
3428
3428
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
3429
|
-
const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: c } =
|
|
3429
|
+
const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = $;
|
|
3430
3430
|
this.history = [{ ...l, timestamp: c }];
|
|
3431
3431
|
const { onSessionStart: f } = n;
|
|
3432
3432
|
f && f(t, Vn(a, this.history)), this.removeListeners = Te(he(this.contextWindow, "pointermove", this.handlePointerMove), he(this.contextWindow, "pointerup", this.handlePointerUp), he(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -3463,7 +3463,7 @@ function Wf(e, t) {
|
|
|
3463
3463
|
return { x: 0, y: 0 };
|
|
3464
3464
|
let n = e.length - 1, r = null;
|
|
3465
3465
|
const i = qo(e);
|
|
3466
|
-
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp >
|
|
3466
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > Pe(t))); )
|
|
3467
3467
|
n--;
|
|
3468
3468
|
if (!r)
|
|
3469
3469
|
return { x: 0, y: 0 };
|
|
@@ -3528,7 +3528,7 @@ function $f(e, t) {
|
|
|
3528
3528
|
function qf(e, t) {
|
|
3529
3529
|
let n = 0.5;
|
|
3530
3530
|
const r = J(e), i = J(t);
|
|
3531
|
-
return i > r ? n = gt(t.min, t.max - r, e.min) : r > i && (n = gt(e.min, e.max - i, t.min)),
|
|
3531
|
+
return i > r ? n = gt(t.min, t.max - r, e.min) : r > i && (n = gt(e.min, e.max - i, t.min)), Ae(0, 1, n);
|
|
3532
3532
|
}
|
|
3533
3533
|
function Gf(e, t) {
|
|
3534
3534
|
const n = {};
|
|
@@ -3604,11 +3604,11 @@ function Kt(e, t, n) {
|
|
|
3604
3604
|
const r = e - n, i = t * r;
|
|
3605
3605
|
return n + i;
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function Pi(e, t, n, r, i) {
|
|
3608
3608
|
return i !== void 0 && (e = Kt(e, i, r)), Kt(e, n, r) + t;
|
|
3609
3609
|
}
|
|
3610
3610
|
function Jn(e, t = 0, n = 1, r, i) {
|
|
3611
|
-
e.min =
|
|
3611
|
+
e.min = Pi(e.min, t, n, r, i), e.max = Pi(e.max, t, n, r, i);
|
|
3612
3612
|
}
|
|
3613
3613
|
function Ko(e, { x: t, y: n }) {
|
|
3614
3614
|
Jn(e.x, t.translate, t.scale, t.originPoint), Jn(e.y, n.translate, n.scale, n.originPoint);
|
|
@@ -3627,9 +3627,9 @@ function Jf(e, t, n, r = !1) {
|
|
|
3627
3627
|
y: -o.scroll.offset.y
|
|
3628
3628
|
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, Ko(e, s)), r && Me(o.latestValues) && Ke(e, o.latestValues));
|
|
3629
3629
|
}
|
|
3630
|
-
t.x =
|
|
3630
|
+
t.x = Ai(t.x), t.y = Ai(t.y);
|
|
3631
3631
|
}
|
|
3632
|
-
function
|
|
3632
|
+
function Ai(e) {
|
|
3633
3633
|
return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1;
|
|
3634
3634
|
}
|
|
3635
3635
|
function Se(e, t) {
|
|
@@ -3774,7 +3774,7 @@ class nh {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
startAxisValueAnimation(t, n) {
|
|
3776
3776
|
const r = this.getAxisMotionValue(t);
|
|
3777
|
-
return r.start(
|
|
3777
|
+
return r.start(Pr(t, r, 0, n));
|
|
3778
3778
|
}
|
|
3779
3779
|
stopAnimation() {
|
|
3780
3780
|
Q((t) => this.getAxisMotionValue(t).stop());
|
|
@@ -3883,11 +3883,11 @@ function rh(e, t = 10) {
|
|
|
3883
3883
|
}
|
|
3884
3884
|
class ih extends Re {
|
|
3885
3885
|
constructor(t) {
|
|
3886
|
-
super(t), this.removeGroupControls =
|
|
3886
|
+
super(t), this.removeGroupControls = _, this.removeListeners = _, this.controls = new nh(t);
|
|
3887
3887
|
}
|
|
3888
3888
|
mount() {
|
|
3889
3889
|
const { dragControls: t } = this.node.getProps();
|
|
3890
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
3890
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || _;
|
|
3891
3891
|
}
|
|
3892
3892
|
unmount() {
|
|
3893
3893
|
this.removeGroupControls(), this.removeListeners();
|
|
@@ -3898,7 +3898,7 @@ const Ri = (e) => (t, n) => {
|
|
|
3898
3898
|
};
|
|
3899
3899
|
class sh extends Re {
|
|
3900
3900
|
constructor() {
|
|
3901
|
-
super(...arguments), this.removePointerDownListener =
|
|
3901
|
+
super(...arguments), this.removePointerDownListener = _;
|
|
3902
3902
|
}
|
|
3903
3903
|
onPointerDown(t) {
|
|
3904
3904
|
this.session = new $o(t, this.createPanHandlers(), {
|
|
@@ -4051,7 +4051,7 @@ function fh(e, t, n, r, i, o) {
|
|
|
4051
4051
|
function Mi(e, t) {
|
|
4052
4052
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
4053
4053
|
}
|
|
4054
|
-
const hh = ea(0, 0.5, So), dh = ea(0.5, 0.95,
|
|
4054
|
+
const hh = ea(0, 0.5, So), dh = ea(0.5, 0.95, _);
|
|
4055
4055
|
function ea(e, t, n) {
|
|
4056
4056
|
return (r) => r < e ? 0 : r > t ? 1 : n(gt(e, t, r));
|
|
4057
4057
|
}
|
|
@@ -4097,7 +4097,7 @@ class vh {
|
|
|
4097
4097
|
this.members = [];
|
|
4098
4098
|
}
|
|
4099
4099
|
add(t) {
|
|
4100
|
-
|
|
4100
|
+
Ar(this.members, t), t.scheduleRender();
|
|
4101
4101
|
}
|
|
4102
4102
|
remove(t) {
|
|
4103
4103
|
if (Cr(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
|
|
@@ -4162,7 +4162,7 @@ class xh {
|
|
|
4162
4162
|
this.children = [], this.isDirty = !1;
|
|
4163
4163
|
}
|
|
4164
4164
|
add(t) {
|
|
4165
|
-
|
|
4165
|
+
Ar(this.children, t), this.isDirty = !0;
|
|
4166
4166
|
}
|
|
4167
4167
|
remove(t) {
|
|
4168
4168
|
Cr(this.children, t), this.isDirty = !0;
|
|
@@ -4186,10 +4186,10 @@ function Eh(e) {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
function Th(e, t, n) {
|
|
4188
4188
|
const r = K(e) ? e : Ye(e);
|
|
4189
|
-
return r.start(
|
|
4189
|
+
return r.start(Pr("", r, t, n)), r.animation;
|
|
4190
4190
|
}
|
|
4191
|
-
const Ii = ["", "X", "Y", "Z"],
|
|
4192
|
-
let
|
|
4191
|
+
const Ii = ["", "X", "Y", "Z"], Ph = { visibility: "hidden" }, Wi = 1e3;
|
|
4192
|
+
let Ah = 0;
|
|
4193
4193
|
const Le = {
|
|
4194
4194
|
type: "projectionFrame",
|
|
4195
4195
|
totalNodes: 0,
|
|
@@ -4199,7 +4199,7 @@ const Le = {
|
|
|
4199
4199
|
function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
4200
4200
|
return class {
|
|
4201
4201
|
constructor(s = {}, a = t == null ? void 0 : t()) {
|
|
4202
|
-
this.id =
|
|
4202
|
+
this.id = Ah++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4203
4203
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4204
4204
|
}, this.updateProjection = () => {
|
|
4205
4205
|
this.projectionUpdateScheduled = !1, Le.totalNodes = Le.resolvedTargetDeltas = Le.recalculatedProjection = 0, this.nodes.forEach(Oh), this.nodes.forEach(Dh), this.nodes.forEach(jh), this.nodes.forEach(Vh), Sh(Le);
|
|
@@ -4303,7 +4303,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4303
4303
|
}
|
|
4304
4304
|
this.isUpdating || this.nodes.forEach(Mh), this.isUpdating = !1, this.nodes.forEach(Lh), this.nodes.forEach(Ch), this.nodes.forEach(Rh), this.clearAllSnapshots();
|
|
4305
4305
|
const a = performance.now();
|
|
4306
|
-
|
|
4306
|
+
$.delta = Ae(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, wn.update.process($), wn.preRender.process($), wn.render.process($), $.isProcessing = !1;
|
|
4307
4307
|
}
|
|
4308
4308
|
didUpdate() {
|
|
4309
4309
|
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
|
|
@@ -4424,7 +4424,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4424
4424
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4425
4425
|
}
|
|
4426
4426
|
forceRelativeParentToResolveTarget() {
|
|
4427
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
4427
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
4428
4428
|
}
|
|
4429
4429
|
resolveTargetDelta(s = !1) {
|
|
4430
4430
|
var a;
|
|
@@ -4435,7 +4435,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4435
4435
|
return;
|
|
4436
4436
|
const { layout: u, layoutId: h } = this.options;
|
|
4437
4437
|
if (!(!this.layout || !(u || h))) {
|
|
4438
|
-
if (this.resolvedRelativeTargetAt =
|
|
4438
|
+
if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4439
4439
|
const d = this.getClosestProjectingParent();
|
|
4440
4440
|
d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = F(), this.relativeTargetOrigin = F(), ut(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4441
4441
|
}
|
|
@@ -4460,7 +4460,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4460
4460
|
var s;
|
|
4461
4461
|
const a = this.getLead(), l = !!this.resumingFrom || this !== a;
|
|
4462
4462
|
let c = !0;
|
|
4463
|
-
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt ===
|
|
4463
|
+
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === $.timestamp && (c = !1), c)
|
|
4464
4464
|
return;
|
|
4465
4465
|
const { layout: f, layoutId: u } = this.options;
|
|
4466
4466
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || u))
|
|
@@ -4594,7 +4594,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4594
4594
|
if (!this.instance || this.isSVG)
|
|
4595
4595
|
return;
|
|
4596
4596
|
if (!this.isVisible)
|
|
4597
|
-
return
|
|
4597
|
+
return Ph;
|
|
4598
4598
|
const c = {
|
|
4599
4599
|
visibility: ""
|
|
4600
4600
|
}, f = this.getTransformTemplate();
|
|
@@ -4730,7 +4730,7 @@ function Bh(e) {
|
|
|
4730
4730
|
const Ih = {
|
|
4731
4731
|
duration: 0.45,
|
|
4732
4732
|
ease: [0.4, 0, 0.1, 1]
|
|
4733
|
-
}, qi = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), Gi = qi("applewebkit/") && !qi("chrome/") ? Math.round :
|
|
4733
|
+
}, qi = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), Gi = qi("applewebkit/") && !qi("chrome/") ? Math.round : _;
|
|
4734
4734
|
function Xi(e) {
|
|
4735
4735
|
e.min = Gi(e.min), e.max = Gi(e.max);
|
|
4736
4736
|
}
|
|
@@ -5271,53 +5271,7 @@ const ud = (e, t) => hr(e) ? new cd(t, { enableHardwareAcceleration: !1 }) : new
|
|
|
5271
5271
|
...zh,
|
|
5272
5272
|
...fd
|
|
5273
5273
|
}, ua = /* @__PURE__ */ fc((e, t) => Hc(e, t, hd, ud));
|
|
5274
|
-
function dd(e) {
|
|
5275
|
-
const { children: t, parentRef: n, onlyChild: r } = e, [i, o] = x.useState({ top: 0, left: 0 });
|
|
5276
|
-
return x.useLayoutEffect(() => {
|
|
5277
|
-
if (n.current) {
|
|
5278
|
-
const s = n.current.getBoundingClientRect();
|
|
5279
|
-
o({
|
|
5280
|
-
top: s.top,
|
|
5281
|
-
left: s.left + s.width
|
|
5282
|
-
});
|
|
5283
|
-
}
|
|
5284
|
-
}, [n]), r ? t : Ua.createPortal(
|
|
5285
|
-
/* @__PURE__ */ R.jsx(
|
|
5286
|
-
ua.div,
|
|
5287
|
-
{
|
|
5288
|
-
style: {
|
|
5289
|
-
position: "fixed",
|
|
5290
|
-
top: i.top,
|
|
5291
|
-
left: i.left,
|
|
5292
|
-
zIndex: 1200
|
|
5293
|
-
},
|
|
5294
|
-
children: t
|
|
5295
|
-
}
|
|
5296
|
-
),
|
|
5297
|
-
n.current
|
|
5298
|
-
);
|
|
5299
|
-
}
|
|
5300
|
-
function pd(e) {
|
|
5301
|
-
return /* @__PURE__ */ R.jsx(
|
|
5302
|
-
"svg",
|
|
5303
|
-
{
|
|
5304
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5305
|
-
width: "16",
|
|
5306
|
-
height: "16",
|
|
5307
|
-
fill: "currentColor",
|
|
5308
|
-
viewBox: "0 0 16 16",
|
|
5309
|
-
...e,
|
|
5310
|
-
children: /* @__PURE__ */ R.jsx(
|
|
5311
|
-
"path",
|
|
5312
|
-
{
|
|
5313
|
-
fill: "currenColor",
|
|
5314
|
-
d: "M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"
|
|
5315
|
-
}
|
|
5316
|
-
)
|
|
5317
|
-
}
|
|
5318
|
-
);
|
|
5319
|
-
}
|
|
5320
|
-
function md(e, t) {
|
|
5274
|
+
function dd(e, t) {
|
|
5321
5275
|
if (e == null)
|
|
5322
5276
|
return {};
|
|
5323
5277
|
var n = {}, r = Object.keys(e), i, o;
|
|
@@ -5340,7 +5294,7 @@ function er(e, t) {
|
|
|
5340
5294
|
return r.__proto__ = i, r;
|
|
5341
5295
|
}, er(e, t);
|
|
5342
5296
|
}
|
|
5343
|
-
function
|
|
5297
|
+
function pd(e, t) {
|
|
5344
5298
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, er(e, t);
|
|
5345
5299
|
}
|
|
5346
5300
|
function Ln(e, t, n) {
|
|
@@ -5354,36 +5308,36 @@ function Ln(e, t, n) {
|
|
|
5354
5308
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5355
5309
|
* MIT Licensed
|
|
5356
5310
|
*/
|
|
5357
|
-
var es = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,
|
|
5358
|
-
function
|
|
5311
|
+
var es = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, md = /\\([\u000b\u0020-\u00ff])/g, gd = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, yd = vd;
|
|
5312
|
+
function vd(e) {
|
|
5359
5313
|
if (!e)
|
|
5360
5314
|
throw new TypeError("argument string is required");
|
|
5361
|
-
var t = typeof e == "object" ?
|
|
5315
|
+
var t = typeof e == "object" ? bd(e) : e;
|
|
5362
5316
|
if (typeof t != "string")
|
|
5363
5317
|
throw new TypeError("argument string is required to be a string");
|
|
5364
5318
|
var n = t.indexOf(";"), r = n !== -1 ? t.slice(0, n).trim() : t.trim();
|
|
5365
|
-
if (!
|
|
5319
|
+
if (!gd.test(r))
|
|
5366
5320
|
throw new TypeError("invalid media type");
|
|
5367
|
-
var i = new
|
|
5321
|
+
var i = new xd(r.toLowerCase());
|
|
5368
5322
|
if (n !== -1) {
|
|
5369
5323
|
var o, s, a;
|
|
5370
5324
|
for (es.lastIndex = n; s = es.exec(t); ) {
|
|
5371
5325
|
if (s.index !== n)
|
|
5372
5326
|
throw new TypeError("invalid parameter format");
|
|
5373
|
-
n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(
|
|
5327
|
+
n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(md, "$1"))), i.parameters[o] = a;
|
|
5374
5328
|
}
|
|
5375
5329
|
if (n !== t.length)
|
|
5376
5330
|
throw new TypeError("invalid parameter format");
|
|
5377
5331
|
}
|
|
5378
5332
|
return i;
|
|
5379
5333
|
}
|
|
5380
|
-
function
|
|
5334
|
+
function bd(e) {
|
|
5381
5335
|
var t;
|
|
5382
5336
|
if (typeof e.getHeader == "function" ? t = e.getHeader("content-type") : typeof e.headers == "object" && (t = e.headers && e.headers["content-type"]), typeof t != "string")
|
|
5383
5337
|
throw new TypeError("content-type header is missing from object");
|
|
5384
5338
|
return t;
|
|
5385
5339
|
}
|
|
5386
|
-
function
|
|
5340
|
+
function xd(e) {
|
|
5387
5341
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = e;
|
|
5388
5342
|
}
|
|
5389
5343
|
var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
@@ -5398,7 +5352,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5398
5352
|
var o = i.getResponseHeader("Content-Type");
|
|
5399
5353
|
if (!o)
|
|
5400
5354
|
throw new Error("Content type not found");
|
|
5401
|
-
var s =
|
|
5355
|
+
var s = yd(o).type;
|
|
5402
5356
|
if (!(s === "image/svg+xml" || s === "text/plain"))
|
|
5403
5357
|
throw new Error("Invalid content type: ".concat(s));
|
|
5404
5358
|
}
|
|
@@ -5419,7 +5373,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5419
5373
|
}, i.open("GET", t), i.withCredentials = n, i.overrideMimeType && i.overrideMimeType("text/xml"), i.send();
|
|
5420
5374
|
}, Ee = {}, ns = function(t, n) {
|
|
5421
5375
|
Ee[t] = Ee[t] || [], Ee[t].push(n);
|
|
5422
|
-
},
|
|
5376
|
+
}, wd = function(t) {
|
|
5423
5377
|
for (var n = function(s, a) {
|
|
5424
5378
|
setTimeout(function() {
|
|
5425
5379
|
if (Array.isArray(Ee[t])) {
|
|
@@ -5429,7 +5383,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5429
5383
|
}, 0);
|
|
5430
5384
|
}, r = 0, i = Ee[t].length; r < i; r++)
|
|
5431
5385
|
n(r);
|
|
5432
|
-
},
|
|
5386
|
+
}, Sd = function(t, n, r) {
|
|
5433
5387
|
if (He.has(t)) {
|
|
5434
5388
|
var i = He.get(t);
|
|
5435
5389
|
if (i === void 0) {
|
|
@@ -5443,16 +5397,16 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5443
5397
|
}
|
|
5444
5398
|
He.set(t, void 0), ns(t, r), ha(t, n, function(o, s) {
|
|
5445
5399
|
var a;
|
|
5446
|
-
o ? He.set(t, o) : ((a = s.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && He.set(t, s.responseXML.documentElement),
|
|
5400
|
+
o ? He.set(t, o) : ((a = s.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && He.set(t, s.responseXML.documentElement), wd(t);
|
|
5447
5401
|
});
|
|
5448
|
-
},
|
|
5402
|
+
}, Ed = function(t, n, r) {
|
|
5449
5403
|
ha(t, n, function(i, o) {
|
|
5450
5404
|
var s;
|
|
5451
5405
|
i ? r(i) : ((s = o.responseXML) === null || s === void 0 ? void 0 : s.documentElement) instanceof SVGSVGElement && r(null, o.responseXML.documentElement);
|
|
5452
5406
|
});
|
|
5453
|
-
},
|
|
5454
|
-
return ++
|
|
5455
|
-
}, se = [], rs = {},
|
|
5407
|
+
}, Td = 0, Pd = function() {
|
|
5408
|
+
return ++Td;
|
|
5409
|
+
}, se = [], rs = {}, Ad = "http://www.w3.org/2000/svg", Dn = "http://www.w3.org/1999/xlink", is = function(t, n, r, i, o, s, a) {
|
|
5456
5410
|
var l = t.getAttribute("data-src") || t.getAttribute("src");
|
|
5457
5411
|
if (!l) {
|
|
5458
5412
|
a(new Error("Invalid data-src or src attribute"));
|
|
@@ -5463,7 +5417,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5463
5417
|
return;
|
|
5464
5418
|
}
|
|
5465
5419
|
se.push(t), t.setAttribute("src", "");
|
|
5466
|
-
var c = i ?
|
|
5420
|
+
var c = i ? Sd : Ed;
|
|
5467
5421
|
c(l, o, function(f, u) {
|
|
5468
5422
|
if (!u) {
|
|
5469
5423
|
se.splice(se.indexOf(t), 1), t = null, a(f);
|
|
@@ -5481,11 +5435,11 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5481
5435
|
u.setAttribute("class", g);
|
|
5482
5436
|
var v = t.getAttribute("style");
|
|
5483
5437
|
v && u.setAttribute("style", v), u.setAttribute("data-src", l);
|
|
5484
|
-
var w = [].filter.call(t.attributes, function(
|
|
5485
|
-
return /^data-\w[\w-]*$/.test(
|
|
5438
|
+
var w = [].filter.call(t.attributes, function(H) {
|
|
5439
|
+
return /^data-\w[\w-]*$/.test(H.name);
|
|
5486
5440
|
});
|
|
5487
|
-
if (Array.prototype.forEach.call(w, function(
|
|
5488
|
-
|
|
5441
|
+
if (Array.prototype.forEach.call(w, function(H) {
|
|
5442
|
+
H.name && H.value && u.setAttribute(H.name, H.value);
|
|
5489
5443
|
}), r) {
|
|
5490
5444
|
var y = {
|
|
5491
5445
|
clipPath: ["clip-path"],
|
|
@@ -5498,17 +5452,17 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5498
5452
|
path: [],
|
|
5499
5453
|
pattern: ["fill", "stroke"],
|
|
5500
5454
|
radialGradient: ["fill", "stroke"]
|
|
5501
|
-
}, S, E, T,
|
|
5502
|
-
Object.keys(y).forEach(function(
|
|
5503
|
-
S =
|
|
5455
|
+
}, S, E, T, P, A;
|
|
5456
|
+
Object.keys(y).forEach(function(H) {
|
|
5457
|
+
S = H, T = y[H], E = u.querySelectorAll(S + "[id]");
|
|
5504
5458
|
for (var ge = function(Ie, gn) {
|
|
5505
|
-
|
|
5459
|
+
P = E[Ie].id, A = P + "-" + Pd();
|
|
5506
5460
|
var Oe;
|
|
5507
5461
|
Array.prototype.forEach.call(T, function(yn) {
|
|
5508
|
-
Oe = u.querySelectorAll("[" + yn + '*="' +
|
|
5462
|
+
Oe = u.querySelectorAll("[" + yn + '*="' + P + '"]');
|
|
5509
5463
|
for (var Tt = 0, Ba = Oe.length; Tt < Ba; Tt++) {
|
|
5510
5464
|
var Nr = Oe[Tt].getAttribute(yn);
|
|
5511
|
-
Nr && !Nr.match(new RegExp('url\\("?#' +
|
|
5465
|
+
Nr && !Nr.match(new RegExp('url\\("?#' + P + '"?\\)')) || Oe[Tt].setAttribute(yn, "url(#" + A + ")");
|
|
5512
5466
|
}
|
|
5513
5467
|
});
|
|
5514
5468
|
for (var ue = u.querySelectorAll("[*|href]"), We = [], Ue = 0, tt = ue.length; Ue < tt; Ue++) {
|
|
@@ -5516,30 +5470,30 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5516
5470
|
Ve && Ve.toString() === "#" + E[Ie].id && We.push(ue[Ue]);
|
|
5517
5471
|
}
|
|
5518
5472
|
for (var te = 0, Fr = We.length; te < Fr; te++)
|
|
5519
|
-
We[te].setAttributeNS(Dn, "href", "#" +
|
|
5520
|
-
E[Ie].id =
|
|
5473
|
+
We[te].setAttributeNS(Dn, "href", "#" + A);
|
|
5474
|
+
E[Ie].id = A;
|
|
5521
5475
|
}, Ne = 0, k = E.length; Ne < k; Ne++)
|
|
5522
5476
|
ge(Ne);
|
|
5523
5477
|
});
|
|
5524
5478
|
}
|
|
5525
5479
|
u.removeAttribute("xmlns:a");
|
|
5526
|
-
for (var
|
|
5527
|
-
|
|
5528
|
-
if (
|
|
5529
|
-
for (var re = 0,
|
|
5530
|
-
new Function(
|
|
5480
|
+
for (var R = u.querySelectorAll("script"), B = [], q, j, I = 0, z = R.length; I < z; I++)
|
|
5481
|
+
j = R[I].getAttribute("type"), (!j || j === "application/ecmascript" || j === "application/javascript" || j === "text/javascript") && (q = R[I].innerText || R[I].textContent, q && B.push(q), u.removeChild(R[I]));
|
|
5482
|
+
if (B.length > 0 && (n === "always" || n === "once" && !rs[l])) {
|
|
5483
|
+
for (var re = 0, W = B.length; re < W; re++)
|
|
5484
|
+
new Function(B[re])(window);
|
|
5531
5485
|
rs[l] = !0;
|
|
5532
5486
|
}
|
|
5533
5487
|
var ie = u.querySelectorAll("style");
|
|
5534
|
-
if (Array.prototype.forEach.call(ie, function(
|
|
5535
|
-
|
|
5536
|
-
}), u.setAttribute("xmlns",
|
|
5488
|
+
if (Array.prototype.forEach.call(ie, function(H) {
|
|
5489
|
+
H.textContent += "";
|
|
5490
|
+
}), u.setAttribute("xmlns", Ad), u.setAttribute("xmlns:xlink", Dn), s(u), !t.parentNode) {
|
|
5537
5491
|
se.splice(se.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
5538
5492
|
return;
|
|
5539
5493
|
}
|
|
5540
5494
|
t.parentNode.replaceChild(u, t), se.splice(se.indexOf(t), 1), t = null, a(null, u);
|
|
5541
5495
|
});
|
|
5542
|
-
},
|
|
5496
|
+
}, Cd = function(t, n) {
|
|
5543
5497
|
var r = n === void 0 ? {} : n, i = r.afterAll, o = i === void 0 ? function() {
|
|
5544
5498
|
} : i, s = r.afterEach, a = s === void 0 ? function() {
|
|
5545
5499
|
} : s, l = r.beforeEach, c = l === void 0 ? function() {
|
|
@@ -5553,10 +5507,10 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5553
5507
|
t ? is(t, d, v, u, m, c, function(E, T) {
|
|
5554
5508
|
a(E, T), o(1), t = null;
|
|
5555
5509
|
}) : o(0);
|
|
5556
|
-
},
|
|
5510
|
+
}, Rd = function(t) {
|
|
5557
5511
|
var n = (t == null ? void 0 : t.ownerDocument) || document;
|
|
5558
5512
|
return n.defaultView || window;
|
|
5559
|
-
},
|
|
5513
|
+
}, Od = function(t, n) {
|
|
5560
5514
|
for (var r in t)
|
|
5561
5515
|
if (!(r in n))
|
|
5562
5516
|
return !0;
|
|
@@ -5564,8 +5518,8 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5564
5518
|
if (t[i] !== n[i])
|
|
5565
5519
|
return !0;
|
|
5566
5520
|
return !1;
|
|
5567
|
-
},
|
|
5568
|
-
|
|
5521
|
+
}, Vd = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Vt = "http://www.w3.org/2000/svg", ss = "http://www.w3.org/1999/xlink", Or = /* @__PURE__ */ function(e) {
|
|
5522
|
+
pd(t, e);
|
|
5569
5523
|
function t() {
|
|
5570
5524
|
for (var r, i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
5571
5525
|
o[s] = arguments[s];
|
|
@@ -5579,12 +5533,12 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5579
5533
|
var n = t.prototype;
|
|
5580
5534
|
return n.renderSVG = function() {
|
|
5581
5535
|
var i = this;
|
|
5582
|
-
if (this.reactWrapper instanceof
|
|
5536
|
+
if (this.reactWrapper instanceof Rd(this.reactWrapper).Node) {
|
|
5583
5537
|
var o = this.props, s = o.desc, a = o.evalScripts, l = o.httpRequestWithCredentials, c = o.renumerateIRIElements, f = o.src, u = o.title, h = o.useRequestCache, d = this.props.onError, p = this.props.beforeInjection, m = this.props.afterInjection, g = this.props.wrapper, v, w;
|
|
5584
5538
|
g === "svg" ? (v = document.createElementNS(Vt, g), v.setAttribute("xmlns", Vt), v.setAttribute("xmlns:xlink", ss), w = document.createElementNS(Vt, g)) : (v = document.createElement(g), w = document.createElement(g)), v.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(v);
|
|
5585
|
-
var y = function(
|
|
5539
|
+
var y = function(P) {
|
|
5586
5540
|
if (i.removeSVG(), !i._isMounted) {
|
|
5587
|
-
d(
|
|
5541
|
+
d(P);
|
|
5588
5542
|
return;
|
|
5589
5543
|
}
|
|
5590
5544
|
i.setState(function() {
|
|
@@ -5593,11 +5547,11 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5593
5547
|
isLoading: !1
|
|
5594
5548
|
};
|
|
5595
5549
|
}, function() {
|
|
5596
|
-
d(
|
|
5550
|
+
d(P);
|
|
5597
5551
|
});
|
|
5598
|
-
}, S = function(
|
|
5599
|
-
if (
|
|
5600
|
-
y(
|
|
5552
|
+
}, S = function(P, A) {
|
|
5553
|
+
if (P) {
|
|
5554
|
+
y(P);
|
|
5601
5555
|
return;
|
|
5602
5556
|
}
|
|
5603
5557
|
i._isMounted && i.setState(function() {
|
|
@@ -5606,31 +5560,31 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5606
5560
|
};
|
|
5607
5561
|
}, function() {
|
|
5608
5562
|
try {
|
|
5609
|
-
m(
|
|
5610
|
-
} catch (
|
|
5611
|
-
y(
|
|
5563
|
+
m(A);
|
|
5564
|
+
} catch (R) {
|
|
5565
|
+
y(R);
|
|
5612
5566
|
}
|
|
5613
5567
|
});
|
|
5614
|
-
}, E = function(
|
|
5615
|
-
if (
|
|
5616
|
-
var
|
|
5617
|
-
|
|
5618
|
-
var
|
|
5619
|
-
|
|
5568
|
+
}, E = function(P) {
|
|
5569
|
+
if (P.setAttribute("role", "img"), s) {
|
|
5570
|
+
var A = P.querySelector(":scope > desc");
|
|
5571
|
+
A && P.removeChild(A);
|
|
5572
|
+
var R = document.createElement("desc");
|
|
5573
|
+
R.innerHTML = s, P.prepend(R);
|
|
5620
5574
|
}
|
|
5621
5575
|
if (u) {
|
|
5622
|
-
var
|
|
5623
|
-
|
|
5624
|
-
var
|
|
5625
|
-
|
|
5576
|
+
var B = P.querySelector(":scope > title");
|
|
5577
|
+
B && P.removeChild(B);
|
|
5578
|
+
var q = document.createElement("title");
|
|
5579
|
+
q.innerHTML = u, P.prepend(q);
|
|
5626
5580
|
}
|
|
5627
5581
|
try {
|
|
5628
|
-
p(
|
|
5629
|
-
} catch (
|
|
5630
|
-
y(
|
|
5582
|
+
p(P);
|
|
5583
|
+
} catch (j) {
|
|
5584
|
+
y(j);
|
|
5631
5585
|
}
|
|
5632
5586
|
};
|
|
5633
|
-
|
|
5587
|
+
Cd(w, {
|
|
5634
5588
|
afterEach: S,
|
|
5635
5589
|
beforeEach: E,
|
|
5636
5590
|
cacheRequests: h,
|
|
@@ -5646,7 +5600,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5646
5600
|
this._isMounted = !0, this.renderSVG();
|
|
5647
5601
|
}, n.componentDidUpdate = function(i) {
|
|
5648
5602
|
var o = this;
|
|
5649
|
-
|
|
5603
|
+
Od(Yt({}, i), this.props) && this.setState(function() {
|
|
5650
5604
|
return o.initialState;
|
|
5651
5605
|
}, function() {
|
|
5652
5606
|
o.removeSVG(), o.renderSVG();
|
|
@@ -5660,7 +5614,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
|
|
|
5660
5614
|
i.httpRequestWithCredentials;
|
|
5661
5615
|
var s = i.loading;
|
|
5662
5616
|
i.renumerateIRIElements, i.src, i.title, i.useRequestCache;
|
|
5663
|
-
var a = i.wrapper, l =
|
|
5617
|
+
var a = i.wrapper, l = dd(i, Vd), c = a;
|
|
5664
5618
|
return /* @__PURE__ */ x.createElement(c, Yt({}, l, {
|
|
5665
5619
|
ref: this.refCallback
|
|
5666
5620
|
}, a === "svg" ? {
|
|
@@ -5687,49 +5641,95 @@ Or.defaultProps = {
|
|
|
5687
5641
|
wrapper: "div"
|
|
5688
5642
|
};
|
|
5689
5643
|
Or.propTypes = {
|
|
5690
|
-
afterInjection:
|
|
5691
|
-
beforeInjection:
|
|
5692
|
-
desc:
|
|
5693
|
-
evalScripts:
|
|
5694
|
-
fallback:
|
|
5695
|
-
httpRequestWithCredentials:
|
|
5696
|
-
loading:
|
|
5697
|
-
onError:
|
|
5698
|
-
renumerateIRIElements:
|
|
5699
|
-
src:
|
|
5700
|
-
title:
|
|
5701
|
-
useRequestCache:
|
|
5702
|
-
wrapper:
|
|
5644
|
+
afterInjection: U.func,
|
|
5645
|
+
beforeInjection: U.func,
|
|
5646
|
+
desc: U.string,
|
|
5647
|
+
evalScripts: U.oneOf(["always", "once", "never"]),
|
|
5648
|
+
fallback: U.oneOfType([U.func, U.object, U.string]),
|
|
5649
|
+
httpRequestWithCredentials: U.bool,
|
|
5650
|
+
loading: U.oneOfType([U.func, U.object, U.string]),
|
|
5651
|
+
onError: U.func,
|
|
5652
|
+
renumerateIRIElements: U.bool,
|
|
5653
|
+
src: U.string.isRequired,
|
|
5654
|
+
title: U.string,
|
|
5655
|
+
useRequestCache: U.bool,
|
|
5656
|
+
wrapper: U.oneOf(["div", "span", "svg"])
|
|
5703
5657
|
};
|
|
5658
|
+
function kd(e) {
|
|
5659
|
+
return /* @__PURE__ */ O.jsx(
|
|
5660
|
+
"svg",
|
|
5661
|
+
{
|
|
5662
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5663
|
+
width: "16",
|
|
5664
|
+
height: "16",
|
|
5665
|
+
fill: "currentColor",
|
|
5666
|
+
viewBox: "0 0 16 16",
|
|
5667
|
+
...e,
|
|
5668
|
+
children: /* @__PURE__ */ O.jsx(
|
|
5669
|
+
"path",
|
|
5670
|
+
{
|
|
5671
|
+
fill: "currenColor",
|
|
5672
|
+
d: "M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"
|
|
5673
|
+
}
|
|
5674
|
+
)
|
|
5675
|
+
}
|
|
5676
|
+
);
|
|
5677
|
+
}
|
|
5678
|
+
function Md(e) {
|
|
5679
|
+
const { children: t, parentRef: n, onlyChild: r } = e, [i, o] = x.useState({ top: 0, left: 0 });
|
|
5680
|
+
return x.useLayoutEffect(() => {
|
|
5681
|
+
if (n.current) {
|
|
5682
|
+
const s = n.current.getBoundingClientRect();
|
|
5683
|
+
o({
|
|
5684
|
+
top: s.top,
|
|
5685
|
+
left: s.left + s.width
|
|
5686
|
+
});
|
|
5687
|
+
}
|
|
5688
|
+
}, [n]), r ? t : Ua.createPortal(
|
|
5689
|
+
/* @__PURE__ */ O.jsx(
|
|
5690
|
+
ua.div,
|
|
5691
|
+
{
|
|
5692
|
+
style: {
|
|
5693
|
+
position: "fixed",
|
|
5694
|
+
top: i.top,
|
|
5695
|
+
left: i.left,
|
|
5696
|
+
zIndex: 1200
|
|
5697
|
+
},
|
|
5698
|
+
children: t
|
|
5699
|
+
}
|
|
5700
|
+
),
|
|
5701
|
+
n.current
|
|
5702
|
+
);
|
|
5703
|
+
}
|
|
5704
5704
|
function da({ item: e, level: t = 0, ...n }) {
|
|
5705
|
-
var
|
|
5706
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", f = (
|
|
5707
|
-
function m(
|
|
5708
|
-
var
|
|
5709
|
-
const { level:
|
|
5710
|
-
return !u || i &&
|
|
5711
|
-
|
|
5705
|
+
var P;
|
|
5706
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", f = (A, R = a) => `${A} ${R} ${l} ${c}`, u = !!((P = e.children) != null && P.length), [h, d] = x.useState(!1), p = x.useRef();
|
|
5707
|
+
function m(A) {
|
|
5708
|
+
var j;
|
|
5709
|
+
const { level: R, hovered: B, parentRef: q } = A;
|
|
5710
|
+
return !u || i && R >= 2 && !B ? null : /* @__PURE__ */ O.jsx(
|
|
5711
|
+
Md,
|
|
5712
5712
|
{
|
|
5713
|
-
parentRef:
|
|
5714
|
-
onlyChild: !i || i &&
|
|
5715
|
-
children: /* @__PURE__ */
|
|
5713
|
+
parentRef: q,
|
|
5714
|
+
onlyChild: !i || i && R < 2,
|
|
5715
|
+
children: /* @__PURE__ */ O.jsx(
|
|
5716
5716
|
ua.div,
|
|
5717
5717
|
{
|
|
5718
|
-
className: f("menu-item__dropdown", `level-${
|
|
5718
|
+
className: f("menu-item__dropdown", `level-${R}`),
|
|
5719
5719
|
initial: { height: i ? "auto" : 0 },
|
|
5720
5720
|
animate: {
|
|
5721
5721
|
height: i || o(e.id) ? "auto" : 0
|
|
5722
5722
|
},
|
|
5723
5723
|
transition: { duration: 0.2 },
|
|
5724
|
-
children: (
|
|
5724
|
+
children: (j = e.children) == null ? void 0 : j.map((I) => /* @__PURE__ */ x.createElement(da, { ...n, key: I.id, item: I, level: R }))
|
|
5725
5725
|
},
|
|
5726
5726
|
+i
|
|
5727
5727
|
)
|
|
5728
5728
|
}
|
|
5729
5729
|
);
|
|
5730
5730
|
}
|
|
5731
|
-
const g =
|
|
5732
|
-
return /* @__PURE__ */
|
|
5731
|
+
const g = window.location.origin, v = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, w = window.location.pathname.split("/")[1], y = v.pathname.split("/")[1], S = n.ssr || !g.includes("local") && g !== v.origin || y !== w, E = u ? "div" : S ? "a" : yl, T = e.path && n.replacePath ? n.replacePath(e.path) : e.path || "#";
|
|
5732
|
+
return /* @__PURE__ */ O.jsxs(
|
|
5733
5733
|
"div",
|
|
5734
5734
|
{
|
|
5735
5735
|
ref: p,
|
|
@@ -5737,22 +5737,23 @@ function da({ item: e, level: t = 0, ...n }) {
|
|
|
5737
5737
|
onMouseEnter: () => i && d(!0),
|
|
5738
5738
|
onMouseLeave: () => i && d(!1),
|
|
5739
5739
|
children: [
|
|
5740
|
-
/* @__PURE__ */
|
|
5741
|
-
|
|
5740
|
+
/* @__PURE__ */ O.jsxs(
|
|
5741
|
+
E,
|
|
5742
5742
|
{
|
|
5743
|
-
|
|
5743
|
+
to: T,
|
|
5744
|
+
href: T,
|
|
5744
5745
|
style: {
|
|
5745
5746
|
paddingLeft: `${i ? "0.5rem" : `${t * 1}rem`}`
|
|
5746
5747
|
},
|
|
5747
5748
|
className: f("menu-item__link"),
|
|
5748
|
-
onClick: (
|
|
5749
|
-
u && (
|
|
5749
|
+
onClick: (A) => {
|
|
5750
|
+
u && (A.preventDefault(), i || s(e.id));
|
|
5750
5751
|
},
|
|
5751
5752
|
children: [
|
|
5752
|
-
t !== 0 && /* @__PURE__ */
|
|
5753
|
-
/* @__PURE__ */
|
|
5754
|
-
u && /* @__PURE__ */
|
|
5755
|
-
|
|
5753
|
+
t !== 0 && /* @__PURE__ */ O.jsx(Ld, { cls: f, item: e }),
|
|
5754
|
+
/* @__PURE__ */ O.jsx("span", { className: f("menu-item__label"), children: e.name }),
|
|
5755
|
+
u && /* @__PURE__ */ O.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ O.jsx(
|
|
5756
|
+
kd,
|
|
5756
5757
|
{
|
|
5757
5758
|
className: f(
|
|
5758
5759
|
`menu-item__icon-arrow__icon ${o(e.id) ? "open" : "close"}`
|
|
@@ -5773,7 +5774,7 @@ function Ld({ item: e, cls: t }) {
|
|
|
5773
5774
|
const [n, r] = x.useState(!1), i = () => {
|
|
5774
5775
|
r(!0);
|
|
5775
5776
|
}, o = (s = e.icon) == null ? void 0 : s.endsWith(".svg");
|
|
5776
|
-
return /* @__PURE__ */
|
|
5777
|
+
return /* @__PURE__ */ O.jsx("div", { className: t("menu-item__icon"), children: n ? /* @__PURE__ */ O.jsx(
|
|
5777
5778
|
"div",
|
|
5778
5779
|
{
|
|
5779
5780
|
style: {
|
|
@@ -5787,7 +5788,7 @@ function Ld({ item: e, cls: t }) {
|
|
|
5787
5788
|
},
|
|
5788
5789
|
children: (a = e.name.trim().at(0)) == null ? void 0 : a.toUpperCase()
|
|
5789
5790
|
}
|
|
5790
|
-
) : o ? /* @__PURE__ */
|
|
5791
|
+
) : o ? /* @__PURE__ */ O.jsx(
|
|
5791
5792
|
Or,
|
|
5792
5793
|
{
|
|
5793
5794
|
src: e.icon,
|
|
@@ -5797,7 +5798,7 @@ function Ld({ item: e, cls: t }) {
|
|
|
5797
5798
|
});
|
|
5798
5799
|
}
|
|
5799
5800
|
}
|
|
5800
|
-
) : /* @__PURE__ */
|
|
5801
|
+
) : /* @__PURE__ */ O.jsx(
|
|
5801
5802
|
"img",
|
|
5802
5803
|
{
|
|
5803
5804
|
src: e.icon || "/",
|
|
@@ -5825,7 +5826,7 @@ function pa(e, t, n = []) {
|
|
|
5825
5826
|
return null;
|
|
5826
5827
|
}
|
|
5827
5828
|
function Dd(e) {
|
|
5828
|
-
return /* @__PURE__ */
|
|
5829
|
+
return /* @__PURE__ */ O.jsx(
|
|
5829
5830
|
"svg",
|
|
5830
5831
|
{
|
|
5831
5832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5834,7 +5835,7 @@ function Dd(e) {
|
|
|
5834
5835
|
fill: "none",
|
|
5835
5836
|
viewBox: "0 0 18 20",
|
|
5836
5837
|
...e,
|
|
5837
|
-
children: /* @__PURE__ */
|
|
5838
|
+
children: /* @__PURE__ */ O.jsx(
|
|
5838
5839
|
"path",
|
|
5839
5840
|
{
|
|
5840
5841
|
fill: "#E01B00",
|
|
@@ -6125,12 +6126,12 @@ const mp = null;
|
|
|
6125
6126
|
function nr(e) {
|
|
6126
6127
|
return b.isPlainObject(e) || b.isArray(e);
|
|
6127
6128
|
}
|
|
6128
|
-
function
|
|
6129
|
+
function Pa(e) {
|
|
6129
6130
|
return b.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
6130
6131
|
}
|
|
6131
6132
|
function cs(e, t, n) {
|
|
6132
6133
|
return e ? e.concat(t).map(function(i, o) {
|
|
6133
|
-
return i =
|
|
6134
|
+
return i = Pa(i), !n && o ? "[" + i + "]" : i;
|
|
6134
6135
|
}).join(n ? "." : "") : t;
|
|
6135
6136
|
}
|
|
6136
6137
|
function gp(e) {
|
|
@@ -6167,7 +6168,7 @@ function pn(e, t, n) {
|
|
|
6167
6168
|
if (b.endsWith(m, "{}"))
|
|
6168
6169
|
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
6169
6170
|
else if (b.isArray(p) && gp(p) || (b.isFileList(p) || b.endsWith(m, "[]")) && (v = b.toArray(p)))
|
|
6170
|
-
return m =
|
|
6171
|
+
return m = Pa(m), v.forEach(function(y, S) {
|
|
6171
6172
|
!(b.isUndefined(y) || y === null) && t.append(
|
|
6172
6173
|
// eslint-disable-next-line no-nested-ternary
|
|
6173
6174
|
s === !0 ? cs([m], S, o) : s === null ? m : m + "[]",
|
|
@@ -6218,11 +6219,11 @@ function us(e) {
|
|
|
6218
6219
|
function kr(e, t) {
|
|
6219
6220
|
this._pairs = [], e && pn(e, this, t);
|
|
6220
6221
|
}
|
|
6221
|
-
const
|
|
6222
|
-
|
|
6222
|
+
const Aa = kr.prototype;
|
|
6223
|
+
Aa.append = function(t, n) {
|
|
6223
6224
|
this._pairs.push([t, n]);
|
|
6224
6225
|
};
|
|
6225
|
-
|
|
6226
|
+
Aa.toString = function(t) {
|
|
6226
6227
|
const n = t ? function(r) {
|
|
6227
6228
|
return t.call(this, r, us);
|
|
6228
6229
|
} : us;
|
|
@@ -6310,14 +6311,14 @@ const fs = bp, Ra = {
|
|
|
6310
6311
|
Blob: Sp
|
|
6311
6312
|
},
|
|
6312
6313
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
6313
|
-
}, Oa = typeof window < "u" && typeof document < "u", Tp = ((e) => Oa && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product),
|
|
6314
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
6314
|
+
}, Oa = typeof window < "u" && typeof document < "u", Tp = ((e) => Oa && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Pp = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
6315
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Ap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6315
6316
|
__proto__: null,
|
|
6316
6317
|
hasBrowserEnv: Oa,
|
|
6317
6318
|
hasStandardBrowserEnv: Tp,
|
|
6318
|
-
hasStandardBrowserWebWorkerEnv:
|
|
6319
|
+
hasStandardBrowserWebWorkerEnv: Pp
|
|
6319
6320
|
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
6320
|
-
...
|
|
6321
|
+
...Ap,
|
|
6321
6322
|
...Ep
|
|
6322
6323
|
};
|
|
6323
6324
|
function Cp(e, t) {
|
|
@@ -7282,7 +7283,7 @@ N.default = N;
|
|
|
7282
7283
|
const Zp = N, Qp = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
7283
7284
|
`;
|
|
7284
7285
|
function em() {
|
|
7285
|
-
return /* @__PURE__ */
|
|
7286
|
+
return /* @__PURE__ */ O.jsx(
|
|
7286
7287
|
"svg",
|
|
7287
7288
|
{
|
|
7288
7289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7292,12 +7293,12 @@ function em() {
|
|
|
7292
7293
|
stroke: "currentColor",
|
|
7293
7294
|
strokeWidth: "0",
|
|
7294
7295
|
viewBox: "0 0 24 24",
|
|
7295
|
-
children: /* @__PURE__ */
|
|
7296
|
+
children: /* @__PURE__ */ O.jsx("path", { d: "M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z" })
|
|
7296
7297
|
}
|
|
7297
7298
|
);
|
|
7298
7299
|
}
|
|
7299
7300
|
function tm() {
|
|
7300
|
-
return /* @__PURE__ */
|
|
7301
|
+
return /* @__PURE__ */ O.jsx(
|
|
7301
7302
|
"svg",
|
|
7302
7303
|
{
|
|
7303
7304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7307,7 +7308,7 @@ function tm() {
|
|
|
7307
7308
|
stroke: "currentColor",
|
|
7308
7309
|
strokeWidth: "0",
|
|
7309
7310
|
viewBox: "0 0 24 24",
|
|
7310
|
-
children: /* @__PURE__ */
|
|
7311
|
+
children: /* @__PURE__ */ O.jsx("path", { d: "M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z" })
|
|
7311
7312
|
}
|
|
7312
7313
|
);
|
|
7313
7314
|
}
|
|
@@ -7439,7 +7440,7 @@ const xs = {
|
|
|
7439
7440
|
pink: "#E81F76"
|
|
7440
7441
|
};
|
|
7441
7442
|
function lm() {
|
|
7442
|
-
return /* @__PURE__ */
|
|
7443
|
+
return /* @__PURE__ */ O.jsxs(
|
|
7443
7444
|
"svg",
|
|
7444
7445
|
{
|
|
7445
7446
|
width: "22",
|
|
@@ -7448,7 +7449,7 @@ function lm() {
|
|
|
7448
7449
|
fill: "none",
|
|
7449
7450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7450
7451
|
children: [
|
|
7451
|
-
/* @__PURE__ */
|
|
7452
|
+
/* @__PURE__ */ O.jsx(
|
|
7452
7453
|
"path",
|
|
7453
7454
|
{
|
|
7454
7455
|
fillRule: "evenodd",
|
|
@@ -7460,7 +7461,7 @@ function lm() {
|
|
|
7460
7461
|
strokeLinejoin: "round"
|
|
7461
7462
|
}
|
|
7462
7463
|
),
|
|
7463
|
-
/* @__PURE__ */
|
|
7464
|
+
/* @__PURE__ */ O.jsx(
|
|
7464
7465
|
"path",
|
|
7465
7466
|
{
|
|
7466
7467
|
d: "M10.9942 6.89636V11.6737",
|
|
@@ -7470,7 +7471,7 @@ function lm() {
|
|
|
7470
7471
|
strokeLinejoin: "round"
|
|
7471
7472
|
}
|
|
7472
7473
|
),
|
|
7473
|
-
/* @__PURE__ */
|
|
7474
|
+
/* @__PURE__ */ O.jsx(
|
|
7474
7475
|
"path",
|
|
7475
7476
|
{
|
|
7476
7477
|
d: "M10.9941 15.1038H11.0049",
|
|
@@ -7491,7 +7492,7 @@ const cm = {
|
|
|
7491
7492
|
fontFamily: "inherit"
|
|
7492
7493
|
}, um = (e) => {
|
|
7493
7494
|
L.error(e, {
|
|
7494
|
-
icon: /* @__PURE__ */
|
|
7495
|
+
icon: /* @__PURE__ */ O.jsx(lm, {}),
|
|
7495
7496
|
position: "bottom-right",
|
|
7496
7497
|
style: {
|
|
7497
7498
|
...cm,
|
|
@@ -7504,7 +7505,7 @@ const cm = {
|
|
|
7504
7505
|
window.location.href = `${e}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
7505
7506
|
};
|
|
7506
7507
|
function hm(e) {
|
|
7507
|
-
return /* @__PURE__ */
|
|
7508
|
+
return /* @__PURE__ */ O.jsx(za, { styles: [Qp, nm], style: { zIndex: 1200 }, children: /* @__PURE__ */ O.jsx(dm, { ...e }) });
|
|
7508
7509
|
}
|
|
7509
7510
|
function dm(e) {
|
|
7510
7511
|
const { baseUrl: t, menuPath: n } = e, r = nn(), [i, o] = x.useState([]), [s, a] = x.useState(!1), l = (pa(i, r.pathname) || []).filter((v) => v.parentKey !== 0), [c, f] = x.useState({}), u = (v) => {
|
|
@@ -7520,9 +7521,9 @@ function dm(e) {
|
|
|
7520
7521
|
const w = t + (n || "/global-menu-config/api/v1/menu-items/user"), y = await Zp.get(w, {
|
|
7521
7522
|
withCredentials: !0
|
|
7522
7523
|
}).then((E) => E.data).catch((E) => {
|
|
7523
|
-
var T,
|
|
7524
|
+
var T, P;
|
|
7524
7525
|
um(
|
|
7525
|
-
((
|
|
7526
|
+
((P = (T = E.response) == null ? void 0 : T.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
|
|
7526
7527
|
);
|
|
7527
7528
|
}), S = {};
|
|
7528
7529
|
y.forEach((E) => {
|
|
@@ -7531,16 +7532,16 @@ function dm(e) {
|
|
|
7531
7532
|
})();
|
|
7532
7533
|
}, [t, n]);
|
|
7533
7534
|
const [d, p] = x.useState(!1), m = s ? "collapsed" : "expanded", g = (v) => `${v} ${m}`;
|
|
7534
|
-
return /* @__PURE__ */
|
|
7535
|
-
/* @__PURE__ */
|
|
7535
|
+
return /* @__PURE__ */ O.jsxs("div", { className: g("side-bar"), children: [
|
|
7536
|
+
/* @__PURE__ */ O.jsx("div", { className: g("side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ O.jsx(
|
|
7536
7537
|
"button",
|
|
7537
7538
|
{
|
|
7538
7539
|
className: "icon-btn side-bar__toggle-btn",
|
|
7539
7540
|
onClick: h,
|
|
7540
|
-
children: s ? /* @__PURE__ */
|
|
7541
|
+
children: s ? /* @__PURE__ */ O.jsx(tm, {}) : /* @__PURE__ */ O.jsx(em, {})
|
|
7541
7542
|
}
|
|
7542
7543
|
) }),
|
|
7543
|
-
/* @__PURE__ */
|
|
7544
|
+
/* @__PURE__ */ O.jsx(
|
|
7544
7545
|
Ws,
|
|
7545
7546
|
{
|
|
7546
7547
|
className: g("side-bar__menu"),
|
|
@@ -7553,33 +7554,34 @@ function dm(e) {
|
|
|
7553
7554
|
},
|
|
7554
7555
|
children: i.map((v) => {
|
|
7555
7556
|
const w = (y) => l.some((S) => S.id === y);
|
|
7556
|
-
return /* @__PURE__ */
|
|
7557
|
+
return /* @__PURE__ */ O.jsx(
|
|
7557
7558
|
da,
|
|
7558
7559
|
{
|
|
7559
7560
|
item: v,
|
|
7560
7561
|
isActive: w,
|
|
7561
7562
|
isCollapsed: s,
|
|
7562
7563
|
expanded: (y) => c[y],
|
|
7563
|
-
toggleExpand: u
|
|
7564
|
+
toggleExpand: u,
|
|
7565
|
+
replacePath: e.replacePath
|
|
7564
7566
|
},
|
|
7565
7567
|
v.id
|
|
7566
7568
|
);
|
|
7567
7569
|
})
|
|
7568
7570
|
}
|
|
7569
7571
|
),
|
|
7570
|
-
/* @__PURE__ */
|
|
7571
|
-
/* @__PURE__ */
|
|
7572
|
+
/* @__PURE__ */ O.jsxs("div", { className: g("side-bar__wrap-btn-logout"), children: [
|
|
7573
|
+
/* @__PURE__ */ O.jsxs(
|
|
7572
7574
|
"button",
|
|
7573
7575
|
{
|
|
7574
7576
|
className: g("side-bar__logout-btn"),
|
|
7575
7577
|
onClick: () => p(!0),
|
|
7576
7578
|
children: [
|
|
7577
|
-
/* @__PURE__ */
|
|
7578
|
-
/* @__PURE__ */
|
|
7579
|
+
/* @__PURE__ */ O.jsx(Dd, {}),
|
|
7580
|
+
/* @__PURE__ */ O.jsx("span", { className: g("side-bar__logout-btn__text"), children: "Logout" })
|
|
7579
7581
|
]
|
|
7580
7582
|
}
|
|
7581
7583
|
),
|
|
7582
|
-
/* @__PURE__ */
|
|
7584
|
+
/* @__PURE__ */ O.jsx(
|
|
7583
7585
|
Ha,
|
|
7584
7586
|
{
|
|
7585
7587
|
isOpen: d,
|
|
@@ -7591,13 +7593,15 @@ function dm(e) {
|
|
|
7591
7593
|
] });
|
|
7592
7594
|
}
|
|
7593
7595
|
function pm(e) {
|
|
7594
|
-
return /* @__PURE__ */
|
|
7596
|
+
return /* @__PURE__ */ O.jsx(pl, { children: /* @__PURE__ */ O.jsx(hm, { ...e, ssr: !0 }) });
|
|
7595
7597
|
}
|
|
7596
7598
|
const mm = $a(pm, {
|
|
7597
7599
|
props: {
|
|
7598
7600
|
baseUrl: "string",
|
|
7599
7601
|
menuPath: "string",
|
|
7600
|
-
logout: "function"
|
|
7602
|
+
logout: "function",
|
|
7603
|
+
replacePath: "function",
|
|
7604
|
+
ssr: "boolean"
|
|
7601
7605
|
}
|
|
7602
7606
|
// shadow: 'open',
|
|
7603
7607
|
});
|