@aseguragonzalez/ui 0.0.0 → 1.0.2
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 +1 -1
- package/dist/index.js +260 -273
- package/package.json +17 -13
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var E = {
|
|
|
129
129
|
sm: "_sm_vgmp4_88",
|
|
130
130
|
md: "_md_vgmp4_96",
|
|
131
131
|
lg: "_lg_vgmp4_104"
|
|
132
|
-
},
|
|
132
|
+
}, D = r(({ hasError: e = !1, size: t = "md", className: n, children: r, ...i }, a) => /* @__PURE__ */ f("div", {
|
|
133
133
|
className: [
|
|
134
134
|
E.wrapper,
|
|
135
135
|
E[t],
|
|
@@ -144,15 +144,15 @@ var E = {
|
|
|
144
144
|
children: r
|
|
145
145
|
})
|
|
146
146
|
}));
|
|
147
|
-
|
|
148
|
-
var
|
|
147
|
+
D.displayName = "Select";
|
|
148
|
+
var O = {
|
|
149
149
|
textarea: "_textarea_1l4wd_1",
|
|
150
150
|
error: "_error_1l4wd_42",
|
|
151
151
|
autoResize: "_autoResize_1l4wd_67",
|
|
152
152
|
sm: "_sm_1l4wd_74",
|
|
153
153
|
md: "_md_1l4wd_79",
|
|
154
154
|
lg: "_lg_1l4wd_84"
|
|
155
|
-
},
|
|
155
|
+
}, ee = r(({ hasError: e = !1, size: t = "md", autoResize: n = !1, className: r, onChange: a, ...s }, c) => {
|
|
156
156
|
let u = l(null), d = i((e) => {
|
|
157
157
|
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
158
158
|
}, [c]);
|
|
@@ -163,10 +163,10 @@ var D = {
|
|
|
163
163
|
let p = i((e) => {
|
|
164
164
|
n && (e.currentTarget.style.height = "auto", e.currentTarget.style.height = `${e.currentTarget.scrollHeight}px`), a?.(e);
|
|
165
165
|
}, [n, a]), m = [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
e ?
|
|
169
|
-
n ?
|
|
166
|
+
O.textarea,
|
|
167
|
+
O[t],
|
|
168
|
+
e ? O.error : "",
|
|
169
|
+
n ? O.autoResize : "",
|
|
170
170
|
r ?? ""
|
|
171
171
|
].filter(Boolean).join(" ");
|
|
172
172
|
return /* @__PURE__ */ f("textarea", {
|
|
@@ -177,7 +177,7 @@ var D = {
|
|
|
177
177
|
...s
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
|
-
|
|
180
|
+
ee.displayName = "TextArea";
|
|
181
181
|
var k = {
|
|
182
182
|
root: "_root_16qku_3",
|
|
183
183
|
input: "_input_16qku_18",
|
|
@@ -963,7 +963,7 @@ function Ve({ content: e, children: n, placement: r = "top", delayMs: a = 200 })
|
|
|
963
963
|
}, [x, a]), C = i(() => {
|
|
964
964
|
clearTimeout(g.current), v(!1);
|
|
965
965
|
}, []);
|
|
966
|
-
|
|
966
|
+
o(() => {
|
|
967
967
|
if (!_) return;
|
|
968
968
|
let e = () => x();
|
|
969
969
|
return window.addEventListener("scroll", e, {
|
|
@@ -972,23 +972,25 @@ function Ve({ content: e, children: n, placement: r = "top", delayMs: a = 200 })
|
|
|
972
972
|
}), window.addEventListener("resize", e, { passive: !0 }), () => {
|
|
973
973
|
window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
|
|
974
974
|
};
|
|
975
|
-
}, [_, x])
|
|
976
|
-
|
|
975
|
+
}, [_, x]);
|
|
976
|
+
let w = n;
|
|
977
|
+
return /* @__PURE__ */ p(d, { children: [t(w, {
|
|
978
|
+
ref: Be(h, w.props.ref),
|
|
977
979
|
"aria-describedby": c,
|
|
978
980
|
onMouseEnter: (e) => {
|
|
979
|
-
S(),
|
|
981
|
+
S(), w.props.onMouseEnter?.(e);
|
|
980
982
|
},
|
|
981
983
|
onMouseLeave: (e) => {
|
|
982
|
-
C(),
|
|
984
|
+
C(), w.props.onMouseLeave?.(e);
|
|
983
985
|
},
|
|
984
986
|
onFocus: (e) => {
|
|
985
|
-
S(),
|
|
987
|
+
S(), w.props.onFocus?.(e);
|
|
986
988
|
},
|
|
987
989
|
onBlur: (e) => {
|
|
988
|
-
C(),
|
|
990
|
+
C(), w.props.onBlur?.(e);
|
|
989
991
|
},
|
|
990
992
|
onKeyDown: (e) => {
|
|
991
|
-
e.key === "Escape" && C(),
|
|
993
|
+
e.key === "Escape" && C(), w.props.onKeyDown?.(e);
|
|
992
994
|
}
|
|
993
995
|
}), m(/* @__PURE__ */ f("div", {
|
|
994
996
|
id: c,
|
|
@@ -1456,7 +1458,7 @@ var ot = { root: "_root_1oeo1_1" }, st = r(({ label: e, options: t, placeholder:
|
|
|
1456
1458
|
disabled: s,
|
|
1457
1459
|
children: e
|
|
1458
1460
|
}),
|
|
1459
|
-
/* @__PURE__ */ p(
|
|
1461
|
+
/* @__PURE__ */ p(D, {
|
|
1460
1462
|
ref: m,
|
|
1461
1463
|
id: h,
|
|
1462
1464
|
size: a,
|
|
@@ -1567,7 +1569,7 @@ var lt = { root: "_root_1oeo1_1" }, ut = r(({ label: e, hint: t, error: n, size:
|
|
|
1567
1569
|
disabled: a,
|
|
1568
1570
|
children: e
|
|
1569
1571
|
}),
|
|
1570
|
-
/* @__PURE__ */ f(
|
|
1572
|
+
/* @__PURE__ */ f(ee, {
|
|
1571
1573
|
ref: u,
|
|
1572
1574
|
id: d,
|
|
1573
1575
|
size: r,
|
|
@@ -1890,54 +1892,41 @@ wt.displayName = "DateField";
|
|
|
1890
1892
|
//#endregion
|
|
1891
1893
|
//#region src/components/ThemeProvider/ThemeProvider.tsx
|
|
1892
1894
|
var Tt = n(null), Et = "ds-theme";
|
|
1893
|
-
function Dt() {
|
|
1894
|
-
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1895
|
-
}
|
|
1896
|
-
function Ot(e, t) {
|
|
1895
|
+
function Dt(e, t) {
|
|
1897
1896
|
e === "system" ? document.documentElement.removeAttribute("data-theme") : document.documentElement.setAttribute("data-theme", t);
|
|
1898
1897
|
}
|
|
1899
|
-
function
|
|
1900
|
-
let [r, i] = u(() =>
|
|
1901
|
-
if (typeof window > "u") return t;
|
|
1902
|
-
let e = localStorage.getItem(n) ?? t;
|
|
1903
|
-
return Ot(e, e === "system" ? Dt() : e), e;
|
|
1904
|
-
}), [a, s] = u(() => r === "system" ? Dt() : r);
|
|
1898
|
+
function Ot({ children: e, defaultTheme: t = "system", storageKey: n = Et }) {
|
|
1899
|
+
let [r, i] = u(() => typeof window > "u" ? t : localStorage.getItem(n) ?? t), [a, s] = u(() => typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches), c = r === "system" ? a ? "dark" : "light" : r;
|
|
1905
1900
|
o(() => {
|
|
1901
|
+
Dt(r, c);
|
|
1902
|
+
}, [r, c]), o(() => {
|
|
1906
1903
|
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1907
|
-
function t(
|
|
1908
|
-
|
|
1904
|
+
function t() {
|
|
1905
|
+
s(e.matches);
|
|
1909
1906
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
if (r === "system") {
|
|
1914
|
-
let t = e.matches ? "dark" : "light";
|
|
1915
|
-
s(t), Ot("system", t);
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
return e.addEventListener("change", i), () => e.removeEventListener("change", i);
|
|
1919
|
-
}, [r]);
|
|
1920
|
-
function c(e) {
|
|
1907
|
+
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
1908
|
+
}, []);
|
|
1909
|
+
function l(e) {
|
|
1921
1910
|
localStorage.setItem(n, e), i(e);
|
|
1922
1911
|
}
|
|
1923
1912
|
return /* @__PURE__ */ f(Tt.Provider, {
|
|
1924
1913
|
value: {
|
|
1925
1914
|
theme: r,
|
|
1926
|
-
resolvedTheme:
|
|
1927
|
-
setTheme:
|
|
1915
|
+
resolvedTheme: c,
|
|
1916
|
+
setTheme: l
|
|
1928
1917
|
},
|
|
1929
1918
|
children: e
|
|
1930
1919
|
});
|
|
1931
1920
|
}
|
|
1932
|
-
|
|
1921
|
+
Ot.displayName = "ThemeProvider";
|
|
1933
1922
|
//#endregion
|
|
1934
1923
|
//#region src/components/ThemeProvider/useTheme.ts
|
|
1935
|
-
function
|
|
1924
|
+
function kt() {
|
|
1936
1925
|
let e = a(Tt);
|
|
1937
1926
|
if (!e) throw Error("useTheme must be used inside a <ThemeProvider>");
|
|
1938
1927
|
return e;
|
|
1939
1928
|
}
|
|
1940
|
-
var
|
|
1929
|
+
var At = { stack: "_stack_bluv1_1" }, jt = {
|
|
1941
1930
|
0: "0",
|
|
1942
1931
|
1: "var(--ds-space-1)",
|
|
1943
1932
|
2: "var(--ds-space-2)",
|
|
@@ -1949,31 +1938,31 @@ var jt = { stack: "_stack_bluv1_1" }, Mt = {
|
|
|
1949
1938
|
10: "var(--ds-space-10)",
|
|
1950
1939
|
12: "var(--ds-space-12)",
|
|
1951
1940
|
16: "var(--ds-space-16)"
|
|
1952
|
-
},
|
|
1941
|
+
}, Mt = {
|
|
1953
1942
|
start: "flex-start",
|
|
1954
1943
|
center: "center",
|
|
1955
1944
|
end: "flex-end",
|
|
1956
1945
|
between: "space-between",
|
|
1957
1946
|
around: "space-around",
|
|
1958
1947
|
evenly: "space-evenly"
|
|
1959
|
-
},
|
|
1948
|
+
}, Nt = r(({ direction: e = "column", gap: t = 4, align: n = "stretch", justify: r = "start", wrap: i = !1, className: a, style: o, ...s }, c) => /* @__PURE__ */ f("div", {
|
|
1960
1949
|
ref: c,
|
|
1961
|
-
className: [
|
|
1950
|
+
className: [At.stack, a ?? ""].filter(Boolean).join(" "),
|
|
1962
1951
|
style: {
|
|
1963
1952
|
flexDirection: e,
|
|
1964
|
-
gap:
|
|
1953
|
+
gap: jt[t],
|
|
1965
1954
|
alignItems: n,
|
|
1966
|
-
justifyContent:
|
|
1955
|
+
justifyContent: Mt[r],
|
|
1967
1956
|
flexWrap: i ? "wrap" : "nowrap",
|
|
1968
1957
|
...o
|
|
1969
1958
|
},
|
|
1970
1959
|
...s
|
|
1971
1960
|
}));
|
|
1972
|
-
|
|
1973
|
-
var
|
|
1961
|
+
Nt.displayName = "Stack";
|
|
1962
|
+
var Pt = {
|
|
1974
1963
|
grid: "_grid_nas2v_1",
|
|
1975
1964
|
responsive: "_responsive_nas2v_7"
|
|
1976
|
-
},
|
|
1965
|
+
}, Ft = {
|
|
1977
1966
|
0: "0",
|
|
1978
1967
|
1: "var(--ds-space-1)",
|
|
1979
1968
|
2: "var(--ds-space-2)",
|
|
@@ -1985,7 +1974,7 @@ var Ft = {
|
|
|
1985
1974
|
10: "var(--ds-space-10)",
|
|
1986
1975
|
12: "var(--ds-space-12)",
|
|
1987
1976
|
16: "var(--ds-space-16)"
|
|
1988
|
-
},
|
|
1977
|
+
}, It = r(({ cols: e = 1, gap: t = 4, columnGap: n, rowGap: r, className: i, style: a, ...o }, s) => {
|
|
1989
1978
|
let c = typeof e != "number", l = c ? {
|
|
1990
1979
|
...e.mobile !== void 0 && { "--grid-cols-mobile": String(e.mobile) },
|
|
1991
1980
|
...e.tablet !== void 0 && { "--grid-cols-tablet": String(e.tablet) },
|
|
@@ -1994,22 +1983,22 @@ var Ft = {
|
|
|
1994
1983
|
return /* @__PURE__ */ f("div", {
|
|
1995
1984
|
ref: s,
|
|
1996
1985
|
className: [
|
|
1997
|
-
|
|
1998
|
-
c ?
|
|
1986
|
+
Pt.grid,
|
|
1987
|
+
c ? Pt.responsive : "",
|
|
1999
1988
|
i ?? ""
|
|
2000
1989
|
].filter(Boolean).join(" "),
|
|
2001
1990
|
style: {
|
|
2002
1991
|
...l,
|
|
2003
|
-
gap:
|
|
2004
|
-
...n !== void 0 && { columnGap:
|
|
2005
|
-
...r !== void 0 && { rowGap:
|
|
1992
|
+
gap: Ft[t],
|
|
1993
|
+
...n !== void 0 && { columnGap: Ft[n] },
|
|
1994
|
+
...r !== void 0 && { rowGap: Ft[r] },
|
|
2006
1995
|
...a
|
|
2007
1996
|
},
|
|
2008
1997
|
...o
|
|
2009
1998
|
});
|
|
2010
1999
|
});
|
|
2011
|
-
|
|
2012
|
-
var
|
|
2000
|
+
It.displayName = "Grid";
|
|
2001
|
+
var Lt = {
|
|
2013
2002
|
container: "_container_1evbj_1",
|
|
2014
2003
|
padding: "_padding_1evbj_6",
|
|
2015
2004
|
sm: "_sm_1evbj_12",
|
|
@@ -2017,17 +2006,17 @@ var Rt = {
|
|
|
2017
2006
|
lg: "_lg_1evbj_14",
|
|
2018
2007
|
xl: "_xl_1evbj_15",
|
|
2019
2008
|
full: "_full_1evbj_16"
|
|
2020
|
-
},
|
|
2009
|
+
}, Rt = r(({ size: e = "lg", padding: t = !0, className: n, ...r }, i) => /* @__PURE__ */ f("div", {
|
|
2021
2010
|
ref: i,
|
|
2022
2011
|
className: [
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
t ?
|
|
2012
|
+
Lt.container,
|
|
2013
|
+
Lt[e],
|
|
2014
|
+
t ? Lt.padding : "",
|
|
2026
2015
|
n ?? ""
|
|
2027
2016
|
].filter(Boolean).join(" "),
|
|
2028
2017
|
...r
|
|
2029
2018
|
}));
|
|
2030
|
-
|
|
2019
|
+
Rt.displayName = "Container";
|
|
2031
2020
|
var R = {
|
|
2032
2021
|
root: "_root_1jo5p_3",
|
|
2033
2022
|
outlined: "_outlined_1jo5p_14",
|
|
@@ -2040,50 +2029,50 @@ var R = {
|
|
|
2040
2029
|
header: "_header_1jo5p_47",
|
|
2041
2030
|
body: "_body_1jo5p_48",
|
|
2042
2031
|
footer: "_footer_1jo5p_49"
|
|
2043
|
-
},
|
|
2032
|
+
}, zt = {
|
|
2044
2033
|
sm: R.paddingSm,
|
|
2045
2034
|
md: R.paddingMd,
|
|
2046
2035
|
lg: R.paddingLg
|
|
2047
|
-
},
|
|
2036
|
+
}, Bt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2048
2037
|
ref: n,
|
|
2049
2038
|
className: [R.media, e ?? ""].filter(Boolean).join(" "),
|
|
2050
2039
|
...t
|
|
2051
2040
|
}));
|
|
2052
|
-
|
|
2053
|
-
var
|
|
2041
|
+
Bt.displayName = "Card.Media";
|
|
2042
|
+
var Vt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2054
2043
|
ref: n,
|
|
2055
2044
|
className: [R.header, e ?? ""].filter(Boolean).join(" "),
|
|
2056
2045
|
...t
|
|
2057
2046
|
}));
|
|
2058
|
-
|
|
2059
|
-
var
|
|
2047
|
+
Vt.displayName = "Card.Header";
|
|
2048
|
+
var Ht = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2060
2049
|
ref: n,
|
|
2061
2050
|
className: [R.body, e ?? ""].filter(Boolean).join(" "),
|
|
2062
2051
|
...t
|
|
2063
2052
|
}));
|
|
2064
|
-
|
|
2065
|
-
var
|
|
2053
|
+
Ht.displayName = "Card.Body";
|
|
2054
|
+
var Ut = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2066
2055
|
ref: n,
|
|
2067
2056
|
className: [R.footer, e ?? ""].filter(Boolean).join(" "),
|
|
2068
2057
|
...t
|
|
2069
2058
|
}));
|
|
2070
|
-
|
|
2071
|
-
var
|
|
2059
|
+
Ut.displayName = "Card.Footer";
|
|
2060
|
+
var Wt = r(({ variant: e = "outlined", padding: t = "md", className: n, ...r }, i) => /* @__PURE__ */ f("div", {
|
|
2072
2061
|
ref: i,
|
|
2073
2062
|
className: [
|
|
2074
2063
|
R.root,
|
|
2075
2064
|
R[e],
|
|
2076
|
-
|
|
2065
|
+
zt[t],
|
|
2077
2066
|
n ?? ""
|
|
2078
2067
|
].filter(Boolean).join(" "),
|
|
2079
2068
|
...r
|
|
2080
2069
|
}));
|
|
2081
|
-
|
|
2082
|
-
var
|
|
2083
|
-
Media:
|
|
2084
|
-
Header:
|
|
2085
|
-
Body:
|
|
2086
|
-
Footer:
|
|
2070
|
+
Wt.displayName = "Card";
|
|
2071
|
+
var Gt = Object.assign(Wt, {
|
|
2072
|
+
Media: Bt,
|
|
2073
|
+
Header: Vt,
|
|
2074
|
+
Body: Ht,
|
|
2075
|
+
Footer: Ut
|
|
2087
2076
|
}), z = {
|
|
2088
2077
|
root: "_root_xmnn0_3",
|
|
2089
2078
|
info: "_info_xmnn0_16",
|
|
@@ -2098,13 +2087,13 @@ var Kt = Object.assign(Gt, {
|
|
|
2098
2087
|
description: "_description_xmnn0_85",
|
|
2099
2088
|
actions: "_actions_xmnn0_95",
|
|
2100
2089
|
dismiss: "_dismiss_xmnn0_108"
|
|
2101
|
-
},
|
|
2090
|
+
}, Kt = {
|
|
2102
2091
|
error: "alert",
|
|
2103
2092
|
warning: "alert",
|
|
2104
2093
|
success: "status",
|
|
2105
2094
|
info: "status",
|
|
2106
2095
|
promotional: "region"
|
|
2107
|
-
},
|
|
2096
|
+
}, qt = {
|
|
2108
2097
|
info: /* @__PURE__ */ p("svg", {
|
|
2109
2098
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2110
2099
|
width: "20",
|
|
@@ -2220,7 +2209,7 @@ var Kt = Object.assign(Gt, {
|
|
|
2220
2209
|
"aria-hidden": "true",
|
|
2221
2210
|
children: /* @__PURE__ */ f("path", { d: "M22 12h-4l-3 9L9 3l-3 9H2" })
|
|
2222
2211
|
})
|
|
2223
|
-
},
|
|
2212
|
+
}, Jt = () => /* @__PURE__ */ p("svg", {
|
|
2224
2213
|
"aria-hidden": "true",
|
|
2225
2214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2226
2215
|
width: "16",
|
|
@@ -2242,8 +2231,8 @@ var Kt = Object.assign(Gt, {
|
|
|
2242
2231
|
x2: "18",
|
|
2243
2232
|
y2: "18"
|
|
2244
2233
|
})]
|
|
2245
|
-
}),
|
|
2246
|
-
let m = c ??
|
|
2234
|
+
}), Yt = r(({ headline: e, description: t, variant: n = "info", layout: r = "horizontal", media: i, actions: a, onDismiss: o, dismissLabel: s = "Close banner", role: c, className: l, ...u }, d) => {
|
|
2235
|
+
let m = c ?? Kt[n], h = [
|
|
2247
2236
|
z.root,
|
|
2248
2237
|
z[n],
|
|
2249
2238
|
r === "stacked" ? z.stacked : "",
|
|
@@ -2258,7 +2247,7 @@ var Kt = Object.assign(Gt, {
|
|
|
2258
2247
|
children: [
|
|
2259
2248
|
/* @__PURE__ */ f("span", {
|
|
2260
2249
|
className: z.icon,
|
|
2261
|
-
children: i ??
|
|
2250
|
+
children: i ?? qt[n]
|
|
2262
2251
|
}),
|
|
2263
2252
|
/* @__PURE__ */ p("div", {
|
|
2264
2253
|
className: z.content,
|
|
@@ -2286,12 +2275,12 @@ var Kt = Object.assign(Gt, {
|
|
|
2286
2275
|
className: z.dismiss,
|
|
2287
2276
|
"aria-label": s,
|
|
2288
2277
|
onClick: o,
|
|
2289
|
-
children: /* @__PURE__ */ f(
|
|
2278
|
+
children: /* @__PURE__ */ f(Jt, {})
|
|
2290
2279
|
})
|
|
2291
2280
|
]
|
|
2292
2281
|
});
|
|
2293
2282
|
});
|
|
2294
|
-
|
|
2283
|
+
Yt.displayName = "Banner";
|
|
2295
2284
|
var B = {
|
|
2296
2285
|
root: "_root_cjxe3_3",
|
|
2297
2286
|
srOnly: "_srOnly_cjxe3_11",
|
|
@@ -2303,7 +2292,7 @@ var B = {
|
|
|
2303
2292
|
dots: "_dots_cjxe3_66",
|
|
2304
2293
|
dot: "_dot_cjxe3_66",
|
|
2305
2294
|
dotActive: "_dotActive_cjxe3_96"
|
|
2306
|
-
},
|
|
2295
|
+
}, Xt = () => /* @__PURE__ */ f("svg", {
|
|
2307
2296
|
width: "16",
|
|
2308
2297
|
height: "16",
|
|
2309
2298
|
viewBox: "0 0 24 24",
|
|
@@ -2314,7 +2303,7 @@ var B = {
|
|
|
2314
2303
|
strokeLinejoin: "round",
|
|
2315
2304
|
"aria-hidden": "true",
|
|
2316
2305
|
children: /* @__PURE__ */ f("polyline", { points: "15 18 9 12 15 6" })
|
|
2317
|
-
}),
|
|
2306
|
+
}), Zt = () => /* @__PURE__ */ f("svg", {
|
|
2318
2307
|
width: "16",
|
|
2319
2308
|
height: "16",
|
|
2320
2309
|
viewBox: "0 0 24 24",
|
|
@@ -2325,15 +2314,15 @@ var B = {
|
|
|
2325
2314
|
strokeLinejoin: "round",
|
|
2326
2315
|
"aria-hidden": "true",
|
|
2327
2316
|
children: /* @__PURE__ */ f("polyline", { points: "9 18 15 12 9 6" })
|
|
2328
|
-
}),
|
|
2329
|
-
let b = e.toArray(t), x = b.length, S = Math.min(s, x), C = Math.max(0, x - S), w = C + 1, [T, E] = u(0), [
|
|
2317
|
+
}), Qt = r(({ children: t, "aria-label": n, loop: r = !1, autoplay: a, visibleSlides: s = 1, prevLabel: d = "Previous", nextLabel: m = "Next", className: h, onKeyDown: g, ..._ }, v) => {
|
|
2318
|
+
let b = e.toArray(t), x = b.length, S = Math.min(s, x), C = Math.max(0, x - S), w = C + 1, [T, E] = u(0), [D, O] = u(!1), ee = l(!1), k = l(!1);
|
|
2330
2319
|
c(() => {
|
|
2331
|
-
if (!
|
|
2332
|
-
let e = requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
2320
|
+
if (!D) return;
|
|
2321
|
+
let e = requestAnimationFrame(() => requestAnimationFrame(() => O(!1)));
|
|
2333
2322
|
return () => cancelAnimationFrame(e);
|
|
2334
|
-
}, [
|
|
2323
|
+
}, [D]);
|
|
2335
2324
|
let A = i((e) => {
|
|
2336
|
-
r ? ((e < 0 || e >= x) &&
|
|
2325
|
+
r ? ((e < 0 || e >= x) && O(!0), E((e % x + x) % x)) : E(Math.max(0, Math.min(C, e)));
|
|
2337
2326
|
}, [
|
|
2338
2327
|
r,
|
|
2339
2328
|
x,
|
|
@@ -2342,7 +2331,7 @@ var B = {
|
|
|
2342
2331
|
o(() => {
|
|
2343
2332
|
if (!a) return;
|
|
2344
2333
|
let e = setInterval(() => {
|
|
2345
|
-
|
|
2334
|
+
ee.current || k.current || (r ? A(T + 1) : E((e) => e < C ? e + 1 : 0));
|
|
2346
2335
|
}, a);
|
|
2347
2336
|
return () => clearInterval(e);
|
|
2348
2337
|
}, [
|
|
@@ -2366,10 +2355,10 @@ var B = {
|
|
|
2366
2355
|
className: [B.root, h ?? ""].filter(Boolean).join(" "),
|
|
2367
2356
|
onKeyDown: ne,
|
|
2368
2357
|
onMouseEnter: () => {
|
|
2369
|
-
|
|
2358
|
+
ee.current = !0;
|
|
2370
2359
|
},
|
|
2371
2360
|
onMouseLeave: () => {
|
|
2372
|
-
|
|
2361
|
+
ee.current = !1;
|
|
2373
2362
|
},
|
|
2374
2363
|
onFocus: () => {
|
|
2375
2364
|
k.current = !0;
|
|
@@ -2392,7 +2381,7 @@ var B = {
|
|
|
2392
2381
|
style: {
|
|
2393
2382
|
width: `${oe}%`,
|
|
2394
2383
|
transform: `translateX(-${ae}%)`,
|
|
2395
|
-
...
|
|
2384
|
+
...D ? { transition: "none" } : {}
|
|
2396
2385
|
},
|
|
2397
2386
|
children: b.map((e, t) => /* @__PURE__ */ f("div", {
|
|
2398
2387
|
role: "group",
|
|
@@ -2414,7 +2403,7 @@ var B = {
|
|
|
2414
2403
|
disabled: re,
|
|
2415
2404
|
onClick: j,
|
|
2416
2405
|
className: B.navBtn,
|
|
2417
|
-
children: /* @__PURE__ */ f(
|
|
2406
|
+
children: /* @__PURE__ */ f(Xt, {})
|
|
2418
2407
|
}),
|
|
2419
2408
|
/* @__PURE__ */ f("ul", {
|
|
2420
2409
|
className: B.dots,
|
|
@@ -2422,7 +2411,7 @@ var B = {
|
|
|
2422
2411
|
children: Array.from({ length: w }).map((e, t) => /* @__PURE__ */ f("li", { children: /* @__PURE__ */ f("button", {
|
|
2423
2412
|
type: "button",
|
|
2424
2413
|
"aria-label": `Go to slide ${t + 1}`,
|
|
2425
|
-
"aria-current": t === T
|
|
2414
|
+
"aria-current": t === T || void 0,
|
|
2426
2415
|
className: [B.dot, t === T ? B.dotActive : ""].filter(Boolean).join(" "),
|
|
2427
2416
|
onClick: () => A(t)
|
|
2428
2417
|
}) }, t))
|
|
@@ -2434,47 +2423,47 @@ var B = {
|
|
|
2434
2423
|
disabled: ie,
|
|
2435
2424
|
onClick: te,
|
|
2436
2425
|
className: B.navBtn,
|
|
2437
|
-
children: /* @__PURE__ */ f(
|
|
2426
|
+
children: /* @__PURE__ */ f(Zt, {})
|
|
2438
2427
|
})
|
|
2439
2428
|
]
|
|
2440
2429
|
})
|
|
2441
2430
|
]
|
|
2442
2431
|
});
|
|
2443
2432
|
});
|
|
2444
|
-
|
|
2445
|
-
var
|
|
2433
|
+
Qt.displayName = "Carousel";
|
|
2434
|
+
var $t = {
|
|
2446
2435
|
nav: "_nav_1eaxa_1",
|
|
2447
2436
|
list: "_list_1eaxa_5",
|
|
2448
2437
|
item: "_item_1eaxa_14",
|
|
2449
2438
|
link: "_link_1eaxa_29",
|
|
2450
2439
|
current: "_current_1eaxa_47"
|
|
2451
|
-
},
|
|
2440
|
+
}, en = r(({ items: e, "aria-label": t = "Breadcrumb", className: n }, r) => /* @__PURE__ */ f("nav", {
|
|
2452
2441
|
ref: r,
|
|
2453
2442
|
"aria-label": t,
|
|
2454
|
-
className: [
|
|
2443
|
+
className: [$t.nav, n ?? ""].filter(Boolean).join(" "),
|
|
2455
2444
|
children: /* @__PURE__ */ f("ol", {
|
|
2456
|
-
className:
|
|
2445
|
+
className: $t.list,
|
|
2457
2446
|
children: e.map((t, n) => {
|
|
2458
2447
|
let r = n === e.length - 1;
|
|
2459
2448
|
return /* @__PURE__ */ f("li", {
|
|
2460
|
-
className:
|
|
2449
|
+
className: $t.item,
|
|
2461
2450
|
children: r ? /* @__PURE__ */ f("span", {
|
|
2462
|
-
className:
|
|
2451
|
+
className: $t.current,
|
|
2463
2452
|
"aria-current": "page",
|
|
2464
2453
|
children: t.label
|
|
2465
2454
|
}) : t.href ? /* @__PURE__ */ f("a", {
|
|
2466
2455
|
href: t.href,
|
|
2467
|
-
className:
|
|
2456
|
+
className: $t.link,
|
|
2468
2457
|
children: t.label
|
|
2469
2458
|
}) : /* @__PURE__ */ f("span", {
|
|
2470
|
-
className:
|
|
2459
|
+
className: $t.link,
|
|
2471
2460
|
children: t.label
|
|
2472
2461
|
})
|
|
2473
2462
|
}, `${t.label}-${n}`);
|
|
2474
2463
|
})
|
|
2475
2464
|
})
|
|
2476
2465
|
}));
|
|
2477
|
-
|
|
2466
|
+
en.displayName = "Breadcrumb";
|
|
2478
2467
|
var V = {
|
|
2479
2468
|
navbar: "_navbar_1bewp_1",
|
|
2480
2469
|
sticky: "_sticky_1bewp_7",
|
|
@@ -2493,7 +2482,7 @@ var V = {
|
|
|
2493
2482
|
mobileNavLink: "_mobileNavLink_1bewp_137",
|
|
2494
2483
|
mobileNavLinkActive: "_mobileNavLinkActive_1bewp_160",
|
|
2495
2484
|
mobileMenuOpen: "_mobileMenuOpen_1bewp_189"
|
|
2496
|
-
},
|
|
2485
|
+
}, tn = () => /* @__PURE__ */ f("svg", {
|
|
2497
2486
|
width: "20",
|
|
2498
2487
|
height: "20",
|
|
2499
2488
|
viewBox: "0 0 20 20",
|
|
@@ -2504,14 +2493,14 @@ var V = {
|
|
|
2504
2493
|
d: "M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
2505
2494
|
clipRule: "evenodd"
|
|
2506
2495
|
})
|
|
2507
|
-
}),
|
|
2496
|
+
}), nn = () => /* @__PURE__ */ f("svg", {
|
|
2508
2497
|
width: "20",
|
|
2509
2498
|
height: "20",
|
|
2510
2499
|
viewBox: "0 0 20 20",
|
|
2511
2500
|
fill: "currentColor",
|
|
2512
2501
|
"aria-hidden": "true",
|
|
2513
2502
|
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2514
|
-
}),
|
|
2503
|
+
}), rn = r(({ brand: e, items: t = [], actions: n, sticky: r = !1, "aria-label": i = "Main navigation", defaultMobileOpen: a = !1, isMobileOpen: o, onMobileOpenChange: c, className: l }, d) => {
|
|
2515
2504
|
let [m, h] = u(a), g = o ?? m, _ = s(), v = () => {
|
|
2516
2505
|
let e = !g;
|
|
2517
2506
|
o === void 0 && h(e), c?.(e);
|
|
@@ -2560,7 +2549,7 @@ var V = {
|
|
|
2560
2549
|
"aria-expanded": g,
|
|
2561
2550
|
"aria-controls": _,
|
|
2562
2551
|
"aria-label": g ? "Close menu" : "Open menu",
|
|
2563
|
-
children: f(g ?
|
|
2552
|
+
children: f(g ? nn : tn, {})
|
|
2564
2553
|
})
|
|
2565
2554
|
]
|
|
2566
2555
|
}), /* @__PURE__ */ f("div", {
|
|
@@ -2587,7 +2576,7 @@ var V = {
|
|
|
2587
2576
|
})]
|
|
2588
2577
|
});
|
|
2589
2578
|
});
|
|
2590
|
-
|
|
2579
|
+
rn.displayName = "Navbar";
|
|
2591
2580
|
var H = {
|
|
2592
2581
|
sidebar: "_sidebar_zpuep_3",
|
|
2593
2582
|
collapsed: "_collapsed_zpuep_13",
|
|
@@ -2609,7 +2598,7 @@ var H = {
|
|
|
2609
2598
|
collapseButton: "_collapseButton_zpuep_217",
|
|
2610
2599
|
footer: "_footer_zpuep_251",
|
|
2611
2600
|
mobileOpen: "_mobileOpen_zpuep_285"
|
|
2612
|
-
},
|
|
2601
|
+
}, an = "a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", on = () => /* @__PURE__ */ f("svg", {
|
|
2613
2602
|
width: "16",
|
|
2614
2603
|
height: "16",
|
|
2615
2604
|
viewBox: "0 0 16 16",
|
|
@@ -2622,7 +2611,7 @@ var H = {
|
|
|
2622
2611
|
strokeLinecap: "round",
|
|
2623
2612
|
strokeLinejoin: "round"
|
|
2624
2613
|
})
|
|
2625
|
-
}),
|
|
2614
|
+
}), sn = () => /* @__PURE__ */ f("svg", {
|
|
2626
2615
|
width: "16",
|
|
2627
2616
|
height: "16",
|
|
2628
2617
|
viewBox: "0 0 16 16",
|
|
@@ -2635,34 +2624,32 @@ var H = {
|
|
|
2635
2624
|
strokeLinecap: "round",
|
|
2636
2625
|
strokeLinejoin: "round"
|
|
2637
2626
|
})
|
|
2638
|
-
}),
|
|
2627
|
+
}), cn = () => /* @__PURE__ */ f("svg", {
|
|
2639
2628
|
width: "20",
|
|
2640
2629
|
height: "20",
|
|
2641
2630
|
viewBox: "0 0 20 20",
|
|
2642
2631
|
fill: "currentColor",
|
|
2643
2632
|
"aria-hidden": "true",
|
|
2644
2633
|
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2645
|
-
}),
|
|
2646
|
-
let [b, x] = u(s), S = c ?? b, [C, w] = u(h), T = g ?? C, [E
|
|
2634
|
+
}), ln = r(({ items: e, logo: t, header: n, footer: r, "aria-label": a = "Sidebar navigation", defaultCollapsed: s = !1, isCollapsed: c, onCollapsedChange: d, defaultMobileOpen: h = !1, isMobileOpen: g, onMobileOpenChange: _, className: v }, y) => {
|
|
2635
|
+
let [b, x] = u(s), S = c ?? b, [C, w] = u(h), T = g ?? C, [E] = u(() => typeof document < "u"), D = l(null), O = l(null);
|
|
2647
2636
|
o(() => {
|
|
2648
|
-
|
|
2649
|
-
}, []), o(() => {
|
|
2650
|
-
if (window.matchMedia?.("(max-width: 767px)")?.matches ?? !1) return T ? (O.current = document.activeElement, document.body.style.overflow = "hidden", (D.current?.querySelector(on))?.focus()) : (document.body.style.overflow = "", O.current?.focus(), O.current = null), () => {
|
|
2637
|
+
if (window.matchMedia?.("(max-width: 767px)")?.matches ?? !1) return T ? (O.current = document.activeElement, document.body.style.overflow = "hidden", (D.current?.querySelector(an))?.focus()) : (document.body.style.overflow = "", O.current?.focus(), O.current = null), () => {
|
|
2651
2638
|
document.body.style.overflow = "";
|
|
2652
2639
|
};
|
|
2653
2640
|
}, [T]);
|
|
2654
|
-
let
|
|
2641
|
+
let ee = i(() => {
|
|
2655
2642
|
let e = !S;
|
|
2656
2643
|
c === void 0 && x(e), d?.(e);
|
|
2657
2644
|
}, [
|
|
2658
2645
|
S,
|
|
2659
2646
|
c,
|
|
2660
2647
|
d
|
|
2661
|
-
]),
|
|
2648
|
+
]), k = i(() => {
|
|
2662
2649
|
g === void 0 && w(!1), _?.(!1);
|
|
2663
|
-
}, [g, _]),
|
|
2664
|
-
e.key === "Escape" &&
|
|
2665
|
-
}, [
|
|
2650
|
+
}, [g, _]), A = i((e) => {
|
|
2651
|
+
e.key === "Escape" && k();
|
|
2652
|
+
}, [k]);
|
|
2666
2653
|
return /* @__PURE__ */ p("aside", {
|
|
2667
2654
|
ref: y,
|
|
2668
2655
|
className: [
|
|
@@ -2673,12 +2660,12 @@ var H = {
|
|
|
2673
2660
|
].filter(Boolean).join(" "),
|
|
2674
2661
|
children: [E && T && m(/* @__PURE__ */ f("div", {
|
|
2675
2662
|
className: H.backdrop,
|
|
2676
|
-
onClick:
|
|
2663
|
+
onClick: k,
|
|
2677
2664
|
"aria-hidden": "true"
|
|
2678
2665
|
}), document.body), /* @__PURE__ */ p("div", {
|
|
2679
2666
|
ref: D,
|
|
2680
2667
|
className: H.panel,
|
|
2681
|
-
onKeyDown:
|
|
2668
|
+
onKeyDown: A,
|
|
2682
2669
|
tabIndex: -1,
|
|
2683
2670
|
children: [
|
|
2684
2671
|
(t || n) && /* @__PURE__ */ p("div", {
|
|
@@ -2695,9 +2682,9 @@ var H = {
|
|
|
2695
2682
|
}), /* @__PURE__ */ f("button", {
|
|
2696
2683
|
type: "button",
|
|
2697
2684
|
className: H.mobileCloseButton,
|
|
2698
|
-
onClick:
|
|
2685
|
+
onClick: k,
|
|
2699
2686
|
"aria-label": "Close sidebar",
|
|
2700
|
-
children: /* @__PURE__ */ f(
|
|
2687
|
+
children: /* @__PURE__ */ f(cn, {})
|
|
2701
2688
|
})]
|
|
2702
2689
|
}),
|
|
2703
2690
|
!t && !n && /* @__PURE__ */ f("div", {
|
|
@@ -2705,9 +2692,9 @@ var H = {
|
|
|
2705
2692
|
children: /* @__PURE__ */ f("button", {
|
|
2706
2693
|
type: "button",
|
|
2707
2694
|
className: H.mobileCloseButton,
|
|
2708
|
-
onClick:
|
|
2695
|
+
onClick: k,
|
|
2709
2696
|
"aria-label": "Close sidebar",
|
|
2710
|
-
children: /* @__PURE__ */ f(
|
|
2697
|
+
children: /* @__PURE__ */ f(cn, {})
|
|
2711
2698
|
})
|
|
2712
2699
|
}),
|
|
2713
2700
|
/* @__PURE__ */ f("nav", {
|
|
@@ -2744,16 +2731,16 @@ var H = {
|
|
|
2744
2731
|
/* @__PURE__ */ f("button", {
|
|
2745
2732
|
type: "button",
|
|
2746
2733
|
className: H.collapseButton,
|
|
2747
|
-
onClick:
|
|
2734
|
+
onClick: ee,
|
|
2748
2735
|
"aria-label": S ? "Expand sidebar" : "Collapse sidebar",
|
|
2749
2736
|
"aria-expanded": !S,
|
|
2750
|
-
children: f(S ?
|
|
2737
|
+
children: f(S ? sn : on, {})
|
|
2751
2738
|
})
|
|
2752
2739
|
]
|
|
2753
2740
|
})]
|
|
2754
2741
|
});
|
|
2755
2742
|
});
|
|
2756
|
-
|
|
2743
|
+
ln.displayName = "Sidebar";
|
|
2757
2744
|
var U = {
|
|
2758
2745
|
srOnly: "_srOnly_1ug4t_1",
|
|
2759
2746
|
wrapper: "_wrapper_1ug4t_13",
|
|
@@ -2772,25 +2759,25 @@ var U = {
|
|
|
2772
2759
|
alignLeft: "_alignLeft_1ug4t_132",
|
|
2773
2760
|
alignCenter: "_alignCenter_1ug4t_136",
|
|
2774
2761
|
alignRight: "_alignRight_1ug4t_140"
|
|
2775
|
-
},
|
|
2762
|
+
}, un = {
|
|
2776
2763
|
left: U.alignLeft,
|
|
2777
2764
|
center: U.alignCenter,
|
|
2778
2765
|
right: U.alignRight
|
|
2779
|
-
},
|
|
2766
|
+
}, dn = () => /* @__PURE__ */ f("svg", {
|
|
2780
2767
|
width: "12",
|
|
2781
2768
|
height: "12",
|
|
2782
2769
|
viewBox: "0 0 12 12",
|
|
2783
2770
|
fill: "currentColor",
|
|
2784
2771
|
"aria-hidden": "true",
|
|
2785
2772
|
children: /* @__PURE__ */ f("path", { d: "M6 2L10 8H2L6 2Z" })
|
|
2786
|
-
}),
|
|
2773
|
+
}), fn = () => /* @__PURE__ */ f("svg", {
|
|
2787
2774
|
width: "12",
|
|
2788
2775
|
height: "12",
|
|
2789
2776
|
viewBox: "0 0 12 12",
|
|
2790
2777
|
fill: "currentColor",
|
|
2791
2778
|
"aria-hidden": "true",
|
|
2792
2779
|
children: /* @__PURE__ */ f("path", { d: "M6 10L2 4H10L6 10Z" })
|
|
2793
|
-
}),
|
|
2780
|
+
}), pn = () => /* @__PURE__ */ p("svg", {
|
|
2794
2781
|
width: "12",
|
|
2795
2782
|
height: "14",
|
|
2796
2783
|
viewBox: "0 0 12 14",
|
|
@@ -2803,7 +2790,7 @@ var U = {
|
|
|
2803
2790
|
d: "M6 13L2 9H10L6 13Z",
|
|
2804
2791
|
opacity: "0.4"
|
|
2805
2792
|
})]
|
|
2806
|
-
}),
|
|
2793
|
+
}), mn = r(function({ caption: e, columns: t, data: n, defaultSortKey: r, defaultSortDirection: i = "asc", sortKey: a, sortDirection: o, onSort: c, rowKey: l, emptyMessage: d = "No data available.", className: m }, h) {
|
|
2807
2794
|
let g = s(), [_, v] = u(""), [y, b] = u(r), [x, S] = u(i), C = a ?? y, w = o ?? x, T = (e) => {
|
|
2808
2795
|
let n = C === e && w === "asc" ? "desc" : "asc";
|
|
2809
2796
|
a === void 0 && (b(e), S(n)), c?.(e, n);
|
|
@@ -2812,7 +2799,7 @@ var U = {
|
|
|
2812
2799
|
}, E = a !== void 0 || !C ? n : [...n].sort((e, t) => {
|
|
2813
2800
|
let n = e[C], r = t[C], i = typeof n == "number" && typeof r == "number" ? n - r : String(n ?? "").localeCompare(String(r ?? ""));
|
|
2814
2801
|
return w === "asc" ? i : -i;
|
|
2815
|
-
}),
|
|
2802
|
+
}), D = (e) => {
|
|
2816
2803
|
if (e.sortable) return C === e.key ? w === "asc" ? "ascending" : "descending" : "none";
|
|
2817
2804
|
};
|
|
2818
2805
|
return /* @__PURE__ */ p("div", {
|
|
@@ -2842,16 +2829,16 @@ var U = {
|
|
|
2842
2829
|
U.th,
|
|
2843
2830
|
e.sortable ? U.thSortable : "",
|
|
2844
2831
|
C === e.key ? U.thActive : "",
|
|
2845
|
-
|
|
2832
|
+
un[e.align ?? "left"]
|
|
2846
2833
|
].filter(Boolean).join(" "),
|
|
2847
|
-
"aria-sort":
|
|
2834
|
+
"aria-sort": D(e),
|
|
2848
2835
|
children: e.sortable ? /* @__PURE__ */ p("button", {
|
|
2849
2836
|
type: "button",
|
|
2850
2837
|
className: U.sortButton,
|
|
2851
2838
|
onClick: () => T(e.key),
|
|
2852
2839
|
children: [e.header, /* @__PURE__ */ f("span", {
|
|
2853
2840
|
className: U.sortIcon,
|
|
2854
|
-
children: C === e.key ? f(w === "asc" ?
|
|
2841
|
+
children: C === e.key ? f(w === "asc" ? dn : fn, {}) : /* @__PURE__ */ f(pn, {})
|
|
2855
2842
|
})]
|
|
2856
2843
|
}) : e.header
|
|
2857
2844
|
}, e.key)) })
|
|
@@ -2865,7 +2852,7 @@ var U = {
|
|
|
2865
2852
|
}) }) : E.map((e, n) => /* @__PURE__ */ f("tr", {
|
|
2866
2853
|
className: U.tr,
|
|
2867
2854
|
children: t.map((t) => /* @__PURE__ */ f("td", {
|
|
2868
|
-
className: [U.td,
|
|
2855
|
+
className: [U.td, un[t.align ?? "left"]].filter(Boolean).join(" "),
|
|
2869
2856
|
children: t.render ? t.render(e[t.key], e) : String(e[t.key] ?? "")
|
|
2870
2857
|
}, t.key))
|
|
2871
2858
|
}, l ? String(e[l]) : n))
|
|
@@ -2874,7 +2861,7 @@ var U = {
|
|
|
2874
2861
|
})]
|
|
2875
2862
|
});
|
|
2876
2863
|
});
|
|
2877
|
-
|
|
2864
|
+
mn.displayName = "DataTable";
|
|
2878
2865
|
var W = {
|
|
2879
2866
|
wrapper: "_wrapper_1ke2z_1",
|
|
2880
2867
|
svg: "_svg_1ke2z_6",
|
|
@@ -2884,44 +2871,44 @@ var W = {
|
|
|
2884
2871
|
legendItem: "_legendItem_1ke2z_37",
|
|
2885
2872
|
legendSwatch: "_legendSwatch_1ke2z_46",
|
|
2886
2873
|
empty: "_empty_1ke2z_53"
|
|
2887
|
-
},
|
|
2874
|
+
}, hn = 480, gn = 280, G = {
|
|
2888
2875
|
top: 20,
|
|
2889
2876
|
right: 20,
|
|
2890
2877
|
bottom: 56,
|
|
2891
2878
|
left: 48
|
|
2892
|
-
},
|
|
2893
|
-
function
|
|
2879
|
+
}, _n = hn - G.left - G.right, vn = gn - G.top - G.bottom, yn = 4, bn = 2;
|
|
2880
|
+
function xn(e) {
|
|
2894
2881
|
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
2895
2882
|
}
|
|
2896
|
-
function
|
|
2883
|
+
function Sn(e, t) {
|
|
2897
2884
|
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
2898
2885
|
}
|
|
2899
|
-
var
|
|
2886
|
+
var Cn = r(({ title: e, series: t, className: n }, r) => {
|
|
2900
2887
|
let i = s();
|
|
2901
2888
|
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
2902
2889
|
className: [W.empty, n ?? ""].filter(Boolean).join(" "),
|
|
2903
2890
|
children: [e, " — no data"]
|
|
2904
2891
|
});
|
|
2905
|
-
let a = t[0].data.map((e) => e.label), o = a.length, c = t.length, l = Math.max(...t.flatMap((e) => e.data.map((e) => e.value)), 0), u =
|
|
2892
|
+
let a = t[0].data.map((e) => e.label), o = a.length, c = t.length, l = Math.max(...t.flatMap((e) => e.data.map((e) => e.value)), 0), u = _n / o, d = Math.min(Math.max((u * .8 - bn * (c - 1)) / c, 4), c === 1 ? 60 : 40);
|
|
2906
2893
|
return /* @__PURE__ */ p("div", {
|
|
2907
2894
|
ref: r,
|
|
2908
2895
|
className: [W.wrapper, n ?? ""].filter(Boolean).join(" "),
|
|
2909
2896
|
children: [/* @__PURE__ */ p("svg", {
|
|
2910
2897
|
role: "img",
|
|
2911
2898
|
"aria-labelledby": i,
|
|
2912
|
-
viewBox: `0 0 ${
|
|
2899
|
+
viewBox: `0 0 ${hn} ${gn}`,
|
|
2913
2900
|
className: W.svg,
|
|
2914
2901
|
children: [
|
|
2915
2902
|
/* @__PURE__ */ f("title", {
|
|
2916
2903
|
id: i,
|
|
2917
2904
|
children: e
|
|
2918
2905
|
}),
|
|
2919
|
-
Array.from({ length:
|
|
2920
|
-
let n = t /
|
|
2906
|
+
Array.from({ length: 5 }, (e, t) => {
|
|
2907
|
+
let n = t / yn, r = G.top + vn - n * vn, i = l * n;
|
|
2921
2908
|
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
2922
2909
|
x1: G.left,
|
|
2923
2910
|
y1: r,
|
|
2924
|
-
x2:
|
|
2911
|
+
x2: hn - G.right,
|
|
2925
2912
|
y2: r,
|
|
2926
2913
|
stroke: "var(--ds-chart-grid)",
|
|
2927
2914
|
strokeWidth: "1"
|
|
@@ -2931,28 +2918,28 @@ var wn = r(({ title: e, series: t, className: n }, r) => {
|
|
|
2931
2918
|
textAnchor: "end",
|
|
2932
2919
|
dominantBaseline: "middle",
|
|
2933
2920
|
className: W.axisLabel,
|
|
2934
|
-
children:
|
|
2921
|
+
children: xn(i)
|
|
2935
2922
|
})] }, t);
|
|
2936
2923
|
}),
|
|
2937
2924
|
a.map((e, n) => {
|
|
2938
|
-
let r = d * c +
|
|
2925
|
+
let r = d * c + bn * (c - 1), i = G.left + n * u, a = i + (u - r) / 2, o = i + u / 2;
|
|
2939
2926
|
return /* @__PURE__ */ p("g", { children: [t.map((t, r) => {
|
|
2940
2927
|
let i = t.data[n];
|
|
2941
2928
|
if (!i) return null;
|
|
2942
|
-
let o = l > 0 ? i.value / l *
|
|
2929
|
+
let o = l > 0 ? i.value / l * vn : 0, s = a + r * (d + bn), c = G.top + vn - o, u = Sn(t, r);
|
|
2943
2930
|
return /* @__PURE__ */ f("rect", {
|
|
2944
|
-
x:
|
|
2945
|
-
y:
|
|
2931
|
+
x: s,
|
|
2932
|
+
y: c,
|
|
2946
2933
|
width: d,
|
|
2947
2934
|
height: o,
|
|
2948
|
-
fill:
|
|
2935
|
+
fill: u,
|
|
2949
2936
|
rx: "3",
|
|
2950
2937
|
className: W.bar,
|
|
2951
|
-
children: /* @__PURE__ */ f("title", { children: `${t.label} — ${e}: ${
|
|
2938
|
+
children: /* @__PURE__ */ f("title", { children: `${t.label} — ${e}: ${xn(i.value)}` })
|
|
2952
2939
|
}, t.id);
|
|
2953
2940
|
}), /* @__PURE__ */ f("text", {
|
|
2954
2941
|
x: o,
|
|
2955
|
-
y:
|
|
2942
|
+
y: gn - G.bottom + 16,
|
|
2956
2943
|
textAnchor: "middle",
|
|
2957
2944
|
className: W.axisLabel,
|
|
2958
2945
|
children: e
|
|
@@ -2960,9 +2947,9 @@ var wn = r(({ title: e, series: t, className: n }, r) => {
|
|
|
2960
2947
|
}),
|
|
2961
2948
|
/* @__PURE__ */ f("line", {
|
|
2962
2949
|
x1: G.left,
|
|
2963
|
-
y1: G.top +
|
|
2964
|
-
x2:
|
|
2965
|
-
y2: G.top +
|
|
2950
|
+
y1: G.top + vn,
|
|
2951
|
+
x2: hn - G.right,
|
|
2952
|
+
y2: G.top + vn,
|
|
2966
2953
|
stroke: "var(--ds-chart-axis)",
|
|
2967
2954
|
strokeWidth: "1"
|
|
2968
2955
|
})
|
|
@@ -2974,14 +2961,14 @@ var wn = r(({ title: e, series: t, className: n }, r) => {
|
|
|
2974
2961
|
className: W.legendItem,
|
|
2975
2962
|
children: [/* @__PURE__ */ f("span", {
|
|
2976
2963
|
className: W.legendSwatch,
|
|
2977
|
-
style: { background:
|
|
2964
|
+
style: { background: Sn(e, t) },
|
|
2978
2965
|
"aria-hidden": "true"
|
|
2979
2966
|
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
2980
2967
|
}, e.id))
|
|
2981
2968
|
})]
|
|
2982
2969
|
});
|
|
2983
2970
|
});
|
|
2984
|
-
|
|
2971
|
+
Cn.displayName = "BarChart";
|
|
2985
2972
|
var K = {
|
|
2986
2973
|
root: "_root_18xxx_1",
|
|
2987
2974
|
svg: "_svg_18xxx_8",
|
|
@@ -2993,14 +2980,14 @@ var K = {
|
|
|
2993
2980
|
legendLabel: "_legendLabel_18xxx_53",
|
|
2994
2981
|
legendValue: "_legendValue_18xxx_61",
|
|
2995
2982
|
empty: "_empty_18xxx_67"
|
|
2996
|
-
},
|
|
2983
|
+
}, wn = [
|
|
2997
2984
|
"var(--ds-chart-1)",
|
|
2998
2985
|
"var(--ds-chart-2)",
|
|
2999
2986
|
"var(--ds-chart-3)",
|
|
3000
2987
|
"var(--ds-chart-4)",
|
|
3001
2988
|
"var(--ds-chart-5)",
|
|
3002
2989
|
"var(--ds-chart-6)"
|
|
3003
|
-
],
|
|
2990
|
+
], Tn = 100, En = 100, Dn = 72, On = 28, kn = 2 * Math.PI * Dn, An = r(({ title: e, segments: t, centerLabel: n, centerSubLabel: r, className: i }, a) => {
|
|
3004
2991
|
let o = s(), c = t.reduce((e, t) => e + t.value, 0);
|
|
3005
2992
|
if (t.length === 0 || c === 0) return /* @__PURE__ */ p("div", {
|
|
3006
2993
|
className: [K.empty, i ?? ""].filter(Boolean).join(" "),
|
|
@@ -3021,39 +3008,39 @@ var K = {
|
|
|
3021
3008
|
children: e
|
|
3022
3009
|
}),
|
|
3023
3010
|
/* @__PURE__ */ f("circle", {
|
|
3024
|
-
cx:
|
|
3025
|
-
cy:
|
|
3026
|
-
r:
|
|
3011
|
+
cx: Tn,
|
|
3012
|
+
cy: En,
|
|
3013
|
+
r: Dn,
|
|
3027
3014
|
fill: "none",
|
|
3028
3015
|
stroke: "var(--ds-chart-grid)",
|
|
3029
|
-
strokeWidth:
|
|
3016
|
+
strokeWidth: On
|
|
3030
3017
|
}),
|
|
3031
3018
|
t.map((e, t) => {
|
|
3032
|
-
let n = e.value / c *
|
|
3019
|
+
let n = e.value / c * kn, r = -l;
|
|
3033
3020
|
return l += n, /* @__PURE__ */ f("circle", {
|
|
3034
|
-
cx:
|
|
3035
|
-
cy:
|
|
3036
|
-
r:
|
|
3021
|
+
cx: Tn,
|
|
3022
|
+
cy: En,
|
|
3023
|
+
r: Dn,
|
|
3037
3024
|
fill: "none",
|
|
3038
|
-
stroke: e.color ??
|
|
3039
|
-
strokeWidth:
|
|
3040
|
-
strokeDasharray: `${n} ${
|
|
3025
|
+
stroke: e.color ?? wn[t % wn.length],
|
|
3026
|
+
strokeWidth: On,
|
|
3027
|
+
strokeDasharray: `${n} ${kn - n}`,
|
|
3041
3028
|
strokeDashoffset: r,
|
|
3042
|
-
transform: `rotate(-90 ${
|
|
3029
|
+
transform: `rotate(-90 ${Tn} ${En})`,
|
|
3043
3030
|
children: /* @__PURE__ */ f("title", { children: `${e.label}: ${e.value} (${Math.round(e.value / c * 100)}%)` })
|
|
3044
3031
|
}, e.label);
|
|
3045
3032
|
}),
|
|
3046
3033
|
n && /* @__PURE__ */ f("text", {
|
|
3047
|
-
x:
|
|
3048
|
-
y:
|
|
3034
|
+
x: Tn,
|
|
3035
|
+
y: En - (r ? 8 : 0),
|
|
3049
3036
|
textAnchor: "middle",
|
|
3050
3037
|
dominantBaseline: "middle",
|
|
3051
3038
|
className: K.centerLabel,
|
|
3052
3039
|
children: n
|
|
3053
3040
|
}),
|
|
3054
3041
|
r && /* @__PURE__ */ f("text", {
|
|
3055
|
-
x:
|
|
3056
|
-
y:
|
|
3042
|
+
x: Tn,
|
|
3043
|
+
y: 116,
|
|
3057
3044
|
textAnchor: "middle",
|
|
3058
3045
|
dominantBaseline: "middle",
|
|
3059
3046
|
className: K.centerSubLabel,
|
|
@@ -3068,7 +3055,7 @@ var K = {
|
|
|
3068
3055
|
children: [
|
|
3069
3056
|
/* @__PURE__ */ f("span", {
|
|
3070
3057
|
className: K.legendSwatch,
|
|
3071
|
-
style: { background: e.color ??
|
|
3058
|
+
style: { background: e.color ?? wn[t % wn.length] },
|
|
3072
3059
|
"aria-hidden": "true"
|
|
3073
3060
|
}),
|
|
3074
3061
|
/* @__PURE__ */ f("span", {
|
|
@@ -3084,7 +3071,7 @@ var K = {
|
|
|
3084
3071
|
})]
|
|
3085
3072
|
});
|
|
3086
3073
|
});
|
|
3087
|
-
|
|
3074
|
+
An.displayName = "DonutChart";
|
|
3088
3075
|
var q = {
|
|
3089
3076
|
wrapper: "_wrapper_h55fh_1",
|
|
3090
3077
|
svg: "_svg_h55fh_6",
|
|
@@ -3093,12 +3080,12 @@ var q = {
|
|
|
3093
3080
|
legendItem: "_legendItem_h55fh_29",
|
|
3094
3081
|
legendSwatch: "_legendSwatch_h55fh_38",
|
|
3095
3082
|
empty: "_empty_h55fh_45"
|
|
3096
|
-
},
|
|
3083
|
+
}, jn = 480, Mn = 280, J = {
|
|
3097
3084
|
top: 20,
|
|
3098
3085
|
right: 20,
|
|
3099
3086
|
bottom: 56,
|
|
3100
3087
|
left: 48
|
|
3101
|
-
},
|
|
3088
|
+
}, Nn = jn - J.left - J.right, Pn = Mn - J.top - J.bottom, Fn = 4;
|
|
3102
3089
|
function In(e) {
|
|
3103
3090
|
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
3104
3091
|
}
|
|
@@ -3111,26 +3098,26 @@ var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
|
3111
3098
|
className: [q.empty, r ?? ""].filter(Boolean).join(" "),
|
|
3112
3099
|
children: [e, " — no data"]
|
|
3113
3100
|
});
|
|
3114
|
-
let o = t.flatMap((e) => e.data.map((e) => e.value)), c = Math.max(...o, 0), l = t[0].data.map((e) => e.label), u = l.length, d = (e) => u === 1 ? J.left +
|
|
3101
|
+
let o = t.flatMap((e) => e.data.map((e) => e.value)), c = Math.max(...o, 0), l = t[0].data.map((e) => e.label), u = l.length, d = (e) => u === 1 ? J.left + Nn / 2 : J.left + e / (u - 1) * Nn, m = (e) => J.top + Pn - (c > 0 ? e / c * Pn : 0);
|
|
3115
3102
|
return /* @__PURE__ */ p("div", {
|
|
3116
3103
|
ref: i,
|
|
3117
3104
|
className: [q.wrapper, r ?? ""].filter(Boolean).join(" "),
|
|
3118
3105
|
children: [/* @__PURE__ */ p("svg", {
|
|
3119
3106
|
role: "img",
|
|
3120
3107
|
"aria-labelledby": a,
|
|
3121
|
-
viewBox: `0 0 ${
|
|
3108
|
+
viewBox: `0 0 ${jn} ${Mn}`,
|
|
3122
3109
|
className: q.svg,
|
|
3123
3110
|
children: [
|
|
3124
3111
|
/* @__PURE__ */ f("title", {
|
|
3125
3112
|
id: a,
|
|
3126
3113
|
children: e
|
|
3127
3114
|
}),
|
|
3128
|
-
Array.from({ length:
|
|
3129
|
-
let n = t / Fn, r = J.top +
|
|
3115
|
+
Array.from({ length: 5 }, (e, t) => {
|
|
3116
|
+
let n = t / Fn, r = J.top + Pn - n * Pn, i = c * n;
|
|
3130
3117
|
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3131
3118
|
x1: J.left,
|
|
3132
3119
|
y1: r,
|
|
3133
|
-
x2:
|
|
3120
|
+
x2: jn - J.right,
|
|
3134
3121
|
y2: r,
|
|
3135
3122
|
stroke: "var(--ds-chart-grid)",
|
|
3136
3123
|
strokeWidth: "1"
|
|
@@ -3144,7 +3131,7 @@ var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
|
3144
3131
|
})] }, t);
|
|
3145
3132
|
}),
|
|
3146
3133
|
t.map((e, t) => {
|
|
3147
|
-
let r = Ln(e, t), i = e.showArea ?? n, a = e.data.map((e, t) => `${d(t)},${m(e.value)}`).join(" "), o = `${d(0)},${J.top +
|
|
3134
|
+
let r = Ln(e, t), i = e.showArea ?? n, a = e.data.map((e, t) => `${d(t)},${m(e.value)}`).join(" "), o = `${d(0)},${J.top + Pn} ` + a + ` ${d(e.data.length - 1)},${J.top + Pn}`;
|
|
3148
3135
|
return /* @__PURE__ */ p("g", { children: [
|
|
3149
3136
|
i && /* @__PURE__ */ f("polygon", {
|
|
3150
3137
|
points: o,
|
|
@@ -3170,16 +3157,16 @@ var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
|
3170
3157
|
}),
|
|
3171
3158
|
l.map((e, t) => /* @__PURE__ */ f("text", {
|
|
3172
3159
|
x: d(t),
|
|
3173
|
-
y:
|
|
3160
|
+
y: Mn - J.bottom + 16,
|
|
3174
3161
|
textAnchor: "middle",
|
|
3175
3162
|
className: q.axisLabel,
|
|
3176
3163
|
children: e
|
|
3177
3164
|
}, e)),
|
|
3178
3165
|
/* @__PURE__ */ f("line", {
|
|
3179
3166
|
x1: J.left,
|
|
3180
|
-
y1: J.top +
|
|
3181
|
-
x2:
|
|
3182
|
-
y2: J.top +
|
|
3167
|
+
y1: J.top + Pn,
|
|
3168
|
+
x2: jn - J.right,
|
|
3169
|
+
y2: J.top + Pn,
|
|
3183
3170
|
stroke: "var(--ds-chart-axis)",
|
|
3184
3171
|
strokeWidth: "1"
|
|
3185
3172
|
})
|
|
@@ -3199,7 +3186,7 @@ var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
|
3199
3186
|
});
|
|
3200
3187
|
});
|
|
3201
3188
|
Rn.displayName = "LineChart";
|
|
3202
|
-
var
|
|
3189
|
+
var Y = {
|
|
3203
3190
|
wrapper: "_wrapper_kmbah_1",
|
|
3204
3191
|
svg: "_svg_kmbah_6",
|
|
3205
3192
|
point: "_point_kmbah_12",
|
|
@@ -3209,12 +3196,12 @@ var X = {
|
|
|
3209
3196
|
legendItem: "_legendItem_kmbah_45",
|
|
3210
3197
|
legendSwatch: "_legendSwatch_kmbah_54",
|
|
3211
3198
|
empty: "_empty_kmbah_61"
|
|
3212
|
-
}, zn = 480, Bn = 320,
|
|
3199
|
+
}, zn = 480, Bn = 320, X = {
|
|
3213
3200
|
top: 20,
|
|
3214
3201
|
right: 20,
|
|
3215
3202
|
bottom: 64,
|
|
3216
3203
|
left: 56
|
|
3217
|
-
}, Vn = zn -
|
|
3204
|
+
}, Vn = zn - X.left - X.right, Z = Bn - X.top - X.bottom, Hn = 4, Un = .1;
|
|
3218
3205
|
function Wn(e) {
|
|
3219
3206
|
return Math.abs(e) >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Number.isInteger(e) ? e : e.toFixed(1));
|
|
3220
3207
|
}
|
|
@@ -3224,55 +3211,55 @@ function Gn(e, t) {
|
|
|
3224
3211
|
var Kn = r(({ title: e, series: t, xLabel: n, yLabel: r, className: i }, a) => {
|
|
3225
3212
|
let o = s();
|
|
3226
3213
|
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
3227
|
-
className: [
|
|
3214
|
+
className: [Y.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3228
3215
|
children: [e, " — no data"]
|
|
3229
3216
|
});
|
|
3230
|
-
let c = t.flatMap((e) => e.data.map((e) => e.x)), l = t.flatMap((e) => e.data.map((e) => e.y)), u = Math.min(...c), d = Math.max(...c), m = Math.min(...l), h = Math.max(...l), g = d - u || 1, _ = h - m || 1, v = u - g * Un, y = d + g * Un, b = m - _ * Un, x = h + _ * Un, S = (e) =>
|
|
3217
|
+
let c = t.flatMap((e) => e.data.map((e) => e.x)), l = t.flatMap((e) => e.data.map((e) => e.y)), u = Math.min(...c), d = Math.max(...c), m = Math.min(...l), h = Math.max(...l), g = d - u || 1, _ = h - m || 1, v = u - g * Un, y = d + g * Un, b = m - _ * Un, x = h + _ * Un, S = (e) => X.left + (e - v) / (y - v) * Vn, C = (e) => X.top + Z - (e - b) / (x - b) * Z;
|
|
3231
3218
|
return /* @__PURE__ */ p("div", {
|
|
3232
3219
|
ref: a,
|
|
3233
|
-
className: [
|
|
3220
|
+
className: [Y.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3234
3221
|
children: [/* @__PURE__ */ p("svg", {
|
|
3235
3222
|
role: "img",
|
|
3236
3223
|
"aria-labelledby": o,
|
|
3237
3224
|
viewBox: `0 0 ${zn} ${Bn}`,
|
|
3238
|
-
className:
|
|
3225
|
+
className: Y.svg,
|
|
3239
3226
|
children: [
|
|
3240
3227
|
/* @__PURE__ */ f("title", {
|
|
3241
3228
|
id: o,
|
|
3242
3229
|
children: e
|
|
3243
3230
|
}),
|
|
3244
|
-
Array.from({ length:
|
|
3245
|
-
let n = t / Hn, r =
|
|
3231
|
+
Array.from({ length: 5 }, (e, t) => {
|
|
3232
|
+
let n = t / Hn, r = X.top + Z - n * Z, i = b + (x - b) * n;
|
|
3246
3233
|
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3247
|
-
x1:
|
|
3234
|
+
x1: X.left,
|
|
3248
3235
|
y1: r,
|
|
3249
|
-
x2: zn -
|
|
3236
|
+
x2: zn - X.right,
|
|
3250
3237
|
y2: r,
|
|
3251
3238
|
stroke: "var(--ds-chart-grid)",
|
|
3252
3239
|
strokeWidth: "1"
|
|
3253
3240
|
}), /* @__PURE__ */ f("text", {
|
|
3254
|
-
x:
|
|
3241
|
+
x: X.left - 6,
|
|
3255
3242
|
y: r,
|
|
3256
3243
|
textAnchor: "end",
|
|
3257
3244
|
dominantBaseline: "middle",
|
|
3258
|
-
className:
|
|
3245
|
+
className: Y.axisLabel,
|
|
3259
3246
|
children: Wn(i)
|
|
3260
3247
|
})] }, `gy-${t}`);
|
|
3261
3248
|
}),
|
|
3262
|
-
Array.from({ length:
|
|
3263
|
-
let n = t / Hn, r =
|
|
3249
|
+
Array.from({ length: 5 }, (e, t) => {
|
|
3250
|
+
let n = t / Hn, r = X.left + n * Vn, i = v + (y - v) * n;
|
|
3264
3251
|
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3265
3252
|
x1: r,
|
|
3266
|
-
y1:
|
|
3253
|
+
y1: X.top,
|
|
3267
3254
|
x2: r,
|
|
3268
|
-
y2:
|
|
3255
|
+
y2: X.top + Z,
|
|
3269
3256
|
stroke: "var(--ds-chart-grid)",
|
|
3270
3257
|
strokeWidth: "1"
|
|
3271
3258
|
}), /* @__PURE__ */ f("text", {
|
|
3272
3259
|
x: r,
|
|
3273
|
-
y:
|
|
3260
|
+
y: X.top + Z + 16,
|
|
3274
3261
|
textAnchor: "middle",
|
|
3275
|
-
className:
|
|
3262
|
+
className: Y.axisLabel,
|
|
3276
3263
|
children: Wn(i)
|
|
3277
3264
|
})] }, `gx-${t}`);
|
|
3278
3265
|
}),
|
|
@@ -3286,49 +3273,49 @@ var Kn = r(({ title: e, series: t, xLabel: n, yLabel: r, className: i }, a) => {
|
|
|
3286
3273
|
fillOpacity: "0.7",
|
|
3287
3274
|
stroke: n,
|
|
3288
3275
|
strokeWidth: "1",
|
|
3289
|
-
className:
|
|
3276
|
+
className: Y.point,
|
|
3290
3277
|
children: /* @__PURE__ */ f("title", { children: t.label ? `${e.label} — ${t.label}: (${t.x}, ${t.y})` : `${e.label}: (${t.x}, ${t.y})` })
|
|
3291
3278
|
}, r)) }, e.id);
|
|
3292
3279
|
}),
|
|
3293
3280
|
/* @__PURE__ */ f("line", {
|
|
3294
|
-
x1:
|
|
3295
|
-
y1:
|
|
3296
|
-
x2: zn -
|
|
3297
|
-
y2:
|
|
3281
|
+
x1: X.left,
|
|
3282
|
+
y1: X.top + Z,
|
|
3283
|
+
x2: zn - X.right,
|
|
3284
|
+
y2: X.top + Z,
|
|
3298
3285
|
stroke: "var(--ds-chart-axis)",
|
|
3299
3286
|
strokeWidth: "1"
|
|
3300
3287
|
}),
|
|
3301
3288
|
/* @__PURE__ */ f("line", {
|
|
3302
|
-
x1:
|
|
3303
|
-
y1:
|
|
3304
|
-
x2:
|
|
3305
|
-
y2:
|
|
3289
|
+
x1: X.left,
|
|
3290
|
+
y1: X.top,
|
|
3291
|
+
x2: X.left,
|
|
3292
|
+
y2: X.top + Z,
|
|
3306
3293
|
stroke: "var(--ds-chart-axis)",
|
|
3307
3294
|
strokeWidth: "1"
|
|
3308
3295
|
}),
|
|
3309
3296
|
n && /* @__PURE__ */ f("text", {
|
|
3310
|
-
x:
|
|
3297
|
+
x: X.left + Vn / 2,
|
|
3311
3298
|
y: Bn - 8,
|
|
3312
3299
|
textAnchor: "middle",
|
|
3313
|
-
className:
|
|
3300
|
+
className: Y.axisTitle,
|
|
3314
3301
|
children: n
|
|
3315
3302
|
}),
|
|
3316
3303
|
r && /* @__PURE__ */ f("text", {
|
|
3317
3304
|
x: 12,
|
|
3318
|
-
y:
|
|
3305
|
+
y: X.top + Z / 2,
|
|
3319
3306
|
textAnchor: "middle",
|
|
3320
|
-
transform: `rotate(-90 12 ${
|
|
3321
|
-
className:
|
|
3307
|
+
transform: `rotate(-90 12 ${X.top + Z / 2})`,
|
|
3308
|
+
className: Y.axisTitle,
|
|
3322
3309
|
children: r
|
|
3323
3310
|
})
|
|
3324
3311
|
]
|
|
3325
3312
|
}), t.length > 1 && /* @__PURE__ */ f("ul", {
|
|
3326
|
-
className:
|
|
3313
|
+
className: Y.legend,
|
|
3327
3314
|
"aria-label": "Chart legend",
|
|
3328
3315
|
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3329
|
-
className:
|
|
3316
|
+
className: Y.legendItem,
|
|
3330
3317
|
children: [/* @__PURE__ */ f("span", {
|
|
3331
|
-
className:
|
|
3318
|
+
className: Y.legendSwatch,
|
|
3332
3319
|
style: { background: Gn(e, t) },
|
|
3333
3320
|
"aria-hidden": "true"
|
|
3334
3321
|
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
@@ -3337,7 +3324,7 @@ var Kn = r(({ title: e, series: t, xLabel: n, yLabel: r, className: i }, a) => {
|
|
|
3337
3324
|
});
|
|
3338
3325
|
});
|
|
3339
3326
|
Kn.displayName = "ScatterPlot";
|
|
3340
|
-
var
|
|
3327
|
+
var Q = {
|
|
3341
3328
|
wrapper: "_wrapper_1k1rg_1",
|
|
3342
3329
|
svg: "_svg_1k1rg_6",
|
|
3343
3330
|
ring: "_ring_1k1rg_12",
|
|
@@ -3367,18 +3354,18 @@ function nr(e, t, n) {
|
|
|
3367
3354
|
var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
3368
3355
|
let o = s();
|
|
3369
3356
|
if (t.length === 0 || n.length === 0) return /* @__PURE__ */ p("div", {
|
|
3370
|
-
className: [
|
|
3357
|
+
className: [Q.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3371
3358
|
children: [e, " — no data"]
|
|
3372
3359
|
});
|
|
3373
3360
|
let c = t.length, l = Math.max(...n.flatMap((e) => e.values), 0), u = r ?? l;
|
|
3374
3361
|
return /* @__PURE__ */ p("div", {
|
|
3375
3362
|
ref: a,
|
|
3376
|
-
className: [
|
|
3363
|
+
className: [Q.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3377
3364
|
children: [/* @__PURE__ */ p("svg", {
|
|
3378
3365
|
role: "img",
|
|
3379
3366
|
"aria-labelledby": o,
|
|
3380
3367
|
viewBox: `0 0 ${qn} ${Jn}`,
|
|
3381
|
-
className:
|
|
3368
|
+
className: Q.svg,
|
|
3382
3369
|
children: [
|
|
3383
3370
|
/* @__PURE__ */ f("title", {
|
|
3384
3371
|
id: o,
|
|
@@ -3391,7 +3378,7 @@ var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
|
3391
3378
|
let [r, i] = tr(n, er(t, c));
|
|
3392
3379
|
return `${r},${i}`;
|
|
3393
3380
|
}).join(" "),
|
|
3394
|
-
className:
|
|
3381
|
+
className: Q.ring
|
|
3395
3382
|
}, t);
|
|
3396
3383
|
}),
|
|
3397
3384
|
t.map((e, t) => {
|
|
@@ -3401,7 +3388,7 @@ var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
|
3401
3388
|
y1: Xn,
|
|
3402
3389
|
x2: n,
|
|
3403
3390
|
y2: r,
|
|
3404
|
-
className:
|
|
3391
|
+
className: Q.axisLine
|
|
3405
3392
|
}, e);
|
|
3406
3393
|
}),
|
|
3407
3394
|
n.map((e, t) => {
|
|
@@ -3413,28 +3400,28 @@ var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
|
3413
3400
|
stroke: n,
|
|
3414
3401
|
strokeWidth: "2",
|
|
3415
3402
|
strokeLinejoin: "round",
|
|
3416
|
-
className:
|
|
3403
|
+
className: Q.seriesPolygon
|
|
3417
3404
|
}, `${e.id}-fill`);
|
|
3418
3405
|
}),
|
|
3419
3406
|
t.map((e, t) => {
|
|
3420
|
-
let n = er(t, c), [r, i] = tr(
|
|
3407
|
+
let n = er(t, c), [r, i] = tr(130, n), a = "middle";
|
|
3421
3408
|
return Math.cos(n) > .1 ? a = "start" : Math.cos(n) < -.1 && (a = "end"), /* @__PURE__ */ f("text", {
|
|
3422
3409
|
x: r,
|
|
3423
3410
|
y: i,
|
|
3424
3411
|
textAnchor: a,
|
|
3425
3412
|
dominantBaseline: "middle",
|
|
3426
|
-
className:
|
|
3413
|
+
className: Q.axisLabel,
|
|
3427
3414
|
children: e
|
|
3428
3415
|
}, e);
|
|
3429
3416
|
})
|
|
3430
3417
|
]
|
|
3431
3418
|
}), /* @__PURE__ */ f("ul", {
|
|
3432
|
-
className:
|
|
3419
|
+
className: Q.legend,
|
|
3433
3420
|
"aria-label": "Chart legend",
|
|
3434
3421
|
children: n.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3435
|
-
className:
|
|
3422
|
+
className: Q.legendItem,
|
|
3436
3423
|
children: [/* @__PURE__ */ f("span", {
|
|
3437
|
-
className:
|
|
3424
|
+
className: Q.legendSwatch,
|
|
3438
3425
|
style: { background: $n(e, t) },
|
|
3439
3426
|
"aria-hidden": "true"
|
|
3440
3427
|
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
@@ -3563,7 +3550,7 @@ var fr = {
|
|
|
3563
3550
|
});
|
|
3564
3551
|
});
|
|
3565
3552
|
mr.displayName = "AppShell";
|
|
3566
|
-
var
|
|
3553
|
+
var $ = {
|
|
3567
3554
|
layout: "_layout_14fpw_1",
|
|
3568
3555
|
brandPanel: "_brandPanel_14fpw_9",
|
|
3569
3556
|
brandContent: "_brandContent_14fpw_15",
|
|
@@ -3572,7 +3559,7 @@ var hr = {
|
|
|
3572
3559
|
formPanel: "_formPanel_14fpw_38",
|
|
3573
3560
|
formContent: "_formContent_14fpw_46",
|
|
3574
3561
|
mobileLogo: "_mobileLogo_14fpw_53"
|
|
3575
|
-
},
|
|
3562
|
+
}, hr = () => /* @__PURE__ */ p("svg", {
|
|
3576
3563
|
width: "36",
|
|
3577
3564
|
height: "36",
|
|
3578
3565
|
viewBox: "0 0 36 36",
|
|
@@ -3590,21 +3577,21 @@ var hr = {
|
|
|
3590
3577
|
strokeLinecap: "round"
|
|
3591
3578
|
})]
|
|
3592
3579
|
});
|
|
3593
|
-
function
|
|
3594
|
-
let i = n ?? /* @__PURE__ */ f(
|
|
3580
|
+
function gr({ children: e, branding: t, logo: n, brandingLabel: r = "Product branding" }) {
|
|
3581
|
+
let i = n ?? /* @__PURE__ */ f(hr, {});
|
|
3595
3582
|
return /* @__PURE__ */ p("div", {
|
|
3596
|
-
className:
|
|
3583
|
+
className: $.layout,
|
|
3597
3584
|
children: [/* @__PURE__ */ f("aside", {
|
|
3598
|
-
className:
|
|
3585
|
+
className: $.brandPanel,
|
|
3599
3586
|
"aria-label": r,
|
|
3600
3587
|
"aria-hidden": "true",
|
|
3601
3588
|
children: /* @__PURE__ */ f("div", {
|
|
3602
|
-
className:
|
|
3589
|
+
className: $.brandContent,
|
|
3603
3590
|
children: t ?? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
3604
|
-
className:
|
|
3591
|
+
className: $.brandLogo,
|
|
3605
3592
|
children: i
|
|
3606
3593
|
}), /* @__PURE__ */ p("p", {
|
|
3607
|
-
className:
|
|
3594
|
+
className: $.brandTagline,
|
|
3608
3595
|
children: [
|
|
3609
3596
|
"Build better products,",
|
|
3610
3597
|
/* @__PURE__ */ f("br", {}),
|
|
@@ -3613,11 +3600,11 @@ function _r({ children: e, branding: t, logo: n, brandingLabel: r = "Product bra
|
|
|
3613
3600
|
})] })
|
|
3614
3601
|
})
|
|
3615
3602
|
}), /* @__PURE__ */ f("main", {
|
|
3616
|
-
className:
|
|
3603
|
+
className: $.formPanel,
|
|
3617
3604
|
children: /* @__PURE__ */ p("div", {
|
|
3618
|
-
className:
|
|
3605
|
+
className: $.formContent,
|
|
3619
3606
|
children: [/* @__PURE__ */ f("div", {
|
|
3620
|
-
className:
|
|
3607
|
+
className: $.mobileLogo,
|
|
3621
3608
|
"aria-hidden": "true",
|
|
3622
3609
|
children: i
|
|
3623
3610
|
}), e]
|
|
@@ -3625,6 +3612,6 @@ function _r({ children: e, branding: t, logo: n, brandingLabel: r = "Product bra
|
|
|
3625
3612
|
})]
|
|
3626
3613
|
});
|
|
3627
3614
|
}
|
|
3628
|
-
|
|
3615
|
+
gr.displayName = "AuthLayout";
|
|
3629
3616
|
//#endregion
|
|
3630
|
-
export { he as Alert, mr as AppShell,
|
|
3617
|
+
export { he as Alert, mr as AppShell, gr as AuthLayout, je as Avatar, _e as Badge, Yt as Banner, Cn as BarChart, en as Breadcrumb, y as Button, Gt as Card, Qt as Carousel, C as Checkbox, at as CheckboxField, Rt as Container, mn as DataTable, wt as DateField, Oe as DateInput, Te as Divider, An as DonutChart, gt as EmailField, ie as EmailInput, F as ErrorMessage, It as Grid, le as Heading, P as Hint, N as Label, Rn as LineChart, Ke as Modal, Ue as ModalBody, We as ModalFooter, rn as Navbar, St as NumberField, De as NumberInput, dr as PageLayout, mt as PasswordField, re as PasswordInput, vt as PhoneField, ae as PhoneInput, Ce as ProgressBar, rr as RadarChart, T as RadioButton, ct as RadioGroup, Kn as ScatterPlot, bt as SearchField, oe as SearchInput, sr as Section, D as Select, st as SelectField, ln as Sidebar, be as Skeleton, g as Spinner, Nt as Stack, Le as Tab, Ie as TabList, Re as TabPanel, Fe as Tabs, de as Text, ee as TextArea, ut as TextAreaField, rt as TextField, x as TextInput, Ot as ThemeProvider, Ze as ToastProvider, A as Toggle, ft as ToggleField, Ve as Tooltip, kt as useTheme, Qe as useToast };
|