@tmf_ciclica/ciclicastorybook 1.2.171 → 1.2.172
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/index.cjs.js +18 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +356 -359
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -50,7 +50,7 @@ function Cl() {
|
|
|
50
50
|
if (Ko) return me;
|
|
51
51
|
Ko = 1;
|
|
52
52
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
53
|
-
function
|
|
53
|
+
function A(C) {
|
|
54
54
|
if (typeof C == "object" && C !== null) {
|
|
55
55
|
var S = C.$$typeof;
|
|
56
56
|
switch (S) {
|
|
@@ -81,35 +81,35 @@ function Cl() {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
function v(C) {
|
|
84
|
-
return
|
|
84
|
+
return A(C) === d;
|
|
85
85
|
}
|
|
86
86
|
return me.AsyncMode = c, me.ConcurrentMode = d, me.ContextConsumer = l, me.ContextProvider = a, me.Element = t, me.ForwardRef = m, me.Fragment = r, me.Lazy = b, me.Memo = g, me.Portal = n, me.Profiler = s, me.StrictMode = o, me.Suspense = h, me.isAsyncMode = function(C) {
|
|
87
|
-
return v(C) ||
|
|
87
|
+
return v(C) || A(C) === c;
|
|
88
88
|
}, me.isConcurrentMode = v, me.isContextConsumer = function(C) {
|
|
89
|
-
return
|
|
89
|
+
return A(C) === l;
|
|
90
90
|
}, me.isContextProvider = function(C) {
|
|
91
|
-
return
|
|
91
|
+
return A(C) === a;
|
|
92
92
|
}, me.isElement = function(C) {
|
|
93
93
|
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
94
94
|
}, me.isForwardRef = function(C) {
|
|
95
|
-
return
|
|
95
|
+
return A(C) === m;
|
|
96
96
|
}, me.isFragment = function(C) {
|
|
97
|
-
return
|
|
97
|
+
return A(C) === r;
|
|
98
98
|
}, me.isLazy = function(C) {
|
|
99
|
-
return
|
|
99
|
+
return A(C) === b;
|
|
100
100
|
}, me.isMemo = function(C) {
|
|
101
|
-
return
|
|
101
|
+
return A(C) === g;
|
|
102
102
|
}, me.isPortal = function(C) {
|
|
103
|
-
return
|
|
103
|
+
return A(C) === n;
|
|
104
104
|
}, me.isProfiler = function(C) {
|
|
105
|
-
return
|
|
105
|
+
return A(C) === s;
|
|
106
106
|
}, me.isStrictMode = function(C) {
|
|
107
|
-
return
|
|
107
|
+
return A(C) === o;
|
|
108
108
|
}, me.isSuspense = function(C) {
|
|
109
|
-
return
|
|
109
|
+
return A(C) === h;
|
|
110
110
|
}, me.isValidElementType = function(C) {
|
|
111
111
|
return typeof C == "string" || typeof C == "function" || C === r || C === d || C === s || C === o || C === h || C === y || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === g || C.$$typeof === a || C.$$typeof === l || C.$$typeof === m || C.$$typeof === _ || C.$$typeof === x || C.$$typeof === w || C.$$typeof === f);
|
|
112
|
-
}, me.typeOf =
|
|
112
|
+
}, me.typeOf = A, me;
|
|
113
113
|
}
|
|
114
114
|
var he = {};
|
|
115
115
|
/** @license React v16.13.1
|
|
@@ -124,7 +124,7 @@ var Zo;
|
|
|
124
124
|
function _l() {
|
|
125
125
|
return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
126
126
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
127
|
-
function
|
|
127
|
+
function A(F) {
|
|
128
128
|
return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
129
129
|
F === r || F === d || F === s || F === o || F === h || F === y || typeof F == "object" && F !== null && (F.$$typeof === b || F.$$typeof === g || F.$$typeof === a || F.$$typeof === l || F.$$typeof === m || F.$$typeof === _ || F.$$typeof === x || F.$$typeof === w || F.$$typeof === f);
|
|
130
130
|
}
|
|
@@ -160,7 +160,7 @@ function _l() {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
var C = c, S = d, M = l, $ = a,
|
|
163
|
+
var C = c, S = d, M = l, $ = a, N = t, z = m, B = r, p = b, E = g, k = n, I = s, j = o, D = h, V = !1;
|
|
164
164
|
function Z(F) {
|
|
165
165
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(F) || v(F) === c;
|
|
166
166
|
}
|
|
@@ -200,7 +200,7 @@ function _l() {
|
|
|
200
200
|
function ue(F) {
|
|
201
201
|
return v(F) === h;
|
|
202
202
|
}
|
|
203
|
-
he.AsyncMode = C, he.ConcurrentMode = S, he.ContextConsumer = M, he.ContextProvider = $, he.Element =
|
|
203
|
+
he.AsyncMode = C, he.ConcurrentMode = S, he.ContextConsumer = M, he.ContextProvider = $, he.Element = N, he.ForwardRef = z, he.Fragment = B, he.Lazy = p, he.Memo = E, he.Portal = k, he.Profiler = I, he.StrictMode = j, he.Suspense = D, he.isAsyncMode = Z, he.isConcurrentMode = L, he.isContextConsumer = R, he.isContextProvider = J, he.isElement = H, he.isForwardRef = W, he.isFragment = G, he.isLazy = re, he.isMemo = oe, he.isPortal = Q, he.isProfiler = se, he.isStrictMode = K, he.isSuspense = ue, he.isValidElementType = A, he.typeOf = v;
|
|
204
204
|
}()), he;
|
|
205
205
|
}
|
|
206
206
|
var Go;
|
|
@@ -352,16 +352,16 @@ function Sl() {
|
|
|
352
352
|
string: x("string"),
|
|
353
353
|
symbol: x("symbol"),
|
|
354
354
|
any: w(),
|
|
355
|
-
arrayOf:
|
|
355
|
+
arrayOf: A,
|
|
356
356
|
element: v(),
|
|
357
357
|
elementType: C(),
|
|
358
358
|
instanceOf: S,
|
|
359
359
|
node: z(),
|
|
360
360
|
objectOf: $,
|
|
361
361
|
oneOf: M,
|
|
362
|
-
oneOfType:
|
|
362
|
+
oneOfType: N,
|
|
363
363
|
shape: p,
|
|
364
|
-
exact:
|
|
364
|
+
exact: E
|
|
365
365
|
};
|
|
366
366
|
function b(L, R) {
|
|
367
367
|
return L === R ? L !== 0 || 1 / L === 1 / R : L !== L && R !== R;
|
|
@@ -410,7 +410,7 @@ function Sl() {
|
|
|
410
410
|
function w() {
|
|
411
411
|
return _(a);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function A(L) {
|
|
414
414
|
function R(J, H, W, G, re) {
|
|
415
415
|
if (typeof L != "function")
|
|
416
416
|
return new f("Property `" + re + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -494,7 +494,7 @@ function Sl() {
|
|
|
494
494
|
}
|
|
495
495
|
return _(R);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function N(L) {
|
|
498
498
|
if (!Array.isArray(L))
|
|
499
499
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
500
500
|
for (var R = 0; R < L.length; R++) {
|
|
@@ -544,7 +544,7 @@ function Sl() {
|
|
|
544
544
|
}
|
|
545
545
|
return _(R);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function E(L) {
|
|
548
548
|
function R(J, H, W, G, re) {
|
|
549
549
|
var oe = J[H], Q = j(oe);
|
|
550
550
|
if (Q !== "object")
|
|
@@ -798,8 +798,8 @@ const Cs = ({
|
|
|
798
798
|
}, [e]);
|
|
799
799
|
const x = (w) => {
|
|
800
800
|
if (f && f.length > 0) {
|
|
801
|
-
let
|
|
802
|
-
|
|
801
|
+
let A = [...f];
|
|
802
|
+
A.sort((v, C) => v[w].localeCompare(C[w])), _(A);
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
805
|
return /* @__PURE__ */ T("div", { className: _t.ambitSelector, style: {
|
|
@@ -1571,24 +1571,24 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1571
1571
|
selectedIndicator: _,
|
|
1572
1572
|
fontColor: x,
|
|
1573
1573
|
inputsColor: w
|
|
1574
|
-
} = _e((C) => C),
|
|
1574
|
+
} = _e((C) => C), A = (C) => {
|
|
1575
1575
|
if (C) {
|
|
1576
1576
|
const {
|
|
1577
1577
|
min: S,
|
|
1578
1578
|
max: M,
|
|
1579
1579
|
valueClicked: $,
|
|
1580
|
-
allValues:
|
|
1580
|
+
allValues: N
|
|
1581
1581
|
} = C || {}, {
|
|
1582
1582
|
code: z,
|
|
1583
1583
|
type: B,
|
|
1584
1584
|
source: p
|
|
1585
|
-
} = e || {},
|
|
1585
|
+
} = e || {}, E = b ? "abs" : g ? "cat" : "both";
|
|
1586
1586
|
let k = z[0];
|
|
1587
|
-
B == "both" && (k =
|
|
1587
|
+
B == "both" && (k = E == "cat" ? z[1] : z[0]), E == "cat" ? _e.setState((I) => {
|
|
1588
1588
|
let j = I.tematicalFiltersSelected.find((D) => D.code === k);
|
|
1589
1589
|
if (j) {
|
|
1590
1590
|
let D = [j.values];
|
|
1591
|
-
return j.values.includes($) ? D = j.values.filter((V) => V !== $) : D = [...j.values, $], D.length ==
|
|
1591
|
+
return j.values.includes($) ? D = j.values.filter((V) => V !== $) : D = [...j.values, $], D.length == N.length ? {
|
|
1592
1592
|
tematicalFiltersSelected: I.tematicalFiltersSelected.filter((V) => V.code !== k)
|
|
1593
1593
|
} : {
|
|
1594
1594
|
tematicalFiltersSelected: I.tematicalFiltersSelected.map((V) => V.code === k ? {
|
|
@@ -1597,7 +1597,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1597
1597
|
} : V)
|
|
1598
1598
|
};
|
|
1599
1599
|
} else {
|
|
1600
|
-
let D = (
|
|
1600
|
+
let D = (N || []).map((V, Z) => Z);
|
|
1601
1601
|
return {
|
|
1602
1602
|
tematicalFiltersSelected: [...f, {
|
|
1603
1603
|
type: "cat",
|
|
@@ -1609,7 +1609,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1609
1609
|
}]
|
|
1610
1610
|
};
|
|
1611
1611
|
}
|
|
1612
|
-
}) :
|
|
1612
|
+
}) : E == "abs" && _e.setState((I) => {
|
|
1613
1613
|
let j = I.tematicalFiltersSelected.find((D) => D.code === k);
|
|
1614
1614
|
if (S == e.minValue && M == e.maxValue)
|
|
1615
1615
|
return {
|
|
@@ -1620,7 +1620,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1620
1620
|
...j,
|
|
1621
1621
|
min: S,
|
|
1622
1622
|
max: M,
|
|
1623
|
-
type:
|
|
1623
|
+
type: E,
|
|
1624
1624
|
isDate: y
|
|
1625
1625
|
};
|
|
1626
1626
|
return {
|
|
@@ -1629,7 +1629,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1629
1629
|
} else
|
|
1630
1630
|
return {
|
|
1631
1631
|
tematicalFiltersSelected: [...f, {
|
|
1632
|
-
type:
|
|
1632
|
+
type: E,
|
|
1633
1633
|
code: k,
|
|
1634
1634
|
min: S,
|
|
1635
1635
|
max: M,
|
|
@@ -1702,7 +1702,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1702
1702
|
return /* @__PURE__ */ u(
|
|
1703
1703
|
ko,
|
|
1704
1704
|
{
|
|
1705
|
-
onClick: () =>
|
|
1705
|
+
onClick: () => A({
|
|
1706
1706
|
valueClicked: S,
|
|
1707
1707
|
allValues: a
|
|
1708
1708
|
}),
|
|
@@ -1712,7 +1712,7 @@ const sc = "_tematicalFiltersInputContainer_1vm1r_2", ac = "_inputTypeContainer_
|
|
|
1712
1712
|
`checkbox-${S}`
|
|
1713
1713
|
);
|
|
1714
1714
|
}) }),
|
|
1715
|
-
(b || o == "glb") && /* @__PURE__ */ u("div", { className: Wn.absoluteSliderContainer, children: /* @__PURE__ */ u(To, { onChange:
|
|
1715
|
+
(b || o == "glb") && /* @__PURE__ */ u("div", { className: Wn.absoluteSliderContainer, children: /* @__PURE__ */ u(To, { onChange: A, min: l, max: c, unit: d, defaultValue: v[e.code[0]] ? v[e.code[0]] : "", isDate: y, step: m }) })
|
|
1716
1716
|
] }) });
|
|
1717
1717
|
};
|
|
1718
1718
|
gr.displayName = "TematicalFiltersInput";
|
|
@@ -1908,16 +1908,16 @@ const uc = "_FiltersAmbitContainer_ei39o_2", dc = "_FiltersContainer_ei39o_15",
|
|
|
1908
1908
|
const {
|
|
1909
1909
|
t: w
|
|
1910
1910
|
} = de(), {
|
|
1911
|
-
tematicalFiltersSelected:
|
|
1911
|
+
tematicalFiltersSelected: A,
|
|
1912
1912
|
activeFiltersType: v
|
|
1913
|
-
} = _e((p) => p), [C, S] = ce(e || null), [M, $] = ce(t || null), [
|
|
1913
|
+
} = _e((p) => p), [C, S] = ce(e || null), [M, $] = ce(t || null), [N, z] = ce(!1);
|
|
1914
1914
|
ne(() => {
|
|
1915
1915
|
_e.setState({
|
|
1916
1916
|
tematicalFiltersSelected: n || []
|
|
1917
1917
|
});
|
|
1918
1918
|
}, [n]), xe(!1), ne(() => {
|
|
1919
|
-
l(
|
|
1920
|
-
}, [
|
|
1919
|
+
l(A);
|
|
1920
|
+
}, [A]);
|
|
1921
1921
|
const B = () => {
|
|
1922
1922
|
_ ? C && M ? c({
|
|
1923
1923
|
name: C,
|
|
@@ -1929,8 +1929,8 @@ const uc = "_FiltersAmbitContainer_ei39o_2", dc = "_FiltersContainer_ei39o_15",
|
|
|
1929
1929
|
};
|
|
1930
1930
|
return ne(() => {
|
|
1931
1931
|
if (h.includes("geographical") && v != "geographical" && g.length > 0) {
|
|
1932
|
-
const p = g.map((
|
|
1933
|
-
...
|
|
1932
|
+
const p = g.map((E) => ({
|
|
1933
|
+
...E,
|
|
1934
1934
|
active: !1
|
|
1935
1935
|
}));
|
|
1936
1936
|
b == null || b(p);
|
|
@@ -1951,7 +1951,7 @@ const uc = "_FiltersAmbitContainer_ei39o_2", dc = "_FiltersContainer_ei39o_15",
|
|
|
1951
1951
|
h.includes("tematical") && /* @__PURE__ */ u(cr, { indicators: r, inputsColor: o, textColor: s, title: "tematical_filters", activeColor: o, isExtra: !1 })
|
|
1952
1952
|
] }),
|
|
1953
1953
|
!f && /* @__PURE__ */ T("div", { className: xt.buttonContainer, children: [
|
|
1954
|
-
|
|
1954
|
+
N && /* @__PURE__ */ u("div", { className: xt.warning, children: w(y) }),
|
|
1955
1955
|
/* @__PURE__ */ u(Mn, { onClick: () => B(), children: w("save_ambit") })
|
|
1956
1956
|
] })
|
|
1957
1957
|
] });
|
|
@@ -2003,38 +2003,38 @@ const bc = "_barChartContainer_1ly7h_2", si = {
|
|
|
2003
2003
|
ticks: _,
|
|
2004
2004
|
height: x,
|
|
2005
2005
|
chartWidth: w,
|
|
2006
|
-
svgWidth:
|
|
2006
|
+
svgWidth: A,
|
|
2007
2007
|
svgHeight: v,
|
|
2008
2008
|
contentWidth: C
|
|
2009
2009
|
} = qe(() => {
|
|
2010
2010
|
if (e && e.length > 0) {
|
|
2011
2011
|
const S = Mr.max(e, ($) => $.value) || 1, M = a || S;
|
|
2012
2012
|
if (l === "vertical") {
|
|
2013
|
-
const $ = e.length * (t + n) + c * 2,
|
|
2013
|
+
const $ = e.length * (t + n) + c * 2, N = Math.max($, h || 0), z = y, p = Mr.scaleLinear().domain([0, M]).range([z - 100, d]), E = Array.from({
|
|
2014
2014
|
length: s + 1
|
|
2015
2015
|
}, (k, I) => M / s * I);
|
|
2016
2016
|
return {
|
|
2017
2017
|
yScale: p,
|
|
2018
|
-
ticks:
|
|
2018
|
+
ticks: E,
|
|
2019
2019
|
height: z,
|
|
2020
|
-
chartWidth:
|
|
2021
|
-
svgWidth:
|
|
2020
|
+
chartWidth: N,
|
|
2021
|
+
svgWidth: N,
|
|
2022
2022
|
svgHeight: z,
|
|
2023
2023
|
contentWidth: $
|
|
2024
2024
|
};
|
|
2025
2025
|
} else {
|
|
2026
2026
|
const $ = e.length * (t + n);
|
|
2027
2027
|
console.log("barsHeight: ", $);
|
|
2028
|
-
const
|
|
2028
|
+
const N = $ + d * 2 + m + 30, z = h + o + c * 2, B = Mr.scaleLinear().domain([0, M]).range([0, h - c * 2]), p = Array.from({
|
|
2029
2029
|
length: s + 1
|
|
2030
|
-
}, (
|
|
2030
|
+
}, (E, k) => M / s * k);
|
|
2031
2031
|
return {
|
|
2032
2032
|
xScale: B,
|
|
2033
2033
|
ticks: p,
|
|
2034
|
-
height:
|
|
2034
|
+
height: N,
|
|
2035
2035
|
chartWidth: h,
|
|
2036
2036
|
svgWidth: z,
|
|
2037
|
-
svgHeight:
|
|
2037
|
+
svgHeight: N,
|
|
2038
2038
|
contentWidth: z
|
|
2039
2039
|
};
|
|
2040
2040
|
}
|
|
@@ -2052,9 +2052,9 @@ const bc = "_barChartContainer_1ly7h_2", si = {
|
|
|
2052
2052
|
width: "100%",
|
|
2053
2053
|
height: y ? `${y}px` : "100%",
|
|
2054
2054
|
"--main-color": g
|
|
2055
|
-
}, className: si.barChartContainer, children: /* @__PURE__ */ u("svg", { width:
|
|
2055
|
+
}, className: si.barChartContainer, children: /* @__PURE__ */ u("svg", { width: A, height: v, style: {
|
|
2056
2056
|
display: "block",
|
|
2057
|
-
width:
|
|
2057
|
+
width: A,
|
|
2058
2058
|
height: v,
|
|
2059
2059
|
maxWidth: "none",
|
|
2060
2060
|
"--main-color": g
|
|
@@ -2067,10 +2067,10 @@ const bc = "_barChartContainer_1ly7h_2", si = {
|
|
|
2067
2067
|
] }, M);
|
|
2068
2068
|
}) }),
|
|
2069
2069
|
e && e.length > 0 && e.map((S, M) => {
|
|
2070
|
-
const $ = f(0) - f(S.value),
|
|
2070
|
+
const $ = f(0) - f(S.value), N = M * (t + n), z = f(S.value);
|
|
2071
2071
|
return /* @__PURE__ */ T("g", { children: [
|
|
2072
|
-
/* @__PURE__ */ u("rect", { x:
|
|
2073
|
-
/* @__PURE__ */ u("text", { x:
|
|
2072
|
+
/* @__PURE__ */ u("rect", { x: N, y: z, width: t, height: $, fill: S.color, rx: 0 }),
|
|
2073
|
+
/* @__PURE__ */ u("text", { x: N + t / 2, y: x - m, textAnchor: "start", fill: r, fontSize: 12, transform: `rotate(-90, ${N + t / 2}, ${x - m})`, children: S.title })
|
|
2074
2074
|
] }, M);
|
|
2075
2075
|
})
|
|
2076
2076
|
] }) }) }) : (console.log("svgHeight: ", v), /* @__PURE__ */ u("div", { style: {
|
|
@@ -2078,7 +2078,7 @@ const bc = "_barChartContainer_1ly7h_2", si = {
|
|
|
2078
2078
|
//width: containerWidth ? `${containerWidth}px` : "100%",
|
|
2079
2079
|
height: y ? `${y}px` : "100%",
|
|
2080
2080
|
"--main-color": g
|
|
2081
|
-
}, className: si.barChartContainer, children: /* @__PURE__ */ u("svg", { width:
|
|
2081
|
+
}, className: si.barChartContainer, children: /* @__PURE__ */ u("svg", { width: A, height: v, style: {
|
|
2082
2082
|
minWidth: "100%",
|
|
2083
2083
|
height: v,
|
|
2084
2084
|
width: C,
|
|
@@ -2092,8 +2092,8 @@ const bc = "_barChartContainer_1ly7h_2", si = {
|
|
|
2092
2092
|
] }, M);
|
|
2093
2093
|
}) }),
|
|
2094
2094
|
e && e.length > 0 && e.map((S, M) => {
|
|
2095
|
-
const $ = b(S.value),
|
|
2096
|
-
return console.log("y: ",
|
|
2095
|
+
const $ = b(S.value), N = M * (t + n);
|
|
2096
|
+
return console.log("y: ", N), /* @__PURE__ */ T("g", { transform: `translate(${o + c}, ${N})`, children: [
|
|
2097
2097
|
/* @__PURE__ */ u("text", { x: -24, y: t / 2 + 5, textAnchor: "end", fill: r, fontSize: 12, children: S.title }),
|
|
2098
2098
|
/* @__PURE__ */ u("rect", { width: $, height: t, fill: S.color, rx: 0 })
|
|
2099
2099
|
] }, M);
|
|
@@ -2258,7 +2258,7 @@ const _c = "_indicatorsCategory_arwy3_2", xc = "_title_arwy3_5", wc = "_list_arw
|
|
|
2258
2258
|
color: h === "abs" ? y : g
|
|
2259
2259
|
}, children: a("indicators.abs") })
|
|
2260
2260
|
] })
|
|
2261
|
-
] }) }) }),
|
|
2261
|
+
] }) }) }), A = () => /* @__PURE__ */ u("div", { className: we.switchExternalContainer, children: /* @__PURE__ */ u("div", { className: we.switchType, children: /* @__PURE__ */ u("div", { className: we.switchTypeOptions, children: m == null ? void 0 : m.map((C, S) => /* @__PURE__ */ T("div", { className: we.optionContainer, onClick: () => {
|
|
2262
2262
|
ut.setState(($) => ({
|
|
2263
2263
|
...$,
|
|
2264
2264
|
activeIndicatorSubcategory: C.title
|
|
@@ -2313,7 +2313,7 @@ const _c = "_indicatorsCategory_arwy3_2", xc = "_title_arwy3_5", wc = "_list_arw
|
|
|
2313
2313
|
] }),
|
|
2314
2314
|
(n == null ? void 0 : n.name) === l && c === "both" && w(),
|
|
2315
2315
|
(n == null ? void 0 : n.name) === l && c === "twoUnits" && v(),
|
|
2316
|
-
(n == null ? void 0 : n.name) === l && m && m.length > 0 &&
|
|
2316
|
+
(n == null ? void 0 : n.name) === l && m && m.length > 0 && A()
|
|
2317
2317
|
] });
|
|
2318
2318
|
};
|
|
2319
2319
|
yr.displayName = "Indicator";
|
|
@@ -2433,9 +2433,9 @@ const Oo = ({
|
|
|
2433
2433
|
] }),
|
|
2434
2434
|
e.subcategories ? e.subcategories.map(({
|
|
2435
2435
|
name: w,
|
|
2436
|
-
subcategory:
|
|
2436
|
+
subcategory: A,
|
|
2437
2437
|
indicators: v
|
|
2438
|
-
}, C) => /* @__PURE__ */ u(Ao, { id:
|
|
2438
|
+
}, C) => /* @__PURE__ */ u(Ao, { id: A, activeSubCategory: o, subcName: w, onClickSubCategory: s, activeIndicator: a, onClickIndicator: l, indicators: v, onChangeType: c, onChangeIndicatorSubcategory: d }, `subcKey ${C}`)) : /* @__PURE__ */ u("div", { className: Un.list, children: (x = e.indicators) == null ? void 0 : x.map((w, A) => /* @__PURE__ */ u(yr, { indicator: w, values: w.type == "twoUnits" && w.values, activeIndicator: a, onClickIndicator: l, onChangeType: c, onChangeIndicatorSubcategory: d }, `indicator${A}`)) })
|
|
2439
2439
|
] });
|
|
2440
2440
|
};
|
|
2441
2441
|
Oo.displayName = "IndicatorsCategory";
|
|
@@ -2494,19 +2494,19 @@ const Pc = "_indicatorsList_13b3m_2", Fc = "_title_13b3m_6", ci = {
|
|
|
2494
2494
|
}, [t, n, o, l]);
|
|
2495
2495
|
const w = ($) => {
|
|
2496
2496
|
h(m == $ ? null : $);
|
|
2497
|
-
},
|
|
2497
|
+
}, A = ($) => {
|
|
2498
2498
|
g(y == $ ? null : $);
|
|
2499
2499
|
}, v = ({
|
|
2500
2500
|
indicator: $
|
|
2501
2501
|
}) => {
|
|
2502
2502
|
if ($ != null && $.indicatorSubcategories && $.indicatorSubcategories.length > 0) {
|
|
2503
|
-
const
|
|
2503
|
+
const N = $.indicatorSubcategories[0], z = Ss({
|
|
2504
2504
|
indicator: $,
|
|
2505
2505
|
subcatIndex: 0,
|
|
2506
|
-
indicatorSubcategory:
|
|
2506
|
+
indicatorSubcategory: N.title
|
|
2507
2507
|
});
|
|
2508
2508
|
ut.setState({
|
|
2509
|
-
activeIndicatorSubcategory:
|
|
2509
|
+
activeIndicatorSubcategory: N.title
|
|
2510
2510
|
}), S(z, !0), c && c({
|
|
2511
2511
|
indicator: z
|
|
2512
2512
|
});
|
|
@@ -2520,17 +2520,17 @@ const Pc = "_indicatorsList_13b3m_2", Fc = "_title_13b3m_6", ci = {
|
|
|
2520
2520
|
S($, !0), c && c({
|
|
2521
2521
|
indicator: $
|
|
2522
2522
|
});
|
|
2523
|
-
}, S = ($,
|
|
2523
|
+
}, S = ($, N = !1, z = !1) => {
|
|
2524
2524
|
if (o) {
|
|
2525
2525
|
let B = b && b.length > 0 ? [...b] : [];
|
|
2526
2526
|
const p = B == null ? void 0 : B.some((k) => k.name == $.name);
|
|
2527
|
-
let
|
|
2528
|
-
|
|
2529
|
-
activeIndicator:
|
|
2527
|
+
let E;
|
|
2528
|
+
N ? E = $ : E = p ? B.filter((k) => k.name != String($.name)) : [...B, $], f(E), $.type == "both" && a("cat"), r && typeof r == "function" && (N || !($ != null && $.indicatorSubcategories)) && !z && r({
|
|
2529
|
+
activeIndicator: E
|
|
2530
2530
|
});
|
|
2531
2531
|
} else {
|
|
2532
2532
|
let B;
|
|
2533
|
-
|
|
2533
|
+
N ? B = $ : B = (b == null ? void 0 : b.name) == $.name ? null : $, f(B), ($ == null ? void 0 : $.type) == "both" && a("cat"), r && typeof r == "function" && (N || !($ != null && $.indicatorSubcategories)) && !z && r({
|
|
2534
2534
|
activeIndicator: B
|
|
2535
2535
|
});
|
|
2536
2536
|
}
|
|
@@ -2551,10 +2551,10 @@ const Pc = "_indicatorsList_13b3m_2", Fc = "_title_13b3m_6", ci = {
|
|
|
2551
2551
|
x.current = !0;
|
|
2552
2552
|
try {
|
|
2553
2553
|
const {
|
|
2554
|
-
activeIndicatorSubcategory:
|
|
2554
|
+
activeIndicatorSubcategory: N
|
|
2555
2555
|
} = s || {};
|
|
2556
|
-
|
|
2557
|
-
activeIndicatorSubcategory:
|
|
2556
|
+
N && ut.setState({
|
|
2557
|
+
activeIndicatorSubcategory: N
|
|
2558
2558
|
}), o && Array.isArray(s) ? (f([...s]), M(($ = s[0]) == null ? void 0 : $.name)) : s ? (S(s, !1, !0), M(s.name)) : (f(o ? [] : null), h(null), g(null));
|
|
2559
2559
|
} finally {
|
|
2560
2560
|
x.current = !1;
|
|
@@ -2562,21 +2562,21 @@ const Pc = "_indicatorsList_13b3m_2", Fc = "_title_13b3m_6", ci = {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
}, [s]);
|
|
2564
2564
|
const M = ($) => {
|
|
2565
|
-
const
|
|
2565
|
+
const N = e.find((z) => {
|
|
2566
2566
|
if (z.subcategories) {
|
|
2567
|
-
let B = z.subcategories.find((p) => p.indicators.find((
|
|
2567
|
+
let B = z.subcategories.find((p) => p.indicators.find((E) => E.name == $));
|
|
2568
2568
|
if (B)
|
|
2569
2569
|
return g(B.subcategory), B;
|
|
2570
2570
|
} else
|
|
2571
2571
|
return z.indicators.some((B) => B.name == $);
|
|
2572
2572
|
});
|
|
2573
|
-
|
|
2573
|
+
N && h(N.category);
|
|
2574
2574
|
};
|
|
2575
2575
|
return /* @__PURE__ */ T("div", { className: ci.indicatorsList, children: [
|
|
2576
2576
|
/* @__PURE__ */ u("h2", { className: ci.title, style: {
|
|
2577
2577
|
color: n
|
|
2578
2578
|
}, children: d("indicators.indicators") }),
|
|
2579
|
-
e.map(($,
|
|
2579
|
+
e.map(($, N) => /* @__PURE__ */ u(Oo, { id: $.category, cat: $, onClickCategory: w, activeCategory: m, onClickSubCategory: A, activeSubCategory: y, onClickIndicator: v, activeIndicator: b, onChange: r, onChangeType: a, onChangeIndicatorSubcategory: C }, `categoryKey${N}`))
|
|
2580
2580
|
] });
|
|
2581
2581
|
};
|
|
2582
2582
|
ks.displayName = "IndicatorsList";
|
|
@@ -3356,24 +3356,24 @@ function x0(e, t) {
|
|
|
3356
3356
|
element: f ? document.createElement("div") : null
|
|
3357
3357
|
}, x = new r.Marker(_);
|
|
3358
3358
|
return x.setLngLat([e.longitude, e.latitude]), x.getElement().addEventListener("click", (w) => {
|
|
3359
|
-
var
|
|
3360
|
-
(v = (
|
|
3359
|
+
var A, v;
|
|
3360
|
+
(v = (A = o.current.props).onClick) === null || v === void 0 || v.call(A, {
|
|
3361
3361
|
type: "click",
|
|
3362
3362
|
target: x,
|
|
3363
3363
|
originalEvent: w
|
|
3364
3364
|
});
|
|
3365
3365
|
}), x.on("dragstart", (w) => {
|
|
3366
|
-
var
|
|
3366
|
+
var A, v;
|
|
3367
3367
|
const C = w;
|
|
3368
|
-
C.lngLat = s.getLngLat(), (v = (
|
|
3368
|
+
C.lngLat = s.getLngLat(), (v = (A = o.current.props).onDragStart) === null || v === void 0 || v.call(A, C);
|
|
3369
3369
|
}), x.on("drag", (w) => {
|
|
3370
|
-
var
|
|
3370
|
+
var A, v;
|
|
3371
3371
|
const C = w;
|
|
3372
|
-
C.lngLat = s.getLngLat(), (v = (
|
|
3372
|
+
C.lngLat = s.getLngLat(), (v = (A = o.current.props).onDrag) === null || v === void 0 || v.call(A, C);
|
|
3373
3373
|
}), x.on("dragend", (w) => {
|
|
3374
|
-
var
|
|
3374
|
+
var A, v;
|
|
3375
3375
|
const C = w;
|
|
3376
|
-
C.lngLat = s.getLngLat(), (v = (
|
|
3376
|
+
C.lngLat = s.getLngLat(), (v = (A = o.current.props).onDragEnd) === null || v === void 0 || v.call(A, C);
|
|
3377
3377
|
}), x;
|
|
3378
3378
|
}, []);
|
|
3379
3379
|
ne(() => (s.addTo(n.getMap()), () => {
|
|
@@ -3864,11 +3864,11 @@ const J0 = Ga({
|
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
3866
|
}), {
|
|
3867
|
-
setShowTexts:
|
|
3868
|
-
setYear:
|
|
3869
|
-
setActiveIndicatorKey:
|
|
3870
|
-
setActiveIndicatorType:
|
|
3871
|
-
setActiveIndicatorUnit:
|
|
3867
|
+
setShowTexts: Rm,
|
|
3868
|
+
setYear: Im,
|
|
3869
|
+
setActiveIndicatorKey: Dm,
|
|
3870
|
+
setActiveIndicatorType: Bm,
|
|
3871
|
+
setActiveIndicatorUnit: Pm
|
|
3872
3872
|
} = J0.actions, e2 = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e", t2 = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";
|
|
3873
3873
|
function Ps(e) {
|
|
3874
3874
|
var t, n, r = "";
|
|
@@ -4211,7 +4211,7 @@ function y2(e) {
|
|
|
4211
4211
|
shiftStep: _ = 10,
|
|
4212
4212
|
tabIndex: x,
|
|
4213
4213
|
value: w
|
|
4214
|
-
} = e,
|
|
4214
|
+
} = e, A = ee.useRef(void 0), [v, C] = ee.useState(-1), [S, M] = ee.useState(-1), [$, N] = ee.useState(!1), z = ee.useRef(0), B = ee.useRef(null), [p, E] = l2({
|
|
4215
4215
|
controlled: w,
|
|
4216
4216
|
default: n ?? c,
|
|
4217
4217
|
name: "Slider"
|
|
@@ -4257,7 +4257,7 @@ function y2(e) {
|
|
|
4257
4257
|
activeIndex: Fe
|
|
4258
4258
|
});
|
|
4259
4259
|
}
|
|
4260
|
-
|
|
4260
|
+
E(X), L(Y), k && !Zn(X, p) && k(P, X, Y), h && h(P, B.current ?? X);
|
|
4261
4261
|
}, re = (P) => (U) => {
|
|
4262
4262
|
var Y;
|
|
4263
4263
|
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(U.key)) {
|
|
@@ -4347,7 +4347,7 @@ function y2(e) {
|
|
|
4347
4347
|
activeIndex: Ve
|
|
4348
4348
|
};
|
|
4349
4349
|
}, ue = Wr((P) => {
|
|
4350
|
-
const U = Hn(P,
|
|
4350
|
+
const U = Hn(P, A);
|
|
4351
4351
|
if (!U)
|
|
4352
4352
|
return;
|
|
4353
4353
|
if (z.current += 1, P.type === "mousemove" && P.buttons === 0) {
|
|
@@ -4365,10 +4365,10 @@ function y2(e) {
|
|
|
4365
4365
|
sliderRef: R,
|
|
4366
4366
|
activeIndex: ie,
|
|
4367
4367
|
setActive: C
|
|
4368
|
-
}),
|
|
4368
|
+
}), E(Y), !$ && z.current > d2 && N(!0), k && !Zn(Y, p) && k(P, Y, ie);
|
|
4369
4369
|
}), F = Wr((P) => {
|
|
4370
|
-
const U = Hn(P,
|
|
4371
|
-
if (
|
|
4370
|
+
const U = Hn(P, A);
|
|
4371
|
+
if (N(!1), !U)
|
|
4372
4372
|
return;
|
|
4373
4373
|
const {
|
|
4374
4374
|
newValue: Y
|
|
@@ -4376,14 +4376,14 @@ function y2(e) {
|
|
|
4376
4376
|
finger: U,
|
|
4377
4377
|
move: !0
|
|
4378
4378
|
});
|
|
4379
|
-
C(-1), P.type === "touchend" && M(-1), h && h(P, B.current ?? Y),
|
|
4379
|
+
C(-1), P.type === "touchend" && M(-1), h && h(P, B.current ?? Y), A.current = void 0, We();
|
|
4380
4380
|
}), pe = Wr((P) => {
|
|
4381
4381
|
if (r)
|
|
4382
4382
|
return;
|
|
4383
4383
|
Si() || P.preventDefault();
|
|
4384
4384
|
const U = P.changedTouches[0];
|
|
4385
|
-
U != null && (
|
|
4386
|
-
const Y = Hn(P,
|
|
4385
|
+
U != null && (A.current = U.identifier);
|
|
4386
|
+
const Y = Hn(P, A);
|
|
4387
4387
|
if (Y !== !1) {
|
|
4388
4388
|
const {
|
|
4389
4389
|
newValue: fe,
|
|
@@ -4395,7 +4395,7 @@ function y2(e) {
|
|
|
4395
4395
|
sliderRef: R,
|
|
4396
4396
|
activeIndex: X,
|
|
4397
4397
|
setActive: C
|
|
4398
|
-
}),
|
|
4398
|
+
}), E(fe), k && !Zn(fe, p) && k(P, fe, X);
|
|
4399
4399
|
}
|
|
4400
4400
|
z.current = 0;
|
|
4401
4401
|
const ie = or(R.current);
|
|
@@ -4425,7 +4425,7 @@ function y2(e) {
|
|
|
4425
4425
|
if ((fe = P.onMouseDown) == null || fe.call(P, U), r || U.defaultPrevented || U.button !== 0)
|
|
4426
4426
|
return;
|
|
4427
4427
|
U.preventDefault();
|
|
4428
|
-
const Y = Hn(U,
|
|
4428
|
+
const Y = Hn(U, A);
|
|
4429
4429
|
if (Y !== !1) {
|
|
4430
4430
|
const {
|
|
4431
4431
|
newValue: X,
|
|
@@ -4437,7 +4437,7 @@ function y2(e) {
|
|
|
4437
4437
|
sliderRef: R,
|
|
4438
4438
|
activeIndex: ge,
|
|
4439
4439
|
setActive: C
|
|
4440
|
-
}),
|
|
4440
|
+
}), E(X), k && !Zn(X, p) && k(U, X, ge);
|
|
4441
4441
|
}
|
|
4442
4442
|
z.current = 0;
|
|
4443
4443
|
const ie = or(R.current);
|
|
@@ -5960,7 +5960,7 @@ function Lu(e = {}) {
|
|
|
5960
5960
|
), x = y || !1;
|
|
5961
5961
|
let w = Hr;
|
|
5962
5962
|
m === "Root" || m === "root" ? w = r : m ? w = o : Bu(l) && (w = void 0);
|
|
5963
|
-
const
|
|
5963
|
+
const A = vu(l, {
|
|
5964
5964
|
shouldForwardProp: w,
|
|
5965
5965
|
label: Iu(d, m),
|
|
5966
5966
|
...b
|
|
@@ -5973,35 +5973,35 @@ function Lu(e = {}) {
|
|
|
5973
5973
|
};
|
|
5974
5974
|
if (yt(S)) {
|
|
5975
5975
|
const M = Zs(S);
|
|
5976
|
-
return function(
|
|
5977
|
-
return M.variants ? ir(
|
|
5976
|
+
return function(N) {
|
|
5977
|
+
return M.variants ? ir(N, M, N.theme.modularCssLayers ? f : void 0) : N.theme.modularCssLayers ? Vt(M.style, f) : M.style;
|
|
5978
5978
|
};
|
|
5979
5979
|
}
|
|
5980
5980
|
return S;
|
|
5981
5981
|
}, C = (...S) => {
|
|
5982
|
-
const M = [], $ = S.map(v),
|
|
5983
|
-
if (M.push(s), d && g &&
|
|
5982
|
+
const M = [], $ = S.map(v), N = [];
|
|
5983
|
+
if (M.push(s), d && g && N.push(function(E) {
|
|
5984
5984
|
var D, V;
|
|
5985
|
-
const I = (V = (D =
|
|
5985
|
+
const I = (V = (D = E.theme.components) == null ? void 0 : D[d]) == null ? void 0 : V.styleOverrides;
|
|
5986
5986
|
if (!I)
|
|
5987
5987
|
return null;
|
|
5988
5988
|
const j = {};
|
|
5989
5989
|
for (const Z in I)
|
|
5990
|
-
j[Z] = ir(
|
|
5991
|
-
return g(
|
|
5992
|
-
}), d && !_ &&
|
|
5990
|
+
j[Z] = ir(E, I[Z], E.theme.modularCssLayers ? "theme" : void 0);
|
|
5991
|
+
return g(E, j);
|
|
5992
|
+
}), d && !_ && N.push(function(E) {
|
|
5993
5993
|
var j, D;
|
|
5994
|
-
const k =
|
|
5995
|
-
return I ? Gs(
|
|
5996
|
-
}), x ||
|
|
5997
|
-
const p = $.shift(),
|
|
5994
|
+
const k = E.theme, I = (D = (j = k == null ? void 0 : k.components) == null ? void 0 : j[d]) == null ? void 0 : D.variants;
|
|
5995
|
+
return I ? Gs(E, I, [], E.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
5996
|
+
}), x || N.push(pn), Array.isArray($[0])) {
|
|
5997
|
+
const p = $.shift(), E = new Array(M.length).fill(""), k = new Array(N.length).fill("");
|
|
5998
5998
|
let I;
|
|
5999
|
-
I = [...
|
|
5999
|
+
I = [...E, ...p, ...k], I.raw = [...E, ...p.raw, ...k], M.unshift(I);
|
|
6000
6000
|
}
|
|
6001
|
-
const z = [...M, ...$, ...
|
|
6001
|
+
const z = [...M, ...$, ...N], B = A(...z);
|
|
6002
6002
|
return l.muiName && (B.muiName = l.muiName), process.env.NODE_ENV !== "production" && (B.displayName = Ru(d, m, l)), B;
|
|
6003
6003
|
};
|
|
6004
|
-
return
|
|
6004
|
+
return A.withConfig && (C.withConfig = A.withConfig), C;
|
|
6005
6005
|
};
|
|
6006
6006
|
}
|
|
6007
6007
|
function Ru(e, t, n) {
|
|
@@ -6336,7 +6336,7 @@ function Zu(e, t = {}) {
|
|
|
6336
6336
|
}), v;
|
|
6337
6337
|
},
|
|
6338
6338
|
generateStyleSheets: () => {
|
|
6339
|
-
var
|
|
6339
|
+
var N, z;
|
|
6340
6340
|
const v = [], C = e.defaultColorScheme || "light";
|
|
6341
6341
|
function S(B, p) {
|
|
6342
6342
|
Object.keys(p).length && v.push(typeof B == "string" ? {
|
|
@@ -6355,22 +6355,22 @@ function Zu(e, t = {}) {
|
|
|
6355
6355
|
if (M) {
|
|
6356
6356
|
const {
|
|
6357
6357
|
css: B
|
|
6358
|
-
} = M, p = (z = (
|
|
6358
|
+
} = M, p = (z = (N = a[C]) == null ? void 0 : N.palette) == null ? void 0 : z.mode, E = !r && p ? {
|
|
6359
6359
|
colorScheme: p,
|
|
6360
6360
|
...B
|
|
6361
6361
|
} : {
|
|
6362
6362
|
...B
|
|
6363
6363
|
};
|
|
6364
6364
|
S(n(C, {
|
|
6365
|
-
...
|
|
6366
|
-
}),
|
|
6365
|
+
...E
|
|
6366
|
+
}), E);
|
|
6367
6367
|
}
|
|
6368
6368
|
return Object.entries($).forEach(([B, {
|
|
6369
6369
|
css: p
|
|
6370
6370
|
}]) => {
|
|
6371
6371
|
var I, j;
|
|
6372
|
-
const
|
|
6373
|
-
colorScheme:
|
|
6372
|
+
const E = (j = (I = a[B]) == null ? void 0 : I.palette) == null ? void 0 : j.mode, k = !r && E ? {
|
|
6373
|
+
colorScheme: E,
|
|
6374
6374
|
...p
|
|
6375
6375
|
} : {
|
|
6376
6376
|
...p
|
|
@@ -6623,7 +6623,7 @@ function Do(e) {
|
|
|
6623
6623
|
color: _,
|
|
6624
6624
|
name: x,
|
|
6625
6625
|
mainShade: w = 500,
|
|
6626
|
-
lightShade:
|
|
6626
|
+
lightShade: A = 300,
|
|
6627
6627
|
darkShade: v = 700
|
|
6628
6628
|
}) => {
|
|
6629
6629
|
if (_ = {
|
|
@@ -6646,7 +6646,7 @@ const theme1 = createTheme({ palette: {
|
|
|
6646
6646
|
const theme2 = createTheme({ palette: {
|
|
6647
6647
|
primary: { main: green[500] },
|
|
6648
6648
|
} });` : jt(12, x ? ` (${x})` : "", JSON.stringify(_.main)));
|
|
6649
|
-
return o ? (ji(o, _, "light",
|
|
6649
|
+
return o ? (ji(o, _, "light", A, r), ji(o, _, "dark", v, r)) : (zi(_, "light", A, r), zi(_, "dark", v, r)), _.contrastText || (_.contrastText = y(_.main)), _;
|
|
6650
6650
|
};
|
|
6651
6651
|
let b;
|
|
6652
6652
|
return t === "light" ? b = Js() : t === "dark" && (b = ta()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Je({
|
|
@@ -6755,7 +6755,7 @@ function a1(e, t) {
|
|
|
6755
6755
|
...h
|
|
6756
6756
|
} = typeof t == "function" ? t(e) : t;
|
|
6757
6757
|
process.env.NODE_ENV !== "production" && (typeof r != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
6758
|
-
const y = r / 14, g = m || ((_) => `${_ / c * y}rem`), b = (_, x, w,
|
|
6758
|
+
const y = r / 14, g = m || ((_) => `${_ / c * y}rem`), b = (_, x, w, A, v) => ({
|
|
6759
6759
|
fontFamily: n,
|
|
6760
6760
|
fontWeight: _,
|
|
6761
6761
|
fontSize: g(x),
|
|
@@ -6764,7 +6764,7 @@ function a1(e, t) {
|
|
|
6764
6764
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
6765
6765
|
// across font-families can cause issues with the kerning.
|
|
6766
6766
|
...n === Wi ? {
|
|
6767
|
-
letterSpacing: `${s1(
|
|
6767
|
+
letterSpacing: `${s1(A / x)}em`
|
|
6768
6768
|
} : {},
|
|
6769
6769
|
...v,
|
|
6770
6770
|
...d
|
|
@@ -6971,13 +6971,13 @@ function uo(e = {}, ...t) {
|
|
|
6971
6971
|
const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (_, x) => {
|
|
6972
6972
|
let w;
|
|
6973
6973
|
for (w in _) {
|
|
6974
|
-
const
|
|
6975
|
-
if (b.includes(w) && Object.keys(
|
|
6974
|
+
const A = _[w];
|
|
6975
|
+
if (b.includes(w) && Object.keys(A).length > 0) {
|
|
6976
6976
|
if (process.env.NODE_ENV !== "production") {
|
|
6977
6977
|
const v = Ro("", w);
|
|
6978
6978
|
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${w}\` internal state.`, "You can not override it like this: ", JSON.stringify(_, null, 2), "", `Instead, you need to use the '&.${v}' syntax:`, JSON.stringify({
|
|
6979
6979
|
root: {
|
|
6980
|
-
[`&.${v}`]:
|
|
6980
|
+
[`&.${v}`]: A
|
|
6981
6981
|
}
|
|
6982
6982
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
6983
6983
|
`));
|
|
@@ -7170,12 +7170,12 @@ function E1(e = {}, ...t) {
|
|
|
7170
7170
|
} = n, w = {
|
|
7171
7171
|
...x
|
|
7172
7172
|
};
|
|
7173
|
-
let
|
|
7174
|
-
if ((y === "dark" && !("dark" in n) || y === "light" && !("light" in n)) && (
|
|
7173
|
+
let A = b;
|
|
7174
|
+
if ((y === "dark" && !("dark" in n) || y === "light" && !("light" in n)) && (A = !0), !A)
|
|
7175
7175
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` : jt(21, y));
|
|
7176
7176
|
let v;
|
|
7177
7177
|
a && (v = "oklch");
|
|
7178
|
-
const C = Zr(v, w,
|
|
7178
|
+
const C = Zr(v, w, A, m, y);
|
|
7179
7179
|
f && !w.light && Zr(v, w, f, void 0, "light"), _ && !w.dark && Zr(v, w, _, void 0, "dark");
|
|
7180
7180
|
let S = {
|
|
7181
7181
|
defaultColorScheme: y,
|
|
@@ -7192,7 +7192,7 @@ function E1(e = {}, ...t) {
|
|
|
7192
7192
|
spacing: $1(m.spacing)
|
|
7193
7193
|
};
|
|
7194
7194
|
Object.keys(S.colorSchemes).forEach((B) => {
|
|
7195
|
-
const p = S.colorSchemes[B].palette,
|
|
7195
|
+
const p = S.colorSchemes[B].palette, E = (I) => {
|
|
7196
7196
|
const j = I.split("-"), D = j[1], V = j[2];
|
|
7197
7197
|
return g(I, p[D][V]);
|
|
7198
7198
|
};
|
|
@@ -7205,14 +7205,14 @@ function E1(e = {}, ...t) {
|
|
|
7205
7205
|
return I(j, D);
|
|
7206
7206
|
}
|
|
7207
7207
|
if (T1(p, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), p.mode === "light") {
|
|
7208
|
-
O(p.Alert, "errorColor", k(ye, a ? g("palette-error-light") : p.error.light, 0.6)), O(p.Alert, "infoColor", k(ye, a ? g("palette-info-light") : p.info.light, 0.6)), O(p.Alert, "successColor", k(ye, a ? g("palette-success-light") : p.success.light, 0.6)), O(p.Alert, "warningColor", k(ye, a ? g("palette-warning-light") : p.warning.light, 0.6)), O(p.Alert, "errorFilledBg",
|
|
7208
|
+
O(p.Alert, "errorColor", k(ye, a ? g("palette-error-light") : p.error.light, 0.6)), O(p.Alert, "infoColor", k(ye, a ? g("palette-info-light") : p.info.light, 0.6)), O(p.Alert, "successColor", k(ye, a ? g("palette-success-light") : p.success.light, 0.6)), O(p.Alert, "warningColor", k(ye, a ? g("palette-warning-light") : p.warning.light, 0.6)), O(p.Alert, "errorFilledBg", E("palette-error-main")), O(p.Alert, "infoFilledBg", E("palette-info-main")), O(p.Alert, "successFilledBg", E("palette-success-main")), O(p.Alert, "warningFilledBg", E("palette-warning-main")), O(p.Alert, "errorFilledColor", st(() => p.getContrastText(p.error.main))), O(p.Alert, "infoFilledColor", st(() => p.getContrastText(p.info.main))), O(p.Alert, "successFilledColor", st(() => p.getContrastText(p.success.main))), O(p.Alert, "warningFilledColor", st(() => p.getContrastText(p.warning.main))), O(p.Alert, "errorStandardBg", k(be, a ? g("palette-error-light") : p.error.light, 0.9)), O(p.Alert, "infoStandardBg", k(be, a ? g("palette-info-light") : p.info.light, 0.9)), O(p.Alert, "successStandardBg", k(be, a ? g("palette-success-light") : p.success.light, 0.9)), O(p.Alert, "warningStandardBg", k(be, a ? g("palette-warning-light") : p.warning.light, 0.9)), O(p.Alert, "errorIconColor", E("palette-error-main")), O(p.Alert, "infoIconColor", E("palette-info-main")), O(p.Alert, "successIconColor", E("palette-success-main")), O(p.Alert, "warningIconColor", E("palette-warning-main")), O(p.AppBar, "defaultBg", E("palette-grey-100")), O(p.Avatar, "defaultBg", E("palette-grey-400")), O(p.Button, "inheritContainedBg", E("palette-grey-300")), O(p.Button, "inheritContainedHoverBg", E("palette-grey-A100")), O(p.Chip, "defaultBorder", E("palette-grey-400")), O(p.Chip, "defaultAvatarColor", E("palette-grey-700")), O(p.Chip, "defaultIconColor", E("palette-grey-700")), O(p.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), O(p.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), O(p.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), O(p.LinearProgress, "primaryBg", k(be, a ? g("palette-primary-main") : p.primary.main, 0.62)), O(p.LinearProgress, "secondaryBg", k(be, a ? g("palette-secondary-main") : p.secondary.main, 0.62)), O(p.LinearProgress, "errorBg", k(be, a ? g("palette-error-main") : p.error.main, 0.62)), O(p.LinearProgress, "infoBg", k(be, a ? g("palette-info-main") : p.info.main, 0.62)), O(p.LinearProgress, "successBg", k(be, a ? g("palette-success-main") : p.success.main, 0.62)), O(p.LinearProgress, "warningBg", k(be, a ? g("palette-warning-light") : p.warning.main, 0.62)), O(p.Skeleton, "bg", v ? k(Bt, a ? g("palette-text-primary") : p.text.primary, 0.11) : `rgba(${E("palette-text-primaryChannel")} / 0.11)`), O(p.Slider, "primaryTrack", k(be, a ? g("palette-primary-main") : p.primary.main, 0.62)), O(p.Slider, "secondaryTrack", k(be, a ? g("palette-secondary-main") : p.secondary.main, 0.62)), O(p.Slider, "errorTrack", k(be, a ? g("palette-error-main") : p.error.main, 0.62)), O(p.Slider, "infoTrack", k(be, a ? g("palette-info-main") : p.info.main, 0.62)), O(p.Slider, "successTrack", k(be, a ? g("palette-success-main") : p.success.main, 0.62)), O(p.Slider, "warningTrack", k(be, a ? g("palette-warning-main") : p.warning.main, 0.62));
|
|
7209
7209
|
const I = v ? k(ye, a ? g("palette-background-default") : p.background.default, 0.6825) : Xn(p.background.default, 0.8);
|
|
7210
|
-
O(p.SnackbarContent, "bg", I), O(p.SnackbarContent, "color", st(() => v ? co.text.primary : p.getContrastText(I))), O(p.SpeedDialAction, "fabHoverBg", Xn(p.background.paper, 0.15)), O(p.StepConnector, "border",
|
|
7210
|
+
O(p.SnackbarContent, "bg", I), O(p.SnackbarContent, "color", st(() => v ? co.text.primary : p.getContrastText(I))), O(p.SpeedDialAction, "fabHoverBg", Xn(p.background.paper, 0.15)), O(p.StepConnector, "border", E("palette-grey-400")), O(p.StepContent, "border", E("palette-grey-400")), O(p.Switch, "defaultColor", E("palette-common-white")), O(p.Switch, "defaultDisabledColor", E("palette-grey-100")), O(p.Switch, "primaryDisabledColor", k(be, a ? g("palette-primary-main") : p.primary.main, 0.62)), O(p.Switch, "secondaryDisabledColor", k(be, a ? g("palette-secondary-main") : p.secondary.main, 0.62)), O(p.Switch, "errorDisabledColor", k(be, a ? g("palette-error-main") : p.error.main, 0.62)), O(p.Switch, "infoDisabledColor", k(be, a ? g("palette-info-main") : p.info.main, 0.62)), O(p.Switch, "successDisabledColor", k(be, a ? g("palette-success-main") : p.success.main, 0.62)), O(p.Switch, "warningDisabledColor", k(be, a ? g("palette-warning-main") : p.warning.main, 0.62)), O(p.TableCell, "border", k(be, Bt(a ? g("palette-divider") : p.divider, 1), 0.88)), O(p.Tooltip, "bg", k(Bt, a ? g("palette-grey-700") : p.grey[700], 0.92));
|
|
7211
7211
|
}
|
|
7212
7212
|
if (p.mode === "dark") {
|
|
7213
|
-
O(p.Alert, "errorColor", k(be, a ? g("palette-error-light") : p.error.light, 0.6)), O(p.Alert, "infoColor", k(be, a ? g("palette-info-light") : p.info.light, 0.6)), O(p.Alert, "successColor", k(be, a ? g("palette-success-light") : p.success.light, 0.6)), O(p.Alert, "warningColor", k(be, a ? g("palette-warning-light") : p.warning.light, 0.6)), O(p.Alert, "errorFilledBg",
|
|
7213
|
+
O(p.Alert, "errorColor", k(be, a ? g("palette-error-light") : p.error.light, 0.6)), O(p.Alert, "infoColor", k(be, a ? g("palette-info-light") : p.info.light, 0.6)), O(p.Alert, "successColor", k(be, a ? g("palette-success-light") : p.success.light, 0.6)), O(p.Alert, "warningColor", k(be, a ? g("palette-warning-light") : p.warning.light, 0.6)), O(p.Alert, "errorFilledBg", E("palette-error-dark")), O(p.Alert, "infoFilledBg", E("palette-info-dark")), O(p.Alert, "successFilledBg", E("palette-success-dark")), O(p.Alert, "warningFilledBg", E("palette-warning-dark")), O(p.Alert, "errorFilledColor", st(() => p.getContrastText(p.error.dark))), O(p.Alert, "infoFilledColor", st(() => p.getContrastText(p.info.dark))), O(p.Alert, "successFilledColor", st(() => p.getContrastText(p.success.dark))), O(p.Alert, "warningFilledColor", st(() => p.getContrastText(p.warning.dark))), O(p.Alert, "errorStandardBg", k(ye, a ? g("palette-error-light") : p.error.light, 0.9)), O(p.Alert, "infoStandardBg", k(ye, a ? g("palette-info-light") : p.info.light, 0.9)), O(p.Alert, "successStandardBg", k(ye, a ? g("palette-success-light") : p.success.light, 0.9)), O(p.Alert, "warningStandardBg", k(ye, a ? g("palette-warning-light") : p.warning.light, 0.9)), O(p.Alert, "errorIconColor", E("palette-error-main")), O(p.Alert, "infoIconColor", E("palette-info-main")), O(p.Alert, "successIconColor", E("palette-success-main")), O(p.Alert, "warningIconColor", E("palette-warning-main")), O(p.AppBar, "defaultBg", E("palette-grey-900")), O(p.AppBar, "darkBg", E("palette-background-paper")), O(p.AppBar, "darkColor", E("palette-text-primary")), O(p.Avatar, "defaultBg", E("palette-grey-600")), O(p.Button, "inheritContainedBg", E("palette-grey-800")), O(p.Button, "inheritContainedHoverBg", E("palette-grey-700")), O(p.Chip, "defaultBorder", E("palette-grey-700")), O(p.Chip, "defaultAvatarColor", E("palette-grey-300")), O(p.Chip, "defaultIconColor", E("palette-grey-300")), O(p.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), O(p.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), O(p.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), O(p.LinearProgress, "primaryBg", k(ye, a ? g("palette-primary-main") : p.primary.main, 0.5)), O(p.LinearProgress, "secondaryBg", k(ye, a ? g("palette-secondary-main") : p.secondary.main, 0.5)), O(p.LinearProgress, "errorBg", k(ye, a ? g("palette-error-main") : p.error.main, 0.5)), O(p.LinearProgress, "infoBg", k(ye, a ? g("palette-info-main") : p.info.main, 0.5)), O(p.LinearProgress, "successBg", k(ye, a ? g("palette-success-main") : p.success.main, 0.5)), O(p.LinearProgress, "warningBg", k(ye, a ? g("palette-warning-main") : p.warning.main, 0.5)), O(p.Skeleton, "bg", v ? k(Bt, a ? g("palette-text-primary") : p.text.primary, 0.13) : `rgba(${E("palette-text-primaryChannel")} / 0.13)`), O(p.Slider, "primaryTrack", k(ye, a ? g("palette-primary-main") : p.primary.main, 0.5)), O(p.Slider, "secondaryTrack", k(ye, a ? g("palette-secondary-main") : p.secondary.main, 0.5)), O(p.Slider, "errorTrack", k(ye, a ? g("palette-error-main") : p.error.main, 0.5)), O(p.Slider, "infoTrack", k(ye, a ? g("palette-info-main") : p.info.main, 0.5)), O(p.Slider, "successTrack", k(ye, a ? g("palette-success-main") : p.success.main, 0.5)), O(p.Slider, "warningTrack", k(ye, a ? g("palette-warning-light") : p.warning.main, 0.5));
|
|
7214
7214
|
const I = v ? k(be, a ? g("palette-background-default") : p.background.default, 0.985) : Xn(p.background.default, 0.98);
|
|
7215
|
-
O(p.SnackbarContent, "bg", I), O(p.SnackbarContent, "color", st(() => v ? ea.text.primary : p.getContrastText(I))), O(p.SpeedDialAction, "fabHoverBg", Xn(p.background.paper, 0.15)), O(p.StepConnector, "border",
|
|
7215
|
+
O(p.SnackbarContent, "bg", I), O(p.SnackbarContent, "color", st(() => v ? ea.text.primary : p.getContrastText(I))), O(p.SpeedDialAction, "fabHoverBg", Xn(p.background.paper, 0.15)), O(p.StepConnector, "border", E("palette-grey-600")), O(p.StepContent, "border", E("palette-grey-600")), O(p.Switch, "defaultColor", E("palette-grey-300")), O(p.Switch, "defaultDisabledColor", E("palette-grey-600")), O(p.Switch, "primaryDisabledColor", k(ye, a ? g("palette-primary-main") : p.primary.main, 0.55)), O(p.Switch, "secondaryDisabledColor", k(ye, a ? g("palette-secondary-main") : p.secondary.main, 0.55)), O(p.Switch, "errorDisabledColor", k(ye, a ? g("palette-error-main") : p.error.main, 0.55)), O(p.Switch, "infoDisabledColor", k(ye, a ? g("palette-info-main") : p.info.main, 0.55)), O(p.Switch, "successDisabledColor", k(ye, a ? g("palette-success-main") : p.success.main, 0.55)), O(p.Switch, "warningDisabledColor", k(ye, a ? g("palette-warning-light") : p.warning.main, 0.55)), O(p.TableCell, "border", k(ye, Bt(a ? g("palette-divider") : p.divider, 1), 0.68)), O(p.Tooltip, "bg", k(Bt, a ? g("palette-grey-700") : p.grey[700], 0.92));
|
|
7216
7216
|
}
|
|
7217
7217
|
a || (pt(p.background, "default"), pt(p.background, "paper"), pt(p.common, "background"), pt(p.common, "onBackground"), pt(p, "divider")), Object.keys(p).forEach((I) => {
|
|
7218
7218
|
const j = p[I];
|
|
@@ -7227,12 +7227,12 @@ function E1(e = {}, ...t) {
|
|
|
7227
7227
|
enableContrastVars: a
|
|
7228
7228
|
}, {
|
|
7229
7229
|
vars: $,
|
|
7230
|
-
generateThemeVars:
|
|
7230
|
+
generateThemeVars: N,
|
|
7231
7231
|
generateStyleSheets: z
|
|
7232
7232
|
} = Zu(S, M);
|
|
7233
7233
|
return S.vars = $, Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B, p]) => {
|
|
7234
7234
|
S[B] = p;
|
|
7235
|
-
}), S.generateThemeVars =
|
|
7235
|
+
}), S.generateThemeVars = N, S.generateStyleSheets = z, S.generateSpacing = function() {
|
|
7236
7236
|
return Us(m.spacing, Mo(this));
|
|
7237
7237
|
}, S.getColorSchemeSelector = Gu(c), S.spacing = S.generateSpacing(), S.shouldSkipGeneratingVar = l, S.unstable_sxConfig = {
|
|
7238
7238
|
...$r,
|
|
@@ -7902,17 +7902,17 @@ const W1 = Ht("span", {
|
|
|
7902
7902
|
getAriaLabel: _,
|
|
7903
7903
|
getAriaValueText: x,
|
|
7904
7904
|
marks: w = !1,
|
|
7905
|
-
max:
|
|
7905
|
+
max: A = 100,
|
|
7906
7906
|
min: v = 0,
|
|
7907
7907
|
name: C,
|
|
7908
7908
|
onChange: S,
|
|
7909
7909
|
onChangeCommitted: M,
|
|
7910
7910
|
orientation: $ = "horizontal",
|
|
7911
|
-
shiftStep:
|
|
7911
|
+
shiftStep: N = 10,
|
|
7912
7912
|
size: z = "medium",
|
|
7913
7913
|
step: B = 1,
|
|
7914
7914
|
scale: p = Zi,
|
|
7915
|
-
slotProps:
|
|
7915
|
+
slotProps: E,
|
|
7916
7916
|
slots: k,
|
|
7917
7917
|
tabIndex: I,
|
|
7918
7918
|
track: j = "normal",
|
|
@@ -7923,7 +7923,7 @@ const W1 = Ht("span", {
|
|
|
7923
7923
|
} = r, R = {
|
|
7924
7924
|
...r,
|
|
7925
7925
|
isRtl: o,
|
|
7926
|
-
max:
|
|
7926
|
+
max: A,
|
|
7927
7927
|
min: v,
|
|
7928
7928
|
classes: y,
|
|
7929
7929
|
disabled: f,
|
|
@@ -7933,7 +7933,7 @@ const W1 = Ht("span", {
|
|
|
7933
7933
|
color: h,
|
|
7934
7934
|
size: z,
|
|
7935
7935
|
step: B,
|
|
7936
|
-
shiftStep:
|
|
7936
|
+
shiftStep: N,
|
|
7937
7937
|
scale: p,
|
|
7938
7938
|
track: j,
|
|
7939
7939
|
valueLabelDisplay: V,
|
|
@@ -7959,7 +7959,7 @@ const W1 = Ht("span", {
|
|
|
7959
7959
|
rootRef: n
|
|
7960
7960
|
});
|
|
7961
7961
|
R.marked = F.length > 0 && F.some((ke) => ke.label), R.dragging = ue, R.focusedThumbIndex = se;
|
|
7962
|
-
const De = H1(R), Pe = (k == null ? void 0 : k.root) ?? d.Root ?? V1, Be = (k == null ? void 0 : k.rail) ?? d.Rail ?? z1, ft = (k == null ? void 0 : k.track) ?? d.Track ?? j1, Ct = (k == null ? void 0 : k.thumb) ?? d.Thumb ?? q1, Kt = (k == null ? void 0 : k.valueLabel) ?? d.ValueLabel ?? sa, Ge = (k == null ? void 0 : k.mark) ?? d.Mark ?? W1, Ot = (k == null ? void 0 : k.markLabel) ?? d.MarkLabel ?? U1, P = (k == null ? void 0 : k.input) ?? d.Input ?? "input", U = (
|
|
7962
|
+
const De = H1(R), Pe = (k == null ? void 0 : k.root) ?? d.Root ?? V1, Be = (k == null ? void 0 : k.rail) ?? d.Rail ?? z1, ft = (k == null ? void 0 : k.track) ?? d.Track ?? j1, Ct = (k == null ? void 0 : k.thumb) ?? d.Thumb ?? q1, Kt = (k == null ? void 0 : k.valueLabel) ?? d.ValueLabel ?? sa, Ge = (k == null ? void 0 : k.mark) ?? d.Mark ?? W1, Ot = (k == null ? void 0 : k.markLabel) ?? d.MarkLabel ?? U1, P = (k == null ? void 0 : k.input) ?? d.Input ?? "input", U = (E == null ? void 0 : E.root) ?? m.root, Y = (E == null ? void 0 : E.rail) ?? m.rail, ie = (E == null ? void 0 : E.track) ?? m.track, fe = (E == null ? void 0 : E.thumb) ?? m.thumb, X = (E == null ? void 0 : E.valueLabel) ?? m.valueLabel, ge = (E == null ? void 0 : E.mark) ?? m.mark, Fe = (E == null ? void 0 : E.markLabel) ?? m.markLabel, Ee = (E == null ? void 0 : E.input) ?? m.input, Ve = wt({
|
|
7963
7963
|
elementType: Pe,
|
|
7964
7964
|
getSlotProps: H,
|
|
7965
7965
|
externalSlotProps: U,
|
|
@@ -8032,8 +8032,8 @@ const W1 = Ht("span", {
|
|
|
8032
8032
|
...Ae
|
|
8033
8033
|
}), /* @__PURE__ */ u(ft, {
|
|
8034
8034
|
...Or
|
|
8035
|
-
}), F.filter((ke) => ke.value >= v && ke.value <=
|
|
8036
|
-
const q = dr(ke.value, v,
|
|
8035
|
+
}), F.filter((ke) => ke.value >= v && ke.value <= A).map((ke, Oe) => {
|
|
8036
|
+
const q = dr(ke.value, v, A), te = J[Q].offset(q);
|
|
8037
8037
|
let ae;
|
|
8038
8038
|
return j === !1 ? ae = pe.includes(ke.value) : ae = j === "normal" && (K ? ke.value >= pe[0] && ke.value <= pe[pe.length - 1] : ke.value <= pe[0]) || j === "inverted" && (K ? ke.value <= pe[0] || ke.value >= pe[pe.length - 1] : ke.value >= pe[0]), /* @__PURE__ */ T(ee.Fragment, {
|
|
8039
8039
|
children: [/* @__PURE__ */ u(Ge, {
|
|
@@ -8063,7 +8063,7 @@ const W1 = Ht("span", {
|
|
|
8063
8063
|
}) : null]
|
|
8064
8064
|
}, Oe);
|
|
8065
8065
|
}), pe.map((ke, Oe) => {
|
|
8066
|
-
const q = dr(ke, v,
|
|
8066
|
+
const q = dr(ke, v, A), te = J[Q].offset(q), ae = V === "off" ? K1 : Kt;
|
|
8067
8067
|
return (
|
|
8068
8068
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
8069
8069
|
/* @__PURE__ */ u(ae, {
|
|
@@ -8426,8 +8426,8 @@ const Z1 = "_slider_1prh1_2", G1 = "_playButton_1prh1_14", Y1 = "_sliderOpen_1pr
|
|
|
8426
8426
|
M.current();
|
|
8427
8427
|
}
|
|
8428
8428
|
{
|
|
8429
|
-
let
|
|
8430
|
-
return () => clearInterval(
|
|
8429
|
+
let N = setInterval($, C);
|
|
8430
|
+
return () => clearInterval(N);
|
|
8431
8431
|
}
|
|
8432
8432
|
}, [C, ...S]);
|
|
8433
8433
|
})(() => {
|
|
@@ -8436,7 +8436,7 @@ const Z1 = "_slider_1prh1_2", G1 = "_playButton_1prh1_14", Y1 = "_sliderOpen_1pr
|
|
|
8436
8436
|
return C > r ? (c(n), n) : (c(C), C);
|
|
8437
8437
|
});
|
|
8438
8438
|
}, 1e3, [n, r, b]);
|
|
8439
|
-
const
|
|
8439
|
+
const A = Ya({
|
|
8440
8440
|
palette: {
|
|
8441
8441
|
primary: {
|
|
8442
8442
|
main: "#605b56"
|
|
@@ -8459,7 +8459,7 @@ const Z1 = "_slider_1prh1_2", G1 = "_playButton_1prh1_14", Y1 = "_sliderOpen_1pr
|
|
|
8459
8459
|
}
|
|
8460
8460
|
}
|
|
8461
8461
|
});
|
|
8462
|
-
return /* @__PURE__ */ u(Qa, { theme:
|
|
8462
|
+
return /* @__PURE__ */ u(Qa, { theme: A, children: /* @__PURE__ */ T(Xa, { sx: {
|
|
8463
8463
|
width: 400
|
|
8464
8464
|
}, className: `${e ? _n.sliderResults : _n.slider} ${a ? _n.sliderOpen : ""}`, style: {
|
|
8465
8465
|
zIndex: s
|
|
@@ -8620,7 +8620,7 @@ const Nd = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8620
8620
|
isBeingProcessed: b
|
|
8621
8621
|
} = e, [f, _] = ce(!1), {
|
|
8622
8622
|
t: x
|
|
8623
|
-
} = de(), w = l && l.edit && !e.is_default && !e.is_baseline,
|
|
8623
|
+
} = de(), w = l && l.edit && !e.is_default && !e.is_baseline, A = l && l.trash && !e.is_default && !e.is_baseline;
|
|
8624
8624
|
return /* @__PURE__ */ T("div", { className: et.listElement, style: {
|
|
8625
8625
|
borderBottom: `1px solid ${o}`
|
|
8626
8626
|
}, children: [
|
|
@@ -8656,7 +8656,7 @@ const Nd = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8656
8656
|
/* @__PURE__ */ u("button", { onClick: () => l.info.onclick(e), disabled: l.info.disabled || !1, children: /* @__PURE__ */ u("img", { src: Td }) }),
|
|
8657
8657
|
/* @__PURE__ */ u(ct, { text: l.info.tooltiptext, position: "left" })
|
|
8658
8658
|
] }),
|
|
8659
|
-
|
|
8659
|
+
A && /* @__PURE__ */ T("div", { className: "tooltip-parent", children: [
|
|
8660
8660
|
/* @__PURE__ */ u("button", { onClick: () => l.trash.onclick(e), disabled: l.trash.disabled || !1, children: /* @__PURE__ */ u("img", { src: Cd }) }),
|
|
8661
8661
|
/* @__PURE__ */ u(ct, { text: l.trash.tooltiptext, position: "left" })
|
|
8662
8662
|
] }),
|
|
@@ -8749,12 +8749,12 @@ const Yi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
8749
8749
|
return /* @__PURE__ */ new Date(`${C[3]}-${C[2]}-${C[1]}`);
|
|
8750
8750
|
const S = /^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);
|
|
8751
8751
|
return S ? parseInt(S[1]) > 12 ? /* @__PURE__ */ new Date(`${S[3]}-${S[2]}-${S[1]}`) : /* @__PURE__ */ new Date(`${S[3]}-${S[1]}-${S[2]}`) : null;
|
|
8752
|
-
}, w = (v) => x(v) !== null,
|
|
8752
|
+
}, w = (v) => x(v) !== null, A = (v) => {
|
|
8753
8753
|
if (!f || f.length === 0) return;
|
|
8754
8754
|
let C = [...f];
|
|
8755
8755
|
const S = C.find(($) => $[v] !== null && $[v] !== void 0), M = S ? w(S[v]) : !1;
|
|
8756
|
-
C.sort(($,
|
|
8757
|
-
const z = $[v], B =
|
|
8756
|
+
C.sort(($, N) => {
|
|
8757
|
+
const z = $[v], B = N[v];
|
|
8758
8758
|
if (z == null && B == null) return 0;
|
|
8759
8759
|
if (z == null) return 1;
|
|
8760
8760
|
if (B == null) return -1;
|
|
@@ -8762,8 +8762,8 @@ const Yi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
8762
8762
|
const k = x(z), I = x(B);
|
|
8763
8763
|
return !k && !I ? 0 : k ? I ? k - I : -1 : 1;
|
|
8764
8764
|
}
|
|
8765
|
-
const p = String(z || "").trim(),
|
|
8766
|
-
return p.localeCompare(
|
|
8765
|
+
const p = String(z || "").trim(), E = String(B || "").trim();
|
|
8766
|
+
return p.localeCompare(E);
|
|
8767
8767
|
}), _(C);
|
|
8768
8768
|
};
|
|
8769
8769
|
return /* @__PURE__ */ T("div", { className: mt.elementSelector, style: {
|
|
@@ -8773,10 +8773,10 @@ const Yi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
8773
8773
|
/* @__PURE__ */ T("div", { className: mt.header, style: {
|
|
8774
8774
|
borderBottom: `1px solid ${n}`
|
|
8775
8775
|
}, children: [
|
|
8776
|
-
/* @__PURE__ */ u("div", { className: mt.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ u("div", { className: mt.elementName, children: /* @__PURE__ */ T("button", { onClick: () =>
|
|
8776
|
+
/* @__PURE__ */ u("div", { className: mt.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ u("div", { className: mt.elementName, children: /* @__PURE__ */ T("button", { onClick: () => A("name"), children: [
|
|
8777
8777
|
/* @__PURE__ */ u("span", { children: b(c.name) }),
|
|
8778
8778
|
/* @__PURE__ */ u("img", { src: Yi, alt: "order arrow" })
|
|
8779
|
-
] }) }, v) : v === "data" ? /* @__PURE__ */ u("div", { className: mt.elementDate, children: /* @__PURE__ */ T("button", { onClick: () =>
|
|
8779
|
+
] }) }, v) : v === "data" ? /* @__PURE__ */ u("div", { className: mt.elementDate, children: /* @__PURE__ */ T("button", { onClick: () => A("created_at"), children: [
|
|
8780
8780
|
/* @__PURE__ */ u("span", { children: b(c.data) }),
|
|
8781
8781
|
/* @__PURE__ */ u("img", { src: Yi, alt: "order arrow" })
|
|
8782
8782
|
] }) }, v) : /* @__PURE__ */ u("div", { className: mt.elementDate, children: /* @__PURE__ */ u("span", { children: b(c[v]) }) }, v)) }),
|
|
@@ -8987,13 +8987,13 @@ function jd(e) {
|
|
|
8987
8987
|
_(v.values);
|
|
8988
8988
|
}
|
|
8989
8989
|
})), [n, a, r, _]), le.useEffect(() => n._removeUnmounted());
|
|
8990
|
-
const x = h.current !== n, w = y.current,
|
|
8990
|
+
const x = h.current !== n, w = y.current, A = le.useMemo(() => {
|
|
8991
8991
|
if (s)
|
|
8992
8992
|
return null;
|
|
8993
8993
|
const v = !x && !sr(w, r);
|
|
8994
8994
|
return x || v ? f() : null;
|
|
8995
8995
|
}, [s, x, r, w, f]);
|
|
8996
|
-
return
|
|
8996
|
+
return A !== null ? A : g;
|
|
8997
8997
|
}
|
|
8998
8998
|
function qd(e) {
|
|
8999
8999
|
const t = zo(), { name: n, disabled: r, control: o = t, shouldUnregister: s, defaultValue: a, exact: l = !0 } = e, c = Id(o._names.array, n), d = le.useMemo(() => Ze(o._formValues, n, Ze(o._defaultValues, n, a)), [o, n, a]), m = jd({
|
|
@@ -9052,7 +9052,7 @@ function qd(e) {
|
|
|
9052
9052
|
setCustomValidity: (S) => Qn(v.setCustomValidity) && v.setCustomValidity(S),
|
|
9053
9053
|
reportValidity: () => Qn(v.reportValidity) && v.reportValidity()
|
|
9054
9054
|
});
|
|
9055
|
-
}, [o._fields, n]),
|
|
9055
|
+
}, [o._fields, n]), A = le.useMemo(() => ({
|
|
9056
9056
|
name: n,
|
|
9057
9057
|
value: m,
|
|
9058
9058
|
...Yr(r) || h.disabled ? { disabled: h.disabled || r } : {},
|
|
@@ -9067,8 +9067,8 @@ function qd(e) {
|
|
|
9067
9067
|
...Yr(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
9068
9068
|
});
|
|
9069
9069
|
const S = (M, $) => {
|
|
9070
|
-
const
|
|
9071
|
-
|
|
9070
|
+
const N = Ze(o._fields, M);
|
|
9071
|
+
N && N._f && (N._f.mount = $);
|
|
9072
9072
|
};
|
|
9073
9073
|
if (S(n, !0), v) {
|
|
9074
9074
|
const M = pa(Ze(o._options.defaultValues, n, y.current.defaultValue));
|
|
@@ -9083,10 +9083,10 @@ function qd(e) {
|
|
|
9083
9083
|
name: n
|
|
9084
9084
|
});
|
|
9085
9085
|
}, [r, n, o]), le.useMemo(() => ({
|
|
9086
|
-
field:
|
|
9086
|
+
field: A,
|
|
9087
9087
|
formState: h,
|
|
9088
9088
|
fieldState: f
|
|
9089
|
-
}), [
|
|
9089
|
+
}), [A, h, f]);
|
|
9090
9090
|
}
|
|
9091
9091
|
const Dn = (e) => e.render(qd(e)), Wd = le.createContext(null);
|
|
9092
9092
|
Wd.displayName = "HookFormContext";
|
|
@@ -9143,9 +9143,9 @@ const Qd = "data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%20
|
|
|
9143
9143
|
clearErrors: x
|
|
9144
9144
|
} = t, {
|
|
9145
9145
|
errorColor: w
|
|
9146
|
-
} = Bn((S) => S), [
|
|
9146
|
+
} = Bn((S) => S), [A, v] = ce(!1);
|
|
9147
9147
|
xe(a);
|
|
9148
|
-
const C = () => r ? r === "password" &&
|
|
9148
|
+
const C = () => r ? r === "password" && A ? "text" : r : "text";
|
|
9149
9149
|
return /* @__PURE__ */ u(Dn, { name: n, control: f, rules: {
|
|
9150
9150
|
required: a ? `${b(o)} ${b("errorMessages.required")}` : !1,
|
|
9151
9151
|
maxLength: s || void 0,
|
|
@@ -9157,7 +9157,7 @@ const Qd = "data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%20
|
|
|
9157
9157
|
var B;
|
|
9158
9158
|
const {
|
|
9159
9159
|
onChange: $,
|
|
9160
|
-
...
|
|
9160
|
+
...N
|
|
9161
9161
|
} = S, z = (p) => {
|
|
9162
9162
|
$(p), g && g(p);
|
|
9163
9163
|
};
|
|
@@ -9173,8 +9173,8 @@ const Qd = "data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%20
|
|
|
9173
9173
|
position: "relative",
|
|
9174
9174
|
width: m
|
|
9175
9175
|
}, className: wn.inputContainer, children: [
|
|
9176
|
-
/* @__PURE__ */ u("input", { ...
|
|
9177
|
-
r == "password" && /* @__PURE__ */ u("button", { onClick: () => v(!
|
|
9176
|
+
/* @__PURE__ */ u("input", { ...N, type: C(), onChange: z, placeholder: c ? b(c) : "", maxLength: s || void 0 }),
|
|
9177
|
+
r == "password" && /* @__PURE__ */ u("button", { onClick: () => v(!A), type: "button", className: wn.showPasswordButton, children: /* @__PURE__ */ u("img", { src: A ? Jd : Qd, alt: b("show-password") }) })
|
|
9178
9178
|
] }),
|
|
9179
9179
|
r == "password" && /* @__PURE__ */ u("div", { className: wn.forgotPassButton, children: /* @__PURE__ */ u("button", { onClick: h, children: b(y) }) }),
|
|
9180
9180
|
/* @__PURE__ */ u(yn, { errorMessage: (B = M.error) == null ? void 0 : B.message, errorColor: w || d })
|
|
@@ -9219,7 +9219,7 @@ const ef = "_inputsContainer_10t9s_2", an = {
|
|
|
9219
9219
|
errorColor: x
|
|
9220
9220
|
} = Bn((v) => v);
|
|
9221
9221
|
xe(l);
|
|
9222
|
-
const [w,
|
|
9222
|
+
const [w, A] = ce(null);
|
|
9223
9223
|
return ne(() => {
|
|
9224
9224
|
w && n && n(w);
|
|
9225
9225
|
}, [w, n]), t ? /* @__PURE__ */ u(Dn, { name: r, control: b, rules: {
|
|
@@ -9247,11 +9247,11 @@ const ef = "_inputsContainer_10t9s_2", an = {
|
|
|
9247
9247
|
width: h
|
|
9248
9248
|
}, children: [
|
|
9249
9249
|
/* @__PURE__ */ T("select", { ...v, value: v.value ?? "", onChange: ($) => {
|
|
9250
|
-
const
|
|
9250
|
+
const N = $.target.value, z = y.every((B) => typeof B.value == "number") ? Number(N) : N;
|
|
9251
9251
|
v.onChange(z);
|
|
9252
9252
|
}, className: Ue.selectInput, children: [
|
|
9253
9253
|
/* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: g(d || "selectOption") }),
|
|
9254
|
-
y.map(($,
|
|
9254
|
+
y.map(($, N) => /* @__PURE__ */ u("option", { value: $.value, className: Ue.option, children: g($.label) }, N))
|
|
9255
9255
|
] }),
|
|
9256
9256
|
/* @__PURE__ */ u("img", { src: ns, alt: "Open", className: Ue.dropdownArrow })
|
|
9257
9257
|
] }),
|
|
@@ -9270,7 +9270,7 @@ const ef = "_inputsContainer_10t9s_2", an = {
|
|
|
9270
9270
|
}, children: [
|
|
9271
9271
|
/* @__PURE__ */ T("select", { value: w ?? "", onChange: (v) => {
|
|
9272
9272
|
const C = v.target.value, S = y.every((M) => typeof M.value == "number") ? Number(C) : C;
|
|
9273
|
-
|
|
9273
|
+
A(S);
|
|
9274
9274
|
}, className: Ue.selectInput, children: [
|
|
9275
9275
|
/* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: g(d || "selectOption") }),
|
|
9276
9276
|
y.map((v, C) => /* @__PURE__ */ u("option", { value: v.value, className: Ue.option, children: g(v.label) }, C))
|
|
@@ -9317,8 +9317,8 @@ const cf = "_radioButtonContainer_1e994_2", uf = "_wholeInputContainer_1e994_5",
|
|
|
9317
9317
|
actualValue: w
|
|
9318
9318
|
}) => {
|
|
9319
9319
|
if (c && w && w.length > 0) {
|
|
9320
|
-
let
|
|
9321
|
-
x(
|
|
9320
|
+
let A = w.filter((v) => v !== _);
|
|
9321
|
+
x(A);
|
|
9322
9322
|
}
|
|
9323
9323
|
}, f = ({
|
|
9324
9324
|
options: _,
|
|
@@ -9336,7 +9336,7 @@ const cf = "_radioButtonContainer_1e994_2", uf = "_wholeInputContainer_1e994_5",
|
|
|
9336
9336
|
field: {
|
|
9337
9337
|
onChange: x,
|
|
9338
9338
|
onBlur: w,
|
|
9339
|
-
value:
|
|
9339
|
+
value: A,
|
|
9340
9340
|
ref: v
|
|
9341
9341
|
},
|
|
9342
9342
|
fieldState: C
|
|
@@ -9354,18 +9354,18 @@ const cf = "_radioButtonContainer_1e994_2", uf = "_wholeInputContainer_1e994_5",
|
|
|
9354
9354
|
l.map(({
|
|
9355
9355
|
label: M,
|
|
9356
9356
|
value: $,
|
|
9357
|
-
disabled:
|
|
9357
|
+
disabled: N = !1,
|
|
9358
9358
|
italicLabel: z
|
|
9359
9359
|
}, B) => {
|
|
9360
|
-
const p =
|
|
9360
|
+
const p = A && c ? A.isArray && (A == null ? void 0 : A.length) > 0 && A.some((E) => E === $) : A === $;
|
|
9361
9361
|
return /* @__PURE__ */ T("label", { children: [
|
|
9362
9362
|
/* @__PURE__ */ u("input", { type: "radio", checked: p, onChange: () => {
|
|
9363
9363
|
c ? p ? b({
|
|
9364
|
-
actualValue:
|
|
9364
|
+
actualValue: A,
|
|
9365
9365
|
options: l,
|
|
9366
9366
|
onChange: x
|
|
9367
9367
|
}) : f({
|
|
9368
|
-
actualValue:
|
|
9368
|
+
actualValue: A,
|
|
9369
9369
|
options: l,
|
|
9370
9370
|
onChange: x
|
|
9371
9371
|
}) : x($);
|
|
@@ -9411,23 +9411,23 @@ const hf = "_rankingSliderContainer_1dvpb_2", gf = "_labelContainer_1dvpb_6", yf
|
|
|
9411
9411
|
disabled: f = !1,
|
|
9412
9412
|
marks: _ = Array.from({
|
|
9413
9413
|
length: a - s + 1
|
|
9414
|
-
}, (
|
|
9414
|
+
}, (N, z) => s + z),
|
|
9415
9415
|
showMarksNumber: x = !0
|
|
9416
9416
|
} = e, {
|
|
9417
9417
|
t: w
|
|
9418
9418
|
} = de(), {
|
|
9419
|
-
control:
|
|
9419
|
+
control: A,
|
|
9420
9420
|
trigger: v,
|
|
9421
9421
|
clearErrors: C
|
|
9422
9422
|
} = t || {};
|
|
9423
9423
|
xe(d);
|
|
9424
9424
|
const {
|
|
9425
9425
|
errorColorForm: S
|
|
9426
|
-
} = Bn((
|
|
9427
|
-
return t ? /* @__PURE__ */ u(Dn, { name: r, control:
|
|
9426
|
+
} = Bn((N) => N), [M, $] = ce(l);
|
|
9427
|
+
return t ? /* @__PURE__ */ u(Dn, { name: r, control: A, defaultValue: l, rules: {
|
|
9428
9428
|
required: d ? `${w(o)} ${w("errorMessages.required")}` : !1
|
|
9429
9429
|
}, render: ({
|
|
9430
|
-
field:
|
|
9430
|
+
field: N,
|
|
9431
9431
|
fieldState: z
|
|
9432
9432
|
}) => {
|
|
9433
9433
|
var B;
|
|
@@ -9440,8 +9440,8 @@ const hf = "_rankingSliderContainer_1dvpb_2", gf = "_labelContainer_1dvpb_6", yf
|
|
|
9440
9440
|
/* @__PURE__ */ T("div", { className: Le.inputContainer, children: [
|
|
9441
9441
|
g && /* @__PURE__ */ u("div", { className: Le.minLabel, children: w(g) }),
|
|
9442
9442
|
/* @__PURE__ */ T("div", { children: [
|
|
9443
|
-
/* @__PURE__ */ u(io, { min: s, max: a, step: 1, value:
|
|
9444
|
-
|
|
9443
|
+
/* @__PURE__ */ u(io, { min: s, max: a, step: 1, value: N.value ?? l, onChange: (p) => {
|
|
9444
|
+
N.onChange(p);
|
|
9445
9445
|
}, marks: !0, className: Le.slider, thumbClassName: Le.thumb, renderThumb: (p) => /* @__PURE__ */ u("div", { ...p, style: {
|
|
9446
9446
|
...p.style,
|
|
9447
9447
|
backgroundColor: f ? "#CCCCCC" : c,
|
|
@@ -9462,14 +9462,14 @@ const hf = "_rankingSliderContainer_1dvpb_2", gf = "_labelContainer_1dvpb_6", yf
|
|
|
9462
9462
|
/* @__PURE__ */ T("div", { className: Le.inputContainer, children: [
|
|
9463
9463
|
g && /* @__PURE__ */ u("div", { className: Le.minLabel, children: w(g) }),
|
|
9464
9464
|
/* @__PURE__ */ T("div", { children: [
|
|
9465
|
-
/* @__PURE__ */ u(io, { min: s, max: a, step: 1, value: M, onChange: (
|
|
9466
|
-
$(
|
|
9467
|
-
}, marks: !0, className: Le.slider, thumbClassName: Le.thumb, renderThumb: (
|
|
9468
|
-
...
|
|
9465
|
+
/* @__PURE__ */ u(io, { min: s, max: a, step: 1, value: M, onChange: (N) => {
|
|
9466
|
+
$(N), n && n(N);
|
|
9467
|
+
}, marks: !0, className: Le.slider, thumbClassName: Le.thumb, renderThumb: (N) => /* @__PURE__ */ u("div", { ...N, style: {
|
|
9468
|
+
...N.style,
|
|
9469
9469
|
backgroundColor: f ? "#CCCCCC" : c,
|
|
9470
9470
|
cursor: f ? "not-allowed" : "grab"
|
|
9471
9471
|
} }), trackClassName: Le.track, markClassName: Le.mark, disabled: f }),
|
|
9472
|
-
_ && /* @__PURE__ */ u("div", { className: Le.labels, children: _.map((
|
|
9472
|
+
_ && /* @__PURE__ */ u("div", { className: Le.labels, children: _.map((N) => /* @__PURE__ */ u("span", { children: x && N }, N)) })
|
|
9473
9473
|
] }),
|
|
9474
9474
|
b && /* @__PURE__ */ u("div", { className: Le.maxLabel, children: w(b) })
|
|
9475
9475
|
] })
|
|
@@ -9615,63 +9615,63 @@ const Ef = ({
|
|
|
9615
9615
|
errorColor: s
|
|
9616
9616
|
}));
|
|
9617
9617
|
}, [s]);
|
|
9618
|
-
const w = qe(() => t ? t.filter((
|
|
9618
|
+
const w = qe(() => t ? t.filter((N) => N.category).map((N) => {
|
|
9619
9619
|
var z;
|
|
9620
9620
|
return {
|
|
9621
|
-
id:
|
|
9622
|
-
label:
|
|
9623
|
-
hasSubcategories: ((z =
|
|
9621
|
+
id: N.categoryId,
|
|
9622
|
+
label: N.category,
|
|
9623
|
+
hasSubcategories: ((z = N.subcategories) == null ? void 0 : z.length) > 0
|
|
9624
9624
|
};
|
|
9625
|
-
}) : [], [t]),
|
|
9626
|
-
const z = t == null ? void 0 : t.find((B) => B.categoryId ===
|
|
9625
|
+
}) : [], [t]), A = (N) => {
|
|
9626
|
+
const z = t == null ? void 0 : t.find((B) => B.categoryId === N);
|
|
9627
9627
|
return (z == null ? void 0 : z.subcategories) || [];
|
|
9628
9628
|
}, [v, C] = ce(h || d || null), [S, M] = ce(null);
|
|
9629
9629
|
ne(() => {
|
|
9630
9630
|
!v && w.length > 0 && C(w[0].id);
|
|
9631
9631
|
}, [w, v]), ne(() => {
|
|
9632
|
-
const
|
|
9633
|
-
!S && (
|
|
9632
|
+
const N = A(v);
|
|
9633
|
+
!S && (N == null ? void 0 : N.length) > 0 && M(N[0].id);
|
|
9634
9634
|
}, [v, S, t]);
|
|
9635
|
-
const $ = (
|
|
9635
|
+
const $ = (N, z) => {
|
|
9636
9636
|
var B;
|
|
9637
|
-
if (((B =
|
|
9638
|
-
const p =
|
|
9637
|
+
if (((B = N.subcategories) == null ? void 0 : B.length) > 0) {
|
|
9638
|
+
const p = N.subcategories;
|
|
9639
9639
|
return /* @__PURE__ */ T("div", { children: [
|
|
9640
|
-
/* @__PURE__ */ u("div", { className: xn.categorySelectorContainer, children: /* @__PURE__ */ u(ho, { activeCategory: S, categories: p, categoriesWithErrors: g, onChange: (
|
|
9641
|
-
p.map((
|
|
9642
|
-
const I = !S ||
|
|
9640
|
+
/* @__PURE__ */ u("div", { className: xn.categorySelectorContainer, children: /* @__PURE__ */ u(ho, { activeCategory: S, categories: p, categoriesWithErrors: g, onChange: (E) => M(E), activeColor: y }) }, N.categoryId),
|
|
9641
|
+
p.map((E, k) => {
|
|
9642
|
+
const I = !S || E.id === S;
|
|
9643
9643
|
return n ? /* @__PURE__ */ u("div", { style: {
|
|
9644
9644
|
display: I ? "block" : "none",
|
|
9645
9645
|
width: "100%"
|
|
9646
|
-
}, children: /* @__PURE__ */ u(n, { title:
|
|
9646
|
+
}, children: /* @__PURE__ */ u(n, { title: E.label, children: /* @__PURE__ */ u(un, { inputs: E.inputs, control: x, inputContainerStyles: r, errorColor: s, reactHookFormInstance: e }) }, E.id) }, `${E.id}${k}`) : /* @__PURE__ */ T("div", { style: {
|
|
9647
9647
|
width: "100%",
|
|
9648
9648
|
display: I ? "block" : "none"
|
|
9649
9649
|
}, children: [
|
|
9650
9650
|
/* @__PURE__ */ u("h3", { style: {
|
|
9651
9651
|
marginBottom: 15
|
|
9652
|
-
}, children: f(
|
|
9653
|
-
/* @__PURE__ */ u(un, { inputs:
|
|
9654
|
-
] }, `${
|
|
9652
|
+
}, children: f(E.label) }),
|
|
9653
|
+
/* @__PURE__ */ u(un, { inputs: E.inputs, control: x, inputContainerStyles: r, errorColor: s, reactHookFormInstance: e })
|
|
9654
|
+
] }, `${E.id}${k}`);
|
|
9655
9655
|
})
|
|
9656
9656
|
] });
|
|
9657
9657
|
}
|
|
9658
|
-
return n ? /* @__PURE__ */ u(n, { title:
|
|
9658
|
+
return n ? /* @__PURE__ */ u(n, { title: N.category, children: /* @__PURE__ */ u(un, { inputs: N.inputs, control: x, inputContainerStyles: r, errorColor: s, reactHookFormInstance: e }) }, N.categoryId) : /* @__PURE__ */ T("div", { style: {
|
|
9659
9659
|
width: "100%"
|
|
9660
9660
|
}, children: [
|
|
9661
|
-
/* @__PURE__ */ u("h2", { children: f(
|
|
9662
|
-
/* @__PURE__ */ u(un, { inputs:
|
|
9663
|
-
] },
|
|
9661
|
+
/* @__PURE__ */ u("h2", { children: f(N.category) }),
|
|
9662
|
+
/* @__PURE__ */ u(un, { inputs: N.inputs, control: x, inputContainerStyles: r, errorColor: s, reactHookFormInstance: e })
|
|
9663
|
+
] }, N.categoryId);
|
|
9664
9664
|
};
|
|
9665
9665
|
return /* @__PURE__ */ T("form", { className: xn.formContainer, onSubmit: _(b), children: [
|
|
9666
|
-
c && w.length > 0 && /* @__PURE__ */ u("div", { className: xn.categorySelectorContainer, children: /* @__PURE__ */ u(ho, { activeCategory: v, categories: w, categoriesWithErrors: g, onChange: (
|
|
9667
|
-
C(
|
|
9666
|
+
c && w.length > 0 && /* @__PURE__ */ u("div", { className: xn.categorySelectorContainer, children: /* @__PURE__ */ u(ho, { activeCategory: v, categories: w, categoriesWithErrors: g, onChange: (N) => {
|
|
9667
|
+
C(N), M(null);
|
|
9668
9668
|
}, activeColor: y }) }),
|
|
9669
|
-
/* @__PURE__ */ u("div", { className: xn.formObjectContainer, children: t == null ? void 0 : t.map((
|
|
9670
|
-
const B =
|
|
9671
|
-
return
|
|
9669
|
+
/* @__PURE__ */ u("div", { className: xn.formObjectContainer, children: t == null ? void 0 : t.map((N, z) => {
|
|
9670
|
+
const B = N.categoryId === v;
|
|
9671
|
+
return N.category ? /* @__PURE__ */ u("div", { style: {
|
|
9672
9672
|
width: "100%",
|
|
9673
9673
|
display: B ? "block" : "none"
|
|
9674
|
-
}, children: $(
|
|
9674
|
+
}, children: $(N) }, N.categoryId) : /* @__PURE__ */ u(un, { inputs: N.inputs, control: x, inputContainerStyles: r, errorColor: s, reactHookFormInstance: e }, `no-category-${z}`);
|
|
9675
9675
|
}) }),
|
|
9676
9676
|
/* @__PURE__ */ T("div", { className: xn.buttonContainer, children: [
|
|
9677
9677
|
/* @__PURE__ */ u(Mn, { containerStyles: l, type: "submit", children: f(a) }),
|
|
@@ -9972,7 +9972,7 @@ const hp = "_svgContainer_1rxoe_2", gp = "_svg_1rxoe_2", os = {
|
|
|
9972
9972
|
onBarClick: _,
|
|
9973
9973
|
title: x,
|
|
9974
9974
|
xAxisLabel: w,
|
|
9975
|
-
yAxisLabel:
|
|
9975
|
+
yAxisLabel: A
|
|
9976
9976
|
}) => {
|
|
9977
9977
|
const v = xe(), C = xe(), [S, M] = ce({
|
|
9978
9978
|
width: 0,
|
|
@@ -9981,9 +9981,9 @@ const hp = "_svgContainer_1rxoe_2", gp = "_svg_1rxoe_2", os = {
|
|
|
9981
9981
|
return ne(() => {
|
|
9982
9982
|
const $ = () => {
|
|
9983
9983
|
if (C.current) {
|
|
9984
|
-
const
|
|
9984
|
+
const N = C.current.getBoundingClientRect().width;
|
|
9985
9985
|
M({
|
|
9986
|
-
width: typeof r == "number" ? r :
|
|
9986
|
+
width: typeof r == "number" ? r : N,
|
|
9987
9987
|
height: o
|
|
9988
9988
|
});
|
|
9989
9989
|
}
|
|
@@ -9991,12 +9991,12 @@ const hp = "_svgContainer_1rxoe_2", gp = "_svg_1rxoe_2", os = {
|
|
|
9991
9991
|
return $(), window.addEventListener("resize", $), () => window.removeEventListener("resize", $);
|
|
9992
9992
|
}, [r, o]), ne(() => {
|
|
9993
9993
|
if (!e || e.length === 0 || S.width === 0) return;
|
|
9994
|
-
const $ = gt(v.current),
|
|
9994
|
+
const $ = gt(v.current), N = S.width, z = S.height, B = N - s.left - s.right, p = z - s.top - s.bottom;
|
|
9995
9995
|
if (B <= 0 || p <= 0) return;
|
|
9996
|
-
const
|
|
9996
|
+
const E = e.map((W) => W.anyo || W.year || W.x), k = t, I = ar(e, (W) => ar(k, (G) => W[G])) || 0, j = lr(e, (W) => lr(k, (G) => W[G])) || 0, D = eo().domain(E).rangeRound([0, B]).paddingInner(y), V = eo().domain(k).rangeRound([0, D.bandwidth()]).padding(g), Z = ms().domain([Math.min(0, I), j]).nice().rangeRound([p, 0]), L = hs().domain(k).range(Array.isArray(n) ? n : Object.values(n || {}));
|
|
9997
9997
|
$.selectAll("*").remove();
|
|
9998
9998
|
const R = $.append("g").attr("transform", `translate(${s.left},${s.top})`);
|
|
9999
|
-
x && $.append("text").attr("x",
|
|
9999
|
+
x && $.append("text").attr("x", N / 2).attr("y", s.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(x), d && R.append("g").attr("class", "grid").selectAll("line").data(Z.ticks()).enter().append("line").attr("x1", 0).attr("x2", B).attr("y1", (W) => Z(W)).attr("y2", (W) => Z(W)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), l && (R.append("g").attr("transform", `translate(0,${p})`).call(to(D).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${m})`).style("text-anchor", m < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), w && R.append("text").attr("transform", `translate(${B / 2}, ${p + s.bottom - 5})`).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(w)), c && (R.append("g").call(nr(Z).ticks(6).tickFormat(h)).attr("class", "y-axis").call((W) => W.select(".domain").remove()), A && R.append("text").attr("transform", "rotate(-90)").attr("y", 0 - s.left).attr("x", 0 - p / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(A));
|
|
10000
10000
|
const H = R.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class", "bar-group").attr("transform", (W) => `translate(${D(W.anyo || W.year || W.x)},0)`).selectAll(".bar").data((W) => k.map((G) => ({
|
|
10001
10001
|
key: G,
|
|
10002
10002
|
value: W[G],
|
|
@@ -10007,7 +10007,7 @@ const hp = "_svgContainer_1rxoe_2", gp = "_svg_1rxoe_2", os = {
|
|
|
10007
10007
|
}).on("mouseout", function(W, G) {
|
|
10008
10008
|
gt(this).style("opacity", 1);
|
|
10009
10009
|
}), _ && H.on("click", _);
|
|
10010
|
-
}, [e, t, n, S, s, y, g, l, c, d, m, h, b, f, _, x, w,
|
|
10010
|
+
}, [e, t, n, S, s, y, g, l, c, d, m, h, b, f, _, x, w, A]), /* @__PURE__ */ u("div", { ref: C, className: `${os.svgContainer} ${a}`, style: {
|
|
10011
10011
|
width: r,
|
|
10012
10012
|
height: o + s.top + s.bottom
|
|
10013
10013
|
}, children: /* @__PURE__ */ u("svg", { ref: v, className: os.svg, width: S.width, height: S.height }) });
|
|
@@ -10106,7 +10106,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10106
10106
|
onBarHover: _,
|
|
10107
10107
|
onBarClick: x,
|
|
10108
10108
|
title: w,
|
|
10109
|
-
xAxisLabel:
|
|
10109
|
+
xAxisLabel: A,
|
|
10110
10110
|
// etiqueta del eje de categorías
|
|
10111
10111
|
yAxisLabel: v,
|
|
10112
10112
|
// etiqueta del eje de valores
|
|
@@ -10116,7 +10116,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10116
10116
|
// "reverse", "ascending", "descending", "insideOut", "none"
|
|
10117
10117
|
showTooltip: M = !0,
|
|
10118
10118
|
reverseKeys: $ = !0,
|
|
10119
|
-
minBarSlotWidth:
|
|
10119
|
+
minBarSlotWidth: N = 60,
|
|
10120
10120
|
// tamaño mínimo por item en el eje "scrolleable" (ancho en vertical, alto en horizontal)
|
|
10121
10121
|
wrapXAxisLabels: z = !0,
|
|
10122
10122
|
// solo aplica en orientation="vertical"
|
|
@@ -10124,7 +10124,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10124
10124
|
// solo aplica en orientation="horizontal": ajusta las etiquetas de categoría en varias líneas
|
|
10125
10125
|
maxYAxisLabelLines: p = 2,
|
|
10126
10126
|
// número máximo de líneas para las etiquetas de categoría en horizontal
|
|
10127
|
-
yAxisLabelFont:
|
|
10127
|
+
yAxisLabelFont: E = "12px sans-serif",
|
|
10128
10128
|
// fuente usada para medir las etiquetas de categoría
|
|
10129
10129
|
marginLeftPadding: k = 8,
|
|
10130
10130
|
// espacio extra a la izquierda en horizontal
|
|
@@ -10194,13 +10194,13 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10194
10194
|
...G
|
|
10195
10195
|
}, ue = y === "top", F = (q) => I === "single" ? q.title : q.any || q.year || q.x;
|
|
10196
10196
|
if (H && c && !se) {
|
|
10197
|
-
const q = vp(e.map((te) => F(te)), B ? p : 1,
|
|
10197
|
+
const q = vp(e.map((te) => F(te)), B ? p : 1, E);
|
|
10198
10198
|
K.left = Math.ceil(q) + k;
|
|
10199
10199
|
}
|
|
10200
10200
|
const {
|
|
10201
10201
|
containerWidth: pe,
|
|
10202
10202
|
height: We
|
|
10203
|
-
} = L, dt = pe - K.left - K.right, At = We - K.top - K.bottom, De = e.length *
|
|
10203
|
+
} = L, dt = pe - K.left - K.right, At = We - K.top - K.bottom, De = e.length * N;
|
|
10204
10204
|
let Pe, Be, ft, Ct;
|
|
10205
10205
|
if (H ? (Be = Math.max(At, De), Pe = dt, Ct = Be + K.top + K.bottom, ft = pe) : (Pe = Math.max(dt, De), Be = At, ft = Pe + K.left + K.right, Ct = We), Pe <= 0 || Be <= 0) return;
|
|
10206
10206
|
Q.attr("width", ft).attr("height", Ct).style("overflow", "visible");
|
|
@@ -10295,7 +10295,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10295
10295
|
Ae.append("g").attr("class", "category-axis").call(nr(Y).tickSizeOuter(0)).selectAll("text").remove(), Ae.append("g").attr("class", "category-axis-labels").selectAll(".cat-label-group").data(e).enter().append("g").attr("class", "cat-label-group").attr("transform", (ae) => `translate(0, ${fe(F(ae)) + X / 2})`).each(function(ae) {
|
|
10296
10296
|
const Re = String(F(ae)), ze = B ? Ea(Re, p) : [Re];
|
|
10297
10297
|
gt(this).append("text").attr("x", -10).style("text-anchor", "end").style("font-size", "12px").style("fill", "#605B56").selectAll("tspan").data(ze).enter().append("tspan").attr("x", -10).attr("dy", (Te, ot) => ze.length === 1 ? "0.32em" : ot === 0 ? "-0.3em" : "1.2em").text((Te) => Te);
|
|
10298
|
-
}),
|
|
10298
|
+
}), A && Ae.append("text").attr("transform", "rotate(-90)").attr("y", 0 - K.left).attr("x", 0 - Be / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(A);
|
|
10299
10299
|
else {
|
|
10300
10300
|
const q = ue ? 0 : Be, te = ue ? Ho(Y) : to(Y);
|
|
10301
10301
|
Ae.append("g").attr("class", "category-axis").attr("transform", `translate(0, ${q})`).call(te.tickSizeOuter(0)).selectAll("text").remove();
|
|
@@ -10310,7 +10310,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10310
10310
|
Yt.append("text").attr("x", qo + Wo * 14).attr("y", Mt).style("text-anchor", "end").style("font-size", "11px").style("fill", "#605B56").attr("transform", `rotate(${h} ${qo + Wo * 14} ${Lt})`).text(za);
|
|
10311
10311
|
});
|
|
10312
10312
|
}
|
|
10313
|
-
}),
|
|
10313
|
+
}), A && Ae.append("text").attr("transform", `translate(${Pe / 2}, ${ue ? -(K.top - 15) : Be + K.bottom - 5})`).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(A);
|
|
10314
10314
|
}
|
|
10315
10315
|
if (d)
|
|
10316
10316
|
if (H) {
|
|
@@ -10352,7 +10352,7 @@ const yp = "_svgContainer_7fkic_2", bp = "_svg_7fkic_2", is = {
|
|
|
10352
10352
|
return () => {
|
|
10353
10353
|
Ye && Ye.remove();
|
|
10354
10354
|
};
|
|
10355
|
-
}, [e, t, n, r, L, G, b, c, d, m, h, y, g, f, _, x, w,
|
|
10355
|
+
}, [e, t, n, r, L, G, b, c, d, m, h, y, g, f, _, x, w, A, v, C, S, M, $, z, B, p, E, k, I, j, N]);
|
|
10356
10356
|
const re = typeof s == "number" ? s + G.top + G.bottom : s, oe = D ? H ? {
|
|
10357
10357
|
width: "100%",
|
|
10358
10358
|
height: re,
|
|
@@ -10531,14 +10531,14 @@ const Ma = ({
|
|
|
10531
10531
|
const y = [a, l, c], g = d && d.length > 0 ? d : y.map(() => (t - e) / y.length), b = e + g.reduce((k, I) => k + I, 0);
|
|
10532
10532
|
let f = n;
|
|
10533
10533
|
f < e && (f = e), f > b && (f = b);
|
|
10534
|
-
const _ = (f - e) / (b - e), x = 270 + _ * 180, w = o ? Math.round(_ * 100) : f,
|
|
10534
|
+
const _ = (f - e) / (b - e), x = 270 + _ * 180, w = o ? Math.round(_ * 100) : f, A = 122, v = 122, C = 99, S = 122, M = 132, $ = 2, N = (k, I) => {
|
|
10535
10535
|
const j = k * Math.PI / 180;
|
|
10536
10536
|
return {
|
|
10537
|
-
x:
|
|
10537
|
+
x: A + I * Math.sin(j),
|
|
10538
10538
|
y: v - I * Math.cos(j)
|
|
10539
10539
|
};
|
|
10540
10540
|
}, z = (k, I) => {
|
|
10541
|
-
const j = I - k > 180 ? 1 : 0, D =
|
|
10541
|
+
const j = I - k > 180 ? 1 : 0, D = N(k, S), V = N(I, S), Z = N(I, C), L = N(k, C);
|
|
10542
10542
|
return `M ${D.x} ${D.y} A ${S} ${S} 0 ${j} 1 ${V.x} ${V.y} L ${Z.x} ${Z.y} A ${C} ${C} 0 ${j} 0 ${L.x} ${L.y} Z`;
|
|
10543
10543
|
}, B = g.reduce((k, I) => [...k, k[k.length - 1] + I], [e]), p = y.map((k, I) => {
|
|
10544
10544
|
const j = (B[I] - e) / (b - e), D = (B[I + 1] - e) / (b - e), V = 270 + j * 180, Z = 270 + D * 180, L = V + (I > 0 ? $ / 2 : 0), R = Z - (I < y.length - 1 ? $ / 2 : 0);
|
|
@@ -10546,11 +10546,11 @@ const Ma = ({
|
|
|
10546
10546
|
color: k,
|
|
10547
10547
|
path: z(L, R)
|
|
10548
10548
|
};
|
|
10549
|
-
}),
|
|
10549
|
+
}), E = B.map((k) => {
|
|
10550
10550
|
const j = 270 + (k - e) / (b - e) * 180, {
|
|
10551
10551
|
x: D,
|
|
10552
10552
|
y: V
|
|
10553
|
-
} =
|
|
10553
|
+
} = N(j, M), Z = D < A - 4 ? "end" : D > A + 4 ? "start" : "middle", L = V < v - 4 ? "-2" : "0.32em";
|
|
10554
10554
|
return {
|
|
10555
10555
|
value: Math.round(k),
|
|
10556
10556
|
x: D,
|
|
@@ -10567,8 +10567,8 @@ const Ma = ({
|
|
|
10567
10567
|
}, children: [
|
|
10568
10568
|
/* @__PURE__ */ T("svg", { width: "324", height: "170", viewBox: "-40 -30 324 170", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10569
10569
|
p.map((k, I) => /* @__PURE__ */ u("path", { d: k.path, fill: k.color }, I)),
|
|
10570
|
-
/* @__PURE__ */ u("g", { transform: `rotate(${x} ${
|
|
10571
|
-
|
|
10570
|
+
/* @__PURE__ */ u("g", { transform: `rotate(${x} ${A} ${v})`, children: /* @__PURE__ */ u("path", { d: `M ${A - 1} 119.5V33`, stroke: "#605B56", strokeWidth: "2" }) }),
|
|
10571
|
+
E.map((k, I) => /* @__PURE__ */ u("text", { x: k.x, y: k.y, dy: k.dy, textAnchor: k.textAnchor, fill: m, fontSize: "11", fontWeight: "600", children: k.value }, I))
|
|
10572
10572
|
] }),
|
|
10573
10573
|
/* @__PURE__ */ T("div", { style: {
|
|
10574
10574
|
fontSize: h,
|
|
@@ -10683,8 +10683,8 @@ const Ra = ({
|
|
|
10683
10683
|
valuesArePercentages: y = !0,
|
|
10684
10684
|
minSliceAngle: g = 8
|
|
10685
10685
|
}) => {
|
|
10686
|
-
const [b, f] = ce(null), [_, x] = ce(() => t.map(() => !0)), w = t.map((D) => D.title).join("|"), [
|
|
10687
|
-
w !==
|
|
10686
|
+
const [b, f] = ce(null), [_, x] = ce(() => t.map(() => !0)), w = t.map((D) => D.title).join("|"), [A, v] = ce(w);
|
|
10687
|
+
w !== A && (v(w), x(t.map(() => !0)));
|
|
10688
10688
|
const C = _.filter(Boolean).length;
|
|
10689
10689
|
function S(D) {
|
|
10690
10690
|
x((V) => {
|
|
@@ -10694,10 +10694,10 @@ const Ra = ({
|
|
|
10694
10694
|
return L[D] = !L[D], L;
|
|
10695
10695
|
}), f(null);
|
|
10696
10696
|
}
|
|
10697
|
-
const M = r / 2, $ = r / 2,
|
|
10697
|
+
const M = r / 2, $ = r / 2, N = r / 2 - 14, z = e === "donut" ? N - o : 0, B = e === "donut" ? N - o / 2 : N * 0.62, p = qe(() => t.reduce((D, V, Z) => (_[Z] && D.push({
|
|
10698
10698
|
...V,
|
|
10699
10699
|
origIndex: Z
|
|
10700
|
-
}), D), []), [t, _]),
|
|
10700
|
+
}), D), []), [t, _]), E = qe(() => Dp(p, g), [p, g]), k = b !== null && E.find((D) => D.origIndex === b) || null, I = E.some((D) => D.ea - D.sa >= 359.99), j = a || (l === "transparent" ? Ip : l);
|
|
10701
10701
|
return /* @__PURE__ */ T("div", { style: {
|
|
10702
10702
|
display: "inline-flex",
|
|
10703
10703
|
flexDirection: "column",
|
|
@@ -10759,7 +10759,7 @@ const Ra = ({
|
|
|
10759
10759
|
/* @__PURE__ */ T("svg", { width: r, height: r, viewBox: `0 0 ${r} ${r}`, style: {
|
|
10760
10760
|
overflow: "visible"
|
|
10761
10761
|
}, children: [
|
|
10762
|
-
|
|
10762
|
+
E.map((D) => {
|
|
10763
10763
|
const V = b === D.origIndex, {
|
|
10764
10764
|
tx: Z,
|
|
10765
10765
|
ty: L
|
|
@@ -10770,18 +10770,18 @@ const Ra = ({
|
|
|
10770
10770
|
return /* @__PURE__ */ u("g", { transform: `translate(${Z}, ${L})`, style: {
|
|
10771
10771
|
transition: "transform 0.18s ease",
|
|
10772
10772
|
pointerEvents: "none"
|
|
10773
|
-
}, children: /* @__PURE__ */ u("path", { d: ss(M, $, z,
|
|
10773
|
+
}, children: /* @__PURE__ */ u("path", { d: ss(M, $, z, N, D.sa, D.ea), fill: D.color || Qr, style: {
|
|
10774
10774
|
filter: V ? "brightness(1.25)" : "brightness(1)",
|
|
10775
10775
|
transition: "filter 0.18s ease"
|
|
10776
10776
|
} }) }, D.origIndex);
|
|
10777
10777
|
}),
|
|
10778
|
-
!I &&
|
|
10779
|
-
const V = bt(M, $,
|
|
10778
|
+
!I && E.map((D) => {
|
|
10779
|
+
const V = bt(M, $, N, D.sa), Z = e === "cheese" ? M : bt(M, $, z, D.sa).x, L = e === "cheese" ? $ : bt(M, $, z, D.sa).y;
|
|
10780
10780
|
return /* @__PURE__ */ u("line", { x1: Z, y1: L, x2: V.x, y2: V.y, stroke: j, strokeWidth: s, strokeLinecap: "butt", style: {
|
|
10781
10781
|
pointerEvents: "none"
|
|
10782
10782
|
} }, `gap-${D.origIndex}`);
|
|
10783
10783
|
}),
|
|
10784
|
-
|
|
10784
|
+
E.map((D) => {
|
|
10785
10785
|
if (D.ea - D.sa < 20) return null;
|
|
10786
10786
|
const V = b === D.origIndex, {
|
|
10787
10787
|
tx: Z,
|
|
@@ -10794,7 +10794,7 @@ const Ra = ({
|
|
|
10794
10794
|
transition: "x 0.18s ease, y 0.18s ease"
|
|
10795
10795
|
}, children: as(D, y) }, `lbl-${D.origIndex}`);
|
|
10796
10796
|
}),
|
|
10797
|
-
|
|
10797
|
+
E.map((D) => /* @__PURE__ */ u("path", { d: ss(M, $, z, N, D.sa, D.ea), fill: "transparent", style: {
|
|
10798
10798
|
cursor: "pointer"
|
|
10799
10799
|
}, onMouseEnter: () => f(D.origIndex), onMouseLeave: () => f(null) }, `hit-${D.origIndex}`))
|
|
10800
10800
|
] }),
|
|
@@ -10871,16 +10871,16 @@ const cs = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Ia = ({
|
|
|
10871
10871
|
animated: s = !0,
|
|
10872
10872
|
borderRadius: a,
|
|
10873
10873
|
containerStyles: l = {},
|
|
10874
|
-
fontColorInside: c
|
|
10874
|
+
fontColorInside: c,
|
|
10875
10875
|
borderFontColorInside: d
|
|
10876
10876
|
}) => {
|
|
10877
10877
|
const [m, h] = ce(s ? 0 : 1);
|
|
10878
10878
|
ne(() => {
|
|
10879
10879
|
if (!s) return;
|
|
10880
|
-
const
|
|
10881
|
-
return () => cancelAnimationFrame(
|
|
10880
|
+
const f = requestAnimationFrame(() => h(1));
|
|
10881
|
+
return () => cancelAnimationFrame(f);
|
|
10882
10882
|
}, [s]);
|
|
10883
|
-
const y = Math.max(...e.map((
|
|
10883
|
+
const y = Math.max(...e.map((f) => f.value), 1), g = a ?? "6px", b = c || r;
|
|
10884
10884
|
return /* @__PURE__ */ T("div", { style: {
|
|
10885
10885
|
display: "inline-flex",
|
|
10886
10886
|
flexDirection: "column",
|
|
@@ -10902,8 +10902,8 @@ const cs = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Ia = ({
|
|
|
10902
10902
|
display: "flex",
|
|
10903
10903
|
flexDirection: "column",
|
|
10904
10904
|
gap: "18px"
|
|
10905
|
-
}, children: e.map((
|
|
10906
|
-
const
|
|
10905
|
+
}, children: e.map((f, _) => {
|
|
10906
|
+
const x = f.color || cs[_ % cs.length], w = f.value / y * 100 * m;
|
|
10907
10907
|
return /* @__PURE__ */ T("div", { style: {
|
|
10908
10908
|
display: "flex",
|
|
10909
10909
|
flexDirection: "column",
|
|
@@ -10914,42 +10914,45 @@ const cs = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Ia = ({
|
|
|
10914
10914
|
fontSize: "14px",
|
|
10915
10915
|
fontWeight: "400",
|
|
10916
10916
|
opacity: 0.9
|
|
10917
|
-
}, children:
|
|
10917
|
+
}, children: f.title }),
|
|
10918
10918
|
/* @__PURE__ */ T("div", { style: {
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
borderRadius: g,
|
|
10923
|
-
overflow: "hidden"
|
|
10919
|
+
display: "flex",
|
|
10920
|
+
alignItems: "center",
|
|
10921
|
+
gap: "10px"
|
|
10924
10922
|
}, children: [
|
|
10925
10923
|
/* @__PURE__ */ u("div", { style: {
|
|
10924
|
+
position: "relative",
|
|
10925
|
+
flex: 1,
|
|
10926
|
+
height: `${o}px`,
|
|
10927
|
+
background: "transparent",
|
|
10928
|
+
borderRadius: g,
|
|
10929
|
+
overflow: "hidden"
|
|
10930
|
+
}, children: /* @__PURE__ */ u("div", { style: {
|
|
10926
10931
|
position: "absolute",
|
|
10927
10932
|
left: 0,
|
|
10928
10933
|
top: 0,
|
|
10929
10934
|
height: "100%",
|
|
10930
|
-
width: `${
|
|
10931
|
-
background:
|
|
10935
|
+
width: `${w}%`,
|
|
10936
|
+
background: x,
|
|
10932
10937
|
borderRadius: g,
|
|
10933
10938
|
transition: s ? "width 0.8s cubic-bezier(0.16, 1, 0.3, 1)" : "none"
|
|
10934
|
-
} }),
|
|
10939
|
+
} }) }),
|
|
10935
10940
|
/* @__PURE__ */ u("span", { style: {
|
|
10936
|
-
|
|
10937
|
-
left: "14px",
|
|
10938
|
-
top: "50%",
|
|
10939
|
-
transform: "translateY(-50%)",
|
|
10940
|
-
color: c || n,
|
|
10941
|
+
color: b,
|
|
10941
10942
|
fontSize: "18px",
|
|
10942
10943
|
fontWeight: "700",
|
|
10943
10944
|
pointerEvents: "none",
|
|
10944
10945
|
letterSpacing: "-0.3px",
|
|
10946
|
+
minWidth: "2ch",
|
|
10947
|
+
textAlign: "left",
|
|
10945
10948
|
// text-stroke for the outline effect
|
|
10946
10949
|
...d ? {
|
|
10947
10950
|
WebkitTextStroke: `1px ${d}`,
|
|
10948
10951
|
paintOrder: "stroke fill"
|
|
10949
10952
|
} : {}
|
|
10950
|
-
}, children:
|
|
10953
|
+
}, children: f.value })
|
|
10951
10954
|
] })
|
|
10952
|
-
] },
|
|
10955
|
+
] }, _);
|
|
10953
10956
|
}) })
|
|
10954
10957
|
] });
|
|
10955
10958
|
};
|
|
@@ -10970,12 +10973,12 @@ Ia.propTypes = {
|
|
|
10970
10973
|
borderRadius: i.oneOfType([i.string, i.number]),
|
|
10971
10974
|
containerStyles: i.object
|
|
10972
10975
|
};
|
|
10973
|
-
const us = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Da = ({
|
|
10976
|
+
const us = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Pp = 26, Da = ({
|
|
10974
10977
|
data: e = [],
|
|
10975
10978
|
title: t,
|
|
10976
10979
|
backgroundColor: n = "black",
|
|
10977
10980
|
fontColor: r = "#ffffff",
|
|
10978
|
-
fontColorInside: o
|
|
10981
|
+
fontColorInside: o,
|
|
10979
10982
|
borderFontColorInside: s,
|
|
10980
10983
|
barWidth: a = 52,
|
|
10981
10984
|
maxBarHeight: l = 200,
|
|
@@ -10986,16 +10989,18 @@ const us = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Da = ({
|
|
|
10986
10989
|
const [h, y] = ce(c ? 0 : 1);
|
|
10987
10990
|
ne(() => {
|
|
10988
10991
|
if (!c) return;
|
|
10989
|
-
const
|
|
10990
|
-
return () => cancelAnimationFrame(
|
|
10992
|
+
const v = requestAnimationFrame(() => requestAnimationFrame(() => y(1)));
|
|
10993
|
+
return () => cancelAnimationFrame(v);
|
|
10991
10994
|
}, [c]);
|
|
10992
|
-
const g = Math.max(...e.map((
|
|
10995
|
+
const g = Math.max(...e.map((v) => v.value), 1), b = d || (r === "#ffffff" ? "rgba(255,255,255,0.25)" : "rgba(0,0,0,0.15)"), f = o || r, _ = 12, x = 12, w = e.length * a + Math.max(0, e.length - 1) * _, A = {
|
|
10993
10996
|
fontSize: "15px",
|
|
10994
10997
|
fontWeight: "700",
|
|
10995
10998
|
letterSpacing: "-0.3px",
|
|
10996
10999
|
lineHeight: 1,
|
|
10997
11000
|
pointerEvents: "none",
|
|
10998
11001
|
whiteSpace: "nowrap",
|
|
11002
|
+
color: f,
|
|
11003
|
+
marginBottom: "8px",
|
|
10999
11004
|
...s ? {
|
|
11000
11005
|
WebkitTextStroke: `1px ${s}`,
|
|
11001
11006
|
paintOrder: "stroke fill"
|
|
@@ -11026,51 +11031,43 @@ const us = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Da = ({
|
|
|
11026
11031
|
/* @__PURE__ */ u("div", { style: {
|
|
11027
11032
|
display: "flex",
|
|
11028
11033
|
alignItems: "flex-end",
|
|
11029
|
-
gap: `${
|
|
11030
|
-
width: `${
|
|
11031
|
-
height: `${l}px
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11034
|
+
gap: `${_}px`,
|
|
11035
|
+
width: `${w}px`,
|
|
11036
|
+
height: `${l + Pp}px`,
|
|
11037
|
+
overflow: "visible"
|
|
11038
|
+
}, children: e.map((v, C) => {
|
|
11039
|
+
const S = v.color || us[C % us.length], M = v.value / g * l * h;
|
|
11040
|
+
return /* @__PURE__ */ T("div", { style: {
|
|
11035
11041
|
display: "flex",
|
|
11036
11042
|
flexDirection: "column",
|
|
11037
11043
|
alignItems: "center",
|
|
11038
11044
|
justifyContent: "flex-end",
|
|
11039
11045
|
width: `${a}px`,
|
|
11040
11046
|
height: "100%"
|
|
11041
|
-
}, children:
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
transition: c ? "height 0.85s cubic-bezier(0.16, 1, 0.3, 1)" : "none",
|
|
11052
|
-
display: "flex",
|
|
11053
|
-
alignItems: "flex-start",
|
|
11054
|
-
justifyContent: "center",
|
|
11055
|
-
paddingTop: "10px"
|
|
11056
|
-
}, children: /* @__PURE__ */ u("span", { style: {
|
|
11057
|
-
...w,
|
|
11058
|
-
color: o
|
|
11059
|
-
}, children: N.value }) }) }, v);
|
|
11047
|
+
}, children: [
|
|
11048
|
+
/* @__PURE__ */ u("span", { style: A, children: v.value }),
|
|
11049
|
+
/* @__PURE__ */ u("div", { style: {
|
|
11050
|
+
width: "100%",
|
|
11051
|
+
height: `${M}px`,
|
|
11052
|
+
background: S,
|
|
11053
|
+
borderRadius: "6px 6px 0 0",
|
|
11054
|
+
transition: c ? "height 0.85s cubic-bezier(0.16, 1, 0.3, 1)" : "none"
|
|
11055
|
+
} })
|
|
11056
|
+
] }, C);
|
|
11060
11057
|
}) }),
|
|
11061
11058
|
/* @__PURE__ */ u("div", { style: {
|
|
11062
|
-
width: `${
|
|
11063
|
-
marginLeft: `-${
|
|
11059
|
+
width: `${w + x * 2}px`,
|
|
11060
|
+
marginLeft: `-${x}px`,
|
|
11064
11061
|
height: "1.5px",
|
|
11065
11062
|
background: b,
|
|
11066
11063
|
borderRadius: "1px"
|
|
11067
11064
|
} }),
|
|
11068
11065
|
/* @__PURE__ */ u("div", { style: {
|
|
11069
11066
|
display: "flex",
|
|
11070
|
-
gap: `${
|
|
11071
|
-
width: `${
|
|
11067
|
+
gap: `${_}px`,
|
|
11068
|
+
width: `${w}px`,
|
|
11072
11069
|
marginTop: "10px"
|
|
11073
|
-
}, children: e.map((
|
|
11070
|
+
}, children: e.map((v, C) => /* @__PURE__ */ u("div", { style: {
|
|
11074
11071
|
width: `${a}px`,
|
|
11075
11072
|
textAlign: "center",
|
|
11076
11073
|
color: r,
|
|
@@ -11080,7 +11077,7 @@ const us = ["#a8d8cf", "#3bbfa0", "#5dd4b8", "#7ed4c2", "#2aa88a"], Da = ({
|
|
|
11080
11077
|
whiteSpace: "nowrap",
|
|
11081
11078
|
overflow: "hidden",
|
|
11082
11079
|
textOverflow: "ellipsis"
|
|
11083
|
-
}, children:
|
|
11080
|
+
}, children: v.title }, C)) })
|
|
11084
11081
|
] })
|
|
11085
11082
|
] });
|
|
11086
11083
|
};
|
|
@@ -11102,19 +11099,19 @@ Da.propTypes = {
|
|
|
11102
11099
|
separatorColor: i.string,
|
|
11103
11100
|
containerStyles: i.object
|
|
11104
11101
|
};
|
|
11105
|
-
const
|
|
11106
|
-
percentageBarContainer:
|
|
11107
|
-
barContainer:
|
|
11108
|
-
segment:
|
|
11109
|
-
handle:
|
|
11110
|
-
labelsContainer:
|
|
11111
|
-
labelItem:
|
|
11112
|
-
labelsListContainer:
|
|
11113
|
-
labelColor:
|
|
11114
|
-
labelText:
|
|
11115
|
-
labelValue:
|
|
11116
|
-
labelTranslation:
|
|
11117
|
-
},
|
|
11102
|
+
const Fp = "_percentageBarContainer_lgkme_3", Vp = "_barContainer_lgkme_10", zp = "_segment_lgkme_19", jp = "_handle_lgkme_36", qp = "_labelsContainer_lgkme_68", Wp = "_labelItem_lgkme_73", Up = "_labelsListContainer_lgkme_85", Hp = "_labelColor_lgkme_105", Kp = "_labelText_lgkme_114", Zp = "_labelValue_lgkme_122", Gp = "_labelTranslation_lgkme_126", je = {
|
|
11103
|
+
percentageBarContainer: Fp,
|
|
11104
|
+
barContainer: Vp,
|
|
11105
|
+
segment: zp,
|
|
11106
|
+
handle: jp,
|
|
11107
|
+
labelsContainer: qp,
|
|
11108
|
+
labelItem: Wp,
|
|
11109
|
+
labelsListContainer: Up,
|
|
11110
|
+
labelColor: Hp,
|
|
11111
|
+
labelText: Kp,
|
|
11112
|
+
labelValue: Zp,
|
|
11113
|
+
labelTranslation: Gp
|
|
11114
|
+
}, Yp = 2, ds = (e) => {
|
|
11118
11115
|
const t = e.reduce((n, r) => n + r.value, 0);
|
|
11119
11116
|
return t === 0 ? e.map(() => 100 / e.length) : e.map((n) => n.value / t * 100);
|
|
11120
11117
|
}, Jr = (e, t = 100) => e.map((n) => n.value / t * 100), fs = (e, t) => {
|
|
@@ -11129,7 +11126,7 @@ const Pp = "_percentageBarContainer_lgkme_3", Fp = "_barContainer_lgkme_10", Vp
|
|
|
11129
11126
|
showLabels: t = "bar",
|
|
11130
11127
|
showTranslations: n = !0,
|
|
11131
11128
|
onChange: r,
|
|
11132
|
-
minPercentage: o =
|
|
11129
|
+
minPercentage: o = Yp,
|
|
11133
11130
|
maxValue: s = 100,
|
|
11134
11131
|
labelTextColor: a,
|
|
11135
11132
|
labelValueColor: l
|
|
@@ -11142,11 +11139,11 @@ const Pp = "_percentageBarContainer_lgkme_3", Fp = "_barContainer_lgkme_10", Vp
|
|
|
11142
11139
|
if (!m.current || !h.current) return;
|
|
11143
11140
|
const {
|
|
11144
11141
|
dividerIndex: _
|
|
11145
|
-
} = m.current, x = h.current.getBoundingClientRect(), w = (f.touches ? f.touches[0].clientX : f.clientX) - x.left,
|
|
11142
|
+
} = m.current, x = h.current.getBoundingClientRect(), w = (f.touches ? f.touches[0].clientX : f.clientX) - x.left, A = Math.max(0, Math.min(100, w / x.width * 100));
|
|
11146
11143
|
d((v) => {
|
|
11147
11144
|
const C = [...v], S = v.slice(0, _).reduce((z, B) => z + B, 0), M = S + v[_] + v[_ + 1];
|
|
11148
|
-
let $ =
|
|
11149
|
-
if ($ < o && ($ = o,
|
|
11145
|
+
let $ = A - S, N = M - A;
|
|
11146
|
+
if ($ < o && ($ = o, N = M - S - o), N < o && (N = o, $ = M - S - o), C[_] = $, C[_ + 1] = N, r)
|
|
11150
11147
|
try {
|
|
11151
11148
|
const z = e.reduce((B, p) => B + p.value, 0);
|
|
11152
11149
|
r(e.map((B, p) => ({
|
|
@@ -11239,16 +11236,16 @@ Ba.propTypes = {
|
|
|
11239
11236
|
labelTextColor: i.string,
|
|
11240
11237
|
labelValueColor: i.string
|
|
11241
11238
|
};
|
|
11242
|
-
const
|
|
11243
|
-
overlay:
|
|
11244
|
-
modal:
|
|
11245
|
-
content:
|
|
11246
|
-
iconContainer:
|
|
11247
|
-
iconSvg:
|
|
11248
|
-
textContainer:
|
|
11249
|
-
title:
|
|
11250
|
-
message:
|
|
11251
|
-
closeButton:
|
|
11239
|
+
const Xp = "_overlay_1vbid_2", Qp = "_modal_1vbid_16", Jp = "_content_1vbid_28", em = "_iconContainer_1vbid_36", tm = "_iconSvg_1vbid_43", nm = "_textContainer_1vbid_48", rm = "_title_1vbid_55", om = "_message_1vbid_62", im = "_closeButton_1vbid_69", lt = {
|
|
11240
|
+
overlay: Xp,
|
|
11241
|
+
modal: Qp,
|
|
11242
|
+
content: Jp,
|
|
11243
|
+
iconContainer: em,
|
|
11244
|
+
iconSvg: tm,
|
|
11245
|
+
textContainer: nm,
|
|
11246
|
+
title: rm,
|
|
11247
|
+
message: om,
|
|
11248
|
+
closeButton: im
|
|
11252
11249
|
}, Pa = ({
|
|
11253
11250
|
isOpen: e,
|
|
11254
11251
|
onClose: t,
|
|
@@ -11330,12 +11327,12 @@ Pa.propTypes = {
|
|
|
11330
11327
|
/** Tiempo en ms antes de auto-cerrar (por defecto 3000ms) */
|
|
11331
11328
|
autoCloseDelay: i.number
|
|
11332
11329
|
};
|
|
11333
|
-
const
|
|
11334
|
-
header:
|
|
11335
|
-
leftComponents:
|
|
11336
|
-
centerComponents:
|
|
11337
|
-
rightComponents:
|
|
11338
|
-
componentsContainer:
|
|
11330
|
+
const sm = "_header_13kbt_2", am = "_leftComponents_13kbt_13", lm = "_centerComponents_13kbt_14", cm = "_rightComponents_13kbt_15", um = "_componentsContainer_13kbt_32", Ft = {
|
|
11331
|
+
header: sm,
|
|
11332
|
+
leftComponents: am,
|
|
11333
|
+
centerComponents: lm,
|
|
11334
|
+
rightComponents: cm,
|
|
11335
|
+
componentsContainer: um
|
|
11339
11336
|
}, Fa = ({
|
|
11340
11337
|
cssProps: e,
|
|
11341
11338
|
leftComponents: t = [],
|
|
@@ -11369,12 +11366,12 @@ Fa.propTypes = {
|
|
|
11369
11366
|
backgroundColor: i.string,
|
|
11370
11367
|
isFooter: i.bool
|
|
11371
11368
|
};
|
|
11372
|
-
const
|
|
11373
|
-
sidebar:
|
|
11374
|
-
open:
|
|
11375
|
-
content:
|
|
11376
|
-
closeButton:
|
|
11377
|
-
},
|
|
11369
|
+
const dm = "_sidebar_1kaqu_2", fm = "_open_1kaqu_16", pm = "_content_1kaqu_20", mm = "_closeButton_1kaqu_25", tr = {
|
|
11370
|
+
sidebar: dm,
|
|
11371
|
+
open: fm,
|
|
11372
|
+
content: pm,
|
|
11373
|
+
closeButton: mm
|
|
11374
|
+
}, hm = "data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", Va = ({
|
|
11378
11375
|
width: e = "300px",
|
|
11379
11376
|
children: t,
|
|
11380
11377
|
showRightBar: n,
|
|
@@ -11386,7 +11383,7 @@ const um = "_sidebar_1kaqu_2", dm = "_open_1kaqu_16", fm = "_content_1kaqu_20",
|
|
|
11386
11383
|
return /* @__PURE__ */ u("div", { className: `${tr.sidebar} ${n ? tr.open : ""}`, style: {
|
|
11387
11384
|
width: n ? e : 0
|
|
11388
11385
|
}, children: n && /* @__PURE__ */ T("div", { className: tr.content, children: [
|
|
11389
|
-
/* @__PURE__ */ u("button", { className: tr.closeButton, onClick: o, children: /* @__PURE__ */ u("img", { src:
|
|
11386
|
+
/* @__PURE__ */ u("button", { className: tr.closeButton, onClick: o, children: /* @__PURE__ */ u("img", { src: hm, alt: "Close Sidebar" }) }),
|
|
11390
11387
|
t
|
|
11391
11388
|
] }) });
|
|
11392
11389
|
};
|