highsoft-ui 1.0.53 → 1.0.55

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.
@@ -1,21 +1,21 @@
1
- import { jsx as g, jsxs as K, Fragment as ee } from "react/jsx-runtime";
1
+ import { jsx as w, jsxs as K, Fragment as ee } from "react/jsx-runtime";
2
2
  import { z as qe, b as Ge } from "../../utils-CzQFvGG2.js";
3
- import * as w from "react";
3
+ import * as g from "react";
4
4
  import { useLayoutEffect as Ke } from "react";
5
- import { u as kt, P as ft, c as ne, a as yt, b as Ue, d as Ze, e as Je, f as st, g as oe, h as Qe, i as tn, R as en, j as nn, k as on, F as rn, D as sn, C as cn } from "../../index-DAJ9ybTO.js";
5
+ import { u as kt, P as ft, c as ne, a as yt, b as Ue, d as Ze, e as Je, f as st, g as oe, h as Qe, i as tn, R as en, j as nn, k as on, F as rn, D as sn, C as cn } from "../../index-CM3YgRXK.js";
6
6
  import { _ as At } from "../../extends-hS2Bh-Yp.js";
7
7
  import { c as an } from "../../clsx-OuTLNxxd.js";
8
8
  import { Button as ln } from "../Button/index.js";
9
9
  import * as fn from "react-dom";
