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