@duro-app/ui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +1468 -1297
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,1028 +1,1138 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as u, jsxs as Y, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as E, createContext as V, useId as P, useMemo as ae, useState as H, useRef as y, useCallback as I, useEffect as T, Children as de } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license react-strict-dom
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
var re = {};
|
|
11
|
+
Object.defineProperty(re, "__esModule", {
|
|
12
|
+
value: !0
|
|
13
|
+
});
|
|
14
|
+
var fe = re.styleq = void 0, je = /* @__PURE__ */ new WeakMap(), qe = "$$css";
|
|
15
|
+
function ge(e) {
|
|
16
|
+
var t, r, n;
|
|
17
|
+
return e != null && (t = e.disableCache === !0, r = e.disableMix === !0, n = e.transform), function() {
|
|
18
|
+
for (var s = [], l = "", c = null, k = "", i = t ? null : je, x = new Array(arguments.length), a = 0; a < arguments.length; a++)
|
|
19
|
+
x[a] = arguments[a];
|
|
20
|
+
for (; x.length > 0; ) {
|
|
21
|
+
var m = x.pop();
|
|
22
|
+
if (!(m == null || m === !1)) {
|
|
23
|
+
if (Array.isArray(m)) {
|
|
24
|
+
for (var w = 0; w < m.length; w++)
|
|
25
|
+
x.push(m[w]);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
var p = n != null ? n(m) : m;
|
|
29
|
+
if (p.$$css != null) {
|
|
30
|
+
var h = "";
|
|
31
|
+
if (i != null && i.has(p)) {
|
|
32
|
+
var v = i.get(p);
|
|
33
|
+
v != null && (h = v[0], k = v[2], s.push.apply(s, v[1]), i = v[3]);
|
|
34
|
+
} else {
|
|
35
|
+
var b = [];
|
|
36
|
+
for (var d in p) {
|
|
37
|
+
var $ = p[d];
|
|
38
|
+
if (d === qe) {
|
|
39
|
+
var O = p[d];
|
|
40
|
+
O !== !0 && (k = k ? O + "; " + k : O);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
typeof $ == "string" || $ === null ? s.includes(d) || (s.push(d), i != null && b.push(d), typeof $ == "string" && (h += h ? " " + $ : $)) : console.error("styleq: ".concat(d, " typeof ").concat(String($), ' is not "string" or "null".'));
|
|
44
|
+
}
|
|
45
|
+
if (i != null) {
|
|
46
|
+
var q = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
i.set(p, [h, b, k, q]), i = q;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
h && (l = l ? h + " " + l : h);
|
|
51
|
+
} else if (r)
|
|
52
|
+
c == null && (c = {}), c = Object.assign({}, p, c);
|
|
53
|
+
else {
|
|
54
|
+
var z = null;
|
|
55
|
+
for (var M in p) {
|
|
56
|
+
var j = p[M];
|
|
57
|
+
j !== void 0 && (s.includes(M) || (j != null && (c == null && (c = {}), z == null && (z = {}), z[M] = j), s.push(M), i = null));
|
|
58
|
+
}
|
|
59
|
+
z != null && (c = Object.assign(z, c));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
var G = [l, c, k];
|
|
64
|
+
return G;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
var Se = fe = re.styleq = ge();
|
|
68
|
+
Se.factory = ge;
|
|
69
|
+
const Ie = fe.factory({
|
|
70
|
+
disableMix: !0
|
|
71
|
+
});
|
|
72
|
+
function f(...e) {
|
|
73
|
+
const [t, r, n] = Ie(e), o = {};
|
|
74
|
+
if (t != null && t !== "" && (o.className = t), r != null && (o.style = r), n != null && n !== "") {
|
|
75
|
+
const s = n.split(";"), l = {};
|
|
76
|
+
for (const c of s) {
|
|
77
|
+
const k = c.trim(), [i, x] = k.split(":");
|
|
78
|
+
x != null && (l[i] = l[i] != null ? `${l[i]},${x}` : x);
|
|
79
|
+
}
|
|
80
|
+
o["data-style-src"] = Object.keys(l).map((c) => `${c}:${l[c]}`).join("; ");
|
|
81
|
+
}
|
|
82
|
+
return o;
|
|
83
|
+
}
|
|
84
|
+
const N = {
|
|
85
|
+
block: {
|
|
86
|
+
kogj98: "x1ghz6dp",
|
|
87
|
+
kmVPX3: "x1717udv",
|
|
88
|
+
$$css: !0
|
|
89
|
+
},
|
|
90
|
+
inline: {
|
|
91
|
+
kogj98: "x1ghz6dp",
|
|
92
|
+
kmVPX3: "x1717udv",
|
|
93
|
+
kybGjl: "x1hl2dhg",
|
|
94
|
+
k9WMMc: "x16tdsg8",
|
|
95
|
+
kD5eJx: "x1vvkbs",
|
|
96
|
+
$$css: !0
|
|
97
|
+
},
|
|
98
|
+
inlineblock: {
|
|
99
|
+
ksu8eU: "x1y0btm7",
|
|
100
|
+
kogj98: "x1ghz6dp",
|
|
101
|
+
kmVPX3: "x1717udv",
|
|
102
|
+
$$css: !0
|
|
103
|
+
},
|
|
104
|
+
button: {
|
|
105
|
+
kMzoRj: "xmkeg23",
|
|
106
|
+
$$css: !0
|
|
107
|
+
},
|
|
108
|
+
input: {
|
|
109
|
+
kMzoRj: "xmkeg23",
|
|
110
|
+
ksu8eU: "x1y0btm7",
|
|
111
|
+
$$css: !0
|
|
112
|
+
}
|
|
113
|
+
}, Te = N.inline, We = [N.inlineblock, N.button], He = N.block, Ae = [N.inlineblock, N.input], Ee = N.inline, Ge = N.block, Re = N.inline, g = {
|
|
114
|
+
a: Te,
|
|
115
|
+
button: We,
|
|
116
|
+
div: He,
|
|
117
|
+
input: Ae,
|
|
118
|
+
label: Ee,
|
|
119
|
+
nav: Ge,
|
|
120
|
+
span: Re
|
|
121
|
+
}, xe = {
|
|
7
122
|
base: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
123
|
+
kmVPX3: "x9l0hi5",
|
|
124
|
+
kaIpWk: "x12fpg5d",
|
|
125
|
+
kMzoRj: "xmkeg23",
|
|
126
|
+
ksu8eU: "x1y0btm7",
|
|
127
|
+
kGuDYH: "x1f5wsqz",
|
|
128
|
+
kLWn49: "x1x949wg",
|
|
129
|
+
$$css: !0
|
|
14
130
|
},
|
|
15
131
|
error: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
132
|
+
kWkggS: "x11yuz7c",
|
|
133
|
+
kVAM5u: "xj9yn0d",
|
|
134
|
+
kMwMTN: "x1n0n1z2",
|
|
135
|
+
$$css: !0
|
|
19
136
|
},
|
|
20
137
|
success: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
138
|
+
kWkggS: "xfudlpn",
|
|
139
|
+
kVAM5u: "x1qnc0sl",
|
|
140
|
+
kMwMTN: "xu093u5",
|
|
141
|
+
$$css: !0
|
|
24
142
|
},
|
|
25
143
|
warning: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
144
|
+
kWkggS: "xl3rndl",
|
|
145
|
+
kVAM5u: "xuokgsr",
|
|
146
|
+
kMwMTN: "xsx4m52",
|
|
147
|
+
$$css: !0
|
|
29
148
|
},
|
|
30
149
|
info: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
150
|
+
kWkggS: "xg7lfmx",
|
|
151
|
+
kVAM5u: "xgoeqpr",
|
|
152
|
+
kMwMTN: "xhrv3qp",
|
|
153
|
+
$$css: !0
|
|
34
154
|
}
|
|
35
|
-
}
|
|
36
|
-
function
|
|
37
|
-
variant:
|
|
38
|
-
children:
|
|
155
|
+
};
|
|
156
|
+
function Rt({
|
|
157
|
+
variant: e = "info",
|
|
158
|
+
children: t
|
|
39
159
|
}) {
|
|
40
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ u("div", { role: "alert", ...f(g.div, xe.base, xe[e]), children: t });
|
|
41
161
|
}
|
|
42
|
-
const
|
|
162
|
+
const K = {
|
|
43
163
|
base: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
164
|
+
k1xSpc: "x3nfvp2",
|
|
165
|
+
kGNEyG: "x6s0dn4",
|
|
166
|
+
kjj79g: "xl56j7k",
|
|
167
|
+
kMv6JI: "x1pzdjp3",
|
|
168
|
+
k63SB2: "x1oq67d7",
|
|
169
|
+
kLWn49: "xo5v014",
|
|
170
|
+
kaIpWk: "x9s7flb",
|
|
171
|
+
khDVqt: "xuxw1ft",
|
|
172
|
+
$$css: !0
|
|
52
173
|
},
|
|
53
174
|
sizeMd: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
175
|
+
kLKAdn: "x12lvzsw",
|
|
176
|
+
kGO01o: "xpz7ktu",
|
|
177
|
+
kE3dHu: "x1t5mref",
|
|
178
|
+
kpe85a: "x3h5nva",
|
|
179
|
+
kGuDYH: "xcj380t",
|
|
180
|
+
$$css: !0
|
|
59
181
|
},
|
|
60
182
|
sizeSm: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
183
|
+
kLKAdn: "x1nn3v0j",
|
|
184
|
+
kGO01o: "x1120s5i",
|
|
185
|
+
kE3dHu: "x1s93rae",
|
|
186
|
+
kpe85a: "xdf6ls5",
|
|
187
|
+
kGuDYH: "x2ohwh0",
|
|
188
|
+
$$css: !0
|
|
66
189
|
},
|
|
67
190
|
default: {
|
|
68
|
-
|
|
69
|
-
|
|
191
|
+
kWkggS: "x1t1330p",
|
|
192
|
+
kMwMTN: "x3dll8l",
|
|
193
|
+
$$css: !0
|
|
70
194
|
},
|
|
71
195
|
success: {
|
|
72
|
-
|
|
73
|
-
|
|
196
|
+
kWkggS: "xfudlpn",
|
|
197
|
+
kMwMTN: "xu093u5",
|
|
198
|
+
$$css: !0
|
|
74
199
|
},
|
|
75
200
|
warning: {
|
|
76
|
-
|
|
77
|
-
|
|
201
|
+
kWkggS: "xl3rndl",
|
|
202
|
+
kMwMTN: "xsx4m52",
|
|
203
|
+
$$css: !0
|
|
78
204
|
},
|
|
79
205
|
error: {
|
|
80
|
-
|
|
81
|
-
|
|
206
|
+
kWkggS: "x11yuz7c",
|
|
207
|
+
kMwMTN: "x1n0n1z2",
|
|
208
|
+
$$css: !0
|
|
82
209
|
},
|
|
83
210
|
info: {
|
|
84
|
-
|
|
85
|
-
|
|
211
|
+
kWkggS: "xg7lfmx",
|
|
212
|
+
kMwMTN: "xhrv3qp",
|
|
213
|
+
$$css: !0
|
|
86
214
|
}
|
|
87
|
-
}
|
|
88
|
-
sm:
|
|
89
|
-
md:
|
|
215
|
+
}, Ce = {
|
|
216
|
+
sm: K.sizeSm,
|
|
217
|
+
md: K.sizeMd
|
|
90
218
|
};
|
|
91
|
-
function
|
|
92
|
-
variant:
|
|
93
|
-
size:
|
|
219
|
+
function Ct({
|
|
220
|
+
variant: e = "default",
|
|
221
|
+
size: t = "md",
|
|
94
222
|
children: r
|
|
95
223
|
}) {
|
|
96
|
-
return /* @__PURE__ */
|
|
224
|
+
return /* @__PURE__ */ u("span", { ...f(g.span, K.base, Ce[t], K[e]), children: r });
|
|
97
225
|
}
|
|
98
|
-
const
|
|
226
|
+
const X = {
|
|
99
227
|
base: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
default: "none",
|
|
122
|
-
":focus-visible": "solid"
|
|
123
|
-
},
|
|
124
|
-
outlineColor: {
|
|
125
|
-
default: "transparent",
|
|
126
|
-
":focus-visible": o.accent
|
|
127
|
-
},
|
|
128
|
-
outlineOffset: {
|
|
129
|
-
default: 0,
|
|
130
|
-
":focus-visible": 2
|
|
131
|
-
}
|
|
228
|
+
k1xSpc: "x3nfvp2",
|
|
229
|
+
kGNEyG: "x6s0dn4",
|
|
230
|
+
kjj79g: "xl56j7k",
|
|
231
|
+
kOIVth: "x10k1rbm",
|
|
232
|
+
kMv6JI: "x1pzdjp3",
|
|
233
|
+
kGuDYH: "x1f5wsqz",
|
|
234
|
+
k63SB2: "x1oq67d7",
|
|
235
|
+
kLWn49: "x1x949wg",
|
|
236
|
+
kaIpWk: "x12fpg5d",
|
|
237
|
+
kMzoRj: "xmkeg23",
|
|
238
|
+
ksu8eU: "x1y0btm7",
|
|
239
|
+
kkrTdU: "x1ypdohk",
|
|
240
|
+
k1ekBW: "x1qsmvhx",
|
|
241
|
+
kIyJzY: "xx6bhzk",
|
|
242
|
+
kAMwcw: "xwji4o3",
|
|
243
|
+
kybGjl: "x1hl2dhg",
|
|
244
|
+
kMeerF: "x1k57tk5 x784prv",
|
|
245
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
246
|
+
kjBf7l: "x1uczgqu x1kpnk96",
|
|
247
|
+
kInvED: "x1wfwxd8 x7s97pk",
|
|
248
|
+
$$css: !0
|
|
132
249
|
},
|
|
133
250
|
sizeDefault: {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
251
|
+
kLKAdn: "x1g9jjt5",
|
|
252
|
+
kGO01o: "x1jybd5k",
|
|
253
|
+
kE3dHu: "xsk07c1",
|
|
254
|
+
kpe85a: "x15wirxn",
|
|
255
|
+
$$css: !0
|
|
138
256
|
},
|
|
139
257
|
sizeSmall: {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
258
|
+
kLKAdn: "x12lvzsw",
|
|
259
|
+
kGO01o: "xpz7ktu",
|
|
260
|
+
kE3dHu: "x1t5mref",
|
|
261
|
+
kpe85a: "x3h5nva",
|
|
262
|
+
kGuDYH: "xcj380t",
|
|
263
|
+
$$css: !0
|
|
145
264
|
},
|
|
146
265
|
primary: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
borderColor: {
|
|
153
|
-
default: o.accent,
|
|
154
|
-
":hover": o.accentHover
|
|
155
|
-
},
|
|
156
|
-
color: o.accentContrast
|
|
266
|
+
kWkggS: "xyed30c xenhjbp xp6ammx",
|
|
267
|
+
kVAM5u: "xdtqdxh x1u5p6e5",
|
|
268
|
+
kMwMTN: "x1nawapl",
|
|
269
|
+
$$css: !0
|
|
157
270
|
},
|
|
158
271
|
secondary: {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
borderColor: o.border,
|
|
164
|
-
color: o.textMuted
|
|
272
|
+
kWkggS: "xjbqb8w x16rx6z8",
|
|
273
|
+
kVAM5u: "x8sq793",
|
|
274
|
+
kMwMTN: "x3dll8l",
|
|
275
|
+
$$css: !0
|
|
165
276
|
},
|
|
166
277
|
link: {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
default: "none",
|
|
175
|
-
":hover": "underline"
|
|
176
|
-
},
|
|
177
|
-
paddingLeft: 0,
|
|
178
|
-
paddingRight: 0
|
|
278
|
+
kWkggS: "xjbqb8w",
|
|
279
|
+
kVAM5u: "x9r1u3d",
|
|
280
|
+
kMwMTN: "x1jv78v8 x1346zho",
|
|
281
|
+
kybGjl: "x1hl2dhg xt0b8zv",
|
|
282
|
+
kE3dHu: "x1uhho1l",
|
|
283
|
+
kpe85a: "x1xpa7k",
|
|
284
|
+
$$css: !0
|
|
179
285
|
},
|
|
180
286
|
danger: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
borderColor: {
|
|
187
|
-
default: o.error,
|
|
188
|
-
":hover": o.errorHover
|
|
189
|
-
},
|
|
190
|
-
color: o.errorContrast
|
|
287
|
+
kWkggS: "x3uea3h x15nk2ih x14rwz5y",
|
|
288
|
+
kVAM5u: "x100xte9 xgfi2mf",
|
|
289
|
+
kMwMTN: "xh39ek7",
|
|
290
|
+
$$css: !0
|
|
191
291
|
},
|
|
192
292
|
fullWidth: {
|
|
193
|
-
|
|
293
|
+
kzqmXN: "xh8yej3",
|
|
294
|
+
$$css: !0
|
|
194
295
|
},
|
|
195
296
|
disabled: {
|
|
196
|
-
|
|
197
|
-
|
|
297
|
+
kSiTet: "xbyyjgo",
|
|
298
|
+
kkrTdU: "x1h6gzvc",
|
|
299
|
+
$$css: !0
|
|
198
300
|
}
|
|
199
|
-
}
|
|
200
|
-
default:
|
|
201
|
-
small:
|
|
301
|
+
}, Ve = {
|
|
302
|
+
default: X.sizeDefault,
|
|
303
|
+
small: X.sizeSmall
|
|
202
304
|
};
|
|
203
|
-
function
|
|
204
|
-
variant:
|
|
205
|
-
size:
|
|
305
|
+
function Vt({
|
|
306
|
+
variant: e = "primary",
|
|
307
|
+
size: t = "default",
|
|
206
308
|
fullWidth: r = !1,
|
|
207
309
|
disabled: n = !1,
|
|
208
|
-
type:
|
|
310
|
+
type: o = "button",
|
|
209
311
|
onClick: s,
|
|
210
|
-
children:
|
|
312
|
+
children: l
|
|
211
313
|
}) {
|
|
212
|
-
return /* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ u("button", { type: o, disabled: n, onClick: s, ...f(g.button, X.base, Ve[t], X[e], r && X.fullWidth, n && X.disabled), children: l });
|
|
213
315
|
}
|
|
214
|
-
const
|
|
316
|
+
const J = {
|
|
215
317
|
base: {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
318
|
+
kWkggS: "xdz192t",
|
|
319
|
+
kMwMTN: "x1q7k5ly",
|
|
320
|
+
kMv6JI: "x1pzdjp3",
|
|
321
|
+
$$css: !0
|
|
219
322
|
},
|
|
220
|
-
// Variants
|
|
221
323
|
elevated: {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
324
|
+
kaIpWk: "x1e3ur83",
|
|
325
|
+
kMzoRj: "xmkeg23",
|
|
326
|
+
ksu8eU: "x1y0btm7",
|
|
327
|
+
kVAM5u: "x8sq793",
|
|
328
|
+
kGVxlE: "xconxm6",
|
|
329
|
+
$$css: !0
|
|
227
330
|
},
|
|
228
331
|
outlined: {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
332
|
+
kaIpWk: "x1jk3q3d",
|
|
333
|
+
kMzoRj: "xmkeg23",
|
|
334
|
+
ksu8eU: "x1y0btm7",
|
|
335
|
+
kVAM5u: "x8sq793",
|
|
336
|
+
$$css: !0
|
|
233
337
|
},
|
|
234
338
|
filled: {
|
|
235
|
-
|
|
339
|
+
kaIpWk: "x1jk3q3d",
|
|
340
|
+
$$css: !0
|
|
236
341
|
},
|
|
237
342
|
interactive: {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
cursor: "pointer",
|
|
250
|
-
transitionProperty: "background-color, border-color, transform",
|
|
251
|
-
transitionDuration: "150ms",
|
|
252
|
-
transitionTimingFunction: "ease",
|
|
253
|
-
transform: {
|
|
254
|
-
default: "translateY(0)",
|
|
255
|
-
":hover": "translateY(-2px)"
|
|
256
|
-
}
|
|
343
|
+
kaIpWk: "x1jk3q3d",
|
|
344
|
+
kMzoRj: "xmkeg23",
|
|
345
|
+
ksu8eU: "x1y0btm7",
|
|
346
|
+
kVAM5u: "x8sq793 x9la8fy",
|
|
347
|
+
kWkggS: "xdz192t x16rx6z8",
|
|
348
|
+
kkrTdU: "x1ypdohk",
|
|
349
|
+
k1ekBW: "x1lxufdw",
|
|
350
|
+
kIyJzY: "xx6bhzk",
|
|
351
|
+
kAMwcw: "xwji4o3",
|
|
352
|
+
k3aq6I: "xnn1q72 x1lz31oe",
|
|
353
|
+
$$css: !0
|
|
257
354
|
},
|
|
258
|
-
// Sizes (padding)
|
|
259
355
|
sizeDefault: {
|
|
260
|
-
|
|
356
|
+
kmVPX3: "xp0c5z4",
|
|
357
|
+
$$css: !0
|
|
261
358
|
},
|
|
262
359
|
sizeCompact: {
|
|
263
|
-
|
|
360
|
+
kmVPX3: "x9l0hi5",
|
|
361
|
+
$$css: !0
|
|
264
362
|
},
|
|
265
363
|
sizeFull: {
|
|
266
|
-
|
|
364
|
+
kmVPX3: "x18v2m0",
|
|
365
|
+
$$css: !0
|
|
267
366
|
},
|
|
268
|
-
// Header
|
|
269
367
|
header: {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
368
|
+
kGuDYH: "xf4hbbm",
|
|
369
|
+
k63SB2: "x120om85",
|
|
370
|
+
k1K539: "x94e8gg",
|
|
371
|
+
$$css: !0
|
|
273
372
|
}
|
|
274
|
-
}
|
|
275
|
-
default:
|
|
276
|
-
compact:
|
|
277
|
-
full:
|
|
373
|
+
}, Oe = {
|
|
374
|
+
default: J.sizeDefault,
|
|
375
|
+
compact: J.sizeCompact,
|
|
376
|
+
full: J.sizeFull
|
|
278
377
|
};
|
|
279
|
-
function
|
|
280
|
-
variant:
|
|
281
|
-
size:
|
|
378
|
+
function Ot({
|
|
379
|
+
variant: e = "outlined",
|
|
380
|
+
size: t = "default",
|
|
282
381
|
header: r,
|
|
283
382
|
onClick: n,
|
|
284
|
-
children:
|
|
383
|
+
children: o
|
|
285
384
|
}) {
|
|
286
|
-
return /* @__PURE__ */
|
|
287
|
-
r && /* @__PURE__ */
|
|
288
|
-
|
|
385
|
+
return /* @__PURE__ */ Y("div", { onClick: n, ...f(g.div, J.base, J[e], Oe[t]), children: [
|
|
386
|
+
r && /* @__PURE__ */ u("div", { ...f(g.div, J.header), children: r }),
|
|
387
|
+
o
|
|
289
388
|
] });
|
|
290
389
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
return
|
|
390
|
+
const pe = V(null);
|
|
391
|
+
function U() {
|
|
392
|
+
return E(pe);
|
|
294
393
|
}
|
|
295
|
-
const
|
|
394
|
+
const _ = {
|
|
296
395
|
root: {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
396
|
+
k1xSpc: "x78zum5",
|
|
397
|
+
kXwgrk: "xdt5ytf",
|
|
398
|
+
kOIVth: "x1b6swt2",
|
|
399
|
+
$$css: !0
|
|
300
400
|
},
|
|
301
401
|
label: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
402
|
+
kGuDYH: "x1f5wsqz",
|
|
403
|
+
k63SB2: "x1oq67d7",
|
|
404
|
+
kMwMTN: "x1q7k5ly",
|
|
405
|
+
$$css: !0
|
|
305
406
|
},
|
|
306
407
|
description: {
|
|
307
|
-
|
|
308
|
-
|
|
408
|
+
kGuDYH: "xcj380t",
|
|
409
|
+
kMwMTN: "x3dll8l",
|
|
410
|
+
$$css: !0
|
|
309
411
|
},
|
|
310
412
|
error: {
|
|
311
|
-
|
|
312
|
-
|
|
413
|
+
kGuDYH: "xcj380t",
|
|
414
|
+
kMwMTN: "xoejid4",
|
|
415
|
+
$$css: !0
|
|
313
416
|
}
|
|
314
|
-
}
|
|
315
|
-
function
|
|
316
|
-
invalid:
|
|
317
|
-
children:
|
|
417
|
+
};
|
|
418
|
+
function Le({
|
|
419
|
+
invalid: e = !1,
|
|
420
|
+
children: t
|
|
318
421
|
}) {
|
|
319
|
-
const r =
|
|
422
|
+
const r = P(), n = ae(() => ({
|
|
320
423
|
controlId: `${r}-control`,
|
|
321
424
|
descriptionId: `${r}-description`,
|
|
322
425
|
errorId: `${r}-error`,
|
|
323
|
-
invalid:
|
|
324
|
-
}), [r,
|
|
325
|
-
return /* @__PURE__ */
|
|
426
|
+
invalid: e
|
|
427
|
+
}), [r, e]);
|
|
428
|
+
return /* @__PURE__ */ u(pe.Provider, { value: n, children: /* @__PURE__ */ u("div", { ...f(g.div, _.root), children: t }) });
|
|
326
429
|
}
|
|
327
|
-
function
|
|
328
|
-
children:
|
|
430
|
+
function Ne({
|
|
431
|
+
children: e
|
|
329
432
|
}) {
|
|
330
|
-
const
|
|
331
|
-
return /* @__PURE__ */
|
|
433
|
+
const t = U();
|
|
434
|
+
return /* @__PURE__ */ u("label", { htmlFor: t?.controlId, ...f(g.label, _.label), children: e });
|
|
332
435
|
}
|
|
333
|
-
function
|
|
334
|
-
children:
|
|
436
|
+
function De({
|
|
437
|
+
children: e
|
|
335
438
|
}) {
|
|
336
|
-
const
|
|
337
|
-
return /* @__PURE__ */
|
|
439
|
+
const t = U();
|
|
440
|
+
return /* @__PURE__ */ u("span", { id: t?.descriptionId, ...f(g.span, _.description), children: e });
|
|
338
441
|
}
|
|
339
|
-
function
|
|
340
|
-
children:
|
|
442
|
+
function Be({
|
|
443
|
+
children: e
|
|
341
444
|
}) {
|
|
342
|
-
const
|
|
343
|
-
return !
|
|
445
|
+
const t = U();
|
|
446
|
+
return !t?.invalid && !e ? null : /* @__PURE__ */ u("span", { id: t?.errorId, role: "alert", ...f(g.span, _.error), children: e });
|
|
344
447
|
}
|
|
345
|
-
const
|
|
346
|
-
Root:
|
|
347
|
-
Label:
|
|
348
|
-
Description:
|
|
349
|
-
Error:
|
|
350
|
-
},
|
|
448
|
+
const Lt = {
|
|
449
|
+
Root: Le,
|
|
450
|
+
Label: Ne,
|
|
451
|
+
Description: De,
|
|
452
|
+
Error: Be
|
|
453
|
+
}, ue = {
|
|
351
454
|
base: {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
default: "none",
|
|
374
|
-
":focus-visible": "solid"
|
|
375
|
-
},
|
|
376
|
-
outlineColor: {
|
|
377
|
-
default: "transparent",
|
|
378
|
-
":focus-visible": o.accent
|
|
379
|
-
},
|
|
380
|
-
outlineOffset: {
|
|
381
|
-
default: 0,
|
|
382
|
-
":focus-visible": 1
|
|
383
|
-
}
|
|
455
|
+
kzqmXN: "xh8yej3",
|
|
456
|
+
kLKAdn: "x1g9jjt5",
|
|
457
|
+
kGO01o: "x1jybd5k",
|
|
458
|
+
kE3dHu: "xsk07c1",
|
|
459
|
+
kpe85a: "x15wirxn",
|
|
460
|
+
kMv6JI: "x1pzdjp3",
|
|
461
|
+
kGuDYH: "x1f5wsqz",
|
|
462
|
+
kLWn49: "x1x949wg",
|
|
463
|
+
kMwMTN: "x1q7k5ly",
|
|
464
|
+
kWkggS: "x18f41zy",
|
|
465
|
+
kMzoRj: "xmkeg23",
|
|
466
|
+
ksu8eU: "x1y0btm7",
|
|
467
|
+
kaIpWk: "x12fpg5d",
|
|
468
|
+
k1ekBW: "xshfolx",
|
|
469
|
+
kIyJzY: "xx6bhzk",
|
|
470
|
+
kAMwcw: "xwji4o3",
|
|
471
|
+
kMeerF: "x1k57tk5 x784prv",
|
|
472
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
473
|
+
kjBf7l: "x1uczgqu x1kpnk96",
|
|
474
|
+
kInvED: "x1wfwxd8 x13iak60",
|
|
475
|
+
$$css: !0
|
|
384
476
|
},
|
|
385
477
|
default: {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
":hover": o.textMuted,
|
|
389
|
-
":focus": o.accent
|
|
390
|
-
}
|
|
478
|
+
kVAM5u: "x8sq793 x15ifnsi x15rm23n",
|
|
479
|
+
$$css: !0
|
|
391
480
|
},
|
|
392
481
|
error: {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
":focus": o.error
|
|
396
|
-
}
|
|
482
|
+
kVAM5u: "x100xte9 xdikpbx",
|
|
483
|
+
$$css: !0
|
|
397
484
|
}
|
|
398
|
-
}
|
|
399
|
-
function
|
|
400
|
-
variant:
|
|
401
|
-
type:
|
|
485
|
+
};
|
|
486
|
+
function Nt({
|
|
487
|
+
variant: e = "default",
|
|
488
|
+
type: t = "text",
|
|
402
489
|
name: r,
|
|
403
490
|
placeholder: n,
|
|
404
|
-
required:
|
|
491
|
+
required: o,
|
|
405
492
|
minLength: s,
|
|
406
|
-
pattern:
|
|
493
|
+
pattern: l,
|
|
407
494
|
autoComplete: c,
|
|
408
|
-
value:
|
|
409
|
-
defaultValue:
|
|
410
|
-
disabled:
|
|
411
|
-
onChange:
|
|
495
|
+
value: k,
|
|
496
|
+
defaultValue: i,
|
|
497
|
+
disabled: x,
|
|
498
|
+
onChange: a
|
|
412
499
|
}) {
|
|
413
|
-
const
|
|
414
|
-
pattern:
|
|
500
|
+
const m = U(), w = l !== void 0 ? {
|
|
501
|
+
pattern: l
|
|
415
502
|
} : void 0;
|
|
416
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ u("input", { id: m?.controlId, type: t, name: r, placeholder: n, required: o, minLength: s, autoComplete: c, value: k, defaultValue: i, disabled: x, "aria-describedby": m ? `${m.descriptionId} ${m.invalid ? m.errorId : ""}`.trim() : void 0, "aria-invalid": m?.invalid || e === "error" || void 0, onChange: a, ...f(g.input, ue.base, ue[e]), ...w, dir: "auto" });
|
|
417
504
|
}
|
|
418
|
-
const
|
|
505
|
+
const L = {
|
|
419
506
|
root: {
|
|
420
|
-
|
|
421
|
-
|
|
507
|
+
kVAEAm: "x1n2onr6",
|
|
508
|
+
k1xSpc: "x3nfvp2",
|
|
509
|
+
$$css: !0
|
|
422
510
|
},
|
|
423
511
|
trigger: {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
transitionProperty: "background-color, border-color",
|
|
444
|
-
transitionDuration: "150ms"
|
|
512
|
+
k1xSpc: "x3nfvp2",
|
|
513
|
+
kGNEyG: "x6s0dn4",
|
|
514
|
+
kOIVth: "x10k1rbm",
|
|
515
|
+
kLKAdn: "x1g9jjt5",
|
|
516
|
+
kGO01o: "x1jybd5k",
|
|
517
|
+
kE3dHu: "xsk07c1",
|
|
518
|
+
kpe85a: "x15wirxn",
|
|
519
|
+
kMv6JI: "x1pzdjp3",
|
|
520
|
+
kGuDYH: "x1f5wsqz",
|
|
521
|
+
kMwMTN: "x1q7k5ly",
|
|
522
|
+
kWkggS: "xjbqb8w x16rx6z8",
|
|
523
|
+
kMzoRj: "xmkeg23",
|
|
524
|
+
ksu8eU: "x1y0btm7",
|
|
525
|
+
kVAM5u: "x8sq793",
|
|
526
|
+
kaIpWk: "x12fpg5d",
|
|
527
|
+
kkrTdU: "x1ypdohk",
|
|
528
|
+
k1ekBW: "xts7igz",
|
|
529
|
+
kIyJzY: "xx6bhzk",
|
|
530
|
+
$$css: !0
|
|
445
531
|
},
|
|
446
532
|
backdrop: {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
533
|
+
kVAEAm: "xixxii4",
|
|
534
|
+
k87sOh: "x13vifvy",
|
|
535
|
+
kbCHJM: "xu96u03",
|
|
536
|
+
kCIrl2: "x3m8u43",
|
|
537
|
+
krVfgx: "x1ey2m1c",
|
|
538
|
+
kY2c9j: "x1ygf0dq",
|
|
539
|
+
$$css: !0
|
|
453
540
|
},
|
|
454
541
|
popup: {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
542
|
+
kVAEAm: "x10l6tqk",
|
|
543
|
+
k87sOh: "xdsb8wn",
|
|
544
|
+
kbCHJM: "xu96u03",
|
|
545
|
+
keoZOQ: "x1x9u35d",
|
|
546
|
+
kWkggS: "xdz192t",
|
|
547
|
+
kMzoRj: "xmkeg23",
|
|
548
|
+
ksu8eU: "x1y0btm7",
|
|
549
|
+
kVAM5u: "x8sq793",
|
|
550
|
+
kaIpWk: "x12fpg5d",
|
|
551
|
+
kGVxlE: "xconxm6",
|
|
552
|
+
kLKAdn: "x12lvzsw",
|
|
553
|
+
kGO01o: "xpz7ktu",
|
|
554
|
+
k7Eaqz: "x5w4yej",
|
|
555
|
+
kY2c9j: "xa9119d",
|
|
556
|
+
$$css: !0
|
|
469
557
|
},
|
|
470
558
|
popupEnd: {
|
|
471
|
-
|
|
472
|
-
|
|
559
|
+
kbCHJM: "x1t8mvi6",
|
|
560
|
+
kCIrl2: "x3m8u43",
|
|
561
|
+
$$css: !0
|
|
473
562
|
},
|
|
474
563
|
item: {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
564
|
+
k1xSpc: "x78zum5",
|
|
565
|
+
kGNEyG: "x6s0dn4",
|
|
566
|
+
kLKAdn: "x1g9jjt5",
|
|
567
|
+
kGO01o: "x1jybd5k",
|
|
568
|
+
kE3dHu: "xsk07c1",
|
|
569
|
+
kpe85a: "x15wirxn",
|
|
570
|
+
kGuDYH: "x1f5wsqz",
|
|
571
|
+
kMv6JI: "x1pzdjp3",
|
|
572
|
+
kMwMTN: "x1q7k5ly",
|
|
573
|
+
kaIpWk: "x12fpg5d",
|
|
574
|
+
kkrTdU: "x1ypdohk",
|
|
575
|
+
kWkggS: "xjbqb8w",
|
|
576
|
+
k1ekBW: "x15406qy",
|
|
577
|
+
kIyJzY: "xx6bhzk",
|
|
578
|
+
$$css: !0
|
|
489
579
|
},
|
|
490
580
|
itemHighlighted: {
|
|
491
|
-
|
|
581
|
+
kWkggS: "x1t1330p",
|
|
582
|
+
$$css: !0
|
|
492
583
|
},
|
|
493
584
|
linkItem: {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
":hover": o.text
|
|
498
|
-
}
|
|
585
|
+
kybGjl: "x1hl2dhg",
|
|
586
|
+
kMwMTN: "x1q7k5ly x1hcr4s8",
|
|
587
|
+
$$css: !0
|
|
499
588
|
}
|
|
500
|
-
}
|
|
501
|
-
function
|
|
502
|
-
const
|
|
503
|
-
if (!
|
|
504
|
-
return
|
|
589
|
+
}, ve = V(null);
|
|
590
|
+
function Q() {
|
|
591
|
+
const e = E(ve);
|
|
592
|
+
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
593
|
+
return e;
|
|
505
594
|
}
|
|
506
|
-
function
|
|
507
|
-
const [
|
|
508
|
-
|
|
509
|
-
}, []),
|
|
510
|
-
|
|
595
|
+
function Pe() {
|
|
596
|
+
const [e, t] = H(!1), [r, n] = H(null), o = P(), s = y(null), l = y(null), c = y(/* @__PURE__ */ new Map()), k = y([]), i = y(!1), x = I(() => {
|
|
597
|
+
t(!1), n(null), i.current = !1, l.current?.focus();
|
|
598
|
+
}, []), a = I(() => {
|
|
599
|
+
t((p) => (p ? (n(null), i.current = !1) : i.current = !0, !p));
|
|
511
600
|
}, []);
|
|
512
|
-
|
|
513
|
-
if (
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
601
|
+
T(() => {
|
|
602
|
+
if (e && i.current) {
|
|
603
|
+
i.current = !1;
|
|
604
|
+
const p = k.current;
|
|
605
|
+
p.length > 0 && n(p[0]);
|
|
517
606
|
}
|
|
518
|
-
}, [
|
|
519
|
-
const
|
|
520
|
-
c.current.set(
|
|
521
|
-
const v = c.current,
|
|
522
|
-
return
|
|
523
|
-
const
|
|
524
|
-
return !
|
|
525
|
-
}),
|
|
526
|
-
c.current.delete(
|
|
607
|
+
}, [e]);
|
|
608
|
+
const m = I((p, h) => {
|
|
609
|
+
c.current.set(p, h);
|
|
610
|
+
const v = c.current, b = [...v.keys()];
|
|
611
|
+
return b.sort((d, $) => {
|
|
612
|
+
const O = v.get(d), q = v.get($);
|
|
613
|
+
return !O || !q ? 0 : O.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
614
|
+
}), k.current = b, () => {
|
|
615
|
+
c.current.delete(p), k.current = k.current.filter((d) => d !== p);
|
|
527
616
|
};
|
|
528
617
|
}, []);
|
|
529
|
-
return
|
|
530
|
-
const
|
|
531
|
-
if (!
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
if (
|
|
618
|
+
return T(() => {
|
|
619
|
+
const p = s.current;
|
|
620
|
+
if (!p || !e) return;
|
|
621
|
+
function h(v) {
|
|
622
|
+
const b = k.current;
|
|
623
|
+
if (b.length !== 0)
|
|
535
624
|
switch (v.key) {
|
|
536
625
|
case "ArrowDown": {
|
|
537
|
-
v.preventDefault(), n((
|
|
538
|
-
const
|
|
539
|
-
return
|
|
626
|
+
v.preventDefault(), n((d) => {
|
|
627
|
+
const $ = d ? b.indexOf(d) : -1;
|
|
628
|
+
return b[($ + 1) % b.length];
|
|
540
629
|
});
|
|
541
630
|
break;
|
|
542
631
|
}
|
|
543
632
|
case "ArrowUp": {
|
|
544
|
-
v.preventDefault(), n((
|
|
545
|
-
const
|
|
546
|
-
return
|
|
633
|
+
v.preventDefault(), n((d) => {
|
|
634
|
+
const $ = d ? b.indexOf(d) : 0;
|
|
635
|
+
return b[($ - 1 + b.length) % b.length];
|
|
547
636
|
});
|
|
548
637
|
break;
|
|
549
638
|
}
|
|
550
639
|
case "Home": {
|
|
551
|
-
v.preventDefault(), n(
|
|
640
|
+
v.preventDefault(), n(b[0]);
|
|
552
641
|
break;
|
|
553
642
|
}
|
|
554
643
|
case "End": {
|
|
555
|
-
v.preventDefault(), n(
|
|
644
|
+
v.preventDefault(), n(b[b.length - 1]);
|
|
556
645
|
break;
|
|
557
646
|
}
|
|
558
647
|
case "Enter":
|
|
559
648
|
case " ": {
|
|
560
649
|
v.preventDefault();
|
|
561
|
-
const
|
|
562
|
-
n((
|
|
650
|
+
const d = c.current;
|
|
651
|
+
n(($) => ($ && d.get($)?.click(), $));
|
|
563
652
|
break;
|
|
564
653
|
}
|
|
565
654
|
case "Escape":
|
|
566
655
|
case "Tab": {
|
|
567
|
-
|
|
656
|
+
x();
|
|
568
657
|
break;
|
|
569
658
|
}
|
|
570
659
|
}
|
|
571
660
|
}
|
|
572
|
-
return
|
|
573
|
-
}, [
|
|
661
|
+
return p.addEventListener("keydown", h), () => p.removeEventListener("keydown", h);
|
|
662
|
+
}, [e, x]), {
|
|
574
663
|
ctx: {
|
|
575
|
-
open:
|
|
576
|
-
toggle:
|
|
577
|
-
close:
|
|
578
|
-
menuId:
|
|
664
|
+
open: e,
|
|
665
|
+
toggle: a,
|
|
666
|
+
close: x,
|
|
667
|
+
menuId: o,
|
|
579
668
|
highlightedId: r,
|
|
580
669
|
setHighlightedId: n,
|
|
581
|
-
registerItem:
|
|
582
|
-
triggerRef:
|
|
670
|
+
registerItem: m,
|
|
671
|
+
triggerRef: l
|
|
583
672
|
},
|
|
584
673
|
rootRef: s
|
|
585
674
|
};
|
|
586
675
|
}
|
|
587
|
-
function
|
|
588
|
-
children:
|
|
676
|
+
function Ye({
|
|
677
|
+
children: e
|
|
589
678
|
}) {
|
|
590
679
|
const {
|
|
591
|
-
ctx:
|
|
680
|
+
ctx: t,
|
|
592
681
|
rootRef: r
|
|
593
|
-
} =
|
|
594
|
-
return /* @__PURE__ */
|
|
682
|
+
} = Pe();
|
|
683
|
+
return /* @__PURE__ */ u(ve.Provider, { value: t, children: /* @__PURE__ */ u("div", { ref: r, ...f(g.div, L.root), children: e }) });
|
|
595
684
|
}
|
|
596
|
-
function
|
|
597
|
-
children:
|
|
685
|
+
function Xe({
|
|
686
|
+
children: e
|
|
598
687
|
}) {
|
|
599
688
|
const {
|
|
600
|
-
open:
|
|
689
|
+
open: t,
|
|
601
690
|
toggle: r,
|
|
602
691
|
menuId: n,
|
|
603
|
-
triggerRef:
|
|
604
|
-
} =
|
|
605
|
-
return
|
|
606
|
-
|
|
607
|
-
}), /* @__PURE__ */
|
|
692
|
+
triggerRef: o
|
|
693
|
+
} = Q(), s = y(null);
|
|
694
|
+
return T(() => {
|
|
695
|
+
o.current = s.current;
|
|
696
|
+
}), /* @__PURE__ */ u("button", { ref: s, type: "button", onClick: r, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? n : void 0, ...f(g.button, L.trigger), children: e });
|
|
608
697
|
}
|
|
609
|
-
function
|
|
610
|
-
children:
|
|
611
|
-
align:
|
|
698
|
+
function Je({
|
|
699
|
+
children: e,
|
|
700
|
+
align: t = "start"
|
|
612
701
|
}) {
|
|
613
702
|
const {
|
|
614
703
|
open: r,
|
|
615
704
|
close: n,
|
|
616
|
-
menuId:
|
|
705
|
+
menuId: o,
|
|
617
706
|
highlightedId: s
|
|
618
|
-
} =
|
|
619
|
-
return r ? /* @__PURE__ */
|
|
620
|
-
/* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
707
|
+
} = Q();
|
|
708
|
+
return r ? /* @__PURE__ */ Y(ke, { children: [
|
|
709
|
+
/* @__PURE__ */ u("div", { ...f(g.div, L.backdrop), onClick: n }),
|
|
710
|
+
/* @__PURE__ */ u("div", { id: o, role: "menu", "aria-activedescendant": s ?? void 0, ...f(g.div, L.popup, t === "end" && L.popupEnd), children: e })
|
|
622
711
|
] }) : null;
|
|
623
712
|
}
|
|
624
|
-
function
|
|
625
|
-
onClick:
|
|
626
|
-
children:
|
|
713
|
+
function Ke({
|
|
714
|
+
onClick: e,
|
|
715
|
+
children: t
|
|
627
716
|
}) {
|
|
628
717
|
const {
|
|
629
718
|
close: r,
|
|
630
719
|
highlightedId: n,
|
|
631
|
-
setHighlightedId:
|
|
720
|
+
setHighlightedId: o,
|
|
632
721
|
registerItem: s
|
|
633
|
-
} =
|
|
634
|
-
|
|
635
|
-
const
|
|
636
|
-
if (
|
|
637
|
-
return s(
|
|
638
|
-
}, [
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
};
|
|
642
|
-
return /* @__PURE__ */ a(g.div, { ref: c, id: d, role: "menuitem", onClick: u, onPointerEnter: () => l(d), style: [N.item, m && N.itemHighlighted], children: e });
|
|
722
|
+
} = Q(), l = P(), c = y(null), k = n === l;
|
|
723
|
+
return T(() => {
|
|
724
|
+
const x = c.current;
|
|
725
|
+
if (x)
|
|
726
|
+
return s(l, x);
|
|
727
|
+
}, [l, s]), /* @__PURE__ */ u("div", { ref: c, id: l, role: "menuitem", onClick: () => {
|
|
728
|
+
e?.(), r();
|
|
729
|
+
}, onPointerEnter: () => o(l), ...f(g.div, L.item, k && L.itemHighlighted), children: t });
|
|
643
730
|
}
|
|
644
|
-
function
|
|
645
|
-
href:
|
|
646
|
-
children:
|
|
731
|
+
function Ue({
|
|
732
|
+
href: e,
|
|
733
|
+
children: t
|
|
647
734
|
}) {
|
|
648
735
|
const {
|
|
649
736
|
close: r,
|
|
650
737
|
highlightedId: n,
|
|
651
|
-
setHighlightedId:
|
|
738
|
+
setHighlightedId: o,
|
|
652
739
|
registerItem: s
|
|
653
|
-
} =
|
|
654
|
-
return
|
|
655
|
-
const
|
|
656
|
-
if (
|
|
657
|
-
return s(
|
|
658
|
-
}, [
|
|
740
|
+
} = Q(), l = P(), c = y(null), k = n === l;
|
|
741
|
+
return T(() => {
|
|
742
|
+
const i = c.current;
|
|
743
|
+
if (i)
|
|
744
|
+
return s(l, i);
|
|
745
|
+
}, [l, s]), /* @__PURE__ */ u("a", { ref: c, id: l, href: e, onClick: r, role: "menuitem", onPointerEnter: () => o(l), ...f(g.a, L.item, L.linkItem, k && L.itemHighlighted), children: t });
|
|
659
746
|
}
|
|
660
|
-
const
|
|
661
|
-
Root:
|
|
662
|
-
Trigger:
|
|
663
|
-
Popup:
|
|
664
|
-
Item:
|
|
665
|
-
LinkItem:
|
|
666
|
-
},
|
|
747
|
+
const Dt = {
|
|
748
|
+
Root: Ye,
|
|
749
|
+
Trigger: Xe,
|
|
750
|
+
Popup: Je,
|
|
751
|
+
Item: Ke,
|
|
752
|
+
LinkItem: Ue
|
|
753
|
+
}, A = {
|
|
667
754
|
root: {
|
|
668
|
-
|
|
669
|
-
|
|
755
|
+
kVAEAm: "x1n2onr6",
|
|
756
|
+
kVQacm: "xb3r6kr",
|
|
757
|
+
$$css: !0
|
|
670
758
|
},
|
|
671
759
|
viewport: {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
760
|
+
kzqmXN: "xh8yej3",
|
|
761
|
+
kZKoxP: "x5yr21d",
|
|
762
|
+
kXHlph: "xw2csxc",
|
|
763
|
+
kORKVm: "x1odjw0f",
|
|
764
|
+
k5wCbM: "x1rohswg",
|
|
765
|
+
$$css: !0
|
|
678
766
|
},
|
|
679
767
|
content: {
|
|
680
|
-
|
|
681
|
-
|
|
768
|
+
k7Eaqz: "xgqtt45",
|
|
769
|
+
kAzted: "x1us19tq",
|
|
770
|
+
$$css: !0
|
|
682
771
|
},
|
|
683
772
|
scrollbar: {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
773
|
+
kVAEAm: "x10l6tqk",
|
|
774
|
+
kY2c9j: "x1vjfegm",
|
|
775
|
+
k1xSpc: "x78zum5",
|
|
776
|
+
kFalU9: "x5ve5x3",
|
|
777
|
+
kfSwDN: "x87ps6o",
|
|
778
|
+
k1ekBW: "x19991ni",
|
|
779
|
+
kIyJzY: "x13dflua",
|
|
780
|
+
kAMwcw: "xwji4o3",
|
|
781
|
+
$$css: !0
|
|
692
782
|
},
|
|
693
783
|
scrollbarVertical: {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
784
|
+
k87sOh: "x13vifvy",
|
|
785
|
+
kCIrl2: "x3m8u43",
|
|
786
|
+
krVfgx: "x1ey2m1c",
|
|
787
|
+
kzqmXN: "x1xc55vz",
|
|
788
|
+
kXwgrk: "xdt5ytf",
|
|
789
|
+
kLKAdn: "x1nn3v0j",
|
|
790
|
+
kGO01o: "x1120s5i",
|
|
791
|
+
kpe85a: "xpf9j6y",
|
|
792
|
+
$$css: !0
|
|
702
793
|
},
|
|
703
794
|
scrollbarHorizontal: {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
795
|
+
kbCHJM: "xu96u03",
|
|
796
|
+
kCIrl2: "x3m8u43",
|
|
797
|
+
krVfgx: "x1ey2m1c",
|
|
798
|
+
kZKoxP: "xdk7pt",
|
|
799
|
+
kXwgrk: "x1q0g3np",
|
|
800
|
+
kE3dHu: "xj9uezu",
|
|
801
|
+
kpe85a: "xpf9j6y",
|
|
802
|
+
kGO01o: "x1120s5i",
|
|
803
|
+
$$css: !0
|
|
712
804
|
},
|
|
713
805
|
scrollbarHidden: {
|
|
714
|
-
|
|
806
|
+
kSiTet: "xg01cxk",
|
|
807
|
+
$$css: !0
|
|
715
808
|
},
|
|
716
809
|
scrollbarVisible: {
|
|
717
|
-
|
|
810
|
+
kSiTet: "x1hc1fzr",
|
|
811
|
+
$$css: !0
|
|
718
812
|
},
|
|
719
813
|
thumb: {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
maxHeight: t
|
|
733
|
-
}
|
|
734
|
-
thumbVertical: (
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
transform:
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
814
|
+
kVAEAm: "x1n2onr6",
|
|
815
|
+
kUk6DE: "x98rzlu",
|
|
816
|
+
kWkggS: "xmhi8gf x1bmdpb0",
|
|
817
|
+
kaIpWk: "x9s7flb",
|
|
818
|
+
k1ekBW: "x15406qy",
|
|
819
|
+
kIyJzY: "xx6bhzk",
|
|
820
|
+
$$css: !0
|
|
821
|
+
},
|
|
822
|
+
viewportMaxHeight: (e) => [{
|
|
823
|
+
kskxy: e != null ? "x1jols5v" : e,
|
|
824
|
+
$$css: !0
|
|
825
|
+
}, {
|
|
826
|
+
"--x-maxHeight": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(e)
|
|
827
|
+
}],
|
|
828
|
+
thumbVertical: (e, t) => [{
|
|
829
|
+
kZKoxP: e != null ? "x16ye13r" : e,
|
|
830
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
831
|
+
$$css: !0
|
|
832
|
+
}, {
|
|
833
|
+
"--x-height": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e),
|
|
834
|
+
"--x-transform": t ?? void 0
|
|
835
|
+
}],
|
|
836
|
+
thumbHorizontal: (e, t) => [{
|
|
837
|
+
kzqmXN: e != null ? "x5lhr3w" : e,
|
|
838
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
839
|
+
$$css: !0
|
|
840
|
+
}, {
|
|
841
|
+
"--x-width": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e),
|
|
842
|
+
"--x-transform": t ?? void 0
|
|
843
|
+
}]
|
|
844
|
+
}, he = V(null);
|
|
845
|
+
function F() {
|
|
846
|
+
const e = E(he);
|
|
847
|
+
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
848
|
+
return e;
|
|
747
849
|
}
|
|
748
|
-
function
|
|
749
|
-
const
|
|
750
|
-
const
|
|
751
|
-
|
|
850
|
+
function _e() {
|
|
851
|
+
const e = y(null), t = y(null), [r, n] = H(0), [o, s] = H(0), [l, c] = H(0), [k, i] = H(0), [x, a] = H(0), [m, w] = H(0), [p, h] = H(!1), v = y(null), b = I(() => {
|
|
852
|
+
const d = e.current;
|
|
853
|
+
d && (n(d.scrollTop), s(d.scrollLeft), c(d.scrollHeight), i(d.scrollWidth), a(d.clientHeight), w(d.clientWidth), h(!0), v.current && clearTimeout(v.current), v.current = setTimeout(() => h(!1), 1e3));
|
|
752
854
|
}, []);
|
|
753
|
-
return
|
|
754
|
-
const
|
|
755
|
-
if (!
|
|
756
|
-
const
|
|
757
|
-
c(
|
|
855
|
+
return T(() => {
|
|
856
|
+
const d = e.current;
|
|
857
|
+
if (!d) return;
|
|
858
|
+
const $ = new ResizeObserver(() => {
|
|
859
|
+
c(d.scrollHeight), i(d.scrollWidth), a(d.clientHeight), w(d.clientWidth);
|
|
758
860
|
});
|
|
759
|
-
return
|
|
760
|
-
}, []),
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
763
|
-
return
|
|
861
|
+
return $.observe(d), c(d.scrollHeight), i(d.scrollWidth), a(d.clientHeight), w(d.clientWidth), () => $.disconnect();
|
|
862
|
+
}, []), T(() => {
|
|
863
|
+
const d = e.current;
|
|
864
|
+
if (d)
|
|
865
|
+
return d.addEventListener("scroll", b, {
|
|
764
866
|
passive: !0
|
|
765
|
-
}), () =>
|
|
766
|
-
}, [
|
|
767
|
-
viewportRef:
|
|
768
|
-
contentRef:
|
|
867
|
+
}), () => d.removeEventListener("scroll", b);
|
|
868
|
+
}, [b]), {
|
|
869
|
+
viewportRef: e,
|
|
870
|
+
contentRef: t,
|
|
769
871
|
scrollTop: r,
|
|
770
|
-
scrollLeft:
|
|
771
|
-
scrollHeight:
|
|
772
|
-
scrollWidth:
|
|
773
|
-
clientHeight:
|
|
774
|
-
clientWidth:
|
|
775
|
-
scrolling:
|
|
872
|
+
scrollLeft: o,
|
|
873
|
+
scrollHeight: l,
|
|
874
|
+
scrollWidth: k,
|
|
875
|
+
clientHeight: x,
|
|
876
|
+
clientWidth: m,
|
|
877
|
+
scrolling: p
|
|
776
878
|
};
|
|
777
879
|
}
|
|
778
|
-
function
|
|
779
|
-
children:
|
|
880
|
+
function Qe({
|
|
881
|
+
children: e
|
|
780
882
|
}) {
|
|
781
|
-
const
|
|
782
|
-
return /* @__PURE__ */
|
|
883
|
+
const t = _e();
|
|
884
|
+
return /* @__PURE__ */ u(he.Provider, { value: t, children: /* @__PURE__ */ u("div", { ...f(g.div, A.root), children: e }) });
|
|
783
885
|
}
|
|
784
|
-
function
|
|
785
|
-
children:
|
|
786
|
-
maxHeight:
|
|
886
|
+
function Fe({
|
|
887
|
+
children: e,
|
|
888
|
+
maxHeight: t
|
|
787
889
|
}) {
|
|
788
890
|
const {
|
|
789
891
|
viewportRef: r
|
|
790
|
-
} =
|
|
791
|
-
return /* @__PURE__ */
|
|
892
|
+
} = F();
|
|
893
|
+
return /* @__PURE__ */ u("div", { ref: r, ...f(g.div, A.viewport, t != null && A.viewportMaxHeight(t)), children: e });
|
|
792
894
|
}
|
|
793
|
-
function
|
|
794
|
-
children:
|
|
895
|
+
function Ze({
|
|
896
|
+
children: e
|
|
795
897
|
}) {
|
|
796
898
|
const {
|
|
797
|
-
contentRef:
|
|
798
|
-
} =
|
|
799
|
-
return /* @__PURE__ */
|
|
899
|
+
contentRef: t
|
|
900
|
+
} = F();
|
|
901
|
+
return /* @__PURE__ */ u("div", { ref: t, ...f(g.div, A.content), children: e });
|
|
800
902
|
}
|
|
801
|
-
function
|
|
802
|
-
orientation:
|
|
803
|
-
children:
|
|
903
|
+
function et({
|
|
904
|
+
orientation: e = "vertical",
|
|
905
|
+
children: t
|
|
804
906
|
}) {
|
|
805
907
|
const {
|
|
806
908
|
scrolling: r,
|
|
807
909
|
scrollHeight: n,
|
|
808
|
-
scrollWidth:
|
|
910
|
+
scrollWidth: o,
|
|
809
911
|
clientHeight: s,
|
|
810
|
-
clientWidth:
|
|
811
|
-
} =
|
|
812
|
-
return (
|
|
912
|
+
clientWidth: l
|
|
913
|
+
} = F();
|
|
914
|
+
return (e === "vertical" ? n > s : o > l) ? /* @__PURE__ */ u("div", { ...f(g.div, A.scrollbar, e === "vertical" ? A.scrollbarVertical : A.scrollbarHorizontal, r ? A.scrollbarVisible : A.scrollbarHidden), children: t }) : null;
|
|
813
915
|
}
|
|
814
|
-
function
|
|
815
|
-
orientation:
|
|
916
|
+
function tt({
|
|
917
|
+
orientation: e = "vertical"
|
|
816
918
|
}) {
|
|
817
919
|
const {
|
|
818
|
-
viewportRef:
|
|
920
|
+
viewportRef: t,
|
|
819
921
|
scrollTop: r,
|
|
820
922
|
scrollLeft: n,
|
|
821
|
-
scrollHeight:
|
|
923
|
+
scrollHeight: o,
|
|
822
924
|
scrollWidth: s,
|
|
823
|
-
clientHeight:
|
|
925
|
+
clientHeight: l,
|
|
824
926
|
clientWidth: c
|
|
825
|
-
} =
|
|
826
|
-
|
|
827
|
-
}, [
|
|
828
|
-
if (!
|
|
829
|
-
const
|
|
830
|
-
if (!
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
}, [
|
|
834
|
-
|
|
927
|
+
} = F(), k = y(!1), i = y(0), x = y(0), a = e === "vertical", m = Math.max(a ? l / o * 100 : c / s * 100, 10), w = a ? o - l : s - c, p = a ? l : c, h = m / 100 * p, v = a ? r : n, b = w > 0 ? v / w * (p - h) : 0, d = a ? A.thumbVertical(`${m}%`, `translateY(${b}px)`) : A.thumbHorizontal(`${m}%`, `translateX(${b}px)`), $ = I((z) => {
|
|
928
|
+
z.preventDefault(), k.current = !0, i.current = a ? z.clientY : z.clientX, x.current = a ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, z.target.setPointerCapture(z.pointerId);
|
|
929
|
+
}, [a, t]), O = I((z) => {
|
|
930
|
+
if (!k.current) return;
|
|
931
|
+
const M = t.current;
|
|
932
|
+
if (!M) return;
|
|
933
|
+
const j = (a ? z.clientY : z.clientX) - i.current, G = w / (p - h), S = j * G;
|
|
934
|
+
a ? M.scrollTop = x.current + S : M.scrollLeft = x.current + S;
|
|
935
|
+
}, [a, w, p, h, t]), q = I(() => {
|
|
936
|
+
k.current = !1;
|
|
835
937
|
}, []);
|
|
836
|
-
return /* @__PURE__ */
|
|
938
|
+
return /* @__PURE__ */ u("div", { onPointerDown: $, onPointerMove: O, onPointerUp: q, ...f(g.div, A.thumb, d) });
|
|
837
939
|
}
|
|
838
|
-
const
|
|
839
|
-
Root:
|
|
840
|
-
Viewport:
|
|
841
|
-
Content:
|
|
842
|
-
Scrollbar:
|
|
843
|
-
Thumb:
|
|
844
|
-
},
|
|
940
|
+
const Bt = {
|
|
941
|
+
Root: Qe,
|
|
942
|
+
Viewport: Fe,
|
|
943
|
+
Content: Ze,
|
|
944
|
+
Scrollbar: et,
|
|
945
|
+
Thumb: tt
|
|
946
|
+
}, C = {
|
|
845
947
|
root: {
|
|
846
|
-
|
|
847
|
-
|
|
948
|
+
kVAEAm: "x1n2onr6",
|
|
949
|
+
k1xSpc: "x3nfvp2",
|
|
950
|
+
$$css: !0
|
|
848
951
|
},
|
|
849
952
|
trigger: {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
transitionProperty: "border-color",
|
|
871
|
-
transitionDuration: "150ms"
|
|
953
|
+
k1xSpc: "x3nfvp2",
|
|
954
|
+
kGNEyG: "x6s0dn4",
|
|
955
|
+
kjj79g: "x1qughib",
|
|
956
|
+
kOIVth: "x10k1rbm",
|
|
957
|
+
kLKAdn: "x1g9jjt5",
|
|
958
|
+
kGO01o: "x1jybd5k",
|
|
959
|
+
kE3dHu: "xsk07c1",
|
|
960
|
+
kpe85a: "x15wirxn",
|
|
961
|
+
kMv6JI: "x1pzdjp3",
|
|
962
|
+
kGuDYH: "x1f5wsqz",
|
|
963
|
+
kMwMTN: "x1q7k5ly",
|
|
964
|
+
kWkggS: "xdz192t",
|
|
965
|
+
kMzoRj: "xmkeg23",
|
|
966
|
+
ksu8eU: "x1y0btm7",
|
|
967
|
+
kVAM5u: "x8sq793 x9la8fy",
|
|
968
|
+
kaIpWk: "x12fpg5d",
|
|
969
|
+
kkrTdU: "x1ypdohk",
|
|
970
|
+
k1ekBW: "xshfolx",
|
|
971
|
+
kIyJzY: "xx6bhzk",
|
|
972
|
+
$$css: !0
|
|
872
973
|
},
|
|
873
974
|
value: {
|
|
874
|
-
|
|
975
|
+
kMwMTN: "x1q7k5ly",
|
|
976
|
+
$$css: !0
|
|
875
977
|
},
|
|
876
978
|
placeholder: {
|
|
877
|
-
|
|
979
|
+
kMwMTN: "x3dll8l",
|
|
980
|
+
$$css: !0
|
|
878
981
|
},
|
|
879
982
|
icon: {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
983
|
+
k1xSpc: "x78zum5",
|
|
984
|
+
kGNEyG: "x6s0dn4",
|
|
985
|
+
kMwMTN: "x3dll8l",
|
|
986
|
+
$$css: !0
|
|
883
987
|
},
|
|
884
988
|
backdrop: {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
989
|
+
kVAEAm: "xixxii4",
|
|
990
|
+
k87sOh: "x13vifvy",
|
|
991
|
+
kbCHJM: "xu96u03",
|
|
992
|
+
kCIrl2: "x3m8u43",
|
|
993
|
+
krVfgx: "x1ey2m1c",
|
|
994
|
+
kY2c9j: "x1ygf0dq",
|
|
995
|
+
$$css: !0
|
|
891
996
|
},
|
|
892
997
|
popup: {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
998
|
+
kVAEAm: "x10l6tqk",
|
|
999
|
+
k87sOh: "xdsb8wn",
|
|
1000
|
+
kbCHJM: "xu96u03",
|
|
1001
|
+
keoZOQ: "x1x9u35d",
|
|
1002
|
+
kWkggS: "xdz192t",
|
|
1003
|
+
kMzoRj: "xmkeg23",
|
|
1004
|
+
ksu8eU: "x1y0btm7",
|
|
1005
|
+
kVAM5u: "x8sq793",
|
|
1006
|
+
kaIpWk: "x12fpg5d",
|
|
1007
|
+
kGVxlE: "xconxm6",
|
|
1008
|
+
kLKAdn: "x12lvzsw",
|
|
1009
|
+
kGO01o: "xpz7ktu",
|
|
1010
|
+
k7Eaqz: "x1i9suas",
|
|
1011
|
+
kY2c9j: "xa9119d",
|
|
1012
|
+
$$css: !0
|
|
907
1013
|
},
|
|
908
1014
|
item: {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1015
|
+
k1xSpc: "x78zum5",
|
|
1016
|
+
kGNEyG: "x6s0dn4",
|
|
1017
|
+
kLKAdn: "x1g9jjt5",
|
|
1018
|
+
kGO01o: "x1jybd5k",
|
|
1019
|
+
kE3dHu: "xsk07c1",
|
|
1020
|
+
kpe85a: "x15wirxn",
|
|
1021
|
+
kGuDYH: "x1f5wsqz",
|
|
1022
|
+
kMv6JI: "x1pzdjp3",
|
|
1023
|
+
kMwMTN: "x1q7k5ly",
|
|
1024
|
+
kaIpWk: "x12fpg5d",
|
|
1025
|
+
kkrTdU: "x1ypdohk",
|
|
1026
|
+
kWkggS: "xjbqb8w",
|
|
1027
|
+
k1ekBW: "x15406qy",
|
|
1028
|
+
kIyJzY: "xx6bhzk",
|
|
1029
|
+
$$css: !0
|
|
923
1030
|
},
|
|
924
1031
|
itemSelected: {
|
|
925
|
-
|
|
926
|
-
|
|
1032
|
+
kMwMTN: "x1jv78v8",
|
|
1033
|
+
k63SB2: "x1oq67d7",
|
|
1034
|
+
$$css: !0
|
|
927
1035
|
},
|
|
928
1036
|
itemHighlighted: {
|
|
929
|
-
|
|
1037
|
+
kWkggS: "x1t1330p",
|
|
1038
|
+
$$css: !0
|
|
930
1039
|
},
|
|
931
1040
|
hidden: {
|
|
932
|
-
|
|
1041
|
+
k1xSpc: "x1s85apg",
|
|
1042
|
+
$$css: !0
|
|
933
1043
|
}
|
|
934
|
-
}
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
if (!
|
|
938
|
-
return
|
|
1044
|
+
}, be = V(null);
|
|
1045
|
+
function Z() {
|
|
1046
|
+
const e = E(be);
|
|
1047
|
+
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1048
|
+
return e;
|
|
939
1049
|
}
|
|
940
|
-
function
|
|
941
|
-
const [n,
|
|
942
|
-
|
|
943
|
-
}, [
|
|
944
|
-
return [s,
|
|
1050
|
+
function ne(e, t, r) {
|
|
1051
|
+
const [n, o] = H(t), s = e !== void 0 ? e : n, l = I((c) => {
|
|
1052
|
+
e === void 0 && o(c), r?.(c);
|
|
1053
|
+
}, [e, r]);
|
|
1054
|
+
return [s, l];
|
|
945
1055
|
}
|
|
946
|
-
function
|
|
947
|
-
defaultValue:
|
|
948
|
-
value:
|
|
1056
|
+
function rt({
|
|
1057
|
+
defaultValue: e,
|
|
1058
|
+
value: t,
|
|
949
1059
|
onValueChange: r
|
|
950
1060
|
}) {
|
|
951
|
-
const [n,
|
|
952
|
-
|
|
953
|
-
}, []),
|
|
954
|
-
|
|
955
|
-
if (
|
|
956
|
-
|
|
1061
|
+
const [n, o] = ne(t, e ?? null, r), [s, l] = H(!1), [c, k] = H({}), [i, x] = H(null), a = P(), m = y(null), w = y(null), p = y(/* @__PURE__ */ new Map()), h = y([]), v = I(() => {
|
|
1062
|
+
l(!1), x(null), w.current?.focus();
|
|
1063
|
+
}, []), b = I(() => {
|
|
1064
|
+
l((q) => {
|
|
1065
|
+
if (q)
|
|
1066
|
+
x(null);
|
|
957
1067
|
else {
|
|
958
|
-
const
|
|
959
|
-
let
|
|
960
|
-
for (const
|
|
961
|
-
const
|
|
962
|
-
if (
|
|
963
|
-
|
|
1068
|
+
const z = p.current, M = h.current;
|
|
1069
|
+
let j = null;
|
|
1070
|
+
for (const G of M) {
|
|
1071
|
+
const S = z.get(G);
|
|
1072
|
+
if (S && S.value === n) {
|
|
1073
|
+
j = G;
|
|
964
1074
|
break;
|
|
965
1075
|
}
|
|
966
1076
|
}
|
|
967
|
-
|
|
1077
|
+
x(j ?? (M.length > 0 ? M[0] : null));
|
|
968
1078
|
}
|
|
969
|
-
return !
|
|
1079
|
+
return !q;
|
|
970
1080
|
});
|
|
971
|
-
}, [n]),
|
|
972
|
-
|
|
973
|
-
...
|
|
974
|
-
[
|
|
1081
|
+
}, [n]), d = I((q, z) => {
|
|
1082
|
+
k((M) => M[q] === z ? M : {
|
|
1083
|
+
...M,
|
|
1084
|
+
[q]: z
|
|
975
1085
|
});
|
|
976
|
-
}, []),
|
|
977
|
-
|
|
978
|
-
value:
|
|
979
|
-
element:
|
|
1086
|
+
}, []), $ = I((q, z, M) => {
|
|
1087
|
+
p.current.set(q, {
|
|
1088
|
+
value: z,
|
|
1089
|
+
element: M
|
|
980
1090
|
});
|
|
981
|
-
const
|
|
982
|
-
return
|
|
983
|
-
const
|
|
984
|
-
return !
|
|
985
|
-
}),
|
|
986
|
-
|
|
1091
|
+
const j = p.current, G = [...j.keys()];
|
|
1092
|
+
return G.sort((S, D) => {
|
|
1093
|
+
const le = j.get(S)?.element, ie = j.get(D)?.element;
|
|
1094
|
+
return !le || !ie ? 0 : le.compareDocumentPosition(ie) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1095
|
+
}), h.current = G, () => {
|
|
1096
|
+
p.current.delete(q), h.current = h.current.filter((S) => S !== q);
|
|
987
1097
|
};
|
|
988
1098
|
}, []);
|
|
989
|
-
return
|
|
990
|
-
const
|
|
991
|
-
if (!
|
|
992
|
-
function
|
|
993
|
-
const
|
|
994
|
-
if (
|
|
995
|
-
switch (
|
|
1099
|
+
return T(() => {
|
|
1100
|
+
const q = m.current;
|
|
1101
|
+
if (!q || !s) return;
|
|
1102
|
+
function z(M) {
|
|
1103
|
+
const j = h.current, G = p.current;
|
|
1104
|
+
if (j.length !== 0)
|
|
1105
|
+
switch (M.key) {
|
|
996
1106
|
case "ArrowDown": {
|
|
997
|
-
|
|
998
|
-
const
|
|
999
|
-
return
|
|
1107
|
+
M.preventDefault(), x((S) => {
|
|
1108
|
+
const D = S ? j.indexOf(S) : -1;
|
|
1109
|
+
return j[(D + 1) % j.length];
|
|
1000
1110
|
});
|
|
1001
1111
|
break;
|
|
1002
1112
|
}
|
|
1003
1113
|
case "ArrowUp": {
|
|
1004
|
-
|
|
1005
|
-
const
|
|
1006
|
-
return
|
|
1114
|
+
M.preventDefault(), x((S) => {
|
|
1115
|
+
const D = S ? j.indexOf(S) : 0;
|
|
1116
|
+
return j[(D - 1 + j.length) % j.length];
|
|
1007
1117
|
});
|
|
1008
1118
|
break;
|
|
1009
1119
|
}
|
|
1010
1120
|
case "Home": {
|
|
1011
|
-
|
|
1121
|
+
M.preventDefault(), x(j[0]);
|
|
1012
1122
|
break;
|
|
1013
1123
|
}
|
|
1014
1124
|
case "End": {
|
|
1015
|
-
|
|
1125
|
+
M.preventDefault(), x(j[j.length - 1]);
|
|
1016
1126
|
break;
|
|
1017
1127
|
}
|
|
1018
1128
|
case "Enter":
|
|
1019
1129
|
case " ": {
|
|
1020
|
-
|
|
1021
|
-
if (
|
|
1022
|
-
const
|
|
1023
|
-
|
|
1130
|
+
M.preventDefault(), x((S) => {
|
|
1131
|
+
if (S) {
|
|
1132
|
+
const D = G.get(S);
|
|
1133
|
+
D && (o(D.value), v());
|
|
1024
1134
|
}
|
|
1025
|
-
return
|
|
1135
|
+
return S;
|
|
1026
1136
|
});
|
|
1027
1137
|
break;
|
|
1028
1138
|
}
|
|
@@ -1033,818 +1143,879 @@ function qt({
|
|
|
1033
1143
|
}
|
|
1034
1144
|
}
|
|
1035
1145
|
}
|
|
1036
|
-
return
|
|
1037
|
-
}, [s, v,
|
|
1038
|
-
ctx:
|
|
1146
|
+
return q.addEventListener("keydown", z), () => q.removeEventListener("keydown", z);
|
|
1147
|
+
}, [s, v, o]), {
|
|
1148
|
+
ctx: ae(() => ({
|
|
1039
1149
|
open: s,
|
|
1040
|
-
toggle:
|
|
1150
|
+
toggle: b,
|
|
1041
1151
|
close: v,
|
|
1042
1152
|
value: n,
|
|
1043
|
-
setValue:
|
|
1153
|
+
setValue: o,
|
|
1044
1154
|
labels: c,
|
|
1045
|
-
registerLabel:
|
|
1046
|
-
listboxId:
|
|
1047
|
-
highlightedId:
|
|
1048
|
-
setHighlightedId:
|
|
1049
|
-
registerItem:
|
|
1050
|
-
triggerRef:
|
|
1051
|
-
}), [s,
|
|
1052
|
-
rootRef:
|
|
1155
|
+
registerLabel: d,
|
|
1156
|
+
listboxId: a,
|
|
1157
|
+
highlightedId: i,
|
|
1158
|
+
setHighlightedId: x,
|
|
1159
|
+
registerItem: $,
|
|
1160
|
+
triggerRef: w
|
|
1161
|
+
}), [s, b, v, n, o, c, d, a, i, x, $]),
|
|
1162
|
+
rootRef: m
|
|
1053
1163
|
};
|
|
1054
1164
|
}
|
|
1055
|
-
function
|
|
1056
|
-
name:
|
|
1057
|
-
defaultValue:
|
|
1165
|
+
function nt({
|
|
1166
|
+
name: e,
|
|
1167
|
+
defaultValue: t,
|
|
1058
1168
|
value: r,
|
|
1059
1169
|
onValueChange: n,
|
|
1060
|
-
children:
|
|
1170
|
+
children: o
|
|
1061
1171
|
}) {
|
|
1062
1172
|
const {
|
|
1063
1173
|
ctx: s,
|
|
1064
|
-
rootRef:
|
|
1065
|
-
} =
|
|
1066
|
-
defaultValue:
|
|
1174
|
+
rootRef: l
|
|
1175
|
+
} = rt({
|
|
1176
|
+
defaultValue: t,
|
|
1067
1177
|
value: r,
|
|
1068
1178
|
onValueChange: n
|
|
1069
1179
|
});
|
|
1070
|
-
return /* @__PURE__ */
|
|
1071
|
-
|
|
1072
|
-
|
|
1180
|
+
return /* @__PURE__ */ u(be.Provider, { value: s, children: /* @__PURE__ */ Y("div", { ref: l, ...f(g.div, C.root), children: [
|
|
1181
|
+
e && /* @__PURE__ */ u("input", { type: "hidden", name: e, value: s.value ?? "", dir: "auto", ...f(g.input) }),
|
|
1182
|
+
o
|
|
1073
1183
|
] }) });
|
|
1074
1184
|
}
|
|
1075
|
-
function
|
|
1076
|
-
children:
|
|
1185
|
+
function ot({
|
|
1186
|
+
children: e
|
|
1077
1187
|
}) {
|
|
1078
1188
|
const {
|
|
1079
|
-
open:
|
|
1189
|
+
open: t,
|
|
1080
1190
|
toggle: r,
|
|
1081
1191
|
listboxId: n,
|
|
1082
|
-
highlightedId:
|
|
1192
|
+
highlightedId: o,
|
|
1083
1193
|
triggerRef: s
|
|
1084
|
-
} =
|
|
1085
|
-
return
|
|
1086
|
-
s.current =
|
|
1087
|
-
}), /* @__PURE__ */
|
|
1194
|
+
} = Z(), l = y(null);
|
|
1195
|
+
return T(() => {
|
|
1196
|
+
s.current = l.current;
|
|
1197
|
+
}), /* @__PURE__ */ u("button", { ref: l, type: "button", role: "combobox", onClick: r, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? n : void 0, "aria-activedescendant": o ?? void 0, ...f(g.button, C.trigger), children: e });
|
|
1088
1198
|
}
|
|
1089
|
-
function
|
|
1090
|
-
placeholder:
|
|
1199
|
+
function st({
|
|
1200
|
+
placeholder: e
|
|
1091
1201
|
}) {
|
|
1092
1202
|
const {
|
|
1093
|
-
value:
|
|
1203
|
+
value: t,
|
|
1094
1204
|
labels: r
|
|
1095
|
-
} =
|
|
1096
|
-
return /* @__PURE__ */
|
|
1205
|
+
} = Z(), n = t ? r[t] ?? t : null;
|
|
1206
|
+
return /* @__PURE__ */ u("span", { ...f(g.span, n ? C.value : C.placeholder), children: n ?? e });
|
|
1097
1207
|
}
|
|
1098
|
-
function
|
|
1099
|
-
children:
|
|
1208
|
+
function ct({
|
|
1209
|
+
children: e
|
|
1100
1210
|
}) {
|
|
1101
|
-
return /* @__PURE__ */
|
|
1211
|
+
return /* @__PURE__ */ u("span", { ...f(g.span, C.icon), children: e ?? /* @__PURE__ */ u("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1102
1212
|
}
|
|
1103
|
-
function
|
|
1104
|
-
children:
|
|
1213
|
+
function lt({
|
|
1214
|
+
children: e
|
|
1105
1215
|
}) {
|
|
1106
1216
|
const {
|
|
1107
|
-
open:
|
|
1217
|
+
open: t,
|
|
1108
1218
|
close: r,
|
|
1109
1219
|
listboxId: n
|
|
1110
|
-
} =
|
|
1111
|
-
return /* @__PURE__ */
|
|
1112
|
-
|
|
1113
|
-
/* @__PURE__ */
|
|
1220
|
+
} = Z();
|
|
1221
|
+
return /* @__PURE__ */ Y(ke, { children: [
|
|
1222
|
+
t && /* @__PURE__ */ u("div", { ...f(g.div, C.backdrop), onClick: r }),
|
|
1223
|
+
/* @__PURE__ */ u("div", { id: n, role: "listbox", "aria-hidden": !t, ...f(g.div, C.popup, !t && C.hidden), children: e })
|
|
1114
1224
|
] });
|
|
1115
1225
|
}
|
|
1116
|
-
function
|
|
1117
|
-
value:
|
|
1118
|
-
children:
|
|
1226
|
+
function it({
|
|
1227
|
+
value: e,
|
|
1228
|
+
children: t
|
|
1119
1229
|
}) {
|
|
1120
1230
|
const {
|
|
1121
1231
|
value: r,
|
|
1122
1232
|
setValue: n,
|
|
1123
|
-
close:
|
|
1233
|
+
close: o,
|
|
1124
1234
|
registerLabel: s,
|
|
1125
|
-
highlightedId:
|
|
1235
|
+
highlightedId: l,
|
|
1126
1236
|
setHighlightedId: c,
|
|
1127
|
-
registerItem:
|
|
1128
|
-
} =
|
|
1129
|
-
|
|
1130
|
-
const
|
|
1131
|
-
if (!
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1134
|
-
}, [
|
|
1135
|
-
const
|
|
1136
|
-
if (
|
|
1137
|
-
return
|
|
1138
|
-
}, [
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
};
|
|
1142
|
-
return /* @__PURE__ */ a(g.div, { ref: f, id: u, role: "option", "aria-selected": p, onClick: R, onPointerEnter: () => c(u), style: [O.item, p && O.itemSelected, S && O.itemHighlighted], children: e });
|
|
1237
|
+
registerItem: k
|
|
1238
|
+
} = Z(), i = P(), x = y(null), a = r === e, m = l === i;
|
|
1239
|
+
return T(() => {
|
|
1240
|
+
const p = x.current;
|
|
1241
|
+
if (!p) return;
|
|
1242
|
+
const h = p.textContent;
|
|
1243
|
+
h && s(e, h);
|
|
1244
|
+
}, [e, s]), T(() => {
|
|
1245
|
+
const p = x.current;
|
|
1246
|
+
if (p)
|
|
1247
|
+
return k(i, e, p);
|
|
1248
|
+
}, [i, e, k]), /* @__PURE__ */ u("div", { ref: x, id: i, role: "option", "aria-selected": a, onClick: () => {
|
|
1249
|
+
n(e), o();
|
|
1250
|
+
}, onPointerEnter: () => c(i), ...f(g.div, C.item, a && C.itemSelected, m && C.itemHighlighted), children: t });
|
|
1143
1251
|
}
|
|
1144
|
-
function
|
|
1145
|
-
children:
|
|
1252
|
+
function xt({
|
|
1253
|
+
children: e
|
|
1146
1254
|
}) {
|
|
1147
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ u("span", { ...f(g.span), children: e });
|
|
1148
1256
|
}
|
|
1149
|
-
const
|
|
1150
|
-
Root:
|
|
1151
|
-
Trigger:
|
|
1152
|
-
Value:
|
|
1153
|
-
Icon:
|
|
1154
|
-
Popup:
|
|
1155
|
-
Item:
|
|
1156
|
-
ItemText:
|
|
1157
|
-
},
|
|
1257
|
+
const Pt = {
|
|
1258
|
+
Root: nt,
|
|
1259
|
+
Trigger: ot,
|
|
1260
|
+
Value: st,
|
|
1261
|
+
Icon: ct,
|
|
1262
|
+
Popup: lt,
|
|
1263
|
+
Item: it,
|
|
1264
|
+
ItemText: xt
|
|
1265
|
+
}, B = {
|
|
1158
1266
|
root: {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1267
|
+
k1xSpc: "x78zum5",
|
|
1268
|
+
kXwgrk: "xdt5ytf",
|
|
1269
|
+
kOIVth: "xxhr3t",
|
|
1270
|
+
$$css: !0
|
|
1162
1271
|
},
|
|
1163
1272
|
group: {
|
|
1164
|
-
|
|
1165
|
-
|
|
1273
|
+
k1xSpc: "x78zum5",
|
|
1274
|
+
kXwgrk: "xdt5ytf",
|
|
1275
|
+
$$css: !0
|
|
1166
1276
|
},
|
|
1167
1277
|
groupTrigger: {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
transitionDuration: "150ms",
|
|
1189
|
-
transitionTimingFunction: "ease"
|
|
1278
|
+
k1xSpc: "x78zum5",
|
|
1279
|
+
kGNEyG: "x6s0dn4",
|
|
1280
|
+
kOIVth: "x1b6swt2",
|
|
1281
|
+
kLKAdn: "x1g9jjt5",
|
|
1282
|
+
kGO01o: "x1jybd5k",
|
|
1283
|
+
kE3dHu: "xsk07c1",
|
|
1284
|
+
kpe85a: "x15wirxn",
|
|
1285
|
+
kMv6JI: "x1pzdjp3",
|
|
1286
|
+
kGuDYH: "xcj380t",
|
|
1287
|
+
k63SB2: "x120om85",
|
|
1288
|
+
kP9fke: "xtvhhri",
|
|
1289
|
+
kb6lSQ: "x2ujxvm",
|
|
1290
|
+
kMwMTN: "x3dll8l x1hcr4s8",
|
|
1291
|
+
kWkggS: "xjbqb8w",
|
|
1292
|
+
kMzoRj: "xc342km",
|
|
1293
|
+
kkrTdU: "x1ypdohk",
|
|
1294
|
+
k1ekBW: "xt3l3uh",
|
|
1295
|
+
kIyJzY: "xx6bhzk",
|
|
1296
|
+
kAMwcw: "xwji4o3",
|
|
1297
|
+
$$css: !0
|
|
1190
1298
|
},
|
|
1191
1299
|
groupTriggerActive: {
|
|
1192
|
-
|
|
1300
|
+
kMwMTN: "x1q7k5ly",
|
|
1301
|
+
$$css: !0
|
|
1193
1302
|
},
|
|
1194
1303
|
chevron: {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1304
|
+
k1xSpc: "x3nfvp2",
|
|
1305
|
+
kGNEyG: "x6s0dn4",
|
|
1306
|
+
k1ekBW: "x11xpdln",
|
|
1307
|
+
kIyJzY: "xx6bhzk",
|
|
1308
|
+
kAMwcw: "xwji4o3",
|
|
1309
|
+
$$css: !0
|
|
1200
1310
|
},
|
|
1201
1311
|
chevronOpen: {
|
|
1202
|
-
|
|
1312
|
+
k3aq6I: "x1iffjtl",
|
|
1313
|
+
$$css: !0
|
|
1203
1314
|
},
|
|
1204
1315
|
item: {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
transitionTimingFunction: "ease",
|
|
1228
|
-
textAlign: "left",
|
|
1229
|
-
outlineWidth: {
|
|
1230
|
-
default: 0,
|
|
1231
|
-
":focus-visible": 2
|
|
1232
|
-
},
|
|
1233
|
-
outlineStyle: {
|
|
1234
|
-
default: "none",
|
|
1235
|
-
":focus-visible": "solid"
|
|
1236
|
-
},
|
|
1237
|
-
outlineColor: {
|
|
1238
|
-
default: "transparent",
|
|
1239
|
-
":focus-visible": o.accent
|
|
1240
|
-
}
|
|
1316
|
+
k1xSpc: "x78zum5",
|
|
1317
|
+
kGNEyG: "x6s0dn4",
|
|
1318
|
+
kLKAdn: "x1yrsyyn",
|
|
1319
|
+
kGO01o: "x10b6aqq",
|
|
1320
|
+
kE3dHu: "x13ufnr",
|
|
1321
|
+
kpe85a: "x15wirxn",
|
|
1322
|
+
kMv6JI: "x1pzdjp3",
|
|
1323
|
+
kGuDYH: "x1f5wsqz",
|
|
1324
|
+
k63SB2: "x1u7jrxs",
|
|
1325
|
+
kMwMTN: "x3dll8l x1hcr4s8",
|
|
1326
|
+
kWkggS: "xjbqb8w x16rx6z8",
|
|
1327
|
+
kMzoRj: "xc342km",
|
|
1328
|
+
kaIpWk: "x12fpg5d",
|
|
1329
|
+
kkrTdU: "x1ypdohk",
|
|
1330
|
+
k1ekBW: "x1gbuem2",
|
|
1331
|
+
kIyJzY: "xx6bhzk",
|
|
1332
|
+
kAMwcw: "xwji4o3",
|
|
1333
|
+
k9WMMc: "xdpxx8g",
|
|
1334
|
+
kMeerF: "x1k57tk5 x784prv",
|
|
1335
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
1336
|
+
kjBf7l: "x1uczgqu x1kpnk96",
|
|
1337
|
+
$$css: !0
|
|
1241
1338
|
},
|
|
1242
1339
|
itemActive: {
|
|
1243
|
-
|
|
1244
|
-
|
|
1340
|
+
kMwMTN: "x1jv78v8",
|
|
1341
|
+
k63SB2: "x1oq67d7",
|
|
1342
|
+
$$css: !0
|
|
1245
1343
|
}
|
|
1246
|
-
}
|
|
1247
|
-
function
|
|
1248
|
-
const
|
|
1249
|
-
if (!
|
|
1250
|
-
return
|
|
1344
|
+
}, me = V(null);
|
|
1345
|
+
function $e() {
|
|
1346
|
+
const e = E(me);
|
|
1347
|
+
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1348
|
+
return e;
|
|
1251
1349
|
}
|
|
1252
|
-
function
|
|
1253
|
-
children:
|
|
1254
|
-
value:
|
|
1350
|
+
function ut({
|
|
1351
|
+
children: e,
|
|
1352
|
+
value: t,
|
|
1255
1353
|
defaultValue: r,
|
|
1256
1354
|
onValueChange: n
|
|
1257
1355
|
}) {
|
|
1258
|
-
const [
|
|
1259
|
-
|
|
1260
|
-
} : void 0), [
|
|
1261
|
-
c((
|
|
1262
|
-
const
|
|
1263
|
-
return
|
|
1356
|
+
const [o, s] = ne(t, r ?? null, n ? (a) => {
|
|
1357
|
+
a !== null && n(a);
|
|
1358
|
+
} : void 0), [l, c] = H(/* @__PURE__ */ new Set()), k = y([]), i = I((a) => {
|
|
1359
|
+
c((m) => {
|
|
1360
|
+
const w = new Set(m);
|
|
1361
|
+
return w.has(a) ? w.delete(a) : w.add(a), w;
|
|
1264
1362
|
});
|
|
1265
|
-
}, []),
|
|
1266
|
-
|
|
1363
|
+
}, []), x = I((a) => (k.current.includes(a) || k.current.push(a), () => {
|
|
1364
|
+
k.current = k.current.filter((m) => m !== a);
|
|
1267
1365
|
}), []);
|
|
1268
|
-
return
|
|
1269
|
-
|
|
1270
|
-
}, [
|
|
1271
|
-
activeValue:
|
|
1366
|
+
return T(() => {
|
|
1367
|
+
o && c((a) => a);
|
|
1368
|
+
}, [o]), /* @__PURE__ */ u(me.Provider, { value: {
|
|
1369
|
+
activeValue: o,
|
|
1272
1370
|
onSelect: s,
|
|
1273
|
-
expandedGroups:
|
|
1274
|
-
toggleGroup:
|
|
1275
|
-
registerItem:
|
|
1276
|
-
orderRef:
|
|
1277
|
-
}, children: /* @__PURE__ */
|
|
1371
|
+
expandedGroups: l,
|
|
1372
|
+
toggleGroup: i,
|
|
1373
|
+
registerItem: x,
|
|
1374
|
+
orderRef: k
|
|
1375
|
+
}, children: /* @__PURE__ */ u("nav", { role: "navigation", ...f(g.nav, B.root), children: e }) });
|
|
1278
1376
|
}
|
|
1279
|
-
function
|
|
1280
|
-
children:
|
|
1281
|
-
label:
|
|
1377
|
+
function kt({
|
|
1378
|
+
children: e,
|
|
1379
|
+
label: t,
|
|
1282
1380
|
groupKey: r,
|
|
1283
1381
|
defaultExpanded: n
|
|
1284
1382
|
}) {
|
|
1285
|
-
const
|
|
1383
|
+
const o = r ?? t, {
|
|
1286
1384
|
expandedGroups: s,
|
|
1287
|
-
toggleGroup:
|
|
1385
|
+
toggleGroup: l,
|
|
1288
1386
|
activeValue: c
|
|
1289
|
-
} =
|
|
1290
|
-
|
|
1291
|
-
if (!c || s.has(
|
|
1292
|
-
const
|
|
1293
|
-
if (!
|
|
1294
|
-
|
|
1295
|
-
}, [c,
|
|
1296
|
-
n && !s.has(
|
|
1387
|
+
} = $e(), k = s.has(o), i = y(null);
|
|
1388
|
+
T(() => {
|
|
1389
|
+
if (!c || s.has(o)) return;
|
|
1390
|
+
const a = i.current;
|
|
1391
|
+
if (!a) return;
|
|
1392
|
+
a.querySelector(`[data-nav-value="${c}"]`) && l(o);
|
|
1393
|
+
}, [c, o, s, l]), T(() => {
|
|
1394
|
+
n && !s.has(o) && l(o);
|
|
1297
1395
|
}, []);
|
|
1298
|
-
const
|
|
1299
|
-
return /* @__PURE__ */
|
|
1300
|
-
/* @__PURE__ */
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
|
|
1396
|
+
const x = !c || !i.current ? !1 : !!i.current.querySelector(`[data-nav-value="${c}"]`);
|
|
1397
|
+
return /* @__PURE__ */ Y("div", { ref: i, ...f(g.div, B.group), children: [
|
|
1398
|
+
/* @__PURE__ */ Y("button", { type: "button", onClick: () => l(o), ...f(g.button, B.groupTrigger, x && B.groupTriggerActive), "aria-expanded": k, children: [
|
|
1399
|
+
/* @__PURE__ */ u("span", { ...f(g.span, B.chevron, k && B.chevronOpen), children: /* @__PURE__ */ u("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1400
|
+
t
|
|
1303
1401
|
] }),
|
|
1304
|
-
|
|
1402
|
+
k && e
|
|
1305
1403
|
] });
|
|
1306
1404
|
}
|
|
1307
|
-
function
|
|
1308
|
-
value:
|
|
1309
|
-
children:
|
|
1405
|
+
function at({
|
|
1406
|
+
value: e,
|
|
1407
|
+
children: t
|
|
1310
1408
|
}) {
|
|
1311
1409
|
const {
|
|
1312
1410
|
activeValue: r,
|
|
1313
1411
|
onSelect: n,
|
|
1314
|
-
registerItem:
|
|
1315
|
-
} =
|
|
1316
|
-
return
|
|
1412
|
+
registerItem: o
|
|
1413
|
+
} = $e(), s = r === e;
|
|
1414
|
+
return T(() => o(e), [e, o]), /* @__PURE__ */ u("button", { type: "button", "data-nav-value": e, onClick: () => n(e), ...f(g.button, B.item, s && B.itemActive), "aria-current": s ? "page" : void 0, children: t });
|
|
1317
1415
|
}
|
|
1318
|
-
const
|
|
1319
|
-
Root:
|
|
1320
|
-
Group:
|
|
1321
|
-
Item:
|
|
1322
|
-
},
|
|
1323
|
-
|
|
1416
|
+
const Yt = {
|
|
1417
|
+
Root: ut,
|
|
1418
|
+
Group: kt,
|
|
1419
|
+
Item: at
|
|
1420
|
+
}, dt = {
|
|
1421
|
+
kumcoG: "xqketvx",
|
|
1422
|
+
$$css: !0
|
|
1423
|
+
}, W = {
|
|
1324
1424
|
root: {
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1425
|
+
kMzoRj: "xmkeg23",
|
|
1426
|
+
ksu8eU: "x1y0btm7",
|
|
1427
|
+
kVAM5u: "x8sq793",
|
|
1428
|
+
kaIpWk: "x1jk3q3d",
|
|
1429
|
+
kVQacm: "xb3r6kr",
|
|
1430
|
+
kWkggS: "xdz192t",
|
|
1431
|
+
kMv6JI: "x1pzdjp3",
|
|
1432
|
+
kMwMTN: "x1q7k5ly",
|
|
1433
|
+
$$css: !0
|
|
1434
|
+
},
|
|
1335
1435
|
header: {
|
|
1336
|
-
|
|
1436
|
+
kWkggS: "xdz192t",
|
|
1437
|
+
$$css: !0
|
|
1337
1438
|
},
|
|
1338
|
-
// Row
|
|
1339
1439
|
row: {
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1440
|
+
k1xSpc: "xrvj5dj",
|
|
1441
|
+
kt9PQ7: "xso031l",
|
|
1442
|
+
kfdmCh: "x1q0q8m5",
|
|
1443
|
+
kL6WhQ: "xc43g0q",
|
|
1444
|
+
$$css: !0
|
|
1344
1445
|
},
|
|
1345
1446
|
rowLastChild: {
|
|
1346
|
-
|
|
1447
|
+
kt9PQ7: "x1qhh985",
|
|
1448
|
+
$$css: !0
|
|
1347
1449
|
},
|
|
1348
1450
|
bodyRow: {
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
transitionDuration: "150ms",
|
|
1355
|
-
transitionTimingFunction: "ease"
|
|
1451
|
+
kWkggS: "xjbqb8w x16rx6z8",
|
|
1452
|
+
k1ekBW: "x15406qy",
|
|
1453
|
+
kIyJzY: "xx6bhzk",
|
|
1454
|
+
kAMwcw: "xwji4o3",
|
|
1455
|
+
$$css: !0
|
|
1356
1456
|
},
|
|
1357
|
-
// Header cell
|
|
1358
1457
|
headerCell: {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1458
|
+
k63SB2: "x120om85",
|
|
1459
|
+
kMwMTN: "x3dll8l",
|
|
1460
|
+
k9WMMc: "x1yc453h",
|
|
1461
|
+
$$css: !0
|
|
1362
1462
|
},
|
|
1363
|
-
// Body cell
|
|
1364
1463
|
cell: {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1464
|
+
kMwMTN: "x1q7k5ly",
|
|
1465
|
+
k1xSpc: "x78zum5",
|
|
1466
|
+
kGNEyG: "x6s0dn4",
|
|
1467
|
+
$$css: !0
|
|
1368
1468
|
},
|
|
1369
|
-
// Size: sm
|
|
1370
1469
|
cellSm: {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1470
|
+
kLKAdn: "x12lvzsw",
|
|
1471
|
+
kGO01o: "xpz7ktu",
|
|
1472
|
+
kE3dHu: "x1t5mref",
|
|
1473
|
+
kpe85a: "x3h5nva",
|
|
1474
|
+
kGuDYH: "xcj380t",
|
|
1475
|
+
$$css: !0
|
|
1376
1476
|
},
|
|
1377
|
-
// Size: md
|
|
1378
1477
|
cellMd: {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1478
|
+
kLKAdn: "x1g9jjt5",
|
|
1479
|
+
kGO01o: "x1jybd5k",
|
|
1480
|
+
kE3dHu: "xsk07c1",
|
|
1481
|
+
kpe85a: "x15wirxn",
|
|
1482
|
+
kGuDYH: "x1f5wsqz",
|
|
1483
|
+
$$css: !0
|
|
1384
1484
|
},
|
|
1385
|
-
// Variant: striped (even body rows)
|
|
1386
1485
|
stripedEven: {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
":hover": o.bgCardHover
|
|
1390
|
-
}
|
|
1486
|
+
kWkggS: "x1t1330p x16rx6z8",
|
|
1487
|
+
$$css: !0
|
|
1391
1488
|
},
|
|
1392
|
-
// Variant: bordered (cells get side borders)
|
|
1393
1489
|
borderedCell: {
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1490
|
+
kWqL5O: "xs1s249",
|
|
1491
|
+
kSWEuD: "x32b0ac",
|
|
1492
|
+
k26BEO: "x1a8rddp",
|
|
1493
|
+
$$css: !0
|
|
1397
1494
|
},
|
|
1398
1495
|
borderedCellLast: {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
gridColumns: (
|
|
1403
|
-
gridTemplateColumns: `repeat(${
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
function
|
|
1407
|
-
const
|
|
1408
|
-
if (!
|
|
1409
|
-
return
|
|
1496
|
+
kWqL5O: "xgfja2r",
|
|
1497
|
+
$$css: !0
|
|
1498
|
+
},
|
|
1499
|
+
gridColumns: (e) => [dt, {
|
|
1500
|
+
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
1501
|
+
}]
|
|
1502
|
+
}, we = V(null);
|
|
1503
|
+
function ee() {
|
|
1504
|
+
const e = E(we);
|
|
1505
|
+
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
1506
|
+
return e;
|
|
1410
1507
|
}
|
|
1411
|
-
const
|
|
1412
|
-
function
|
|
1413
|
-
children:
|
|
1414
|
-
variant:
|
|
1508
|
+
const oe = V(!1);
|
|
1509
|
+
function ft({
|
|
1510
|
+
children: e,
|
|
1511
|
+
variant: t = "default",
|
|
1415
1512
|
size: r = "md",
|
|
1416
1513
|
columns: n
|
|
1417
1514
|
}) {
|
|
1418
|
-
return /* @__PURE__ */
|
|
1419
|
-
variant:
|
|
1515
|
+
return /* @__PURE__ */ u(we.Provider, { value: {
|
|
1516
|
+
variant: t,
|
|
1420
1517
|
size: r,
|
|
1421
1518
|
columns: n,
|
|
1422
1519
|
isHeader: !1
|
|
1423
|
-
}, children: /* @__PURE__ */
|
|
1520
|
+
}, children: /* @__PURE__ */ u("div", { role: "table", ...f(g.div, W.root), children: e }) });
|
|
1424
1521
|
}
|
|
1425
|
-
function
|
|
1426
|
-
children:
|
|
1522
|
+
function gt({
|
|
1523
|
+
children: e
|
|
1427
1524
|
}) {
|
|
1428
|
-
return /* @__PURE__ */
|
|
1525
|
+
return /* @__PURE__ */ u(oe.Provider, { value: !0, children: /* @__PURE__ */ u("div", { role: "rowgroup", ...f(g.div, W.header), children: e }) });
|
|
1429
1526
|
}
|
|
1430
|
-
function
|
|
1431
|
-
children:
|
|
1527
|
+
function pt({
|
|
1528
|
+
children: e
|
|
1432
1529
|
}) {
|
|
1433
1530
|
const {
|
|
1434
|
-
variant:
|
|
1435
|
-
} =
|
|
1436
|
-
return /* @__PURE__ */
|
|
1531
|
+
variant: t
|
|
1532
|
+
} = ee(), r = de.toArray(e);
|
|
1533
|
+
return /* @__PURE__ */ u(oe.Provider, { value: !1, children: /* @__PURE__ */ u("div", { role: "rowgroup", ...f(g.div), children: r.map((n, o) => t === "striped" ? /* @__PURE__ */ u(ye.Provider, { value: o, children: n }, o) : n) }) });
|
|
1437
1534
|
}
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
children:
|
|
1535
|
+
const ye = V(-1);
|
|
1536
|
+
function vt({
|
|
1537
|
+
children: e
|
|
1441
1538
|
}) {
|
|
1442
1539
|
const {
|
|
1443
|
-
variant:
|
|
1540
|
+
variant: t,
|
|
1444
1541
|
columns: r
|
|
1445
|
-
} =
|
|
1446
|
-
return /* @__PURE__ */
|
|
1447
|
-
index:
|
|
1448
|
-
total:
|
|
1449
|
-
}, children: c },
|
|
1542
|
+
} = ee(), n = E(oe), o = E(ye), s = o >= 0 && o % 2 === 1, l = de.toArray(e);
|
|
1543
|
+
return /* @__PURE__ */ u("div", { role: "row", ...f(g.div, W.row, W.gridColumns(r), !n && W.bodyRow, !n && t === "striped" && s && W.stripedEven), children: t === "bordered" ? l.map((c, k) => /* @__PURE__ */ u(se.Provider, { value: {
|
|
1544
|
+
index: k,
|
|
1545
|
+
total: l.length
|
|
1546
|
+
}, children: c }, k)) : e });
|
|
1450
1547
|
}
|
|
1451
|
-
const
|
|
1548
|
+
const se = V({
|
|
1452
1549
|
index: 0,
|
|
1453
1550
|
total: 0
|
|
1454
1551
|
});
|
|
1455
|
-
function
|
|
1456
|
-
children:
|
|
1552
|
+
function ht({
|
|
1553
|
+
children: e
|
|
1457
1554
|
}) {
|
|
1458
1555
|
const {
|
|
1459
|
-
size:
|
|
1556
|
+
size: t,
|
|
1460
1557
|
variant: r
|
|
1461
|
-
} =
|
|
1558
|
+
} = ee(), {
|
|
1462
1559
|
index: n,
|
|
1463
|
-
total:
|
|
1464
|
-
} =
|
|
1465
|
-
return /* @__PURE__ */
|
|
1560
|
+
total: o
|
|
1561
|
+
} = E(se), s = r === "bordered" && n === o - 1;
|
|
1562
|
+
return /* @__PURE__ */ u("div", { role: "columnheader", ...f(g.div, W.headerCell, t === "sm" ? W.cellSm : W.cellMd, r === "bordered" && W.borderedCell, s && W.borderedCellLast), children: e });
|
|
1466
1563
|
}
|
|
1467
|
-
function
|
|
1468
|
-
children:
|
|
1564
|
+
function bt({
|
|
1565
|
+
children: e
|
|
1469
1566
|
}) {
|
|
1470
1567
|
const {
|
|
1471
|
-
size:
|
|
1568
|
+
size: t,
|
|
1472
1569
|
variant: r
|
|
1473
|
-
} =
|
|
1570
|
+
} = ee(), {
|
|
1474
1571
|
index: n,
|
|
1475
|
-
total:
|
|
1476
|
-
} =
|
|
1477
|
-
return /* @__PURE__ */
|
|
1572
|
+
total: o
|
|
1573
|
+
} = E(se), s = r === "bordered" && n === o - 1;
|
|
1574
|
+
return /* @__PURE__ */ u("div", { role: "cell", ...f(g.div, W.cell, t === "sm" ? W.cellSm : W.cellMd, r === "bordered" && W.borderedCell, s && W.borderedCellLast), children: e });
|
|
1478
1575
|
}
|
|
1479
|
-
const
|
|
1480
|
-
Root:
|
|
1481
|
-
Header:
|
|
1482
|
-
Body:
|
|
1483
|
-
Row:
|
|
1484
|
-
HeaderCell:
|
|
1485
|
-
Cell:
|
|
1486
|
-
},
|
|
1576
|
+
const Xt = {
|
|
1577
|
+
Root: ft,
|
|
1578
|
+
Header: gt,
|
|
1579
|
+
Body: pt,
|
|
1580
|
+
Row: vt,
|
|
1581
|
+
HeaderCell: ht,
|
|
1582
|
+
Cell: bt
|
|
1583
|
+
}, R = {
|
|
1487
1584
|
root: {
|
|
1488
|
-
|
|
1489
|
-
|
|
1585
|
+
k1xSpc: "x78zum5",
|
|
1586
|
+
kXwgrk: "xdt5ytf",
|
|
1587
|
+
$$css: !0
|
|
1490
1588
|
},
|
|
1491
1589
|
rootVertical: {
|
|
1492
|
-
|
|
1590
|
+
kXwgrk: "x1q0g3np",
|
|
1591
|
+
$$css: !0
|
|
1493
1592
|
},
|
|
1494
1593
|
list: {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1594
|
+
k1xSpc: "x78zum5",
|
|
1595
|
+
kXwgrk: "x1q0g3np",
|
|
1596
|
+
kt9PQ7: "xso031l",
|
|
1597
|
+
kfdmCh: "x1q0q8m5",
|
|
1598
|
+
kL6WhQ: "xc43g0q",
|
|
1599
|
+
kOIVth: "x1b6swt2",
|
|
1600
|
+
$$css: !0
|
|
1501
1601
|
},
|
|
1502
1602
|
listVertical: {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1603
|
+
kXwgrk: "xdt5ytf",
|
|
1604
|
+
kt9PQ7: "x1qhh985",
|
|
1605
|
+
kWqL5O: "xs1s249",
|
|
1606
|
+
kSWEuD: "x32b0ac",
|
|
1607
|
+
k26BEO: "x1a8rddp",
|
|
1608
|
+
kOIVth: "xxhr3t",
|
|
1609
|
+
$$css: !0
|
|
1509
1610
|
},
|
|
1510
1611
|
tab: {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
":focus-visible": 2
|
|
1537
|
-
},
|
|
1538
|
-
outlineStyle: {
|
|
1539
|
-
default: "none",
|
|
1540
|
-
":focus-visible": "solid"
|
|
1541
|
-
},
|
|
1542
|
-
outlineColor: {
|
|
1543
|
-
default: "transparent",
|
|
1544
|
-
":focus-visible": o.accent
|
|
1545
|
-
},
|
|
1546
|
-
outlineOffset: {
|
|
1547
|
-
default: 0,
|
|
1548
|
-
":focus-visible": -2
|
|
1549
|
-
}
|
|
1612
|
+
k1xSpc: "x3nfvp2",
|
|
1613
|
+
kGNEyG: "x6s0dn4",
|
|
1614
|
+
kjj79g: "xl56j7k",
|
|
1615
|
+
kLKAdn: "x1g9jjt5",
|
|
1616
|
+
kGO01o: "x1jybd5k",
|
|
1617
|
+
kE3dHu: "xsk07c1",
|
|
1618
|
+
kpe85a: "x15wirxn",
|
|
1619
|
+
kMv6JI: "x1pzdjp3",
|
|
1620
|
+
kGuDYH: "x1f5wsqz",
|
|
1621
|
+
k63SB2: "x1oq67d7",
|
|
1622
|
+
kMwMTN: "x3dll8l x1hcr4s8",
|
|
1623
|
+
kWkggS: "xjbqb8w",
|
|
1624
|
+
kMzoRj: "xc342km",
|
|
1625
|
+
kt9PQ7: "xlxy82",
|
|
1626
|
+
kfdmCh: "x1q0q8m5",
|
|
1627
|
+
kL6WhQ: "x16stqrj",
|
|
1628
|
+
kkrTdU: "x1ypdohk",
|
|
1629
|
+
k1ekBW: "xrf8owv",
|
|
1630
|
+
kIyJzY: "xx6bhzk",
|
|
1631
|
+
kAMwcw: "xwji4o3",
|
|
1632
|
+
kMeerF: "x1k57tk5 x784prv",
|
|
1633
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
1634
|
+
kjBf7l: "x1uczgqu x1kpnk96",
|
|
1635
|
+
kInvED: "x1wfwxd8 x1bqaal",
|
|
1636
|
+
$$css: !0
|
|
1550
1637
|
},
|
|
1551
1638
|
tabVertical: {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1639
|
+
kjj79g: "x1nhvcw1",
|
|
1640
|
+
kt9PQ7: "x1qhh985",
|
|
1641
|
+
kWqL5O: "xyy74w7",
|
|
1642
|
+
kSWEuD: "x32b0ac",
|
|
1643
|
+
k26BEO: "xhe5wa1",
|
|
1644
|
+
$$css: !0
|
|
1557
1645
|
},
|
|
1558
1646
|
tabActiveHorizontal: {
|
|
1559
|
-
|
|
1560
|
-
|
|
1647
|
+
kMwMTN: "x1q7k5ly",
|
|
1648
|
+
kL6WhQ: "x1rouq1",
|
|
1649
|
+
$$css: !0
|
|
1561
1650
|
},
|
|
1562
1651
|
tabActiveVertical: {
|
|
1563
|
-
|
|
1564
|
-
|
|
1652
|
+
kMwMTN: "x1q7k5ly",
|
|
1653
|
+
k26BEO: "xy5c0cj",
|
|
1654
|
+
$$css: !0
|
|
1565
1655
|
},
|
|
1566
1656
|
tabDisabled: {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1657
|
+
kSiTet: "xbyyjgo",
|
|
1658
|
+
kkrTdU: "x1h6gzvc",
|
|
1659
|
+
kMwMTN: "x3dll8l",
|
|
1660
|
+
$$css: !0
|
|
1570
1661
|
},
|
|
1571
1662
|
panel: {
|
|
1572
|
-
|
|
1663
|
+
kLKAdn: "x1o5v2y7",
|
|
1664
|
+
$$css: !0
|
|
1573
1665
|
},
|
|
1574
1666
|
panelVertical: {
|
|
1575
|
-
|
|
1576
|
-
|
|
1667
|
+
kLKAdn: "xexx8yu",
|
|
1668
|
+
kE3dHu: "xsk07c1",
|
|
1669
|
+
$$css: !0
|
|
1577
1670
|
}
|
|
1578
|
-
}
|
|
1579
|
-
function
|
|
1580
|
-
const
|
|
1581
|
-
if (!
|
|
1582
|
-
return
|
|
1671
|
+
}, Me = V(null);
|
|
1672
|
+
function ce() {
|
|
1673
|
+
const e = E(Me);
|
|
1674
|
+
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
1675
|
+
return e;
|
|
1583
1676
|
}
|
|
1584
|
-
function
|
|
1585
|
-
value:
|
|
1586
|
-
defaultValue:
|
|
1677
|
+
function mt({
|
|
1678
|
+
value: e,
|
|
1679
|
+
defaultValue: t,
|
|
1587
1680
|
onValueChange: r,
|
|
1588
1681
|
orientation: n = "horizontal"
|
|
1589
1682
|
}) {
|
|
1590
|
-
const [
|
|
1591
|
-
|
|
1592
|
-
} : void 0),
|
|
1593
|
-
|
|
1683
|
+
const [o, s] = ne(e, t ?? null, r ? (i) => {
|
|
1684
|
+
i !== null && r(i);
|
|
1685
|
+
} : void 0), l = y(/* @__PURE__ */ new Map()), c = y([]), k = I((i, x) => (l.current.set(i, x), c.current.includes(i) || c.current.push(i), () => {
|
|
1686
|
+
l.current.delete(i), c.current = c.current.filter((a) => a !== i);
|
|
1594
1687
|
}), []);
|
|
1595
1688
|
return {
|
|
1596
|
-
activeValue:
|
|
1689
|
+
activeValue: o,
|
|
1597
1690
|
onSelect: s,
|
|
1598
1691
|
orientation: n,
|
|
1599
|
-
registerTab:
|
|
1600
|
-
tabsRef:
|
|
1692
|
+
registerTab: k,
|
|
1693
|
+
tabsRef: l,
|
|
1601
1694
|
orderRef: c
|
|
1602
1695
|
};
|
|
1603
1696
|
}
|
|
1604
|
-
function
|
|
1605
|
-
children:
|
|
1606
|
-
value:
|
|
1697
|
+
function $t({
|
|
1698
|
+
children: e,
|
|
1699
|
+
value: t,
|
|
1607
1700
|
defaultValue: r,
|
|
1608
1701
|
onValueChange: n,
|
|
1609
|
-
orientation:
|
|
1702
|
+
orientation: o = "horizontal"
|
|
1610
1703
|
}) {
|
|
1611
|
-
const s =
|
|
1612
|
-
value:
|
|
1704
|
+
const s = mt({
|
|
1705
|
+
value: t,
|
|
1613
1706
|
defaultValue: r,
|
|
1614
1707
|
onValueChange: n,
|
|
1615
|
-
orientation:
|
|
1708
|
+
orientation: o
|
|
1616
1709
|
});
|
|
1617
|
-
return /* @__PURE__ */
|
|
1710
|
+
return /* @__PURE__ */ u(Me.Provider, { value: s, children: /* @__PURE__ */ u("div", { ...f(g.div, R.root, o === "vertical" && R.rootVertical), children: e }) });
|
|
1618
1711
|
}
|
|
1619
|
-
function
|
|
1620
|
-
children:
|
|
1712
|
+
function wt({
|
|
1713
|
+
children: e
|
|
1621
1714
|
}) {
|
|
1622
1715
|
const {
|
|
1623
|
-
orientation:
|
|
1716
|
+
orientation: t,
|
|
1624
1717
|
activeValue: r,
|
|
1625
1718
|
onSelect: n,
|
|
1626
|
-
tabsRef:
|
|
1719
|
+
tabsRef: o,
|
|
1627
1720
|
orderRef: s
|
|
1628
|
-
} =
|
|
1629
|
-
return
|
|
1630
|
-
const c =
|
|
1721
|
+
} = ce(), l = y(null);
|
|
1722
|
+
return T(() => {
|
|
1723
|
+
const c = l.current;
|
|
1631
1724
|
if (!c) return;
|
|
1632
|
-
function
|
|
1633
|
-
const
|
|
1634
|
-
if (
|
|
1635
|
-
const
|
|
1636
|
-
let
|
|
1637
|
-
switch (
|
|
1638
|
-
case
|
|
1639
|
-
|
|
1640
|
-
const v = r ?
|
|
1641
|
-
for (let
|
|
1642
|
-
const
|
|
1643
|
-
if (!
|
|
1644
|
-
|
|
1725
|
+
function k(i) {
|
|
1726
|
+
const x = s.current, a = o.current;
|
|
1727
|
+
if (x.length === 0) return;
|
|
1728
|
+
const m = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1729
|
+
let h = null;
|
|
1730
|
+
switch (i.key) {
|
|
1731
|
+
case p: {
|
|
1732
|
+
i.preventDefault();
|
|
1733
|
+
const v = r ? x.indexOf(r) : -1;
|
|
1734
|
+
for (let b = 1; b <= x.length; b++) {
|
|
1735
|
+
const d = (v + b) % x.length, $ = x[d];
|
|
1736
|
+
if (!a.get($)) {
|
|
1737
|
+
h = $;
|
|
1645
1738
|
break;
|
|
1646
1739
|
}
|
|
1647
1740
|
}
|
|
1648
1741
|
break;
|
|
1649
1742
|
}
|
|
1650
|
-
case
|
|
1651
|
-
|
|
1652
|
-
const v = r ?
|
|
1653
|
-
for (let
|
|
1654
|
-
const
|
|
1655
|
-
if (!
|
|
1656
|
-
|
|
1743
|
+
case w: {
|
|
1744
|
+
i.preventDefault();
|
|
1745
|
+
const v = r ? x.indexOf(r) : 0;
|
|
1746
|
+
for (let b = 1; b <= x.length; b++) {
|
|
1747
|
+
const d = (v - b + x.length) % x.length, $ = x[d];
|
|
1748
|
+
if (!a.get($)) {
|
|
1749
|
+
h = $;
|
|
1657
1750
|
break;
|
|
1658
1751
|
}
|
|
1659
1752
|
}
|
|
1660
1753
|
break;
|
|
1661
1754
|
}
|
|
1662
1755
|
case "Home": {
|
|
1663
|
-
|
|
1664
|
-
for (const v of
|
|
1665
|
-
if (!
|
|
1666
|
-
|
|
1756
|
+
i.preventDefault();
|
|
1757
|
+
for (const v of x)
|
|
1758
|
+
if (!a.get(v)) {
|
|
1759
|
+
h = v;
|
|
1667
1760
|
break;
|
|
1668
1761
|
}
|
|
1669
1762
|
break;
|
|
1670
1763
|
}
|
|
1671
1764
|
case "End": {
|
|
1672
|
-
|
|
1673
|
-
for (let v =
|
|
1674
|
-
if (!
|
|
1675
|
-
|
|
1765
|
+
i.preventDefault();
|
|
1766
|
+
for (let v = x.length - 1; v >= 0; v--)
|
|
1767
|
+
if (!a.get(x[v])) {
|
|
1768
|
+
h = x[v];
|
|
1676
1769
|
break;
|
|
1677
1770
|
}
|
|
1678
1771
|
break;
|
|
1679
1772
|
}
|
|
1680
1773
|
}
|
|
1681
|
-
|
|
1774
|
+
h && (n(h), m.querySelector(`[data-tab-value="${h}"]`)?.focus());
|
|
1682
1775
|
}
|
|
1683
|
-
return c.addEventListener("keydown",
|
|
1684
|
-
}, [
|
|
1776
|
+
return c.addEventListener("keydown", k), () => c.removeEventListener("keydown", k);
|
|
1777
|
+
}, [t, r, n, o, s]), /* @__PURE__ */ u("div", { ref: l, role: "tablist", "aria-orientation": t, ...f(g.div, R.list, t === "vertical" && R.listVertical), children: e });
|
|
1685
1778
|
}
|
|
1686
|
-
function
|
|
1687
|
-
value:
|
|
1688
|
-
disabled:
|
|
1779
|
+
function yt({
|
|
1780
|
+
value: e,
|
|
1781
|
+
disabled: t = !1,
|
|
1689
1782
|
children: r
|
|
1690
1783
|
}) {
|
|
1691
1784
|
const {
|
|
1692
1785
|
activeValue: n,
|
|
1693
|
-
onSelect:
|
|
1786
|
+
onSelect: o,
|
|
1694
1787
|
orientation: s,
|
|
1695
|
-
registerTab:
|
|
1696
|
-
} =
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
};
|
|
1701
|
-
return /* @__PURE__ */ a(g.button, { type: "button", role: "tab", id: m, "aria-selected": c, "aria-controls": u, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: c ? 0 : -1, onClick: f, style: [A.tab, s === "vertical" && A.tabVertical, c && (s === "vertical" ? A.tabActiveVertical : A.tabActiveHorizontal), e && A.tabDisabled], children: r });
|
|
1788
|
+
registerTab: l
|
|
1789
|
+
} = ce(), c = n === e, k = P(), i = `${k}-panel`;
|
|
1790
|
+
return T(() => l(e, t), [e, t, l]), /* @__PURE__ */ u("button", { type: "button", role: "tab", id: k, "aria-selected": c, "aria-controls": i, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
|
|
1791
|
+
t || o(e);
|
|
1792
|
+
}, ...f(g.button, R.tab, s === "vertical" && R.tabVertical, c && (s === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), t && R.tabDisabled), children: r });
|
|
1702
1793
|
}
|
|
1703
|
-
function
|
|
1704
|
-
value:
|
|
1705
|
-
children:
|
|
1794
|
+
function Mt({
|
|
1795
|
+
value: e,
|
|
1796
|
+
children: t
|
|
1706
1797
|
}) {
|
|
1707
1798
|
const {
|
|
1708
1799
|
activeValue: r,
|
|
1709
1800
|
orientation: n
|
|
1710
|
-
} =
|
|
1711
|
-
return r !==
|
|
1801
|
+
} = ce();
|
|
1802
|
+
return r !== e ? null : /* @__PURE__ */ u("div", { role: "tabpanel", ...f(g.div, R.panel, n === "vertical" && R.panelVertical), children: t });
|
|
1712
1803
|
}
|
|
1713
|
-
const
|
|
1714
|
-
Root:
|
|
1715
|
-
List:
|
|
1716
|
-
Tab:
|
|
1717
|
-
Panel:
|
|
1718
|
-
},
|
|
1719
|
-
|
|
1720
|
-
"
|
|
1721
|
-
|
|
1804
|
+
const Jt = {
|
|
1805
|
+
Root: $t,
|
|
1806
|
+
List: wt,
|
|
1807
|
+
Tab: yt,
|
|
1808
|
+
Panel: Mt
|
|
1809
|
+
}, Kt = {
|
|
1810
|
+
bg: "var(--bg-xqkwqtp)",
|
|
1811
|
+
bgCard: "var(--bgCard-xj2l5r)",
|
|
1812
|
+
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
1813
|
+
text: "var(--text-xlpbogt)",
|
|
1814
|
+
textMuted: "var(--textMuted-x651nu9)",
|
|
1815
|
+
accent: "var(--accent-xw7wp3v)",
|
|
1816
|
+
accentHover: "var(--accentHover-x18fqoz)",
|
|
1817
|
+
accentContrast: "var(--accentContrast-x3gzxyp)",
|
|
1818
|
+
border: "var(--border-x1drj1pb)",
|
|
1819
|
+
error: "var(--error-x13gdhh0)",
|
|
1820
|
+
errorHover: "var(--errorHover-x7eyu03)",
|
|
1821
|
+
errorBg: "var(--errorBg-xrl8836)",
|
|
1822
|
+
errorBorder: "var(--errorBorder-x1a6pjl)",
|
|
1823
|
+
errorText: "var(--errorText-xf51nwe)",
|
|
1824
|
+
errorContrast: "var(--errorContrast-x1lvjkah)",
|
|
1825
|
+
success: "var(--success-x197pe5n)",
|
|
1826
|
+
successBg: "var(--successBg-xzjukav)",
|
|
1827
|
+
successBorder: "var(--successBorder-x1my3ygc)",
|
|
1828
|
+
successText: "var(--successText-x46dg9e)",
|
|
1829
|
+
warning: "var(--warning-x1gq0pyw)",
|
|
1830
|
+
warningBg: "var(--warningBg-xtnxqss)",
|
|
1831
|
+
warningBorder: "var(--warningBorder-x1ev2mr5)",
|
|
1832
|
+
warningText: "var(--warningText-x1lgjghx)",
|
|
1833
|
+
infoBg: "var(--infoBg-xho8jir)",
|
|
1834
|
+
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
1835
|
+
infoText: "var(--infoText-x19pseus)",
|
|
1836
|
+
__varGroupHash__: "xjvd03b"
|
|
1837
|
+
}, Ut = {
|
|
1838
|
+
xs: "var(--xs-xxfyjsd)",
|
|
1839
|
+
sm: "var(--sm-xbh8y7f)",
|
|
1840
|
+
md: "var(--md-x3pkb85)",
|
|
1841
|
+
lg: "var(--lg-x34mutn)",
|
|
1842
|
+
xl: "var(--xl-xttpygj)",
|
|
1843
|
+
xxl: "var(--xxl-xbe9eha)",
|
|
1844
|
+
__varGroupHash__: "x6uc9q"
|
|
1845
|
+
}, _t = {
|
|
1846
|
+
sm: "var(--sm-x1bhtfs5)",
|
|
1847
|
+
md: "var(--md-xx2g89g)",
|
|
1848
|
+
lg: "var(--lg-xwd56yl)",
|
|
1849
|
+
full: "var(--full-x9vxdtd)",
|
|
1850
|
+
__varGroupHash__: "xw3ffwm"
|
|
1851
|
+
}, Qt = {
|
|
1852
|
+
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
1853
|
+
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
1854
|
+
fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
|
|
1855
|
+
fontSizeMd: "var(--fontSizeMd-xq8d99q)",
|
|
1856
|
+
fontSizeLg: "var(--fontSizeLg-x18ngplw)",
|
|
1857
|
+
fontSizeXl: "var(--fontSizeXl-x1b1mqsu)",
|
|
1858
|
+
fontSizeHeading: "var(--fontSizeHeading-x1stydh2)",
|
|
1859
|
+
fontWeightNormal: "var(--fontWeightNormal-x1y1cayu)",
|
|
1860
|
+
fontWeightMedium: "var(--fontWeightMedium-xaw13ft)",
|
|
1861
|
+
fontWeightSemibold: "var(--fontWeightSemibold-xg6c7xe)",
|
|
1862
|
+
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
1863
|
+
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
1864
|
+
__varGroupHash__: "xs62swl"
|
|
1865
|
+
}, Ft = {
|
|
1866
|
+
sm: "var(--sm-x17hhtln)",
|
|
1867
|
+
md: "var(--md-x1oyt0aw)",
|
|
1868
|
+
lg: "var(--lg-x1mxd62i)",
|
|
1869
|
+
__varGroupHash__: "x13v825q"
|
|
1870
|
+
}, zt = {
|
|
1871
|
+
xjvd03b: "x18itf25 xjvd03b",
|
|
1872
|
+
$$css: !0
|
|
1873
|
+
}, jt = {
|
|
1874
|
+
x13v825q: "xv9ibj0 x13v825q",
|
|
1875
|
+
$$css: !0
|
|
1876
|
+
}, qt = {
|
|
1877
|
+
xjvd03b: "x1qgt5a2 xjvd03b",
|
|
1878
|
+
$$css: !0
|
|
1879
|
+
}, St = {
|
|
1880
|
+
x13v825q: "x15e39jv x13v825q",
|
|
1881
|
+
$$css: !0
|
|
1882
|
+
}, It = {
|
|
1883
|
+
light: [zt, jt],
|
|
1884
|
+
"high-contrast": [qt, St]
|
|
1885
|
+
}, Tt = {
|
|
1722
1886
|
root: {
|
|
1723
|
-
|
|
1887
|
+
k1xSpc: "xjp7ctv",
|
|
1888
|
+
$$css: !0
|
|
1724
1889
|
}
|
|
1725
|
-
}
|
|
1726
|
-
function
|
|
1727
|
-
theme:
|
|
1728
|
-
children:
|
|
1890
|
+
};
|
|
1891
|
+
function Zt({
|
|
1892
|
+
theme: e = "dark",
|
|
1893
|
+
children: t
|
|
1729
1894
|
}) {
|
|
1730
|
-
const r =
|
|
1731
|
-
return /* @__PURE__ */
|
|
1895
|
+
const r = It[e], n = [r?.[0], r?.[1], Tt.root];
|
|
1896
|
+
return /* @__PURE__ */ u("div", { ...f(g.div, n), children: t });
|
|
1732
1897
|
}
|
|
1733
|
-
const
|
|
1898
|
+
const te = {
|
|
1734
1899
|
root: {
|
|
1735
|
-
|
|
1736
|
-
|
|
1900
|
+
kVAEAm: "x1n2onr6",
|
|
1901
|
+
k1xSpc: "x3nfvp2",
|
|
1902
|
+
$$css: !0
|
|
1737
1903
|
},
|
|
1738
1904
|
popup: {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1905
|
+
kVAEAm: "x10l6tqk",
|
|
1906
|
+
kY2c9j: "xa9119d",
|
|
1907
|
+
kLKAdn: "x12lvzsw",
|
|
1908
|
+
kGO01o: "xpz7ktu",
|
|
1909
|
+
kE3dHu: "x1t5mref",
|
|
1910
|
+
kpe85a: "x3h5nva",
|
|
1911
|
+
kWkggS: "xdz192t",
|
|
1912
|
+
kMwMTN: "x1q7k5ly",
|
|
1913
|
+
kMv6JI: "x1pzdjp3",
|
|
1914
|
+
kGuDYH: "xcj380t",
|
|
1915
|
+
kLWn49: "x1x949wg",
|
|
1916
|
+
kaIpWk: "x12fpg5d",
|
|
1917
|
+
kMzoRj: "xmkeg23",
|
|
1918
|
+
ksu8eU: "x1y0btm7",
|
|
1919
|
+
kVAM5u: "x8sq793",
|
|
1920
|
+
kGVxlE: "xconxm6",
|
|
1921
|
+
khDVqt: "xuxw1ft",
|
|
1922
|
+
kfzvcC: "x47corl",
|
|
1923
|
+
$$css: !0
|
|
1757
1924
|
},
|
|
1758
1925
|
top: {
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1926
|
+
krVfgx: "x10w3d4m",
|
|
1927
|
+
kbCHJM: "x1nrll8i",
|
|
1928
|
+
k3aq6I: "xuuh30",
|
|
1929
|
+
k1K539: "x1eg1ji7",
|
|
1930
|
+
$$css: !0
|
|
1763
1931
|
},
|
|
1764
1932
|
bottom: {
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1933
|
+
k87sOh: "xdsb8wn",
|
|
1934
|
+
kbCHJM: "x1nrll8i",
|
|
1935
|
+
k3aq6I: "xuuh30",
|
|
1936
|
+
keoZOQ: "x1x9u35d",
|
|
1937
|
+
$$css: !0
|
|
1769
1938
|
},
|
|
1770
1939
|
left: {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1940
|
+
kCIrl2: "xjvjlmm",
|
|
1941
|
+
k87sOh: "xwa60dl",
|
|
1942
|
+
k3aq6I: "x1cb1t30",
|
|
1943
|
+
km5ZXQ: "xnf8jsw",
|
|
1944
|
+
$$css: !0
|
|
1775
1945
|
},
|
|
1776
1946
|
right: {
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1947
|
+
kbCHJM: "xl8wat7",
|
|
1948
|
+
k87sOh: "xwa60dl",
|
|
1949
|
+
k3aq6I: "x1cb1t30",
|
|
1950
|
+
koQZXg: "xkhkick",
|
|
1951
|
+
$$css: !0
|
|
1781
1952
|
}
|
|
1782
|
-
}
|
|
1783
|
-
function
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1786
|
-
return
|
|
1953
|
+
}, ze = V(null);
|
|
1954
|
+
function Wt() {
|
|
1955
|
+
const e = E(ze);
|
|
1956
|
+
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
1957
|
+
return e;
|
|
1787
1958
|
}
|
|
1788
|
-
function
|
|
1789
|
-
children:
|
|
1790
|
-
content:
|
|
1959
|
+
function Ht({
|
|
1960
|
+
children: e,
|
|
1961
|
+
content: t,
|
|
1791
1962
|
placement: r = "top",
|
|
1792
1963
|
delay: n = 300
|
|
1793
1964
|
}) {
|
|
1794
|
-
const [
|
|
1965
|
+
const [o, s] = H(!1), l = P(), c = y(null), k = I(() => {
|
|
1795
1966
|
c.current && clearTimeout(c.current), c.current = setTimeout(() => s(!0), n);
|
|
1796
|
-
}, [n]),
|
|
1967
|
+
}, [n]), i = I(() => {
|
|
1797
1968
|
c.current && clearTimeout(c.current), c.current = null, s(!1);
|
|
1798
1969
|
}, []);
|
|
1799
|
-
return /* @__PURE__ */
|
|
1800
|
-
open:
|
|
1801
|
-
show:
|
|
1802
|
-
hide:
|
|
1803
|
-
tooltipId:
|
|
1970
|
+
return /* @__PURE__ */ u(ze.Provider, { value: {
|
|
1971
|
+
open: o,
|
|
1972
|
+
show: k,
|
|
1973
|
+
hide: i,
|
|
1974
|
+
tooltipId: l,
|
|
1804
1975
|
placement: r
|
|
1805
|
-
}, children: /* @__PURE__ */
|
|
1806
|
-
|
|
1807
|
-
|
|
1976
|
+
}, children: /* @__PURE__ */ Y("div", { ...f(g.div, te.root), children: [
|
|
1977
|
+
e,
|
|
1978
|
+
o && /* @__PURE__ */ u("div", { id: l, role: "tooltip", ...f(g.div, te.popup, te[r]), children: t })
|
|
1808
1979
|
] }) });
|
|
1809
1980
|
}
|
|
1810
|
-
function
|
|
1811
|
-
children:
|
|
1981
|
+
function At({
|
|
1982
|
+
children: e
|
|
1812
1983
|
}) {
|
|
1813
1984
|
const {
|
|
1814
|
-
open:
|
|
1985
|
+
open: t,
|
|
1815
1986
|
show: r,
|
|
1816
1987
|
hide: n,
|
|
1817
|
-
tooltipId:
|
|
1818
|
-
} =
|
|
1819
|
-
return /* @__PURE__ */
|
|
1988
|
+
tooltipId: o
|
|
1989
|
+
} = Wt();
|
|
1990
|
+
return /* @__PURE__ */ u("div", { onPointerEnter: r, onPointerLeave: n, onFocus: r, onBlur: n, "aria-describedby": t ? o : void 0, ...f(g.div), children: e });
|
|
1820
1991
|
}
|
|
1821
|
-
const
|
|
1822
|
-
Root:
|
|
1823
|
-
Trigger:
|
|
1992
|
+
const er = {
|
|
1993
|
+
Root: Ht,
|
|
1994
|
+
Trigger: At
|
|
1824
1995
|
};
|
|
1825
1996
|
export {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1997
|
+
Rt as Alert,
|
|
1998
|
+
Ct as Badge,
|
|
1999
|
+
Vt as Button,
|
|
2000
|
+
Ot as Card,
|
|
2001
|
+
Lt as Field,
|
|
2002
|
+
Nt as Input,
|
|
2003
|
+
Dt as Menu,
|
|
2004
|
+
Bt as ScrollArea,
|
|
2005
|
+
Pt as Select,
|
|
2006
|
+
Yt as SideNav,
|
|
2007
|
+
Xt as Table,
|
|
2008
|
+
Jt as Tabs,
|
|
2009
|
+
Zt as ThemeProvider,
|
|
2010
|
+
er as Tooltip,
|
|
2011
|
+
Kt as colors,
|
|
2012
|
+
St as highContrastShadows,
|
|
2013
|
+
qt as highContrastTheme,
|
|
2014
|
+
jt as lightShadows,
|
|
2015
|
+
zt as lightTheme,
|
|
2016
|
+
_t as radii,
|
|
2017
|
+
Ft as shadows,
|
|
2018
|
+
Ut as spacing,
|
|
2019
|
+
Qt as typography
|
|
1849
2020
|
};
|
|
1850
2021
|
//# sourceMappingURL=index.js.map
|