@duro-app/ui 0.8.6 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as A, Fragment as _ } from "react/jsx-runtime";
2
- import { useState as H, useCallback as q, useContext as N, createContext as C, useId as U, useMemo as ft, useRef as w, useEffect as W, Children as It } from "react";
1
+ import { jsx as r, jsxs as z, Fragment as N } from "react/jsx-runtime";
2
+ import { useState as G, useCallback as W, useContext as C, createContext as R, useId as _, useMemo as $e, useRef as w, useEffect as H, Children as qe } from "react";
3
3
  /**
4
4
  * @license react-strict-dom
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -7,81 +7,81 @@ import { useState as H, useCallback as q, useContext as N, createContext as C, u
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- var $t = {};
11
- Object.defineProperty($t, "__esModule", {
10
+ var me = {};
11
+ Object.defineProperty(me, "__esModule", {
12
12
  value: !0
13
13
  });
14
- var qt = $t.styleq = void 0, Rt = /* @__PURE__ */ new WeakMap(), Xt = "$$css";
15
- function Wt(t) {
16
- var e, n, r;
17
- return t != null && (e = t.disableCache === !0, n = t.disableMix === !0, r = t.transform), function() {
18
- for (var x = [], i = "", c = null, d = "", a = e ? null : Rt, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
14
+ var We = me.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
15
+ function He(e) {
16
+ var t, n, s;
17
+ return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, s = e.transform), function() {
18
+ for (var l = [], i = "", c = null, d = "", a = t ? null : Xe, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
19
19
  g[u] = arguments[u];
20
20
  for (; g.length > 0; ) {
21
- var v = g.pop();
22
- if (!(v == null || v === !1)) {
23
- if (Array.isArray(v)) {
24
- for (var S = 0; S < v.length; S++)
25
- g.push(v[S]);
21
+ var $ = g.pop();
22
+ if (!($ == null || $ === !1)) {
23
+ if (Array.isArray($)) {
24
+ for (var S = 0; S < $.length; S++)
25
+ g.push($[S]);
26
26
  continue;
27
27
  }
28
- var h = r != null ? r(v) : v;
29
- if (h.$$css != null) {
28
+ var p = s != null ? s($) : $;
29
+ if (p.$$css != null) {
30
30
  var m = "";
31
- if (a != null && a.has(h)) {
32
- var f = a.get(h);
33
- f != null && (m = f[0], d = f[2], x.push.apply(x, f[1]), a = f[3]);
31
+ if (a != null && a.has(p)) {
32
+ var f = a.get(p);
33
+ f != null && (m = f[0], d = f[2], l.push.apply(l, f[1]), a = f[3]);
34
34
  } else {
35
- var $ = [];
36
- for (var p in h) {
37
- var b = h[p];
38
- if (p === Xt) {
39
- var B = h[p];
35
+ var v = [];
36
+ for (var h in p) {
37
+ var b = p[h];
38
+ if (h === Ye) {
39
+ var B = p[h];
40
40
  B !== !0 && (d = d ? B + "; " + d : B);
41
41
  continue;
42
42
  }
43
- typeof b == "string" || b === null ? x.includes(p) || (x.push(p), a != null && $.push(p), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(p, " typeof ").concat(String(b), ' is not "string" or "null".'));
43
+ typeof b == "string" || b === null ? l.includes(h) || (l.push(h), a != null && v.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
44
44
  }
45
45
  if (a != null) {
46
- var F = /* @__PURE__ */ new WeakMap();
47
- a.set(h, [m, $, d, F]), a = F;
46
+ var Q = /* @__PURE__ */ new WeakMap();
47
+ a.set(p, [m, v, d, Q]), a = Q;
48
48
  }
49
49
  }
50
50
  m && (i = i ? m + " " + i : m);
51
51
  } else if (n)
52
- c == null && (c = {}), c = Object.assign({}, h, c);
52
+ c == null && (c = {}), c = Object.assign({}, p, c);
53
53
  else {
54
54
  var y = null;
55
- for (var z in h) {
56
- var j = h[z];
57
- j !== void 0 && (x.includes(z) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[z] = j), x.push(z), a = null));
55
+ for (var I in p) {
56
+ var M = p[I];
57
+ M !== void 0 && (l.includes(I) || (M != null && (c == null && (c = {}), y == null && (y = {}), y[I] = M), l.push(I), a = null));
58
58
  }
59
59
  y != null && (c = Object.assign(y, c));
60
60
  }
61
61
  }
62
62
  }
63
- var M = [i, c, d];
64
- return M;
63
+ var j = [i, c, d];
64
+ return j;
65
65
  };
66
66
  }
67
- var Yt = qt = $t.styleq = Wt();
68
- Yt.factory = Wt;
69
- const Jt = qt.factory({
67
+ var Je = We = me.styleq = He();
68
+ Je.factory = He;
69
+ const Pe = We.factory({
70
70
  disableMix: !0
71
71
  });
72
- function l(...t) {
73
- const [e, n, r] = Jt(t), s = {};
74
- if (e != null && e !== "" && (s.className = e), n != null && (s.style = n), r != null && r !== "") {
75
- const x = r.split(";"), i = {};
76
- for (const c of x) {
72
+ function x(...e) {
73
+ const [t, n, s] = Pe(e), o = {};
74
+ if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), s != null && s !== "") {
75
+ const l = s.split(";"), i = {};
76
+ for (const c of l) {
77
77
  const d = c.trim(), [a, g] = d.split(":");
78
78
  g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
79
79
  }
80
- s["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
80
+ o["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
81
81
  }
82
- return s;
82
+ return o;
83
83
  }
84
- const V = {
84
+ const A = {
85
85
  block: {
86
86
  kogj98: "x1ghz6dp",
87
87
  kmVPX3: "x1717udv",
@@ -121,24 +121,90 @@ const V = {
121
121
  kHenm0: "x288g5",
122
122
  $$css: !0
123
123
  }
124
- }, Pt = V.inline, Ft = [V.inlineblock, V.button], Qt = V.block, Z = [V.block, V.heading], Kt = [V.inlineblock, V.input], Ut = V.inline, _t = V.block, Zt = V.block, te = V.inline, ee = [V.inlineblock, V.textarea], k = {
125
- a: Pt,
126
- button: Ft,
127
- div: Qt,
124
+ }, Fe = A.inline, Qe = [A.inlineblock, A.button], Ke = A.block, Z = [A.block, A.heading], Ue = [A.inlineblock, A.input], _e = A.inline, Ze = A.block, et = A.block, tt = A.inline, nt = [A.inlineblock, A.textarea], k = {
125
+ a: Fe,
126
+ button: Qe,
127
+ div: Ke,
128
128
  h1: Z,
129
129
  h2: Z,
130
130
  h3: Z,
131
131
  h4: Z,
132
132
  h5: Z,
133
133
  h6: Z,
134
- input: Kt,
135
- label: Ut,
136
- nav: _t,
137
- p: Zt,
138
- span: te,
139
- textarea: ee
140
- }, jt = {
134
+ input: Ue,
135
+ label: _e,
136
+ nav: Ze,
137
+ p: et,
138
+ span: tt,
139
+ textarea: nt
140
+ }, rt = {
141
+ "x-circle": /* @__PURE__ */ z(N, { children: [
142
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
143
+ /* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
144
+ /* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
145
+ ] }),
146
+ "check-circle": /* @__PURE__ */ z(N, { children: [
147
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
148
+ /* @__PURE__ */ r("polyline", { points: "16 10 11 15 8 12" })
149
+ ] }),
150
+ "check-done": /* @__PURE__ */ z(N, { children: [
151
+ /* @__PURE__ */ r("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
152
+ /* @__PURE__ */ r("polyline", { points: "22 4 12 14.01 9 11.01" })
153
+ ] }),
154
+ clock: /* @__PURE__ */ z(N, { children: [
155
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
156
+ /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
157
+ ] }),
158
+ forbidden: /* @__PURE__ */ z(N, { children: [
159
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
160
+ /* @__PURE__ */ r("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
161
+ ] }),
162
+ "info-circle": /* @__PURE__ */ z(N, { children: [
163
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
164
+ /* @__PURE__ */ r("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
165
+ /* @__PURE__ */ r("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
166
+ ] }),
167
+ "alert-triangle": /* @__PURE__ */ z(N, { children: [
168
+ /* @__PURE__ */ r("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
169
+ /* @__PURE__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
170
+ /* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
171
+ ] }),
172
+ shield: /* @__PURE__ */ r("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
173
+ lock: /* @__PURE__ */ z(N, { children: [
174
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
175
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
176
+ ] }),
177
+ key: /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
178
+ }, st = {
179
+ // Filled circle with "i" cutout (dot + line)
180
+ "info-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.75 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0zM11 11a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0v-5z" }),
181
+ // Filled triangle with "!" cutout
182
+ "alert-triangle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm.25 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0z" }),
183
+ // Filled circle with checkmark cutout
184
+ "check-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.707 8.707a1 1 0 0 0-1.414-1.414L11 13.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l5-5z" }),
185
+ // Filled circle with X cutout
186
+ "x-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293z" }),
187
+ // Filled shield with checkmark cutout
188
+ "shield-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 1L3 5v7c0 6.5 8.5 10.5 9 10.73.5-.23 9-4.23 9-10.73V5l-9-4zm3.707 8.707a1 1 0 0 0-1.414-1.414L11 11.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" }),
189
+ // Filled lock body with stroke shackle
190
+ "lock-filled": /* @__PURE__ */ z(N, { children: [
191
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
192
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
193
+ ] })
194
+ };
195
+ function ve({
196
+ name: e,
197
+ size: t = 24
198
+ }) {
199
+ const n = st[e];
200
+ return n ? /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: t, height: t, children: n }) : /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
201
+ }
202
+ const ce = {
141
203
  base: {
204
+ k1xSpc: "x78zum5",
205
+ kXwgrk: "x1q0g3np",
206
+ kGNEyG: "x1cy8zhl",
207
+ kOIVth: "x1wyuhvo",
142
208
  kmVPX3: "x16ixvul",
143
209
  kaIpWk: "x1gbengz",
144
210
  kMzoRj: "xmkeg23",
@@ -147,6 +213,19 @@ const V = {
147
213
  kLWn49: "xi1gl5z",
148
214
  $$css: !0
149
215
  },
216
+ iconWrap: {
217
+ kmuXW: "x2lah0s",
218
+ k1xSpc: "x78zum5",
219
+ kGNEyG: "x6s0dn4",
220
+ kjj79g: "xl56j7k",
221
+ kLKAdn: "x4p5aij",
222
+ $$css: !0
223
+ },
224
+ content: {
225
+ kUk6DE: "x98rzlu",
226
+ k7Eaqz: "xeuugli",
227
+ $$css: !0
228
+ },
150
229
  error: {
151
230
  kWkggS: "x102pa86",
152
231
  kVAM5u: "xmuf6iu",
@@ -171,14 +250,27 @@ const V = {
171
250
  kMwMTN: "xmooqzt",
172
251
  $$css: !0
173
252
  }
253
+ }, ot = {
254
+ info: "info-circle-filled",
255
+ warning: "alert-triangle-filled",
256
+ success: "check-circle-filled",
257
+ error: "x-circle-filled"
174
258
  };
175
- function wn({
176
- variant: t = "info",
177
- children: e
259
+ function it(e, t) {
260
+ return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ve, { name: ot[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ r(ve, { name: e, size: 18 }) : e;
261
+ }
262
+ function zn({
263
+ variant: e = "info",
264
+ icon: t,
265
+ children: n
178
266
  }) {
179
- return /* @__PURE__ */ o("div", { role: "alert", ...l(k.div, jt.base, jt[t]), children: e });
267
+ const s = it(t, e);
268
+ return /* @__PURE__ */ r("div", { role: "alert", ...x(k.div, ce.base, ce[e]), children: s ? /* @__PURE__ */ z(N, { children: [
269
+ /* @__PURE__ */ r("div", { ...x(k.div, ce.iconWrap), children: s }),
270
+ /* @__PURE__ */ r("div", { ...x(k.div, ce.content), children: n })
271
+ ] }) : n });
180
272
  }
181
- const xt = {
273
+ const xe = {
182
274
  base: {
183
275
  k1xSpc: "x3nfvp2",
184
276
  kGNEyG: "x6s0dn4",
@@ -231,18 +323,18 @@ const xt = {
231
323
  kMwMTN: "xmooqzt",
232
324
  $$css: !0
233
325
  }
234
- }, ne = {
235
- sm: xt.sizeSm,
236
- md: xt.sizeMd
326
+ }, ct = {
327
+ sm: xe.sizeSm,
328
+ md: xe.sizeMd
237
329
  };
238
- function Sn({
239
- variant: t = "default",
240
- size: e = "md",
330
+ function In({
331
+ variant: e = "default",
332
+ size: t = "md",
241
333
  children: n
242
334
  }) {
243
- return /* @__PURE__ */ o("span", { ...l(k.span, xt.base, ne[e], xt[t]), children: n });
335
+ return /* @__PURE__ */ r("span", { ...x(k.span, xe.base, ct[t], xe[e]), children: n });
244
336
  }
245
- const nt = {
337
+ const ne = {
246
338
  base: {
247
339
  k1xSpc: "x3nfvp2",
248
340
  kGNEyG: "x6s0dn4",
@@ -317,22 +409,22 @@ const nt = {
317
409
  kkrTdU: "x1h6gzvc",
318
410
  $$css: !0
319
411
  }
320
- }, re = {
321
- default: nt.sizeDefault,
322
- small: nt.sizeSmall
412
+ }, lt = {
413
+ default: ne.sizeDefault,
414
+ small: ne.sizeSmall
323
415
  };
324
- function jn({
325
- variant: t = "primary",
326
- size: e = "default",
416
+ function qn({
417
+ variant: e = "primary",
418
+ size: t = "default",
327
419
  fullWidth: n = !1,
328
- disabled: r = !1,
329
- type: s = "button",
330
- onClick: x,
420
+ disabled: s = !1,
421
+ type: o = "button",
422
+ onClick: l,
331
423
  children: i
332
424
  }) {
333
- return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick: x, ...l(k.button, nt.base, re[e], nt[t], n && nt.fullWidth, r && nt.disabled), children: i });
425
+ return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(k.button, ne.base, lt[t], ne[e], n && ne.fullWidth, s && ne.disabled), children: i });
334
426
  }
335
- const rt = {
427
+ const re = {
336
428
  base: {
337
429
  kWkggS: "xl5mw0s",
338
430
  kMwMTN: "xg6mlj0",
@@ -389,24 +481,24 @@ const rt = {
389
481
  k1K539: "x2mrtcw",
390
482
  $$css: !0
391
483
  }
392
- }, se = {
393
- default: rt.sizeDefault,
394
- compact: rt.sizeCompact,
395
- full: rt.sizeFull
484
+ }, xt = {
485
+ default: re.sizeDefault,
486
+ compact: re.sizeCompact,
487
+ full: re.sizeFull
396
488
  };
397
- function Mn({
398
- variant: t = "outlined",
399
- size: e = "default",
489
+ function Wn({
490
+ variant: e = "outlined",
491
+ size: t = "default",
400
492
  header: n,
401
- onClick: r,
402
- children: s
493
+ onClick: s,
494
+ children: o
403
495
  }) {
404
- return /* @__PURE__ */ A("div", { onClick: r, ...l(k.div, rt.base, rt[t], se[e]), children: [
405
- n && /* @__PURE__ */ o("div", { ...l(k.div, rt.header), children: n }),
406
- s
496
+ return /* @__PURE__ */ z("div", { onClick: s, ...x(k.div, re.base, re[e], xt[t]), children: [
497
+ n && /* @__PURE__ */ r("div", { ...x(k.div, re.header), children: n }),
498
+ o
407
499
  ] });
408
500
  }
409
- const tt = {
501
+ const ee = {
410
502
  root: {
411
503
  k1xSpc: "x3nfvp2",
412
504
  kGNEyG: "x6s0dn4",
@@ -456,27 +548,27 @@ const tt = {
456
548
  $$css: !0
457
549
  }
458
550
  };
459
- function zn({
460
- name: t,
461
- value: e,
551
+ function Hn({
552
+ name: e,
553
+ value: t,
462
554
  checked: n,
463
- defaultChecked: r = !1,
464
- disabled: s = !1,
465
- onChange: x,
555
+ defaultChecked: s = !1,
556
+ disabled: o = !1,
557
+ onChange: l,
466
558
  children: i
467
559
  }) {
468
- const c = n !== void 0, [d, a] = H(r), g = c ? n : d, u = q((v) => {
469
- c || a(v.target.checked), x?.(v);
470
- }, [c, x]);
471
- return /* @__PURE__ */ A("label", { ...l(k.label, tt.root, s && tt.rootDisabled), children: [
472
- /* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: s, onChange: u, ...l(k.input, tt.input), dir: "auto" }),
473
- /* @__PURE__ */ o("span", { ...l(k.span, tt.box, g ? tt.boxChecked : tt.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ o("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
560
+ const c = n !== void 0, [d, a] = G(s), g = c ? n : d, u = W(($) => {
561
+ c || a($.target.checked), l?.($);
562
+ }, [c, l]);
563
+ return /* @__PURE__ */ z("label", { ...x(k.label, ee.root, o && ee.rootDisabled), children: [
564
+ /* @__PURE__ */ r("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : s, disabled: o, onChange: u, ...x(k.input, ee.input), dir: "auto" }),
565
+ /* @__PURE__ */ r("span", { ...x(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ r("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
474
566
  opacity: g ? 1 : 0
475
- }, children: /* @__PURE__ */ o("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
476
- i && /* @__PURE__ */ o("span", { ...l(k.span), children: i })
567
+ }, children: /* @__PURE__ */ r("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
568
+ i && /* @__PURE__ */ r("span", { ...x(k.span), children: i })
477
569
  ] });
478
570
  }
479
- const gt = {
571
+ const he = {
480
572
  root: {
481
573
  k1xSpc: "x78zum5",
482
574
  kXwgrk: "xdt5ytf",
@@ -499,18 +591,18 @@ const gt = {
499
591
  $$css: !0
500
592
  }
501
593
  };
502
- function In({
503
- message: t,
504
- icon: e,
594
+ function Gn({
595
+ message: e,
596
+ icon: t,
505
597
  action: n
506
598
  }) {
507
- return /* @__PURE__ */ A("div", { ...l(k.div, gt.root), children: [
508
- e,
509
- /* @__PURE__ */ o("p", { ...l(k.p, gt.message), children: t }),
510
- n && /* @__PURE__ */ o("div", { ...l(k.div, gt.action), children: n })
599
+ return /* @__PURE__ */ z("div", { ...x(k.div, he.root), children: [
600
+ t,
601
+ /* @__PURE__ */ r("p", { ...x(k.p, he.message), children: e }),
602
+ n && /* @__PURE__ */ r("div", { ...x(k.div, he.action), children: n })
511
603
  ] });
512
604
  }
513
- const Ht = {
605
+ const Ge = {
514
606
  bodySm: {
515
607
  kMv6JI: "x2nsvjj",
516
608
  kGuDYH: "x1if0jgx",
@@ -624,7 +716,7 @@ const Ht = {
624
716
  kb6lSQ: "xgvl3jc",
625
717
  $$css: !0
626
718
  }
627
- }, ct = {
719
+ }, le = {
628
720
  default: {
629
721
  kMwMTN: "xg6mlj0",
630
722
  $$css: !0
@@ -649,33 +741,33 @@ const Ht = {
649
741
  k9WMMc: "xp4054r",
650
742
  $$css: !0
651
743
  }
652
- }, oe = {
744
+ }, kt = {
653
745
  1: "headingXl",
654
746
  2: "headingLg",
655
747
  3: "headingMd",
656
748
  4: "headingSm",
657
749
  5: "headingSm",
658
750
  6: "headingSm"
659
- }, ie = {
660
- start: ct.alignStart,
661
- center: ct.alignCenter,
662
- end: ct.alignEnd
751
+ }, at = {
752
+ start: le.alignStart,
753
+ center: le.alignCenter,
754
+ end: le.alignEnd
663
755
  };
664
- function qn({
665
- level: t,
666
- variant: e,
756
+ function Ln({
757
+ level: e,
758
+ variant: t,
667
759
  color: n = "default",
668
- align: r,
669
- children: s
760
+ align: s,
761
+ children: o
670
762
  }) {
671
- const x = e ?? oe[t], i = [Ht[x], ct[n], r && ie[r]];
672
- return t === 1 ? /* @__PURE__ */ o("h1", { ...l(k.h1, i), children: s }) : t === 2 ? /* @__PURE__ */ o("h2", { ...l(k.h2, i), children: s }) : t === 3 ? /* @__PURE__ */ o("h3", { ...l(k.h3, i), children: s }) : t === 4 ? /* @__PURE__ */ o("h4", { ...l(k.h4, i), children: s }) : t === 5 ? /* @__PURE__ */ o("h5", { ...l(k.h5, i), children: s }) : /* @__PURE__ */ o("h6", { ...l(k.h6, i), children: s });
763
+ const l = t ?? kt[e], i = [Ge[l], le[n], s && at[s]];
764
+ return e === 1 ? /* @__PURE__ */ r("h1", { ...x(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ r("h2", { ...x(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ r("h3", { ...x(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ r("h4", { ...x(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ r("h5", { ...x(k.h5, i), children: o }) : /* @__PURE__ */ r("h6", { ...x(k.h6, i), children: o });
673
765
  }
674
- const Gt = C(null);
675
- function it() {
676
- return N(Gt);
766
+ const Le = R(null);
767
+ function ie() {
768
+ return C(Le);
677
769
  }
678
- const lt = {
770
+ const ke = {
679
771
  root: {
680
772
  k1xSpc: "x78zum5",
681
773
  kXwgrk: "xdt5ytf",
@@ -699,46 +791,46 @@ const lt = {
699
791
  $$css: !0
700
792
  }
701
793
  };
702
- function ce({
703
- invalid: t = !1,
704
- children: e
794
+ function ut({
795
+ invalid: e = !1,
796
+ children: t
705
797
  }) {
706
- const n = U(), r = ft(() => ({
798
+ const n = _(), s = $e(() => ({
707
799
  controlId: `${n}-control`,
708
800
  descriptionId: `${n}-description`,
709
801
  errorId: `${n}-error`,
710
- invalid: t
711
- }), [n, t]);
712
- return /* @__PURE__ */ o(Gt.Provider, { value: r, children: /* @__PURE__ */ o("div", { ...l(k.div, lt.root), children: e }) });
802
+ invalid: e
803
+ }), [n, e]);
804
+ return /* @__PURE__ */ r(Le.Provider, { value: s, children: /* @__PURE__ */ r("div", { ...x(k.div, ke.root), children: t }) });
713
805
  }
714
- function xe({
715
- children: t
806
+ function dt({
807
+ children: e
716
808
  }) {
717
- const e = it();
718
- return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...l(k.label, lt.label), children: t });
809
+ const t = ie();
810
+ return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(k.label, ke.label), children: e });
719
811
  }
720
- function le({
721
- children: t
812
+ function gt({
813
+ children: e
722
814
  }) {
723
- const e = it();
724
- return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...l(k.span, lt.description), children: t });
815
+ const t = ie();
816
+ return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(k.span, ke.description), children: e });
725
817
  }
726
- function ke({
727
- children: t
818
+ function ht({
819
+ children: e
728
820
  }) {
729
- const e = it();
730
- return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...l(k.span, lt.error), children: t });
731
- }
732
- const Wn = {
733
- Root: ce,
734
- Label: xe,
735
- Description: le,
736
- Error: ke
737
- }, Tt = C(null);
738
- function ae() {
739
- return N(Tt);
740
- }
741
- const pt = {
821
+ const t = ie();
822
+ return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(k.span, ke.error), children: e });
823
+ }
824
+ const Tn = {
825
+ Root: ut,
826
+ Label: dt,
827
+ Description: gt,
828
+ Error: ht
829
+ }, Te = R(null);
830
+ function pt() {
831
+ return C(Te);
832
+ }
833
+ const pe = {
742
834
  base: {
743
835
  kzqmXN: "xh8yej3",
744
836
  kLKAdn: "x1y6gaq4",
@@ -777,13 +869,13 @@ const pt = {
777
869
  $$css: !0
778
870
  }
779
871
  };
780
- function Hn({
781
- variant: t = "default",
782
- type: e = "text",
872
+ function En({
873
+ variant: e = "default",
874
+ type: t = "text",
783
875
  name: n,
784
- placeholder: r,
785
- required: s,
786
- minLength: x,
876
+ placeholder: s,
877
+ required: o,
878
+ minLength: l,
787
879
  pattern: i,
788
880
  autoComplete: c,
789
881
  value: d,
@@ -791,12 +883,12 @@ function Hn({
791
883
  disabled: g,
792
884
  onChange: u
793
885
  }) {
794
- const v = it(), S = ae(), h = i !== void 0 ? {
886
+ const $ = ie(), S = pt(), p = i !== void 0 ? {
795
887
  pattern: i
796
888
  } : void 0;
797
- return /* @__PURE__ */ o("input", { id: v?.controlId, type: e, name: n, placeholder: r, required: s, minLength: x, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || t === "error" || void 0, onChange: u, ...l(k.input, pt.base, pt[t], S?.inGroup && pt.inGroup), ...h, dir: "auto" });
889
+ return /* @__PURE__ */ r("input", { id: $?.controlId, type: t, name: n, placeholder: s, required: o, minLength: l, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || e === "error" || void 0, onChange: u, ...x(k.input, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
798
890
  }
799
- const et = {
891
+ const te = {
800
892
  wrapper: {
801
893
  k1xSpc: "x78zum5",
802
894
  kGNEyG: "x1qjc9v5",
@@ -851,27 +943,27 @@ const et = {
851
943
  $$css: !0
852
944
  }
853
945
  };
854
- function ue({
855
- children: t
946
+ function ft({
947
+ children: e
856
948
  }) {
857
- const e = ft(() => ({
949
+ const t = $e(() => ({
858
950
  inGroup: !0
859
951
  }), []);
860
- return /* @__PURE__ */ o(Tt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, et.wrapper), children: t }) });
952
+ return /* @__PURE__ */ r(Te.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, te.wrapper), children: e }) });
861
953
  }
862
- function de({
863
- position: t = "end",
864
- onClick: e,
954
+ function vt({
955
+ position: e = "end",
956
+ onClick: t,
865
957
  disabled: n,
866
- children: r
958
+ children: s
867
959
  }) {
868
- const s = t === "start" ? et.addonStart : et.addonEnd, x = [et.addon, s, e && !n && et.addonClickable, n && et.addonDisabled];
869
- return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ o("span", { ...l(k.span, x), children: r });
960
+ const o = e === "start" ? te.addonStart : te.addonEnd, l = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
961
+ return t ? /* @__PURE__ */ r("button", { type: "button", onClick: t, disabled: n, ...x(k.button, l), children: s }) : /* @__PURE__ */ r("span", { ...x(k.span, l), children: s });
870
962
  }
871
- const Gn = {
872
- Root: ue,
873
- Addon: de
874
- }, ot = {
963
+ const Vn = {
964
+ Root: ft,
965
+ Addon: vt
966
+ }, oe = {
875
967
  base: {
876
968
  k1xSpc: "x3nfvp2",
877
969
  kGNEyG: "x6s0dn4",
@@ -921,22 +1013,22 @@ const Gn = {
921
1013
  kzqmXN: "xh8yej3",
922
1014
  $$css: !0
923
1015
  }
924
- }, ge = {
925
- default: ot.sizeDefault,
926
- small: ot.sizeSmall
1016
+ }, $t = {
1017
+ default: oe.sizeDefault,
1018
+ small: oe.sizeSmall
927
1019
  };
928
- function Tn({
929
- href: t,
930
- variant: e = "primary",
1020
+ function An({
1021
+ href: e,
1022
+ variant: t = "primary",
931
1023
  size: n = "default",
932
- fullWidth: r = !1,
933
- target: s,
934
- rel: x,
1024
+ fullWidth: s = !1,
1025
+ target: o,
1026
+ rel: l,
935
1027
  children: i
936
1028
  }) {
937
- return /* @__PURE__ */ o("a", { href: t, target: s, rel: x, ...l(k.a, ot.base, ge[n], ot[e], r && ot.fullWidth), children: i });
1029
+ return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(k.a, oe.base, $t[n], oe[t], s && oe.fullWidth), children: i });
938
1030
  }
939
- const J = {
1031
+ const P = {
940
1032
  root: {
941
1033
  kVAEAm: "x1n2onr6",
942
1034
  k1xSpc: "x3nfvp2",
@@ -1020,69 +1112,69 @@ const J = {
1020
1112
  kMwMTN: "xg6mlj0 x1c35pte",
1021
1113
  $$css: !0
1022
1114
  }
1023
- }, Et = C(null);
1024
- function kt() {
1025
- const t = N(Et);
1026
- if (!t) throw new Error("Menu compound components must be used within Menu.Root");
1027
- return t;
1028
- }
1029
- function pe() {
1030
- const [t, e] = H(!1), [n, r] = H(null), s = U(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = q(() => {
1031
- e(!1), r(null), a.current = !1, i.current?.focus();
1032
- }, []), u = q(() => {
1033
- e((h) => (h ? (r(null), a.current = !1) : a.current = !0, !h));
1115
+ }, Ee = R(null);
1116
+ function ae() {
1117
+ const e = C(Ee);
1118
+ if (!e) throw new Error("Menu compound components must be used within Menu.Root");
1119
+ return e;
1120
+ }
1121
+ function mt() {
1122
+ const [e, t] = G(!1), [n, s] = G(null), o = _(), l = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
1123
+ t(!1), s(null), a.current = !1, i.current?.focus();
1124
+ }, []), u = W(() => {
1125
+ t((p) => (p ? (s(null), a.current = !1) : a.current = !0, !p));
1034
1126
  }, []);
1035
- W(() => {
1036
- if (t && a.current) {
1127
+ H(() => {
1128
+ if (e && a.current) {
1037
1129
  a.current = !1;
1038
- const h = d.current;
1039
- h.length > 0 && r(h[0]);
1130
+ const p = d.current;
1131
+ p.length > 0 && s(p[0]);
1040
1132
  }
1041
- }, [t]);
1042
- const v = q((h, m) => {
1043
- c.current.set(h, m);
1044
- const f = c.current, $ = [...f.keys()];
1045
- return $.sort((p, b) => {
1046
- const B = f.get(p), F = f.get(b);
1047
- return !B || !F ? 0 : B.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1048
- }), d.current = $, () => {
1049
- c.current.delete(h), d.current = d.current.filter((p) => p !== h);
1133
+ }, [e]);
1134
+ const $ = W((p, m) => {
1135
+ c.current.set(p, m);
1136
+ const f = c.current, v = [...f.keys()];
1137
+ return v.sort((h, b) => {
1138
+ const B = f.get(h), Q = f.get(b);
1139
+ return !B || !Q ? 0 : B.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1140
+ }), d.current = v, () => {
1141
+ c.current.delete(p), d.current = d.current.filter((h) => h !== p);
1050
1142
  };
1051
1143
  }, []);
1052
- return W(() => {
1053
- const h = x.current;
1054
- if (!h || !t) return;
1144
+ return H(() => {
1145
+ const p = l.current;
1146
+ if (!p || !e) return;
1055
1147
  function m(f) {
1056
- const $ = d.current;
1057
- if ($.length !== 0)
1148
+ const v = d.current;
1149
+ if (v.length !== 0)
1058
1150
  switch (f.key) {
1059
1151
  case "ArrowDown": {
1060
- f.preventDefault(), r((p) => {
1061
- const b = p ? $.indexOf(p) : -1;
1062
- return $[(b + 1) % $.length];
1152
+ f.preventDefault(), s((h) => {
1153
+ const b = h ? v.indexOf(h) : -1;
1154
+ return v[(b + 1) % v.length];
1063
1155
  });
1064
1156
  break;
1065
1157
  }
1066
1158
  case "ArrowUp": {
1067
- f.preventDefault(), r((p) => {
1068
- const b = p ? $.indexOf(p) : 0;
1069
- return $[(b - 1 + $.length) % $.length];
1159
+ f.preventDefault(), s((h) => {
1160
+ const b = h ? v.indexOf(h) : 0;
1161
+ return v[(b - 1 + v.length) % v.length];
1070
1162
  });
1071
1163
  break;
1072
1164
  }
1073
1165
  case "Home": {
1074
- f.preventDefault(), r($[0]);
1166
+ f.preventDefault(), s(v[0]);
1075
1167
  break;
1076
1168
  }
1077
1169
  case "End": {
1078
- f.preventDefault(), r($[$.length - 1]);
1170
+ f.preventDefault(), s(v[v.length - 1]);
1079
1171
  break;
1080
1172
  }
1081
1173
  case "Enter":
1082
1174
  case " ": {
1083
1175
  f.preventDefault();
1084
- const p = c.current;
1085
- r((b) => (b && p.get(b)?.click(), b));
1176
+ const h = c.current;
1177
+ s((b) => (b && h.get(b)?.click(), b));
1086
1178
  break;
1087
1179
  }
1088
1180
  case "Escape":
@@ -1092,98 +1184,98 @@ function pe() {
1092
1184
  }
1093
1185
  }
1094
1186
  }
1095
- return h.addEventListener("keydown", m), () => h.removeEventListener("keydown", m);
1096
- }, [t, g]), {
1187
+ return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
1188
+ }, [e, g]), {
1097
1189
  ctx: {
1098
- open: t,
1190
+ open: e,
1099
1191
  toggle: u,
1100
1192
  close: g,
1101
- menuId: s,
1193
+ menuId: o,
1102
1194
  highlightedId: n,
1103
- setHighlightedId: r,
1104
- registerItem: v,
1195
+ setHighlightedId: s,
1196
+ registerItem: $,
1105
1197
  triggerRef: i
1106
1198
  },
1107
- rootRef: x
1199
+ rootRef: l
1108
1200
  };
1109
1201
  }
1110
- function he({
1111
- children: t
1202
+ function bt({
1203
+ children: e
1112
1204
  }) {
1113
1205
  const {
1114
- ctx: e,
1206
+ ctx: t,
1115
1207
  rootRef: n
1116
- } = pe();
1117
- return /* @__PURE__ */ o(Et.Provider, { value: e, children: /* @__PURE__ */ o("div", { ref: n, ...l(k.div, J.root), children: t }) });
1208
+ } = mt();
1209
+ return /* @__PURE__ */ r(Ee.Provider, { value: t, children: /* @__PURE__ */ r("div", { ref: n, ...x(k.div, P.root), children: e }) });
1118
1210
  }
1119
- function fe({
1120
- children: t
1211
+ function yt({
1212
+ children: e
1121
1213
  }) {
1122
1214
  const {
1123
- open: e,
1215
+ open: t,
1124
1216
  toggle: n,
1125
- menuId: r,
1126
- triggerRef: s
1127
- } = kt(), x = w(null);
1128
- return W(() => {
1129
- s.current = x.current;
1130
- }), /* @__PURE__ */ o("button", { ref: x, type: "button", onClick: n, "aria-expanded": e, "aria-haspopup": "menu", "aria-controls": e ? r : void 0, ...l(k.button, J.trigger), children: t });
1131
- }
1132
- function $e({
1133
- children: t,
1134
- align: e = "start"
1217
+ menuId: s,
1218
+ triggerRef: o
1219
+ } = ae(), l = w(null);
1220
+ return H(() => {
1221
+ o.current = l.current;
1222
+ }), /* @__PURE__ */ r("button", { ref: l, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? s : void 0, ...x(k.button, P.trigger), children: e });
1223
+ }
1224
+ function wt({
1225
+ children: e,
1226
+ align: t = "start"
1135
1227
  }) {
1136
1228
  const {
1137
1229
  open: n,
1138
- close: r,
1139
- menuId: s,
1140
- highlightedId: x
1141
- } = kt();
1142
- return n ? /* @__PURE__ */ A(_, { children: [
1143
- /* @__PURE__ */ o("div", { ...l(k.div, J.backdrop), onClick: r }),
1144
- /* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, J.popup, e === "end" && J.popupEnd), children: t })
1230
+ close: s,
1231
+ menuId: o,
1232
+ highlightedId: l
1233
+ } = ae();
1234
+ return n ? /* @__PURE__ */ z(N, { children: [
1235
+ /* @__PURE__ */ r("div", { ...x(k.div, P.backdrop), onClick: s }),
1236
+ /* @__PURE__ */ r("div", { id: o, role: "menu", "aria-activedescendant": l ?? void 0, ...x(k.div, P.popup, t === "end" && P.popupEnd), children: e })
1145
1237
  ] }) : null;
1146
1238
  }
1147
- function ve({
1148
- onClick: t,
1149
- children: e
1239
+ function St({
1240
+ onClick: e,
1241
+ children: t
1150
1242
  }) {
1151
1243
  const {
1152
1244
  close: n,
1153
- highlightedId: r,
1154
- setHighlightedId: s,
1155
- registerItem: x
1156
- } = kt(), i = U(), c = w(null), d = r === i;
1157
- return W(() => {
1245
+ highlightedId: s,
1246
+ setHighlightedId: o,
1247
+ registerItem: l
1248
+ } = ae(), i = _(), c = w(null), d = s === i;
1249
+ return H(() => {
1158
1250
  const g = c.current;
1159
1251
  if (g)
1160
- return x(i, g);
1161
- }, [i, x]), /* @__PURE__ */ o("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1162
- t?.(), n();
1163
- }, onPointerEnter: () => s(i), ...l(k.div, J.item, d && J.itemHighlighted), children: e });
1252
+ return l(i, g);
1253
+ }, [i, l]), /* @__PURE__ */ r("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1254
+ e?.(), n();
1255
+ }, onPointerEnter: () => o(i), ...x(k.div, P.item, d && P.itemHighlighted), children: t });
1164
1256
  }
1165
- function me({
1166
- href: t,
1167
- children: e
1257
+ function Mt({
1258
+ href: e,
1259
+ children: t
1168
1260
  }) {
1169
1261
  const {
1170
1262
  close: n,
1171
- highlightedId: r,
1172
- setHighlightedId: s,
1173
- registerItem: x
1174
- } = kt(), i = U(), c = w(null), d = r === i;
1175
- return W(() => {
1263
+ highlightedId: s,
1264
+ setHighlightedId: o,
1265
+ registerItem: l
1266
+ } = ae(), i = _(), c = w(null), d = s === i;
1267
+ return H(() => {
1176
1268
  const a = c.current;
1177
1269
  if (a)
1178
- return x(i, a);
1179
- }, [i, x]), /* @__PURE__ */ o("a", { ref: c, id: i, href: t, onClick: n, role: "menuitem", onPointerEnter: () => s(i), ...l(k.a, J.item, J.linkItem, d && J.itemHighlighted), children: e });
1180
- }
1181
- const En = {
1182
- Root: he,
1183
- Trigger: fe,
1184
- Popup: $e,
1185
- Item: ve,
1186
- LinkItem: me
1270
+ return l(i, a);
1271
+ }, [i, l]), /* @__PURE__ */ r("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...x(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
1272
+ }
1273
+ const Nn = {
1274
+ Root: bt,
1275
+ Trigger: yt,
1276
+ Popup: wt,
1277
+ Item: St,
1278
+ LinkItem: Mt
1187
1279
  }, D = {
1188
1280
  root: {
1189
1281
  kVAEAm: "x1n2onr6",
@@ -1253,131 +1345,131 @@ const En = {
1253
1345
  kIyJzY: "xx6bhzk",
1254
1346
  $$css: !0
1255
1347
  },
1256
- viewportMaxHeight: (t) => [{
1257
- kskxy: t != null ? "x1jols5v" : t,
1348
+ viewportMaxHeight: (e) => [{
1349
+ kskxy: e != null ? "x1jols5v" : e,
1258
1350
  $$css: !0
1259
1351
  }, {
1260
- "--x-maxHeight": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
1352
+ "--x-maxHeight": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(e)
1261
1353
  }],
1262
- thumbVertical: (t, e) => [{
1263
- kZKoxP: t != null ? "x16ye13r" : t,
1264
- k3aq6I: e != null ? "xsqj5wx" : e,
1354
+ thumbVertical: (e, t) => [{
1355
+ kZKoxP: e != null ? "x16ye13r" : e,
1356
+ k3aq6I: t != null ? "xsqj5wx" : t,
1265
1357
  $$css: !0
1266
1358
  }, {
1267
- "--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
1268
- "--x-transform": e ?? void 0
1359
+ "--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
1360
+ "--x-transform": t ?? void 0
1269
1361
  }],
1270
- thumbHorizontal: (t, e) => [{
1271
- kzqmXN: t != null ? "x5lhr3w" : t,
1272
- k3aq6I: e != null ? "xsqj5wx" : e,
1362
+ thumbHorizontal: (e, t) => [{
1363
+ kzqmXN: e != null ? "x5lhr3w" : e,
1364
+ k3aq6I: t != null ? "xsqj5wx" : t,
1273
1365
  $$css: !0
1274
1366
  }, {
1275
- "--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
1276
- "--x-transform": e ?? void 0
1367
+ "--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
1368
+ "--x-transform": t ?? void 0
1277
1369
  }]
1278
- }, Lt = C(null);
1279
- function at() {
1280
- const t = N(Lt);
1281
- if (!t) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1282
- return t;
1283
- }
1284
- function be() {
1285
- const t = w(null), e = w(null), [n, r] = H(0), [s, x] = H(0), [i, c] = H(0), [d, a] = H(0), [g, u] = H(0), [v, S] = H(0), [h, m] = H(!1), f = w(null), $ = q(() => {
1286
- const p = t.current;
1287
- p && (r(p.scrollTop), x(p.scrollLeft), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1370
+ }, Ve = R(null);
1371
+ function ue() {
1372
+ const e = C(Ve);
1373
+ if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1374
+ return e;
1375
+ }
1376
+ function jt() {
1377
+ const e = w(null), t = w(null), [n, s] = G(0), [o, l] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [$, S] = G(0), [p, m] = G(!1), f = w(null), v = W(() => {
1378
+ const h = e.current;
1379
+ h && (s(h.scrollTop), l(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1288
1380
  }, []);
1289
- return W(() => {
1290
- const p = t.current;
1291
- if (!p) return;
1381
+ return H(() => {
1382
+ const h = e.current;
1383
+ if (!h) return;
1292
1384
  const b = new ResizeObserver(() => {
1293
- c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth);
1385
+ c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth);
1294
1386
  });
1295
- return b.observe(p), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), () => b.disconnect();
1296
- }, []), W(() => {
1297
- const p = t.current;
1298
- if (p)
1299
- return p.addEventListener("scroll", $, {
1387
+ return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), () => b.disconnect();
1388
+ }, []), H(() => {
1389
+ const h = e.current;
1390
+ if (h)
1391
+ return h.addEventListener("scroll", v, {
1300
1392
  passive: !0
1301
- }), () => p.removeEventListener("scroll", $);
1302
- }, [$]), {
1303
- viewportRef: t,
1304
- contentRef: e,
1393
+ }), () => h.removeEventListener("scroll", v);
1394
+ }, [v]), {
1395
+ viewportRef: e,
1396
+ contentRef: t,
1305
1397
  scrollTop: n,
1306
- scrollLeft: s,
1398
+ scrollLeft: o,
1307
1399
  scrollHeight: i,
1308
1400
  scrollWidth: d,
1309
1401
  clientHeight: g,
1310
- clientWidth: v,
1311
- scrolling: h
1402
+ clientWidth: $,
1403
+ scrolling: p
1312
1404
  };
1313
1405
  }
1314
- function ye({
1315
- children: t
1406
+ function zt({
1407
+ children: e
1316
1408
  }) {
1317
- const e = be();
1318
- return /* @__PURE__ */ o(Lt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, D.root), children: t }) });
1409
+ const t = jt();
1410
+ return /* @__PURE__ */ r(Ve.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, D.root), children: e }) });
1319
1411
  }
1320
- function we({
1321
- children: t,
1322
- maxHeight: e
1412
+ function It({
1413
+ children: e,
1414
+ maxHeight: t
1323
1415
  }) {
1324
1416
  const {
1325
1417
  viewportRef: n
1326
- } = at();
1327
- return /* @__PURE__ */ o("div", { ref: n, ...l(k.div, D.viewport, e != null && D.viewportMaxHeight(e)), children: t });
1418
+ } = ue();
1419
+ return /* @__PURE__ */ r("div", { ref: n, ...x(k.div, D.viewport, t != null && D.viewportMaxHeight(t)), children: e });
1328
1420
  }
1329
- function Se({
1330
- children: t
1421
+ function qt({
1422
+ children: e
1331
1423
  }) {
1332
1424
  const {
1333
- contentRef: e
1334
- } = at();
1335
- return /* @__PURE__ */ o("div", { ref: e, ...l(k.div, D.content), children: t });
1425
+ contentRef: t
1426
+ } = ue();
1427
+ return /* @__PURE__ */ r("div", { ref: t, ...x(k.div, D.content), children: e });
1336
1428
  }
1337
- function je({
1338
- orientation: t = "vertical",
1339
- children: e
1429
+ function Wt({
1430
+ orientation: e = "vertical",
1431
+ children: t
1340
1432
  }) {
1341
1433
  const {
1342
1434
  scrolling: n,
1343
- scrollHeight: r,
1344
- scrollWidth: s,
1345
- clientHeight: x,
1435
+ scrollHeight: s,
1436
+ scrollWidth: o,
1437
+ clientHeight: l,
1346
1438
  clientWidth: i
1347
- } = at();
1348
- return (t === "vertical" ? r > x : s > i) ? /* @__PURE__ */ o("div", { ...l(k.div, D.scrollbar, t === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: e }) : null;
1439
+ } = ue();
1440
+ return (e === "vertical" ? s > l : o > i) ? /* @__PURE__ */ r("div", { ...x(k.div, D.scrollbar, e === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: t }) : null;
1349
1441
  }
1350
- function Me({
1351
- orientation: t = "vertical"
1442
+ function Ht({
1443
+ orientation: e = "vertical"
1352
1444
  }) {
1353
1445
  const {
1354
- viewportRef: e,
1446
+ viewportRef: t,
1355
1447
  scrollTop: n,
1356
- scrollLeft: r,
1357
- scrollHeight: s,
1358
- scrollWidth: x,
1448
+ scrollLeft: s,
1449
+ scrollHeight: o,
1450
+ scrollWidth: l,
1359
1451
  clientHeight: i,
1360
1452
  clientWidth: c
1361
- } = at(), d = w(!1), a = w(0), g = w(0), u = t === "vertical", v = Math.max(u ? i / s * 100 : c / x * 100, 10), S = u ? s - i : x - c, h = u ? i : c, m = v / 100 * h, f = u ? n : r, $ = S > 0 ? f / S * (h - m) : 0, p = u ? D.thumbVertical(`${v}%`, `translateY(${$}px)`) : D.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = q((y) => {
1362
- y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? e.current?.scrollTop ?? 0 : e.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1363
- }, [u, e]), B = q((y) => {
1453
+ } = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", $ = Math.max(u ? i / o * 100 : c / l * 100, 10), S = u ? o - i : l - c, p = u ? i : c, m = $ / 100 * p, f = u ? n : s, v = S > 0 ? f / S * (p - m) : 0, h = u ? D.thumbVertical(`${$}%`, `translateY(${v}px)`) : D.thumbHorizontal(`${$}%`, `translateX(${v}px)`), b = W((y) => {
1454
+ y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1455
+ }, [u, t]), B = W((y) => {
1364
1456
  if (!d.current) return;
1365
- const z = e.current;
1366
- if (!z) return;
1367
- const j = (u ? y.clientY : y.clientX) - a.current, M = S / (h - m), Y = j * M;
1368
- u ? z.scrollTop = g.current + Y : z.scrollLeft = g.current + Y;
1369
- }, [u, S, h, m, e]), F = q(() => {
1457
+ const I = t.current;
1458
+ if (!I) return;
1459
+ const M = (u ? y.clientY : y.clientX) - a.current, j = S / (p - m), J = M * j;
1460
+ u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
1461
+ }, [u, S, p, m, t]), Q = W(() => {
1370
1462
  d.current = !1;
1371
1463
  }, []);
1372
- return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove: B, onPointerUp: F, ...l(k.div, D.thumb, p) });
1373
- }
1374
- const Ln = {
1375
- Root: ye,
1376
- Viewport: we,
1377
- Content: Se,
1378
- Scrollbar: je,
1379
- Thumb: Me
1380
- }, X = {
1464
+ return /* @__PURE__ */ r("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...x(k.div, D.thumb, h) });
1465
+ }
1466
+ const On = {
1467
+ Root: zt,
1468
+ Viewport: It,
1469
+ Content: qt,
1470
+ Scrollbar: Wt,
1471
+ Thumb: Ht
1472
+ }, Y = {
1381
1473
  root: {
1382
1474
  kVAEAm: "x1n2onr6",
1383
1475
  k1xSpc: "x3nfvp2",
@@ -1475,231 +1567,231 @@ const Ln = {
1475
1567
  k1xSpc: "x1s85apg",
1476
1568
  $$css: !0
1477
1569
  }
1478
- }, At = C(null);
1479
- function ut() {
1480
- const t = N(At);
1481
- if (!t) throw new Error("Select compound components must be used within Select.Root");
1482
- return t;
1483
- }
1484
- function vt(t, e, n) {
1485
- const [r, s] = H(e), x = t !== void 0 ? t : r, i = q((c) => {
1486
- t === void 0 && s(c), n?.(c);
1487
- }, [t, n]);
1488
- return [x, i];
1489
- }
1490
- function ze({
1491
- defaultValue: t,
1492
- value: e,
1570
+ }, Ae = R(null);
1571
+ function de() {
1572
+ const e = C(Ae);
1573
+ if (!e) throw new Error("Select compound components must be used within Select.Root");
1574
+ return e;
1575
+ }
1576
+ function be(e, t, n) {
1577
+ const [s, o] = G(t), l = e !== void 0 ? e : s, i = W((c) => {
1578
+ e === void 0 && o(c), n?.(c);
1579
+ }, [e, n]);
1580
+ return [l, i];
1581
+ }
1582
+ function Gt({
1583
+ defaultValue: e,
1584
+ value: t,
1493
1585
  onValueChange: n,
1494
- initialLabels: r
1586
+ initialLabels: s
1495
1587
  }) {
1496
- const [s, x] = vt(e, t ?? null, n), [i, c] = H(!1), [d, a] = H(r ?? {}), [g, u] = H(null), v = U(), S = w(null), h = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = q(() => {
1497
- c(!1), u(null), h.current?.focus();
1498
- }, []), p = q(() => {
1588
+ const [o, l] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(s ?? {}), [g, u] = G(null), $ = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), v = W(() => {
1589
+ c(!1), u(null), p.current?.focus();
1590
+ }, []), h = W(() => {
1499
1591
  c((y) => {
1500
1592
  if (y)
1501
1593
  u(null);
1502
1594
  else {
1503
- const z = m.current, j = f.current;
1504
- let M = null;
1505
- for (const Y of j) {
1506
- const G = z.get(Y);
1507
- if (G && G.value === s) {
1508
- M = Y;
1595
+ const I = m.current, M = f.current;
1596
+ let j = null;
1597
+ for (const J of M) {
1598
+ const L = I.get(J);
1599
+ if (L && L.value === o) {
1600
+ j = J;
1509
1601
  break;
1510
1602
  }
1511
1603
  }
1512
- u(M ?? (j.length > 0 ? j[0] : null));
1604
+ u(j ?? (M.length > 0 ? M[0] : null));
1513
1605
  }
1514
1606
  return !y;
1515
1607
  });
1516
- }, [s]), b = q((y, z) => {
1517
- a((j) => j[y] === z ? j : {
1518
- ...j,
1519
- [y]: z
1608
+ }, [o]), b = W((y, I) => {
1609
+ a((M) => M[y] === I ? M : {
1610
+ ...M,
1611
+ [y]: I
1520
1612
  });
1521
- }, []), B = q((y, z, j) => {
1613
+ }, []), B = W((y, I, M) => {
1522
1614
  m.current.set(y, {
1523
- value: z,
1524
- element: j
1615
+ value: I,
1616
+ element: M
1525
1617
  });
1526
- const M = m.current, Y = [...M.keys()];
1527
- return Y.sort((G, Q) => {
1528
- const wt = M.get(G)?.element, St = M.get(Q)?.element;
1529
- return !wt || !St ? 0 : wt.compareDocumentPosition(St) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1530
- }), f.current = Y, () => {
1531
- m.current.delete(y), f.current = f.current.filter((G) => G !== y);
1618
+ const j = m.current, J = [...j.keys()];
1619
+ return J.sort((L, K) => {
1620
+ const Me = j.get(L)?.element, je = j.get(K)?.element;
1621
+ return !Me || !je ? 0 : Me.compareDocumentPosition(je) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1622
+ }), f.current = J, () => {
1623
+ m.current.delete(y), f.current = f.current.filter((L) => L !== y);
1532
1624
  };
1533
1625
  }, []);
1534
- return W(() => {
1626
+ return H(() => {
1535
1627
  const y = S.current;
1536
1628
  if (!y || !i) return;
1537
- function z(j) {
1538
- const M = f.current, Y = m.current;
1539
- if (M.length !== 0)
1540
- switch (j.key) {
1629
+ function I(M) {
1630
+ const j = f.current, J = m.current;
1631
+ if (j.length !== 0)
1632
+ switch (M.key) {
1541
1633
  case "ArrowDown": {
1542
- j.preventDefault(), u((G) => {
1543
- const Q = G ? M.indexOf(G) : -1;
1544
- return M[(Q + 1) % M.length];
1634
+ M.preventDefault(), u((L) => {
1635
+ const K = L ? j.indexOf(L) : -1;
1636
+ return j[(K + 1) % j.length];
1545
1637
  });
1546
1638
  break;
1547
1639
  }
1548
1640
  case "ArrowUp": {
1549
- j.preventDefault(), u((G) => {
1550
- const Q = G ? M.indexOf(G) : 0;
1551
- return M[(Q - 1 + M.length) % M.length];
1641
+ M.preventDefault(), u((L) => {
1642
+ const K = L ? j.indexOf(L) : 0;
1643
+ return j[(K - 1 + j.length) % j.length];
1552
1644
  });
1553
1645
  break;
1554
1646
  }
1555
1647
  case "Home": {
1556
- j.preventDefault(), u(M[0]);
1648
+ M.preventDefault(), u(j[0]);
1557
1649
  break;
1558
1650
  }
1559
1651
  case "End": {
1560
- j.preventDefault(), u(M[M.length - 1]);
1652
+ M.preventDefault(), u(j[j.length - 1]);
1561
1653
  break;
1562
1654
  }
1563
1655
  case "Enter":
1564
1656
  case " ": {
1565
- j.preventDefault(), u((G) => {
1566
- if (G) {
1567
- const Q = Y.get(G);
1568
- Q && (x(Q.value), $());
1657
+ M.preventDefault(), u((L) => {
1658
+ if (L) {
1659
+ const K = J.get(L);
1660
+ K && (l(K.value), v());
1569
1661
  }
1570
- return G;
1662
+ return L;
1571
1663
  });
1572
1664
  break;
1573
1665
  }
1574
1666
  case "Escape":
1575
1667
  case "Tab": {
1576
- $();
1668
+ v();
1577
1669
  break;
1578
1670
  }
1579
1671
  }
1580
1672
  }
1581
- return y.addEventListener("keydown", z), () => y.removeEventListener("keydown", z);
1582
- }, [i, $, x]), {
1583
- ctx: ft(() => ({
1673
+ return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
1674
+ }, [i, v, l]), {
1675
+ ctx: $e(() => ({
1584
1676
  open: i,
1585
- toggle: p,
1586
- close: $,
1587
- value: s,
1588
- setValue: x,
1677
+ toggle: h,
1678
+ close: v,
1679
+ value: o,
1680
+ setValue: l,
1589
1681
  labels: d,
1590
1682
  registerLabel: b,
1591
- listboxId: v,
1683
+ listboxId: $,
1592
1684
  highlightedId: g,
1593
1685
  setHighlightedId: u,
1594
1686
  registerItem: B,
1595
- triggerRef: h
1596
- }), [i, p, $, s, x, d, b, v, g, u, B]),
1687
+ triggerRef: p
1688
+ }), [i, h, v, o, l, d, b, $, g, u, B]),
1597
1689
  rootRef: S
1598
1690
  };
1599
1691
  }
1600
- function Ie({
1601
- name: t,
1602
- defaultValue: e,
1692
+ function Lt({
1693
+ name: e,
1694
+ defaultValue: t,
1603
1695
  value: n,
1604
- onValueChange: r,
1605
- initialLabels: s,
1606
- children: x
1696
+ onValueChange: s,
1697
+ initialLabels: o,
1698
+ children: l
1607
1699
  }) {
1608
1700
  const {
1609
1701
  ctx: i,
1610
1702
  rootRef: c
1611
- } = ze({
1612
- defaultValue: e,
1703
+ } = Gt({
1704
+ defaultValue: t,
1613
1705
  value: n,
1614
- onValueChange: r,
1615
- initialLabels: s
1706
+ onValueChange: s,
1707
+ initialLabels: o
1616
1708
  });
1617
- return /* @__PURE__ */ o(At.Provider, { value: i, children: /* @__PURE__ */ A("div", { ref: c, ...l(k.div, X.root), children: [
1618
- t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...l(k.input) }),
1619
- x
1709
+ return /* @__PURE__ */ r(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...x(k.div, Y.root), children: [
1710
+ e && /* @__PURE__ */ r("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...x(k.input) }),
1711
+ l
1620
1712
  ] }) });
1621
1713
  }
1622
- function qe({
1623
- children: t
1714
+ function Tt({
1715
+ children: e
1624
1716
  }) {
1625
1717
  const {
1626
- open: e,
1718
+ open: t,
1627
1719
  toggle: n,
1628
- listboxId: r,
1629
- highlightedId: s,
1630
- triggerRef: x
1631
- } = ut(), i = w(null);
1632
- return W(() => {
1633
- x.current = i.current;
1634
- }), /* @__PURE__ */ o("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": e, "aria-haspopup": "listbox", "aria-controls": e ? r : void 0, "aria-activedescendant": s ?? void 0, ...l(k.button, X.trigger), children: t });
1635
- }
1636
- function We({
1637
- placeholder: t
1720
+ listboxId: s,
1721
+ highlightedId: o,
1722
+ triggerRef: l
1723
+ } = de(), i = w(null);
1724
+ return H(() => {
1725
+ l.current = i.current;
1726
+ }), /* @__PURE__ */ r("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? s : void 0, "aria-activedescendant": o ?? void 0, ...x(k.button, Y.trigger), children: e });
1727
+ }
1728
+ function Et({
1729
+ placeholder: e
1638
1730
  }) {
1639
1731
  const {
1640
- value: e,
1732
+ value: t,
1641
1733
  labels: n
1642
- } = ut(), r = e ? n[e] ?? e : null;
1643
- return /* @__PURE__ */ o("span", { ...l(k.span, r ? X.value : X.placeholder), children: r ?? t });
1734
+ } = de(), s = t ? n[t] ?? t : null;
1735
+ return /* @__PURE__ */ r("span", { ...x(k.span, s ? Y.value : Y.placeholder), children: s ?? e });
1644
1736
  }
1645
- function He({
1646
- children: t
1737
+ function Vt({
1738
+ children: e
1647
1739
  }) {
1648
- return /* @__PURE__ */ o("span", { ...l(k.span, X.icon), children: t ?? /* @__PURE__ */ o("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__ */ o("path", { d: "M6 9l6 6 6-6" }) }) });
1740
+ return /* @__PURE__ */ r("span", { ...x(k.span, Y.icon), children: e ?? /* @__PURE__ */ r("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__ */ r("path", { d: "M6 9l6 6 6-6" }) }) });
1649
1741
  }
1650
- function Ge({
1651
- children: t
1742
+ function At({
1743
+ children: e
1652
1744
  }) {
1653
1745
  const {
1654
- open: e,
1746
+ open: t,
1655
1747
  close: n,
1656
- listboxId: r
1657
- } = ut();
1658
- return /* @__PURE__ */ A(_, { children: [
1659
- e && /* @__PURE__ */ o("div", { ...l(k.div, X.backdrop), onClick: n }),
1660
- /* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...l(k.div, X.popup, !e && X.hidden), children: t })
1748
+ listboxId: s
1749
+ } = de();
1750
+ return /* @__PURE__ */ z(N, { children: [
1751
+ t && /* @__PURE__ */ r("div", { ...x(k.div, Y.backdrop), onClick: n }),
1752
+ /* @__PURE__ */ r("div", { id: s, role: "listbox", "aria-hidden": !t, ...x(k.div, Y.popup, !t && Y.hidden), children: e })
1661
1753
  ] });
1662
1754
  }
1663
- function Te({
1664
- value: t,
1665
- children: e
1755
+ function Nt({
1756
+ value: e,
1757
+ children: t
1666
1758
  }) {
1667
1759
  const {
1668
1760
  value: n,
1669
- setValue: r,
1670
- close: s,
1671
- registerLabel: x,
1761
+ setValue: s,
1762
+ close: o,
1763
+ registerLabel: l,
1672
1764
  highlightedId: i,
1673
1765
  setHighlightedId: c,
1674
1766
  registerItem: d
1675
- } = ut(), a = U(), g = w(null), u = n === t, v = i === a;
1676
- return W(() => {
1677
- const h = g.current;
1678
- if (!h) return;
1679
- const m = h.textContent;
1680
- m && x(t, m);
1681
- }, [t, x]), W(() => {
1682
- const h = g.current;
1683
- if (h)
1684
- return d(a, t, h);
1685
- }, [a, t, d]), /* @__PURE__ */ o("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1686
- r(t), s();
1687
- }, onPointerEnter: () => c(a), ...l(k.div, X.item, u && X.itemSelected, v && X.itemHighlighted), children: e });
1767
+ } = de(), a = _(), g = w(null), u = n === e, $ = i === a;
1768
+ return H(() => {
1769
+ const p = g.current;
1770
+ if (!p) return;
1771
+ const m = p.textContent;
1772
+ m && l(e, m);
1773
+ }, [e, l]), H(() => {
1774
+ const p = g.current;
1775
+ if (p)
1776
+ return d(a, e, p);
1777
+ }, [a, e, d]), /* @__PURE__ */ r("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1778
+ s(e), o();
1779
+ }, onPointerEnter: () => c(a), ...x(k.div, Y.item, u && Y.itemSelected, $ && Y.itemHighlighted), children: t });
1688
1780
  }
1689
- function Ee({
1690
- children: t
1781
+ function Ot({
1782
+ children: e
1691
1783
  }) {
1692
- return /* @__PURE__ */ o("span", { ...l(k.span), children: t });
1693
- }
1694
- const An = {
1695
- Root: Ie,
1696
- Trigger: qe,
1697
- Value: We,
1698
- Icon: He,
1699
- Popup: Ge,
1700
- Item: Te,
1701
- ItemText: Ee
1702
- }, K = {
1784
+ return /* @__PURE__ */ r("span", { ...x(k.span), children: e });
1785
+ }
1786
+ const Cn = {
1787
+ Root: Lt,
1788
+ Trigger: Tt,
1789
+ Value: Et,
1790
+ Icon: Vt,
1791
+ Popup: At,
1792
+ Item: Nt,
1793
+ ItemText: Ot
1794
+ }, U = {
1703
1795
  root: {
1704
1796
  k1xSpc: "x78zum5",
1705
1797
  kXwgrk: "xdt5ytf",
@@ -1778,83 +1870,83 @@ const An = {
1778
1870
  k63SB2: "x9n8r49",
1779
1871
  $$css: !0
1780
1872
  }
1781
- }, Vt = C(null);
1782
- function Ot() {
1783
- const t = N(Vt);
1784
- if (!t) throw new Error("SideNav compound components must be used within SideNav.Root");
1785
- return t;
1786
- }
1787
- function Le({
1788
- children: t,
1789
- value: e,
1873
+ }, Ne = R(null);
1874
+ function Oe() {
1875
+ const e = C(Ne);
1876
+ if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
1877
+ return e;
1878
+ }
1879
+ function Ct({
1880
+ children: e,
1881
+ value: t,
1790
1882
  defaultValue: n,
1791
- onValueChange: r
1883
+ onValueChange: s
1792
1884
  }) {
1793
- const [s, x] = vt(e, n ?? null, r ? (u) => {
1794
- u !== null && r(u);
1795
- } : void 0), [i, c] = H(/* @__PURE__ */ new Set()), d = w([]), a = q((u) => {
1796
- c((v) => {
1797
- const S = new Set(v);
1885
+ const [o, l] = be(t, n ?? null, s ? (u) => {
1886
+ u !== null && s(u);
1887
+ } : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
1888
+ c(($) => {
1889
+ const S = new Set($);
1798
1890
  return S.has(u) ? S.delete(u) : S.add(u), S;
1799
1891
  });
1800
- }, []), g = q((u) => (d.current.includes(u) || d.current.push(u), () => {
1801
- d.current = d.current.filter((v) => v !== u);
1892
+ }, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
1893
+ d.current = d.current.filter(($) => $ !== u);
1802
1894
  }), []);
1803
- return W(() => {
1804
- s && c((u) => u);
1805
- }, [s]), /* @__PURE__ */ o(Vt.Provider, { value: {
1806
- activeValue: s,
1807
- onSelect: x,
1895
+ return H(() => {
1896
+ o && c((u) => u);
1897
+ }, [o]), /* @__PURE__ */ r(Ne.Provider, { value: {
1898
+ activeValue: o,
1899
+ onSelect: l,
1808
1900
  expandedGroups: i,
1809
1901
  toggleGroup: a,
1810
1902
  registerItem: g,
1811
1903
  orderRef: d
1812
- }, children: /* @__PURE__ */ o("nav", { role: "navigation", ...l(k.nav, K.root), children: t }) });
1904
+ }, children: /* @__PURE__ */ r("nav", { role: "navigation", ...x(k.nav, U.root), children: e }) });
1813
1905
  }
1814
- function Ae({
1815
- children: t,
1816
- label: e,
1906
+ function Bt({
1907
+ children: e,
1908
+ label: t,
1817
1909
  groupKey: n,
1818
- defaultExpanded: r
1910
+ defaultExpanded: s
1819
1911
  }) {
1820
- const s = n ?? e, {
1821
- expandedGroups: x,
1912
+ const o = n ?? t, {
1913
+ expandedGroups: l,
1822
1914
  toggleGroup: i,
1823
1915
  activeValue: c
1824
- } = Ot(), d = x.has(s), a = w(null);
1825
- W(() => {
1826
- if (!c || x.has(s)) return;
1916
+ } = Oe(), d = l.has(o), a = w(null);
1917
+ H(() => {
1918
+ if (!c || l.has(o)) return;
1827
1919
  const u = a.current;
1828
1920
  if (!u) return;
1829
- u.querySelector(`[data-nav-value="${c}"]`) && i(s);
1830
- }, [c, s, x, i]), W(() => {
1831
- r && !x.has(s) && i(s);
1921
+ u.querySelector(`[data-nav-value="${c}"]`) && i(o);
1922
+ }, [c, o, l, i]), H(() => {
1923
+ s && !l.has(o) && i(o);
1832
1924
  }, []);
1833
1925
  const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
1834
- return /* @__PURE__ */ A("div", { ref: a, ...l(k.div, K.group), children: [
1835
- /* @__PURE__ */ A("button", { type: "button", onClick: () => i(s), ...l(k.button, K.groupTrigger, g && K.groupTriggerActive), "aria-expanded": d, children: [
1836
- /* @__PURE__ */ o("span", { ...l(k.span, K.chevron, d && K.chevronOpen), children: /* @__PURE__ */ o("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M9 18l6-6-6-6" }) }) }),
1837
- e
1926
+ return /* @__PURE__ */ z("div", { ref: a, ...x(k.div, U.group), children: [
1927
+ /* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...x(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
1928
+ /* @__PURE__ */ r("span", { ...x(k.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ r("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ r("path", { d: "M9 18l6-6-6-6" }) }) }),
1929
+ t
1838
1930
  ] }),
1839
- d && t
1931
+ d && e
1840
1932
  ] });
1841
1933
  }
1842
- function Ve({
1843
- value: t,
1844
- children: e
1934
+ function Dt({
1935
+ value: e,
1936
+ children: t
1845
1937
  }) {
1846
1938
  const {
1847
1939
  activeValue: n,
1848
- onSelect: r,
1849
- registerItem: s
1850
- } = Ot(), x = n === t;
1851
- return W(() => s(t), [t, s]), /* @__PURE__ */ o("button", { type: "button", "data-nav-value": t, onClick: () => r(t), ...l(k.button, K.item, x && K.itemActive), "aria-current": x ? "page" : void 0, children: e });
1940
+ onSelect: s,
1941
+ registerItem: o
1942
+ } = Oe(), l = n === e;
1943
+ return H(() => o(e), [e, o]), /* @__PURE__ */ r("button", { type: "button", "data-nav-value": e, onClick: () => s(e), ...x(k.button, U.item, l && U.itemActive), "aria-current": l ? "page" : void 0, children: t });
1852
1944
  }
1853
- const Vn = {
1854
- Root: Le,
1855
- Group: Ae,
1856
- Item: Ve
1857
- }, st = {
1945
+ const Bn = {
1946
+ Root: Ct,
1947
+ Group: Bt,
1948
+ Item: Dt
1949
+ }, se = {
1858
1950
  root: {
1859
1951
  k1xSpc: "x3nfvp2",
1860
1952
  kGNEyG: "x6s0dn4",
@@ -1898,21 +1990,21 @@ const Vn = {
1898
1990
  kMcinP: "xzpqnlu",
1899
1991
  $$css: !0
1900
1992
  }
1901
- }, Oe = {
1902
- sm: st.sm,
1903
- md: st.md,
1904
- lg: st.lg
1993
+ }, Rt = {
1994
+ sm: se.sm,
1995
+ md: se.md,
1996
+ lg: se.lg
1905
1997
  };
1906
- function On({
1907
- size: t = "md",
1908
- label: e = "Loading"
1998
+ function Dn({
1999
+ size: e = "md",
2000
+ label: t = "Loading"
1909
2001
  }) {
1910
- return /* @__PURE__ */ A("div", { role: "status", ...l(k.div, st.root), children: [
1911
- /* @__PURE__ */ o("div", { ...l(k.div, st.spinner, Oe[t]), "aria-hidden": !0 }),
1912
- /* @__PURE__ */ o("span", { ...l(k.span, st.srOnly), children: e })
2002
+ return /* @__PURE__ */ z("div", { role: "status", ...x(k.div, se.root), children: [
2003
+ /* @__PURE__ */ r("div", { ...x(k.div, se.spinner, Rt[e]), "aria-hidden": !0 }),
2004
+ /* @__PURE__ */ r("span", { ...x(k.span, se.srOnly), children: t })
1913
2005
  ] });
1914
2006
  }
1915
- const Mt = {
2007
+ const ze = {
1916
2008
  root: {
1917
2009
  k1xSpc: "x3nfvp2",
1918
2010
  kGNEyG: "x6s0dn4",
@@ -1932,44 +2024,26 @@ const Mt = {
1932
2024
  kMwMTN: "x1r3dmx3",
1933
2025
  $$css: !0
1934
2026
  },
2027
+ info: {
2028
+ kMwMTN: "x17v5lin",
2029
+ $$css: !0
2030
+ },
1935
2031
  muted: {
1936
2032
  kMwMTN: "x19e7f62",
1937
2033
  $$css: !0
1938
2034
  }
1939
- }, Ne = {
1940
- "x-circle": /* @__PURE__ */ A(_, { children: [
1941
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1942
- /* @__PURE__ */ o("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
1943
- /* @__PURE__ */ o("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
1944
- ] }),
1945
- "check-circle": /* @__PURE__ */ A(_, { children: [
1946
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1947
- /* @__PURE__ */ o("polyline", { points: "16 10 11 15 8 12" })
1948
- ] }),
1949
- "check-done": /* @__PURE__ */ A(_, { children: [
1950
- /* @__PURE__ */ o("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
1951
- /* @__PURE__ */ o("polyline", { points: "22 4 12 14.01 9 11.01" })
1952
- ] }),
1953
- clock: /* @__PURE__ */ A(_, { children: [
1954
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1955
- /* @__PURE__ */ o("polyline", { points: "12 6 12 12 16 14" })
1956
- ] }),
1957
- forbidden: /* @__PURE__ */ A(_, { children: [
1958
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1959
- /* @__PURE__ */ o("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
1960
- ] })
1961
2035
  };
1962
- function Nn({
1963
- name: t,
1964
- size: e = 48,
2036
+ function Rn({
2037
+ name: e,
2038
+ size: t = 48,
1965
2039
  variant: n = "muted"
1966
2040
  }) {
1967
- return /* @__PURE__ */ o("div", { ...l(k.div, Mt.root, Mt[n]), children: /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: e, height: e, children: Ne[t] }) });
2041
+ return /* @__PURE__ */ r("div", { ...x(k.div, ze.root, ze[n]), children: /* @__PURE__ */ r(ve, { name: e, size: t }) });
1968
2042
  }
1969
- const Be = {
2043
+ const Xt = {
1970
2044
  kumcoG: "xqketvx",
1971
2045
  $$css: !0
1972
- }, L = {
2046
+ }, V = {
1973
2047
  root: {
1974
2048
  kMzoRj: "xmkeg23",
1975
2049
  ksu8eU: "x1y0btm7",
@@ -2045,91 +2119,91 @@ const Be = {
2045
2119
  kWqL5O: "xgfja2r",
2046
2120
  $$css: !0
2047
2121
  },
2048
- gridColumns: (t) => [Be, {
2049
- "--x-gridTemplateColumns": `repeat(${t}, 1fr)` != null ? `repeat(${t}, 1fr)` : void 0
2122
+ gridColumns: (e) => [Xt, {
2123
+ "--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
2050
2124
  }]
2051
- }, Nt = C(null);
2052
- function dt() {
2053
- const t = N(Nt);
2054
- if (!t) throw new Error("Table compound components must be used within Table.Root");
2055
- return t;
2056
- }
2057
- const mt = C(!1);
2058
- function De({
2059
- children: t,
2060
- variant: e = "default",
2125
+ }, Ce = R(null);
2126
+ function ge() {
2127
+ const e = C(Ce);
2128
+ if (!e) throw new Error("Table compound components must be used within Table.Root");
2129
+ return e;
2130
+ }
2131
+ const ye = R(!1);
2132
+ function Yt({
2133
+ children: e,
2134
+ variant: t = "default",
2061
2135
  size: n = "md",
2062
- columns: r
2136
+ columns: s
2063
2137
  }) {
2064
- return /* @__PURE__ */ o(Nt.Provider, { value: {
2065
- variant: e,
2138
+ return /* @__PURE__ */ r(Ce.Provider, { value: {
2139
+ variant: t,
2066
2140
  size: n,
2067
- columns: r,
2141
+ columns: s,
2068
2142
  isHeader: !1
2069
- }, children: /* @__PURE__ */ o("div", { role: "table", ...l(k.div, L.root), children: t }) });
2143
+ }, children: /* @__PURE__ */ r("div", { role: "table", ...x(k.div, V.root), children: e }) });
2070
2144
  }
2071
- function Ce({
2072
- children: t
2145
+ function Jt({
2146
+ children: e
2073
2147
  }) {
2074
- return /* @__PURE__ */ o(mt.Provider, { value: !0, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div, L.header), children: t }) });
2148
+ return /* @__PURE__ */ r(ye.Provider, { value: !0, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div, V.header), children: e }) });
2075
2149
  }
2076
- function Re({
2077
- children: t
2150
+ function Pt({
2151
+ children: e
2078
2152
  }) {
2079
2153
  const {
2080
- variant: e
2081
- } = dt(), n = It.toArray(t);
2082
- return /* @__PURE__ */ o(mt.Provider, { value: !1, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div), children: n.map((r, s) => e === "striped" ? /* @__PURE__ */ o(Bt.Provider, { value: s, children: r }, s) : r) }) });
2154
+ variant: t
2155
+ } = ge(), n = qe.toArray(e);
2156
+ return /* @__PURE__ */ r(ye.Provider, { value: !1, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div), children: n.map((s, o) => t === "striped" ? /* @__PURE__ */ r(Be.Provider, { value: o, children: s }, o) : s) }) });
2083
2157
  }
2084
- const Bt = C(-1);
2085
- function Xe({
2086
- children: t
2158
+ const Be = R(-1);
2159
+ function Ft({
2160
+ children: e
2087
2161
  }) {
2088
2162
  const {
2089
- variant: e,
2163
+ variant: t,
2090
2164
  columns: n
2091
- } = dt(), r = N(mt), s = N(Bt), x = s >= 0 && s % 2 === 1, i = It.toArray(t);
2092
- return /* @__PURE__ */ o("div", { role: "row", ...l(k.div, L.row, L.gridColumns(n), !r && L.bodyRow, !r && e === "striped" && x && L.stripedEven), children: e === "bordered" ? i.map((c, d) => /* @__PURE__ */ o(bt.Provider, { value: {
2165
+ } = ge(), s = C(ye), o = C(Be), l = o >= 0 && o % 2 === 1, i = qe.toArray(e);
2166
+ return /* @__PURE__ */ r("div", { role: "row", ...x(k.div, V.row, V.gridColumns(n), !s && V.bodyRow, !s && t === "striped" && l && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ r(we.Provider, { value: {
2093
2167
  index: d,
2094
2168
  total: i.length
2095
- }, children: c }, d)) : t });
2169
+ }, children: c }, d)) : e });
2096
2170
  }
2097
- const bt = C({
2171
+ const we = R({
2098
2172
  index: 0,
2099
2173
  total: 0
2100
2174
  });
2101
- function Ye({
2102
- children: t
2175
+ function Qt({
2176
+ children: e
2103
2177
  }) {
2104
2178
  const {
2105
- size: e,
2179
+ size: t,
2106
2180
  variant: n
2107
- } = dt(), {
2108
- index: r,
2109
- total: s
2110
- } = N(bt), x = n === "bordered" && r === s - 1;
2111
- return /* @__PURE__ */ o("div", { role: "columnheader", ...l(k.div, L.headerCell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
2181
+ } = ge(), {
2182
+ index: s,
2183
+ total: o
2184
+ } = C(we), l = n === "bordered" && s === o - 1;
2185
+ return /* @__PURE__ */ r("div", { role: "columnheader", ...x(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2112
2186
  }
2113
- function Je({
2114
- children: t
2187
+ function Kt({
2188
+ children: e
2115
2189
  }) {
2116
2190
  const {
2117
- size: e,
2191
+ size: t,
2118
2192
  variant: n
2119
- } = dt(), {
2120
- index: r,
2121
- total: s
2122
- } = N(bt), x = n === "bordered" && r === s - 1;
2123
- return /* @__PURE__ */ o("div", { role: "cell", ...l(k.div, L.cell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
2124
- }
2125
- const Bn = {
2126
- Root: De,
2127
- Header: Ce,
2128
- Body: Re,
2129
- Row: Xe,
2130
- HeaderCell: Ye,
2131
- Cell: Je
2132
- }, R = {
2193
+ } = ge(), {
2194
+ index: s,
2195
+ total: o
2196
+ } = C(we), l = n === "bordered" && s === o - 1;
2197
+ return /* @__PURE__ */ r("div", { role: "cell", ...x(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2198
+ }
2199
+ const Xn = {
2200
+ Root: Yt,
2201
+ Header: Jt,
2202
+ Body: Pt,
2203
+ Row: Ft,
2204
+ HeaderCell: Qt,
2205
+ Cell: Kt
2206
+ }, X = {
2133
2207
  root: {
2134
2208
  k1xSpc: "x78zum5",
2135
2209
  kXwgrk: "xdt5ytf",
@@ -2217,71 +2291,71 @@ const Bn = {
2217
2291
  kE3dHu: "x107tsa6",
2218
2292
  $$css: !0
2219
2293
  }
2220
- }, Dt = C(null);
2221
- function yt() {
2222
- const t = N(Dt);
2223
- if (!t) throw new Error("Tabs compound components must be used within Tabs.Root");
2224
- return t;
2294
+ }, De = R(null);
2295
+ function Se() {
2296
+ const e = C(De);
2297
+ if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
2298
+ return e;
2225
2299
  }
2226
- function Pe({
2227
- value: t,
2228
- defaultValue: e,
2300
+ function Ut({
2301
+ value: e,
2302
+ defaultValue: t,
2229
2303
  onValueChange: n,
2230
- orientation: r = "horizontal"
2304
+ orientation: s = "horizontal"
2231
2305
  }) {
2232
- const [s, x] = vt(t, e ?? null, n ? (a) => {
2306
+ const [o, l] = be(e, t ?? null, n ? (a) => {
2233
2307
  a !== null && n(a);
2234
- } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = q((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
2308
+ } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = W((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
2235
2309
  i.current.delete(a), c.current = c.current.filter((u) => u !== a);
2236
2310
  }), []);
2237
2311
  return {
2238
- activeValue: s,
2239
- onSelect: x,
2240
- orientation: r,
2312
+ activeValue: o,
2313
+ onSelect: l,
2314
+ orientation: s,
2241
2315
  registerTab: d,
2242
2316
  tabsRef: i,
2243
2317
  orderRef: c
2244
2318
  };
2245
2319
  }
2246
- function Fe({
2247
- children: t,
2248
- value: e,
2320
+ function _t({
2321
+ children: e,
2322
+ value: t,
2249
2323
  defaultValue: n,
2250
- onValueChange: r,
2251
- orientation: s = "horizontal"
2324
+ onValueChange: s,
2325
+ orientation: o = "horizontal"
2252
2326
  }) {
2253
- const x = Pe({
2254
- value: e,
2327
+ const l = Ut({
2328
+ value: t,
2255
2329
  defaultValue: n,
2256
- onValueChange: r,
2257
- orientation: s
2330
+ onValueChange: s,
2331
+ orientation: o
2258
2332
  });
2259
- return /* @__PURE__ */ o(Dt.Provider, { value: x, children: /* @__PURE__ */ o("div", { ...l(k.div, R.root, s === "vertical" && R.rootVertical), children: t }) });
2333
+ return /* @__PURE__ */ r(De.Provider, { value: l, children: /* @__PURE__ */ r("div", { ...x(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
2260
2334
  }
2261
- function Qe({
2262
- children: t
2335
+ function Zt({
2336
+ children: e
2263
2337
  }) {
2264
2338
  const {
2265
- orientation: e,
2339
+ orientation: t,
2266
2340
  activeValue: n,
2267
- onSelect: r,
2268
- tabsRef: s,
2269
- orderRef: x
2270
- } = yt(), i = w(null);
2271
- return W(() => {
2341
+ onSelect: s,
2342
+ tabsRef: o,
2343
+ orderRef: l
2344
+ } = Se(), i = w(null);
2345
+ return H(() => {
2272
2346
  const c = i.current;
2273
2347
  if (!c) return;
2274
2348
  function d(a) {
2275
- const g = x.current, u = s.current;
2349
+ const g = l.current, u = o.current;
2276
2350
  if (g.length === 0) return;
2277
- const v = this, S = e === "horizontal" ? "ArrowLeft" : "ArrowUp", h = e === "horizontal" ? "ArrowRight" : "ArrowDown";
2351
+ const $ = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2278
2352
  let m = null;
2279
2353
  switch (a.key) {
2280
- case h: {
2354
+ case p: {
2281
2355
  a.preventDefault();
2282
2356
  const f = n ? g.indexOf(n) : -1;
2283
- for (let $ = 1; $ <= g.length; $++) {
2284
- const p = (f + $) % g.length, b = g[p];
2357
+ for (let v = 1; v <= g.length; v++) {
2358
+ const h = (f + v) % g.length, b = g[h];
2285
2359
  if (!u.get(b)) {
2286
2360
  m = b;
2287
2361
  break;
@@ -2292,8 +2366,8 @@ function Qe({
2292
2366
  case S: {
2293
2367
  a.preventDefault();
2294
2368
  const f = n ? g.indexOf(n) : 0;
2295
- for (let $ = 1; $ <= g.length; $++) {
2296
- const p = (f - $ + g.length) % g.length, b = g[p];
2369
+ for (let v = 1; v <= g.length; v++) {
2370
+ const h = (f - v + g.length) % g.length, b = g[h];
2297
2371
  if (!u.get(b)) {
2298
2372
  m = b;
2299
2373
  break;
@@ -2320,42 +2394,42 @@ function Qe({
2320
2394
  break;
2321
2395
  }
2322
2396
  }
2323
- m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
2397
+ m && (s(m), $.querySelector(`[data-tab-value="${m}"]`)?.focus());
2324
2398
  }
2325
2399
  return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
2326
- }, [e, n, r, s, x]), /* @__PURE__ */ o("div", { ref: i, role: "tablist", "aria-orientation": e, ...l(k.div, R.list, e === "vertical" && R.listVertical), children: t });
2400
+ }, [t, n, s, o, l]), /* @__PURE__ */ r("div", { ref: i, role: "tablist", "aria-orientation": t, ...x(k.div, X.list, t === "vertical" && X.listVertical), children: e });
2327
2401
  }
2328
- function Ke({
2329
- value: t,
2330
- disabled: e = !1,
2402
+ function en({
2403
+ value: e,
2404
+ disabled: t = !1,
2331
2405
  children: n
2332
2406
  }) {
2333
2407
  const {
2334
- activeValue: r,
2335
- onSelect: s,
2336
- orientation: x,
2408
+ activeValue: s,
2409
+ onSelect: o,
2410
+ orientation: l,
2337
2411
  registerTab: i
2338
- } = yt(), c = r === t, d = U(), a = `${d}-panel`;
2339
- return W(() => i(t, e), [t, e, i]), /* @__PURE__ */ o("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: c ? 0 : -1, onClick: () => {
2340
- e || s(t);
2341
- }, ...l(k.button, R.tab, x === "vertical" && R.tabVertical, c && (x === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), e && R.tabDisabled), children: n });
2412
+ } = Se(), c = s === e, d = _(), a = `${d}-panel`;
2413
+ return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ r("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2414
+ t || o(e);
2415
+ }, ...x(k.button, X.tab, l === "vertical" && X.tabVertical, c && (l === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
2342
2416
  }
2343
- function Ue({
2344
- value: t,
2345
- children: e
2417
+ function tn({
2418
+ value: e,
2419
+ children: t
2346
2420
  }) {
2347
2421
  const {
2348
2422
  activeValue: n,
2349
- orientation: r
2350
- } = yt();
2351
- return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...l(k.div, R.panel, r === "vertical" && R.panelVertical), children: e });
2352
- }
2353
- const Dn = {
2354
- Root: Fe,
2355
- List: Qe,
2356
- Tab: Ke,
2357
- Panel: Ue
2358
- }, zt = {
2423
+ orientation: s
2424
+ } = Se();
2425
+ return n !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", ...x(k.div, X.panel, s === "vertical" && X.panelVertical), children: t });
2426
+ }
2427
+ const Yn = {
2428
+ Root: _t,
2429
+ List: Zt,
2430
+ Tab: en,
2431
+ Panel: tn
2432
+ }, Ie = {
2359
2433
  base: {
2360
2434
  kzqmXN: "xh8yej3",
2361
2435
  kLKAdn: "x1y6gaq4",
@@ -2389,21 +2463,21 @@ const Dn = {
2389
2463
  $$css: !0
2390
2464
  }
2391
2465
  };
2392
- function Cn({
2393
- variant: t = "default",
2394
- name: e,
2466
+ function Jn({
2467
+ variant: e = "default",
2468
+ name: t,
2395
2469
  placeholder: n,
2396
- required: r,
2397
- rows: s = 3,
2398
- value: x,
2470
+ required: s,
2471
+ rows: o = 3,
2472
+ value: l,
2399
2473
  defaultValue: i,
2400
2474
  disabled: c,
2401
2475
  onChange: d
2402
2476
  }) {
2403
- const a = it();
2404
- return /* @__PURE__ */ o("textarea", { id: a?.controlId, name: e, placeholder: n, required: r, rows: s, value: x, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || t === "error" || void 0, onChange: d, ...l(k.textarea, zt.base, zt[t]), dir: "auto" });
2477
+ const a = ie();
2478
+ return /* @__PURE__ */ r("textarea", { id: a?.controlId, name: t, placeholder: n, required: s, rows: o, value: l, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...x(k.textarea, Ie.base, Ie[e]), dir: "auto" });
2405
2479
  }
2406
- const Rn = {
2480
+ const Pn = {
2407
2481
  bg: "var(--bg-xqkwqtp)",
2408
2482
  bgCard: "var(--bgCard-xj2l5r)",
2409
2483
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -2427,11 +2501,12 @@ const Rn = {
2427
2501
  warningBg: "var(--warningBg-xtnxqss)",
2428
2502
  warningBorder: "var(--warningBorder-x1ev2mr5)",
2429
2503
  warningText: "var(--warningText-x1lgjghx)",
2504
+ info: "var(--info-x97ho0r)",
2430
2505
  infoBg: "var(--infoBg-xho8jir)",
2431
2506
  infoBorder: "var(--infoBorder-xnevk3x)",
2432
2507
  infoText: "var(--infoText-x19pseus)",
2433
2508
  __varGroupHash__: "xjvd03b"
2434
- }, Xn = {
2509
+ }, Fn = {
2435
2510
  xs: "var(--xs-xxfyjsd)",
2436
2511
  sm: "var(--sm-xbh8y7f)",
2437
2512
  ms: "var(--ms-x13y09zs)",
@@ -2441,13 +2516,13 @@ const Rn = {
2441
2516
  xxl: "var(--xxl-xbe9eha)",
2442
2517
  xxxl: "var(--xxxl-xroalp5)",
2443
2518
  __varGroupHash__: "x6uc9q"
2444
- }, Yn = {
2519
+ }, Qn = {
2445
2520
  sm: "var(--sm-x1bhtfs5)",
2446
2521
  md: "var(--md-xx2g89g)",
2447
2522
  lg: "var(--lg-xwd56yl)",
2448
2523
  full: "var(--full-x9vxdtd)",
2449
2524
  __varGroupHash__: "xw3ffwm"
2450
- }, Jn = {
2525
+ }, Kn = {
2451
2526
  stackXs: "var(--stackXs-x1qfrfo2)",
2452
2527
  stackSm: "var(--stackSm-x2rk1ut)",
2453
2528
  stackMd: "var(--stackMd-xhblkt4)",
@@ -2461,7 +2536,7 @@ const Rn = {
2461
2536
  containerMd: "var(--containerMd-x170dvin)",
2462
2537
  containerLg: "var(--containerLg-x1n6aasq)",
2463
2538
  __varGroupHash__: "x16nfoyr"
2464
- }, Pn = {
2539
+ }, Un = {
2465
2540
  fontFamily: "var(--fontFamily-xvrmnat)",
2466
2541
  fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
2467
2542
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
@@ -2476,7 +2551,7 @@ const Rn = {
2476
2551
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
2477
2552
  lineHeight: "var(--lineHeight-x1gubzd5)",
2478
2553
  __varGroupHash__: "xs62swl"
2479
- }, Fn = {
2554
+ }, _n = {
2480
2555
  fontSize1: "var(--fontSize1-xx27tux)",
2481
2556
  fontSize2: "var(--fontSize2-x5hag8h)",
2482
2557
  fontSize3: "var(--fontSize3-x1mf6j39)",
@@ -2502,7 +2577,7 @@ const Rn = {
2502
2577
  letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
2503
2578
  letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
2504
2579
  __varGroupHash__: "x4cj49w"
2505
- }, Qn = {
2580
+ }, Zn = {
2506
2581
  bodySm: {
2507
2582
  "fontFamily-kMv6JI": "fontFamily-xce2pww",
2508
2583
  "fontSize-kGuDYH": "fontSize-x1hn3ytp",
@@ -2616,40 +2691,40 @@ const Rn = {
2616
2691
  "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
2617
2692
  $$css: "tokens/type-presets.css.ts:104"
2618
2693
  }
2619
- }, Kn = {
2694
+ }, er = {
2620
2695
  sm: "var(--sm-x17hhtln)",
2621
2696
  md: "var(--md-x1oyt0aw)",
2622
2697
  lg: "var(--lg-x1mxd62i)",
2623
2698
  __varGroupHash__: "x13v825q"
2624
- }, _e = {
2625
- xjvd03b: "x18itf25 xjvd03b",
2699
+ }, nn = {
2700
+ xjvd03b: "xrtwk39 xjvd03b",
2626
2701
  $$css: !0
2627
- }, Ze = {
2702
+ }, rn = {
2628
2703
  x13v825q: "xv9ibj0 x13v825q",
2629
2704
  $$css: !0
2630
- }, tn = {
2631
- xjvd03b: "x1qgt5a2 xjvd03b",
2705
+ }, sn = {
2706
+ xjvd03b: "xaveibd xjvd03b",
2632
2707
  $$css: !0
2633
- }, en = {
2708
+ }, on = {
2634
2709
  x13v825q: "x15e39jv x13v825q",
2635
2710
  $$css: !0
2636
- }, nn = {
2637
- light: [_e, Ze],
2638
- "high-contrast": [tn, en]
2639
- }, rn = {
2711
+ }, cn = {
2712
+ light: [nn, rn],
2713
+ "high-contrast": [sn, on]
2714
+ }, ln = {
2640
2715
  root: {
2641
2716
  k1xSpc: "xjp7ctv",
2642
2717
  $$css: !0
2643
2718
  }
2644
2719
  };
2645
- function Un({
2646
- theme: t = "dark",
2647
- children: e
2720
+ function tr({
2721
+ theme: e = "dark",
2722
+ children: t
2648
2723
  }) {
2649
- const n = nn[t], r = [n?.[0], n?.[1], rn.root];
2650
- return /* @__PURE__ */ o("div", { ...l(k.div, r), children: e });
2724
+ const n = cn[e], s = [n?.[0], n?.[1], ln.root];
2725
+ return /* @__PURE__ */ r("div", { ...x(k.div, s), children: t });
2651
2726
  }
2652
- const P = {
2727
+ const F = {
2653
2728
  default: {
2654
2729
  kMwMTN: "xg6mlj0",
2655
2730
  $$css: !0
@@ -2708,29 +2783,29 @@ const P = {
2708
2783
  khDVqt: "xuxw1ft",
2709
2784
  $$css: !0
2710
2785
  }
2711
- }, sn = {
2712
- normal: P.weightNormal,
2713
- medium: P.weightMedium,
2714
- semibold: P.weightSemibold,
2715
- bold: P.weightBold
2716
- }, on = {
2717
- start: P.alignStart,
2718
- center: P.alignCenter,
2719
- end: P.alignEnd
2786
+ }, xn = {
2787
+ normal: F.weightNormal,
2788
+ medium: F.weightMedium,
2789
+ semibold: F.weightSemibold,
2790
+ bold: F.weightBold
2791
+ }, kn = {
2792
+ start: F.alignStart,
2793
+ center: F.alignCenter,
2794
+ end: F.alignEnd
2720
2795
  };
2721
- function _n({
2722
- variant: t = "bodyMd",
2723
- color: e = "default",
2796
+ function nr({
2797
+ variant: e = "bodyMd",
2798
+ color: t = "default",
2724
2799
  weight: n,
2725
- align: r,
2726
- truncate: s,
2727
- as: x = "span",
2800
+ align: s,
2801
+ truncate: o,
2802
+ as: l = "span",
2728
2803
  children: i
2729
2804
  }) {
2730
- const c = [Ht[t], P[e], n && sn[n], r && on[r], s && P.truncate];
2731
- return x === "p" ? /* @__PURE__ */ o("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ o("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ o("span", { ...l(k.span, c), children: i });
2805
+ const c = [Ge[e], F[t], n && xn[n], s && kn[s], o && F.truncate];
2806
+ return l === "p" ? /* @__PURE__ */ r("p", { ...x(k.p, c), children: i }) : l === "div" ? /* @__PURE__ */ r("div", { ...x(k.div, c), children: i }) : /* @__PURE__ */ r("span", { ...x(k.span, c), children: i });
2732
2807
  }
2733
- const ht = {
2808
+ const fe = {
2734
2809
  root: {
2735
2810
  kVAEAm: "x1n2onr6",
2736
2811
  k1xSpc: "x3nfvp2",
@@ -2785,48 +2860,48 @@ const ht = {
2785
2860
  koQZXg: "xzhl4zu",
2786
2861
  $$css: !0
2787
2862
  }
2788
- }, Ct = C(null);
2789
- function cn() {
2790
- const t = N(Ct);
2791
- if (!t) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2792
- return t;
2793
- }
2794
- function xn({
2795
- children: t,
2796
- content: e,
2863
+ }, Re = R(null);
2864
+ function an() {
2865
+ const e = C(Re);
2866
+ if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2867
+ return e;
2868
+ }
2869
+ function un({
2870
+ children: e,
2871
+ content: t,
2797
2872
  placement: n = "top",
2798
- delay: r = 300
2873
+ delay: s = 300
2799
2874
  }) {
2800
- const [s, x] = H(!1), i = U(), c = w(null), d = q(() => {
2801
- c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
2802
- }, [r]), a = q(() => {
2803
- c.current && clearTimeout(c.current), c.current = null, x(!1);
2875
+ const [o, l] = G(!1), i = _(), c = w(null), d = W(() => {
2876
+ c.current && clearTimeout(c.current), c.current = setTimeout(() => l(!0), s);
2877
+ }, [s]), a = W(() => {
2878
+ c.current && clearTimeout(c.current), c.current = null, l(!1);
2804
2879
  }, []);
2805
- return /* @__PURE__ */ o(Ct.Provider, { value: {
2806
- open: s,
2880
+ return /* @__PURE__ */ r(Re.Provider, { value: {
2881
+ open: o,
2807
2882
  show: d,
2808
2883
  hide: a,
2809
2884
  tooltipId: i,
2810
2885
  placement: n
2811
- }, children: /* @__PURE__ */ A("div", { ...l(k.div, ht.root), children: [
2812
- t,
2813
- s && /* @__PURE__ */ o("div", { id: i, role: "tooltip", ...l(k.div, ht.popup, ht[n]), children: e })
2886
+ }, children: /* @__PURE__ */ z("div", { ...x(k.div, fe.root), children: [
2887
+ e,
2888
+ o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(k.div, fe.popup, fe[n]), children: t })
2814
2889
  ] }) });
2815
2890
  }
2816
- function ln({
2817
- children: t
2891
+ function dn({
2892
+ children: e
2818
2893
  }) {
2819
2894
  const {
2820
- open: e,
2895
+ open: t,
2821
2896
  show: n,
2822
- hide: r,
2823
- tooltipId: s
2824
- } = cn();
2825
- return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...l(k.div), children: t });
2826
- }
2827
- const Zn = {
2828
- Root: xn,
2829
- Trigger: ln
2897
+ hide: s,
2898
+ tooltipId: o
2899
+ } = an();
2900
+ return /* @__PURE__ */ r("div", { onPointerEnter: n, onPointerLeave: s, onFocus: n, onBlur: s, "aria-describedby": t ? o : void 0, ...x(k.div), children: e });
2901
+ }
2902
+ const rr = {
2903
+ Root: un,
2904
+ Trigger: dn
2830
2905
  }, O = {
2831
2906
  base: {
2832
2907
  k1xSpc: "x78zum5",
@@ -2881,7 +2956,7 @@ const Zn = {
2881
2956
  kOIVth: "x281kem",
2882
2957
  $$css: !0
2883
2958
  }
2884
- }, kn = {
2959
+ }, gn = {
2885
2960
  xs: O.gapXs,
2886
2961
  sm: O.gapSm,
2887
2962
  ms: O.gapMs,
@@ -2890,20 +2965,20 @@ const Zn = {
2890
2965
  xl: O.gapXl,
2891
2966
  xxl: O.gapXxl,
2892
2967
  xxxl: O.gapXxxl
2893
- }, an = {
2968
+ }, hn = {
2894
2969
  start: O.alignStart,
2895
2970
  center: O.alignCenter,
2896
2971
  end: O.alignEnd,
2897
2972
  stretch: O.alignStretch
2898
2973
  };
2899
- function tr({
2900
- gap: t = "md",
2901
- align: e = "stretch",
2974
+ function sr({
2975
+ gap: e = "md",
2976
+ align: t = "stretch",
2902
2977
  children: n
2903
2978
  }) {
2904
- return /* @__PURE__ */ o("div", { ...l(k.div, O.base, kn[t], an[e]), children: n });
2979
+ return /* @__PURE__ */ r("div", { ...x(k.div, O.base, gn[e], hn[t]), children: n });
2905
2980
  }
2906
- const I = {
2981
+ const q = {
2907
2982
  base: {
2908
2983
  k1xSpc: "x78zum5",
2909
2984
  kXwgrk: "x1q0g3np",
@@ -2978,34 +3053,34 @@ const I = {
2978
3053
  kOIVth: "x281kem",
2979
3054
  $$css: !0
2980
3055
  }
2981
- }, un = {
2982
- xs: I.gapXs,
2983
- sm: I.gapSm,
2984
- ms: I.gapMs,
2985
- md: I.gapMd,
2986
- lg: I.gapLg,
2987
- xl: I.gapXl,
2988
- xxl: I.gapXxl,
2989
- xxxl: I.gapXxxl
2990
- }, dn = {
2991
- start: I.alignStart,
2992
- center: I.alignCenter,
2993
- end: I.alignEnd,
2994
- baseline: I.alignBaseline,
2995
- stretch: I.alignStretch
2996
- }, gn = {
2997
- start: I.justifyStart,
2998
- center: I.justifyCenter,
2999
- end: I.justifyEnd,
3000
- between: I.justifyBetween
3056
+ }, pn = {
3057
+ xs: q.gapXs,
3058
+ sm: q.gapSm,
3059
+ ms: q.gapMs,
3060
+ md: q.gapMd,
3061
+ lg: q.gapLg,
3062
+ xl: q.gapXl,
3063
+ xxl: q.gapXxl,
3064
+ xxxl: q.gapXxxl
3065
+ }, fn = {
3066
+ start: q.alignStart,
3067
+ center: q.alignCenter,
3068
+ end: q.alignEnd,
3069
+ baseline: q.alignBaseline,
3070
+ stretch: q.alignStretch
3071
+ }, vn = {
3072
+ start: q.justifyStart,
3073
+ center: q.justifyCenter,
3074
+ end: q.justifyEnd,
3075
+ between: q.justifyBetween
3001
3076
  };
3002
- function er({
3003
- gap: t = "sm",
3004
- align: e = "center",
3077
+ function or({
3078
+ gap: e = "sm",
3079
+ align: t = "center",
3005
3080
  justify: n = "start",
3006
- children: r
3081
+ children: s
3007
3082
  }) {
3008
- return /* @__PURE__ */ o("div", { ...l(k.div, I.base, un[t], dn[e], gn[n]), children: r });
3083
+ return /* @__PURE__ */ r("div", { ...x(k.div, q.base, pn[e], fn[t], vn[n]), children: s });
3009
3084
  }
3010
3085
  const T = {
3011
3086
  base: {
@@ -3074,7 +3149,7 @@ const T = {
3074
3149
  kOIVth: "x281kem",
3075
3150
  $$css: !0
3076
3151
  }
3077
- }, pn = {
3152
+ }, $n = {
3078
3153
  xs: T.gapXs,
3079
3154
  sm: T.gapSm,
3080
3155
  ms: T.gapMs,
@@ -3083,25 +3158,25 @@ const T = {
3083
3158
  xl: T.gapXl,
3084
3159
  xxl: T.gapXxl,
3085
3160
  xxxl: T.gapXxxl
3086
- }, hn = {
3161
+ }, mn = {
3087
3162
  start: T.alignStart,
3088
3163
  center: T.alignCenter,
3089
3164
  end: T.alignEnd
3090
- }, fn = {
3165
+ }, bn = {
3091
3166
  start: T.justifyStart,
3092
3167
  center: T.justifyCenter,
3093
3168
  end: T.justifyEnd,
3094
3169
  between: T.justifyBetween
3095
3170
  };
3096
- function nr({
3097
- gap: t = "sm",
3098
- align: e = "start",
3171
+ function ir({
3172
+ gap: e = "sm",
3173
+ align: t = "start",
3099
3174
  justify: n = "start",
3100
- children: r
3175
+ children: s
3101
3176
  }) {
3102
- return /* @__PURE__ */ o("div", { ...l(k.div, T.base, pn[t], hn[e], fn[n]), children: r });
3177
+ return /* @__PURE__ */ r("div", { ...x(k.div, T.base, $n[e], mn[t], bn[n]), children: s });
3103
3178
  }
3104
- const $n = {
3179
+ const yn = {
3105
3180
  kumcoG: "xqketvx",
3106
3181
  $$css: !0
3107
3182
  }, E = {
@@ -3133,8 +3208,8 @@ const $n = {
3133
3208
  kumcoG: "xu4o1vd",
3134
3209
  $$css: !0
3135
3210
  },
3136
- autoFit: (t) => [$n, {
3137
- "--x-gridTemplateColumns": `repeat(auto-fit, minmax(${t}, 1fr))` != null ? `repeat(auto-fit, minmax(${t}, 1fr))` : void 0
3211
+ autoFit: (e) => [yn, {
3212
+ "--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
3138
3213
  }],
3139
3214
  gapXs: {
3140
3215
  kOIVth: "xfrqhcj",
@@ -3168,7 +3243,7 @@ const $n = {
3168
3243
  kOIVth: "x281kem",
3169
3244
  $$css: !0
3170
3245
  }
3171
- }, vn = {
3246
+ }, wn = {
3172
3247
  xs: E.gapXs,
3173
3248
  sm: E.gapSm,
3174
3249
  ms: E.gapMs,
@@ -3177,7 +3252,7 @@ const $n = {
3177
3252
  xl: E.gapXl,
3178
3253
  xxl: E.gapXxl,
3179
3254
  xxxl: E.gapXxxl
3180
- }, mn = {
3255
+ }, Sn = {
3181
3256
  1: E.col1,
3182
3257
  2: E.col2,
3183
3258
  3: E.col3,
@@ -3185,22 +3260,22 @@ const $n = {
3185
3260
  5: E.col5,
3186
3261
  6: E.col6
3187
3262
  };
3188
- function rr({
3189
- gap: t = "md",
3190
- columns: e,
3263
+ function cr({
3264
+ gap: e = "md",
3265
+ columns: t,
3191
3266
  minColumnWidth: n,
3192
- children: r
3267
+ children: s
3193
3268
  }) {
3194
- const s = n ? E.autoFit(n) : e ? mn[e] : void 0;
3195
- return /* @__PURE__ */ o("div", { ...l(k.div, E.base, vn[t], s), children: r });
3269
+ const o = n ? E.autoFit(n) : t ? Sn[t] : void 0;
3270
+ return /* @__PURE__ */ r("div", { ...x(k.div, E.base, wn[e], o), children: s });
3196
3271
  }
3197
- function sr(t = {}) {
3272
+ function lr(e = {}) {
3198
3273
  const {
3199
- compactBelow: e = 480,
3274
+ compactBelow: t = 480,
3200
3275
  spaciousAbove: n = 768
3201
- } = t, r = w(null), [s, x] = H("default");
3202
- return W(() => {
3203
- const i = r.current;
3276
+ } = e, s = w(null), [o, l] = G("default");
3277
+ return H(() => {
3278
+ const i = s.current;
3204
3279
  if (!i) return;
3205
3280
  let c = null;
3206
3281
  const d = new ResizeObserver((a) => {
@@ -3208,57 +3283,58 @@ function sr(t = {}) {
3208
3283
  const g = a[0];
3209
3284
  if (!g) return;
3210
3285
  const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
3211
- u < e ? x("compact") : u >= n ? x("spacious") : x("default");
3286
+ u < t ? l("compact") : u >= n ? l("spacious") : l("default");
3212
3287
  });
3213
3288
  });
3214
3289
  return d.observe(i), () => {
3215
3290
  d.disconnect(), c !== null && cancelAnimationFrame(c);
3216
3291
  };
3217
- }, [e, n]), {
3218
- ref: r,
3219
- size: s
3292
+ }, [t, n]), {
3293
+ ref: s,
3294
+ size: o
3220
3295
  };
3221
3296
  }
3222
3297
  export {
3223
- wn as Alert,
3224
- Sn as Badge,
3225
- jn as Button,
3226
- Mn as Card,
3227
- zn as Checkbox,
3228
- nr as Cluster,
3229
- In as EmptyState,
3230
- Wn as Field,
3231
- rr as Grid,
3232
- qn as Heading,
3233
- er as Inline,
3234
- Hn as Input,
3235
- Gn as InputGroup,
3236
- Tn as LinkButton,
3237
- En as Menu,
3238
- Ln as ScrollArea,
3239
- An as Select,
3240
- Vn as SideNav,
3241
- On as Spinner,
3242
- tr as Stack,
3243
- Nn as StatusIcon,
3244
- Bn as Table,
3245
- Dn as Tabs,
3246
- _n as Text,
3247
- Cn as Textarea,
3248
- Un as ThemeProvider,
3249
- Zn as Tooltip,
3250
- Rn as colors,
3251
- en as highContrastShadows,
3252
- tn as highContrastTheme,
3253
- Jn as layoutSpacing,
3254
- Ze as lightShadows,
3255
- _e as lightTheme,
3256
- Yn as radii,
3257
- Kn as shadows,
3258
- Xn as spacing,
3259
- Qn as typePresets,
3260
- Fn as typeScale,
3261
- Pn as typography,
3262
- sr as useContainerQuery
3298
+ zn as Alert,
3299
+ In as Badge,
3300
+ qn as Button,
3301
+ Wn as Card,
3302
+ Hn as Checkbox,
3303
+ ir as Cluster,
3304
+ Gn as EmptyState,
3305
+ Tn as Field,
3306
+ cr as Grid,
3307
+ Ln as Heading,
3308
+ ve as Icon,
3309
+ or as Inline,
3310
+ En as Input,
3311
+ Vn as InputGroup,
3312
+ An as LinkButton,
3313
+ Nn as Menu,
3314
+ On as ScrollArea,
3315
+ Cn as Select,
3316
+ Bn as SideNav,
3317
+ Dn as Spinner,
3318
+ sr as Stack,
3319
+ Rn as StatusIcon,
3320
+ Xn as Table,
3321
+ Yn as Tabs,
3322
+ nr as Text,
3323
+ Jn as Textarea,
3324
+ tr as ThemeProvider,
3325
+ rr as Tooltip,
3326
+ Pn as colors,
3327
+ on as highContrastShadows,
3328
+ sn as highContrastTheme,
3329
+ Kn as layoutSpacing,
3330
+ rn as lightShadows,
3331
+ nn as lightTheme,
3332
+ Qn as radii,
3333
+ er as shadows,
3334
+ Fn as spacing,
3335
+ Zn as typePresets,
3336
+ _n as typeScale,
3337
+ Un as typography,
3338
+ lr as useContainerQuery
3263
3339
  };
3264
3340
  //# sourceMappingURL=index.js.map