@inkorange/space-ui 1.4.0 → 1.5.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 +4 -4
- package/dist/components/Autocomplete.d.ts +4 -3
- package/dist/components/Popover.d.ts +43 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +929 -821
- package/dist/index.js.map +1 -1
- package/dist/internal/showMeasured.d.ts +22 -0
- package/dist/space-ui.css +1 -1
- package/dist/tokens.css +4 -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 A, createElement as ze, isValidElement as se, cloneElement as ke, useId as F, useMemo as ne, useState as Z, useRef as z, useEffect as K, useLayoutEffect as he, useCallback as Le, createContext as re, useContext as le, Children as nt } from "react";
|
|
3
|
+
import { jsx as n, jsxs as M, Fragment as oe } from "react/jsx-runtime";
|
|
4
|
+
const ue = {
|
|
5
5
|
0: "0",
|
|
6
6
|
1: "var(--spacing-xs)",
|
|
7
7
|
2: "var(--spacing-sm)",
|
|
@@ -10,13 +10,13 @@ const re = {
|
|
|
10
10
|
5: "var(--spacing-lg)",
|
|
11
11
|
6: "var(--spacing-xl)"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function X({ 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
|
-
...s !== void 0 && { padding:
|
|
19
|
-
...r !== void 0 && { paddingBottom:
|
|
15
|
+
...e !== void 0 && { margin: ue[e] },
|
|
16
|
+
...t !== void 0 && { marginTop: ue[t] },
|
|
17
|
+
...o !== void 0 && { marginBottom: ue[o] },
|
|
18
|
+
...s !== void 0 && { padding: ue[s] },
|
|
19
|
+
...r !== void 0 && { paddingBottom: ue[r] },
|
|
20
20
|
...l
|
|
21
21
|
};
|
|
22
22
|
return Object.keys(c).length > 0 ? c : void 0;
|
|
@@ -24,211 +24,211 @@ function P({ m: e, mt: t, mb: o, p: s, pb: r }, l) {
|
|
|
24
24
|
function m(...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 ot = "_text_4vcq4_1", st = "_size1_4vcq4_5", rt = "_size2_4vcq4_11", lt = "_size3_4vcq4_16", ct = "_size4_4vcq4_21", at = "_size5_4vcq4_27", it = "_size6_4vcq4_33", ut = "_medium_4vcq4_39", dt = "_bold_4vcq4_43", ft = "_colorMuted_4vcq4_47", _t = "_colorDanger_4vcq4_51", pt = "_colorSuccess_4vcq4_55", gt = "_colorWarning_4vcq4_59", we = {
|
|
28
|
+
text: ot,
|
|
29
|
+
size1: st,
|
|
30
|
+
size2: rt,
|
|
31
|
+
size3: lt,
|
|
32
|
+
size4: ct,
|
|
33
|
+
size5: at,
|
|
34
|
+
size6: it,
|
|
35
|
+
medium: ut,
|
|
36
|
+
bold: dt,
|
|
37
|
+
colorMuted: ft,
|
|
38
|
+
colorDanger: _t,
|
|
39
|
+
colorSuccess: pt,
|
|
40
|
+
colorWarning: gt
|
|
41
|
+
}, Ct = A(function({ as: t = "span", size: o, weight: s, color: r, className: l, style: c, m: u, mt: d, mb: _, p: a, pb: g, ...v }, f) {
|
|
42
|
+
return ze(t, {
|
|
43
43
|
...v,
|
|
44
|
-
ref:
|
|
44
|
+
ref: f,
|
|
45
45
|
className: m(
|
|
46
|
-
|
|
47
|
-
o &&
|
|
48
|
-
s &&
|
|
49
|
-
r &&
|
|
46
|
+
we.text,
|
|
47
|
+
o && we[`size${o}`],
|
|
48
|
+
s && we[s],
|
|
49
|
+
r && we[`color${r[0].toUpperCase()}${r.slice(1)}`],
|
|
50
50
|
l
|
|
51
51
|
),
|
|
52
|
-
style:
|
|
52
|
+
style: X({ m: u, mt: d, mb: _, p: a, pb: g }, 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
|
|
54
|
+
}), mt = "_heading_vs4zk_1", ht = "_size4_vs4zk_7", vt = "_size5_vs4zk_13", wt = "_size6_vs4zk_19", bt = "_size7_vs4zk_25", yt = "_size8_vs4zk_31", xt = "_size9_vs4zk_37", $t = "_colorMuted_vs4zk_43", Lt = "_colorDanger_vs4zk_47", kt = "_alignCenter_vs4zk_51", de = {
|
|
55
|
+
heading: mt,
|
|
56
|
+
size4: ht,
|
|
57
|
+
size5: vt,
|
|
58
|
+
size6: wt,
|
|
59
|
+
size7: bt,
|
|
60
|
+
size8: yt,
|
|
61
|
+
size9: xt,
|
|
62
|
+
colorMuted: $t,
|
|
63
|
+
colorDanger: Lt,
|
|
64
|
+
alignCenter: kt
|
|
65
|
+
}, Mt = A(function({ as: t = "h2", size: o, color: s, align: r, className: l, style: c, m: u, mt: d, mb: _, p: a, pb: g, ...v }, f) {
|
|
66
|
+
return ze(t, {
|
|
67
67
|
...v,
|
|
68
|
-
ref:
|
|
68
|
+
ref: f,
|
|
69
69
|
className: m(
|
|
70
|
-
|
|
71
|
-
o &&
|
|
72
|
-
s === "muted" &&
|
|
73
|
-
s === "danger" &&
|
|
74
|
-
r === "center" &&
|
|
70
|
+
de.heading,
|
|
71
|
+
o && de[`size${o}`],
|
|
72
|
+
s === "muted" && de.colorMuted,
|
|
73
|
+
s === "danger" && de.colorDanger,
|
|
74
|
+
r === "center" && de.alignCenter,
|
|
75
75
|
l
|
|
76
76
|
),
|
|
77
|
-
style:
|
|
77
|
+
style: X({ m: u, mt: d, mb: _, p: a, pb: g }, c)
|
|
78
78
|
});
|
|
79
|
-
}),
|
|
80
|
-
link:
|
|
81
|
-
size1:
|
|
82
|
-
size2:
|
|
83
|
-
size3:
|
|
84
|
-
},
|
|
85
|
-
const
|
|
86
|
-
if (t &&
|
|
79
|
+
}), Nt = "_link_1qa7j_1", Rt = "_size1_1qa7j_10", zt = "_size2_1qa7j_16", qt = "_size3_1qa7j_21", De = {
|
|
80
|
+
link: Nt,
|
|
81
|
+
size1: Rt,
|
|
82
|
+
size2: zt,
|
|
83
|
+
size3: qt
|
|
84
|
+
}, ds = A(function({ asChild: t, size: o, className: s, style: r, m: l, mt: c, mb: u, p: d, pb: _, children: a, ...g }, v) {
|
|
85
|
+
const f = m(De.link, o && De[`size${o}`], s), C = X({ m: l, mt: c, mb: u, p: d, pb: _ }, r);
|
|
86
|
+
if (t && se(a)) {
|
|
87
87
|
const b = a;
|
|
88
|
-
return
|
|
89
|
-
...
|
|
90
|
-
className: m(
|
|
91
|
-
style: { ...
|
|
88
|
+
return ke(b, {
|
|
89
|
+
...g,
|
|
90
|
+
className: m(f, b.props.className),
|
|
91
|
+
style: { ...C, ...b.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
|
-
s &&
|
|
121
|
-
r &&
|
|
122
|
-
l &&
|
|
123
|
-
c &&
|
|
124
|
-
|
|
125
|
-
),
|
|
126
|
-
if (t &&
|
|
127
|
-
const
|
|
128
|
-
return
|
|
94
|
+
return /* @__PURE__ */ n("a", { ...g, ref: v, className: f, style: C, children: a });
|
|
95
|
+
}), Dt = "_flex_v4ziu_1", It = "_gap1_v4ziu_5", Ht = "_gap2_v4ziu_9", Tt = "_gap3_v4ziu_13", Et = "_gap4_v4ziu_17", St = "_gap5_v4ziu_21", Zt = "_gap6_v4ziu_25", At = "_directionRow_v4ziu_29", jt = "_directionColumn_v4ziu_33", Vt = "_alignStart_v4ziu_37", Ot = "_alignCenter_v4ziu_41", Bt = "_alignEnd_v4ziu_45", Wt = "_alignBaseline_v4ziu_49", Ft = "_alignStretch_v4ziu_53", Pt = "_justifyStart_v4ziu_57", Kt = "_justifyCenter_v4ziu_61", Gt = "_justifyEnd_v4ziu_65", Ut = "_justifyBetween_v4ziu_69", Xt = "_wrapWrap_v4ziu_73", Yt = "_wrapNowrap_v4ziu_77", Y = {
|
|
96
|
+
flex: Dt,
|
|
97
|
+
gap1: It,
|
|
98
|
+
gap2: Ht,
|
|
99
|
+
gap3: Tt,
|
|
100
|
+
gap4: Et,
|
|
101
|
+
gap5: St,
|
|
102
|
+
gap6: Zt,
|
|
103
|
+
directionRow: At,
|
|
104
|
+
directionColumn: jt,
|
|
105
|
+
alignStart: Vt,
|
|
106
|
+
alignCenter: Ot,
|
|
107
|
+
alignEnd: Bt,
|
|
108
|
+
alignBaseline: Wt,
|
|
109
|
+
alignStretch: Ft,
|
|
110
|
+
justifyStart: Pt,
|
|
111
|
+
justifyCenter: Kt,
|
|
112
|
+
justifyEnd: Gt,
|
|
113
|
+
justifyBetween: Ut,
|
|
114
|
+
wrapWrap: Xt,
|
|
115
|
+
wrapNowrap: Yt
|
|
116
|
+
}, be = (e) => e[0].toUpperCase() + e.slice(1), fs = A(function({ asChild: t, gap: o, direction: s, align: r, justify: l, wrap: c, className: u, style: d, m: _, mt: a, mb: g, p: v, pb: f, children: C, ...b }, $) {
|
|
117
|
+
const k = m(
|
|
118
|
+
Y.flex,
|
|
119
|
+
o && Y[`gap${o}`],
|
|
120
|
+
s && Y[`direction${be(s)}`],
|
|
121
|
+
r && Y[`align${be(r)}`],
|
|
122
|
+
l && Y[`justify${be(l)}`],
|
|
123
|
+
c && Y[`wrap${be(c)}`],
|
|
124
|
+
u
|
|
125
|
+
), x = X({ m: _, mt: a, mb: g, p: v, pb: f }, d);
|
|
126
|
+
if (t && se(C)) {
|
|
127
|
+
const E = C;
|
|
128
|
+
return ke(E, {
|
|
129
129
|
...b,
|
|
130
|
-
className: m(
|
|
131
|
-
style: { ...
|
|
130
|
+
className: m(k, E.props.className),
|
|
131
|
+
style: { ...x, ...E.props.style }
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
return /* @__PURE__ */ n("div", { ...b, ref:
|
|
135
|
-
}),
|
|
136
|
-
return /* @__PURE__ */ n("div", { ...
|
|
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 v = typeof t == "string" ? [
|
|
154
|
-
t.initial &&
|
|
155
|
-
t.sm &&
|
|
156
|
-
t.md &&
|
|
134
|
+
return /* @__PURE__ */ n("div", { ...b, ref: $, className: k, style: x, children: C });
|
|
135
|
+
}), _s = A(function({ style: t, m: o, mt: s, mb: r, p: l, pb: c, ...u }, d) {
|
|
136
|
+
return /* @__PURE__ */ n("div", { ...u, ref: d, style: X({ m: o, mt: s, mb: r, p: l, pb: c }, t) });
|
|
137
|
+
}), Qt = "_grid_erpqq_1", Jt = "_cols1_erpqq_5", en = "_cols2_erpqq_9", tn = "_cols3_erpqq_13", nn = "_smCols2_erpqq_18", on = "_smCols3_erpqq_21", sn = "_mdCols2_erpqq_26", rn = "_mdCols3_erpqq_29", ln = "_gap1_erpqq_33", cn = "_gap2_erpqq_37", an = "_gap3_erpqq_41", un = "_gap4_erpqq_45", dn = "_gap5_erpqq_49", fn = "_gap6_erpqq_53", Q = {
|
|
138
|
+
grid: Qt,
|
|
139
|
+
cols1: Jt,
|
|
140
|
+
cols2: en,
|
|
141
|
+
cols3: tn,
|
|
142
|
+
smCols2: nn,
|
|
143
|
+
smCols3: on,
|
|
144
|
+
mdCols2: sn,
|
|
145
|
+
mdCols3: rn,
|
|
146
|
+
gap1: ln,
|
|
147
|
+
gap2: cn,
|
|
148
|
+
gap3: an,
|
|
149
|
+
gap4: un,
|
|
150
|
+
gap5: dn,
|
|
151
|
+
gap6: fn
|
|
152
|
+
}, ps = A(function({ columns: t, gap: o, className: s, style: r, m: l, mt: c, mb: u, p: d, pb: _, ...a }, g) {
|
|
153
|
+
const v = typeof t == "string" ? [Q[`cols${t}`]] : t ? [
|
|
154
|
+
t.initial && Q[`cols${t.initial}`],
|
|
155
|
+
t.sm && Q[`smCols${t.sm}`],
|
|
156
|
+
t.md && Q[`mdCols${t.md}`]
|
|
157
157
|
] : [];
|
|
158
158
|
return /* @__PURE__ */ n(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
...a,
|
|
162
|
-
ref:
|
|
163
|
-
className: m(
|
|
164
|
-
style:
|
|
162
|
+
ref: g,
|
|
163
|
+
className: m(Q.grid, ...v, o && Q[`gap${o}`], s),
|
|
164
|
+
style: X({ m: l, mt: c, mb: u, p: d, pb: _ }, 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
|
+
}), _n = "_badge_1twqf_2", pn = "_size1_1twqf_10", gn = "_size2_1twqf_19", Cn = "_colorMuted_1twqf_28", mn = "_colorPrimary_1twqf_33", hn = "_colorSuccess_1twqf_38", vn = "_colorDanger_1twqf_43", wn = "_colorWarning_1twqf_48", bn = "_colorCyan_1twqf_53", yn = "_colorPurple_1twqf_58", xn = "_colorOrange_1twqf_63", $n = "_colorAccent_1twqf_68", Ln = "_colorYellow_1twqf_73", kn = "_solid_1twqf_81", Mn = "_wrap_1twqf_89", fe = {
|
|
168
|
+
badge: _n,
|
|
169
|
+
size1: pn,
|
|
170
|
+
size2: gn,
|
|
171
|
+
colorMuted: Cn,
|
|
172
|
+
colorPrimary: mn,
|
|
173
|
+
colorSuccess: hn,
|
|
174
|
+
colorDanger: vn,
|
|
175
|
+
colorWarning: wn,
|
|
176
|
+
colorCyan: bn,
|
|
177
|
+
colorPurple: yn,
|
|
178
|
+
colorOrange: xn,
|
|
179
|
+
colorAccent: $n,
|
|
180
|
+
colorYellow: Ln,
|
|
181
|
+
solid: kn,
|
|
182
|
+
wrap: Mn
|
|
183
|
+
}, Nn = (e) => e[0].toUpperCase() + e.slice(1), gs = A(function({ color: t = "primary", variant: o = "soft", size: s = "1", wrap: r, className: l, style: c, m: u, mt: d, mb: _, p: a, pb: g, ...v }, f) {
|
|
184
184
|
return /* @__PURE__ */ n(
|
|
185
185
|
"span",
|
|
186
186
|
{
|
|
187
187
|
...v,
|
|
188
|
-
ref:
|
|
188
|
+
ref: f,
|
|
189
189
|
className: m(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
o === "solid" &&
|
|
193
|
-
|
|
194
|
-
r &&
|
|
190
|
+
fe.badge,
|
|
191
|
+
fe[`color${Nn(t)}`],
|
|
192
|
+
o === "solid" && fe.solid,
|
|
193
|
+
fe[`size${s}`],
|
|
194
|
+
r && fe.wrap,
|
|
195
195
|
l
|
|
196
196
|
),
|
|
197
|
-
style:
|
|
197
|
+
style: X({ m: u, mt: d, mb: _, p: a, pb: g }, c)
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
|
-
}),
|
|
201
|
-
separator:
|
|
202
|
-
full:
|
|
203
|
-
},
|
|
200
|
+
}), Rn = "_separator_vao01_1", zn = "_full_vao01_7", Ie = {
|
|
201
|
+
separator: Rn,
|
|
202
|
+
full: zn
|
|
203
|
+
}, Cs = A(function({ size: t = "4", className: o, ...s }, r) {
|
|
204
204
|
return /* @__PURE__ */ n(
|
|
205
205
|
"span",
|
|
206
206
|
{
|
|
207
207
|
...s,
|
|
208
208
|
ref: r,
|
|
209
209
|
role: "separator",
|
|
210
|
-
className: m(
|
|
210
|
+
className: m(Ie.separator, t === "4" && Ie.full, o)
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}),
|
|
214
|
-
card:
|
|
215
|
-
image:
|
|
216
|
-
hasImage:
|
|
217
|
-
},
|
|
218
|
-
return /* @__PURE__ */
|
|
213
|
+
}), qn = "_card_1ooot_2", Dn = "_image_1ooot_14", In = "_hasImage_1ooot_41", Ne = {
|
|
214
|
+
card: qn,
|
|
215
|
+
image: Dn,
|
|
216
|
+
hasImage: In
|
|
217
|
+
}, ms = A(function({ className: t, style: o, image: s, children: r, m: l, mt: c, mb: u, p: d, pb: _, ...a }, g) {
|
|
218
|
+
return /* @__PURE__ */ M(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
221
221
|
...a,
|
|
222
|
-
ref:
|
|
223
|
-
className: m(
|
|
224
|
-
style:
|
|
222
|
+
ref: g,
|
|
223
|
+
className: m(Ne.card, s != null && Ne.hasImage, t),
|
|
224
|
+
style: X({ m: l, mt: c, mb: u, p: d, pb: _ }, o),
|
|
225
225
|
children: [
|
|
226
|
-
s != null && /* @__PURE__ */ n("div", { className:
|
|
226
|
+
s != null && /* @__PURE__ */ n("div", { className: Ne.image, children: s }),
|
|
227
227
|
r
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
}),
|
|
231
|
+
}), q = {
|
|
232
232
|
width: 15,
|
|
233
233
|
height: 15,
|
|
234
234
|
viewBox: "0 0 15 15",
|
|
@@ -236,8 +236,8 @@ const Xe = "_text_4vcq4_1", Ye = "_size1_4vcq4_5", Qe = "_size2_4vcq4_11", Je =
|
|
|
236
236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
237
237
|
"aria-hidden": !0
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
239
|
+
function hs(e) {
|
|
240
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
241
241
|
"path",
|
|
242
242
|
{
|
|
243
243
|
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",
|
|
@@ -247,8 +247,8 @@ function is(e) {
|
|
|
247
247
|
}
|
|
248
248
|
) });
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
250
|
+
function vs(e) {
|
|
251
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
252
252
|
"path",
|
|
253
253
|
{
|
|
254
254
|
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",
|
|
@@ -258,8 +258,8 @@ function us(e) {
|
|
|
258
258
|
}
|
|
259
259
|
) });
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
261
|
+
function ws(e) {
|
|
262
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
263
263
|
"path",
|
|
264
264
|
{
|
|
265
265
|
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",
|
|
@@ -269,8 +269,8 @@ function ds(e) {
|
|
|
269
269
|
}
|
|
270
270
|
) });
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
272
|
+
function bs(e) {
|
|
273
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
274
274
|
"path",
|
|
275
275
|
{
|
|
276
276
|
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",
|
|
@@ -280,8 +280,8 @@ function _s(e) {
|
|
|
280
280
|
}
|
|
281
281
|
) });
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
283
|
+
function ys(e) {
|
|
284
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
285
285
|
"path",
|
|
286
286
|
{
|
|
287
287
|
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",
|
|
@@ -291,8 +291,8 @@ function fs(e) {
|
|
|
291
291
|
}
|
|
292
292
|
) });
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
294
|
+
function xs(e) {
|
|
295
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
296
296
|
"path",
|
|
297
297
|
{
|
|
298
298
|
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",
|
|
@@ -302,8 +302,8 @@ function ps(e) {
|
|
|
302
302
|
}
|
|
303
303
|
) });
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
305
|
+
function $s(e) {
|
|
306
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
307
307
|
"path",
|
|
308
308
|
{
|
|
309
309
|
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",
|
|
@@ -313,8 +313,8 @@ function Cs(e) {
|
|
|
313
313
|
}
|
|
314
314
|
) });
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
316
|
+
function Ls(e) {
|
|
317
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
318
318
|
"path",
|
|
319
319
|
{
|
|
320
320
|
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",
|
|
@@ -324,8 +324,8 @@ function gs(e) {
|
|
|
324
324
|
}
|
|
325
325
|
) });
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
327
|
+
function ks(e) {
|
|
328
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
329
329
|
"path",
|
|
330
330
|
{
|
|
331
331
|
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",
|
|
@@ -335,8 +335,8 @@ function ms(e) {
|
|
|
335
335
|
}
|
|
336
336
|
) });
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
338
|
+
function Ms(e) {
|
|
339
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
340
340
|
"path",
|
|
341
341
|
{
|
|
342
342
|
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",
|
|
@@ -346,8 +346,8 @@ function hs(e) {
|
|
|
346
346
|
}
|
|
347
347
|
) });
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
349
|
+
function Ns(e) {
|
|
350
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
351
351
|
"path",
|
|
352
352
|
{
|
|
353
353
|
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",
|
|
@@ -357,8 +357,8 @@ function vs(e) {
|
|
|
357
357
|
}
|
|
358
358
|
) });
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
360
|
+
function Rs(e) {
|
|
361
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
362
362
|
"path",
|
|
363
363
|
{
|
|
364
364
|
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",
|
|
@@ -368,8 +368,8 @@ function bs(e) {
|
|
|
368
368
|
}
|
|
369
369
|
) });
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
371
|
+
function zs(e) {
|
|
372
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
373
373
|
"path",
|
|
374
374
|
{
|
|
375
375
|
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",
|
|
@@ -379,8 +379,8 @@ function ws(e) {
|
|
|
379
379
|
}
|
|
380
380
|
) });
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
382
|
+
function qs(e) {
|
|
383
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
384
384
|
"path",
|
|
385
385
|
{
|
|
386
386
|
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",
|
|
@@ -390,8 +390,8 @@ function ys(e) {
|
|
|
390
390
|
}
|
|
391
391
|
) });
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
393
|
+
function Ds(e) {
|
|
394
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
395
395
|
"path",
|
|
396
396
|
{
|
|
397
397
|
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",
|
|
@@ -401,8 +401,8 @@ function xs(e) {
|
|
|
401
401
|
}
|
|
402
402
|
) });
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
404
|
+
function Is(e) {
|
|
405
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
406
406
|
"path",
|
|
407
407
|
{
|
|
408
408
|
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",
|
|
@@ -412,8 +412,8 @@ function $s(e) {
|
|
|
412
412
|
}
|
|
413
413
|
) });
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
415
|
+
function Hn(e) {
|
|
416
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
417
417
|
"path",
|
|
418
418
|
{
|
|
419
419
|
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",
|
|
@@ -423,8 +423,8 @@ function L1(e) {
|
|
|
423
423
|
}
|
|
424
424
|
) });
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
426
|
+
function Tn(e) {
|
|
427
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
428
428
|
"path",
|
|
429
429
|
{
|
|
430
430
|
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",
|
|
@@ -434,8 +434,8 @@ function q1(e) {
|
|
|
434
434
|
}
|
|
435
435
|
) });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
437
|
+
function Hs(e) {
|
|
438
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
439
439
|
"path",
|
|
440
440
|
{
|
|
441
441
|
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",
|
|
@@ -445,7 +445,7 @@ function ks(e) {
|
|
|
445
445
|
}
|
|
446
446
|
) });
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function En(e) {
|
|
449
449
|
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(
|
|
450
450
|
"path",
|
|
451
451
|
{
|
|
@@ -454,8 +454,8 @@ function M1(e) {
|
|
|
454
454
|
}
|
|
455
455
|
) });
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
457
|
+
function Sn(e) {
|
|
458
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
459
459
|
"path",
|
|
460
460
|
{
|
|
461
461
|
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",
|
|
@@ -465,8 +465,8 @@ function N1(e) {
|
|
|
465
465
|
}
|
|
466
466
|
) });
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
468
|
+
function Zn(e) {
|
|
469
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
470
470
|
"path",
|
|
471
471
|
{
|
|
472
472
|
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",
|
|
@@ -476,8 +476,8 @@ function R1(e) {
|
|
|
476
476
|
}
|
|
477
477
|
) });
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
479
|
+
function An(e) {
|
|
480
|
+
return /* @__PURE__ */ n("svg", { ...q, ...e, children: /* @__PURE__ */ n(
|
|
481
481
|
"path",
|
|
482
482
|
{
|
|
483
483
|
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",
|
|
@@ -487,32 +487,32 @@ function z1(e) {
|
|
|
487
487
|
}
|
|
488
488
|
) });
|
|
489
489
|
}
|
|
490
|
-
const
|
|
491
|
-
nav:
|
|
492
|
-
pages:
|
|
493
|
-
item:
|
|
494
|
-
current:
|
|
495
|
-
page:
|
|
496
|
-
gap:
|
|
497
|
-
stepText:
|
|
498
|
-
step:
|
|
499
|
-
},
|
|
500
|
-
spaceControl:
|
|
501
|
-
spaceSlider:
|
|
502
|
-
spacePanel:
|
|
503
|
-
spaceInput:
|
|
504
|
-
spaceTextArea:
|
|
505
|
-
},
|
|
506
|
-
function
|
|
490
|
+
const jn = "_nav_f248a_6", Vn = "_pages_f248a_21", On = "_item_f248a_30", Bn = "_current_f248a_48", Wn = "_page_f248a_21", Fn = "_gap_f248a_82", Pn = "_stepText_f248a_92", Kn = "_step_f248a_92", V = {
|
|
491
|
+
nav: jn,
|
|
492
|
+
pages: Vn,
|
|
493
|
+
item: On,
|
|
494
|
+
current: Bn,
|
|
495
|
+
page: Wn,
|
|
496
|
+
gap: Fn,
|
|
497
|
+
stepText: Pn,
|
|
498
|
+
step: Kn
|
|
499
|
+
}, Gn = "_spaceControl_4ou97_17", Un = "_spaceSlider_4ou97_74", Xn = "_spacePanel_4ou97_111", Yn = "_spaceInput_4ou97_34", Qn = "_spaceTextArea_4ou97_226", Jn = {
|
|
500
|
+
spaceControl: Gn,
|
|
501
|
+
spaceSlider: Un,
|
|
502
|
+
spacePanel: Xn,
|
|
503
|
+
spaceInput: Yn,
|
|
504
|
+
spaceTextArea: Qn
|
|
505
|
+
}, W = Jn;
|
|
506
|
+
function e1({ pageSize: e, totalItems: t }) {
|
|
507
507
|
return e <= 0 ? 1 : Math.max(1, Math.ceil(t / e));
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
const s = (
|
|
509
|
+
function t1(e, t, o = 1) {
|
|
510
|
+
const s = (g, v) => Array.from({ length: Math.max(0, v - g + 1) }, (f, C) => g + C), r = o * 2 + 5;
|
|
511
511
|
if (t <= r) return s(1, t);
|
|
512
|
-
const l = Math.min(Math.max(e, 1), t), c = Math.max(l - o, 1),
|
|
513
|
-
return
|
|
512
|
+
const l = Math.min(Math.max(e, 1), t), c = Math.max(l - o, 1), u = Math.min(l + o, t), d = c > 3, _ = u < t - 2, a = o * 2 + 3;
|
|
513
|
+
return d ? _ ? [1, null, ...s(c, u), null, t] : [1, null, ...s(t - a + 1, t)] : [...s(1, a), null, t];
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ts({
|
|
516
516
|
pagination: e,
|
|
517
517
|
onPageClick: t,
|
|
518
518
|
siblings: o = 1,
|
|
@@ -521,247 +521,253 @@ function Ls({
|
|
|
521
521
|
"aria-label": l = "Pagination",
|
|
522
522
|
...c
|
|
523
523
|
}) {
|
|
524
|
-
const
|
|
525
|
-
if (
|
|
526
|
-
const
|
|
527
|
-
a !==
|
|
524
|
+
const u = e1(e);
|
|
525
|
+
if (u <= 1) return null;
|
|
526
|
+
const d = Math.min(Math.max(e.page, 1), u), _ = (a) => {
|
|
527
|
+
a !== d && a >= 1 && a <= u && t(a);
|
|
528
528
|
};
|
|
529
|
-
return /* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
529
|
+
return /* @__PURE__ */ M("nav", { ...c, "aria-label": l, className: m(V.nav, r), children: [
|
|
530
|
+
/* @__PURE__ */ M(
|
|
531
531
|
"button",
|
|
532
532
|
{
|
|
533
533
|
type: "button",
|
|
534
|
-
className: m(
|
|
535
|
-
disabled:
|
|
534
|
+
className: m(W.spaceControl, V.item, V.step),
|
|
535
|
+
disabled: d <= 1,
|
|
536
536
|
"aria-label": "Previous page",
|
|
537
|
-
onClick: () =>
|
|
537
|
+
onClick: () => _(d - 1),
|
|
538
538
|
children: [
|
|
539
|
-
/* @__PURE__ */ n(
|
|
540
|
-
/* @__PURE__ */ n("span", { className:
|
|
539
|
+
/* @__PURE__ */ n(Tn, { "aria-hidden": "true" }),
|
|
540
|
+
/* @__PURE__ */ n("span", { className: V.stepText, children: "Previous" })
|
|
541
541
|
]
|
|
542
542
|
}
|
|
543
543
|
),
|
|
544
|
-
/* @__PURE__ */ n("ol", { className:
|
|
545
|
-
(a,
|
|
544
|
+
/* @__PURE__ */ n("ol", { className: V.pages, children: t1(d, u, o).map(
|
|
545
|
+
(a, g) => a === null ? (
|
|
546
546
|
// Presentational: "ellipsis" read aloud between page numbers tells
|
|
547
547
|
// nobody anything.
|
|
548
548
|
// eslint-disable-next-line react/no-array-index-key
|
|
549
|
-
/* @__PURE__ */ n("li", { className:
|
|
549
|
+
/* @__PURE__ */ n("li", { className: V.gap, "aria-hidden": "true", children: "…" }, `gap-${g}`)
|
|
550
550
|
) : /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
551
551
|
"button",
|
|
552
552
|
{
|
|
553
553
|
type: "button",
|
|
554
554
|
className: m(
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
a ===
|
|
555
|
+
W.spaceControl,
|
|
556
|
+
V.item,
|
|
557
|
+
V.page,
|
|
558
|
+
a === d && V.current
|
|
559
559
|
),
|
|
560
|
-
"data-animated": a ===
|
|
560
|
+
"data-animated": a === d && !s ? "false" : void 0,
|
|
561
561
|
"aria-label": `Page ${a}`,
|
|
562
|
-
"aria-current": a ===
|
|
563
|
-
onClick: () =>
|
|
562
|
+
"aria-current": a === d ? "page" : void 0,
|
|
563
|
+
onClick: () => _(a),
|
|
564
564
|
children: a
|
|
565
565
|
}
|
|
566
566
|
) }, a)
|
|
567
567
|
) }),
|
|
568
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ M(
|
|
569
569
|
"button",
|
|
570
570
|
{
|
|
571
571
|
type: "button",
|
|
572
|
-
className: m(
|
|
573
|
-
disabled:
|
|
572
|
+
className: m(W.spaceControl, V.item, V.step),
|
|
573
|
+
disabled: d >= u,
|
|
574
574
|
"aria-label": "Next page",
|
|
575
|
-
onClick: () =>
|
|
575
|
+
onClick: () => _(d + 1),
|
|
576
576
|
children: [
|
|
577
|
-
/* @__PURE__ */ n("span", { className:
|
|
578
|
-
/* @__PURE__ */ n(
|
|
577
|
+
/* @__PURE__ */ n("span", { className: V.stepText, children: "Next" }),
|
|
578
|
+
/* @__PURE__ */ n(Hn, { "aria-hidden": "true" })
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
581
|
)
|
|
582
582
|
] });
|
|
583
583
|
}
|
|
584
|
-
const
|
|
585
|
-
spaceButton:
|
|
586
|
-
rimRotate:
|
|
587
|
-
glintSweep:
|
|
588
|
-
iconOnly:
|
|
589
|
-
lg:
|
|
590
|
-
sm:
|
|
591
|
-
micro:
|
|
592
|
-
stars:
|
|
593
|
-
fullWidth:
|
|
594
|
-
ember:
|
|
595
|
-
label:
|
|
596
|
-
star:
|
|
597
|
-
twinkle:
|
|
584
|
+
const n1 = "_spaceButton_kjhqx_14", o1 = "_rimRotate_kjhqx_1", s1 = "_glintSweep_kjhqx_1", r1 = "_iconOnly_kjhqx_97", l1 = "_lg_kjhqx_104", c1 = "_sm_kjhqx_110", a1 = "_micro_kjhqx_122", i1 = "_stars_kjhqx_136", u1 = "_fullWidth_kjhqx_141", d1 = "_ember_kjhqx_147", f1 = "_label_kjhqx_157", _1 = "_star_kjhqx_136", p1 = "_twinkle_kjhqx_1", G = {
|
|
585
|
+
spaceButton: n1,
|
|
586
|
+
rimRotate: o1,
|
|
587
|
+
glintSweep: s1,
|
|
588
|
+
iconOnly: r1,
|
|
589
|
+
lg: l1,
|
|
590
|
+
sm: c1,
|
|
591
|
+
micro: a1,
|
|
592
|
+
stars: i1,
|
|
593
|
+
fullWidth: u1,
|
|
594
|
+
ember: d1,
|
|
595
|
+
label: f1,
|
|
596
|
+
star: _1,
|
|
597
|
+
twinkle: p1
|
|
598
598
|
};
|
|
599
|
-
function
|
|
599
|
+
function g1(e) {
|
|
600
600
|
return function() {
|
|
601
601
|
e |= 0, e = e + 1831565813 | 0;
|
|
602
602
|
let t = Math.imul(e ^ e >>> 15, 1 | e);
|
|
603
603
|
return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function C1(e) {
|
|
607
607
|
let t = 2166136261;
|
|
608
608
|
for (let o = 0; o < e.length; o++)
|
|
609
609
|
t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
|
|
610
610
|
return t >>> 0;
|
|
611
611
|
}
|
|
612
|
-
const
|
|
613
|
-
function({ iconOnly: t, ember: o, size: s = "md", fullWidth: r, animated: l = !0, className: c, children:
|
|
614
|
-
const a =
|
|
615
|
-
const
|
|
612
|
+
const Ze = A(
|
|
613
|
+
function({ iconOnly: t, ember: o, size: s = "md", fullWidth: r, animated: l = !0, className: c, children: u, ...d }, _) {
|
|
614
|
+
const a = F(), g = ne(() => {
|
|
615
|
+
const f = g1(C1(a));
|
|
616
616
|
return Array.from({ length: 3 }, () => ({
|
|
617
|
-
top: `${12 +
|
|
618
|
-
left: `${8 +
|
|
619
|
-
animationDelay: `${(
|
|
620
|
-
animationDuration: `${(2.8 +
|
|
617
|
+
top: `${12 + f() * 58}%`,
|
|
618
|
+
left: `${8 + f() * 80}%`,
|
|
619
|
+
animationDelay: `${(f() * 3.2).toFixed(2)}s`,
|
|
620
|
+
animationDuration: `${(2.8 + f() * 1.8).toFixed(2)}s`
|
|
621
621
|
}));
|
|
622
622
|
}, [a]), v = [
|
|
623
|
-
|
|
624
|
-
t ?
|
|
625
|
-
o ?
|
|
626
|
-
s !== "md" ?
|
|
627
|
-
r ?
|
|
623
|
+
G.spaceButton,
|
|
624
|
+
t ? G.iconOnly : "",
|
|
625
|
+
o ? G.ember : "",
|
|
626
|
+
s !== "md" ? G[s] : "",
|
|
627
|
+
r ? G.fullWidth : "",
|
|
628
628
|
c ?? ""
|
|
629
629
|
].filter(Boolean).join(" ");
|
|
630
|
-
return /* @__PURE__ */
|
|
630
|
+
return /* @__PURE__ */ M(
|
|
631
631
|
"button",
|
|
632
632
|
{
|
|
633
|
-
ref:
|
|
633
|
+
ref: _,
|
|
634
634
|
className: v,
|
|
635
635
|
"data-animated": l ? void 0 : "false",
|
|
636
|
-
...
|
|
636
|
+
...d,
|
|
637
637
|
children: [
|
|
638
|
-
s !== "micro" && /* @__PURE__ */ n("span", { className:
|
|
639
|
-
/* @__PURE__ */ n("span", { className:
|
|
638
|
+
s !== "micro" && /* @__PURE__ */ n("span", { className: G.stars, "aria-hidden": !0, children: g.map((f, C) => /* @__PURE__ */ n("i", { className: G.star, style: f }, C)) }),
|
|
639
|
+
/* @__PURE__ */ n("span", { className: G.label, children: u })
|
|
640
640
|
]
|
|
641
641
|
}
|
|
642
642
|
);
|
|
643
643
|
}
|
|
644
|
-
),
|
|
645
|
-
wrap:
|
|
646
|
-
sm:
|
|
647
|
-
md:
|
|
648
|
-
lg:
|
|
649
|
-
orbit:
|
|
650
|
-
planet:
|
|
644
|
+
), m1 = "_wrap_dwcut_5", h1 = "_sm_dwcut_30", v1 = "_md_dwcut_36", w1 = "_lg_dwcut_42", b1 = "_orbit_dwcut_49", y1 = "_planet_dwcut_58", x1 = "_moon_dwcut_73", $1 = "_label_dwcut_92", J = {
|
|
645
|
+
wrap: m1,
|
|
646
|
+
sm: h1,
|
|
647
|
+
md: v1,
|
|
648
|
+
lg: w1,
|
|
649
|
+
orbit: b1,
|
|
650
|
+
planet: y1,
|
|
651
651
|
"sp-loader-planet-pulse": "_sp-loader-planet-pulse_dwcut_1",
|
|
652
|
-
moon:
|
|
652
|
+
moon: x1,
|
|
653
653
|
"sp-loader-orbit": "_sp-loader-orbit_dwcut_1",
|
|
654
|
-
label:
|
|
654
|
+
label: $1,
|
|
655
655
|
"sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
|
|
656
656
|
};
|
|
657
|
-
function
|
|
658
|
-
return /* @__PURE__ */
|
|
657
|
+
function Es({ size: e = "md", label: t, className: o }) {
|
|
658
|
+
return /* @__PURE__ */ M(
|
|
659
659
|
"div",
|
|
660
660
|
{
|
|
661
|
-
className: m(
|
|
661
|
+
className: m(J.wrap, J[e], o),
|
|
662
662
|
role: "status",
|
|
663
663
|
"aria-live": "polite",
|
|
664
664
|
"aria-label": t ?? "Loading",
|
|
665
665
|
children: [
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */ n("span", { className:
|
|
668
|
-
/* @__PURE__ */ n("span", { className:
|
|
666
|
+
/* @__PURE__ */ M("span", { className: J.orbit, children: [
|
|
667
|
+
/* @__PURE__ */ n("span", { className: J.planet }),
|
|
668
|
+
/* @__PURE__ */ n("span", { className: J.moon })
|
|
669
669
|
] }),
|
|
670
|
-
t && /* @__PURE__ */ n("span", { className:
|
|
670
|
+
t && /* @__PURE__ */ n("span", { className: J.label, children: t })
|
|
671
671
|
]
|
|
672
672
|
}
|
|
673
673
|
);
|
|
674
674
|
}
|
|
675
|
-
const
|
|
676
|
-
content:
|
|
677
|
-
}
|
|
678
|
-
function
|
|
675
|
+
const L1 = "_content_1efo6_6", k1 = {
|
|
676
|
+
content: L1
|
|
677
|
+
};
|
|
678
|
+
function Ae(e, t) {
|
|
679
|
+
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());
|
|
680
|
+
}
|
|
681
|
+
const M1 = 350, N1 = 80, ye = 8, _e = 8;
|
|
682
|
+
function R1({ triggerRef: e, tooltipId: t, show: o, hide: s, children: r }) {
|
|
679
683
|
const l = r.props;
|
|
680
|
-
return
|
|
684
|
+
return ke(r, {
|
|
681
685
|
ref: e,
|
|
682
686
|
// Always present, so the id it points at never dangles: the content
|
|
683
687
|
// element stays mounted and only toggles its popover state.
|
|
684
688
|
"aria-describedby": t,
|
|
685
689
|
onPointerEnter: (c) => {
|
|
686
|
-
var
|
|
687
|
-
(
|
|
690
|
+
var u;
|
|
691
|
+
(u = l.onPointerEnter) == null || u.call(l, c), c.pointerType === "mouse" && o();
|
|
688
692
|
},
|
|
689
693
|
onPointerLeave: (c) => {
|
|
690
|
-
var
|
|
691
|
-
(
|
|
694
|
+
var u;
|
|
695
|
+
(u = l.onPointerLeave) == null || u.call(l, c), s();
|
|
692
696
|
},
|
|
693
697
|
// Keyboard focus shows it immediately — no hover delay to wait out.
|
|
694
698
|
onFocus: (c) => {
|
|
695
|
-
var
|
|
696
|
-
(
|
|
699
|
+
var u;
|
|
700
|
+
(u = l.onFocus) == null || u.call(l, c), o(!0);
|
|
697
701
|
},
|
|
698
702
|
onBlur: (c) => {
|
|
699
|
-
var
|
|
700
|
-
(
|
|
703
|
+
var u;
|
|
704
|
+
(u = l.onBlur) == null || u.call(l, c), s();
|
|
701
705
|
},
|
|
702
706
|
// A tooltip must never outlive the action it describes: clicking the
|
|
703
707
|
// control (expand, switch view) leaves it stranded over the new layout.
|
|
704
708
|
onClick: (c) => {
|
|
705
|
-
var
|
|
706
|
-
(
|
|
709
|
+
var u;
|
|
710
|
+
(u = l.onClick) == null || u.call(l, c), s();
|
|
707
711
|
}
|
|
708
712
|
});
|
|
709
713
|
}
|
|
710
|
-
function
|
|
711
|
-
const s =
|
|
712
|
-
a.current && (clearTimeout(a.current), a.current = null),
|
|
713
|
-
},
|
|
714
|
+
function z1({ label: e, side: t = "bottom", children: o }) {
|
|
715
|
+
const s = F(), [r, l] = Z(!1), [c, u] = Z(null), d = z(null), _ = z(null), a = z(null), g = z(null), v = () => {
|
|
716
|
+
a.current && (clearTimeout(a.current), a.current = null), g.current && (clearTimeout(g.current), g.current = null);
|
|
717
|
+
}, f = (b = !1) => {
|
|
714
718
|
if (v(), b) {
|
|
715
719
|
l(!0);
|
|
716
720
|
return;
|
|
717
721
|
}
|
|
718
|
-
a.current = setTimeout(() => l(!0),
|
|
719
|
-
},
|
|
720
|
-
v(),
|
|
722
|
+
a.current = setTimeout(() => l(!0), M1);
|
|
723
|
+
}, C = () => {
|
|
724
|
+
v(), g.current = setTimeout(() => l(!1), N1);
|
|
721
725
|
};
|
|
722
|
-
return
|
|
723
|
-
const b =
|
|
726
|
+
return K(() => v, []), he(() => {
|
|
727
|
+
const b = _.current;
|
|
724
728
|
if (!b) return;
|
|
725
729
|
if (!r) {
|
|
726
730
|
b.matches(":popover-open") && b.hidePopover();
|
|
727
731
|
return;
|
|
728
732
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
733
|
+
const $ = d.current;
|
|
734
|
+
if (!$) return;
|
|
735
|
+
const k = () => {
|
|
736
|
+
const x = $.getBoundingClientRect(), E = b.offsetWidth, D = b.offsetHeight, N = (y, L, S, T) => Math.min(
|
|
737
|
+
Math.max(y + L / 2 - S / 2, _e),
|
|
738
|
+
Math.max(T - S - _e, _e)
|
|
739
|
+
), j = (y, L, S, T) => ({
|
|
740
|
+
fitsNear: y >= _e,
|
|
741
|
+
fitsFar: L + S <= T - _e
|
|
742
|
+
});
|
|
743
|
+
if (t === "left" || t === "right") {
|
|
744
|
+
const y = x.right + ye, L = x.left - E - ye, { fitsNear: S, fitsFar: T } = j(L, y, E, window.innerWidth), O = t === "right" ? T || !S ? y : L : S || !T ? L : y;
|
|
745
|
+
b.dataset.side = O === y ? "right" : "left", u({ top: N(x.top, x.height, D, window.innerHeight), left: O });
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
const H = x.bottom + ye, R = x.top - D - ye, { fitsNear: I, fitsFar: w } = j(R, H, D, window.innerHeight), i = t === "bottom" ? w || !I ? H : R : I || !w ? R : H;
|
|
749
|
+
b.dataset.side = i === H ? "bottom" : "top", u({ top: i, left: N(x.left, x.width, E, window.innerWidth) });
|
|
738
750
|
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
i({ top: D(w.top, w.height, z, window.innerHeight), left: K });
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
const A = w.bottom + ge, q = w.top - z - ge, { fitsNear: I, fitsFar: G } = M(q, A, z, window.innerHeight);
|
|
745
|
-
i({ top: t === "bottom" ? G || !I ? A : q : I || !G ? q : A, left: D(w.left, w.width, L, window.innerWidth) });
|
|
746
|
-
}, [r, t, e]), !e || !ne(o) ? /* @__PURE__ */ n(de, { children: o }) : /* @__PURE__ */ $(de, { children: [
|
|
751
|
+
b.matches(":popover-open") ? k() : Ae(b, k);
|
|
752
|
+
}, [r, t, e]), !e || !se(o) ? /* @__PURE__ */ n(oe, { children: o }) : /* @__PURE__ */ M(oe, { children: [
|
|
747
753
|
/* @__PURE__ */ n(
|
|
748
|
-
|
|
754
|
+
R1,
|
|
749
755
|
{
|
|
750
|
-
triggerRef:
|
|
756
|
+
triggerRef: d,
|
|
751
757
|
tooltipId: s,
|
|
752
|
-
show:
|
|
753
|
-
hide:
|
|
758
|
+
show: f,
|
|
759
|
+
hide: C,
|
|
754
760
|
children: o
|
|
755
761
|
}
|
|
756
762
|
),
|
|
757
763
|
/* @__PURE__ */ n(
|
|
758
764
|
"div",
|
|
759
765
|
{
|
|
760
|
-
ref:
|
|
766
|
+
ref: _,
|
|
761
767
|
id: s,
|
|
762
768
|
popover: "auto",
|
|
763
769
|
role: "tooltip",
|
|
764
|
-
className:
|
|
770
|
+
className: k1.content,
|
|
765
771
|
style: c ? { top: c.top, left: c.left } : void 0,
|
|
766
772
|
onToggle: (b) => {
|
|
767
773
|
b.nativeEvent.newState === "closed" && r && l(!1);
|
|
@@ -771,13 +777,13 @@ function $n({ label: e, side: t = "bottom", children: o }) {
|
|
|
771
777
|
)
|
|
772
778
|
] });
|
|
773
779
|
}
|
|
774
|
-
const
|
|
775
|
-
group:
|
|
776
|
-
segment:
|
|
777
|
-
active:
|
|
778
|
-
vertical:
|
|
780
|
+
const q1 = "_group_1tdav_4", D1 = "_segment_1tdav_15", I1 = "_active_1tdav_35", H1 = "_vertical_1tdav_46", xe = {
|
|
781
|
+
group: q1,
|
|
782
|
+
segment: D1,
|
|
783
|
+
active: I1,
|
|
784
|
+
vertical: H1
|
|
779
785
|
};
|
|
780
|
-
function
|
|
786
|
+
function Ss({
|
|
781
787
|
options: e,
|
|
782
788
|
value: t,
|
|
783
789
|
onValueChange: o,
|
|
@@ -788,18 +794,18 @@ function Ms({
|
|
|
788
794
|
return /* @__PURE__ */ n(
|
|
789
795
|
"div",
|
|
790
796
|
{
|
|
791
|
-
className: `${
|
|
797
|
+
className: `${xe.group} ${l ? xe.vertical : ""} ${r}`,
|
|
792
798
|
role: "group",
|
|
793
799
|
children: e.map((c) => (
|
|
794
800
|
// A horizontal pill sits at the top of the scene, so its tooltips hang
|
|
795
801
|
// below it. A vertical one has a segment directly below every segment,
|
|
796
802
|
// so they go to the side instead — otherwise each tooltip covers the
|
|
797
803
|
// next option along.
|
|
798
|
-
/* @__PURE__ */ n(
|
|
804
|
+
/* @__PURE__ */ n(z1, { label: c.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
|
|
799
805
|
"button",
|
|
800
806
|
{
|
|
801
807
|
type: "button",
|
|
802
|
-
className: `${
|
|
808
|
+
className: `${xe.segment} ${c.value === t ? xe.active : ""}`,
|
|
803
809
|
"aria-label": c.label,
|
|
804
810
|
"aria-pressed": c.value === t,
|
|
805
811
|
onClick: () => {
|
|
@@ -812,31 +818,31 @@ function Ms({
|
|
|
812
818
|
}
|
|
813
819
|
);
|
|
814
820
|
}
|
|
815
|
-
const
|
|
816
|
-
root:
|
|
817
|
-
trigger:
|
|
818
|
-
labelWrap:
|
|
819
|
-
sizer:
|
|
820
|
-
triggerLabel:
|
|
821
|
-
chevron:
|
|
822
|
-
listbox:
|
|
823
|
-
item:
|
|
824
|
-
},
|
|
825
|
-
const e =
|
|
821
|
+
const T1 = "_root_32n97_2", E1 = "_trigger_32n97_7", S1 = "_labelWrap_32n97_30", Z1 = "_sizer_32n97_8", A1 = "_triggerLabel_32n97_70", j1 = "_chevron_32n97_77", V1 = "_listbox_32n97_82", O1 = "_item_32n97_148", U = {
|
|
822
|
+
root: T1,
|
|
823
|
+
trigger: E1,
|
|
824
|
+
labelWrap: S1,
|
|
825
|
+
sizer: Z1,
|
|
826
|
+
triggerLabel: A1,
|
|
827
|
+
chevron: j1,
|
|
828
|
+
listbox: V1,
|
|
829
|
+
item: O1
|
|
830
|
+
}, je = re(null), B1 = () => {
|
|
831
|
+
const e = le(je);
|
|
826
832
|
if (!e) throw new Error("Select.Item must be inside a Select");
|
|
827
833
|
return e;
|
|
828
|
-
},
|
|
829
|
-
function
|
|
834
|
+
}, Ve = (e, t) => `${e}-${encodeURIComponent(t)}`;
|
|
835
|
+
function W1(e) {
|
|
830
836
|
const t = [], o = (s) => {
|
|
831
|
-
|
|
832
|
-
if (!
|
|
837
|
+
nt.forEach(s, (r) => {
|
|
838
|
+
if (!se(r)) return;
|
|
833
839
|
const l = r.props;
|
|
834
|
-
r.type ===
|
|
840
|
+
r.type === Oe && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
|
|
835
841
|
});
|
|
836
842
|
};
|
|
837
843
|
return o(e), t;
|
|
838
844
|
}
|
|
839
|
-
function
|
|
845
|
+
function F1({
|
|
840
846
|
value: e,
|
|
841
847
|
onValueChange: t,
|
|
842
848
|
disabled: o,
|
|
@@ -844,85 +850,85 @@ function Vn({
|
|
|
844
850
|
animated: r = !0,
|
|
845
851
|
className: l,
|
|
846
852
|
children: c,
|
|
847
|
-
...
|
|
853
|
+
...u
|
|
848
854
|
}) {
|
|
849
|
-
const [
|
|
850
|
-
(
|
|
851
|
-
var
|
|
852
|
-
return ((
|
|
855
|
+
const [d, _] = Z(!1), [a, g] = Z(null), v = F(), f = z(null), C = z(null), b = z(null), [$, k] = Z(null), [x, E] = Z(null), D = ne(() => W1(c), [c]), N = ne(() => D.filter((i) => !i.disabled).map((i) => i.value), [D]), j = ne(() => D.map((i) => i.label), [D]), H = Le(
|
|
856
|
+
(i) => {
|
|
857
|
+
var y;
|
|
858
|
+
return ((y = D.find((L) => L.value === i)) == null ? void 0 : y.label) ?? null;
|
|
853
859
|
},
|
|
854
860
|
[D]
|
|
855
861
|
);
|
|
856
|
-
|
|
857
|
-
if (!
|
|
858
|
-
const
|
|
859
|
-
|
|
862
|
+
K(() => {
|
|
863
|
+
if (!d) return;
|
|
864
|
+
const i = (y) => {
|
|
865
|
+
C.current && !C.current.contains(y.target) && _(!1);
|
|
860
866
|
};
|
|
861
|
-
return document.addEventListener("mousedown",
|
|
862
|
-
}, [
|
|
863
|
-
if (!
|
|
864
|
-
const
|
|
865
|
-
if (!
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
}, [
|
|
871
|
-
var
|
|
872
|
-
|
|
873
|
-
}, [
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
},
|
|
867
|
+
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
868
|
+
}, [d]), he(() => {
|
|
869
|
+
if (!d) return;
|
|
870
|
+
const i = f.current;
|
|
871
|
+
if (!i) return;
|
|
872
|
+
const y = i.getBoundingClientRect();
|
|
873
|
+
k(i.offsetWidth);
|
|
874
|
+
const L = window.innerHeight - y.bottom - 16;
|
|
875
|
+
E(Math.min(380, Math.max(120, L)));
|
|
876
|
+
}, [d]), K(() => {
|
|
877
|
+
var i;
|
|
878
|
+
d && ((i = b.current) == null || i.focus());
|
|
879
|
+
}, [d]);
|
|
880
|
+
const R = (i) => {
|
|
881
|
+
g(i ?? N[0] ?? null), _(!0);
|
|
882
|
+
}, I = (i) => {
|
|
883
|
+
const y = a ? N.indexOf(a) : -1, L = Math.min(Math.max(y + i, 0), N.length - 1);
|
|
884
|
+
g(N[L] ?? null);
|
|
885
|
+
}, w = e ? H(e) : null;
|
|
880
886
|
return /* @__PURE__ */ n(
|
|
881
|
-
|
|
887
|
+
je.Provider,
|
|
882
888
|
{
|
|
883
889
|
value: {
|
|
884
890
|
value: e,
|
|
885
891
|
onValueChange: t,
|
|
886
892
|
disabled: o,
|
|
887
|
-
open:
|
|
888
|
-
setOpen:
|
|
893
|
+
open: d,
|
|
894
|
+
setOpen: _,
|
|
889
895
|
highlighted: a,
|
|
890
|
-
setHighlighted:
|
|
896
|
+
setHighlighted: g,
|
|
891
897
|
listboxId: v,
|
|
892
|
-
values:
|
|
893
|
-
labelFor:
|
|
894
|
-
triggerRef:
|
|
898
|
+
values: N,
|
|
899
|
+
labelFor: H,
|
|
900
|
+
triggerRef: f
|
|
895
901
|
},
|
|
896
|
-
children: /* @__PURE__ */
|
|
897
|
-
/* @__PURE__ */
|
|
902
|
+
children: /* @__PURE__ */ M("div", { ref: C, className: U.root, children: [
|
|
903
|
+
/* @__PURE__ */ M(
|
|
898
904
|
"button",
|
|
899
905
|
{
|
|
900
906
|
type: "button",
|
|
901
|
-
...
|
|
902
|
-
ref:
|
|
907
|
+
...u,
|
|
908
|
+
ref: f,
|
|
903
909
|
disabled: o,
|
|
904
|
-
className: m(
|
|
910
|
+
className: m(U.trigger, W.spaceControl, "spSelectTrigger", l),
|
|
905
911
|
"data-animated": r ? void 0 : "false",
|
|
906
|
-
"data-state":
|
|
912
|
+
"data-state": d ? "open" : "closed",
|
|
907
913
|
"aria-haspopup": "listbox",
|
|
908
|
-
"aria-expanded":
|
|
914
|
+
"aria-expanded": d,
|
|
909
915
|
"aria-controls": v,
|
|
910
|
-
onClick: () =>
|
|
911
|
-
onKeyDown: (
|
|
912
|
-
(
|
|
916
|
+
onClick: () => d ? _(!1) : R(e || null),
|
|
917
|
+
onKeyDown: (i) => {
|
|
918
|
+
(i.key === "ArrowDown" || i.key === "Enter" || i.key === " ") && (i.preventDefault(), R(e || null));
|
|
913
919
|
},
|
|
914
920
|
children: [
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
|
|
921
|
+
/* @__PURE__ */ M("span", { className: U.labelWrap, children: [
|
|
922
|
+
/* @__PURE__ */ M("span", { className: U.sizer, "data-sizer": "", "aria-hidden": "true", children: [
|
|
923
|
+
j.map((i, y) => (
|
|
918
924
|
// eslint-disable-next-line react/no-array-index-key
|
|
919
|
-
/* @__PURE__ */ n("span", { children:
|
|
925
|
+
/* @__PURE__ */ n("span", { children: i }, y)
|
|
920
926
|
)),
|
|
921
927
|
s && /* @__PURE__ */ n("span", { children: s })
|
|
922
928
|
] }),
|
|
923
|
-
/* @__PURE__ */ n("span", { className:
|
|
929
|
+
/* @__PURE__ */ n("span", { className: U.triggerLabel, children: w ?? s ?? "" })
|
|
924
930
|
] }),
|
|
925
|
-
/* @__PURE__ */ n("svg", { className:
|
|
931
|
+
/* @__PURE__ */ n("svg", { className: U.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" }) })
|
|
926
932
|
]
|
|
927
933
|
}
|
|
928
934
|
),
|
|
@@ -933,17 +939,17 @@ function Vn({
|
|
|
933
939
|
id: v,
|
|
934
940
|
role: "listbox",
|
|
935
941
|
tabIndex: -1,
|
|
936
|
-
hidden: !
|
|
937
|
-
"aria-activedescendant": a ?
|
|
938
|
-
className: m(
|
|
942
|
+
hidden: !d,
|
|
943
|
+
"aria-activedescendant": a ? Ve(v, a) : void 0,
|
|
944
|
+
className: m(U.listbox, W.spacePanel),
|
|
939
945
|
"data-animated": r ? void 0 : "false",
|
|
940
|
-
style:
|
|
941
|
-
|
|
942
|
-
...
|
|
946
|
+
style: $ != null || x != null ? {
|
|
947
|
+
...$ != null ? { "--_select-trigger-width": `${$}px` } : {},
|
|
948
|
+
...x != null ? { maxHeight: `${x}px` } : {}
|
|
943
949
|
} : void 0,
|
|
944
|
-
onKeyDown: (
|
|
945
|
-
var
|
|
946
|
-
|
|
950
|
+
onKeyDown: (i) => {
|
|
951
|
+
var y, L;
|
|
952
|
+
i.key === "Escape" ? (i.stopPropagation(), _(!1), (y = f.current) == null || y.focus()) : i.key === "ArrowDown" ? (i.preventDefault(), I(1)) : i.key === "ArrowUp" ? (i.preventDefault(), I(-1)) : i.key === "Home" ? (i.preventDefault(), g(N[0] ?? null)) : i.key === "End" ? (i.preventDefault(), g(N[N.length - 1] ?? null)) : i.key === "Enter" || i.key === " " ? (i.preventDefault(), a && (t(a), _(!1), (L = f.current) == null || L.focus())) : i.key === "Tab" && _(!1);
|
|
947
953
|
},
|
|
948
954
|
children: c
|
|
949
955
|
}
|
|
@@ -952,17 +958,17 @@ function Vn({
|
|
|
952
958
|
}
|
|
953
959
|
);
|
|
954
960
|
}
|
|
955
|
-
function
|
|
956
|
-
const s =
|
|
961
|
+
function Oe({ value: e, disabled: t, children: o }) {
|
|
962
|
+
const s = B1(), r = s.value === e, l = s.highlighted === e;
|
|
957
963
|
return /* @__PURE__ */ n(
|
|
958
964
|
"div",
|
|
959
965
|
{
|
|
960
|
-
id:
|
|
966
|
+
id: Ve(s.listboxId, e),
|
|
961
967
|
role: "option",
|
|
962
968
|
"aria-selected": r,
|
|
963
969
|
"aria-disabled": t || void 0,
|
|
964
970
|
"data-highlighted": l ? "" : void 0,
|
|
965
|
-
className: m(
|
|
971
|
+
className: m(U.item, "spSelectItem"),
|
|
966
972
|
onMouseEnter: () => !t && s.setHighlighted(e),
|
|
967
973
|
onClick: () => {
|
|
968
974
|
var c;
|
|
@@ -972,55 +978,55 @@ function He({ value: e, disabled: t, children: o }) {
|
|
|
972
978
|
}
|
|
973
979
|
);
|
|
974
980
|
}
|
|
975
|
-
const
|
|
976
|
-
root:
|
|
977
|
-
input:
|
|
978
|
-
slot:
|
|
979
|
-
},
|
|
980
|
-
return /* @__PURE__ */
|
|
981
|
+
const Zs = Object.assign(F1, { Item: Oe }), P1 = "_root_1lx7y_1", K1 = "_input_1lx7y_7", G1 = "_slot_1lx7y_17", Re = {
|
|
982
|
+
root: P1,
|
|
983
|
+
input: K1,
|
|
984
|
+
slot: G1
|
|
985
|
+
}, U1 = A(function({ className: t, style: o, animated: s = !0, children: r, ...l }, c) {
|
|
986
|
+
return /* @__PURE__ */ M(
|
|
981
987
|
"div",
|
|
982
988
|
{
|
|
983
|
-
className: m(
|
|
989
|
+
className: m(Re.root, W.spaceInput, "spTextFieldRoot", t),
|
|
984
990
|
"data-animated": s ? void 0 : "false",
|
|
985
991
|
style: o,
|
|
986
992
|
children: [
|
|
987
993
|
r,
|
|
988
|
-
/* @__PURE__ */ n("input", { ...l, ref: c, className: m(
|
|
994
|
+
/* @__PURE__ */ n("input", { ...l, ref: c, className: m(Re.input, "spTextFieldInput") })
|
|
989
995
|
]
|
|
990
996
|
}
|
|
991
997
|
);
|
|
992
998
|
});
|
|
993
|
-
function
|
|
999
|
+
function X1({
|
|
994
1000
|
children: e
|
|
995
1001
|
}) {
|
|
996
|
-
return /* @__PURE__ */ n("span", { className:
|
|
1002
|
+
return /* @__PURE__ */ n("span", { className: Re.slot, children: e });
|
|
997
1003
|
}
|
|
998
|
-
const
|
|
999
|
-
root:
|
|
1000
|
-
textarea:
|
|
1001
|
-
},
|
|
1004
|
+
const He = Object.assign(U1, { Slot: X1 }), Y1 = "_root_1qu6w_1", Q1 = "_textarea_1qu6w_6", Te = {
|
|
1005
|
+
root: Y1,
|
|
1006
|
+
textarea: Q1
|
|
1007
|
+
}, As = A(function({ className: t, style: o, animated: s = !0, ...r }, l) {
|
|
1002
1008
|
return /* @__PURE__ */ n(
|
|
1003
1009
|
"div",
|
|
1004
1010
|
{
|
|
1005
|
-
className: m(
|
|
1011
|
+
className: m(Te.root, W.spaceInput, W.spaceTextArea, "spTextFieldRoot", t),
|
|
1006
1012
|
"data-animated": s ? void 0 : "false",
|
|
1007
1013
|
style: o,
|
|
1008
|
-
children: /* @__PURE__ */ n("textarea", { ...r, ref: l, className: m(
|
|
1014
|
+
children: /* @__PURE__ */ n("textarea", { ...r, ref: l, className: m(Te.textarea, "spTextAreaInput") })
|
|
1009
1015
|
}
|
|
1010
1016
|
);
|
|
1011
|
-
}),
|
|
1012
|
-
wrap:
|
|
1013
|
-
field:
|
|
1014
|
-
panel:
|
|
1015
|
-
status:
|
|
1016
|
-
list:
|
|
1017
|
-
option:
|
|
1018
|
-
active:
|
|
1019
|
-
label:
|
|
1020
|
-
meta:
|
|
1021
|
-
footer:
|
|
1017
|
+
}), J1 = "_wrap_1rgfg_12", eo = "_field_1rgfg_16", to = "_panel_1rgfg_22", no = "_status_1rgfg_73", oo = "_list_1rgfg_83", so = "_option_1rgfg_96", ro = "_active_1rgfg_108", lo = "_label_1rgfg_118", co = "_meta_1rgfg_125", ao = "_footer_1rgfg_131", B = {
|
|
1018
|
+
wrap: J1,
|
|
1019
|
+
field: eo,
|
|
1020
|
+
panel: to,
|
|
1021
|
+
status: no,
|
|
1022
|
+
list: oo,
|
|
1023
|
+
option: so,
|
|
1024
|
+
active: ro,
|
|
1025
|
+
label: lo,
|
|
1026
|
+
meta: co,
|
|
1027
|
+
footer: ao
|
|
1022
1028
|
};
|
|
1023
|
-
function
|
|
1029
|
+
function js({
|
|
1024
1030
|
value: e,
|
|
1025
1031
|
onValueChange: t,
|
|
1026
1032
|
options: o,
|
|
@@ -1028,200 +1034,201 @@ function zs({
|
|
|
1028
1034
|
icon: r,
|
|
1029
1035
|
caseSensitive: l = !1,
|
|
1030
1036
|
preFiltered: c = !1,
|
|
1031
|
-
loading:
|
|
1032
|
-
loadingMessage:
|
|
1033
|
-
emptyMessage:
|
|
1037
|
+
loading: u = !1,
|
|
1038
|
+
loadingMessage: d = "Loading…",
|
|
1039
|
+
emptyMessage: _,
|
|
1034
1040
|
footer: a,
|
|
1035
|
-
animated:
|
|
1041
|
+
animated: g = !0,
|
|
1036
1042
|
className: v,
|
|
1037
|
-
style:
|
|
1038
|
-
...
|
|
1043
|
+
style: f,
|
|
1044
|
+
...C
|
|
1039
1045
|
}) {
|
|
1040
|
-
const [b,
|
|
1046
|
+
const [b, $] = Z(!1), [k, x] = Z(0), E = z(null), D = z(null), N = F(), j = (p) => typeof p.label == "string" ? p.label : p.search ?? p.value, H = e.trim() !== "", R = ne(() => {
|
|
1047
|
+
if (!H) return [];
|
|
1041
1048
|
if (c) return o;
|
|
1042
|
-
const
|
|
1043
|
-
return
|
|
1044
|
-
}, [o, e, l, c]), I =
|
|
1045
|
-
|
|
1049
|
+
const p = l ? e : e.toLowerCase();
|
|
1050
|
+
return o.filter((h) => (l ? j(h) : j(h).toLowerCase()).includes(p));
|
|
1051
|
+
}, [o, e, l, c, H]), I = ne(() => R.filter((p) => !p.disabled), [R]), w = H && (R.length > 0 || u || _ != null), i = b && w;
|
|
1052
|
+
K(() => x(0), [R]), K(() => {
|
|
1046
1053
|
var h;
|
|
1047
|
-
if (!
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1050
|
-
}, [
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
if (!
|
|
1054
|
-
const
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1054
|
+
if (!i) return;
|
|
1055
|
+
const p = (h = D.current) == null ? void 0 : h.querySelector(`[data-index="${k}"]`);
|
|
1056
|
+
p == null || p.scrollIntoView({ block: "nearest" });
|
|
1057
|
+
}, [k, i]);
|
|
1058
|
+
const y = Le(() => $(!1), []);
|
|
1059
|
+
K(() => {
|
|
1060
|
+
if (!i) return;
|
|
1061
|
+
const p = (h) => {
|
|
1062
|
+
const P = E.current;
|
|
1063
|
+
P && h.target instanceof Node && !P.contains(h.target) && y();
|
|
1057
1064
|
};
|
|
1058
|
-
return document.addEventListener("pointerdown",
|
|
1059
|
-
}, [
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1062
|
-
},
|
|
1065
|
+
return document.addEventListener("pointerdown", p), () => document.removeEventListener("pointerdown", p);
|
|
1066
|
+
}, [i, y]);
|
|
1067
|
+
const L = z(!1), S = (p) => {
|
|
1068
|
+
p.disabled || (t(j(p)), s(p.value, p), L.current = !1, $(!1));
|
|
1069
|
+
}, T = (p) => {
|
|
1063
1070
|
if (I.length === 0) return;
|
|
1064
|
-
const h =
|
|
1065
|
-
|
|
1066
|
-
},
|
|
1067
|
-
if (
|
|
1068
|
-
|
|
1071
|
+
const h = R[k], Me = ((h && !h.disabled ? I.indexOf(h) : -1) + p + I.length) % I.length, ae = I[Me];
|
|
1072
|
+
ae && x(R.indexOf(ae));
|
|
1073
|
+
}, O = (p) => {
|
|
1074
|
+
if (p.key === "Escape") {
|
|
1075
|
+
i && p.stopPropagation(), $(!1);
|
|
1069
1076
|
return;
|
|
1070
1077
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
|
|
1078
|
+
if (p.key === "Tab") {
|
|
1079
|
+
$(!1);
|
|
1073
1080
|
return;
|
|
1074
1081
|
}
|
|
1075
|
-
if (!
|
|
1076
|
-
|
|
1082
|
+
if (!i) {
|
|
1083
|
+
p.key === "ArrowDown" && $(!0);
|
|
1077
1084
|
return;
|
|
1078
1085
|
}
|
|
1079
|
-
if (
|
|
1080
|
-
|
|
1081
|
-
else if (
|
|
1082
|
-
|
|
1083
|
-
else if (
|
|
1084
|
-
|
|
1086
|
+
if (p.key === "ArrowDown")
|
|
1087
|
+
p.preventDefault(), L.current = !0, T(1);
|
|
1088
|
+
else if (p.key === "ArrowUp")
|
|
1089
|
+
p.preventDefault(), L.current = !0, T(-1);
|
|
1090
|
+
else if (p.key === "Home") {
|
|
1091
|
+
p.preventDefault(), L.current = !0;
|
|
1085
1092
|
const h = I[0];
|
|
1086
|
-
h &&
|
|
1087
|
-
} else if (
|
|
1088
|
-
|
|
1093
|
+
h && x(R.indexOf(h));
|
|
1094
|
+
} else if (p.key === "End") {
|
|
1095
|
+
p.preventDefault(), L.current = !0;
|
|
1089
1096
|
const h = I[I.length - 1];
|
|
1090
|
-
h &&
|
|
1091
|
-
} else if (
|
|
1092
|
-
const h =
|
|
1093
|
-
h && !h.disabled && (
|
|
1097
|
+
h && x(R.indexOf(h));
|
|
1098
|
+
} else if (p.key === "Enter" || p.key === " " && L.current) {
|
|
1099
|
+
const h = R[k];
|
|
1100
|
+
h && !h.disabled && (p.preventDefault(), S(h));
|
|
1094
1101
|
}
|
|
1095
|
-
},
|
|
1096
|
-
return /* @__PURE__ */
|
|
1102
|
+
}, ce = i ? R[k] : void 0;
|
|
1103
|
+
return /* @__PURE__ */ M("div", { ref: E, className: m(B.wrap, v), style: f, children: [
|
|
1097
1104
|
/* @__PURE__ */ n(
|
|
1098
|
-
|
|
1105
|
+
He,
|
|
1099
1106
|
{
|
|
1100
|
-
...
|
|
1101
|
-
type:
|
|
1107
|
+
...C,
|
|
1108
|
+
type: C.type ?? "text",
|
|
1102
1109
|
role: "combobox",
|
|
1103
|
-
animated:
|
|
1104
|
-
className:
|
|
1110
|
+
animated: g,
|
|
1111
|
+
className: B.field,
|
|
1105
1112
|
autoComplete: "off",
|
|
1106
|
-
"aria-expanded":
|
|
1107
|
-
"aria-controls":
|
|
1113
|
+
"aria-expanded": i,
|
|
1114
|
+
"aria-controls": N,
|
|
1108
1115
|
"aria-autocomplete": "list",
|
|
1109
|
-
"aria-activedescendant":
|
|
1116
|
+
"aria-activedescendant": ce && !ce.disabled ? `${N}-${k}` : void 0,
|
|
1110
1117
|
value: e,
|
|
1111
|
-
onFocus: (
|
|
1118
|
+
onFocus: (p) => {
|
|
1112
1119
|
var h;
|
|
1113
|
-
(h =
|
|
1120
|
+
(h = C.onFocus) == null || h.call(C, p), $(!0);
|
|
1114
1121
|
},
|
|
1115
|
-
onClick: (
|
|
1122
|
+
onClick: (p) => {
|
|
1116
1123
|
var h;
|
|
1117
|
-
(h =
|
|
1124
|
+
(h = C.onClick) == null || h.call(C, p), $(!0);
|
|
1118
1125
|
},
|
|
1119
|
-
onKeyDown: (
|
|
1126
|
+
onKeyDown: (p) => {
|
|
1120
1127
|
var h;
|
|
1121
|
-
(h =
|
|
1128
|
+
(h = C.onKeyDown) == null || h.call(C, p), O(p);
|
|
1122
1129
|
},
|
|
1123
|
-
onChange: (
|
|
1124
|
-
t(
|
|
1130
|
+
onChange: (p) => {
|
|
1131
|
+
L.current = !1, t(p.target.value), $(!0);
|
|
1125
1132
|
},
|
|
1126
|
-
children: r != null && /* @__PURE__ */ n(
|
|
1133
|
+
children: r != null && /* @__PURE__ */ n(He.Slot, { children: r })
|
|
1127
1134
|
}
|
|
1128
1135
|
),
|
|
1129
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ M(
|
|
1130
1137
|
"div",
|
|
1131
1138
|
{
|
|
1132
|
-
className: m(
|
|
1133
|
-
hidden: !
|
|
1134
|
-
"data-animated":
|
|
1139
|
+
className: m(B.panel, W.spacePanel),
|
|
1140
|
+
hidden: !i,
|
|
1141
|
+
"data-animated": g ? void 0 : "false",
|
|
1135
1142
|
children: [
|
|
1136
|
-
|
|
1137
|
-
!
|
|
1143
|
+
H && u && /* @__PURE__ */ n("p", { className: B.status, children: d }),
|
|
1144
|
+
H && !u && R.length === 0 && _ != null && /* @__PURE__ */ n("p", { className: B.status, children: _ }),
|
|
1138
1145
|
/* @__PURE__ */ n(
|
|
1139
1146
|
"ul",
|
|
1140
1147
|
{
|
|
1141
1148
|
ref: D,
|
|
1142
|
-
id:
|
|
1149
|
+
id: N,
|
|
1143
1150
|
role: "listbox",
|
|
1144
|
-
className:
|
|
1145
|
-
hidden:
|
|
1146
|
-
children:
|
|
1151
|
+
className: B.list,
|
|
1152
|
+
hidden: u || R.length === 0,
|
|
1153
|
+
children: R.map((p, h) => /* @__PURE__ */ M(
|
|
1147
1154
|
"li",
|
|
1148
1155
|
{
|
|
1149
|
-
id: `${
|
|
1156
|
+
id: `${N}-${h}`,
|
|
1150
1157
|
"data-index": h,
|
|
1151
1158
|
role: "option",
|
|
1152
|
-
"aria-selected": h ===
|
|
1153
|
-
"aria-disabled":
|
|
1159
|
+
"aria-selected": h === k,
|
|
1160
|
+
"aria-disabled": p.disabled || void 0,
|
|
1154
1161
|
className: m(
|
|
1155
|
-
|
|
1156
|
-
h ===
|
|
1162
|
+
B.option,
|
|
1163
|
+
h === k && !p.disabled && B.active,
|
|
1157
1164
|
"spAutocompleteOption"
|
|
1158
1165
|
),
|
|
1159
|
-
onMouseEnter: () => !
|
|
1160
|
-
onPointerDown: (
|
|
1161
|
-
|
|
1166
|
+
onMouseEnter: () => !p.disabled && x(h),
|
|
1167
|
+
onPointerDown: (P) => {
|
|
1168
|
+
P.preventDefault(), S(p);
|
|
1162
1169
|
},
|
|
1163
1170
|
children: [
|
|
1164
|
-
/* @__PURE__ */ n("span", { className:
|
|
1165
|
-
|
|
1171
|
+
/* @__PURE__ */ n("span", { className: B.label, children: p.label }),
|
|
1172
|
+
p.meta != null && /* @__PURE__ */ n("span", { className: B.meta, children: p.meta })
|
|
1166
1173
|
]
|
|
1167
1174
|
},
|
|
1168
|
-
|
|
1175
|
+
p.value
|
|
1169
1176
|
))
|
|
1170
1177
|
}
|
|
1171
1178
|
),
|
|
1172
|
-
a != null && /* @__PURE__ */ n("div", { className:
|
|
1179
|
+
a != null && /* @__PURE__ */ n("div", { className: B.footer, children: a })
|
|
1173
1180
|
]
|
|
1174
1181
|
}
|
|
1175
1182
|
)
|
|
1176
1183
|
] });
|
|
1177
1184
|
}
|
|
1178
|
-
const
|
|
1179
|
-
root:
|
|
1180
|
-
track:
|
|
1181
|
-
range:
|
|
1182
|
-
thumb:
|
|
1183
|
-
input:
|
|
1184
|
-
},
|
|
1185
|
-
const a = t[0] ?? s,
|
|
1186
|
-
return /* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */ n("span", { className: m(
|
|
1188
|
-
/* @__PURE__ */ n("span", { className: m(
|
|
1185
|
+
const io = "_root_14a1b_1", uo = "_track_14a1b_12", fo = "_range_14a1b_22", _o = "_thumb_14a1b_28", po = "_input_14a1b_38", pe = {
|
|
1186
|
+
root: io,
|
|
1187
|
+
track: uo,
|
|
1188
|
+
range: fo,
|
|
1189
|
+
thumb: _o,
|
|
1190
|
+
input: po
|
|
1191
|
+
}, Vs = A(function({ value: t, onValueChange: o, min: s, max: r, step: l, disabled: c, className: u, "aria-label": d }, _) {
|
|
1192
|
+
const a = t[0] ?? s, g = r === s ? 0 : (a - s) / (r - s) * 100;
|
|
1193
|
+
return /* @__PURE__ */ M("span", { className: m(pe.root, W.spaceSlider, u), "data-disabled": c || void 0, children: [
|
|
1194
|
+
/* @__PURE__ */ n("span", { className: m(pe.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: m(pe.range, "spSliderRange"), style: { width: `${g}%` } }) }),
|
|
1195
|
+
/* @__PURE__ */ n("span", { className: m(pe.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
|
|
1189
1196
|
/* @__PURE__ */ n(
|
|
1190
1197
|
"input",
|
|
1191
1198
|
{
|
|
1192
|
-
ref:
|
|
1199
|
+
ref: _,
|
|
1193
1200
|
type: "range",
|
|
1194
|
-
className: m(
|
|
1201
|
+
className: m(pe.input, "spSliderInput"),
|
|
1195
1202
|
value: a,
|
|
1196
1203
|
min: s,
|
|
1197
1204
|
max: r,
|
|
1198
1205
|
step: l,
|
|
1199
1206
|
disabled: c,
|
|
1200
|
-
"aria-label":
|
|
1207
|
+
"aria-label": d,
|
|
1201
1208
|
onChange: (v) => o([Number(v.target.value)])
|
|
1202
1209
|
}
|
|
1203
1210
|
)
|
|
1204
1211
|
] });
|
|
1205
|
-
}),
|
|
1206
|
-
root:
|
|
1207
|
-
item:
|
|
1208
|
-
selfLabeled:
|
|
1209
|
-
input:
|
|
1210
|
-
orb:
|
|
1211
|
-
},
|
|
1212
|
-
function
|
|
1213
|
-
const l =
|
|
1214
|
-
return /* @__PURE__ */ n(
|
|
1212
|
+
}), go = "_root_1qhel_2", Co = "_item_1qhel_8", mo = "_selfLabeled_1qhel_15", ho = "_input_1qhel_19", vo = "_orb_1qhel_35", te = {
|
|
1213
|
+
root: go,
|
|
1214
|
+
item: Co,
|
|
1215
|
+
selfLabeled: mo,
|
|
1216
|
+
input: ho,
|
|
1217
|
+
orb: vo
|
|
1218
|
+
}, Be = re(null);
|
|
1219
|
+
function wo({ value: e, onValueChange: t, disabled: o, className: s, children: r }) {
|
|
1220
|
+
const l = F();
|
|
1221
|
+
return /* @__PURE__ */ n(Be.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: m(te.root, s), children: r }) });
|
|
1215
1222
|
}
|
|
1216
|
-
function
|
|
1217
|
-
const s =
|
|
1223
|
+
function bo({ value: e, disabled: t, children: o }) {
|
|
1224
|
+
const s = le(Be);
|
|
1218
1225
|
if (!s) throw new Error("RadioGroup.Item must be inside a RadioGroup");
|
|
1219
|
-
const r = t || s.disabled, l = /* @__PURE__ */
|
|
1226
|
+
const r = t || s.disabled, l = /* @__PURE__ */ M(oe, { children: [
|
|
1220
1227
|
/* @__PURE__ */ n(
|
|
1221
1228
|
"input",
|
|
1222
1229
|
{
|
|
1223
1230
|
type: "radio",
|
|
1224
|
-
className:
|
|
1231
|
+
className: te.input,
|
|
1225
1232
|
name: s.name,
|
|
1226
1233
|
value: e,
|
|
1227
1234
|
checked: s.value === e,
|
|
@@ -1229,17 +1236,17 @@ function Co({ value: e, disabled: t, children: o }) {
|
|
|
1229
1236
|
onChange: () => s.onValueChange(e)
|
|
1230
1237
|
}
|
|
1231
1238
|
),
|
|
1232
|
-
/* @__PURE__ */ n("span", { className: m(
|
|
1239
|
+
/* @__PURE__ */ n("span", { className: m(te.orb, "spRadioOrb"), "aria-hidden": "true" })
|
|
1233
1240
|
] });
|
|
1234
|
-
return o == null ? /* @__PURE__ */ n("span", { className:
|
|
1241
|
+
return o == null ? /* @__PURE__ */ n("span", { className: te.item, children: l }) : /* @__PURE__ */ M("label", { className: m(te.item, te.selfLabeled), children: [
|
|
1235
1242
|
l,
|
|
1236
1243
|
o
|
|
1237
1244
|
] });
|
|
1238
1245
|
}
|
|
1239
|
-
const
|
|
1240
|
-
progress:
|
|
1246
|
+
const Os = Object.assign(wo, { Item: bo }), yo = "_progress_1cre6_16", xo = {
|
|
1247
|
+
progress: yo
|
|
1241
1248
|
};
|
|
1242
|
-
function
|
|
1249
|
+
function Bs({ value: e, max: t = 100, className: o, style: s, ...r }) {
|
|
1243
1250
|
const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
|
|
1244
1251
|
return /* @__PURE__ */ n(
|
|
1245
1252
|
"div",
|
|
@@ -1249,118 +1256,118 @@ function Hs({ value: e, max: t = 100, className: o, style: s, ...r }) {
|
|
|
1249
1256
|
"aria-valuenow": e,
|
|
1250
1257
|
"aria-valuemin": 0,
|
|
1251
1258
|
"aria-valuemax": t,
|
|
1252
|
-
className: m(
|
|
1259
|
+
className: m(xo.progress, o),
|
|
1253
1260
|
style: s,
|
|
1254
1261
|
children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
|
|
1255
1262
|
}
|
|
1256
1263
|
);
|
|
1257
1264
|
}
|
|
1258
|
-
const
|
|
1259
|
-
message:
|
|
1260
|
-
info:
|
|
1261
|
-
warning:
|
|
1262
|
-
alert:
|
|
1263
|
-
icon:
|
|
1264
|
-
body:
|
|
1265
|
-
title:
|
|
1266
|
-
text:
|
|
1267
|
-
},
|
|
1268
|
-
info: /* @__PURE__ */ n(
|
|
1269
|
-
warning: /* @__PURE__ */ n(
|
|
1270
|
-
alert: /* @__PURE__ */ n(
|
|
1271
|
-
},
|
|
1265
|
+
const $o = "_message_1522x_14", Lo = "_info_1522x_44", ko = "_warning_1522x_49", Mo = "_alert_1522x_56", No = "_icon_1522x_63", Ro = "_body_1522x_74", zo = "_title_1522x_83", qo = "_text_1522x_90", ee = {
|
|
1266
|
+
message: $o,
|
|
1267
|
+
info: Lo,
|
|
1268
|
+
warning: ko,
|
|
1269
|
+
alert: Mo,
|
|
1270
|
+
icon: No,
|
|
1271
|
+
body: Ro,
|
|
1272
|
+
title: zo,
|
|
1273
|
+
text: qo
|
|
1274
|
+
}, Do = {
|
|
1275
|
+
info: /* @__PURE__ */ n(Sn, {}),
|
|
1276
|
+
warning: /* @__PURE__ */ n(Zn, {}),
|
|
1277
|
+
alert: /* @__PURE__ */ n(An, {})
|
|
1278
|
+
}, Io = {
|
|
1272
1279
|
info: { role: "status", live: "polite" },
|
|
1273
1280
|
warning: { role: "status", live: "polite" },
|
|
1274
1281
|
alert: { role: "alert" }
|
|
1275
|
-
},
|
|
1276
|
-
const
|
|
1277
|
-
return /* @__PURE__ */
|
|
1282
|
+
}, Ws = A(function({ variant: t = "info", title: o, icon: s, className: r, children: l, ...c }, u) {
|
|
1283
|
+
const d = s === void 0 ? Do[t] : s, { role: _, live: a } = Io[t];
|
|
1284
|
+
return /* @__PURE__ */ M(
|
|
1278
1285
|
"div",
|
|
1279
1286
|
{
|
|
1280
1287
|
...c,
|
|
1281
|
-
ref:
|
|
1282
|
-
role:
|
|
1288
|
+
ref: u,
|
|
1289
|
+
role: _,
|
|
1283
1290
|
"aria-live": a,
|
|
1284
|
-
className: m(
|
|
1291
|
+
className: m(ee.message, ee[t], r),
|
|
1285
1292
|
children: [
|
|
1286
|
-
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
o != null && /* @__PURE__ */ n("p", { className:
|
|
1289
|
-
l != null && /* @__PURE__ */ n("div", { className:
|
|
1293
|
+
d != null && /* @__PURE__ */ n("span", { className: ee.icon, "aria-hidden": "true", children: d }),
|
|
1294
|
+
/* @__PURE__ */ M("div", { className: ee.body, children: [
|
|
1295
|
+
o != null && /* @__PURE__ */ n("p", { className: ee.title, children: o }),
|
|
1296
|
+
l != null && /* @__PURE__ */ n("div", { className: ee.text, children: l })
|
|
1290
1297
|
] })
|
|
1291
1298
|
]
|
|
1292
1299
|
}
|
|
1293
1300
|
);
|
|
1294
|
-
}),
|
|
1295
|
-
dialog:
|
|
1296
|
-
inner:
|
|
1297
|
-
size4:
|
|
1298
|
-
title:
|
|
1299
|
-
closeX:
|
|
1301
|
+
}), Ho = "_dialog_zbndh_2", To = "_inner_zbndh_71", Eo = "_size4_zbndh_76", So = "_title_zbndh_80", Zo = "_closeX_zbndh_88", Ce = {
|
|
1302
|
+
dialog: Ho,
|
|
1303
|
+
inner: To,
|
|
1304
|
+
size4: Eo,
|
|
1305
|
+
title: So,
|
|
1306
|
+
closeX: Zo
|
|
1300
1307
|
};
|
|
1301
|
-
let
|
|
1302
|
-
const
|
|
1303
|
-
const e =
|
|
1308
|
+
let $e = 0;
|
|
1309
|
+
const We = re(null), ve = () => {
|
|
1310
|
+
const e = le(We);
|
|
1304
1311
|
if (!e) throw new Error("Dialog parts must be inside a Dialog");
|
|
1305
1312
|
return e;
|
|
1306
1313
|
};
|
|
1307
|
-
function
|
|
1314
|
+
function Fe(e) {
|
|
1308
1315
|
return function({ open: o, onOpenChange: s, children: r }) {
|
|
1309
|
-
const [l, c] =
|
|
1310
|
-
|
|
1311
|
-
}, a =
|
|
1312
|
-
return /* @__PURE__ */ n(
|
|
1316
|
+
const [l, c] = Z(!1), u = o !== void 0, d = u ? o : l, _ = (C) => {
|
|
1317
|
+
u || c(C), s == null || s(C);
|
|
1318
|
+
}, a = F(), g = F(), [v, f] = Z(!1);
|
|
1319
|
+
return /* @__PURE__ */ n(We.Provider, { value: { open: d, setOpen: _, titleId: a, descId: g, alert: e, hasDesc: v, setHasDesc: f }, children: r });
|
|
1313
1320
|
};
|
|
1314
1321
|
}
|
|
1315
|
-
const
|
|
1316
|
-
if (!
|
|
1322
|
+
const Ao = Fe(!1), Pe = (e, t) => {
|
|
1323
|
+
if (!se(e)) return e;
|
|
1317
1324
|
const o = e;
|
|
1318
|
-
return
|
|
1325
|
+
return ke(o, {
|
|
1319
1326
|
onClick: (s) => {
|
|
1320
1327
|
var r, l;
|
|
1321
1328
|
(l = (r = o.props).onClick) == null || l.call(r, s), t();
|
|
1322
1329
|
}
|
|
1323
1330
|
});
|
|
1324
1331
|
};
|
|
1325
|
-
function
|
|
1332
|
+
function Ke({
|
|
1326
1333
|
children: e
|
|
1327
1334
|
}) {
|
|
1328
|
-
const t =
|
|
1329
|
-
return /* @__PURE__ */ n(
|
|
1335
|
+
const t = ve();
|
|
1336
|
+
return /* @__PURE__ */ n(oe, { children: Pe(e, () => t.setOpen(!0)) });
|
|
1330
1337
|
}
|
|
1331
|
-
function
|
|
1338
|
+
function qe({
|
|
1332
1339
|
children: e
|
|
1333
1340
|
}) {
|
|
1334
|
-
const t =
|
|
1335
|
-
return /* @__PURE__ */ n(
|
|
1341
|
+
const t = ve();
|
|
1342
|
+
return /* @__PURE__ */ n(oe, { children: Pe(e, () => t.setOpen(!1)) });
|
|
1336
1343
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const c =
|
|
1339
|
-
return
|
|
1340
|
-
const a =
|
|
1344
|
+
function Ge({ size: e = "3", maxWidth: t, className: o, style: s, children: r, ...l }) {
|
|
1345
|
+
const c = ve(), u = z(null), d = z(!1), _ = z(!1);
|
|
1346
|
+
return K(() => {
|
|
1347
|
+
const a = u.current;
|
|
1341
1348
|
a && (c.open && !a.open ? a.showModal() : !c.open && a.open && a.close());
|
|
1342
|
-
}, [c.open]),
|
|
1349
|
+
}, [c.open]), K(() => {
|
|
1343
1350
|
if (c.open)
|
|
1344
|
-
return
|
|
1345
|
-
|
|
1351
|
+
return $e += 1, $e === 1 && (document.body.style.overflow = "hidden"), () => {
|
|
1352
|
+
$e -= 1, $e === 0 && (document.body.style.overflow = "");
|
|
1346
1353
|
};
|
|
1347
1354
|
}, [c.open]), /* @__PURE__ */ n(
|
|
1348
1355
|
"dialog",
|
|
1349
1356
|
{
|
|
1350
1357
|
...l,
|
|
1351
|
-
ref:
|
|
1358
|
+
ref: u,
|
|
1352
1359
|
role: c.alert ? "alertdialog" : void 0,
|
|
1353
1360
|
"aria-labelledby": c.titleId,
|
|
1354
1361
|
"aria-describedby": c.hasDesc ? c.descId : void 0,
|
|
1355
|
-
className: m(
|
|
1362
|
+
className: m(Ce.dialog, "spDialog", e === "4" && Ce.size4, o),
|
|
1356
1363
|
style: { ...t ? { maxWidth: t } : null, ...s },
|
|
1357
1364
|
onKeyDownCapture: (a) => {
|
|
1358
|
-
var
|
|
1359
|
-
a.key === "Escape" && ((
|
|
1365
|
+
var g, v;
|
|
1366
|
+
a.key === "Escape" && ((g = u.current) != null && g.querySelector("dialog[open]") || (v = u.current) != null && v.querySelector('[role="listbox"]:not([hidden])') && (d.current = !0));
|
|
1360
1367
|
},
|
|
1361
1368
|
onCancel: (a) => {
|
|
1362
|
-
if (a.preventDefault(),
|
|
1363
|
-
|
|
1369
|
+
if (a.preventDefault(), d.current) {
|
|
1370
|
+
d.current = !1;
|
|
1364
1371
|
return;
|
|
1365
1372
|
}
|
|
1366
1373
|
c.setOpen(!1);
|
|
@@ -1369,20 +1376,20 @@ function je({ size: e = "3", maxWidth: t, className: o, style: s, children: r, .
|
|
|
1369
1376
|
c.open && c.setOpen(!1);
|
|
1370
1377
|
},
|
|
1371
1378
|
onPointerDown: (a) => {
|
|
1372
|
-
|
|
1379
|
+
_.current = a.target === u.current;
|
|
1373
1380
|
},
|
|
1374
1381
|
onClick: (a) => {
|
|
1375
|
-
!c.alert && a.target ===
|
|
1382
|
+
!c.alert && a.target === u.current && _.current && c.setOpen(!1);
|
|
1376
1383
|
},
|
|
1377
|
-
children: /* @__PURE__ */
|
|
1384
|
+
children: /* @__PURE__ */ M("div", { className: Ce.inner, children: [
|
|
1378
1385
|
!c.alert && /* @__PURE__ */ n(
|
|
1379
1386
|
"button",
|
|
1380
1387
|
{
|
|
1381
1388
|
type: "button",
|
|
1382
|
-
className:
|
|
1389
|
+
className: Ce.closeX,
|
|
1383
1390
|
"aria-label": "Close",
|
|
1384
1391
|
onClick: () => c.setOpen(!1),
|
|
1385
|
-
children: /* @__PURE__ */ n(
|
|
1392
|
+
children: /* @__PURE__ */ n(En, { width: 16, height: 16 })
|
|
1386
1393
|
}
|
|
1387
1394
|
),
|
|
1388
1395
|
r
|
|
@@ -1390,78 +1397,78 @@ function je({ size: e = "3", maxWidth: t, className: o, style: s, children: r, .
|
|
|
1390
1397
|
}
|
|
1391
1398
|
);
|
|
1392
1399
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const o =
|
|
1395
|
-
return /* @__PURE__ */ n(
|
|
1400
|
+
function Ue({ className: e, ...t }) {
|
|
1401
|
+
const o = ve();
|
|
1402
|
+
return /* @__PURE__ */ n(Mt, { as: "h2", size: "5", ...t, id: o.titleId, className: m(Ce.title, e) });
|
|
1396
1403
|
}
|
|
1397
|
-
function
|
|
1398
|
-
const t =
|
|
1399
|
-
return
|
|
1404
|
+
function Xe(e) {
|
|
1405
|
+
const t = ve(), { setHasDesc: o } = t;
|
|
1406
|
+
return he(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Ct, { as: "p", ...e, id: t.descId });
|
|
1400
1407
|
}
|
|
1401
|
-
const
|
|
1402
|
-
Trigger:
|
|
1403
|
-
Close:
|
|
1404
|
-
Content:
|
|
1405
|
-
Title:
|
|
1406
|
-
Description:
|
|
1407
|
-
}),
|
|
1408
|
-
Trigger:
|
|
1409
|
-
Content:
|
|
1410
|
-
Title:
|
|
1411
|
-
Description:
|
|
1412
|
-
Cancel:
|
|
1413
|
-
Action:
|
|
1414
|
-
}),
|
|
1415
|
-
menu:
|
|
1416
|
-
label:
|
|
1417
|
-
item:
|
|
1418
|
-
danger:
|
|
1419
|
-
separator:
|
|
1420
|
-
},
|
|
1421
|
-
const e =
|
|
1408
|
+
const Fs = Object.assign(Ao, {
|
|
1409
|
+
Trigger: Ke,
|
|
1410
|
+
Close: qe,
|
|
1411
|
+
Content: Ge,
|
|
1412
|
+
Title: Ue,
|
|
1413
|
+
Description: Xe
|
|
1414
|
+
}), jo = qe, Vo = qe, Ps = Object.assign(Fe(!0), {
|
|
1415
|
+
Trigger: Ke,
|
|
1416
|
+
Content: Ge,
|
|
1417
|
+
Title: Ue,
|
|
1418
|
+
Description: Xe,
|
|
1419
|
+
Cancel: jo,
|
|
1420
|
+
Action: Vo
|
|
1421
|
+
}), Oo = "_menu_11ctg_1", Bo = "_label_11ctg_51", Wo = "_item_11ctg_61", Fo = "_danger_11ctg_80", Po = "_separator_11ctg_84", me = {
|
|
1422
|
+
menu: Oo,
|
|
1423
|
+
label: Bo,
|
|
1424
|
+
item: Wo,
|
|
1425
|
+
danger: Fo,
|
|
1426
|
+
separator: Po
|
|
1427
|
+
}, Ye = re(null), Ko = () => {
|
|
1428
|
+
const e = le(Ye);
|
|
1422
1429
|
if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
|
|
1423
1430
|
return e;
|
|
1424
|
-
},
|
|
1425
|
-
const e =
|
|
1431
|
+
}, Qe = re(null), Go = () => {
|
|
1432
|
+
const e = le(Qe);
|
|
1426
1433
|
if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
|
|
1427
1434
|
return e;
|
|
1428
1435
|
};
|
|
1429
|
-
function
|
|
1436
|
+
function Uo(e) {
|
|
1430
1437
|
return e.current ? (e.current = !1, !0) : !1;
|
|
1431
1438
|
}
|
|
1432
|
-
function
|
|
1439
|
+
function Ee(e) {
|
|
1433
1440
|
e.current = !0;
|
|
1434
1441
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const [r, l] =
|
|
1437
|
-
return
|
|
1438
|
-
var
|
|
1439
|
-
const
|
|
1440
|
-
if (
|
|
1442
|
+
function Xo({ label: e, align: t = "start", children: o, ...s }) {
|
|
1443
|
+
const [r, l] = Z(!1), c = F(), u = z(null), d = z(null), _ = z(!1), a = z(!1), [g, v] = Z(null);
|
|
1444
|
+
return he(() => {
|
|
1445
|
+
var C;
|
|
1446
|
+
const f = d.current;
|
|
1447
|
+
if (f)
|
|
1441
1448
|
if (r) {
|
|
1442
|
-
const b =
|
|
1449
|
+
const b = u.current;
|
|
1443
1450
|
if (b) {
|
|
1444
|
-
const
|
|
1445
|
-
v({ top:
|
|
1451
|
+
const $ = b.getBoundingClientRect(), k = t === "end" ? "auto" : $.left, x = t === "end" ? window.innerWidth - $.right : "auto";
|
|
1452
|
+
v({ top: $.bottom + 6, left: k, right: x });
|
|
1446
1453
|
}
|
|
1447
|
-
|
|
1448
|
-
} else
|
|
1449
|
-
}, [r, t]),
|
|
1454
|
+
f.showPopover(), (C = f.querySelector('[role="menuitem"]')) == null || C.focus();
|
|
1455
|
+
} else f.matches(":popover-open") && f.hidePopover();
|
|
1456
|
+
}, [r, t]), K(() => {
|
|
1450
1457
|
if (!r) return;
|
|
1451
|
-
const
|
|
1452
|
-
return window.addEventListener("resize",
|
|
1453
|
-
}, [r]), /* @__PURE__ */ n(
|
|
1458
|
+
const f = () => l(!1);
|
|
1459
|
+
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
1460
|
+
}, [r]), /* @__PURE__ */ n(Ye.Provider, { value: { open: r, setOpen: l, menuId: c }, children: /* @__PURE__ */ M(Qe.Provider, { value: a, children: [
|
|
1454
1461
|
/* @__PURE__ */ n(
|
|
1455
|
-
|
|
1462
|
+
Ze,
|
|
1456
1463
|
{
|
|
1457
1464
|
...s,
|
|
1458
|
-
ref:
|
|
1465
|
+
ref: u,
|
|
1459
1466
|
"aria-haspopup": "menu",
|
|
1460
1467
|
"aria-expanded": r,
|
|
1461
1468
|
"aria-controls": c,
|
|
1462
|
-
onClick: (
|
|
1463
|
-
var
|
|
1464
|
-
(
|
|
1469
|
+
onClick: (f) => {
|
|
1470
|
+
var C;
|
|
1471
|
+
(C = s.onClick) == null || C.call(s, f), !Uo(_) && l(!r);
|
|
1465
1472
|
},
|
|
1466
1473
|
children: e
|
|
1467
1474
|
}
|
|
@@ -1469,95 +1476,95 @@ function Wo({ label: e, align: t = "start", children: o, ...s }) {
|
|
|
1469
1476
|
/* @__PURE__ */ n(
|
|
1470
1477
|
"div",
|
|
1471
1478
|
{
|
|
1472
|
-
ref:
|
|
1479
|
+
ref: d,
|
|
1473
1480
|
id: c,
|
|
1474
1481
|
role: "menu",
|
|
1475
1482
|
popover: "auto",
|
|
1476
|
-
className:
|
|
1477
|
-
style:
|
|
1478
|
-
top:
|
|
1479
|
-
left:
|
|
1480
|
-
right:
|
|
1483
|
+
className: me.menu,
|
|
1484
|
+
style: g ? {
|
|
1485
|
+
top: g.top,
|
|
1486
|
+
left: g.left === "auto" ? "auto" : g.left,
|
|
1487
|
+
right: g.right === "auto" ? "auto" : g.right
|
|
1481
1488
|
} : void 0,
|
|
1482
|
-
onToggle: (
|
|
1483
|
-
if (
|
|
1484
|
-
const
|
|
1485
|
-
a.current = !1,
|
|
1486
|
-
|
|
1489
|
+
onToggle: (f) => {
|
|
1490
|
+
if (f.nativeEvent.newState === "closed") {
|
|
1491
|
+
const C = a.current;
|
|
1492
|
+
a.current = !1, C || (_.current = !0, setTimeout(() => {
|
|
1493
|
+
_.current = !1;
|
|
1487
1494
|
}, 300)), r && l(!1);
|
|
1488
1495
|
}
|
|
1489
1496
|
},
|
|
1490
|
-
onKeyDown: (
|
|
1491
|
-
var
|
|
1492
|
-
const
|
|
1493
|
-
((
|
|
1494
|
-
), b =
|
|
1495
|
-
|
|
1497
|
+
onKeyDown: (f) => {
|
|
1498
|
+
var $, k, x, E, D, N;
|
|
1499
|
+
const C = Array.from(
|
|
1500
|
+
(($ = d.current) == null ? void 0 : $.querySelectorAll('[role="menuitem"]')) ?? []
|
|
1501
|
+
), b = C.indexOf(document.activeElement);
|
|
1502
|
+
f.key === "ArrowDown" ? (f.preventDefault(), (k = C[Math.min(b + 1, C.length - 1)]) == null || k.focus()) : f.key === "ArrowUp" ? (f.preventDefault(), (x = C[Math.max(b - 1, 0)]) == null || x.focus()) : f.key === "Home" ? (f.preventDefault(), (E = C[0]) == null || E.focus()) : f.key === "End" ? (f.preventDefault(), (D = C[C.length - 1]) == null || D.focus()) : f.key === "Escape" && (l(!1), (N = u.current) == null || N.focus());
|
|
1496
1503
|
},
|
|
1497
1504
|
children: o
|
|
1498
1505
|
}
|
|
1499
1506
|
)
|
|
1500
1507
|
] }) });
|
|
1501
1508
|
}
|
|
1502
|
-
function
|
|
1509
|
+
function Yo({
|
|
1503
1510
|
children: e
|
|
1504
1511
|
}) {
|
|
1505
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1512
|
+
return /* @__PURE__ */ n("div", { className: me.label, children: e });
|
|
1506
1513
|
}
|
|
1507
|
-
function
|
|
1508
|
-
const r =
|
|
1509
|
-
|
|
1514
|
+
function Qo({ asChild: e, color: t, onSelect: o, children: s }) {
|
|
1515
|
+
const r = Ko(), l = Go(), c = m(me.item, t === "danger" && me.danger), u = () => {
|
|
1516
|
+
Ee(l), r.setOpen(!1), o == null || o();
|
|
1510
1517
|
};
|
|
1511
|
-
if (e &&
|
|
1512
|
-
const
|
|
1513
|
-
className:
|
|
1518
|
+
if (e && se(s)) {
|
|
1519
|
+
const d = s, {
|
|
1520
|
+
className: _,
|
|
1514
1521
|
onClick: a,
|
|
1515
|
-
children:
|
|
1522
|
+
children: g,
|
|
1516
1523
|
role: v,
|
|
1517
|
-
tabIndex:
|
|
1518
|
-
...
|
|
1519
|
-
} =
|
|
1520
|
-
return
|
|
1521
|
-
|
|
1524
|
+
tabIndex: f,
|
|
1525
|
+
...C
|
|
1526
|
+
} = d.props, b = d.ref;
|
|
1527
|
+
return ze(
|
|
1528
|
+
d.type,
|
|
1522
1529
|
{
|
|
1523
|
-
key:
|
|
1530
|
+
key: d.key,
|
|
1524
1531
|
ref: b,
|
|
1525
1532
|
role: "menuitem",
|
|
1526
1533
|
tabIndex: -1,
|
|
1527
|
-
...
|
|
1528
|
-
className: m(c,
|
|
1529
|
-
onClick: (
|
|
1530
|
-
a == null || a(
|
|
1534
|
+
...C,
|
|
1535
|
+
className: m(c, _),
|
|
1536
|
+
onClick: ($) => {
|
|
1537
|
+
a == null || a($), Ee(l), r.setOpen(!1);
|
|
1531
1538
|
}
|
|
1532
1539
|
},
|
|
1533
|
-
|
|
1540
|
+
g
|
|
1534
1541
|
);
|
|
1535
1542
|
}
|
|
1536
|
-
return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: c, onClick:
|
|
1543
|
+
return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: c, onClick: u, children: s });
|
|
1537
1544
|
}
|
|
1538
|
-
function
|
|
1539
|
-
return /* @__PURE__ */ n("div", { role: "separator", className:
|
|
1545
|
+
function Jo() {
|
|
1546
|
+
return /* @__PURE__ */ n("div", { role: "separator", className: me.separator });
|
|
1540
1547
|
}
|
|
1541
|
-
const
|
|
1542
|
-
list:
|
|
1543
|
-
trigger:
|
|
1544
|
-
},
|
|
1545
|
-
const e =
|
|
1548
|
+
const Ks = Object.assign(Xo, { Item: Qo, Separator: Jo, Label: Yo }), es = "_list_1hc3r_19", ts = "_trigger_1hc3r_28", Je = {
|
|
1549
|
+
list: es,
|
|
1550
|
+
trigger: ts
|
|
1551
|
+
}, et = re(null), tt = () => {
|
|
1552
|
+
const e = le(et);
|
|
1546
1553
|
if (!e) throw new Error("Tabs parts must be inside a Tabs");
|
|
1547
1554
|
return e;
|
|
1548
1555
|
};
|
|
1549
|
-
function
|
|
1550
|
-
const r =
|
|
1551
|
-
return /* @__PURE__ */ n(
|
|
1556
|
+
function ns({ value: e, onValueChange: t, className: o, children: s }) {
|
|
1557
|
+
const r = F();
|
|
1558
|
+
return /* @__PURE__ */ n(et.Provider, { value: { value: e, onValueChange: t, id: r }, children: /* @__PURE__ */ n("div", { className: o, children: s }) });
|
|
1552
1559
|
}
|
|
1553
|
-
function
|
|
1560
|
+
function os({
|
|
1554
1561
|
children: e
|
|
1555
1562
|
}) {
|
|
1556
1563
|
return /* @__PURE__ */ n(
|
|
1557
1564
|
"div",
|
|
1558
1565
|
{
|
|
1559
1566
|
role: "tablist",
|
|
1560
|
-
className: m(
|
|
1567
|
+
className: m(Je.list, "spTabsList"),
|
|
1561
1568
|
onKeyDown: (t) => {
|
|
1562
1569
|
const o = Array.from(
|
|
1563
1570
|
t.currentTarget.querySelectorAll('[role="tab"]')
|
|
@@ -1586,8 +1593,8 @@ function Yo({
|
|
|
1586
1593
|
}
|
|
1587
1594
|
);
|
|
1588
1595
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const r =
|
|
1596
|
+
function ss({ value: e, className: t, children: o, ...s }) {
|
|
1597
|
+
const r = tt(), l = r.value === e;
|
|
1591
1598
|
return /* @__PURE__ */ n(
|
|
1592
1599
|
"button",
|
|
1593
1600
|
{
|
|
@@ -1599,71 +1606,172 @@ function Qo({ value: e, className: t, children: o, ...s }) {
|
|
|
1599
1606
|
"aria-controls": `${r.id}-panel-${e}`,
|
|
1600
1607
|
tabIndex: l ? 0 : -1,
|
|
1601
1608
|
"data-state": l ? "active" : "inactive",
|
|
1602
|
-
className: m(
|
|
1609
|
+
className: m(Je.trigger, "spTabsTrigger", t),
|
|
1603
1610
|
onClick: () => r.onValueChange(e),
|
|
1604
1611
|
children: o
|
|
1605
1612
|
}
|
|
1606
1613
|
);
|
|
1607
1614
|
}
|
|
1608
|
-
function
|
|
1615
|
+
function rs({
|
|
1609
1616
|
value: e,
|
|
1610
1617
|
children: t
|
|
1611
1618
|
}) {
|
|
1612
|
-
const o =
|
|
1619
|
+
const o = tt();
|
|
1613
1620
|
return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
|
|
1614
1621
|
}
|
|
1615
|
-
const
|
|
1622
|
+
const Gs = Object.assign(ns, { List: os, Trigger: ss, Content: rs }), ls = "_panel_4us94_9", cs = {
|
|
1623
|
+
panel: ls
|
|
1624
|
+
}, Se = 8, ge = 8, as = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1625
|
+
function Us({
|
|
1626
|
+
label: e,
|
|
1627
|
+
children: t,
|
|
1628
|
+
open: o,
|
|
1629
|
+
onOpenChange: s,
|
|
1630
|
+
defaultOpen: r = !1,
|
|
1631
|
+
side: l = "bottom",
|
|
1632
|
+
align: c = "start",
|
|
1633
|
+
panelClassName: u,
|
|
1634
|
+
onClick: d,
|
|
1635
|
+
..._
|
|
1636
|
+
}) {
|
|
1637
|
+
const [a, g] = Z(r), v = o !== void 0, f = v ? o : a, C = F(), b = F(), $ = z(null), k = z(null), [x, E] = Z(null), D = z(!1), N = z(!1), j = z(null), H = z(f);
|
|
1638
|
+
H.current = f;
|
|
1639
|
+
const R = Le(
|
|
1640
|
+
(w) => {
|
|
1641
|
+
H.current !== w && (H.current = w, v || g(w), s == null || s(w));
|
|
1642
|
+
},
|
|
1643
|
+
[v, s]
|
|
1644
|
+
), I = Le(() => {
|
|
1645
|
+
const w = $.current, i = k.current;
|
|
1646
|
+
if (!w || !i) return;
|
|
1647
|
+
const y = w.getBoundingClientRect(), L = i.offsetWidth, S = i.offsetHeight, T = y.bottom + Se, O = y.top - S - Se, ce = T + S <= window.innerHeight - ge, p = O >= ge, h = l === "bottom" ? ce || !p ? T : O : p || !ce ? O : T, P = h === T ? "bottom" : "top";
|
|
1648
|
+
i.dataset.side = P;
|
|
1649
|
+
const Me = c === "start" ? y.left : c === "end" ? y.right - L : y.left + y.width / 2 - L / 2, ae = Math.min(
|
|
1650
|
+
Math.max(Me, ge),
|
|
1651
|
+
Math.max(window.innerWidth - L - ge, ge)
|
|
1652
|
+
);
|
|
1653
|
+
E(
|
|
1654
|
+
(ie) => ie && ie.top === h && ie.left === ae && ie.placed === P ? ie : { top: h, left: ae, placed: P }
|
|
1655
|
+
);
|
|
1656
|
+
}, [l, c]);
|
|
1657
|
+
return he(() => {
|
|
1658
|
+
const w = k.current;
|
|
1659
|
+
w && (f ? (Ae(w, I), I(), D.current && (D.current = !1, (w.querySelector(as) ?? w).focus({ preventScroll: !0 }))) : w.matches(":popover-open") && w.hidePopover());
|
|
1660
|
+
}, [f, I]), K(() => {
|
|
1661
|
+
if (!f) return;
|
|
1662
|
+
let w = 0, i = "";
|
|
1663
|
+
const y = () => {
|
|
1664
|
+
const L = $.current, S = k.current;
|
|
1665
|
+
if (L && S) {
|
|
1666
|
+
const T = L.getBoundingClientRect(), O = `${T.top}|${T.left}|${T.width}|${T.height}|${S.offsetWidth}|${S.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
|
|
1667
|
+
O !== i && (i = O, I());
|
|
1668
|
+
}
|
|
1669
|
+
w = requestAnimationFrame(y);
|
|
1670
|
+
};
|
|
1671
|
+
return w = requestAnimationFrame(y), () => cancelAnimationFrame(w);
|
|
1672
|
+
}, [f, I]), /* @__PURE__ */ M(oe, { children: [
|
|
1673
|
+
/* @__PURE__ */ n(
|
|
1674
|
+
Ze,
|
|
1675
|
+
{
|
|
1676
|
+
..._,
|
|
1677
|
+
ref: $,
|
|
1678
|
+
id: C,
|
|
1679
|
+
"aria-haspopup": "dialog",
|
|
1680
|
+
"aria-expanded": f,
|
|
1681
|
+
"aria-controls": b,
|
|
1682
|
+
onPointerDown: (w) => {
|
|
1683
|
+
var i;
|
|
1684
|
+
(i = _.onPointerDown) == null || i.call(_, w), j.current = !H.current;
|
|
1685
|
+
},
|
|
1686
|
+
onKeyDown: (w) => {
|
|
1687
|
+
var i;
|
|
1688
|
+
(i = _.onKeyDown) == null || i.call(_, w), (w.key === "Enter" || w.key === " ") && (j.current = null);
|
|
1689
|
+
},
|
|
1690
|
+
onClick: (w) => {
|
|
1691
|
+
d == null || d(w);
|
|
1692
|
+
const i = j.current ?? !H.current;
|
|
1693
|
+
j.current = null, i && (D.current = !0), R(i);
|
|
1694
|
+
},
|
|
1695
|
+
children: e
|
|
1696
|
+
}
|
|
1697
|
+
),
|
|
1698
|
+
/* @__PURE__ */ n(
|
|
1699
|
+
"div",
|
|
1700
|
+
{
|
|
1701
|
+
ref: k,
|
|
1702
|
+
id: b,
|
|
1703
|
+
popover: "auto",
|
|
1704
|
+
role: "dialog",
|
|
1705
|
+
"aria-labelledby": C,
|
|
1706
|
+
tabIndex: -1,
|
|
1707
|
+
className: m(cs.panel, W.spacePanel, u),
|
|
1708
|
+
"data-animated": _.animated === !1 ? "false" : void 0,
|
|
1709
|
+
"data-side": (x == null ? void 0 : x.placed) ?? l,
|
|
1710
|
+
style: x ? { top: x.top, left: x.left } : void 0,
|
|
1711
|
+
onKeyDown: (w) => {
|
|
1712
|
+
w.key === "Escape" && (N.current = !0, w.stopPropagation());
|
|
1713
|
+
},
|
|
1714
|
+
onToggle: (w) => {
|
|
1715
|
+
var i;
|
|
1716
|
+
w.nativeEvent.newState === "closed" && (N.current && (N.current = !1, (i = $.current) == null || i.focus()), R(!1));
|
|
1717
|
+
},
|
|
1718
|
+
children: t
|
|
1719
|
+
}
|
|
1720
|
+
)
|
|
1721
|
+
] });
|
|
1722
|
+
}
|
|
1616
1723
|
export {
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
Vs as
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1724
|
+
Ps as AlertDialog,
|
|
1725
|
+
js as Autocomplete,
|
|
1726
|
+
gs as Badge,
|
|
1727
|
+
Hs as BookmarkIcon,
|
|
1728
|
+
_s as Box,
|
|
1729
|
+
Ze as Button,
|
|
1730
|
+
ms as Card,
|
|
1731
|
+
vs as ChatBubbleIcon,
|
|
1732
|
+
Ls as CheckIcon,
|
|
1733
|
+
Is as ChevronDownIcon,
|
|
1734
|
+
Tn as ChevronLeftIcon,
|
|
1735
|
+
Hn as ChevronRightIcon,
|
|
1736
|
+
Ds as ChevronUpIcon,
|
|
1737
|
+
An as CrossCircledIcon,
|
|
1738
|
+
Fs as Dialog,
|
|
1739
|
+
Ks as DropdownMenu,
|
|
1740
|
+
$s as EnterFullScreenIcon,
|
|
1741
|
+
Zn as ExclamationTriangleIcon,
|
|
1742
|
+
xs as ExitFullScreenIcon,
|
|
1743
|
+
fs as Flex,
|
|
1744
|
+
ps as Grid,
|
|
1745
|
+
Mt as Heading,
|
|
1746
|
+
ys as HeartFilledIcon,
|
|
1747
|
+
qs as HeartIcon,
|
|
1748
|
+
Ss as IconToggle,
|
|
1749
|
+
Sn as InfoCircledIcon,
|
|
1750
|
+
ds as Link,
|
|
1751
|
+
Es as Loader,
|
|
1752
|
+
zs as MagnifyingGlassIcon,
|
|
1753
|
+
Ws as Message,
|
|
1754
|
+
Rs as MinusIcon,
|
|
1755
|
+
Ts as Pagination,
|
|
1756
|
+
bs as Pencil1Icon,
|
|
1757
|
+
Ns as PersonIcon,
|
|
1758
|
+
ws as PlusIcon,
|
|
1759
|
+
Us as Popover,
|
|
1760
|
+
Bs as Progress,
|
|
1761
|
+
Ms as QuestionMarkCircledIcon,
|
|
1762
|
+
Os as RadioGroup,
|
|
1763
|
+
Zs as Select,
|
|
1764
|
+
Cs as Separator,
|
|
1765
|
+
hs as Share2Icon,
|
|
1766
|
+
Vs as Slider,
|
|
1767
|
+
Gs as Tabs,
|
|
1768
|
+
Ct as Text,
|
|
1769
|
+
As as TextArea,
|
|
1770
|
+
He as TextField,
|
|
1771
|
+
z1 as Tooltip,
|
|
1772
|
+
ks as TrashIcon,
|
|
1773
|
+
En as XIcon,
|
|
1774
|
+
e1 as pageCount,
|
|
1775
|
+
t1 as pageWindow
|
|
1668
1776
|
};
|
|
1669
1777
|
//# sourceMappingURL=index.js.map
|