@adamosuiteservices/ui 2.10.11 → 2.10.13

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.
Files changed (169) hide show
  1. package/dist/accordion-rounded.cjs +5 -5
  2. package/dist/accordion-rounded.js +4 -3
  3. package/dist/accordion.cjs +5 -5
  4. package/dist/accordion.js +11 -10
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.js +1 -0
  7. package/dist/avatar.cjs +1 -1
  8. package/dist/avatar.js +1 -0
  9. package/dist/badge.cjs +2 -2
  10. package/dist/badge.js +1 -0
  11. package/dist/breadcrumb.cjs +3 -3
  12. package/dist/breadcrumb.js +10 -9
  13. package/dist/{button-BXTNbWAk.js → button-CBy_oQDu.js} +1 -0
  14. package/dist/button-group.cjs +3 -3
  15. package/dist/button-group.js +10 -9
  16. package/dist/{button-r2Y2aX25.cjs → button-hCW1Pww0.cjs} +1 -1
  17. package/dist/button.cjs +1 -1
  18. package/dist/button.js +1 -1
  19. package/dist/calendar.cjs +1 -1
  20. package/dist/calendar.js +3 -2
  21. package/dist/card.cjs +3 -3
  22. package/dist/card.js +1 -0
  23. package/dist/{checkbox-DmvyFfB3.js → checkbox-B-Lu1-qJ.js} +3 -2
  24. package/dist/checkbox-DHFt3l5c.cjs +22 -0
  25. package/dist/checkbox.cjs +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/collapsible.cjs +1 -1
  28. package/dist/collapsible.js +10 -9
  29. package/dist/colors.css +1 -1
  30. package/dist/combobox.cjs +1 -1
  31. package/dist/combobox.js +6 -5
  32. package/dist/context-menu.cjs +1 -1
  33. package/dist/context-menu.js +3 -2
  34. package/dist/dialog.cjs +1 -1
  35. package/dist/dialog.js +3 -2
  36. package/dist/dropdown-menu.cjs +1 -1
  37. package/dist/dropdown-menu.js +3 -2
  38. package/dist/field.cjs +1 -1
  39. package/dist/field.js +39 -38
  40. package/dist/hover-card.cjs +1 -1
  41. package/dist/hover-card.js +5 -4
  42. package/dist/icon-DKAhvlX_.js +36 -0
  43. package/dist/{icon-Bg5HV6Ls.cjs → icon-DPMQJBkA.cjs} +1 -1
  44. package/dist/icon.cjs +1 -1
  45. package/dist/icon.js +1 -1
  46. package/dist/index-8iwAKZIp.cjs +1 -0
  47. package/dist/{index-Se4vRnIO.js → index-B6gxHWt9.js} +2 -1
  48. package/dist/{index-yWvyIlmA.js → index-B76LQ4E5.js} +4 -3
  49. package/dist/{index-B0M7VOwp.js → index-BAEhLEFF.js} +1 -0
  50. package/dist/{index-DniCthJA.js → index-BIydBVaH.js} +60 -59
  51. package/dist/{index-CZZ3llmi.js → index-BPOsnOxS.js} +1 -0
  52. package/dist/index-BaCYnOIG.cjs +1 -0
  53. package/dist/index-BnkHpTJs.cjs +1 -0
  54. package/dist/index-C2P2kXMc.cjs +41 -0
  55. package/dist/index-CBuLZ39k.cjs +1 -0
  56. package/dist/index-CC6DBo2g.cjs +1 -0
  57. package/dist/index-CRWn-2fF.cjs +1 -0
  58. package/dist/{index-BpWB3aFK.js → index-CSFEzRxy.js} +17 -16
  59. package/dist/index-CZWDxvEo.js +16 -0
  60. package/dist/index-Ca99LLZF.cjs +5 -0
  61. package/dist/{index-BBoIAjAs.js → index-Ce7JfyIP.js} +2 -1
  62. package/dist/{index-CUWMxxKG.js → index-CmWhhuj7.js} +1 -0
  63. package/dist/index-Cqf5g2f_.cjs +1 -0
  64. package/dist/index-DE3jjVoC.cjs +1 -0
  65. package/dist/{index-C0YiLSjW.js → index-D_hmhfRp.js} +3 -2
  66. package/dist/index-Da298sEl.cjs +1 -0
  67. package/dist/{index-CBjZooac.js → index-e0gNU5O1.js} +1 -0
  68. package/dist/index-i5lLg35-.cjs +1 -0
  69. package/dist/{index-DFPDUUq7.js → index-wujanfX3.js} +8 -7
  70. package/dist/{input-DSmxdfq5.cjs → input-CWDpI1Ua.cjs} +2 -2
  71. package/dist/{input-BQZUpTEY.js → input-DFvZLcgm.js} +1 -0
  72. package/dist/input-group.cjs +1 -1
  73. package/dist/input-group.js +4 -3
  74. package/dist/input.cjs +1 -1
  75. package/dist/input.js +1 -1
  76. package/dist/kbd.cjs +1 -1
  77. package/dist/kbd.js +1 -0
  78. package/dist/{label-CrsELeIw.js → label-C6zVnc3d.js} +1 -0
  79. package/dist/label-DqfX9cHc.cjs +7 -0
  80. package/dist/label.cjs +1 -1
  81. package/dist/label.js +1 -1
  82. package/dist/pagination.cjs +1 -1
  83. package/dist/pagination.js +4 -3
  84. package/dist/{popover-DAwH8jUh.js → popover-DcQ18EVl.js} +71 -70
  85. package/dist/popover-cGp_rNLg.cjs +15 -0
  86. package/dist/popover.cjs +1 -1
  87. package/dist/popover.js +1 -1
  88. package/dist/progress.cjs +1 -1
  89. package/dist/progress.js +1 -0
  90. package/dist/radio-group.cjs +1 -1
  91. package/dist/radio-group.js +5 -4
  92. package/dist/select.cjs +1 -1
  93. package/dist/select.js +7 -6
  94. package/dist/separator-CCGaTo09.cjs +7 -0
  95. package/dist/{separator-DVypR3Qf.js → separator-CsaqP20m.js} +1 -0
  96. package/dist/separator.cjs +1 -1
  97. package/dist/separator.js +1 -1
  98. package/dist/{sheet-mV8cYfd2.js → sheet-CPf9Guon.js} +3 -2
  99. package/dist/{sheet-IGhaVAfU.cjs → sheet-DVT_djHX.cjs} +3 -3
  100. package/dist/sheet.cjs +1 -1
  101. package/dist/sheet.js +1 -1
  102. package/dist/sidebar.cjs +1 -1
  103. package/dist/sidebar.js +25 -24
  104. package/dist/skeleton.cjs +1 -1
  105. package/dist/skeleton.js +6 -5
  106. package/dist/slider.cjs +1 -1
  107. package/dist/slider.js +2 -1
  108. package/dist/spinner.cjs +1 -1
  109. package/dist/spinner.js +10 -9
  110. package/dist/styles.css +1 -1
  111. package/dist/switch.cjs +1 -1
  112. package/dist/switch.js +14 -13
  113. package/dist/table.cjs +8 -8
  114. package/dist/table.js +3 -2
  115. package/dist/tabs-underline.cjs +1 -1
  116. package/dist/tabs-underline.js +8 -7
  117. package/dist/tabs.cjs +1 -1
  118. package/dist/tabs.js +3 -2
  119. package/dist/tailwind-colors.css +1 -1
  120. package/dist/tailwind-theme.css +1 -1
  121. package/dist/{textarea-CUPWKl-S.js → textarea-BRCnIxdB.js} +1 -0
  122. package/dist/{textarea-CG7iQcb3.cjs → textarea-DkFUS_oS.cjs} +1 -1
  123. package/dist/textarea.cjs +1 -1
  124. package/dist/textarea.js +1 -1
  125. package/dist/themes.css +1 -1
  126. package/dist/toaster.cjs +2 -2
  127. package/dist/toaster.js +2 -1
  128. package/dist/toggle.cjs +1 -1
  129. package/dist/toggle.js +1 -0
  130. package/dist/tooltip.cjs +5 -4
  131. package/dist/tooltip.js +9 -7
  132. package/dist/types/theme.type.d.ts +1 -1
  133. package/dist/typography.cjs +1 -1
  134. package/dist/typography.js +5 -4
  135. package/docs/components/ui/accordion-rounded.md +7 -7
  136. package/docs/components/ui/accordion.md +2 -2
  137. package/docs/components/ui/alert.md +3 -3
  138. package/docs/components/ui/avatar.md +10 -10
  139. package/docs/components/ui/badge.md +10 -53
  140. package/docs/components/ui/button.md +1 -1
  141. package/docs/components/ui/calendar.md +1 -1
  142. package/docs/components/ui/combobox.md +7 -7
  143. package/docs/components/ui/hover-card.md +1 -1
  144. package/docs/components/ui/icon.md +12 -12
  145. package/docs/components/ui/input-group.md +9 -14
  146. package/docs/components/ui/popover.md +2 -2
  147. package/docs/components/ui/spinner.md +1 -1
  148. package/docs/components/ui/table.md +1 -1
  149. package/docs/components/ui/tooltip.md +3 -3
  150. package/docs/components/ui/typography.md +1 -1
  151. package/package.json +2 -1
  152. package/dist/checkbox-Bn7H8EaT.cjs +0 -22
  153. package/dist/icon-DG_i4bz2.js +0 -35
  154. package/dist/index-BFyr34mw.cjs +0 -5
  155. package/dist/index-BX9hz-JD.js +0 -15
  156. package/dist/index-BcGMAmWE.cjs +0 -1
  157. package/dist/index-Bd0gQB0k.cjs +0 -1
  158. package/dist/index-BeWgla7c.cjs +0 -1
  159. package/dist/index-COuvjZLM.cjs +0 -1
  160. package/dist/index-CTjlbbt9.cjs +0 -1
  161. package/dist/index-Cmx9M9cZ.cjs +0 -1
  162. package/dist/index-CzRiuk60.cjs +0 -1
  163. package/dist/index-DIwmXz1u.cjs +0 -1
  164. package/dist/index-DMs8RL3E.cjs +0 -41
  165. package/dist/index-Dbj9vHNq.cjs +0 -1
  166. package/dist/index-DmGzwG2z.cjs +0 -1
  167. package/dist/label-1jx6a0Sm.cjs +0 -7
  168. package/dist/popover-CYbik-H4.cjs +0 -15
  169. package/dist/separator-Brpax0EI.cjs +0 -7
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import * as s from "react";
2
3
  import { c as p, u as H } from "./index-C0UREtMP.js";
