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