10
10
  var un = function(e) {
11
- return /* @__PURE__ */ g("svg", At({
11
+ return /* @__PURE__ */ w("svg", At({
12
12
  xmlns: "http://www.w3.org/2000/svg",
13
13
  width: 24,
14
14
  height: 24,
15
15
  fill: "none",
16
16
  viewBox: "0 0 24 24"
17
17
  }, e, {
18
- children: /* @__PURE__ */ g("path", {
18
+ children: /* @__PURE__ */ w("path", {
19
19
  stroke: "currentColor",
20
20
  strokeLinecap: "round",
21
21
  strokeLinejoin: "round",
@@ -24,14 +24,14 @@ var un = function(e) {
24
24
  })
25
25
  }));
26
26
  }, dn = function(e) {
27
- return /* @__PURE__ */ g("svg", At({
27
+ return /* @__PURE__ */ w("svg", At({
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  width: 24,
30
30
  height: 24,
31
31
  fill: "none",
32
32
  viewBox: "0 0 24 24"
33
33
  }, e, {
34
- children: /* @__PURE__ */ g("path", {
34
+ children: /* @__PURE__ */ w("path", {
35
35
  stroke: "currentColor",
36
36
  strokeLinecap: "round",
37
37
  strokeLinejoin: "round",
@@ -40,14 +40,14 @@ var un = function(e) {
40
40
  })
41
41
  }));
42
42
  }, pn = function(e) {
43
- return /* @__PURE__ */ g("svg", At({
43
+ return /* @__PURE__ */ w("svg", At({
44
44
  xmlns: "http://www.w3.org/2000/svg",
45
45
  width: 24,
46
46
  height: 24,
47
47
  fill: "none",
48
48
  viewBox: "0 0 24 24"
49
49
  }, e, {
50
- children: /* @__PURE__ */ g("path", {
50
+ children: /* @__PURE__ */ w("path", {
51
51
  stroke: "currentColor",
52
52
  strokeLinecap: "round",
53
53
  strokeLinejoin: "round",
@@ -56,14 +56,14 @@ var un = function(e) {
56
56
  })
57
57
  }));
58
58
  }, hn = function(e) {
59
- return /* @__PURE__ */ g("svg", At({
59
+ return /* @__PURE__ */ w("svg", At({
60
60
  xmlns: "http://www.w3.org/2000/svg",
61
61
  width: 24,
62
62
  height: 24,
63
63
  fill: "none",
64
64
  viewBox: "0 0 24 24"
65
65
  }, e, {
66
- children: /* @__PURE__ */ g("path", {
66
+ children: /* @__PURE__ */ w("path", {
67
67
  stroke: "currentColor",
68
68
  strokeLinecap: "round",
69
69
  strokeLinejoin: "round",
@@ -73,7 +73,7 @@ var un = function(e) {
73
73
  }));
74
74
  };
75
75
  function mn(t) {
76
- const [e, n] = w.useState(void 0);
76
+ const [e, n] = g.useState(void 0);
77
77
  return kt(() => {
78
78
  if (t) {
79
79
  n({ width: t.offsetWidth, height: t.offsetHeight });
@@ -1252,7 +1252,7 @@ function te(t, e) {
1252
1252
  return Math.round(e * n) / n;
1253
1253
  }
1254
1254
  function St(t) {
1255
- const e = w.useRef(t);
1255
+ const e = g.useRef(t);
1256
1256
  return mt(() => {
1257
1257
  e.current = t;
1258
1258
  }), e;
@@ -1271,20 +1271,20 @@ function vo(t) {
1271
1271
  transform: c = !0,
1272
1272
  whileElementsMounted: a,
1273
1273
  open: l
1274
- } = t, [f, u] = w.useState({
1274
+ } = t, [f, u] = g.useState({
1275
1275
  x: 0,
1276
1276
  y: 0,
1277
1277
  strategy: n,
1278
1278
  placement: e,
1279
1279
  middlewareData: {},
1280
1280
  isPositioned: !1
1281
- }), [p, d] = w.useState(o);
1281
+ }), [p, d] = g.useState(o);
1282
1282
  xt(p, o) || d(o);
1283
- const [h, m] = w.useState(null), [x, v] = w.useState(null), y = w.useCallback((C) => {
1283
+ const [h, m] = g.useState(null), [x, v] = g.useState(null), y = g.useCallback((C) => {
1284
1284
  C !== O.current && (O.current = C, m(C));
1285
- }, []), b = w.useCallback((C) => {
1285
+ }, []), b = g.useCallback((C) => {
1286
1286
  C !== R.current && (R.current = C, v(C));
1287
- }, []), A = i || h, P = s || x, O = w.useRef(null), R = w.useRef(null), D = w.useRef(f), F = a != null, M = St(a), T = St(r), N = St(l), E = w.useCallback(() => {
1287
+ }, []), A = i || h, P = s || x, O = g.useRef(null), R = g.useRef(null), D = g.useRef(f), F = a != null, M = St(a), T = St(r), N = St(l), E = g.useCallback(() => {
1288
1288
  if (!O.current || !R.current)
1289
1289
  return;
1290
1290
  const C = {
@@ -1312,7 +1312,7 @@ function vo(t) {
1312
1312
  isPositioned: !1
1313
1313
  })));
1314
1314
  }, [l]);
1315
- const S = w.useRef(!1);
1315
+ const S = g.useRef(!1);
1316
1316
  mt(() => (S.current = !0, () => {
1317
1317
  S.current = !1;
1318
1318
  }), []), mt(() => {
@@ -1322,15 +1322,15 @@ function vo(t) {
1322
1322
  E();
1323
1323
  }
1324
1324
  }, [A, P, E, M, F]);
1325
- const $ = w.useMemo(() => ({
1325
+ const $ = g.useMemo(() => ({
1326
1326
  reference: O,
1327
1327
  floating: R,
1328
1328
  setReference: y,
1329
1329
  setFloating: b
1330
- }), [y, b]), k = w.useMemo(() => ({
1330
+ }), [y, b]), k = g.useMemo(() => ({
1331
1331
  reference: A,
1332
1332
  floating: P
1333
- }), [A, P]), _ = w.useMemo(() => {
1333
+ }), [A, P]), _ = g.useMemo(() => {
1334
1334
  const C = {
1335
1335
  position: n,
1336
1336
  left: 0,
@@ -1351,7 +1351,7 @@ function vo(t) {
1351
1351
  top: I
1352
1352
  };
1353
1353
  }, [n, c, k.floating, f.x, f.y]);
1354
- return w.useMemo(() => ({
1354
+ return g.useMemo(() => ({
1355
1355
  ...f,
1356
1356
  update: E,
1357
1357
  refs: $,
@@ -1402,9 +1402,9 @@ const xo = (t) => {
1402
1402
  ...xo(t),
1403
1403
  options: [t, e]
1404
1404
  });
1405
- var So = "Arrow", me = w.forwardRef((t, e) => {
1405
+ var So = "Arrow", me = g.forwardRef((t, e) => {
1406
1406
  const { children: n, width: o = 10, height: r = 5, ...i } = t;
1407
- return /* @__PURE__ */ g(
1407
+ return /* @__PURE__ */ w(
1408
1408
  ft.svg,
1409
1409
  {
1410
1410
  ...i,
@@ -1413,26 +1413,27 @@ var So = "Arrow", me = w.forwardRef((t, e) => {
1413
1413
  height: r,
1414
1414
  viewBox: "0 0 30 10",
1415
1415
  preserveAspectRatio: "none",
1416
- children: t.asChild ? n : /* @__PURE__ */ g("polygon", { points: "0,0 30,0 15,10" })
1416
+ children: t.asChild ? n : /* @__PURE__ */ w("polygon", { points: "0,0 30,0 15,10" })
1417
1417
  }
1418
1418
  );
1419
1419
  });
1420
1420
  me.displayName = So;
1421
1421
  var Eo = me, Bt = "Popper", [ge, we] = ne(Bt), [ko, ve] = ge(Bt), xe = (t) => {
1422
- const { __scopePopper: e, children: n } = t, [o, r] = w.useState(null);
1423
- return /* @__PURE__ */ g(ko, { scope: e, anchor: o, onAnchorChange: r, children: n });
1422
+ const { __scopePopper: e, children: n } = t, [o, r] = g.useState(null);
1423
+ return /* @__PURE__ */ w(ko, { scope: e, anchor: o, onAnchorChange: r, children: n });
1424
1424
  };
1425
1425
  xe.displayName = Bt;
1426
- var ye = "PopperAnchor", Ae = w.forwardRef(
1426
+ var ye = "PopperAnchor", Ae = g.forwardRef(
1427
1427
  (t, e) => {
1428
- const { __scopePopper: n, virtualRef: o, ...r } = t, i = ve(ye, n), s = w.useRef(null), c = yt(e, s);
1429
- return w.useEffect(() => {
1430
- i.onAnchorChange(o?.current || s.current);
1431
- }), o ? null : /* @__PURE__ */ g(ft.div, { ...r, ref: c });
1428
+ const { __scopePopper: n, virtualRef: o, ...r } = t, i = ve(ye, n), s = g.useRef(null), c = yt(e, s), a = g.useRef(null);
1429
+ return g.useEffect(() => {
1430
+ const l = a.current;
1431
+ a.current = o?.current || s.current, l !== a.current && i.onAnchorChange(a.current);
1432
+ }), o ? null : /* @__PURE__ */ w(ft.div, { ...r, ref: c });
1432
1433
  }
1433
1434
  );
1434
1435
  Ae.displayName = ye;
1435
- var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = w.forwardRef(
1436
+ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
1436
1437
  (t, e) => {
1437
1438
  const {
1438
1439
  __scopePopper: n,
@@ -1449,7 +1450,7 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = w.forwardRef(
1449
1450
  updatePositionStrategy: d = "optimized",
1450
1451
  onPlaced: h,
1451
1452
  ...m
1452
- } = t, x = ve(zt, n), [v, y] = w.useState(null), b = yt(e, (it) => y(it)), [A, P] = w.useState(null), O = mn(A), R = O?.width ?? 0, D = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), M = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
1453
+ } = t, x = ve(zt, n), [v, y] = g.useState(null), b = yt(e, (it) => y(it)), [A, P] = g.useState(null), O = mn(A), R = O?.width ?? 0, D = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), M = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
1453
1454
  padding: M,
1454
1455
  boundary: T.filter(Lo),
1455
1456
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -1488,10 +1489,10 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = w.forwardRef(
1488
1489
  kt(() => {
1489
1490
  _ && Vt?.();
1490
1491
  }, [_, Vt]);
1491
- const He = C.arrow?.x, We = C.arrow?.y, Be = C.arrow?.centerOffset !== 0, [ze, Ie] = w.useState();
1492
+ const He = C.arrow?.x, We = C.arrow?.y, Be = C.arrow?.centerOffset !== 0, [ze, Ie] = g.useState();
1492
1493
  return kt(() => {
1493
1494
  v && Ie(window.getComputedStyle(v).zIndex);
1494
- }, [v]), /* @__PURE__ */ g(
1495
+ }, [v]), /* @__PURE__ */ w(
1495
1496
  "div",
1496
1497
  {
1497
1498
  ref: S.setFloating,
@@ -1515,7 +1516,7 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = w.forwardRef(
1515
1516
  }
1516
1517
  },
1517
1518
  dir: t.dir,
1518
- children: /* @__PURE__ */ g(
1519
+ children: /* @__PURE__ */ w(
1519
1520
  _o,
1520
1521
  {
1521
1522
  scope: n,
@@ -1524,7 +1525,7 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = w.forwardRef(
1524
1525
  arrowX: He,
1525
1526
  arrowY: We,
1526
1527
  shouldHideArrow: Be,
1527
- children: /* @__PURE__ */ g(
1528
+ children: /* @__PURE__ */ w(
1528
1529
  ft.div,
1529
1530
  {
1530
1531
  "data-side": L,
@@ -1551,13 +1552,13 @@ var be = "PopperArrow", Do = {
1551
1552
  right: "left",
1552
1553
  bottom: "top",
1553
1554
  left: "right"
1554
- }, Ce = w.forwardRef(function(e, n) {
1555
+ }, Ce = g.forwardRef(function(e, n) {
1555
1556
  const { __scopePopper: o, ...r } = e, i = Mo(be, o), s = Do[i.placedSide];
1556
1557
  return (
1557
1558
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1558
1559
  // doesn't report size as we'd expect on SVG elements.
1559
1560
  // it reports their bounding box which is effectively the largest path inside the SVG.
1560
- /* @__PURE__ */ g(
1561
+ /* @__PURE__ */ w(
1561
1562
  "span",
1562
1563
  {
1563
1564
  ref: i.onArrowChange,
@@ -1580,7 +1581,7 @@ var be = "PopperArrow", Do = {
1580
1581
  }[i.placedSide],
1581
1582
  visibility: i.shouldHideArrow ? "hidden" : void 0
1582
1583
  },
1583
- children: /* @__PURE__ */ g(
1584
+ children: /* @__PURE__ */ w(
1584
1585
  Eo,
1585
1586
  {
1586
1587
  ...r,
@@ -1623,13 +1624,13 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
1623
1624
  defaultOpen: r,
1624
1625
  onOpenChange: i,
1625
1626
  modal: s = !1
1626
- } = t, c = dt(e), a = w.useRef(null), [l, f] = w.useState(!1), [u, p] = Ze({
1627
+ } = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = Ze({
1627
1628
  prop: o,
1628
1629
  defaultProp: r ?? !1,
1629
1630
  onChange: i,
1630
1631
  caller: Rt
1631
1632
  });
1632
- return /* @__PURE__ */ g(No, { ...c, children: /* @__PURE__ */ g(
1633
+ return /* @__PURE__ */ w(No, { ...c, children: /* @__PURE__ */ w(
1633
1634
  Ho,
1634
1635
  {
1635
1636
  scope: e,
@@ -1637,26 +1638,26 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
1637
1638
  triggerRef: a,
1638
1639
  open: u,
1639
1640
  onOpenChange: p,
1640
- onOpenToggle: w.useCallback(() => p((d) => !d), [p]),
1641
+ onOpenToggle: g.useCallback(() => p((d) => !d), [p]),
1641
1642
  hasCustomAnchor: l,
1642
- onCustomAnchorAdd: w.useCallback(() => f(!0), []),
1643
- onCustomAnchorRemove: w.useCallback(() => f(!1), []),
1643
+ onCustomAnchorAdd: g.useCallback(() => f(!0), []),
1644
+ onCustomAnchorRemove: g.useCallback(() => f(!1), []),
1644
1645
  modal: s,
1645
1646
  children: n
1646
1647
  }
1647
1648
  ) });
1648
1649
  };
1649
1650
  Ee.displayName = Rt;
1650
- var ke = "PopoverAnchor", _e = w.forwardRef(
1651
+ var ke = "PopoverAnchor", _e = g.forwardRef(
1651
1652
  (t, e) => {
1652
1653
  const { __scopePopover: n, ...o } = t, r = J(ke, n), i = dt(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = r;
1653
- return w.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ g(Oe, { ...i, ...o, ref: e });
1654
+ return g.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ w(Oe, { ...i, ...o, ref: e });
1654
1655
  }
1655
1656
  );
1656
1657
  _e.displayName = ke;
1657
- var Me = "PopoverTrigger", De = w.forwardRef(
1658
+ var Me = "PopoverTrigger", De = g.forwardRef(
1658
1659
  (t, e) => {
1659
- const { __scopePopover: n, ...o } = t, r = J(Me, n), i = dt(n), s = yt(e, r.triggerRef), c = /* @__PURE__ */ g(
1660
+ const { __scopePopover: n, ...o } = t, r = J(Me, n), i = dt(n), s = yt(e, r.triggerRef), c = /* @__PURE__ */ w(
1660
1661
  ft.button,
1661
1662
  {
1662
1663
  type: "button",
@@ -1669,7 +1670,7 @@ var Me = "PopoverTrigger", De = w.forwardRef(
1669
1670
  onClick: st(t.onClick, r.onOpenToggle)
1670
1671
  }
1671
1672
  );
1672
- return r.hasCustomAnchor ? c : /* @__PURE__ */ g(Oe, { asChild: !0, ...i, children: c });
1673
+ return r.hasCustomAnchor ? c : /* @__PURE__ */ w(Oe, { asChild: !0, ...i, children: c });
1673
1674
  }
1674
1675
  );
1675
1676
  De.displayName = Me;
@@ -1677,23 +1678,23 @@ var It = "PopoverPortal", [Wo, Bo] = Se(It, {
1677
1678
  forceMount: void 0
1678
1679
  }), Le = (t) => {
1679
1680
  const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i = J(It, e);
1680
- return /* @__PURE__ */ g(Wo, { scope: e, forceMount: n, children: /* @__PURE__ */ g(oe, { present: n || i.open, children: /* @__PURE__ */ g(Qe, { asChild: !0, container: r, children: o }) }) });
1681
+ return /* @__PURE__ */ w(Wo, { scope: e, forceMount: n, children: /* @__PURE__ */ w(oe, { present: n || i.open, children: /* @__PURE__ */ w(Qe, { asChild: !0, container: r, children: o }) }) });
1681
1682
  };
1682
1683
  Le.displayName = It;
1683
- var nt = "PopoverContent", Te = w.forwardRef(
1684
+ var nt = "PopoverContent", Te = g.forwardRef(
1684
1685
  (t, e) => {
1685
1686
  const n = Bo(nt, t.__scopePopover), { forceMount: o = n.forceMount, ...r } = t, i = J(nt, t.__scopePopover);
1686
- return /* @__PURE__ */ g(oe, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(Io, { ...r, ref: e }) : /* @__PURE__ */ g(Vo, { ...r, ref: e }) });
1687
+ return /* @__PURE__ */ w(oe, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(Io, { ...r, ref: e }) : /* @__PURE__ */ w(Vo, { ...r, ref: e }) });
1687
1688
  }
1688
1689
  );
1689
1690
  Te.displayName = nt;
1690
- var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1691
+ var zo = nn("PopoverContent.RemoveScroll"), Io = g.forwardRef(
1691
1692
  (t, e) => {
1692
- const n = J(nt, t.__scopePopover), o = w.useRef(null), r = yt(e, o), i = w.useRef(!1);
1693
- return w.useEffect(() => {
1693
+ const n = J(nt, t.__scopePopover), o = g.useRef(null), r = yt(e, o), i = g.useRef(!1);
1694
+ return g.useEffect(() => {
1694
1695
  const s = o.current;
1695
1696
  if (s) return tn(s);
1696
- }, []), /* @__PURE__ */ g(en, { as: zo, allowPinchZoom: !0, children: /* @__PURE__ */ g(
1697
+ }, []), /* @__PURE__ */ w(en, { as: zo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
1697
1698
  Ne,
1698
1699
  {
1699
1700
  ...t,
@@ -1719,10 +1720,10 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1719
1720
  }
1720
1721
  ) });
1721
1722
  }
1722
- ), Vo = w.forwardRef(
1723
+ ), Vo = g.forwardRef(
1723
1724
  (t, e) => {
1724
- const n = J(nt, t.__scopePopover), o = w.useRef(!1), r = w.useRef(!1);
1725
- return /* @__PURE__ */ g(
1725
+ const n = J(nt, t.__scopePopover), o = g.useRef(!1), r = g.useRef(!1);
1726
+ return /* @__PURE__ */ w(
1726
1727
  Ne,
1727
1728
  {
1728
1729
  ...t,
@@ -1740,7 +1741,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1740
1741
  }
1741
1742
  );
1742
1743
  }
1743
- ), Ne = w.forwardRef(
1744
+ ), Ne = g.forwardRef(
1744
1745
  (t, e) => {
1745
1746
  const {
1746
1747
  __scopePopover: n,
@@ -1754,7 +1755,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1754
1755
  onInteractOutside: f,
1755
1756
  ...u
1756
1757
  } = t, p = J(nt, n), d = dt(n);
1757
- return on(), /* @__PURE__ */ g(
1758
+ return on(), /* @__PURE__ */ w(
1758
1759
  rn,
1759
1760
  {
1760
1761
  asChild: !0,
@@ -1762,7 +1763,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1762
1763
  trapped: o,
1763
1764
  onMountAutoFocus: r,
1764
1765
  onUnmountAutoFocus: i,
1765
- children: /* @__PURE__ */ g(
1766
+ children: /* @__PURE__ */ w(
1766
1767
  sn,
1767
1768
  {
1768
1769
  asChild: !0,
@@ -1772,7 +1773,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1772
1773
  onPointerDownOutside: a,
1773
1774
  onFocusOutside: l,
1774
1775
  onDismiss: () => p.onOpenChange(!1),
1775
- children: /* @__PURE__ */ g(
1776
+ children: /* @__PURE__ */ w(
1776
1777
  Fo,
1777
1778
  {
1778
1779
  "data-state": $e(p.open),
@@ -1796,10 +1797,10 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1796
1797
  }
1797
1798
  );
1798
1799
  }
1799
- ), Fe = "PopoverClose", jo = w.forwardRef(
1800
+ ), Fe = "PopoverClose", jo = g.forwardRef(
1800
1801
  (t, e) => {
1801
1802
  const { __scopePopover: n, ...o } = t, r = J(Fe, n);
1802
- return /* @__PURE__ */ g(
1803
+ return /* @__PURE__ */ w(
1803
1804
  ft.button,
1804
1805
  {
1805
1806
  type: "button",
@@ -1811,10 +1812,10 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = w.forwardRef(
1811
1812
  }
1812
1813
  );
1813
1814
  jo.displayName = Fe;
1814
- var Yo = "PopoverArrow", Xo = w.forwardRef(
1815
+ var Yo = "PopoverArrow", Xo = g.forwardRef(
1815
1816
  (t, e) => {
1816
1817
  const { __scopePopover: n, ...o } = t, r = dt(n);
1817
- return /* @__PURE__ */ g($o, { ...r, ...o, ref: e });
1818
+ return /* @__PURE__ */ w($o, { ...r, ...o, ref: e });
1818
1819
  }
1819
1820
  );
1820
1821
  Xo.displayName = Yo;
@@ -1822,7 +1823,7 @@ function $e(t) {
1822
1823
  return t ? "open" : "closed";
1823
1824
  }
1824
1825
  var qo = Ee, Go = _e, Ko = De, Uo = Le, Zo = Te;
1825
- const Jo = "_anchor_vbdag_270", Qo = "_container_vbdag_275", tr = "_radio_vbdag_292", er = "_check_vbdag_304", nr = "_radioInput_vbdag_312", ct = {
1826
+ const Jo = "_anchor_1nvyg_300", Qo = "_container_1nvyg_305", tr = "_radio_1nvyg_322", er = "_check_1nvyg_334", nr = "_radioInput_1nvyg_342", ct = {
1826
1827
  anchor: Jo,
1827
1828
  container: Qo,
1828
1829
  radio: tr,
@@ -1831,7 +1832,7 @@ const Jo = "_anchor_vbdag_270", Qo = "_container_vbdag_275", tr = "_radio_vbdag_
1831
1832
  };
1832
1833
  function Et({ children: t, id: e, ...n }) {
1833
1834
  return /* @__PURE__ */ K(ee, { children: [
1834
- /* @__PURE__ */ g(
1835
+ /* @__PURE__ */ w(
1835
1836
  "input",
1836
1837
  {
1837
1838
  type: "radio",
@@ -1842,25 +1843,25 @@ function Et({ children: t, id: e, ...n }) {
1842
1843
  ),
1843
1844
  /* @__PURE__ */ K("label", { htmlFor: e, className: ct.radio, children: [
1844
1845
  t,
1845
- /* @__PURE__ */ g(cn, { className: ct.check })
1846
+ /* @__PURE__ */ w(cn, { className: ct.check })
1846
1847
  ] })
1847
1848
  ] });
1848
1849
  }
1849
1850
  function ur() {
1850
1851
  const { theme: t, systemTheme: e, setTheme: n } = qe(), o = Ge();
1851
1852
  return /* @__PURE__ */ K(qo, { children: [
1852
- /* @__PURE__ */ g(Ko, { asChild: !0, children: /* @__PURE__ */ K(ln, { variant: "transparent", "aria-label": "Preferences", children: [
1853
- /* @__PURE__ */ g(pn, {}),
1854
- /* @__PURE__ */ g(Go, { className: ct.anchor })
1853
+ /* @__PURE__ */ w(Ko, { asChild: !0, children: /* @__PURE__ */ K(ln, { variant: "transparent", "aria-label": "Preferences", children: [
1854
+ /* @__PURE__ */ w(pn, {}),
1855
+ /* @__PURE__ */ w(Go, { className: ct.anchor })
1855
1856
  ] }) }),
1856
- /* @__PURE__ */ g(Uo, { children: /* @__PURE__ */ g(
1857
+ /* @__PURE__ */ w(Uo, { children: /* @__PURE__ */ w(
1857
1858
  Zo,
1858
1859
  {
1859
1860
  sideOffset: 8,
1860
1861
  hideWhenDetached: !0,
1861
1862
  className: ct.container,
1862
1863
  children: o && /* @__PURE__ */ K(ee, { children: [
1863
- /* @__PURE__ */ g("span", { children: "Appearance" }),
1864
+ /* @__PURE__ */ w("span", { children: "Appearance" }),
1864
1865
  /* @__PURE__ */ K(
1865
1866
  Et,
1866
1867
  {
@@ -1869,7 +1870,7 @@ function ur() {
1869
1870
  checked: t === "system",
1870
1871
  onChange: () => n("system"),
1871
1872
  children: [
1872
- /* @__PURE__ */ g(un, {}),
1873
+ /* @__PURE__ */ w(un, {}),
1873
1874
  "Auto (",
1874
1875
  e,
1875
1876
  ")"
@@ -1884,7 +1885,7 @@ function ur() {
1884
1885
  checked: t === "light",
1885
1886
  onChange: () => n("light"),
1886
1887
  children: [
1887
- /* @__PURE__ */ g(hn, {}),
1888
+ /* @__PURE__ */ w(hn, {}),
1888
1889
  "Light"
1889
1890
  ]
1890
1891
  }
@@ -1897,7 +1898,7 @@ function ur() {
1897
1898
  checked: t === "dark",
1898
1899
  onChange: () => n("dark"),
1899
1900
  children: [
1900
- /* @__PURE__ */ g(dn, {}),
1901
+ /* @__PURE__ */ w(dn, {}),
1901
1902
  "Dark"
1902
1903
  ]
1903
1904
  }