vxui-react 1.2.7 → 1.2.8

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,31 +1,31 @@
1
1
  import { jsx as a, Fragment as ee, jsxs as k } from "react/jsx-runtime";
2
2
  import * as _ from "react";
3
- import ue, { useState as I, useEffect as z, useContext as ye, createContext as _e, forwardRef as ce, createElement as pt, useRef as B, useMemo as Ne, useId as fn, useLayoutEffect as mn, useCallback as Y } from "react";
4
- import * as hn from "react-dom";
3
+ import ue, { useState as I, useEffect as z, useContext as ye, createContext as _e, forwardRef as ce, createElement as pt, useRef as B, useMemo as Ne, useId as mn, useLayoutEffect as hn, useCallback as Y } from "react";
4
+ import * as gn from "react-dom";
5
5
  import jr, { createPortal as yt } from "react-dom";
6
6
  const Kr = 767, Vr = 1023;
7
- function Bt() {
7
+ function zt() {
8
8
  if (typeof window > "u") return "desktop";
9
9
  const e = window.innerWidth;
10
10
  return e <= Kr ? "phone" : e <= Vr ? "tablet" : "desktop";
11
11
  }
12
- const gn = _e({
12
+ const bn = _e({
13
13
  viewport: "desktop",
14
14
  isPhone: !1,
15
15
  isTablet: !1,
16
16
  isTabletPortrait: !1,
17
17
  isDesktop: !0
18
18
  });
19
- function zt() {
19
+ function Ut() {
20
20
  return typeof window > "u" ? !1 : window.innerHeight > window.innerWidth;
21
21
  }
22
- function Wi({ children: e }) {
23
- const [t, n] = I(Bt), [r, o] = I(zt);
22
+ function Hi({ children: e }) {
23
+ const [t, n] = I(zt), [r, o] = I(Ut);
24
24
  z(() => {
25
25
  const i = () => {
26
- const d = Bt();
26
+ const d = zt();
27
27
  n((u) => u === d ? u : d);
28
- const c = zt();
28
+ const c = Ut();
29
29
  o((u) => u === c ? u : c);
30
30
  };
31
31
  return window.addEventListener("resize", i, { passive: !0 }), () => window.removeEventListener("resize", i);
@@ -37,13 +37,13 @@ function Wi({ children: e }) {
37
37
  isTabletPortrait: s && r,
38
38
  isDesktop: t === "desktop"
39
39
  };
40
- return /* @__PURE__ */ a(gn.Provider, { value: l, children: e });
40
+ return /* @__PURE__ */ a(bn.Provider, { value: l, children: e });
41
41
  }
42
- function bn() {
43
- return ye(gn);
42
+ function xn() {
43
+ return ye(bn);
44
44
  }
45
- function Hi({ desktop: e, mobile: t, tablet: n }) {
46
- const { viewport: r } = bn();
45
+ function Gi({ desktop: e, mobile: t, tablet: n }) {
46
+ const { viewport: r } = xn();
47
47
  return r === "phone" ? /* @__PURE__ */ a(ee, { children: t }) : r === "tablet" ? /* @__PURE__ */ a(ee, { children: n ?? e }) : /* @__PURE__ */ a(ee, { children: e });
48
48
  }
49
49
  /**
@@ -55,10 +55,10 @@ function Hi({ desktop: e, mobile: t, tablet: n }) {
55
55
  const qr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yr = (e) => e.replace(
56
56
  /^([A-Z])|[\s-_]+(\w)/g,
57
57
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
58
- ), Ut = (e) => {
58
+ ), Wt = (e) => {
59
59
  const t = Yr(e);
60
60
  return t.charAt(0).toUpperCase() + t.slice(1);
61
- }, xn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Xr = (e) => {
61
+ }, yn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Xr = (e) => {
62
62
  for (const t in e)
63
63
  if (t.startsWith("aria-") || t === "role" || t === "title")
64
64
  return !0;
@@ -105,7 +105,7 @@ const Qr = ce(
105
105
  height: t,
106
106
  stroke: e,
107
107
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
108
- className: xn("lucide", o),
108
+ className: yn("lucide", o),
109
109
  ...!s && !Xr(i) && { "aria-hidden": "true" },
110
110
  ...i
111
111
  },
@@ -126,15 +126,15 @@ const J = (e, t) => {
126
126
  ({ className: r, ...o }, s) => pt(Qr, {
127
127
  ref: s,
128
128
  iconNode: t,
129
- className: xn(
130
- `lucide-${qr(Ut(e))}`,
129
+ className: yn(
130
+ `lucide-${qr(Wt(e))}`,
131
131
  `lucide-${e}`,
132
132
  r
133
133
  ),
134
134
  ...o
135
135
  })
136
136
  );
137
- return n.displayName = Ut(e), n;
137
+ return n.displayName = Wt(e), n;
138
138
  };
139
139
  /**
140
140
  * @license lucide-react v0.511.0 - ISC
@@ -149,21 +149,21 @@ const Jr = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ke = J("check",
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
151
  */
152
- const ea = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ee = J("chevron-down", ea);
152
+ const ea = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Te = J("chevron-down", ea);
153
153
  /**
154
154
  * @license lucide-react v0.511.0 - ISC
155
155
  *
156
156
  * This source code is licensed under the ISC license.
157
157
  * See the LICENSE file in the root directory of this source tree.
158
158
  */
159
- const ta = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], yn = J("chevron-left", ta);
159
+ const ta = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], _n = J("chevron-left", ta);
160
160
  /**
161
161
  * @license lucide-react v0.511.0 - ISC
162
162
  *
163
163
  * This source code is licensed under the ISC license.
164
164
  * See the LICENSE file in the root directory of this source tree.
165
165
  */
166
- const na = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Te = J("chevron-right", na);
166
+ const na = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ce = J("chevron-right", na);
167
167
  /**
168
168
  * @license lucide-react v0.511.0 - ISC
169
169
  *
@@ -237,7 +237,7 @@ const ma = [
237
237
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
238
238
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
239
239
  ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
240
- ], _n = J("panel-left-close", ma);
240
+ ], wn = J("panel-left-close", ma);
241
241
  /**
242
242
  * @license lucide-react v0.511.0 - ISC
243
243
  *
@@ -248,7 +248,7 @@ const ha = [
248
248
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
249
249
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
250
250
  ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
251
- ], wn = J("panel-left-open", ha);
251
+ ], kn = J("panel-left-open", ha);
252
252
  /**
253
253
  * @license lucide-react v0.511.0 - ISC
254
254
  *
@@ -287,6 +287,37 @@ const _a = [
287
287
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
288
288
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
289
289
  ], le = J("x", _a);
290
+ function _t(e, t, n = !0) {
291
+ z(() => {
292
+ const r = e.current, o = t.current;
293
+ if (!r) return;
294
+ if (!n || !o) {
295
+ r.dataset.scrollable = "false", r.dataset.scrollbarState = "hidden", r.style.setProperty("--vx-scrollbar-thumb-height", "0px"), r.style.setProperty("--vx-scrollbar-thumb-offset", "0px");
296
+ return;
297
+ }
298
+ let s;
299
+ const l = () => {
300
+ const u = o.scrollHeight > o.clientHeight + 1;
301
+ if (r.dataset.scrollable = u ? "true" : "false", !u) {
302
+ r.dataset.scrollbarState = "hidden", r.style.setProperty("--vx-scrollbar-thumb-height", "0px"), r.style.setProperty("--vx-scrollbar-thumb-offset", "0px");
303
+ return;
304
+ }
305
+ const p = Math.max(r.clientHeight - 16, 0), b = Math.max(o.clientHeight / o.scrollHeight * p, 36), w = o.scrollHeight - o.clientHeight, S = Math.max(p - b, 0), g = w > 0 ? o.scrollTop / w * S : 0;
306
+ r.style.setProperty("--vx-scrollbar-thumb-height", `${b}px`), r.style.setProperty("--vx-scrollbar-thumb-offset", `${g}px`), r.dataset.scrollbarState !== "active" && (r.dataset.scrollbarState = "hidden");
307
+ }, i = () => {
308
+ r.dataset.scrollable === "true" && (r.dataset.scrollbarState = "active", s !== void 0 && window.clearTimeout(s), s = window.setTimeout(() => {
309
+ r.dataset.scrollbarState = "hidden";
310
+ }, 640));
311
+ }, d = () => {
312
+ l(), i();
313
+ };
314
+ l(), o.addEventListener("scroll", d, { passive: !0 });
315
+ const c = new ResizeObserver(() => l());
316
+ return c.observe(r), c.observe(o), () => {
317
+ o.removeEventListener("scroll", d), c.disconnect(), s !== void 0 && window.clearTimeout(s);
318
+ };
319
+ }, [n, e, t]);
320
+ }
290
321
  function T(...e) {
291
322
  return e.filter(Boolean).join(" ");
292
323
  }
@@ -331,35 +362,8 @@ const xe = ce(function({
331
362
  }
332
363
  );
333
364
  }), vt = _e(!1);
334
- function kn(e, t) {
335
- z(() => {
336
- const n = e.current, r = t.current;
337
- if (!n || !r) return;
338
- let o;
339
- const s = () => {
340
- const c = r.scrollHeight > r.clientHeight + 1;
341
- if (n.dataset.scrollable = c ? "true" : "false", !c) {
342
- n.dataset.scrollbarState = "hidden", n.style.setProperty("--vx-scrollbar-thumb-height", "0px"), n.style.setProperty("--vx-scrollbar-thumb-offset", "0px");
343
- return;
344
- }
345
- const u = Math.max(n.clientHeight - 16, 0), p = Math.max(r.clientHeight / r.scrollHeight * u, 36), b = r.scrollHeight - r.clientHeight, w = Math.max(u - p, 0), S = b > 0 ? r.scrollTop / b * w : 0;
346
- n.style.setProperty("--vx-scrollbar-thumb-height", `${p}px`), n.style.setProperty("--vx-scrollbar-thumb-offset", `${S}px`), n.dataset.scrollbarState !== "active" && (n.dataset.scrollbarState = "hidden");
347
- }, l = () => {
348
- n.dataset.scrollable === "true" && (n.dataset.scrollbarState = "active", o !== void 0 && window.clearTimeout(o), o = window.setTimeout(() => {
349
- n.dataset.scrollbarState = "hidden";
350
- }, 640));
351
- }, i = () => {
352
- s(), l();
353
- };
354
- s(), r.addEventListener("scroll", i, { passive: !0 });
355
- const d = new ResizeObserver(() => s());
356
- return d.observe(n), d.observe(r), () => {
357
- r.removeEventListener("scroll", i), d.disconnect(), o !== void 0 && window.clearTimeout(o);
358
- };
359
- }, []);
360
- }
361
365
  function wa({ collapsed: e = !1, mobileNavOpen: t = !1, density: n, sidebarWidth: r, className: o, children: s }) {
362
- const { isTablet: l, isTabletPortrait: i } = bn(), d = r ? { "--vx-sidebar-width": typeof r == "number" ? `${r}px` : r } : void 0;
366
+ const { isTablet: l, isTabletPortrait: i } = xn(), d = r ? { "--vx-sidebar-width": typeof r == "number" ? `${r}px` : r } : void 0;
363
367
  return /* @__PURE__ */ a(vt.Provider, { value: e, children: /* @__PURE__ */ a(
364
368
  "div",
365
369
  {
@@ -387,7 +391,7 @@ function ka({
387
391
  children: c
388
392
  }) {
389
393
  const u = B(null), p = B(null);
390
- return kn(u, p), /* @__PURE__ */ k(
394
+ return _t(u, p), /* @__PURE__ */ k(
391
395
  "aside",
392
396
  {
393
397
  ref: u,
@@ -423,7 +427,7 @@ function ka({
423
427
  onClick: s,
424
428
  "aria-label": r ? i : l,
425
429
  children: [
426
- r ? /* @__PURE__ */ a(wn, { size: 16 }) : /* @__PURE__ */ a(_n, { size: 16 }),
430
+ r ? /* @__PURE__ */ a(kn, { size: 16 }) : /* @__PURE__ */ a(wn, { size: 16 }),
427
431
  /* @__PURE__ */ a("span", { className: "vx-sidebar__toggle-label", children: r ? i : l })
428
432
  ]
429
433
  }
@@ -474,7 +478,7 @@ function Ea({ label: e, icon: t, badge: n, trailing: r, active: o, onSelect: s,
474
478
  t ? /* @__PURE__ */ a("span", { className: "vx-nav-item__icon", children: t }) : null,
475
479
  /* @__PURE__ */ a("span", { className: "vx-nav-item__label", children: e }),
476
480
  n ? /* @__PURE__ */ a("span", { className: "vx-nav-item__badge", children: n }) : null,
477
- y ? /* @__PURE__ */ a(Te, { size: 14, className: T("vx-nav-item__chevron", d && "vx-nav-item__chevron--open") }) : r ? /* @__PURE__ */ a("span", { className: "vx-nav-item__trailing", children: r }) : null
481
+ y ? /* @__PURE__ */ a(Ce, { size: 14, className: T("vx-nav-item__chevron", d && "vx-nav-item__chevron--open") }) : r ? /* @__PURE__ */ a("span", { className: "vx-nav-item__trailing", children: r }) : null
478
482
  ]
479
483
  }
480
484
  );
@@ -541,7 +545,7 @@ const Aa = ce(function({
541
545
  className: "vx-topbar__menu",
542
546
  "aria-label": i,
543
547
  onClick: s,
544
- children: l ? /* @__PURE__ */ a(_n, { size: 16 }) : /* @__PURE__ */ a(wn, { size: 16 })
548
+ children: l ? /* @__PURE__ */ a(wn, { size: 16 }) : /* @__PURE__ */ a(kn, { size: 16 })
545
549
  }
546
550
  ) : null,
547
551
  /* @__PURE__ */ a("div", { className: "vx-topbar__title-group", children: r || /* @__PURE__ */ k("div", { children: [
@@ -553,7 +557,7 @@ const Aa = ce(function({
553
557
  });
554
558
  function Pa({ children: e }) {
555
559
  const t = B(null), n = B(null);
556
- return kn(t, n), /* @__PURE__ */ k(
560
+ return _t(t, n), /* @__PURE__ */ k(
557
561
  "div",
558
562
  {
559
563
  ref: (r) => {
@@ -571,7 +575,7 @@ function Pa({ children: e }) {
571
575
  }
572
576
  );
573
577
  }
574
- function Gi({
578
+ function ji({
575
579
  brand: e = "VXUI",
576
580
  brandCaption: t,
577
581
  brandIcon: n,
@@ -645,10 +649,10 @@ function Gi({
645
649
  ] })
646
650
  ] });
647
651
  }
648
- function ji({ className: e, variant: t = "neutral", ...n }) {
652
+ function Ki({ className: e, variant: t = "neutral", ...n }) {
649
653
  return /* @__PURE__ */ a("span", { className: T("vx-badge", `vx-badge--${t}`, e), ...n });
650
654
  }
651
- function Ki({ className: e, variant: t = "default", padding: n, hoverable: r = !1, ...o }) {
655
+ function Vi({ className: e, variant: t = "default", padding: n, hoverable: r = !1, ...o }) {
652
656
  return /* @__PURE__ */ a(
653
657
  "section",
654
658
  {
@@ -663,16 +667,16 @@ function Ki({ className: e, variant: t = "default", padding: n, hoverable: r = !
663
667
  }
664
668
  );
665
669
  }
666
- function Vi({ className: e, ...t }) {
670
+ function qi({ className: e, ...t }) {
667
671
  return /* @__PURE__ */ a("header", { className: T("vx-card__header", e), ...t });
668
672
  }
669
- function qi({ className: e, ...t }) {
673
+ function Yi({ className: e, ...t }) {
670
674
  return /* @__PURE__ */ a("h2", { className: T("vx-card__title", e), ...t });
671
675
  }
672
- function Yi({ className: e, ...t }) {
676
+ function Xi({ className: e, ...t }) {
673
677
  return /* @__PURE__ */ a("p", { className: T("vx-card__description", e), ...t });
674
678
  }
675
- function Xi({ className: e, ...t }) {
679
+ function Zi({ className: e, ...t }) {
676
680
  return /* @__PURE__ */ a("div", { className: T("vx-card__content", e), ...t });
677
681
  }
678
682
  function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
@@ -681,7 +685,7 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
681
685
  return t == null ? void 0 : t(o);
682
686
  };
683
687
  }
684
- function Wt(e, t) {
688
+ function Ht(e, t) {
685
689
  if (typeof e == "function")
686
690
  return e(t);
687
691
  e != null && (e.current = t);
@@ -690,14 +694,14 @@ function Nn(...e) {
690
694
  return (t) => {
691
695
  let n = !1;
692
696
  const r = e.map((o) => {
693
- const s = Wt(o, t);
697
+ const s = Ht(o, t);
694
698
  return !n && typeof s == "function" && (n = !0), s;
695
699
  });
696
700
  if (n)
697
701
  return () => {
698
702
  for (let o = 0; o < r.length; o++) {
699
703
  const s = r[o];
700
- typeof s == "function" ? s() : Wt(e[o], null);
704
+ typeof s == "function" ? s() : Ht(e[o], null);
701
705
  }
702
706
  };
703
707
  };
@@ -779,7 +783,7 @@ function Se(e) {
779
783
  }, [e]), e || (t ? `radix-${t}` : "");
780
784
  }
781
785
  var Ia = _[" useInsertionEffect ".trim().toString()] || pe;
782
- function Ce({
786
+ function Ae({
783
787
  prop: e,
784
788
  defaultProp: t,
785
789
  onChange: n = () => {
@@ -828,7 +832,7 @@ function $a(e) {
828
832
  return typeof e == "function";
829
833
  }
830
834
  // @__NO_SIDE_EFFECTS__
831
- function We(e) {
835
+ function He(e) {
832
836
  const t = /* @__PURE__ */ Oa(e), n = _.forwardRef((r, o) => {
833
837
  const { children: s, ...l } = r, i = _.Children.toArray(s), d = i.find(za);
834
838
  if (d) {
@@ -890,14 +894,14 @@ var Ha = [
890
894
  "svg",
891
895
  "ul"
892
896
  ], V = Ha.reduce((e, t) => {
893
- const n = /* @__PURE__ */ We(`Primitive.${t}`), r = _.forwardRef((o, s) => {
897
+ const n = /* @__PURE__ */ He(`Primitive.${t}`), r = _.forwardRef((o, s) => {
894
898
  const { asChild: l, ...i } = o, d = l ? n : t;
895
899
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a(d, { ...i, ref: s });
896
900
  });
897
901
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
898
902
  }, {});
899
903
  function Sn(e, t) {
900
- e && hn.flushSync(() => e.dispatchEvent(t));
904
+ e && gn.flushSync(() => e.dispatchEvent(t));
901
905
  }
902
906
  function oe(e) {
903
907
  const t = _.useRef(e);
@@ -917,11 +921,11 @@ function Ga(e, t = globalThis == null ? void 0 : globalThis.document) {
917
921
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
918
922
  }, [n, t]);
919
923
  }
920
- var ja = "DismissableLayer", ft = "dismissableLayer.update", Ka = "dismissableLayer.pointerDownOutside", Va = "dismissableLayer.focusOutside", Ht, En = _.createContext({
924
+ var ja = "DismissableLayer", ft = "dismissableLayer.update", Ka = "dismissableLayer.pointerDownOutside", Va = "dismissableLayer.focusOutside", Gt, En = _.createContext({
921
925
  layers: /* @__PURE__ */ new Set(),
922
926
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
923
927
  branches: /* @__PURE__ */ new Set()
924
- }), _t = _.forwardRef(
928
+ }), wt = _.forwardRef(
925
929
  (e, t) => {
926
930
  const {
927
931
  disableOutsidePointerEvents: n = !1,
@@ -942,11 +946,11 @@ var ja = "DismissableLayer", ft = "dismissableLayer.update", Ka = "dismissableLa
942
946
  v === c.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
943
947
  }, b), _.useEffect(() => {
944
948
  if (u)
945
- return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Ht = b.body.style.pointerEvents, b.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), Gt(), () => {
946
- n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (b.body.style.pointerEvents = Ht);
949
+ return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Gt = b.body.style.pointerEvents, b.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), jt(), () => {
950
+ n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (b.body.style.pointerEvents = Gt);
947
951
  };
948
952
  }, [u, b, n, c]), _.useEffect(() => () => {
949
- u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), Gt());
953
+ u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), jt());
950
954
  }, [u, c]), _.useEffect(() => {
951
955
  const E = () => w({});
952
956
  return document.addEventListener(ft, E), () => document.removeEventListener(ft, E);
@@ -969,7 +973,7 @@ var ja = "DismissableLayer", ft = "dismissableLayer.update", Ka = "dismissableLa
969
973
  );
970
974
  }
971
975
  );
972
- _t.displayName = ja;
976
+ wt.displayName = ja;
973
977
  var qa = "DismissableLayerBranch", Tn = _.forwardRef((e, t) => {
974
978
  const n = _.useContext(En), r = _.useRef(null), o = te(t, r);
975
979
  return _.useEffect(() => {
@@ -1025,7 +1029,7 @@ function Xa(e, t = globalThis == null ? void 0 : globalThis.document) {
1025
1029
  onBlurCapture: () => r.current = !1
1026
1030
  };
1027
1031
  }
1028
- function Gt() {
1032
+ function jt() {
1029
1033
  const e = new CustomEvent(ft);
1030
1034
  document.dispatchEvent(e);
1031
1035
  }
@@ -1033,7 +1037,7 @@ function Cn(e, t, n, { discrete: r }) {
1033
1037
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1034
1038
  t && o.addEventListener(e, t, { once: !0 }), r ? Sn(o, s) : o.dispatchEvent(s);
1035
1039
  }
1036
- var Za = _t, Qa = Tn, et = "focusScope.autoFocusOnMount", tt = "focusScope.autoFocusOnUnmount", jt = { bubbles: !1, cancelable: !0 }, Ja = "FocusScope", An = _.forwardRef((e, t) => {
1040
+ var Za = wt, Qa = Tn, et = "focusScope.autoFocusOnMount", tt = "focusScope.autoFocusOnUnmount", Kt = { bubbles: !1, cancelable: !0 }, Ja = "FocusScope", An = _.forwardRef((e, t) => {
1037
1041
  const {
1038
1042
  loop: n = !1,
1039
1043
  trapped: r = !1,
@@ -1072,16 +1076,16 @@ var Za = _t, Qa = Tn, et = "focusScope.autoFocusOnMount", tt = "focusScope.autoF
1072
1076
  }
1073
1077
  }, [r, i, w.paused]), _.useEffect(() => {
1074
1078
  if (i) {
1075
- Vt.add(w);
1079
+ qt.add(w);
1076
1080
  const g = document.activeElement;
1077
1081
  if (!i.contains(g)) {
1078
- const y = new CustomEvent(et, jt);
1082
+ const y = new CustomEvent(et, Kt);
1079
1083
  i.addEventListener(et, c), i.dispatchEvent(y), y.defaultPrevented || (eo(oo(Pn(i)), { select: !0 }), document.activeElement === g && ie(i));
1080
1084
  }
1081
1085
  return () => {
1082
1086
  i.removeEventListener(et, c), setTimeout(() => {
1083
- const y = new CustomEvent(tt, jt);
1084
- i.addEventListener(tt, u), i.dispatchEvent(y), y.defaultPrevented || ie(g ?? document.body, { select: !0 }), i.removeEventListener(tt, u), Vt.remove(w);
1087
+ const y = new CustomEvent(tt, Kt);
1088
+ i.addEventListener(tt, u), i.dispatchEvent(y), y.defaultPrevented || ie(g ?? document.body, { select: !0 }), i.removeEventListener(tt, u), qt.remove(w);
1085
1089
  }, 0);
1086
1090
  };
1087
1091
  }
@@ -1106,7 +1110,7 @@ function eo(e, { select: t = !1 } = {}) {
1106
1110
  if (ie(r, { select: t }), document.activeElement !== n) return;
1107
1111
  }
1108
1112
  function to(e) {
1109
- const t = Pn(e), n = Kt(t, e), r = Kt(t.reverse(), e);
1113
+ const t = Pn(e), n = Vt(t, e), r = Vt(t.reverse(), e);
1110
1114
  return [n, r];
1111
1115
  }
1112
1116
  function Pn(e) {
@@ -1119,7 +1123,7 @@ function Pn(e) {
1119
1123
  for (; n.nextNode(); ) t.push(n.currentNode);
1120
1124
  return t;
1121
1125
  }
1122
- function Kt(e, t) {
1126
+ function Vt(e, t) {
1123
1127
  for (const n of e)
1124
1128
  if (!no(n, { upTo: t })) return n;
1125
1129
  }
@@ -1141,35 +1145,35 @@ function ie(e, { select: t = !1 } = {}) {
1141
1145
  e.focus({ preventScroll: !0 }), e !== n && ro(e) && t && e.select();
1142
1146
  }
1143
1147
  }
1144
- var Vt = ao();
1148
+ var qt = ao();
1145
1149
  function ao() {
1146
1150
  let e = [];
1147
1151
  return {
1148
1152
  add(t) {
1149
1153
  const n = e[0];
1150
- t !== n && (n == null || n.pause()), e = qt(e, t), e.unshift(t);
1154
+ t !== n && (n == null || n.pause()), e = Yt(e, t), e.unshift(t);
1151
1155
  },
1152
1156
  remove(t) {
1153
1157
  var n;
1154
- e = qt(e, t), (n = e[0]) == null || n.resume();
1158
+ e = Yt(e, t), (n = e[0]) == null || n.resume();
1155
1159
  }
1156
1160
  };
1157
1161
  }
1158
- function qt(e, t) {
1162
+ function Yt(e, t) {
1159
1163
  const n = [...e], r = n.indexOf(t);
1160
1164
  return r !== -1 && n.splice(r, 1), n;
1161
1165
  }
1162
1166
  function oo(e) {
1163
1167
  return e.filter((t) => t.tagName !== "A");
1164
1168
  }
1165
- var so = "Portal", wt = _.forwardRef((e, t) => {
1169
+ var so = "Portal", kt = _.forwardRef((e, t) => {
1166
1170
  var i;
1167
1171
  const { container: n, ...r } = e, [o, s] = _.useState(!1);
1168
1172
  pe(() => s(!0), []);
1169
1173
  const l = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
1170
1174
  return l ? jr.createPortal(/* @__PURE__ */ a(V.div, { ...r, ref: t }), l) : null;
1171
1175
  });
1172
- wt.displayName = so;
1176
+ kt.displayName = so;
1173
1177
  function io(e, t) {
1174
1178
  return _.useReducer((n, r) => t[n][r] ?? n, e);
1175
1179
  }
@@ -1193,19 +1197,19 @@ function lo(e) {
1193
1197
  }
1194
1198
  });
1195
1199
  return _.useEffect(() => {
1196
- const c = De(r.current);
1200
+ const c = Fe(r.current);
1197
1201
  s.current = i === "mounted" ? c : "none";
1198
1202
  }, [i]), pe(() => {
1199
1203
  const c = r.current, u = o.current;
1200
1204
  if (u !== e) {
1201
- const b = s.current, w = De(c);
1205
+ const b = s.current, w = Fe(c);
1202
1206
  e ? d("MOUNT") : w === "none" || (c == null ? void 0 : c.display) === "none" ? d("UNMOUNT") : d(u && b !== w ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1203
1207
  }
1204
1208
  }, [e, d]), pe(() => {
1205
1209
  if (t) {
1206
1210
  let c;
1207
1211
  const u = t.ownerDocument.defaultView ?? window, p = (w) => {
1208
- const g = De(r.current).includes(CSS.escape(w.animationName));
1212
+ const g = Fe(r.current).includes(CSS.escape(w.animationName));
1209
1213
  if (w.target === t && g && (d("ANIMATION_END"), !o.current)) {
1210
1214
  const h = t.style.animationFillMode;
1211
1215
  t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
@@ -1213,7 +1217,7 @@ function lo(e) {
1213
1217
  });
1214
1218
  }
1215
1219
  }, b = (w) => {
1216
- w.target === t && (s.current = De(r.current));
1220
+ w.target === t && (s.current = Fe(r.current));
1217
1221
  };
1218
1222
  return t.addEventListener("animationstart", b), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
1219
1223
  u.clearTimeout(c), t.removeEventListener("animationstart", b), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
@@ -1227,7 +1231,7 @@ function lo(e) {
1227
1231
  }, [])
1228
1232
  };
1229
1233
  }
1230
- function De(e) {
1234
+ function Fe(e) {
1231
1235
  return (e == null ? void 0 : e.animationName) || "none";
1232
1236
  }
1233
1237
  function co(e) {
@@ -1239,12 +1243,12 @@ var nt = 0;
1239
1243
  function uo() {
1240
1244
  _.useEffect(() => {
1241
1245
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1242
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Yt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Yt()), nt++, () => {
1246
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Xt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Xt()), nt++, () => {
1243
1247
  nt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), nt--;
1244
1248
  };
1245
1249
  }, []);
1246
1250
  }
1247
- function Yt() {
1251
+ function Xt() {
1248
1252
  const e = document.createElement("span");
1249
1253
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1250
1254
  }
@@ -1270,7 +1274,7 @@ function po(e, t, n) {
1270
1274
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
1271
1275
  return e.concat(s || Array.prototype.slice.call(t));
1272
1276
  }
1273
- var ze = "right-scroll-bar-position", Ue = "width-before-scroll-bar", vo = "with-scroll-bars-hidden", fo = "--removed-body-scroll-bar-size";
1277
+ var Ue = "right-scroll-bar-position", We = "width-before-scroll-bar", vo = "with-scroll-bars-hidden", fo = "--removed-body-scroll-bar-size";
1274
1278
  function rt(e, t) {
1275
1279
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
1276
1280
  }
@@ -1295,7 +1299,7 @@ function mo(e, t) {
1295
1299
  })[0];
1296
1300
  return n.callback = t, n.facade;
1297
1301
  }
1298
- var ho = typeof window < "u" ? _.useLayoutEffect : _.useEffect, Xt = /* @__PURE__ */ new WeakMap();
1302
+ var ho = typeof window < "u" ? _.useLayoutEffect : _.useEffect, Zt = /* @__PURE__ */ new WeakMap();
1299
1303
  function go(e, t) {
1300
1304
  var n = mo(null, function(r) {
1301
1305
  return e.forEach(function(o) {
@@ -1303,7 +1307,7 @@ function go(e, t) {
1303
1307
  });
1304
1308
  });
1305
1309
  return ho(function() {
1306
- var r = Xt.get(n);
1310
+ var r = Zt.get(n);
1307
1311
  if (r) {
1308
1312
  var o = new Set(r), s = new Set(e), l = n.current;
1309
1313
  o.forEach(function(i) {
@@ -1312,7 +1316,7 @@ function go(e, t) {
1312
1316
  o.has(i) || rt(i, l);
1313
1317
  });
1314
1318
  }
1315
- Xt.set(n, e);
1319
+ Zt.set(n, e);
1316
1320
  }, [e]), n;
1317
1321
  }
1318
1322
  function bo(e) {
@@ -1411,8 +1415,8 @@ Ve.defaultProps = {
1411
1415
  inert: !1
1412
1416
  };
1413
1417
  Ve.classNames = {
1414
- fullWidth: Ue,
1415
- zeroRight: ze
1418
+ fullWidth: We,
1419
+ zeroRight: Ue
1416
1420
  };
1417
1421
  var wo = function() {
1418
1422
  if (typeof __webpack_nonce__ < "u")
@@ -1502,19 +1506,19 @@ var Eo = function() {
1502
1506
  ].filter(Boolean).join(""), `
1503
1507
  }
1504
1508
 
1505
- .`).concat(ze, ` {
1509
+ .`).concat(Ue, ` {
1506
1510
  right: `).concat(i, "px ").concat(r, `;
1507
1511
  }
1508
1512
 
1509
- .`).concat(Ue, ` {
1513
+ .`).concat(We, ` {
1510
1514
  margin-right: `).concat(i, "px ").concat(r, `;
1511
1515
  }
1512
1516
 
1513
- .`).concat(ze, " .").concat(ze, ` {
1517
+ .`).concat(Ue, " .").concat(Ue, ` {
1514
1518
  right: 0 `).concat(r, `;
1515
1519
  }
1516
1520
 
1517
- .`).concat(Ue, " .").concat(Ue, ` {
1521
+ .`).concat(We, " .").concat(We, ` {
1518
1522
  margin-right: 0 `).concat(r, `;
1519
1523
  }
1520
1524
 
@@ -1522,13 +1526,13 @@ var Eo = function() {
1522
1526
  `).concat(fo, ": ").concat(i, `px;
1523
1527
  }
1524
1528
  `);
1525
- }, Zt = function() {
1529
+ }, Qt = function() {
1526
1530
  var e = parseInt(document.body.getAttribute(be) || "0", 10);
1527
1531
  return isFinite(e) ? e : 0;
1528
1532
  }, Fo = function() {
1529
1533
  _.useEffect(function() {
1530
- return document.body.setAttribute(be, (Zt() + 1).toString()), function() {
1531
- var e = Zt() - 1;
1534
+ return document.body.setAttribute(be, (Qt() + 1).toString()), function() {
1535
+ var e = Qt() - 1;
1532
1536
  e <= 0 ? document.body.removeAttribute(be) : document.body.setAttribute(be, e.toString());
1533
1537
  };
1534
1538
  }, []);
@@ -1542,12 +1546,12 @@ var Eo = function() {
1542
1546
  }, mt = !1;
1543
1547
  if (typeof window < "u")
1544
1548
  try {
1545
- var Fe = Object.defineProperty({}, "passive", {
1549
+ var Le = Object.defineProperty({}, "passive", {
1546
1550
  get: function() {
1547
1551
  return mt = !0, !0;
1548
1552
  }
1549
1553
  });
1550
- window.addEventListener("test", Fe, Fe), window.removeEventListener("test", Fe, Fe);
1554
+ window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le);
1551
1555
  } catch {
1552
1556
  mt = !1;
1553
1557
  }
@@ -1566,7 +1570,7 @@ var me = mt ? { passive: !1 } : !1, Io = function(e) {
1566
1570
  return In(e, "overflowY");
1567
1571
  }, $o = function(e) {
1568
1572
  return In(e, "overflowX");
1569
- }, Qt = function(e, t) {
1573
+ }, Jt = function(e, t) {
1570
1574
  var n = t.ownerDocument, r = t;
1571
1575
  do {
1572
1576
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -1614,11 +1618,11 @@ var me = mt ? { passive: !1 } : !1, Io = function(e) {
1614
1618
  d && (t.contains(i) || t === i)
1615
1619
  );
1616
1620
  return (u && Math.abs(p) < 1 || !u && Math.abs(b) < 1) && (c = !0), c;
1617
- }, Le = function(e) {
1621
+ }, Ie = function(e) {
1618
1622
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1619
- }, Jt = function(e) {
1620
- return [e.deltaX, e.deltaY];
1621
1623
  }, en = function(e) {
1624
+ return [e.deltaX, e.deltaY];
1625
+ }, tn = function(e) {
1622
1626
  return e && "current" in e ? e.current : e;
1623
1627
  }, Wo = function(e, t) {
1624
1628
  return e[0] === t[0] && e[1] === t[1];
@@ -1635,7 +1639,7 @@ function jo(e) {
1635
1639
  }, [e]), _.useEffect(function() {
1636
1640
  if (e.inert) {
1637
1641
  document.body.classList.add("block-interactivity-".concat(o));
1638
- var g = po([e.lockRef.current], (e.shards || []).map(en), !0).filter(Boolean);
1642
+ var g = po([e.lockRef.current], (e.shards || []).map(tn), !0).filter(Boolean);
1639
1643
  return g.forEach(function(h) {
1640
1644
  return h.classList.add("allow-interactivity-".concat(o));
1641
1645
  }), function() {
@@ -1648,16 +1652,16 @@ function jo(e) {
1648
1652
  var i = _.useCallback(function(g, h) {
1649
1653
  if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
1650
1654
  return !l.current.allowPinchZoom;
1651
- var y = Le(g), v = n.current, f = "deltaX" in g ? g.deltaX : v[0] - y[0], m = "deltaY" in g ? g.deltaY : v[1] - y[1], x, N = g.target, E = Math.abs(f) > Math.abs(m) ? "h" : "v";
1655
+ var y = Ie(g), v = n.current, f = "deltaX" in g ? g.deltaX : v[0] - y[0], m = "deltaY" in g ? g.deltaY : v[1] - y[1], x, N = g.target, E = Math.abs(f) > Math.abs(m) ? "h" : "v";
1652
1656
  if ("touches" in g && E === "h" && N.type === "range")
1653
1657
  return !1;
1654
1658
  var C = window.getSelection(), A = C && C.anchorNode, R = A ? A === N || A.contains(N) : !1;
1655
1659
  if (R)
1656
1660
  return !1;
1657
- var P = Qt(E, N);
1661
+ var P = Jt(E, N);
1658
1662
  if (!P)
1659
1663
  return !0;
1660
- if (P ? x = E : (x = E === "v" ? "h" : "v", P = Qt(E, N)), !P)
1664
+ if (P ? x = E : (x = E === "v" ? "h" : "v", P = Jt(E, N)), !P)
1661
1665
  return !1;
1662
1666
  if (!r.current && "changedTouches" in g && (f || m) && (r.current = x), !x)
1663
1667
  return !0;
@@ -1666,7 +1670,7 @@ function jo(e) {
1666
1670
  }, []), d = _.useCallback(function(g) {
1667
1671
  var h = g;
1668
1672
  if (!(!he.length || he[he.length - 1] !== s)) {
1669
- var y = "deltaY" in h ? Jt(h) : Le(h), v = t.current.filter(function(x) {
1673
+ var y = "deltaY" in h ? en(h) : Ie(h), v = t.current.filter(function(x) {
1670
1674
  return x.name === h.type && (x.target === h.target || h.target === x.shadowParent) && Wo(x.delta, y);
1671
1675
  })[0];
1672
1676
  if (v && v.should) {
@@ -1674,7 +1678,7 @@ function jo(e) {
1674
1678
  return;
1675
1679
  }
1676
1680
  if (!v) {
1677
- var f = (l.current.shards || []).map(en).filter(Boolean).filter(function(x) {
1681
+ var f = (l.current.shards || []).map(tn).filter(Boolean).filter(function(x) {
1678
1682
  return x.contains(h.target);
1679
1683
  }), m = f.length > 0 ? i(h, f[0]) : !l.current.noIsolation;
1680
1684
  m && h.cancelable && h.preventDefault();
@@ -1688,11 +1692,11 @@ function jo(e) {
1688
1692
  });
1689
1693
  }, 1);
1690
1694
  }, []), u = _.useCallback(function(g) {
1691
- n.current = Le(g), r.current = void 0;
1695
+ n.current = Ie(g), r.current = void 0;
1692
1696
  }, []), p = _.useCallback(function(g) {
1693
- c(g.type, Jt(g), g.target, i(g, e.lockRef.current));
1697
+ c(g.type, en(g), g.target, i(g, e.lockRef.current));
1694
1698
  }, []), b = _.useCallback(function(g) {
1695
- c(g.type, Le(g), g.target, i(g, e.lockRef.current));
1699
+ c(g.type, Ie(g), g.target, i(g, e.lockRef.current));
1696
1700
  }, []);
1697
1701
  _.useEffect(function() {
1698
1702
  return he.push(s), e.setCallbacks({
@@ -1728,7 +1732,7 @@ var qo = function(e) {
1728
1732
  return null;
1729
1733
  var t = Array.isArray(e) ? e[0] : e;
1730
1734
  return t.ownerDocument.body;
1731
- }, ge = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Me = {}, st = 0, Bn = function(e) {
1735
+ }, ge = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), $e = {}, st = 0, Bn = function(e) {
1732
1736
  return e && (e.host || Bn(e.parentNode));
1733
1737
  }, Yo = function(e, t) {
1734
1738
  return t.map(function(n) {
@@ -1741,8 +1745,8 @@ var qo = function(e) {
1741
1745
  });
1742
1746
  }, Xo = function(e, t, n, r) {
1743
1747
  var o = Yo(t, Array.isArray(e) ? e : [e]);
1744
- Me[n] || (Me[n] = /* @__PURE__ */ new WeakMap());
1745
- var s = Me[n], l = [], i = /* @__PURE__ */ new Set(), d = new Set(o), c = function(p) {
1748
+ $e[n] || ($e[n] = /* @__PURE__ */ new WeakMap());
1749
+ var s = $e[n], l = [], i = /* @__PURE__ */ new Set(), d = new Set(o), c = function(p) {
1746
1750
  !p || i.has(p) || (i.add(p), c(p.parentNode));
1747
1751
  };
1748
1752
  o.forEach(c);
@@ -1753,7 +1757,7 @@ var qo = function(e) {
1753
1757
  else
1754
1758
  try {
1755
1759
  var w = b.getAttribute(r), S = w !== null && w !== "false", g = (ge.get(b) || 0) + 1, h = (s.get(b) || 0) + 1;
1756
- ge.set(b, g), s.set(b, h), l.push(b), g === 1 && S && Ie.set(b, !0), h === 1 && b.setAttribute(n, "true"), S || b.setAttribute(r, "true");
1760
+ ge.set(b, g), s.set(b, h), l.push(b), g === 1 && S && Me.set(b, !0), h === 1 && b.setAttribute(n, "true"), S || b.setAttribute(r, "true");
1757
1761
  } catch (y) {
1758
1762
  console.error("aria-hidden: cannot operate on ", b, y);
1759
1763
  }
@@ -1762,8 +1766,8 @@ var qo = function(e) {
1762
1766
  return u(t), i.clear(), st++, function() {
1763
1767
  l.forEach(function(p) {
1764
1768
  var b = ge.get(p) - 1, w = s.get(p) - 1;
1765
- ge.set(p, b), s.set(p, w), b || (Ie.has(p) || p.removeAttribute(r), Ie.delete(p)), w || p.removeAttribute(n);
1766
- }), st--, st || (ge = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Me = {});
1769
+ ge.set(p, b), s.set(p, w), b || (Me.has(p) || p.removeAttribute(r), Me.delete(p)), w || p.removeAttribute(n);
1770
+ }), st--, st || (ge = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), $e = {});
1767
1771
  };
1768
1772
  }, Zo = function(e, t, n) {
1769
1773
  n === void 0 && (n = "data-aria-hidden");
@@ -1779,7 +1783,7 @@ var qo = function(e) {
1779
1783
  defaultOpen: o,
1780
1784
  onOpenChange: s,
1781
1785
  modal: l = !0
1782
- } = e, i = _.useRef(null), d = _.useRef(null), [c, u] = Ce({
1786
+ } = e, i = _.useRef(null), d = _.useRef(null), [c, u] = Ae({
1783
1787
  prop: r,
1784
1788
  defaultProp: o ?? !1,
1785
1789
  onChange: s,
@@ -1813,7 +1817,7 @@ var Wn = "DialogTrigger", Hn = _.forwardRef(
1813
1817
  "aria-haspopup": "dialog",
1814
1818
  "aria-expanded": o.open,
1815
1819
  "aria-controls": o.contentId,
1816
- "data-state": St(o.open),
1820
+ "data-state": Et(o.open),
1817
1821
  ...r,
1818
1822
  ref: s,
1819
1823
  onClick: G(e.onClick, o.onOpenToggle)
@@ -1822,30 +1826,30 @@ var Wn = "DialogTrigger", Hn = _.forwardRef(
1822
1826
  }
1823
1827
  );
1824
1828
  Hn.displayName = Wn;
1825
- var kt = "DialogPortal", [Jo, Gn] = zn(kt, {
1829
+ var Nt = "DialogPortal", [Jo, Gn] = zn(Nt, {
1826
1830
  forceMount: void 0
1827
1831
  }), jn = (e) => {
1828
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = re(kt, t);
1829
- return /* @__PURE__ */ a(Jo, { scope: t, forceMount: n, children: _.Children.map(r, (l) => /* @__PURE__ */ a(ke, { present: n || s.open, children: /* @__PURE__ */ a(wt, { asChild: !0, container: o, children: l }) })) });
1832
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = re(Nt, t);
1833
+ return /* @__PURE__ */ a(Jo, { scope: t, forceMount: n, children: _.Children.map(r, (l) => /* @__PURE__ */ a(ke, { present: n || s.open, children: /* @__PURE__ */ a(kt, { asChild: !0, container: o, children: l }) })) });
1830
1834
  };
1831
- jn.displayName = kt;
1832
- var He = "DialogOverlay", Kn = _.forwardRef(
1835
+ jn.displayName = Nt;
1836
+ var Ge = "DialogOverlay", Kn = _.forwardRef(
1833
1837
  (e, t) => {
1834
- const n = Gn(He, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = re(He, e.__scopeDialog);
1838
+ const n = Gn(Ge, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = re(Ge, e.__scopeDialog);
1835
1839
  return s.modal ? /* @__PURE__ */ a(ke, { present: r || s.open, children: /* @__PURE__ */ a(ts, { ...o, ref: t }) }) : null;
1836
1840
  }
1837
1841
  );
1838
- Kn.displayName = He;
1839
- var es = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), ts = _.forwardRef(
1842
+ Kn.displayName = Ge;
1843
+ var es = /* @__PURE__ */ He("DialogOverlay.RemoveScroll"), ts = _.forwardRef(
1840
1844
  (e, t) => {
1841
- const { __scopeDialog: n, ...r } = e, o = re(He, n);
1845
+ const { __scopeDialog: n, ...r } = e, o = re(Ge, n);
1842
1846
  return (
1843
1847
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1844
1848
  // ie. when `Overlay` and `Content` are siblings
1845
1849
  /* @__PURE__ */ a(On, { as: es, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
1846
1850
  V.div,
1847
1851
  {
1848
- "data-state": St(o.open),
1852
+ "data-state": Et(o.open),
1849
1853
  ...r,
1850
1854
  ref: t,
1851
1855
  style: { pointerEvents: "auto", ...r.style }
@@ -1924,13 +1928,13 @@ var ns = _.forwardRef(
1924
1928
  onMountAutoFocus: o,
1925
1929
  onUnmountAutoFocus: s,
1926
1930
  children: /* @__PURE__ */ a(
1927
- _t,
1931
+ wt,
1928
1932
  {
1929
1933
  role: "dialog",
1930
1934
  id: i.contentId,
1931
1935
  "aria-describedby": i.descriptionId,
1932
1936
  "aria-labelledby": i.titleId,
1933
- "data-state": St(i.open),
1937
+ "data-state": Et(i.open),
1934
1938
  ...l,
1935
1939
  ref: c,
1936
1940
  onDismiss: () => i.onOpenChange(!1)
@@ -1944,13 +1948,13 @@ var ns = _.forwardRef(
1944
1948
  ] })
1945
1949
  ] });
1946
1950
  }
1947
- ), Nt = "DialogTitle", Yn = _.forwardRef(
1951
+ ), St = "DialogTitle", Yn = _.forwardRef(
1948
1952
  (e, t) => {
1949
- const { __scopeDialog: n, ...r } = e, o = re(Nt, n);
1953
+ const { __scopeDialog: n, ...r } = e, o = re(St, n);
1950
1954
  return /* @__PURE__ */ a(V.h2, { id: o.titleId, ...r, ref: t });
1951
1955
  }
1952
1956
  );
1953
- Yn.displayName = Nt;
1957
+ Yn.displayName = St;
1954
1958
  var Xn = "DialogDescription", Zn = _.forwardRef(
1955
1959
  (e, t) => {
1956
1960
  const { __scopeDialog: n, ...r } = e, o = re(Xn, n);
@@ -1973,12 +1977,12 @@ var Qn = "DialogClose", Jn = _.forwardRef(
1973
1977
  }
1974
1978
  );
1975
1979
  Jn.displayName = Qn;
1976
- function St(e) {
1980
+ function Et(e) {
1977
1981
  return e ? "open" : "closed";
1978
1982
  }
1979
- var er = "DialogTitleWarning", [Zi, tr] = Ra(er, {
1983
+ var er = "DialogTitleWarning", [Qi, tr] = Ra(er, {
1980
1984
  contentName: ve,
1981
- titleName: Nt,
1985
+ titleName: St,
1982
1986
  docsSlug: "dialog"
1983
1987
  }), as = ({ titleId: e }) => {
1984
1988
  const t = tr(er), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
@@ -1996,8 +2000,24 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1996
2000
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
1997
2001
  t && o && (document.getElementById(t) || console.warn(r));
1998
2002
  }, [r, e, t]), null;
1999
- }, Et = Un, Tt = Hn, Ct = jn, At = Kn, Pt = Vn, Rt = Yn, Dt = Zn, Ge = Jn;
2000
- function Qi({
2003
+ }, Tt = Un, Ct = Hn, At = jn, Pt = Kn, Rt = Vn, Dt = Yn, Ft = Zn, Ee = Jn;
2004
+ function is({ children: e, scrollable: t }) {
2005
+ const n = B(null), r = B(null);
2006
+ return _t(n, r, t), /* @__PURE__ */ k(
2007
+ "div",
2008
+ {
2009
+ ref: n,
2010
+ className: "vx-dialog__body-wrap vx-scroll-host",
2011
+ "data-scrollable": "false",
2012
+ "data-scrollbar-state": "hidden",
2013
+ children: [
2014
+ /* @__PURE__ */ a("div", { ref: r, className: T("vx-dialog__body", t && "vx-scroll-hide-native"), children: e }),
2015
+ t ? /* @__PURE__ */ a("span", { className: "vx-overlay-scrollbar", "aria-hidden": "true", children: /* @__PURE__ */ a("span", { className: "vx-overlay-scrollbar__thumb" }) }) : null
2016
+ ]
2017
+ }
2018
+ );
2019
+ }
2020
+ function Ji({
2001
2021
  trigger: e,
2002
2022
  title: t,
2003
2023
  description: n,
@@ -2006,47 +2026,49 @@ function Qi({
2006
2026
  className: s,
2007
2027
  size: l = "md",
2008
2028
  padding: i,
2009
- scrollable: d = !1,
2010
- closable: c = !0,
2011
- ...u
2029
+ placement: d = "center",
2030
+ scrollable: c = !0,
2031
+ closable: u = !0,
2032
+ ...p
2012
2033
  }) {
2013
- const p = B(null);
2014
- return /* @__PURE__ */ k(Et, { ...u, children: [
2015
- /* @__PURE__ */ a(Tt, { asChild: !0, children: e }),
2016
- /* @__PURE__ */ k(Ct, { children: [
2017
- /* @__PURE__ */ a(At, { className: "vx-dialog__overlay" }),
2034
+ const b = B(null);
2035
+ return /* @__PURE__ */ k(Tt, { ...p, children: [
2036
+ /* @__PURE__ */ a(Ct, { asChild: !0, children: e }),
2037
+ /* @__PURE__ */ k(At, { children: [
2038
+ /* @__PURE__ */ a(Pt, { className: "vx-dialog__overlay" }),
2018
2039
  /* @__PURE__ */ k(
2019
- Pt,
2040
+ Rt,
2020
2041
  {
2021
- ref: p,
2042
+ ref: b,
2022
2043
  className: T(
2023
2044
  "vx-dialog__content",
2024
2045
  l !== "md" && `vx-dialog__content--${l}`,
2046
+ d !== "center" && `vx-dialog__content--${d}`,
2025
2047
  i && `vx-dialog__content--pad-${i}`,
2026
- d && "vx-dialog__content--scrollable",
2048
+ c && "vx-dialog__content--scrollable",
2027
2049
  s
2028
2050
  ),
2029
- onEscapeKeyDown: (b) => {
2030
- const w = p.current;
2031
- if (!w) return;
2032
- const S = !!w.querySelector(
2051
+ onEscapeKeyDown: (w) => {
2052
+ const S = b.current;
2053
+ if (!S) return;
2054
+ const g = !!S.querySelector(
2033
2055
  ".vx-select__dropdown, .vx-multiselect__dropdown, .vx-datepicker__popover, .vx-timepicker__popover, .vx-colorpicker__panel"
2034
- ), g = w.dataset.hasOpenPortal === "1";
2035
- (S || g) && b.preventDefault();
2056
+ ), h = S.dataset.hasOpenPortal === "1";
2057
+ (g || h) && w.preventDefault();
2036
2058
  },
2037
- onPointerDownOutside: (b) => {
2038
- const w = p.current;
2039
- (w == null ? void 0 : w.dataset.hasOpenPortal) === "1" && b.preventDefault();
2059
+ onPointerDownOutside: (w) => {
2060
+ const S = b.current;
2061
+ (S == null ? void 0 : S.dataset.hasOpenPortal) === "1" && w.preventDefault();
2040
2062
  },
2041
2063
  children: [
2042
2064
  /* @__PURE__ */ k("div", { className: "vx-dialog__header", children: [
2043
2065
  /* @__PURE__ */ k("div", { children: [
2044
- /* @__PURE__ */ a(Rt, { className: "vx-dialog__title", children: t }),
2045
- n ? /* @__PURE__ */ a(Dt, { className: "vx-dialog__description", children: n }) : null
2066
+ /* @__PURE__ */ a(Dt, { className: "vx-dialog__title", children: t }),
2067
+ n ? /* @__PURE__ */ a(Ft, { className: "vx-dialog__description", children: n }) : null
2046
2068
  ] }),
2047
- c ? /* @__PURE__ */ a(Ge, { className: "vx-dialog__close", "aria-label": "Close dialog", children: /* @__PURE__ */ a(le, { size: 16 }) }) : null
2069
+ u ? /* @__PURE__ */ a(Ee, { className: "vx-dialog__close", "aria-label": "Close dialog", children: /* @__PURE__ */ a(le, { size: 16 }) }) : null
2048
2070
  ] }),
2049
- /* @__PURE__ */ a("div", { className: "vx-dialog__body", children: r }),
2071
+ /* @__PURE__ */ a(is, { scrollable: c, children: r }),
2050
2072
  o ? /* @__PURE__ */ a("div", { className: "vx-dialog__footer", children: o }) : null
2051
2073
  ]
2052
2074
  }
@@ -2054,7 +2076,8 @@ function Qi({
2054
2076
  ] })
2055
2077
  ] });
2056
2078
  }
2057
- function Ji({
2079
+ const el = Ee;
2080
+ function tl({
2058
2081
  className: e,
2059
2082
  label: t,
2060
2083
  hint: n,
@@ -2084,11 +2107,11 @@ function Ji({
2084
2107
  !s && n ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: n }) : null
2085
2108
  ] });
2086
2109
  }
2087
- function is(e) {
2110
+ function ls(e) {
2088
2111
  const t = _.useRef({ value: e, previous: e });
2089
2112
  return _.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
2090
2113
  }
2091
- function ls(e) {
2114
+ function cs(e) {
2092
2115
  const [t, n] = _.useState(void 0);
2093
2116
  return pe(() => {
2094
2117
  if (e) {
@@ -2110,7 +2133,7 @@ function ls(e) {
2110
2133
  n(void 0);
2111
2134
  }, [e]), t;
2112
2135
  }
2113
- var Ye = "Switch", [cs] = we(Ye), [ds, us] = cs(Ye), nr = _.forwardRef(
2136
+ var Ye = "Switch", [ds] = we(Ye), [us, ps] = ds(Ye), nr = _.forwardRef(
2114
2137
  (e, t) => {
2115
2138
  const {
2116
2139
  __scopeSwitch: n,
@@ -2123,13 +2146,13 @@ var Ye = "Switch", [cs] = we(Ye), [ds, us] = cs(Ye), nr = _.forwardRef(
2123
2146
  onCheckedChange: c,
2124
2147
  form: u,
2125
2148
  ...p
2126
- } = e, [b, w] = _.useState(null), S = te(t, (f) => w(f)), g = _.useRef(!1), h = b ? u || !!b.closest("form") : !0, [y, v] = Ce({
2149
+ } = e, [b, w] = _.useState(null), S = te(t, (f) => w(f)), g = _.useRef(!1), h = b ? u || !!b.closest("form") : !0, [y, v] = Ae({
2127
2150
  prop: o,
2128
2151
  defaultProp: s ?? !1,
2129
2152
  onChange: c,
2130
2153
  caller: Ye
2131
2154
  });
2132
- return /* @__PURE__ */ k(ds, { scope: n, checked: y, disabled: i, children: [
2155
+ return /* @__PURE__ */ k(us, { scope: n, checked: y, disabled: i, children: [
2133
2156
  /* @__PURE__ */ a(
2134
2157
  V.button,
2135
2158
  {
@@ -2168,7 +2191,7 @@ var Ye = "Switch", [cs] = we(Ye), [ds, us] = cs(Ye), nr = _.forwardRef(
2168
2191
  nr.displayName = Ye;
2169
2192
  var rr = "SwitchThumb", ar = _.forwardRef(
2170
2193
  (e, t) => {
2171
- const { __scopeSwitch: n, ...r } = e, o = us(rr, n);
2194
+ const { __scopeSwitch: n, ...r } = e, o = ps(rr, n);
2172
2195
  return /* @__PURE__ */ a(
2173
2196
  V.span,
2174
2197
  {
@@ -2181,7 +2204,7 @@ var rr = "SwitchThumb", ar = _.forwardRef(
2181
2204
  }
2182
2205
  );
2183
2206
  ar.displayName = rr;
2184
- var ps = "SwitchBubbleInput", or = _.forwardRef(
2207
+ var vs = "SwitchBubbleInput", or = _.forwardRef(
2185
2208
  ({
2186
2209
  __scopeSwitch: e,
2187
2210
  control: t,
@@ -2189,7 +2212,7 @@ var ps = "SwitchBubbleInput", or = _.forwardRef(
2189
2212
  bubbles: r = !0,
2190
2213
  ...o
2191
2214
  }, s) => {
2192
- const l = _.useRef(null), i = te(l, s), d = is(n), c = ls(t);
2215
+ const l = _.useRef(null), i = te(l, s), d = ls(n), c = cs(t);
2193
2216
  return _.useEffect(() => {
2194
2217
  const u = l.current;
2195
2218
  if (!u) return;
@@ -2222,18 +2245,18 @@ var ps = "SwitchBubbleInput", or = _.forwardRef(
2222
2245
  );
2223
2246
  }
2224
2247
  );
2225
- or.displayName = ps;
2248
+ or.displayName = vs;
2226
2249
  function sr(e) {
2227
2250
  return e ? "checked" : "unchecked";
2228
2251
  }
2229
- var vs = nr, fs = ar;
2230
- function el({ className: e, label: t, description: n, ...r }) {
2252
+ var fs = nr, ms = ar;
2253
+ function nl({ className: e, label: t, description: n, ...r }) {
2231
2254
  return /* @__PURE__ */ k("label", { className: "vx-switch", children: [
2232
2255
  /* @__PURE__ */ k("span", { className: "vx-switch__copy", children: [
2233
2256
  /* @__PURE__ */ a("span", { className: "vx-switch__label", children: t }),
2234
2257
  n ? /* @__PURE__ */ a("span", { className: "vx-switch__description", children: n }) : null
2235
2258
  ] }),
2236
- /* @__PURE__ */ a(vs, { className: T("vx-switch__control", e), ...r, children: /* @__PURE__ */ a(fs, { className: "vx-switch__thumb" }) })
2259
+ /* @__PURE__ */ a(fs, { className: T("vx-switch__control", e), ...r, children: /* @__PURE__ */ a(ms, { className: "vx-switch__thumb" }) })
2237
2260
  ] });
2238
2261
  }
2239
2262
  function ir(e) {
@@ -2245,14 +2268,14 @@ function ir(e) {
2245
2268
  return /* @__PURE__ */ a(o, { scope: h, itemMap: f, collectionRef: v, children: y });
2246
2269
  };
2247
2270
  l.displayName = t;
2248
- const i = e + "CollectionSlot", d = /* @__PURE__ */ We(i), c = ue.forwardRef(
2271
+ const i = e + "CollectionSlot", d = /* @__PURE__ */ He(i), c = ue.forwardRef(
2249
2272
  (g, h) => {
2250
2273
  const { scope: y, children: v } = g, f = s(i, y), m = te(h, f.collectionRef);
2251
2274
  return /* @__PURE__ */ a(d, { ref: m, children: v });
2252
2275
  }
2253
2276
  );
2254
2277
  c.displayName = i;
2255
- const u = e + "CollectionItemSlot", p = "data-radix-collection-item", b = /* @__PURE__ */ We(u), w = ue.forwardRef(
2278
+ const u = e + "CollectionItemSlot", p = "data-radix-collection-item", b = /* @__PURE__ */ He(u), w = ue.forwardRef(
2256
2279
  (g, h) => {
2257
2280
  const { scope: y, children: v, ...f } = g, m = ue.useRef(null), x = te(h, m), N = s(u, y);
2258
2281
  return ue.useEffect(() => (N.itemMap.set(m, { ref: m, ...f }), () => void N.itemMap.delete(m))), /* @__PURE__ */ a(b, { [p]: "", ref: x, children: v });
@@ -2276,19 +2299,19 @@ function ir(e) {
2276
2299
  r
2277
2300
  ];
2278
2301
  }
2279
- var ms = _.createContext(void 0);
2302
+ var hs = _.createContext(void 0);
2280
2303
  function lr(e) {
2281
- const t = _.useContext(ms);
2304
+ const t = _.useContext(hs);
2282
2305
  return e || t || "ltr";
2283
2306
  }
2284
- var it = "rovingFocusGroup.onEntryFocus", hs = { bubbles: !1, cancelable: !0 }, Ae = "RovingFocusGroup", [ht, cr, gs] = ir(Ae), [bs, dr] = we(
2285
- Ae,
2286
- [gs]
2287
- ), [xs, ys] = bs(Ae), ur = _.forwardRef(
2288
- (e, t) => /* @__PURE__ */ a(ht.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(ht.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(_s, { ...e, ref: t }) }) })
2307
+ var it = "rovingFocusGroup.onEntryFocus", gs = { bubbles: !1, cancelable: !0 }, Pe = "RovingFocusGroup", [ht, cr, bs] = ir(Pe), [xs, dr] = we(
2308
+ Pe,
2309
+ [bs]
2310
+ ), [ys, _s] = xs(Pe), ur = _.forwardRef(
2311
+ (e, t) => /* @__PURE__ */ a(ht.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(ht.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(ws, { ...e, ref: t }) }) })
2289
2312
  );
2290
- ur.displayName = Ae;
2291
- var _s = _.forwardRef((e, t) => {
2313
+ ur.displayName = Pe;
2314
+ var ws = _.forwardRef((e, t) => {
2292
2315
  const {
2293
2316
  __scopeRovingFocusGroup: n,
2294
2317
  orientation: r,
@@ -2300,18 +2323,18 @@ var _s = _.forwardRef((e, t) => {
2300
2323
  onEntryFocus: c,
2301
2324
  preventScrollOnEntryFocus: u = !1,
2302
2325
  ...p
2303
- } = e, b = _.useRef(null), w = te(t, b), S = lr(s), [g, h] = Ce({
2326
+ } = e, b = _.useRef(null), w = te(t, b), S = lr(s), [g, h] = Ae({
2304
2327
  prop: l,
2305
2328
  defaultProp: i ?? null,
2306
2329
  onChange: d,
2307
- caller: Ae
2330
+ caller: Pe
2308
2331
  }), [y, v] = _.useState(!1), f = oe(c), m = cr(n), x = _.useRef(!1), [N, E] = _.useState(0);
2309
2332
  return _.useEffect(() => {
2310
2333
  const C = b.current;
2311
2334
  if (C)
2312
2335
  return C.addEventListener(it, f), () => C.removeEventListener(it, f);
2313
2336
  }, [f]), /* @__PURE__ */ a(
2314
- xs,
2337
+ ys,
2315
2338
  {
2316
2339
  scope: n,
2317
2340
  orientation: r,
@@ -2345,7 +2368,7 @@ var _s = _.forwardRef((e, t) => {
2345
2368
  onFocus: G(e.onFocus, (C) => {
2346
2369
  const A = !x.current;
2347
2370
  if (C.target === C.currentTarget && A && !y) {
2348
- const R = new CustomEvent(it, hs);
2371
+ const R = new CustomEvent(it, gs);
2349
2372
  if (C.currentTarget.dispatchEvent(R), !R.defaultPrevented) {
2350
2373
  const P = m().filter((H) => H.focusable), L = P.find((H) => H.active), $ = P.find((H) => H.id === g), U = [L, $, ...P].filter(
2351
2374
  Boolean
@@ -2369,7 +2392,7 @@ var _s = _.forwardRef((e, t) => {
2369
2392
  tabStopId: s,
2370
2393
  children: l,
2371
2394
  ...i
2372
- } = e, d = Se(), c = s || d, u = ys(pr, n), p = u.currentTabStopId === c, b = cr(n), { onFocusableItemAdd: w, onFocusableItemRemove: S, currentTabStopId: g } = u;
2395
+ } = e, d = Se(), c = s || d, u = _s(pr, n), p = u.currentTabStopId === c, b = cr(n), { onFocusableItemAdd: w, onFocusableItemRemove: S, currentTabStopId: g } = u;
2373
2396
  return _.useEffect(() => {
2374
2397
  if (r)
2375
2398
  return w(), () => S();
@@ -2397,7 +2420,7 @@ var _s = _.forwardRef((e, t) => {
2397
2420
  return;
2398
2421
  }
2399
2422
  if (h.target !== h.currentTarget) return;
2400
- const y = Ns(h, u.orientation, u.dir);
2423
+ const y = Ss(h, u.orientation, u.dir);
2401
2424
  if (y !== void 0) {
2402
2425
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
2403
2426
  h.preventDefault();
@@ -2406,7 +2429,7 @@ var _s = _.forwardRef((e, t) => {
2406
2429
  else if (y === "prev" || y === "next") {
2407
2430
  y === "prev" && f.reverse();
2408
2431
  const m = f.indexOf(h.currentTarget);
2409
- f = u.loop ? Ss(f, m + 1) : f.slice(m + 1);
2432
+ f = u.loop ? Es(f, m + 1) : f.slice(m + 1);
2410
2433
  }
2411
2434
  setTimeout(() => fr(f));
2412
2435
  }
@@ -2419,7 +2442,7 @@ var _s = _.forwardRef((e, t) => {
2419
2442
  }
2420
2443
  );
2421
2444
  vr.displayName = pr;
2422
- var ws = {
2445
+ var ks = {
2423
2446
  ArrowLeft: "prev",
2424
2447
  ArrowUp: "prev",
2425
2448
  ArrowRight: "next",
@@ -2429,25 +2452,25 @@ var ws = {
2429
2452
  PageDown: "last",
2430
2453
  End: "last"
2431
2454
  };
2432
- function ks(e, t) {
2455
+ function Ns(e, t) {
2433
2456
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
2434
2457
  }
2435
- function Ns(e, t, n) {
2436
- const r = ks(e.key, n);
2458
+ function Ss(e, t, n) {
2459
+ const r = Ns(e.key, n);
2437
2460
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
2438
- return ws[r];
2461
+ return ks[r];
2439
2462
  }
2440
2463
  function fr(e, t = !1) {
2441
2464
  const n = document.activeElement;
2442
2465
  for (const r of e)
2443
2466
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
2444
2467
  }
2445
- function Ss(e, t) {
2468
+ function Es(e, t) {
2446
2469
  return e.map((n, r) => e[(t + r) % e.length]);
2447
2470
  }
2448
- var Es = ur, Ts = vr, Xe = "Tabs", [Cs] = we(Xe, [
2471
+ var Ts = ur, Cs = vr, Xe = "Tabs", [As] = we(Xe, [
2449
2472
  dr
2450
- ]), mr = dr(), [As, Ft] = Cs(Xe), hr = _.forwardRef(
2473
+ ]), mr = dr(), [Ps, Lt] = As(Xe), hr = _.forwardRef(
2451
2474
  (e, t) => {
2452
2475
  const {
2453
2476
  __scopeTabs: n,
@@ -2458,14 +2481,14 @@ var Es = ur, Ts = vr, Xe = "Tabs", [Cs] = we(Xe, [
2458
2481
  dir: i,
2459
2482
  activationMode: d = "automatic",
2460
2483
  ...c
2461
- } = e, u = lr(i), [p, b] = Ce({
2484
+ } = e, u = lr(i), [p, b] = Ae({
2462
2485
  prop: r,
2463
2486
  onChange: o,
2464
2487
  defaultProp: s ?? "",
2465
2488
  caller: Xe
2466
2489
  });
2467
2490
  return /* @__PURE__ */ a(
2468
- As,
2491
+ Ps,
2469
2492
  {
2470
2493
  scope: n,
2471
2494
  baseId: Se(),
@@ -2490,9 +2513,9 @@ var Es = ur, Ts = vr, Xe = "Tabs", [Cs] = we(Xe, [
2490
2513
  hr.displayName = Xe;
2491
2514
  var gr = "TabsList", br = _.forwardRef(
2492
2515
  (e, t) => {
2493
- const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Ft(gr, n), l = mr(n);
2516
+ const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Lt(gr, n), l = mr(n);
2494
2517
  return /* @__PURE__ */ a(
2495
- Es,
2518
+ Ts,
2496
2519
  {
2497
2520
  asChild: !0,
2498
2521
  ...l,
@@ -2515,9 +2538,9 @@ var gr = "TabsList", br = _.forwardRef(
2515
2538
  br.displayName = gr;
2516
2539
  var xr = "TabsTrigger", yr = _.forwardRef(
2517
2540
  (e, t) => {
2518
- const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, l = Ft(xr, n), i = mr(n), d = kr(l.baseId, r), c = Nr(l.baseId, r), u = r === l.value;
2541
+ const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, l = Lt(xr, n), i = mr(n), d = kr(l.baseId, r), c = Nr(l.baseId, r), u = r === l.value;
2519
2542
  return /* @__PURE__ */ a(
2520
- Ts,
2543
+ Cs,
2521
2544
  {
2522
2545
  asChild: !0,
2523
2546
  ...i,
@@ -2555,7 +2578,7 @@ var xr = "TabsTrigger", yr = _.forwardRef(
2555
2578
  yr.displayName = xr;
2556
2579
  var _r = "TabsContent", wr = _.forwardRef(
2557
2580
  (e, t) => {
2558
- const { __scopeTabs: n, value: r, forceMount: o, children: s, ...l } = e, i = Ft(_r, n), d = kr(i.baseId, r), c = Nr(i.baseId, r), u = r === i.value, p = _.useRef(u);
2581
+ const { __scopeTabs: n, value: r, forceMount: o, children: s, ...l } = e, i = Lt(_r, n), d = kr(i.baseId, r), c = Nr(i.baseId, r), u = r === i.value, p = _.useRef(u);
2559
2582
  return _.useEffect(() => {
2560
2583
  const b = requestAnimationFrame(() => p.current = !1);
2561
2584
  return () => cancelAnimationFrame(b);
@@ -2587,13 +2610,13 @@ function kr(e, t) {
2587
2610
  function Nr(e, t) {
2588
2611
  return `${e}-content-${t}`;
2589
2612
  }
2590
- var Ps = hr, Rs = br, Ds = yr, Fs = wr;
2591
- const tl = Ps, nl = ce(function({ className: t, ...n }, r) {
2592
- return /* @__PURE__ */ a(Rs, { ref: r, className: T("vx-tabs__list", t), ...n });
2593
- }), rl = ce(function({ className: t, ...n }, r) {
2594
- return /* @__PURE__ */ a(Ds, { ref: r, className: T("vx-tabs__trigger", t), ...n });
2595
- }), al = ce(function({ className: t, ...n }, r) {
2596
- return /* @__PURE__ */ a(Fs, { ref: r, className: T("vx-tabs__content", t), ...n });
2613
+ var Rs = hr, Ds = br, Fs = yr, Ls = wr;
2614
+ const rl = Rs, al = ce(function({ className: t, ...n }, r) {
2615
+ return /* @__PURE__ */ a(Ds, { ref: r, className: T("vx-tabs__list", t), ...n });
2616
+ }), ol = ce(function({ className: t, ...n }, r) {
2617
+ return /* @__PURE__ */ a(Fs, { ref: r, className: T("vx-tabs__trigger", t), ...n });
2618
+ }), sl = ce(function({ className: t, ...n }, r) {
2619
+ return /* @__PURE__ */ a(Ls, { ref: r, className: T("vx-tabs__content", t), ...n });
2597
2620
  }), Sr = {
2598
2621
  light: {
2599
2622
  label: "Light",
@@ -2611,7 +2634,7 @@ function ne(e, t = {}) {
2611
2634
  tokens: t.tokens
2612
2635
  };
2613
2636
  }
2614
- const ol = {
2637
+ const il = {
2615
2638
  ...Sr,
2616
2639
  sunset: ne("light", {
2617
2640
  label: "Sunset",
@@ -2920,13 +2943,13 @@ const ol = {
2920
2943
  }
2921
2944
  })
2922
2945
  };
2923
- function Ls(e) {
2946
+ function Is(e) {
2924
2947
  return {
2925
2948
  ...Sr,
2926
2949
  ...e
2927
2950
  };
2928
2951
  }
2929
- function Is(e, t) {
2952
+ function Ms(e, t) {
2930
2953
  if (e && t[e])
2931
2954
  return e;
2932
2955
  if (t.light)
@@ -2934,11 +2957,11 @@ function Is(e, t) {
2934
2957
  const [n] = Object.keys(t);
2935
2958
  return n ?? "light";
2936
2959
  }
2937
- function Ms(e, t) {
2960
+ function $s(e, t) {
2938
2961
  const n = window.localStorage.getItem(e);
2939
2962
  return n && t[n] ? n : null;
2940
2963
  }
2941
- function $s(e, t, n) {
2964
+ function Os(e, t, n) {
2942
2965
  var o;
2943
2966
  if (((o = e[n]) == null ? void 0 : o.mode) === t)
2944
2967
  return n;
@@ -2946,13 +2969,13 @@ function $s(e, t, n) {
2946
2969
  return r == null ? void 0 : r[0];
2947
2970
  }
2948
2971
  const Er = _e(null);
2949
- function sl({
2972
+ function ll({
2950
2973
  children: e,
2951
2974
  defaultTheme: t = "light",
2952
2975
  storageKey: n = "vxui-react-theme",
2953
2976
  themes: r
2954
2977
  }) {
2955
- const o = Ne(() => Ls(r), [r]), s = Ne(() => Is(t, o), [t, o]), l = B([]), [i, d] = I(() => typeof window > "u" ? s : Ms(n, o) ?? s), c = o[i] ? i : s, u = o[c];
2978
+ const o = Ne(() => Is(r), [r]), s = Ne(() => Ms(t, o), [t, o]), l = B([]), [i, d] = I(() => typeof window > "u" ? s : $s(n, o) ?? s), c = o[i] ? i : s, u = o[c];
2956
2979
  z(() => {
2957
2980
  i !== c && d(c);
2958
2981
  }, [c, i]), z(() => {
@@ -2978,7 +3001,7 @@ function sl({
2978
3001
  toggleTheme: () => {
2979
3002
  d((b) => {
2980
3003
  const S = (o[b] ?? u).mode === "light" ? "dark" : "light";
2981
- return $s(o, S, S) ?? b;
3004
+ return Os(o, S, S) ?? b;
2982
3005
  });
2983
3006
  }
2984
3007
  }),
@@ -2986,13 +3009,13 @@ function sl({
2986
3009
  );
2987
3010
  return /* @__PURE__ */ a(Er.Provider, { value: p, children: e });
2988
3011
  }
2989
- function il() {
3012
+ function cl() {
2990
3013
  const e = ye(Er);
2991
3014
  if (!e)
2992
3015
  throw new Error("useTheme must be used within ThemeProvider.");
2993
3016
  return e;
2994
3017
  }
2995
- var Os = Object.freeze({
3018
+ var Bs = Object.freeze({
2996
3019
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
2997
3020
  position: "absolute",
2998
3021
  border: 0,
@@ -3004,18 +3027,18 @@ var Os = Object.freeze({
3004
3027
  clip: "rect(0, 0, 0, 0)",
3005
3028
  whiteSpace: "nowrap",
3006
3029
  wordWrap: "normal"
3007
- }), Bs = "VisuallyHidden", Lt = _.forwardRef(
3030
+ }), zs = "VisuallyHidden", It = _.forwardRef(
3008
3031
  (e, t) => /* @__PURE__ */ a(
3009
3032
  V.span,
3010
3033
  {
3011
3034
  ...e,
3012
3035
  ref: t,
3013
- style: { ...Os, ...e.style }
3036
+ style: { ...Bs, ...e.style }
3014
3037
  }
3015
3038
  )
3016
3039
  );
3017
- Lt.displayName = Bs;
3018
- var It = "ToastProvider", [Mt, zs, Us] = ir("Toast"), [Tr] = we("Toast", [Us]), [Ws, Ze] = Tr(It), Cr = (e) => {
3040
+ It.displayName = zs;
3041
+ var Mt = "ToastProvider", [$t, Us, Ws] = ir("Toast"), [Tr] = we("Toast", [Ws]), [Hs, Ze] = Tr(Mt), Cr = (e) => {
3019
3042
  const {
3020
3043
  __scopeToast: t,
3021
3044
  label: n = "Notification",
@@ -3025,9 +3048,9 @@ var It = "ToastProvider", [Mt, zs, Us] = ir("Toast"), [Tr] = we("Toast", [Us]),
3025
3048
  children: l
3026
3049
  } = e, [i, d] = _.useState(null), [c, u] = _.useState(0), p = _.useRef(!1), b = _.useRef(!1);
3027
3050
  return n.trim() || console.error(
3028
- `Invalid prop \`label\` supplied to \`${It}\`. Expected non-empty \`string\`.`
3029
- ), /* @__PURE__ */ a(Mt.Provider, { scope: t, children: /* @__PURE__ */ a(
3030
- Ws,
3051
+ `Invalid prop \`label\` supplied to \`${Mt}\`. Expected non-empty \`string\`.`
3052
+ ), /* @__PURE__ */ a($t.Provider, { scope: t, children: /* @__PURE__ */ a(
3053
+ Hs,
3031
3054
  {
3032
3055
  scope: t,
3033
3056
  label: n,
@@ -3045,15 +3068,15 @@ var It = "ToastProvider", [Mt, zs, Us] = ir("Toast"), [Tr] = we("Toast", [Us]),
3045
3068
  }
3046
3069
  ) });
3047
3070
  };
3048
- Cr.displayName = It;
3049
- var Ar = "ToastViewport", Hs = ["F8"], gt = "toast.viewportPause", bt = "toast.viewportResume", Pr = _.forwardRef(
3071
+ Cr.displayName = Mt;
3072
+ var Ar = "ToastViewport", Gs = ["F8"], gt = "toast.viewportPause", bt = "toast.viewportResume", Pr = _.forwardRef(
3050
3073
  (e, t) => {
3051
3074
  const {
3052
3075
  __scopeToast: n,
3053
- hotkey: r = Hs,
3076
+ hotkey: r = Gs,
3054
3077
  label: o = "Notifications ({hotkey})",
3055
3078
  ...s
3056
- } = e, l = Ze(Ar, n), i = zs(n), d = _.useRef(null), c = _.useRef(null), u = _.useRef(null), p = _.useRef(null), b = te(t, p, l.onViewportChange), w = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = l.toastCount > 0;
3079
+ } = e, l = Ze(Ar, n), i = Us(n), d = _.useRef(null), c = _.useRef(null), u = _.useRef(null), p = _.useRef(null), b = te(t, p, l.onViewportChange), w = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = l.toastCount > 0;
3057
3080
  _.useEffect(() => {
3058
3081
  const h = (y) => {
3059
3082
  var f;
@@ -3086,7 +3109,7 @@ var Ar = "ToastViewport", Hs = ["F8"], gt = "toast.viewportPause", bt = "toast.v
3086
3109
  const g = _.useCallback(
3087
3110
  ({ tabbingDirection: h }) => {
3088
3111
  const v = i().map((f) => {
3089
- const m = f.ref.current, x = [m, ...ri(m)];
3112
+ const m = f.ref.current, x = [m, ...ai(m)];
3090
3113
  return h === "forwards" ? x : x.reverse();
3091
3114
  });
3092
3115
  return (h === "forwards" ? v.reverse() : v).flat();
@@ -3132,7 +3155,7 @@ var Ar = "ToastViewport", Hs = ["F8"], gt = "toast.viewportPause", bt = "toast.v
3132
3155
  }
3133
3156
  }
3134
3157
  ),
3135
- /* @__PURE__ */ a(Mt.Slot, { scope: n, children: /* @__PURE__ */ a(V.ol, { tabIndex: -1, ...s, ref: b }) }),
3158
+ /* @__PURE__ */ a($t.Slot, { scope: n, children: /* @__PURE__ */ a(V.ol, { tabIndex: -1, ...s, ref: b }) }),
3136
3159
  S && /* @__PURE__ */ a(
3137
3160
  xt,
3138
3161
  {
@@ -3155,7 +3178,7 @@ var Rr = "ToastFocusProxy", xt = _.forwardRef(
3155
3178
  (e, t) => {
3156
3179
  const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, s = Ze(Rr, n);
3157
3180
  return /* @__PURE__ */ a(
3158
- Lt,
3181
+ It,
3159
3182
  {
3160
3183
  tabIndex: 0,
3161
3184
  ...o,
@@ -3171,16 +3194,16 @@ var Rr = "ToastFocusProxy", xt = _.forwardRef(
3171
3194
  }
3172
3195
  );
3173
3196
  xt.displayName = Rr;
3174
- var Pe = "Toast", Gs = "toast.swipeStart", js = "toast.swipeMove", Ks = "toast.swipeCancel", Vs = "toast.swipeEnd", Dr = _.forwardRef(
3197
+ var Re = "Toast", js = "toast.swipeStart", Ks = "toast.swipeMove", Vs = "toast.swipeCancel", qs = "toast.swipeEnd", Dr = _.forwardRef(
3175
3198
  (e, t) => {
3176
- const { forceMount: n, open: r, defaultOpen: o, onOpenChange: s, ...l } = e, [i, d] = Ce({
3199
+ const { forceMount: n, open: r, defaultOpen: o, onOpenChange: s, ...l } = e, [i, d] = Ae({
3177
3200
  prop: r,
3178
3201
  defaultProp: o ?? !0,
3179
3202
  onChange: s,
3180
- caller: Pe
3203
+ caller: Re
3181
3204
  });
3182
3205
  return /* @__PURE__ */ a(ke, { present: n || i, children: /* @__PURE__ */ a(
3183
- Xs,
3206
+ Zs,
3184
3207
  {
3185
3208
  open: i,
3186
3209
  ...l,
@@ -3206,11 +3229,11 @@ var Pe = "Toast", Gs = "toast.swipeStart", js = "toast.swipeMove", Ks = "toast.s
3206
3229
  ) });
3207
3230
  }
3208
3231
  );
3209
- Dr.displayName = Pe;
3210
- var [qs, Ys] = Tr(Pe, {
3232
+ Dr.displayName = Re;
3233
+ var [Ys, Xs] = Tr(Re, {
3211
3234
  onClose() {
3212
3235
  }
3213
- }), Xs = _.forwardRef(
3236
+ }), Zs = _.forwardRef(
3214
3237
  (e, t) => {
3215
3238
  const {
3216
3239
  __scopeToast: n,
@@ -3226,7 +3249,7 @@ var [qs, Ys] = Tr(Pe, {
3226
3249
  onSwipeCancel: b,
3227
3250
  onSwipeEnd: w,
3228
3251
  ...S
3229
- } = e, g = Ze(Pe, n), [h, y] = _.useState(null), v = te(t, (D) => y(D)), f = _.useRef(null), m = _.useRef(null), x = o || g.duration, N = _.useRef(0), E = _.useRef(x), C = _.useRef(0), { onToastAdd: A, onToastRemove: R } = g, P = oe(() => {
3252
+ } = e, g = Ze(Re, n), [h, y] = _.useState(null), v = te(t, (D) => y(D)), f = _.useRef(null), m = _.useRef(null), x = o || g.duration, N = _.useRef(0), E = _.useRef(x), C = _.useRef(0), { onToastAdd: A, onToastRemove: R } = g, P = oe(() => {
3230
3253
  var U;
3231
3254
  (h == null ? void 0 : h.contains(document.activeElement)) && ((U = g.viewport) == null || U.focus()), l();
3232
3255
  }), L = _.useCallback(
@@ -3254,7 +3277,7 @@ var [qs, Ys] = Tr(Pe, {
3254
3277
  const $ = _.useMemo(() => h ? Or(h) : null, [h]);
3255
3278
  return g.viewport ? /* @__PURE__ */ k(ee, { children: [
3256
3279
  $ && /* @__PURE__ */ a(
3257
- Zs,
3280
+ Qs,
3258
3281
  {
3259
3282
  __scopeToast: n,
3260
3283
  role: "status",
@@ -3262,8 +3285,8 @@ var [qs, Ys] = Tr(Pe, {
3262
3285
  children: $
3263
3286
  }
3264
3287
  ),
3265
- /* @__PURE__ */ a(qs, { scope: n, onClose: P, children: hn.createPortal(
3266
- /* @__PURE__ */ a(Mt.ItemSlot, { scope: n, children: /* @__PURE__ */ a(
3288
+ /* @__PURE__ */ a(Ys, { scope: n, onClose: P, children: gn.createPortal(
3289
+ /* @__PURE__ */ a($t.ItemSlot, { scope: n, children: /* @__PURE__ */ a(
3267
3290
  Za,
3268
3291
  {
3269
3292
  asChild: !0,
@@ -3288,9 +3311,9 @@ var [qs, Ys] = Tr(Pe, {
3288
3311
  onPointerMove: G(e.onPointerMove, (D) => {
3289
3312
  if (!f.current) return;
3290
3313
  const U = D.clientX - f.current.x, H = D.clientY - f.current.y, Z = !!m.current, j = ["left", "right"].includes(g.swipeDirection), X = ["left", "up"].includes(g.swipeDirection) ? Math.min : Math.max, M = j ? X(0, U) : 0, q = j ? 0 : X(0, H), F = D.pointerType === "touch" ? 10 : 2, O = { x: M, y: q }, W = { originalEvent: D, delta: O };
3291
- Z ? (m.current = O, $e(js, p, W, {
3314
+ Z ? (m.current = O, Oe(Ks, p, W, {
3292
3315
  discrete: !1
3293
- })) : tn(O, g.swipeDirection, F) ? (m.current = O, $e(Gs, u, W, {
3316
+ })) : nn(O, g.swipeDirection, F) ? (m.current = O, Oe(js, u, W, {
3294
3317
  discrete: !1
3295
3318
  }), D.target.setPointerCapture(D.pointerId)) : (Math.abs(U) > F || Math.abs(H) > F) && (f.current = null);
3296
3319
  }),
@@ -3298,10 +3321,10 @@ var [qs, Ys] = Tr(Pe, {
3298
3321
  const U = m.current, H = D.target;
3299
3322
  if (H.hasPointerCapture(D.pointerId) && H.releasePointerCapture(D.pointerId), m.current = null, f.current = null, U) {
3300
3323
  const Z = D.currentTarget, j = { originalEvent: D, delta: U };
3301
- tn(U, g.swipeDirection, g.swipeThreshold) ? $e(Vs, w, j, {
3324
+ nn(U, g.swipeDirection, g.swipeThreshold) ? Oe(qs, w, j, {
3302
3325
  discrete: !0
3303
- }) : $e(
3304
- Ks,
3326
+ }) : Oe(
3327
+ Vs,
3305
3328
  b,
3306
3329
  j,
3307
3330
  {
@@ -3320,42 +3343,42 @@ var [qs, Ys] = Tr(Pe, {
3320
3343
  ) })
3321
3344
  ] }) : null;
3322
3345
  }
3323
- ), Zs = (e) => {
3324
- const { __scopeToast: t, children: n, ...r } = e, o = Ze(Pe, t), [s, l] = _.useState(!1), [i, d] = _.useState(!1);
3325
- return ti(() => l(!0)), _.useEffect(() => {
3346
+ ), Qs = (e) => {
3347
+ const { __scopeToast: t, children: n, ...r } = e, o = Ze(Re, t), [s, l] = _.useState(!1), [i, d] = _.useState(!1);
3348
+ return ni(() => l(!0)), _.useEffect(() => {
3326
3349
  const c = window.setTimeout(() => d(!0), 1e3);
3327
3350
  return () => window.clearTimeout(c);
3328
- }, []), i ? null : /* @__PURE__ */ a(wt, { asChild: !0, children: /* @__PURE__ */ a(Lt, { ...r, children: s && /* @__PURE__ */ k(ee, { children: [
3351
+ }, []), i ? null : /* @__PURE__ */ a(kt, { asChild: !0, children: /* @__PURE__ */ a(It, { ...r, children: s && /* @__PURE__ */ k(ee, { children: [
3329
3352
  o.label,
3330
3353
  " ",
3331
3354
  n
3332
3355
  ] }) }) });
3333
- }, Qs = "ToastTitle", Fr = _.forwardRef(
3356
+ }, Js = "ToastTitle", Fr = _.forwardRef(
3334
3357
  (e, t) => {
3335
3358
  const { __scopeToast: n, ...r } = e;
3336
3359
  return /* @__PURE__ */ a(V.div, { ...r, ref: t });
3337
3360
  }
3338
3361
  );
3339
- Fr.displayName = Qs;
3340
- var Js = "ToastDescription", Lr = _.forwardRef(
3362
+ Fr.displayName = Js;
3363
+ var ei = "ToastDescription", Lr = _.forwardRef(
3341
3364
  (e, t) => {
3342
3365
  const { __scopeToast: n, ...r } = e;
3343
3366
  return /* @__PURE__ */ a(V.div, { ...r, ref: t });
3344
3367
  }
3345
3368
  );
3346
- Lr.displayName = Js;
3347
- var Ir = "ToastAction", ei = _.forwardRef(
3369
+ Lr.displayName = ei;
3370
+ var Ir = "ToastAction", ti = _.forwardRef(
3348
3371
  (e, t) => {
3349
3372
  const { altText: n, ...r } = e;
3350
- return n.trim() ? /* @__PURE__ */ a($r, { altText: n, asChild: !0, children: /* @__PURE__ */ a($t, { ...r, ref: t }) }) : (console.error(
3373
+ return n.trim() ? /* @__PURE__ */ a($r, { altText: n, asChild: !0, children: /* @__PURE__ */ a(Ot, { ...r, ref: t }) }) : (console.error(
3351
3374
  `Invalid prop \`altText\` supplied to \`${Ir}\`. Expected non-empty \`string\`.`
3352
3375
  ), null);
3353
3376
  }
3354
3377
  );
3355
- ei.displayName = Ir;
3356
- var Mr = "ToastClose", $t = _.forwardRef(
3378
+ ti.displayName = Ir;
3379
+ var Mr = "ToastClose", Ot = _.forwardRef(
3357
3380
  (e, t) => {
3358
- const { __scopeToast: n, ...r } = e, o = Ys(Mr, n);
3381
+ const { __scopeToast: n, ...r } = e, o = Xs(Mr, n);
3359
3382
  return /* @__PURE__ */ a($r, { asChild: !0, children: /* @__PURE__ */ a(
3360
3383
  V.button,
3361
3384
  {
@@ -3367,7 +3390,7 @@ var Mr = "ToastClose", $t = _.forwardRef(
3367
3390
  ) });
3368
3391
  }
3369
3392
  );
3370
- $t.displayName = Mr;
3393
+ Ot.displayName = Mr;
3371
3394
  var $r = _.forwardRef((e, t) => {
3372
3395
  const { __scopeToast: n, altText: r, ...o } = e;
3373
3396
  return /* @__PURE__ */ a(
@@ -3383,7 +3406,7 @@ var $r = _.forwardRef((e, t) => {
3383
3406
  function Or(e) {
3384
3407
  const t = [];
3385
3408
  return Array.from(e.childNodes).forEach((r) => {
3386
- if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), ni(r)) {
3409
+ if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), ri(r)) {
3387
3410
  const o = r.ariaHidden || r.hidden || r.style.display === "none", s = r.dataset.radixToastAnnounceExclude === "";
3388
3411
  if (!o)
3389
3412
  if (s) {
@@ -3394,15 +3417,15 @@ function Or(e) {
3394
3417
  }
3395
3418
  }), t;
3396
3419
  }
3397
- function $e(e, t, n, { discrete: r }) {
3420
+ function Oe(e, t, n, { discrete: r }) {
3398
3421
  const o = n.originalEvent.currentTarget, s = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
3399
3422
  t && o.addEventListener(e, t, { once: !0 }), r ? Sn(o, s) : o.dispatchEvent(s);
3400
3423
  }
3401
- var tn = (e, t, n = 0) => {
3424
+ var nn = (e, t, n = 0) => {
3402
3425
  const r = Math.abs(e.x), o = Math.abs(e.y), s = r > o;
3403
3426
  return t === "left" || t === "right" ? s && r > n : !s && o > n;
3404
3427
  };
3405
- function ti(e = () => {
3428
+ function ni(e = () => {
3406
3429
  }) {
3407
3430
  const t = oe(e);
3408
3431
  pe(() => {
@@ -3412,10 +3435,10 @@ function ti(e = () => {
3412
3435
  };
3413
3436
  }, [t]);
3414
3437
  }
3415
- function ni(e) {
3438
+ function ri(e) {
3416
3439
  return e.nodeType === e.ELEMENT_NODE;
3417
3440
  }
3418
- function ri(e) {
3441
+ function ai(e) {
3419
3442
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
3420
3443
  acceptNode: (r) => {
3421
3444
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -3429,28 +3452,28 @@ function lt(e) {
3429
3452
  const t = document.activeElement;
3430
3453
  return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
3431
3454
  }
3432
- var ai = Cr, oi = Pr, si = Dr, ii = Fr, li = Lr, ci = $t;
3455
+ var oi = Cr, si = Pr, ii = Dr, li = Fr, ci = Lr, di = Ot;
3433
3456
  const Br = _e(null);
3434
- let di = 1;
3435
- const ui = {
3457
+ let ui = 1;
3458
+ const pi = {
3436
3459
  info: /* @__PURE__ */ a(fa, { size: 15 }),
3437
3460
  success: /* @__PURE__ */ a(sa, { size: 15 }),
3438
3461
  warning: /* @__PURE__ */ a(ba, { size: 15 }),
3439
3462
  danger: /* @__PURE__ */ a(aa, { size: 15 })
3440
3463
  };
3441
- function ll({ children: e }) {
3464
+ function dl({ children: e }) {
3442
3465
  const [t, n] = I([]), r = Ne(
3443
3466
  () => ({
3444
3467
  push: (o) => {
3445
- n((s) => [...s, { id: di += 1, tone: "info", ...o }]);
3468
+ n((s) => [...s, { id: ui += 1, tone: "info", ...o }]);
3446
3469
  }
3447
3470
  }),
3448
3471
  []
3449
3472
  );
3450
- return /* @__PURE__ */ a(Br.Provider, { value: r, children: /* @__PURE__ */ k(ai, { swipeDirection: "right", children: [
3473
+ return /* @__PURE__ */ a(Br.Provider, { value: r, children: /* @__PURE__ */ k(oi, { swipeDirection: "right", children: [
3451
3474
  e,
3452
3475
  t.map((o) => /* @__PURE__ */ k(
3453
- si,
3476
+ ii,
3454
3477
  {
3455
3478
  className: T("vx-toast", `vx-toast--${o.tone ?? "info"}`),
3456
3479
  duration: 4500,
@@ -3461,26 +3484,26 @@ function ll({ children: e }) {
3461
3484
  children: [
3462
3485
  /* @__PURE__ */ k("div", { className: "vx-toast__content", children: [
3463
3486
  /* @__PURE__ */ k("div", { className: "vx-toast__header", children: [
3464
- /* @__PURE__ */ a("span", { className: "vx-toast__icon", "aria-hidden": "true", children: ui[o.tone ?? "info"] }),
3465
- /* @__PURE__ */ a(ii, { className: "vx-toast__title", children: o.title })
3487
+ /* @__PURE__ */ a("span", { className: "vx-toast__icon", "aria-hidden": "true", children: pi[o.tone ?? "info"] }),
3488
+ /* @__PURE__ */ a(li, { className: "vx-toast__title", children: o.title })
3466
3489
  ] }),
3467
- o.description ? /* @__PURE__ */ a(li, { className: "vx-toast__description", children: o.description }) : null
3490
+ o.description ? /* @__PURE__ */ a(ci, { className: "vx-toast__description", children: o.description }) : null
3468
3491
  ] }),
3469
- /* @__PURE__ */ a(ci, { className: "vx-toast__close", "aria-label": "Dismiss notification", children: /* @__PURE__ */ a(le, { size: 14 }) })
3492
+ /* @__PURE__ */ a(di, { className: "vx-toast__close", "aria-label": "Dismiss notification", children: /* @__PURE__ */ a(le, { size: 14 }) })
3470
3493
  ]
3471
3494
  },
3472
3495
  o.id
3473
3496
  )),
3474
- /* @__PURE__ */ a(oi, { className: "vx-toast__viewport" })
3497
+ /* @__PURE__ */ a(si, { className: "vx-toast__viewport" })
3475
3498
  ] }) });
3476
3499
  }
3477
- function cl() {
3500
+ function ul() {
3478
3501
  const e = ye(Br);
3479
3502
  if (!e)
3480
3503
  throw new Error("useToast must be used within ToastProvider.");
3481
3504
  return e;
3482
3505
  }
3483
- function dl({
3506
+ function pl({
3484
3507
  as: e = "p",
3485
3508
  variant: t = "default",
3486
3509
  size: n = "base",
@@ -3504,7 +3527,7 @@ function dl({
3504
3527
  }
3505
3528
  );
3506
3529
  }
3507
- function ul({
3530
+ function vl({
3508
3531
  as: e,
3509
3532
  level: t = 2,
3510
3533
  variant: n = "default",
@@ -3529,7 +3552,7 @@ function ul({
3529
3552
  }
3530
3553
  );
3531
3554
  }
3532
- function pl({
3555
+ function fl({
3533
3556
  options: e,
3534
3557
  value: t,
3535
3558
  defaultValue: n,
@@ -3545,7 +3568,7 @@ function pl({
3545
3568
  searchable: b = !0,
3546
3569
  className: w
3547
3570
  }) {
3548
- const S = t !== void 0, [g, h] = I(n), y = S ? t : g, [v, f] = I(!1), [m, x] = I(""), N = B(null), E = B(null), C = B(null), A = B(null), R = fn(), [P, L] = I(null), [$, D] = I(!1), U = e.find((M) => M.value === y), H = e.filter(
3571
+ const S = t !== void 0, [g, h] = I(n), y = S ? t : g, [v, f] = I(!1), [m, x] = I(""), N = B(null), E = B(null), C = B(null), A = B(null), R = mn(), [P, L] = I(null), [$, D] = I(!1), U = e.find((M) => M.value === y), H = e.filter(
3549
3572
  (M) => M.label.toLowerCase().includes(m.toLowerCase())
3550
3573
  ), Z = typeof b == "number" ? e.length > b : b;
3551
3574
  z(() => {
@@ -3577,7 +3600,7 @@ function pl({
3577
3600
  return document.body.style.overflow = "hidden", () => {
3578
3601
  document.body.style.overflow = "";
3579
3602
  };
3580
- }, [v]), mn(() => {
3603
+ }, [v]), hn(() => {
3581
3604
  var W;
3582
3605
  if (!v || !E.current || window.matchMedia("(max-width: 640px)").matches) {
3583
3606
  L(null), D(!1);
@@ -3633,7 +3656,7 @@ function pl({
3633
3656
  }
3634
3657
  ),
3635
3658
  /* @__PURE__ */ a(
3636
- Ee,
3659
+ Te,
3637
3660
  {
3638
3661
  size: 14,
3639
3662
  className: T("vx-select__chevron", v && "vx-select__chevron--open")
@@ -3701,7 +3724,7 @@ function pl({
3701
3724
  })()
3702
3725
  ] });
3703
3726
  }
3704
- function vl({ className: e, label: t, description: n, indeterminate: r, ...o }) {
3727
+ function ml({ className: e, label: t, description: n, indeterminate: r, ...o }) {
3705
3728
  return /* @__PURE__ */ k("label", { className: T("vx-checkbox", o.disabled && "vx-checkbox--disabled"), children: [
3706
3729
  /* @__PURE__ */ k("span", { className: "vx-checkbox__control-wrap", children: [
3707
3730
  /* @__PURE__ */ a(
@@ -3723,7 +3746,7 @@ function vl({ className: e, label: t, description: n, indeterminate: r, ...o })
3723
3746
  ] }) : null
3724
3747
  ] });
3725
3748
  }
3726
- function fl({
3749
+ function hl({
3727
3750
  options: e,
3728
3751
  value: t,
3729
3752
  defaultValue: n,
@@ -3795,7 +3818,7 @@ function fl({
3795
3818
  }
3796
3819
  );
3797
3820
  }
3798
- function ml({ className: e, label: t, description: n, ...r }) {
3821
+ function gl({ className: e, label: t, description: n, ...r }) {
3799
3822
  return /* @__PURE__ */ k("label", { className: T("vx-radio", r.disabled && "vx-radio--disabled"), children: [
3800
3823
  /* @__PURE__ */ k("span", { className: "vx-radio__control-wrap", children: [
3801
3824
  /* @__PURE__ */ a("input", { type: "radio", className: T("vx-radio__input", e), ...r }),
@@ -3807,13 +3830,13 @@ function ml({ className: e, label: t, description: n, ...r }) {
3807
3830
  ] }) : null
3808
3831
  ] });
3809
3832
  }
3810
- function hl({ label: e, children: t, className: n }) {
3833
+ function bl({ label: e, children: t, className: n }) {
3811
3834
  return /* @__PURE__ */ k("fieldset", { className: T("vx-radio-group", n), children: [
3812
3835
  e ? /* @__PURE__ */ a("legend", { className: "vx-field-group__label", children: e }) : null,
3813
3836
  /* @__PURE__ */ a("div", { className: "vx-radio-group__items", children: t })
3814
3837
  ] });
3815
3838
  }
3816
- function gl({ className: e, label: t, hint: n, resize: r = "vertical", style: o, ...s }) {
3839
+ function xl({ className: e, label: t, hint: n, resize: r = "vertical", style: o, ...s }) {
3817
3840
  return /* @__PURE__ */ k("label", { className: "vx-field-group", children: [
3818
3841
  t ? /* @__PURE__ */ a("span", { className: "vx-field-group__label", children: t }) : null,
3819
3842
  /* @__PURE__ */ a(
@@ -3827,7 +3850,7 @@ function gl({ className: e, label: t, hint: n, resize: r = "vertical", style: o,
3827
3850
  n ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: n }) : null
3828
3851
  ] });
3829
3852
  }
3830
- function bl({ className: e, label: t, showValue: n = !1, hint: r, value: o, defaultValue: s, ...l }) {
3853
+ function yl({ className: e, label: t, showValue: n = !1, hint: r, value: o, defaultValue: s, ...l }) {
3831
3854
  return /* @__PURE__ */ k("label", { className: "vx-field-group", children: [
3832
3855
  t || n ? /* @__PURE__ */ k("span", { className: "vx-slider__header", children: [
3833
3856
  t ? /* @__PURE__ */ a("span", { className: "vx-field-group__label vx-slider__label", children: t }) : null,
@@ -3846,9 +3869,9 @@ function bl({ className: e, label: t, showValue: n = !1, hint: r, value: o, defa
3846
3869
  r ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: r }) : null
3847
3870
  ] });
3848
3871
  }
3849
- const pi = { sm: 16, md: 24, lg: 36 };
3850
- function xl({ className: e, size: t = "md", label: n = "Loading…", ...r }) {
3851
- const o = pi[t];
3872
+ const vi = { sm: 16, md: 24, lg: 36 };
3873
+ function _l({ className: e, size: t = "md", label: n = "Loading…", ...r }) {
3874
+ const o = vi[t];
3852
3875
  return /* @__PURE__ */ a(
3853
3876
  "span",
3854
3877
  {
@@ -3881,7 +3904,7 @@ function xl({ className: e, size: t = "md", label: n = "Loading…", ...r }) {
3881
3904
  }
3882
3905
  );
3883
3906
  }
3884
- function yl({
3907
+ function wl({
3885
3908
  className: e,
3886
3909
  value: t = 0,
3887
3910
  max: n = 100,
@@ -3926,7 +3949,7 @@ function yl({
3926
3949
  )
3927
3950
  ] });
3928
3951
  }
3929
- const vi = {
3952
+ const fi = {
3930
3953
  info: /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
3931
3954
  /* @__PURE__ */ a("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
3932
3955
  /* @__PURE__ */ a("path", { d: "M8 7v4M8 5.5v.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
@@ -3944,7 +3967,7 @@ const vi = {
3944
3967
  /* @__PURE__ */ a("path", { d: "M10 6L6 10M6 6l4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
3945
3968
  ] })
3946
3969
  };
3947
- function _l({
3970
+ function kl({
3948
3971
  className: e,
3949
3972
  variant: t = "info",
3950
3973
  title: n,
@@ -3960,7 +3983,7 @@ function _l({
3960
3983
  className: T("vx-alert", `vx-alert--${t}`, e),
3961
3984
  ...l,
3962
3985
  children: [
3963
- /* @__PURE__ */ a("span", { className: "vx-alert__icon", children: r ?? vi[t] }),
3986
+ /* @__PURE__ */ a("span", { className: "vx-alert__icon", children: r ?? fi[t] }),
3964
3987
  /* @__PURE__ */ k("div", { className: "vx-alert__body", children: [
3965
3988
  n ? /* @__PURE__ */ a("p", { className: "vx-alert__title", children: n }) : null,
3966
3989
  s ? /* @__PURE__ */ a("div", { className: "vx-alert__content", children: s }) : null
@@ -3970,7 +3993,7 @@ function _l({
3970
3993
  }
3971
3994
  );
3972
3995
  }
3973
- function wl({
3996
+ function Nl({
3974
3997
  className: e,
3975
3998
  width: t,
3976
3999
  height: n,
@@ -4003,7 +4026,7 @@ function wl({
4003
4026
  }
4004
4027
  );
4005
4028
  }
4006
- function kl({ content: e, placement: t = "top", delay: n = 600, children: r, className: o }) {
4029
+ function Sl({ content: e, placement: t = "top", delay: n = 600, children: r, className: o }) {
4007
4030
  const [s, l] = I(!1), i = B(null), d = Y(() => {
4008
4031
  i.current = setTimeout(() => l(!0), n);
4009
4032
  }, [n]), c = Y(() => {
@@ -4016,7 +4039,7 @@ function kl({ content: e, placement: t = "top", delay: n = 600, children: r, cla
4016
4039
  s ? /* @__PURE__ */ a("span", { role: "tooltip", className: T("vx-tooltip", `vx-tooltip--${t}`), children: e }) : null
4017
4040
  ] });
4018
4041
  }
4019
- function Nl({
4042
+ function El({
4020
4043
  content: e,
4021
4044
  placement: t = "bottom",
4022
4045
  trigger: n = "click",
@@ -4045,7 +4068,7 @@ function Nl({
4045
4068
  u ? /* @__PURE__ */ a("div", { className: T("vx-popover", `vx-popover--${t}`), role: "dialog", children: e }) : null
4046
4069
  ] });
4047
4070
  }
4048
- function Sl({
4071
+ function Tl({
4049
4072
  trigger: e,
4050
4073
  groups: t,
4051
4074
  items: n,
@@ -4111,25 +4134,25 @@ function Sl({
4111
4134
  ] }, h)) }) : null
4112
4135
  ] });
4113
4136
  }
4114
- const fi = () => /* @__PURE__ */ a("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M4.5 2.5L7.5 6l-3 3.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
4115
- function El({ items: e, separator: t, className: n }) {
4137
+ const mi = () => /* @__PURE__ */ a("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M4.5 2.5L7.5 6l-3 3.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
4138
+ function Cl({ items: e, separator: t, className: n }) {
4116
4139
  return /* @__PURE__ */ a("nav", { "aria-label": "Breadcrumb", className: T("vx-breadcrumb", n), children: /* @__PURE__ */ a("ol", { className: "vx-breadcrumb__list", children: e.map((r, o) => {
4117
4140
  const s = o === e.length - 1;
4118
4141
  return /* @__PURE__ */ k("li", { className: "vx-breadcrumb__item", children: [
4119
4142
  s ? /* @__PURE__ */ a("span", { className: "vx-breadcrumb__current", "aria-current": "page", children: r.label }) : r.href ? /* @__PURE__ */ a("a", { href: r.href, className: "vx-breadcrumb__link", children: r.label }) : /* @__PURE__ */ a("button", { type: "button", className: "vx-breadcrumb__link", onClick: r.onClick, children: r.label }),
4120
- s ? null : /* @__PURE__ */ a("span", { className: "vx-breadcrumb__sep", "aria-hidden": "true", children: t ?? /* @__PURE__ */ a(fi, {}) })
4143
+ s ? null : /* @__PURE__ */ a("span", { className: "vx-breadcrumb__sep", "aria-hidden": "true", children: t ?? /* @__PURE__ */ a(mi, {}) })
4121
4144
  ] }, o);
4122
4145
  }) }) });
4123
4146
  }
4124
- function Oe(e, t) {
4147
+ function Be(e, t) {
4125
4148
  return Array.from({ length: t - e + 1 }, (n, r) => e + r);
4126
4149
  }
4127
- function Tl({ page: e, total: t, pageSize: n = 10, siblingCount: r = 1, onChange: o, className: s }) {
4150
+ function Al({ page: e, total: t, pageSize: n = 10, siblingCount: r = 1, onChange: o, className: s }) {
4128
4151
  const l = Math.max(1, Math.ceil(t / n)), i = (() => {
4129
4152
  const d = r * 2 + 5;
4130
- if (l <= d) return Oe(1, l);
4153
+ if (l <= d) return Be(1, l);
4131
4154
  const c = Math.max(e - r, 1), u = Math.min(e + r, l), p = c > 3, b = u < l - 2;
4132
- return !p && b ? [...Oe(1, 3 + r * 2), "…", l] : p && !b ? [1, "…", ...Oe(l - (2 + r * 2), l)] : [1, "…", ...Oe(c, u), "…", l];
4155
+ return !p && b ? [...Be(1, 3 + r * 2), "…", l] : p && !b ? [1, "…", ...Be(l - (2 + r * 2), l)] : [1, "…", ...Be(c, u), "…", l];
4133
4156
  })();
4134
4157
  return /* @__PURE__ */ k("nav", { role: "navigation", "aria-label": "Pagination", className: T("vx-pagination", s), children: [
4135
4158
  /* @__PURE__ */ a(
@@ -4169,7 +4192,7 @@ function Tl({ page: e, total: t, pageSize: n = 10, siblingCount: r = 1, onChange
4169
4192
  )
4170
4193
  ] });
4171
4194
  }
4172
- function Cl({ items: e, multiple: t = !1, defaultOpen: n = [], className: r }) {
4195
+ function Pl({ items: e, multiple: t = !1, defaultOpen: n = [], className: r }) {
4173
4196
  const [o, s] = I(new Set(n));
4174
4197
  function l(i) {
4175
4198
  s((d) => {
@@ -4198,7 +4221,7 @@ function Cl({ items: e, multiple: t = !1, defaultOpen: n = [], className: r }) {
4198
4221
  ] }, i.key);
4199
4222
  }) });
4200
4223
  }
4201
- function Al({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
4224
+ function Rl({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
4202
4225
  return /* @__PURE__ */ a(
4203
4226
  "hr",
4204
4227
  {
@@ -4209,18 +4232,18 @@ function Al({ className: e, orientation: t = "horizontal", decorative: n = !0, .
4209
4232
  }
4210
4233
  );
4211
4234
  }
4212
- function mi(e) {
4235
+ function hi(e) {
4213
4236
  const t = e.trim().split(/\s+/);
4214
4237
  return t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
4215
4238
  }
4216
- const nn = [0, 30, 60, 120, 160, 200, 240, 270, 300, 340];
4217
- function hi(e) {
4239
+ const rn = [0, 30, 60, 120, 160, 200, 240, 270, 300, 340];
4240
+ function gi(e) {
4218
4241
  let t = 0;
4219
4242
  for (let n = 0; n < e.length; n++) t += e.charCodeAt(n);
4220
- return nn[t % nn.length];
4243
+ return rn[t % rn.length];
4221
4244
  }
4222
- function Pl({ src: e, name: t, size: n = "md", shape: r = "circle", fallback: o, className: s, alt: l, ...i }) {
4223
- const [d, c] = I(!1), u = e && !d, p = t ?? l ?? "", b = p ? hi(p) : 200;
4245
+ function Dl({ src: e, name: t, size: n = "md", shape: r = "circle", fallback: o, className: s, alt: l, ...i }) {
4246
+ const [d, c] = I(!1), u = e && !d, p = t ?? l ?? "", b = p ? gi(p) : 200;
4224
4247
  return /* @__PURE__ */ a(
4225
4248
  "span",
4226
4249
  {
@@ -4236,14 +4259,14 @@ function Pl({ src: e, name: t, size: n = "md", shape: r = "circle", fallback: o,
4236
4259
  onError: () => c(!0),
4237
4260
  ...i
4238
4261
  }
4239
- ) : o ? /* @__PURE__ */ a("span", { className: "vx-avatar__fallback", children: o }) : p ? /* @__PURE__ */ a("span", { className: "vx-avatar__initials", children: mi(p) }) : /* @__PURE__ */ k("svg", { className: "vx-avatar__placeholder", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
4262
+ ) : o ? /* @__PURE__ */ a("span", { className: "vx-avatar__fallback", children: o }) : p ? /* @__PURE__ */ a("span", { className: "vx-avatar__initials", children: hi(p) }) : /* @__PURE__ */ k("svg", { className: "vx-avatar__placeholder", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
4240
4263
  /* @__PURE__ */ a("circle", { cx: "12", cy: "8", r: "4", stroke: "currentColor", strokeWidth: "1.5" }),
4241
4264
  /* @__PURE__ */ a("path", { d: "M4 20c0-4 3.58-7 8-7s8 3 8 7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
4242
4265
  ] })
4243
4266
  }
4244
4267
  );
4245
4268
  }
4246
- function Rl({
4269
+ function Fl({
4247
4270
  columns: e,
4248
4271
  data: t,
4249
4272
  size: n = "md",
@@ -4318,24 +4341,24 @@ function Rl({
4318
4341
  }
4319
4342
  ) });
4320
4343
  }
4321
- function Dl({ topBar: e, bottomNav: t, children: n, className: r }) {
4344
+ function Ll({ topBar: e, bottomNav: t, children: n, className: r }) {
4322
4345
  return /* @__PURE__ */ k("div", { className: T("vxm-shell", r), children: [
4323
4346
  e && /* @__PURE__ */ a("div", { className: "vxm-shell__topbar", children: e }),
4324
4347
  /* @__PURE__ */ a("main", { className: "vxm-shell__main", children: n }),
4325
4348
  t && /* @__PURE__ */ a("div", { className: "vxm-shell__bottomnav", children: t })
4326
4349
  ] });
4327
4350
  }
4328
- function Fl({ title: e, leading: t, trailing: n, className: r }) {
4351
+ function Il({ title: e, leading: t, trailing: n, className: r }) {
4329
4352
  return /* @__PURE__ */ k("div", { className: T("vxm-topbar", r), children: [
4330
4353
  /* @__PURE__ */ a("div", { className: "vxm-topbar__leading", children: t }),
4331
4354
  /* @__PURE__ */ a("div", { className: "vxm-topbar__title", children: e }),
4332
4355
  /* @__PURE__ */ a("div", { className: "vxm-topbar__trailing", children: n })
4333
4356
  ] });
4334
4357
  }
4335
- function Ll({ label: e, className: t, children: n, ...r }) {
4358
+ function Ml({ label: e, className: t, children: n, ...r }) {
4336
4359
  return /* @__PURE__ */ a("button", { type: "button", className: T("vxm-icon-btn", t), "aria-label": e, ...r, children: n });
4337
4360
  }
4338
- function Il({ items: e, className: t }) {
4361
+ function $l({ items: e, className: t }) {
4339
4362
  const [n, r] = I(null), o = n ? e.find((l) => l.key === n) : null, s = (l) => {
4340
4363
  var i, d;
4341
4364
  (i = l.submenu) != null && i.length ? r((c) => c === l.key ? null : l.key) : (r(null), (d = l.onSelect) == null || d.call(l));
@@ -4396,7 +4419,7 @@ function Il({ items: e, className: t }) {
4396
4419
  }) })
4397
4420
  ] });
4398
4421
  }
4399
- function Ml({
4422
+ function Ol({
4400
4423
  open: e,
4401
4424
  onClose: t,
4402
4425
  title: n,
@@ -4464,7 +4487,7 @@ function Ml({
4464
4487
  }
4465
4488
  ) : null;
4466
4489
  }
4467
- function $l({ icon: e, destructive: t, className: n, children: r, ...o }) {
4490
+ function Bl({ icon: e, destructive: t, className: n, children: r, ...o }) {
4468
4491
  return /* @__PURE__ */ k(
4469
4492
  "button",
4470
4493
  {
@@ -4478,16 +4501,16 @@ function $l({ icon: e, destructive: t, className: n, children: r, ...o }) {
4478
4501
  }
4479
4502
  );
4480
4503
  }
4481
- function Ol({ className: e, ...t }) {
4504
+ function zl({ className: e, ...t }) {
4482
4505
  return /* @__PURE__ */ a("ul", { className: T("vxm-list", e), role: "list", ...t });
4483
4506
  }
4484
- function Bl({ title: e, className: t, children: n, ...r }) {
4507
+ function Ul({ title: e, className: t, children: n, ...r }) {
4485
4508
  return /* @__PURE__ */ k("div", { className: T("vxm-list-section", t), ...r, children: [
4486
4509
  e && /* @__PURE__ */ a("div", { className: "vxm-list-section__title", children: e }),
4487
4510
  n
4488
4511
  ] });
4489
4512
  }
4490
- function zl({
4513
+ function Wl({
4491
4514
  leading: e,
4492
4515
  trailing: t,
4493
4516
  label: n,
@@ -4505,7 +4528,7 @@ function zl({
4505
4528
  r && /* @__PURE__ */ a("span", { className: "vxm-list-item__description", children: r })
4506
4529
  ] }),
4507
4530
  t && /* @__PURE__ */ a("span", { className: "vxm-list-item__trailing", children: t }),
4508
- o && /* @__PURE__ */ a(Te, { size: 16, className: "vxm-list-item__chevron", "aria-hidden": "true" })
4531
+ o && /* @__PURE__ */ a(Ce, { size: 16, className: "vxm-list-item__chevron", "aria-hidden": "true" })
4509
4532
  ] });
4510
4533
  return /* @__PURE__ */ a(
4511
4534
  "li",
@@ -4531,7 +4554,7 @@ function zl({
4531
4554
  }
4532
4555
  );
4533
4556
  }
4534
- function Ul({
4557
+ function Hl({
4535
4558
  open: e,
4536
4559
  onClose: t,
4537
4560
  width: n = 280,
@@ -4596,7 +4619,7 @@ function Ul({
4596
4619
  )
4597
4620
  ] });
4598
4621
  }
4599
- function Wl({ icon: e, label: t, badge: n, active: r, onClick: o }) {
4622
+ function Gl({ icon: e, label: t, badge: n, active: r, onClick: o }) {
4600
4623
  return /* @__PURE__ */ k(
4601
4624
  "button",
4602
4625
  {
@@ -4612,7 +4635,7 @@ function Wl({ icon: e, label: t, badge: n, active: r, onClick: o }) {
4612
4635
  }
4613
4636
  );
4614
4637
  }
4615
- function Hl({ title: e, collapsible: t = !1, defaultOpen: n = !0, children: r }) {
4638
+ function jl({ title: e, collapsible: t = !1, defaultOpen: n = !0, children: r }) {
4616
4639
  const [o, s] = I(n);
4617
4640
  return /* @__PURE__ */ k("div", { className: T("vxm-drawer-section", t && "vxm-drawer-section--collapsible"), children: [
4618
4641
  e && (t ? /* @__PURE__ */ k(
@@ -4625,7 +4648,7 @@ function Hl({ title: e, collapsible: t = !1, defaultOpen: n = !0, children: r })
4625
4648
  children: [
4626
4649
  /* @__PURE__ */ a("span", { className: "vxm-drawer-section__title", children: e }),
4627
4650
  /* @__PURE__ */ a(
4628
- Ee,
4651
+ Te,
4629
4652
  {
4630
4653
  size: 14,
4631
4654
  className: T("vxm-drawer-section__chevron", o && "vxm-drawer-section__chevron--open")
@@ -4637,35 +4660,35 @@ function Hl({ title: e, collapsible: t = !1, defaultOpen: n = !0, children: r })
4637
4660
  /* @__PURE__ */ a("div", { className: T("vxm-drawer-section__items-wrap", !o && "vxm-drawer-section__items-wrap--closed"), children: /* @__PURE__ */ a("div", { className: "vxm-drawer-section__items", children: r }) })
4638
4661
  ] });
4639
4662
  }
4640
- const Gl = ce(function({ className: t, required: n, children: r, ...o }, s) {
4663
+ const Kl = ce(function({ className: t, required: n, children: r, ...o }, s) {
4641
4664
  return /* @__PURE__ */ k("label", { ref: s, className: T("vx-label", t), ...o, children: [
4642
4665
  r,
4643
4666
  n ? /* @__PURE__ */ a("span", { className: "vx-label__required", "aria-hidden": "true", children: " *" }) : null
4644
4667
  ] });
4645
4668
  }), zr = _e({});
4646
- function gi() {
4669
+ function bi() {
4647
4670
  return ye(zr);
4648
4671
  }
4649
- function jl({ className: e, ...t }) {
4672
+ function Vl({ className: e, ...t }) {
4650
4673
  return /* @__PURE__ */ a("form", { noValidate: !0, className: T("vx-form", e), ...t });
4651
4674
  }
4652
- function Kl({ error: e, children: t, className: n }) {
4675
+ function ql({ error: e, children: t, className: n }) {
4653
4676
  return /* @__PURE__ */ a(zr.Provider, { value: { error: e }, children: /* @__PURE__ */ a("div", { className: T("vx-form-field", e && "vx-form-field--invalid", n), children: t }) });
4654
4677
  }
4655
- function Vl({ className: e, required: t, children: n, ...r }) {
4678
+ function Yl({ className: e, required: t, children: n, ...r }) {
4656
4679
  return /* @__PURE__ */ k("label", { className: T("vx-form-label", e), ...r, children: [
4657
4680
  n,
4658
4681
  t ? /* @__PURE__ */ a("span", { className: "vx-form-label__required", "aria-hidden": "true", children: " *" }) : null
4659
4682
  ] });
4660
4683
  }
4661
- function ql({ className: e, children: t, ...n }) {
4684
+ function Xl({ className: e, children: t, ...n }) {
4662
4685
  return /* @__PURE__ */ a("p", { className: T("vx-form-description", e), ...n, children: t });
4663
4686
  }
4664
- function Yl({ className: e, children: t, ...n }) {
4665
- const { error: r } = gi(), o = r ?? t;
4687
+ function Zl({ className: e, children: t, ...n }) {
4688
+ const { error: r } = bi(), o = r ?? t;
4666
4689
  return o ? /* @__PURE__ */ a("p", { className: T("vx-form-message", r && "vx-form-message--error", e), ...n, children: o }) : null;
4667
4690
  }
4668
- function Xl({
4691
+ function Ql({
4669
4692
  trigger: e,
4670
4693
  title: t,
4671
4694
  description: n,
@@ -4677,22 +4700,22 @@ function Xl({
4677
4700
  className: d,
4678
4701
  ...c
4679
4702
  }) {
4680
- return /* @__PURE__ */ k(Et, { ...c, children: [
4681
- /* @__PURE__ */ a(Tt, { asChild: !0, children: e }),
4682
- /* @__PURE__ */ k(Ct, { children: [
4683
- /* @__PURE__ */ a(At, { className: "vx-dialog__overlay" }),
4703
+ return /* @__PURE__ */ k(Tt, { ...c, children: [
4704
+ /* @__PURE__ */ a(Ct, { asChild: !0, children: e }),
4705
+ /* @__PURE__ */ k(At, { children: [
4706
+ /* @__PURE__ */ a(Pt, { className: "vx-dialog__overlay" }),
4684
4707
  /* @__PURE__ */ k(
4685
- Pt,
4708
+ Rt,
4686
4709
  {
4687
4710
  className: T("vx-alert-dialog__content", d),
4688
4711
  role: "alertdialog",
4689
4712
  "aria-modal": "true",
4690
4713
  children: [
4691
- /* @__PURE__ */ a(Rt, { className: "vx-alert-dialog__title", children: t }),
4692
- n ? /* @__PURE__ */ a(Dt, { className: "vx-alert-dialog__description", children: n }) : null,
4714
+ /* @__PURE__ */ a(Dt, { className: "vx-alert-dialog__title", children: t }),
4715
+ n ? /* @__PURE__ */ a(Ft, { className: "vx-alert-dialog__description", children: n }) : null,
4693
4716
  /* @__PURE__ */ k("div", { className: "vx-alert-dialog__footer", children: [
4694
- /* @__PURE__ */ a(Ge, { asChild: !0, children: /* @__PURE__ */ a(xe, { variant: "secondary", onClick: l, children: o }) }),
4695
- /* @__PURE__ */ a(Ge, { asChild: !0, children: /* @__PURE__ */ a(xe, { variant: i === "danger" ? "danger" : "solid", onClick: s, children: r }) })
4717
+ /* @__PURE__ */ a(Ee, { asChild: !0, children: /* @__PURE__ */ a(xe, { variant: "secondary", onClick: l, children: o }) }),
4718
+ /* @__PURE__ */ a(Ee, { asChild: !0, children: /* @__PURE__ */ a(xe, { variant: i === "danger" ? "danger" : "solid", onClick: s, children: r }) })
4696
4719
  ] })
4697
4720
  ]
4698
4721
  }
@@ -4700,7 +4723,7 @@ function Xl({
4700
4723
  ] })
4701
4724
  ] });
4702
4725
  }
4703
- function Zl({
4726
+ function Jl({
4704
4727
  className: e,
4705
4728
  label: t,
4706
4729
  hint: n,
@@ -4793,16 +4816,16 @@ function Zl({
4793
4816
  !r && n ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: n }) : null
4794
4817
  ] });
4795
4818
  }
4796
- function bi(e, t) {
4819
+ function xi(e, t) {
4797
4820
  return new Date(e, t + 1, 0).getDate();
4798
4821
  }
4799
- function xi(e, t) {
4822
+ function yi(e, t) {
4800
4823
  return new Date(e, t, 1).getDay();
4801
4824
  }
4802
- function rn(e, t) {
4825
+ function an(e, t) {
4803
4826
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
4804
4827
  }
4805
- function yi({
4828
+ function _i({
4806
4829
  value: e,
4807
4830
  defaultValue: t,
4808
4831
  onChange: n,
@@ -4811,7 +4834,7 @@ function yi({
4811
4834
  className: s,
4812
4835
  weekStartsOnMonday: l = !1
4813
4836
  }) {
4814
- const i = /* @__PURE__ */ new Date(), d = e !== void 0, [c, u] = I(t), p = d ? e : c, [b, w] = I((p ?? i).getFullYear()), [S, g] = I((p ?? i).getMonth()), h = bi(b, S), y = xi(b, S), v = l ? y === 0 ? 6 : y - 1 : y, f = l ? ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"] : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], m = () => {
4837
+ const i = /* @__PURE__ */ new Date(), d = e !== void 0, [c, u] = I(t), p = d ? e : c, [b, w] = I((p ?? i).getFullYear()), [S, g] = I((p ?? i).getMonth()), h = xi(b, S), y = yi(b, S), v = l ? y === 0 ? 6 : y - 1 : y, f = l ? ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"] : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], m = () => {
4815
4838
  S === 0 ? (w((R) => R - 1), g(11)) : g((R) => R - 1);
4816
4839
  }, x = () => {
4817
4840
  S === 11 ? (w((R) => R + 1), g(0)) : g((R) => R + 1);
@@ -4847,7 +4870,7 @@ function yi({
4847
4870
  className: "vx-calendar__nav-btn",
4848
4871
  onClick: m,
4849
4872
  "aria-label": "Previous month",
4850
- children: /* @__PURE__ */ a(yn, { size: 16 })
4873
+ children: /* @__PURE__ */ a(_n, { size: 16 })
4851
4874
  }
4852
4875
  ),
4853
4876
  /* @__PURE__ */ k("span", { className: "vx-calendar__month-label", children: [
@@ -4862,7 +4885,7 @@ function yi({
4862
4885
  className: "vx-calendar__nav-btn",
4863
4886
  onClick: x,
4864
4887
  "aria-label": "Next month",
4865
- children: /* @__PURE__ */ a(Te, { size: 16 })
4888
+ children: /* @__PURE__ */ a(Ce, { size: 16 })
4866
4889
  }
4867
4890
  )
4868
4891
  ] }),
@@ -4871,7 +4894,7 @@ function yi({
4871
4894
  A.map((R, P) => {
4872
4895
  if (R === null)
4873
4896
  return /* @__PURE__ */ a("div", { className: "vx-calendar__cell vx-calendar__cell--empty" }, `e-${P}`);
4874
- const L = new Date(b, S, R), $ = rn(L, i), D = p ? rn(L, p) : !1, U = N(R);
4897
+ const L = new Date(b, S, R), $ = an(L, i), D = p ? an(L, p) : !1, U = N(R);
4875
4898
  return /* @__PURE__ */ a(
4876
4899
  "button",
4877
4900
  {
@@ -4906,17 +4929,17 @@ function Ur(e, t, n = 260) {
4906
4929
  l < n && i > l ? o("up") : o("down");
4907
4930
  }, [t, e, n]), r;
4908
4931
  }
4909
- function _i(e) {
4932
+ function wi(e) {
4910
4933
  return e.toLocaleDateString();
4911
4934
  }
4912
- function wi() {
4935
+ function ki() {
4913
4936
  return /* @__PURE__ */ k("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", "aria-hidden": "true", children: [
4914
4937
  /* @__PURE__ */ a("rect", { x: "1", y: "3", width: "13", height: "11", rx: "2", stroke: "currentColor", strokeWidth: "1.2" }),
4915
4938
  /* @__PURE__ */ a("path", { d: "M1 6.5h13", stroke: "currentColor", strokeWidth: "1.2" }),
4916
4939
  /* @__PURE__ */ a("path", { d: "M5 1v3M10 1v3", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
4917
4940
  ] });
4918
4941
  }
4919
- function Ql({
4942
+ function ec({
4920
4943
  value: e,
4921
4944
  defaultValue: t,
4922
4945
  onChange: n,
@@ -4966,15 +4989,15 @@ function Ql({
4966
4989
  "aria-haspopup": "dialog",
4967
4990
  "aria-expanded": h,
4968
4991
  children: [
4969
- /* @__PURE__ */ a(wi, {}),
4970
- /* @__PURE__ */ a("span", { className: T("vx-datepicker__value", !g && "vx-datepicker__value--placeholder"), children: g ? _i(g) : r })
4992
+ /* @__PURE__ */ a(ki, {}),
4993
+ /* @__PURE__ */ a("span", { className: T("vx-datepicker__value", !g && "vx-datepicker__value--placeholder"), children: g ? wi(g) : r })
4971
4994
  ]
4972
4995
  }
4973
4996
  ),
4974
4997
  l ? /* @__PURE__ */ a("span", { className: "vx-field-group__error", children: l }) : null,
4975
4998
  !l && s ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: s }) : null,
4976
4999
  h ? /* @__PURE__ */ a("div", { className: T("vx-datepicker__popover", f === "up" && "vx-datepicker__popover--up"), role: "dialog", "aria-label": "Date picker", children: /* @__PURE__ */ a(
4977
- yi,
5000
+ _i,
4978
5001
  {
4979
5002
  value: g,
4980
5003
  onChange: m,
@@ -4985,7 +5008,7 @@ function Ql({
4985
5008
  ) }) : null
4986
5009
  ] });
4987
5010
  }
4988
- function Jl({
5011
+ function tc({
4989
5012
  options: e,
4990
5013
  value: t,
4991
5014
  defaultValue: n = [],
@@ -5001,7 +5024,7 @@ function Jl({
5001
5024
  maxDisplay: b,
5002
5025
  className: w
5003
5026
  }) {
5004
- const S = t !== void 0, [g, h] = I(n), y = S ? t : g, [v, f] = I(!1), [m, x] = I(""), N = B(null), E = B(null), C = B(null), A = B(null), R = fn(), [P, L] = I(null), [$, D] = I(!1), U = e.filter(
5027
+ const S = t !== void 0, [g, h] = I(n), y = S ? t : g, [v, f] = I(!1), [m, x] = I(""), N = B(null), E = B(null), C = B(null), A = B(null), R = mn(), [P, L] = I(null), [$, D] = I(!1), U = e.filter(
5005
5028
  (F) => F.label.toLowerCase().includes(m.toLowerCase())
5006
5029
  );
5007
5030
  z(() => {
@@ -5031,7 +5054,7 @@ function Jl({
5031
5054
  return document.body.style.overflow = "hidden", () => {
5032
5055
  document.body.style.overflow = "";
5033
5056
  };
5034
- }, [v]), mn(() => {
5057
+ }, [v]), hn(() => {
5035
5058
  var Q;
5036
5059
  if (!v || !E.current || window.matchMedia("(max-width: 640px)").matches) {
5037
5060
  L(null), D(!1);
@@ -5111,7 +5134,7 @@ function Jl({
5111
5134
  }
5112
5135
  ),
5113
5136
  /* @__PURE__ */ a(
5114
- Ee,
5137
+ Te,
5115
5138
  {
5116
5139
  size: 14,
5117
5140
  className: T("vx-multiselect__chevron", v && "vx-multiselect__chevron--open")
@@ -5185,23 +5208,23 @@ function Jl({
5185
5208
  function se(e) {
5186
5209
  return String(e).padStart(2, "0");
5187
5210
  }
5188
- function an(e) {
5211
+ function on(e) {
5189
5212
  const t = e.split(":").map(Number);
5190
5213
  return { h: t[0] ?? 0, m: t[1] ?? 0, s: t[2] ?? 0 };
5191
5214
  }
5192
- function on(e, t, n, r) {
5215
+ function sn(e, t, n, r) {
5193
5216
  return r ? `${se(e)}:${se(t)}:${se(n)}` : `${se(e)}:${se(t)}`;
5194
5217
  }
5195
- function ki() {
5218
+ function Ni() {
5196
5219
  return /* @__PURE__ */ k("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", "aria-hidden": "true", children: [
5197
5220
  /* @__PURE__ */ a("circle", { cx: "7.5", cy: "7.5", r: "6", stroke: "currentColor", strokeWidth: "1.2" }),
5198
5221
  /* @__PURE__ */ a("path", { d: "M7.5 4v3.5l2.5 1.5", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" })
5199
5222
  ] });
5200
5223
  }
5201
- function Ni({ size: e = 14 }) {
5224
+ function Si({ size: e = 14 }) {
5202
5225
  return /* @__PURE__ */ a("svg", { width: e, height: e, viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M3 9l4-4 4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
5203
5226
  }
5204
- function Si({ size: e = 14 }) {
5227
+ function Ei({ size: e = 14 }) {
5205
5228
  return /* @__PURE__ */ a("svg", { width: e, height: e, viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M3 5l4 4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
5206
5229
  }
5207
5230
  function ct({ value: e, min: t, max: n, onChange: r, label: o }) {
@@ -5232,7 +5255,7 @@ function ct({ value: e, min: t, max: n, onChange: r, label: o }) {
5232
5255
  onClick: s,
5233
5256
  "aria-label": `Decrease ${o}`,
5234
5257
  tabIndex: -1,
5235
- children: /* @__PURE__ */ a(Ni, { size: 13 })
5258
+ children: /* @__PURE__ */ a(Si, { size: 13 })
5236
5259
  }
5237
5260
  ),
5238
5261
  /* @__PURE__ */ k("div", { className: "vx-timepicker__col-items", children: [
@@ -5248,14 +5271,14 @@ function ct({ value: e, min: t, max: n, onChange: r, label: o }) {
5248
5271
  onClick: l,
5249
5272
  "aria-label": `Increase ${o}`,
5250
5273
  tabIndex: -1,
5251
- children: /* @__PURE__ */ a(Si, { size: 13 })
5274
+ children: /* @__PURE__ */ a(Ei, { size: 13 })
5252
5275
  }
5253
5276
  )
5254
5277
  ]
5255
5278
  }
5256
5279
  );
5257
5280
  }
5258
- function ec({
5281
+ function nc({
5259
5282
  value: e,
5260
5283
  defaultValue: t,
5261
5284
  onChange: n,
@@ -5267,10 +5290,10 @@ function ec({
5267
5290
  seconds: d = !1,
5268
5291
  className: c
5269
5292
  }) {
5270
- const u = e !== void 0, [p, b] = I(t), w = u ? e : p, S = w ? an(w) : { h: 12, m: 0, s: 0 }, [g, h] = I(S.h), [y, v] = I(S.m), [f, m] = I(S.s), [x, N] = I(!1), E = B(null), C = Ur(E, x, 220);
5293
+ const u = e !== void 0, [p, b] = I(t), w = u ? e : p, S = w ? on(w) : { h: 12, m: 0, s: 0 }, [g, h] = I(S.h), [y, v] = I(S.m), [f, m] = I(S.s), [x, N] = I(!1), E = B(null), C = Ur(E, x, 220);
5271
5294
  z(() => {
5272
5295
  if (e) {
5273
- const D = an(e);
5296
+ const D = on(e);
5274
5297
  h(D.h), v(D.m), m(D.s);
5275
5298
  }
5276
5299
  }, [e]), z(() => {
@@ -5291,7 +5314,7 @@ function ec({
5291
5314
  }, [x]);
5292
5315
  const A = Y(
5293
5316
  (D, U, H) => {
5294
- const Z = on(D, U, H, d);
5317
+ const Z = sn(D, U, H, d);
5295
5318
  u || b(Z), n == null || n(Z);
5296
5319
  },
5297
5320
  [u, d, n]
@@ -5301,7 +5324,7 @@ function ec({
5301
5324
  v(D), A(g, D, f);
5302
5325
  }, L = (D) => {
5303
5326
  m(D), A(g, y, D);
5304
- }, $ = w ?? (x ? on(g, y, f, d) : void 0);
5327
+ }, $ = w ?? (x ? sn(g, y, f, d) : void 0);
5305
5328
  return /* @__PURE__ */ k("div", { ref: E, className: T("vx-timepicker", c), children: [
5306
5329
  o ? /* @__PURE__ */ a("span", { className: "vx-field-group__label", children: o }) : null,
5307
5330
  /* @__PURE__ */ k(
@@ -5318,7 +5341,7 @@ function ec({
5318
5341
  "aria-haspopup": "dialog",
5319
5342
  "aria-expanded": x,
5320
5343
  children: [
5321
- /* @__PURE__ */ a(ki, {}),
5344
+ /* @__PURE__ */ a(Ni, {}),
5322
5345
  /* @__PURE__ */ a("span", { className: T("vx-timepicker__value", !$ && "vx-timepicker__value--placeholder"), children: $ ?? r })
5323
5346
  ]
5324
5347
  }
@@ -5349,7 +5372,7 @@ function ec({
5349
5372
  ] })
5350
5373
  ] });
5351
5374
  }
5352
- function tc({
5375
+ function rc({
5353
5376
  label: e,
5354
5377
  hint: t,
5355
5378
  error: n,
@@ -5454,7 +5477,7 @@ function tc({
5454
5477
  ] }, x)) })
5455
5478
  ] });
5456
5479
  }
5457
- function nc({
5480
+ function ac({
5458
5481
  trigger: e,
5459
5482
  title: t,
5460
5483
  description: n,
@@ -5464,17 +5487,17 @@ function nc({
5464
5487
  className: l,
5465
5488
  ...i
5466
5489
  }) {
5467
- return /* @__PURE__ */ k(Et, { ...i, children: [
5468
- e ? /* @__PURE__ */ a(Tt, { asChild: !0, children: e }) : null,
5469
- /* @__PURE__ */ k(Ct, { children: [
5470
- /* @__PURE__ */ a(At, { className: "vx-sheet__overlay" }),
5471
- /* @__PURE__ */ k(Pt, { className: T("vx-sheet", `vx-sheet--${r}`, l), children: [
5490
+ return /* @__PURE__ */ k(Tt, { ...i, children: [
5491
+ e ? /* @__PURE__ */ a(Ct, { asChild: !0, children: e }) : null,
5492
+ /* @__PURE__ */ k(At, { children: [
5493
+ /* @__PURE__ */ a(Pt, { className: "vx-sheet__overlay" }),
5494
+ /* @__PURE__ */ k(Rt, { className: T("vx-sheet", `vx-sheet--${r}`, l), children: [
5472
5495
  /* @__PURE__ */ k("div", { className: "vx-sheet__header", children: [
5473
5496
  /* @__PURE__ */ k("div", { children: [
5474
- t ? /* @__PURE__ */ a(Rt, { className: "vx-sheet__title", children: t }) : null,
5475
- n ? /* @__PURE__ */ a(Dt, { className: "vx-sheet__description", children: n }) : null
5497
+ t ? /* @__PURE__ */ a(Dt, { className: "vx-sheet__title", children: t }) : null,
5498
+ n ? /* @__PURE__ */ a(Ft, { className: "vx-sheet__description", children: n }) : null
5476
5499
  ] }),
5477
- /* @__PURE__ */ a(Ge, { className: "vx-dialog__close", "aria-label": "Close", children: /* @__PURE__ */ a(le, { size: 16 }) })
5500
+ /* @__PURE__ */ a(Ee, { className: "vx-dialog__close", "aria-label": "Close", children: /* @__PURE__ */ a(le, { size: 16 }) })
5478
5501
  ] }),
5479
5502
  /* @__PURE__ */ a("div", { className: "vx-sheet__body", children: o }),
5480
5503
  s ? /* @__PURE__ */ a("div", { className: "vx-sheet__footer", children: s }) : null
@@ -5482,7 +5505,7 @@ function nc({
5482
5505
  ] })
5483
5506
  ] });
5484
5507
  }
5485
- function rc({
5508
+ function oc({
5486
5509
  maxHeight: e,
5487
5510
  maxWidth: t,
5488
5511
  children: n,
@@ -5504,7 +5527,7 @@ function rc({
5504
5527
  }
5505
5528
  );
5506
5529
  }
5507
- function ac({
5530
+ function sc({
5508
5531
  pressed: e,
5509
5532
  defaultPressed: t = !1,
5510
5533
  onPressedChange: n,
@@ -5529,7 +5552,7 @@ function ac({
5529
5552
  }
5530
5553
  );
5531
5554
  }
5532
- function oc({
5555
+ function ic({
5533
5556
  items: e,
5534
5557
  value: t,
5535
5558
  defaultValue: n,
@@ -5567,7 +5590,7 @@ function oc({
5567
5590
  w.value
5568
5591
  )) });
5569
5592
  }
5570
- function sc({ groups: e, items: t, children: n, className: r }) {
5593
+ function lc({ groups: e, items: t, children: n, className: r }) {
5571
5594
  const [o, s] = I(null), l = B(null), i = e ?? (t ? [{ items: t }] : []);
5572
5595
  z(() => {
5573
5596
  if (!o) return;
@@ -5623,7 +5646,7 @@ function sc({ groups: e, items: t, children: n, className: r }) {
5623
5646
  )
5624
5647
  ] });
5625
5648
  }
5626
- function ic({
5649
+ function cc({
5627
5650
  content: e,
5628
5651
  placement: t = "bottom",
5629
5652
  delay: n = 400,
@@ -5650,7 +5673,7 @@ function ic({
5650
5673
  }
5651
5674
  );
5652
5675
  }
5653
- function lc({ menus: e, className: t }) {
5676
+ function dc({ menus: e, className: t }) {
5654
5677
  const [n, r] = I(null), o = B(null);
5655
5678
  return z(() => {
5656
5679
  if (n === null) return;
@@ -5711,7 +5734,7 @@ function lc({ menus: e, className: t }) {
5711
5734
  ] }, l);
5712
5735
  }) });
5713
5736
  }
5714
- function cc({ items: e, className: t }) {
5737
+ function uc({ items: e, className: t }) {
5715
5738
  const [n, r] = I(null), o = B(null);
5716
5739
  return z(() => {
5717
5740
  if (n === null) return;
@@ -5741,7 +5764,7 @@ function cc({ items: e, className: t }) {
5741
5764
  children: [
5742
5765
  s.label,
5743
5766
  /* @__PURE__ */ a(
5744
- Ee,
5767
+ Te,
5745
5768
  {
5746
5769
  size: 14,
5747
5770
  className: T(
@@ -5786,7 +5809,7 @@ function cc({ items: e, className: t }) {
5786
5809
  ] }, l);
5787
5810
  }) }) });
5788
5811
  }
5789
- function dc({
5812
+ function pc({
5790
5813
  steps: e,
5791
5814
  currentStep: t = 0,
5792
5815
  orientation: n = "horizontal",
@@ -5811,7 +5834,7 @@ function dc({
5811
5834
  }
5812
5835
  );
5813
5836
  }
5814
- function uc({ items: e, className: t }) {
5837
+ function vc({ items: e, className: t }) {
5815
5838
  return /* @__PURE__ */ a("ol", { className: T("vx-timeline", t), "aria-label": "Timeline", children: e.map((n, r) => /* @__PURE__ */ k(
5816
5839
  "li",
5817
5840
  {
@@ -5833,7 +5856,7 @@ function uc({ items: e, className: t }) {
5833
5856
  r
5834
5857
  )) });
5835
5858
  }
5836
- function pc({ icon: e, title: t, description: n, action: r, className: o }) {
5859
+ function fc({ icon: e, title: t, description: n, action: r, className: o }) {
5837
5860
  return /* @__PURE__ */ k("div", { className: T("vx-empty-state", o), role: "status", "aria-live": "polite", children: [
5838
5861
  e && /* @__PURE__ */ a("div", { className: "vx-empty-state__icon", "aria-hidden": "true", children: e }),
5839
5862
  /* @__PURE__ */ a("p", { className: "vx-empty-state__title", children: t }),
@@ -5841,7 +5864,7 @@ function pc({ icon: e, title: t, description: n, action: r, className: o }) {
5841
5864
  r && /* @__PURE__ */ a("div", { className: "vx-empty-state__action", children: r })
5842
5865
  ] });
5843
5866
  }
5844
- function vc({
5867
+ function mc({
5845
5868
  items: e,
5846
5869
  defaultIndex: t = 0,
5847
5870
  index: n,
@@ -5903,7 +5926,7 @@ function vc({
5903
5926
  onClick: y,
5904
5927
  disabled: !l && w === 0,
5905
5928
  "aria-label": "Previous slide",
5906
- children: /* @__PURE__ */ a(yn, { size: 20 })
5929
+ children: /* @__PURE__ */ a(_n, { size: 20 })
5907
5930
  }
5908
5931
  ),
5909
5932
  /* @__PURE__ */ a(
@@ -5914,7 +5937,7 @@ function vc({
5914
5937
  onClick: v,
5915
5938
  disabled: !l && w === S - 1,
5916
5939
  "aria-label": "Next slide",
5917
- children: /* @__PURE__ */ a(Te, { size: 20 })
5940
+ children: /* @__PURE__ */ a(Ce, { size: 20 })
5918
5941
  }
5919
5942
  )
5920
5943
  ] }),
@@ -5934,7 +5957,7 @@ function vc({
5934
5957
  }
5935
5958
  );
5936
5959
  }
5937
- function Ei({ filled: e, half: t }) {
5960
+ function Ti({ filled: e, half: t }) {
5938
5961
  return /* @__PURE__ */ a("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: t ? /* @__PURE__ */ k(ee, { children: [
5939
5962
  /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ k("linearGradient", { id: "vx-star-half", children: [
5940
5963
  /* @__PURE__ */ a("stop", { offset: "50%", stopColor: "currentColor" }),
@@ -5961,7 +5984,7 @@ function Ei({ filled: e, half: t }) {
5961
5984
  }
5962
5985
  ) });
5963
5986
  }
5964
- function fc({
5987
+ function hc({
5965
5988
  value: e,
5966
5989
  defaultValue: t = 0,
5967
5990
  onChange: n,
@@ -6007,7 +6030,7 @@ function fc({
6007
6030
  "aria-label": `${N} star${N !== 1 ? "s" : ""}`,
6008
6031
  "aria-pressed": w >= N,
6009
6032
  tabIndex: l || s ? -1 : 0,
6010
- children: /* @__PURE__ */ a(Ei, { filled: E, half: C })
6033
+ children: /* @__PURE__ */ a(Ti, { filled: E, half: C })
6011
6034
  },
6012
6035
  x
6013
6036
  );
@@ -6038,7 +6061,7 @@ function Wr({ node: e, depth: t, selected: n, expanded: r, onSelect: o, onToggle
6038
6061
  "aria-label": typeof e.label == "string" ? e.label : void 0,
6039
6062
  children: [
6040
6063
  /* @__PURE__ */ a("span", { className: T("vx-tree__expand", !l && "vx-tree__expand--hidden"), children: /* @__PURE__ */ a(
6041
- Te,
6064
+ Ce,
6042
6065
  {
6043
6066
  size: 14,
6044
6067
  className: T("vx-tree__chevron", i && "vx-tree__chevron--open")
@@ -6063,7 +6086,7 @@ function Wr({ node: e, depth: t, selected: n, expanded: r, onSelect: o, onToggle
6063
6086
  )) })
6064
6087
  ] });
6065
6088
  }
6066
- function mc({
6089
+ function gc({
6067
6090
  nodes: e,
6068
6091
  selected: t,
6069
6092
  defaultSelected: n,
@@ -6108,7 +6131,7 @@ function mc({
6108
6131
  }
6109
6132
  );
6110
6133
  }
6111
- function hc({
6134
+ function bc({
6112
6135
  value: e,
6113
6136
  defaultValue: t = [],
6114
6137
  onChange: n,
@@ -6210,7 +6233,7 @@ function hc({
6210
6233
  !R && o ? /* @__PURE__ */ a("span", { className: "vx-field-group__hint", children: o }) : null
6211
6234
  ] });
6212
6235
  }
6213
- function Ti(e) {
6236
+ function Ci(e) {
6214
6237
  const t = parseInt(e.slice(1, 3), 16) / 255, n = parseInt(e.slice(3, 5), 16) / 255, r = parseInt(e.slice(5, 7), 16) / 255, o = Math.max(t, n, r), s = Math.min(t, n, r), l = (o + s) / 2;
6215
6238
  let i = 0, d = 0;
6216
6239
  if (o !== s) {
@@ -6244,10 +6267,10 @@ function dt(e, t, n) {
6244
6267
  const u = (p) => Math.round(p * 255).toString(16).padStart(2, "0");
6245
6268
  return `#${u(i)}${u(d)}${u(c)}`;
6246
6269
  }
6247
- function sn(e) {
6270
+ function ln(e) {
6248
6271
  return /^#[0-9a-f]{6}$/i.test(e);
6249
6272
  }
6250
- const Ci = [
6273
+ const Ai = [
6251
6274
  "#ef4444",
6252
6275
  "#f97316",
6253
6276
  "#eab308",
@@ -6261,7 +6284,7 @@ const Ci = [
6261
6284
  "#ffffff",
6262
6285
  "#f8fafc"
6263
6286
  ];
6264
- function gc({
6287
+ function xc({
6265
6288
  value: e,
6266
6289
  defaultValue: t = "#3b82f6",
6267
6290
  onChange: n,
@@ -6269,7 +6292,7 @@ function gc({
6269
6292
  hint: o,
6270
6293
  error: s,
6271
6294
  disabled: l,
6272
- presets: i = Ci,
6295
+ presets: i = Ai,
6273
6296
  showPresets: d = !0,
6274
6297
  className: c
6275
6298
  }) {
@@ -6290,14 +6313,14 @@ function gc({
6290
6313
  document.body.style.overflow = "";
6291
6314
  };
6292
6315
  }, [h]);
6293
- const [f, m, x] = sn(w) ? Ti(w) : [0, 0, 50], N = Y(
6316
+ const [f, m, x] = ln(w) ? Ci(w) : [0, 0, 50], N = Y(
6294
6317
  (C) => {
6295
6318
  u || b(C), g(C), n == null || n(C);
6296
6319
  },
6297
6320
  [u, n]
6298
6321
  ), E = (C) => {
6299
6322
  const A = C.startsWith("#") ? C : `#${C}`;
6300
- g(A), sn(A) && N(A);
6323
+ g(A), ln(A) && N(A);
6301
6324
  };
6302
6325
  return /* @__PURE__ */ k("div", { ref: v, className: T("vx-colorpicker", c), children: [
6303
6326
  r ? /* @__PURE__ */ a("span", { className: "vx-field-group__label", children: r }) : null,
@@ -6401,7 +6424,7 @@ function gc({
6401
6424
  ] })
6402
6425
  ] });
6403
6426
  }
6404
- function bc({
6427
+ function yc({
6405
6428
  direction: e = "horizontal",
6406
6429
  children: t,
6407
6430
  className: n
@@ -6418,7 +6441,7 @@ function bc({
6418
6441
  }
6419
6442
  );
6420
6443
  }
6421
- function xc({
6444
+ function _c({
6422
6445
  children: e,
6423
6446
  defaultSize: t = 50,
6424
6447
  minSize: n = 10,
@@ -6437,7 +6460,7 @@ function xc({
6437
6460
  }
6438
6461
  );
6439
6462
  }
6440
- function yc({
6463
+ function wc({
6441
6464
  className: e,
6442
6465
  direction: t = "horizontal"
6443
6466
  }) {
@@ -6475,7 +6498,7 @@ function yc({
6475
6498
  }
6476
6499
  );
6477
6500
  }
6478
- function ln(e, t) {
6501
+ function cn(e, t) {
6479
6502
  if (!t) return e;
6480
6503
  const n = e.toLowerCase().indexOf(t.toLowerCase());
6481
6504
  return n === -1 ? e : /* @__PURE__ */ k(ee, { children: [
@@ -6484,11 +6507,11 @@ function ln(e, t) {
6484
6507
  e.slice(n + t.length)
6485
6508
  ] });
6486
6509
  }
6487
- function Ai(e, t) {
6510
+ function Pi(e, t) {
6488
6511
  const n = t.toLowerCase(), r = e.title.toLowerCase(), o = e.section.toLowerCase(), s = e.description.toLowerCase(), l = (e.keywords ?? []).join(" ").toLowerCase();
6489
6512
  return r === n ? 100 : r.startsWith(n) ? 80 : r.includes(n) ? 60 : o.includes(n) ? 40 : l.includes(n) ? 35 : s.includes(n) ? 20 : 0;
6490
6513
  }
6491
- function _c({
6514
+ function kc({
6492
6515
  entries: e,
6493
6516
  open: t,
6494
6517
  onClose: n,
@@ -6500,7 +6523,7 @@ function _c({
6500
6523
  labelGo: d = "Go",
6501
6524
  labelClose: c = "Close"
6502
6525
  }) {
6503
- const [u, p] = I(""), [b, w] = I(0), S = B(null), g = B(null), h = u.trim() ? e.map((m) => ({ entry: m, s: Ai(m, u.trim()) })).filter((m) => m.s > 0).sort((m, x) => x.s - m.s).map((m) => m.entry) : e;
6526
+ const [u, p] = I(""), [b, w] = I(0), S = B(null), g = B(null), h = u.trim() ? e.map((m) => ({ entry: m, s: Pi(m, u.trim()) })).filter((m) => m.s > 0).sort((m, x) => x.s - m.s).map((m) => m.entry) : e;
6504
6527
  z(() => {
6505
6528
  t && (p(""), w(0), setTimeout(() => {
6506
6529
  var m;
@@ -6574,8 +6597,8 @@ function _c({
6574
6597
  children: [
6575
6598
  x.icon ? /* @__PURE__ */ a("span", { className: "vx-cmd__item-icon", children: x.icon }) : /* @__PURE__ */ a("span", { className: "vx-cmd__item-icon vx-cmd__item-icon--section", children: x.section.slice(0, 1) }),
6576
6599
  /* @__PURE__ */ k("span", { className: "vx-cmd__item-body", children: [
6577
- /* @__PURE__ */ a("span", { className: "vx-cmd__item-title", children: ln(x.title, u) }),
6578
- /* @__PURE__ */ a("span", { className: "vx-cmd__item-sub", children: ln(x.section, u) })
6600
+ /* @__PURE__ */ a("span", { className: "vx-cmd__item-title", children: cn(x.title, u) }),
6601
+ /* @__PURE__ */ a("span", { className: "vx-cmd__item-sub", children: cn(x.section, u) })
6579
6602
  ] }),
6580
6603
  C && /* @__PURE__ */ a("kbd", { className: "vx-cmd__enter", children: "↵" })
6581
6604
  ]
@@ -6605,13 +6628,13 @@ function _c({
6605
6628
  }
6606
6629
  ) });
6607
6630
  }
6608
- var cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6609
- function Pi(e) {
6631
+ var dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6632
+ function Ri(e) {
6610
6633
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6611
6634
  }
6612
- var ut = { exports: {} }, dn;
6613
- function Ri() {
6614
- return dn || (dn = 1, (function(e) {
6635
+ var ut = { exports: {} }, un;
6636
+ function Di() {
6637
+ return un || (un = 1, (function(e) {
6615
6638
  var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
6616
6639
  /**
6617
6640
  * Prism: Lightweight, robust, elegant syntax highlighting
@@ -7258,12 +7281,12 @@ function Ri() {
7258
7281
  q--, M = v.slice(X, W), F.index -= X;
7259
7282
  } else if (F = c(Z, 0, M, $), !F)
7260
7283
  continue;
7261
- var Q = F.index, de = F[0], fe = M.slice(0, Q), Ot = M.slice(Q + de.length), Qe = X + M.length;
7284
+ var Q = F.index, de = F[0], fe = M.slice(0, Q), Bt = M.slice(Q + de.length), Qe = X + M.length;
7262
7285
  E && Qe > E.reach && (E.reach = Qe);
7263
- var Re = j.prev;
7264
- fe && (Re = b(f, Re, fe), X += fe.length), w(f, Re, q);
7286
+ var De = j.prev;
7287
+ fe && (De = b(f, De, fe), X += fe.length), w(f, De, q);
7265
7288
  var Gr = new d(C, L ? i.tokenize(de, L) : de, U, de);
7266
- if (j = b(f, Re, Gr), Ot && b(f, j, Ot), q > 1) {
7289
+ if (j = b(f, De, Gr), Bt && b(f, j, Bt), q > 1) {
7267
7290
  var Je = {
7268
7291
  cause: C + "," + R,
7269
7292
  reach: Qe
@@ -7309,7 +7332,7 @@ function Ri() {
7309
7332
  }
7310
7333
  return i;
7311
7334
  })(t);
7312
- e.exports && (e.exports = n), typeof cn < "u" && (cn.Prism = n), n.languages.markup = {
7335
+ e.exports && (e.exports = n), typeof dn < "u" && (dn.Prism = n), n.languages.markup = {
7313
7336
  comment: {
7314
7337
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
7315
7338
  greedy: !0
@@ -7768,8 +7791,8 @@ function Ri() {
7768
7791
  })();
7769
7792
  })(ut)), ut.exports;
7770
7793
  }
7771
- var Di = Ri();
7772
- const Be = /* @__PURE__ */ Pi(Di);
7794
+ var Fi = Di();
7795
+ const ze = /* @__PURE__ */ Ri(Fi);
7773
7796
  Prism.languages.markup = {
7774
7797
  comment: {
7775
7798
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -8162,9 +8185,9 @@ Prism.languages.js = Prism.languages.javascript;
8162
8185
  d.language !== "jsx" && d.language !== "tsx" || i(d.tokens);
8163
8186
  });
8164
8187
  })(Prism);
8165
- var un = {}, pn;
8166
- function Fi() {
8167
- return pn || (pn = 1, (function(e) {
8188
+ var pn = {}, vn;
8189
+ function Li() {
8190
+ return vn || (vn = 1, (function(e) {
8168
8191
  e.languages.typescript = e.languages.extend("javascript", {
8169
8192
  "class-name": {
8170
8193
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
@@ -8208,9 +8231,9 @@ function Fi() {
8208
8231
  }
8209
8232
  }
8210
8233
  }), e.languages.ts = e.languages.typescript;
8211
- })(Prism)), un;
8234
+ })(Prism)), pn;
8212
8235
  }
8213
- Fi();
8236
+ Li();
8214
8237
  (function(e) {
8215
8238
  var t = e.util.clone(e.languages.typescript);
8216
8239
  e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
@@ -8461,7 +8484,7 @@ Prism.languages.json = {
8461
8484
  }
8462
8485
  };
8463
8486
  Prism.languages.webmanifest = Prism.languages.json;
8464
- function wc({
8487
+ function Nc({
8465
8488
  code: e,
8466
8489
  language: t = "tsx",
8467
8490
  copyLabel: n,
@@ -8469,8 +8492,8 @@ function wc({
8469
8492
  onCopy: o
8470
8493
  }) {
8471
8494
  const [s, l] = I(!1), i = B(null), d = Ne(() => {
8472
- const u = Be.languages[t] ?? Be.languages.tsx ?? Be.languages.typescript;
8473
- return u ? Be.highlight(e, u, t) : e;
8495
+ const u = ze.languages[t] ?? ze.languages.tsx ?? ze.languages.typescript;
8496
+ return u ? ze.highlight(e, u, t) : e;
8474
8497
  }, [e, t]);
8475
8498
  z(() => () => {
8476
8499
  i.current && clearTimeout(i.current);
@@ -8504,9 +8527,9 @@ function wc({
8504
8527
  ) })
8505
8528
  ] });
8506
8529
  }
8507
- const Li = "1.2.7", Ii = {
8508
- version: Li
8509
- }, je = `v${Ii.version}`, Hr = {
8530
+ const Ii = "1.2.8", Mi = {
8531
+ version: Ii
8532
+ }, je = `v${Mi.version}`, Hr = {
8510
8533
  locale: "en",
8511
8534
  label: "English",
8512
8535
  searchPlaceholder: "Search components, pages, keywords…",
@@ -8989,7 +9012,7 @@ const Li = "1.2.7", Ii = {
8989
9012
  ]
8990
9013
  }
8991
9014
  }
8992
- }, Mi = {
9015
+ }, $i = {
8993
9016
  locale: "zh",
8994
9017
  label: "中文",
8995
9018
  searchPlaceholder: "搜索组件、页面、关键词…",
@@ -9472,17 +9495,17 @@ const Li = "1.2.7", Ii = {
9472
9495
  ]
9473
9496
  }
9474
9497
  }
9475
- }, vn = { en: Hr, zh: Mi }, $i = _e({
9498
+ }, fn = { en: Hr, zh: $i }, Oi = _e({
9476
9499
  t: Hr,
9477
9500
  locale: "en",
9478
9501
  setLocale: () => {
9479
9502
  }
9480
9503
  });
9481
- function Oi() {
9482
- return ye($i);
9504
+ function Bi() {
9505
+ return ye(Oi);
9483
9506
  }
9484
- function kc({ variant: e = "inline", className: t }) {
9485
- const { locale: n, setLocale: r } = Oi(), o = Object.entries(vn), s = vn[n], [l, i] = I(!1), d = B(null);
9507
+ function Sc({ variant: e = "inline", className: t }) {
9508
+ const { locale: n, setLocale: r } = Bi(), o = Object.entries(fn), s = fn[n], [l, i] = I(!1), d = B(null);
9486
9509
  return z(() => {
9487
9510
  if (!l) return;
9488
9511
  const u = (p) => {
@@ -9520,7 +9543,7 @@ function kc({ variant: e = "inline", className: t }) {
9520
9543
  children: [
9521
9544
  /* @__PURE__ */ a(pa, { size: 14, "aria-hidden": "true" }),
9522
9545
  (s == null ? void 0 : s.label) ?? n,
9523
- /* @__PURE__ */ a(Ee, { size: 14, className: "vx-lang-drop__chevron", "aria-hidden": "true" })
9546
+ /* @__PURE__ */ a(Te, { size: 14, className: "vx-lang-drop__chevron", "aria-hidden": "true" })
9524
9547
  ]
9525
9548
  }
9526
9549
  ),
@@ -9543,72 +9566,73 @@ function kc({ variant: e = "inline", className: t }) {
9543
9566
  );
9544
9567
  }
9545
9568
  export {
9546
- Cl as Accordion,
9547
- Ml as ActionSheet,
9548
- $l as ActionSheetItem,
9549
- _l as Alert,
9550
- Xl as AlertDialog,
9551
- Gi as AppShell,
9552
- Pl as Avatar,
9553
- ji as Badge,
9554
- Il as BottomNav,
9555
- El as Breadcrumb,
9569
+ Pl as Accordion,
9570
+ Ol as ActionSheet,
9571
+ Bl as ActionSheetItem,
9572
+ kl as Alert,
9573
+ Ql as AlertDialog,
9574
+ ji as AppShell,
9575
+ Dl as Avatar,
9576
+ Ki as Badge,
9577
+ $l as BottomNav,
9578
+ Cl as Breadcrumb,
9556
9579
  xe as Button,
9557
- yi as Calendar,
9558
- Ki as Card,
9559
- Xi as CardContent,
9560
- Yi as CardDescription,
9561
- Vi as CardHeader,
9562
- qi as CardTitle,
9563
- vc as Carousel,
9564
- vl as Checkbox,
9565
- wc as CodeBlock,
9566
- gc as ColorPicker,
9567
- _c as CommandPalette,
9568
- sc as ContextMenu,
9569
- Ql as DatePicker,
9570
- Qi as Dialog,
9571
- Wl as DrawerNavItem,
9572
- Hl as DrawerNavSection,
9573
- Sl as DropdownMenu,
9574
- pc as EmptyState,
9575
- tc as FileUpload,
9576
- jl as Form,
9577
- ql as FormDescription,
9578
- Kl as FormField,
9579
- Vl as FormLabel,
9580
- Yl as FormMessage,
9581
- ul as Heading,
9582
- ic as HoverCard,
9583
- Ji as Input,
9584
- Gl as Label,
9585
- kc as LanguageSwitcher,
9586
- lc as Menubar,
9587
- Ul as MobileDrawer,
9588
- Ll as MobileIconButton,
9589
- Ol as MobileList,
9590
- zl as MobileListItem,
9591
- Bl as MobileListSection,
9592
- Dl as MobileShell,
9593
- Fl as MobileTopBar,
9594
- Jl as MultiSelect,
9595
- cc as NavigationMenu,
9596
- Zl as NumberInput,
9597
- Tl as Pagination,
9598
- Nl as Popover,
9599
- yl as Progress,
9600
- ml as Radio,
9601
- hl as RadioGroup,
9602
- fc as Rating,
9603
- yc as ResizableHandle,
9604
- xc as ResizablePanel,
9605
- bc as ResizablePanelGroup,
9606
- Hi as Responsive,
9607
- rc as ScrollArea,
9608
- fl as SegmentedControl,
9609
- pl as Select,
9610
- Al as Separator,
9611
- nc as Sheet,
9580
+ _i as Calendar,
9581
+ Vi as Card,
9582
+ Zi as CardContent,
9583
+ Xi as CardDescription,
9584
+ qi as CardHeader,
9585
+ Yi as CardTitle,
9586
+ mc as Carousel,
9587
+ ml as Checkbox,
9588
+ Nc as CodeBlock,
9589
+ xc as ColorPicker,
9590
+ kc as CommandPalette,
9591
+ lc as ContextMenu,
9592
+ ec as DatePicker,
9593
+ Ji as Dialog,
9594
+ el as DialogClose,
9595
+ Gl as DrawerNavItem,
9596
+ jl as DrawerNavSection,
9597
+ Tl as DropdownMenu,
9598
+ fc as EmptyState,
9599
+ rc as FileUpload,
9600
+ Vl as Form,
9601
+ Xl as FormDescription,
9602
+ ql as FormField,
9603
+ Yl as FormLabel,
9604
+ Zl as FormMessage,
9605
+ vl as Heading,
9606
+ cc as HoverCard,
9607
+ tl as Input,
9608
+ Kl as Label,
9609
+ Sc as LanguageSwitcher,
9610
+ dc as Menubar,
9611
+ Hl as MobileDrawer,
9612
+ Ml as MobileIconButton,
9613
+ zl as MobileList,
9614
+ Wl as MobileListItem,
9615
+ Ul as MobileListSection,
9616
+ Ll as MobileShell,
9617
+ Il as MobileTopBar,
9618
+ tc as MultiSelect,
9619
+ uc as NavigationMenu,
9620
+ Jl as NumberInput,
9621
+ Al as Pagination,
9622
+ El as Popover,
9623
+ wl as Progress,
9624
+ gl as Radio,
9625
+ bl as RadioGroup,
9626
+ hc as Rating,
9627
+ wc as ResizableHandle,
9628
+ _c as ResizablePanel,
9629
+ yc as ResizablePanelGroup,
9630
+ Gi as Responsive,
9631
+ oc as ScrollArea,
9632
+ hl as SegmentedControl,
9633
+ fl as Select,
9634
+ Rl as Separator,
9635
+ ac as Sheet,
9612
9636
  wa as Shell,
9613
9637
  Pa as ShellContent,
9614
9638
  Ca as ShellMain,
@@ -9618,32 +9642,32 @@ export {
9618
9642
  Ta as ShellOverlay,
9619
9643
  ka as ShellSidebar,
9620
9644
  Aa as ShellTopbar,
9621
- wl as Skeleton,
9622
- bl as Slider,
9623
- xl as Spinner,
9624
- dc as Stepper,
9625
- el as Switch,
9626
- Rl as Table,
9627
- tl as Tabs,
9628
- al as TabsContent,
9629
- nl as TabsList,
9630
- rl as TabsTrigger,
9631
- hc as TagInput,
9632
- dl as Text,
9633
- gl as Textarea,
9634
- sl as ThemeProvider,
9635
- ec as TimePicker,
9636
- uc as Timeline,
9637
- ll as ToastProvider,
9638
- ac as Toggle,
9639
- oc as ToggleGroup,
9640
- kl as Tooltip,
9641
- mc as TreeView,
9642
- Wi as ViewportProvider,
9645
+ Nl as Skeleton,
9646
+ yl as Slider,
9647
+ _l as Spinner,
9648
+ pc as Stepper,
9649
+ nl as Switch,
9650
+ Fl as Table,
9651
+ rl as Tabs,
9652
+ sl as TabsContent,
9653
+ al as TabsList,
9654
+ ol as TabsTrigger,
9655
+ bc as TagInput,
9656
+ pl as Text,
9657
+ xl as Textarea,
9658
+ ll as ThemeProvider,
9659
+ nc as TimePicker,
9660
+ vc as Timeline,
9661
+ dl as ToastProvider,
9662
+ sc as Toggle,
9663
+ ic as ToggleGroup,
9664
+ Sl as Tooltip,
9665
+ gc as TreeView,
9666
+ Hi as ViewportProvider,
9643
9667
  ne as createTheme,
9644
- ol as themePresets,
9645
- gi as useFormField,
9646
- il as useTheme,
9647
- cl as useToast,
9648
- bn as useViewport
9668
+ il as themePresets,
9669
+ bi as useFormField,
9670
+ cl as useTheme,
9671
+ ul as useToast,
9672
+ xn as useViewport
9649
9673
  };