@inkorange/space-ui 1.2.0 → 1.3.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 +3 -3
- package/dist/components/Autocomplete.d.ts +72 -0
- package/dist/components/IconToggle.d.ts +11 -3
- package/dist/components/Tooltip.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +932 -742
- package/dist/index.js.map +1 -1
- package/dist/space-ui.css +1 -1
- package/dist/tokens.css +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { jsx as n, jsxs as
|
|
4
|
-
const
|
|
2
|
+
import { forwardRef as H, createElement as ye, isValidElement as te, cloneElement as ve, useId as V, useMemo as ee, useState as T, useRef as M, useEffect as Z, useLayoutEffect as he, useCallback as Me, createContext as ne, useContext as oe, Children as Ke } from "react";
|
|
3
|
+
import { jsx as n, jsxs as q, Fragment as ue } from "react/jsx-runtime";
|
|
4
|
+
const se = {
|
|
5
5
|
0: "0",
|
|
6
6
|
1: "var(--spacing-xs)",
|
|
7
7
|
2: "var(--spacing-sm)",
|
|
@@ -10,321 +10,321 @@ const G = {
|
|
|
10
10
|
5: "var(--spacing-lg)",
|
|
11
11
|
6: "var(--spacing-xl)"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function W({ m: e, mt: t, mb: o, p: s, pb: r }, l) {
|
|
14
14
|
const c = {
|
|
15
|
-
...e !== void 0 && { margin:
|
|
16
|
-
...t !== void 0 && { marginTop:
|
|
17
|
-
...o !== void 0 && { marginBottom:
|
|
18
|
-
...
|
|
19
|
-
...
|
|
15
|
+
...e !== void 0 && { margin: se[e] },
|
|
16
|
+
...t !== void 0 && { marginTop: se[t] },
|
|
17
|
+
...o !== void 0 && { marginBottom: se[o] },
|
|
18
|
+
...s !== void 0 && { padding: se[s] },
|
|
19
|
+
...r !== void 0 && { paddingBottom: se[r] },
|
|
20
20
|
...l
|
|
21
21
|
};
|
|
22
22
|
return Object.keys(c).length > 0 ? c : void 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function v(...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
|
|
43
|
-
...
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
46
|
-
|
|
47
|
-
o &&
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
const Ue = "_text_4vcq4_1", Xe = "_size1_4vcq4_5", Ye = "_size2_4vcq4_11", Qe = "_size3_4vcq4_16", Je = "_size4_4vcq4_21", et = "_size5_4vcq4_27", tt = "_size6_4vcq4_33", nt = "_medium_4vcq4_39", ot = "_bold_4vcq4_43", st = "_colorMuted_4vcq4_47", rt = "_colorDanger_4vcq4_51", lt = "_colorSuccess_4vcq4_55", ct = "_colorWarning_4vcq4_59", fe = {
|
|
28
|
+
text: Ue,
|
|
29
|
+
size1: Xe,
|
|
30
|
+
size2: Ye,
|
|
31
|
+
size3: Qe,
|
|
32
|
+
size4: Je,
|
|
33
|
+
size5: et,
|
|
34
|
+
size6: tt,
|
|
35
|
+
medium: nt,
|
|
36
|
+
bold: ot,
|
|
37
|
+
colorMuted: st,
|
|
38
|
+
colorDanger: rt,
|
|
39
|
+
colorSuccess: lt,
|
|
40
|
+
colorWarning: ct
|
|
41
|
+
}, it = H(function({ as: t = "span", size: o, weight: s, color: r, className: l, style: c, m: a, mt: d, mb: g, p: i, pb: p, ...h }, f) {
|
|
42
|
+
return ye(t, {
|
|
43
|
+
...h,
|
|
44
|
+
ref: f,
|
|
45
|
+
className: v(
|
|
46
|
+
fe.text,
|
|
47
|
+
o && fe[`size${o}`],
|
|
48
|
+
s && fe[s],
|
|
49
|
+
r && fe[`color${r[0].toUpperCase()}${r.slice(1)}`],
|
|
50
50
|
l
|
|
51
51
|
),
|
|
52
|
-
style:
|
|
52
|
+
style: W({ m: a, mt: d, mb: g, p: i, pb: p }, c)
|
|
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
|
|
67
|
-
...
|
|
68
|
-
ref:
|
|
69
|
-
className:
|
|
70
|
-
|
|
71
|
-
o &&
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
}), at = "_heading_vs4zk_1", ut = "_size4_vs4zk_7", dt = "_size5_vs4zk_13", _t = "_size6_vs4zk_19", ft = "_size7_vs4zk_25", pt = "_size8_vs4zk_31", Ct = "_size9_vs4zk_37", gt = "_colorMuted_vs4zk_43", mt = "_colorDanger_vs4zk_47", vt = "_alignCenter_vs4zk_51", re = {
|
|
55
|
+
heading: at,
|
|
56
|
+
size4: ut,
|
|
57
|
+
size5: dt,
|
|
58
|
+
size6: _t,
|
|
59
|
+
size7: ft,
|
|
60
|
+
size8: pt,
|
|
61
|
+
size9: Ct,
|
|
62
|
+
colorMuted: gt,
|
|
63
|
+
colorDanger: mt,
|
|
64
|
+
alignCenter: vt
|
|
65
|
+
}, ht = H(function({ as: t = "h2", size: o, color: s, align: r, className: l, style: c, m: a, mt: d, mb: g, p: i, pb: p, ...h }, f) {
|
|
66
|
+
return ye(t, {
|
|
67
|
+
...h,
|
|
68
|
+
ref: f,
|
|
69
|
+
className: v(
|
|
70
|
+
re.heading,
|
|
71
|
+
o && re[`size${o}`],
|
|
72
|
+
s === "muted" && re.colorMuted,
|
|
73
|
+
s === "danger" && re.colorDanger,
|
|
74
|
+
r === "center" && re.alignCenter,
|
|
75
75
|
l
|
|
76
76
|
),
|
|
77
|
-
style:
|
|
77
|
+
style: W({ m: a, mt: d, mb: g, p: i, pb: p }, c)
|
|
78
78
|
});
|
|
79
|
-
}),
|
|
80
|
-
link:
|
|
81
|
-
size1:
|
|
82
|
-
size2:
|
|
83
|
-
size3:
|
|
84
|
-
},
|
|
85
|
-
const
|
|
86
|
-
if (t &&
|
|
87
|
-
const
|
|
88
|
-
return
|
|
89
|
-
...
|
|
90
|
-
className:
|
|
91
|
-
style: { ...
|
|
79
|
+
}), wt = "_link_1qa7j_1", bt = "_size1_1qa7j_10", yt = "_size2_1qa7j_16", xt = "_size3_1qa7j_21", $e = {
|
|
80
|
+
link: wt,
|
|
81
|
+
size1: bt,
|
|
82
|
+
size2: yt,
|
|
83
|
+
size3: xt
|
|
84
|
+
}, Bo = H(function({ asChild: t, size: o, className: s, style: r, m: l, mt: c, mb: a, p: d, pb: g, children: i, ...p }, h) {
|
|
85
|
+
const f = v($e.link, o && $e[`size${o}`], s), C = W({ m: l, mt: c, mb: a, p: d, pb: g }, r);
|
|
86
|
+
if (t && te(i)) {
|
|
87
|
+
const w = i;
|
|
88
|
+
return ve(w, {
|
|
89
|
+
...p,
|
|
90
|
+
className: v(f, w.props.className),
|
|
91
|
+
style: { ...C, ...w.props.style }
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return /* @__PURE__ */ n("a", { ...
|
|
95
|
-
}),
|
|
96
|
-
flex:
|
|
97
|
-
gap1:
|
|
98
|
-
gap2:
|
|
99
|
-
gap3:
|
|
100
|
-
gap4:
|
|
101
|
-
gap5:
|
|
102
|
-
gap6:
|
|
103
|
-
directionRow:
|
|
104
|
-
directionColumn:
|
|
105
|
-
alignStart:
|
|
106
|
-
alignCenter:
|
|
107
|
-
alignEnd:
|
|
108
|
-
alignBaseline:
|
|
109
|
-
alignStretch:
|
|
110
|
-
justifyStart:
|
|
111
|
-
justifyCenter:
|
|
112
|
-
justifyEnd:
|
|
113
|
-
justifyBetween:
|
|
114
|
-
wrapWrap:
|
|
115
|
-
wrapNowrap:
|
|
116
|
-
},
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
o &&
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
l &&
|
|
123
|
-
c &&
|
|
94
|
+
return /* @__PURE__ */ n("a", { ...p, ref: h, className: f, style: C, children: i });
|
|
95
|
+
}), kt = "_flex_v4ziu_1", $t = "_gap1_v4ziu_5", Lt = "_gap2_v4ziu_9", qt = "_gap3_v4ziu_13", zt = "_gap4_v4ziu_17", Rt = "_gap5_v4ziu_21", Mt = "_gap6_v4ziu_25", Nt = "_directionRow_v4ziu_29", Dt = "_directionColumn_v4ziu_33", It = "_alignStart_v4ziu_37", Ht = "_alignCenter_v4ziu_41", St = "_alignEnd_v4ziu_45", Tt = "_alignBaseline_v4ziu_49", Et = "_alignStretch_v4ziu_53", Zt = "_justifyStart_v4ziu_57", Vt = "_justifyCenter_v4ziu_61", jt = "_justifyEnd_v4ziu_65", Ot = "_justifyBetween_v4ziu_69", At = "_wrapWrap_v4ziu_73", Bt = "_wrapNowrap_v4ziu_77", U = {
|
|
96
|
+
flex: kt,
|
|
97
|
+
gap1: $t,
|
|
98
|
+
gap2: Lt,
|
|
99
|
+
gap3: qt,
|
|
100
|
+
gap4: zt,
|
|
101
|
+
gap5: Rt,
|
|
102
|
+
gap6: Mt,
|
|
103
|
+
directionRow: Nt,
|
|
104
|
+
directionColumn: Dt,
|
|
105
|
+
alignStart: It,
|
|
106
|
+
alignCenter: Ht,
|
|
107
|
+
alignEnd: St,
|
|
108
|
+
alignBaseline: Tt,
|
|
109
|
+
alignStretch: Et,
|
|
110
|
+
justifyStart: Zt,
|
|
111
|
+
justifyCenter: Vt,
|
|
112
|
+
justifyEnd: jt,
|
|
113
|
+
justifyBetween: Ot,
|
|
114
|
+
wrapWrap: At,
|
|
115
|
+
wrapNowrap: Bt
|
|
116
|
+
}, pe = (e) => e[0].toUpperCase() + e.slice(1), Wo = H(function({ asChild: t, gap: o, direction: s, align: r, justify: l, wrap: c, className: a, style: d, m: g, mt: i, mb: p, p: h, pb: f, children: C, ...w }, y) {
|
|
117
|
+
const b = v(
|
|
118
|
+
U.flex,
|
|
119
|
+
o && U[`gap${o}`],
|
|
120
|
+
s && U[`direction${pe(s)}`],
|
|
121
|
+
r && U[`align${pe(r)}`],
|
|
122
|
+
l && U[`justify${pe(l)}`],
|
|
123
|
+
c && U[`wrap${pe(c)}`],
|
|
124
124
|
a
|
|
125
|
-
),
|
|
126
|
-
if (t &&
|
|
127
|
-
const
|
|
128
|
-
return
|
|
129
|
-
...
|
|
130
|
-
className:
|
|
131
|
-
style: {
|
|
125
|
+
), $ = W({ m: g, mt: i, mb: p, p: h, pb: f }, d);
|
|
126
|
+
if (t && te(C)) {
|
|
127
|
+
const N = C;
|
|
128
|
+
return ve(N, {
|
|
129
|
+
...w,
|
|
130
|
+
className: v(b, N.props.className),
|
|
131
|
+
style: { ...$, ...N.props.style }
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
return /* @__PURE__ */ n("div", { ...
|
|
135
|
-
}),
|
|
136
|
-
return /* @__PURE__ */ n("div", { ...a, ref:
|
|
137
|
-
}),
|
|
138
|
-
grid:
|
|
139
|
-
cols1:
|
|
140
|
-
cols2:
|
|
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
|
|
154
|
-
t.initial &&
|
|
155
|
-
t.sm &&
|
|
156
|
-
t.md &&
|
|
134
|
+
return /* @__PURE__ */ n("div", { ...w, ref: y, className: b, style: $, children: C });
|
|
135
|
+
}), Fo = H(function({ style: t, m: o, mt: s, mb: r, p: l, pb: c, ...a }, d) {
|
|
136
|
+
return /* @__PURE__ */ n("div", { ...a, ref: d, style: W({ m: o, mt: s, mb: r, p: l, pb: c }, t) });
|
|
137
|
+
}), Wt = "_grid_erpqq_1", Ft = "_cols1_erpqq_5", Pt = "_cols2_erpqq_9", Gt = "_cols3_erpqq_13", Kt = "_smCols2_erpqq_18", Ut = "_smCols3_erpqq_21", Xt = "_mdCols2_erpqq_26", Yt = "_mdCols3_erpqq_29", Qt = "_gap1_erpqq_33", Jt = "_gap2_erpqq_37", e1 = "_gap3_erpqq_41", t1 = "_gap4_erpqq_45", n1 = "_gap5_erpqq_49", o1 = "_gap6_erpqq_53", X = {
|
|
138
|
+
grid: Wt,
|
|
139
|
+
cols1: Ft,
|
|
140
|
+
cols2: Pt,
|
|
141
|
+
cols3: Gt,
|
|
142
|
+
smCols2: Kt,
|
|
143
|
+
smCols3: Ut,
|
|
144
|
+
mdCols2: Xt,
|
|
145
|
+
mdCols3: Yt,
|
|
146
|
+
gap1: Qt,
|
|
147
|
+
gap2: Jt,
|
|
148
|
+
gap3: e1,
|
|
149
|
+
gap4: t1,
|
|
150
|
+
gap5: n1,
|
|
151
|
+
gap6: o1
|
|
152
|
+
}, Po = H(function({ columns: t, gap: o, className: s, style: r, m: l, mt: c, mb: a, p: d, pb: g, ...i }, p) {
|
|
153
|
+
const h = typeof t == "string" ? [X[`cols${t}`]] : t ? [
|
|
154
|
+
t.initial && X[`cols${t.initial}`],
|
|
155
|
+
t.sm && X[`smCols${t.sm}`],
|
|
156
|
+
t.md && X[`mdCols${t.md}`]
|
|
157
157
|
] : [];
|
|
158
158
|
return /* @__PURE__ */ n(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
...i,
|
|
162
|
-
ref:
|
|
163
|
-
className:
|
|
164
|
-
style:
|
|
162
|
+
ref: p,
|
|
163
|
+
className: v(X.grid, ...h, o && X[`gap${o}`], s),
|
|
164
|
+
style: W({ m: l, mt: c, mb: a, p: d, pb: g }, r)
|
|
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
|
+
}), s1 = "_badge_1twqf_2", r1 = "_size1_1twqf_10", l1 = "_size2_1twqf_19", c1 = "_colorMuted_1twqf_28", i1 = "_colorPrimary_1twqf_33", a1 = "_colorSuccess_1twqf_38", u1 = "_colorDanger_1twqf_43", d1 = "_colorWarning_1twqf_48", _1 = "_colorCyan_1twqf_53", f1 = "_colorPurple_1twqf_58", p1 = "_colorOrange_1twqf_63", C1 = "_colorAccent_1twqf_68", g1 = "_colorYellow_1twqf_73", m1 = "_solid_1twqf_81", v1 = "_wrap_1twqf_89", le = {
|
|
168
|
+
badge: s1,
|
|
169
|
+
size1: r1,
|
|
170
|
+
size2: l1,
|
|
171
|
+
colorMuted: c1,
|
|
172
|
+
colorPrimary: i1,
|
|
173
|
+
colorSuccess: a1,
|
|
174
|
+
colorDanger: u1,
|
|
175
|
+
colorWarning: d1,
|
|
176
|
+
colorCyan: _1,
|
|
177
|
+
colorPurple: f1,
|
|
178
|
+
colorOrange: p1,
|
|
179
|
+
colorAccent: C1,
|
|
180
|
+
colorYellow: g1,
|
|
181
|
+
solid: m1,
|
|
182
|
+
wrap: v1
|
|
183
|
+
}, h1 = (e) => e[0].toUpperCase() + e.slice(1), Go = H(function({ color: t = "primary", variant: o = "soft", size: s = "1", wrap: r, className: l, style: c, m: a, mt: d, mb: g, p: i, pb: p, ...h }, f) {
|
|
184
184
|
return /* @__PURE__ */ n(
|
|
185
185
|
"span",
|
|
186
186
|
{
|
|
187
|
-
...
|
|
188
|
-
ref:
|
|
189
|
-
className:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
o === "solid" &&
|
|
193
|
-
|
|
194
|
-
|
|
187
|
+
...h,
|
|
188
|
+
ref: f,
|
|
189
|
+
className: v(
|
|
190
|
+
le.badge,
|
|
191
|
+
le[`color${h1(t)}`],
|
|
192
|
+
o === "solid" && le.solid,
|
|
193
|
+
le[`size${s}`],
|
|
194
|
+
r && le.wrap,
|
|
195
195
|
l
|
|
196
196
|
),
|
|
197
|
-
style:
|
|
197
|
+
style: W({ m: a, mt: d, mb: g, p: i, pb: p }, c)
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
|
-
}),
|
|
201
|
-
separator:
|
|
202
|
-
full:
|
|
203
|
-
},
|
|
200
|
+
}), w1 = "_separator_vao01_1", b1 = "_full_vao01_7", Le = {
|
|
201
|
+
separator: w1,
|
|
202
|
+
full: b1
|
|
203
|
+
}, Ko = H(function({ size: t = "4", className: o, ...s }, r) {
|
|
204
204
|
return /* @__PURE__ */ n(
|
|
205
205
|
"span",
|
|
206
206
|
{
|
|
207
|
-
...
|
|
208
|
-
ref:
|
|
207
|
+
...s,
|
|
208
|
+
ref: r,
|
|
209
209
|
role: "separator",
|
|
210
|
-
className:
|
|
210
|
+
className: v(Le.separator, t === "4" && Le.full, o)
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}),
|
|
214
|
-
card:
|
|
215
|
-
image:
|
|
216
|
-
hasImage:
|
|
217
|
-
},
|
|
218
|
-
return /* @__PURE__ */
|
|
213
|
+
}), y1 = "_card_1ooot_2", x1 = "_image_1ooot_14", k1 = "_hasImage_1ooot_41", we = {
|
|
214
|
+
card: y1,
|
|
215
|
+
image: x1,
|
|
216
|
+
hasImage: k1
|
|
217
|
+
}, Uo = H(function({ className: t, style: o, image: s, children: r, m: l, mt: c, mb: a, p: d, pb: g, ...i }, p) {
|
|
218
|
+
return /* @__PURE__ */ q(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
221
221
|
...i,
|
|
222
|
-
ref:
|
|
223
|
-
className:
|
|
224
|
-
style:
|
|
222
|
+
ref: p,
|
|
223
|
+
className: v(we.card, s != null && we.hasImage, t),
|
|
224
|
+
style: W({ m: l, mt: c, mb: a, p: d, pb: g }, o),
|
|
225
225
|
children: [
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
s != null && /* @__PURE__ */ n("div", { className: we.image, children: s }),
|
|
227
|
+
r
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
}),
|
|
232
|
-
spaceButton:
|
|
233
|
-
rimRotate:
|
|
234
|
-
glintSweep:
|
|
235
|
-
iconOnly:
|
|
236
|
-
lg:
|
|
237
|
-
sm:
|
|
238
|
-
micro:
|
|
239
|
-
stars:
|
|
240
|
-
fullWidth:
|
|
241
|
-
ember:
|
|
242
|
-
label:
|
|
243
|
-
star:
|
|
244
|
-
twinkle:
|
|
231
|
+
}), $1 = "_spaceButton_kjhqx_14", L1 = "_rimRotate_kjhqx_1", q1 = "_glintSweep_kjhqx_1", z1 = "_iconOnly_kjhqx_97", R1 = "_lg_kjhqx_104", M1 = "_sm_kjhqx_110", N1 = "_micro_kjhqx_122", D1 = "_stars_kjhqx_136", I1 = "_fullWidth_kjhqx_141", H1 = "_ember_kjhqx_147", S1 = "_label_kjhqx_157", T1 = "_star_kjhqx_136", E1 = "_twinkle_kjhqx_1", A = {
|
|
232
|
+
spaceButton: $1,
|
|
233
|
+
rimRotate: L1,
|
|
234
|
+
glintSweep: q1,
|
|
235
|
+
iconOnly: z1,
|
|
236
|
+
lg: R1,
|
|
237
|
+
sm: M1,
|
|
238
|
+
micro: N1,
|
|
239
|
+
stars: D1,
|
|
240
|
+
fullWidth: I1,
|
|
241
|
+
ember: H1,
|
|
242
|
+
label: S1,
|
|
243
|
+
star: T1,
|
|
244
|
+
twinkle: E1
|
|
245
245
|
};
|
|
246
|
-
function
|
|
246
|
+
function Z1(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 V1(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
|
|
260
|
-
function({ iconOnly: t, ember: o, size:
|
|
261
|
-
const i =
|
|
262
|
-
const
|
|
259
|
+
const j1 = H(
|
|
260
|
+
function({ iconOnly: t, ember: o, size: s = "md", fullWidth: r, animated: l = !0, className: c, children: a, ...d }, g) {
|
|
261
|
+
const i = V(), p = ee(() => {
|
|
262
|
+
const f = Z1(V1(i));
|
|
263
263
|
return Array.from({ length: 3 }, () => ({
|
|
264
|
-
top: `${12 +
|
|
265
|
-
left: `${8 +
|
|
266
|
-
animationDelay: `${(
|
|
267
|
-
animationDuration: `${(2.8 +
|
|
264
|
+
top: `${12 + f() * 58}%`,
|
|
265
|
+
left: `${8 + f() * 80}%`,
|
|
266
|
+
animationDelay: `${(f() * 3.2).toFixed(2)}s`,
|
|
267
|
+
animationDuration: `${(2.8 + f() * 1.8).toFixed(2)}s`
|
|
268
268
|
}));
|
|
269
|
-
}, [i]),
|
|
270
|
-
|
|
271
|
-
t ?
|
|
272
|
-
o ?
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
}, [i]), h = [
|
|
270
|
+
A.spaceButton,
|
|
271
|
+
t ? A.iconOnly : "",
|
|
272
|
+
o ? A.ember : "",
|
|
273
|
+
s !== "md" ? A[s] : "",
|
|
274
|
+
r ? A.fullWidth : "",
|
|
275
275
|
c ?? ""
|
|
276
276
|
].filter(Boolean).join(" ");
|
|
277
|
-
return /* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ q(
|
|
278
278
|
"button",
|
|
279
279
|
{
|
|
280
|
-
ref:
|
|
281
|
-
className:
|
|
280
|
+
ref: g,
|
|
281
|
+
className: h,
|
|
282
282
|
"data-animated": l ? void 0 : "false",
|
|
283
|
-
...
|
|
283
|
+
...d,
|
|
284
284
|
children: [
|
|
285
|
-
|
|
286
|
-
/* @__PURE__ */ n("span", { className:
|
|
285
|
+
s !== "micro" && /* @__PURE__ */ n("span", { className: A.stars, "aria-hidden": !0, children: p.map((f, C) => /* @__PURE__ */ n("i", { className: A.star, style: f }, C)) }),
|
|
286
|
+
/* @__PURE__ */ n("span", { className: A.label, children: a })
|
|
287
287
|
]
|
|
288
288
|
}
|
|
289
289
|
);
|
|
290
290
|
}
|
|
291
|
-
),
|
|
292
|
-
wrap:
|
|
293
|
-
sm:
|
|
294
|
-
md:
|
|
295
|
-
lg:
|
|
296
|
-
orbit:
|
|
297
|
-
planet:
|
|
291
|
+
), O1 = "_wrap_dwcut_5", A1 = "_sm_dwcut_30", B1 = "_md_dwcut_36", W1 = "_lg_dwcut_42", F1 = "_orbit_dwcut_49", P1 = "_planet_dwcut_58", G1 = "_moon_dwcut_73", K1 = "_label_dwcut_92", Y = {
|
|
292
|
+
wrap: O1,
|
|
293
|
+
sm: A1,
|
|
294
|
+
md: B1,
|
|
295
|
+
lg: W1,
|
|
296
|
+
orbit: F1,
|
|
297
|
+
planet: P1,
|
|
298
298
|
"sp-loader-planet-pulse": "_sp-loader-planet-pulse_dwcut_1",
|
|
299
|
-
moon:
|
|
299
|
+
moon: G1,
|
|
300
300
|
"sp-loader-orbit": "_sp-loader-orbit_dwcut_1",
|
|
301
|
-
label:
|
|
301
|
+
label: K1,
|
|
302
302
|
"sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
|
|
303
303
|
};
|
|
304
|
-
function
|
|
305
|
-
return /* @__PURE__ */
|
|
304
|
+
function Xo({ size: e = "md", label: t, className: o }) {
|
|
305
|
+
return /* @__PURE__ */ q(
|
|
306
306
|
"div",
|
|
307
307
|
{
|
|
308
|
-
className:
|
|
308
|
+
className: v(Y.wrap, Y[e], o),
|
|
309
309
|
role: "status",
|
|
310
310
|
"aria-live": "polite",
|
|
311
311
|
"aria-label": t ?? "Loading",
|
|
312
312
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */ n("span", { className:
|
|
315
|
-
/* @__PURE__ */ n("span", { className:
|
|
313
|
+
/* @__PURE__ */ q("span", { className: Y.orbit, children: [
|
|
314
|
+
/* @__PURE__ */ n("span", { className: Y.planet }),
|
|
315
|
+
/* @__PURE__ */ n("span", { className: Y.moon })
|
|
316
316
|
] }),
|
|
317
|
-
t && /* @__PURE__ */ n("span", { className:
|
|
317
|
+
t && /* @__PURE__ */ n("span", { className: Y.label, children: t })
|
|
318
318
|
]
|
|
319
319
|
}
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
|
-
const
|
|
323
|
-
content:
|
|
324
|
-
},
|
|
325
|
-
function
|
|
326
|
-
const l =
|
|
327
|
-
return
|
|
322
|
+
const U1 = "_content_1bxfq_6", X1 = {
|
|
323
|
+
content: U1
|
|
324
|
+
}, Y1 = 350, Q1 = 80, Ce = 8, ce = 8;
|
|
325
|
+
function J1({ triggerRef: e, tooltipId: t, show: o, hide: s, children: r }) {
|
|
326
|
+
const l = r.props;
|
|
327
|
+
return ve(r, {
|
|
328
328
|
ref: e,
|
|
329
329
|
// Always present, so the id it points at never dangles: the content
|
|
330
330
|
// element stays mounted and only toggles its popover state.
|
|
@@ -335,7 +335,7 @@ function Pt({ triggerRef: e, tooltipId: t, show: o, hide: r, children: s }) {
|
|
|
335
335
|
},
|
|
336
336
|
onPointerLeave: (c) => {
|
|
337
337
|
var a;
|
|
338
|
-
(a = l.onPointerLeave) == null || a.call(l, c),
|
|
338
|
+
(a = l.onPointerLeave) == null || a.call(l, c), s();
|
|
339
339
|
},
|
|
340
340
|
// Keyboard focus shows it immediately — no hover delay to wait out.
|
|
341
341
|
onFocus: (c) => {
|
|
@@ -344,237 +344,259 @@ function Pt({ triggerRef: e, tooltipId: t, show: o, hide: r, children: s }) {
|
|
|
344
344
|
},
|
|
345
345
|
onBlur: (c) => {
|
|
346
346
|
var a;
|
|
347
|
-
(a = l.onBlur) == null || a.call(l, c),
|
|
347
|
+
(a = l.onBlur) == null || a.call(l, c), s();
|
|
348
348
|
},
|
|
349
349
|
// A tooltip must never outlive the action it describes: clicking the
|
|
350
350
|
// control (expand, switch view) leaves it stranded over the new layout.
|
|
351
351
|
onClick: (c) => {
|
|
352
352
|
var a;
|
|
353
|
-
(a = l.onClick) == null || a.call(l, c),
|
|
353
|
+
(a = l.onClick) == null || a.call(l, c), s();
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
const
|
|
359
|
-
i.current && (clearTimeout(i.current), i.current = null),
|
|
360
|
-
},
|
|
361
|
-
if (
|
|
357
|
+
function en({ label: e, side: t = "bottom", children: o }) {
|
|
358
|
+
const s = V(), [r, l] = T(!1), [c, a] = T(null), d = M(null), g = M(null), i = M(null), p = M(null), h = () => {
|
|
359
|
+
i.current && (clearTimeout(i.current), i.current = null), p.current && (clearTimeout(p.current), p.current = null);
|
|
360
|
+
}, f = (w = !1) => {
|
|
361
|
+
if (h(), w) {
|
|
362
362
|
l(!0);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
i.current = setTimeout(() => l(!0),
|
|
366
|
-
},
|
|
367
|
-
|
|
365
|
+
i.current = setTimeout(() => l(!0), Y1);
|
|
366
|
+
}, C = () => {
|
|
367
|
+
h(), p.current = setTimeout(() => l(!1), Q1);
|
|
368
368
|
};
|
|
369
|
-
return
|
|
370
|
-
const
|
|
371
|
-
if (!
|
|
372
|
-
if (!
|
|
373
|
-
|
|
369
|
+
return Z(() => h, []), he(() => {
|
|
370
|
+
const w = g.current;
|
|
371
|
+
if (!w) return;
|
|
372
|
+
if (!r) {
|
|
373
|
+
w.matches(":popover-open") && w.hidePopover();
|
|
374
374
|
return;
|
|
375
375
|
}
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
if (!
|
|
379
|
-
const
|
|
380
|
-
Math.max(
|
|
381
|
-
Math.max(
|
|
382
|
-
)
|
|
383
|
-
|
|
384
|
-
|
|
376
|
+
w.matches(":popover-open") || w.showPopover();
|
|
377
|
+
const y = d.current;
|
|
378
|
+
if (!y) return;
|
|
379
|
+
const b = y.getBoundingClientRect(), $ = w.offsetWidth, N = w.offsetHeight, D = (_, x, R, O) => Math.min(
|
|
380
|
+
Math.max(_ + x / 2 - R / 2, ce),
|
|
381
|
+
Math.max(O - R - ce, ce)
|
|
382
|
+
), z = (_, x, R, O) => {
|
|
383
|
+
const G = x + R <= O - ce;
|
|
384
|
+
return { fitsNear: _ >= ce, fitsFar: G };
|
|
385
|
+
};
|
|
386
|
+
if (t === "left" || t === "right") {
|
|
387
|
+
const _ = b.right + Ce, x = b.left - $ - Ce, { fitsNear: R, fitsFar: O } = z(x, _, $, window.innerWidth), G = t === "right" ? O || !R ? _ : x : R || !O ? x : _;
|
|
388
|
+
a({ top: D(b.top, b.height, N, window.innerHeight), left: G });
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
const j = b.bottom + Ce, L = b.top - N - Ce, { fitsNear: I, fitsFar: F } = z(L, j, N, window.innerHeight);
|
|
392
|
+
a({ top: t === "bottom" ? F || !I ? j : L : I || !F ? L : j, left: D(b.left, b.width, $, window.innerWidth) });
|
|
393
|
+
}, [r, t, e]), !e || !te(o) ? /* @__PURE__ */ n(ue, { children: o }) : /* @__PURE__ */ q(ue, { children: [
|
|
385
394
|
/* @__PURE__ */ n(
|
|
386
|
-
|
|
395
|
+
J1,
|
|
387
396
|
{
|
|
388
|
-
triggerRef:
|
|
389
|
-
tooltipId:
|
|
390
|
-
show:
|
|
391
|
-
hide:
|
|
397
|
+
triggerRef: d,
|
|
398
|
+
tooltipId: s,
|
|
399
|
+
show: f,
|
|
400
|
+
hide: C,
|
|
392
401
|
children: o
|
|
393
402
|
}
|
|
394
403
|
),
|
|
395
404
|
/* @__PURE__ */ n(
|
|
396
405
|
"div",
|
|
397
406
|
{
|
|
398
|
-
ref:
|
|
399
|
-
id:
|
|
407
|
+
ref: g,
|
|
408
|
+
id: s,
|
|
400
409
|
popover: "auto",
|
|
401
410
|
role: "tooltip",
|
|
402
|
-
className:
|
|
411
|
+
className: X1.content,
|
|
403
412
|
style: c ? { top: c.top, left: c.left } : void 0,
|
|
404
|
-
onToggle: (
|
|
405
|
-
|
|
413
|
+
onToggle: (w) => {
|
|
414
|
+
w.nativeEvent.newState === "closed" && r && l(!1);
|
|
406
415
|
},
|
|
407
416
|
children: e
|
|
408
417
|
}
|
|
409
418
|
)
|
|
410
419
|
] });
|
|
411
420
|
}
|
|
412
|
-
const
|
|
413
|
-
group:
|
|
414
|
-
segment:
|
|
415
|
-
active:
|
|
421
|
+
const tn = "_group_1tdav_4", nn = "_segment_1tdav_15", on = "_active_1tdav_35", sn = "_vertical_1tdav_46", ge = {
|
|
422
|
+
group: tn,
|
|
423
|
+
segment: nn,
|
|
424
|
+
active: on,
|
|
425
|
+
vertical: sn
|
|
416
426
|
};
|
|
417
|
-
function
|
|
427
|
+
function Yo({
|
|
418
428
|
options: e,
|
|
419
429
|
value: t,
|
|
420
430
|
onValueChange: o,
|
|
431
|
+
orientation: s = "horizontal",
|
|
421
432
|
className: r = ""
|
|
422
433
|
}) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
const l = s === "vertical";
|
|
435
|
+
return /* @__PURE__ */ n(
|
|
436
|
+
"div",
|
|
437
|
+
{
|
|
438
|
+
className: `${ge.group} ${l ? ge.vertical : ""} ${r}`,
|
|
439
|
+
role: "group",
|
|
440
|
+
children: e.map((c) => (
|
|
441
|
+
// A horizontal pill sits at the top of the scene, so its tooltips hang
|
|
442
|
+
// below it. A vertical one has a segment directly below every segment,
|
|
443
|
+
// so they go to the side instead — otherwise each tooltip covers the
|
|
444
|
+
// next option along.
|
|
445
|
+
/* @__PURE__ */ n(en, { label: c.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
|
|
446
|
+
"button",
|
|
447
|
+
{
|
|
448
|
+
type: "button",
|
|
449
|
+
className: `${ge.segment} ${c.value === t ? ge.active : ""}`,
|
|
450
|
+
"aria-label": c.label,
|
|
451
|
+
"aria-pressed": c.value === t,
|
|
452
|
+
onClick: () => {
|
|
453
|
+
c.value !== t && o(c.value);
|
|
454
|
+
},
|
|
455
|
+
children: c.icon
|
|
456
|
+
}
|
|
457
|
+
) }, c.value)
|
|
458
|
+
))
|
|
459
|
+
}
|
|
460
|
+
);
|
|
439
461
|
}
|
|
440
|
-
const
|
|
441
|
-
root:
|
|
442
|
-
trigger:
|
|
443
|
-
labelWrap:
|
|
444
|
-
sizer:
|
|
445
|
-
triggerLabel:
|
|
446
|
-
chevron:
|
|
447
|
-
listbox:
|
|
448
|
-
item:
|
|
449
|
-
},
|
|
450
|
-
spaceControl:
|
|
451
|
-
spaceSlider:
|
|
452
|
-
spacePanel:
|
|
453
|
-
spaceInput:
|
|
454
|
-
spaceTextArea:
|
|
455
|
-
},
|
|
456
|
-
const e =
|
|
462
|
+
const rn = "_root_1bvtq_2", ln = "_trigger_1bvtq_7", cn = "_labelWrap_1bvtq_30", an = "_sizer_1bvtq_8", un = "_triggerLabel_1bvtq_70", dn = "_chevron_1bvtq_77", _n = "_listbox_1bvtq_82", fn = "_item_1bvtq_110", B = {
|
|
463
|
+
root: rn,
|
|
464
|
+
trigger: ln,
|
|
465
|
+
labelWrap: cn,
|
|
466
|
+
sizer: an,
|
|
467
|
+
triggerLabel: un,
|
|
468
|
+
chevron: dn,
|
|
469
|
+
listbox: _n,
|
|
470
|
+
item: fn
|
|
471
|
+
}, pn = "_spaceControl_4ou97_17", Cn = "_spaceSlider_4ou97_74", gn = "_spacePanel_4ou97_111", mn = "_spaceInput_4ou97_34", vn = "_spaceTextArea_4ou97_226", hn = {
|
|
472
|
+
spaceControl: pn,
|
|
473
|
+
spaceSlider: Cn,
|
|
474
|
+
spacePanel: gn,
|
|
475
|
+
spaceInput: mn,
|
|
476
|
+
spaceTextArea: vn
|
|
477
|
+
}, P = hn, Ne = ne(null), wn = () => {
|
|
478
|
+
const e = oe(Ne);
|
|
457
479
|
if (!e) throw new Error("Select.Item must be inside a Select");
|
|
458
480
|
return e;
|
|
459
|
-
},
|
|
460
|
-
function
|
|
461
|
-
const t = [], o = (
|
|
462
|
-
|
|
463
|
-
if (!
|
|
464
|
-
const l =
|
|
465
|
-
|
|
481
|
+
}, De = (e, t) => `${e}-${encodeURIComponent(t)}`;
|
|
482
|
+
function bn(e) {
|
|
483
|
+
const t = [], o = (s) => {
|
|
484
|
+
Ke.forEach(s, (r) => {
|
|
485
|
+
if (!te(r)) return;
|
|
486
|
+
const l = r.props;
|
|
487
|
+
r.type === Ie && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
|
|
466
488
|
});
|
|
467
489
|
};
|
|
468
490
|
return o(e), t;
|
|
469
491
|
}
|
|
470
|
-
function
|
|
492
|
+
function yn({
|
|
471
493
|
value: e,
|
|
472
494
|
onValueChange: t,
|
|
473
495
|
disabled: o,
|
|
474
|
-
placeholder:
|
|
475
|
-
animated:
|
|
496
|
+
placeholder: s,
|
|
497
|
+
animated: r = !0,
|
|
476
498
|
className: l,
|
|
477
499
|
children: c,
|
|
478
500
|
...a
|
|
479
501
|
}) {
|
|
480
|
-
const [
|
|
481
|
-
(
|
|
482
|
-
var
|
|
483
|
-
return ((
|
|
502
|
+
const [d, g] = T(!1), [i, p] = T(null), h = V(), f = M(null), C = M(null), w = M(null), [y, b] = T(null), [$, N] = T(null), D = ee(() => bn(c), [c]), z = ee(() => D.filter((_) => !_.disabled).map((_) => _.value), [D]), j = ee(() => D.map((_) => _.label), [D]), L = Me(
|
|
503
|
+
(_) => {
|
|
504
|
+
var x;
|
|
505
|
+
return ((x = D.find((R) => R.value === _)) == null ? void 0 : x.label) ?? null;
|
|
484
506
|
},
|
|
485
|
-
[
|
|
507
|
+
[D]
|
|
486
508
|
);
|
|
487
|
-
|
|
488
|
-
if (!
|
|
489
|
-
const
|
|
490
|
-
|
|
509
|
+
Z(() => {
|
|
510
|
+
if (!d) return;
|
|
511
|
+
const _ = (x) => {
|
|
512
|
+
C.current && !C.current.contains(x.target) && g(!1);
|
|
491
513
|
};
|
|
492
|
-
return document.addEventListener("mousedown",
|
|
493
|
-
}, [
|
|
494
|
-
if (!
|
|
495
|
-
const
|
|
496
|
-
if (!
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
}, [
|
|
502
|
-
var
|
|
503
|
-
|
|
504
|
-
}, [
|
|
505
|
-
const
|
|
506
|
-
_
|
|
507
|
-
},
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
},
|
|
514
|
+
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
515
|
+
}, [d]), he(() => {
|
|
516
|
+
if (!d) return;
|
|
517
|
+
const _ = f.current;
|
|
518
|
+
if (!_) return;
|
|
519
|
+
const x = _.getBoundingClientRect();
|
|
520
|
+
b(_.offsetWidth);
|
|
521
|
+
const R = window.innerHeight - x.bottom - 16;
|
|
522
|
+
N(Math.min(380, Math.max(120, R)));
|
|
523
|
+
}, [d]), Z(() => {
|
|
524
|
+
var _;
|
|
525
|
+
d && ((_ = w.current) == null || _.focus());
|
|
526
|
+
}, [d]);
|
|
527
|
+
const I = (_) => {
|
|
528
|
+
p(_ ?? z[0] ?? null), g(!0);
|
|
529
|
+
}, F = (_) => {
|
|
530
|
+
const x = i ? z.indexOf(i) : -1, R = Math.min(Math.max(x + _, 0), z.length - 1);
|
|
531
|
+
p(z[R] ?? null);
|
|
532
|
+
}, S = e ? L(e) : null;
|
|
511
533
|
return /* @__PURE__ */ n(
|
|
512
|
-
|
|
534
|
+
Ne.Provider,
|
|
513
535
|
{
|
|
514
536
|
value: {
|
|
515
537
|
value: e,
|
|
516
538
|
onValueChange: t,
|
|
517
539
|
disabled: o,
|
|
518
|
-
open:
|
|
519
|
-
setOpen:
|
|
540
|
+
open: d,
|
|
541
|
+
setOpen: g,
|
|
520
542
|
highlighted: i,
|
|
521
|
-
setHighlighted:
|
|
522
|
-
listboxId:
|
|
523
|
-
values:
|
|
524
|
-
labelFor:
|
|
525
|
-
triggerRef:
|
|
543
|
+
setHighlighted: p,
|
|
544
|
+
listboxId: h,
|
|
545
|
+
values: z,
|
|
546
|
+
labelFor: L,
|
|
547
|
+
triggerRef: f
|
|
526
548
|
},
|
|
527
|
-
children: /* @__PURE__ */
|
|
528
|
-
/* @__PURE__ */
|
|
549
|
+
children: /* @__PURE__ */ q("div", { ref: C, className: B.root, children: [
|
|
550
|
+
/* @__PURE__ */ q(
|
|
529
551
|
"button",
|
|
530
552
|
{
|
|
531
553
|
type: "button",
|
|
532
554
|
...a,
|
|
533
|
-
ref:
|
|
555
|
+
ref: f,
|
|
534
556
|
disabled: o,
|
|
535
|
-
className:
|
|
536
|
-
"data-animated":
|
|
537
|
-
"data-state":
|
|
557
|
+
className: v(B.trigger, P.spaceControl, "spSelectTrigger", l),
|
|
558
|
+
"data-animated": r ? void 0 : "false",
|
|
559
|
+
"data-state": d ? "open" : "closed",
|
|
538
560
|
"aria-haspopup": "listbox",
|
|
539
|
-
"aria-expanded":
|
|
540
|
-
"aria-controls":
|
|
541
|
-
onClick: () =>
|
|
542
|
-
onKeyDown: (
|
|
543
|
-
(
|
|
561
|
+
"aria-expanded": d,
|
|
562
|
+
"aria-controls": h,
|
|
563
|
+
onClick: () => d ? g(!1) : I(e || null),
|
|
564
|
+
onKeyDown: (_) => {
|
|
565
|
+
(_.key === "ArrowDown" || _.key === "Enter" || _.key === " ") && (_.preventDefault(), I(e || null));
|
|
544
566
|
},
|
|
545
567
|
children: [
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
|
|
568
|
+
/* @__PURE__ */ q("span", { className: B.labelWrap, children: [
|
|
569
|
+
/* @__PURE__ */ q("span", { className: B.sizer, "data-sizer": "", "aria-hidden": "true", children: [
|
|
570
|
+
j.map((_, x) => (
|
|
549
571
|
// eslint-disable-next-line react/no-array-index-key
|
|
550
|
-
/* @__PURE__ */ n("span", { children:
|
|
572
|
+
/* @__PURE__ */ n("span", { children: _ }, x)
|
|
551
573
|
)),
|
|
552
|
-
|
|
574
|
+
s && /* @__PURE__ */ n("span", { children: s })
|
|
553
575
|
] }),
|
|
554
|
-
/* @__PURE__ */ n("span", { className:
|
|
576
|
+
/* @__PURE__ */ n("span", { className: B.triggerLabel, children: S ?? s ?? "" })
|
|
555
577
|
] }),
|
|
556
|
-
/* @__PURE__ */ n("svg", { className:
|
|
578
|
+
/* @__PURE__ */ n("svg", { className: B.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" }) })
|
|
557
579
|
]
|
|
558
580
|
}
|
|
559
581
|
),
|
|
560
582
|
/* @__PURE__ */ n(
|
|
561
583
|
"div",
|
|
562
584
|
{
|
|
563
|
-
ref:
|
|
564
|
-
id:
|
|
585
|
+
ref: w,
|
|
586
|
+
id: h,
|
|
565
587
|
role: "listbox",
|
|
566
588
|
tabIndex: -1,
|
|
567
|
-
hidden: !
|
|
568
|
-
"aria-activedescendant": i ?
|
|
569
|
-
className:
|
|
570
|
-
"data-animated":
|
|
571
|
-
style:
|
|
572
|
-
...
|
|
573
|
-
|
|
589
|
+
hidden: !d,
|
|
590
|
+
"aria-activedescendant": i ? De(h, i) : void 0,
|
|
591
|
+
className: v(B.listbox, P.spacePanel),
|
|
592
|
+
"data-animated": r ? void 0 : "false",
|
|
593
|
+
style: y != null || $ != null ? {
|
|
594
|
+
...y != null ? { "--_select-trigger-width": `${y}px` } : {},
|
|
595
|
+
...$ != null ? { maxHeight: `${$}px` } : {}
|
|
574
596
|
} : void 0,
|
|
575
|
-
onKeyDown: (
|
|
576
|
-
var
|
|
577
|
-
|
|
597
|
+
onKeyDown: (_) => {
|
|
598
|
+
var x, R;
|
|
599
|
+
_.key === "Escape" ? (_.stopPropagation(), g(!1), (x = f.current) == null || x.focus()) : _.key === "ArrowDown" ? (_.preventDefault(), F(1)) : _.key === "ArrowUp" ? (_.preventDefault(), F(-1)) : _.key === "Home" ? (_.preventDefault(), p(z[0] ?? null)) : _.key === "End" ? (_.preventDefault(), p(z[z.length - 1] ?? null)) : _.key === "Enter" || _.key === " " ? (_.preventDefault(), i && (t(i), g(!1), (R = f.current) == null || R.focus())) : _.key === "Tab" && g(!1);
|
|
578
600
|
},
|
|
579
601
|
children: c
|
|
580
602
|
}
|
|
@@ -583,143 +605,310 @@ function _n({
|
|
|
583
605
|
}
|
|
584
606
|
);
|
|
585
607
|
}
|
|
586
|
-
function
|
|
587
|
-
const
|
|
608
|
+
function Ie({ value: e, disabled: t, children: o }) {
|
|
609
|
+
const s = wn(), r = s.value === e, l = s.highlighted === e;
|
|
588
610
|
return /* @__PURE__ */ n(
|
|
589
611
|
"div",
|
|
590
612
|
{
|
|
591
|
-
id:
|
|
613
|
+
id: De(s.listboxId, e),
|
|
592
614
|
role: "option",
|
|
593
|
-
"aria-selected":
|
|
615
|
+
"aria-selected": r,
|
|
594
616
|
"aria-disabled": t || void 0,
|
|
595
617
|
"data-highlighted": l ? "" : void 0,
|
|
596
|
-
className:
|
|
597
|
-
onMouseEnter: () => !t &&
|
|
618
|
+
className: v(B.item, "spSelectItem"),
|
|
619
|
+
onMouseEnter: () => !t && s.setHighlighted(e),
|
|
598
620
|
onClick: () => {
|
|
599
621
|
var c;
|
|
600
|
-
t || (
|
|
622
|
+
t || (s.onValueChange(e), s.setOpen(!1), (c = s.triggerRef.current) == null || c.focus());
|
|
601
623
|
},
|
|
602
624
|
children: o
|
|
603
625
|
}
|
|
604
626
|
);
|
|
605
627
|
}
|
|
606
|
-
const
|
|
607
|
-
root:
|
|
608
|
-
input:
|
|
609
|
-
slot:
|
|
610
|
-
},
|
|
611
|
-
return /* @__PURE__ */
|
|
628
|
+
const Qo = Object.assign(yn, { Item: Ie }), xn = "_root_1lx7y_1", kn = "_input_1lx7y_7", $n = "_slot_1lx7y_17", be = {
|
|
629
|
+
root: xn,
|
|
630
|
+
input: kn,
|
|
631
|
+
slot: $n
|
|
632
|
+
}, Ln = H(function({ className: t, style: o, animated: s = !0, children: r, ...l }, c) {
|
|
633
|
+
return /* @__PURE__ */ q(
|
|
612
634
|
"div",
|
|
613
635
|
{
|
|
614
|
-
className:
|
|
615
|
-
"data-animated":
|
|
636
|
+
className: v(be.root, P.spaceInput, "spTextFieldRoot", t),
|
|
637
|
+
"data-animated": s ? void 0 : "false",
|
|
616
638
|
style: o,
|
|
617
639
|
children: [
|
|
618
|
-
|
|
619
|
-
/* @__PURE__ */ n("input", { ...l, ref: c, className:
|
|
640
|
+
r,
|
|
641
|
+
/* @__PURE__ */ n("input", { ...l, ref: c, className: v(be.input, "spTextFieldInput") })
|
|
620
642
|
]
|
|
621
643
|
}
|
|
622
644
|
);
|
|
623
645
|
});
|
|
624
|
-
function
|
|
646
|
+
function qn({
|
|
625
647
|
children: e
|
|
626
648
|
}) {
|
|
627
|
-
return /* @__PURE__ */ n("span", { className:
|
|
649
|
+
return /* @__PURE__ */ n("span", { className: be.slot, children: e });
|
|
628
650
|
}
|
|
629
|
-
const
|
|
630
|
-
root:
|
|
631
|
-
textarea:
|
|
632
|
-
},
|
|
651
|
+
const qe = Object.assign(Ln, { Slot: qn }), zn = "_root_1qu6w_1", Rn = "_textarea_1qu6w_6", ze = {
|
|
652
|
+
root: zn,
|
|
653
|
+
textarea: Rn
|
|
654
|
+
}, Jo = H(function({ className: t, style: o, animated: s = !0, ...r }, l) {
|
|
633
655
|
return /* @__PURE__ */ n(
|
|
634
656
|
"div",
|
|
635
657
|
{
|
|
636
|
-
className:
|
|
637
|
-
"data-animated":
|
|
658
|
+
className: v(ze.root, P.spaceInput, P.spaceTextArea, "spTextFieldRoot", t),
|
|
659
|
+
"data-animated": s ? void 0 : "false",
|
|
638
660
|
style: o,
|
|
639
|
-
children: /* @__PURE__ */ n("textarea", { ...
|
|
661
|
+
children: /* @__PURE__ */ n("textarea", { ...r, ref: l, className: v(ze.textarea, "spTextAreaInput") })
|
|
640
662
|
}
|
|
641
663
|
);
|
|
642
|
-
}),
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
664
|
+
}), Mn = "_wrap_1pkwo_12", Nn = "_field_1pkwo_16", Dn = "_panel_1pkwo_22", In = "_status_1pkwo_34", Hn = "_list_1pkwo_44", Sn = "_option_1pkwo_57", Tn = "_active_1pkwo_69", En = "_label_1pkwo_79", Zn = "_meta_1pkwo_86", Vn = "_footer_1pkwo_92", E = {
|
|
665
|
+
wrap: Mn,
|
|
666
|
+
field: Nn,
|
|
667
|
+
panel: Dn,
|
|
668
|
+
status: In,
|
|
669
|
+
list: Hn,
|
|
670
|
+
option: Sn,
|
|
671
|
+
active: Tn,
|
|
672
|
+
label: En,
|
|
673
|
+
meta: Zn,
|
|
674
|
+
footer: Vn
|
|
675
|
+
};
|
|
676
|
+
function es({
|
|
677
|
+
value: e,
|
|
678
|
+
onValueChange: t,
|
|
679
|
+
options: o,
|
|
680
|
+
onSelect: s,
|
|
681
|
+
icon: r,
|
|
682
|
+
caseSensitive: l = !1,
|
|
683
|
+
preFiltered: c = !1,
|
|
684
|
+
loading: a = !1,
|
|
685
|
+
loadingMessage: d = "Loading…",
|
|
686
|
+
emptyMessage: g,
|
|
687
|
+
footer: i,
|
|
688
|
+
animated: p = !0,
|
|
689
|
+
className: h,
|
|
690
|
+
style: f,
|
|
691
|
+
...C
|
|
692
|
+
}) {
|
|
693
|
+
const [w, y] = T(!1), [b, $] = T(0), N = M(null), D = M(null), z = V(), j = (u) => typeof u.label == "string" ? u.label : u.search ?? u.value, L = ee(() => {
|
|
694
|
+
if (c) return o;
|
|
695
|
+
const u = l ? e : e.toLowerCase();
|
|
696
|
+
return u === "" ? o : o.filter((m) => (l ? j(m) : j(m).toLowerCase()).includes(u));
|
|
697
|
+
}, [o, e, l, c]), I = ee(() => L.filter((u) => !u.disabled), [L]), F = L.length > 0 || a || g != null, S = w && F;
|
|
698
|
+
Z(() => $(0), [L]), Z(() => {
|
|
699
|
+
var m;
|
|
700
|
+
if (!S) return;
|
|
701
|
+
const u = (m = D.current) == null ? void 0 : m.querySelector(`[data-index="${b}"]`);
|
|
702
|
+
u == null || u.scrollIntoView({ block: "nearest" });
|
|
703
|
+
}, [b, S]);
|
|
704
|
+
const _ = Me(() => y(!1), []);
|
|
705
|
+
Z(() => {
|
|
706
|
+
if (!S) return;
|
|
707
|
+
const u = (m) => {
|
|
708
|
+
const K = N.current;
|
|
709
|
+
K && m.target instanceof Node && !K.contains(m.target) && _();
|
|
710
|
+
};
|
|
711
|
+
return document.addEventListener("pointerdown", u), () => document.removeEventListener("pointerdown", u);
|
|
712
|
+
}, [S, _]);
|
|
713
|
+
const x = (u) => {
|
|
714
|
+
u.disabled || (s(u.value, u), y(!1));
|
|
715
|
+
}, R = (u) => {
|
|
716
|
+
if (I.length === 0) return;
|
|
717
|
+
const m = L[b], Ge = ((m && !m.disabled ? I.indexOf(m) : -1) + u + I.length) % I.length, ke = I[Ge];
|
|
718
|
+
ke && $(L.indexOf(ke));
|
|
719
|
+
}, O = (u) => {
|
|
720
|
+
if (u.key === "Escape") {
|
|
721
|
+
S && u.stopPropagation(), y(!1);
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
if (u.key === "Tab") {
|
|
725
|
+
y(!1);
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
if (!S) {
|
|
729
|
+
u.key === "ArrowDown" && y(!0);
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
if (u.key === "ArrowDown")
|
|
733
|
+
u.preventDefault(), R(1);
|
|
734
|
+
else if (u.key === "ArrowUp")
|
|
735
|
+
u.preventDefault(), R(-1);
|
|
736
|
+
else if (u.key === "Home") {
|
|
737
|
+
u.preventDefault();
|
|
738
|
+
const m = I[0];
|
|
739
|
+
m && $(L.indexOf(m));
|
|
740
|
+
} else if (u.key === "End") {
|
|
741
|
+
u.preventDefault();
|
|
742
|
+
const m = I[I.length - 1];
|
|
743
|
+
m && $(L.indexOf(m));
|
|
744
|
+
} else if (u.key === "Enter") {
|
|
745
|
+
const m = L[b];
|
|
746
|
+
m && !m.disabled && (u.preventDefault(), x(m));
|
|
747
|
+
}
|
|
748
|
+
}, G = S ? L[b] : void 0;
|
|
749
|
+
return /* @__PURE__ */ q("div", { ref: N, className: v(E.wrap, h), style: f, children: [
|
|
750
|
+
/* @__PURE__ */ n(
|
|
751
|
+
qe,
|
|
752
|
+
{
|
|
753
|
+
...C,
|
|
754
|
+
type: C.type ?? "text",
|
|
755
|
+
role: "combobox",
|
|
756
|
+
animated: p,
|
|
757
|
+
className: E.field,
|
|
758
|
+
autoComplete: "off",
|
|
759
|
+
"aria-expanded": S,
|
|
760
|
+
"aria-controls": z,
|
|
761
|
+
"aria-autocomplete": "list",
|
|
762
|
+
"aria-activedescendant": G && !G.disabled ? `${z}-${b}` : void 0,
|
|
763
|
+
value: e,
|
|
764
|
+
onFocus: (u) => {
|
|
765
|
+
var m;
|
|
766
|
+
(m = C.onFocus) == null || m.call(C, u), y(!0);
|
|
767
|
+
},
|
|
768
|
+
onClick: (u) => {
|
|
769
|
+
var m;
|
|
770
|
+
(m = C.onClick) == null || m.call(C, u), y(!0);
|
|
771
|
+
},
|
|
772
|
+
onKeyDown: (u) => {
|
|
773
|
+
var m;
|
|
774
|
+
(m = C.onKeyDown) == null || m.call(C, u), O(u);
|
|
775
|
+
},
|
|
776
|
+
onChange: (u) => {
|
|
777
|
+
t(u.target.value), y(!0);
|
|
778
|
+
},
|
|
779
|
+
children: r != null && /* @__PURE__ */ n(qe.Slot, { children: r })
|
|
780
|
+
}
|
|
781
|
+
),
|
|
782
|
+
/* @__PURE__ */ q(
|
|
783
|
+
"div",
|
|
784
|
+
{
|
|
785
|
+
className: v(E.panel, P.spacePanel),
|
|
786
|
+
hidden: !S,
|
|
787
|
+
"data-animated": p ? void 0 : "false",
|
|
788
|
+
children: [
|
|
789
|
+
a && /* @__PURE__ */ n("p", { className: E.status, children: d }),
|
|
790
|
+
!a && L.length === 0 && g != null && /* @__PURE__ */ n("p", { className: E.status, children: g }),
|
|
791
|
+
/* @__PURE__ */ n(
|
|
792
|
+
"ul",
|
|
793
|
+
{
|
|
794
|
+
ref: D,
|
|
795
|
+
id: z,
|
|
796
|
+
role: "listbox",
|
|
797
|
+
className: E.list,
|
|
798
|
+
hidden: a || L.length === 0,
|
|
799
|
+
children: L.map((u, m) => /* @__PURE__ */ q(
|
|
800
|
+
"li",
|
|
801
|
+
{
|
|
802
|
+
id: `${z}-${m}`,
|
|
803
|
+
"data-index": m,
|
|
804
|
+
role: "option",
|
|
805
|
+
"aria-selected": m === b,
|
|
806
|
+
"aria-disabled": u.disabled || void 0,
|
|
807
|
+
className: v(
|
|
808
|
+
E.option,
|
|
809
|
+
m === b && !u.disabled && E.active,
|
|
810
|
+
"spAutocompleteOption"
|
|
811
|
+
),
|
|
812
|
+
onMouseEnter: () => !u.disabled && $(m),
|
|
813
|
+
onPointerDown: (K) => {
|
|
814
|
+
K.preventDefault(), x(u);
|
|
815
|
+
},
|
|
816
|
+
children: [
|
|
817
|
+
/* @__PURE__ */ n("span", { className: E.label, children: u.label }),
|
|
818
|
+
u.meta != null && /* @__PURE__ */ n("span", { className: E.meta, children: u.meta })
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
u.value
|
|
822
|
+
))
|
|
823
|
+
}
|
|
824
|
+
),
|
|
825
|
+
i != null && /* @__PURE__ */ n("div", { className: E.footer, children: i })
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
)
|
|
829
|
+
] });
|
|
830
|
+
}
|
|
831
|
+
const jn = "_root_14a1b_1", On = "_track_14a1b_12", An = "_range_14a1b_22", Bn = "_thumb_14a1b_28", Wn = "_input_14a1b_38", ie = {
|
|
832
|
+
root: jn,
|
|
833
|
+
track: On,
|
|
834
|
+
range: An,
|
|
835
|
+
thumb: Bn,
|
|
836
|
+
input: Wn
|
|
837
|
+
}, ts = H(function({ value: t, onValueChange: o, min: s, max: r, step: l, disabled: c, className: a, "aria-label": d }, g) {
|
|
838
|
+
const i = t[0] ?? s, p = r === s ? 0 : (i - s) / (r - s) * 100;
|
|
839
|
+
return /* @__PURE__ */ q("span", { className: v(ie.root, P.spaceSlider, a), "data-disabled": c || void 0, children: [
|
|
840
|
+
/* @__PURE__ */ n("span", { className: v(ie.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: v(ie.range, "spSliderRange"), style: { width: `${p}%` } }) }),
|
|
841
|
+
/* @__PURE__ */ n("span", { className: v(ie.thumb, "spSliderThumb"), style: { left: `${p}%` } }),
|
|
653
842
|
/* @__PURE__ */ n(
|
|
654
843
|
"input",
|
|
655
844
|
{
|
|
656
|
-
ref:
|
|
845
|
+
ref: g,
|
|
657
846
|
type: "range",
|
|
658
|
-
className:
|
|
847
|
+
className: v(ie.input, "spSliderInput"),
|
|
659
848
|
value: i,
|
|
660
|
-
min:
|
|
661
|
-
max:
|
|
849
|
+
min: s,
|
|
850
|
+
max: r,
|
|
662
851
|
step: l,
|
|
663
852
|
disabled: c,
|
|
664
|
-
"aria-label":
|
|
665
|
-
onChange: (
|
|
853
|
+
"aria-label": d,
|
|
854
|
+
onChange: (h) => o([Number(h.target.value)])
|
|
666
855
|
}
|
|
667
856
|
)
|
|
668
857
|
] });
|
|
669
|
-
}),
|
|
670
|
-
root:
|
|
671
|
-
item:
|
|
672
|
-
selfLabeled:
|
|
673
|
-
input:
|
|
674
|
-
orb:
|
|
675
|
-
},
|
|
676
|
-
function
|
|
677
|
-
const l =
|
|
678
|
-
return /* @__PURE__ */ n(
|
|
858
|
+
}), Fn = "_root_1qhel_2", Pn = "_item_1qhel_8", Gn = "_selfLabeled_1qhel_15", Kn = "_input_1qhel_19", Un = "_orb_1qhel_35", J = {
|
|
859
|
+
root: Fn,
|
|
860
|
+
item: Pn,
|
|
861
|
+
selfLabeled: Gn,
|
|
862
|
+
input: Kn,
|
|
863
|
+
orb: Un
|
|
864
|
+
}, He = ne(null);
|
|
865
|
+
function Xn({ value: e, onValueChange: t, disabled: o, className: s, children: r }) {
|
|
866
|
+
const l = V();
|
|
867
|
+
return /* @__PURE__ */ n(He.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: v(J.root, s), children: r }) });
|
|
679
868
|
}
|
|
680
|
-
function
|
|
681
|
-
const
|
|
682
|
-
if (!
|
|
683
|
-
const
|
|
869
|
+
function Yn({ value: e, disabled: t, children: o }) {
|
|
870
|
+
const s = oe(He);
|
|
871
|
+
if (!s) throw new Error("RadioGroup.Item must be inside a RadioGroup");
|
|
872
|
+
const r = t || s.disabled, l = /* @__PURE__ */ q(ue, { children: [
|
|
684
873
|
/* @__PURE__ */ n(
|
|
685
874
|
"input",
|
|
686
875
|
{
|
|
687
876
|
type: "radio",
|
|
688
|
-
className:
|
|
689
|
-
name:
|
|
877
|
+
className: J.input,
|
|
878
|
+
name: s.name,
|
|
690
879
|
value: e,
|
|
691
|
-
checked:
|
|
692
|
-
disabled:
|
|
693
|
-
onChange: () =>
|
|
880
|
+
checked: s.value === e,
|
|
881
|
+
disabled: r,
|
|
882
|
+
onChange: () => s.onValueChange(e)
|
|
694
883
|
}
|
|
695
884
|
),
|
|
696
|
-
/* @__PURE__ */ n("span", { className:
|
|
885
|
+
/* @__PURE__ */ n("span", { className: v(J.orb, "spRadioOrb"), "aria-hidden": "true" })
|
|
697
886
|
] });
|
|
698
|
-
return o == null ? /* @__PURE__ */ n("span", { className:
|
|
887
|
+
return o == null ? /* @__PURE__ */ n("span", { className: J.item, children: l }) : /* @__PURE__ */ q("label", { className: v(J.item, J.selfLabeled), children: [
|
|
699
888
|
l,
|
|
700
889
|
o
|
|
701
890
|
] });
|
|
702
891
|
}
|
|
703
|
-
const
|
|
704
|
-
progress:
|
|
892
|
+
const ns = Object.assign(Xn, { Item: Yn }), Qn = "_progress_1cre6_16", Jn = {
|
|
893
|
+
progress: Qn
|
|
705
894
|
};
|
|
706
|
-
function
|
|
895
|
+
function os({ value: e, max: t = 100, className: o, style: s, ...r }) {
|
|
707
896
|
const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
|
|
708
897
|
return /* @__PURE__ */ n(
|
|
709
898
|
"div",
|
|
710
899
|
{
|
|
711
|
-
...
|
|
900
|
+
...r,
|
|
712
901
|
role: "progressbar",
|
|
713
902
|
"aria-valuenow": e,
|
|
714
903
|
"aria-valuemin": 0,
|
|
715
904
|
"aria-valuemax": t,
|
|
716
|
-
className:
|
|
717
|
-
style:
|
|
905
|
+
className: v(Jn.progress, o),
|
|
906
|
+
style: s,
|
|
718
907
|
children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
|
|
719
908
|
}
|
|
720
909
|
);
|
|
721
910
|
}
|
|
722
|
-
const
|
|
911
|
+
const k = {
|
|
723
912
|
width: 15,
|
|
724
913
|
height: 15,
|
|
725
914
|
viewBox: "0 0 15 15",
|
|
@@ -727,8 +916,8 @@ const h = {
|
|
|
727
916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
728
917
|
"aria-hidden": !0
|
|
729
918
|
};
|
|
730
|
-
function
|
|
731
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
919
|
+
function ss(e) {
|
|
920
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
732
921
|
"path",
|
|
733
922
|
{
|
|
734
923
|
d: "M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",
|
|
@@ -738,8 +927,8 @@ function Eo(e) {
|
|
|
738
927
|
}
|
|
739
928
|
) });
|
|
740
929
|
}
|
|
741
|
-
function
|
|
742
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
930
|
+
function rs(e) {
|
|
931
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
743
932
|
"path",
|
|
744
933
|
{
|
|
745
934
|
d: "M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",
|
|
@@ -749,8 +938,8 @@ function jo(e) {
|
|
|
749
938
|
}
|
|
750
939
|
) });
|
|
751
940
|
}
|
|
752
|
-
function
|
|
753
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
941
|
+
function ls(e) {
|
|
942
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
754
943
|
"path",
|
|
755
944
|
{
|
|
756
945
|
d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",
|
|
@@ -760,8 +949,8 @@ function Vo(e) {
|
|
|
760
949
|
}
|
|
761
950
|
) });
|
|
762
951
|
}
|
|
763
|
-
function
|
|
764
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
952
|
+
function cs(e) {
|
|
953
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
765
954
|
"path",
|
|
766
955
|
{
|
|
767
956
|
d: "M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",
|
|
@@ -771,8 +960,8 @@ function Oo(e) {
|
|
|
771
960
|
}
|
|
772
961
|
) });
|
|
773
962
|
}
|
|
774
|
-
function
|
|
775
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
963
|
+
function is(e) {
|
|
964
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
776
965
|
"path",
|
|
777
966
|
{
|
|
778
967
|
d: "M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",
|
|
@@ -782,8 +971,8 @@ function Bo(e) {
|
|
|
782
971
|
}
|
|
783
972
|
) });
|
|
784
973
|
}
|
|
785
|
-
function
|
|
786
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
974
|
+
function as(e) {
|
|
975
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
787
976
|
"path",
|
|
788
977
|
{
|
|
789
978
|
d: "M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",
|
|
@@ -793,8 +982,8 @@ function Ao(e) {
|
|
|
793
982
|
}
|
|
794
983
|
) });
|
|
795
984
|
}
|
|
796
|
-
function
|
|
797
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
985
|
+
function us(e) {
|
|
986
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
798
987
|
"path",
|
|
799
988
|
{
|
|
800
989
|
d: "M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",
|
|
@@ -804,8 +993,8 @@ function Po(e) {
|
|
|
804
993
|
}
|
|
805
994
|
) });
|
|
806
995
|
}
|
|
807
|
-
function
|
|
808
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
996
|
+
function ds(e) {
|
|
997
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
809
998
|
"path",
|
|
810
999
|
{
|
|
811
1000
|
d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
|
|
@@ -815,8 +1004,8 @@ function Wo(e) {
|
|
|
815
1004
|
}
|
|
816
1005
|
) });
|
|
817
1006
|
}
|
|
818
|
-
function
|
|
819
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1007
|
+
function _s(e) {
|
|
1008
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
820
1009
|
"path",
|
|
821
1010
|
{
|
|
822
1011
|
d: "M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",
|
|
@@ -826,8 +1015,8 @@ function Fo(e) {
|
|
|
826
1015
|
}
|
|
827
1016
|
) });
|
|
828
1017
|
}
|
|
829
|
-
function
|
|
830
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1018
|
+
function fs(e) {
|
|
1019
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
831
1020
|
"path",
|
|
832
1021
|
{
|
|
833
1022
|
d: "M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",
|
|
@@ -837,8 +1026,8 @@ function Go(e) {
|
|
|
837
1026
|
}
|
|
838
1027
|
) });
|
|
839
1028
|
}
|
|
840
|
-
function
|
|
841
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1029
|
+
function ps(e) {
|
|
1030
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
842
1031
|
"path",
|
|
843
1032
|
{
|
|
844
1033
|
d: "M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",
|
|
@@ -848,8 +1037,8 @@ function Uo(e) {
|
|
|
848
1037
|
}
|
|
849
1038
|
) });
|
|
850
1039
|
}
|
|
851
|
-
function
|
|
852
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1040
|
+
function Cs(e) {
|
|
1041
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
853
1042
|
"path",
|
|
854
1043
|
{
|
|
855
1044
|
d: "M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",
|
|
@@ -859,8 +1048,8 @@ function Ko(e) {
|
|
|
859
1048
|
}
|
|
860
1049
|
) });
|
|
861
1050
|
}
|
|
862
|
-
function
|
|
863
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1051
|
+
function gs(e) {
|
|
1052
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
864
1053
|
"path",
|
|
865
1054
|
{
|
|
866
1055
|
d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
|
|
@@ -870,8 +1059,8 @@ function Xo(e) {
|
|
|
870
1059
|
}
|
|
871
1060
|
) });
|
|
872
1061
|
}
|
|
873
|
-
function
|
|
874
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1062
|
+
function ms(e) {
|
|
1063
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
875
1064
|
"path",
|
|
876
1065
|
{
|
|
877
1066
|
d: "M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",
|
|
@@ -881,8 +1070,8 @@ function Yo(e) {
|
|
|
881
1070
|
}
|
|
882
1071
|
) });
|
|
883
1072
|
}
|
|
884
|
-
function
|
|
885
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1073
|
+
function vs(e) {
|
|
1074
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
886
1075
|
"path",
|
|
887
1076
|
{
|
|
888
1077
|
d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
|
|
@@ -892,8 +1081,8 @@ function Qo(e) {
|
|
|
892
1081
|
}
|
|
893
1082
|
) });
|
|
894
1083
|
}
|
|
895
|
-
function
|
|
896
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1084
|
+
function hs(e) {
|
|
1085
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
897
1086
|
"path",
|
|
898
1087
|
{
|
|
899
1088
|
d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
|
|
@@ -903,8 +1092,8 @@ function Jo(e) {
|
|
|
903
1092
|
}
|
|
904
1093
|
) });
|
|
905
1094
|
}
|
|
906
|
-
function
|
|
907
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1095
|
+
function ws(e) {
|
|
1096
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
908
1097
|
"path",
|
|
909
1098
|
{
|
|
910
1099
|
d: "M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",
|
|
@@ -914,8 +1103,8 @@ function e2(e) {
|
|
|
914
1103
|
}
|
|
915
1104
|
) });
|
|
916
1105
|
}
|
|
917
|
-
function
|
|
918
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1106
|
+
function bs(e) {
|
|
1107
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
919
1108
|
"path",
|
|
920
1109
|
{
|
|
921
1110
|
d: "M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",
|
|
@@ -925,8 +1114,8 @@ function t2(e) {
|
|
|
925
1114
|
}
|
|
926
1115
|
) });
|
|
927
1116
|
}
|
|
928
|
-
function
|
|
929
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1117
|
+
function ys(e) {
|
|
1118
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
930
1119
|
"path",
|
|
931
1120
|
{
|
|
932
1121
|
d: "M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",
|
|
@@ -936,7 +1125,7 @@ function n2(e) {
|
|
|
936
1125
|
}
|
|
937
1126
|
) });
|
|
938
1127
|
}
|
|
939
|
-
function
|
|
1128
|
+
function eo(e) {
|
|
940
1129
|
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(
|
|
941
1130
|
"path",
|
|
942
1131
|
{
|
|
@@ -945,8 +1134,8 @@ function Dn(e) {
|
|
|
945
1134
|
}
|
|
946
1135
|
) });
|
|
947
1136
|
}
|
|
948
|
-
function
|
|
949
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1137
|
+
function to(e) {
|
|
1138
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
950
1139
|
"path",
|
|
951
1140
|
{
|
|
952
1141
|
d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",
|
|
@@ -956,8 +1145,8 @@ function Sn(e) {
|
|
|
956
1145
|
}
|
|
957
1146
|
) });
|
|
958
1147
|
}
|
|
959
|
-
function
|
|
960
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1148
|
+
function no(e) {
|
|
1149
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
961
1150
|
"path",
|
|
962
1151
|
{
|
|
963
1152
|
d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
|
|
@@ -967,8 +1156,8 @@ function Tn(e) {
|
|
|
967
1156
|
}
|
|
968
1157
|
) });
|
|
969
1158
|
}
|
|
970
|
-
function
|
|
971
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
1159
|
+
function oo(e) {
|
|
1160
|
+
return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
|
|
972
1161
|
"path",
|
|
973
1162
|
{
|
|
974
1163
|
d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",
|
|
@@ -978,94 +1167,94 @@ function Zn(e) {
|
|
|
978
1167
|
}
|
|
979
1168
|
) });
|
|
980
1169
|
}
|
|
981
|
-
const
|
|
982
|
-
message:
|
|
983
|
-
info:
|
|
984
|
-
warning:
|
|
985
|
-
alert:
|
|
986
|
-
icon:
|
|
987
|
-
body:
|
|
988
|
-
title:
|
|
989
|
-
text:
|
|
990
|
-
},
|
|
991
|
-
info: /* @__PURE__ */ n(
|
|
992
|
-
warning: /* @__PURE__ */ n(
|
|
993
|
-
alert: /* @__PURE__ */ n(
|
|
994
|
-
},
|
|
1170
|
+
const so = "_message_1522x_14", ro = "_info_1522x_44", lo = "_warning_1522x_49", co = "_alert_1522x_56", io = "_icon_1522x_63", ao = "_body_1522x_74", uo = "_title_1522x_83", _o = "_text_1522x_90", Q = {
|
|
1171
|
+
message: so,
|
|
1172
|
+
info: ro,
|
|
1173
|
+
warning: lo,
|
|
1174
|
+
alert: co,
|
|
1175
|
+
icon: io,
|
|
1176
|
+
body: ao,
|
|
1177
|
+
title: uo,
|
|
1178
|
+
text: _o
|
|
1179
|
+
}, fo = {
|
|
1180
|
+
info: /* @__PURE__ */ n(to, {}),
|
|
1181
|
+
warning: /* @__PURE__ */ n(no, {}),
|
|
1182
|
+
alert: /* @__PURE__ */ n(oo, {})
|
|
1183
|
+
}, po = {
|
|
995
1184
|
info: { role: "status", live: "polite" },
|
|
996
1185
|
warning: { role: "status", live: "polite" },
|
|
997
1186
|
alert: { role: "alert" }
|
|
998
|
-
},
|
|
999
|
-
const
|
|
1000
|
-
return /* @__PURE__ */
|
|
1187
|
+
}, xs = H(function({ variant: t = "info", title: o, icon: s, className: r, children: l, ...c }, a) {
|
|
1188
|
+
const d = s === void 0 ? fo[t] : s, { role: g, live: i } = po[t];
|
|
1189
|
+
return /* @__PURE__ */ q(
|
|
1001
1190
|
"div",
|
|
1002
1191
|
{
|
|
1003
1192
|
...c,
|
|
1004
1193
|
ref: a,
|
|
1005
|
-
role:
|
|
1194
|
+
role: g,
|
|
1006
1195
|
"aria-live": i,
|
|
1007
|
-
className:
|
|
1196
|
+
className: v(Q.message, Q[t], r),
|
|
1008
1197
|
children: [
|
|
1009
|
-
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
o != null && /* @__PURE__ */ n("p", { className:
|
|
1012
|
-
l != null && /* @__PURE__ */ n("div", { className:
|
|
1198
|
+
d != null && /* @__PURE__ */ n("span", { className: Q.icon, "aria-hidden": "true", children: d }),
|
|
1199
|
+
/* @__PURE__ */ q("div", { className: Q.body, children: [
|
|
1200
|
+
o != null && /* @__PURE__ */ n("p", { className: Q.title, children: o }),
|
|
1201
|
+
l != null && /* @__PURE__ */ n("div", { className: Q.text, children: l })
|
|
1013
1202
|
] })
|
|
1014
1203
|
]
|
|
1015
1204
|
}
|
|
1016
1205
|
);
|
|
1017
|
-
}),
|
|
1018
|
-
dialog:
|
|
1019
|
-
inner:
|
|
1020
|
-
size4:
|
|
1021
|
-
title:
|
|
1022
|
-
closeX:
|
|
1206
|
+
}), Co = "_dialog_1qqku_2", go = "_inner_1qqku_34", mo = "_size4_1qqku_39", vo = "_title_1qqku_43", ho = "_closeX_1qqku_51", ae = {
|
|
1207
|
+
dialog: Co,
|
|
1208
|
+
inner: go,
|
|
1209
|
+
size4: mo,
|
|
1210
|
+
title: vo,
|
|
1211
|
+
closeX: ho
|
|
1023
1212
|
};
|
|
1024
|
-
let
|
|
1025
|
-
const
|
|
1026
|
-
const e =
|
|
1213
|
+
let me = 0;
|
|
1214
|
+
const Se = ne(null), _e = () => {
|
|
1215
|
+
const e = oe(Se);
|
|
1027
1216
|
if (!e) throw new Error("Dialog parts must be inside a Dialog");
|
|
1028
1217
|
return e;
|
|
1029
1218
|
};
|
|
1030
|
-
function
|
|
1031
|
-
return function({ open: o, onOpenChange:
|
|
1032
|
-
const [l, c] =
|
|
1033
|
-
a || c(
|
|
1034
|
-
}, i =
|
|
1035
|
-
return /* @__PURE__ */ n(
|
|
1219
|
+
function Te(e) {
|
|
1220
|
+
return function({ open: o, onOpenChange: s, children: r }) {
|
|
1221
|
+
const [l, c] = T(!1), a = o !== void 0, d = a ? o : l, g = (C) => {
|
|
1222
|
+
a || c(C), s == null || s(C);
|
|
1223
|
+
}, i = V(), p = V(), [h, f] = T(!1);
|
|
1224
|
+
return /* @__PURE__ */ n(Se.Provider, { value: { open: d, setOpen: g, titleId: i, descId: p, alert: e, hasDesc: h, setHasDesc: f }, children: r });
|
|
1036
1225
|
};
|
|
1037
1226
|
}
|
|
1038
|
-
const
|
|
1039
|
-
if (!
|
|
1227
|
+
const wo = Te(!1), Ee = (e, t) => {
|
|
1228
|
+
if (!te(e)) return e;
|
|
1040
1229
|
const o = e;
|
|
1041
|
-
return
|
|
1042
|
-
onClick: (
|
|
1043
|
-
var
|
|
1044
|
-
(l = (
|
|
1230
|
+
return ve(o, {
|
|
1231
|
+
onClick: (s) => {
|
|
1232
|
+
var r, l;
|
|
1233
|
+
(l = (r = o.props).onClick) == null || l.call(r, s), t();
|
|
1045
1234
|
}
|
|
1046
1235
|
});
|
|
1047
1236
|
};
|
|
1048
|
-
function
|
|
1237
|
+
function Ze({
|
|
1049
1238
|
children: e
|
|
1050
1239
|
}) {
|
|
1051
|
-
const t =
|
|
1052
|
-
return /* @__PURE__ */ n(
|
|
1240
|
+
const t = _e();
|
|
1241
|
+
return /* @__PURE__ */ n(ue, { children: Ee(e, () => t.setOpen(!0)) });
|
|
1053
1242
|
}
|
|
1054
|
-
function
|
|
1243
|
+
function xe({
|
|
1055
1244
|
children: e
|
|
1056
1245
|
}) {
|
|
1057
|
-
const t =
|
|
1058
|
-
return /* @__PURE__ */ n(
|
|
1246
|
+
const t = _e();
|
|
1247
|
+
return /* @__PURE__ */ n(ue, { children: Ee(e, () => t.setOpen(!1)) });
|
|
1059
1248
|
}
|
|
1060
|
-
function
|
|
1061
|
-
const c =
|
|
1062
|
-
return
|
|
1249
|
+
function Ve({ size: e = "3", maxWidth: t, className: o, style: s, children: r, ...l }) {
|
|
1250
|
+
const c = _e(), a = M(null), d = M(!1), g = M(!1);
|
|
1251
|
+
return Z(() => {
|
|
1063
1252
|
const i = a.current;
|
|
1064
1253
|
i && (c.open && !i.open ? i.showModal() : !c.open && i.open && i.close());
|
|
1065
|
-
}, [c.open]),
|
|
1254
|
+
}, [c.open]), Z(() => {
|
|
1066
1255
|
if (c.open)
|
|
1067
|
-
return
|
|
1068
|
-
|
|
1256
|
+
return me += 1, me === 1 && (document.body.style.overflow = "hidden"), () => {
|
|
1257
|
+
me -= 1, me === 0 && (document.body.style.overflow = "");
|
|
1069
1258
|
};
|
|
1070
1259
|
}, [c.open]), /* @__PURE__ */ n(
|
|
1071
1260
|
"dialog",
|
|
@@ -1075,15 +1264,15 @@ function Me({ size: e = "3", maxWidth: t, className: o, style: r, children: s, .
|
|
|
1075
1264
|
role: c.alert ? "alertdialog" : void 0,
|
|
1076
1265
|
"aria-labelledby": c.titleId,
|
|
1077
1266
|
"aria-describedby": c.hasDesc ? c.descId : void 0,
|
|
1078
|
-
className:
|
|
1079
|
-
style: { ...t ? { maxWidth: t } : null, ...
|
|
1267
|
+
className: v(ae.dialog, "spDialog", e === "4" && ae.size4, o),
|
|
1268
|
+
style: { ...t ? { maxWidth: t } : null, ...s },
|
|
1080
1269
|
onKeyDownCapture: (i) => {
|
|
1081
|
-
var
|
|
1082
|
-
i.key === "Escape" && ((
|
|
1270
|
+
var p, h;
|
|
1271
|
+
i.key === "Escape" && ((p = a.current) != null && p.querySelector("dialog[open]") || (h = a.current) != null && h.querySelector('[role="listbox"]:not([hidden])') && (d.current = !0));
|
|
1083
1272
|
},
|
|
1084
1273
|
onCancel: (i) => {
|
|
1085
|
-
if (i.preventDefault(),
|
|
1086
|
-
|
|
1274
|
+
if (i.preventDefault(), d.current) {
|
|
1275
|
+
d.current = !1;
|
|
1087
1276
|
return;
|
|
1088
1277
|
}
|
|
1089
1278
|
c.setOpen(!1);
|
|
@@ -1092,99 +1281,99 @@ function Me({ size: e = "3", maxWidth: t, className: o, style: r, children: s, .
|
|
|
1092
1281
|
c.open && c.setOpen(!1);
|
|
1093
1282
|
},
|
|
1094
1283
|
onPointerDown: (i) => {
|
|
1095
|
-
|
|
1284
|
+
g.current = i.target === a.current;
|
|
1096
1285
|
},
|
|
1097
1286
|
onClick: (i) => {
|
|
1098
|
-
!c.alert && i.target === a.current &&
|
|
1287
|
+
!c.alert && i.target === a.current && g.current && c.setOpen(!1);
|
|
1099
1288
|
},
|
|
1100
|
-
children: /* @__PURE__ */
|
|
1289
|
+
children: /* @__PURE__ */ q("div", { className: ae.inner, children: [
|
|
1101
1290
|
!c.alert && /* @__PURE__ */ n(
|
|
1102
1291
|
"button",
|
|
1103
1292
|
{
|
|
1104
1293
|
type: "button",
|
|
1105
|
-
className:
|
|
1294
|
+
className: ae.closeX,
|
|
1106
1295
|
"aria-label": "Close",
|
|
1107
1296
|
onClick: () => c.setOpen(!1),
|
|
1108
|
-
children: /* @__PURE__ */ n(
|
|
1297
|
+
children: /* @__PURE__ */ n(eo, { width: 16, height: 16 })
|
|
1109
1298
|
}
|
|
1110
1299
|
),
|
|
1111
|
-
|
|
1300
|
+
r
|
|
1112
1301
|
] })
|
|
1113
1302
|
}
|
|
1114
1303
|
);
|
|
1115
1304
|
}
|
|
1116
|
-
function
|
|
1117
|
-
const o =
|
|
1118
|
-
return /* @__PURE__ */ n(
|
|
1305
|
+
function je({ className: e, ...t }) {
|
|
1306
|
+
const o = _e();
|
|
1307
|
+
return /* @__PURE__ */ n(ht, { as: "h2", size: "5", ...t, id: o.titleId, className: v(ae.title, e) });
|
|
1119
1308
|
}
|
|
1120
|
-
function
|
|
1121
|
-
const t =
|
|
1122
|
-
return
|
|
1309
|
+
function Oe(e) {
|
|
1310
|
+
const t = _e(), { setHasDesc: o } = t;
|
|
1311
|
+
return he(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(it, { as: "p", ...e, id: t.descId });
|
|
1123
1312
|
}
|
|
1124
|
-
const
|
|
1125
|
-
Trigger:
|
|
1126
|
-
Close:
|
|
1127
|
-
Content:
|
|
1128
|
-
Title:
|
|
1129
|
-
Description:
|
|
1130
|
-
}),
|
|
1131
|
-
Trigger:
|
|
1132
|
-
Content:
|
|
1133
|
-
Title:
|
|
1134
|
-
Description:
|
|
1135
|
-
Cancel:
|
|
1136
|
-
Action:
|
|
1137
|
-
}),
|
|
1138
|
-
menu:
|
|
1139
|
-
label:
|
|
1140
|
-
item:
|
|
1141
|
-
danger:
|
|
1142
|
-
separator:
|
|
1143
|
-
},
|
|
1144
|
-
const e =
|
|
1313
|
+
const ks = Object.assign(wo, {
|
|
1314
|
+
Trigger: Ze,
|
|
1315
|
+
Close: xe,
|
|
1316
|
+
Content: Ve,
|
|
1317
|
+
Title: je,
|
|
1318
|
+
Description: Oe
|
|
1319
|
+
}), bo = xe, yo = xe, $s = Object.assign(Te(!0), {
|
|
1320
|
+
Trigger: Ze,
|
|
1321
|
+
Content: Ve,
|
|
1322
|
+
Title: je,
|
|
1323
|
+
Description: Oe,
|
|
1324
|
+
Cancel: bo,
|
|
1325
|
+
Action: yo
|
|
1326
|
+
}), xo = "_menu_1hwyv_1", ko = "_label_1hwyv_16", $o = "_item_1hwyv_26", Lo = "_danger_1hwyv_45", qo = "_separator_1hwyv_49", de = {
|
|
1327
|
+
menu: xo,
|
|
1328
|
+
label: ko,
|
|
1329
|
+
item: $o,
|
|
1330
|
+
danger: Lo,
|
|
1331
|
+
separator: qo
|
|
1332
|
+
}, Ae = ne(null), zo = () => {
|
|
1333
|
+
const e = oe(Ae);
|
|
1145
1334
|
if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
|
|
1146
1335
|
return e;
|
|
1147
|
-
},
|
|
1148
|
-
const e =
|
|
1336
|
+
}, Be = ne(null), Ro = () => {
|
|
1337
|
+
const e = oe(Be);
|
|
1149
1338
|
if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
|
|
1150
1339
|
return e;
|
|
1151
1340
|
};
|
|
1152
|
-
function
|
|
1341
|
+
function Mo(e) {
|
|
1153
1342
|
return e.current ? (e.current = !1, !0) : !1;
|
|
1154
1343
|
}
|
|
1155
|
-
function
|
|
1344
|
+
function Re(e) {
|
|
1156
1345
|
e.current = !0;
|
|
1157
1346
|
}
|
|
1158
|
-
function
|
|
1159
|
-
const [
|
|
1160
|
-
return
|
|
1161
|
-
var
|
|
1162
|
-
const
|
|
1163
|
-
if (
|
|
1164
|
-
if (
|
|
1165
|
-
const
|
|
1166
|
-
if (
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1347
|
+
function No({ label: e, align: t = "start", children: o, ...s }) {
|
|
1348
|
+
const [r, l] = T(!1), c = V(), a = M(null), d = M(null), g = M(!1), i = M(!1), [p, h] = T(null);
|
|
1349
|
+
return he(() => {
|
|
1350
|
+
var C;
|
|
1351
|
+
const f = d.current;
|
|
1352
|
+
if (f)
|
|
1353
|
+
if (r) {
|
|
1354
|
+
const w = a.current;
|
|
1355
|
+
if (w) {
|
|
1356
|
+
const y = w.getBoundingClientRect(), b = t === "end" ? "auto" : y.left, $ = t === "end" ? window.innerWidth - y.right : "auto";
|
|
1357
|
+
h({ top: y.bottom + 6, left: b, right: $ });
|
|
1169
1358
|
}
|
|
1170
|
-
|
|
1171
|
-
} else
|
|
1172
|
-
}, [
|
|
1173
|
-
if (!
|
|
1174
|
-
const
|
|
1175
|
-
return window.addEventListener("resize",
|
|
1176
|
-
}, [
|
|
1359
|
+
f.showPopover(), (C = f.querySelector('[role="menuitem"]')) == null || C.focus();
|
|
1360
|
+
} else f.matches(":popover-open") && f.hidePopover();
|
|
1361
|
+
}, [r, t]), Z(() => {
|
|
1362
|
+
if (!r) return;
|
|
1363
|
+
const f = () => l(!1);
|
|
1364
|
+
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
1365
|
+
}, [r]), /* @__PURE__ */ n(Ae.Provider, { value: { open: r, setOpen: l, menuId: c }, children: /* @__PURE__ */ q(Be.Provider, { value: i, children: [
|
|
1177
1366
|
/* @__PURE__ */ n(
|
|
1178
|
-
|
|
1367
|
+
j1,
|
|
1179
1368
|
{
|
|
1180
|
-
...
|
|
1369
|
+
...s,
|
|
1181
1370
|
ref: a,
|
|
1182
1371
|
"aria-haspopup": "menu",
|
|
1183
|
-
"aria-expanded":
|
|
1372
|
+
"aria-expanded": r,
|
|
1184
1373
|
"aria-controls": c,
|
|
1185
|
-
onClick: (
|
|
1186
|
-
var
|
|
1187
|
-
(
|
|
1374
|
+
onClick: (f) => {
|
|
1375
|
+
var C;
|
|
1376
|
+
(C = s.onClick) == null || C.call(s, f), !Mo(g) && l(!r);
|
|
1188
1377
|
},
|
|
1189
1378
|
children: e
|
|
1190
1379
|
}
|
|
@@ -1192,116 +1381,116 @@ function uo({ label: e, align: t = "start", children: o, ...r }) {
|
|
|
1192
1381
|
/* @__PURE__ */ n(
|
|
1193
1382
|
"div",
|
|
1194
1383
|
{
|
|
1195
|
-
ref:
|
|
1384
|
+
ref: d,
|
|
1196
1385
|
id: c,
|
|
1197
1386
|
role: "menu",
|
|
1198
1387
|
popover: "auto",
|
|
1199
|
-
className:
|
|
1200
|
-
style:
|
|
1201
|
-
top:
|
|
1202
|
-
left:
|
|
1203
|
-
right:
|
|
1388
|
+
className: de.menu,
|
|
1389
|
+
style: p ? {
|
|
1390
|
+
top: p.top,
|
|
1391
|
+
left: p.left === "auto" ? "auto" : p.left,
|
|
1392
|
+
right: p.right === "auto" ? "auto" : p.right
|
|
1204
1393
|
} : void 0,
|
|
1205
|
-
onToggle: (
|
|
1206
|
-
if (
|
|
1207
|
-
const
|
|
1208
|
-
i.current = !1,
|
|
1209
|
-
|
|
1210
|
-
}, 300)),
|
|
1394
|
+
onToggle: (f) => {
|
|
1395
|
+
if (f.nativeEvent.newState === "closed") {
|
|
1396
|
+
const C = i.current;
|
|
1397
|
+
i.current = !1, C || (g.current = !0, setTimeout(() => {
|
|
1398
|
+
g.current = !1;
|
|
1399
|
+
}, 300)), r && l(!1);
|
|
1211
1400
|
}
|
|
1212
1401
|
},
|
|
1213
|
-
onKeyDown: (
|
|
1214
|
-
var
|
|
1215
|
-
const
|
|
1216
|
-
((
|
|
1217
|
-
),
|
|
1218
|
-
|
|
1402
|
+
onKeyDown: (f) => {
|
|
1403
|
+
var y, b, $, N, D, z;
|
|
1404
|
+
const C = Array.from(
|
|
1405
|
+
((y = d.current) == null ? void 0 : y.querySelectorAll('[role="menuitem"]')) ?? []
|
|
1406
|
+
), w = C.indexOf(document.activeElement);
|
|
1407
|
+
f.key === "ArrowDown" ? (f.preventDefault(), (b = C[Math.min(w + 1, C.length - 1)]) == null || b.focus()) : f.key === "ArrowUp" ? (f.preventDefault(), ($ = C[Math.max(w - 1, 0)]) == null || $.focus()) : f.key === "Home" ? (f.preventDefault(), (N = C[0]) == null || N.focus()) : f.key === "End" ? (f.preventDefault(), (D = C[C.length - 1]) == null || D.focus()) : f.key === "Escape" && (l(!1), (z = a.current) == null || z.focus());
|
|
1219
1408
|
},
|
|
1220
1409
|
children: o
|
|
1221
1410
|
}
|
|
1222
1411
|
)
|
|
1223
1412
|
] }) });
|
|
1224
1413
|
}
|
|
1225
|
-
function
|
|
1414
|
+
function Do({
|
|
1226
1415
|
children: e
|
|
1227
1416
|
}) {
|
|
1228
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1417
|
+
return /* @__PURE__ */ n("div", { className: de.label, children: e });
|
|
1229
1418
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1419
|
+
function Io({ asChild: e, color: t, onSelect: o, children: s }) {
|
|
1420
|
+
const r = zo(), l = Ro(), c = v(de.item, t === "danger" && de.danger), a = () => {
|
|
1421
|
+
Re(l), r.setOpen(!1), o == null || o();
|
|
1233
1422
|
};
|
|
1234
|
-
if (e &&
|
|
1235
|
-
const
|
|
1236
|
-
className:
|
|
1423
|
+
if (e && te(s)) {
|
|
1424
|
+
const d = s, {
|
|
1425
|
+
className: g,
|
|
1237
1426
|
onClick: i,
|
|
1238
|
-
children:
|
|
1239
|
-
role:
|
|
1240
|
-
tabIndex:
|
|
1241
|
-
...
|
|
1242
|
-
} =
|
|
1243
|
-
return
|
|
1244
|
-
|
|
1427
|
+
children: p,
|
|
1428
|
+
role: h,
|
|
1429
|
+
tabIndex: f,
|
|
1430
|
+
...C
|
|
1431
|
+
} = d.props, w = d.ref;
|
|
1432
|
+
return ye(
|
|
1433
|
+
d.type,
|
|
1245
1434
|
{
|
|
1246
|
-
key:
|
|
1247
|
-
ref:
|
|
1435
|
+
key: d.key,
|
|
1436
|
+
ref: w,
|
|
1248
1437
|
role: "menuitem",
|
|
1249
1438
|
tabIndex: -1,
|
|
1250
|
-
...
|
|
1251
|
-
className:
|
|
1252
|
-
onClick: (
|
|
1253
|
-
i == null || i(
|
|
1439
|
+
...C,
|
|
1440
|
+
className: v(c, g),
|
|
1441
|
+
onClick: (y) => {
|
|
1442
|
+
i == null || i(y), Re(l), r.setOpen(!1);
|
|
1254
1443
|
}
|
|
1255
1444
|
},
|
|
1256
|
-
|
|
1445
|
+
p
|
|
1257
1446
|
);
|
|
1258
1447
|
}
|
|
1259
|
-
return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: c, onClick: a, children:
|
|
1448
|
+
return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: c, onClick: a, children: s });
|
|
1260
1449
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return /* @__PURE__ */ n("div", { role: "separator", className:
|
|
1450
|
+
function Ho() {
|
|
1451
|
+
return /* @__PURE__ */ n("div", { role: "separator", className: de.separator });
|
|
1263
1452
|
}
|
|
1264
|
-
const
|
|
1265
|
-
list:
|
|
1266
|
-
trigger:
|
|
1267
|
-
},
|
|
1268
|
-
const e =
|
|
1453
|
+
const Ls = Object.assign(No, { Item: Io, Separator: Ho, Label: Do }), So = "_list_1hc3r_19", To = "_trigger_1hc3r_28", We = {
|
|
1454
|
+
list: So,
|
|
1455
|
+
trigger: To
|
|
1456
|
+
}, Fe = ne(null), Pe = () => {
|
|
1457
|
+
const e = oe(Fe);
|
|
1269
1458
|
if (!e) throw new Error("Tabs parts must be inside a Tabs");
|
|
1270
1459
|
return e;
|
|
1271
1460
|
};
|
|
1272
|
-
function
|
|
1273
|
-
const
|
|
1274
|
-
return /* @__PURE__ */ n(
|
|
1461
|
+
function Eo({ value: e, onValueChange: t, className: o, children: s }) {
|
|
1462
|
+
const r = V();
|
|
1463
|
+
return /* @__PURE__ */ n(Fe.Provider, { value: { value: e, onValueChange: t, id: r }, children: /* @__PURE__ */ n("div", { className: o, children: s }) });
|
|
1275
1464
|
}
|
|
1276
|
-
function
|
|
1465
|
+
function Zo({
|
|
1277
1466
|
children: e
|
|
1278
1467
|
}) {
|
|
1279
1468
|
return /* @__PURE__ */ n(
|
|
1280
1469
|
"div",
|
|
1281
1470
|
{
|
|
1282
1471
|
role: "tablist",
|
|
1283
|
-
className:
|
|
1472
|
+
className: v(We.list, "spTabsList"),
|
|
1284
1473
|
onKeyDown: (t) => {
|
|
1285
1474
|
const o = Array.from(
|
|
1286
1475
|
t.currentTarget.querySelectorAll('[role="tab"]')
|
|
1287
|
-
),
|
|
1288
|
-
if (
|
|
1476
|
+
), s = o.indexOf(document.activeElement);
|
|
1477
|
+
if (s !== -1) {
|
|
1289
1478
|
if (t.key === "ArrowRight") {
|
|
1290
1479
|
t.preventDefault();
|
|
1291
|
-
const
|
|
1292
|
-
|
|
1480
|
+
const r = o[(s + 1) % o.length];
|
|
1481
|
+
r.focus(), r.click();
|
|
1293
1482
|
} else if (t.key === "ArrowLeft") {
|
|
1294
1483
|
t.preventDefault();
|
|
1295
|
-
const
|
|
1296
|
-
|
|
1484
|
+
const r = o[(s - 1 + o.length) % o.length];
|
|
1485
|
+
r.focus(), r.click();
|
|
1297
1486
|
} else if (t.key === "Home") {
|
|
1298
1487
|
t.preventDefault();
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1488
|
+
const r = o[0];
|
|
1489
|
+
r.focus(), r.click();
|
|
1301
1490
|
} else if (t.key === "End") {
|
|
1302
1491
|
t.preventDefault();
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1492
|
+
const r = o[o.length - 1];
|
|
1493
|
+
r.focus(), r.click();
|
|
1305
1494
|
}
|
|
1306
1495
|
}
|
|
1307
1496
|
},
|
|
@@ -1309,80 +1498,81 @@ function vo({
|
|
|
1309
1498
|
}
|
|
1310
1499
|
);
|
|
1311
1500
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const
|
|
1501
|
+
function Vo({ value: e, className: t, children: o, ...s }) {
|
|
1502
|
+
const r = Pe(), l = r.value === e;
|
|
1314
1503
|
return /* @__PURE__ */ n(
|
|
1315
1504
|
"button",
|
|
1316
1505
|
{
|
|
1317
|
-
...
|
|
1506
|
+
...s,
|
|
1318
1507
|
type: "button",
|
|
1319
1508
|
role: "tab",
|
|
1320
|
-
id: `${
|
|
1509
|
+
id: `${r.id}-tab-${e}`,
|
|
1321
1510
|
"aria-selected": l,
|
|
1322
|
-
"aria-controls": `${
|
|
1511
|
+
"aria-controls": `${r.id}-panel-${e}`,
|
|
1323
1512
|
tabIndex: l ? 0 : -1,
|
|
1324
1513
|
"data-state": l ? "active" : "inactive",
|
|
1325
|
-
className:
|
|
1326
|
-
onClick: () =>
|
|
1514
|
+
className: v(We.trigger, "spTabsTrigger", t),
|
|
1515
|
+
onClick: () => r.onValueChange(e),
|
|
1327
1516
|
children: o
|
|
1328
1517
|
}
|
|
1329
1518
|
);
|
|
1330
1519
|
}
|
|
1331
|
-
function
|
|
1520
|
+
function jo({
|
|
1332
1521
|
value: e,
|
|
1333
1522
|
children: t
|
|
1334
1523
|
}) {
|
|
1335
|
-
const o =
|
|
1524
|
+
const o = Pe();
|
|
1336
1525
|
return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
|
|
1337
1526
|
}
|
|
1338
|
-
const
|
|
1527
|
+
const qs = Object.assign(Eo, { List: Zo, Trigger: Vo, Content: jo });
|
|
1339
1528
|
export {
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
Xo as
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1529
|
+
$s as AlertDialog,
|
|
1530
|
+
es as Autocomplete,
|
|
1531
|
+
Go as Badge,
|
|
1532
|
+
ys as BookmarkIcon,
|
|
1533
|
+
Fo as Box,
|
|
1534
|
+
j1 as Button,
|
|
1535
|
+
Uo as Card,
|
|
1536
|
+
rs as ChatBubbleIcon,
|
|
1537
|
+
ds as CheckIcon,
|
|
1538
|
+
hs as ChevronDownIcon,
|
|
1539
|
+
bs as ChevronLeftIcon,
|
|
1540
|
+
ws as ChevronRightIcon,
|
|
1541
|
+
vs as ChevronUpIcon,
|
|
1542
|
+
oo as CrossCircledIcon,
|
|
1543
|
+
ks as Dialog,
|
|
1544
|
+
Ls as DropdownMenu,
|
|
1545
|
+
us as EnterFullScreenIcon,
|
|
1546
|
+
no as ExclamationTriangleIcon,
|
|
1547
|
+
as as ExitFullScreenIcon,
|
|
1548
|
+
Wo as Flex,
|
|
1549
|
+
Po as Grid,
|
|
1550
|
+
ht as Heading,
|
|
1551
|
+
is as HeartFilledIcon,
|
|
1552
|
+
ms as HeartIcon,
|
|
1553
|
+
Yo as IconToggle,
|
|
1554
|
+
to as InfoCircledIcon,
|
|
1555
|
+
Bo as Link,
|
|
1556
|
+
Xo as Loader,
|
|
1557
|
+
gs as MagnifyingGlassIcon,
|
|
1558
|
+
xs as Message,
|
|
1559
|
+
Cs as MinusIcon,
|
|
1560
|
+
cs as Pencil1Icon,
|
|
1561
|
+
ps as PersonIcon,
|
|
1562
|
+
ls as PlusIcon,
|
|
1563
|
+
os as Progress,
|
|
1564
|
+
fs as QuestionMarkCircledIcon,
|
|
1565
|
+
ns as RadioGroup,
|
|
1566
|
+
Qo as Select,
|
|
1567
|
+
Ko as Separator,
|
|
1568
|
+
ss as Share2Icon,
|
|
1569
|
+
ts as Slider,
|
|
1570
|
+
qs as Tabs,
|
|
1571
|
+
it as Text,
|
|
1572
|
+
Jo as TextArea,
|
|
1573
|
+
qe as TextField,
|
|
1574
|
+
en as Tooltip,
|
|
1575
|
+
_s as TrashIcon,
|
|
1576
|
+
eo as XIcon
|
|
1387
1577
|
};
|
|
1388
1578
|
//# sourceMappingURL=index.js.map
|