@indxsearch/systm 2.25.0-beta.1 → 2.25.0-beta.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/CHANGELOG.md +10 -0
- package/dist/components/Pagination/Pagination.d.ts +26 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +609 -548
- package/dist/systm.css +1 -1
- package/dist/systm.shadow.css +1 -1
- package/package.json +8 -9
package/dist/index.es.js
CHANGED
|
@@ -471,11 +471,11 @@ function le({ children: e, className: t }) {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
var ue = {
|
|
474
|
-
container: "
|
|
475
|
-
header: "
|
|
476
|
-
title: "
|
|
477
|
-
toggleButton: "
|
|
478
|
-
body: "
|
|
474
|
+
container: "_container_11t07_1",
|
|
475
|
+
header: "_header_11t07_14",
|
|
476
|
+
title: "_title_11t07_34",
|
|
477
|
+
toggleButton: "_toggleButton_11t07_41",
|
|
478
|
+
body: "_body_11t07_52"
|
|
479
479
|
};
|
|
480
480
|
// src/components/FilterPanelBase/FilterPanelBase.tsx
|
|
481
481
|
function de({ title: t, children: n, className: r = "", collapsible: i = !0, collapsed: a = !1 }) {
|
|
@@ -1958,31 +1958,92 @@ var lt = "\0action", ut = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1958
1958
|
})
|
|
1959
1959
|
});
|
|
1960
1960
|
}, dt = {
|
|
1961
|
+
root: "_root_1cn44_1",
|
|
1962
|
+
list: "_list_1cn44_2",
|
|
1963
|
+
item: "_item_1cn44_4",
|
|
1964
|
+
micro: "_micro_1cn44_5",
|
|
1965
|
+
default: "_default_1cn44_6",
|
|
1966
|
+
gap: "_gap_1cn44_7"
|
|
1967
|
+
};
|
|
1968
|
+
// src/components/Pagination/Pagination.tsx
|
|
1969
|
+
function ft(e, t, n = 1) {
|
|
1970
|
+
let r = Math.max(1, Math.min(e - n, t - 2 * n - 2)), i = Math.min(t, Math.max(e + n, 2 * n + 3)), a = [];
|
|
1971
|
+
r > 1 && a.push(1), r === 3 ? a.push(2) : r > 3 && a.push(null);
|
|
1972
|
+
for (let e = r; e <= i; e++) a.push(e);
|
|
1973
|
+
return i === t - 2 ? a.push(t - 1) : i < t - 2 && a.push(null), i < t && a.push(t), a;
|
|
1974
|
+
}
|
|
1975
|
+
var pt = ({ page: e, pageCount: t, onPageChange: n, siblings: r = 1, size: i = "micro", disabled: a = !1, labels: o, className: s = "", "aria-label": c = "Pages" }) => {
|
|
1976
|
+
if (t < 2) return null;
|
|
1977
|
+
let l = Math.min(Math.max(1, e), t), u = o?.page ?? ((e) => `Page ${e}`), d = `${dt.item} ${dt[i]}`, f = (e) => {
|
|
1978
|
+
e !== l && n(e);
|
|
1979
|
+
};
|
|
1980
|
+
return /* @__PURE__ */ h("nav", {
|
|
1981
|
+
"aria-label": c,
|
|
1982
|
+
className: `${dt.root} ${s}`,
|
|
1983
|
+
children: /* @__PURE__ */ g("ul", {
|
|
1984
|
+
className: dt.list,
|
|
1985
|
+
children: [
|
|
1986
|
+
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(W, {
|
|
1987
|
+
variant: "ghost",
|
|
1988
|
+
size: i,
|
|
1989
|
+
className: d,
|
|
1990
|
+
iconLeft: /* @__PURE__ */ h(S, {}),
|
|
1991
|
+
"aria-label": o?.previous ?? "Previous page",
|
|
1992
|
+
disabled: a || l === 1,
|
|
1993
|
+
onClick: () => f(l - 1)
|
|
1994
|
+
}) }),
|
|
1995
|
+
ft(l, t, r).map((e, t) => /* @__PURE__ */ h("li", { children: e === null ? /* @__PURE__ */ h("span", {
|
|
1996
|
+
className: `${dt.gap} ${dt[i]}`,
|
|
1997
|
+
"aria-hidden": "true",
|
|
1998
|
+
children: "…"
|
|
1999
|
+
}) : /* @__PURE__ */ h(W, {
|
|
2000
|
+
variant: e === l ? "secondary" : "ghost",
|
|
2001
|
+
size: i,
|
|
2002
|
+
className: d,
|
|
2003
|
+
"aria-label": u(e),
|
|
2004
|
+
"aria-current": e === l ? "page" : void 0,
|
|
2005
|
+
disabled: a,
|
|
2006
|
+
onClick: () => f(e),
|
|
2007
|
+
children: e
|
|
2008
|
+
}) }, e ?? `gap${t}`)),
|
|
2009
|
+
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(W, {
|
|
2010
|
+
variant: "ghost",
|
|
2011
|
+
size: i,
|
|
2012
|
+
className: d,
|
|
2013
|
+
iconLeft: /* @__PURE__ */ h(C, {}),
|
|
2014
|
+
"aria-label": o?.next ?? "Next page",
|
|
2015
|
+
disabled: a || l === t,
|
|
2016
|
+
onClick: () => f(l + 1)
|
|
2017
|
+
}) })
|
|
2018
|
+
]
|
|
2019
|
+
})
|
|
2020
|
+
});
|
|
2021
|
+
}, mt = {
|
|
1961
2022
|
wrapper: "_wrapper_1ons8_1",
|
|
1962
2023
|
track: "_track_1ons8_8",
|
|
1963
2024
|
fill: "_fill_1ons8_39",
|
|
1964
2025
|
label: "_label_1ons8_49"
|
|
1965
2026
|
};
|
|
1966
2027
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
1967
|
-
function
|
|
2028
|
+
function ht({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
1968
2029
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
1969
2030
|
return /* @__PURE__ */ g("div", {
|
|
1970
|
-
className: `${
|
|
2031
|
+
className: `${mt.wrapper} ${r}`,
|
|
1971
2032
|
role: "progressbar",
|
|
1972
2033
|
"aria-valuenow": i,
|
|
1973
2034
|
"aria-valuemin": 0,
|
|
1974
2035
|
"aria-valuemax": 100,
|
|
1975
2036
|
children: [/* @__PURE__ */ h("div", {
|
|
1976
|
-
className:
|
|
2037
|
+
className: mt.track,
|
|
1977
2038
|
children: /* @__PURE__ */ h("div", {
|
|
1978
|
-
className:
|
|
2039
|
+
className: mt.fill,
|
|
1979
2040
|
style: {
|
|
1980
2041
|
width: `${i}%`,
|
|
1981
2042
|
backgroundColor: o
|
|
1982
2043
|
}
|
|
1983
2044
|
})
|
|
1984
2045
|
}), t && /* @__PURE__ */ h("span", {
|
|
1985
|
-
className:
|
|
2046
|
+
className: mt.label,
|
|
1986
2047
|
"aria-hidden": "true",
|
|
1987
2048
|
children: a
|
|
1988
2049
|
})]
|
|
@@ -2017,14 +2078,14 @@ var q = {
|
|
|
2017
2078
|
dim: "_dim_1ywpg_203",
|
|
2018
2079
|
zoneBar: "_zoneBar_1ywpg_208",
|
|
2019
2080
|
centre: "_centre_1ywpg_212"
|
|
2020
|
-
},
|
|
2081
|
+
}, gt = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, _t = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), vt = [
|
|
2021
2082
|
"var(--lv8)",
|
|
2022
2083
|
"var(--lv5)",
|
|
2023
2084
|
"var(--lv4)",
|
|
2024
2085
|
"var(--lv3)"
|
|
2025
|
-
],
|
|
2026
|
-
function
|
|
2027
|
-
let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ??
|
|
2086
|
+
], yt = (e) => vt[Math.min(e, vt.length - 1)], bt = .08, xt = 4, St = 96, Ct = (e) => e < 72 ? 6 : 14;
|
|
2087
|
+
function wt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: d = "" }) {
|
|
2088
|
+
let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ?? gt(c, f), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ g(m, { children: ["of ", _(n)] });
|
|
2028
2089
|
if (r && l !== "ring") {
|
|
2029
2090
|
let t = r.reduce((e, t) => e + Math.max(0, t.value), 0), n = (e) => a ? a(e.value) : `${Math.round((t > 0 ? e.value / t : 0) * 100)} %`, o = 0, s = r.map((e, n) => {
|
|
2030
2091
|
let i = o, a = t > 0 ? Math.max(0, e.value) / t : 0;
|
|
@@ -2034,7 +2095,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
|
|
|
2034
2095
|
from: i,
|
|
2035
2096
|
to: n === r.length - 1 ? 1 : o,
|
|
2036
2097
|
share: a,
|
|
2037
|
-
color: e.color ??
|
|
2098
|
+
color: e.color ?? yt(n)
|
|
2038
2099
|
};
|
|
2039
2100
|
});
|
|
2040
2101
|
return /* @__PURE__ */ g("div", {
|
|
@@ -2049,7 +2110,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
|
|
|
2049
2110
|
/* @__PURE__ */ g("div", {
|
|
2050
2111
|
className: `${q.shares} ${i === "legend" ? q.sharesLegend : ""}`,
|
|
2051
2112
|
children: [
|
|
2052
|
-
i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >=
|
|
2113
|
+
i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= bt || t === s.length - 1) && /* @__PURE__ */ g("div", {
|
|
2053
2114
|
className: `${q.head} ${t === s.length - 1 ? q.headLast : ""}`,
|
|
2054
2115
|
style: {
|
|
2055
2116
|
"--seg-from": `${r * 100}%`,
|
|
@@ -2116,7 +2177,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
|
|
|
2116
2177
|
},
|
|
2117
2178
|
children: [/* @__PURE__ */ g("div", {
|
|
2118
2179
|
className: q.dial,
|
|
2119
|
-
children: [/* @__PURE__ */ h(
|
|
2180
|
+
children: [/* @__PURE__ */ h(Tt, {
|
|
2120
2181
|
fraction: f,
|
|
2121
2182
|
size: u,
|
|
2122
2183
|
zones: c
|
|
@@ -2126,7 +2187,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
|
|
|
2126
2187
|
children: [/* @__PURE__ */ h("span", {
|
|
2127
2188
|
className: q.value,
|
|
2128
2189
|
children: _(t)
|
|
2129
|
-
}), u >=
|
|
2190
|
+
}), u >= St && /* @__PURE__ */ h("span", {
|
|
2130
2191
|
className: q.max,
|
|
2131
2192
|
children: v
|
|
2132
2193
|
})]
|
|
@@ -2177,10 +2238,10 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
|
|
|
2177
2238
|
]
|
|
2178
2239
|
});
|
|
2179
2240
|
}
|
|
2180
|
-
function
|
|
2181
|
-
let r = t / 2, i = Math.max(0, r -
|
|
2241
|
+
function Tt({ fraction: e, size: t, zones: n }) {
|
|
2242
|
+
let r = t / 2, i = Math.max(0, r - Ct(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / xt)), s = Math.round(e * o), c = [];
|
|
2182
2243
|
for (let e = 0; e < o; e++) {
|
|
2183
|
-
let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u =
|
|
2244
|
+
let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = _t(n, e, o);
|
|
2184
2245
|
c.push(/* @__PURE__ */ h("line", {
|
|
2185
2246
|
className: u ? q.zoneBar : e < s ? q.lit : q.dim,
|
|
2186
2247
|
style: u ? { stroke: u.color } : void 0,
|
|
@@ -2199,7 +2260,7 @@ function St({ fraction: e, size: t, zones: n }) {
|
|
|
2199
2260
|
children: c
|
|
2200
2261
|
});
|
|
2201
2262
|
}
|
|
2202
|
-
var
|
|
2263
|
+
var Et = {
|
|
2203
2264
|
waffle: "_waffle_1c9lc_1",
|
|
2204
2265
|
grid: "_grid_1c9lc_10",
|
|
2205
2266
|
gridWrap: "_gridWrap_1c9lc_20",
|
|
@@ -2213,13 +2274,13 @@ var Ct = {
|
|
|
2213
2274
|
icon: "_icon_1c9lc_78",
|
|
2214
2275
|
name: "_name_1c9lc_83",
|
|
2215
2276
|
share: "_share_1c9lc_87"
|
|
2216
|
-
},
|
|
2277
|
+
}, Dt = [
|
|
2217
2278
|
"var(--lv8)",
|
|
2218
2279
|
"var(--lv5)",
|
|
2219
2280
|
"var(--lv4)",
|
|
2220
2281
|
"var(--lv3)"
|
|
2221
2282
|
];
|
|
2222
|
-
function
|
|
2283
|
+
function Ot(e, t) {
|
|
2223
2284
|
let n = e.reduce((e, t) => e + Math.max(0, t), 0);
|
|
2224
2285
|
if (n <= 0) return e.map(() => 0);
|
|
2225
2286
|
let r = e.map((e) => Math.max(0, e) / n * t), i = r.map(Math.floor), a = t - i.reduce((e, t) => e + t, 0), o = r.map((e, t) => ({
|
|
@@ -2236,8 +2297,8 @@ function Tt(e, t) {
|
|
|
2236
2297
|
}
|
|
2237
2298
|
return i;
|
|
2238
2299
|
}
|
|
2239
|
-
function
|
|
2240
|
-
let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p =
|
|
2300
|
+
function kt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
|
|
2301
|
+
let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = Ot(e.map((e) => e.value), c), m = (t) => e[t].color ?? Dt[Math.min(t, Dt.length - 1)], _ = (e) => {
|
|
2241
2302
|
let t = d > 0 ? Math.max(0, e.value) / d : 0;
|
|
2242
2303
|
return i ? i(t, e.value) : `${Math.round(t * 100)} %`;
|
|
2243
2304
|
}, v = [], y = 0, b = 0;
|
|
@@ -2247,7 +2308,7 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
|
|
|
2247
2308
|
b += 1;
|
|
2248
2309
|
let n = y < p.length ? y : -1;
|
|
2249
2310
|
v.push(/* @__PURE__ */ h("span", {
|
|
2250
|
-
className: `${
|
|
2311
|
+
className: `${Et.cell} ${l && l.segment !== n ? Et.dim : ""}`,
|
|
2251
2312
|
style: t ? { background: t } : void 0,
|
|
2252
2313
|
onMouseEnter: () => u(n >= 0 ? {
|
|
2253
2314
|
segment: n,
|
|
@@ -2258,34 +2319,34 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
|
|
|
2258
2319
|
let x = r + 2, S = l && l.cell != null && l.segment < e.length ? (() => {
|
|
2259
2320
|
let i = Math.floor(l.cell / n), a = l.cell % n, o = i > t / 2, s = e[l.segment];
|
|
2260
2321
|
return /* @__PURE__ */ g("div", {
|
|
2261
|
-
className: `${
|
|
2322
|
+
className: `${Et.tooltip} ${o ? Et.tooltipLeft : ""}`,
|
|
2262
2323
|
style: {
|
|
2263
2324
|
top: a * x + r / 2,
|
|
2264
2325
|
left: o ? i * x - 6 : i * x + r + 6
|
|
2265
2326
|
},
|
|
2266
2327
|
children: [
|
|
2267
2328
|
s.icon != null && /* @__PURE__ */ h("span", {
|
|
2268
|
-
className:
|
|
2329
|
+
className: Et.icon,
|
|
2269
2330
|
children: s.icon
|
|
2270
2331
|
}),
|
|
2271
2332
|
/* @__PURE__ */ h("span", {
|
|
2272
|
-
className:
|
|
2333
|
+
className: Et.name,
|
|
2273
2334
|
children: s.label
|
|
2274
2335
|
}),
|
|
2275
2336
|
/* @__PURE__ */ h("span", {
|
|
2276
|
-
className:
|
|
2337
|
+
className: Et.share,
|
|
2277
2338
|
children: _(s)
|
|
2278
2339
|
})
|
|
2279
2340
|
]
|
|
2280
2341
|
});
|
|
2281
2342
|
})() : null;
|
|
2282
2343
|
return /* @__PURE__ */ g("div", {
|
|
2283
|
-
className: `${
|
|
2344
|
+
className: `${Et.waffle} ${s}`,
|
|
2284
2345
|
children: [/* @__PURE__ */ g("div", {
|
|
2285
|
-
className:
|
|
2346
|
+
className: Et.gridWrap,
|
|
2286
2347
|
onMouseLeave: () => u(null),
|
|
2287
2348
|
children: [/* @__PURE__ */ h("div", {
|
|
2288
|
-
className:
|
|
2349
|
+
className: Et.grid,
|
|
2289
2350
|
role: "img",
|
|
2290
2351
|
"aria-label": o,
|
|
2291
2352
|
style: {
|
|
@@ -2295,10 +2356,10 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
|
|
|
2295
2356
|
children: v
|
|
2296
2357
|
}), S]
|
|
2297
2358
|
}), a && /* @__PURE__ */ h("ul", {
|
|
2298
|
-
className:
|
|
2359
|
+
className: Et.legend,
|
|
2299
2360
|
"aria-hidden": !o || void 0,
|
|
2300
2361
|
children: e.map((e, t) => /* @__PURE__ */ g("li", {
|
|
2301
|
-
className:
|
|
2362
|
+
className: Et.item,
|
|
2302
2363
|
onMouseEnter: () => u({
|
|
2303
2364
|
segment: t,
|
|
2304
2365
|
cell: null
|
|
@@ -2306,19 +2367,19 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
|
|
|
2306
2367
|
onMouseLeave: () => u(null),
|
|
2307
2368
|
children: [
|
|
2308
2369
|
/* @__PURE__ */ h("span", {
|
|
2309
|
-
className:
|
|
2370
|
+
className: Et.swatch,
|
|
2310
2371
|
style: { background: m(t) }
|
|
2311
2372
|
}),
|
|
2312
2373
|
e.icon != null && /* @__PURE__ */ h("span", {
|
|
2313
|
-
className:
|
|
2374
|
+
className: Et.icon,
|
|
2314
2375
|
children: e.icon
|
|
2315
2376
|
}),
|
|
2316
2377
|
/* @__PURE__ */ h("span", {
|
|
2317
|
-
className:
|
|
2378
|
+
className: Et.name,
|
|
2318
2379
|
children: e.label
|
|
2319
2380
|
}),
|
|
2320
2381
|
/* @__PURE__ */ h("span", {
|
|
2321
|
-
className:
|
|
2382
|
+
className: Et.share,
|
|
2322
2383
|
children: _(e)
|
|
2323
2384
|
})
|
|
2324
2385
|
]
|
|
@@ -2326,7 +2387,7 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
|
|
|
2326
2387
|
})]
|
|
2327
2388
|
});
|
|
2328
2389
|
}
|
|
2329
|
-
var
|
|
2390
|
+
var At = {
|
|
2330
2391
|
heatmap: "_heatmap_1poh8_1",
|
|
2331
2392
|
gridWrap: "_gridWrap_1poh8_12",
|
|
2332
2393
|
withRows: "_withRows_1poh8_17",
|
|
@@ -2340,34 +2401,34 @@ var Dt = {
|
|
|
2340
2401
|
columnLabel: "_columnLabel_1poh8_65",
|
|
2341
2402
|
rowLabels: "_rowLabels_1poh8_77",
|
|
2342
2403
|
rowLabel: "_rowLabel_1poh8_77"
|
|
2343
|
-
},
|
|
2404
|
+
}, jt = [
|
|
2344
2405
|
"var(--lv3)",
|
|
2345
2406
|
"var(--lv4)",
|
|
2346
2407
|
"var(--lv5)",
|
|
2347
2408
|
"var(--lv8)"
|
|
2348
2409
|
];
|
|
2349
|
-
function
|
|
2350
|
-
return e <= 0 || t <= 0 ? 0 : Math.min(
|
|
2410
|
+
function Mt(e, t) {
|
|
2411
|
+
return e <= 0 || t <= 0 ? 0 : Math.min(jt.length, Math.max(1, Math.ceil(e / t * jt.length)));
|
|
2351
2412
|
}
|
|
2352
|
-
function
|
|
2413
|
+
function Nt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
|
|
2353
2414
|
let l = n ?? e.reduce((e, t) => t != null && t > e ? t : e, 0), u = Math.ceil(e.length / t), d = a + 2, [p, m] = f(null), _ = [];
|
|
2354
2415
|
for (let n = 0; n < u * t; n++) {
|
|
2355
2416
|
let t = n < e.length ? e[n] : null;
|
|
2356
2417
|
if (t == null) {
|
|
2357
|
-
_.push(/* @__PURE__ */ h("span", { className:
|
|
2418
|
+
_.push(/* @__PURE__ */ h("span", { className: At.gap }, n));
|
|
2358
2419
|
continue;
|
|
2359
2420
|
}
|
|
2360
|
-
let r =
|
|
2421
|
+
let r = Mt(t, l);
|
|
2361
2422
|
_.push(/* @__PURE__ */ h("span", {
|
|
2362
|
-
className: `${
|
|
2363
|
-
style: r ? { background:
|
|
2423
|
+
className: `${At.cell} ${p === n ? At.hovered : ""}`,
|
|
2424
|
+
style: r ? { background: jt[r - 1] } : void 0,
|
|
2364
2425
|
onMouseEnter: o ? () => m(n) : void 0
|
|
2365
2426
|
}, n));
|
|
2366
2427
|
}
|
|
2367
2428
|
let v = p != null && o && e[p] != null ? (() => {
|
|
2368
2429
|
let n = Math.floor(p / t), r = p % t, i = n > u / 2;
|
|
2369
2430
|
return /* @__PURE__ */ h("div", {
|
|
2370
|
-
className: `${
|
|
2431
|
+
className: `${At.tooltip} ${i ? At.tooltipLeft : ""}`,
|
|
2371
2432
|
style: {
|
|
2372
2433
|
top: r * d + a / 2,
|
|
2373
2434
|
left: i ? n * d - 6 : n * d + a + 6
|
|
@@ -2376,7 +2437,7 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
|
|
|
2376
2437
|
});
|
|
2377
2438
|
})() : null;
|
|
2378
2439
|
return /* @__PURE__ */ g("div", {
|
|
2379
|
-
className: `${
|
|
2440
|
+
className: `${At.heatmap} ${i ? At.withRows : ""} ${c}`,
|
|
2380
2441
|
style: {
|
|
2381
2442
|
"--heatmap-rows": t,
|
|
2382
2443
|
"--heatmap-cell": `${a}px`,
|
|
@@ -2384,29 +2445,29 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
|
|
|
2384
2445
|
},
|
|
2385
2446
|
children: [
|
|
2386
2447
|
i && /* @__PURE__ */ h("div", {
|
|
2387
|
-
className:
|
|
2448
|
+
className: At.rowLabels,
|
|
2388
2449
|
"aria-hidden": "true",
|
|
2389
2450
|
children: i.map((e) => /* @__PURE__ */ h("span", {
|
|
2390
|
-
className:
|
|
2451
|
+
className: At.rowLabel,
|
|
2391
2452
|
style: { top: e.at * d },
|
|
2392
2453
|
children: e.label
|
|
2393
2454
|
}, e.at))
|
|
2394
2455
|
}),
|
|
2395
2456
|
/* @__PURE__ */ g("div", {
|
|
2396
|
-
className:
|
|
2457
|
+
className: At.gridWrap,
|
|
2397
2458
|
onMouseLeave: () => m(null),
|
|
2398
2459
|
children: [/* @__PURE__ */ h("div", {
|
|
2399
|
-
className:
|
|
2460
|
+
className: At.grid,
|
|
2400
2461
|
role: "img",
|
|
2401
2462
|
"aria-label": s,
|
|
2402
2463
|
children: _
|
|
2403
2464
|
}), v]
|
|
2404
2465
|
}),
|
|
2405
2466
|
r && /* @__PURE__ */ h("div", {
|
|
2406
|
-
className:
|
|
2467
|
+
className: At.columnLabels,
|
|
2407
2468
|
"aria-hidden": "true",
|
|
2408
2469
|
children: r.map((e) => /* @__PURE__ */ h("span", {
|
|
2409
|
-
className:
|
|
2470
|
+
className: At.columnLabel,
|
|
2410
2471
|
style: { left: e.at * d },
|
|
2411
2472
|
children: e.label
|
|
2412
2473
|
}, e.at))
|
|
@@ -2414,7 +2475,7 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
|
|
|
2414
2475
|
]
|
|
2415
2476
|
});
|
|
2416
2477
|
}
|
|
2417
|
-
var
|
|
2478
|
+
var Pt = [
|
|
2418
2479
|
"Jan",
|
|
2419
2480
|
"Feb",
|
|
2420
2481
|
"Mar",
|
|
@@ -2427,7 +2488,7 @@ var jt = [
|
|
|
2427
2488
|
"Oct",
|
|
2428
2489
|
"Nov",
|
|
2429
2490
|
"Dec"
|
|
2430
|
-
],
|
|
2491
|
+
], Ft = [
|
|
2431
2492
|
"Mon",
|
|
2432
2493
|
"Tue",
|
|
2433
2494
|
"Wed",
|
|
@@ -2436,14 +2497,14 @@ var jt = [
|
|
|
2436
2497
|
"Sat",
|
|
2437
2498
|
"Sun"
|
|
2438
2499
|
];
|
|
2439
|
-
function
|
|
2500
|
+
function It(e, t, n) {
|
|
2440
2501
|
let r = new Date(e.getFullYear(), e.getMonth(), e.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = [], o = [], s = [], c = (r.getDay() + 6) % 7;
|
|
2441
2502
|
for (let e = 0; e < c; e++) a.push(null), o.push(null);
|
|
2442
2503
|
for (let e = new Date(r); e <= i; e.setDate(e.getDate() + 1)) {
|
|
2443
2504
|
let t = new Date(e);
|
|
2444
2505
|
t.getDate() === 1 && s.push({
|
|
2445
2506
|
at: Math.floor(a.length / 7),
|
|
2446
|
-
label:
|
|
2507
|
+
label: Pt[t.getMonth()]
|
|
2447
2508
|
}), a.push(n(t)), o.push(t);
|
|
2448
2509
|
}
|
|
2449
2510
|
for (; a.length % 7;) a.push(null), o.push(null);
|
|
@@ -2457,7 +2518,7 @@ function Nt(e, t, n) {
|
|
|
2457
2518
|
4
|
|
2458
2519
|
].map((e) => ({
|
|
2459
2520
|
at: e,
|
|
2460
|
-
label:
|
|
2521
|
+
label: Ft[e]
|
|
2461
2522
|
}))
|
|
2462
2523
|
};
|
|
2463
2524
|
}
|
|
@@ -2488,8 +2549,8 @@ var J = {
|
|
|
2488
2549
|
legendLabel: "_legendLabel_16ve1_159",
|
|
2489
2550
|
tooltipLabel: "_tooltipLabel_16ve1_164",
|
|
2490
2551
|
tooltipValue: "_tooltipValue_16ve1_171"
|
|
2491
|
-
},
|
|
2492
|
-
function
|
|
2552
|
+
}, Lt = "var(--lv6)";
|
|
2553
|
+
function Rt({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: u, format: d, centre: p, showLegend: m = !0, "aria-label": _, className: v = "" }) {
|
|
2493
2554
|
let [y, b] = f(null), x = o / 2, S = x * Math.min(.9, Math.max(0, s)), C = x - S, w = !!r?.length, T = w ? [{
|
|
2494
2555
|
label: "",
|
|
2495
2556
|
values: r.map((e) => e.value),
|
|
@@ -2498,7 +2559,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
|
|
|
2498
2559
|
label: "",
|
|
2499
2560
|
values: e ?? [],
|
|
2500
2561
|
color: u
|
|
2501
|
-
}], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ??
|
|
2562
|
+
}], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ?? Lt, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
|
|
2502
2563
|
let n = S + z, r = Math.max(n + .5, t - z), i = j(e), a = Math.max(.01, k / 2 - z / n), o = Math.max(.01, k / 2 - z / r), s = (e, t) => `${(x + e * Math.cos(t)).toFixed(2)} ${(x + e * Math.sin(t)).toFixed(2)}`, c = +(2 * o > Math.PI);
|
|
2503
2564
|
return `M ${s(n, i - a)} L ${s(r, i - o)} A ${r.toFixed(2)} ${r.toFixed(2)} 0 ${c} 1 ${s(r, i + o)} L ${s(n, i + a)} A ${n.toFixed(2)} ${n.toFixed(2)} 0 ${c} 0 ${s(n, i - a)} Z`;
|
|
2504
2565
|
}, ee = (e) => {
|
|
@@ -2519,7 +2580,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
|
|
|
2519
2580
|
style: { strokeWidth: R * 2 },
|
|
2520
2581
|
d: B(e, x)
|
|
2521
2582
|
}, `t${e}`)), n > 0) {
|
|
2522
|
-
let r = t.color ?? u ??
|
|
2583
|
+
let r = t.color ?? u ?? Lt;
|
|
2523
2584
|
te.push(/* @__PURE__ */ h("path", {
|
|
2524
2585
|
className: `${J.wedge} ${y === e ? J.wedgeHovered : ""}`,
|
|
2525
2586
|
style: {
|
|
@@ -2669,7 +2730,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
|
|
|
2669
2730
|
})]
|
|
2670
2731
|
});
|
|
2671
2732
|
}
|
|
2672
|
-
var
|
|
2733
|
+
var zt = {
|
|
2673
2734
|
wrapper: "_wrapper_1gzqh_1",
|
|
2674
2735
|
radar: "_radar_1gzqh_7",
|
|
2675
2736
|
svg: "_svg_1gzqh_13",
|
|
@@ -2690,7 +2751,7 @@ var Y = {
|
|
|
2690
2751
|
legendItem: "_legendItem_1gzqh_112",
|
|
2691
2752
|
legendMark: "_legendMark_1gzqh_118",
|
|
2692
2753
|
legendLabel: "_legendLabel_1gzqh_124"
|
|
2693
|
-
},
|
|
2754
|
+
}, Bt = "var(--lv6)", Vt = .14, Ht = .7, Ut = 36, Wt = {
|
|
2694
2755
|
hatch: [
|
|
2695
2756
|
[
|
|
2696
2757
|
0,
|
|
@@ -2735,11 +2796,11 @@ var Y = {
|
|
|
2735
2796
|
2
|
|
2736
2797
|
]]
|
|
2737
2798
|
};
|
|
2738
|
-
function
|
|
2739
|
-
let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(
|
|
2799
|
+
function Gt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a, showLegend: o = !0, "aria-label": c, className: l = "" }) {
|
|
2800
|
+
let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(Ut, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = n + 56, x = y / 2, S = b / 2, C = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), w = (t) => e[t].max ?? C, T = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, m), E = (e, t) => [x + t * Math.cos(T(e)), S + t * Math.sin(T(e))], D = (e, t) => {
|
|
2740
2801
|
let n = w(e);
|
|
2741
2802
|
return n > 0 && Number.isFinite(t) ? Math.min(1, Math.max(0, t / n)) * _ : 0;
|
|
2742
|
-
}, O = (e) => e.color ??
|
|
2803
|
+
}, O = (e) => e.color ?? Bt, k = (t, n) => e[t].format?.(n) ?? a?.(n) ?? n.toLocaleString(), A = (e) => {
|
|
2743
2804
|
if (m === 0) return;
|
|
2744
2805
|
let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * y - x, r = (e.clientY - t.top) / t.height * b - S;
|
|
2745
2806
|
if (Math.hypot(n, r) > _ + v) {
|
|
@@ -2751,18 +2812,18 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2751
2812
|
}, j = Array.from({ length: i }, (e, t) => {
|
|
2752
2813
|
let n = _ * (t + 1) / i;
|
|
2753
2814
|
return Array.from({ length: m }, (e, t) => E(t, n).map((e) => e.toFixed(2)).join(",")).join(" ");
|
|
2754
|
-
}), M = t.filter((e) => e.fill && e.fill in
|
|
2815
|
+
}), M = t.filter((e) => e.fill && e.fill in Wt);
|
|
2755
2816
|
return /* @__PURE__ */ g("div", {
|
|
2756
|
-
className: `${
|
|
2817
|
+
className: `${zt.wrapper} ${l}`,
|
|
2757
2818
|
children: [/* @__PURE__ */ g("div", {
|
|
2758
|
-
className:
|
|
2819
|
+
className: zt.radar,
|
|
2759
2820
|
style: {
|
|
2760
2821
|
"--radar-width": `${y}px`,
|
|
2761
2822
|
"--radar-height": `${b}px`
|
|
2762
2823
|
},
|
|
2763
2824
|
onPointerLeave: () => p(null),
|
|
2764
2825
|
children: [/* @__PURE__ */ g("svg", {
|
|
2765
|
-
className:
|
|
2826
|
+
className: zt.svg,
|
|
2766
2827
|
viewBox: `0 0 ${y} ${b}`,
|
|
2767
2828
|
width: y,
|
|
2768
2829
|
height: b,
|
|
@@ -2771,12 +2832,12 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2771
2832
|
onPointerMove: A,
|
|
2772
2833
|
onPointerDown: A,
|
|
2773
2834
|
children: [
|
|
2774
|
-
M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in
|
|
2835
|
+
M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in Wt ? /* @__PURE__ */ h("pattern", {
|
|
2775
2836
|
id: `${u}-${t}`,
|
|
2776
2837
|
width: 4,
|
|
2777
2838
|
height: 4,
|
|
2778
2839
|
patternUnits: "userSpaceOnUse",
|
|
2779
|
-
children:
|
|
2840
|
+
children: Wt[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ h("rect", {
|
|
2780
2841
|
x: t,
|
|
2781
2842
|
y: n,
|
|
2782
2843
|
width: r,
|
|
@@ -2785,13 +2846,13 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2785
2846
|
}, a))
|
|
2786
2847
|
}, t) : null) }),
|
|
2787
2848
|
j.map((e, t) => /* @__PURE__ */ h("polygon", {
|
|
2788
|
-
className: t === i - 1 ?
|
|
2849
|
+
className: t === i - 1 ? zt.rim : zt.ring,
|
|
2789
2850
|
points: e
|
|
2790
2851
|
}, `r${t}`)),
|
|
2791
2852
|
e.map((e, t) => {
|
|
2792
2853
|
let [n, r] = E(t, _);
|
|
2793
2854
|
return /* @__PURE__ */ h("line", {
|
|
2794
|
-
className: `${
|
|
2855
|
+
className: `${zt.axis} ${d === t ? zt.axisHovered : ""}`,
|
|
2795
2856
|
x1: x,
|
|
2796
2857
|
y1: S,
|
|
2797
2858
|
x2: n,
|
|
@@ -2799,12 +2860,12 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2799
2860
|
}, `a${t}`);
|
|
2800
2861
|
}),
|
|
2801
2862
|
t.map((t, n) => {
|
|
2802
|
-
let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in
|
|
2863
|
+
let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in Wt ? `url(#${u}-${n})` : O(t);
|
|
2803
2864
|
return /* @__PURE__ */ g("g", { children: [
|
|
2804
2865
|
i !== "none" && /* @__PURE__ */ h("polygon", {
|
|
2805
2866
|
points: r.map(([e, t]) => `${e.toFixed(2)},${t.toFixed(2)}`).join(" "),
|
|
2806
2867
|
fill: a,
|
|
2807
|
-
fillOpacity: i === "solid" ?
|
|
2868
|
+
fillOpacity: i === "solid" ? Vt : Ht,
|
|
2808
2869
|
stroke: "none"
|
|
2809
2870
|
}),
|
|
2810
2871
|
/* @__PURE__ */ h("polygon", {
|
|
@@ -2829,7 +2890,7 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2829
2890
|
e.map((e, t) => {
|
|
2830
2891
|
let [n, r] = E(t, _ + 10), i = Math.cos(T(t)), a = Math.abs(i) < .2 ? "middle" : i > 0 ? "start" : "end", o = Math.sin(T(t)) > .5 ? "0.9em" : Math.sin(T(t)) < -.5 ? "-0.2em" : "0.35em";
|
|
2831
2892
|
return /* @__PURE__ */ h("text", {
|
|
2832
|
-
className: `${
|
|
2893
|
+
className: `${zt.label} ${d === t ? zt.labelHovered : ""}`,
|
|
2833
2894
|
x: n,
|
|
2834
2895
|
y: r,
|
|
2835
2896
|
dy: o,
|
|
@@ -2841,27 +2902,27 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2841
2902
|
}), d != null && (() => {
|
|
2842
2903
|
let [n, r] = E(d, _ + 10), i = n > x;
|
|
2843
2904
|
return /* @__PURE__ */ g("div", {
|
|
2844
|
-
className: `${
|
|
2905
|
+
className: `${zt.tooltip} ${i ? zt.tooltipLeft : ""}`,
|
|
2845
2906
|
style: {
|
|
2846
2907
|
left: n,
|
|
2847
2908
|
top: r
|
|
2848
2909
|
},
|
|
2849
2910
|
children: [/* @__PURE__ */ h("span", {
|
|
2850
|
-
className:
|
|
2911
|
+
className: zt.tooltipLabel,
|
|
2851
2912
|
children: e[d].label
|
|
2852
2913
|
}), t.map((e, n) => /* @__PURE__ */ g("span", {
|
|
2853
|
-
className:
|
|
2914
|
+
className: zt.tooltipRow,
|
|
2854
2915
|
children: [
|
|
2855
2916
|
t.length > 1 && /* @__PURE__ */ h("span", {
|
|
2856
|
-
className:
|
|
2917
|
+
className: zt.tooltipDot,
|
|
2857
2918
|
style: { background: O(e) }
|
|
2858
2919
|
}),
|
|
2859
2920
|
t.length > 1 && /* @__PURE__ */ h("span", {
|
|
2860
|
-
className:
|
|
2921
|
+
className: zt.tooltipName,
|
|
2861
2922
|
children: e.label
|
|
2862
2923
|
}),
|
|
2863
2924
|
/* @__PURE__ */ h("span", {
|
|
2864
|
-
className:
|
|
2925
|
+
className: zt.tooltipValue,
|
|
2865
2926
|
children: k(d, e.values[d] ?? 0)
|
|
2866
2927
|
})
|
|
2867
2928
|
]
|
|
@@ -2869,21 +2930,21 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
|
|
|
2869
2930
|
});
|
|
2870
2931
|
})()]
|
|
2871
2932
|
}), o && t.length > 1 && /* @__PURE__ */ h("div", {
|
|
2872
|
-
className:
|
|
2933
|
+
className: zt.legend,
|
|
2873
2934
|
children: t.map((e, t) => /* @__PURE__ */ g("span", {
|
|
2874
|
-
className:
|
|
2935
|
+
className: zt.legendItem,
|
|
2875
2936
|
children: [/* @__PURE__ */ h("span", {
|
|
2876
|
-
className:
|
|
2937
|
+
className: zt.legendMark,
|
|
2877
2938
|
style: { background: O(e) }
|
|
2878
2939
|
}), /* @__PURE__ */ h("span", {
|
|
2879
|
-
className:
|
|
2940
|
+
className: zt.legendLabel,
|
|
2880
2941
|
children: e.label
|
|
2881
2942
|
})]
|
|
2882
2943
|
}, t))
|
|
2883
2944
|
})]
|
|
2884
2945
|
});
|
|
2885
2946
|
}
|
|
2886
|
-
var
|
|
2947
|
+
var Kt = {
|
|
2887
2948
|
chart: "_chart_106dt_1",
|
|
2888
2949
|
svg: "_svg_106dt_7",
|
|
2889
2950
|
divider: "_divider_106dt_13",
|
|
@@ -2897,8 +2958,8 @@ var Ht = {
|
|
|
2897
2958
|
tooltipLeft: "_tooltipLeft_106dt_66",
|
|
2898
2959
|
tooltipLabel: "_tooltipLabel_106dt_70",
|
|
2899
2960
|
tooltipValue: "_tooltipValue_106dt_77"
|
|
2900
|
-
},
|
|
2901
|
-
function
|
|
2961
|
+
}, qt = "var(--lv6)", Jt = 30, Yt = 10, Xt = 20;
|
|
2962
|
+
function Zt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format: a, "aria-label": s, className: c = "" }) {
|
|
2902
2963
|
let l = i, u = d(null), [p, m] = f(0), [_, v] = f(null);
|
|
2903
2964
|
o(() => {
|
|
2904
2965
|
let e = u.current;
|
|
@@ -2906,9 +2967,9 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
2906
2967
|
let t = new ResizeObserver(([e]) => m(e.contentRect.width));
|
|
2907
2968
|
return t.observe(e), m(e.clientWidth), () => t.disconnect();
|
|
2908
2969
|
}, []);
|
|
2909
|
-
let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n +
|
|
2970
|
+
let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + Jt + 4 + Yt + Xt, S = Jt + n, C = y > 0 ? (p - l * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
|
|
2910
2971
|
for (let t of e) w.push(T), T += t.values.length * C + l;
|
|
2911
|
-
let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" :
|
|
2972
|
+
let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : qt, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(p - 10, Math.max(10, E(e, t))), A = (t) => {
|
|
2912
2973
|
if (!a || y === 0) return;
|
|
2913
2974
|
let n = t.currentTarget.getBoundingClientRect(), r = t.clientX - n.left;
|
|
2914
2975
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -2923,27 +2984,27 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
2923
2984
|
}, j = _ && a ? (() => {
|
|
2924
2985
|
let [r, i] = _, o = e[r], s = E(r, i), c = s > p / 2, l = b > 0 && Number.isFinite(o.values[i]) ? Math.max(0, o.values[i]) / b * n : 0;
|
|
2925
2986
|
return /* @__PURE__ */ g("div", {
|
|
2926
|
-
className: `${
|
|
2987
|
+
className: `${Kt.tooltip} ${c ? Kt.tooltipLeft : ""}`,
|
|
2927
2988
|
style: {
|
|
2928
2989
|
left: c ? s - 8 : s + 8,
|
|
2929
2990
|
top: Math.max(42, S - l)
|
|
2930
2991
|
},
|
|
2931
2992
|
children: [/* @__PURE__ */ g("span", {
|
|
2932
|
-
className:
|
|
2993
|
+
className: Kt.tooltipLabel,
|
|
2933
2994
|
children: [o.label, t?.[i] == null ? "" : `, ${t[i]}`]
|
|
2934
2995
|
}), /* @__PURE__ */ h("span", {
|
|
2935
|
-
className:
|
|
2996
|
+
className: Kt.tooltipValue,
|
|
2936
2997
|
children: a(o.values[i], r, i)
|
|
2937
2998
|
})]
|
|
2938
2999
|
});
|
|
2939
3000
|
})() : null;
|
|
2940
3001
|
return /* @__PURE__ */ g("div", {
|
|
2941
3002
|
ref: u,
|
|
2942
|
-
className: `${
|
|
3003
|
+
className: `${Kt.chart} ${c}`,
|
|
2943
3004
|
style: { height: x },
|
|
2944
3005
|
onPointerLeave: () => v(null),
|
|
2945
3006
|
children: [p > 0 && /* @__PURE__ */ h("svg", {
|
|
2946
|
-
className:
|
|
3007
|
+
className: Kt.svg,
|
|
2947
3008
|
width: p,
|
|
2948
3009
|
height: x,
|
|
2949
3010
|
role: "img",
|
|
@@ -2954,20 +3015,20 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
2954
3015
|
let i = w[r], a = e.values.length * C, o = D(e);
|
|
2955
3016
|
return /* @__PURE__ */ g("g", { children: [
|
|
2956
3017
|
/* @__PURE__ */ h("line", {
|
|
2957
|
-
className:
|
|
3018
|
+
className: Kt.divider,
|
|
2958
3019
|
x1: i,
|
|
2959
3020
|
y1: 0,
|
|
2960
3021
|
x2: i,
|
|
2961
3022
|
y2: S
|
|
2962
3023
|
}),
|
|
2963
3024
|
/* @__PURE__ */ h("text", {
|
|
2964
|
-
className:
|
|
3025
|
+
className: Kt.head,
|
|
2965
3026
|
x: i + 6,
|
|
2966
3027
|
y: 11,
|
|
2967
3028
|
children: e.label
|
|
2968
3029
|
}),
|
|
2969
3030
|
e.sublabel != null && /* @__PURE__ */ h("text", {
|
|
2970
|
-
className: `${
|
|
3031
|
+
className: `${Kt.sub} ${e.highlight ? Kt.subHighlight : ""}`,
|
|
2971
3032
|
x: i + 6,
|
|
2972
3033
|
y: 23,
|
|
2973
3034
|
style: e.highlight ? { fill: o } : void 0,
|
|
@@ -2976,7 +3037,7 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
2976
3037
|
e.values.map((e, t) => {
|
|
2977
3038
|
let i = b > 0 && Number.isFinite(e) ? Math.max(0, e) / b * n : 0, a = _?.[0] === r && _[1] === t;
|
|
2978
3039
|
return /* @__PURE__ */ h("rect", {
|
|
2979
|
-
className: a ?
|
|
3040
|
+
className: a ? Kt.barHovered : Kt.bar,
|
|
2980
3041
|
style: { fill: a ? void 0 : o },
|
|
2981
3042
|
x: E(r, t) - (a ? 1.5 : 1),
|
|
2982
3043
|
y: S - i,
|
|
@@ -2985,15 +3046,15 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
2985
3046
|
}, t);
|
|
2986
3047
|
}),
|
|
2987
3048
|
/* @__PURE__ */ h("rect", {
|
|
2988
|
-
className:
|
|
3049
|
+
className: Kt.band,
|
|
2989
3050
|
style: e.highlight ? { fill: o } : void 0,
|
|
2990
3051
|
x: i,
|
|
2991
3052
|
y: S + 4,
|
|
2992
3053
|
width: a,
|
|
2993
|
-
height:
|
|
3054
|
+
height: Yt
|
|
2994
3055
|
}),
|
|
2995
3056
|
t && e.values.map((e, n) => n % O === 0 ? /* @__PURE__ */ h("text", {
|
|
2996
|
-
className:
|
|
3057
|
+
className: Kt.tick,
|
|
2997
3058
|
x: k(r, n),
|
|
2998
3059
|
y: x - 5,
|
|
2999
3060
|
textAnchor: "middle",
|
|
@@ -3004,16 +3065,16 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
|
|
|
3004
3065
|
}), j]
|
|
3005
3066
|
});
|
|
3006
3067
|
}
|
|
3007
|
-
var
|
|
3068
|
+
var Qt = { kbd: "_kbd_17l44_3" };
|
|
3008
3069
|
// src/components/Kbd/Kbd.tsx
|
|
3009
|
-
function
|
|
3070
|
+
function $t({ children: e, className: t = "", ...n }) {
|
|
3010
3071
|
return /* @__PURE__ */ h("kbd", {
|
|
3011
|
-
className: `${
|
|
3072
|
+
className: `${Qt.kbd} ${t}`,
|
|
3012
3073
|
...n,
|
|
3013
3074
|
children: e
|
|
3014
3075
|
});
|
|
3015
3076
|
}
|
|
3016
|
-
var
|
|
3077
|
+
var en = {
|
|
3017
3078
|
overlay: "_overlay_11duy_3",
|
|
3018
3079
|
panel: "_panel_11duy_14",
|
|
3019
3080
|
field: "_field_11duy_25",
|
|
@@ -3029,7 +3090,7 @@ var Xt = {
|
|
|
3029
3090
|
empty: "_empty_11duy_111"
|
|
3030
3091
|
};
|
|
3031
3092
|
// src/components/CommandPalette/CommandPalette.tsx
|
|
3032
|
-
function
|
|
3093
|
+
function tn({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, onChoose: c, shortcut: l = "k", placeholder: u = "Search", emptyText: p = "Nothing to show.", noMatchText: m = "No matches.", "aria-label": _ = "Command palette" }) {
|
|
3033
3094
|
let v = s(), y = d(null), b = d(null), [x, S] = f(0);
|
|
3034
3095
|
o(() => {
|
|
3035
3096
|
if (!l) return;
|
|
@@ -3067,19 +3128,19 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
|
|
|
3067
3128
|
if (!i) return null;
|
|
3068
3129
|
let E = /* @__PURE__ */ new Set(), D = t.filter((e) => !E.has(e.id) && (E.add(e.id), !0)), O;
|
|
3069
3130
|
return /* @__PURE__ */ h("div", {
|
|
3070
|
-
className:
|
|
3131
|
+
className: en.overlay,
|
|
3071
3132
|
onClick: C,
|
|
3072
3133
|
children: /* @__PURE__ */ g("div", {
|
|
3073
|
-
className:
|
|
3134
|
+
className: en.panel,
|
|
3074
3135
|
role: "dialog",
|
|
3075
3136
|
"aria-modal": "true",
|
|
3076
3137
|
"aria-label": _,
|
|
3077
3138
|
onClick: (e) => e.stopPropagation(),
|
|
3078
3139
|
children: [/* @__PURE__ */ g("div", {
|
|
3079
|
-
className:
|
|
3140
|
+
className: en.field,
|
|
3080
3141
|
children: [
|
|
3081
3142
|
/* @__PURE__ */ h("span", {
|
|
3082
|
-
className:
|
|
3143
|
+
className: en.icon,
|
|
3083
3144
|
children: /* @__PURE__ */ h(M, {
|
|
3084
3145
|
size: 14,
|
|
3085
3146
|
color: "currentColor"
|
|
@@ -3087,7 +3148,7 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
|
|
|
3087
3148
|
}),
|
|
3088
3149
|
/* @__PURE__ */ h("input", {
|
|
3089
3150
|
ref: y,
|
|
3090
|
-
className:
|
|
3151
|
+
className: en.input,
|
|
3091
3152
|
type: "text",
|
|
3092
3153
|
role: "combobox",
|
|
3093
3154
|
"aria-expanded": "true",
|
|
@@ -3101,21 +3162,21 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
|
|
|
3101
3162
|
onChange: (e) => r(e.target.value),
|
|
3102
3163
|
onKeyDown: T
|
|
3103
3164
|
}),
|
|
3104
|
-
/* @__PURE__ */ h(
|
|
3165
|
+
/* @__PURE__ */ h($t, { children: "esc" })
|
|
3105
3166
|
]
|
|
3106
3167
|
}), /* @__PURE__ */ g("div", {
|
|
3107
3168
|
ref: b,
|
|
3108
|
-
className:
|
|
3169
|
+
className: en.list,
|
|
3109
3170
|
id: v,
|
|
3110
3171
|
role: "listbox",
|
|
3111
3172
|
"aria-label": _,
|
|
3112
3173
|
children: [D.length === 0 && /* @__PURE__ */ h("p", {
|
|
3113
|
-
className:
|
|
3174
|
+
className: en.empty,
|
|
3114
3175
|
children: n.trim() ? m : p
|
|
3115
3176
|
}), D.map((t, n) => {
|
|
3116
3177
|
let r = t.group !== O && t.group ? t.group : null;
|
|
3117
3178
|
return O = t.group, /* @__PURE__ */ g(e.Fragment, { children: [r && /* @__PURE__ */ h("div", {
|
|
3118
|
-
className:
|
|
3179
|
+
className: en.group,
|
|
3119
3180
|
role: "presentation",
|
|
3120
3181
|
children: r
|
|
3121
3182
|
}), /* @__PURE__ */ g("button", {
|
|
@@ -3124,20 +3185,20 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
|
|
|
3124
3185
|
"data-index": n,
|
|
3125
3186
|
role: "option",
|
|
3126
3187
|
"aria-selected": n === x,
|
|
3127
|
-
className: `${
|
|
3188
|
+
className: `${en.item} ${n === x ? en.active : ""}`,
|
|
3128
3189
|
onPointerMove: () => n !== x && S(n),
|
|
3129
3190
|
onClick: () => w(t),
|
|
3130
3191
|
children: [
|
|
3131
3192
|
t.icon && /* @__PURE__ */ h("span", {
|
|
3132
|
-
className:
|
|
3193
|
+
className: en.itemIcon,
|
|
3133
3194
|
children: t.icon
|
|
3134
3195
|
}),
|
|
3135
3196
|
/* @__PURE__ */ h("span", {
|
|
3136
|
-
className:
|
|
3197
|
+
className: en.label,
|
|
3137
3198
|
children: t.label
|
|
3138
3199
|
}),
|
|
3139
3200
|
t.hint && /* @__PURE__ */ h("span", {
|
|
3140
|
-
className:
|
|
3201
|
+
className: en.hint,
|
|
3141
3202
|
children: t.hint
|
|
3142
3203
|
})
|
|
3143
3204
|
]
|
|
@@ -3147,7 +3208,7 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
|
|
|
3147
3208
|
})
|
|
3148
3209
|
});
|
|
3149
3210
|
}
|
|
3150
|
-
var
|
|
3211
|
+
var nn = {
|
|
3151
3212
|
wrapper: "_wrapper_59d2a_1",
|
|
3152
3213
|
field: "_field_59d2a_9",
|
|
3153
3214
|
disabled: "_disabled_59d2a_28",
|
|
@@ -3159,7 +3220,7 @@ var Qt = {
|
|
|
3159
3220
|
label: "_label_59d2a_106"
|
|
3160
3221
|
};
|
|
3161
3222
|
// src/components/TagsInput/TagsInput.tsx
|
|
3162
|
-
function
|
|
3223
|
+
function rn({ value: e, onChange: t, label: n, placeholder: r, hint: i, separators: a = ";,", disabled: o = !1, "aria-label": c, className: l = "" }) {
|
|
3163
3224
|
let u = s(), p = d(null), [m, _] = f(""), v = (e, t) => {
|
|
3164
3225
|
let n = [...e];
|
|
3165
3226
|
for (let e of t) {
|
|
@@ -3181,24 +3242,24 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
|
|
|
3181
3242
|
t(e.filter((e, t) => t !== n)), p.current?.focus();
|
|
3182
3243
|
};
|
|
3183
3244
|
return /* @__PURE__ */ g("div", {
|
|
3184
|
-
className: `${
|
|
3245
|
+
className: `${nn.wrapper} ${l}`,
|
|
3185
3246
|
children: [
|
|
3186
3247
|
n && /* @__PURE__ */ h("label", {
|
|
3187
3248
|
htmlFor: u,
|
|
3188
|
-
className:
|
|
3249
|
+
className: nn.label,
|
|
3189
3250
|
children: n
|
|
3190
3251
|
}),
|
|
3191
3252
|
/* @__PURE__ */ g("div", {
|
|
3192
|
-
className: `${
|
|
3253
|
+
className: `${nn.field} ${o ? nn.disabled : ""}`,
|
|
3193
3254
|
onClick: () => p.current?.focus(),
|
|
3194
3255
|
children: [e.map((e, t) => /* @__PURE__ */ g("span", {
|
|
3195
|
-
className:
|
|
3256
|
+
className: nn.chip,
|
|
3196
3257
|
children: [/* @__PURE__ */ h("span", {
|
|
3197
|
-
className:
|
|
3258
|
+
className: nn.text,
|
|
3198
3259
|
children: e
|
|
3199
3260
|
}), !o && /* @__PURE__ */ h("button", {
|
|
3200
3261
|
type: "button",
|
|
3201
|
-
className:
|
|
3262
|
+
className: nn.remove,
|
|
3202
3263
|
"aria-label": `Remove ${e}`,
|
|
3203
3264
|
title: "Remove",
|
|
3204
3265
|
onClick: (e) => {
|
|
@@ -3212,7 +3273,7 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
|
|
|
3212
3273
|
}, e)), /* @__PURE__ */ h("input", {
|
|
3213
3274
|
id: u,
|
|
3214
3275
|
ref: p,
|
|
3215
|
-
className:
|
|
3276
|
+
className: nn.input,
|
|
3216
3277
|
value: m,
|
|
3217
3278
|
placeholder: e.length === 0 ? r : void 0,
|
|
3218
3279
|
"aria-label": c ?? n,
|
|
@@ -3223,84 +3284,84 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
|
|
|
3223
3284
|
})]
|
|
3224
3285
|
}),
|
|
3225
3286
|
i && /* @__PURE__ */ h("span", {
|
|
3226
|
-
className:
|
|
3287
|
+
className: nn.hint,
|
|
3227
3288
|
children: i
|
|
3228
3289
|
})
|
|
3229
3290
|
]
|
|
3230
3291
|
});
|
|
3231
3292
|
}
|
|
3232
|
-
var
|
|
3293
|
+
var an = {
|
|
3233
3294
|
stack: "_stack_67643_3",
|
|
3234
3295
|
toast: "_toast_67643_18",
|
|
3235
3296
|
error: "_error_67643_36",
|
|
3236
3297
|
icon: "_icon_67643_40",
|
|
3237
3298
|
message: "_message_67643_50",
|
|
3238
3299
|
close: "_close_67643_55"
|
|
3239
|
-
},
|
|
3240
|
-
function
|
|
3241
|
-
let t = ++
|
|
3242
|
-
return
|
|
3300
|
+
}, on = [], sn = 0, cn = /* @__PURE__ */ new Set(), ln = () => cn.forEach((e) => e());
|
|
3301
|
+
function un(e) {
|
|
3302
|
+
let t = ++sn;
|
|
3303
|
+
return on = [...on, {
|
|
3243
3304
|
...e,
|
|
3244
3305
|
id: t
|
|
3245
|
-
}].slice(-4),
|
|
3306
|
+
}].slice(-4), ln(), t;
|
|
3246
3307
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return
|
|
3308
|
+
function dn(e, t = {}) {
|
|
3309
|
+
return un({
|
|
3249
3310
|
message: e,
|
|
3250
3311
|
kind: "neutral",
|
|
3251
3312
|
...t,
|
|
3252
3313
|
duration: t.duration ?? 4e3
|
|
3253
3314
|
});
|
|
3254
3315
|
}
|
|
3255
|
-
|
|
3316
|
+
dn.error = (e, t = {}) => un({
|
|
3256
3317
|
message: e,
|
|
3257
3318
|
kind: "error",
|
|
3258
3319
|
...t,
|
|
3259
3320
|
duration: t.duration ?? 8e3
|
|
3260
|
-
}),
|
|
3261
|
-
|
|
3321
|
+
}), dn.dismiss = (e) => {
|
|
3322
|
+
on = on.filter((t) => t.id !== e), ln();
|
|
3262
3323
|
};
|
|
3263
|
-
function
|
|
3264
|
-
return p((e) => (
|
|
3324
|
+
function fn() {
|
|
3325
|
+
return p((e) => (cn.add(e), () => cn.delete(e)), () => on, () => on);
|
|
3265
3326
|
}
|
|
3266
|
-
function
|
|
3327
|
+
function pn({ t: e }) {
|
|
3267
3328
|
let t = d(void 0), n = () => {
|
|
3268
|
-
clearTimeout(t.current), t.current = setTimeout(() =>
|
|
3329
|
+
clearTimeout(t.current), t.current = setTimeout(() => dn.dismiss(e.id), e.duration);
|
|
3269
3330
|
}, r = () => clearTimeout(t.current);
|
|
3270
3331
|
return o(() => (n(), r), [e.id]), /* @__PURE__ */ g("div", {
|
|
3271
|
-
className: `${
|
|
3332
|
+
className: `${an.toast} ${e.kind === "error" ? an.error : ""}`,
|
|
3272
3333
|
role: e.kind === "error" ? "alert" : "status",
|
|
3273
3334
|
onMouseEnter: r,
|
|
3274
3335
|
onMouseLeave: n,
|
|
3275
3336
|
children: [
|
|
3276
3337
|
e.kind === "error" ? /* @__PURE__ */ h("span", {
|
|
3277
|
-
className:
|
|
3338
|
+
className: an.icon,
|
|
3278
3339
|
children: /* @__PURE__ */ h(P, {
|
|
3279
3340
|
size: 14,
|
|
3280
3341
|
color: "currentColor"
|
|
3281
3342
|
})
|
|
3282
3343
|
}) : e.icon && /* @__PURE__ */ h("span", {
|
|
3283
|
-
className:
|
|
3344
|
+
className: an.icon,
|
|
3284
3345
|
children: e.icon
|
|
3285
3346
|
}),
|
|
3286
3347
|
/* @__PURE__ */ h("span", {
|
|
3287
|
-
className:
|
|
3348
|
+
className: an.message,
|
|
3288
3349
|
children: e.message
|
|
3289
3350
|
}),
|
|
3290
3351
|
e.action && /* @__PURE__ */ h(W, {
|
|
3291
3352
|
variant: "ghost",
|
|
3292
3353
|
size: "micro",
|
|
3293
3354
|
onClick: () => {
|
|
3294
|
-
|
|
3355
|
+
dn.dismiss(e.id), e.action.onClick();
|
|
3295
3356
|
},
|
|
3296
3357
|
children: e.action.label
|
|
3297
3358
|
}),
|
|
3298
3359
|
/* @__PURE__ */ h("button", {
|
|
3299
3360
|
type: "button",
|
|
3300
|
-
className:
|
|
3361
|
+
className: an.close,
|
|
3301
3362
|
"aria-label": "Dismiss",
|
|
3302
3363
|
title: "Dismiss",
|
|
3303
|
-
onClick: () =>
|
|
3364
|
+
onClick: () => dn.dismiss(e.id),
|
|
3304
3365
|
children: /* @__PURE__ */ h(F, {
|
|
3305
3366
|
size: 7,
|
|
3306
3367
|
color: "currentColor"
|
|
@@ -3309,21 +3370,21 @@ function ln({ t: e }) {
|
|
|
3309
3370
|
]
|
|
3310
3371
|
});
|
|
3311
3372
|
}
|
|
3312
|
-
function
|
|
3313
|
-
let e =
|
|
3373
|
+
function mn() {
|
|
3374
|
+
let e = fn();
|
|
3314
3375
|
return /* @__PURE__ */ h("div", {
|
|
3315
|
-
className:
|
|
3376
|
+
className: an.stack,
|
|
3316
3377
|
role: "region",
|
|
3317
3378
|
"aria-label": "Notices",
|
|
3318
|
-
children: e.map((e) => /* @__PURE__ */ h(
|
|
3379
|
+
children: e.map((e) => /* @__PURE__ */ h(pn, { t: e }, e.id))
|
|
3319
3380
|
});
|
|
3320
3381
|
}
|
|
3321
|
-
var
|
|
3382
|
+
var hn = {
|
|
3322
3383
|
tooltip: "_tooltip_qkom3_1",
|
|
3323
3384
|
arrow: "_arrow_qkom3_18"
|
|
3324
3385
|
};
|
|
3325
3386
|
// src/components/Tooltip/Tooltip.tsx
|
|
3326
|
-
function
|
|
3387
|
+
function gn({ content: e, position: t = "top", children: n, className: r }) {
|
|
3327
3388
|
let i = ae();
|
|
3328
3389
|
return /* @__PURE__ */ h(z.Provider, {
|
|
3329
3390
|
delayDuration: 80,
|
|
@@ -3335,13 +3396,13 @@ function fn({ content: e, position: t = "top", children: n, className: r }) {
|
|
|
3335
3396
|
children: /* @__PURE__ */ g(z.Content, {
|
|
3336
3397
|
side: t,
|
|
3337
3398
|
sideOffset: 7,
|
|
3338
|
-
className: [
|
|
3339
|
-
children: [e, /* @__PURE__ */ h(z.Arrow, { className:
|
|
3399
|
+
className: [hn.tooltip, r].filter(Boolean).join(" "),
|
|
3400
|
+
children: [e, /* @__PURE__ */ h(z.Arrow, { className: hn.arrow })]
|
|
3340
3401
|
})
|
|
3341
3402
|
})] })
|
|
3342
3403
|
});
|
|
3343
3404
|
}
|
|
3344
|
-
var
|
|
3405
|
+
var Y = {
|
|
3345
3406
|
sidebar: "_sidebar_1icfm_3",
|
|
3346
3407
|
header: "_header_1icfm_13",
|
|
3347
3408
|
body: "_body_1icfm_14",
|
|
@@ -3362,8 +3423,8 @@ var X = {
|
|
|
3362
3423
|
rail: "_rail_1icfm_42",
|
|
3363
3424
|
overlay: "_overlay_1icfm_55",
|
|
3364
3425
|
open: "_open_1icfm_69"
|
|
3365
|
-
},
|
|
3366
|
-
function
|
|
3426
|
+
}, _n = "(max-width: 768px)", vn = () => typeof navigator < "u" && (/Mac|iPhone|iPad|iPod/.test(navigator.platform) || /Mac OS X/.test(navigator.userAgent)), yn = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
|
|
3427
|
+
function bn(e) {
|
|
3367
3428
|
if (e) try {
|
|
3368
3429
|
let t = localStorage.getItem(e);
|
|
3369
3430
|
return t === "rail" || t !== "full" && void 0;
|
|
@@ -3371,15 +3432,15 @@ function gn(e) {
|
|
|
3371
3432
|
return;
|
|
3372
3433
|
}
|
|
3373
3434
|
}
|
|
3374
|
-
function
|
|
3375
|
-
let [e, t] = f(() => typeof window < "u" && window.matchMedia(
|
|
3435
|
+
function xn() {
|
|
3436
|
+
let [e, t] = f(() => typeof window < "u" && window.matchMedia(_n).matches);
|
|
3376
3437
|
return o(() => {
|
|
3377
|
-
let e = window.matchMedia(
|
|
3438
|
+
let e = window.matchMedia(_n), n = () => t(e.matches);
|
|
3378
3439
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
3379
3440
|
}, []), e;
|
|
3380
3441
|
}
|
|
3381
|
-
function
|
|
3382
|
-
let [O, k] = f(() =>
|
|
3442
|
+
function Sn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFooter: c, collapsed: l, onCollapsedChange: u, defaultCollapsed: p = !1, collapsible: _ = !0, shortcut: v = "b", storageKey: y, open: b = !1, onOpenChange: S, "aria-label": w = "Sections", className: T = "" }) {
|
|
3443
|
+
let [O, k] = f(() => bn(y)), [A, j] = f(() => /* @__PURE__ */ new Set()), M = xn(), N = d(null), P = _ && (l ?? O ?? p), F = P && !M, I = vn(), L = v ? I ? `⌘${v.toUpperCase()}` : `Ctrl ${v.toUpperCase()}` : "", R = i(() => {
|
|
3383
3444
|
if (!_) return;
|
|
3384
3445
|
let e = !P;
|
|
3385
3446
|
if (l === void 0 && (k(e), y)) {
|
|
@@ -3400,7 +3461,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3400
3461
|
]), z = i(() => S?.(!1), [S]);
|
|
3401
3462
|
o(() => {
|
|
3402
3463
|
let e = (e) => {
|
|
3403
|
-
_ && v && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === v.toLowerCase() && !
|
|
3464
|
+
_ && v && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === v.toLowerCase() && !yn(e.target) ? (e.preventDefault(), R()) : e.key === "Escape" && b && M && (e.preventDefault(), z());
|
|
3404
3465
|
};
|
|
3405
3466
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
3406
3467
|
}, [
|
|
@@ -3411,7 +3472,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3411
3472
|
M,
|
|
3412
3473
|
z
|
|
3413
3474
|
]), o(() => {
|
|
3414
|
-
b && M && N.current && (N.current.querySelector("[aria-current=\"page\"]") ?? N.current.querySelector(`.${
|
|
3475
|
+
b && M && N.current && (N.current.querySelector("[aria-current=\"page\"]") ?? N.current.querySelector(`.${Y.body} a, .${Y.body} button`))?.focus();
|
|
3415
3476
|
}, [b, M]);
|
|
3416
3477
|
let B = (e) => {
|
|
3417
3478
|
r?.(e), z();
|
|
@@ -3420,16 +3481,16 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3420
3481
|
return n.delete(e) || n.add(e), n;
|
|
3421
3482
|
}), V = (t) => /* @__PURE__ */ g(m, { children: [
|
|
3422
3483
|
/* @__PURE__ */ h("span", {
|
|
3423
|
-
className:
|
|
3484
|
+
className: Y.label,
|
|
3424
3485
|
children: t.label
|
|
3425
3486
|
}),
|
|
3426
3487
|
t.badge && /* @__PURE__ */ h("span", {
|
|
3427
|
-
className: `${
|
|
3488
|
+
className: `${Y.badge} ${t.signal ? Y.badgeSignal : ""}`,
|
|
3428
3489
|
title: t.badgeTitle,
|
|
3429
3490
|
children: t.badge
|
|
3430
3491
|
}),
|
|
3431
3492
|
t.trailing && /* @__PURE__ */ h("span", {
|
|
3432
|
-
className:
|
|
3493
|
+
className: Y.trailing,
|
|
3433
3494
|
title: t.trailingTitle,
|
|
3434
3495
|
children: e.cloneElement(t.trailing, {
|
|
3435
3496
|
size: 14,
|
|
@@ -3465,13 +3526,13 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3465
3526
|
children: V(e)
|
|
3466
3527
|
});
|
|
3467
3528
|
}, H = [
|
|
3468
|
-
|
|
3469
|
-
F ?
|
|
3470
|
-
b ?
|
|
3529
|
+
Y.sidebar,
|
|
3530
|
+
F ? Y.rail : "",
|
|
3531
|
+
b ? Y.open : "",
|
|
3471
3532
|
T
|
|
3472
3533
|
].filter(Boolean).join(" ");
|
|
3473
3534
|
return /* @__PURE__ */ g(m, { children: [b && M && /* @__PURE__ */ h("div", {
|
|
3474
|
-
className:
|
|
3535
|
+
className: Y.overlay,
|
|
3475
3536
|
onClick: z
|
|
3476
3537
|
}), /* @__PURE__ */ g("nav", {
|
|
3477
3538
|
ref: N,
|
|
@@ -3479,25 +3540,25 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3479
3540
|
"aria-label": w,
|
|
3480
3541
|
children: [
|
|
3481
3542
|
a && /* @__PURE__ */ h("div", {
|
|
3482
|
-
className:
|
|
3543
|
+
className: Y.header,
|
|
3483
3544
|
children: a
|
|
3484
3545
|
}),
|
|
3485
3546
|
/* @__PURE__ */ h("div", {
|
|
3486
|
-
className:
|
|
3547
|
+
className: Y.body,
|
|
3487
3548
|
children: t.map((e, t) => {
|
|
3488
3549
|
let n = !!(e.collapsible && e.title && A.has(e.title));
|
|
3489
3550
|
return /* @__PURE__ */ g("div", {
|
|
3490
|
-
className:
|
|
3551
|
+
className: Y.group,
|
|
3491
3552
|
children: [e.title && (e.collapsible ? /* @__PURE__ */ g("button", {
|
|
3492
3553
|
type: "button",
|
|
3493
|
-
className: `${
|
|
3554
|
+
className: `${Y.title} ${Y.titleToggle}`,
|
|
3494
3555
|
"aria-expanded": !n,
|
|
3495
3556
|
onClick: () => ee(e.title),
|
|
3496
3557
|
children: [/* @__PURE__ */ h("span", {
|
|
3497
|
-
className:
|
|
3558
|
+
className: Y.titleText,
|
|
3498
3559
|
children: e.title
|
|
3499
3560
|
}), /* @__PURE__ */ h("span", {
|
|
3500
|
-
className:
|
|
3561
|
+
className: Y.titleChevron,
|
|
3501
3562
|
"aria-hidden": "true",
|
|
3502
3563
|
children: h(n ? C : x, {
|
|
3503
3564
|
size: 14,
|
|
@@ -3505,16 +3566,16 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3505
3566
|
})
|
|
3506
3567
|
})]
|
|
3507
3568
|
}) : /* @__PURE__ */ h("div", {
|
|
3508
|
-
className:
|
|
3569
|
+
className: Y.title,
|
|
3509
3570
|
children: /* @__PURE__ */ h("span", {
|
|
3510
|
-
className:
|
|
3571
|
+
className: Y.titleText,
|
|
3511
3572
|
children: e.title
|
|
3512
3573
|
})
|
|
3513
3574
|
})), (!n || F) && /* @__PURE__ */ h("div", {
|
|
3514
|
-
className:
|
|
3575
|
+
className: Y.items,
|
|
3515
3576
|
children: e.items.map((e) => /* @__PURE__ */ h("span", {
|
|
3516
|
-
className:
|
|
3517
|
-
children: F ? /* @__PURE__ */ h(
|
|
3577
|
+
className: Y.item,
|
|
3578
|
+
children: F ? /* @__PURE__ */ h(gn, {
|
|
3518
3579
|
content: e.badge ? `${e.label} (${e.badge})` : e.label,
|
|
3519
3580
|
position: "right",
|
|
3520
3581
|
children: te(e)
|
|
@@ -3525,19 +3586,19 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3525
3586
|
})
|
|
3526
3587
|
}),
|
|
3527
3588
|
(s || c && F || _ && !M) && /* @__PURE__ */ g("div", {
|
|
3528
|
-
className:
|
|
3589
|
+
className: Y.footer,
|
|
3529
3590
|
children: [
|
|
3530
3591
|
c && F && /* @__PURE__ */ h("div", {
|
|
3531
|
-
className:
|
|
3592
|
+
className: Y.railFooter,
|
|
3532
3593
|
children: c
|
|
3533
3594
|
}),
|
|
3534
3595
|
s && /* @__PURE__ */ h("div", {
|
|
3535
|
-
className:
|
|
3596
|
+
className: Y.footerContent,
|
|
3536
3597
|
children: s
|
|
3537
3598
|
}),
|
|
3538
3599
|
_ && !M && /* @__PURE__ */ h("span", {
|
|
3539
|
-
className:
|
|
3540
|
-
children: F ? /* @__PURE__ */ h(
|
|
3600
|
+
className: Y.item,
|
|
3601
|
+
children: F ? /* @__PURE__ */ h(gn, {
|
|
3541
3602
|
content: `Expand${L ? ` (${L})` : ""}`,
|
|
3542
3603
|
position: "right",
|
|
3543
3604
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -3556,7 +3617,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3556
3617
|
title: L ? `Collapse (${L})` : "Collapse",
|
|
3557
3618
|
onClick: R,
|
|
3558
3619
|
children: /* @__PURE__ */ h("span", {
|
|
3559
|
-
className:
|
|
3620
|
+
className: Y.label,
|
|
3560
3621
|
children: "Collapse"
|
|
3561
3622
|
})
|
|
3562
3623
|
})
|
|
@@ -3566,7 +3627,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
|
|
|
3566
3627
|
]
|
|
3567
3628
|
})] });
|
|
3568
3629
|
}
|
|
3569
|
-
var
|
|
3630
|
+
var X = {
|
|
3570
3631
|
wrapper: "_wrapper_1ogxf_2",
|
|
3571
3632
|
label: "_label_1ogxf_3",
|
|
3572
3633
|
field: "_field_1ogxf_4",
|
|
@@ -3591,14 +3652,14 @@ var yn = {
|
|
|
3591
3652
|
empty: "_empty_1ogxf_56"
|
|
3592
3653
|
};
|
|
3593
3654
|
// src/components/Combobox/Combobox.tsx
|
|
3594
|
-
function
|
|
3655
|
+
function Cn(e, t) {
|
|
3595
3656
|
let n = t.toLowerCase(), r = e.filter((e) => e.label.toLowerCase().startsWith(n)), i = e.filter((e) => !e.label.toLowerCase().startsWith(n) && e.label.toLowerCase().includes(n));
|
|
3596
3657
|
return [...r, ...i];
|
|
3597
3658
|
}
|
|
3598
|
-
function
|
|
3659
|
+
function wn({ value: t, onValueChange: n, options: r, search: i, label: a, placeholder: c = "Choose…", searchPlaceholder: l = "Search", noMatchText: p = "No matches.", size: m = "default", disabled: _ = !1, "aria-label": v, id: y, className: S = "" }) {
|
|
3599
3660
|
let C = s(), w = y ?? C, T = `${w}-list`, [E, D] = f(!1), [O, k] = f(""), [A, j] = f(0), N = d(null), P = d(null), F = d(null), I = r.find((e) => e.value === t), L = m === "large" ? 21 : 14, R = u(() => {
|
|
3600
3661
|
let e = O.trim();
|
|
3601
|
-
return e ? i ? i(e) :
|
|
3662
|
+
return e ? i ? i(e) : Cn(r, e) : r;
|
|
3602
3663
|
}, [
|
|
3603
3664
|
r,
|
|
3604
3665
|
O,
|
|
@@ -3632,36 +3693,36 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3632
3693
|
color: "currentColor"
|
|
3633
3694
|
}) : t;
|
|
3634
3695
|
return /* @__PURE__ */ g("div", {
|
|
3635
|
-
className: `${
|
|
3696
|
+
className: `${X.wrapper} ${S}`,
|
|
3636
3697
|
children: [a && /* @__PURE__ */ h("label", {
|
|
3637
3698
|
id: `${w}-label`,
|
|
3638
3699
|
htmlFor: w,
|
|
3639
|
-
className:
|
|
3700
|
+
className: X.label,
|
|
3640
3701
|
children: a
|
|
3641
3702
|
}), /* @__PURE__ */ h(He, {
|
|
3642
3703
|
open: E,
|
|
3643
3704
|
onOpenChange: z,
|
|
3644
3705
|
align: "start",
|
|
3645
|
-
className:
|
|
3706
|
+
className: X.panel,
|
|
3646
3707
|
"aria-label": v ?? a,
|
|
3647
3708
|
trigger: /* @__PURE__ */ g("button", {
|
|
3648
3709
|
ref: F,
|
|
3649
3710
|
type: "button",
|
|
3650
3711
|
id: w,
|
|
3651
|
-
className: `${
|
|
3712
|
+
className: `${X.field} ${X[m]}`,
|
|
3652
3713
|
disabled: _,
|
|
3653
3714
|
"aria-haspopup": "listbox",
|
|
3654
3715
|
"aria-labelledby": a ? `${w}-label ${w}-value` : void 0,
|
|
3655
3716
|
"aria-label": a ? void 0 : v,
|
|
3656
3717
|
children: [/* @__PURE__ */ g("span", {
|
|
3657
3718
|
id: `${w}-value`,
|
|
3658
|
-
className: `${
|
|
3719
|
+
className: `${X.value} ${I ? "" : X.placeholder}`,
|
|
3659
3720
|
children: [I?.icon && V(I.icon, L), /* @__PURE__ */ h("span", {
|
|
3660
|
-
className:
|
|
3721
|
+
className: X.text,
|
|
3661
3722
|
children: I?.label ?? c
|
|
3662
3723
|
})]
|
|
3663
3724
|
}), /* @__PURE__ */ h("span", {
|
|
3664
|
-
className:
|
|
3725
|
+
className: X.chevron,
|
|
3665
3726
|
"aria-hidden": "true",
|
|
3666
3727
|
children: /* @__PURE__ */ h(x, {
|
|
3667
3728
|
size: L,
|
|
@@ -3670,11 +3731,11 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3670
3731
|
})]
|
|
3671
3732
|
}),
|
|
3672
3733
|
children: /* @__PURE__ */ g("div", {
|
|
3673
|
-
className:
|
|
3734
|
+
className: X.body,
|
|
3674
3735
|
children: [/* @__PURE__ */ g("div", {
|
|
3675
|
-
className:
|
|
3736
|
+
className: X.search,
|
|
3676
3737
|
children: [/* @__PURE__ */ h("span", {
|
|
3677
|
-
className:
|
|
3738
|
+
className: X.searchIcon,
|
|
3678
3739
|
"aria-hidden": "true",
|
|
3679
3740
|
children: /* @__PURE__ */ h(M, {
|
|
3680
3741
|
size: 14,
|
|
@@ -3682,7 +3743,7 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3682
3743
|
})
|
|
3683
3744
|
}), /* @__PURE__ */ h("input", {
|
|
3684
3745
|
ref: N,
|
|
3685
|
-
className:
|
|
3746
|
+
className: X.input,
|
|
3686
3747
|
type: "text",
|
|
3687
3748
|
role: "combobox",
|
|
3688
3749
|
"aria-expanded": "true",
|
|
@@ -3698,12 +3759,12 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3698
3759
|
})]
|
|
3699
3760
|
}), /* @__PURE__ */ g("div", {
|
|
3700
3761
|
ref: P,
|
|
3701
|
-
className:
|
|
3762
|
+
className: X.list,
|
|
3702
3763
|
id: T,
|
|
3703
3764
|
role: "listbox",
|
|
3704
3765
|
"aria-label": v ?? a,
|
|
3705
3766
|
children: [R.length === 0 && /* @__PURE__ */ h("p", {
|
|
3706
|
-
className:
|
|
3767
|
+
className: X.empty,
|
|
3707
3768
|
children: p
|
|
3708
3769
|
}), R.map((e, n) => /* @__PURE__ */ g("button", {
|
|
3709
3770
|
type: "button",
|
|
@@ -3711,20 +3772,20 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3711
3772
|
"data-index": n,
|
|
3712
3773
|
role: "option",
|
|
3713
3774
|
"aria-selected": e.value === t,
|
|
3714
|
-
className: `${
|
|
3775
|
+
className: `${X.item} ${n === A ? X.active : ""}`,
|
|
3715
3776
|
onPointerMove: () => n !== A && j(n),
|
|
3716
3777
|
onClick: () => B(e),
|
|
3717
3778
|
children: [
|
|
3718
3779
|
e.icon && /* @__PURE__ */ h("span", {
|
|
3719
|
-
className:
|
|
3780
|
+
className: X.itemIcon,
|
|
3720
3781
|
children: V(e.icon, 14)
|
|
3721
3782
|
}),
|
|
3722
3783
|
/* @__PURE__ */ h("span", {
|
|
3723
|
-
className:
|
|
3784
|
+
className: X.itemLabel,
|
|
3724
3785
|
children: e.label
|
|
3725
3786
|
}),
|
|
3726
3787
|
e.value === t && /* @__PURE__ */ h("span", {
|
|
3727
|
-
className:
|
|
3788
|
+
className: X.check,
|
|
3728
3789
|
children: /* @__PURE__ */ h(b, {
|
|
3729
3790
|
size: 14,
|
|
3730
3791
|
color: "currentColor"
|
|
@@ -3737,7 +3798,7 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
|
|
|
3737
3798
|
})]
|
|
3738
3799
|
});
|
|
3739
3800
|
}
|
|
3740
|
-
var
|
|
3801
|
+
var Tn = {
|
|
3741
3802
|
empty: "_empty_jzgh0_1",
|
|
3742
3803
|
default: "_default_jzgh0_2",
|
|
3743
3804
|
compact: "_compact_jzgh0_3",
|
|
@@ -3747,13 +3808,13 @@ var Sn = {
|
|
|
3747
3808
|
actions: "_actions_jzgh0_10"
|
|
3748
3809
|
};
|
|
3749
3810
|
// src/components/EmptyState/EmptyState.tsx
|
|
3750
|
-
function
|
|
3811
|
+
function En({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
|
|
3751
3812
|
return /* @__PURE__ */ g("div", {
|
|
3752
|
-
className: `${
|
|
3813
|
+
className: `${Tn.empty} ${Tn[a]} ${o}`,
|
|
3753
3814
|
role: "status",
|
|
3754
3815
|
children: [
|
|
3755
3816
|
t && /* @__PURE__ */ h("span", {
|
|
3756
|
-
className:
|
|
3817
|
+
className: Tn.icon,
|
|
3757
3818
|
"aria-hidden": "true",
|
|
3758
3819
|
children: e.cloneElement(t, {
|
|
3759
3820
|
size: a === "compact" ? 35 : 70,
|
|
@@ -3761,21 +3822,21 @@ function Cn({ icon: t, title: n, children: r, actions: i, size: a = "default", c
|
|
|
3761
3822
|
})
|
|
3762
3823
|
}),
|
|
3763
3824
|
/* @__PURE__ */ h("div", {
|
|
3764
|
-
className:
|
|
3825
|
+
className: Tn.title,
|
|
3765
3826
|
children: n
|
|
3766
3827
|
}),
|
|
3767
3828
|
r && /* @__PURE__ */ h("div", {
|
|
3768
|
-
className:
|
|
3829
|
+
className: Tn.detail,
|
|
3769
3830
|
children: r
|
|
3770
3831
|
}),
|
|
3771
3832
|
i && /* @__PURE__ */ h("div", {
|
|
3772
|
-
className:
|
|
3833
|
+
className: Tn.actions,
|
|
3773
3834
|
children: i
|
|
3774
3835
|
})
|
|
3775
3836
|
]
|
|
3776
3837
|
});
|
|
3777
3838
|
}
|
|
3778
|
-
var
|
|
3839
|
+
var Dn = {
|
|
3779
3840
|
overlay: "_overlay_9rhqp_1",
|
|
3780
3841
|
sheet: "_sheet_9rhqp_3",
|
|
3781
3842
|
wide: "_wide_9rhqp_14",
|
|
@@ -3790,7 +3851,7 @@ var wn = {
|
|
|
3790
3851
|
srOnly: "_srOnly_9rhqp_30"
|
|
3791
3852
|
};
|
|
3792
3853
|
// src/components/Sheet/Sheet.tsx
|
|
3793
|
-
function
|
|
3854
|
+
function On({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
|
|
3794
3855
|
let u = ae(), f = d(null);
|
|
3795
3856
|
return /* @__PURE__ */ g(B.Root, {
|
|
3796
3857
|
open: e,
|
|
@@ -3800,8 +3861,8 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
|
|
|
3800
3861
|
children: n
|
|
3801
3862
|
}), /* @__PURE__ */ g(B.Portal, {
|
|
3802
3863
|
container: u,
|
|
3803
|
-
children: [/* @__PURE__ */ h(B.Overlay, { className:
|
|
3804
|
-
className: `${
|
|
3864
|
+
children: [/* @__PURE__ */ h(B.Overlay, { className: Dn.overlay }), /* @__PURE__ */ g(B.Content, {
|
|
3865
|
+
className: `${Dn.sheet} ${Dn[s]} ${c === "wide" ? Dn.wide : ""} ${l}`,
|
|
3805
3866
|
...i ? {} : { "aria-describedby": void 0 },
|
|
3806
3867
|
onOpenAutoFocus: () => {
|
|
3807
3868
|
f.current = document.activeElement;
|
|
@@ -3811,14 +3872,14 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
|
|
|
3811
3872
|
},
|
|
3812
3873
|
children: [
|
|
3813
3874
|
/* @__PURE__ */ g("div", {
|
|
3814
|
-
className:
|
|
3875
|
+
className: Dn.header,
|
|
3815
3876
|
children: [/* @__PURE__ */ g("div", {
|
|
3816
|
-
className:
|
|
3877
|
+
className: Dn.heading,
|
|
3817
3878
|
children: [/* @__PURE__ */ h(B.Title, {
|
|
3818
|
-
className: r ?
|
|
3879
|
+
className: r ? Dn.title : Dn.srOnly,
|
|
3819
3880
|
children: r || "Panel"
|
|
3820
3881
|
}), i && /* @__PURE__ */ h(B.Description, {
|
|
3821
|
-
className:
|
|
3882
|
+
className: Dn.description,
|
|
3822
3883
|
children: i
|
|
3823
3884
|
})]
|
|
3824
3885
|
}), /* @__PURE__ */ h(B.Close, {
|
|
@@ -3832,11 +3893,11 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
|
|
|
3832
3893
|
})]
|
|
3833
3894
|
}),
|
|
3834
3895
|
/* @__PURE__ */ h("div", {
|
|
3835
|
-
className:
|
|
3896
|
+
className: Dn.body,
|
|
3836
3897
|
children: a
|
|
3837
3898
|
}),
|
|
3838
3899
|
o && /* @__PURE__ */ h("div", {
|
|
3839
|
-
className:
|
|
3900
|
+
className: Dn.footer,
|
|
3840
3901
|
children: o
|
|
3841
3902
|
})
|
|
3842
3903
|
]
|
|
@@ -3844,7 +3905,7 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
|
|
|
3844
3905
|
})]
|
|
3845
3906
|
});
|
|
3846
3907
|
}
|
|
3847
|
-
var
|
|
3908
|
+
var kn = {
|
|
3848
3909
|
root: "_root_1x9y1_1",
|
|
3849
3910
|
vertical: "_vertical_1x9y1_2",
|
|
3850
3911
|
pane: "_pane_1x9y1_3",
|
|
@@ -3853,8 +3914,8 @@ var En = {
|
|
|
3853
3914
|
handle: "_handle_1x9y1_8",
|
|
3854
3915
|
horizontal: "_horizontal_1x9y1_9",
|
|
3855
3916
|
grip: "_grip_1x9y1_16"
|
|
3856
|
-
},
|
|
3857
|
-
function
|
|
3917
|
+
}, An = 2, jn = 10;
|
|
3918
|
+
function Mn(e) {
|
|
3858
3919
|
if (e) try {
|
|
3859
3920
|
let t = parseFloat(localStorage.getItem(e) ?? "");
|
|
3860
3921
|
return Number.isNaN(t) ? void 0 : t;
|
|
@@ -3862,8 +3923,8 @@ function kn(e) {
|
|
|
3862
3923
|
return;
|
|
3863
3924
|
}
|
|
3864
3925
|
}
|
|
3865
|
-
function
|
|
3866
|
-
let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(
|
|
3926
|
+
function Nn({ first: e, second: t, direction: n = "horizontal", defaultSize: r = 50, minSize: i = 10, maxSize: a = 90, storageKey: s, onSizeChange: c, withHandle: l = !1, "aria-label": u = "Resize", className: p = "" }) {
|
|
3927
|
+
let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(Mn(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
|
|
3867
3928
|
S.current = _;
|
|
3868
3929
|
let C = n === "horizontal", w = (e) => {
|
|
3869
3930
|
if (s) try {
|
|
@@ -3881,16 +3942,16 @@ function An({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
|
|
|
3881
3942
|
};
|
|
3882
3943
|
}, [y]), /* @__PURE__ */ g("div", {
|
|
3883
3944
|
ref: x,
|
|
3884
|
-
className: `${
|
|
3945
|
+
className: `${kn.root} ${C ? kn.horizontal : kn.vertical} ${p}`,
|
|
3885
3946
|
"data-dragging": y || void 0,
|
|
3886
3947
|
style: { "--resizable-size": `${_}%` },
|
|
3887
3948
|
children: [
|
|
3888
3949
|
/* @__PURE__ */ h("div", {
|
|
3889
|
-
className: `${
|
|
3950
|
+
className: `${kn.pane} ${kn.first}`,
|
|
3890
3951
|
children: e
|
|
3891
3952
|
}),
|
|
3892
3953
|
/* @__PURE__ */ h("div", {
|
|
3893
|
-
className:
|
|
3954
|
+
className: kn.handle,
|
|
3894
3955
|
role: "separator",
|
|
3895
3956
|
tabIndex: 0,
|
|
3896
3957
|
"aria-label": u,
|
|
@@ -3902,37 +3963,37 @@ function An({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
|
|
|
3902
3963
|
e.button === 0 && (e.preventDefault(), b(!0));
|
|
3903
3964
|
},
|
|
3904
3965
|
onKeyDown: (e) => {
|
|
3905
|
-
let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ -
|
|
3966
|
+
let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - An : e.key === n ? _ + An : e.key === "PageUp" ? _ - jn : e.key === "PageDown" ? _ + jn : e.key === "Home" ? i : e.key === "End" ? a : null;
|
|
3906
3967
|
if (r === null) return;
|
|
3907
3968
|
e.preventDefault();
|
|
3908
3969
|
let o = m(r);
|
|
3909
3970
|
v(o), w(o);
|
|
3910
3971
|
},
|
|
3911
3972
|
children: l && /* @__PURE__ */ h("span", {
|
|
3912
|
-
className:
|
|
3973
|
+
className: kn.grip,
|
|
3913
3974
|
"aria-hidden": "true"
|
|
3914
3975
|
})
|
|
3915
3976
|
}),
|
|
3916
3977
|
/* @__PURE__ */ h("div", {
|
|
3917
|
-
className: `${
|
|
3978
|
+
className: `${kn.pane} ${kn.second}`,
|
|
3918
3979
|
children: t
|
|
3919
3980
|
})
|
|
3920
3981
|
]
|
|
3921
3982
|
});
|
|
3922
3983
|
}
|
|
3923
3984
|
// src/components/TreeCanvas/viewport.ts
|
|
3924
|
-
var
|
|
3925
|
-
function
|
|
3985
|
+
var Pn = .2, Fn = 2, In = 24, Ln = 1.2, Rn = 48, zn = 8;
|
|
3986
|
+
function Bn(e, t, n, r) {
|
|
3926
3987
|
let i = {
|
|
3927
3988
|
x: 0,
|
|
3928
3989
|
y: 0,
|
|
3929
3990
|
z: 1,
|
|
3930
3991
|
pan: r
|
|
3931
|
-
}, a, o = (e) => Math.min(
|
|
3992
|
+
}, a, o = (e) => Math.min(Fn, Math.max(Pn, e)), s = () => {
|
|
3932
3993
|
if (t.style.transform = `translate(${i.x}px, ${i.y}px) scale(${i.z})`, n) {
|
|
3933
3994
|
n.style.setProperty("--tree-x", `${i.x}px`), n.style.setProperty("--tree-y", `${i.y}px`), a ??= parseFloat(getComputedStyle(n).getPropertyValue("--tree-tile")) || 12;
|
|
3934
3995
|
let e = i.z;
|
|
3935
|
-
for (; a * e <
|
|
3996
|
+
for (; a * e < zn;) e *= 2;
|
|
3936
3997
|
n.style.setProperty("--tree-zoom", `${e}`);
|
|
3937
3998
|
}
|
|
3938
3999
|
let r = e.querySelector("[data-tree-zoom-label]");
|
|
@@ -3956,7 +4017,7 @@ function Ln(e, t, n, r) {
|
|
|
3956
4017
|
e = o(e), i.x = t - (t - i.x) * (e / i.z), i.y = n - (n - i.y) * (e / i.z), i.z = e, s();
|
|
3957
4018
|
}, f = (t) => {
|
|
3958
4019
|
let n = e.getBoundingClientRect(), r = n.width / 2, a = n.height / 2;
|
|
3959
|
-
t === "in" ? d(i.z *
|
|
4020
|
+
t === "in" ? d(i.z * Ln, r, a) : t === "out" ? d(i.z / Ln, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
|
|
3960
4021
|
}, p = () => {
|
|
3961
4022
|
if (document.fullscreenElement) {
|
|
3962
4023
|
document.exitFullscreen?.();
|
|
@@ -4005,10 +4066,10 @@ function Ln(e, t, n, r) {
|
|
|
4005
4066
|
}, x = (t) => {
|
|
4006
4067
|
if (!i.pan || t.altKey || t.ctrlKey || t.metaKey || t.target.closest("input, select, textarea")) return;
|
|
4007
4068
|
let n = e.getBoundingClientRect();
|
|
4008
|
-
if (t.key === "+" || t.key === "=") d(i.z *
|
|
4009
|
-
else if (t.key === "-" || t.key === "_") d(i.z /
|
|
4069
|
+
if (t.key === "+" || t.key === "=") d(i.z * Ln, n.width / 2, n.height / 2);
|
|
4070
|
+
else if (t.key === "-" || t.key === "_") d(i.z / Ln, n.width / 2, n.height / 2);
|
|
4010
4071
|
else if (t.key === "0") f("fit");
|
|
4011
|
-
else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x +=
|
|
4072
|
+
else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Rn), t.key === "ArrowRight" && (i.x -= Rn), t.key === "ArrowUp" && (i.y += Rn), t.key === "ArrowDown" && (i.y -= Rn), s();
|
|
4012
4073
|
else return;
|
|
4013
4074
|
t.preventDefault();
|
|
4014
4075
|
}, S = () => {
|
|
@@ -4034,7 +4095,7 @@ function Ln(e, t, n, r) {
|
|
|
4034
4095
|
command: f,
|
|
4035
4096
|
bringIntoView(t) {
|
|
4036
4097
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
4037
|
-
r.left < n.left +
|
|
4098
|
+
r.left < n.left + In ? i.x += n.left + In - r.left : r.right > n.right - In && (i.x -= r.right - (n.right - In)), r.top < n.top + In ? i.y += n.top + In - r.top : r.bottom > n.bottom - In && (i.y -= r.bottom - (n.bottom - In)), s();
|
|
4038
4099
|
},
|
|
4039
4100
|
destroy() {
|
|
4040
4101
|
e.removeEventListener("pointerdown", g), e.removeEventListener("pointermove", _), e.removeEventListener("pointerup", v), e.removeEventListener("pointercancel", v), e.removeEventListener("click", y, !0), e.removeEventListener("wheel", b), e.removeEventListener("keydown", x), e.removeEventListener("scroll", S);
|
|
@@ -4074,12 +4135,12 @@ var Z = {
|
|
|
4074
4135
|
controls: "_controls_1249l_288",
|
|
4075
4136
|
zoomLabel: "_zoomLabel_1249l_309",
|
|
4076
4137
|
pannable: "_pannable_1249l_316"
|
|
4077
|
-
},
|
|
4078
|
-
function
|
|
4079
|
-
let n = e.label.length *
|
|
4080
|
-
return
|
|
4138
|
+
}, Vn = 44, Hn = 5, Un = 56, Wn = 24, Gn = 7, Kn = 10;
|
|
4139
|
+
function qn(e, t) {
|
|
4140
|
+
let n = e.label.length * Gn, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + Kn + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
|
|
4141
|
+
return Wn + n + r + i + a;
|
|
4081
4142
|
}
|
|
4082
|
-
function
|
|
4143
|
+
function Jn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i = "tree", maxChildren: a = 50, format: s, visible: c, zoom: p, openDepth: m, pan: _ = !0, fullscreen: v = !0, pattern: y, "aria-label": b, className: x = "" }) {
|
|
4083
4144
|
let [S, C] = f(() => new Set(r ?? e.map((e) => e.id))), [w, T] = f(() => /* @__PURE__ */ new Set());
|
|
4084
4145
|
o(() => {
|
|
4085
4146
|
if (m == null) return;
|
|
@@ -4092,7 +4153,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4092
4153
|
l(() => {
|
|
4093
4154
|
let e = N.current, t = P.current;
|
|
4094
4155
|
if (!e || !t) return;
|
|
4095
|
-
let n =
|
|
4156
|
+
let n = Bn(e, t, F.current, _);
|
|
4096
4157
|
return I.current = n, () => {
|
|
4097
4158
|
n.destroy(), I.current = null;
|
|
4098
4159
|
};
|
|
@@ -4143,7 +4204,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4143
4204
|
depth: o,
|
|
4144
4205
|
x: 0,
|
|
4145
4206
|
y: 0,
|
|
4146
|
-
width: E.get(i.id) ??
|
|
4207
|
+
width: E.get(i.id) ?? qn(i, s),
|
|
4147
4208
|
parent: c,
|
|
4148
4209
|
open: l,
|
|
4149
4210
|
more: d
|
|
@@ -4151,19 +4212,19 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4151
4212
|
if (t[o] = Math.max(t[o] ?? 0, f.width), e.push(f), u.length) {
|
|
4152
4213
|
let e = u.map((e) => r(e, o + 1, f));
|
|
4153
4214
|
f.y = (e[0].y + e[e.length - 1].y) / 2, d > 0 && (n += 1);
|
|
4154
|
-
} else f.y = n *
|
|
4215
|
+
} else f.y = n * Vn + Vn / 2, n += 1;
|
|
4155
4216
|
return f;
|
|
4156
4217
|
};
|
|
4157
4218
|
ee.forEach((e) => r(e, 0));
|
|
4158
4219
|
let i = [], o = 0;
|
|
4159
4220
|
return t.forEach((e, t) => {
|
|
4160
|
-
i[t] = o, o += e +
|
|
4221
|
+
i[t] = o, o += e + Un;
|
|
4161
4222
|
}), e.forEach((e) => {
|
|
4162
4223
|
e.x = i[e.depth];
|
|
4163
4224
|
}), {
|
|
4164
4225
|
placed: e,
|
|
4165
4226
|
columns: i,
|
|
4166
|
-
height: Math.max(n, 1) *
|
|
4227
|
+
height: Math.max(n, 1) * Vn
|
|
4167
4228
|
};
|
|
4168
4229
|
}, [
|
|
4169
4230
|
ee,
|
|
@@ -4268,7 +4329,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4268
4329
|
style: {
|
|
4269
4330
|
"--tree-pattern": `var(--pattern-${y}-light)`,
|
|
4270
4331
|
"--tree-pattern-dark": `var(--pattern-${y}-dark)`,
|
|
4271
|
-
"--tree-tile": `${
|
|
4332
|
+
"--tree-tile": `${Yn(y)}px`
|
|
4272
4333
|
}
|
|
4273
4334
|
}),
|
|
4274
4335
|
H.length === 0 && /* @__PURE__ */ h("div", {
|
|
@@ -4348,8 +4409,8 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4348
4409
|
type: "button",
|
|
4349
4410
|
className: Z.more,
|
|
4350
4411
|
style: {
|
|
4351
|
-
left: (U[e.depth + 1] ?? e.x + e.width +
|
|
4352
|
-
top: (
|
|
4412
|
+
left: (U[e.depth + 1] ?? e.x + e.width + Un) - e.x,
|
|
4413
|
+
top: (Xn(H, e) + 1) * Vn - (e.y - 15)
|
|
4353
4414
|
},
|
|
4354
4415
|
onClick: () => T((e) => new Set(e).add(n.id)),
|
|
4355
4416
|
children: [
|
|
@@ -4369,16 +4430,16 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4369
4430
|
let n = B.has(e.node.id);
|
|
4370
4431
|
return /* @__PURE__ */ g("g", { children: [e.parent && /* @__PURE__ */ h("rect", {
|
|
4371
4432
|
className: `${Z.handle} ${n ? Z.handleLit : ""}`,
|
|
4372
|
-
x: e.x -
|
|
4373
|
-
y: e.y -
|
|
4374
|
-
width:
|
|
4375
|
-
height:
|
|
4433
|
+
x: e.x - Hn / 2,
|
|
4434
|
+
y: e.y - Hn / 2,
|
|
4435
|
+
width: Hn,
|
|
4436
|
+
height: Hn
|
|
4376
4437
|
}), e.open && /* @__PURE__ */ h("rect", {
|
|
4377
4438
|
className: `${Z.handle} ${n && e.node.id !== t ? Z.handleLit : ""}`,
|
|
4378
|
-
x: e.x + e.width -
|
|
4379
|
-
y: e.y -
|
|
4380
|
-
width:
|
|
4381
|
-
height:
|
|
4439
|
+
x: e.x + e.width - Hn / 2,
|
|
4440
|
+
y: e.y - Hn / 2,
|
|
4441
|
+
width: Hn,
|
|
4442
|
+
height: Hn
|
|
4382
4443
|
})] }, e.node.id);
|
|
4383
4444
|
})
|
|
4384
4445
|
})
|
|
@@ -4391,7 +4452,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4391
4452
|
"aria-label": "Zoom",
|
|
4392
4453
|
"data-tree-controls": "",
|
|
4393
4454
|
children: [
|
|
4394
|
-
/* @__PURE__ */ h(
|
|
4455
|
+
/* @__PURE__ */ h(gn, {
|
|
4395
4456
|
content: "Zoom in (+)",
|
|
4396
4457
|
position: "right",
|
|
4397
4458
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -4402,7 +4463,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4402
4463
|
"data-tree-action": "in"
|
|
4403
4464
|
})
|
|
4404
4465
|
}),
|
|
4405
|
-
/* @__PURE__ */ h(
|
|
4466
|
+
/* @__PURE__ */ h(gn, {
|
|
4406
4467
|
content: "Zoom out (-)",
|
|
4407
4468
|
position: "right",
|
|
4408
4469
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -4413,7 +4474,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4413
4474
|
"data-tree-action": "out"
|
|
4414
4475
|
})
|
|
4415
4476
|
}),
|
|
4416
|
-
/* @__PURE__ */ h(
|
|
4477
|
+
/* @__PURE__ */ h(gn, {
|
|
4417
4478
|
content: "Fit in view (0)",
|
|
4418
4479
|
position: "right",
|
|
4419
4480
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -4424,7 +4485,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4424
4485
|
"data-tree-action": "fit"
|
|
4425
4486
|
})
|
|
4426
4487
|
}),
|
|
4427
|
-
v && /* @__PURE__ */ h(
|
|
4488
|
+
v && /* @__PURE__ */ h(gn, {
|
|
4428
4489
|
content: "Full screen (Esc to leave)",
|
|
4429
4490
|
position: "right",
|
|
4430
4491
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -4435,7 +4496,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4435
4496
|
"data-tree-action": "fullscreen"
|
|
4436
4497
|
})
|
|
4437
4498
|
}),
|
|
4438
|
-
/* @__PURE__ */ h(
|
|
4499
|
+
/* @__PURE__ */ h(gn, {
|
|
4439
4500
|
content: "Zoom to 100%",
|
|
4440
4501
|
position: "right",
|
|
4441
4502
|
children: /* @__PURE__ */ h(W, {
|
|
@@ -4454,28 +4515,28 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
|
|
|
4454
4515
|
]
|
|
4455
4516
|
});
|
|
4456
4517
|
}
|
|
4457
|
-
function
|
|
4518
|
+
function Yn(e) {
|
|
4458
4519
|
let t = Number(e.slice(e.lastIndexOf("-") + 1));
|
|
4459
4520
|
return Number.isFinite(t) ? t : 2;
|
|
4460
4521
|
}
|
|
4461
|
-
function
|
|
4522
|
+
function Xn(e, t) {
|
|
4462
4523
|
let n = e.filter((e) => e.parent === t), r = n[n.length - 1];
|
|
4463
|
-
return Math.round(r ? (r.y -
|
|
4524
|
+
return Math.round(r ? (r.y - Vn / 2) / Vn : (t.y - Vn / 2) / Vn);
|
|
4464
4525
|
}
|
|
4465
|
-
var
|
|
4526
|
+
var Zn = {
|
|
4466
4527
|
chip: "_chip_otthl_1",
|
|
4467
4528
|
large: "_large_otthl_14",
|
|
4468
4529
|
toggle: "_toggle_otthl_20",
|
|
4469
4530
|
selected: "_selected_otthl_38"
|
|
4470
4531
|
};
|
|
4471
4532
|
// src/components/Chip/Chip.tsx
|
|
4472
|
-
function
|
|
4533
|
+
function Qn({ children: t, color: n, textColor: r, className: i, title: a, icon: o, size: s = "default", onClick: c, selected: l = !1, disabled: u = !1 }) {
|
|
4473
4534
|
let d = {};
|
|
4474
4535
|
n && (d.backgroundColor = n), r && (d.color = r);
|
|
4475
4536
|
let f = [
|
|
4476
|
-
|
|
4537
|
+
Zn.chip,
|
|
4477
4538
|
"indx-chip",
|
|
4478
|
-
s === "large" &&
|
|
4539
|
+
s === "large" && Zn.large,
|
|
4479
4540
|
i
|
|
4480
4541
|
], p = /* @__PURE__ */ g(m, { children: [o && e.cloneElement(o, {
|
|
4481
4542
|
size: 14,
|
|
@@ -4485,8 +4546,8 @@ function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon:
|
|
|
4485
4546
|
type: "button",
|
|
4486
4547
|
className: [
|
|
4487
4548
|
...f,
|
|
4488
|
-
|
|
4489
|
-
l &&
|
|
4549
|
+
Zn.toggle,
|
|
4550
|
+
l && Zn.selected
|
|
4490
4551
|
].filter(Boolean).join(" "),
|
|
4491
4552
|
style: d,
|
|
4492
4553
|
title: a,
|
|
@@ -4501,7 +4562,7 @@ function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon:
|
|
|
4501
4562
|
children: p
|
|
4502
4563
|
});
|
|
4503
4564
|
}
|
|
4504
|
-
var
|
|
4565
|
+
var $n = {
|
|
4505
4566
|
root: "_root_1ptcs_3",
|
|
4506
4567
|
icon: "_icon_1ptcs_16",
|
|
4507
4568
|
body: "_body_1ptcs_17",
|
|
@@ -4512,54 +4573,54 @@ var Xn = {
|
|
|
4512
4573
|
success: "_success_1ptcs_24",
|
|
4513
4574
|
warning: "_warning_1ptcs_25",
|
|
4514
4575
|
destructive: "_destructive_1ptcs_26"
|
|
4515
|
-
},
|
|
4576
|
+
}, er = {
|
|
4516
4577
|
success: /* @__PURE__ */ h(b, {}),
|
|
4517
4578
|
warning: /* @__PURE__ */ h(P, {}),
|
|
4518
4579
|
destructive: /* @__PURE__ */ h(P, {})
|
|
4519
4580
|
};
|
|
4520
|
-
function
|
|
4581
|
+
function tr(t) {
|
|
4521
4582
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
4522
4583
|
size: 14,
|
|
4523
4584
|
color: "currentColor"
|
|
4524
4585
|
}) : t;
|
|
4525
4586
|
}
|
|
4526
|
-
var
|
|
4527
|
-
let a = t === void 0 ?
|
|
4587
|
+
var nr = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
|
|
4588
|
+
let a = t === void 0 ? er[e] : t;
|
|
4528
4589
|
return /* @__PURE__ */ g("div", {
|
|
4529
4590
|
role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
|
|
4530
|
-
className: `${
|
|
4591
|
+
className: `${$n.root} ${$n[e]} ${n}`,
|
|
4531
4592
|
children: [a && /* @__PURE__ */ h("span", {
|
|
4532
|
-
className:
|
|
4593
|
+
className: $n.icon,
|
|
4533
4594
|
"aria-hidden": "true",
|
|
4534
|
-
children:
|
|
4595
|
+
children: tr(a)
|
|
4535
4596
|
}), /* @__PURE__ */ h("div", {
|
|
4536
|
-
className:
|
|
4597
|
+
className: $n.body,
|
|
4537
4598
|
children: r
|
|
4538
4599
|
})]
|
|
4539
4600
|
});
|
|
4540
|
-
},
|
|
4541
|
-
className: `${
|
|
4601
|
+
}, rr = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
|
|
4602
|
+
className: `${$n.title} ${t}`,
|
|
4542
4603
|
children: e
|
|
4543
|
-
}),
|
|
4544
|
-
className: `${
|
|
4604
|
+
}), ir = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
|
|
4605
|
+
className: `${$n.description} ${t}`,
|
|
4545
4606
|
children: e
|
|
4546
|
-
}),
|
|
4607
|
+
}), ar = {
|
|
4547
4608
|
root: "_root_1aak8_10",
|
|
4548
4609
|
main: "_main_1aak8_33",
|
|
4549
4610
|
aside: "_aside_1aak8_34",
|
|
4550
4611
|
message: "_message_1aak8_41"
|
|
4551
|
-
},
|
|
4612
|
+
}, or = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
|
|
4552
4613
|
role: "region",
|
|
4553
4614
|
"aria-label": a,
|
|
4554
|
-
className: `${
|
|
4615
|
+
className: `${ar.root} ${i}`,
|
|
4555
4616
|
children: [/* @__PURE__ */ g("div", {
|
|
4556
|
-
className:
|
|
4617
|
+
className: ar.main,
|
|
4557
4618
|
children: [r, t && /* @__PURE__ */ h("span", {
|
|
4558
|
-
className:
|
|
4619
|
+
className: ar.message,
|
|
4559
4620
|
children: t
|
|
4560
4621
|
})]
|
|
4561
4622
|
}), n && /* @__PURE__ */ h("div", {
|
|
4562
|
-
className:
|
|
4623
|
+
className: ar.aside,
|
|
4563
4624
|
children: n
|
|
4564
4625
|
})]
|
|
4565
4626
|
}) : null, Q = {
|
|
@@ -4583,7 +4644,7 @@ var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
|
|
|
4583
4644
|
marker: "_marker_yrzff_142",
|
|
4584
4645
|
tooltipMarker: "_tooltipMarker_yrzff_146",
|
|
4585
4646
|
markerDot: "_markerDot_yrzff_150"
|
|
4586
|
-
},
|
|
4647
|
+
}, sr = "var(--lv4)", cr = 12, lr = 20, ur = 8, dr = 28, fr = 20, pr = {
|
|
4587
4648
|
hatch: [
|
|
4588
4649
|
[
|
|
4589
4650
|
0,
|
|
@@ -4627,22 +4688,22 @@ var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
|
|
|
4627
4688
|
2,
|
|
4628
4689
|
2
|
|
4629
4690
|
]]
|
|
4630
|
-
},
|
|
4631
|
-
function
|
|
4691
|
+
}, mr = .14, hr = "var(--CSignal)";
|
|
4692
|
+
function gr(e, t = 4) {
|
|
4632
4693
|
let n = e / t || 1, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
4633
4694
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * r;
|
|
4634
4695
|
}
|
|
4635
|
-
function
|
|
4696
|
+
function _r(e) {
|
|
4636
4697
|
let t = Math.abs(e);
|
|
4637
|
-
return t >= 1e6 ? `${
|
|
4698
|
+
return t >= 1e6 ? `${vr(e / 1e6)}M` : t >= 1e3 ? `${vr(e / 1e3)}k` : vr(e);
|
|
4638
4699
|
}
|
|
4639
|
-
function
|
|
4700
|
+
function vr(e) {
|
|
4640
4701
|
return e.toLocaleString(void 0, { maximumFractionDigits: Math.abs(e) < 10 ? 2 : 1 });
|
|
4641
4702
|
}
|
|
4642
|
-
function
|
|
4703
|
+
function yr(e) {
|
|
4643
4704
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
4644
4705
|
}
|
|
4645
|
-
function
|
|
4706
|
+
function br({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = _r, references: v, stacked: y = !1 }) {
|
|
4646
4707
|
let b = y && r === "bar", x = d(null), S = s(), [C, w] = f(0), [T, E] = f(null);
|
|
4647
4708
|
o(() => {
|
|
4648
4709
|
let e = x.current;
|
|
@@ -4650,25 +4711,25 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4650
4711
|
let t = new ResizeObserver(([e]) => w(e.contentRect.width));
|
|
4651
4712
|
return t.observe(e), w(e.clientWidth), () => t.disconnect();
|
|
4652
4713
|
}, []);
|
|
4653
|
-
let D = n?.length ?
|
|
4714
|
+
let D = n?.length ? dr : ur, O = Math.max(a - cr - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...r === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = r === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = p !== "none", I = gr(N - P);
|
|
4654
4715
|
F && (N = Math.ceil(N / I - 1e-9) * I, P = Math.floor(P / I + 1e-9) * I);
|
|
4655
4716
|
let L = N - P || 1, R = [];
|
|
4656
4717
|
if (F) for (let e = P; e <= N + I / 2; e += I) R.push(Number(e.toFixed(10)));
|
|
4657
|
-
let z = (e) => e.label ?? _(e.value), B = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, ee = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, V = p === "left" ? B + 4 :
|
|
4718
|
+
let z = (e) => e.label ?? _(e.value), B = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, ee = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, V = p === "left" ? B + 4 : fr, te = Math.max(p === "right" ? B + 4 : lr, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
|
|
4658
4719
|
if (!n || n.length <= 1 || H <= 0) return 1;
|
|
4659
4720
|
let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(H / e), 1);
|
|
4660
4721
|
return Math.ceil(n.length / t);
|
|
4661
|
-
})(), W = U <= 1 || H / (U - 1) >= 12, re = (e) =>
|
|
4722
|
+
})(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => cr + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
|
|
4662
4723
|
let r = [];
|
|
4663
4724
|
for (let i = 0; i < n; i++) t && i > 0 && r.push(`${me(i).toFixed(2)},${re(e[i - 1]).toFixed(2)}`), r.push(`${me(i).toFixed(2)},${re(e[i]).toFixed(2)}`);
|
|
4664
4725
|
return r;
|
|
4665
|
-
}, oe = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), se = oe.length ? re(Math.min(...oe.map((e) => e.value))) : null, ce = `${S}-signal`, le = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), ue = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" :
|
|
4726
|
+
}, oe = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), se = oe.length ? re(Math.min(...oe.map((e) => e.value))) : null, ce = `${S}-signal`, le = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), ue = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" : sr), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
|
|
4666
4727
|
let n = le(e);
|
|
4667
4728
|
return n === "hatch" || n === "dots" || n === "checker" ? de(t) : ue(e);
|
|
4668
|
-
}, pe = t.some((e) => le(e) in
|
|
4729
|
+
}, pe = t.some((e) => le(e) in pr) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
|
|
4669
4730
|
let n = le(e);
|
|
4670
|
-
if (!(n in
|
|
4671
|
-
let r =
|
|
4731
|
+
if (!(n in pr)) return null;
|
|
4732
|
+
let r = pr[n];
|
|
4672
4733
|
return /* @__PURE__ */ h("pattern", {
|
|
4673
4734
|
id: `${S}-${t}`,
|
|
4674
4735
|
width: 4,
|
|
@@ -4708,9 +4769,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4708
4769
|
e.pointerType === "mouse" && E(null);
|
|
4709
4770
|
}, []), _e = F ? null : /* @__PURE__ */ h("line", {
|
|
4710
4771
|
x1: V,
|
|
4711
|
-
y1:
|
|
4772
|
+
y1: cr + O * .5,
|
|
4712
4773
|
x2: V + H,
|
|
4713
|
-
y2:
|
|
4774
|
+
y2: cr + O * .5,
|
|
4714
4775
|
stroke: "var(--chart-midline)",
|
|
4715
4776
|
strokeWidth: "0.5"
|
|
4716
4777
|
}), ve = (v ?? []).filter((e) => Number.isFinite(e.value)).map((e) => re(e.value)), ye = (e) => p === "right" && ve.some((t) => Math.abs(t - e) < 12), be = F ? /* @__PURE__ */ h("g", { children: R.map((e) => {
|
|
@@ -4759,36 +4820,36 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4759
4820
|
] }, t);
|
|
4760
4821
|
}), xe = /* @__PURE__ */ h("line", {
|
|
4761
4822
|
x1: V,
|
|
4762
|
-
y1:
|
|
4823
|
+
y1: cr + O,
|
|
4763
4824
|
x2: V + H,
|
|
4764
|
-
y2:
|
|
4825
|
+
y2: cr + O,
|
|
4765
4826
|
stroke: "var(--chart-baseline)",
|
|
4766
4827
|
strokeWidth: "1"
|
|
4767
4828
|
}), Se = T && r === "bar" ? (() => {
|
|
4768
4829
|
let e = H / U;
|
|
4769
4830
|
return /* @__PURE__ */ h("rect", {
|
|
4770
4831
|
x: V + T.index * e,
|
|
4771
|
-
y:
|
|
4832
|
+
y: cr,
|
|
4772
4833
|
width: e,
|
|
4773
4834
|
height: O,
|
|
4774
4835
|
fill: "var(--chart-column-hover)"
|
|
4775
4836
|
});
|
|
4776
4837
|
})() : null, Ce = (e) => t.map((t, n) => {
|
|
4777
4838
|
if (!t.data.length) return null;
|
|
4778
|
-
let r = e ?? t.color ??
|
|
4839
|
+
let r = e ?? t.color ?? sr, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
|
|
4779
4840
|
let e = Math.min(t.data.length, t.low.length, t.high.length);
|
|
4780
4841
|
if (e < 2) return null;
|
|
4781
|
-
let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in
|
|
4842
|
+
let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in pr;
|
|
4782
4843
|
return /* @__PURE__ */ h("polygon", {
|
|
4783
4844
|
points: [...i, ...o].join(" "),
|
|
4784
4845
|
fill: s ? de(n) : r,
|
|
4785
|
-
fillOpacity: s ? 1 :
|
|
4846
|
+
fillOpacity: s ? 1 : mr,
|
|
4786
4847
|
stroke: "none"
|
|
4787
4848
|
});
|
|
4788
4849
|
})() : null, c = !e && !o && a !== "none" && t.data.length > 1 ? /* @__PURE__ */ h("polygon", {
|
|
4789
4850
|
points: `${me(0).toFixed(2)},${ie.toFixed(2)} ${i} ${me(t.data.length - 1).toFixed(2)},${ie.toFixed(2)}`,
|
|
4790
4851
|
fill: fe(t, n),
|
|
4791
|
-
fillOpacity: a === "solid" ?
|
|
4852
|
+
fillOpacity: a === "solid" ? mr : 1,
|
|
4792
4853
|
stroke: "none"
|
|
4793
4854
|
}) : null;
|
|
4794
4855
|
return /* @__PURE__ */ g("g", { children: [
|
|
@@ -4817,7 +4878,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4817
4878
|
] }, `${e ? "signal-" : ""}${n}`);
|
|
4818
4879
|
}), we = (e) => {
|
|
4819
4880
|
if (!U) return null;
|
|
4820
|
-
let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a =
|
|
4881
|
+
let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = cr + O, o = Array(U).fill(0);
|
|
4821
4882
|
return t.map((t, n) => t.data.map((s, c) => {
|
|
4822
4883
|
let l = b ? V + c * r + 2 : V + c * r + 2 + n * (i + 2), u = b ? Math.max(0, s) : s, d = b ? o[c] : 0;
|
|
4823
4884
|
b && (o[c] += u);
|
|
@@ -4832,7 +4893,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4832
4893
|
}));
|
|
4833
4894
|
}, Te = () => {
|
|
4834
4895
|
if (!n?.length) return null;
|
|
4835
|
-
let e =
|
|
4896
|
+
let e = cr + O + 18, t = n.length - 1;
|
|
4836
4897
|
return n.map((n, i) => {
|
|
4837
4898
|
if ((t - i) % ne !== 0) return null;
|
|
4838
4899
|
let a = r === "line" ? me(i) : V + (i + .5) * (H / U);
|
|
@@ -4847,9 +4908,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4847
4908
|
});
|
|
4848
4909
|
}, Ee = T && r === "line" ? /* @__PURE__ */ h("line", {
|
|
4849
4910
|
x1: me(T.index),
|
|
4850
|
-
y1:
|
|
4911
|
+
y1: cr,
|
|
4851
4912
|
x2: me(T.index),
|
|
4852
|
-
y2:
|
|
4913
|
+
y2: cr + O,
|
|
4853
4914
|
stroke: "var(--chart-crosshair)",
|
|
4854
4915
|
strokeWidth: "1",
|
|
4855
4916
|
strokeDasharray: "3 3"
|
|
@@ -4888,7 +4949,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4888
4949
|
children: [
|
|
4889
4950
|
/* @__PURE__ */ h("span", {
|
|
4890
4951
|
className: Q.tooltipDot,
|
|
4891
|
-
style: { background: t.color ??
|
|
4952
|
+
style: { background: t.color ?? sr }
|
|
4892
4953
|
}),
|
|
4893
4954
|
/* @__PURE__ */ h("span", {
|
|
4894
4955
|
className: Q.tooltipName,
|
|
@@ -4896,7 +4957,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4896
4957
|
}),
|
|
4897
4958
|
/* @__PURE__ */ h("span", {
|
|
4898
4959
|
className: Q.tooltipValue,
|
|
4899
|
-
children:
|
|
4960
|
+
children: yr(t.data[T.index] ?? 0)
|
|
4900
4961
|
})
|
|
4901
4962
|
]
|
|
4902
4963
|
}), t.low && t.high && t.low[T.index] != null && t.high[T.index] != null && /* @__PURE__ */ g("div", {
|
|
@@ -4913,9 +4974,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4913
4974
|
/* @__PURE__ */ g("span", {
|
|
4914
4975
|
className: Q.tooltipRangeValue,
|
|
4915
4976
|
children: [
|
|
4916
|
-
|
|
4977
|
+
yr(t.low[T.index]),
|
|
4917
4978
|
" to ",
|
|
4918
|
-
|
|
4979
|
+
yr(t.high[T.index])
|
|
4919
4980
|
]
|
|
4920
4981
|
})
|
|
4921
4982
|
]
|
|
@@ -4933,7 +4994,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4933
4994
|
}),
|
|
4934
4995
|
/* @__PURE__ */ h("span", {
|
|
4935
4996
|
className: Q.tooltipValue,
|
|
4936
|
-
children:
|
|
4997
|
+
children: yr(A[T.index] ?? 0)
|
|
4937
4998
|
})
|
|
4938
4999
|
]
|
|
4939
5000
|
}),
|
|
@@ -4978,24 +5039,24 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
4978
5039
|
Se,
|
|
4979
5040
|
Ee,
|
|
4980
5041
|
r === "line" ? Ce() : we(),
|
|
4981
|
-
se != null && se >
|
|
5042
|
+
se != null && se > cr && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
|
|
4982
5043
|
id: ce,
|
|
4983
5044
|
children: /* @__PURE__ */ h("rect", {
|
|
4984
5045
|
x: V,
|
|
4985
|
-
y:
|
|
5046
|
+
y: cr,
|
|
4986
5047
|
width: H,
|
|
4987
|
-
height: se -
|
|
5048
|
+
height: se - cr
|
|
4988
5049
|
})
|
|
4989
5050
|
}) }), /* @__PURE__ */ h("g", {
|
|
4990
5051
|
clipPath: `url(#${ce})`,
|
|
4991
|
-
children: r === "line" ? Ce(
|
|
5052
|
+
children: r === "line" ? Ce(hr) : we(hr)
|
|
4992
5053
|
})] }),
|
|
4993
5054
|
u && U > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < U))].map((e) => {
|
|
4994
5055
|
let t = r === "line" ? me(e) : V + (e + .5) * (H / U);
|
|
4995
5056
|
return /* @__PURE__ */ h("rect", {
|
|
4996
5057
|
className: Q.marker,
|
|
4997
5058
|
x: t - 3,
|
|
4998
|
-
y:
|
|
5059
|
+
y: cr + O - 3,
|
|
4999
5060
|
width: 6,
|
|
5000
5061
|
height: 6
|
|
5001
5062
|
}, `m${e}`);
|
|
@@ -5008,7 +5069,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
5008
5069
|
className: Q.legend,
|
|
5009
5070
|
children: t.map((e, t) => /* @__PURE__ */ g("div", {
|
|
5010
5071
|
className: Q.legendItem,
|
|
5011
|
-
children: [le(e) in
|
|
5072
|
+
children: [le(e) in pr ? /* @__PURE__ */ h("svg", {
|
|
5012
5073
|
className: Q.legendSwatch,
|
|
5013
5074
|
width: 12,
|
|
5014
5075
|
height: 8,
|
|
@@ -5020,7 +5081,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
5020
5081
|
})
|
|
5021
5082
|
}) : /* @__PURE__ */ h("div", {
|
|
5022
5083
|
className: Q.legendMark,
|
|
5023
|
-
style: { background: e.color ??
|
|
5084
|
+
style: { background: e.color ?? sr }
|
|
5024
5085
|
}), /* @__PURE__ */ h("span", {
|
|
5025
5086
|
className: Q.legendLabel,
|
|
5026
5087
|
children: e.label
|
|
@@ -5029,7 +5090,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
|
|
|
5029
5090
|
})]
|
|
5030
5091
|
});
|
|
5031
5092
|
}
|
|
5032
|
-
var
|
|
5093
|
+
var xr = {
|
|
5033
5094
|
sparkline: "_sparkline_fqcg9_4",
|
|
5034
5095
|
line: "_line_fqcg9_12",
|
|
5035
5096
|
partial: "_partial_fqcg9_22",
|
|
@@ -5037,16 +5098,16 @@ var vr = {
|
|
|
5037
5098
|
bars: "_bars_fqcg9_34",
|
|
5038
5099
|
bar: "_bar_fqcg9_34",
|
|
5039
5100
|
baseline: "_baseline_fqcg9_48"
|
|
5040
|
-
},
|
|
5041
|
-
function
|
|
5101
|
+
}, Sr = 100, Cr = 100;
|
|
5102
|
+
function wr({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: d, className: f }) {
|
|
5042
5103
|
let p = `spark-${s().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = d == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = (e) => 94 - (e - b) / x * 88, C = (e) => /* @__PURE__ */ g("svg", {
|
|
5043
|
-
className: [
|
|
5104
|
+
className: [xr.sparkline, f].filter(Boolean).join(" "),
|
|
5044
5105
|
style: {
|
|
5045
5106
|
width: n,
|
|
5046
5107
|
height: r,
|
|
5047
5108
|
color: i
|
|
5048
5109
|
},
|
|
5049
|
-
viewBox: `0 0 ${
|
|
5110
|
+
viewBox: `0 0 ${Sr} ${Cr}`,
|
|
5050
5111
|
preserveAspectRatio: "none",
|
|
5051
5112
|
role: v ? void 0 : "img",
|
|
5052
5113
|
"aria-label": d,
|
|
@@ -5055,15 +5116,15 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
|
|
|
5055
5116
|
children: [e, o && /* @__PURE__ */ h("line", {
|
|
5056
5117
|
x1: "0",
|
|
5057
5118
|
y1: 99.5,
|
|
5058
|
-
x2:
|
|
5119
|
+
x2: Sr,
|
|
5059
5120
|
y2: 99.5,
|
|
5060
|
-
className:
|
|
5121
|
+
className: xr.baseline,
|
|
5061
5122
|
vectorEffect: "non-scaling-stroke"
|
|
5062
5123
|
})]
|
|
5063
5124
|
});
|
|
5064
5125
|
if (_.length < 2) return C(null);
|
|
5065
5126
|
if (t === "bar") return /* @__PURE__ */ h("div", {
|
|
5066
|
-
className: [
|
|
5127
|
+
className: [xr.bars, f].filter(Boolean).join(" "),
|
|
5067
5128
|
style: {
|
|
5068
5129
|
width: n,
|
|
5069
5130
|
height: r,
|
|
@@ -5075,18 +5136,18 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
|
|
|
5075
5136
|
"aria-label": d,
|
|
5076
5137
|
"aria-hidden": v || void 0,
|
|
5077
5138
|
children: _.map((e, t) => /* @__PURE__ */ h("span", {
|
|
5078
|
-
className:
|
|
5139
|
+
className: xr.bar,
|
|
5079
5140
|
style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
|
|
5080
5141
|
}, t))
|
|
5081
5142
|
});
|
|
5082
|
-
let w =
|
|
5143
|
+
let w = Sr / (_.length - 1), T = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * w},${S(t)}`).join(" "), E = T(0, _.length), D = u != null && _.some((e) => e === 0), O = D ? { stroke: `url(#${p})` } : void 0, k = D ? { fill: `url(#${p})` } : void 0;
|
|
5083
5144
|
return C(/* @__PURE__ */ g(m, { children: [
|
|
5084
5145
|
D && /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("linearGradient", {
|
|
5085
5146
|
id: p,
|
|
5086
5147
|
gradientUnits: "userSpaceOnUse",
|
|
5087
5148
|
x1: "0",
|
|
5088
5149
|
y1: "0",
|
|
5089
|
-
x2:
|
|
5150
|
+
x2: Sr,
|
|
5090
5151
|
y2: "0",
|
|
5091
5152
|
children: (() => {
|
|
5092
5153
|
let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? u : "currentColor", n = .2 / e;
|
|
@@ -5103,29 +5164,29 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
|
|
|
5103
5164
|
})()
|
|
5104
5165
|
}) }),
|
|
5105
5166
|
a && /* @__PURE__ */ h("polygon", {
|
|
5106
|
-
className:
|
|
5107
|
-
points: `0,${
|
|
5167
|
+
className: xr.fill,
|
|
5168
|
+
points: `0,${Cr} ${E} ${Sr},${Cr}`,
|
|
5108
5169
|
style: k
|
|
5109
5170
|
}),
|
|
5110
5171
|
c ? /* @__PURE__ */ g(m, { children: [_.length > 2 && /* @__PURE__ */ h("polyline", {
|
|
5111
|
-
className:
|
|
5172
|
+
className: xr.line,
|
|
5112
5173
|
points: T(0, _.length - 1),
|
|
5113
5174
|
vectorEffect: "non-scaling-stroke",
|
|
5114
5175
|
style: O
|
|
5115
5176
|
}), /* @__PURE__ */ h("polyline", {
|
|
5116
|
-
className: `${
|
|
5177
|
+
className: `${xr.line} ${xr.partial}`,
|
|
5117
5178
|
points: T(_.length - 2, 2),
|
|
5118
5179
|
vectorEffect: "non-scaling-stroke",
|
|
5119
5180
|
style: O
|
|
5120
5181
|
})] }) : /* @__PURE__ */ h("polyline", {
|
|
5121
|
-
className:
|
|
5182
|
+
className: xr.line,
|
|
5122
5183
|
points: E,
|
|
5123
5184
|
vectorEffect: "non-scaling-stroke",
|
|
5124
5185
|
style: O
|
|
5125
5186
|
})
|
|
5126
5187
|
] }));
|
|
5127
5188
|
}
|
|
5128
|
-
var
|
|
5189
|
+
var Tr = {
|
|
5129
5190
|
wrapper: "_wrapper_17ws4_1",
|
|
5130
5191
|
label: "_label_17ws4_7",
|
|
5131
5192
|
textarea: "_textarea_17ws4_12",
|
|
@@ -5133,14 +5194,14 @@ var Sr = {
|
|
|
5133
5194
|
errorText: "_errorText_17ws4_56"
|
|
5134
5195
|
};
|
|
5135
5196
|
// src/components/Textarea/Textarea.tsx
|
|
5136
|
-
function
|
|
5197
|
+
function Er({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
|
|
5137
5198
|
let c = e.useId(), l = a || c, u = `${l}-error`, d = n || !i;
|
|
5138
5199
|
return /* @__PURE__ */ g("div", {
|
|
5139
|
-
className: `${
|
|
5200
|
+
className: `${Tr.wrapper} ${r}`,
|
|
5140
5201
|
children: [
|
|
5141
5202
|
t && /* @__PURE__ */ g("label", {
|
|
5142
5203
|
htmlFor: l,
|
|
5143
|
-
className:
|
|
5204
|
+
className: Tr.label,
|
|
5144
5205
|
children: [t, s.required && /* @__PURE__ */ h("span", {
|
|
5145
5206
|
"aria-label": "required",
|
|
5146
5207
|
children: " *"
|
|
@@ -5149,28 +5210,28 @@ function Cr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
|
|
|
5149
5210
|
/* @__PURE__ */ h("textarea", {
|
|
5150
5211
|
id: l,
|
|
5151
5212
|
rows: o,
|
|
5152
|
-
className: `${
|
|
5213
|
+
className: `${Tr.textarea} ${d ? Tr.error : ""}`,
|
|
5153
5214
|
"aria-invalid": d ? "true" : "false",
|
|
5154
5215
|
"aria-describedby": n ? u : void 0,
|
|
5155
5216
|
...s
|
|
5156
5217
|
}),
|
|
5157
5218
|
n && /* @__PURE__ */ h("span", {
|
|
5158
5219
|
id: u,
|
|
5159
|
-
className:
|
|
5220
|
+
className: Tr.errorText,
|
|
5160
5221
|
role: "alert",
|
|
5161
5222
|
children: n
|
|
5162
5223
|
})
|
|
5163
5224
|
]
|
|
5164
5225
|
});
|
|
5165
5226
|
}
|
|
5166
|
-
var
|
|
5227
|
+
var Dr = {
|
|
5167
5228
|
overlay: "_overlay_xud7c_1",
|
|
5168
5229
|
content: "_content_xud7c_8",
|
|
5169
5230
|
title: "_title_xud7c_26",
|
|
5170
5231
|
description: "_description_xud7c_34",
|
|
5171
5232
|
close: "_close_xud7c_40",
|
|
5172
5233
|
srOnly: "_srOnly_xud7c_62"
|
|
5173
|
-
},
|
|
5234
|
+
}, Or = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
|
|
5174
5235
|
let c = ae();
|
|
5175
5236
|
return /* @__PURE__ */ g(B.Root, {
|
|
5176
5237
|
open: n,
|
|
@@ -5180,19 +5241,19 @@ var wr = {
|
|
|
5180
5241
|
children: e
|
|
5181
5242
|
}), /* @__PURE__ */ g(B.Portal, {
|
|
5182
5243
|
container: c,
|
|
5183
|
-
children: [/* @__PURE__ */ h(B.Overlay, { className:
|
|
5184
|
-
className: `${
|
|
5244
|
+
children: [/* @__PURE__ */ h(B.Overlay, { className: Dr.overlay }), /* @__PURE__ */ g(B.Content, {
|
|
5245
|
+
className: `${Dr.content} ${o}`,
|
|
5185
5246
|
children: [
|
|
5186
5247
|
/* @__PURE__ */ h(B.Title, {
|
|
5187
|
-
className: i ?
|
|
5248
|
+
className: i ? Dr.title : Dr.srOnly,
|
|
5188
5249
|
children: i || "Dialog"
|
|
5189
5250
|
}),
|
|
5190
5251
|
a && /* @__PURE__ */ h(B.Description, {
|
|
5191
|
-
className:
|
|
5252
|
+
className: Dr.description,
|
|
5192
5253
|
children: a
|
|
5193
5254
|
}),
|
|
5194
5255
|
s && /* @__PURE__ */ h(B.Close, {
|
|
5195
|
-
className:
|
|
5256
|
+
className: Dr.close,
|
|
5196
5257
|
"aria-label": "Close",
|
|
5197
5258
|
children: /* @__PURE__ */ h(F, {
|
|
5198
5259
|
size: 14,
|
|
@@ -5204,7 +5265,7 @@ var wr = {
|
|
|
5204
5265
|
})]
|
|
5205
5266
|
})]
|
|
5206
5267
|
});
|
|
5207
|
-
},
|
|
5268
|
+
}, kr = {
|
|
5208
5269
|
wrapper: "_wrapper_aimna_1",
|
|
5209
5270
|
label: "_label_aimna_7",
|
|
5210
5271
|
trigger: "_trigger_aimna_12",
|
|
@@ -5223,7 +5284,7 @@ var wr = {
|
|
|
5223
5284
|
today: "_today_aimna_131",
|
|
5224
5285
|
selected: "_selected_aimna_136",
|
|
5225
5286
|
errorText: "_errorText_aimna_142"
|
|
5226
|
-
},
|
|
5287
|
+
}, Ar = [
|
|
5227
5288
|
"Mo",
|
|
5228
5289
|
"Tu",
|
|
5229
5290
|
"We",
|
|
@@ -5231,7 +5292,7 @@ var wr = {
|
|
|
5231
5292
|
"Fr",
|
|
5232
5293
|
"Sa",
|
|
5233
5294
|
"Su"
|
|
5234
|
-
],
|
|
5295
|
+
], jr = [
|
|
5235
5296
|
"January",
|
|
5236
5297
|
"February",
|
|
5237
5298
|
"March",
|
|
@@ -5245,19 +5306,19 @@ var wr = {
|
|
|
5245
5306
|
"November",
|
|
5246
5307
|
"December"
|
|
5247
5308
|
];
|
|
5248
|
-
function
|
|
5309
|
+
function Mr(e) {
|
|
5249
5310
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
5250
5311
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
5251
5312
|
}
|
|
5252
|
-
function
|
|
5313
|
+
function Nr(e, t) {
|
|
5253
5314
|
return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
5254
5315
|
}
|
|
5255
|
-
function
|
|
5316
|
+
function Pr(e, t) {
|
|
5256
5317
|
let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
|
|
5257
5318
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
5258
5319
|
return r;
|
|
5259
5320
|
}
|
|
5260
|
-
var
|
|
5321
|
+
var Fr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = Mr }) => {
|
|
5261
5322
|
let u = ae(), d = e.useId(), p = `${d}-error`, m = !!a || !o, [_, v] = f(!1), y = /* @__PURE__ */ new Date(), b = t ?? y, [w, T] = f(b.getFullYear()), [E, D] = f(b.getMonth()), [O, k] = f(b), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
|
|
5262
5323
|
if (e) {
|
|
5263
5324
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
@@ -5266,7 +5327,7 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5266
5327
|
v(e);
|
|
5267
5328
|
};
|
|
5268
5329
|
e.useEffect(() => {
|
|
5269
|
-
j.current &&= (A.current.get(
|
|
5330
|
+
j.current &&= (A.current.get(Mr(O))?.focus(), !1);
|
|
5270
5331
|
}, [O]);
|
|
5271
5332
|
let N = (e, t) => {
|
|
5272
5333
|
let n = new Date(t), r = {
|
|
@@ -5293,13 +5354,13 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5293
5354
|
E === 11 ? (D(0), T(w + 1)) : D(E + 1);
|
|
5294
5355
|
}, I = (e) => {
|
|
5295
5356
|
n?.(e), v(!1);
|
|
5296
|
-
}, L =
|
|
5357
|
+
}, L = Pr(w, E);
|
|
5297
5358
|
return /* @__PURE__ */ g("div", {
|
|
5298
|
-
className: `${
|
|
5359
|
+
className: `${kr.wrapper} ${c}`,
|
|
5299
5360
|
children: [
|
|
5300
5361
|
r && /* @__PURE__ */ h("span", {
|
|
5301
5362
|
id: `${d}-label`,
|
|
5302
|
-
className:
|
|
5363
|
+
className: kr.label,
|
|
5303
5364
|
children: r
|
|
5304
5365
|
}),
|
|
5305
5366
|
/* @__PURE__ */ g(R.Root, {
|
|
@@ -5309,14 +5370,14 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5309
5370
|
asChild: !0,
|
|
5310
5371
|
children: /* @__PURE__ */ g("button", {
|
|
5311
5372
|
type: "button",
|
|
5312
|
-
className: `${
|
|
5373
|
+
className: `${kr.trigger} ${m ? kr.error : ""}`,
|
|
5313
5374
|
disabled: s,
|
|
5314
5375
|
"aria-labelledby": r ? `${d}-label ${d}-value` : void 0,
|
|
5315
5376
|
"aria-invalid": m ? "true" : "false",
|
|
5316
5377
|
"aria-describedby": a ? p : void 0,
|
|
5317
5378
|
children: [/* @__PURE__ */ h("span", {
|
|
5318
5379
|
id: `${d}-value`,
|
|
5319
|
-
className: t ?
|
|
5380
|
+
className: t ? kr.valueText : kr.placeholder,
|
|
5320
5381
|
children: t ? l(t) : i
|
|
5321
5382
|
}), /* @__PURE__ */ h(x, {
|
|
5322
5383
|
size: 14,
|
|
@@ -5326,20 +5387,20 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5326
5387
|
}), /* @__PURE__ */ h(R.Portal, {
|
|
5327
5388
|
container: u,
|
|
5328
5389
|
children: /* @__PURE__ */ g(R.Content, {
|
|
5329
|
-
className:
|
|
5390
|
+
className: kr.calendar,
|
|
5330
5391
|
align: "start",
|
|
5331
5392
|
sideOffset: 5,
|
|
5332
5393
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
5333
5394
|
onOpenAutoFocus: (e) => {
|
|
5334
|
-
e.preventDefault(), A.current.get(
|
|
5395
|
+
e.preventDefault(), A.current.get(Mr(O))?.focus();
|
|
5335
5396
|
},
|
|
5336
5397
|
children: [
|
|
5337
5398
|
/* @__PURE__ */ g("div", {
|
|
5338
|
-
className:
|
|
5399
|
+
className: kr.header,
|
|
5339
5400
|
children: [
|
|
5340
5401
|
/* @__PURE__ */ h("button", {
|
|
5341
5402
|
type: "button",
|
|
5342
|
-
className:
|
|
5403
|
+
className: kr.navButton,
|
|
5343
5404
|
onClick: P,
|
|
5344
5405
|
"aria-label": "Previous month",
|
|
5345
5406
|
children: /* @__PURE__ */ h(S, {
|
|
@@ -5348,16 +5409,16 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5348
5409
|
})
|
|
5349
5410
|
}),
|
|
5350
5411
|
/* @__PURE__ */ g("span", {
|
|
5351
|
-
className:
|
|
5412
|
+
className: kr.monthLabel,
|
|
5352
5413
|
children: [
|
|
5353
|
-
|
|
5414
|
+
jr[E],
|
|
5354
5415
|
" ",
|
|
5355
5416
|
w
|
|
5356
5417
|
]
|
|
5357
5418
|
}),
|
|
5358
5419
|
/* @__PURE__ */ h("button", {
|
|
5359
5420
|
type: "button",
|
|
5360
|
-
className:
|
|
5421
|
+
className: kr.navButton,
|
|
5361
5422
|
onClick: F,
|
|
5362
5423
|
"aria-label": "Next month",
|
|
5363
5424
|
children: /* @__PURE__ */ h(C, {
|
|
@@ -5368,27 +5429,27 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5368
5429
|
]
|
|
5369
5430
|
}),
|
|
5370
5431
|
/* @__PURE__ */ h("div", {
|
|
5371
|
-
className:
|
|
5372
|
-
children:
|
|
5373
|
-
className:
|
|
5432
|
+
className: kr.weekdays,
|
|
5433
|
+
children: Ar.map((e) => /* @__PURE__ */ h("span", {
|
|
5434
|
+
className: kr.weekday,
|
|
5374
5435
|
children: e
|
|
5375
5436
|
}, e))
|
|
5376
5437
|
}),
|
|
5377
5438
|
/* @__PURE__ */ h("div", {
|
|
5378
|
-
className:
|
|
5439
|
+
className: kr.grid,
|
|
5379
5440
|
children: L.map((e) => {
|
|
5380
|
-
let n = e.getMonth() !== E, r =
|
|
5381
|
-
|
|
5382
|
-
n ?
|
|
5383
|
-
r ?
|
|
5384
|
-
i && !r ?
|
|
5441
|
+
let n = e.getMonth() !== E, r = Nr(e, t), i = Nr(e, y), a = [
|
|
5442
|
+
kr.day,
|
|
5443
|
+
n ? kr.outside : "",
|
|
5444
|
+
r ? kr.selected : "",
|
|
5445
|
+
i && !r ? kr.today : ""
|
|
5385
5446
|
].filter(Boolean).join(" ");
|
|
5386
5447
|
return /* @__PURE__ */ h("button", {
|
|
5387
5448
|
type: "button",
|
|
5388
5449
|
className: a,
|
|
5389
5450
|
onClick: () => I(e),
|
|
5390
5451
|
ref: (t) => {
|
|
5391
|
-
t ? A.current.set(
|
|
5452
|
+
t ? A.current.set(Mr(e), t) : A.current.delete(Mr(e));
|
|
5392
5453
|
},
|
|
5393
5454
|
"aria-label": e.toLocaleDateString(void 0, {
|
|
5394
5455
|
weekday: "long",
|
|
@@ -5398,7 +5459,7 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5398
5459
|
}),
|
|
5399
5460
|
"aria-pressed": r,
|
|
5400
5461
|
"aria-current": i ? "date" : void 0,
|
|
5401
|
-
tabIndex:
|
|
5462
|
+
tabIndex: Nr(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
|
|
5402
5463
|
onKeyDown: (t) => N(t, e),
|
|
5403
5464
|
children: e.getDate()
|
|
5404
5465
|
}, e.toISOString());
|
|
@@ -5410,32 +5471,32 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
5410
5471
|
}),
|
|
5411
5472
|
a && /* @__PURE__ */ h("span", {
|
|
5412
5473
|
id: p,
|
|
5413
|
-
className:
|
|
5474
|
+
className: kr.errorText,
|
|
5414
5475
|
role: "alert",
|
|
5415
5476
|
children: a
|
|
5416
5477
|
})
|
|
5417
5478
|
]
|
|
5418
5479
|
});
|
|
5419
|
-
},
|
|
5480
|
+
}, Ir = {
|
|
5420
5481
|
skeleton: "_skeleton_fo2zs_11",
|
|
5421
5482
|
"indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
|
|
5422
5483
|
level3: "_level3_fo2zs_20",
|
|
5423
5484
|
appear: "_appear_fo2zs_25",
|
|
5424
5485
|
"indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
|
|
5425
|
-
},
|
|
5426
|
-
function
|
|
5486
|
+
}, Lr = (e) => typeof e == "number" ? `${e}px` : e;
|
|
5487
|
+
function Rr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
|
|
5427
5488
|
return /* @__PURE__ */ h("span", {
|
|
5428
5489
|
"aria-hidden": "true",
|
|
5429
|
-
className: `${
|
|
5490
|
+
className: `${Ir.skeleton} ${n === 3 ? Ir.level3 : ""} ${i ? Ir.appear : ""} ${a}`,
|
|
5430
5491
|
style: {
|
|
5431
|
-
width:
|
|
5432
|
-
height:
|
|
5492
|
+
width: Lr(e),
|
|
5493
|
+
height: Lr(t),
|
|
5433
5494
|
"--skeleton-delay": `${r}s`,
|
|
5434
5495
|
...o
|
|
5435
5496
|
}
|
|
5436
5497
|
});
|
|
5437
5498
|
}
|
|
5438
|
-
var
|
|
5499
|
+
var zr = {
|
|
5439
5500
|
stat: "_stat_tcz5d_2",
|
|
5440
5501
|
label: "_label_tcz5d_16",
|
|
5441
5502
|
labelIcon: "_labelIcon_tcz5d_25",
|
|
@@ -5452,88 +5513,88 @@ var Ir = {
|
|
|
5452
5513
|
fixed: "_fixed_tcz5d_119",
|
|
5453
5514
|
many: "_many_tcz5d_124",
|
|
5454
5515
|
pairs: "_pairs_tcz5d_128"
|
|
5455
|
-
},
|
|
5456
|
-
function
|
|
5516
|
+
}, Br = 28;
|
|
5517
|
+
function Vr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
|
|
5457
5518
|
let d = n && r(n) ? t(n, {
|
|
5458
5519
|
size: n.props.size ?? 14,
|
|
5459
5520
|
color: n.props.color ?? "currentColor"
|
|
5460
5521
|
}) : n, f = /* @__PURE__ */ g("span", {
|
|
5461
|
-
className: `${
|
|
5522
|
+
className: `${zr.label} ${c ? zr.hinted : ""}`,
|
|
5462
5523
|
children: [d != null && /* @__PURE__ */ h("span", {
|
|
5463
|
-
className:
|
|
5524
|
+
className: zr.labelIcon,
|
|
5464
5525
|
"aria-hidden": "true",
|
|
5465
5526
|
children: d
|
|
5466
5527
|
}), e]
|
|
5467
5528
|
}), p = o && r(o) ? t(o, {
|
|
5468
5529
|
size: o.props.size ?? 28,
|
|
5469
5530
|
color: o.props.color ?? "currentColor"
|
|
5470
|
-
}) : o, m = c ? /* @__PURE__ */ h(
|
|
5531
|
+
}) : o, m = c ? /* @__PURE__ */ h(gn, {
|
|
5471
5532
|
content: c,
|
|
5472
5533
|
children: f
|
|
5473
5534
|
}) : f, _ = (i != null || p != null) && /* @__PURE__ */ g("span", {
|
|
5474
|
-
className:
|
|
5535
|
+
className: zr.value,
|
|
5475
5536
|
style: s ? { color: s } : void 0,
|
|
5476
5537
|
children: [p != null && /* @__PURE__ */ h("span", {
|
|
5477
|
-
className:
|
|
5538
|
+
className: zr.icon,
|
|
5478
5539
|
"aria-hidden": "true",
|
|
5479
5540
|
children: p
|
|
5480
5541
|
}), i]
|
|
5481
5542
|
}), v = l != null && /* @__PURE__ */ h("span", {
|
|
5482
|
-
className:
|
|
5543
|
+
className: zr.foot,
|
|
5483
5544
|
children: l
|
|
5484
5545
|
});
|
|
5485
5546
|
return a == null ? /* @__PURE__ */ g("div", {
|
|
5486
|
-
className: `${
|
|
5547
|
+
className: `${zr.stat} ${u}`,
|
|
5487
5548
|
children: [
|
|
5488
5549
|
m,
|
|
5489
5550
|
/* @__PURE__ */ h("span", {
|
|
5490
|
-
className:
|
|
5551
|
+
className: zr.body,
|
|
5491
5552
|
children: _
|
|
5492
5553
|
}),
|
|
5493
5554
|
v && /* @__PURE__ */ h("span", {
|
|
5494
|
-
className:
|
|
5555
|
+
className: zr.footRow,
|
|
5495
5556
|
children: v
|
|
5496
5557
|
})
|
|
5497
5558
|
]
|
|
5498
5559
|
}) : /* @__PURE__ */ g("div", {
|
|
5499
|
-
className: `${
|
|
5560
|
+
className: `${zr.stat} ${u}`,
|
|
5500
5561
|
children: [m, /* @__PURE__ */ h("span", {
|
|
5501
|
-
className:
|
|
5562
|
+
className: zr.body,
|
|
5502
5563
|
children: /* @__PURE__ */ g("span", {
|
|
5503
|
-
className:
|
|
5564
|
+
className: zr.figured,
|
|
5504
5565
|
children: [/* @__PURE__ */ h("span", {
|
|
5505
|
-
className:
|
|
5566
|
+
className: zr.figure,
|
|
5506
5567
|
children: a
|
|
5507
5568
|
}), /* @__PURE__ */ g("span", {
|
|
5508
|
-
className:
|
|
5569
|
+
className: zr.text,
|
|
5509
5570
|
children: [_, v]
|
|
5510
5571
|
})]
|
|
5511
5572
|
})
|
|
5512
5573
|
})]
|
|
5513
5574
|
});
|
|
5514
5575
|
}
|
|
5515
|
-
function
|
|
5516
|
-
let r = t ? `${
|
|
5576
|
+
function Hr({ children: e, columns: t, className: n = "" }) {
|
|
5577
|
+
let r = t ? `${zr.fixed} ${t > 3 ? zr.many : ""} ${t > 2 ? zr.pairs : ""}` : "";
|
|
5517
5578
|
return /* @__PURE__ */ h("div", {
|
|
5518
|
-
className: `${
|
|
5579
|
+
className: `${zr.group} ${r} ${n}`,
|
|
5519
5580
|
style: t ? { "--stat-columns": t } : void 0,
|
|
5520
5581
|
children: e
|
|
5521
5582
|
});
|
|
5522
5583
|
}
|
|
5523
|
-
var
|
|
5584
|
+
var Ur = {
|
|
5524
5585
|
text: "_text_15djf_3",
|
|
5525
5586
|
active: "_active_15djf_6",
|
|
5526
5587
|
"indx-shimmer-text": "_indx-shimmer-text_15djf_1"
|
|
5527
5588
|
};
|
|
5528
5589
|
// src/components/ShimmerText/ShimmerText.tsx
|
|
5529
|
-
function
|
|
5590
|
+
function Wr({ children: e, active: t = !0, className: n = "", ...r }) {
|
|
5530
5591
|
return /* @__PURE__ */ h("span", {
|
|
5531
|
-
className: `${
|
|
5592
|
+
className: `${Ur.text} ${t ? Ur.active : ""} ${n}`,
|
|
5532
5593
|
...r,
|
|
5533
5594
|
children: e
|
|
5534
5595
|
});
|
|
5535
5596
|
}
|
|
5536
|
-
var
|
|
5597
|
+
var Gr = {
|
|
5537
5598
|
meter: "_meter_5u78a_3",
|
|
5538
5599
|
cell: "_cell_5u78a_12",
|
|
5539
5600
|
lit: "_lit_5u78a_13",
|
|
@@ -5541,25 +5602,25 @@ var Hr = {
|
|
|
5541
5602
|
some: "_some_5u78a_16",
|
|
5542
5603
|
all: "_all_5u78a_17",
|
|
5543
5604
|
mark: "_mark_5u78a_18"
|
|
5544
|
-
},
|
|
5545
|
-
function
|
|
5546
|
-
let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ?
|
|
5605
|
+
}, Kr = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
|
|
5606
|
+
function qr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
|
|
5607
|
+
let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Gr.all : t.some((t) => e >= t.at) ? Gr.some : Gr.none;
|
|
5547
5608
|
return /* @__PURE__ */ g("span", {
|
|
5548
|
-
className: `${
|
|
5609
|
+
className: `${Gr.meter} ${o} ${i}`,
|
|
5549
5610
|
role: "meter",
|
|
5550
5611
|
"aria-valuemin": 0,
|
|
5551
5612
|
"aria-valuemax": 1,
|
|
5552
|
-
"aria-valuenow": Number(
|
|
5613
|
+
"aria-valuenow": Number(Kr(e)),
|
|
5553
5614
|
"aria-label": a["aria-label"],
|
|
5554
5615
|
style: { "--score-cell": `${r}px` },
|
|
5555
|
-
children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${
|
|
5556
|
-
className:
|
|
5616
|
+
children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Gr.cell} ${e >= (r + .5) / n ? Gr.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
|
|
5617
|
+
className: Gr.mark,
|
|
5557
5618
|
style: { left: `${Math.min(1, Math.max(0, e.at)) * 100}%` },
|
|
5558
|
-
title: `${e.label} ${
|
|
5619
|
+
title: `${e.label} ${Kr(e.at)}`
|
|
5559
5620
|
}, `${e.label}-${e.at}`))]
|
|
5560
5621
|
});
|
|
5561
5622
|
}
|
|
5562
|
-
var
|
|
5623
|
+
var Jr = {
|
|
5563
5624
|
steps: "_steps_16r2n_1",
|
|
5564
5625
|
part: "_part_16r2n_2",
|
|
5565
5626
|
track: "_track_16r2n_3",
|
|
@@ -5569,13 +5630,13 @@ var Gr = {
|
|
|
5569
5630
|
count: "_count_16r2n_7"
|
|
5570
5631
|
};
|
|
5571
5632
|
// src/components/StepProgress/StepProgress.tsx
|
|
5572
|
-
function
|
|
5633
|
+
function Yr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i = 3, className: a = "", ...o }) {
|
|
5573
5634
|
let s = e.reduce((e, t) => e + Math.min(t.value, t.max ?? 1), 0), c = e.reduce((e, t) => e + (t.max ?? 1), 0), l = {
|
|
5574
5635
|
"--step-fill": r,
|
|
5575
5636
|
"--step-height": `${i}px`
|
|
5576
5637
|
};
|
|
5577
5638
|
return /* @__PURE__ */ h("div", {
|
|
5578
|
-
className: `${
|
|
5639
|
+
className: `${Jr.steps} ${a}`,
|
|
5579
5640
|
style: l,
|
|
5580
5641
|
role: "progressbar",
|
|
5581
5642
|
"aria-valuemin": 0,
|
|
@@ -5585,21 +5646,21 @@ function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i =
|
|
|
5585
5646
|
children: e.map((e, r) => {
|
|
5586
5647
|
let i = e.max ?? 1, a = Math.min(Math.max(e.value, 0), i);
|
|
5587
5648
|
return /* @__PURE__ */ g("div", {
|
|
5588
|
-
className:
|
|
5649
|
+
className: Jr.part,
|
|
5589
5650
|
style: { flex: t ? i : 1 },
|
|
5590
5651
|
children: [/* @__PURE__ */ h("div", {
|
|
5591
|
-
className:
|
|
5652
|
+
className: Jr.track,
|
|
5592
5653
|
children: /* @__PURE__ */ h("div", {
|
|
5593
|
-
className:
|
|
5654
|
+
className: Jr.fill,
|
|
5594
5655
|
style: { width: `${a / i * 100}%` }
|
|
5595
5656
|
})
|
|
5596
5657
|
}), n && /* @__PURE__ */ g("div", {
|
|
5597
|
-
className:
|
|
5658
|
+
className: Jr.label,
|
|
5598
5659
|
children: [/* @__PURE__ */ h("span", {
|
|
5599
|
-
className:
|
|
5660
|
+
className: Jr.name,
|
|
5600
5661
|
children: e.label
|
|
5601
5662
|
}), /* @__PURE__ */ g("span", {
|
|
5602
|
-
className:
|
|
5663
|
+
className: Jr.count,
|
|
5603
5664
|
children: [
|
|
5604
5665
|
a,
|
|
5605
5666
|
"/",
|
|
@@ -5611,7 +5672,7 @@ function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i =
|
|
|
5611
5672
|
})
|
|
5612
5673
|
});
|
|
5613
5674
|
}
|
|
5614
|
-
var
|
|
5675
|
+
var Xr = {
|
|
5615
5676
|
icicle: "_icicle_1e1du_2",
|
|
5616
5677
|
cell: "_cell_1e1du_3",
|
|
5617
5678
|
block: "_block_1e1du_4",
|
|
@@ -5621,12 +5682,12 @@ var qr = {
|
|
|
5621
5682
|
tone2: "_tone2_1e1du_18",
|
|
5622
5683
|
tone3: "_tone3_1e1du_19",
|
|
5623
5684
|
tone4: "_tone4_1e1du_20"
|
|
5624
|
-
},
|
|
5685
|
+
}, Zr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Zr)) : 0), Qr = (e) => {
|
|
5625
5686
|
if (e.value <= 0 || !e.children?.length) return 0;
|
|
5626
5687
|
let t = Math.min(1, Math.max(0, e.children.reduce((e, t) => e + t.value, 0) / e.value));
|
|
5627
5688
|
return Math.round(t * 4);
|
|
5628
5689
|
};
|
|
5629
|
-
function
|
|
5690
|
+
function $r({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
|
|
5630
5691
|
let o = [], s = (t, r, i, a) => {
|
|
5631
5692
|
if (r >= n || a <= 0) return;
|
|
5632
5693
|
o.push({
|
|
@@ -5642,14 +5703,14 @@ function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
|
|
|
5642
5703
|
}
|
|
5643
5704
|
};
|
|
5644
5705
|
s(e, 0, 0, +(e.value > 0));
|
|
5645
|
-
let c = Math.min(n,
|
|
5706
|
+
let c = Math.min(n, Zr(e));
|
|
5646
5707
|
return /* @__PURE__ */ h("div", {
|
|
5647
|
-
className: `${
|
|
5708
|
+
className: `${Xr.icicle} ${i}`,
|
|
5648
5709
|
role: "img",
|
|
5649
5710
|
"aria-label": a["aria-label"],
|
|
5650
5711
|
style: { height: c * t },
|
|
5651
5712
|
children: o.map((e, n) => /* @__PURE__ */ h("div", {
|
|
5652
|
-
className:
|
|
5713
|
+
className: Xr.cell,
|
|
5653
5714
|
title: r?.(e.node) ?? `${e.node.label}: ${e.node.value.toLocaleString()}`,
|
|
5654
5715
|
style: {
|
|
5655
5716
|
left: `${e.x * 100}%`,
|
|
@@ -5658,16 +5719,16 @@ function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
|
|
|
5658
5719
|
height: t - 2
|
|
5659
5720
|
},
|
|
5660
5721
|
children: /* @__PURE__ */ h("span", {
|
|
5661
|
-
className: `${
|
|
5722
|
+
className: `${Xr.block} ${Xr[`tone${Qr(e.node)}`]}`,
|
|
5662
5723
|
children: /* @__PURE__ */ h("span", {
|
|
5663
|
-
className:
|
|
5724
|
+
className: Xr.label,
|
|
5664
5725
|
children: e.node.label
|
|
5665
5726
|
})
|
|
5666
5727
|
})
|
|
5667
5728
|
}, n))
|
|
5668
5729
|
});
|
|
5669
5730
|
}
|
|
5670
|
-
var
|
|
5731
|
+
var ei = {
|
|
5671
5732
|
root: "_root_biiv1_1",
|
|
5672
5733
|
micro: "_micro_biiv1_7",
|
|
5673
5734
|
default: "_default_biiv1_8",
|
|
@@ -5683,13 +5744,13 @@ var Zr = {
|
|
|
5683
5744
|
panelTrigger: "_panelTrigger_biiv1_77",
|
|
5684
5745
|
viewport: "_viewport_biiv1_60",
|
|
5685
5746
|
content: "_content_biiv1_110"
|
|
5686
|
-
},
|
|
5747
|
+
}, ti = {
|
|
5687
5748
|
micro: 14,
|
|
5688
5749
|
default: 14,
|
|
5689
5750
|
large: 21
|
|
5690
|
-
},
|
|
5751
|
+
}, ni = e.createContext("default"), ri = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ii = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
|
|
5691
5752
|
let d = e.useRef(null), f = e.useRef(!1);
|
|
5692
|
-
|
|
5753
|
+
ri(() => {
|
|
5693
5754
|
let e = d.current;
|
|
5694
5755
|
if (!e || r !== "trigger") return;
|
|
5695
5756
|
let t = () => {
|
|
@@ -5718,8 +5779,8 @@ var Zr = {
|
|
|
5718
5779
|
let p = {
|
|
5719
5780
|
...o,
|
|
5720
5781
|
...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
|
|
5721
|
-
}, m = r === "trigger" ?
|
|
5722
|
-
return /* @__PURE__ */ h(
|
|
5782
|
+
}, m = r === "trigger" ? ei.panelTrigger : r === "end" ? ei.alignEnd : "";
|
|
5783
|
+
return /* @__PURE__ */ h(ni.Provider, {
|
|
5723
5784
|
value: t,
|
|
5724
5785
|
children: /* @__PURE__ */ g(ee.Root, {
|
|
5725
5786
|
...l,
|
|
@@ -5728,67 +5789,67 @@ var Zr = {
|
|
|
5728
5789
|
},
|
|
5729
5790
|
"aria-label": c,
|
|
5730
5791
|
style: p,
|
|
5731
|
-
className: `${
|
|
5792
|
+
className: `${ei.root} ${ei[t]} ${n === "end" ? ei.alignList : ""} ${m} ${a}`,
|
|
5732
5793
|
children: [s, /* @__PURE__ */ h("div", {
|
|
5733
|
-
className:
|
|
5734
|
-
children: /* @__PURE__ */ h(ee.Viewport, { className:
|
|
5794
|
+
className: ei.viewportPosition,
|
|
5795
|
+
children: /* @__PURE__ */ h(ee.Viewport, { className: ei.viewport })
|
|
5735
5796
|
})]
|
|
5736
5797
|
})
|
|
5737
5798
|
});
|
|
5738
5799
|
});
|
|
5739
|
-
|
|
5740
|
-
var
|
|
5800
|
+
ii.displayName = "NavigationMenu";
|
|
5801
|
+
var ai = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
|
|
5741
5802
|
...t,
|
|
5742
5803
|
ref: n,
|
|
5743
|
-
className: `${
|
|
5804
|
+
className: `${ei.list} ${e}`
|
|
5744
5805
|
}));
|
|
5745
|
-
|
|
5746
|
-
var
|
|
5747
|
-
function
|
|
5748
|
-
let n = e.useContext(
|
|
5806
|
+
ai.displayName = "NavigationMenuList";
|
|
5807
|
+
var oi = ee.Item;
|
|
5808
|
+
function si({ icon: t }) {
|
|
5809
|
+
let n = e.useContext(ni);
|
|
5749
5810
|
return t ? /* @__PURE__ */ h("span", {
|
|
5750
|
-
className:
|
|
5811
|
+
className: ei.icon,
|
|
5751
5812
|
"aria-hidden": "true",
|
|
5752
5813
|
children: e.cloneElement(t, {
|
|
5753
|
-
size:
|
|
5814
|
+
size: ti[n],
|
|
5754
5815
|
color: "currentColor"
|
|
5755
5816
|
})
|
|
5756
5817
|
}) : null;
|
|
5757
5818
|
}
|
|
5758
|
-
var
|
|
5759
|
-
let o = e.useContext(
|
|
5819
|
+
var ci = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
|
|
5820
|
+
let o = e.useContext(ni);
|
|
5760
5821
|
return /* @__PURE__ */ g(ee.Trigger, {
|
|
5761
5822
|
...i,
|
|
5762
5823
|
ref: a,
|
|
5763
|
-
className: `${
|
|
5824
|
+
className: `${ei.control} ${t}`,
|
|
5764
5825
|
children: [
|
|
5765
|
-
/* @__PURE__ */ h(
|
|
5826
|
+
/* @__PURE__ */ h(si, { icon: n }),
|
|
5766
5827
|
r,
|
|
5767
5828
|
/* @__PURE__ */ h("span", {
|
|
5768
|
-
className:
|
|
5829
|
+
className: ei.caret,
|
|
5769
5830
|
"aria-hidden": "true",
|
|
5770
5831
|
children: /* @__PURE__ */ h(x, {
|
|
5771
|
-
size:
|
|
5832
|
+
size: ti[o],
|
|
5772
5833
|
color: "currentColor"
|
|
5773
5834
|
})
|
|
5774
5835
|
})
|
|
5775
5836
|
]
|
|
5776
5837
|
});
|
|
5777
5838
|
});
|
|
5778
|
-
|
|
5779
|
-
var
|
|
5839
|
+
ci.displayName = "NavigationMenuTrigger";
|
|
5840
|
+
var li = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
|
|
5780
5841
|
...t,
|
|
5781
5842
|
ref: n,
|
|
5782
|
-
className: `${
|
|
5843
|
+
className: `${ei.content} ${e}`
|
|
5783
5844
|
}));
|
|
5784
|
-
|
|
5785
|
-
var
|
|
5845
|
+
li.displayName = "NavigationMenuContent";
|
|
5846
|
+
var ui = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
|
|
5786
5847
|
...i,
|
|
5787
5848
|
ref: a,
|
|
5788
|
-
className: `${e === "navigation" ?
|
|
5789
|
-
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
5849
|
+
className: `${e === "navigation" ? ei.control : ei.link} ${n}`,
|
|
5850
|
+
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(si, { icon: t }), r] }) : r
|
|
5790
5851
|
}));
|
|
5791
|
-
|
|
5852
|
+
ui.displayName = "NavigationMenuLink";
|
|
5792
5853
|
var $ = {
|
|
5793
5854
|
panel: "_panel_1psyb_7",
|
|
5794
5855
|
header: "_header_1psyb_15",
|
|
@@ -5838,12 +5899,12 @@ var $ = {
|
|
|
5838
5899
|
reasoningIcon: "_reasoningIcon_1psyb_260",
|
|
5839
5900
|
reasoningChevron: "_reasoningChevron_1psyb_262",
|
|
5840
5901
|
reasoningBody: "_reasoningBody_1psyb_264"
|
|
5841
|
-
},
|
|
5842
|
-
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(
|
|
5843
|
-
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(
|
|
5844
|
-
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(
|
|
5902
|
+
}, di = 80, fi = /* @__PURE__ */ g(m, { children: [
|
|
5903
|
+
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "↵" }), " send"] }),
|
|
5904
|
+
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "⇧↵" }), " new line"] }),
|
|
5905
|
+
/* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "esc" }), " close"] })
|
|
5845
5906
|
] });
|
|
5846
|
-
function
|
|
5907
|
+
function pi({ header: e, children: t, composer: n, hints: r = fi, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
|
|
5847
5908
|
let [p, m] = f(null), [_, y] = f(!1), b = d(s);
|
|
5848
5909
|
b.current = s;
|
|
5849
5910
|
let x = i((e) => {
|
|
@@ -5853,7 +5914,7 @@ function ui({ header: e, children: t, composer: n, hints: r = li, className: a =
|
|
|
5853
5914
|
}, []);
|
|
5854
5915
|
return o(() => {
|
|
5855
5916
|
if (!p || !l) return;
|
|
5856
|
-
let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight >
|
|
5917
|
+
let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > di);
|
|
5857
5918
|
p.addEventListener("scroll", e, { passive: !0 });
|
|
5858
5919
|
let t = new MutationObserver(e);
|
|
5859
5920
|
t.observe(p, {
|
|
@@ -5906,7 +5967,7 @@ function ui({ header: e, children: t, composer: n, hints: r = li, className: a =
|
|
|
5906
5967
|
});
|
|
5907
5968
|
}
|
|
5908
5969
|
// src/components/Chat/Message.tsx
|
|
5909
|
-
function
|
|
5970
|
+
function mi({ children: e, className: t = "" }) {
|
|
5910
5971
|
return /* @__PURE__ */ h("div", {
|
|
5911
5972
|
className: $.userRow,
|
|
5912
5973
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -5915,7 +5976,7 @@ function di({ children: e, className: t = "" }) {
|
|
|
5915
5976
|
})
|
|
5916
5977
|
});
|
|
5917
5978
|
}
|
|
5918
|
-
function
|
|
5979
|
+
function hi({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
|
|
5919
5980
|
return /* @__PURE__ */ g("div", {
|
|
5920
5981
|
className: `${$.assistant} ${r}`,
|
|
5921
5982
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -5931,13 +5992,13 @@ function fi({ label: e = "Assistant", icon: t, children: n, className: r = "" })
|
|
|
5931
5992
|
});
|
|
5932
5993
|
}
|
|
5933
5994
|
// src/components/Chat/Composer.tsx
|
|
5934
|
-
var
|
|
5995
|
+
var gi = 18, _i = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: r, streaming: a = !1, placeholder: s = "Ask a question…", disabled: l = !1, autoFocus: u = !1, icon: f, maxLines: p = 6, maxLength: m, className: v = "", "aria-label": b = "Message" }, x) {
|
|
5935
5996
|
let S = d(null);
|
|
5936
5997
|
c(x, () => ({ focus: () => S.current?.focus() }), []), o(() => {
|
|
5937
5998
|
let e = S.current;
|
|
5938
5999
|
if (!e) return;
|
|
5939
6000
|
e.style.height = "auto";
|
|
5940
|
-
let t =
|
|
6001
|
+
let t = gi * p + 12;
|
|
5941
6002
|
e.style.height = `${Math.min(e.scrollHeight, t)}px`;
|
|
5942
6003
|
}, [e, p]);
|
|
5943
6004
|
let C = m !== void 0 && m > 0 && e.length > m, w = !a && !l && !C && e.trim().length > 0, T = i(() => {
|
|
@@ -6004,7 +6065,7 @@ var pi = 18, mi = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
|
|
|
6004
6065
|
});
|
|
6005
6066
|
});
|
|
6006
6067
|
// src/components/Chat/Citation.tsx
|
|
6007
|
-
function
|
|
6068
|
+
function vi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
6008
6069
|
let a = `${$.ref} ${i}`;
|
|
6009
6070
|
return t ? /* @__PURE__ */ h("a", {
|
|
6010
6071
|
href: t,
|
|
@@ -6022,7 +6083,7 @@ function hi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
|
6022
6083
|
children: e
|
|
6023
6084
|
});
|
|
6024
6085
|
}
|
|
6025
|
-
function
|
|
6086
|
+
function yi({ items: e, label: t = "Sources", className: n = "" }) {
|
|
6026
6087
|
return e.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
6027
6088
|
className: `${$.stack} ${n}`,
|
|
6028
6089
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -6031,7 +6092,7 @@ function gi({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
6031
6092
|
}), /* @__PURE__ */ h("div", {
|
|
6032
6093
|
className: $.wrap,
|
|
6033
6094
|
children: e.map((e) => {
|
|
6034
|
-
let t = /* @__PURE__ */ g(
|
|
6095
|
+
let t = /* @__PURE__ */ g(Qn, {
|
|
6035
6096
|
icon: e.icon,
|
|
6036
6097
|
children: [
|
|
6037
6098
|
/* @__PURE__ */ h("span", {
|
|
@@ -6058,7 +6119,7 @@ function gi({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
6058
6119
|
});
|
|
6059
6120
|
}
|
|
6060
6121
|
// src/components/Chat/StreamStatus.tsx
|
|
6061
|
-
function
|
|
6122
|
+
function bi({ children: e, spinner: t, className: n = "" }) {
|
|
6062
6123
|
return /* @__PURE__ */ g("div", {
|
|
6063
6124
|
className: `${$.status} ${n}`,
|
|
6064
6125
|
role: "status",
|
|
@@ -6072,7 +6133,7 @@ function _i({ children: e, spinner: t, className: n = "" }) {
|
|
|
6072
6133
|
});
|
|
6073
6134
|
}
|
|
6074
6135
|
// src/components/Chat/Suggestions.tsx
|
|
6075
|
-
function
|
|
6136
|
+
function xi({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
|
|
6076
6137
|
return /* @__PURE__ */ g("div", {
|
|
6077
6138
|
className: `${$.suggestions} ${r}`,
|
|
6078
6139
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -6090,7 +6151,7 @@ function vi({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
6090
6151
|
});
|
|
6091
6152
|
}
|
|
6092
6153
|
// src/components/Chat/AnswerActions.tsx
|
|
6093
|
-
function
|
|
6154
|
+
function Si({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
|
|
6094
6155
|
return /* @__PURE__ */ g("div", {
|
|
6095
6156
|
className: `${$.actions} ${i}`,
|
|
6096
6157
|
children: [
|
|
@@ -6113,7 +6174,7 @@ function yi({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
|
|
|
6113
6174
|
});
|
|
6114
6175
|
}
|
|
6115
6176
|
// src/components/Chat/ToolStep.tsx
|
|
6116
|
-
function
|
|
6177
|
+
function Ci({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
|
|
6117
6178
|
let [l, u] = f(o), d = s(), p = n === "running" ? /* @__PURE__ */ h(ne, { size: 14 }) : n === "error" ? /* @__PURE__ */ h(F, {
|
|
6118
6179
|
size: 14,
|
|
6119
6180
|
color: "currentColor"
|
|
@@ -6165,7 +6226,7 @@ function bi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defau
|
|
|
6165
6226
|
})]
|
|
6166
6227
|
});
|
|
6167
6228
|
}
|
|
6168
|
-
function
|
|
6229
|
+
function wi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
|
|
6169
6230
|
let [a, o] = f(n), c = s();
|
|
6170
6231
|
return /* @__PURE__ */ h("div", {
|
|
6171
6232
|
className: `${$.toolSteps} ${i}`,
|
|
@@ -6193,7 +6254,7 @@ function xi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "S
|
|
|
6193
6254
|
});
|
|
6194
6255
|
}
|
|
6195
6256
|
// src/components/Chat/Reasoning.tsx
|
|
6196
|
-
function
|
|
6257
|
+
function Ti({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
|
|
6197
6258
|
let [i, a] = f(null), o = s(), c = i ?? t, l = t ? "Thinking…" : n == null ? "Thought" : n < 1 ? "Thought for a moment" : `Thought for ${n}s`, u = h(c ? x : C, {
|
|
6198
6259
|
size: 14,
|
|
6199
6260
|
color: "currentColor"
|
|
@@ -6227,7 +6288,7 @@ function Si({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
|
|
|
6227
6288
|
})]
|
|
6228
6289
|
});
|
|
6229
6290
|
}
|
|
6230
|
-
var
|
|
6291
|
+
var Ei = {
|
|
6231
6292
|
launcherRoot: "_launcherRoot_s5ap7_4",
|
|
6232
6293
|
fixed: "_fixed_s5ap7_6",
|
|
6233
6294
|
contained: "_contained_s5ap7_7",
|
|
@@ -6241,7 +6302,7 @@ var Ci = {
|
|
|
6241
6302
|
footer: "_footer_s5ap7_20"
|
|
6242
6303
|
};
|
|
6243
6304
|
// src/components/Chat/ChatLauncher.tsx
|
|
6244
|
-
function
|
|
6305
|
+
function Di({ title: e, children: t, headerActions: n, footer: r, label: i = "Ask", closeLabel: a = "Close", icon: s, open: c, onOpenChange: l, defaultOpen: u = !1, corner: d = "bottom-right", contained: p = !1, "aria-label": m, className: v = "" }) {
|
|
6245
6306
|
let [y, b] = f(u), x = c ?? y, S = (e) => {
|
|
6246
6307
|
c === void 0 && b(e), l?.(e);
|
|
6247
6308
|
};
|
|
@@ -6252,31 +6313,31 @@ function wi({ title: e, children: t, headerActions: n, footer: r, label: i = "As
|
|
|
6252
6313
|
};
|
|
6253
6314
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
6254
6315
|
});
|
|
6255
|
-
let C = `${p ?
|
|
6316
|
+
let C = `${p ? Ei.contained : Ei.fixed} ${d === "bottom-left" ? Ei.left : Ei.right}`;
|
|
6256
6317
|
return /* @__PURE__ */ g("div", {
|
|
6257
|
-
className: `${
|
|
6318
|
+
className: `${Ei.launcherRoot} ${C} ${v}`,
|
|
6258
6319
|
children: [/* @__PURE__ */ g("section", {
|
|
6259
|
-
className:
|
|
6320
|
+
className: Ei.window,
|
|
6260
6321
|
hidden: !x,
|
|
6261
6322
|
role: "dialog",
|
|
6262
6323
|
"aria-label": m ?? (typeof e == "string" ? e : void 0),
|
|
6263
6324
|
children: [
|
|
6264
6325
|
/* @__PURE__ */ g("div", {
|
|
6265
|
-
className:
|
|
6326
|
+
className: Ei.head,
|
|
6266
6327
|
children: [/* @__PURE__ */ h("span", {
|
|
6267
|
-
className:
|
|
6328
|
+
className: Ei.title,
|
|
6268
6329
|
children: e
|
|
6269
6330
|
}), n && /* @__PURE__ */ h("span", {
|
|
6270
|
-
className:
|
|
6331
|
+
className: Ei.headActions,
|
|
6271
6332
|
children: n
|
|
6272
6333
|
})]
|
|
6273
6334
|
}),
|
|
6274
6335
|
/* @__PURE__ */ h("div", {
|
|
6275
|
-
className:
|
|
6336
|
+
className: Ei.body,
|
|
6276
6337
|
children: t
|
|
6277
6338
|
}),
|
|
6278
6339
|
r && /* @__PURE__ */ h("div", {
|
|
6279
|
-
className:
|
|
6340
|
+
className: Ei.footer,
|
|
6280
6341
|
children: r
|
|
6281
6342
|
})
|
|
6282
6343
|
]
|
|
@@ -6289,20 +6350,20 @@ function wi({ title: e, children: t, headerActions: n, footer: r, label: i = "As
|
|
|
6289
6350
|
})]
|
|
6290
6351
|
});
|
|
6291
6352
|
}
|
|
6292
|
-
var
|
|
6353
|
+
var Oi = {
|
|
6293
6354
|
truncate: "_truncate_za4sm_1",
|
|
6294
6355
|
start: "_start_za4sm_13"
|
|
6295
6356
|
};
|
|
6296
6357
|
// src/components/Truncate/Truncate.tsx
|
|
6297
|
-
function
|
|
6358
|
+
function ki({ children: e, side: t = "end", title: n, className: r = "" }) {
|
|
6298
6359
|
let i = n ?? (typeof e == "string" ? e : void 0);
|
|
6299
6360
|
return /* @__PURE__ */ h("span", {
|
|
6300
|
-
className: `${
|
|
6361
|
+
className: `${Oi.truncate} ${t === "start" ? Oi.start : ""} ${r}`,
|
|
6301
6362
|
title: i,
|
|
6302
6363
|
children: t === "start" ? /* @__PURE__ */ h("bdi", { children: e }) : e
|
|
6303
6364
|
});
|
|
6304
6365
|
}
|
|
6305
|
-
var
|
|
6366
|
+
var Ai = {
|
|
6306
6367
|
disclosure: "_disclosure_94bgy_1",
|
|
6307
6368
|
trigger: "_trigger_94bgy_7",
|
|
6308
6369
|
summary: "_summary_94bgy_31",
|
|
@@ -6310,24 +6371,24 @@ var Di = {
|
|
|
6310
6371
|
content: "_content_94bgy_43"
|
|
6311
6372
|
};
|
|
6312
6373
|
// src/components/Disclosure/Disclosure.tsx
|
|
6313
|
-
function
|
|
6374
|
+
function ji({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
|
|
6314
6375
|
let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
|
|
6315
6376
|
return /* @__PURE__ */ g("div", {
|
|
6316
|
-
className: `${
|
|
6377
|
+
className: `${Ai.disclosure} ${o}`,
|
|
6317
6378
|
"data-state": l ? "open" : "closed",
|
|
6318
6379
|
children: [/* @__PURE__ */ g("button", {
|
|
6319
6380
|
type: "button",
|
|
6320
|
-
className:
|
|
6381
|
+
className: Ai.trigger,
|
|
6321
6382
|
"aria-expanded": l,
|
|
6322
6383
|
"aria-controls": l ? u : void 0,
|
|
6323
6384
|
onClick: () => {
|
|
6324
6385
|
r === void 0 && c(!l), a?.(!l);
|
|
6325
6386
|
},
|
|
6326
6387
|
children: [/* @__PURE__ */ h("span", {
|
|
6327
|
-
className:
|
|
6388
|
+
className: Ai.summary,
|
|
6328
6389
|
children: t
|
|
6329
6390
|
}), /* @__PURE__ */ h("span", {
|
|
6330
|
-
className:
|
|
6391
|
+
className: Ai.chevron,
|
|
6331
6392
|
"aria-hidden": "true",
|
|
6332
6393
|
children: h(l ? x : C, {
|
|
6333
6394
|
size: 14,
|
|
@@ -6336,18 +6397,18 @@ function Oi({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
|
|
|
6336
6397
|
})]
|
|
6337
6398
|
}), l && /* @__PURE__ */ h("div", {
|
|
6338
6399
|
id: u,
|
|
6339
|
-
className:
|
|
6400
|
+
className: Ai.content,
|
|
6340
6401
|
children: n
|
|
6341
6402
|
})]
|
|
6342
6403
|
});
|
|
6343
6404
|
}
|
|
6344
|
-
var
|
|
6405
|
+
var Mi = {
|
|
6345
6406
|
field: "_field_5juos_1",
|
|
6346
6407
|
code: "_code_5juos_16",
|
|
6347
6408
|
status: "_status_5juos_31"
|
|
6348
6409
|
};
|
|
6349
6410
|
// src/components/CodeCopy/CodeCopy.tsx
|
|
6350
|
-
async function
|
|
6411
|
+
async function Ni(e) {
|
|
6351
6412
|
if (navigator.clipboard && window.isSecureContext) try {
|
|
6352
6413
|
return await navigator.clipboard.writeText(e), !0;
|
|
6353
6414
|
} catch {}
|
|
@@ -6361,13 +6422,13 @@ async function Ai(e) {
|
|
|
6361
6422
|
t.remove();
|
|
6362
6423
|
}
|
|
6363
6424
|
}
|
|
6364
|
-
function
|
|
6425
|
+
function Pi({ code: e, className: t, onCopy: n }) {
|
|
6365
6426
|
let [r, i] = f(!1), a = d(void 0);
|
|
6366
6427
|
return o(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g("div", {
|
|
6367
|
-
className: [
|
|
6428
|
+
className: [Mi.field, t].filter(Boolean).join(" "),
|
|
6368
6429
|
children: [
|
|
6369
6430
|
/* @__PURE__ */ h("code", {
|
|
6370
|
-
className:
|
|
6431
|
+
className: Mi.code,
|
|
6371
6432
|
children: e
|
|
6372
6433
|
}),
|
|
6373
6434
|
/* @__PURE__ */ h(W, {
|
|
@@ -6375,17 +6436,17 @@ function ji({ code: e, className: t, onCopy: n }) {
|
|
|
6375
6436
|
variant: "ghost",
|
|
6376
6437
|
iconLeft: h(r ? b : w, {}),
|
|
6377
6438
|
onClick: async () => {
|
|
6378
|
-
await
|
|
6439
|
+
await Ni(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
|
|
6379
6440
|
},
|
|
6380
6441
|
"aria-label": r ? "Copied" : "Copy",
|
|
6381
6442
|
title: r ? "Copied" : "Copy"
|
|
6382
6443
|
}),
|
|
6383
6444
|
/* @__PURE__ */ h("span", {
|
|
6384
|
-
className:
|
|
6445
|
+
className: Mi.status,
|
|
6385
6446
|
role: "status",
|
|
6386
6447
|
children: r ? "Copied" : ""
|
|
6387
6448
|
})
|
|
6388
6449
|
]
|
|
6389
6450
|
});
|
|
6390
6451
|
}
|
|
6391
|
-
export {
|
|
6452
|
+
export { nr as Alert, ir as AlertDescription, rr as AlertTitle, Si as AnswerActions, hi as AssistantMessage, wt as BarMeter, De as BarSlider, le as Base, ut as Breadcrumbs, W as Button, br as Chart, Di as ChatLauncher, pi as ChatPanel, se as Checkbox, Qn as Chip, yi as CitationList, vi as CitationRef, Pi as CodeCopy, wn as Combobox, tn as CommandPalette, _i as Composer, Fr as DatePicker, ji as Disclosure, En as EmptyState, de as FilterPanelBase, Zt as GroupedBars, Nt as Heatmap, Le as HistogramRange, $r as Icicle, ge as InputField, $t as Kbd, Or as Modal, ii as NavigationMenu, li as NavigationMenuContent, oi as NavigationMenuItem, ui as NavigationMenuLink, ai as NavigationMenuList, ci as NavigationMenuTrigger, pt as Pagination, He as Popover, Ue as PopoverDivider, ie as PortalContainerProvider, ht as ProgressBar, Gt as RadarChart, Rt as RadialChart, ve as RadioButton, Ti as Reasoning, Nn as Resizable, Br as STAT_ICON_SIZE, or as SaveBar, qr as ScoreMeter, Ae as ScrubSlider, me as SearchField, st as SegmentedControl, ze as Select, On as Sheet, Wr as ShimmerText, Sn as Sidebar, Rr as Skeleton, Se as Slider, Ne as SliderField, wr as Sparkline, ne as Spinner, Vr as Stat, Hr as StatGroup, Yr as StepProgress, bi as StreamStatus, xi as Suggestions, Xe as Table, $e as TableCell, Ze as TableHeader, tt as TableIcon, Qe as TableRow, et as TableValue, at as Tabs, rn as TagsInput, Er as Textarea, mn as Toaster, be as ToggleSwitch, Ci as ToolStep, wi as ToolSteps, gn as Tooltip, Jn as TreeCanvas, ki as Truncate, mi as UserMessage, kt as Waffle, Ot as allocateCells, Ie as barsOf, It as calendarCells, fi as defaultChatHints, Mt as levelOf, ft as paginationItems, U as spinnerNames, dn as toast, ae as usePortalContainer };
|