3
- import { c as V, u as z } from "./index-CUWMxxKG.js";
4
+ import { c as V, u as z } from "./index-CmWhhuj7.js";
4
5
  import { u as q } from "./index-DLcqcWxM.js";
5
6
  import { c as J } from "./index-FxyLF8MY.js";
6
7
  import { u as Q } from "./index-Cv867SGx.js";
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import * as v from "react";
2
3
  import { u as M, c as g } from "./index-C0UREtMP.js";
3
4
  import { c as N } from "./index-FxyLF8MY.js";
4
- import { c as x, R as S, I as F } from "./index-Se4vRnIO.js";
5
- import { P as w } from "./index-BpWB3aFK.js";
5
+ import { c as x, R as S, I as F } from "./index-B6gxHWt9.js";
6
+ import { P as w } from "./index-CSFEzRxy.js";
6
7
  import { P as b } from "./index-BMWt1NBG.js";
7
- import { u as D } from "./index-CUWMxxKG.js";
8
+ import { u as D } from "./index-CmWhhuj7.js";
8
9
  import { u as V } from "./index-Cv867SGx.js";
9
10
  import { j as d } from "./jsx-runtime-BzflLqGi.js";
10
11
  var p = "Tabs", [G] = N(p, [
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as R from "react";
2
3
  import { useLayoutEffect as Ae } from "react";
3
4
  import * as Re from "react-dom";
@@ -1,33 +1,34 @@
1
+ "use client";
1
2
  import * as a from "react";
2
3
  import { u as $, c as m } from "./index-C0UREtMP.js";
3
4
  import { c as B, u as y } from "./index-DLcqcWxM.js";
4
5
  import { c as H, a as Z } from "./index-FxyLF8MY.js";
5
6
  import { u as x } from "./index-Cv867SGx.js";
6
- import { D as q } from "./index-CZZ3llmi.js";
7
- import { h as K, R as U, u as Y, F as z } from "./index-CBjZooac.js";
8
- import { P as J } from "./index-BX9hz-JD.js";
9
- import { P as h } from "./index-BpWB3aFK.js";
7
+ import { D as q } from "./index-BPOsnOxS.js";
8
+ import { h as K, R as U, u as Y, F as z } from "./index-e0gNU5O1.js";
9
+ import { P as J } from "./index-CZWDxvEo.js";
10
+ import { P as h } from "./index-CSFEzRxy.js";
10
11
  import { P as D } from "./index-BMWt1NBG.js";
11
12
  import { j as i } from "./jsx-runtime-BzflLqGi.js";
12
13
  // @__NO_SIDE_EFFECTS__
13
14
  function Q(e) {
14
- const t = /* @__PURE__ */ X(e), r = a.forwardRef((n, o) => {
15
- const { children: s, ...c } = n, l = a.Children.toArray(s), u = l.find(te);
15
+ const t = /* @__PURE__ */ X(e), n = a.forwardRef((r, o) => {
16
+ const { children: s, ...c } = r, l = a.Children.toArray(s), u = l.find(te);
16
17
  if (u) {
17
18
  const d = u.props.children, g = l.map((v) => v === u ? a.Children.count(d) > 1 ? a.Children.only(null) : a.isValidElement(d) ? d.props.children : null : v);
18
19
  return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: a.isValidElement(d) ? a.cloneElement(d, void 0, g) : null });
19
20
  }
20
21
  return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: s });
21
22
  });
22
- return r.displayName = `${e}.Slot`, r;
23
+ return n.displayName = `${e}.Slot`, n;
23
24
  }
24
25
  // @__NO_SIDE_EFFECTS__
