@inkorange/space-ui 1.8.0 → 1.9.0
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +820 -820
- package/dist/space-ui.css +1 -1
- package/dist/tokens.css +29 -12
- package/package.json +14 -13
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { forwardRef as ae, createElement as ot, isValidElement as
|
|
3
|
-
import { jsx as n, jsxs as
|
|
4
|
-
const
|
|
2
|
+
import { forwardRef as ae, createElement as ot, isValidElement as ze, cloneElement as Xe, useId as se, useMemo as _e, Children as pt, useRef as F, useState as Q, useCallback as pe, useLayoutEffect as we, useEffect as te, createContext as Re, useContext as Ee } from "react";
|
|
3
|
+
import { jsx as n, jsxs as L, Fragment as he } from "react/jsx-runtime";
|
|
4
|
+
const Ie = {
|
|
5
5
|
0: "0",
|
|
6
6
|
1: "var(--spacing-xs)",
|
|
7
7
|
2: "var(--spacing-sm)",
|
|
@@ -12,46 +12,46 @@ const ze = {
|
|
|
12
12
|
};
|
|
13
13
|
function ve({ m: e, mt: t, mb: o, p: r, pb: a }, l) {
|
|
14
14
|
const s = {
|
|
15
|
-
...e !== void 0 && { margin:
|
|
16
|
-
...t !== void 0 && { marginTop:
|
|
17
|
-
...o !== void 0 && { marginBottom:
|
|
18
|
-
...r !== void 0 && { padding:
|
|
19
|
-
...a !== void 0 && { paddingBottom:
|
|
15
|
+
...e !== void 0 && { margin: Ie[e] },
|
|
16
|
+
...t !== void 0 && { marginTop: Ie[t] },
|
|
17
|
+
...o !== void 0 && { marginBottom: Ie[o] },
|
|
18
|
+
...r !== void 0 && { padding: Ie[r] },
|
|
19
|
+
...a !== void 0 && { paddingBottom: Ie[a] },
|
|
20
20
|
...l
|
|
21
21
|
};
|
|
22
22
|
return Object.keys(s).length > 0 ? s : void 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function z(...e) {
|
|
25
25
|
return e.filter(Boolean).join(" ");
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
text:
|
|
29
|
-
size1:
|
|
30
|
-
size2:
|
|
27
|
+
const Ht = "_text_rzzow_1", St = "_size1_rzzow_5", qt = "_size2_rzzow_11", Tt = "_size3_rzzow_16", At = "_size4_rzzow_21", Ot = "_size5_rzzow_27", Zt = "_size6_rzzow_33", Bt = "_medium_rzzow_39", Vt = "_bold_rzzow_43", Wt = "_colorMuted_rzzow_47", Pt = "_colorDanger_rzzow_51", Ft = "_colorSuccess_rzzow_55", jt = "_colorWarning_rzzow_59", We = {
|
|
28
|
+
text: Ht,
|
|
29
|
+
size1: St,
|
|
30
|
+
size2: qt,
|
|
31
31
|
size3: Tt,
|
|
32
32
|
size4: At,
|
|
33
|
-
size5:
|
|
34
|
-
size6:
|
|
35
|
-
medium:
|
|
36
|
-
bold:
|
|
37
|
-
colorMuted:
|
|
38
|
-
colorDanger:
|
|
39
|
-
colorSuccess:
|
|
40
|
-
colorWarning:
|
|
33
|
+
size5: Ot,
|
|
34
|
+
size6: Zt,
|
|
35
|
+
medium: Bt,
|
|
36
|
+
bold: Vt,
|
|
37
|
+
colorMuted: Wt,
|
|
38
|
+
colorDanger: Pt,
|
|
39
|
+
colorSuccess: Ft,
|
|
40
|
+
colorWarning: jt
|
|
41
41
|
}, Gt = ae(function({ as: t = "span", size: o, weight: r, color: a, className: l, style: s, m: c, mt: h, mb: m, p: i, pb: g, ...$ }, w) {
|
|
42
42
|
return ot(t, {
|
|
43
43
|
...$,
|
|
44
44
|
ref: w,
|
|
45
|
-
className:
|
|
46
|
-
|
|
47
|
-
o &&
|
|
48
|
-
r &&
|
|
49
|
-
a &&
|
|
45
|
+
className: z(
|
|
46
|
+
We.text,
|
|
47
|
+
o && We[`size${o}`],
|
|
48
|
+
r && We[r],
|
|
49
|
+
a && We[`color${a[0].toUpperCase()}${a.slice(1)}`],
|
|
50
50
|
l
|
|
51
51
|
),
|
|
52
52
|
style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
|
|
53
53
|
});
|
|
54
|
-
}), Ut = "
|
|
54
|
+
}), Ut = "_heading_15fm0_1", Kt = "_size4_15fm0_7", Xt = "_size5_15fm0_13", Yt = "_size6_15fm0_19", Qt = "_size7_15fm0_25", Jt = "_size8_15fm0_31", en = "_size9_15fm0_37", tn = "_colorMuted_15fm0_43", nn = "_colorDanger_15fm0_47", on = "_alignCenter_15fm0_51", He = {
|
|
55
55
|
heading: Ut,
|
|
56
56
|
size4: Kt,
|
|
57
57
|
size5: Xt,
|
|
@@ -66,38 +66,38 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
66
66
|
return ot(t, {
|
|
67
67
|
...$,
|
|
68
68
|
ref: w,
|
|
69
|
-
className:
|
|
70
|
-
|
|
71
|
-
o &&
|
|
72
|
-
r === "muted" &&
|
|
73
|
-
r === "danger" &&
|
|
74
|
-
a === "center" &&
|
|
69
|
+
className: z(
|
|
70
|
+
He.heading,
|
|
71
|
+
o && He[`size${o}`],
|
|
72
|
+
r === "muted" && He.colorMuted,
|
|
73
|
+
r === "danger" && He.colorDanger,
|
|
74
|
+
a === "center" && He.alignCenter,
|
|
75
75
|
l
|
|
76
76
|
),
|
|
77
77
|
style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
|
|
78
78
|
});
|
|
79
|
-
}), sn = "
|
|
79
|
+
}), sn = "_link_1o4sa_1", an = "_size1_1o4sa_10", ln = "_size2_1o4sa_16", cn = "_size3_1o4sa_21", at = {
|
|
80
80
|
link: sn,
|
|
81
81
|
size1: an,
|
|
82
82
|
size2: ln,
|
|
83
83
|
size3: cn
|
|
84
84
|
}, al = ae(function({ asChild: t, size: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, children: i, ...g }, $) {
|
|
85
|
-
const w =
|
|
86
|
-
if (t &&
|
|
85
|
+
const w = z(at.link, o && at[`size${o}`], r), _ = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
|
|
86
|
+
if (t && ze(i)) {
|
|
87
87
|
const b = i;
|
|
88
88
|
return Xe(b, {
|
|
89
89
|
...g,
|
|
90
|
-
className:
|
|
91
|
-
style: { ...
|
|
90
|
+
className: z(w, b.props.className),
|
|
91
|
+
style: { ..._, ...b.props.style }
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return /* @__PURE__ */ n("a", { ...g, ref: $, className: w, style:
|
|
95
|
-
}), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9",
|
|
94
|
+
return /* @__PURE__ */ n("a", { ...g, ref: $, className: w, style: _, children: i });
|
|
95
|
+
}), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9", pn = "_gap3_v4ziu_13", _n = "_gap4_v4ziu_17", hn = "_gap5_v4ziu_21", mn = "_gap6_v4ziu_25", gn = "_directionRow_v4ziu_29", Cn = "_directionColumn_v4ziu_33", vn = "_alignStart_v4ziu_37", bn = "_alignCenter_v4ziu_41", $n = "_alignEnd_v4ziu_45", wn = "_alignBaseline_v4ziu_49", yn = "_alignStretch_v4ziu_53", xn = "_justifyStart_v4ziu_57", Nn = "_justifyCenter_v4ziu_61", Ln = "_justifyEnd_v4ziu_65", Mn = "_justifyBetween_v4ziu_69", kn = "_wrapWrap_v4ziu_73", zn = "_wrapNowrap_v4ziu_77", ye = {
|
|
96
96
|
flex: dn,
|
|
97
97
|
gap1: un,
|
|
98
98
|
gap2: fn,
|
|
99
|
-
gap3:
|
|
100
|
-
gap4:
|
|
99
|
+
gap3: pn,
|
|
100
|
+
gap4: _n,
|
|
101
101
|
gap5: hn,
|
|
102
102
|
gap6: mn,
|
|
103
103
|
directionRow: gn,
|
|
@@ -106,68 +106,68 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
106
106
|
alignCenter: bn,
|
|
107
107
|
alignEnd: $n,
|
|
108
108
|
alignBaseline: wn,
|
|
109
|
-
alignStretch:
|
|
110
|
-
justifyStart:
|
|
111
|
-
justifyCenter:
|
|
112
|
-
justifyEnd:
|
|
113
|
-
justifyBetween:
|
|
114
|
-
wrapWrap:
|
|
115
|
-
wrapNowrap:
|
|
116
|
-
},
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
o &&
|
|
120
|
-
r &&
|
|
121
|
-
a &&
|
|
122
|
-
l &&
|
|
123
|
-
s &&
|
|
109
|
+
alignStretch: yn,
|
|
110
|
+
justifyStart: xn,
|
|
111
|
+
justifyCenter: Nn,
|
|
112
|
+
justifyEnd: Ln,
|
|
113
|
+
justifyBetween: Mn,
|
|
114
|
+
wrapWrap: kn,
|
|
115
|
+
wrapNowrap: zn
|
|
116
|
+
}, Pe = (e) => e[0].toUpperCase() + e.slice(1), ll = ae(function({ asChild: t, gap: o, direction: r, align: a, justify: l, wrap: s, className: c, style: h, m, mt: i, mb: g, p: $, pb: w, children: _, ...b }, v) {
|
|
117
|
+
const k = z(
|
|
118
|
+
ye.flex,
|
|
119
|
+
o && ye[`gap${o}`],
|
|
120
|
+
r && ye[`direction${Pe(r)}`],
|
|
121
|
+
a && ye[`align${Pe(a)}`],
|
|
122
|
+
l && ye[`justify${Pe(l)}`],
|
|
123
|
+
s && ye[`wrap${Pe(s)}`],
|
|
124
124
|
c
|
|
125
|
-
),
|
|
126
|
-
if (t &&
|
|
127
|
-
const
|
|
128
|
-
return Xe(
|
|
125
|
+
), I = ve({ m, mt: i, mb: g, p: $, pb: w }, h);
|
|
126
|
+
if (t && ze(_)) {
|
|
127
|
+
const H = _;
|
|
128
|
+
return Xe(H, {
|
|
129
129
|
...b,
|
|
130
|
-
className:
|
|
131
|
-
style: { ...
|
|
130
|
+
className: z(k, H.props.className),
|
|
131
|
+
style: { ...I, ...H.props.style }
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
return /* @__PURE__ */ n("div", { ...b, ref: v, className:
|
|
134
|
+
return /* @__PURE__ */ n("div", { ...b, ref: v, className: k, style: I, children: _ });
|
|
135
135
|
}), cl = ae(function({ style: t, m: o, mt: r, mb: a, p: l, pb: s, ...c }, h) {
|
|
136
136
|
return /* @__PURE__ */ n("div", { ...c, ref: h, style: ve({ m: o, mt: r, mb: a, p: l, pb: s }, t) });
|
|
137
|
-
}),
|
|
138
|
-
grid:
|
|
139
|
-
cols1:
|
|
137
|
+
}), Rn = "_grid_erpqq_1", En = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", In = "_cols3_erpqq_13", Hn = "_smCols2_erpqq_18", Sn = "_smCols3_erpqq_21", qn = "_mdCols2_erpqq_26", Tn = "_mdCols3_erpqq_29", An = "_gap1_erpqq_33", On = "_gap2_erpqq_37", Zn = "_gap3_erpqq_41", Bn = "_gap4_erpqq_45", Vn = "_gap5_erpqq_49", Wn = "_gap6_erpqq_53", xe = {
|
|
138
|
+
grid: Rn,
|
|
139
|
+
cols1: En,
|
|
140
140
|
cols2: Dn,
|
|
141
|
-
cols3:
|
|
142
|
-
smCols2:
|
|
143
|
-
smCols3:
|
|
144
|
-
mdCols2:
|
|
141
|
+
cols3: In,
|
|
142
|
+
smCols2: Hn,
|
|
143
|
+
smCols3: Sn,
|
|
144
|
+
mdCols2: qn,
|
|
145
145
|
mdCols3: Tn,
|
|
146
146
|
gap1: An,
|
|
147
|
-
gap2:
|
|
148
|
-
gap3:
|
|
149
|
-
gap4:
|
|
150
|
-
gap5:
|
|
151
|
-
gap6:
|
|
147
|
+
gap2: On,
|
|
148
|
+
gap3: Zn,
|
|
149
|
+
gap4: Bn,
|
|
150
|
+
gap5: Vn,
|
|
151
|
+
gap6: Wn
|
|
152
152
|
}, il = ae(function({ columns: t, gap: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
|
|
153
|
-
const $ = typeof t == "string" ? [
|
|
154
|
-
t.initial &&
|
|
155
|
-
t.sm &&
|
|
156
|
-
t.md &&
|
|
153
|
+
const $ = typeof t == "string" ? [xe[`cols${t}`]] : t ? [
|
|
154
|
+
t.initial && xe[`cols${t.initial}`],
|
|
155
|
+
t.sm && xe[`smCols${t.sm}`],
|
|
156
|
+
t.md && xe[`mdCols${t.md}`]
|
|
157
157
|
] : [];
|
|
158
158
|
return /* @__PURE__ */ n(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
...i,
|
|
162
162
|
ref: g,
|
|
163
|
-
className:
|
|
163
|
+
className: z(xe.grid, ...$, o && xe[`gap${o}`], r),
|
|
164
164
|
style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, a)
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
|
-
}),
|
|
168
|
-
badge:
|
|
169
|
-
size1:
|
|
170
|
-
size2:
|
|
167
|
+
}), Pn = "_badge_3q9da_2", Fn = "_size1_3q9da_10", jn = "_size2_3q9da_17", Gn = "_colorMuted_3q9da_24", Un = "_colorPrimary_3q9da_29", Kn = "_colorSuccess_3q9da_34", Xn = "_colorDanger_3q9da_39", Yn = "_colorWarning_3q9da_44", Qn = "_colorCyan_3q9da_49", Jn = "_colorPurple_3q9da_54", eo = "_colorOrange_3q9da_59", to = "_colorAccent_3q9da_64", no = "_colorYellow_3q9da_69", oo = "_solid_3q9da_77", ro = "_wrap_3q9da_85", Se = {
|
|
168
|
+
badge: Pn,
|
|
169
|
+
size1: Fn,
|
|
170
|
+
size2: jn,
|
|
171
171
|
colorMuted: Gn,
|
|
172
172
|
colorPrimary: Un,
|
|
173
173
|
colorSuccess: Kn,
|
|
@@ -186,12 +186,12 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
186
186
|
{
|
|
187
187
|
...$,
|
|
188
188
|
ref: w,
|
|
189
|
-
className:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
o === "solid" &&
|
|
193
|
-
|
|
194
|
-
a &&
|
|
189
|
+
className: z(
|
|
190
|
+
Se.badge,
|
|
191
|
+
Se[`color${so(t)}`],
|
|
192
|
+
o === "solid" && Se.solid,
|
|
193
|
+
Se[`size${r}`],
|
|
194
|
+
a && Se.wrap,
|
|
195
195
|
l
|
|
196
196
|
),
|
|
197
197
|
style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
|
|
@@ -207,20 +207,20 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
207
207
|
...r,
|
|
208
208
|
ref: a,
|
|
209
209
|
role: "separator",
|
|
210
|
-
className:
|
|
210
|
+
className: z(lt.separator, t === "4" && lt.full, o)
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}), co = "
|
|
213
|
+
}), co = "_card_4k34c_2", io = "_image_4k34c_14", uo = "_hasImage_4k34c_41", Je = {
|
|
214
214
|
card: co,
|
|
215
215
|
image: io,
|
|
216
216
|
hasImage: uo
|
|
217
217
|
}, fl = ae(function({ className: t, style: o, image: r, children: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
|
|
218
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ L(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
221
221
|
...i,
|
|
222
222
|
ref: g,
|
|
223
|
-
className:
|
|
223
|
+
className: z(Je.card, r != null && Je.hasImage, t),
|
|
224
224
|
style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, o),
|
|
225
225
|
children: [
|
|
226
226
|
r != null && /* @__PURE__ */ n("div", { className: Je.image, children: r }),
|
|
@@ -228,10 +228,10 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
}), fo = "
|
|
231
|
+
}), fo = "_spaceButton_1ewbr_14", po = "_rimRotate_1ewbr_1", _o = "_glintSweep_1ewbr_1", ho = "_iconOnly_1ewbr_105", mo = "_lg_1ewbr_113", go = "_sm_1ewbr_120", Co = "_micro_1ewbr_133", vo = "_stars_1ewbr_150", bo = "_fullWidth_1ewbr_155", $o = "_ember_1ewbr_161", wo = "_label_1ewbr_171", yo = "_star_1ewbr_150", xo = "_twinkle_1ewbr_1", ge = {
|
|
232
232
|
spaceButton: fo,
|
|
233
|
-
rimRotate:
|
|
234
|
-
glintSweep:
|
|
233
|
+
rimRotate: po,
|
|
234
|
+
glintSweep: _o,
|
|
235
235
|
iconOnly: ho,
|
|
236
236
|
lg: mo,
|
|
237
237
|
sm: go,
|
|
@@ -240,17 +240,17 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
|
|
|
240
240
|
fullWidth: bo,
|
|
241
241
|
ember: $o,
|
|
242
242
|
label: wo,
|
|
243
|
-
star:
|
|
244
|
-
twinkle:
|
|
243
|
+
star: yo,
|
|
244
|
+
twinkle: xo
|
|
245
245
|
};
|
|
246
|
-
function
|
|
246
|
+
function No(e) {
|
|
247
247
|
return function() {
|
|
248
248
|
e |= 0, e = e + 1831565813 | 0;
|
|
249
249
|
let t = Math.imul(e ^ e >>> 15, 1 | e);
|
|
250
250
|
return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Lo(e) {
|
|
254
254
|
let t = 2166136261;
|
|
255
255
|
for (let o = 0; o < e.length; o++)
|
|
256
256
|
t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
|
|
@@ -258,8 +258,8 @@ function No(e) {
|
|
|
258
258
|
}
|
|
259
259
|
const Ue = ae(
|
|
260
260
|
function({ iconOnly: t, ember: o, size: r = "md", fullWidth: a, animated: l = !0, className: s, children: c, ...h }, m) {
|
|
261
|
-
const i = se(), g =
|
|
262
|
-
const w =
|
|
261
|
+
const i = se(), g = _e(() => {
|
|
262
|
+
const w = No(Lo(i));
|
|
263
263
|
return Array.from({ length: 3 }, () => ({
|
|
264
264
|
top: `${12 + w() * 58}%`,
|
|
265
265
|
left: `${8 + w() * 80}%`,
|
|
@@ -274,7 +274,7 @@ const Ue = ae(
|
|
|
274
274
|
a ? ge.fullWidth : "",
|
|
275
275
|
s ?? ""
|
|
276
276
|
].filter(Boolean).join(" ");
|
|
277
|
-
return /* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ L(
|
|
278
278
|
"button",
|
|
279
279
|
{
|
|
280
280
|
ref: m,
|
|
@@ -282,7 +282,7 @@ const Ue = ae(
|
|
|
282
282
|
"data-animated": l ? void 0 : "false",
|
|
283
283
|
...h,
|
|
284
284
|
children: [
|
|
285
|
-
r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: g.map((w,
|
|
285
|
+
r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: g.map((w, _) => /* @__PURE__ */ n("i", { className: ge.star, style: w }, _)) }),
|
|
286
286
|
/* @__PURE__ */ n("span", { className: ge.label, children: c })
|
|
287
287
|
]
|
|
288
288
|
}
|
|
@@ -296,7 +296,7 @@ const Ue = ae(
|
|
|
296
296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
297
297
|
"aria-hidden": !0
|
|
298
298
|
};
|
|
299
|
-
function
|
|
299
|
+
function pl(e) {
|
|
300
300
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
301
301
|
"path",
|
|
302
302
|
{
|
|
@@ -307,7 +307,7 @@ function _l(e) {
|
|
|
307
307
|
}
|
|
308
308
|
) });
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function _l(e) {
|
|
311
311
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
312
312
|
"path",
|
|
313
313
|
{
|
|
@@ -406,7 +406,7 @@ function wl(e) {
|
|
|
406
406
|
}
|
|
407
407
|
) });
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function yl(e) {
|
|
410
410
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
411
411
|
"path",
|
|
412
412
|
{
|
|
@@ -417,7 +417,7 @@ function xl(e) {
|
|
|
417
417
|
}
|
|
418
418
|
) });
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function xl(e) {
|
|
421
421
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
422
422
|
"path",
|
|
423
423
|
{
|
|
@@ -428,7 +428,7 @@ function yl(e) {
|
|
|
428
428
|
}
|
|
429
429
|
) });
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Nl(e) {
|
|
432
432
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
433
433
|
"path",
|
|
434
434
|
{
|
|
@@ -439,7 +439,7 @@ function kl(e) {
|
|
|
439
439
|
}
|
|
440
440
|
) });
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ll(e) {
|
|
443
443
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
444
444
|
"path",
|
|
445
445
|
{
|
|
@@ -450,7 +450,7 @@ function Nl(e) {
|
|
|
450
450
|
}
|
|
451
451
|
) });
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ml(e) {
|
|
454
454
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
455
455
|
"path",
|
|
456
456
|
{
|
|
@@ -461,7 +461,7 @@ function Ll(e) {
|
|
|
461
461
|
}
|
|
462
462
|
) });
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function kl(e) {
|
|
465
465
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
466
466
|
"path",
|
|
467
467
|
{
|
|
@@ -472,7 +472,7 @@ function Ml(e) {
|
|
|
472
472
|
}
|
|
473
473
|
) });
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function _t(e) {
|
|
476
476
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
477
477
|
"path",
|
|
478
478
|
{
|
|
@@ -494,7 +494,7 @@ function ht(e) {
|
|
|
494
494
|
}
|
|
495
495
|
) });
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function zl(e) {
|
|
498
498
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
499
499
|
"path",
|
|
500
500
|
{
|
|
@@ -505,7 +505,7 @@ function Rl(e) {
|
|
|
505
505
|
}
|
|
506
506
|
) });
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Mo(e) {
|
|
509
509
|
return /* @__PURE__ */ n("svg", { viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", ...e, children: /* @__PURE__ */ n(
|
|
510
510
|
"path",
|
|
511
511
|
{
|
|
@@ -514,7 +514,7 @@ function Lo(e) {
|
|
|
514
514
|
}
|
|
515
515
|
) });
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function ko(e) {
|
|
518
518
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
519
519
|
"path",
|
|
520
520
|
{
|
|
@@ -525,7 +525,7 @@ function Mo(e) {
|
|
|
525
525
|
}
|
|
526
526
|
) });
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function zo(e) {
|
|
529
529
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
530
530
|
"path",
|
|
531
531
|
{
|
|
@@ -536,7 +536,7 @@ function Ro(e) {
|
|
|
536
536
|
}
|
|
537
537
|
) });
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Ro(e) {
|
|
540
540
|
return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
|
|
541
541
|
"path",
|
|
542
542
|
{
|
|
@@ -547,19 +547,19 @@ function Eo(e) {
|
|
|
547
547
|
}
|
|
548
548
|
) });
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
root:
|
|
550
|
+
const Eo = "_root_tv9ho_12", Do = "_viewport_tv9ho_17", Io = "_track_tv9ho_21", Ho = "_slide_tv9ho_66", So = "_arrow_tv9ho_78", qo = "_prev_tv9ho_99", To = "_next_tv9ho_104", Ao = "_arrowButton_tv9ho_109", Oo = "_dots_tv9ho_115", Zo = "_dot_tv9ho_115", le = {
|
|
551
|
+
root: Eo,
|
|
552
552
|
viewport: Do,
|
|
553
|
-
track:
|
|
554
|
-
slide:
|
|
555
|
-
arrow:
|
|
556
|
-
prev:
|
|
553
|
+
track: Io,
|
|
554
|
+
slide: Ho,
|
|
555
|
+
arrow: So,
|
|
556
|
+
prev: qo,
|
|
557
557
|
next: To,
|
|
558
558
|
arrowButton: Ao,
|
|
559
|
-
dots:
|
|
560
|
-
dot:
|
|
559
|
+
dots: Oo,
|
|
560
|
+
dot: Zo
|
|
561
561
|
};
|
|
562
|
-
function
|
|
562
|
+
function Rl({
|
|
563
563
|
children: e,
|
|
564
564
|
perView: t = 1,
|
|
565
565
|
step: o = "item",
|
|
@@ -569,101 +569,101 @@ function El({
|
|
|
569
569
|
"aria-label": s = "Carousel",
|
|
570
570
|
...c
|
|
571
571
|
}) {
|
|
572
|
-
const h =
|
|
573
|
-
}),
|
|
572
|
+
const h = pt.toArray(e), m = h.length, i = se(), g = F(null), $ = o === "page" ? Math.max(1, Math.floor(t)) : 1, w = m <= t ? 1 : o === "page" ? Math.ceil((m - t) / $) + 1 : Math.ceil(m - t) + 1, [_, b] = Q($), [v, k] = Q(Math.max(1, w)), [I, H] = Q(0), [Y, U] = Q(!0), [D, T] = Q(m <= t), B = F([0]), X = F(0), x = F(0), M = F(() => {
|
|
573
|
+
}), S = pe(() => {
|
|
574
574
|
const C = g.current;
|
|
575
575
|
if (!C) return;
|
|
576
|
-
const
|
|
577
|
-
if (Math.abs(
|
|
578
|
-
|
|
576
|
+
const N = C.scrollLeft, V = Math.max(0, C.scrollWidth - C.clientWidth);
|
|
577
|
+
if (Math.abs(V - X.current) > 1) {
|
|
578
|
+
M.current();
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
const
|
|
582
|
-
let
|
|
583
|
-
G ?
|
|
584
|
-
Math.abs(
|
|
585
|
-
}),
|
|
586
|
-
}, []),
|
|
581
|
+
const W = N <= 1, G = N >= x.current - 1;
|
|
582
|
+
let p = 0;
|
|
583
|
+
G ? p = B.current.length - 1 : W || B.current.forEach((y, d) => {
|
|
584
|
+
Math.abs(y - N) <= Math.abs(B.current[p] - N) && (p = d);
|
|
585
|
+
}), H(p), U(W), T(G);
|
|
586
|
+
}, []), j = pe(() => {
|
|
587
587
|
const C = g.current;
|
|
588
588
|
if (!C) return;
|
|
589
|
-
const
|
|
590
|
-
if (!
|
|
591
|
-
const
|
|
592
|
-
Math.max(0, Math.min(
|
|
593
|
-
),
|
|
594
|
-
|
|
595
|
-
if (
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
}), u > 0 &&
|
|
599
|
-
}, [o,
|
|
589
|
+
const N = Array.from(C.children);
|
|
590
|
+
if (!N.length) return;
|
|
591
|
+
const V = Math.max(0, C.scrollWidth - C.clientWidth), W = N[0], G = N.length > 1 ? N[1].offsetLeft - W.offsetLeft - W.offsetWidth : 0, p = (C.clientWidth + G) / (W.offsetWidth + G), y = o === "page" ? Math.max(1, Math.floor(p + 0.01)) : 1, d = N[N.length - 1], u = Math.round(
|
|
592
|
+
Math.max(0, Math.min(V, d.offsetLeft - W.offsetLeft + d.offsetWidth - C.clientWidth))
|
|
593
|
+
), E = [];
|
|
594
|
+
N.forEach((O, Z) => {
|
|
595
|
+
if (Z % y !== 0) return;
|
|
596
|
+
const P = Math.round(Math.min(O.offsetLeft - W.offsetLeft, u));
|
|
597
|
+
E[E.length - 1] !== P && E.push(P);
|
|
598
|
+
}), u > 0 && E[E.length - 1] < u - 1 && E.push(u), B.current = E, X.current = Math.round(V), x.current = u, b(y), k(E.length), S();
|
|
599
|
+
}, [o, S]);
|
|
600
600
|
we(() => {
|
|
601
|
-
|
|
602
|
-
}, [
|
|
601
|
+
M.current = j, j();
|
|
602
|
+
}, [j, m]), te(() => {
|
|
603
603
|
const C = g.current;
|
|
604
604
|
if (!C) return;
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
let
|
|
605
|
+
const N = new ResizeObserver(() => j());
|
|
606
|
+
N.observe(C);
|
|
607
|
+
const V = C.firstElementChild;
|
|
608
|
+
V && N.observe(V);
|
|
609
|
+
let W = 0;
|
|
610
610
|
const G = () => {
|
|
611
|
-
cancelAnimationFrame(
|
|
611
|
+
cancelAnimationFrame(W), W = requestAnimationFrame(S);
|
|
612
612
|
};
|
|
613
613
|
return C.addEventListener("scroll", G, { passive: !0 }), () => {
|
|
614
|
-
|
|
614
|
+
N.disconnect(), cancelAnimationFrame(W), C.removeEventListener("scroll", G);
|
|
615
615
|
};
|
|
616
|
-
}, [
|
|
616
|
+
}, [j, S, m]), te(() => {
|
|
617
617
|
const C = g.current;
|
|
618
618
|
if (!C) return;
|
|
619
|
-
const
|
|
620
|
-
let
|
|
619
|
+
const N = 4;
|
|
620
|
+
let V = null, W = 0, G = 0, p = !1, y = 0;
|
|
621
621
|
const d = () => {
|
|
622
|
-
clearTimeout(
|
|
623
|
-
}, u = (
|
|
624
|
-
|
|
625
|
-
},
|
|
626
|
-
if (
|
|
627
|
-
const ee =
|
|
628
|
-
if (!
|
|
629
|
-
if (Math.abs(ee) <
|
|
630
|
-
|
|
622
|
+
clearTimeout(y), delete C.dataset.settling;
|
|
623
|
+
}, u = (q) => {
|
|
624
|
+
q.pointerType !== "mouse" || q.button !== 0 || C.scrollWidth <= C.clientWidth || (d(), V = q.pointerId, W = q.clientX, G = C.scrollLeft, p = !1);
|
|
625
|
+
}, E = (q) => {
|
|
626
|
+
if (q.pointerId !== V) return;
|
|
627
|
+
const ee = q.clientX - W;
|
|
628
|
+
if (!p) {
|
|
629
|
+
if (Math.abs(ee) < N) return;
|
|
630
|
+
p = !0, C.setPointerCapture(q.pointerId), C.dataset.dragging = "";
|
|
631
631
|
}
|
|
632
632
|
C.scrollLeft = G - ee;
|
|
633
|
-
},
|
|
634
|
-
if (
|
|
633
|
+
}, O = (q) => {
|
|
634
|
+
if (q.pointerId !== V || (V = null, !p)) return;
|
|
635
635
|
delete C.dataset.dragging;
|
|
636
|
-
const ee = C.scrollLeft, ne =
|
|
636
|
+
const ee = C.scrollLeft, ne = B.current;
|
|
637
637
|
let ie = ne.reduce((me, De) => Math.abs(De - ee) < Math.abs(me - ee) ? De : me, ne[0]);
|
|
638
638
|
ee > G + 1 && ie <= G + 1 ? ie = ne.find((me) => me > G + 1) ?? ie : ee < G - 1 && ie >= G - 1 && (ie = [...ne].reverse().find((me) => me < G - 1) ?? ie), C.dataset.settling = "";
|
|
639
639
|
const Qe = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
640
|
-
C.scrollTo({ left: ie, behavior: Qe ? "auto" : "smooth" }), C.addEventListener("scrollend", d, { once: !0 }),
|
|
641
|
-
},
|
|
642
|
-
|
|
643
|
-
},
|
|
644
|
-
return C.addEventListener("pointerdown", u), C.addEventListener("pointermove",
|
|
645
|
-
d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove",
|
|
640
|
+
C.scrollTo({ left: ie, behavior: Qe ? "auto" : "smooth" }), C.addEventListener("scrollend", d, { once: !0 }), y = window.setTimeout(d, 700);
|
|
641
|
+
}, Z = (q) => {
|
|
642
|
+
p && (p = !1, q.preventDefault(), q.stopPropagation());
|
|
643
|
+
}, P = (q) => q.preventDefault();
|
|
644
|
+
return C.addEventListener("pointerdown", u), C.addEventListener("pointermove", E), C.addEventListener("pointerup", O), C.addEventListener("pointercancel", O), C.addEventListener("click", Z, !0), C.addEventListener("dragstart", P), () => {
|
|
645
|
+
d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove", E), C.removeEventListener("pointerup", O), C.removeEventListener("pointercancel", O), C.removeEventListener("click", Z, !0), C.removeEventListener("dragstart", P);
|
|
646
646
|
};
|
|
647
647
|
}, []);
|
|
648
648
|
const f = (C) => {
|
|
649
|
-
var
|
|
650
|
-
return (
|
|
651
|
-
},
|
|
652
|
-
const
|
|
653
|
-
if (!
|
|
654
|
-
const
|
|
655
|
-
|
|
649
|
+
var N;
|
|
650
|
+
return (N = g.current) == null ? void 0 : N.scrollTo({ left: C });
|
|
651
|
+
}, R = (C) => {
|
|
652
|
+
const N = g.current;
|
|
653
|
+
if (!N) return;
|
|
654
|
+
const V = N.scrollLeft, W = C > 0 ? B.current.find((G) => G > V + 1) : [...B.current].reverse().find((G) => G < V - 1);
|
|
655
|
+
W !== void 0 && f(W);
|
|
656
656
|
}, A = v > 1;
|
|
657
|
-
return /* @__PURE__ */
|
|
657
|
+
return /* @__PURE__ */ L(
|
|
658
658
|
"section",
|
|
659
659
|
{
|
|
660
660
|
...c,
|
|
661
661
|
"aria-roledescription": "carousel",
|
|
662
662
|
"aria-label": s,
|
|
663
|
-
className:
|
|
663
|
+
className: z(le.root, l),
|
|
664
664
|
"data-scrollable": A ? "" : void 0,
|
|
665
665
|
children: [
|
|
666
|
-
/* @__PURE__ */
|
|
666
|
+
/* @__PURE__ */ L("div", { className: le.viewport, children: [
|
|
667
667
|
/* @__PURE__ */ n(
|
|
668
668
|
"div",
|
|
669
669
|
{
|
|
@@ -672,21 +672,21 @@ function El({
|
|
|
672
672
|
className: le.track,
|
|
673
673
|
tabIndex: 0,
|
|
674
674
|
style: { "--_view-count-default": t },
|
|
675
|
-
children: h.map((C,
|
|
675
|
+
children: h.map((C, N) => /* @__PURE__ */ n(
|
|
676
676
|
"div",
|
|
677
677
|
{
|
|
678
678
|
className: le.slide,
|
|
679
679
|
role: "group",
|
|
680
680
|
"aria-roledescription": "slide",
|
|
681
|
-
"aria-label": `${
|
|
682
|
-
"data-snap":
|
|
681
|
+
"aria-label": `${N + 1} of ${m}`,
|
|
682
|
+
"data-snap": N % _ === 0 ? "" : void 0,
|
|
683
683
|
children: C
|
|
684
684
|
},
|
|
685
|
-
C.key ??
|
|
685
|
+
C.key ?? N
|
|
686
686
|
))
|
|
687
687
|
}
|
|
688
688
|
),
|
|
689
|
-
/* @__PURE__ */ n("span", { className:
|
|
689
|
+
/* @__PURE__ */ n("span", { className: z(le.arrow, le.prev), children: /* @__PURE__ */ n(
|
|
690
690
|
Ue,
|
|
691
691
|
{
|
|
692
692
|
iconOnly: !0,
|
|
@@ -695,11 +695,11 @@ function El({
|
|
|
695
695
|
"aria-label": "Previous",
|
|
696
696
|
"aria-controls": i,
|
|
697
697
|
disabled: Y,
|
|
698
|
-
onClick: () =>
|
|
698
|
+
onClick: () => R(-1),
|
|
699
699
|
children: /* @__PURE__ */ n(ht, { "aria-hidden": "true" })
|
|
700
700
|
}
|
|
701
701
|
) }),
|
|
702
|
-
/* @__PURE__ */ n("span", { className:
|
|
702
|
+
/* @__PURE__ */ n("span", { className: z(le.arrow, le.next), children: /* @__PURE__ */ n(
|
|
703
703
|
Ue,
|
|
704
704
|
{
|
|
705
705
|
iconOnly: !0,
|
|
@@ -708,37 +708,37 @@ function El({
|
|
|
708
708
|
"aria-label": "Next",
|
|
709
709
|
"aria-controls": i,
|
|
710
710
|
disabled: D,
|
|
711
|
-
onClick: () =>
|
|
712
|
-
children: /* @__PURE__ */ n(
|
|
711
|
+
onClick: () => R(1),
|
|
712
|
+
children: /* @__PURE__ */ n(_t, { "aria-hidden": "true" })
|
|
713
713
|
}
|
|
714
714
|
) })
|
|
715
715
|
] }),
|
|
716
|
-
r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: v }, (C,
|
|
716
|
+
r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: v }, (C, N) => /* @__PURE__ */ n(
|
|
717
717
|
"button",
|
|
718
718
|
{
|
|
719
719
|
type: "button",
|
|
720
720
|
className: le.dot,
|
|
721
|
-
"aria-label": o === "page" ? `Page ${
|
|
721
|
+
"aria-label": o === "page" ? `Page ${N + 1} of ${v}` : `Position ${N + 1} of ${v}`,
|
|
722
722
|
"aria-controls": i,
|
|
723
|
-
"aria-current":
|
|
724
|
-
onClick: () => f(
|
|
723
|
+
"aria-current": N === I ? "true" : void 0,
|
|
724
|
+
onClick: () => f(B.current[N] ?? 0)
|
|
725
725
|
},
|
|
726
|
-
|
|
726
|
+
N
|
|
727
727
|
)) })
|
|
728
728
|
]
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
731
|
}
|
|
732
|
-
const
|
|
733
|
-
nav:
|
|
734
|
-
pages:
|
|
735
|
-
item:
|
|
736
|
-
current:
|
|
737
|
-
page:
|
|
738
|
-
gap:
|
|
732
|
+
const Bo = "_nav_mwel8_6", Vo = "_pages_mwel8_21", Wo = "_item_mwel8_30", Po = "_current_mwel8_48", Fo = "_page_mwel8_21", jo = "_gap_mwel8_82", Go = "_stepText_mwel8_92", Uo = "_step_mwel8_92", ce = {
|
|
733
|
+
nav: Bo,
|
|
734
|
+
pages: Vo,
|
|
735
|
+
item: Wo,
|
|
736
|
+
current: Po,
|
|
737
|
+
page: Fo,
|
|
738
|
+
gap: jo,
|
|
739
739
|
stepText: Go,
|
|
740
740
|
step: Uo
|
|
741
|
-
}, Ko = "
|
|
741
|
+
}, Ko = "_spaceControl_1e9gg_17", Xo = "_spaceSlider_1e9gg_74", Yo = "_spacePanel_1e9gg_111", Qo = "_spaceInput_1e9gg_34", Jo = "_spaceTextArea_1e9gg_226", er = {
|
|
742
742
|
spaceControl: Ko,
|
|
743
743
|
spaceSlider: Xo,
|
|
744
744
|
spacePanel: Yo,
|
|
@@ -749,12 +749,12 @@ function tr({ pageSize: e, totalItems: t }) {
|
|
|
749
749
|
return e <= 0 ? 1 : Math.max(1, Math.ceil(t / e));
|
|
750
750
|
}
|
|
751
751
|
function nr(e, t, o = 1) {
|
|
752
|
-
const r = (g, $) => Array.from({ length: Math.max(0, $ - g + 1) }, (w,
|
|
752
|
+
const r = (g, $) => Array.from({ length: Math.max(0, $ - g + 1) }, (w, _) => g + _), a = o * 2 + 5;
|
|
753
753
|
if (t <= a) return r(1, t);
|
|
754
754
|
const l = Math.min(Math.max(e, 1), t), s = Math.max(l - o, 1), c = Math.min(l + o, t), h = s > 3, m = c < t - 2, i = o * 2 + 3;
|
|
755
755
|
return h ? m ? [1, null, ...r(s, c), null, t] : [1, null, ...r(t - i + 1, t)] : [...r(1, i), null, t];
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function El({
|
|
758
758
|
pagination: e,
|
|
759
759
|
onPageClick: t,
|
|
760
760
|
siblings: o = 1,
|
|
@@ -768,12 +768,12 @@ function ql({
|
|
|
768
768
|
const h = Math.min(Math.max(e.page, 1), c), m = (i) => {
|
|
769
769
|
i !== h && i >= 1 && i <= c && t(i);
|
|
770
770
|
};
|
|
771
|
-
return /* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
771
|
+
return /* @__PURE__ */ L("nav", { ...s, "aria-label": l, className: z(ce.nav, a), children: [
|
|
772
|
+
/* @__PURE__ */ L(
|
|
773
773
|
"button",
|
|
774
774
|
{
|
|
775
775
|
type: "button",
|
|
776
|
-
className:
|
|
776
|
+
className: z(ue.spaceControl, ce.item, ce.step),
|
|
777
777
|
disabled: h <= 1,
|
|
778
778
|
"aria-label": "Previous page",
|
|
779
779
|
onClick: () => m(h - 1),
|
|
@@ -793,7 +793,7 @@ function ql({
|
|
|
793
793
|
"button",
|
|
794
794
|
{
|
|
795
795
|
type: "button",
|
|
796
|
-
className:
|
|
796
|
+
className: z(
|
|
797
797
|
ue.spaceControl,
|
|
798
798
|
ce.item,
|
|
799
799
|
ce.page,
|
|
@@ -807,23 +807,23 @@ function ql({
|
|
|
807
807
|
}
|
|
808
808
|
) }, i)
|
|
809
809
|
) }),
|
|
810
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ L(
|
|
811
811
|
"button",
|
|
812
812
|
{
|
|
813
813
|
type: "button",
|
|
814
|
-
className:
|
|
814
|
+
className: z(ue.spaceControl, ce.item, ce.step),
|
|
815
815
|
disabled: h >= c,
|
|
816
816
|
"aria-label": "Next page",
|
|
817
817
|
onClick: () => m(h + 1),
|
|
818
818
|
children: [
|
|
819
819
|
/* @__PURE__ */ n("span", { className: ce.stepText, children: "Next" }),
|
|
820
|
-
/* @__PURE__ */ n(
|
|
820
|
+
/* @__PURE__ */ n(_t, { "aria-hidden": "true" })
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
823
|
)
|
|
824
824
|
] });
|
|
825
825
|
}
|
|
826
|
-
const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_dwcut_42", lr = "_orbit_dwcut_49", cr = "_planet_dwcut_58", ir = "_moon_dwcut_73", dr = "_label_dwcut_92",
|
|
826
|
+
const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_dwcut_42", lr = "_orbit_dwcut_49", cr = "_planet_dwcut_58", ir = "_moon_dwcut_73", dr = "_label_dwcut_92", Ne = {
|
|
827
827
|
wrap: or,
|
|
828
828
|
sm: rr,
|
|
829
829
|
md: sr,
|
|
@@ -837,30 +837,30 @@ const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_
|
|
|
837
837
|
"sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
|
|
838
838
|
};
|
|
839
839
|
function Dl({ size: e = "md", label: t, className: o }) {
|
|
840
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ L(
|
|
841
841
|
"div",
|
|
842
842
|
{
|
|
843
|
-
className:
|
|
843
|
+
className: z(Ne.wrap, Ne[e], o),
|
|
844
844
|
role: "status",
|
|
845
845
|
"aria-live": "polite",
|
|
846
846
|
"aria-label": t ?? "Loading",
|
|
847
847
|
children: [
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */ n("span", { className:
|
|
850
|
-
/* @__PURE__ */ n("span", { className:
|
|
848
|
+
/* @__PURE__ */ L("span", { className: Ne.orbit, children: [
|
|
849
|
+
/* @__PURE__ */ n("span", { className: Ne.planet }),
|
|
850
|
+
/* @__PURE__ */ n("span", { className: Ne.moon })
|
|
851
851
|
] }),
|
|
852
|
-
t && /* @__PURE__ */ n("span", { className:
|
|
852
|
+
t && /* @__PURE__ */ n("span", { className: Ne.label, children: t })
|
|
853
853
|
]
|
|
854
854
|
}
|
|
855
855
|
);
|
|
856
856
|
}
|
|
857
|
-
const ur = "
|
|
857
|
+
const ur = "_content_3g9vd_6", fr = {
|
|
858
858
|
content: ur
|
|
859
859
|
};
|
|
860
860
|
function Ye(e, t) {
|
|
861
861
|
e.matches(":popover-open") || (e.dataset.instant = "", e.dataset.measuring = "", t(), delete e.dataset.measuring, e.offsetWidth, delete e.dataset.instant, e.offsetWidth, e.showPopover());
|
|
862
862
|
}
|
|
863
|
-
const
|
|
863
|
+
const pr = 350, _r = 80, Fe = 8, qe = 8;
|
|
864
864
|
function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
|
|
865
865
|
const l = a.props;
|
|
866
866
|
return Xe(a, {
|
|
@@ -894,16 +894,16 @@ function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
|
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
896
|
function mr({ label: e, side: t = "bottom", children: o }) {
|
|
897
|
-
const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h =
|
|
897
|
+
const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h = F(null), m = F(null), i = F(null), g = F(null), $ = () => {
|
|
898
898
|
i.current && (clearTimeout(i.current), i.current = null), g.current && (clearTimeout(g.current), g.current = null);
|
|
899
899
|
}, w = (b = !1) => {
|
|
900
900
|
if ($(), b) {
|
|
901
901
|
l(!0);
|
|
902
902
|
return;
|
|
903
903
|
}
|
|
904
|
-
i.current = setTimeout(() => l(!0),
|
|
905
|
-
},
|
|
906
|
-
$(), g.current = setTimeout(() => l(!1),
|
|
904
|
+
i.current = setTimeout(() => l(!0), pr);
|
|
905
|
+
}, _ = () => {
|
|
906
|
+
$(), g.current = setTimeout(() => l(!1), _r);
|
|
907
907
|
};
|
|
908
908
|
return te(() => $, []), we(() => {
|
|
909
909
|
const b = m.current;
|
|
@@ -914,31 +914,31 @@ function mr({ label: e, side: t = "bottom", children: o }) {
|
|
|
914
914
|
}
|
|
915
915
|
const v = h.current;
|
|
916
916
|
if (!v) return;
|
|
917
|
-
const
|
|
918
|
-
const
|
|
919
|
-
Math.max(
|
|
920
|
-
Math.max(
|
|
921
|
-
), D = (
|
|
922
|
-
fitsNear:
|
|
923
|
-
fitsFar:
|
|
917
|
+
const k = () => {
|
|
918
|
+
const I = v.getBoundingClientRect(), H = b.offsetWidth, Y = b.offsetHeight, U = (S, j, f, R) => Math.min(
|
|
919
|
+
Math.max(S + j / 2 - f / 2, qe),
|
|
920
|
+
Math.max(R - f - qe, qe)
|
|
921
|
+
), D = (S, j, f, R) => ({
|
|
922
|
+
fitsNear: S >= qe,
|
|
923
|
+
fitsFar: j + f <= R - qe
|
|
924
924
|
});
|
|
925
925
|
if (t === "left" || t === "right") {
|
|
926
|
-
const
|
|
927
|
-
b.dataset.side = A ===
|
|
926
|
+
const S = I.right + Fe, j = I.left - H - Fe, { fitsNear: f, fitsFar: R } = D(j, S, H, window.innerWidth), A = t === "right" ? R || !f ? S : j : f || !R ? j : S;
|
|
927
|
+
b.dataset.side = A === S ? "right" : "left", c({ top: U(I.top, I.height, Y, window.innerHeight), left: A });
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
930
|
-
const T =
|
|
931
|
-
b.dataset.side =
|
|
930
|
+
const T = I.bottom + Fe, B = I.top - Y - Fe, { fitsNear: X, fitsFar: x } = D(B, T, Y, window.innerHeight), M = t === "bottom" ? x || !X ? T : B : X || !x ? B : T;
|
|
931
|
+
b.dataset.side = M === T ? "bottom" : "top", c({ top: M, left: U(I.left, I.width, H, window.innerWidth) });
|
|
932
932
|
};
|
|
933
|
-
b.matches(":popover-open") ?
|
|
934
|
-
}, [a, t, e]), !e || !
|
|
933
|
+
b.matches(":popover-open") ? k() : Ye(b, k);
|
|
934
|
+
}, [a, t, e]), !e || !ze(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ L(he, { children: [
|
|
935
935
|
/* @__PURE__ */ n(
|
|
936
936
|
hr,
|
|
937
937
|
{
|
|
938
938
|
triggerRef: h,
|
|
939
939
|
tooltipId: r,
|
|
940
940
|
show: w,
|
|
941
|
-
hide:
|
|
941
|
+
hide: _,
|
|
942
942
|
children: o
|
|
943
943
|
}
|
|
944
944
|
),
|
|
@@ -959,13 +959,13 @@ function mr({ label: e, side: t = "bottom", children: o }) {
|
|
|
959
959
|
)
|
|
960
960
|
] });
|
|
961
961
|
}
|
|
962
|
-
const gr = "
|
|
962
|
+
const gr = "_group_14c05_4", Cr = "_segment_14c05_15", vr = "_active_14c05_35", br = "_vertical_14c05_46", je = {
|
|
963
963
|
group: gr,
|
|
964
964
|
segment: Cr,
|
|
965
965
|
active: vr,
|
|
966
966
|
vertical: br
|
|
967
967
|
};
|
|
968
|
-
function
|
|
968
|
+
function Il({
|
|
969
969
|
options: e,
|
|
970
970
|
value: t,
|
|
971
971
|
onValueChange: o,
|
|
@@ -976,7 +976,7 @@ function zl({
|
|
|
976
976
|
return /* @__PURE__ */ n(
|
|
977
977
|
"div",
|
|
978
978
|
{
|
|
979
|
-
className: `${
|
|
979
|
+
className: `${je.group} ${l ? je.vertical : ""} ${a}`,
|
|
980
980
|
role: "group",
|
|
981
981
|
children: e.map((s) => (
|
|
982
982
|
// A horizontal pill sits at the top of the scene, so its tooltips hang
|
|
@@ -987,7 +987,7 @@ function zl({
|
|
|
987
987
|
"button",
|
|
988
988
|
{
|
|
989
989
|
type: "button",
|
|
990
|
-
className: `${
|
|
990
|
+
className: `${je.segment} ${s.value === t ? je.active : ""}`,
|
|
991
991
|
"aria-label": s.label,
|
|
992
992
|
"aria-pressed": s.value === t,
|
|
993
993
|
onClick: () => {
|
|
@@ -1000,31 +1000,31 @@ function zl({
|
|
|
1000
1000
|
}
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
|
-
const $r = "
|
|
1003
|
+
const $r = "_root_10w57_2", wr = "_trigger_10w57_7", yr = "_labelWrap_10w57_30", xr = "_sizer_10w57_8", Nr = "_triggerLabel_10w57_70", Lr = "_chevron_10w57_77", Mr = "_listbox_10w57_82", kr = "_item_10w57_178", Ce = {
|
|
1004
1004
|
root: $r,
|
|
1005
1005
|
trigger: wr,
|
|
1006
|
-
labelWrap:
|
|
1007
|
-
sizer:
|
|
1008
|
-
triggerLabel:
|
|
1009
|
-
chevron:
|
|
1010
|
-
listbox:
|
|
1011
|
-
item:
|
|
1012
|
-
}, mt =
|
|
1013
|
-
const e =
|
|
1006
|
+
labelWrap: yr,
|
|
1007
|
+
sizer: xr,
|
|
1008
|
+
triggerLabel: Nr,
|
|
1009
|
+
chevron: Lr,
|
|
1010
|
+
listbox: Mr,
|
|
1011
|
+
item: kr
|
|
1012
|
+
}, mt = Re(null), zr = () => {
|
|
1013
|
+
const e = Ee(mt);
|
|
1014
1014
|
if (!e) throw new Error("Select.Item must be inside a Select");
|
|
1015
1015
|
return e;
|
|
1016
|
-
}, gt = (e, t) => `${e}-${encodeURIComponent(t)}`, Te = 4,
|
|
1017
|
-
function
|
|
1016
|
+
}, gt = (e, t) => `${e}-${encodeURIComponent(t)}`, Te = 4, Le = 8;
|
|
1017
|
+
function Rr(e) {
|
|
1018
1018
|
const t = [], o = (r) => {
|
|
1019
|
-
|
|
1020
|
-
if (!
|
|
1019
|
+
pt.forEach(r, (a) => {
|
|
1020
|
+
if (!ze(a)) return;
|
|
1021
1021
|
const l = a.props;
|
|
1022
1022
|
a.type === Ct && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
|
|
1023
1023
|
});
|
|
1024
1024
|
};
|
|
1025
1025
|
return o(e), t;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Er({
|
|
1028
1028
|
value: e,
|
|
1029
1029
|
onValueChange: t,
|
|
1030
1030
|
disabled: o,
|
|
@@ -1034,58 +1034,58 @@ function qr({
|
|
|
1034
1034
|
children: s,
|
|
1035
1035
|
...c
|
|
1036
1036
|
}) {
|
|
1037
|
-
const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w =
|
|
1037
|
+
const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w = F(null), _ = F(null), b = F(null), [v, k] = Q(null), [I, H] = Q(null), [Y, U] = Q(null), D = _e(() => Rr(s), [s]), T = _e(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), B = _e(() => D.map((f) => f.label), [D]), X = pe(
|
|
1038
1038
|
(f) => {
|
|
1039
|
-
var
|
|
1040
|
-
return ((
|
|
1039
|
+
var R;
|
|
1040
|
+
return ((R = D.find((A) => A.value === f)) == null ? void 0 : R.label) ?? null;
|
|
1041
1041
|
},
|
|
1042
1042
|
[D]
|
|
1043
1043
|
);
|
|
1044
1044
|
te(() => {
|
|
1045
1045
|
if (!h) return;
|
|
1046
|
-
const f = (
|
|
1047
|
-
|
|
1046
|
+
const f = (R) => {
|
|
1047
|
+
_.current && !_.current.contains(R.target) && m(!1);
|
|
1048
1048
|
};
|
|
1049
1049
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
1050
1050
|
}, [h]);
|
|
1051
|
-
const
|
|
1052
|
-
const f = w.current,
|
|
1053
|
-
if (!f || !
|
|
1051
|
+
const x = pe(() => {
|
|
1052
|
+
const f = w.current, R = b.current;
|
|
1053
|
+
if (!f || !R) return;
|
|
1054
1054
|
const A = f.getBoundingClientRect();
|
|
1055
|
-
|
|
1056
|
-
const C = window.innerHeight - A.bottom -
|
|
1057
|
-
|
|
1058
|
-
const G = Math.min(
|
|
1059
|
-
Math.max(A.left,
|
|
1060
|
-
Math.max(window.innerWidth -
|
|
1055
|
+
k(f.offsetWidth);
|
|
1056
|
+
const C = window.innerHeight - A.bottom - Le, N = A.top - Le, V = C < Math.min(R.offsetHeight + Te, 200) && N > C, W = Math.max(120, Math.min(380, V ? N - Te : C - Te));
|
|
1057
|
+
H(W), R.dataset.side = V ? "top" : "bottom";
|
|
1058
|
+
const G = Math.min(R.offsetHeight, W), p = V ? Math.max(Le, A.top - Te - G) : A.bottom + Te, y = Math.min(
|
|
1059
|
+
Math.max(A.left, Le),
|
|
1060
|
+
Math.max(window.innerWidth - R.offsetWidth - Le, Le)
|
|
1061
1061
|
);
|
|
1062
|
-
U((d) => d && d.top ===
|
|
1062
|
+
U((d) => d && d.top === p && d.left === y ? d : { top: p, left: y });
|
|
1063
1063
|
}, []);
|
|
1064
1064
|
we(() => {
|
|
1065
1065
|
const f = b.current;
|
|
1066
|
-
f && (h ? (Ye(f,
|
|
1067
|
-
}, [h,
|
|
1066
|
+
f && (h ? (Ye(f, x), x()) : f.matches(":popover-open") && f.hidePopover());
|
|
1067
|
+
}, [h, x]), te(() => {
|
|
1068
1068
|
if (!h) return;
|
|
1069
|
-
let f = 0,
|
|
1069
|
+
let f = 0, R = "";
|
|
1070
1070
|
const A = () => {
|
|
1071
1071
|
const C = w.current;
|
|
1072
1072
|
if (C) {
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1073
|
+
const N = C.getBoundingClientRect(), V = `${N.top}|${N.left}|${N.width}|${window.innerWidth}|${window.innerHeight}`;
|
|
1074
|
+
V !== R && (R = V, x());
|
|
1075
1075
|
}
|
|
1076
1076
|
f = requestAnimationFrame(A);
|
|
1077
1077
|
};
|
|
1078
1078
|
return f = requestAnimationFrame(A), () => cancelAnimationFrame(f);
|
|
1079
|
-
}, [h,
|
|
1079
|
+
}, [h, x]), te(() => {
|
|
1080
1080
|
var f;
|
|
1081
1081
|
h && ((f = b.current) == null || f.focus());
|
|
1082
1082
|
}, [h]);
|
|
1083
|
-
const
|
|
1083
|
+
const M = (f) => {
|
|
1084
1084
|
g(f ?? T[0] ?? null), m(!0);
|
|
1085
|
-
},
|
|
1086
|
-
const
|
|
1085
|
+
}, S = (f) => {
|
|
1086
|
+
const R = i ? T.indexOf(i) : -1, A = Math.min(Math.max(R + f, 0), T.length - 1);
|
|
1087
1087
|
g(T[A] ?? null);
|
|
1088
|
-
},
|
|
1088
|
+
}, j = e ? X(e) : null;
|
|
1089
1089
|
return /* @__PURE__ */ n(
|
|
1090
1090
|
mt.Provider,
|
|
1091
1091
|
{
|
|
@@ -1102,34 +1102,34 @@ function qr({
|
|
|
1102
1102
|
labelFor: X,
|
|
1103
1103
|
triggerRef: w
|
|
1104
1104
|
},
|
|
1105
|
-
children: /* @__PURE__ */
|
|
1106
|
-
/* @__PURE__ */
|
|
1105
|
+
children: /* @__PURE__ */ L("div", { ref: _, className: Ce.root, children: [
|
|
1106
|
+
/* @__PURE__ */ L(
|
|
1107
1107
|
"button",
|
|
1108
1108
|
{
|
|
1109
1109
|
type: "button",
|
|
1110
1110
|
...c,
|
|
1111
1111
|
ref: w,
|
|
1112
1112
|
disabled: o,
|
|
1113
|
-
className:
|
|
1113
|
+
className: z(Ce.trigger, ue.spaceControl, "spSelectTrigger", l),
|
|
1114
1114
|
"data-animated": a ? void 0 : "false",
|
|
1115
1115
|
"data-state": h ? "open" : "closed",
|
|
1116
1116
|
"aria-haspopup": "listbox",
|
|
1117
1117
|
"aria-expanded": h,
|
|
1118
1118
|
"aria-controls": $,
|
|
1119
|
-
onClick: () => h ? m(!1) :
|
|
1119
|
+
onClick: () => h ? m(!1) : M(e || null),
|
|
1120
1120
|
onKeyDown: (f) => {
|
|
1121
|
-
(f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(),
|
|
1121
|
+
(f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), M(e || null));
|
|
1122
1122
|
},
|
|
1123
1123
|
children: [
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
|
|
1124
|
+
/* @__PURE__ */ L("span", { className: Ce.labelWrap, children: [
|
|
1125
|
+
/* @__PURE__ */ L("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
|
|
1126
|
+
B.map((f, R) => (
|
|
1127
1127
|
// eslint-disable-next-line react/no-array-index-key
|
|
1128
|
-
/* @__PURE__ */ n("span", { children: f },
|
|
1128
|
+
/* @__PURE__ */ n("span", { children: f }, R)
|
|
1129
1129
|
)),
|
|
1130
1130
|
r && /* @__PURE__ */ n("span", { children: r })
|
|
1131
1131
|
] }),
|
|
1132
|
-
/* @__PURE__ */ n("span", { className: Ce.triggerLabel, children:
|
|
1132
|
+
/* @__PURE__ */ n("span", { className: Ce.triggerLabel, children: j ?? r ?? "" })
|
|
1133
1133
|
] }),
|
|
1134
1134
|
/* @__PURE__ */ n("svg", { className: Ce.chevron, width: "9", height: "9", viewBox: "0 0 9 9", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M0.5 3 L4.5 7 L8.5 3", fill: "none", stroke: "currentColor", strokeWidth: "1.2" }) })
|
|
1135
1135
|
]
|
|
@@ -1145,16 +1145,16 @@ function qr({
|
|
|
1145
1145
|
popover: "manual",
|
|
1146
1146
|
"data-side": "bottom",
|
|
1147
1147
|
"aria-activedescendant": i ? gt($, i) : void 0,
|
|
1148
|
-
className:
|
|
1148
|
+
className: z(Ce.listbox, ue.spacePanel),
|
|
1149
1149
|
"data-animated": a ? void 0 : "false",
|
|
1150
1150
|
style: {
|
|
1151
1151
|
...v != null ? { "--_select-trigger-width": `${v}px` } : {},
|
|
1152
|
-
...
|
|
1152
|
+
...I != null ? { maxHeight: `${I}px` } : {},
|
|
1153
1153
|
...Y ? { top: Y.top, left: Y.left } : {}
|
|
1154
1154
|
},
|
|
1155
1155
|
onKeyDown: (f) => {
|
|
1156
|
-
var
|
|
1157
|
-
f.key === "Escape" ? (f.stopPropagation(), m(!1), (
|
|
1156
|
+
var R, A;
|
|
1157
|
+
f.key === "Escape" ? (f.stopPropagation(), m(!1), (R = w.current) == null || R.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), S(1)) : f.key === "ArrowUp" ? (f.preventDefault(), S(-1)) : f.key === "Home" ? (f.preventDefault(), g(T[0] ?? null)) : f.key === "End" ? (f.preventDefault(), g(T[T.length - 1] ?? null)) : f.key === "Enter" || f.key === " " ? (f.preventDefault(), i && (t(i), m(!1), (A = w.current) == null || A.focus())) : f.key === "Tab" && m(!1);
|
|
1158
1158
|
},
|
|
1159
1159
|
children: s
|
|
1160
1160
|
}
|
|
@@ -1164,7 +1164,7 @@ function qr({
|
|
|
1164
1164
|
);
|
|
1165
1165
|
}
|
|
1166
1166
|
function Ct({ value: e, disabled: t, children: o }) {
|
|
1167
|
-
const r =
|
|
1167
|
+
const r = zr(), a = r.value === e, l = r.highlighted === e;
|
|
1168
1168
|
return /* @__PURE__ */ n(
|
|
1169
1169
|
"div",
|
|
1170
1170
|
{
|
|
@@ -1173,7 +1173,7 @@ function Ct({ value: e, disabled: t, children: o }) {
|
|
|
1173
1173
|
"aria-selected": a,
|
|
1174
1174
|
"aria-disabled": t || void 0,
|
|
1175
1175
|
"data-highlighted": l ? "" : void 0,
|
|
1176
|
-
className:
|
|
1176
|
+
className: z(Ce.item, "spSelectItem"),
|
|
1177
1177
|
onMouseEnter: () => !t && r.setHighlighted(e),
|
|
1178
1178
|
onClick: () => {
|
|
1179
1179
|
var s;
|
|
@@ -1183,55 +1183,55 @@ function Ct({ value: e, disabled: t, children: o }) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
1186
|
-
const
|
|
1186
|
+
const Hl = Object.assign(Er, { Item: Ct }), Dr = "_root_1hali_1", Ir = "_input_1hali_7", Hr = "_slot_1hali_17", tt = {
|
|
1187
1187
|
root: Dr,
|
|
1188
|
-
input:
|
|
1189
|
-
slot:
|
|
1190
|
-
},
|
|
1191
|
-
return /* @__PURE__ */
|
|
1188
|
+
input: Ir,
|
|
1189
|
+
slot: Hr
|
|
1190
|
+
}, Sr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
|
|
1191
|
+
return /* @__PURE__ */ L(
|
|
1192
1192
|
"div",
|
|
1193
1193
|
{
|
|
1194
|
-
className:
|
|
1194
|
+
className: z(tt.root, ue.spaceInput, "spTextFieldRoot", t),
|
|
1195
1195
|
"data-animated": r ? void 0 : "false",
|
|
1196
1196
|
style: o,
|
|
1197
1197
|
children: [
|
|
1198
1198
|
a,
|
|
1199
|
-
/* @__PURE__ */ n("input", { ...l, ref: s, className:
|
|
1199
|
+
/* @__PURE__ */ n("input", { ...l, ref: s, className: z(tt.input, "spTextFieldInput") })
|
|
1200
1200
|
]
|
|
1201
1201
|
}
|
|
1202
1202
|
);
|
|
1203
1203
|
});
|
|
1204
|
-
function
|
|
1204
|
+
function qr({
|
|
1205
1205
|
children: e
|
|
1206
1206
|
}) {
|
|
1207
1207
|
return /* @__PURE__ */ n("span", { className: tt.slot, children: e });
|
|
1208
1208
|
}
|
|
1209
|
-
const ct = Object.assign(
|
|
1209
|
+
const ct = Object.assign(Sr, { Slot: qr }), Tr = "_root_1qu6w_1", Ar = "_textarea_1qu6w_6", it = {
|
|
1210
1210
|
root: Tr,
|
|
1211
1211
|
textarea: Ar
|
|
1212
|
-
},
|
|
1212
|
+
}, Sl = ae(function({ className: t, style: o, animated: r = !0, ...a }, l) {
|
|
1213
1213
|
return /* @__PURE__ */ n(
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
|
-
className:
|
|
1216
|
+
className: z(it.root, ue.spaceInput, ue.spaceTextArea, "spTextFieldRoot", t),
|
|
1217
1217
|
"data-animated": r ? void 0 : "false",
|
|
1218
1218
|
style: o,
|
|
1219
|
-
children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className:
|
|
1219
|
+
children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: z(it.textarea, "spTextAreaInput") })
|
|
1220
1220
|
}
|
|
1221
1221
|
);
|
|
1222
|
-
}),
|
|
1223
|
-
wrap:
|
|
1224
|
-
field:
|
|
1225
|
-
panel:
|
|
1226
|
-
status:
|
|
1227
|
-
list:
|
|
1228
|
-
option:
|
|
1229
|
-
active:
|
|
1230
|
-
label:
|
|
1222
|
+
}), Or = "_wrap_sccqq_12", Zr = "_field_sccqq_16", Br = "_panel_sccqq_25", Vr = "_status_sccqq_91", Wr = "_list_sccqq_101", Pr = "_option_sccqq_114", Fr = "_active_sccqq_126", jr = "_label_sccqq_136", Gr = "_meta_sccqq_143", Ur = "_footer_sccqq_149", de = {
|
|
1223
|
+
wrap: Or,
|
|
1224
|
+
field: Zr,
|
|
1225
|
+
panel: Br,
|
|
1226
|
+
status: Vr,
|
|
1227
|
+
list: Wr,
|
|
1228
|
+
option: Pr,
|
|
1229
|
+
active: Fr,
|
|
1230
|
+
label: jr,
|
|
1231
1231
|
meta: Gr,
|
|
1232
1232
|
footer: Ur
|
|
1233
1233
|
}, dt = 8, et = 8;
|
|
1234
|
-
function
|
|
1234
|
+
function ql({
|
|
1235
1235
|
value: e,
|
|
1236
1236
|
onValueChange: t,
|
|
1237
1237
|
options: o,
|
|
@@ -1246,97 +1246,97 @@ function Sl({
|
|
|
1246
1246
|
animated: g = !0,
|
|
1247
1247
|
className: $,
|
|
1248
1248
|
style: w,
|
|
1249
|
-
...
|
|
1249
|
+
..._
|
|
1250
1250
|
}) {
|
|
1251
|
-
const [b, v] = Q(!1), [
|
|
1252
|
-
if (!
|
|
1251
|
+
const [b, v] = Q(!1), [k, I] = Q(0), H = F(null), Y = F(null), U = F(null), D = se(), [T, B] = Q(null), X = (p) => typeof p.label == "string" ? p.label : p.search ?? p.value, x = e.trim() !== "", M = _e(() => {
|
|
1252
|
+
if (!x) return [];
|
|
1253
1253
|
if (s) return o;
|
|
1254
|
-
const
|
|
1255
|
-
return o.filter((
|
|
1256
|
-
}, [o, e, l, s,
|
|
1257
|
-
te(() =>
|
|
1258
|
-
var
|
|
1254
|
+
const p = l ? e : e.toLowerCase();
|
|
1255
|
+
return o.filter((y) => (l ? X(y) : X(y).toLowerCase()).includes(p));
|
|
1256
|
+
}, [o, e, l, s, x]), S = _e(() => M.filter((p) => !p.disabled), [M]), j = x && (M.length > 0 || c || m != null), f = b && j;
|
|
1257
|
+
te(() => I(0), [M]), te(() => {
|
|
1258
|
+
var y;
|
|
1259
1259
|
if (!f) return;
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1262
|
-
}, [
|
|
1263
|
-
const
|
|
1264
|
-
const
|
|
1265
|
-
if (!
|
|
1266
|
-
const u = (
|
|
1267
|
-
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
(
|
|
1260
|
+
const p = (y = U.current) == null ? void 0 : y.querySelector(`[data-index="${k}"]`);
|
|
1261
|
+
p == null || p.scrollIntoView({ block: "nearest" });
|
|
1262
|
+
}, [k, f]);
|
|
1263
|
+
const R = pe(() => {
|
|
1264
|
+
const p = H.current, y = Y.current;
|
|
1265
|
+
if (!p || !y) return;
|
|
1266
|
+
const u = (p.firstElementChild ?? p).getBoundingClientRect(), E = y.offsetHeight, O = window.innerHeight - u.bottom - et, Z = O < E && u.top - et > O;
|
|
1267
|
+
y.dataset.side = Z ? "top" : "bottom";
|
|
1268
|
+
const P = Z ? Math.max(et, u.top - dt - E) : u.bottom + dt;
|
|
1269
|
+
B(
|
|
1270
|
+
(q) => q && q.top === P && q.left === u.left && q.width === u.width ? q : { top: P, left: u.left, width: u.width }
|
|
1271
1271
|
);
|
|
1272
1272
|
}, []);
|
|
1273
1273
|
we(() => {
|
|
1274
|
-
const
|
|
1275
|
-
|
|
1276
|
-
}, [f,
|
|
1274
|
+
const p = Y.current;
|
|
1275
|
+
p && (f ? (Ye(p, R), R()) : p.matches(":popover-open") && p.hidePopover());
|
|
1276
|
+
}, [f, R]), te(() => {
|
|
1277
1277
|
if (!f) return;
|
|
1278
|
-
let
|
|
1278
|
+
let p = 0, y = "";
|
|
1279
1279
|
const d = () => {
|
|
1280
|
-
const u =
|
|
1281
|
-
if (u &&
|
|
1282
|
-
const
|
|
1283
|
-
|
|
1280
|
+
const u = H.current, E = Y.current;
|
|
1281
|
+
if (u && E) {
|
|
1282
|
+
const O = (u.firstElementChild ?? u).getBoundingClientRect(), Z = `${O.top}|${O.left}|${O.width}|${E.offsetHeight}|${window.innerHeight}`;
|
|
1283
|
+
Z !== y && (y = Z, R());
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
p = requestAnimationFrame(d);
|
|
1286
1286
|
};
|
|
1287
|
-
return
|
|
1288
|
-
}, [f,
|
|
1289
|
-
const A =
|
|
1287
|
+
return p = requestAnimationFrame(d), () => cancelAnimationFrame(p);
|
|
1288
|
+
}, [f, R]);
|
|
1289
|
+
const A = pe(() => v(!1), []);
|
|
1290
1290
|
te(() => {
|
|
1291
1291
|
if (!f) return;
|
|
1292
|
-
const
|
|
1293
|
-
const d =
|
|
1294
|
-
d &&
|
|
1292
|
+
const p = (y) => {
|
|
1293
|
+
const d = H.current;
|
|
1294
|
+
d && y.target instanceof Node && !d.contains(y.target) && A();
|
|
1295
1295
|
};
|
|
1296
|
-
return document.addEventListener("pointerdown",
|
|
1296
|
+
return document.addEventListener("pointerdown", p), () => document.removeEventListener("pointerdown", p);
|
|
1297
1297
|
}, [f, A]);
|
|
1298
|
-
const C =
|
|
1299
|
-
|
|
1300
|
-
},
|
|
1301
|
-
if (
|
|
1302
|
-
const
|
|
1303
|
-
|
|
1304
|
-
},
|
|
1305
|
-
if (
|
|
1306
|
-
f &&
|
|
1298
|
+
const C = F(!1), N = (p) => {
|
|
1299
|
+
p.disabled || (t(X(p)), r(p.value, p), C.current = !1, v(!1));
|
|
1300
|
+
}, V = (p) => {
|
|
1301
|
+
if (S.length === 0) return;
|
|
1302
|
+
const y = M[k], u = ((y && !y.disabled ? S.indexOf(y) : -1) + p + S.length) % S.length, E = S[u];
|
|
1303
|
+
E && I(M.indexOf(E));
|
|
1304
|
+
}, W = (p) => {
|
|
1305
|
+
if (p.key === "Escape") {
|
|
1306
|
+
f && p.stopPropagation(), v(!1);
|
|
1307
1307
|
return;
|
|
1308
1308
|
}
|
|
1309
|
-
if (
|
|
1309
|
+
if (p.key === "Tab") {
|
|
1310
1310
|
v(!1);
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (!f) {
|
|
1314
|
-
|
|
1314
|
+
p.key === "ArrowDown" && v(!0);
|
|
1315
1315
|
return;
|
|
1316
1316
|
}
|
|
1317
|
-
if (
|
|
1318
|
-
|
|
1319
|
-
else if (
|
|
1320
|
-
|
|
1321
|
-
else if (
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
} else if (
|
|
1326
|
-
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1329
|
-
} else if (
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1317
|
+
if (p.key === "ArrowDown")
|
|
1318
|
+
p.preventDefault(), C.current = !0, V(1);
|
|
1319
|
+
else if (p.key === "ArrowUp")
|
|
1320
|
+
p.preventDefault(), C.current = !0, V(-1);
|
|
1321
|
+
else if (p.key === "Home") {
|
|
1322
|
+
p.preventDefault(), C.current = !0;
|
|
1323
|
+
const y = S[0];
|
|
1324
|
+
y && I(M.indexOf(y));
|
|
1325
|
+
} else if (p.key === "End") {
|
|
1326
|
+
p.preventDefault(), C.current = !0;
|
|
1327
|
+
const y = S[S.length - 1];
|
|
1328
|
+
y && I(M.indexOf(y));
|
|
1329
|
+
} else if (p.key === "Enter" || p.key === " " && C.current) {
|
|
1330
|
+
const y = M[k];
|
|
1331
|
+
y && !y.disabled && (p.preventDefault(), N(y));
|
|
1332
1332
|
}
|
|
1333
|
-
}, G = f ?
|
|
1334
|
-
return /* @__PURE__ */
|
|
1333
|
+
}, G = f ? M[k] : void 0;
|
|
1334
|
+
return /* @__PURE__ */ L("div", { ref: H, className: z(de.wrap, $), style: w, children: [
|
|
1335
1335
|
/* @__PURE__ */ n(
|
|
1336
1336
|
ct,
|
|
1337
1337
|
{
|
|
1338
|
-
...
|
|
1339
|
-
type:
|
|
1338
|
+
..._,
|
|
1339
|
+
type: _.type ?? "text",
|
|
1340
1340
|
role: "combobox",
|
|
1341
1341
|
animated: g,
|
|
1342
1342
|
className: de.field,
|
|
@@ -1344,38 +1344,38 @@ function Sl({
|
|
|
1344
1344
|
"aria-expanded": f,
|
|
1345
1345
|
"aria-controls": D,
|
|
1346
1346
|
"aria-autocomplete": "list",
|
|
1347
|
-
"aria-activedescendant": G && !G.disabled ? `${D}-${
|
|
1347
|
+
"aria-activedescendant": G && !G.disabled ? `${D}-${k}` : void 0,
|
|
1348
1348
|
value: e,
|
|
1349
|
-
onFocus: (
|
|
1350
|
-
var
|
|
1351
|
-
(
|
|
1349
|
+
onFocus: (p) => {
|
|
1350
|
+
var y;
|
|
1351
|
+
(y = _.onFocus) == null || y.call(_, p), v(!0);
|
|
1352
1352
|
},
|
|
1353
|
-
onClick: (
|
|
1354
|
-
var
|
|
1355
|
-
(
|
|
1353
|
+
onClick: (p) => {
|
|
1354
|
+
var y;
|
|
1355
|
+
(y = _.onClick) == null || y.call(_, p), v(!0);
|
|
1356
1356
|
},
|
|
1357
|
-
onKeyDown: (
|
|
1358
|
-
var
|
|
1359
|
-
(
|
|
1357
|
+
onKeyDown: (p) => {
|
|
1358
|
+
var y;
|
|
1359
|
+
(y = _.onKeyDown) == null || y.call(_, p), W(p);
|
|
1360
1360
|
},
|
|
1361
|
-
onChange: (
|
|
1362
|
-
C.current = !1, t(
|
|
1361
|
+
onChange: (p) => {
|
|
1362
|
+
C.current = !1, t(p.target.value), v(!0);
|
|
1363
1363
|
},
|
|
1364
1364
|
children: a != null && /* @__PURE__ */ n(ct.Slot, { children: a })
|
|
1365
1365
|
}
|
|
1366
1366
|
),
|
|
1367
|
-
/* @__PURE__ */
|
|
1367
|
+
/* @__PURE__ */ L(
|
|
1368
1368
|
"div",
|
|
1369
1369
|
{
|
|
1370
1370
|
ref: Y,
|
|
1371
1371
|
popover: "manual",
|
|
1372
1372
|
"data-side": "bottom",
|
|
1373
|
-
className:
|
|
1373
|
+
className: z(de.panel, ue.spacePanel),
|
|
1374
1374
|
"data-animated": g ? void 0 : "false",
|
|
1375
1375
|
style: T ? { top: T.top, left: T.left, width: T.width } : void 0,
|
|
1376
1376
|
children: [
|
|
1377
|
-
|
|
1378
|
-
|
|
1377
|
+
x && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
|
|
1378
|
+
x && !c && M.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
|
|
1379
1379
|
/* @__PURE__ */ n(
|
|
1380
1380
|
"ul",
|
|
1381
1381
|
{
|
|
@@ -1383,30 +1383,30 @@ function Sl({
|
|
|
1383
1383
|
id: D,
|
|
1384
1384
|
role: "listbox",
|
|
1385
1385
|
className: de.list,
|
|
1386
|
-
hidden: c ||
|
|
1387
|
-
children:
|
|
1386
|
+
hidden: c || M.length === 0,
|
|
1387
|
+
children: M.map((p, y) => /* @__PURE__ */ L(
|
|
1388
1388
|
"li",
|
|
1389
1389
|
{
|
|
1390
|
-
id: `${D}-${
|
|
1391
|
-
"data-index":
|
|
1390
|
+
id: `${D}-${y}`,
|
|
1391
|
+
"data-index": y,
|
|
1392
1392
|
role: "option",
|
|
1393
|
-
"aria-selected":
|
|
1394
|
-
"aria-disabled":
|
|
1395
|
-
className:
|
|
1393
|
+
"aria-selected": y === k,
|
|
1394
|
+
"aria-disabled": p.disabled || void 0,
|
|
1395
|
+
className: z(
|
|
1396
1396
|
de.option,
|
|
1397
|
-
|
|
1397
|
+
y === k && !p.disabled && de.active,
|
|
1398
1398
|
"spAutocompleteOption"
|
|
1399
1399
|
),
|
|
1400
|
-
onMouseEnter: () => !
|
|
1400
|
+
onMouseEnter: () => !p.disabled && I(y),
|
|
1401
1401
|
onPointerDown: (d) => {
|
|
1402
|
-
d.preventDefault(),
|
|
1402
|
+
d.preventDefault(), N(p);
|
|
1403
1403
|
},
|
|
1404
1404
|
children: [
|
|
1405
|
-
/* @__PURE__ */ n("span", { className: de.label, children:
|
|
1406
|
-
|
|
1405
|
+
/* @__PURE__ */ n("span", { className: de.label, children: p.label }),
|
|
1406
|
+
p.meta != null && /* @__PURE__ */ n("span", { className: de.meta, children: p.meta })
|
|
1407
1407
|
]
|
|
1408
1408
|
},
|
|
1409
|
-
|
|
1409
|
+
p.value
|
|
1410
1410
|
))
|
|
1411
1411
|
}
|
|
1412
1412
|
),
|
|
@@ -1424,15 +1424,15 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
|
|
|
1424
1424
|
input: Jr
|
|
1425
1425
|
}, Tl = ae(function({ value: t, onValueChange: o, min: r, max: a, step: l, disabled: s, className: c, "aria-label": h }, m) {
|
|
1426
1426
|
const i = t[0] ?? r, g = a === r ? 0 : (i - r) / (a - r) * 100;
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */ n("span", { className:
|
|
1429
|
-
/* @__PURE__ */ n("span", { className:
|
|
1427
|
+
return /* @__PURE__ */ L("span", { className: z(Ae.root, ue.spaceSlider, c), "data-disabled": s || void 0, children: [
|
|
1428
|
+
/* @__PURE__ */ n("span", { className: z(Ae.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: z(Ae.range, "spSliderRange"), style: { width: `${g}%` } }) }),
|
|
1429
|
+
/* @__PURE__ */ n("span", { className: z(Ae.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
|
|
1430
1430
|
/* @__PURE__ */ n(
|
|
1431
1431
|
"input",
|
|
1432
1432
|
{
|
|
1433
1433
|
ref: m,
|
|
1434
1434
|
type: "range",
|
|
1435
|
-
className:
|
|
1435
|
+
className: z(Ae.input, "spSliderInput"),
|
|
1436
1436
|
value: i,
|
|
1437
1437
|
min: r,
|
|
1438
1438
|
max: a,
|
|
@@ -1443,7 +1443,7 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
|
|
|
1443
1443
|
}
|
|
1444
1444
|
)
|
|
1445
1445
|
] });
|
|
1446
|
-
}), es = "
|
|
1446
|
+
}), es = "_root_1fiei_15", ts = "_plot_1fiei_24", ns = "_svg_1fiei_30", os = "_grid_1fiei_35", rs = "_zeroLine_1fiei_42", ss = "_axisLabel_1fiei_46", as = "_bar_1fiei_56", ls = "_hatch_1fiei_76", cs = "_partialNote_1fiei_80", is = "_line_1fiei_85", ds = "_area_1fiei_119", us = "_dot_1fiei_125", fs = "_crosshair_1fiei_136", ps = "_clickable_1fiei_143", _s = "_tooltip_1fiei_150", hs = "_tooltipHead_1fiei_164", ms = "_tooltipList_1fiei_170", gs = "_tooltipRow_1fiei_178", Cs = "_tooltipName_1fiei_186", vs = "_tooltipValue_1fiei_190", bs = "_swatch_1fiei_195", $s = "_legend_1fiei_202", ws = "_legendItem_1fiei_211", ys = "_data_1fiei_220", K = {
|
|
1447
1447
|
root: es,
|
|
1448
1448
|
plot: ts,
|
|
1449
1449
|
svg: ns,
|
|
@@ -1457,8 +1457,8 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
|
|
|
1457
1457
|
area: ds,
|
|
1458
1458
|
dot: us,
|
|
1459
1459
|
crosshair: fs,
|
|
1460
|
-
clickable:
|
|
1461
|
-
tooltip:
|
|
1460
|
+
clickable: ps,
|
|
1461
|
+
tooltip: _s,
|
|
1462
1462
|
tooltipHead: hs,
|
|
1463
1463
|
tooltipList: ms,
|
|
1464
1464
|
tooltipRow: gs,
|
|
@@ -1467,7 +1467,7 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
|
|
|
1467
1467
|
swatch: bs,
|
|
1468
1468
|
legend: $s,
|
|
1469
1469
|
legendItem: ws,
|
|
1470
|
-
data:
|
|
1470
|
+
data: ys
|
|
1471
1471
|
}, vt = [
|
|
1472
1472
|
"var(--sp-chart-series-1-color)",
|
|
1473
1473
|
"var(--sp-chart-series-2-color)",
|
|
@@ -1478,21 +1478,21 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
|
|
|
1478
1478
|
"var(--sp-chart-series-7-color)",
|
|
1479
1479
|
"var(--sp-chart-series-8-color)"
|
|
1480
1480
|
], nt = vt.length, Ke = (e) => vt[e % nt];
|
|
1481
|
-
function
|
|
1481
|
+
function xs(e) {
|
|
1482
1482
|
if (e <= 0) return 1;
|
|
1483
1483
|
const t = 10 ** Math.floor(Math.log10(e)), o = e / t;
|
|
1484
1484
|
return (o <= 1 ? 1 : o <= 2 ? 2 : o <= 5 ? 5 : 10) * t;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const r = e.filter((
|
|
1486
|
+
function Ns(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
|
|
1487
|
+
const r = e.filter((_) => Number.isFinite(_)), a = r.length ? Math.min(...r) : 0, l = r.length ? Math.max(...r) : 0;
|
|
1488
1488
|
let s = o ? Math.min(0, a) : a, c = o ? Math.max(0, l) : l;
|
|
1489
1489
|
s === c && (s === 0 ? c = 1 : (s = Math.min(0, s), c = Math.max(0, c)));
|
|
1490
|
-
const h =
|
|
1491
|
-
for (let
|
|
1490
|
+
const h = xs((c - s) / Math.max(1, t)), m = Math.floor(s / h) * h, i = Math.ceil(c / h) * h, g = [], $ = Math.round((i - m) / h);
|
|
1491
|
+
for (let _ = 0; _ <= $; _++) g.push(Number((m + _ * h).toPrecision(12)));
|
|
1492
1492
|
const w = i - m || 1;
|
|
1493
|
-
return { min: m, max: i, ticks: g, ratio: (
|
|
1493
|
+
return { min: m, max: i, ticks: g, ratio: (_) => (_ - m) / w };
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Ls(e, t = 0.25) {
|
|
1496
1496
|
if (e <= 0) return { centre: [], width: 0 };
|
|
1497
1497
|
const o = 1 / e;
|
|
1498
1498
|
return {
|
|
@@ -1500,14 +1500,14 @@ function Ns(e, t = 0.25) {
|
|
|
1500
1500
|
width: o * (1 - t * 2)
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function Ms(e, t, o, r, a, l = !0) {
|
|
1504
1504
|
const s = Math.max(0, Math.min(a, o / 2, r));
|
|
1505
1505
|
return s === 0 ? `M${e},${t}h${o}v${r}h${-o}Z` : l ? `M${e},${t + r}V${t + s}a${s},${s} 0 0 1 ${s},${-s}h${o - s * 2}a${s},${s} 0 0 1 ${s},${s}V${t + r}Z` : `M${e},${t}V${t + r - s}a${s},${s} 0 0 0 ${s},${s}h${o - s * 2}a${s},${s} 0 0 0 ${s},${-s}V${t}Z`;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function ks(e) {
|
|
1508
1508
|
return e <= 0 ? [] : e === 1 ? [0.5] : Array.from({ length: e }, (t, o) => o / (e - 1));
|
|
1509
1509
|
}
|
|
1510
|
-
const
|
|
1510
|
+
const zs = () => {
|
|
1511
1511
|
var t, o;
|
|
1512
1512
|
return ((o = (t = globalThis.process) == null ? void 0 : t.env) == null ? void 0 : o.NODE_ENV) !== "production";
|
|
1513
1513
|
}, rt = (e) => Number.isInteger(e) ? e.toLocaleString("en-US") : e.toLocaleString("en-US", { maximumFractionDigits: 2 }), be = { top: 8, right: 8, bottom: 24 }, ut = 8;
|
|
@@ -1526,18 +1526,18 @@ function Al({
|
|
|
1526
1526
|
onPointClick: g,
|
|
1527
1527
|
className: $,
|
|
1528
1528
|
"aria-label": w,
|
|
1529
|
-
...
|
|
1529
|
+
..._
|
|
1530
1530
|
}) {
|
|
1531
|
-
const b = se(), v =
|
|
1531
|
+
const b = se(), v = F(null), [k, I] = Q(0), [H, Y] = Q(null);
|
|
1532
1532
|
te(() => {
|
|
1533
1533
|
const d = v.current;
|
|
1534
1534
|
if (!d) return;
|
|
1535
|
-
const u = new ResizeObserver(([
|
|
1536
|
-
|
|
1535
|
+
const u = new ResizeObserver(([E]) => {
|
|
1536
|
+
I(Math.round(E.contentRect.width));
|
|
1537
1537
|
});
|
|
1538
|
-
return u.observe(d),
|
|
1538
|
+
return u.observe(d), I(Math.round(d.getBoundingClientRect().width)), () => u.disconnect();
|
|
1539
1539
|
}, []), te(() => {
|
|
1540
|
-
if (!
|
|
1540
|
+
if (!zs()) return;
|
|
1541
1541
|
o.length > nt && console.warn(
|
|
1542
1542
|
`Chart: ${o.length} series, but the palette names ${nt}. Past that the colours repeat. Group the tail into an "Other" series, or split the chart.`
|
|
1543
1543
|
);
|
|
@@ -1546,68 +1546,68 @@ function Al({
|
|
|
1546
1546
|
`Chart: ${d.map((u) => `"${u.name}"`).join(", ")} ${d.length === 1 ? "has" : "have"} a different number of values than there are categories (${t.length}). Values line up with categories by position, so the tail will be missing.`
|
|
1547
1547
|
);
|
|
1548
1548
|
}, [o, t.length]);
|
|
1549
|
-
const U = a && (e === "bar" || e === "area"), D = e === "bar" && typeof i == "number" && i >= 0, T = (d) => D && d >= i,
|
|
1549
|
+
const U = a && (e === "bar" || e === "area"), D = e === "bar" && typeof i == "number" && i >= 0, T = (d) => D && d >= i, B = _e(() => {
|
|
1550
1550
|
const d = [];
|
|
1551
|
-
return U ? t.forEach((u,
|
|
1552
|
-
let
|
|
1553
|
-
o.forEach((
|
|
1554
|
-
const
|
|
1555
|
-
typeof
|
|
1556
|
-
}), d.push(
|
|
1557
|
-
}) : o.forEach((u) => u.data.forEach((
|
|
1558
|
-
typeof
|
|
1559
|
-
})),
|
|
1560
|
-
}, [o, t, U, h, e]), X =
|
|
1551
|
+
return U ? t.forEach((u, E) => {
|
|
1552
|
+
let O = 0, Z = 0;
|
|
1553
|
+
o.forEach((P) => {
|
|
1554
|
+
const q = P.data[E];
|
|
1555
|
+
typeof q == "number" && (q >= 0 ? O += q : Z += q);
|
|
1556
|
+
}), d.push(O, Z);
|
|
1557
|
+
}) : o.forEach((u) => u.data.forEach((E) => {
|
|
1558
|
+
typeof E == "number" && d.push(E);
|
|
1559
|
+
})), Ns(d, { tickCount: h, zeroBased: e !== "line" || d.some((u) => u < 0) });
|
|
1560
|
+
}, [o, t, U, h, e]), X = _e(() => B.ticks.map(c), [B.ticks, c]), x = Math.max(...X.map((d) => d.length * 7), 24) + ut, M = Math.max(0, k - x - be.right), S = Math.max(0, r - be.top - be.bottom), j = e === "bar" ? 0 : 16, f = (d) => x + j + d * Math.max(0, M - j * 2), R = (d) => be.top + (1 - B.ratio(d)) * S, A = Ls(t.length), C = ks(t.length), N = (d) => {
|
|
1561
1561
|
var u;
|
|
1562
1562
|
return ((u = o[d]) == null ? void 0 : u.color) ?? Ke(d);
|
|
1563
|
-
},
|
|
1563
|
+
}, V = l ?? o.length > 1, W = _e(() => {
|
|
1564
1564
|
const d = o.map(() => []);
|
|
1565
|
-
return t.forEach((u,
|
|
1566
|
-
let
|
|
1567
|
-
o.forEach((
|
|
1568
|
-
const ee =
|
|
1565
|
+
return t.forEach((u, E) => {
|
|
1566
|
+
let O = 0, Z = 0;
|
|
1567
|
+
o.forEach((P, q) => {
|
|
1568
|
+
const ee = P.data[E];
|
|
1569
1569
|
if (!U || typeof ee != "number") {
|
|
1570
|
-
d[
|
|
1570
|
+
d[q][E] = 0;
|
|
1571
1571
|
return;
|
|
1572
1572
|
}
|
|
1573
|
-
ee >= 0 ? (d[
|
|
1573
|
+
ee >= 0 ? (d[q][E] = O, O += ee) : (d[q][E] = Z, Z += ee);
|
|
1574
1574
|
});
|
|
1575
1575
|
}), d;
|
|
1576
|
-
}, [o, t, U]), G =
|
|
1576
|
+
}, [o, t, U]), G = pe(
|
|
1577
1577
|
(d) => {
|
|
1578
1578
|
const u = v.current;
|
|
1579
|
-
if (!u || !t.length ||
|
|
1580
|
-
const
|
|
1581
|
-
let
|
|
1582
|
-
return
|
|
1583
|
-
Math.abs(ee -
|
|
1584
|
-
}), { index:
|
|
1579
|
+
if (!u || !t.length || M <= 0) return null;
|
|
1580
|
+
const E = u.getBoundingClientRect(), O = e === "bar" ? M : Math.max(1, M - 32), Z = (d - E.left - x - (e === "bar" ? 0 : 16)) / O, P = e === "bar" ? A.centre : C;
|
|
1581
|
+
let q = 0;
|
|
1582
|
+
return P.forEach((ee, ne) => {
|
|
1583
|
+
Math.abs(ee - Z) < Math.abs(P[q] - Z) && (q = ne);
|
|
1584
|
+
}), { index: q, x: f(P[q]) };
|
|
1585
1585
|
},
|
|
1586
1586
|
// x and the position arrays are derived from these; listing them keeps the
|
|
1587
1587
|
// callback honest without re-creating it on every render.
|
|
1588
|
-
[t.length,
|
|
1588
|
+
[t.length, x, M, e, A.centre, C]
|
|
1589
1589
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
1590
|
-
),
|
|
1591
|
-
var
|
|
1592
|
-
const
|
|
1593
|
-
typeof
|
|
1590
|
+
), p = (d, u) => {
|
|
1591
|
+
var O;
|
|
1592
|
+
const E = (O = o[d]) == null ? void 0 : O.data[u];
|
|
1593
|
+
typeof E != "number" || !g || g({
|
|
1594
1594
|
series: o[d].name,
|
|
1595
1595
|
seriesIndex: d,
|
|
1596
1596
|
category: t[u],
|
|
1597
1597
|
categoryIndex: u,
|
|
1598
|
-
value:
|
|
1598
|
+
value: E
|
|
1599
1599
|
});
|
|
1600
|
-
},
|
|
1601
|
-
return /* @__PURE__ */
|
|
1600
|
+
}, y = U || o.length === 1 ? A.width * M : A.width * M / o.length;
|
|
1601
|
+
return /* @__PURE__ */ L(
|
|
1602
1602
|
"div",
|
|
1603
1603
|
{
|
|
1604
|
-
...
|
|
1605
|
-
className:
|
|
1604
|
+
..._,
|
|
1605
|
+
className: z(K.root, $),
|
|
1606
1606
|
"data-type": e,
|
|
1607
1607
|
"data-animated": m ? "" : void 0,
|
|
1608
|
-
style: { ...
|
|
1608
|
+
style: { ..._.style },
|
|
1609
1609
|
children: [
|
|
1610
|
-
/* @__PURE__ */
|
|
1610
|
+
/* @__PURE__ */ L(
|
|
1611
1611
|
"div",
|
|
1612
1612
|
{
|
|
1613
1613
|
ref: v,
|
|
@@ -1618,28 +1618,28 @@ function Al({
|
|
|
1618
1618
|
},
|
|
1619
1619
|
onPointerLeave: () => Y(null),
|
|
1620
1620
|
children: [
|
|
1621
|
-
/* @__PURE__ */
|
|
1621
|
+
/* @__PURE__ */ L(
|
|
1622
1622
|
"svg",
|
|
1623
1623
|
{
|
|
1624
1624
|
className: K.svg,
|
|
1625
|
-
width:
|
|
1625
|
+
width: k || void 0,
|
|
1626
1626
|
height: r,
|
|
1627
|
-
viewBox:
|
|
1627
|
+
viewBox: k ? `0 0 ${k} ${r}` : void 0,
|
|
1628
1628
|
role: "img",
|
|
1629
1629
|
"aria-labelledby": w ? void 0 : b,
|
|
1630
1630
|
"aria-label": w,
|
|
1631
1631
|
children: [
|
|
1632
|
-
/* @__PURE__ */
|
|
1633
|
-
o.map((d, u) => /* @__PURE__ */
|
|
1634
|
-
/* @__PURE__ */ n("stop", { offset: "0%", stopColor:
|
|
1635
|
-
/* @__PURE__ */ n("stop", { offset: "100%", stopColor:
|
|
1632
|
+
/* @__PURE__ */ L("defs", { children: [
|
|
1633
|
+
o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-grad-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1634
|
+
/* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "1" }),
|
|
1635
|
+
/* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.55" })
|
|
1636
1636
|
] }, `grad-${u}`)),
|
|
1637
|
-
o.map((d, u) => /* @__PURE__ */
|
|
1638
|
-
/* @__PURE__ */ n("stop", { offset: "0%", stopColor:
|
|
1639
|
-
/* @__PURE__ */ n("stop", { offset: "100%", stopColor:
|
|
1637
|
+
o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-area-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1638
|
+
/* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "0.45" }),
|
|
1639
|
+
/* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.02" })
|
|
1640
1640
|
] }, `area-${u}`))
|
|
1641
1641
|
] }),
|
|
1642
|
-
D && /* @__PURE__ */ n("defs", { children: o.map((d, u) => /* @__PURE__ */
|
|
1642
|
+
D && /* @__PURE__ */ n("defs", { children: o.map((d, u) => /* @__PURE__ */ L(
|
|
1643
1643
|
"pattern",
|
|
1644
1644
|
{
|
|
1645
1645
|
id: `${b}-hatch-${u}`,
|
|
@@ -1649,24 +1649,24 @@ function Al({
|
|
|
1649
1649
|
patternTransform: "rotate(45)",
|
|
1650
1650
|
children: [
|
|
1651
1651
|
/* @__PURE__ */ n("rect", { width: "8", height: "8", fill: "transparent" }),
|
|
1652
|
-
/* @__PURE__ */ n("line", { className: K.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke:
|
|
1653
|
-
/* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke:
|
|
1652
|
+
/* @__PURE__ */ n("line", { className: K.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke: N(u) }),
|
|
1653
|
+
/* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: N(u) })
|
|
1654
1654
|
]
|
|
1655
1655
|
},
|
|
1656
1656
|
`hatch-${u}`
|
|
1657
1657
|
)) }),
|
|
1658
|
-
s &&
|
|
1658
|
+
s && B.ticks.map((d) => /* @__PURE__ */ n(
|
|
1659
1659
|
"line",
|
|
1660
1660
|
{
|
|
1661
|
-
className:
|
|
1662
|
-
x1:
|
|
1663
|
-
x2:
|
|
1664
|
-
y1:
|
|
1665
|
-
y2:
|
|
1661
|
+
className: z(K.grid, d === 0 && B.min < 0 && K.zeroLine),
|
|
1662
|
+
x1: x,
|
|
1663
|
+
x2: x + M,
|
|
1664
|
+
y1: R(d),
|
|
1665
|
+
y2: R(d)
|
|
1666
1666
|
},
|
|
1667
1667
|
`grid-${d}`
|
|
1668
1668
|
)),
|
|
1669
|
-
|
|
1669
|
+
B.ticks.map((d, u) => /* @__PURE__ */ n("text", { className: K.axisLabel, x: x - ut, y: R(d), textAnchor: "end", dominantBaseline: "middle", children: X[u] }, `label-${d}`)),
|
|
1670
1670
|
t.map((d, u) => /* @__PURE__ */ n(
|
|
1671
1671
|
"text",
|
|
1672
1672
|
{
|
|
@@ -1679,99 +1679,99 @@ function Al({
|
|
|
1679
1679
|
},
|
|
1680
1680
|
`cat-${d}-${u}`
|
|
1681
1681
|
)),
|
|
1682
|
-
e === "bar" && o.map((d, u) => /* @__PURE__ */ n("g", { children: t.map((
|
|
1683
|
-
const
|
|
1684
|
-
if (typeof
|
|
1685
|
-
const
|
|
1682
|
+
e === "bar" && o.map((d, u) => /* @__PURE__ */ n("g", { children: t.map((E, O) => {
|
|
1683
|
+
const Z = d.data[O];
|
|
1684
|
+
if (typeof Z != "number") return null;
|
|
1685
|
+
const P = W[u][O], q = R(P + Z), ee = R(P), ne = f(A.centre[O]) - A.width * M / 2, ie = U || o.length === 1 ? ne : ne + u * y, Qe = Math.max(1, y - (o.length > 1 && !U ? 2 : 0)), me = Math.max(1, Math.abs(ee - q)), De = D && O >= i;
|
|
1686
1686
|
return /* @__PURE__ */ n(
|
|
1687
1687
|
"path",
|
|
1688
1688
|
{
|
|
1689
|
-
className:
|
|
1690
|
-
d:
|
|
1689
|
+
className: z(K.bar, g && K.clickable),
|
|
1690
|
+
d: Ms(ie, Math.min(q, ee), Qe, me, 4, Z >= 0),
|
|
1691
1691
|
fill: De ? `url(#${b}-hatch-${u})` : `url(#${b}-grad-${u})`,
|
|
1692
|
-
color:
|
|
1693
|
-
"data-dim":
|
|
1694
|
-
onClick: () =>
|
|
1695
|
-
children: /* @__PURE__ */ n("title", { children: `${d.name}, ${
|
|
1692
|
+
color: N(u),
|
|
1693
|
+
"data-dim": H && H.index !== O ? "" : void 0,
|
|
1694
|
+
onClick: () => p(u, O),
|
|
1695
|
+
children: /* @__PURE__ */ n("title", { children: `${d.name}, ${E}: ${c(Z)}${De ? " so far" : ""}` })
|
|
1696
1696
|
},
|
|
1697
|
-
`bar-${
|
|
1697
|
+
`bar-${E}-${O}`
|
|
1698
1698
|
);
|
|
1699
1699
|
}) }, `bars-${d.name}-${u}`)),
|
|
1700
1700
|
e !== "bar" && o.map((d, u) => {
|
|
1701
|
-
const
|
|
1702
|
-
let
|
|
1703
|
-
return d.data.forEach((
|
|
1704
|
-
if (typeof
|
|
1705
|
-
|
|
1701
|
+
const E = [];
|
|
1702
|
+
let O = [];
|
|
1703
|
+
return d.data.forEach((Z, P) => {
|
|
1704
|
+
if (typeof Z != "number") {
|
|
1705
|
+
O.length && E.push(O), O = [];
|
|
1706
1706
|
return;
|
|
1707
1707
|
}
|
|
1708
|
-
|
|
1709
|
-
}),
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1712
|
-
return /* @__PURE__ */
|
|
1708
|
+
O.push({ i: P, value: Z, base: W[u][P] });
|
|
1709
|
+
}), O.length && E.push(O), /* @__PURE__ */ L("g", { children: [
|
|
1710
|
+
E.map((Z, P) => {
|
|
1711
|
+
const q = Z.map((ne, ie) => `${ie === 0 ? "M" : "L"}${f(C[ne.i])},${R(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${q} L${f(C[Z[Z.length - 1].i])},${R(Z[Z.length - 1].base)} ` + Z.slice().reverse().map((ne) => `L${f(C[ne.i])},${R(ne.base)}`).join(" ") + " Z" : null;
|
|
1712
|
+
return /* @__PURE__ */ L("g", { children: [
|
|
1713
1713
|
ee && /* @__PURE__ */ n("path", { className: K.area, d: ee, fill: `url(#${b}-area-${u})` }),
|
|
1714
1714
|
/* @__PURE__ */ n(
|
|
1715
1715
|
"path",
|
|
1716
1716
|
{
|
|
1717
1717
|
className: K.line,
|
|
1718
|
-
d:
|
|
1719
|
-
stroke:
|
|
1720
|
-
color:
|
|
1718
|
+
d: q,
|
|
1719
|
+
stroke: N(u),
|
|
1720
|
+
color: N(u),
|
|
1721
1721
|
fill: "none",
|
|
1722
1722
|
pathLength: 1
|
|
1723
1723
|
}
|
|
1724
1724
|
)
|
|
1725
|
-
] }, `run-${
|
|
1725
|
+
] }, `run-${P}`);
|
|
1726
1726
|
}),
|
|
1727
1727
|
d.data.map(
|
|
1728
|
-
(
|
|
1728
|
+
(Z, P) => typeof Z == "number" ? /* @__PURE__ */ n(
|
|
1729
1729
|
"circle",
|
|
1730
1730
|
{
|
|
1731
|
-
className:
|
|
1732
|
-
cx: f(C[
|
|
1733
|
-
cy:
|
|
1731
|
+
className: z(K.dot, g && K.clickable),
|
|
1732
|
+
cx: f(C[P]),
|
|
1733
|
+
cy: R(W[u][P] + Z),
|
|
1734
1734
|
r: 4,
|
|
1735
|
-
fill:
|
|
1736
|
-
color:
|
|
1737
|
-
"data-on": (
|
|
1738
|
-
onClick: () =>
|
|
1739
|
-
children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[
|
|
1735
|
+
fill: N(u),
|
|
1736
|
+
color: N(u),
|
|
1737
|
+
"data-on": (H == null ? void 0 : H.index) === P ? "" : void 0,
|
|
1738
|
+
onClick: () => p(u, P),
|
|
1739
|
+
children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[P]}: ${c(Z)}` })
|
|
1740
1740
|
},
|
|
1741
|
-
`dot-${
|
|
1741
|
+
`dot-${P}`
|
|
1742
1742
|
) : null
|
|
1743
1743
|
)
|
|
1744
1744
|
] }, `line-${d.name}-${u}`);
|
|
1745
1745
|
}),
|
|
1746
|
-
|
|
1746
|
+
H && /* @__PURE__ */ n(
|
|
1747
1747
|
"line",
|
|
1748
1748
|
{
|
|
1749
1749
|
className: K.crosshair,
|
|
1750
|
-
x1:
|
|
1751
|
-
x2:
|
|
1750
|
+
x1: H.x,
|
|
1751
|
+
x2: H.x,
|
|
1752
1752
|
y1: be.top,
|
|
1753
|
-
y2: be.top +
|
|
1753
|
+
y2: be.top + S
|
|
1754
1754
|
}
|
|
1755
1755
|
)
|
|
1756
1756
|
]
|
|
1757
1757
|
}
|
|
1758
1758
|
),
|
|
1759
|
-
|
|
1759
|
+
H && /* @__PURE__ */ L(
|
|
1760
1760
|
"div",
|
|
1761
1761
|
{
|
|
1762
1762
|
className: K.tooltip,
|
|
1763
|
-
style:
|
|
1763
|
+
style: H.x > x + M / 2 ? { right: Math.max(0, k - H.x + 12) } : { left: H.x + 12 },
|
|
1764
1764
|
role: "status",
|
|
1765
1765
|
children: [
|
|
1766
|
-
/* @__PURE__ */ n("p", { className: K.tooltipHead, children: t[
|
|
1766
|
+
/* @__PURE__ */ n("p", { className: K.tooltipHead, children: t[H.index] }),
|
|
1767
1767
|
/* @__PURE__ */ n("ul", { className: K.tooltipList, children: o.map((d, u) => {
|
|
1768
|
-
const
|
|
1769
|
-
return /* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */ n("span", { className: K.swatch, style: { background:
|
|
1768
|
+
const E = d.data[H.index];
|
|
1769
|
+
return /* @__PURE__ */ L("li", { className: K.tooltipRow, children: [
|
|
1770
|
+
/* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
|
|
1771
1771
|
/* @__PURE__ */ n("span", { className: K.tooltipName, children: d.name }),
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
typeof
|
|
1774
|
-
T(
|
|
1772
|
+
/* @__PURE__ */ L("span", { className: K.tooltipValue, children: [
|
|
1773
|
+
typeof E == "number" ? c(E) : "—",
|
|
1774
|
+
T(H.index) && typeof E == "number" && /* @__PURE__ */ n("span", { className: K.partialNote, children: "so far" })
|
|
1775
1775
|
] })
|
|
1776
1776
|
] }, d.name);
|
|
1777
1777
|
}) })
|
|
@@ -1781,40 +1781,40 @@ function Al({
|
|
|
1781
1781
|
]
|
|
1782
1782
|
}
|
|
1783
1783
|
),
|
|
1784
|
-
|
|
1785
|
-
/* @__PURE__ */ n("span", { className: K.swatch, style: { background:
|
|
1784
|
+
V && /* @__PURE__ */ n("ul", { className: K.legend, children: o.map((d, u) => /* @__PURE__ */ L("li", { className: K.legendItem, children: [
|
|
1785
|
+
/* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
|
|
1786
1786
|
d.name
|
|
1787
1787
|
] }, d.name)) }),
|
|
1788
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ L("table", { className: K.data, id: b, children: [
|
|
1789
1789
|
/* @__PURE__ */ n("caption", { children: w ?? "Chart data" }),
|
|
1790
|
-
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ L("tr", { children: [
|
|
1791
1791
|
/* @__PURE__ */ n("th", { scope: "col", children: "Category" }),
|
|
1792
1792
|
o.map((d) => /* @__PURE__ */ n("th", { scope: "col", children: d.name }, d.name))
|
|
1793
1793
|
] }) }),
|
|
1794
|
-
/* @__PURE__ */ n("tbody", { children: t.map((d, u) => /* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ n("tbody", { children: t.map((d, u) => /* @__PURE__ */ L("tr", { children: [
|
|
1795
1795
|
/* @__PURE__ */ n("th", { scope: "row", children: d }),
|
|
1796
|
-
o.map((
|
|
1797
|
-
typeof
|
|
1798
|
-
T(u) && typeof
|
|
1799
|
-
] },
|
|
1796
|
+
o.map((E) => /* @__PURE__ */ L("td", { children: [
|
|
1797
|
+
typeof E.data[u] == "number" ? c(E.data[u]) : "—",
|
|
1798
|
+
T(u) && typeof E.data[u] == "number" ? " so far" : ""
|
|
1799
|
+
] }, E.name))
|
|
1800
1800
|
] }, d)) })
|
|
1801
1801
|
] })
|
|
1802
1802
|
]
|
|
1803
1803
|
}
|
|
1804
1804
|
);
|
|
1805
1805
|
}
|
|
1806
|
-
const
|
|
1807
|
-
root:
|
|
1808
|
-
row:
|
|
1806
|
+
const Rs = "_root_1v7ph_8", Es = "_row_1v7ph_15", Ds = "_line_1v7ph_21", Is = "_pressable_1v7ph_36", Hs = "_fill_1v7ph_50", Ss = "_label_1v7ph_58", qs = "_track_1v7ph_66", Ts = "_value_1v7ph_101", As = "_percent_1v7ph_106", fe = {
|
|
1807
|
+
root: Rs,
|
|
1808
|
+
row: Es,
|
|
1809
1809
|
line: Ds,
|
|
1810
|
-
pressable:
|
|
1811
|
-
fill:
|
|
1812
|
-
label:
|
|
1813
|
-
track:
|
|
1810
|
+
pressable: Is,
|
|
1811
|
+
fill: Hs,
|
|
1812
|
+
label: Ss,
|
|
1813
|
+
track: qs,
|
|
1814
1814
|
value: Ts,
|
|
1815
1815
|
percent: As
|
|
1816
1816
|
};
|
|
1817
|
-
function
|
|
1817
|
+
function Ol({
|
|
1818
1818
|
items: e,
|
|
1819
1819
|
max: t,
|
|
1820
1820
|
showPercent: o = !1,
|
|
@@ -1831,19 +1831,19 @@ function jl({
|
|
|
1831
1831
|
"div",
|
|
1832
1832
|
{
|
|
1833
1833
|
...m,
|
|
1834
|
-
className:
|
|
1834
|
+
className: z(fe.root, c),
|
|
1835
1835
|
role: "list",
|
|
1836
1836
|
"aria-label": h,
|
|
1837
1837
|
"data-animated": l ? "" : void 0,
|
|
1838
1838
|
children: e.map(($, w) => {
|
|
1839
|
-
const
|
|
1839
|
+
const _ = i > 0 ? Math.max(0, $.value) / i : 0, b = g > 0 ? $.value / g * 100 : 0, v = $.color ?? (a ? Ke(w) : "var(--sp-chart-series-1-color)"), k = /* @__PURE__ */ L(he, { children: [
|
|
1840
1840
|
/* @__PURE__ */ n("span", { className: fe.label, children: $.label }),
|
|
1841
1841
|
/* @__PURE__ */ n("span", { className: fe.track, children: /* @__PURE__ */ n(
|
|
1842
1842
|
"span",
|
|
1843
1843
|
{
|
|
1844
1844
|
className: fe.fill,
|
|
1845
1845
|
style: {
|
|
1846
|
-
width: `${
|
|
1846
|
+
width: `${_ * 100}%`,
|
|
1847
1847
|
background: v,
|
|
1848
1848
|
// Each row starts a little after the one above, so a poll
|
|
1849
1849
|
// reads as counting up rather than snapping into place.
|
|
@@ -1853,9 +1853,9 @@ function jl({
|
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
) }),
|
|
1856
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ L("span", { className: fe.value, children: [
|
|
1857
1857
|
r($.value),
|
|
1858
|
-
o && /* @__PURE__ */
|
|
1858
|
+
o && /* @__PURE__ */ L("span", { className: fe.percent, children: [
|
|
1859
1859
|
Math.round(b),
|
|
1860
1860
|
"%"
|
|
1861
1861
|
] })
|
|
@@ -1865,24 +1865,24 @@ function jl({
|
|
|
1865
1865
|
"button",
|
|
1866
1866
|
{
|
|
1867
1867
|
type: "button",
|
|
1868
|
-
className:
|
|
1868
|
+
className: z(fe.line, fe.pressable),
|
|
1869
1869
|
onClick: () => s($, w),
|
|
1870
|
-
children:
|
|
1870
|
+
children: k
|
|
1871
1871
|
}
|
|
1872
|
-
) : /* @__PURE__ */ n("span", { className: fe.line, children:
|
|
1872
|
+
) : /* @__PURE__ */ n("span", { className: fe.line, children: k }) }, `${$.label}-${w}`);
|
|
1873
1873
|
})
|
|
1874
1874
|
}
|
|
1875
1875
|
);
|
|
1876
1876
|
}
|
|
1877
|
-
const
|
|
1878
|
-
root:
|
|
1879
|
-
svg:
|
|
1880
|
-
face:
|
|
1881
|
-
hole:
|
|
1882
|
-
slice:
|
|
1883
|
-
sweep:
|
|
1884
|
-
clickable:
|
|
1885
|
-
total:
|
|
1877
|
+
const Os = "_root_ep6xn_6", Zs = "_svg_ep6xn_15", Bs = "_face_ep6xn_24", Vs = "_hole_ep6xn_25", Ws = "_slice_ep6xn_35", Ps = "_sweep_ep6xn_57", Fs = "_clickable_ep6xn_70", js = "_total_ep6xn_76", Gs = "_totalLabel_ep6xn_84", Us = "_legend_ep6xn_89", Ks = "_legendItem_ep6xn_98", Xs = "_legendName_ep6xn_113", Ys = "_legendValue_ep6xn_121", Qs = "_legendPercent_ep6xn_126", Js = "_swatch_ep6xn_131", oe = {
|
|
1878
|
+
root: Os,
|
|
1879
|
+
svg: Zs,
|
|
1880
|
+
face: Bs,
|
|
1881
|
+
hole: Vs,
|
|
1882
|
+
slice: Ws,
|
|
1883
|
+
sweep: Ps,
|
|
1884
|
+
clickable: Fs,
|
|
1885
|
+
total: js,
|
|
1886
1886
|
totalLabel: Gs,
|
|
1887
1887
|
legend: Us,
|
|
1888
1888
|
legendItem: Ks,
|
|
@@ -1890,11 +1890,11 @@ const js = "_root_1y6jk_6", Os = "_svg_1y6jk_15", Zs = "_face_1y6jk_24", Bs = "_
|
|
|
1890
1890
|
legendValue: Ys,
|
|
1891
1891
|
legendPercent: Qs,
|
|
1892
1892
|
swatch: Js
|
|
1893
|
-
},
|
|
1893
|
+
}, Me = (e, t, o) => {
|
|
1894
1894
|
const r = o * 2 * Math.PI - Math.PI / 2;
|
|
1895
1895
|
return { x: e + t * Math.cos(r), y: e + t * Math.sin(r) };
|
|
1896
1896
|
};
|
|
1897
|
-
function
|
|
1897
|
+
function Zl({
|
|
1898
1898
|
slices: e,
|
|
1899
1899
|
donut: t = !1,
|
|
1900
1900
|
label: o,
|
|
@@ -1907,16 +1907,16 @@ function Ol({
|
|
|
1907
1907
|
"aria-label": m,
|
|
1908
1908
|
...i
|
|
1909
1909
|
}) {
|
|
1910
|
-
const [g, $] = Q(null), w = se(),
|
|
1911
|
-
let
|
|
1912
|
-
const Y =
|
|
1913
|
-
const
|
|
1914
|
-
|
|
1915
|
-
const
|
|
1916
|
-
return { slice: D, index: T, d: f, fraction:
|
|
1910
|
+
const [g, $] = Q(null), w = se(), _ = e.filter((D) => D.value > 0), b = _.reduce((D, T) => D + T.value, 0), v = r / 2, k = v - 2, I = t ? k * 0.62 : 0;
|
|
1911
|
+
let H = 0;
|
|
1912
|
+
const Y = _.map((D, T) => {
|
|
1913
|
+
const B = b > 0 ? D.value / b : 0, X = H;
|
|
1914
|
+
H += B;
|
|
1915
|
+
const x = Me(v, k, X), M = Me(v, k, H), S = B > 0.5 ? 1 : 0, j = B >= 0.999, f = j ? t ? `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z M${v},${v - I} A${I},${I} 0 1 0 ${v - 0.01},${v - I} Z` : `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z` : t ? `M${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} L${Me(v, I, H).x},${Me(v, I, H).y} A${I},${I} 0 ${S} 0 ${Me(v, I, X).x},${Me(v, I, X).y} Z` : `M${v},${v} L${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} Z`;
|
|
1916
|
+
return { slice: D, index: T, d: f, fraction: B, fillRule: j && t ? "evenodd" : void 0 };
|
|
1917
1917
|
}), U = (D) => e.indexOf(D);
|
|
1918
|
-
return /* @__PURE__ */
|
|
1919
|
-
/* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ L("div", { ...i, className: z(oe.root, h), "data-animated": l ? "" : void 0, children: [
|
|
1919
|
+
/* @__PURE__ */ L(
|
|
1920
1920
|
"svg",
|
|
1921
1921
|
{
|
|
1922
1922
|
className: oe.svg,
|
|
@@ -1926,23 +1926,23 @@ function Ol({
|
|
|
1926
1926
|
role: "img",
|
|
1927
1927
|
"aria-label": m ?? "Pie chart",
|
|
1928
1928
|
children: [
|
|
1929
|
-
/* @__PURE__ */
|
|
1930
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ L("defs", { children: [
|
|
1930
|
+
/* @__PURE__ */ L("radialGradient", { id: `${w}-face`, cx: "32%", cy: "26%", r: "78%", children: [
|
|
1931
1931
|
/* @__PURE__ */ n("stop", { offset: "0%", stopColor: "#fff", stopOpacity: "0.22" }),
|
|
1932
1932
|
/* @__PURE__ */ n("stop", { offset: "55%", stopColor: "#fff", stopOpacity: "0.04" }),
|
|
1933
1933
|
/* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.28" })
|
|
1934
1934
|
] }),
|
|
1935
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ L("radialGradient", { id: `${w}-edge`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
1936
1936
|
/* @__PURE__ */ n("stop", { offset: "88%", stopColor: "#000", stopOpacity: "0" }),
|
|
1937
1937
|
/* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.45" })
|
|
1938
1938
|
] })
|
|
1939
1939
|
] }),
|
|
1940
|
-
/* @__PURE__ */
|
|
1941
|
-
Y.map(({ slice: D, index: T, d:
|
|
1940
|
+
/* @__PURE__ */ L("g", { className: oe.sweep, children: [
|
|
1941
|
+
Y.map(({ slice: D, index: T, d: B, fillRule: X }) => /* @__PURE__ */ n(
|
|
1942
1942
|
"path",
|
|
1943
1943
|
{
|
|
1944
|
-
className:
|
|
1945
|
-
d:
|
|
1944
|
+
className: z(oe.slice, c && oe.clickable),
|
|
1945
|
+
d: B,
|
|
1946
1946
|
fill: D.color ?? Ke(U(D)),
|
|
1947
1947
|
fillRule: X,
|
|
1948
1948
|
"data-dim": g !== null && g !== T ? "" : void 0,
|
|
@@ -1953,8 +1953,8 @@ function Ol({
|
|
|
1953
1953
|
},
|
|
1954
1954
|
`${D.label}-${T}`
|
|
1955
1955
|
)),
|
|
1956
|
-
/* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r:
|
|
1957
|
-
/* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r:
|
|
1956
|
+
/* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-face)` }),
|
|
1957
|
+
/* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-edge)` }),
|
|
1958
1958
|
t && // The wall of the hole, so the middle reads as cut through the
|
|
1959
1959
|
// disc rather than printed on it.
|
|
1960
1960
|
/* @__PURE__ */ n(
|
|
@@ -1963,7 +1963,7 @@ function Ol({
|
|
|
1963
1963
|
className: oe.hole,
|
|
1964
1964
|
cx: v,
|
|
1965
1965
|
cy: v,
|
|
1966
|
-
r:
|
|
1966
|
+
r: I,
|
|
1967
1967
|
fill: "none",
|
|
1968
1968
|
stroke: "#000",
|
|
1969
1969
|
strokeOpacity: "0.45",
|
|
@@ -1971,14 +1971,14 @@ function Ol({
|
|
|
1971
1971
|
}
|
|
1972
1972
|
)
|
|
1973
1973
|
] }),
|
|
1974
|
-
t && /* @__PURE__ */
|
|
1975
|
-
/* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ?
|
|
1976
|
-
o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ?
|
|
1974
|
+
t && /* @__PURE__ */ L(he, { children: [
|
|
1975
|
+
/* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ? _[g].value : b) }),
|
|
1976
|
+
o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ? _[g].label : o })
|
|
1977
1977
|
] })
|
|
1978
1978
|
]
|
|
1979
1979
|
}
|
|
1980
1980
|
),
|
|
1981
|
-
a && /* @__PURE__ */ n("ul", { className: oe.legend, children:
|
|
1981
|
+
a && /* @__PURE__ */ n("ul", { className: oe.legend, children: _.map((D, T) => /* @__PURE__ */ L(
|
|
1982
1982
|
"li",
|
|
1983
1983
|
{
|
|
1984
1984
|
className: oe.legendItem,
|
|
@@ -1993,9 +1993,9 @@ function Ol({
|
|
|
1993
1993
|
}
|
|
1994
1994
|
),
|
|
1995
1995
|
/* @__PURE__ */ n("span", { className: oe.legendName, children: D.label }),
|
|
1996
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ L("span", { className: oe.legendValue, children: [
|
|
1997
1997
|
s(D.value),
|
|
1998
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ L("span", { className: oe.legendPercent, children: [
|
|
1999
1999
|
b > 0 ? Math.round(D.value / b * 100) : 0,
|
|
2000
2000
|
"%"
|
|
2001
2001
|
] })
|
|
@@ -2006,7 +2006,7 @@ function Ol({
|
|
|
2006
2006
|
)) })
|
|
2007
2007
|
] });
|
|
2008
2008
|
}
|
|
2009
|
-
const ea = "
|
|
2009
|
+
const ea = "_root_czld4_18", ta = "_item_czld4_24", na = "_selfLabeled_czld4_33", oa = "_label_czld4_37", ra = "_input_czld4_41", sa = "_box_czld4_57", aa = "_tick_czld4_80", la = "_dash_czld4_81", ca = "_tickPath_czld4_95", re = {
|
|
2010
2010
|
root: ea,
|
|
2011
2011
|
item: ta,
|
|
2012
2012
|
selfLabeled: na,
|
|
@@ -2016,7 +2016,7 @@ const ea = "_root_mmcx8_18", ta = "_item_mmcx8_24", na = "_selfLabeled_mmcx8_33"
|
|
|
2016
2016
|
tick: aa,
|
|
2017
2017
|
dash: la,
|
|
2018
2018
|
tickPath: ca
|
|
2019
|
-
}, bt =
|
|
2019
|
+
}, bt = Re(null);
|
|
2020
2020
|
function $t({
|
|
2021
2021
|
checked: e,
|
|
2022
2022
|
indeterminate: t,
|
|
@@ -2025,10 +2025,10 @@ function $t({
|
|
|
2025
2025
|
value: a,
|
|
2026
2026
|
ariaLabel: l
|
|
2027
2027
|
}) {
|
|
2028
|
-
const s =
|
|
2028
|
+
const s = F(null);
|
|
2029
2029
|
return te(() => {
|
|
2030
2030
|
s.current && (s.current.indeterminate = t === !0);
|
|
2031
|
-
}, [t]), /* @__PURE__ */
|
|
2031
|
+
}, [t]), /* @__PURE__ */ L(he, { children: [
|
|
2032
2032
|
/* @__PURE__ */ n(
|
|
2033
2033
|
"input",
|
|
2034
2034
|
{
|
|
@@ -2042,7 +2042,7 @@ function $t({
|
|
|
2042
2042
|
onChange: (c) => r(c.currentTarget.checked)
|
|
2043
2043
|
}
|
|
2044
2044
|
),
|
|
2045
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ L("span", { className: re.box, "aria-hidden": "true", children: [
|
|
2046
2046
|
/* @__PURE__ */ n("svg", { className: re.tick, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ n(
|
|
2047
2047
|
"path",
|
|
2048
2048
|
{
|
|
@@ -2067,10 +2067,10 @@ function ia({
|
|
|
2067
2067
|
"aria-label": a,
|
|
2068
2068
|
children: l
|
|
2069
2069
|
}) {
|
|
2070
|
-
return /* @__PURE__ */ n(bt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className:
|
|
2070
|
+
return /* @__PURE__ */ n(bt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className: z(re.root, r), children: l }) });
|
|
2071
2071
|
}
|
|
2072
2072
|
function da({ value: e, disabled: t, children: o }) {
|
|
2073
|
-
const r =
|
|
2073
|
+
const r = Ee(bt);
|
|
2074
2074
|
if (!r) throw new Error("CheckboxGroup.Item must be inside a CheckboxGroup");
|
|
2075
2075
|
const a = t || r.disabled, l = r.value.includes(e), s = /* @__PURE__ */ n(
|
|
2076
2076
|
$t,
|
|
@@ -2081,13 +2081,13 @@ function da({ value: e, disabled: t, children: o }) {
|
|
|
2081
2081
|
onToggle: (c) => r.onValueChange(c ? [...r.value, e] : r.value.filter((h) => h !== e))
|
|
2082
2082
|
}
|
|
2083
2083
|
);
|
|
2084
|
-
return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */
|
|
2084
|
+
return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled), children: [
|
|
2085
2085
|
s,
|
|
2086
2086
|
/* @__PURE__ */ n("span", { className: re.label, children: o })
|
|
2087
2087
|
] });
|
|
2088
2088
|
}
|
|
2089
|
-
const
|
|
2090
|
-
function
|
|
2089
|
+
const Bl = Object.assign(ia, { Item: da });
|
|
2090
|
+
function Vl({
|
|
2091
2091
|
checked: e,
|
|
2092
2092
|
onCheckedChange: t,
|
|
2093
2093
|
indeterminate: o,
|
|
@@ -2106,27 +2106,27 @@ function Bl({
|
|
|
2106
2106
|
onToggle: t
|
|
2107
2107
|
}
|
|
2108
2108
|
);
|
|
2109
|
-
return s == null ? /* @__PURE__ */ n("span", { className:
|
|
2109
|
+
return s == null ? /* @__PURE__ */ n("span", { className: z(re.item, a), children: c }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled, a), children: [
|
|
2110
2110
|
c,
|
|
2111
2111
|
/* @__PURE__ */ n("span", { className: re.label, children: s })
|
|
2112
2112
|
] });
|
|
2113
2113
|
}
|
|
2114
|
-
const ua = "
|
|
2114
|
+
const ua = "_root_mhh35_15", fa = "_item_mhh35_23", pa = "_selfLabeled_mhh35_32", _a = "_input_mhh35_36", ha = "_orb_mhh35_52", ma = "_burst_mhh35_99", $e = {
|
|
2115
2115
|
root: ua,
|
|
2116
2116
|
item: fa,
|
|
2117
|
-
selfLabeled:
|
|
2118
|
-
input:
|
|
2117
|
+
selfLabeled: pa,
|
|
2118
|
+
input: _a,
|
|
2119
2119
|
orb: ha,
|
|
2120
2120
|
burst: ma
|
|
2121
|
-
}, wt =
|
|
2121
|
+
}, wt = Re(null);
|
|
2122
2122
|
function ga({ value: e, onValueChange: t, disabled: o, className: r, children: a }) {
|
|
2123
2123
|
const l = se();
|
|
2124
|
-
return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className:
|
|
2124
|
+
return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: z($e.root, r), children: a }) });
|
|
2125
2125
|
}
|
|
2126
2126
|
function Ca({ value: e, disabled: t, children: o }) {
|
|
2127
|
-
const r =
|
|
2127
|
+
const r = Ee(wt);
|
|
2128
2128
|
if (!r) throw new Error("RadioGroup.Item must be inside a RadioGroup");
|
|
2129
|
-
const a = t || r.disabled, l = /* @__PURE__ */
|
|
2129
|
+
const a = t || r.disabled, l = /* @__PURE__ */ L(he, { children: [
|
|
2130
2130
|
/* @__PURE__ */ n(
|
|
2131
2131
|
"input",
|
|
2132
2132
|
{
|
|
@@ -2139,17 +2139,17 @@ function Ca({ value: e, disabled: t, children: o }) {
|
|
|
2139
2139
|
onChange: () => r.onValueChange(e)
|
|
2140
2140
|
}
|
|
2141
2141
|
),
|
|
2142
|
-
/* @__PURE__ */ n("span", { className:
|
|
2142
|
+
/* @__PURE__ */ n("span", { className: z($e.orb, "spRadioOrb"), "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: $e.burst }) })
|
|
2143
2143
|
] });
|
|
2144
|
-
return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */
|
|
2144
|
+
return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */ L("label", { className: z($e.item, $e.selfLabeled), children: [
|
|
2145
2145
|
l,
|
|
2146
2146
|
o
|
|
2147
2147
|
] });
|
|
2148
2148
|
}
|
|
2149
|
-
const
|
|
2149
|
+
const Wl = Object.assign(ga, { Item: Ca }), va = "_progress_1cre6_16", ba = {
|
|
2150
2150
|
progress: va
|
|
2151
2151
|
};
|
|
2152
|
-
function
|
|
2152
|
+
function Pl({ value: e, max: t = 100, className: o, style: r, ...a }) {
|
|
2153
2153
|
const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
|
|
2154
2154
|
return /* @__PURE__ */ n(
|
|
2155
2155
|
"div",
|
|
@@ -2159,71 +2159,71 @@ function Wl({ value: e, max: t = 100, className: o, style: r, ...a }) {
|
|
|
2159
2159
|
"aria-valuenow": e,
|
|
2160
2160
|
"aria-valuemin": 0,
|
|
2161
2161
|
"aria-valuemax": t,
|
|
2162
|
-
className:
|
|
2162
|
+
className: z(ba.progress, o),
|
|
2163
2163
|
style: r,
|
|
2164
2164
|
children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
|
|
2165
2165
|
}
|
|
2166
2166
|
);
|
|
2167
2167
|
}
|
|
2168
|
-
const $a = "
|
|
2168
|
+
const $a = "_message_ca22y_14", wa = "_info_ca22y_44", ya = "_warning_ca22y_49", xa = "_alert_ca22y_56", Na = "_icon_ca22y_63", La = "_body_ca22y_74", Ma = "_title_ca22y_83", ka = "_text_ca22y_90", ke = {
|
|
2169
2169
|
message: $a,
|
|
2170
2170
|
info: wa,
|
|
2171
|
-
warning:
|
|
2172
|
-
alert:
|
|
2173
|
-
icon:
|
|
2174
|
-
body:
|
|
2175
|
-
title:
|
|
2176
|
-
text:
|
|
2171
|
+
warning: ya,
|
|
2172
|
+
alert: xa,
|
|
2173
|
+
icon: Na,
|
|
2174
|
+
body: La,
|
|
2175
|
+
title: Ma,
|
|
2176
|
+
text: ka
|
|
2177
|
+
}, za = {
|
|
2178
|
+
info: /* @__PURE__ */ n(ko, {}),
|
|
2179
|
+
warning: /* @__PURE__ */ n(zo, {}),
|
|
2180
|
+
alert: /* @__PURE__ */ n(Ro, {})
|
|
2177
2181
|
}, Ra = {
|
|
2178
|
-
info: /* @__PURE__ */ n(Mo, {}),
|
|
2179
|
-
warning: /* @__PURE__ */ n(Ro, {}),
|
|
2180
|
-
alert: /* @__PURE__ */ n(Eo, {})
|
|
2181
|
-
}, Ea = {
|
|
2182
2182
|
info: { role: "status", live: "polite" },
|
|
2183
2183
|
warning: { role: "status", live: "polite" },
|
|
2184
2184
|
alert: { role: "alert" }
|
|
2185
|
-
},
|
|
2186
|
-
const h = r === void 0 ?
|
|
2187
|
-
return /* @__PURE__ */
|
|
2185
|
+
}, Fl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
|
|
2186
|
+
const h = r === void 0 ? za[t] : r, { role: m, live: i } = Ra[t];
|
|
2187
|
+
return /* @__PURE__ */ L(
|
|
2188
2188
|
"div",
|
|
2189
2189
|
{
|
|
2190
2190
|
...s,
|
|
2191
2191
|
ref: c,
|
|
2192
2192
|
role: m,
|
|
2193
2193
|
"aria-live": i,
|
|
2194
|
-
className:
|
|
2194
|
+
className: z(ke.message, ke[t], a),
|
|
2195
2195
|
children: [
|
|
2196
|
-
h != null && /* @__PURE__ */ n("span", { className:
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
o != null && /* @__PURE__ */ n("p", { className:
|
|
2199
|
-
l != null && /* @__PURE__ */ n("div", { className:
|
|
2196
|
+
h != null && /* @__PURE__ */ n("span", { className: ke.icon, "aria-hidden": "true", children: h }),
|
|
2197
|
+
/* @__PURE__ */ L("div", { className: ke.body, children: [
|
|
2198
|
+
o != null && /* @__PURE__ */ n("p", { className: ke.title, children: o }),
|
|
2199
|
+
l != null && /* @__PURE__ */ n("div", { className: ke.text, children: l })
|
|
2200
2200
|
] })
|
|
2201
2201
|
]
|
|
2202
2202
|
}
|
|
2203
2203
|
);
|
|
2204
|
-
}),
|
|
2205
|
-
dialog:
|
|
2204
|
+
}), Ea = "_dialog_zbndh_2", Da = "_inner_zbndh_71", Ia = "_size4_zbndh_76", Ha = "_title_zbndh_80", Sa = "_closeX_zbndh_88", Ze = {
|
|
2205
|
+
dialog: Ea,
|
|
2206
2206
|
inner: Da,
|
|
2207
|
-
size4:
|
|
2208
|
-
title:
|
|
2209
|
-
closeX:
|
|
2207
|
+
size4: Ia,
|
|
2208
|
+
title: Ha,
|
|
2209
|
+
closeX: Sa
|
|
2210
2210
|
};
|
|
2211
2211
|
let Ge = 0;
|
|
2212
|
-
const
|
|
2213
|
-
const e =
|
|
2212
|
+
const yt = Re(null), Ve = () => {
|
|
2213
|
+
const e = Ee(yt);
|
|
2214
2214
|
if (!e) throw new Error("Dialog parts must be inside a Dialog");
|
|
2215
2215
|
return e;
|
|
2216
2216
|
};
|
|
2217
|
-
function
|
|
2217
|
+
function xt(e) {
|
|
2218
2218
|
return function({ open: o, onOpenChange: r, children: a }) {
|
|
2219
|
-
const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (
|
|
2220
|
-
c || s(
|
|
2219
|
+
const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (_) => {
|
|
2220
|
+
c || s(_), r == null || r(_);
|
|
2221
2221
|
}, i = se(), g = se(), [$, w] = Q(!1);
|
|
2222
|
-
return /* @__PURE__ */ n(
|
|
2222
|
+
return /* @__PURE__ */ n(yt.Provider, { value: { open: h, setOpen: m, titleId: i, descId: g, alert: e, hasDesc: $, setHasDesc: w }, children: a });
|
|
2223
2223
|
};
|
|
2224
2224
|
}
|
|
2225
|
-
const
|
|
2226
|
-
if (!
|
|
2225
|
+
const qa = xt(!1), Nt = (e, t) => {
|
|
2226
|
+
if (!ze(e)) return e;
|
|
2227
2227
|
const o = e;
|
|
2228
2228
|
return Xe(o, {
|
|
2229
2229
|
onClick: (r) => {
|
|
@@ -2232,20 +2232,20 @@ const Sa = yt(!1), kt = (e, t) => {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
});
|
|
2234
2234
|
};
|
|
2235
|
-
function
|
|
2235
|
+
function Lt({
|
|
2236
2236
|
children: e
|
|
2237
2237
|
}) {
|
|
2238
|
-
const t =
|
|
2239
|
-
return /* @__PURE__ */ n(he, { children:
|
|
2238
|
+
const t = Ve();
|
|
2239
|
+
return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!0)) });
|
|
2240
2240
|
}
|
|
2241
2241
|
function st({
|
|
2242
2242
|
children: e
|
|
2243
2243
|
}) {
|
|
2244
|
-
const t =
|
|
2245
|
-
return /* @__PURE__ */ n(he, { children:
|
|
2244
|
+
const t = Ve();
|
|
2245
|
+
return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!1)) });
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2248
|
-
const s =
|
|
2247
|
+
function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
|
|
2248
|
+
const s = Ve(), c = F(null), h = F(!1), m = F(!1);
|
|
2249
2249
|
return te(() => {
|
|
2250
2250
|
const i = c.current;
|
|
2251
2251
|
i && (s.open && !i.open ? i.showModal() : !s.open && i.open && i.close());
|
|
@@ -2262,7 +2262,7 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
|
|
|
2262
2262
|
role: s.alert ? "alertdialog" : void 0,
|
|
2263
2263
|
"aria-labelledby": s.titleId,
|
|
2264
2264
|
"aria-describedby": s.hasDesc ? s.descId : void 0,
|
|
2265
|
-
className:
|
|
2265
|
+
className: z(Ze.dialog, "spDialog", e === "4" && Ze.size4, o),
|
|
2266
2266
|
style: { ...t ? { maxWidth: t } : null, ...r },
|
|
2267
2267
|
onKeyDownCapture: (i) => {
|
|
2268
2268
|
var g, $;
|
|
@@ -2284,15 +2284,15 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
|
|
|
2284
2284
|
onClick: (i) => {
|
|
2285
2285
|
!s.alert && i.target === c.current && m.current && s.setOpen(!1);
|
|
2286
2286
|
},
|
|
2287
|
-
children: /* @__PURE__ */
|
|
2287
|
+
children: /* @__PURE__ */ L("div", { className: Ze.inner, children: [
|
|
2288
2288
|
!s.alert && /* @__PURE__ */ n(
|
|
2289
2289
|
"button",
|
|
2290
2290
|
{
|
|
2291
2291
|
type: "button",
|
|
2292
|
-
className:
|
|
2292
|
+
className: Ze.closeX,
|
|
2293
2293
|
"aria-label": "Close",
|
|
2294
2294
|
onClick: () => s.setOpen(!1),
|
|
2295
|
-
children: /* @__PURE__ */ n(
|
|
2295
|
+
children: /* @__PURE__ */ n(Mo, { width: 16, height: 16 })
|
|
2296
2296
|
}
|
|
2297
2297
|
),
|
|
2298
2298
|
a
|
|
@@ -2300,61 +2300,61 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
|
|
|
2300
2300
|
}
|
|
2301
2301
|
);
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2304
|
-
const o =
|
|
2305
|
-
return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className:
|
|
2303
|
+
function kt({ className: e, ...t }) {
|
|
2304
|
+
const o = Ve();
|
|
2305
|
+
return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className: z(Ze.title, e) });
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2308
|
-
const t =
|
|
2307
|
+
function zt(e) {
|
|
2308
|
+
const t = Ve(), { setHasDesc: o } = t;
|
|
2309
2309
|
return we(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Gt, { as: "p", ...e, id: t.descId });
|
|
2310
2310
|
}
|
|
2311
|
-
const
|
|
2312
|
-
Trigger:
|
|
2311
|
+
const jl = Object.assign(qa, {
|
|
2312
|
+
Trigger: Lt,
|
|
2313
2313
|
Close: st,
|
|
2314
|
-
Content:
|
|
2315
|
-
Title:
|
|
2316
|
-
Description:
|
|
2317
|
-
}), Ta = st, Aa = st, Gl = Object.assign(
|
|
2318
|
-
Trigger:
|
|
2319
|
-
Content:
|
|
2320
|
-
Title:
|
|
2321
|
-
Description:
|
|
2314
|
+
Content: Mt,
|
|
2315
|
+
Title: kt,
|
|
2316
|
+
Description: zt
|
|
2317
|
+
}), Ta = st, Aa = st, Gl = Object.assign(xt(!0), {
|
|
2318
|
+
Trigger: Lt,
|
|
2319
|
+
Content: Mt,
|
|
2320
|
+
Title: kt,
|
|
2321
|
+
Description: zt,
|
|
2322
2322
|
Cancel: Ta,
|
|
2323
2323
|
Action: Aa
|
|
2324
|
-
}),
|
|
2325
|
-
menu:
|
|
2326
|
-
label:
|
|
2327
|
-
item:
|
|
2328
|
-
danger:
|
|
2329
|
-
separator:
|
|
2330
|
-
},
|
|
2331
|
-
const e =
|
|
2324
|
+
}), Oa = "_menu_1d12s_1", Za = "_label_1d12s_55", Ba = "_item_1d12s_65", Va = "_danger_1d12s_84", Wa = "_separator_1d12s_88", Be = {
|
|
2325
|
+
menu: Oa,
|
|
2326
|
+
label: Za,
|
|
2327
|
+
item: Ba,
|
|
2328
|
+
danger: Va,
|
|
2329
|
+
separator: Wa
|
|
2330
|
+
}, Rt = Re(null), Pa = () => {
|
|
2331
|
+
const e = Ee(Rt);
|
|
2332
2332
|
if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
|
|
2333
2333
|
return e;
|
|
2334
2334
|
};
|
|
2335
|
-
function
|
|
2336
|
-
const [a, l] = Q(!1), s = se(), c =
|
|
2335
|
+
function Fa({ label: e, align: t = "start", children: o, ...r }) {
|
|
2336
|
+
const [a, l] = Q(!1), s = se(), c = F(null), h = F(null), m = F(null), i = F(a);
|
|
2337
2337
|
i.current = a;
|
|
2338
|
-
const g =
|
|
2339
|
-
i.current !==
|
|
2338
|
+
const g = pe((_) => {
|
|
2339
|
+
i.current !== _ && (i.current = _, l(_));
|
|
2340
2340
|
}, []), [$, w] = Q(null);
|
|
2341
2341
|
return we(() => {
|
|
2342
2342
|
var b;
|
|
2343
|
-
const
|
|
2344
|
-
if (
|
|
2343
|
+
const _ = h.current;
|
|
2344
|
+
if (_)
|
|
2345
2345
|
if (a) {
|
|
2346
2346
|
const v = c.current;
|
|
2347
2347
|
if (v) {
|
|
2348
|
-
const
|
|
2349
|
-
w({ top:
|
|
2348
|
+
const k = v.getBoundingClientRect(), I = t === "end" ? "auto" : k.left, H = t === "end" ? window.innerWidth - k.right : "auto";
|
|
2349
|
+
w({ top: k.bottom + 6, left: I, right: H });
|
|
2350
2350
|
}
|
|
2351
|
-
|
|
2352
|
-
} else
|
|
2351
|
+
_.showPopover(), (b = _.querySelector('[role="menuitem"]')) == null || b.focus();
|
|
2352
|
+
} else _.matches(":popover-open") && _.hidePopover();
|
|
2353
2353
|
}, [a, t]), te(() => {
|
|
2354
2354
|
if (!a) return;
|
|
2355
|
-
const
|
|
2356
|
-
return window.addEventListener("resize",
|
|
2357
|
-
}, [a]), /* @__PURE__ */
|
|
2355
|
+
const _ = () => g(!1);
|
|
2356
|
+
return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
2357
|
+
}, [a]), /* @__PURE__ */ L(Rt.Provider, { value: { open: a, setOpen: g, menuId: s }, children: [
|
|
2358
2358
|
/* @__PURE__ */ n(
|
|
2359
2359
|
Ue,
|
|
2360
2360
|
{
|
|
@@ -2363,17 +2363,17 @@ function Pa({ label: e, align: t = "start", children: o, ...r }) {
|
|
|
2363
2363
|
"aria-haspopup": "menu",
|
|
2364
2364
|
"aria-expanded": a,
|
|
2365
2365
|
"aria-controls": s,
|
|
2366
|
-
onPointerDown: (
|
|
2366
|
+
onPointerDown: (_) => {
|
|
2367
2367
|
var b;
|
|
2368
|
-
(b = r.onPointerDown) == null || b.call(r,
|
|
2368
|
+
(b = r.onPointerDown) == null || b.call(r, _), m.current = !i.current;
|
|
2369
2369
|
},
|
|
2370
|
-
onKeyDown: (
|
|
2370
|
+
onKeyDown: (_) => {
|
|
2371
2371
|
var b;
|
|
2372
|
-
(b = r.onKeyDown) == null || b.call(r,
|
|
2372
|
+
(b = r.onKeyDown) == null || b.call(r, _), (_.key === "Enter" || _.key === " ") && (m.current = null);
|
|
2373
2373
|
},
|
|
2374
|
-
onClick: (
|
|
2374
|
+
onClick: (_) => {
|
|
2375
2375
|
var v;
|
|
2376
|
-
(v = r.onClick) == null || v.call(r,
|
|
2376
|
+
(v = r.onClick) == null || v.call(r, _);
|
|
2377
2377
|
const b = m.current ?? !i.current;
|
|
2378
2378
|
m.current = null, g(b);
|
|
2379
2379
|
},
|
|
@@ -2387,37 +2387,37 @@ function Pa({ label: e, align: t = "start", children: o, ...r }) {
|
|
|
2387
2387
|
id: s,
|
|
2388
2388
|
role: "menu",
|
|
2389
2389
|
popover: "auto",
|
|
2390
|
-
className:
|
|
2390
|
+
className: Be.menu,
|
|
2391
2391
|
style: $ ? {
|
|
2392
2392
|
top: $.top,
|
|
2393
2393
|
left: $.left === "auto" ? "auto" : $.left,
|
|
2394
2394
|
right: $.right === "auto" ? "auto" : $.right
|
|
2395
2395
|
} : void 0,
|
|
2396
|
-
onToggle: (
|
|
2397
|
-
|
|
2396
|
+
onToggle: (_) => {
|
|
2397
|
+
_.nativeEvent.newState === "closed" && g(!1);
|
|
2398
2398
|
},
|
|
2399
|
-
onKeyDown: (
|
|
2400
|
-
var
|
|
2399
|
+
onKeyDown: (_) => {
|
|
2400
|
+
var k, I, H, Y, U, D;
|
|
2401
2401
|
const b = Array.from(
|
|
2402
|
-
((
|
|
2402
|
+
((k = h.current) == null ? void 0 : k.querySelectorAll('[role="menuitem"]')) ?? []
|
|
2403
2403
|
), v = b.indexOf(document.activeElement);
|
|
2404
|
-
|
|
2404
|
+
_.key === "ArrowDown" ? (_.preventDefault(), (I = b[Math.min(v + 1, b.length - 1)]) == null || I.focus()) : _.key === "ArrowUp" ? (_.preventDefault(), (H = b[Math.max(v - 1, 0)]) == null || H.focus()) : _.key === "Home" ? (_.preventDefault(), (Y = b[0]) == null || Y.focus()) : _.key === "End" ? (_.preventDefault(), (U = b[b.length - 1]) == null || U.focus()) : _.key === "Escape" && (g(!1), (D = c.current) == null || D.focus());
|
|
2405
2405
|
},
|
|
2406
2406
|
children: o
|
|
2407
2407
|
}
|
|
2408
2408
|
)
|
|
2409
2409
|
] });
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function ja({
|
|
2412
2412
|
children: e
|
|
2413
2413
|
}) {
|
|
2414
|
-
return /* @__PURE__ */ n("div", { className:
|
|
2414
|
+
return /* @__PURE__ */ n("div", { className: Be.label, children: e });
|
|
2415
2415
|
}
|
|
2416
2416
|
function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
|
|
2417
|
-
const a =
|
|
2417
|
+
const a = Pa(), l = z(Be.item, t === "danger" && Be.danger), s = () => {
|
|
2418
2418
|
a.setOpen(!1), o == null || o();
|
|
2419
2419
|
};
|
|
2420
|
-
if (e &&
|
|
2420
|
+
if (e && ze(r)) {
|
|
2421
2421
|
const c = r, {
|
|
2422
2422
|
className: h,
|
|
2423
2423
|
onClick: m,
|
|
@@ -2425,16 +2425,16 @@ function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
|
|
|
2425
2425
|
role: g,
|
|
2426
2426
|
tabIndex: $,
|
|
2427
2427
|
...w
|
|
2428
|
-
} = c.props,
|
|
2428
|
+
} = c.props, _ = c.ref;
|
|
2429
2429
|
return ot(
|
|
2430
2430
|
c.type,
|
|
2431
2431
|
{
|
|
2432
2432
|
key: c.key,
|
|
2433
|
-
ref:
|
|
2433
|
+
ref: _,
|
|
2434
2434
|
role: "menuitem",
|
|
2435
2435
|
tabIndex: -1,
|
|
2436
2436
|
...w,
|
|
2437
|
-
className:
|
|
2437
|
+
className: z(l, h),
|
|
2438
2438
|
onClick: (b) => {
|
|
2439
2439
|
m == null || m(b), a.setOpen(!1);
|
|
2440
2440
|
}
|
|
@@ -2445,13 +2445,13 @@ function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
|
|
|
2445
2445
|
return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: l, onClick: s, children: r });
|
|
2446
2446
|
}
|
|
2447
2447
|
function Ua() {
|
|
2448
|
-
return /* @__PURE__ */ n("div", { role: "separator", className:
|
|
2448
|
+
return /* @__PURE__ */ n("div", { role: "separator", className: Be.separator });
|
|
2449
2449
|
}
|
|
2450
|
-
const Ul = Object.assign(
|
|
2450
|
+
const Ul = Object.assign(Fa, { Item: Ga, Separator: Ua, Label: ja }), Ka = "_list_1b44l_19", Xa = "_trigger_1b44l_28", Et = {
|
|
2451
2451
|
list: Ka,
|
|
2452
2452
|
trigger: Xa
|
|
2453
|
-
}, Dt =
|
|
2454
|
-
const e =
|
|
2453
|
+
}, Dt = Re(null), It = () => {
|
|
2454
|
+
const e = Ee(Dt);
|
|
2455
2455
|
if (!e) throw new Error("Tabs parts must be inside a Tabs");
|
|
2456
2456
|
return e;
|
|
2457
2457
|
};
|
|
@@ -2466,7 +2466,7 @@ function Qa({
|
|
|
2466
2466
|
"div",
|
|
2467
2467
|
{
|
|
2468
2468
|
role: "tablist",
|
|
2469
|
-
className:
|
|
2469
|
+
className: z(Et.list, "spTabsList"),
|
|
2470
2470
|
onKeyDown: (t) => {
|
|
2471
2471
|
const o = Array.from(
|
|
2472
2472
|
t.currentTarget.querySelectorAll('[role="tab"]')
|
|
@@ -2496,7 +2496,7 @@ function Qa({
|
|
|
2496
2496
|
);
|
|
2497
2497
|
}
|
|
2498
2498
|
function Ja({ value: e, className: t, children: o, ...r }) {
|
|
2499
|
-
const a =
|
|
2499
|
+
const a = It(), l = a.value === e;
|
|
2500
2500
|
return /* @__PURE__ */ n(
|
|
2501
2501
|
"button",
|
|
2502
2502
|
{
|
|
@@ -2508,7 +2508,7 @@ function Ja({ value: e, className: t, children: o, ...r }) {
|
|
|
2508
2508
|
"aria-controls": `${a.id}-panel-${e}`,
|
|
2509
2509
|
tabIndex: l ? 0 : -1,
|
|
2510
2510
|
"data-state": l ? "active" : "inactive",
|
|
2511
|
-
className:
|
|
2511
|
+
className: z(Et.trigger, "spTabsTrigger", t),
|
|
2512
2512
|
onClick: () => a.onValueChange(e),
|
|
2513
2513
|
children: o
|
|
2514
2514
|
}
|
|
@@ -2518,12 +2518,12 @@ function el({
|
|
|
2518
2518
|
value: e,
|
|
2519
2519
|
children: t
|
|
2520
2520
|
}) {
|
|
2521
|
-
const o =
|
|
2521
|
+
const o = It();
|
|
2522
2522
|
return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
|
|
2523
2523
|
}
|
|
2524
|
-
const Kl = Object.assign(Ya, { List: Qa, Trigger: Ja, Content: el }), tl = "
|
|
2524
|
+
const Kl = Object.assign(Ya, { List: Qa, Trigger: Ja, Content: el }), tl = "_panel_5axce_9", nl = {
|
|
2525
2525
|
panel: tl
|
|
2526
|
-
}, ft = 8,
|
|
2526
|
+
}, ft = 8, Oe = 8, ol = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
2527
2527
|
function Xl({
|
|
2528
2528
|
label: e,
|
|
2529
2529
|
children: t,
|
|
@@ -2536,63 +2536,63 @@ function Xl({
|
|
|
2536
2536
|
onClick: h,
|
|
2537
2537
|
...m
|
|
2538
2538
|
}) {
|
|
2539
|
-
const [i, g] = Q(a), $ = o !== void 0, w = $ ? o : i,
|
|
2539
|
+
const [i, g] = Q(a), $ = o !== void 0, w = $ ? o : i, _ = se(), b = se(), v = F(null), k = F(null), [I, H] = Q(null), Y = F(!1), U = F(!1), D = F(null), T = F(w);
|
|
2540
2540
|
T.current = w;
|
|
2541
|
-
const
|
|
2542
|
-
(
|
|
2543
|
-
T.current !==
|
|
2541
|
+
const B = pe(
|
|
2542
|
+
(x) => {
|
|
2543
|
+
T.current !== x && (T.current = x, $ || g(x), r == null || r(x));
|
|
2544
2544
|
},
|
|
2545
2545
|
[$, r]
|
|
2546
|
-
), X =
|
|
2547
|
-
const
|
|
2548
|
-
if (!
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2551
|
-
const G = s === "start" ?
|
|
2552
|
-
Math.max(G,
|
|
2553
|
-
Math.max(window.innerWidth -
|
|
2546
|
+
), X = pe(() => {
|
|
2547
|
+
const x = v.current, M = k.current;
|
|
2548
|
+
if (!x || !M) return;
|
|
2549
|
+
const S = x.getBoundingClientRect(), j = M.offsetWidth, f = M.offsetHeight, R = S.bottom + ft, A = S.top - f - ft, C = R + f <= window.innerHeight - Oe, N = A >= Oe, V = l === "bottom" ? C || !N ? R : A : N || !C ? A : R, W = V === R ? "bottom" : "top";
|
|
2550
|
+
M.dataset.side = W;
|
|
2551
|
+
const G = s === "start" ? S.left : s === "end" ? S.right - j : S.left + S.width / 2 - j / 2, p = Math.min(
|
|
2552
|
+
Math.max(G, Oe),
|
|
2553
|
+
Math.max(window.innerWidth - j - Oe, Oe)
|
|
2554
2554
|
);
|
|
2555
|
-
|
|
2556
|
-
(
|
|
2555
|
+
H(
|
|
2556
|
+
(y) => y && y.top === V && y.left === p && y.placed === W ? y : { top: V, left: p, placed: W }
|
|
2557
2557
|
);
|
|
2558
2558
|
}, [l, s]);
|
|
2559
2559
|
return we(() => {
|
|
2560
|
-
const
|
|
2561
|
-
|
|
2560
|
+
const x = k.current;
|
|
2561
|
+
x && (w ? (Ye(x, X), X(), Y.current && (Y.current = !1, (x.querySelector(ol) ?? x).focus({ preventScroll: !0 }))) : x.matches(":popover-open") && x.hidePopover());
|
|
2562
2562
|
}, [w, X]), te(() => {
|
|
2563
2563
|
if (!w) return;
|
|
2564
|
-
let
|
|
2565
|
-
const
|
|
2566
|
-
const
|
|
2567
|
-
if (
|
|
2568
|
-
const
|
|
2569
|
-
A !==
|
|
2564
|
+
let x = 0, M = "";
|
|
2565
|
+
const S = () => {
|
|
2566
|
+
const j = v.current, f = k.current;
|
|
2567
|
+
if (j && f) {
|
|
2568
|
+
const R = j.getBoundingClientRect(), A = `${R.top}|${R.left}|${R.width}|${R.height}|${f.offsetWidth}|${f.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
|
|
2569
|
+
A !== M && (M = A, X());
|
|
2570
2570
|
}
|
|
2571
|
-
|
|
2571
|
+
x = requestAnimationFrame(S);
|
|
2572
2572
|
};
|
|
2573
|
-
return
|
|
2574
|
-
}, [w, X]), /* @__PURE__ */
|
|
2573
|
+
return x = requestAnimationFrame(S), () => cancelAnimationFrame(x);
|
|
2574
|
+
}, [w, X]), /* @__PURE__ */ L(he, { children: [
|
|
2575
2575
|
/* @__PURE__ */ n(
|
|
2576
2576
|
Ue,
|
|
2577
2577
|
{
|
|
2578
2578
|
...m,
|
|
2579
2579
|
ref: v,
|
|
2580
|
-
id:
|
|
2580
|
+
id: _,
|
|
2581
2581
|
"aria-haspopup": "dialog",
|
|
2582
2582
|
"aria-expanded": w,
|
|
2583
2583
|
"aria-controls": b,
|
|
2584
|
-
onPointerDown: (
|
|
2585
|
-
var
|
|
2586
|
-
(
|
|
2584
|
+
onPointerDown: (x) => {
|
|
2585
|
+
var M;
|
|
2586
|
+
(M = m.onPointerDown) == null || M.call(m, x), D.current = !T.current;
|
|
2587
2587
|
},
|
|
2588
|
-
onKeyDown: (
|
|
2589
|
-
var
|
|
2590
|
-
(
|
|
2588
|
+
onKeyDown: (x) => {
|
|
2589
|
+
var M;
|
|
2590
|
+
(M = m.onKeyDown) == null || M.call(m, x), (x.key === "Enter" || x.key === " ") && (D.current = null);
|
|
2591
2591
|
},
|
|
2592
|
-
onClick: (
|
|
2593
|
-
h == null || h(
|
|
2594
|
-
const
|
|
2595
|
-
D.current = null,
|
|
2592
|
+
onClick: (x) => {
|
|
2593
|
+
h == null || h(x);
|
|
2594
|
+
const M = D.current ?? !T.current;
|
|
2595
|
+
D.current = null, M && (Y.current = !0), B(M);
|
|
2596
2596
|
},
|
|
2597
2597
|
children: e
|
|
2598
2598
|
}
|
|
@@ -2600,22 +2600,22 @@ function Xl({
|
|
|
2600
2600
|
/* @__PURE__ */ n(
|
|
2601
2601
|
"div",
|
|
2602
2602
|
{
|
|
2603
|
-
ref:
|
|
2603
|
+
ref: k,
|
|
2604
2604
|
id: b,
|
|
2605
2605
|
popover: "auto",
|
|
2606
2606
|
role: "dialog",
|
|
2607
|
-
"aria-labelledby":
|
|
2607
|
+
"aria-labelledby": _,
|
|
2608
2608
|
tabIndex: -1,
|
|
2609
|
-
className:
|
|
2609
|
+
className: z(nl.panel, ue.spacePanel, c),
|
|
2610
2610
|
"data-animated": m.animated === !1 ? "false" : void 0,
|
|
2611
|
-
"data-side": (
|
|
2612
|
-
style:
|
|
2613
|
-
onKeyDown: (
|
|
2614
|
-
|
|
2611
|
+
"data-side": (I == null ? void 0 : I.placed) ?? l,
|
|
2612
|
+
style: I ? { top: I.top, left: I.left } : void 0,
|
|
2613
|
+
onKeyDown: (x) => {
|
|
2614
|
+
x.key === "Escape" && (U.current = !0, x.stopPropagation());
|
|
2615
2615
|
},
|
|
2616
|
-
onToggle: (
|
|
2617
|
-
var
|
|
2618
|
-
|
|
2616
|
+
onToggle: (x) => {
|
|
2617
|
+
var M;
|
|
2618
|
+
x.nativeEvent.newState === "closed" && (U.current && (U.current = !1, (M = v.current) == null || M.focus()), B(!1));
|
|
2619
2619
|
},
|
|
2620
2620
|
children: t
|
|
2621
2621
|
}
|
|
@@ -2624,61 +2624,61 @@ function Xl({
|
|
|
2624
2624
|
}
|
|
2625
2625
|
export {
|
|
2626
2626
|
Gl as AlertDialog,
|
|
2627
|
-
|
|
2627
|
+
ql as Autocomplete,
|
|
2628
2628
|
dl as Badge,
|
|
2629
|
-
|
|
2630
|
-
|
|
2629
|
+
Ol as BarList,
|
|
2630
|
+
zl as BookmarkIcon,
|
|
2631
2631
|
cl as Box,
|
|
2632
2632
|
Ue as Button,
|
|
2633
2633
|
fl as Card,
|
|
2634
|
-
|
|
2634
|
+
Rl as Carousel,
|
|
2635
2635
|
Al as Chart,
|
|
2636
|
-
|
|
2636
|
+
_l as ChatBubbleIcon,
|
|
2637
2637
|
bl as CheckIcon,
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2638
|
+
Vl as Checkbox,
|
|
2639
|
+
Bl as CheckboxGroup,
|
|
2640
|
+
kl as ChevronDownIcon,
|
|
2641
2641
|
ht as ChevronLeftIcon,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2642
|
+
_t as ChevronRightIcon,
|
|
2643
|
+
Ml as ChevronUpIcon,
|
|
2644
|
+
Ro as CrossCircledIcon,
|
|
2645
|
+
jl as Dialog,
|
|
2646
2646
|
Ul as DropdownMenu,
|
|
2647
2647
|
vl as EnterFullScreenIcon,
|
|
2648
|
-
|
|
2648
|
+
zo as ExclamationTriangleIcon,
|
|
2649
2649
|
Cl as ExitFullScreenIcon,
|
|
2650
2650
|
ll as Flex,
|
|
2651
2651
|
il as Grid,
|
|
2652
2652
|
rn as Heading,
|
|
2653
2653
|
gl as HeartFilledIcon,
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2654
|
+
Ll as HeartIcon,
|
|
2655
|
+
Il as IconToggle,
|
|
2656
|
+
ko as InfoCircledIcon,
|
|
2657
2657
|
al as Link,
|
|
2658
2658
|
Dl as Loader,
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2659
|
+
Nl as MagnifyingGlassIcon,
|
|
2660
|
+
Fl as Message,
|
|
2661
|
+
xl as MinusIcon,
|
|
2662
|
+
El as Pagination,
|
|
2663
2663
|
ml as Pencil1Icon,
|
|
2664
|
-
|
|
2665
|
-
|
|
2664
|
+
yl as PersonIcon,
|
|
2665
|
+
Zl as PieChart,
|
|
2666
2666
|
hl as PlusIcon,
|
|
2667
2667
|
Xl as Popover,
|
|
2668
|
-
|
|
2668
|
+
Pl as Progress,
|
|
2669
2669
|
wl as QuestionMarkCircledIcon,
|
|
2670
|
-
|
|
2671
|
-
|
|
2670
|
+
Wl as RadioGroup,
|
|
2671
|
+
Hl as Select,
|
|
2672
2672
|
ul as Separator,
|
|
2673
|
-
|
|
2673
|
+
pl as Share2Icon,
|
|
2674
2674
|
Tl as Slider,
|
|
2675
2675
|
Kl as Tabs,
|
|
2676
2676
|
Gt as Text,
|
|
2677
|
-
|
|
2677
|
+
Sl as TextArea,
|
|
2678
2678
|
ct as TextField,
|
|
2679
2679
|
mr as Tooltip,
|
|
2680
2680
|
$l as TrashIcon,
|
|
2681
|
-
|
|
2681
|
+
Mo as XIcon,
|
|
2682
2682
|
tr as pageCount,
|
|
2683
2683
|
nr as pageWindow
|
|
2684
2684
|
};
|