25
26
  function X(e) {
26
- const t = a.forwardRef((r, n) => {
27
- const { children: o, ...s } = r;
27
+ const t = a.forwardRef((n, r) => {
28
+ const { children: o, ...s } = n;
28
29
  if (a.isValidElement(o)) {
29
- const c = re(o), l = oe(s, o.props);
30
- return o.type !== a.Fragment && (l.ref = n ? B(n, c) : c), a.cloneElement(o, l);
30
+ const c = ne(o), l = oe(s, o.props);
31
+ return o.type !== a.Fragment && (l.ref = r ? B(r, c) : c), a.cloneElement(o, l);
31
32
  }
32
33
  return a.Children.count(o) > 1 ? a.Children.only(null) : null;
33
34
  });
@@ -38,36 +39,36 @@ function te(e) {
38
39
  return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ee;
39
40
  }
40
41
  function oe(e, t) {
41
- const r = { ...t };
42
- for (const n in t) {
43
- const o = e[n], s = t[n];
44
- /^on[A-Z]/.test(n) ? o && s ? r[n] = (...l) => {
42
+ const n = { ...t };
43
+ for (const r in t) {
44
+ const o = e[r], s = t[r];
45
+ /^on[A-Z]/.test(r) ? o && s ? n[r] = (...l) => {
45
46
  const u = s(...l);
46
47
  return o(...l), u;
47
- } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...s } : n === "className" && (r[n] = [o, s].filter(Boolean).join(" "));
48
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" "));
48
49
  }
49
- return { ...e, ...r };
50
+ return { ...e, ...n };
50
51
  }
51
- function re(e) {
52
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
53
- return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
52
+ function ne(e) {
53
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
54
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
54
55
  }
55
- var R = "Dialog", [O] = H(R), [ne, f] = O(R), N = (e) => {
56
+ var R = "Dialog", [O] = H(R), [re, f] = O(R), N = (e) => {
56
57
  const {
57
58
  __scopeDialog: t,
58
- children: r,
59
- open: n,
59
+ children: n,
60
+ open: r,
60
61
  defaultOpen: o,
61
62
  onOpenChange: s,
62
63
  modal: c = !0
63
64
  } = e, l = a.useRef(null), u = a.useRef(null), [d, g] = $({
64
- prop: n,
65
+ prop: r,
65
66
  defaultProp: o ?? !1,
66
67
  onChange: s,
67
68
  caller: R
68
69
  });
69
70
  return /* @__PURE__ */ i.jsx(
70
- ne,
71
+ re,
71
72
  {
72
73
  scope: t,
73
74
  triggerRef: l,
@@ -79,14 +80,14 @@ var R = "Dialog", [O] = H(R), [ne, f] = O(R), N = (e) => {
79
80
  onOpenChange: g,
80
81
  onOpenToggle: a.useCallback(() => g((v) => !v), [g]),
81
82
  modal: c,
82
- children: r
83
+ children: n
83
84
  }
84
85
  );
85
86
  };
86
87
  N.displayName = R;
87
88
  var I = "DialogTrigger", b = a.forwardRef(
88
89
  (e, t) => {
89
- const { __scopeDialog: r, ...n } = e, o = f(I, r), s = y(t, o.triggerRef);
90
+ const { __scopeDialog: n, ...r } = e, o = f(I, n), s = y(t, o.triggerRef);
90
91
  return /* @__PURE__ */ i.jsx(
91
92
  D.button,
92
93
  {
@@ -95,7 +96,7 @@ var I = "DialogTrigger", b = a.forwardRef(
95
96
  "aria-expanded": o.open,
96
97
  "aria-controls": o.contentId,
97
98
  "data-state": P(o.open),
98
- ...n,
99
+ ...r,
99
100
  ref: s,
100
101
  onClick: m(e.onClick, o.onOpenToggle)
101
102
  }
@@ -106,20 +107,20 @@ b.displayName = I;
106
107
  var E = "DialogPortal", [se, j] = O(E, {
107
108
  forceMount: void 0
108
109
  }), A = (e) => {
109
- const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, s = f(E, t);
110
- return /* @__PURE__ */ i.jsx(se, { scope: t, forceMount: r, children: a.Children.map(n, (c) => /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: /* @__PURE__ */ i.jsx(J, { asChild: !0, container: o, children: c }) })) });
110
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = f(E, t);
111
+ return /* @__PURE__ */ i.jsx(se, { scope: t, forceMount: n, children: a.Children.map(r, (c) => /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: /* @__PURE__ */ i.jsx(J, { asChild: !0, container: o, children: c }) })) });
111
112
  };
112
113
  A.displayName = E;
113
114
  var C = "DialogOverlay", T = a.forwardRef(
114
115
  (e, t) => {
115
- const r = j(C, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = f(C, e.__scopeDialog);
116
- return s.modal ? /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: /* @__PURE__ */ i.jsx(ie, { ...o, ref: t }) }) : null;
116
+ const n = j(C, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = f(C, e.__scopeDialog);
117
+ return s.modal ? /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: /* @__PURE__ */ i.jsx(ie, { ...o, ref: t }) }) : null;
117
118
  }
118
119
  );
119
120
  T.displayName = C;
120
121
  var ae = /* @__PURE__ */ Q("DialogOverlay.RemoveScroll"), ie = a.forwardRef(
121
122
  (e, t) => {
122
- const { __scopeDialog: r, ...n } = e, o = f(C, r);
123
+ const { __scopeDialog: n, ...r } = e, o = f(C, n);
123
124
  return (
124
125
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
125
126
  // ie. when `Overlay` and `Content` are siblings
@@ -127,35 +128,35 @@ var ae = /* @__PURE__ */ Q("DialogOverlay.RemoveScroll"), ie = a.forwardRef(
127
128
  D.div,
128
129
  {
129
130
  "data-state": P(o.open),
130
- ...n,
131
+ ...r,
131
132
  ref: t,
132
- style: { pointerEvents: "auto", ...n.style }
133
+ style: { pointerEvents: "auto", ...r.style }
133
134
  }
134
135
  ) })
135
136
  );
136
137
  }
137
138
  ), p = "DialogContent", S = a.forwardRef(
138
139
  (e, t) => {
139
- const r = j(p, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = f(p, e.__scopeDialog);
140
- return /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(le, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(ce, { ...o, ref: t }) });
140
+ const n = j(p, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = f(p, e.__scopeDialog);
141
+ return /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(le, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(ce, { ...o, ref: t }) });
141
142
  }
142
143
  );
143
144
  S.displayName = p;
144
145
  var le = a.forwardRef(
145
146
  (e, t) => {
146
- const r = f(p, e.__scopeDialog), n = a.useRef(null), o = y(t, r.contentRef, n);
147
+ const n = f(p, e.__scopeDialog), r = a.useRef(null), o = y(t, n.contentRef, r);
147
148
  return a.useEffect(() => {
148
- const s = n.current;
149
+ const s = r.current;
149
150
  if (s) return K(s);
150
151
  }, []), /* @__PURE__ */ i.jsx(
151
152
  M,
152
153
  {
153
154
  ...e,
154
155
  ref: o,
155
- trapFocus: r.open,
156
+ trapFocus: n.open,
156
157
  disableOutsidePointerEvents: !0,
157
158
  onCloseAutoFocus: m(e.onCloseAutoFocus, (s) => {
158
- s.preventDefault(), r.triggerRef.current?.focus();
159
+ s.preventDefault(), n.triggerRef.current?.focus();
159
160
  }),
160
161
  onPointerDownOutside: m(e.onPointerDownOutside, (s) => {
161
162
  const c = s.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
@@ -170,7 +171,7 @@ var le = a.forwardRef(
170
171
  }
171
172
  ), ce = a.forwardRef(
172
173
  (e, t) => {
173
- const r = f(p, e.__scopeDialog), n = a.useRef(!1), o = a.useRef(!1);
174
+ const n = f(p, e.__scopeDialog), r = a.useRef(!1), o = a.useRef(!1);
174
175
  return /* @__PURE__ */ i.jsx(
175
176
  M,
176
177
  {
@@ -179,26 +180,26 @@ var le = a.forwardRef(
179
180
  trapFocus: !1,
180
181
  disableOutsidePointerEvents: !1,
181
182
  onCloseAutoFocus: (s) => {
182
- e.onCloseAutoFocus?.(s), s.defaultPrevented || (n.current || r.triggerRef.current?.focus(), s.preventDefault()), n.current = !1, o.current = !1;
183
+ e.onCloseAutoFocus?.(s), s.defaultPrevented || (r.current || n.triggerRef.current?.focus(), s.preventDefault()), r.current = !1, o.current = !1;
183
184
  },
184
185
  onInteractOutside: (s) => {
185
- e.onInteractOutside?.(s), s.defaultPrevented || (n.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
186
+ e.onInteractOutside?.(s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
186
187
  const c = s.target;
187
- r.triggerRef.current?.contains(c) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
188
+ n.triggerRef.current?.contains(c) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
188
189
  }
189
190
  }
190
191
  );
191
192
  }
192
193
  ), M = a.forwardRef(
193
194
  (e, t) => {
194
- const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, l = f(p, r), u = a.useRef(null), d = y(t, u);
195
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, l = f(p, n), u = a.useRef(null), d = y(t, u);
195
196
  return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
196
197
  /* @__PURE__ */ i.jsx(
197
198
  z,
198
199
  {
199
200
  asChild: !0,
200
201
  loop: !0,
201
- trapped: n,
202
+ trapped: r,
202
203
  onMountAutoFocus: o,
203
204
  onUnmountAutoFocus: s,
204
205
  children: /* @__PURE__ */ i.jsx(
@@ -224,26 +225,26 @@ var le = a.forwardRef(
224
225
  }
225
226
  ), _ = "DialogTitle", w = a.forwardRef(
226
227
  (e, t) => {
227
- const { __scopeDialog: r, ...n } = e, o = f(_, r);
228
- return /* @__PURE__ */ i.jsx(D.h2, { id: o.titleId, ...n, ref: t });
228
+ const { __scopeDialog: n, ...r } = e, o = f(_, n);
229
+ return /* @__PURE__ */ i.jsx(D.h2, { id: o.titleId, ...r, ref: t });
229
230
  }
230
231
  );
231
232
  w.displayName = _;
232
233
  var F = "DialogDescription", W = a.forwardRef(
233
234
  (e, t) => {
234
- const { __scopeDialog: r, ...n } = e, o = f(F, r);
235
- return /* @__PURE__ */ i.jsx(D.p, { id: o.descriptionId, ...n, ref: t });
235
+ const { __scopeDialog: n, ...r } = e, o = f(F, n);
236
+ return /* @__PURE__ */ i.jsx(D.p, { id: o.descriptionId, ...r, ref: t });
236
237
  }
237
238
  );
238
239
  W.displayName = F;
239
240
  var L = "DialogClose", k = a.forwardRef(
240
241
  (e, t) => {
241
- const { __scopeDialog: r, ...n } = e, o = f(L, r);
242
+ const { __scopeDialog: n, ...r } = e, o = f(L, n);
242
243
  return /* @__PURE__ */ i.jsx(
243
244
  D.button,
244
245
  {
245
246
  type: "button",
246
- ...n,
247
+ ...r,
247
248
  ref: t,
248
249
  onClick: m(e.onClick, () => o.onOpenChange(!1))
249
250
  }
@@ -259,20 +260,20 @@ var G = "DialogTitleWarning", [Ee, V] = Z(G, {
259
260
  titleName: _,
260
261
  docsSlug: "dialog"
261
262
  }), ue = ({ titleId: e }) => {
262
- const t = V(G), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
263
+ const t = V(G), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
263
264
 
264
265
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
265
266
 
266
267
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
267
268
  return a.useEffect(() => {
268
- e && (document.getElementById(e) || console.error(r));
269
- }, [r, e]), null;
269
+ e && (document.getElementById(e) || console.error(n));
270
+ }, [n, e]), null;
270
271
  }, fe = "DialogDescriptionWarning", de = ({ contentRef: e, descriptionId: t }) => {
271
- const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(fe).contentName}}.`;
272
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(fe).contentName}}.`;
272
273
  return a.useEffect(() => {
273
274
  const o = e.current?.getAttribute("aria-describedby");
274
- t && o && (document.getElementById(t) || console.warn(n));
275
- }, [n, e, t]), null;
275
+ t && o && (document.getElementById(t) || console.warn(r));
276
+ }, [r, e, t]), null;
276
277
  }, _e = N, Pe = b, Oe = A, Ne = T, Ie = S, be = w, je = W, Ae = k;
277
278
  export {
278
279
  Ae as C,
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as i from "react";
2
3
  import { c as h } from "./index-C0UREtMP.js";
3
4
  import { P as g, d as _ } from "./index-BMWt1NBG.js";
@@ -0,0 +1 @@
1
+ "use client";"use strict";const A=require("react"),p=require("./index-BWaO7kQK.cjs"),h=require("./index-CocSS1YK.cjs"),w=require("./index-_XxjJPRD.cjs"),m=require("./index-CzY-WZXL.cjs"),x=require("./jsx-runtime-BB_1_6y_.cjs");function q(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=q(A);function H(t,e=globalThis?.document){const n=m.useCallbackRef(t);o.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var U="DismissableLayer",b="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",K="dismissableLayer.focusOutside",R,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=o.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...E}=t,a=o.useContext(T),[u,k]=o.useState(null),l=u?.ownerDocument??globalThis?.document,[,F]=o.useState({}),I=w.useComposedRefs(e,i=>k(i)),D=Array.from(a.layers),[N]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),W=D.indexOf(N),O=u?D.indexOf(u):-1,_=a.layersWithOutsidePointerEventsDisabled.size>0,P=O>=W,j=X(i=>{const v=i.target,L=[...a.branches].some(y=>y.contains(v));!P||L||(r?.(i),f?.(i),i.defaultPrevented||d?.())},l),C=Y(i=>{const v=i.target;[...a.branches].some(y=>y.contains(v))||(c?.(i),f?.(i),i.defaultPrevented||d?.())},l);return H(i=>{O===a.layers.size-1&&(s?.(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},l),o.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(R=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=R)}},[u,l,n,a]),o.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),o.useEffect(()=>{const i=()=>F({});return document.addEventListener(b,i),()=>document.removeEventListener(b,i)},[]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...E,ref:I,style:{pointerEvents:_?P?"auto":"none":void 0,...t.style},onFocusCapture:p.composeEventHandlers(t.onFocusCapture,C.onFocusCapture),onBlurCapture:p.composeEventHandlers(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p.composeEventHandlers(t.onPointerDownCapture,j.onPointerDownCapture)})});B.displayName=U;var M="DismissableLayerBranch",$=o.forwardRef((t,e)=>{const n=o.useContext(T),s=o.useRef(null),r=w.useComposedRefs(e,s);return o.useEffect(()=>{const c=s.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...t,ref:r})});$.displayName=M;function X(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const c=d=>{if(d.target&&!s.current){let E=function(){S(z,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=E,e.addEventListener("click",r.current,{once:!0})):E()}else e.removeEventListener("click",r.current);s.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",c),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Y(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1);return o.useEffect(()=>{const r=c=>{c.target&&!s.current&&S(K,n,{originalEvent:c},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const t=new CustomEvent(b);document.dispatchEvent(t)}function S(t,e,n,{discrete:s}){const r=n.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?h.dispatchDiscreteCustomEvent(r,c):r.dispatchEvent(c)}exports.DismissableLayer=B;
@@ -0,0 +1 @@
1
+ "use client";"use strict";const l=require("react"),Q=require("./index-cwZN7ZY3.cjs"),T=require("./index-Da298sEl.cjs"),W=require("./index-_XxjJPRD.cjs"),N=require("./index-BWaO7kQK.cjs"),q=require("./index-CocSS1YK.cjs"),v=require("./index-CRWn-2fF.cjs"),X=require("./index-WIv2ndLu.cjs"),n=require("./jsx-runtime-BB_1_6y_.cjs");var d="Accordion",Z=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[y,ee,oe]=T.createCollection(d),[R]=Q.createContextScope(d,[oe,v.createCollapsibleScope]),k=v.createCollapsibleScope(),M=l.forwardRef((o,c)=>{const{type:e,...t}=o,i=t,r=t;return n.jsxRuntimeExports.jsx(y.Provider,{scope:o.__scopeAccordion,children:e==="multiple"?n.jsxRuntimeExports.jsx(ce,{...r,ref:c}):n.jsxRuntimeExports.jsx(ne,{...i,ref:c})})});M.displayName=d;var[H,re]=R(d),[V,te]=R(d,{collapsible:!1}),ne=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:i=()=>{},collapsible:r=!1,...a}=o,[s,u]=N.useControllableState({prop:e,defaultProp:t??"",onChange:i,caller:d});return n.jsxRuntimeExports.jsx(H,{scope:o.__scopeAccordion,value:l.useMemo(()=>s?[s]:[],[s]),onItemOpen:u,onItemClose:l.useCallback(()=>r&&u(""),[r,u]),children:n.jsxRuntimeExports.jsx(V,{scope:o.__scopeAccordion,collapsible:r,children:n.jsxRuntimeExports.jsx($,{...a,ref:c})})})}),ce=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:i=()=>{},...r}=o,[a,s]=N.useControllableState({prop:e,defaultProp:t??[],onChange:i,caller:d}),u=l.useCallback(f=>s((x=[])=>[...x,f]),[s]),m=l.useCallback(f=>s((x=[])=>x.filter(b=>b!==f)),[s]);return n.jsxRuntimeExports.jsx(H,{scope:o.__scopeAccordion,value:a,onItemOpen:u,onItemClose:m,children:n.jsxRuntimeExports.jsx(V,{scope:o.__scopeAccordion,collapsible:!0,children:n.jsxRuntimeExports.jsx($,{...r,ref:c})})})}),[ie,j]=R(d),$=l.forwardRef((o,c)=>{const{__scopeAccordion:e,disabled:t,dir:i,orientation:r="vertical",...a}=o,s=l.useRef(null),u=W.useComposedRefs(s,c),m=ee(e),x=T.useDirection(i)==="ltr",b=N.composeEventHandlers(o.onKeyDown,C=>{if(!Z.includes(C.key))return;const F=C.target,I=m().filter(P=>!P.ref.current?.disabled),A=I.findIndex(P=>P.ref.current===F),O=I.length;if(A===-1)return;C.preventDefault();let p=A;const h=0,E=O-1,_=()=>{p=A+1,p>E&&(p=h)},w=()=>{p=A-1,p<h&&(p=E)};switch(C.key){case"Home":p=h;break;case"End":p=E;break;case"ArrowRight":r==="horizontal"&&(x?_():w());break;case"ArrowDown":r==="vertical"&&_();break;case"ArrowLeft":r==="horizontal"&&(x?w():_());break;case"ArrowUp":r==="vertical"&&w();break}const J=p%O;I[J].ref.current?.focus()});return n.jsxRuntimeExports.jsx(ie,{scope:e,disabled:t,direction:i,orientation:r,children:n.jsxRuntimeExports.jsx(y.Slot,{scope:e,children:n.jsxRuntimeExports.jsx(q.Primitive.div,{...a,"data-orientation":r,ref:u,onKeyDown:t?void 0:b})})})}),g="AccordionItem",[se,D]=R(g),K=l.forwardRef((o,c)=>{const{__scopeAccordion:e,value:t,...i}=o,r=j(g,e),a=re(g,e),s=k(e),u=X.useId(),m=t&&a.value.includes(t)||!1,f=r.disabled||o.disabled;return n.jsxRuntimeExports.jsx(se,{scope:e,open:m,disabled:f,triggerId:u,children:n.jsxRuntimeExports.jsx(v.Root,{"data-orientation":r.orientation,"data-state":B(m),...s,...i,ref:c,disabled:f,open:m,onOpenChange:x=>{x?a.onItemOpen(t):a.onItemClose(t)}})})});K.displayName=g;var L="AccordionHeader",z=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(L,e);return n.jsxRuntimeExports.jsx(q.Primitive.h3,{"data-orientation":i.orientation,"data-state":B(r.open),"data-disabled":r.disabled?"":void 0,...t,ref:c})});z.displayName=L;var S="AccordionTrigger",G=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(S,e),a=te(S,e),s=k(e);return n.jsxRuntimeExports.jsx(y.ItemSlot,{scope:e,children:n.jsxRuntimeExports.jsx(v.Trigger,{"aria-disabled":r.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:r.triggerId,...s,...t,ref:c})})});G.displayName=S;var U="AccordionContent",Y=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(U,e),a=k(e);return n.jsxRuntimeExports.jsx(v.Content,{role:"region","aria-labelledby":r.triggerId,"data-orientation":i.orientation,...a,...t,ref:c,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...o.style}})});Y.displayName=U;function B(o){return o?"open":"closed"}var ae=M,le=K,de=z,ue=G,pe=Y;exports.Content2=pe;exports.Header=de;exports.Item=le;exports.Root2=ae;exports.Trigger2=ue;
@@ -0,0 +1,41 @@
1
+ "use client";"use strict";const oe=require("react"),ge=require("./index-_XxjJPRD.cjs"),ye=require("./index-CocSS1YK.cjs"),G=require("./index-CzY-WZXL.cjs"),be=require("./jsx-runtime-BB_1_6y_.cjs");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ee(oe);var j="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},Se="FocusScope",ce=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=G.useCallbackRef(c),g=G.useCallbackRef(i),f=u.useRef(null),v=ge.useComposedRefs(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:k(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||k(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&k(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(j,z);a.addEventListener(j,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&k(a))}return()=>{a.removeEventListener(j,b),setTimeout(()=>{const d=new CustomEvent(_,z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||k(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&k(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&k(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return be.jsxRuntimeExports.jsx(ye.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ce.displayName=Se;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=Z(t,e),r=Z(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ke(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var Q=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var U=0;function Oe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function J(){const e=document.createElement("span");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}var C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",D="width-before-scroll-bar",Me="with-scroll-bars-hidden",Fe="--removed-body-scroll-bar-size";function K(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pe(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<"u"?u.useLayoutEffect:u.useEffect,ee=new WeakMap;function xe(e,t){var n=Pe(null,function(r){return e.forEach(function(c){return K(c,r)})});return Le(function(){var r=ee.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||K(a,null)}),i.forEach(function(a){c.has(a)||K(a,s)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function We(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function De(e){e===void 0&&(e={});var t=We(null);return t.options=C({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ie(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};le.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),le}var se=De(),H=function(){},B=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,A=xe([n,t]),R=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:se,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},R),{ref:A})):u.createElement(m,C({},R,{className:S,ref:A}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:D,zeroRight:W};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},V=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[V(n),V(r),V(c)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=fe(),M="data-scroll-locked",ze=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(Me,` {
3
+ overflow: hidden `).concat(r,`;
4
+ padding-right: `).concat(a,"px ").concat(r,`;
5
+ }
6
+ body[`).concat(M,`] {
7
+ overflow: hidden `).concat(r,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
+ padding-left: `.concat(c,`px;
11
+ padding-top: `).concat(i,`px;
12
+ padding-right: `).concat(s,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(a,"px ").concat(r,`;
16
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(W,` {
20
+ right: `).concat(a,"px ").concat(r,`;
21
+ }
22
+
23
+ .`).concat(D,` {
24
+ margin-right: `).concat(a,"px ").concat(r,`;
25
+ }
26
+
27
+ .`).concat(W," .").concat(W,` {
28
+ right: 0 `).concat(r,`;
29
+ }
30
+
31
+ .`).concat(D," .").concat(D,` {
32
+ margin-right: 0 `).concat(r,`;
33
+ }
34
+
35
+ body[`).concat(M,`] {
36
+ `).concat(Fe,": ").concat(a,`px;
37
+ }
38
+ `)},te=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},Ze=function(){u.useEffect(function(){return document.body.setAttribute(M,(te()+1).toString()),function(){var e=te()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},Qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Ze();var i=u.useMemo(function(){return qe(c)},[c]);return u.createElement(Ge,{styles:ze(i,!t,c,n?"":"!important")})},Y=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return Y=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{Y=!1}var T=Y?{passive:!1}:!1,$e=function(e){return e.tagName==="TEXTAREA"},de=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$e(e)&&n[t]==="visible")},Je=function(e){return de(e,"overflowY")},et=function(e){return de(e,"overflowX")},ne=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=ve(e,r);if(c){var i=he(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ve=function(e,t){return e==="v"?Je(t):et(t)},he=function(e,t){return e==="v"?tt(t):nt(t)},rt=function(e,t){return e==="h"&&t==="rtl"?-1:1},at=function(e,t,n,r,c){var i=rt(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,S=t.contains(a),b=!1,g=s>0,f=0,v=0;do{if(!a)break;var h=he(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&ve(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(g&&Math.abs(f)<1||!g&&Math.abs(v)<1)&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},ot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ct=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},ut=0,O=[];function it(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(ut++)[0],i=u.useState(fe)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var o=Ne([e.lockRef.current],(e.shards||[]).map(ae),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=L(o),m=n.current,p="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,A=o.target,R=Math.abs(p)>Math.abs(y)?"h":"v";if("touches"in o&&R==="h"&&A.type==="range")return!1;var F=ne(R,A);if(!F)return!0;if(F?E=R:(E=R==="v"?"h":"v",F=ne(R,A)),!F)return!1;if(!r.current&&"changedTouches"in o&&(p||y)&&(r.current=E),!E)return!0;var q=r.current||E;return at(q,l,o,q==="h"?p:y)},[]),S=u.useCallback(function(o){var l=o;if(!(!O.length||O[O.length-1]!==i)){var d="deltaY"in l?re(l):L(l),m=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ot(E.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}if(!m){var p=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=p.length>0?a(l,p[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(o,l,d,m){var p={name:o,delta:l,target:d,should:m,shadowParent:lt(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(y){return y!==p})},1)},[]),g=u.useCallback(function(o){n.current=L(o),r.current=void 0},[]),f=u.useCallback(function(o){b(o.type,re(o),o.target,a(o,e.lockRef.current))},[]),v=u.useCallback(function(o){b(o.type,L(o),o.target,a(o,e.lockRef.current))},[]);u.useEffect(function(){return O.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,T),document.addEventListener("touchmove",S,T),document.addEventListener("touchstart",g,T),function(){O=O.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,T),document.removeEventListener("touchmove",S,T),document.removeEventListener("touchstart",g,T)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:ct(c)}):null,h?u.createElement(Qe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const st=Be(se,it);var me=u.forwardRef(function(e,t){return u.createElement(B,C({},e,{ref:t,sideCar:st}))});me.classNames=B.classNames;var ft=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},N=new WeakMap,x=new WeakMap,I={},X=0,pe=function(e){return e&&(e.host||pe(e.parentNode))},dt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pe(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vt=function(e,t,n,r){var c=dt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var i=I[n],s=[],a=new Set,S=new Set(c),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))g(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(N.get(v)||0)+1,l=(i.get(v)||0)+1;N.set(v,o),i.set(v,l),s.push(v),o===1&&w&&x.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return g(t),a.clear(),X++,function(){s.forEach(function(f){var v=N.get(f)-1,h=i.get(f)-1;N.set(f,v),i.set(f,h),v||(x.has(f)||f.removeAttribute(r),x.delete(f)),h||f.removeAttribute(n)}),X--,X||(N=new WeakMap,N=new WeakMap,x=new WeakMap,I={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=ft(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),vt(r,c,n,"aria-hidden")):function(){return null}};exports.FocusScope=ce;exports.ReactRemoveScroll=me;exports.hideOthers=ht;exports.useFocusGuards=Oe;
@@ -0,0 +1 @@
1
+ "use client";"use strict";const u=require("react"),l=require("react-dom"),f=require("./index-CocSS1YK.cjs"),d=require("./index-MQ0c3ZX_.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function m(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=m(u);var P="Portal",c=a.forwardRef((e,r)=>{const{container:t,...n}=e,[s,i]=a.useState(!1);d.useLayoutEffect2(()=>i(!0),[]);const o=t||s&&globalThis?.document?.body;return o?l.createPortal(p.jsxRuntimeExports.jsx(f.Primitive.div,{...n,ref:r}),o):null});c.displayName=P;exports.Portal=c;
@@ -0,0 +1 @@
1
+ "use client";"use strict";const B=require("react"),f=require("./index-BWaO7kQK.cjs"),P=require("./index-Da298sEl.cjs"),Y=require("./index-_XxjJPRD.cjs"),z=require("./index-cwZN7ZY3.cjs"),V=require("./index-WIv2ndLu.cjs"),D=require("./index-CocSS1YK.cjs"),J=require("./index-CzY-WZXL.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function Q(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const c=Q(B);var y="rovingFocusGroup.onEntryFocus",W={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[j,G,X]=P.createCollection(b),[Z,ee]=z.createContextScope(b,[X]),[te,oe]=Z(b),N=c.forwardRef((e,o)=>p.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(ne,{...e,ref:o})})}));N.displayName=b;var ne=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,orientation:t,loop:F=!1,dir:S,currentTabStopId:v,defaultCurrentTabStopId:T,onCurrentTabStopIdChange:w,onEntryFocus:m,preventScrollOnEntryFocus:u=!1,...I}=e,R=c.useRef(null),g=Y.useComposedRefs(o,R),x=P.useDirection(S),[E,r]=f.useControllableState({prop:v,defaultProp:T??null,onChange:w,caller:b}),[a,C]=c.useState(!1),i=J.useCallbackRef(m),l=G(n),_=c.useRef(!1),[q,A]=c.useState(0);return c.useEffect(()=>{const s=R.current;if(s)return s.addEventListener(y,i),()=>s.removeEventListener(y,i)},[i]),p.jsxRuntimeExports.jsx(te,{scope:n,orientation:t,dir:x,loop:F,currentTabStopId:E,onItemFocus:c.useCallback(s=>r(s),[r]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>A(s=>s-1),[]),children:p.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:a||q===0?-1:0,"data-orientation":t,...I,ref:g,style:{outline:"none",...e.style},onMouseDown:f.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:f.composeEventHandlers(e.onFocus,s=>{const L=!_.current;if(s.target===s.currentTarget&&L&&!a){const O=new CustomEvent(y,W);if(s.currentTarget.dispatchEvent(O),!O.defaultPrevented){const h=l().filter(d=>d.focusable),U=h.find(d=>d.active),H=h.find(d=>d.id===E),$=[U,H,...h].filter(Boolean).map(d=>d.ref.current);k($,u)}}_.current=!1}),onBlur:f.composeEventHandlers(e.onBlur,()=>C(!1))})})}),K="RovingFocusGroupItem",M=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:t=!0,active:F=!1,tabStopId:S,children:v,...T}=e,w=V.useId(),m=S||w,u=oe(K,n),I=u.currentTabStopId===m,R=G(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:E}=u;return c.useEffect(()=>{if(t)return g(),()=>x()},[t,g,x]),p.jsxRuntimeExports.jsx(j.ItemSlot,{scope:n,id:m,focusable:t,active:F,children:p.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:I?0:-1,"data-orientation":u.orientation,...T,ref:o,onMouseDown:f.composeEventHandlers(e.onMouseDown,r=>{t?u.onItemFocus(m):r.preventDefault()}),onFocus:f.composeEventHandlers(e.onFocus,()=>u.onItemFocus(m)),onKeyDown:f.composeEventHandlers(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const a=ce(r,u.orientation,u.dir);if(a!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let i=R().filter(l=>l.focusable).map(l=>l.ref.current);if(a==="last")i.reverse();else if(a==="prev"||a==="next"){a==="prev"&&i.reverse();const l=i.indexOf(r.currentTarget);i=u.loop?ue(i,l+1):i.slice(l+1)}setTimeout(()=>k(i))}}),children:typeof v=="function"?v({isCurrentTabStop:I,hasTabStop:E!=null}):v})})});M.displayName=K;var re={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function se(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,n){const t=se(e.key,n);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return re[t]}function k(e,o=!1){const n=document.activeElement;for(const t of e)if(t===n||(t.focus({preventScroll:o}),document.activeElement!==n))return}function ue(e,o){return e.map((n,t)=>e[(o+t)%e.length])}var ie=N,ae=M;exports.Item=ae;exports.Root=ie;exports.createRovingFocusGroupScope=ee;
@@ -0,0 +1 @@
1
+ "use client";"use strict";const w=require("react"),T=require("./index-BWaO7kQK.cjs"),A=require("./index-cwZN7ZY3.cjs"),I=require("./index-MQ0c3ZX_.cjs"),$=require("./index-_XxjJPRD.cjs"),m=require("./index-CocSS1YK.cjs"),D=require("./index-DE3jjVoC.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function k(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const r=k(w);var f="Collapsible",[L,F]=A.createContextScope(f),[B,g]=L(f),q=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=T.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(B,{scope:t,disabled:l,contentId:M.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:s})})});q.displayName=f;var S="CollapsibleTrigger",R=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,...n}=e,o=g(S,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:s,onClick:T.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=S;var v="CollapsibleContent",h=r.forwardRef((e,s)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(D.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(G,{...n,ref:s,present:l})})});h.displayName=v;var G=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=$.useComposedRefs(s,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const i=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(i)},[]),I.useLayoutEffect2(()=>{const i=d.current;if(i){p.current=p.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const O=i.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(i.style.transitionDuration=p.current.transitionDuration,i.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var z=q,H=R,J=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=J;exports.Root=z;exports.Trigger=H;exports.createCollapsibleScope=F;
@@ -1,16 +1,17 @@
1
- import * as i from "react";
1
+ "use client";
2
+ import * as o from "react";
2
3
  import { u as y } from "./index-DLcqcWxM.js";
3
4
  import { u as A } from "./index-CCKe-Mpx.js";
4
5
  function T(n, e) {
5
- return i.useReducer((t, r) => e[t][r] ?? t, n);
6
+ return o.useReducer((t, r) => e[t][r] ?? t, n);
6
7
  }
7
8
  var E = (n) => {
8
- const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = y(r.ref, P(a));
9
- return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
9
+ const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : o.Children.only(t), c = y(r.ref, P(a));
10
+ return typeof t == "function" || r.isPresent ? o.cloneElement(a, { ref: c }) : null;
10
11
  };
11
12
  E.displayName = "Presence";
12
13
  function R(n) {
13
- const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
14
+ const [e, t] = o.useState(), r = o.useRef(null), a = o.useRef(n), c = o.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
14
15
  mounted: {
15
16
  UNMOUNT: "unmounted",
16
17
  ANIMATION_OUT: "unmountSuspended"
@@ -23,23 +24,23 @@ function R(n) {
23
24
  MOUNT: "mounted"
24
25
  }
25
26
  });
26
- return i.useEffect(() => {
27
- const o = l(r.current);
28
- c.current = N === "mounted" ? o : "none";
27
+ return o.useEffect(() => {
28
+ const i = l(r.current);
29
+ c.current = N === "mounted" ? i : "none";
29
30
  }, [N]), A(() => {
30
- const o = r.current, m = a.current;
31
+ const i = r.current, m = a.current;
31
32
  if (m !== n) {
32
- const f = c.current, u = l(o);
33
- n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
33
+ const f = c.current, u = l(i);
34
+ n ? s("MOUNT") : u === "none" || i?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
34
35
  }
35
36
  }, [n, s]), A(() => {
36
37
  if (e) {
37
- let o;
38
+ let i;
38
39
  const m = e.ownerDocument.defaultView ?? window, d = (u) => {
39
40
  const g = l(r.current).includes(CSS.escape(u.animationName));
40
41
  if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
41
42
  const O = e.style.animationFillMode;
42
- e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
43
+ e.style.animationFillMode = "forwards", i = m.setTimeout(() => {
43
44
  e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
44
45
  });
45
46
  }
@@ -47,14 +48,14 @@ function R(n) {
47
48
  u.target === e && (c.current = l(r.current));
48
49
  };
49
50
  return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
- m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
+ m.clearTimeout(i), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
52
  };
52
53
  } else
53
54
  s("ANIMATION_END");
54
55
  }, [e, s]), {
55
56
  isPresent: ["mounted", "unmountSuspended"].includes(N),
56
- ref: i.useCallback((o) => {
57
- r.current = o ? getComputedStyle(o) : null, t(o);
57
+ ref: o.useCallback((i) => {
58
+ r.current = i ? getComputedStyle(i) : null, t(i);
58
59
  }, [])
59
60
  };
60
61
  }
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import * as o from "react";
3
+ import m from "react-dom";
4
+ import { P as u } from "./index-BMWt1NBG.js";
5
+ import { u as c } from "./index-CCKe-Mpx.js";
6
+ import { j as f } from "./jsx-runtime-BzflLqGi.js";
7
+ var l = "Portal", p = o.forwardRef((r, e) => {
8
+ const { container: a, ...s } = r, [i, n] = o.useState(!1);
9
+ c(() => n(!0), []);
10
+ const t = a || i && globalThis?.document?.body;
11
+ return t ? m.createPortal(/* @__PURE__ */ f.jsx(u.div, { ...s, ref: e }), t) : null;
12
+ });
13
+ p.displayName = l;
14
+ export {
15
+ p as P
16
+ };
@@ -0,0 +1,5 @@
1
+ "use client";"use strict";const V=require("react"),g=require("./index-BWaO7kQK.cjs"),D=require("./index-_XxjJPRD.cjs"),O=require("./index-cwZN7ZY3.cjs"),j=require("./index-WIv2ndLu.cjs"),B=require("./index-BaCYnOIG.cjs"),E=require("./index-C2P2kXMc.cjs"),Z=require("./index-CBuLZ39k.cjs"),y=require("./index-DE3jjVoC.cjs"),m=require("./index-CocSS1YK.cjs"),a=require("./jsx-runtime-BB_1_6y_.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=z(V);function K(e){const t=U(e),o=i.forwardRef((r,n)=>{const{children:s,...c}=r,l=i.Children.toArray(s),u=l.find(J);if(u){const p=u.props.children,x=l.map(R=>R===u?i.Children.count(p)>1?i.Children.only(null):i.isValidElement(p)?p.props.children:null:R);return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(p)?i.cloneElement(p,void 0,x):null})}return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function U(e){const t=i.forwardRef((o,r)=>{const{children:n,...s}=o;if(i.isValidElement(n)){const c=X(n),l=Q(s,n.props);return n.type!==i.Fragment&&(l.ref=r?D.composeRefs(r,c):c),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y=Symbol("radix.slottable");function J(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y}function Q(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function X(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Dialog",[I]=O.createContextScope(C),[ee,d]=I(C),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),u=i.useRef(null),[p,x]=g.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:u,contentId:j.useId(),titleId:j.useId(),descriptionId:j.useId(),open:p,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(R=>!R),[x]),modal:c,children:o})};N.displayName=C;var b="DialogTrigger",T=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(b,o),s=D.useComposedRefs(t,n.triggerRef);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":P(n.open),...r,ref:s,onClick:g.composeEventHandlers(e.onClick,n.onOpenToggle)})});T.displayName=b;var _="DialogPortal",[te,A]=I(_,{forceMount:void 0}),S=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,s=d(_,t);return a.jsxRuntimeExports.jsx(te,{scope:t,forceMount:o,children:i.Children.map(r,c=>a.jsxRuntimeExports.jsx(y.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(Z.Portal,{asChild:!0,container:n,children:c})}))})};S.displayName=_;var v="DialogOverlay",M=i.forwardRef((e,t)=>{const o=A(v,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(v,e.__scopeDialog);return s.modal?a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:a.jsxRuntimeExports.jsx(ne,{...n,ref:t})}):null});M.displayName=v;var oe=K("DialogOverlay.RemoveScroll"),ne=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(v,o);return a.jsxRuntimeExports.jsx(E.ReactRemoveScroll,{as:oe,allowPinchZoom:!0,shards:[n.contentRef],children:a.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),f="DialogContent",w=i.forwardRef((e,t)=>{const o=A(f,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(f,e.__scopeDialog);return a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(re,{...n,ref:t}):a.jsxRuntimeExports.jsx(se,{...n,ref:t})})});w.displayName=f;var re=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(null),n=D.useComposedRefs(t,o.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return E.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(F,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault())})}),se=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(!1),n=i.useRef(!1);return a.jsxRuntimeExports.jsx(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),F=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...c}=e,l=d(f,o),u=i.useRef(null),p=D.useComposedRefs(t,u);return E.useFocusGuards(),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(E.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(B.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(ie,{titleId:l.titleId}),a.jsxRuntimeExports.jsx(le,{contentRef:u,descriptionId:l.descriptionId})]})]})}),h="DialogTitle",W=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(h,o);return a.jsxRuntimeExports.jsx(m.Primitive.h2,{id:n.titleId,...r,ref:t})});W.displayName=h;var $="DialogDescription",q=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d($,o);return a.jsxRuntimeExports.jsx(m.Primitive.p,{id:n.descriptionId,...r,ref:t})});q.displayName=$;var L="DialogClose",k=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(L,o);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",...r,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=L;function P(e){return e?"open":"closed"}var G="DialogTitleWarning",[Re,H]=O.createContext2(G,{contentName:f,titleName:h,docsSlug:"dialog"}),ie=({titleId:e})=>{const t=H(G),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ae="DialogDescriptionWarning",le=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(ae).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ce=N,ue=T,de=S,pe=M,fe=w,ge=W,xe=q,me=k;exports.Close=me;exports.Content=fe;exports.Description=xe;exports.Overlay=pe;exports.Portal=de;exports.Root=ce;exports.Title=ge;exports.Trigger=ue;
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import * as o from "react";
2
3
  import { u as I, c as O } from "./index-C0UREtMP.js";
3
4
  import { c as S } from "./index-FxyLF8MY.js";
4
5
  import { u as D } from "./index-CCKe-Mpx.js";
5
6
  import { u as M } from "./index-DLcqcWxM.js";
6
7
  import { P as v } from "./index-BMWt1NBG.js";
7
- import { P as L } from "./index-BpWB3aFK.js";
8
+ import { P as L } from "./index-CSFEzRxy.js";
8
9
  import { u as k } from "./index-Cv867SGx.js";
9
10
  import { j as c } from "./jsx-runtime-BzflLqGi.js";
10
11
  var f = "Collapsible", [F, V] = S(f), [B, g] = F(f), T = o.forwardRef(
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as l from "react";
2
3
  import R from "react";
3
4
  import { c as v } from "./index-FxyLF8MY.js";